@sheetxl/studio-mui 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/browser/cjs/B1DCwLSJMTHSgdcP.cjs +6 -0
  2. package/browser/cjs/{YpWYrg3Eysqtr9aZ.cjs → BHC1oqfBYh7Xmx_G.cjs} +1 -1
  3. package/browser/cjs/{DAyHZyXZGsDWfbyd.cjs → BMUOX4KpmBu6GH8Q.cjs} +1 -1
  4. package/browser/cjs/BsXtNRaOhnjlXTcA.cjs +6 -0
  5. package/browser/cjs/{scolQa-PxnIvyiDb.cjs → Bwk2L5ydEvoRIisp.cjs} +1 -1
  6. package/browser/cjs/{DSNu0kgR1_X-nK_Z.cjs → C0hVi0a9d9Sh_FgO.cjs} +2 -2
  7. package/browser/cjs/{B0-aLTQ0dAlPdRnQ.cjs → C0sbobSHWURMB8m0.cjs} +3 -3
  8. package/browser/cjs/{C9TJkm0tBPD04idM.cjs → C1GrJth6YhBZDgvq.cjs} +2 -2
  9. package/browser/cjs/{D8qPzQKLyGrgGg08.cjs → CB6TEerfGxS24WUy.cjs} +2 -2
  10. package/browser/cjs/CBIj9rqxh2ze9ckF.cjs +6 -0
  11. package/browser/cjs/CkdT8JSum0WmJ7Tn.cjs +87 -0
  12. package/browser/cjs/CtKfykOLBwpCtsPd.cjs +11 -0
  13. package/browser/cjs/D9t4mfnS94EkWCXT.cjs +6 -0
  14. package/browser/cjs/{D69p4DRnZE5Oa52x.cjs → DEa9UMmpvbiH_Dxm.cjs} +1 -1
  15. package/browser/cjs/{CEx5ZMI8c4HYrxzW.cjs → DY0yxZSYTOZvtIkB.cjs} +1 -1
  16. package/browser/cjs/DbczL66CNJYzHHvr.cjs +12 -0
  17. package/browser/cjs/{BL1st_QvuF5m8AaJ.cjs → DfPqfTiRAZ9i5RVA.cjs} +2 -2
  18. package/browser/cjs/{BlBsVySC7wICKf3b.cjs → Dpc0lG73ekHkTPOA.cjs} +2 -2
  19. package/browser/cjs/{BH160EggM2K8qaSr.cjs → DzdnNJvBx5lkLTW-.cjs} +1 -1
  20. package/browser/cjs/EPoWWLrVLfRMaxvD.cjs +6 -0
  21. package/browser/cjs/_JBLryXFRVS5vFVX.cjs +12 -0
  22. package/browser/cjs/{CPKZW7FfYlmkNYbE.cjs → edAxlEEqzjJ_PaBv.cjs} +2 -2
  23. package/browser/cjs/{Bh785l7WNSK7G3hU.cjs → f1m-IERoDbQdUMNJ.cjs} +1 -1
  24. package/browser/cjs/index.cjs +2 -2
  25. package/browser/cjs/{CP_eU6V1jkcP4WtQ.cjs → j8ba84pFnKx2xWvW.cjs} +2 -2
  26. package/browser/cjs/{BQyDL6TxMqPmkugH.cjs → xRKATlLPCXjQqLyR.cjs} +1 -1
  27. package/browser/esm/{DpJqkBHKECEClAah.mjs → B3E24eA0KrqZGcc6.mjs} +6 -6
  28. package/browser/esm/{C8eXD0cT7ZPGYNCl.mjs → B7spDz0f3MErGle0.mjs} +21 -20
  29. package/browser/esm/{DTW06ga7BIWfkpc3.mjs → BQSJPoCxw_CbM_GB.mjs} +11 -10
  30. package/browser/esm/{QNCUQO7a-oixacNG.mjs → C0HMqAubZ7789bne.mjs} +1 -1
  31. package/browser/esm/{B1fKMAH-vx3TJ0ii.mjs → C72RDqmHBctKx6yu.mjs} +1 -1
  32. package/browser/esm/{B9IRFHtuYz6_J4Sj.mjs → CSEDlIO1VyJbsJUh.mjs} +8 -8
  33. package/browser/esm/{BLiRvSBEJD-6dWH0.mjs → Ca8SXunZNcPT82kM.mjs} +1 -1
  34. package/browser/esm/{DJVGX60ly4BfiFse.mjs → Cbj_GBiwqMbV7xNp.mjs} +44 -43
  35. package/browser/esm/Cdr3G0s5DSG6bX6w.mjs +52 -0
  36. package/browser/esm/{5uqs7KjiX3pi6cd5.mjs → CoPf1k9QR8u7c9dJ.mjs} +10 -10
  37. package/browser/esm/{BXvDIYhOIHqmZQQo.mjs → CyUxX9cLgslryjv5.mjs} +1 -1
  38. package/browser/esm/{CE3LjR3RfccnMUQt.mjs → D7kxhKOLn3UAkGzE.mjs} +13 -13
  39. package/browser/esm/{PbEXrCdkQc02gfVZ.mjs → DGIZQy_4rgYfRKUt.mjs} +10 -10
  40. package/browser/esm/{BVjzMl2EkoD1ceqn.mjs → DJmEZGVO4DnLsMSK.mjs} +7 -7
  41. package/browser/esm/{BIQXdDApQqsa7WWH.mjs → DTY6o1fHyy7Ldm2E.mjs} +1 -1
  42. package/browser/esm/DhuuaOVgVDtHsSft.mjs +1467 -0
  43. package/browser/esm/{q1cTyqrb2yKNSDq5.mjs → Dig0J4i2Urjl9Z--.mjs} +170 -169
  44. package/browser/esm/{DrzfnYtbTkZ0Vztm.mjs → DmqNGi-j-G64Ah3R.mjs} +2 -2
  45. package/browser/esm/{BeMVD9uqSXo5o9U7.mjs → DnH6tB6PvfbWK92p.mjs} +13 -13
  46. package/browser/esm/{CTdZQdi5BoNPu7rZ.mjs → Sg5ukHMhDKaJmwC5.mjs} +65 -65
  47. package/browser/esm/{BCiGYy5wMbcNSF3g.mjs → TfEcJxbuvenMTWzb.mjs} +1 -1
  48. package/browser/esm/{0qppnWkLyeMGOizg.mjs → buSI99ehYQ3RDGh9.mjs} +1 -1
  49. package/browser/esm/index.mjs +74 -73
  50. package/browser/esm/{Dy7xNyqd4jfUcj2t.mjs → n91lwJODGYpl_0sb.mjs} +1 -1
  51. package/browser/esm/{B0k5xuPgYO9B-vto.mjs → oJzTpcQBF382AsoK.mjs} +16 -16
  52. package/browser/esm/tEvhefgL1pPAbBne.mjs +19828 -0
  53. package/licenses/dependencies.txt +156 -178
  54. package/node/esm/{BiiNcUkTIcWxOabS.mjs → B794OzAyQ2S3DUvE.mjs} +2 -2
  55. package/node/esm/{tk69oRoeZHf4vk1z.mjs → B9eTznHjWdKEfnmd.mjs} +13 -13
  56. package/node/esm/{CZlpZhqzgcRkv_bX.mjs → BA_RIYlnXvTDRdhy.mjs} +9 -9
  57. package/node/esm/{BnbhKW27rQ185mOb.mjs → BBUuSB5DBjPGuwXm.mjs} +2 -2
  58. package/node/esm/{Br_lQeehvACsDkzu.mjs → BPAWh9TN2AA_qg8Q.mjs} +13 -12
  59. package/node/esm/{Ro_fz9s3_2DHfiE-.mjs → BWxdcvg2Tp0Ysth3.mjs} +1 -1
  60. package/node/esm/{zQ0ozpm04cC2OG19.mjs → BX8ZbzM8Zfe_MtDJ.mjs} +22 -22
  61. package/node/esm/{DbzTWKX0Q8SGsGA4.mjs → BdXN9t5_NDfrKA2E.mjs} +29 -29
  62. package/node/esm/CaySzQgftaLFVU-a.mjs +25 -0
  63. package/node/esm/{CI3U9rEYT3a_Biw5.mjs → CrwtN-27La5MZ9yI.mjs} +1 -1
  64. package/node/esm/{cT4-HbwV7TBlRjja.mjs → Cug20O7hGugaeSka.mjs} +276 -275
  65. package/node/esm/{Cd5wE06_wa41Z6Wt.mjs → CwZUEv9f0ywDMV-Z.mjs} +12 -12
  66. package/node/esm/{CZA-oIez6io5vwv1.mjs → D0fA-N8eAJVD4a_b.mjs} +1 -1
  67. package/node/esm/{CBlVCA0uvCwlok1v.mjs → D1aU9ydYjq7iFVAr.mjs} +1 -1
  68. package/node/esm/{6L7TnSLCvI3zabFK.mjs → D2gUK2WMUbCR0-Kw.mjs} +24 -23
  69. package/node/esm/{C0eiYtK0Lkx4fQGc.mjs → D4HUF8JC55LqF87u.mjs} +86 -85
  70. package/node/esm/DOC-LvGYDU9FpsDS.mjs +553 -0
  71. package/node/esm/{D4ydLNNfUH8D41A7.mjs → DXNmGNM6ItcTOZyo.mjs} +1 -1
  72. package/node/esm/{D6wjzUXEh-Q71uoB.mjs → DY3eG9Mfo_-xsWGD.mjs} +2 -2
  73. package/node/esm/{BY1cZ8MXawge5drQ.mjs → Djc-gCpBoXNpI6yL.mjs} +2 -2
  74. package/node/esm/{BvOnjWMz5o3z-qWe.mjs → ILfHRiSFod9A2fKN.mjs} +1 -1
  75. package/node/esm/Sc5EyWF8aAI0xzOO.mjs +308 -0
  76. package/node/esm/{fENiUIb3u1Oy7Amv.mjs → dasEgLXLO2WWGkUm.mjs} +8 -8
  77. package/node/esm/index.mjs +12873 -41673
  78. package/package.json +8 -8
  79. package/browser/cjs/BAGEDalcFwfUrDOV.cjs +0 -6
  80. package/browser/cjs/BMcvveT3JniLuWWw.cjs +0 -6
  81. package/browser/cjs/B_JRx-UyLNBI8Jr9.cjs +0 -6
  82. package/browser/cjs/BbCINWmJNJ1UoABX.cjs +0 -6
  83. package/browser/cjs/BdPTNgv6BQFiJXiH.cjs +0 -238
  84. package/browser/cjs/BgqUvcQGSrZtIsnp.cjs +0 -6
  85. package/browser/cjs/Bub0lBbzpOagYy-6.cjs +0 -12
  86. package/browser/cjs/BvV0mrFKi8cdsSFF.cjs +0 -6
  87. package/browser/cjs/BxCxDRRwMVIA9T0Q.cjs +0 -6
  88. package/browser/cjs/BxbbUhKRSHRfeoNL.cjs +0 -32
  89. package/browser/cjs/C3RxbodVdJ0MR0eY.cjs +0 -11
  90. package/browser/cjs/C4zc2Ll270E135fR.cjs +0 -6
  91. package/browser/cjs/CEkRIfptK2yyy4PS.cjs +0 -6
  92. package/browser/cjs/CGp4fzG2ZIsJmB72.cjs +0 -6
  93. package/browser/cjs/CT5f8xMCNbOhih6R.cjs +0 -12
  94. package/browser/cjs/CV6WjeLkZrGoM4SB.cjs +0 -6
  95. package/browser/cjs/CZA_Av5pG0M1RgJK.cjs +0 -6
  96. package/browser/cjs/Ca6YJnV2DBQrqx0b.cjs +0 -124
  97. package/browser/cjs/Ci7CqdgErq0IGcl5.cjs +0 -6
  98. package/browser/cjs/CmROQEOLO7s-rzZW.cjs +0 -6
  99. package/browser/cjs/Cnc0-T-tLmqyX7Mq.cjs +0 -6
  100. package/browser/cjs/Ct6nh7ILtW_PHbB3.cjs +0 -6
  101. package/browser/cjs/CtmTxxgCijL1ZuPa.cjs +0 -6
  102. package/browser/cjs/CyUaP6X--CmuILoU.cjs +0 -6
  103. package/browser/cjs/D598Bk4npBA6UESy.cjs +0 -6
  104. package/browser/cjs/D7asEaPB97YVwe1v.cjs +0 -6
  105. package/browser/cjs/D9lDObZe3CkEPPGI.cjs +0 -6
  106. package/browser/cjs/DFrTuKkfDctye00L.cjs +0 -7
  107. package/browser/cjs/DNquPukGj-6iRmmP.cjs +0 -13
  108. package/browser/cjs/DOXD9gLvRI-UN_9l.cjs +0 -6
  109. package/browser/cjs/DRhcrHz-whpKmHXb.cjs +0 -6
  110. package/browser/cjs/DdBygPkI15syG3qE.cjs +0 -1501
  111. package/browser/cjs/DrgfA0AIigevE5fO.cjs +0 -15
  112. package/browser/cjs/DyjUI4ZuHoE2UtYP.cjs +0 -6
  113. package/browser/cjs/Ou0ysDOtKXD_MCyi.cjs +0 -6
  114. package/browser/cjs/Tkr7WOf1Km7F6jc1.cjs +0 -6
  115. package/browser/cjs/Ui6MyVXLy4hSZZln.cjs +0 -6
  116. package/browser/cjs/ZSSSnynZ-cYurCZ4.cjs +0 -6
  117. package/browser/cjs/hDl6HNkylTvv-qT3.cjs +0 -6
  118. package/browser/cjs/tLWq6abRGIT6oIrd.cjs +0 -6
  119. package/browser/cjs/xS50A4hbimnAA3g8.cjs +0 -6
  120. package/browser/esm/6qF6HMFmVJEMu5ze.mjs +0 -10
  121. package/browser/esm/91ZejdYNSNvEQyri.mjs +0 -43655
  122. package/browser/esm/B6KWiZxcJDzPKz7A.mjs +0 -10
  123. package/browser/esm/BGfz8kkDQwuckxnU.mjs +0 -10
  124. package/browser/esm/BNWWT7cxdCiMaWFC.mjs +0 -10
  125. package/browser/esm/BSB3k2C-vxhRI9pk.mjs +0 -5582
  126. package/browser/esm/Baiv07hkxLIkAcoq.mjs +0 -10
  127. package/browser/esm/Bc6K-JiRW1SodxIq.mjs +0 -10
  128. package/browser/esm/BpfyDNlbLX4dOPvj.mjs +0 -24
  129. package/browser/esm/Bs0RJigDhPR1WzFT.mjs +0 -21
  130. package/browser/esm/BtP3Wpc2YRk8W2KZ.mjs +0 -12
  131. package/browser/esm/BwWIlZYqfL7BAjSI.mjs +0 -10
  132. package/browser/esm/C7YTh7Sm32Nt_Kv5.mjs +0 -10
  133. package/browser/esm/CE1gssQmn8QAeBEI.mjs +0 -10
  134. package/browser/esm/CE3vBPdWXPf3M3h2.mjs +0 -51
  135. package/browser/esm/CJigh9OXZ04sdTLc.mjs +0 -1466
  136. package/browser/esm/CLHgqHwohIYlAAUF.mjs +0 -472
  137. package/browser/esm/CTuGnJMMNAi4EKiy.mjs +0 -10
  138. package/browser/esm/CUZmKq_NPR_OCibb.mjs +0 -10
  139. package/browser/esm/ChIE2YGkU9_cnmDj.mjs +0 -10
  140. package/browser/esm/Cv8VSqfWEaftgiTH.mjs +0 -10
  141. package/browser/esm/CvJUNcDyz497Gxl7.mjs +0 -10
  142. package/browser/esm/D2OQwThnobBdsQ1x.mjs +0 -3934
  143. package/browser/esm/D73ljnqYKCXMdyPd.mjs +0 -1575
  144. package/browser/esm/DAPWMPwVGQJsblPQ.mjs +0 -10
  145. package/browser/esm/Dsu3RRvUfCUWRZ6q.mjs +0 -10
  146. package/browser/esm/DxEtUnQEyEYWuqL7.mjs +0 -820
  147. package/browser/esm/Dxrje6uVvr2LGdV7.mjs +0 -10
  148. package/browser/esm/JMr0jtu67PC8clGf.mjs +0 -10
  149. package/browser/esm/QhTxW6tFl-So20AH.mjs +0 -425
  150. package/browser/esm/_tXPsCW6hHTdj45y.mjs +0 -10
  151. package/browser/esm/bJWg5_Jxjizyivdn.mjs +0 -29
  152. package/browser/esm/cVH-KYzKaUP4C3dh.mjs +0 -10
  153. package/browser/esm/cp8pKSzbJqh-zBtd.mjs +0 -10
  154. package/browser/esm/dmuee2Is7r5Q4B3M.mjs +0 -10
  155. package/node/esm/0CbEJyCpbWyFHdK1.mjs +0 -4002
  156. package/node/esm/6qF6HMFmVJEMu5ze.mjs +0 -10
  157. package/node/esm/A5WewF_ecyRMfEW9.mjs +0 -80
  158. package/node/esm/B0rQMzpUsBE47H-k.mjs +0 -10
  159. package/node/esm/B3TBImEZBAbKsEAq.mjs +0 -10
  160. package/node/esm/B6KWiZxcJDzPKz7A.mjs +0 -10
  161. package/node/esm/B8tFaB-W9JcM6xhy.mjs +0 -29
  162. package/node/esm/BGfz8kkDQwuckxnU.mjs +0 -10
  163. package/node/esm/BKb0zrP-OexxgIYb.mjs +0 -24
  164. package/node/esm/BNWWT7cxdCiMaWFC.mjs +0 -10
  165. package/node/esm/BQBHsnvwWPo5kQhy.mjs +0 -10
  166. package/node/esm/BZTLlsc-NvE1_mTb.mjs +0 -555
  167. package/node/esm/Baiv07hkxLIkAcoq.mjs +0 -10
  168. package/node/esm/Bc6K-JiRW1SodxIq.mjs +0 -10
  169. package/node/esm/BiVFM0O-4h4yY7oa.mjs +0 -10
  170. package/node/esm/Bq-gS5qqB1Jrllm2.mjs +0 -307
  171. package/node/esm/Bv7SpuMBfsaGEFxP.mjs +0 -16
  172. package/node/esm/BwWIlZYqfL7BAjSI.mjs +0 -10
  173. package/node/esm/C0qF-AAqNGDMeSVO.mjs +0 -813
  174. package/node/esm/CE1gssQmn8QAeBEI.mjs +0 -10
  175. package/node/esm/CUZmKq_NPR_OCibb.mjs +0 -10
  176. package/node/esm/ChIE2YGkU9_cnmDj.mjs +0 -10
  177. package/node/esm/CvJUNcDyz497Gxl7.mjs +0 -10
  178. package/node/esm/DAPWMPwVGQJsblPQ.mjs +0 -10
  179. package/node/esm/DJtTsiROzkkD2wRx.mjs +0 -5642
  180. package/node/esm/DLEDFraKFWvZtfvX.mjs +0 -10
  181. package/node/esm/DNYPU79SNlXuHN8j.mjs +0 -10
  182. package/node/esm/DjhMNAleaI3hhcHG.mjs +0 -13
  183. package/node/esm/DtUFCYSrTGcBjdBN.mjs +0 -453
  184. package/node/esm/Dxrje6uVvr2LGdV7.mjs +0 -10
  185. package/node/esm/EebvqIVFwWH3slRt.mjs +0 -14
  186. package/node/esm/cVH-KYzKaUP4C3dh.mjs +0 -10
  187. package/node/esm/cp8pKSzbJqh-zBtd.mjs +0 -10
  188. package/node/esm/dmuee2Is7r5Q4B3M.mjs +0 -10
