@sheetxl/studio-vanilla 0.7.22 → 0.7.24

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 (190) hide show
  1. package/browser/cjs/{DqbIzabHTAeSs0A2.cjs → -SzKDOZ6-U3OXO2k.cjs} +1 -1
  2. package/browser/cjs/{B0V3NBGVADl8GvTd.cjs → 4Pm1CnanluLM24Ok.cjs} +2 -2
  3. package/browser/cjs/{CB2yvkubIntPJQyR.cjs → 6OI7eNw0fXRuVfdC.cjs} +1 -1
  4. package/browser/cjs/{D3cB_bI5qqH2lIw0.cjs → 6_Bxr4-WivFMgzEH.cjs} +1 -1
  5. package/browser/cjs/{DBD7LpiISPIYO2od.cjs → 7FY2uGiY_XZSLU4D.cjs} +1 -1
  6. package/browser/cjs/B7RXKQOUTP0VznzF.cjs +6 -0
  7. package/browser/cjs/{U-3hxtZxnQZoAsnc.cjs → BCjyrbg-VpZL-uhG.cjs} +1 -1
  8. package/browser/cjs/{DnBJ0t8l5LlYyyFQ.cjs → BEd2rLppD0jf-OX5.cjs} +1 -1
  9. package/browser/cjs/{BsjqWxmgGH5iDW-L.cjs → BKbPniO4TzdI67n5.cjs} +3 -3
  10. package/browser/cjs/{CQQ-vko7roBUAKDi.cjs → BKcHfcVyFCg_G2Hv.cjs} +2 -2
  11. package/browser/cjs/{DUcVDwb2QpOyu1RP.cjs → BMacKAp3TATSbpeE.cjs} +1 -1
  12. package/browser/cjs/{Cv8bFZDzw5LQwOaw.cjs → BRMMGrChoJ5A4Cb9.cjs} +1 -1
  13. package/browser/cjs/{BwaiJLfj0y1QPRPg.cjs → BU5aSGH2TQzhKb4X.cjs} +2 -2
  14. package/browser/cjs/{CsN-Uk9IDZV3vG2y.cjs → BY8cITv5Z3vpfKgx.cjs} +1 -1
  15. package/browser/cjs/{DWmyUxQEFya7Q_LU.cjs → B_05WgpV7eBzddd4.cjs} +1 -1
  16. package/browser/cjs/{sWbfmK2PhrhDpoeu.cjs → BcxwnLMoAc9w6CGq.cjs} +2 -2
  17. package/browser/cjs/{CRm7Cq8A8b-fJliQ.cjs → BoANVg_KJYi2S8b_.cjs} +2 -2
  18. package/browser/cjs/{VieeuPbsrj66m2wN.cjs → Bq5YSYg0uvW5AMIU.cjs} +3 -3
  19. package/browser/cjs/{CRnuv2nNLnWG3OZC.cjs → C1Ce1oj95pQwci5U.cjs} +1 -1
  20. package/browser/cjs/{V_EM7dq816p8_4dG.cjs → C5WdV2S3L3bmzA3p.cjs} +2 -2
  21. package/browser/cjs/{C3D1HRHhgNo3NFbv.cjs → C9EPwxZJMxCVrF13.cjs} +4 -4
  22. package/browser/cjs/{B8ShxCGjp3Bq9npC.cjs → C9LTLSnqhkbF3TdA.cjs} +1 -1
  23. package/browser/cjs/{Cc1iqyyt1L4hPPT7.cjs → CCDscFosh70qY_v-.cjs} +2 -2
  24. package/browser/cjs/{Ceorq4uQEw1AQxBb.cjs → CCuUs6lbfqyHZF__.cjs} +2 -2
  25. package/browser/cjs/{DKrZPL0pykbE5fI-.cjs → CIH7R5Oc_mi040K-.cjs} +3 -3
  26. package/browser/cjs/{C7dVb2uIiorrCyKG.cjs → CIjk0kDlEo4tCbpC.cjs} +2 -2
  27. package/browser/cjs/CKiS9qHTMERjTMe6.cjs +6 -0
  28. package/browser/cjs/{BSJkbBMMBW7yd1md.cjs → CYAIaD9mR7iUOD9H.cjs} +1 -1
  29. package/browser/cjs/{C_89mysFInqhWK2V.cjs → CauNFzrvPwkN9Ick.cjs} +2 -2
  30. package/browser/cjs/{D-mXHYUWexAEwyrV.cjs → D-9xEZ5TDunYS5UZ.cjs} +2 -2
  31. package/browser/cjs/{Bc93_RTPVl-3eczf.cjs → D4Z1nCIhbwqWkCmW.cjs} +1 -1
  32. package/browser/cjs/{DZetVnqqE-E-SG3W.cjs → D5v60bt957pqOHVR.cjs} +1 -1
  33. package/browser/cjs/{Bk65bujvPonPpX0S.cjs → DE9K5THCbH5obEtj.cjs} +2 -2
  34. package/browser/cjs/{6YMUrwC5B9o7F51O.cjs → DEXZgp5-Eh9hqU9K.cjs} +1 -1
  35. package/browser/cjs/{Ca4n2JdJSmReqev5.cjs → DFp4l5sGd7dNZACL.cjs} +1 -1
  36. package/browser/cjs/{D-5aZhamCrYZ6ZGG.cjs → DJ_5vBkntW0V3rai.cjs} +1 -1
  37. package/browser/cjs/{BpYLKD4aaSHfLRzj.cjs → DNJNiFkcw-81WwVV.cjs} +2 -2
  38. package/browser/cjs/DNocrohI7pZFN-ei.cjs +327 -0
  39. package/browser/cjs/{DJXhVXN2-O9EFN5z.cjs → DXccl5FZPMt-Ynzu.cjs} +1 -1
  40. package/browser/cjs/{BS4w2O3cSLUXL_jH.cjs → DYj-W5BomFT-5aO-.cjs} +1 -1
  41. package/browser/cjs/{DyVu5n2ipHKTd7DE.cjs → DfYdEF_tpc11YaSf.cjs} +1 -1
  42. package/browser/cjs/{40PNk1cfiyq9L_4P.cjs → Dfd9nkqtpZr620My.cjs} +1 -1
  43. package/browser/cjs/{DNtwdCZ-qW4s3Ebz.cjs → DgGpf8P5TBUBSup6.cjs} +2 -2
  44. package/browser/cjs/{Btc-dn9vrxeuHrvE.cjs → Dgz7Jq7FwcrGED9-.cjs} +4 -4
  45. package/browser/cjs/{Dd3nwSjn_oVLZv4C.cjs → DpjHyGByclQGA6Kr.cjs} +1 -1
  46. package/browser/cjs/{n7v_sMq879OKt7Yz.cjs → DukycyZdLd_UQO5D.cjs} +1 -1
  47. package/browser/cjs/{Ao2feovUbm9qEpu6.cjs → Dzsn_d36vu628Ejt.cjs} +4 -4
  48. package/browser/cjs/{D8UIf57KGA4QXYUM.cjs → LYMhnPbq2mcSzVaa.cjs} +1 -1
  49. package/browser/cjs/{DWxZ2rIhC5eYP-VL.cjs → a5vuc4QCopCBU_Ji.cjs} +1 -1
  50. package/browser/cjs/{DhnW__9M1D4GskCc.cjs → bekulS3F5rysltyH.cjs} +2 -2
  51. package/browser/cjs/{DkyB-U1DBTXmubfg.cjs → einh6uR2706Lx3Ef.cjs} +2 -2
  52. package/browser/cjs/{UQF74Vt5S0B-wlMc.cjs → ex2NnATmscv1oN2T.cjs} +1 -1
  53. package/browser/cjs/{xwfX8oRH7U8b0-7s.cjs → h2Ri2dXumqkURS2e.cjs} +1 -1
  54. package/browser/cjs/{x1hXIqIbxJ-_-YTi.cjs → haK5KYEyXQAQLcpT.cjs} +1 -1
  55. package/browser/cjs/index.cjs +2 -2
  56. package/browser/cjs/{DeNh9fYqDL16oTCp.cjs → m7L0sGi75JVWLSXM.cjs} +1 -1
  57. package/browser/cjs/{mo0iAab7vyrY0Vyj.cjs → s3J4tVfnn_dVetJt.cjs} +1 -1
  58. package/browser/cjs/{B7woEff5ViE_kZT-.cjs → xyihuv-v9LdoMqHi.cjs} +3 -3
  59. package/browser/cjs/{DjY8WFxuXA18nqWA.cjs → zejUnKhj3yGCJn5v.cjs} +1 -1
  60. package/browser/esm/{CGx0R2rJB22lw1qd.mjs → B-Va4MMi4ldFYs51.mjs} +2 -2
  61. package/{cdn/assets/DPmKV1ceqZcb_mQW.js → browser/esm/B4wjLm5xdmT63LtK.mjs} +1 -1
  62. package/browser/esm/{fKoSDw4qZySRuDoz.mjs → B5RyZ9wQ-Gt9td3-.mjs} +2 -2
  63. package/browser/esm/{DabMI-gQY7ULWuSm.mjs → B8EvM0BlbyVPTF7e.mjs} +2 -2
  64. package/browser/esm/{PbZ8u8pUX7HwRE_Q.mjs → B8KM3f1eJgL0jalD.mjs} +1 -1
  65. package/{cdn/assets/D20WAgItdsUHi_2m.js → browser/esm/B9KqWum2WqTS9O6x.mjs} +1 -1
  66. package/browser/esm/{C58_uLp9scNOE7MA.mjs → BCWhoAcOQ4gQW6ux.mjs} +3 -3
  67. package/browser/esm/{B2Y8GFi7e2Wy6cdG.mjs → BHatGj_YmI0BMHs8.mjs} +1 -1
  68. package/browser/esm/{c83mUV6ssG-Pm8qj.mjs → BMdCkcezUnZ_TJR8.mjs} +3 -3
  69. package/{cdn/assets/Dl5IckgNc3e4uvIS.js → browser/esm/BPgKQLcV2Bk1ytrk.mjs} +1 -1
  70. package/browser/esm/{CdTUd5MIWe-J7v6h.mjs → BR40xwizp-lOrX6A.mjs} +2 -2
  71. package/browser/esm/{DNX4oXrf-LexF-3L.mjs → BV4-rpThIJLALeCS.mjs} +1 -1
  72. package/{cdn/assets/Cr13Nujdybw2U5Eg.js → browser/esm/BWLF2gmG8phFCgHv.mjs} +1 -1
  73. package/browser/esm/{BHsaKVZQhER0IjHG.mjs → BYiSXoWh739P6Ytt.mjs} +4 -4
  74. package/browser/esm/{DOITfigQotsjSwIm.mjs → BgIqd42UjhWmgkDg.mjs} +1 -1
  75. package/{cdn/assets/CWg5r0ZiYNY2f6YY.js → browser/esm/Bkht_1AdByIIyyAG.mjs} +1 -1
  76. package/{cdn/assets/Kt-K1Eyo136xipn2.js → browser/esm/BlIUOUbV0RPx1xO2.mjs} +1 -1
  77. package/{cdn/assets/DDkNAcDgG91_bhrZ.js → browser/esm/BobIqLtIZpQBT0Eb.mjs} +1 -1
  78. package/{cdn/assets/Dy7c7Htn4nRcR9wv.js → browser/esm/Bs1dJjVSUvTOgZs5.mjs} +1 -1
  79. package/{cdn/assets/DUQIwKm2lU-TmVV1.js → browser/esm/C2DEyj68Yi1u_-u1.mjs} +1 -1
  80. package/browser/esm/{zdfb6g8BE8z4BI9x.mjs → C2EHOISqJtD8O_JU.mjs} +4 -4
  81. package/{cdn/assets/C3DmrblDyN3dlf_b.js → browser/esm/C8DMOdxf4XapNlxm.mjs} +1 -1
  82. package/browser/esm/{C_IEbgy4NXuPou7K.mjs → C9okKNbe0KRIs8S0.mjs} +1 -1
  83. package/browser/esm/{BxuMJXNACHg-X428.mjs → CBX64ZCMuRD6Bfsh.mjs} +3 -3
  84. package/browser/esm/{BQphdGRABPVtdQAs.mjs → CBXfqHd56Ty95TUu.mjs} +2 -2
  85. package/browser/esm/{hP7RfsxY8cCAP-Ov.mjs → CEG3UwODr5naKKp-.mjs} +2 -2
  86. package/browser/esm/{BvG-Q5E0vFjnV7O0.mjs → CQkKnL5yuZnVqYEs.mjs} +2 -2
  87. package/browser/esm/{ROkZxUj0iXZ6G7Xe.mjs → CSzmpeoh8r0IeUrU.mjs} +1 -1
  88. package/browser/esm/{C52W-XN4ZbQ6c_--.mjs → CT50wr1gpOyWeqoj.mjs} +2 -2
  89. package/{cdn/assets/DYIxUp3rfnB84JbA.js → browser/esm/CT_tP2pS9euInRF8.mjs} +1 -1
  90. package/{cdn/assets/BbIn7NPw3J9kXHDc.js → browser/esm/CVB36INn9w24AY7q.mjs} +1 -1
  91. package/browser/esm/{qAHKntNTukfHe6zT.mjs → CWxIt0jlAkmfkzXM.mjs} +2 -2
  92. package/{cdn/assets/BioQXZcoVYOpL6Ej.js → browser/esm/CXTrFkKF8KxEuAp7.mjs} +1 -1
  93. package/browser/esm/{BbbObYt-Qt3nK42F.mjs → CarEqxzyc4uPTOc6.mjs} +2 -2
  94. package/browser/esm/{BYG5djWv9MPHjdlS.mjs → CihQQzLpIaefm7ml.mjs} +2 -2
  95. package/browser/esm/{BnyIgrSKYLZhkCPd.mjs → ClhCbEHwja5oBHGU.mjs} +2 -2
  96. package/browser/esm/{aeLHpMlgmy69ERYL.mjs → CnjLOWhgI1bLd_T9.mjs} +2 -2
  97. package/browser/esm/{Beq_3jtJCifUk0Zr.mjs → CrUnVzbCktVBk6oE.mjs} +3 -3
  98. package/browser/esm/{DOshPqpud6DO1FoB.mjs → CsqOme_tWbTkn6jx.mjs} +1 -1
  99. package/browser/esm/{DIjMjfjqAP89CJ7g.mjs → D0Pk16veLLXfYo2J.mjs} +1 -1
  100. package/browser/esm/{B_n_Aj27PS58-7qD.mjs → D23yBZk5D-ofJBvJ.mjs} +1 -1
  101. package/{cdn/assets/DkPpJb8Rfz04PWcx.js → browser/esm/D4jxC1jBcDF_R59l.mjs} +1 -1
  102. package/{cdn/assets/BB1bzfhztR6Ov5qy.js → browser/esm/DFeUu5zopS-ZApPr.mjs} +1 -1
  103. package/{cdn/assets/CGIlWRi9UD0r_3V_.js → browser/esm/DH-5O_fS3BDkdvEJ.mjs} +1 -1
  104. package/browser/esm/{Crs1Qr0WpnA-yvT8.mjs → DLNSY_nY7Z65zOX0.mjs} +8331 -8325
  105. package/browser/esm/{ByHqa56Ue2aS4Jty.mjs → DYhimukt7e3EZQ_6.mjs} +4 -4
  106. package/browser/esm/{hZSR8fGJnYp0t1Hv.mjs → DhoUQiFFPDqvSCka.mjs} +2 -2
  107. package/browser/esm/{vcpFekIrDfVs3H1Y.mjs → DzbHNc6Snuz2d_IO.mjs} +1 -1
  108. package/browser/esm/{BbyTDKIkS_AvlEK4.mjs → Dzbc9LrtPev_671K.mjs} +2 -2
  109. package/browser/esm/{BwvOedykRi3a_ld9.mjs → G77OvwkyWPbaAk_D.mjs} +6 -6
  110. package/browser/esm/{rMnCC1dhlkC91gLS.mjs → IZhb03xw39ydynfT.mjs} +1 -1
  111. package/browser/esm/{CReya9-3BIqwZ1UD.mjs → KCfzbbDRdhuDo_f-.mjs} +2 -2
  112. package/browser/esm/{jEj2Ph9b_6KI1-oD.mjs → R-IGwB43jzZGiNHH.mjs} +1 -1
  113. package/{cdn/assets/CxDrTaPeGiD_kpbL.js → browser/esm/Vj_jT7BPmMk3mPmm.mjs} +1 -1
  114. package/browser/esm/{Dg5tUkYMLRn38yn4.mjs → b_moefaMNq-yPcci.mjs} +1 -1
  115. package/browser/esm/index.mjs +2 -2
  116. package/browser/esm/{vc1-nL9ZacZsNV5x.mjs → nn3qE7J8vtK3NAhM.mjs} +1 -1
  117. package/browser/esm/{CFzzJEQye34b_nAc.mjs → qDiK_-ApJMYUKJBE.mjs} +2 -2
  118. package/browser/esm/{ClSGsa1HocZ09x8U.mjs → wvfpgrSd1DiI5U2t.mjs} +1 -1
  119. package/cdn/assets/{DoJbpUoYdcr1WPfn.js → -uf-ticqTTmyr3cr.js} +2 -2
  120. package/cdn/assets/{Ce5G16jMVlZmzIv8.js → 4mw2Vv0aAbdtaexw.js} +81 -81
  121. package/cdn/assets/{D9LxrRmBb1K59ngW.js → B0nRJ-ZLcRMuuq4c.js} +3 -3
  122. package/{browser/esm/DPmKV1ceqZcb_mQW.mjs → cdn/assets/B4wjLm5xdmT63LtK.js} +1 -1
  123. package/cdn/assets/{PbZ8u8pUX7HwRE_Q.js → B8KM3f1eJgL0jalD.js} +1 -1
  124. package/{browser/esm/D20WAgItdsUHi_2m.mjs → cdn/assets/B9KqWum2WqTS9O6x.js} +1 -1
  125. package/cdn/assets/{18lNPYAtyf95Mdom.js → BB2PmupzTKaPRsq8.js} +2 -2
  126. package/cdn/assets/{CruIn8K_x-gipnjg.js → BGmdhZpK-L63nJ-D.js} +3 -3
  127. package/cdn/assets/{B2Y8GFi7e2Wy6cdG.js → BHatGj_YmI0BMHs8.js} +1 -1
  128. package/cdn/assets/{BzG5oXwgZ23eCaF3.js → BL-NuR1aFeParK-p.js} +2 -2
  129. package/cdn/assets/{BhZmiLHxQfwPqDdd.js → BLu_lGgQLiONRGcp.js} +7 -7
  130. package/{browser/esm/Dl5IckgNc3e4uvIS.mjs → cdn/assets/BPgKQLcV2Bk1ytrk.js} +1 -1
  131. package/cdn/assets/{BKrYKw0Rm_0yOiu8.js → BReTd-CmpDv8jKYo.js} +12 -12
  132. package/cdn/assets/{DNX4oXrf-LexF-3L.js → BV4-rpThIJLALeCS.js} +1 -1
  133. package/{browser/esm/Cr13Nujdybw2U5Eg.mjs → cdn/assets/BWLF2gmG8phFCgHv.js} +1 -1
  134. package/cdn/assets/{DOITfigQotsjSwIm.js → BgIqd42UjhWmgkDg.js} +1 -1
  135. package/{browser/esm/CWg5r0ZiYNY2f6YY.mjs → cdn/assets/Bkht_1AdByIIyyAG.js} +1 -1
  136. package/{browser/esm/Kt-K1Eyo136xipn2.mjs → cdn/assets/BlIUOUbV0RPx1xO2.js} +1 -1
  137. package/{browser/esm/DDkNAcDgG91_bhrZ.mjs → cdn/assets/BobIqLtIZpQBT0Eb.js} +1 -1
  138. package/cdn/assets/{ZDYUpJ7sA-l-87X0.js → BqbKBadg19GCUa7G.js} +3 -3
  139. package/{browser/esm/Dy7c7Htn4nRcR9wv.mjs → cdn/assets/Bs1dJjVSUvTOgZs5.js} +1 -1
  140. package/cdn/assets/{z3wZCYFfeoKhs19u.js → Bytfz757YwxDeLlN.js} +4 -4
  141. package/{browser/esm/DUQIwKm2lU-TmVV1.mjs → cdn/assets/C2DEyj68Yi1u_-u1.js} +1 -1
  142. package/{browser/esm/C3DmrblDyN3dlf_b.mjs → cdn/assets/C8DMOdxf4XapNlxm.js} +1 -1
  143. package/cdn/assets/{C_IEbgy4NXuPou7K.js → C9okKNbe0KRIs8S0.js} +1 -1
  144. package/cdn/assets/{CpKbwr3AUfVLT9Fz.js → CAuJedPfsorPzzWU.js} +4 -4
  145. package/cdn/assets/{D6ozl5xTT0Co8RaJ.js → CHYsNUgHMDHXKcg2.js} +2 -2
  146. package/cdn/assets/{ROkZxUj0iXZ6G7Xe.js → CSzmpeoh8r0IeUrU.js} +1 -1
  147. package/{browser/esm/DYIxUp3rfnB84JbA.mjs → cdn/assets/CT_tP2pS9euInRF8.js} +1 -1
  148. package/{browser/esm/BbIn7NPw3J9kXHDc.mjs → cdn/assets/CVB36INn9w24AY7q.js} +1 -1
  149. package/{browser/esm/BioQXZcoVYOpL6Ej.mjs → cdn/assets/CXTrFkKF8KxEuAp7.js} +1 -1
  150. package/cdn/assets/{C14et7zH6u-LCYC8.js → CbVOFRfB3-rmhA0F.js} +16 -16
  151. package/cdn/assets/{DlwhC2qcZRZ0Uz1K.js → CfVQwAj_ffprMTl4.js} +30 -30
  152. package/cdn/assets/Cm9fECQD_Gk--j7J.js +41 -0
  153. package/cdn/assets/{DOshPqpud6DO1FoB.js → CsqOme_tWbTkn6jx.js} +1 -1
  154. package/cdn/assets/{MRV7wTkQmIALMbYa.js → CsxxGqrOPRBZ_7qO.js} +11 -11
  155. package/cdn/assets/{CMlP7fnFOM5hPKgX.js → CtqTWu_wKNjIqTI7.js} +4 -4
  156. package/cdn/assets/{B_n_Aj27PS58-7qD.js → D23yBZk5D-ofJBvJ.js} +1 -1
  157. package/cdn/assets/{B3Wm1t1it-mHZvks.js → D3R_3Pwj4WY74gvQ.js} +4 -4
  158. package/{browser/esm/DkPpJb8Rfz04PWcx.mjs → cdn/assets/D4jxC1jBcDF_R59l.js} +1 -1
  159. package/cdn/assets/{CyAyfxuQYROYrfNw.js → D8-klI1cbuOX9jwn.js} +1 -1
  160. package/cdn/assets/{BJjJ78THxxs_jXjB.js → DE6S07JC9FXL1Ou0.js} +3 -3
  161. package/{browser/esm/BB1bzfhztR6Ov5qy.mjs → cdn/assets/DFeUu5zopS-ZApPr.js} +1 -1
  162. package/{browser/esm/CGIlWRi9UD0r_3V_.mjs → cdn/assets/DH-5O_fS3BDkdvEJ.js} +1 -1
  163. package/cdn/assets/{fdA10P6CzeqJLfRc.js → DJd7M1m62QREu-su.js} +6 -6
  164. package/cdn/assets/{CQ5wkhRLvMbZfoF_.js → DUZk7gwTmojBnVl7.js} +2 -2
  165. package/cdn/assets/{CiFvktamTDDdroc1.js → D_tPeJ_-eDoT_h1J.js} +2 -2
  166. package/cdn/assets/{Cap7v38vrhn8CIZO.js → DgwOxBGJTkGNAQWd.js} +1 -1
  167. package/cdn/assets/{BwRNfTv6Z220RxkY.js → DmnmmYeNnJP43uDN.js} +2 -2
  168. package/cdn/assets/{3SDZXFop4jaQoxlJ.js → Dxlu4AU_hNbm289d.js} +7 -7
  169. package/cdn/assets/{DEKu2bBsjKJBoMf3.js → DzIOdkamj50LNNjU.js} +3 -3
  170. package/cdn/assets/{vcpFekIrDfVs3H1Y.js → DzbHNc6Snuz2d_IO.js} +1 -1
  171. package/cdn/assets/{DQJvmgP-0J-N-EYK.js → HqJlhXbxU4OhFsrj.js} +15 -15
  172. package/cdn/assets/{rMnCC1dhlkC91gLS.js → IZhb03xw39ydynfT.js} +1 -1
  173. package/cdn/assets/{jEj2Ph9b_6KI1-oD.js → R-IGwB43jzZGiNHH.js} +1 -1
  174. package/cdn/assets/{BT9SjSmkrUYAb5d_.js → TGrR5KriB19r-WSd.js} +13 -13
  175. package/{browser/esm/CxDrTaPeGiD_kpbL.mjs → cdn/assets/Vj_jT7BPmMk3mPmm.js} +1 -1
  176. package/cdn/assets/{BeT0AobKOrKAtU7Y.js → a0mMnImYYStbI2oU.js} +2 -2
  177. package/cdn/assets/{Dg5tUkYMLRn38yn4.js → b_moefaMNq-yPcci.js} +1 -1
  178. package/cdn/assets/{DStC-ksfGtvNYjl-.js → cZqY3P3D3rn6mTog.js} +4 -4
  179. package/cdn/assets/{fSbTvdKQ_9sX8Up1.js → hDqXVznVeTvynkr1.js} +4 -4
  180. package/cdn/assets/{Cjfprhic6u-Yh-QX.js → jZRGOeC_LntSPLJS.js} +8633 -8627
  181. package/cdn/assets/{BXtdqRss-o1Y1qXS.js → jhFIPN2yYV2BB0rh.js} +2 -2
  182. package/cdn/assets/{vc1-nL9ZacZsNV5x.js → nn3qE7J8vtK3NAhM.js} +1 -1
  183. package/cdn/assets/{ClSGsa1HocZ09x8U.js → wvfpgrSd1DiI5U2t.js} +1 -1
  184. package/cdn/index.js +2 -2
  185. package/cdn/loader.js +1 -1
  186. package/package.json +3 -3
  187. package/browser/cjs/BG4ywprwSWaidvVB.cjs +0 -6
  188. package/browser/cjs/BvUZHzHcBTZzu0RP.cjs +0 -327
  189. package/browser/cjs/DKDOkNGoi7CO8rzb.cjs +0 -6
  190. package/cdn/assets/DavM9soKuwtndteP.js +0 -41
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.24
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.24
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./BvUZHzHcBTZzu0RP.cjs"),D=["Input"],M=e.reactExports.memo(e.reactExports.forwardRef((h,f)=>{const{initialValue:y="",onOption:O,onValidateOption:s,onInput:i,onValidateInput:r,onDone:p,propsInput:l,inputLabel:E,inputType:j,inputPlaceHolder:k,options:u=D,autoFocusSel:T=".autoFocus",cancelOption:c,defaultOption:d=u?.[0],...v}=h,[w,F]=e.reactExports.useState(!1),[o,S]=e.reactExports.useState(y),[b,C]=e.reactExports.useState(""),[I,R]=e.reactExports.useState(!0),n=e.k(async(t,a)=>{if(!r)return!0;const g=await r?.(t,a);C(g?.message??"");const m=g?.valid??!0;return R(m),m},[r]),x=e.k(async t=>{i?.(o,t)},[o,i,p,O,c,d]),P=e.k(async t=>{t.keyCode===e.Ko.Enter&&await n?.(o,null)},[o,x]),V=e.k(t=>{S(t.target.value),n?.(t.target.value,null)},[s]),B=e.k(async t=>{let a=await n(o,t);try{a!==!1&&(a=await n(o,t))}catch{}return a??!0},[o,s]);return e.jsxRuntimeExports.jsx(e.Or,{options:u,onDone:p,onOption:(t,a)=>{a||x(t)},onValidateOption:B,cancelOption:c,defaultOption:d,autoFocusSel:T,ref:f,...v,children:e.jsxRuntimeExports.jsx(e.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0)},children:e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{onFocus:t=>{w||t.target?.select(),F(!0)},type:j,label:E,helperText:b||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5),color:I?void 0:"error.main"}},slotProps:{inputLabel:{shrink:!0},htmlInput:{placeholder:k,spellCheck:!1,autoComplete:"off",...l,className:e.Oe("autoFocus",l?.className),sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}}},value:o,onChange:V,onKeyDown:P,onContextMenu:t=>{t.stopPropagation()}})})})})}));exports.default=M;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DNocrohI7pZFN-ei.cjs"),D=["Input"],M=e.reactExports.memo(e.reactExports.forwardRef((h,f)=>{const{initialValue:y="",onOption:O,onValidateOption:s,onInput:i,onValidateInput:r,onDone:p,propsInput:l,inputLabel:E,inputType:j,inputPlaceHolder:k,options:u=D,autoFocusSel:T=".autoFocus",cancelOption:c,defaultOption:d=u?.[0],...v}=h,[w,F]=e.reactExports.useState(!1),[o,S]=e.reactExports.useState(y),[b,C]=e.reactExports.useState(""),[I,R]=e.reactExports.useState(!0),n=e.k(async(t,a)=>{if(!r)return!0;const g=await r?.(t,a);C(g?.message??"");const m=g?.valid??!0;return R(m),m},[r]),x=e.k(async t=>{i?.(o,t)},[o,i,p,O,c,d]),P=e.k(async t=>{t.keyCode===e.Ko.Enter&&await n?.(o,null)},[o,x]),V=e.k(t=>{S(t.target.value),n?.(t.target.value,null)},[s]),B=e.k(async t=>{let a=await n(o,t);try{a!==!1&&(a=await n(o,t))}catch{}return a??!0},[o,s]);return e.jsxRuntimeExports.jsx(e.Or,{options:u,onDone:p,onOption:(t,a)=>{a||x(t)},onValidateOption:B,cancelOption:c,defaultOption:d,autoFocusSel:T,ref:f,...v,children:e.jsxRuntimeExports.jsx(e.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0)},children:e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{onFocus:t=>{w||t.target?.select(),F(!0)},type:j,label:E,helperText:b||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5),color:I?void 0:"error.main"}},slotProps:{inputLabel:{shrink:!0},htmlInput:{placeholder:k,spellCheck:!1,autoComplete:"off",...l,className:e.Oe("autoFocus",l?.className),sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}}},value:o,onChange:V,onKeyDown:P,onContextMenu:t=>{t.stopPropagation()}})})})})}));exports.default=M;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.24
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.24
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.24
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -0,0 +1,6 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.24
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./DNocrohI7pZFN-ei.cjs"),g=require("./BKbPniO4TzdI67n5.cjs");class z{constructor(t){this.list=t}get length(){return this.list.length}item(t){return this.list[t]}forEach(t,e){for(let s=0;s<this.list.length;s++)t(this.list[s],s,this)}}const G=u=>u===!0||u==="1"||u==="on"||u==="true"||u!==!1&&u!=="0"&&u!=="off"&&u!=="false"&&null,W=u=>{const t=parseInt(u);return isNaN(t)?null:t},X=u=>{const t=parseFloat(u);return isNaN(t)?null:t},$=new Map;class V{constructor(t,e,s,r,o,i=null,n){const l=(c,h,d)=>n?.getRef?.(c,h,d,n?.parsedRefs),a=c=>n?.getRefs?.(c,n?.parsedRefs);this._parent=t,this.sharedShared=e,this.currentPath=s,this.elemRoot=r,this.jsonRoot=o,t?(this._fileLocation=t._fileLocation,this._getRef=t._getRef,this._getRefs=t._getRefs):(i&&(this._fileLocation=i),l&&a&&(this._getRef=l),a&&(this._getRefs=a),this._onWarning=n?.onWarning,this._addPerson=n?.addPerson)}getRef(t,e=!1){return this._getRef?.(t,this._fileLocation,e)??null}getRelationships(){return this._getRefs(this._fileLocation)??$}getPath(){return this.currentPath}getElemRoot(){return this.elemRoot}getJsonRoot(){return this.jsonRoot}warn(t){this._onWarning?this._onWarning(t):this._parent?this._parent?.warn?.(t):console.warn(t)}addPerson(t){return this._addPerson?this._addPerson(t):this._parent?this._parent?._addPerson?.(t):null}getVisitorParamsState(){return this.sharedShared.getVisitorParamsState()}evaluate(t,e){if(!t)return e;let s=[e];const r=t.split("/");for(let o=0;o<r.length;o++){const i=r[o];if(i===""||i===".")continue;let n=[];for(let l=0;l<s.length;l++){const a=s[l],c=a.childNodes;for(let h=0;c&&h<c.length;h++){const d=a.childNodes[h];d.localName!==i&&i!=="*"||n.push(d)}}s=n}return s.length===1?s[0]:s.length===0?null:new z(s)}getFromPath(t,e){return p.te.getFromPath(t,e)}setToPath(t,e,s){return p.te.setToPath(t,e,s)}getValAttrAsString(t,e){let s=this.evaluate(t,e);return s&&s.hasAttribute("val")?s.getAttribute("val")??null:null}getValAttrAsBoolean(t,e,s=!1){let r=this.evaluate(t,e);if(!r)return null;const o=r.hasAttribute("val")?r.getAttribute("val"):void 0;return o==null?s:o==="1"||o==="on"||o==="true"||o!=="0"&&o!=="off"&&o!=="false"&&s}getValAttrAsInteger(t,e){let s=this.evaluate(t,e);return s&&s.hasAttribute("val")?parseInt(s.getAttribute("val"))??null:null}getValAttrAsFloat(t,e){let s=this.evaluate(t,e);return s&&s.hasAttribute("val")?parseFloat(s.getAttribute("val"))??null:null}get BOOLEAN_COPY(){return G}get INT_COPY(){return W}get FLOAT_COPY(){return X}copyFromAttribute(t,e,s,r=e,o=null){if(!t||!s||!t.hasAttribute(e))return;let i=t.getAttribute(e);if(o){if(Array.isArray(o)){for(let n=0;n<o.length;n++)if(i==null||(i=o[n](i),i==null))return}else if(i==null||(i=o(i),i==null))return}this.setToPath(s,r,i)}}class S{constructor(t){this.jsonKey=t}visit(t,e,s){const r={};return s[this.jsonKey]=r,r}}class K{visit(t,e,s){if(!e)return;const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);i.nodeType===1&&i.localName==="Relationship"&&this.processRelationship(t,i,s)}return s}processRelationship(t,e,s){const r={};t.copyFromAttribute(e,"Target",r,"target"),t.copyFromAttribute(e,"Type",r,"type"),t.copyFromAttribute(e,"TargetMode",r,"targetMode"),s[e.getAttribute("Id")]=r}}const Y=(u,t)=>{if(u||!u.hasAttribute("rot"))return;const e=u.getAttribute("rot"),s=p.te.roundAccurately(g.p(e),2);s!==-1e3&&(t.rotation=s)},A=(u,t,e,s,r)=>{const o=u.getValAttrAsString(s,t);o!==null&&(e[r]=o)},f=(u,t,e,s,r=s,o=null)=>{const i=u.getValAttrAsBoolean(s,t,o);i!==null&&(e[r]=i)},C=(u,t,e,s,r)=>{const o=u.getValAttrAsInteger(s,t);o!==null&&(e[r]=o)},y=(u,t,e,s,r,o=1)=>{const i=u.getValAttrAsFloat(s,t);i!==null&&(e[r]=i*o)};class q{visit(t,e,s){return f(t,e,s,"roundedCorners","roundedCorners"),C(t,e,s,".//AlternateContent/Fallback/style","styleId"),s.range=null,s}afterVisit(t,e,s){let r={};s.types=r;let o={},i=0,n={},l=0,a=t.getVisitorParamsState().get("axes");const c=t.getVisitorParamsState().get("types");for(let m=0;m<c.length;m++){const b=c[m];if(b.xAxisId){const v=b.xAxisId,P=a.get(v);o[m+""]=P,b.offsetXAxis=m,delete b.xAxisId,s.xAxes=o,o.length=++i}if(b.yAxisId){const v=b.yAxisId,P=a.get(v);n[m+""]=P,b.offsetYAxis=m,delete b.yAxisId,s.yAxes=n,n.length=++l}r[m+""]=b}r.length=c.length;const h=t.getVisitorParamsState().get("series");if(!h||h.length===0)return;const d={};s.series=d;for(let m=0;m<h.length;m++)d[m+""]=h[m];d.length=h.length}}class H{visit(t,e,s){return f(t,e,s,"plotVisOnly","plotVisOnly"),A(t,e,s,"dispBlanksAs","dispBlanksAs"),f(t,e,s,".//extLst/ext/dataDisplayOptions16/dispNaAsBlank","dispNaAsBlank"),f(t,e,s,"showDLblsOverMax","showDLblsOverMax"),s}afterVisit(t,e,s){try{const r=t.getValAttrAsBoolean("autoTitleDeleted",e),o=t.evaluate("title",e);t.setToPath(s,"title.shown",!(r===!0||!o));const i=t.evaluate("legend",e);t.setToPath(s,"legend.shown",i!==null)}catch(r){throw new Error("Unexpected Error parsing Chart: "+r)}}}class J{visit(t,e,s){let r={};return s.plotArea=r,r}}class O{EnumMappings(){}static fromOoxmlGradientType(t){return t==="circle"?"radial":t}static fromOoxmlLineCap(t){if(t==="rnd")return"round";if(t==="flat")return"butt";if(t==="sq")return"square";throw new Error("Invalid lineCap type: "+t)}static fromOoxmlCompound(t){return t==="sng"?"single":t}static fromOoxmlAlignment(t){return t==="ctr"?"center":t}}class D{visit(t,e,s){}processStroke(t,e,s){const r={},o=t.evaluate("ln",e);if(o){o.hasAttribute("algn")&&(r.align=O.fromOoxmlAlignment(o.getAttribute("algn"))),o.hasAttribute("cap")&&(r.lineCap=O.fromOoxmlLineCap(o.getAttribute("cap"))),o.hasAttribute("cmpd")&&(r.compound=O.fromOoxmlCompound(o.getAttribute("cmpd"))),o.hasAttribute("w")&&(r.width=g.t(o.getAttribute("w")));const i=t.evaluate("miter",o);i&&(r.lineJoin="miter",i.hasAttribute("lim")&&(r.miter=parseFloat(i.getAttribute("lim")))),t.evaluate("bevel",o)&&(r.lineJoin="bevel"),t.evaluate("round",o)&&(r.lineJoin="round");const n=t.evaluate("custDash",o);if(n){const c=t.evaluate("ds",n);if(c&&c.length>0){let h="";for(let d=0;d<c.length;d++){const m=c.item(d);h+=g.a(m.getAttribute("d"))+","+g.a(m.getAttribute("sp"))}r.dash=h}}const l=t.evaluate("prstDash",o);l&&l.hasAttribute("val")&&(r.dash=l.getAttribute("val")),this.parseEndElement(t,o,r,"headEnd","head"),this.parseEndElement(t,o,r,"tailEnd","tail");const a=this.processFill(t,o,s);r.fill=a}return r}parseEndElement(t,e,s,r,o){const i=t.evaluate(r,e);if(i&&(i.hasAttribute("type")&&(s[o+"Type"]=i.getAttribute("type")),i.hasAttribute("len")||i.hasAttribute("w"))){const n=i.getAttribute("len")?i.getAttribute("len"):"med",l=i.getAttribute("w")?i.getAttribute("w"):"med";s[o+"Size"]=n+"-"+l}}processFill(t,e,s){const r={};if(t.evaluate("noFill",e))return r.none=!0,r;const o=t.evaluate("solidFill",e);if(o){const a=this.processAdjColor(t,o);return a&&(r.solid=a),r}const i=t.evaluate("gradFill",e);if(i){i.hasAttribute("rotWithShape")&&(r.isRotated=i.getAttribute("rotWithShape")==="1");const a=this.processGradFill(t,i);return r.gradient=a,r}const n=t.evaluate("pattFill",e);if(n){const a=this.processPatternFill(t,n);return r.pattern=a,r}const l=t.evaluate("blipFill",e);if(l){l.hasAttribute("rotWithShape")&&(r.isRotated=g.b(l.getAttribute("rotWithShape"))),l.hasAttribute("dpi")&&(r.dpi=l.getAttribute("dpi"));const a=this.processImageFill(t,l);return r.image=a,r}return r.none=!0,r}processGradFill(t,e){const s={},r=t.evaluate("lin",e);if(r){if(s.type="linear",r.hasAttribute("ang")){const c=g.p(r.getAttribute("ang"));s.angle=c}if(r.hasAttribute("scaled")){const c=g.b(r.getAttribute("scaled"));s.scaled=c}}const o={};e.hasAttribute("flip")&&(o.mirror=e.getAttribute("flip")),Object.keys(o).length>0&&(s.tile=o);const i=t.evaluate("path",e);if(i){i.hasAttribute("path")&&(s.type=O.fromOoxmlGradientType(i.getAttribute("path")));const c=t.evaluate("fillToRect",i);c&&(s.fillTo=this.getRect(c))}const n=t.evaluate("tileRect",e);n&&(s.tile.bounds=this.getRect(n));const l=[],a=t.evaluate("gsLst/gs",e);for(let c=0;a&&c<a.length;c++){const h=a.item(c),d={offset:g.a(h.getAttribute("pos")),color:this.processAdjColor(t,h)};l.push(d)}return l.length>0&&(s.stops=l),s}getRect(t){const e={};return t.hasAttribute("t")&&(e.t=g.a(t.getAttribute("t"))),t.hasAttribute("l")&&(e.l=g.a(t.getAttribute("l"))),t.hasAttribute("b")&&(e.b=g.a(t.getAttribute("b"))),t.hasAttribute("r")&&(e.r=g.a(t.getAttribute("r"))),Object.keys(e).length===0?null:e}processImageFill(t,e){return{ref:"https://www.sheetxl.com/logo-color-padded-white.jpg",tile:!1}}processPatternFill(t,e){const s={},r=e.getAttribute("prst");s.type=r;const o=t.evaluate("bgClr",e);if(o){const n=this.processAdjColor(t,o);n&&(s.background=n)}const i=t.evaluate("fgClr",e);if(i){let n=this.processAdjColor(t,i);n&&(s.foreground=n)}return s}processAdjColor(t,e){const s=t.evaluate("hslClr",e);if(s)return this.processHslClr(t,s);const r=t.evaluate("prstClr",e);if(r)return this.processClrWithValAttribute(t,r);const o=t.evaluate("schemeClr",e);if(o)return this.processClrWithValAttribute(t,o);const i=t.evaluate("sysClr",e);if(i)return this.processClrWithValAttribute(t,i);const n=t.evaluate("scrgbClr",e);if(n)return this.processScrgbClrElement(t,n);const l=t.evaluate("srgbClr",e);return l?this.processSrgbClrElement(t,l):null}processScrgbClrElement(t,e){let s="lrgba("+g.a(e.getAttribute("r"))+","+g.a(e.getAttribute("g"))+","+g.a(e.getAttribute("b"))+")";return s+=this.processAdjustments(t,e),s}processSrgbClrElement(t,e){let s=e.getAttribute("val");return s+=this.processAdjustments(t,e),s}processHslClr(t,e){let s="hsl("+g.p(e.getAttribute("hue"))+","+g.a(e.getAttribute("sat"))+","+g.a(e.getAttribute("lum"))+")";return s+=this.processAdjustments(t,e),s}processClrWithValAttribute(t,e){const s=e.getAttribute("val");if(!s)return;let r=s;return r+=this.processAdjustments(t,e),r}processAdjustments(t,e){let s="";const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType===1){let n=i.localName;s+=n==="hue"||n==="hueOff"||n==="hueMod"?this.processAdjustmentElement(t,e,n,6e4):n==="gray"||n==="comp"||n==="inv"||n==="gamma"||n==="invGamma"?this.processAdjustmentElement(t,e,n,1):this.processAdjustmentElement(t,e,n)}}return s}processAdjustmentElement(t,e,s,r=1e3){const o=t.evaluate(s,e);if(!o)return"";const i=o.getAttribute("val");return i?` ${s} ${!i||parseFloat(i)/r}`:` ${s}`}}class L extends D{visit(t,e,s){try{const r=t.evaluate("xfrm",e);if(r){Y(r,s);const l={x:0,y:0,width:0,height:0},a=t.evaluate("off",r);a&&(l.x=g.c(a.getAttribute("x"))??0,l.y=g.c(a.getAttribute("y"))??0);const c=t.evaluate("ext",r);a&&(l.width=g.c(c.getAttribute("cx"))??0,l.height=g.c(c.getAttribute("cy"))??0),s.bounds=l}const o=t.evaluate("prstGeom",e);o?.hasAttribute("prst")?s.geometry=o?.getAttribute("prst"):t.evaluate("customGeom",e)&&console.warn("customGeom not supported yet");const i=this.processFill(t,e,s);i&&Object.keys(i).length>0&&(s.fill=i);const n=this.processStroke(t,e,s);return n&&Object.keys(n).length>0&&(s.stroke=n),s}catch(r){throw console.warn(r),new Error("Unexpected Error parsing Shape Properties element")}}}class N{visit(t,e,s){let r={};if(A(t,e,r,"grouping","grouping"),f(t,e,r,"varyColors","varyColors"),y(t,e,r,"gapWidth","gapWidth",.01),y(t,e,r,"overlap","overlap",.01),this.parseType(t,e,r),C(t,e,r,"bubbleScale","bubbleScale"),f(t,e,r,"showNegBubbles","showNegativeBubbleValues"),f(t,e,r,"sizeRepresents","bubbleSizeRepresentsWidth"),C(t,e,r,"firstSliceAng","startAngle"),C(t,e,r,"holeSize","holeSize"),A(t,e,r,"scatterStyle","scatterStyle"),this.parseAxisIds(t,e,r),Object.keys(r).length>0){let o=t.getVisitorParamsState().get("types");o||(o=[],t.getVisitorParamsState().set("types",o)),o.push(r)}return r}parseType(t,e,s){switch(e.localName){case"areaChart":s.type="area";break;case"bubbleChart":s.type="bubble";break;case"doughnutChart":case"ofPieType":case"pieChart":s.type="pie";break;case"lineChart":s.type="line";break;case"scatterChart":s.type="scatter"}}parseAxisIds(t,e,s){const r=t.evaluate("axId",e);if(!r||r.length===0)return;const o=r.item(0).getAttribute("val");s.xAxisId=o;const i=r.item(1).getAttribute("val");s.yAxisId=i}}class Q extends N{parseType(t,e,s){const r=t.getValAttrAsString("barDir",e);r&&(s.type=r==="col"?"column":"bar")}}class w{constructor(t){this.jsonKey=t}visit(t,e,s){let r={},o=r,i=t.getValAttrAsString("idx",e);i!==null&&(o={},o[i]=r);const n=t.getValAttrAsBoolean("delete",e);this.parseNumFormat(t,e,r),n===!0?(r.showBubbleSize=!1,r.showCatName=!1,r.showLeaderLines=!1,r.showPercentage=!1,r.showSerName=!1,r.showVal=!1,r.showLegendKey=!1):(f(t,e,r,"showBubbleSize","showBubbleSize"),f(t,e,r,"showCatName","showCatName"),f(t,e,r,"showLeaderLines","showLeaderLines"),f(t,e,r,"showPercent","showPercentage"),f(t,e,r,"showSerName","showSerName"),f(t,e,r,"showVal","showVal"),f(t,e,r,"showLegendKey","showLegendKey"));const l=t.evaluate("separator",e);return l!==null&&(r.separator=l.textContent),A(t,e,r,"dLblPos","position"),s[this.jsonKey]=o,r}parseNumFormat(t,e,s){const r=t.evaluate("numFmt",e);if(r){const o=r.getAttribute("formatCode");s.formatCode=o,r.hasAttribute("sourceLinked")&&(s.sourceLinked=r.getAttribute("sourceLinked")==="1")}}}const M=(u,t,e)=>{if(u.getValAttrAsBoolean("invertIfNegative",t)===!0)if(u.evaluate("extLst/ext/invertSolidFillFmt",t)){if(e.fill&&e.fillNegative){const s=u.getFromPath(e,"fill.solid.adjs");s&&u.setToPath(e,"fillNegative.solid.adjs",s)}}else{const s={val:"FFFFFF"},r={};r.solid=s,e.fillNegative=r;const o={val:"000000"},i={};i.solid=o;const n={};n.fill=i,e.strokeNegative=n}};class Z{visit(t,e,s){const r={};C(t,e,r,"explosion","explosion");let o=t.evaluate("cat/*/f",e);o||(o=t.evaluate("xVal/*/f",e));let i=null;o!==null&&o.firstChild!==null&&(i=o.firstChild.nodeValue),o||(o=t.evaluate("cat/strLit",e),o||(o=t.evaluate("cat/numLit",e)),o&&(i=this.parsePointsAsString(t,o))),i!==null&&(r.xRange=i);let n=t.evaluate("val/*/f",e);n||(n=t.evaluate("yVal/*/f",e));let l=null;n&&n.firstChild&&(l=n.firstChild.nodeValue),n||(n=t.evaluate("val/numLit",e),n!==null&&(l=this.parsePointsAsString(t,n))),l!==null&&(r.valRange=l),this.parseTitleRangeOrValue(t,e,r),C(t,e,r,"idx","idx"),f(t,e,r,"smooth","smooth");const a=t.getVisitorParamsState().get("types").length-1;r.offsetChart=a;let c=t.getVisitorParamsState().get("series");return c||(c=[],t.getVisitorParamsState().set("series",c)),c.push(r),r}parseTitleRangeOrValue(t,e,s){const r=t.evaluate("tx/strRef/f",e);if(r!==null){const o=r.firstChild.nodeValue;t.setToPath(s,"title.range",o)}else{const o=t.evaluate("tx/v",e);o!==null&&t.setToPath(s,"title.text.simpleRun",o.firstChild.nodeValue)}}parsePointsAsString(t,e){let s="{";const r=t.getValAttrAsInteger("ptCount",e),o=t.evaluate("pt",e),i=[];for(let n=0;o&&r&&n<r;n++){let l=null,a=t.evaluate("pt[@idx='"+n+"']/v",e);a instanceof Node&&(l=a.textContent),i[n]=l}for(let n=0;n<i.length;n++)n>0&&(s+=","),i[n]!==void 0&&(s+=i[n]);return s+="}",s}afterVisit(t,e,s){M(t,e,s);let r=t.getFromPath(s,"points");if(r){const o=Object.keys(r);for(let i=0;i<o.length;i++){const n=o[i],l=t.getFromPath(r,n);if(!l)continue;let a=t.getFromPath(l,"markers");a&&(t.setToPath(s,"markers.points."+n,a),delete l.markers)}}}}class tt{DataPointVisitor(){}visit(t,e,s){let r=t.getFromPath(s,"points"),o=null;r?o=r:(o={},t.setToPath(s,"points",o));let i={},n=t.getValAttrAsString("idx",e);return n!==null&&(o[n]=i),f(t,e,i,"bubble3D","bubble3D"),C(t,e,i,"explosion","explosion"),M(t,e,i),i}}class et{visit(t,e,s){const r=e.parentNode.localName;if(r==="ser"||r==="dPt"){const o={},i=t.getValAttrAsString("size",e);i!==null&&(o.size=i);const n=t.getValAttrAsString("symbol",e);return n&&(o.type=n),s.markers=o,o}return null}}class k{visit(t,e,s){let r={};this.parseScaling(t,e,r),y(t,e,r,"majorUnit","majorUnits"),y(t,e,r,"minorUnit","minorUnits"),f(t,e,r,"delete","shown"),this.parseOrientation(t,e,r),this.parseNumFormat(t,e,r),A(t,e,r,"majorTickMark","majorTickMarks"),A(t,e,r,"minorTickMark","minorTickMarks"),A(t,e,r,"crosses","crosses"),y(t,e,r,"crossesAt","crosses"),A(t,e,r,"crossBetween","crossBetween"),this.parseLabelAlign(t,e,r),C(t,e,r,"lblOffset","labelOffset"),A(t,e,r,"tickLblPos","labelPosition");const o=t.getValAttrAsInteger("noMultiLvlLbl",e);r.labelMultiLevel=o!==null&&o===0,C(t,e,r,"tickMarkSkip","tickMarkSkip"),C(t,e,r,"tickLblSkip","labelInterval"),this.parseDisplayCustOrBuiltInUnit(e,t,r),this.parseTimeUnits(t,e,r,"majorUnitDates","majorTimeUnit","majorUnit"),this.parseTimeUnits(t,e,r,"minorUnitDates","minorTimeUnit","minorUnit"),A(t,e,r,"baseTimeUnit","baseUnitDates"),t.getVisitorParamsState().get("axes")||t.getVisitorParamsState().set("axes",new Map);const i=t.getValAttrAsString("axId",e);return t.getVisitorParamsState().get("axes").set(i,r),r}parseTimeUnits(t,e,s,r,o,i){const n={};let l=t.getValAttrAsString(o,e);if(l!==null){n.dem=l;let a=t.getValAttrAsString(i,e);n.amt=a}Object.keys(n).length>0&&(s[r]=n)}parseDisplayCustOrBuiltInUnit(t,e,s){let r=e.getValAttrAsString("dispUnits/builtInUnit",t);r||(r=e.getValAttrAsString("dispUnits/custUnit",t)),r&&(s.displayUnits=r)}parseLabelAlign(t,e,s){let r=t.getValAttrAsString("lblAlgn",e);r!==null&&(r==="ctr"?s.labelAlign="center":r==="l"?s.labelAlign="left":r==="r"&&(s.labelAlign="right"))}parseOrientation(t,e,s){const r=t.getValAttrAsString("AxPos",e);r!==null&&(r==="b"?s.orientation="bottom":r==="l"?s.orientation="left":r==="r"?s.orientation="right":r==="t"&&(s.orientation="top"))}parseNumFormat(t,e,s){const r={},o=t.evaluate("numFmt",e);o!==null&&(o.hasAttribute("formatCode")&&(r.formatCode=o.getAttribute("formatCode")),o.hasAttribute("sourceLinked")&&(r.sourceLinked=o.getAttribute("sourceLinked")==="1")),Object.keys(r).length>0&&(s.labels=r)}parseScaling(t,e,s){const r=t.getValAttrAsString("scaling/orientation",e);r!==null&&(s.inverted=r!=="minMax");const o=t.getValAttrAsFloat("scaling/logBase",e);o!==null&&(s.logBase=o,s.scaleType="log"),y(t,e,s,"scaling/max","max"),y(t,e,s,"scaling/min","min")}afterVisit(t,e,s){s.fill&&s.labels&&(s.labels.fill=s.fill,delete s.fill);let r=t.getValAttrAsBoolean("delete",e);r!==null&&(t.setToPath(s,"labels.shown",r!==!0),t.setToPath(s,"shown",r!==!0));const o=t.getFromPath(s,"dispUnits.displayUnitsLabel");o&&(t.setToPath(s,"displayUnitsLabel",o),delete s.dispUnits);const i=t.evaluate("title",e);t.setToPath(s,"title.shown",i!==null);const n=t.evaluate("minorGridlines",e);t.setToPath(s,"gridLinesMinor.shown",n!==null);const l=t.evaluate("majorGridlines",e);t.setToPath(s,"gridLinesMajor.shown",l!==null)}}class F{constructor(t="text"){this._jsonKey=t}getTextPath(){return this._jsonKey}visit(t,e,s){let r=t.getFromPath(s,this.getTextPath());return r||(r={}),this.parseTextElement(t,e,r,!1),Object.keys(r).length>0&&t.setToPath(s,this.getTextPath(),r),s}parseTextElement(t,e,s,r){const o=t.evaluate("p/pPr/defRPr",e)??t.evaluate("defRPr",e);o&&(this.parseTextProperties(t,o,s),new L().visit(t,o,s));let i=[],n=t.evaluate("p/r",e)??t.evaluate("r",e);const l=c=>{const h={};let d=t.evaluate("t",c);const m=t.evaluate("rPr",c);m&&this.parseTextProperties(t,m,h),d?h.text=d.firstChild.textContent??"":c.textContent&&(h.text=c.textContent??""),i.push(h)};if(n?.length!==void 0)for(let c=0;n&&c<n.length;c++)l(n.item(c));else l(n||e);i.length>0&&(s.runs=i);const a=t.evaluate("bodyPr",e);a&&Y(a,s)}parseTextProperties(t,e,s){if(!e)return;e.hasAttribute("sz")&&(s.size=parseFloat(e.getAttribute("sz"))/100),e.hasAttribute("b")&&(s.weight=e.getAttribute("b")==="1"?700:400),e.hasAttribute("i")&&(s.italic=e.getAttribute("i")==="1"),e.hasAttribute("u")&&(s.underline=e.getAttribute("u")),e.hasAttribute("strike")&&(s.strike=e.getAttribute("strike"));const r=t.evaluate("latin",e);if(r&&!r.getAttribute("typeface").startsWith("+")){const o=s.font??{};if(r.hasAttribute("typeface")&&(o.family=r.getAttribute("typeface")),r.hasAttribute("panose")){const i=r.getAttribute("panose");i&&(o.fallbacks=[p.ut.getPanoseFallback(i)])}r.hasAttribute("pitchFamily")&&(o.pitch=r.getAttribute("pitchFamily")),r.hasAttribute("charset")&&(o.charset=r.getAttribute("charset")),Object.keys(o).length>0&&(s.font=o)}}}class rt{visit(t,e,s){let r=t.getVisitorParamsState().get("series")[t.getValAttrAsInteger("idx",e)];if(r){let o=t.getFromPath(r,"title");o||(o={},t.setToPath(r,"title",o));let i=o,n=t.getValAttrAsBoolean("delete",e);return n!==null&&(i.shown=!n),i}return s}}class st{visit(t,e,s){const r={};return f(t,e,r,"overlay","overlay"),A(t,e,r,"legendPos","position"),s.legend=r,r}}class ot extends L{visit(t,e,s){const r=this.processFill(t,e,s);Object.keys(r).length>0&&(s.fillNegative=r);const o=this.processStroke(t,e,s);return Object.keys(o).length>0&&(s.strokeNegative=o),s}}class _ extends F{constructor(t="title"){super(t)}parseTitleRangeOrValue(t,e,s){let r=t.evaluate("tx/strRef/f",e)??null;if(r){const o=r.firstElementChild.nodeValue;t.setToPath(s,"range",o)}}visit(t,e,s){const r={};f(t,e,r,"overlay","overlay"),s[this._jsonKey]=r;let o=t.getFromPath(r,this.getTextPath());o||(o={}),this.parseTitleRangeOrValue(t,e,r);const i=t.evaluate("txPr",e);i&&this.parseTextElement(t,i,o,!1);const n=t.evaluate("tx/rich",e);return n&&this.parseTextElement(t,n,o,!0),Object.keys(o).length>0&&t.setToPath(r,this.getTextPath(),o),r}afterVisit(t,e,s){if(s?.text){const r=s.text?.rotation??null;r!==null&&(s.rotation=parseInt(r),delete s.title.rotation)}}}class it{visit(t,e,s){const r=t.evaluate("manualLayout",e);if(r){let o={};y(t,r,o,"x","x"),y(t,r,o,"y","y"),y(t,r,o,"w","w"),y(t,r,o,"h","h"),A(t,r,o,"xMode","xMode"),A(t,r,o,"yMode","yMode"),A(t,r,o,"wMode","wMode"),A(t,r,o,"hMode","hMode"),Object.keys(o).length>0&&(s.manualLayout=o)}return s}}class nt{visit(t,e,s){return s.name=e.getAttribute("name"),s}}class lt extends D{visit(t,e,s){const r={};r.name=e.getAttribute("name");const o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1){let l=n.localName;const a=t.evaluate(l,e),c=this.processAdjColor(t,a);r[l]=c}}return Object.keys(r).length>0&&(s.colors=r),r}}class at{visit(t,e,s){const r={};r.name=e.getAttribute("name");const o=t.evaluate("majorFont",e),i=this.processFontElement(t,o,{});r.majorFont=i.family,i.fallbacks&&(r.majorFallbacks=i.fallbacks);const n=t.evaluate("minorFont",e),l=this.processFontElement(t,n,{});return r.minorFont=l.family,i.fallbacks&&(r.minorFallbacks=l.fallbacks),s.fonts=r,r}processFontElement(t,e,s){if(!e)return;const r=t.evaluate("latin",e);if(!r)return;const o=r.getAttribute("typeface");o&&(s.family=o);const i=r.getAttribute("panose");return i&&(s.fallbacks=[p.ut.getPanoseFallback(i)]),s}}class ct{visit(t,e,s){if(!e)return;const r={},o=e.getAttribute("r:id");if(o){const i=t.getRef(o);typeof i=="string"&&(r.address=i)}return t.copyFromAttribute(e,"tooltip",r),t.copyFromAttribute(e,"history",r,"history",t.BOOLEAN_COPY),t.copyFromAttribute(e,"tgtFrame",r,"target"),s.hyperlink=r,r}}class ut{visit(t,e,s){if(!e)return;const r={};return t.copyFromAttribute(e,"ref",r),this.processFilterColumns(t,e,r),Object.keys(r).length>0&&(s.filter=r),r}processColorFilter(t,e){const s={type:p.ou.Type.Color};return t.copyFromAttribute(e,"cellColor",s,"cellColor",t.BOOLEAN_COPY),t.copyFromAttribute(e,"dxfId",s,"styleId",t.INT_COPY),s}processCustomFilter(t,e){const s={};return t.copyFromAttribute(e,"operator",s,"operator",t.BOOLEAN_COPY),t.copyFromAttribute(e,"val",s,"val"),s}processCustomFilters(t,e){const s={type:p.ou.Type.Custom};t.copyFromAttribute(e,"and",s,"and",t.BOOLEAN_COPY);const r=e.childNodes;s.filters=[];for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType!==1)continue;let n=null;i.localName==="customFilter"&&(n=this.processCustomFilter(t,i)),n&&s.filters.push(n)}return s}processDynamicFilter(t,e){const s={type:p.ou.Type.Dynamic};return t.copyFromAttribute(e,"type",s,"dynamicType"),t.copyFromAttribute(e,"val",s,"val",t.INT_COPY),t.copyFromAttribute(e,"maxVal",s,"maxVal",t.INT_COPY),s}processDateGroupItem(t,e){const s={};return t.copyFromAttribute(e,"dateTimeGrouping",s,"group"),t.copyFromAttribute(e,"day",s,"day",t.INT_COPY),t.copyFromAttribute(e,"hour",s,"hour",t.INT_COPY),t.copyFromAttribute(e,"minute",s,"minute",t.INT_COPY),t.copyFromAttribute(e,"month",s,"month",t.INT_COPY),t.copyFromAttribute(e,"second",s,"second",t.INT_COPY),t.copyFromAttribute(e,"year",s,"year",t.INT_COPY),s}processFilterItem(t,e){if(e.hasAttribute("val"))return e.getAttribute("val")}processFilters(t,e){const s={type:p.ou.Type.Items};t.copyFromAttribute(e,"blank",s,"blank",t.BOOLEAN_COPY),t.copyFromAttribute(e,"calendarType",s,"calendarType");let r=[],o=[];const i=e.childNodes;for(let n=0;n<i.length;n++){const l=i.item(n);if(l.nodeType===1){if(l.localName==="dateGroupItem"){const a=this.processDateGroupItem(t,l);a&&r.push(a)}else if(l.localName==="filter"){const a=this.processFilterItem(t,l);a!==void 0&&o.push(a)}}}return r.length>0&&(s.dateGroups=r),o.length>0&&(s.items=o),s}processIcon(t,e){const s={type:p.ou.Type.Icon};return t.copyFromAttribute(e,"iconId",s,"iconId",t.INT_COPY),t.copyFromAttribute(e,"iconSet",s),s}processTop10(t,e){const s={type:p.ou.Type.Top10};return t.copyFromAttribute(e,"filterVal",s,"filterVal",t.FLOAT_COPY),t.copyFromAttribute(e,"percent",s,"percent",t.BOOLEAN_COPY),t.copyFromAttribute(e,"top",s,"top",t.BOOLEAN_COPY),t.copyFromAttribute(e,"val",s,"val",t.FLOAT_COPY),s}processFilterCriteria(t,e,s){if(!e)return;const r=e.childNodes,o=[];for(let i=0;i<r.length;i++){const n=r.item(i);if(n.nodeType!==1)continue;let l=null;n.localName==="colorFilter"?l=this.processColorFilter(t,n):n.localName==="customFilters"?l=this.processCustomFilters(t,n):n.localName==="dynamicFilter"?l=this.processDynamicFilter(t,n):n.localName==="filters"?l=this.processFilters(t,n):n.localName==="iconFilter"?l=this.processIcon(t,n):n.localName==="top10"&&(l=this.processTop10(t,n)),l&&o.push(l)}return o.length>0&&(s.criteria=o),o}processFilterColumn(t,e){if(!e)return null;const s={};if(!e.hasAttribute("colId"))return;s.offset=parseInt(e.getAttribute("colId"));let r=!1;return e.hasAttribute("hiddenButton")&&(r=g.b(e.getAttribute("hiddenButton"))),r&&(s.hiddenButton=!0),e.hasAttribute("showButton")&&(s.showButton=g.b(e.getAttribute("showButton"))),this.processFilterCriteria(t,e,s),s}processFilterColumns(t,e,s){if(!e)return;const r=e.childNodes,o=[];for(let i=0;i<r.length;i++){const n=r.item(i);if(n.nodeType===1&&n.localName==="filterColumn"){const l=this.processFilterColumn(t,n);l&&o.push(l)}}return o.length>0&&(s.fields=o),o}}class ht{visit(t,e,s){if(!e)return;const r={};if(t.copyFromAttribute(e,"ref",r),e.hasAttribute("caseSensitive")){const n=g.b(e.getAttribute("caseSensitive"));r.collatorOptions=n?p.qr.CaseSensitiveOptions:p.qr.CaseInsensitiveOptions}const o=e.getAttribute("sortMethod");o!=null&&o!=="none"&&(o==="stroke"?r.collatorOptions={...r.collatorOptions,collation:"stroke"}:o==="pinYin"&&(r.collatorOptions={...r.collatorOptions,collation:"pinyin"})),e.hasAttribute("columnSort")&&g.b(e.getAttribute("columnSort"))&&(r.orientation=p.w.Orientation.Column);const i=p.to.fastStringToRange(r.ref);return this.processSortConditions(t,e,r,i),Object.keys(r).length>0&&(s.sort=r),r}processSortCondition(t,e,s){if(!e)return null;const r={};if(e.hasAttribute("ref")){if(e.hasAttribute("ref")){const o=e.getAttribute("ref"),i=p.to.fastStringToRange(o);r.offset=s?i.colStart-s.colStart:i.colStart}return r.reverse=!1,e.hasAttribute("descending")&&(r.reverse=g.b(e.getAttribute("descending"))),t.copyFromAttribute(e,"sortBy",r,"sortOn"),t.copyFromAttribute(e,"dxfId",r),t.copyFromAttribute(e,"iconSet",r),t.copyFromAttribute(e,"customList",r),r}console.warn("no ref for sort conditional",t.getPath())}processSortConditions(t,e,s,r){if(!e)return;const o=e.childNodes,i=[];for(let n=0;n<o.length;n++){const l=o.item(n);if(l.nodeType===1&&l.localName==="sortCondition"){const a=this.processSortCondition(t,l,r);a&&i.push(a)}}return i.length>0&&(s.fields=i),i}}class U{visit(t,e,s){}processDataBarColor(t,e,s,r,o="dk1"){if(!e)return;const i=g.d(n=>e.getAttribute(n),o);return i&&(s[r]=i),s}processFonts(t,e,s){if(!e)return;const r=e.childNodes;let o=0;for(let i=0;i<r.length;i++){const n=r.item(i);if(n.nodeType===1&&n.localName==="font"){const l={};this.processFont(t,n,l),s[o++]=l}}return s}processFont(t,e,s){t.getValAttrAsBoolean("b",e,!0)&&(s.weight=700),t.getValAttrAsBoolean("i",e,!0)&&(s.style=p.ut.Style.Italic),t.getValAttrAsBoolean("strike",e,!0)&&(s.strike=!0);const r=t.evaluate("u",e);if(r){const n=r.getAttribute("val");s.underline=n||p.ut.UnderlineStyle.Single}A(t,e,s,"vertAlign","verticalAlign"),s.verticalAlign==="superscript"?s.verticalAlign=p.ut.VerticalAlignment.Super:s.verticalAlign==="subscript"&&(s.verticalAlign=p.ut.VerticalAlignment.Sub),y(t,e,s,"sz","size");const o=t.evaluate("color",e);this.processDataBarColor(t,o,s,"fill"),s.fill||(s.fill="dk1"),A(t,e,s,"name","family"),A(t,e,s,"rFont","family");const i=t.evaluate("family",e);if(i){const n=i.getAttribute("val");if(n)switch(n){case"1":s.fallbacks=["serif"];break;case"2":s.fallbacks=["sans-serif"];break;case"3":s.fallbacks=["monospace"];break;case"4":s.fallbacks=["cursive"];break;case"5":s.fallbacks=["fantasy"]}}return A(t,e,s,"scheme","scheme"),f(t,e,s,"shadow","shadow",!0),f(t,e,s,"outline","outline",!0),t.getValAttrAsBoolean("condense",e,!0)&&(s.letterSpacing=-1),t.getValAttrAsBoolean("extend",e,!0)&&(s.letterSpacing=1),A(t,e,s,"charset","charset"),s}processFills(t,e,s){if(!e)return;const r=e.childNodes;let o=0;for(let i=0;i<r.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="fill"&&this.processFill(t,n,s,o++)}return s}processFill(t,e,s,r){const o={type:p.rt.Type.None},i=e.childNodes;let n=!1;for(let l=0;!n&&l<i.length;l++){const a=i.item(l);a.nodeType===1&&(a.localName==="gradientFill"?(this.processGradientFill(t,a,o),n=!0):a.localName==="patternFill"&&(this.processPatternFill(t,a,o),n=!0))}return s[r]=o,s}processGradientFill(t,e,s){if(!e)return;s.type=p.rt.Type.Gradient;const r=[];s.stops=r,s.angle=90+(e.hasAttribute("degree")?parseFloat(e.getAttribute("degree")):0);const o=e.getAttribute("type");o&&(s.gradientType=o);const i=l=>{if(!l)return 0;const a=parseFloat(l);return isNaN(a)?0:a};(e.hasAttribute("left")||e.hasAttribute("top")||e.hasAttribute("right")||e.hasAttribute("bottom"))&&(s.fillTo={left:i(e.getAttribute("left")),top:i(e.getAttribute("top")),right:i(e.getAttribute("right")),bottom:i(e.getAttribute("bottom"))});const n=e.childNodes;for(let l=0;l<n.length;l++){const a=n.item(l);if(a.nodeType===1&&a.localName==="stop"){const c={};r.push(c);const h=parseFloat(a.getAttribute("position"));c.offset=h;const d=t.evaluate("color",a);this.processDataBarColor(t,d,c,"color")}}return s}processPatternFill(t,e,s){if(!e)return;const r=t.getVisitorParamsState().get("processingDXFs"),o=e.getAttribute("patternType")||(r?p.rt.BuiltInSheetPattern.Solid:p.rt.BuiltInSheetPattern.None);if(o===p.rt.BuiltInSheetPattern.None)return{none:!0};s.type=p.rt.Type.Pattern,o&&(s.patternType=o);let i,n="foreground",l="background";const a=s.patternType===p.rt.BuiltInSheetPattern.Solid&&r;if(a){i="lt1";const d=n;n=l,l=d}const c=t.evaluate("fgColor",e);this.processDataBarColor(t,c,s,n,i);const h=t.evaluate("bgColor",e);return this.processDataBarColor(t,h,s,l,i),a&&!s.foreground&&(s.foreground=i),s}processBorders(t,e,s,r){if(!e)return;const o=e.childNodes;let i=0;for(let n=0;n<o.length;n++){const l=o.item(n);l.nodeType===1&&l.localName==="border"&&this.processBorder(t,l,s,i++,r)}return s}processBorder(t,e,s,r,o){if(!e)return;const i={};return this.processBorderStroke(t,e,i,p.U.Edge.Left),this.processBorderStroke(t,e,i,p.U.Edge.Right),o?(i.right||i.left)&&(i.right?i.vertical={...i.right}:i.vertical={...i.left}):this.processBorderStroke(t,e,i,p.U.Edge.Vertical),this.processBorderStroke(t,e,i,p.U.Edge.Top),this.processBorderStroke(t,e,i,p.U.Edge.Bottom),o?(i.bottom||i.top)&&(i.bottom?i.horizontal={...i.bottom}:i.horizontal={...i.top}):this.processBorderStroke(t,e,i,p.U.Edge.Horizontal),s[r]=i,s}processBorderStroke(t,e,s,r){if(!e)return;const o=t.evaluate(r,e);if(!o)return;const i={};o.hasAttribute("style")&&(i.style=o.getAttribute("style"));const n=t.evaluate("color",o);return n&&this.processDataBarColor(t,n,i,"color"),Object.keys(i).length>0?s[r]=i:null}}class pt extends U{visit(t,e,s){this.processNumFmts(t,t.evaluate("numFmts",e),null),t.getVisitorParamsState().set("colorsToProcess",new Set);const r={fills:{},fonts:{},borders:{}};this.processFonts(t,t.evaluate("fonts",e),r.fonts),this.processFills(t,t.evaluate("fills",e),r.fills),this.processBorders(t,t.evaluate("borders",e),r.borders,!0),r.fills[0]={type:p.rt.Type.None},r.fills[1]={type:p.rt.Type.Pattern,patternType:p.rt.BuiltInSheetPattern.Gray125},r.borders[0]={};const o=[];this.processXFs(t,t.evaluate("cellStyleXfs",e),o,r,null,!1);const i=new Map;if(o.length>0){const a=[];this.processCellStyles(t,t.evaluate("cellStyles",e),a,o,i),s.named=a}const n=[];this.processXFs(t,t.evaluate("cellXfs",e),n,r,i),Object.keys(n).length>0&&(s.direct=n);const l=[];return this.processDXFs(t,t.evaluate("dxfs",e),l),this.processTableStyles(t,t.evaluate("tableStyles",e),s,l),this.processIndexColors(t,t.evaluate("colors/indexedColors",e),s),this.processMruColors(t,t.evaluate("colors/mruColors",e),s),s}processIndexColors(t,e,s){if(!e)return;const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="rgbColor"){const l={color:null};this.processDataBarColor(t,n,l,"color"),l.color&&r.push(l.color)}}s.indexedColors=r}processMruColors(t,e,s){if(!e)return;const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="color"){const l={color:null};this.processDataBarColor(t,n,l,"color"),l.color&&r.push(l.color)}}r.length>0&&(s.mruColors=r)}processNumFmts(t,e,s){if(!e)return;const r=new Map;if(t.getVisitorParamsState().set("numFmts",r),!e)return;const o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="numFmt"){const l=n.getAttribute("numFmtId"),a=n.getAttribute("formatCode");if(l&&a){const c=a.replace(/\\(.)/g,"$1");r.set(parseInt(l),c)}}}}processXFs(t,e,s,r,o=null,i=!0){if(!e)return;const n=e.childNodes;for(let l=0;l<n.length;l++){const a=n.item(l);if(a.nodeType===1&&a.localName==="xf"){const c={};this.processXF(t,a,c,r,o,i),s.push(c)}}}processXF(t,e,s,r,o,i){if(!e)return;const n=e.getAttribute("xfId");if(n&&o){const c=o.get(parseInt(n));c&&c!==p.mt.BuiltInName.Normal&&(s.named=c)}const l=c=>!(!i&&e.hasAttribute(c))||g.b(e.getAttribute("applyFont"));if(l("applyFont")){const c=r.fonts[e.getAttribute("fontId")];c&&(s.font=c)}if(l("applyFill")){const c=r.fills[e.getAttribute("fillId")];c&&Object.keys(c).length>0&&(s.fill=c)}if(l("applyBorder")){const c=r.borders[e.getAttribute("borderId")];c&&Object.keys(c).length>0&&(s.border=c)}if(l("applyNumberFormat")){const c=e.getAttribute("numFmtId");if(c){const h=parseInt(c);let d;const m=t.getVisitorParamsState();if(m){const b=m.get("numFmts");b&&(d=b.get(h)),s.numberFormat=d??h}else console.warn("no visitor params state")}}l("applyAlignment")&&this.processAlignment(t,t.evaluate("alignment",e),s),l("applyProtection")&&this.processProtection(t,t.evaluate("protection",e),s);const a=g.b(e.getAttribute("quotePrefix"));a&&(s.quotePrefix=a)}processAlignment(t,e,s){const r={};if(e?.hasAttribute("horizontal")?r.horizontal=e.getAttribute("horizontal"):r.horizontal=p.tt.HorizontalAlignment.General,e?.hasAttribute("vertical")?r.vertical=e.getAttribute("vertical"):r.vertical=p.tt.VerticalAlignment.Bottom,e?.hasAttribute("indent")?r.indent=parseInt(e.getAttribute("indent")):r.indent=0,e?.hasAttribute("relativeIndent")?r.relativeIndent=parseInt(e.getAttribute("relativeIndent")):r.relativeIndent=0,g.b(e?.getAttribute("wrapText"))?r.overflow=p.tt.Overflow.Wrap:r.overflow=p.tt.Overflow.Visible,g.b(e?.getAttribute("shrinkToFit"))&&(r.overflow=p.tt.Overflow.Shrink),e?.hasAttribute("textRotation")){let i=parseFloat(e.getAttribute("textRotation"));i>0&&i<=90?i=360-i:i>90&&i<=180?i-=90:i===255&&(i=0,r.stacked=!0),r.rotation=i}else r.rotation=0;e?.hasAttribute("justifyLastLine")&&(r.justifyLastLine=g.b(e.getAttribute("justifyLastLine")));const o=e?.getAttribute("readingOrder");return o&&(o==="0"?r.readingDirection=p.tt.ReadingDirection.Auto:o==="1"?r.readingDirection=p.tt.ReadingDirection.LeftToRight:o==="2"?r.readingDirection=p.tt.ReadingDirection.RightToLeft:console.warn(`invalid readingOrder: ${o}`)),Object.keys(r).length>0&&(s.alignment=r),s}processProtection(t,e,s){if(!e)return;const r={},o=e.getAttribute("locked");o&&!g.b(o)&&(r.edit=!0);const i=e.getAttribute("hidden");return i&&g.b(i)&&(r.formulaHidden=!0),Object.keys(r).length>0&&(s.protection=r),s}processDXF(t,e,s){if(!e)return;const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType===1&&i.localName==="font"){const n={};this.processFont(t,i,n),s.font=n}else if(i.nodeType===1&&i.localName==="fill"){const n=[];this.processFill(t,i,n,0),n.length>0&&n[0]&&(s.fill=n[0])}else if(i.nodeType===1&&i.localName==="border"){const n=[];this.processBorder(t,i,n,0,!1),n.length>0&&n[0]&&(s.border=n[0])}}}processDXFs(t,e,s){if(!e)return;t.getVisitorParamsState().set("processingDXFs",!0);const r=new Map;t.getVisitorParamsState().set("dxfs",r);const o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="dxf"){const l={};this.processDXF(t,n,l);const a=s.length;r.set(a,l),s.push(l)}}t.getVisitorParamsState().delete("processingDXFs")}processTableStyle(t,e,s,r,o=!1){const i=e.getAttribute("name"),n={name:i};e.hasAttribute("table")&&(n.table=g.b(e.getAttribute("table"))),e.hasAttribute("pivot")&&(n.pivot=g.b(e.getAttribute("pivot"))),o&&!n.pivot&&r.unshift(null);const l=e.childNodes;for(let a=0;a<l.length;a++){const c=l.item(a);if(c.nodeType===1&&c.localName==="tableStyleElement"){const h=c.getAttribute("type"),d=c.getAttribute("dxfId");let m=r?.[d];m||(console.warn("invalid dfx id",d),m={}),n[h]=m;let b=null;c.hasAttribute("size")&&(b=parseInt(c.getAttribute("size"))),b&&!isNaN(b)&&(m.size=b)}}delete n.name,s[i]=n}processTableStyles(t,e,s,r,o){if(!e)return;const i={},n=e.getAttribute("defaultTableStyle");n&&(i.defaultTableStyle=n);const l=e.getAttribute("defaultPivotStyle");l&&(i.defaultPivotStyle=l);const a=e.childNodes,c={};for(let h=0;h<a.length;h++){const d=a.item(h);d.nodeType===1&&d.localName==="tableStyle"&&this.processTableStyle(t,d,c,r,o)}return Object.keys(c).length>0&&(i.styles=c),Object.keys(i).length>0&&(s.tables=i),s}processCellStyles(t,e,s,r,o){if(!e)return;const i=e.childNodes;for(let n=0;n<i.length;n++){const l=i.item(n);if(l.nodeType===1&&l.localName==="cellStyle"){const a=parseInt(l.getAttribute("xfId")),c=l.getAttribute("name");if(o.set(a,c),!r[a])continue;const h={name:c,style:r[a]};l.getAttribute("hidden")&&(h.hidden=g.b(l.getAttribute("hidden"))),l.getAttribute("iLevel")&&(h.iLevel=parseInt(l.getAttribute("iLevel"))),s.push(h)}}}afterVisit(t,e,s){}}class gt extends U{visit(t,e,s){return this.processSheetRefs(t,t.evaluate("sheets",e),s),this.processBookViews(t,t.evaluate("bookViews",e),s),this.processDefinedNames(t,t.evaluate("definedNames",e),s),this.processCalcPr(t,t.evaluate("calcPr",e),s),this.processWorkbookProtection(t,t.evaluate("workbookProtection",e),s),this.processWorkbookPr(t,t.evaluate("workbookPr",e),s),s}processPassword(t,e,s,r="password"){if(!e)return;const o={};t.copyFromAttribute(e,"algorithmName",o,"algorithmName"),t.copyFromAttribute(e,"hashValue",o,"hashValue"),t.copyFromAttribute(e,"saltValue",o,"saltValue",t.BOOLEAN_COPY),t.copyFromAttribute(e,"spinCount",o,"spinCount",t.INT_COPY),Object.keys(o).length>0&&(s[r]=o)}processWorkbookProtection(t,e,s){if(!e)return;const r={};this.processPassword(t,t.evaluate("workbookPassword",e),r),this.processPassword(t,t.evaluate("revisionsPassword",e),r,"revisionsPassword");const o=i=>i!==!0&&i!=="1"&&i!=="on"&&i!=="true"&&(i===!1||i==="0"||i==="off"||i==="false"||null);return t.copyFromAttribute(e,"lockStructure",r,"structure",o),t.copyFromAttribute(e,"lockWindows",r,"windows",o),t.copyFromAttribute(e,"lockRevision",r,"revision",o),s.protection=r,s}processCalcPr(t,e,s){e&&(s.calc={})}processSheetRefs(t,e,s){if(!e)return;const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);n.nodeType===1&&n.localName==="sheet"&&this.processSheetRef(t,n,r)}s.sheets=r}processSheetRef(t,e,s){const r={};t.copyFromAttribute(e,"name",r,"name"),t.copyFromAttribute(e,"state",r,"visibility");const o=e.getAttribute("r:id"),i=t.getRef(o);i&&(r.sheet=i),s.push(r)}processBookViews(t,e,s){if(!e)return;const r=e.childNodes;let o=0;for(let i=0;o<1&&i<e.childNodes.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="workbookView"&&(this.processWorkbookView(t,n,s),o++)}}processWorkbookView(t,e,s){if(!e)return;const r={};t.copyFromAttribute(e,"activeTab",r,"activeSheetId",[t.INT_COPY,o=>o+1]),e.hasAttribute("activeTab")||(r.activeSheetId=1),t.copyFromAttribute(e,"showHorizontalScroll",r,"showHorizontalScrollbar",t.BOOLEAN_COPY),t.copyFromAttribute(e,"showVerticalScroll",r,"showVerticalScrollbar",t.BOOLEAN_COPY),t.copyFromAttribute(e,"showSheetTabs",r,"showTabs",t.BOOLEAN_COPY),t.copyFromAttribute(e,"tabRatio",r,"tabRatio",[t.FLOAT_COPY,o=>o]),Object.keys(r).length>0&&(s.view=r)}processDefineName(t,e,s,r){if(!e)return;const o={},i=e.firstChild;if(i&&i.nodeType===3&&(o.ref=i.textContent),t.copyFromAttribute(e,"name",o),t.copyFromAttribute(e,"comment",o),t.copyFromAttribute(e,"hidden",o,"hidden",t.BOOLEAN_COPY),e.hasAttribute("localSheetId")){const n=e.getAttribute("localSheetId");if(!r[n]?.name)return void console.warn(`Defined name '${e.getAttribute("name")}' references a sheet with localSheetId '${n}' which does not exist.`);o.scope=r[n].name}t.copyFromAttribute(e,"customMenu",o),t.copyFromAttribute(e,"description",o),t.copyFromAttribute(e,"statusBar",o),t.copyFromAttribute(e,"help",o),t.copyFromAttribute(e,"shortcutKey",o),t.copyFromAttribute(e,"function",o,"function",t.BOOLEAN_COPY),t.copyFromAttribute(e,"functionGroupId",o,"functionGroupId",t.INT_COPY),t.copyFromAttribute(e,"publishToServer",o,"publishToServer",t.BOOLEAN_COPY),t.copyFromAttribute(e,"vbProcedure",o,"vbProcedure",t.BOOLEAN_COPY),t.copyFromAttribute(e,"xlm",o,"xlm",t.BOOLEAN_COPY),Object.keys(o).length>0&&s.push(o)}processDefinedNames(t,e,s){if(!e)return;const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);n.nodeType===1&&n.localName==="definedName"&&this.processDefineName(t,n,r,s.sheets)}r.length>0&&(s.names=r)}processWorkbookPr(t,e,s){e&&t.copyFromAttribute(e,"date1904",s,"date1904",t.BOOLEAN_COPY)}afterVisit(t,e,s){}}class dt{visit(t,e,s){return t.copyFromAttribute(e,"name",s),t.copyFromAttribute(e,"displayName",s),t.copyFromAttribute(e,"ref",s),t.copyFromAttribute(e,"headerRowCount",s,"headerRowCount",t.INT_COPY),t.copyFromAttribute(e,"totalsRowCount",s,"totalsRowCount",t.INT_COPY),this.processTableColumns(t,e,s),this.processTableStyleInfo(t,e,s),s}processTableStyleInfo(t,e,s){if(!e)return;const r=e.childNodes,o={};for(let i=0;i<r.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="tableStyleInfo"&&(t.copyFromAttribute(n,"name",o),t.copyFromAttribute(n,"showColumnStripes",o,"showColumnStripes",t.BOOLEAN_COPY),t.copyFromAttribute(n,"showFirstColumn",o,"showFirstColumn",t.BOOLEAN_COPY),t.copyFromAttribute(n,"showLastColumn",o,"showLastColumn",t.BOOLEAN_COPY),t.copyFromAttribute(n,"showRowStripes",o,"showRowStripes",t.BOOLEAN_COPY))}Object.keys(o).length>0&&(s.styleOptions=o)}processTableColumn(t,e,s){if(!e)return null;const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType===1&&i.localName==="tableColumn"){const n={};t.copyFromAttribute(i,"name",n),t.copyFromAttribute(i,"uniqueName",n),s.push(n)}}return s}processTableColumns(t,e,s){const r=e.childNodes,o=[];for(let i=0;i<r.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="tableColumns"&&this.processTableColumn(t,n,o)}o.length>0&&(s.columns=o)}}class mt{visit(t,e,s){return s}}class x{visit(t,e,s){if(!e)return;const r={};return t.copyFromAttribute(e,"editAs",r,"anchorType"),r.anchor={},this.processOffsetCoord(t,t.evaluate("from",e),r.anchor,"from"),this.processOffsetCoord(t,t.evaluate("to",e),r.anchor,"to"),s.movables||(s.movables=[]),s.movables.push(r),r}processOffsetCoord(t,e,s,r){if(!e)return;const o={c:0,r:0,x:0,y:0};return t.evaluate("col",e)&&(o.c=parseInt(t.evaluate("col",e).textContent)),t.evaluate("row",e)&&(o.r=parseInt(t.evaluate("row",e).textContent)),t.evaluate("colOff",e)&&(o.x=g.c(t.evaluate("colOff",e).textContent)),t.evaluate("rowOff",e)&&(o.y=g.c(t.evaluate("rowOff",e).textContent)),r==="from"?s.tl=o:s.br=o,s}}class I{visit(t,e,s){if(!e)return;const r=t.evaluate("*/cNvPr",e);return r&&(t.copyFromAttribute(r,"name",s),t.copyFromAttribute(r,"desc",s),t.copyFromAttribute(r,"hidden",s,"hidden",t.BOOLEAN_COPY),t.copyFromAttribute(r,"id",s)),s}}class bt extends I{visit(t,e,s){if(!e)return;s=super.visit(t,e,s);const r=t.evaluate("nvGraphicFramePr/cNvGraphicFramePr",e);if(r){const n=t.evaluate("graphicFrameLocks",r);if(n){n.hasAttribute("noChangeAspect")&&(s.lockAspect=n.getAttribute("noChangeAspect")==="1");const l={};Object.keys(l).length>0&&(s.locks=l)}}let o={type:"graphicFrame",json:{}};const i=t.evaluate("graphic/graphicData",e).childNodes;for(let n=0;n<i.length;n++){const l=i.item(n);if(l.nodeType===1)try{let a=l.localName;a==="chart"&&(a="chart"),o.type=a;const c=l.getAttribute("r:id");c&&(o.json=t.getRef(c))}catch(a){console.warn("Unable to parse graphicFrame",a)}}return o&&(s.content=o),o}}class B extends I{visit(t,e,s){if(!e)return;s=super.visit(t,e,s);const r=t.evaluate("nvSpPr/cNvSpPr",e);if(r){const i=t.evaluate("spLocks",r);if(i){i.hasAttribute("noChangeAspect")&&(s.lockAspect=i.getAttribute("noChangeAspect")==="1");const n={};Object.keys(n).length>0&&(s.locks=n)}}t.warn(`Unable to import '${s.name}', shapes are not supported.`);const o={};return s.content={type:"sp",json:o},o}}class ft extends I{visit(t,e,s){if(!e)return;const r=super.visit(t,e,s),o=t.evaluate("nvPicPr/cNvPicPr",e);if(o){t.copyFromAttribute(e,"preferRelativeResize",r,"preferRelativeResize",t.BOOLEAN_COPY);const a=t.evaluate("picLocks",o);if(a){a.hasAttribute("noChangeAspect")&&(r.lockAspect=a.getAttribute("noChangeAspect")==="1");const c={};t.copyFromAttribute(a,"noChangeArrowheads",r,"noChangeArrowheads",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noChangeShapeType",r,"noChangeShapeType",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noEditPoints",r,"noEditPoints",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noAdjustHandles",r,"noAdjustHandles",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noCrop",r,"noCrop",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noGrp",r,"noGrp",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noMove",r,"noMove",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noResize",r,"noResize",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noRot",r,"noRot",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noSelect",r,"noSelect",t.BOOLEAN_COPY),Object.keys(c).length>0&&(r.locks=c)}}const i=t.evaluate("blipFill/blip",e);let n;if(i){const a=i.getAttribute("r:embed")??i.getAttribute("embed");if(!a)return void console.warn("no rId found for blip",i);n=t.getRef(a,!0)}const l={resId:n};return s.content={type:"picture",json:l},r}}class At extends B{visit(t,e,s){if(!e)return;s=super.visit(t,e,s);const r=t.evaluate("nvGrpSpPr/cNvGrpSpPr",e);if(r){const i=t.evaluate("grpSpLocks",r);if(i){i.hasAttribute("noChangeAspect")&&(s.lockAspect=i.getAttribute("noChangeAspect")==="1");const n={};Object.keys(n).length>0&&(s.locks=n)}}t.warn(`Unable to import '${s.name}', group shapes are not supported.`);const o={};return s.content={type:"grpSp",json:o},o}}class yt extends B{visit(t,e,s){if(!e)return;s=super.visit(t,e,s);const r=t.evaluate("nvCxnSpPr/cNvCxnSpPr",e);if(r){const i=t.evaluate("cxnSpLocks",r);if(i){i.hasAttribute("noChangeAspect")&&(s.lockAspect=i.getAttribute("noChangeAspect")==="1");const n={};Object.keys(n).length>0&&(s.locks=n)}}t.warn(`Unable to import '${s.name}', connection shapes are not supported.`);const o={};return s.content={type:"cxnSp",json:o},o}}const j="richTypes";class vt{visit(t,e,s){let r=t.getVisitorParamsState().get(j);r||(r=[],t.getVisitorParamsState().set(j,r));const o=e.childNodes,i=o.length;for(let n=0;n<i;n++){const l=o.item(n);if(l.nodeType===1&&l.localName==="s"){const a={type:l.getAttribute("t")??"n",keys:[]};this.processKeys(t,l,a),r.push(a)}}return s.richTypes=r,r}processKeys(t,e,s){const r=e.childNodes,o=r.length,i=s.keys;for(let n=0;n<o;n++){const l=r.item(n);if(l.nodeType===1&&l.localName==="k"){const a=l.getAttribute("n"),c=l.getAttribute("t");i.push([a,c])}}}}const R="richData";class Ft{visit(t,e,s){let r=t.getVisitorParamsState().get("richTypes");if(!r)return void t.warn("RichValueFound but not type.");let o=t.getVisitorParamsState().get(R);o||(o=[],t.getVisitorParamsState().set(R,o));const i=e.childNodes,n=i.length;for(let l=0;l<n;l++){const a=i.item(l);if(a.nodeType===1&&a.localName==="rv"){const c=r[a.getAttribute("s")],h={type:c.type};this.processValues(t,a,h,c);const d=this.mapType(t,h);o.push(d)}}return s.richData=o,o}mapType(t,e){if(e.type==="_error"){const s=e.errorType;if(s)try{e=p.n.getBuiltInById(s+1)}catch{}}return e}processValues(t,e,s,r){const o=e.childNodes,i=o.length;r.type;const n=r.keys;for(let l=0;l<i;l++){const a=o.item(l);if(a.nodeType===1&&a.localName==="v"){const c=n[l];if(!c)return void t.warn("Invalid richData");const h=c[0],d=c[1];let m=a.textContent;d==="i"&&(m=Number(m)),s[h]=m}}}}class Ct{visit(t,e,s){if(!e)return;const r=[];return this.processAuthors(t,t.evaluate("authors",e),r),r.length>0&&(s.authors=r),s.comments=[],s}processAuthors(t,e,s){if(!e)return;const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType===1&&i.localName==="author"){const n=i.firstChild;n&&n.nodeType===3&&s.push(n.textContent)}}}}class wt{visit(t,e,s){if(!e)return;const r={};return t.copyFromAttribute(e,"ref",r),t.copyFromAttribute(e,"authorId",r,"authorId",t.INT_COPY),r.asNote=!0,s.comments||(s.comments=[]),s.comments.push(r),r}}class Pt{visit(t,e,s){if(!e)return;const r=[];return s.comments=r,r}}class Nt{visit(t,e,s){if(!e)return;const r={};return t.copyFromAttribute(e,"id",r,"id",g.r),t.copyFromAttribute(e,"personId",r,"personId",g.r),t.copyFromAttribute(e,"ref",r),t.copyFromAttribute(e,"parentId",r,"parentId",g.r),t.copyFromAttribute(e,"dT",r),e.hasAttribute("done")&&(r.done=g.b(e.getAttribute("done"))),s.push(r),r}}class Ot{visit(t,e,s){const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="person"){const l={};t.copyFromAttribute(n,"id",l,"id",g.r),t.copyFromAttribute(n,"displayName",l),t.copyFromAttribute(n,"userId",l,"userId",g.r),t.copyFromAttribute(n,"providerId",l),r.push(l)}}return r.length>0&&(s.persons=r),r}}const Tt={};class Vt{constructor(t,e){this.path=t,this.visitor=e}}class E{constructor(){this.visitorsByXmlTagName=new Map,this.scopedVisitorsByXmlTagName=new Map,this.visitorParamsState=null,this.registerVisitor("Relationships",new K),this.registerVisitor("spPr",new L),this.registerVisitor("txBody",new F),this.registerVisitor("txPr",new F),this.registerVisitor("c:chartSpace",new q),this.registerVisitor("c:chartSpace",new H,"chart"),this.registerVisitor("c:plotArea",new J),this.registerVisitor("c:barChart",new Q),this.registerVisitor("c:doughnutChart",new N),this.registerVisitor("c:lineChart",new N),this.registerVisitor("c:ofPieType",new N),this.registerVisitor("c:pieChart",new N),this.registerVisitor("c:scatterChart",new N),this.registerVisitor("c:barChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:doughnutChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:lineChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:ofPieType",new w("dataLabels"),"dLbls"),this.registerVisitor("c:pieChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:scatterChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:ser",new Z),this.registerVisitor("c:dPt",new tt),this.registerVisitor("c:marker",new et),this.registerVisitor("c:catAx",new k),this.registerVisitor("c:valAx",new k),this.registerVisitor("c:dateAx",new k),this.registerVisitor("c:majorGridlines",new S("gridLinesMajor")),this.registerVisitor("c:minorGridlines",new S("gridLinesMinor")),this.registerVisitor("c:chartSpace",null,"txPr"),this.registerVisitor("c:catAx",new F("labels.text"),"txPr"),this.registerVisitor("c:valAx",new F("labels.text"),"txPr"),this.registerVisitor("c:dateAx",new F("labels.text"),"txPr"),this.registerVisitor("c:legend",new st),this.registerVisitor("c:legend",new F("labels.text"),"txPr"),this.registerVisitor("c:legendEntry",new rt),this.registerVisitor("c:ser",new ot,"extLst/ext/invertSolidFillFmt/spPr"),this.registerVisitor("c:ser",new w("labels"),"dLbls"),this.registerVisitor("c:dLbl",new w("points")),this.registerVisitor("c:title",new _),this.registerVisitor("c:title",null,"tx/rich"),this.registerVisitor("c:title",null,"txPr"),this.registerVisitor("c:layout",new it),this.registerVisitor("c:dispUnits",new S("dispUnits")),this.registerVisitor("c:dispUnitsLbl",new _("displayUnitsLabel")),this.registerVisitor("c:dispUnitsLbl",new F,"tx/rich"),this.registerVisitor("a:theme",new nt),this.registerVisitor("a:theme",new lt,"themeElements/clrScheme"),this.registerVisitor("a:theme",new at,"themeElements/fontScheme"),this.registerVisitor("autoFilter",new ut),this.registerVisitor("sortState",new ht),this.registerVisitor("s:workbook",new gt),this.registerVisitor("styleSheet",new pt),this.registerVisitor("table",new dt),this.registerVisitor("hlinkClick",new ct),this.registerVisitor("wsDr",new mt),this.registerVisitor("twoCellAnchor",new x),this.registerVisitor("oneCellAnchor",new x),this.registerVisitor("absoluteAnchor",new x),this.registerVisitor("graphicFrame",new bt),this.registerVisitor("sp",new B),this.registerVisitor("grpSp",new At),this.registerVisitor("cxnSp",new yt),this.registerVisitor("pic",new ft),this.registerVisitor("rvStructures",new vt),this.registerVisitor("rvData",new Ft),this.registerVisitor("comments",new Ct),this.registerVisitor("commentList",new wt,"comment"),this.registerVisitor("comment",new F("content"),"text"),this.registerVisitor("ThreadedComments",new Pt),this.registerVisitor("threadedComment",new Nt),this.registerVisitor("threadedComment",new F("content"),"text"),this.registerVisitor("personList",new Ot)}registerVisitor(t,e,s=null){t.indexOf(":")===-1&&(t="*:"+t);const r=t.split(":"),o=r.length>1?r[1]:r[0];if(!s)return this.visitorsByXmlTagName.set(o,e),void this.visitorsByXmlTagName.set(t,e);let i=this.scopedVisitorsByXmlTagName.get(o);i||(i=[],this.scopedVisitorsByXmlTagName.set(o,i),this.scopedVisitorsByXmlTagName.set(t,i)),i.push(new Vt(s,e))}getVisitorParamsState(){return this.visitorParamsState}convert(t,e,s=Tt){const r=t.documentElement;this.visitorParamsState&&!s?.paramMap||(this.visitorParamsState=s?.paramMap??new Map);const o={};let i=this.visitorsByXmlTagName.get(r.nodeName);if(i||(i=this.visitorsByXmlTagName.get(r.localName)),!i)throw new Error(`A visitor for the root element: '${r.nodeName}' or '${r.localName}' must be registered.`);const n="/"+r.localName,l=new V(null,this,n,r,o,e,s),a=[];this._doWalk(i,l,a,r,o,e,s);for(let c=0;c<a.length;c++){const h=a[c];try{h.visitor?.afterVisit?.(h.context,h.elemParent,h.jsonParent)}catch(d){console.warn(`Error in afterVisit: ${h.context.getPath()}`,d)}}return o}_walkScoped(t,e,s,r,o,i,n){const l=this.scopedVisitorsByXmlTagName.get(t);for(let a=0;l&&a<l.length;a++){const c=l[a];let h=null;try{h=e.evaluate(c.path,r)}catch{console.warn(`"Invalid path '${c.path}' for '${t}'.`)}if(!h)continue;const d=m=>{let b=m.localName,v=m.parentNode;for(;v&&v!==r;)b=v.localName+"/"+b,v=v.parentNode;const P=e.getPath()+"/"+b;if(c.visitor){const T=new V(e,this,P,e.getElemRoot(),e.getJsonRoot(),i,n);this._doWalk(c.visitor,T,s,m,o,i,n)}};if(h.length>0){const m=h;for(let b=0;b<m.length;b++)d(m.item(b))}else d(h)}}_doWalk(t,e,s,r,o,i,n){let l=null;t&&(s.push({visitor:t,context:e,elemParent:r,jsonParent:o}),l=t.visit(e,r,o)),l||(l=o);const a=r.localName;this._walkScoped(a,e,s,r,l,i,n);const c=r.childNodes;for(let h=0;h<c.length;h++){const d=c.item(h);if(d.nodeType===1){const m=d,b=m.localName,v=this.visitorsByXmlTagName.get(b),P=e.getPath()+"/"+b,T=new V(e,this,P,e.getElemRoot(),e.getJsonRoot(),i,n);this._doWalk(v,T,s,m,l??o,i,n)}}return l}}exports.FromOOXMLConverter=E,exports.default=E;
@@ -1,5 +1,5 @@
1
1
  "use strict";var c=Object.create;var n=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var p=(e,r,t,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of s(r))!y.call(e,i)&&i!==t&&n(e,i,{get:()=>r[i],enumerable:!(l=a(r,i))||l.enumerable});return e};var g=(e,r,t)=>(t=e!=null?c(u(e)):{},p(r||!e||!e.__esModule?n(t,"default",{value:e,enumerable:!0}):t,e));/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.24
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.24
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,11 +1,11 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.24
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./BvUZHzHcBTZzu0RP.cjs"),as=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",Ds=new RegExp(`^[${as}][-${as}.0-9·̀-ͯ‿-⁀]*$`,"u");function ps(i){return i>=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const ls="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",Ps=new RegExp(`^[${ls}][-${ls}.0-9·̀-ͯ‿-⁀]*$`,"u");function gs(i){return i>=65&&i<=90||i===95||i>=97&&i<=122||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const G=function(i){return i===32||i===10||i===13||i===9},Es=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},ae=ps,cs=function(i){return ps(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256},fs=[32,10,13,9],Os=Ds,Is=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},Vs=gs,Ns=function(i){return gs(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256},Ls=Ps,Te="http://www.w3.org/XML/1998/namespace",Qt="http://www.w3.org/2000/xmlns/",Rs={__proto__:null,xml:Te,xmlns:Qt},Ms={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},I=-1,ct=-2,W=13,$t=33,nt=10,vt=60,Ut=61,H=62,X=63,Zt=93,me=i=>i===34||i===39,ms=[34,39],$s=[...ms,91,H],Hs=[...ms,vt,Zt],js=[Ut,X,...fs],Fs=[...fs,H,38,vt];function Ie(i,t,s){switch(t){case"xml":s!==Te&&i.fail(`xml prefix must be bound to ${Te}.`);break;case"xmlns":s!==Qt&&i.fail(`xmlns prefix must be bound to ${Qt}.`)}switch(s){case Qt:i.fail(t===""?`the default namespace may not be set to ${s}.`:`may not assign a prefix (even "xmlns") to the URI ${Qt}.`);break;case Te:switch(t){case"xml":break;case"":i.fail(`the default namespace may not be set to ${s}.`);break;default:i.fail("may not assign the xml namespace to another prefix.")}}}const Xs=i=>Ls.test(i),Bs=i=>Os.test(i),hs={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"};class qs{constructor(t){this.i=0,this.prevI=0,this.opt=t??{},this.fragmentOpt=!!this.opt.fragment;const s=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,s){this.nameStartCheck=Vs,this.nameCheck=Ns,this.isName=Xs,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...Rs};const o=this.opt.additionalNamespaces;o!=null&&((function(n,a){for(const h of Object.keys(a))Ie(n,h,a[h])})(this,o),Object.assign(this.ns,o))}else this.nameStartCheck=ae,this.nameCheck=cs,this.isName=Bs,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()}get closed(){return this._closed}_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=[];const{fragmentOpt:t}=this;this.state=t?W:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:s}=this.opt;if(s===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");s="1.0"}this.setXMLVersion(s),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(Ms),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,s){this[hs[t]]=s}off(t){this[hs[t]]=void 0}makeError(t){let s=this.fileName??"";return this.trackPosition&&(s.length>0&&(s+=":"),s+=`${this.line}:${this.column}`),s.length>0&&(s+=": "),new Error(s+t)}fail(t){const s=this.makeError(t),o=this.errorHandler;if(o===void 0)throw s;return o(s),this}write(t){if(this.closed)return this.fail("cannot write after close.");let s=!1;t===null?(s=!0,t=""):typeof t=="object"&&(t=t.toString()),this.carriedFromPrevious!==void 0&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let o=t.length;const n=t.charCodeAt(o-1);!s&&(n===13||n>=55296&&n<=56319)&&(this.carriedFromPrevious=t[o-1],o--,t=t.slice(0,o));const{stateTable:a}=this;for(this.chunk=t,this.i=0;this.i<o;)a[this.state].call(this);return this.chunkPosition+=o,s?this.end():this}close(){return this.write(null)}getCode10(){const t=this.chunk,s=this.i;if(this.prevI=s,this.i++,s>=t.length)return I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>=32||o===9)return o;switch(o){case nt:return this.line++,this.column=0,this.positionAtNewLine=this.position,nt;case 13:return t.charCodeAt(s+1)===nt&&(this.i=s+2),this.line++,this.column=0,this.positionAtNewLine=this.position,ct;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:t,i:s}=this;if(this.prevI=s,this.i=s+1,s>=t.length)return I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>31&&o<127||o>159&&o!==8232||o===9)return o;switch(o){case nt:return this.line++,this.column=0,this.positionAtNewLine=this.position,nt;case 13:{const a=t.charCodeAt(s+1);a!==nt&&a!==133||(this.i=s+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,ct;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const t=this.getCode();return t===ct?nt:t}unGet(){this.i=this.prevI,this.column--}captureTo(t){let{i:s}=this;const{chunk:o}=this;for(;;){const n=this.getCode(),a=n===ct,h=a?nt:n;if(h===I||t.includes(h))return this.text+=o.slice(s,this.prevI),h;a&&(this.text+=`${o.slice(s,this.prevI)}
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./DNocrohI7pZFN-ei.cjs"),as=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",Ds=new RegExp(`^[${as}][-${as}.0-9·̀-ͯ‿-⁀]*$`,"u");function ps(i){return i>=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const ls="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",Ps=new RegExp(`^[${ls}][-${ls}.0-9·̀-ͯ‿-⁀]*$`,"u");function gs(i){return i>=65&&i<=90||i===95||i>=97&&i<=122||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const G=function(i){return i===32||i===10||i===13||i===9},Es=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},ae=ps,cs=function(i){return ps(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256},fs=[32,10,13,9],Os=Ds,Is=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},Vs=gs,Ls=function(i){return gs(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256},Ns=Ps,Te="http://www.w3.org/XML/1998/namespace",Qt="http://www.w3.org/2000/xmlns/",Rs={__proto__:null,xml:Te,xmlns:Qt},Ms={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},I=-1,ct=-2,W=13,$t=33,nt=10,vt=60,Ut=61,H=62,X=63,Zt=93,me=i=>i===34||i===39,ms=[34,39],$s=[...ms,91,H],Hs=[...ms,vt,Zt],js=[Ut,X,...fs],Fs=[...fs,H,38,vt];function Ie(i,t,s){switch(t){case"xml":s!==Te&&i.fail(`xml prefix must be bound to ${Te}.`);break;case"xmlns":s!==Qt&&i.fail(`xmlns prefix must be bound to ${Qt}.`)}switch(s){case Qt:i.fail(t===""?`the default namespace may not be set to ${s}.`:`may not assign a prefix (even "xmlns") to the URI ${Qt}.`);break;case Te:switch(t){case"xml":break;case"":i.fail(`the default namespace may not be set to ${s}.`);break;default:i.fail("may not assign the xml namespace to another prefix.")}}}const Xs=i=>Ns.test(i),Bs=i=>Os.test(i),hs={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"};class qs{constructor(t){this.i=0,this.prevI=0,this.opt=t??{},this.fragmentOpt=!!this.opt.fragment;const s=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,s){this.nameStartCheck=Vs,this.nameCheck=Ls,this.isName=Xs,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...Rs};const o=this.opt.additionalNamespaces;o!=null&&((function(n,a){for(const h of Object.keys(a))Ie(n,h,a[h])})(this,o),Object.assign(this.ns,o))}else this.nameStartCheck=ae,this.nameCheck=cs,this.isName=Bs,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()}get closed(){return this._closed}_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=[];const{fragmentOpt:t}=this;this.state=t?W:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:s}=this.opt;if(s===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");s="1.0"}this.setXMLVersion(s),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(Ms),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,s){this[hs[t]]=s}off(t){this[hs[t]]=void 0}makeError(t){let s=this.fileName??"";return this.trackPosition&&(s.length>0&&(s+=":"),s+=`${this.line}:${this.column}`),s.length>0&&(s+=": "),new Error(s+t)}fail(t){const s=this.makeError(t),o=this.errorHandler;if(o===void 0)throw s;return o(s),this}write(t){if(this.closed)return this.fail("cannot write after close.");let s=!1;t===null?(s=!0,t=""):typeof t=="object"&&(t=t.toString()),this.carriedFromPrevious!==void 0&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let o=t.length;const n=t.charCodeAt(o-1);!s&&(n===13||n>=55296&&n<=56319)&&(this.carriedFromPrevious=t[o-1],o--,t=t.slice(0,o));const{stateTable:a}=this;for(this.chunk=t,this.i=0;this.i<o;)a[this.state].call(this);return this.chunkPosition+=o,s?this.end():this}close(){return this.write(null)}getCode10(){const t=this.chunk,s=this.i;if(this.prevI=s,this.i++,s>=t.length)return I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>=32||o===9)return o;switch(o){case nt:return this.line++,this.column=0,this.positionAtNewLine=this.position,nt;case 13:return t.charCodeAt(s+1)===nt&&(this.i=s+2),this.line++,this.column=0,this.positionAtNewLine=this.position,ct;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:t,i:s}=this;if(this.prevI=s,this.i=s+1,s>=t.length)return I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>31&&o<127||o>159&&o!==8232||o===9)return o;switch(o){case nt:return this.line++,this.column=0,this.positionAtNewLine=this.position,nt;case 13:{const a=t.charCodeAt(s+1);a!==nt&&a!==133||(this.i=s+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,ct;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const t=this.getCode();return t===ct?nt:t}unGet(){this.i=this.prevI,this.column--}captureTo(t){let{i:s}=this;const{chunk:o}=this;for(;;){const n=this.getCode(),a=n===ct,h=a?nt:n;if(h===I||t.includes(h))return this.text+=o.slice(s,this.prevI),h;a&&(this.text+=`${o.slice(s,this.prevI)}
7
7
  `,s=this.i)}}captureToChar(t){let{i:s}=this;const{chunk:o}=this;for(;;){let n=this.getCode();switch(n){case ct:this.text+=`${o.slice(s,this.prevI)}
8
8
  `,s=this.i,n=nt;break;case I:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===I)return this.name+=t.slice(s),I;if(!cs(o))return this.name+=t.slice(s,this.prevI),o===ct?nt:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===I||!G(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=Es,this.getCode=this.getCode10):(this.isChar=Is,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,s=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),s){case vt:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case I:break;default:this.unGet(),this.state=W,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo($s);switch(t){case H:this.doctypeHandler?.(this.text),this.text="",this.state=W,this.doctype=!0;break;case I:break;default:this.text+=String.fromCodePoint(t),t===91?this.state=4:me(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=2)}sDTD(){const t=this.captureTo(Hs);t!==I&&(this.text+=String.fromCodePoint(t),t===Zt?this.state=2:t===vt?this.state=6:me(t)&&(this.state=5,this.q=t))}sDTDQuoted(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=4,this.q=null)}sDTDOpenWaka(){const t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case 33:this.state=7,this.openWakaBang="";break;case X:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const t=String.fromCodePoint(this.getCodeNorm()),s=this.openWakaBang+=t;this.text+=t,s!=="-"&&(this.state=s==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=t===45?10:8}sDTDCommentEnded(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===H?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(X)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===H&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this;const{chunk:s}=this;t:for(;;)switch(this.getCode()){case ct:this.entity+=`${s.slice(t,this.prevI)}
9
9
  `,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===W&&this.textHandler===void 0||(this.text+=a);break t}case I:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(ae(t))this.state=34,this.unGet(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case X:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=W,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(){const t=this.getCodeNorm();t===45?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==H?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=W}sCData(){this.captureToChar(Zt)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===Zt?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){const t=this.getCodeNorm();switch(t){case H:this.cdataHandler?.(this.text),this.text="",this.state=W;break;case Zt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`,this.state=20}}sPIFirstChar(){const t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=24):t===X||G(t)?(this.fail("processing instruction without a target."),this.state=t===X?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=24)}sPIRest(){const{chunk:t,i:s}=this;for(;;){const o=this.getCodeNorm();if(o===I)return void(this.piTarget+=t.slice(s));if(!this.nameCheck(o)){this.piTarget+=t.slice(s,this.prevI);const n=o===X;n||G(o)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?$t:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(o));break}}}sPIBody(){if(this.text.length===0){const t=this.getCodeNorm();t===X?this.state=26:G(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(X)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===H){const{piTarget:s}=this;s.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),this.piHandler?.({target:s,body:this.text}),this.piTarget=this.text="",this.state=W}else t===X?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==X?t!==I&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=$t}sXMLDeclName(){const t=this.captureTo(js);if(t===X)return this.state=$t,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(G(t)||t===Ut){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=t===Ut?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===X)return this.state=$t,void this.fail("XML declaration is incomplete.");G(t)||(t!==Ut&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===X)return this.state=$t,void this.fail("XML declaration is incomplete.");G(t)||(me(t)?this.q=t:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const t=this.captureTo([this.q,X]);if(t===X)return this.state=$t,this.text="",void this.fail("XML declaration is incomplete.");if(t===I)return;const s=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const o=s;this.xmlDecl.version=o,/^1\.[0-9]+$/.test(o)?this.opt.forceXMLVersion||this.setXMLVersion(o):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(s)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=s;break;case"standalone":s!=="yes"&&s!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=s}this.name="",this.state=32}sXMLDeclSeparator(){const t=this.getCodeNorm();t!==X?(G(t)||(this.fail("whitespace required."),this.unGet()),this.state=27):this.state=$t}sXMLDeclEnding(){this.getCodeNorm()===H?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),this.xmlDeclHandler?.(this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=W):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===I)return;const s=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=s.ns=Object.create(null)),this.openTagStartHandler?.(s),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case H:this.openTag();break;case 47:this.state=35;break;default:G(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===H?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==I&&(ae(t)?(this.unGet(),this.state=37):t===H?this.openTag():t===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===Ut?this.state=39:G(t)?this.state=38:t===H?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==I&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case I:return;case Ut:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===H?this.openTag():ae(t)?(this.unGet(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();me(t)?(this.q=t,this.state=40):G(t)||(this.fail("unquoted attribute value."),this.state=42,this.unGet())}sAttribValueQuoted(){const{q:t,chunk:s}=this;let{i:o}=this;for(;;)switch(this.getCode()){case t:return this.pushAttrib(this.name,this.text+s.slice(o,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=s.slice(o,this.prevI),this.state=14,void(this.entityReturnState=40);case nt:case ct:case 9:this.text+=`${s.slice(o,this.prevI)} `,o=this.i;break;case vt:return this.text+=s.slice(o,this.prevI),void this.fail("disallowed character.");case I:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();G(t)?this.state=36:t===H?this.openTag():t===47?this.state=35:ae(t)?(this.fail("no whitespace between attributes."),this.unGet(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(Fs);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case vt:this.fail("disallowed character.");break;case I:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===H?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===H?this.closeTag():G(t)?this.state=44:t!==I&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case H:this.closeTag();break;case I:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:s}=this;const{chunk:o,textHandler:n}=this;t:for(;;)switch(this.getCode()){case vt:if(this.state=15,n!==void 0){const{text:a}=this,h=o.slice(t,this.prevI);a.length!==0?(n(a+h),this.text=""):h.length!==0&&n(h)}s=0;break t;case 38:this.state=14,this.entityReturnState=W,n!==void 0&&(this.text+=o.slice(t,this.prevI)),s=0;break t;case Zt:switch(s){case 0:s=1;break;case 1:s=2;break;case 2:break;default:throw new Error("impossible state")}break;case H:s===2&&this.fail('the string "]]>" is disallowed in char data.'),s=0;break;case ct:n!==void 0&&(this.text+=`${o.slice(t,this.prevI)}
10
10
  `),t=this.i,s=0;break;case I:n!==void 0&&(this.text+=o.slice(t));break t;default:s=0}this.forbiddenState=s}handleTextOutsideRoot(){let{i:t}=this;const{chunk:s,textHandler:o}=this;let n=!1;t:for(;;){const a=this.getCode();switch(a){case vt:if(this.state=15,o!==void 0){const{text:h}=this,m=s.slice(t,this.prevI);h.length!==0?(o(h+m),this.text=""):m.length!==0&&o(m)}break t;case 38:this.state=14,this.entityReturnState=W,o!==void 0&&(this.text+=s.slice(t,this.prevI)),n=!0;break t;case ct:o!==void 0&&(this.text+=`${s.slice(t,this.prevI)}
11
- `),t=this.i;break;case I:o!==void 0&&(this.text+=s.slice(t));break t;default:G(a)||(n=!0)}}n&&(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(t,s){const{prefix:o,local:n}=this.qName(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const h=s.trim();this.currentXMLVersion==="1.0"&&h===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=h,Ie(this,n,h)}else if(t==="xmlns"){const h=s.trim();this.topNS[""]=h,Ie(this,"",h)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==W&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qName(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:h}=this.qName(s.name);s.prefix=a,s.local=h;const m=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),m===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:h,prefix:m,local:A}=a;let b,C;m===""?(b=h==="xmlns"?Qt:"",C=h):(b=this.resolve(m),b===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(m)}.`),b=m),C=`{${b}}${A}`),n.has(C)&&this.fail(`duplicate attribute: ${C}.`),n.add(C),a.uri=b,o[h]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=W,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=W,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=W,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail(`unexpected close tag: ${s}.`)}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ve,mt;(mt=Ve||(Ve={})).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"},mt.parseStream=async(i,t,s)=>{const o=new qs({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(mt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(mt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(mt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(mt.Events.Attribute,t.onAttribute),t.onText&&o.on(mt.Events.Text,t.onText),t.onError&&o.on(mt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(mt.Events.End,a)}for(;;){const{value:a,done:h}=await i.read();if(h)break;o.write(a)}return o.close(),n};const S=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,E=i=>{const t=parseInt(i);return isNaN(t)?null:t},ht=i=>{const t=parseFloat(i);return isNaN(t)?null:t},k=null;class Ws{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let h=null,m=null,A=null,b=null;const C=[],D={key:null,source:t};let y=null,R=!1;const K=(c,d)=>{let T=A.attributes[c];if(d){if(Array.isArray(d)){for(let j=0;j<d.length;j++)if(T==null||(T=d[j](T),T==null))return}else if(T==null||(T=d(T),T==null))return}return T},x={getSource:()=>y.source,setSource:c=>{y.source=c},setKey:c=>{y.key=c},getFrom:()=>A,getAttribute:(c,d)=>K(c,d)??null,hasAttribute:c=>x.getAttribute(c)!==null,getParent:()=>C[C.length-2].source,getPath:()=>{const c=[];for(let d=0;d<a.length;d++)c.push(a[d].local);return c.join("\\")},parseAttribute:K,copyToObject:(c,d,T,j)=>{const U=K(j??d,T);U!==void 0&&(c[d]=U)},copyTo:(c,d,T)=>{const j=K(T??c,d);j!==void 0&&(y.source[c]=j)},warn:c=>{o?o?.(c):console.warn(c)}};return{onOpenTag:c=>{let d=c.name;const T=d.indexOf(":");T!==-1&&(d=d.slice(T+1));const j=n.get(d);if(h={local:d,visitor:j,tag:c,destination:null},R)return a.push(h),m=d,void(A=c);b=h?.visitor??null,j&&(y=a.length===0?D:b?.to!==null?{key:null,source:{}}:null,h.destination=y,y&&C.push(y)),a.push(h),m=d,A=c,R=b?.to===null,b?.openTag?.(x)},onCloseTag:c=>{let d=c.name;const T=d.indexOf(":");if(T!==-1&&(d=d.slice(T+1)),d!==m)throw new Error(`mismatch open/close tag: '${d}'/'${m}'`);R||b?.closeTag?.(x);const j=a.pop()??null;h=a[a.length-1]??null;const U=j?.destination;if(U){C.pop(),y=C[C.length-1]??D;const ut=j.visitor;ut&&ut.to&&U.source!==void 0&&(Array.isArray(ut.to)?y.source.push?y.source.push(U.source):o?.(`Unable to parse array for ${ut.from} at ${x.getPath()}`):U.key?y.source[U.key]=U.source:typeof ut.to=="string"&&(y.source[ut.to]=U.source))}m=h?.local??null,A=h?.tag??null,b=h?.visitor??null,R=!h?.destination},onText:c=>{b?.text?.(c,x)},onEnd:s}}}const us=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const h=t(n);if(!h)return null;let m=h.content;try{s&&(m=s(m))}catch(A){console.warn(A)}return o?.parsedRefs?.set(i,m),m},Ne=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let h=n?.parsedRefs?.get(i);if(h!==void 0)return h;const m=t(a);if(!m)return null;const A=m.content;try{const b=new TextDecoder().decode(A),C=s.parseFromString(b,"text/xml"),D=o.convert(C,i,n);return n?.parsedRefs?.set(i,D),D}catch(b){console.warn(b)}return null},Gt=(i,t,s,o,n=null)=>{const a=new Map;let h=t.Directory[i];const m=h?h.length:0;for(let A=0;A<m;A++){const b=h[A];if(!b)continue;let C=b;C.startsWith("/")&&(C=C.substring(1));const D=Ne(C,y=>t.files[y],s,o,n);a.set(C,D)}return a},_s=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Le=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const h=i("theme");h&&(s=_s[h]);let m=i("tint");if(m&&(s+=` ${p.N.AdjustmentType.ETint} ${parseFloat(m)}`),s)return s},Ts=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),ys=i=>i==="true"||i==="1";class Ht{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}}const zs=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},ds={colStart:0,colEnd:0,rowStart:0,rowEnd:0},Gs=Object.freeze(Object.defineProperty({__proto__:null,readBufferXLSX:async(i,t)=>{const{password:s,createWorkbookOptions:o={},...n}=t??{},a=[],h=t?.progress,m=h?.onProgress;let A=0;const b=Promise.resolve().then(()=>require("./BSJkbBMMBW7yd1md.cjs")),C=Promise.resolve().then(()=>require("./DKDOkNGoi7CO8rzb.cjs"));let D=null;try{D=new DOMParser}catch{}let y=null;D||(y=Promise.resolve().then(()=>require("./B8ShxCGjp3Bq9npC.cjs")).then(c=>c.i));let R=null,K=null,x=null;try{const c=await Promise.all([b,C,y]);R=c[0],K=c[1],x=c[2]}catch(c){throw new Error("Unable to load XLSX parser.",{cause:c})}try{const c=R.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!c.Directory)throw new p.xt("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");c.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],c.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const d=new K.FromOOXMLConverter,T=D??new x.DOMParser,j=o?.resources??new p.Dm,U=j.beginPersist(),ut={},Re=new Set,ye=new Map;ye.set("richTypes",[]);const Me=new Map,$e=[],le=w=>c.files[w],be=(w,B)=>{const Z=w.lastIndexOf("/"),st=w.substring(0,Z+1)+"_rels/"+w.substring(Z+1,w.length)+".rels";let dt=B.get(st);return dt||(dt=((L,Se,Ce,ke,jt=null)=>{if(!L)return null;const it=Ne(L,Se,Ce,ke,jt);if(!it)return null;const ot=new Map,yt=Object.keys(it),Ft=yt.length;for(let bt=0;bt<Ft;bt++){const Xt=yt[bt],Ct=it[Xt];ot.set(Xt,Ct)}return ot})(st,le,T,d,Tt),B.set(st,dt)),dt},ce=(w,B,Z,st=Me)=>{let dt=be(B,st).get(w),L=dt?.target;if(!L)return null;if(dt.targetMode==="External")return dt.target;const Se=B.lastIndexOf("/"),Ce=B.substring(0,Se+1);L.startsWith("/")||(L=Ce+L),L=(it=>{const ot=it.split(/\/+/);return ot.reduce((yt,Ft,bt)=>(Ft==="."?yt.splice(bt,1):Ft===".."&&yt.splice(bt-1,2),yt),ot).join("/")})(L);const ke=d?.getVisitorParamsState().get("dxfs");let jt=st.get(L);if(!jt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const it={};jt=it;const ot=async()=>{const yt=((M,F,Jt,_,Q,z,Kt,kt)=>{const u=new Ws,J=new p.Vt$1.TransposedBuilder;let $=null;u.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",S)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let g=0;g<l.length;g++){const V=l[g];V!=="rule"&&(r[V]=r.rule[V])}}delete r.rule}}),u.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",k),e.copyToObject(r,"priority",E),e.copyToObject(r,"stopIfTrue",S);const l=e.getAttribute("dxfId",E);if(l!==null){let g=_?.get(l);g||(z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),g={}),r.style=g}e.copyToObject(r,"aboveAverage",S),e.copyToObject(r,"equalAverage",S),e.copyToObject(r,"stdDev",E),e.copyToObject(r,"bottom",S),e.copyToObject(r,"percent",S),e.copyToObject(r,"rank",E),e.copyToObject(r,"operator",k),e.copyToObject(r,"text",k),e.copyToObject(r,"timePeriod",k)}}),u.registerVisitor({from:"colorScale",to:"colorScale"}),u.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",E),e.copyTo("minLength",E),e.copyTo("showValue",S)}}),u.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",k),e.copyTo("reverse",S),e.copyTo("showValue",S)}}),u.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let g=l.formulas;g||(g=[],l.formulas=g),g.push(e)}}),u.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",k),e.copyTo("value",ht,"val"),e.copyTo("gte",S)}}),u.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Le(g=>e.getAttribute(g));r.colors.push(l)}}),u.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",E,"colId"),e.copyTo("hiddenButton",S),e.copyTo("showButton",S)}}),u.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.du.Type.Color,e.copyTo("cellColor",S),e.copyTo("styleId",E,"dxfId")}}),u.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.du.Type.Dynamic,e.copyTo("dynamicType",k,"type"),e.copyTo("val",ht),e.copyTo("maxVal",ht,"maxVal")}}),u.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.du.Type.Icon,e.copyTo("iconId",E),e.copyTo("iconSet",k)}}),u.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.du.Type.Top10,e.copyTo("filterVal",ht),e.copyTo("percent",S),e.copyTo("top",S),e.copyTo("val",ht)}}),u.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.du.Type.Items,e.copyTo("blank",S),e.copyTo("calendarType",k)}}),u.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",k,"dateTimeGrouping"),e.copyTo("day",E),e.copyTo("hour",E),e.copyTo("minute",E),e.copyTo("month",E),e.copyTo("second",E),e.copyTo("year",E)}}),u.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ht))}}),u.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.du.Type.Custom,e.copyTo("and",S)}}),u.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",k),e.copyTo("value",ht,"val")}}),u.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",k,"sortBy"),e.copyTo("dxfId",k,"sortBy"),e.copyTo("iconSet",k),e.copyTo("customList",k);const g=e.getAttribute("ref");if(g){const V=p.to.fastStringToRange(g,ds).colStart,Y=p.to.fastStringToRange(r.ref,ds),Bt=Y.colStart;l.offset=Y?V-Bt:V}l.reverse=e.getAttribute("descending",S)??!1}}),u.registerVisitor({from:"AlternateContent",to:null});const pe=e=>{$=e.getSource(),e.copyTo("topLeft",k,"topLeftCell");const r=ys(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",S),e.copyTo("showFormulas",S),e.copyTo("zoomScale",E),e.copyTo("showRowHeaders",S,"showRowColHeaders"),e.copyTo("showColumnHeaders",S,"showRowColHeaders"),e.copyTo("showRowGridlines",S,"showGridLines"),e.copyTo("showColumnGridlines",S,"showGridLines")};u.registerVisitor({from:"sheetView",to:"view",openTag:e=>{pe(e)},closeTag:()=>{$=null}}),u.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"customSheetView",to:[],openTag:e=>{pe(e)},closeTag:()=>{$=null}}),u.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!$)return;e.copyTo("cell",k,"activeCell"),e.copyTo("rangeIndex",E,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),u.registerVisitor({from:"pane",to:"pane",openTag:e=>{if($&&e.getAttribute("state")==="frozen"){const r={};$.freezePanes=r,e.copyToObject(r,"topLeft",k,"topLeftCell");const l=$.topLeft?p.to.fastStringToCell($.topLeft):{colIndex:0,rowIndex:0},g={colIndex:0,rowIndex:0};e.copyToObject(g,"colIndex",E,"xSplit"),e.copyToObject(g,"rowIndex",E,"ySplit");const V={colIndex:l.colIndex+g.colIndex,rowIndex:l.rowIndex+g.rowIndex};r.coords=p.to.cellToString(V)}}}),u.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Le(l=>e.getAttribute(l));r&&(M.tabColor=r)}}),u.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),u.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),u.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),u.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),u.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),u.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),u.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let g=r?F(r):"";if(typeof g!="string")return void console.warn("Invalid address ",g);const V=e.getAttribute("location");g.endsWith("\\")&&(g=g.substring(0,g.length-1));const Y=e.getAttribute("location");if(Y&&(V&&V!==Y&&console.warn("display and location are different",V,Y),g+="#"+Y),!g)return void console.warn("No address found for hyperlink. r:id",r);let Bt;const xt=e.getAttribute("tooltip");Bt=xt?{address:g,tooltip:xt}:g,e.setSource({r:l,v:Bt})}}),u.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=F(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),u.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=F(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),u.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),u.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&S(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=V=>V===!0||V==="1"||V==="on"||V==="true"||V===!1||V==="0"||V==="off"||V==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const g={};e.copyToObject(g,"hash",k,"hashValue"),e.copyToObject(g,"algorithm",k,"algorithmName"),e.copyToObject(g,"salt",k,"saltValue"),e.copyToObject(g,"spinCount",E),Object.keys(g).length>0&&(e.getSource().password=g)}}),u.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),u.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",k,"hashValue"),e.copyToObject(l,"algorithm",k,"algorithmName"),e.copyToObject(l,"salt",k,"saltValue"),e.copyToObject(l,"spinCount",E),Object.keys(l).length>0&&(e.getSource().password=l)}}),u.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(M,"defaultColSize",ht,"defaultColWidth"),e.copyToObject(M,"outlineLevelCol",E,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(M,"defaultRowSize",ht,"defaultRowHeight"),e.copyToObject(M,"outlineLevelRow",E,"outlineLevelRow")}}),u.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ht,"width"),e.copyTo("csz",S,"customWidth"),e.copyTo("h",S,"hidden"),e.copyTo("l",E,"outlineLevel"),e.copyTo("s",E,"style")}}),u.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Yt=null;const ks={onOpenTag:e=>{Yt===null&&(Yt="")},onText:e=>{Yt+=e},onEnd:()=>{const e=Jt(Yt);return Yt=null,e},onError:e=>{}};return((e,r,l,g,V,Y,Bt)=>{let xt=!1,ge=!1,qt=[],Wt=!1,At=null,te=null,fe=null,at=null,We=null,_e=null;const As=Bt?.get("richData")??[],ze=p.to.normalizeA1ToR1C1,Ge=p.Ht.createConflatingRanges(),Ue=new Map,Ae=[];let ee=null;const Ze=p.Ht.createConflatingRanges();let se,Dt=!1,q=-1,tt=-1,pt=null,ie=null;const De=[];let Pe=null,Qe=-2,gt=0,_t="",Pt="",Et="",Ot="",zt="",It="",Vt="",Je="",Ke="",Ye="",ts="",es="",ss="",is="",ft=!0,Nt=null,os=!1,Ee=!1,oe=null,Oe=0;return{...l,onEnd:()=>{De.length>0&&(r.rows=De);let f=Ge.done(zs);const v=f.length;if(v>0){const O=new Array(v);for(let N=0;N<v;N++){const lt=f[N],Lt=p.to.rangeToString(lt),Rt=lt.value[1],re=p.to.resolveRelativeToA1(Rt,lt.rowStart,lt.colStart);O[N]=[Lt,re]}r.formulas=O}const rt=Ze.done(!0),P=rt.length;if(P>0){const O=new Array(P);for(let N=0;N<P;N++){const lt=rt[N],Lt=p.to.rangeToString(lt);O[N]=Lt}r.volatile=O}if(Ae.length>0&&(r.dynamicArray=[...Ae]),qt.length>0){qt.sort(p.Ht.createRangeComparator(p.w.Orientation.Column));const O=[];let N=null,lt=-1,Lt=-1,Rt=-1,re=-1,wt=null;const rs=qt.length;rs>0&&(N=qt[0],lt=N.colStart,Lt=N.colEnd,Rt=N.rowEnd,re=N.value,O.push(N));for(let Mt=1;Mt<rs;Mt++)wt=qt[Mt],re!==wt.value||lt!==wt.colStart||Lt!==wt.colEnd||Rt+1!==wt.rowEnd?(O.push(wt),N=wt,lt=N.colStart,Lt=N.colEnd,Rt=N.rowEnd,re=N.value):(Rt=wt.rowEnd,N.rowEnd=Rt);let ns=[];for(let Mt=0;Mt<O.length;Mt++){const ne=O[Mt];ns.push({r:{colStart:ne.colStart,colEnd:ne.colEnd,rowStart:ne.rowStart,rowEnd:ne.rowEnd},v:ne.value})}r.directStyles=ns}const et=e.build();if(et){const O=et.tuples;r.data=O}l?.onEnd?.()},onOpenTag:f=>{let v=f.name;const rt=v.indexOf(":");if(rt!==-1&&(v=v.slice(rt+1)),Oe++,Oe%196608==0&&V(Oe),se){const P=f.attributes;switch(v){case"v":ge=!0;break;case"f":switch(P.t??null){case null:case"normal":Wt=!0;break;case"shared":const et=P.si;te=P.ref,At=et;break;case"array":Wt=!0,te=P.ref,ee=[te,!1];break;case"datatable":Wt=!0,te=P.ref,Wt=!0}P.ca!==void 0&&Ze.append(q,tt);break;case"is":return void(Dt=!0)}return void(Dt&&Y?.onOpenTag(f))}if(xt){if(v==="c"){se=f;const P=f.attributes.r;tt=p.to.fastStringToCol(P);const et=f.attributes.t;et===void 0?ie=null:(ie=et,ie==="str"&&(Dt=!0));let O=f.attributes.s;O===void 0&&(oe!==null||Ee)&&(O="0"),O!==void 0&&(O=parseInt(O),Nt&&Nt.value===O&&Nt.colEnd+1===tt?Nt.colEnd=tt:(Nt={colStart:tt,rowStart:q,colEnd:tt,rowEnd:q,value:O},qt.push(Nt)))}}else{if(v==="row"){xt=!0;const P=f.attributes.r;if(q=parseInt(P)-1,gt=0,Pt=f.attributes.customHeight,Pt!==void 0&&(gt|=Ht.CustomHeight),Pt!==Ke&&(ft=!0,Ke=Pt),_t=f.attributes.ht,_t!==void 0&&(gt|=Ht.Ht),_t!==Je&&(ft=!0,Je=_t),Et=f.attributes.hidden,Et!==void 0&&(gt|=Ht.Hidden),Et!==Ye&&(ft=!0,Ye=Et),zt=f.attributes.s,zt!==void 0&&(gt|=Ht.S),zt!==es&&(ft=!0,es=zt),Ot=f.attributes.customFormat,Ot!==void 0&&(gt|=Ht.CustomFormat),Ot!==ts&&(ft=!0,ts=Ot),It=f.attributes.outlineLevel,It!==void 0&&(gt|=Ht.OutlineLevel),It!==ss&&(ft=!0,ss=It),Vt=f.attributes.collapsed,Vt!==void 0&&(gt|=Ht.Collapsed),Vt!==is&&(ft=!0,is=Vt),gt!==0)if(Qe+1!==q||ft){const et=Pt!==void 0&&(Pt==="1"||Pt==="true");oe=Ot===void 0||Ot!=="1"&&Ot!=="true"||zt===void 0?null:zt,Pe={min:q,max:q,sz:et&&_t!==void 0?parseFloat(_t):-1,csz:et,h:Et!==void 0&&(Et==="1"||Et==="true"),s:oe===null?void 0:oe==="0"?0:parseInt(oe),l:It===void 0||It==="0"?0:parseInt(It),cl:Vt!==void 0&&(Vt==="1"||Vt==="true")},De.push(Pe)}else Pe.max=q;return Qe=q,void(ft=!1)}if(!os&&v==="sheetData"){os=!0;const P=r.cols,et=P?P.length:0;for(let O=0;!Ee&&O<et;O++)P[O].s&&(Ee=!0)}l?.onOpenTag(f)}},onCloseTag:f=>{if(se){let v=f.name;const rt=v.indexOf(":");if(rt!==-1&&(v=v.slice(rt+1)),Dt)if(v==="is"||v==="v"){const P=Y?.onEnd();P!==null&&e.addValue(q,tt,""+P)}else Y?.onCloseTag?.(f);return ge&&(ge=!1),void(v==="c"&&(se=null,Dt=!1))}if(xt)return xt=!1,void(Nt=null);l?.onCloseTag(f)},onText:f=>{if(f=f.trim(),ge){switch(pt=null,ie){case null:case"n":pt=parseFloat(f);break;case"b":pt=f==="1"||f==="true";break;case"s":pt=f;break;case"e":if(f==="#VALUE!"){const rt=se.attributes.vm;if(rt!==void 0){const P=As[parseInt(rt)-1];if(P&&P.isFormulaError){pt={t:p.M.Error,v:P.getCode()};break}}}const v=p.n.getBuiltInByLabel(f);v?pt={t:p.M.Error,v:v.getCode()}:(pt=f,g?.(`Unknown formula error '${f}' in cell ${p.to.cellToString({colIndex:tt,rowIndex:q})}`));break;case"str":case"inlineStr":Dt=!0}pt!==null&&e.addValue(q,tt,pt)}if(ee&&(ie==="e"&&(ee[1]=!0),Ae.push(ee),ee=null),At)if(We===At)at=_e;else{if(at=Ue.get(At),!at){const v=[];fe=ze(f,q,tt,v),at=[fe,v,f],Ue.set(At,at)}We=At,_e=at}if(Wt){const v=[];fe=ze(f,q,tt,v),at=[fe,v,f]}if(at)return Ge.append(q,tt,at),at=null,Wt=!1,At=null,void(te=null);Dt?Y?.onText(f):xt||l?.onText(f)}}})(J,M,u.createEventHandler(M,()=>{},z),z,e=>{A+=e,m?.(A)},ks,kt)})(it,(M,F=!1)=>ce(M,L,F)??null,xs,ke,0,(M,F)=>{F=F?`${F} (${L})`:L,a.push([M,F])},0,ye),Ft=us(L,le),bt=await(async(M,F=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:z}=await Promise.resolve().then(()=>require("./DyVu5n2ipHKTd7DE.cjs"));globalThis.ReadableStream=z}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Jt=new TextDecoder("utf-8");let _=0;const Q=M instanceof Uint8Array?M:new Uint8Array(M);return new ReadableStream({pull(z){if(_>=Q.byteLength)return void z.close();const Kt=Q.subarray(_,Math.min(_+F,Q.byteLength)),kt=Jt.decode(Kt,{stream:_+F<Q.byteLength});z.enqueue(kt),_+=Kt.length}}).getReader()})(Ft);try{await Ve.parseStream(bt,yt,{xmlns:!1})}catch(M){throw console.warn(`Error parsing sheet: '${L}'`,M),new Error(`Error parsing sheet: '${L}'`,{cause:M})}const Xt=be(L,st);let Ct,qe=new Map;if(Xt){const M="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let F;Xt.forEach((_,Q)=>{_.type===M&&(Ct=ce(Q,L,!1,st)?.comments,Ct&&Ct.forEach(z=>{qe.set(z.id,z)}))});const Jt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Xt.forEach((_,Q)=>{_.type===Jt&&(F=ce(Q,L,!1,st))}),F||Ct){const _=Ct??[],Q=F?.comments;if(Q){const z=F?.authors,Kt=Q.length;for(let kt=0;kt<Kt;kt++){const u=Q[kt];if(!u)continue;let J=z&&u.authorId!==void 0?z[u.authorId]:u.authorId;if(J&&J.startsWith("tc=")&&(J=Ts(J.substring(3)),qe.has(J)))continue;let $=null;J&&($=ue.get(J)),$||($=Fe.get(J)),$||($={id:p.te.uuidV4(),displayName:J},Fe.set($.displayName,$),ue.set($.id,$)),J=$?.id??null;const pe={id:p.te.uuidV4(),personId:J,ref:u.ref,done:!1,asNote:!0,content:u.content};_.push(pe)}}it.comments=_}}};$e.push(ot())}else jt=Z?us(L,le,it=>{const ot=j.add({buffer:it});return ot.addReference(ut),Re.add(ot),U.toResourceId(ot)},Tt):Ne(L,le,T,d,Tt);return jt},Tt={paramMap:ye,getRefs:be,getRef:ce,parsedRefs:Me,addPerson:w=>null},he=[];let xe=0;c.Strings&&(xe=parseInt(c.Strings.Unique??c.Strings.length??0));const bs=c.Strings??[];for(let w=0;w<xe;w++)he.push(bs[w]?.t??"");const He=new Map;let je=xe;const xs=w=>{const B=He.get(w);if(B!==void 0)return B;const Z=je;return He.set(w,je++),he.push(w),Z},ue=(Gt("richstructure",c,T,d,Tt),Gt("richdata",c,T,d,Tt),new Map),Fe=new Map,Xe=Gt("people",c,T,d);let St=null;if(Xe.size>0&&(St=Xe.entries().next()?.value?.[1]?.persons,St)){const w=St.length;for(let B=0;B<w;B++){const Z=St[B];ue.set(Z.id,Z),ue.set(Z.displayName,Z)}}const we=Gt("themes",c,T,d,Tt);let Be=null;if(we&&we.entries){let w=we.entries().next();w?.value?.[1]&&(Be=w.value[1])}const ws=new p.Nl(Be);let de=Gt("styles",c,T,d,Tt).entries().next()?.value[1];de&&(de=JSON.parse(p.oe(de)));const vs=Gt("workbooks",c,T,d,Tt);await Promise.all($e);const ve={...vs.entries().next().value[1],styles:de,theme:ws.toJSON()};he.length>0&&(ve.strings=he),St&&St.length>0&&(ve.people=St);const Ss={...o,resources:j,json:ve},Cs=new p.My(Ss);if(Re.forEach(w=>{w.deleteReference(ut)}),U.endPersist(),a.length){const w=h?.onWarning;if(w)for(const B of a){const[Z,st]=B;w(Z,st)}}return Cs}catch(c){let d="Unable to parse XLSX.";throw c instanceof p.ae&&(d="Unable to open XLSX. There are too many rows or columns."),new Error(d,{cause:c})}},writeBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./BSJkbBMMBW7yd1md.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const h=o.sheets[a],m=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,m,h.name);const A=h.sheet,b=i.getSheetAt(a),C=b.getUsedRange();if(C?(m["!ref"]=C.getA1(),C.forEach((D,y)=>{const R={t:"z"},K=y.getCell().getStyle();if(!K.isNormal()){let x=K.getNumberFormat();x!==p.ke.Type.General&&(x===p.ke.Type.ShortDate?x="m/d/yyyy":x===p.ke.Type.MediumDate?x="d-mmm-yy":x===p.ke.Type.LongDate?x="[$-x-sysdate]dddd, mmmm dd, yyyy":x===p.ke.Type.ShortTime?x="h:mm":x===p.ke.Type.MediumTime?x="h:mm AM/PM":x===p.ke.Type.LongTime&&(x="h:mm:ss AM/PM"),R.z=x)}if(D!==null)switch(y.getType()){case p.M.Number:R.t="n",R.v=D;break;case p.M.String:R.t="s",R.v=D;break;case p.M.Boolean:R.t="b",R.v=D;break;case p.M.Error:R.t="e",R.v=D.toString();case p.M.RichData:}m[y.getA1()]=R})):m["!ref"]="A1:A1",A.merges?.length>0){const D=[];m["!merges"]=D;for(let y=0;y<A.merges.length;y++)D.push(s.utils.decode_range(A.merges[y]))}if(A.cols?.length>0){const D=[];m["!cols"]=D;const y=A.cols,R={width:A.defaultColSize??b.getColumnWidthAsFontUnit(b.getColumnHeaders().getDefaultSize())},K=y.length;for(let x=0;x<K;x++){const c=y[x];for(let T=D.length;T<=c.min-1;T++)D.push(R);const d={};c.sz!==void 0&&(d.width=c.sz),c.h!==void 0&&(d.hidden=c.h),c.l!==void 0&&(d.level=c.l);for(let T=c.min;T<=c.max;T++)D.push(d)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.H=Gs,exports.a=i=>parseFloat(i)/1e3,exports.b=ys,exports.c=i=>i?p.te.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Le,exports.p=i=>parseFloat(i)/6e4,exports.r=Ts,exports.t=i=>i?p.te.roundAccurately(parseFloat(i)/12700,4):null;
11
+ `),t=this.i;break;case I:o!==void 0&&(this.text+=s.slice(t));break t;default:G(a)||(n=!0)}}n&&(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(t,s){const{prefix:o,local:n}=this.qName(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const h=s.trim();this.currentXMLVersion==="1.0"&&h===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=h,Ie(this,n,h)}else if(t==="xmlns"){const h=s.trim();this.topNS[""]=h,Ie(this,"",h)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==W&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qName(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:h}=this.qName(s.name);s.prefix=a,s.local=h;const m=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),m===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:h,prefix:m,local:A}=a;let b,C;m===""?(b=h==="xmlns"?Qt:"",C=h):(b=this.resolve(m),b===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(m)}.`),b=m),C=`{${b}}${A}`),n.has(C)&&this.fail(`duplicate attribute: ${C}.`),n.add(C),a.uri=b,o[h]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=W,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=W,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=W,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail(`unexpected close tag: ${s}.`)}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ve,mt;(mt=Ve||(Ve={})).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"},mt.parseStream=async(i,t,s)=>{const o=new qs({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(mt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(mt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(mt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(mt.Events.Attribute,t.onAttribute),t.onText&&o.on(mt.Events.Text,t.onText),t.onError&&o.on(mt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(mt.Events.End,a)}for(;;){const{value:a,done:h}=await i.read();if(h)break;o.write(a)}return o.close(),n};const S=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,E=i=>{const t=parseInt(i);return isNaN(t)?null:t},ht=i=>{const t=parseFloat(i);return isNaN(t)?null:t},k=null;class Ws{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let h=null,m=null,A=null,b=null;const C=[],D={key:null,source:t};let y=null,R=!1;const K=(c,d)=>{let T=A.attributes[c];if(d){if(Array.isArray(d)){for(let j=0;j<d.length;j++)if(T==null||(T=d[j](T),T==null))return}else if(T==null||(T=d(T),T==null))return}return T},x={getSource:()=>y.source,setSource:c=>{y.source=c},setKey:c=>{y.key=c},getFrom:()=>A,getAttribute:(c,d)=>K(c,d)??null,hasAttribute:c=>x.getAttribute(c)!==null,getParent:()=>C[C.length-2].source,getPath:()=>{const c=[];for(let d=0;d<a.length;d++)c.push(a[d].local);return c.join("\\")},parseAttribute:K,copyToObject:(c,d,T,j)=>{const U=K(j??d,T);U!==void 0&&(c[d]=U)},copyTo:(c,d,T)=>{const j=K(T??c,d);j!==void 0&&(y.source[c]=j)},warn:c=>{o?o?.(c):console.warn(c)}};return{onOpenTag:c=>{let d=c.name;const T=d.indexOf(":");T!==-1&&(d=d.slice(T+1));const j=n.get(d);if(h={local:d,visitor:j,tag:c,destination:null},R)return a.push(h),m=d,void(A=c);b=h?.visitor??null,j&&(y=a.length===0?D:b?.to!==null?{key:null,source:{}}:null,h.destination=y,y&&C.push(y)),a.push(h),m=d,A=c,R=b?.to===null,b?.openTag?.(x)},onCloseTag:c=>{let d=c.name;const T=d.indexOf(":");if(T!==-1&&(d=d.slice(T+1)),d!==m)throw new Error(`mismatch open/close tag: '${d}'/'${m}'`);R||b?.closeTag?.(x);const j=a.pop()??null;h=a[a.length-1]??null;const U=j?.destination;if(U){C.pop(),y=C[C.length-1]??D;const ut=j.visitor;ut&&ut.to&&U.source!==void 0&&(Array.isArray(ut.to)?y.source.push?y.source.push(U.source):o?.(`Unable to parse array for ${ut.from} at ${x.getPath()}`):U.key?y.source[U.key]=U.source:typeof ut.to=="string"&&(y.source[ut.to]=U.source))}m=h?.local??null,A=h?.tag??null,b=h?.visitor??null,R=!h?.destination},onText:c=>{b?.text?.(c,x)},onEnd:s}}}const us=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const h=t(n);if(!h)return null;let m=h.content;try{s&&(m=s(m))}catch(A){console.warn(A)}return o?.parsedRefs?.set(i,m),m},Le=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let h=n?.parsedRefs?.get(i);if(h!==void 0)return h;const m=t(a);if(!m)return null;const A=m.content;try{const b=new TextDecoder().decode(A),C=s.parseFromString(b,"text/xml"),D=o.convert(C,i,n);return n?.parsedRefs?.set(i,D),D}catch(b){console.warn(b)}return null},Gt=(i,t,s,o,n=null)=>{const a=new Map;let h=t.Directory[i];const m=h?h.length:0;for(let A=0;A<m;A++){const b=h[A];if(!b)continue;let C=b;C.startsWith("/")&&(C=C.substring(1));const D=Le(C,y=>t.files[y],s,o,n);a.set(C,D)}return a},_s=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Ne=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const h=i("theme");h&&(s=_s[h]);let m=i("tint");if(m&&(s+=` ${p.N.AdjustmentType.ETint} ${parseFloat(m)}`),s)return s},Ts=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),ys=i=>i==="true"||i==="1";class Ht{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}}const zs=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},ds={colStart:0,colEnd:0,rowStart:0,rowEnd:0},Gs=Object.freeze(Object.defineProperty({__proto__:null,readBufferXLSX:async(i,t)=>{const{password:s,createWorkbookOptions:o={},...n}=t??{},a=[],h=t?.progress,m=h?.onProgress;let A=0;const b=Promise.resolve().then(()=>require("./CYAIaD9mR7iUOD9H.cjs")),C=Promise.resolve().then(()=>require("./B7RXKQOUTP0VznzF.cjs"));let D=null;try{D=new DOMParser}catch{}let y=null;D||(y=Promise.resolve().then(()=>require("./C9LTLSnqhkbF3TdA.cjs")).then(c=>c.i));let R=null,K=null,x=null;try{const c=await Promise.all([b,C,y]);R=c[0],K=c[1],x=c[2]}catch(c){throw new Error("Unable to load XLSX parser.",{cause:c})}try{const c=R.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!c.Directory)throw new p.xt("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");c.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],c.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const d=new K.FromOOXMLConverter,T=D??new x.DOMParser,j=o?.resources??new p.Am,U=j.beginPersist(),ut={},Re=new Set,ye=new Map;ye.set("richTypes",[]);const Me=new Map,$e=[],le=w=>c.files[w],be=(w,B)=>{const Z=w.lastIndexOf("/"),st=w.substring(0,Z+1)+"_rels/"+w.substring(Z+1,w.length)+".rels";let dt=B.get(st);return dt||(dt=((N,Se,Ce,ke,jt=null)=>{if(!N)return null;const it=Le(N,Se,Ce,ke,jt);if(!it)return null;const ot=new Map,yt=Object.keys(it),Ft=yt.length;for(let bt=0;bt<Ft;bt++){const Xt=yt[bt],Ct=it[Xt];ot.set(Xt,Ct)}return ot})(st,le,T,d,Tt),B.set(st,dt)),dt},ce=(w,B,Z,st=Me)=>{let dt=be(B,st).get(w),N=dt?.target;if(!N)return null;if(dt.targetMode==="External")return dt.target;const Se=B.lastIndexOf("/"),Ce=B.substring(0,Se+1);N.startsWith("/")||(N=Ce+N),N=(it=>{const ot=it.split(/\/+/);return ot.reduce((yt,Ft,bt)=>(Ft==="."?yt.splice(bt,1):Ft===".."&&yt.splice(bt-1,2),yt),ot).join("/")})(N);const ke=d?.getVisitorParamsState().get("dxfs");let jt=st.get(N);if(!jt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const it={};jt=it;const ot=async()=>{const yt=((M,F,Jt,_,Q,z,Kt,kt)=>{const u=new Ws,J=new p.Vt$1.TransposedBuilder;let $=null;u.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",S)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let g=0;g<l.length;g++){const V=l[g];V!=="rule"&&(r[V]=r.rule[V])}}delete r.rule}}),u.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",k),e.copyToObject(r,"priority",E),e.copyToObject(r,"stopIfTrue",S);const l=e.getAttribute("dxfId",E);if(l!==null){let g=_?.get(l);g||(z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),g={}),r.style=g}e.copyToObject(r,"aboveAverage",S),e.copyToObject(r,"equalAverage",S),e.copyToObject(r,"stdDev",E),e.copyToObject(r,"bottom",S),e.copyToObject(r,"percent",S),e.copyToObject(r,"rank",E),e.copyToObject(r,"operator",k),e.copyToObject(r,"text",k),e.copyToObject(r,"timePeriod",k)}}),u.registerVisitor({from:"colorScale",to:"colorScale"}),u.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",E),e.copyTo("minLength",E),e.copyTo("showValue",S)}}),u.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",k),e.copyTo("reverse",S),e.copyTo("showValue",S)}}),u.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let g=l.formulas;g||(g=[],l.formulas=g),g.push(e)}}),u.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",k),e.copyTo("value",ht,"val"),e.copyTo("gte",S)}}),u.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Ne(g=>e.getAttribute(g));r.colors.push(l)}}),u.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",E,"colId"),e.copyTo("hiddenButton",S),e.copyTo("showButton",S)}}),u.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.ou.Type.Color,e.copyTo("cellColor",S),e.copyTo("styleId",E,"dxfId")}}),u.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.ou.Type.Dynamic,e.copyTo("dynamicType",k,"type"),e.copyTo("val",ht),e.copyTo("maxVal",ht,"maxVal")}}),u.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.ou.Type.Icon,e.copyTo("iconId",E),e.copyTo("iconSet",k)}}),u.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.ou.Type.Top10,e.copyTo("filterVal",ht),e.copyTo("percent",S),e.copyTo("top",S),e.copyTo("val",ht)}}),u.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.ou.Type.Items,e.copyTo("blank",S),e.copyTo("calendarType",k)}}),u.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",k,"dateTimeGrouping"),e.copyTo("day",E),e.copyTo("hour",E),e.copyTo("minute",E),e.copyTo("month",E),e.copyTo("second",E),e.copyTo("year",E)}}),u.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ht))}}),u.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.ou.Type.Custom,e.copyTo("and",S)}}),u.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",k),e.copyTo("value",ht,"val")}}),u.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",k,"sortBy"),e.copyTo("dxfId",k,"sortBy"),e.copyTo("iconSet",k),e.copyTo("customList",k);const g=e.getAttribute("ref");if(g){const V=p.to.fastStringToRange(g,ds).colStart,Y=p.to.fastStringToRange(r.ref,ds),Bt=Y.colStart;l.offset=Y?V-Bt:V}l.reverse=e.getAttribute("descending",S)??!1}}),u.registerVisitor({from:"AlternateContent",to:null});const pe=e=>{$=e.getSource(),e.copyTo("topLeft",k,"topLeftCell");const r=ys(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",S),e.copyTo("showFormulas",S),e.copyTo("zoomScale",E),e.copyTo("showRowHeaders",S,"showRowColHeaders"),e.copyTo("showColumnHeaders",S,"showRowColHeaders"),e.copyTo("showRowGridlines",S,"showGridLines"),e.copyTo("showColumnGridlines",S,"showGridLines")};u.registerVisitor({from:"sheetView",to:"view",openTag:e=>{pe(e)},closeTag:()=>{$=null}}),u.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"customSheetView",to:[],openTag:e=>{pe(e)},closeTag:()=>{$=null}}),u.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!$)return;e.copyTo("cell",k,"activeCell"),e.copyTo("rangeIndex",E,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),u.registerVisitor({from:"pane",to:"pane",openTag:e=>{if($&&e.getAttribute("state")==="frozen"){const r={};$.freezePanes=r,e.copyToObject(r,"topLeft",k,"topLeftCell");const l=$.topLeft?p.to.fastStringToCell($.topLeft):{colIndex:0,rowIndex:0},g={colIndex:0,rowIndex:0};e.copyToObject(g,"colIndex",E,"xSplit"),e.copyToObject(g,"rowIndex",E,"ySplit");const V={colIndex:l.colIndex+g.colIndex,rowIndex:l.rowIndex+g.rowIndex};r.coords=p.to.cellToString(V)}}}),u.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Ne(l=>e.getAttribute(l));r&&(M.tabColor=r)}}),u.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),u.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),u.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),u.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),u.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),u.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),u.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let g=r?F(r):"";if(typeof g!="string")return void console.warn("Invalid address ",g);const V=e.getAttribute("location");g.endsWith("\\")&&(g=g.substring(0,g.length-1));const Y=e.getAttribute("location");if(Y&&(V&&V!==Y&&console.warn("display and location are different",V,Y),g+="#"+Y),!g)return void console.warn("No address found for hyperlink. r:id",r);let Bt;const xt=e.getAttribute("tooltip");Bt=xt?{address:g,tooltip:xt}:g,e.setSource({r:l,v:Bt})}}),u.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=F(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),u.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=F(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),u.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),u.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&S(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=V=>V===!0||V==="1"||V==="on"||V==="true"||V===!1||V==="0"||V==="off"||V==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const g={};e.copyToObject(g,"hash",k,"hashValue"),e.copyToObject(g,"algorithm",k,"algorithmName"),e.copyToObject(g,"salt",k,"saltValue"),e.copyToObject(g,"spinCount",E),Object.keys(g).length>0&&(e.getSource().password=g)}}),u.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),u.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",k,"hashValue"),e.copyToObject(l,"algorithm",k,"algorithmName"),e.copyToObject(l,"salt",k,"saltValue"),e.copyToObject(l,"spinCount",E),Object.keys(l).length>0&&(e.getSource().password=l)}}),u.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(M,"defaultColSize",ht,"defaultColWidth"),e.copyToObject(M,"outlineLevelCol",E,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(M,"defaultRowSize",ht,"defaultRowHeight"),e.copyToObject(M,"outlineLevelRow",E,"outlineLevelRow")}}),u.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ht,"width"),e.copyTo("csz",S,"customWidth"),e.copyTo("h",S,"hidden"),e.copyTo("l",E,"outlineLevel"),e.copyTo("s",E,"style")}}),u.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Yt=null;const ks={onOpenTag:e=>{Yt===null&&(Yt="")},onText:e=>{Yt+=e},onEnd:()=>{const e=Jt(Yt);return Yt=null,e},onError:e=>{}};return((e,r,l,g,V,Y,Bt)=>{let xt=!1,ge=!1,qt=[],Wt=!1,At=null,te=null,fe=null,at=null,We=null,_e=null;const As=Bt?.get("richData")??[],ze=p.to.normalizeA1ToR1C1,Ge=p.Ht.createConflatingRanges(),Ue=new Map,Ae=[];let ee=null;const Ze=p.Ht.createConflatingRanges();let se,Dt=!1,q=-1,tt=-1,pt=null,ie=null;const De=[];let Pe=null,Qe=-2,gt=0,_t="",Pt="",Et="",Ot="",zt="",It="",Vt="",Je="",Ke="",Ye="",ts="",es="",ss="",is="",ft=!0,Lt=null,os=!1,Ee=!1,oe=null,Oe=0;return{...l,onEnd:()=>{De.length>0&&(r.rows=De);let f=Ge.done(zs);const v=f.length;if(v>0){const O=new Array(v);for(let L=0;L<v;L++){const lt=f[L],Nt=p.to.rangeToString(lt),Rt=lt.value[1],re=p.to.resolveRelativeToA1(Rt,lt.rowStart,lt.colStart);O[L]=[Nt,re]}r.formulas=O}const rt=Ze.done(!0),P=rt.length;if(P>0){const O=new Array(P);for(let L=0;L<P;L++){const lt=rt[L],Nt=p.to.rangeToString(lt);O[L]=Nt}r.volatile=O}if(Ae.length>0&&(r.dynamicArray=[...Ae]),qt.length>0){qt.sort(p.Ht.createRangeComparator(p.w.Orientation.Column));const O=[];let L=null,lt=-1,Nt=-1,Rt=-1,re=-1,wt=null;const rs=qt.length;rs>0&&(L=qt[0],lt=L.colStart,Nt=L.colEnd,Rt=L.rowEnd,re=L.value,O.push(L));for(let Mt=1;Mt<rs;Mt++)wt=qt[Mt],re!==wt.value||lt!==wt.colStart||Nt!==wt.colEnd||Rt+1!==wt.rowEnd?(O.push(wt),L=wt,lt=L.colStart,Nt=L.colEnd,Rt=L.rowEnd,re=L.value):(Rt=wt.rowEnd,L.rowEnd=Rt);let ns=[];for(let Mt=0;Mt<O.length;Mt++){const ne=O[Mt];ns.push({r:{colStart:ne.colStart,colEnd:ne.colEnd,rowStart:ne.rowStart,rowEnd:ne.rowEnd},v:ne.value})}r.directStyles=ns}const et=e.build();if(et){const O=et.tuples;r.data=O}l?.onEnd?.()},onOpenTag:f=>{let v=f.name;const rt=v.indexOf(":");if(rt!==-1&&(v=v.slice(rt+1)),Oe++,Oe%196608==0&&V(Oe),se){const P=f.attributes;switch(v){case"v":ge=!0;break;case"f":switch(P.t??null){case null:case"normal":Wt=!0;break;case"shared":const et=P.si;te=P.ref,At=et;break;case"array":Wt=!0,te=P.ref,ee=[te,!1];break;case"datatable":Wt=!0,te=P.ref,Wt=!0}P.ca!==void 0&&Ze.append(q,tt);break;case"is":return void(Dt=!0)}return void(Dt&&Y?.onOpenTag(f))}if(xt){if(v==="c"){se=f;const P=f.attributes.r;tt=p.to.fastStringToCol(P);const et=f.attributes.t;et===void 0?ie=null:(ie=et,ie==="str"&&(Dt=!0));let O=f.attributes.s;O===void 0&&(oe!==null||Ee)&&(O="0"),O!==void 0&&(O=parseInt(O),Lt&&Lt.value===O&&Lt.colEnd+1===tt?Lt.colEnd=tt:(Lt={colStart:tt,rowStart:q,colEnd:tt,rowEnd:q,value:O},qt.push(Lt)))}}else{if(v==="row"){xt=!0;const P=f.attributes.r;if(q=parseInt(P)-1,gt=0,Pt=f.attributes.customHeight,Pt!==void 0&&(gt|=Ht.CustomHeight),Pt!==Ke&&(ft=!0,Ke=Pt),_t=f.attributes.ht,_t!==void 0&&(gt|=Ht.Ht),_t!==Je&&(ft=!0,Je=_t),Et=f.attributes.hidden,Et!==void 0&&(gt|=Ht.Hidden),Et!==Ye&&(ft=!0,Ye=Et),zt=f.attributes.s,zt!==void 0&&(gt|=Ht.S),zt!==es&&(ft=!0,es=zt),Ot=f.attributes.customFormat,Ot!==void 0&&(gt|=Ht.CustomFormat),Ot!==ts&&(ft=!0,ts=Ot),It=f.attributes.outlineLevel,It!==void 0&&(gt|=Ht.OutlineLevel),It!==ss&&(ft=!0,ss=It),Vt=f.attributes.collapsed,Vt!==void 0&&(gt|=Ht.Collapsed),Vt!==is&&(ft=!0,is=Vt),gt!==0)if(Qe+1!==q||ft){const et=Pt!==void 0&&(Pt==="1"||Pt==="true");oe=Ot===void 0||Ot!=="1"&&Ot!=="true"||zt===void 0?null:zt,Pe={min:q,max:q,sz:et&&_t!==void 0?parseFloat(_t):-1,csz:et,h:Et!==void 0&&(Et==="1"||Et==="true"),s:oe===null?void 0:oe==="0"?0:parseInt(oe),l:It===void 0||It==="0"?0:parseInt(It),cl:Vt!==void 0&&(Vt==="1"||Vt==="true")},De.push(Pe)}else Pe.max=q;return Qe=q,void(ft=!1)}if(!os&&v==="sheetData"){os=!0;const P=r.cols,et=P?P.length:0;for(let O=0;!Ee&&O<et;O++)P[O].s&&(Ee=!0)}l?.onOpenTag(f)}},onCloseTag:f=>{if(se){let v=f.name;const rt=v.indexOf(":");if(rt!==-1&&(v=v.slice(rt+1)),Dt)if(v==="is"||v==="v"){const P=Y?.onEnd();P!==null&&e.addValue(q,tt,""+P)}else Y?.onCloseTag?.(f);return ge&&(ge=!1),void(v==="c"&&(se=null,Dt=!1))}if(xt)return xt=!1,void(Lt=null);l?.onCloseTag(f)},onText:f=>{if(f=f.trim(),ge){switch(pt=null,ie){case null:case"n":pt=parseFloat(f);break;case"b":pt=f==="1"||f==="true";break;case"s":pt=f;break;case"e":if(f==="#VALUE!"){const rt=se.attributes.vm;if(rt!==void 0){const P=As[parseInt(rt)-1];if(P&&P.isFormulaError){pt={t:p.M.Error,v:P.getCode()};break}}}const v=p.n.getBuiltInByLabel(f);v?pt={t:p.M.Error,v:v.getCode()}:(pt=f,g?.(`Unknown formula error '${f}' in cell ${p.to.cellToString({colIndex:tt,rowIndex:q})}`));break;case"str":case"inlineStr":Dt=!0}pt!==null&&e.addValue(q,tt,pt)}if(ee&&(ie==="e"&&(ee[1]=!0),Ae.push(ee),ee=null),At)if(We===At)at=_e;else{if(at=Ue.get(At),!at){const v=[];fe=ze(f,q,tt,v),at=[fe,v,f],Ue.set(At,at)}We=At,_e=at}if(Wt){const v=[];fe=ze(f,q,tt,v),at=[fe,v,f]}if(at)return Ge.append(q,tt,at),at=null,Wt=!1,At=null,void(te=null);Dt?Y?.onText(f):xt||l?.onText(f)}}})(J,M,u.createEventHandler(M,()=>{},z),z,e=>{A+=e,m?.(A)},ks,kt)})(it,(M,F=!1)=>ce(M,N,F)??null,xs,ke,0,(M,F)=>{F=F?`${F} (${N})`:N,a.push([M,F])},0,ye),Ft=us(N,le),bt=await(async(M,F=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:z}=await Promise.resolve().then(()=>require("./DfYdEF_tpc11YaSf.cjs"));globalThis.ReadableStream=z}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Jt=new TextDecoder("utf-8");let _=0;const Q=M instanceof Uint8Array?M:new Uint8Array(M);return new ReadableStream({pull(z){if(_>=Q.byteLength)return void z.close();const Kt=Q.subarray(_,Math.min(_+F,Q.byteLength)),kt=Jt.decode(Kt,{stream:_+F<Q.byteLength});z.enqueue(kt),_+=Kt.length}}).getReader()})(Ft);try{await Ve.parseStream(bt,yt,{xmlns:!1})}catch(M){throw console.warn(`Error parsing sheet: '${N}'`,M),new Error(`Error parsing sheet: '${N}'`,{cause:M})}const Xt=be(N,st);let Ct,qe=new Map;if(Xt){const M="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let F;Xt.forEach((_,Q)=>{_.type===M&&(Ct=ce(Q,N,!1,st)?.comments,Ct&&Ct.forEach(z=>{qe.set(z.id,z)}))});const Jt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Xt.forEach((_,Q)=>{_.type===Jt&&(F=ce(Q,N,!1,st))}),F||Ct){const _=Ct??[],Q=F?.comments;if(Q){const z=F?.authors,Kt=Q.length;for(let kt=0;kt<Kt;kt++){const u=Q[kt];if(!u)continue;let J=z&&u.authorId!==void 0?z[u.authorId]:u.authorId;if(J&&J.startsWith("tc=")&&(J=Ts(J.substring(3)),qe.has(J)))continue;let $=null;J&&($=ue.get(J)),$||($=Fe.get(J)),$||($={id:p.te.uuidV4(),displayName:J},Fe.set($.displayName,$),ue.set($.id,$)),J=$?.id??null;const pe={id:p.te.uuidV4(),personId:J,ref:u.ref,done:!1,asNote:!0,content:u.content};_.push(pe)}}it.comments=_}}};$e.push(ot())}else jt=Z?us(N,le,it=>{const ot=j.add({buffer:it});return ot.addReference(ut),Re.add(ot),U.toResourceId(ot)},Tt):Le(N,le,T,d,Tt);return jt},Tt={paramMap:ye,getRefs:be,getRef:ce,parsedRefs:Me,addPerson:w=>null},he=[];let xe=0;c.Strings&&(xe=parseInt(c.Strings.Unique??c.Strings.length??0));const bs=c.Strings??[];for(let w=0;w<xe;w++)he.push(bs[w]?.t??"");const He=new Map;let je=xe;const xs=w=>{const B=He.get(w);if(B!==void 0)return B;const Z=je;return He.set(w,je++),he.push(w),Z},ue=(Gt("richstructure",c,T,d,Tt),Gt("richdata",c,T,d,Tt),new Map),Fe=new Map,Xe=Gt("people",c,T,d);let St=null;if(Xe.size>0&&(St=Xe.entries().next()?.value?.[1]?.persons,St)){const w=St.length;for(let B=0;B<w;B++){const Z=St[B];ue.set(Z.id,Z),ue.set(Z.displayName,Z)}}const we=Gt("themes",c,T,d,Tt);let Be=null;if(we&&we.entries){let w=we.entries().next();w?.value?.[1]&&(Be=w.value[1])}const ws=new p.xl(Be);let de=Gt("styles",c,T,d,Tt).entries().next()?.value[1];de&&(de=JSON.parse(p.oe(de)));const vs=Gt("workbooks",c,T,d,Tt);await Promise.all($e);const ve={...vs.entries().next().value[1],styles:de,theme:ws.toJSON()};he.length>0&&(ve.strings=he),St&&St.length>0&&(ve.people=St);const Ss={...o,resources:j,json:ve},Cs=new p.wy(Ss);if(Re.forEach(w=>{w.deleteReference(ut)}),U.endPersist(),a.length){const w=h?.onWarning;if(w)for(const B of a){const[Z,st]=B;w(Z,st)}}return Cs}catch(c){let d="Unable to parse XLSX.";throw c instanceof p.ae&&(d="Unable to open XLSX. There are too many rows or columns."),new Error(d,{cause:c})}},writeBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./CYAIaD9mR7iUOD9H.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const h=o.sheets[a],m=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,m,h.name);const A=h.sheet,b=i.getSheetAt(a),C=b.getUsedRange();if(C?(m["!ref"]=C.getA1(),C.forEach((D,y)=>{const R={t:"z"},K=y.getCell().getStyle();if(!K.isNormal()){let x=K.getNumberFormat();x!==p.Le.Type.General&&(x===p.Le.Type.ShortDate?x="m/d/yyyy":x===p.Le.Type.MediumDate?x="d-mmm-yy":x===p.Le.Type.LongDate?x="[$-x-sysdate]dddd, mmmm dd, yyyy":x===p.Le.Type.ShortTime?x="h:mm":x===p.Le.Type.MediumTime?x="h:mm AM/PM":x===p.Le.Type.LongTime&&(x="h:mm:ss AM/PM"),R.z=x)}if(D!==null)switch(y.getType()){case p.M.Number:R.t="n",R.v=D;break;case p.M.String:R.t="s",R.v=D;break;case p.M.Boolean:R.t="b",R.v=D;break;case p.M.Error:R.t="e",R.v=D.toString();case p.M.RichData:}m[y.getA1()]=R})):m["!ref"]="A1:A1",A.merges?.length>0){const D=[];m["!merges"]=D;for(let y=0;y<A.merges.length;y++)D.push(s.utils.decode_range(A.merges[y]))}if(A.cols?.length>0){const D=[];m["!cols"]=D;const y=A.cols,R={width:A.defaultColSize??b.getColumnWidthAsFontUnit(b.getColumnHeaders().getDefaultSize())},K=y.length;for(let x=0;x<K;x++){const c=y[x];for(let T=D.length;T<=c.min-1;T++)D.push(R);const d={};c.sz!==void 0&&(d.width=c.sz),c.h!==void 0&&(d.hidden=c.h),c.l!==void 0&&(d.level=c.l);for(let T=c.min;T<=c.max;T++)D.push(d)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.H=Gs,exports.a=i=>parseFloat(i)/1e3,exports.b=ys,exports.c=i=>i?p.te.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Ne,exports.p=i=>parseFloat(i)/6e4,exports.r=Ts,exports.t=i=>i?p.te.roundAccurately(parseFloat(i)/12700,4):null;
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.24
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./BvUZHzHcBTZzu0RP.cjs"),b=["Ok","Cancel"],T=t.reactExports.memo(E=>{const{initialValue:a=null,context:n,onOption:u,onValidateOption:I,onDone:p,onInput:c,options:d=b,defaultOption:x=d?.[0],cancelOption:m="Cancel",sx:O,...R}=E,g=t.reactExports.useMemo(()=>n?.().getNames().findValidName("Range1"),[]),f=t.reactExports.useMemo(()=>{if(!a)return!0},[]),[s,V]=t.reactExports.useState({displayText:a?.getName()??g,errorText:null}),[o,j]=t.reactExports.useState({displayValue:a?.getRanges()??n?.().selection()??null,errorText:null}),[y,N]=t.reactExports.useState(!1),C=t.reactExports.useCallback(async e=>!s.errorText&&!o.errorText,[]),h=t.k((e,l,i)=>{if(!l){let r=null;f?r=n?.().getNames().addReference(s?.displayText,o?.displayValue,!1):(a.getType()==="reference"&&a.doBatch(()=>{a.setName(s?.displayText),a.setReference(o?.displayValue)},`Edit Named '${s?.displayText}'`),r=a),r&&(r.select(),c(r))}u?.(e,l,i),p?.()},[n,s,o,p,u,x,m,c]),v=t.k(e=>{let l=null;try{n?.().getNames().validateName(e)}catch(i){l=i.message}V({displayText:e,errorText:l})},[]),k=t.k(e=>{a&&a.getName().toLowerCase()===e.toLowerCase()||n?.().getNames().validateName(e)},[n,a]),S=t.reactExports.useCallback(e=>{j({displayValue:e??null,errorText:null})},[]);return t.jsxRuntimeExports.jsx(t.Or,{title:(f?"Define":"Edit")+" Range",options:d,onOption:h,onValidateOption:C,defaultOption:x,cancelOption:m,autoFocusSel:".autoFocus",sx:{width:"460px",...O},...R,children:t.jsxRuntimeExports.jsxs(t.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[t.jsxRuntimeExports.jsx(t.Ia,{formName:"name",defaultInput:g,value:s.displayText,onChangeInput:v,onValidate:k,onFocus:e=>{y||e.target?.select(),N(!0)}}),t.jsxRuntimeExports.jsx(t.La,{formName:"range",value:o.displayValue,onChangeInput:S,resolvedAddress:n?n().getNames().getRanges.bind(n().getNames()):void 0,onFocus:e=>{y||e.target?.select(),N(!0)}})]})})});exports.NamedReferenceDialog=T,exports.default=T;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./DNocrohI7pZFN-ei.cjs"),b=["Ok","Cancel"],T=t.reactExports.memo(E=>{const{initialValue:a=null,context:n,onOption:u,onValidateOption:I,onDone:p,onInput:c,options:d=b,defaultOption:x=d?.[0],cancelOption:m="Cancel",sx:O,...R}=E,g=t.reactExports.useMemo(()=>n?.().getNames().findValidName("Range1"),[]),f=t.reactExports.useMemo(()=>{if(!a)return!0},[]),[s,V]=t.reactExports.useState({displayText:a?.getName()??g,errorText:null}),[o,j]=t.reactExports.useState({displayValue:a?.getRanges()??n?.().selection()??null,errorText:null}),[y,N]=t.reactExports.useState(!1),C=t.reactExports.useCallback(async e=>!s.errorText&&!o.errorText,[]),h=t.k((e,l,i)=>{if(!l){let r=null;f?r=n?.().getNames().addReference(s?.displayText,o?.displayValue,!1):(a.getType()==="reference"&&a.doBatch(()=>{a.setName(s?.displayText),a.setReference(o?.displayValue)},`Edit Named '${s?.displayText}'`),r=a),r&&(r.select(),c(r))}u?.(e,l,i),p?.()},[n,s,o,p,u,x,m,c]),v=t.k(e=>{let l=null;try{n?.().getNames().validateName(e)}catch(i){l=i.message}V({displayText:e,errorText:l})},[]),k=t.k(e=>{a&&a.getName().toLowerCase()===e.toLowerCase()||n?.().getNames().validateName(e)},[n,a]),S=t.reactExports.useCallback(e=>{j({displayValue:e??null,errorText:null})},[]);return t.jsxRuntimeExports.jsx(t.Or,{title:(f?"Define":"Edit")+" Range",options:d,onOption:h,onValidateOption:C,defaultOption:x,cancelOption:m,autoFocusSel:".autoFocus",sx:{width:"460px",...O},...R,children:t.jsxRuntimeExports.jsxs(t.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[t.jsxRuntimeExports.jsx(t.Ia,{formName:"name",defaultInput:g,value:s.displayText,onChangeInput:v,onValidate:k,onFocus:e=>{y||e.target?.select(),N(!0)}}),t.jsxRuntimeExports.jsx(t.La,{formName:"range",value:o.displayValue,onChangeInput:S,resolvedAddress:n?n().getNames().getRanges.bind(n().getNames()):void 0,onFocus:e=>{y||e.target?.select(),N(!0)}})]})})});exports.NamedReferenceDialog=T,exports.default=T;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.24
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.24
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.24
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./BvUZHzHcBTZzu0RP.cjs");exports.readBufferCSV=async(i,c)=>{const{papaParseConfig:l,setValuesOptions:g,createWorkbookOptions:f}=c??{},n=c?.progress,h=n?.onProgress,w=await Promise.resolve().then(()=>require("./n7v_sMq879OKt7Yz.cjs")).then(r=>r.p),o=new TextDecoder().decode(i);let u=-1;const d=new y.My(f),t=d.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:y.w.Orientation.Row});let e=0;const m={...l,transform:(r,s)=>{l?.transform&&(r=l.transform(r,s));const a=s;a===0&&u++;let p=r??"";return t.pushAt(u,a,p),e++,e%1e5==0&&h?.(e),r}};return w.parse(o,m).data,t.apply({textParser:!0,...g}),d},exports.writeBufferCSV=async(i,c)=>{const{trimLeadingBlankRow:l=!0,trimLeadingBlankColumn:g=!0,ignoreHidden:f=!1,sheetKey:n=null,papaParseConfig:h={}}=c||{},w=await Promise.resolve().then(()=>require("./n7v_sMq879OKt7Yz.cjs")).then(s=>s.p);if(!i)throw new Error("workbook must be specified");let o=null;if(n===null?o=i.getSelectedSheet():typeof n=="number"?o=i.getSheets().getItems()[n]:typeof n=="string"&&(o=i.getSheets().getByName(n)),!o)throw new Error("invalid sheetKey specified");let u=null;const d=[];let t=null,e=o.getUsedRange({ignoreHidden:f});if(!e)throw new Error("Nothing to export");if(!l||!g){const s=l?e.getRowStart():0,a=g?e.getColumnStart():0;e=e.getOffsetTo(s,a)}e.forEach((s,a)=>{const p=a.getCoords(),S=a.getCell();u!==p.rowIndex&&(t&&d.push(t),t=[],u=p.rowIndex);const C=S.toTextUnformatted()??"";t.push(C)},{includeEmpty:!0,address:null}),t&&d.push(t);const m={...h},r=w.unparse(d,m);return new TextEncoder().encode(r).buffer};
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./DNocrohI7pZFN-ei.cjs");exports.readBufferCSV=async(i,c)=>{const{papaParseConfig:l,setValuesOptions:g,createWorkbookOptions:f}=c??{},n=c?.progress,w=n?.onProgress,h=await Promise.resolve().then(()=>require("./DukycyZdLd_UQO5D.cjs")).then(r=>r.p),o=new TextDecoder().decode(i);let u=-1;const d=new y.wy(f),t=d.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:y.w.Orientation.Row});let e=0;const m={...l,transform:(r,s)=>{l?.transform&&(r=l.transform(r,s));const a=s;a===0&&u++;let p=r??"";return t.pushAt(u,a,p),e++,e%1e5==0&&w?.(e),r}};return h.parse(o,m).data,t.apply({textParser:!0,...g}),d},exports.writeBufferCSV=async(i,c)=>{const{trimLeadingBlankRow:l=!0,trimLeadingBlankColumn:g=!0,ignoreHidden:f=!1,sheetKey:n=null,papaParseConfig:w={}}=c||{},h=await Promise.resolve().then(()=>require("./DukycyZdLd_UQO5D.cjs")).then(s=>s.p);if(!i)throw new Error("workbook must be specified");let o=null;if(n===null?o=i.getSelectedSheet():typeof n=="number"?o=i.getSheets().getItems()[n]:typeof n=="string"&&(o=i.getSheets().getByName(n)),!o)throw new Error("invalid sheetKey specified");let u=null;const d=[];let t=null,e=o.getUsedRange({ignoreHidden:f});if(!e)throw new Error("Nothing to export");if(!l||!g){const s=l?e.getRowStart():0,a=g?e.getColumnStart():0;e=e.getOffsetTo(s,a)}e.forEach((s,a)=>{const p=a.getCoords(),S=a.getCell();u!==p.rowIndex&&(t&&d.push(t),t=[],u=p.rowIndex);const C=S.toTextUnformatted()??"";t.push(C)},{includeEmpty:!0,address:null}),t&&d.push(t);const m={...w},r=h.unparse(d,m);return new TextEncoder().encode(r).buffer};
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.24
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.24
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.24
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./BvUZHzHcBTZzu0RP.cjs"),w=["Ok","Cancel"],y=e.reactExports.memo(T=>{const{initialValue:o=null,context:s,onInput:x,onOption:g,onValidateOption:r,onDone:i,options:m=w,defaultOption:p=m?.[0],cancelOption:u="Cancel",sx:k,...E}=T,O=e.reactExports.useMemo(()=>(o??s?.()?.getHyperlink())!==null,[]),c=e.reactExports.useMemo(()=>{let t=null,a=null;o&&(typeof o=="string"?a=o:t=o);const l=t??s?.()?.getHyperlink();return{address:a??l?.getAddress()??"",textToDisplay:l?.getDisplayText()??""}},[o,s]),[n,C]=e.reactExports.useState(c.address),[d,j]=e.reactExports.useState(()=>{const t=s?.().toTextUnformatted()??c.displayText;return t===c.address?"":t}),[b,h]=e.reactExports.useState(!1),v=e.reactExports.useCallback(t=>{j(t.target.value)},[]),f=e.reactExports.useCallback(async(t,a)=>null,[]),F=e.k(async t=>{const a=n===""?null:{address:n},l=t===u;l||x?.({address:a?.address??null,displayText:d??null}),g?.(t,l,t===p),i?.()},[n,d,s,x,i,g,p,u]),D=e.k(t=>{C(t.target.value),f(t.target.value,null)},[r]),M=e.k(async t=>{let a=await Promise.resolve(r?.(t));try{a!==!1&&(a=await f(n,t))}catch{}return a??!0},[r]);return e.jsxRuntimeExports.jsx(e.Or,{title:(O?"Edit":"Insert")+" Link",options:m,onDone:i,onOption:t=>F(t),onValidateOption:M,defaultOption:p,cancelOption:u,autoFocusSel:".autoFocus",sx:{width:"480px",...k},...E,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{label:"Address",placeholder:"Enter a url or cell reference.",onFocus:t=>{b||t.target?.select(),h(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},slotProps:{inputLabel:{shrink:!0},htmlInput:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}}},value:n,onChange:D,onContextMenu:t=>{t.stopPropagation()}})}),e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{label:"Display Text",placeholder:n?.startsWith("#")?n.substring(1):n,onFocus:()=>{h(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},slotProps:{inputLabel:{shrink:!0},htmlInput:{spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}}},value:d,onChange:v,onContextMenu:t=>{t.stopPropagation()}})})]})})});exports.HyperlinkDialog=y,exports.default=y;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DNocrohI7pZFN-ei.cjs"),w=["Ok","Cancel"],y=e.reactExports.memo(T=>{const{initialValue:o=null,context:s,onInput:x,onOption:g,onValidateOption:r,onDone:i,options:m=w,defaultOption:p=m?.[0],cancelOption:u="Cancel",sx:k,...E}=T,O=e.reactExports.useMemo(()=>(o??s?.()?.getHyperlink())!==null,[]),c=e.reactExports.useMemo(()=>{let t=null,a=null;o&&(typeof o=="string"?a=o:t=o);const l=t??s?.()?.getHyperlink();return{address:a??l?.getAddress()??"",textToDisplay:l?.getDisplayText()??""}},[o,s]),[n,C]=e.reactExports.useState(c.address),[d,j]=e.reactExports.useState(()=>{const t=s?.().toTextUnformatted()??c.displayText;return t===c.address?"":t}),[b,h]=e.reactExports.useState(!1),v=e.reactExports.useCallback(t=>{j(t.target.value)},[]),f=e.reactExports.useCallback(async(t,a)=>null,[]),F=e.k(async t=>{const a=n===""?null:{address:n},l=t===u;l||x?.({address:a?.address??null,displayText:d??null}),g?.(t,l,t===p),i?.()},[n,d,s,x,i,g,p,u]),D=e.k(t=>{C(t.target.value),f(t.target.value,null)},[r]),M=e.k(async t=>{let a=await Promise.resolve(r?.(t));try{a!==!1&&(a=await f(n,t))}catch{}return a??!0},[r]);return e.jsxRuntimeExports.jsx(e.Or,{title:(O?"Edit":"Insert")+" Link",options:m,onDone:i,onOption:t=>F(t),onValidateOption:M,defaultOption:p,cancelOption:u,autoFocusSel:".autoFocus",sx:{width:"480px",...k},...E,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{label:"Address",placeholder:"Enter a url or cell reference.",onFocus:t=>{b||t.target?.select(),h(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},slotProps:{inputLabel:{shrink:!0},htmlInput:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}}},value:n,onChange:D,onContextMenu:t=>{t.stopPropagation()}})}),e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{label:"Display Text",placeholder:n?.startsWith("#")?n.substring(1):n,onFocus:()=>{h(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},slotProps:{inputLabel:{shrink:!0},htmlInput:{spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}}},value:d,onChange:v,onContextMenu:t=>{t.stopPropagation()}})})]})})});exports.HyperlinkDialog=y,exports.default=y;