@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,3651 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.28-beta.4
3
- *
4
- * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- import { A as e, F as t, l as n } from "./BetL7yI63lEdQ0gM2.js";
8
- import { a as r, n as i } from "./C7xBBqvPqat9oEft2.js";
9
- import { E as a, Ht as o, Mt as s, Rt as c, Ut as l, at as u, dn as d, dt as f, j as p, q as m, st as h } from "./NZO3-fDBtqhmCsbB2.js";
10
- import { i as g, o as _ } from "./B6Y_HasaiihQLVYz2.js";
11
- import { C as v, D as y, E as b, F as x, G as S, I as ee, M as C, N as te, O as ne, P as w, T, U as E, W as re, _ as D, b as O, c as k, f as ie, h as A, l as j, n as M, q as ae, s as N, t as oe, v as P, z as se } from "./B4492m5zRjz4JWIo2.js";
12
- var F = class {
13
- constructor(e) {
14
- this._kind = e.kind, this._contentType = e.contentType, this._relTypeUri = e.relTypeUri, this._path = e.path;
15
- }
16
- get kind() {
17
- return this._kind;
18
- }
19
- get contentType() {
20
- return this._contentType;
21
- }
22
- get relTypeUri() {
23
- return this._relTypeUri;
24
- }
25
- getPath(e) {
26
- return typeof this._path == "function" ? this._path(e) : this._path;
27
- }
28
- }, ce = class e {
29
- constructor(e, t, n) {
30
- this.zipWriter = e, this.outputKind = t, this.outWritable = n;
31
- }
32
- static createUint8Array(t) {
33
- let n = new M(new O(), t);
34
- return new e(n, "uint8array");
35
- }
36
- static createBlob(t) {
37
- let n = new M(new P("application/zip"), t);
38
- return new e(n, "blob");
39
- }
40
- static createWritableStream(t, n) {
41
- let r = new M(t, n);
42
- return new e(r, "writable", t);
43
- }
44
- async add(e, t, n) {
45
- let r = function(e) {
46
- let t = e.replace(/\\/g, "/").trim();
47
- for (; t.startsWith("/");) t = t.slice(1);
48
- return t;
49
- }(e), i = {
50
- level: n?.level,
51
- password: n?.password,
52
- encryptionStrength: n?.encryptionStrength,
53
- zipCrypto: n?.zipCrypto,
54
- lastModDate: n?.lastModDate,
55
- keepOrder: n?.keepOrder,
56
- uncompressedSize: n?.uncompressedSize,
57
- dataDescriptor: n?.dataDescriptor,
58
- passThrough: n?.passThrough,
59
- compressionMethod: n?.compressionMethod,
60
- signature: n?.signature
61
- };
62
- if (typeof t == "string") return void await this.zipWriter.add(r, new x(t), i);
63
- if (t instanceof Uint8Array || ArrayBuffer.isView(t) || t && typeof t.byteLength == "number" && typeof t.byteOffset == "number") {
64
- try {
65
- await this.zipWriter.add(r, new E(t), i);
66
- } catch (e) {
67
- throw console.log("Error adding Uint8Array source to zip:", r, i), e;
68
- }
69
- return;
70
- }
71
- let a = (o = t) && typeof o.getReader == "function" ? t : function(e) {
72
- let t = e[Symbol.asyncIterator]();
73
- return new ReadableStream({
74
- async pull(e) {
75
- let { value: n, done: r } = await t.next();
76
- r ? e.close() : e.enqueue(n);
77
- },
78
- async cancel(e) {
79
- if (typeof t.return == "function") try {
80
- await t.return(e);
81
- } catch {}
82
- }
83
- });
84
- }(t);
85
- var o;
86
- await this.zipWriter.add(r, a, i);
87
- }
88
- async close(e) {
89
- let t = e?.comment, n = await this.zipWriter.close(t, {});
90
- return this.outputKind === "writable" ? this.outWritable ?? n : n;
91
- }
92
- };
93
- function I(e) {
94
- let t = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), n = (e) => t(e).replace(/"/g, "&quot;"), r = (e) => {
95
- if (!e) return "";
96
- let t = "";
97
- for (let [r, i] of Object.entries(e)) i !== void 0 && !1 !== i && (t += !0 === i ? ` ${r}="1"` : ` ${r}="${n(String(i))}"`);
98
- return t;
99
- }, i = new TextEncoder(), a = "", o = () => {
100
- a &&= (e.write(i.encode(a)), "");
101
- }, s = (e) => {
102
- a += e, a.length > 65536 && o();
103
- }, c = [], l = null, u = [], d = !0;
104
- return {
105
- decl() {
106
- s("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>");
107
- },
108
- pushDefaultNamespace(e) {
109
- c.push(e), l = e;
110
- },
111
- getDefaultNamespace: () => c.length > 0 ? c[c.length - 1] : null,
112
- popDefaultNamespace() {
113
- c.length > 0 && (c.pop(), l = c.length > 0 ? c[c.length - 1] : null);
114
- },
115
- start(e, t) {
116
- d && u.push({
117
- tag: e,
118
- attrs: t,
119
- bufferPos: a.length
120
- });
121
- let n = e;
122
- l && e.indexOf(":") === -1 && (n = `${l}:${e}`), s(`<${n}${r(t)}>`);
123
- },
124
- empty(e, t) {
125
- let n = e;
126
- l && e.indexOf(":") === -1 && (n = `${l}:${e}`), s(`<${n}${r(t)}/>`);
127
- },
128
- text(e) {
129
- s(t(String(e)));
130
- },
131
- raw(e) {
132
- s(e);
133
- },
134
- end(e) {
135
- let t;
136
- if (d) {
137
- if (u.length === 0) throw Error(`XML Writer: Unexpected end tag </${e}> - no matching start tag`);
138
- if (t = u[u.length - 1], t.tag !== e) throw Error(`XML Writer: End tag </${e}> does not match start tag <${t.tag}>`);
139
- }
140
- let n = e;
141
- if (l && e.indexOf(":") === -1 && (n = `${l}:${e}`), d) {
142
- let e = a.length, i = `<${n}${r(t.attrs)}>`.length;
143
- e === t.bufferPos + i ? (a = a.slice(0, t.bufferPos), s(`<${n}${r(t.attrs)}/>`)) : s(`</${n}>`), u.pop();
144
- } else s(`</${n}>`);
145
- },
146
- close() {
147
- o();
148
- },
149
- setValidationDisabled(e) {
150
- d = !e;
151
- }
152
- };
153
- }
154
- function le(e) {
155
- switch (e.kind) {
156
- case "bytes": return e.bytes;
157
- case "text": return e.text;
158
- case "stream": return e.stream;
159
- case "xmlStream": {
160
- let t = [], n = I({ write: (e) => t.push(e) });
161
- return e.writeXml(n), n.close(), function(e) {
162
- let t = 0;
163
- for (let n of e) t += n.byteLength;
164
- let n = new Uint8Array(t), r = 0;
165
- for (let t of e) n.set(t, r), r += t.byteLength;
166
- return n;
167
- }(t);
168
- }
169
- case "xmlStreamed": return e.write();
170
- }
171
- }
172
- function L(e) {
173
- let t = R(e);
174
- if (!t) return "_rels/.rels";
175
- let n = t.lastIndexOf("/"), r = n >= 0 ? t.slice(0, n) : "";
176
- return `${r ? `${r}/_rels` : "_rels"}/${n >= 0 ? t.slice(n + 1) : t}.rels`;
177
- }
178
- function R(e) {
179
- let t = (e ?? "").replace(/\\/g, "/").trim();
180
- for (; t.startsWith("/");) t = t.slice(1);
181
- return t;
182
- }
183
- function z(e) {
184
- let t = /^rId(\d+)$/.exec(e);
185
- return t ? parseInt(t[1], 10) : 2 ** 53 - 1;
186
- }
187
- function B(e) {
188
- return String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;").replace(/>/g, "&gt;");
189
- }
190
- function ue(e, t, n, r = !1) {
191
- let i = t;
192
- if (t.startsWith("/")) i = t.slice(1);
193
- else {
194
- if (!e) throw Error(`Relative path "${t}" cannot be used at root level. Use an absolute path starting with "/" (e.g., "/xl/workbook.xml").`);
195
- i = (e.includes("/") ? e.slice(0, e.lastIndexOf("/") + 1) : "") + t;
196
- }
197
- if (i = de(i), !i.includes("{n}")) {
198
- if (!r && n.has(i)) throw Error(`Path already existing path: ${i}`);
199
- return i;
200
- }
201
- let a, o = 1;
202
- do
203
- if (a = i.replace(/{n}/g, String(o)), o++, o > 1e4) throw Error(`Failed to resolve path template "${t}" after 10000 attempts. This likely indicates a bug or an impossible constraint.`);
204
- while (n.has(a));
205
- return a;
206
- }
207
- function de(e) {
208
- let t = e.split("/"), n = [];
209
- for (let r of t) if (r !== "" && r !== ".") if (r === "..") {
210
- if (n.length === 0) throw Error(`Invalid path: too many ".." segments in "${e}"`);
211
- n.pop();
212
- } else n.push(r);
213
- return n.join("/");
214
- }
215
- function fe(e, t) {
216
- if (!e) return t;
217
- let n = e.includes("/") ? e.slice(0, e.lastIndexOf("/")) : "", r = n ? n.split("/") : [], i = t.split("/"), a = 0, o = Math.min(r.length, i.length - 1);
218
- for (let e = 0; e < o && r[e] === i[e]; e++) a++;
219
- let s = r.length - a;
220
- return "../".repeat(s) + i.slice(a).join("/");
221
- }
222
- function pe(e) {
223
- return new TextEncoder().encode(e);
224
- }
225
- var me = /&(amp|lt|gt|quot|apos|#x[0-9a-fA-F]+|#[0-9]+);/g;
226
- function he(e, t) {
227
- switch (t) {
228
- case "amp": return "&";
229
- case "lt": return "<";
230
- case "gt": return ">";
231
- case "quot": return "\"";
232
- case "apos": return "'";
233
- default: return t.startsWith("#x") ? String.fromCodePoint(parseInt(t.slice(2), 16)) : t.startsWith("#") ? String.fromCodePoint(parseInt(t.slice(1), 10)) : e;
234
- }
235
- }
236
- function ge(e) {
237
- return e.replace(me, he);
238
- }
239
- function _e(e) {
240
- let t, n = {}, r = /([A-Za-z_:][-A-Za-z0-9_:.]*)\s*=\s*"([^"]*)"/g;
241
- for (; t = r.exec(e);) n[t[1]] = ge(t[2]);
242
- return n;
243
- }
244
- function ve(e, t) {
245
- let n, r = [], i = RegExp(`<${t}\\b([^>]*)/?>`, "g");
246
- for (; n = i.exec(e);) r.push(_e(n[1]));
247
- return r;
248
- }
249
- function ye(e) {
250
- return ve(new TextDecoder("utf-8").decode(e), "Relationship").filter((e) => e.Type && e.Target).map((e) => ({
251
- type: e.Type,
252
- target: e.Target,
253
- external: e.TargetMode === "External"
254
- }));
255
- }
256
- var be = class {
257
- constructor(e) {
258
- this.rels = [], this.usedIds = /* @__PURE__ */ new Set(), this.nextId = 1, this.sourcePart = R(e);
259
- }
260
- add(e, t, n) {
261
- let r = n?.idHint && !this.usedIds.has(n.idHint) ? n.idHint : void 0;
262
- if (!r) do
263
- r = "rId" + this.nextId++;
264
- while (this.usedIds.has(r));
265
- let i = /^rId(\d+)$/.exec(r);
266
- return i && (this.nextId = Math.max(this.nextId, parseInt(i[1], 10) + 1)), this.usedIds.add(r), this.rels.push({
267
- id: r,
268
- type: e,
269
- target: t,
270
- targetMode: n?.external ? "External" : void 0
271
- }), r;
272
- }
273
- list() {
274
- return this.rels;
275
- }
276
- toXmlBytes() {
277
- let e = [...this.rels].sort((e, t) => z(t.id) - z(e.id) || e.id.localeCompare(t.id)), t = [];
278
- t.push("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"), t.push(`<Relationships xmlns="${xe}">`);
279
- for (let n of e) {
280
- let e = [
281
- `Id="${B(n.id)}"`,
282
- `Type="${B(n.type)}"`,
283
- `Target="${B(n.target)}"`
284
- ];
285
- n.targetMode === "External" && e.push("TargetMode=\"External\""), t.push(`<Relationship ${e.join(" ")}/>`);
286
- }
287
- return t.push("</Relationships>"), pe(t.join(""));
288
- }
289
- }, xe = "http://schemas.openxmlformats.org/package/2006/relationships", Se = class {
290
- constructor() {
291
- this._defaultsSet = /* @__PURE__ */ new Set(), this._overridesSet = /* @__PURE__ */ new Set(), this._defaults = [], this._overrides = [];
292
- }
293
- addDefault(e, t) {
294
- let n = function(e) {
295
- let t = (e ?? "").trim().toLowerCase();
296
- return t.startsWith(".") && (t = t.slice(1)), t;
297
- }(e);
298
- this._defaultsSet.has(n) || (this._defaultsSet.add(n), this._defaults.push({
299
- key: n,
300
- content: t
301
- }));
302
- }
303
- addOverride(e, t) {
304
- let n = function(e) {
305
- let t = (e ?? "").replace(/\\/g, "/").trim();
306
- return t.startsWith("/") || (t = "/" + t), t;
307
- }(e);
308
- this._overridesSet.has(n) || (this._overridesSet.add(n), this._overrides.push({
309
- key: n,
310
- content: t
311
- }));
312
- }
313
- toXmlBytes() {
314
- let e = [];
315
- e.push("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"), e.push(`<Types xmlns="${Ce}">`);
316
- let t = this._defaults.reverse();
317
- this.addDefault("rels", "application/vnd.openxmlformats-package.relationships+xml"), this.addDefault("xml", "application/xml");
318
- for (let { key: n, content: r } of t) e.push(`<Default Extension="${B(n)}" ContentType="${B(r)}"/>`);
319
- let n = this._overrides;
320
- for (let { key: t, content: r } of n) e.push(`<Override PartName="${B(t)}" ContentType="${B(r)}"/>`);
321
- return e.push("</Types>"), pe(e.join(""));
322
- }
323
- }, Ce = "http://schemas.openxmlformats.org/package/2006/content-types", we = class {
324
- constructor(e) {
325
- this.parts = [], this.relsRoot = new be(""), this.relsByPart = /* @__PURE__ */ new Map(), this.contentTypes = new Se(), this.zip = e;
326
- }
327
- addContentType(e, t) {
328
- let n = R(e);
329
- this.contentTypes.addOverride("/" + n, t);
330
- }
331
- addDefaultType(e, t) {
332
- this.contentTypes.addDefault(e, t);
333
- }
334
- addPart(e, t, n, r) {
335
- let i = R(e);
336
- this.parts.push({
337
- path: i,
338
- body: t,
339
- optionsZip: r
340
- }), n && this.contentTypes.addOverride("/" + i, n);
341
- }
342
- rels(e) {
343
- let t = R(e || "");
344
- if (!t) return this.relsRoot;
345
- let n = this.relsByPart.get(t);
346
- return n || (n = new be(t), this.relsByPart.set(t, n)), n;
347
- }
348
- async emit() {
349
- let e = [...this.parts].sort((e, t) => e.path.localeCompare(t.path));
350
- for (let t of e) {
351
- let e = le(t.body);
352
- await this.zip.add(t.path, e, t.optionsZip);
353
- }
354
- let t = this.relsRoot.toXmlBytes();
355
- await this.zip.add("_rels/.rels", t, {});
356
- let n = [...this.relsByPart.values()].sort((e, t) => e.sourcePart.localeCompare(t.sourcePart));
357
- for (let e of n) {
358
- let t = L(e.sourcePart), n = e.toXmlBytes();
359
- await this.zip.add(t, n, {});
360
- }
361
- let r = this.contentTypes.toXmlBytes();
362
- await this.zip.add("[Content_Types].xml", r, {});
363
- }
364
- async build(e) {
365
- return await this.emit(), await this.zip.close(e);
366
- }
367
- }, Te = /* @__PURE__ */ new Set(["xl/calcChain.xml"]), Ee = [
368
- /^xl\/drawings\/vmlDrawing\d+\.vml$/i,
369
- /^xl\/ctrlProps\//i,
370
- /^xl\/slicers\//i,
371
- /^xl\/slicerCaches\//i,
372
- /^xl\/pivotCache\//i,
373
- /^xl\/pivotTables\//i
374
- ];
375
- function De(e) {
376
- return Ee.some((t) => t.test(e));
377
- }
378
- function Oe(e) {
379
- return e === "[Content_Types].xml" || ke.test(e);
380
- }
381
- var ke = /^(?:(.*)\/)?_rels\/(.*)\.rels$/;
382
- function Ae(e) {
383
- if (e === "_rels/.rels") return "";
384
- let t = ke.exec(e);
385
- if (!t) return null;
386
- let n = t[1] ?? "", r = t[2];
387
- return n ? `${n}/${r}` : r;
388
- }
389
- var je = class {
390
- constructor(e, t, n) {
391
- this._queue = [], this._scheduledByNodeKey = /* @__PURE__ */ new Map(), this._nodesByPath = /* @__PURE__ */ new Map(), this._writtenPaths = /* @__PURE__ */ new Set(), this._explicitRelTargets = /* @__PURE__ */ new Set(), this._partWriter = new we(e), this._registry = t, this._options = n ?? {}, this._mapState = this._options.mapState ?? /* @__PURE__ */ new Map(), this._sourcePackage = this._options.sourcePackage ?? null;
392
- }
393
- async waitEmit() {
394
- let e = this._queue;
395
- for (; e.length;) {
396
- let t = e.shift();
397
- await this._processPart(t);
398
- }
399
- }
400
- async build(e) {
401
- return await this.waitEmit(), this._passthroughSourceParts(), await this._partWriter.build(e ?? {});
402
- }
403
- _passthroughSourceParts() {
404
- let e = this._sourcePackage;
405
- if (!e) return;
406
- let t = new Set(this._writtenPaths), n = e.hasStructuralChange(), r = [];
407
- for (let i of e.getNames()) t.has(i) || Te.has(i) || Oe(i) || n && De(i) || r.push(i);
408
- let i = new Set(t);
409
- for (let e of r) i.add(e);
410
- let a = e.getPart("[Content_Types].xml"), o = a ? function(e) {
411
- let t = new TextDecoder("utf-8").decode(e), n = ve(t, "Default").map((e) => ({
412
- ext: (e.Extension ?? "").toLowerCase(),
413
- contentType: e.ContentType ?? ""
414
- })).filter((e) => e.ext && e.contentType), r = /* @__PURE__ */ new Map();
415
- for (let e of ve(t, "Override")) e.PartName && e.ContentType && r.set(e.PartName, e.ContentType);
416
- return {
417
- defaults: n,
418
- overrides: r
419
- };
420
- }(a.data) : null;
421
- if (o) for (let { ext: e, contentType: t } of o.defaults) this._partWriter.addDefaultType(e, t);
422
- for (let t of r) {
423
- let n = e.getPart(t), r = o?.overrides.get("/" + t);
424
- n.raw ? this._partWriter.addPart(t, {
425
- kind: "bytes",
426
- bytes: n.raw.compressedData
427
- }, r, {
428
- passThrough: !0,
429
- compressionMethod: n.raw.compressionMethod,
430
- signature: n.raw.signature,
431
- uncompressedSize: n.uncompressedSize
432
- }) : this._partWriter.addPart(t, {
433
- kind: "bytes",
434
- bytes: n.data
435
- }, r), this._writtenPaths.add(t);
436
- }
437
- for (let n of e.getNames()) {
438
- if (n === "[Content_Types].xml" || !Oe(n)) continue;
439
- let r = Ae(n);
440
- r !== null && (r === "" || i.has(r)) && this._mergeSourceRelsInto(r, e.getPart(n).data, t, i);
441
- }
442
- }
443
- _mergeSourceRelsInto(e, t, n, r) {
444
- let i = this._partWriter.rels(e), a = e.includes("/") ? e.slice(0, e.lastIndexOf("/")) : "";
445
- for (let o of ye(t)) {
446
- if (o.external) {
447
- i.add(o.type, o.target, { external: !0 });
448
- continue;
449
- }
450
- let t = de((a ? a + "/" : "") + o.target);
451
- n.has(t) || this._explicitRelTargets.has(`${e}::${t}`) || (r.has(t) ? i.add(o.type, o.target) : console.warn(`Dropping preserved relationship to missing part '${t}'`, e || "(root)"));
452
- }
453
- }
454
- addPart(e, t, n) {
455
- return this._addPartInternal("", e, t, n);
456
- }
457
- _addPartInternal(e, t, n, r) {
458
- let i = this._registry.get(t);
459
- if (!i) throw Error(`No emitter registered for kind '${t}'.`);
460
- let a = r ?? i.getPath?.(n);
461
- if (!a) throw Error("No path provided in either argument or emitter.");
462
- let o = this._writtenPaths, s = ue(e, a, o), c = `${t}:${s}`, l = this._scheduledByNodeKey.get(c);
463
- if (!l) {
464
- let e, r = new Promise((t) => {
465
- e = t;
466
- });
467
- l = {
468
- kind: t,
469
- key: c,
470
- payload: n,
471
- path: s,
472
- contentType: i.contentType,
473
- promise: r,
474
- resolve: e
475
- }, this._scheduledByNodeKey.set(c, l), this._queue.push(l);
476
- }
477
- let u = this._nodesByPath.get(e);
478
- u || (u = /* @__PURE__ */ new Set(), this._nodesByPath.set(e, u)), u.add(c), !i.contentType || i.relTypeUri || e || this._partWriter.rels("").add("http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument", s);
479
- let d = null;
480
- if (i.relTypeUri) {
481
- let t = fe(e, l.path);
482
- d = this._partWriter.rels(e).add(i.relTypeUri, t);
483
- }
484
- return o.add(s), {
485
- path: s,
486
- contentTypeUri: i.contentType,
487
- relId: d
488
- };
489
- }
490
- addBinary(e, t, n, r, i = !1) {
491
- return this._addBinaryInternal("", e, t, n, r, i);
492
- }
493
- _addBinaryInternal(e, t, n, r, i, a = !1) {
494
- if (!i) throw Error("No path provided for binary.");
495
- if (!n) throw Error("No content type provided for binary.");
496
- let o = this._writtenPaths, s = ue(e, i, o, a), c = null;
497
- if (r) {
498
- let t = fe(e, s);
499
- c = this._partWriter.rels(e).add(r, t);
500
- }
501
- if (e || this._partWriter.rels("").add("http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument", s), !o.has(s)) {
502
- let e = s.split(".").pop() || "";
503
- e && this._partWriter.addDefaultType(e, n), this._partWriter.addPart(s, {
504
- kind: "bytes",
505
- bytes: t
506
- }, void 0, {
507
- level: 0,
508
- uncompressedSize: t.byteLength,
509
- dataDescriptor: !1
510
- }), o.add(s);
511
- }
512
- return {
513
- path: s,
514
- contentTypeUri: n,
515
- relId: c
516
- };
517
- }
518
- _forkPreservedPart(e, t, n, r, i) {
519
- let a = this._sourcePackage;
520
- if (!a) return null;
521
- let o = a.getPart(t);
522
- if (!o) return null;
523
- let s = new Set(this._writtenPaths);
524
- for (let e of a.getNames()) s.add(e);
525
- let c = ue(e, i, s), l = this._addBinaryInternal(e, o.data, n, r, "/" + c), u = a.getPart(L(t));
526
- if (u) {
527
- let e = this._partWriter.rels(l.path);
528
- for (let t of ye(u.data)) e.add(t.type, t.target, t.external ? { external: !0 } : void 0);
529
- }
530
- return l;
531
- }
532
- async _waitForDescendants(e) {
533
- let t = this._nodesByPath.get(e);
534
- if (!t || t.size === 0) return;
535
- let n = [];
536
- for (let e of t) {
537
- let t = this._scheduledByNodeKey.get(e);
538
- if (t) {
539
- let e = this._processPart(t);
540
- n.push(e);
541
- }
542
- }
543
- await Promise.all(n);
544
- }
545
- async _processPart(e) {
546
- if (e.processed) return e.promise;
547
- e.processed = !0;
548
- let t = this._registry.get(e.kind), n = e.path;
549
- this._partWriter.addContentType(e.path, e.contentType);
550
- try {
551
- let r, i = [], a = { write: (e) => {
552
- i.push(e);
553
- } };
554
- await t.emit(e.payload, {
555
- getXMLWriter: () => r || (r = I(a), r),
556
- addPart: (e, t, r) => this._addPartInternal(n, e, t, r),
557
- addBinary: (e, t, r, i, a = !1) => this._addBinaryInternal(n, e, t, r, i, a),
558
- addExternal: (e, t) => ({
559
- path: t,
560
- contentTypeUri: null,
561
- relId: this._partWriter.rels(n).add(e, t, { external: !0 })
562
- }),
563
- addPreservedRelationship: (e, t, r) => {
564
- let i = fe(n, t), a = this._partWriter.rels(n).add(e, i, { idHint: r });
565
- return this._explicitRelTargets.add(`${n}::${t}`), a;
566
- },
567
- forkPreservedPart: (e, t, r, i) => this._forkPreservedPart(n, e, t, r, i),
568
- waitEmit: () => this._waitForDescendants(e.path),
569
- getPath: () => e.path,
570
- getSharedStates: () => this._mapState,
571
- warn: (e, t) => {
572
- console.warn(e, t);
573
- }
574
- });
575
- let o = function(e) {
576
- let t = 0;
577
- for (let n of e) t += n.byteLength;
578
- let n = new Uint8Array(t), r = 0;
579
- for (let t of e) n.set(t, r), r += t.byteLength;
580
- return n;
581
- }(i), s = this._options.onPartEmitted;
582
- s && await s(e.kind, e.path, o), Me && (console.log(`\n=== ${e.path} ===`), console.log(function(e, t) {
583
- return function(e, t = " ") {
584
- let n = "", r = 0, i = e.split(/(<[^>]+>)/g).filter(Boolean);
585
- for (let e = 0; e < i.length; e++) {
586
- let a = i[e];
587
- if (a.trim()) if (a.startsWith("<?")) n += a + "\n";
588
- else if (a.startsWith("</")) r--, r < 0 && console.warn(`XML formatting warning: negative indentation depth: ${a}`), n += t.repeat(Math.max(r, 0)) + a + "\n";
589
- else if (a.startsWith("<")) {
590
- let e = a.endsWith("/>");
591
- n += t.repeat(r) + a + "\n", e || r++;
592
- } else n += t.repeat(r) + a.trim() + "\n";
593
- }
594
- return n;
595
- }(function(e) {
596
- return new TextDecoder("utf-8").decode(e);
597
- }(e), t);
598
- }(o))), this._partWriter.addPart(e.path, {
599
- kind: "bytes",
600
- bytes: o
601
- }, e.contentType);
602
- } catch (t) {
603
- throw this._options.onPartError?.(e.kind, e.path, t), t;
604
- } finally {
605
- this._nodesByPath.delete(e.path), this._scheduledByNodeKey.delete(e.key), e.resolve();
606
- }
607
- }
608
- }, Me = !1, Ne = class {
609
- constructor() {
610
- this.map = /* @__PURE__ */ new Map();
611
- }
612
- register(e) {
613
- if (this.map.has(e.kind)) throw Error(`Duplicate part kind: ${e.kind}`);
614
- this.map.set(e.kind, e);
615
- }
616
- get(e) {
617
- let t = this.map.get(e);
618
- if (!t) throw Error(`Unknown part kind: ${e}`);
619
- return t;
620
- }
621
- has(e) {
622
- return this.map.has(e);
623
- }
624
- };
625
- function Pe(e, t, n) {
626
- e && (e.algorithm && (t[n ? `${n}AlgorithmName` : "algorithmName"] = e.algorithm), e.hash && (t[n ? `${n}HashValue` : "hashValue"] = e.hash), e.salt && (t[n ? `${n}SaltValue` : "saltValue"] = e.salt), e.spinCount !== void 0 && (t[n ? `${n}SpinCount` : "spinCount"] = e.spinCount));
627
- }
628
- var Fe = class {
629
- constructor() {
630
- this._daprFMBks = [], this._daprFMBkMap = /* @__PURE__ */ new Map(), this._rvFMBks = [], this._rvFMBkMap = /* @__PURE__ */ new Map(), this._valueMeta = [];
631
- }
632
- registerArrayCell(e) {
633
- let t = +!!e, n = `1,${t}`, r = this._daprFMBkMap.get(n);
634
- return r === void 0 && (r = this._daprFMBks.length, this._daprFMBks.push({
635
- fDynamic: 1,
636
- fCollapsed: t
637
- }), this._daprFMBkMap.set(n, r)), r + 1;
638
- }
639
- registerRichValueCell(e) {
640
- let t = this._rvFMBkMap.get(e);
641
- t === void 0 && (t = this._rvFMBks.length, this._rvFMBks.push(e), this._rvFMBkMap.set(e, t));
642
- let n = this._valueMeta.length;
643
- return this._valueMeta.push(t), n + 1;
644
- }
645
- hasCellMeta() {
646
- return this._daprFMBks.length > 0;
647
- }
648
- hasValueMeta() {
649
- return this._valueMeta.length > 0;
650
- }
651
- hasAny() {
652
- return this.hasCellMeta() || this.hasValueMeta();
653
- }
654
- getDAPRFutureMetadataBlocks() {
655
- return this._daprFMBks;
656
- }
657
- getRVFutureMetadataBlocks() {
658
- return this._rvFMBks;
659
- }
660
- getValueMeta() {
661
- return this._valueMeta;
662
- }
663
- }, Ie = class {
664
- constructor(e, t = console.warn) {
665
- this._entries = [], this._keyMap = /* @__PURE__ */ new Map(), this._metaCollector = e, this._onWarn = t;
666
- }
667
- add(e) {
668
- if (e == null) return this._onWarn?.("RichValueCollector.add: null/undefined value — falling back to #UNKNOWN!"), this._registerFallback();
669
- if (r.isError(e)) {
670
- let t = e.getCode(), n = this._register(`_error:${t}`, { errorType: "" + (t - 1) }, Le);
671
- return this._metaCollector.registerRichValueCell(n);
672
- }
673
- return e.isIRichData && e.getType(), this._onWarn?.("RichValueCollector.add: unsupported rich value type — falling back to #UNKNOWN!", e), this._registerFallback();
674
- }
675
- _registerFallback() {
676
- let e = this._register("_error:fallback", { errorType: r.Code.Unknown - 1 }, Le);
677
- return this._metaCollector.registerRichValueCell(e);
678
- }
679
- _register(e, t, n) {
680
- let r = this._keyMap.get(e);
681
- return r === void 0 && (r = this._entries.length, this._entries.push({
682
- handler: n,
683
- rawValue: t
684
- }), this._keyMap.set(e, r)), r;
685
- }
686
- getCount() {
687
- return this._entries.length;
688
- }
689
- hasAny() {
690
- return this._entries.length > 0;
691
- }
692
- getEntries() {
693
- return this._entries;
694
- }
695
- uniqueHandlers() {
696
- let e = /* @__PURE__ */ new Set(), t = [];
697
- for (let n of this._entries) e.has(n.handler) || (e.add(n.handler), t.push(n.handler));
698
- return t;
699
- }
700
- handlerStructureIndex(e) {
701
- let t = 0, n = /* @__PURE__ */ new Set();
702
- for (let r of this._entries) if (!n.has(r.handler)) {
703
- if (r.handler === e) return t;
704
- n.add(r.handler), t++;
705
- }
706
- return -1;
707
- }
708
- }, Le = new class {
709
- constructor(e, t) {
710
- this.type = e, this.props = t;
711
- }
712
- getValues(e) {
713
- return this.props.map(([t, , n = ""]) => {
714
- let r = e?.[t];
715
- return r == null ? n : "" + r;
716
- });
717
- }
718
- }("_error", [[
719
- "errorType",
720
- "i",
721
- ""
722
- ], [
723
- "subType",
724
- "i",
725
- "0"
726
- ]]), Re = {
727
- auto: "auto",
728
- automaticExceptTables: "autoNoTable",
729
- manual: "manual"
730
- };
731
- function V(e, t, n, r) {
732
- if (!n) return;
733
- let i = typeof n == "string" ? t.parseColor(n) : n;
734
- r && e.start(r);
735
- let a = i.getType(), o = i.getVal(), s = i.getAdjustments(), c = s && s.length > 0;
736
- switch (a) {
737
- case "scheme":
738
- c ? (e.start("schemeClr", { val: o }), H(e, s), e.end("schemeClr")) : e.empty("schemeClr", { val: o });
739
- break;
740
- case "named":
741
- if (l.isSystem(o)) {
742
- let t = i.getLastColor() ?? i.getBaseColor().toHex().toString(!1).replace("#", "");
743
- c ? (e.start("sysClr", {
744
- val: o,
745
- lastClr: t
746
- }), H(e, s), e.end("sysClr")) : e.empty("sysClr", {
747
- val: o,
748
- lastClr: t
749
- });
750
- } else c ? (e.start("prstClr", { val: o }), H(e, s), e.end("prstClr")) : e.empty("prstClr", { val: o });
751
- break;
752
- case "auto": {
753
- let t = i.getLastColor() ?? i.getBaseColor().toHex().toString(!1).replace("#", "");
754
- c ? (e.start("sysClr", {
755
- val: "windowText",
756
- lastClr: t
757
- }), H(e, s), e.end("sysClr")) : e.empty("sysClr", {
758
- val: "windowText",
759
- lastClr: t
760
- });
761
- break;
762
- }
763
- case "index":
764
- c ? (e.start("srgbClr", { val: o }), H(e, s), e.end("srgbClr")) : e.empty("srgbClr", { val: o });
765
- break;
766
- case "hsl":
767
- let t = i.toHex().toString();
768
- c ? (e.start("srgbClr", { val: t }), H(e, s), e.end("srgbClr")) : e.empty("srgbClr", { val: t });
769
- break;
770
- case "rgb":
771
- case "lrgb":
772
- let n = i.toHex().toString();
773
- c ? (e.start("srgbClr", { val: n }), H(e, s), e.end("srgbClr")) : e.empty("srgbClr", { val: n });
774
- break;
775
- case "hex":
776
- let r = o.replace("#", "").toUpperCase();
777
- c ? (e.start("srgbClr", { val: r }), H(e, s), e.end("srgbClr")) : e.empty("srgbClr", { val: r });
778
- break;
779
- default:
780
- let a = o.replace("#", "").toUpperCase();
781
- e.empty("srgbClr", { val: a });
782
- }
783
- r && e.end(r);
784
- }
785
- function H(e, t) {
786
- if (t && t.length !== 0) for (let n of t) for (let [t, r] of Object.entries(n)) {
787
- if (r == null) continue;
788
- let n = t;
789
- if (n) if (typeof r == "boolean") e.empty(n);
790
- else {
791
- let i;
792
- if (t === "alpha" || t === "alphaOff" || t === "alphaMod") i = Math.round(1e5 * r);
793
- else {
794
- if (t === "eTint") {
795
- if (r < 0) {
796
- e.empty("shade", { val: Math.round(1e5 * (1 + r)).toString() });
797
- continue;
798
- }
799
- e.empty("tint", { val: Math.round(1e5 * r).toString() });
800
- continue;
801
- }
802
- i = Math.round(1e3 * r);
803
- }
804
- e.empty(n, { val: i.toString() });
805
- }
806
- }
807
- }
808
- function U(e, t, n, r, i = !1, o = !1) {
809
- if (!n) return;
810
- let s = typeof n == "string" ? t.parseColor(n) : n, c = () => {
811
- e.empty(r, { rgb: Ge(s.toHex().toString(!0)) });
812
- }, l = s.getAdjustments(), u = l && l.length > 0, d = s.getType();
813
- if (d !== a.Type.Auto) {
814
- if (d === a.Type.Scheme) {
815
- let t = s.getVal(), n = ze[t] ?? t, i = He.get(n);
816
- if (i === void 0 && n !== "phClr") return console.warn(`Color scheme not in theme. schemeVal=${t} themeKey=${n}`), c();
817
- let o = {};
818
- if (o.theme = i, u) {
819
- if (!function(e) {
820
- for (let t of e) switch (Object.keys(t)[0]) {
821
- case a.AdjustmentType.Tint:
822
- case a.AdjustmentType.ETint:
823
- case a.AdjustmentType.Shade:
824
- case a.AdjustmentType.Lum:
825
- case a.AdjustmentType.LumOff:
826
- case a.AdjustmentType.LumMod:
827
- case a.AdjustmentType.Alpha:
828
- case a.AdjustmentType.AlphaOff:
829
- case a.AdjustmentType.AlphaMod: continue;
830
- default: return !1;
831
- }
832
- return !0;
833
- }(l)) return c();
834
- let e, t = l.length === 1 ? l[0][a.AdjustmentType.ETint] : void 0;
835
- if (t !== void 0) e = Ue(t);
836
- else {
837
- let t = s.getBaseColor().toHex().toString(!0), n = s.toHex().toString(!0);
838
- e = Ue(function(e, t) {
839
- let n = W(e, 0, 255), r = W(t, 0, 255);
840
- return Math.abs(r - n) < 1e-9 ? 0 : r < n ? n <= 1e-9 ? -1 : W(r / n - 1, -1, 0) : 255 - n <= 1e-9 ? 0 : W((r - n) / (255 - n), 0, 1);
841
- }(We(t), We(n)));
842
- }
843
- e !== 0 && (o.tint = e);
844
- }
845
- e.empty(r, o);
846
- return;
847
- }
848
- if (d === a.Type.Index) {
849
- let t = s.getVal(), n = t.substring(5, t.length);
850
- e.empty(r, { indexed: Number(n) });
851
- return;
852
- }
853
- return c();
854
- }
855
- e.empty(r, { auto: 1 });
856
- }
857
- var ze = {
858
- bg1: "lt1",
859
- tx1: "dk1",
860
- bg2: "lt2",
861
- tx2: "dk2",
862
- accent1: "accent1",
863
- accent2: "accent2",
864
- accent3: "accent3",
865
- accent4: "accent4",
866
- accent5: "accent5",
867
- accent6: "accent6",
868
- hlink: "hlink",
869
- folHlink: "folHlink"
870
- }, Be = Object.freeze([
871
- "lt1",
872
- "dk1",
873
- "lt2",
874
- "dk2",
875
- "accent1",
876
- "accent2",
877
- "accent3",
878
- "accent4",
879
- "accent5",
880
- "accent6",
881
- "hlink",
882
- "folHlink"
883
- ]), Ve = Object.freeze([
884
- "dk1",
885
- "lt1",
886
- "dk2",
887
- "lt2",
888
- "accent1",
889
- "accent2",
890
- "accent3",
891
- "accent4",
892
- "accent5",
893
- "accent6",
894
- "hlink",
895
- "folHlink"
896
- ]), He = new Map(Be.map((e, t) => [e, t]));
897
- function W(e, t, n) {
898
- return Math.max(t, Math.min(n, e));
899
- }
900
- function Ue(e) {
901
- let t = W(e, -1, 1);
902
- return Math.abs(t) < 1e-12 ? 0 : t;
903
- }
904
- function We(e) {
905
- let t = function(e) {
906
- let t = e.replace(/^#/, "").toUpperCase();
907
- if (t.length === 8) return t.slice(2);
908
- if (t.length === 6) return t;
909
- throw Error(`Invalid hex: ${e}`);
910
- }(e), n = parseInt(t.slice(0, 2), 16) / 255, r = parseInt(t.slice(2, 4), 16) / 255, i = parseInt(t.slice(4, 6), 16) / 255;
911
- return (Math.max(n, r, i) + Math.min(n, r, i)) / 2 * 255;
912
- }
913
- function Ge(e) {
914
- let t = e.replace(/^#/, "").toUpperCase();
915
- if (t.length === 8) return t;
916
- if (t.length === 6) return "FF" + t;
917
- throw Error(`Invalid hex: ${e}`);
918
- }
919
- function Ke(e, t = !1) {
920
- let n = e;
921
- return n.length === 8 && (n = n.substring(2, 8)), n.length === 6 && (n = (t ? "00" : "FF") + n), n.toUpperCase();
922
- }
923
- function G(t, n, r, i, a = !1, o = !1) {
924
- let s = i.getTheme();
925
- if (a && n.start("fill"), typeof r == "string" && (r = {
926
- type: f.Type.Solid,
927
- color: r
928
- }), r.type === f.Type.None) a ? n.empty("patternFill", { patternType: "none" }) : n.empty("noFill");
929
- else if (r.type === f.Type.Solid) {
930
- let e = r;
931
- a ? n.start("patternFill", { patternType: "solid" }) : n.start("solidFill"), e.color && (a ? U(n, s, e.color, "fgColor") : V(n, s, e.color)), a ? n.end("patternFill") : n.end("solidFill");
932
- } else if (r.type === f.Type.Pattern) {
933
- let e = r, t = e.patternType || "solid";
934
- n.start("patternFill", { patternType: t }), e.foreground && (a ? U(n, s, o ? e.background : e.foreground, "fgColor") : V(n, s, o ? e.background : e.foreground)), e.background && (a ? U(n, s, o ? e.foreground : e.background, "bgColor") : V(n, s, o ? e.foreground : e.background)), n.end("patternFill");
935
- } else if (r.type === f.Type.Gradient && a) {
936
- let e = r, t = {}, i = e.gradientType;
937
- if (i !== f.GradientType.Path && i !== f.GradientType.Linear || (t.type = i), e.angle !== void 0) {
938
- let n = (e.angle - 90) % 360;
939
- n !== 0 && (t.degree = String(n));
940
- }
941
- let a = e.focus;
942
- a && (a.left && (t.left = String(a.left)), a.right && (t.right = String(a.right)), a.top && (t.top = String(a.top)), a.bottom && (t.bottom = String(a.bottom))), n.start("gradientFill", t);
943
- let o = e.stops;
944
- if (o && o.length > 0) for (let e of o) {
945
- let t, r = 0;
946
- if (typeof e == "string" || typeof e == "object" && !("offset" in e)) t = e, r = 0;
947
- else {
948
- let n = e;
949
- r = n.offset || 0, t = n.color;
950
- }
951
- n.start("stop", { position: String(r) }), t && U(n, s, t, "color"), n.end("stop");
952
- }
953
- n.end("gradientFill");
954
- } else if (r.type === f.Type.Gradient) {
955
- let t = r, i = {};
956
- t.isRotatedWithShape !== void 0 && (i.rotWithShape = t.isRotatedWithShape ? "1" : "0"), n.start("gradFill", i), n.start("gsLst");
957
- let a = t.stops;
958
- if (a && a.length > 0) for (let t of a) {
959
- let r, i = 0;
960
- if (typeof t == "string" || typeof t == "object" && !("offset" in t)) r = t;
961
- else {
962
- let e = t;
963
- i = e.offset || 0, r = e.color;
964
- }
965
- n.start("gs", { pos: String(e.roundAccurately(1e3 * i, 0)) }), r && V(n, s, r), n.end("gs");
966
- }
967
- n.end("gsLst");
968
- let o = t.gradientType;
969
- if (o && o !== f.GradientType.Linear) {
970
- let r = o === "radial" ? "circle" : o;
971
- n.start("path", { path: r });
972
- let i = t.focus;
973
- if (i) {
974
- let t = {};
975
- i.t !== void 0 && (t.t = String(e.roundAccurately(1e3 * i.t, 0))), i.l !== void 0 && (t.l = String(e.roundAccurately(1e3 * i.l, 0))), i.b !== void 0 && (t.b = String(e.roundAccurately(1e3 * i.b, 0))), i.r !== void 0 && (t.r = String(e.roundAccurately(1e3 * i.r, 0))), n.empty("fillToRect", t);
976
- }
977
- n.end("path");
978
- } else {
979
- let r = {};
980
- t.angle !== void 0 && (r.ang = String(e.roundAccurately(6e4 * t.angle, 0)));
981
- let i = t.scaled;
982
- i !== void 0 && (r.scaled = i ? "1" : "0"), n.empty("lin", r);
983
- }
984
- n.end("gradFill");
985
- } else a ? n.empty("patternFill", { patternType: "none" }) : n.empty("noFill");
986
- a && n.end("fill");
987
- }
988
- var qe = (t, n, r, i) => {
989
- if (!r) return n.start("ln"), n.empty("noFill"), void n.end("ln");
990
- typeof r == "string" && (r = { fill: r });
991
- let a = r, o = {};
992
- if (a.width !== void 0 && (o.w = String(K(a.width))), a.lineCap !== void 0 && (o.cap = Je(a.lineCap)), a.compound !== void 0 && (o.cmpd = a.compound), a.align !== void 0 && (o.algn = a.align), n.start("ln", o), G(0, n, a.fill ?? Qe, i), Array.isArray(a.dash)) {
993
- n.start("custDash");
994
- for (let t = 0; t < a.dash.length; t += 2) n.empty("ds", {
995
- d: String(e.roundAccurately(1e3 * a.dash[t], 0)),
996
- sp: String(e.roundAccurately(1e3 * (a.dash[t + 1] ?? 0), 0))
997
- });
998
- n.end("custDash");
999
- } else typeof a.dash == "string" && n.empty("prstDash", { val: a.dash });
1000
- if (a.lineJoin === g.LineJoin.Round) n.empty("round");
1001
- else if (a.lineJoin === g.LineJoin.Bevel) n.empty("bevel");
1002
- else if (a.lineJoin === g.LineJoin.Miter) {
1003
- let t = {};
1004
- a.miterLimit !== void 0 && (t.lim = String(e.roundAccurately(1e5 * a.miterLimit, 0))), n.empty("miter", t);
1005
- }
1006
- n.end("ln");
1007
- }, Je = (e) => e === "round" ? "rnd" : e === "butt" ? "flat" : e === "square" ? "sq" : e, Ye = (e, t, n, r = void 0, i = !1) => {
1008
- if (!n || !(n.fill || n.stroke || n.effects?.length || i)) return;
1009
- let a = e.getXMLWriter();
1010
- r && a.start(r), a.pushDefaultNamespace("a"), n.fill && G(0, a, n.fill, t), n.stroke && qe(0, a, n.stroke, t), n.effects?.length ? Xe(e, a, t.getTheme(), n.effects) : i && a.empty("effectLst"), a.popDefaultNamespace(), r && a.end(r);
1011
- }, Xe = (e, t, n, r) => {
1012
- t.start("effectLst");
1013
- for (let e of r) Ze(t, n, e);
1014
- t.end("effectLst");
1015
- }, Ze = (t, n, r) => {
1016
- switch (r.type) {
1017
- case _.Type.OuterShadow: {
1018
- let i = r, a = {};
1019
- i.blur !== void 0 && (a.blurRad = String(K(i.blur))), i.distance !== void 0 && (a.dist = String(K(i.distance))), i.angle !== void 0 && (a.dir = String(J(i.angle))), i.alignment !== void 0 && (a.algn = i.alignment), i.isRotatedWithShape !== void 0 && (a.rotWithShape = i.isRotatedWithShape ? "1" : "0"), i.scaleX !== void 0 && (a.sx = String(e.roundAccurately(1e3 * i.scaleX, 0))), i.scaleY !== void 0 && (a.sy = String(e.roundAccurately(1e3 * i.scaleY, 0))), i.skewX !== void 0 && (a.kx = String(J(i.skewX))), i.skewY !== void 0 && (a.ky = String(J(i.skewY))), t.start("outerShdw", a), V(t, n, i.color), t.end("outerShdw");
1020
- break;
1021
- }
1022
- case _.Type.InnerShadow: {
1023
- let e = r, i = {};
1024
- e.blur !== void 0 && (i.blurRad = String(K(e.blur))), e.distance !== void 0 && (i.dist = String(K(e.distance))), e.angle !== void 0 && (i.dir = String(J(e.angle))), t.start("innerShdw", i), V(t, n, e.color), t.end("innerShdw");
1025
- break;
1026
- }
1027
- case _.Type.PresetShadow: {
1028
- let e = r, i = { prst: e.preset };
1029
- e.distance !== void 0 && (i.dist = String(K(e.distance))), e.angle !== void 0 && (i.dir = String(J(e.angle))), t.start("prstShdw", i), V(t, n, e.color), t.end("prstShdw");
1030
- break;
1031
- }
1032
- case _.Type.Glow: {
1033
- let e = r, i = {};
1034
- e.radius !== void 0 && (i.rad = String(K(e.radius))), t.start("glow", i), V(t, n, e.color), t.end("glow");
1035
- break;
1036
- }
1037
- case _.Type.SoftEdge: {
1038
- let e = r, n = {};
1039
- e.radius !== void 0 && (n.rad = String(K(e.radius))), t.empty("softEdge", n);
1040
- break;
1041
- }
1042
- case _.Type.Reflection: {
1043
- let n = r, i = {};
1044
- n.blur !== void 0 && (i.blurRad = String(K(n.blur))), n.distance !== void 0 && (i.dist = String(K(n.distance))), n.angle !== void 0 && (i.dir = String(J(n.angle))), n.fadeAngle !== void 0 && (i.fadeDir = String(J(n.fadeAngle))), n.startAlpha !== void 0 && (i.stA = String(e.roundAccurately(1e3 * n.startAlpha, 0))), n.startPosition !== void 0 && (i.stPos = String(e.roundAccurately(1e3 * n.startPosition, 0))), n.endAlpha !== void 0 && (i.endA = String(e.roundAccurately(1e3 * n.endAlpha, 0))), n.endPosition !== void 0 && (i.endPos = String(e.roundAccurately(1e3 * n.endPosition, 0))), n.scaleX !== void 0 && (i.sx = String(e.roundAccurately(1e3 * n.scaleX, 0))), n.scaleY !== void 0 && (i.sy = String(e.roundAccurately(1e3 * n.scaleY, 0))), n.skewX !== void 0 && (i.kx = String(J(n.skewX))), n.skewY !== void 0 && (i.ky = String(J(n.skewY))), n.alignment !== void 0 && (i.algn = n.alignment), n.isRotatedWithShape !== void 0 && (i.rotWithShape = n.isRotatedWithShape ? "1" : "0"), t.empty("reflection", i);
1045
- break;
1046
- }
1047
- }
1048
- }, Qe = { type: "none" }, $e = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", et = {
1049
- mime: "image/png",
1050
- ext: "png"
1051
- }, K = (t = 0) => e.roundAccurately(12700 * t, 0), q = (t = 0) => e.roundAccurately(9525 * t, 0), J = (e) => 6e4 * e, tt = (t = 0) => e.roundAccurately(100 * t, 2), nt = class {
1052
- constructor() {
1053
- this._dxfs = [], this._byKey = /* @__PURE__ */ new Map();
1054
- }
1055
- add(e) {
1056
- let t = JSON.stringify(e), n = this._byKey.get(t);
1057
- return n === void 0 && (n = this._dxfs.length, this._dxfs.push(e), this._byKey.set(t, n)), n;
1058
- }
1059
- getDxfs() {
1060
- return this._dxfs;
1061
- }
1062
- getCount() {
1063
- return this._dxfs.length;
1064
- }
1065
- }, rt = "cfDxfs", it = [
1066
- "font",
1067
- "fill",
1068
- "border",
1069
- "numberFormat",
1070
- "alignment"
1071
- ];
1072
- function at(n, r, i) {
1073
- if (r) {
1074
- if (r.named) {
1075
- let t = r.named, a = t.toLowerCase(), o = i.namedStyleMap;
1076
- if (!o.has(a)) {
1077
- o.set(a, "" + o.size);
1078
- let r = n.getNamed(t).toJSON();
1079
- at(n, r.style ?? e.EmptyObject, i), i.namedStyles.push(r);
1080
- }
1081
- }
1082
- r.font && function(e, n, r) {
1083
- if (!n) return;
1084
- let i = t.JSONStableStringify(n), a = r.fontMap;
1085
- if (!a.has(i)) {
1086
- let e = a.size;
1087
- a.set(i, "" + e), r.fonts.push(n);
1088
- }
1089
- }(0, r.font, i), r.fill && function(e, n, r) {
1090
- if (!n) return;
1091
- let i = t.JSONStableStringify(n), a = r.fillMap;
1092
- if (!a.has(i) && typeof n == "object" && n.type) {
1093
- let e = a.size;
1094
- a.set(i, "" + e), r.fills.push(n);
1095
- }
1096
- }(0, r.fill, i), r.border && function(e, n, r) {
1097
- if (!n) return;
1098
- let i = t.JSONStableStringify(n), a = r.borderMap;
1099
- if (!a.has(i)) {
1100
- let e = a.size;
1101
- a.set(i, "" + e), r.borders.push(n);
1102
- }
1103
- }(0, r.border, i), r.numberFormat !== void 0 && function(e, t, n) {
1104
- if (!t) return;
1105
- let r = u.toBuiltInID(t), i = n.numFmtMap;
1106
- if (!i.has(r)) {
1107
- let e = 0;
1108
- typeof r == "number" ? e = r : (e = n.numFmtsCustom.length + ft, n.numFmtsCustom.push(r)), i.set(t, "" + e);
1109
- }
1110
- }(0, r.numberFormat, i);
1111
- }
1112
- }
1113
- function ot(e, t, n) {
1114
- if (!t) return;
1115
- let r = t.name.toLowerCase();
1116
- n.namedStyleMap.has(r) || (n.namedStyleMap.set(r, "" + n.namedStyleMap.size), n.namedStyles.push(t), at(e, t.style, n));
1117
- }
1118
- function st(e, t, n, r, i = !1) {
1119
- let a = r.getDefaultFontSize(), o = r.getTheme().getFontScheme().getMinorFont() ?? "Calibri", s = r.getNormal().getFont().getColor();
1120
- t.start("font"), n.weight && n.weight >= 700 && t.empty("b"), n.style && n.style !== "normal" && t.empty("i"), n.strike && t.empty("strike"), n.underline && t.empty("u", { val: n.underline }), n.outline && t.empty("outline"), n.shadow && t.empty("shadow"), n.extend && t.empty("extend");
1121
- let c = n.verticalAlign;
1122
- c && (c === "super" && (c = "superscript"), c === "sub" && (c = "subscript"), t.empty("vertAlign", { val: c })), i ? n.size !== void 0 && t.empty("sz", { val: String(n.size) }) : t.empty("sz", { val: String(n.size ?? a) }), U(t, r.getTheme(), n.color ?? s, "color", !i);
1123
- let l = !i || n.family && n.family !== o;
1124
- if (l && (t.empty("name", { val: n.family ?? o }), n.fallbacks && n.fallbacks.length > 0)) {
1125
- let e = n.fallbacks;
1126
- e.includes("serif") ? t.empty("family", { val: 1 }) : e.includes("sans-serif") ? t.empty("family", { val: 2 }) : e.includes("monospace") ? t.empty("family", { val: 3 }) : e.includes("cursive") ? t.empty("family", { val: 4 }) : e.includes("fantasy") && t.empty("family", { val: 5 });
1127
- }
1128
- n.charset !== void 0 && n.charset !== null && t.empty("charset", { val: String(n.charset) });
1129
- let u = n.scheme ?? (n.family === void 0 ? "minor" : void 0);
1130
- l && u !== void 0 && u !== "none" && t.empty("scheme", { val: u }), t.end("font");
1131
- }
1132
- function Y(e, t, n, r, i, a = !1) {
1133
- if (!i || i.style === "none" || !i.style) return void (a && !i || t.empty(r));
1134
- t.start(r, { style: i.style });
1135
- let o = i.color;
1136
- o && U(t, n, o, "color", !a, a), t.end(r);
1137
- }
1138
- function ct(e, t, n, r, i = !1) {
1139
- let a = {};
1140
- i ? (a.diagonalUp = "0", a.diagonalDown = "0") : (n.diagonalUp && (a.diagonalUp = "1"), n.diagonalDown && (a.diagonalDown = "1")), t.start("border", a), Y(0, t, r, "left", n.left, i), Y(0, t, r, "right", n.right, i), Y(0, t, r, "top", n.top, i), Y(0, t, r, "bottom", n.bottom, i), i ? (Y(0, t, r, "vertical", n.vertical, i), Y(0, t, r, "horizontal", n.horizontal, i)) : Y(0, t, r, "diagonal", n.diagonalUp ?? n.diagonalDown, i), t.end("border");
1141
- }
1142
- function lt(e, t, n, r = !1) {
1143
- let i = {};
1144
- n.horizontal && n.horizontal !== d.HorizontalAlignment.General && (i.horizontal = n.horizontal), n.vertical && n.vertical !== d.VerticalAlignment.Bottom && (i.vertical = n.vertical);
1145
- let a = n.rotation;
1146
- n.stacked && (i.textRotation = "255", a = 0), a && (a >= 270 && a < 360 ? a = 360 - a : a > 0 && a <= 90 && (a += 90), i.textRotation = String(a));
1147
- let o = n.overflow;
1148
- switch (o === d.Overflow.Wrap && (i.wrapText = "1"), n.indent && (i.indent = "" + n.indent), n.relativeIndent && (i.relativeIndent = "" + n.relativeIndent), n.justifyLastLine && (i.justifyLastLine = "1"), o === d.Overflow.Shrink && (i.shrinkToFit = "1"), n.readingDirection) {
1149
- case d.ReadingDirection.Auto: break;
1150
- case d.ReadingDirection.LeftToRight:
1151
- i.readingOrder = "1";
1152
- break;
1153
- case d.ReadingDirection.RightToLeft: i.readingOrder = "2";
1154
- }
1155
- return Object.keys(i).length > 0 ? i : null;
1156
- }
1157
- function ut(e, n, r, i, a, o) {
1158
- let s = {}, c = null, l = i.named;
1159
- l && (c = r.getNamed(l).toJSON().style);
1160
- let u = i.font ?? c?.font, d = u ? a.fontMap.get(t.JSONStableStringify(u)) ?? 0 : 0, f = i.fill ?? c?.fill, p = f ? a.fillMap.get(t.JSONStableStringify(f)) ?? 0 : 0, m = i.border ?? c?.border, g = m ? a.borderMap.get(t.JSONStableStringify(m)) ?? 0 : 0, _ = i.numberFormat ?? c?.numberFormat;
1161
- if (s.numFmtId = (_ === void 0 ? void 0 : a.numFmtMap.get(_)) ?? "0", s.fontId = String(d), s.fillId = String(p), s.borderId = String(g), o) {
1162
- let e = i.named ?? h.BuiltInName.Normal;
1163
- s.xfId = a.namedStyleMap.get(e.toLowerCase());
1164
- }
1165
- let v = null, y = i.alignment ?? c?.alignment;
1166
- y && (v = lt(0, 0, y)), i.font && (s.applyFont = "1"), i.fill && (s.applyFill = "1"), i.numberFormat && (s.applyNumberFormat = "1"), i.border && (s.applyBorder = "1"), v && (s.applyAlignment = "1"), i.quotePrefix && (s.quotePrefix = "1"), v ? (n.start("xf", s), v && n.empty("alignment", v), n.end("xf")) : n.empty("xf", s);
1167
- }
1168
- function dt(e, t, n, r, i, a = "dxf", o = ft) {
1169
- if (t.start(a), n.font && st(0, t, n.font, r, !0), n.numberFormat !== void 0 && n.numberFormat !== null) {
1170
- let e = u.toBuiltInID(n.numberFormat), r = typeof e == "number", i = r ? u.builtInFormat(e) : String(e);
1171
- i && t.empty("numFmt", {
1172
- numFmtId: String(r ? e : o++),
1173
- formatCode: i
1174
- });
1175
- }
1176
- if (n.fill && G(0, t, n.fill, r, !0, !0), n.alignment) {
1177
- let e = lt(0, 0, n.alignment, !0);
1178
- e && t.empty("alignment", e);
1179
- }
1180
- return n.border && ct(0, t, n.border, i, !0), t.end(a), o;
1181
- }
1182
- var ft = 164, pt = Object.freeze([
1183
- "wholeTable",
1184
- "headerRow",
1185
- "totalRow",
1186
- "firstColumn",
1187
- "lastColumn",
1188
- "firstRowStripe",
1189
- "secondRowStripe",
1190
- "firstColumnStripe",
1191
- "secondColumnStripe",
1192
- "firstHeaderCell",
1193
- "lastHeaderCell",
1194
- "firstTotalCell",
1195
- "lastTotalCell"
1196
- ]), mt = m.BuiltInOperatorNames, ht = (e, t, n, r, i, a) => {
1197
- let o = r.sorts, s = o ? o.length : 0;
1198
- if (s === 0) return;
1199
- let c = {};
1200
- if (s > 0) {
1201
- let e = o[0].criteria?.collatorOptions;
1202
- e && (c.caseSensitive = typeof e != "object" || Array.isArray(e) || e.sensitivity !== "case" && e.sensitivity !== "variant" ? "0" : "1");
1203
- }
1204
- c.ref = n.getRange().toString(), c["xmlns:xlrd2"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2", t.start("sortState", c);
1205
- for (let e = 0; e < s; e++) {
1206
- let n = o[e], r = n.criteria ?? {}, s = n.index + a.colStart, c = {};
1207
- r.reverse && (c.descending = "1"), c.ref = i.getIntersect({
1208
- colStart: s,
1209
- rowStart: a.rowStart,
1210
- colEnd: s,
1211
- rowEnd: a.rowEnd
1212
- }).toString(), r.sortOn && (c.sortBy = r.sortOn), r.dxfId !== void 0 && (c.dxfId = r.dxfId), r.iconSet !== void 0 && (c.iconSet = r.iconSet), r.customList !== void 0 && (c.customList = r.customList), t.empty("sortCondition", c);
1213
- }
1214
- t.end("sortState");
1215
- }, gt = (e, t, n, r, i = !1) => {
1216
- let a = n.getRange();
1217
- n.isShowTotals() && (a = a.getResizeBy(-1, 0));
1218
- let o = a.getCoords(), s = r.sort, c = r.filter, l = c ? c.conditions : void 0, u = l ? l.length : 0, d = r.hiddenButtons, f = {};
1219
- f.ref = a.toString();
1220
- let p, m = [];
1221
- for (let e = 0; e < u; e++) {
1222
- let t = l[e];
1223
- m[t.index] = { ...t };
1224
- }
1225
- if (Array.isArray(d) && d.length > 0) {
1226
- let e = d.length;
1227
- p = Array(d[e - 1]);
1228
- for (let t = 0; t < e; t++) p[d[t]] = !0;
1229
- }
1230
- if (m || d || p || i) {
1231
- let c = 0;
1232
- r.columns ? c = r.columns.length : i && (c = a.getColumnCount()), t.start("autoFilter", f);
1233
- for (let n = 0; n < c; n++) {
1234
- let r = !0 === d || !0 === p?.[n], i = m[n];
1235
- (i || r) && _t(e, t, n, i, r);
1236
- }
1237
- s && i && ht(0, t, n, s, a, o), t.end("autoFilter");
1238
- } else t.empty("autoFilter", f);
1239
- s && !i && ht(0, t, n, s, a, o);
1240
- }, X = (e, t, n) => {
1241
- let r = A(n, (t) => e.warn(t, n));
1242
- if (!r) return;
1243
- let i = { operator: r.operator };
1244
- r.val !== void 0 && (i.val = r.val), t.empty("customFilter", i);
1245
- }, _t = (e, t, n, r, i) => {
1246
- let a = {};
1247
- a.colId = "" + n, i && (a.hiddenButton = "1"), r ? (t.start("filterColumn", a), ((e, t, n) => {
1248
- let r = n.operator;
1249
- if (r !== m.BuiltInOperatorNames.Expression) if (r !== m.BuiltInOperatorNames.Unique) {
1250
- if (r === m.BuiltInOperatorNames.Color) {
1251
- let e = n.param, r = {};
1252
- e.cellColor !== void 0 && (r.cellColor = e.cellColor ? "1" : "0"), e.styleId !== void 0 && (r.dxfId = e.styleId), t.empty("colorFilter", r);
1253
- }
1254
- if (vt(r)) if (r === "between") {
1255
- let r = n.param;
1256
- t.start("customFilters", { and: "1" }), X(e, t, {
1257
- operator: mt.GreaterThanEqualTo,
1258
- param: r.from
1259
- }), X(e, t, {
1260
- operator: mt.LessThanEqualTo,
1261
- param: r.to
1262
- }), t.end("customFilters");
1263
- } else if (r === m.BuiltInOperatorNames.Not) {
1264
- let r = n.param;
1265
- k(r?.operator) ? (t.start("customFilters"), X(e, t, n), t.end("customFilters")) : e.warn("Not rule with non-comparison criteria not supported in OOXML", r);
1266
- } else if (r === m.BuiltInOperatorNames.And || r === m.BuiltInOperatorNames.Or) {
1267
- let i = n.param, a = i.length;
1268
- if (a > 0) {
1269
- let n = {};
1270
- r === m.BuiltInOperatorNames.And && a > 1 && (n.and = "1"), t.start("customFilters", n);
1271
- for (let n = 0; n < a; n++) {
1272
- let r = i[n], a = r.operator === mt.Not && k(r.param?.operator);
1273
- k(r.operator) || a ? X(e, t, r) : e.warn("Only Comparison criteria supported in Union conditions for Table AutoFilters", r);
1274
- }
1275
- t.end("customFilters");
1276
- }
1277
- } else k(r) && (t.start("customFilters"), X(e, t, n), t.end("customFilters"));
1278
- if (r === m.BuiltInOperatorNames.TimePeriod) {
1279
- let e = n.param, r = {};
1280
- e.type && (r.type = e.type), e.anchorDate !== void 0 && (r.val = "" + e.anchorDate), e.maxVal !== void 0 && (r.maxVal = "" + e.maxVal), t.empty("dynamicFilter", r);
1281
- }
1282
- if (r === m.BuiltInOperatorNames.Average) {
1283
- let e = n.param, r = {}, i = e.type;
1284
- i && (i === m.AverageType.Above ? r.type = "aboveAverage" : i === m.AverageType.Below && (r.type = "belowAverage")), e.stdDevs !== void 0 && (r.val = "" + e.stdDevs), t.empty("dynamicFilter", r);
1285
- }
1286
- if (r === m.BuiltInOperatorNames.InSet) {
1287
- let e = n.param;
1288
- if (e.dateGroups) {
1289
- let n = e.dateGroups, r = n.length;
1290
- t.start("dateGroupItem");
1291
- for (let e = 0; e < r; e++) {
1292
- let r = n[e], i = {};
1293
- r.day !== void 0 && (i.day = "" + r.day), r.hour !== void 0 && (i.hour = "" + r.hour), r.minute !== void 0 && (i.minute = "" + r.minute), r.second !== void 0 && (i.second = "" + r.second), r.year !== void 0 && (i.year = "" + r.year), r.month !== void 0 && (i.month = "" + r.month), i.dateTimeGrouping = r.group, t.empty("dateGroupItem", i);
1294
- }
1295
- t.end("dateGroupItem");
1296
- }
1297
- if (e.items) {
1298
- let n = e.items, r = n.length;
1299
- t.start("filters");
1300
- for (let e = 0; e < r; e++) {
1301
- let r = n[e];
1302
- t.empty("filter", { val: "" + r });
1303
- }
1304
- t.end("filters");
1305
- }
1306
- }
1307
- if (r === m.BuiltInOperatorNames.Icon) {
1308
- let e = n.param, r = {};
1309
- e.iconSet !== void 0 && (r.iconSet = e.iconSet), e.iconId !== void 0 && (r.iconId = "" + e.iconId), t.empty("iconFilter", r);
1310
- }
1311
- if (r === m.BuiltInOperatorNames.TopN) {
1312
- let e = n.param, r = {};
1313
- e.percent && (r.percent = "1"), e.top !== void 0 && (r.top = e.top ? "1" : "0"), e.limit !== void 0 && (r.val = "" + e.limit), e.filterVal !== void 0 && (r.filterVal = "" + e.filterVal), t.empty("top10", r);
1314
- }
1315
- } else e.warn("Unique conditions not supported in Table AutoFilters", n);
1316
- else e.warn("Expression conditions not supported in Table AutoFilters", n);
1317
- })(e, t, r), t.end("filterColumn")) : t.empty("filterColumn", a);
1318
- }, vt = (e) => e === m.BuiltInOperatorNames.GreaterThan || e === m.BuiltInOperatorNames.GreaterThanEqualTo || e === m.BuiltInOperatorNames.LessThan || e === m.BuiltInOperatorNames.LessThanEqualTo || e === m.BuiltInOperatorNames.EqualTo || e === m.BuiltInOperatorNames.And || e === m.BuiltInOperatorNames.Or || e === m.BuiltInOperatorNames.Not || e === "between", yt = "16.0000", bt = {
1319
- names: /* @__PURE__ */ new Set(),
1320
- perFormula: [],
1321
- affects: () => !1
1322
- }, xt = 1048576;
1323
- function St(e, t) {
1324
- let n = t.type;
1325
- n === s.ColorStopType.AutoMin ? n = s.ColorStopType.Min : n === s.ColorStopType.AutoMax && (n = s.ColorStopType.Max), e.empty("cfvo", {
1326
- type: n,
1327
- val: t.value,
1328
- gte: t.exclusive ? "0" : void 0
1329
- });
1330
- }
1331
- function Ct(e, t) {
1332
- let n = {
1333
- type: t.type,
1334
- gte: t.exclusive ? "0" : void 0
1335
- };
1336
- t.value === void 0 ? e.empty("x14:cfvo", n) : (e.start("x14:cfvo", n), e.start("xm:f"), e.text(t.value), e.end("xm:f"), e.end("x14:cfvo"));
1337
- }
1338
- var wt = /* @__PURE__ */ new Set([
1339
- h.IconSet.Arrows3,
1340
- h.IconSet.ArrowsGray3,
1341
- h.IconSet.Flags3,
1342
- h.IconSet.Signs3,
1343
- h.IconSet.Symbols3,
1344
- h.IconSet.Symbols3_2,
1345
- h.IconSet.TrafficLights3,
1346
- h.IconSet.TrafficLights3_2,
1347
- h.IconSet.Arrows4,
1348
- h.IconSet.ArrowsGray4,
1349
- h.IconSet.Rating4,
1350
- h.IconSet.RedToBlack4,
1351
- h.IconSet.TrafficLights4,
1352
- h.IconSet.Arrows5,
1353
- h.IconSet.ArrowsGray5,
1354
- h.IconSet.Quarters5,
1355
- h.IconSet.Rating5
1356
- ]);
1357
- function Tt(e) {
1358
- return (e.icon?.length ?? 0) > 0 || e.iconSet !== void 0 && !wt.has(e.iconSet);
1359
- }
1360
- function Et(t, n, r, i, a, o, c, l, u) {
1361
- let d = i.scale;
1362
- i.ext && t.warn("Conditional format extension payload is not written to xlsx; it will be lost.");
1363
- let f, p = {
1364
- type: a.type,
1365
- dxfId: i.style && Object.keys(i.style).length > 0 ? l.add(i.style) : void 0,
1366
- priority: c,
1367
- stopIfTrue: Z(i.stopIfTrue),
1368
- aboveAverage: Z(a.aboveAverage),
1369
- equalAverage: Z(a.equalAverage),
1370
- stdDev: a.stdDev,
1371
- bottom: Z(a.bottom),
1372
- percent: Z(a.percent),
1373
- rank: a.rank,
1374
- operator: a.operator,
1375
- text: a.text,
1376
- timePeriod: a.timePeriod
1377
- };
1378
- d?.type === s.ScaleType.DataBar && function(e) {
1379
- if (e.gradient || e.borderColor || e.negativeFillColor || e.negativeBorderColor || e.axisColor || e.axisPosition || e.direction) return !0;
1380
- let t = e.stops, n = t ? t.length : 0;
1381
- for (let e = 0; e < n; e++) {
1382
- let n = t[e].type;
1383
- if (n === s.ColorStopType.AutoMin || n === s.ColorStopType.AutoMax) return !0;
1384
- }
1385
- return !1;
1386
- }(d) && (f = C(e.uuidV4), u.push({
1387
- guid: f,
1388
- sqref: o,
1389
- priority: c,
1390
- scale: d
1391
- }));
1392
- let m = a.formulas, h = m ? m.length : 0;
1393
- if (h !== 0 || d) {
1394
- n.start("cfRule", p);
1395
- for (let e = 0; e < h; e++) n.start("formula"), n.text(m[e]), n.end("formula");
1396
- if (d?.type === s.ScaleType.ColorScale) {
1397
- let e = d.stops ?? [];
1398
- n.start("colorScale");
1399
- for (let t = 0; t < e.length; t++) St(n, e[t]);
1400
- for (let t = 0; t < e.length; t++) U(n, r, e[t].color, "color");
1401
- n.end("colorScale");
1402
- } else if (d?.type === s.ScaleType.DataBar) {
1403
- let e = d.stops ?? [];
1404
- n.start("dataBar", {
1405
- minLength: d.minLength,
1406
- maxLength: d.maxLength,
1407
- showValue: Z(d.showValue)
1408
- });
1409
- for (let t = 0; t < e.length; t++) St(n, e[t]);
1410
- d.color && U(n, r, d.color, "color"), n.end("dataBar");
1411
- } else if (d?.type === s.ScaleType.IconSet) {
1412
- let e = d.stops ?? [];
1413
- n.start("iconSet", {
1414
- iconSet: d.iconSet,
1415
- reverse: Z(d.reverse),
1416
- showValue: Z(d.showValue)
1417
- });
1418
- for (let t = 0; t < e.length; t++) St(n, e[t]);
1419
- n.end("iconSet");
1420
- }
1421
- f && (n.start("extLst"), n.start("ext", {
1422
- uri: "{B025F937-C7B1-47D3-B67F-A62EFF666E3E}",
1423
- "xmlns:x14": "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"
1424
- }), n.start("x14:id"), n.text(f), n.end("x14:id"), n.end("ext"), n.end("extLst")), n.end("cfRule");
1425
- } else n.empty("cfRule", p);
1426
- }
1427
- function Dt(e) {
1428
- return e.split(" ")[0].split(":")[0];
1429
- }
1430
- function Ot(e) {
1431
- if (typeof e == "string") return e.split(",").join(" ");
1432
- if (Array.isArray(e)) {
1433
- let t = [];
1434
- for (let n = 0; n < e.length; n++) {
1435
- let r = c.rangeToString(e[n]);
1436
- r && t.push(r);
1437
- }
1438
- return t.length > 0 ? t.join(" ") : null;
1439
- }
1440
- return c.rangeToString(e);
1441
- }
1442
- function Z(e) {
1443
- if (e !== void 0) return e ? "1" : "0";
1444
- }
1445
- function kt(e) {
1446
- if (typeof e != "string") return !1;
1447
- let t = !1;
1448
- for (let n = 0; n < e.length; n++) {
1449
- let r = e[n];
1450
- if (r === "\"") t = !t;
1451
- else if (r === "!" && !t) return !0;
1452
- }
1453
- return !1;
1454
- }
1455
- function At(e) {
1456
- let t = e.formulas, n = t ? t.length : 0;
1457
- for (let e = 0; e < n; e++) if (kt(t[e])) return !0;
1458
- return !1;
1459
- }
1460
- var jt = {
1461
- r: void 0,
1462
- s: void 0,
1463
- t: void 0,
1464
- cm: void 0,
1465
- vm: void 0
1466
- }, Mt = {
1467
- r: void 0,
1468
- s: void 0,
1469
- customFormat: void 0,
1470
- hidden: void 0,
1471
- ht: void 0,
1472
- customHeight: void 0,
1473
- "x14ac:dyDescent": "0.25",
1474
- outlineLevel: void 0,
1475
- collapsed: void 0
1476
- }, Nt = {
1477
- t: void 0,
1478
- aca: void 0,
1479
- ref: void 0,
1480
- ca: void 0,
1481
- si: void 0
1482
- }, Pt = {
1483
- t: "shared",
1484
- aca: void 0,
1485
- ref: void 0,
1486
- ca: void 0,
1487
- si: void 0
1488
- }, Ft = {
1489
- t: "array",
1490
- aca: void 0,
1491
- ref: void 0,
1492
- ca: void 0,
1493
- si: void 0
1494
- };
1495
- function It(e, t, n, r) {
1496
- n && (t.start(r), t.empty("latin", { typeface: n }), t.empty("ea", { typeface: "" }), t.empty("cs", { typeface: "" }), t.end(r));
1497
- }
1498
- var Lt = (e) => e.toISOString().split(".")[0] + "Z", Rt = (e, t, n) => {
1499
- switch (t) {
1500
- case "creator":
1501
- e.start("dc:creator"), e.text(n), e.end("dc:creator");
1502
- break;
1503
- case "lastModifiedBy":
1504
- e.start("cp:lastModifiedBy"), e.text(n), e.end("cp:lastModifiedBy");
1505
- break;
1506
- case "created":
1507
- e.start("dcterms:created", { "xsi:type": "dcterms:W3CDTF" }), e.text(n), e.end("dcterms:created");
1508
- break;
1509
- case "modified": e.start("dcterms:modified", { "xsi:type": "dcterms:W3CDTF" }), e.text(n), e.end("dcterms:modified");
1510
- }
1511
- }, Q = (e, t, n, r) => {
1512
- t.start(n), t.text(r), t.end(n);
1513
- }, zt = {
1514
- minSupportedVersion: "120000",
1515
- copy: "1",
1516
- pasteAll: "1",
1517
- pasteValues: "1",
1518
- merge: "1",
1519
- splitFirst: "1",
1520
- rowColShift: "1",
1521
- clearFormats: "1",
1522
- clearComments: "1",
1523
- assign: "1",
1524
- coerce: "1"
1525
- }, Bt = (t, n, r = e.EmptyArray) => {
1526
- if (!n) return { ...r };
1527
- let { text: i, runs: a, color: o, size: s, kern: c, weight: l, style: u, b: d, i: f, spc: p, baseline: m, ...h } = n, g = {
1528
- ...r,
1529
- ...h
1530
- };
1531
- return s !== void 0 && (g.sz = "" + tt(s)), d !== void 0 && (g.b = d ? "1" : "0"), l !== void 0 && (g.b = l > 500 ? "1" : "0"), f !== void 0 && (g.i = f ? "1" : "0"), u !== void 0 && (g.i = u === "italic" ? "1" : "0"), c !== void 0 && (g.kern = "" + tt(c)), p !== void 0 && (g.spc = "" + tt(p)), m !== void 0 && (g.baseline = "" + tt(m)), g;
1532
- }, Vt = (e, t, n) => {
1533
- if (!n) return;
1534
- let r = e.getXMLWriter();
1535
- r.start("txBody"), r.pushDefaultNamespace("a"), Ut(e, t, {
1536
- vertOverflow: "clip",
1537
- horzOverflow: "clip",
1538
- rtlCol: "0",
1539
- anchor: "ctr"
1540
- }), r.empty("lstStyle"), ((e, t, n) => {
1541
- if (!n) return;
1542
- let r = e.getXMLWriter();
1543
- r.pushDefaultNamespace("a"), typeof n == "string" && (n = { runs: [{ text: n }] }), r.start("p"), r.empty("pPr", { algn: "ctr" });
1544
- let i = Bt(0, n, {
1545
- ...Wt,
1546
- size: t.getDefaultFontSize()
1547
- }), a = n?.runs, o = a ? a.length : 0;
1548
- if (o > 0) for (let e = 0; e < o; e++) {
1549
- let n = a[e];
1550
- r.start("r", {});
1551
- let i = Bt(0, n, Wt), o = n.color;
1552
- o ? (r.start("rPr", i), G(0, r, o, t), r.end("rPr")) : r.empty("rPr", i), r.start("t"), r.text(n?.text ?? ""), r.end("t"), r.end("r");
1553
- }
1554
- else r.empty("endParaRPr", i);
1555
- r.end("p"), r.popDefaultNamespace();
1556
- })(e, t, n), r.popDefaultNamespace(), r.end("txBody");
1557
- }, Ht = (e, t, n) => {
1558
- if (!n) return;
1559
- let r = e.getXMLWriter(), i = Bt(0, n);
1560
- r.empty("defRPr", i);
1561
- }, Ut = (e, t, n) => {
1562
- if (!n) return;
1563
- let r = e.getXMLWriter(), { spAutoFit: i, ...a } = n;
1564
- i ? (r.start("bodyPr", a), r.empty("spAutoFit"), r.end("bodyPr")) : r.empty("bodyPr", a);
1565
- }, Wt = Object.freeze({ lang: "en-US" }), Gt = (e, t) => {
1566
- if (t.length !== 0) {
1567
- e.start("a:extLst");
1568
- for (let n of t) {
1569
- let t = {}, r = n[0];
1570
- r && (t.uri = r), e.start("a:ext", t), e.empty(n[1], n[2]), e.end("a:ext");
1571
- }
1572
- e.end("a:extLst");
1573
- }
1574
- }, Kt = async (e, t, n, r, i) => {
1575
- let a, o = e.getSharedStates(), s = r.getContent().getResource(), c = await s.getExternalURI();
1576
- if (c) a = e.addExternal($e, c);
1577
- else if (a = n.get(s), !a) {
1578
- let t = o.get("imagesWritten");
1579
- t || (t = /* @__PURE__ */ new Map(), o.set("imagesWritten", t));
1580
- let r = t.get(s);
1581
- if (!r) {
1582
- let e = await s.toBuffer();
1583
- r = {
1584
- bytes: new Uint8Array(e),
1585
- type: await s.getType() ?? et,
1586
- index: t.size + 1
1587
- }, t.set(s, r);
1588
- }
1589
- a = e.addBinary(r.bytes, r.type.mime, $e, `../media/image${r.index}.${r.type.ext}`, !0), n.set(s, a);
1590
- }
1591
- let l = { "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships" };
1592
- c ? l["r:link"] = a.relId : l["r:embed"] = a.relId;
1593
- let u = [];
1594
- c || u.push([
1595
- "{28A0092B-C50C-407E-A947-70E740481C1C}",
1596
- "a14:useLocalDpi",
1597
- {
1598
- "xmlns:a14": "http://schemas.microsoft.com/office/drawing/2010/main",
1599
- val: "0"
1600
- }
1601
- ]);
1602
- let d = e.getXMLWriter();
1603
- d.start("pic"), d.start("nvPicPr"), tn(e, d, r, i, t), rn(e, d, r, i), d.end("nvPicPr"), d.start("blipFill"), d.start("a:blip", l), Gt(d, u), d.end("a:blip"), d.start("a:stretch"), d.empty("a:fillRect"), d.end("a:stretch"), d.end("blipFill"), $t(e, t, n, r, i), d.end("pic");
1604
- }, qt = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart", Jt = async (e, t, n, r, i, a) => {
1605
- let o = i.content?.json, s = o?.xml, c = o?.chartRelId, l = o?.chartTargetPath;
1606
- if (!s || !c || !l) return $(e, t, n, r, i);
1607
- let u, d = e.getSharedStates(), f = d.get("claimedChartTargets");
1608
- if (f || (f = /* @__PURE__ */ new Set(), d.set("claimedChartTargets", f)), f.has(l)) {
1609
- let a = e.forkPreservedPart(l, "application/vnd.openxmlformats-officedocument.drawingml.chart+xml", qt, "../charts/chart{n}.xml");
1610
- if (!a?.relId) return $(e, t, n, r, i);
1611
- u = a.relId;
1612
- } else f.add(l), u = e.addPreservedRelationship(qt, l, c);
1613
- let p = u === c ? s : s.replace(`r:id="${c}"`, `r:id="${u}"`);
1614
- a !== void 0 && typeof o?.sourceId == "number" && (p = p.replace(`cNvPr id="${o.sourceId}"`, `cNvPr id="${a}"`)), e.getXMLWriter().raw(p);
1615
- }, Yt = async (e, t, n, r, i) => $(e, t, n, r, i), Xt = async (e, t, n, r, i) => $(e, t, n, r, i), Zt = async (e, t, n, r, i) => $(e, t, n, r, i), Qt = async (e, t, n, r, i, a) => {
1616
- let o = i.content?.json, s = o?.xml;
1617
- if (!s) return $(e, t, n, r, i);
1618
- let c = a !== void 0 && typeof o?.sourceId == "number" ? s.replace(`cNvPr id="${o.sourceId}"`, `cNvPr id="${a}"`) : s;
1619
- e.getXMLWriter().raw(c);
1620
- }, $ = async (e, t, n, r, i) => {
1621
- (async (e, t, n, r, i) => {
1622
- let a = e.getXMLWriter(), o = {}, s = i.content?.json, c = s?.type ?? "sp", l = t.getStyles();
1623
- c === "cxnSp" ? (o.macro = "", a.start("cxnSp", o), a.start("nvCxnSpPr"), tn(e, a, r, i, t), nn(e, a, r, i, t), a.start("cNvCxnSpPr"), a.empty("a:stCnx", {
1624
- id: "0",
1625
- idx: "0"
1626
- }), a.end("cNvCxnSpPr"), a.end("nvCxnSpPr"), $t(e, t, n, r, i), en(e, t, n, r, i), Vt(e, l, s?.text), a.end("cxnSp")) : c === "grpSp" || (o.macro = "", o.textlink = "", a.start("sp", o), a.start("nvSpPr"), tn(e, a, r, i, t), nn(e, a, r, i, t), a.end("nvSpPr"), $t(e, t, n, r, i), en(e, t, n, r, i), Vt(e, l, s?.text), a.end("sp"));
1627
- })(e, t, n, r, {
1628
- ...i,
1629
- content: {
1630
- type: "shape",
1631
- json: {
1632
- fill: "bg1",
1633
- stroke: {
1634
- width: 2,
1635
- fill: "red"
1636
- },
1637
- text: { runs: [{
1638
- text: "Unsupported Type: " + (i.content?.type ?? "unknown"),
1639
- color: "tx1"
1640
- }] }
1641
- }
1642
- }
1643
- });
1644
- }, $t = (e, t, n, r, i) => {
1645
- let a = e.getXMLWriter(), o = i.content?.json, s = o?.geometry ?? "rect", c = t.getStyles();
1646
- a.start("spPr"), a.pushDefaultNamespace("a"), an(a, r, i), a.start("prstGeom", { prst: s }), a.empty("avLst"), a.end("prstGeom"), Ye(e, c, o), a.popDefaultNamespace(), a.end("spPr");
1647
- }, en = (e, t, n, r, i) => {
1648
- let a = e.getXMLWriter();
1649
- a.start("style"), a.pushDefaultNamespace("a"), a.start("lnRef", { idx: "1" }), a.start("schemeClr", { val: "accent1" }), a.empty("shade", { val: "15000" }), a.end("schemeClr"), a.end("lnRef"), a.start("fillRef", { idx: "1" }), a.empty("schemeClr", { val: "accent1" }), a.end("fillRef"), a.start("effectRef", { idx: "0" }), a.empty("schemeClr", { val: "accent1" }), a.end("effectRef"), a.start("fontRef", { idx: "minor" }), a.empty("schemeClr", { val: "lt1" }), a.end("fontRef"), a.popDefaultNamespace(), a.end("style");
1650
- }, tn = (t, n, r, i, a) => {
1651
- let o = t.getSharedStates(), s = o.get("uniqueIdCounter");
1652
- s || (s = /* @__PURE__ */ new Map(), o.set("uniqueIdCounter", s));
1653
- let c = s.get(a) ?? 1;
1654
- c++, s.set(a, c);
1655
- let l = {
1656
- id: "" + c,
1657
- name: i.name
1658
- };
1659
- i.description && (l.descr = i.description), i.hidden && (l.hidden = "1");
1660
- let u = [];
1661
- u.push([
1662
- "{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}",
1663
- "a16:creationId",
1664
- {
1665
- "xmlns:a16": "http://schemas.microsoft.com/office/drawing/2014/main",
1666
- id: `{${e.uuidV4().toUpperCase()}}`
1667
- }
1668
- ]), n.start("cNvPr", l), Gt(n, u), n.end("cNvPr");
1669
- }, nn = (e, t, n, r, i) => {
1670
- t.empty("cNvSpPr");
1671
- }, rn = (e, t, n, r) => {
1672
- let i = {};
1673
- if (r.lockAspect && (i.noChangeAspect = "1"), r.locks) for (let e of Object.keys(r.locks)) !0 === r.locks[e] && (i[e] = "1");
1674
- t.start("cNvPicPr", {}), t.empty("a:picLocks", i), t.end("cNvPicPr");
1675
- }, an = (e, t, n) => {
1676
- let r = t.getBounds(), i = {}, a = n.rotation;
1677
- a !== void 0 && a !== 0 && (i.rot = "" + J(a)), e.start("xfrm", i), e.start("off", {
1678
- x: q(r.x),
1679
- y: q(r.y)
1680
- }), e.end("off"), e.start("ext", {
1681
- cx: q(r.width),
1682
- cy: q(r.height)
1683
- }), e.end("ext"), e.end("xfrm");
1684
- }, on = (e, t, n) => {
1685
- e.start(t), e.start("col"), e.text(n.c ?? 0), e.end("col"), e.start("colOff"), e.text(q(n.x)), e.end("colOff"), e.start("row"), e.text(n.r ?? 0), e.end("row"), e.start("rowOff"), e.text(q(n.y)), e.end("rowOff"), e.end(t);
1686
- }, sn = 0, cn = /* @__PURE__ */ new Map([
1687
- ["average", 101],
1688
- ["countnums", 102],
1689
- ["count", 103],
1690
- ["max", 104],
1691
- ["min", 105],
1692
- ["product", 106],
1693
- ["stddev", 107],
1694
- ["stddevp", 108],
1695
- ["sum", 109],
1696
- ["var", 110]
1697
- ]), ln = /* @__PURE__ */ new Map();
1698
- cn.forEach((e, t) => {
1699
- ln.set(e, t);
1700
- });
1701
- var un = (e, t, n, r, i, a = "0") => {
1702
- let o = i?.color, s = { idx: i?.idx ?? a };
1703
- o === void 0 ? t.empty(r, s) : (t.start(r, s), o === "auto" ? t.empty("styleClr", { val: "auto" }) : (t.pushDefaultNamespace("a"), V(t, n.getTheme(), o), t.popDefaultNamespace()), t.end(r));
1704
- }, dn = Object.freeze([
1705
- {
1706
- type: "axisTitle",
1707
- fontRef: { color: "tx1 lumMod 65 lumOff 35" },
1708
- defRPr: {
1709
- size: 10,
1710
- kern: 12
1711
- }
1712
- },
1713
- {
1714
- type: "categoryAxis",
1715
- fontRef: { color: "tx1 lumMod 65 lumOff 35" },
1716
- stroke: {
1717
- width: .75,
1718
- cap: "flat",
1719
- cmpd: "sng",
1720
- algn: "ctr",
1721
- round: !0,
1722
- fill: "tx1 lumMod 15 lumOff 85"
1723
- },
1724
- defRPr: {
1725
- size: 9,
1726
- kern: 12
1727
- }
1728
- },
1729
- {
1730
- type: "chartArea",
1731
- mods: { mods: "allowNoFillOverride allowNoLineOverride" },
1732
- fontRef: { color: "tx1" },
1733
- fill: {
1734
- type: "solid",
1735
- color: "bg1"
1736
- },
1737
- stroke: {
1738
- width: .75,
1739
- cap: "flat",
1740
- cmpd: "sng",
1741
- algn: "ctr",
1742
- round: !0,
1743
- fill: "tx1 lumMod 15 lumOff 85"
1744
- },
1745
- defRPr: {
1746
- size: 10,
1747
- kern: 12
1748
- }
1749
- },
1750
- {
1751
- type: "dataLabel",
1752
- fontRef: { color: "tx1 lumMod 75 lumOff 25" },
1753
- defRPr: {
1754
- size: 9,
1755
- kern: 12
1756
- }
1757
- },
1758
- {
1759
- type: "dataLabelCallout",
1760
- fontRef: { color: "dk1 lumMod 65 lumOff 35" },
1761
- fill: {
1762
- type: "solid",
1763
- color: "lt1"
1764
- },
1765
- stroke: { fill: "dk1 lumMod 25 lumOff 75" },
1766
- defRPr: {
1767
- size: 9,
1768
- kern: 12
1769
- },
1770
- bodyPr: {
1771
- rot: "0",
1772
- spcFirstLastPara: "1",
1773
- vertOverflow: "clip",
1774
- horzOverflow: "clip",
1775
- vert: "horz",
1776
- wrap: "square",
1777
- lIns: "36576",
1778
- tIns: "18288",
1779
- rIns: "36576",
1780
- bIns: "18288",
1781
- anchor: "ctr",
1782
- anchorCtr: "1",
1783
- spAutoFit: "true"
1784
- }
1785
- },
1786
- {
1787
- type: "dataPoint",
1788
- fillRef: {
1789
- idx: "1",
1790
- color: "auto"
1791
- },
1792
- fontRef: { color: "tx1" }
1793
- },
1794
- {
1795
- type: "dataPoint3D",
1796
- fillRef: {
1797
- idx: "1",
1798
- color: "auto"
1799
- },
1800
- fontRef: { color: "tx1" }
1801
- },
1802
- {
1803
- type: "dataPointLine",
1804
- lineRef: { color: "auto" },
1805
- fillRef: { idx: "1" },
1806
- fontRef: { color: "tx1" },
1807
- stroke: {
1808
- width: 2.25,
1809
- cap: "rnd",
1810
- fill: "phClr",
1811
- round: !0
1812
- }
1813
- },
1814
- {
1815
- type: "dataPointMarker",
1816
- lineRef: { color: "auto" },
1817
- fillRef: {
1818
- idx: "1",
1819
- color: "auto"
1820
- },
1821
- fontRef: { color: "tx1" },
1822
- stroke: {
1823
- width: .75,
1824
- fill: "phClr"
1825
- }
1826
- },
1827
- {
1828
- type: "dataPointMarkerLayout",
1829
- mods: {
1830
- symbol: "circle",
1831
- size: "5"
1832
- },
1833
- empty: !0
1834
- },
1835
- {
1836
- type: "dataPointWireframe",
1837
- lineRef: { color: "auto" },
1838
- fillRef: { idx: "1" },
1839
- fontRef: { color: "tx1" },
1840
- stroke: {
1841
- width: .75,
1842
- cap: "rnd",
1843
- fill: "phClr",
1844
- round: !0
1845
- }
1846
- },
1847
- {
1848
- type: "dataTable",
1849
- fontRef: { color: "tx1 lumMod 65 lumOff 35" },
1850
- fill: { type: "none" },
1851
- stroke: {
1852
- width: .75,
1853
- cap: "flat",
1854
- cmpd: "sng",
1855
- algn: "ctr",
1856
- round: !0,
1857
- fill: "tx1 lumMod 15 lumOff 85"
1858
- },
1859
- defRPr: {
1860
- size: 9,
1861
- kern: 12
1862
- }
1863
- },
1864
- {
1865
- type: "downBar",
1866
- fontRef: { color: "tx1" },
1867
- fill: {
1868
- type: "solid",
1869
- color: "dk1 lumMod 75 lumOff 25"
1870
- },
1871
- stroke: {
1872
- width: .75,
1873
- cap: "flat",
1874
- cmpd: "sng",
1875
- algn: "ctr",
1876
- round: !0,
1877
- fill: "tx1 lumMod 65 lumOff 35"
1878
- }
1879
- },
1880
- {
1881
- type: "dropLine",
1882
- fontRef: { color: "tx1" },
1883
- stroke: {
1884
- width: .75,
1885
- cap: "flat",
1886
- cmpd: "sng",
1887
- algn: "ctr",
1888
- round: !0,
1889
- fill: "tx1 lumMod 35 lumOff 65"
1890
- }
1891
- },
1892
- {
1893
- type: "errorBar",
1894
- fontRef: { color: "tx1" },
1895
- stroke: {
1896
- width: .75,
1897
- cap: "flat",
1898
- cmpd: "sng",
1899
- algn: "ctr",
1900
- round: !0,
1901
- fill: "tx1 lumMod 65 lumOff 35"
1902
- }
1903
- },
1904
- {
1905
- type: "floor",
1906
- fontRef: { color: "tx1" },
1907
- fill: { type: "none" },
1908
- stroke: {}
1909
- },
1910
- {
1911
- type: "gridlineMajor",
1912
- fontRef: { color: "tx1" },
1913
- stroke: {
1914
- width: .75,
1915
- cap: "flat",
1916
- cmpd: "sng",
1917
- algn: "ctr",
1918
- round: !0,
1919
- fill: "tx1 lumMod 15 lumOff 85"
1920
- }
1921
- },
1922
- {
1923
- type: "gridlineMinor",
1924
- fontRef: { color: "tx1" },
1925
- stroke: {
1926
- width: .75,
1927
- cap: "flat",
1928
- cmpd: "sng",
1929
- algn: "ctr",
1930
- round: !0,
1931
- fill: "tx1 lumMod 5 lumOff 95"
1932
- }
1933
- },
1934
- {
1935
- type: "hiLoLine",
1936
- fontRef: { color: "tx1" },
1937
- stroke: {
1938
- width: .75,
1939
- cap: "flat",
1940
- cmpd: "sng",
1941
- algn: "ctr",
1942
- round: !0,
1943
- fill: "tx1 lumMod 50 lumOff 50"
1944
- }
1945
- },
1946
- {
1947
- type: "leaderLine",
1948
- fontRef: { color: "tx1" },
1949
- stroke: {
1950
- width: .75,
1951
- cap: "flat",
1952
- cmpd: "sng",
1953
- algn: "ctr",
1954
- round: !0,
1955
- fill: "tx1 lumMod 35 lumOff 65"
1956
- }
1957
- },
1958
- {
1959
- type: "legend",
1960
- fontRef: { color: "tx1 lumMod 65 lumOff 35" },
1961
- defRPr: {
1962
- size: 9,
1963
- kern: 12
1964
- }
1965
- },
1966
- {
1967
- type: "plotArea",
1968
- mods: { mods: "allowNoFillOverride allowNoLineOverride" },
1969
- fontRef: { color: "tx1" }
1970
- },
1971
- {
1972
- type: "plotArea3D",
1973
- mods: { mods: "allowNoFillOverride allowNoLineOverride" },
1974
- fontRef: { color: "tx1" }
1975
- },
1976
- {
1977
- type: "seriesAxis",
1978
- fontRef: { color: "tx1 lumMod 65 lumOff 35" },
1979
- defRPr: {
1980
- size: 9,
1981
- kern: 12
1982
- }
1983
- },
1984
- {
1985
- type: "seriesLine",
1986
- fontRef: { color: "tx1" },
1987
- stroke: {
1988
- width: .75,
1989
- cap: "flat",
1990
- cmpd: "sng",
1991
- algn: "ctr",
1992
- round: !0,
1993
- fill: "tx1 lumMod 35 lumOff 65"
1994
- }
1995
- },
1996
- {
1997
- type: "title",
1998
- fontRef: { color: "tx1 lumMod 65 lumOff 35" },
1999
- defRPr: {
2000
- size: 14,
2001
- b: !1,
2002
- kern: 12,
2003
- spc: 0,
2004
- baseline: 0
2005
- }
2006
- },
2007
- {
2008
- type: "trendline",
2009
- lineRef: { color: "auto" },
2010
- fontRef: { color: "tx1" },
2011
- stroke: {
2012
- width: 1.5,
2013
- cap: "rnd",
2014
- fill: "phClr",
2015
- prstDash: "sysDot"
2016
- }
2017
- },
2018
- {
2019
- type: "trendlineLabel",
2020
- fontRef: { color: "tx1 lumMod 65 lumOff 35" },
2021
- defRPr: {
2022
- size: 9,
2023
- kern: 12
2024
- }
2025
- },
2026
- {
2027
- type: "upBar",
2028
- fontRef: { color: "tx1" },
2029
- fill: {
2030
- type: "solid",
2031
- color: "lt1"
2032
- },
2033
- stroke: {
2034
- width: .75,
2035
- cap: "flat",
2036
- cmpd: "sng",
2037
- algn: "ctr",
2038
- round: !0,
2039
- fill: "tx1 lumMod 65 lumOff 35"
2040
- }
2041
- },
2042
- {
2043
- type: "valueAxis",
2044
- fontRef: { color: "tx1 lumMod 65 lumOff 35" },
2045
- defRPr: {
2046
- size: 9,
2047
- kern: 12
2048
- }
2049
- },
2050
- {
2051
- type: "wall",
2052
- fontRef: { color: "tx1" },
2053
- fill: { type: "none" },
2054
- stroke: {}
2055
- }
2056
- ]), fn = Object.freeze([
2057
- [0, 0],
2058
- [6e4, 0],
2059
- [8e4, 2e4],
2060
- [8e4, 0],
2061
- [6e4, 4e4],
2062
- [5e4, 0],
2063
- [7e4, 3e4],
2064
- [7e4, 0],
2065
- [5e4, 5e4]
2066
- ]), pn = [
2067
- new class extends F {
2068
- constructor() {
2069
- super({
2070
- kind: "workbook",
2071
- contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",
2072
- relTypeUri: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
2073
- path: "/xl/workbook.xml"
2074
- });
2075
- }
2076
- async emit(e, t) {
2077
- let n = t.getXMLWriter();
2078
- n.decl(), n.start("workbook", {
2079
- xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
2080
- "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
2081
- "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
2082
- "mc:Ignorable": "x15 xr xr6 xr10 xr2",
2083
- "xmlns:x15": "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main",
2084
- "xmlns:xr": "http://schemas.microsoft.com/office/spreadsheetml/2014/revision",
2085
- "xmlns:xr6": "http://schemas.microsoft.com/office/spreadsheetml/2016/revision6",
2086
- "xmlns:xr10": "http://schemas.microsoft.com/office/spreadsheetml/2016/revision10",
2087
- "xmlns:xr2": "http://schemas.microsoft.com/office/spreadsheetml/2015/revision2"
2088
- });
2089
- let r = /* @__PURE__ */ new Set(), i = e.getCalculation().getNamedFormulas().getItems();
2090
- for (let e = 0; e < i.length; e++) r.add(i[e].getName().toUpperCase());
2091
- let a = T(r), o = await e.toJSON({
2092
- ignoreData: !0,
2093
- ignoreResources: !0,
2094
- includeHeaderStyles: !0,
2095
- formulaTransform: a,
2096
- splitDirectBorders: !0
2097
- });
2098
- (function(e, t, n) {
2099
- let r = {};
2100
- n.getRuntime().isDate1904() && (r.date1904 = "1"), t.empty("workbookPr", r);
2101
- })(0, n, e), function(e, t, n, r) {
2102
- let i = r.protection;
2103
- if (!i) return;
2104
- let a = {};
2105
- Pe(i.password ?? {}, a, "workbook"), Pe(i.revisionsPassword ?? {}, a, "revisions"), i.structure && (a.lockStructure = "1"), i.windows && (a.lockWindows = "1"), i.revision && (a.lockRevision = "1"), t.empty("workbookProtection", a);
2106
- }(0, n, 0, o), function(e, t, n) {
2107
- t.start("bookViews");
2108
- let r = n.getView(), i = {};
2109
- r.isShowHorizontalScrollbar() || (i.showHorizontalScroll = "0"), r.isShowVerticalScrollbar() || (i.showVerticalScroll = "0"), r.isShowTabs() || (i.showSheetTabs = "0");
2110
- let a = r.getTabRatio();
2111
- a !== 600 && (i.tabRatio = a);
2112
- let o = n.getSelectedSheet().getIndex();
2113
- o !== 0 && (i.activeTab = "" + o), t.empty("workbookView", i), t.end("bookViews");
2114
- }(0, n, e, o.view), n.start("sheets");
2115
- let s = t.getSharedStates();
2116
- s.set("formulaTransform", a);
2117
- let c = e.getStrings().beginPersist();
2118
- s.set("persistStrings", c);
2119
- let l = new Fe();
2120
- s.set("metaCollector", l);
2121
- let u = new Ie(l, t.warn.bind(t));
2122
- s.set("persistRichTypes", u);
2123
- try {
2124
- let r = e.getSheets().getItems({ visibility: p.Visibility.VeryHidden }), i = o.sheets, a = e.getSelectedSheet(), l = r.length;
2125
- for (let e = 0; e < l; e++) {
2126
- let o = r[e], s = "" + (o.getIndex() + 1), l = {
2127
- name: o.getName(),
2128
- sheetId: s
2129
- }, u = o.getVisibility();
2130
- u === "hidden" ? l.state = "hidden" : u === "veryHidden" && (l.state = "veryHidden");
2131
- let d = i[e].sheet;
2132
- l["r:id"] = t.addPart("worksheet", {
2133
- model: o,
2134
- isSelected: a === o,
2135
- json: d,
2136
- persistStrings: c
2137
- }).relId, n.empty("sheet", l);
2138
- }
2139
- await t.waitEmit();
2140
- let u = e.getTheme();
2141
- t.addPart("theme", {
2142
- model: u,
2143
- json: o.theme
2144
- }), await t.waitEmit(), t.addPart("styles", {
2145
- styles: e.getStyles(),
2146
- theme: e.getTheme(),
2147
- json: o.styles
2148
- }), await t.waitEmit();
2149
- let d = await c.toJSONAsync();
2150
- d && d.length > 0 && (t.addPart("sharedStrings", {
2151
- model: d,
2152
- json: d
2153
- }), await t.waitEmit());
2154
- let f = s.get("persistRichTypes");
2155
- f?.hasAny() && (t.addPart("richValue", f), t.addPart("richValueStructure", f), t.addPart("richValueTypes", null), await t.waitEmit());
2156
- let m = s.get("metaCollector");
2157
- m?.hasAny() && (t.addPart("metadata", m), await t.waitEmit()), s.delete("persistRichTypes"), s.delete("metaCollector"), s.delete("persistStrings");
2158
- } catch (e) {
2159
- throw e;
2160
- } finally {
2161
- c.endPersist();
2162
- }
2163
- n.end("sheets"), function(e, t, n, r, i) {
2164
- let a = r.names, o = a ? a.length : 0;
2165
- if (o === 0) return;
2166
- let s = n.getCalculation().getNamedFormulas(), c = /* @__PURE__ */ new Map(), l = n.getSheets().getItems({ visibility: p.Visibility.VeryHidden });
2167
- for (let e = 0; e < l.length; e++) c.set(l[e].getName().toLowerCase(), e);
2168
- t.start("definedNames");
2169
- for (let n = 0; n < o; n++) {
2170
- let r = a[n], o = { name: r.name };
2171
- if (r.comment && (o.comment = r.comment), r.scope) {
2172
- let t = c.get(r.scope.toLowerCase());
2173
- t === void 0 ? e.warn(`Defined name '${r.name}' is scoped to unknown sheet '${r.scope}'; writing it as global.`) : o.localSheetId = "" + t;
2174
- }
2175
- r.hidden && (o.hidden = "1");
2176
- let l = r.ref, u = s.getItems({
2177
- name: r.name,
2178
- scope: r.scope ?? null
2179
- })[0];
2180
- u && (l = u.getExpression({ formulaTransform: i })), t.start("definedName", o), t.text(l), t.end("definedName");
2181
- }
2182
- t.end("definedNames");
2183
- }(t, n, e, o, a), function(e, t, n) {
2184
- let r = n.getCalculation().toJSON(), i = {}, a = (e, t) => {
2185
- let n = r[e];
2186
- typeof n == "boolean" && (i[t] = n ? "1" : "0");
2187
- };
2188
- if (r.calcMode) {
2189
- let e = Re[r.calcMode];
2190
- e && e !== "auto" && (i.calcMode = e);
2191
- }
2192
- a("fullCalcOnLoad", "fullCalcOnLoad"), a("calcOnSave", "calcOnSave"), a("calcCompleted", "calcCompleted"), a("fullPrecision", "fullPrecision"), a("forceFullCalc", "forceFullCalc"), a("concurrentCalc", "concurrentCalc"), r.refMode && (i.refMode = r.refMode), r.iterate && (i.iterate = "1"), r.maxIterations !== void 0 && (i.iterateCount = String(r.maxIterations)), r.maxIterateChange !== void 0 && (i.iterateDelta = String(r.maxIterateChange)), Object.keys(i).length !== 0 && t.empty("calcPr", i);
2193
- }(0, n, e), n.end("workbook"), n.close();
2194
- }
2195
- }(),
2196
- new class extends F {
2197
- constructor() {
2198
- super({
2199
- kind: "worksheet",
2200
- contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",
2201
- relTypeUri: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",
2202
- path: () => "/xl/worksheets/sheet{n}.xml"
2203
- });
2204
- }
2205
- async emit(t, a) {
2206
- let o = a.getXMLWriter(), l = t.model, u = t.json;
2207
- o.decl(), o.start("worksheet", {
2208
- xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
2209
- "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
2210
- "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
2211
- "mc:Ignorable": "x14ac",
2212
- "xmlns:x14ac": "http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"
2213
- }), function(e, t, n) {
2214
- let r = n.getTabColor();
2215
- r && (t.start("sheetPr"), r && U(t, n.getStyles().getTheme(), r, "tabColor", !1), t.end("sheetPr"));
2216
- }(0, o, l), function(e, t, r, i) {
2217
- let a = r.getUsedRange({ features: [] }), o = a ? a.getCoords() : null, s = 1048575, c = i.directStyles, l = c ? c.length : 0;
2218
- for (let e = 0; e < l; e++) {
2219
- let t = r.getRange(c[e][0]).getCoords();
2220
- if (t.colEnd === 16383) {
2221
- let e = o?.colStart ?? 0;
2222
- t = {
2223
- ...t,
2224
- colStart: e,
2225
- colEnd: e
2226
- };
2227
- }
2228
- if (t.rowEnd === s) {
2229
- let e = o?.rowStart ?? 0;
2230
- t = {
2231
- ...t,
2232
- rowStart: e,
2233
- rowEnd: e
2234
- };
2235
- }
2236
- o = n.unionRanges(o, t);
2237
- }
2238
- let u = i.merges, d = u ? u.length : 0;
2239
- for (let e = 0; e < d; e++) {
2240
- let t = r.getRange(u[e]).getCoords();
2241
- t.colEnd === 16383 && (t = { ...o }, t.colStart = o?.colStart ?? 0, t.colEnd = t.colStart), t.rowEnd === s && (t = { ...t }, t.rowStart = o?.rowStart ?? 0, t.rowEnd = t.rowStart), o = n.unionRanges(o, t);
2242
- }
2243
- let f = "A1";
2244
- o && (a = r.getRange(o), f = o.colStart === o.colEnd && o.rowStart === o.rowEnd ? a.getAddress() : `${a.getIntersect({
2245
- colStart: o.colStart,
2246
- rowStart: o.rowStart,
2247
- colEnd: o.colStart,
2248
- rowEnd: o.rowStart
2249
- }).getAddress()}:${a.getIntersect({
2250
- colStart: o.colEnd,
2251
- rowStart: o.rowEnd,
2252
- colEnd: o.colEnd,
2253
- rowEnd: o.rowEnd
2254
- }).getAddress()}`), t.empty("dimension", { ref: f });
2255
- }(0, o, l, u), function(e, t, n, r, i) {
2256
- let a = n.getView(), o = a.getTopLeft(), s = n.getRowHeaders().getIndex(o.top), l = n.getColumnHeaders().getIndex(o.left), u = c.cellToString({
2257
- colIndex: l,
2258
- rowIndex: s
2259
- });
2260
- t.start("sheetViews");
2261
- let d = {};
2262
- a.isShowFormulas() && (d.showFormulas = "1"), a.isShowColumnGridlines() || a.isShowRowGridlines() || (d.showGridLines = "0"), a.isShowColumnHeaders() || a.isShowRowHeaders() || (d.showRowColHeaders = "0"), a.isShowZeros() || (d.showZeros = "0"), a.isRightToLeft() && (d.rightToLeft = "1"), i && (d.tabSelected = "1"), u !== "A1" && (d.topLeftCell = u);
2263
- let f = a.getZoomScale();
2264
- f !== 100 && (d.zoomScale = f, d.zoomScaleNormal = f);
2265
- let p = a.getGridLineColor();
2266
- if (p) {
2267
- d.defaultGridColor = "0";
2268
- let e = p.toRGBA(), t = e.red, r = e.green, i = e.blue, a = n.getStyles().getIndexedColors(), o = a.length, s = 0, c = Number.MAX_VALUE;
2269
- for (let e = 0; e < o; e++) {
2270
- let n = a[e].toRGBA(), o = (t - n.red) ** 2 + (r - n.green) ** 2 + (i - n.blue) ** 2;
2271
- o < c && (c = o, s = e);
2272
- }
2273
- d.colorId = "" + s;
2274
- }
2275
- d.workbookViewId = "0";
2276
- let m = n.getSelection().getCoords(), h = c.cellToString(m.cell), g = {}, _ = a.getFreezePanes(), v = _.coords ?? {}, y = v.colIndex ?? 0, b = v.rowIndex ?? 0;
2277
- if (y > 0 || b > 0) {
2278
- let e = _.topLeft ?? {}, r = e.top ?? 0, i = e.left ?? 0, a = n.getRowHeaders().getIndex(r), s = n.getColumnHeaders().getIndex(i), l = y - s, u = b - a, f = Math.max(y, n.getColumnHeaders().getIndex(o.left + n.getColumnHeaders().getOffset(y) - i)), p = Math.max(b, n.getRowHeaders().getIndex(o.top + n.getRowHeaders().getOffset(b) - r)), m = c.cellToString({
2279
- colIndex: s,
2280
- rowIndex: a
2281
- });
2282
- m === "A1" ? delete d.topLeftCell : d.topLeftCell = m, t.start("sheetView", d);
2283
- let h = {};
2284
- if (l > 0 && (h.xSplit = l), u > 0 && (h.ySplit = u), h.topLeftCell = c.cellToString({
2285
- colIndex: f,
2286
- rowIndex: p
2287
- }), h.state = "frozen", y === 0) {
2288
- h.activePane = "bottomLeft", t.empty("pane", h);
2289
- let e = c.cellToString({
2290
- colIndex: f,
2291
- rowIndex: a
2292
- });
2293
- e !== "A1" && t.empty("selection", {
2294
- activeCell: e,
2295
- sqref: e
2296
- }), g.pane = "bottomLeft";
2297
- } else if (b === 0) {
2298
- h.activePane = "topRight", t.empty("pane", h);
2299
- let e = c.cellToString({
2300
- colIndex: s,
2301
- rowIndex: p
2302
- });
2303
- e !== "A1" && t.empty("selection", {
2304
- activeCell: e,
2305
- sqref: e
2306
- }), g.pane = "topRight";
2307
- } else {
2308
- h.activePane = "bottomRight", t.empty("pane", h), m !== "A1" && t.empty("selection", {
2309
- activeCell: m,
2310
- sqref: m
2311
- });
2312
- let e = c.cellToString({
2313
- colIndex: f,
2314
- rowIndex: a
2315
- });
2316
- t.empty("selection", {
2317
- pane: "topRight",
2318
- activeCell: e,
2319
- sqref: e
2320
- });
2321
- let n = c.cellToString({
2322
- colIndex: s,
2323
- rowIndex: p
2324
- });
2325
- t.empty("selection", {
2326
- pane: "bottomLeft",
2327
- activeCell: n,
2328
- sqref: n
2329
- }), g.pane = "bottomRight";
2330
- }
2331
- } else t.start("sheetView", d);
2332
- g.activeCell = h;
2333
- let x = m.ranges, S = x ? x.length : 0;
2334
- if (S > 0) {
2335
- let e = "";
2336
- for (let t = 0; t < S; t++) {
2337
- let n = x[t];
2338
- t > 0 && (e += " "), e += c.rangeToString(n);
2339
- }
2340
- g.sqref = e, (m.rangeIndex ?? 0) > 0 && (g.activeCellId = "" + m.rangeIndex);
2341
- } else h === "A1" ? g = null : g.sqref = h;
2342
- g && t.empty("selection", g), t.end("sheetView"), t.end("sheetViews");
2343
- }(0, o, l, 0, t.isSelected), function(e, t, n, r) {
2344
- let i = r.defaultColSize, a = r.defaultRowSize, o = {};
2345
- i !== void 0 && (o.defaultColWidth = i), o.defaultRowHeight = a ?? .75 * n.getRowHeaders().getDefaultSize(), a !== void 0 && (o.customHeight = "1"), o["x14ac:dyDescent"] = "0.25", t.empty("sheetFormatPr", o);
2346
- }(0, o, l, u), function(e, t, n, r) {
2347
- let i = r.cols ? c.refsToRuns(r.cols, !0) : null, a = i ? i.length : 0;
2348
- n.getEntireRange().getColumnEnd();
2349
- let o = n.getColumnHeaders().getDefaultSizeNative();
2350
- if (a > 0) {
2351
- t.start("cols");
2352
- for (let e = 0; e < a; e++) {
2353
- let n = i[e], r = n.min + 1, a = 16384;
2354
- if (r > a) continue;
2355
- let s = {
2356
- min: r,
2357
- max: Math.min(n.max + 1, a)
2358
- }, c = n.value, l = c.sz;
2359
- l === void 0 ? s.width = o : l !== 0 && (s.width = Math.round(256 * l) / 256), c.s && (s.style = c.s), c.h !== void 0 && (s.hidden = 1), c.csz && (s.customWidth = 1), c.l !== void 0 && (s.outlineLevel = c.l), c.cl !== void 0 && (s.collapsed = 1), t.empty("col", s);
2360
- }
2361
- t.end("cols");
2362
- }
2363
- }(0, o, l, u), function(e, t, n, a, o) {
2364
- let s = e.getSharedStates(), l = s.get("persistStrings"), u = s.get("metaCollector"), d = s.get("persistRichTypes"), f = s.get("formulaTransform"), p = 0, m = 0, h = n.getUsedRange(), g = 0, _ = a.rows ? c.refsToRuns(a.rows, !1) : null, y = _ ? _.length : 0, b = _?.[y - 1]?.max ?? -1, x = a.cols ? c.refsToRuns(a.cols, !0) : null, C = x ? x.length : 0, te = x?.[C - 1]?.max ?? -1;
2365
- if (h || y > 0) {
2366
- let s = .75, h = a.defaultRowSize ?? n.getRowHeaders().getDefaultSize() * s, y = n.getStyles().getNormal().getBestFit().height * s, C = (e, t) => {
2367
- let n = Mt;
2368
- if (n.r = "" + (e + 1), n.s = void 0, n.customFormat = void 0, n.hidden = void 0, n.ht = void 0, n.customHeight = void 0, n.outlineLevel = void 0, n.collapsed = void 0, !t) return n;
2369
- let r = t.value;
2370
- r.s !== void 0 && (n.s = "" + r.s, n.customFormat = "1"), r.h && (n.hidden = "1");
2371
- let i = r.csz ?? !1, a = r.sz ?? h;
2372
- return (a !== y || i) && (n.ht = "" + a), i && (n.customHeight = "1"), r.l !== void 0 && (n.outlineLevel = "" + r.l), r.cl !== void 0 && (n.collapsed = "" + r.cl), n;
2373
- }, w = 0, T = _?.[w] ?? null, E = T?.min ?? 2 ** 53 - 1, D = T?.max ?? 2 ** 53 - 1, O = T?.value?.s, k = -1, A = 0, j = x?.[A] ?? null, M = j?.min ?? 2 ** 53 - 1, N = j?.max ?? 2 ** 53 - 1, P = j?.value?.s, se = (e, n = !1) => {
2374
- if (k !== e) {
2375
- for (k !== -1 && (t.end("row"), A !== 0 && (A = 0, j = x?.[A] ?? null, M = j?.min ?? 2 ** 53 - 1, N = j?.max ?? 2 ** 53 - 1, P = j?.value?.s)); k + 1 <= e;) {
2376
- k++, T && k > D && (T = _[++w] ?? null, T ? (E = T.min, D = T.max, O = T.value?.s) : (E = 2 ** 53 - 1, D = 2 ** 53 - 1, O = void 0)), k < E && k < e && (k = T ? Math.min(E, e) : e);
2377
- let r = k < e || n && k === e, i = C(k, T && k >= E && k <= D ? T : null);
2378
- r ? t.empty("row", i) : t.start("row", i);
2379
- }
2380
- if (e < k) {
2381
- let n = C(e, null);
2382
- t.start("row", n);
2383
- }
2384
- }
2385
- };
2386
- t.setValidationDisabled(!0), t.start("sheetData");
2387
- let F = [];
2388
- F.push(((e, t, n) => {
2389
- if (!n) return [];
2390
- let r = 0;
2391
- for (let i = 0; i < n.length; i++) {
2392
- let a = n[i][0], o = t.getRange(a).getCoords();
2393
- if (r += (o.rowEnd - o.rowStart + 1) * (o.colEnd - o.colStart + 1), r > xt) return e.warn(`Direct styles cover more than ${xt} cells; not writing the styles from '${a}' on. A range that size belongs in a column or row style.`), n.slice(0, i);
2394
- }
2395
- return n;
2396
- })(e, n, a.directStyles));
2397
- let ce = a.formulas, I = ce ? ce.length : 0;
2398
- if (I > 0) {
2399
- let e = /* @__PURE__ */ new Map();
2400
- if (o.names.size > 0 && a.formulaArray) for (let t of a.formulaArray) try {
2401
- let r = n.getRange(t[0]).getCoords();
2402
- e.set(`${r.rowStart},${r.colStart}`, r);
2403
- } catch {}
2404
- let t = [];
2405
- if (a.formulaArray) for (let e of a.formulaArray) try {
2406
- t.push(n.getRange(e[0]).getCoords());
2407
- } catch {}
2408
- let r = (e) => {
2409
- for (let n = 0; n < t.length; n++) {
2410
- let r = t[n];
2411
- if (r.rowStart <= e.rowEnd && r.rowEnd >= e.rowStart && r.colStart <= e.colEnd && r.colEnd >= e.colStart) return !0;
2412
- }
2413
- return !1;
2414
- }, i = ae(() => n.getCalculation()), s = (e) => {
2415
- if (!e) return;
2416
- let t;
2417
- return e.getExpression({ formulaTransform: (e, n) => {
2418
- n === void 0 && (t = e);
2419
- } }), t;
2420
- }, l = [];
2421
- for (let t = 0; t < I; t++) {
2422
- let a = ce[t];
2423
- try {
2424
- let u = a[0], d = n.getRange(u), p = d.getCoords(), m = a[1], h = null, _ = s(d.getCell().getFormula()), y = !!_ && ie(_, i), b = oe(_);
2425
- if (o.affects(t)) {
2426
- h = null, y = !1;
2427
- let t = (e, t, n) => {
2428
- let r = {
2429
- rowStart: e,
2430
- colStart: t,
2431
- rowEnd: e,
2432
- colEnd: t
2433
- };
2434
- l.push([r, {
2435
- coords: r,
2436
- formula: n,
2437
- sharedId: null,
2438
- ref: c.rangeToString(r),
2439
- isDynamicRange: !1,
2440
- isWrapped: !0
2441
- }]);
2442
- }, r = e.get(`${p.rowStart},${p.colStart}`), i = r !== void 0 && (r.rowEnd > r.rowStart || r.colEnd > r.colStart), a = !1;
2443
- if (i) {
2444
- let e = v(m, d.getCell().getValue());
2445
- if (e !== null) for (let i = r.rowStart; i <= r.rowEnd; i++) for (let o = r.colStart; o <= r.colEnd; o++) {
2446
- if (i === r.rowStart && o === r.colStart) {
2447
- t(i, o, e), a = !0;
2448
- continue;
2449
- }
2450
- let s = S(n.getRange(c.rangeToString({
2451
- rowStart: i,
2452
- colStart: o,
2453
- rowEnd: i,
2454
- colEnd: o
2455
- })).getCell().getValue());
2456
- s !== null && t(i, o, s);
2457
- }
2458
- } else {
2459
- let e = d.getCells();
2460
- for (let n = 0; n < e.length; n++) {
2461
- let r = e[n];
2462
- for (let e = 0; e < r.length; e++) {
2463
- let i = r[e], o = v(i.getFormula()?.getExpression() ?? m, i.getValue());
2464
- o !== null && (t(p.rowStart + n, p.colStart + e, o), a = !0);
2465
- }
2466
- }
2467
- }
2468
- if (a) continue;
2469
- }
2470
- let x, ee = m.indexOf("!") !== -1 || m.indexOf("[") !== -1;
2471
- if (y || d.isSingleCell() || ee || r(p) || (h = "" + g++), h === null && !d.isSingleCell()) {
2472
- x = [];
2473
- let e = d.getCells();
2474
- for (let t = 0; t < e.length; t++) {
2475
- let n = e[t], r = Array(n.length);
2476
- for (let e = 0; e < n.length; e++) t === 0 && e === 0 || (r[e] = n[e].getFormula()?.getExpression({ formulaTransform: f }) ?? void 0);
2477
- x.push(r);
2478
- }
2479
- }
2480
- let C = [p, {
2481
- coords: p,
2482
- formula: m,
2483
- sharedId: h,
2484
- ref: u,
2485
- isDynamicRange: y,
2486
- isExcelVolatile: b,
2487
- memberTexts: x
2488
- }];
2489
- l.push(C);
2490
- } catch (e) {
2491
- console.warn(`Failed to parse formula: ${a[1]}`, e);
2492
- continue;
2493
- }
2494
- }
2495
- F.push(l);
2496
- } else F.push([]);
2497
- let le = a.volatile, L = le ? le.length : 0;
2498
- if (L > 0) {
2499
- let e = Array(L);
2500
- for (let t = 0; t < L; t++) {
2501
- let r = le[t];
2502
- try {
2503
- e[t] = [n.getRange(r).getCoords(), !0];
2504
- } catch (e) {
2505
- console.warn(`Failed to parse volatile: ${r}`, e);
2506
- continue;
2507
- }
2508
- }
2509
- F.push(e);
2510
- } else F.push([]);
2511
- let R = a.formulaArray, z = R ? R.length : 0;
2512
- if (z > 0) {
2513
- let e = Array(z);
2514
- for (let t = 0; t < z; t++) {
2515
- let r = R[t];
2516
- try {
2517
- let i = r[0];
2518
- e[t] = [n.getRange(i).getCoords(), {
2519
- ref: i,
2520
- kind: r[1] ?? "dynamic"
2521
- }];
2522
- } catch (e) {
2523
- console.warn(`Failed to parse formula array: ${r}`, e);
2524
- continue;
2525
- }
2526
- }
2527
- F.push(e);
2528
- } else F.push([]);
2529
- n.getEntireRange().forEach((n, a) => {
2530
- let o = a.getCoords(), s = o.rowIndex, c = o.colIndex;
2531
- k !== s && se(s);
2532
- let f = a.getInjectedReference(0);
2533
- if (f === void 0 && O !== void 0 && s >= E && s <= D && (f = O), f === void 0) {
2534
- for (; c <= te && c > N;) A++, j = x?.[A] ?? null, M = j?.min ?? 2 ** 53 - 1, N = j?.max ?? 2 ** 53 - 1, P = j?.value?.s;
2535
- P !== void 0 && c >= M && c <= N && (f = P);
2536
- }
2537
- let h = a.getType(), g = null;
2538
- I > 0 && (g = a.getInjectedReference(1) ?? null);
2539
- let _ = !1;
2540
- L > 0 && (_ = a.getInjectedReference(2) ?? !1);
2541
- let v = null;
2542
- z > 0 && (v = a.getInjectedReference(3) ?? null);
2543
- let y = v?.kind === "dynamicSpillError", b = v?.kind === "static", S = jt;
2544
- S.r = a.getAddress(), S.s = void 0, S.t = void 0, S.cm = void 0, S.vm = void 0, f !== void 0 && f !== 0 && (S.s = "" + f);
2545
- let C = null, w = null;
2546
- switch (h) {
2547
- case i.Boolean:
2548
- C = n ? "1" : "0", w = "b";
2549
- break;
2550
- case i.Error:
2551
- let e = n.getCode();
2552
- if (w = "e", e > 7) C = r.BuiltIn.Value.getLabel(), S.vm = "" + d.add(n);
2553
- else if (e < 1) {
2554
- let e;
2555
- w = "s", g ? (e = "=" + g.formula, g = null) : e = "" + n.getLabel(), C = "" + l.add(e), p++;
2556
- } else C = "" + n.getLabel();
2557
- break;
2558
- case i.Number:
2559
- C = "" + n, w = null;
2560
- break;
2561
- case i.String:
2562
- C = n, g ? (w = "str", C = n) : (w = "s", C = "" + l.add(C), p++);
2563
- break;
2564
- case i.RichData: w = "e", C = r.BuiltIn.Value.getLabel(), S.vm = "" + d.add(n);
2565
- }
2566
- w && (S.t = w);
2567
- let T = !g?.isWrapped && (v !== null || (g?.isDynamicRange ?? !1));
2568
- if (g !== null || C !== null) {
2569
- if (T && g !== null && !b && (S.cm = "" + u.registerArrayCell(y)), t.start("c", S), g) {
2570
- let e, n = g.memberTexts?.[s - g.coords.rowStart]?.[c - g.coords.colStart] ?? g.formula, r = null, i = g.sharedId;
2571
- if (i) {
2572
- e = Pt;
2573
- let t = g.coords;
2574
- t.colStart === c && t.rowStart === s ? (e.ref = g.ref, e.si = i, r = g.formula) : (e.ref = void 0, e.si = i);
2575
- } else T ? (e = Ft, e.aca = y ? "1" : void 0, e.ref = y ? S.r : v?.ref ?? S.r, r = n) : (e = Nt, r = n);
2576
- e.ca = _ || y || g.isExcelVolatile ? "1" : void 0, r ? (t.start("f", e), t.text(r), t.end("f")) : t.empty("f", e);
2577
- }
2578
- C !== null && (w === "str" && C ? (t.start("v", ee.test(C) ? re : void 0), t.text(ne(C))) : (t.start("v"), C && t.text(C)), t.end("v")), t.end("c");
2579
- } else m++ < xt ? t.empty("c", S) : m === 1048577 && e.warn(`Reached ${xt} style-only cells at '${S.r}'; not writing the rest.`);
2580
- }, {
2581
- injectReferences: F,
2582
- features: []
2583
- }), k !== -1 && k >= b ? t.end("row") : se(b, !0), t.end("sheetData"), t.setValidationDisabled(!1);
2584
- } else t.empty("sheetData");
2585
- if (p > 0) {
2586
- let e = s.get("stringsCount") ?? 0;
2587
- s.set("stringsCount", e + p);
2588
- }
2589
- }(a, o, l, u, await (async (e, t) => {
2590
- let n = t ? t.length : 0;
2591
- if (n === 0) return bt;
2592
- let r = /* @__PURE__ */ new Set(), i = Array(n);
2593
- for (let a = 0; a < n; a++) {
2594
- i[a] = null;
2595
- try {
2596
- let n = e.getRange(t[a][0]).getCell().getFormula()?.getTokens();
2597
- if (!n) continue;
2598
- let o = null;
2599
- for (let e = 0; e < n.length; e++) {
2600
- let t = n[e], i = null;
2601
- t.type === "function" ? i = String(t.value) : t.type === "named" && n[e + 1]?.type === "paren" && n[e + 1].value === "(" && (i = String(t.value?.name ?? "")), i && (i = i.toUpperCase(), r.add(i), (o ??= /* @__PURE__ */ new Set()).add(i));
2602
- }
2603
- i[a] = o;
2604
- } catch {}
2605
- }
2606
- let a = e.getWorkbook();
2607
- if (!a) return bt;
2608
- let o = await te(a, r);
2609
- return o.size === 0 ? bt : {
2610
- names: o,
2611
- perFormula: i,
2612
- affects: (e) => {
2613
- let t = i[e];
2614
- if (!t) return !1;
2615
- for (let e of t) if (o.has(e)) return !0;
2616
- return !1;
2617
- }
2618
- };
2619
- })(l, u.formulas)), function(e, t, n, r) {
2620
- let i = r.protection;
2621
- if (!i) return;
2622
- let a = {};
2623
- Pe(i.password ?? {}, a), a.sheet = "1";
2624
- let o = (e, t, n) => {
2625
- let r = i[e];
2626
- r !== void 0 && r !== t && (a[n ?? e] = r ? "1" : "0");
2627
- };
2628
- o("objects", "0"), o("scenarios", "0"), o("formatCells", "0"), o("formatColumns", "0"), o("formatRows", "0"), o("insertColumns", "0"), o("insertRows", "0"), o("insertHyperlinks", "0"), o("deleteColumns", "0"), o("deleteRows", "0"), o("selectLockedCells", "1"), o("sort", "0"), o("autoTable", "0", "autoFilter"), o("pivotTables", "0"), o("selectUnlockedCells", "1"), t.empty("sheetProtection", a);
2629
- }(0, o, 0, u), function(e, t, n, r) {
2630
- let i = r.protectedRanges, a = i ? i.length : 0;
2631
- if (a === 0) return;
2632
- let o = [];
2633
- for (let t = 0; t < a; t++) {
2634
- let n, r, a = i[t];
2635
- Array.isArray(a) ? (n = a[0], r = a[1]) : (n = a.r, r = a.v);
2636
- let s = Ot(n);
2637
- if (!s || !r) {
2638
- e.warn("Skipping protectedRange with no range.");
2639
- continue;
2640
- }
2641
- if (!r.name) {
2642
- e.warn("Skipping protectedRange with no name.");
2643
- continue;
2644
- }
2645
- let c = {};
2646
- Pe(r.password ?? {}, c), c.sqref = s, c.name = r.name, r.securityDescriptor && (c.securityDescriptor = r.securityDescriptor), o.push(c);
2647
- }
2648
- if (o.length !== 0) {
2649
- t.start("protectedRanges");
2650
- for (let e = 0; e < o.length; e++) t.empty("protectedRange", o[e]);
2651
- t.end("protectedRanges");
2652
- }
2653
- }(a, o, 0, u);
2654
- let d = u.autoTable;
2655
- if (d) {
2656
- let e, t = d;
2657
- e = Array.isArray(t) ? t[1] : t.v, gt(a, o, l.getAutoTable(), e, !0);
2658
- }
2659
- (function(e, t, n, r) {
2660
- let i = r.merges ? r.merges.length : 0;
2661
- if (i > 0) {
2662
- t.start("mergeCells", { count: i });
2663
- for (let e = 0; e < i; e++) {
2664
- let n = r.merges[e], i = typeof n == "string" ? n : c.rangeToString(n);
2665
- t.empty("mergeCell", { ref: i });
2666
- }
2667
- t.end("mergeCells");
2668
- }
2669
- })(0, o, 0, u);
2670
- let f = function(t, n, r, i) {
2671
- let a = [], o = i.conditionals, c = o ? o.length : 0;
2672
- if (c === 0) return a;
2673
- let l = t.getSharedStates(), u = l.get(rt);
2674
- u || (u = new nt(), l.set(rt, u));
2675
- let d = r.getStyles().getTheme(), f = null, p = 0;
2676
- for (let r = 0; r < c; r++) {
2677
- let i, c, l = o[r];
2678
- Array.isArray(l) ? (i = l[0], c = l[1]) : (i = l.r, c = l.v);
2679
- let m = Ot(i);
2680
- if (!m || !c) {
2681
- t.warn("Skipping conditionalFormatting with no range.");
2682
- continue;
2683
- }
2684
- let h = c.scale, g = h ? { type: h.type } : j(c.condition, Dt(m), (e) => t.warn(e));
2685
- g ? h?.type === s.ScaleType.IconSet && Tt(h) ? (p++, a.push({
2686
- guid: C(e.uuidV4),
2687
- sqref: m,
2688
- priority: p,
2689
- scale: h
2690
- })) : h || !At(g) ? (m !== f && (f !== null && n.end("conditionalFormatting"), n.start("conditionalFormatting", {
2691
- sqref: m,
2692
- pivot: c.pivot ? "1" : void 0
2693
- }), f = m), p++, Et(t, n, d, c, g, m, p, u, a)) : (p++, a.push({
2694
- guid: C(e.uuidV4),
2695
- sqref: m,
2696
- priority: p,
2697
- rule: g,
2698
- style: c.style,
2699
- stopIfTrue: c.stopIfTrue
2700
- })) : c.condition || t.warn("Skipping conditional format with neither a condition nor a scale.");
2701
- }
2702
- return f !== null && n.end("conditionalFormatting"), a;
2703
- }(a, o, l, u), p = function(e, t, n, r) {
2704
- let i = [], a = r.validations, o = a ? a.length : 0;
2705
- if (o === 0) return i;
2706
- let s = [];
2707
- for (let t = 0; t < o; t++) {
2708
- let n, r, o = a[t];
2709
- Array.isArray(o) ? (n = o[0], r = o[1]) : (n = o.r, r = o.v);
2710
- let c = Ot(n);
2711
- if (!c || !r) {
2712
- e.warn?.("Skipping dataValidation with no range.");
2713
- continue;
2714
- }
2715
- r.ext && e.warn("DataValidation extension payload is not written to xlsx; it will be lost.");
2716
- let { type: l, operator: u, formula1: d, formula2: f } = b(r.condition, (t) => e.warn(t)) ?? {}, p = {
2717
- type: l,
2718
- operator: u,
2719
- allowBlank: Z(r.condition?.includeBlanks ?? !1),
2720
- showDropDown: r.hideDropdown ? "1" : void 0,
2721
- showInputMessage: Z(r.showPromptMessage),
2722
- showErrorMessage: Z(r.showAlertMessage),
2723
- errorStyle: r.alertStyle ?? "information",
2724
- errorTitle: r.alertTitle,
2725
- error: r.alert,
2726
- promptTitle: r.promptTitle,
2727
- prompt: r.prompt,
2728
- imeMode: r.imeMode
2729
- };
2730
- kt(d) || kt(f) ? i.push({
2731
- attrs: p,
2732
- formula1: d,
2733
- formula2: f,
2734
- sqref: c
2735
- }) : (p.sqref = c, s.push({
2736
- attrs: p,
2737
- formula1: d,
2738
- formula2: f
2739
- }));
2740
- }
2741
- if (s.length === 0) return i;
2742
- t.start("dataValidations", { count: s.length });
2743
- for (let e = 0; e < s.length; e++) {
2744
- let { attrs: n, formula1: r, formula2: i } = s[e];
2745
- r !== void 0 || i !== void 0 ? (t.start("dataValidation", n), r !== void 0 && (t.start("formula1"), t.text(r), t.end("formula1")), i !== void 0 && (t.start("formula2"), t.text(i), t.end("formula2")), t.end("dataValidation")) : t.empty("dataValidation", n);
2746
- }
2747
- return t.end("dataValidations"), i;
2748
- }(a, o, 0, u);
2749
- (function(e, t, n, r) {
2750
- let i = r.hyperlinks, a = i ? i.length : 0;
2751
- if (a !== 0) {
2752
- t.start("hyperlinks");
2753
- for (let n = 0; n < a; n++) {
2754
- let r, a, o = i[n];
2755
- Array.isArray(o) ? (a = o[0], r = o[1]) : (a = o.r, r = o.v), typeof r == "string" && (r = { address: r });
2756
- let s = r.address ?? "", c = s.indexOf("#"), l = c === -1 ? s : s.substring(0, c), u = c === -1 ? "" : s.substring(c + 1), d = {};
2757
- d.ref = a, l && (d["r:id"] = e.addExternal("http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", l).relId), u && (d.location = u), r.screenTip && (d.tooltip = r.screenTip), t.empty("hyperlink", d);
2758
- }
2759
- t.end("hyperlinks");
2760
- }
2761
- })(a, o, 0, u), function(e, t, n, r) {
2762
- let i = r.pageMargins;
2763
- t.empty("pageMargins", {
2764
- left: i?.left ?? .7,
2765
- right: i?.right ?? .7,
2766
- top: i?.top ?? .75,
2767
- bottom: i?.bottom ?? .75,
2768
- header: i?.header ?? .3,
2769
- footer: i?.footer ?? .3
2770
- });
2771
- }(0, o, 0, u), function(e, t, n, r) {
2772
- let i = r.movables;
2773
- if ((i ? i.length : 0) === 0 || !i.some((e) => {
2774
- let t = e.content?.type;
2775
- if (t === "picture" || t === "chart") return !0;
2776
- if (t === "shape") {
2777
- let t = e.content?.json?.type;
2778
- return t === "sp" || t === "cxnSp";
2779
- }
2780
- return !1;
2781
- })) return;
2782
- let a = n.getMovables().getItems(), o = e.addPart("drawing", {
2783
- sheet: n,
2784
- movables: a,
2785
- jsonMovables: i,
2786
- resources: n.getResources()
2787
- });
2788
- t.empty("drawing", { "r:id": o.relId });
2789
- }(a, o, l, u), function(e, t, n, r) {
2790
- let i = r.tables, a = i ? i.length : 0;
2791
- if (a === 0) return;
2792
- let o = n.getTables().getItems();
2793
- t.start("tableParts", { count: a });
2794
- for (let n = 0; n < a; n++) {
2795
- let r, a, s = i[n];
2796
- Array.isArray(s) ? (a = s[0], r = s[1]) : (a = s.r, r = s.v);
2797
- let c = e.addPart("table", {
2798
- json: r,
2799
- model: o[n],
2800
- ref: a
2801
- }), l = {};
2802
- l["r:id"] = c.relId, t.empty("tablePart", l);
2803
- }
2804
- t.end("tableParts");
2805
- }(a, o, l, u), function(e, t, n, r, i) {
2806
- if (r.length === 0 && i.length === 0) return;
2807
- let a = n.getStyles(), o = a.getTheme();
2808
- if (t.start("extLst"), r.length > 0) {
2809
- t.start("ext", {
2810
- uri: w,
2811
- "xmlns:x14": se
2812
- }), t.start("x14:conditionalFormattings");
2813
- for (let e = 0; e < r.length; e++) {
2814
- let { guid: n, sqref: i, priority: c, scale: l, rule: u, style: d, stopIfTrue: f } = r[e];
2815
- if (t.start("x14:conditionalFormatting", { "xmlns:xm": "http://schemas.microsoft.com/office/excel/2006/main" }), l) if (l.type === s.ScaleType.DataBar) {
2816
- t.start("x14:cfRule", {
2817
- type: "dataBar",
2818
- id: n
2819
- }), t.start("x14:dataBar", {
2820
- minLength: l.minLength,
2821
- maxLength: l.maxLength,
2822
- gradient: l.gradient ? void 0 : "0",
2823
- border: l.borderColor ? "1" : void 0,
2824
- direction: l.direction,
2825
- negativeBarColorSameAsPositive: l.negativeFillColor ? "0" : "1",
2826
- negativeBarBorderColorSameAsPositive: l.negativeBorderColor ? "0" : void 0,
2827
- axisPosition: l.axisPosition
2828
- });
2829
- let e = l.stops ?? [];
2830
- if (e.length === 0) Ct(t, { type: s.ColorStopType.AutoMin }), Ct(t, { type: s.ColorStopType.AutoMax });
2831
- else for (let n = 0; n < e.length; n++) Ct(t, e[n]);
2832
- l.borderColor && U(t, o, l.borderColor, "x14:borderColor"), l.negativeFillColor && U(t, o, l.negativeFillColor, "x14:negativeFillColor"), l.negativeBorderColor && U(t, o, l.negativeBorderColor, "x14:negativeBorderColor"), l.axisColor && U(t, o, l.axisColor, "x14:axisColor"), t.end("x14:dataBar"), t.end("x14:cfRule");
2833
- } else {
2834
- t.start("x14:cfRule", {
2835
- type: "iconSet",
2836
- priority: c,
2837
- id: n
2838
- }), t.start("x14:iconSet", {
2839
- iconSet: l.iconSet,
2840
- reverse: Z(l.reverse),
2841
- showValue: Z(l.showValue),
2842
- custom: (l.icon?.length ?? 0) > 0 ? "1" : void 0
2843
- });
2844
- let e = l.stops ?? [];
2845
- for (let n = 0; n < e.length; n++) Ct(t, e[n]);
2846
- let r = l.icon ?? [];
2847
- for (let e = 0; e < r.length; e++) t.empty("x14:cfIcon", {
2848
- iconSet: r[e].set,
2849
- iconId: r[e].id
2850
- });
2851
- t.end("x14:iconSet"), t.end("x14:cfRule");
2852
- }
2853
- else {
2854
- t.start("x14:cfRule", {
2855
- type: u.type,
2856
- priority: c,
2857
- stopIfTrue: Z(f),
2858
- aboveAverage: Z(u.aboveAverage),
2859
- equalAverage: Z(u.equalAverage),
2860
- stdDev: u.stdDev,
2861
- bottom: Z(u.bottom),
2862
- percent: Z(u.percent),
2863
- rank: u.rank,
2864
- operator: u.operator,
2865
- text: u.text,
2866
- timePeriod: u.timePeriod,
2867
- id: n
2868
- });
2869
- let e = u.formulas ?? [];
2870
- for (let n = 0; n < e.length; n++) t.start("xm:f"), t.text(e[n]), t.end("xm:f");
2871
- d && Object.keys(d).length > 0 && dt(0, t, d, a, o, "x14:dxf"), t.end("x14:cfRule");
2872
- }
2873
- t.start("xm:sqref"), t.text(i), t.end("xm:sqref"), t.end("x14:conditionalFormatting");
2874
- }
2875
- t.end("x14:conditionalFormattings"), t.end("ext");
2876
- }
2877
- if (i.length > 0) {
2878
- t.start("ext", {
2879
- uri: D,
2880
- "xmlns:x14": se
2881
- }), t.start("x14:dataValidations", {
2882
- "xmlns:xm": y,
2883
- count: i.length
2884
- });
2885
- for (let e = 0; e < i.length; e++) {
2886
- let { attrs: n, formula1: r, formula2: a, sqref: o } = i[e];
2887
- t.start("x14:dataValidation", n), r !== void 0 && (t.start("x14:formula1"), t.start("xm:f"), t.text(r), t.end("xm:f"), t.end("x14:formula1")), a !== void 0 && (t.start("x14:formula2"), t.start("xm:f"), t.text(a), t.end("xm:f"), t.end("x14:formula2")), t.start("xm:sqref"), t.text(o), t.end("xm:sqref"), t.end("x14:dataValidation");
2888
- }
2889
- t.end("x14:dataValidations"), t.end("ext");
2890
- }
2891
- t.end("extLst");
2892
- }(0, o, l, f, p), o.end("worksheet"), o.close();
2893
- }
2894
- }(),
2895
- new class extends F {
2896
- constructor() {
2897
- super({
2898
- kind: "sharedStrings",
2899
- contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",
2900
- relTypeUri: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",
2901
- path: "/xl/sharedStrings.xml"
2902
- });
2903
- }
2904
- async emit(e, t) {
2905
- let n = t.getXMLWriter(), r = e.json, i = r ? r.length : 0, a = t.getSharedStates().get("stringsCount") ?? 0;
2906
- n.decl(), n.start("sst", {
2907
- xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
2908
- count: a,
2909
- uniqueCount: i
2910
- });
2911
- for (let e = 0; e < i; e++) {
2912
- let t = r[e];
2913
- n.start("si");
2914
- let i = ee.test(t) ? re : void 0;
2915
- n.start("t", i), n.text(ne(t)), n.end("t"), n.end("si");
2916
- }
2917
- n.end("sst"), n.close();
2918
- }
2919
- }(),
2920
- new class extends F {
2921
- constructor() {
2922
- super({
2923
- kind: "theme",
2924
- contentType: "application/vnd.openxmlformats-officedocument.theme+xml",
2925
- relTypeUri: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",
2926
- path: "/xl/theme/theme{n}.xml"
2927
- });
2928
- }
2929
- async emit(e, t) {
2930
- let n = t.getXMLWriter(), r = e.model, i = e.json;
2931
- n.decl(), n.pushDefaultNamespace("a"), n.start("theme", {
2932
- "xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main",
2933
- name: r.getName() || "Office Theme"
2934
- }), n.start("themeElements"), function(e, t, n, r) {
2935
- let i = n?.getColorScheme();
2936
- if (i) {
2937
- t.start(r, { name: i.getName() || "Office" });
2938
- for (let e of Ve) t.start(e), V(t, n, i["get" + e.charAt(0).toUpperCase() + e.slice(1)]()), t.end(e);
2939
- t.end(r);
2940
- }
2941
- }(0, n, r, "clrScheme"), function(e, t, n, r) {
2942
- n && (t.start(r, { name: n.getName() || "Office" }), It(0, t, n.getMajorFont() || "Calibri Light", "majorFont"), It(0, t, n.getMinorFont() || "Calibri", "minorFont"), t.end(r));
2943
- }(0, n, r.getFontScheme(), "fontScheme"), function(e, t, n, r, i) {
2944
- i?.fillStyleLst && i?.lnStyleLst && i?.effectStyleLst && i?.bgFillStyleLst ? function(e, t, n, r, i) {
2945
- let a = { getTheme: () => r };
2946
- t.start(n, { name: "Office" }), t.start("fillStyleLst");
2947
- for (let e of i.fillStyleLst) G(0, t, e, a);
2948
- t.end("fillStyleLst"), t.start("lnStyleLst");
2949
- for (let e of i.lnStyleLst) qe(0, t, e, a);
2950
- t.end("lnStyleLst"), t.start("effectStyleLst");
2951
- for (let n of i.effectStyleLst) t.start("effectStyle"), n.length > 0 ? Xe(e, t, r, n) : t.empty("effectLst"), t.end("effectStyle");
2952
- t.end("effectStyleLst"), t.start("bgFillStyleLst");
2953
- for (let e of i.bgFillStyleLst) G(0, t, e, a);
2954
- t.end("bgFillStyleLst"), t.end(n);
2955
- }(e, t, n, r, i) : i?.formatSchemeXml ? t.raw(i.formatSchemeXml) : (t.start(n, { name: "Office" }), function(e, t) {
2956
- t.start("fillStyleLst"), t.start("solidFill"), t.empty("schemeClr", { val: "phClr" }), t.end("solidFill"), t.start("gradFill", { rotWithShape: "1" }), t.start("gsLst"), t.start("gs", { pos: "0" }), t.start("schemeClr", { val: "phClr" }), t.empty("tint", { val: "50000" }), t.empty("satMod", { val: "300000" }), t.end("schemeClr"), t.end("gs"), t.start("gs", { pos: "35000" }), t.start("schemeClr", { val: "phClr" }), t.empty("tint", { val: "37000" }), t.empty("satMod", { val: "300000" }), t.end("schemeClr"), t.end("gs"), t.start("gs", { pos: "100000" }), t.start("schemeClr", { val: "phClr" }), t.empty("tint", { val: "15000" }), t.empty("satMod", { val: "350000" }), t.end("schemeClr"), t.end("gs"), t.end("gsLst"), t.empty("lin", {
2957
- ang: "16200000",
2958
- scaled: "1"
2959
- }), t.end("gradFill"), t.start("gradFill", { rotWithShape: "1" }), t.start("gsLst"), t.start("gs", { pos: "0" }), t.start("schemeClr", { val: "phClr" }), t.empty("shade", { val: "51000" }), t.empty("satMod", { val: "130000" }), t.end("schemeClr"), t.end("gs"), t.start("gs", { pos: "80000" }), t.start("schemeClr", { val: "phClr" }), t.empty("shade", { val: "93000" }), t.empty("satMod", { val: "130000" }), t.end("schemeClr"), t.end("gs"), t.start("gs", { pos: "100000" }), t.start("schemeClr", { val: "phClr" }), t.empty("shade", { val: "94000" }), t.empty("satMod", { val: "135000" }), t.end("schemeClr"), t.end("gs"), t.end("gsLst"), t.empty("lin", {
2960
- ang: "16200000",
2961
- scaled: "0"
2962
- }), t.end("gradFill"), t.end("fillStyleLst");
2963
- }(0, t), function(e, t) {
2964
- t.start("lnStyleLst");
2965
- let n = [
2966
- 9525,
2967
- 25400,
2968
- 38100
2969
- ];
2970
- for (let e = 0; e < 3; e++) t.start("ln", {
2971
- w: n[e].toString(),
2972
- cap: "flat",
2973
- cmpd: "sng",
2974
- algn: "ctr"
2975
- }), t.start("solidFill"), t.start("schemeClr", { val: "phClr" }), t.empty("shade", { val: "95000" }), t.empty("satMod", { val: "105000" }), t.end("schemeClr"), t.end("solidFill"), t.empty("prstDash", { val: "solid" }), t.end("ln");
2976
- t.end("lnStyleLst");
2977
- }(0, t), function(e, t) {
2978
- t.start("effectStyleLst");
2979
- for (let e = 0; e < 3; e++) t.start("effectStyle"), t.start("effectLst"), e === 2 && (t.start("outerShdw", {
2980
- blurRad: "40000",
2981
- dist: "20000",
2982
- dir: "5400000",
2983
- rotWithShape: "0"
2984
- }), t.start("srgbClr", { val: "000000" }), t.empty("alpha", { val: "38000" }), t.end("srgbClr"), t.end("outerShdw")), t.end("effectLst"), t.end("effectStyle");
2985
- t.end("effectStyleLst");
2986
- }(0, t), function(e, t) {
2987
- t.start("bgFillStyleLst"), t.start("solidFill"), t.empty("schemeClr", { val: "phClr" }), t.end("solidFill"), t.start("gradFill", { rotWithShape: "1" }), t.start("gsLst"), t.start("gs", { pos: "0" }), t.start("schemeClr", { val: "phClr" }), t.empty("tint", { val: "40000" }), t.empty("satMod", { val: "350000" }), t.end("schemeClr"), t.end("gs"), t.start("gs", { pos: "40000" }), t.start("schemeClr", { val: "phClr" }), t.empty("tint", { val: "45000" }), t.empty("shade", { val: "99000" }), t.empty("satMod", { val: "350000" }), t.end("schemeClr"), t.end("gs"), t.start("gs", { pos: "100000" }), t.start("schemeClr", { val: "phClr" }), t.empty("shade", { val: "20000" }), t.empty("satMod", { val: "255000" }), t.end("schemeClr"), t.end("gs"), t.end("gsLst"), t.empty("path", { path: "circle" }), t.empty("fillToRect", {
2988
- l: "50000",
2989
- t: "-80000",
2990
- r: "50000",
2991
- b: "180000"
2992
- }), t.end("gradFill"), t.start("gradFill", { rotWithShape: "1" }), t.start("gsLst"), t.start("gs", { pos: "0" }), t.start("schemeClr", { val: "phClr" }), t.empty("tint", { val: "80000" }), t.empty("satMod", { val: "300000" }), t.end("schemeClr"), t.end("gs"), t.start("gs", { pos: "100000" }), t.start("schemeClr", { val: "phClr" }), t.empty("shade", { val: "30000" }), t.empty("satMod", { val: "200000" }), t.end("schemeClr"), t.end("gs"), t.end("gsLst"), t.empty("path", { path: "circle" }), t.empty("fillToRect", {
2993
- l: "50000",
2994
- t: "50000",
2995
- r: "50000",
2996
- b: "50000"
2997
- }), t.end("gradFill"), t.end("bgFillStyleLst");
2998
- }(0, t), t.end(n));
2999
- }(t, n, "fmtScheme", r, i), n.end("themeElements"), n.start("objectDefaults"), n.end("objectDefaults"), n.start("extraClrSchemeLst"), n.end("extraClrSchemeLst"), n.end("theme"), n.close();
3000
- }
3001
- }(),
3002
- new class extends F {
3003
- constructor() {
3004
- super({
3005
- kind: "styles",
3006
- contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",
3007
- relTypeUri: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",
3008
- path: "/xl/styles.xml"
3009
- });
3010
- }
3011
- async emit(n, r) {
3012
- let i = r.getXMLWriter(), a = n.json, o = (n.theme, n.styles);
3013
- i.decl(), i.start("styleSheet", {
3014
- xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
3015
- "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
3016
- "mc:Ignorable": "x14ac x16r2 xr",
3017
- "xmlns:x14ac": "http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac",
3018
- "xmlns:x16r2": "http://schemas.microsoft.com/office/spreadsheetml/2015/02/main",
3019
- "xmlns:xr": "http://schemas.microsoft.com/office/spreadsheetml/2014/revision"
3020
- });
3021
- let s = function(e, t) {
3022
- let n = t?.direct;
3023
- n && n.length !== 0 || (n = [{}]);
3024
- let r = n.length, i = Array(r);
3025
- for (let t = 0; t < r; t++) {
3026
- let r = t === 0 ? {
3027
- ...n[t],
3028
- named: h.BuiltInName.Normal
3029
- } : n[t], a = e.resolve(r), o = {};
3030
- r.named !== void 0 && (o.named = r.named), r.quotePrefix !== void 0 && (o.quotePrefix = r.quotePrefix);
3031
- for (let e = 0; e < it.length; e++) {
3032
- let t = it[e];
3033
- if (r[t] === void 0 && t !== "alignment") continue;
3034
- let n = a?.[t] ?? r[t];
3035
- n !== void 0 && (o[t] = n);
3036
- }
3037
- i[t] = o;
3038
- }
3039
- return i;
3040
- }(o, a), c = function(n, r, i) {
3041
- let a = {
3042
- fontMap: /* @__PURE__ */ new Map(),
3043
- fonts: [],
3044
- fillMap: /* @__PURE__ */ new Map(),
3045
- fills: [],
3046
- borderMap: /* @__PURE__ */ new Map(),
3047
- borders: [],
3048
- numFmtMap: /* @__PURE__ */ new Map(),
3049
- numFmtsCustom: [],
3050
- namedStyleMap: /* @__PURE__ */ new Map(),
3051
- namedStyles: []
3052
- };
3053
- (function(e, n) {
3054
- let r = (e.getNamed(h.BuiltInName.Normal).toJSON().style ?? {}).font ?? {};
3055
- n.fontMap.set(t.JSONStableStringify(r), "0"), n.fonts.push(r);
3056
- })(n, a), function(e) {
3057
- let n = { type: "none" };
3058
- e.fillMap.set(t.JSONStableStringify(n), "0"), e.fills.push(n);
3059
- let r = {
3060
- type: "pattern",
3061
- patternType: "gray125"
3062
- };
3063
- e.fillMap.set(t.JSONStableStringify(r), "1"), e.fills.push(r);
3064
- }(a), function(e) {
3065
- let n = {
3066
- bottom: { style: "none" },
3067
- left: { style: "none" },
3068
- right: { style: "none" },
3069
- top: { style: "none" }
3070
- };
3071
- e.borderMap.set(t.JSONStableStringify(n), "0"), e.borders.push(n);
3072
- }(a), function(e, t) {
3073
- ot(e, e.getNamed(h.BuiltInName.Normal).toJSON(), t);
3074
- }(n, a);
3075
- let o = r?.named ?? e.EmptyArray;
3076
- for (let e of o) ot(n, e, a);
3077
- for (let e of i) at(n, e, a);
3078
- return a;
3079
- }(o, a, s), l = r.getSharedStates().get(rt), u = function(e, t = 0) {
3080
- let n = e?.tables;
3081
- if (!n) return null;
3082
- let r = n.styles;
3083
- if (!r) return null;
3084
- let i = [], a = /* @__PURE__ */ new Map(), o = Object.keys(r), s = [...pt].reverse();
3085
- for (let e of o) {
3086
- let n = r[e];
3087
- for (let r of s) {
3088
- let o = n[r];
3089
- if (!o) continue;
3090
- let s = {};
3091
- if (o.font && (s.font = o.font), o.fill && (s.fill = o.fill), o.border && (s.border = o.border), o.numberFormat !== void 0 && (s.numberFormat = o.numberFormat), Object.keys(s).length === 0) continue;
3092
- let c = t + i.length;
3093
- i.push(s);
3094
- let l = `${e}:${r}`;
3095
- a.set(l, c);
3096
- }
3097
- }
3098
- return {
3099
- dxfs: i,
3100
- dxfIndexMap: a
3101
- };
3102
- }(a, l?.getCount() ?? 0);
3103
- (function(e, t, n) {
3104
- let r = n.numFmtsCustom, i = r.length;
3105
- if (i !== 0) {
3106
- t.start("numFmts", { count: String(i) });
3107
- for (let e = 0; e < i; e++) {
3108
- let n = r[e];
3109
- t.empty("numFmt", {
3110
- numFmtId: String(e + ft),
3111
- formatCode: n
3112
- });
3113
- }
3114
- t.end("numFmts");
3115
- }
3116
- })(0, i, c), function(e, t, n, r) {
3117
- let i = r.fonts, a = i.length;
3118
- t.start("fonts", {
3119
- count: String(a),
3120
- "x14ac:knownFonts": "1"
3121
- });
3122
- for (let e of i) st(0, t, e, n);
3123
- t.end("fonts");
3124
- }(0, i, o, c), function(e, t, n, r) {
3125
- let i = r.fills, a = i.length;
3126
- t.start("fills", { count: String(a) });
3127
- for (let e of i) G(0, t, e, n, !0);
3128
- t.end("fills");
3129
- }(0, i, o, c), function(e, t, n, r) {
3130
- let i = r.borders, a = i.length;
3131
- t.start("borders", { count: String(a) });
3132
- let o = n.getTheme();
3133
- for (let e of i) ct(0, t, e, o, !1);
3134
- t.end("borders");
3135
- }(0, i, o, c), function(t, n, r, i, a) {
3136
- let o = a.namedStyles, s = o.length;
3137
- n.start("cellStyleXfs", { count: String(s) });
3138
- for (let t of o) ut(0, n, r, t.style ?? e.EmptyObject, a, !1);
3139
- n.end("cellStyleXfs");
3140
- }(0, i, o, 0, c), function(e, t, n, r, i) {
3141
- let a = r.length;
3142
- t.start("cellXfs", { count: String(a) });
3143
- for (let e = 0; e < a; e++) ut(0, t, n, r[e], i, !0);
3144
- t.end("cellXfs");
3145
- }(0, i, o, s, c), function(e, t, n, r, i) {
3146
- let a = i.namedStyles, o = a.length;
3147
- t.start("cellStyles", { count: String(o) });
3148
- let s = i.namedStyleMap;
3149
- for (let e = 0; e < o; e++) {
3150
- let r = a[e], i = r.name, o = i.toLowerCase(), c = {
3151
- name: i,
3152
- xfId: s.get(o)
3153
- };
3154
- r.hidden && (c.hidden = "1"), r.iLevel && (c.iLevel = String(r.iLevel));
3155
- let l = null;
3156
- l = o === h.BuiltInName.Normal.toLowerCase() ? 0 : n.getNamed(i).getBuiltInID(), l !== null && (c.builtinId = String(l), c.customBuiltin = "1"), t.empty("cellStyle", c);
3157
- }
3158
- t.end("cellStyles");
3159
- }(0, i, o, 0, c), function(e, t, n, r, i) {
3160
- let a = [...i?.getDxfs() ?? [], ...r?.dxfs ?? []];
3161
- if (a.length === 0) return void t.empty("dxfs", { count: "0" });
3162
- let o = n.getTheme();
3163
- t.start("dxfs", { count: String(a.length) });
3164
- let s = ft;
3165
- for (let e of a) s = dt(0, t, e, n, o, "dxf", s);
3166
- t.end("dxfs");
3167
- }(0, i, o, u, l), function(e, t, n, r, i) {
3168
- let a = r?.tables, o = a?.styles ?? null, s = o ? Object.keys(o) : null, c = s ? s.length : 0, l = {
3169
- count: String(c),
3170
- defaultTableStyle: a?.defaultTableStyle ?? "TableStyleMedium2",
3171
- defaultPivotStyle: a?.defaultPivotStyle ?? "PivotStyleLight16"
3172
- };
3173
- if (c !== 0) {
3174
- t.start("tableStyles", l);
3175
- for (let e of s) {
3176
- let n = o[e], r = [];
3177
- for (let e of pt) {
3178
- let t = n[e];
3179
- t && r.push([e, t]);
3180
- }
3181
- let a = {
3182
- name: e,
3183
- pivot: n.pivot ? "1" : "0",
3184
- count: String(r.length)
3185
- };
3186
- t.start("tableStyle", a);
3187
- for (let [n, a] of r) {
3188
- let r = `${e}:${n}`, o = i?.dxfIndexMap.get(r) ?? "0", s = {};
3189
- s.type = n, a.size !== void 0 && (s.size = String(a.size)), s.dxfId = String(o), t.empty("tableStyleElement", s);
3190
- }
3191
- t.end("tableStyle");
3192
- }
3193
- t.end("tableStyles");
3194
- } else t.empty("tableStyles", l);
3195
- }(0, i, 0, a, u), function(e, t, n, r) {
3196
- let i = r?.indexedColors && r.indexedColors.length > 0, a = r?.mruColors && r.mruColors.length > 0;
3197
- if (i || a) {
3198
- if (t.start("colors"), i) {
3199
- t.start("indexedColors");
3200
- for (let e of r.indexedColors) {
3201
- let n = Ke(e, !0);
3202
- t.empty("rgbColor", { rgb: n });
3203
- }
3204
- t.end("indexedColors");
3205
- }
3206
- if (a) {
3207
- t.start("mruColors");
3208
- for (let e of r.mruColors) {
3209
- let n = Ke(e);
3210
- t.empty("color", { rgb: n });
3211
- }
3212
- t.end("mruColors");
3213
- }
3214
- t.end("colors");
3215
- }
3216
- }(0, i, 0, a), function(e, t) {
3217
- t.start("extLst"), t.start("ext", {
3218
- uri: "{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}",
3219
- "xmlns:x14": "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"
3220
- }), t.empty("x14:slicerStyles", { defaultSlicerStyle: "SlicerStyleLight1" }), t.end("ext"), t.start("ext", {
3221
- uri: "{9260A510-F301-46a8-8635-F512D64BE5F5}",
3222
- "xmlns:x15": "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"
3223
- }), t.empty("x15:timelineStyles", { defaultTimelineStyle: "TimeSlicerStyleLight1" }), t.end("ext"), t.end("extLst");
3224
- }(0, i), i.end("styleSheet"), i.close();
3225
- }
3226
- }(),
3227
- new class extends F {
3228
- constructor() {
3229
- super({
3230
- kind: "propsCore",
3231
- contentType: "application/vnd.openxmlformats-package.core-properties+xml",
3232
- relTypeUri: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",
3233
- path: "/docProps/core.xml"
3234
- });
3235
- }
3236
- async emit(e, t) {
3237
- let n = t.getXMLWriter();
3238
- n.decl(), n.start("cp:coreProperties", {
3239
- "xmlns:cp": "http://schemas.openxmlformats.org/package/2006/metadata/core-properties",
3240
- "xmlns:dc": "http://purl.org/dc/elements/1.1/",
3241
- "xmlns:dcterms": "http://purl.org/dc/terms/",
3242
- "xmlns:dcmitype": "http://purl.org/dc/dcmitype/",
3243
- "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance"
3244
- });
3245
- let r = /* @__PURE__ */ new Date(), i = [
3246
- ["creator", "SheetXL"],
3247
- ["lastModifiedBy", "SheetXL"],
3248
- ["created", Lt(r)],
3249
- ["modified", Lt(r)]
3250
- ];
3251
- for (let e of i) Rt(n, e[0], e[1]);
3252
- n.end("cp:coreProperties"), n.close();
3253
- }
3254
- }(),
3255
- new class extends F {
3256
- constructor() {
3257
- super({
3258
- kind: "propsApp",
3259
- contentType: "application/vnd.openxmlformats-officedocument.extended-properties+xml",
3260
- relTypeUri: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",
3261
- path: "/docProps/app.xml"
3262
- });
3263
- }
3264
- async emit(e, t) {
3265
- let n = t.getXMLWriter(), r = e.model, i = await o.getDetails(), a = function(e) {
3266
- if (!e || typeof e != "string") return yt;
3267
- if (e === "local" || e === "dev" || e === "development") return "00.0000";
3268
- let t = e.match(/^(\d+)(?:\.(\d+))?(?:\.(\d+))?/);
3269
- if (!t) return yt;
3270
- let n = parseInt(t[1], 10), r = parseInt(t[2] || "0", 10);
3271
- return n > 99 || r > 9999 ? yt : `${n.toString()}.${r.toString().padStart(4, "0")}`;
3272
- }(i.getBuildVersion()), s = i.getLicensee() || "";
3273
- n.setValidationDisabled(!0), n.decl(), n.start("Properties", {
3274
- xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
3275
- "xmlns:vt": "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
3276
- }), Q(0, n, "Application", "SheetXL"), Q(0, n, "DocSecurity", "0"), Q(0, n, "ScaleCrop", "false"), ((e, t, n) => {
3277
- let r = n.getSheets().getItems({ visibility: p.Visibility.Hidden }).map((e) => e.getName()), i = n.getNames().getItems({ type: "formula" }).filter((e) => !!e.getRanges?.()).map((e) => e.getName());
3278
- t.start("HeadingPairs"), t.start("vt:vector", {
3279
- size: i.length > 0 ? "4" : "2",
3280
- baseType: "variant"
3281
- }), t.start("vt:variant"), t.start("vt:lpstr"), t.text("Worksheets"), t.end("vt:lpstr"), t.end("vt:variant"), t.start("vt:variant"), t.start("vt:i4"), t.text("" + r.length), t.end("vt:i4"), t.end("vt:variant"), i.length > 0 && (t.start("vt:variant"), t.start("vt:lpstr"), t.text("Named Ranges"), t.end("vt:lpstr"), t.end("vt:variant"), t.start("vt:variant"), t.start("vt:i4"), t.text("" + i.length), t.end("vt:i4"), t.end("vt:variant")), t.end("vt:vector"), t.end("HeadingPairs"), t.start("TitlesOfParts"), t.start("vt:vector", {
3282
- size: "" + (r.length + i.length),
3283
- baseType: "lpstr"
3284
- });
3285
- for (let e of r) t.start("vt:lpstr"), t.text(e), t.end("vt:lpstr");
3286
- for (let e of i) t.start("vt:lpstr"), t.text(e), t.end("vt:lpstr");
3287
- t.end("vt:vector"), t.end("TitlesOfParts");
3288
- })(0, n, r), Q(0, n, "Company", s), Q(0, n, "LinksUpToDate", "false"), Q(0, n, "SharedDoc", "false"), Q(0, n, "HyperlinksChanged", "false"), Q(0, n, "AppVersion", a), n.end("Properties"), n.close();
3289
- }
3290
- }(),
3291
- new class extends F {
3292
- constructor() {
3293
- super({
3294
- kind: "metadata",
3295
- contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",
3296
- relTypeUri: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",
3297
- path: "/xl/metadata.xml"
3298
- });
3299
- }
3300
- emit(e, t) {
3301
- let n = t.getXMLWriter(), r = e.hasCellMeta(), i = e.hasValueMeta(), a = e.getDAPRFutureMetadataBlocks(), o = e.getRVFutureMetadataBlocks(), s = e.getValueMeta(), c = 0, l = 0, u = 0;
3302
- r && (c = ++u), i && (l = ++u);
3303
- let d = { xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main" };
3304
- if (r && (d["xmlns:xda"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray"), i && (d["xmlns:xlrd"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata"), n.decl(), n.start("metadata", d), n.start("metadataTypes", { count: u }), r && n.empty("metadataType", {
3305
- name: "XLDAPR",
3306
- ...zt,
3307
- cellMeta: "1"
3308
- }), i && n.empty("metadataType", {
3309
- name: "XLRICHVALUE",
3310
- ...zt
3311
- }), n.end("metadataTypes"), r) {
3312
- n.start("futureMetadata", {
3313
- name: "XLDAPR",
3314
- count: a.length
3315
- });
3316
- for (let e of a) n.start("bk"), n.start("extLst"), n.start("ext", { uri: "{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}" }), n.empty("xda:dynamicArrayProperties", {
3317
- fDynamic: e.fDynamic,
3318
- fCollapsed: e.fCollapsed
3319
- }), n.end("ext"), n.end("extLst"), n.end("bk");
3320
- n.end("futureMetadata");
3321
- }
3322
- if (i) {
3323
- n.start("futureMetadata", {
3324
- name: "XLRICHVALUE",
3325
- count: o.length
3326
- });
3327
- for (let e of o) n.start("bk"), n.start("extLst"), n.start("ext", { uri: "{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}" }), n.empty("xlrd:rvb", { i: e }), n.end("ext"), n.end("extLst"), n.end("bk");
3328
- n.end("futureMetadata");
3329
- }
3330
- if (r) {
3331
- n.start("cellMetadata", { count: a.length });
3332
- for (let e = 0; e < a.length; e++) n.start("bk"), n.empty("rc", {
3333
- t: c,
3334
- v: e
3335
- }), n.end("bk");
3336
- n.end("cellMetadata");
3337
- }
3338
- if (i) {
3339
- n.start("valueMetadata", { count: s.length });
3340
- for (let e of s) n.start("bk"), n.empty("rc", {
3341
- t: l,
3342
- v: e
3343
- }), n.end("bk");
3344
- n.end("valueMetadata");
3345
- }
3346
- n.end("metadata"), n.close();
3347
- }
3348
- }(),
3349
- new class extends F {
3350
- constructor() {
3351
- super({
3352
- kind: "richValue",
3353
- contentType: "application/vnd.ms-excel.rdrichvalue+xml",
3354
- relTypeUri: "http://schemas.microsoft.com/office/2017/06/relationships/rdRichValue",
3355
- path: "./richData/rdrichvalue.xml"
3356
- });
3357
- }
3358
- async emit(e, t) {
3359
- let n = t.getXMLWriter(), r = e.getEntries(), i = r.length;
3360
- n.decl(), n.start("rvData", {
3361
- xmlns: "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata",
3362
- count: i
3363
- });
3364
- for (let t of r) {
3365
- let r = e.handlerStructureIndex(t.handler);
3366
- n.start("rv", { s: r });
3367
- let i = t.handler.getValues(t.rawValue);
3368
- for (let e of i) n.start("v"), n.text(e), n.end("v");
3369
- n.end("rv");
3370
- }
3371
- n.end("rvData"), n.close();
3372
- }
3373
- }(),
3374
- new class extends F {
3375
- constructor() {
3376
- super({
3377
- kind: "richValueStructure",
3378
- contentType: "application/vnd.ms-excel.rdrichvaluestructure+xml",
3379
- relTypeUri: "http://schemas.microsoft.com/office/2017/06/relationships/rdRichValueStructure",
3380
- path: "./richData/rdrichvaluestructure.xml"
3381
- });
3382
- }
3383
- async emit(e, t) {
3384
- let n = t.getXMLWriter(), r = e.uniqueHandlers(), i = r.length;
3385
- n.decl(), n.start("rvStructures", {
3386
- xmlns: "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata",
3387
- count: i
3388
- });
3389
- for (let e of r) {
3390
- n.start("s", { t: e.type });
3391
- for (let [t, r] of e.props) n.empty("k", {
3392
- n: t,
3393
- t: r
3394
- });
3395
- n.end("s");
3396
- }
3397
- n.end("rvStructures"), n.close();
3398
- }
3399
- }(),
3400
- new class extends F {
3401
- constructor() {
3402
- super({
3403
- kind: "richValueTypes",
3404
- contentType: "application/vnd.ms-excel.rdrichvaluetypes+xml",
3405
- relTypeUri: "http://schemas.microsoft.com/office/2017/06/relationships/rdRichValueTypes",
3406
- path: "./richData/rdRichValueTypes.xml"
3407
- });
3408
- }
3409
- async emit(e, t) {
3410
- let n = t.getXMLWriter();
3411
- n.decl(), n.start("rvTypesInfo", {
3412
- xmlns: "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2",
3413
- "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
3414
- "mc:Ignorable": "x",
3415
- "xmlns:x": "http://schemas.openxmlformats.org/spreadsheetml/2006/main"
3416
- });
3417
- let r = [
3418
- ["_self", ["ExcludeFromFile", "ExcludeFromCalcComparison"]],
3419
- ["_DisplayString", ["ExcludeFromCalcComparison"]],
3420
- ["_Flags", ["ExcludeFromCalcComparison"]],
3421
- ["_Format", ["ExcludeFromCalcComparison"]],
3422
- ["_SubLabel", ["ExcludeFromCalcComparison"]],
3423
- ["_Attribution", ["ExcludeFromCalcComparison"]],
3424
- ["_Icons", ["ExcludeFromCalcComparison"]],
3425
- ["_Display", ["ExcludeFromCalcComparison"]],
3426
- ["_CanonicalPropertyNames", ["ExcludeFromCalcComparison"]],
3427
- ["_ClassificationId", ["ExcludeFromCalcComparison"]]
3428
- ];
3429
- n.start("global"), n.start("keyFlags");
3430
- for (let [e, t] of r) {
3431
- n.start("key", { name: e });
3432
- for (let e of t) n.empty("flag", {
3433
- name: e,
3434
- value: "1"
3435
- });
3436
- n.end("key");
3437
- }
3438
- n.end("keyFlags"), n.end("global"), n.end("rvTypesInfo"), n.close();
3439
- }
3440
- }(),
3441
- new class extends F {
3442
- constructor() {
3443
- super({
3444
- kind: "drawing",
3445
- contentType: "application/vnd.openxmlformats-officedocument.drawing+xml",
3446
- relTypeUri: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",
3447
- path: "../drawings/drawing{n}.xml"
3448
- });
3449
- }
3450
- async emit(e, t) {
3451
- let n = t.getXMLWriter();
3452
- n.decl(), n.pushDefaultNamespace("xdr"), n.start("wsDr", {
3453
- "xmlns:xdr": "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",
3454
- "xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main"
3455
- });
3456
- let r = /* @__PURE__ */ new Map(), i = e.sheet, a = e.movables, o = e.jsonMovables, s = o ? o.length : 0, c = 0;
3457
- for (let e = 0; e < s; e++) {
3458
- let t = o[e].content?.json?.sourceId;
3459
- typeof t == "number" && t > c && (c = t);
3460
- }
3461
- let l, u = /* @__PURE__ */ new Map();
3462
- if (c > 0) {
3463
- let e = t.getSharedStates();
3464
- l = e.get("uniqueIdCounter"), l || (l = /* @__PURE__ */ new Map(), e.set("uniqueIdCounter", l)), l.set(i, Math.max(l.get(i) ?? 1, c));
3465
- let n = /* @__PURE__ */ new Set();
3466
- for (let e = 0; e < s; e++) {
3467
- let t = o[e].content?.json?.sourceId;
3468
- if (typeof t == "number") if (n.has(t)) {
3469
- let t = l.get(i) + 1;
3470
- l.set(i, t), u.set(o[e], t);
3471
- } else n.add(t);
3472
- }
3473
- }
3474
- for (let e = 0; e < s; e++) {
3475
- let s = o[e], c = a[e], l = s.content?.type;
3476
- switch (n.start("twoCellAnchor", { editAs: s.anchorType || "twoCell" }), on(n, "from", s.anchor.tl), on(n, "to", s.anchor.br), l) {
3477
- case "picture":
3478
- await Kt(t, i, r, c, s);
3479
- break;
3480
- case "chart":
3481
- await Jt(t, i, r, c, s, u.get(s));
3482
- break;
3483
- case "shape":
3484
- await Qt(t, i, r, c, s, u.get(s));
3485
- break;
3486
- case "smartArt":
3487
- await Yt(t, i, r, c, s);
3488
- break;
3489
- case "slicer":
3490
- await Xt(t, i, r, c, s);
3491
- break;
3492
- case "graphicFrame":
3493
- await Zt(t, i, r, c, s);
3494
- break;
3495
- default: await $(t, i, r, c, s);
3496
- }
3497
- n.empty("clientData"), n.end("twoCellAnchor");
3498
- }
3499
- n.end("wsDr"), n.close();
3500
- }
3501
- }(),
3502
- new class extends F {
3503
- constructor() {
3504
- super({
3505
- kind: "table",
3506
- contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml",
3507
- relTypeUri: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table",
3508
- path: "../tables/table{n}.xml"
3509
- });
3510
- }
3511
- async emit(e, t) {
3512
- let n = t.getXMLWriter();
3513
- n.decl();
3514
- let r = {
3515
- xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
3516
- "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
3517
- "mc:Ignorable": "xr xr3",
3518
- "xmlns:xr": "http://schemas.microsoft.com/office/spreadsheetml/2014/revision",
3519
- "xmlns:xr3": "http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"
3520
- }, i = e.json, a = e.model;
3521
- a.isShowHeaders(), r.id = ++sn, r.name = i.name?.trim(), r.displayName = i.description ?? i.name, r.ref = e.ref, i.headerRowCount !== 1 && (r.headerRowCount = i.headerRowCount), i.totalsRowCount !== 0 && (r.totalsRowCount = i.totalsRowCount), a.isShowTotals() || (r.totalsRowShown = "0"), n.start("table", r), a.isShowHeaders() && gt(t, n, a, i), ((e, t, n, r) => {
3522
- let i = r.columns, a = i ? i.length : 0;
3523
- if (a !== 0) {
3524
- t.start("tableColumns", { count: a });
3525
- for (let e = 0; e < a; e++) {
3526
- let n = i[e];
3527
- typeof n == "string" && (n = { name: n });
3528
- let r = {};
3529
- r.id = e + 1, r.name = n.name ?? `Column${e + 1}`;
3530
- let a = null, o = n.totalsRowFormula;
3531
- o && (typeof o == "number" && (o = ln.get(o)), o && !cn.has(o.toLowerCase()) && (a = o, o = "custom"), o && (r.totalsRowFunction = o)), n.totalsRowLabel && (r.totalsRowLabel = n.totalsRowLabel), a ? (t.start("tableColumn", r), t.start("totalsRowFormula"), t.text(a), t.end("totalsRowFormula"), t.end("tableColumn")) : t.empty("tableColumn", r);
3532
- }
3533
- t.end("tableColumns");
3534
- }
3535
- })(0, n, 0, i), ((e, t, n) => {
3536
- let r = {
3537
- name: n.getStyle().getName(),
3538
- showFirstColumn: n.isShowHighlightFirstColumn() ? "1" : "0",
3539
- showLastColumn: n.isShowHighlightLastColumn() ? "1" : "0",
3540
- showRowStripes: n.isShowBandedRows() ? "1" : "0",
3541
- showColumnStripes: n.isShowBandedColumns() ? "1" : "0"
3542
- };
3543
- t.empty("tableStyleInfo", r);
3544
- })(0, n, a), n.end("table"), n.close();
3545
- }
3546
- }(),
3547
- new class extends F {
3548
- constructor() {
3549
- super({
3550
- kind: "chart",
3551
- contentType: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml",
3552
- relTypeUri: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",
3553
- path: "../charts/chart{n}.xml"
3554
- });
3555
- }
3556
- async emit(e, t) {
3557
- let n = t.getXMLWriter();
3558
- n.decl(), n.pushDefaultNamespace("c"), n.start("chartSpace", {
3559
- "xmlns:c": "http://schemas.openxmlformats.org/drawingml/2006/chart",
3560
- "xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main",
3561
- "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
3562
- "xmlns:c16r2": "http://schemas.microsoft.com/office/drawing/2015/06/chart"
3563
- }), n.empty("date1904", { val: "0" }), n.empty("lang", { val: "en-US" }), n.empty("roundedCorners", { val: "0" }), ((e, t) => {
3564
- t.start("mc:AlternateContent", { "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006" }), t.start("mc:Choice", {
3565
- Requires: "c14",
3566
- "xmlns:c14": "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"
3567
- }), t.empty("c14:style", { val: "102" }), t.end("mc:Choice"), t.start("mc:Fallback"), t.empty("c:style", { val: "2" }), t.end("mc:Fallback"), t.end("mc:AlternateContent");
3568
- })(0, n, e.model, e.json), ((e, t, n, r, i) => {
3569
- t.start("chart"), ((e, t, n, r, i) => {
3570
- t.start("title"), t.empty("overlay", { val: "0" }), Ye(e, n, i, "spPr", !0), t.end("title"), t.empty("autoTitleDeleted", { val: "0" });
3571
- })(e, t, n, 0, i), ((e, t, n, r, i) => {
3572
- t.start("plotArea"), t.empty("layout"), Ye(e, n, i, "spPr", !0), t.end("plotArea");
3573
- })(e, t, n, 0, i), t.empty("plotVisOnly", { val: "1" }), t.empty("dispBlanksAs", { val: "gap" }), t.empty("showDLblsOverMax", { val: "0" }), t.end("chart");
3574
- })(t, n, e.styles, e.model, e.json), ((e, t) => {
3575
- t.start("printSettings"), t.empty("headerFooter"), t.empty("pageMargins", {
3576
- b: "0.75",
3577
- l: "0.7",
3578
- r: "0.7",
3579
- t: "0.75",
3580
- header: "0.3",
3581
- footer: "0.3"
3582
- }), t.empty("pageSetup"), t.end("printSettings");
3583
- })(0, n, e.model, e.json), n.end("chartSpace"), n.popDefaultNamespace(), n.close(), t.addPart("chartStyle", { styles: e.styles }), t.addPart("chartColors", { styles: e.styles });
3584
- }
3585
- }(),
3586
- new class extends F {
3587
- constructor() {
3588
- super({
3589
- kind: "chartStyle",
3590
- contentType: "application/vnd.ms-office.chartstyle+xml",
3591
- relTypeUri: "http://schemas.microsoft.com/office/2011/relationships/chartStyle",
3592
- path: "./style{n}.xml"
3593
- });
3594
- }
3595
- async emit(e, t) {
3596
- let n = t.getXMLWriter();
3597
- n.pushDefaultNamespace("cs"), n.start("chartStyle", {
3598
- "xmlns:cs": "http://schemas.microsoft.com/office/drawing/2012/chartStyle",
3599
- "xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main",
3600
- id: "297"
3601
- }), ((e, t, n, r) => {
3602
- let i = n.length;
3603
- for (let a = 0; a < i; a++) {
3604
- let i = n[a];
3605
- i.empty ? t.empty(i.type, i.mods) : (t.start(i.type, i.mods), un(0, t, r, "lnRef", i.lineRef, "0"), un(0, t, r, "fillRef", i.fillRef, "0"), un(0, t, r, "effectRef", i.effectRef, "0"), un(0, t, r, "fontRef", i.fontRef, "minor"), Ye(e, r, i, "spPr"), Ht(e, 0, i.defRPr), Ut(e, r, i.bodyPr), t.end(i.type));
3606
- }
3607
- })(t, n, dn, e.styles), n.end("chartStyle"), n.close();
3608
- }
3609
- }(),
3610
- new class extends F {
3611
- constructor() {
3612
- super({
3613
- kind: "chartColors",
3614
- contentType: "application/vnd.ms-office.chartcolorstyle+xml",
3615
- relTypeUri: "http://schemas.microsoft.com/office/2011/relationships/chartColorStyle",
3616
- path: "./colors{n}.xml"
3617
- });
3618
- }
3619
- async emit(e, t) {
3620
- let n = t.getXMLWriter();
3621
- n.pushDefaultNamespace("cs"), n.start("cs:colorStyle", {
3622
- "xmlns:cs": "http://schemas.microsoft.com/office/drawing/2012/chartStyle",
3623
- "xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main",
3624
- meth: "cycle",
3625
- id: "10"
3626
- }), n.empty("a:schemeClr", { val: "accent1" }), n.empty("a:schemeClr", { val: "accent2" }), n.empty("a:schemeClr", { val: "accent3" }), n.empty("a:schemeClr", { val: "accent4" }), n.empty("a:schemeClr", { val: "accent5" }), n.empty("a:schemeClr", { val: "accent6" }), ((e, t, n) => {
3627
- let r = n.length;
3628
- for (let e = 0; e < r; e++) {
3629
- let r = n[e], i = {}, a = r[0], o = r[1];
3630
- a || o ? (t.start("variation", i), a && t.empty("a:lumMod", { val: a }), o && t.empty("a:lumOff", { val: o }), t.end("variation")) : t.empty("variation", i);
3631
- }
3632
- })(0, n, fn), n.end("cs:colorStyle"), n.close();
3633
- }
3634
- }()
3635
- ], mn = async (e, t) => {
3636
- let n = new Ne();
3637
- for (let e of pn) n.register(e);
3638
- let r = hn, i = ce.createUint8Array({
3639
- lastModDate: new Date(1899, 11, 29, 19, 0, 0),
3640
- level: r
3641
- }), a = e.getOrigin(), o = t?.format === "Excel" ? N(a) : null, s = /* @__PURE__ */ new Map(), c = new je(i, n, {
3642
- strictDuplicateChildren: !0,
3643
- onPartEmitted: t?.onPartEmitted,
3644
- mapState: s,
3645
- sourcePackage: o
3646
- });
3647
- c.addPart("workbook", e, "/xl/workbook.xml"), await c.waitEmit(), c.addPart("propsCore", {}), c.addPart("propsApp", { model: e });
3648
- let l = await c.build();
3649
- return l.byteOffset === 0 && l.byteLength === l.buffer.byteLength ? l.buffer : l.slice().buffer;
3650
- }, hn = 1;
3651
- export { mn as writeXLSX };