@sheetxl/mcp 0.8.0-beta.20 → 0.8.0-beta.22
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.
- package/assets/{noAnElnMhF05bfJN.js → 0jPw8-AyT6VbPuGO.js} +1 -1
- package/assets/{C7oUg84aGjYrJUc6.js → 1U3DwsqHnOBwiGWn.js} +2 -2
- package/assets/{DALP-GkmzCJdFIV9.js → 1dUPpOVZSeeylKHv.js} +1 -1
- package/assets/{TdK2ciXA5BAlGjbR.js → 3N6hsbh2WLceyO6T.js} +1 -1
- package/assets/{C3BZQ5NFwAU_ZdeQ.js → 4zyHb1mmcFfqwpjO.js} +1 -1
- package/assets/{C0MAjW1vgsw6o0fx.js → 8csqJ8aGOdnKlrLl.js} +1 -1
- package/assets/{C9w-KoMwxvouC73F.js → 91BKH9obG4IfBzhy.js} +514 -505
- package/assets/{tCavNu-Tru6yRbec.js → 9AosCdy_xtdhLjN1.js} +1 -1
- package/assets/{rtUwIBgECTX9UO_B.js → B5VTjL9m0R-Icfaz.js} +4 -4
- package/assets/{Z1zwOeCe-JTLgkxf.js → B6pXiayrnDoDbQt1.js} +57 -57
- package/assets/{DwsoGIyPuoQij_vi.js → BDq4iVyBh5lwX8pE.js} +1 -1
- package/assets/{4Za9gEGCvms62R7k.js → BHsqPfJZrdKTbPLP.js} +1 -1
- package/assets/{DPUXpIzEs1t-jBiv.js → BI5L_Ysr8s0TQxdg.js} +1 -1
- package/assets/{-qQT-DFFz0CqGx5C.js → BPZWfwUvFCLQInXN.js} +395 -395
- package/assets/{CgIHqG1qp9n1Gwm7.js → BRVEVVhj-8ZPrNyQ.js} +326 -321
- package/assets/{C9aV1SF8uCWIB4zU.js → BSdRn3B8QeJFflY6.js} +15 -15
- package/assets/{CrRJqUPbvvhnp4p4.js → BUGEQS5WdiLcI_0X.js} +1 -1
- package/assets/{DvRH46hupHUjkc7a.js → BUIjRIGTum7VuRFk.js} +1 -1
- package/assets/{CrULZhDt8uE-MR2s.js → BV49J63s68Mj6lgF.js} +1 -1
- package/assets/{DcwqgbgqPyzQxSsQ.js → BXean6K6oDUxkzyd.js} +1 -1
- package/assets/{B5UmlawoCVwHHM_e.js → BZxJKqVEO7B23XwE.js} +5 -5
- package/assets/{DYRis8fOyk2uIZ-1.js → BaaVzb7xXROiWUhT.js} +4 -4
- package/assets/{swG-DVTsez1uNW8c.js → Bf7Irm8Ua4s1T4xH.js} +1 -1
- package/assets/{BGlx7_eRiv47Hu9C.js → BgwCdHyXKQYFAl1M.js} +1 -1
- package/assets/{DNwyEanz3LqtOorY.js → Bi65BKwwiZYYZprq.js} +1 -1
- package/assets/{C46dyA4YSP1-iTSN.js → BiC09_YKQPmlUklQ.js} +1 -1
- package/assets/{CDmri0gcZxpVZfWn.js → BkqENH8xJ3_NQnD5.js} +377 -377
- package/assets/{CaOEaghQqXiA1ZzO.js → BlxrCp7d-SeM-2DW.js} +115 -115
- package/assets/{DBfBV-tvRxCLgdvs.js → BnGNMsqG5CzUzmX7.js} +4 -4
- package/assets/{u-pSumbU-rgT6eLF.js → BnK6HEqT4rf1RoOG.js} +226 -226
- package/assets/{DZ2Njh8YgfXcv7EM.js → BrfsWImwRtf54LUU.js} +1 -1
- package/assets/{BYYbglFmasE5PrS2.js → BvKzhnweVF6GhjXh.js} +1 -1
- package/assets/{BKc7zTK6ZIhcD_Wu.js → Bx592y6pyOwTS2x7.js} +1 -1
- package/assets/{BghxJxTwaebNVcIS.js → BygXDW3XTdtR38aA.js} +1 -1
- package/assets/{Bp9zuG6P6r9GEb6G.js → BzFIkeB_lheiTR7z.js} +1 -1
- package/assets/{BBm3Xjnehvx2fYj8.js → Bzp3UtK_6fqEVlV8.js} +8 -8
- package/assets/{DTXRsv2Ww7WbIwCb.js → C1PTfp7kVu3DqqZh.js} +9859 -9844
- package/assets/{CoOIn2wx6je_rMDO.js → C1yAmXrOu3iHV2cu.js} +17 -17
- package/assets/{BMH_wtFTiRj43c69.js → C4-0s3Udk3v4ytSn.js} +2 -2
- package/assets/{YG5hEr6CzWNmNJQ2.js → C7zManFR1LEJXiwb.js} +1 -1
- package/assets/{NiD8iNE47sjggYTx.js → C9wlvcFyjQA59G-_.js} +1 -1
- package/assets/{BHiZ3GtGCWUWwHqY.js → CAgQJrDxGEfoa7jn.js} +3 -3
- package/assets/{DsSlUklPSAsh9DhW.js → CGB4xgirbgEIN3tg.js} +167 -167
- package/assets/{CpfpXfCqzZumY4pf.js → CGxhgXj5qKj_Ubcp.js} +1 -1
- package/assets/{Bg8EN9R3hbeNfFyU.js → CHG9Q0uLAZdLXYVz.js} +76 -76
- package/assets/{CbTKUrroY9PQ6eTu.js → CHnaSM8aMnQ2_VWW.js} +3 -3
- package/assets/{CW2Ca6tsd0aLTz88.js → CHpBOpoM9bCvQyn0.js} +1 -1
- package/assets/{D--emvI048MvLsXl.js → CHqnRMWNpLKcAWWn.js} +1 -1
- package/assets/{93ksqLKL1o40anfw.js → CKhbbbjQ-_auMp3n.js} +1 -1
- package/assets/{BGQ1GrnQ-X16GU8k.js → COVhUB0EotytQDHg.js} +2 -2
- package/assets/{4Qlx8FuxoYbVTgNW.js → CSGN4rAf7CYnBDEa.js} +19 -19
- package/assets/{DAVN6N3srI1WMHCN.js → CSKjFDYwiwn5XNnH.js} +2 -2
- package/assets/{MpvZt7VpFWEINIT6.js → CT99WREgkKGpcDTO.js} +1 -1
- package/assets/{C9JUgNS6CrdgIcW3.js → CV729JV1mNyYCmrq.js} +1 -1
- package/assets/{CTGfmocA1WgM0_e0.js → CXk5vwFfosghrTKo.js} +485 -485
- package/assets/{DV_nCOON8Fgq5RBt.js → CXqqaFgNeUVRGvEb.js} +2 -2
- package/assets/{CLFe9HgUi_83dE3d.js → CYCqMEoWsry6_hrc.js} +1 -1
- package/assets/{I7LAF1nLmYqQwt9i.js → Cahhn5OLNqRYy-n8.js} +1 -1
- package/assets/{uMoGfJGab8mZX6eN.js → CdtVv8YQ8PTmS4dz.js} +1 -1
- package/assets/{DSy6cpdU-KNWsbSj.js → CpYgsvYMxV5SbRp3.js} +2 -2
- package/assets/{Dx_IFz5FEPKw-HC1.js → Cu4VAHfmjXWfTMPu.js} +1 -1
- package/assets/{Drmg3-gF0VJs4Yx3.js → CufFcGwo5x95LSb7.js} +1 -1
- package/assets/{B4ii9PGvnlYkSX2q.js → CwNKcoA7na7Ess3a.js} +2 -2
- package/assets/{uoUKT9hTrwZ2INHN.js → D-MsUF59BhikcNZt.js} +3 -3
- package/assets/{yDh_W6M1rvuDhFv1.js → D-N87jCOShDKTFDh.js} +1 -1
- package/assets/{CaI562iJKKOoMw8p.js → D1tShC5iBlUoT2V2.js} +1 -1
- package/assets/{eWHWPRWHX6YU8bJU.js → D89TE5n8VKre9Gmp.js} +1 -1
- package/assets/{eV0oowKJe44NBnWj.js → D8dNiNpu9_L0NjGP.js} +1 -1
- package/assets/{C9wXzrhl0dwqZgJ6.js → D9ja7F9irHf9Iovx.js} +1 -1
- package/assets/{LugZP3XHNnoiiTJO.js → DAqaOCEQLmZRjcdR.js} +1 -1
- package/assets/{D4lMEKXi13vhDJbE.js → DEOkcuqKBFyRnY18.js} +1 -1
- package/assets/{B-7inN76S1zUWSAt.js → DFQLoYLUO4TgDZPK.js} +1 -1
- package/assets/{CyOyY32LLW-Pj_L7.js → DHHYGjNwlLvja3dS.js} +1 -1
- package/assets/{_LMcVYWJksPfGVxz.js → DLbzfP7OOWhafkTq.js} +1 -1
- package/assets/{DndzARNYtmumqGnG.js → DQIQR1t3IkC9wshP.js} +1 -1
- package/assets/{8FzS1bgbz4U1QE_m.js → DRd8gdwcr3EqtGkb.js} +1 -1
- package/assets/{mYZ9Z5AKCn7zltHw.js → DawLBAaNAAmo_P3Y.js} +2 -2
- package/assets/{BEq2PSZQN7VV19RQ.js → Dbh-XVDw294AVLtl.js} +1 -1
- package/assets/{CDvP9QyhDwdm3MZn.js → DdDKDqtpIkzd-mXi.js} +2 -2
- package/assets/{CpLTCQemd_cJ4yFu.js → DdXp_iPwTOHAOvlL.js} +8 -8
- package/assets/{Xkr_4WLwk0ZPaYH2.js → DdnALoxd3b8TLNla.js} +1 -1
- package/assets/{DIntlX_ha_wRdxYj.js → DevKDvFONeJ9euEq.js} +1 -1
- package/assets/{YGYD-116vlZfzPn1.js → DgVCjvTw9Df1DV1x.js} +15 -15
- package/assets/{DnDTldUjKy0O586y.js → DgYcOz0M0pmZf9x_.js} +2 -2
- package/assets/{BieAybaOdneMdvBS.js → DmVQgN-N_HhYvakk.js} +1 -1
- package/assets/DoScYrfTJOHXe-Ko.js +199 -0
- package/assets/{wYvkLI8IeHaWTtAx.js → DrLUi6vduqDLmQjl.js} +46 -46
- package/assets/{BJYl-kvBtcnMVP8W.js → Ds5pLAwSN4lSbao6.js} +1 -1
- package/assets/{klKXcdZmbQmsK2rt.js → DsBXjYAgTUXAAWZZ.js} +1 -1
- package/assets/{Ti7kMsQ-Eo3lkfIh.js → DtvJg63vbDd6B7sD.js} +6 -6
- package/assets/{nV0eE4R3npcOHLbx.js → Dvsld01DkmiNLjfP.js} +1 -1
- package/assets/{Dlbgs8csKymbxu7r.js → DxNK3HVEzFdUou54.js} +1 -1
- package/assets/{Dv9ZDmKuxn2tQDGb.js → DzGpZ2CQ1St9BF0y.js} +1 -1
- package/assets/{CUJiePMri5kkpdA7.js → E9mta1q4VtVUusy5.js} +1 -1
- package/assets/{DzLrAy24em5k5en0.js → GGcMgq3ScY7Tv0PE.js} +3 -3
- package/assets/{q57cDvIPcIvWlh5T.js → HVwvDMZh0ZGR-hRT.js} +3 -3
- package/assets/{IDq3QQa5uRqjVJx_.js → OfjHqYH31KqC5gVM.js} +1 -1
- package/assets/{Dc2LiflUYpt0nVVk.js → OtMeAlbq6tyW5Hnc.js} +4 -4
- package/assets/{Bndiqwoh132Upow1.js → UgDy0WNXuV1sEnFW.js} +2 -2
- package/assets/{CyYbUk6pGr3NIBsy.js → VSbzBtGH0cA8VBsM.js} +33 -33
- package/assets/{Cheq-qaVWm7EaIlQ.js → VWEaItb0XvCoRiCT.js} +1 -1
- package/assets/{DMDx0fX8tHKH0DdL.js → WSiEiaP-NUEr9UaB.js} +2 -2
- package/assets/{BVdH9-49M3APSiPy.js → Z5tQQ6IW5YBjblWX.js} +1 -1
- package/assets/{Cm2WENwEZ0KMyF--.js → b-xk3WtCPBkC4E-Z.js} +2 -2
- package/assets/{ndBoGVVjmy3vkff8.js → coTH4ab6CTEzw87b.js} +2 -2
- package/assets/{hcXZqO-0tG873E-L.js → do_DTptu6c_xHJoZ.js} +2 -2
- package/assets/{B6J8XN1FRN00a_ps.js → hAVtdK6u2tlLI2cB.js} +1 -1
- package/assets/{Cirpx81bWi4G2foA.js → hhpAcu3tINDLk7Ov.js} +5 -5
- package/assets/{DsWJ-YRyuwDUuSge.js → nSzQt54CIADky_tF.js} +1 -1
- package/assets/r-pk3RNq_HjMQFqr.js +14 -0
- package/assets/{Co_ZOyp4mKmSfh0A.js → ryaMyh_8KvmXVSJd.js} +1 -1
- package/assets/{C9eaFlFi_4GmymzP.js → sYakw2x8dcnpUlsX.js} +40 -40
- package/assets/{ltqqdJxoPnLCjhBV.js → tIoHMgrZeRHWyxos.js} +3 -3
- package/assets/{B5yaBbFj2Np9Eh8b.js → tPa3RpqYRqCCCYf1.js} +1 -1
- package/assets/{PMBjuoD2MpG87dao.js → v5XZSqLd9ZV3kqcA.js} +1 -1
- package/assets/{DMMw2v0iTuBnUjMI.js → vazKaFOkHRriv7tX.js} +1 -1
- package/assets/{BItblzoSm0lN3bTV.js → wWgI0JPoe_Wv0ceW.js} +1 -1
- package/assets/{DjH6ckvISyssOSit.js → xDx1vaNa2aCMs4_e.js} +1 -1
- package/assets/{Dsjx528shW3GcGpD.js → zJoBN2CJdxEV7vdh.js} +3 -3
- package/assets/{BkhWR4P1Evw_VP5z.js → ze6Q8BiEw9RClBzZ.js} +1 -1
- package/index.js +1769 -1706
- package/lib.js +1 -1
- package/licenses/dependencies.txt +35 -35
- package/package.json +2 -2
- package/screenshot-page/assets/0buGanYjZDNd9qAK.js +39 -0
- package/screenshot-page/assets/B2oadmu_j6WfNbZ1.js +1 -0
- package/screenshot-page/assets/{BMKiUDjoabO4aG1U.js → B668_VaGrdcWRbkC.js} +1 -1
- package/screenshot-page/assets/BGWgIYge30MP6Xhz.js +48 -0
- package/screenshot-page/assets/{FjOiReLnknWbsRRr.js → BGh5K-hHzy8mSVDr.js} +19 -19
- package/screenshot-page/assets/{BuzI4z8RJGOw8BZD.js → BIQ7KK-buzeddVA9.js} +1 -1
- package/screenshot-page/assets/BPRDGSNh0kvXRFUY.js +1 -0
- package/screenshot-page/assets/{BLPyKyNun9-SHQBZ.js → BRemww1df2HKLd_k.js} +1 -1
- package/screenshot-page/assets/{CXmrXx6MZ5ApF3co.js → Bm9-R9keVK5Sx-8o.js} +1 -1
- package/screenshot-page/assets/{BOjOE9CEMSzcij2W.js → BnZX0sxceYpvtg3I.js} +2 -2
- package/screenshot-page/assets/Bv2MgCMkg3EIQ6iE.js +13 -0
- package/screenshot-page/assets/BvaiwYJ5zZ0d5NRP.js +1 -0
- package/screenshot-page/assets/CAlTfQ_Gh-dURmUc.js +1 -0
- package/screenshot-page/assets/CCFxspvs5VzbYCfl.js +1 -0
- package/screenshot-page/assets/CCqTTfzZokVHIzs2.js +1 -0
- package/screenshot-page/assets/CPs_ARK8JCyz-yZg.js +1 -0
- package/screenshot-page/assets/{B9kA0vdaFJi9iRGo.js → CQ9C0-FcDZxrgC3T.js} +4 -4
- package/screenshot-page/assets/CUeMb48Ucrm5dK5u.js +1 -0
- package/screenshot-page/assets/CcOIj8c4N9KaWnD7.js +1 -0
- package/screenshot-page/assets/CjrHeIdacavAT_Ud.js +3 -0
- package/screenshot-page/assets/{RutPv2GFWmeBiWvn.js → Cmv8bpHaTWZ7Lmbt.js} +2 -2
- package/screenshot-page/assets/CqccUqSMYlwlf2ZU.js +2 -0
- package/screenshot-page/assets/CvmImq-Kbg9srxNr.js +4 -0
- package/screenshot-page/assets/D-3wYBqe4SWdE6bx.js +2 -0
- package/screenshot-page/assets/D-FWnGDbZ9BRDzPR.js +1 -0
- package/screenshot-page/assets/D717DArr-KKL0U6R.js +1 -0
- package/screenshot-page/assets/{BnPHZ_1rjv6kQgsL.js → D8-mayyvvVE1a4JB.js} +1 -1
- package/screenshot-page/assets/DM27mE98BNk1T18I.js +1 -0
- package/screenshot-page/assets/DN-T1DyRMKvxEJSK.js +1 -0
- package/screenshot-page/assets/DRdL1GN4SP7P8lSP.js +2 -0
- package/screenshot-page/assets/DcnhaY93LQd7kVdH.js +2 -0
- package/screenshot-page/assets/{BWtLNVUXjY6EBdEt.js → DdusmeEPaU7CWT6e.js} +1 -1
- package/screenshot-page/assets/{Dkr-6Z1RJsAp9Xrv.js → DfT1DMR1b5kiyYiV.js} +1 -1
- package/screenshot-page/assets/DigI6jhjHePzLgg1.js +1 -0
- package/screenshot-page/assets/DrDLCC0R2IV5VJd7.js +1 -0
- package/screenshot-page/assets/{H_hWDMWfWmjTui7V.js → Dwv5Z_c2XS-hm-5y.js} +1 -1
- package/screenshot-page/assets/Dx0pUf3G4Oa3dGOk.js +1 -0
- package/screenshot-page/assets/JcgNMFaj_uqHSFxr.js +1 -0
- package/screenshot-page/assets/{Bf9AN5sYHaxae0vV.js → U_8_wApwfA7KmIG3.js} +11 -11
- package/screenshot-page/assets/{XiUItCqTNNEApgfa.js → WZprjN2sb7HlraOb.js} +2 -2
- package/screenshot-page/assets/{C4v6Ljs6kwQJu06t.js → adhmz3N2Kgq5eW66.js} +2 -2
- package/screenshot-page/assets/qjoaeEBxfKWCHmqK.js +2 -0
- package/screenshot-page/assets/{BUO6zT3gqK0uOOa-.js → zALFdtoGJBN6m2Bn.js} +1 -1
- package/screenshot-page/assets/zd1Z2E1NjFp2EWC7.js +5 -0
- package/screenshot-page/index.html +8 -8
- package/types/scripting-api.json +7066 -7065
- package/types/scripting.d.ts +37 -9
- package/assets/BmmIukrNOivfENgD.js +0 -199
- package/assets/CCl8x9s8Bujsew7W.js +0 -14
- package/screenshot-page/assets/1yHlU53ypZZelMPx.js +0 -1
- package/screenshot-page/assets/BQ5BNe1adYfpa2OH.js +0 -1
- package/screenshot-page/assets/BZpFWPd0PR1kPT-A.js +0 -1
- package/screenshot-page/assets/BaCs7lUeZ7NidSkP.js +0 -1
- package/screenshot-page/assets/Bh2PQ0zsoGtMKWp1.js +0 -39
- package/screenshot-page/assets/BkhZQsVlVHOiKGTJ.js +0 -1
- package/screenshot-page/assets/Bzf_upccQ2ho6mX0.js +0 -13
- package/screenshot-page/assets/C0AbuMHcIS9oy4XL.js +0 -1
- package/screenshot-page/assets/C7YRL2bVWHPIwzn_.js +0 -1
- package/screenshot-page/assets/CImp91jfSuqX0Wz-.js +0 -1
- package/screenshot-page/assets/C_vPl50T1L5HWnhv.js +0 -1
- package/screenshot-page/assets/Cv-YUArreXqhafcU.js +0 -2
- package/screenshot-page/assets/D23_69pojBfIh4nV.js +0 -5
- package/screenshot-page/assets/D2q4M3I5Jmxm85P2.js +0 -1
- package/screenshot-page/assets/D8QsCbSaWCLAYYso.js +0 -1
- package/screenshot-page/assets/DC_Hdwa9KL7xKU8u.js +0 -2
- package/screenshot-page/assets/DHtL9Iawmr2Uo5VV.js +0 -2
- package/screenshot-page/assets/DKWRl8rs3K9jBYtr.js +0 -1
- package/screenshot-page/assets/DNYWB6WNZTquqQ9v.js +0 -4
- package/screenshot-page/assets/DegZKTNqt1LRnSxY.js +0 -1
- package/screenshot-page/assets/Dhh1xqujbhLa8WFd.js +0 -1
- package/screenshot-page/assets/DllI8kZZZ5LG0Mjd.js +0 -2
- package/screenshot-page/assets/DrcpGT9FLbDzeLeG.js +0 -2
- package/screenshot-page/assets/LCjlxIt1dn3smVjX.js +0 -1
- package/screenshot-page/assets/TwKKik-YQENv52LX.js +0 -1
- package/screenshot-page/assets/XrFpPrRqQNE9AAwH.js +0 -1
- package/screenshot-page/assets/mBuOPJeUPXlKwfPZ.js +0 -48
- package/screenshot-page/assets/zSnM7GhGzLu1MM_u.js +0 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.22
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
|
-
import { r as t } from "./
|
|
8
|
-
import { Q as e, Z as o, h as s, ht as r, ot as n, tt as i, xt as a } from "./
|
|
9
|
-
import { G as l, ht as c, lt as u, v as h } from "./
|
|
10
|
-
import { o as d, p, u as f } from "./
|
|
11
|
-
import {
|
|
12
|
-
import { P as
|
|
13
|
-
import { F as P, ft as O, vt as D, yt as N } from "./
|
|
14
|
-
import { $ as _, $n as M, Ar as $, B as R, Bt as V, C as L, Cr as j, Ct as B, Et as F, F as H, H as W, Hn as z, Ht as X, In as q, Ir as U, It as G, Jn as K, K as J, Kn as Z, Ln as Q, M as Y, Mr as tt, Mt as et, N as ot, Nn as st, O as rt, On as nt, Pr as it, Qn as at, Qt as lt, Rn as ct, S as ut, Sn as ht, T as dt, V as pt, W as ft, Wn as gt, Wt as mt, X as bt, Xn as yt, Yt as xt, Zn as wt, _n as Tt, _t as St, a as
|
|
7
|
+
import { r as t } from "./Dvsld01DkmiNLjfP.js";
|
|
8
|
+
import { Q as e, Z as o, h as s, ht as r, ot as n, tt as i, xt as a } from "./DHHYGjNwlLvja3dS.js";
|
|
9
|
+
import { G as l, ht as c, lt as u, v as h } from "./BSdRn3B8QeJFflY6.js";
|
|
10
|
+
import { o as d, p, u as f } from "./BUGEQS5WdiLcI_0X.js";
|
|
11
|
+
import { Mn as g, Pa as m, W as b, _t as y, en as v, ft as x, ia as w, io as T, oa as S, pn as C } from "./C1PTfp7kVu3DqqZh.js";
|
|
12
|
+
import { P as k, n as A, x as E, z as I } from "./CGB4xgirbgEIN3tg.js";
|
|
13
|
+
import { F as P, ft as O, vt as D, yt as N } from "./ryaMyh_8KvmXVSJd.js";
|
|
14
|
+
import { $ as _, $n as M, Ar as $, B as R, Bt as V, C as L, Cr as j, Ct as B, Et as F, F as H, H as W, Hn as z, Ht as X, In as q, Ir as U, It as G, Jn as K, K as J, Kn as Z, Ln as Q, M as Y, Mr as tt, Mt as et, N as ot, Nn as st, O as rt, On as nt, Pr as it, Qn as at, Qt as lt, Rn as ct, S as ut, Sn as ht, T as dt, V as pt, W as ft, Wn as gt, Wt as mt, X as bt, Xn as yt, Yt as xt, Zn as wt, _n as Tt, _t as St, a as Ct, an as kt, br as At, cr as Et, en as It, f as Pt, g as Ot, gr as Dt, gt as Nt, hr as _t, in as Mt, ir as $t, jt as Rt, kr as Vt, m as Lt, mr as jt, nr as Bt, ot as Ft, pn as Ht, q as Wt, qt as zt, rt as Xt, s as qt, sr as Ut, tt as Gt, u as Kt, ut as Jt, vn as Zt, vr as Qt, vt as Yt, x as te, xn as ee, xt as oe, yn as se, zn as re } from "./BlxrCp7d-SeM-2DW.js";
|
|
15
15
|
var ne = {
|
|
16
16
|
ascending: "ascending",
|
|
17
17
|
descending: "descending",
|
|
@@ -64,7 +64,7 @@ function ie(t, e) {
|
|
|
64
64
|
continue;
|
|
65
65
|
}
|
|
66
66
|
const p = s.get(String(u.tableId)), f = p ? ae(p.columns, u.columnId) : null;
|
|
67
|
-
p && f ? (o.json = ce(u, o.json,
|
|
67
|
+
p && f ? (o.json = ce(u, o.json, x.structuredReference(p.name, f.name)), l.add(c), u.cachePath && e.markAbsorbed(u.cachePath)) : (e.warn("A slicer names no table; it was not imported.", "xlsx.slicer.cacheDefinition"), d.splice(t, 1));
|
|
68
68
|
}
|
|
69
69
|
delete u.slicers;
|
|
70
70
|
}
|
|
@@ -247,13 +247,13 @@ function ve() {
|
|
|
247
247
|
function xe(t) {
|
|
248
248
|
return Math.round(10 * t) / 10;
|
|
249
249
|
}
|
|
250
|
-
var we = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", Te = `-${we}.0-9·̀-ͯ‿-⁀`, Se = (new RegExp(`^[${we}]$`, "u"), new RegExp(`^[${Te}]$`, "u"), new RegExp(`^[${we}][${Te}]*$`, "u")),
|
|
250
|
+
var we = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", Te = `-${we}.0-9·̀-ͯ‿-⁀`, Se = (new RegExp(`^[${we}]$`, "u"), new RegExp(`^[${Te}]$`, "u"), new RegExp(`^[${we}][${Te}]*$`, "u")), Ce = (new RegExp(`^[${Te}]+$`, "u"), [
|
|
251
251
|
32,
|
|
252
252
|
10,
|
|
253
253
|
13,
|
|
254
254
|
9
|
|
255
255
|
]);
|
|
256
|
-
function
|
|
256
|
+
function ke(t) {
|
|
257
257
|
return t >= 65 && t <= 90 || t >= 97 && t <= 122 || 58 === t || 95 === t || 8204 === t || 8205 === t || t >= 192 && t <= 214 || t >= 216 && t <= 246 || t >= 248 && t <= 767 || t >= 880 && t <= 893 || t >= 895 && t <= 8191 || t >= 8304 && t <= 8591 || t >= 11264 && t <= 12271 || t >= 12289 && t <= 55295 || t >= 63744 && t <= 64975 || t >= 65008 && t <= 65533 || t >= 65536 && t <= 983039;
|
|
258
258
|
}
|
|
259
259
|
var Ae = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", Ee = `-${Ae}.0-9·̀-ͯ‿-⁀`;
|
|
@@ -266,9 +266,9 @@ var Ne, _e = function(t) {
|
|
|
266
266
|
return 32 === t || 10 === t || 13 === t || 9 === t;
|
|
267
267
|
}, Me = function(t) {
|
|
268
268
|
return t >= 32 && t <= 55295 || 10 === t || 13 === t || 9 === t || t >= 57344 && t <= 65533 || t >= 65536 && t <= 1114111;
|
|
269
|
-
}, $e =
|
|
270
|
-
return
|
|
271
|
-
}, Ve =
|
|
269
|
+
}, $e = ke, Re = function(t) {
|
|
270
|
+
return ke(t) || t >= 48 && t <= 57 || 45 === t || 46 === t || 183 === t || t >= 768 && t <= 879 || t >= 8255 && t <= 8256;
|
|
271
|
+
}, Ve = Ce, Le = Se, je = function(t) {
|
|
272
272
|
return t >= 1 && t <= 55295 || t >= 57344 && t <= 65533 || t >= 65536 && t <= 1114111;
|
|
273
273
|
}, Be = De, Fe = function(t) {
|
|
274
274
|
return De(t) || 45 === t || 46 === t || t >= 48 && t <= 57 || 183 === t || t >= 768 && t <= 879 || t >= 8255 && t <= 8256;
|
|
@@ -1313,10 +1313,10 @@ var uo = (t) => He.test(t), ho = (t) => Le.test(t), po = {
|
|
|
1313
1313
|
var To = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t && "0" !== t && "off" !== t && "false" !== t && null, So = (t) => {
|
|
1314
1314
|
const e = parseInt(t);
|
|
1315
1315
|
return isNaN(e) ? null : e;
|
|
1316
|
-
},
|
|
1316
|
+
}, Co = (t) => {
|
|
1317
1317
|
const e = parseFloat(t);
|
|
1318
1318
|
return isNaN(e) ? null : e;
|
|
1319
|
-
},
|
|
1319
|
+
}, ko = null, Ao = (t) => t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), Eo = (t) => Ao(t).replace(/"/g, """), Io = class {
|
|
1320
1320
|
constructor() {
|
|
1321
1321
|
this._registeredVisitors = /* @__PURE__ */ new Map();
|
|
1322
1322
|
}
|
|
@@ -1505,19 +1505,19 @@ var To = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1505
1505
|
return !(!s || s.rowStart !== t || s.colEnd !== e - 1) && (s.colEnd = e, this._byColumn.set(e, s), s.restored);
|
|
1506
1506
|
}
|
|
1507
1507
|
getFormulaArray() {
|
|
1508
|
-
return this._restored.map((t) => [
|
|
1508
|
+
return this._restored.map((t) => [C.rangeToString(t), "dynamic"]);
|
|
1509
1509
|
}
|
|
1510
1510
|
}, Vo = /^\s*TABLE\s*\(([^()]*)\)\s*$/i, Lo = /^\s*(\$?)([A-Za-z]{1,3})(\$?)(\d{1,7})\s*$/, jo = (t) => {
|
|
1511
1511
|
const e = Lo.exec(t);
|
|
1512
1512
|
if (!e) return null;
|
|
1513
|
-
const o =
|
|
1513
|
+
const o = C.fastStringToCol(e[2]), s = parseInt(e[4], 10) - 1;
|
|
1514
1514
|
return o < 0 || s < 0 ? null : {
|
|
1515
1515
|
row: s,
|
|
1516
1516
|
col: o,
|
|
1517
1517
|
colAbsolute: "$" === e[1],
|
|
1518
1518
|
rowAbsolute: "$" === e[3]
|
|
1519
1519
|
};
|
|
1520
|
-
}, Bo = (t) =>
|
|
1520
|
+
}, Bo = (t) => C.cellToString({
|
|
1521
1521
|
rowIndex: t.row,
|
|
1522
1522
|
colIndex: t.col
|
|
1523
1523
|
}), Fo = (t, e) => {
|
|
@@ -1715,13 +1715,13 @@ var Ko = {
|
|
|
1715
1715
|
if (null !== e) return s?.get(e) || (n?.(`A color filter or sort names a format that does not exist (dxfId '${e}').`), {});
|
|
1716
1716
|
};
|
|
1717
1717
|
let u = !1;
|
|
1718
|
-
const h = a?.get("parseInlineDxf"), d = a?.get(Qo), f = (t) => d && t ? d.readDetached(t) : t,
|
|
1719
|
-
let
|
|
1718
|
+
const h = a?.get("parseInlineDxf"), d = a?.get(Qo), f = (t) => d && t ? d.readDetached(t) : t, g = new w.TransposedBuilder();
|
|
1719
|
+
let m = null, b = "topLeft";
|
|
1720
1720
|
l.registerVisitor({
|
|
1721
1721
|
from: "autoFilter",
|
|
1722
1722
|
to: "autoTable",
|
|
1723
1723
|
openTag: (t) => {
|
|
1724
|
-
const e = t.getAttribute("ref"), o =
|
|
1724
|
+
const e = t.getAttribute("ref"), o = C.fastStringToRange(e);
|
|
1725
1725
|
t.getSource().r = o, t.getSource().v = {};
|
|
1726
1726
|
},
|
|
1727
1727
|
closeTag: (t) => {
|
|
@@ -1756,13 +1756,13 @@ var Ko = {
|
|
|
1756
1756
|
r: e.r,
|
|
1757
1757
|
v: null,
|
|
1758
1758
|
rule: o
|
|
1759
|
-
}), t.copyToObject(o, "type",
|
|
1759
|
+
}), t.copyToObject(o, "type", ko), t.copyToObject(o, "priority", So), t.copyToObject(o, "stopIfTrue", To);
|
|
1760
1760
|
const r = t.getAttribute("dxfId", So);
|
|
1761
1761
|
if (null !== r) {
|
|
1762
1762
|
let e = s?.get(r);
|
|
1763
1763
|
e || (n?.(`Unable to load conditional color. Invalid dxfI: '${r}' at '${t.getPath()}'.`), e = {}), o.style = e;
|
|
1764
1764
|
}
|
|
1765
|
-
t.copyToObject(o, "aboveAverage", To), t.copyToObject(o, "equalAverage", To), t.copyToObject(o, "stdDev", So), t.copyToObject(o, "bottom", To), t.copyToObject(o, "percent", To), t.copyToObject(o, "rank", So), t.copyToObject(o, "operator",
|
|
1765
|
+
t.copyToObject(o, "aboveAverage", To), t.copyToObject(o, "equalAverage", To), t.copyToObject(o, "stdDev", So), t.copyToObject(o, "bottom", To), t.copyToObject(o, "percent", To), t.copyToObject(o, "rank", So), t.copyToObject(o, "operator", ko), t.copyToObject(o, "text", ko), t.copyToObject(o, "timePeriod", ko);
|
|
1766
1766
|
},
|
|
1767
1767
|
closeTag: (t) => {
|
|
1768
1768
|
const e = t.getParent();
|
|
@@ -1773,7 +1773,13 @@ var Ko = {
|
|
|
1773
1773
|
i && (r.condition = i), s.style && (r.style = s.style), s.scale && (r.scale = s.scale), s.stopIfTrue && (r.stopIfTrue = !0), s.pivot && "number" == typeof s.priority && (r.pivotKey = s.priority), o.v = r, o.priority = s.priority, s.x14Id && (o.x14Id = s.x14Id), delete o.rule;
|
|
1774
1774
|
}
|
|
1775
1775
|
});
|
|
1776
|
-
const
|
|
1776
|
+
const v = (t, e) => {
|
|
1777
|
+
const o = e.minLength ?? 10, s = e.maxLength ?? 90;
|
|
1778
|
+
0 === o ? delete t.minLength : t.minLength = o, 100 === s ? delete t.maxLength : t.maxLength = s;
|
|
1779
|
+
}, x = (t, e) => {
|
|
1780
|
+
const o = (t, e) => !t || t.type === e && void 0 === t.value && !t.exclusive, [s, r] = e;
|
|
1781
|
+
o(s, T.ColorStopType.Min) ? delete t.minPoint : t.minPoint = s, o(r, T.ColorStopType.Max) ? delete t.maxPoint : t.maxPoint = r;
|
|
1782
|
+
}, k = (t) => {
|
|
1777
1783
|
const e = t.conditions ?? [], o = [];
|
|
1778
1784
|
for (let t = 0; t < e.length; t++) {
|
|
1779
1785
|
const s = e[t], r = {};
|
|
@@ -1786,10 +1792,10 @@ var Ko = {
|
|
|
1786
1792
|
to: {},
|
|
1787
1793
|
openTag: (t) => {},
|
|
1788
1794
|
closeTag: (t) => {
|
|
1789
|
-
const e = t.getSource(), o = e.colors ?? [], s =
|
|
1795
|
+
const e = t.getSource(), o = e.colors ?? [], s = k(e);
|
|
1790
1796
|
for (let t = 0; t < s.length; t++) s[t].color = o[t];
|
|
1791
1797
|
t.getParent().scale = {
|
|
1792
|
-
type:
|
|
1798
|
+
type: T.ScaleType.ColorScale,
|
|
1793
1799
|
stops: s
|
|
1794
1800
|
};
|
|
1795
1801
|
}
|
|
@@ -1800,22 +1806,21 @@ var Ko = {
|
|
|
1800
1806
|
t.copyTo("maxLength", So), t.copyTo("minLength", So), t.copyTo("showValue", To);
|
|
1801
1807
|
},
|
|
1802
1808
|
closeTag: (t) => {
|
|
1803
|
-
const e = t.getSource(), o = {
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
s && (o.color = s), void 0 !== e.minLength && (o.minLength = e.minLength), void 0 !== e.maxLength && (o.maxLength = e.maxLength), void 0 !== e.showValue && (o.showValue = e.showValue), t.getParent().scale = o;
|
|
1809
|
+
const e = t.getSource(), o = { type: T.ScaleType.DataBar };
|
|
1810
|
+
x(o, k(e));
|
|
1811
|
+
const s = e.colors?.[0];
|
|
1812
|
+
s && (o.color = s), v(o, e), void 0 !== e.showValue && (o.showValue = e.showValue), t.getParent().scale = o;
|
|
1808
1813
|
}
|
|
1809
1814
|
}), l.registerVisitor({
|
|
1810
1815
|
from: "iconSet",
|
|
1811
1816
|
to: {},
|
|
1812
1817
|
openTag: (t) => {
|
|
1813
|
-
t.copyTo("iconSet",
|
|
1818
|
+
t.copyTo("iconSet", ko), t.copyTo("reverse", To), t.copyTo("showValue", To);
|
|
1814
1819
|
},
|
|
1815
1820
|
closeTag: (t) => {
|
|
1816
1821
|
const e = t.getSource(), o = {
|
|
1817
|
-
type:
|
|
1818
|
-
stops:
|
|
1822
|
+
type: T.ScaleType.IconSet,
|
|
1823
|
+
stops: k(e)
|
|
1819
1824
|
};
|
|
1820
1825
|
void 0 !== e.iconSet && (o.iconSet = e.iconSet), void 0 !== e.reverse && (o.reverse = e.reverse), void 0 !== e.showValue && (o.showValue = e.showValue), t.getParent().scale = o;
|
|
1821
1826
|
}
|
|
@@ -1834,10 +1839,10 @@ var Ko = {
|
|
|
1834
1839
|
const e = t.getParent();
|
|
1835
1840
|
e.conditions || (e.conditions = []);
|
|
1836
1841
|
const o = t.getSource();
|
|
1837
|
-
if (e.conditions.push(o), t.copyTo("type",
|
|
1842
|
+
if (e.conditions.push(o), t.copyTo("type", ko), o.type === T.ColorStopType.Formula) {
|
|
1838
1843
|
const e = t.getAttribute("val");
|
|
1839
1844
|
null != e && (o.value = f(String(e)));
|
|
1840
|
-
} else t.copyTo("value",
|
|
1845
|
+
} else t.copyTo("value", Co, "val");
|
|
1841
1846
|
!1 === t.getAttribute("gte", To) && (o.exclusive = !0);
|
|
1842
1847
|
}
|
|
1843
1848
|
}), l.registerVisitor({
|
|
@@ -1872,7 +1877,7 @@ var Ko = {
|
|
|
1872
1877
|
from: "colorFilter",
|
|
1873
1878
|
openTag: (t) => {
|
|
1874
1879
|
const e = t.getParent(), o = {};
|
|
1875
|
-
e.operator =
|
|
1880
|
+
e.operator = S.BuiltInOperatorNames.Color, e.param = o, t.copyToObject(o, "cellColor", To);
|
|
1876
1881
|
const s = c(t);
|
|
1877
1882
|
s && (o.style = s);
|
|
1878
1883
|
}
|
|
@@ -1880,13 +1885,13 @@ var Ko = {
|
|
|
1880
1885
|
from: "iconFilter",
|
|
1881
1886
|
openTag: (t) => {
|
|
1882
1887
|
const e = t.getParent(), o = {};
|
|
1883
|
-
e.operator =
|
|
1888
|
+
e.operator = S.BuiltInOperatorNames.Icon, e.param = o, t.copyToObject(o, "iconId", So), t.copyToObject(o, "iconSet", ko);
|
|
1884
1889
|
}
|
|
1885
1890
|
}), l.registerVisitor({
|
|
1886
1891
|
from: "top10",
|
|
1887
1892
|
openTag: (t) => {
|
|
1888
1893
|
const e = t.getParent(), o = {};
|
|
1889
|
-
e.operator =
|
|
1894
|
+
e.operator = S.BuiltInOperatorNames.TopN, e.param = o, t.copyToObject(o, "filterVal", Co), t.copyToObject(o, "percent", To), t.copyToObject(o, "top", To), t.copyToObject(o, "limit", Co, "val");
|
|
1890
1895
|
}
|
|
1891
1896
|
}), l.registerVisitor({
|
|
1892
1897
|
from: "dynamicFilter",
|
|
@@ -1895,43 +1900,43 @@ var Ko = {
|
|
|
1895
1900
|
e.operator = o.operator, e.param = o.param;
|
|
1896
1901
|
}
|
|
1897
1902
|
});
|
|
1898
|
-
const
|
|
1903
|
+
const A = {
|
|
1899
1904
|
from: "filters",
|
|
1900
1905
|
to: {},
|
|
1901
1906
|
openTag: (t) => {
|
|
1902
1907
|
const e = t.getParent(), o = {};
|
|
1903
|
-
return e.selector =
|
|
1908
|
+
return e.selector = S.BuiltInSelectorNames.Display, e.operator = S.BuiltInOperatorNames.InSet, e.param = o, t.copyToObject(o, "blank", To), t.copyToObject(o, "calendarType", ko), o;
|
|
1904
1909
|
}
|
|
1905
1910
|
};
|
|
1906
|
-
l.registerVisitor(
|
|
1907
|
-
const
|
|
1911
|
+
l.registerVisitor(A);
|
|
1912
|
+
const E = {
|
|
1908
1913
|
from: "filter",
|
|
1909
1914
|
openTag: (t) => {
|
|
1910
1915
|
const e = t.getParent();
|
|
1911
1916
|
let o = e.items;
|
|
1912
|
-
o || (o = [], e.items = o), o.push(t.getAttribute("val",
|
|
1917
|
+
o || (o = [], e.items = o), o.push(t.getAttribute("val", ko));
|
|
1913
1918
|
}
|
|
1914
1919
|
};
|
|
1915
|
-
l.registerVisitor(
|
|
1916
|
-
const
|
|
1920
|
+
l.registerVisitor(E);
|
|
1921
|
+
const I = {
|
|
1917
1922
|
from: "dateGroupItem",
|
|
1918
1923
|
to: {},
|
|
1919
1924
|
openTag: (t) => {
|
|
1920
1925
|
const e = t.getParent();
|
|
1921
1926
|
let o = e.dateGroups;
|
|
1922
|
-
o || (o = [], e.dateGroups = o), o.push(t.getSource()), t.copyTo("group",
|
|
1927
|
+
o || (o = [], e.dateGroups = o), o.push(t.getSource()), t.copyTo("group", ko, "dateTimeGrouping"), t.copyTo("day", So), t.copyTo("hour", So), t.copyTo("minute", So), t.copyTo("month", So), t.copyTo("second", So), t.copyTo("year", So);
|
|
1923
1928
|
}
|
|
1924
1929
|
};
|
|
1925
|
-
l.registerVisitor(
|
|
1926
|
-
const
|
|
1927
|
-
|
|
1930
|
+
l.registerVisitor(I);
|
|
1931
|
+
const P = /* @__PURE__ */ new Map();
|
|
1932
|
+
P.set("filterColumn", {
|
|
1928
1933
|
from: "filterColumn",
|
|
1929
1934
|
transparent: !0
|
|
1930
|
-
}),
|
|
1935
|
+
}), P.set("filters", A), P.set("filter", E), P.set("dateGroupItem", I), l.registerVisitor({
|
|
1931
1936
|
from: "customFilters",
|
|
1932
1937
|
openTag: (t) => {
|
|
1933
1938
|
const e = t.getParent(), o = t.getAttribute("and"), s = "and" === o || "1" === o, r = [];
|
|
1934
|
-
return e.operator = s ?
|
|
1939
|
+
return e.operator = s ? S.BuiltInOperatorNames.And : S.BuiltInOperatorNames.Or, e.param = r, t.setSource(e), r;
|
|
1935
1940
|
},
|
|
1936
1941
|
closeTag: (t) => {
|
|
1937
1942
|
const e = t.getSource(), o = e?.param;
|
|
@@ -1952,7 +1957,7 @@ var Ko = {
|
|
|
1952
1957
|
s && (o.operator = s.operator, o.param = s.param);
|
|
1953
1958
|
}
|
|
1954
1959
|
});
|
|
1955
|
-
let
|
|
1960
|
+
let O = {}, D = null;
|
|
1956
1961
|
l.registerVisitor({
|
|
1957
1962
|
from: "sortState",
|
|
1958
1963
|
to: {},
|
|
@@ -1961,16 +1966,16 @@ var Ko = {
|
|
|
1961
1966
|
let o = e.v;
|
|
1962
1967
|
if (!o) return;
|
|
1963
1968
|
const s = {};
|
|
1964
|
-
|
|
1969
|
+
O = {};
|
|
1965
1970
|
const r = t.getAttribute("caseSensitive", To);
|
|
1966
|
-
null != r && (
|
|
1971
|
+
null != r && (O.collatorOptions = r ? y.CaseSensitiveOptions : y.CaseInsensitiveOptions);
|
|
1967
1972
|
const n = t.getAttribute("sortMethod");
|
|
1968
|
-
"stroke" !== n && "pinYin" !== n || (
|
|
1969
|
-
...
|
|
1973
|
+
"stroke" !== n && "pinYin" !== n || (O.collatorOptions = {
|
|
1974
|
+
...O.collatorOptions,
|
|
1970
1975
|
collation: "stroke" === n ? "stroke" : "pinyin"
|
|
1971
1976
|
}), t.getAttribute("columnSort", To) && (s.axis = p.Axis.Column);
|
|
1972
1977
|
const i = t.getAttribute("ref"), a = e.r;
|
|
1973
|
-
|
|
1978
|
+
D = i && a ? C.fastStringToRange(i) : null, D && (s.extent = { range: Vt(a, D) }), o.sort = s, t.setSource(e);
|
|
1974
1979
|
}
|
|
1975
1980
|
}), l.registerVisitor({
|
|
1976
1981
|
from: "sortCondition",
|
|
@@ -1985,14 +1990,14 @@ var Ko = {
|
|
|
1985
1990
|
const n = t.getAttribute("ref");
|
|
1986
1991
|
let i = 0, a = null;
|
|
1987
1992
|
if (n) {
|
|
1988
|
-
const t =
|
|
1989
|
-
i = s ? o - r : o, s &&
|
|
1993
|
+
const t = C.fastStringToRange(n, as), o = t.colStart, s = e.r, r = s.colStart;
|
|
1994
|
+
i = s ? o - r : o, s && D && (a = _t(s, D, t));
|
|
1990
1995
|
}
|
|
1991
1996
|
s.extent && (s.extent.sorts ??= []).push(a);
|
|
1992
|
-
const l = { ...
|
|
1997
|
+
const l = { ...O }, u = qt(t.getAttribute("sortBy"));
|
|
1993
1998
|
u && (l.sortOn = u);
|
|
1994
1999
|
const h = c(t);
|
|
1995
|
-
h && (l.style = h), t.copyToObject(l, "iconSet",
|
|
2000
|
+
h && (l.style = h), t.copyToObject(l, "iconSet", ko), t.copyToObject(l, "customList", ko), l.reverse = t.getAttribute("descending", To) ?? !1;
|
|
1996
2001
|
const d = {
|
|
1997
2002
|
index: i,
|
|
1998
2003
|
criteria: l
|
|
@@ -2000,10 +2005,10 @@ var Ko = {
|
|
|
2000
2005
|
r.push(d);
|
|
2001
2006
|
}
|
|
2002
2007
|
});
|
|
2003
|
-
const
|
|
2004
|
-
|
|
2008
|
+
const N = (t) => {
|
|
2009
|
+
m = t.getSource(), b = "topLeft", t.copyTo("topLeft", ko, "topLeftCell");
|
|
2005
2010
|
const e = ct(t.getAttribute("defaultGridColor")), o = t.getAttribute("colorId");
|
|
2006
|
-
null === o || e || (t.getSource().gridLineColor = "index" + parseFloat(o)), t.copyTo("showZeros", To), t.copyTo("showFormulas", To), t.copyTo("zoomScale", So), t.copyTo("viewMode",
|
|
2011
|
+
null === o || e || (t.getSource().gridLineColor = "index" + parseFloat(o)), t.copyTo("showZeros", To), t.copyTo("showFormulas", To), t.copyTo("zoomScale", So), t.copyTo("viewMode", ko, "view");
|
|
2007
2012
|
const s = {};
|
|
2008
2013
|
for (const [e, o] of Yt) {
|
|
2009
2014
|
const r = t.getAttribute(o, So);
|
|
@@ -2015,10 +2020,10 @@ var Ko = {
|
|
|
2015
2020
|
from: "sheetView",
|
|
2016
2021
|
to: "view",
|
|
2017
2022
|
openTag: (t) => {
|
|
2018
|
-
|
|
2023
|
+
N(t);
|
|
2019
2024
|
},
|
|
2020
2025
|
closeTag: () => {
|
|
2021
|
-
|
|
2026
|
+
m = null;
|
|
2022
2027
|
}
|
|
2023
2028
|
}), l.registerVisitor({
|
|
2024
2029
|
from: "customSheetViews",
|
|
@@ -2030,19 +2035,19 @@ var Ko = {
|
|
|
2030
2035
|
from: "customSheetView",
|
|
2031
2036
|
to: [],
|
|
2032
2037
|
openTag: (t) => {
|
|
2033
|
-
|
|
2038
|
+
_ = !0, N(t);
|
|
2034
2039
|
},
|
|
2035
2040
|
closeTag: () => {
|
|
2036
|
-
|
|
2041
|
+
_ = !1, m = null;
|
|
2037
2042
|
}
|
|
2038
2043
|
}), l.registerVisitor({
|
|
2039
2044
|
from: "selection",
|
|
2040
2045
|
to: null,
|
|
2041
2046
|
openTag: (t) => {
|
|
2042
|
-
if (!
|
|
2047
|
+
if (!m) return;
|
|
2043
2048
|
const e = t.getAttribute("activeCell")?.replace(/\$/g, ""), o = t.getAttribute("sqref")?.replace(/\$/g, ""), s = t.getAttribute("pane") ?? "topLeft";
|
|
2044
|
-
if (s !==
|
|
2045
|
-
const t =
|
|
2049
|
+
if (s !== b) {
|
|
2050
|
+
const t = m.freezePanes;
|
|
2046
2051
|
if (t && e) {
|
|
2047
2052
|
const r = { activeCell: e };
|
|
2048
2053
|
o && o !== e && (r.sqref = o), (t.paneSelections ??= {})[s] = r;
|
|
@@ -2052,19 +2057,19 @@ var Ko = {
|
|
|
2052
2057
|
const r = {};
|
|
2053
2058
|
e && (r.cell = e);
|
|
2054
2059
|
const n = t.getAttribute("activeCellId", So);
|
|
2055
|
-
null !== n && (r.rangeIndex = n), o && o !== e && (r.ranges = o.trim().split(/\s+/)),
|
|
2060
|
+
null !== n && (r.rangeIndex = n), o && o !== e && (r.ranges = o.trim().split(/\s+/)), m.selection = r;
|
|
2056
2061
|
}
|
|
2057
2062
|
}), l.registerVisitor({
|
|
2058
2063
|
from: "pane",
|
|
2059
2064
|
to: null,
|
|
2060
2065
|
openTag: (t) => {
|
|
2061
|
-
if (!
|
|
2062
|
-
|
|
2066
|
+
if (!m) return;
|
|
2067
|
+
b = t.getAttribute("activePane") ?? "topLeft";
|
|
2063
2068
|
const e = t.getAttribute("state");
|
|
2064
2069
|
if ("frozen" === e || "frozenSplit" === e) {
|
|
2065
2070
|
const e = {};
|
|
2066
|
-
|
|
2067
|
-
const o = (
|
|
2071
|
+
m.freezePanes = e, t.copyToObject(e, "topLeft", ko, "topLeftCell");
|
|
2072
|
+
const o = (m.topLeft ? C.fastStringToCell(m.topLeft) : void 0) ?? {
|
|
2068
2073
|
colIndex: 0,
|
|
2069
2074
|
rowIndex: 0
|
|
2070
2075
|
}, s = {
|
|
@@ -2076,7 +2081,7 @@ var Ko = {
|
|
|
2076
2081
|
colIndex: o.colIndex + s.colIndex,
|
|
2077
2082
|
rowIndex: o.rowIndex + s.rowIndex
|
|
2078
2083
|
};
|
|
2079
|
-
e.coords =
|
|
2084
|
+
e.coords = C.cellToString(r);
|
|
2080
2085
|
}
|
|
2081
2086
|
}
|
|
2082
2087
|
}), l.registerVisitor({
|
|
@@ -2098,13 +2103,13 @@ var Ko = {
|
|
|
2098
2103
|
o && (t.tabColor = o);
|
|
2099
2104
|
}
|
|
2100
2105
|
});
|
|
2101
|
-
let
|
|
2102
|
-
const
|
|
2106
|
+
let _ = !1;
|
|
2107
|
+
const M = () => t.pageLayout ??= {};
|
|
2103
2108
|
l.registerVisitor({
|
|
2104
2109
|
from: "pageSetUpPr",
|
|
2105
2110
|
to: null,
|
|
2106
2111
|
openTag: (t) => {
|
|
2107
|
-
!0 === t.getAttribute("fitToPage", To) && (
|
|
2112
|
+
!0 === t.getAttribute("fitToPage", To) && (M().fitToPage = !0), !1 === t.getAttribute("autoPageBreaks", To) && (M().hideAutoPageBreaks = !0);
|
|
2108
2113
|
}
|
|
2109
2114
|
}), l.registerVisitor({
|
|
2110
2115
|
from: "outlinePr",
|
|
@@ -2123,8 +2128,8 @@ var Ko = {
|
|
|
2123
2128
|
from: "pageMargins",
|
|
2124
2129
|
to: null,
|
|
2125
2130
|
openTag: (t) => {
|
|
2126
|
-
if (
|
|
2127
|
-
const e = (e, o) => t.getAttribute(e,
|
|
2131
|
+
if (_) return;
|
|
2132
|
+
const e = (e, o) => t.getAttribute(e, Co) ?? o, o = {
|
|
2128
2133
|
left: e("left", .7),
|
|
2129
2134
|
right: e("right", .7),
|
|
2130
2135
|
top: e("top", .75),
|
|
@@ -2132,14 +2137,14 @@ var Ko = {
|
|
|
2132
2137
|
header: e("header", .3),
|
|
2133
2138
|
footer: e("footer", .3)
|
|
2134
2139
|
};
|
|
2135
|
-
.7 === o.left && .7 === o.right && .75 === o.top && .75 === o.bottom && .3 === o.header && .3 === o.footer || (
|
|
2140
|
+
.7 === o.left && .7 === o.right && .75 === o.top && .75 === o.bottom && .3 === o.header && .3 === o.footer || (M().margins = o);
|
|
2136
2141
|
}
|
|
2137
2142
|
}), l.registerVisitor({
|
|
2138
2143
|
from: "pageSetup",
|
|
2139
2144
|
to: null,
|
|
2140
2145
|
openTag: (t) => {
|
|
2141
|
-
if (
|
|
2142
|
-
const o =
|
|
2146
|
+
if (_) return;
|
|
2147
|
+
const o = M(), s = (e) => t.getAttribute(e, So) ?? void 0, r = (e) => t.getAttribute(e, To), n = t.getAttribute("orientation");
|
|
2143
2148
|
"landscape" !== n && "portrait" !== n || (o.orientation = n);
|
|
2144
2149
|
for (const t of [
|
|
2145
2150
|
"paperSize",
|
|
@@ -2169,49 +2174,49 @@ var Ko = {
|
|
|
2169
2174
|
from: "printOptions",
|
|
2170
2175
|
to: null,
|
|
2171
2176
|
openTag: (t) => {
|
|
2172
|
-
if (
|
|
2177
|
+
if (_) return;
|
|
2173
2178
|
const e = (e) => !0 === t.getAttribute(e, To);
|
|
2174
|
-
e("horizontalCentered") && (
|
|
2179
|
+
e("horizontalCentered") && (M().centerHorizontally = !0), e("verticalCentered") && (M().centerVertically = !0), e("gridLines") && (M().printGridlines = !0), e("headings") && (M().printHeadings = !0);
|
|
2175
2180
|
}
|
|
2176
2181
|
}), l.registerVisitor({
|
|
2177
2182
|
from: "headerFooter",
|
|
2178
2183
|
to: {},
|
|
2179
2184
|
openTag: (t) => {
|
|
2180
|
-
if (
|
|
2185
|
+
if (_) return;
|
|
2181
2186
|
const e = {}, o = (e) => t.getAttribute(e, To);
|
|
2182
|
-
!0 === o("differentOddEven") && (e.differentOddEven = !0), !0 === o("differentFirst") && (e.differentFirst = !0), !1 === o("scaleWithDoc") && (e.ignoreSheetScale = !0), !1 === o("alignWithMargins") && (e.ignoreSheetMargins = !0), Object.keys(e).length > 0 && (
|
|
2187
|
+
!0 === o("differentOddEven") && (e.differentOddEven = !0), !0 === o("differentFirst") && (e.differentFirst = !0), !1 === o("scaleWithDoc") && (e.ignoreSheetScale = !0), !1 === o("alignWithMargins") && (e.ignoreSheetMargins = !0), Object.keys(e).length > 0 && (M().headerFooter = e);
|
|
2183
2188
|
}
|
|
2184
2189
|
});
|
|
2185
2190
|
for (const t of et) l.registerVisitor({
|
|
2186
2191
|
from: t,
|
|
2187
2192
|
to: {},
|
|
2188
2193
|
text: (e, o) => {
|
|
2189
|
-
if (
|
|
2190
|
-
const s =
|
|
2194
|
+
if (_) return;
|
|
2195
|
+
const s = M(), r = s.headerFooter ??= {};
|
|
2191
2196
|
r[t] = (r[t] ?? "") + W(e);
|
|
2192
2197
|
}
|
|
2193
2198
|
});
|
|
2194
|
-
let
|
|
2199
|
+
let R = "rowBreaks";
|
|
2195
2200
|
for (const [t, e] of [["rowBreaks", "rowBreaks"], ["colBreaks", "columnBreaks"]]) l.registerVisitor({
|
|
2196
2201
|
from: t,
|
|
2197
2202
|
to: {},
|
|
2198
2203
|
openTag: () => {
|
|
2199
|
-
|
|
2204
|
+
R = e;
|
|
2200
2205
|
}
|
|
2201
2206
|
});
|
|
2202
2207
|
l.registerVisitor({
|
|
2203
2208
|
from: "brk",
|
|
2204
2209
|
to: null,
|
|
2205
2210
|
openTag: (t) => {
|
|
2206
|
-
if (
|
|
2211
|
+
if (_) return;
|
|
2207
2212
|
const e = t.getAttribute("id", So);
|
|
2208
2213
|
if (null == e) return;
|
|
2209
2214
|
const o = { index: e }, s = t.getAttribute("min", So);
|
|
2210
2215
|
null != s && (o.min = s);
|
|
2211
2216
|
const r = t.getAttribute("max", So);
|
|
2212
2217
|
null != r && (o.max = r), !0 !== t.getAttribute("man", To) && (o.automatic = !0), !0 === t.getAttribute("pt", To) && (o.pivot = !0);
|
|
2213
|
-
const n =
|
|
2214
|
-
(n[
|
|
2218
|
+
const n = M();
|
|
2219
|
+
(n[R] ??= []).push(o);
|
|
2215
2220
|
}
|
|
2216
2221
|
}), l.registerVisitor({
|
|
2217
2222
|
from: "ignoredErrors",
|
|
@@ -2251,7 +2256,7 @@ var Ko = {
|
|
|
2251
2256
|
});
|
|
2252
2257
|
}
|
|
2253
2258
|
});
|
|
2254
|
-
const
|
|
2259
|
+
const L = {
|
|
2255
2260
|
from: "dataValidation",
|
|
2256
2261
|
to: [],
|
|
2257
2262
|
openTag: (t) => {
|
|
@@ -2265,7 +2270,7 @@ var Ko = {
|
|
|
2265
2270
|
operator: t.getAttribute("operator") ?? void 0
|
|
2266
2271
|
}
|
|
2267
2272
|
};
|
|
2268
|
-
!0 === t.getAttribute("showDropDown", To) && (o.hideDropdown = !0), t.copyToObject(o, "alert",
|
|
2273
|
+
!0 === t.getAttribute("showDropDown", To) && (o.hideDropdown = !0), t.copyToObject(o, "alert", ko, "error"), t.copyToObject(o, "alertTitle", ko, "errorTitle"), t.copyToObject(o, "showAlertMessage", To, "showErrorMessage"), o.alertStyle = t.getAttribute("errorStyle") ?? "stop", t.copyToObject(o, "imeMode"), t.copyToObject(o, "prompt"), t.copyToObject(o, "promptTitle"), t.copyToObject(o, "showPromptMessage", To, "showInputMessage"), t.setSource(s);
|
|
2269
2274
|
},
|
|
2270
2275
|
closeTag: (t) => {
|
|
2271
2276
|
const e = t.getSource();
|
|
@@ -2274,7 +2279,7 @@ var Ko = {
|
|
|
2274
2279
|
o && (t.getAttribute("allowBlank", To) && (o.includeBlanks = !0), e.v.condition = o), delete e.rule;
|
|
2275
2280
|
}
|
|
2276
2281
|
};
|
|
2277
|
-
l.registerVisitor(
|
|
2282
|
+
l.registerVisitor(L), l.registerVisitor({
|
|
2278
2283
|
from: "formula1",
|
|
2279
2284
|
to: {},
|
|
2280
2285
|
text: (t, e) => {
|
|
@@ -2298,7 +2303,7 @@ var Ko = {
|
|
|
2298
2303
|
t.getSource().resId = s;
|
|
2299
2304
|
}
|
|
2300
2305
|
});
|
|
2301
|
-
const
|
|
2306
|
+
const j = {
|
|
2302
2307
|
from: "slicer",
|
|
2303
2308
|
to: {},
|
|
2304
2309
|
openTag: (t) => {
|
|
@@ -2310,8 +2315,8 @@ var Ko = {
|
|
|
2310
2315
|
for (const t of n) r.slicers[t] = s[t];
|
|
2311
2316
|
}
|
|
2312
2317
|
};
|
|
2313
|
-
l.registerVisitor(
|
|
2314
|
-
const
|
|
2318
|
+
l.registerVisitor(j);
|
|
2319
|
+
const F = {
|
|
2315
2320
|
from: "timelineRef",
|
|
2316
2321
|
to: {},
|
|
2317
2322
|
openTag: (t) => {
|
|
@@ -2321,7 +2326,7 @@ var Ko = {
|
|
|
2321
2326
|
r.slicers ??= {};
|
|
2322
2327
|
for (const t of Object.keys(s)) r.slicers[t] = s[t];
|
|
2323
2328
|
}
|
|
2324
|
-
},
|
|
2329
|
+
}, H = (t, e) => ({
|
|
2325
2330
|
from: t,
|
|
2326
2331
|
to: {},
|
|
2327
2332
|
openTag: (t) => {
|
|
@@ -2333,8 +2338,8 @@ var Ko = {
|
|
|
2333
2338
|
closeTag: (t) => {
|
|
2334
2339
|
e(String(t.getSource() ?? ""), t);
|
|
2335
2340
|
}
|
|
2336
|
-
}),
|
|
2337
|
-
|
|
2341
|
+
}), z = /* @__PURE__ */ new Map();
|
|
2342
|
+
z.set("dataValidations", {
|
|
2338
2343
|
from: "dataValidations",
|
|
2339
2344
|
to: "validations",
|
|
2340
2345
|
openTag: (t) => {
|
|
@@ -2344,15 +2349,15 @@ var Ko = {
|
|
|
2344
2349
|
closeTag: (t) => {
|
|
2345
2350
|
0 === (t.getSource()?.length ?? 0) && t.setSource(void 0);
|
|
2346
2351
|
}
|
|
2347
|
-
}),
|
|
2348
|
-
...
|
|
2352
|
+
}), z.set("dataValidation", {
|
|
2353
|
+
...L,
|
|
2349
2354
|
closeTag: (t) => {
|
|
2350
|
-
|
|
2355
|
+
L.closeTag(t);
|
|
2351
2356
|
const e = t.getSource();
|
|
2352
2357
|
e && !e.r && (t.warn("x14 dataValidation with no xm:sqref was dropped."), t.setSource(void 0));
|
|
2353
2358
|
}
|
|
2354
2359
|
});
|
|
2355
|
-
const
|
|
2360
|
+
const X = (t) => ({
|
|
2356
2361
|
from: t,
|
|
2357
2362
|
to: {},
|
|
2358
2363
|
openTag: (e) => {
|
|
@@ -2362,18 +2367,18 @@ var Ko = {
|
|
|
2362
2367
|
});
|
|
2363
2368
|
}
|
|
2364
2369
|
});
|
|
2365
|
-
|
|
2370
|
+
z.set("formula1", X("formula1")), z.set("formula2", X("formula2")), z.set("f", H("f", (t, e) => {
|
|
2366
2371
|
const o = e.getParent(), s = o?.rule;
|
|
2367
2372
|
s && (s[o.key] = oe(f(t), s.type));
|
|
2368
|
-
})),
|
|
2373
|
+
})), z.set("sqref", H("sqref", (t, e) => {
|
|
2369
2374
|
const o = e.getParent(), s = t.trim();
|
|
2370
2375
|
o && s && (o.r = s.split(/\s+/).join(","));
|
|
2371
2376
|
}));
|
|
2372
|
-
const
|
|
2373
|
-
|
|
2377
|
+
const G = /* @__PURE__ */ new Map(), K = [], J = /* @__PURE__ */ new Map();
|
|
2378
|
+
J.set("conditionalFormattings", {
|
|
2374
2379
|
from: "conditionalFormattings",
|
|
2375
2380
|
transparent: !0
|
|
2376
|
-
}),
|
|
2381
|
+
}), J.set("conditionalFormatting", {
|
|
2377
2382
|
from: "conditionalFormatting",
|
|
2378
2383
|
to: {},
|
|
2379
2384
|
openTag: (t) => {
|
|
@@ -2383,61 +2388,61 @@ var Ko = {
|
|
|
2383
2388
|
const e = t.getSource(), o = e?.rules ?? [];
|
|
2384
2389
|
for (let t = 0; t < o.length; t++) {
|
|
2385
2390
|
const s = o[t];
|
|
2386
|
-
s.sqref = e.sqref, s.id ?
|
|
2391
|
+
s.sqref = e.sqref, s.id ? G.set(s.id, s) : K.push(s);
|
|
2387
2392
|
}
|
|
2388
2393
|
}
|
|
2389
|
-
}),
|
|
2394
|
+
}), J.set("cfRule", {
|
|
2390
2395
|
from: "cfRule",
|
|
2391
2396
|
to: {},
|
|
2392
2397
|
openTag: (t) => {
|
|
2393
|
-
t.copyTo("id",
|
|
2398
|
+
t.copyTo("id", ko), t.copyTo("type", ko), t.copyTo("priority", So), t.copyTo("stopIfTrue", To), t.copyTo("operator", ko), t.copyTo("text", ko), t.copyTo("timePeriod", ko), t.copyTo("aboveAverage", To), t.copyTo("equalAverage", To), t.copyTo("stdDev", So), t.copyTo("bottom", To), t.copyTo("percent", To), t.copyTo("rank", So);
|
|
2394
2399
|
},
|
|
2395
2400
|
closeTag: (t) => {
|
|
2396
2401
|
const e = t.getSource();
|
|
2397
2402
|
e && t.getParent()?.rules?.push(e);
|
|
2398
2403
|
}
|
|
2399
|
-
}),
|
|
2404
|
+
}), J.set("sqref", H("sqref", (t, e) => {
|
|
2400
2405
|
const o = e.getParent(), s = t.trim();
|
|
2401
2406
|
o && s && (o.sqref = s);
|
|
2402
|
-
})),
|
|
2407
|
+
})), J.set("dataBar", {
|
|
2403
2408
|
from: "dataBar",
|
|
2404
2409
|
to: {},
|
|
2405
2410
|
openTag: (t) => {
|
|
2406
|
-
t.copyTo("minLength", So), t.copyTo("maxLength", So), t.copyTo("gradient", To), t.copyTo("border", To), t.copyTo("direction",
|
|
2411
|
+
t.copyTo("minLength", So), t.copyTo("maxLength", So), t.copyTo("gradient", To), t.copyTo("border", To), t.copyTo("direction", ko), t.copyTo("axisPosition", ko), t.copyTo("negativeBarColorSameAsPositive", To), t.copyTo("negativeBarBorderColorSameAsPositive", To);
|
|
2407
2412
|
},
|
|
2408
2413
|
closeTag: (t) => {
|
|
2409
2414
|
t.getParent().dataBar = t.getSource();
|
|
2410
2415
|
}
|
|
2411
|
-
}),
|
|
2416
|
+
}), J.set("iconSet", {
|
|
2412
2417
|
from: "iconSet",
|
|
2413
2418
|
to: {},
|
|
2414
2419
|
openTag: (t) => {
|
|
2415
|
-
t.copyTo("iconSet",
|
|
2420
|
+
t.copyTo("iconSet", ko), t.copyTo("custom", To), t.copyTo("reverse", To), t.copyTo("showValue", To);
|
|
2416
2421
|
},
|
|
2417
2422
|
closeTag: (t) => {
|
|
2418
2423
|
t.getParent().iconSet = t.getSource();
|
|
2419
2424
|
}
|
|
2420
2425
|
});
|
|
2421
|
-
const
|
|
2422
|
-
|
|
2426
|
+
const Z = /* @__PURE__ */ new Map();
|
|
2427
|
+
Z.set("f", H("f", (t, e) => {
|
|
2423
2428
|
const o = e.getParent();
|
|
2424
2429
|
if (!o) return;
|
|
2425
2430
|
const s = t.trim(), r = Number(s);
|
|
2426
2431
|
o.value = s.length > 0 && Number.isFinite(r) ? r : f(t);
|
|
2427
|
-
})),
|
|
2432
|
+
})), J.set("cfvo", {
|
|
2428
2433
|
from: "cfvo",
|
|
2429
2434
|
to: {},
|
|
2430
|
-
scope: () =>
|
|
2435
|
+
scope: () => Z,
|
|
2431
2436
|
openTag: (t) => {
|
|
2432
2437
|
const e = t.getParent();
|
|
2433
2438
|
e.conditions || (e.conditions = []);
|
|
2434
2439
|
const o = t.getSource();
|
|
2435
|
-
e.conditions.push(o), t.copyTo("type",
|
|
2440
|
+
e.conditions.push(o), t.copyTo("type", ko), !1 === t.getAttribute("gte", To) && (o.exclusive = !0);
|
|
2436
2441
|
}
|
|
2437
|
-
}),
|
|
2442
|
+
}), J.set("f", H("f", (t, e) => {
|
|
2438
2443
|
const o = e.getParent();
|
|
2439
2444
|
o && (o.formulas ??= []).push(f(t));
|
|
2440
|
-
})),
|
|
2445
|
+
})), J.set("dxf", {
|
|
2441
2446
|
from: "dxf",
|
|
2442
2447
|
to: {},
|
|
2443
2448
|
raw: !0,
|
|
@@ -2449,7 +2454,7 @@ var Ko = {
|
|
|
2449
2454
|
o && (e.style = o);
|
|
2450
2455
|
}
|
|
2451
2456
|
});
|
|
2452
|
-
const
|
|
2457
|
+
const Q = (t) => ({
|
|
2453
2458
|
from: t,
|
|
2454
2459
|
to: {},
|
|
2455
2460
|
openTag: (e) => {
|
|
@@ -2457,7 +2462,7 @@ var Ko = {
|
|
|
2457
2462
|
o && (e.getParent()[t] = o);
|
|
2458
2463
|
}
|
|
2459
2464
|
});
|
|
2460
|
-
|
|
2465
|
+
J.set("borderColor", Q("borderColor")), J.set("negativeFillColor", Q("negativeFillColor")), J.set("negativeBorderColor", Q("negativeBorderColor")), J.set("axisColor", Q("axisColor")), J.set("cfIcon", {
|
|
2461
2466
|
from: "cfIcon",
|
|
2462
2467
|
to: {},
|
|
2463
2468
|
openTag: (t) => {
|
|
@@ -2470,23 +2475,23 @@ var Ko = {
|
|
|
2470
2475
|
});
|
|
2471
2476
|
}
|
|
2472
2477
|
});
|
|
2473
|
-
const
|
|
2474
|
-
|
|
2478
|
+
const tt = /* @__PURE__ */ new Map();
|
|
2479
|
+
tt.set("id", H("id", (t, e) => {
|
|
2475
2480
|
const o = e.getParent(), s = t.trim();
|
|
2476
2481
|
o && s && (o.x14Id = s);
|
|
2477
2482
|
}));
|
|
2478
|
-
const
|
|
2479
|
-
|
|
2483
|
+
const st = /* @__PURE__ */ new Map();
|
|
2484
|
+
st.set("slicerList", {
|
|
2480
2485
|
from: "slicerList",
|
|
2481
2486
|
transparent: !0
|
|
2482
|
-
}),
|
|
2483
|
-
const
|
|
2484
|
-
|
|
2487
|
+
}), st.set("slicer", j);
|
|
2488
|
+
const it = /* @__PURE__ */ new Map();
|
|
2489
|
+
it.set("timelineRefs", {
|
|
2485
2490
|
from: "timelineRefs",
|
|
2486
2491
|
transparent: !0
|
|
2487
|
-
}),
|
|
2488
|
-
const
|
|
2489
|
-
|
|
2492
|
+
}), it.set("timelineRef", F);
|
|
2493
|
+
const lt = /* @__PURE__ */ new Map();
|
|
2494
|
+
lt.set("sparklineGroups", {
|
|
2490
2495
|
from: "sparklineGroups",
|
|
2491
2496
|
to: "sparklineGroups",
|
|
2492
2497
|
openTag: (t) => {
|
|
@@ -2496,7 +2501,7 @@ var Ko = {
|
|
|
2496
2501
|
closeTag: (t) => {
|
|
2497
2502
|
0 === (t.getSource()?.length ?? 0) && t.setSource(void 0);
|
|
2498
2503
|
}
|
|
2499
|
-
}),
|
|
2504
|
+
}), lt.set("sparklineGroup", {
|
|
2500
2505
|
from: "sparklineGroup",
|
|
2501
2506
|
to: [],
|
|
2502
2507
|
openTag: (t) => {
|
|
@@ -2515,7 +2520,7 @@ var Ko = {
|
|
|
2515
2520
|
o || t.warn("A sparkline group with no sparklines was dropped.", { onceKey: "xlsx.sheet.sparklineGroup.empty" }), t.setSource(o ?? void 0);
|
|
2516
2521
|
}
|
|
2517
2522
|
});
|
|
2518
|
-
for (const t of at)
|
|
2523
|
+
for (const t of at) lt.set(t, {
|
|
2519
2524
|
from: t,
|
|
2520
2525
|
to: {},
|
|
2521
2526
|
openTag: (e) => {
|
|
@@ -2523,17 +2528,17 @@ var Ko = {
|
|
|
2523
2528
|
o && (e.getParent().properties[t] = o);
|
|
2524
2529
|
}
|
|
2525
2530
|
});
|
|
2526
|
-
|
|
2531
|
+
lt.set("sparklines", {
|
|
2527
2532
|
from: "sparklines",
|
|
2528
2533
|
transparent: !0
|
|
2529
|
-
}),
|
|
2534
|
+
}), lt.set("sparkline", {
|
|
2530
2535
|
from: "sparkline",
|
|
2531
2536
|
to: {},
|
|
2532
2537
|
openTag: (t) => {
|
|
2533
2538
|
t.setSource({ isSparkline: !0 });
|
|
2534
2539
|
},
|
|
2535
2540
|
closeTag: (t) => {
|
|
2536
|
-
const e = t.getSource(), o = t.getParent(), s = e?.sqref?.trim(), r = s ?
|
|
2541
|
+
const e = t.getSource(), o = t.getParent(), s = e?.sqref?.trim(), r = s ? C.fastStringToRange(s.split(/\s+/)[0]) : null;
|
|
2537
2542
|
r ? o.entries.push({
|
|
2538
2543
|
location: {
|
|
2539
2544
|
rowIndex: r.rowStart,
|
|
@@ -2542,24 +2547,24 @@ var Ko = {
|
|
|
2542
2547
|
data: e.data ?? ""
|
|
2543
2548
|
}) : t.warn("A sparkline with no location was dropped.", { onceKey: "xlsx.sheet.sparkline.incomplete" });
|
|
2544
2549
|
}
|
|
2545
|
-
}),
|
|
2550
|
+
}), lt.set("f", H("f", (t, e) => {
|
|
2546
2551
|
const o = e.getParent(), s = t.trim();
|
|
2547
2552
|
o && s && (o.isSparkline ? o.data = s : o.properties.dateRange = s);
|
|
2548
|
-
})),
|
|
2553
|
+
})), lt.set("sqref", H("sqref", (t, e) => {
|
|
2549
2554
|
const o = e.getParent();
|
|
2550
2555
|
o?.isSparkline && (o.sqref = t);
|
|
2551
2556
|
}));
|
|
2552
|
-
const
|
|
2553
|
-
[Dt(Jt),
|
|
2554
|
-
[Dt($t),
|
|
2555
|
-
[Dt(se),
|
|
2556
|
-
[Dt(nt),
|
|
2557
|
-
[Dt(mt),
|
|
2558
|
-
[Dt(gt),
|
|
2559
|
-
[Dt(xt),
|
|
2560
|
-
[Dt(Ht),
|
|
2561
|
-
[Dt(
|
|
2562
|
-
]),
|
|
2557
|
+
const ut = /* @__PURE__ */ new Map([
|
|
2558
|
+
[Dt(Jt), lt],
|
|
2559
|
+
[Dt($t), z],
|
|
2560
|
+
[Dt(se), J],
|
|
2561
|
+
[Dt(nt), J],
|
|
2562
|
+
[Dt(mt), tt],
|
|
2563
|
+
[Dt(gt), st],
|
|
2564
|
+
[Dt(xt), st],
|
|
2565
|
+
[Dt(Ht), it],
|
|
2566
|
+
[Dt(Ct), P]
|
|
2567
|
+
]), ht = /* @__PURE__ */ new Set();
|
|
2563
2568
|
l.registerVisitor({
|
|
2564
2569
|
from: "extLst",
|
|
2565
2570
|
transparent: !0
|
|
@@ -2567,10 +2572,10 @@ var Ko = {
|
|
|
2567
2572
|
from: "ext",
|
|
2568
2573
|
transparent: !0,
|
|
2569
2574
|
scope: (t) => {
|
|
2570
|
-
const e = t.getAttribute("uri"), o = Dt(e), s =
|
|
2575
|
+
const e = t.getAttribute("uri"), o = Dt(e), s = ut.get(o);
|
|
2571
2576
|
if (s) return s;
|
|
2572
|
-
if (!V.has(o) && !
|
|
2573
|
-
|
|
2577
|
+
if (!V.has(o) && !ht.has(o)) {
|
|
2578
|
+
ht.add(o);
|
|
2574
2579
|
const s = $[o];
|
|
2575
2580
|
t.warn(s ? `Extension content '${s}' (${e}) is not read; it will be lost on resave.` : `Unknown extension content (uri ${e}) is not read; it will be lost on resave.`);
|
|
2576
2581
|
}
|
|
@@ -2630,20 +2635,20 @@ var Ko = {
|
|
|
2630
2635
|
t.setSource(e(t.getAttribute("r:id"), "legacyDrawing") ?? void 0);
|
|
2631
2636
|
}
|
|
2632
2637
|
});
|
|
2633
|
-
let
|
|
2634
|
-
const
|
|
2638
|
+
let dt = null, pt = !1;
|
|
2639
|
+
const yt = /* @__PURE__ */ new Map(), vt = {
|
|
2635
2640
|
from: "Fallback",
|
|
2636
2641
|
to: null
|
|
2637
|
-
},
|
|
2642
|
+
}, Tt = {
|
|
2638
2643
|
from: "Choice",
|
|
2639
2644
|
transparent: !0
|
|
2640
2645
|
};
|
|
2641
|
-
|
|
2646
|
+
yt.set("Fallback", vt), yt.set("Choice", Tt), yt.set("control", {
|
|
2642
2647
|
from: "control",
|
|
2643
2648
|
transparent: !0,
|
|
2644
2649
|
openTag: (t) => {
|
|
2645
2650
|
const o = t.getAttribute("name"), s = t.getAttribute("r:id"), r = s ? e(s, "formControl") : null;
|
|
2646
|
-
if (!r) return t.warn(`The form control '${o ?? ""}' has no properties and was not read.`, { onceKey: "xlsx.sheet.control.noProperties" }), void (
|
|
2651
|
+
if (!r) return t.warn(`The form control '${o ?? ""}' has no properties and was not read.`, { onceKey: "xlsx.sheet.control.noProperties" }), void (dt = null);
|
|
2647
2652
|
const n = r.json, i = parseInt(t.getAttribute("shapeId") ?? "", 10);
|
|
2648
2653
|
isNaN(i) || (n.shapeId = i);
|
|
2649
2654
|
const a = {
|
|
@@ -2666,29 +2671,29 @@ var Ko = {
|
|
|
2666
2671
|
json: n
|
|
2667
2672
|
}
|
|
2668
2673
|
};
|
|
2669
|
-
o && (a.content.name = o),
|
|
2674
|
+
o && (a.content.name = o), dt = {
|
|
2670
2675
|
movable: a,
|
|
2671
2676
|
control: n
|
|
2672
2677
|
};
|
|
2673
2678
|
},
|
|
2674
2679
|
closeTag: () => {
|
|
2675
|
-
|
|
2680
|
+
dt && (t.movables || (t.movables = []), t.movables.push(dt.movable), dt = null);
|
|
2676
2681
|
}
|
|
2677
|
-
}),
|
|
2682
|
+
}), yt.set("controlPr", {
|
|
2678
2683
|
from: "controlPr",
|
|
2679
2684
|
transparent: !0,
|
|
2680
2685
|
raw: !0,
|
|
2681
2686
|
openTag: (t) => {
|
|
2682
|
-
if (!
|
|
2687
|
+
if (!dt) return;
|
|
2683
2688
|
const e = t.getFrom().attributes ?? {}, o = {};
|
|
2684
2689
|
for (const t in e) {
|
|
2685
2690
|
const s = e[t];
|
|
2686
2691
|
o[t] = "string" == typeof s ? s : s?.value ?? "";
|
|
2687
2692
|
}
|
|
2688
|
-
bt(o,
|
|
2693
|
+
bt(o, dt.control);
|
|
2689
2694
|
},
|
|
2690
2695
|
closeTag: (t) => {
|
|
2691
|
-
if (!
|
|
2696
|
+
if (!dt) return;
|
|
2692
2697
|
const e = ((t) => {
|
|
2693
2698
|
const e = /<(?:[\w.-]+:)?anchor\b([^>]*)>([\s\S]*?)<\/(?:[\w.-]+:)?anchor>/.exec(t);
|
|
2694
2699
|
if (!e) return null;
|
|
@@ -2702,24 +2707,24 @@ var Ko = {
|
|
|
2702
2707
|
rest: (t.slice(0, e.index) + t.slice(e.index + e[0].length)).trim()
|
|
2703
2708
|
};
|
|
2704
2709
|
})(t.getRawXml() ?? "");
|
|
2705
|
-
e ? (
|
|
2710
|
+
e ? (dt.movable.anchor = e.anchor, "twoCell" !== e.anchorType && (dt.movable.anchorType = e.anchorType), e.rest && (dt.control.xml = e.rest)) : pt || (pt = !0, t.warn("A form control has no anchor; it is placed at the top left of the sheet."));
|
|
2706
2711
|
}
|
|
2707
2712
|
});
|
|
2708
|
-
const
|
|
2713
|
+
const kt = {
|
|
2709
2714
|
from: "controls",
|
|
2710
2715
|
transparent: !0,
|
|
2711
|
-
scope: () =>
|
|
2716
|
+
scope: () => yt
|
|
2712
2717
|
};
|
|
2713
|
-
l.registerVisitor(
|
|
2714
|
-
const
|
|
2715
|
-
["Choice",
|
|
2716
|
-
["Fallback",
|
|
2717
|
-
["controls",
|
|
2718
|
+
l.registerVisitor(kt);
|
|
2719
|
+
const At = /* @__PURE__ */ new Map([
|
|
2720
|
+
["Choice", Tt],
|
|
2721
|
+
["Fallback", vt],
|
|
2722
|
+
["controls", kt]
|
|
2718
2723
|
]);
|
|
2719
2724
|
l.registerVisitor({
|
|
2720
2725
|
from: "AlternateContent",
|
|
2721
2726
|
transparent: !0,
|
|
2722
|
-
scope: () =>
|
|
2727
|
+
scope: () => At
|
|
2723
2728
|
}), l.registerVisitor({
|
|
2724
2729
|
from: "tableParts",
|
|
2725
2730
|
to: "tables",
|
|
@@ -2736,20 +2741,20 @@ var Ko = {
|
|
|
2736
2741
|
s ? t.setSource(s) : t.warn("A table part is missing; the table was not imported.", { onceKey: "xlsx.sheet.table.missing" });
|
|
2737
2742
|
}
|
|
2738
2743
|
});
|
|
2739
|
-
const
|
|
2740
|
-
e.conditions?.length && (t
|
|
2741
|
-
},
|
|
2742
|
-
e.conditions?.length && (t.stops =
|
|
2743
|
-
},
|
|
2744
|
+
const Et = (t, e) => {
|
|
2745
|
+
e.conditions?.length && x(t, k(e)), v(t, e), !1 === e.gradient ? t.solidFill = !0 : delete t.solidFill, e.border && e.borderColor && (t.borderColor = e.borderColor), !e.negativeBarColorSameAsPositive && e.negativeFillColor && (t.negativeFillColor = e.negativeFillColor), !(e.negativeBarBorderColorSameAsPositive ?? 1) && e.negativeBorderColor && (t.negativeBorderColor = e.negativeBorderColor), e.axisColor && (t.axisColor = e.axisColor), "middle" !== e.axisPosition && "none" !== e.axisPosition || (t.axisPosition = e.axisPosition), "leftToRight" !== e.direction && "rightToLeft" !== e.direction || (t.direction = e.direction);
|
|
2746
|
+
}, It = (t, e) => {
|
|
2747
|
+
e.conditions?.length && (t.stops = k(e)), e.iconSet && e.iconSet !== t.iconSet && (t.iconSet = e.iconSet), e.icons?.length && (t.icon = e.icons), void 0 !== e.reverse && (t.reverse = e.reverse), void 0 !== e.showValue && (t.showValue = e.showValue);
|
|
2748
|
+
}, Pt = (t) => {
|
|
2744
2749
|
if (!t.sqref) return null;
|
|
2745
2750
|
const e = t.sqref.split(/\s+/).join(",");
|
|
2746
2751
|
if ("iconSet" === t.type) {
|
|
2747
2752
|
if (!t.iconSet) return null;
|
|
2748
2753
|
const o = {
|
|
2749
|
-
type:
|
|
2754
|
+
type: T.ScaleType.IconSet,
|
|
2750
2755
|
stops: []
|
|
2751
2756
|
};
|
|
2752
|
-
return
|
|
2757
|
+
return It(o, t.iconSet), {
|
|
2753
2758
|
r: e,
|
|
2754
2759
|
v: { scale: o },
|
|
2755
2760
|
priority: t.priority
|
|
@@ -2775,16 +2780,16 @@ var Ko = {
|
|
|
2775
2780
|
const e = o[t], s = e.x14Id;
|
|
2776
2781
|
if (!s) continue;
|
|
2777
2782
|
delete e.x14Id;
|
|
2778
|
-
const r =
|
|
2783
|
+
const r = G.get(s);
|
|
2779
2784
|
if (!r) continue;
|
|
2780
|
-
|
|
2785
|
+
G.delete(s);
|
|
2781
2786
|
const n = e.v?.scale;
|
|
2782
|
-
r.dataBar && n?.type ===
|
|
2787
|
+
r.dataBar && n?.type === T.ScaleType.DataBar ? Et(n, r.dataBar) : r.iconSet && n?.type === T.ScaleType.IconSet && It(n, r.iconSet);
|
|
2783
2788
|
}
|
|
2784
|
-
const s = [...
|
|
2789
|
+
const s = [...G.values(), ...K], r = /* @__PURE__ */ new Set();
|
|
2785
2790
|
let i = 0;
|
|
2786
2791
|
for (let t = 0; t < s.length; t++) {
|
|
2787
|
-
const n =
|
|
2792
|
+
const n = Pt(s[t]);
|
|
2788
2793
|
n ? (o || (o = [], e.conditionals = o), o.push(n)) : (r.add(s[t].type ?? "unknown"), i++);
|
|
2789
2794
|
}
|
|
2790
2795
|
if (i > 0) {
|
|
@@ -2828,7 +2833,7 @@ var Ko = {
|
|
|
2828
2833
|
}
|
|
2829
2834
|
if (e.sheet) return;
|
|
2830
2835
|
const o = {};
|
|
2831
|
-
t.copyToObject(o, "hash",
|
|
2836
|
+
t.copyToObject(o, "hash", ko, "hashValue"), t.copyToObject(o, "algorithm", ko, "algorithmName"), t.copyToObject(o, "salt", ko, "saltValue"), t.copyToObject(o, "spinCount", So), t.copyToObject(o, "legacyHash", ko, "password"), Object.keys(o).length > 0 && (t.getSource().password = o);
|
|
2832
2837
|
}
|
|
2833
2838
|
}), l.registerVisitor({
|
|
2834
2839
|
from: "protectedRanges",
|
|
@@ -2848,7 +2853,7 @@ var Ko = {
|
|
|
2848
2853
|
};
|
|
2849
2854
|
t.copyToObject(o, "name"), t.copyToObject(o, "securityDescriptor");
|
|
2850
2855
|
const r = {};
|
|
2851
|
-
t.copyToObject(r, "hash",
|
|
2856
|
+
t.copyToObject(r, "hash", ko, "hashValue"), t.copyToObject(r, "algorithm", ko, "algorithmName"), t.copyToObject(r, "salt", ko, "saltValue"), t.copyToObject(r, "spinCount", So), t.copyToObject(r, "legacyHash", ko, "password"), Object.keys(r).length > 0 && (o.password = r), t.setSource(s);
|
|
2852
2857
|
},
|
|
2853
2858
|
closeTag: (t) => {
|
|
2854
2859
|
const e = t.getSource();
|
|
@@ -2858,9 +2863,9 @@ var Ko = {
|
|
|
2858
2863
|
from: "sheetFormatPr",
|
|
2859
2864
|
to: "sheetFormatPr",
|
|
2860
2865
|
openTag: (e) => {
|
|
2861
|
-
e.copyToObject(t, "defaultColSize",
|
|
2866
|
+
e.copyToObject(t, "defaultColSize", Co, "defaultColWidth");
|
|
2862
2867
|
const o = e.getAttribute("customHeight");
|
|
2863
|
-
"1" !== o && "true" !== o || e.copyToObject(t, "defaultRowSize",
|
|
2868
|
+
"1" !== o && "true" !== o || e.copyToObject(t, "defaultRowSize", Co, "defaultRowHeight");
|
|
2864
2869
|
const s = e.getAttribute("baseColWidth", So);
|
|
2865
2870
|
s && 8 !== s && (t.baseColSize = s), u = !!e.getAttribute("zeroHeight", To);
|
|
2866
2871
|
}
|
|
@@ -2875,9 +2880,9 @@ var Ko = {
|
|
|
2875
2880
|
to: [],
|
|
2876
2881
|
openTag: (t) => {
|
|
2877
2882
|
const e = t.getSource(), o = t.getAttribute("min"), s = t.getAttribute("max"), r = void 0 === o ? 0 : parseInt(o) - 1, n = void 0 === s ? r : parseInt(s) - 1;
|
|
2878
|
-
e.r =
|
|
2883
|
+
e.r = C.runToString(r, n, !0);
|
|
2879
2884
|
const i = {};
|
|
2880
|
-
e.v = i, t.copyToObject(i, "sz",
|
|
2885
|
+
e.v = i, t.copyToObject(i, "sz", Co, "width"), t.copyToObject(i, "csz", To, "customWidth"), t.copyToObject(i, "h", To, "hidden"), t.copyToObject(i, "l", So, "outlineLevel"), t.copyToObject(i, "cl", To, "collapsed"), t.getAttribute("bestFit", To) && (i.bf = !0), t.copyToObject(i, "s", So, "style");
|
|
2881
2886
|
}
|
|
2882
2887
|
}), l.registerVisitor({
|
|
2883
2888
|
from: "oleObjects",
|
|
@@ -2886,30 +2891,30 @@ var Ko = {
|
|
|
2886
2891
|
t.warn("'OLE Objects' are not supported.");
|
|
2887
2892
|
}
|
|
2888
2893
|
});
|
|
2889
|
-
let
|
|
2890
|
-
const
|
|
2894
|
+
let Ot = !1, Nt = !1, Lt = 0, jt = "", Bt = "";
|
|
2895
|
+
const Ft = (t) => {
|
|
2891
2896
|
const e = t.indexOf(":");
|
|
2892
2897
|
return -1 === e ? t : t.slice(e + 1);
|
|
2893
|
-
},
|
|
2894
|
-
return cs(
|
|
2898
|
+
}, Wt = new Uo();
|
|
2899
|
+
return cs(g, t, l.createEventHandler(t, r, n), n, i, {
|
|
2895
2900
|
onOpenTag: (t) => {
|
|
2896
|
-
|
|
2897
|
-
const e =
|
|
2898
|
-
"t" === e || "v" === e ? 0 ===
|
|
2901
|
+
Ot = !0;
|
|
2902
|
+
const e = Ft(t.name);
|
|
2903
|
+
"t" === e || "v" === e ? 0 === Lt && (Nt = !0) : "rPh" === e || "phoneticPr" === e ? Lt++ : 0 === Lt && Wt.onOpenTag(e, t.attributes);
|
|
2899
2904
|
},
|
|
2900
2905
|
onText: (t) => {
|
|
2901
|
-
|
|
2906
|
+
Nt && (jt += t, Wt.onText(t));
|
|
2902
2907
|
},
|
|
2903
2908
|
onCloseTag: (t) => {
|
|
2904
|
-
const e =
|
|
2905
|
-
"t" === e || "v" === e ?
|
|
2909
|
+
const e = Ft(t.name);
|
|
2910
|
+
"t" === e || "v" === e ? Nt = !1 : "rPh" === e || "phoneticPr" === e ? Lt > 0 && Lt-- : Wt.onCloseTag(e);
|
|
2906
2911
|
},
|
|
2907
2912
|
onEnd: () => {
|
|
2908
|
-
if (!
|
|
2909
|
-
const t =
|
|
2910
|
-
|
|
2911
|
-
const e = W(
|
|
2912
|
-
return
|
|
2913
|
+
if (!Ot) return;
|
|
2914
|
+
const t = Wt.take();
|
|
2915
|
+
Ot = !1, Nt = !1, Lt = 0;
|
|
2916
|
+
const e = W(jt);
|
|
2917
|
+
return jt = "", Bt = e, t ? {
|
|
2913
2918
|
t: "r",
|
|
2914
2919
|
v: {
|
|
2915
2920
|
type: "richText",
|
|
@@ -2918,7 +2923,7 @@ var Ko = {
|
|
|
2918
2923
|
} : o(e);
|
|
2919
2924
|
},
|
|
2920
2925
|
onError: (t) => {}
|
|
2921
|
-
}, a, o, () => u, () =>
|
|
2926
|
+
}, a, o, () => u, () => Bt);
|
|
2922
2927
|
}, rs = class {
|
|
2923
2928
|
static {
|
|
2924
2929
|
this.Collapsed = 1;
|
|
@@ -2958,12 +2963,12 @@ var Ko = {
|
|
|
2958
2963
|
rowStart: 0,
|
|
2959
2964
|
rowEnd: 0
|
|
2960
2965
|
}, ls = (t) => "1" === t || "true" === t, cs = (t, e, o, s, i, a, l, c, u, h) => {
|
|
2961
|
-
let
|
|
2962
|
-
const
|
|
2963
|
-
let w = !1, T = [],
|
|
2966
|
+
let m = !1;
|
|
2967
|
+
const b = [], y = l?.get(es), v = l?.get(os), x = /* @__PURE__ */ new Map();
|
|
2968
|
+
let w = !1, T = [], S = !1, k = null, A = null, I = null, P = null, O = null, D = null;
|
|
2964
2969
|
const N = l?.get("richData") ?? r.EmptyArray;
|
|
2965
2970
|
let M = null, $ = !1;
|
|
2966
|
-
const R =
|
|
2971
|
+
const R = C.normalizeA1ToR1C1, V = n.createConflatingRanges(), L = /* @__PURE__ */ new Map(), j = [], B = [];
|
|
2967
2972
|
let F = !1, H = !1, W = null;
|
|
2968
2973
|
const z = (t) => {
|
|
2969
2974
|
const e = (l?.get("metadata"))?.values;
|
|
@@ -2988,7 +2993,7 @@ var Ko = {
|
|
|
2988
2993
|
});
|
|
2989
2994
|
let tt = null;
|
|
2990
2995
|
const et = [];
|
|
2991
|
-
let ot = null, rt = -2, nt = 0, it = "", at = "", lt = "", ct = "", ut = "", ht = "", dt = "", pt = "", ft = "", gt = "", mt = "", bt = "", yt = "", vt = "", xt = !0, wt = null, Tt = !1, St = !1,
|
|
2996
|
+
let ot = null, rt = -2, nt = 0, it = "", at = "", lt = "", ct = "", ut = "", ht = "", dt = "", pt = "", ft = "", gt = "", mt = "", bt = "", yt = "", vt = "", xt = !0, wt = null, Tt = !1, St = !1, Ct = !1, kt = null, At = 0;
|
|
2992
2997
|
const Et = (t) => {
|
|
2993
2998
|
let s = t.name;
|
|
2994
2999
|
const r = s.indexOf(":");
|
|
@@ -2999,12 +3004,12 @@ var Ko = {
|
|
|
2999
3004
|
w = !0;
|
|
3000
3005
|
break;
|
|
3001
3006
|
case "f":
|
|
3002
|
-
switch (
|
|
3007
|
+
switch (S = !0, e.t ?? null) {
|
|
3003
3008
|
case null:
|
|
3004
3009
|
case "normal": break;
|
|
3005
3010
|
case "shared":
|
|
3006
3011
|
const t = e.si;
|
|
3007
|
-
A = e.ref,
|
|
3012
|
+
A = e.ref, k = t;
|
|
3008
3013
|
break;
|
|
3009
3014
|
case "array":
|
|
3010
3015
|
A = e.ref, W = A;
|
|
@@ -3013,10 +3018,10 @@ var Ko = {
|
|
|
3013
3018
|
const t = ((t, e, o) => {
|
|
3014
3019
|
const s = t.r1, r = ls(t.del1);
|
|
3015
3020
|
if (!s && !r) return null;
|
|
3016
|
-
const n = t.ref ??
|
|
3021
|
+
const n = t.ref ?? C.cellToString({
|
|
3017
3022
|
rowIndex: e,
|
|
3018
3023
|
colIndex: o
|
|
3019
|
-
}), i =
|
|
3024
|
+
}), i = C.fastStringToRange(n);
|
|
3020
3025
|
if (!i) return null;
|
|
3021
3026
|
const a = { ref: {
|
|
3022
3027
|
rowStart: i.rowStart,
|
|
@@ -3041,18 +3046,18 @@ var Ko = {
|
|
|
3041
3046
|
G = !0;
|
|
3042
3047
|
return;
|
|
3043
3048
|
}
|
|
3044
|
-
G && !
|
|
3049
|
+
G && !S && a?.onOpenTag?.(t);
|
|
3045
3050
|
return;
|
|
3046
3051
|
}
|
|
3047
|
-
if (
|
|
3052
|
+
if (m) {
|
|
3048
3053
|
if ("c" === s) {
|
|
3049
3054
|
Q = t, U = void 0;
|
|
3050
3055
|
const e = t.attributes, o = e.r;
|
|
3051
|
-
J = void 0 !== o ?
|
|
3056
|
+
J = void 0 !== o ? C.fastStringToCol(o) : J + 1;
|
|
3052
3057
|
const s = e.t;
|
|
3053
3058
|
void 0 === s ? tt = null : (tt = s, "str" === tt && (G = !0));
|
|
3054
3059
|
let r = e.s;
|
|
3055
|
-
void 0 === r && (null !==
|
|
3060
|
+
void 0 === r && (null !== kt || Ct) && (r = "0"), void 0 !== r && (r = parseInt(r), wt && wt.value === r && wt.colEnd + 1 === J ? wt.colEnd = J : (wt = {
|
|
3056
3061
|
colStart: J,
|
|
3057
3062
|
rowStart: K,
|
|
3058
3063
|
colEnd: J,
|
|
@@ -3080,25 +3085,25 @@ var Ko = {
|
|
|
3080
3085
|
}
|
|
3081
3086
|
} else {
|
|
3082
3087
|
if (St && "row" === s) {
|
|
3083
|
-
|
|
3088
|
+
m = !0;
|
|
3084
3089
|
const e = t.attributes.r;
|
|
3085
3090
|
if (K = void 0 !== e ? parseInt(e) - 1 : K + 1, J = -1, u?.()) {
|
|
3086
|
-
const t =
|
|
3087
|
-
t && t.max + 1 === K ? t.max = K :
|
|
3091
|
+
const t = b[b.length - 1];
|
|
3092
|
+
t && t.max + 1 === K ? t.max = K : b.push({
|
|
3088
3093
|
min: K,
|
|
3089
3094
|
max: K
|
|
3090
3095
|
});
|
|
3091
3096
|
}
|
|
3092
3097
|
if (nt = 0, at = t.attributes.customHeight, void 0 !== at && (nt |= rs.CustomHeight), at !== ft && (xt = !0, ft = at), it = t.attributes.ht, void 0 !== it && (nt |= rs.Ht), it !== pt && (xt = !0, pt = it), lt = t.attributes.hidden, void 0 !== lt && (nt |= rs.Hidden), lt !== gt && (xt = !0, gt = lt), ut = t.attributes.s, void 0 !== ut && (nt |= rs.S), ut !== bt && (xt = !0, bt = ut), ct = t.attributes.customFormat, void 0 !== ct && (nt |= rs.CustomFormat), ct !== mt && (xt = !0, mt = ct), ht = t.attributes.outlineLevel, void 0 !== ht && (nt |= rs.OutlineLevel), ht !== yt && (xt = !0, yt = ht), dt = t.attributes.collapsed, void 0 !== dt && (nt |= rs.Collapsed), dt !== vt && (xt = !0, vt = dt), 0 !== nt) if (rt + 1 !== K || xt) {
|
|
3093
3098
|
const t = void 0 !== at && ("1" === at || "true" === at), e = void 0 !== ct && ("1" === ct || "true" === ct);
|
|
3094
|
-
|
|
3099
|
+
kt = e && void 0 !== ut ? ut : null, e && null === kt && (kt = "0"), ot = {
|
|
3095
3100
|
min: K,
|
|
3096
3101
|
max: K,
|
|
3097
3102
|
value: {
|
|
3098
3103
|
sz: void 0 === it ? -1 : parseFloat(it),
|
|
3099
3104
|
csz: t,
|
|
3100
3105
|
h: void 0 !== lt && ("1" === lt || "true" === lt),
|
|
3101
|
-
s: null ===
|
|
3106
|
+
s: null === kt ? void 0 : "0" === kt ? 0 : parseInt(kt),
|
|
3102
3107
|
l: void 0 === ht || "0" === ht ? 0 : parseInt(ht),
|
|
3103
3108
|
cl: void 0 !== dt && ("1" === dt || "true" === dt)
|
|
3104
3109
|
}
|
|
@@ -3110,13 +3115,13 @@ var Ko = {
|
|
|
3110
3115
|
if ("sheetData" === s && (St = !0), !Tt && "sheetData" === s) {
|
|
3111
3116
|
Tt = !0;
|
|
3112
3117
|
const t = e.cols, o = t ? t.length : 0;
|
|
3113
|
-
for (let e = 0; !
|
|
3118
|
+
for (let e = 0; !Ct && e < o; e++) t[e].v.s && (Ct = !0);
|
|
3114
3119
|
}
|
|
3115
3120
|
o?.onOpenTag?.(t);
|
|
3116
3121
|
}
|
|
3117
3122
|
}, It = (e) => {
|
|
3118
3123
|
let s = e.name;
|
|
3119
|
-
if ("sheetData" === s && (St = !1), !
|
|
3124
|
+
if ("sheetData" === s && (St = !1), !S || "c" !== s && "f" !== s || (k && (P = L.get(k) ?? null), P && (U = ((t) => {
|
|
3120
3125
|
if (t.length < 11 || 104 != (32 | t.charCodeAt(0))) return;
|
|
3121
3126
|
if (!/^HYPERLINK\(/i.test(t)) return;
|
|
3122
3127
|
let e = 1, o = !1, s = 10;
|
|
@@ -3127,7 +3132,7 @@ var Ko = {
|
|
|
3127
3132
|
if (0 !== e || t.slice(s).trim().length > 0) return;
|
|
3128
3133
|
const r = /^HYPERLINK\(\s*"((?:[^"]|"")*)"\s*[,)]/i.exec(t);
|
|
3129
3134
|
return r ? r[1].replace(/""/g, "\"") : null;
|
|
3130
|
-
})(P[2]), V.append(K, J, P), X && q.append(K, J)), null !== W && j.push([W, F ? H ? "error" : "dynamic" : "fixed"]),
|
|
3135
|
+
})(P[2]), V.append(K, J, P), X && q.append(K, J)), null !== W && j.push([W, F ? H ? "error" : "dynamic" : "fixed"]), S = !1, P = null, k = null, A = null, w = !1, X = !1, W = null, F = !1, H = !1), Q) {
|
|
3131
3136
|
const o = s.indexOf(":");
|
|
3132
3137
|
if (-1 !== o && (s = s.slice(o + 1)), G) if ("is" === s || "v" === s) {
|
|
3133
3138
|
const e = a?.onEnd?.();
|
|
@@ -3136,7 +3141,7 @@ var Ko = {
|
|
|
3136
3141
|
w && (w = !1), "c" === s && (Q = null, G = !1);
|
|
3137
3142
|
return;
|
|
3138
3143
|
}
|
|
3139
|
-
if (
|
|
3144
|
+
if (m) return m = !1, void (wt = null);
|
|
3140
3145
|
o?.onCloseTag?.(e);
|
|
3141
3146
|
}, Pt = (e) => {
|
|
3142
3147
|
const r = e.trim();
|
|
@@ -3151,10 +3156,10 @@ var Ko = {
|
|
|
3151
3156
|
break;
|
|
3152
3157
|
case "s": {
|
|
3153
3158
|
const t = parseInt(r, 10);
|
|
3154
|
-
let e =
|
|
3159
|
+
let e = x.get(t);
|
|
3155
3160
|
if (void 0 === e) {
|
|
3156
|
-
const o =
|
|
3157
|
-
e = o ? Go(o,
|
|
3161
|
+
const o = y?.get(t);
|
|
3162
|
+
e = o ? Go(o, v) : null, x.set(t, e);
|
|
3158
3163
|
}
|
|
3159
3164
|
Z = e ? {
|
|
3160
3165
|
t: "r",
|
|
@@ -3186,7 +3191,7 @@ var Ko = {
|
|
|
3186
3191
|
}
|
|
3187
3192
|
return void 0 !== a && (h += (3600 * parseInt(a, 10) + 60 * parseInt(l, 10) + (void 0 !== c ? parseInt(c, 10) : 0) + (void 0 !== u ? parseFloat(u) : 0)) / 86400), h;
|
|
3188
3193
|
})(r, !0 === l?.get(ts));
|
|
3189
|
-
null !== t ? Z = t : c && (s?.(`Date '${r}' in cell ${
|
|
3194
|
+
null !== t ? Z = t : c && (s?.(`Date '${r}' in cell ${C.cellToString({
|
|
3190
3195
|
colIndex: J,
|
|
3191
3196
|
rowIndex: K
|
|
3192
3197
|
})} is not a date this workbook can hold; kept as text.`, void 0, "xlsx.cell.isoDateText"), Z = "" + c(r));
|
|
@@ -3204,7 +3209,7 @@ var Ko = {
|
|
|
3204
3209
|
};
|
|
3205
3210
|
break;
|
|
3206
3211
|
}
|
|
3207
|
-
if (
|
|
3212
|
+
if (g.isJSON(e)) {
|
|
3208
3213
|
Z = {
|
|
3209
3214
|
t: "r",
|
|
3210
3215
|
v: e
|
|
@@ -3217,7 +3222,7 @@ var Ko = {
|
|
|
3217
3222
|
t ? Z = {
|
|
3218
3223
|
t: "e",
|
|
3219
3224
|
v: t.getCode()
|
|
3220
|
-
} : (Z = r, s?.(`Unknown formula error '${r}' in cell ${
|
|
3225
|
+
} : (Z = r, s?.(`Unknown formula error '${r}' in cell ${C.cellToString({
|
|
3221
3226
|
colIndex: J,
|
|
3222
3227
|
rowIndex: K
|
|
3223
3228
|
})}`));
|
|
@@ -3227,23 +3232,23 @@ var Ko = {
|
|
|
3227
3232
|
}
|
|
3228
3233
|
null !== Z && t.pushAt(K, J, void 0 === U || "number" != typeof Z && "boolean" != typeof Z ? Z : Y(Z));
|
|
3229
3234
|
}
|
|
3230
|
-
const n = null !==
|
|
3231
|
-
if (
|
|
3232
|
-
if (O ===
|
|
3235
|
+
const n = null !== k;
|
|
3236
|
+
if (k) {
|
|
3237
|
+
if (O === k) P = D;
|
|
3233
3238
|
else {
|
|
3234
|
-
if (P = L.get(
|
|
3239
|
+
if (P = L.get(k) ?? null, !P) {
|
|
3235
3240
|
const t = [];
|
|
3236
3241
|
I = R(r, K, J, t), P = [
|
|
3237
3242
|
I,
|
|
3238
3243
|
t,
|
|
3239
3244
|
r
|
|
3240
|
-
], L.set(
|
|
3245
|
+
], L.set(k, P);
|
|
3241
3246
|
}
|
|
3242
|
-
O =
|
|
3247
|
+
O = k, D = P;
|
|
3243
3248
|
}
|
|
3244
|
-
|
|
3249
|
+
k = null;
|
|
3245
3250
|
}
|
|
3246
|
-
if (
|
|
3251
|
+
if (S) {
|
|
3247
3252
|
let t = r;
|
|
3248
3253
|
const e = n ? void 0 : l?.get(Yo);
|
|
3249
3254
|
if (e) {
|
|
@@ -3273,7 +3278,7 @@ var Ko = {
|
|
|
3273
3278
|
];
|
|
3274
3279
|
}
|
|
3275
3280
|
}
|
|
3276
|
-
G ? a?.onText?.(e) :
|
|
3281
|
+
G ? a?.onText?.(e) : m || o?.onText?.(r);
|
|
3277
3282
|
}, Ot = {
|
|
3278
3283
|
r: void 0,
|
|
3279
3284
|
t: void 0,
|
|
@@ -3376,10 +3381,10 @@ var Ko = {
|
|
|
3376
3381
|
cl: !1
|
|
3377
3382
|
}
|
|
3378
3383
|
});
|
|
3379
|
-
for (const s of
|
|
3384
|
+
for (const s of b) s.min > t && e.push(o(t, s.min - 1)), t = Math.max(t, s.max + 1);
|
|
3380
3385
|
t <= 1048575 && e.push(o(t, 1048575)), e.length > 0 && (et.push(...e), et.sort((t, e) => t.min - e.min));
|
|
3381
3386
|
}
|
|
3382
|
-
et.length > 0 && (e.rows =
|
|
3387
|
+
et.length > 0 && (e.rows = C.runsToRefs(et, !1));
|
|
3383
3388
|
let s = V.done(ns);
|
|
3384
3389
|
s = ((t, e) => {
|
|
3385
3390
|
let o = null;
|
|
@@ -3405,7 +3410,7 @@ var Ko = {
|
|
|
3405
3410
|
o.rowStart < r.rowStart && (r.rowStart = o.rowStart), o.colStart < r.colStart && (r.colStart = o.colStart), o.rowEnd > r.rowEnd && (r.rowEnd = o.rowEnd), o.colEnd > r.colEnd && (r.colEnd = o.colEnd), n += (o.rowEnd - o.rowStart + 1) * (o.colEnd - o.colStart + 1);
|
|
3406
3411
|
}
|
|
3407
3412
|
if (n !== (r.rowEnd - r.rowStart + 1) * (r.colEnd - r.colStart + 1)) continue;
|
|
3408
|
-
const i = Fo(
|
|
3413
|
+
const i = Fo(C.resolveRelativeToA1(o.value[1], r.rowStart, r.colStart), r);
|
|
3409
3414
|
if (i) {
|
|
3410
3415
|
e.push(i);
|
|
3411
3416
|
for (let e = 0; e < t.length; e++) s.add(t[e]);
|
|
@@ -3417,15 +3422,15 @@ var Ko = {
|
|
|
3417
3422
|
if (r > 0 || B.length > 0) {
|
|
3418
3423
|
const t = new Array(r);
|
|
3419
3424
|
for (let e = 0; e < r; e++) {
|
|
3420
|
-
const o = s[e], r =
|
|
3425
|
+
const o = s[e], r = C.rangeToString(o), n = o.value[1], i = C.resolveRelativeToA1(n, o.rowStart, o.colStart);
|
|
3421
3426
|
t[e] = [r, i];
|
|
3422
3427
|
}
|
|
3423
3428
|
for (let e = 0; e < B.length; e++) {
|
|
3424
3429
|
const o = B[e], s = o.ref;
|
|
3425
|
-
t.push([
|
|
3430
|
+
t.push([C.cellToString({
|
|
3426
3431
|
rowIndex: s.rowStart,
|
|
3427
3432
|
colIndex: s.colStart
|
|
3428
|
-
}), st(o)]), j.push([
|
|
3433
|
+
}), st(o)]), j.push([C.rangeToString(s), "dynamic"]);
|
|
3429
3434
|
}
|
|
3430
3435
|
e.formulas = t;
|
|
3431
3436
|
}
|
|
@@ -3433,7 +3438,7 @@ var Ko = {
|
|
|
3433
3438
|
if (a > 0) {
|
|
3434
3439
|
const t = new Array(a);
|
|
3435
3440
|
for (let e = 0; e < a; e++) {
|
|
3436
|
-
const o = i[e], s =
|
|
3441
|
+
const o = i[e], s = C.rangeToString(o);
|
|
3437
3442
|
t[e] = s;
|
|
3438
3443
|
}
|
|
3439
3444
|
e.volatile = t;
|
|
@@ -3449,7 +3454,7 @@ var Ko = {
|
|
|
3449
3454
|
for (let e = 1; e < l; e++) c = T[e], i !== c.value || o !== c.colStart || s !== c.colEnd || r + 1 !== c.rowEnd ? (a.push(c), t = c, o = t.colStart, s = t.colEnd, r = t.rowEnd, i = t.value) : (r = c.rowEnd, t.rowEnd = r);
|
|
3450
3455
|
const u = a.length, h = new Array(u);
|
|
3451
3456
|
for (let t = 0; t < u; t++) {
|
|
3452
|
-
const e = a[t], o =
|
|
3457
|
+
const e = a[t], o = C.rangeToString(e);
|
|
3453
3458
|
h[t] = [o, e.value];
|
|
3454
3459
|
}
|
|
3455
3460
|
e.directStyles = h;
|
|
@@ -3463,7 +3468,7 @@ var Ko = {
|
|
|
3463
3468
|
elementScanners: [{
|
|
3464
3469
|
name: "c",
|
|
3465
3470
|
scan: (t, e, o) => {
|
|
3466
|
-
if (!
|
|
3471
|
+
if (!m || null !== Q) return Lt;
|
|
3467
3472
|
Ot.r = Ot.t = Ot.s = Ot.cm = Ot.vm = void 0;
|
|
3468
3473
|
let s = Ft(t, e + 2, o, 0);
|
|
3469
3474
|
if (s < 0) return s;
|
|
@@ -3508,7 +3513,7 @@ var Ko = {
|
|
|
3508
3513
|
name: "row",
|
|
3509
3514
|
openTag: Rt,
|
|
3510
3515
|
scan: (t, e, o) => {
|
|
3511
|
-
if (!St ||
|
|
3516
|
+
if (!St || m || null !== Q) return Lt;
|
|
3512
3517
|
$t.r = $t.s = $t.ht = $t.hidden = $t.collapsed = $t.customHeight = $t.customFormat = $t.outlineLevel = void 0;
|
|
3513
3518
|
const s = Ft(t, e + 4, o, 2);
|
|
3514
3519
|
return s < 0 ? s : Bt || void 0 === $t.r ? Lt : (Et(Rt), s);
|
|
@@ -3654,7 +3659,7 @@ var ms = {
|
|
|
3654
3659
|
return t.linkTarget && (s.linkTarget = t.linkTarget), s;
|
|
3655
3660
|
}, xs = "hiddenXfs", ws = (t) => (Array.isArray(t) ? t[1] : t?.v)?.s, Ts = (t) => {
|
|
3656
3661
|
if (!t || 0 === t.length) return !1;
|
|
3657
|
-
const e =
|
|
3662
|
+
const e = C.refsToRuns(t, !0);
|
|
3658
3663
|
let o = 0;
|
|
3659
3664
|
for (const t of e) {
|
|
3660
3665
|
if (t.min > o || void 0 === t.value?.s) return !1;
|
|
@@ -3666,10 +3671,10 @@ var ms = {
|
|
|
3666
3671
|
...t.protection,
|
|
3667
3672
|
showFormulas: e
|
|
3668
3673
|
};
|
|
3669
|
-
},
|
|
3670
|
-
const o =
|
|
3674
|
+
}, Cs = "pivotButtonXfs", ks = (t, e) => {
|
|
3675
|
+
const o = m(t, e);
|
|
3671
3676
|
if (!o || !t.location) return null;
|
|
3672
|
-
const s =
|
|
3677
|
+
const s = C.fastStringToRange(t.location), r = {
|
|
3673
3678
|
rowIndex: s.rowStart - o.top,
|
|
3674
3679
|
colIndex: s.colStart
|
|
3675
3680
|
};
|
|
@@ -3758,7 +3763,7 @@ var ms = {
|
|
|
3758
3763
|
if ("string" == typeof t) return void e.push(t);
|
|
3759
3764
|
const o = Array.isArray(t) ? t : [t];
|
|
3760
3765
|
for (let t = 0; t < o.length; t++) {
|
|
3761
|
-
const s =
|
|
3766
|
+
const s = C.rangeToString(o[t]);
|
|
3762
3767
|
s && e.push(s);
|
|
3763
3768
|
}
|
|
3764
3769
|
}, Vs = (t) => {
|
|
@@ -3771,7 +3776,7 @@ var ms = {
|
|
|
3771
3776
|
const r = e ? 2 : 1, n = e ? o.rowStart : o.colStart, i = e ? o.rowEnd : o.colEnd;
|
|
3772
3777
|
let a, l = -1;
|
|
3773
3778
|
for (const o of t) {
|
|
3774
|
-
const t =
|
|
3779
|
+
const t = C.refToRun(o, e), c = Vs(o);
|
|
3775
3780
|
t && void 0 !== c ? c !== l || (e ? a.colEnd : a.rowEnd) + 1 !== t.min ? (a = {
|
|
3776
3781
|
colStart: e ? t.min : n,
|
|
3777
3782
|
rowStart: e ? n : t.min,
|
|
@@ -3827,21 +3832,21 @@ var ms = {
|
|
|
3827
3832
|
225
|
|
3828
3833
|
], Ws = /^xl\/worksheets\/[^/]+\.xml$/i, zs = (t) => "string" == typeof t ? t : (t?.runs ?? []).map((t) => t.text ?? "").join(""), Xs = async (n, l) => {
|
|
3829
3834
|
const { password: c, onVBA: u, profile: d, calcOnLoad: p = "auto", createWorkbookOptions: f = {}, ...g } = l ?? {};
|
|
3830
|
-
await
|
|
3831
|
-
const
|
|
3835
|
+
await x.load();
|
|
3836
|
+
const m = !!f.origin && "string" != typeof f.origin, y = d ? new me("function" == typeof d ? d : void 0) : null, w = [], T = (t, e, o) => {
|
|
3832
3837
|
w.push([
|
|
3833
3838
|
t,
|
|
3834
3839
|
e ?? "",
|
|
3835
3840
|
o
|
|
3836
3841
|
]);
|
|
3837
|
-
},
|
|
3842
|
+
}, S = { onWarning: T }, A = l?.progress, P = A?.onProgress ? A.onProgress.bind(A) : void 0, O = n.byteLength;
|
|
3838
3843
|
let D = 0, N = 0;
|
|
3839
3844
|
const _ = P ? (t) => {
|
|
3840
3845
|
if (D <= 0) return;
|
|
3841
3846
|
N += t;
|
|
3842
3847
|
const e = Math.min(O, Math.round(N / D * O));
|
|
3843
3848
|
P(e, O);
|
|
3844
|
-
} : void 0, $ = import("./
|
|
3849
|
+
} : void 0, $ = import("./CSGN4rAf7CYnBDEa.js");
|
|
3845
3850
|
let V = null;
|
|
3846
3851
|
try {
|
|
3847
3852
|
V = new DOMParser();
|
|
@@ -3851,7 +3856,7 @@ var ms = {
|
|
|
3851
3856
|
L = new XMLSerializer();
|
|
3852
3857
|
} catch (n) {}
|
|
3853
3858
|
let B, F, q, U = null;
|
|
3854
|
-
V || (U = import("./
|
|
3859
|
+
V || (U = import("./coTH4ab6CTEzw87b.js").then((e) => t(e.default, 1)));
|
|
3855
3860
|
try {
|
|
3856
3861
|
const [t, e] = await Promise.all([U, $]);
|
|
3857
3862
|
B = new e.DOMTransformer(), F = V ?? new t.DOMParser(), q = L ?? new t.XMLSerializer();
|
|
@@ -3870,7 +3875,7 @@ var ms = {
|
|
|
3870
3875
|
} catch (n) {
|
|
3871
3876
|
throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.", { cause: n });
|
|
3872
3877
|
}
|
|
3873
|
-
|
|
3878
|
+
y?.mark("zip-open");
|
|
3874
3879
|
try {
|
|
3875
3880
|
if (!Y.has("[Content_Types].xml")) throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
|
|
3876
3881
|
const t = (t) => {
|
|
@@ -3932,15 +3937,15 @@ var ms = {
|
|
|
3932
3937
|
} catch (n) {
|
|
3933
3938
|
throw new Error("Error parsing content types: '[Content_Types].xml'", { cause: n });
|
|
3934
3939
|
}
|
|
3935
|
-
|
|
3940
|
+
m && await Y.getBuffer("[Content_Types].xml");
|
|
3936
3941
|
}
|
|
3937
|
-
|
|
3942
|
+
y?.mark("content-types");
|
|
3938
3943
|
const l = o.sst, c = /* @__PURE__ */ new Set();
|
|
3939
3944
|
for (const t of o.sheets) c.add(Fs(t));
|
|
3940
3945
|
l && c.add(Fs(l));
|
|
3941
3946
|
for (const t of c) D += Y.uncompressedSize(t);
|
|
3942
|
-
if (await Y.prefetch((t) => !c.has(t) && !Ws.test(t)),
|
|
3943
|
-
const e = pt("_rels/.rels", t, F, B,
|
|
3947
|
+
if (await Y.prefetch((t) => !c.has(t) && !Ws.test(t)), y?.mark("prefetch-side-parts"), 0 === o.workbooks.length) {
|
|
3948
|
+
const e = pt("_rels/.rels", t, F, B, S), s = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
|
|
3944
3949
|
if (e) {
|
|
3945
3950
|
for (const t of e.values()) if (t.type === s && t.target) {
|
|
3946
3951
|
o.workbooks.push(t.target);
|
|
@@ -3949,15 +3954,15 @@ var ms = {
|
|
|
3949
3954
|
}
|
|
3950
3955
|
}
|
|
3951
3956
|
if (0 === o.workbooks.length) throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
|
|
3952
|
-
const g = f?.resources ?? new
|
|
3957
|
+
const g = f?.resources ?? new v(), x = g.beginPersist(), N = {}, $ = /* @__PURE__ */ new Set(), V = /* @__PURE__ */ new Map();
|
|
3953
3958
|
V.set("parseInlineDxf", (t) => {
|
|
3954
3959
|
if (!t) return;
|
|
3955
3960
|
const e = F.parseFromString(`<dxf xmlns:x14="${re}" xmlns:xm="${G}">${t}</dxf>`, "text/xml")?.documentElement;
|
|
3956
3961
|
if (!e) return;
|
|
3957
|
-
const o = B.parseDxf(e, "",
|
|
3962
|
+
const o = B.parseDxf(e, "", S);
|
|
3958
3963
|
return Object.keys(o).length > 0 ? o : void 0;
|
|
3959
3964
|
});
|
|
3960
|
-
const L = Ot("metadata", o, t, F, B,
|
|
3965
|
+
const L = Ot("metadata", o, t, F, B, S).entries().next()?.value?.[1]?.metadata;
|
|
3961
3966
|
L && V.set("metadata", L), V.set(Qo, Z());
|
|
3962
3967
|
const q = /* @__PURE__ */ new Map(), U = [], et = /* @__PURE__ */ new Set(), ot = (t) => {
|
|
3963
3968
|
et.add(Fs(t));
|
|
@@ -3971,7 +3976,7 @@ var ms = {
|
|
|
3971
3976
|
if ("External" === n.targetMode) {
|
|
3972
3977
|
if (!s) return n.target;
|
|
3973
3978
|
const t = g.add({ source: { external: n.target } });
|
|
3974
|
-
return t.addReference(N), $.add(t),
|
|
3979
|
+
return t.addReference(N), $.add(t), x.toResourceId(t);
|
|
3975
3980
|
}
|
|
3976
3981
|
const a = o.lastIndexOf("/"), l = o.substring(0, a + 1);
|
|
3977
3982
|
i.startsWith("/") || (i = l + i), i = At(i);
|
|
@@ -3984,7 +3989,7 @@ var ms = {
|
|
|
3984
3989
|
u = t;
|
|
3985
3990
|
const e = async () => {
|
|
3986
3991
|
const e = ss(t, (t, e) => "legacyDrawing" === e ? ct(t, i) : "formControl" === e ? ut(t, i) : "part" === e ? ft(t, i) : rt(t, i, "resource" === e) ?? null, Mt, c, () => {}, (t, e, o) => {
|
|
3987
|
-
|
|
3992
|
+
T(t, e ? `${e} (${i})` : i, o);
|
|
3988
3993
|
}, void 0, V), o = await Y.getTextStream(i, _);
|
|
3989
3994
|
if (o) try {
|
|
3990
3995
|
await Ne.parseStream(o, e, {
|
|
@@ -4006,7 +4011,7 @@ var ms = {
|
|
|
4006
4011
|
if (isNaN(n)) return void w.push([`Pivot table '${s.name}' names no cache and was dropped.`, i]);
|
|
4007
4012
|
const a = /\sname="([^"]*)"/.exec(r)?.[1], l = j(s.xml);
|
|
4008
4013
|
if (!l) return void w.push([`Pivot table '${s.name}' states no location and was dropped.`, i]);
|
|
4009
|
-
const c = B?.getVisitorParamsState(), u = it(c?.get("numFmts"), c?.get("dxfs")), h = dt(s.xml, u), d = h ? void 0 :
|
|
4014
|
+
const c = B?.getVisitorParamsState(), u = it(c?.get("numFmts"), c?.get("dxfs")), h = dt(s.xml, u), d = h ? void 0 : kt(s.xml, u);
|
|
4010
4015
|
e.push({
|
|
4011
4016
|
...a ? { name: zt(a) } : {},
|
|
4012
4017
|
cacheId: n,
|
|
@@ -4037,7 +4042,7 @@ var ms = {
|
|
|
4037
4042
|
} else u = null;
|
|
4038
4043
|
} else u = s ? Pt(i, t, (t, e) => {
|
|
4039
4044
|
const o = g.add({ source: { buffer: t } });
|
|
4040
|
-
return o.addReference(N), $.add(o),
|
|
4045
|
+
return o.addReference(N), $.add(o), x.toResourceId(o);
|
|
4041
4046
|
}, Tt) : Wt(i, t, F, B, Tt);
|
|
4042
4047
|
}
|
|
4043
4048
|
return u;
|
|
@@ -4109,7 +4114,7 @@ var ms = {
|
|
|
4109
4114
|
const s = /* @__PURE__ */ new Map();
|
|
4110
4115
|
for (let t = 0; t < o.length; t++) {
|
|
4111
4116
|
const e = o[t];
|
|
4112
|
-
s.set(
|
|
4117
|
+
s.set(C.cellToString({
|
|
4113
4118
|
rowIndex: e.row,
|
|
4114
4119
|
colIndex: e.col
|
|
4115
4120
|
}), e);
|
|
@@ -4201,11 +4206,11 @@ var ms = {
|
|
|
4201
4206
|
const o = ft(e, a, t.type, n, i);
|
|
4202
4207
|
o && p.push(o);
|
|
4203
4208
|
}), p.length > 0 && (d.parts = p), ot(a), d;
|
|
4204
|
-
}, gt = Ot("coreprops", o, t, F, B,
|
|
4209
|
+
}, gt = Ot("coreprops", o, t, F, B, S), mt = Ot("extprops", o, t, F, B, S), bt = Ot("custprops", o, t, F, B, S);
|
|
4205
4210
|
bt.forEach((t, e) => {
|
|
4206
4211
|
t?.custom && ot(e);
|
|
4207
4212
|
});
|
|
4208
|
-
const vt = new I(), xt = Ot("people", o, t, F, B,
|
|
4213
|
+
const vt = new I(), xt = Ot("people", o, t, F, B, S);
|
|
4209
4214
|
if (xt.size > 0) {
|
|
4210
4215
|
const [t, e] = xt.entries().next().value;
|
|
4211
4216
|
vt.fromJSON(e?.persons), ot(t);
|
|
@@ -4220,9 +4225,9 @@ var ms = {
|
|
|
4220
4225
|
readEmbeddedPart: (t, e) => ft(t, e),
|
|
4221
4226
|
addPerson: wt,
|
|
4222
4227
|
serializeElement: J,
|
|
4223
|
-
onWarning:
|
|
4224
|
-
}, St = [],
|
|
4225
|
-
if (V.set(es,
|
|
4228
|
+
onWarning: T
|
|
4229
|
+
}, St = [], Ct = /* @__PURE__ */ new Map();
|
|
4230
|
+
if (V.set(es, Ct), l) {
|
|
4226
4231
|
const t = await Y.getTextStream(l, _);
|
|
4227
4232
|
if (t) {
|
|
4228
4233
|
const e = ((t, e) => {
|
|
@@ -4239,7 +4244,7 @@ var ms = {
|
|
|
4239
4244
|
onCloseTag: (t) => {
|
|
4240
4245
|
const e = qo(t.name);
|
|
4241
4246
|
"t" === e ? s = !1 : "si" === e ? (((t, e) => {
|
|
4242
|
-
e &&
|
|
4247
|
+
e && Ct.set(St.length, e), St.push(t);
|
|
4243
4248
|
})(W(n), i.take() ?? void 0), o = !1, n = "") : "rPh" === e || "phoneticPr" === e ? r > 0 && r-- : i.onCloseTag(e);
|
|
4244
4249
|
},
|
|
4245
4250
|
onError: (t) => {
|
|
@@ -4247,7 +4252,7 @@ var ms = {
|
|
|
4247
4252
|
}
|
|
4248
4253
|
};
|
|
4249
4254
|
})(0, (t) => {
|
|
4250
|
-
|
|
4255
|
+
T(t, l);
|
|
4251
4256
|
});
|
|
4252
4257
|
try {
|
|
4253
4258
|
await Ne.parseStream(t, e, { xmlns: !1 });
|
|
@@ -4256,7 +4261,7 @@ var ms = {
|
|
|
4256
4261
|
}
|
|
4257
4262
|
}
|
|
4258
4263
|
}
|
|
4259
|
-
|
|
4264
|
+
y?.mark("shared-strings");
|
|
4260
4265
|
let It = St.length;
|
|
4261
4266
|
const Dt = /* @__PURE__ */ new Map();
|
|
4262
4267
|
let _t = It;
|
|
@@ -4298,7 +4303,7 @@ var ms = {
|
|
|
4298
4303
|
source: { buffer: t },
|
|
4299
4304
|
fetchedFrom: e
|
|
4300
4305
|
});
|
|
4301
|
-
return o.addReference(N), $.add(o),
|
|
4306
|
+
return o.addReference(N), $.add(o), x.toResourceId(o);
|
|
4302
4307
|
},
|
|
4303
4308
|
markAbsorbed: ot
|
|
4304
4309
|
}, qt = /* @__PURE__ */ new Map();
|
|
@@ -4354,7 +4359,7 @@ var ms = {
|
|
|
4354
4359
|
})
|
|
4355
4360
|
};
|
|
4356
4361
|
})(t, F), Kt = Ut(Gt, qt, (t) => {
|
|
4357
|
-
|
|
4362
|
+
T(t, "/xl/richData/rdrichvalue.xml");
|
|
4358
4363
|
});
|
|
4359
4364
|
V.set("richData", Gt.values.map((t, e) => Kt.cellValue(e)));
|
|
4360
4365
|
for (let t = 0; t < Vt; t++) {
|
|
@@ -4367,7 +4372,7 @@ var ms = {
|
|
|
4367
4372
|
let t = Jt.entries().next();
|
|
4368
4373
|
t?.value?.[1] && (Qt = t.value[1]);
|
|
4369
4374
|
}
|
|
4370
|
-
const Yt = new
|
|
4375
|
+
const Yt = new b(Qt);
|
|
4371
4376
|
let oe = Ot("styles", o, t, F, B, Tt).entries().next()?.value?.[1];
|
|
4372
4377
|
oe && (oe = JSON.parse(a.JSONStableStringify(oe)));
|
|
4373
4378
|
const se = Ot("workbooks", o, t, F, B, Tt);
|
|
@@ -4383,7 +4388,7 @@ var ms = {
|
|
|
4383
4388
|
for (const t of s.keys()) o.add(t.toUpperCase());
|
|
4384
4389
|
} catch {}
|
|
4385
4390
|
return (t) => o.has(t) || E.has(t);
|
|
4386
|
-
})(se.entries().next().value?.[1]?.names, f.functions)),
|
|
4391
|
+
})(se.entries().next().value?.[1]?.names, f.functions)), y?.mark("side-parts-json"), await Promise.all(U);
|
|
4387
4392
|
{
|
|
4388
4393
|
const t = se.entries().next().value?.[1], e = Z(t?.names), o = t?.sheets ?? [];
|
|
4389
4394
|
for (let t = 0; t < o.length; t++) {
|
|
@@ -4401,7 +4406,7 @@ var ms = {
|
|
|
4401
4406
|
"string" == typeof o && (s[t].ref = e.readDetached(o));
|
|
4402
4407
|
}
|
|
4403
4408
|
}
|
|
4404
|
-
P && D > 0 && (P(O, O), await new Promise((t) => setTimeout(t, 0))),
|
|
4409
|
+
P && D > 0 && (P(O, O), await new Promise((t) => setTimeout(t, 0))), y?.mark("sheets");
|
|
4405
4410
|
const ne = {
|
|
4406
4411
|
...se.entries().next().value?.[1],
|
|
4407
4412
|
styles: oe,
|
|
@@ -4426,7 +4431,7 @@ var ms = {
|
|
|
4426
4431
|
}
|
|
4427
4432
|
return Object.keys(r).length > 0 ? r : void 0;
|
|
4428
4433
|
})(gt.values().next().value?.properties, mt.values().next().value?.properties, bt.values().next().value?.custom, (t, e) => {
|
|
4429
|
-
|
|
4434
|
+
T(t, "docProps/custom.xml", e);
|
|
4430
4435
|
});
|
|
4431
4436
|
ae && (ne.properties = ae), ((t, e) => {
|
|
4432
4437
|
if (!e || 0 === e.size) return;
|
|
@@ -4479,13 +4484,13 @@ var ms = {
|
|
|
4479
4484
|
const r = s.map(Et), n = s.map(() => []);
|
|
4480
4485
|
for (const [o, s] of t.directStyles ?? []) {
|
|
4481
4486
|
if (!e.has(s)) continue;
|
|
4482
|
-
const t =
|
|
4487
|
+
const t = C.fastStringToRange(o);
|
|
4483
4488
|
for (let e = 0; e < r.length; e++) {
|
|
4484
4489
|
const o = r[e];
|
|
4485
4490
|
if (!o) continue;
|
|
4486
4491
|
const s = Math.max(t.rowStart, o.rowStart), i = Math.min(t.rowEnd, o.rowEnd), a = Math.max(t.colStart, o.colStart), l = Math.min(t.colEnd, o.colEnd);
|
|
4487
4492
|
if (s > i || a > l) continue;
|
|
4488
|
-
const c =
|
|
4493
|
+
const c = C.rangeToString({
|
|
4489
4494
|
rowStart: s - o.rowStart,
|
|
4490
4495
|
rowEnd: i - o.rowStart,
|
|
4491
4496
|
colStart: a - o.colStart,
|
|
@@ -4496,7 +4501,7 @@ var ms = {
|
|
|
4496
4501
|
}
|
|
4497
4502
|
for (let t = 0; t < s.length; t++) n[t].length > 0 && (s[t].buttons = n[t]);
|
|
4498
4503
|
}
|
|
4499
|
-
})(ne, V.get(
|
|
4504
|
+
})(ne, V.get(Cs));
|
|
4500
4505
|
const le = V.get($s);
|
|
4501
4506
|
((t, e) => {
|
|
4502
4507
|
const o = t.styles?.direct;
|
|
@@ -4529,22 +4534,22 @@ var ms = {
|
|
|
4529
4534
|
if (!t || !o || 0 === o.length || !s || 0 === s.length) continue;
|
|
4530
4535
|
let r = s, n = !1;
|
|
4531
4536
|
for (const t of o) {
|
|
4532
|
-
const e =
|
|
4537
|
+
const e = ks(t, l.get(t.cacheId));
|
|
4533
4538
|
if (!e) continue;
|
|
4534
4539
|
const o = [];
|
|
4535
4540
|
for (const t of r) {
|
|
4536
|
-
const s =
|
|
4541
|
+
const s = C.fastStringToRange(t[0]), r = _s(s, e.coords);
|
|
4537
4542
|
if (!r) {
|
|
4538
4543
|
o.push(t);
|
|
4539
4544
|
continue;
|
|
4540
4545
|
}
|
|
4541
4546
|
n = !0;
|
|
4542
|
-
for (const e of Ms(s, r)) o.push([
|
|
4547
|
+
for (const e of Ms(s, r)) o.push([C.rangeToString(e), t[1]]);
|
|
4543
4548
|
const { rowIndex: a, colIndex: l } = e.origin;
|
|
4544
4549
|
for (let s = r.rowStart; s <= r.rowEnd; s++) {
|
|
4545
4550
|
let n = r.colStart, c = null;
|
|
4546
4551
|
const u = (t) => {
|
|
4547
|
-
null !== c && o.push([
|
|
4552
|
+
null !== c && o.push([C.rangeToString({
|
|
4548
4553
|
rowStart: s,
|
|
4549
4554
|
rowEnd: s,
|
|
4550
4555
|
colStart: n,
|
|
@@ -4576,7 +4581,7 @@ var ms = {
|
|
|
4576
4581
|
if (Ls(t.cols, !0, o, n), Ls(t.rows, !1, o, n), 0 === n.length) continue;
|
|
4577
4582
|
const i = [];
|
|
4578
4583
|
for (const [e, o] of t.directStyles ?? []) i.push({
|
|
4579
|
-
...
|
|
4584
|
+
...C.fastStringToRange(e),
|
|
4580
4585
|
value: {
|
|
4581
4586
|
kind: 0,
|
|
4582
4587
|
index: o
|
|
@@ -4597,7 +4602,7 @@ var ms = {
|
|
|
4597
4602
|
}
|
|
4598
4603
|
s = t ?? o ?? r;
|
|
4599
4604
|
}
|
|
4600
|
-
a.push([
|
|
4605
|
+
a.push([C.rangeToString(t.value.range, o), s.index]);
|
|
4601
4606
|
}
|
|
4602
4607
|
a.length > 0 ? t.directStyles = a : delete t.directStyles;
|
|
4603
4608
|
}
|
|
@@ -4637,7 +4642,7 @@ var ms = {
|
|
|
4637
4642
|
t?.slicers && e.set(o, t.slicers);
|
|
4638
4643
|
}), ie(ne, {
|
|
4639
4644
|
warn: (t, e) => {
|
|
4640
|
-
|
|
4645
|
+
T(t, "xl/slicers", e);
|
|
4641
4646
|
},
|
|
4642
4647
|
markAbsorbed: ot,
|
|
4643
4648
|
slicerParts: e
|
|
@@ -4651,7 +4656,7 @@ var ms = {
|
|
|
4651
4656
|
ce && ce.length > 0 && (ne.people = ce);
|
|
4652
4657
|
const fe = Y.getEntry("xl/vbaProject.bin");
|
|
4653
4658
|
if (fe) try {
|
|
4654
|
-
const { VBAProject: t } = await import("./
|
|
4659
|
+
const { VBAProject: t } = await import("./UgDy0WNXuV1sEnFW.js"), e = t.extract(fe);
|
|
4655
4660
|
if (e) {
|
|
4656
4661
|
const o = /* @__PURE__ */ new Map();
|
|
4657
4662
|
for (const t of ne.sheets ?? []) {
|
|
@@ -4681,11 +4686,11 @@ var ms = {
|
|
|
4681
4686
|
const t = V.get(ee);
|
|
4682
4687
|
ye.disableLoadAutoFit = !!t?.declared && t.normalIsThemeFont && await jt(t.faces);
|
|
4683
4688
|
}
|
|
4684
|
-
|
|
4685
|
-
const ve = new
|
|
4686
|
-
if (
|
|
4689
|
+
y?.mark("json-assembled");
|
|
4690
|
+
const ve = new k(ye);
|
|
4691
|
+
if (y?.mark("workbook-constructed"), $.forEach((t) => {
|
|
4687
4692
|
t.deleteReference(N);
|
|
4688
|
-
}),
|
|
4693
|
+
}), x.endPersist(), m) {
|
|
4689
4694
|
X(ve);
|
|
4690
4695
|
const t = /* @__PURE__ */ new Map();
|
|
4691
4696
|
let e = 0;
|
|
@@ -4730,7 +4735,7 @@ var ms = {
|
|
|
4730
4735
|
t.has(n) || (t.add(n), A.onWarning(o, s));
|
|
4731
4736
|
}
|
|
4732
4737
|
}
|
|
4733
|
-
return
|
|
4738
|
+
return y && !0 === d && console.table(y.toTable()), await ve.whenFontsReady(), ve;
|
|
4734
4739
|
} catch (n) {
|
|
4735
4740
|
let t = "Unable to parse XLSX.";
|
|
4736
4741
|
throw n instanceof o && (t = "Unable to open XLSX. There are too many rows or columns."), new Error(t, { cause: n });
|
|
@@ -4738,4 +4743,4 @@ var ms = {
|
|
|
4738
4743
|
await Y.close().catch(() => {});
|
|
4739
4744
|
}
|
|
4740
4745
|
};
|
|
4741
|
-
export { Xs as a,
|
|
4746
|
+
export { Xs as a, Cs as i, xs as n, os as o, $s as r, Bs as t };
|