@@ -1,11 +1,12 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { ay as t, ab as e, ah as s, i as r, ac as o, az as i, aA as n, aB as l, l as a, v as c, aC as u } from "./index.mjs";
8
- import { c as h, b as p, r as g, t as d, a as m, p as b, d as f } from "./C0eiYtK0Lkx4fQGc.mjs";
7
+ import { e as t } from "./index.mjs";
8
+ import { c as e, b as s, r, t as o, a as i, p as n, d as l } from "./D4HUF8JC55LqF87u.mjs";
9
+ import { IFont as a, IAutoFilter as c, Sort as u, IRange as h, AddressUtils as p, IFill as g, IStyle as m, ITextFrame as d, FormulaError as b, IBorder as f } from "@sheetxl/sdk";
9
10
  class A {
10
11
  constructor(t2) {
11
12
  this.list = t2;
@@ -75,11 +76,11 @@ class w {
75
76
  }
76
77
  return 1 === s2.length ? s2[0] : 0 === s2.length ? null : new A(s2);
77
78
  }
78
- getFromPath(t2, e2) {
79
- return c.getFromPath(t2, e2);
79
+ getFromPath(e2, s2) {
80
+ return t.getFromPath(e2, s2);
80
81
  }
81
- setToPath(t2, e2, s2) {
82
- return c.setToPath(t2, e2, s2);
82
+ setToPath(e2, s2, r2) {
83
+ return t.setToPath(e2, s2, r2);
83
84
  }
84
85
  getValAttrAsString(t2, e2) {
85
86
  let s2 = this.evaluate(t2, e2);
@@ -146,10 +147,10 @@ class N {
146
147
  t2.copyFromAttribute(e2, "Target", r2, "target"), t2.copyFromAttribute(e2, "Type", r2, "type"), t2.copyFromAttribute(e2, "TargetMode", r2, "targetMode"), s2[e2.getAttribute("Id")] = r2;
147
148
  }
148
149
  }
149
- const O = (t2, e2) => {
150
- if (t2 || !t2.hasAttribute("rot")) return;
151
- const s2 = t2.getAttribute("rot"), r2 = c.roundAccurately(b(s2), 2);
152
- -1e3 !== r2 && (e2.rotation = r2);
150
+ const O = (e2, s2) => {
151
+ if (e2 || !e2.hasAttribute("rot")) return;
152
+ const r2 = e2.getAttribute("rot"), o2 = t.roundAccurately(n(r2), 2);
153
+ -1e3 !== o2 && (s2.rotation = o2);
153
154
  }, T = (t2, e2, s2, r2, o2) => {
154
155
  const i2 = t2.getValAttrAsString(r2, e2);
155
156
  null !== i2 && (s2[o2] = i2);
@@ -237,27 +238,27 @@ class _ {
237
238
  visit(t2, e2, s2) {
238
239
  }
239
240
  processStroke(t2, e2, s2) {
240
- const r2 = {}, o2 = t2.evaluate("ln", e2);
241
- if (o2) {
242
- o2.hasAttribute("algn") && (r2.align = B.fromOoxmlAlignment(o2.getAttribute("algn"))), o2.hasAttribute("cap") && (r2.lineCap = B.fromOoxmlLineCap(o2.getAttribute("cap"))), o2.hasAttribute("cmpd") && (r2.compound = B.fromOoxmlCompound(o2.getAttribute("cmpd"))), o2.hasAttribute("w") && (r2.width = d(o2.getAttribute("w")));
243
- const e3 = t2.evaluate("miter", o2);
244
- e3 && (r2.lineJoin = "miter", e3.hasAttribute("lim") && (r2.miter = parseFloat(e3.getAttribute("lim")))), t2.evaluate("bevel", o2) && (r2.lineJoin = "bevel"), t2.evaluate("round", o2) && (r2.lineJoin = "round");
245
- const i2 = t2.evaluate("custDash", o2);
246
- if (i2) {
247
- const e4 = t2.evaluate("ds", i2);
241
+ const r2 = {}, n2 = t2.evaluate("ln", e2);
242
+ if (n2) {
243
+ n2.hasAttribute("algn") && (r2.align = B.fromOoxmlAlignment(n2.getAttribute("algn"))), n2.hasAttribute("cap") && (r2.lineCap = B.fromOoxmlLineCap(n2.getAttribute("cap"))), n2.hasAttribute("cmpd") && (r2.compound = B.fromOoxmlCompound(n2.getAttribute("cmpd"))), n2.hasAttribute("w") && (r2.width = o(n2.getAttribute("w")));
244
+ const e3 = t2.evaluate("miter", n2);
245
+ e3 && (r2.lineJoin = "miter", e3.hasAttribute("lim") && (r2.miter = parseFloat(e3.getAttribute("lim")))), t2.evaluate("bevel", n2) && (r2.lineJoin = "bevel"), t2.evaluate("round", n2) && (r2.lineJoin = "round");
246
+ const l2 = t2.evaluate("custDash", n2);
247
+ if (l2) {
248
+ const e4 = t2.evaluate("ds", l2);
248
249
  if (e4 && e4.length > 0) {
249
250
  let t3 = "";
250
251
  for (let s3 = 0; s3 < e4.length; s3++) {
251
252
  const r3 = e4.item(s3);
252
- t3 += m(r3.getAttribute("d")) + "," + m(r3.getAttribute("sp"));
253
+ t3 += i(r3.getAttribute("d")) + "," + i(r3.getAttribute("sp"));
253
254
  }
254
255
  r2.dash = t3;
255
256
  }
256
257
  }
257
- const n2 = t2.evaluate("prstDash", o2);
258
- n2 && n2.hasAttribute("val") && (r2.dash = n2.getAttribute("val")), this.parseEndElement(t2, o2, r2, "headEnd", "head"), this.parseEndElement(t2, o2, r2, "tailEnd", "tail");
259
- const l2 = this.processFill(t2, o2, s2);
260
- r2.fill = l2;
258
+ const a2 = t2.evaluate("prstDash", n2);
259
+ a2 && a2.hasAttribute("val") && (r2.dash = a2.getAttribute("val")), this.parseEndElement(t2, n2, r2, "headEnd", "head"), this.parseEndElement(t2, n2, r2, "tailEnd", "tail");
260
+ const c2 = this.processFill(t2, n2, s2);
261
+ r2.fill = c2;
261
262
  }
262
263
  return r2;
263
264
  }
@@ -268,65 +269,65 @@ class _ {
268
269
  s2[o2 + "Size"] = t3 + "-" + e3;
269
270
  }
270
271
  }
271
- processFill(t2, e2, s2) {
272
- const r2 = {};
273
- if (t2.evaluate("noFill", e2)) return r2.none = true, r2;
274
- const o2 = t2.evaluate("solidFill", e2);
275
- if (o2) {
276
- const e3 = this.processAdjColor(t2, o2);
277
- return e3 && (r2.solid = e3), r2;
278
- }
279
- const i2 = t2.evaluate("gradFill", e2);
272
+ processFill(t2, e2, r2) {
273
+ const o2 = {};
274
+ if (t2.evaluate("noFill", e2)) return o2.none = true, o2;
275
+ const i2 = t2.evaluate("solidFill", e2);
280
276
  if (i2) {
281
- i2.hasAttribute("rotWithShape") && (r2.isRotated = "1" === i2.getAttribute("rotWithShape"));
282
- const e3 = this.processGradFill(t2, i2);
283
- return r2.gradient = e3, r2;
277
+ const e3 = this.processAdjColor(t2, i2);
278
+ return e3 && (o2.solid = e3), o2;
284
279
  }
285
- const n2 = t2.evaluate("pattFill", e2);
280
+ const n2 = t2.evaluate("gradFill", e2);
286
281
  if (n2) {
287
- const e3 = this.processPatternFill(t2, n2);
288
- return r2.pattern = e3, r2;
282
+ n2.hasAttribute("rotWithShape") && (o2.isRotated = "1" === n2.getAttribute("rotWithShape"));
283
+ const e3 = this.processGradFill(t2, n2);
284
+ return o2.gradient = e3, o2;
289
285
  }
290
- const l2 = t2.evaluate("blipFill", e2);
286
+ const l2 = t2.evaluate("pattFill", e2);
291
287
  if (l2) {
292
- l2.hasAttribute("rotWithShape") && (r2.isRotated = p(l2.getAttribute("rotWithShape"))), l2.hasAttribute("dpi") && (r2.dpi = l2.getAttribute("dpi"));
293
- const e3 = this.processImageFill(t2, l2);
294
- return r2.image = e3, r2;
288
+ const e3 = this.processPatternFill(t2, l2);
289
+ return o2.pattern = e3, o2;
290
+ }
291
+ const a2 = t2.evaluate("blipFill", e2);
292
+ if (a2) {
293
+ a2.hasAttribute("rotWithShape") && (o2.isRotated = s(a2.getAttribute("rotWithShape"))), a2.hasAttribute("dpi") && (o2.dpi = a2.getAttribute("dpi"));
294
+ const e3 = this.processImageFill(t2, a2);
295
+ return o2.image = e3, o2;
295
296
  }
296
- return r2.none = true, r2;
297
+ return o2.none = true, o2;
297
298
  }
298
299
  processGradFill(t2, e2) {
299
- const s2 = {}, r2 = t2.evaluate("lin", e2);
300
- if (r2) {
301
- if (s2.type = "linear", r2.hasAttribute("ang")) {
302
- const t3 = b(r2.getAttribute("ang"));
303
- s2.angle = t3;
300
+ const r2 = {}, o2 = t2.evaluate("lin", e2);
301
+ if (o2) {
302
+ if (r2.type = "linear", o2.hasAttribute("ang")) {
303
+ const t3 = n(o2.getAttribute("ang"));
304
+ r2.angle = t3;
304
305
  }
305
- if (r2.hasAttribute("scaled")) {
306
- const t3 = p(r2.getAttribute("scaled"));
307
- s2.scaled = t3;
306
+ if (o2.hasAttribute("scaled")) {
307
+ const t3 = s(o2.getAttribute("scaled"));
308
+ r2.scaled = t3;
308
309
  }
309
310
  }
310
- const o2 = {};
311
- e2.hasAttribute("flip") && (o2.mirror = e2.getAttribute("flip")), Object.keys(o2).length > 0 && (s2.tile = o2);
312
- const i2 = t2.evaluate("path", e2);
313
- if (i2) {
314
- i2.hasAttribute("path") && (s2.type = B.fromOoxmlGradientType(i2.getAttribute("path")));
315
- const e3 = t2.evaluate("fillToRect", i2);
316
- e3 && (s2.fillTo = this.getRect(e3));
311
+ const l2 = {};
312
+ e2.hasAttribute("flip") && (l2.mirror = e2.getAttribute("flip")), Object.keys(l2).length > 0 && (r2.tile = l2);
313
+ const a2 = t2.evaluate("path", e2);
314
+ if (a2) {
315
+ a2.hasAttribute("path") && (r2.type = B.fromOoxmlGradientType(a2.getAttribute("path")));
316
+ const e3 = t2.evaluate("fillToRect", a2);
317
+ e3 && (r2.fillTo = this.getRect(e3));
317
318
  }
318
- const n2 = t2.evaluate("tileRect", e2);
319
- n2 && (s2.tile.bounds = this.getRect(n2));
320
- const l2 = [], a2 = t2.evaluate("gsLst/gs", e2);
321
- for (let e3 = 0; a2 && e3 < a2.length; e3++) {
322
- const s3 = a2.item(e3), r3 = { offset: m(s3.getAttribute("pos")), color: this.processAdjColor(t2, s3) };
323
- l2.push(r3);
319
+ const c2 = t2.evaluate("tileRect", e2);
320
+ c2 && (r2.tile.bounds = this.getRect(c2));
321
+ const u2 = [], h2 = t2.evaluate("gsLst/gs", e2);
322
+ for (let e3 = 0; h2 && e3 < h2.length; e3++) {
323
+ const s2 = h2.item(e3), r3 = { offset: i(s2.getAttribute("pos")), color: this.processAdjColor(t2, s2) };
324
+ u2.push(r3);
324
325
  }
325
- return l2.length > 0 && (s2.stops = l2), s2;
326
+ return u2.length > 0 && (r2.stops = u2), r2;
326
327
  }
327
328
  getRect(t2) {
328
329
  const e2 = {};
329
- return t2.hasAttribute("t") && (e2.t = m(t2.getAttribute("t"))), t2.hasAttribute("l") && (e2.l = m(t2.getAttribute("l"))), t2.hasAttribute("b") && (e2.b = m(t2.getAttribute("b"))), t2.hasAttribute("r") && (e2.r = m(t2.getAttribute("r"))), 0 === Object.keys(e2).length ? null : e2;
330
+ return t2.hasAttribute("t") && (e2.t = i(t2.getAttribute("t"))), t2.hasAttribute("l") && (e2.l = i(t2.getAttribute("l"))), t2.hasAttribute("b") && (e2.b = i(t2.getAttribute("b"))), t2.hasAttribute("r") && (e2.r = i(t2.getAttribute("r"))), 0 === Object.keys(e2).length ? null : e2;
330
331
  }
331
332
  processImageFill(t2, e2) {
332
333
  return { ref: "https://cdn.sheetxl.com/public/logo-color-square-onwhite.png", tile: false };
@@ -361,7 +362,7 @@ class _ {
361
362
  return l2 ? this.processSrgbClrElement(t2, l2) : null;
362
363
  }
363
364
  processScrgbClrElement(t2, e2) {
364
- let s2 = "lrgba(" + m(e2.getAttribute("r")) + "," + m(e2.getAttribute("g")) + "," + m(e2.getAttribute("b")) + ")";
365
+ let s2 = "lrgba(" + i(e2.getAttribute("r")) + "," + i(e2.getAttribute("g")) + "," + i(e2.getAttribute("b")) + ")";
365
366
  return s2 += this.processAdjustments(t2, e2), s2;
366
367
  }
367
368
  processSrgbClrElement(t2, e2) {
@@ -369,7 +370,7 @@ class _ {
369
370
  return s2 += this.processAdjustments(t2, e2), s2;
370
371
  }
371
372
  processHslClr(t2, e2) {
372
- let s2 = "hsl(" + b(e2.getAttribute("hue")) + "," + m(e2.getAttribute("sat")) + "," + m(e2.getAttribute("lum")) + ")";
373
+ let s2 = "hsl(" + n(e2.getAttribute("hue")) + "," + i(e2.getAttribute("sat")) + "," + i(e2.getAttribute("lum")) + ")";
373
374
  return s2 += this.processAdjustments(t2, e2), s2;
374
375
  }
375
376
  processClrWithValAttribute(t2, e2) {
@@ -398,22 +399,22 @@ class _ {
398
399
  }
399
400
  }
400
401
  class j extends _ {
401
- visit(t2, e2, s2) {
402
+ visit(t2, s2, r2) {
402
403
  try {
403
- const r2 = t2.evaluate("xfrm", e2);
404
- if (r2) {
405
- O(r2, s2);
406
- const e3 = { x: 0, y: 0, width: 0, height: 0 }, o3 = t2.evaluate("off", r2);
407
- o3 && (e3.x = h(o3.getAttribute("x")) ?? 0, e3.y = h(o3.getAttribute("y")) ?? 0);
408
- const i3 = t2.evaluate("ext", r2);
409
- o3 && (e3.width = h(i3.getAttribute("cx")) ?? 0, e3.height = h(i3.getAttribute("cy")) ?? 0), s2.bounds = e3;
404
+ const o2 = t2.evaluate("xfrm", s2);
405
+ if (o2) {
406
+ O(o2, r2);
407
+ const s3 = { x: 0, y: 0, width: 0, height: 0 }, i3 = t2.evaluate("off", o2);
408
+ i3 && (s3.x = e(i3.getAttribute("x")) ?? 0, s3.y = e(i3.getAttribute("y")) ?? 0);
409
+ const n3 = t2.evaluate("ext", o2);
410
+ i3 && (s3.width = e(n3.getAttribute("cx")) ?? 0, s3.height = e(n3.getAttribute("cy")) ?? 0), r2.bounds = s3;
410
411
  }
411
- const o2 = t2.evaluate("prstGeom", e2);
412
- o2?.hasAttribute("prst") ? s2.geometry = o2?.getAttribute("prst") : t2.evaluate("customGeom", e2) && console.warn("customGeom not supported yet");
413
- const i2 = this.processFill(t2, e2, s2);
414
- i2 && Object.keys(i2).length > 0 && (s2.fill = i2);
415
- const n2 = this.processStroke(t2, e2, s2);
416
- return n2 && Object.keys(n2).length > 0 && (s2.stroke = n2), s2;
412
+ const i2 = t2.evaluate("prstGeom", s2);
413
+ i2?.hasAttribute("prst") ? r2.geometry = i2?.getAttribute("prst") : t2.evaluate("customGeom", s2) && console.warn("customGeom not supported yet");
414
+ const n2 = this.processFill(t2, s2, r2);
415
+ n2 && Object.keys(n2).length > 0 && (r2.fill = n2);
416
+ const l2 = this.processStroke(t2, s2, r2);
417
+ return l2 && Object.keys(l2).length > 0 && (r2.stroke = l2), r2;
417
418
  } catch (t3) {
418
419
  throw console.warn(t3), new Error("Unexpected Error parsing Shape Properties element");
419
420
  }
@@ -653,17 +654,17 @@ class W {
653
654
  const a2 = t2.evaluate("bodyPr", e2);
654
655
  a2 && O(a2, s2);
655
656
  }
656
- parseTextProperties(e2, s2, r2) {
657
- if (!s2) return;
658
- s2.hasAttribute("sz") && (r2.size = parseFloat(s2.getAttribute("sz")) / 100), s2.hasAttribute("b") && (r2.weight = "1" === s2.getAttribute("b") ? 700 : 400), s2.hasAttribute("i") && (r2.italic = "1" === s2.getAttribute("i")), s2.hasAttribute("u") && (r2.underline = s2.getAttribute("u")), s2.hasAttribute("strike") && (r2.strike = s2.getAttribute("strike"));
659
- const o2 = e2.evaluate("latin", s2);
660
- if (o2 && !o2.getAttribute("typeface").startsWith("+")) {
661
- const e3 = r2.font ?? {};
662
- if (o2.hasAttribute("typeface") && (e3.family = o2.getAttribute("typeface")), o2.hasAttribute("panose")) {
663
- const s3 = o2.getAttribute("panose");
664
- s3 && (e3.fallbacks = [t.getPanoseFallback(s3)]);
657
+ parseTextProperties(t2, e2, s2) {
658
+ if (!e2) return;
659
+ e2.hasAttribute("sz") && (s2.size = parseFloat(e2.getAttribute("sz")) / 100), e2.hasAttribute("b") && (s2.weight = "1" === e2.getAttribute("b") ? 700 : 400), e2.hasAttribute("i") && (s2.italic = "1" === e2.getAttribute("i")), e2.hasAttribute("u") && (s2.underline = e2.getAttribute("u")), e2.hasAttribute("strike") && (s2.strike = e2.getAttribute("strike"));
660
+ const r2 = t2.evaluate("latin", e2);
661
+ if (r2 && !r2.getAttribute("typeface").startsWith("+")) {
662
+ const t3 = s2.font ?? {};
663
+ if (r2.hasAttribute("typeface") && (t3.family = r2.getAttribute("typeface")), r2.hasAttribute("panose")) {
664
+ const e3 = r2.getAttribute("panose");
665
+ e3 && (t3.fallbacks = [a.getPanoseFallback(e3)]);
665
666
  }
666
- o2.hasAttribute("pitchFamily") && (e3.pitch = o2.getAttribute("pitchFamily")), o2.hasAttribute("charset") && (e3.charset = o2.getAttribute("charset")), Object.keys(e3).length > 0 && (r2.font = e3);
667
+ r2.hasAttribute("pitchFamily") && (t3.pitch = r2.getAttribute("pitchFamily")), r2.hasAttribute("charset") && (t3.charset = r2.getAttribute("charset")), Object.keys(t3).length > 0 && (s2.font = t3);
667
668
  }
668
669
  }
669
670
  }
@@ -761,14 +762,14 @@ class Z {
761
762
  const n2 = t2.evaluate("minorFont", e2), l2 = this.processFontElement(t2, n2, {});
762
763
  return r2.minorFont = l2.family, i2.fallbacks && (r2.minorFallbacks = l2.fallbacks), s2.fonts = r2, r2;
763
764
  }
764
- processFontElement(e2, s2, r2) {
765
- if (!s2) return;
766
- const o2 = e2.evaluate("latin", s2);
767
- if (!o2) return;
768
- const i2 = o2.getAttribute("typeface");
769
- i2 && (r2.family = i2);
770
- const n2 = o2.getAttribute("panose");
771
- return n2 && (r2.fallbacks = [t.getPanoseFallback(n2)]), r2;
765
+ processFontElement(t2, e2, s2) {
766
+ if (!e2) return;
767
+ const r2 = t2.evaluate("latin", e2);
768
+ if (!r2) return;
769
+ const o2 = r2.getAttribute("typeface");
770
+ o2 && (s2.family = o2);
771
+ const i2 = r2.getAttribute("panose");
772
+ return i2 && (s2.fallbacks = [a.getPanoseFallback(i2)]), s2;
772
773
  }
773
774
  }
774
775
  class tt {
@@ -788,30 +789,30 @@ class et {
788
789
  const r2 = {};
789
790
  return t2.copyFromAttribute(e2, "ref", r2), this.processFilterColumns(t2, e2, r2), Object.keys(r2).length > 0 && (s2.filter = r2), r2;
790
791
  }
791
- processColorFilter(t2, s2) {
792
- const r2 = { type: e.Type.Color };
793
- return t2.copyFromAttribute(s2, "cellColor", r2, "cellColor", t2.BOOLEAN_COPY), t2.copyFromAttribute(s2, "dxfId", r2, "styleId", t2.INT_COPY), r2;
792
+ processColorFilter(t2, e2) {
793
+ const s2 = { type: c.Type.Color };
794
+ return t2.copyFromAttribute(e2, "cellColor", s2, "cellColor", t2.BOOLEAN_COPY), t2.copyFromAttribute(e2, "dxfId", s2, "styleId", t2.INT_COPY), s2;
794
795
  }
795
796
  processCustomFilter(t2, e2) {
796
797
  const s2 = {};
797
798
  return t2.copyFromAttribute(e2, "operator", s2, "operator", t2.BOOLEAN_COPY), t2.copyFromAttribute(e2, "val", s2, "val"), s2;
798
799
  }
799
- processCustomFilters(t2, s2) {
800
- const r2 = { type: e.Type.Custom };
801
- t2.copyFromAttribute(s2, "and", r2, "and", t2.BOOLEAN_COPY);
802
- const o2 = s2.childNodes;
803
- r2.filters = [];
804
- for (let e2 = 0; e2 < o2.length; e2++) {
805
- const s3 = o2.item(e2);
806
- if (1 !== s3.nodeType) continue;
800
+ processCustomFilters(t2, e2) {
801
+ const s2 = { type: c.Type.Custom };
802
+ t2.copyFromAttribute(e2, "and", s2, "and", t2.BOOLEAN_COPY);
803
+ const r2 = e2.childNodes;
804
+ s2.filters = [];
805
+ for (let e3 = 0; e3 < r2.length; e3++) {
806
+ const o2 = r2.item(e3);
807
+ if (1 !== o2.nodeType) continue;
807
808
  let i2 = null;
808
- "customFilter" === s3.localName && (i2 = this.processCustomFilter(t2, s3)), i2 && r2.filters.push(i2);
809
+ "customFilter" === o2.localName && (i2 = this.processCustomFilter(t2, o2)), i2 && s2.filters.push(i2);
809
810
  }
810
- return r2;
811
+ return s2;
811
812
  }
812
- processDynamicFilter(t2, s2) {
813
- const r2 = { type: e.Type.Dynamic };
814
- return t2.copyFromAttribute(s2, "type", r2, "dynamicType"), t2.copyFromAttribute(s2, "val", r2, "val", t2.INT_COPY), t2.copyFromAttribute(s2, "maxVal", r2, "maxVal", t2.INT_COPY), r2;
813
+ processDynamicFilter(t2, e2) {
814
+ const s2 = { type: c.Type.Dynamic };
815
+ return t2.copyFromAttribute(e2, "type", s2, "dynamicType"), t2.copyFromAttribute(e2, "val", s2, "val", t2.INT_COPY), t2.copyFromAttribute(e2, "maxVal", s2, "maxVal", t2.INT_COPY), s2;
815
816
  }
816
817
  processDateGroupItem(t2, e2) {
817
818
  const s2 = {};
@@ -820,32 +821,32 @@ class et {
820
821
  processFilterItem(t2, e2) {
821
822
  if (e2.hasAttribute("val")) return e2.getAttribute("val");
822
823
  }
823
- processFilters(t2, s2) {
824
- const r2 = { type: e.Type.Items };
825
- t2.copyFromAttribute(s2, "blank", r2, "blank", t2.BOOLEAN_COPY), t2.copyFromAttribute(s2, "calendarType", r2, "calendarType");
826
- let o2 = [], i2 = [];
827
- const n2 = s2.childNodes;
828
- for (let e2 = 0; e2 < n2.length; e2++) {
829
- const s3 = n2.item(e2);
824
+ processFilters(t2, e2) {
825
+ const s2 = { type: c.Type.Items };
826
+ t2.copyFromAttribute(e2, "blank", s2, "blank", t2.BOOLEAN_COPY), t2.copyFromAttribute(e2, "calendarType", s2, "calendarType");
827
+ let r2 = [], o2 = [];
828
+ const i2 = e2.childNodes;
829
+ for (let e3 = 0; e3 < i2.length; e3++) {
830
+ const s3 = i2.item(e3);
830
831
  if (1 === s3.nodeType) {
831
832
  if ("dateGroupItem" === s3.localName) {
832
- const e3 = this.processDateGroupItem(t2, s3);
833
- e3 && o2.push(e3);
833
+ const e4 = this.processDateGroupItem(t2, s3);
834
+ e4 && r2.push(e4);
834
835
  } else if ("filter" === s3.localName) {
835
- const e3 = this.processFilterItem(t2, s3);
836
- void 0 !== e3 && i2.push(e3);
836
+ const e4 = this.processFilterItem(t2, s3);
837
+ void 0 !== e4 && o2.push(e4);
837
838
  }
838
839
  }
839
840
  }
840
- return o2.length > 0 && (r2.dateGroups = o2), i2.length > 0 && (r2.items = i2), r2;
841
+ return r2.length > 0 && (s2.dateGroups = r2), o2.length > 0 && (s2.items = o2), s2;
841
842
  }
842
- processIcon(t2, s2) {
843
- const r2 = { type: e.Type.Icon };
844
- return t2.copyFromAttribute(s2, "iconId", r2, "iconId", t2.INT_COPY), t2.copyFromAttribute(s2, "iconSet", r2), r2;
843
+ processIcon(t2, e2) {
844
+ const s2 = { type: c.Type.Icon };
845
+ return t2.copyFromAttribute(e2, "iconId", s2, "iconId", t2.INT_COPY), t2.copyFromAttribute(e2, "iconSet", s2), s2;
845
846
  }
846
- processTop10(t2, s2) {
847
- const r2 = { type: e.Type.Top10 };
848
- return t2.copyFromAttribute(s2, "filterVal", r2, "filterVal", t2.FLOAT_COPY), t2.copyFromAttribute(s2, "percent", r2, "percent", t2.BOOLEAN_COPY), t2.copyFromAttribute(s2, "top", r2, "top", t2.BOOLEAN_COPY), t2.copyFromAttribute(s2, "val", r2, "val", t2.FLOAT_COPY), r2;
847
+ processTop10(t2, e2) {
848
+ const s2 = { type: c.Type.Top10 };
849
+ return t2.copyFromAttribute(e2, "filterVal", s2, "filterVal", t2.FLOAT_COPY), t2.copyFromAttribute(e2, "percent", s2, "percent", t2.BOOLEAN_COPY), t2.copyFromAttribute(e2, "top", s2, "top", t2.BOOLEAN_COPY), t2.copyFromAttribute(e2, "val", s2, "val", t2.FLOAT_COPY), s2;
849
850
  }
850
851
  processFilterCriteria(t2, e2, s2) {
851
852
  if (!e2) return;
@@ -860,11 +861,11 @@ class et {
860
861
  }
861
862
  processFilterColumn(t2, e2) {
862
863
  if (!e2) return null;
863
- const s2 = {};
864
+ const r2 = {};
864
865
  if (!e2.hasAttribute("colId")) return;
865
- s2.offset = parseInt(e2.getAttribute("colId"));
866
- let r2 = false;
867
- return e2.hasAttribute("hiddenButton") && (r2 = p(e2.getAttribute("hiddenButton"))), r2 && (s2.hiddenButton = true), e2.hasAttribute("showButton") && (s2.showButton = p(e2.getAttribute("showButton"))), this.processFilterCriteria(t2, e2, s2), s2;
866
+ r2.offset = parseInt(e2.getAttribute("colId"));
867
+ let o2 = false;
868
+ return e2.hasAttribute("hiddenButton") && (o2 = s(e2.getAttribute("hiddenButton"))), o2 && (r2.hiddenButton = true), e2.hasAttribute("showButton") && (r2.showButton = s(e2.getAttribute("showButton"))), this.processFilterCriteria(t2, e2, r2), r2;
868
869
  }
869
870
  processFilterColumns(t2, e2, s2) {
870
871
  if (!e2) return;
@@ -880,27 +881,27 @@ class et {
880
881
  }
881
882
  }
882
883
  class st {
883
- visit(t2, e2, i2) {
884
+ visit(t2, e2, r2) {
884
885
  if (!e2) return;
885
- const n2 = {};
886
- if (t2.copyFromAttribute(e2, "ref", n2), e2.hasAttribute("caseSensitive")) {
887
- const t3 = p(e2.getAttribute("caseSensitive"));
888
- n2.collatorOptions = t3 ? s.CaseSensitiveOptions : s.CaseInsensitiveOptions;
886
+ const o2 = {};
887
+ if (t2.copyFromAttribute(e2, "ref", o2), e2.hasAttribute("caseSensitive")) {
888
+ const t3 = s(e2.getAttribute("caseSensitive"));
889
+ o2.collatorOptions = t3 ? u.CaseSensitiveOptions : u.CaseInsensitiveOptions;
889
890
  }
890
- const l2 = e2.getAttribute("sortMethod");
891
- null != l2 && "none" !== l2 && ("stroke" === l2 ? n2.collatorOptions = { ...n2.collatorOptions, collation: "stroke" } : "pinYin" === l2 && (n2.collatorOptions = { ...n2.collatorOptions, collation: "pinyin" })), e2.hasAttribute("columnSort") && p(e2.getAttribute("columnSort")) && (n2.orientation = r.Orientation.Column);
892
- const a2 = o.fastStringToRange(n2.ref);
893
- return this.processSortConditions(t2, e2, n2, a2), Object.keys(n2).length > 0 && (i2.sort = n2), n2;
891
+ const i2 = e2.getAttribute("sortMethod");
892
+ null != i2 && "none" !== i2 && ("stroke" === i2 ? o2.collatorOptions = { ...o2.collatorOptions, collation: "stroke" } : "pinYin" === i2 && (o2.collatorOptions = { ...o2.collatorOptions, collation: "pinyin" })), e2.hasAttribute("columnSort") && s(e2.getAttribute("columnSort")) && (o2.orientation = h.Orientation.Column);
893
+ const n2 = p.fastStringToRange(o2.ref);
894
+ return this.processSortConditions(t2, e2, o2, n2), Object.keys(o2).length > 0 && (r2.sort = o2), o2;
894
895
  }
895
- processSortCondition(t2, e2, s2) {
896
+ processSortCondition(t2, e2, r2) {
896
897
  if (!e2) return null;
897
- const r2 = {};
898
+ const o2 = {};
898
899
  if (e2.hasAttribute("ref")) {
899
900
  if (e2.hasAttribute("ref")) {
900
- const t3 = e2.getAttribute("ref"), i2 = o.fastStringToRange(t3);
901
- r2.offset = s2 ? i2.colStart - s2.colStart : i2.colStart;
901
+ const t3 = e2.getAttribute("ref"), s2 = p.fastStringToRange(t3);
902
+ o2.offset = r2 ? s2.colStart - r2.colStart : s2.colStart;
902
903
  }
903
- return r2.reverse = false, e2.hasAttribute("descending") && (r2.reverse = p(e2.getAttribute("descending"))), t2.copyFromAttribute(e2, "sortBy", r2, "sortOn"), t2.copyFromAttribute(e2, "dxfId", r2), t2.copyFromAttribute(e2, "iconSet", r2), t2.copyFromAttribute(e2, "customList", r2), r2;
904
+ return o2.reverse = false, e2.hasAttribute("descending") && (o2.reverse = s(e2.getAttribute("descending"))), t2.copyFromAttribute(e2, "sortBy", o2, "sortOn"), t2.copyFromAttribute(e2, "dxfId", o2), t2.copyFromAttribute(e2, "iconSet", o2), t2.copyFromAttribute(e2, "customList", o2), o2;
904
905
  }
905
906
  console.warn("no ref for sort conditional", t2.getPath());
906
907
  }
@@ -922,7 +923,7 @@ class rt {
922
923
  }
923
924
  processDataBarColor(t2, e2, s2, r2, o2 = "dk1") {
924
925
  if (!e2) return;
925
- const i2 = f((t3) => e2.getAttribute(t3), o2);
926
+ const i2 = l((t3) => e2.getAttribute(t3), o2);
926
927
  return i2 && (s2[r2] = i2), s2;
927
928
  }
928
929
  processFonts(t2, e2, s2) {
@@ -938,37 +939,37 @@ class rt {
938
939
  }
939
940
  return s2;
940
941
  }
941
- processFont(e2, s2, r2) {
942
- e2.getValAttrAsBoolean("b", s2, true) && (r2.weight = 700), e2.getValAttrAsBoolean("i", s2, true) && (r2.style = t.Style.Italic), e2.getValAttrAsBoolean("strike", s2, true) && (r2.strike = true);
943
- const o2 = e2.evaluate("u", s2);
944
- if (o2) {
945
- const e3 = o2.getAttribute("val");
946
- r2.underline = e3 || t.UnderlineStyle.Single;
942
+ processFont(t2, e2, s2) {
943
+ t2.getValAttrAsBoolean("b", e2, true) && (s2.weight = 700), t2.getValAttrAsBoolean("i", e2, true) && (s2.style = a.Style.Italic), t2.getValAttrAsBoolean("strike", e2, true) && (s2.strike = true);
944
+ const r2 = t2.evaluate("u", e2);
945
+ if (r2) {
946
+ const t3 = r2.getAttribute("val");
947
+ s2.underline = t3 || a.UnderlineStyle.Single;
947
948
  }
948
- T(e2, s2, r2, "vertAlign", "verticalAlign"), "superscript" === r2.verticalAlign ? r2.verticalAlign = t.VerticalAlignment.Super : "subscript" === r2.verticalAlign && (r2.verticalAlign = t.VerticalAlignment.Sub), x(e2, s2, r2, "sz", "size");
949
- const i2 = e2.evaluate("color", s2);
950
- this.processDataBarColor(e2, i2, r2, "fill"), r2.fill || (r2.fill = "dk1"), T(e2, s2, r2, "name", "family"), T(e2, s2, r2, "rFont", "family");
951
- const n2 = e2.evaluate("family", s2);
952
- if (n2) {
953
- const t2 = n2.getAttribute("val");
954
- if (t2) switch (t2) {
949
+ T(t2, e2, s2, "vertAlign", "verticalAlign"), "superscript" === s2.verticalAlign ? s2.verticalAlign = a.VerticalAlignment.Super : "subscript" === s2.verticalAlign && (s2.verticalAlign = a.VerticalAlignment.Sub), x(t2, e2, s2, "sz", "size");
950
+ const o2 = t2.evaluate("color", e2);
951
+ this.processDataBarColor(t2, o2, s2, "fill"), s2.fill || (s2.fill = "dk1"), T(t2, e2, s2, "name", "family"), T(t2, e2, s2, "rFont", "family");
952
+ const i2 = t2.evaluate("family", e2);
953
+ if (i2) {
954
+ const t3 = i2.getAttribute("val");
955
+ if (t3) switch (t3) {
955
956
  case "1":
956
- r2.fallbacks = ["serif"];
957
+ s2.fallbacks = ["serif"];
957
958
  break;
958
959
  case "2":
959
- r2.fallbacks = ["sans-serif"];
960
+ s2.fallbacks = ["sans-serif"];
960
961
  break;
961
962
  case "3":
962
- r2.fallbacks = ["monospace"];
963
+ s2.fallbacks = ["monospace"];
963
964
  break;
964
965
  case "4":
965
- r2.fallbacks = ["cursive"];
966
+ s2.fallbacks = ["cursive"];
966
967
  break;
967
968
  case "5":
968
- r2.fallbacks = ["fantasy"];
969
+ s2.fallbacks = ["fantasy"];
969
970
  }
970
971
  }
971
- return T(e2, s2, r2, "scheme", "scheme"), V(e2, s2, r2, "shadow", "shadow", true), V(e2, s2, r2, "outline", "outline", true), e2.getValAttrAsBoolean("condense", s2, true) && (r2.letterSpacing = -1), e2.getValAttrAsBoolean("extend", s2, true) && (r2.letterSpacing = 1), T(e2, s2, r2, "charset", "charset"), r2;
972
+ return T(t2, e2, s2, "scheme", "scheme"), V(t2, e2, s2, "shadow", "shadow", true), V(t2, e2, s2, "outline", "outline", true), t2.getValAttrAsBoolean("condense", e2, true) && (s2.letterSpacing = -1), t2.getValAttrAsBoolean("extend", e2, true) && (s2.letterSpacing = 1), T(t2, e2, s2, "charset", "charset"), s2;
972
973
  }
973
974
  processFills(t2, e2, s2) {
974
975
  if (!e2) return;
@@ -981,57 +982,57 @@ class rt {
981
982
  return s2;
982
983
  }
983
984
  processFill(t2, e2, s2, r2) {
984
- const o2 = { type: i.Type.None }, n2 = e2.childNodes;
985
- let l2 = false;
986
- for (let e3 = 0; !l2 && e3 < n2.length; e3++) {
987
- const s3 = n2.item(e3);
988
- 1 === s3.nodeType && ("gradientFill" === s3.localName ? (this.processGradientFill(t2, s3, o2), l2 = true) : "patternFill" === s3.localName && (this.processPatternFill(t2, s3, o2), l2 = true));
985
+ const o2 = { type: g.Type.None }, i2 = e2.childNodes;
986
+ let n2 = false;
987
+ for (let e3 = 0; !n2 && e3 < i2.length; e3++) {
988
+ const s3 = i2.item(e3);
989
+ 1 === s3.nodeType && ("gradientFill" === s3.localName ? (this.processGradientFill(t2, s3, o2), n2 = true) : "patternFill" === s3.localName && (this.processPatternFill(t2, s3, o2), n2 = true));
989
990
  }
990
991
  return s2[r2] = o2, s2;
991
992
  }
992
993
  processGradientFill(t2, e2, s2) {
993
994
  if (!e2) return;
994
- s2.type = i.Type.Gradient;
995
+ s2.type = g.Type.Gradient;
995
996
  const r2 = [];
996
997
  s2.stops = r2, s2.angle = 90 + (e2.hasAttribute("degree") ? parseFloat(e2.getAttribute("degree")) : 0);
997
998
  const o2 = e2.getAttribute("type");
998
999
  o2 && (s2.gradientType = o2);
999
- const n2 = (t3) => {
1000
+ const i2 = (t3) => {
1000
1001
  if (!t3) return 0;
1001
1002
  const e3 = parseFloat(t3);
1002
1003
  return isNaN(e3) ? 0 : e3;
1003
1004
  };
1004
- (e2.hasAttribute("left") || e2.hasAttribute("top") || e2.hasAttribute("right") || e2.hasAttribute("bottom")) && (s2.fillTo = { left: n2(e2.getAttribute("left")), top: n2(e2.getAttribute("top")), right: n2(e2.getAttribute("right")), bottom: n2(e2.getAttribute("bottom")) });
1005
- const l2 = e2.childNodes;
1006
- for (let e3 = 0; e3 < l2.length; e3++) {
1007
- const s3 = l2.item(e3);
1005
+ (e2.hasAttribute("left") || e2.hasAttribute("top") || e2.hasAttribute("right") || e2.hasAttribute("bottom")) && (s2.fillTo = { left: i2(e2.getAttribute("left")), top: i2(e2.getAttribute("top")), right: i2(e2.getAttribute("right")), bottom: i2(e2.getAttribute("bottom")) });
1006
+ const n2 = e2.childNodes;
1007
+ for (let e3 = 0; e3 < n2.length; e3++) {
1008
+ const s3 = n2.item(e3);
1008
1009
  if (1 === s3.nodeType && "stop" === s3.localName) {
1009
1010
  const e4 = {};
1010
1011
  r2.push(e4);
1011
1012
  const o3 = parseFloat(s3.getAttribute("position"));
1012
1013
  e4.offset = o3;
1013
- const i2 = t2.evaluate("color", s3);
1014
- this.processDataBarColor(t2, i2, e4, "color");
1014
+ const i3 = t2.evaluate("color", s3);
1015
+ this.processDataBarColor(t2, i3, e4, "color");
1015
1016
  }
1016
1017
  }
1017
1018
  return s2;
1018
1019
  }
1019
1020
  processPatternFill(t2, e2, s2) {
1020
1021
  if (!e2) return;
1021
- const r2 = t2.getVisitorParamsState().get("processingDXFs"), o2 = e2.getAttribute("patternType") || (r2 ? i.BuiltInSheetPattern.Solid : i.BuiltInSheetPattern.None);
1022
- if (o2 === i.BuiltInSheetPattern.None) return { none: true };
1023
- s2.type = i.Type.Pattern, o2 && (s2.patternType = o2);
1024
- let n2, l2 = "foreground", a2 = "background";
1025
- const c2 = s2.patternType === i.BuiltInSheetPattern.Solid && r2;
1026
- if (c2) {
1027
- n2 = "lt1";
1028
- const t3 = l2;
1029
- l2 = a2, a2 = t3;
1030
- }
1031
- const u2 = t2.evaluate("fgColor", e2);
1032
- this.processDataBarColor(t2, u2, s2, l2, n2);
1033
- const h2 = t2.evaluate("bgColor", e2);
1034
- return this.processDataBarColor(t2, h2, s2, a2, n2), c2 && !s2.foreground && (s2.foreground = n2), s2;
1022
+ const r2 = t2.getVisitorParamsState().get("processingDXFs"), o2 = e2.getAttribute("patternType") || (r2 ? g.BuiltInSheetPattern.Solid : g.BuiltInSheetPattern.None);
1023
+ if (o2 === g.BuiltInSheetPattern.None) return { none: true };
1024
+ s2.type = g.Type.Pattern, o2 && (s2.patternType = o2);
1025
+ let i2, n2 = "foreground", l2 = "background";
1026
+ const a2 = s2.patternType === g.BuiltInSheetPattern.Solid && r2;
1027
+ if (a2) {
1028
+ i2 = "lt1";
1029
+ const t3 = n2;
1030
+ n2 = l2, l2 = t3;
1031
+ }
1032
+ const c2 = t2.evaluate("fgColor", e2);
1033
+ this.processDataBarColor(t2, c2, s2, n2, i2);
1034
+ const u2 = t2.evaluate("bgColor", e2);
1035
+ return this.processDataBarColor(t2, u2, s2, l2, i2), a2 && !s2.foreground && (s2.foreground = i2), s2;
1035
1036
  }
1036
1037
  processBorders(t2, e2, s2, r2) {
1037
1038
  if (!e2) return;
@@ -1046,7 +1047,7 @@ class rt {
1046
1047
  processBorder(t2, e2, s2, r2, o2) {
1047
1048
  if (!e2) return;
1048
1049
  const i2 = {};
1049
- return this.processBorderStroke(t2, e2, i2, u.Edge.Left), this.processBorderStroke(t2, e2, i2, u.Edge.Right), o2 ? (i2.right || i2.left) && (i2.right ? i2.vertical = { ...i2.right } : i2.vertical = { ...i2.left }) : this.processBorderStroke(t2, e2, i2, u.Edge.Vertical), this.processBorderStroke(t2, e2, i2, u.Edge.Top), this.processBorderStroke(t2, e2, i2, u.Edge.Bottom), o2 ? (i2.bottom || i2.top) && (i2.right ? i2.horizontal = { ...i2.bottom } : i2.horizontal = { ...i2.top }) : this.processBorderStroke(t2, e2, i2, u.Edge.Horizontal), s2[r2] = i2, s2;
1050
+ return this.processBorderStroke(t2, e2, i2, f.Edge.Left), this.processBorderStroke(t2, e2, i2, f.Edge.Right), o2 ? (i2.right || i2.left) && (i2.right ? i2.vertical = { ...i2.right } : i2.vertical = { ...i2.left }) : this.processBorderStroke(t2, e2, i2, f.Edge.Vertical), this.processBorderStroke(t2, e2, i2, f.Edge.Top), this.processBorderStroke(t2, e2, i2, f.Edge.Bottom), o2 ? (i2.bottom || i2.top) && (i2.right ? i2.horizontal = { ...i2.bottom } : i2.horizontal = { ...i2.top }) : this.processBorderStroke(t2, e2, i2, f.Edge.Horizontal), s2[r2] = i2, s2;
1050
1051
  }
1051
1052
  processBorderStroke(t2, e2, s2, r2) {
1052
1053
  if (!e2) return;
@@ -1062,18 +1063,18 @@ class ot extends rt {
1062
1063
  visit(t2, e2, s2) {
1063
1064
  this.processNumFmts(t2, t2.evaluate("numFmts", e2), null), t2.getVisitorParamsState().set("colorsToProcess", /* @__PURE__ */ new Set());
1064
1065
  const r2 = { fills: {}, fonts: {}, borders: {} };
1065
- this.processFonts(t2, t2.evaluate("fonts", e2), r2.fonts), this.processFills(t2, t2.evaluate("fills", e2), r2.fills), this.processBorders(t2, t2.evaluate("borders", e2), r2.borders, true), r2.fills[0] = { type: i.Type.None }, r2.fills[1] = { type: i.Type.Pattern, patternType: i.BuiltInSheetPattern.Gray125 }, r2.borders[0] = {};
1066
+ this.processFonts(t2, t2.evaluate("fonts", e2), r2.fonts), this.processFills(t2, t2.evaluate("fills", e2), r2.fills), this.processBorders(t2, t2.evaluate("borders", e2), r2.borders, true), r2.fills[0] = { type: g.Type.None }, r2.fills[1] = { type: g.Type.Pattern, patternType: g.BuiltInSheetPattern.Gray125 }, r2.borders[0] = {};
1066
1067
  const o2 = [];
1067
1068
  this.processXFs(t2, t2.evaluate("cellStyleXfs", e2), o2, r2, null, false);
1068
- const n2 = /* @__PURE__ */ new Map();
1069
+ const i2 = /* @__PURE__ */ new Map();
1069
1070
  if (o2.length > 0) {
1070
1071
  const r3 = [];
1071
- this.processCellStyles(t2, t2.evaluate("cellStyles", e2), r3, o2, n2), s2.named = r3;
1072
+ this.processCellStyles(t2, t2.evaluate("cellStyles", e2), r3, o2, i2), s2.named = r3;
1072
1073
  }
1074
+ const n2 = [];
1075
+ this.processXFs(t2, t2.evaluate("cellXfs", e2), n2, r2, i2), Object.keys(n2).length > 0 && (s2.direct = n2);
1073
1076
  const l2 = [];
1074
- this.processXFs(t2, t2.evaluate("cellXfs", e2), l2, r2, n2), Object.keys(l2).length > 0 && (s2.direct = l2);
1075
- const a2 = [];
1076
- return this.processDXFs(t2, t2.evaluate("dxfs", e2), a2), this.processTableStyles(t2, t2.evaluate("tableStyles", e2), s2, a2), this.processIndexColors(t2, t2.evaluate("colors/indexedColors", e2), s2), this.processMruColors(t2, t2.evaluate("colors/mruColors", e2), s2), s2;
1077
+ return this.processDXFs(t2, t2.evaluate("dxfs", e2), l2), this.processTableStyles(t2, t2.evaluate("tableStyles", e2), s2, l2), this.processIndexColors(t2, t2.evaluate("colors/indexedColors", e2), s2), this.processMruColors(t2, t2.evaluate("colors/mruColors", e2), s2), s2;
1077
1078
  }
1078
1079
  processIndexColors(t2, e2, s2) {
1079
1080
  if (!e2) return;
@@ -1126,58 +1127,58 @@ class ot extends rt {
1126
1127
  }
1127
1128
  }
1128
1129
  }
1129
- processXF(t2, e2, s2, r2, o2, i2) {
1130
+ processXF(t2, e2, r2, o2, i2, n2) {
1130
1131
  if (!e2) return;
1131
1132
  const l2 = e2.getAttribute("xfId");
1132
- if (l2 && o2) {
1133
- const t3 = o2.get(parseInt(l2));
1134
- t3 && t3 !== n.BuiltInName.Normal && (s2.named = t3);
1133
+ if (l2 && i2) {
1134
+ const t3 = i2.get(parseInt(l2));
1135
+ t3 && t3 !== m.BuiltInName.Normal && (r2.named = t3);
1135
1136
  }
1136
- const a2 = (t3) => !(!i2 && e2.hasAttribute(t3)) || p(e2.getAttribute("applyFont"));
1137
+ const a2 = (t3) => !(!n2 && e2.hasAttribute(t3)) || s(e2.getAttribute("applyFont"));
1137
1138
  if (a2("applyFont")) {
1138
- const t3 = r2.fonts[e2.getAttribute("fontId")];
1139
- t3 && (s2.font = t3);
1139
+ const t3 = o2.fonts[e2.getAttribute("fontId")];
1140
+ t3 && (r2.font = t3);
1140
1141
  }
1141
1142
  if (a2("applyFill")) {
1142
- const t3 = r2.fills[e2.getAttribute("fillId")];
1143
- t3 && Object.keys(t3).length > 0 && (s2.fill = t3);
1143
+ const t3 = o2.fills[e2.getAttribute("fillId")];
1144
+ t3 && Object.keys(t3).length > 0 && (r2.fill = t3);
1144
1145
  }
1145
1146
  if (a2("applyBorder")) {
1146
- const t3 = r2.borders[e2.getAttribute("borderId")];
1147
- t3 && Object.keys(t3).length > 0 && (s2.border = t3);
1147
+ const t3 = o2.borders[e2.getAttribute("borderId")];
1148
+ t3 && Object.keys(t3).length > 0 && (r2.border = t3);
1148
1149
  }
1149
1150
  if (a2("applyNumberFormat")) {
1150
- const r3 = e2.getAttribute("numFmtId");
1151
- if (r3) {
1152
- const e3 = parseInt(r3);
1151
+ const s2 = e2.getAttribute("numFmtId");
1152
+ if (s2) {
1153
+ const e3 = parseInt(s2);
1153
1154
  let o3;
1154
1155
  const i3 = t2.getVisitorParamsState();
1155
1156
  if (i3) {
1156
1157
  const t3 = i3.get("numFmts");
1157
- t3 && (o3 = t3.get(e3)), s2.numberFormat = o3 ?? e3;
1158
+ t3 && (o3 = t3.get(e3)), r2.numberFormat = o3 ?? e3;
1158
1159
  } else console.warn("no visitor params state");
1159
1160
  }
1160
1161
  }
1161
- a2("applyAlignment") && this.processAlignment(t2, t2.evaluate("alignment", e2), s2), a2("applyProtection") && this.processProtection(t2, t2.evaluate("protection", e2), s2);
1162
- const c2 = p(e2.getAttribute("quotePrefix"));
1163
- c2 && (s2.quotePrefix = c2);
1162
+ a2("applyAlignment") && this.processAlignment(t2, t2.evaluate("alignment", e2), r2), a2("applyProtection") && this.processProtection(t2, t2.evaluate("protection", e2), r2);
1163
+ const c2 = s(e2.getAttribute("quotePrefix"));
1164
+ c2 && (r2.quotePrefix = c2);
1164
1165
  }
1165
- processAlignment(t2, e2, s2) {
1166
- const r2 = {};
1167
- if (e2?.hasAttribute("horizontal") ? r2.horizontal = e2.getAttribute("horizontal") : r2.horizontal = l.HorizontalAlignment.General, e2?.hasAttribute("vertical") ? r2.vertical = e2.getAttribute("vertical") : r2.vertical = l.VerticalAlignment.Bottom, e2?.hasAttribute("indent") ? r2.indent = parseInt(e2.getAttribute("indent")) : r2.indent = 0, e2?.hasAttribute("relativeIndent") ? r2.relativeIndent = parseInt(e2.getAttribute("relativeIndent")) : r2.relativeIndent = 0, p(e2?.getAttribute("wrapText")) ? r2.overflow = l.Overflow.Wrap : r2.overflow = l.Overflow.Visible, p(e2?.getAttribute("shrinkToFit")) && (r2.overflow = l.Overflow.Shrink), e2?.hasAttribute("textRotation")) {
1166
+ processAlignment(t2, e2, r2) {
1167
+ const o2 = {};
1168
+ if (e2?.hasAttribute("horizontal") ? o2.horizontal = e2.getAttribute("horizontal") : o2.horizontal = d.HorizontalAlignment.General, e2?.hasAttribute("vertical") ? o2.vertical = e2.getAttribute("vertical") : o2.vertical = d.VerticalAlignment.Bottom, e2?.hasAttribute("indent") ? o2.indent = parseInt(e2.getAttribute("indent")) : o2.indent = 0, e2?.hasAttribute("relativeIndent") ? o2.relativeIndent = parseInt(e2.getAttribute("relativeIndent")) : o2.relativeIndent = 0, s(e2?.getAttribute("wrapText")) ? o2.overflow = d.Overflow.Wrap : o2.overflow = d.Overflow.Visible, s(e2?.getAttribute("shrinkToFit")) && (o2.overflow = d.Overflow.Shrink), e2?.hasAttribute("textRotation")) {
1168
1169
  let t3 = parseFloat(e2.getAttribute("textRotation"));
1169
- t3 > 0 && t3 <= 90 ? t3 = 360 - t3 : t3 > 90 && t3 <= 180 ? t3 -= 90 : 255 === t3 && (t3 = 0, r2.stacked = true), r2.rotation = t3;
1170
- } else r2.rotation = 0;
1171
- e2?.hasAttribute("justifyLastLine") && (r2.justifyLastLine = p(e2.getAttribute("justifyLastLine")));
1172
- const o2 = e2?.getAttribute("readingOrder");
1173
- return o2 && ("0" === o2 ? r2.readingDirection = l.ReadingDirection.Auto : "1" === o2 ? r2.readingDirection = l.ReadingDirection.LeftToRight : "2" === o2 ? r2.readingDirection = l.ReadingDirection.RightToLeft : console.warn(`invalid readingOrder: ${o2}`)), Object.keys(r2).length > 0 && (s2.alignment = r2), s2;
1170
+ t3 > 0 && t3 <= 90 ? t3 = 360 - t3 : t3 > 90 && t3 <= 180 ? t3 -= 90 : 255 === t3 && (t3 = 0, o2.stacked = true), o2.rotation = t3;
1171
+ } else o2.rotation = 0;
1172
+ e2?.hasAttribute("justifyLastLine") && (o2.justifyLastLine = s(e2.getAttribute("justifyLastLine")));
1173
+ const i2 = e2?.getAttribute("readingOrder");
1174
+ return i2 && ("0" === i2 ? o2.readingDirection = d.ReadingDirection.Auto : "1" === i2 ? o2.readingDirection = d.ReadingDirection.LeftToRight : "2" === i2 ? o2.readingDirection = d.ReadingDirection.RightToLeft : console.warn(`invalid readingOrder: ${i2}`)), Object.keys(o2).length > 0 && (r2.alignment = o2), r2;
1174
1175
  }
1175
- processProtection(t2, e2, s2) {
1176
+ processProtection(t2, e2, r2) {
1176
1177
  if (!e2) return;
1177
- const r2 = {}, o2 = e2.getAttribute("locked");
1178
- o2 && !p(o2) && (r2.edit = true);
1179
- const i2 = e2.getAttribute("hidden");
1180
- return i2 && p(i2) && (r2.formulaHidden = true), Object.keys(r2).length > 0 && (s2.protection = r2), s2;
1178
+ const o2 = {}, i2 = e2.getAttribute("locked");
1179
+ i2 && !s(i2) && (o2.edit = true);
1180
+ const n2 = e2.getAttribute("hidden");
1181
+ return n2 && s(n2) && (o2.formulaHidden = true), Object.keys(o2).length > 0 && (r2.protection = o2), r2;
1181
1182
  }
1182
1183
  processDXF(t2, e2, s2) {
1183
1184
  if (!e2) return;
@@ -1213,21 +1214,21 @@ class ot extends rt {
1213
1214
  }
1214
1215
  t2.getVisitorParamsState().delete("processingDXFs");
1215
1216
  }
1216
- processTableStyle(t2, e2, s2, r2, o2 = false) {
1217
- const i2 = e2.getAttribute("name"), n2 = { name: i2 };
1218
- e2.hasAttribute("table") && (n2.table = p(e2.getAttribute("table"))), e2.hasAttribute("pivot") && (n2.pivot = p(e2.getAttribute("pivot"))), o2 && !n2.pivot && r2.unshift(null);
1219
- const l2 = e2.childNodes;
1220
- for (let t3 = 0; t3 < l2.length; t3++) {
1221
- const e3 = l2.item(t3);
1217
+ processTableStyle(t2, e2, r2, o2, i2 = false) {
1218
+ const n2 = e2.getAttribute("name"), l2 = { name: n2 };
1219
+ e2.hasAttribute("table") && (l2.table = s(e2.getAttribute("table"))), e2.hasAttribute("pivot") && (l2.pivot = s(e2.getAttribute("pivot"))), i2 && !l2.pivot && o2.unshift(null);
1220
+ const a2 = e2.childNodes;
1221
+ for (let t3 = 0; t3 < a2.length; t3++) {
1222
+ const e3 = a2.item(t3);
1222
1223
  if (1 === e3.nodeType && "tableStyleElement" === e3.localName) {
1223
- const t4 = e3.getAttribute("type"), s3 = e3.getAttribute("dxfId");
1224
- let o3 = r2?.[s3];
1225
- o3 || (console.warn("invalid dfx id", s3), o3 = {}), n2[t4] = o3;
1224
+ const t4 = e3.getAttribute("type"), s2 = e3.getAttribute("dxfId");
1225
+ let r3 = o2?.[s2];
1226
+ r3 || (console.warn("invalid dfx id", s2), r3 = {}), l2[t4] = r3;
1226
1227
  let i3 = null;
1227
- e3.hasAttribute("size") && (i3 = parseInt(e3.getAttribute("size"))), i3 && !isNaN(i3) && (o3.size = i3);
1228
+ e3.hasAttribute("size") && (i3 = parseInt(e3.getAttribute("size"))), i3 && !isNaN(i3) && (r3.size = i3);
1228
1229
  }
1229
1230
  }
1230
- delete n2.name, s2[i2] = n2;
1231
+ delete l2.name, r2[n2] = l2;
1231
1232
  }
1232
1233
  processTableStyles(t2, e2, s2, r2, o2) {
1233
1234
  if (!e2) return;
@@ -1242,16 +1243,16 @@ class ot extends rt {
1242
1243
  }
1243
1244
  return Object.keys(c2).length > 0 && (i2.styles = c2), Object.keys(i2).length > 0 && (s2.tables = i2), s2;
1244
1245
  }
1245
- processCellStyles(t2, e2, s2, r2, o2) {
1246
+ processCellStyles(t2, e2, r2, o2, i2) {
1246
1247
  if (!e2) return;
1247
- const i2 = e2.childNodes;
1248
- for (let t3 = 0; t3 < i2.length; t3++) {
1249
- const e3 = i2.item(t3);
1248
+ const n2 = e2.childNodes;
1249
+ for (let t3 = 0; t3 < n2.length; t3++) {
1250
+ const e3 = n2.item(t3);
1250
1251
  if (1 === e3.nodeType && "cellStyle" === e3.localName) {
1251
- const t4 = parseInt(e3.getAttribute("xfId")), i3 = e3.getAttribute("name");
1252
- if (o2.set(t4, i3), !r2[t4]) continue;
1253
- const n2 = { name: i3, style: r2[t4] };
1254
- e3.getAttribute("hidden") && (n2.hidden = p(e3.getAttribute("hidden"))), e3.getAttribute("iLevel") && (n2.iLevel = parseInt(e3.getAttribute("iLevel"))), s2.push(n2);
1252
+ const t4 = parseInt(e3.getAttribute("xfId")), n3 = e3.getAttribute("name");
1253
+ if (i2.set(t4, n3), !o2[t4]) continue;
1254
+ const l2 = { name: n3, style: o2[t4] };
1255
+ e3.getAttribute("hidden") && (l2.hidden = s(e3.getAttribute("hidden"))), e3.getAttribute("iLevel") && (l2.iLevel = parseInt(e3.getAttribute("iLevel"))), r2.push(l2);
1255
1256
  }
1256
1257
  }
1257
1258
  }
@@ -1376,10 +1377,10 @@ class at {
1376
1377
  const r2 = {};
1377
1378
  return t2.copyFromAttribute(e2, "editAs", r2, "anchorType"), r2.anchor = {}, this.processOffsetCoord(t2, t2.evaluate("from", e2), r2.anchor, "from"), this.processOffsetCoord(t2, t2.evaluate("to", e2), r2.anchor, "to"), s2.movables || (s2.movables = []), s2.movables.push(r2), r2;
1378
1379
  }
1379
- processOffsetCoord(t2, e2, s2, r2) {
1380
- if (!e2) return;
1381
- const o2 = { c: 0, r: 0, x: 0, y: 0 };
1382
- return t2.evaluate("col", e2) && (o2.c = parseInt(t2.evaluate("col", e2).textContent)), t2.evaluate("row", e2) && (o2.r = parseInt(t2.evaluate("row", e2).textContent)), t2.evaluate("colOff", e2) && (o2.x = h(t2.evaluate("colOff", e2).textContent)), t2.evaluate("rowOff", e2) && (o2.y = h(t2.evaluate("rowOff", e2).textContent)), "from" === r2 ? s2.tl = o2 : s2.br = o2, s2;
1380
+ processOffsetCoord(t2, s2, r2, o2) {
1381
+ if (!s2) return;
1382
+ const i2 = { c: 0, r: 0, x: 0, y: 0 };
1383
+ return t2.evaluate("col", s2) && (i2.c = parseInt(t2.evaluate("col", s2).textContent)), t2.evaluate("row", s2) && (i2.r = parseInt(t2.evaluate("row", s2).textContent)), t2.evaluate("colOff", s2) && (i2.x = e(t2.evaluate("colOff", s2).textContent)), t2.evaluate("rowOff", s2) && (i2.y = e(t2.evaluate("rowOff", s2).textContent)), "from" === o2 ? r2.tl = i2 : r2.br = i2, r2;
1383
1384
  }
1384
1385
  }
1385
1386
  class ct {
@@ -1478,7 +1479,7 @@ class gt extends ht {
1478
1479
  return s2.content = { type: "grpSp", json: o2 }, o2;
1479
1480
  }
1480
1481
  }
1481
- class dt extends ht {
1482
+ class mt extends ht {
1482
1483
  visit(t2, e2, s2) {
1483
1484
  if (!e2) return;
1484
1485
  s2 = super.visit(t2, e2, s2);
@@ -1496,11 +1497,11 @@ class dt extends ht {
1496
1497
  return s2.content = { type: "cxnSp", json: o2 }, o2;
1497
1498
  }
1498
1499
  }
1499
- const mt = "richTypes";
1500
+ const dt = "richTypes";
1500
1501
  class bt {
1501
1502
  visit(t2, e2, s2) {
1502
- let r2 = t2.getVisitorParamsState().get(mt);
1503
- r2 || (r2 = [], t2.getVisitorParamsState().set(mt, r2));
1503
+ let r2 = t2.getVisitorParamsState().get(dt);
1504
+ r2 || (r2 = [], t2.getVisitorParamsState().set(dt, r2));
1504
1505
  const o2 = e2.childNodes, i2 = o2.length;
1505
1506
  for (let e3 = 0; e3 < i2; e3++) {
1506
1507
  const s3 = o2.item(e3);
@@ -1545,7 +1546,7 @@ class At {
1545
1546
  if ("_error" === e2.type) {
1546
1547
  const t3 = e2.errorType;
1547
1548
  if (t3) try {
1548
- e2 = a.getBuiltInById(t3 + 1);
1549
+ e2 = b.getBuiltInById(t3 + 1);
1549
1550
  } catch (t4) {
1550
1551
  }
1551
1552
  }
@@ -1600,23 +1601,23 @@ class Ft {
1600
1601
  }
1601
1602
  }
1602
1603
  class Ct {
1603
- visit(t2, e2, s2) {
1604
+ visit(t2, e2, o2) {
1604
1605
  if (!e2) return;
1605
- const r2 = {};
1606
- return t2.copyFromAttribute(e2, "id", r2, "id", g), t2.copyFromAttribute(e2, "personId", r2, "personId", g), t2.copyFromAttribute(e2, "ref", r2), t2.copyFromAttribute(e2, "parentId", r2, "parentId", g), t2.copyFromAttribute(e2, "dT", r2), e2.hasAttribute("done") && (r2.done = p(e2.getAttribute("done"))), s2.push(r2), r2;
1606
+ const i2 = {};
1607
+ return t2.copyFromAttribute(e2, "id", i2, "id", r), t2.copyFromAttribute(e2, "personId", i2, "personId", r), t2.copyFromAttribute(e2, "ref", i2), t2.copyFromAttribute(e2, "parentId", i2, "parentId", r), t2.copyFromAttribute(e2, "dT", i2), e2.hasAttribute("done") && (i2.done = s(e2.getAttribute("done"))), o2.push(i2), i2;
1607
1608
  }
1608
1609
  }
1609
1610
  class wt {
1610
1611
  visit(t2, e2, s2) {
1611
- const r2 = [], o2 = e2.childNodes;
1612
- for (let e3 = 0; e3 < o2.length; e3++) {
1613
- const s3 = o2.item(e3);
1612
+ const o2 = [], i2 = e2.childNodes;
1613
+ for (let e3 = 0; e3 < i2.length; e3++) {
1614
+ const s3 = i2.item(e3);
1614
1615
  if (1 === s3.nodeType && "person" === s3.localName) {
1615
1616
  const e4 = {};
1616
- t2.copyFromAttribute(s3, "id", e4, "id", g), t2.copyFromAttribute(s3, "displayName", e4), t2.copyFromAttribute(s3, "userId", e4, "userId", g), t2.copyFromAttribute(s3, "providerId", e4), r2.push(e4);
1617
+ t2.copyFromAttribute(s3, "id", e4, "id", r), t2.copyFromAttribute(s3, "displayName", e4), t2.copyFromAttribute(s3, "userId", e4, "userId", r), t2.copyFromAttribute(s3, "providerId", e4), o2.push(e4);
1617
1618
  }
1618
1619
  }
1619
- return r2.length > 0 && (s2.persons = r2), r2;
1620
+ return o2.length > 0 && (s2.persons = o2), o2;
1620
1621
  }
1621
1622
  }
1622
1623
  const Pt = {};
@@ -1627,7 +1628,7 @@ class Nt {
1627
1628
  }
1628
1629
  class Ot {
1629
1630
  constructor() {
1630
- this.visitorsByXmlTagName = /* @__PURE__ */ new Map(), this.scopedVisitorsByXmlTagName = /* @__PURE__ */ new Map(), this.visitorParamsState = null, this.registerVisitor("Relationships", new N()), this.registerVisitor("spPr", new j()), this.registerVisitor("txBody", new W()), this.registerVisitor("txPr", new W()), this.registerVisitor("c:chartSpace", new k()), this.registerVisitor("c:chartSpace", new L(), "chart"), this.registerVisitor("c:plotArea", new I()), this.registerVisitor("c:barChart", new E()), this.registerVisitor("c:doughnutChart", new R()), this.registerVisitor("c:lineChart", new R()), this.registerVisitor("c:ofPieType", new R()), this.registerVisitor("c:pieChart", new R()), this.registerVisitor("c:scatterChart", new R()), this.registerVisitor("c:barChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:doughnutChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:lineChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:ofPieType", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:pieChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:scatterChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:ser", new M()), this.registerVisitor("c:dPt", new U()), this.registerVisitor("c:marker", new z()), this.registerVisitor("c:catAx", new G()), this.registerVisitor("c:valAx", new G()), this.registerVisitor("c:dateAx", new G()), this.registerVisitor("c:majorGridlines", new P("gridLinesMajor")), this.registerVisitor("c:minorGridlines", new P("gridLinesMinor")), this.registerVisitor("c:chartSpace", null, "txPr"), this.registerVisitor("c:catAx", new W("labels.text"), "txPr"), this.registerVisitor("c:valAx", new W("labels.text"), "txPr"), this.registerVisitor("c:dateAx", new W("labels.text"), "txPr"), this.registerVisitor("c:legend", new $()), this.registerVisitor("c:legend", new W("labels.text"), "txPr"), this.registerVisitor("c:legendEntry", new X()), this.registerVisitor("c:ser", new K(), "extLst/ext/invertSolidFillFmt/spPr"), this.registerVisitor("c:ser", new Y("labels"), "dLbls"), this.registerVisitor("c:dLbl", new Y("points")), this.registerVisitor("c:title", new H()), this.registerVisitor("c:title", null, "tx/rich"), this.registerVisitor("c:title", null, "txPr"), this.registerVisitor("c:layout", new q()), this.registerVisitor("c:dispUnits", new P("dispUnits")), this.registerVisitor("c:dispUnitsLbl", new H("displayUnitsLabel")), this.registerVisitor("c:dispUnitsLbl", new W(), "tx/rich"), this.registerVisitor("a:theme", new J()), this.registerVisitor("a:theme", new Q(), "themeElements/clrScheme"), this.registerVisitor("a:theme", new Z(), "themeElements/fontScheme"), this.registerVisitor("autoFilter", new et()), this.registerVisitor("sortState", new st()), this.registerVisitor("s:workbook", new it()), this.registerVisitor("styleSheet", new ot()), this.registerVisitor("table", new nt()), this.registerVisitor("hlinkClick", new tt()), this.registerVisitor("wsDr", new lt()), this.registerVisitor("twoCellAnchor", new at()), this.registerVisitor("oneCellAnchor", new at()), this.registerVisitor("absoluteAnchor", new at()), this.registerVisitor("graphicFrame", new ut()), this.registerVisitor("sp", new ht()), this.registerVisitor("grpSp", new gt()), this.registerVisitor("cxnSp", new dt()), this.registerVisitor("pic", new pt()), this.registerVisitor("rvStructures", new bt()), this.registerVisitor("rvData", new At()), this.registerVisitor("comments", new yt()), this.registerVisitor("commentList", new vt(), "comment"), this.registerVisitor("comment", new W("content"), "text"), this.registerVisitor("ThreadedComments", new Ft()), this.registerVisitor("threadedComment", new Ct()), this.registerVisitor("threadedComment", new W("content"), "text"), this.registerVisitor("personList", new wt());
1631
+ this.visitorsByXmlTagName = /* @__PURE__ */ new Map(), this.scopedVisitorsByXmlTagName = /* @__PURE__ */ new Map(), this.visitorParamsState = null, this.registerVisitor("Relationships", new N()), this.registerVisitor("spPr", new j()), this.registerVisitor("txBody", new W()), this.registerVisitor("txPr", new W()), this.registerVisitor("c:chartSpace", new k()), this.registerVisitor("c:chartSpace", new L(), "chart"), this.registerVisitor("c:plotArea", new I()), this.registerVisitor("c:barChart", new E()), this.registerVisitor("c:doughnutChart", new R()), this.registerVisitor("c:lineChart", new R()), this.registerVisitor("c:ofPieType", new R()), this.registerVisitor("c:pieChart", new R()), this.registerVisitor("c:scatterChart", new R()), this.registerVisitor("c:barChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:doughnutChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:lineChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:ofPieType", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:pieChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:scatterChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:ser", new M()), this.registerVisitor("c:dPt", new U()), this.registerVisitor("c:marker", new z()), this.registerVisitor("c:catAx", new G()), this.registerVisitor("c:valAx", new G()), this.registerVisitor("c:dateAx", new G()), this.registerVisitor("c:majorGridlines", new P("gridLinesMajor")), this.registerVisitor("c:minorGridlines", new P("gridLinesMinor")), this.registerVisitor("c:chartSpace", null, "txPr"), this.registerVisitor("c:catAx", new W("labels.text"), "txPr"), this.registerVisitor("c:valAx", new W("labels.text"), "txPr"), this.registerVisitor("c:dateAx", new W("labels.text"), "txPr"), this.registerVisitor("c:legend", new $()), this.registerVisitor("c:legend", new W("labels.text"), "txPr"), this.registerVisitor("c:legendEntry", new X()), this.registerVisitor("c:ser", new K(), "extLst/ext/invertSolidFillFmt/spPr"), this.registerVisitor("c:ser", new Y("labels"), "dLbls"), this.registerVisitor("c:dLbl", new Y("points")), this.registerVisitor("c:title", new H()), this.registerVisitor("c:title", null, "tx/rich"), this.registerVisitor("c:title", null, "txPr"), this.registerVisitor("c:layout", new q()), this.registerVisitor("c:dispUnits", new P("dispUnits")), this.registerVisitor("c:dispUnitsLbl", new H("displayUnitsLabel")), this.registerVisitor("c:dispUnitsLbl", new W(), "tx/rich"), this.registerVisitor("a:theme", new J()), this.registerVisitor("a:theme", new Q(), "themeElements/clrScheme"), this.registerVisitor("a:theme", new Z(), "themeElements/fontScheme"), this.registerVisitor("autoFilter", new et()), this.registerVisitor("sortState", new st()), this.registerVisitor("s:workbook", new it()), this.registerVisitor("styleSheet", new ot()), this.registerVisitor("table", new nt()), this.registerVisitor("hlinkClick", new tt()), this.registerVisitor("wsDr", new lt()), this.registerVisitor("twoCellAnchor", new at()), this.registerVisitor("oneCellAnchor", new at()), this.registerVisitor("absoluteAnchor", new at()), this.registerVisitor("graphicFrame", new ut()), this.registerVisitor("sp", new ht()), this.registerVisitor("grpSp", new gt()), this.registerVisitor("cxnSp", new mt()), this.registerVisitor("pic", new pt()), this.registerVisitor("rvStructures", new bt()), this.registerVisitor("rvData", new At()), this.registerVisitor("comments", new yt()), this.registerVisitor("commentList", new vt(), "comment"), this.registerVisitor("comment", new W("content"), "text"), this.registerVisitor("ThreadedComments", new Ft()), this.registerVisitor("threadedComment", new Ct()), this.registerVisitor("threadedComment", new W("content"), "text"), this.registerVisitor("personList", new wt());
1631
1632
  }
1632
1633
  registerVisitor(t2, e2, s2 = null) {
1633
1634
  -1 === t2.indexOf(":") && (t2 = "*:" + t2);