@sheetxl/studio-vanilla 0.7.28-beta.4 → 0.8.0-beta.10

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 (539) hide show
  1. package/browser/esm/-LoBx7J6imeqaxCq.mjs +236 -0
  2. package/browser/esm/8-jmVNNbOHuXFdVQ.mjs +392 -0
  3. package/{cdn/assets/DJSXXWTUJGbXqLLx.js → browser/esm/B00ixdmb8-O5ijEp.mjs} +1 -1
  4. package/browser/esm/{ByJMrAYRARLc7uZQ2.mjs → B0Wjc3lwtjKMwnvn.mjs} +27 -29
  5. package/browser/esm/B3Ii8x6RquHW1jMc.mjs +299 -0
  6. package/{cdn/assets/BF9yh58xfvR0KbSo.js → browser/esm/B7iV5qzlmJlM2nQv.mjs} +179 -202
  7. package/{cdn/assets/C7xBBqvPqat9oEft2.js → browser/esm/BAH_cWcQEIBKWnl6.mjs} +101 -55
  8. package/browser/esm/BAdRecWK1maKGOZd.mjs +142 -0
  9. package/browser/esm/BBjgqNlHm-ssbSAG.mjs +47 -0
  10. package/browser/esm/BCWTI3jdTPG37r8W.mjs +46 -0
  11. package/{cdn/assets/CJGlwQusOCSy9ZAb.js → browser/esm/BMlPFJ1glExv-70Z.mjs} +5 -5
  12. package/browser/esm/{BrUe0MnOhxzeOngn2.mjs → BN2d5U1nw7pRtOrn.mjs} +1 -1
  13. package/browser/esm/BNIInlJQbJjH8B6G.mjs +84250 -0
  14. package/browser/esm/BPrHgyAsm2Htx15h.mjs +67 -0
  15. package/browser/esm/BRfat1fV3oGLwvin.mjs +76 -0
  16. package/browser/esm/{CXDtDYyREwoFwtMJ2.mjs → BSCja5yvevmKZPBB.mjs} +1 -1
  17. package/browser/esm/BThOwSja2ra4xejQ.mjs +6306 -0
  18. package/browser/esm/BVJUL2HhoedhbwVy.mjs +77 -0
  19. package/{cdn/assets/MHuhAgQAA8zcnWkd2.js → browser/esm/BWo1N4YbK_zGU0nu.mjs} +1 -1
  20. package/browser/esm/B_HB4y7AA88Z775Z.mjs +91 -0
  21. package/browser/esm/BaEZmurTZnX_yfKD.mjs +1082 -0
  22. package/browser/esm/BeMLfv6hWo15VCIL.mjs +239 -0
  23. package/browser/esm/{BjYIAiuzZbD-dk822.mjs → BhkeuRcx8RlLCQ5E.mjs} +1 -1
  24. package/browser/esm/Bi5-feQLtwpV6Ai8.mjs +57 -0
  25. package/browser/esm/BlPn_DXaEXOPxMxC.mjs +540 -0
  26. package/{cdn/assets/DY9zG4TdF0FAs_QP2.js → browser/esm/BsUrrzAgfyAdcCJW.mjs} +28 -13
  27. package/{cdn/assets/CBC_MJL6Bwk7bzQz2.js → browser/esm/BtGmrIqU9W1L8zfZ.mjs} +1 -1
  28. package/browser/esm/BtdRr6IbtO6Gypsk.mjs +27 -0
  29. package/browser/esm/BwOxnbR61WFJwy0A.mjs +607 -0
  30. package/browser/esm/BxhKgo_rPQ2d12HT.mjs +35 -0
  31. package/browser/esm/By3a43qwWICwXRmw.mjs +8035 -0
  32. package/browser/esm/{Cd8G1nX1dKzp-mho2.mjs → ByUcqyCNfqi5Mm7w.mjs} +2 -2
  33. package/{cdn/assets/DP9sLYfGGWMDI7hL2.js → browser/esm/ByqhqEMBLrnkaPKE.mjs} +26 -26
  34. package/browser/esm/{5LJ1sC7IPn109Ien.mjs → C-0viTjg1dT2F-sk.mjs} +2 -2
  35. package/browser/esm/{DnMUizHKSRwWpO_7.mjs → C3r_9RqlWrEmlXZ1.mjs} +37 -3
  36. package/browser/esm/C4VT6lNbpaDXCpBb.mjs +8820 -0
  37. package/browser/esm/{B3tC7wY_kUGXf5sb2.mjs → C5EKgE9Owsc_juw-.mjs} +1 -1
  38. package/{cdn/assets/BzktrYJH7SQ9GyUI2.js → browser/esm/C9NyIoUahFiyRCxP.mjs} +2 -2
  39. package/{cdn/assets/D5BuXc-kVnr6Xiae2.js → browser/esm/CBdNC7BOfc5TewHU.mjs} +1 -1
  40. package/browser/esm/CCd192S7yVpc6iOe.mjs +118 -0
  41. package/browser/esm/{Eszk9OugmYOhaS2s.mjs → CDsuiN--qdALFyql.mjs} +179 -202
  42. package/{cdn/assets/DtkqR-Hu7K4agnCs2.js → browser/esm/CFvKDDbrL3wpXnQH.mjs} +1 -1
  43. package/browser/esm/{DjS4iUli-T3uuUfK.mjs → CHMqT9DzYKTxPfP6.mjs} +2 -2
  44. package/{cdn/assets/BetL7yI63lEdQ0gM2.js → browser/esm/CMxbiQ5J79M3n1tk.mjs} +604 -405
  45. package/{cdn/assets/B4fSPDN923nqCDVE.js → browser/esm/CQOyeq_-pg3CM-uA.mjs} +6 -7
  46. package/browser/esm/CQuv-nk5jtXUfu7C.mjs +7 -0
  47. package/browser/esm/CRAzVh3CaAa16avf.mjs +521 -0
  48. package/browser/esm/{g8dDbkwbYjhKWJM22.mjs → CSEMxasVyGCekxKf.mjs} +6 -7
  49. package/browser/esm/CTI-mCJbJzitJZwj.mjs +25 -0
  50. package/browser/esm/{DrKUGkrCTKZHu8XC.mjs → CTdFZ_I-41Vr6Dy4.mjs} +1 -1
  51. package/browser/esm/CVcCUfSRsiZ1-6hs.mjs +119 -0
  52. package/browser/esm/CVxlfyE-gnJM8hOz.mjs +177 -0
  53. package/browser/esm/CWJzHmEgahdOfNjH.mjs +527 -0
  54. package/browser/esm/CWoPWWRwMgkGPFFP.mjs +7393 -0
  55. package/browser/esm/CZOJogyZqMfUxcXj.mjs +1141 -0
  56. package/{cdn/assets/Dy5Z2XIqS7-0tdjc2.js → browser/esm/CaS8_J5HfBRk5_Nw.mjs} +86 -86
  57. package/browser/esm/CdeXXPCp5cCYvGyD.mjs +14 -0
  58. package/browser/esm/{B9t9fF8FNCLomgK_.mjs → CfltjY8hY-RPwwpd.mjs} +582 -551
  59. package/browser/esm/Chr_TXM-48IsK8Va.mjs +155 -0
  60. package/browser/esm/{Ca6NSkWoi9DvRJjQ.mjs → ClJvUf8aR8vNC_3Z.mjs} +6 -6
  61. package/browser/esm/Clx8vvGDOTWK_M2l.mjs +484 -0
  62. package/browser/esm/CnWNviK4qlX2GVl6.mjs +73 -0
  63. package/browser/esm/{BsP1iPcd49wYIIoP.mjs → Cpza4AeltEVHASij.mjs} +3 -3
  64. package/browser/esm/{Dwko6HB2zePBBeBu2.mjs → CqoHxlGpZ3yzPj5V.mjs} +22 -21
  65. package/browser/esm/{XBb7Mxqf0beXaSJt.mjs → CtZPEkaldpJpoGtW.mjs} +2197 -2011
  66. package/browser/esm/CvWGtHslTdesJik-.mjs +69 -0
  67. package/browser/esm/Cw-4uoMuq_m7ziA3.mjs +36 -0
  68. package/browser/esm/CxCipDFamYSOctBo.mjs +299 -0
  69. package/browser/esm/Cy00y9b9j17Txyv1.mjs +466 -0
  70. package/browser/esm/D-55MlIn7Wo_hdjI.mjs +905 -0
  71. package/browser/esm/D-9f1NKcpuYSgond.mjs +412 -0
  72. package/browser/esm/D-KZpU6HMaP4VUva.mjs +357 -0
  73. package/browser/esm/D0r2MPlWLnStWJNW.mjs +622 -0
  74. package/browser/esm/{CXlA71yGA1Hqvp_S.mjs → D2aQPiGg0ZoMYzuf.mjs} +22 -21
  75. package/{cdn/assets/KJzdwvEWwCwAXuo4.js → browser/esm/D2coM-dNrlLpnUu5.mjs} +1000 -1010
  76. package/browser/esm/D7CGuQcwpkiuesEI.mjs +229 -0
  77. package/browser/esm/{BQt5lpPjssz4Lvhs.mjs → D7DWH3-5fBNx8jtc.mjs} +182 -132
  78. package/browser/esm/D7kkzIFPqKBK94kO.mjs +17952 -0
  79. package/browser/esm/D88StfSjZJi5E8Xb.mjs +5153 -0
  80. package/browser/esm/D8exjrado9TJrBp-.mjs +1946 -0
  81. package/browser/esm/DAE3Kv0Vs0VuBecT.mjs +32 -0
  82. package/browser/esm/DAprxR00V9qvNLL2.mjs +6607 -0
  83. package/browser/esm/DEvZj68igS7Q8SZE.mjs +763 -0
  84. package/browser/esm/DG3BfxRsbjey-B7E.mjs +441 -0
  85. package/browser/esm/DGCOPbZbEmt0x9z0.mjs +155 -0
  86. package/browser/esm/DGcvio2uhlrsE3ZY.mjs +236 -0
  87. package/browser/esm/DGuynZFJ9tqziqQs.mjs +92 -0
  88. package/browser/esm/DJqj66SnUcx0QmSN.mjs +15 -0
  89. package/browser/esm/DLhK_oSGg71ry6-m.mjs +86 -0
  90. package/browser/esm/{B_U_UpQXdbjNRthb.mjs → DLqc11Pf8vaE4Q5B.mjs} +2 -2
  91. package/browser/esm/DNCqTF9EbT-U1TdV.mjs +20 -0
  92. package/browser/esm/{DM4g0nYgYXgI44dL2.mjs → DNaPo7BQu6hr1fWq.mjs} +1 -1
  93. package/{cdn/assets/DRAYZ0SGlbCLkftR.js → browser/esm/DQEjvIGMgEkiaP6J.mjs} +1 -1
  94. package/browser/esm/{Ykh10IaXTKA2XWot.mjs → DQIRFXG4MveFkK3I.mjs} +1 -1
  95. package/{cdn/assets/DJk14sSSnSHiEXZ7.js → browser/esm/DRm1R4uVOkaMfXNI.mjs} +51 -11
  96. package/browser/esm/DSf-Db1h8rlW2A6n.mjs +122 -0
  97. package/browser/esm/DSviq1TNoiIAGW7W.mjs +32 -0
  98. package/{cdn/assets/CuIUyLNDoHvYMJaQ2.js → browser/esm/DTn9oYyiIYgyijAk.mjs} +110 -83
  99. package/browser/esm/{BxecIrskOMQZB-Xc.mjs → DVpi1vC8ixXvUQG_.mjs} +3 -3
  100. package/browser/esm/{esX6dx06TUUL-cRt.mjs → DWgp4t9N9u0eWthH.mjs} +1 -1
  101. package/browser/esm/{DLArQtAbWAarI8od2.mjs → DXo8mR6t5HGsmTcu.mjs} +1 -1
  102. package/browser/esm/DZRmBfjn2TgOTu5e.mjs +3604 -0
  103. package/browser/esm/{BJQfvwvEke-uN0_02.mjs → D_7BWdsu8yejhUxy.mjs} +184 -11
  104. package/browser/esm/D_thhK0vSez8Yfle.mjs +798 -0
  105. package/browser/esm/DaMKWQQTgIF08cT7.mjs +105 -0
  106. package/browser/esm/Db6Tvr45TS9J5Qsb.mjs +259 -0
  107. package/browser/esm/{Bc2Dp6W4U_22cv7c.mjs → Dc2ZwgbIEgYWwAsF.mjs} +1 -1
  108. package/{cdn/assets/BGWyNjrM55ce-D1o.js → browser/esm/DeUXRggj8Oz9ru_i.mjs} +2 -2
  109. package/{cdn/assets/CmYCYFWjq9KP6xw7.js → browser/esm/DfESVLC8CAi8m8A7.mjs} +6 -6
  110. package/browser/esm/{hsy1zALC1oNNm5Sf.mjs → DjdkGy-EI1kSo226.mjs} +7 -5
  111. package/browser/esm/DjtXfgbmXjUAoG0y.mjs +58 -0
  112. package/browser/esm/DlOVZD0OiAjouS6-.mjs +3563 -0
  113. package/browser/esm/Dme0qpRinBnhzp53.mjs +519 -0
  114. package/browser/esm/DnyZmrwPxShyeUjm.mjs +849 -0
  115. package/browser/esm/DoS1sE431fEhdOQb.mjs +216 -0
  116. package/browser/esm/DqBj-9o7UdXu4qhb.mjs +33 -0
  117. package/{cdn/assets/FVJ1akngxeMiYwPa.js → browser/esm/DrI_S0A9TQvriTua.mjs} +1 -1
  118. package/browser/esm/Dv2z0548SZRGTN3l.mjs +149 -0
  119. package/browser/esm/{Bjx-9lUaScF5-Hki2.mjs → Dv8aQFTTaQBJKDDk.mjs} +2 -5
  120. package/browser/esm/DvWCBuY0jAL-RmJV.mjs +3363 -0
  121. package/browser/esm/Dwxz0s23ra1tRtsH.mjs +7 -0
  122. package/{cdn/assets/D4aK0uTRJQpM63922.js → browser/esm/DxcRLd7wmBGDgJsA.mjs} +1 -1
  123. package/{cdn/assets/CIgn8uIPaadIJP4a2.js → browser/esm/DxwprgjYhcmfDbXH.mjs} +24 -24
  124. package/browser/esm/{DENx9Ts-f8adXw3Y2.mjs → Dy44qJVkwNseMG-3.mjs} +1 -1
  125. package/browser/esm/DyeY6XwMQ_XNUHiW.mjs +89 -0
  126. package/browser/esm/{BOMct7uvqiNJIS63.mjs → ErIXJFPDFXwGEL8V.mjs} +2 -2
  127. package/browser/esm/{C4vqrW3EmJDy1otX.mjs → FO1Jezau486fH4kN.mjs} +7 -6
  128. package/browser/esm/FjNOhkR7-JAIaRP6.mjs +19 -0
  129. package/browser/esm/H-JnJQMcZQbpvjdb.mjs +2706 -0
  130. package/browser/esm/J9i3r1fU0H10b2hX.mjs +1001 -0
  131. package/browser/esm/LAbUYeLiPG8z9cmA.mjs +277 -0
  132. package/browser/esm/M7RYrx20B_Yl_euJ.mjs +400 -0
  133. package/browser/esm/{PzCXbVRf1jOHVOAw.mjs → PtGiIWFBYP-ujLmf.mjs} +1 -1
  134. package/browser/esm/RLU85PsAYtKPUf6N.mjs +71 -0
  135. package/browser/esm/{CTwLETvNO4KeXbkK2.mjs → RfHd1JATBlcsfLPv.mjs} +5 -5
  136. package/{cdn/assets/Bce8ZTUCpXr5Y_zl2.js → browser/esm/SNze-adFJwKuGSQW.mjs} +48 -2
  137. package/browser/esm/UTZcodQydbuMfCOS.mjs +171 -0
  138. package/{cdn/assets/BGAXiHOiX_PZ1ww1.js → browser/esm/VwGokBaawZfZiV2X.mjs} +1 -1
  139. package/browser/esm/WMYR09ZOR8JbZEnx.mjs +4748 -0
  140. package/browser/esm/{DOIVDuyf7YyJZjcD.mjs → ZbGPiRN9j0629JJQ.mjs} +2 -2
  141. package/{cdn/assets/BPAEbeXV75XIAS4n.js → browser/esm/ZxsFYopF0_WWqw4Q.mjs} +1 -1
  142. package/browser/esm/_MPToH4oMe4rhTdZ.mjs +63 -0
  143. package/browser/esm/{L6LjzOx1G9Idjtxa2.mjs → _t0Mx-mUFVtmVNkU.mjs} +2 -2
  144. package/{cdn/assets/CgsQuAbp76UOAPHm2.js → browser/esm/_zRV52yhE4gPf3XI.mjs} +211 -189
  145. package/browser/esm/aUREGNA8H7p4BpMK.mjs +33 -0
  146. package/browser/esm/cwuYkcKwsKkPe3gG.mjs +598 -0
  147. package/browser/esm/{CY4ANhbzXqZMJPnL2.mjs → djM9mJznx8GzVq51.mjs} +16 -15
  148. package/browser/esm/{6A8iYjFWJzx5PaTP2.mjs → f1OJemsiZnbwnds-.mjs} +16 -15
  149. package/{cdn/assets/DOsKUeLPwFIdzQv32.js → browser/esm/i0P63Wd0RRlgJotb.mjs} +1 -1
  150. package/browser/esm/{BZSAb1WGbwagUKGv2.mjs → iC69oOND5T8khIWf.mjs} +18 -17
  151. package/browser/esm/index.mjs +644 -48
  152. package/browser/esm/{pFBVGSvmImMMDMuJ.mjs → kVBPUUnVyZfb8pf3.mjs} +52 -52
  153. package/browser/esm/{BZkd8LNLgEd5WQXO2.mjs → lqknEt3DTma5Juxs.mjs} +69 -4
  154. package/browser/esm/mZ92wNrHVpYdli1U.mjs +182 -0
  155. package/browser/esm/{CBuulf8RrSItPZJi.mjs → pKc_RPdZPLAgvNDh.mjs} +2 -2
  156. package/{cdn/assets/D2Ls6urWeByV5W-B.js → browser/esm/pc49xtHdprXZLW2X.mjs} +1 -1
  157. package/browser/esm/px-aQ8dMjiWag_pV.mjs +167 -0
  158. package/browser/esm/qYca4mdySLkACfo1.mjs +37 -0
  159. package/browser/esm/r2Az2Yc4_qj2-sn0.mjs +398 -0
  160. package/browser/esm/{CHmSnCPoww1StSta.mjs → rY-dC3WB558TIbum.mjs} +4 -4
  161. package/browser/esm/rkTVQiYG3wd8oPom.mjs +2452 -0
  162. package/browser/esm/sDVzjXC1mS5rucF5.mjs +2447 -0
  163. package/browser/esm/sxxbiJiCMOW2Eivd.mjs +24952 -0
  164. package/{cdn/assets/BZXvEddjoz4C8y4w.js → browser/esm/vGKTE7yjY8y-XnsW.mjs} +16 -11
  165. package/{cdn/assets/BRBHACVjnV1_6VLQ.js → browser/esm/x6GcENwqoUVbd60j.mjs} +1 -1
  166. package/{cdn/assets/CsKCqLuggHhYC93k.js → browser/esm/ycmpAs4kQfeh78Pa.mjs} +1 -1
  167. package/browser/esm/ztqpWR65YYMZ3EPk.mjs +811 -0
  168. package/cdn/assets/0vqRTRN0wEzWao1c.js +522 -0
  169. package/cdn/assets/514mXPTuNvdNgw35.js +412 -0
  170. package/{browser/esm/B6bX01HNxwBooBTX2.mjs → cdn/assets/7Sg0ht_ZCMJkPurt.js} +89 -87
  171. package/cdn/assets/{CY7qR8ENX314HrrD.js → 7i4WSxDsu2ApJJ2_.js} +6 -6
  172. package/cdn/assets/AjMG7Fb9r4Fk7Hsf.js +78 -0
  173. package/{browser/esm/DJSXXWTUJGbXqLLx.mjs → cdn/assets/B00ixdmb8-O5ijEp.js} +1 -1
  174. package/cdn/assets/{ByJMrAYRARLc7uZQ.js → B0Wjc3lwtjKMwnvn.js} +27 -29
  175. package/cdn/assets/B27vTQlxbHhSQJx8.js +24953 -0
  176. package/cdn/assets/B3NWCYKXucbHhOix.js +93 -0
  177. package/{browser/esm/C7xBBqvPqat9oEft.mjs → cdn/assets/BAH_cWcQEIBKWnl6.js} +101 -55
  178. package/cdn/assets/BAdRecWK1maKGOZd.js +142 -0
  179. package/cdn/assets/BB4MW8sSYEXjPvvf.js +64 -0
  180. package/cdn/assets/BBjgqNlHm-ssbSAG.js +47 -0
  181. package/cdn/assets/BI6afPOpgNYkzIWv.js +6609 -0
  182. package/cdn/assets/{Dgt8kua8CYlMRfdw.js → BIsbcP5RXRU2XPfx.js} +2 -2
  183. package/{browser/esm/CJGlwQusOCSy9ZAb2.mjs → cdn/assets/BMlPFJ1glExv-70Z.js} +5 -5
  184. package/cdn/assets/{BrUe0MnOhxzeOngn.js → BN2d5U1nw7pRtOrn.js} +1 -1
  185. package/cdn/assets/BNsqqoZY7a4N1wWC.js +905 -0
  186. package/cdn/assets/BPrHgyAsm2Htx15h.js +67 -0
  187. package/cdn/assets/{CXDtDYyREwoFwtMJ.js → BSCja5yvevmKZPBB.js} +1 -1
  188. package/{browser/esm/MHuhAgQAA8zcnWkd.mjs → cdn/assets/BWo1N4YbK_zGU0nu.js} +1 -1
  189. package/cdn/assets/B_3Musz0q2MSZ5H-.js +799 -0
  190. package/cdn/assets/Ba8taVvLslFcKS72.js +119 -0
  191. package/cdn/assets/{B0N6rTGGJN2DZPaf.js → BeQ95CzwR65il0CK.js} +2 -2
  192. package/cdn/assets/BelX6bvQPsGuo-x3.js +7 -0
  193. package/cdn/assets/{DGWhm91XZlY1GWHe2.js → Bgbi7BFR3rN5qj51.js} +22 -21
  194. package/cdn/assets/BgyY4zVPZSXljoCZ.js +14 -0
  195. package/cdn/assets/{BjYIAiuzZbD-dk82.js → BhkeuRcx8RlLCQ5E.js} +1 -1
  196. package/cdn/assets/BlIZ30huelIxNo6S.js +91 -0
  197. package/cdn/assets/BlPn_DXaEXOPxMxC.js +540 -0
  198. package/cdn/assets/BoFx07POTorOb5g-.js +7393 -0
  199. package/cdn/assets/{hClmI7sWeaBbHo3W2.js → BpZ7P0CO148rR4zW.js} +24 -23
  200. package/cdn/assets/BsTFy_iJXJYmaO3Z.js +763 -0
  201. package/cdn/assets/{DiKc6jzGM1isrN02.js → Bsn-tUx172sEG2kR.js} +59 -47
  202. package/{browser/esm/CBC_MJL6Bwk7bzQz.mjs → cdn/assets/BtGmrIqU9W1L8zfZ.js} +1 -1
  203. package/cdn/assets/BuYS_ZjSlcvWZ1JC.js +8035 -0
  204. package/cdn/assets/BvlfKrfrDhE9Jw4d.js +598 -0
  205. package/cdn/assets/BwOxnbR61WFJwy0A.js +607 -0
  206. package/cdn/assets/BxqXOiOyI_XiOmvN.js +156 -0
  207. package/cdn/assets/{Cd8G1nX1dKzp-mho.js → ByUcqyCNfqi5Mm7w.js} +2 -2
  208. package/{browser/esm/D8zyGG6yt4CsyA8K.mjs → cdn/assets/BzbP4jaN13wC9aSi.js} +58 -55
  209. package/cdn/assets/{5LJ1sC7IPn109Ien.js → C-0viTjg1dT2F-sk.js} +2 -2
  210. package/cdn/assets/C0CeCYdLWLjySEFe.js +123 -0
  211. package/cdn/assets/{DjfBSoaKM-vtbeqT.js → C32co-XulWTkEKrW.js} +2 -2
  212. package/cdn/assets/{DnMUizHKSRwWpO_72.js → C3r_9RqlWrEmlXZ1.js} +37 -3
  213. package/cdn/assets/{B3tC7wY_kUGXf5sb.js → C5EKgE9Owsc_juw-.js} +1 -1
  214. package/cdn/assets/C6INLvBy8kdzFpsX.js +2447 -0
  215. package/cdn/assets/C7fu6LrSMBlHqwUy.js +46 -0
  216. package/{browser/esm/BzktrYJH7SQ9GyUI.mjs → cdn/assets/C9NyIoUahFiyRCxP.js} +2 -2
  217. package/{browser/esm/D5BuXc-kVnr6Xiae.mjs → cdn/assets/CBdNC7BOfc5TewHU.js} +1 -1
  218. package/cdn/assets/{DJHOKENCVOJMx3aE2.js → CCvBdPu7W2ZF6A9J.js} +9 -9
  219. package/{browser/esm/DmqS0kz7jvlOw3qr.mjs → cdn/assets/CDAYVaQYywqaxg4O.js} +28 -13
  220. package/cdn/assets/CEYyp6Qrr_IopxpL.js +22597 -0
  221. package/cdn/assets/CFBgmXap8kmumhoz.js +622 -0
  222. package/{browser/esm/DtkqR-Hu7K4agnCs.mjs → cdn/assets/CFvKDDbrL3wpXnQH.js} +1 -1
  223. package/{browser/esm/BBhB25AlKEzdoI0V.mjs → cdn/assets/CHMqT9DzYKTxPfP6.js} +2 -2
  224. package/cdn/assets/CILUMtSddGz7WXEv.js +240 -0
  225. package/cdn/assets/{BynqRVXFRplO7XgC.js → CIyaijfp6itgRpFM.js} +95 -87
  226. package/cdn/assets/{DpNYiOK112bFC3KK2.js → CL6Tgu_rUO6G-fyq.js} +183 -10
  227. package/cdn/assets/CMVTwWHsRgyfSEDM.js +300 -0
  228. package/{browser/esm/BetL7yI63lEdQ0gM.mjs → cdn/assets/CMxbiQ5J79M3n1tk.js} +604 -405
  229. package/cdn/assets/COMOqucXq7X1vi0P.js +230 -0
  230. package/{browser/esm/B4fSPDN923nqCDVE2.mjs → cdn/assets/CQOyeq_-pg3CM-uA.js} +6 -7
  231. package/cdn/assets/{DaX0_AkJxkaUnNT7.js → CRXSrbGNABtzf532.js} +141 -126
  232. package/cdn/assets/{g8dDbkwbYjhKWJM2.js → CSEMxasVyGCekxKf.js} +6 -7
  233. package/cdn/assets/CSIZpJClc66_20kP.js +849 -0
  234. package/cdn/assets/CTI-mCJbJzitJZwj.js +25 -0
  235. package/cdn/assets/{DrKUGkrCTKZHu8XC.js → CTdFZ_I-41Vr6Dy4.js} +1 -1
  236. package/cdn/assets/CTvPIYWTcjwlJeEA.js +237 -0
  237. package/cdn/assets/CU5cKipVT1X8Xz7F.js +156 -0
  238. package/cdn/assets/CVcCUfSRsiZ1-6hs.js +119 -0
  239. package/cdn/assets/CWJzHmEgahdOfNjH.js +527 -0
  240. package/cdn/assets/CZOJogyZqMfUxcXj.js +1141 -0
  241. package/{browser/esm/DER7-kADXFnTmK-32.mjs → cdn/assets/CakrxSS_RXtKmcUX.js} +123 -94
  242. package/cdn/assets/{Bj8bWbLg1IY965tK.js → CbTN0q6XnYGJqyEp.js} +2215 -2029
  243. package/cdn/assets/{DQhvG3cP0HPB6giA2.js → Cfg4Dtndwurxv9LM.js} +8 -8
  244. package/{browser/esm/BgwHVPZp494SgQ0d2.mjs → cdn/assets/ChAKLV5zrGAHAof2.js} +44 -42
  245. package/cdn/assets/{BO2NRW9sjHGE9tg-2.js → CsrTRThObSryov1b.js} +182 -132
  246. package/cdn/assets/Cv5PLuhEmh5IDHjb.js +75 -0
  247. package/cdn/assets/Cw-4uoMuq_m7ziA3.js +36 -0
  248. package/cdn/assets/Cw7AJWd0S2sjRmr6.js +6309 -0
  249. package/cdn/assets/CwqRA5h1u92Cyit-.js +7 -0
  250. package/cdn/assets/Cy00y9b9j17Txyv1.js +466 -0
  251. package/cdn/assets/{CnfGgjuCEyX-PYs_2.js → D-bNmX0QsA8SuT0m.js} +33 -32
  252. package/{browser/esm/PAu9erpoOTNzgNbN.mjs → cdn/assets/D-yz3V2UC54rwctD.js} +16 -11
  253. package/cdn/assets/D32D_biNXRCZ24vG.js +87 -0
  254. package/cdn/assets/D8DghdqjOtBzO2Wx.js +35 -0
  255. package/cdn/assets/DAE3Kv0Vs0VuBecT.js +32 -0
  256. package/cdn/assets/DCnWyVXikb_8Dat3.js +61 -0
  257. package/cdn/assets/DHH_uKVzQ_kRYO2N.js +57 -0
  258. package/cdn/assets/DHugYwX4_ZyqGn-C.js +1947 -0
  259. package/cdn/assets/DJqj66SnUcx0QmSN.js +15 -0
  260. package/cdn/assets/{DM4g0nYgYXgI44dL.js → DNaPo7BQu6hr1fWq.js} +1 -1
  261. package/cdn/assets/DOHh3pUXxMM09UY5.js +3604 -0
  262. package/cdn/assets/DONxZZT2Iwu7psS5.js +27 -0
  263. package/{browser/esm/DRAYZ0SGlbCLkftR2.mjs → cdn/assets/DQEjvIGMgEkiaP6J.js} +1 -1
  264. package/cdn/assets/{Ykh10IaXTKA2XWot2.js → DQIRFXG4MveFkK3I.js} +1 -1
  265. package/cdn/assets/DQjxp9lDP9DzP8ah.js +357 -0
  266. package/{browser/esm/DJk14sSSnSHiEXZ72.mjs → cdn/assets/DRm1R4uVOkaMfXNI.js} +51 -11
  267. package/cdn/assets/DSXJHEORGmMQX_Mb.js +8391 -0
  268. package/cdn/assets/DSviq1TNoiIAGW7W.js +32 -0
  269. package/cdn/assets/{BxecIrskOMQZB-Xc.js → DVpi1vC8ixXvUQG_.js} +3 -3
  270. package/cdn/assets/{esX6dx06TUUL-cRt.js → DWgp4t9N9u0eWthH.js} +1 -1
  271. package/cdn/assets/{DLArQtAbWAarI8od.js → DXo8mR6t5HGsmTcu.js} +1 -1
  272. package/cdn/assets/DYvBgX17ZerZSHEJ.js +300 -0
  273. package/cdn/assets/DZRm4H75lnEtOG8e.js +260 -0
  274. package/cdn/assets/D_pMOq6FdH4RSBLc.js +3364 -0
  275. package/cdn/assets/{Bc2Dp6W4U_22cv7c2.js → Dc2ZwgbIEgYWwAsF.js} +1 -1
  276. package/cdn/assets/DckmFyHxGX4Y1gOq.js +70 -0
  277. package/cdn/assets/{D-tQc4bi3FzGVnFg.js → De2z8LdHaWRFiR5T.js} +179 -202
  278. package/{browser/esm/BGWyNjrM55ce-D1o2.mjs → cdn/assets/DeUXRggj8Oz9ru_i.js} +2 -2
  279. package/{browser/esm/CmYCYFWjq9KP6xw72.mjs → cdn/assets/DfESVLC8CAi8m8A7.js} +6 -6
  280. package/cdn/assets/DicTo_3G-KZyWDiE.js +1084 -0
  281. package/cdn/assets/{hsy1zALC1oNNm5Sf.js → DjdkGy-EI1kSo226.js} +7 -5
  282. package/cdn/assets/DjtXfgbmXjUAoG0y.js +58 -0
  283. package/cdn/assets/DlpgIJxNq2V4gdDq.js +74 -0
  284. package/cdn/assets/{Bh4hZt6639QZusIG.js → Dp-GJXOMz_b8qAxD.js} +2 -2
  285. package/cdn/assets/DqBj-9o7UdXu4qhb.js +33 -0
  286. package/{browser/esm/FVJ1akngxeMiYwPa.mjs → cdn/assets/DrI_S0A9TQvriTua.js} +1 -1
  287. package/cdn/assets/DuAbY54w5gJpQgss.js +84250 -0
  288. package/cdn/assets/{Bjx-9lUaScF5-Hki.js → Dv8aQFTTaQBJKDDk.js} +2 -5
  289. package/cdn/assets/DviEoeWW0EvDg1hr.js +149 -0
  290. package/{browser/esm/D4aK0uTRJQpM6392.mjs → cdn/assets/DxcRLd7wmBGDgJsA.js} +1 -1
  291. package/cdn/assets/DxisV9_27l_WU-nk.js +21 -0
  292. package/cdn/assets/{DENx9Ts-f8adXw3Y.js → Dy44qJVkwNseMG-3.js} +1 -1
  293. package/cdn/assets/ENtt4kmaU9mJfVEp.js +236 -0
  294. package/cdn/assets/{C4vqrW3EmJDy1otX.js → FO1Jezau486fH4kN.js} +7 -6
  295. package/cdn/assets/FjNOhkR7-JAIaRP6.js +19 -0
  296. package/{browser/esm/BmTSjuGI87QqMA-a.mjs → cdn/assets/G5z0uVlyF6CLw_PA.js} +179 -202
  297. package/cdn/assets/H-JnJQMcZQbpvjdb.js +2706 -0
  298. package/cdn/assets/J3hutJxqQiHENpIe.js +392 -0
  299. package/cdn/assets/J9i3r1fU0H10b2hX.js +1001 -0
  300. package/cdn/assets/{PzCXbVRf1jOHVOAw.js → PtGiIWFBYP-ujLmf.js} +1 -1
  301. package/cdn/assets/PzWqv-oXxEuzKdaT.js +484 -0
  302. package/cdn/assets/QJ4AkDD269D1MzmI.js +89 -0
  303. package/cdn/assets/{CTwLETvNO4KeXbkK.js → RfHd1JATBlcsfLPv.js} +5 -5
  304. package/{browser/esm/Bce8ZTUCpXr5Y_zl.mjs → cdn/assets/SNze-adFJwKuGSQW.js} +48 -2
  305. package/cdn/assets/UTZcodQydbuMfCOS.js +171 -0
  306. package/{browser/esm/DSWdYe7SDB5cYWo5.mjs → cdn/assets/VCiu_neIjCTg2NUa.js} +998 -1006
  307. package/{browser/esm/BGAXiHOiX_PZ1ww12.mjs → cdn/assets/VwGokBaawZfZiV2X.js} +1 -1
  308. package/cdn/assets/W1d6GQyySAHrtjEu.js +3563 -0
  309. package/cdn/assets/ZSYS1J3uR7UQuHwZ.js +217 -0
  310. package/{browser/esm/BPAEbeXV75XIAS4n2.mjs → cdn/assets/ZxsFYopF0_WWqw4Q.js} +1 -1
  311. package/cdn/assets/{L6LjzOx1G9Idjtxa.js → _t0Mx-mUFVtmVNkU.js} +2 -2
  312. package/cdn/assets/aHTKr1ijZ6bRi3Zg.js +33 -0
  313. package/cdn/assets/anQDUZhHMDPi1eha.js +812 -0
  314. package/cdn/assets/{Dr1U0I01_KIa9vgR2.js → dn69mDhY7Xcc91kF.js} +20 -19
  315. package/cdn/assets/fm3mUdTDo-STB36M.js +4749 -0
  316. package/cdn/assets/gpQ4FdJMbIScKnS_.js +400 -0
  317. package/cdn/assets/{DeFts-aGqB-RDuV1.js → hg8WYI0Yy4WPPPoP.js} +28 -27
  318. package/{browser/esm/DOsKUeLPwFIdzQv32.mjs → cdn/assets/i0P63Wd0RRlgJotb.js} +1 -1
  319. package/cdn/assets/lWY3TbG2NDscy9He.js +72 -0
  320. package/cdn/assets/{BZkd8LNLgEd5WQXO.js → lqknEt3DTma5Juxs.js} +69 -4
  321. package/cdn/assets/mK8HcIZyXkOTvL6E.js +2453 -0
  322. package/{browser/esm/D2Ls6urWeByV5W-B2.mjs → cdn/assets/pc49xtHdprXZLW2X.js} +1 -1
  323. package/cdn/assets/px-aQ8dMjiWag_pV.js +167 -0
  324. package/cdn/assets/qYca4mdySLkACfo1.js +37 -0
  325. package/{browser/esm/DHQcJqD-EtJ0Efug2.mjs → cdn/assets/w5IQWbJETgHhqMsY.js} +33 -31
  326. package/cdn/assets/wM7DzeOpoEGBVDBe.js +441 -0
  327. package/{browser/esm/BRBHACVjnV1_6VLQ2.mjs → cdn/assets/x6GcENwqoUVbd60j.js} +1 -1
  328. package/cdn/assets/xlXDq-qoj7eOE6_T.js +5153 -0
  329. package/{browser/esm/CsKCqLuggHhYC93k2.mjs → cdn/assets/ycmpAs4kQfeh78Pa.js} +1 -1
  330. package/cdn/index.js +2 -2
  331. package/package.json +13 -14
  332. package/browser/cjs/1XrWGMP3GmsQOMIX.cjs +0 -1
  333. package/browser/cjs/49_x589Na12sizKK2.cjs +0 -1
  334. package/browser/cjs/4nReftSsKWmnRdtf2.cjs +0 -1
  335. package/browser/cjs/507hQYooKKjnRzsZ2.cjs +0 -1
  336. package/browser/cjs/B4JJfKSI4ppwU8552.cjs +0 -1
  337. package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +0 -1
  338. package/browser/cjs/BAxVLKkxFgI6cXnR2.cjs +0 -1
  339. package/browser/cjs/BClFnd-voK5qaz1I.cjs +0 -88
  340. package/browser/cjs/BEJFcqVMDMKOvs11.cjs +0 -1
  341. package/browser/cjs/BF-38Z7Z0FZOPl192.cjs +0 -1
  342. package/browser/cjs/BF14ZEAnaqxXroSj.cjs +0 -1
  343. package/browser/cjs/BFdq8CHyR6FQvmQA2.cjs +0 -1
  344. package/browser/cjs/BK0SCfN_VZYqBxoQ2.cjs +0 -1
  345. package/browser/cjs/BKXFdLiztqEHIjQ_2.cjs +0 -1
  346. package/browser/cjs/BVN0uo1XwTCtE2mh.cjs +0 -7
  347. package/browser/cjs/BWDfauDHqB6U_2ka2.cjs +0 -1
  348. package/browser/cjs/B_WV3e3yexp3dKaz.cjs +0 -9
  349. package/browser/cjs/BbEwESVyRYXzMlW7.cjs +0 -5
  350. package/browser/cjs/BjgiE9MBDkKiRL6q.cjs +0 -3
  351. package/browser/cjs/BnccBYHCCq9TGFx4.cjs +0 -8
  352. package/browser/cjs/Btc0Nzu40VYOpzLX2.cjs +0 -1
  353. package/browser/cjs/BvG8N7G_8CXIAlT-.cjs +0 -1
  354. package/browser/cjs/BwLx9ix5Sq7suAYP2.cjs +0 -1
  355. package/browser/cjs/Byl4bQWpLnjthChn2.cjs +0 -7
  356. package/browser/cjs/BzsAbsb35hYT3xUc.cjs +0 -5
  357. package/browser/cjs/C-bW8lKUTFFUVap4.cjs +0 -1
  358. package/browser/cjs/C0hGnOYkvrwxaGrw.cjs +0 -1
  359. package/browser/cjs/C2uDl8VIJqh58YF_2.cjs +0 -1
  360. package/browser/cjs/C7GpcB_YgM-RLa2P.cjs +0 -1
  361. package/browser/cjs/C8GZf3UAOhfisYCs.cjs +0 -1
  362. package/browser/cjs/C9C-pr-T_ThweQX9.cjs +0 -1
  363. package/browser/cjs/C9L-xibuJ434Mqqq2.cjs +0 -1
  364. package/browser/cjs/CEXs4eRDOv4EjbSw2.cjs +0 -1
  365. package/browser/cjs/CEpXnHhrczUmIwMa2.cjs +0 -1
  366. package/browser/cjs/CHFOXPbNUaeZbrXn.cjs +0 -1
  367. package/browser/cjs/CHMgm0vAbEBS1mVW.cjs +0 -1
  368. package/browser/cjs/CJYewYJ5Z3iojl7J.cjs +0 -1
  369. package/browser/cjs/CLXzYSmhCHV5LQh7.cjs +0 -1
  370. package/browser/cjs/CN-dCAHVcxuMSyFz.cjs +0 -1
  371. package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
  372. package/browser/cjs/CRx1WvmgBjT8WVyB2.cjs +0 -1
  373. package/browser/cjs/CV4KQsHluMqo1I2Q2.cjs +0 -1
  374. package/browser/cjs/CW-b31_-r-_raT8Y.cjs +0 -1
  375. package/browser/cjs/CXlzsh_WHCOsErJ12.cjs +0 -1
  376. package/browser/cjs/CZfNBCd62H_Jpkhl.cjs +0 -12
  377. package/browser/cjs/C_7w8EJZpHw8ueuq.cjs +0 -1
  378. package/browser/cjs/C_IEgjM-hSJCv6Gm.cjs +0 -1
  379. package/browser/cjs/CbLXP9WY38wTcGn5.cjs +0 -10
  380. package/browser/cjs/CeF0DZ-k4DB8M47I.cjs +0 -1
  381. package/browser/cjs/Ck7Tc5npWk73wrF3.cjs +0 -57
  382. package/browser/cjs/Clu7XiAsCB48GDXN.cjs +0 -1
  383. package/browser/cjs/CnZfa45XxA-9Jhmp.cjs +0 -1
  384. package/browser/cjs/CnjaTz8HJXStwuH8.cjs +0 -1
  385. package/browser/cjs/CoiPEZabJyiXxLta.cjs +0 -1
  386. package/browser/cjs/CpJJh4UnFl1_qFui.cjs +0 -1
  387. package/browser/cjs/CrZlUtdX1h2RUnCP.cjs +0 -1
  388. package/browser/cjs/Cty5pi0fwToP1GWe.cjs +0 -7
  389. package/browser/cjs/Cu0UCwSpRK4OnCuP.cjs +0 -1
  390. package/browser/cjs/CxWeFfNAUvhHe9F-.cjs +0 -21
  391. package/browser/cjs/D-o-mlG9tYSuZrvy2.cjs +0 -1
  392. package/browser/cjs/D8-KovdJ0LjxqCe2.cjs +0 -1
  393. package/browser/cjs/DAA0zpvkrMOLDPxr.cjs +0 -1
  394. package/browser/cjs/DAXgAEDtRrsWAePT.cjs +0 -1
  395. package/browser/cjs/DCIlWcGDrp-5PDoA2.cjs +0 -1
  396. package/browser/cjs/DDPxHIqx8aIbqTRE.cjs +0 -1
  397. package/browser/cjs/DDnGLOLTqLFsdUDS.cjs +0 -1
  398. package/browser/cjs/DEOu_cHJ1FfTA9R_2.cjs +0 -1
  399. package/browser/cjs/DG-AY_xO8RKHtEBE.cjs +0 -2
  400. package/browser/cjs/DG2kqsWRUtVugjay.cjs +0 -1
  401. package/browser/cjs/DIbdDzNf_3S2RYZN.cjs +0 -1
  402. package/browser/cjs/DLYEQZzAGuSAmJsp.cjs +0 -6
  403. package/browser/cjs/DM7-R_ltoLbA9jde2.cjs +0 -1
  404. package/browser/cjs/DMp9wql2kbZKAbGe.cjs +0 -3
  405. package/browser/cjs/DNCC-QNp2I7saV-I.cjs +0 -1
  406. package/browser/cjs/DNKyaSruDogoBd2H.cjs +0 -1
  407. package/browser/cjs/DQTBgNqDHInvxrwS.cjs +0 -1
  408. package/browser/cjs/DYqvGm5rx1DB53p7.cjs +0 -1
  409. package/browser/cjs/DZSvmqU8nRas1uz62.cjs +0 -1
  410. package/browser/cjs/DcHxh5QxfVitzdhv.cjs +0 -1
  411. package/browser/cjs/DgGGzl7jq3i7Cqfi.cjs +0 -1
  412. package/browser/cjs/Dkgu60euhL6wPoYa2.cjs +0 -1
  413. package/browser/cjs/DsFZgtSQpC75d1M02.cjs +0 -1
  414. package/browser/cjs/DsgqbxMOVQmAFSDy2.cjs +0 -1
  415. package/browser/cjs/DtaFdoK4CppKRF6F2.cjs +0 -20
  416. package/browser/cjs/Dtc_8P-koQRmNT2s.cjs +0 -33
  417. package/browser/cjs/Du4jBiFxRIF1OjD42.cjs +0 -1
  418. package/browser/cjs/Dx79LP1-YCQg8B87.cjs +0 -1
  419. package/browser/cjs/EeOVMRq7TuptFKTc2.cjs +0 -1
  420. package/browser/cjs/FUM_3mQlC-6WPjkT.cjs +0 -4
  421. package/browser/cjs/IbciPMJP2Pam3ERm.cjs +0 -1
  422. package/browser/cjs/J7LQgueGGNUE9emR.cjs +0 -1
  423. package/browser/cjs/JfM6P_qoQQTWakZf2.cjs +0 -1
  424. package/browser/cjs/Kvn916ebqGc4t6hv2.cjs +0 -1
  425. package/browser/cjs/M19oMY91yZxf2WAR.cjs +0 -1
  426. package/browser/cjs/NcNz8RfT5V889CMT.cjs +0 -10
  427. package/browser/cjs/NzAMMcPT7SETmqPg.cjs +0 -2
  428. package/browser/cjs/QK9BfdSZPLmyRpGi2.cjs +0 -1
  429. package/browser/cjs/X1LnR885SNQaK5HZ.cjs +0 -1
  430. package/browser/cjs/Y78-VwYSNffwXRVz2.cjs +0 -2
  431. package/browser/cjs/Ytzw6iUYx5f19wfK.cjs +0 -9
  432. package/browser/cjs/aONv0Ys3C8xmnaR8.cjs +0 -1
  433. package/browser/cjs/bM25C5avKgBAJVfk2.cjs +0 -1
  434. package/browser/cjs/bpcQTcfzGVBK-rfT2.cjs +0 -1
  435. package/browser/cjs/fqTQ_p3ehzUvc1tF2.cjs +0 -1
  436. package/browser/cjs/h3dw1jAp2J5Pu4p32.cjs +0 -1
  437. package/browser/cjs/index.cjs +0 -79
  438. package/browser/cjs/iyvcAhhnDFxkR8tW.cjs +0 -1
  439. package/browser/cjs/jIxFDc3EQDDXisAC2.cjs +0 -1
  440. package/browser/cjs/jev6VGWTdgEgm4Yk2.cjs +0 -1
  441. package/browser/cjs/kqP-W5qRIy-d-ChZ.cjs +0 -1
  442. package/browser/cjs/lEQC21-Sk4lwHy2r2.cjs +0 -1
  443. package/browser/cjs/mXzhcays1ok40iiU.cjs +0 -1
  444. package/browser/cjs/n4ZQ0-3uSrEsInbg.cjs +0 -1
  445. package/browser/cjs/ppSJKdLn646BZOzg.cjs +0 -1
  446. package/browser/cjs/sFD2bsTPq558FCMx.cjs +0 -126
  447. package/browser/cjs/stXrcKZOIHl0fq5U2.cjs +0 -2
  448. package/browser/cjs/xQ6-wbTw5UzZUM1Y.cjs +0 -1
  449. package/browser/cjs/zEytED4Eleo5DVvS.cjs +0 -1
  450. package/browser/cjs/z_rZE1OHFPpdGBh42.cjs +0 -1
  451. package/browser/esm/-9NsA_4pZqcEQBX7.mjs +0 -383
  452. package/browser/esm/B-dSKzg5shPDd733.mjs +0 -25
  453. package/browser/esm/BPwpFe7c1-F62aAU.mjs +0 -518
  454. package/browser/esm/BT2mYkpZGrhWovkv2.mjs +0 -238
  455. package/browser/esm/BUKNpzG26V0YaAzW.mjs +0 -219
  456. package/browser/esm/BaIe3fLfPLw3FbYP2.mjs +0 -1149
  457. package/browser/esm/BgNWvKfVoVgVVDB4.mjs +0 -134
  458. package/browser/esm/Bj3gyDL2ZJUDcxt72.mjs +0 -82
  459. package/browser/esm/BkBT2LB95lonIiBu.mjs +0 -152
  460. package/browser/esm/BqMvXD8dX4ksYjnj.mjs +0 -53
  461. package/browser/esm/Bz3-FDGVU67Izdnv2.mjs +0 -106
  462. package/browser/esm/C3dXBjR3SrDCdJlm.mjs +0 -105
  463. package/browser/esm/CElACTFuqPAnCAMJ.mjs +0 -99
  464. package/browser/esm/CFVzVz9BCRBowBea.mjs +0 -6104
  465. package/browser/esm/CFtsbobCiLpZIzCh.mjs +0 -34
  466. package/browser/esm/CJ-lOo2cXlcYrg2P.mjs +0 -8255
  467. package/browser/esm/CRsnKeHAnKrWvuG52.mjs +0 -6713
  468. package/browser/esm/CbJ_xQftC08KrH3E2.mjs +0 -20
  469. package/browser/esm/CfjG7gHJ4oN60Clj.mjs +0 -4423
  470. package/browser/esm/CpEgh9EOkeMvwAuj.mjs +0 -304
  471. package/browser/esm/CxKAnYBWCYMkUpnr.mjs +0 -824
  472. package/browser/esm/Cye91DfKIFwRdDpF.mjs +0 -224
  473. package/browser/esm/DFQGftDcmDwUGxV8.mjs +0 -27
  474. package/browser/esm/DGfzktq0BrIwcb8j.mjs +0 -7813
  475. package/browser/esm/D_8B8jIlshd3eTIO2.mjs +0 -471
  476. package/browser/esm/DdaO25i-WWFSh1W0.mjs +0 -3188
  477. package/browser/esm/DdtDlBp6KJZjL28o.mjs +0 -4745
  478. package/browser/esm/DhW7Cqyuxk7D6zsW.mjs +0 -509
  479. package/browser/esm/DhgwMDb052opCiAA.mjs +0 -11273
  480. package/browser/esm/DimkHq0_x-d4uNdV.mjs +0 -50758
  481. package/browser/esm/DnCkPg9-xb3RvxD-.mjs +0 -44
  482. package/browser/esm/DuJ_gK9f35IbKDd6.mjs +0 -3651
  483. package/browser/esm/Duo6t8_BzIiBDrFm.mjs +0 -28435
  484. package/browser/esm/DxxlSejA2S6YUPWD.mjs +0 -2211
  485. package/browser/esm/DygUxASTETZM60uN2.mjs +0 -47
  486. package/browser/esm/FAHIw2t7_M_rvRio.mjs +0 -149
  487. package/browser/esm/HFqcMD9nTL0jdLxT.mjs +0 -15
  488. package/browser/esm/N-koparnupMSl92y.mjs +0 -2687
  489. package/browser/esm/O982fBwJ80FSdhad.mjs +0 -615
  490. package/browser/esm/evPbHV86yom22yGf2.mjs +0 -16301
  491. package/browser/esm/ohVj-y1gCC9PEHJI.mjs +0 -87
  492. package/browser/esm/s4trFf5sOSGNEzr3.mjs +0 -235
  493. package/cdn/assets/6L6HfOFw1xzxXtf22.js +0 -2211
  494. package/cdn/assets/B-dSKzg5shPDd733.js +0 -25
  495. package/cdn/assets/B2BvBxjz3Kfii_Gn2.js +0 -6715
  496. package/cdn/assets/B3ZyfwskutLZMYfl2.js +0 -44
  497. package/cdn/assets/B4492m5zRjz4JWIo2.js +0 -4745
  498. package/cdn/assets/B6Y_HasaiihQLVYz2.js +0 -3188
  499. package/cdn/assets/B8ok93z6wOu1Mo5H.js +0 -27
  500. package/cdn/assets/BIPjogMyMmLRly43.js +0 -106
  501. package/cdn/assets/BOTU30yJHbaNehFS.js +0 -176
  502. package/cdn/assets/B_U_UpQXdbjNRthb.js +0 -24
  503. package/cdn/assets/BaIe3fLfPLw3FbYP2.js +0 -1149
  504. package/cdn/assets/BdhFhDEa7Xed6dFE.js +0 -28436
  505. package/cdn/assets/BdmCBWTVHb7KuHxO2.js +0 -2687
  506. package/cdn/assets/Bfd3T36ocASPZddR.js +0 -3651
  507. package/cdn/assets/BjN8kU7URKZwGlmk2.js +0 -4423
  508. package/cdn/assets/BouCHi6QnBrUDYkx.js +0 -16301
  509. package/cdn/assets/CDqMmEdh_CPaFCCi2.js +0 -2199
  510. package/cdn/assets/CLhSKL0Xdm8miSTy.js +0 -34
  511. package/cdn/assets/CSkSOhGT8E29E2Nh2.js +0 -99
  512. package/cdn/assets/CXrcgTVB77CopjOJ.js +0 -518
  513. package/cdn/assets/Cb71rZAQvCk3wnfp.js +0 -220
  514. package/cdn/assets/CbJ_xQftC08KrH3E.js +0 -20
  515. package/cdn/assets/CblzazoiTtSuaAkj.js +0 -225
  516. package/cdn/assets/CdPxVRKpCOqCDHI8.js +0 -824
  517. package/cdn/assets/CimYGZTVXcjbjrBU2.js +0 -83
  518. package/cdn/assets/CpEgh9EOkeMvwAuj.js +0 -304
  519. package/cdn/assets/D57KcDfTbBzf_NGr.js +0 -150
  520. package/cdn/assets/DEFEOS3OuA23llF92.js +0 -472
  521. package/cdn/assets/DEyeWdXLwDRo2yYf2.js +0 -107
  522. package/cdn/assets/DW2yQm-sEcHogX7E.js +0 -8258
  523. package/cdn/assets/Dhq9e6LCpmlIkFod.js +0 -220
  524. package/cdn/assets/DjS4iUli-T3uuUfK.js +0 -24
  525. package/cdn/assets/DjS4iUli-T3uuUfK2.js +0 -24
  526. package/cdn/assets/DlLXCXDokJ72EW-E.js +0 -236
  527. package/cdn/assets/DoJfPxuL3zziG4p62.js +0 -134
  528. package/cdn/assets/Dq7WxMef5CTJ47QI2.js +0 -48
  529. package/cdn/assets/HFqcMD9nTL0jdLxT2.js +0 -15
  530. package/cdn/assets/HeznPoDlSj26Q4lq.js +0 -11274
  531. package/cdn/assets/JL1xk8XqkuTOA_as2.js +0 -239
  532. package/cdn/assets/NZO3-fDBtqhmCsbB2.js +0 -50758
  533. package/cdn/assets/Wb48SedqaKMZnxym.js +0 -7404
  534. package/cdn/assets/Wsgx1I_j1chJ6hwn.js +0 -152
  535. package/cdn/assets/XSUr59k0gaFIS1Qf2.js +0 -53
  536. package/cdn/assets/llvXNxZaCMnYqvSm.js +0 -6104
  537. package/cdn/assets/omgRvCRxe7suvog8.js +0 -510
  538. package/cdn/assets/xMskoOI2CK9-AmBF2.js +0 -44
  539. package/cdn/assets/zrS_ERBQML_OXJ4J.js +0 -87
@@ -1 +0,0 @@
1
- const e=require("./BnccBYHCCq9TGFx4.cjs"),t=require("./DDPxHIqx8aIbqTRE.cjs"),n=require("./Dtc_8P-koQRmNT2s.cjs"),r=require("./BjgiE9MBDkKiRL6q.cjs"),i=require("./CHMgm0vAbEBS1mVW.cjs"),a=require("./NzAMMcPT7SETmqPg.cjs"),o=require("./kqP-W5qRIy-d-ChZ.cjs");var s=class{constructor(e){this.list=e}get length(){return this.list.length}item(e){return this.list[e]}forEach(e,t){let n=this.list,r=n.length;for(let t=0;t<r;t++)e(n[t],t,this)}entries(){return this.list.entries()}keys(){return this.list.keys()}values(){return this.list.values()}[Symbol.iterator](){return this.list.values()}},c=e=>!0===e||e===`1`||e===`on`||e===`true`||!1!==e&&e!==`0`&&e!==`off`&&e!==`false`&&null,l=e=>{let t=parseInt(e);return isNaN(t)?null:t},u=e=>{let t=parseFloat(e);return isNaN(t)?null:t},d=new Map,f=class{constructor(t,n,r,i,a,o=null,s=e.A.EmptyObject){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):(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)}getRef(e,t=!1){return this._getRef?.(e,this._fileLocation,t)??null}getRelationships(){return this._getRefs?.(this._fileLocation)??d}getPath(){return this.currentPath}getFileLocation(){return this._fileLocation}getElemRoot(){return this.elemRoot}getJsonRoot(){return this.jsonRoot}warn(e){this._onWarning?this._onWarning(e):this._parent?this._parent?.warn?.(e):console.warn(e)}serializeElement(e){return this._serializeElement?.(e)??null}addPerson(e){return typeof e==`string`&&(e={displayName:e}),this._addPerson?this._addPerson(e):this._parent?this._parent?._addPerson?.(e)??null:null}getVisitorParamsState(){return this.sharedShared.getVisitorParamsState()}evaluate(e,t){if(!e)return t;let n=[t],r=e.split(`/`),i=r.length;for(let e=0;e<i;e++){let t=r[e];if(t===``||t===`.`)continue;let a=[],o=(t===`*`||t===`**`)&&e!==i-1;for(let i of n)if(i)if(o){let t=r[e+1];t&&t!==``&&t!==`.`&&(this._findDescendants(i,t,a),e++)}else if(t===`*`||t===`**`){if(!i.childNodes)continue;let e=i.childNodes,t=e.length;for(let n=0;n<t;n++){let t=e[n];t.nodeType===1&&a.push(t)}}else{if(!i.childNodes)continue;let e=i.childNodes,n=e.length;for(let r=0;r<n;r++){let n=e[r];if(n.nodeType!==1)continue;let i=n;this._matchesElementName(i,t)&&a.push(i)}}if(n=a,n.length===0)return null}return n.length===1?n[0]:n.length===0?null:new s(n)}_matchesElementName(e,t){return t.includes(`:`)?(e.tagName||e.nodeName)===t:e.localName===t}_findDescendants(e,t,n){if(!e||!e.childNodes)return;let r=e.childNodes,i=r.length;for(let e=0;e<i;e++){let i=r[e];if(i.nodeType!==1)continue;let a=i;this._matchesElementName(a,t)&&n.push(a),this._findDescendants(a,t,n)}}getFromPath(t,n){return e.A.getFromPath(t,n)}setToPath(t,n,r){return e.A.setToPath(t,n,r)}getValAttrAsString(e,t){let n=this.evaluate(e,t);return n&&n.hasAttribute(`val`)?n.getAttribute(`val`)??null:null}getValAttrAsBoolean(e,t,n=!1){let r=this.evaluate(e,t);if(!r)return null;let i=r.hasAttribute(`val`)?r.getAttribute(`val`):void 0;return i==null?n:i===`1`||i===`on`||i===`true`||i!==`0`&&i!==`off`&&i!==`false`&&n}getValAttrAsInteger(e,t){let n=this.evaluate(e,t);return n&&n.hasAttribute(`val`)?parseInt(n.getAttribute(`val`))??null:null}getValAttrAsFloat(e,t){let n=this.evaluate(e,t);return n&&n.hasAttribute(`val`)?parseFloat(n.getAttribute(`val`))??null:null}get BOOLEAN_COPY(){return c}get INT_COPY(){return l}get FLOAT_COPY(){return u}copyFromAttribute(e,t,n,r=t,i=null){if(!e||!n||!e.hasAttribute(t))return;let a=e.getAttribute(t);if(i){if(Array.isArray(i)){let e=i.length;for(let t=0;t<e;t++)if(a==null||(a=i[t](a),a==null))return}else if(a==null||(a=i(a),a==null))return}this.setToPath(n,r,a)}},p=i.r({isBlank:()=>y,isNotBlank:()=>b,length:()=>x,parseRotation:()=>m,parseValAttrAsBoolean:()=>g,parseValAttrAsFloat:()=>v,parseValAttrAsInteger:()=>_,parseValAttrAsString:()=>h}),m=(t,n)=>{if(!t||!t.hasAttribute(`rot`))return;let r=t.getAttribute(`rot`),i=e.A.roundAccurately(o.f(r),2);i!==-1e3&&(n.rotation=i)},h=(e,t,n,r,i)=>{let a=e.getValAttrAsString(r,t);a!==null&&(n[i]=a)},g=(e,t,n,r,i=r,a=null)=>{let o=e.getValAttrAsBoolean(r,t,a);o!==null&&(n[i]=o)},_=(e,t,n,r,i)=>{let a=e.getValAttrAsInteger(r,t);a!==null&&(n[i]=a)},v=(e,t,n,r,i,a=1)=>{let o=e.getValAttrAsFloat(r,t);o!==null&&(n[i]=o*a)},y=e=>!e||e.trim().length===0,b=e=>!y(e),x=e=>e?.length??0,S=class{constructor(e){this.jsonKey=e}visit(e,t,n){let r={};return n[this.jsonKey]=r,r}},C=class{visit(e,t,n){}getStroke(e,t){let n=e.evaluate(`ln`,t);return n?this.parseLn(e,n):{}}parseLn(e,t){let n={};t.hasAttribute(`algn`)&&(n.align=t.getAttribute(`algn`)),t.hasAttribute(`cap`)&&(n.lineCap=T(t.getAttribute(`cap`))),t.hasAttribute(`cmpd`)&&(n.compound=t.getAttribute(`cmpd`)),t.hasAttribute(`w`)&&(n.width=o.s(t.getAttribute(`w`)));let r=e.evaluate(`miter`,t);r&&(n.lineJoin=`miter`,r.hasAttribute(`lim`)&&(n.miterLimit=parseFloat(r.getAttribute(`lim`))/1e5)),e.evaluate(`bevel`,t)&&(n.lineJoin=`bevel`),e.evaluate(`round`,t)&&(n.lineJoin=`round`);let i=e.evaluate(`custDash`,t);if(i){let t=e.evaluate(`ds`,i);if(t&&t.length>0){let e=[];for(let n=0;n<t.length;n++){let r=t.item(n);e.push(o.t(r.getAttribute(`d`)??``)),e.push(o.t(r.getAttribute(`sp`)??``))}n.dash=e}}let a=e.evaluate(`prstDash`,t);a&&a.hasAttribute(`val`)&&(n.dash=a.getAttribute(`val`)),this.parseEndElement(e,t,n,`headEnd`,`head`),this.parseEndElement(e,t,n,`tailEnd`,`tail`);let s=this.getFill(e,t);return s&&(n.fill=s),n}parseEndElement(e,t,n,r,i){let a=e.evaluate(r,t);if(a&&(a.hasAttribute(`type`)&&(n[i+`Type`]=a.getAttribute(`type`)),a.hasAttribute(`len`)||a.hasAttribute(`w`))){let e=a.getAttribute(`len`)||`med`,t=a.getAttribute(`w`)||`med`;n[i+`Size`]=e+`-`+t}}getEffects(e,t){let n=e.evaluate(`effectLst`,t);if(!n)return null;let r=[],i=n.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType!==1)continue;let a=this.processEffectElement(e,n,n.localName);if(a===void 0)return;r.push(a)}return r}processEffectElement(e,t,n){switch(n){case`outerShdw`:{let n={type:r.o.Type.OuterShadow,color:this.processAdjColor(e,t)};return t.hasAttribute(`dist`)&&(n.distance=o.s(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(n.angle=o.f(t.getAttribute(`dir`))),t.hasAttribute(`blurRad`)&&(n.blur=o.s(t.getAttribute(`blurRad`))),t.hasAttribute(`algn`)&&(n.alignment=t.getAttribute(`algn`)),t.hasAttribute(`rotWithShape`)&&(n.isRotatedWithShape=o.p(t.getAttribute(`rotWithShape`))),t.hasAttribute(`sx`)&&(n.scaleX=o.t(t.getAttribute(`sx`))),t.hasAttribute(`sy`)&&(n.scaleY=o.t(t.getAttribute(`sy`))),t.hasAttribute(`kx`)&&(n.skewX=o.f(t.getAttribute(`kx`))),t.hasAttribute(`ky`)&&(n.skewY=o.f(t.getAttribute(`ky`))),n}case`innerShdw`:{let n={type:r.o.Type.InnerShadow,color:this.processAdjColor(e,t)};return t.hasAttribute(`dist`)&&(n.distance=o.s(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(n.angle=o.f(t.getAttribute(`dir`))),t.hasAttribute(`blurRad`)&&(n.blur=o.s(t.getAttribute(`blurRad`))),n}case`prstShdw`:{let n={type:r.o.Type.PresetShadow,color:this.processAdjColor(e,t),preset:t.getAttribute(`prst`)??void 0};return t.hasAttribute(`dist`)&&(n.distance=o.s(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(n.angle=o.f(t.getAttribute(`dir`))),n}case`glow`:{let n={type:r.o.Type.Glow,color:this.processAdjColor(e,t)};return t.hasAttribute(`rad`)&&(n.radius=o.s(t.getAttribute(`rad`))),n}case`softEdge`:{let e={type:r.o.Type.SoftEdge};return t.hasAttribute(`rad`)&&(e.radius=o.s(t.getAttribute(`rad`))),e}case`reflection`:{let e={type:r.o.Type.Reflection};return t.hasAttribute(`blurRad`)&&(e.blur=o.s(t.getAttribute(`blurRad`))),t.hasAttribute(`dist`)&&(e.distance=o.s(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(e.angle=o.f(t.getAttribute(`dir`))),t.hasAttribute(`fadeDir`)&&(e.fadeAngle=o.f(t.getAttribute(`fadeDir`))),t.hasAttribute(`stA`)&&(e.startAlpha=o.t(t.getAttribute(`stA`))),t.hasAttribute(`stPos`)&&(e.startPosition=o.t(t.getAttribute(`stPos`))),t.hasAttribute(`endA`)&&(e.endAlpha=o.t(t.getAttribute(`endA`))),t.hasAttribute(`endPos`)&&(e.endPosition=o.t(t.getAttribute(`endPos`))),t.hasAttribute(`sx`)&&(e.scaleX=o.t(t.getAttribute(`sx`))),t.hasAttribute(`sy`)&&(e.scaleY=o.t(t.getAttribute(`sy`))),t.hasAttribute(`kx`)&&(e.skewX=o.f(t.getAttribute(`kx`))),t.hasAttribute(`ky`)&&(e.skewY=o.f(t.getAttribute(`ky`))),t.hasAttribute(`algn`)&&(e.alignment=t.getAttribute(`algn`)),t.hasAttribute(`rotWithShape`)&&(e.isRotatedWithShape=o.p(t.getAttribute(`rotWithShape`))),e}default:return}}getFill(e,t){if(e.evaluate(`noFill`,t))return{type:n.dt.Type.None};let r=e.evaluate(`solidFill`,t);if(r){let t=this.processAdjColor(e,r);if(t)return{type:n.dt.Type.Solid,color:t}}let i=e.evaluate(`gradFill`,t);if(i)return this.processGradFill(e,i);let a=e.evaluate(`pattFill`,t);if(a)return this.processPatternFill(e,a);let o=e.evaluate(`blipFill`,t);return o?this.processImageFill(e,o):null}processGradFill(e,t){let r={type:n.dt.Type.Gradient};t.hasAttribute(`rotWithShape`)&&(r.isRotatedWithShape=t.getAttribute(`rotWithShape`)===`1`);let i=e.evaluate(`lin`,t);i&&(r.gradientType=n.dt.GradientType.Linear,i.hasAttribute(`ang`)&&(r.angle=o.f(i.getAttribute(`ang`))),i.hasAttribute(`scaled`)&&(r.scaled=o.p(i.getAttribute(`scaled`))));let a={};t.hasAttribute(`flip`)&&(a.mirror=t.getAttribute(`flip`)),Object.keys(a).length>0&&(r.tile=a);let s=e.evaluate(`path`,t);if(s){s.hasAttribute(`path`)&&(r.gradientType=w(s.getAttribute(`path`)));let t=e.evaluate(`fillToRect`,s);t&&(r.focus=this.getRect(t))}let c=e.evaluate(`tileRect`,t);c&&(r.tile||={},r.tile.bounds=this.getRect(c));let l=[],u=e.evaluate(`gsLst/gs`,t),d=u?u.length:0;for(let t=0;t<d;t++){let n=u.item(t),r={offset:o.t(n.getAttribute(`pos`)??``),color:this.processAdjColor(e,n)};l.push(r)}return l.length>0&&(r.stops=l),r}getRect(e){let t={};return e.hasAttribute(`t`)&&(t.t=o.t(e.getAttribute(`t`))),e.hasAttribute(`l`)&&(t.l=o.t(e.getAttribute(`l`))),e.hasAttribute(`b`)&&(t.b=o.t(e.getAttribute(`b`))),e.hasAttribute(`r`)&&(t.r=o.t(e.getAttribute(`r`))),Object.keys(t).length===0?null:t}processImageFill(e,t){let r={type:n.dt.Type.Image};return t.hasAttribute(`rotWithShape`)&&(r.isRotatedWithShape=o.p(t.getAttribute(`rotWithShape`))),t.hasAttribute(`dpi`)&&(r.dpi=t.getAttribute(`dpi`)),r.ref=`https://www.sheetxl.com/logo-color-padded-white.jpg`,r.tile=!1,r}processPatternFill(e,t){let r={type:n.dt.Type.Pattern};r.patternType=t.getAttribute(`prst`);let i=e.evaluate(`bgClr`,t);if(i){let t=this.processAdjColor(e,i);t&&(r.background=t)}let a=e.evaluate(`fgClr`,t);if(a){let t=this.processAdjColor(e,a);t&&(r.foreground=t)}return r}processAdjColor(e,t){let n=e.evaluate(`hslClr`,t);if(n)return this.processHslClr(e,n);let r=e.evaluate(`prstClr`,t);if(r)return this.processClrWithValAttribute(e,r);let i=e.evaluate(`schemeClr`,t);if(i)return this.processClrWithValAttribute(e,i);let a=e.evaluate(`sysClr`,t);if(a){let t=this.processClrWithValAttribute(e,a),n=a.getAttribute(`lastClr`);return t&&n&&(t+=` lastClr ${n}`),t}let o=e.evaluate(`scrgbClr`,t);if(o)return this.processScrgbClrElement(e,o);let s=e.evaluate(`srgbClr`,t);return s?this.processSrgbClrElement(e,s):null}processScrgbClrElement(e,t){let n=`lrgba(`+o.t(t.getAttribute(`r`)??``)+`,`+o.t(t.getAttribute(`g`)??``)+`,`+o.t(t.getAttribute(`b`)??``)+`)`;return n+=this.processAdjustments(e,t),n}processSrgbClrElement(e,t){let n=t.getAttribute(`val`);return n+=this.processAdjustments(e,t),n}processHslClr(e,t){let n=`hsl(`+o.f(t.getAttribute(`hue`)??``)+`,`+o.t(t.getAttribute(`sat`)??``)+`,`+o.t(t.getAttribute(`lum`)??``)+`)`;return n+=this.processAdjustments(e,t),n}processClrWithValAttribute(e,t){let n=t.getAttribute(`val`);if(!n)return null;let r=n;return r+=this.processAdjustments(e,t),r}processAdjustments(e,t){let n=``,r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);if(i.nodeType===1){let t=i.localName;n+=t===`hue`||t===`hueOff`||t===`hueMod`?this.processAdjustmentElement(e,i,t,6e4):t===`gray`||t===`comp`||t===`inv`||t===`gamma`||t===`invGamma`?this.processAdjustmentElement(e,i,t,1):t===`alpha`||t===`alphaOff`||t===`alphaMod`?this.processAdjustmentElement(e,i,t,1e5):this.processAdjustmentElement(e,i,t)}}return n}processAdjustmentElement(e,t,n,r=1e3){let i=t.getAttribute(`val`);return i?` ${n} ${!i||parseFloat(i)/r}`:` ${n}`}},w=e=>e===`circle`?`radial`:e,T=e=>{if(e===`rnd`)return`round`;if(e===`flat`)return`butt`;if(e===`sq`)return`square`;throw Error(`Invalid lineCap type: `+e)},E=class extends C{visit(e,t,n){try{let r=e.evaluate(`xfrm`,t);if(r){m(r,n);let t={x:0,y:0,width:0,height:0},i=e.evaluate(`off`,r);i&&(t.x=o.i(i.getAttribute(`x`))??0,t.y=o.i(i.getAttribute(`y`))??0);let a=e.evaluate(`ext`,r);i&&(t.width=o.i(a.getAttribute(`cx`))??0,t.height=o.i(a.getAttribute(`cy`))??0),n.bounds=t}let i=e.evaluate(`prstGeom`,t);i?.hasAttribute(`prst`)?n.geometry=i?.getAttribute(`prst`):e.evaluate(`customGeom`,t)&&console.warn(`customGeom not supported yet`);let a=this.getFill(e,t);a&&Object.keys(a).length>0&&(n.fill=a);let s=this.getStroke(e,t);return s&&Object.keys(s).length>0&&(n.stroke=s),n}catch(e){console.warn(e)}}},D=class{visit(e,t,n){let r={};if(h(e,t,r,`grouping`,`grouping`),g(e,t,r,`varyColors`,`varyColors`),v(e,t,r,`gapWidth`,`gapWidth`,.01),v(e,t,r,`overlap`,`overlap`,.01),this.parseType(e,t,r),_(e,t,r,`bubbleScale`,`bubbleScale`),g(e,t,r,`showNegBubbles`,`showNegativeBubbleValues`),g(e,t,r,`sizeRepresents`,`bubbleSizeRepresentsWidth`),_(e,t,r,`firstSliceAng`,`startAngle`),_(e,t,r,`holeSize`,`holeSize`),h(e,t,r,`scatterStyle`,`scatterStyle`),this.parseAxisIds(e,t,r),Object.keys(r).length>0){let t=e.getVisitorParamsState().get(`types`);t||(console.warn(`Uninitialized types array in ChartTypeVisitor`),t=[],e.getVisitorParamsState().set(`types`,t)),t.push(r)}return r}parseType(e,t,n){switch(t.localName){case`areaChart`:n.type=`area`;break;case`bubbleChart`:n.type=`bubble`;break;case`doughnutChart`:case`ofPieType`:case`pieChart`:n.type=`pie`;break;case`lineChart`:n.type=`line`;break;case`scatterChart`:n.type=`scatter`}}parseAxisIds(e,t,n){let r=e.evaluate(`axId`,t);r&&r.length!==0&&(n.xAxisId=r.item(0).getAttribute(`val`),n.yAxisId=r.item(1).getAttribute(`val`))}},O=(e,t,n)=>{if(!0===e.getValAttrAsBoolean(`invertIfNegative`,t))if(e.evaluate(`extLst/ext/invertSolidFillFmt`,t)){if(n.fill&&n.fillNegative){let t=e.getFromPath(n,`fill.solid.adjs`);t&&e.setToPath(n,`fillNegative.solid.adjs`,t)}}else{let e={val:`FFFFFF`},t={};t.solid=e,n.fillNegative=t;let r={val:`000000`},i={};i.solid=r;let a={};a.fill=i,n.strokeNegative=a}},k=class extends C{constructor(e=`text`){super(),this._jsonKey=e}getTextPath(){return this._jsonKey}visit(e,t,n){let r=e.getFromPath(n,this.getTextPath());return r||={},this.parseTextElement(e,t,r,!1),Object.keys(r).length>0&&e.setToPath(n,this.getTextPath(),r),n}parseTextElement(e,t,n,r){let i=e.evaluate(`p/pPr/defRPr`,t)??e.evaluate(`defRPr`,t);i&&(this.parseTextProperties(e,i,n),new E().visit(e,i,n));let a=n.runs??[],o=e.evaluate(`p/r`,t)??e.evaluate(`r`,t),s=t=>{let n={},r=e.evaluate(`t`,t),i=e.evaluate(`rPr`,t);i&&this.parseTextProperties(e,i,n),r&&r.firstChild?n.text=r.firstChild.textContent??``:t.textContent&&(n.text=t.textContent??``),Object.keys(n).length>0&&a.push(n)};if(o?.length!==void 0)for(let e=0;o&&e<o.length;e++)s(o.item(e));else s(o||t);a.length>0&&(n.runs=a);let c=e.evaluate(`bodyPr`,t);c&&m(c,n)}parseTextProperties(e,t,r){if(!t)return;t.hasAttribute(`sz`)&&(r.size=parseFloat(t.getAttribute(`sz`))/100),t.hasAttribute(`b`)&&(r.weight=t.getAttribute(`b`)===`1`?700:400),t.hasAttribute(`i`)&&(r.italic=t.getAttribute(`i`)===`1`),t.hasAttribute(`u`)&&(r.underline=t.getAttribute(`u`)),t.hasAttribute(`strike`)&&(r.strike=t.getAttribute(`strike`));let i=this.getFill(e,t);i&&Object.keys(i).length>0&&(r.color=i);let a=e.evaluate(`latin`,t);if(a&&!a.getAttribute(`typeface`).startsWith(`+`)){let e=r.font??{};if(a.hasAttribute(`typeface`)&&(e.family=a.getAttribute(`typeface`)),a.hasAttribute(`panose`)){let t=a.getAttribute(`panose`);t&&(e.fallbacks=[n.Q.getPanoseFallback(t)])}a.hasAttribute(`pitchFamily`)&&(e.pitch=a.getAttribute(`pitchFamily`)),a.hasAttribute(`charset`)&&(e.charset=a.getAttribute(`charset`)),Object.keys(e).length>0&&(r.font=e)}}},A=class{visit(e,t,n){}processDataBarColor(e,t,n,r,i=`auto`){if(!t)return;let a=o.o(e=>t.getAttribute(e),i);return a&&(n[r]=a),n}processFonts(e,t,n){if(!t)return;let r=t.childNodes,i=0,a=r.length;for(let t=0;t<a;t++){let a=r.item(t);if(a.nodeType===1&&a.localName===`font`){let t={};this.processFont(e,a,t),n[i++]=t}}return n}processFont(e,t,r){e.getValAttrAsBoolean(`b`,t,!0)&&(r.weight=700),e.getValAttrAsBoolean(`i`,t,!0)&&(r.style=n.Q.Style.Italic),e.getValAttrAsBoolean(`strike`,t,!0)&&(r.strike=!0);let i=e.evaluate(`u`,t);i&&(r.underline=i.getAttribute(`val`)||n.Q.UnderlineStyle.Single),h(e,t,r,`vertAlign`,`verticalAlign`),r.verticalAlign===`superscript`?r.verticalAlign=n.Q.VerticalAlignment.Super:r.verticalAlign===`subscript`&&(r.verticalAlign=n.Q.VerticalAlignment.Sub),v(e,t,r,`sz`,`size`);let a=e.evaluate(`color`,t);this.processDataBarColor(e,a,r,`color`),r.color||=`auto`,h(e,t,r,`name`,`family`),h(e,t,r,`rFont`,`family`);let o=e.evaluate(`family`,t);if(o){let e=o.getAttribute(`val`);if(e)switch(e){case`1`:r.fallbacks=[`serif`];break;case`2`:r.fallbacks=[`sans-serif`];break;case`3`:r.fallbacks=[`monospace`];break;case`4`:r.fallbacks=[`cursive`];break;case`5`:r.fallbacks=[`fantasy`]}}return h(e,t,r,`scheme`,`scheme`),g(e,t,r,`shadow`,`shadow`,!0),g(e,t,r,`outline`,`outline`,!0),e.getValAttrAsBoolean(`condense`,t,!0)&&(r.letterSpacing=-1),e.getValAttrAsBoolean(`extend`,t,!0)&&(r.letterSpacing=1),_(e,t,r,`charset`,`charset`),r}processFills(e,t,n){if(!t)return;let r=t.childNodes,i=0,a=r.length;for(let t=0;t<a;t++){let a=r.item(t);a.nodeType===1&&a.localName===`fill`&&this.processFill(e,a,n,i++)}return n}processFill(e,t,r,i){let a={type:n.dt.Type.None},o=t.childNodes,s=!1,c=o.length;for(let t=0;!s&&t<c;t++){let n=o.item(t);n.nodeType===1&&(n.localName===`gradientFill`?(this.processGradientFill(e,n,a),s=!0):n.localName===`patternFill`&&(this.processPatternFill(e,n,a),s=!0))}return r[i]=a,r}processGradientFill(e,t,r){if(!t)return;r.type=n.dt.Type.Gradient;let i=[];r.stops=i;let a=t.getAttribute(`type`);a&&(r.gradientType=a);let o=t.hasAttribute(`degree`)?parseFloat(t.getAttribute(`degree`)):0;(o+90)%360!=0&&(r.angle=(o+90)%360),(t.hasAttribute(`left`)||t.hasAttribute(`top`)||t.hasAttribute(`right`)||t.hasAttribute(`bottom`))&&(r.focus={left:j(t.getAttribute(`left`)),top:j(t.getAttribute(`top`)),right:j(t.getAttribute(`right`)),bottom:j(t.getAttribute(`bottom`))});let s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType===1&&n.localName===`stop`){let t={};i.push(t),t.offset=parseFloat(n.getAttribute(`position`)??``);let r=e.evaluate(`color`,n);this.processDataBarColor(e,r,t,`color`)}}return r}processPatternFill(e,t,r){if(!t)return;let i=e.getVisitorParamsState().get(`processingDXFs`),a=t.getAttribute(`patternType`)||(i?n.dt.BuiltInSheetPattern.Solid:n.dt.BuiltInSheetPattern.None);if(a===n.dt.BuiltInSheetPattern.None)return{none:!0};r.type=n.dt.Type.Pattern,a&&(r.patternType=a);let o=`foreground`,s=`background`,c=r.patternType===n.dt.BuiltInSheetPattern.Solid&&i,l=c?`dk1`:`lt1`,u=c?`lt1`:`dk1`;if(c){let e=o;o=s,s=e}let d=e.evaluate(`fgColor`,t);this.processDataBarColor(e,d,r,o,l);let f=e.evaluate(`bgColor`,t);return this.processDataBarColor(e,f,r,s,u),c&&(r.foreground||=`lt1`,r.background||=`dk1`),r}processBorders(e,t,n,r){if(!t)return;let i=t.childNodes,a=0,o=i.length;for(let t=0;t<o;t++){let o=i.item(t);o.nodeType===1&&o.localName===`border`&&this.processBorder(e,o,n,a++,r)}return n}processBorder(e,t,r,i,a){if(!t)return;let o={};return this.processBorderStroke(e,t,o,n.rt.Edge.Left),this.processBorderStroke(e,t,o,n.rt.Edge.Right),a?(o.right||o.left)&&(o.right?o.vertical={...o.right}:o.vertical={...o.left}):this.processBorderStroke(e,t,o,n.rt.Edge.Vertical),this.processBorderStroke(e,t,o,n.rt.Edge.Top),this.processBorderStroke(e,t,o,n.rt.Edge.Bottom),a?(o.bottom||o.top)&&(o.bottom?o.horizontal={...o.bottom}:o.horizontal={...o.top}):this.processBorderStroke(e,t,o,n.rt.Edge.Horizontal),r[i]=o,r}processBorderStroke(e,t,r,i){if(!t)return;let a=e.evaluate(i,t);if(!a)return;let o={};a.hasAttribute(`style`)?o.style=a.getAttribute(`style`):e.getVisitorParamsState().get(`processingDXFs`)&&(o.style=n.rt.StrokeStyle.None);let s=e.evaluate(`color`,a);return s&&this.processDataBarColor(e,s,o,`color`),Object.keys(o).length>0?r[i]=o:null}},j=e=>{if(!e)return 0;let t=parseFloat(e);return isNaN(t)?0:t},M={auto:`auto`,autoNoTable:`automaticExceptTables`,manual:`manual`},N=class{visit(e,t,n){if(!t)return;let r=e.evaluate(`*/cNvPr`,t);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),e.copyFromAttribute(r,`id`,n)),n}},P=class extends N{visit(e,t,n){if(!t)return;if(e.getPath().includes(`Fallback`)&&n.content)return n;n=super.visit(e,t,n);let r=e.evaluate(`nvSpPr/cNvSpPr`,t);if(r){let t=e.evaluate(`spLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}e.warn(`'${n.name}' is not editable; imported as a fixed drawing.`);let i=e.evaluate(`*/cNvPr`,t);i?.item&&(i=i.item(0));let a=i?.getAttribute?.(`id`),o=a?parseInt(a,10):void 0,s={type:`sp`,xml:e.serializeElement(t)??void 0,sourceId:o===void 0||isNaN(o)?void 0:o};return n.content={type:`sp`,json:s},s}},F=`richTypes`,I=`richData`,ee=class{visit(e,t,n){if(!t)return;let r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);i.nodeType===1&&i.localName===`Relationship`&&this.processRelationship(e,i,n)}return n}processRelationship(e,t,n){let r={};e.copyFromAttribute(t,`Target`,r,`target`),e.copyFromAttribute(t,`Type`,r,`type`),e.copyFromAttribute(t,`TargetMode`,r,`targetMode`),n[t.getAttribute(`Id`)]=r}},te=class{visit(e,t,n){let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType!==1)continue;let a=this.processProperty(e,n);a&&r.push(a)}return r.length>0&&(n.properties=r),r}processProperty(e,t){if(t)return t.getAttribute(`xsi:type`),{key:t.localName,value:t.textContent||``}}},ne=class{visit(e,t,n){let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType!==1)continue;let a=this.processProperty(e,n);a&&r.push(a)}return r.length>0&&(n.properties=r),r}processProperty(e,t){if(t)return{key:t.localName,value:t.textContent||``}}},re=class{visit(e,t,n){return g(e,t,n,`roundedCorners`,`roundedCorners`),_(e,t,n,`.//AlternateContent/Fallback/style`,`styleId`),e.getVisitorParamsState().set(`types`,[]),e.getVisitorParamsState().set(`axes`,new Map),n.range=null,n}afterVisit(e,t,n){let r={};n.types=r;let i={},a=0,o={},s=0,c=e.getVisitorParamsState().get(`axes`),l=e.getVisitorParamsState().get(`types`),u=l.length;for(let e=0;e<u;e++){let t=l[e];if(t.xAxisId){let r=t.xAxisId,o=c.get(r);i[e+``]=o,t.offsetXAxis=e,delete t.xAxisId,n.xAxes=i,i.length=++a}if(t.yAxisId){let r=t.yAxisId,i=c.get(r);o[e+``]=i,t.offsetYAxis=e,delete t.yAxisId,n.yAxes=o,o.length=++s}r[e+``]=t}r.length=l.length;let d=e.getVisitorParamsState().get(`series`);if(!d||d.length===0)return;let f={};n.series=f;let p=d.length;for(let e=0;e<p;e++)f[e+``]=d[e];f.length=p,e.getVisitorParamsState().delete(`types`),e.getVisitorParamsState().delete(`axes`),e.getVisitorParamsState().delete(`series`)}},L=class{visit(e,t,n){let r={};return n.plotArea=r,r}},R=E,z=class extends D{parseType(e,t,n){let r=e.getValAttrAsString(`barDir`,t);r&&(n.type=r===`col`?`column`:`bar`)}},B=D,V=class{constructor(e){this.jsonKey=e}visit(e,t,n){let r={},i=r,a=e.getValAttrAsString(`idx`,t);a!==null&&(i={},i[a]=r);let o=e.getValAttrAsBoolean(`delete`,t);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):(g(e,t,r,`showBubbleSize`,`showBubbleSize`),g(e,t,r,`showCatName`,`showCatName`),g(e,t,r,`showLeaderLines`,`showLeaderLines`),g(e,t,r,`showPercent`,`showPercentage`),g(e,t,r,`showSerName`,`showSerName`),g(e,t,r,`showVal`,`showVal`),g(e,t,r,`showLegendKey`,`showLegendKey`));let s=e.evaluate(`separator`,t);return s!==null&&(r.separator=s.textContent),h(e,t,r,`dLblPos`,`position`),n[this.jsonKey]=i,r}parseNumFormat(e,t,n){let r=e.evaluate(`numFmt`,t);r&&(n.formatCode=r.getAttribute(`formatCode`),r.hasAttribute(`sourceLinked`)&&(n.sourceLinked=r.getAttribute(`sourceLinked`)===`1`))}},H=class{visit(e,t,n){let r={};_(e,t,r,`explosion`,`explosion`);let i=e.evaluate(`cat/*/f`,t);i||=e.evaluate(`xVal/*/f`,t);let a=null;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);let o=e.evaluate(`val/*/f`,t);o||=e.evaluate(`yVal/*/f`,t);let s=null;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),_(e,t,r,`idx`,`idx`),g(e,t,r,`smooth`,`smooth`),r.offsetChart=e.getVisitorParamsState().get(`types`).length-1;let c=e.getVisitorParamsState().get(`series`);return c||(c=[],e.getVisitorParamsState().set(`series`,c)),c.push(r),r}parseTitleRangeOrValue(e,t,n){let r=e.evaluate(`tx/strRef/f`,t);if(r!==null){let t=r.firstChild.nodeValue;e.setToPath(n,`title.range`,t)}else{let r=e.evaluate(`tx/v`,t);r!==null&&e.setToPath(n,`title.text.simpleRun`,r.firstChild.nodeValue)}}parsePointsAsString(e,t){let n=`{`,r=e.getValAttrAsInteger(`ptCount`,t),i=e.evaluate(`pt`,t),a=[];for(let n=0;i&&r&&n<r;n++){let r=null,i=e.evaluate(`pt[@idx='`+n+`']/v`,t);i&&(r=i.textContent),a[n]=r}for(let e=0;e<a.length;e++)e>0&&(n+=`,`),a[e]!==void 0&&(n+=a[e]);return n+=`}`,n}afterVisit(e,t,n){O(e,t,n);let r=e.getFromPath(n,`points`);if(r){let t=Object.keys(r);for(let i=0;i<t.length;i++){let a=t[i],o=e.getFromPath(r,a);if(!o)continue;let s=e.getFromPath(o,`markers`);s&&(e.setToPath(n,`markers.points.`+a,s),delete o.markers)}}}},U=class{DataPointVisitor(){}visit(e,t,n){let r=e.getFromPath(n,`points`),i=null;r?i=r:(i={},e.setToPath(n,`points`,i));let a={},o=e.getValAttrAsString(`idx`,t);return o!==null&&(i[o]=a),g(e,t,a,`bubble3D`,`bubble3D`),_(e,t,a,`explosion`,`explosion`),O(e,t,a),a}},W=class{visit(e,t,n){let r=t.parentNode.localName;if(r===`ser`||r===`dPt`){let r={},i=e.getValAttrAsString(`size`,t);i!==null&&(r.size=i);let a=e.getValAttrAsString(`symbol`,t);return a&&(r.type=a),n.markers=r,r}return null}},G=class{visit(e,t,n){let r={};this.parseScaling(e,t,r),v(e,t,r,`majorUnit`,`majorUnits`),v(e,t,r,`minorUnit`,`minorUnits`),g(e,t,r,`delete`,`shown`),this.parseOrientation(e,t,r),this.parseNumFormat(e,t,r),h(e,t,r,`majorTickMark`,`majorTickMarks`),h(e,t,r,`minorTickMark`,`minorTickMarks`),h(e,t,r,`crosses`,`crosses`),v(e,t,r,`crossesAt`,`crosses`),h(e,t,r,`crossBetween`,`crossBetween`),this.parseLabelAlign(e,t,r),_(e,t,r,`lblOffset`,`labelOffset`),h(e,t,r,`tickLblPos`,`labelPosition`);let i=e.getValAttrAsInteger(`noMultiLvlLbl`,t);r.labelMultiLevel=i!==null&&i===0,_(e,t,r,`tickMarkSkip`,`tickMarkSkip`),_(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`),h(e,t,r,`baseTimeUnit`,`baseUnitDates`),e.getVisitorParamsState().get(`axes`)||(console.warn(`Uninitialized axes map in AxisVisitor`),e.getVisitorParamsState().set(`axes`,new Map));let a=e.getValAttrAsString(`axId`,t);return e.getVisitorParamsState().get(`axes`).set(a,r),r}parseTimeUnits(e,t,n,r,i,a){let o={},s=e.getValAttrAsString(i,t);s!==null&&(o.dem=s,o.amt=e.getValAttrAsString(a,t)),Object.keys(o).length>0&&(n[r]=o)}parseDisplayCustOrBuiltInUnit(e,t,n){let r=t.getValAttrAsString(`dispUnits/builtInUnit`,e);r||=t.getValAttrAsString(`dispUnits/custUnit`,e),r&&(n.displayUnits=r)}parseLabelAlign(e,t,n){let r=e.getValAttrAsString(`lblAlgn`,t);r!==null&&(r===`ctr`?n.labelAlign=`center`:r===`l`?n.labelAlign=`left`:r===`r`&&(n.labelAlign=`right`))}parseOrientation(e,t,n){let r=e.getValAttrAsString(`AxPos`,t);r!==null&&(r===`b`?n.orientation=`bottom`:r===`l`?n.orientation=`left`:r===`r`?n.orientation=`right`:r===`t`&&(n.orientation=`top`))}parseNumFormat(e,t,n){let r={},i=e.evaluate(`numFmt`,t);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)}parseScaling(e,t,n){let r=e.getValAttrAsString(`scaling/orientation`,t);r!==null&&(n.inverted=r!==`minMax`);let i=e.getValAttrAsFloat(`scaling/logBase`,t);i!==null&&(n.logBase=i,n.scaleType=`log`),v(e,t,n,`scaling/max`,`max`),v(e,t,n,`scaling/min`,`min`)}afterVisit(e,t,n){n.fill&&n.labels&&(n.labels.fill=n.fill,delete n.fill);let r=e.getValAttrAsBoolean(`delete`,t);r!==null&&(e.setToPath(n,`labels.shown`,!0!==r),e.setToPath(n,`shown`,!0!==r));let i=e.getFromPath(n,`dispUnits.displayUnitsLabel`);i&&(e.setToPath(n,`displayUnitsLabel`,i),delete n.dispUnits);let a=e.evaluate(`title`,t);e.setToPath(n,`title.shown`,a!==null);let o=e.evaluate(`minorGridlines`,t);e.setToPath(n,`gridLinesMinor.shown`,o!==null);let s=e.evaluate(`majorGridlines`,t);e.setToPath(n,`gridLinesMajor.shown`,s!==null)}},K=k,q=class{visit(e,t,n){let r=e.getVisitorParamsState().get(`series`),i=e.getValAttrAsInteger(`idx`,t),a=i===null?void 0:r[i];if(a){let n=e.getFromPath(a,`title`);n||(n={},e.setToPath(a,`title`,n));let r=n,i=e.getValAttrAsBoolean(`delete`,t);return i!==null&&(r.shown=!i),r}return n}},J=class{visit(e,t,n){let r={};return g(e,t,r,`overlay`,`overlay`),h(e,t,r,`legendPos`,`position`),n.legend=r,r}},Y=class extends E{visit(e,t,n){let r=this.getFill(e,t);Object.keys(r).length>0&&(n.fillNegative=r);let i=this.getStroke(e,t);return Object.keys(i).length>0&&(n.strokeNegative=i),n}},X=class extends k{constructor(e=`title`){super(e)}parseTitleRangeOrValue(e,t,n){let r=e.evaluate(`tx/strRef/f`,t)??null;if(r){let t=r.firstElementChild.nodeValue;e.setToPath(n,`range`,t)}}visit(e,t,n){let r={};g(e,t,r,`overlay`,`overlay`),n[this._jsonKey]=r;let i=e.getFromPath(r,this.getTextPath());i||={},this.parseTitleRangeOrValue(e,t,r);let a=e.evaluate(`txPr`,t);a&&this.parseTextElement(e,a,i,!1);let o=e.evaluate(`tx/rich`,t);return o&&this.parseTextElement(e,o,i,!0),Object.keys(i).length>0&&e.setToPath(r,`text`,i),r}afterVisit(e,t,n){if(n?.text){let e=n.text?.rotation??null;e!==null&&(n.rotation=parseInt(e),delete n.title.rotation)}}},ie=class{visit(e,t,n){let r=e.evaluate(`manualLayout`,t);if(r){let t={};v(e,r,t,`x`,`x`),v(e,r,t,`y`,`y`),v(e,r,t,`w`,`w`),v(e,r,t,`h`,`h`),h(e,r,t,`xMode`,`xMode`),h(e,r,t,`yMode`,`yMode`),h(e,r,t,`wMode`,`wMode`),h(e,r,t,`hMode`,`hMode`),Object.keys(t).length>0&&(n.manualLayout=t)}return n}},ae=class{visit(e,t,n){return n.name=t.getAttribute(`name`),n}},oe=class extends C{visit(e,t,n){let r={};r.name=t.getAttribute(`name`);let i=t.childNodes,a=i.length;for(let n=0;n<a;n++){let a=i.item(n);if(a.nodeType===1){let n=a.localName,i=e.evaluate(n,t);r[n]=this.processAdjColor(e,i)}}return Object.keys(r).length>0&&(n.colors=r),r}},se=class{visit(e,t,n){let r={};r.name=t.getAttribute(`name`);let i=e.evaluate(`majorFont`,t),a=this.processFontElement(e,i,{});a&&(r.majorFont=a.family,a.fallbacks&&(r.majorFallbacks=a.fallbacks));let o=e.evaluate(`minorFont`,t),s=this.processFontElement(e,o,{});return s&&(r.minorFont=s.family,s.fallbacks&&(r.minorFallbacks=s.fallbacks)),n.fonts=r,r}processFontElement(e,t,r){if(!t)return;let i=e.evaluate(`latin`,t);if(!i)return;let a=i.getAttribute(`typeface`);a&&(r.family=a);let o=i.getAttribute(`panose`);return o&&(r.fallbacks=[n.Q.getPanoseFallback(o)]),r}},ce=class extends C{visit(e,t,n){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`);if(r&&i&&a&&o)return n.fillStyleLst=r,n.lnStyleLst=i,n.effectStyleLst=a,void(n.bgFillStyleLst=o);let s=e.serializeElement(t);s&&(n.formatSchemeXml=s)}parseFillList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1)continue;let r=this.parseFillListItem(e,n);if(r===void 0)return;i.push(r)}return i}parseFillListItem(e,t){switch(t.localName){case`noFill`:return{type:n.dt.Type.None};case`solidFill`:{let r=this.processAdjColor(e,t);return r?{type:n.dt.Type.Solid,color:r}:void 0}case`gradFill`:return this.processGradFill(e,t);case`pattFill`:return this.processPatternFill(e,t);default:return}}parseLnList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType===1){if(e.evaluate(`headEnd`,n)||e.evaluate(`tailEnd`,n))return;i.push(this.parseLn(e,n))}}return i}parseEffectStyleList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1)continue;if(e.evaluate(`scene3d`,n)||e.evaluate(`sp3d`,n))return;let r=this.getEffects(e,n);if(r===void 0)return;i.push(r??[])}return i}},le=class{visit(e,t,n){if(!t)return;let r={},i=t.getAttribute(`r:id`);if(i){let t=e.getRef(i);typeof t==`string`&&(r.address=t)}return e.copyFromAttribute(t,`tooltip`,r,`screenTip`),e.copyFromAttribute(t,`history`,r,`history`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`tgtFrame`,r,`target`),n.hyperlink=r,r}},ue=class{visit(e,t,n){if(!t)return;let r={},i=[];return this.processFilterColumns(e,t,i,n),i.length>0&&(r.conditions=i),Object.keys(r).length>0&&(n.filter=r),r}processColorFilter(e,t){let r={},i={operator:n.q.BuiltInOperatorNames.Color,param:r};return e.copyFromAttribute(t,`cellColor`,r,`cellColor`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`dxfId`,r,`styleId`,e.INT_COPY),i}processCustomFilter(e,t){return a.o({operator:t.getAttribute(`operator`),val:t.getAttribute(`val`)})}processCustomFilters(e,t){let r=t.getAttribute(`and`),i=r===`and`||r===`1`;t.getAttribute(`val`);let a=[],o={operator:i?n.q.BuiltInOperatorNames.And:n.q.BuiltInOperatorNames.Or,param:a},s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType!==1)continue;let r=null;n.localName===`customFilter`&&(r=this.processCustomFilter(e,n)),r&&a.push(r)}return a.length===1?a[0]:o}processDynamicFilter(e,t){let r={},i={operator:n.q.BuiltInOperatorNames.TimePeriod,param:r},a=t.getAttribute(`type`);return a===`aboveAverage`?a=n.q.AverageType.Above:a===`belowAverage`&&(a=n.q.AverageType.Below),Object.values(n.q.AverageType).includes(a)?(i.operator=n.q.BuiltInOperatorNames.Average,e.copyFromAttribute(t,`val`,r,`stdDevs`,e.INT_COPY)):e.copyFromAttribute(t,`val`,r,`anchorDate`,e.INT_COPY),e.copyFromAttribute(t,`type`,r,`operator`),e.copyFromAttribute(t,`maxVal`,r,`maxVal`,e.INT_COPY),i}processDateGroupItem(e,t){let n={};return e.copyFromAttribute(t,`dateTimeGrouping`,n,`group`),e.copyFromAttribute(t,`day`,n,`day`,e.INT_COPY),e.copyFromAttribute(t,`hour`,n,`hour`,e.INT_COPY),e.copyFromAttribute(t,`minute`,n,`minute`,e.INT_COPY),e.copyFromAttribute(t,`month`,n,`month`,e.INT_COPY),e.copyFromAttribute(t,`second`,n,`second`,e.INT_COPY),e.copyFromAttribute(t,`year`,n,`year`,e.INT_COPY),n}processFilterItem(e,t){if(t.hasAttribute(`val`))return t.getAttribute(`val`)}processFilters(e,t){let r={},i={operator:n.q.BuiltInOperatorNames.InSet,param:r};e.copyFromAttribute(t,`blank`,i,`blank`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`calendarType`,i,`calendarType`);let a=[],o=[],s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType===1){if(n.localName===`dateGroupItem`){let t=this.processDateGroupItem(e,n);t&&a.push(t)}else if(n.localName===`filter`){let t=this.processFilterItem(e,n);t!==void 0&&o.push(t)}}}return a.length>0&&(r.dateGroups=a),o.length>0&&(r.items=o),i}processIcon(e,t){let r={},i={operator:n.q.BuiltInOperatorNames.Icon,param:r};return e.copyFromAttribute(t,`iconId`,r,`iconId`,e.INT_COPY),e.copyFromAttribute(t,`iconSet`,r),i}processTop10(e,t){let r={},i={operator:n.q.BuiltInOperatorNames.TopN,param:r};return e.copyFromAttribute(t,`filterVal`,r,`filterVal`,e.FLOAT_COPY),e.copyFromAttribute(t,`percent`,r,`percent`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`top`,r,`top`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`val`,r,`val`,e.FLOAT_COPY),i}processFilterCriteria(e,t){if(!t)return;let n,r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);i.nodeType===1&&(i.localName===`colorFilter`?n=this.processColorFilter(e,i):i.localName===`customFilters`?n=this.processCustomFilters(e,i):i.localName===`dynamicFilter`?n=this.processDynamicFilter(e,i):i.localName===`filters`?n=this.processFilters(e,i):i.localName===`iconFilter`?n=this.processIcon(e,i):i.localName===`top10`&&(n=this.processTop10(e,i)))}return n}processFilterColumn(e,t,n){if(!t)return null;if(!t.hasAttribute(`colId`))return;let r=parseInt(t.getAttribute(`colId`)),i=!1;if(t.hasAttribute(`hiddenButton`)&&(i=o.p(t.getAttribute(`hiddenButton`))),i&&n){let e=n.hiddenButtons;e||(e=[],n.hiddenButtons=e),e.push(r)}let a=!1;if(t.hasAttribute(`showButton`)&&(a=o.p(t.getAttribute(`showButton`))),a&&n){let e=n.showButtons;!0!==e&&(e||(e=[],n.showButtons=e),e[r]=!0)}let s=this.processFilterCriteria(e,t);return s?(s.index=r,s):null}processFilterColumns(e,t,n,r){if(!t)return;let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);if(a.nodeType===1&&a.localName===`filterColumn`){let t=this.processFilterColumn(e,a,r);t&&n.push(t)}}return n}},de=class{visit(e,r,i){if(!r)return;let a=r.getAttribute(`ref`),s={};r.hasAttribute(`caseSensitive`)&&(s.collatorOptions=o.p(r.getAttribute(`caseSensitive`))?n.W.CaseSensitiveOptions:n.W.CaseInsensitiveOptions);let c=r.getAttribute(`sortMethod`);c!=null&&c!==`none`&&(c===`stroke`?s.collatorOptions={...s.collatorOptions,collation:`stroke`}:c===`pinYin`&&(s.collatorOptions={...s.collatorOptions,collation:`pinyin`}));let l={};r.hasAttribute(`columnSort`)&&o.p(r.getAttribute(`columnSort`))&&(l.axis=t.l.Axis.Column);let u=n.Rt.fastStringToRange(a),d=[];return this.processSortConditions(e,r,d,u,s),d.length>0&&(l.sorts=d),Object.keys(d).length>0&&(i.sort=l),l}processSortCondition(e,t,r,i){if(!t)return null;let a={};if(!t.hasAttribute(`ref`))return void console.warn(`no ref for sort conditional`,e.getPath());if(t.hasAttribute(`ref`)){let e=t.getAttribute(`ref`),i=n.Rt.fastStringToRange(e);a.index=r?i.colStart-r.colStart:i.colStart}let s={...i};return a.criteria=s,s.reverse=!1,t.hasAttribute(`descending`)&&(s.reverse=o.p(t.getAttribute(`descending`))),e.copyFromAttribute(t,`sortBy`,s,`sortOn`),e.copyFromAttribute(t,`dxfId`,s),e.copyFromAttribute(t,`iconSet`,s),e.copyFromAttribute(t,`customList`,s),a}processSortConditions(e,t,n,r,i){if(!t)return;let a=t.childNodes,o=a.length;for(let t=0;t<o;t++){let o=a.item(t);if(o.nodeType===1&&o.localName===`sortCondition`){let t=this.processSortCondition(e,o,r,i);t&&n.push(t)}}}},Z=class extends A{visit(e,t,r){this.processNumFmts(e,e.evaluate(`numFmts`,t),null),e.getVisitorParamsState().set(`colorsToProcess`,new Set);let i={fills:{},fonts:{},borders:{}};this.processFonts(e,e.evaluate(`fonts`,t),i.fonts),this.processFills(e,e.evaluate(`fills`,t),i.fills),this.processBorders(e,e.evaluate(`borders`,t),i.borders,!0),i.fills[0]={type:n.dt.Type.None},i.fills[1]={type:n.dt.Type.Pattern,patternType:n.dt.BuiltInSheetPattern.Gray125},i.borders[0]={bottom:{style:n.rt.StrokeStyle.None},left:{style:n.rt.StrokeStyle.None},right:{style:n.rt.StrokeStyle.None},top:{style:n.rt.StrokeStyle.None}};let a=[];this.processXFs(e,e.evaluate(`cellStyleXfs`,t),a,i,null,!1);let o=new Map;if(a.length>0){let n=[];this.processCellStyles(e,e.evaluate(`cellStyles`,t),n,a,o),r.named=n}let s=[];this.processXFs(e,e.evaluate(`cellXfs`,t),s,i,o),Object.keys(s).length>0&&(r.direct=s);let c=[];return this.processDXFs(e,e.evaluate(`dxfs`,t),c),this.processTableStyles(e,e.evaluate(`tableStyles`,t),r,c),this.processIndexColors(e,e.evaluate(`colors/indexedColors`,t),r),this.processMruColors(e,e.evaluate(`colors/mruColors`,t),r),r}processIndexColors(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`rgbColor`){let t={color:null};this.processDataBarColor(e,n,t,`color`),t.color&&r.push(t.color)}}n.indexedColors=r}processMruColors(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`color`){let t={color:null};this.processDataBarColor(e,n,t,`color`),t.color&&r.push(t.color)}}r.length>0&&(n.mruColors=r)}processNumFmts(e,t,n){if(!t)return;let r=new Map;if(e.getVisitorParamsState().set(`numFmts`,r),!t)return;let i=t.childNodes,a=i.length;for(let e=0;e<a;e++){let t=i.item(e);if(t.nodeType===1&&t.localName===`numFmt`){let e=t.getAttribute(`numFmtId`),n=t.getAttribute(`formatCode`);if(e&&n){let t=n;r.set(parseInt(e),t)}}}}processXFs(e,t,n,r,i=null,a=!0){if(!t)return;let o=t.childNodes,s=o.length;for(let t=0;t<s;t++){let s=o.item(t);if(s.nodeType===1&&s.localName===`xf`){let t={};this.processXF(e,s,t,r,i,a),n.push(t)}}}processXF(e,t,r,i,a,s){if(!t)return;let c=t.getAttribute(`xfId`);if(c&&a){let e=a.get(parseInt(c));e&&e!==n.st.BuiltInName.Normal&&(r.named=e)}let l=e=>!(!s&&t.hasAttribute(e))||o.p(t.getAttribute(e)),u=e=>!s||t.hasAttribute(e)&&o.p(t.getAttribute(e)),d=s?`0`:void 0;if(l(`applyFont`)){let e=t.getAttribute(`fontId`)??d;if(e!==void 0&&(e!==`0`||u(`applyFont`))){let t=i.fonts[e];t!==void 0&&(r.font=t)}}if(l(`applyFill`)){let e=t.getAttribute(`fillId`)??d;if(e!==void 0&&(e!==`0`||u(`applyFill`))){let t=i.fills[e];t!==void 0&&Object.keys(t).length>0&&(r.fill=t)}}if(l(`applyBorder`)){let e=t.getAttribute(`borderId`)??d;if(e!==void 0&&(e!==`0`||u(`applyBorder`))){let t=i.borders[e];t!==void 0&&(r.border=t)}}if(l(`applyNumberFormat`)){let n=t.getAttribute(`numFmtId`)??d;if(n!==void 0&&(n!==`0`||u(`applyNumberFormat`))){let t,i=parseInt(n),a=e.getVisitorParamsState();if(a){let e=a.get(`numFmts`);e&&(t=e.get(i)),r.numberFormat=t??i}else console.warn(`no visitor params state`)}}if(l(`applyAlignment`)){let n=e.evaluate(`alignment`,t);(n||u(`applyAlignment`))&&this.processAlignment(e,n,r)}if(l(`applyProtection`)){let n=e.evaluate(`protection`,t);(n||u(`applyProtection`))&&this.processProtection(e,n,r)}let f=o.p(t.getAttribute(`quotePrefix`)??``);f&&(r.quotePrefix=f)}processAlignment(e,t,r){let i={};if(t?.hasAttribute(`horizontal`)?i.horizontal=t.getAttribute(`horizontal`):i.horizontal=n.dn.HorizontalAlignment.General,t?.hasAttribute(`vertical`)?i.vertical=t.getAttribute(`vertical`):i.vertical=n.dn.VerticalAlignment.Bottom,t?.hasAttribute(`indent`)?i.indent=parseInt(t.getAttribute(`indent`)):i.indent=0,t?.hasAttribute(`relativeIndent`)?i.relativeIndent=parseInt(t.getAttribute(`relativeIndent`)):i.relativeIndent=0,o.p(t?.getAttribute(`wrapText`)??``)?i.overflow=n.dn.Overflow.Wrap:i.overflow=n.dn.Overflow.Visible,o.p(t?.getAttribute(`shrinkToFit`)??``)&&(i.overflow=n.dn.Overflow.Shrink),t?.hasAttribute(`textRotation`)){let e=parseFloat(t.getAttribute(`textRotation`));e>0&&e<=90?e=360-e:e>90&&e<=180?e-=90:e===255&&(e=0,i.stacked=!0),i.rotation=e}else i.rotation=0;t?.hasAttribute(`justifyLastLine`)&&(i.justifyLastLine=o.p(t.getAttribute(`justifyLastLine`)));let a=t?.getAttribute(`readingOrder`);return a&&(a===`0`?i.readingDirection=n.dn.ReadingDirection.Auto:a===`1`?i.readingDirection=n.dn.ReadingDirection.LeftToRight:a===`2`?i.readingDirection=n.dn.ReadingDirection.RightToLeft:console.warn(`invalid readingOrder: ${a}`)),Object.keys(i).length>0&&(r.alignment=i),r}processProtection(e,t,n){if(!t)return;let r={},i=t.getAttribute(`locked`);i&&!o.p(i)&&(r.edit=!0);let a=t.getAttribute(`hidden`);return a&&o.p(a)&&(r.formulaHidden=!0),Object.keys(r).length>0&&(n.protection=r),n}processDXF(e,t,n){if(!t)return;let r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);if(i.nodeType===1&&i.localName===`font`){let t={};this.processFont(e,i,t),n.font=t}else if(i.nodeType===1&&i.localName===`fill`){let t=[];this.processFill(e,i,t,0),t.length>0&&t[0]&&(n.fill=t[0])}else if(i.nodeType===1&&i.localName===`border`){let t=[];this.processBorder(e,i,t,0,!1),t.length>0&&t[0]&&(n.border=t[0])}else if(i.nodeType===1&&i.localName===`numFmt`){let e=i.getAttribute(`formatCode`);if(e)n.numberFormat=e;else{let e=i.getAttribute(`numFmtId`);e&&(n.numberFormat=Number(e))}}else i.nodeType===1&&i.localName===`alignment`&&this.processAlignment(e,i,n)}}processDXFs(e,t,n){if(!t)return;e.getVisitorParamsState().set(`processingDXFs`,!0);let r=new Map;e.getVisitorParamsState().set(`dxfs`,r);let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);if(a.nodeType===1&&a.localName===`dxf`){let t={};this.processDXF(e,a,t);let i=n.length;r.set(i,t),n.push(t)}}e.getVisitorParamsState().delete(`processingDXFs`)}processTableStyle(e,t,n,r,i=!1){let a=t.getAttribute(`name`),s={name:a};t.hasAttribute(`table`)&&(s.table=o.p(t.getAttribute(`table`))),t.hasAttribute(`pivot`)&&(s.pivot=o.p(t.getAttribute(`pivot`))),i&&!s.pivot&&r.unshift(null);let c=t.childNodes,l=c.length;for(let e=0;e<l;e++){let t=c.item(e);if(t.nodeType===1&&t.localName===`tableStyleElement`){let e=t.getAttribute(`type`),n=t.getAttribute(`dxfId`),i=n==null?void 0:r?.[n];i||=(console.warn(`invalid dfx id`,n),{}),s[e]=i;let a=null;t.hasAttribute(`size`)&&(a=parseInt(t.getAttribute(`size`))),a&&!isNaN(a)&&(i.size=a)}}delete s.name,n[a]=s}processTableStyles(e,t,n,r,i){if(!t)return;let a={},o=t.getAttribute(`defaultTableStyle`);o&&(a.defaultTableStyle=o);let s=t.getAttribute(`defaultPivotStyle`);s&&(a.defaultPivotStyle=s);let c=t.childNodes,l={},u=c.length;for(let t=0;t<u;t++){let n=c.item(t);n.nodeType===1&&n.localName===`tableStyle`&&this.processTableStyle(e,n,l,r,i)}return Object.keys(l).length>0&&(a.styles=l),Object.keys(a).length>0&&(n.tables=a),n}processCellStyles(e,t,r,i,a){if(!t)return;let s=t.childNodes,c=s.length;for(let e=0;e<c;e++){let t=s.item(e);if(t.nodeType===1&&t.localName===`cellStyle`){let e=parseInt(t.getAttribute(`xfId`)??``),s=t.getAttribute(`name`),c=t.getAttribute(`builtinId`),l=s;if(c!==null){let e=n.st.builtInNameFromId(parseInt(c));e!==void 0&&(l=e)}if(a.set(e,l),!i[e])continue;let u={name:l,style:i[e]};t.getAttribute(`hidden`)&&(u.hidden=o.p(t.getAttribute(`hidden`))),t.getAttribute(`iLevel`)&&(u.iLevel=parseInt(t.getAttribute(`iLevel`))),r.push(u)}}}afterVisit(e,t,n){}},fe=class extends A{visit(e,t,n){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.processWorkbookProtection(e,e.evaluate(`workbookProtection`,t),n),this.processWorkbookPr(e,e.evaluate(`workbookPr`,t),n),n}processPassword(e,t,n,r=`workbook`,i=`password`){if(!t)return;let a={};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)}processWorkbookProtection(e,t,n){if(!t)return;let r={};return this.processPassword(e,t,r,`workbook`,`password`),this.processPassword(e,t,r,`revisions`,`revisionsPassword`),e.copyFromAttribute(t,`lockStructure`,r,`structure`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`lockWindows`,r,`windows`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`lockRevision`,r,`revision`,e.BOOLEAN_COPY),n.protection=r,n}processCalcPr(e,t,n){if(!t)return;let r={};e.copyFromAttribute(t,`calcMode`,r,`calcMode`,e=>M[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,`maxIterations`,e.INT_COPY),e.copyFromAttribute(t,`iterateDelta`,r,`maxIterateChange`,e.FLOAT_COPY),n.calc=r}processSheetRefs(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);n.nodeType===1&&n.localName===`sheet`&&this.processSheetRef(e,n,r)}n.sheets=r}processSheetRef(e,t,n){let r={};e.copyFromAttribute(t,`name`,r,`name`),e.copyFromAttribute(t,`state`,r,`visibility`);let i=t.getAttribute(`r:id`),a=e.getRef(i);a&&(r.sheet=a),n.push(r)}processExternalReferences(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`externalReference`){let t=n.getAttribute(`r:id`),i=t?e.getRef(t):null;r.push(i??null)}}r.length>0&&(n.externalBooks=r)}processBookViews(e,t,n){if(!t)return;let r=t.childNodes,i=0,a=r.length;for(let t=0;i<1&&t<a;t++){let a=r.item(t);a.nodeType===1&&a.localName===`workbookView`&&(this.processWorkbookView(e,a,n),i++)}}processWorkbookView(e,t,n){if(!t)return;let r={};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)}processDefineName(e,t,n,r){if(!t)return;let i={},a=t.firstChild;if(a&&a.nodeType===3&&(i.ref=a.textContent),e.copyFromAttribute(t,`name`,i),e.copyFromAttribute(t,`comment`,i),e.copyFromAttribute(t,`hidden`,i,`hidden`,e.BOOLEAN_COPY),t.hasAttribute(`localSheetId`)){let e=t.getAttribute(`localSheetId`);if(!r[e]?.name)return void console.warn(`Defined name '${t.getAttribute(`name`)}' references a sheet with localSheetId '${e}' which does not exist.`);i.scope=r[e].name}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)}processDefinedNames(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);a.nodeType===1&&a.localName===`definedName`&&this.processDefineName(e,a,r,n.sheets)}r.length>0&&(n.names=r)}processWorkbookPr(e,t,n){t&&e.copyFromAttribute(t,`date1904`,n,`date1904`,e.BOOLEAN_COPY)}afterVisit(e,t,n){}},pe=class{visit(e,t,n){let r={};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),e.copyFromAttribute(t,`totalsRowShown`,r,`totalsRowShown`,e.BOOLEAN_COPY),r}afterVisit(e,t,n){let r=n.v;if(e.evaluate(`autoFilter`,t)){if(Array.isArray(r.hiddenButtons)){let e=r.hiddenButtons.length;e===0?r.hiddenButtons=!1:e===r.columns?.length&&(r.hiddenButtons=!0)}}else r.hiddenButtons=!0,r.showButtons=!1;return r}processTableStyleInfo(e,t,n){if(!t)return;let r=t.childNodes,i={},a=r.length;for(let t=0;t<a;t++){let n=r.item(t);n.nodeType===1&&n.localName===`tableStyleInfo`&&(e.copyFromAttribute(n,`name`,i),e.copyFromAttribute(n,`showColumnStripes`,i,`showColumnStripes`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`showFirstColumn`,i,`showFirstColumn`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`showLastColumn`,i,`showLastColumn`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`showRowStripes`,i,`showRowStripes`,e.BOOLEAN_COPY))}Object.keys(i).length>0&&(n.style=i)}processTableColumn(e,t,n){if(!t)return null;let r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);if(i.nodeType===1&&i.localName===`tableColumn`){let t={};e.copyFromAttribute(i,`name`,t),e.copyFromAttribute(i,`id`,t),e.copyFromAttribute(i,`uniqueName`,t),e.copyFromAttribute(i,`queryTableFieldId`,t),e.copyFromAttribute(i,`totalsRowLabel`,t);let r=i.getAttribute(`totalsRowFunction`);if(r!==null)if(r===`custom`){let n=e.evaluate(`totalsRowFormula`,i);n&&(t.totalsRowFormula=n.textContent)}else t.totalsRowFormula=r;e.copyFromAttribute(i,`totalsRowLabel`,t),n.push(t)}}return n}processTableColumns(e,t,n){let r=t.childNodes,i=[],a=r.length;for(let t=0;t<a;t++){let n=r.item(t);n.nodeType===1&&n.localName===`tableColumns`&&this.processTableColumn(e,n,i)}i.length>0&&(n.columns=i)}},me=class{visit(e,t,n){let r=e.getVisitorParamsState().get(`ref`);if(r){let n=e.getVisitorParamsState().get(`descriptions`);n&&(n.add(r,t.getAttribute(`altText`)),n.add(r,t.getAttribute(`altTextSummary`)))}return e.copyFromAttribute(t,`altText`,n),e.copyFromAttribute(t,`altTextSummary`,n),n}},he=class{visit(e,t,n){let r=t.childNodes,i=r.length,a=null;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType===1){t.localName===`externalBook`&&(a=t);break}}return a?(t.getAttribute(`mc:Ignorable`)&&(n.mceIgnorable=!0),n.sheetNames=[],this.processSheetNames(e,a,n),this.processDefinedNames(e,a,n),this.processSheetDataSet(e,a,n),n):n}processSheetNames(e,t,n){let r=this._findChild(t,`sheetNames`);if(!r)return;let i=r.childNodes,a=i.length;for(let e=0;e<a;e++){let t=i.item(e);t.nodeType===1&&t.localName===`sheetName`&&n.sheetNames.push(t.getAttribute(`val`)??``)}}processDefinedNames(e,t,n){let r=this._findChild(t,`definedNames`);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let e=0;e<o;e++){let t=a.item(e);if(t.nodeType!==1||t.localName!==`definedName`)continue;let n=t.getAttribute(`name`);if(!n)continue;let r={name:n,refersTo:t.getAttribute(`refersTo`)??``},o=t.getAttribute(`sheetId`);o!==null&&(r.sheetIndex=parseInt(o,10)),i.push(r)}i.length>0&&(n.definedNames=i)}processSheetDataSet(e,t,n){let r=this._findChild(t,`sheetDataSet`);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1||n.localName!==`sheetData`)continue;let r=n.getAttribute(`sheetId`);if(r===null)continue;let o=this.processSheetData(e,n);o.sheetIndex=parseInt(r,10),n.getAttribute(`refreshError`)===`1`&&(o.refreshError=!0),i.push(o)}i.length>0&&(n.sheetDataSet=i)}processSheetData(e,t){let r=new n.n.Builder,i=t.childNodes,a=i.length;for(let e=0;e<a;e++){let t=i.item(e);if(t.nodeType!==1||t.localName!==`row`)continue;let a=t.childNodes,o=a.length;for(let e=0;e<o;e++){let t=a.item(e);if(t.nodeType!==1||t.localName!==`cell`)continue;let i=t.getAttribute(`r`);if(!i)continue;let o=n.Rt.fastStringToCell(i);if(o?.rowIndex===void 0||o?.colIndex===void 0)continue;let s=this._readCellValue(t);s!==void 0&&r.pushAt(o.rowIndex,o.colIndex,s)}}return{sheetIndex:-1,data:r.build()?.tuples??[]}}_readCellValue(e){let n=this._findChild(e,`v`)?.textContent?.trim();if(n!==void 0&&n!==``)switch(e.getAttribute(`t`)){case null:case`n`:return parseFloat(n);case`b`:return n===`1`||n===`true`;case`str`:default:return n;case`e`:{let e=t.a.getBuiltInByLabel(n);return e?{t:`e`,v:e.getCode()}:n}}}_findChild(e,t){let n=e.childNodes,r=n.length;for(let e=0;e<r;e++){let r=n.item(e);if(r.nodeType===1&&r.localName===t)return r}return null}},ge=class{visit(e,t,n){e.copyFromAttribute(t,`name`,n),e.copyFromAttribute(t,`sourceName`,n);let r=e.evaluate(`*/tableSlicerCache`,t);return r?(e.copyFromAttribute(r,`tableId`,n),e.copyFromAttribute(r,`column`,n,`columnId`),e.copyFromAttribute(r,`crossFilter`,n),n):(console.warn(`SlicerCacheDefinitionVisitor: missing tableSlicerCache element`),n)}},_e=class{visit(e,t,n){let r=n.slicers;r||(r={},n.slicers=r);let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);n.nodeType===1&&n.localName===`slicer`&&this.processSlicer(e,n,r)}return r}processSlicer(e,t,n){if(!t)return;let r={};n[t.getAttribute(`name`)]=r;let i=t.getAttribute(`cache`),a=e.getVisitorParamsState().get(`slicerCaches`);if(i){let e=a.get(i);e&&(r.columnId=e.columnId,r.tableId=e.tableId)}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,`locked`,r,`locked`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`rowHeight`,r,`rowHeight`,e.INT_COPY)}},ve=class{visit(e,t,n){return n}},Q=class{visit(e,t,n){if(!t)return;let r={};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}processAbsoluteCoord(e,t,n,r,i,a){if(!t)return;let s={x:0,y:0};return s.x=o.i(t.getAttribute(i)),s.y=o.i(t.getAttribute(a)),r===`from`?n.tl=s:n.br=s,n}processOffsetCoord(e,t,n,r){if(!t)return;let i={c:0,r:0,x:0,y:0};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=o.i(e.evaluate(`colOff`,t).textContent)),e.evaluate(`rowOff`,t)&&(i.y=o.i(e.evaluate(`rowOff`,t).textContent)),r===`from`?n.tl=i:n.br=i,n}},ye=class extends N{visit(e,t,n){if(!t)return;n=super.visit(e,t,n);let r=e.evaluate(`nvGraphicFramePr/cNvGraphicFramePr`,t);if(r){let t=e.evaluate(`graphicFrameLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}let i={type:`graphicFrame`,json:{}},a=e.evaluate(`graphic/graphicData`,t).childNodes,s=a.length;for(let n=0;n<s;n++){let r=a.item(n);if(r.nodeType===1)try{let n=r.localName;n===`chart`?n=`chart`:n===`slicer`&&(n=`slicer`),i.type=n;let a=r.getAttribute(`r:id`);if(n===`chart`&&a){let n=e.evaluate(`*/cNvPr`,t);n?.item&&(n=n.item(0));let r,s=n?.getAttribute?.(`id`),c=s?parseInt(s,10):void 0,l=e.getRelationships().get(a);if(l?.target){let t=e.getFileLocation(),n=t.slice(0,t.lastIndexOf(`/`)+1);r=o.u(l.target.startsWith(`/`)?l.target:n+l.target)}i.json={xml:e.serializeElement(t)??void 0,sourceId:c===void 0||isNaN(c)?void 0:c,chartRelId:a,chartTargetPath:r}}else a&&(i.json=e.getRef(a))}catch(e){console.warn(`Unable to parse graphicFrame`,e)}}return i&&(n.content=i),i}},be=P,$=class extends N{visit(e,t,n){if(!t)return;let r=super.visit(e,t,n),i=e.evaluate(`nvPicPr/cNvPicPr`,t);if(i){e.copyFromAttribute(t,`preferRelativeResize`,r,`preferRelativeResize`,e.BOOLEAN_COPY);let n=e.evaluate(`picLocks`,i);if(n){n.hasAttribute(`noChangeAspect`)&&(r.lockAspect=n.getAttribute(`noChangeAspect`)===`1`);let t={};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)}}let a,o=e.evaluate(`blipFill/blip`,t);if(o){let t;if(t=o.getAttribute(`r:embed`)??o.getAttribute(`embed`),t||=o.getAttribute(`r:link`)??o.getAttribute(`link`),!t)return void console.warn(`no rId found for blip`,o);a=e.getRef(t,!0)}return n.content={type:`picture`,json:{resId:a}},r}},xe=class extends P{visit(e,t,n){if(!t)return;n=super.visit(e,t,n);let r=e.evaluate(`nvGrpSpPr/cNvGrpSpPr`,t);if(r){let t=e.evaluate(`grpSpLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}e.warn(`Unable to import '${n.name}', group shapes are not supported.`);let i={};return n.content={type:`grpSp`,json:i},i}},Se=class extends P{visit(e,t,n){if(!t)return;n=super.visit(e,t,n);let r=e.evaluate(`nvCxnSpPr/cNvCxnSpPr`,t);if(r){let t=e.evaluate(`cxnSpLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}e.warn(`'${n.name}' is not editable; imported as a fixed drawing.`);let i=e.evaluate(`*/cNvPr`,t);i?.item&&(i=i.item(0));let a=i?.getAttribute?.(`id`),o=a?parseInt(a,10):void 0,s={type:`cxnSp`,xml:e.serializeElement(t)??void 0,sourceId:o===void 0||isNaN(o)?void 0:o};return n.content={type:`cxnSp`,json:s},s}},Ce=class{visit(e,t,n){let r=[],i=new Map,a={cells:[],values:[]},o=t.childNodes;for(let e=0;e<o.length;e++){let t=o.item(e);if(t.nodeType===1)switch(t.localName){case`metadataTypes`:this._parseMetadataTypes(t,r,i);break;case`futureMetadata`:this._attachFutureMetadata(t,i);break;case`cellMetadata`:this._resolveBlocks(t,r,a.cells);break;case`valueMetadata`:this._resolveBlocks(t,r,a.values)}}return n.metadata=a,a}_parseMetadataTypes(e,t,n){let r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType===1&&i.localName===`metadataType`){let e=this._parseMetadataType(i);t.push(e),n.set(e.name,e)}}}_parseMetadataType(e){let t={name:e.getAttribute(`name`)??``,_blocks:[]},n=e.getAttribute(`minSupportedVersion`);n!=null&&(t.minSupportedVersion=Number(n));for(let n of[`copy`,`pasteAll`,`pasteValues`,`merge`,`splitFirst`,`splitAll`,`rowColShift`,`clearFormats`,`clearComments`,`assign`,`coerce`,`cellMeta`,`adjust`,`trans`,`delete`,`edit`])e.getAttribute(n)===`1`&&(t[n]=!0);return t}_attachFutureMetadata(e,t){let n=e.getAttribute(`name`)??``,r=t.get(n);if(!r)return;let i=e.childNodes;for(let e=0;e<i.length;e++){let t=i.item(e);t.nodeType===1&&t.localName===`bk`&&r._blocks.push(this._parseFutureBlock(t))}}_parseFutureBlock(e){let t={},n=e.childNodes;for(let e=0;e<n.length;e++){let r=n.item(e);if(r.nodeType!==1||r.localName!==`extLst`)continue;let i=r.childNodes;for(let e=0;e<i.length;e++){let n=i.item(e);if(n.nodeType!==1||n.localName!==`ext`)continue;let r=n.childNodes;for(let e=0;e<r.length;e++){let n=r.item(e);n.nodeType===1&&(n.localName===`dynamicArrayProperties`?(t.fDynamic=n.getAttribute(`fDynamic`)===`1`,t.fCollapsed=n.getAttribute(`fCollapsed`)===`1`):n.localName===`rvb`&&(t.richValueIndex=Number(n.getAttribute(`i`)??`0`)))}}}return t}_resolveBlocks(e,t,n){let r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);i.nodeType===1&&i.localName===`bk`&&n.push(this._resolveBlock(i,t))}}_resolveBlock(e,t){let n=new Map,r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType!==1||i.localName!==`rc`)continue;let a=Number(i.getAttribute(`t`)),o=Number(i.getAttribute(`v`)),s=t[a-1];if(!s)continue;let{_blocks:c,...l}=s,u={...l};for(let e of Object.keys(u))u[e]===void 0&&delete u[e];let d=c[o];d&&(d.fDynamic!==void 0&&(u.fDynamic=d.fDynamic,u.fCollapsed=d.fCollapsed??!1),d.richValueIndex!==void 0&&(u.richValueIndex=d.richValueIndex)),n.set(s.name,u)}return n}},we=class{visit(e,t,n){let r=e.getVisitorParamsState().get(F);r||(r=[],e.getVisitorParamsState().set(F,r));let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`s`){let t={type:n.getAttribute(`t`)??`n`,keys:[]};this.processKeys(e,n,t),r.push(t)}}return n.richTypes=r,r}processKeys(e,t,n){let r=t.childNodes,i=r.length,a=n.keys;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType===1&&t.localName===`k`){let e=t.getAttribute(`n`),n=t.getAttribute(`t`);a.push([e,n])}}}},Te=class{visit(e,t,n){let r=e.getVisitorParamsState().get(`richTypes`);if(!r)return void e.warn(`RichValueFound but not type.`);let i=e.getVisitorParamsState().get(I);i||(i=[],e.getVisitorParamsState().set(I,i));let a=t.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType===1&&n.localName===`rv`){let t=r[n.getAttribute(`s`)],a={type:t.type};this.processValues(e,n,a,t);let o=this.mapType(e,a);i.push(o)}}return n.richData=i,i}mapType(e,n){if(n.type===`_error`){let e=n.errorType;if(e)try{n=t.a.getBuiltInByCode(e+1)??t.a.BuiltIn.Unknown}catch{}}return n}processValues(e,t,n,r){let i=t.childNodes,a=i.length;r.type;let o=r.keys;for(let t=0;t<a;t++){let r=i.item(t);if(r.nodeType===1&&r.localName===`v`){let i=o[t];if(!i)return void e.warn(`Invalid richData`);let a=i[0],s=i[1],c=r.textContent;s===`i`&&(c=Number(c)),n[a]=c}}}},Ee=class{visit(e,t,n){if(!t)return;let r=[];this.processAuthors(e,e.evaluate(`authors`,t),r),r.length>0&&(n.authors=r);let i=[];return n.comments=i,i}processAuthors(e,t,n){if(!t)return;let r=t.childNodes,i=r.length;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType===1&&t.localName===`author`){let e=t.firstChild;e&&e.nodeType===3&&n.push(e.textContent)}}}},De=class{visit(e,t,n){if(!t)return;let r={},i=t.getAttribute(`ref`);e.copyFromAttribute(t,`authorId`,r,`personId`,e.INT_COPY),r.asNote=!0;let a={r:i,v:r};return n.push(a),r}},Oe=class{visit(e,t,n){if(!t)return;let r=[];return n.comments=r,r}},ke=class{visit(e,t,n){if(!t)return;let r={};e.copyFromAttribute(t,`id`,r,`id`,o.d);let i=t.getAttribute(`ref`);e.copyFromAttribute(t,`personId`,r,`personId`,o.d),e.copyFromAttribute(t,`parentId`,r,`parentId`,o.d),e.copyFromAttribute(t,`dT`,r),t.hasAttribute(`done`)&&(r.done=o.p(t.getAttribute(`done`)));let a={r:i,v:r};return n.push(a),r}},Ae=class{visit(e,t,n){let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`person`){let t={};e.copyFromAttribute(n,`id`,t,`id`,o.d),e.copyFromAttribute(n,`displayName`,t),e.copyFromAttribute(n,`userId`,t,`userId`,o.d),e.copyFromAttribute(n,`providerId`,t),r.push(t)}}return r.length>0&&(n.persons=r),r}},je=class{constructor(e,t){this.path=e,this.visitor=t}};exports.DOMTransformer=class{constructor(){this.visitorsByXmlTagName=new Map,this.scopedVisitorsByXmlTagName=new Map,this.visitorParamsState=null,this.registerVisitor(`Relationships`,new ee),this.registerVisitor(`cp:coreProperties`,new te),this.registerVisitor(`Properties`,new ne),this.registerVisitor(`spPr`,new R),this.registerVisitor(`txBody`,new K),this.registerVisitor(`txPr`,new K),this.registerVisitor(`c:chartSpace`,new re),this.registerVisitor(`c:plotArea`,new L),this.registerVisitor(`c:barChart`,new z),this.registerVisitor(`c:doughnutChart`,new B),this.registerVisitor(`c:lineChart`,new B),this.registerVisitor(`c:ofPieType`,new B),this.registerVisitor(`c:pieChart`,new B),this.registerVisitor(`c:scatterChart`,new B),this.registerVisitor(`c:barChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:doughnutChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:lineChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:ofPieType`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:pieChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:scatterChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:ser`,new H),this.registerVisitor(`c:dPt`,new U),this.registerVisitor(`c:marker`,new W),this.registerVisitor(`c:catAx`,new G),this.registerVisitor(`c:valAx`,new G),this.registerVisitor(`c:dateAx`,new G),this.registerVisitor(`c:majorGridlines`,new S(`gridLinesMajor`)),this.registerVisitor(`c:minorGridlines`,new S(`gridLinesMinor`)),this.registerVisitor(`c:chartSpace`,null,`txPr`),this.registerVisitor(`c:catAx`,new K(`labels.text`),`txPr`),this.registerVisitor(`c:valAx`,new K(`labels.text`),`txPr`),this.registerVisitor(`c:dateAx`,new K(`labels.text`),`txPr`),this.registerVisitor(`c:legend`,new J),this.registerVisitor(`c:legend`,new K(`labels.text`),`txPr`),this.registerVisitor(`c:legendEntry`,new q),this.registerVisitor(`c:ser`,new Y,`extLst/ext/invertSolidFillFmt/spPr`),this.registerVisitor(`c:ser`,new V(`labels`),`dLbls`),this.registerVisitor(`c:dLbl`,new V(`points`)),this.registerVisitor(`c:title`,new X),this.registerVisitor(`c:title`,null,`tx/rich`),this.registerVisitor(`c:title`,null,`txPr`),this.registerVisitor(`c:layout`,new ie),this.registerVisitor(`c:dispUnits`,new S(`dispUnits`)),this.registerVisitor(`c:dispUnitsLbl`,new X(`displayUnitsLabel`)),this.registerVisitor(`c:dispUnitsLbl`,new K,`tx/rich`),this.registerVisitor(`a:theme`,new ae),this.registerVisitor(`a:theme`,new oe,`themeElements/clrScheme`),this.registerVisitor(`a:theme`,new se,`themeElements/fontScheme`),this.registerVisitor(`a:theme`,new ce,`themeElements/fmtScheme`),this.registerVisitor(`autoFilter`,new ue),this.registerVisitor(`sortState`,new de),this.registerVisitor(`s:workbook`,new fe),this.registerVisitor(`styleSheet`,new Z),this.registerVisitor(`x14:table`,new me),this.registerVisitor(`table`,new pe),this.registerVisitor(`externalLink`,new he),this.registerVisitor(`hlinkClick`,new le),this.registerVisitor(`wsDr`,new ve),this.registerVisitor(`twoCellAnchor`,new Q),this.registerVisitor(`oneCellAnchor`,new Q),this.registerVisitor(`absoluteAnchor`,new Q),this.registerVisitor(`graphicFrame`,new ye),this.registerVisitor(`sp`,new be),this.registerVisitor(`grpSp`,new xe),this.registerVisitor(`cxnSp`,new Se),this.registerVisitor(`pic`,new $),this.registerVisitor(`metadata`,new Ce),this.registerVisitor(`rvStructures`,new we),this.registerVisitor(`rvData`,new Te),this.registerVisitor(`comments`,new Ee),this.registerVisitor(`comment`,new De),this.registerVisitor(`comment`,new K(`content`),`text`),this.registerVisitor(`ThreadedComments`,new Oe),this.registerVisitor(`threadedComment`,new ke),this.registerVisitor(`threadedComment`,new K(`content`),`text`),this.registerVisitor(`personList`,new Ae),this.registerVisitor(`slicerCacheDefinition`,new ge),this.registerVisitor(`slicers`,new _e)}registerVisitor(e,t,n=null){e.indexOf(`:`)===-1&&(e=`*:`+e);let r=e.split(`:`),i=r.length>1?r[1]:r[0];if(!n)return this.visitorsByXmlTagName.set(i,t),void this.visitorsByXmlTagName.set(e,t);let a=this.scopedVisitorsByXmlTagName.get(i);a||(a=[],this.scopedVisitorsByXmlTagName.set(i,a),this.scopedVisitorsByXmlTagName.set(e,a)),a.push(new je(n,t))}parseDxf(e,t=``){this.visitorParamsState||=new Map;let n=this.visitorParamsState,r=n.get(`processingDXFs`);n.set(`processingDXFs`,!0);try{let n=new f(null,this,`/dxf`,e,{},t),r={};return new Z().processDXF(n,e,r),r}finally{r===void 0?n.delete(`processingDXFs`):n.set(`processingDXFs`,r)}}getVisitorParamsState(){return this.visitorParamsState}transform(t,n,r=e.A.EmptyObject){let i=t.documentElement;this.visitorParamsState&&!r?.paramMap||(this.visitorParamsState=r?.paramMap??new Map);let a={},o=this.visitorsByXmlTagName.get(i.nodeName);if(o||=this.visitorsByXmlTagName.get(i.localName),!o)throw Error(`A visitor for the root element: '${i.nodeName}' or '${i.localName}' must be registered.`);let s=`/`+i.localName,c=new f(null,this,s,i,a,n,r),l=[];this._doWalk(o,c,l,i,a,n,r);let u=l.length;for(let e=0;e<u;e++){let t=l[e];try{t.visitor?.afterVisit?.(t.context,t.elemParent,t.jsonParent)}catch(e){console.warn(`Error in afterVisit: ${t.context.getPath()}`,e)}}return a}_walkScoped(e,t,n,r,i,a,o){let s=this.scopedVisitorsByXmlTagName.get(e),c=s?s.length:0;for(let l=0;l<c;l++){let c=s[l],u=null;try{u=t.evaluate(c.path,r)}catch{console.warn(`"Invalid path '${c.path}' for '${e}'.`)}if(!u)continue;let d=e=>{let s=e.localName,l=e.parentNode;for(;l&&l!==r;)s=l.localName+`/`+s,l=l.parentNode;let u=t.getPath()+`/`+s;if(c.visitor){let r=new f(t,this,u,t.getElemRoot(),t.getJsonRoot(),a,o);this._doWalk(c.visitor,r,n,e,i,a,o)}};if(u.length>0){let e=u,t=e.length;for(let n=0;n<t;n++)d(e.item(n))}else d(u)}}_doWalk(e,t,n,r,i,a,o){let s=null;e&&(n.push({visitor:e,context:t,elemParent:r,jsonParent:i}),s=e.visit(t,r,i)),s||=i;let c=r.localName;this._walkScoped(c,t,n,r,s,a,o);let l=this.visitorsByXmlTagName,u=t.getElemRoot(),d=t.getJsonRoot(),p=r.childNodes,m=p.length;for(let e=0;e<m;e++){let r=p.item(e);if(r.nodeType!==1)continue;let c=r,m=c.nodeName,h=l.get(m);h||=(m=c.localName,l.get(m));let g=t.getPath()+`/`+m,_=new f(t,this,g,u,d,a,o);this._doWalk(h,_,n,c,s??i,a,o)}return s}},exports.ExecutionContext=f,exports.NumberUtils=o.r,exports.VisitorUtils=p;
@@ -1 +0,0 @@
1
- var e=class{constructor(e){this._worker=null,this._nextId=1,this._pendingRequests=new Map,this._workerFactory=e}start(){if(typeof Worker>`u`)throw Error(`Web Workers are not supported in this environment.`);return this._worker||(this._worker=this._workerFactory(),this._worker.onmessage=e=>{let{id:t,result:n,error:r}=e.data,i=this._pendingRequests.get(t);if(i)if(this._pendingRequests.delete(t),r){let e=Error(r.message);e.stack=r.stack,r.cause&&(e.cause=r.cause),i.reject(e)}else i.resolve(n)},this._worker.onerror=e=>{console.error(`Worker error:`,e),this._pendingRequests.forEach(t=>{t.reject(Error(`Worker failed: ${e.message}`))}),this._pendingRequests.clear(),this._worker=null}),Promise.resolve()}execute(e){if(!this._worker)throw Error(`Worker is not initialized. Call start() first.`);let t=this._nextId++;return new Promise((n,r)=>{this._pendingRequests.set(t,{resolve:n,reject:r}),this._worker.postMessage({id:t,params:e})})}terminate(){this._worker&&=(this._worker.terminate(),null)}},t=class{constructor(e){this._onExecute=e}execute(e){return this._onExecute(e)}start(){return Promise.resolve()}terminate(){}},n="var e=Object.defineProperty,t=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},n=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},r=Object.defineProperty,i=(e,t)=>{\n/**\n* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.28-beta.4\n*\n* (C) 2026-present SheetXL Inc. & Michael T. Ford\n* License: The license can be found at https://www.sheetxl.com/license.\n*/\nlet n={};for(var i in e)r(n,i,{get:e[i],enumerable:!0});return t||r(n,Symbol.toStringTag,{value:`Module`}),n},a={Column:`column`,Row:`row`};({...a});function o(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;let n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!o(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;for(r of e.entries())if(!o(r[1],t.get(r[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if((n!==`_owner`||!e.$$typeof)&&!o(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function s(e){let t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||function(e){return e.$$typeof===c}(e)}var c=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function l(e){return function(e){return!!e&&typeof e==`object`}(e)&&!s(e)}function u(e,t){return!1!==t.clone&&t.isMergeableObject(e)?h((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function d(e,t,n){return e.concat(t).map(function(e){return u(e,n)})}function f(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function p(e,t){try{return t in e}catch{return!1}}function m(e,t,n){let r={};return n.isMergeableObject(e)&&f(e).forEach(function(t){r[t]=u(e[t],n)}),f(t).forEach(function(i){(function(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(p(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return h;let n=t.customMerge(e);return typeof n==`function`?n:h}(i,n)(e[i],t[i],n):r[i]=u(t[i],n))}),r}function h(e,t,n){(n||={}).arrayMerge=n.arrayMerge||d,n.isMergeableObject=n.isMergeableObject||l,n.cloneUnlessOtherwiseSpecified=u;let r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):m(e,t,n):u(t,n)}h.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return h(e,n,t)},{})};var g=i({DonePromise:()=>y,EmptyArray:()=>_,EmptyObject:()=>v,OSType:()=>k,arrayMove:()=>ge,asNumber:()=>T,camelToPrettyCase:()=>S,castToString:()=>_e,cloneObject:()=>ne,consoleWithNoSource:()=>De,deepEqual:()=>o,deepFreeze:()=>Oe,deepMerge:()=>h,diffValues:()=>pe,findEqualOrGreater:()=>me,findEqualOrLesser:()=>he,getFromPath:()=>Te,getPlatform:()=>A,isDefined:()=>ye,isEmpty:()=>be,isEqualArrays:()=>ie,isEqualBounds:()=>ae,isNullOrUndefined:()=>ve,isNumeric:()=>E,isObject:()=>O,isPromiseLike:()=>xe,isRectInsideRect:()=>Ce,isRectIntersect:()=>Se,mergeContentful:()=>fe,removeEmptyProperties:()=>oe,removeEqualValues:()=>ue,removeEqualValuesLayered:()=>de,removeListenerAll:()=>se,roundAccurately:()=>te,setToPath:()=>Ee,splitNumber:()=>ee,subtractRect:()=>we,textToKey:()=>C,toSafeJSON:()=>j,transpose:()=>ce,uuidV4:()=>w,validEnumValue:()=>x}),_=Object.freeze([]),v=Object.freeze({}),y=Promise.resolve(),b=e=>e;function x(e,t){if(!Object.values(e).includes(t))throw Error(`Invalid type: ${t??`null`}. Must be one of: ${Object.values(e).join(`, `)}.`)}function S(e){return e?e.length===1?e.toUpperCase():e.replace(/([A-Z])/g,` $1`).replace(/^./,function(e){return e.toUpperCase()}).trim():``}function C(e){return e.replace(/[^a-zA-Z0-9]/g,``).toLowerCase()}function w(){return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(e){let t=16*Math.random()|0;return(e===`x`?t:3&t|8).toString(16)})}function T(e){let t=function(e){return 1*e}(e);return Number.isFinite(t)?t:0}function E(e){let t=1*e;return Number.isFinite(t)&&typeof t==`number`}var D=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,0xe8d4a51000,0x9184e72a000,0x5af3107a4000,0x38d7ea4c68000,0x2386f26fc10000];function ee(e){let t=Math.abs(e);if(!Number.isFinite(t))return null;let n=Math.trunc(t),r=t-n,i;n>2**53-1?i=Number(n.toExponential().split(`e`)[1])+1:(i=Math.ceil(Math.log10(n+1)),D[i]<=n&&i++);let a=0,o=0,s=15-i;if(r>0&&s>0){let e=D[s];if(a=Math.round(r*e),a===e)n++,a=0,n>=D[i]&&i++;else if(a>0)for(o=s;a%10==0;)a/=10,o--}return{ip:e<0?-n:n,fp:a,ipLength:i,fpLength:o}}function te(e,t=0){if(e==null||!isFinite(e))return null;let n=10**t;return Number(Math.round(e*n)/n)}function ne(e){return ve(e)?e:JSON.parse(JSON.stringify(e))}var re=(e,t)=>e===t;function ie(e,t,n){if(e===t)return!0;if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;n||=re;let r=e.length;for(let i=0;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function ae(e,t){return e===t||!(!e||!t)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function O(e){return typeof e==`object`&&!Array.isArray(e)&&e!==null}function oe(e){if(typeof e!=`object`||Array.isArray(e)||e===null)return e;let t=e;return Object.keys(t).forEach(function(e){t[e]&&typeof t[e]==`object`?oe(t[e]):t[e]!==null&&t[e]!==void 0||delete t[e],typeof t[e]==`object`&&Object.keys(t[e]).length===0&&delete t[e]}),Object.keys(e).length===0?null:e}function se(e,t){if(!e)return _;let n=e.length;for(let r=0;r<n;r++){let n=e[r];n&&n(t)}return _}function ce(e){if(!e)return e;let t=e.length,n=e[0].length,r=[];for(let e=0;e<n;e++)r[e]=Array(t);for(let i=0;i<t;i++){let t=e[i];for(let e=0;e<n;e++)r[e][i]=t[e]}return r}var le=(e,t)=>!(e!==t&&!ie(e,t))||!!e.isEqual?.(t);function ue(e,t,n=le){if(e==null||e===t)return null;if(!e||typeof e!=`object`||Array.isArray(e)||e.isImmutable?.())return n(e,t)?null:e;let r=Object.keys(e),i=r.length;if(i===0)return null;let a=!1;for(let o=0;o<i;o++){let i=r[o];ue(e[i],t?.[i],n)===null&&(a=!0,delete e[i])}return a&&Object.keys(e).length===0?null:void 0}function de(e,t,n=le){if(e==null)return!0;if(!e||typeof e!=`object`||Array.isArray(e)||e.isImmutable?.()){let r,i=!1;for(let e=0;!i&&e<t.length;e++)t[e]!==void 0&&(i=!0,r=t[e]);return i&&(e===r||n(e,r))}let r=Object.keys(e),i=r.length;if(i===0)return!0;let a=t.length,o=!1;for(let s=0;s<i;s++){let i=r[s],c=[];for(let e=0;e<a;e++){let n=t[e]?.[i];n!==void 0&&c.push(n)}de(e[i],c,n)&&(o=!0,delete e[i])}return o&&Object.keys(e).length===0}function fe(...e){let t=e.length;if(t>0&&e[t-1]!==void 0&&!O(e[t-1]))return e[t-1];let n=e[0]||{};for(let r=1;r<t;r++)n=h(n,e[r]||{},{arrayMerge:(e,t)=>[...t]});return n}function pe(e,t){let n={},r=Object.keys(t),i=r.length;for(let a=0;a<i;a++){let i=r[a],o=e[i],s=t[i];o!==s&&(n[i]=o===void 0?s:o)}return Object.keys(n).length===0?null:n}function me(e,t,n=b){let r=0,i=e.length-1;for(;r<=i;){let a=Math.floor((r+i)/2),o=n(e[a]);if(o===t)return a;o<t?r=a+1:i=a-1}return r}function he(e,t,n=b){let r=e.length-1,i=0;for(;r>=i;){let a=Math.floor((r+i)/2),o=n(e[a]);if(o===t)return a;o>t?r=a-1:i=a+1}return r}function ge(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function _e(e){return e==null||e===void 0?``:typeof e==`string`?e:``+e}function ve(e){return e==null}function ye(e){return e!=null}function be(e){return e==null||e===``}function xe(e){return!!e&&typeof e.then==`function`}function Se(e,t){return!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top)}function Ce(e,t){return e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right}function we(e,t,n=!1){if(!t)return[e];if(!Se(e,t))return[];let r=[],i=e,a=()=>{t.top>i.top&&t.top<i.bottom&&(r.push({...i,bottom:t.top}),i={...i,top:t.top})},o=()=>{t.bottom>i.top&&t.bottom<i.bottom&&(r.push({...i,top:t.bottom}),i={...i,bottom:t.bottom})},s=()=>{t.right>i.left&&t.right<i.right&&(r.push({...i,left:t.right}),i={...i,right:t.right})},c=()=>{t.left>i.left&&t.left<i.right&&(r.push({...i,right:t.left}),i={...i,left:t.left})};return n?(c(),s(),a(),o()):(a(),o(),s(),c()),r}function Te(e,t){let n=t.split(`.`),r=e,i=n.length;for(let e=0;e<i;e++){let t=n[e];if(!r)return null;let i=r[t];if(typeof i==`function`&&(i=i.bind(r)()),!i||!O(i))return i;r=i}return r??null}function Ee(e,t,n){let r=t.split(`.`),i=e;if(!i)throw Error(`Can not set path to a null path.`);let a=r.length;for(let e=0;i&&e<a-1;e++){let t=r[e],n=i[t];if(n??(n={},i[t]=n),!O(n))throw Error(`Can not set path to a non object path.`);i=n}if(typeof n!=`number`&&typeof n!=`boolean`&&typeof n!=`string`&&!O(n))throw Error(`Can not set path to ${n} that is not a a supported primitive.`);return i[r[a-1]]=n,e}function De(...e){return new Promise(t=>{setTimeout(()=>{Function(`console.log.apply(console, arguments)`).apply(null,e),t()})})}var k={Windows:`windows`,MacOS:`macos`,IOS:`ios`,Linux:`linux`,Android:`android`,Safari:`safari`,Firefox:`firefox`,Unknown:`unknown`};function A(){let e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():``;return e?/(win32|win64|windows|wince)/i.test(e)?k.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?k.MacOS:/(iphone|ipad|ipod)/i.test(e)?k.IOS:/android/.test(e)?k.Android:/linux/.test(e)?k.Linux:/^((?!chrome|android|).)*safari/i.test(e)?k.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?k.Firefox:k.Unknown:k.Unknown}function Oe(e){Object.freeze(e);let t=e;return Object.keys(t).forEach(e=>{typeof t[e]!=`object`||t[e]===null||Object.isFrozen(t[e])||Oe(t[e])}),e}function j(e){if(typeof e!=`object`||!e)return e;if(typeof e.toJSON==`function`)return e.toJSON();if(Array.isArray(e))return e.map(e=>j(e));if(typeof e.toString==`function`&&e.toString!==Object.prototype.toString)return e.toString();let t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=j(e[n]));return t}i({EmptyCell:()=>ke,EmptyRange:()=>Ae,EmptyRanges:()=>je,EmptySelection:()=>Me,cellToRange:()=>Xe,columnFirstCellComparator:()=>Le,columnFirstRangeComparator:()=>Ne,createCellComparator:()=>He,createConflatingRanges:()=>dt,createRangeComparator:()=>Ve,defaultRange:()=>st,extendRangeToIntersectingRanges:()=>rt,extendRangeToUnionRanges:()=>nt,intersectRanges:()=>Ze,isCellWithinRange:()=>Ge,isEqualCells:()=>Ue,isEqualRanges:()=>We,isEqualRangesArrays:()=>Je,isEqualSelectionCoords:()=>$e,isRangeWithinRange:()=>Ke,isRangesIntersect:()=>qe,isSingleCell:()=>Ye,isValidRange:()=>tt,mergeRangeCoordValues:()=>ut,reverseColumnFirstCellComparator:()=>Be,reverseColumnFirstRangeComparator:()=>Ie,reverseRowFirstCellComparator:()=>ze,reverseRowFirstRangeComparator:()=>Fe,rowFirstCellComparator:()=>Re,rowFirstRangeComparator:()=>Pe,sanitizeRange:()=>at,sanitizeRangeArray:()=>ot,translateRange:()=>it,unionRanges:()=>Qe,unionRangesArrays:()=>et});var ke=Object.freeze({colIndex:0,rowIndex:0}),Ae=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),je=_,Me=Object.freeze({cell:ke,ranges:_,rangeIndex:-1});function Ne(e,t){return e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart}function Pe(e,t){return e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart}function Fe(e,t){return e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd}function Ie(e,t){return e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd}function Le(e,t){return e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex}function Re(e,t){return e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex}function ze(e,t){return e.rowIndex===t.rowIndex?t.colIndex-e.colIndex:t.rowIndex-e.rowIndex}function Be(e,t){return e.colIndex===t.colIndex?t.rowIndex-e.rowIndex:t.colIndex-e.colIndex}function Ve(e=a.Row,t=!1){return t?e===a.Column?Ie:Fe:e===a.Column?Ne:Pe}function He(e=a.Row,t=!1){return t?e===a.Column?Be:ze:e===a.Column?Le:Re}function Ue(e,t){return e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex&&e.scope===t.scope}function We(e,t){return e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd&&e.scope===t.scope}function Ge(e,t){if(!e||!t)return!1;let n=e.rowIndex;if(n<t.rowStart||n>t.rowEnd)return!1;let r=e.colIndex;return!(r<t.colStart||r>t.colEnd)}function Ke(e,t){return!(!e||!t)&&!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd)&&!(e.colStart<t.colStart||e.colEnd>t.colEnd)}function qe(e,t){return!(!e||!t)&&!(e.colStart>t.colEnd||t.colStart>e.colEnd)&&!(e.rowStart>t.rowEnd||t.rowStart>e.rowEnd)}function Je(e,t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!We(e[n],t[n]))return!1;return!0}function Ye(e){return!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd}function Xe(e,t){if(!e)return null;let n=t;return n||(n={...e},delete n.colIndex,delete n.rowIndex),n.colStart=e.colIndex??0,n.rowStart=e.rowIndex??0,n.colEnd=e.colIndex??0,n.rowEnd=e.rowIndex??0,n}function Ze(e,t,n){if(!e)return n?t:{...t};if(!t)return n?e:{...e};if(!e&&!t||e.rowStart>t.rowEnd||e.rowEnd<t.rowStart||e.colStart>t.colEnd||e.colEnd<t.colStart)return null;let r=Math.max(e.colStart,t.colStart),i=Math.max(e.rowStart,t.rowStart),a=Math.min(e.colEnd,t.colEnd),o=Math.min(e.rowEnd,t.rowEnd),s=n;return s?(s.colStart=r,s.rowStart=i,s.colEnd=a,s.rowEnd=o):s={colStart:r,rowStart:i,colEnd:a,rowEnd:o},s}function Qe(e,t,n){if(!e&&!t)return null;if(!e)return n?t:{...t};if(!t)return n?e:{...e};let r=Math.min(e.colStart,t.colStart),i=Math.min(e.rowStart,t.rowStart),a=Math.max(e.colEnd,t.colEnd),o=Math.max(e.rowEnd,t.rowEnd),s=n;return s?(s.colStart=r,s.rowStart=i,s.colEnd=a,s.rowEnd=o):s={colStart:r,rowStart:i,colEnd:a,rowEnd:o},s}function $e(e,t){return e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!Ue(e.cell,t.cell)&&Je(e.ranges,t.ranges)}function et(e,t,n){if(!e||e.length===0)return null;if(e.length===1&&!t)return e[0];let r=e[0];for(let t=1;t<e.length;t++)r=Qe(r,e[t],n);return t&&(r=Qe(r,t,n)),r}function tt(e){return!!e&&!(typeof e.colStart!=`number`||e.colStart<0)&&!(typeof e.colEnd!=`number`||e.colEnd<e.colStart)&&!(typeof e.rowStart!=`number`||e.rowStart<0)&&!(typeof e.rowEnd!=`number`||e.rowEnd<e.rowStart)}function nt(e,t){if(!t||t.length===0)return e;let n=e,r=null;for(;!We(n,r);)r=n,n=rt(r,t);return n}function rt(e,t){if(!t||t.length===0)return e;let n={...e};for(let e=0;e<t.length;e++){let r=t[e];qe(n,r)&&(n.rowStart=Math.min(n.rowStart,r.rowStart),n.colStart=Math.min(n.colStart,r.colStart),n.rowEnd=Math.max(n.rowEnd,r.rowEnd),n.colEnd=Math.max(n.colEnd,r.colEnd))}return n}function it(e,t=-e.rowStart,n=-e.colStart,r){return r?(r.colStart=e.colStart+n,r.rowStart=e.rowStart+t,r.colEnd=e.colEnd+n,r.rowEnd=e.rowEnd+t,r):{colStart:e.colStart+n,rowStart:e.rowStart+t,colEnd:e.colEnd+n,rowEnd:e.rowEnd+t}}function at(e,t){return e?e.scope?{colStart:e.colIndex??e.colStart??t?.colStart??0,rowStart:e.rowIndex??e.rowStart??t?.rowStart??0,colEnd:e.colIndex??e.colEnd??t?.colEnd??0,rowEnd:e.rowIndex??e.rowEnd??t?.rowEnd??0,scope:e.scope}:{colStart:e.colIndex??e.colStart??t?.colStart??0,rowStart:e.rowIndex??e.rowStart??t?.rowStart??0,colEnd:e.colIndex??e.colEnd??t?.colEnd??0,rowEnd:e.rowIndex??e.rowEnd??t?.rowEnd??0}:null}function ot(e,t){if(!e)return null;let n=e.length,r=Array(n);for(let i=0;i<n;i++)r[i]=at(e[i],t);return r}function st(e,t,n){return e?n?(n.colStart=e.colStart??t.colStart,n.rowStart=e.rowStart??t.rowStart,n.colEnd=e.colEnd??t.colEnd,n.rowEnd=e.rowEnd??t.rowEnd,n):{colStart:e.colStart??t.colStart,rowStart:e.rowStart??t.rowStart,colEnd:e.colEnd??t.colEnd,rowEnd:e.rowEnd??t.rowEnd}:t}var ct=[null,null],lt=(e,t,n)=>{if(e[0].value===e[1].value)return t};function ut(e,t=2,n,r=a.Row,i){let o=[...e];if(t<=0||e.length<=1)return o;let s=r===a.Column,c=0,l=!1;do{let e=o.sort(Ve(s?a.Row:a.Column));o=[],o.push(e[0]);let t=e.length,u=0,d=e[0],f=d.colStart,p=d.rowStart,m=d.colEnd,h=d.rowEnd;for(let a=1;a<t;a++){let t=e[a],c=!1;if(c=s?d&&p===t.rowStart&&h===t.rowEnd&&m+1===t.colStart:d&&f===t.colStart&&m===t.colEnd&&h+1===t.rowStart,c){let e={colStart:f,rowStart:p,colEnd:s?t.colEnd:m,rowEnd:s?h:t.rowEnd};if(d.value!==void 0&&(e.value=d.value),n){let a=i??[null,null];a[0]=d,a[1]=t,e=n(a,e,r)}if(e){o[u]=e,l=!0,d=e,f=d.colStart,p=d.rowStart,m=d.colEnd,h=d.rowEnd;continue}}o[++u]=t,d=t,f=d.colStart,p=d.rowStart,m=d.colEnd,h=d.rowEnd}c++,s=!s,c===1&&(l=!0)}while(c<t&&l&&o.length>1);return o}function dt(e,t=!1){let n=[],r,i=null,o=-(2**53-1),s=-(2**53-1);return{append:(a,c,l)=>{let u=!0,d=l!==void 0;if(d){let n=e?e(r,l,t):r===l?l:void 0;n===void 0?u=!1:l=n}if(u&&c===s+1&&a===o)return t?i.rowEnd=c:i.colEnd=c,s=c,void(r=l);i&&n.push(i);let f=t?a:c,p=t?c:a;i={colStart:f,rowStart:p,colEnd:f,rowEnd:p},d&&(i.value=l),o=a,s=c,r=l},done:e=>(i&&=(n.push(i),null),e?ut(n,3,!0===e?lt:e,t?a.Column:a.Row,ct):n)}}var M={Up:`up`,Down:`down`,Left:`left`,Right:`right`},N={Html:`text/html`,Plain:`text/plain`,Png:`image/png`};i({findNextCellWithinSelection:()=>ft,traverseHiddenHeaders:()=>P});function P(e,t,n,r){if(!e)return t;let i=t,a=n===M.Right||n===M.Down;for(;;){let t=e(i,!a);if(t===0)return i;let n=a?i+t:i-t;if(r!==void 0&&(a?n>r:n<r))return r;i=n}}function ft(e,t=M.Right,n,r,i,a=null){if(a&&$e(a,e))return e;let o=e.ranges,s=e.rangeIndex,c=o[s];if(!qe({rowStart:e.cell.rowIndex,colStart:e.cell.colIndex,rowEnd:e.cell.rowIndex,colEnd:e.cell.colIndex},c))return e;let l={...e.cell},u=s;switch(t){case M.Right:l.colIndex=P(i,l.colIndex+1,t,c.colEnd+1);break;case M.Left:l.colIndex=P(i,l.colIndex-1,t,c.colStart-1);break;case M.Down:l.rowIndex=P(r,l.rowIndex+1,t,c.rowEnd+1);break;case M.Up:l.rowIndex=P(r,l.rowIndex-1,t,c.rowStart-1)}let d=e=>{if(e){u=s>=o.length-1?0:s+1;let e=o[u];l={colIndex:e.colStart,rowIndex:e.rowStart}}else{u=s<=0?o.length-1:s-1;let e=o[u];l={colIndex:e.colEnd,rowIndex:e.rowEnd}}};if(t===M.Right&&l.colIndex>c.colEnd&&l.rowIndex===c.rowEnd)d(!0);else if(t===M.Left&&l.colIndex<c.colStart&&l.rowIndex===c.rowStart)d(!1);else if(t===M.Down&&l.colIndex===c.colEnd&&l.rowIndex>c.rowEnd)d(!0);else if(t===M.Up&&l.colIndex===c.colStart&&l.rowIndex<c.rowStart)d(!1);else{let e=l.rowIndex,n=l.colIndex;switch(t){case M.Right:n>c.colEnd&&(e=P(r,e+1,t,c.rowEnd+1),n=c.colStart,e>c.rowEnd&&(e=c.rowStart));break;case M.Left:n<c.colStart&&(e=P(r,e-1,t,c.rowStart-1),n=c.colEnd,e<c.rowStart&&(e=c.rowEnd));break;case M.Down:e>c.rowEnd&&(n=P(i,n+1,t,c.colEnd+1),e=c.rowStart,n>c.colEnd&&(n=c.colStart));break;case M.Up:e<c.rowStart&&(n=P(i,n-1,t,c.colStart-1),e=c.rowEnd,n<c.colStart&&(n=c.colEnd))}l={rowIndex:e,colIndex:n}}let f=n(l);if(!Ke(f,c)){let e=Ze(f,c);e&&(f=e)}let p={rowStart:P(r,f.rowStart,M.Down,f.rowEnd),colStart:P(i,f.colStart,M.Right,f.colEnd),rowEnd:P(r,f.rowEnd,M.Up,f.rowStart),colEnd:P(i,f.colEnd,M.Left,f.colStart)};if(p.rowStart!==l.rowIndex||p.colStart!==l.colIndex){switch(t){case M.Right:o[u].colStart===p.colStart&&o[u].colEnd===p.colEnd&&(l.rowIndex=p.rowEnd),l.colIndex=p.colEnd;break;case M.Left:o[u].colStart===p.colStart&&o[u].colEnd===p.colEnd&&(l.rowIndex=p.rowStart),l.rowIndex===p.rowStart?l.colIndex=p.colStart+1:l.colIndex=p.colStart;break;case M.Down:o[u].rowStart===p.rowStart&&o[u].rowEnd===p.rowEnd&&(l.colIndex=p.colEnd),l.rowIndex=p.rowEnd;break;case M.Up:o[u].rowStart===p.rowStart&&o[u].rowEnd===p.rowEnd&&(l.colIndex=p.colStart),l.colIndex===p.colStart?l.rowIndex=p.rowStart+1:l.rowIndex=p.rowStart}return ft({cell:l,ranges:e.ranges,rangeIndex:u},t,n,r,i,a??e)}return{ranges:e.ranges,cell:l,rangeIndex:u}}new class{constructor(){this._onceMessageKeys=new Set,this._overrides=null}setOverrides(e){this._overrides=e??null}getOverrides(){return this._overrides}_write(e,t,n){if(n?.onceKey){let e=this._onceMessageKeys;if(e.has(n.onceKey))return;e.add(n.onceKey)}let r=n?.meta,i=this._overrides;if(i){let r=i[e];if(r)return void r.bind(i)(t,n)}r===void 0?console[e](t):console[e](t,r)}log(e,t){return this._write(`log`,e,t)}error(e,t){return this._write(`error`,e,t)}warn(e,t){return this._write(`warn`,e,t)}debug(e,t){return this._write(`debug`,e,t)}},i({EmptyBounds:()=>ht,EmptyRect:()=>mt,EmptyTopLeft:()=>pt});var pt=Object.freeze({left:0,top:0}),mt=Object.freeze({left:0,top:0,bottom:0,right:0}),ht=Object.freeze({x:0,y:0,width:0,height:0});i({canUseDOM:()=>gt,getDPI:()=>vt,hasFocus:()=>yt,openFileDialog:()=>_t,whenFocus:()=>bt});var gt=!(typeof window>`u`||!window.document||!window.document.createElement),_t=(e=`*.*`)=>new Promise((t,n)=>{if(!gt)return void n(`Unable to open dialog with no dom.`);let r=document.createElement(`input`);r.type=`file`,r.accept=e;let i=null,a=!1;globalThis.addEventListener?.(`focus`,()=>{setTimeout(()=>{i||a||(a=!0,t(null))},1e3)},{once:!0,passive:!0}),r.onchange=()=>{if(i=r.files?.[0]??null,i){if(a)return void console.warn(`File open detected after faux cancel.`,i);t(i)}},r.autofocus=!0,r.click()}),vt=()=>{let e=1;return typeof window==`object`&&(e=window.devicePixelRatio||1),e},yt=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),bt=async(e,t=!1)=>new Promise(n=>{yt(e,t)?n(!0):e.addEventListener(`focusin`,()=>{n(!0)},{once:!0}),e.focus()});i({cancelTimeout:()=>Dt,debounce:()=>Ct,nextTick:()=>Tt,rafThrottle:()=>wt,requestTimeout:()=>Ot,throttle:()=>St});var F=globalThis.requestAnimationFrame,xt=globalThis.cancelAnimationFrame;function St(e,t){let n=null;return(...r)=>{let i=Date.now();(!n||i-n>=t)&&(n=i,e(...r))}}function Ct(e,t=300,n=!1){let r,i,a,o=null,s=0;function c(){let l=Date.now()-s;l<t&&l>=0?o=setTimeout(c,t-l):(o=null,n||(a=e.apply(i,r),i=r=null))}t??=100;let l=function(){i=globalThis,r=arguments,s=Date.now();var l=n&&!o;return o||=setTimeout(c,t),l&&(a=e.apply(i,r),i=r=null),a};return l.clear=function(){o&&=(clearTimeout(o),null)},l.flush=function(){o&&=(a=e.apply(i,r),i=r=null,clearTimeout(o),null)},l}var wt=e=>{let t,n=!1,r=function(){n=!1,e(t)};return function(e){t=e,t&&t.persist&&t.persist(),n||(n=!0,F(r))}},Tt=e=>{if(typeof F==`function`)F(()=>{e()});else{let t=globalThis.setImmediate;(typeof t==`function`?t:setTimeout)(()=>{e()})}},Et=typeof performance==`object`&&typeof performance.now==`function`?()=>performance.now():()=>Date.now(),Dt=e=>{xt(e.id)},Ot=(e,t)=>{let n=Et(),r={id:F(function i(){Et()-n>=t?e.call(null):r.id=F(i)})};return r};i({MESSAGE_ERROR_INVALID_ARG:()=>kt});var kt=e=>`Invalid argument: '${e}'.`;i({APP_MIME_TYPE:()=>At,DEFAULT_MIME_TYPE:()=>`*/*`,JSONStableStringify:()=>It,arrayBufferToBase64:()=>Pt,base64ToArrayBuffer:()=>Nt,blobToString:()=>Ft,isNodeBuffer:()=>jt});var At=`application/octet-stream`,I=globalThis.Buffer,jt=e=>I?.isBuffer(e)??!1,Mt=globalThis.FileReader,Nt=e=>{let t=typeof globalThis.atob==`function`?globalThis.atob(e):I.from(e,`base64`).toString(`binary`),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer},Pt=e=>{let t=new Uint8Array(e),n=t.byteLength,r=``;for(let e=0;e<n;e++)r+=String.fromCharCode(t[e]);if(typeof globalThis.btoa==`function`)return globalThis.btoa(r);if(I)return I.from(r,`binary`).toString(`base64`);throw Error(`Unsupported environment`)},Ft=e=>new Promise((t,n)=>{if(e)if(Mt){let r=new Mt;r.onload=()=>{t(r.result)},r.onerror=()=>{n(r.error)},r.readAsText(e)}else if(I){let r=e=>I.from(e).toString(`utf-8`);e.arrayBuffer().then(e=>{t(r(e))}).catch(e=>{n(e)})}else n(Error(`Unsupported environment`));else t(``)});function It(e,t){t||={},typeof t==`function`&&(t={cmp:t});let n=typeof t.cycles==`boolean`&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){return i({key:t,value:e[t]},{key:n,value:e[n]})}});var i;let a=[];return function e(t){if(t&&t.toJSON&&typeof t.toJSON==`function`&&(t=t.toJSON()),t===void 0)return;if(typeof t==`number`)return isFinite(t)?``+t:`null`;if(typeof t!=`object`)return JSON.stringify(t);let i;if(Array.isArray(t)){i=`[`;for(let n=0;n<t.length;n++)n&&(i+=`,`),i+=e(t[n])||`null`;return i+`]`}if(t===null)return`null`;if(a.indexOf(t)!==-1){if(n)return JSON.stringify(`__cycle__`);throw TypeError(`Converting circular structure to JSON`)}let o=a.push(t)-1,s=Object.keys(t).sort(r&&r(t));i=``;for(let n=0;n<s.length;n++){let r=s[n],a=e(t[r]);a&&(i&&(i+=`,`),i+=JSON.stringify(r)+`:`+a)}return a.splice(o,1),`{`+i+`}`}(e)}var Lt;i({DATA_URL_PNG_PREFIX:()=>Rt,getImageDataUrl:()=>Vt,loadImageDetails:()=>Ut});var Rt=`data:image/png;base64,`,zt=`Unable to resolve image.`,Bt=e=>new Promise(async(t,n)=>{let r=null;try{let i=r=new Image;i.src=e,i.addEventListener(`load`,function(){t({width:i.naturalWidth,height:i.naturalHeight})},{once:!0}),i.addEventListener(`error`,function(t){URL.revokeObjectURL(e);let r=t?.error?.message??``;r&&=`: ${r}`,n(`Invalid Image${r}`)},{once:!0}),await i.decode()}catch{r?.src&&URL.revokeObjectURL(r.src)}r||n(Error(zt))}),Vt=(e,t=1)=>new Promise(async(n,r)=>{let i=null;try{let a=i=new Image;a.src=e,a.addEventListener(`load`,function(){try{let e=document.createElement(`canvas`);e.width=a.naturalWidth,e.height=a.naturalHeight;let r=e.getContext(`2d`);if(!r)throw Error(`Unable to create 2d context`);r.drawImage(a,0,0);let i=e.toDataURL(`image/png`,t);n({elemImg:a,dataUrl:i})}catch(t){URL.revokeObjectURL(e),r(t)}},{once:!0}),a.addEventListener(`error`,function(){URL.revokeObjectURL(e),r(`Invalid Image`)},{once:!0}),await a.decode()}catch{i?.src&&URL.revokeObjectURL(i.src)}i||r(Error(zt))}),Ht=`image/svg+xml`,Ut=async(e,t=null)=>{let n=null,r=async()=>{try{let r=t??`image/*`,i=URL.createObjectURL(new Blob([e],{type:r}));n={mimeType:r,naturalSize:await Bt(i),asUrl:i}}catch{}},i=async()=>{try{let r=new TextDecoder().decode(e),i=URL.createObjectURL(new Blob([r],{type:Ht})),a=await Bt(i);n={mimeType:t??Ht,naturalSize:a,asUrl:i,asSVGText:r}}catch{}};if(t===Ht?await i():t?.startsWith(`image/`)?await r():(await r(),n||await i()),!n)throw Error(`Failed to load image`);return n},Wt=new Set,Gt=e=>{Wt.has(e)||(Wt.add(e),console.warn(`Unknown property '${e}' in update; ignoring.`))};(function(e){e.PassThrough=Object.freeze({});let t=e.resolveTypedUpdates=(e,n,r,i,a=!1)=>{if(e===null)return e;if(e===void 0)return i;let o=e;if(n?.shorthand){let t=n?.shorthand(e,r);t!==void 0&&(o=t)}if(o!==null&&n?.getSubType){let e=n.getSubType(o,i);e&&(n=e)}let s=n?.properties,c=n?.arrayType??!1,l=o;if(n&&n.merge&&l&&i)l=n.merge(l,i,r);else if(!c&&s){let e=Object.keys({...o,...i});l=null;let n=e.length;for(let c=0;c<n;c++){let n=e[c],u,d=o?.[n];if(d!==void 0){let e=s[n];if(!e){Gt(n);continue}u=t(d,e,r,i?.[n],a)}else u=i?.[n];u==null?a&&d===null&&(l??={},l[n]=null):(l??={},l[n]=u)}}return l}})(Lt||={});var Kt={code:`safari`,message:`The Safari browser does not support advanced copy and paste.\nCopy and paste will be limited to within the browser tab.\n\nPlease use Chrome or Edge if external copy and paste is required.`},qt={code:`perms`,message:`You do not have permissions to access the clipboard.\nAll copy and paste operations will be limited to the browser tab.`},Jt=A()===k.Safari?Kt:qt,Yt={Safari:Kt,Perms:qt,PermsWrite:Jt,PermsRead:Jt},Xt=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.(`focus`,()=>{e()},{once:!0}),document.activeElement.focus?.()}),Zt=async(e,t,n)=>{if(A()===k.Safari)return await n(Error(Kt.message));try{let r=async e=>{try{return await e()}catch(e){if(e.message?.includes(`Document is not focused`))return!1;throw e}},i=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0}),a=!1;if(i.state===`prompt`&&(a=await r(t)),a||i.state!==`granted`||(a=await t()),!a)return await n(Error(i.state))}catch(e){return e.message===`No valid data on clipboard`||e.name===`DataError`?void 0:await n(e)}},Qt=async e=>{if(!e)return null;try{return await e.read({unsanitized:[N.Html]})}catch{}return await e.read()},$t=async(e,t)=>{if(!e)return null;let n=await Qt(e),r=!1;for(let e=0;!r&&n&&e<n.length;e++)if(r=n[e].types.includes(t),r)return await n[e].getType(t);return null};if(!globalThis.ClipboardItem){let e=(e,t)=>new Blob([t],{type:e});class t{constructor(t,n){this._items={},this._types=Object.keys(t);let r={},i=Object.keys(t);for(let n=0;n<i.length;n++){let a=i[n],o=t[a];r[a]=typeof o==`string`?e(a,o):o}this._items=r,this._presentationStyle=n?.presentationStyle??`unspecified`}get types(){return this._types}getType(e){return Promise.resolve(this._items[e])}supports(e){return!0}}globalThis.ClipboardItem=t}var en,tn=async(e,t=N.Html)=>new Promise(async(n,r)=>{try{let r=await $t(e,t);if(r){let e=new FileReader;e.onload=()=>{n(e.result)},e.onerror=()=>{n(``)},e.readAsText(r)}else n(``)}catch(e){r(e)}}),nn=async(e,t=N.Html)=>{let n=await tn(e,t);if(!n)return null;let r=null;try{r=new DOMParser().parseFromString(n,N.Html)}catch{console.warn(`Can't parse html from clipboard.`)}return r},rn=async e=>{e&&await e.writeText(``)},L=`clipboard-uuid`,R=`web text/uuid`,an=e=>`<div style=\"display:none\" ${L}=\"${e}\"/>`,on={type:N.Plain},sn={type:N.Html},cn={type:R},ln=(e,t)=>{let n=null;try{let r=new DOMParser().parseFromString(t,N.Html);r.body.firstElementChild?.setAttribute(L,e),n=r.getElementsByTagName(`body`)[0].innerHTML}catch(e){console.warn(`Can't embed uuid.`,e)}return n},un=(e,t)=>{if(!t||!e)return!1;try{let n=t.querySelectorAll(`[${L}=\"${e}\"]`);if(n&&n.length===1)return!0;if(t.querySelector(`parsererror`))throw Error(`We are unable to parse node`);return!1}catch{return!1}},dn=class{constructor(e){if(this._state=null,this._nativeClipboard=null,this._onFocus=null,this._onBlur=null,e?.nativeClipboard===void 0||!0===e?.nativeClipboard)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{!0===e?.nativeClipboard&&console.warn(`NativeClipboard option set to true but no native clipboard available.`)}else this._nativeClipboard=!1===e?.nativeClipboard?null:e?.nativeClipboard??null;this._disableCheckOnFocus=e?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await Zt(`clipboard-read`,async()=>{await Xt();let e=await tn(this._nativeClipboard,R);if(!this._state||e&&e===this._state.uuid)return!0;let t=await nn(this._nativeClipboard,N.Html);return!this._state||(un(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message===`denied`||e.message?.includes(`Document is not focused`)||A()===k.Safari||console.warn(`Unable to detect clipboard changes: `,e)})}_init(){let e=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{e._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.(`focus`,e._onFocus,{once:!0})},globalThis.addEventListener?.(`blur`,this._onBlur),this._nativeClipboard.addEventListener(`clipboardchange`,t=>{e._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;let e=this;return await Zt(`clipboard-read`,async()=>{if(await Xt(),this._state?.uuid){let t=await tn(this._nativeClipboard,R);if(t&&t===e._state?.uuid)return!0;let n=await nn(this._nativeClipboard,N.Html);if(un(e._state?.uuid,n))return!0}return e._state={items:await Qt(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event(`clipboardread`)),!0},async e=>{this.dispatchEvent(new Event(`clipboarderrorread`))}),this._state?.items??[]}async write(e){return this._write({uuid:w(),items:e,ref:null})}async _write(e){if(!this._nativeClipboard)return this._state=e,this.dispatchEvent(new Event(`clipboardwrite`)),void this.dispatchEvent(new Event(`clipboardchange`));let t=this,n=[],r=e.uuid,i=e.items??[],a=()=>{t._state={uuid:r,ref:e.ref,items:n},t.dispatchEvent(new Event(`clipboardwrite`)),t.dispatchEvent(new Event(`clipboardchange`))};await Zt(`clipboard-write`,async()=>{await Xt(),r&&i.length===0&&(i.push(new ClipboardItem({[R]:new Blob([r],cn)})),i.push(new ClipboardItem({[N.Html]:new Blob([an(r)],sn)})));for(let e=0;e<Math.min(1,i.length);e++){let t=i[e],a=t.types.indexOf(N.Html),o=null;if(a!==-1&&(o=await Ft(await t.getType(N.Html)),o&&=ln(r,o)),!o&&t.types.includes(N.Plain)){let e=await t.getType(N.Plain);if(e){let t=null;typeof e==`string`?(console.warn(`text as string`,e),t=e):t=await Ft(e),t&&(o=`<div ${L}=\"${r}\">${t}</div>`)}}if(!o&&t.types.includes(N.Png)){let e=Pt(await(await t.getType(N.Png)).arrayBuffer());o=`<div ${L}=\"${r}\"><img src=\"${Rt+e}\"/></div>`}!o&&r&&(o=an(r));let s=new Blob([o??``],sn),c={},l=t.types,u=l.length;for(let e=0;e<u;e++){let n=l[e];c[n]=e===a?s:t.getType(n)}o&&a===-1&&(c[N.Html]=s),r&&(c[R]=new Blob([r],cn)),n.push(new ClipboardItem(c))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await rn(this._nativeClipboard)}catch(e){e.message?.includes(`Document is not focused`)||console.warn(`Unable to write to native clipboard: `,e)}return a(),!0},async e=>{this.dispatchEvent(new Event(`clipboarderrorwrite`)),a()})}async writeReference(e){if(!e)return void this.clear();let t=null,n={};try{let t=await e.toText?.()??null;t&&(n[N.Plain]=new Blob([t??``],on))}catch(e){t=e}try{let t=await e.toHtml?.()??null;t&&(n[N.Html]=new Blob([t],{type:N.Html}))}catch(e){t=e,console.warn(`export to html`,e)}try{let t=await e.toImage?.()??null;t&&(n[N.Png]=t)}catch(e){t=e,console.warn(`export to png`,e)}let r=this._write({uuid:w(),ref:e,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(t)throw t;return r}clear(e=!1){this._state&&(this._state=null,e&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event(`clipboardwrite`)),this.dispatchEvent(new Event(`clipboardchange`)))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(e,t)=>{let n=await this.read(),r=null,i=n?n.length:0;for(let e=0;!r&&e<i;e++){let t=n[e];t.types.includes(N.Plain)&&(r=await t.getType(N.Plain))}if(!r)return void e(``);let a=new FileReader;a.onload=()=>{e(a.result)},a.readAsText(r),a.onerror=e=>{t(e)}})}async writeText(e){let t=[new ClipboardItem({[N.Plain]:new Blob([e],on)})];return this._write({uuid:w(),items:t,ref:null})}addEventListener(e,t,n={}){let r=n?.capture?this._listenersCapture:this._listeners,i=r.get(e);i||(i=new Map,r.set(e,i)),t&&i.set(t,typeof n==`boolean`?{}:n)}dispatchEvent(e){if(!e)return!1;let t=t=>{let n=t.get(e.type);n&&n.forEach((t,r)=>{try{typeof r==`function`?r(e):r.handleEvent&&r.handleEvent(e),t.once&&n.delete(r)}catch(e){console.warn(e)}})};return t(this._listenersCapture),t(this._listeners),!0}removeEventListener(e,t,n){let r=n?.capture?this._listenersCapture:this._listeners,i=r.get(e);i&&t&&(i.delete(t),i.size===0&&r.delete(e))}close(){this._onFocus&&globalThis.removeEventListener?.(`focus`,this._onFocus),this._onBlur&&globalThis.removeEventListener?.(`blur`,this._onBlur)}};(en=dn||={}).ErrorMessages=Yt,en.Global=new dn;var fn=e=>e===` `||e===` `||e===`\n`||e===`\\r`;function pn(e,t){for(;t.i<e.length&&fn(e[t.i]);)t.i++}function mn(e,t,n,r){let i=[],a=``,o=()=>{a&&=(i.push(a),``)};for(;t.i<e.length;){let s=e[t.i];if(s===`}`&&r>0)break;if(s!==`{`)if(s===`#`&&n)o(),i.push({kind:`hash`}),t.i++;else{if(s===`'`){let r=e[t.i+1];if(r===`'`){a+=`'`,t.i+=2;continue}if(r===`{`||r===`}`||r===`#`&&n){for(t.i++;t.i<e.length;){let n=e[t.i];if(n===`'`){if(e[t.i+1]===`'`){a+=`'`,t.i+=2;continue}t.i++;break}a+=n,t.i++}continue}a+=`'`,t.i++;continue}a+=s,t.i++}else t.i++,o(),i.push(hn(e,t,n,r))}return o(),i}function hn(e,t,n,r){let i=t.i;for(;t.i<e.length&&e[t.i]!==`,`&&e[t.i]!==`}`;)t.i++;let a=e.slice(i,t.i).trim();if(e[t.i]===`}`)return t.i++,{kind:`arg`,name:a};if(t.i>=e.length)return{kind:`arg`,name:a};t.i++;let o=t.i;for(;t.i<e.length&&e[t.i]!==`,`&&e[t.i]!==`}`;)t.i++;let s=e.slice(o,t.i).trim(),c=s===`plural`||s===`selectordinal`||s===`select`;if(e[t.i]!==`,`||!c){let n=r+1;for(;t.i<e.length&&n>r;)e[t.i]===`{`?n++:e[t.i]===`}`&&n--,t.i++;return{kind:`arg`,name:a}}t.i++;let l={},u=0;for(;pn(e,t),!(t.i>=e.length);){if(e[t.i]===`}`){t.i++;break}let i=t.i;for(;t.i<e.length&&e[t.i]!==`{`&&e[t.i]!==`}`&&!fn(e[t.i]);)t.i++;let a=e.slice(i,t.i);if(a.startsWith(`offset:`))u=parseInt(a.slice(7),10)||0;else{if(pn(e,t),e[t.i]!==`{`)break;t.i++,l[a]=mn(e,t,s!==`select`||n,r+1),e[t.i]===`}`&&t.i++}}return{kind:`branched`,type:s,name:a,offset:u,branches:l}}var gn=new Map,_n=new Map,vn=new Map;function yn(e,t){let n=t?_n:gn,r=n.get(e);if(!r){try{r=new Intl.PluralRules(e,t?{type:`ordinal`}:void 0)}catch{r=new Intl.PluralRules(`en`,t?{type:`ordinal`}:void 0)}n.set(e,r)}return r}function bn(e){let t=vn.get(e);if(!t){try{t=new Intl.NumberFormat(e)}catch{t=new Intl.NumberFormat(`en`)}vn.set(e,t)}return t}function xn(e,t,n,r){let i=``;for(let a of e){if(typeof a==`string`){i+=a;continue}if(a.kind===`arg`){let e=t?.[a.name];i+=e===void 0?`{${a.name}}`:String(e);continue}if(a.kind===`hash`){i+=r===void 0?`#`:bn(n).format(r);continue}let e=t?.[a.name];if(a.type===`select`){let o=(e===void 0?void 0:a.branches[String(e)])??a.branches.other;i+=o?xn(o,t,n,r):e===void 0?`{${a.name}}`:String(e);continue}let o=typeof e==`number`?e:Number(e);if(e===void 0||Number.isNaN(o)){let e=a.branches.other;i+=e?xn(e,t,n,void 0):`{${a.name}}`;continue}let s=a.branches[`=${o}`],c=o-a.offset;if(!s){let e=yn(n,a.type===`selectordinal`).select(c);s=a.branches[e]??a.branches.other}i+=s?xn(s,t,n,c):String(e)}return i}new TextDecoder;\n/**\n* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.28-beta.4\n*\n* (C) 2026-present SheetXL Inc. & Michael T. Ford\n* License: The license can be found at https://www.sheetxl.com/license.\n*/\nvar Sn;(function(e){e.MAX_TEXT_LENGTH=32767;let t=e.MAX_SIGNIFICANT_DIGITS=15;e.truncateNumberText=function(e){let n=e.length;if(n<=t)return e;let r=0,i=null;for(let a=0;a<n;a++){let n=e.charCodeAt(a);if(n>=48&&n<=57){if(r===0&&n===48)continue;r++,r>t&&((i??=e.split(``))[a]=`0`)}else if((n===69||n===101)&&r>0)break}return i===null?e:i.join(``)}})(Sn||={});var Cn,z,wn,B,V={Number:`number`,String:`string`,Boolean:`boolean`,Error:`error`,RichData:`richData`,Null:`null`},Tn={...V,Date:`date`};(z=Cn||={}).Axis={Column:`column`,Row:`row`},z.AxisSelection={...Cn.Axis,Both:`both`},z.Direction={Up:`up`,Down:`down`,Left:`left`,Right:`right`},(wn||={}).Aggregate={Count:`count`,NumericalCount:`numericalCount`,Sum:`sum`,Average:`average`,StdDev:`stdDev`,PopulationStdDev:`stdDevP`,Variance:`var`,PopulationVariance:`varP`,Min:`min`,Max:`max`},function(e){let t=e.Code={Parse:0,Null:1,Div0:2,Value:3,Ref:4,Name:5,Num:6,NA:7,GettingData:8,Spill:9,Connect:10,Blocked:11,Unknown:12,Field:13,Calc:14,Busy:16,Python:19,Timeout:20},n=e.Label={Parse:`#PARSE!`,Null:`#NULL!`,Div0:`#DIV/0!`,Value:`#VALUE!`,Ref:`#REF!`,Name:`#NAME?`,Num:`#NUM!`,NA:`#N/A`,GettingData:`#GETTING_DATA`,Spill:`#SPILL!`,Connect:`#CONNECT!`,Blocked:`#BLOCKED!`,Unknown:`#UNKNOWN!`,Field:`#FIELD!`,Calc:`#CALC!`,Busy:`#BUSY!`,Python:`#PYTHON!`,Timeout:`#TIMEOUT!`};class r extends Error{constructor(e,t,n,r){super(n,r),this._label=t,this._code=e,this.details=r}static{this.code=B.Code.Unknown}get isFormulaError(){return!0}getLabel(){return this._label}getCode(){return this._code}equals(e){return!!e&&(this._code===e._code||this._code===e.code)}get[Symbol.toStringTag](){return`[FormulaError]`}toString(){return this._label}}e.Known=r;class i extends r{constructor(e,r){super(t.Parse,n.Parse,e,r)}static{this.code=B.Code.Parse}getDetails(){let e=this.details;return{line:e?.line??1,column:e?.column??1,offset:e?.offset??0,length:e?.length??0}}}e.Parse=i;class a extends r{constructor(e,r){super(t.Null,n.Null,e,r)}static{this.code=B.Code.Null}}e.Null=a;class o extends r{constructor(e,r){super(t.Div0,n.Div0,e,r)}static{this.code=B.Code.Div0}}e.Div0=o;class s extends r{constructor(e,r){super(t.Value,n.Value,e,r)}static{this.code=B.Code.Value}}e.Value=s;class c extends r{constructor(e,r){super(t.Ref,n.Ref,e,r)}static{this.code=B.Code.Ref}}e.Ref=c;class l extends r{constructor(e,r){super(t.Name,n.Name,e,r)}static{this.code=B.Code.Name}}e.Name=l;class u extends r{constructor(e,r){super(t.Num,n.Num,e,r)}static{this.code=B.Code.Num}}e.Num=u;class d extends r{constructor(e,r){super(t.NA,n.NA,e,r)}static{this.code=B.Code.NA}}e.NA=d;class f extends r{constructor(e,r){super(t.GettingData,n.GettingData,e,r)}static{this.code=B.Code.GettingData}}e.GettingData=f;class p extends r{constructor(e,r){super(t.Spill,n.Spill,e,r)}static{this.code=B.Code.Spill}}e.Spill=p;class m extends r{constructor(e,r){super(t.Connect,n.Connect,e,r)}static{this.code=B.Code.Connect}}e.Connect=m;class h extends r{constructor(e,r){super(t.Blocked,n.Blocked,e,r)}static{this.code=B.Code.Blocked}}e.Blocked=h;class g extends r{constructor(e,r){super(t.Unknown,n.Unknown,e,r)}static{this.code=B.Code.Unknown}}e.Unknown=g;class _ extends r{constructor(e,r){super(t.Field,n.Field,e,r)}static{this.code=B.Code.Field}}e.Field=_;class v extends r{constructor(e,r){super(t.Calc,n.Calc,e,r)}static{this.code=B.Code.Calc}}e.Calc=v;class y extends r{constructor(e,r){super(t.Busy,n.Busy,e,r)}static{this.code=B.Code.Busy}}e.Busy=y;class b extends r{constructor(e,r){super(t.Python,n.Python,e,r)}static{this.code=B.Code.Python}}e.Python=b;class x extends r{constructor(e,r){super(t.Timeout,n.Timeout,e,r)}static{this.code=B.Code.Timeout}}e.Timeout=x}(B||={});var H={};H[B.Code.Parse]=B.Parse,H[B.Code.Null]=B.Null,H[B.Code.Div0]=B.Div0,H[B.Code.Value]=B.Value,H[B.Code.Ref]=B.Ref,H[B.Code.Name]=B.Name,H[B.Code.Num]=B.Num,H[B.Code.NA]=B.NA,H[B.Code.GettingData]=B.GettingData,H[B.Code.Spill]=B.Spill,H[B.Code.Connect]=B.Connect,H[B.Code.Blocked]=B.Blocked,H[B.Code.Unknown]=B.Unknown,H[B.Code.Field]=B.Field,H[B.Code.Calc]=B.Calc,H[B.Code.Busy]=B.Busy,H[B.Code.Python]=B.Python,H[B.Code.Timeout]=B.Timeout;var En=new Map,Dn=new Map,On=new Map,kn=new Map,An=Object.keys(H);for(let e=0;e<An.length;e++){let t=H[An[e]],n=new t;On.set(n.getLabel(),t),kn.set(n.getCode(),t),En.set(n.getLabel(),n),Dn.set(n.getCode(),n)}(function(e){let t=e.getBuiltInByCode=e=>Dn.get(e);e.BuiltIn={Parse:t(B.Code.Parse),Null:t(B.Code.Null),Div0:t(B.Code.Div0),Value:t(B.Code.Value),Ref:t(B.Code.Ref),Name:t(B.Code.Name),Num:t(B.Code.Num),NA:t(B.Code.NA),GettingData:t(B.Code.GettingData),Spill:t(B.Code.Spill),Connect:t(B.Code.Connect),Blocked:t(B.Code.Blocked),Unknown:t(B.Code.Unknown),Field:t(B.Code.Field),Calc:t(B.Code.Calc),Busy:t(B.Code.Busy),Python:t(B.Code.Python),Timeout:t(B.Code.Timeout)},e.newTypedError=(e,t,n)=>{let r;return r=typeof e==`string`?On.get(e):kn.get(e),r||=B.Unknown,new r(t,n)},e.getBuiltInByLabel=e=>En.get(e),e.isError=function(e,t){return!!e&&!0===e.isFormulaError&&(t===void 0||e.getCode()===t)}})(B||={});var jn=class{createRange(e,t,n){throw new U}getReference(e,t){throw new U}getResizedReference(e,t,n){throw new U}getNumberFormat(e,t){throw new U}fromSerialDate(e,t){throw new U}toSerialDate(e,t){throw new U}getDateParts(e,t){throw new U}getSerialDate(e,t,n,r,i,a,o){throw new U}getNow(){throw new U}getValueAt(e,t,n,r){return null}getEntireCoords(){return Nn}isValidDate(e,t){return e instanceof Date||Object.prototype.toString.call(e)===`[object Date]`?!isNaN(e.getTime()):!t&&typeof e==`number`&&!(e<0||e>Fn)}getRow(){return 0}getColumn(){return 0}getFormulaAt(e,t,n){return null}getSpillAt(e,t,n){return null}getSheetIndex(e){return-1}getSheetCount(){return 1}markVolatile(){}formatResults(e){}filterHidden(e,t){return e}filterTotals(e){return e}getFunction(e){return null}getAddress(e,t){throw new U}parseAsSerialDate(e,t){throw new U}parseAsDate(e,t){throw new U}parseAsNumber(e,t){throw new U}createCriteria(e){throw new U}parseAsLiteral(e){let t=e.toUpperCase();return t===`TRUE`||t!==`FALSE`&&B.getBuiltInByLabel(t)}toText(e){return typeof e==`string`?e:e==null?``:typeof e==`boolean`?e?`TRUE`:`FALSE`:e?.isFormulaError?e.getLabel():String(e)}compare(e,t,n){if(e===t)return 0;let r=Mn(e),i=Mn(t);return r===i?e<t?-1:+(e>t):r<i?-1:1}getRuntime(){return Pn}},Mn=e=>{if(e==null)return 0;switch(typeof e){case`number`:return 1;case`string`:return 2;case`boolean`:return 3;default:return 4}},U=class extends Error{constructor(e=`Not implemented in StubbedFormulaContext`){super(e),this.name=`NotImplementedError`}},Nn=Object.freeze({colStart:0,rowStart:0,colEnd:2**14-1,rowEnd:2**20-1}),Pn={isDate1904:()=>!1,getLocale:()=>Ln.tag,getLocaleProfile:()=>Ln,isR1C1:()=>!1,getNow:()=>0,getLocation:()=>`unknown`,getVersion:()=>`1.0.0`,getOS:()=>`unknown`,getUser:()=>`unidentified`,getDescription:()=>`Stubbed Formula Context`},Fn=2958465,W=new jn,In=class{constructor(){this._scope=W}_setScope(e){this._scope=e??W}_getScope(){return this._scope}getNumberFormat(e,t){return this._getScope().getNumberFormat(e,t)}getEntireCoords(){return this._getScope().getEntireCoords()??Nn}parseAsSerialDate(e,t){return this._getScope().parseAsSerialDate(e,t)}parseAsDate(e,t){return this._getScope().parseAsDate(e,t)}parseAsNumber(e,t){return this._getScope().parseAsNumber(e,t)}createCriteria(e){return this._getScope().createCriteria(e)}parseAsLiteral(e){let t=this._getScope();return t.parseAsLiteral?t.parseAsLiteral(e):W.parseAsLiteral(e)}toText(e){return this._getScope().toText(e)}isValidDate(e,t=!1){return this._getScope().isValidDate(e,t)}fromSerialDate(e,t=!1){return this._getScope().fromSerialDate(e,t)}toSerialDate(e,t=!1){return this._getScope().toSerialDate(e,t)}getDateParts(e,t){return this._getScope().getDateParts(e,t)}getSerialDate(e,t,n,r=0,i=0,a=0,o=0){return this._getScope().getSerialDate(e,t,n,r,i,a,o)}getNow(){return this._getScope().getNow()}createRange(e,t,n){return this._getScope().createRange(e,t,n)}getRow(){return this._getScope().getRow?.()??0}getColumn(){return this._getScope().getColumn?.()??0}getReference(e,t){return this._getScope().getReference(e,t)}getResizedReference(e,t,n){return this._getScope().getResizedReference(e,t,n)}getValueAt(e,t,n){return this._getScope().getValueAt(e,t,n)}getFormulaAt(e,t,n){return this._getScope().getFormulaAt?.(e,t,n)??null}getSpillAt(e,t,n){return this._getScope().getSpillAt?.(e,t,n)??null}getSheetIndex(e){return this._getScope().getSheetIndex?.(e)??-1}getSheetCount(){return this._getScope().getSheetCount?.()??1}markVolatile(){this._getScope().markVolatile?.()}formatResults(e){this._getScope().formatResults?.(e)}filterHidden(e,t){return this._getScope().filterHidden?.(e,t)??e}filterTotals(e){return this._getScope().filterTotals?.(e)??e}getFunction(e){return this._getScope().getFunction?.(e)??null}getAddress(e,t){return this._getScope().getAddress(e,t)}compare(e,t,n){return this._getScope().compare?.(e,t,n)??W.compare(e,t,n)}getRuntime(){return this._getScope().getRuntime()}get[Symbol.toStringTag](){return`[FormulaContext]`}toString(){return this._getScope()?.toString?.()??`{STUB SCOPE}`}},Ln=Object.freeze({tag:`en-US`,numberingSystem:`latn`,decimal:`.`,group:`,`,grouping:[3],minusSign:`-`,percentSign:`%`,permilleSign:`‰`,currencyCode:`USD`,currencySymbol:`$`,currencyDisplay:`symbol`,currencyPosition:`before`,currencySpacing:`tight`,date:Object.freeze({calendar:`gregory`,short:`M/d/yy`,medium:`MMM d, y`,long:`MMMM d, y`,timeShort:`h:mm a`,timeLong:`h:mm:ss a`,am:`AM`,pm:`PM`,firstDay:0,weekend:[6,0],monthsWide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],weekdaysWide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],weekdaysAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],hour12:!0}),listSeparator:`,`,csvDelimiter:`,`,rtl:!1,collator:Object.freeze({sensitivity:`base`,numeric:!0})});new In;const G=Object.freeze({NoBody:`SXL1001`,Anonymous:`SXL1002`,ParseError:`SXL1003`,InvalidParamType:`SXL2001`,InvalidReturnType:`SXL2002`,UndefinedInput:`SXL2003`,MissingType:`SXL2004`,UntypedArray:`SXL2005`,GenericArity:`SXL2006`,MultipleModifiers:`SXL2007`,ContextNotFirst:`SXL2010`,MultipleLambda:`SXL2020`,LambdaNotLast:`SXL2021`,LambdaScalarMismatch:`SXL2022`,LambdaReturn:`SXL2023`,FunctionReturn:`SXL2024`,LambdaArity:`SXL2025`,ArrayDepth:`SXL2030`,RepeatingPosition:`SXL2040`,MultipleRepeating:`SXL2041`,RepeatingSlots:`SXL2042`,RepeatingOptional:`SXL2043`,NoExports:`SXL3001`,UnknownParam:`SXL3002`,BuiltInName:`SXL3003`,MissingSummary:`SXL9001`,MissingParamDescription:`SXL9002`,MissingReturns:`SXL9003`}),Rn=[{name:`summary`,group:`sheetxl`,description:`Short description shown in function tooltips and autocomplete.`},{name:`param`,group:`jsdoc`,description:`Document a parameter. A string union type becomes a dropdown of allowed options.`,snippet:\"param ${1:name} ${2:description}\"},{name:`returns`,aliases:[`return`],group:`jsdoc`,description:`Describe the return value.`},{name:`category`,group:`sheetxl`,description:`Group the function under a category in the function list.`,snippet:\"category ${1:name}\"},{name:`name`,group:`sheetxl`,description:`Override the displayed function name.`,snippet:\"name ${1:NAME}\"},{name:`description`,group:`sheetxl`,description:`A longer description of the function.`},{name:`deprecated`,group:`sheetxl`,standalone:!0,description:`Mark the function as deprecated (optionally with a reason).`},{name:`hidden`,group:`sheetxl`,standalone:!0,description:`Hide the function from the function list.`},{name:`example`,group:`jsdoc`,description:`Provide a usage example.`},{name:`see`,group:`jsdoc`,description:`Reference a related function or link.`}],zn=(()=>{let e=new Map;for(let t of Rn)if(e.set(t.name,t),t.aliases)for(let n of t.aliases)e.set(n,t);return e})();function Bn(e){if(!e)return;let t=(e.startsWith(`@`)?e.slice(1):e).toLowerCase();return zn.get(t)}function Vn(e){return Bn(e)?.standalone===!0}const Hn=new Map([[`IReferenceRange`,`p`],[`IRange`,`r`]]),K=new Map([[`IWorkbook`,`workbook`],[`ISheet`,`sheet`],[`ICellRanges`,`ranges`],[`ICellRange`,`range`]]),Un=Array.from(K.keys()),q=(e,t)=>{Array.from(t.keys()).forEach(n=>{let r=t.get(n);t.set(`${e}.${n}`,r)})},Wn=new Map([[`Scalar`,`*`],[`Lambda`,`l`],[`FormulaError.Known`,V.Error],[`Date`,Tn.Date],[`IRichData`,Tn.RichData]]),Gn=new Map([[`Repeating`,`repeating`]]),Kn=new Set([`Flatten`,`SheetXL.Flatten`]),qn=new Map([[`AcceptError`,`accept`],[`AcceptRefError`,`accept-ref`]]),Jn=new Set([`Omittable`]),J=`SheetXL`;q(J,Hn),q(J,K),q(J,Gn),q(J,qn),Jn.add(`${J}.Omittable`);const Yn=new Map([[`Promise`,()=>({async:!0})],[`Observable`,()=>({stream:!0})]]),Xn=`__scriptContext__`,Zn=new Set([`IScript.ScriptContext`,`${J}.IScript.ScriptContext`,`ScriptContext`]),Qn=(e,t)=>{let n=t.literal;if(n===void 0)return;let r=e.SyntaxKind;switch(n.kind){case r.StringLiteral:return n.text;case r.NumericLiteral:return parseFloat(n.text);case r.TrueKeyword:return!0;case r.FalseKeyword:return!1;case r.NullKeyword:return null;case r.PrefixUnaryExpression:return n.operator===r.MinusToken&&n.operand?.kind===r.NumericLiteral?-parseFloat(n.operand.text):void 0;default:return}},$n=e=>{if(!e||e.length===0)return``;let t=``;for(let n=0;n<e.length;n++){let r=e[n],i=r.kind;if(i!==`link`){if(i===`linkName`){let i=e[n+1];if(i?.kind===`linkText`&&i.text.trim())continue;t+=r.text;continue}if(i===`linkText`){t+=r.text.trim();continue}t+=r.text}}return t.replace(/\\r\\n?/g,`\n`).split(/\\n[^\\S\\n]*\\n\\s*/).map(e=>e.split(`\n`).map(e=>e.trim()).filter(Boolean).join(` `)).filter(Boolean).join(`\n`).trim()};function er(e,t,n,r){let i=r?.builtInNames?.length?new Set(r.builtInNames.map(e=>e.toUpperCase())):null,a=[],o=[],s=null,c=e=>{if(!e||typeof e.getStart!=`function`)return{start:0,length:0};try{return{start:e.getStart(),length:e.getWidth()}}catch{return{start:0,length:0}}},l=(e,t,n,r)=>{let{start:i,length:a}=c(e);o.push({start:i,length:a,severity:n,code:t,message:r})},u=(e,t,n)=>{l(e,t,`error`,n)},d=e=>e?.parent?.name?.escapedText,f=(e,t,n,r,i=!1,a=!1)=>{let o={count:0},s=g(e,t,n,r,o,i,a);return o.count>=2&&(t.range||(t.range=`m`,o.count-=2),!r&&o.count>=1&&(--o.count,o.count>0&&u(e,G.ArrayDepth,`Arrays of more than 2 dimensions are not supported: '${d(e)}'.`))),o.count>0&&(t.arrayDepth=o.count),s},p=(t,n,r,i,a)=>{if(n!==`Lambda`&&n!==`${J}.Lambda`)return!1;let o=t.typeArguments,s=`*`;if(o&&o.length===2)if(a&&o[0].kind===e.SyntaxKind.TupleType&&(r.lambdaArity=o[0].elements.length),o[1].kind===e.SyntaxKind.AnyKeyword)s=`raw`;else{let e={};g(o[1],e,i,!1,{count:0}),s=e.scalar??`*`}else if(o&&o.length===1&&o[0].kind!==e.SyntaxKind.TupleType&&o[0].kind!==e.SyntaxKind.ArrayType)if(a&&(r.lambdaArity=2),o[0].kind===e.SyntaxKind.AnyKeyword)s=`raw`;else{let e={};g(o[0],e,i,!1,{count:0}),s=e.scalar??`*`}return r.lambda=s,!0},m=(t,n,r,i)=>{if(!i){u(t,G.FunctionReturn,`Function type is not a valid return type: '${d(t)}'. Declare a 'Lambda' return instead.`);return}let a=t.type,o={},s=`*`;a&&(a.kind===e.SyntaxKind.AnyKeyword?s=`raw`:(g(a,o,r,!1,{count:0}),s=o.scalar??`*`));let c=t.parameters;c&&!c.some(e=>e.dotDotDotToken)&&(n.lambdaArity=c.length),n.lambda=s},h=(t,n,r,i)=>{let a=(e,t,n)=>{let a={name:e};return f(t,a,r,!0),n&&(a.optional=!0),i&&!a.errors&&(a.errors=i),a};if(t.kind!==e.SyntaxKind.TupleType)return[a(n,t,!1)];let o=t.elements;if(o.length<2)return u(t,G.RepeatingSlots,`'${n}': a repeating group of period ${o.length} must be spelled 'Repeating<T>' without the tuple.`),null;let s=[];for(let t=0;t<o.length;t++){let r=o[t];if(r.kind!==e.SyntaxKind.NamedTupleMember)return u(r,G.RepeatingSlots,`'${n}': every slot of a repeating group must be labelled, e.g. 'Repeating<[criteriaRange: IRange, criteria: Scalar]>'.`),null;let i=!!r.questionToken;if(i&&t!==o.length-1)return u(r,G.RepeatingOptional,`'${n}': only the LAST slot of a repeating group may be optional (slot '${r.name?.getText?.()}' is not).`),null;s.push(a(r.name?.getText?.()??`${t}`,r.type,i))}return s},g=(t,n,r,i,a,o=!1,s=!1)=>{if(!t){u(t,G.MissingType,`Type is not defined for '${n?.name??`return`}'.`);return}if(t.kind===e.SyntaxKind.ParenthesizedType)return g(t.type,n,r,i,a,o,s);if(t.kind===e.SyntaxKind.UnionType){let c=t=>t.kind===e.SyntaxKind.UndefinedKeyword||t.kind===e.SyntaxKind.VoidKeyword||t.kind===e.SyntaxKind.NullKeyword||t.kind===e.SyntaxKind.LiteralType&&t.literal?.kind===e.SyntaxKind.NullKeyword,l=t.types.filter(e=>!c(e));if(l.length===1)return g(l[0],n,r,i,a,o,s);let f=t=>{if(t.kind!==e.SyntaxKind.LiteralType)return;let n=t.literal;if(n?.kind===e.SyntaxKind.NumericLiteral||n?.kind===e.SyntaxKind.PrefixUnaryExpression&&n.operand?.kind===e.SyntaxKind.NumericLiteral)return e.SyntaxKind.NumericLiteral;if(n?.kind===e.SyntaxKind.StringLiteral)return e.SyntaxKind.StringLiteral},m=f(l[0]);if(m!==void 0&&l.every(e=>f(e)===m)){n.scalar=m===e.SyntaxKind.NumericLiteral?V.Number:V.String;return}if(!i){n.scalar=`*`;return}if(l.length===2){let t=t=>{if(t.kind!==e.SyntaxKind.TypeReference)return!1;let n=e.isTypeReferenceNode(t)?t.typeName.getText():``;return n===`Lambda`||n===`${J}.Lambda`},c=l.findIndex(t);if(c>=0&&!t(l[1-c])){g(l[1-c],n,r,i,a,o,s),p(l[c],l[c].typeName.getText(),n,r,i);return}}u(t,G.InvalidParamType,`Union parameter types are not supported: '${d(t)}'. Use a single type, optionally with '| null' or '| undefined', or 'T | Lambda<…>' for a value-or-lambda slot.`);return}if(t.kind===e.SyntaxKind.NumberKeyword)n.scalar=V.Number;else if(t.kind===e.SyntaxKind.StringKeyword)n.scalar=V.String;else if(t.kind===e.SyntaxKind.BooleanKeyword)n.scalar=V.Boolean;else if(t.kind===e.SyntaxKind.UndefinedKeyword||t.kind===e.SyntaxKind.NullKeyword||t.kind===e.SyntaxKind.VoidKeyword){if(i){u(t,G.UndefinedInput,`'undefined' is not a valid type for input: '${d(t)}'.`);return}n.scalar=V.Null}else if(t.kind===e.SyntaxKind.BigIntKeyword)n.scalar=V.Number;else if(t.kind===e.SyntaxKind.AnyKeyword)i&&(n.range=`*`);else if(t.kind===e.SyntaxKind.ArrayType){let e=t.elementType;if(!e){u(t,G.UntypedArray,`'Array' must be typed: '${d(t)}'.`);return}if(i&&s){let i=n,a=i.name??d(t)??`parameter`,o=i.errors;delete i.errors;let s={name:a};f(e,s,r,!0),o&&!s.errors&&(s.errors=o),i.repeating=[s];return}a.count++,g(e,n,r,i,a)}else if(t.kind!==e.SyntaxKind.TupleType)if(t.kind===e.SyntaxKind.TypeReference){let c=t.typeName?.getText?.()??null,l=qn.get(c);if(l){let e=d(t);if(!i){u(t,G.InvalidReturnType,`'${c}' is not a valid return type: '${e}'. Error-policy markers apply to parameters only.`);return}let f=n;if(f.errors){u(t,G.InvalidParamType,`'${e}' declares more than one error-policy marker ('${f.errors}' and '${l}'). Only one is allowed.`);return}let p=t.typeArguments;if(!p||p.length!==1){u(t,G.GenericArity,`'${c}' must be typed with exactly 1 type: '${e}'.`);return}return f.errors=l,g(p[0],n,r,i,a,o,s)}if(Jn.has(c)){let l=n.name??d(t);if(!i){u(t,G.InvalidReturnType,`'Omittable' is not a valid return type: '${l}'. It describes how an ARGUMENT is received.`);return}let f=t.typeArguments;if(!f||f.length<1||f.length>2){u(t,G.GenericArity,`'${c}' must be typed with 1 or 2 types: '${l}'.`);return}let p=n;if(p.omittable=!0,f.length===2){let n=Qn(e,f[1]);if(n===void 0){u(t,G.InvalidParamType,`'${l}' declares '${c}' with a second type that is not a literal value. Use a number, string, boolean or null - the engine substitutes it for an omitted argument.`);return}p.omittedValue=n}return g(f[0],n,r,i,a,o,s)}if(Kn.has(c)){let e=n.name??d(t);if(!i){u(t,G.InvalidReturnType,`'Flatten' is not a valid return type: '${e}'. It describes how an ARGUMENT is received.`);return}let s=t.typeArguments;if(!s||s.length!==1){u(t,G.GenericArity,`'${c}' must be typed with exactly 1 type: '${e}'.`);return}return a.count++,g(s[0],n,r,i,a,o)}if(Gn.get(c)===`repeating`){let e=n.name??d(t);if(!i){u(t,G.RepeatingPosition,`'Repeating' is not a valid return type: '${e}'.`);return}if(a.count!==0){u(t,G.RepeatingPosition,`'Repeating' cannot be nested inside another type: '${e}'.`);return}let o=n,s=t.typeArguments;if(!s||s.length!==1){u(t,G.GenericArity,`'${c}' must be typed with exactly 1 type: '${e}'.`);return}let l=o.errors;delete o.errors;let f=h(s[0],e??`parameter`,r,l);f&&(o.repeating=f);return}let m=Hn.get(c),_=!1;m&&(n.range=m,_=!0);let v=Wn.get(c);if(v&&(n.scalar=v),v!==void 0&&(_=!0),p(t,c,n,r,i))return;if(i){if(Zn.has(c))return Xn;let e=K.get(c);if(e)return e}else{let e=Yn.get(c);if(e){let r=Object.assign(n,e()),i=0;if(r.async&&i++,r.stream&&i++,i>1){u(t,G.MultipleModifiers,`'${c}' cannot have multiple modifiers: '${d(t)}'.`);return}_=!0}}if(!_){let e=`number, string, boolean, Scalar, Lambda, Date, FormulaError.Known, IRichData, IRange, IReferenceRange (and arrays of these; optionally wrapped in AcceptError<T>/AcceptRefError<T>, or grouped with Repeating<T>)`,n;n=i?o?`'${c}' is not a valid first parameter: '${d(t)}'. The first parameter is EITHER a macro target (making this a macro) OR a calculation input (making this a calculation function). Allowed: ${Un.join(`, `)} (macro target); ${e} (calculation input).`:`'${c}' is not a valid parameter type: '${d(t)}'. Allowed: ${e}.`:`'${c}' is not a valid return type: '${d(t)}'. Allowed: number, string, boolean, Scalar, Date, FormulaError.Known, IRichData, IRange, Promise<T>, Observable<T> (and arrays of these).`,u(t,i?G.InvalidParamType:G.InvalidReturnType,n);return}let y=t.typeArguments;if(y){if(y.length!==1){u(t,G.GenericArity,`'${c}' must be typed with exactly 1 type: '${d(t)}'.`);return}f(y[0],n,r,i)}}else t.kind===e.SyntaxKind.FunctionType&&m(t,n,r,i)},_=t=>(e.getCombinedModifierFlags(t)&e.ModifierFlags.Export)!==0,v=t=>(e.getCombinedModifierFlags(t)&e.ModifierFlags.Default)!==0;try{e.forEachChild(t,t=>{if(_(t)&&e.isFunctionDeclaration(t)){let r=t?.name?.getText();if(!t.body){u(t,G.NoBody,`'${r}': function has no body.`);return}if(!r){u(t,G.Anonymous,`Anonymous exported functions are not allowed.`);return}let o={},c={parameters:{}};try{o.name=r;let d=n.getSymbolAtLocation(t.name),p=$n(d?.getDocumentationComment(n));p&&(c.summary=p);let m={};f(t.type,m,o,!1),o.returnType=m;let h={};v(t)&&(h.default=!0,s=r),Object.keys(h).length>0&&(o.behavior=h),o.parameters=[];let g=new Map,_=new Map,y=new Set,b=null,x=null,S=null,C=0,w=!1,T=0;for(let r=0;r<t.parameters.length;r++){let i=t.parameters[r],a={};a.name=i.name?.getText();let s=o.parameters.length===0,l=f(i.type,a,o,!0,s,!i.dotDotDotToken);if(l===Xn){r===0&&o.context===void 0&&(o.context=`script`);continue}if(l){if(o.parameters.length!==0){u(i,G.ContextNotFirst,`'${o.name}' contexts must be the first parameter: '${a.name}'.`);return}o.context=l;continue}if(a.lambda!==void 0){if(b!==null){u(i,G.MultipleLambda,`'${o.name}' has more than one Lambda parameter ('${b}' and '${a.name}'). Only one Lambda parameter is allowed.`);return}b=a.name}else if(b!==null){u(i,G.LambdaNotLast,`'${o.name}' Lambda parameter ('${b}') must be the last parameter, but '${a.name}' follows it.`);return}let d=i.initializer!==void 0&&i.initializer!==null||i.questionToken!==void 0&&i.questionToken!==null,p;if(d&&(a.optional=!0,i.initializer))try{i.initializer.kind===e.SyntaxKind.StringLiteral?p=i.initializer.text:i.initializer.kind===e.SyntaxKind.NumericLiteral?p=parseFloat(i.initializer.text):i.initializer.kind===e.SyntaxKind.TrueKeyword||i.initializer.kind===e.SyntaxKind.FalseKeyword?p=i.initializer.kind===e.SyntaxKind.TrueKeyword:i.initializer.kind===e.SyntaxKind.NullKeyword&&(p=null)}catch(e){console.warn(`Couldn't extract default value for parameter '${a.name}'`,e)}i.dotDotDotToken&&(a.rest=!0);let m=a.repeating;if(m){if(a.rest){u(i,G.RepeatingPosition,`'${o.name}' parameter '${a.name}' is both a rest parameter and a repeating group. A group already repeats — drop the '...'.`);return}if(d&&m.length===1){u(i,G.RepeatingOptional,`'${o.name}' parameter '${a.name}' cannot be an optional repeating group. Use '...${a.name}: T[]' for zero-or-more, or drop the '?' for one-or-more.`);return}if(x!==null){u(i,G.MultipleRepeating,`'${o.name}' has more than one repeating group ('${x}' and '${a.name}'). Only one is allowed — two would make the argument count ambiguous.`);return}if(S!==null){u(i,G.RepeatingOptional,`'${o.name}' parameter '${S}' is optional and precedes the repeating group '${a.name}'. Every parameter outside a group must be required.`);return}x=a.name,C=m.length,w=m[m.length-1].optional===!0}else if(x!==null&&a.rest){u(i,G.RepeatingOptional,`'${o.name}' parameter '${a.name}' is a rest parameter and follows the repeating group '${x}'. Two variadic tails would make the argument count ambiguous.`);return}else if(x!==null&&d){if(T>=C-1){u(i,G.RepeatingOptional,C===1?`'${o.name}' parameter '${a.name}' is optional and follows the period-1 repeating group '${x}'. One more argument is indistinguishable from one more repetition — make it required, or give the group a period.`:`'${o.name}' has ${T+1} optional parameters after the repeating group '${x}', which has period ${C}. At most ${C-1} may be optional, or the argument count no longer decides the parse.`);return}if(w){u(i,G.RepeatingOptional,`'${o.name}' parameter '${a.name}' is optional and follows '${x}', whose own last slot is already optional. Both omissions reach the same argument count — drop one.`);return}T++}d&&!m&&(S=a.name);let h=(a.range?2:0)+(a.arrayDepth??0),v=a.range===`r`||a.range===`p`||a.range===`*`,E=a.rest||v?3:2;if(h>E){u(i,G.ArrayDepth,`'${o.name}' parameter '${a.name}' has an array depth of ${h}; the maximum is ${E}${a.rest?` for a rest parameter`:` (use a rest parameter for one more level, or an IRange)`}.`);return}o.parameters.push(a);let D={description:``};c.parameters[a.name]=D;let ee=n.getSymbolAtLocation(i.name);if(D.description=$n(ee?.getDocumentationComment(n)),p!==void 0&&(a.defaultValue=p),g.set(a.name,a),_.set(a.name,i),m&&m.length>1){y.add(a.name);for(let e of m){let t=`${a.name}.${e.name}`;c.parameters[t]={description:``},g.set(t,e),_.set(t,i)}}}if(t.jsDoc&&t.jsDoc.length>0){let n=t.jsDoc,i=n.length;for(let t=0;t<i;t++){let i=n[t]?.tags;if(!i)continue;let a=i.length;for(let t=0;t<a;t++){let n=i[t],a=n?.tagName?.text;if(!a)continue;a=a.toLowerCase();let s=n.comment,l=Vn(a);if(!(typeof s!=`string`&&!l)&&(typeof s==`string`&&(s=s.replace(/\\r\\n?/g,`\n`).trim()),!(!l&&s&&(s=s.split(`\n`)[0].trim(),!s||s.length===0)))){if(s&&typeof s==`string`){let e=/\\{@link(code|plain)?\\s+([^}|]+)(?:\\s*\\|\\s*([^}]+))?\\}/g,t,n=s,r=[];for(;(t=e.exec(s))!==null;){let[e,n,r,i]=t,a=[r.trim()];i&&a.push(i.trim())}s=n,r.length>0&&a===`see`&&(c.links||=[],c.links.push(...r))}if(a===`name`){let e=s;e!==r&&(c.name=e)}else if(a!==`description`){if(a===`summary`){let e=s;e&&(c.summary=e)}else if(a===`param`){let t=n.name?.getText?.()??n.name?.text,i=g.get(t);if(!i){u(n,G.UnknownParam,`Parameter '${t}' not found in function '${r}'.`);continue}let a=c.parameters?.[t];if(a&&!a.description&&typeof s==`string`&&s&&(a.description=s),n.typeExpression&&n.typeExpression.type)try{let t=n.typeExpression.type;if(t.kind===e.SyntaxKind.UnionType){let n=[];i.enums=n,t.types.forEach(t=>{if(t.kind===e.SyntaxKind.LiteralType){let e=t.literal.text;e&&n.push(e)}})}}catch(e){console.warn(`Error parsing JSDoc type expression:`,e)}}else if(a===`returns`||a===`return`)o.returnType.description=s;else if(a===`category`)c.category=s;else if(a===`deprecated`||a===`hidden`){let e=!0,t=s?.toLowerCase();t===`false`?e=!1:t!==`true`&&(e=s),e!==!1&&(c.deprecated=e??!0)}}}}}}Object.keys(o.returnType).length===0&&delete o.returnType,c.summary||l(t.name??t,G.MissingSummary,`warning`,`'${r}': missing a description. Add a JSDoc summary or '@summary'.`);let E=!o.context;if(E&&i?.has(r.toUpperCase())){u(t.name??t,G.BuiltInName,`'${r}' is a built-in function. Choose a different name - a calculation function cannot replace a built-in.`);return}if(E){let e=c.parameters??{};for(let[t,n]of Object.entries(e))if(!y.has(t)&&!n.description){let e=_.get(t);l(e,G.MissingParamDescription,`warning`,`'${r}': parameter '${t}' is missing a description. Add an '@param ${t}' tag.`)}}a.push([o,c])}catch(e){u(t,G.ParseError,`'${r}': ${e.message}`)}}})}catch(e){u(void 0,G.ParseError,`Unable to analyze module: ${e?.message??e}`)}return{functions:a,autoRun:s,diagnostics:o}}const tr=`__SHEETXL`;var nr=n({initialize:()=>rr});async function rr(){return Y||(Y=new Promise(async(e,t)=>{try{let t=`0.20.2`,n=`https://esm.sh/esbuild-wasm@${t}`,r=`https://esm.sh/esbuild-wasm@${t}/esbuild.wasm`,i=(await import(n)).default;await i.initialize({wasmURL:r,worker:!1}),e(i)}catch(e){console.error(`Error initializing esbuild:`,e),t(e)}}),Y)}var Y,ir=t((()=>{Y=null}));let X=null,Z=null;async function ar(){if(X)return X;if(Z){if(await Z,!X)throw Error(`ESBuild initialization promise resolved, but instance is not available.`);return X}let e,t;Z=new Promise((n,r)=>{e=n,t=r});try{let{initialize:t}=await Promise.resolve().then(()=>(ir(),nr));return X=await t(),e(),X}catch(e){throw console.error(`Failed to import or initialize esbuild:`,e),Z=null,t(e),e}}const or={compilerOptions:{target:`esnext`}};async function sr(e,t,n=`/script.js`,r=tr){try{let e=await ar(),i=`@sheetxl/primitives`,a=`\n export const FormulaContext = globalThis.${r}?.FormulaContext;\n export const ScalarType = globalThis.${r}?.ScalarType;\n export const Observable = globalThis.${r}?.Observable;\n export const IRange = globalThis.${r}?.IRange;\n export const FormulaError = globalThis.${r}?.FormulaError;\n // Add more exports as needed\n `,o=await e.build({entryPoints:[n],bundle:!0,write:!1,format:`esm`,plugins:[{name:`sheetxl-esbuild-in-memory`,setup(e){let r=`sheetxl-`+new Date().getTime();e.onResolve({filter:RegExp(`^(${n.replace(`/`,`\\\\/`)}|${i})$`)},e=>({path:e.path,namespace:r})),e.onResolve({filter:/.*/},e=>{if(e.namespace!==r)return console.warn(`esbuild: Treating import \"${e.path}\" as external.`),{path:e.path,external:!0}}),e.onLoad({filter:/.*/,namespace:r},e=>{let o;if(e.path===n)o=t;else if(e.path===i)o=a;else return{errors:[{text:`Cannot load unknown path in ${r}: ${e.path}`}]};return{contents:o,loader:`ts`}})}}],sourcemap:`inline`,tsconfigRaw:or,minify:!0,platform:`neutral`});if(o.outputFiles&&o.outputFiles.length>0)return o.outputFiles[0].text;throw o.errors&&o.errors.length>0?Error(`esbuild bundling failed: ${o.errors.map(e=>e.text).join(`\n`)}`):Error(`esbuild did not produce an output file.`)}catch(e){throw console.error(`esbuild bundling process failed:`,e),e}}var cr=n({initialize:()=>lr});async function lr(){return Q||(Q=new Promise(async(e,t)=>{let n=null;try{n=await import(`https://esm.sh/typescript@5.7.2`)}catch(e){console.error(`Error initializing Browser TypeScript module:`,e)}n||console.log(`use script fallback`),e(n)}),Q)}var Q,ur=t((()=>{Q=null}));const dr=async()=>`\n interface FirstTest {\n isTrue?: boolean;\n }\n`;let $=null;async function fr(){if($)return $;try{return await(await Promise.resolve().then(()=>(ur(),cr))).initialize()}catch(e){throw $=null,e}finally{$=null}}async function pr(e){let t=e?.source??null;if(!t)return{module:null,diagnostics:[]};let n=(e.disableBundle||e.declarationsOnly)??!1,[r,i]=await Promise.all([dr(),fr()]),a=``,o={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:i.ScriptTarget.ES2020},s=`script`,c=`${s}.ts`,l=`lib.d.ts`,u=`global.d.ts`,d={[c]:t,[l]:`\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface Promise<T> {\n /**\n * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The\n * resolved value cannot be modified from the callback.\n * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).\n * @returns A Promise for the completion of the callback.\n */\n finally(onfinally?: (() => void) | undefined | null): Promise<T>;\n}\n`,[u]:r},f=i.createProgram([c,u],o,{getSourceFile:(e,t,n,r)=>i.createSourceFile(e,d[e],i.ScriptTarget.Latest,!0),fileExists:e=>d[e]!==void 0,readFile:e=>d[e],writeFile:(e,t)=>{d[e]=t},getCurrentDirectory:()=>`./`,getCanonicalFileName:e=>e,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:e=>l,getNewLine:()=>`\n`}),p=f.getTypeChecker(),m=f.getSourceFile(c);f.emit(),a=d[`${s}.js`]??``;let h=f.getSyntacticDiagnostics(m).map(e=>({start:e.start??0,length:e.length??0,severity:`error`,code:`TS${e.code}`,message:i.flattenDiagnosticMessageText(e.messageText,`\n`)})),_=er(i,m,p,{builtInNames:e.builtInNames}),v=[...h,..._.diagnostics],y=_.functions,b=_.autoRun,x=v.some(e=>e.severity===`error`),S=`${g.uuidV4()}-script`,C=null;if(x)a=``;else{try{n||(a=await sr(i,a,s))}catch{console.warn(`Error bundling script`)}let e=a.indexOf(`//# sourceMappingURL`);e>-1&&(C=a.substring(e+20+1,a.length),a=a.substring(0,e),a=a.replaceAll(`globalThis.__SHEETXL`,tr))}let w={functions:y,commitId:S,source:t,name:`Script`,language:`typescript`,compiled:a};return C&&(w.sourceMap=C),b&&(w.autoRun=b),{module:w,diagnostics:v}}self.addEventListener(`message`,async e=>{let{id:t,params:n}=e.data;try{let e=await pr(n);self.postMessage({id:t,result:e,error:null})}catch(e){self.postMessage({id:t,result:null,error:{message:e.message,stack:e.stack,cause:e.cause}})}});",r=typeof self<`u`&&self.Blob&&new Blob([`URL.revokeObjectURL(import.meta.url);`,n],{type:`text/javascript;charset=utf-8`});function i(e){let t;try{if(t=r&&(self.URL||self.webkitURL).createObjectURL(r),!t)throw``;let n=new Worker(t,{type:`module`,name:e?.name});return n.addEventListener(`error`,()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker(`data:text/javascript;charset=utf-8,`+encodeURIComponent(n),{type:`module`,name:e?.name})}}var a=async()=>{let{compileModule:e}=await Promise.resolve().then(()=>require("./CxWeFfNAUvhHe9F-.cjs")),n=new t(t=>e(t));return await n.start(),n};exports.createCompilerWorker=async function(){if(globalThis.process?.versions?.node&&typeof Worker>`u`)return await a();if(typeof Worker<`u`){let t=new e(()=>new i);try{return await t.start(),t}catch(e){console.error(`Failed to start TypescriptCompiler worker reverting to fallback:`,e)}}return await a()};
@@ -1 +0,0 @@
1
- exports.default={ABS:{s:`Returns the absolute value of a number, a number without its sign.`,p:{number:{d:`is the real number for which you want the absolute value.`}}},AGGREGATE:{s:`Returns an aggregate in a list or database.`,p:{functionNum:{d:`The function to use: 1-19.`},options:{d:`The options for the aggregate: 0-7.`},array:{d:`The ranges to aggregate.`},KOrRest:{d:`If functionNum is 14-19, this is the k value. Otherwise, this is the first of the ranges to aggregate.`}}},ARABIC:{s:`Converts a Roman numeral to Arabic.`,p:{text:{d:`is the Roman numeral you want to convert.`}}},BASE:{s:`Converts a number into a text representation with the given radix (base).`,p:{number:{d:`is the number that you want to convert.`},radix:{d:`is the base Radix that you want to convert the number into.`},minLength:{d:`is the minimum length of the returned string.`}}},CEILING:{s:`Rounds a number up, to the nearest multiple of significance.`,c:`Compatibility`,p:{number:{d:`is the value you want to round.`},significance:{d:`is the multiple to which you want to round.`}}},"CEILING.MATH":{s:`Rounds a number up, to the nearest integer or to the nearest multiple of significance.`,p:{number:{d:`is the real number you want to round.`},significance:{d:`when given and nonzero this function will round away from zero.`},mode:{}}},"CEILING.PRECISE":{s:`Rounds a number up to the nearest integer or to the nearest multiple of significance.`,c:`Compatibility`,p:{number:{d:`is the real number you want to round.`},significance:{d:`is the multiple to which you want to round.`}}},"ECMA.CEILING":{s:`Rounds a number up, to the nearest multiple of significance.`,c:`Compatibility`,p:{number:{d:`is the value you want to round.`},significance:{d:`is the multiple to which you want to round.`}}},COMBIN:{s:`Returns the number of combinations for a given number of items.`,p:{number:{d:`is the total number of items.`},numberChosen:{d:`is the number of items in each combination.`}}},COMBINA:{s:`Returns the number of combinations with repetitions for a given number of items.`,p:{number:{d:`is the total number of items.`},numberChosen:{d:`is the number of items in each combination.`}}},DECIMAL:{s:`Converts a text representation of a number in a given base into a decimal number.`,p:{number:{d:`is the number that you want to convert.`},radix:{d:`is the base Radix of the number you are converting.`}}},DEGREES:{s:`Converts radians to degrees.`,p:{angle:{d:`is the angle in radians that you want to convert.`}}},EVEN:{s:`Rounds a positive number up and negative number down to the nearest even integer.`,p:{number:{d:`is the value to round.`}}},EXP:{s:`Returns e raised to the power of a given number.`,p:{number:{d:`is the exponent applied to the base e. The constant e equals 2.71828182845904, the base of the natural logarithm.`}}},FACT:{s:`Returns the factorial of a number, equal to 1*2*3*...* Number.`,p:{number:{d:`is the nonnegative number you want the factorial for.`}}},FACTDOUBLE:{s:`Returns the double factorial of a number.`,p:{number:{d:`is the value for which to return the double factorial.`}}},FLOOR:{s:`Rounds a number down to the nearest multiple of significance.`,c:`Compatibility`,p:{number:{d:`is the real number you want to round.`},significance:{d:`is the multiple to which you want to round. Number and Significance must either both be positive or both be negative.`}}},"FLOOR.MATH":{s:`Rounds a number down, to the nearest integer or to the nearest multiple of significance.`,p:{number:{d:`is the real number you want to round.`},significance:{d:`is the multiple to which you want to round.`},mode:{d:`when given and nonzero this function will round towards zero.`}}},"FLOOR.PRECISE":{s:`Rounds a number down to the nearest integer or to the nearest multiple of significance.`,p:{number:{d:`is the real number you want to round.`},significance:{d:`is the multiple to which you want to round.`}}},GCD:{s:`Returns the greatest common divisor.`,p:{number:{d:`are 1 to 255 values.`}}},INT:{s:`Rounds a number down to the nearest integer.`,p:{number:{d:`is the real number you want to round down to an integer.`}}},"ISO.CEILING":{s:`Rounds a number up to the nearest integer.`,c:`Compatibility`,p:{number:{d:`is the real number you want to round up to an integer.`},significance:{d:`is the multiple to which you want to round number.`}}},LCM:{s:`Returns the least common multiple.`,p:{number:{d:`are 1 to 255 values for which you want the least common multiple.`}}},LN:{s:`Returns the natural logarithm of a number.`,p:{number:{d:`is the positive real number for which you want the natural logarithm.`}}},LOG:{s:`Returns the logarithm of a number to the base you specify.`,p:{number:{d:`is the positive real number for which you want the logarithm.`},base:{d:`is the base of the logarithm.`}}},LOG10:{s:`Returns the base-10 logarithm of a number.`,p:{number:{d:`is the positive real number for which you want the base-10 logarithm.`}}},MDETERM:{s:`Returns the matrix determinant of an array.`,p:{array:{d:`is a numeric array with an equal number of rows and columns, either a cell range or an array constant.`}}},MINVERSE:{s:`Returns the inverse matrix for the matrix stored in an array.`,p:{array:{d:`is a numeric array with an equal number of rows and columns, either a cell range or an array constant.`}}},MMULT:{s:`Returns the matrix product of two arrays, an array with the same number of rows as array1 and columns as array2.`,p:{array1:{d:`is the first array of numbers to multiply and must have the same number of columns as Array2 has rows.`},array2:{d:`is the second array of numbers to multiply and must have the same number of columns as Array1 has rows.`}}},MOD:{s:`Returns the remainder after a number is divided by a divisor.`,p:{number:{d:`is the number for which you want to find the remainder after the division is performed.`},divisor:{d:`is the number by which you want to divide Number.`}}},MROUND:{s:`Returns a number rounded to the desired multiple.`,p:{number:{d:`is the value to round.`},multiple:{d:`is the multiple to which you want to round number.`}}},MULTINOMIAL:{s:`Returns the multinomial of a set of numbers.`,p:{number:{d:`are 1 to 255 values for which you want the multinomial.`}}},MUNIT:{s:`Returns the unit matrix for the specified dimension.`,p:{dimension:{d:`is an integer specifying the dimension of the unit matrix that you want to return.`}}},ODD:{s:`Rounds a positive number up and negative number down to the nearest odd integer.`,p:{number:{d:`is the value to round.`}}},PERCENTOF:{s:`Returns the percentage of a subset of a given data set.`,p:{dataSubset:{d:`is the subset.`},dataAll:{d:`is the data set.`}}},PI:{s:`Returns the value of Pi, 3.14159265358979, accurate to 15 digits.`,p:{}},POWER:{s:`Returns the result of a number raised to a power.`,p:{number:{d:`is the base number, any real number.`},power:{d:`is the exponent, to which the base number is raised.`}}},PRODUCT:{s:`Multiplies all the numbers given as arguments.`,p:{number:{d:`are 1 to 255 numbers, logical values, or text representations of numbers that you want to multiply.`}}},QUOTIENT:{s:`Returns the integer portion of a division.`,p:{numerator:{d:`is the dividend.`},denominator:{d:`is the divisor.`}}},RADIANS:{s:`Converts degrees to radians.`,p:{angle:{d:`is an angle in degrees that you want to convert.`}}},RAND:{s:`Returns a random number greater than or equal to 0 and less than 1, evenly distributed (changes on recalculation).`,p:{}},RANDARRAY:{s:`Returns an array of random numbers.`,p:{rows:{d:`the number of rows in the returned array.`},columns:{d:`the number of columns in the returned array.`},min:{d:`the minimum number you would like returned.`},max:{d:`the maximum number you would like returned.`},integer:{d:`return an integer or a decimal value. TRUE for an integer, FALSE for a decimal number.`}}},RANDBETWEEN:{s:`Returns a random number between the numbers you specify.`,p:{bottom:{d:`is the smallest integer RANDBETWEEN will return.`},top:{d:`is the largest integer RANDBETWEEN will return.`}}},ROMAN:{s:`Converts an Arabic numeral to Roman, as text.`,p:{number:{d:`is the Arabic numeral you want to convert.`},form:{d:`is the number specifying the type of Roman numeral you want.`}}},ROUND:{s:`Rounds a number to a specified number of digits.`,p:{number:{d:`is the number you want to round.`},numDigits:{d:`is the number of digits to which you want to round. Negative rounds to the left of the decimal point to the nearest integer.`}}},ROUNDDOWN:{s:`Rounds a number down, toward zero.`,p:{number:{d:`is any real number that you want rounded down.`},numDigits:{d:`is the number of digits to which you want to round. Negative rounds to the left of the decimal point to the nearest integer.`}}},ROUNDUP:{s:`Rounds a number up, away from zero.`,p:{number:{d:`is any real number that you want rounded up.`},numDigits:{d:`is the number of digits to which you want to round. Negative rounds to the left of the decimal point to the nearest integer.`}}},SEQUENCE:{s:`Returns a sequence of numbers.`,p:{rows:{d:`the number of rows to return.`},columns:{d:`the number of columns to return.`},start:{d:`the first number in the sequence.`},step:{d:`the amount to increment each subsequent value in the sequence.`}}},SERIESSUM:{s:`Returns the sum of a power series based on the formula.`,p:{x:{d:`is the input value to the power series.`},n:{d:`is the initial power to which you want to raise x.`},m:{d:`is the step by which to increase n for each term in the series.`},coefficients:{d:`is a set of coefficients by which each successive power of x is multiplied.`}}},SIGN:{s:`Returns the sign of a number: 1 if the number is positive, zero if the number is zero, or -1 if the number is negative.`,p:{number:{d:`is any real number.`}}},SQRT:{s:`Returns the square root of a number.`,p:{number:{d:`is the number for which you want the square root.`}}},SQRTPI:{s:`Returns the square root of (number * Pi).`,p:{number:{d:`is the number by which p is multiplied.`}}},SUBTOTAL:{s:`Returns a subtotal in a list or database.`,p:{functionNum:{d:`is the number 1 to 11 that specifies the summary function for the subtotal.`},ref:{d:`are 1 to 254 ranges or references for which you want the subtotal.`}}},SUM:{s:`Adds all the numbers in a range of cells.`,p:{number:{d:`are 1 to 255 numbers to sum. Logical values and text are ignored in cells, included if typed as arguments.`}}},SUMIF:{s:`Adds the cells specified by a given condition or criteria.`,p:{range:{d:`is the range of cells you want evaluated.`},criteria:{d:`is the condition or criteria in the form of a number, expression, or text that defines which cells will be added.`},sumRange:{d:`are the actual cells to sum. If omitted, the cells in range are used.`}}},SUMIFS:{s:`Adds the cells specified by a given set of conditions or criteria.`,p:{sumRange:{d:`are the actual cells to sum.`},criteria:{d:`the ranges to evaluate and the conditions to evaluate them against.`},"criteria.criteriaRange":{d:`is the range of cells you want evaluated for the particular condition.`},"criteria.criteria":{d:`is the condition or criteria in the form of a number, expression, or text that defines which cells will be added.`}}},SUMPRODUCT:{s:`Returns the sum of the products of corresponding ranges or arrays.`,p:{array:{d:`are 2 to 255 arrays for which you want to multiply and then add components. All arrays must have the same dimensions.`}}},SUMSQ:{s:`Returns the sum of the squares of the arguments. The arguments can be numbers, arrays, names, or references to cells that contain numbers.`,p:{number:{d:`are 1 to 255 numbers, arrays, names, or references to arrays for which you want the sum of the squares.`}}},SUMX2MY2:{s:`Sums the differences between the squares of two corresponding ranges or arrays.`,p:{arrayX:{d:`is the first range or array of numbers and can be a number or name, array, or reference that contains numbers.`},arrayY:{d:`is the second range or array of numbers and can be a number or name, array, or reference that contains numbers.`}}},SUMX2PY2:{s:`Returns the sum total of the sums of squares of numbers in two corresponding ranges or arrays.`,p:{arrayX:{d:`is the first range or array of numbers and can be a number or name, array, or reference that contains numbers.`},arrayY:{d:`is the second range or array of numbers and can be a number or name, array, or reference that contains numbers.`}}},SUMXMY2:{s:`Sums the squares of the differences in two corresponding ranges or arrays.`,p:{arrayX:{d:`is the first range or array of numbers and can be a number or name, array, or reference that contains numbers.`},arrayY:{d:`is the second range or array of numbers and can be a number or name, array, or reference that contains numbers.`}}},TRUNC:{s:`Truncates a number to an integer by removing the decimal, or fractional, part of the number.`,p:{number:{d:`is the number you want to truncate.`},numDigits:{d:`is a number specifying the precision of the truncation.`}}}};
@@ -1 +0,0 @@
1
- var e,t,n,r,i;(function(e){e.MAX_TEXT_LENGTH=32767;let t=e.MAX_SIGNIFICANT_DIGITS=15;e.truncateNumberText=function(e){let n=e.length;if(n<=t)return e;let r=0,i=null;for(let a=0;a<n;a++){let n=e.charCodeAt(a);if(n>=48&&n<=57){if(r===0&&n===48)continue;r++,r>t&&((i??=e.split(``))[a]=`0`)}else if((n===69||n===101)&&r>0)break}return i===null?e:i.join(``)}})(e||={});var a={Number:`number`,String:`string`,Boolean:`boolean`,Error:`error`,RichData:`richData`,Null:`null`},o={...a,Date:`date`},s=/[.*+?^${}()|[\]\\]/,c=e=>s.test(e)?`\\`+e:e,l={isWildCard:e=>typeof e==`string`&&/[*?]/.test(e),toRegex:(e,t,n=!1)=>{let r=``,i=e.length;for(let t=0;t<i;t++){let n=e[t];if(n===`~`){let n=e[t+1];n===`*`||n===`?`||n===`~`?(r+=c(n),t++):r+=`~`;continue}r+=n===`*`?`.*`:n===`?`?`.`:c(n)}return RegExp(n?`^${r}$`:r,t)}};(n=t||={}).Axis={Column:`column`,Row:`row`},n.AxisSelection={...t.Axis,Both:`both`},n.Direction={Up:`up`,Down:`down`,Left:`left`,Right:`right`},(r||={}).Aggregate={Count:`count`,NumericalCount:`numericalCount`,Sum:`sum`,Average:`average`,StdDev:`stdDev`,PopulationStdDev:`stdDevP`,Variance:`var`,PopulationVariance:`varP`,Min:`min`,Max:`max`},function(e){let t=e.Code={Parse:0,Null:1,Div0:2,Value:3,Ref:4,Name:5,Num:6,NA:7,GettingData:8,Spill:9,Connect:10,Blocked:11,Unknown:12,Field:13,Calc:14,Busy:16,Python:19,Timeout:20},n=e.Label={Parse:`#PARSE!`,Null:`#NULL!`,Div0:`#DIV/0!`,Value:`#VALUE!`,Ref:`#REF!`,Name:`#NAME?`,Num:`#NUM!`,NA:`#N/A`,GettingData:`#GETTING_DATA`,Spill:`#SPILL!`,Connect:`#CONNECT!`,Blocked:`#BLOCKED!`,Unknown:`#UNKNOWN!`,Field:`#FIELD!`,Calc:`#CALC!`,Busy:`#BUSY!`,Python:`#PYTHON!`,Timeout:`#TIMEOUT!`};class r extends Error{constructor(e,t,n,r){super(n,r),this._label=t,this._code=e,this.details=r}static{this.code=i.Code.Unknown}get isFormulaError(){return!0}getLabel(){return this._label}getCode(){return this._code}equals(e){return!!e&&(this._code===e._code||this._code===e.code)}get[Symbol.toStringTag](){return`[FormulaError]`}toString(){return this._label}}e.Known=r;class a extends r{constructor(e,r){super(t.Parse,n.Parse,e,r)}static{this.code=i.Code.Parse}getDetails(){let e=this.details;return{line:e?.line??1,column:e?.column??1,offset:e?.offset??0,length:e?.length??0}}}e.Parse=a;class o extends r{constructor(e,r){super(t.Null,n.Null,e,r)}static{this.code=i.Code.Null}}e.Null=o;class s extends r{constructor(e,r){super(t.Div0,n.Div0,e,r)}static{this.code=i.Code.Div0}}e.Div0=s;class c extends r{constructor(e,r){super(t.Value,n.Value,e,r)}static{this.code=i.Code.Value}}e.Value=c;class l extends r{constructor(e,r){super(t.Ref,n.Ref,e,r)}static{this.code=i.Code.Ref}}e.Ref=l;class u extends r{constructor(e,r){super(t.Name,n.Name,e,r)}static{this.code=i.Code.Name}}e.Name=u;class d extends r{constructor(e,r){super(t.Num,n.Num,e,r)}static{this.code=i.Code.Num}}e.Num=d;class f extends r{constructor(e,r){super(t.NA,n.NA,e,r)}static{this.code=i.Code.NA}}e.NA=f;class p extends r{constructor(e,r){super(t.GettingData,n.GettingData,e,r)}static{this.code=i.Code.GettingData}}e.GettingData=p;class m extends r{constructor(e,r){super(t.Spill,n.Spill,e,r)}static{this.code=i.Code.Spill}}e.Spill=m;class h extends r{constructor(e,r){super(t.Connect,n.Connect,e,r)}static{this.code=i.Code.Connect}}e.Connect=h;class g extends r{constructor(e,r){super(t.Blocked,n.Blocked,e,r)}static{this.code=i.Code.Blocked}}e.Blocked=g;class _ extends r{constructor(e,r){super(t.Unknown,n.Unknown,e,r)}static{this.code=i.Code.Unknown}}e.Unknown=_;class v extends r{constructor(e,r){super(t.Field,n.Field,e,r)}static{this.code=i.Code.Field}}e.Field=v;class y extends r{constructor(e,r){super(t.Calc,n.Calc,e,r)}static{this.code=i.Code.Calc}}e.Calc=y;class b extends r{constructor(e,r){super(t.Busy,n.Busy,e,r)}static{this.code=i.Code.Busy}}e.Busy=b;class x extends r{constructor(e,r){super(t.Python,n.Python,e,r)}static{this.code=i.Code.Python}}e.Python=x;class S extends r{constructor(e,r){super(t.Timeout,n.Timeout,e,r)}static{this.code=i.Code.Timeout}}e.Timeout=S}(i||={});var u={};u[i.Code.Parse]=i.Parse,u[i.Code.Null]=i.Null,u[i.Code.Div0]=i.Div0,u[i.Code.Value]=i.Value,u[i.Code.Ref]=i.Ref,u[i.Code.Name]=i.Name,u[i.Code.Num]=i.Num,u[i.Code.NA]=i.NA,u[i.Code.GettingData]=i.GettingData,u[i.Code.Spill]=i.Spill,u[i.Code.Connect]=i.Connect,u[i.Code.Blocked]=i.Blocked,u[i.Code.Unknown]=i.Unknown,u[i.Code.Field]=i.Field,u[i.Code.Calc]=i.Calc,u[i.Code.Busy]=i.Busy,u[i.Code.Python]=i.Python,u[i.Code.Timeout]=i.Timeout;var d=new Map,f=new Map,p=new Map,m=new Map,h=Object.keys(u);for(let e=0;e<h.length;e++){let t=u[h[e]],n=new t;p.set(n.getLabel(),t),m.set(n.getCode(),t),d.set(n.getLabel(),n),f.set(n.getCode(),n)}(function(e){let t=e.getBuiltInByCode=e=>f.get(e);e.BuiltIn={Parse:t(i.Code.Parse),Null:t(i.Code.Null),Div0:t(i.Code.Div0),Value:t(i.Code.Value),Ref:t(i.Code.Ref),Name:t(i.Code.Name),Num:t(i.Code.Num),NA:t(i.Code.NA),GettingData:t(i.Code.GettingData),Spill:t(i.Code.Spill),Connect:t(i.Code.Connect),Blocked:t(i.Code.Blocked),Unknown:t(i.Code.Unknown),Field:t(i.Code.Field),Calc:t(i.Code.Calc),Busy:t(i.Code.Busy),Python:t(i.Code.Python),Timeout:t(i.Code.Timeout)},e.newTypedError=(e,t,n)=>{let r;return r=typeof e==`string`?p.get(e):m.get(e),r||=i.Unknown,new r(t,n)},e.getBuiltInByLabel=e=>d.get(e),e.isError=function(e,t){return!!e&&!0===e.isFormulaError&&(t===void 0||e.getCode()===t)}})(i||={});var g=class{constructor(e){this._subscribeFn=e}subscribe(e,t,n){let r=typeof e==`object`?{next:e.next||(()=>{}),error:e.error||(()=>{}),complete:e.complete||(()=>{}),unsubscribe:()=>{}}:{next:e||(()=>{}),error:t||(()=>{}),complete:n||(()=>{}),unsubscribe:()=>{}},i=this._subscribeFn(r);return r.unsubscribe=()=>{typeof i==`function`&&i()},r}},_=e=>{if(e==null)return 0;switch(typeof e){case`number`:return 1;case`string`:return 2;case`boolean`:return 3;default:return 4}},v=class extends Error{constructor(e=`Not implemented in StubbedFormulaContext`){super(e),this.name=`NotImplementedError`}},y=Object.freeze({colStart:0,rowStart:0,colEnd:16383,rowEnd:1048575}),b={isDate1904:()=>!1,getLocale:()=>w.tag,getLocaleProfile:()=>w,isR1C1:()=>!1,getNow:()=>0,getLocation:()=>`unknown`,getVersion:()=>`1.0.0`,getOS:()=>`unknown`,getUser:()=>`unidentified`,getDescription:()=>`Stubbed Formula Context`},x=2958465,S=new class{createRange(e,t,n){throw new v}getReference(e,t){throw new v}getResizedReference(e,t,n){throw new v}getNumberFormat(e,t){throw new v}fromSerialDate(e,t){throw new v}toSerialDate(e,t){throw new v}getDateParts(e,t){throw new v}getSerialDate(e,t,n,r,i,a,o){throw new v}getNow(){throw new v}getValueAt(e,t,n,r){return null}getEntireCoords(){return y}isValidDate(e,t){return e instanceof Date||Object.prototype.toString.call(e)===`[object Date]`?!isNaN(e.getTime()):!t&&typeof e==`number`&&!(e<0||e>x)}getRow(){return 0}getColumn(){return 0}getFormulaAt(e,t,n){return null}getSpillAt(e,t,n){return null}getSheetIndex(e){return-1}getSheetCount(){return 1}markVolatile(){}formatResults(e){}filterHidden(e,t){return e}filterTotals(e){return e}getFunction(e){return null}getAddress(e,t){throw new v}parseAsSerialDate(e,t){throw new v}parseAsDate(e,t){throw new v}parseAsNumber(e,t){throw new v}createCriteria(e){throw new v}parseAsLiteral(e){let t=e.toUpperCase();return t===`TRUE`||t!==`FALSE`&&i.getBuiltInByLabel(t)}toText(e){return typeof e==`string`?e:e==null?``:typeof e==`boolean`?e?`TRUE`:`FALSE`:e?.isFormulaError?e.getLabel():String(e)}compare(e,t,n){if(e===t)return 0;let r=_(e),i=_(t);return r===i?e<t?-1:+(e>t):r<i?-1:1}getRuntime(){return b}},C=class{constructor(){this._scope=S}_setScope(e){this._scope=e??S}_getScope(){return this._scope}getNumberFormat(e,t){return this._getScope().getNumberFormat(e,t)}getEntireCoords(){return this._getScope().getEntireCoords()??y}parseAsSerialDate(e,t){return this._getScope().parseAsSerialDate(e,t)}parseAsDate(e,t){return this._getScope().parseAsDate(e,t)}parseAsNumber(e,t){return this._getScope().parseAsNumber(e,t)}createCriteria(e){return this._getScope().createCriteria(e)}parseAsLiteral(e){let t=this._getScope();return t.parseAsLiteral?t.parseAsLiteral(e):S.parseAsLiteral(e)}toText(e){return this._getScope().toText(e)}isValidDate(e,t=!1){return this._getScope().isValidDate(e,t)}fromSerialDate(e,t=!1){return this._getScope().fromSerialDate(e,t)}toSerialDate(e,t=!1){return this._getScope().toSerialDate(e,t)}getDateParts(e,t){return this._getScope().getDateParts(e,t)}getSerialDate(e,t,n,r=0,i=0,a=0,o=0){return this._getScope().getSerialDate(e,t,n,r,i,a,o)}getNow(){return this._getScope().getNow()}createRange(e,t,n){return this._getScope().createRange(e,t,n)}getRow(){return this._getScope().getRow?.()??0}getColumn(){return this._getScope().getColumn?.()??0}getReference(e,t){return this._getScope().getReference(e,t)}getResizedReference(e,t,n){return this._getScope().getResizedReference(e,t,n)}getValueAt(e,t,n){return this._getScope().getValueAt(e,t,n)}getFormulaAt(e,t,n){return this._getScope().getFormulaAt?.(e,t,n)??null}getSpillAt(e,t,n){return this._getScope().getSpillAt?.(e,t,n)??null}getSheetIndex(e){return this._getScope().getSheetIndex?.(e)??-1}getSheetCount(){return this._getScope().getSheetCount?.()??1}markVolatile(){this._getScope().markVolatile?.()}formatResults(e){this._getScope().formatResults?.(e)}filterHidden(e,t){return this._getScope().filterHidden?.(e,t)??e}filterTotals(e){return this._getScope().filterTotals?.(e)??e}getFunction(e){return this._getScope().getFunction?.(e)??null}getAddress(e,t){return this._getScope().getAddress(e,t)}compare(e,t,n){return this._getScope().compare?.(e,t,n)??S.compare(e,t,n)}getRuntime(){return this._getScope().getRuntime()}get[Symbol.toStringTag](){return`[FormulaContext]`}toString(){return this._getScope()?.toString?.()??`{STUB SCOPE}`}},w=Object.freeze({tag:`en-US`,numberingSystem:`latn`,decimal:`.`,group:`,`,grouping:[3],minusSign:`-`,percentSign:`%`,permilleSign:`‰`,currencyCode:`USD`,currencySymbol:`$`,currencyDisplay:`symbol`,currencyPosition:`before`,currencySpacing:`tight`,date:Object.freeze({calendar:`gregory`,short:`M/d/yy`,medium:`MMM d, y`,long:`MMMM d, y`,timeShort:`h:mm a`,timeLong:`h:mm:ss a`,am:`AM`,pm:`PM`,firstDay:0,weekend:[6,0],monthsWide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],weekdaysWide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],weekdaysAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],hour12:!0}),listSeparator:`,`,csvDelimiter:`,`,rtl:!1,collator:Object.freeze({sensitivity:`base`,numeric:!0})}),T=new C;Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return T}});
@@ -1 +0,0 @@
1
- exports.default={BAHTTEXT:{s:`Converts a number to baht (Thai) text.`,c:`Baht`,p:{number:{d:`is the number to convert.`}},h:`Thai`}};
@@ -1 +0,0 @@
1
- function e(e){return Array.isArray?Array.isArray(e):c(e)===`[object Array]`}function t(e){return e==null?``:function(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}(e)}function n(e){return typeof e==`string`}function r(e){return typeof e==`number`}function i(e){return!0===e||!1===e||function(e){return a(e)&&e!==null}(e)&&c(e)==`[object Boolean]`}function a(e){return typeof e==`object`}function o(e){return e!=null}function s(e){return!e.trim().length}function c(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var l=`Invalid doc index: must be a non-negative integer within the bounds of the docs array`,u=Object.prototype.hasOwnProperty,d=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=f(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function f(t){let r=null,i=null,a=null,o=1,s=null;if(n(t)||e(t))a=t,r=p(t),i=m(t);else{if(!u.call(t,`name`))throw Error(`Missing name property in key`);let e=t.name;if(a=e,u.call(t,`weight`)&&t.weight!==void 0&&(o=t.weight,o<=0))throw Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(m(e)));r=p(e),i=m(e),s=t.getFn??null}return{path:r,id:i,weight:o,src:a,getFn:s}}function p(t){return e(t)?t:t.split(`.`)}function m(t){return e(t)?t.join(`.`):t}var h=Object.freeze({isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:`any`,getFn:function(a,s){let c=[],l=!1,u=(a,s,d,f)=>{if(o(a))if(s[d]){let p=a[s[d]];if(!o(p))return;if(d===s.length-1&&(n(p)||r(p)||i(p)||typeof p==`bigint`))c.push(f===void 0?t(p):{v:t(p),i:f});else if(e(p)){l=!0;for(let e=0,t=p.length;e<t;e+=1)u(p[e],s,d+1,e)}else s.length&&u(p,s,d+1,f)}else c.push(f===void 0?a:{v:a,i:f})};return u(a,n(s)?s.split(`.`):s,0),l?c:c[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1});function g(e){return e>=9&&e<=13||e===32||e===160}var _=class{constructor({getFn:e=h.getFn,fieldNormWeight:t=h.fieldNormWeight}={}){this.norm=function(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=0,a=!1;for(let e=0;e<t.length;e++)g(t.charCodeAt(e))?a=!1:a||=(i++,!0);if(i===0&&(i=1),n.has(i))return n.get(i);let o=Math.round(r/i**(.5*e))/r;return n.set(i,o),o},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;let e=this.docs.length;this.records=Array(e);let t=0;if(n(this.docs[0]))for(let n=0;n<e;n++){let e=this._createStringRecord(this.docs[n],n);e&&(this.records[t++]=e)}else for(let n=0;n<e;n++)this.records[t++]=this._createObjectRecord(this.docs[n],n);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw Error(l);if(n(e)){let n=this._createStringRecord(e,t);return n&&this.records.push(n),n}let r=this._createObjectRecord(e,t);return this.records.push(r),r}removeAt(e){if(!Number.isInteger(e)||e<0)throw Error(l);for(let t=0,n=this.records.length;t<n;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,n=this.records.length;t<n;t+=1)this.records[t].i>e&&--this.records[t].i}removeAll(e){let t=new Set;for(let n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(t.size===0)return;this.records=this.records.filter(e=>!t.has(e.i));let n=Array.from(t).sort((e,t)=>e-t);for(let e of this.records){let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e.i?t=i+1:r=i}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!o(e)||s(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(r,i){let a={i,$:{}};for(let i=0,c=this.keys.length;i<c;i++){let c=this.keys[i],l=c.getFn?c.getFn(r):this.getFn(r,c.path);if(o(l)){if(e(l)){let e=[];for(let r=0,i=l.length;r<i;r+=1){let i=l[r];if(o(i)){if(n(i)){if(!s(i)){let t={v:i,i:r,n:this.norm.get(i)};e.push(t)}}else if(o(i.v)){let r=n(i.v)?i.v:t(i.v);if(!s(r)){let t={v:r,i:i.i,n:this.norm.get(r)};e.push(t)}}}}a.$[i]=e}else if(n(l)&&!s(l)){let e={v:l,n:this.norm.get(l)};a.$[i]=e}}}return a}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function v(e,t,{getFn:n=h.getFn,fieldNormWeight:r=h.fieldNormWeight}={}){let i=new _({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(f)),i.setSources(t),i.create(),i}function y(e,t,n,{location:r=h.location,distance:i=h.distance,threshold:a=h.threshold,findAllMatches:o=h.findAllMatches,minMatchCharLength:s=h.minMatchCharLength,includeMatches:c=h.includeMatches,ignoreLocation:l=h.ignoreLocation}={}){if(t.length>32)throw Error(`Pattern length exceeds max of 32.`);let u,d=t.length,f=e.length,p=Math.max(0,Math.min(r,f)),m=a,g=p,_=(e,t)=>{let n=e/d;if(l)return n;let r=Math.abs(p-t);return i?n+r/i:r?1:n},v=s>1||c,y=v?Array(f):[];for(;(u=e.indexOf(t,g))>-1;){let e=_(0,u);if(m=Math.min(e,m),g=u+d,v){let e=0;for(;e<d;)y[u+e]=1,e+=1}}g=-1;let b=[],x=1,S=0,C=d+f,w=1<<d-1;for(let t=0;t<d;t+=1){let r=0,i=C;for(;r<i;)_(t,p+i)<=m?r=i:C=i,i=Math.floor((C-r)/2+r);C=i;let a=Math.max(1,p-i+1),s=o?f:Math.min(p+i,f)+d,c=Array(s+2);c[s+1]=(1<<t)-1;for(let r=s;r>=a;--r){let i=r-1,o=n[e[i]];if(c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(b[r+1]|b[r])<<1|1|b[r+1]),c[r]&w&&(x=_(t,i),x<=m)){if(m=x,g=i,S=t,g<=p)break;a=Math.max(1,2*p-g)}}if(_(t+1,p)>m)break;b=c}if(v&&g>=0){let t=Math.min(f-1,g+d-1+S);for(let r=g;r<=t;r+=1)n[e[r]]&&(y[r]=1)}let T={isMatch:g>=0,score:Math.max(.001,x)};if(v){let e=function(e=[],t=h.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:o||r===-1||(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}(y,s);e.length?c&&(T.indices=e):T.isMatch=!1}return T}function b(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function x(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){let r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}var S={ł:`l`,Ł:`L`,đ:`d`,Đ:`D`,ø:`o`,Ø:`O`,ħ:`h`,Ħ:`H`,ŧ:`t`,Ŧ:`T`,ı:`i`,ß:`ss`},C=RegExp(`[`+Object.keys(S).join(``)+`]`,`g`),w=typeof String.prototype.normalize==`function`?e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(C,e=>S[e]):e=>e,T=class{constructor(e,{location:t=h.location,threshold:n=h.threshold,distance:r=h.distance,includeMatches:i=h.includeMatches,findAllMatches:a=h.findAllMatches,minMatchCharLength:o=h.minMatchCharLength,isCaseSensitive:s=h.isCaseSensitive,ignoreDiacritics:c=h.ignoreDiacritics,ignoreLocation:l=h.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?w(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:b(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0,t=d%32,n=d-t;for(;e<n;)u(this.pattern.substr(e,32),e),e+=32;if(t){let e=d-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?w(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=y(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=x(u)),p}},E=new Set([`fuzzy`,`include`]);function D(e){return e.startsWith(`inverse`)}var O=[{type:`exact`,multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:`exact`,search(t){let n=t===e;return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`include`,multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:`include`,search(t){let n,r=0,i=[],a=e.length;for(;(n=t.indexOf(e,r))>-1;)r=n+a,i.push([n,r-1]);let o=!!i.length;return{isMatch:o,score:+!o,indices:i}}})},{type:`prefix-exact`,multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:`prefix-exact`,search(t){let n=t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`inverse-prefix-exact`,multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:`inverse-prefix-exact`,search(t){let n=!t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`inverse-suffix-exact`,multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:`inverse-suffix-exact`,search(t){let n=!t.endsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`suffix-exact`,multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:`suffix-exact`,search(t){let n=t.endsWith(e);return{isMatch:n,score:+!n,indices:[t.length-e.length,t.length-1]}}})},{type:`inverse-exact`,multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:`inverse-exact`,search(t){let n=t.indexOf(e)===-1;return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`fuzzy`,multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{let n=new T(e,{location:t.location??h.location,threshold:t.threshold??h.threshold,distance:t.distance??h.distance,includeMatches:t.includeMatches??h.includeMatches,findAllMatches:t.findAllMatches??h.findAllMatches,minMatchCharLength:t.minMatchCharLength??h.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??h.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??h.ignoreDiacritics,ignoreLocation:t.ignoreLocation??h.ignoreLocation});return{type:`fuzzy`,search:e=>n.searchIn(e)}}}],k=O.length;function A(e,t){let n=e.match(t);return n?n[1]:null}var j=[];function M(...e){j.push(...e)}function N(e,t){for(let n=0,r=j.length;n<r;n+=1){let r=j[n];if(r.condition(e,t))return new r(e,t)}return new T(e,t)}var P=`$and`,F=`$path`,I=e=>!(!e[P]&&!e.$or),L=e=>({[P]:Object.keys(e).map(t=>({[t]:e[t]}))});function R(t,r,{auto:i=!0}={}){let o=t=>{if(n(t)){let e={keyId:null,pattern:t};return i&&(e.searcher=N(t,r)),e}let s=Object.keys(t),c=(e=>!!e[F])(t);if(!c&&s.length>1&&!I(t))return o(L(t));if((t=>!e(t)&&a(t)&&!I(t))(t)){let e=c?t[F]:s[0],a=c?t.$val:t[e];if(!n(a))throw Error((e=>`Invalid value for key ${e}`)(e));let o={keyId:m(e),pattern:a};return i&&(o.searcher=N(a,r)),o}let l={children:[],operator:s[0]};return s.forEach(n=>{let r=t[n];e(r)&&r.forEach(e=>{l.children.push(o(e))})}),l};return I(t)||(t=L(t)),o(t)}function z(e,{ignoreFieldNorm:t=h.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**(+(a||1)*(t?1:r))}),n}var B=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):this.comparator(e,this.heap[0])<0&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(){return this.heap.sort(this.comparator)}_bubbleUp(e){let t=this.heap;for(;e>0;){let n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{let i=2*(e=r)+1,a=2*e+2;if(i<n&&this.comparator(t[i],t[r])>0&&(r=i),a<n&&this.comparator(t[a],t[r])>0&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function V(e,t,{includeMatches:n=h.includeMatches,includeScore:r=h.includeScore}={}){return e.map(e=>{let{idx:i}=e,a={item:t[i],refIndex:i};return n&&(a.matches=function(e){let t=[];return e.matches.forEach(e=>{if(!o(e.indices)||!e.indices.length)return;let n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}(e)),r&&(a.score=e.score),a})}var H=/[\p{L}\p{M}\p{N}_]+/gu,U=new WeakSet;function W({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){let r=function(e){if(typeof e==`function`){let t=!1;return n=>{let r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>typeof e!=`string`)))throw Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?`array containing non-strings`:typeof r}.`);return r}}return e instanceof RegExp?(e.global||(t=e,U.has(t)||(U.add(t),console.warn(`[Fuse] tokenize regex ${t} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))),t=>t.match(e)||[]):e=>e.match(H)||[];var t}(n);return{tokenize:n=>(e||(n=n.toLowerCase()),t&&(n=w(n)),r(n))}}function G(e,t,n,r){let i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);let a=new Set(i),o=e.docTermFieldHits.get(n);o||(o=new Map,e.docTermFieldHits.set(n,o));for(let t of a)o.set(t,(o.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function K(e,t,n,r){let{i,v:a,$:o}=t;if(a===void 0){if(o)for(let t=0;t<n;t++){let n=o[t];if(n)if(Array.isArray(n))for(let t of n)G(e,t.v,i,r);else G(e,n.v,i,r)}}else G(e,a,i,r)}function q(e,t){let n=e.docFieldCount.get(t);if(n===void 0)return;e.fieldCount-=n,e.docFieldCount.delete(t);let r=e.docTermFieldHits.get(t);if(r){for(let[t,n]of r){let r=(e.df.get(t)||0)-n;r<=0?e.df.delete(t):e.df.set(t,r)}e.docTermFieldHits.delete(t)}}function J(e,t){if(t.length===0)return;let n=Array.from(new Set(t)).sort((e,t)=>e-t);for(let t of n)q(e,t);let r=e=>{let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e?t=i+1:r=i}return e-t},i=n[0],a=new Map;for(let[t,n]of e.docFieldCount)a.set(t>i?r(t):t,n);e.docFieldCount=a;let o=new Map;for(let[t,n]of e.docTermFieldHits)o.set(t>i?r(t):t,n);e.docTermFieldHits=o}var Y=class{constructor(e,t,n){this.options={...h,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new d(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=N(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof _))throw Error(`Incorrect 'index' type`);if(this._myIndex=t||v(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=W({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=function(e,t,n){let r={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(let i of e)K(r,i,t,n);return r}(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!o(e))return;this._docs.push(e);let t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){let e=W({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});(function(e,t,n,r){K(e,t,n,r)})(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){this._invertedIndex&&J(this._invertedIndex,n);let e=new Set(n);this._docs=this._docs.filter((t,n)=>!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw Error(l);this._invertedIndex&&J(this._invertedIndex,[e]);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){let{limit:i=-1}=t||{},{includeMatches:a,includeScore:o,shouldSort:s,sortFn:c,ignoreFieldNorm:l}=this.options;if(n(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return r(i)&&i>-1&&(e=e.slice(0,i)),e}let u,d=s&&r(i)&&i>0&&n(e),f=c,p=(e,t)=>f(e,t)||e.idx-t.idx;if(d){let t=new B(i,p);n(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:l}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:l}),u=t.extractSorted()}else u=n(e)?n(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),function(e,{ignoreFieldNorm:t=h.ignoreFieldNorm}){e.forEach(e=>{e.score=z(e.matches,{ignoreFieldNorm:t})})}(u,{ignoreFieldNorm:l}),s&&u.sort(n(e)?p:f),r(i)&&i>-1&&(u=u.slice(0,i));return V(u,this._docs,{includeMatches:a,includeScore:o})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,s=t?null:[];return a.forEach(({v:e,i:a,n:c})=>{if(!o(e))return;let l=r.searchIn(e);if(l.isMatch){let r={score:l.score,value:e,norm:c,indices:l.indices};i&&(r.matchedMask=l.matchedMask,r.matchedTerms=l.matchedTerms,r.termCount=l.termCount);let o=[r];if(!i||this._coversAllTokens(o)){let r={item:e,idx:a,matches:o};t?(r.score=z(r.matches,{ignoreFieldNorm:n}),t.insert(r)):s.push(r)}}}),s}_searchLogical(e){let t=R(e,this.options),n=this._normalizedKeys(),r=(e,t,i)=>{if(!(`children`in e)){let r,{keyId:a,searcher:o}=e;return a===null?(r=[],n.forEach((e,n)=>{r.push(...this._findMatches({key:e,value:t[n],searcher:o}))})):r=this._findMatches({key:this._keyStore.get(a),value:this._myIndex.getValueForItemAtKeyId(t,a),searcher:o}),r&&r.length?[{idx:i,item:t,matches:r}]:[]}let{children:a,operator:o}=e,s=[];for(let e=0,n=a.length;e<n;e+=1){let n=a[e],c=r(n,t,i);if(c.length)s.push(...c);else if(o===P)return[]}return s},i=this._myIndex.records,a=new Map,s=[];return i.forEach(({$:e,i:n})=>{if(o(e)){let i=r(t,e,n);i.length&&(a.has(n)||(a.set(n,{idx:n,item:e,matches:[]}),s.push(a.get(n))),i.forEach(({matches:e})=>{a.get(n).matches.push(...e)}))}}),s}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,s=this._normalizedKeys(),c=t?null:[];return a.forEach(({$:e,i:a})=>{if(!o(e))return;let l=[],u=!1,d=!1;if(s.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(l.push(...i),i[0].hasInverse&&(d=!0)):u=!0}),(!d||!u)&&l.length&&(!i||this._coversAllTokens(l))){let r={idx:a,item:e,matches:l};t?(r.score=z(r.matches,{ignoreFieldNorm:n}),t.insert(r)):c.push(r)}}),c}_findMatches({key:t,value:n,searcher:r}){if(!o(n))return[];let i=[];if(e(n))n.forEach(({v:e,i:n,n:a})=>{if(!o(e))return;let s=r.searchIn(e);if(s.isMatch){let r={score:s.score,key:t,value:e,idx:n,norm:a,indices:s.indices,hasInverse:s.hasInverse};s.termCount!==void 0&&(r.matchedMask=s.matchedMask,r.matchedTerms=s.matchedTerms,r.termCount=s.termCount),i.push(r)}});else{let{v:e,n:a}=n,o=r.searchIn(e);if(o.isMatch){let n={score:o.score,key:t,value:e,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(n.matchedMask=o.matchedMask,n.matchedTerms=o.matchedTerms,n.termCount=o.termCount),i.push(n)}}return i}_coversAllTokens(e){let t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let n=0;for(let t=0;t<e.length;t++)n|=e[t].matchedMask||0;return n===2**t-1}let n=new Set;for(let t=0;t<e.length;t++){let r=e[t].matchedTerms;if(r)for(let e of r)n.add(e)}return n.size===t}};Y.version=`7.5.0`,Y.createIndex=v,Y.parseIndex=function(e,{getFn:t=h.getFn,fieldNormWeight:n=h.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new _({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a},Y.config=h,Y.match=function(e,t,n){if(n&&n.useTokenSearch)throw Error(`Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.`);return N(e,{...h,...n}).searchIn(t)},Y.parseQuery=R,M(class{constructor(e,{isCaseSensitive:t=h.isCaseSensitive,ignoreDiacritics:n=h.ignoreDiacritics,includeMatches:r=h.includeMatches,minMatchCharLength:i=h.minMatchCharLength,ignoreLocation:a=h.ignoreLocation,findAllMatches:o=h.findAllMatches,location:s=h.location,threshold:c=h.threshold,distance:l=h.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?w(e):e,this.pattern=e,this.query=function(e,t={}){return e.replace(/\\\|/g,`\0`).split(`|`).map(e=>{let n=function(e){let t=[],n=e.length,r=0;for(;r<n;){for(;r<n&&e[r]===` `;)r++;if(r>=n)break;let i=r;for(;i<n&&e[i]!==` `&&e[i]!==`"`;)i++;if(i<n&&e[i]===`"`){for(i++;i<n;){if(e[i]===`"`){let t=i+1;if(t>=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&e[i]!==` `;)i++;t.push(e.substring(r,i)),r=i}}return t}(e.replace(/\u0000/g,`|`).trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<k;){let e=O[o],n=A(i,e.multiRegex);n&&(r.push(e.create(n,t)),a=!0)}if(!a)for(o=-1;++o<k;){let e=O[o],n=A(i,e.singleRegex);if(n){r.push(e.create(n,t));break}}}return r})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?w(e):e;let a=0,o=[],s=0,c=!1;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0,c=!1;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:l,indices:u,score:d}=r.search(e);if(!l){s=0,a=0,o.length=0,c=!1;break}a+=1,s+=d,D(r.type)&&(c=!0),n&&(E.has(r.type)?o.push(...u):o.push(u))}if(a){let e={isMatch:!0,score:s/a};return c&&(e.hasInverse=!0),n&&(e.indices=x(o)),e}}return{isMatch:!1,score:1}}}),M(class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=W({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new T(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}this.combineAll=t.tokenMatch===`all`,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0,a=0,o=this.combineAll&&!this.useMask?new Set:null;for(let s=0;s<this.termSearchers.length;s++){let c=this.termSearchers[s].searchIn(e),l=this.idfWeights[s];r+=l,c.isMatch&&(i++,n+=l*(1-c.score),c.indices&&t.push(...c.indices),this.combineAll&&(this.useMask?a|=1<<s:o.add(s)))}if(i===0)return{isMatch:!1,score:1};let s=r>0?1-n/r:0,c={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(c.indices=x(t)),this.combineAll&&(this.useMask?c.matchedMask=a:c.matchedTerms=o,c.termCount=this.numTerms),c}}),Y.use=function(...e){e.forEach(e=>M(e))};var X=Y;exports.default=X;
@@ -1,2 +0,0 @@
1
- const e=require("./xQ6-wbTw5UzZUM1Y.cjs");var t,n;function r(e,t){if(t<0||t+1>=e.length)throw RangeError(`toUInt16LE: Offset ${t} is out of bounds for buffer length ${e.length}. Needed 2 bytes.`);return e[t]|e[t+1]<<8}function i(e){if(e<=0||e<=16)return 12;if(e<=32)return 11;if(e<=64)return 10;if(e<=128)return 9;if(e<=256)return 8;if(e<=512)return 7;if(e<=1024)return 6;if(e<=2048)return 5;if(e<=4096)return 4;let t=e-1>>4;return t<=0?12:Math.max(4,12-(Math.trunc(Math.log2(t))+1))}function a(e,t,n){let a=n,o=r(t,a);a+=2;let s=0,c=new Uint8Array(4198),l=1+(4095&o),u=a+l;if((32768&o)>>>15==1){for(;a<u&&a<t.length;){let n=t[a];a++;for(let l=0;l<8&&!(a>=u);l++)if(n&1<<l){if(a+1>=t.length)throw Error(`EOF reading copy token word.`);let n=r(t,a),l=i(s),u=65535>>>16-l,d=3+(n&u),f=(65535&n&~u)>>>l,p=f+1,m=s-p;if(m<0)throw Error(`Invalid CopyToken offset ${p} (history size ${s}, tokenOffsetField ${f}, raw token word 0x${n.toString(16)}, header 0x${o.toString(16)})`);if(s+d>=c.length){let e=new Uint8Array(c.length+4198);e.set(c.subarray(0,s)),c=e}for(let t=0;t<d;t++){if(m>=s)throw Error(`CopyToken source read OOB: source_idx=${m}, history_written=${s}`);let t=c[m];e.push(t),c[s]=t,s++,m++}a+=2}else{if(a>=t.length)throw Error(`EOF reading literal byte.`);let n=t[a];e.push(n),c[s]=n,s++,a++}}return{newPos:u}}if(a+l>t.length)throw Error(`Raw chunk data length (${l}) extends beyond input buffer (length ${t.length}, current pos ${a}).`);for(let n=0;n<l;n++)e.push(t[a+n]);return a+=l,{newPos:a}}(function(e){function t(e,t){let n=[],r=0;n.push(0);let a=1,o=t,s=Math.min(t+4096,e.length);for(;o<s;){let c=0,l=r;for(let r=0;r<8&&!(o>=s);r++){let l=-1,u=0,d=o-t;if(d>0){let n=(1<<i(d))-1;for(let r=o-1;r>=t;r--)if(e[r]===e[o]){let t=1;for(;o+t<s&&r+t<o&&e[r+t]===e[o+t]&&t<n+3;)t++;if(t>u&&(l=r,u=t,u>=n+3))break}}if(u>=3){c|=1<<r;let e=o-l-1<<i(d)|u-3;n[a++]=255&e,n[a++]=e>>8&255,o+=u}else n[a++]=e[o++]}n[l]=c,o<s&&(r=a,n.push(0),a++)}return a===1&&n[0]===0?{chunk:null,newAbsoluteStartPos:s}:{chunk:Uint8Array.from(n.slice(0,a)),newAbsoluteStartPos:s}}e.CompressPart=function(e){let n=[];n.push(1);let r=0;for(;r<e.length;){let i=t(e,r),a=i.chunk;if(a&&a.length>0){let e=a.length-1&4095;e|=45056,n.push(255&e),n.push(e>>8&255);for(let e=0;e<a.length;e++)n.push(a[e])}r=i.newAbsoluteStartPos}return Uint8Array.from(n)},e.DecompressPart=function(e,t=0){if(!e||e.length===0)return new Uint8Array;if(t>=e.length||e[t]!==1)return console.error(`DecompressPart failed: Invalid signature byte 0x${e[t]?.toString(16)} at pos ${t} or invalid startPos.`),null;let n=[],r=t+1;for(;r<e.length-1&&!(r+1>=e.length);)try{r=a(n,e,r).newPos}catch(e){return console.error(`Error during DecompressChunk at input offset ${r}:`,e.message),null}return Uint8Array.from(n)}})(t||={}),function(n){let r={1250:`windows-1250`,1251:`windows-1251`,1252:`windows-1252`,1253:`windows-1253`,1254:`windows-1254`,1255:`windows-1255`,1256:`windows-1256`,1257:`windows-1257`,1258:`windows-1258`,874:`windows-874`,932:`shift_jis`,936:`gbk`,949:`euc-kr`,950:`big5`,65001:`utf-8`},i=(e,t,n)=>{let r=``;for(let i=0;i<n;i++)r+=String.fromCharCode(e[t+i]);return r};n.extract=n=>{let a;try{a=e.t.read(n)}catch{return null}let o=a.readStream(`dir`);if(!o)return null;let s=t.DecompressPart(o);if(!s)return null;let c,l=new DataView(s.buffer,s.byteOffset,s.byteLength),u=1252,d=[],f=0;for(;f+6<=s.length;){let e=l.getUint16(f,!0),t=l.getUint32(f+2,!0),n=f+6;switch(e){case 3:u=l.getUint16(n,!0);break;case 25:c={name:i(s,n,t)},d.push(c);break;case 26:c&&(c.stream=i(s,n,t));break;case 49:c&&(c.offset=l.getUint32(n,!0))}if(e===16)break;f=n+(e===9?6:t)}let p=(e=>{let t=r[e]??`windows-1252`;try{return new TextDecoder(t)}catch{return new TextDecoder(`windows-1252`)}})(u),m=[];for(let e of d){let n=e.stream??e.name,r=a.readStream(n);if(!r||e.offset===void 0)continue;let i=t.DecompressPart(r,e.offset);i&&m.push({name:e.name,code:p.decode(i)})}return{codePage:u,modules:m}},n.stripAttributes=e=>{let t=e.split(/\r\n|\r|\n/),n=0;for(;n<t.length&&/^Attribute\s/.test(t[n]);)n++;return t.slice(n).join(`
2
- `)}}(n||={}),Object.defineProperty(exports,"VBAProject",{enumerable:!0,get:function(){return n}});
@@ -1 +0,0 @@
1
- exports.default={ASC:{s:`Converts a string to full-width characters to half-width. Uses the double-byte character set (DBCS).`,p:{text:{d:`is a text or a reference to a cell containing text.`}},h:`DBCS`},ARRAYTOTEXT:{s:`Returns a text representation of an array.`,p:{array:{d:`the array to represent as text.`},format:{d:`0 for relaxed format, 1 for strict format.`}}},CHAR:{s:`Returns the character specified by the code number from the character set for your computer.`,p:{number:{d:`is a number between 1 and 255 specifying which character you want.`}}},CLEAN:{s:`Removes all nonprintable characters from text.`,p:{text:{d:`is the text you want to clean.`}}},CODE:{s:`Returns the Unicode value of the first character in a text string.`,p:{text:{d:`is the text string whose Unicode value you want.`}}},CONCAT:{s:`Concatenates a list or range of text strings.`,p:{text:{d:`are 1 to 252 text strings or ranges to be joined.`}}},CONCATENATE:{s:`Joins several text strings into one text string.`,c:`Compatibility`,p:{text:{d:`is the first text string or range to be joined.`}}},DETECTLANGUAGE:{s:`Detects the language of a given text.`,p:{text:{d:`is the text to detect the language for.`}},h:`Unimplemented Connectivity`},DBCS:{s:`Changes half-width characters to full-width characters. Uses the double-byte character set (DBCS).`,p:{text:{d:`is a text or a reference to a cell containing text.`}},h:`DBCS`},DOLLAR:{s:`Converts a number to text in currency format.`,p:{number:{d:`is the number to convert.`},decimals:{d:`is the number of digits to the right of the decimal point.`}}},EXACT:{s:`Checks whether two text strings are exactly the same, and returns TRUE or FALSE. EXACT is case-sensitive.`,p:{text1:{d:`is the first text string.`},text2:{d:`is the second text string.`}}},FIND:{s:`Returns the starting position of one text string within another text string. FIND is case-sensitive.`,p:{findText:{d:`Returns the starting position of one text string within another text string. FIND is case-sensitive.`},withinText:{d:`is the text you want to search.`},startNum:{d:`specifies the character at which to start the search. The first character in withinText is character number 1.`}}},FINDB:{s:`Finds the starting position of one text string with another text string. FINDB is case-sensitive. Use with double-byte characters.`,p:{findText:{d:`is the text you want to find.`},withinText:{d:`is the text you want to search.`},startNum:{d:`is the position in withinText to start searching.`}},h:`DBCS`},FIXED:{s:`Rounds a number to the specified number of decimals and returns the result as text with or without commas`,p:{number:{d:`is the number you want to round and convert to text.`},decimals:{d:`is the number of digits to the right of the decimal point.`},noCommas:{d:`is a logical value: do not display commas in the returned text = TRUE; do display commas in the returned text = FALSE.`}}},JOIN:{s:`Concatenates elements of an array or range with a delimiter.`,c:`Sheets`,p:{delimiter:{d:`The delimiter to place between values.`},value:{d:`The array or range to join.`}}},LEFT:{s:`Returns the specified number of characters from the start of a text string.`,p:{text:{d:`is the text string from which you want to extract characters.`},numChars:{d:`specifies how many characters you want LEFT to extract.`}}},LEFTB:{s:`Returns the leftmost numBytes characters from text. Uses double-byte characters.`,p:{text:{d:`is the text string from which you want to extract characters.`},numBytes:{d:`is the number of bytes to extract.`}},h:`DBCS`},LEN:{s:`Returns the number of characters in a text string.`,p:{text:{d:`is the text whose length you want to find. Spaces count as characters.`}}},LENB:{s:`Returns the number of bytes in a text string. Uses double-byte characters.`,p:{text:{d:`is the text string from which you want to extract characters.`}}},LOWER:{s:`Converts all letters in a text string to lowercase.`,p:{text:{d:`is the text you want to convert to lowercase. Characters in Text that are not letters are not changed.`}}},MID:{s:`Returns the characters from the middle of a text string, given a starting position and length.`,p:{text:{d:`is the text string from which you want to extract characters.`},startNum:{d:`is the position of the first character you want to extract.`},numChars:{d:`specifies how many characters to return from Text.`}}},MIDB:{s:`Returns characters from the middle of a text string. Uses double-byte characters.`,p:{text:{d:`is the text string from which you want to extract characters.`},startNum:{d:`is the position of the first character you want to extract.`},numBytes:{d:`is the number of bytes to extract.`}},h:`DBCS`},NUMBERVALUE:{s:`Converts text to number in a locale-independent manner.`,p:{text:{d:`is the text string you want to convert.`},decimalSeparator:{d:`is the character that separates the integer part from the decimal part of the number.`},groupSeparator:{d:`is the character that separates groups of thousands.`}}},PROPER:{s:`Converts the first letter of each word in a text string to uppercase.`,p:{text:{d:`is the text string you want to convert.`}}},REPLACE:{s:`Replaces part of a text string with a different text string.`,p:{oldText:{d:`is the text string to be changed.`},startNum:{d:`is the position of the first character you want to replace.`},numChars:{d:`is the number of characters to replace.`},newText:{d:`is the text string that will replace oldText.`}}},REPLACEB:{s:`Replaces part of a text string with a different text string using the number of bytes. Uses the double-byte character set (DBCS).`,p:{oldText:{d:`is the text string to be changed.`},startNum:{d:`is the position of the first character you want to replace.`},numBytes:{d:`is the number of bytes to replace.`},newText:{d:`is the text string that will replace oldText.`}},h:`DBCS`},REPT:{s:`Repeats text a given number of times.`,p:{text:{d:`is the text you want to repeat.`},numberTimes:{d:`is the number of times you want to repeat text.`}}},RIGHT:{s:`Returns the specified number of characters from the end of a text string.`,p:{text:{d:`is the text string that contains the characters you want to extract.`},numChars:{d:`specifies how many characters you want to extract.`}}},RIGHTB:{s:`Returns the rightmost numBytes characters from text. Uses double-byte characters.`,p:{text:{d:`is the text string from which you want to extract characters.`},numBytes:{d:`is the number of bytes to extract.`}}},SEARCH:{s:`Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive).`,p:{findText:{d:`is the text you want to find.`},withinText:{d:`is the text in which you want to search for findText.`},startNum:{d:`is the character number in withinText, counting from the left, at which you want to start searching.`}}},SEARCHB:{s:`Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive). Uses the double-byte character set (DBCS).`,p:{findText:{d:`is the text you want to find.`},withinText:{d:`is the text in which you want to search for findText.`},startBytes:{d:`is the character number in withinText, counting from the left, at which you want to start searching.`}},h:`DBCS`},SPLIT:{s:`Splits text around a specified delimiter.`,c:`Sheets`,p:{text:{d:`The text to split.`},delimiter:{d:`The character or string to split around.`},splitByEach:{d:`Whether to split around each character in delimiter individually. Default TRUE.`},removeEmptyText:{d:`Whether to remove empty strings from results. Default TRUE.`}}},SUBSTITUTE:{s:`Replaces existing text with new text in a text string.`,p:{text:{d:`is the text or the reference to a cell containing text in which you want to substitute characters.`},oldText:{d:`is the existing text you want to replace. If the case of oldText does not match the case of text, SUBSTITUTE will not replace the text.`},newText:{d:`is the text you want to replace oldText with.`},instanceNum:{d:`specifies which occurrence of oldText you want to replace. If omitted, every instance of oldText is replaced.`}}},T:{s:`Checks whether a value is text, and returns the text if it is, or returns double quotes (empty text) if it is not.`,p:{value:{d:`is the value to test.`}}},TEXT:{s:`Converts a value to text in a specific number format.`,p:{value:{d:`is a number, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value.`},formatText:{d:`is a text string that defines the number format to use.`}}},TEXTAFTER:{s:`Returns text that's after delimiting characters.`,p:{text:{d:`The text you want to search for the delimiter.`},delimiter:{d:`The character or string to use as a delimiter.`},instanceNum:{d:`The desired occurrence of delimiter. The default is 1. A negative number searches from the end.`},matchMode:{d:`Searches the text for a delimiter match. By default, a case-sensitive match is done.`},matchEnd:{d:`Whether to match the delimiter against the end of text. By default, they're not matched.`},ifNotFound:{d:`Returned if no match is found. By default, #N/A is returned.`}}},TEXTBEFORE:{s:`Returns text that's before delimiting characters.`,p:{text:{d:`The text you want to search for the delimiter.`},delimiter:{d:`The character or string to use as a delimiter.`},instanceNum:{d:`The desired occurrence of delimiter. The default is 1. A negative number searches from the end.`},matchMode:{d:"Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)."},matchEnd:{d:`Whether to match the delimiter against the end of text. By default, they're not matched.`},ifNotFound:{d:`Returned if no match is found. By default, #N/A is returned.`}}},TEXTJOIN:{s:`Concatenates a list or range of text strings using a delimiter.`,p:{delimiter:{d:`Character or string to insert between each text item.`},ignoreEmpty:{d:`if TRUE(default), ignores empty cells.`},text:{d:`are 1 to 252 text strings or ranges to be joined.`}}},TEXTSPLIT:{s:`Splits text into rows or columns using delimiters.`,p:{text:{d:`The text to split.`},colDelimiter:{d:`The column delimiter(s) - can be string or array of strings.`},rowDelimiter:{d:`The row delimiter(s), null/undefined means no row splitting.`},ignoreEmpty:{d:"Whether to ignore empty values (defaults to `false`)."},matchMode:{d:"Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)."},padWith:{d:"Value to use for padding if matrix is uneven (defaults to `#N/A`)."}}},TRANSLATE:{s:`Translate a text string from one language to another using the Microsoft Translator service.`,p:{text:{d:`The text to translate.`},sourceLanguage:{d:`Specifiy the source language your text is currently in. Expressed as a two-letter language code.`},targetLanguage:{d:`Specifiy the source language you want your text to be translated to. Expressed as a two-letter language code.`}},h:`Unsupported Connectivity`},TRIM:{s:`Removes all spaces from text except for single spaces between words.`,p:{text:{d:`The text from which you want to remove extra spaces.`}}},UNICHAR:{s:`Returns the Unicode character referenced by the given numeric value.`,p:{number:{d:`is the Unicode number representing a character.`}}},UNICODE:{s:`Returns the number (code point) corresponding to the first character of the text.`,p:{text:{d:`is the character that you want the Unicode value of.`}}},UPPER:{s:`Converts a text string to all uppercase letters.`,p:{text:{d:`is the text you want converted to uppercase, a reference or a text string.`}}},VALUE:{s:`Converts a text string that represents a number to a number.`,p:{text:{d:`is the text enclosed in quotation marks or a reference to a cell containing the text you want to convert.`}}},VALUETOTEXT:{s:`Returns a text representation of a value.`,p:{value:{d:`the value to represent as text.`},format:{d:`the format of the text.`}}}};
@@ -1 +0,0 @@
1
- const e=require("./BnccBYHCCq9TGFx4.cjs"),t=require("./xQ6-wbTw5UzZUM1Y.cjs");var n,r,i=class e{static{this.SIGNATURE=[208,207,17,224,161,177,26,225]}static{this.FATSECT=4294967293}static{this.DIFSECT=4294967292}static{this.ENDOFCHAIN=4294967294}static{this.FREESECT=4294967295}static{this.NOSTREAM=4294967295}static{this.SECTOR_SIZE=512}static{this.MINI_SECTOR_SIZE=64}static{this.MINI_CUTOFF=4096}static{this.DIR_ENTRY_SIZE=128}static{this.DIFAT_HEADER_COUNT=109}constructor(){this.sectors=[],this.fat=[]}static write(t){return new e()._build(t)}allocate(t){let n=e.SECTOR_SIZE,r=Math.max(1,Math.ceil(t.byteLength/n)),i=this.sectors.length;for(let a=0;a<r;a++){let o=new Uint8Array(n);o.set(t.subarray(a*n,Math.min((a+1)*n,t.byteLength))),this.sectors.push(o),this.fat.push(a===r-1?e.ENDOFCHAIN:i+a+1)}return i}_build(t){let{SECTOR_SIZE:n,MINI_SECTOR_SIZE:r,MINI_CUTOFF:i,ENDOFCHAIN:a,FREESECT:o,FATSECT:s,DIFSECT:c,NOSTREAM:l,DIR_ENTRY_SIZE:u,DIFAT_HEADER_COUNT:d}=e,f=[],p=0,m=t.map(e=>{if(e.data.byteLength>=i)return{entry:e,mini:!1,start:-1};let t=p,n=Math.max(1,Math.ceil(e.data.byteLength/r)),a=new Uint8Array(n*r);return a.set(e.data),f.push(a),p+=n,{entry:e,mini:!0,start:t}});for(let e of m)e.mini||(e.start=e.entry.data.byteLength===0?a:this.allocate(e.entry.data));let h=a,g=p*r;if(p>0){let e=new Uint8Array(g),t=0;for(let n of f)e.set(n,t),t+=n.byteLength;h=this.allocate(e)}let _=a,v=0;if(p>0){let e=n/4;v=Math.ceil(p/e);let t=new Uint8Array(v*n),i=new DataView(t.buffer);t.fill(255);let o=0;for(let e of m){if(!e.mini)continue;let t=Math.max(1,Math.ceil(e.entry.data.byteLength/r));for(let e=0;e<t;e++,o++)i.setUint32(4*o,e===t-1?a:o+1,!0)}_=this.allocate(t),v=Math.ceil(t.byteLength/n)}let y=[];y.push(this._directoryEntry({name:`Root Entry`,type:5,child:t.length>0?1:l,start:h===a?0:h,size:g}));let b=m.map((e,t)=>({place:e,index:t})).sort((e,t)=>{let n=e.place.entry.name,r=t.place.entry.name;return n.length===r.length?n.toUpperCase()<r.toUpperCase()?-1:+(n.toUpperCase()>r.toUpperCase()):n.length-r.length}),x=new Map;b.forEach((e,t)=>x.set(e.index,t+1)),m.forEach((e,t)=>{let n=x.get(t)-1,r=b[n+1];y.push(this._directoryEntry({name:e.entry.name,type:2,right:r?x.get(r.index):l,start:e.mini?e.start:e.start===a?0:e.start,size:e.entry.data.byteLength}))});let S=[y[0]];b.forEach(e=>S.push(y[e.index+1]));let C=n/u,w=Math.ceil(S.length/C),T=new Uint8Array(w*n);for(let e=0;e<w*C;e++){let t=S[e]??this._directoryEntry({name:``,type:0});T.set(t,e*u)}let E=this.allocate(T),D=n/4,O=D-1,k=this.sectors.length,A=1,j=0;for(let e=0;e<16;e++){let e=k+A+j,t=Math.max(1,Math.ceil(e/D)),n=t<=d?0:Math.ceil((t-d)/O);if(t===A&&n===j)break;A=t,j=n}let M=[],N=[];for(let e=0;e<A;e++)M.push(k+e);for(let e=0;e<j;e++)N.push(k+A+e);for(let e of M)this.fat[e]=s;for(let e of N)this.fat[e]=c;let P=new Uint8Array(A*n);P.fill(255);let F=new DataView(P.buffer);for(let e=0;e<this.fat.length;e++)F.setUint32(4*e,this.fat[e],!0);let I=new Uint8Array(n+(k+A+j)*n),L=new DataView(I.buffer);I.set(e.SIGNATURE,0),L.setUint16(24,62,!0),L.setUint16(26,3,!0),L.setUint16(28,65534,!0),L.setUint16(30,9,!0),L.setUint16(32,6,!0),L.setUint32(44,A,!0),L.setUint32(48,E,!0),L.setUint32(56,i,!0),L.setUint32(60,_,!0),L.setUint32(64,v,!0),L.setUint32(68,j>0?N[0]:a,!0),L.setUint32(72,j,!0);for(let e=0;e<d;e++)L.setUint32(76+4*e,e<A?M[e]:o,!0);for(let e=0;e<k;e++)I.set(this.sectors[e],n+e*n);I.set(P,n+M[0]*n);for(let e=0;e<j;e++){let t=n+N[e]*n;for(let n=0;n<O;n++){let r=d+e*O+n;L.setUint32(t+4*n,r<A?M[r]:o,!0)}L.setUint32(t+4*O,e===j-1?a:N[e+1],!0)}return I}_directoryEntry(t){let{NOSTREAM:n}=e,r=new Uint8Array(e.DIR_ENTRY_SIZE),i=new DataView(r.buffer),a=t.name;for(let e=0;e<a.length&&e<31;e++)i.setUint16(2*e,a.charCodeAt(e),!0);return i.setUint16(64,a.length>0?2*(Math.min(a.length,31)+1):0,!0),r[66]=t.type,r[67]=1,i.setUint32(68,t.left??n,!0),i.setUint32(72,t.right??n,!0),i.setUint32(76,t.child??n,!0),i.setUint32(116,t.start??0,!0),i.setUint32(120,t.size??0,!0),i.setUint32(124,0,!0),r}};(function(e){let t=e=>{let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n},n=(e,t,n)=>{let r=((e,t)=>{let n=RegExp(`\\b${t}\\s*=\\s*"([^"]*)"`).exec(e);return n?n[1]:null})(e,t);if(r===null)throw Error(`Malformed encryption descriptor: <${n}> is missing '${t}'.`);return r},r=(e,r)=>({saltValue:t(n(e,`saltValue`,r)),blockSize:parseInt(n(e,`blockSize`,r),10),keyBits:parseInt(n(e,`keyBits`,r),10),hashSize:parseInt(n(e,`hashSize`,r),10),cipherAlgorithm:n(e,`cipherAlgorithm`,r),cipherChaining:n(e,`cipherChaining`,r),hashAlgorithm:n(e,`hashAlgorithm`,r)}),i=(e,t)=>{let n=RegExp(`<(?:\\w+:)?${t}\\b[^>]*>`).exec(e);return n?n[0]:null},a=e=>{let t=``;for(let n=0;n<e.byteLength;n++)t+=String.fromCharCode(e[n]);return btoa(t)};e.build=e=>{let t=`saltSize="${e.saltSize}" blockSize="${e.blockSize}" keyBits="${e.keyBits}" hashSize="${e.hashSize}" cipherAlgorithm="${e.cipherAlgorithm}" cipherChaining="${e.cipherChaining}" hashAlgorithm="${e.hashAlgorithm}"`,n=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n<encryption xmlns="http://schemas.microsoft.com/office/2006/encryption" xmlns:p="http://schemas.microsoft.com/office/2006/keyEncryptor/password" xmlns:c="http://schemas.microsoft.com/office/2006/keyEncryptor/certificate"><keyData ${t} saltValue="${a(e.keyDataSalt)}"/><dataIntegrity encryptedHmacKey="${a(e.encryptedHmacKey)}" encryptedHmacValue="${a(e.encryptedHmacValue)}"/><keyEncryptors><keyEncryptor uri="http://schemas.microsoft.com/office/2006/keyEncryptor/password"><p:encryptedKey spinCount="${e.spinCount}" ${t} saltValue="${a(e.encryptorSalt)}" encryptedVerifierHashInput="${a(e.encryptedVerifierHashInput)}" encryptedVerifierHashValue="${a(e.encryptedVerifierHashValue)}" encryptedKeyValue="${a(e.encryptedKeyValue)}"/></keyEncryptor></keyEncryptors></encryption>`,r=new TextEncoder().encode(n),i=new Uint8Array(8+r.byteLength),o=new DataView(i.buffer);return o.setUint16(0,4,!0),o.setUint16(2,4,!0),o.setUint32(4,64,!0),i.set(r,8),i},e.parse=e=>{if(e.byteLength<8)throw Error(`Malformed EncryptionInfo stream (too short).`);let a=new DataView(e.buffer,e.byteOffset,e.byteLength),o=a.getUint16(0,!0),s=a.getUint16(2,!0);if(o===4&&s===4){let a=new TextDecoder().decode(e.subarray(8)),o=i(a,`keyData`);if(!o)throw Error(`Malformed encryption descriptor: no <keyData>.`);let s=i(a,`encryptedKey`);if(!s)throw Error(`This file is encrypted with a scheme SheetXL cannot open (no password key encryptor).`);let c=i(a,`dataIntegrity`);return{scheme:`agile`,keyData:r(o,`keyData`),passwordKeyEncryptor:{...r(s,`encryptedKey`),spinCount:parseInt(n(s,`spinCount`,`encryptedKey`),10),encryptedVerifierHashInput:t(n(s,`encryptedVerifierHashInput`,`encryptedKey`)),encryptedVerifierHashValue:t(n(s,`encryptedVerifierHashValue`,`encryptedKey`)),encryptedKeyValue:t(n(s,`encryptedKeyValue`,`encryptedKey`))},dataIntegrity:c?{encryptedHmacKey:t(n(c,`encryptedHmacKey`,`dataIntegrity`)),encryptedHmacValue:t(n(c,`encryptedHmacValue`,`dataIntegrity`))}:null}}return{scheme:o===2?`rc4-cryptoapi`:s===2?`standard`:`rc4`,versionMajor:o,versionMinor:s}}})(n||={}),function(e){let t={verifierHashInput:new Uint8Array([254,167,210,118,59,75,158,121]),verifierHashValue:new Uint8Array([215,170,15,109,48,97,52,78]),keyValue:new Uint8Array([20,110,11,231,171,172,208,214]),hmacKey:new Uint8Array([95,178,173,1,12,185,225,246]),hmacValue:new Uint8Array([160,103,127,2,178,44,132,51])},n=async()=>globalThis.crypto,r=e=>{switch(e.toUpperCase().replace(/[^A-Z0-9]/g,``)){case`SHA1`:return`SHA-1`;case`SHA256`:return`SHA-256`;case`SHA384`:return`SHA-384`;case`SHA512`:return`SHA-512`;default:throw Error(`Unsupported encryption hash algorithm '${e}'.`)}},i=e=>{let t=new Uint8Array(e.byteLength);return t.set(e),t},a=(...e)=>{let t=0;for(let n of e)t+=n.byteLength;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.byteLength;return n},o=(e,t)=>{if(e.byteLength>=t)return i(e.subarray(0,t));let n=new Uint8Array(t).fill(54);return n.set(e),n},s=e=>{let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),t},c=async(e,t,...n)=>new Uint8Array(await e.subtle.digest(t,a(...n))),l=()=>typeof MessageChannel==`function`?new Promise(e=>{let t=new MessageChannel;t.port1.onmessage=()=>{t.port1.close(),t.port2.close(),e()},t.port2.postMessage(null)}):new Promise(e=>{setTimeout(e,0)}),u=async(e,t,n,r,i)=>{let a=new Uint8Array(2*t.length),o=new DataView(a.buffer);for(let e=0;e<t.length;e++)o.setUint16(2*e,t.charCodeAt(e),!0);let u=await c(e,r,n,a);for(let t=0;t<i;t++)u=await c(e,r,s(t),u),t%2048==0&&await l();return u},d=async(e,t,n,r,i)=>o(await c(e,r,t,n),i),f=async(e,t,n,r,i)=>o(await c(e,r,t,s(n)),i),p=async(e,t,n,r,i)=>o(await c(e,r,t,n),i),m=async(e,t,n,r)=>{let a=await e.subtle.importKey(`raw`,i(n),{name:`HMAC`,hash:{name:t}},!1,[`sign`]);return new Uint8Array(await e.subtle.sign(`HMAC`,a,i(r)))},h=async(e,t,n,r)=>{let o=i(r);if(o.byteLength===0)return o;if(o.byteLength%16!=0)throw Error(`Malformed encrypted payload (not block aligned).`);let s=await e.subtle.importKey(`raw`,t,{name:`AES-CBC`},!1,[`encrypt`,`decrypt`]),c=i(o.subarray(o.byteLength-16)),l=new Uint8Array(16).fill(16),u=new Uint8Array(await e.subtle.encrypt({name:`AES-CBC`,iv:c},s,l)).subarray(0,16),d=await e.subtle.decrypt({name:`AES-CBC`,iv:n},s,a(o,u));return new Uint8Array(d)};e.resolveSecretKey=async(e,a)=>{let s=e.passwordKeyEncryptor;if(!/^AES$/i.test(s.cipherAlgorithm)||!/CBC$/i.test(s.cipherChaining))throw Error(`Unsupported encryption cipher '${s.cipherAlgorithm}/${s.cipherChaining}'.`);let l=await n(),f=r(s.hashAlgorithm),p=s.keyBits/8,m=await u(l,a,s.saltValue,f,s.spinCount),g=o(s.saltValue,s.blockSize),_=await d(l,m,t.verifierHashInput,f,p),v=await h(l,_,g,s.encryptedVerifierHashInput),y=await d(l,m,t.verifierHashValue,f,p),b=await h(l,y,g,s.encryptedVerifierHashValue),x=await c(l,f,v),S=+(x.byteLength>b.byteLength);for(let e=0;e<b.byteLength;e++)S|=(e<x.byteLength?x[e]:0)^b[e];if(S!==0)return null;let C=await d(l,m,t.keyValue,f,p),w=await h(l,C,g,s.encryptedKeyValue);return i(w.subarray(0,e.keyData.keyBits/8))};let g=async(e,t,n,r)=>{let a=i(r);if(a.byteLength===0)return a;if(a.byteLength%16!=0)throw Error(`Malformed plaintext (not block aligned).`);let o=await e.subtle.importKey(`raw`,t,{name:`AES-CBC`},!1,[`encrypt`]),s=new Uint8Array(await e.subtle.encrypt({name:`AES-CBC`,iv:n},o,a));return i(s.subarray(0,a.byteLength))},_=(e,t)=>e%t===0?e:e+(t-e%t),v=4096;e.decryptPackage=async(e,t,i)=>{if(i.byteLength<8)throw Error(`Malformed EncryptedPackage stream (too short).`);let a=await n(),{keyData:o}=e,s=r(o.hashAlgorithm),c=new DataView(i.buffer,i.byteOffset,i.byteLength),l=c.getUint32(0,!0)+4294967296*c.getUint32(4,!0),u=i.subarray(8),d=new Uint8Array(Math.min(l,u.byteLength)),p=0;for(let e=0;e*v<u.byteLength;e++){let n=e*v,r=u.subarray(n,Math.min(n+v,u.byteLength)),i=r.byteLength%o.blockSize;if(i){let e=new Uint8Array(r.byteLength+o.blockSize-i);e.set(r),r=e}let c=await f(a,o.saltValue,e,s,o.blockSize),l=await h(a,t,c,r),m=Math.min(l.byteLength,d.byteLength-p);if(m<=0)break;d.set(l.subarray(0,m),p),p+=m}return d.subarray(0,p)},e.verifyIntegrity=async(e,i,a)=>{let o=e.dataIntegrity;if(!o)return!0;let s=await n(),{keyData:c}=e,l=r(c.hashAlgorithm),u=(await h(s,i,await p(s,c.saltValue,t.hmacKey,l,c.blockSize),o.encryptedHmacKey)).subarray(0,c.hashSize),d=(await h(s,i,await p(s,c.saltValue,t.hmacValue,l,c.blockSize),o.encryptedHmacValue)).subarray(0,c.hashSize),f=await m(s,l,u,a);if(f.byteLength<c.hashSize)return!1;let g=0;for(let e=0;e<c.hashSize;e++)g|=d[e]^f[e];return g===0};let y=e.DEFAULTS={hashAlgorithm:`SHA512`,cipherAlgorithm:`AES`,cipherChaining:`ChainingModeCBC`,saltSize:16,blockSize:16,keyBits:256,hashSize:64,spinCount:1e5};e.encrypt=async(e,i)=>{let a=await n(),s=r(y.hashAlgorithm),l=y.keyBits/8,h=e=>{let t=new Uint8Array(e);return a.getRandomValues(t),t},b=h(l),x=h(y.saltSize),S=h(y.saltSize),C=h(y.saltSize),w=await u(a,i,S,s,y.spinCount),T=o(S,y.blockSize),E=await d(a,w,t.verifierHashInput,s,l),D=await g(a,E,T,C),O=await c(a,s,C),k=await d(a,w,t.verifierHashValue,s,l),A=new Uint8Array(_(O.byteLength,y.blockSize));A.set(O);let j=await g(a,k,T,A),M=await d(a,w,t.keyValue,s,l),N=await g(a,M,T,b),P=e.byteLength,F=Math.max(1,Math.ceil(P/v)),I=new Uint8Array(_(P,y.blockSize)||y.blockSize);for(let t=0;t<F;t++){let n=t*v,r=e.subarray(n,Math.min(n+v,P)),i=new Uint8Array(_(r.byteLength,y.blockSize));i.set(r);let o=await f(a,x,t,s,y.blockSize);I.set(await g(a,b,o,i),n)}let L=new Uint8Array(8+I.byteLength),R=new DataView(L.buffer);R.setUint32(0,P>>>0,!0),R.setUint32(4,Math.floor(P/4294967296),!0),L.set(I,8);let z=h(y.hashSize),B=new Uint8Array(_(z.byteLength,y.blockSize));B.set(z);let V=await g(a,b,await p(a,x,t.hmacKey,s,y.blockSize),B),H=await m(a,s,z,L),U=new Uint8Array(_(H.byteLength,y.blockSize));return U.set(H),{keyDataSalt:x,encryptorSalt:S,encryptedVerifierHashInput:D,encryptedVerifierHashValue:j,encryptedKeyValue:N,encryptedHmacKey:V,encryptedHmacValue:await g(a,b,await p(a,x,t.hmacValue,s,y.blockSize),U),encryptedPackage:L}}}(r||={});var a=[208,207,17,224,161,177,26,225],o=`EncryptionInfo`,s=`EncryptedPackage`,c=e=>{if(!(e=>{if(e.byteLength<a.length)return!1;let t=new Uint8Array(e,0,a.length);for(let e=0;e<a.length;e++)if(t[e]!==a[e])return!1;return!0})(e))return null;let n;try{n=t.t.read(new Uint8Array(e))}catch{return null}let r=n.readStream(o),i=n.readStream(s);return r&&i?{info:r,encryptedPackage:i}:null},l={key:`offcrypto`,description:`Office Document Encryption`,detect:e=>c(e)!==null,async decode(t,i){let a=c(t);if(!a)throw Error(`Not an encrypted Office container.`);let o=n.parse(a.info);if(o.scheme!==`agile`)throw Error(`This file uses ${(e=>{switch(e){case`standard`:return`Standard ECMA-376 encryption (Office 2007)`;case`rc4-cryptoapi`:return`RC4 CryptoAPI encryption (Office 2002-2003)`;case`rc4`:return`RC4/XOR obfuscation (Office 97-2000)`;default:return e}})(o.scheme)}, which SheetXL cannot open yet. Re-save it from Excel to upgrade it to the current encryption.`);let s=await r.resolveSecretKey(o,i);if(!s)throw new e.P;if(o.dataIntegrity&&!await r.verifyIntegrity(o,s,a.encryptedPackage))throw Error(`This file failed its integrity check — it has been altered or is damaged since it was encrypted.`);let l=await r.decryptPackage(o,s,a.encryptedPackage);return l.buffer.slice(l.byteOffset,l.byteOffset+l.byteLength)},async encode(e,t){if(!t)throw Error(`A password is required to encrypt.`);let a=await r.encrypt(new Uint8Array(e),t),c=n.build({...r.DEFAULTS,keyDataSalt:a.keyDataSalt,encryptorSalt:a.encryptorSalt,encryptedVerifierHashInput:a.encryptedVerifierHashInput,encryptedVerifierHashValue:a.encryptedVerifierHashValue,encryptedKeyValue:a.encryptedKeyValue,encryptedHmacKey:a.encryptedHmacKey,encryptedHmacValue:a.encryptedHmacValue}),l=i.write([{name:o,data:c},{name:s,data:a.encryptedPackage}]);return l.buffer.slice(l.byteOffset,l.byteOffset+l.byteLength)}};exports.OffCryptoEncryption=l;