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

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 (477) hide show
  1. package/browser/esm/1oQRbol_4RzeM8pE.mjs +12 -0
  2. package/{cdn/assets/CwqRA5h1u92Cyit-.js → browser/esm/30kI2LkOs3zgefE5.mjs} +2 -2
  3. package/browser/esm/{BCWTI3jdTPG37r8W.mjs → 4JJNcz4YU6jhtSoO.mjs} +3 -3
  4. package/browser/esm/4o4C9bFlmQd0jPCw.mjs +310 -0
  5. package/browser/esm/6bLEYJYXAK-pOt4_.mjs +294 -0
  6. package/{cdn/assets/J3hutJxqQiHENpIe.js → browser/esm/8j7_68o_ftwk3Slv.mjs} +120 -118
  7. package/browser/esm/{BN2d5U1nw7pRtOrn.mjs → 9MTXF6MTjOgoHb-7.mjs} +1 -1
  8. package/browser/esm/9nCLSPKkGRmkIcuH.mjs +1694 -0
  9. package/browser/esm/{Dwxz0s23ra1tRtsH.mjs → 9wo9OtQmIPqM31Sy.mjs} +2 -2
  10. package/browser/esm/B-O2rWzzFV43__aU.mjs +9523 -0
  11. package/browser/esm/{B7iV5qzlmJlM2nQv.mjs → B-iVqSEgzuf6m47x.mjs} +2 -2
  12. package/browser/esm/{x6GcENwqoUVbd60j.mjs → B0ko2JVTNhsWWWTe.mjs} +1 -1
  13. package/{cdn/assets/pc49xtHdprXZLW2X.js → browser/esm/B1SstI4rcUe8OJ-b.mjs} +1 -1
  14. package/browser/esm/{CqoHxlGpZ3yzPj5V.mjs → B31Krc6W_iL-2TQt.mjs} +12 -12
  15. package/browser/esm/{B00ixdmb8-O5ijEp.mjs → B3ZFz_Z4E28AFJS3.mjs} +1 -1
  16. package/browser/esm/{PtGiIWFBYP-ujLmf.mjs → B5XpACGLcy3zYqlT.mjs} +1 -1
  17. package/browser/esm/{BsUrrzAgfyAdcCJW.mjs → B5cwFaYPxXTSh6vo.mjs} +2 -2
  18. package/browser/esm/{BAdRecWK1maKGOZd.mjs → B8VbElyA5zbjFNs1.mjs} +1 -1
  19. package/browser/esm/B90jZwl6n7fpLoRK.mjs +89 -0
  20. package/browser/esm/{ZbGPiRN9j0629JJQ.mjs → BBS47_AI2p2r0QxX.mjs} +2 -2
  21. package/browser/esm/BBrVIUFf4NJSXblH.mjs +3716 -0
  22. package/browser/esm/{DRm1R4uVOkaMfXNI.mjs → BDWKrgmyLVPkX3h0.mjs} +1 -1
  23. package/browser/esm/{qYca4mdySLkACfo1.mjs → BF9tQV6iUGvJK6QH.mjs} +1 -1
  24. package/browser/esm/{CRAzVh3CaAa16avf.mjs → BFL9_-ur7Lhhkg2F.mjs} +36 -35
  25. package/browser/esm/{ErIXJFPDFXwGEL8V.mjs → BFvZ5JI-hBk3FNJW.mjs} +2 -2
  26. package/browser/esm/{CSEMxasVyGCekxKf.mjs → BGDndra6U64QPYm4.mjs} +1 -1
  27. package/browser/esm/BHAYf-zNKfoCTsTT.mjs +86 -0
  28. package/browser/esm/{ClJvUf8aR8vNC_3Z.mjs → BHKm0iIUckEaUMLV.mjs} +3 -3
  29. package/browser/esm/{_MPToH4oMe4rhTdZ.mjs → BIo-ELlYF8kzkLvH.mjs} +3 -3
  30. package/browser/esm/{CCd192S7yVpc6iOe.mjs → BJKUgLha2XmF08mO.mjs} +17 -16
  31. package/browser/esm/{DvWCBuY0jAL-RmJV.mjs → BKS9kx_PEanwLUuU.mjs} +793 -787
  32. package/browser/esm/BLoUmwvJ5t1eBdZ8.mjs +104 -0
  33. package/browser/esm/{DSviq1TNoiIAGW7W.mjs → BN630GsmoKmNU7ur.mjs} +1 -1
  34. package/browser/esm/{CVxlfyE-gnJM8hOz.mjs → BNWxTMoiH1NkkmAh.mjs} +8 -8
  35. package/{cdn/assets/DQIRFXG4MveFkK3I.js → browser/esm/BNavcunnTVMpcxDs.mjs} +1 -1
  36. package/browser/esm/BRXV-NrDDC3ZrpMt.mjs +55466 -0
  37. package/browser/esm/{FO1Jezau486fH4kN.mjs → BRxDfB_xWCqmT-hR.mjs} +1 -1
  38. package/browser/esm/{DnyZmrwPxShyeUjm.mjs → BT-Bqh_7C0pZ5FlX.mjs} +118 -269
  39. package/{cdn/assets/DfESVLC8CAi8m8A7.js → browser/esm/BUWDOAY73JPQoNzs.mjs} +1 -1
  40. package/browser/esm/{CHMqT9DzYKTxPfP6.mjs → BV2wamfivt6aMUhk.mjs} +1 -1
  41. package/browser/esm/BWQqT6R8MZkUWAe9.mjs +7 -0
  42. package/browser/esm/BYBEZ_hZVBDv3eEU.mjs +1389 -0
  43. package/browser/esm/B_9GaCdaUs6AlWf3.mjs +1417 -0
  44. package/browser/esm/BaNdc_0Lf4FVPUW5.mjs +9715 -0
  45. package/{cdn/assets/BuYS_ZjSlcvWZ1JC.js → browser/esm/BaWDPv9pjRGmAQva.mjs} +2667 -2091
  46. package/{cdn/assets/i0P63Wd0RRlgJotb.js → browser/esm/BaaB1nz3Z8IIy5XL.mjs} +1 -1
  47. package/browser/esm/BbUF-CQBg3zQ_h9S.mjs +323 -0
  48. package/browser/esm/{cwuYkcKwsKkPe3gG.mjs → BdN5nsKULzTfOgkY.mjs} +2 -2
  49. package/{cdn/assets/DXo8mR6t5HGsmTcu.js → browser/esm/Bdt5IdX6u9CLkJdC.mjs} +1 -1
  50. package/browser/esm/BfyWJYjj89_N0zfg.mjs +213 -0
  51. package/browser/esm/{sDVzjXC1mS5rucF5.mjs → BgE-AWbezo3ZcNQU.mjs} +576 -696
  52. package/browser/esm/Bi8dy2A1euGZeE4C.mjs +780 -0
  53. package/browser/esm/{f1OJemsiZnbwnds-.mjs → BiJSAELjvcGbbrB5.mjs} +15 -15
  54. package/browser/esm/{sxxbiJiCMOW2Eivd.mjs → BiLb98_m7AwaRkX6.mjs} +7477 -5995
  55. package/{cdn/assets/FjNOhkR7-JAIaRP6.js → browser/esm/BiSGu7XE2wP-COS-.mjs} +1 -1
  56. package/browser/esm/Bj5v_mMZnT65-EYm.mjs +521 -0
  57. package/browser/esm/Bkf3SJynCJKiDDk9.mjs +1552 -0
  58. package/browser/esm/{iC69oOND5T8khIWf.mjs → BlC9vz791AaVSbC5.mjs} +6 -6
  59. package/browser/esm/{vGKTE7yjY8y-XnsW.mjs → BldyCakCtPYtGXcm.mjs} +2 -2
  60. package/{cdn/assets/DVpi1vC8ixXvUQG_.js → browser/esm/BovxopS-62ImjzWq.mjs} +1 -1
  61. package/browser/esm/BpJup_wq5-qM4TIN.mjs +390 -0
  62. package/browser/esm/Bqf1HNOGA-pPTdl2.mjs +322 -0
  63. package/browser/esm/{BlPn_DXaEXOPxMxC.mjs → Br1Vf_O1YcX7sOJE.mjs} +1 -1
  64. package/{cdn/assets/W1d6GQyySAHrtjEu.js → browser/esm/BsVFvNqmAQw6ai0x.mjs} +1626 -1018
  65. package/browser/esm/Bt4FhwPuIE1PRsBM.mjs +193 -0
  66. package/{cdn/assets/C3r_9RqlWrEmlXZ1.js → browser/esm/Bx9qg5bL1Fzbvk1z.mjs} +1 -1
  67. package/browser/esm/BzZWDsHSEnXClrlJ.mjs +7 -0
  68. package/browser/esm/{CaS8_J5HfBRk5_Nw.mjs → C02QWvfYw-El2r9j.mjs} +32 -32
  69. package/{cdn/assets/BSCja5yvevmKZPBB.js → browser/esm/C4Vjb-3d4J7GxBGw.mjs} +1 -1
  70. package/{cdn/assets/DjtXfgbmXjUAoG0y.js → browser/esm/C635yBozh_t0DPLr.mjs} +1 -1
  71. package/browser/esm/{djM9mJznx8GzVq51.mjs → C7GZIkD5Jz7A5r_a.mjs} +14 -14
  72. package/{cdn/assets/_t0Mx-mUFVtmVNkU.js → browser/esm/C7Yr6jxJx_xXDUR2.mjs} +1 -1
  73. package/browser/esm/C8XNRmzAp2MWyeej.mjs +42 -0
  74. package/{cdn/assets/CQOyeq_-pg3CM-uA.js → browser/esm/C9oBHe1kBAevREtg.mjs} +1 -1
  75. package/browser/esm/{_zRV52yhE4gPf3XI.mjs → C9oIU866QVMlgGyQ.mjs} +55 -55
  76. package/browser/esm/{SNze-adFJwKuGSQW.mjs → CAeD2o0Ls4sIyokt.mjs} +1 -1
  77. package/browser/esm/{C9NyIoUahFiyRCxP.mjs → CBRVZmrwcMfEHc5P.mjs} +1 -1
  78. package/browser/esm/{DTn9oYyiIYgyijAk.mjs → CDWuursC7HDw-bO8.mjs} +25 -24
  79. package/browser/esm/{DoS1sE431fEhdOQb.mjs → CF6TsrZkUX12RY9E.mjs} +4 -4
  80. package/browser/esm/{C4VT6lNbpaDXCpBb.mjs → CFPaTEuxUxH48Dnc.mjs} +2 -2
  81. package/browser/esm/{Dy44qJVkwNseMG-3.mjs → CHGtyPsxQrhRB5bz.mjs} +1 -1
  82. package/browser/esm/{pKc_RPdZPLAgvNDh.mjs → CI2oW6QUhftq4Zxe.mjs} +2 -2
  83. package/browser/esm/CIoNg-5VkB5Nf7xb.mjs +256 -0
  84. package/browser/esm/{CnWNviK4qlX2GVl6.mjs → CJJ6JyOoWWElIIFf.mjs} +12 -13
  85. package/{cdn/assets/gpQ4FdJMbIScKnS_.js → browser/esm/CJdgS3TQ_2BcjCW6.mjs} +8 -8
  86. package/browser/esm/{DNaPo7BQu6hr1fWq.mjs → CK5tMP35Iv98na5Z.mjs} +1 -1
  87. package/browser/esm/CLesyjpCdfNlo_s3.mjs +210 -0
  88. package/browser/esm/CMCV8PICIpUjWafw.mjs +12816 -0
  89. package/browser/esm/{D2coM-dNrlLpnUu5.mjs → CN1_Dq2VdyHJ8cMR.mjs} +6 -6
  90. package/browser/esm/{DLhK_oSGg71ry6-m.mjs → CNTmB0u0Mmzslqit.mjs} +6 -6
  91. package/browser/esm/{D-55MlIn7Wo_hdjI.mjs → CNsG-HP7MrYv4ANy.mjs} +328 -110
  92. package/browser/esm/{DAE3Kv0Vs0VuBecT.mjs → COtPL6l443kTvLpc.mjs} +1 -1
  93. package/browser/esm/{D7DWH3-5fBNx8jtc.mjs → CP_GYwZVbwA9vzxA.mjs} +2 -2
  94. package/{cdn/assets/CFvKDDbrL3wpXnQH.js → browser/esm/CRc3MloTINO1cx9Y.mjs} +1 -1
  95. package/browser/esm/{C5EKgE9Owsc_juw-.mjs → CSUhHtPXRx-MiOJ0.mjs} +1 -1
  96. package/browser/esm/CVB9R-zt99a3DSPN.mjs +3091 -0
  97. package/{cdn/assets/BoFx07POTorOb5g-.js → browser/esm/CVGsocXM6EdK3av8.mjs} +2538 -1728
  98. package/browser/esm/CVg6x0dnCUjr2iMY.mjs +7723 -0
  99. package/browser/esm/{DxwprgjYhcmfDbXH.mjs → CWLvkJU2bOMidhWV.mjs} +17 -17
  100. package/browser/esm/{BBjgqNlHm-ssbSAG.mjs → C_lz-BVnapcDsXH0.mjs} +1 -1
  101. package/browser/esm/C_x94fC0O4_OpNRB.mjs +101 -0
  102. package/browser/esm/CczQS-TJwiXbRhYC.mjs +200 -0
  103. package/{cdn/assets/RfHd1JATBlcsfLPv.js → browser/esm/CdOK8MepIC51cdz1.mjs} +1 -1
  104. package/browser/esm/{rkTVQiYG3wd8oPom.mjs → Cdg4TpupUeYIiz2B.mjs} +3 -3
  105. package/browser/esm/Cf-LLddGP5wUU4hH.mjs +8 -0
  106. package/browser/esm/Cf5dlM0Pkqz1y7Nw.mjs +387 -0
  107. package/{cdn/assets/BI6afPOpgNYkzIWv.js → browser/esm/CfGCIpWOVrKyroeI.mjs} +1775 -1731
  108. package/browser/esm/Cgff_mU98dEc-kSv.mjs +1723 -0
  109. package/browser/esm/{CvWGtHslTdesJik-.mjs → ChTKR1wEz8hgPWRE.mjs} +10 -9
  110. package/{cdn/assets/BAH_cWcQEIBKWnl6.js → browser/esm/Cl1bVTUk0rQUQT9p.mjs} +1 -1
  111. package/browser/esm/{CDsuiN--qdALFyql.mjs → ClKS_5IuXertzGEp.mjs} +2 -2
  112. package/browser/esm/{CWJzHmEgahdOfNjH.mjs → Cnx0vOv2ePi94hMN.mjs} +1 -1
  113. package/browser/esm/{BVJUL2HhoedhbwVy.mjs → CpUZbIdONEC6mghF.mjs} +11 -10
  114. package/browser/esm/{BxhKgo_rPQ2d12HT.mjs → CpzzMIebww7p4m_V.mjs} +4 -4
  115. package/browser/esm/CtX8ODZQGoUqUie3.mjs +162 -0
  116. package/browser/esm/{BeMLfv6hWo15VCIL.mjs → CwIcsETflE-gpYF6.mjs} +23 -23
  117. package/{cdn/assets/CVcCUfSRsiZ1-6hs.js → browser/esm/CzpnOqHBXxESl5Ts.mjs} +1 -1
  118. package/browser/esm/{mZ92wNrHVpYdli1U.mjs → D3HgYapmfdL-RhEV.mjs} +5 -5
  119. package/browser/esm/{ByUcqyCNfqi5Mm7w.mjs → D46u8d3O49bDLflJ.mjs} +1 -1
  120. package/browser/esm/{px-aQ8dMjiWag_pV.mjs → D5KlrP1rlBZO7HyP.mjs} +1 -1
  121. package/{cdn/assets/DONxZZT2Iwu7psS5.js → browser/esm/D5wm_fLXLK3Ve1ir.mjs} +6 -5
  122. package/browser/esm/{DLqc11Pf8vaE4Q5B.mjs → D90zUAjsvdYt4zAc.mjs} +1 -1
  123. package/browser/esm/DAEoN5lF7Xw1VMoH.mjs +520 -0
  124. package/browser/esm/DCA1pexOA5sUcYVT.mjs +181 -0
  125. package/browser/esm/{D0r2MPlWLnStWJNW.mjs → DD6l6wL5lCLFdLOw.mjs} +144 -134
  126. package/browser/esm/DFFX8FaN8Xyq2YvS.mjs +131 -0
  127. package/browser/esm/DFzpsLSn8pIrTlLO.mjs +95 -0
  128. package/browser/esm/DJMHQzwcPgTpS0f5.mjs +1240 -0
  129. package/browser/esm/{VwGokBaawZfZiV2X.mjs → DJhxuNvyE7FzNXTv.mjs} +1 -1
  130. package/{cdn/assets/H-JnJQMcZQbpvjdb.js → browser/esm/DK3BYp4NTX8n36q5.mjs} +1 -1
  131. package/browser/esm/DKXz55ACPsNADpJo.mjs +9 -0
  132. package/browser/esm/{CZOJogyZqMfUxcXj.mjs → DKxCeh3yib-owCxs.mjs} +1 -1
  133. package/browser/esm/{ycmpAs4kQfeh78Pa.mjs → DL57MpyMuNosTcrB.mjs} +1 -1
  134. package/browser/esm/DN14h84frphTmQnr.mjs +367 -0
  135. package/browser/esm/{Cpza4AeltEVHASij.mjs → DPE3kSrS3RMPgCwe.mjs} +3 -3
  136. package/browser/esm/DQsUwoGymfvPjfBo.mjs +86 -0
  137. package/browser/esm/{DJqj66SnUcx0QmSN.mjs → DUZyG-8cyY9A0Zg-.mjs} +1 -1
  138. package/browser/esm/{DNCqTF9EbT-U1TdV.mjs → DWlIofDXtKiTFRl3.mjs} +3 -3
  139. package/browser/esm/{CfltjY8hY-RPwwpd.mjs → DWs_Iccs4ADzMYw7.mjs} +7 -7
  140. package/browser/esm/DZU9jkqaNCYuvDzi.mjs +8196 -0
  141. package/browser/esm/DZxgKlZVMKS5Ta04.mjs +199 -0
  142. package/browser/esm/D_RNoIZHUhzXpaw6.mjs +232 -0
  143. package/{cdn/assets/anQDUZhHMDPi1eha.js → browser/esm/DaJhQHZ8na6yCHir.mjs} +149 -149
  144. package/{cdn/assets/BWo1N4YbK_zGU0nu.js → browser/esm/DagxhIjpKea9MwI8.mjs} +1 -1
  145. package/browser/esm/{DjdkGy-EI1kSo226.mjs → DbewMnLKZoGLGFNh.mjs} +1 -1
  146. package/browser/esm/DcuXU4w8jFVnuLgh.mjs +60 -0
  147. package/browser/esm/Df4WRA6refKZ9x9I.mjs +141 -0
  148. package/browser/esm/Dg8kGViumXiDAGwT.mjs +569 -0
  149. package/{cdn/assets/DWgp4t9N9u0eWthH.js → browser/esm/DhLN5r1sTHL_BWeH.mjs} +1 -1
  150. package/browser/esm/{ZxsFYopF0_WWqw4Q.mjs → DhU_l9pcEddg9s24.mjs} +1 -1
  151. package/browser/esm/{CTI-mCJbJzitJZwj.mjs → DiabpzKzIUUyat-1.mjs} +1 -1
  152. package/browser/esm/Dic2cHiohtgkK2jT.mjs +89 -0
  153. package/browser/esm/DizmXzo0RwB1aISW.mjs +86 -0
  154. package/browser/esm/{DrI_S0A9TQvriTua.mjs → Dl29uXIaOLiBIDEI.mjs} +1 -1
  155. package/browser/esm/{BtGmrIqU9W1L8zfZ.mjs → Dl40S1lFKvsN0DvK.mjs} +1 -1
  156. package/{cdn/assets/DxcRLd7wmBGDgJsA.js → browser/esm/DlWoVcsWZHiN-EYf.mjs} +1 -1
  157. package/{cdn/assets/DQjxp9lDP9DzP8ah.js → browser/esm/DmkrxPsGTgcfP5Rz.mjs} +56 -56
  158. package/browser/esm/{rY-dC3WB558TIbum.mjs → Dn6OF7owJvTQrrts.mjs} +4 -4
  159. package/browser/esm/DpRsbOf9X17if0J7.mjs +1645 -0
  160. package/browser/esm/Drw9hD1JE7JCMign.mjs +422 -0
  161. package/browser/esm/{BThOwSja2ra4xejQ.mjs → DsHzYBPSadCXZi-n.mjs} +1466 -1388
  162. package/browser/esm/{LAbUYeLiPG8z9cmA.mjs → DtegXHCQSKTTGQeu.mjs} +15 -15
  163. package/browser/esm/{C-0viTjg1dT2F-sk.mjs → Dut7EHGO0G5wuZvA.mjs} +2 -2
  164. package/browser/esm/{kVBPUUnVyZfb8pf3.mjs → DwhGTfGva3F7vuwp.mjs} +5 -5
  165. package/{cdn/assets/DYvBgX17ZerZSHEJ.js → browser/esm/DxwdHqgA78DuBgP5.mjs} +30 -31
  166. package/browser/esm/{aUREGNA8H7p4BpMK.mjs → DychvmektExlalXS.mjs} +3 -3
  167. package/{cdn/assets/CBdNC7BOfc5TewHU.js → browser/esm/DyeYHUP9q10K48wL.mjs} +1 -1
  168. package/{cdn/assets/BsTFy_iJXJYmaO3Z.js → browser/esm/DyvMwqOmBhQFYxOo.mjs} +5 -5
  169. package/browser/esm/{Cy00y9b9j17Txyv1.mjs → DzF6mYUZfggTAjhM.mjs} +1 -1
  170. package/browser/esm/Dzj3KK6YPVXSha8q.mjs +5117 -0
  171. package/browser/esm/Dzyz_pks7xPGZbyH.mjs +23434 -0
  172. package/browser/esm/{Dv8aQFTTaQBJKDDk.mjs → GA5X6vLsOcXufGyF.mjs} +1 -1
  173. package/browser/esm/Hx70AIfSA_0RVX86.mjs +415 -0
  174. package/browser/esm/{DaMKWQQTgIF08cT7.mjs → JIICfCUe6qam-nnP.mjs} +7 -7
  175. package/browser/esm/{UTZcodQydbuMfCOS.mjs → Jn0_AtebABdIzyQ8.mjs} +1 -1
  176. package/browser/esm/{CtZPEkaldpJpoGtW.mjs → KG-A3VX4kcf2uLJI.mjs} +67 -67
  177. package/browser/esm/{CMxbiQ5J79M3n1tk.mjs → PD_ckP5IyZurtALu.mjs} +723 -373
  178. package/{cdn/assets/lqknEt3DTma5Juxs.js → browser/esm/PFd1HLX9x3NbZS0Q.mjs} +1 -1
  179. package/browser/esm/{D2aQPiGg0ZoMYzuf.mjs → Q4gowihHveaVg346.mjs} +5 -5
  180. package/browser/esm/TEqlVdpb4Wjm-WJR.mjs +281 -0
  181. package/browser/esm/{DGcvio2uhlrsE3ZY.mjs → Ub7lo1Zsgc4OkWHw.mjs} +10 -10
  182. package/browser/esm/{CxCipDFamYSOctBo.mjs → VHANuEgclliEVOJy.mjs} +48 -46
  183. package/browser/esm/{Db6Tvr45TS9J5Qsb.mjs → WGYh_LRO1dkbp-TV.mjs} +35 -33
  184. package/browser/esm/{ByqhqEMBLrnkaPKE.mjs → WeD0V8DDCj3KQ_8p.mjs} +26 -24
  185. package/browser/esm/{DG3BfxRsbjey-B7E.mjs → XYN8zIYF95HfOLO2.mjs} +2 -2
  186. package/browser/esm/XvS1NvLqAFQgx6eS.mjs +7 -0
  187. package/{cdn/assets/Dc2ZwgbIEgYWwAsF.js → browser/esm/Z10MZFA0Sc2Zcelz.mjs} +1 -1
  188. package/browser/esm/{-LoBx7J6imeqaxCq.mjs → bFtJ6ds2ojy78Wre.mjs} +7 -7
  189. package/browser/esm/{DqBj-9o7UdXu4qhb.mjs → bTZCD31OE4KkUy4u.mjs} +1 -1
  190. package/browser/esm/{CQuv-nk5jtXUfu7C.mjs → bYlwY2JZnvT1cbtL.mjs} +2 -2
  191. package/browser/esm/{BaEZmurTZnX_yfKD.mjs → buJRIWKU9gQ4TTK_.mjs} +323 -369
  192. package/{cdn/assets/BPrHgyAsm2Htx15h.js → browser/esm/c6MwBF7fqj-4Wqct.mjs} +1 -1
  193. package/browser/esm/d3pzf6IOaGjo_S-F.mjs +2213 -0
  194. package/browser/esm/{DSf-Db1h8rlW2A6n.mjs → e5QfIq2gAzQVRtfG.mjs} +5 -5
  195. package/browser/esm/{DGuynZFJ9tqziqQs.mjs → gTTt3H5M0Lh8VxjO.mjs} +7 -7
  196. package/browser/esm/index.mjs +49 -645
  197. package/{cdn/assets/BhkeuRcx8RlLCQ5E.js → browser/esm/lPeOxAutCOlSB-aC.mjs} +1 -1
  198. package/browser/esm/{BRfat1fV3oGLwvin.mjs → mjkAWxWBrwQpoEkc.mjs} +15 -15
  199. package/browser/esm/{Bi5-feQLtwpV6Ai8.mjs → nmaneEnoRhUuMliV.mjs} +5 -5
  200. package/browser/esm/{DeUXRggj8Oz9ru_i.mjs → oLOwgPmipnKc68nJ.mjs} +1 -1
  201. package/browser/esm/{BMlPFJ1glExv-70Z.mjs → oY2yN-_0_AcCI46E.mjs} +1 -1
  202. package/browser/esm/szeZ7VgnRHyi2DxR.mjs +381 -0
  203. package/{cdn/assets/CTdFZ_I-41Vr6Dy4.js → browser/esm/tQAwA9RKsgzjziNe.mjs} +1 -1
  204. package/{cdn/assets/J9i3r1fU0H10b2hX.js → browser/esm/t_7A_GdY394OUV4v.mjs} +1 -1
  205. package/browser/esm/uBm_7th3ordJJKKM.mjs +1298 -0
  206. package/browser/esm/vY2ZLR024kVOwWej.mjs +36 -0
  207. package/browser/esm/{DQEjvIGMgEkiaP6J.mjs → xUNkyQFYnzQAzsVs.mjs} +1 -1
  208. package/browser/esm/xhVehZswNSGVAhdd.mjs +195 -0
  209. package/{cdn/assets/BwOxnbR61WFJwy0A.js → browser/esm/y-iW7vsJV47pYbw4.mjs} +1 -1
  210. package/browser/esm/y5zzqXzWZt9iBT17.mjs +5632 -0
  211. package/{cdn/assets/B0Wjc3lwtjKMwnvn.js → browser/esm/y8mfWM7VlyfJEEwg.mjs} +1 -1
  212. package/{browser/esm/M7RYrx20B_Yl_euJ.mjs → cdn/assets/03NnLxMlQLUwCU6J.js} +8 -8
  213. package/cdn/assets/1oQRbol_4RzeM8pE.js +12 -0
  214. package/cdn/assets/{CILUMtSddGz7WXEv.js → 3Oqq1u2C8zC0TeW9.js} +84 -84
  215. package/cdn/assets/4uPsJWrLx7xRHQAh.js +639 -0
  216. package/cdn/assets/{ENtt4kmaU9mJfVEp.js → 6GgPtwsOcxg8XpRN.js} +10 -10
  217. package/cdn/assets/{D8DghdqjOtBzO2Wx.js → 7twUDisI3AH_vo2v.js} +4 -4
  218. package/cdn/assets/{BeQ95CzwR65il0CK.js → 8CW-puLLSNyeaGce.js} +2 -3
  219. package/cdn/assets/{BB4MW8sSYEXjPvvf.js → 8yRVrfAZmWoSynP2.js} +5 -5
  220. package/cdn/assets/{BN2d5U1nw7pRtOrn.js → 9MTXF6MTjOgoHb-7.js} +1 -1
  221. package/cdn/assets/9zx-c-XsXQJu3H6F.js +237 -0
  222. package/cdn/assets/B-aF0nVKMi0rBQ-X.js +257 -0
  223. package/cdn/assets/{x6GcENwqoUVbd60j.js → B0ko2JVTNhsWWWTe.js} +1 -1
  224. package/{browser/esm/pc49xtHdprXZLW2X.mjs → cdn/assets/B1SstI4rcUe8OJ-b.js} +1 -1
  225. package/cdn/assets/{B00ixdmb8-O5ijEp.js → B3ZFz_Z4E28AFJS3.js} +1 -1
  226. package/cdn/assets/B4zK-38sPk49SiBE.js +9524 -0
  227. package/cdn/assets/{PtGiIWFBYP-ujLmf.js → B5XpACGLcy3zYqlT.js} +1 -1
  228. package/cdn/assets/B6hsm_RseP5jRKxa.js +100 -0
  229. package/cdn/assets/{DHH_uKVzQ_kRYO2N.js → B71MtA2mmixmeooi.js} +18 -18
  230. package/cdn/assets/B7L2gEZlcb8lr2A4.js +8196 -0
  231. package/cdn/assets/{BAdRecWK1maKGOZd.js → B8VbElyA5zbjFNs1.js} +1 -1
  232. package/cdn/assets/B9dUWlxApLMvjz60.js +220 -0
  233. package/cdn/assets/B9w9g_nectPJhun5.js +1724 -0
  234. package/cdn/assets/{AjMG7Fb9r4Fk7Hsf.js → BCypA6VuKdd2n_ru.js} +19 -18
  235. package/cdn/assets/{DRm1R4uVOkaMfXNI.js → BDWKrgmyLVPkX3h0.js} +1 -1
  236. package/cdn/assets/BETDm_1AaWuW6BVj.js +516 -0
  237. package/cdn/assets/{C32co-XulWTkEKrW.js → BEvqzG-mTBe_4aVC.js} +2 -2
  238. package/cdn/assets/{qYca4mdySLkACfo1.js → BF9tQV6iUGvJK6QH.js} +1 -1
  239. package/cdn/assets/BFKaVO5u424S8iQa.js +86 -0
  240. package/cdn/assets/{CSEMxasVyGCekxKf.js → BGDndra6U64QPYm4.js} +1 -1
  241. package/cdn/assets/BI1IDPvx--ARef3O.js +196 -0
  242. package/cdn/assets/{Cw7AJWd0S2sjRmr6.js → BJ5RRYxWA_yTbVpr.js} +1478 -1400
  243. package/cdn/assets/BJV4kSnvZHNfd68y.js +193 -0
  244. package/cdn/assets/BK2u8-YC8sG_k5G1.js +1299 -0
  245. package/cdn/assets/{DSviq1TNoiIAGW7W.js → BN630GsmoKmNU7ur.js} +1 -1
  246. package/{browser/esm/DQIRFXG4MveFkK3I.mjs → cdn/assets/BNavcunnTVMpcxDs.js} +1 -1
  247. package/cdn/assets/BORHWDUKR6caukc5.js +199 -0
  248. package/cdn/assets/BOeafp2_IuiQUCy9.js +7 -0
  249. package/cdn/assets/{FO1Jezau486fH4kN.js → BRxDfB_xWCqmT-hR.js} +1 -1
  250. package/{browser/esm/DfESVLC8CAi8m8A7.mjs → cdn/assets/BUWDOAY73JPQoNzs.js} +1 -1
  251. package/cdn/assets/{0vqRTRN0wEzWao1c.js → BUsC6YAGDNArajFL.js} +75 -74
  252. package/{browser/esm/ztqpWR65YYMZ3EPk.mjs → cdn/assets/BV13zVUdMca1rMPB.js} +120 -118
  253. package/cdn/assets/{C9NyIoUahFiyRCxP.js → BV2wamfivt6aMUhk.js} +1 -1
  254. package/cdn/assets/BWbSAM8vJA9oOVLo.js +46 -0
  255. package/cdn/assets/{De2z8LdHaWRFiR5T.js → BXVCl_xwTk61fpO9.js} +2 -2
  256. package/cdn/assets/BZEFRQpz68GXn6T9.js +96 -0
  257. package/cdn/assets/{wM7DzeOpoEGBVDBe.js → B_sANJqcUwqmlTx5.js} +2 -2
  258. package/{browser/esm/i0P63Wd0RRlgJotb.mjs → cdn/assets/BaaB1nz3Z8IIy5XL.js} +1 -1
  259. package/cdn/assets/{DckmFyHxGX4Y1gOq.js → BbO2UBFWu05VAtNb.js} +18 -17
  260. package/cdn/assets/{CCvBdPu7W2ZF6A9J.js → BdW05SsbRlVhxGr6.js} +3 -3
  261. package/cdn/assets/BdnTLvN0grpQAsLF.js +8 -0
  262. package/{browser/esm/DXo8mR6t5HGsmTcu.mjs → cdn/assets/Bdt5IdX6u9CLkJdC.js} +1 -1
  263. package/cdn/assets/Bebab8nHNHqve2AI.js +233 -0
  264. package/{browser/esm/FjNOhkR7-JAIaRP6.mjs → cdn/assets/BiSGu7XE2wP-COS-.js} +1 -1
  265. package/cdn/assets/BjAnEBtnBD5O0-sc.js +106 -0
  266. package/cdn/assets/{hg8WYI0Yy4WPPPoP.js → BmWMHgdcbZuZUGtm.js} +11 -11
  267. package/{browser/esm/DVpi1vC8ixXvUQG_.mjs → cdn/assets/BovxopS-62ImjzWq.js} +1 -1
  268. package/cdn/assets/Bqlj5Zz-vJpMDs6i.js +311 -0
  269. package/cdn/assets/{BlPn_DXaEXOPxMxC.js → Br1Vf_O1YcX7sOJE.js} +1 -1
  270. package/cdn/assets/{CSIZpJClc66_20kP.js → BuHsbgcxlvkOHGGR.js} +118 -269
  271. package/{browser/esm/C3r_9RqlWrEmlXZ1.mjs → cdn/assets/Bx9qg5bL1Fzbvk1z.js} +1 -1
  272. package/cdn/assets/BzZTldYRBXUqOINX.js +781 -0
  273. package/cdn/assets/C-_jzDXetpu0rH2K.js +8 -0
  274. package/cdn/assets/C2ydnpxcrFknfLw1.js +214 -0
  275. package/{browser/esm/BSCja5yvevmKZPBB.mjs → cdn/assets/C4Vjb-3d4J7GxBGw.js} +1 -1
  276. package/{browser/esm/DjtXfgbmXjUAoG0y.mjs → cdn/assets/C635yBozh_t0DPLr.js} +1 -1
  277. package/cdn/assets/C7FA7N-GON7DscOD.js +19 -0
  278. package/{browser/esm/_t0Mx-mUFVtmVNkU.mjs → cdn/assets/C7Yr6jxJx_xXDUR2.js} +1 -1
  279. package/cdn/assets/C7fZFw4yQ9VNHtnV.js +17 -0
  280. package/cdn/assets/C8XNRmzAp2MWyeej.js +42 -0
  281. package/{browser/esm/DAprxR00V9qvNLL2.mjs → cdn/assets/C9_WZzkqVDNPA1d0.js} +1708 -1660
  282. package/{browser/esm/CQOyeq_-pg3CM-uA.mjs → cdn/assets/C9oBHe1kBAevREtg.js} +1 -1
  283. package/cdn/assets/{SNze-adFJwKuGSQW.js → CAeD2o0Ls4sIyokt.js} +1 -1
  284. package/cdn/assets/{CHMqT9DzYKTxPfP6.js → CBRVZmrwcMfEHc5P.js} +1 -1
  285. package/cdn/assets/CBsadiIVpXoTVHLj.js +183 -0
  286. package/{browser/esm/D88StfSjZJi5E8Xb.mjs → cdn/assets/CDv_hXnUZNB1HY3N.js} +2384 -1905
  287. package/cdn/assets/{CFBgmXap8kmumhoz.js → CELW1QxGUlPfcuHG.js} +144 -134
  288. package/cdn/assets/CF6YxjWkuaqaHcCi.js +2230 -0
  289. package/cdn/assets/{CbTN0q6XnYGJqyEp.js → CGklNVK7pkjOQ6XF.js} +261 -261
  290. package/cdn/assets/{Dy44qJVkwNseMG-3.js → CHGtyPsxQrhRB5bz.js} +1 -1
  291. package/cdn/assets/{D32D_biNXRCZ24vG.js → CIa9t2NsEFKqvGac.js} +10 -10
  292. package/cdn/assets/CIfJsifn66BBcj2W.js +86 -0
  293. package/cdn/assets/CIscj5V7u9g5ZxM3.js +7 -0
  294. package/cdn/assets/{BNsqqoZY7a4N1wWC.js → CJgN6A7fquRRWJ9h.js} +328 -110
  295. package/cdn/assets/{DNaPo7BQu6hr1fWq.js → CK5tMP35Iv98na5Z.js} +1 -1
  296. package/cdn/assets/CLDXVyr5jbJC7Ldf.js +7 -0
  297. package/cdn/assets/CLesyjpCdfNlo_s3.js +210 -0
  298. package/cdn/assets/{Dp-GJXOMz_b8qAxD.js → CMRiIxUHB5XcDtA8.js} +2 -2
  299. package/cdn/assets/{DAE3Kv0Vs0VuBecT.js → COtPL6l443kTvLpc.js} +1 -1
  300. package/{browser/esm/CFvKDDbrL3wpXnQH.mjs → cdn/assets/CRc3MloTINO1cx9Y.js} +1 -1
  301. package/cdn/assets/CS7L0XE_IvJKdpQH.js +416 -0
  302. package/cdn/assets/{C5EKgE9Owsc_juw-.js → CSUhHtPXRx-MiOJ0.js} +1 -1
  303. package/cdn/assets/{D-yz3V2UC54rwctD.js → CSpWGMyjLegYuwTq.js} +2 -2
  304. package/cdn/assets/CVCFVKDhgOFbBNWn.js +382 -0
  305. package/cdn/assets/{DSXJHEORGmMQX_Mb.js → CViBm-zHl4k8Znzm.js} +12 -12
  306. package/cdn/assets/{DZRm4H75lnEtOG8e.js → CWRXS9rkz8fCwbZH.js} +48 -46
  307. package/cdn/assets/CZ0iN5i3edmVHcRK.js +323 -0
  308. package/cdn/assets/{B3NWCYKXucbHhOix.js → C_Q71OCVP6nPyP4U.js} +26 -26
  309. package/cdn/assets/{BBjgqNlHm-ssbSAG.js → C_lz-BVnapcDsXH0.js} +1 -1
  310. package/cdn/assets/CbKXmBz5CY-IwYsS.js +132 -0
  311. package/cdn/assets/CbqZMJ1c683b5iE7.js +278 -0
  312. package/cdn/assets/CdDIc0DsAwHzxpeO.js +5117 -0
  313. package/{browser/esm/RfHd1JATBlcsfLPv.mjs → cdn/assets/CdOK8MepIC51cdz1.js} +1 -1
  314. package/cdn/assets/{C6INLvBy8kdzFpsX.js → CdW0mis0FyG90paw.js} +576 -696
  315. package/cdn/assets/{DicTo_3G-KZyWDiE.js → CevaeSbWdKO5qeRu.js} +294 -340
  316. package/cdn/assets/{DxisV9_27l_WU-nk.js → CeySvrdNiT00QQJC.js} +5 -5
  317. package/cdn/assets/Cf-LLddGP5wUU4hH.js +8 -0
  318. package/cdn/assets/{CIyaijfp6itgRpFM.js → Cf0bbHHOW6iwvyXg.js} +2 -2
  319. package/cdn/assets/CixdB4xXcQhebm5U.js +73 -0
  320. package/cdn/assets/{BelX6bvQPsGuo-x3.js → Cj2lJ05kVoDb5HGx.js} +2 -2
  321. package/cdn/assets/{CsrTRThObSryov1b.js → CkfqUcoAlpPupbbK.js} +2 -2
  322. package/cdn/assets/CkgK3CrVsGp5FE2i.js +2213 -0
  323. package/{browser/esm/BAH_cWcQEIBKWnl6.mjs → cdn/assets/Cl1bVTUk0rQUQT9p.js} +1 -1
  324. package/cdn/assets/Cl3d4ILjFxp4IdO9.js +3716 -0
  325. package/cdn/assets/ClY9HTqosClkllrU.js +522 -0
  326. package/cdn/assets/Cllqhal9LBm1K8Yq.js +391 -0
  327. package/cdn/assets/CnVY0qezymE7-eML.js +89 -0
  328. package/cdn/assets/{CWJzHmEgahdOfNjH.js → Cnx0vOv2ePi94hMN.js} +1 -1
  329. package/cdn/assets/{C7fu6LrSMBlHqwUy.js → CqmrD2Xs8MKJTO4v.js} +4 -4
  330. package/cdn/assets/Cw6ozEzvtFq_HVef.js +8 -0
  331. package/cdn/assets/{BzbP4jaN13wC9aSi.js → CzG0p4x8L99XEdym.js} +40 -40
  332. package/{browser/esm/CVcCUfSRsiZ1-6hs.mjs → cdn/assets/CzpnOqHBXxESl5Ts.js} +1 -1
  333. package/cdn/assets/D-hAYmuTa0x0_oI-.js +1552 -0
  334. package/{browser/esm/By3a43qwWICwXRmw.mjs → cdn/assets/D2H92O2Ji36qebTp.js} +2667 -2091
  335. package/cdn/assets/{ByUcqyCNfqi5Mm7w.js → D46u8d3O49bDLflJ.js} +1 -1
  336. package/cdn/assets/D51TEwta0ZXmlNrx.js +570 -0
  337. package/cdn/assets/{px-aQ8dMjiWag_pV.js → D5KlrP1rlBZO7HyP.js} +1 -1
  338. package/cdn/assets/{Cfg4Dtndwurxv9LM.js → D7g9SLSLSONiRP8_.js} +8 -8
  339. package/cdn/assets/D8fBDoXy-QzJqIfC.js +132 -0
  340. package/cdn/assets/D97AuczhOIBnqMXI.js +55466 -0
  341. package/cdn/assets/DBnswN0nPHV8TM2q.js +8 -0
  342. package/cdn/assets/DE9bhDAlUdLUngdj.js +1646 -0
  343. package/cdn/assets/{D_pMOq6FdH4RSBLc.js → DG4PyKuuGu6RkAEv.js} +810 -804
  344. package/cdn/assets/DG8R6bLrQPHjouy2.js +86 -0
  345. package/cdn/assets/{VwGokBaawZfZiV2X.js → DJhxuNvyE7FzNXTv.js} +1 -1
  346. package/{browser/esm/H-JnJQMcZQbpvjdb.mjs → cdn/assets/DK3BYp4NTX8n36q5.js} +1 -1
  347. package/cdn/assets/{CZOJogyZqMfUxcXj.js → DKxCeh3yib-owCxs.js} +1 -1
  348. package/cdn/assets/{ycmpAs4kQfeh78Pa.js → DL57MpyMuNosTcrB.js} +1 -1
  349. package/{browser/esm/Dme0qpRinBnhzp53.mjs → cdn/assets/DLEPPn_cPPydMrpU.js} +150 -148
  350. package/cdn/assets/{D-bNmX0QsA8SuT0m.js → DP1jRSok-1NvqrBz.js} +34 -34
  351. package/cdn/assets/{DJqj66SnUcx0QmSN.js → DUZyG-8cyY9A0Zg-.js} +1 -1
  352. package/cdn/assets/{Cv5PLuhEmh5IDHjb.js → DWoFVKQrI917IanL.js} +23 -23
  353. package/cdn/assets/DXhizwpX3GUT2ECx.js +90 -0
  354. package/cdn/assets/DYbOfw0BRA2hWOCP.js +1390 -0
  355. package/cdn/assets/DZo_DGKkHCqIyM5N.js +388 -0
  356. package/{browser/esm/DlOVZD0OiAjouS6-.mjs → cdn/assets/D_d2cK3aSl0eMBpj.js} +1626 -1018
  357. package/{browser/esm/BWo1N4YbK_zGU0nu.mjs → cdn/assets/DagxhIjpKea9MwI8.js} +1 -1
  358. package/cdn/assets/{DjdkGy-EI1kSo226.js → DbewMnLKZoGLGFNh.js} +1 -1
  359. package/{browser/esm/8-jmVNNbOHuXFdVQ.mjs → cdn/assets/DdXikMOzMIALd8bz.js} +120 -118
  360. package/cdn/assets/Dg3UJabBou63ReiH.js +12816 -0
  361. package/cdn/assets/Dg9ALylpMhftKvuI.js +23434 -0
  362. package/cdn/assets/DgQFdPeLRIkg5O3C.js +3093 -0
  363. package/{browser/esm/DWgp4t9N9u0eWthH.mjs → cdn/assets/DhLN5r1sTHL_BWeH.js} +1 -1
  364. package/cdn/assets/{ZxsFYopF0_WWqw4Q.js → DhU_l9pcEddg9s24.js} +1 -1
  365. package/cdn/assets/{CTI-mCJbJzitJZwj.js → DiabpzKzIUUyat-1.js} +1 -1
  366. package/cdn/assets/{DrI_S0A9TQvriTua.js → Dl29uXIaOLiBIDEI.js} +1 -1
  367. package/cdn/assets/{BtGmrIqU9W1L8zfZ.js → Dl40S1lFKvsN0DvK.js} +1 -1
  368. package/{browser/esm/DxcRLd7wmBGDgJsA.mjs → cdn/assets/DlWoVcsWZHiN-EYf.js} +1 -1
  369. package/cdn/assets/{B27vTQlxbHhSQJx8.js → DliTwLXIImeC0eub.js} +7803 -6320
  370. package/cdn/assets/{aHTKr1ijZ6bRi3Zg.js → DsRSG0tf_a2zWfcu.js} +4 -4
  371. package/cdn/assets/{7i4WSxDsu2ApJJ2_.js → DsXc1EO6csuKfV4l.js} +3 -3
  372. package/cdn/assets/DtO07D35O2tAh7f4.js +1241 -0
  373. package/cdn/assets/{C-0viTjg1dT2F-sk.js → Dut7EHGO0G5wuZvA.js} +2 -2
  374. package/cdn/assets/DvBV9E2CaadV0-OK.js +104 -0
  375. package/cdn/assets/{CakrxSS_RXtKmcUX.js → Dw7mCCAZtWzy1kDg.js} +99 -98
  376. package/{browser/esm/DEvZj68igS7Q8SZE.mjs → cdn/assets/DwITQzYKh_c7vCO8.js} +5 -5
  377. package/cdn/assets/{C0CeCYdLWLjySEFe.js → DwTdBuvtngstv-Ee.js} +15 -15
  378. package/cdn/assets/{CMVTwWHsRgyfSEDM.js → Dwb9z-Om5vH_9GFX.js} +67 -65
  379. package/{browser/esm/D-KZpU6HMaP4VUva.mjs → cdn/assets/Dwd9mENEUTKk45OD.js} +56 -56
  380. package/cdn/assets/{BvlfKrfrDhE9Jw4d.js → Dwm4Q509nQKTAHZp.js} +2 -2
  381. package/cdn/assets/{mK8HcIZyXkOTvL6E.js → DxI14nqCsNi-yexx.js} +7 -7
  382. package/cdn/assets/Dy07J9xUgFU8srvP.js +7723 -0
  383. package/{browser/esm/CBdNC7BOfc5TewHU.mjs → cdn/assets/DyeYHUP9q10K48wL.js} +1 -1
  384. package/cdn/assets/{Cy00y9b9j17Txyv1.js → DzF6mYUZfggTAjhM.js} +1 -1
  385. package/cdn/assets/{BpZ7P0CO148rR4zW.js → Dzlfx9-RfNxYludH.js} +20 -20
  386. package/cdn/assets/FjjP2q5AOiFod5IL.js +282 -0
  387. package/cdn/assets/{Dv8aQFTTaQBJKDDk.js → GA5X6vLsOcXufGyF.js} +1 -1
  388. package/cdn/assets/Ga_dmEQPXt-tMjfv.js +7 -0
  389. package/cdn/assets/HMCOTgDNR6bpWL7f.js +163 -0
  390. package/cdn/assets/{UTZcodQydbuMfCOS.js → Jn0_AtebABdIzyQ8.js} +1 -1
  391. package/cdn/assets/{CMxbiQ5J79M3n1tk.js → PD_ckP5IyZurtALu.js} +723 -373
  392. package/{browser/esm/lqknEt3DTma5Juxs.mjs → cdn/assets/PFd1HLX9x3NbZS0Q.js} +1 -1
  393. package/{browser/esm/B3Ii8x6RquHW1jMc.mjs → cdn/assets/PlCjmMBePH7hotkL.js} +12 -11
  394. package/cdn/assets/{Bgbi7BFR3rN5qj51.js → RZYxEHY1tap8fDMU.js} +22 -22
  395. package/cdn/assets/{w5IQWbJETgHhqMsY.js → V3xJfVu5YgTJE15l.js} +33 -33
  396. package/cdn/assets/{dn69mDhY7Xcc91kF.js → VtDou2czLTs_x_lJ.js} +20 -20
  397. package/cdn/assets/Xr_m9JQCcD2iBqdf.js +324 -0
  398. package/cdn/assets/{VCiu_neIjCTg2NUa.js → Y0Uf_lVRToNYi395.js} +634 -634
  399. package/{browser/esm/Dc2ZwgbIEgYWwAsF.mjs → cdn/assets/Z10MZFA0Sc2Zcelz.js} +1 -1
  400. package/cdn/assets/ZHMYKkw9GtA9PmwP.js +61 -0
  401. package/cdn/assets/ZaFy1hzL6cnNlROy.js +1302 -0
  402. package/cdn/assets/__mMW0v3QyR1pQYO.js +294 -0
  403. package/cdn/assets/{DqBj-9o7UdXu4qhb.js → bTZCD31OE4KkUy4u.js} +1 -1
  404. package/{browser/esm/BPrHgyAsm2Htx15h.mjs → cdn/assets/c6MwBF7fqj-4Wqct.js} +1 -1
  405. package/cdn/assets/csh4FIrA7Yz0oQR4.js +9 -0
  406. package/cdn/assets/{CDAYVaQYywqaxg4O.js → eyjrmBPp0a3kmDM1.js} +2 -2
  407. package/{browser/esm/BtdRr6IbtO6Gypsk.mjs → cdn/assets/hlphmhe3M3MZPvOh.js} +6 -5
  408. package/cdn/assets/jJoDPeW_80P8c7ET.js +201 -0
  409. package/cdn/assets/kLmFvtw68s1_Kbq9.js +142 -0
  410. package/cdn/assets/kTq1x8_s5V2PwKeX.js +9715 -0
  411. package/{browser/esm/BhkeuRcx8RlLCQ5E.mjs → cdn/assets/lPeOxAutCOlSB-aC.js} +1 -1
  412. package/cdn/assets/{DeUXRggj8Oz9ru_i.js → oLOwgPmipnKc68nJ.js} +1 -1
  413. package/cdn/assets/{BMlPFJ1glExv-70Z.js → oY2yN-_0_AcCI46E.js} +1 -1
  414. package/cdn/assets/{G5z0uVlyF6CLw_PA.js → pS2054G_Le7EvgyY.js} +2 -2
  415. package/cdn/assets/qwL1y5daLJePT9OL.js +7 -0
  416. package/cdn/assets/rNuTuxLduwMl4Fyb.js +182 -0
  417. package/cdn/assets/sCeaYn7GnW1N9bKn.js +423 -0
  418. package/cdn/assets/{Bsn-tUx172sEG2kR.js → t8Ps76FWzb3VX_wg.js} +20 -20
  419. package/{browser/esm/CTdFZ_I-41Vr6Dy4.mjs → cdn/assets/tQAwA9RKsgzjziNe.js} +1 -1
  420. package/{browser/esm/J9i3r1fU0H10b2hX.mjs → cdn/assets/t_7A_GdY394OUV4v.js} +1 -1
  421. package/{browser/esm/CWoPWWRwMgkGPFFP.mjs → cdn/assets/u8iMUyjw60ayROFo.js} +2538 -1728
  422. package/cdn/assets/ubUqS2NO2sn4DX3v.js +1694 -0
  423. package/cdn/assets/vY2ZLR024kVOwWej.js +36 -0
  424. package/cdn/assets/{DQEjvIGMgEkiaP6J.js → xUNkyQFYnzQAzsVs.js} +1 -1
  425. package/{browser/esm/BwOxnbR61WFJwy0A.mjs → cdn/assets/y-iW7vsJV47pYbw4.js} +1 -1
  426. package/{browser/esm/B0Wjc3lwtjKMwnvn.mjs → cdn/assets/y8mfWM7VlyfJEEwg.js} +1 -1
  427. package/cdn/assets/{BIsbcP5RXRU2XPfx.js → yI2dKrysDG0lqxjX.js} +2 -2
  428. package/cdn/assets/{Ba8taVvLslFcKS72.js → yzl98RXbYvgX5DfY.js} +28 -27
  429. package/cdn/assets/z4XcPMxN5hfqRHIt.js +367 -0
  430. package/cdn/assets/{ZSYS1J3uR7UQuHwZ.js → zm4ZwKXeSetbtx9Z.js} +10 -10
  431. package/cdn/index.js +27 -17
  432. package/package.json +3 -3
  433. package/types/src/sheetxl.d.ts +1 -0
  434. package/browser/esm/BNIInlJQbJjH8B6G.mjs +0 -84250
  435. package/browser/esm/B_HB4y7AA88Z775Z.mjs +0 -91
  436. package/browser/esm/CdeXXPCp5cCYvGyD.mjs +0 -14
  437. package/browser/esm/Chr_TXM-48IsK8Va.mjs +0 -155
  438. package/browser/esm/Clx8vvGDOTWK_M2l.mjs +0 -484
  439. package/browser/esm/Cw-4uoMuq_m7ziA3.mjs +0 -36
  440. package/browser/esm/D-9f1NKcpuYSgond.mjs +0 -412
  441. package/browser/esm/D7CGuQcwpkiuesEI.mjs +0 -229
  442. package/browser/esm/D7kkzIFPqKBK94kO.mjs +0 -17952
  443. package/browser/esm/D8exjrado9TJrBp-.mjs +0 -1946
  444. package/browser/esm/DGCOPbZbEmt0x9z0.mjs +0 -155
  445. package/browser/esm/DZRmBfjn2TgOTu5e.mjs +0 -3604
  446. package/browser/esm/D_7BWdsu8yejhUxy.mjs +0 -2353
  447. package/browser/esm/D_thhK0vSez8Yfle.mjs +0 -798
  448. package/browser/esm/Dv2z0548SZRGTN3l.mjs +0 -149
  449. package/browser/esm/DyeY6XwMQ_XNUHiW.mjs +0 -89
  450. package/browser/esm/RLU85PsAYtKPUf6N.mjs +0 -71
  451. package/browser/esm/WMYR09ZOR8JbZEnx.mjs +0 -4748
  452. package/browser/esm/r2Az2Yc4_qj2-sn0.mjs +0 -398
  453. package/cdn/assets/514mXPTuNvdNgw35.js +0 -412
  454. package/cdn/assets/7Sg0ht_ZCMJkPurt.js +0 -516
  455. package/cdn/assets/B_3Musz0q2MSZ5H-.js +0 -799
  456. package/cdn/assets/BgyY4zVPZSXljoCZ.js +0 -14
  457. package/cdn/assets/BlIZ30huelIxNo6S.js +0 -91
  458. package/cdn/assets/BxqXOiOyI_XiOmvN.js +0 -156
  459. package/cdn/assets/CEYyp6Qrr_IopxpL.js +0 -22597
  460. package/cdn/assets/CL6Tgu_rUO6G-fyq.js +0 -2352
  461. package/cdn/assets/COMOqucXq7X1vi0P.js +0 -230
  462. package/cdn/assets/CRXSrbGNABtzf532.js +0 -399
  463. package/cdn/assets/CTvPIYWTcjwlJeEA.js +0 -237
  464. package/cdn/assets/CU5cKipVT1X8Xz7F.js +0 -156
  465. package/cdn/assets/ChAKLV5zrGAHAof2.js +0 -130
  466. package/cdn/assets/Cw-4uoMuq_m7ziA3.js +0 -36
  467. package/cdn/assets/DCnWyVXikb_8Dat3.js +0 -61
  468. package/cdn/assets/DHugYwX4_ZyqGn-C.js +0 -1947
  469. package/cdn/assets/DOHh3pUXxMM09UY5.js +0 -3604
  470. package/cdn/assets/DlpgIJxNq2V4gdDq.js +0 -74
  471. package/cdn/assets/DuAbY54w5gJpQgss.js +0 -84250
  472. package/cdn/assets/DviEoeWW0EvDg1hr.js +0 -149
  473. package/cdn/assets/PzWqv-oXxEuzKdaT.js +0 -484
  474. package/cdn/assets/QJ4AkDD269D1MzmI.js +0 -89
  475. package/cdn/assets/fm3mUdTDo-STB36M.js +0 -4749
  476. package/cdn/assets/lWY3TbG2NDscy9He.js +0 -72
  477. package/cdn/assets/xlXDq-qoj7eOE6_T.js +0 -5153
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.10
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.11
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { P as e } from "./CMxbiQ5J79M3n1tk.js";
8
- import { E as t, M as n, W as r, bt as i, ct as a } from "./BoFx07POTorOb5g-.js";
9
- import { i as o, l as s } from "./BAH_cWcQEIBKWnl6.js";
10
- import { $ as c, _ as l, it as u, q as d, s as f } from "./DuAbY54w5gJpQgss.js";
11
- import { a as p, i as m } from "./PzWqv-oXxEuzKdaT.js";
12
- import { Ct as h, Et as g, Ht as _, L as ee, M as v, T as y, Tt as b, an as x, c as te, ct as ne, gt as S, h as re, jt as C, l as w, lt as ie, mt as T, pt as E, q as D, tt as O, v as k, w as A, y as j, zt as M } from "./BuYS_ZjSlcvWZ1JC.js";
13
- import { i as N, r as P } from "./W1d6GQyySAHrtjEu.js";
14
- var F = class {
7
+ import { W as e } from "./PD_ckP5IyZurtALu.js";
8
+ import { A as t, Pt as n, U as r, bt as i, c as a, d as o, g as s } from "./u8iMUyjw60ayROFo.js";
9
+ import { i as c, l } from "./Cl1bVTUk0rQUQT9p.js";
10
+ import { Rt as u, lt as d, tn as f, tr as p, w as m } from "./D97AuczhOIBnqMXI.js";
11
+ import { At as h, B as g, Bn as ee, Bt as te, Et as ne, G as _, Gn as v, Hn as y, In as b, Ln as x, Mn as S, N as re, Nn as ie, Ot as C, P as ae, Q as w, Qt as oe, S as se, Tt as T, Wn as ce, Wt as le, Y as E, Z as D, _ as ue, an as de, b as fe, bn as O, bt as k, c as A, d as j, dt as M, fn as pe, gt as me, i as he, j as ge, tt as _e, un as N, xt as P, zn as F } from "./D2H92O2Ji36qebTp.js";
12
+ import "./D_d2cK3aSl0eMBpj.js";
13
+ import { a as I, n as ve, o as ye } from "./CkgK3CrVsGp5FE2i.js";
14
+ var L = class {
15
15
  constructor(e) {
16
16
  this.list = e;
17
17
  }
@@ -37,13 +37,13 @@ var F = class {
37
37
  [Symbol.iterator]() {
38
38
  return this.list.values();
39
39
  }
40
- }, I = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e && e !== "0" && e !== "off" && e !== "false" && null, ae = (e) => {
40
+ }, be = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e && e !== "0" && e !== "off" && e !== "false" && null, xe = (e) => {
41
41
  let t = parseInt(e);
42
42
  return isNaN(t) ? null : t;
43
- }, oe = (e) => {
43
+ }, Se = (e) => {
44
44
  let t = parseFloat(e);
45
45
  return isNaN(t) ? null : t;
46
- }, se = /* @__PURE__ */ new Map(), L = class {
46
+ }, Ce = /* @__PURE__ */ new Map(), R = class {
47
47
  constructor(t, n, r, i, a, o = null, s = e.EmptyObject) {
48
48
  this._fileLocation = "", this._parent = t, this.sharedShared = n, this.currentPath = r, this.elemRoot = i, this.jsonRoot = a, t ? (this._fileLocation = t._fileLocation, this._getRef = t._getRef, this._getRefs = t._getRefs, this._serializeElement = t._serializeElement, this._readEmbeddedPart = t._readEmbeddedPart) : (o && (this._fileLocation = o), s?.getRef && (this._getRef = (e, t, n) => s?.getRef?.(e, t, n, s?.parsedRefs)), s?.getRefs && (this._getRefs = (e) => s?.getRefs?.(e, s?.parsedRefs)), this._onWarning = s?.onWarning, this._addPerson = s?.addPerson, this._serializeElement = s?.serializeElement, this._readEmbeddedPart = s?.readEmbeddedPart);
49
49
  }
@@ -54,7 +54,7 @@ var F = class {
54
54
  return this._readEmbeddedPart?.(e, this._fileLocation) ?? null;
55
55
  }
56
56
  getRelationships() {
57
- return this._getRefs?.(this._fileLocation) ?? se;
57
+ return this._getRefs?.(this._fileLocation) ?? Ce;
58
58
  }
59
59
  getPath() {
60
60
  return this.currentPath;
@@ -114,7 +114,7 @@ var F = class {
114
114
  }
115
115
  if (n = a, n.length === 0) return null;
116
116
  }
117
- return n.length === 1 ? n[0] : n.length === 0 ? null : new F(n);
117
+ return n.length === 1 ? n[0] : n.length === 0 ? null : new L(n);
118
118
  }
119
119
  _matchesElementName(e, t) {
120
120
  return t.includes(":") ? (e.tagName || e.nodeName) === t : e.localName === t;
@@ -154,13 +154,13 @@ var F = class {
154
154
  return n && n.hasAttribute("val") ? parseFloat(n.getAttribute("val")) ?? null : null;
155
155
  }
156
156
  get BOOLEAN_COPY() {
157
- return I;
157
+ return be;
158
158
  }
159
159
  get INT_COPY() {
160
- return ae;
160
+ return xe;
161
161
  }
162
162
  get FLOAT_COPY() {
163
- return oe;
163
+ return Se;
164
164
  }
165
165
  copyFromAttribute(e, t, n, r = t, i = null) {
166
166
  if (!e || !n || !e.hasAttribute(t)) return;
@@ -173,67 +173,123 @@ var F = class {
173
173
  }
174
174
  this.setToPath(n, r, a);
175
175
  }
176
- }, R = class {
177
- constructor(e) {
178
- this.jsonKey = e;
176
+ }, z = (e, t) => {
177
+ let n = [], r = e.childNodes, i = r.length;
178
+ for (let e = 0; e < i; e++) {
179
+ let i = r.item(e);
180
+ i.nodeType === 1 && i.localName === t && n.push(i);
179
181
  }
180
- visit(e, t, n) {
181
- let r = {};
182
- return n[this.jsonKey] = r, r;
182
+ return n;
183
+ }, we = [
184
+ ["fillRef", "fill"],
185
+ ["lnRef", "stroke"],
186
+ ["effectRef", "effect"]
187
+ ], B = (e, t) => {
188
+ let n = new E(), r = {};
189
+ for (let [i, a] of we) {
190
+ let o = e.evaluate(i, t);
191
+ if (!o) continue;
192
+ let s = { index: parseInt(o.getAttribute("idx") ?? "0", 10) || 0 }, c = n.processAdjColor(e, o);
193
+ c && (s.color = c), r[a] = s;
194
+ }
195
+ let i = e.evaluate("fontRef", t);
196
+ if (i) {
197
+ let t = { index: i.getAttribute("idx") ?? "none" }, a = n.processAdjColor(e, i);
198
+ a && (t.color = a), r.font = t;
183
199
  }
184
- }, z = class {
200
+ return r;
201
+ }, V = class {
185
202
  visit(e, t, n) {
186
- let r = {};
187
- if (M(e, t, r, "grouping", "grouping"), E(e, t, r, "varyColors", "varyColors"), _(e, t, r, "gapWidth", "gapWidth", .01), _(e, t, r, "overlap", "overlap", .01), this.parseType(e, t, r), g(e, t, r, "bubbleScale", "bubbleScale"), E(e, t, r, "showNegBubbles", "showNegativeBubbleValues"), E(e, t, r, "sizeRepresents", "bubbleSizeRepresentsWidth"), g(e, t, r, "firstSliceAng", "startAngle"), g(e, t, r, "holeSize", "holeSize"), M(e, t, r, "scatterStyle", "scatterStyle"), this.parseAxisIds(e, t, r), Object.keys(r).length > 0) {
188
- let t = e.getVisitorParamsState().get("types");
189
- t || (e.warn("A chart type was read outside a chart; its types were started fresh.", { onceKey: "xlsx.chart.typesState" }), t = [], e.getVisitorParamsState().set("types", t)), t.push(r);
190
- }
191
- return r;
203
+ if (!t) return;
204
+ let r = e.evaluate("*/cNvPr", t);
205
+ return r.item && (r = r.item(0)), r && (e.copyFromAttribute(r, "name", n), e.copyFromAttribute(r, "descr", n, "description"), e.copyFromAttribute(r, "hidden", n, "hidden", e.BOOLEAN_COPY), this.readNonVisualDetails(e, r, n), e.copyFromAttribute(r, "id", n)), n;
192
206
  }
193
- parseType(e, t, n) {
194
- switch (t.localName) {
195
- case "areaChart":
196
- n.type = "area";
197
- break;
198
- case "bubbleChart":
199
- n.type = "bubble";
200
- break;
201
- case "doughnutChart":
202
- case "ofPieType":
203
- case "pieChart":
204
- n.type = "pie";
205
- break;
206
- case "lineChart":
207
- n.type = "line";
208
- break;
209
- case "scatterChart": n.type = "scatter";
210
- }
207
+ readNonVisualDetails(e, t, n) {
208
+ t.hasAttribute("title") && (n.title = t.getAttribute("title"));
209
+ let r = e.evaluate("hlinkClick", t);
210
+ r && (n.hyperlink = M(e, r));
211
+ let i = e.evaluate("hlinkHover", t);
212
+ i && (n.hoverHyperlink = M(e, i));
213
+ let a = e.evaluate("extLst", t), o = a ? e.serializeElement(a) : null;
214
+ o && (n.extLst = {
215
+ ...n.extLst,
216
+ nonVisual: o
217
+ });
211
218
  }
212
- parseAxisIds(e, t, n) {
213
- let r = e.evaluate("axId", t);
214
- r && r.length !== 0 && (n.xAxisId = r.item(0).getAttribute("val"), n.yAxisId = r.item(1).getAttribute("val"));
219
+ setContent(e, t) {
220
+ let n = e;
221
+ n.name !== void 0 && (t.name = n.name, delete n.name), n.description !== void 0 && (t.description = n.description, delete n.description);
222
+ for (let e of [
223
+ "title",
224
+ "hyperlink",
225
+ "hoverHyperlink",
226
+ "extLst"
227
+ ]) n[e] !== void 0 && (t.json && (t.json[e] = n[e]), delete n[e]);
228
+ e.content = t;
229
+ }
230
+ isGroupContent(e) {
231
+ return Array.isArray(e?.members);
215
232
  }
216
- }, B = (e, t, n) => {
217
- if (!0 === e.getValAttrAsBoolean("invertIfNegative", t)) {
218
- if (e.evaluate("extLst/ext/invertSolidFillFmt", t)) {
219
- if (n.fill && n.fillNegative) {
220
- let t = e.getFromPath(n, "fill.solid.adjs");
221
- t && e.setToPath(n, "fillNegative.solid.adjs", t);
233
+ readMemberHeader(e, t, n) {
234
+ let r = {}, i = {
235
+ anchor: void 0,
236
+ content: {
237
+ type: n,
238
+ json: r
222
239
  }
223
- } else {
224
- let e = { val: "FFFFFF" }, t = {};
225
- t.solid = e, n.fillNegative = t;
226
- let r = { val: "000000" }, i = {};
227
- i.solid = r;
228
- let a = {};
229
- a.fill = i, n.strokeNegative = a;
240
+ }, a = e.evaluate("*/cNvPr", t);
241
+ if (a?.item && (a = a.item(0)), a) {
242
+ let n = a.getAttribute("name");
243
+ n !== null && (i.content.name = n);
244
+ let o = a.getAttribute("descr");
245
+ o && (i.content.description = o), e.copyFromAttribute(a, "hidden", i, "hidden", e.BOOLEAN_COPY), this.readNonVisualDetails(e, a, r);
246
+ let s = this.readSourceId(e, t);
247
+ s !== void 0 && (r.sourceId = s);
248
+ }
249
+ return {
250
+ movable: i,
251
+ content: r
252
+ };
253
+ }
254
+ readStyleRefs(e, n, r) {
255
+ let i = e.evaluate("style", n);
256
+ if (!i) return void (r.style = null);
257
+ let a = B(e, i), o = t.withoutDefaultStyleRefs({
258
+ ...r,
259
+ style: a
260
+ });
261
+ o && (r.style = o);
262
+ }
263
+ readLocks(e) {
264
+ let t = e?.attributes;
265
+ if (!t || t.length === 0) return;
266
+ let n = {};
267
+ for (let e = 0; e < t.length; e++) {
268
+ let r = t.item(e);
269
+ r.name.startsWith("xmlns") || (n[r.localName ?? r.name] = P(r.value));
230
270
  }
271
+ return Object.keys(n).length > 0 ? n : void 0;
231
272
  }
232
- }, V = class {
273
+ readSourceId(e, t) {
274
+ let n = e.evaluate("*/cNvPr", t);
275
+ n?.item && (n = n.item(0));
276
+ let r = n?.getAttribute?.("id"), i = r ? parseInt(r, 10) : void 0;
277
+ return i === void 0 || isNaN(i) ? void 0 : i;
278
+ }
279
+ }, Te = [
280
+ ["spDef", "shape"],
281
+ ["lnDef", "line"],
282
+ ["txDef", "text"]
283
+ ], H = (e, t) => {
284
+ let n = t.getAttribute("dxfId");
285
+ if (n === null) return;
286
+ let r = parseInt(n);
287
+ return e.getVisitorParamsState().get("dxfs")?.get(r) || (e.warn(`A color filter or sort names a format that does not exist (dxfId '${n}').`), {});
288
+ }, U = (e) => e === "1" || e === "true", W = class {
233
289
  visit(e, t, n) {}
234
290
  processDataBarColor(e, t, n, r, i = "auto") {
235
291
  if (!t) return;
236
- let a = P((e) => t.getAttribute(e), i);
292
+ let a = k((e) => t.getAttribute(e), i);
237
293
  return a && (n[r] = a), n;
238
294
  }
239
295
  processFonts(e, t, n) {
@@ -249,14 +305,19 @@ var F = class {
249
305
  return n;
250
306
  }
251
307
  processFont(e, t, n) {
252
- e.getValAttrAsBoolean("b", t, !0) && (n.weight = 700), e.getValAttrAsBoolean("i", t, !0) && (n.style = i.Style.Italic), e.getValAttrAsBoolean("strike", t, !0) && (n.strike = !0);
308
+ e.getValAttrAsBoolean("b", t, !0) && (n.weight = 700), e.getValAttrAsBoolean("i", t, !0) && (n.style = o.Style.Italic), e.getValAttrAsBoolean("strike", t, !0) && (n.strike = x(!0));
253
309
  let r = e.evaluate("u", t);
254
- r && (n.underline = r.getAttribute("val") || i.UnderlineStyle.Single), M(e, t, n, "vertAlign", "verticalAlign"), n.verticalAlign === "superscript" ? n.verticalAlign = i.VerticalAlignment.Super : n.verticalAlign === "subscript" && (n.verticalAlign = i.VerticalAlignment.Sub), _(e, t, n, "sz", "size");
310
+ if (r) {
311
+ let e = r.getAttribute("val");
312
+ n.underline = g(e);
313
+ }
314
+ let i = D(e.evaluate("vertAlign", t)?.getAttribute("val"));
315
+ i !== void 0 && (n.baseline = i), _e(e, t, n, "sz", "size");
255
316
  let a = e.evaluate("color", t);
256
- this.processDataBarColor(e, a, n, "color"), n.color ||= "auto", M(e, t, n, "name", "family"), M(e, t, n, "rFont", "family");
257
- let o = e.evaluate("family", t);
258
- if (o) {
259
- let e = o.getAttribute("val");
317
+ this.processDataBarColor(e, a, n, "color"), n.color ||= "auto", w(e, t, n, "name", "family"), w(e, t, n, "rFont", "family");
318
+ let s = e.evaluate("family", t);
319
+ if (s) {
320
+ let e = s.getAttribute("val");
260
321
  if (e) switch (e) {
261
322
  case "1":
262
323
  n.fallbacks = ["serif"];
@@ -273,7 +334,12 @@ var F = class {
273
334
  case "5": n.fallbacks = ["fantasy"];
274
335
  }
275
336
  }
276
- return M(e, t, n, "scheme", "scheme"), n.family !== void 0 && n.scheme === void 0 && (n.scheme = i.Scheme.None), E(e, t, n, "shadow", "shadow", !0), E(e, t, n, "outline", "outline", !0), e.getValAttrAsBoolean("condense", t, !0) && (n.letterSpacing = -1), e.getValAttrAsBoolean("extend", t, !0) && (n.letterSpacing = 1), g(e, t, n, "charset", "charset"), n;
337
+ T(n, e.evaluate("scheme", t)?.getAttribute("val")), A(e, t, n, "shadow", "shadow", !0), A(e, t, n, "outline", "outline", !0);
338
+ for (let r of ["condense", "extend"]) {
339
+ let i = j(r, !!e.getValAttrAsBoolean(r, t, !0));
340
+ i !== void 0 && (n.letterSpacing = i);
341
+ }
342
+ return F(e, t, n, "charset", "charset"), n;
277
343
  }
278
344
  processFills(e, t, n) {
279
345
  if (!t) return;
@@ -284,29 +350,29 @@ var F = class {
284
350
  }
285
351
  return n;
286
352
  }
287
- processFill(e, n, r, i) {
288
- let a = { type: t.Type.None }, o = n.childNodes, s = !1, c = o.length;
353
+ processFill(e, t, n, i) {
354
+ let a = { type: r.Type.None }, o = t.childNodes, s = !1, c = o.length;
289
355
  for (let t = 0; !s && t < c; t++) {
290
356
  let n = o.item(t);
291
357
  n.nodeType === 1 && (n.localName === "gradientFill" ? (this.processGradientFill(e, n, a), s = !0) : n.localName === "patternFill" && (this.processPatternFill(e, n, a), s = !0));
292
358
  }
293
- return r[i] = a, r;
359
+ return n[i] = a, n;
294
360
  }
295
- processGradientFill(e, n, r) {
296
- if (!n) return;
297
- r.type = t.Type.Gradient;
361
+ processGradientFill(e, t, n) {
362
+ if (!t) return;
363
+ n.type = r.Type.Gradient;
298
364
  let i = [];
299
- r.stops = i;
300
- let a = n.getAttribute("type");
301
- a && (r.gradientType = a);
302
- let o = n.hasAttribute("degree") ? parseFloat(n.getAttribute("degree")) : 0;
303
- (o + 90) % 360 != 0 && (r.angle = (o + 90) % 360), (n.hasAttribute("left") || n.hasAttribute("top") || n.hasAttribute("right") || n.hasAttribute("bottom")) && (r.focus = {
304
- left: H(n.getAttribute("left")),
305
- top: H(n.getAttribute("top")),
306
- right: H(n.getAttribute("right")),
307
- bottom: H(n.getAttribute("bottom"))
365
+ n.stops = i;
366
+ let a = t.getAttribute("type");
367
+ a && (n.gradientType = a);
368
+ let o = t.hasAttribute("degree") ? parseFloat(t.getAttribute("degree")) : 0;
369
+ (o + 90) % 360 != 0 && (n.angle = (o + 90) % 360), (t.hasAttribute("left") || t.hasAttribute("top") || t.hasAttribute("right") || t.hasAttribute("bottom")) && (n.focus = {
370
+ left: G(t.getAttribute("left")),
371
+ top: G(t.getAttribute("top")),
372
+ right: G(t.getAttribute("right")),
373
+ bottom: G(t.getAttribute("bottom"))
308
374
  });
309
- let s = n.childNodes, c = s.length;
375
+ let s = t.childNodes, c = s.length;
310
376
  for (let t = 0; t < c; t++) {
311
377
  let n = s.item(t);
312
378
  if (n.nodeType === 1 && n.localName === "stop") {
@@ -316,22 +382,22 @@ var F = class {
316
382
  this.processDataBarColor(e, r, t, "color");
317
383
  }
318
384
  }
319
- return r;
385
+ return n;
320
386
  }
321
- processPatternFill(e, n, r) {
322
- if (!n) return;
323
- let i = e.getVisitorParamsState().get("processingDXFs"), a = n.getAttribute("patternType") || (i ? t.BuiltInSheetPattern.Solid : t.BuiltInSheetPattern.None);
324
- if (a === t.BuiltInSheetPattern.None) return { none: !0 };
325
- r.type = t.Type.Pattern, a && (r.patternType = a);
326
- let o = "foreground", s = "background", c = r.patternType === t.BuiltInSheetPattern.Solid && i, l = c ? "dk1" : "lt1", u = c ? "lt1" : "dk1";
387
+ processPatternFill(e, t, n) {
388
+ if (!t) return;
389
+ let i = e.getVisitorParamsState().get("processingDXFs"), a = t.getAttribute("patternType") || (i ? r.BuiltInSheetPattern.Solid : r.BuiltInSheetPattern.None);
390
+ if (a === r.BuiltInSheetPattern.None) return { none: !0 };
391
+ n.type = r.Type.Pattern, a && (n.patternType = a);
392
+ let o = "foreground", s = "background", c = n.patternType === r.BuiltInSheetPattern.Solid && i, l = c ? "dk1" : "lt1", u = c ? "lt1" : "dk1";
327
393
  if (c) {
328
394
  let e = o;
329
395
  o = s, s = e;
330
396
  }
331
- let d = e.evaluate("fgColor", n);
332
- this.processDataBarColor(e, d, r, o, l);
333
- let f = e.evaluate("bgColor", n);
334
- return this.processDataBarColor(e, f, r, s, u), c && (r.foreground ||= "lt1", r.background ||= "dk1"), r;
397
+ let d = e.evaluate("fgColor", t);
398
+ this.processDataBarColor(e, d, n, o, l);
399
+ let f = e.evaluate("bgColor", t);
400
+ return this.processDataBarColor(e, f, n, s, u), c && (n.foreground ||= "lt1", n.background ||= "dk1"), n;
335
401
  }
336
402
  processBorders(e, t, n, r) {
337
403
  if (!t) return;
@@ -342,29 +408,31 @@ var F = class {
342
408
  }
343
409
  return n;
344
410
  }
345
- processBorder(e, t, r, i, a) {
411
+ processBorder(e, t, n, r, a) {
346
412
  if (!t) return;
347
413
  let o = {};
348
- return this.processBorderStroke(e, t, o, n.Edge.Left), this.processBorderStroke(e, t, o, n.Edge.Right), a ? (o.right || o.left) && (o.vertical = o.right ? { ...o.right } : { ...o.left }) : this.processBorderStroke(e, t, o, n.Edge.Vertical), this.processBorderStroke(e, t, o, n.Edge.Top), this.processBorderStroke(e, t, o, n.Edge.Bottom), a ? (o.bottom || o.top) && (o.horizontal = o.bottom ? { ...o.bottom } : { ...o.top }) : this.processBorderStroke(e, t, o, n.Edge.Horizontal), r[i] = o, r;
414
+ this.processBorderStroke(e, t, o, i.Edge.Left), this.processBorderStroke(e, t, o, i.Edge.Right), a ? (o.right || o.left) && (o.vertical = o.right ? { ...o.right } : { ...o.left }) : this.processBorderStroke(e, t, o, i.Edge.Vertical), this.processBorderStroke(e, t, o, i.Edge.Top), this.processBorderStroke(e, t, o, i.Edge.Bottom), a ? (o.bottom || o.top) && (o.horizontal = o.bottom ? { ...o.bottom } : { ...o.top }) : this.processBorderStroke(e, t, o, i.Edge.Horizontal);
415
+ let s = this.processBorderStroke(e, t, {}, "diagonal");
416
+ return s && (U(t.getAttribute("diagonalUp")) && (o.diagonalUp = { ...s }), U(t.getAttribute("diagonalDown")) && (o.diagonalDown = { ...s })), n[r] = o, n;
349
417
  }
350
- processBorderStroke(e, t, r, i) {
418
+ processBorderStroke(e, t, n, r) {
351
419
  if (!t) return;
352
- let a = e.evaluate(i, t);
420
+ let a = e.evaluate(r, t);
353
421
  if (!a) return;
354
422
  let o = {};
355
- a.hasAttribute("style") ? o.style = a.getAttribute("style") : e.getVisitorParamsState().get("processingDXFs") && (o.style = n.StrokeStyle.None);
423
+ a.hasAttribute("style") ? o.style = a.getAttribute("style") : e.getVisitorParamsState().get("processingDXFs") && (o.style = i.StrokeStyle.None);
356
424
  let s = e.evaluate("color", a);
357
- return s && this.processDataBarColor(e, s, o, "color"), Object.keys(o).length > 0 ? r[i] = o : null;
425
+ return s && this.processDataBarColor(e, s, o, "color"), Object.keys(o).length > 0 ? n[r] = o : null;
358
426
  }
359
- }, H = (e) => {
427
+ }, G = (e) => {
360
428
  if (!e) return 0;
361
429
  let t = parseFloat(e);
362
430
  return isNaN(t) ? 0 : t;
363
- }, U = new Set(Object.values(d.ElementType).filter((e) => e !== d.ElementType.WholeTable && e !== d.ElementType.HeaderRow)), W = {
431
+ }, Ee = new Set(Object.values(u.ElementType).filter((e) => e !== u.ElementType.WholeTable && e !== u.ElementType.HeaderRow)), De = {
364
432
  auto: "auto",
365
433
  autoNoTable: "automaticExceptTables",
366
434
  manual: "manual"
367
- }, G = [
435
+ }, K = [
368
436
  "tableId",
369
437
  "columnId",
370
438
  "cacheName",
@@ -373,10 +441,10 @@ var F = class {
373
441
  "sortOrder",
374
442
  "customListSort",
375
443
  "crossFilter"
376
- ], K = (e, t) => {
444
+ ], q = (e, t) => {
377
445
  let n = e.content, r = n?.json;
378
446
  if (r) {
379
- if (n.type === "shape" || t && n.type === "picture") {
447
+ if (n.type === "shape" || n.type === "picture") {
380
448
  let { rotation: n, flipH: i, flipV: a, bounds: o } = r;
381
449
  delete r.rotation, delete r.flipH, delete r.flipV, delete r.bounds, n !== void 0 && n !== 0 && (e.rotation = n), i && (e.flipH = !0), a && (e.flipV = !0), t && o && (e.anchor = {
382
450
  tl: {
@@ -389,135 +457,41 @@ var F = class {
389
457
  }
390
458
  });
391
459
  }
392
- if (n.type === "group") for (let e of r.members ?? []) K(e, !0);
460
+ if (n.type === "group") for (let e of r.members ?? []) q(e, !0);
393
461
  }
394
- }, ce = [
395
- ["fillRef", "fill"],
396
- ["lnRef", "stroke"],
397
- ["effectRef", "effect"]
398
- ], q = class {
399
- visit(e, t, n) {
400
- if (!t) return;
401
- let r = e.evaluate("*/cNvPr", t);
402
- return r.item && (r = r.item(0)), r && (e.copyFromAttribute(r, "name", n), e.copyFromAttribute(r, "descr", n, "description"), e.copyFromAttribute(r, "hidden", n, "hidden", e.BOOLEAN_COPY), this.readNonVisualDetails(e, r, n), e.copyFromAttribute(r, "id", n)), n;
403
- }
404
- readNonVisualDetails(e, t, n) {
405
- t.hasAttribute("title") && (n.title = t.getAttribute("title"));
406
- let r = e.evaluate("hlinkClick", t);
407
- r && (n.hyperlink = j(e, r));
408
- let i = e.evaluate("hlinkHover", t);
409
- i && (n.hoverHyperlink = j(e, i));
410
- let a = e.evaluate("extLst", t), o = a ? e.serializeElement(a) : null;
411
- o && (n.extLst = {
412
- ...n.extLst,
413
- nonVisual: o
414
- });
415
- }
416
- setContent(e, t) {
417
- let n = e;
418
- n.name !== void 0 && (t.name = n.name, delete n.name), n.description !== void 0 && (t.description = n.description, delete n.description);
419
- for (let e of [
420
- "title",
421
- "hyperlink",
422
- "hoverHyperlink",
423
- "extLst"
424
- ]) n[e] !== void 0 && (t.json && (t.json[e] = n[e]), delete n[e]);
425
- e.content = t;
426
- }
427
- isGroupContent(e) {
428
- return Array.isArray(e?.members);
429
- }
430
- readMemberHeader(e, t, n) {
431
- let r = {}, i = {
432
- anchor: void 0,
433
- content: {
434
- type: n,
435
- json: r
436
- }
437
- }, a = e.evaluate("*/cNvPr", t);
438
- if (a?.item && (a = a.item(0)), a) {
439
- let n = a.getAttribute("name");
440
- n !== null && (i.content.name = n);
441
- let o = a.getAttribute("descr");
442
- o && (i.content.description = o), e.copyFromAttribute(a, "hidden", i, "hidden", e.BOOLEAN_COPY), this.readNonVisualDetails(e, a, r);
443
- let s = this.readSourceId(e, t);
444
- s !== void 0 && (r.sourceId = s);
445
- }
446
- return {
447
- movable: i,
448
- content: r
449
- };
450
- }
451
- readStyleRefs(e, t, n) {
452
- let r = e.evaluate("style", t);
453
- if (!r) return void (n.style = null);
454
- let i = new w(), a = {};
455
- for (let [t, n] of ce) {
456
- let o = e.evaluate(t, r);
457
- if (!o) continue;
458
- let s = { index: parseInt(o.getAttribute("idx") ?? "0", 10) || 0 }, c = i.processAdjColor(e, o);
459
- c && (s.color = c), a[n] = s;
460
- }
461
- let o = e.evaluate("fontRef", r);
462
- if (o) {
463
- let t = { index: o.getAttribute("idx") ?? "none" }, n = i.processAdjColor(e, o);
464
- n && (t.color = n), a.font = t;
465
- }
466
- let s = p.withoutDefaultStyleRefs({
467
- ...n,
468
- style: a
469
- });
470
- s && (n.style = s);
471
- }
472
- readLocks(e) {
473
- let t = e?.attributes;
474
- if (!t || t.length === 0) return;
475
- let n = {};
476
- for (let e = 0; e < t.length; e++) {
477
- let r = t.item(e);
478
- r.name.startsWith("xmlns") || (n[r.localName ?? r.name] = S(r.value));
479
- }
480
- return Object.keys(n).length > 0 ? n : void 0;
481
- }
482
- readSourceId(e, t) {
483
- let n = e.evaluate("*/cNvPr", t);
484
- n?.item && (n = n.item(0));
485
- let r = n?.getAttribute?.("id"), i = r ? parseInt(r, 10) : void 0;
486
- return i === void 0 || isNaN(i) ? void 0 : i;
487
- }
488
- }, J = class extends q {
462
+ }, J = class extends V {
489
463
  visit(e, t, n) {
490
464
  if (t) return this.visitShape(e, t, n, "sp", "nvSpPr/cNvSpPr/spLocks");
491
465
  }
492
466
  visitShape(e, t, n, r, i) {
493
- let a = y[r];
467
+ let o = ie[r];
494
468
  if (this.isGroupContent(n)) {
495
469
  if (e.getPath().includes("Fallback")) return {};
496
- let { movable: o, content: s } = this.readMemberHeader(e, t, "shape");
497
- a !== m.Type.Shape && (s.type = a), this.readStyleRefs(e, t, s), this.readShapeDetails(e, t, r, i, s);
498
- let c = e.evaluate(i, t);
499
- c?.hasAttribute?.("noChangeAspect") && (o.lockAspect = c.getAttribute("noChangeAspect") === "1");
500
- let l = this.readTwinOf(e, t);
501
- return l !== void 0 && Object.assign(s, { twinOf: l }), n.members.push(o), s;
470
+ let { movable: s, content: c } = this.readMemberHeader(e, t, "shape");
471
+ o !== a.Type.Shape && (c.type = o), this.readShapeDetails(e, t, r, i, c), this.readStyleRefs(e, t, c);
472
+ let l = e.evaluate(i, t);
473
+ l?.hasAttribute?.("noChangeAspect") && (s.lockAspect = l.getAttribute("noChangeAspect") === "1");
474
+ let u = this.readTwinOf(e, t);
475
+ return u !== void 0 && Object.assign(c, { twinOf: u }), n.members.push(s), c;
502
476
  }
503
477
  if (e.getPath().includes("Fallback") && n.content) {
504
478
  let r = n.content.json;
505
- if (n.content.type === "shape" && r && (r.type ?? m.Type.Shape) === a) {
506
- let n = e.evaluate("txBody", t), i = n ? new O().readTextBody(e, n) : null;
507
- i && D(i) !== "" && (r.text = i);
479
+ if (n.content.type === "shape" && r && (r.type ?? a.Type.Shape) === o) {
480
+ let n = e.evaluate("txBody", t), i = n ? new S().readTextBody(e, n) : null;
481
+ i && pe(i) !== "" && (r.text = i);
508
482
  }
509
483
  return {};
510
484
  }
511
485
  n = super.visit(e, t, n);
512
- let o = e.evaluate(i, t);
513
- o?.hasAttribute?.("noChangeAspect") && (n.lockAspect = o.getAttribute("noChangeAspect") === "1");
514
- let s = a === m.Type.Shape ? {} : { type: a }, c = this.readSourceId(e, t);
515
- c !== void 0 && (s.sourceId = c), this.readStyleRefs(e, t, s), this.readShapeDetails(e, t, r, i, s);
516
- let l = this.readTwinOf(e, t);
517
- return l !== void 0 && Object.assign(s, { twinOf: l }), this.setContent(n, {
486
+ let s = e.evaluate(i, t);
487
+ s?.hasAttribute?.("noChangeAspect") && (n.lockAspect = s.getAttribute("noChangeAspect") === "1");
488
+ let c = o === a.Type.Shape ? {} : { type: o }, l = this.readSourceId(e, t);
489
+ l !== void 0 && (c.sourceId = l), this.readShapeDetails(e, t, r, i, c), this.readStyleRefs(e, t, c);
490
+ let u = this.readTwinOf(e, t);
491
+ return u !== void 0 && Object.assign(c, { twinOf: u }), this.setContent(n, {
518
492
  type: "shape",
519
- json: s
520
- }), s;
493
+ json: c
494
+ }), c;
521
495
  }
522
496
  readTwinOf(e, t) {
523
497
  let n = e.evaluate("*/cNvPr/extLst/ext/compatExt", t);
@@ -529,7 +503,7 @@ var F = class {
529
503
  let a = t.getAttribute("macro");
530
504
  a && (i.macro = a);
531
505
  let o = t.getAttribute("textlink");
532
- o && (i.textLink = o), t.hasAttribute("fLocksText") && (i.locksText = S(t.getAttribute("fLocksText"))), t.hasAttribute("fPublished") && (i.published = S(t.getAttribute("fPublished")));
506
+ o && (i.textLink = o), t.hasAttribute("fLocksText") && (i.locksText = P(t.getAttribute("fLocksText"))), t.hasAttribute("fPublished") && (i.published = P(t.getAttribute("fPublished")));
533
507
  let s = r.slice(0, r.lastIndexOf("/")), c = e.evaluate(s, t);
534
508
  c?.getAttribute?.("txBox") === "1" && (i.textBox = !0);
535
509
  let l = this.readLocks(e.evaluate(r, t));
@@ -544,25 +518,25 @@ var F = class {
544
518
  (n || r) && (i.connectorEnds = {}, n && (i.connectorEnds.start = n), r && (i.connectorEnds.end = r));
545
519
  }
546
520
  }
547
- }, Y = (e, t, n, r) => {
521
+ }, Oe = /^<a:extLst(?:\s+xmlns:a="[^"]*")?><a:ext uri="\{28A0092B-C50C-407E-A947-70E740481C1C\}"><a14:useLocalDpi(?:\s+xmlns:a14="[^"]*")?\s+val="0"\s*\/><\/a:ext><\/a:extLst>$/, Y = (e, t, n, r) => {
548
522
  let i = e.evaluate(n, t), a = e.evaluate(r, t);
549
523
  return i || a ? {
550
- x: T(i?.getAttribute("x") ?? null) ?? 0,
551
- y: T(i?.getAttribute("y") ?? null) ?? 0,
552
- width: T(a?.getAttribute("cx") ?? null) ?? 0,
553
- height: T(a?.getAttribute("cy") ?? null) ?? 0
524
+ x: N(i?.getAttribute("x") ?? null) ?? 0,
525
+ y: N(i?.getAttribute("y") ?? null) ?? 0,
526
+ width: N(a?.getAttribute("cx") ?? null) ?? 0,
527
+ height: N(a?.getAttribute("cy") ?? null) ?? 0
554
528
  } : null;
555
529
  }, X = "richTypes", Z = "richData", Q = (e) => {
556
530
  let t = e.getAttribute("val");
557
531
  return t !== "0" && t !== "false";
558
- }, le = {
532
+ }, ke = {
559
533
  1: "serif",
560
534
  2: "sans-serif",
561
535
  3: "monospace",
562
536
  4: "cursive",
563
537
  5: "fantasy"
564
538
  };
565
- function ue(e) {
539
+ function Ae(e) {
566
540
  let t = {}, n = e.childNodes;
567
541
  for (let e = 0; e < n.length; e++) {
568
542
  let r = n.item(e);
@@ -571,10 +545,10 @@ function ue(e) {
571
545
  t.weight = Q(r) ? 700 : 400;
572
546
  break;
573
547
  case "i":
574
- t.style = Q(r) ? i.Style.Italic : i.Style.Normal;
548
+ t.style = Q(r) ? o.Style.Italic : o.Style.Normal;
575
549
  break;
576
550
  case "strike":
577
- t.strike = Q(r);
551
+ t.strike = x(Q(r));
578
552
  break;
579
553
  case "outline":
580
554
  t.outline = Q(r);
@@ -582,15 +556,18 @@ function ue(e) {
582
556
  case "shadow":
583
557
  t.shadow = Q(r);
584
558
  break;
585
- case "extend":
586
- t.extend = Q(r);
559
+ case "condense":
560
+ case "extend": {
561
+ let e = j(r.localName, Q(r));
562
+ e !== void 0 && (t.letterSpacing = e);
587
563
  break;
564
+ }
588
565
  case "u":
589
- t.underline = r.getAttribute("val") || i.UnderlineStyle.Single;
566
+ t.underline = g(r.getAttribute("val"));
590
567
  break;
591
568
  case "vertAlign": {
592
- let e = r.getAttribute("val");
593
- e === "superscript" ? t.verticalAlign = i.VerticalAlignment.Super : e === "subscript" ? t.verticalAlign = i.VerticalAlignment.Sub : e === "baseline" && (t.verticalAlign = i.VerticalAlignment.Baseline);
569
+ let e = D(r.getAttribute("val"));
570
+ e !== void 0 && (t.baseline = e);
594
571
  break;
595
572
  }
596
573
  case "sz": {
@@ -604,7 +581,7 @@ function ue(e) {
604
581
  break;
605
582
  }
606
583
  case "family": {
607
- let e = le[r.getAttribute("val") ?? ""];
584
+ let e = ke[r.getAttribute("val") ?? ""];
608
585
  e && (t.fallbacks = [e]);
609
586
  break;
610
587
  }
@@ -613,18 +590,16 @@ function ue(e) {
613
590
  isNaN(e) || (t.charset = e);
614
591
  break;
615
592
  }
616
- case "scheme": {
617
- let e = r.getAttribute("val");
618
- e && (t.scheme = e);
593
+ case "scheme":
594
+ T(t, r.getAttribute("val"));
619
595
  break;
620
- }
621
596
  case "color": {
622
597
  let e = r.getAttribute("rgb");
623
598
  if (e && !r.hasAttribute("theme")) {
624
599
  t.color = "#" + (e.length === 8 ? e.substring(2) : e).toUpperCase();
625
600
  break;
626
601
  }
627
- let n = P((e) => r.getAttribute(e));
602
+ let n = k((e) => r.getAttribute(e));
628
603
  n && (t.color = n);
629
604
  break;
630
605
  }
@@ -668,14 +643,37 @@ var $ = {
668
643
  },
669
644
  AppPropertiesVisitor: class {
670
645
  visit(e, t, n) {
671
- let r = [], i = t.childNodes, a = i.length;
672
- for (let t = 0; t < a; t++) {
673
- let n = i.item(t);
646
+ let r = t.childNodes, i = r.length;
647
+ for (let e = 0; e < i; e++) if (r.item(e).localName === "property") return this.visitCustom(t, n);
648
+ let a = [];
649
+ for (let t = 0; t < i; t++) {
650
+ let n = r.item(t);
674
651
  if (n.nodeType !== 1) continue;
675
- let a = this.processProperty(e, n);
676
- a && r.push(a);
652
+ let i = this.processProperty(e, n);
653
+ i && a.push(i);
677
654
  }
678
- return r.length > 0 && (n.properties = r), r;
655
+ return a.length > 0 && (n.properties = a), a;
656
+ }
657
+ visitCustom(e, t) {
658
+ let n = [], r = e.childNodes, i = r.length;
659
+ for (let e = 0; e < i; e++) {
660
+ let t = r.item(e);
661
+ if (t.nodeType !== 1 || t.localName !== "property") continue;
662
+ let i = t.getAttribute("name");
663
+ if (!i) continue;
664
+ let a = null;
665
+ for (let e = 0; e < t.childNodes.length && !a; e++) {
666
+ let n = t.childNodes.item(e);
667
+ n.nodeType === 1 && (a = n);
668
+ }
669
+ let o = {
670
+ key: i,
671
+ kind: a?.localName ?? null,
672
+ value: a?.textContent ?? ""
673
+ }, s = t.getAttribute("linkTarget");
674
+ s && (o.linkTarget = s), n.push(o);
675
+ }
676
+ return n.length > 0 && (t.custom = n), n;
679
677
  }
680
678
  processProperty(e, t) {
681
679
  if (t) return {
@@ -684,272 +682,37 @@ var $ = {
684
682
  };
685
683
  }
686
684
  },
687
- ChartSpaceVisitor: class {
688
- visit(e, t, n) {
689
- return E(e, t, n, "roundedCorners", "roundedCorners"), g(e, t, n, ".//AlternateContent/Fallback/style", "styleId"), e.getVisitorParamsState().set("types", []), e.getVisitorParamsState().set("axes", /* @__PURE__ */ new Map()), n.range = null, n;
690
- }
691
- afterVisit(e, t, n) {
692
- let r = {};
693
- n.types = r;
694
- let i = {}, a = 0, o = {}, s = 0, c = e.getVisitorParamsState().get("axes"), l = e.getVisitorParamsState().get("types"), u = l.length;
695
- for (let e = 0; e < u; e++) {
696
- let t = l[e];
697
- if (t.xAxisId) {
698
- let r = t.xAxisId, o = c.get(r);
699
- i[e + ""] = o, t.offsetXAxis = e, delete t.xAxisId, n.xAxes = i, i.length = ++a;
700
- }
701
- if (t.yAxisId) {
702
- let r = t.yAxisId, i = c.get(r);
703
- o[e + ""] = i, t.offsetYAxis = e, delete t.yAxisId, n.yAxes = o, o.length = ++s;
704
- }
705
- r[e + ""] = t;
706
- }
707
- r.length = l.length;
708
- let d = e.getVisitorParamsState().get("series");
709
- if (!d || d.length === 0) return;
710
- let f = {};
711
- n.series = f;
712
- let p = d.length;
713
- for (let e = 0; e < p; e++) f[e + ""] = d[e];
714
- f.length = p, e.getVisitorParamsState().delete("types"), e.getVisitorParamsState().delete("axes"), e.getVisitorParamsState().delete("series");
715
- }
716
- },
717
- ChartVisitor: class {
718
- visit(e, t, n) {
719
- return e.getVisitorParamsState().set("types", []), e.getVisitorParamsState().set("axes", /* @__PURE__ */ new Map()), E(e, t, n, "plotVisOnly", "plotVisOnly"), M(e, t, n, "dispBlanksAs", "dispBlanksAs"), E(e, t, n, ".//extLst/ext/dataDisplayOptions16/dispNaAsBlank", "dispNaAsBlank"), E(e, t, n, "showDLblsOverMax", "showDLblsOverMax"), n;
720
- }
721
- afterVisit(e, t, n) {
722
- try {
723
- let r = e.getValAttrAsBoolean("autoTitleDeleted", t), i = e.evaluate("title", t);
724
- e.setToPath(n, "title.shown", !(!0 === r || !i));
725
- let a = e.evaluate("legend", t);
726
- e.setToPath(n, "legend.shown", a !== null);
727
- } catch (e) {
728
- throw Error("Unexpected Error parsing Chart: " + e);
729
- }
730
- }
731
- },
732
- PlotAreaVisitor: class {
733
- visit(e, t, n) {
734
- let r = {};
735
- return n.plotArea = r, r;
736
- }
737
- },
738
- ShapePropertiesVisitor: v,
739
- BarChartTypeVisitor: class extends z {
740
- parseType(e, t, n) {
741
- let r = e.getValAttrAsString("barDir", t);
742
- r && (n.type = r === "col" ? "column" : "bar");
743
- }
744
- },
745
- ChartTypeVisitor: z,
746
- DataLabelsVisitor: class {
747
- constructor(e) {
748
- this.jsonKey = e;
749
- }
750
- visit(e, t, n) {
751
- let r = {}, i = r, a = e.getValAttrAsString("idx", t);
752
- a !== null && (i = {}, i[a] = r);
753
- let o = e.getValAttrAsBoolean("delete", t);
754
- this.parseNumFormat(e, t, r), !0 === o ? (r.showBubbleSize = !1, r.showCatName = !1, r.showLeaderLines = !1, r.showPercentage = !1, r.showSerName = !1, r.showVal = !1, r.showLegendKey = !1) : (E(e, t, r, "showBubbleSize", "showBubbleSize"), E(e, t, r, "showCatName", "showCatName"), E(e, t, r, "showLeaderLines", "showLeaderLines"), E(e, t, r, "showPercent", "showPercentage"), E(e, t, r, "showSerName", "showSerName"), E(e, t, r, "showVal", "showVal"), E(e, t, r, "showLegendKey", "showLegendKey"));
755
- let s = e.evaluate("separator", t);
756
- return s !== null && (r.separator = s.textContent), M(e, t, r, "dLblPos", "position"), n[this.jsonKey] = i, r;
757
- }
758
- parseNumFormat(e, t, n) {
759
- let r = e.evaluate("numFmt", t);
760
- r && (n.formatCode = r.getAttribute("formatCode"), r.hasAttribute("sourceLinked") && (n.sourceLinked = r.getAttribute("sourceLinked") === "1"));
761
- }
762
- },
763
- SeriesVisitor: class {
685
+ ShapePropertiesVisitor: O,
686
+ TextPropertiesVisitor: me,
687
+ ShapeTextVisitor: S,
688
+ ThemeVisitor: class {
764
689
  visit(e, t, n) {
765
- let r = {};
766
- g(e, t, r, "explosion", "explosion");
767
- let i = e.evaluate("cat/*/f", t);
768
- i ||= e.evaluate("xVal/*/f", t);
769
- let a = null;
770
- i !== null && i.firstChild !== null && (a = i.firstChild.nodeValue), i || (i = e.evaluate("cat/strLit", t), i ||= e.evaluate("cat/numLit", t), i && (a = this.parsePointsAsString(e, i))), a !== null && (r.xRange = a);
771
- let o = e.evaluate("val/*/f", t);
772
- o ||= e.evaluate("yVal/*/f", t);
773
- let s = null;
774
- o && o.firstChild && (s = o.firstChild.nodeValue), o || (o = e.evaluate("val/numLit", t), o !== null && (s = this.parsePointsAsString(e, o))), s !== null && (r.valRange = s), this.parseTitleRangeOrValue(e, t, r), g(e, t, r, "idx", "idx"), E(e, t, r, "smooth", "smooth"), r.offsetChart = e.getVisitorParamsState().get("types").length - 1;
775
- let c = e.getVisitorParamsState().get("series");
776
- return c || (c = [], e.getVisitorParamsState().set("series", c)), c.push(r), r;
777
- }
778
- parseTitleRangeOrValue(e, t, n) {
779
- let r = e.evaluate("tx/strRef/f", t);
780
- if (r !== null) {
781
- let t = r.firstChild.nodeValue;
782
- e.setToPath(n, "title.range", t);
783
- } else {
784
- let r = e.evaluate("tx/v", t);
785
- r !== null && e.setToPath(n, "title.text.simpleRun", r.firstChild.nodeValue);
786
- }
787
- }
788
- parsePointsAsString(e, t) {
789
- let n = "{", r = e.getValAttrAsInteger("ptCount", t), i = e.evaluate("pt", t), a = [];
790
- for (let n = 0; i && r && n < r; n++) {
791
- let r = null, i = e.evaluate("pt[@idx='" + n + "']/v", t);
792
- i && (r = i.textContent), a[n] = r;
793
- }
794
- for (let e = 0; e < a.length; e++) e > 0 && (n += ","), a[e] !== void 0 && (n += a[e]);
795
- return n += "}", n;
796
- }
797
- afterVisit(e, t, n) {
798
- B(e, t, n);
799
- let r = e.getFromPath(n, "points");
690
+ n.name = t.getAttribute("name"), n.objectDefaults = {};
691
+ let r = z(t, "custClrLst")[0];
800
692
  if (r) {
801
- let t = Object.keys(r);
802
- for (let i = 0; i < t.length; i++) {
803
- let a = t[i], o = e.getFromPath(r, a);
804
- if (!o) continue;
805
- let s = e.getFromPath(o, "markers");
806
- s && (e.setToPath(n, "markers.points." + a, s), delete o.markers);
693
+ let t = new E(), i = [];
694
+ for (let n of z(r, "custClr")) {
695
+ let r = t.processAdjColor(e, n);
696
+ if (!r) continue;
697
+ let a = { color: r }, o = n.getAttribute("name");
698
+ o && (a.name = o), i.push(a);
807
699
  }
700
+ i.length && (n.customColors = i);
808
701
  }
809
- }
810
- },
811
- DataPointVisitor: class {
812
- DataPointVisitor() {}
813
- visit(e, t, n) {
814
- let r = e.getFromPath(n, "points"), i = null;
815
- r ? i = r : (i = {}, e.setToPath(n, "points", i));
816
- let a = {}, o = e.getValAttrAsString("idx", t);
817
- return o !== null && (i[o] = a), E(e, t, a, "bubble3D", "bubble3D"), g(e, t, a, "explosion", "explosion"), B(e, t, a), a;
818
- }
819
- },
820
- MarkerVisitor: class {
821
- visit(e, t, n) {
822
- let r = t.parentNode.localName;
823
- if (r === "ser" || r === "dPt") {
824
- let r = {}, i = e.getValAttrAsString("size", t);
825
- i !== null && (r.size = i);
826
- let a = e.getValAttrAsString("symbol", t);
827
- return a && (r.type = a), n.markers = r, r;
828
- }
829
- return null;
830
- }
831
- },
832
- AxisVisitor: class {
833
- visit(e, t, n) {
834
- let r = {};
835
- this.parseScaling(e, t, r), _(e, t, r, "majorUnit", "majorUnits"), _(e, t, r, "minorUnit", "minorUnits"), E(e, t, r, "delete", "shown"), this.parseOrientation(e, t, r), this.parseNumFormat(e, t, r), M(e, t, r, "majorTickMark", "majorTickMarks"), M(e, t, r, "minorTickMark", "minorTickMarks"), M(e, t, r, "crosses", "crosses"), _(e, t, r, "crossesAt", "crosses"), M(e, t, r, "crossBetween", "crossBetween"), this.parseLabelAlign(e, t, r), g(e, t, r, "lblOffset", "labelOffset"), M(e, t, r, "tickLblPos", "labelPosition");
836
- let i = e.getValAttrAsInteger("noMultiLvlLbl", t);
837
- r.labelMultiLevel = i !== null && i === 0, g(e, t, r, "tickMarkSkip", "tickMarkSkip"), g(e, t, r, "tickLblSkip", "labelInterval"), this.parseDisplayCustOrBuiltInUnit(t, e, r), this.parseTimeUnits(e, t, r, "majorUnitDates", "majorTimeUnit", "majorUnit"), this.parseTimeUnits(e, t, r, "minorUnitDates", "minorTimeUnit", "minorUnit"), M(e, t, r, "baseTimeUnit", "baseUnitDates"), e.getVisitorParamsState().get("axes") || (e.warn("An axis was read outside a chart; its axes were started fresh.", { onceKey: "xlsx.chart.axesState" }), e.getVisitorParamsState().set("axes", /* @__PURE__ */ new Map()));
838
- let a = e.getValAttrAsString("axId", t);
839
- return e.getVisitorParamsState().get("axes").set(a, r), r;
840
- }
841
- parseTimeUnits(e, t, n, r, i, a) {
842
- let o = {}, s = e.getValAttrAsString(i, t);
843
- s !== null && (o.dem = s, o.amt = e.getValAttrAsString(a, t)), Object.keys(o).length > 0 && (n[r] = o);
844
- }
845
- parseDisplayCustOrBuiltInUnit(e, t, n) {
846
- let r = t.getValAttrAsString("dispUnits/builtInUnit", e);
847
- r ||= t.getValAttrAsString("dispUnits/custUnit", e), r && (n.displayUnits = r);
848
- }
849
- parseLabelAlign(e, t, n) {
850
- let r = e.getValAttrAsString("lblAlgn", t);
851
- r !== null && (r === "ctr" ? n.labelAlign = "center" : r === "l" ? n.labelAlign = "left" : r === "r" && (n.labelAlign = "right"));
852
- }
853
- parseOrientation(e, t, n) {
854
- let r = e.getValAttrAsString("AxPos", t);
855
- r !== null && (r === "b" ? n.orientation = "bottom" : r === "l" ? n.orientation = "left" : r === "r" ? n.orientation = "right" : r === "t" && (n.orientation = "top"));
856
- }
857
- parseNumFormat(e, t, n) {
858
- let r = {}, i = e.evaluate("numFmt", t);
859
- i !== null && (i.hasAttribute("formatCode") && (r.formatCode = i.getAttribute("formatCode")), i.hasAttribute("sourceLinked") && (r.sourceLinked = i.getAttribute("sourceLinked") === "1")), Object.keys(r).length > 0 && (n.labels = r);
860
- }
861
- parseScaling(e, t, n) {
862
- let r = e.getValAttrAsString("scaling/orientation", t);
863
- r !== null && (n.inverted = r !== "minMax");
864
- let i = e.getValAttrAsFloat("scaling/logBase", t);
865
- i !== null && (n.logBase = i, n.scaleType = "log"), _(e, t, n, "scaling/max", "max"), _(e, t, n, "scaling/min", "min");
866
- }
867
- afterVisit(e, t, n) {
868
- n.fill && n.labels && (n.labels.fill = n.fill, delete n.fill);
869
- let r = e.getValAttrAsBoolean("delete", t);
870
- r !== null && (e.setToPath(n, "labels.shown", !0 !== r), e.setToPath(n, "shown", !0 !== r));
871
- let i = e.getFromPath(n, "dispUnits.displayUnitsLabel");
872
- i && (e.setToPath(n, "displayUnitsLabel", i), delete n.dispUnits);
873
- let a = e.evaluate("title", t);
874
- e.setToPath(n, "title.shown", a !== null);
875
- let o = e.evaluate("minorGridlines", t);
876
- e.setToPath(n, "gridLinesMinor.shown", o !== null);
877
- let s = e.evaluate("majorGridlines", t);
878
- e.setToPath(n, "gridLinesMajor.shown", s !== null);
879
- }
880
- },
881
- TextPropertiesVisitor: A,
882
- ShapeTextVisitor: O,
883
- LegendEntryVisitor: class {
884
- visit(e, t, n) {
885
- let r = e.getVisitorParamsState().get("series"), i = e.getValAttrAsInteger("idx", t), a = i === null ? void 0 : r[i];
886
- if (a) {
887
- let n = e.getFromPath(a, "title");
888
- n || (n = {}, e.setToPath(a, "title", n));
889
- let r = n, i = e.getValAttrAsBoolean("delete", t);
890
- return i !== null && (r.shown = !i), r;
891
- }
892
- return n;
893
- }
894
- },
895
- LegendVisitor: class {
896
- visit(e, t, n) {
897
- let r = {};
898
- return E(e, t, r, "overlay", "overlay"), M(e, t, r, "legendPos", "position"), n.legend = r, r;
899
- }
900
- },
901
- NegativeShapeVisitor: class extends v {
902
- visit(e, t, n) {
903
- let r = this.getFill(e, t);
904
- Object.keys(r).length > 0 && (n.fillNegative = r);
905
- let i = this.getStroke(e, t);
906
- return Object.keys(i).length > 0 && (n.strokeNegative = i), n;
907
- }
908
- },
909
- TitleVisitor: class extends A {
910
- constructor(e = "title") {
911
- super(e);
912
- }
913
- parseTitleRangeOrValue(e, t, n) {
914
- let r = e.evaluate("tx/strRef/f", t) ?? null;
915
- if (r) {
916
- let t = r.firstElementChild.nodeValue;
917
- e.setToPath(n, "range", t);
918
- }
919
- }
920
- visit(e, t, n) {
921
- let r = {};
922
- E(e, t, r, "overlay", "overlay"), n[this._jsonKey] = r;
923
- let i = e.getFromPath(r, this.getTextPath());
924
- i ||= {}, this.parseTitleRangeOrValue(e, t, r);
925
- let a = e.evaluate("txPr", t);
926
- a && this.parseTextElement(e, a, i, !1);
927
- let o = e.evaluate("tx/rich", t);
928
- return o && this.parseTextElement(e, o, i, !0), Object.keys(i).length > 0 && e.setToPath(r, "text", i), r;
929
- }
930
- afterVisit(e, t, n) {
931
- if (n?.text) {
932
- let e = n.text?.rotation ?? null;
933
- e !== null && (n.rotation = parseInt(e), delete n.title.rotation);
934
- }
935
- }
936
- },
937
- LayoutVisitor: class {
938
- visit(e, t, n) {
939
- let r = e.evaluate("manualLayout", t);
940
- if (r) {
941
- let t = {};
942
- _(e, r, t, "x", "x"), _(e, r, t, "y", "y"), _(e, r, t, "w", "w"), _(e, r, t, "h", "h"), M(e, r, t, "xMode", "xMode"), M(e, r, t, "yMode", "yMode"), M(e, r, t, "wMode", "wMode"), M(e, r, t, "hMode", "hMode"), Object.keys(t).length > 0 && (n.manualLayout = t);
702
+ for (let e of z(t, "extLst")) for (let t of z(e, "ext")) {
703
+ if (t.getAttribute("uri") !== "{05A4C25C-085E-4340-85A3-A5531E510DB2}") continue;
704
+ let e = z(t, "themeFamily")[0], r = e?.getAttribute("id");
705
+ if (!r) continue;
706
+ let i = {
707
+ name: e.getAttribute("name") ?? "",
708
+ id: r
709
+ }, a = e.getAttribute("vid");
710
+ a && (i.vid = a), n.family = i;
943
711
  }
944
712
  return n;
945
713
  }
946
714
  },
947
- ThemeVisitor: class {
948
- visit(e, t, n) {
949
- return n.name = t.getAttribute("name"), n;
950
- }
951
- },
952
- ClrSchemeVisitor: class extends w {
715
+ ClrSchemeVisitor: class extends E {
953
716
  visit(e, t, n) {
954
717
  let r = {};
955
718
  r.name = t.getAttribute("name");
@@ -968,22 +731,50 @@ var $ = {
968
731
  visit(e, t, n) {
969
732
  let r = {};
970
733
  r.name = t.getAttribute("name");
971
- let i = e.evaluate("majorFont", t), a = this.processFontElement(e, i, {});
972
- a && (r.majorFont = a.family, a.fallbacks && (r.majorFallbacks = a.fallbacks));
973
- let o = e.evaluate("minorFont", t), s = this.processFontElement(e, o, {});
974
- return s && (r.minorFont = s.family, s.fallbacks && (r.minorFallbacks = s.fallbacks)), n.fonts = r, r;
734
+ let i = this.processFontCollection(e, e.evaluate("majorFont", t));
735
+ i && (r.major = i);
736
+ let a = this.processFontCollection(e, e.evaluate("minorFont", t));
737
+ return a && (r.minor = a), n.fonts = r, r;
975
738
  }
976
- processFontElement(e, t, n) {
739
+ processFontCollection(e, t) {
977
740
  if (!t) return;
978
- let r = e.evaluate("latin", t);
979
- if (!r) return;
980
- let a = r.getAttribute("typeface");
981
- a && (n.family = a);
982
- let o = r.getAttribute("panose");
983
- return o && (n.fallbacks = [i.getPanoseFallback(o)]), n;
741
+ let n = {}, r = e.evaluate("latin", t), i = r?.getAttribute("typeface");
742
+ i && (n.latin = i);
743
+ let a = r?.getAttribute("panose");
744
+ a && (n.panose = a);
745
+ let o = e.evaluate("ea", t)?.getAttribute("typeface");
746
+ o && (n.eastAsian = o);
747
+ let s, c = e.evaluate("cs", t)?.getAttribute("typeface");
748
+ c && (n.complexScript = c);
749
+ let l = t.childNodes, u = l.length;
750
+ for (let e = 0; e < u; e++) {
751
+ let t = l.item(e);
752
+ if (t.nodeType !== 1 || t.localName !== "font") continue;
753
+ let n = t.getAttribute("script");
754
+ n && ((s ??= {})[n] = t.getAttribute("typeface") ?? "");
755
+ }
756
+ return s && (n.scripts = s), n;
984
757
  }
985
758
  },
986
- FmtSchemeVisitor: class extends w {
759
+ ObjectDefaultsVisitor: class {
760
+ visit(e, t, n) {
761
+ let r = {};
762
+ for (let [n, i] of Te) {
763
+ let a = e.evaluate(n, t);
764
+ a && (r[i] = this.processDefault(e, a));
765
+ }
766
+ return n.objectDefaults = r, {};
767
+ }
768
+ processDefault(e, t) {
769
+ let n = {}, r = e.evaluate("spPr", t);
770
+ r && new O().visit(e, r, n);
771
+ let i = new S().readTextBody(e, t);
772
+ (i.body || i.listStyle) && (n.text = i);
773
+ let a = e.evaluate("style", t);
774
+ return a && (n.style = B(e, a)), n;
775
+ }
776
+ },
777
+ FmtSchemeVisitor: class extends E {
987
778
  visit(e, t, n) {
988
779
  let r = this.parseFillList(e, t, "fillStyleLst"), i = this.parseLnList(e, t, "lnStyleLst"), a = this.parseEffectStyleList(e, t, "effectStyleLst"), o = this.parseFillList(e, t, "bgFillStyleLst");
989
780
  if (r && (n.fillStyleLst = r), i && (n.lnStyleLst = i), a && (n.effectStyleLst = a), o && (n.bgFillStyleLst = o), r && i && a && o) return;
@@ -1003,18 +794,18 @@ var $ = {
1003
794
  }
1004
795
  return i;
1005
796
  }
1006
- parseFillListItem(e, n) {
1007
- switch (n.localName) {
1008
- case "noFill": return { type: t.Type.None };
797
+ parseFillListItem(e, t) {
798
+ switch (t.localName) {
799
+ case "noFill": return { type: r.Type.None };
1009
800
  case "solidFill": {
1010
- let r = this.processAdjColor(e, n);
1011
- return r ? {
1012
- type: t.Type.Solid,
1013
- color: r
801
+ let n = this.processAdjColor(e, t);
802
+ return n ? {
803
+ type: r.Type.Solid,
804
+ color: n
1014
805
  } : void 0;
1015
806
  }
1016
- case "gradFill": return this.processGradFill(e, n);
1017
- case "pattFill": return this.processPatternFill(e, n);
807
+ case "gradFill": return this.processGradFill(e, t);
808
+ case "pattFill": return this.processPatternFill(e, t);
1018
809
  default: return;
1019
810
  }
1020
811
  }
@@ -1047,17 +838,19 @@ var $ = {
1047
838
  visit(e, t, n) {
1048
839
  if (!t) return;
1049
840
  let r = {}, i = [];
1050
- return this.processFilterColumns(e, t, i, n), i.length > 0 && (r.conditions = i), Object.keys(r).length > 0 && (n.filter = r), r;
841
+ return this.processFilterColumns(e, t, i, n), i.length > 0 && (r.conditions = i), Object.keys(r).length > 0 && (n.filter = r), n;
1051
842
  }
1052
843
  processColorFilter(e, t) {
1053
844
  let n = {}, r = {
1054
- operator: c.BuiltInOperatorNames.Color,
845
+ operator: f.BuiltInOperatorNames.Color,
1055
846
  param: n
1056
847
  };
1057
- return e.copyFromAttribute(t, "cellColor", n, "cellColor", e.BOOLEAN_COPY), e.copyFromAttribute(t, "dxfId", n, "styleId", e.INT_COPY), r;
848
+ e.copyFromAttribute(t, "cellColor", n, "cellColor", e.BOOLEAN_COPY);
849
+ let i = H(e, t);
850
+ return i && (n.style = i), r;
1058
851
  }
1059
852
  processCustomFilter(e, t) {
1060
- return ee({
853
+ return se({
1061
854
  operator: t.getAttribute("operator"),
1062
855
  val: t.getAttribute("val")
1063
856
  }, (t) => e.warn(t));
@@ -1066,7 +859,7 @@ var $ = {
1066
859
  let n = t.getAttribute("and"), r = n === "and" || n === "1";
1067
860
  t.getAttribute("val");
1068
861
  let i = [], a = {
1069
- operator: r ? c.BuiltInOperatorNames.And : c.BuiltInOperatorNames.Or,
862
+ operator: r ? f.BuiltInOperatorNames.And : f.BuiltInOperatorNames.Or,
1070
863
  param: i
1071
864
  }, o = t.childNodes, s = o.length;
1072
865
  for (let t = 0; t < s; t++) {
@@ -1075,10 +868,10 @@ var $ = {
1075
868
  let r = null;
1076
869
  n.localName === "customFilter" && (r = this.processCustomFilter(e, n)), r && i.push(r);
1077
870
  }
1078
- return i.length === 1 ? i[0] : te(a);
871
+ return i.length === 1 ? i[0] : ge(a);
1079
872
  }
1080
873
  processDynamicFilter(e, t) {
1081
- return ne(t.getAttribute("type"));
874
+ return v(t.getAttribute("type"));
1082
875
  }
1083
876
  processDateGroupItem(e, t) {
1084
877
  let n = {};
@@ -1089,10 +882,10 @@ var $ = {
1089
882
  }
1090
883
  processFilters(e, t) {
1091
884
  let n = {}, r = {
1092
- operator: c.BuiltInOperatorNames.InSet,
885
+ operator: f.BuiltInOperatorNames.InSet,
1093
886
  param: n
1094
887
  };
1095
- r.selector = c.BuiltInSelectorNames.Display, e.copyFromAttribute(t, "blank", n, "blank", e.BOOLEAN_COPY), e.copyFromAttribute(t, "calendarType", n, "calendarType");
888
+ r.selector = f.BuiltInSelectorNames.Display, e.copyFromAttribute(t, "blank", n, "blank", e.BOOLEAN_COPY), e.copyFromAttribute(t, "calendarType", n, "calendarType");
1096
889
  let i = [], a = [], o = t.childNodes, s = o.length;
1097
890
  for (let t = 0; t < s; t++) {
1098
891
  let n = o.item(t);
@@ -1110,14 +903,14 @@ var $ = {
1110
903
  }
1111
904
  processIcon(e, t) {
1112
905
  let n = {}, r = {
1113
- operator: c.BuiltInOperatorNames.Icon,
906
+ operator: f.BuiltInOperatorNames.Icon,
1114
907
  param: n
1115
908
  };
1116
909
  return e.copyFromAttribute(t, "iconId", n, "iconId", e.INT_COPY), e.copyFromAttribute(t, "iconSet", n), r;
1117
910
  }
1118
911
  processTop10(e, t) {
1119
912
  let n = {}, r = {
1120
- operator: c.BuiltInOperatorNames.TopN,
913
+ operator: f.BuiltInOperatorNames.TopN,
1121
914
  param: n
1122
915
  };
1123
916
  return e.copyFromAttribute(t, "filterVal", n, "filterVal", e.FLOAT_COPY), e.copyFromAttribute(t, "percent", n, "percent", e.BOOLEAN_COPY), e.copyFromAttribute(t, "top", n, "top", e.BOOLEAN_COPY), e.copyFromAttribute(t, "val", n, "limit", e.FLOAT_COPY), r;
@@ -1126,7 +919,7 @@ var $ = {
1126
919
  let n = t.childNodes;
1127
920
  for (let t = 0; t < n.length; t++) {
1128
921
  let r = n.item(t);
1129
- if (r.nodeType !== 1 || r.localName !== "ext" || b(r.getAttribute("uri")) !== b("{1AD28BCE-077C-4C59-8B6E-1921CE8616D4}")) continue;
922
+ if (r.nodeType !== 1 || r.localName !== "ext" || C(r.getAttribute("uri")) !== C("{1AD28BCE-077C-4C59-8B6E-1921CE8616D4}")) continue;
1130
923
  let i = r.childNodes;
1131
924
  for (let t = 0; t < i.length; t++) {
1132
925
  let n = i.item(t);
@@ -1152,12 +945,12 @@ var $ = {
1152
945
  if (!t) return null;
1153
946
  if (!t.hasAttribute("colId")) return;
1154
947
  let r = parseInt(t.getAttribute("colId")), i = !1;
1155
- if (t.hasAttribute("hiddenButton") && (i = S(t.getAttribute("hiddenButton"))), i && n) {
948
+ if (t.hasAttribute("hiddenButton") && (i = P(t.getAttribute("hiddenButton"))), i && n) {
1156
949
  let e = n.hiddenButtons;
1157
950
  e || (e = [], n.hiddenButtons = e), e.push(r);
1158
951
  }
1159
952
  let a = !1;
1160
- if (t.hasAttribute("showButton") && (a = S(t.getAttribute("showButton"))), a && n) {
953
+ if (t.hasAttribute("showButton") && (a = P(t.getAttribute("showButton"))), a && n) {
1161
954
  let e = n.showButtons;
1162
955
  !0 !== e && (e || (e = [], n.showButtons = e), e[r] = !0);
1163
956
  }
@@ -1181,7 +974,7 @@ var $ = {
1181
974
  visit(e, t, n) {
1182
975
  if (!t) return;
1183
976
  let r = t.getAttribute("ref"), i = {};
1184
- t.hasAttribute("caseSensitive") && (i.collatorOptions = S(t.getAttribute("caseSensitive")) ? l.CaseSensitiveOptions : l.CaseInsensitiveOptions);
977
+ t.hasAttribute("caseSensitive") && (i.collatorOptions = P(t.getAttribute("caseSensitive")) ? m.CaseSensitiveOptions : m.CaseInsensitiveOptions);
1185
978
  let a = t.getAttribute("sortMethod");
1186
979
  a != null && a !== "none" && (a === "stroke" ? i.collatorOptions = {
1187
980
  ...i.collatorOptions,
@@ -1191,63 +984,101 @@ var $ = {
1191
984
  collation: "pinyin"
1192
985
  }));
1193
986
  let o = {};
1194
- t.hasAttribute("columnSort") && S(t.getAttribute("columnSort")) && (o.axis = s.Axis.Column);
1195
- let c = f.fastStringToRange(r), u = [];
1196
- return this.processSortConditions(e, t, u, c, i), u.length > 0 && (o.sorts = u), Object.keys(u).length > 0 && (n.sort = o), o;
987
+ t.hasAttribute("columnSort") && P(t.getAttribute("columnSort")) && (o.axis = l.Axis.Column);
988
+ let s = d.fastStringToRange(r), c = [], u = [];
989
+ this.processSortConditions(e, t, c, s, i, u), c.length > 0 && (o.sorts = c);
990
+ let f = e.getVisitorParamsState().get("ref");
991
+ if (f && r) {
992
+ let e = d.fastStringToRange(f);
993
+ o.extent = {
994
+ range: de(e, s),
995
+ sorts: u.map((t) => te(e, s, t))
996
+ };
997
+ }
998
+ return Object.keys(c).length > 0 && (n.sort = o), o;
1197
999
  }
1198
- processSortCondition(e, t, n, r) {
1000
+ processSortCondition(e, t, n, r, i) {
1199
1001
  if (!t) return null;
1200
- let i = {};
1002
+ let a = {};
1201
1003
  if (!t.hasAttribute("ref")) return void e.warn("A sort condition has no ref; it was dropped.", { onceKey: "xlsx.sheet.sort.noRef" });
1202
1004
  if (t.hasAttribute("ref")) {
1203
- let e = t.getAttribute("ref"), r = f.fastStringToRange(e);
1204
- i.index = n ? r.colStart - n.colStart : r.colStart;
1005
+ let e = t.getAttribute("ref"), r = d.fastStringToRange(e);
1006
+ a.index = n ? r.colStart - n.colStart : r.colStart, i?.push(r);
1205
1007
  }
1206
- let a = { ...r };
1207
- return i.criteria = a, a.reverse = !1, t.hasAttribute("descending") && (a.reverse = S(t.getAttribute("descending"))), e.copyFromAttribute(t, "sortBy", a, "sortOn"), e.copyFromAttribute(t, "dxfId", a), e.copyFromAttribute(t, "iconSet", a), e.copyFromAttribute(t, "customList", a), i;
1008
+ let o = { ...r };
1009
+ a.criteria = o, o.reverse = !1, t.hasAttribute("descending") && (o.reverse = P(t.getAttribute("descending")));
1010
+ let s = ue(t.getAttribute("sortBy"));
1011
+ s && (o.sortOn = s);
1012
+ let c = H(e, t);
1013
+ return c && (o.style = c), e.copyFromAttribute(t, "iconSet", o), e.copyFromAttribute(t, "customList", o), a;
1208
1014
  }
1209
- processSortConditions(e, t, n, r, i) {
1015
+ processSortConditions(e, t, n, r, i, a) {
1210
1016
  if (!t) return;
1211
- let a = t.childNodes, o = a.length;
1212
- for (let t = 0; t < o; t++) {
1213
- let o = a.item(t);
1214
- if (o.nodeType === 1 && o.localName === "sortCondition") {
1215
- let t = this.processSortCondition(e, o, r, i);
1017
+ let o = t.childNodes, s = o.length;
1018
+ for (let t = 0; t < s; t++) {
1019
+ let s = o.item(t);
1020
+ if (s.nodeType === 1 && s.localName === "sortCondition") {
1021
+ let t = this.processSortCondition(e, s, r, i, a);
1216
1022
  t && n.push(t);
1217
1023
  }
1218
1024
  }
1219
1025
  }
1220
1026
  },
1221
- SheetStyleVisitor: class extends V {
1222
- visit(e, r, i) {
1223
- this.processNumFmts(e, e.evaluate("numFmts", r), null), e.getVisitorParamsState().set("colorsToProcess", /* @__PURE__ */ new Set());
1027
+ SheetStyleVisitor: class extends W {
1028
+ visit(e, t, n) {
1029
+ this.processNumFmts(e, e.evaluate("numFmts", t), null), e.getVisitorParamsState().set("colorsToProcess", /* @__PURE__ */ new Set());
1224
1030
  let a = {
1225
1031
  fills: {},
1226
1032
  fonts: {},
1227
1033
  borders: {}
1034
+ }, o = e.evaluate("fonts", t);
1035
+ this.processFonts(e, o, a.fonts);
1036
+ let s = a.fonts[this.normalFontId(e, t)], c = {
1037
+ declared: ["1", "true"].includes(o?.getAttribute("x14ac:knownFonts") ?? ""),
1038
+ normalIsThemeFont: ce(s?.family),
1039
+ faces: le(Object.values(a.fonts).map((e) => ({
1040
+ ...e,
1041
+ family: ee(e?.family, e?.fallbacks, null, !1).name
1042
+ })))
1228
1043
  };
1229
- this.processFonts(e, e.evaluate("fonts", r), a.fonts), this.processFills(e, e.evaluate("fills", r), a.fills), this.processBorders(e, e.evaluate("borders", r), a.borders, !0), a.fills[0] = { type: t.Type.None }, a.fills[1] = {
1230
- type: t.Type.Pattern,
1231
- patternType: t.BuiltInSheetPattern.Gray125
1044
+ e.getVisitorParamsState().set(h, c), s && e.getVisitorParamsState().set("defaultFont", s), this.processFills(e, e.evaluate("fills", t), a.fills), this.processBorders(e, e.evaluate("borders", t), a.borders, !0), a.fills[0] = { type: r.Type.None }, a.fills[1] = {
1045
+ type: r.Type.Pattern,
1046
+ patternType: r.BuiltInSheetPattern.Gray125
1232
1047
  }, a.borders[0] = {
1233
- bottom: { style: n.StrokeStyle.None },
1234
- left: { style: n.StrokeStyle.None },
1235
- right: { style: n.StrokeStyle.None },
1236
- top: { style: n.StrokeStyle.None }
1048
+ bottom: { style: i.StrokeStyle.None },
1049
+ left: { style: i.StrokeStyle.None },
1050
+ right: { style: i.StrokeStyle.None },
1051
+ top: { style: i.StrokeStyle.None }
1237
1052
  };
1238
- let o = [];
1239
- this.processXFs(e, e.evaluate("cellStyleXfs", r), o, a, null, !1);
1240
- let s = /* @__PURE__ */ new Map();
1241
- if (o.length > 0) {
1242
- let t = [];
1243
- this.processCellStyles(e, e.evaluate("cellStyles", r), t, o, s), i.named = t;
1244
- }
1245
- let c = [];
1246
- this.processXFs(e, e.evaluate("cellXfs", r), c, a, s), Object.keys(c).length > 0 && (i.direct = c);
1247
- let l = this.collectHiddenXfs(e.evaluate("cellXfs", r));
1248
- l.size > 0 && e.getVisitorParamsState().set("hiddenXfs", l);
1249
- let u = [];
1250
- return this.processDXFs(e, e.evaluate("dxfs", r), u), this.processTableStyles(e, e.evaluate("tableStyles", r), i, u), this.processSlicerStyles(e, e.evaluate("extLst", r), i), this.processIndexColors(e, e.evaluate("colors/indexedColors", r), i), this.processMruColors(e, e.evaluate("colors/mruColors", r), i), i;
1053
+ let l = [];
1054
+ this.processXFs(e, e.evaluate("cellStyleXfs", t), l, a, null, !1);
1055
+ let u = /* @__PURE__ */ new Map();
1056
+ if (l.length > 0) {
1057
+ let r = [];
1058
+ this.processCellStyles(e, e.evaluate("cellStyles", t), r, l, u), n.named = r;
1059
+ }
1060
+ let d = [];
1061
+ this.processXFs(e, e.evaluate("cellXfs", t), d, a, u), Object.keys(d).length > 0 && (n.direct = d);
1062
+ let f = this.collectHiddenXfs(e.evaluate("cellXfs", t));
1063
+ f.size > 0 && e.getVisitorParamsState().set("hiddenXfs", f);
1064
+ let p = [];
1065
+ return this.processDXFs(e, e.evaluate("dxfs", t), p), this.processTableStyles(e, e.evaluate("tableStyles", t), n, p), this.processSlicerStyles(e, e.evaluate("extLst", t), n), this.processIndexColors(e, e.evaluate("colors/indexedColors", t), n), this.processMruColors(e, e.evaluate("colors/mruColors", t), n), n;
1066
+ }
1067
+ normalFontId(e, t) {
1068
+ let n = e.evaluate("cellStyles", t)?.childNodes, r = 0;
1069
+ for (let e = 0; e < (n?.length ?? 0); e++) {
1070
+ let t = n.item(e);
1071
+ if (t.nodeType === 1 && t.getAttribute("builtinId") === "0") {
1072
+ r = parseInt(t.getAttribute("xfId") ?? "0", 10) || 0;
1073
+ break;
1074
+ }
1075
+ }
1076
+ let i = e.evaluate("cellStyleXfs", t)?.childNodes, a = 0;
1077
+ for (let e = 0; e < (i?.length ?? 0); e++) {
1078
+ let t = i.item(e);
1079
+ if (t.nodeType === 1 && a++ === r) return parseInt(t.getAttribute("fontId") ?? "0", 10) || 0;
1080
+ }
1081
+ return 0;
1251
1082
  }
1252
1083
  processIndexColors(e, t, n) {
1253
1084
  if (!t) return;
@@ -1300,32 +1131,32 @@ var $ = {
1300
1131
  }
1301
1132
  }
1302
1133
  }
1303
- processXF(e, t, n, i, a, o) {
1134
+ processXF(e, t, n, r, i, a) {
1304
1135
  if (!t) return;
1305
- let s = t.getAttribute("xfId");
1306
- if (s && a) {
1307
- let e = a.get(parseInt(s));
1308
- e && e !== r.BuiltInName.Normal && (n.named = e);
1136
+ let o = t.getAttribute("xfId");
1137
+ if (o && i) {
1138
+ let e = i.get(parseInt(o));
1139
+ e && e !== s.BuiltInName.Normal && (n.named = e);
1309
1140
  }
1310
- let c = (e) => !(!o && t.hasAttribute(e)) || S(t.getAttribute(e)), l = (e) => !o || t.hasAttribute(e) && S(t.getAttribute(e)), u = o ? "0" : void 0;
1141
+ let c = (e) => !(!a && t.hasAttribute(e)) || P(t.getAttribute(e)), l = (e) => !a || t.hasAttribute(e) && P(t.getAttribute(e)), u = a ? "0" : void 0;
1311
1142
  if (c("applyFont")) {
1312
1143
  let e = t.getAttribute("fontId") ?? u;
1313
1144
  if (e !== void 0 && (e !== "0" || l("applyFont"))) {
1314
- let t = i.fonts[e];
1145
+ let t = r.fonts[e];
1315
1146
  t !== void 0 && (n.font = t);
1316
1147
  }
1317
1148
  }
1318
1149
  if (c("applyFill")) {
1319
1150
  let e = t.getAttribute("fillId") ?? u;
1320
1151
  if (e !== void 0 && (e !== "0" || l("applyFill"))) {
1321
- let t = i.fills[e];
1152
+ let t = r.fills[e];
1322
1153
  t !== void 0 && Object.keys(t).length > 0 && (n.fill = t);
1323
1154
  }
1324
1155
  }
1325
1156
  if (c("applyBorder")) {
1326
1157
  let e = t.getAttribute("borderId") ?? u;
1327
1158
  if (e !== void 0 && (e !== "0" || l("applyBorder"))) {
1328
- let t = i.borders[e];
1159
+ let t = r.borders[e];
1329
1160
  t !== void 0 && (n.borders = t);
1330
1161
  }
1331
1162
  }
@@ -1347,18 +1178,18 @@ var $ = {
1347
1178
  let r = e.evaluate("protection", t);
1348
1179
  (r || l("applyProtection")) && this.processProtection(e, r, n);
1349
1180
  }
1350
- let d = S(t.getAttribute("quotePrefix") ?? "");
1181
+ let d = P(t.getAttribute("quotePrefix") ?? "");
1351
1182
  d && (n.quotePrefix = d);
1352
1183
  }
1353
- processAlignment(e, t, n) {
1354
- let r = {};
1355
- if (r.horizontal = t?.hasAttribute("horizontal") ? t.getAttribute("horizontal") : a.HorizontalAlignment.General, r.vertical = t?.hasAttribute("vertical") ? t.getAttribute("vertical") : a.VerticalAlignment.Bottom, r.indent = t?.hasAttribute("indent") ? parseInt(t.getAttribute("indent")) : 0, r.relativeIndent = t?.hasAttribute("relativeIndent") ? parseInt(t.getAttribute("relativeIndent")) : 0, r.overflow = S(t?.getAttribute("wrapText") ?? "") ? a.Overflow.Wrap : a.Overflow.Visible, S(t?.getAttribute("shrinkToFit") ?? "") && (r.overflow = a.Overflow.Shrink), t?.hasAttribute("textRotation")) {
1184
+ processAlignment(e, t, r) {
1185
+ let i = {};
1186
+ if (i.horizontal = t?.hasAttribute("horizontal") ? t.getAttribute("horizontal") : n.HorizontalAlignment.General, i.vertical = t?.hasAttribute("vertical") ? t.getAttribute("vertical") : n.VerticalAlignment.Bottom, i.indent = t?.hasAttribute("indent") ? parseInt(t.getAttribute("indent")) : 0, i.relativeIndent = t?.hasAttribute("relativeIndent") ? parseInt(t.getAttribute("relativeIndent")) : 0, i.overflow = P(t?.getAttribute("wrapText") ?? "") ? n.Overflow.Wrap : n.Overflow.Visible, P(t?.getAttribute("shrinkToFit") ?? "") && (i.overflow = n.Overflow.Shrink), t?.hasAttribute("textRotation")) {
1356
1187
  let e = parseFloat(t.getAttribute("textRotation"));
1357
- e > 0 && e <= 90 ? e = 360 - e : e > 90 && e <= 180 ? e -= 90 : e === 255 && (e = 0, r.stacked = !0), r.rotation = e;
1358
- } else r.rotation = 0;
1359
- t?.hasAttribute("justifyLastLine") && (r.justifyLastLine = S(t.getAttribute("justifyLastLine")));
1360
- let i = t?.getAttribute("readingOrder");
1361
- return i && (i === "0" ? r.readingDirection = a.ReadingDirection.Auto : i === "1" ? r.readingDirection = a.ReadingDirection.LeftToRight : i === "2" ? r.readingDirection = a.ReadingDirection.RightToLeft : e.warn(`Invalid readingOrder '${i}'; the direction was left automatic.`, { onceKey: "xlsx.style.readingOrder" })), Object.keys(r).length > 0 && (n.alignment = r), n;
1188
+ e > 0 && e <= 90 ? e = 360 - e : e > 90 && e <= 180 ? e -= 90 : e === 255 && (e = 0, i.stacked = !0), i.rotation = e;
1189
+ } else i.rotation = 0;
1190
+ t?.hasAttribute("justifyLastLine") && (i.justifyLastLine = P(t.getAttribute("justifyLastLine")));
1191
+ let a = t?.getAttribute("readingOrder");
1192
+ return a && (a === "0" ? i.readingDirection = n.ReadingDirection.Auto : a === "1" ? i.readingDirection = n.ReadingDirection.LeftToRight : a === "2" ? i.readingDirection = n.ReadingDirection.RightToLeft : e.warn(`Invalid readingOrder '${a}'; the direction was left automatic.`, { onceKey: "xlsx.style.readingOrder" })), Object.keys(i).length > 0 && (r.alignment = i), r;
1362
1193
  }
1363
1194
  collectHiddenXfs(e) {
1364
1195
  let t = /* @__PURE__ */ new Set();
@@ -1370,7 +1201,7 @@ var $ = {
1370
1201
  let a = i.childNodes;
1371
1202
  for (let e = 0; e < a.length; e++) {
1372
1203
  let n = a.item(e);
1373
- n.nodeType === 1 && n.localName === "protection" && S(n.getAttribute("hidden") ?? "") && t.add(r);
1204
+ n.nodeType === 1 && n.localName === "protection" && P(n.getAttribute("hidden") ?? "") && t.add(r);
1374
1205
  }
1375
1206
  r++;
1376
1207
  }
@@ -1379,7 +1210,7 @@ var $ = {
1379
1210
  processProtection(e, t, n) {
1380
1211
  if (!t) return;
1381
1212
  let r = t.getAttribute("locked");
1382
- return n.protection = { alwaysUnlocked: !!r && !S(r) }, n;
1213
+ return n.protection = { alwaysUnlocked: !!r && !P(r) }, n;
1383
1214
  }
1384
1215
  processDXF(e, t, n) {
1385
1216
  if (!t) return;
@@ -1462,7 +1293,7 @@ var $ = {
1462
1293
  let n = c.item(t);
1463
1294
  if (n.nodeType !== 1 || n.localName !== "slicerStyleElement") continue;
1464
1295
  let r = n.getAttribute("type");
1465
- if (!r || !U.has(r)) continue;
1296
+ if (!r || !Ee.has(r)) continue;
1466
1297
  let a = n.getAttribute("dxfId"), s = a == null ? void 0 : o[parseInt(a)];
1467
1298
  s ? i[r] = s : e.warn(`A slicer style names a format that does not exist (dxfId '${a}').`, { onceKey: "xlsx.style.slicerStyle.dxf" });
1468
1299
  }
@@ -1472,7 +1303,7 @@ var $ = {
1472
1303
  }
1473
1304
  processTableStyle(e, t, n, r, i = !1) {
1474
1305
  let a = t.getAttribute("name"), o = { name: a };
1475
- t.hasAttribute("table") && (o.table = S(t.getAttribute("table"))), t.hasAttribute("pivot") && (o.pivot = S(t.getAttribute("pivot"))), i && !o.pivot && r.unshift(null);
1306
+ t.hasAttribute("table") && (o.table = P(t.getAttribute("table"))), t.hasAttribute("pivot") && (o.pivot = P(t.getAttribute("pivot"))), i && !o.pivot && r.unshift(null);
1476
1307
  let s = t.childNodes, c = s.length;
1477
1308
  for (let t = 0; t < c; t++) {
1478
1309
  let n = s.item(t);
@@ -1498,48 +1329,48 @@ var $ = {
1498
1329
  }
1499
1330
  return Object.keys(l).length > 0 && (a.styles = l), Object.keys(a).length > 0 && (n.tables = a), n;
1500
1331
  }
1501
- processCellStyles(e, t, n, i, a) {
1332
+ processCellStyles(e, t, n, r, i) {
1502
1333
  if (!t) return;
1503
- let o = t.childNodes, s = o.length;
1504
- for (let e = 0; e < s; e++) {
1505
- let t = o.item(e);
1334
+ let a = t.childNodes, o = a.length;
1335
+ for (let e = 0; e < o; e++) {
1336
+ let t = a.item(e);
1506
1337
  if (t.nodeType === 1 && t.localName === "cellStyle") {
1507
- let e = parseInt(t.getAttribute("xfId") ?? ""), o = t.getAttribute("name"), s = t.getAttribute("builtinId"), c = o;
1508
- if (s !== null) {
1509
- let e = r.builtInNameFromId(parseInt(s));
1338
+ let e = parseInt(t.getAttribute("xfId") ?? ""), a = t.getAttribute("name"), o = t.getAttribute("builtinId"), c = a;
1339
+ if (o !== null) {
1340
+ let e = s.builtInNameFromId(parseInt(o));
1510
1341
  e !== void 0 && (c = e);
1511
1342
  }
1512
- if (a.set(e, c), !i[e]) continue;
1343
+ if (i.set(e, c), !r[e]) continue;
1513
1344
  let l = {
1514
1345
  name: c,
1515
- style: i[e]
1346
+ style: r[e]
1516
1347
  };
1517
- t.getAttribute("hidden") && (l.hidden = S(t.getAttribute("hidden"))), t.getAttribute("iLevel") && (l.iLevel = parseInt(t.getAttribute("iLevel"))), n.push(l);
1348
+ t.getAttribute("hidden") && (l.hidden = P(t.getAttribute("hidden"))), t.getAttribute("iLevel") && (l.iLevel = parseInt(t.getAttribute("iLevel"))), o !== null && P(t.getAttribute("customBuiltin") ?? "0") && (l.customized = !0), n.push(l);
1518
1349
  }
1519
1350
  }
1520
1351
  }
1521
1352
  afterVisit(e, t, n) {}
1522
1353
  },
1523
- WorkbookVisitor: class extends V {
1354
+ WorkbookVisitor: class extends W {
1524
1355
  visit(e, t, n) {
1525
1356
  return this.processSheetRefs(e, e.evaluate("sheets", t), n), this.processExternalReferences(e, e.evaluate("externalReferences", t), n), this.processBookViews(e, e.evaluate("bookViews", t), n), this.processDefinedNames(e, e.evaluate("definedNames", t), n), this.processCalcPr(e, e.evaluate("calcPr", t), n), this.processPivotCaches(e, e.evaluate("pivotCaches", t), n), this.processWorkbookProtection(e, e.evaluate("workbookProtection", t), n), this.processWorkbookPr(e, e.evaluate("workbookPr", t), n), n;
1526
1357
  }
1527
1358
  processPassword(e, t, n, r = "workbook", i = "password") {
1528
1359
  if (!t) return;
1529
1360
  let a = {};
1530
- e.copyFromAttribute(t, `${r}AlgorithmName`, a, "algorithm"), e.copyFromAttribute(t, `${r}HashValue`, a, "hash"), e.copyFromAttribute(t, `${r}SaltValue`, a, "salt"), e.copyFromAttribute(t, `${r}SpinCount`, a, "spinCount", e.INT_COPY), Object.keys(a).length > 0 && (n[i] = a);
1361
+ e.copyFromAttribute(t, `${r}AlgorithmName`, a, "algorithm"), e.copyFromAttribute(t, `${r}HashValue`, a, "hash"), e.copyFromAttribute(t, `${r}SaltValue`, a, "salt"), e.copyFromAttribute(t, `${r}SpinCount`, a, "spinCount", e.INT_COPY), e.copyFromAttribute(t, `${r}Password`, a, "legacyHash"), Object.keys(a).length > 0 && (n[i] = a);
1531
1362
  }
1532
1363
  processWorkbookProtection(e, t, n) {
1533
1364
  if (!t) return;
1534
1365
  let r = {};
1535
1366
  this.processPassword(e, t, r, "workbook", "password"), this.processPassword(e, t, r, "revisions", "revisionsPassword");
1536
- for (let e of k) r[e.key] = re(e, t.getAttribute(e.attribute));
1367
+ for (let e of oe) r[e.key] = ae(e, t.getAttribute(e.attribute));
1537
1368
  return n.protection = r, n;
1538
1369
  }
1539
1370
  processCalcPr(e, t, n) {
1540
1371
  if (!t) return;
1541
1372
  let r = {};
1542
- e.copyFromAttribute(t, "calcMode", r, "calcMode", (e) => W[e] ?? null), e.copyFromAttribute(t, "fullCalcOnLoad", r, "fullCalcOnLoad", e.BOOLEAN_COPY), e.copyFromAttribute(t, "calcOnSave", r, "calcOnSave", e.BOOLEAN_COPY), e.copyFromAttribute(t, "calcCompleted", r, "calcCompleted", e.BOOLEAN_COPY), e.copyFromAttribute(t, "fullPrecision", r, "fullPrecision", e.BOOLEAN_COPY), e.copyFromAttribute(t, "forceFullCalc", r, "forceFullCalc", e.BOOLEAN_COPY), e.copyFromAttribute(t, "concurrentCalc", r, "concurrentCalc", e.BOOLEAN_COPY), e.copyFromAttribute(t, "refMode", r, "refMode"), e.copyFromAttribute(t, "iterate", r, "iterate", e.BOOLEAN_COPY), e.copyFromAttribute(t, "iterateCount", r, "maxIteration", e.INT_COPY), e.copyFromAttribute(t, "iterateDelta", r, "maxIterateChange", e.FLOAT_COPY);
1373
+ e.copyFromAttribute(t, "calcMode", r, "calcMode", (e) => De[e] ?? null), e.copyFromAttribute(t, "fullCalcOnLoad", r, "fullCalcOnLoad", e.BOOLEAN_COPY), e.copyFromAttribute(t, "calcOnSave", r, "calcOnSave", e.BOOLEAN_COPY), e.copyFromAttribute(t, "calcCompleted", r, "calcCompleted", e.BOOLEAN_COPY), e.copyFromAttribute(t, "fullPrecision", r, "fullPrecision", e.BOOLEAN_COPY), e.copyFromAttribute(t, "forceFullCalc", r, "forceFullCalc", e.BOOLEAN_COPY), e.copyFromAttribute(t, "concurrentCalc", r, "concurrentCalc", e.BOOLEAN_COPY), e.copyFromAttribute(t, "concurrentManualCount", r, "concurrentManualCount", e.INT_COPY), e.copyFromAttribute(t, "refMode", r, "refMode"), e.copyFromAttribute(t, "iterate", r, "iterate", e.BOOLEAN_COPY), e.copyFromAttribute(t, "iterateCount", r, "maxIteration", e.INT_COPY), e.copyFromAttribute(t, "iterateDelta", r, "maxIterateChange", e.FLOAT_COPY);
1543
1374
  let i = t.getAttribute("calcId");
1544
1375
  i !== null && e.getVisitorParamsState().set("calcId", i), n.calc = r;
1545
1376
  }
@@ -1555,8 +1386,19 @@ var $ = {
1555
1386
  processSheetRef(e, t, n) {
1556
1387
  let r = {};
1557
1388
  e.copyFromAttribute(t, "name", r, "name"), e.copyFromAttribute(t, "state", r, "visibility"), e.copyFromAttribute(t, "sheetId", r, "sheetId", e.INT_COPY);
1558
- let i = t.getAttribute("r:id"), a = e.getRef(i);
1559
- a && (r.sheet = a), n.push(r);
1389
+ let i = t.getAttribute("r:id"), a = i ? re(e.getRelationships().get(i)?.type) : null;
1390
+ if (a) {
1391
+ let t = e.readEmbeddedPart(i);
1392
+ if (t?.xml) {
1393
+ let e = { part: t }, i = fe(t.xml), o = i ? k((e) => i.get(e)) : void 0;
1394
+ o && (e.tabColor = o), r.kind = a, r.sheet = e, n.push(r);
1395
+ return;
1396
+ }
1397
+ e.warn(`The ${a} sheet '${r.name}' could not be read and was loaded as an empty worksheet.`), n.push(r);
1398
+ return;
1399
+ }
1400
+ let o = i ? e.getRef(i) : null;
1401
+ o && (r.sheet = o), n.push(r);
1560
1402
  }
1561
1403
  processExternalReferences(e, t, n) {
1562
1404
  if (!t) return;
@@ -1596,8 +1438,24 @@ var $ = {
1596
1438
  }
1597
1439
  processWorkbookView(e, t, n) {
1598
1440
  if (!t) return;
1599
- let r = {};
1600
- e.copyFromAttribute(t, "activeTab", r, "activeSheetId", [e.INT_COPY, (e) => e]), t.hasAttribute("activeTab") || (r.activeSheetId = 0), e.copyFromAttribute(t, "showHorizontalScroll", r, "showHorizontalScrollbar", e.BOOLEAN_COPY), e.copyFromAttribute(t, "showVerticalScroll", r, "showVerticalScrollbar", e.BOOLEAN_COPY), e.copyFromAttribute(t, "showSheetTabs", r, "showTabs", e.BOOLEAN_COPY), e.copyFromAttribute(t, "tabRatio", r, "tabRatio", [e.FLOAT_COPY, (e) => e]), Object.keys(r).length > 0 && (n.view = r);
1441
+ let r = {}, i = [
1442
+ "xWindow",
1443
+ "yWindow",
1444
+ "windowWidth",
1445
+ "windowHeight"
1446
+ ].map((e) => parseInt(t.getAttribute(e) ?? "", 10));
1447
+ if (i.some((e) => Number.isFinite(e))) {
1448
+ let [e, t, n, a] = i.map((e) => Number.isFinite(e) ? e : 0);
1449
+ r.windowBounds = {
1450
+ left: e,
1451
+ top: t,
1452
+ width: n,
1453
+ height: a
1454
+ };
1455
+ }
1456
+ e.copyFromAttribute(t, "activeTab", r, "activeSheetId", [e.INT_COPY, (e) => e]), t.hasAttribute("activeTab") || (r.activeSheetId = 0), e.copyFromAttribute(t, "showHorizontalScroll", r, "showHorizontalScrollbar", e.BOOLEAN_COPY), e.copyFromAttribute(t, "showVerticalScroll", r, "showVerticalScrollbar", e.BOOLEAN_COPY), e.copyFromAttribute(t, "showSheetTabs", r, "showTabs", e.BOOLEAN_COPY), e.copyFromAttribute(t, "tabRatio", r, "tabRatio", [e.FLOAT_COPY, (e) => e]), e.copyFromAttribute(t, "firstSheet", r, "firstTab", [e.INT_COPY, (e) => e]), e.copyFromAttribute(t, "minimized", r, "minimized", e.BOOLEAN_COPY), e.copyFromAttribute(t, "autoFilterDateGrouping", r, "autoFilterDateGrouping", e.BOOLEAN_COPY);
1457
+ let a = t.getAttribute("visibility");
1458
+ a !== "hidden" && a !== "veryHidden" || (r.visibility = a), Object.keys(r).length > 0 && (n.view = r);
1601
1459
  }
1602
1460
  processDefineName(e, t, n, r) {
1603
1461
  if (!t) return;
@@ -1607,7 +1465,13 @@ var $ = {
1607
1465
  if (!r[n]?.name) return void e.warn(`Defined name '${t.getAttribute("name")}' references a sheet with localSheetId '${n}' which does not exist.`);
1608
1466
  i.scope = r[n].name;
1609
1467
  }
1610
- e.copyFromAttribute(t, "customMenu", i), e.copyFromAttribute(t, "description", i), e.copyFromAttribute(t, "statusBar", i), e.copyFromAttribute(t, "help", i), e.copyFromAttribute(t, "shortcutKey", i), e.copyFromAttribute(t, "function", i, "function", e.BOOLEAN_COPY), e.copyFromAttribute(t, "functionGroupId", i, "functionGroupId", e.INT_COPY), e.copyFromAttribute(t, "publishToServer", i, "publishToServer", e.BOOLEAN_COPY), e.copyFromAttribute(t, "vbProcedure", i, "vbProcedure", e.BOOLEAN_COPY), e.copyFromAttribute(t, "xlm", i, "xlm", e.BOOLEAN_COPY), Object.keys(i).length > 0 && n.push(i);
1468
+ let o = {};
1469
+ for (let n of ye) e.copyFromAttribute(t, n, o);
1470
+ for (let e of ve) {
1471
+ let n = t.getAttribute(e);
1472
+ n !== "1" && n !== "true" || (o[e] = !0);
1473
+ }
1474
+ e.copyFromAttribute(t, "functionGroupId", o, "functionGroupId", e.INT_COPY), Object.keys(o).length > 0 && (i.fileAttributes = o), Object.keys(i).length > 0 && n.push(i);
1611
1475
  }
1612
1476
  processDefinedNames(e, t, n) {
1613
1477
  if (!t) return;
@@ -1626,7 +1490,7 @@ var $ = {
1626
1490
  TableVisitor: class {
1627
1491
  visit(e, t, n) {
1628
1492
  let r = {};
1629
- return e.copyFromAttribute(t, "ref", n, "r"), e.getVisitorParamsState().set("ref", n.r), n.v = r, e.copyFromAttribute(t, "name", r), e.copyFromAttribute(t, "displayName", r), e.copyFromAttribute(t, "headerRowCount", r, "headerRowCount", e.INT_COPY), e.copyFromAttribute(t, "totalsRowCount", r, "totalsRowCount", e.INT_COPY), this.processTableColumns(e, t, r), this.processTableStyleInfo(e, t, r), e.copyFromAttribute(t, "id", r), e.copyFromAttribute(t, "comment", r, "description"), e.copyFromAttribute(t, "connectionId", r, "connectionId", e.INT_COPY), e.copyFromAttribute(t, "tableType", r), e.copyFromAttribute(t, "published", r, "published", e.BOOLEAN_COPY), e.copyFromAttribute(t, "insertRow", r, "insertRow", e.BOOLEAN_COPY), e.copyFromAttribute(t, "insertRowShift", r, "insertRowShift", e.BOOLEAN_COPY), r.totalsRowShown = t.getAttribute("totalsRowShown") !== "0", r;
1493
+ return e.copyFromAttribute(t, "ref", n, "r"), e.getVisitorParamsState().set("ref", n.r), n.v = r, e.copyFromAttribute(t, "name", r), e.copyFromAttribute(t, "displayName", r, "name"), e.copyFromAttribute(t, "headerRowCount", r, "headerRowCount", e.INT_COPY), e.copyFromAttribute(t, "totalsRowCount", r, "totalsRowCount", e.INT_COPY), this.processTableColumns(e, t, r), this.processTableStyleInfo(e, t, r), e.copyFromAttribute(t, "id", r), e.copyFromAttribute(t, "comment", r, "description"), e.copyFromAttribute(t, "connectionId", r, "connectionId", e.INT_COPY), e.copyFromAttribute(t, "tableType", r), e.copyFromAttribute(t, "published", r, "published", e.BOOLEAN_COPY), e.copyFromAttribute(t, "insertRow", r, "insertRow", e.BOOLEAN_COPY), e.copyFromAttribute(t, "insertRowShift", r, "insertRowShift", e.BOOLEAN_COPY), r.totalsRowShown = t.getAttribute("totalsRowShown") !== "0", r;
1630
1494
  }
1631
1495
  afterVisit(e, t, n) {
1632
1496
  let r = n.v;
@@ -1746,7 +1610,7 @@ var $ = {
1746
1610
  i.length > 0 && (n.sheetDataSet = i);
1747
1611
  }
1748
1612
  processSheetData(e, t) {
1749
- let n = new u.Builder(), r = t.childNodes, i = r.length;
1613
+ let n = new p.Builder(), r = t.childNodes, i = r.length;
1750
1614
  for (let e = 0; e < i; e++) {
1751
1615
  let t = r.item(e);
1752
1616
  if (t.nodeType !== 1 || t.localName !== "row") continue;
@@ -1756,7 +1620,7 @@ var $ = {
1756
1620
  if (t.nodeType !== 1 || t.localName !== "cell") continue;
1757
1621
  let r = t.getAttribute("r");
1758
1622
  if (!r) continue;
1759
- let a = f.fastStringToCell(r);
1623
+ let a = d.fastStringToCell(r);
1760
1624
  if (a?.rowIndex === void 0 || a?.colIndex === void 0) continue;
1761
1625
  let o = this._readCellValue(t);
1762
1626
  o !== void 0 && n.pushAt(a.rowIndex, a.colIndex, o);
@@ -1776,7 +1640,7 @@ var $ = {
1776
1640
  case "str":
1777
1641
  default: return t;
1778
1642
  case "e": {
1779
- let e = o.getBuiltInByLabel(t);
1643
+ let e = c.getBuiltInByLabel(t);
1780
1644
  return e ? {
1781
1645
  t: "e",
1782
1646
  v: e.getCode()
@@ -1820,8 +1684,8 @@ var $ = {
1820
1684
  let r = {};
1821
1685
  n[t.getAttribute("name")] = r, e.copyFromAttribute(t, "xr10:uid", r, "uid");
1822
1686
  let i = t.getAttribute("cache"), a = e.getVisitorParamsState().get("slicerCaches"), o = i ? a?.get(i) : void 0;
1823
- if (o) for (let e = 0; e < G.length; e++) {
1824
- let t = G[e];
1687
+ if (o) for (let e = 0; e < K.length; e++) {
1688
+ let t = K[e];
1825
1689
  o[t] !== void 0 && (r[t] = o[t]);
1826
1690
  }
1827
1691
  e.copyFromAttribute(t, "caption", r), e.copyFromAttribute(t, "startItem", r, "startItem", e.INT_COPY), e.copyFromAttribute(t, "columnCount", r, "columnCount", e.INT_COPY), e.copyFromAttribute(t, "showCaption", r, "showCaption", e.BOOLEAN_COPY), e.copyFromAttribute(t, "level", r, "level", e.INT_COPY), e.copyFromAttribute(t, "style", r), e.copyFromAttribute(t, "lockedPosition", r, "lockedPosition", e.BOOLEAN_COPY), e.copyFromAttribute(t, "rowHeight", r, "rowHeight", e.INT_COPY);
@@ -1847,7 +1711,7 @@ var $ = {
1847
1711
  } else n.localName === "extLst" && (a = e.serializeElement(n) ?? void 0);
1848
1712
  }
1849
1713
  }
1850
- let c = x(r, o, a);
1714
+ let c = he(r, o, a);
1851
1715
  return n.formControl = c, c;
1852
1716
  }
1853
1717
  },
@@ -1856,14 +1720,19 @@ var $ = {
1856
1720
  return n;
1857
1721
  }
1858
1722
  afterVisit(e, t, n) {
1859
- for (let e of n?.movables ?? []) K(e, !1);
1723
+ for (let e of n?.movables ?? []) q(e, !1);
1860
1724
  }
1861
1725
  },
1862
1726
  DrawingAnchorVisitor: class {
1863
1727
  visit(e, t, n) {
1864
1728
  if (!t) return;
1865
1729
  let r = {};
1866
- return e.copyFromAttribute(t, "editAs", r, "anchorType"), r.anchor = {}, t.localName === "absoluteAnchor" ? (r.anchorType = "absolute", this.processAbsoluteCoord(e, e.evaluate("xdr:pos", t), r.anchor, "from", "x", "y"), this.processAbsoluteCoord(e, e.evaluate("xdr:ext", t), r.anchor, "to", "cx", "cy")) : t.localName === "oneCellAnchor" ? (this.processOffsetCoord(e, e.evaluate("from", t), r.anchor, "from"), this.processAbsoluteCoord(e, e.evaluate("xdr:ext", t), r.anchor, "to", "cx", "cy")) : (this.processOffsetCoord(e, e.evaluate("from", t), r.anchor, "from"), this.processOffsetCoord(e, e.evaluate("to", t), r.anchor, "to")), n.movables ||= [], n.movables.push(r), r;
1730
+ e.copyFromAttribute(t, "editAs", r, "anchorType"), r.anchor = {}, t.localName === "absoluteAnchor" ? (r.anchorType = "absolute", this.processAbsoluteCoord(e, e.evaluate("pos", t), r.anchor, "from", "x", "y"), this.processAbsoluteCoord(e, e.evaluate("ext", t), r.anchor, "to", "cx", "cy")) : t.localName === "oneCellAnchor" ? (this.processOffsetCoord(e, e.evaluate("from", t), r.anchor, "from"), this.processAbsoluteCoord(e, e.evaluate("ext", t), r.anchor, "to", "cx", "cy")) : (this.processOffsetCoord(e, e.evaluate("from", t), r.anchor, "from"), this.processOffsetCoord(e, e.evaluate("to", t), r.anchor, "to"));
1731
+ let i = e.evaluate("clientData", t), a = (e) => {
1732
+ let t = i?.getAttribute(e);
1733
+ return t === "0" || t === "false";
1734
+ };
1735
+ return a("fPrintsWithSheet") && (r.noPrint = !0), a("fLocksWithSheet") && (r.unlocked = !0), n.movables ||= [], n.movables.push(r), r;
1867
1736
  }
1868
1737
  processAbsoluteCoord(e, t, n, r, i, a) {
1869
1738
  if (!t) return;
@@ -1871,7 +1740,7 @@ var $ = {
1871
1740
  x: 0,
1872
1741
  y: 0
1873
1742
  };
1874
- return o.x = T(t.getAttribute(i)), o.y = T(t.getAttribute(a)), r === "from" ? n.tl = o : n.br = o, n;
1743
+ return o.x = N(t.getAttribute(i)), o.y = N(t.getAttribute(a)), r === "from" ? n.tl = o : n.br = o, n;
1875
1744
  }
1876
1745
  processOffsetCoord(e, t, n, r) {
1877
1746
  if (!t) return;
@@ -1881,34 +1750,37 @@ var $ = {
1881
1750
  x: 0,
1882
1751
  y: 0
1883
1752
  };
1884
- return e.evaluate("col", t) && (i.c = parseInt(e.evaluate("col", t).textContent)), e.evaluate("row", t) && (i.r = parseInt(e.evaluate("row", t).textContent)), e.evaluate("colOff", t) && (i.x = T(e.evaluate("colOff", t).textContent)), e.evaluate("rowOff", t) && (i.y = T(e.evaluate("rowOff", t).textContent)), r === "from" ? n.tl = i : n.br = i, n;
1753
+ return e.evaluate("col", t) && (i.c = parseInt(e.evaluate("col", t).textContent)), e.evaluate("row", t) && (i.r = parseInt(e.evaluate("row", t).textContent)), e.evaluate("colOff", t) && (i.x = N(e.evaluate("colOff", t).textContent)), e.evaluate("rowOff", t) && (i.y = N(e.evaluate("rowOff", t).textContent)), r === "from" ? n.tl = i : n.br = i, n;
1885
1754
  }
1886
1755
  },
1887
- DrawingGraphicFrameVisitor: class extends q {
1756
+ DrawingGraphicFrameVisitor: class extends V {
1888
1757
  visit(e, t, n) {
1889
1758
  if (!t) return;
1890
1759
  if (this.isGroupContent(n)) {
1891
1760
  if (e.getPath().includes("Fallback")) return {};
1892
1761
  let { movable: r } = this.readMemberHeader(e, t, "graphicFrame"), i = e.evaluate("xfrm", t);
1893
1762
  if (i) {
1894
- C(i, r);
1763
+ y(i, r);
1895
1764
  let t = e.evaluate("off", i), n = e.evaluate("ext", i);
1896
1765
  r.anchor = {
1897
1766
  tl: {
1898
- x: T(t?.getAttribute("x") ?? null) ?? 0,
1899
- y: T(t?.getAttribute("y") ?? null) ?? 0
1767
+ x: N(t?.getAttribute("x") ?? null) ?? 0,
1768
+ y: N(t?.getAttribute("y") ?? null) ?? 0
1900
1769
  },
1901
1770
  br: {
1902
- x: T(n?.getAttribute("cx") ?? null) ?? 0,
1903
- y: T(n?.getAttribute("cy") ?? null) ?? 0
1771
+ x: N(n?.getAttribute("cx") ?? null) ?? 0,
1772
+ y: N(n?.getAttribute("cy") ?? null) ?? 0
1904
1773
  }
1905
1774
  };
1906
1775
  }
1907
- let a = this.readGraphic(e, t);
1776
+ let a = this.readGraphic(e, t), o = a.type === "chart" ? {
1777
+ ...r.content.json,
1778
+ ...a.json
1779
+ } : a.json;
1908
1780
  return r.content = {
1909
1781
  ...r.content,
1910
1782
  type: a.type,
1911
- json: a.json
1783
+ json: o
1912
1784
  }, n.members.push(r), a.json;
1913
1785
  }
1914
1786
  n = super.visit(e, t, n);
@@ -1934,11 +1806,17 @@ var $ = {
1934
1806
  n === "chart" ? n = "chart" : n === "slicer" && (n = "slicer"), r.type = n;
1935
1807
  let i = a.getAttribute("r:id");
1936
1808
  if (n === "chart" && i) {
1937
- let n = this.readSourceId(e, t);
1809
+ let n, a = this.readSourceId(e, t), o = e.readEmbeddedPart(i) ?? void 0;
1810
+ try {
1811
+ let t = o?.xml ? I(o.xml) : null;
1812
+ n = t?.model, t?.lossy && e.warn("A chart states something its model does not; it is saved as it was until it is changed.", { onceKey: "xlsx.chart.lossy" });
1813
+ } catch (t) {
1814
+ e.warn(`A chart could not be read into the chart model; it is kept as its markup: ${t?.message ?? t}`, { onceKey: "xlsx.chart.model" });
1815
+ }
1938
1816
  r.json = {
1939
- xml: e.serializeElement(t) ?? void 0,
1940
- sourceId: n,
1941
- part: e.readEmbeddedPart(i) ?? void 0
1817
+ sourceId: a,
1818
+ part: o,
1819
+ model: n
1942
1820
  };
1943
1821
  } else if (n === "slicer") {
1944
1822
  let n = this.readSourceId(e, t);
@@ -1952,45 +1830,47 @@ var $ = {
1952
1830
  }
1953
1831
  },
1954
1832
  DrawingSpVisitor: J,
1955
- DrawingPicVisitor: class extends q {
1833
+ DrawingPicVisitor: class extends V {
1956
1834
  visit(e, t, n) {
1957
1835
  if (!t) return;
1958
1836
  if (this.isGroupContent(n)) {
1959
1837
  if (e.getPath().includes("Fallback")) return {};
1960
- let { movable: r, content: i } = this.readMemberHeader(e, t, "picture"), a = this.readImageResource(e, t);
1961
- if (a == null) return {};
1962
- i.resId = a;
1963
- let o = this.readLocks(e.evaluate("nvPicPr/cNvPicPr/picLocks", t));
1964
- return o && (o.noChangeAspect !== void 0 && (r.lockAspect = o.noChangeAspect), r.locks = o), n.members.push(r), i;
1965
- }
1966
- let r = super.visit(e, t, n), i = e.evaluate("nvPicPr/cNvPicPr", t);
1967
- if (i) {
1968
- e.copyFromAttribute(t, "preferRelativeResize", r, "preferRelativeResize", e.BOOLEAN_COPY);
1969
- let n = e.evaluate("picLocks", i);
1970
- if (n) {
1971
- n.hasAttribute("noChangeAspect") && (r.lockAspect = n.getAttribute("noChangeAspect") === "1");
1972
- let t = {};
1973
- e.copyFromAttribute(n, "noChangeArrowheads", r, "noChangeArrowheads", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noChangeShapeType", r, "noChangeShapeType", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noEditPoints", r, "noEditPoints", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noAdjustHandles", r, "noAdjustHandles", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noCrop", r, "noCrop", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noGrp", r, "noGrp", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noMove", r, "noMove", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noResize", r, "noResize", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noRot", r, "noRot", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noSelect", r, "noSelect", e.BOOLEAN_COPY), Object.keys(t).length > 0 && (r.locks = t);
1974
- }
1838
+ let { movable: r, content: i } = this.readMemberHeader(e, t, "picture"), a = this.readImage(e, t);
1839
+ return a ? (this.readPictureDetails(e, t, a, r, i), n.members.push(r), i) : {};
1975
1840
  }
1976
- let a = this.readImageResource(e, t);
1977
- if (a === null) return;
1978
- let o = { resId: a }, s = this.readSourceId(e, t);
1979
- return s !== void 0 && (o.sourceId = s), this.setContent(n, {
1841
+ let r = super.visit(e, t, n), i = this.readImage(e, t);
1842
+ if (i === null) return;
1843
+ let a = {}, o = this.readSourceId(e, t);
1844
+ return o !== void 0 && (a.sourceId = o), this.readPictureDetails(e, t, i, r, a), this.setContent(r, {
1980
1845
  type: "picture",
1981
- json: o
1982
- }), r;
1983
- }
1984
- readImageResource(e, t) {
1985
- let n = e.evaluate("blipFill/blip", t);
1986
- if (!n) return;
1987
- let r = n.getAttribute("r:embed") ?? n.getAttribute("embed");
1988
- return r ||= n.getAttribute("r:link") ?? n.getAttribute("link"), r ? e.getRef(r, !0) : (e.warn("A picture names no image; it was not imported.", { onceKey: "xlsx.drawing.picture.noRel" }), null);
1846
+ json: a
1847
+ }), a;
1848
+ }
1849
+ readPictureDetails(e, t, n, r, i) {
1850
+ n?.resId !== void 0 && (i.resId = n.resId), n?.image && (i.image = n.image);
1851
+ let a = t.getAttribute("macro");
1852
+ a && (i.macro = a), t.hasAttribute("fPublished") && (i.published = P(t.getAttribute("fPublished")));
1853
+ let o = e.evaluate("nvPicPr/cNvPicPr", t);
1854
+ if (o?.getAttribute) {
1855
+ o.getAttribute("preferRelativeResize") === "0" && (i.noRelativeResize = !0);
1856
+ let t = this.readLocks(e.evaluate("picLocks", o));
1857
+ t && (i.locks = t), r.lockAspect = t?.noChangeAspect ?? !1;
1858
+ }
1859
+ }
1860
+ readImage(e, t) {
1861
+ let n = e.evaluate("blipFill", t), r = n ? e.evaluate("blip", n) : null;
1862
+ if (!r) return;
1863
+ if (!(r.getAttribute("r:embed") ?? r.getAttribute("embed") ?? r.getAttribute("r:link") ?? r.getAttribute("link"))) return e.warn("A picture names no image; it was not imported.", { onceKey: "xlsx.drawing.picture.noRel" }), null;
1864
+ let { type: i, resId: a, ...o } = new E().processImageFill(e, n);
1865
+ return !o.tile && o.stretch && Object.keys(o.stretch).length === 0 && delete o.stretch, o.extLst && Oe.test(o.extLst) && delete o.extLst, {
1866
+ resId: a,
1867
+ image: Object.keys(o).length > 0 ? o : void 0
1868
+ };
1989
1869
  }
1990
1870
  },
1991
- DrawingGrpSpVisitor: class extends q {
1871
+ DrawingGrpSpVisitor: class extends V {
1992
1872
  constructor(...e) {
1993
- super(...e), this._fills = new w();
1873
+ super(...e), this._fills = new E();
1994
1874
  }
1995
1875
  visit(e, t, n) {
1996
1876
  if (!t) return;
@@ -2017,7 +1897,7 @@ var $ = {
2017
1897
  if (c) {
2018
1898
  let t = e.evaluate("xfrm", c);
2019
1899
  if (t) {
2020
- C(t, r), t.getAttribute("flipH") === "1" && (r.flipH = !0), t.getAttribute("flipV") === "1" && (r.flipV = !0);
1900
+ y(t, r), t.getAttribute("flipH") === "1" && (r.flipH = !0), t.getAttribute("flipV") === "1" && (r.flipV = !0);
2021
1901
  let n = Y(e, t, "off", "ext"), o = Y(e, t, "chOff", "chExt") ?? n;
2022
1902
  o && (i.childBounds = o), a && n && (r.anchor = {
2023
1903
  tl: {
@@ -2208,7 +2088,7 @@ var $ = {
2208
2088
  if (t.type === "_error") {
2209
2089
  let e = t.errorType;
2210
2090
  if (e) try {
2211
- t = o.getBuiltInByCode(e + 1) ?? o.BuiltIn.Unknown;
2091
+ t = c.getBuiltInByCode(e + 1) ?? c.BuiltIn.Unknown;
2212
2092
  } catch {}
2213
2093
  }
2214
2094
  return t;
@@ -2272,7 +2152,7 @@ var $ = {
2272
2152
  if (n.nodeType === 1) {
2273
2153
  if (n.localName === "t") e.text += n.textContent ?? "";
2274
2154
  else if (n.localName === "rPr") {
2275
- let t = ue(n);
2155
+ let t = Ae(n);
2276
2156
  t && (e.font = t);
2277
2157
  }
2278
2158
  }
@@ -2299,16 +2179,16 @@ var $ = {
2299
2179
  visit(e, t, n) {
2300
2180
  if (!t) return;
2301
2181
  let r = {};
2302
- e.copyFromAttribute(t, "id", r, "id", N);
2182
+ e.copyFromAttribute(t, "id", r, "id", b);
2303
2183
  let i = t.getAttribute("ref");
2304
- e.copyFromAttribute(t, "personId", r, "personId", N), e.copyFromAttribute(t, "parentId", r, "parentId", N);
2184
+ e.copyFromAttribute(t, "personId", r, "personId", b), e.copyFromAttribute(t, "parentId", r, "parentId", b);
2305
2185
  let a = t.getAttribute("dT");
2306
2186
  a && (r.dt = function(e) {
2307
2187
  let t = /^(.*T\d{2}:\d{2}:\d{2})(?:\.(\d+))?(Z|[+-]\d{2}:?\d{2})?$/i.exec(e.trim());
2308
2188
  if (!t) return e;
2309
2189
  let [, n, r, i] = t;
2310
2190
  return `${n}${r ? `.${(r + "00").substring(0, 3)}` : ""}${i ?? "Z"}`;
2311
- }(a)), t.hasAttribute("done") && (r.done = S(t.getAttribute("done")));
2191
+ }(a)), t.hasAttribute("done") && (r.done = P(t.getAttribute("done")));
2312
2192
  let o = function(e) {
2313
2193
  let t, n = e.childNodes;
2314
2194
  for (let e = 0; e < n.length; e++) {
@@ -2321,8 +2201,8 @@ var $ = {
2321
2201
  let r = n.getAttribute("mentionId"), a = n.getAttribute("mentionpersonId");
2322
2202
  if (!r || !a) continue;
2323
2203
  let o = {
2324
- id: N(r),
2325
- personId: N(a)
2204
+ id: b(r),
2205
+ personId: b(a)
2326
2206
  }, s = parseInt(n.getAttribute("startIndex") ?? "", 10);
2327
2207
  isNaN(s) || (o.startIndex = s);
2328
2208
  let c = parseInt(n.getAttribute("length") ?? "", 10);
@@ -2344,33 +2224,33 @@ var $ = {
2344
2224
  let n = i.item(t);
2345
2225
  if (n.nodeType === 1 && n.localName === "person") {
2346
2226
  let t = {};
2347
- e.copyFromAttribute(n, "id", t, "id", N), e.copyFromAttribute(n, "displayName", t), e.copyFromAttribute(n, "userId", t, "userId", N), e.copyFromAttribute(n, "providerId", t), r.push(t);
2227
+ e.copyFromAttribute(n, "id", t, "id", b), e.copyFromAttribute(n, "displayName", t), e.copyFromAttribute(n, "userId", t, "userId", b), e.copyFromAttribute(n, "providerId", t), r.push(t);
2348
2228
  }
2349
2229
  }
2350
2230
  return r.length > 0 && (n.persons = r), r;
2351
2231
  }
2352
2232
  }
2353
- }, de = class {
2233
+ }, je = class {
2354
2234
  constructor(e, t) {
2355
2235
  this.path = e, this.visitor = t;
2356
2236
  }
2357
- }, fe = class {
2237
+ }, Me = class {
2358
2238
  constructor() {
2359
- this.visitorsByXmlTagName = /* @__PURE__ */ new Map(), this.scopedVisitorsByXmlTagName = /* @__PURE__ */ new Map(), this.visitorParamsState = null, this.registerVisitor("Relationships", new $.RelsVisitor()), this.registerVisitor("cp:coreProperties", new $.CorePropertiesVisitor()), this.registerVisitor("Properties", new $.AppPropertiesVisitor()), this.registerVisitor("spPr", new $.ShapePropertiesVisitor()), this.registerVisitor("txBody", new $.ShapeTextVisitor()), this.registerVisitor("txPr", new $.TextPropertiesVisitor()), this.registerVisitor("c:chartSpace", new $.ChartSpaceVisitor()), this.registerVisitor("c:plotArea", new $.PlotAreaVisitor()), this.registerVisitor("c:barChart", new $.BarChartTypeVisitor()), this.registerVisitor("c:doughnutChart", new $.ChartTypeVisitor()), this.registerVisitor("c:lineChart", new $.ChartTypeVisitor()), this.registerVisitor("c:ofPieType", new $.ChartTypeVisitor()), this.registerVisitor("c:pieChart", new $.ChartTypeVisitor()), this.registerVisitor("c:scatterChart", new $.ChartTypeVisitor()), this.registerVisitor("c:barChart", new $.DataLabelsVisitor("dataLabels"), "dLbls"), this.registerVisitor("c:doughnutChart", new $.DataLabelsVisitor("dataLabels"), "dLbls"), this.registerVisitor("c:lineChart", new $.DataLabelsVisitor("dataLabels"), "dLbls"), this.registerVisitor("c:ofPieType", new $.DataLabelsVisitor("dataLabels"), "dLbls"), this.registerVisitor("c:pieChart", new $.DataLabelsVisitor("dataLabels"), "dLbls"), this.registerVisitor("c:scatterChart", new $.DataLabelsVisitor("dataLabels"), "dLbls"), this.registerVisitor("c:ser", new $.SeriesVisitor()), this.registerVisitor("c:dPt", new $.DataPointVisitor()), this.registerVisitor("c:marker", new $.MarkerVisitor()), this.registerVisitor("c:catAx", new $.AxisVisitor()), this.registerVisitor("c:valAx", new $.AxisVisitor()), this.registerVisitor("c:dateAx", new $.AxisVisitor()), this.registerVisitor("c:majorGridlines", new R("gridLinesMajor")), this.registerVisitor("c:minorGridlines", new R("gridLinesMinor")), this.registerVisitor("c:chartSpace", null, "txPr"), this.registerVisitor("c:catAx", new $.TextPropertiesVisitor("labels.text"), "txPr"), this.registerVisitor("c:valAx", new $.TextPropertiesVisitor("labels.text"), "txPr"), this.registerVisitor("c:dateAx", new $.TextPropertiesVisitor("labels.text"), "txPr"), this.registerVisitor("c:legend", new $.LegendVisitor()), this.registerVisitor("c:legend", new $.TextPropertiesVisitor("labels.text"), "txPr"), this.registerVisitor("c:legendEntry", new $.LegendEntryVisitor()), this.registerVisitor("c:ser", new $.NegativeShapeVisitor(), "extLst/ext/invertSolidFillFmt/spPr"), this.registerVisitor("c:ser", new $.DataLabelsVisitor("labels"), "dLbls"), this.registerVisitor("c:dLbl", new $.DataLabelsVisitor("points")), this.registerVisitor("c:title", new $.TitleVisitor()), this.registerVisitor("c:title", null, "tx/rich"), this.registerVisitor("c:title", null, "txPr"), this.registerVisitor("c:layout", new $.LayoutVisitor()), this.registerVisitor("c:dispUnits", new R("dispUnits")), this.registerVisitor("c:dispUnitsLbl", new $.TitleVisitor("displayUnitsLabel")), this.registerVisitor("c:dispUnitsLbl", new $.TextPropertiesVisitor(), "tx/rich"), this.registerVisitor("a:theme", new $.ThemeVisitor()), this.registerVisitor("a:theme", new $.ClrSchemeVisitor(), "themeElements/clrScheme"), this.registerVisitor("a:theme", new $.FontSchemeVisitor(), "themeElements/fontScheme"), this.registerVisitor("a:theme", new $.FmtSchemeVisitor(), "themeElements/fmtScheme"), this.registerVisitor("autoFilter", new $.AutoFilterVisitor()), this.registerVisitor("sortState", new $.SortStateVisitor()), this.registerVisitor("s:workbook", new $.WorkbookVisitor()), this.registerVisitor("styleSheet", new $.SheetStyleVisitor()), this.registerVisitor("x14:table", new $.TableX14Visitor()), this.registerVisitor("table", new $.TableVisitor()), this.registerVisitor("externalLink", new $.ExternalLinkVisitor()), this.registerVisitor("wsDr", new $.DrawingVisitor()), this.registerVisitor("twoCellAnchor", new $.DrawingAnchorVisitor()), this.registerVisitor("oneCellAnchor", new $.DrawingAnchorVisitor()), this.registerVisitor("absoluteAnchor", new $.DrawingAnchorVisitor()), this.registerVisitor("graphicFrame", new $.DrawingGraphicFrameVisitor()), this.registerVisitor("sp", new $.DrawingSpVisitor()), this.registerVisitor("grpSp", new $.DrawingGrpSpVisitor()), this.registerVisitor("cxnSp", new $.DrawingCxnSpVisitor()), this.registerVisitor("pic", new $.DrawingPicVisitor()), this.registerVisitor("metadata", new $.MetadataVisitor()), this.registerVisitor("rvStructures", new $.RichValueStructureVisitor()), this.registerVisitor("rvData", new $.RichValueDataVisitor()), this.registerVisitor("comments", new $.CommentsVisitor()), this.registerVisitor("comment", new $.CommentVisitor()), this.registerVisitor("ThreadedComments", new $.ThreadedCommentsVisitor()), this.registerVisitor("threadedComment", new $.ThreadedCommentVisitor()), this.registerVisitor("threadedComment", new $.TextPropertiesVisitor("content"), "text"), this.registerVisitor("personList", new $.PersonListVisitor()), this.registerVisitor("slicerCacheDefinition", new $.SlicerCacheDefinitionVisitor()), this.registerVisitor("slicers", new $.SlicersVisitor()), this.registerVisitor("formControlPr", new $.FormControlPrVisitor());
2239
+ this.visitorsByXmlTagName = /* @__PURE__ */ new Map(), this.scopedVisitorsByXmlTagName = /* @__PURE__ */ new Map(), this.visitorParamsState = null, this.registerVisitor("Relationships", new $.RelsVisitor()), this.registerVisitor("cp:coreProperties", new $.CorePropertiesVisitor()), this.registerVisitor("Properties", new $.AppPropertiesVisitor()), this.registerVisitor("spPr", new $.ShapePropertiesVisitor()), this.registerVisitor("txBody", new $.ShapeTextVisitor()), this.registerVisitor("txPr", new $.TextPropertiesVisitor()), this.registerVisitor("a:theme", new $.ThemeVisitor()), this.registerVisitor("a:theme", new $.ClrSchemeVisitor(), "themeElements/clrScheme"), this.registerVisitor("a:theme", new $.FontSchemeVisitor(), "themeElements/fontScheme"), this.registerVisitor("a:theme", new $.FmtSchemeVisitor(), "themeElements/fmtScheme"), this.registerVisitor("a:theme", new $.ObjectDefaultsVisitor(), "objectDefaults"), this.registerVisitor("autoFilter", new $.AutoFilterVisitor()), this.registerVisitor("sortState", new $.SortStateVisitor()), this.registerVisitor("s:workbook", new $.WorkbookVisitor()), this.registerVisitor("styleSheet", new $.SheetStyleVisitor()), this.registerVisitor("x14:table", new $.TableX14Visitor()), this.registerVisitor("table", new $.TableVisitor()), this.registerVisitor("externalLink", new $.ExternalLinkVisitor()), this.registerVisitor("wsDr", new $.DrawingVisitor()), this.registerVisitor("twoCellAnchor", new $.DrawingAnchorVisitor()), this.registerVisitor("oneCellAnchor", new $.DrawingAnchorVisitor()), this.registerVisitor("absoluteAnchor", new $.DrawingAnchorVisitor()), this.registerVisitor("graphicFrame", new $.DrawingGraphicFrameVisitor()), this.registerVisitor("sp", new $.DrawingSpVisitor()), this.registerVisitor("grpSp", new $.DrawingGrpSpVisitor()), this.registerVisitor("cxnSp", new $.DrawingCxnSpVisitor()), this.registerVisitor("pic", new $.DrawingPicVisitor()), this.registerVisitor("metadata", new $.MetadataVisitor()), this.registerVisitor("rvStructures", new $.RichValueStructureVisitor()), this.registerVisitor("rvData", new $.RichValueDataVisitor()), this.registerVisitor("comments", new $.CommentsVisitor()), this.registerVisitor("comment", new $.CommentVisitor()), this.registerVisitor("ThreadedComments", new $.ThreadedCommentsVisitor()), this.registerVisitor("threadedComment", new $.ThreadedCommentVisitor()), this.registerVisitor("threadedComment", new $.TextPropertiesVisitor("content"), "text"), this.registerVisitor("personList", new $.PersonListVisitor()), this.registerVisitor("slicerCacheDefinition", new $.SlicerCacheDefinitionVisitor()), this.registerVisitor("slicers", new $.SlicersVisitor()), this.registerVisitor("formControlPr", new $.FormControlPrVisitor());
2360
2240
  }
2361
2241
  registerVisitor(e, t, n = null) {
2362
2242
  e.indexOf(":") === -1 && (e = "*:" + e);
2363
2243
  let r = e.split(":"), i = r.length > 1 ? r[1] : r[0];
2364
2244
  if (!n) return this.visitorsByXmlTagName.set(i, t), void this.visitorsByXmlTagName.set(e, t);
2365
2245
  let a = this.scopedVisitorsByXmlTagName.get(i);
2366
- a || (a = [], this.scopedVisitorsByXmlTagName.set(i, a), this.scopedVisitorsByXmlTagName.set(e, a)), a.push(new de(n, t));
2246
+ a || (a = [], this.scopedVisitorsByXmlTagName.set(i, a), this.scopedVisitorsByXmlTagName.set(e, a)), a.push(new je(n, t));
2367
2247
  }
2368
2248
  parseDxf(t, n = "", r = e.EmptyObject) {
2369
2249
  this.visitorParamsState ||= /* @__PURE__ */ new Map();
2370
2250
  let i = this.visitorParamsState, a = i.get("processingDXFs");
2371
2251
  i.set("processingDXFs", !0);
2372
2252
  try {
2373
- let e = new L(null, this, "/dxf", t, {}, n, r), i = {};
2253
+ let e = new R(null, this, "/dxf", t, {}, n, r), i = {};
2374
2254
  return new $.SheetStyleVisitor().processDXF(e, t, i), i;
2375
2255
  } finally {
2376
2256
  a === void 0 ? i.delete("processingDXFs") : i.set("processingDXFs", a);
@@ -2384,7 +2264,7 @@ var $ = {
2384
2264
  this.visitorParamsState && !r?.paramMap || (this.visitorParamsState = r?.paramMap ?? /* @__PURE__ */ new Map());
2385
2265
  let a = {}, o = this.visitorsByXmlTagName.get(i.nodeName);
2386
2266
  if (o ||= this.visitorsByXmlTagName.get(i.localName), !o) throw Error(`A visitor for the root element: '${i.nodeName}' or '${i.localName}' must be registered.`);
2387
- let s = "/" + i.localName, c = new L(null, this, s, i, a, n, r), l = [];
2267
+ let s = "/" + i.localName, c = new R(null, this, s, i, a, n, r), l = [];
2388
2268
  this._doWalk(o, c, l, i, a, n, r);
2389
2269
  let u = l.length;
2390
2270
  for (let e = 0; e < u; e++) {
@@ -2412,7 +2292,7 @@ var $ = {
2412
2292
  for (; l && l !== r;) s = l.localName + "/" + s, l = l.parentNode;
2413
2293
  let u = t.getPath() + "/" + s;
2414
2294
  if (c.visitor) {
2415
- let r = new L(t, this, u, t.getElemRoot(), t.getJsonRoot(), a, o);
2295
+ let r = new R(t, this, u, t.getElemRoot(), t.getJsonRoot(), a, o);
2416
2296
  this._doWalk(c.visitor, r, n, e, i, a, o);
2417
2297
  }
2418
2298
  };
@@ -2438,10 +2318,10 @@ var $ = {
2438
2318
  if (r.nodeType !== 1) continue;
2439
2319
  let c = r, p = c.nodeName, m = l.get(p);
2440
2320
  m ||= (p = c.localName, l.get(p));
2441
- let h = t.getPath() + "/" + p, g = new L(t, this, h, u, d, a, o);
2321
+ let h = t.getPath() + "/" + p, g = new R(t, this, h, u, d, a, o);
2442
2322
  this._doWalk(m, g, n, c, s ?? i, a, o);
2443
2323
  }
2444
2324
  return s;
2445
2325
  }
2446
2326
  };
2447
- export { fe as DOMTransformer, L as ExecutionContext, h as NumberUtils, ie as VisitorUtils };
2327
+ export { Me as DOMTransformer, R as ExecutionContext, _ as NumberUtils, ne as VisitorUtils };