@sheetxl/mcp 0.8.0-beta.17 → 0.8.0-beta.18
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/{COa691om4fLN4CUy.js → 10d0ZbYF23zeF8_1.js} +1 -1
- package/assets/{DDhPOQPc-lpyZrUJ.js → 8hZAYFV_v2KmJ_NL.js} +4 -4
- package/assets/{B3mh2tuvP-lMP6f_.js → 9rJMq-cyOmajlBEQ.js} +1 -1
- package/assets/{oJNJQJEDQCsjHSmo.js → ARPN5UhoadZC1yqE.js} +1 -1
- package/assets/{Bj4BFLBC9Tf6SGSt.js → B-6CmVJvxPNZB9bE.js} +1 -1
- package/assets/{BjhAYfsKC8iEbtgn.js → B2C5njsdPylyQOCM.js} +30 -30
- package/assets/{CyI1eGGzJX8nJXaT.js → B74Ls4nlmyBxWanf.js} +2 -2
- package/assets/{7TRx0dMYnL2i4tqL.js → B7GE-6NROw0onnLD.js} +254 -254
- package/assets/{C46RpMrfF6FiEFI7.js → BCeSyFXflYgNP_ES.js} +1 -1
- package/assets/{B9J8nV-dh6jHpzZI.js → BDNqot_JWBuVW_pC.js} +1 -1
- package/assets/{Cz4H3Qge2u8er3Ny.js → BEtUOCupmeICfGE1.js} +3 -3
- package/assets/{Jd71-QCmFEcDcYSw.js → BFGVZsstQm2MWi7Y.js} +1 -1
- package/assets/{C7iHn3y3HVBHflpA.js → BFcxaubQp1WMeknL.js} +33 -33
- package/assets/{iBgLe32XErisaUSr.js → BM-ax5N1GzF9KkI4.js} +1 -1
- package/assets/{PbBzI4PlKpCgULLd.js → BMc-Hsrp_iifxzG_.js} +1 -1
- package/assets/{B9M_sgHpoc-op6FF.js → BOdkvYo03yZ96iZt.js} +1 -1
- package/assets/{BSY9Tbmz6VEY_F_x.js → BQ76ntZm9YFicjXj.js} +1 -1
- package/assets/{Bw_FtA-1886HMCLJ.js → BQeb2zXfAs5lRoGt.js} +3 -3
- package/assets/{Xe7sA_mEwDQpJjcF.js → BQsLqKWy17wy3znE.js} +2 -2
- package/assets/{4qMP71Fe1Ep8kbOX.js → BQzUK7KiJeJpu-rK.js} +1 -1
- package/assets/{Bcak_hZpcIkB2gJD.js → BRQd_GNkeaBTl3Zr.js} +1 -1
- package/assets/{Mgs_OJP41a-Nfac3.js → BSvHkSY0R0EU0gC4.js} +1 -1
- package/assets/{B7Nqa7V-v0cxGBux.js → BV11qLZKVWxFwVGV.js} +1 -1
- package/assets/{BMJhHHX2LWgOJWGz.js → BatIfPAYElNTXVzb.js} +1 -1
- package/assets/{APP8AzsNgQXHTalA.js → BedBCvJP064ZYuO8.js} +2 -2
- package/assets/{lcIaYgz4tQGBlzlo.js → BgGFX6QJ30T3seyX.js} +109 -109
- package/assets/{Dzz3yrKbECzg6caR.js → BhHneZZ7gq4dRaEJ.js} +1 -1
- package/assets/{BjnQVl1lb1KEbt2D.js → BhJ1mH7pUONJScU7.js} +39 -39
- package/assets/{Cl7HHR6Vc9S4n3AP.js → Bi4pI6e3AwTjn-lQ.js} +1 -1
- package/assets/{BX5xFncPLyeN7TqA.js → Bi8ct8GYvMDKHCE3.js} +5 -5
- package/assets/{Bz1ImBvJwPwBrA5j.js → Bqq5Sl5E9ytcPJ3J.js} +1 -1
- package/assets/{DidhZpf9qJAei29Y.js → BrwNVveK5LvYkoGk.js} +1 -1
- package/assets/{D0OQ6ka8so0BWPwL.js → BsYVa-oRhTLH6wnH.js} +1 -1
- package/assets/{CUbCBf24Ie4A2l4R.js → BwQM6Q6HHQTXznpy.js} +2 -2
- package/assets/{BgldX21zhey2aR9D.js → BxizypreLEtLqpIc.js} +1 -1
- package/assets/{BBC_WF8BcAH-k_cQ.js → Byd5zSRU6LWfL2No.js} +1 -1
- package/assets/{B2UxLSteMiPlg8Uu.js → Bz5ioWvl-Xl3xspC.js} +1 -1
- package/assets/{CMRLNLqYkiqCLMRa.js → C3PZVWI_SEXYrzVk.js} +3 -3
- package/assets/{CfA8o-FNret9-D6Y.js → CDqOifqA400y7KQY.js} +1 -1
- package/assets/{BJBoygm-gY68bLAP.js → CGGpkGg85FZsnYHc.js} +15 -15
- package/assets/{BQYpVYbvfWuUJgdx.js → CJoWPN_DsFbaGAiE.js} +1 -1
- package/assets/{z24-oIqP_fu2hsOt.js → CL4BYdfIXgFQA8nY.js} +1 -1
- package/assets/{YQtUMMGmb1_WFsh_.js → CLBxNjtPjuGX1KnU.js} +1 -1
- package/assets/{DF7-oRscXc_vkMo8.js → CLsD7YwSKAsliRZy.js} +1 -1
- package/assets/{dcvgOfBmWFTsXoT8.js → CMXukie7sxP12H2E.js} +4 -4
- package/assets/{z7nDK_gfX7G37XbZ.js → CNE-erNKNIT7bUb1.js} +109 -109
- package/assets/{BKRLtOdVOUTrLjQN.js → CPa4og3WQ7BgHrsO.js} +3 -3
- package/assets/{D336KioeSjd-T8n3.js → CPkGFumcwSKh5zea.js} +2 -2
- package/assets/{DeEZvPW-VvlE28oE.js → CQBFUsemb94zMBo6.js} +3 -3
- package/assets/{DPKeRb9GKmh_WCPv.js → CT6kRDlkfvKq8XGZ.js} +1 -1
- package/assets/{DV6WSFmSEKfb3d2s.js → CWuPUrDsnBxboJ02.js} +4 -4
- package/assets/{C4deMY87Q_haYyLF.js → CYUerpa6WB0Hc3fs.js} +1 -1
- package/assets/{nQbVdQrfdz3osBdi.js → CYcb-DojX92VNGzd.js} +3 -3
- package/assets/{8cVPexxAVrFJ9QLX.js → C_UAskmm-u2Iw9Nl.js} +1 -1
- package/assets/{BdijGsy5W7yZ_I_n.js → CcB4xmoUFWBbSISF.js} +1 -1
- package/assets/{Dkg-LQVsZlrHk7A8.js → CiKd3BnRjhac2Hik.js} +1 -1
- package/assets/{DsCNtBR5jCeqmLBS.js → CkO0JR629W2kcDMd.js} +2 -2
- package/assets/{UH_biJmLrI9SvckA.js → CmlxzZYM5hOAAcx5.js} +3 -3
- package/assets/{BKjovBsLpX2Fkhov.js → CnCtLKkz0bdXIxn2.js} +92 -92
- package/assets/{CJF3P7U7yBQVF2Cg.js → CnLLwj7OCz4U71wa.js} +1 -1
- package/assets/{qgW-p2sFhMtuu5yw.js → CoQFpWEh4CUgcdwe.js} +1 -1
- package/assets/{CqwEHSKivMYw7tRZ.js → Ct8BhGWuqN5yOpUF.js} +1 -1
- package/assets/{Dre79rTMoYYikNuB.js → Cv8UXBL7O7h1uMR8.js} +19 -19
- package/assets/{CLgvdaqeFlESLvbF.js → CvkibaXI8SOD22pw.js} +1 -1
- package/assets/{BT8AGlSg2t7V1QNj.js → CzoexWLhnn08u05j.js} +577 -577
- package/assets/{BUV7BlOZcuPgDZ__.js → D0-I0aLr6w8IvxFD.js} +1 -1
- package/assets/{DoBvgI3Ry8DlGzwQ.js → D1pD8u8nRprUvn-u.js} +1 -1
- package/assets/{CLze192iF2o-aETZ.js → D2IMjoGcj5oz1Kr7.js} +1 -1
- package/assets/{Bni-y4FJS4rkFYtn.js → D2sRTakzE5POMnhF.js} +2215 -2109
- package/assets/{Bxkx8QokmRNyXbOI.js → D49iRcrfnODORRNC.js} +5 -5
- package/assets/{BlbxiLf1zD6_fWZs.js → D5nleqRNvTcmN5_9.js} +1 -1
- package/assets/{BS4ZsfH5D6aemSpO.js → D5wI7O_L6QVNXj5I.js} +1 -1
- package/assets/{C2NPIWe0pLs3PAZM.js → DCHjwIx59QhiV2Zx.js} +2 -2
- package/assets/{BGZ_ltNFYvnAmbVR.js → DH7Rur7rNOYzv35r.js} +1 -1
- package/assets/{CaJ9j3l0cERnYqDS.js → DI_SAQ7hesioI9TW.js} +1 -1
- package/assets/{AnF1Kh3Vo2AniIYO.js → DKnwIboAj_Sg9aVP.js} +2 -2
- package/assets/{Dgi2xwb2DN2Gybj3.js → DL3ms6Hf2uEGaMgH.js} +2 -2
- package/assets/{D_peM8fbRgGaWvpq.js → DMGq2icilGiyfBTM.js} +1 -1
- package/assets/{BSAdmOdx3brRE9LW.js → DMnhlFBJ2AlVx2_t.js} +1 -1
- package/assets/{D6ON3ZLcTAXV3fO6.js → DN4zv4AjDxTsLFsA.js} +11097 -9112
- package/assets/{D5L35C8cbX16BSCF.js → DP-FzazhSKAvylUa.js} +1132 -1067
- package/assets/{BodrfKIAhDFD-X3t.js → DSDlxGN059KmkCxT.js} +1 -1
- package/assets/{0kfwZuOHUkJmVjg6.js → DWK-OKV0MErx-IrU.js} +6 -6
- package/assets/{CqjNsZ2OB4Kx6J3s.js → DY1x1ZN7ZyE4OR1-.js} +8 -8
- package/assets/{DE4xC78p5UtS7wH6.js → DafqFM-FGeZJ_fzg.js} +1 -1
- package/assets/{BebXDUnlrDDRGW60.js → DbwDQlhCuGoasVUz.js} +2 -2
- package/assets/{CWLleOolFzyT0COW.js → DcjJ_zTfdh6RqmVZ.js} +1 -1
- package/assets/{DnTfXqCnRCe-1QYI.js → Del35nO_1HyjItI0.js} +59 -59
- package/assets/{BvDcHHJvQMRHthm-.js → Dh2iae-q0IngEeyH.js} +1 -1
- package/assets/{B6NnxkSmEzCGZEZA.js → Dhg0yeTmVfmRV5rK.js} +1 -1
- package/assets/{kpS1vY0DcE9p8JnI.js → DjoFujVwGRAxviCF.js} +2 -2
- package/assets/{Cr6lm0oXZJaaoAmD.js → DlWRvc1pLGPCRMwi.js} +1 -1
- package/assets/{B2BfjRdJGZs6afVL.js → DmCRCUmmkoRNCS9J.js} +2 -2
- package/assets/{CsiIgnb_L2x2Go6g.js → DmUCKxOYIBM6DX64.js} +1 -1
- package/assets/{-cMvbaW1kvHslPKX.js → Du9_Ajy9KvnwHApK.js} +2 -2
- package/assets/{D5VFuX1h50V2jLmZ.js → DwOPJ5TXttTx69oF.js} +226 -225
- package/assets/{OHBzl-tZOi9Ni8YV.js → DzEJwSC-_aavYiFd.js} +1 -1
- package/assets/{1feDuXw6tBXu2XFg.js → EDEUvF-L72a6fMCK.js} +1 -1
- package/assets/{DMuOMpgIhVgB3eG8.js → F0HGXXl9AizCAcFy.js} +1 -1
- package/assets/{DSsH28SW8CMrSL-q.js → Iv_Zbm3pMLOK2uxf.js} +1 -1
- package/assets/LLdkCOYvtc1-vOsy.js +14 -0
- package/assets/{B7OyFSpBb1eBvMVd.js → MfkAFluI0ZyU0UDV.js} +13 -13
- package/assets/{BOx4Ut_Rme7NH34X.js → NZeFs1MV5h-uMZqJ.js} +1 -1
- package/assets/{B8JX7a6VZlBNA_Bd.js → Rpi4k7hMH8wPAIcB.js} +14 -14
- package/assets/{BhCbCEPpDzhg5nqL.js → SCOKwiDu6SYiQrQ0.js} +1 -1
- package/assets/{DYJcfrNUUJQtxXWX.js → VL-vwx7Pyw1zqIx9.js} +1 -1
- package/assets/{G2Wjyx_ETCAcofwm.js → VcmpHRbBIrw6av3U.js} +1290 -1263
- package/assets/{CshK6Ew7OQ7mngI3.js → XDQBri0_cS5paHej.js} +2 -2
- package/assets/{CtmrBbpapaNwjwNB.js → gAg9rL3U8fWUDeEb.js} +25 -25
- package/assets/{CwRhhoL5ynbe78dB.js → hLMlKg3lU36xZ6G6.js} +1 -1
- package/assets/{DrHVew6gwOB6oxCn.js → hvCnPO_Fu7Nqz0rs.js} +1 -1
- package/assets/{BmM-nHMAAuNatCcN.js → nPoObUd0MvWI-j0F.js} +1 -1
- package/assets/{BJdWgj1hv57eGVl4.js → nnqtgWxMIc_Nc-IP.js} +594 -594
- package/assets/{C2ZX6ffXsMaEr2d2.js → o9G5KuG1VkSazTvI.js} +383 -383
- package/assets/{IGAV8DdYH32cW8XU.js → pg7E7B7ouG2qdZve.js} +1 -1
- package/assets/{MW2nt7se27FlH9Yb.js → r9WSFw3a-_a5hlPm.js} +1 -1
- package/assets/{Ljri8sTW3dWT4clD.js → rIReGgfQ90pzLAbU.js} +1 -1
- package/assets/{FvxN6PPps-rNPDo8.js → vXZw1AmMzswOZMiP.js} +1 -1
- package/assets/{C3Q-fjiZZ15waCq_.js → wZ-GQhOhikv-_3iQ.js} +2 -2
- package/assets/{YFiGplEq1G4XdCJ2.js → yBFl0kPv-nwFtG4Z.js} +1 -1
- package/index.js +1175 -1104
- package/lib.js +1 -1
- package/licenses/dependencies.txt +11 -11
- package/package.json +2 -2
- package/resources/locales/@sheetxl/sdk/de/model.msg.json +15 -0
- package/resources/locales/@sheetxl/sdk/en/model.msg.json +15 -0
- package/screenshot-page/assets/{Djl40tfWoPJSvqtv.js → 2XWoSsrRz2kognCK.js} +1 -1
- package/screenshot-page/assets/{CT7cY57t9j1sBhAy.js → 5TxlmdZxlCDkawVW.js} +1 -1
- package/screenshot-page/assets/{CSMEGhAHxl5-4FxB.js → B7u12-Sf0HF7g4wI.js} +1 -1
- package/screenshot-page/assets/BCOjWc-VhkuVoCVf.js +1 -0
- package/screenshot-page/assets/BqQ2A9WL6mcRxbSt.js +2 -0
- package/screenshot-page/assets/Bw4kRw8JKyNRlLE2.js +1 -0
- package/screenshot-page/assets/BwF-LAYFu91KqvJ8.js +2 -0
- package/screenshot-page/assets/{D_rtIYQ7FDC2CoEn.js → Bwk0ScujWaYYqx5G.js} +1 -1
- package/screenshot-page/assets/ByehV0cOs5aIySS-.js +13 -0
- package/screenshot-page/assets/{CUZobZ3mfNAdEisS.js → C0F9BL11dkgzjp7Y.js} +1 -1
- package/screenshot-page/assets/{Bh33WyohJvbKZVQN.js → C1lrvl0Ad1-NjWKG.js} +2 -2
- package/screenshot-page/assets/{B1W17rc9ilPFCh31.js → C3KvRJ_eXd6xnmlO.js} +1 -1
- package/screenshot-page/assets/C3QIYFX-vF_1DVmi.js +586 -0
- package/screenshot-page/assets/C6vseMcEu3To1U6k.js +4 -0
- package/screenshot-page/assets/CM9cBiCjJIY64PWg.js +1 -0
- package/screenshot-page/assets/{CTjUtxDw6Z2I9OGc.js → CNFMt4XhKy4tlsUn.js} +1 -1
- package/screenshot-page/assets/COpZTXe_J1mSpeYD.js +5 -0
- package/screenshot-page/assets/{BMwQInar0xVS5FRu.js → CafJ2T5GCjkumgLh.js} +1 -1
- package/screenshot-page/assets/CaiPDssAQqXac5AG.js +3 -0
- package/screenshot-page/assets/Cfs_rQCXBMVhJgat.js +1 -0
- package/screenshot-page/assets/CijzqW2bsxOQdDxl.js +2 -0
- package/screenshot-page/assets/{BKwVcuWOKeH2xREA.js → CpZHZoz3xpJMDWI0.js} +1 -1
- package/screenshot-page/assets/{DXaM3CulPA3aPGV1.js → Csjis_Fk8q4mSqdp.js} +2 -2
- package/screenshot-page/assets/{CB2mQ5rbaSw2W4ik.js → D1TqM0Bt65K6svMS.js} +23 -23
- package/screenshot-page/assets/D5kEl0N4l6MzdmTG.js +1 -0
- package/screenshot-page/assets/{B8qybUclSjEYP5FJ.js → D6WTzLygjgK85siu.js} +2 -2
- package/screenshot-page/assets/D7e00cCBTtcIRmjV.js +1 -0
- package/screenshot-page/assets/{-N4OYIMgf6f5vgNy.js → DGB9wBuDWt0bzTNE.js} +1 -1
- package/screenshot-page/assets/{CfkssmHURDicfYvR.js → DNoZea7QMO9zB6D5.js} +1 -1
- package/screenshot-page/assets/DZ2zDgzt-mnhg3Kd.js +1 -0
- package/screenshot-page/assets/DaVBDkeZxbXnuyGz.js +42 -0
- package/screenshot-page/assets/{Cbcv49b9jWyY4HKj.js → DgNbqKuVd-Q170VZ.js} +2 -2
- package/screenshot-page/assets/{C71ZZMVLfHdPl441.js → Di8Yn8O-rD9idC2h.js} +1 -1
- package/screenshot-page/assets/DjtXY9uxB3QP6hU3.js +1 -0
- package/screenshot-page/assets/DknSteOdQ6CdF0RT.js +1 -0
- package/screenshot-page/assets/Dv-4mfeFKIoD5jaY.js +3 -0
- package/screenshot-page/assets/DzlbsQ0qqdQEl80f.js +1 -0
- package/screenshot-page/assets/F6yLCIlSWZ1lAUEp.js +2 -0
- package/screenshot-page/assets/HZAIE0lHXXFqlb2v.js +1 -0
- package/screenshot-page/assets/Lr2MYBmoCKMLBl_6.js +5 -0
- package/screenshot-page/assets/{BD96fN2dSVuoME09.js → NDzpWLUA0pbyI-Rd.js} +3 -3
- package/screenshot-page/assets/O-S3tcMip6iXUjQF.js +1 -0
- package/screenshot-page/assets/eV_6j-vFozPgfcjz.js +1 -0
- package/screenshot-page/assets/{DcUOAH274IbYOuK1.js → iAWaCU0XkY0ktnNk.js} +1 -1
- package/screenshot-page/assets/it1wnIFQtbJ4Dm8N.js +1 -0
- package/screenshot-page/assets/mCyh2440vZi8s1uY.js +39 -0
- package/screenshot-page/assets/{DdXSKhFUAsKUsQ1u.js → t4FRkJl27a0itCt6.js} +1 -1
- package/screenshot-page/assets/{D0koRjO2KnWQ1fNV.js → tPEJNcr51GaPfk3O.js} +1 -1
- package/screenshot-page/assets/zEVoxCTt-ZW8Aowg.js +16 -0
- package/screenshot-page/index.html +10 -9
- package/screenshot-page/resources/locales/@sheetxl/sdk/de/model.msg.json +15 -0
- package/screenshot-page/resources/locales/@sheetxl/sdk/en/model.msg.json +15 -0
- package/types/scripting-api.json +11445 -11299
- package/types/scripting-enums.json +22 -1
- package/types/scripting.d.ts +623 -0
- package/assets/CSLLHl-zum7m1CJl.js +0 -14
- package/screenshot-page/assets/7Xk_eQAcM_HgWrOC.js +0 -1
- package/screenshot-page/assets/B8UkvH0o9n_G5UO9.js +0 -3
- package/screenshot-page/assets/BE8ea8S0Q-qogeEs.js +0 -2
- package/screenshot-page/assets/BNMBa8EZgWX2Eb3c.js +0 -1
- package/screenshot-page/assets/BQCyH9YbEgnH78Ke.js +0 -2
- package/screenshot-page/assets/BcDxaEii3arJqOym.js +0 -1
- package/screenshot-page/assets/Be-rukvcufhLamH5.js +0 -1
- package/screenshot-page/assets/C2ty_K_uix4ooip6.js +0 -1
- package/screenshot-page/assets/C9mUKjQ3yEzRu9j2.js +0 -2
- package/screenshot-page/assets/CCVAsuUimIJOkBnk.js +0 -1
- package/screenshot-page/assets/CFfgJlXaIS8QMx5O.js +0 -1
- package/screenshot-page/assets/CN8u05DjKwNHbUHN.js +0 -5
- package/screenshot-page/assets/COoMVTzF50qBNFEu.js +0 -39
- package/screenshot-page/assets/C_OuKbe6z1it80cj.js +0 -1
- package/screenshot-page/assets/CtZFqwLoeJOvwFrl.js +0 -42
- package/screenshot-page/assets/Cz6KFmsp267l_VZS.js +0 -1
- package/screenshot-page/assets/DCP8JXEeiwAMiVD2.js +0 -1
- package/screenshot-page/assets/DQAZPADvH5lhlMnK.js +0 -1
- package/screenshot-page/assets/DQBUH0j44Vtrykua.js +0 -13
- package/screenshot-page/assets/DRncpwDkZZX8rL9S.js +0 -20
- package/screenshot-page/assets/DSKOOgcJQeqIc9Us.js +0 -3
- package/screenshot-page/assets/LYyM_ig973jLdOU0.js +0 -2
- package/screenshot-page/assets/TCImIYUUdVD4Z35I.js +0 -1
- package/screenshot-page/assets/Tph2vYqw17-NBCtd.js +0 -1
- package/screenshot-page/assets/dQsis-90Up-pIkSq.js +0 -4
- package/screenshot-page/assets/dXn1GWWjYmuLb1HF.js +0 -586
|
@@ -1,26 +1,26 @@
|
|
|
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.18
|
|
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
|
|
10
|
-
import { d, m as p, o as f } from "./
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { F as P, ft as O, vt as D, yt as N } from "./
|
|
14
|
-
import { $ as _,
|
|
15
|
-
var
|
|
7
|
+
import { r as t } from "./BatIfPAYElNTXVzb.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 "./CDqOifqA400y7KQY.js";
|
|
9
|
+
import { G as l, ht as c, lt as u, v as h } from "./CGGpkGg85FZsnYHc.js";
|
|
10
|
+
import { d, m as p, o as f } from "./r9WSFw3a-_a5hlPm.js";
|
|
11
|
+
import { In as g, J as m, Ji as b, L as y, On as v, St as x, Xi as w, _r as T, cn as S, vt as k } from "./DN4zv4AjDxTsLFsA.js";
|
|
12
|
+
import { A, I as C, f as E, y as I } from "./DwOPJ5TXttTx69oF.js";
|
|
13
|
+
import { F as P, ft as O, vt as D, yt as N } from "./CT6kRDlkfvKq8XGZ.js";
|
|
14
|
+
import { $ as _, $n as M, Ar as $, B as R, Bt as L, C as V, 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 kt, an as At, br as Ct, 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 Lt, m as Vt, 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 "./D2sRTakzE5POMnhF.js";
|
|
15
|
+
var ne = {
|
|
16
16
|
ascending: "ascending",
|
|
17
17
|
descending: "descending",
|
|
18
18
|
natural: "dataSource"
|
|
19
19
|
};
|
|
20
|
-
function
|
|
20
|
+
function ie(t, e) {
|
|
21
21
|
const o = t.sheets ?? [], s = /* @__PURE__ */ new Map();
|
|
22
22
|
for (let t = 0; t < o.length; t++) {
|
|
23
|
-
const e = o[t], r =
|
|
23
|
+
const e = o[t], r = ht(e)?.tables ?? [];
|
|
24
24
|
for (let t = 0; t < r.length; t++) {
|
|
25
25
|
const e = r[t], o = Array.isArray(e) ? e[1] : e?.v;
|
|
26
26
|
if (!o?.id) continue;
|
|
@@ -45,41 +45,41 @@ function oe(t, e) {
|
|
|
45
45
|
return e;
|
|
46
46
|
}(t), i = /* @__PURE__ */ new Map();
|
|
47
47
|
for (let t = 0; t < o.length; t++) {
|
|
48
|
-
const e =
|
|
48
|
+
const e = ht(o[t])?.pivotTables ?? [];
|
|
49
49
|
for (let s = 0; s < e.length; s++) i.set(`${o[t].name}\0${e[s].name}`, e[s]);
|
|
50
50
|
}
|
|
51
51
|
const a = new Set((t.pivotCaches ?? []).flatMap((t) => t.fields ? [t.cacheId] : [])), l = /* @__PURE__ */ new Set();
|
|
52
52
|
for (let t = 0; t < o.length; t++) {
|
|
53
|
-
const c = o[t],
|
|
54
|
-
if (!
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
53
|
+
const c = o[t], u = ht(c);
|
|
54
|
+
if (!u) continue;
|
|
55
|
+
const h = u.slicers, d = u.movables;
|
|
56
|
+
if (h && d) for (let t = d.length - 1; t >= 0; t--) {
|
|
57
57
|
const o = d[t].content;
|
|
58
58
|
if ("slicer" !== o?.type || o.json?.source) continue;
|
|
59
|
-
const c = o.name ?? "",
|
|
60
|
-
if (!
|
|
61
|
-
if (!
|
|
62
|
-
if (void 0 ===
|
|
63
|
-
o.json =
|
|
59
|
+
const c = o.name ?? "", u = h[c];
|
|
60
|
+
if (!u) continue;
|
|
61
|
+
if (!u.tableId) {
|
|
62
|
+
if (void 0 === u.pivotBody) continue;
|
|
63
|
+
o.json = ce(u, o.json), o.json.pivot = le(u, r, n, i, a), l.add(c), u.cachePath && e.markAbsorbed(u.cachePath);
|
|
64
64
|
continue;
|
|
65
65
|
}
|
|
66
|
-
const p = s.get(String(
|
|
67
|
-
p && f ? (o.json =
|
|
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, k.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
|
-
delete
|
|
69
|
+
delete u.slicers;
|
|
70
70
|
}
|
|
71
71
|
e.slicerParts.forEach((t, o) => {
|
|
72
72
|
const s = Object.keys(t);
|
|
73
73
|
s.length > 0 && s.every((t) => l.has(t)) && e.markAbsorbed(o);
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function ae(t, e) {
|
|
77
77
|
if (!e) return null;
|
|
78
78
|
for (let o = 0; o < t.length; o++) if (void 0 !== t[o].id && String(t[o].id) === e) return t[o];
|
|
79
79
|
const o = Number(e);
|
|
80
80
|
return Number.isInteger(o) && o >= 1 && o <= t.length ? t[o - 1] : null;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function le(t, e, o, s, r) {
|
|
83
83
|
const n = [], i = t.pivotTables ?? [];
|
|
84
84
|
for (let t = 0; t < i.length; t++) {
|
|
85
85
|
const o = e.get(i[t].tabId);
|
|
@@ -103,35 +103,35 @@ function re(t, e, o, s, r) {
|
|
|
103
103
|
body: t.timelineBody ?? ""
|
|
104
104
|
}), a;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function ce(t, e, o) {
|
|
107
107
|
const s = { ...e };
|
|
108
108
|
if (void 0 !== o && (s.source = o), void 0 !== t.caption && t.caption !== t.sourceName && (s.caption = t.caption), !1 === t.showCaption && (s.hiddenCaption = !0), void 0 !== t.columnCount && t.columnCount > 1 && (s.columnCount = t.columnCount), void 0 !== t.rowHeight) {
|
|
109
109
|
const e = Math.round(t.rowHeight / 9525);
|
|
110
110
|
e > 0 && 27 !== e && (s.rowHeight = e);
|
|
111
111
|
}
|
|
112
112
|
t.style && "SlicerStyleLight1" !== t.style && (s.style = t.style);
|
|
113
|
-
const r = t.sortOrder ?
|
|
113
|
+
const r = t.sortOrder ? ne[t.sortOrder] : void 0;
|
|
114
114
|
return r && "ascending" !== r && (s.sortOrder = r), t.crossFilter && "showItemsWithDataAtTop" !== t.crossFilter && (s.crossFilter = t.crossFilter), t.lockedPosition && (s.lockedPosition = !0), !1 === t.customListSort && (s.disabledCustomListSort = !0), t.cacheName && (s.cacheName = t.cacheName), t.startItem && (s.startItem = t.startItem), void 0 !== t.level && (s.level = t.level), t.uid && (s.uid = t.uid), s;
|
|
115
115
|
}
|
|
116
|
-
var
|
|
116
|
+
var ue = (t, e) => {
|
|
117
117
|
const o = [], s = t?.childNodes, r = s?.length ?? 0;
|
|
118
118
|
for (let t = 0; t < r; t++) {
|
|
119
119
|
const r = s.item(t);
|
|
120
120
|
1 !== r.nodeType || e && r.localName !== e || o.push(r);
|
|
121
121
|
}
|
|
122
122
|
return o;
|
|
123
|
-
},
|
|
123
|
+
}, he = (t) => ue(t, "k").map((t) => [t.getAttribute("n") ?? "", t.getAttribute("t") || null]), de = (t) => ue(t, "v").map((t) => ({
|
|
124
124
|
t: t.getAttribute("t") || null,
|
|
125
125
|
text: t.textContent ?? ""
|
|
126
|
-
})),
|
|
126
|
+
})), pe = (t) => {
|
|
127
127
|
const e = /* @__PURE__ */ new Map();
|
|
128
|
-
for (const o of
|
|
128
|
+
for (const o of ue(t, "key")) {
|
|
129
129
|
const t = /* @__PURE__ */ new Map();
|
|
130
|
-
for (const e of
|
|
130
|
+
for (const e of ue(o, "flag")) t.set(e.getAttribute("name") ?? "", e.getAttribute("value") ?? "");
|
|
131
131
|
e.set(o.getAttribute("name") ?? "", t);
|
|
132
132
|
}
|
|
133
133
|
return e;
|
|
134
|
-
},
|
|
134
|
+
}, fe = /* @__PURE__ */ new Uint8Array(0), ge = class t {
|
|
135
135
|
constructor(t, e, o) {
|
|
136
136
|
this.buffers = /* @__PURE__ */ new Map(), this.zip = t, this.entries = e, this.rawBuffer = o;
|
|
137
137
|
}
|
|
@@ -139,7 +139,7 @@ var ie = (t, e) => {
|
|
|
139
139
|
return t.startsWith("/") ? t.slice(1) : t;
|
|
140
140
|
}
|
|
141
141
|
static async create(e) {
|
|
142
|
-
const o = e instanceof Blob ?
|
|
142
|
+
const o = e instanceof Blob ? fe : e instanceof Uint8Array ? e : new Uint8Array(e), s = e instanceof Blob ? new O(e) : new D(o), r = new P(s), n = /* @__PURE__ */ new Map();
|
|
143
143
|
for (const t of await r.getEntries()) t.directory || n.set(t.filename, t);
|
|
144
144
|
return new t(r, n, o);
|
|
145
145
|
}
|
|
@@ -205,18 +205,18 @@ var ie = (t, e) => {
|
|
|
205
205
|
async close() {
|
|
206
206
|
await this.zip.close();
|
|
207
207
|
}
|
|
208
|
-
},
|
|
208
|
+
}, me = class {
|
|
209
209
|
constructor(t) {
|
|
210
|
-
this._sink = t, this._samples = [], this._t0 =
|
|
210
|
+
this._sink = t, this._samples = [], this._t0 = be(), this._tPrev = this._t0, this._heapPrev = ye();
|
|
211
211
|
}
|
|
212
212
|
mark(t) {
|
|
213
|
-
const e =
|
|
213
|
+
const e = be(), o = ye(), s = {
|
|
214
214
|
label: t,
|
|
215
215
|
tMs: e - this._t0,
|
|
216
216
|
dtMs: e - this._tPrev,
|
|
217
217
|
heapBytes: o,
|
|
218
218
|
dHeapBytes: void 0 !== o && void 0 !== this._heapPrev ? o - this._heapPrev : void 0,
|
|
219
|
-
rssBytes:
|
|
219
|
+
rssBytes: ve()
|
|
220
220
|
};
|
|
221
221
|
this._tPrev = e, this._heapPrev = o, this._samples.push(s), this._sink?.(s);
|
|
222
222
|
}
|
|
@@ -228,91 +228,91 @@ var ie = (t, e) => {
|
|
|
228
228
|
phase: t.label,
|
|
229
229
|
tMs: Math.round(t.tMs),
|
|
230
230
|
dtMs: Math.round(t.dtMs),
|
|
231
|
-
heapMB: void 0 !== t.heapBytes ?
|
|
232
|
-
dHeapMB: void 0 !== t.dHeapBytes ?
|
|
233
|
-
rssMB: void 0 !== t.rssBytes ?
|
|
231
|
+
heapMB: void 0 !== t.heapBytes ? xe(t.heapBytes / 1048576) : "—",
|
|
232
|
+
dHeapMB: void 0 !== t.dHeapBytes ? xe(t.dHeapBytes / 1048576) : "—",
|
|
233
|
+
rssMB: void 0 !== t.rssBytes ? xe(t.rssBytes / 1048576) : "—"
|
|
234
234
|
}));
|
|
235
235
|
}
|
|
236
|
-
},
|
|
237
|
-
function
|
|
236
|
+
}, be = "object" == typeof performance && "function" == typeof performance.now ? () => performance.now() : () => Date.now();
|
|
237
|
+
function ye() {
|
|
238
238
|
const t = "object" == typeof performance ? performance.memory : void 0;
|
|
239
239
|
if (t && "number" == typeof t.usedJSHeapSize) return t.usedJSHeapSize;
|
|
240
240
|
const e = globalThis.process;
|
|
241
241
|
return "object" == typeof e && "function" == typeof e.memoryUsage ? e.memoryUsage().heapUsed : void 0;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function ve() {
|
|
244
244
|
const t = globalThis.process;
|
|
245
245
|
if ("object" == typeof t && "function" == typeof t.memoryUsage) return t.memoryUsage().rss;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function xe(t) {
|
|
248
248
|
return Math.round(10 * t) / 10;
|
|
249
249
|
}
|
|
250
|
-
var
|
|
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")), ke = (new RegExp(`^[${Te}]+$`, "u"), [
|
|
251
251
|
32,
|
|
252
252
|
10,
|
|
253
253
|
13,
|
|
254
254
|
9
|
|
255
255
|
]);
|
|
256
|
-
function
|
|
256
|
+
function Ae(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
|
-
var
|
|
260
|
-
new RegExp(`^[${
|
|
261
|
-
var
|
|
262
|
-
function
|
|
259
|
+
var Ce = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", Ee = `-${Ce}.0-9·̀-ͯ‿-⁀`;
|
|
260
|
+
new RegExp(`^[${Ce}]$`, "u"), new RegExp(`^[${Ee}]$`, "u"), new RegExp(`^[${Ce}][${Ee}]*$`, "u"), new RegExp(`^[${Ee}]+$`, "u");
|
|
261
|
+
var Ie = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", Pe = `-${Ie}.0-9·̀-ͯ‿-⁀`, Oe = (new RegExp(`^[${Ie}]$`, "u"), new RegExp(`^[${Pe}]$`, "u"), new RegExp(`^[${Ie}][${Pe}]*$`, "u"));
|
|
262
|
+
function De(t) {
|
|
263
263
|
return t >= 65 && t <= 90 || 95 === t || t >= 97 && t <= 122 || t >= 192 && t <= 214 || t >= 216 && t <= 246 || t >= 248 && t <= 767 || t >= 880 && t <= 893 || t >= 895 && t <= 8191 || t >= 8204 && t <= 8205 || t >= 8304 && t <= 8591 || t >= 11264 && t <= 12271 || t >= 12289 && t <= 55295 || t >= 63744 && t <= 64975 || t >= 65008 && t <= 65533 || t >= 65536 && t <= 983039;
|
|
264
264
|
}
|
|
265
|
-
var
|
|
265
|
+
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
|
-
},
|
|
270
|
-
return
|
|
271
|
-
},
|
|
269
|
+
}, $e = Ae, Re = function(t) {
|
|
270
|
+
return Ae(t) || t >= 48 && t <= 57 || 45 === t || 46 === t || 183 === t || t >= 768 && t <= 879 || t >= 8255 && t <= 8256;
|
|
271
|
+
}, Le = ke, Ve = Se, je = function(t) {
|
|
272
272
|
return t >= 1 && t <= 55295 || t >= 57344 && t <= 65533 || t >= 65536 && t <= 1114111;
|
|
273
|
-
},
|
|
274
|
-
return
|
|
275
|
-
},
|
|
273
|
+
}, Be = De, Fe = function(t) {
|
|
274
|
+
return De(t) || 45 === t || 46 === t || t >= 48 && t <= 57 || 183 === t || t >= 768 && t <= 879 || t >= 8255 && t <= 8256;
|
|
275
|
+
}, He = Oe, We = "http://www.w3.org/XML/1998/namespace", ze = "http://www.w3.org/2000/xmlns/", Xe = {
|
|
276
276
|
__proto__: null,
|
|
277
|
-
xml:
|
|
278
|
-
xmlns:
|
|
279
|
-
},
|
|
277
|
+
xml: We,
|
|
278
|
+
xmlns: ze
|
|
279
|
+
}, qe = {
|
|
280
280
|
__proto__: null,
|
|
281
281
|
amp: "&",
|
|
282
282
|
gt: ">",
|
|
283
283
|
lt: "<",
|
|
284
284
|
quot: "\"",
|
|
285
285
|
apos: "'"
|
|
286
|
-
},
|
|
287
|
-
...
|
|
286
|
+
}, Ue = -1, Ge = -2, Ke = 13, Je = 33, Ze = 10, Qe = 60, Ye = 61, to = 62, eo = 63, oo = 93, so = (t) => 34 === t || 39 === t, ro = [34, 39], no = [
|
|
287
|
+
...ro,
|
|
288
288
|
91,
|
|
289
|
-
|
|
290
|
-
],
|
|
291
|
-
...
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
],
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
...
|
|
298
|
-
],
|
|
299
|
-
...
|
|
300
|
-
|
|
289
|
+
to
|
|
290
|
+
], io = [
|
|
291
|
+
...ro,
|
|
292
|
+
Qe,
|
|
293
|
+
oo
|
|
294
|
+
], ao = [
|
|
295
|
+
Ye,
|
|
296
|
+
eo,
|
|
297
|
+
...Le
|
|
298
|
+
], lo = [
|
|
299
|
+
...Le,
|
|
300
|
+
to,
|
|
301
301
|
38,
|
|
302
|
-
|
|
302
|
+
Qe
|
|
303
303
|
];
|
|
304
|
-
function
|
|
304
|
+
function co(t, e, o) {
|
|
305
305
|
switch (e) {
|
|
306
306
|
case "xml":
|
|
307
|
-
o !==
|
|
307
|
+
o !== We && t.fail(`xml prefix must be bound to ${We}.`);
|
|
308
308
|
break;
|
|
309
|
-
case "xmlns": o !==
|
|
309
|
+
case "xmlns": o !== ze && t.fail(`xmlns prefix must be bound to ${ze}.`);
|
|
310
310
|
}
|
|
311
311
|
switch (o) {
|
|
312
|
-
case
|
|
313
|
-
t.fail("" === e ? `the default namespace may not be set to ${o}.` : `may not assign a prefix (even "xmlns") to the URI ${
|
|
312
|
+
case ze:
|
|
313
|
+
t.fail("" === e ? `the default namespace may not be set to ${o}.` : `may not assign a prefix (even "xmlns") to the URI ${ze}.`);
|
|
314
314
|
break;
|
|
315
|
-
case
|
|
315
|
+
case We: switch (e) {
|
|
316
316
|
case "xml": break;
|
|
317
317
|
case "":
|
|
318
318
|
t.fail(`the default namespace may not be set to ${o}.`);
|
|
@@ -321,7 +321,7 @@ function no(t, e, o) {
|
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
-
var
|
|
324
|
+
var uo = (t) => He.test(t), ho = (t) => Ve.test(t), po = {
|
|
325
325
|
xmldecl: "xmlDeclHandler",
|
|
326
326
|
text: "textHandler",
|
|
327
327
|
processinginstruction: "piHandler",
|
|
@@ -335,7 +335,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
335
335
|
error: "errorHandler",
|
|
336
336
|
end: "endHandler",
|
|
337
337
|
ready: "readyHandler"
|
|
338
|
-
},
|
|
338
|
+
}, fo = class {
|
|
339
339
|
get closed() {
|
|
340
340
|
return this._closed;
|
|
341
341
|
}
|
|
@@ -343,15 +343,15 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
343
343
|
this.i = 0, this.prevI = 0, this.opt = t ?? {}, this.fragmentOpt = !!this.opt.fragment;
|
|
344
344
|
const e = this.xmlnsOpt = !!this.opt.xmlns;
|
|
345
345
|
if (this.trackPosition = !1 !== this.opt.position, this.fileName = this.opt.fileName, e) {
|
|
346
|
-
this.nameStartCheck =
|
|
346
|
+
this.nameStartCheck = Be, this.nameCheck = Fe, this.isName = uo, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = {
|
|
347
347
|
__proto__: null,
|
|
348
|
-
...
|
|
348
|
+
...Xe
|
|
349
349
|
};
|
|
350
350
|
const t = this.opt.additionalNamespaces;
|
|
351
351
|
null != t && (function(t, e) {
|
|
352
|
-
for (const o of Object.keys(e))
|
|
352
|
+
for (const o of Object.keys(e)) co(t, o, e[o]);
|
|
353
353
|
}(this, t), Object.assign(this.ns, t));
|
|
354
|
-
} else this.nameStartCheck =
|
|
354
|
+
} else this.nameStartCheck = $e, this.nameCheck = Re, this.isName = ho, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
|
|
355
355
|
this.stateTable = [
|
|
356
356
|
this.sBegin,
|
|
357
357
|
this.sBeginWhitespace,
|
|
@@ -403,7 +403,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
403
403
|
_init() {
|
|
404
404
|
this.openWakaBang = "", this.text = "", this.name = "", this.piTarget = "", this.entity = "", this.q = null, this.tags = [], this.tag = null, this.topNS = null, this.chunk = "", this.chunkPosition = 0, this.i = 0, this.prevI = 0, this.carriedFromPrevious = void 0, this.forbiddenState = 0, this.attribList = [];
|
|
405
405
|
const { fragmentOpt: t } = this;
|
|
406
|
-
this.state = t ?
|
|
406
|
+
this.state = t ? Ke : 0, this.reportedTextBeforeRoot = this.reportedTextAfterRoot = this.closedRoot = this.sawRoot = t, this.xmlDeclPossible = !t, this.xmlDeclExpects = ["version"], this.entityReturnState = void 0;
|
|
407
407
|
let { defaultXMLVersion: e } = this.opt;
|
|
408
408
|
if (void 0 === e) {
|
|
409
409
|
if (!0 === this.opt.forceXMLVersion) throw new Error("forceXMLVersion set but defaultXMLVersion is not set");
|
|
@@ -413,7 +413,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
413
413
|
version: void 0,
|
|
414
414
|
encoding: void 0,
|
|
415
415
|
standalone: void 0
|
|
416
|
-
}, this.line = 1, this.column = 0, this.ENTITIES = Object.create(
|
|
416
|
+
}, this.line = 1, this.column = 0, this.ENTITIES = Object.create(qe), this.readyHandler?.();
|
|
417
417
|
}
|
|
418
418
|
get position() {
|
|
419
419
|
return this.chunkPosition + this.i;
|
|
@@ -422,10 +422,10 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
422
422
|
return this.position - this.positionAtNewLine;
|
|
423
423
|
}
|
|
424
424
|
on(t, e) {
|
|
425
|
-
this[
|
|
425
|
+
this[po[t]] = e;
|
|
426
426
|
}
|
|
427
427
|
off(t) {
|
|
428
|
-
this[
|
|
428
|
+
this[po[t]] = void 0;
|
|
429
429
|
}
|
|
430
430
|
makeError(t) {
|
|
431
431
|
let e = this.fileName ?? "";
|
|
@@ -452,13 +452,13 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
452
452
|
}
|
|
453
453
|
getCode10() {
|
|
454
454
|
const t = this.chunk, e = this.i;
|
|
455
|
-
if (this.prevI = e, this.i++, e >= t.length) return
|
|
455
|
+
if (this.prevI = e, this.i++, e >= t.length) return Ue;
|
|
456
456
|
const o = t.charCodeAt(e);
|
|
457
457
|
if (this.column++, o < 55296) {
|
|
458
458
|
if (o >= 32 || 9 === o) return o;
|
|
459
459
|
switch (o) {
|
|
460
|
-
case
|
|
461
|
-
case 13: return t.charCodeAt(e + 1) ===
|
|
460
|
+
case Ze: return this.line++, this.column = 0, this.positionAtNewLine = this.position, Ze;
|
|
461
|
+
case 13: return t.charCodeAt(e + 1) === Ze && (this.i = e + 2), this.line++, this.column = 0, this.positionAtNewLine = this.position, Ge;
|
|
462
462
|
default: return this.fail("disallowed character."), o;
|
|
463
463
|
}
|
|
464
464
|
}
|
|
@@ -468,18 +468,18 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
468
468
|
}
|
|
469
469
|
getCode11() {
|
|
470
470
|
const { chunk: t, i: e } = this;
|
|
471
|
-
if (this.prevI = e, this.i = e + 1, e >= t.length) return
|
|
471
|
+
if (this.prevI = e, this.i = e + 1, e >= t.length) return Ue;
|
|
472
472
|
const o = t.charCodeAt(e);
|
|
473
473
|
if (this.column++, o < 55296) {
|
|
474
474
|
if (o > 31 && o < 127 || o > 159 && 8232 !== o || 9 === o) return o;
|
|
475
475
|
switch (o) {
|
|
476
|
-
case
|
|
476
|
+
case Ze: return this.line++, this.column = 0, this.positionAtNewLine = this.position, Ze;
|
|
477
477
|
case 13: {
|
|
478
478
|
const o = t.charCodeAt(e + 1);
|
|
479
|
-
o !==
|
|
479
|
+
o !== Ze && 133 !== o || (this.i = e + 2);
|
|
480
480
|
}
|
|
481
481
|
case 133:
|
|
482
|
-
case 8232: return this.line++, this.column = 0, this.positionAtNewLine = this.position,
|
|
482
|
+
case 8232: return this.line++, this.column = 0, this.positionAtNewLine = this.position, Ge;
|
|
483
483
|
default: return this.fail("disallowed character."), o;
|
|
484
484
|
}
|
|
485
485
|
}
|
|
@@ -489,7 +489,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
489
489
|
}
|
|
490
490
|
getCodeNorm() {
|
|
491
491
|
const t = this.getCode();
|
|
492
|
-
return t ===
|
|
492
|
+
return t === Ge ? Ze : t;
|
|
493
493
|
}
|
|
494
494
|
unGet() {
|
|
495
495
|
this.i = this.prevI, this.column--;
|
|
@@ -498,8 +498,8 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
498
498
|
let { i: e } = this;
|
|
499
499
|
const { chunk: o } = this;
|
|
500
500
|
for (;;) {
|
|
501
|
-
const s = this.getCode(), r = s ===
|
|
502
|
-
if (n ===
|
|
501
|
+
const s = this.getCode(), r = s === Ge, n = r ? Ze : s;
|
|
502
|
+
if (n === Ue || t.includes(n)) return this.text += o.slice(e, this.prevI), n;
|
|
503
503
|
r && (this.text += `${o.slice(e, this.prevI)}\n`, e = this.i);
|
|
504
504
|
}
|
|
505
505
|
}
|
|
@@ -509,10 +509,10 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
509
509
|
for (;;) {
|
|
510
510
|
let s = this.getCode();
|
|
511
511
|
switch (s) {
|
|
512
|
-
case
|
|
513
|
-
this.text += `${o.slice(e, this.prevI)}\n`, e = this.i, s =
|
|
512
|
+
case Ge:
|
|
513
|
+
this.text += `${o.slice(e, this.prevI)}\n`, e = this.i, s = Ze;
|
|
514
514
|
break;
|
|
515
|
-
case
|
|
515
|
+
case Ue: return this.text += o.slice(e), !1;
|
|
516
516
|
}
|
|
517
517
|
if (s === t) return this.text += o.slice(e, this.prevI), !0;
|
|
518
518
|
}
|
|
@@ -521,18 +521,18 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
521
521
|
const { chunk: t, i: e } = this;
|
|
522
522
|
for (;;) {
|
|
523
523
|
const o = this.getCode();
|
|
524
|
-
if (o ===
|
|
525
|
-
if (!
|
|
524
|
+
if (o === Ue) return this.name += t.slice(e), Ue;
|
|
525
|
+
if (!Re(o)) return this.name += t.slice(e, this.prevI), o === Ge ? Ze : o;
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
skipSpaces() {
|
|
529
529
|
for (;;) {
|
|
530
530
|
const t = this.getCodeNorm();
|
|
531
|
-
if (t ===
|
|
531
|
+
if (t === Ue || !_e(t)) return t;
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
setXMLVersion(t) {
|
|
535
|
-
this.currentXMLVersion = t, "1.0" === t ? (this.isChar =
|
|
535
|
+
this.currentXMLVersion = t, "1.0" === t ? (this.isChar = Me, this.getCode = this.getCode10) : (this.isChar = je, this.getCode = this.getCode11);
|
|
536
536
|
}
|
|
537
537
|
sBegin() {
|
|
538
538
|
65279 === this.chunk.charCodeAt(0) && (this.i++, this.column++), this.state = 1;
|
|
@@ -540,21 +540,21 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
540
540
|
sBeginWhitespace() {
|
|
541
541
|
const t = this.i, e = this.skipSpaces();
|
|
542
542
|
switch (this.prevI !== t && (this.xmlDeclPossible = !1), e) {
|
|
543
|
-
case
|
|
543
|
+
case Qe:
|
|
544
544
|
if (this.state = 15, 0 !== this.text.length) throw new Error("no-empty text at start");
|
|
545
545
|
break;
|
|
546
|
-
case
|
|
547
|
-
default: this.unGet(), this.state =
|
|
546
|
+
case Ue: break;
|
|
547
|
+
default: this.unGet(), this.state = Ke, this.xmlDeclPossible = !1;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
sDoctype() {
|
|
551
|
-
const t = this.captureTo(
|
|
551
|
+
const t = this.captureTo(no);
|
|
552
552
|
switch (t) {
|
|
553
|
-
case
|
|
554
|
-
this.doctypeHandler?.(this.text), this.text = "", this.state =
|
|
553
|
+
case to:
|
|
554
|
+
this.doctypeHandler?.(this.text), this.text = "", this.state = Ke, this.doctype = !0;
|
|
555
555
|
break;
|
|
556
|
-
case
|
|
557
|
-
default: this.text += String.fromCodePoint(t), 91 === t ? this.state = 4 :
|
|
556
|
+
case Ue: break;
|
|
557
|
+
default: this.text += String.fromCodePoint(t), 91 === t ? this.state = 4 : so(t) && (this.state = 3, this.q = t);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
sDoctypeQuote() {
|
|
@@ -562,8 +562,8 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
562
562
|
this.captureToChar(t) && (this.text += String.fromCodePoint(t), this.q = null, this.state = 2);
|
|
563
563
|
}
|
|
564
564
|
sDTD() {
|
|
565
|
-
const t = this.captureTo(
|
|
566
|
-
t !==
|
|
565
|
+
const t = this.captureTo(io);
|
|
566
|
+
t !== Ue && (this.text += String.fromCodePoint(t), t === oo ? this.state = 2 : t === Qe ? this.state = 6 : so(t) && (this.state = 5, this.q = t));
|
|
567
567
|
}
|
|
568
568
|
sDTDQuoted() {
|
|
569
569
|
const t = this.q;
|
|
@@ -575,7 +575,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
575
575
|
case 33:
|
|
576
576
|
this.state = 7, this.openWakaBang = "";
|
|
577
577
|
break;
|
|
578
|
-
case
|
|
578
|
+
case eo:
|
|
579
579
|
this.state = 11;
|
|
580
580
|
break;
|
|
581
581
|
default: this.state = 4;
|
|
@@ -594,14 +594,14 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
594
594
|
}
|
|
595
595
|
sDTDCommentEnded() {
|
|
596
596
|
const t = this.getCodeNorm();
|
|
597
|
-
this.text += String.fromCodePoint(t), t ===
|
|
597
|
+
this.text += String.fromCodePoint(t), t === to ? this.state = 4 : (this.fail("malformed comment."), this.state = 8);
|
|
598
598
|
}
|
|
599
599
|
sDTDPI() {
|
|
600
|
-
this.captureToChar(
|
|
600
|
+
this.captureToChar(eo) && (this.text += "?", this.state = 12);
|
|
601
601
|
}
|
|
602
602
|
sDTDPIEnding() {
|
|
603
603
|
const t = this.getCodeNorm();
|
|
604
|
-
this.text += String.fromCodePoint(t), t ===
|
|
604
|
+
this.text += String.fromCodePoint(t), t === to && (this.state = 4);
|
|
605
605
|
}
|
|
606
606
|
sText() {
|
|
607
607
|
0 !== this.tags.length ? this.handleTextInRoot() : this.handleTextOutsideRoot();
|
|
@@ -610,23 +610,23 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
610
610
|
let { i: t } = this;
|
|
611
611
|
const { chunk: e } = this;
|
|
612
612
|
t: for (;;) switch (this.getCode()) {
|
|
613
|
-
case
|
|
613
|
+
case Ge:
|
|
614
614
|
this.entity += `${e.slice(t, this.prevI)}\n`, t = this.i;
|
|
615
615
|
break;
|
|
616
616
|
case 59: {
|
|
617
617
|
const { entityReturnState: o } = this, s = this.entity + e.slice(t, this.prevI);
|
|
618
618
|
let r;
|
|
619
|
-
this.state = o, "" === s ? (this.fail("empty entity name."), r = "&;") : (r = this.parseEntity(s), this.entity = ""), o ===
|
|
619
|
+
this.state = o, "" === s ? (this.fail("empty entity name."), r = "&;") : (r = this.parseEntity(s), this.entity = ""), o === Ke && void 0 === this.textHandler || (this.text += r);
|
|
620
620
|
break t;
|
|
621
621
|
}
|
|
622
|
-
case
|
|
622
|
+
case Ue:
|
|
623
623
|
this.entity += e.slice(t);
|
|
624
624
|
break t;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
sOpenWaka() {
|
|
628
628
|
const t = this.getCode();
|
|
629
|
-
if (
|
|
629
|
+
if ($e(t)) this.state = 34, this.unGet(), this.xmlDeclPossible = !1;
|
|
630
630
|
else switch (t) {
|
|
631
631
|
case 47:
|
|
632
632
|
this.state = 43, this.xmlDeclPossible = !1;
|
|
@@ -634,10 +634,10 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
634
634
|
case 33:
|
|
635
635
|
this.state = 16, this.openWakaBang = "", this.xmlDeclPossible = !1;
|
|
636
636
|
break;
|
|
637
|
-
case
|
|
637
|
+
case eo:
|
|
638
638
|
this.state = 23;
|
|
639
639
|
break;
|
|
640
|
-
default: this.fail("disallowed character in tag name"), this.state =
|
|
640
|
+
default: this.fail("disallowed character in tag name"), this.state = Ke, this.xmlDeclPossible = !1;
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
sOpenWakaBang() {
|
|
@@ -663,22 +663,22 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
663
663
|
}
|
|
664
664
|
sCommentEnded() {
|
|
665
665
|
const t = this.getCodeNorm();
|
|
666
|
-
t !==
|
|
666
|
+
t !== to ? (this.fail("malformed comment."), this.text += `--${String.fromCodePoint(t)}`, this.state = 17) : this.state = Ke;
|
|
667
667
|
}
|
|
668
668
|
sCData() {
|
|
669
|
-
this.captureToChar(
|
|
669
|
+
this.captureToChar(oo) && (this.state = 21);
|
|
670
670
|
}
|
|
671
671
|
sCDataEnding() {
|
|
672
672
|
const t = this.getCodeNorm();
|
|
673
|
-
t ===
|
|
673
|
+
t === oo ? this.state = 22 : (this.text += `]${String.fromCodePoint(t)}`, this.state = 20);
|
|
674
674
|
}
|
|
675
675
|
sCDataEnding2() {
|
|
676
676
|
const t = this.getCodeNorm();
|
|
677
677
|
switch (t) {
|
|
678
|
-
case
|
|
679
|
-
this.cdataHandler?.(this.text), this.text = "", this.state =
|
|
678
|
+
case to:
|
|
679
|
+
this.cdataHandler?.(this.text), this.text = "", this.state = Ke;
|
|
680
680
|
break;
|
|
681
|
-
case
|
|
681
|
+
case oo:
|
|
682
682
|
this.text += "]";
|
|
683
683
|
break;
|
|
684
684
|
default: this.text += `]]${String.fromCodePoint(t)}`, this.state = 20;
|
|
@@ -686,17 +686,17 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
686
686
|
}
|
|
687
687
|
sPIFirstChar() {
|
|
688
688
|
const t = this.getCodeNorm();
|
|
689
|
-
this.nameStartCheck(t) ? (this.piTarget += String.fromCodePoint(t), this.state = 24) : t ===
|
|
689
|
+
this.nameStartCheck(t) ? (this.piTarget += String.fromCodePoint(t), this.state = 24) : t === eo || _e(t) ? (this.fail("processing instruction without a target."), this.state = t === eo ? 26 : 25) : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(t), this.state = 24);
|
|
690
690
|
}
|
|
691
691
|
sPIRest() {
|
|
692
692
|
const { chunk: t, i: e } = this;
|
|
693
693
|
for (;;) {
|
|
694
694
|
const o = this.getCodeNorm();
|
|
695
|
-
if (o ===
|
|
695
|
+
if (o === Ue) return void (this.piTarget += t.slice(e));
|
|
696
696
|
if (!this.nameCheck(o)) {
|
|
697
697
|
this.piTarget += t.slice(e, this.prevI);
|
|
698
|
-
const s = o ===
|
|
699
|
-
s ||
|
|
698
|
+
const s = o === eo;
|
|
699
|
+
s || _e(o) ? "xml" === this.piTarget ? (this.xmlDeclPossible || this.fail("an XML declaration must be at the start of the document."), this.state = s ? Je : 27) : this.state = s ? 26 : 25 : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(o));
|
|
700
700
|
break;
|
|
701
701
|
}
|
|
702
702
|
}
|
|
@@ -704,28 +704,28 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
704
704
|
sPIBody() {
|
|
705
705
|
if (0 === this.text.length) {
|
|
706
706
|
const t = this.getCodeNorm();
|
|
707
|
-
t ===
|
|
708
|
-
} else this.captureToChar(
|
|
707
|
+
t === eo ? this.state = 26 : _e(t) || (this.text = String.fromCodePoint(t));
|
|
708
|
+
} else this.captureToChar(eo) && (this.state = 26);
|
|
709
709
|
}
|
|
710
710
|
sPIEnding() {
|
|
711
711
|
const t = this.getCodeNorm();
|
|
712
|
-
if (t ===
|
|
712
|
+
if (t === to) {
|
|
713
713
|
const { piTarget: t } = this;
|
|
714
714
|
"xml" === t.toLowerCase() && this.fail("the XML declaration must appear at the start of the document."), this.piHandler?.({
|
|
715
715
|
target: t,
|
|
716
716
|
body: this.text
|
|
717
|
-
}), this.piTarget = this.text = "", this.state =
|
|
718
|
-
} else t ===
|
|
717
|
+
}), this.piTarget = this.text = "", this.state = Ke;
|
|
718
|
+
} else t === eo ? this.text += "?" : (this.text += `?${String.fromCodePoint(t)}`, this.state = 25);
|
|
719
719
|
this.xmlDeclPossible = !1;
|
|
720
720
|
}
|
|
721
721
|
sXMLDeclNameStart() {
|
|
722
722
|
const t = this.skipSpaces();
|
|
723
|
-
t !==
|
|
723
|
+
t !== eo ? t !== Ue && (this.state = 28, this.name = String.fromCodePoint(t)) : this.state = Je;
|
|
724
724
|
}
|
|
725
725
|
sXMLDeclName() {
|
|
726
|
-
const t = this.captureTo(
|
|
727
|
-
if (t ===
|
|
728
|
-
if (
|
|
726
|
+
const t = this.captureTo(ao);
|
|
727
|
+
if (t === eo) return this.state = Je, this.name += this.text, this.text = "", void this.fail("XML declaration is incomplete.");
|
|
728
|
+
if (_e(t) || t === Ye) {
|
|
729
729
|
if (this.name += this.text, this.text = "", !this.xmlDeclExpects.includes(this.name)) switch (this.name.length) {
|
|
730
730
|
case 0:
|
|
731
731
|
this.fail("did not expect any more name/value pairs.");
|
|
@@ -735,23 +735,23 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
735
735
|
break;
|
|
736
736
|
default: this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`);
|
|
737
737
|
}
|
|
738
|
-
this.state = t ===
|
|
738
|
+
this.state = t === Ye ? 30 : 29;
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
sXMLDeclEq() {
|
|
742
742
|
const t = this.getCodeNorm();
|
|
743
|
-
if (t ===
|
|
744
|
-
|
|
743
|
+
if (t === eo) return this.state = Je, void this.fail("XML declaration is incomplete.");
|
|
744
|
+
_e(t) || (t !== Ye && this.fail("value required."), this.state = 30);
|
|
745
745
|
}
|
|
746
746
|
sXMLDeclValueStart() {
|
|
747
747
|
const t = this.getCodeNorm();
|
|
748
|
-
if (t ===
|
|
749
|
-
|
|
748
|
+
if (t === eo) return this.state = Je, void this.fail("XML declaration is incomplete.");
|
|
749
|
+
_e(t) || (so(t) ? this.q = t : (this.fail("value must be quoted."), this.q = 32), this.state = 31);
|
|
750
750
|
}
|
|
751
751
|
sXMLDeclValue() {
|
|
752
|
-
const t = this.captureTo([this.q,
|
|
753
|
-
if (t ===
|
|
754
|
-
if (t ===
|
|
752
|
+
const t = this.captureTo([this.q, eo]);
|
|
753
|
+
if (t === eo) return this.state = Je, this.text = "", void this.fail("XML declaration is incomplete.");
|
|
754
|
+
if (t === Ue) return;
|
|
755
755
|
const e = this.text;
|
|
756
756
|
switch (this.text = "", this.name) {
|
|
757
757
|
case "version": {
|
|
@@ -769,52 +769,52 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
769
769
|
}
|
|
770
770
|
sXMLDeclSeparator() {
|
|
771
771
|
const t = this.getCodeNorm();
|
|
772
|
-
t !==
|
|
772
|
+
t !== eo ? (_e(t) || (this.fail("whitespace required."), this.unGet()), this.state = 27) : this.state = Je;
|
|
773
773
|
}
|
|
774
774
|
sXMLDeclEnding() {
|
|
775
|
-
this.getCodeNorm() ===
|
|
775
|
+
this.getCodeNorm() === to ? ("xml" !== this.piTarget ? this.fail("processing instructions are not allowed before root.") : "version" !== this.name && this.xmlDeclExpects.includes("version") && this.fail("XML declaration must contain a version."), this.xmlDeclHandler?.(this.xmlDecl), this.name = "", this.piTarget = this.text = "", this.state = Ke) : this.fail("The character ? is disallowed anywhere in XML declarations."), this.xmlDeclPossible = !1;
|
|
776
776
|
}
|
|
777
777
|
sOpenTag() {
|
|
778
778
|
const t = this.captureNameChars();
|
|
779
|
-
if (t ===
|
|
779
|
+
if (t === Ue) return;
|
|
780
780
|
const e = this.tag = {
|
|
781
781
|
name: this.name,
|
|
782
782
|
attributes: Object.create(null)
|
|
783
783
|
};
|
|
784
784
|
switch (this.name = "", this.xmlnsOpt && (this.topNS = e.ns = Object.create(null)), this.openTagStartHandler?.(e), this.sawRoot = !0, !this.fragmentOpt && this.closedRoot && this.fail("documents may contain only one root."), t) {
|
|
785
|
-
case
|
|
785
|
+
case to:
|
|
786
786
|
this.openTag();
|
|
787
787
|
break;
|
|
788
788
|
case 47:
|
|
789
789
|
this.state = 35;
|
|
790
790
|
break;
|
|
791
|
-
default:
|
|
791
|
+
default: _e(t) || this.fail("disallowed character in tag name."), this.state = 36;
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
794
|
sOpenTagSlash() {
|
|
795
|
-
this.getCode() ===
|
|
795
|
+
this.getCode() === to ? this.openSelfClosingTag() : (this.fail("forward-slash in opening tag not followed by >."), this.state = 36);
|
|
796
796
|
}
|
|
797
797
|
sAttrib() {
|
|
798
798
|
const t = this.skipSpaces();
|
|
799
|
-
t !==
|
|
799
|
+
t !== Ue && ($e(t) ? (this.unGet(), this.state = 37) : t === to ? this.openTag() : 47 === t ? this.state = 35 : this.fail("disallowed character in attribute name."));
|
|
800
800
|
}
|
|
801
801
|
sAttribName() {
|
|
802
802
|
const t = this.captureNameChars();
|
|
803
|
-
t ===
|
|
803
|
+
t === Ye ? this.state = 39 : _e(t) ? this.state = 38 : t === to ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : t !== Ue && this.fail("disallowed character in attribute name.");
|
|
804
804
|
}
|
|
805
805
|
sAttribNameSawWhite() {
|
|
806
806
|
const t = this.skipSpaces();
|
|
807
807
|
switch (t) {
|
|
808
|
-
case
|
|
809
|
-
case
|
|
808
|
+
case Ue: return;
|
|
809
|
+
case Ye:
|
|
810
810
|
this.state = 39;
|
|
811
811
|
break;
|
|
812
|
-
default: this.fail("attribute without value."), this.text = "", this.name = "", t ===
|
|
812
|
+
default: this.fail("attribute without value."), this.text = "", this.name = "", t === to ? this.openTag() : $e(t) ? (this.unGet(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
sAttribValue() {
|
|
816
816
|
const t = this.getCodeNorm();
|
|
817
|
-
|
|
817
|
+
so(t) ? (this.q = t, this.state = 40) : _e(t) || (this.fail("unquoted attribute value."), this.state = 42, this.unGet());
|
|
818
818
|
}
|
|
819
819
|
sAttribValueQuoted() {
|
|
820
820
|
const { q: t, chunk: e } = this;
|
|
@@ -826,46 +826,46 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
826
826
|
case 38:
|
|
827
827
|
this.text += e.slice(o, this.prevI), this.state = 14, this.entityReturnState = 40;
|
|
828
828
|
return;
|
|
829
|
-
case
|
|
830
|
-
case
|
|
829
|
+
case Ze:
|
|
830
|
+
case Ge:
|
|
831
831
|
case 9:
|
|
832
832
|
this.text += `${e.slice(o, this.prevI)} `, o = this.i;
|
|
833
833
|
break;
|
|
834
|
-
case
|
|
834
|
+
case Qe:
|
|
835
835
|
this.text += e.slice(o, this.prevI), this.fail("disallowed character.");
|
|
836
836
|
return;
|
|
837
|
-
case
|
|
837
|
+
case Ue:
|
|
838
838
|
this.text += e.slice(o);
|
|
839
839
|
return;
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
842
|
sAttribValueClosed() {
|
|
843
843
|
const t = this.getCodeNorm();
|
|
844
|
-
|
|
844
|
+
_e(t) ? this.state = 36 : t === to ? this.openTag() : 47 === t ? this.state = 35 : $e(t) ? (this.fail("no whitespace between attributes."), this.unGet(), this.state = 37) : this.fail("disallowed character in attribute name.");
|
|
845
845
|
}
|
|
846
846
|
sAttribValueUnquoted() {
|
|
847
|
-
const t = this.captureTo(
|
|
847
|
+
const t = this.captureTo(lo);
|
|
848
848
|
switch (t) {
|
|
849
849
|
case 38:
|
|
850
850
|
this.state = 14, this.entityReturnState = 42;
|
|
851
851
|
break;
|
|
852
|
-
case
|
|
852
|
+
case Qe:
|
|
853
853
|
this.fail("disallowed character.");
|
|
854
854
|
break;
|
|
855
|
-
case
|
|
856
|
-
default: this.text.includes("]]>") && this.fail("the string \"]]>\" is disallowed in char data."), this.pushAttrib(this.name, this.text), this.name = this.text = "", t ===
|
|
855
|
+
case Ue: break;
|
|
856
|
+
default: this.text.includes("]]>") && this.fail("the string \"]]>\" is disallowed in char data."), this.pushAttrib(this.name, this.text), this.name = this.text = "", t === to ? this.openTag() : this.state = 36;
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
859
|
sCloseTag() {
|
|
860
860
|
const t = this.captureNameChars();
|
|
861
|
-
t ===
|
|
861
|
+
t === to ? this.closeTag() : _e(t) ? this.state = 44 : t !== Ue && this.fail("disallowed character in closing tag.");
|
|
862
862
|
}
|
|
863
863
|
sCloseTagSawWhite() {
|
|
864
864
|
switch (this.skipSpaces()) {
|
|
865
|
-
case
|
|
865
|
+
case to:
|
|
866
866
|
this.closeTag();
|
|
867
867
|
break;
|
|
868
|
-
case
|
|
868
|
+
case Ue: break;
|
|
869
869
|
default: this.fail("disallowed character in closing tag.");
|
|
870
870
|
}
|
|
871
871
|
}
|
|
@@ -873,7 +873,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
873
873
|
let { i: t, forbiddenState: e } = this;
|
|
874
874
|
const { chunk: o, textHandler: s } = this;
|
|
875
875
|
t: for (;;) switch (this.getCode()) {
|
|
876
|
-
case
|
|
876
|
+
case Qe:
|
|
877
877
|
if (this.state = 15, void 0 !== s) {
|
|
878
878
|
const { text: e } = this, r = o.slice(t, this.prevI);
|
|
879
879
|
0 !== e.length ? (s(e + r), this.text = "") : 0 !== r.length && s(r);
|
|
@@ -881,9 +881,9 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
881
881
|
e = 0;
|
|
882
882
|
break t;
|
|
883
883
|
case 38:
|
|
884
|
-
this.state = 14, this.entityReturnState =
|
|
884
|
+
this.state = 14, this.entityReturnState = Ke, void 0 !== s && (this.text += o.slice(t, this.prevI)), e = 0;
|
|
885
885
|
break t;
|
|
886
|
-
case
|
|
886
|
+
case oo:
|
|
887
887
|
switch (e) {
|
|
888
888
|
case 0:
|
|
889
889
|
e = 1;
|
|
@@ -895,13 +895,13 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
895
895
|
default: throw new Error("impossible state");
|
|
896
896
|
}
|
|
897
897
|
break;
|
|
898
|
-
case
|
|
898
|
+
case to:
|
|
899
899
|
2 === e && this.fail("the string \"]]>\" is disallowed in char data."), e = 0;
|
|
900
900
|
break;
|
|
901
|
-
case
|
|
901
|
+
case Ge:
|
|
902
902
|
void 0 !== s && (this.text += `${o.slice(t, this.prevI)}\n`), t = this.i, e = 0;
|
|
903
903
|
break;
|
|
904
|
-
case
|
|
904
|
+
case Ue:
|
|
905
905
|
void 0 !== s && (this.text += o.slice(t));
|
|
906
906
|
break t;
|
|
907
907
|
default: e = 0;
|
|
@@ -915,22 +915,22 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
915
915
|
t: for (;;) {
|
|
916
916
|
const r = this.getCode();
|
|
917
917
|
switch (r) {
|
|
918
|
-
case
|
|
918
|
+
case Qe:
|
|
919
919
|
if (this.state = 15, void 0 !== o) {
|
|
920
920
|
const { text: s } = this, r = e.slice(t, this.prevI);
|
|
921
921
|
0 !== s.length ? (o(s + r), this.text = "") : 0 !== r.length && o(r);
|
|
922
922
|
}
|
|
923
923
|
break t;
|
|
924
924
|
case 38:
|
|
925
|
-
this.state = 14, this.entityReturnState =
|
|
925
|
+
this.state = 14, this.entityReturnState = Ke, void 0 !== o && (this.text += e.slice(t, this.prevI)), s = !0;
|
|
926
926
|
break t;
|
|
927
|
-
case
|
|
927
|
+
case Ge:
|
|
928
928
|
void 0 !== o && (this.text += `${e.slice(t, this.prevI)}\n`), t = this.i;
|
|
929
929
|
break;
|
|
930
|
-
case
|
|
930
|
+
case Ue:
|
|
931
931
|
void 0 !== o && (this.text += e.slice(t));
|
|
932
932
|
break t;
|
|
933
|
-
default:
|
|
933
|
+
default: _e(r) || (s = !0);
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
936
|
s && (this.sawRoot || this.reportedTextBeforeRoot || (this.fail("text data outside of root node."), this.reportedTextBeforeRoot = !0), this.closedRoot && !this.reportedTextAfterRoot && (this.fail("text data outside of root node."), this.reportedTextAfterRoot = !0));
|
|
@@ -944,10 +944,10 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
944
944
|
};
|
|
945
945
|
if (this.attribList.push(r), this.attributeHandler?.(r), "xmlns" === o) {
|
|
946
946
|
const t = e.trim();
|
|
947
|
-
"1.0" === this.currentXMLVersion && "" === t && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[s] = t,
|
|
947
|
+
"1.0" === this.currentXMLVersion && "" === t && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[s] = t, co(this, s, t);
|
|
948
948
|
} else if ("xmlns" === t) {
|
|
949
949
|
const t = e.trim();
|
|
950
|
-
this.topNS[""] = t,
|
|
950
|
+
this.topNS[""] = t, co(this, "", t);
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
953
|
pushAttribPlain(t, e) {
|
|
@@ -964,7 +964,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
964
964
|
const e = t.pop();
|
|
965
965
|
this.fail(`unclosed tag: ${e.name}`);
|
|
966
966
|
}
|
|
967
|
-
0 !== this.state && this.state !==
|
|
967
|
+
0 !== this.state && this.state !== Ke && this.fail("unexpected end.");
|
|
968
968
|
const { text: e } = this;
|
|
969
969
|
return 0 !== e.length && (this.textHandler?.(e), this.text = ""), this._closed = !0, this.endHandler?.(), this._init(), this;
|
|
970
970
|
}
|
|
@@ -1000,7 +1000,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
1000
1000
|
for (const e of t) {
|
|
1001
1001
|
const { name: t, prefix: r, local: n } = e;
|
|
1002
1002
|
let i, a;
|
|
1003
|
-
"" === r ? (i = "xmlns" === t ?
|
|
1003
|
+
"" === r ? (i = "xmlns" === t ? ze : "", a = t) : (i = this.resolve(r), void 0 === i && (this.fail(`unbound namespace prefix: ${JSON.stringify(r)}.`), i = r), a = `{${i}}${n}`), s.has(a) && this.fail(`duplicate attribute: ${a}.`), s.add(a), e.uri = i, o[t] = e;
|
|
1004
1004
|
}
|
|
1005
1005
|
this.attribList = [];
|
|
1006
1006
|
}
|
|
@@ -1012,16 +1012,16 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
1012
1012
|
openTag() {
|
|
1013
1013
|
this.processAttribs();
|
|
1014
1014
|
const { tags: t } = this, e = this.tag;
|
|
1015
|
-
e.isSelfClosing = !1, this.openTagHandler?.(e), t.push(e), this.state =
|
|
1015
|
+
e.isSelfClosing = !1, this.openTagHandler?.(e), t.push(e), this.state = Ke, this.name = "";
|
|
1016
1016
|
}
|
|
1017
1017
|
openSelfClosingTag() {
|
|
1018
1018
|
this.processAttribs();
|
|
1019
1019
|
const { tags: t } = this, e = this.tag;
|
|
1020
|
-
e.isSelfClosing = !0, this.openTagHandler?.(e), this.closeTagHandler?.(e), null === (this.tag = t[t.length - 1] ?? null) && (this.closedRoot = !0), this.state =
|
|
1020
|
+
e.isSelfClosing = !0, this.openTagHandler?.(e), this.closeTagHandler?.(e), null === (this.tag = t[t.length - 1] ?? null) && (this.closedRoot = !0), this.state = Ke, this.name = "";
|
|
1021
1021
|
}
|
|
1022
1022
|
closeTag() {
|
|
1023
1023
|
const { tags: t, name: e } = this;
|
|
1024
|
-
if (this.state =
|
|
1024
|
+
if (this.state = Ke, this.name = "", "" === e) return this.fail("weird empty close tag."), void (this.text += "</>");
|
|
1025
1025
|
const o = this.closeTagHandler;
|
|
1026
1026
|
let s = t.length;
|
|
1027
1027
|
for (; s-- > 0;) {
|
|
@@ -1039,21 +1039,21 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
1039
1039
|
let e = NaN;
|
|
1040
1040
|
return "x" === t[1] && /^#x[0-9a-f]+$/i.test(t) ? e = parseInt(t.slice(2), 16) : /^#[0-9]+$/.test(t) && (e = parseInt(t.slice(1), 10)), this.isChar(e) ? String.fromCodePoint(e) : (this.fail("malformed character entity."), `&${t};`);
|
|
1041
1041
|
}
|
|
1042
|
-
},
|
|
1042
|
+
}, go = /&(#x[0-9a-fA-F]+|#[0-9]+|amp|lt|gt|quot|apos);/g, mo = {
|
|
1043
1043
|
amp: "&",
|
|
1044
1044
|
lt: "<",
|
|
1045
1045
|
gt: ">",
|
|
1046
1046
|
quot: "\"",
|
|
1047
1047
|
apos: "'"
|
|
1048
|
-
},
|
|
1049
|
-
const o =
|
|
1048
|
+
}, bo = (t, e) => {
|
|
1049
|
+
const o = mo[e];
|
|
1050
1050
|
if (void 0 !== o) return o;
|
|
1051
1051
|
const s = 120 === e.charCodeAt(1) ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
1052
1052
|
return s > 0 && s <= 1114111 ? String.fromCodePoint(s) : t;
|
|
1053
|
-
},
|
|
1053
|
+
}, yo = (t) => {
|
|
1054
1054
|
let e = t;
|
|
1055
|
-
return -1 !== e.indexOf("\r") && (e = e.replace(/\r\n?/g, "\n")), -1 !== e.indexOf("&") && (e = e.replace(
|
|
1056
|
-
},
|
|
1055
|
+
return -1 !== e.indexOf("\r") && (e = e.replace(/\r\n?/g, "\n")), -1 !== e.indexOf("&") && (e = e.replace(go, bo)), e;
|
|
1056
|
+
}, vo = (t) => {
|
|
1057
1057
|
let e = t;
|
|
1058
1058
|
const o = e.length;
|
|
1059
1059
|
for (let t = 0; t < o; t++) {
|
|
@@ -1063,8 +1063,8 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
1063
1063
|
break;
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
|
-
return -1 !== e.indexOf("&") && (e = e.replace(
|
|
1067
|
-
},
|
|
1066
|
+
return -1 !== e.indexOf("&") && (e = e.replace(go, bo)), e;
|
|
1067
|
+
}, xo = (t) => 32 === t || 9 === t || 10 === t || 13 === t, wo = class t {
|
|
1068
1068
|
constructor() {
|
|
1069
1069
|
this._openTagHandler = void 0, this._closeTagHandler = void 0, this._textHandler = void 0, this._cdataHandler = void 0, this._errorHandler = void 0, this._endHandler = void 0, this._scanners = null, this._carry = "", this._text = "", this._tags = [], this._sawRoot = !1, this._closed = !1;
|
|
1070
1070
|
}
|
|
@@ -1075,7 +1075,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
1075
1075
|
this.NOT_HANDLED = -2;
|
|
1076
1076
|
}
|
|
1077
1077
|
static decodeText(t) {
|
|
1078
|
-
return
|
|
1078
|
+
return yo(t);
|
|
1079
1079
|
}
|
|
1080
1080
|
on(t, e) {
|
|
1081
1081
|
switch (t) {
|
|
@@ -1142,7 +1142,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
1142
1142
|
if (0 === t.length) return;
|
|
1143
1143
|
this._text = "";
|
|
1144
1144
|
const e = this._textHandler;
|
|
1145
|
-
void 0 !== e && 0 !== this._tags.length && e(
|
|
1145
|
+
void 0 !== e && 0 !== this._tags.length && e(yo(t));
|
|
1146
1146
|
}
|
|
1147
1147
|
_markup(e, o, s) {
|
|
1148
1148
|
if (o + 1 >= s) return -1;
|
|
@@ -1181,7 +1181,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
1181
1181
|
const r = o + 1 + i.name.length;
|
|
1182
1182
|
if (r >= s) return -1;
|
|
1183
1183
|
const n = e.charCodeAt(r);
|
|
1184
|
-
if (62 === n || 47 === n ||
|
|
1184
|
+
if (62 === n || 47 === n || xo(n)) {
|
|
1185
1185
|
this._flushText();
|
|
1186
1186
|
const r = i.scan(e, o, s);
|
|
1187
1187
|
if (r !== t.NOT_HANDLED) {
|
|
@@ -1199,12 +1199,12 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
_openTag(t, e, o) {
|
|
1201
1201
|
let s = e + 1, r = 0;
|
|
1202
|
-
for (; s < o && (r = t.charCodeAt(s), 62 !== r && 47 !== r && !
|
|
1202
|
+
for (; s < o && (r = t.charCodeAt(s), 62 !== r && 47 !== r && !xo(r));) s++;
|
|
1203
1203
|
if (s >= o) return -1;
|
|
1204
1204
|
const n = t.slice(e + 1, s), i = {};
|
|
1205
1205
|
let a = !1;
|
|
1206
1206
|
for (;;) {
|
|
1207
|
-
for (; s < o &&
|
|
1207
|
+
for (; s < o && xo(r = t.charCodeAt(s));) s++;
|
|
1208
1208
|
if (s >= o) return -1;
|
|
1209
1209
|
if (62 === r) {
|
|
1210
1210
|
s++;
|
|
@@ -1220,16 +1220,16 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
1220
1220
|
break;
|
|
1221
1221
|
}
|
|
1222
1222
|
const e = s;
|
|
1223
|
-
for (; s < o && (r = t.charCodeAt(s), 61 !== r && 62 !== r && 47 !== r && !
|
|
1223
|
+
for (; s < o && (r = t.charCodeAt(s), 61 !== r && 62 !== r && 47 !== r && !xo(r));) s++;
|
|
1224
1224
|
if (s >= o) return -1;
|
|
1225
1225
|
const n = t.slice(e, s);
|
|
1226
|
-
for (; s < o &&
|
|
1226
|
+
for (; s < o && xo(r = t.charCodeAt(s));) s++;
|
|
1227
1227
|
if (s >= o) return -1;
|
|
1228
1228
|
if (61 !== r) {
|
|
1229
1229
|
this.fail("attribute without value.");
|
|
1230
1230
|
continue;
|
|
1231
1231
|
}
|
|
1232
|
-
for (s++; s < o &&
|
|
1232
|
+
for (s++; s < o && xo(r = t.charCodeAt(s));) s++;
|
|
1233
1233
|
if (s >= o) return -1;
|
|
1234
1234
|
if (34 !== r && 39 !== r) {
|
|
1235
1235
|
this.fail("unquoted attribute value.");
|
|
@@ -1237,7 +1237,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
const l = t.indexOf(34 === r ? "\"" : "'", s + 1);
|
|
1239
1239
|
if (-1 === l) return -1;
|
|
1240
|
-
"__proto__" !== n && (i[n] =
|
|
1240
|
+
"__proto__" !== n && (i[n] = vo(t.slice(s + 1, l))), s = l + 1;
|
|
1241
1241
|
}
|
|
1242
1242
|
this._flushText(), this._sawRoot = !0;
|
|
1243
1243
|
const l = {
|
|
@@ -1276,7 +1276,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
1276
1276
|
Ready: "ready"
|
|
1277
1277
|
}, t.parseStream = async (t, e, o) => {
|
|
1278
1278
|
if (o?.lean) return (async (t, e) => {
|
|
1279
|
-
const o = new
|
|
1279
|
+
const o = new wo();
|
|
1280
1280
|
let s;
|
|
1281
1281
|
e.elementScanners && o.setElementScanners(e.elementScanners), e.onOpenTag && o.on("opentag", e.onOpenTag), e.onCloseTag && o.on("closetag", e.onCloseTag), e.onText && o.on("text", e.onText), e.onError && o.on("error", e.onError);
|
|
1282
1282
|
const r = e.onEnd;
|
|
@@ -1289,18 +1289,18 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
return o.close(), s;
|
|
1291
1291
|
})(t, e);
|
|
1292
|
-
const s = new
|
|
1292
|
+
const s = new fo({
|
|
1293
1293
|
position: !1,
|
|
1294
1294
|
...o
|
|
1295
1295
|
});
|
|
1296
1296
|
let r;
|
|
1297
|
-
e.onOpenTagStart && s.on(
|
|
1297
|
+
e.onOpenTagStart && s.on(Ne.Events.OpenTagStart, e.onOpenTagStart), e.onOpenTag && s.on(Ne.Events.OpenTag, e.onOpenTag), e.onCloseTag && s.on(Ne.Events.CloseTag, e.onCloseTag), e.onAttribute && s.on(Ne.Events.Attribute, e.onAttribute), e.onText && s.on(Ne.Events.Text, e.onText), e.onError && s.on(Ne.Events.Error, e.onError);
|
|
1298
1298
|
const n = e.onEnd;
|
|
1299
1299
|
if (n) {
|
|
1300
1300
|
const t = () => {
|
|
1301
1301
|
r = n();
|
|
1302
1302
|
};
|
|
1303
|
-
s.on(
|
|
1303
|
+
s.on(Ne.Events.End, t);
|
|
1304
1304
|
}
|
|
1305
1305
|
for (;;) {
|
|
1306
1306
|
const { value: e, done: o } = await t.read();
|
|
@@ -1309,14 +1309,14 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
return s.close(), r;
|
|
1311
1311
|
};
|
|
1312
|
-
})(
|
|
1313
|
-
var
|
|
1312
|
+
})(Ne || (Ne = {}));
|
|
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
|
+
}, ko = (t) => {
|
|
1317
1317
|
const e = parseFloat(t);
|
|
1318
1318
|
return isNaN(e) ? null : e;
|
|
1319
|
-
},
|
|
1319
|
+
}, Ao = null, Co = (t) => t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), Eo = (t) => Co(t).replace(/"/g, """), Io = class {
|
|
1320
1320
|
constructor() {
|
|
1321
1321
|
this._registeredVisitors = /* @__PURE__ */ new Map();
|
|
1322
1322
|
}
|
|
@@ -1326,7 +1326,7 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1326
1326
|
createEventHandler(t, e, o) {
|
|
1327
1327
|
const s = this._registeredVisitors, r = [], n = [];
|
|
1328
1328
|
let i = null, a = null, l = null, c = null;
|
|
1329
|
-
const
|
|
1329
|
+
const u = [], h = {
|
|
1330
1330
|
key: null,
|
|
1331
1331
|
source: t,
|
|
1332
1332
|
parent: null
|
|
@@ -1345,7 +1345,7 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1345
1345
|
if (o = e(o), null == o) return;
|
|
1346
1346
|
}
|
|
1347
1347
|
return o;
|
|
1348
|
-
},
|
|
1348
|
+
}, y = {
|
|
1349
1349
|
getSource: () => d?.source ?? null,
|
|
1350
1350
|
setSource: (t) => {
|
|
1351
1351
|
d.source = t;
|
|
@@ -1355,9 +1355,9 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1355
1355
|
},
|
|
1356
1356
|
getFrom: () => l,
|
|
1357
1357
|
getAttribute: (t, e) => b(t, e) ?? null,
|
|
1358
|
-
hasAttribute: (t) => null !==
|
|
1358
|
+
hasAttribute: (t) => null !== y.getAttribute(t),
|
|
1359
1359
|
getParent: () => {
|
|
1360
|
-
const t =
|
|
1360
|
+
const t = u[u.length - 2];
|
|
1361
1361
|
return t.parent ?? t.source;
|
|
1362
1362
|
},
|
|
1363
1363
|
getPath: () => {
|
|
@@ -1388,7 +1388,7 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1388
1388
|
let o = `<${t.name}`;
|
|
1389
1389
|
for (const t in e) {
|
|
1390
1390
|
const s = e[t];
|
|
1391
|
-
o += ` ${t}="${
|
|
1391
|
+
o += ` ${t}="${Eo("string" == typeof s ? s : s?.value ?? "")}"`;
|
|
1392
1392
|
}
|
|
1393
1393
|
return o + ">";
|
|
1394
1394
|
})(t)), i = {
|
|
@@ -1406,16 +1406,16 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1406
1406
|
c = i?.visitor ?? null, a = e, l = t;
|
|
1407
1407
|
let b = !!m && null === m.to;
|
|
1408
1408
|
if (m && !b && m.scope) {
|
|
1409
|
-
const t = m.scope(
|
|
1409
|
+
const t = m.scope(y);
|
|
1410
1410
|
null === t ? b = !0 : t && (r.push(t), i.pushedScope = !0);
|
|
1411
1411
|
}
|
|
1412
|
-
m && (0 === n.length ? (d =
|
|
1412
|
+
m && (0 === n.length ? (d = h, i.destination = d, i.pushedDestination = !0, u.push(d)) : b ? (d = null, i.destination = null) : m.transparent ? i.destination = d : (d = {
|
|
1413
1413
|
key: null,
|
|
1414
1414
|
source: {},
|
|
1415
1415
|
parent: null
|
|
1416
|
-
}, i.destination = d, i.pushedDestination = !0,
|
|
1417
|
-
const
|
|
1418
|
-
void 0 !==
|
|
1416
|
+
}, i.destination = d, i.pushedDestination = !0, u.push(d))), n.push(i), p = b;
|
|
1417
|
+
const v = c?.openTag?.(y);
|
|
1418
|
+
void 0 !== v && (d.parent = v), m?.raw && !b && (f = [], g = i);
|
|
1419
1419
|
},
|
|
1420
1420
|
onCloseTag: (t) => {
|
|
1421
1421
|
let e = t.name;
|
|
@@ -1426,24 +1426,24 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1426
1426
|
if (n[n.length - 1] !== g) return f.push(`</${t.name}>`), n.pop(), i = n[n.length - 1] ?? null, a = i?.local ?? null, void (l = i?.tag ?? null);
|
|
1427
1427
|
m = f.join(""), f = null, g = null, b = !0;
|
|
1428
1428
|
}
|
|
1429
|
-
p || c?.closeTag?.(
|
|
1430
|
-
const
|
|
1431
|
-
i = n[n.length - 1] ?? null,
|
|
1432
|
-
const x =
|
|
1433
|
-
if (x &&
|
|
1434
|
-
|
|
1435
|
-
const t =
|
|
1436
|
-
t && t.to && void 0 !== x.source && (Array.isArray(t.to) ? d.source.push ? d.source.push(x.source) : o?.(`Unable to parse array for ${t.from} at ${
|
|
1437
|
-
} else x || (d =
|
|
1429
|
+
p || c?.closeTag?.(y), b && (m = null);
|
|
1430
|
+
const v = n.pop() ?? null;
|
|
1431
|
+
i = n[n.length - 1] ?? null, v?.pushedScope && r.pop();
|
|
1432
|
+
const x = v?.destination;
|
|
1433
|
+
if (x && v.pushedDestination) {
|
|
1434
|
+
u.pop(), d = u[u.length - 1] ?? h;
|
|
1435
|
+
const t = v.visitor;
|
|
1436
|
+
t && t.to && void 0 !== x.source && (Array.isArray(t.to) ? d.source.push ? d.source.push(x.source) : o?.(`Unable to parse array for ${t.from} at ${y.getPath()}`) : x.key ? d.source[x.key] = x.source : "string" == typeof t.to && (d.source[t.to] = x.source));
|
|
1437
|
+
} else x || (d = u[u.length - 1] ?? h);
|
|
1438
1438
|
a = i?.local ?? null, l = i?.tag ?? null, c = i?.visitor ?? null, p = !i?.destination;
|
|
1439
1439
|
},
|
|
1440
1440
|
onText: (t) => {
|
|
1441
|
-
f ? f.push(
|
|
1441
|
+
f ? f.push(Co(t)) : c?.text?.(t, y);
|
|
1442
1442
|
},
|
|
1443
1443
|
onEnd: e
|
|
1444
1444
|
};
|
|
1445
1445
|
}
|
|
1446
|
-
},
|
|
1446
|
+
}, Po = `IFERROR(${Bt}(`, Oo = Po.toUpperCase(), Do = Tt.toUpperCase(), No = { kind: "none" }, _o = { kind: "spilled" }, Mo = (t, e) => {
|
|
1447
1447
|
if (34 !== t.charCodeAt(e)) return null;
|
|
1448
1448
|
let o = "", s = e + 1;
|
|
1449
1449
|
for (; s < t.length;) if (34 === t.charCodeAt(s)) {
|
|
@@ -1454,13 +1454,13 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1454
1454
|
o += "\"", s += 2;
|
|
1455
1455
|
} else o += t[s], s++;
|
|
1456
1456
|
return null;
|
|
1457
|
-
},
|
|
1457
|
+
}, $o = (t) => {
|
|
1458
1458
|
const e = [];
|
|
1459
1459
|
let o = 0;
|
|
1460
1460
|
for (; o < t.length;) {
|
|
1461
1461
|
const s = t.charCodeAt(o);
|
|
1462
1462
|
if (34 === s) {
|
|
1463
|
-
const e =
|
|
1463
|
+
const e = Mo(t, o);
|
|
1464
1464
|
if (null === e) break;
|
|
1465
1465
|
o = e.end;
|
|
1466
1466
|
continue;
|
|
@@ -1478,14 +1478,14 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1478
1478
|
40 === t.charCodeAt(r) && e.push(t.slice(o, r).toUpperCase().replace(/^_XLFN\./, "").replace(/^_XLWS\./, "")), o = r;
|
|
1479
1479
|
}
|
|
1480
1480
|
return e;
|
|
1481
|
-
},
|
|
1481
|
+
}, Ro = class {
|
|
1482
1482
|
constructor(t) {
|
|
1483
1483
|
this._restored = [], this._byColumn = /* @__PURE__ */ new Map(), this._isKnown = t;
|
|
1484
1484
|
}
|
|
1485
1485
|
anchor(t, e, o) {
|
|
1486
1486
|
const s = this._byColumn.get(e);
|
|
1487
1487
|
s && t === s.rowEnd + 1 && t > s.rowStart && (s.closed = !0);
|
|
1488
|
-
const r =
|
|
1488
|
+
const r = $o(o);
|
|
1489
1489
|
let n = !0;
|
|
1490
1490
|
for (let t = 0; t < r.length && n; t++) n = this._isKnown(r[t]);
|
|
1491
1491
|
const i = {
|
|
@@ -1505,29 +1505,29 @@ var vo = (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) => [v.rangeToString(t), "dynamic"]);
|
|
1509
1509
|
}
|
|
1510
|
-
},
|
|
1511
|
-
const e =
|
|
1510
|
+
}, Lo = /^\s*TABLE\s*\(([^()]*)\)\s*$/i, Vo = /^\s*(\$?)([A-Za-z]{1,3})(\$?)(\d{1,7})\s*$/, jo = (t) => {
|
|
1511
|
+
const e = Vo.exec(t);
|
|
1512
1512
|
if (!e) return null;
|
|
1513
|
-
const o =
|
|
1513
|
+
const o = v.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
|
-
},
|
|
1520
|
+
}, Bo = (t) => v.cellToString({
|
|
1521
1521
|
rowIndex: t.row,
|
|
1522
1522
|
colIndex: t.col
|
|
1523
|
-
}),
|
|
1524
|
-
const o =
|
|
1523
|
+
}), Fo = (t, e) => {
|
|
1524
|
+
const o = Lo.exec(t);
|
|
1525
1525
|
if (!o) return null;
|
|
1526
1526
|
const s = o[1].split(",");
|
|
1527
1527
|
if (3 !== s.length && 5 !== s.length) return null;
|
|
1528
1528
|
const r = [];
|
|
1529
1529
|
for (let t = 0; t < s.length; t++) {
|
|
1530
|
-
const e =
|
|
1530
|
+
const e = jo(s[t]);
|
|
1531
1531
|
if (!e) return null;
|
|
1532
1532
|
r.push(e);
|
|
1533
1533
|
}
|
|
@@ -1536,35 +1536,35 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1536
1536
|
colStart: i,
|
|
1537
1537
|
rowEnd: e.rowEnd,
|
|
1538
1538
|
colEnd: e.colEnd
|
|
1539
|
-
},
|
|
1539
|
+
}, u = r[0];
|
|
1540
1540
|
if (3 === r.length) {
|
|
1541
1541
|
const [, t, e] = r;
|
|
1542
|
-
return a(e) && l(
|
|
1542
|
+
return a(e) && l(u) ? {
|
|
1543
1543
|
ref: c,
|
|
1544
|
-
columnInput:
|
|
1545
|
-
} : l(e) && a(
|
|
1544
|
+
columnInput: Bo(t)
|
|
1545
|
+
} : l(e) && a(u) ? {
|
|
1546
1546
|
ref: c,
|
|
1547
|
-
rowInput:
|
|
1547
|
+
rowInput: Bo(t)
|
|
1548
1548
|
} : null;
|
|
1549
1549
|
}
|
|
1550
|
-
if (!
|
|
1551
|
-
const [,
|
|
1550
|
+
if (!u.rowAbsolute || !u.colAbsolute || u.row !== n - 1 || u.col !== i - 1) return null;
|
|
1551
|
+
const [, h, d, p, f] = r;
|
|
1552
1552
|
return a(d) && l(f) ? {
|
|
1553
1553
|
ref: c,
|
|
1554
|
-
rowInput:
|
|
1555
|
-
columnInput:
|
|
1554
|
+
rowInput: Bo(p),
|
|
1555
|
+
columnInput: Bo(h)
|
|
1556
1556
|
} : l(d) && a(f) ? {
|
|
1557
1557
|
ref: c,
|
|
1558
|
-
rowInput:
|
|
1559
|
-
columnInput:
|
|
1558
|
+
rowInput: Bo(h),
|
|
1559
|
+
columnInput: Bo(p)
|
|
1560
1560
|
} : null;
|
|
1561
|
-
},
|
|
1561
|
+
}, Ho = /^(?:(\d{4})-(\d{2})-(\d{2}))?T?(?:(\d{2}):(\d{2})(?::(\d{2})(\.\d+)?)?)?(?:Z|[+-]\d{2}:?\d{2})?$/, Wo = /^PT(?:(\d+(?:\.\d+)?)H)?(?:(\d+(?:\.\d+)?)M)?(?:(\d+(?:\.\d+)?)S)?$/, zo = (t, e, o) => {
|
|
1562
1562
|
const s = Math.floor((14 - e) / 12), r = t + 4800 - s, n = e + 12 * s - 3;
|
|
1563
1563
|
return o + Math.floor((153 * n + 2) / 5) + 365 * r + Math.floor(r / 4) - Math.floor(r / 100) + Math.floor(r / 400) - 32045;
|
|
1564
|
-
},
|
|
1564
|
+
}, Xo = zo(1899, 12, 30), qo = (t) => {
|
|
1565
1565
|
const e = t.indexOf(":");
|
|
1566
1566
|
return -1 === e ? t : t.slice(e + 1);
|
|
1567
|
-
},
|
|
1567
|
+
}, Uo = class {
|
|
1568
1568
|
constructor() {
|
|
1569
1569
|
this._runs = null, this._text = "", this._font = null, this._inRun = !1, this._inRPr = !1;
|
|
1570
1570
|
}
|
|
@@ -1575,31 +1575,31 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1575
1575
|
"r" === t ? (this._inRun = !0, this._text = "", this._font = null, this._runs ??= []) : "rPr" === t ? this._inRun && (this._inRPr = !0) : this._inRPr && function(t, e, o) {
|
|
1576
1576
|
switch (t) {
|
|
1577
1577
|
case "b":
|
|
1578
|
-
o.weight =
|
|
1578
|
+
o.weight = Jo(e) ? 700 : 400;
|
|
1579
1579
|
break;
|
|
1580
1580
|
case "i":
|
|
1581
|
-
o.style =
|
|
1581
|
+
o.style = Jo(e) ? l.Style.Italic : l.Style.Normal;
|
|
1582
1582
|
break;
|
|
1583
1583
|
case "strike":
|
|
1584
|
-
o.strike =
|
|
1584
|
+
o.strike = Vt(Jo(e));
|
|
1585
1585
|
break;
|
|
1586
1586
|
case "outline":
|
|
1587
|
-
o.outline =
|
|
1587
|
+
o.outline = Jo(e);
|
|
1588
1588
|
break;
|
|
1589
1589
|
case "shadow":
|
|
1590
|
-
o.shadow =
|
|
1590
|
+
o.shadow = Jo(e);
|
|
1591
1591
|
break;
|
|
1592
1592
|
case "condense":
|
|
1593
1593
|
case "extend": {
|
|
1594
|
-
const s =
|
|
1594
|
+
const s = V(t, Jo(e));
|
|
1595
1595
|
void 0 !== s && (o.letterSpacing = s);
|
|
1596
1596
|
break;
|
|
1597
1597
|
}
|
|
1598
1598
|
case "u":
|
|
1599
|
-
o.underline =
|
|
1599
|
+
o.underline = Gt(e.val);
|
|
1600
1600
|
break;
|
|
1601
1601
|
case "vertAlign": {
|
|
1602
|
-
const t =
|
|
1602
|
+
const t = J(e.val);
|
|
1603
1603
|
void 0 !== t && (o.baseline = t);
|
|
1604
1604
|
break;
|
|
1605
1605
|
}
|
|
@@ -1614,7 +1614,7 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1614
1614
|
break;
|
|
1615
1615
|
}
|
|
1616
1616
|
case "family": {
|
|
1617
|
-
const t =
|
|
1617
|
+
const t = Ko[e.val ?? ""];
|
|
1618
1618
|
t && (o.fallbacks = [t]);
|
|
1619
1619
|
break;
|
|
1620
1620
|
}
|
|
@@ -1624,7 +1624,7 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1624
1624
|
break;
|
|
1625
1625
|
}
|
|
1626
1626
|
case "scheme":
|
|
1627
|
-
|
|
1627
|
+
Ft(o, e.val);
|
|
1628
1628
|
break;
|
|
1629
1629
|
case "color": {
|
|
1630
1630
|
const t = e.rgb;
|
|
@@ -1632,7 +1632,7 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1632
1632
|
o.color = "#" + (8 === t.length ? t.substring(2) : t).toUpperCase();
|
|
1633
1633
|
break;
|
|
1634
1634
|
}
|
|
1635
|
-
const s =
|
|
1635
|
+
const s = ft((t) => e[t]);
|
|
1636
1636
|
s && (o.color = s);
|
|
1637
1637
|
break;
|
|
1638
1638
|
}
|
|
@@ -1645,7 +1645,7 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1645
1645
|
onCloseTag(t) {
|
|
1646
1646
|
if ("rPr" === t) this._inRPr = !1, this._font ??= {};
|
|
1647
1647
|
else if ("r" === t && this._inRun) {
|
|
1648
|
-
const t =
|
|
1648
|
+
const t = W(this._text), e = this._font;
|
|
1649
1649
|
this._runs.push(e ? {
|
|
1650
1650
|
text: t,
|
|
1651
1651
|
font: e
|
|
@@ -1659,7 +1659,7 @@ var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1659
1659
|
return null;
|
|
1660
1660
|
}
|
|
1661
1661
|
};
|
|
1662
|
-
function
|
|
1662
|
+
function Go(t, e) {
|
|
1663
1663
|
const o = {
|
|
1664
1664
|
family: "Calibri",
|
|
1665
1665
|
size: 11,
|
|
@@ -1687,16 +1687,16 @@ function zo(t, e) {
|
|
|
1687
1687
|
}
|
|
1688
1688
|
return s;
|
|
1689
1689
|
}
|
|
1690
|
-
var
|
|
1690
|
+
var Ko = {
|
|
1691
1691
|
1: "serif",
|
|
1692
1692
|
2: "sans-serif",
|
|
1693
1693
|
3: "monospace",
|
|
1694
1694
|
4: "cursive",
|
|
1695
1695
|
5: "fantasy"
|
|
1696
|
-
},
|
|
1696
|
+
}, Jo = (t) => {
|
|
1697
1697
|
const e = t.val;
|
|
1698
1698
|
return void 0 === e || "1" === e || "true" === e;
|
|
1699
|
-
},
|
|
1699
|
+
}, Zo = (t) => {
|
|
1700
1700
|
const e = (e) => {
|
|
1701
1701
|
if (t) return new RegExp(`<(?:[\\w.-]+:)?${e}\\b[^>]*>([^<]*)<`).exec(t)?.[1];
|
|
1702
1702
|
}, o = (t) => {
|
|
@@ -1706,22 +1706,22 @@ var Xo = {
|
|
|
1706
1706
|
return {
|
|
1707
1707
|
c: o(e("col")),
|
|
1708
1708
|
r: o(e("row")),
|
|
1709
|
-
x:
|
|
1710
|
-
y:
|
|
1709
|
+
x: It(e("colOff") ?? "0") ?? 0,
|
|
1710
|
+
y: It(e("rowOff") ?? "0") ?? 0
|
|
1711
1711
|
};
|
|
1712
|
-
},
|
|
1713
|
-
const l = new
|
|
1714
|
-
const e = t.getAttribute("dxfId",
|
|
1712
|
+
}, Qo = "formulaDialect", Yo = "isKnownFunction", ts = "date1904", es = "richStrings", os = "defaultFont", ss = (t, e, o, s, r, n, i, a) => {
|
|
1713
|
+
const l = new Io(), c = (t) => {
|
|
1714
|
+
const e = t.getAttribute("dxfId", So);
|
|
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
|
-
let
|
|
1718
|
-
const
|
|
1719
|
-
let
|
|
1717
|
+
let u = !1;
|
|
1718
|
+
const h = a?.get("parseInlineDxf"), d = a?.get(Qo), f = (t) => d && t ? d.readDetached(t) : t, g = new b.TransposedBuilder();
|
|
1719
|
+
let m = null, T = "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 = v.fastStringToRange(e);
|
|
1725
1725
|
t.getSource().r = o, t.getSource().v = {};
|
|
1726
1726
|
},
|
|
1727
1727
|
closeTag: (t) => {
|
|
@@ -1742,7 +1742,7 @@ var Xo = {
|
|
|
1742
1742
|
const s = {
|
|
1743
1743
|
r: o,
|
|
1744
1744
|
conditionals: e.conditionals
|
|
1745
|
-
}, r = t.getAttribute("pivot",
|
|
1745
|
+
}, r = t.getAttribute("pivot", To);
|
|
1746
1746
|
null !== r && (s.pivot = r), t.setSource(s);
|
|
1747
1747
|
}
|
|
1748
1748
|
}), l.registerVisitor({
|
|
@@ -1756,20 +1756,20 @@ var Xo = {
|
|
|
1756
1756
|
r: e.r,
|
|
1757
1757
|
v: null,
|
|
1758
1758
|
rule: o
|
|
1759
|
-
}), t.copyToObject(o, "type",
|
|
1760
|
-
const r = t.getAttribute("dxfId",
|
|
1759
|
+
}), t.copyToObject(o, "type", Ao), t.copyToObject(o, "priority", So), t.copyToObject(o, "stopIfTrue", To);
|
|
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",
|
|
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", Ao), t.copyToObject(o, "text", Ao), t.copyToObject(o, "timePeriod", Ao);
|
|
1766
1766
|
},
|
|
1767
1767
|
closeTag: (t) => {
|
|
1768
1768
|
const e = t.getParent();
|
|
1769
1769
|
if (!e?.r) return;
|
|
1770
1770
|
const o = e.conditionals[e.conditionals.length - 1], s = o?.rule;
|
|
1771
1771
|
if (!s) return;
|
|
1772
|
-
const r = {}, i =
|
|
1772
|
+
const r = {}, i = Qt(s, n);
|
|
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
|
});
|
|
@@ -1789,7 +1789,7 @@ var Xo = {
|
|
|
1789
1789
|
const e = t.getSource(), o = e.colors ?? [], s = S(e);
|
|
1790
1790
|
for (let t = 0; t < s.length; t++) s[t].color = o[t];
|
|
1791
1791
|
t.getParent().scale = {
|
|
1792
|
-
type:
|
|
1792
|
+
type: y.ScaleType.ColorScale,
|
|
1793
1793
|
stops: s
|
|
1794
1794
|
};
|
|
1795
1795
|
}
|
|
@@ -1797,11 +1797,11 @@ var Xo = {
|
|
|
1797
1797
|
from: "dataBar",
|
|
1798
1798
|
to: {},
|
|
1799
1799
|
openTag: (t) => {
|
|
1800
|
-
t.copyTo("maxLength",
|
|
1800
|
+
t.copyTo("maxLength", So), t.copyTo("minLength", So), t.copyTo("showValue", To);
|
|
1801
1801
|
},
|
|
1802
1802
|
closeTag: (t) => {
|
|
1803
1803
|
const e = t.getSource(), o = {
|
|
1804
|
-
type:
|
|
1804
|
+
type: y.ScaleType.DataBar,
|
|
1805
1805
|
stops: S(e)
|
|
1806
1806
|
}, s = e.colors?.[0];
|
|
1807
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;
|
|
@@ -1810,11 +1810,11 @@ var Xo = {
|
|
|
1810
1810
|
from: "iconSet",
|
|
1811
1811
|
to: {},
|
|
1812
1812
|
openTag: (t) => {
|
|
1813
|
-
t.copyTo("iconSet",
|
|
1813
|
+
t.copyTo("iconSet", Ao), t.copyTo("reverse", To), t.copyTo("showValue", To);
|
|
1814
1814
|
},
|
|
1815
1815
|
closeTag: (t) => {
|
|
1816
1816
|
const e = t.getSource(), o = {
|
|
1817
|
-
type:
|
|
1817
|
+
type: y.ScaleType.IconSet,
|
|
1818
1818
|
stops: S(e)
|
|
1819
1819
|
};
|
|
1820
1820
|
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;
|
|
@@ -1834,11 +1834,11 @@ var Xo = {
|
|
|
1834
1834
|
const e = t.getParent();
|
|
1835
1835
|
e.conditions || (e.conditions = []);
|
|
1836
1836
|
const o = t.getSource();
|
|
1837
|
-
if (e.conditions.push(o), t.copyTo("type",
|
|
1837
|
+
if (e.conditions.push(o), t.copyTo("type", Ao), o.type === y.ColorStopType.Formula) {
|
|
1838
1838
|
const e = t.getAttribute("val");
|
|
1839
1839
|
null != e && (o.value = f(String(e)));
|
|
1840
|
-
} else t.copyTo("value",
|
|
1841
|
-
!1 === t.getAttribute("gte",
|
|
1840
|
+
} else t.copyTo("value", ko, "val");
|
|
1841
|
+
!1 === t.getAttribute("gte", To) && (o.exclusive = !0);
|
|
1842
1842
|
}
|
|
1843
1843
|
}), l.registerVisitor({
|
|
1844
1844
|
from: "color",
|
|
@@ -1846,7 +1846,7 @@ var Xo = {
|
|
|
1846
1846
|
openTag: (t) => {
|
|
1847
1847
|
const e = t.getParent();
|
|
1848
1848
|
e.colors || (e.colors = []);
|
|
1849
|
-
const o =
|
|
1849
|
+
const o = ft((e) => t.getAttribute(e));
|
|
1850
1850
|
e.colors.push(o);
|
|
1851
1851
|
}
|
|
1852
1852
|
}), l.registerVisitor({
|
|
@@ -1858,11 +1858,11 @@ var Xo = {
|
|
|
1858
1858
|
let r = e.filter;
|
|
1859
1859
|
r || (r = { conditions: [] }, e.filter = r);
|
|
1860
1860
|
let n = r.conditions;
|
|
1861
|
-
if (n || (n = [], r.conditions = n), n.push(s), t.getAttribute("hiddenButton",
|
|
1861
|
+
if (n || (n = [], r.conditions = n), n.push(s), t.getAttribute("hiddenButton", To) && e) {
|
|
1862
1862
|
let t = e.hiddenButtons;
|
|
1863
1863
|
t || (t = [], e.hiddenButtons = t), t.push(o);
|
|
1864
1864
|
}
|
|
1865
|
-
if (t.getAttribute("showButton",
|
|
1865
|
+
if (t.getAttribute("showButton", To) && e) {
|
|
1866
1866
|
let t = e.showButtons;
|
|
1867
1867
|
t || (t = [], e.showButtons = t), t.push(o);
|
|
1868
1868
|
}
|
|
@@ -1872,7 +1872,7 @@ var Xo = {
|
|
|
1872
1872
|
from: "colorFilter",
|
|
1873
1873
|
openTag: (t) => {
|
|
1874
1874
|
const e = t.getParent(), o = {};
|
|
1875
|
-
e.operator =
|
|
1875
|
+
e.operator = w.BuiltInOperatorNames.Color, e.param = o, t.copyToObject(o, "cellColor", To);
|
|
1876
1876
|
const s = c(t);
|
|
1877
1877
|
s && (o.style = s);
|
|
1878
1878
|
}
|
|
@@ -1880,63 +1880,63 @@ var Xo = {
|
|
|
1880
1880
|
from: "iconFilter",
|
|
1881
1881
|
openTag: (t) => {
|
|
1882
1882
|
const e = t.getParent(), o = {};
|
|
1883
|
-
e.operator =
|
|
1883
|
+
e.operator = w.BuiltInOperatorNames.Icon, e.param = o, t.copyToObject(o, "iconId", So), t.copyToObject(o, "iconSet", Ao);
|
|
1884
1884
|
}
|
|
1885
1885
|
}), l.registerVisitor({
|
|
1886
1886
|
from: "top10",
|
|
1887
1887
|
openTag: (t) => {
|
|
1888
1888
|
const e = t.getParent(), o = {};
|
|
1889
|
-
e.operator =
|
|
1889
|
+
e.operator = w.BuiltInOperatorNames.TopN, e.param = o, t.copyToObject(o, "filterVal", ko), t.copyToObject(o, "percent", To), t.copyToObject(o, "top", To), t.copyToObject(o, "limit", ko, "val");
|
|
1890
1890
|
}
|
|
1891
1891
|
}), l.registerVisitor({
|
|
1892
1892
|
from: "dynamicFilter",
|
|
1893
1893
|
openTag: (t) => {
|
|
1894
|
-
const e = t.getParent(), o =
|
|
1894
|
+
const e = t.getParent(), o = wt(t.getAttribute("type"), t.getAttribute("val"), t.getAttribute("maxVal"));
|
|
1895
1895
|
e.operator = o.operator, e.param = o.param;
|
|
1896
1896
|
}
|
|
1897
1897
|
});
|
|
1898
|
-
const
|
|
1898
|
+
const k = {
|
|
1899
1899
|
from: "filters",
|
|
1900
1900
|
to: {},
|
|
1901
1901
|
openTag: (t) => {
|
|
1902
1902
|
const e = t.getParent(), o = {};
|
|
1903
|
-
return e.selector =
|
|
1903
|
+
return e.selector = w.BuiltInSelectorNames.Display, e.operator = w.BuiltInOperatorNames.InSet, e.param = o, t.copyToObject(o, "blank", To), t.copyToObject(o, "calendarType", Ao), o;
|
|
1904
1904
|
}
|
|
1905
1905
|
};
|
|
1906
|
-
l.registerVisitor(
|
|
1906
|
+
l.registerVisitor(k);
|
|
1907
1907
|
const A = {
|
|
1908
1908
|
from: "filter",
|
|
1909
1909
|
openTag: (t) => {
|
|
1910
1910
|
const e = t.getParent();
|
|
1911
1911
|
let o = e.items;
|
|
1912
|
-
o || (o = [], e.items = o), o.push(t.getAttribute("val",
|
|
1912
|
+
o || (o = [], e.items = o), o.push(t.getAttribute("val", Ao));
|
|
1913
1913
|
}
|
|
1914
1914
|
};
|
|
1915
1915
|
l.registerVisitor(A);
|
|
1916
|
-
const
|
|
1916
|
+
const C = {
|
|
1917
1917
|
from: "dateGroupItem",
|
|
1918
1918
|
to: {},
|
|
1919
1919
|
openTag: (t) => {
|
|
1920
1920
|
const e = t.getParent();
|
|
1921
1921
|
let o = e.dateGroups;
|
|
1922
|
-
o || (o = [], e.dateGroups = o), o.push(t.getSource()), t.copyTo("group",
|
|
1922
|
+
o || (o = [], e.dateGroups = o), o.push(t.getSource()), t.copyTo("group", Ao, "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
1923
|
}
|
|
1924
1924
|
};
|
|
1925
|
-
l.registerVisitor(
|
|
1925
|
+
l.registerVisitor(C);
|
|
1926
1926
|
const E = /* @__PURE__ */ new Map();
|
|
1927
1927
|
E.set("filterColumn", {
|
|
1928
1928
|
from: "filterColumn",
|
|
1929
1929
|
transparent: !0
|
|
1930
|
-
}), E.set("filters",
|
|
1930
|
+
}), E.set("filters", k), E.set("filter", A), E.set("dateGroupItem", C), l.registerVisitor({
|
|
1931
1931
|
from: "customFilters",
|
|
1932
1932
|
openTag: (t) => {
|
|
1933
1933
|
const e = t.getParent(), o = t.getAttribute("and"), s = "and" === o || "1" === o, r = [];
|
|
1934
|
-
return e.operator = s ?
|
|
1934
|
+
return e.operator = s ? w.BuiltInOperatorNames.And : w.BuiltInOperatorNames.Or, e.param = r, t.setSource(e), r;
|
|
1935
1935
|
},
|
|
1936
1936
|
closeTag: (t) => {
|
|
1937
1937
|
const e = t.getSource(), o = e?.param;
|
|
1938
1938
|
if (!e || !o) return;
|
|
1939
|
-
const s = 1 === o.length ? o[0] :
|
|
1939
|
+
const s = 1 === o.length ? o[0] : q(e);
|
|
1940
1940
|
s !== e && (e.operator = s.operator, e.param = s.param);
|
|
1941
1941
|
}
|
|
1942
1942
|
}), l.registerVisitor({
|
|
@@ -1945,7 +1945,7 @@ var Xo = {
|
|
|
1945
1945
|
const e = t.getParent();
|
|
1946
1946
|
let o;
|
|
1947
1947
|
Array.isArray(e) ? (o = {}, e.push(o)) : o = e;
|
|
1948
|
-
const s =
|
|
1948
|
+
const s = Mt({
|
|
1949
1949
|
operator: t.getAttribute("operator"),
|
|
1950
1950
|
val: t.getAttribute("val")
|
|
1951
1951
|
}, (e) => t.warn(e));
|
|
@@ -1962,15 +1962,15 @@ var Xo = {
|
|
|
1962
1962
|
if (!o) return;
|
|
1963
1963
|
const s = {};
|
|
1964
1964
|
I = {};
|
|
1965
|
-
const r = t.getAttribute("caseSensitive",
|
|
1966
|
-
null != r && (I.collatorOptions = r ?
|
|
1965
|
+
const r = t.getAttribute("caseSensitive", To);
|
|
1966
|
+
null != r && (I.collatorOptions = r ? x.CaseSensitiveOptions : x.CaseInsensitiveOptions);
|
|
1967
1967
|
const n = t.getAttribute("sortMethod");
|
|
1968
1968
|
"stroke" !== n && "pinYin" !== n || (I.collatorOptions = {
|
|
1969
1969
|
...I.collatorOptions,
|
|
1970
1970
|
collation: "stroke" === n ? "stroke" : "pinyin"
|
|
1971
|
-
}), t.getAttribute("columnSort",
|
|
1971
|
+
}), t.getAttribute("columnSort", To) && (s.axis = p.Axis.Column);
|
|
1972
1972
|
const i = t.getAttribute("ref"), a = e.r;
|
|
1973
|
-
P = i && a ?
|
|
1973
|
+
P = i && a ? v.fastStringToRange(i) : null, P && (s.extent = { range: Lt(a, P) }), o.sort = s, t.setSource(e);
|
|
1974
1974
|
}
|
|
1975
1975
|
}), l.registerVisitor({
|
|
1976
1976
|
from: "sortCondition",
|
|
@@ -1985,14 +1985,14 @@ var Xo = {
|
|
|
1985
1985
|
const n = t.getAttribute("ref");
|
|
1986
1986
|
let i = 0, a = null;
|
|
1987
1987
|
if (n) {
|
|
1988
|
-
const t =
|
|
1989
|
-
i = s ? o - r : o, s && P && (a =
|
|
1988
|
+
const t = v.fastStringToRange(n, as), o = t.colStart, s = e.r, r = s.colStart;
|
|
1989
|
+
i = s ? o - r : o, s && P && (a = _t(s, P, t));
|
|
1990
1990
|
}
|
|
1991
1991
|
s.extent && (s.extent.sorts ??= []).push(a);
|
|
1992
|
-
const l = { ...I },
|
|
1993
|
-
|
|
1994
|
-
const
|
|
1995
|
-
|
|
1992
|
+
const l = { ...I }, u = qt(t.getAttribute("sortBy"));
|
|
1993
|
+
u && (l.sortOn = u);
|
|
1994
|
+
const h = c(t);
|
|
1995
|
+
h && (l.style = h), t.copyToObject(l, "iconSet", Ao), t.copyToObject(l, "customList", Ao), l.reverse = t.getAttribute("descending", To) ?? !1;
|
|
1996
1996
|
const d = {
|
|
1997
1997
|
index: i,
|
|
1998
1998
|
criteria: l
|
|
@@ -2001,15 +2001,15 @@ var Xo = {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
});
|
|
2003
2003
|
const O = (t) => {
|
|
2004
|
-
|
|
2005
|
-
const e =
|
|
2006
|
-
null === o || e || (t.getSource().gridLineColor = "index" + parseFloat(o)), t.copyTo("showZeros",
|
|
2004
|
+
m = t.getSource(), T = "topLeft", t.copyTo("topLeft", Ao, "topLeftCell");
|
|
2005
|
+
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", Ao, "view");
|
|
2007
2007
|
const s = {};
|
|
2008
|
-
for (const [e, o] of
|
|
2009
|
-
const r = t.getAttribute(o,
|
|
2008
|
+
for (const [e, o] of Yt) {
|
|
2009
|
+
const r = t.getAttribute(o, So);
|
|
2010
2010
|
r && (s[e] = Math.min(400, Math.max(10, r)));
|
|
2011
2011
|
}
|
|
2012
|
-
Object.keys(s).length > 0 && (t.getSource().zoomScales = s), t.copyTo("showRuler",
|
|
2012
|
+
Object.keys(s).length > 0 && (t.getSource().zoomScales = s), t.copyTo("showRuler", To), t.copyTo("showWhitespace", To, "showWhiteSpace"), t.copyTo("windowProtection", To), t.copyTo("showRowHeaders", To, "showRowColHeaders"), t.copyTo("showColumnHeaders", To, "showRowColHeaders"), t.copyTo("showRowGridlines", To, "showGridLines"), t.copyTo("showColumnGridlines", To, "showGridLines"), t.copyTo("rightToLeft", To), t.copyTo("showOutlineSymbols", To);
|
|
2013
2013
|
};
|
|
2014
2014
|
l.registerVisitor({
|
|
2015
2015
|
from: "sheetView",
|
|
@@ -2018,7 +2018,7 @@ var Xo = {
|
|
|
2018
2018
|
O(t);
|
|
2019
2019
|
},
|
|
2020
2020
|
closeTag: () => {
|
|
2021
|
-
|
|
2021
|
+
m = null;
|
|
2022
2022
|
}
|
|
2023
2023
|
}), l.registerVisitor({
|
|
2024
2024
|
from: "customSheetViews",
|
|
@@ -2033,16 +2033,16 @@ var Xo = {
|
|
|
2033
2033
|
D = !0, O(t);
|
|
2034
2034
|
},
|
|
2035
2035
|
closeTag: () => {
|
|
2036
|
-
D = !1,
|
|
2036
|
+
D = !1, m = null;
|
|
2037
2037
|
}
|
|
2038
2038
|
}), l.registerVisitor({
|
|
2039
2039
|
from: "selection",
|
|
2040
2040
|
to: null,
|
|
2041
2041
|
openTag: (t) => {
|
|
2042
|
-
if (!
|
|
2042
|
+
if (!m) return;
|
|
2043
2043
|
const e = t.getAttribute("activeCell")?.replace(/\$/g, ""), o = t.getAttribute("sqref")?.replace(/\$/g, ""), s = t.getAttribute("pane") ?? "topLeft";
|
|
2044
|
-
if (s !==
|
|
2045
|
-
const t =
|
|
2044
|
+
if (s !== T) {
|
|
2045
|
+
const t = m.freezePanes;
|
|
2046
2046
|
if (t && e) {
|
|
2047
2047
|
const r = { activeCell: e };
|
|
2048
2048
|
o && o !== e && (r.sqref = o), (t.paneSelections ??= {})[s] = r;
|
|
@@ -2051,32 +2051,32 @@ var Xo = {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
const r = {};
|
|
2053
2053
|
e && (r.cell = e);
|
|
2054
|
-
const n = t.getAttribute("activeCellId",
|
|
2055
|
-
null !== n && (r.rangeIndex = n), o && o !== e && (r.ranges = o.trim().split(/\s+/)),
|
|
2054
|
+
const n = t.getAttribute("activeCellId", So);
|
|
2055
|
+
null !== n && (r.rangeIndex = n), o && o !== e && (r.ranges = o.trim().split(/\s+/)), m.selection = r;
|
|
2056
2056
|
}
|
|
2057
2057
|
}), l.registerVisitor({
|
|
2058
2058
|
from: "pane",
|
|
2059
2059
|
to: null,
|
|
2060
2060
|
openTag: (t) => {
|
|
2061
|
-
if (!
|
|
2062
|
-
|
|
2061
|
+
if (!m) return;
|
|
2062
|
+
T = t.getAttribute("activePane") ?? "topLeft";
|
|
2063
2063
|
const e = t.getAttribute("state");
|
|
2064
2064
|
if ("frozen" === e || "frozenSplit" === e) {
|
|
2065
2065
|
const e = {};
|
|
2066
|
-
|
|
2067
|
-
const o = (
|
|
2066
|
+
m.freezePanes = e, t.copyToObject(e, "topLeft", Ao, "topLeftCell");
|
|
2067
|
+
const o = (m.topLeft ? v.fastStringToCell(m.topLeft) : void 0) ?? {
|
|
2068
2068
|
colIndex: 0,
|
|
2069
2069
|
rowIndex: 0
|
|
2070
2070
|
}, s = {
|
|
2071
2071
|
colIndex: 0,
|
|
2072
2072
|
rowIndex: 0
|
|
2073
2073
|
};
|
|
2074
|
-
t.copyToObject(s, "colIndex",
|
|
2074
|
+
t.copyToObject(s, "colIndex", So, "xSplit"), t.copyToObject(s, "rowIndex", So, "ySplit");
|
|
2075
2075
|
const r = {
|
|
2076
2076
|
colIndex: o.colIndex + s.colIndex,
|
|
2077
2077
|
rowIndex: o.rowIndex + s.rowIndex
|
|
2078
2078
|
};
|
|
2079
|
-
e.coords =
|
|
2079
|
+
e.coords = v.cellToString(r);
|
|
2080
2080
|
}
|
|
2081
2081
|
}
|
|
2082
2082
|
}), l.registerVisitor({
|
|
@@ -2084,9 +2084,9 @@ var Xo = {
|
|
|
2084
2084
|
transparent: !0,
|
|
2085
2085
|
openTag: (e) => {
|
|
2086
2086
|
const o = e.getAttribute("codeName");
|
|
2087
|
-
o && (t.codeName = o), !1 === e.getAttribute("enableFormatConditionsCalculation",
|
|
2087
|
+
o && (t.codeName = o), !1 === e.getAttribute("enableFormatConditionsCalculation", To) && (t.conditionalFormatCalculation = !1), !0 === e.getAttribute("transitionEvaluation", To) && (t.transitionFormulaEvaluation = !0), !0 === e.getAttribute("transitionEntry", To) && (t.transitionFormulaEntry = !0), !1 === e.getAttribute("published", To) && (t.excludeFromPublishing = !0);
|
|
2088
2088
|
const s = {};
|
|
2089
|
-
!0 === e.getAttribute("syncHorizontal",
|
|
2089
|
+
!0 === e.getAttribute("syncHorizontal", To) && (s.horizontal = !0), !0 === e.getAttribute("syncVertical", To) && (s.vertical = !0);
|
|
2090
2090
|
const r = e.getAttribute("syncRef");
|
|
2091
2091
|
r && (s.anchor = r), Object.keys(s).length > 0 && (t.syncScroll = s);
|
|
2092
2092
|
}
|
|
@@ -2094,7 +2094,7 @@ var Xo = {
|
|
|
2094
2094
|
from: "tabColor",
|
|
2095
2095
|
to: null,
|
|
2096
2096
|
openTag: (e) => {
|
|
2097
|
-
const o =
|
|
2097
|
+
const o = ft((t) => e.getAttribute(t));
|
|
2098
2098
|
o && (t.tabColor = o);
|
|
2099
2099
|
}
|
|
2100
2100
|
});
|
|
@@ -2104,7 +2104,7 @@ var Xo = {
|
|
|
2104
2104
|
from: "pageSetUpPr",
|
|
2105
2105
|
to: null,
|
|
2106
2106
|
openTag: (t) => {
|
|
2107
|
-
!0 === t.getAttribute("fitToPage",
|
|
2107
|
+
!0 === t.getAttribute("fitToPage", To) && (N().fitToPage = !0), !1 === t.getAttribute("autoPageBreaks", To) && (N().hideAutoPageBreaks = !0);
|
|
2108
2108
|
}
|
|
2109
2109
|
}), l.registerVisitor({
|
|
2110
2110
|
from: "outlinePr",
|
|
@@ -2124,7 +2124,7 @@ var Xo = {
|
|
|
2124
2124
|
to: null,
|
|
2125
2125
|
openTag: (t) => {
|
|
2126
2126
|
if (D) return;
|
|
2127
|
-
const e = (e, o) => t.getAttribute(e,
|
|
2127
|
+
const e = (e, o) => t.getAttribute(e, ko) ?? o, o = {
|
|
2128
2128
|
left: e("left", .7),
|
|
2129
2129
|
right: e("right", .7),
|
|
2130
2130
|
top: e("top", .75),
|
|
@@ -2139,7 +2139,7 @@ var Xo = {
|
|
|
2139
2139
|
to: null,
|
|
2140
2140
|
openTag: (t) => {
|
|
2141
2141
|
if (D) return;
|
|
2142
|
-
const o = N(), s = (e) => t.getAttribute(e,
|
|
2142
|
+
const o = N(), s = (e) => t.getAttribute(e, So) ?? void 0, r = (e) => t.getAttribute(e, To), n = t.getAttribute("orientation");
|
|
2143
2143
|
"landscape" !== n && "portrait" !== n || (o.orientation = n);
|
|
2144
2144
|
for (const t of [
|
|
2145
2145
|
"paperSize",
|
|
@@ -2158,10 +2158,10 @@ var Xo = {
|
|
|
2158
2158
|
i && (o.paperHeight = i);
|
|
2159
2159
|
const a = t.getAttribute("paperWidth");
|
|
2160
2160
|
a && (o.paperWidth = a), "overThenDown" === t.getAttribute("pageOrder") && (o.printOrder = "overThenDown"), !0 === r("blackAndWhite") && (o.blackAndWhite = !0), !0 === r("draft") && (o.draftMode = !0), !0 === r("useFirstPageNumber") && (o.useFirstPageNumber = !0), !1 === r("usePrinterDefaults") && (o.ignorePrinterDefaults = !0);
|
|
2161
|
-
const l = t.getAttribute("cellComments"), c =
|
|
2161
|
+
const l = t.getAttribute("cellComments"), c = rt.find(([t]) => t === l)?.[1];
|
|
2162
2162
|
c && (o.printComments = c);
|
|
2163
|
-
const
|
|
2164
|
-
|
|
2163
|
+
const u = t.getAttribute("errors"), h = Y.find(([t]) => t === u)?.[1];
|
|
2164
|
+
h && (o.printErrors = h);
|
|
2165
2165
|
const d = t.getAttribute("r:id"), p = d ? e(d, "part") : null;
|
|
2166
2166
|
p && (o.printerSettings = p);
|
|
2167
2167
|
}
|
|
@@ -2170,7 +2170,7 @@ var Xo = {
|
|
|
2170
2170
|
to: null,
|
|
2171
2171
|
openTag: (t) => {
|
|
2172
2172
|
if (D) return;
|
|
2173
|
-
const e = (e) => !0 === t.getAttribute(e,
|
|
2173
|
+
const e = (e) => !0 === t.getAttribute(e, To);
|
|
2174
2174
|
e("horizontalCentered") && (N().centerHorizontally = !0), e("verticalCentered") && (N().centerVertically = !0), e("gridLines") && (N().printGridlines = !0), e("headings") && (N().printHeadings = !0);
|
|
2175
2175
|
}
|
|
2176
2176
|
}), l.registerVisitor({
|
|
@@ -2178,17 +2178,17 @@ var Xo = {
|
|
|
2178
2178
|
to: {},
|
|
2179
2179
|
openTag: (t) => {
|
|
2180
2180
|
if (D) return;
|
|
2181
|
-
const e = {}, o = (e) => t.getAttribute(e,
|
|
2181
|
+
const e = {}, o = (e) => t.getAttribute(e, To);
|
|
2182
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 && (N().headerFooter = e);
|
|
2183
2183
|
}
|
|
2184
2184
|
});
|
|
2185
|
-
for (const t of
|
|
2185
|
+
for (const t of et) l.registerVisitor({
|
|
2186
2186
|
from: t,
|
|
2187
2187
|
to: {},
|
|
2188
2188
|
text: (e, o) => {
|
|
2189
2189
|
if (D) return;
|
|
2190
2190
|
const s = N(), r = s.headerFooter ??= {};
|
|
2191
|
-
r[t] = (r[t] ?? "") +
|
|
2191
|
+
r[t] = (r[t] ?? "") + W(e);
|
|
2192
2192
|
}
|
|
2193
2193
|
});
|
|
2194
2194
|
let _ = "rowBreaks";
|
|
@@ -2204,12 +2204,12 @@ var Xo = {
|
|
|
2204
2204
|
to: null,
|
|
2205
2205
|
openTag: (t) => {
|
|
2206
2206
|
if (D) return;
|
|
2207
|
-
const e = t.getAttribute("id",
|
|
2207
|
+
const e = t.getAttribute("id", So);
|
|
2208
2208
|
if (null == e) return;
|
|
2209
|
-
const o = { index: e }, s = t.getAttribute("min",
|
|
2209
|
+
const o = { index: e }, s = t.getAttribute("min", So);
|
|
2210
2210
|
null != s && (o.min = s);
|
|
2211
|
-
const r = t.getAttribute("max",
|
|
2212
|
-
null != r && (o.max = r), !0 !== t.getAttribute("man",
|
|
2211
|
+
const r = t.getAttribute("max", So);
|
|
2212
|
+
null != r && (o.max = r), !0 !== t.getAttribute("man", To) && (o.automatic = !0), !0 === t.getAttribute("pt", To) && (o.pivot = !0);
|
|
2213
2213
|
const n = N();
|
|
2214
2214
|
(n[_] ??= []).push(o);
|
|
2215
2215
|
}
|
|
@@ -2223,7 +2223,7 @@ var Xo = {
|
|
|
2223
2223
|
const o = e.getAttribute("sqref");
|
|
2224
2224
|
if (!o) return;
|
|
2225
2225
|
const s = [];
|
|
2226
|
-
for (const t of
|
|
2226
|
+
for (const t of B) !0 === e.getAttribute(t, To) && s.push(t);
|
|
2227
2227
|
if (0 !== s.length) for (const e of o.trim().split(/\s+/)) (t.ignoredErrors ??= []).push({
|
|
2228
2228
|
r: e,
|
|
2229
2229
|
v: s
|
|
@@ -2241,17 +2241,17 @@ var Xo = {
|
|
|
2241
2241
|
openTag: (e) => {
|
|
2242
2242
|
e.setSource([]);
|
|
2243
2243
|
const o = {};
|
|
2244
|
-
!0 === e.getAttribute("disablePrompts",
|
|
2245
|
-
const s = e.getAttribute("xWindow",
|
|
2244
|
+
!0 === e.getAttribute("disablePrompts", To) && (o.disablePrompts = !0);
|
|
2245
|
+
const s = e.getAttribute("xWindow", So);
|
|
2246
2246
|
null !== s && (o.windowX = s);
|
|
2247
|
-
const r = e.getAttribute("yWindow",
|
|
2247
|
+
const r = e.getAttribute("yWindow", So);
|
|
2248
2248
|
null !== r && (o.windowY = r), Object.keys(o).length > 0 && (t.validationSettings = {
|
|
2249
2249
|
...t.validationSettings,
|
|
2250
2250
|
...o
|
|
2251
2251
|
});
|
|
2252
2252
|
}
|
|
2253
2253
|
});
|
|
2254
|
-
const
|
|
2254
|
+
const M = {
|
|
2255
2255
|
from: "dataValidation",
|
|
2256
2256
|
to: [],
|
|
2257
2257
|
openTag: (t) => {
|
|
@@ -2265,28 +2265,28 @@ var Xo = {
|
|
|
2265
2265
|
operator: t.getAttribute("operator") ?? void 0
|
|
2266
2266
|
}
|
|
2267
2267
|
};
|
|
2268
|
-
!0 === t.getAttribute("showDropDown",
|
|
2268
|
+
!0 === t.getAttribute("showDropDown", To) && (o.hideDropdown = !0), t.copyToObject(o, "alert", Ao, "error"), t.copyToObject(o, "alertTitle", Ao, "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
2269
|
},
|
|
2270
2270
|
closeTag: (t) => {
|
|
2271
2271
|
const e = t.getSource();
|
|
2272
2272
|
if (!e?.rule) return;
|
|
2273
|
-
const o =
|
|
2274
|
-
o && (t.getAttribute("allowBlank",
|
|
2273
|
+
const o = ot(e.rule, n);
|
|
2274
|
+
o && (t.getAttribute("allowBlank", To) && (o.includeBlanks = !0), e.v.condition = o), delete e.rule;
|
|
2275
2275
|
}
|
|
2276
2276
|
};
|
|
2277
|
-
l.registerVisitor(
|
|
2277
|
+
l.registerVisitor(M), l.registerVisitor({
|
|
2278
2278
|
from: "formula1",
|
|
2279
2279
|
to: {},
|
|
2280
2280
|
text: (t, e) => {
|
|
2281
2281
|
const o = e.getParent().rule;
|
|
2282
|
-
o?.type && (o.formula1 =
|
|
2282
|
+
o?.type && (o.formula1 = oe(f(t), o.type));
|
|
2283
2283
|
}
|
|
2284
2284
|
}), l.registerVisitor({
|
|
2285
2285
|
from: "formula2",
|
|
2286
2286
|
to: {},
|
|
2287
2287
|
text: (t, e) => {
|
|
2288
2288
|
const o = e.getParent().rule;
|
|
2289
|
-
o?.type && (o.formula2 =
|
|
2289
|
+
o?.type && (o.formula2 = oe(f(t), o.type));
|
|
2290
2290
|
}
|
|
2291
2291
|
}), l.registerVisitor({
|
|
2292
2292
|
from: "picture",
|
|
@@ -2298,7 +2298,7 @@ var Xo = {
|
|
|
2298
2298
|
t.getSource().resId = s;
|
|
2299
2299
|
}
|
|
2300
2300
|
});
|
|
2301
|
-
const
|
|
2301
|
+
const R = {
|
|
2302
2302
|
from: "slicer",
|
|
2303
2303
|
to: {},
|
|
2304
2304
|
openTag: (t) => {
|
|
@@ -2310,8 +2310,8 @@ var Xo = {
|
|
|
2310
2310
|
for (const t of n) r.slicers[t] = s[t];
|
|
2311
2311
|
}
|
|
2312
2312
|
};
|
|
2313
|
-
l.registerVisitor(
|
|
2314
|
-
const
|
|
2313
|
+
l.registerVisitor(R);
|
|
2314
|
+
const V = {
|
|
2315
2315
|
from: "timelineRef",
|
|
2316
2316
|
to: {},
|
|
2317
2317
|
openTag: (t) => {
|
|
@@ -2333,8 +2333,8 @@ var Xo = {
|
|
|
2333
2333
|
closeTag: (t) => {
|
|
2334
2334
|
e(String(t.getSource() ?? ""), t);
|
|
2335
2335
|
}
|
|
2336
|
-
}),
|
|
2337
|
-
|
|
2336
|
+
}), F = /* @__PURE__ */ new Map();
|
|
2337
|
+
F.set("dataValidations", {
|
|
2338
2338
|
from: "dataValidations",
|
|
2339
2339
|
to: "validations",
|
|
2340
2340
|
openTag: (t) => {
|
|
@@ -2344,10 +2344,10 @@ var Xo = {
|
|
|
2344
2344
|
closeTag: (t) => {
|
|
2345
2345
|
0 === (t.getSource()?.length ?? 0) && t.setSource(void 0);
|
|
2346
2346
|
}
|
|
2347
|
-
}),
|
|
2348
|
-
|
|
2347
|
+
}), F.set("dataValidation", {
|
|
2348
|
+
...M,
|
|
2349
2349
|
closeTag: (t) => {
|
|
2350
|
-
|
|
2350
|
+
M.closeTag(t);
|
|
2351
2351
|
const e = t.getSource();
|
|
2352
2352
|
e && !e.r && (t.warn("x14 dataValidation with no xm:sqref was dropped."), t.setSource(void 0));
|
|
2353
2353
|
}
|
|
@@ -2362,18 +2362,18 @@ var Xo = {
|
|
|
2362
2362
|
});
|
|
2363
2363
|
}
|
|
2364
2364
|
});
|
|
2365
|
-
|
|
2365
|
+
F.set("formula1", H("formula1")), F.set("formula2", H("formula2")), F.set("f", j("f", (t, e) => {
|
|
2366
2366
|
const o = e.getParent(), s = o?.rule;
|
|
2367
|
-
s && (s[o.key] =
|
|
2368
|
-
})),
|
|
2367
|
+
s && (s[o.key] = oe(f(t), s.type));
|
|
2368
|
+
})), F.set("sqref", j("sqref", (t, e) => {
|
|
2369
2369
|
const o = e.getParent(), s = t.trim();
|
|
2370
2370
|
o && s && (o.r = s.split(/\s+/).join(","));
|
|
2371
2371
|
}));
|
|
2372
|
-
const
|
|
2373
|
-
|
|
2372
|
+
const z = /* @__PURE__ */ new Map(), X = [], G = /* @__PURE__ */ new Map();
|
|
2373
|
+
G.set("conditionalFormattings", {
|
|
2374
2374
|
from: "conditionalFormattings",
|
|
2375
2375
|
transparent: !0
|
|
2376
|
-
}),
|
|
2376
|
+
}), G.set("conditionalFormatting", {
|
|
2377
2377
|
from: "conditionalFormatting",
|
|
2378
2378
|
to: {},
|
|
2379
2379
|
openTag: (t) => {
|
|
@@ -2383,85 +2383,85 @@ var Xo = {
|
|
|
2383
2383
|
const e = t.getSource(), o = e?.rules ?? [];
|
|
2384
2384
|
for (let t = 0; t < o.length; t++) {
|
|
2385
2385
|
const s = o[t];
|
|
2386
|
-
s.sqref = e.sqref, s.id ?
|
|
2386
|
+
s.sqref = e.sqref, s.id ? z.set(s.id, s) : X.push(s);
|
|
2387
2387
|
}
|
|
2388
2388
|
}
|
|
2389
|
-
}),
|
|
2389
|
+
}), G.set("cfRule", {
|
|
2390
2390
|
from: "cfRule",
|
|
2391
2391
|
to: {},
|
|
2392
2392
|
openTag: (t) => {
|
|
2393
|
-
t.copyTo("id",
|
|
2393
|
+
t.copyTo("id", Ao), t.copyTo("type", Ao), t.copyTo("priority", So), t.copyTo("stopIfTrue", To), t.copyTo("operator", Ao), t.copyTo("text", Ao), t.copyTo("timePeriod", Ao), 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
2394
|
},
|
|
2395
2395
|
closeTag: (t) => {
|
|
2396
2396
|
const e = t.getSource();
|
|
2397
2397
|
e && t.getParent()?.rules?.push(e);
|
|
2398
2398
|
}
|
|
2399
|
-
}),
|
|
2399
|
+
}), G.set("sqref", j("sqref", (t, e) => {
|
|
2400
2400
|
const o = e.getParent(), s = t.trim();
|
|
2401
2401
|
o && s && (o.sqref = s);
|
|
2402
|
-
})),
|
|
2402
|
+
})), G.set("dataBar", {
|
|
2403
2403
|
from: "dataBar",
|
|
2404
2404
|
to: {},
|
|
2405
2405
|
openTag: (t) => {
|
|
2406
|
-
t.copyTo("minLength",
|
|
2406
|
+
t.copyTo("minLength", So), t.copyTo("maxLength", So), t.copyTo("gradient", To), t.copyTo("border", To), t.copyTo("direction", Ao), t.copyTo("axisPosition", Ao), t.copyTo("negativeBarColorSameAsPositive", To), t.copyTo("negativeBarBorderColorSameAsPositive", To);
|
|
2407
2407
|
},
|
|
2408
2408
|
closeTag: (t) => {
|
|
2409
2409
|
t.getParent().dataBar = t.getSource();
|
|
2410
2410
|
}
|
|
2411
|
-
}),
|
|
2411
|
+
}), G.set("iconSet", {
|
|
2412
2412
|
from: "iconSet",
|
|
2413
2413
|
to: {},
|
|
2414
2414
|
openTag: (t) => {
|
|
2415
|
-
t.copyTo("iconSet",
|
|
2415
|
+
t.copyTo("iconSet", Ao), t.copyTo("custom", To), t.copyTo("reverse", To), t.copyTo("showValue", To);
|
|
2416
2416
|
},
|
|
2417
2417
|
closeTag: (t) => {
|
|
2418
2418
|
t.getParent().iconSet = t.getSource();
|
|
2419
2419
|
}
|
|
2420
2420
|
});
|
|
2421
|
-
const
|
|
2422
|
-
|
|
2421
|
+
const K = /* @__PURE__ */ new Map();
|
|
2422
|
+
K.set("f", j("f", (t, e) => {
|
|
2423
2423
|
const o = e.getParent();
|
|
2424
2424
|
if (!o) return;
|
|
2425
2425
|
const s = t.trim(), r = Number(s);
|
|
2426
2426
|
o.value = s.length > 0 && Number.isFinite(r) ? r : f(t);
|
|
2427
|
-
})),
|
|
2427
|
+
})), G.set("cfvo", {
|
|
2428
2428
|
from: "cfvo",
|
|
2429
2429
|
to: {},
|
|
2430
|
-
scope: () =>
|
|
2430
|
+
scope: () => K,
|
|
2431
2431
|
openTag: (t) => {
|
|
2432
2432
|
const e = t.getParent();
|
|
2433
2433
|
e.conditions || (e.conditions = []);
|
|
2434
2434
|
const o = t.getSource();
|
|
2435
|
-
e.conditions.push(o), t.copyTo("type",
|
|
2435
|
+
e.conditions.push(o), t.copyTo("type", Ao), !1 === t.getAttribute("gte", To) && (o.exclusive = !0);
|
|
2436
2436
|
}
|
|
2437
|
-
}),
|
|
2437
|
+
}), G.set("f", j("f", (t, e) => {
|
|
2438
2438
|
const o = e.getParent();
|
|
2439
2439
|
o && (o.formulas ??= []).push(f(t));
|
|
2440
|
-
})),
|
|
2440
|
+
})), G.set("dxf", {
|
|
2441
2441
|
from: "dxf",
|
|
2442
2442
|
to: {},
|
|
2443
2443
|
raw: !0,
|
|
2444
2444
|
closeTag: (t) => {
|
|
2445
|
-
if (!
|
|
2445
|
+
if (!h) return;
|
|
2446
2446
|
const e = t.getParent();
|
|
2447
2447
|
if (!e) return;
|
|
2448
|
-
const o =
|
|
2448
|
+
const o = h(t.getRawXml() ?? "");
|
|
2449
2449
|
o && (e.style = o);
|
|
2450
2450
|
}
|
|
2451
2451
|
});
|
|
2452
|
-
const
|
|
2452
|
+
const J = (t) => ({
|
|
2453
2453
|
from: t,
|
|
2454
2454
|
to: {},
|
|
2455
2455
|
openTag: (e) => {
|
|
2456
|
-
const o =
|
|
2456
|
+
const o = ft((t) => e.getAttribute(t));
|
|
2457
2457
|
o && (e.getParent()[t] = o);
|
|
2458
2458
|
}
|
|
2459
2459
|
});
|
|
2460
|
-
|
|
2460
|
+
G.set("borderColor", J("borderColor")), G.set("negativeFillColor", J("negativeFillColor")), G.set("negativeBorderColor", J("negativeBorderColor")), G.set("axisColor", J("axisColor")), G.set("cfIcon", {
|
|
2461
2461
|
from: "cfIcon",
|
|
2462
2462
|
to: {},
|
|
2463
2463
|
openTag: (t) => {
|
|
2464
|
-
const e = t.getAttribute("iconSet"), o = t.getAttribute("iconId",
|
|
2464
|
+
const e = t.getAttribute("iconSet"), o = t.getAttribute("iconId", So);
|
|
2465
2465
|
if (null === e || null === o) return;
|
|
2466
2466
|
const s = t.getParent();
|
|
2467
2467
|
s.icons || (s.icons = []), s.icons.push({
|
|
@@ -2470,31 +2470,96 @@ var Xo = {
|
|
|
2470
2470
|
});
|
|
2471
2471
|
}
|
|
2472
2472
|
});
|
|
2473
|
-
const
|
|
2474
|
-
|
|
2473
|
+
const Z = /* @__PURE__ */ new Map();
|
|
2474
|
+
Z.set("id", j("id", (t, e) => {
|
|
2475
2475
|
const o = e.getParent(), s = t.trim();
|
|
2476
2476
|
o && s && (o.x14Id = s);
|
|
2477
2477
|
}));
|
|
2478
|
-
const
|
|
2479
|
-
|
|
2478
|
+
const Q = /* @__PURE__ */ new Map();
|
|
2479
|
+
Q.set("slicerList", {
|
|
2480
2480
|
from: "slicerList",
|
|
2481
2481
|
transparent: !0
|
|
2482
|
-
}),
|
|
2483
|
-
const
|
|
2484
|
-
|
|
2482
|
+
}), Q.set("slicer", R);
|
|
2483
|
+
const tt = /* @__PURE__ */ new Map();
|
|
2484
|
+
tt.set("timelineRefs", {
|
|
2485
2485
|
from: "timelineRefs",
|
|
2486
2486
|
transparent: !0
|
|
2487
|
-
}),
|
|
2488
|
-
const
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2487
|
+
}), tt.set("timelineRef", V);
|
|
2488
|
+
const st = /* @__PURE__ */ new Map();
|
|
2489
|
+
st.set("sparklineGroups", {
|
|
2490
|
+
from: "sparklineGroups",
|
|
2491
|
+
to: "sparklineGroups",
|
|
2492
|
+
openTag: (t) => {
|
|
2493
|
+
const e = t.getParent();
|
|
2494
|
+
t.setSource(e.sparklineGroups ?? []);
|
|
2495
|
+
},
|
|
2496
|
+
closeTag: (t) => {
|
|
2497
|
+
0 === (t.getSource()?.length ?? 0) && t.setSource(void 0);
|
|
2498
|
+
}
|
|
2499
|
+
}), st.set("sparklineGroup", {
|
|
2500
|
+
from: "sparklineGroup",
|
|
2501
|
+
to: [],
|
|
2502
|
+
openTag: (t) => {
|
|
2503
|
+
const e = t.getFrom().attributes ?? {}, o = {};
|
|
2504
|
+
for (const t in e) {
|
|
2505
|
+
const s = e[t];
|
|
2506
|
+
o[t] = "string" == typeof s ? s : s?.value ?? "";
|
|
2507
|
+
}
|
|
2508
|
+
t.setSource({
|
|
2509
|
+
properties: U(o),
|
|
2510
|
+
entries: []
|
|
2511
|
+
});
|
|
2512
|
+
},
|
|
2513
|
+
closeTag: (t) => {
|
|
2514
|
+
const e = t.getSource(), o = Rt(e.properties, e.entries);
|
|
2515
|
+
o || t.warn("A sparkline group with no sparklines was dropped.", { onceKey: "xlsx.sheet.sparklineGroup.empty" }), t.setSource(o ?? void 0);
|
|
2516
|
+
}
|
|
2517
|
+
});
|
|
2518
|
+
for (const t of at) st.set(t, {
|
|
2519
|
+
from: t,
|
|
2520
|
+
to: {},
|
|
2521
|
+
openTag: (e) => {
|
|
2522
|
+
const o = ft((t) => e.getAttribute(t));
|
|
2523
|
+
o && (e.getParent().properties[t] = o);
|
|
2524
|
+
}
|
|
2525
|
+
});
|
|
2526
|
+
st.set("sparklines", {
|
|
2527
|
+
from: "sparklines",
|
|
2528
|
+
transparent: !0
|
|
2529
|
+
}), st.set("sparkline", {
|
|
2530
|
+
from: "sparkline",
|
|
2531
|
+
to: {},
|
|
2532
|
+
openTag: (t) => {
|
|
2533
|
+
t.setSource({ isSparkline: !0 });
|
|
2534
|
+
},
|
|
2535
|
+
closeTag: (t) => {
|
|
2536
|
+
const e = t.getSource(), o = t.getParent(), s = e?.sqref?.trim(), r = s ? v.fastStringToRange(s.split(/\s+/)[0]) : null;
|
|
2537
|
+
r ? o.entries.push({
|
|
2538
|
+
location: {
|
|
2539
|
+
rowIndex: r.rowStart,
|
|
2540
|
+
colIndex: r.colStart
|
|
2541
|
+
},
|
|
2542
|
+
data: e.data ?? ""
|
|
2543
|
+
}) : t.warn("A sparkline with no location was dropped.", { onceKey: "xlsx.sheet.sparkline.incomplete" });
|
|
2544
|
+
}
|
|
2545
|
+
}), st.set("f", j("f", (t, e) => {
|
|
2546
|
+
const o = e.getParent(), s = t.trim();
|
|
2547
|
+
o && s && (o.isSparkline ? o.data = s : o.properties.dateRange = s);
|
|
2548
|
+
})), st.set("sqref", j("sqref", (t, e) => {
|
|
2549
|
+
const o = e.getParent();
|
|
2550
|
+
o?.isSparkline && (o.sqref = t);
|
|
2551
|
+
}));
|
|
2552
|
+
const it = /* @__PURE__ */ new Map([
|
|
2553
|
+
[Dt(Jt), st],
|
|
2554
|
+
[Dt($t), F],
|
|
2555
|
+
[Dt(se), G],
|
|
2556
|
+
[Dt(nt), G],
|
|
2557
|
+
[Dt(mt), Z],
|
|
2558
|
+
[Dt(gt), Q],
|
|
2559
|
+
[Dt(xt), Q],
|
|
2560
|
+
[Dt(Ht), tt],
|
|
2561
|
+
[Dt(kt), E]
|
|
2562
|
+
]), lt = /* @__PURE__ */ new Set();
|
|
2498
2563
|
l.registerVisitor({
|
|
2499
2564
|
from: "extLst",
|
|
2500
2565
|
transparent: !0
|
|
@@ -2502,11 +2567,11 @@ var Xo = {
|
|
|
2502
2567
|
from: "ext",
|
|
2503
2568
|
transparent: !0,
|
|
2504
2569
|
scope: (t) => {
|
|
2505
|
-
const e = t.getAttribute("uri"), o =
|
|
2570
|
+
const e = t.getAttribute("uri"), o = Dt(e), s = it.get(o);
|
|
2506
2571
|
if (s) return s;
|
|
2507
|
-
if (!
|
|
2508
|
-
|
|
2509
|
-
const s =
|
|
2572
|
+
if (!L.has(o) && !lt.has(o)) {
|
|
2573
|
+
lt.add(o);
|
|
2574
|
+
const s = $[o];
|
|
2510
2575
|
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.`);
|
|
2511
2576
|
}
|
|
2512
2577
|
return null;
|
|
@@ -2565,20 +2630,20 @@ var Xo = {
|
|
|
2565
2630
|
t.setSource(e(t.getAttribute("r:id"), "legacyDrawing") ?? void 0);
|
|
2566
2631
|
}
|
|
2567
2632
|
});
|
|
2568
|
-
let
|
|
2569
|
-
const
|
|
2633
|
+
let ut = null, ht = !1;
|
|
2634
|
+
const dt = /* @__PURE__ */ new Map(), pt = {
|
|
2570
2635
|
from: "Fallback",
|
|
2571
2636
|
to: null
|
|
2572
|
-
},
|
|
2637
|
+
}, yt = {
|
|
2573
2638
|
from: "Choice",
|
|
2574
2639
|
transparent: !0
|
|
2575
2640
|
};
|
|
2576
|
-
|
|
2641
|
+
dt.set("Fallback", pt), dt.set("Choice", yt), dt.set("control", {
|
|
2577
2642
|
from: "control",
|
|
2578
2643
|
transparent: !0,
|
|
2579
2644
|
openTag: (t) => {
|
|
2580
2645
|
const o = t.getAttribute("name"), s = t.getAttribute("r:id"), r = s ? e(s, "formControl") : null;
|
|
2581
|
-
if (!r) return t.warn(`The form control '${o ?? ""}' has no properties and was not read.`, { onceKey: "xlsx.sheet.control.noProperties" }), void (
|
|
2646
|
+
if (!r) return t.warn(`The form control '${o ?? ""}' has no properties and was not read.`, { onceKey: "xlsx.sheet.control.noProperties" }), void (ut = null);
|
|
2582
2647
|
const n = r.json, i = parseInt(t.getAttribute("shapeId") ?? "", 10);
|
|
2583
2648
|
isNaN(i) || (n.shapeId = i);
|
|
2584
2649
|
const a = {
|
|
@@ -2601,60 +2666,60 @@ var Xo = {
|
|
|
2601
2666
|
json: n
|
|
2602
2667
|
}
|
|
2603
2668
|
};
|
|
2604
|
-
o && (a.content.name = o),
|
|
2669
|
+
o && (a.content.name = o), ut = {
|
|
2605
2670
|
movable: a,
|
|
2606
2671
|
control: n
|
|
2607
2672
|
};
|
|
2608
2673
|
},
|
|
2609
2674
|
closeTag: () => {
|
|
2610
|
-
|
|
2675
|
+
ut && (t.movables || (t.movables = []), t.movables.push(ut.movable), ut = null);
|
|
2611
2676
|
}
|
|
2612
|
-
}),
|
|
2677
|
+
}), dt.set("controlPr", {
|
|
2613
2678
|
from: "controlPr",
|
|
2614
2679
|
transparent: !0,
|
|
2615
2680
|
raw: !0,
|
|
2616
2681
|
openTag: (t) => {
|
|
2617
|
-
if (!
|
|
2682
|
+
if (!ut) return;
|
|
2618
2683
|
const e = t.getFrom().attributes ?? {}, o = {};
|
|
2619
2684
|
for (const t in e) {
|
|
2620
2685
|
const s = e[t];
|
|
2621
2686
|
o[t] = "string" == typeof s ? s : s?.value ?? "";
|
|
2622
2687
|
}
|
|
2623
|
-
|
|
2688
|
+
bt(o, ut.control);
|
|
2624
2689
|
},
|
|
2625
2690
|
closeTag: (t) => {
|
|
2626
|
-
if (!
|
|
2691
|
+
if (!ut) return;
|
|
2627
2692
|
const e = ((t) => {
|
|
2628
2693
|
const e = /<(?:[\w.-]+:)?anchor\b([^>]*)>([\s\S]*?)<\/(?:[\w.-]+:)?anchor>/.exec(t);
|
|
2629
2694
|
if (!e) return null;
|
|
2630
2695
|
const o = e[2], s = (t) => new RegExp(`<(?:[\\w.-]+:)?${t}\\b[^>]*>([\\s\\S]*?)<\\/(?:[\\w.-]+:)?${t}>`).exec(o)?.[1], r = e[1], n = /\bmoveWithCells="(?:1|true)"/.test(r), i = /\bsizeWithCells="(?:1|true)"/.test(r);
|
|
2631
2696
|
return {
|
|
2632
2697
|
anchor: {
|
|
2633
|
-
tl:
|
|
2634
|
-
br:
|
|
2698
|
+
tl: Zo(s("from")),
|
|
2699
|
+
br: Zo(s("to"))
|
|
2635
2700
|
},
|
|
2636
2701
|
anchorType: n ? i ? "twoCell" : "oneCell" : "absolute",
|
|
2637
2702
|
rest: (t.slice(0, e.index) + t.slice(e.index + e[0].length)).trim()
|
|
2638
2703
|
};
|
|
2639
2704
|
})(t.getRawXml() ?? "");
|
|
2640
|
-
e ? (
|
|
2705
|
+
e ? (ut.movable.anchor = e.anchor, "twoCell" !== e.anchorType && (ut.movable.anchorType = e.anchorType), e.rest && (ut.control.xml = e.rest)) : ht || (ht = !0, t.warn("A form control has no anchor; it is placed at the top left of the sheet."));
|
|
2641
2706
|
}
|
|
2642
2707
|
});
|
|
2643
|
-
const
|
|
2708
|
+
const vt = {
|
|
2644
2709
|
from: "controls",
|
|
2645
2710
|
transparent: !0,
|
|
2646
|
-
scope: () =>
|
|
2711
|
+
scope: () => dt
|
|
2647
2712
|
};
|
|
2648
|
-
l.registerVisitor(
|
|
2649
|
-
const
|
|
2650
|
-
["Choice",
|
|
2651
|
-
["Fallback",
|
|
2652
|
-
["controls",
|
|
2713
|
+
l.registerVisitor(vt);
|
|
2714
|
+
const Tt = /* @__PURE__ */ new Map([
|
|
2715
|
+
["Choice", yt],
|
|
2716
|
+
["Fallback", pt],
|
|
2717
|
+
["controls", vt]
|
|
2653
2718
|
]);
|
|
2654
2719
|
l.registerVisitor({
|
|
2655
2720
|
from: "AlternateContent",
|
|
2656
2721
|
transparent: !0,
|
|
2657
|
-
scope: () =>
|
|
2722
|
+
scope: () => Tt
|
|
2658
2723
|
}), l.registerVisitor({
|
|
2659
2724
|
from: "tableParts",
|
|
2660
2725
|
to: "tables",
|
|
@@ -2671,26 +2736,26 @@ var Xo = {
|
|
|
2671
2736
|
s ? t.setSource(s) : t.warn("A table part is missing; the table was not imported.", { onceKey: "xlsx.sheet.table.missing" });
|
|
2672
2737
|
}
|
|
2673
2738
|
});
|
|
2674
|
-
const
|
|
2739
|
+
const At = (t, e) => {
|
|
2675
2740
|
e.conditions?.length && (t.stops = S(e)), void 0 !== e.minLength && (t.minLength = e.minLength), void 0 !== e.maxLength && (t.maxLength = e.maxLength), (e.gradient ?? 1) && (t.gradient = !0), 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);
|
|
2676
|
-
},
|
|
2741
|
+
}, Ct = (t, e) => {
|
|
2677
2742
|
e.conditions?.length && (t.stops = S(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);
|
|
2678
|
-
},
|
|
2743
|
+
}, Et = (t) => {
|
|
2679
2744
|
if (!t.sqref) return null;
|
|
2680
2745
|
const e = t.sqref.split(/\s+/).join(",");
|
|
2681
2746
|
if ("iconSet" === t.type) {
|
|
2682
2747
|
if (!t.iconSet) return null;
|
|
2683
2748
|
const o = {
|
|
2684
|
-
type:
|
|
2749
|
+
type: y.ScaleType.IconSet,
|
|
2685
2750
|
stops: []
|
|
2686
2751
|
};
|
|
2687
|
-
return
|
|
2752
|
+
return Ct(o, t.iconSet), {
|
|
2688
2753
|
r: e,
|
|
2689
2754
|
v: { scale: o },
|
|
2690
2755
|
priority: t.priority
|
|
2691
2756
|
};
|
|
2692
2757
|
}
|
|
2693
|
-
const o =
|
|
2758
|
+
const o = Qt(t, n);
|
|
2694
2759
|
if (!o) return null;
|
|
2695
2760
|
const s = { condition: o };
|
|
2696
2761
|
return t.style && (s.style = t.style), t.stopIfTrue && (s.stopIfTrue = !0), {
|
|
@@ -2710,16 +2775,16 @@ var Xo = {
|
|
|
2710
2775
|
const e = o[t], s = e.x14Id;
|
|
2711
2776
|
if (!s) continue;
|
|
2712
2777
|
delete e.x14Id;
|
|
2713
|
-
const r =
|
|
2778
|
+
const r = z.get(s);
|
|
2714
2779
|
if (!r) continue;
|
|
2715
|
-
|
|
2780
|
+
z.delete(s);
|
|
2716
2781
|
const n = e.v?.scale;
|
|
2717
|
-
r.dataBar && n?.type ===
|
|
2782
|
+
r.dataBar && n?.type === y.ScaleType.DataBar ? At(n, r.dataBar) : r.iconSet && n?.type === y.ScaleType.IconSet && Ct(n, r.iconSet);
|
|
2718
2783
|
}
|
|
2719
|
-
const s = [...
|
|
2784
|
+
const s = [...z.values(), ...X], r = /* @__PURE__ */ new Set();
|
|
2720
2785
|
let i = 0;
|
|
2721
2786
|
for (let t = 0; t < s.length; t++) {
|
|
2722
|
-
const n =
|
|
2787
|
+
const n = Et(s[t]);
|
|
2723
2788
|
n ? (o || (o = [], e.conditionals = o), o.push(n)) : (r.add(s[t].type ?? "unknown"), i++);
|
|
2724
2789
|
}
|
|
2725
2790
|
if (i > 0) {
|
|
@@ -2757,13 +2822,13 @@ var Xo = {
|
|
|
2757
2822
|
to: "protection",
|
|
2758
2823
|
openTag: (t) => {
|
|
2759
2824
|
const e = t.getSource();
|
|
2760
|
-
for (const o of
|
|
2825
|
+
for (const o of Kt) {
|
|
2761
2826
|
const s = t.hasAttribute(o.attribute) ? t.getAttribute(o.attribute) : null;
|
|
2762
|
-
e[o.key] =
|
|
2827
|
+
e[o.key] = St(o, s);
|
|
2763
2828
|
}
|
|
2764
2829
|
if (e.sheet) return;
|
|
2765
2830
|
const o = {};
|
|
2766
|
-
t.copyToObject(o, "hash",
|
|
2831
|
+
t.copyToObject(o, "hash", Ao, "hashValue"), t.copyToObject(o, "algorithm", Ao, "algorithmName"), t.copyToObject(o, "salt", Ao, "saltValue"), t.copyToObject(o, "spinCount", So), t.copyToObject(o, "legacyHash", Ao, "password"), Object.keys(o).length > 0 && (t.getSource().password = o);
|
|
2767
2832
|
}
|
|
2768
2833
|
}), l.registerVisitor({
|
|
2769
2834
|
from: "protectedRanges",
|
|
@@ -2783,7 +2848,7 @@ var Xo = {
|
|
|
2783
2848
|
};
|
|
2784
2849
|
t.copyToObject(o, "name"), t.copyToObject(o, "securityDescriptor");
|
|
2785
2850
|
const r = {};
|
|
2786
|
-
t.copyToObject(r, "hash",
|
|
2851
|
+
t.copyToObject(r, "hash", Ao, "hashValue"), t.copyToObject(r, "algorithm", Ao, "algorithmName"), t.copyToObject(r, "salt", Ao, "saltValue"), t.copyToObject(r, "spinCount", So), t.copyToObject(r, "legacyHash", Ao, "password"), Object.keys(r).length > 0 && (o.password = r), t.setSource(s);
|
|
2787
2852
|
},
|
|
2788
2853
|
closeTag: (t) => {
|
|
2789
2854
|
const e = t.getSource();
|
|
@@ -2793,11 +2858,11 @@ var Xo = {
|
|
|
2793
2858
|
from: "sheetFormatPr",
|
|
2794
2859
|
to: "sheetFormatPr",
|
|
2795
2860
|
openTag: (e) => {
|
|
2796
|
-
e.copyToObject(t, "defaultColSize",
|
|
2861
|
+
e.copyToObject(t, "defaultColSize", ko, "defaultColWidth");
|
|
2797
2862
|
const o = e.getAttribute("customHeight");
|
|
2798
|
-
"1" !== o && "true" !== o || e.copyToObject(t, "defaultRowSize",
|
|
2799
|
-
const s = e.getAttribute("baseColWidth",
|
|
2800
|
-
s && 8 !== s && (t.baseColSize = s),
|
|
2863
|
+
"1" !== o && "true" !== o || e.copyToObject(t, "defaultRowSize", ko, "defaultRowHeight");
|
|
2864
|
+
const s = e.getAttribute("baseColWidth", So);
|
|
2865
|
+
s && 8 !== s && (t.baseColSize = s), u = !!e.getAttribute("zeroHeight", To);
|
|
2801
2866
|
}
|
|
2802
2867
|
}), l.registerVisitor({
|
|
2803
2868
|
from: "cols",
|
|
@@ -2810,9 +2875,9 @@ var Xo = {
|
|
|
2810
2875
|
to: [],
|
|
2811
2876
|
openTag: (t) => {
|
|
2812
2877
|
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;
|
|
2813
|
-
e.r =
|
|
2878
|
+
e.r = v.runToString(r, n, !0);
|
|
2814
2879
|
const i = {};
|
|
2815
|
-
e.v = i, t.copyToObject(i, "sz",
|
|
2880
|
+
e.v = i, t.copyToObject(i, "sz", ko, "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");
|
|
2816
2881
|
}
|
|
2817
2882
|
}), l.registerVisitor({
|
|
2818
2883
|
from: "oleObjects",
|
|
@@ -2821,40 +2886,40 @@ var Xo = {
|
|
|
2821
2886
|
t.warn("'OLE Objects' are not supported.");
|
|
2822
2887
|
}
|
|
2823
2888
|
});
|
|
2824
|
-
let
|
|
2825
|
-
const
|
|
2889
|
+
let It = !1, Pt = !1, Ot = 0, Nt = "", Vt = "";
|
|
2890
|
+
const jt = (t) => {
|
|
2826
2891
|
const e = t.indexOf(":");
|
|
2827
2892
|
return -1 === e ? t : t.slice(e + 1);
|
|
2828
|
-
},
|
|
2829
|
-
return
|
|
2893
|
+
}, Bt = new Uo();
|
|
2894
|
+
return cs(g, t, l.createEventHandler(t, r, n), n, i, {
|
|
2830
2895
|
onOpenTag: (t) => {
|
|
2831
|
-
|
|
2832
|
-
const e =
|
|
2833
|
-
"t" === e || "v" === e ? 0 ===
|
|
2896
|
+
It = !0;
|
|
2897
|
+
const e = jt(t.name);
|
|
2898
|
+
"t" === e || "v" === e ? 0 === Ot && (Pt = !0) : "rPh" === e || "phoneticPr" === e ? Ot++ : 0 === Ot && Bt.onOpenTag(e, t.attributes);
|
|
2834
2899
|
},
|
|
2835
2900
|
onText: (t) => {
|
|
2836
|
-
|
|
2901
|
+
Pt && (Nt += t, Bt.onText(t));
|
|
2837
2902
|
},
|
|
2838
2903
|
onCloseTag: (t) => {
|
|
2839
|
-
const e =
|
|
2840
|
-
"t" === e || "v" === e ?
|
|
2904
|
+
const e = jt(t.name);
|
|
2905
|
+
"t" === e || "v" === e ? Pt = !1 : "rPh" === e || "phoneticPr" === e ? Ot > 0 && Ot-- : Bt.onCloseTag(e);
|
|
2841
2906
|
},
|
|
2842
2907
|
onEnd: () => {
|
|
2843
|
-
if (!
|
|
2844
|
-
const t =
|
|
2845
|
-
|
|
2846
|
-
const e =
|
|
2847
|
-
return
|
|
2908
|
+
if (!It) return;
|
|
2909
|
+
const t = Bt.take();
|
|
2910
|
+
It = !1, Pt = !1, Ot = 0;
|
|
2911
|
+
const e = W(Nt);
|
|
2912
|
+
return Nt = "", Vt = e, t ? {
|
|
2848
2913
|
t: "r",
|
|
2849
2914
|
v: {
|
|
2850
2915
|
type: "richText",
|
|
2851
|
-
data: { runs:
|
|
2916
|
+
data: { runs: Go(t, a?.get(os)) }
|
|
2852
2917
|
}
|
|
2853
2918
|
} : o(e);
|
|
2854
2919
|
},
|
|
2855
2920
|
onError: (t) => {}
|
|
2856
|
-
}, a, o, () =>
|
|
2857
|
-
},
|
|
2921
|
+
}, a, o, () => u, () => Vt);
|
|
2922
|
+
}, rs = class {
|
|
2858
2923
|
static {
|
|
2859
2924
|
this.Collapsed = 1;
|
|
2860
2925
|
}
|
|
@@ -2885,22 +2950,22 @@ var Xo = {
|
|
|
2885
2950
|
static {
|
|
2886
2951
|
this.Spans = 512;
|
|
2887
2952
|
}
|
|
2888
|
-
},
|
|
2953
|
+
}, ns = (t, e, o) => {
|
|
2889
2954
|
if (t[0].value[0] === t[1].value[0]) return e;
|
|
2890
|
-
},
|
|
2955
|
+
}, is = /^\s*TABLE\s*\(/i, as = {
|
|
2891
2956
|
colStart: 0,
|
|
2892
2957
|
colEnd: 0,
|
|
2893
2958
|
rowStart: 0,
|
|
2894
2959
|
rowEnd: 0
|
|
2895
|
-
},
|
|
2896
|
-
let
|
|
2897
|
-
const b = [],
|
|
2898
|
-
let T = !1, S = [],
|
|
2960
|
+
}, ls = (t) => "1" === t || "true" === t, cs = (t, e, o, s, i, a, l, c, u, h) => {
|
|
2961
|
+
let m = !1;
|
|
2962
|
+
const b = [], y = l?.get(es), x = l?.get(os), w = /* @__PURE__ */ new Map();
|
|
2963
|
+
let T = !1, S = [], k = !1, C = null, E = null, I = null, P = null, O = null, D = null;
|
|
2899
2964
|
const N = l?.get("richData") ?? r.EmptyArray;
|
|
2900
|
-
let
|
|
2901
|
-
const
|
|
2902
|
-
let
|
|
2903
|
-
const
|
|
2965
|
+
let M = null, $ = !1;
|
|
2966
|
+
const R = v.normalizeA1ToR1C1, L = n.createConflatingRanges(), V = /* @__PURE__ */ new Map(), j = [], B = [];
|
|
2967
|
+
let F = !1, H = !1, W = null;
|
|
2968
|
+
const z = (t) => {
|
|
2904
2969
|
const e = (l?.get("metadata"))?.values;
|
|
2905
2970
|
if (!e) return;
|
|
2906
2971
|
const o = parseInt(t, 10);
|
|
@@ -2908,94 +2973,94 @@ var Xo = {
|
|
|
2908
2973
|
const s = e[o - 1]?.get("XLRICHVALUE");
|
|
2909
2974
|
return void 0 !== s?.richValueIndex ? N[s.richValueIndex] : void 0;
|
|
2910
2975
|
};
|
|
2911
|
-
let
|
|
2912
|
-
const
|
|
2913
|
-
let
|
|
2914
|
-
const
|
|
2976
|
+
let X = !1;
|
|
2977
|
+
const q = n.createConflatingRanges();
|
|
2978
|
+
let U, G = !1, K = -1, J = -1, Z = null, Q = null;
|
|
2979
|
+
const Y = (t) => ({
|
|
2915
2980
|
t: "r",
|
|
2916
2981
|
v: {
|
|
2917
2982
|
type: "hyperlink",
|
|
2918
2983
|
data: {
|
|
2919
|
-
address:
|
|
2984
|
+
address: U,
|
|
2920
2985
|
friendly: t
|
|
2921
2986
|
}
|
|
2922
2987
|
}
|
|
2923
2988
|
});
|
|
2924
|
-
let
|
|
2925
|
-
const
|
|
2926
|
-
let
|
|
2989
|
+
let tt = null;
|
|
2990
|
+
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, kt = !1, At = null, Ct = 0;
|
|
2927
2992
|
const Et = (t) => {
|
|
2928
2993
|
let s = t.name;
|
|
2929
2994
|
const r = s.indexOf(":");
|
|
2930
|
-
if (-1 !== r && (s = s.slice(r + 1)),
|
|
2995
|
+
if (-1 !== r && (s = s.slice(r + 1)), Ct++, Ct % 196608 == 0 && i?.(Ct), Q) {
|
|
2931
2996
|
const e = t.attributes;
|
|
2932
2997
|
switch (s) {
|
|
2933
2998
|
case "v":
|
|
2934
2999
|
T = !0;
|
|
2935
3000
|
break;
|
|
2936
3001
|
case "f":
|
|
2937
|
-
switch (
|
|
3002
|
+
switch (k = !0, e.t ?? null) {
|
|
2938
3003
|
case null:
|
|
2939
3004
|
case "normal": break;
|
|
2940
3005
|
case "shared":
|
|
2941
3006
|
const t = e.si;
|
|
2942
|
-
E = e.ref,
|
|
3007
|
+
E = e.ref, C = t;
|
|
2943
3008
|
break;
|
|
2944
3009
|
case "array":
|
|
2945
|
-
E = e.ref,
|
|
3010
|
+
E = e.ref, W = E;
|
|
2946
3011
|
break;
|
|
2947
3012
|
case "dataTable": {
|
|
2948
3013
|
const t = ((t, e, o) => {
|
|
2949
|
-
const s = t.r1, r =
|
|
3014
|
+
const s = t.r1, r = ls(t.del1);
|
|
2950
3015
|
if (!s && !r) return null;
|
|
2951
|
-
const n = t.ref ??
|
|
3016
|
+
const n = t.ref ?? v.cellToString({
|
|
2952
3017
|
rowIndex: e,
|
|
2953
3018
|
colIndex: o
|
|
2954
|
-
}), i =
|
|
3019
|
+
}), i = v.fastStringToRange(n);
|
|
2955
3020
|
if (!i) return null;
|
|
2956
3021
|
const a = { ref: {
|
|
2957
3022
|
rowStart: i.rowStart,
|
|
2958
3023
|
colStart: i.colStart,
|
|
2959
3024
|
rowEnd: i.rowEnd,
|
|
2960
3025
|
colEnd: i.colEnd
|
|
2961
|
-
} }, l =
|
|
2962
|
-
if (l ||
|
|
3026
|
+
} }, l = ls(t.dt2D);
|
|
3027
|
+
if (l || ls(t.dtr) ? (s && (a.rowInput = s), r && (a.rowInputDeleted = !0)) : (s && (a.columnInput = s), r && (a.columnInputDeleted = !0)), l) {
|
|
2963
3028
|
const e = t.r2;
|
|
2964
|
-
e && (a.columnInput = e),
|
|
3029
|
+
e && (a.columnInput = e), ls(t.del2) && (a.columnInputDeleted = !0);
|
|
2965
3030
|
}
|
|
2966
3031
|
return a;
|
|
2967
|
-
})(e,
|
|
2968
|
-
t && (
|
|
3032
|
+
})(e, K, J);
|
|
3033
|
+
t && (B.push(t), ls(e.ca) && q.append(K, J));
|
|
2969
3034
|
return;
|
|
2970
3035
|
}
|
|
2971
3036
|
}
|
|
2972
3037
|
const t = e.ca;
|
|
2973
|
-
void 0 !== t && (
|
|
3038
|
+
void 0 !== t && (X = "1" === t);
|
|
2974
3039
|
break;
|
|
2975
3040
|
case "is":
|
|
2976
|
-
|
|
3041
|
+
G = !0;
|
|
2977
3042
|
return;
|
|
2978
3043
|
}
|
|
2979
|
-
|
|
3044
|
+
G && !k && a?.onOpenTag?.(t);
|
|
2980
3045
|
return;
|
|
2981
3046
|
}
|
|
2982
|
-
if (
|
|
3047
|
+
if (m) {
|
|
2983
3048
|
if ("c" === s) {
|
|
2984
|
-
|
|
3049
|
+
Q = t, U = void 0;
|
|
2985
3050
|
const e = t.attributes, o = e.r;
|
|
2986
|
-
|
|
3051
|
+
J = void 0 !== o ? v.fastStringToCol(o) : J + 1;
|
|
2987
3052
|
const s = e.t;
|
|
2988
|
-
void 0 === s ?
|
|
3053
|
+
void 0 === s ? tt = null : (tt = s, "str" === tt && (G = !0));
|
|
2989
3054
|
let r = e.s;
|
|
2990
|
-
void 0 === r && (null !== At ||
|
|
2991
|
-
colStart:
|
|
2992
|
-
rowStart:
|
|
2993
|
-
colEnd:
|
|
2994
|
-
rowEnd:
|
|
3055
|
+
void 0 === r && (null !== At || kt) && (r = "0"), void 0 !== r && (r = parseInt(r), wt && wt.value === r && wt.colEnd + 1 === J ? wt.colEnd = J : (wt = {
|
|
3056
|
+
colStart: J,
|
|
3057
|
+
rowStart: K,
|
|
3058
|
+
colEnd: J,
|
|
3059
|
+
rowEnd: K,
|
|
2995
3060
|
value: r
|
|
2996
|
-
}, S.push(wt))),
|
|
3061
|
+
}, S.push(wt))), W = null, H = !1, $ = !1;
|
|
2997
3062
|
const n = e.cm;
|
|
2998
|
-
|
|
3063
|
+
F = void 0 !== n && ((t) => {
|
|
2999
3064
|
const e = (l?.get("metadata"))?.cells;
|
|
3000
3065
|
if (!e) return !1;
|
|
3001
3066
|
const o = parseInt(t, 10);
|
|
@@ -3003,55 +3068,55 @@ var Xo = {
|
|
|
3003
3068
|
})(n);
|
|
3004
3069
|
const i = e.vm;
|
|
3005
3070
|
if (void 0 !== i) {
|
|
3006
|
-
const t =
|
|
3071
|
+
const t = z(i);
|
|
3007
3072
|
if (d.isError(t)) {
|
|
3008
3073
|
const e = t.getCode();
|
|
3009
|
-
|
|
3074
|
+
Z = {
|
|
3010
3075
|
t: "e",
|
|
3011
3076
|
v: e
|
|
3012
|
-
},
|
|
3077
|
+
}, F && e === d.Code.Spill && (H = !0);
|
|
3013
3078
|
}
|
|
3014
3079
|
}
|
|
3015
3080
|
}
|
|
3016
3081
|
} else {
|
|
3017
3082
|
if (St && "row" === s) {
|
|
3018
|
-
|
|
3083
|
+
m = !0;
|
|
3019
3084
|
const e = t.attributes.r;
|
|
3020
|
-
if (
|
|
3085
|
+
if (K = void 0 !== e ? parseInt(e) - 1 : K + 1, J = -1, u?.()) {
|
|
3021
3086
|
const t = b[b.length - 1];
|
|
3022
|
-
t && t.max + 1 ===
|
|
3023
|
-
min:
|
|
3024
|
-
max:
|
|
3087
|
+
t && t.max + 1 === K ? t.max = K : b.push({
|
|
3088
|
+
min: K,
|
|
3089
|
+
max: K
|
|
3025
3090
|
});
|
|
3026
3091
|
}
|
|
3027
|
-
if (
|
|
3028
|
-
const t = void 0 !==
|
|
3029
|
-
At = e && void 0 !==
|
|
3030
|
-
min:
|
|
3031
|
-
max:
|
|
3092
|
+
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
|
+
const t = void 0 !== at && ("1" === at || "true" === at), e = void 0 !== ct && ("1" === ct || "true" === ct);
|
|
3094
|
+
At = e && void 0 !== ut ? ut : null, e && null === At && (At = "0"), ot = {
|
|
3095
|
+
min: K,
|
|
3096
|
+
max: K,
|
|
3032
3097
|
value: {
|
|
3033
|
-
sz: void 0 ===
|
|
3098
|
+
sz: void 0 === it ? -1 : parseFloat(it),
|
|
3034
3099
|
csz: t,
|
|
3035
|
-
h: void 0 !==
|
|
3100
|
+
h: void 0 !== lt && ("1" === lt || "true" === lt),
|
|
3036
3101
|
s: null === At ? void 0 : "0" === At ? 0 : parseInt(At),
|
|
3037
3102
|
l: void 0 === ht || "0" === ht ? 0 : parseInt(ht),
|
|
3038
3103
|
cl: void 0 !== dt && ("1" === dt || "true" === dt)
|
|
3039
3104
|
}
|
|
3040
|
-
},
|
|
3041
|
-
} else
|
|
3042
|
-
|
|
3105
|
+
}, et.push(ot);
|
|
3106
|
+
} else ot.max = K;
|
|
3107
|
+
rt = K, xt = !1;
|
|
3043
3108
|
return;
|
|
3044
3109
|
}
|
|
3045
3110
|
if ("sheetData" === s && (St = !0), !Tt && "sheetData" === s) {
|
|
3046
3111
|
Tt = !0;
|
|
3047
3112
|
const t = e.cols, o = t ? t.length : 0;
|
|
3048
|
-
for (let e = 0; !
|
|
3113
|
+
for (let e = 0; !kt && e < o; e++) t[e].v.s && (kt = !0);
|
|
3049
3114
|
}
|
|
3050
3115
|
o?.onOpenTag?.(t);
|
|
3051
3116
|
}
|
|
3052
3117
|
}, It = (e) => {
|
|
3053
3118
|
let s = e.name;
|
|
3054
|
-
if ("sheetData" === s && (St = !1), !
|
|
3119
|
+
if ("sheetData" === s && (St = !1), !k || "c" !== s && "f" !== s || (C && (P = V.get(C) ?? null), P && (U = ((t) => {
|
|
3055
3120
|
if (t.length < 11 || 104 != (32 | t.charCodeAt(0))) return;
|
|
3056
3121
|
if (!/^HYPERLINK\(/i.test(t)) return;
|
|
3057
3122
|
let e = 1, o = !1, s = 10;
|
|
@@ -3062,36 +3127,36 @@ var Xo = {
|
|
|
3062
3127
|
if (0 !== e || t.slice(s).trim().length > 0) return;
|
|
3063
3128
|
const r = /^HYPERLINK\(\s*"((?:[^"]|"")*)"\s*[,)]/i.exec(t);
|
|
3064
3129
|
return r ? r[1].replace(/""/g, "\"") : null;
|
|
3065
|
-
})(P[2]),
|
|
3130
|
+
})(P[2]), L.append(K, J, P), X && q.append(K, J)), null !== W && j.push([W, F ? H ? "error" : "dynamic" : "fixed"]), k = !1, P = null, C = null, E = null, T = !1, X = !1, W = null, F = !1, H = !1), Q) {
|
|
3066
3131
|
const o = s.indexOf(":");
|
|
3067
|
-
if (-1 !== o && (s = s.slice(o + 1)),
|
|
3132
|
+
if (-1 !== o && (s = s.slice(o + 1)), G) if ("is" === s || "v" === s) {
|
|
3068
3133
|
const e = a?.onEnd?.();
|
|
3069
|
-
null == e || $ && "" ===
|
|
3134
|
+
null == e || $ && "" === h?.() || t.pushAt(K, J, void 0 !== U && "number" == typeof e ? Y(h?.() ?? "") : "number" == typeof e ? "" + e : e);
|
|
3070
3135
|
} else "f" !== s && a?.onCloseTag?.(e);
|
|
3071
|
-
T && (T = !1), "c" === s && (
|
|
3136
|
+
T && (T = !1), "c" === s && (Q = null, G = !1);
|
|
3072
3137
|
return;
|
|
3073
3138
|
}
|
|
3074
|
-
if (
|
|
3139
|
+
if (m) return m = !1, void (wt = null);
|
|
3075
3140
|
o?.onCloseTag?.(e);
|
|
3076
3141
|
}, Pt = (e) => {
|
|
3077
3142
|
const r = e.trim();
|
|
3078
3143
|
if (T) {
|
|
3079
|
-
switch (
|
|
3144
|
+
switch (Z = null, tt) {
|
|
3080
3145
|
case null:
|
|
3081
3146
|
case "n":
|
|
3082
|
-
|
|
3147
|
+
Z = f.flushSubnormal(parseFloat(r));
|
|
3083
3148
|
break;
|
|
3084
3149
|
case "b":
|
|
3085
|
-
|
|
3150
|
+
Z = "1" === r || "true" === r;
|
|
3086
3151
|
break;
|
|
3087
3152
|
case "s": {
|
|
3088
3153
|
const t = parseInt(r, 10);
|
|
3089
3154
|
let e = w.get(t);
|
|
3090
3155
|
if (void 0 === e) {
|
|
3091
|
-
const o =
|
|
3092
|
-
e = o ?
|
|
3156
|
+
const o = y?.get(t);
|
|
3157
|
+
e = o ? Go(o, x) : null, w.set(t, e);
|
|
3093
3158
|
}
|
|
3094
|
-
|
|
3159
|
+
Z = e ? {
|
|
3095
3160
|
t: "r",
|
|
3096
3161
|
v: {
|
|
3097
3162
|
type: "richText",
|
|
@@ -3103,44 +3168,44 @@ var Xo = {
|
|
|
3103
3168
|
case "d": {
|
|
3104
3169
|
const t = ((t, e = !1) => {
|
|
3105
3170
|
if (!t) return null;
|
|
3106
|
-
const o =
|
|
3171
|
+
const o = Wo.exec(t);
|
|
3107
3172
|
if (o) {
|
|
3108
3173
|
const [, t, e, s] = o;
|
|
3109
3174
|
return void 0 === t && void 0 === e && void 0 === s ? null : (3600 * parseFloat(t ?? "0") + 60 * parseFloat(e ?? "0") + parseFloat(s ?? "0")) / 86400;
|
|
3110
3175
|
}
|
|
3111
|
-
const s =
|
|
3176
|
+
const s = Ho.exec(t);
|
|
3112
3177
|
if (!s) return null;
|
|
3113
|
-
const [, r, n, i, a, l, c,
|
|
3178
|
+
const [, r, n, i, a, l, c, u] = s;
|
|
3114
3179
|
if (void 0 === r && void 0 === a) return null;
|
|
3115
|
-
let
|
|
3180
|
+
let h = 0;
|
|
3116
3181
|
if (void 0 !== r) {
|
|
3117
3182
|
const t = parseInt(r, 10), o = parseInt(n, 10), s = parseInt(i, 10);
|
|
3118
3183
|
if (o < 1 || o > 12 || s < 1 || s > 31) return null;
|
|
3119
|
-
const a =
|
|
3120
|
-
if (
|
|
3184
|
+
const a = zo(t, o, s) - Xo;
|
|
3185
|
+
if (h = a <= 60 ? a - 1 : a, e && (h -= 1462), h < 0) return null;
|
|
3121
3186
|
}
|
|
3122
|
-
return void 0 !== a && (
|
|
3123
|
-
})(r, !0 === l?.get(
|
|
3124
|
-
null !== t ?
|
|
3125
|
-
colIndex:
|
|
3126
|
-
rowIndex:
|
|
3127
|
-
})} is not a date this workbook can hold; kept as text.`, void 0, "xlsx.cell.isoDateText"),
|
|
3187
|
+
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
|
+
})(r, !0 === l?.get(ts));
|
|
3189
|
+
null !== t ? Z = t : c && (s?.(`Date '${r}' in cell ${v.cellToString({
|
|
3190
|
+
colIndex: J,
|
|
3191
|
+
rowIndex: K
|
|
3192
|
+
})} is not a date this workbook can hold; kept as text.`, void 0, "xlsx.cell.isoDateText"), Z = "" + c(r));
|
|
3128
3193
|
break;
|
|
3129
3194
|
}
|
|
3130
3195
|
case "e":
|
|
3131
3196
|
if ("#VALUE!" === r) {
|
|
3132
|
-
const t =
|
|
3197
|
+
const t = Q.attributes.vm;
|
|
3133
3198
|
if (void 0 !== t) {
|
|
3134
|
-
const e =
|
|
3199
|
+
const e = z(t);
|
|
3135
3200
|
if (d.isError(e)) {
|
|
3136
|
-
|
|
3201
|
+
Z = {
|
|
3137
3202
|
t: "e",
|
|
3138
3203
|
v: e.getCode()
|
|
3139
3204
|
};
|
|
3140
3205
|
break;
|
|
3141
3206
|
}
|
|
3142
|
-
if (
|
|
3143
|
-
|
|
3207
|
+
if (g.isJSON(e)) {
|
|
3208
|
+
Z = {
|
|
3144
3209
|
t: "r",
|
|
3145
3210
|
v: e
|
|
3146
3211
|
};
|
|
@@ -3149,66 +3214,66 @@ var Xo = {
|
|
|
3149
3214
|
}
|
|
3150
3215
|
}
|
|
3151
3216
|
const t = d.getBuiltInByLabel(r);
|
|
3152
|
-
t ?
|
|
3217
|
+
t ? Z = {
|
|
3153
3218
|
t: "e",
|
|
3154
3219
|
v: t.getCode()
|
|
3155
|
-
} : (
|
|
3156
|
-
colIndex:
|
|
3157
|
-
rowIndex:
|
|
3220
|
+
} : (Z = r, s?.(`Unknown formula error '${r}' in cell ${v.cellToString({
|
|
3221
|
+
colIndex: J,
|
|
3222
|
+
rowIndex: K
|
|
3158
3223
|
})}`));
|
|
3159
3224
|
break;
|
|
3160
3225
|
case "str":
|
|
3161
|
-
case "inlineStr":
|
|
3226
|
+
case "inlineStr": G = !0;
|
|
3162
3227
|
}
|
|
3163
|
-
null !==
|
|
3228
|
+
null !== Z && t.pushAt(K, J, void 0 === U || "number" != typeof Z && "boolean" != typeof Z ? Z : Y(Z));
|
|
3164
3229
|
}
|
|
3165
|
-
const n = null !==
|
|
3166
|
-
if (
|
|
3167
|
-
if (O ===
|
|
3230
|
+
const n = null !== C;
|
|
3231
|
+
if (C) {
|
|
3232
|
+
if (O === C) P = D;
|
|
3168
3233
|
else {
|
|
3169
|
-
if (P = V.get(
|
|
3234
|
+
if (P = V.get(C) ?? null, !P) {
|
|
3170
3235
|
const t = [];
|
|
3171
|
-
I =
|
|
3236
|
+
I = R(r, K, J, t), P = [
|
|
3172
3237
|
I,
|
|
3173
3238
|
t,
|
|
3174
3239
|
r
|
|
3175
|
-
], V.set(
|
|
3240
|
+
], V.set(C, P);
|
|
3176
3241
|
}
|
|
3177
|
-
O =
|
|
3242
|
+
O = C, D = P;
|
|
3178
3243
|
}
|
|
3179
|
-
|
|
3244
|
+
C = null;
|
|
3180
3245
|
}
|
|
3181
|
-
if (
|
|
3246
|
+
if (k) {
|
|
3182
3247
|
let t = r;
|
|
3183
|
-
const e = n ? void 0 : l?.get(
|
|
3248
|
+
const e = n ? void 0 : l?.get(Yo);
|
|
3184
3249
|
if (e) {
|
|
3185
3250
|
const o = ((t) => {
|
|
3186
|
-
if (t.length <
|
|
3187
|
-
if (t.slice(0,
|
|
3188
|
-
const e =
|
|
3189
|
-
if (null === e) return
|
|
3190
|
-
if (41 !== t.charCodeAt(e.end)) return
|
|
3191
|
-
if (44 !== t.charCodeAt(e.end + 1)) return
|
|
3192
|
-
if (41 !== t.charCodeAt(t.length - 1)) return
|
|
3251
|
+
if (t.length < Po.length) return No;
|
|
3252
|
+
if (t.slice(0, Po.length).toUpperCase() !== Oo) return No;
|
|
3253
|
+
const e = Mo(t, Po.length);
|
|
3254
|
+
if (null === e) return No;
|
|
3255
|
+
if (41 !== t.charCodeAt(e.end)) return No;
|
|
3256
|
+
if (44 !== t.charCodeAt(e.end + 1)) return No;
|
|
3257
|
+
if (41 !== t.charCodeAt(t.length - 1)) return No;
|
|
3193
3258
|
const o = e.value;
|
|
3194
|
-
return o.toUpperCase() ===
|
|
3259
|
+
return o.toUpperCase() === Do ? _o : 0 === o.length ? No : {
|
|
3195
3260
|
kind: "formula",
|
|
3196
3261
|
formula: o
|
|
3197
3262
|
};
|
|
3198
3263
|
})(r);
|
|
3199
|
-
"none" !== o.kind && (
|
|
3264
|
+
"none" !== o.kind && (M ??= new Ro(e), "spilled" === o.kind ? $ = M.placeholder(K, J) : M.anchor(K, J, o.formula) && (t = o.formula, X ||= ((t) => $o(t).some((t) => _(t) || !0 === A.get(t)?.getDeclaration().getReturnType()?.isVolatile()))(t)));
|
|
3200
3265
|
}
|
|
3201
|
-
if ($)
|
|
3266
|
+
if ($) X = !1;
|
|
3202
3267
|
else {
|
|
3203
3268
|
const e = [];
|
|
3204
|
-
I =
|
|
3269
|
+
I = R(t, K, J, e), P = [
|
|
3205
3270
|
I,
|
|
3206
3271
|
e,
|
|
3207
3272
|
t
|
|
3208
3273
|
];
|
|
3209
3274
|
}
|
|
3210
3275
|
}
|
|
3211
|
-
|
|
3276
|
+
G ? a?.onText?.(e) : m || o?.onText?.(r);
|
|
3212
3277
|
}, Ot = {
|
|
3213
3278
|
r: void 0,
|
|
3214
3279
|
t: void 0,
|
|
@@ -3228,11 +3293,11 @@ var Xo = {
|
|
|
3228
3293
|
name: "f",
|
|
3229
3294
|
attributes: Nt,
|
|
3230
3295
|
isSelfClosing: !1
|
|
3231
|
-
},
|
|
3296
|
+
}, Mt = {
|
|
3232
3297
|
name: "v",
|
|
3233
3298
|
attributes: {},
|
|
3234
3299
|
isSelfClosing: !1
|
|
3235
|
-
},
|
|
3300
|
+
}, $t = {
|
|
3236
3301
|
r: void 0,
|
|
3237
3302
|
s: void 0,
|
|
3238
3303
|
ht: void 0,
|
|
@@ -3243,61 +3308,61 @@ var Xo = {
|
|
|
3243
3308
|
outlineLevel: void 0
|
|
3244
3309
|
}, Rt = {
|
|
3245
3310
|
name: "row",
|
|
3246
|
-
attributes:
|
|
3311
|
+
attributes: $t,
|
|
3247
3312
|
isSelfClosing: !1
|
|
3248
|
-
},
|
|
3313
|
+
}, Lt = wo.NEED_MORE, Vt = wo.NOT_HANDLED, jt = wo.decodeText;
|
|
3249
3314
|
let Bt = !1;
|
|
3250
3315
|
const Ft = (t, e, o, s) => {
|
|
3251
3316
|
for (;;) {
|
|
3252
3317
|
let r = 0;
|
|
3253
3318
|
for (; e < o && (32 === (r = t.charCodeAt(e)) || 9 === r || 10 === r || 13 === r);) e++;
|
|
3254
|
-
if (e >= o) return
|
|
3319
|
+
if (e >= o) return Lt;
|
|
3255
3320
|
if (62 === r) return Bt = !1, e + 1;
|
|
3256
|
-
if (47 === r) return e + 1 >= o ?
|
|
3321
|
+
if (47 === r) return e + 1 >= o ? Lt : 62 !== t.charCodeAt(e + 1) ? Vt : (Bt = !0, e + 2);
|
|
3257
3322
|
const n = e;
|
|
3258
3323
|
for (; e < o && 61 !== (r = t.charCodeAt(e));) {
|
|
3259
|
-
if (62 === r || 47 === r || 32 === r || 9 === r || 10 === r || 13 === r) return
|
|
3324
|
+
if (62 === r || 47 === r || 32 === r || 9 === r || 10 === r || 13 === r) return Vt;
|
|
3260
3325
|
e++;
|
|
3261
3326
|
}
|
|
3262
|
-
if (e + 1 >= o) return
|
|
3327
|
+
if (e + 1 >= o) return Lt;
|
|
3263
3328
|
const i = e - n, a = t.charCodeAt(e + 1);
|
|
3264
|
-
if (34 !== a && 39 !== a) return
|
|
3329
|
+
if (34 !== a && 39 !== a) return Vt;
|
|
3265
3330
|
const l = e + 2;
|
|
3266
3331
|
let c = l;
|
|
3267
3332
|
for (; c < o && (r = t.charCodeAt(c)) !== a;) {
|
|
3268
|
-
if (38 === r || r < 32) return
|
|
3333
|
+
if (38 === r || r < 32) return Vt;
|
|
3269
3334
|
c++;
|
|
3270
3335
|
}
|
|
3271
|
-
if (c >= o) return
|
|
3336
|
+
if (c >= o) return Lt;
|
|
3272
3337
|
e = c + 1;
|
|
3273
|
-
const
|
|
3338
|
+
const u = t.charCodeAt(n);
|
|
3274
3339
|
if (2 === s) switch (i) {
|
|
3275
3340
|
case 1:
|
|
3276
|
-
114 ===
|
|
3341
|
+
114 === u ? $t.r = t.slice(l, c) : 115 === u && ($t.s = t.slice(l, c));
|
|
3277
3342
|
break;
|
|
3278
3343
|
case 2:
|
|
3279
|
-
t.startsWith("ht", n) && (
|
|
3344
|
+
t.startsWith("ht", n) && ($t.ht = t.slice(l, c));
|
|
3280
3345
|
break;
|
|
3281
3346
|
case 6:
|
|
3282
|
-
t.startsWith("hidden", n) && (
|
|
3347
|
+
t.startsWith("hidden", n) && ($t.hidden = t.slice(l, c));
|
|
3283
3348
|
break;
|
|
3284
3349
|
case 9:
|
|
3285
|
-
t.startsWith("collapsed", n) && (
|
|
3350
|
+
t.startsWith("collapsed", n) && ($t.collapsed = t.slice(l, c));
|
|
3286
3351
|
break;
|
|
3287
|
-
case 12: t.startsWith("customHeight", n) ?
|
|
3352
|
+
case 12: t.startsWith("customHeight", n) ? $t.customHeight = t.slice(l, c) : t.startsWith("customFormat", n) ? $t.customFormat = t.slice(l, c) : t.startsWith("outlineLevel", n) && ($t.outlineLevel = t.slice(l, c));
|
|
3288
3353
|
}
|
|
3289
|
-
else if (0 === s) 1 === i ? 114 ===
|
|
3290
|
-
else if (1 === i) 116 ===
|
|
3354
|
+
else if (0 === s) 1 === i ? 114 === u ? Ot.r = t.slice(l, c) : 116 === u ? Ot.t = t.slice(l, c) : 115 === u && (Ot.s = t.slice(l, c)) : 2 === i && 109 === t.charCodeAt(n + 1) && (99 === u ? Ot.cm = t.slice(l, c) : 118 === u && (Ot.vm = t.slice(l, c)));
|
|
3355
|
+
else if (1 === i) 116 === u && (Nt.t = t.slice(l, c));
|
|
3291
3356
|
else if (2 === i) {
|
|
3292
3357
|
const e = t.charCodeAt(n + 1);
|
|
3293
|
-
115 ===
|
|
3358
|
+
115 === u && 105 === e ? Nt.si = t.slice(l, c) : 99 === u && 97 === e && (Nt.ca = t.slice(l, c));
|
|
3294
3359
|
} else 3 === i && t.startsWith("ref", n) && (Nt.ref = t.slice(l, c));
|
|
3295
3360
|
}
|
|
3296
3361
|
}, Ht = (t, e, o) => 47 === t.charCodeAt(e + 1) && t.charCodeAt(e + 2) === o && 62 === t.charCodeAt(e + 3);
|
|
3297
3362
|
return {
|
|
3298
3363
|
...o,
|
|
3299
3364
|
onEnd: () => {
|
|
3300
|
-
if (
|
|
3365
|
+
if (u?.()) {
|
|
3301
3366
|
let t = 0;
|
|
3302
3367
|
const e = [], o = (t, e) => ({
|
|
3303
3368
|
min: t,
|
|
@@ -3312,15 +3377,15 @@ var Xo = {
|
|
|
3312
3377
|
}
|
|
3313
3378
|
});
|
|
3314
3379
|
for (const s of b) s.min > t && e.push(o(t, s.min - 1)), t = Math.max(t, s.max + 1);
|
|
3315
|
-
t <= 1048575 && e.push(o(t, 1048575)), e.length > 0 && (
|
|
3380
|
+
t <= 1048575 && e.push(o(t, 1048575)), e.length > 0 && (et.push(...e), et.sort((t, e) => t.min - e.min));
|
|
3316
3381
|
}
|
|
3317
|
-
|
|
3318
|
-
let s =
|
|
3382
|
+
et.length > 0 && (e.rows = v.runsToRefs(et, !1));
|
|
3383
|
+
let s = L.done(ns);
|
|
3319
3384
|
s = ((t, e) => {
|
|
3320
3385
|
let o = null;
|
|
3321
3386
|
for (let e = 0; e < t.length; e++) {
|
|
3322
3387
|
const s = t[e];
|
|
3323
|
-
if (!
|
|
3388
|
+
if (!is.test(s.value[2])) continue;
|
|
3324
3389
|
o ??= /* @__PURE__ */ new Map();
|
|
3325
3390
|
const r = s.value[0], n = o.get(r);
|
|
3326
3391
|
n ? n.push(s) : o.set(r, [s]);
|
|
@@ -3340,40 +3405,40 @@ var Xo = {
|
|
|
3340
3405
|
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);
|
|
3341
3406
|
}
|
|
3342
3407
|
if (n !== (r.rowEnd - r.rowStart + 1) * (r.colEnd - r.colStart + 1)) continue;
|
|
3343
|
-
const i =
|
|
3408
|
+
const i = Fo(v.resolveRelativeToA1(o.value[1], r.rowStart, r.colStart), r);
|
|
3344
3409
|
if (i) {
|
|
3345
3410
|
e.push(i);
|
|
3346
3411
|
for (let e = 0; e < t.length; e++) s.add(t[e]);
|
|
3347
3412
|
}
|
|
3348
3413
|
}
|
|
3349
3414
|
return 0 === s.size ? t : t.filter((t) => !s.has(t));
|
|
3350
|
-
})(s,
|
|
3415
|
+
})(s, B);
|
|
3351
3416
|
const r = s.length;
|
|
3352
|
-
if (r > 0 ||
|
|
3417
|
+
if (r > 0 || B.length > 0) {
|
|
3353
3418
|
const t = new Array(r);
|
|
3354
3419
|
for (let e = 0; e < r; e++) {
|
|
3355
|
-
const o = s[e], r =
|
|
3420
|
+
const o = s[e], r = v.rangeToString(o), n = o.value[1], i = v.resolveRelativeToA1(n, o.rowStart, o.colStart);
|
|
3356
3421
|
t[e] = [r, i];
|
|
3357
3422
|
}
|
|
3358
|
-
for (let e = 0; e <
|
|
3359
|
-
const o =
|
|
3360
|
-
t.push([
|
|
3423
|
+
for (let e = 0; e < B.length; e++) {
|
|
3424
|
+
const o = B[e], s = o.ref;
|
|
3425
|
+
t.push([v.cellToString({
|
|
3361
3426
|
rowIndex: s.rowStart,
|
|
3362
3427
|
colIndex: s.colStart
|
|
3363
|
-
}),
|
|
3428
|
+
}), st(o)]), j.push([v.rangeToString(s), "dynamic"]);
|
|
3364
3429
|
}
|
|
3365
3430
|
e.formulas = t;
|
|
3366
3431
|
}
|
|
3367
|
-
const i =
|
|
3432
|
+
const i = q.done(!0), a = i.length;
|
|
3368
3433
|
if (a > 0) {
|
|
3369
3434
|
const t = new Array(a);
|
|
3370
3435
|
for (let e = 0; e < a; e++) {
|
|
3371
|
-
const o = i[e], s =
|
|
3436
|
+
const o = i[e], s = v.rangeToString(o);
|
|
3372
3437
|
t[e] = s;
|
|
3373
3438
|
}
|
|
3374
3439
|
e.volatile = t;
|
|
3375
3440
|
}
|
|
3376
|
-
|
|
3441
|
+
M && j.push(...M.getFormulaArray()), j.length > 0 && (e.formulaArray = [...j]);
|
|
3377
3442
|
const l = S.length;
|
|
3378
3443
|
if (l > 0) {
|
|
3379
3444
|
S.sort(n.createRangeComparator(p.Axis.Column));
|
|
@@ -3382,12 +3447,12 @@ var Xo = {
|
|
|
3382
3447
|
a.push(t);
|
|
3383
3448
|
let c = null;
|
|
3384
3449
|
for (let e = 1; e < l; e++) c = S[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);
|
|
3385
|
-
const
|
|
3386
|
-
for (let t = 0; t <
|
|
3387
|
-
const e = a[t], o =
|
|
3388
|
-
|
|
3450
|
+
const u = a.length, h = new Array(u);
|
|
3451
|
+
for (let t = 0; t < u; t++) {
|
|
3452
|
+
const e = a[t], o = v.rangeToString(e);
|
|
3453
|
+
h[t] = [o, e.value];
|
|
3389
3454
|
}
|
|
3390
|
-
e.directStyles =
|
|
3455
|
+
e.directStyles = h;
|
|
3391
3456
|
}
|
|
3392
3457
|
const c = t.build();
|
|
3393
3458
|
c && (e.data = c.tuples), o?.onEnd?.();
|
|
@@ -3398,68 +3463,68 @@ var Xo = {
|
|
|
3398
3463
|
elementScanners: [{
|
|
3399
3464
|
name: "c",
|
|
3400
3465
|
scan: (t, e, o) => {
|
|
3401
|
-
if (!
|
|
3466
|
+
if (!m || null !== Q) return Vt;
|
|
3402
3467
|
Ot.r = Ot.t = Ot.s = Ot.cm = Ot.vm = void 0;
|
|
3403
3468
|
let s = Ft(t, e + 2, o, 0);
|
|
3404
3469
|
if (s < 0) return s;
|
|
3405
3470
|
const r = Ot.t;
|
|
3406
|
-
if (void 0 === Ot.r || "str" === r || "inlineStr" === r) return
|
|
3407
|
-
let n = !1, i = -1, a = -1, l = -1, c = -1,
|
|
3471
|
+
if (void 0 === Ot.r || "str" === r || "inlineStr" === r) return Vt;
|
|
3472
|
+
let n = !1, i = -1, a = -1, l = -1, c = -1, u = s;
|
|
3408
3473
|
if (!Bt) for (Nt.t = Nt.si = Nt.ref = Nt.ca = void 0;;) {
|
|
3409
3474
|
const e = t.indexOf("<", s);
|
|
3410
|
-
if (-1 === e || e + 3 >= o) return
|
|
3475
|
+
if (-1 === e || e + 3 >= o) return Lt;
|
|
3411
3476
|
for (let o = s; o < e; o++) {
|
|
3412
3477
|
const e = t.charCodeAt(o);
|
|
3413
|
-
if (32 !== e && 9 !== e && 10 !== e && 13 !== e) return
|
|
3478
|
+
if (32 !== e && 9 !== e && 10 !== e && 13 !== e) return Vt;
|
|
3414
3479
|
}
|
|
3415
|
-
const r = t.charCodeAt(e + 1),
|
|
3480
|
+
const r = t.charCodeAt(e + 1), h = t.charCodeAt(e + 2);
|
|
3416
3481
|
if (47 === r) {
|
|
3417
|
-
if (!Ht(t, e, 99)) return
|
|
3418
|
-
|
|
3482
|
+
if (!Ht(t, e, 99)) return Vt;
|
|
3483
|
+
u = e + 4;
|
|
3419
3484
|
break;
|
|
3420
3485
|
}
|
|
3421
|
-
if (102 === r && !n && -1 === l && (32 ===
|
|
3486
|
+
if (102 === r && !n && -1 === l && (32 === h || 62 === h || 47 === h)) {
|
|
3422
3487
|
if (n = !0, s = Ft(t, e + 2, o, 1), s < 0) return s;
|
|
3423
|
-
if ("dataTable" === Nt.t) return
|
|
3488
|
+
if ("dataTable" === Nt.t) return Vt;
|
|
3424
3489
|
if (Bt) continue;
|
|
3425
3490
|
const r = t.indexOf("<", s);
|
|
3426
|
-
if (-1 === r || r + 3 >= o) return
|
|
3427
|
-
if (!Ht(t, r, 102)) return
|
|
3491
|
+
if (-1 === r || r + 3 >= o) return Lt;
|
|
3492
|
+
if (!Ht(t, r, 102)) return Vt;
|
|
3428
3493
|
i = s, a = r, s = r + 4;
|
|
3429
3494
|
continue;
|
|
3430
3495
|
}
|
|
3431
|
-
if (118 === r && 62 ===
|
|
3496
|
+
if (118 === r && 62 === h && -1 === l) {
|
|
3432
3497
|
const r = t.indexOf("<", e + 3);
|
|
3433
|
-
if (-1 === r || r + 3 >= o) return
|
|
3434
|
-
if (!Ht(t, r, 118)) return
|
|
3498
|
+
if (-1 === r || r + 3 >= o) return Lt;
|
|
3499
|
+
if (!Ht(t, r, 118)) return Vt;
|
|
3435
3500
|
l = e + 3, c = r, s = r + 4;
|
|
3436
3501
|
continue;
|
|
3437
3502
|
}
|
|
3438
|
-
return
|
|
3503
|
+
return Vt;
|
|
3439
3504
|
}
|
|
3440
|
-
return Et(Dt), n && (Et(_t), a > i && Pt(jt(t.slice(i, a))), It(_t)), -1 !== l && (Et(
|
|
3505
|
+
return Et(Dt), n && (Et(_t), a > i && Pt(jt(t.slice(i, a))), It(_t)), -1 !== l && (Et(Mt), c > l && Pt(jt(t.slice(l, c))), It(Mt)), It(Dt), u;
|
|
3441
3506
|
}
|
|
3442
3507
|
}, {
|
|
3443
3508
|
name: "row",
|
|
3444
3509
|
openTag: Rt,
|
|
3445
3510
|
scan: (t, e, o) => {
|
|
3446
|
-
if (!St ||
|
|
3447
|
-
|
|
3511
|
+
if (!St || m || null !== Q) return Vt;
|
|
3512
|
+
$t.r = $t.s = $t.ht = $t.hidden = $t.collapsed = $t.customHeight = $t.customFormat = $t.outlineLevel = void 0;
|
|
3448
3513
|
const s = Ft(t, e + 4, o, 2);
|
|
3449
|
-
return s < 0 ? s : Bt || void 0 ===
|
|
3514
|
+
return s < 0 ? s : Bt || void 0 === $t.r ? Vt : (Et(Rt), s);
|
|
3450
3515
|
}
|
|
3451
3516
|
}]
|
|
3452
3517
|
};
|
|
3453
|
-
},
|
|
3518
|
+
}, us = /* @__PURE__ */ new Map([
|
|
3454
3519
|
["urn:schemas-microsoft-com:vml", "v"],
|
|
3455
3520
|
["urn:schemas-microsoft-com:office:office", "o"],
|
|
3456
3521
|
["urn:schemas-microsoft-com:office:excel", "x"]
|
|
3457
|
-
]),
|
|
3458
|
-
function
|
|
3522
|
+
]), hs = [...us].map(([t, e]) => ` xmlns:${e}="${t}"`).join(""), ds = /<(\/?)([A-Za-z_][\w.-]*(?::[\w.-]+)?)((?:[^>"']|"[^"]*"|'[^']*')*?)(\/?)>/g, ps = /(\s+)([A-Za-z_][\w.-]*(?::[\w.-]+)?)(\s*=\s*)("[^"]*"|'[^']*')/g, fs = /\sxmlns(?::([\w.-]+))?\s*=\s*(?:"([^"]*)"|'([^']*)')/g;
|
|
3523
|
+
function gs(t) {
|
|
3459
3524
|
if (!t || !((t) => {
|
|
3460
3525
|
let e;
|
|
3461
|
-
for (
|
|
3462
|
-
const t =
|
|
3526
|
+
for (fs.lastIndex = 0; null !== (e = fs.exec(t));) {
|
|
3527
|
+
const t = us.get(e[2] ?? e[3] ?? "");
|
|
3463
3528
|
if (t && t !== (e[1] ?? "")) return !0;
|
|
3464
3529
|
}
|
|
3465
3530
|
return !1;
|
|
@@ -3476,34 +3541,34 @@ function us(t) {
|
|
|
3476
3541
|
const s = e[o].bindings.get(t);
|
|
3477
3542
|
if (void 0 !== s) return s;
|
|
3478
3543
|
}
|
|
3479
|
-
})(n, o), a = void 0 !== i ?
|
|
3544
|
+
})(n, o), a = void 0 !== i ? us.get(i) : void 0;
|
|
3480
3545
|
return a ? `${a}:${-1 === r ? t : t.substring(r + 1)}` : null;
|
|
3481
3546
|
};
|
|
3482
3547
|
let s = !1, r = !1;
|
|
3483
|
-
const n = t.replace(
|
|
3548
|
+
const n = t.replace(ds, (t, n, i, a, l) => {
|
|
3484
3549
|
if (n) {
|
|
3485
3550
|
const s = e[e.length - 1], r = o(i, null, !1);
|
|
3486
3551
|
return s && s.name === i && (s.nested > 0 ? s.nested-- : e.pop()), r ? `</${r}>` : t;
|
|
3487
3552
|
}
|
|
3488
3553
|
const c = ((t) => {
|
|
3489
3554
|
let e, o = null;
|
|
3490
|
-
for (
|
|
3555
|
+
for (fs.lastIndex = 0; null !== (e = fs.exec(t));) (o ??= /* @__PURE__ */ new Map()).set(e[1] ?? "", e[2] ?? e[3] ?? "");
|
|
3491
3556
|
return o;
|
|
3492
3557
|
})(a);
|
|
3493
3558
|
c?.forEach((t, e) => {
|
|
3494
|
-
const o = [...
|
|
3559
|
+
const o = [...us].find(([, t]) => t === e)?.[0];
|
|
3495
3560
|
o && o !== t && (s = !0);
|
|
3496
3561
|
});
|
|
3497
|
-
const
|
|
3498
|
-
let
|
|
3562
|
+
const u = o(i, c, !1);
|
|
3563
|
+
let h = a.replace(ps, (t, e, s, r, n) => {
|
|
3499
3564
|
if ("xmlns" === s || s.startsWith("xmlns:")) {
|
|
3500
3565
|
const e = n.slice(1, -1);
|
|
3501
|
-
return
|
|
3566
|
+
return us.has(e) ? "" : t;
|
|
3502
3567
|
}
|
|
3503
3568
|
const i = o(s, c, !0);
|
|
3504
3569
|
return i ? `${e}${i}${r}${n}` : t;
|
|
3505
3570
|
});
|
|
3506
|
-
if (r || (r = !0,
|
|
3571
|
+
if (r || (r = !0, h = h.replace(/\s+$/, "") + hs), !l) {
|
|
3507
3572
|
const t = e[e.length - 1];
|
|
3508
3573
|
c ? e.push({
|
|
3509
3574
|
name: i,
|
|
@@ -3511,11 +3576,11 @@ function us(t) {
|
|
|
3511
3576
|
nested: 0
|
|
3512
3577
|
}) : t && t.name === i && t.nested++;
|
|
3513
3578
|
}
|
|
3514
|
-
return `<${
|
|
3579
|
+
return `<${u ?? i}${h}${l}>`;
|
|
3515
3580
|
});
|
|
3516
3581
|
return s ? t : n;
|
|
3517
3582
|
}
|
|
3518
|
-
var
|
|
3583
|
+
var ms = {
|
|
3519
3584
|
creator: "author",
|
|
3520
3585
|
category: "category",
|
|
3521
3586
|
description: "comments",
|
|
@@ -3528,47 +3593,47 @@ var ds = {
|
|
|
3528
3593
|
revision: "revisionNumber",
|
|
3529
3594
|
subject: "subject",
|
|
3530
3595
|
title: "title"
|
|
3531
|
-
},
|
|
3596
|
+
}, bs = {
|
|
3532
3597
|
Company: "company",
|
|
3533
3598
|
Manager: "manager"
|
|
3534
|
-
},
|
|
3535
|
-
lpwstr:
|
|
3536
|
-
lpstr:
|
|
3537
|
-
bstr:
|
|
3538
|
-
i1:
|
|
3539
|
-
i2:
|
|
3540
|
-
i4:
|
|
3541
|
-
i8:
|
|
3542
|
-
int:
|
|
3543
|
-
ui1:
|
|
3544
|
-
ui2:
|
|
3545
|
-
ui4:
|
|
3546
|
-
ui8:
|
|
3547
|
-
uint:
|
|
3548
|
-
r4:
|
|
3549
|
-
r8:
|
|
3550
|
-
decimal:
|
|
3551
|
-
bool:
|
|
3552
|
-
filetime:
|
|
3553
|
-
date:
|
|
3554
|
-
},
|
|
3555
|
-
const e = t.kind ?
|
|
3599
|
+
}, ys = {
|
|
3600
|
+
lpwstr: E.Type.String,
|
|
3601
|
+
lpstr: E.Type.String,
|
|
3602
|
+
bstr: E.Type.String,
|
|
3603
|
+
i1: E.Type.Number,
|
|
3604
|
+
i2: E.Type.Number,
|
|
3605
|
+
i4: E.Type.Number,
|
|
3606
|
+
i8: E.Type.Number,
|
|
3607
|
+
int: E.Type.Number,
|
|
3608
|
+
ui1: E.Type.Number,
|
|
3609
|
+
ui2: E.Type.Number,
|
|
3610
|
+
ui4: E.Type.Number,
|
|
3611
|
+
ui8: E.Type.Number,
|
|
3612
|
+
uint: E.Type.Number,
|
|
3613
|
+
r4: E.Type.Float,
|
|
3614
|
+
r8: E.Type.Float,
|
|
3615
|
+
decimal: E.Type.Float,
|
|
3616
|
+
bool: E.Type.Boolean,
|
|
3617
|
+
filetime: E.Type.Date,
|
|
3618
|
+
date: E.Type.Date
|
|
3619
|
+
}, vs = (t) => {
|
|
3620
|
+
const e = t.kind ? ys[t.kind] : void 0;
|
|
3556
3621
|
if (!e) return null;
|
|
3557
3622
|
const o = t.value.trim();
|
|
3558
3623
|
let s;
|
|
3559
|
-
if (e ===
|
|
3624
|
+
if (e === E.Type.String) s = {
|
|
3560
3625
|
key: t.key,
|
|
3561
3626
|
type: e,
|
|
3562
3627
|
value: t.value
|
|
3563
3628
|
};
|
|
3564
|
-
else if (e ===
|
|
3629
|
+
else if (e === E.Type.Boolean) {
|
|
3565
3630
|
if ("true" !== o && "false" !== o && "1" !== o && "0" !== o) return null;
|
|
3566
3631
|
s = {
|
|
3567
3632
|
key: t.key,
|
|
3568
3633
|
type: e,
|
|
3569
3634
|
value: "true" === o || "1" === o
|
|
3570
3635
|
};
|
|
3571
|
-
} else if (e ===
|
|
3636
|
+
} else if (e === E.Type.Date) {
|
|
3572
3637
|
const r = new Date(o);
|
|
3573
3638
|
if (!o || isNaN(r.getTime())) return null;
|
|
3574
3639
|
s = {
|
|
@@ -3579,32 +3644,32 @@ var ds = {
|
|
|
3579
3644
|
} else {
|
|
3580
3645
|
const r = Number(o);
|
|
3581
3646
|
if (!o || !Number.isFinite(r)) return null;
|
|
3582
|
-
const n = e ===
|
|
3647
|
+
const n = e === E.Type.Number && r >= -2147483648 && r <= 2147483647;
|
|
3583
3648
|
s = {
|
|
3584
3649
|
key: t.key,
|
|
3585
|
-
type: n ? e :
|
|
3650
|
+
type: n ? e : E.Type.Float,
|
|
3586
3651
|
value: r
|
|
3587
3652
|
};
|
|
3588
3653
|
}
|
|
3589
3654
|
return t.linkTarget && (s.linkTarget = t.linkTarget), s;
|
|
3590
|
-
},
|
|
3655
|
+
}, xs = "hiddenXfs", ws = (t) => (Array.isArray(t) ? t[1] : t?.v)?.s, Ts = (t) => {
|
|
3591
3656
|
if (!t || 0 === t.length) return !1;
|
|
3592
|
-
const e =
|
|
3657
|
+
const e = v.refsToRuns(t, !0);
|
|
3593
3658
|
let o = 0;
|
|
3594
3659
|
for (const t of e) {
|
|
3595
3660
|
if (t.min > o || void 0 === t.value?.s) return !1;
|
|
3596
3661
|
o = Math.max(o, t.max + 1);
|
|
3597
3662
|
}
|
|
3598
|
-
return o >
|
|
3599
|
-
},
|
|
3663
|
+
return o > F;
|
|
3664
|
+
}, Ss = (t, e) => {
|
|
3600
3665
|
t.protection = {
|
|
3601
3666
|
...t.protection,
|
|
3602
3667
|
showFormulas: e
|
|
3603
3668
|
};
|
|
3604
|
-
},
|
|
3605
|
-
const o =
|
|
3669
|
+
}, ks = "pivotButtonXfs", As = (t, e) => {
|
|
3670
|
+
const o = T(t, e);
|
|
3606
3671
|
if (!o || !t.location) return null;
|
|
3607
|
-
const s =
|
|
3672
|
+
const s = v.fastStringToRange(t.location), r = {
|
|
3608
3673
|
rowIndex: s.rowStart - o.top,
|
|
3609
3674
|
colIndex: s.colStart
|
|
3610
3675
|
};
|
|
@@ -3618,51 +3683,51 @@ var ds = {
|
|
|
3618
3683
|
origin: r,
|
|
3619
3684
|
formats: o
|
|
3620
3685
|
};
|
|
3621
|
-
},
|
|
3686
|
+
}, Cs = (t, e, o, s) => {
|
|
3622
3687
|
let r = t;
|
|
3623
3688
|
const n = s?.numberFormat ?? e ?? 0;
|
|
3624
|
-
if (void 0 !== t.numberFormat &&
|
|
3689
|
+
if (void 0 !== t.numberFormat && Es(t.numberFormat, n)) {
|
|
3625
3690
|
const { numberFormat: t, ...e } = r;
|
|
3626
3691
|
r = e;
|
|
3627
3692
|
}
|
|
3628
3693
|
const i = r.alignment;
|
|
3629
|
-
if (null !== o && i?.horizontal ===
|
|
3694
|
+
if (null !== o && i?.horizontal === u.HorizontalAlignment.Left && (i.indent ?? 0) === o) {
|
|
3630
3695
|
const { horizontal: t, indent: e, ...o } = i, { alignment: s, ...n } = r;
|
|
3631
|
-
r =
|
|
3696
|
+
r = Ns(o) ? n : {
|
|
3632
3697
|
...n,
|
|
3633
3698
|
alignment: o
|
|
3634
3699
|
};
|
|
3635
3700
|
}
|
|
3636
3701
|
if (s) {
|
|
3637
3702
|
const { numberFormat: t, ...e } = s;
|
|
3638
|
-
if (r =
|
|
3703
|
+
if (r = Os(r, e), r.alignment && Ns(r.alignment)) {
|
|
3639
3704
|
const { alignment: t, ...e } = r;
|
|
3640
3705
|
r = e;
|
|
3641
3706
|
}
|
|
3642
3707
|
}
|
|
3643
3708
|
if (r === t) return t;
|
|
3644
|
-
for (const t of Object.keys(r)) if (void 0 !== r[t] && ("named" !== t || r.named !==
|
|
3709
|
+
for (const t of Object.keys(r)) if (void 0 !== r[t] && ("named" !== t || r.named !== h.BuiltInName.Normal)) return r;
|
|
3645
3710
|
return null;
|
|
3646
|
-
},
|
|
3711
|
+
}, Es = (t, e) => t === e || c.toBuiltInID(t) === c.toBuiltInID(e), Is = (t) => "object" == typeof t && null !== t && !Array.isArray(t), Ps = (t, e) => !(!Is(t) || !Is(e)) && ("solid" === t.patternType && "solid" === e.patternType ? t.foreground === e.foreground : a.JSONStableStringify(t) === a.JSONStableStringify(e)), Os = (t, e) => {
|
|
3647
3712
|
let o = null;
|
|
3648
3713
|
const s = (e, s) => {
|
|
3649
3714
|
o ??= { ...t }, void 0 === s ? delete o[e] : o[e] = s;
|
|
3650
3715
|
};
|
|
3651
3716
|
for (const o of Object.keys(t)) {
|
|
3652
3717
|
const r = t[o], n = e[o];
|
|
3653
|
-
if (void 0 !== n && void 0 !== r) if ("fill" === o)
|
|
3654
|
-
else if (
|
|
3655
|
-
const t =
|
|
3718
|
+
if (void 0 !== n && void 0 !== r) if ("fill" === o) Ps(r, n) && s(o);
|
|
3719
|
+
else if (Is(r) && Is(n)) {
|
|
3720
|
+
const t = Os(r, n);
|
|
3656
3721
|
t !== r && s(o, Object.keys(t).some((e) => void 0 !== t[e]) ? t : void 0);
|
|
3657
3722
|
} else r === n && s(o);
|
|
3658
3723
|
}
|
|
3659
3724
|
return o ?? t;
|
|
3660
|
-
},
|
|
3661
|
-
vertical:
|
|
3725
|
+
}, Ds = {
|
|
3726
|
+
vertical: u.VerticalAlignment.Bottom,
|
|
3662
3727
|
relativeIndent: 0,
|
|
3663
|
-
overflow:
|
|
3728
|
+
overflow: u.Overflow.Visible,
|
|
3664
3729
|
rotation: 0
|
|
3665
|
-
},
|
|
3730
|
+
}, Ns = (t) => Object.keys(t).every((e) => void 0 === t[e] || Ds[e] === t[e]), _s = (t, e) => {
|
|
3666
3731
|
const o = Math.max(t.rowStart, e.rowStart), s = Math.min(t.rowEnd, e.rowEnd), r = Math.max(t.colStart, e.colStart), n = Math.min(t.colEnd, e.colEnd);
|
|
3667
3732
|
return o <= s && r <= n ? {
|
|
3668
3733
|
rowStart: o,
|
|
@@ -3670,7 +3735,7 @@ var ds = {
|
|
|
3670
3735
|
colStart: r,
|
|
3671
3736
|
colEnd: n
|
|
3672
3737
|
} : null;
|
|
3673
|
-
},
|
|
3738
|
+
}, Ms = (t, e) => {
|
|
3674
3739
|
const o = [];
|
|
3675
3740
|
return t.rowStart < e.rowStart && o.push({
|
|
3676
3741
|
...t,
|
|
@@ -3689,24 +3754,24 @@ var ds = {
|
|
|
3689
3754
|
colStart: e.colEnd + 1,
|
|
3690
3755
|
colEnd: t.colEnd
|
|
3691
3756
|
}), o;
|
|
3692
|
-
},
|
|
3757
|
+
}, $s = "xfComplements", Rs = (t, e) => {
|
|
3693
3758
|
if ("string" == typeof t) return void e.push(t);
|
|
3694
3759
|
const o = Array.isArray(t) ? t : [t];
|
|
3695
3760
|
for (let t = 0; t < o.length; t++) {
|
|
3696
|
-
const s =
|
|
3761
|
+
const s = v.rangeToString(o[t]);
|
|
3697
3762
|
s && e.push(s);
|
|
3698
3763
|
}
|
|
3699
|
-
},
|
|
3764
|
+
}, Ls = (t) => {
|
|
3700
3765
|
const e = Array.isArray(t) ? t[1] : t.v;
|
|
3701
3766
|
if (!e || !("s" in e)) return;
|
|
3702
3767
|
const o = e.s;
|
|
3703
3768
|
return delete e.s, o;
|
|
3704
|
-
},
|
|
3769
|
+
}, Vs = (t, e, o, s) => {
|
|
3705
3770
|
if (!t) return;
|
|
3706
3771
|
const r = e ? 2 : 1, n = e ? o.rowStart : o.colStart, i = e ? o.rowEnd : o.colEnd;
|
|
3707
3772
|
let a, l = -1;
|
|
3708
3773
|
for (const o of t) {
|
|
3709
|
-
const t =
|
|
3774
|
+
const t = v.refToRun(o, e), c = Ls(o);
|
|
3710
3775
|
t && void 0 !== c ? c !== l || (e ? a.colEnd : a.rowEnd) + 1 !== t.min ? (a = {
|
|
3711
3776
|
colStart: e ? t.min : n,
|
|
3712
3777
|
rowStart: e ? n : t.min,
|
|
@@ -3718,7 +3783,7 @@ var ds = {
|
|
|
3718
3783
|
}
|
|
3719
3784
|
}, l = c, s.push(a)) : e ? a.colEnd = t.max : a.rowEnd = t.max : l = -1;
|
|
3720
3785
|
}
|
|
3721
|
-
},
|
|
3786
|
+
}, js = {
|
|
3722
3787
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml": "workbooks",
|
|
3723
3788
|
"application/vnd.ms-excel.sheet.macroEnabled.main+xml": "workbooks",
|
|
3724
3789
|
"application/vnd.ms-excel.sheet.binary.macroEnabled.main": "workbooks",
|
|
@@ -3751,7 +3816,7 @@ var ds = {
|
|
|
3751
3816
|
"application/vnd.ms-excel.externalLink": "links",
|
|
3752
3817
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml": "links",
|
|
3753
3818
|
"application/vnd.openxmlformats-officedocument.theme+xml": "themes"
|
|
3754
|
-
},
|
|
3819
|
+
}, Bs = ut({ readXLSX: () => Xs }), Fs = (t) => t.startsWith("/") ? t.slice(1) : t, Hs = [
|
|
3755
3820
|
208,
|
|
3756
3821
|
207,
|
|
3757
3822
|
17,
|
|
@@ -3760,56 +3825,56 @@ var ds = {
|
|
|
3760
3825
|
177,
|
|
3761
3826
|
26,
|
|
3762
3827
|
225
|
|
3763
|
-
],
|
|
3764
|
-
const { password: c, onVBA:
|
|
3765
|
-
await
|
|
3766
|
-
const
|
|
3828
|
+
], Ws = /^xl\/worksheets\/[^/]+\.xml$/i, zs = (t) => "string" == typeof t ? t : (t?.runs ?? []).map((t) => t.text ?? "").join(""), Xs = async (n, l) => {
|
|
3829
|
+
const { password: c, onVBA: u, profile: d, calcOnLoad: p = "auto", createWorkbookOptions: f = {}, ...g } = l ?? {};
|
|
3830
|
+
await k.load();
|
|
3831
|
+
const b = !!f.origin && "string" != typeof f.origin, y = d ? new me("function" == typeof d ? d : void 0) : null, x = [], w = (t, e, o) => {
|
|
3767
3832
|
x.push([
|
|
3768
3833
|
t,
|
|
3769
3834
|
e ?? "",
|
|
3770
3835
|
o
|
|
3771
3836
|
]);
|
|
3772
|
-
},
|
|
3837
|
+
}, T = { onWarning: w }, E = l?.progress, P = E?.onProgress ? E.onProgress.bind(E) : void 0, O = n.byteLength;
|
|
3773
3838
|
let D = 0, N = 0;
|
|
3774
|
-
const
|
|
3839
|
+
const _ = P ? (t) => {
|
|
3775
3840
|
if (D <= 0) return;
|
|
3776
3841
|
N += t;
|
|
3777
3842
|
const e = Math.min(O, Math.round(N / D * O));
|
|
3778
3843
|
P(e, O);
|
|
3779
|
-
} : void 0,
|
|
3780
|
-
let
|
|
3844
|
+
} : void 0, $ = import("./CNE-erNKNIT7bUb1.js");
|
|
3845
|
+
let L = null;
|
|
3781
3846
|
try {
|
|
3782
|
-
|
|
3847
|
+
L = new DOMParser();
|
|
3783
3848
|
} catch (n) {}
|
|
3784
|
-
let
|
|
3849
|
+
let V = null;
|
|
3785
3850
|
try {
|
|
3786
|
-
|
|
3851
|
+
V = new XMLSerializer();
|
|
3787
3852
|
} catch (n) {}
|
|
3788
|
-
let
|
|
3789
|
-
|
|
3853
|
+
let B, F, q, U = null;
|
|
3854
|
+
L || (U = import("./BedBCvJP064ZYuO8.js").then((e) => t(e.default, 1)));
|
|
3790
3855
|
try {
|
|
3791
|
-
const [t, e] = await Promise.all([
|
|
3792
|
-
|
|
3856
|
+
const [t, e] = await Promise.all([U, $]);
|
|
3857
|
+
B = new e.DOMTransformer(), F = L ?? new t.DOMParser(), q = V ?? new t.XMLSerializer();
|
|
3793
3858
|
} catch (n) {
|
|
3794
3859
|
throw new Error("Unable to load XLSX parser.", { cause: n });
|
|
3795
3860
|
}
|
|
3796
|
-
const
|
|
3861
|
+
const J = (t) => q.serializeToString(t);
|
|
3797
3862
|
if (((t) => {
|
|
3798
|
-
if (t.byteLength <
|
|
3799
|
-
const e = new Uint8Array(t, 0,
|
|
3800
|
-
return
|
|
3863
|
+
if (t.byteLength < Hs.length) return !1;
|
|
3864
|
+
const e = new Uint8Array(t, 0, Hs.length);
|
|
3865
|
+
return Hs.every((t, o) => e[o] === t);
|
|
3801
3866
|
})(n)) throw new i("This is an Excel 97-2003 workbook (.xls), which cannot be read. Save it as '.xlsx' and try again.");
|
|
3802
|
-
let
|
|
3867
|
+
let Y;
|
|
3803
3868
|
try {
|
|
3804
|
-
|
|
3869
|
+
Y = await ge.create(n);
|
|
3805
3870
|
} catch (n) {
|
|
3806
3871
|
throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.", { cause: n });
|
|
3807
3872
|
}
|
|
3808
3873
|
y?.mark("zip-open");
|
|
3809
3874
|
try {
|
|
3810
|
-
if (!
|
|
3875
|
+
if (!Y.has("[Content_Types].xml")) throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
|
|
3811
3876
|
const t = (t) => {
|
|
3812
|
-
const e =
|
|
3877
|
+
const e = Y.getEntry(t);
|
|
3813
3878
|
return e ? { content: e } : void 0;
|
|
3814
3879
|
}, o = {
|
|
3815
3880
|
workbooks: [],
|
|
@@ -3845,7 +3910,7 @@ var ds = {
|
|
|
3845
3910
|
const e = s.ContentType, o = s.PartName;
|
|
3846
3911
|
if (!e || !o) return;
|
|
3847
3912
|
t.overrides[o.startsWith("/") ? o.slice(1) : o] = e;
|
|
3848
|
-
const r =
|
|
3913
|
+
const r = js[e], n = r ? t[r] : void 0;
|
|
3849
3914
|
Array.isArray(n) && n.push(o);
|
|
3850
3915
|
} else if ("Default" === o) {
|
|
3851
3916
|
const e = s.Extension, o = s.ContentType;
|
|
@@ -3860,22 +3925,22 @@ var ds = {
|
|
|
3860
3925
|
x.push([t, "[Content_Types].xml"]);
|
|
3861
3926
|
})(`Error parsing content types: ${t?.message ?? t}`);
|
|
3862
3927
|
}
|
|
3863
|
-
}))(o), e = await
|
|
3928
|
+
}))(o), e = await Y.getTextStream("[Content_Types].xml");
|
|
3864
3929
|
if (!e) throw new Error("Error parsing content types: '[Content_Types].xml'");
|
|
3865
3930
|
try {
|
|
3866
|
-
await
|
|
3931
|
+
await Ne.parseStream(e, t, { xmlns: !1 });
|
|
3867
3932
|
} catch (n) {
|
|
3868
3933
|
throw new Error("Error parsing content types: '[Content_Types].xml'", { cause: n });
|
|
3869
3934
|
}
|
|
3870
|
-
|
|
3935
|
+
b && await Y.getBuffer("[Content_Types].xml");
|
|
3871
3936
|
}
|
|
3872
3937
|
y?.mark("content-types");
|
|
3873
3938
|
const l = o.sst, c = /* @__PURE__ */ new Set();
|
|
3874
|
-
for (const t of o.sheets) c.add(
|
|
3875
|
-
l && c.add(
|
|
3876
|
-
for (const t of c) D +=
|
|
3877
|
-
if (await
|
|
3878
|
-
const e =
|
|
3939
|
+
for (const t of o.sheets) c.add(Fs(t));
|
|
3940
|
+
l && c.add(Fs(l));
|
|
3941
|
+
for (const t of c) D += Y.uncompressedSize(t);
|
|
3942
|
+
if (await Y.prefetch((t) => !c.has(t) && !Ws.test(t)), y?.mark("prefetch-side-parts"), 0 === o.workbooks.length) {
|
|
3943
|
+
const e = pt("_rels/.rels", t, F, B, T), s = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
|
|
3879
3944
|
if (e) {
|
|
3880
3945
|
for (const t of e.values()) if (t.type === s && t.target) {
|
|
3881
3946
|
o.workbooks.push(t.target);
|
|
@@ -3884,83 +3949,83 @@ var ds = {
|
|
|
3884
3949
|
}
|
|
3885
3950
|
}
|
|
3886
3951
|
if (0 === o.workbooks.length) throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
|
|
3887
|
-
const g = f?.resources ?? new
|
|
3888
|
-
|
|
3952
|
+
const g = f?.resources ?? new S(), k = g.beginPersist(), N = {}, $ = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Map();
|
|
3953
|
+
L.set("parseInlineDxf", (t) => {
|
|
3889
3954
|
if (!t) return;
|
|
3890
|
-
const e =
|
|
3955
|
+
const e = F.parseFromString(`<dxf xmlns:x14="${re}" xmlns:xm="${G}">${t}</dxf>`, "text/xml")?.documentElement;
|
|
3891
3956
|
if (!e) return;
|
|
3892
|
-
const o =
|
|
3957
|
+
const o = B.parseDxf(e, "", T);
|
|
3893
3958
|
return Object.keys(o).length > 0 ? o : void 0;
|
|
3894
3959
|
});
|
|
3895
|
-
const
|
|
3896
|
-
|
|
3897
|
-
const q = /* @__PURE__ */ new Map(),
|
|
3898
|
-
|
|
3899
|
-
},
|
|
3960
|
+
const V = Ot("metadata", o, t, F, B, T).entries().next()?.value?.[1]?.metadata;
|
|
3961
|
+
V && L.set("metadata", V), L.set(Qo, Z());
|
|
3962
|
+
const q = /* @__PURE__ */ new Map(), U = [], et = /* @__PURE__ */ new Set(), ot = (t) => {
|
|
3963
|
+
et.add(Fs(t));
|
|
3964
|
+
}, st = (e, o = q) => {
|
|
3900
3965
|
const s = e.lastIndexOf("/"), r = e.substring(0, s + 1) + "_rels/" + e.substring(s + 1, e.length) + ".rels";
|
|
3901
3966
|
let n = o.get(r);
|
|
3902
|
-
return n || (n =
|
|
3903
|
-
},
|
|
3904
|
-
let n =
|
|
3967
|
+
return n || (n = pt(r, t, F, B, Tt), o.set(r, n)), n;
|
|
3968
|
+
}, rt = (e, o, s, r = q) => {
|
|
3969
|
+
let n = st(o, r).get(e), i = n?.target;
|
|
3905
3970
|
if (!i) return null;
|
|
3906
3971
|
if ("External" === n.targetMode) {
|
|
3907
3972
|
if (!s) return n.target;
|
|
3908
3973
|
const t = g.add({ source: { external: n.target } });
|
|
3909
|
-
return t.addReference(N),
|
|
3974
|
+
return t.addReference(N), $.add(t), k.toResourceId(t);
|
|
3910
3975
|
}
|
|
3911
3976
|
const a = o.lastIndexOf("/"), l = o.substring(0, a + 1);
|
|
3912
|
-
i.startsWith("/") || (i = l + i), i =
|
|
3913
|
-
const c =
|
|
3914
|
-
let
|
|
3915
|
-
if (!
|
|
3977
|
+
i.startsWith("/") || (i = l + i), i = Ct(i);
|
|
3978
|
+
const c = B?.getVisitorParamsState().get("dxfs");
|
|
3979
|
+
let u = r.get(i);
|
|
3980
|
+
if (!u) {
|
|
3916
3981
|
const e = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet", o = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink";
|
|
3917
3982
|
if (n.type === e) {
|
|
3918
3983
|
const t = {};
|
|
3919
|
-
|
|
3984
|
+
u = t;
|
|
3920
3985
|
const e = async () => {
|
|
3921
|
-
const e =
|
|
3922
|
-
|
|
3923
|
-
}, void 0,
|
|
3986
|
+
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
|
+
w(t, e ? `${e} (${i})` : i, o);
|
|
3988
|
+
}, void 0, L), o = await Y.getTextStream(i, _);
|
|
3924
3989
|
if (o) try {
|
|
3925
|
-
await
|
|
3990
|
+
await Ne.parseStream(o, e, {
|
|
3926
3991
|
xmlns: !1,
|
|
3927
3992
|
lean: !0
|
|
3928
3993
|
});
|
|
3929
3994
|
} catch (t) {
|
|
3930
3995
|
throw new Error(`Error parsing sheet: '${i}'`, { cause: t });
|
|
3931
3996
|
}
|
|
3932
|
-
const s =
|
|
3997
|
+
const s = st(i, r);
|
|
3933
3998
|
if (s) {
|
|
3934
|
-
|
|
3999
|
+
at(t, i, s, r), R(t), z(t);
|
|
3935
4000
|
const e = [];
|
|
3936
4001
|
s.forEach((t, o) => {
|
|
3937
4002
|
if ("http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable" !== t.type) return;
|
|
3938
|
-
const s =
|
|
4003
|
+
const s = ft(o, i, t.type, (t) => "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition" !== t);
|
|
3939
4004
|
if (!s?.xml) return;
|
|
3940
4005
|
const r = /<pivotTableDefinition\b[^>]*>/.exec(s.xml)?.[0] ?? "", n = parseInt(/\scacheId="(\d+)"/.exec(r)?.[1] ?? "", 10);
|
|
3941
4006
|
if (isNaN(n)) return void x.push([`Pivot table '${s.name}' names no cache and was dropped.`, i]);
|
|
3942
|
-
const a = /\sname="([^"]*)"/.exec(r)?.[1], l =
|
|
4007
|
+
const a = /\sname="([^"]*)"/.exec(r)?.[1], l = j(s.xml);
|
|
3943
4008
|
if (!l) return void x.push([`Pivot table '${s.name}' states no location and was dropped.`, i]);
|
|
3944
|
-
const c =
|
|
4009
|
+
const c = B?.getVisitorParamsState(), u = it(c?.get("numFmts"), c?.get("dxfs")), h = dt(s.xml, u), d = h ? void 0 : At(s.xml, u);
|
|
3945
4010
|
e.push({
|
|
3946
|
-
...a ? { name:
|
|
4011
|
+
...a ? { name: zt(a) } : {},
|
|
3947
4012
|
cacheId: n,
|
|
3948
4013
|
location: l,
|
|
3949
4014
|
part: s,
|
|
3950
4015
|
...d ? { partFormats: d } : {},
|
|
3951
|
-
...
|
|
4016
|
+
...h
|
|
3952
4017
|
});
|
|
3953
4018
|
}), e.length > 0 && (t.pivotTables = e);
|
|
3954
4019
|
}
|
|
3955
4020
|
};
|
|
3956
|
-
|
|
4021
|
+
U.push(e());
|
|
3957
4022
|
} else if (n.type === o) {
|
|
3958
|
-
const e =
|
|
4023
|
+
const e = Wt(i, t, F, B, Tt);
|
|
3959
4024
|
if (e && 0 !== Object.keys(e).length) {
|
|
3960
4025
|
const t = e, o = t.__bookRelId, s = t.__absoluteUrlRelId;
|
|
3961
4026
|
delete t.__bookRelId, delete t.__absoluteUrlRelId;
|
|
3962
4027
|
const n = [];
|
|
3963
|
-
|
|
4028
|
+
st(i, r)?.forEach((t, e) => {
|
|
3964
4029
|
if ("External" === t.targetMode && t.type && t.target) {
|
|
3965
4030
|
const r = {
|
|
3966
4031
|
type: t.type,
|
|
@@ -3968,43 +4033,43 @@ var ds = {
|
|
|
3968
4033
|
};
|
|
3969
4034
|
e === o ? r.role = "book" : e === s && (r.role = "absoluteUrl"), n.push(r);
|
|
3970
4035
|
}
|
|
3971
|
-
}), n.sort((t, e) => ("book" === t.role ? 0 : 1) - ("book" === e.role ? 0 : 1)), t.sources = n,
|
|
3972
|
-
} else
|
|
3973
|
-
} else
|
|
4036
|
+
}), n.sort((t, e) => ("book" === t.role ? 0 : 1) - ("book" === e.role ? 0 : 1)), t.sources = n, ot(i), u = t;
|
|
4037
|
+
} else u = null;
|
|
4038
|
+
} else u = s ? Pt(i, t, (t, e) => {
|
|
3974
4039
|
const o = g.add({ source: { buffer: t } });
|
|
3975
|
-
return o.addReference(N),
|
|
3976
|
-
},
|
|
4040
|
+
return o.addReference(N), $.add(o), k.toResourceId(o);
|
|
4041
|
+
}, Tt) : Wt(i, t, F, B, Tt);
|
|
3977
4042
|
}
|
|
3978
|
-
return
|
|
3979
|
-
},
|
|
4043
|
+
return u;
|
|
4044
|
+
}, nt = (t, e) => {
|
|
3980
4045
|
if (!t) return null;
|
|
3981
|
-
const o =
|
|
4046
|
+
const o = st(e, q)?.get(t);
|
|
3982
4047
|
if (!o?.target || "External" === o.targetMode) return null;
|
|
3983
4048
|
let s = o.target;
|
|
3984
|
-
return s.startsWith("/") || (s = e.substring(0, e.lastIndexOf("/") + 1) + s),
|
|
3985
|
-
},
|
|
4049
|
+
return s.startsWith("/") || (s = e.substring(0, e.lastIndexOf("/") + 1) + s), Ct(s);
|
|
4050
|
+
}, at = (t, e, o, s) => {
|
|
3986
4051
|
const n = [], i = /* @__PURE__ */ new Map(), a = [];
|
|
3987
4052
|
o.forEach((t, o) => {
|
|
3988
4053
|
if ("http://schemas.microsoft.com/office/2017/10/relationships/threadedComment" !== t.type) return;
|
|
3989
|
-
const r =
|
|
4054
|
+
const r = rt(o, e, !1, s)?.comments;
|
|
3990
4055
|
if (!r) return;
|
|
3991
4056
|
for (let t = 0; t < r.length; t++) {
|
|
3992
4057
|
const e = r[t];
|
|
3993
4058
|
if (!e?.v?.id) continue;
|
|
3994
|
-
const { parentId: o, done: s, content: l, ...c } = e.v,
|
|
4059
|
+
const { parentId: o, done: s, content: l, ...c } = e.v, u = {
|
|
3995
4060
|
...c,
|
|
3996
|
-
content:
|
|
4061
|
+
content: zs(l)
|
|
3997
4062
|
};
|
|
3998
4063
|
o ? a.push({
|
|
3999
4064
|
parentId: o,
|
|
4000
|
-
json:
|
|
4001
|
-
}) : (s && (
|
|
4065
|
+
json: u
|
|
4066
|
+
}) : (s && (u.done = !0), i.set(u.id, u), n.push({
|
|
4002
4067
|
r: e.r,
|
|
4003
|
-
v:
|
|
4068
|
+
v: u
|
|
4004
4069
|
}));
|
|
4005
4070
|
}
|
|
4006
|
-
const l =
|
|
4007
|
-
l &&
|
|
4071
|
+
const l = nt(o, e);
|
|
4072
|
+
l && ot(l);
|
|
4008
4073
|
});
|
|
4009
4074
|
for (let t = 0; t < a.length; t++) {
|
|
4010
4075
|
const { parentId: e, json: o } = a[t], s = i.get(e);
|
|
@@ -4013,7 +4078,7 @@ var ds = {
|
|
|
4013
4078
|
const l = [];
|
|
4014
4079
|
if (o.forEach((t, o) => {
|
|
4015
4080
|
if ("http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" !== t.type) return;
|
|
4016
|
-
const n =
|
|
4081
|
+
const n = rt(o, e, !1, s), a = n?.comments;
|
|
4017
4082
|
if (!a) return;
|
|
4018
4083
|
const c = n?.authors;
|
|
4019
4084
|
for (let t = 0; t < a.length; t++) {
|
|
@@ -4021,30 +4086,30 @@ var ds = {
|
|
|
4021
4086
|
if (!e?.r) continue;
|
|
4022
4087
|
let o = c && void 0 !== e.v.authorId ? c[e.v.authorId] : void 0;
|
|
4023
4088
|
if (o && o.startsWith("tc=")) {
|
|
4024
|
-
if (i.has(
|
|
4089
|
+
if (i.has(Xt(o.substring(3)))) continue;
|
|
4025
4090
|
o = void 0;
|
|
4026
4091
|
}
|
|
4027
4092
|
const s = {
|
|
4028
4093
|
id: r.uuidV4().toUpperCase(),
|
|
4029
4094
|
asNote: !0,
|
|
4030
4095
|
content: e.v.content ?? ""
|
|
4031
|
-
}, n = o ?
|
|
4096
|
+
}, n = o ? wt({ displayName: o }) : void 0;
|
|
4032
4097
|
n && (s.personId = n.id), l.push({
|
|
4033
4098
|
r: e.r,
|
|
4034
4099
|
v: s
|
|
4035
4100
|
});
|
|
4036
4101
|
}
|
|
4037
|
-
const
|
|
4038
|
-
|
|
4102
|
+
const u = nt(o, e);
|
|
4103
|
+
u && ot(u);
|
|
4039
4104
|
}), 0 === n.length && 0 === l.length) return;
|
|
4040
|
-
const c = [...n, ...l],
|
|
4041
|
-
if (
|
|
4042
|
-
const { rest: e, notes: o } =
|
|
4105
|
+
const c = [...n, ...l], u = t.legacyDrawing;
|
|
4106
|
+
if (u?.xml) {
|
|
4107
|
+
const { rest: e, notes: o } = yt(u.xml);
|
|
4043
4108
|
if (o.length > 0) {
|
|
4044
4109
|
const s = /* @__PURE__ */ new Map();
|
|
4045
4110
|
for (let t = 0; t < o.length; t++) {
|
|
4046
4111
|
const e = o[t];
|
|
4047
|
-
s.set(
|
|
4112
|
+
s.set(v.cellToString({
|
|
4048
4113
|
rowIndex: e.row,
|
|
4049
4114
|
colIndex: e.col
|
|
4050
4115
|
}), e);
|
|
@@ -4053,9 +4118,9 @@ var ds = {
|
|
|
4053
4118
|
const e = c[t], o = s.get(String(e.r).toUpperCase());
|
|
4054
4119
|
if (!o) continue;
|
|
4055
4120
|
if (s.delete(String(e.r).toUpperCase()), !e.v.asNote) continue;
|
|
4056
|
-
const r =
|
|
4121
|
+
const r = Q(o.xml), n = {};
|
|
4057
4122
|
if (r.anchor) {
|
|
4058
|
-
const [t, e, s, i, a, l, c,
|
|
4123
|
+
const [t, e, s, i, a, l, c, u] = r.anchor;
|
|
4059
4124
|
n.anchor = {
|
|
4060
4125
|
tl: {
|
|
4061
4126
|
c: t - o.col,
|
|
@@ -4067,7 +4132,7 @@ var ds = {
|
|
|
4067
4132
|
c: a - o.col,
|
|
4068
4133
|
x: l,
|
|
4069
4134
|
r: c - o.row,
|
|
4070
|
-
y:
|
|
4135
|
+
y: u
|
|
4071
4136
|
}
|
|
4072
4137
|
};
|
|
4073
4138
|
} else r.bounds && (n.bounds = r.bounds);
|
|
@@ -4077,55 +4142,55 @@ var ds = {
|
|
|
4077
4142
|
s.forEach((t) => {
|
|
4078
4143
|
r.push(t.xml);
|
|
4079
4144
|
});
|
|
4080
|
-
const n =
|
|
4081
|
-
n ?
|
|
4145
|
+
const n = Zt(e, r);
|
|
4146
|
+
n ? u.xml = n : delete t.legacyDrawing;
|
|
4082
4147
|
}
|
|
4083
4148
|
}
|
|
4084
4149
|
t.comments = c;
|
|
4085
|
-
},
|
|
4086
|
-
const s =
|
|
4150
|
+
}, ct = (e, o) => {
|
|
4151
|
+
const s = nt(e, o);
|
|
4087
4152
|
if (!s) return null;
|
|
4088
|
-
const r = t(
|
|
4153
|
+
const r = t(Fs(s));
|
|
4089
4154
|
if (!r) return null;
|
|
4090
|
-
const n = { xml:
|
|
4091
|
-
return
|
|
4155
|
+
const n = { xml: gs(new TextDecoder("utf-8").decode(r.content)) }, i = [];
|
|
4156
|
+
return st(s, q)?.forEach((t, e) => {
|
|
4092
4157
|
if ("http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" !== t.type) return;
|
|
4093
|
-
const o =
|
|
4158
|
+
const o = rt(e, s, !0);
|
|
4094
4159
|
"number" == typeof o && i.push({
|
|
4095
4160
|
id: e,
|
|
4096
4161
|
resId: o
|
|
4097
4162
|
});
|
|
4098
|
-
}), i.length > 0 && (n.images = i),
|
|
4099
|
-
},
|
|
4100
|
-
const s =
|
|
4163
|
+
}), i.length > 0 && (n.images = i), ot(s), n;
|
|
4164
|
+
}, ut = (e, o) => {
|
|
4165
|
+
const s = nt(e, o);
|
|
4101
4166
|
if (!s) return null;
|
|
4102
|
-
const r =
|
|
4103
|
-
return r &&
|
|
4104
|
-
},
|
|
4105
|
-
const a =
|
|
4167
|
+
const r = Wt(s, t, F, B, Tt)?.formControl ?? null;
|
|
4168
|
+
return r && ot(s), r;
|
|
4169
|
+
}, ft = (e, s, r, n, i = /* @__PURE__ */ new Set()) => {
|
|
4170
|
+
const a = nt(e, s);
|
|
4106
4171
|
if (!a || i.has(a)) return null;
|
|
4107
|
-
const l = r ??
|
|
4172
|
+
const l = r ?? st(s, q)?.get(e)?.type;
|
|
4108
4173
|
if (!l) return null;
|
|
4109
|
-
const c = t(
|
|
4174
|
+
const c = t(Fs(a));
|
|
4110
4175
|
if (!c) return null;
|
|
4111
4176
|
i.add(a);
|
|
4112
|
-
const
|
|
4177
|
+
const u = a.substring(a.lastIndexOf("/") + 1), h = o.overrides[Fs(a)] ?? o.defaults[u.substring(u.lastIndexOf(".") + 1).toLowerCase()], d = {
|
|
4113
4178
|
id: e,
|
|
4114
4179
|
type: l,
|
|
4115
|
-
name:
|
|
4180
|
+
name: u
|
|
4116
4181
|
};
|
|
4117
|
-
if (
|
|
4182
|
+
if (h && (d.contentType = h), ((t, e) => t ? t.endsWith("+xml") || "application/xml" === t : /\.(xml|rels|vml)$/i.test(e))(h, u)) d.xml = new TextDecoder("utf-8").decode(c.content);
|
|
4118
4183
|
else {
|
|
4119
|
-
const t =
|
|
4184
|
+
const t = rt(e, s, !0);
|
|
4120
4185
|
if ("number" != typeof t) return null;
|
|
4121
4186
|
d.resId = t;
|
|
4122
4187
|
}
|
|
4123
4188
|
const p = [];
|
|
4124
|
-
return
|
|
4189
|
+
return st(a, q)?.forEach((t, e) => {
|
|
4125
4190
|
if (!t?.type) return;
|
|
4126
4191
|
if (n && !n(t.type)) return;
|
|
4127
4192
|
if ("External" === t.targetMode) {
|
|
4128
|
-
const o =
|
|
4193
|
+
const o = rt(e, a, !0);
|
|
4129
4194
|
"number" == typeof o && p.push({
|
|
4130
4195
|
id: e,
|
|
4131
4196
|
type: t.type,
|
|
@@ -4133,99 +4198,99 @@ var ds = {
|
|
|
4133
4198
|
});
|
|
4134
4199
|
return;
|
|
4135
4200
|
}
|
|
4136
|
-
const o =
|
|
4201
|
+
const o = ft(e, a, t.type, n, i);
|
|
4137
4202
|
o && p.push(o);
|
|
4138
|
-
}), p.length > 0 && (d.parts = p),
|
|
4139
|
-
},
|
|
4140
|
-
|
|
4141
|
-
t?.custom &&
|
|
4203
|
+
}), p.length > 0 && (d.parts = p), ot(a), d;
|
|
4204
|
+
}, gt = Ot("coreprops", o, t, F, B, T), mt = Ot("extprops", o, t, F, B, T), bt = Ot("custprops", o, t, F, B, T);
|
|
4205
|
+
bt.forEach((t, e) => {
|
|
4206
|
+
t?.custom && ot(e);
|
|
4142
4207
|
});
|
|
4143
|
-
const
|
|
4144
|
-
if (
|
|
4145
|
-
const [t, e] =
|
|
4146
|
-
|
|
4147
|
-
}
|
|
4148
|
-
const
|
|
4149
|
-
if (t) return
|
|
4150
|
-
},
|
|
4151
|
-
paramMap:
|
|
4152
|
-
getRefs:
|
|
4153
|
-
getRef:
|
|
4208
|
+
const vt = new C(), xt = Ot("people", o, t, F, B, T);
|
|
4209
|
+
if (xt.size > 0) {
|
|
4210
|
+
const [t, e] = xt.entries().next().value;
|
|
4211
|
+
vt.fromJSON(e?.persons), ot(t);
|
|
4212
|
+
}
|
|
4213
|
+
const wt = (t) => {
|
|
4214
|
+
if (t) return vt.add(t).toJSON();
|
|
4215
|
+
}, Tt = {
|
|
4216
|
+
paramMap: L,
|
|
4217
|
+
getRefs: st,
|
|
4218
|
+
getRef: rt,
|
|
4154
4219
|
parsedRefs: q,
|
|
4155
|
-
readEmbeddedPart: (t, e) =>
|
|
4156
|
-
addPerson:
|
|
4157
|
-
serializeElement:
|
|
4158
|
-
onWarning:
|
|
4159
|
-
},
|
|
4160
|
-
if (
|
|
4161
|
-
const t = await
|
|
4220
|
+
readEmbeddedPart: (t, e) => ft(t, e),
|
|
4221
|
+
addPerson: wt,
|
|
4222
|
+
serializeElement: J,
|
|
4223
|
+
onWarning: w
|
|
4224
|
+
}, St = [], kt = /* @__PURE__ */ new Map();
|
|
4225
|
+
if (L.set(es, kt), l) {
|
|
4226
|
+
const t = await Y.getTextStream(l, _);
|
|
4162
4227
|
if (t) {
|
|
4163
4228
|
const e = ((t, e) => {
|
|
4164
4229
|
let o = !1, s = !1, r = 0, n = "";
|
|
4165
|
-
const i = new
|
|
4230
|
+
const i = new Uo();
|
|
4166
4231
|
return {
|
|
4167
4232
|
onOpenTag: (t) => {
|
|
4168
|
-
const e =
|
|
4233
|
+
const e = qo(t.name);
|
|
4169
4234
|
"t" === e ? o && 0 === r && (s = !0) : "si" === e ? (o = !0, n = "", i.reset(), r = 0) : "rPh" === e || "phoneticPr" === e ? r++ : o && 0 === r && i.onOpenTag(e, t.attributes);
|
|
4170
4235
|
},
|
|
4171
4236
|
onText: (t) => {
|
|
4172
4237
|
s && (n += t, i.onText(t));
|
|
4173
4238
|
},
|
|
4174
4239
|
onCloseTag: (t) => {
|
|
4175
|
-
const e =
|
|
4240
|
+
const e = qo(t.name);
|
|
4176
4241
|
"t" === e ? s = !1 : "si" === e ? (((t, e) => {
|
|
4177
|
-
e &&
|
|
4178
|
-
})(
|
|
4242
|
+
e && kt.set(St.length, e), St.push(t);
|
|
4243
|
+
})(W(n), i.take() ?? void 0), o = !1, n = "") : "rPh" === e || "phoneticPr" === e ? r > 0 && r-- : i.onCloseTag(e);
|
|
4179
4244
|
},
|
|
4180
4245
|
onError: (t) => {
|
|
4181
4246
|
e?.(`Error parsing shared strings: ${t?.message ?? t}`);
|
|
4182
4247
|
}
|
|
4183
4248
|
};
|
|
4184
4249
|
})(0, (t) => {
|
|
4185
|
-
|
|
4250
|
+
w(t, l);
|
|
4186
4251
|
});
|
|
4187
4252
|
try {
|
|
4188
|
-
await
|
|
4253
|
+
await Ne.parseStream(t, e, { xmlns: !1 });
|
|
4189
4254
|
} catch (n) {
|
|
4190
4255
|
throw new Error(`Error parsing shared strings: '${l}'`, { cause: n });
|
|
4191
4256
|
}
|
|
4192
4257
|
}
|
|
4193
4258
|
}
|
|
4194
4259
|
y?.mark("shared-strings");
|
|
4195
|
-
let
|
|
4196
|
-
const
|
|
4197
|
-
let
|
|
4198
|
-
const
|
|
4199
|
-
const e =
|
|
4260
|
+
let It = St.length;
|
|
4261
|
+
const Dt = /* @__PURE__ */ new Map();
|
|
4262
|
+
let _t = It;
|
|
4263
|
+
const Mt = (t) => {
|
|
4264
|
+
const e = Dt.get(t);
|
|
4200
4265
|
if (void 0 !== e) return e;
|
|
4201
|
-
const o =
|
|
4202
|
-
return
|
|
4203
|
-
},
|
|
4204
|
-
o.slicersCache =
|
|
4205
|
-
const
|
|
4206
|
-
for (let t = 0; t <
|
|
4207
|
-
const e =
|
|
4208
|
-
e && (e.startsWith("xl/slicerCache") || e.startsWith("xl/timelineCaches/") && e.endsWith(".xml")) &&
|
|
4209
|
-
}
|
|
4210
|
-
const Vt =
|
|
4266
|
+
const o = _t;
|
|
4267
|
+
return Dt.set(t, _t++), St.push(t), o;
|
|
4268
|
+
}, $t = [];
|
|
4269
|
+
o.slicersCache = $t;
|
|
4270
|
+
const Rt = Y.getNames(), Lt = Rt.length;
|
|
4271
|
+
for (let t = 0; t < Lt; t++) {
|
|
4272
|
+
const e = Rt[t];
|
|
4273
|
+
e && (e.startsWith("xl/slicerCache") || e.startsWith("xl/timelineCaches/") && e.endsWith(".xml")) && $t.push(`/${e}`);
|
|
4274
|
+
}
|
|
4275
|
+
const Vt = Ot("slicersCache", o, t, F, B, Tt), Bt = /* @__PURE__ */ new Map();
|
|
4211
4276
|
Vt.forEach((t, e) => {
|
|
4212
|
-
t?.cacheName && (t.cachePath = e,
|
|
4213
|
-
}),
|
|
4214
|
-
const
|
|
4215
|
-
o.slicers =
|
|
4216
|
-
for (let t = 0; t <
|
|
4217
|
-
const e =
|
|
4218
|
-
e && (e.startsWith("xl/slicers/") || e.startsWith("xl/timelines/")) && e.endsWith(".xml") &&
|
|
4219
|
-
}
|
|
4220
|
-
const
|
|
4277
|
+
t?.cacheName && (t.cachePath = e, Bt.set(t.cacheName, t));
|
|
4278
|
+
}), L.set("slicerCaches", Bt);
|
|
4279
|
+
const Ft = [];
|
|
4280
|
+
o.slicers = Ft;
|
|
4281
|
+
for (let t = 0; t < Lt; t++) {
|
|
4282
|
+
const e = Rt[t];
|
|
4283
|
+
e && (e.startsWith("xl/slicers/") || e.startsWith("xl/timelines/")) && e.endsWith(".xml") && Ft.push(`/${e}`);
|
|
4284
|
+
}
|
|
4285
|
+
const Ht = {
|
|
4221
4286
|
getFile: t,
|
|
4222
|
-
domParser:
|
|
4287
|
+
domParser: F,
|
|
4223
4288
|
getAddress: (t, e) => {
|
|
4224
|
-
const o =
|
|
4289
|
+
const o = rt(e, t, !1);
|
|
4225
4290
|
return "string" == typeof o ? o : null;
|
|
4226
4291
|
},
|
|
4227
4292
|
getBytes: (e, o) => {
|
|
4228
|
-
const s =
|
|
4293
|
+
const s = nt(o, e), r = s ? t(s.substring(1))?.content : void 0;
|
|
4229
4294
|
return r ? r.slice().buffer : null;
|
|
4230
4295
|
},
|
|
4231
4296
|
addFetched: (t, e) => {
|
|
@@ -4233,38 +4298,38 @@ var ds = {
|
|
|
4233
4298
|
source: { buffer: t },
|
|
4234
4299
|
fetchedFrom: e
|
|
4235
4300
|
});
|
|
4236
|
-
return o.addReference(N),
|
|
4301
|
+
return o.addReference(N), $.add(o), k.toResourceId(o);
|
|
4237
4302
|
},
|
|
4238
|
-
markAbsorbed:
|
|
4239
|
-
},
|
|
4240
|
-
for (const t of
|
|
4303
|
+
markAbsorbed: ot
|
|
4304
|
+
}, qt = /* @__PURE__ */ new Map();
|
|
4305
|
+
for (const t of H.getAll()) qt.set(t.structure, t.beginRead(Ht));
|
|
4241
4306
|
const Gt = ((t, e) => {
|
|
4242
4307
|
const o = (o) => {
|
|
4243
4308
|
const s = t(o);
|
|
4244
4309
|
return s ? e.parseFromString(new TextDecoder().decode(s.content), "text/xml").documentElement ?? null : null;
|
|
4245
|
-
}, s =
|
|
4310
|
+
}, s = ue(o("xl/richData/rdrichvaluestructure.xml"), "s").map((t) => ({
|
|
4246
4311
|
t: t.getAttribute("t") ?? "",
|
|
4247
|
-
keys:
|
|
4248
|
-
})), r =
|
|
4249
|
-
const e =
|
|
4312
|
+
keys: he(t)
|
|
4313
|
+
})), r = ue(o("xl/richData/rdrichvalue.xml"), "rv").map((t) => {
|
|
4314
|
+
const e = ue(t, "fb")[0];
|
|
4250
4315
|
return {
|
|
4251
4316
|
s: parseInt(t.getAttribute("s") ?? "-1", 10),
|
|
4252
|
-
values:
|
|
4317
|
+
values: ue(t, "v").map((t) => t.textContent ?? ""),
|
|
4253
4318
|
fb: e ? e.textContent ?? "" : null
|
|
4254
4319
|
};
|
|
4255
|
-
}), n =
|
|
4256
|
-
const e =
|
|
4320
|
+
}), n = ue(o("xl/richData/rdarray.xml"), "a").map((t) => {
|
|
4321
|
+
const e = de(t), o = parseInt(t.getAttribute("r") ?? "", 10), s = parseInt(t.getAttribute("c") ?? "", 10), r = o > 0 ? o : e.length;
|
|
4257
4322
|
return {
|
|
4258
4323
|
rows: r,
|
|
4259
4324
|
columns: s > 0 ? s : Math.max(1, Math.ceil(e.length / Math.max(1, r))),
|
|
4260
4325
|
items: e
|
|
4261
4326
|
};
|
|
4262
|
-
}), i =
|
|
4327
|
+
}), i = ue(o("xl/richData/rdsupportingpropertybagstructure.xml"), "s").map(he), a = o("xl/richData/rdsupportingpropertybag.xml"), l = ue(ue(a, "spbArrays")[0], "a").map(de), c = ue(ue(a, "spbData")[0], "spb").map((t) => ({
|
|
4263
4328
|
s: parseInt(t.getAttribute("s") ?? "-1", 10),
|
|
4264
|
-
values:
|
|
4265
|
-
})),
|
|
4266
|
-
for (const t of
|
|
4267
|
-
const p = o("xl/richData/richStyles.xml"), f =
|
|
4329
|
+
values: ue(t, "v").map((t) => t.textContent ?? "")
|
|
4330
|
+
})), u = o("xl/richData/rdRichValueTypes.xml"), h = pe(ue(ue(u, "global")[0], "keyFlags")[0]), d = /* @__PURE__ */ new Map();
|
|
4331
|
+
for (const t of ue(ue(u, "types")[0], "type")) d.set(t.getAttribute("name") ?? "", pe(ue(t, "keyFlags")[0]));
|
|
4332
|
+
const p = o("xl/richData/richStyles.xml"), f = ue(ue(p, "dxfs")[0], "dxf").map((t) => ue(t, "numFmt")[0]?.getAttribute("formatCode") ?? null), g = ue(ue(p, "richProperties")[0], "rPr").map((t) => t.getAttribute("n") ?? "");
|
|
4268
4333
|
return {
|
|
4269
4334
|
structures: s,
|
|
4270
4335
|
values: r,
|
|
@@ -4272,11 +4337,11 @@ var ds = {
|
|
|
4272
4337
|
bagStructures: i,
|
|
4273
4338
|
bagArrays: l,
|
|
4274
4339
|
bags: c,
|
|
4275
|
-
globalKeyFlags:
|
|
4340
|
+
globalKeyFlags: h,
|
|
4276
4341
|
typeKeyFlags: d,
|
|
4277
|
-
richStyles:
|
|
4342
|
+
richStyles: ue(ue(p, "richStyles")[0], "rSty").map((t) => {
|
|
4278
4343
|
const e = /* @__PURE__ */ new Map();
|
|
4279
|
-
for (const o of
|
|
4344
|
+
for (const o of ue(t, "rpv")) {
|
|
4280
4345
|
const t = g[parseInt(o.getAttribute("i") ?? "-1", 10)];
|
|
4281
4346
|
t && e.set(t, o.textContent ?? "");
|
|
4282
4347
|
}
|
|
@@ -4288,25 +4353,25 @@ var ds = {
|
|
|
4288
4353
|
};
|
|
4289
4354
|
})
|
|
4290
4355
|
};
|
|
4291
|
-
})(t,
|
|
4292
|
-
|
|
4356
|
+
})(t, F), Kt = Ut(Gt, qt, (t) => {
|
|
4357
|
+
w(t, "/xl/richData/rdrichvalue.xml");
|
|
4293
4358
|
});
|
|
4294
|
-
|
|
4295
|
-
for (let t = 0; t <
|
|
4296
|
-
const e =
|
|
4297
|
-
e.startsWith("xl/richData/") && !e.includes("/_rels/") &&
|
|
4298
|
-
}
|
|
4299
|
-
const
|
|
4300
|
-
let
|
|
4301
|
-
if (
|
|
4302
|
-
let t =
|
|
4303
|
-
t?.value?.[1] && (
|
|
4304
|
-
}
|
|
4305
|
-
const
|
|
4306
|
-
let
|
|
4307
|
-
|
|
4308
|
-
const
|
|
4309
|
-
|
|
4359
|
+
L.set("richData", Gt.values.map((t, e) => Kt.cellValue(e)));
|
|
4360
|
+
for (let t = 0; t < Lt; t++) {
|
|
4361
|
+
const e = Rt[t];
|
|
4362
|
+
e.startsWith("xl/richData/") && !e.includes("/_rels/") && ot(e);
|
|
4363
|
+
}
|
|
4364
|
+
const Jt = Ot("themes", o, t, F, B, Tt);
|
|
4365
|
+
let Qt = null;
|
|
4366
|
+
if (Jt && Jt.entries) {
|
|
4367
|
+
let t = Jt.entries().next();
|
|
4368
|
+
t?.value?.[1] && (Qt = t.value[1]);
|
|
4369
|
+
}
|
|
4370
|
+
const Yt = new m(Qt);
|
|
4371
|
+
let oe = Ot("styles", o, t, F, B, Tt).entries().next()?.value?.[1];
|
|
4372
|
+
oe && (oe = JSON.parse(a.JSONStableStringify(oe)));
|
|
4373
|
+
const se = Ot("workbooks", o, t, F, B, Tt);
|
|
4374
|
+
L.set(ts, !0 === se.entries().next().value?.[1]?.date1904), "none" !== (f.calcOnLoad ?? p) && L.set(Yo, ((t, e) => {
|
|
4310
4375
|
const o = /* @__PURE__ */ new Set();
|
|
4311
4376
|
if (t) for (let e = 0; e < t.length; e++) o.add(String(t[e]?.name).toUpperCase());
|
|
4312
4377
|
if (e) for (let t = 0; t < e.length; t++) try {
|
|
@@ -4318,17 +4383,17 @@ var ds = {
|
|
|
4318
4383
|
for (const t of s.keys()) o.add(t.toUpperCase());
|
|
4319
4384
|
} catch {}
|
|
4320
4385
|
return (t) => o.has(t) || A.has(t);
|
|
4321
|
-
})(
|
|
4386
|
+
})(se.entries().next().value?.[1]?.names, f.functions)), y?.mark("side-parts-json"), await Promise.all(U);
|
|
4322
4387
|
{
|
|
4323
|
-
const t =
|
|
4388
|
+
const t = se.entries().next().value?.[1], e = Z(t?.names), o = t?.sheets ?? [];
|
|
4324
4389
|
for (let t = 0; t < o.length; t++) {
|
|
4325
|
-
const s = o[t], r =
|
|
4390
|
+
const s = o[t], r = K(s);
|
|
4326
4391
|
if ("macro" === s?.kind && r?.part.xml) {
|
|
4327
|
-
r.part.xml =
|
|
4392
|
+
r.part.xml = M(r.part.xml, St);
|
|
4328
4393
|
continue;
|
|
4329
4394
|
}
|
|
4330
|
-
const n =
|
|
4331
|
-
n &&
|
|
4395
|
+
const n = ht(s);
|
|
4396
|
+
n && lt(n, e);
|
|
4332
4397
|
}
|
|
4333
4398
|
const s = t?.names;
|
|
4334
4399
|
if (s) for (let t = 0; t < s.length; t++) {
|
|
@@ -4337,11 +4402,11 @@ var ds = {
|
|
|
4337
4402
|
}
|
|
4338
4403
|
}
|
|
4339
4404
|
P && D > 0 && (P(O, O), await new Promise((t) => setTimeout(t, 0))), y?.mark("sheets");
|
|
4340
|
-
const
|
|
4341
|
-
...
|
|
4342
|
-
styles:
|
|
4343
|
-
theme:
|
|
4344
|
-
},
|
|
4405
|
+
const ne = {
|
|
4406
|
+
...se.entries().next().value?.[1],
|
|
4407
|
+
styles: oe,
|
|
4408
|
+
theme: Yt.toJSON()
|
|
4409
|
+
}, ae = ((t, e, o, s) => {
|
|
4345
4410
|
const r = {}, n = (t, e) => {
|
|
4346
4411
|
if (t) for (const { key: o, value: s } of t) {
|
|
4347
4412
|
const t = e[o];
|
|
@@ -4351,35 +4416,35 @@ var ds = {
|
|
|
4351
4416
|
} else r[t] = s;
|
|
4352
4417
|
}
|
|
4353
4418
|
};
|
|
4354
|
-
if (n(t,
|
|
4419
|
+
if (n(t, ms), n(e, bs), o) {
|
|
4355
4420
|
const t = [];
|
|
4356
4421
|
for (const e of o) {
|
|
4357
|
-
const o =
|
|
4422
|
+
const o = vs(e);
|
|
4358
4423
|
o ? t.push(o) : s?.(`The custom document property '${e.key}' holds a value of a kind that is not read (${e.kind ? "vt:" + e.kind : "none"}); it was dropped.`, "xlsx.docProps.custom.kind");
|
|
4359
4424
|
}
|
|
4360
4425
|
t.length > 0 && (r.custom = t);
|
|
4361
4426
|
}
|
|
4362
4427
|
return Object.keys(r).length > 0 ? r : void 0;
|
|
4363
|
-
})(
|
|
4364
|
-
|
|
4428
|
+
})(gt.values().next().value?.properties, mt.values().next().value?.properties, bt.values().next().value?.custom, (t, e) => {
|
|
4429
|
+
w(t, "docProps/custom.xml", e);
|
|
4365
4430
|
});
|
|
4366
|
-
|
|
4431
|
+
ae && (ne.properties = ae), ((t, e) => {
|
|
4367
4432
|
if (!e || 0 === e.size) return;
|
|
4368
4433
|
const o = t.styles;
|
|
4369
4434
|
if (!o) return;
|
|
4370
4435
|
const s = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
4371
4436
|
for (const o of t.sheets ?? []) {
|
|
4372
|
-
const t =
|
|
4437
|
+
const t = ht(o);
|
|
4373
4438
|
if (!t) continue;
|
|
4374
4439
|
const n = /* @__PURE__ */ new Set();
|
|
4375
|
-
|
|
4440
|
+
Ts(t.cols) || n.add(0);
|
|
4376
4441
|
for (const e of t.directStyles ?? []) n.add(Array.isArray(e) ? e[1] : e.v);
|
|
4377
4442
|
for (const e of t.rows ?? []) {
|
|
4378
|
-
const t =
|
|
4443
|
+
const t = ws(e);
|
|
4379
4444
|
void 0 !== t && n.add(t);
|
|
4380
4445
|
}
|
|
4381
4446
|
for (const e of t.cols ?? []) {
|
|
4382
|
-
const t =
|
|
4447
|
+
const t = ws(e);
|
|
4383
4448
|
void 0 !== t && n.add(t);
|
|
4384
4449
|
}
|
|
4385
4450
|
let i = !1;
|
|
@@ -4397,30 +4462,30 @@ var ds = {
|
|
|
4397
4462
|
}
|
|
4398
4463
|
if (0 === s.size) return;
|
|
4399
4464
|
const n = o.direct ?? (o.direct = []);
|
|
4400
|
-
for (const t of s) 0 !== t &&
|
|
4401
|
-
for (const t of r) 0 !== t &&
|
|
4465
|
+
for (const t of s) 0 !== t && Ss(n[t] ?? (n[t] = {}), !0);
|
|
4466
|
+
for (const t of r) 0 !== t && Ss(n[t] ?? (n[t] = {}), !1);
|
|
4402
4467
|
if (s.has(0)) {
|
|
4403
|
-
const t = o.named ?? (o.named = []), e =
|
|
4468
|
+
const t = o.named ?? (o.named = []), e = h.BuiltInName.Normal.toLowerCase();
|
|
4404
4469
|
let s = t.find((t) => t.name?.toLowerCase() === e);
|
|
4405
4470
|
s || (s = {
|
|
4406
|
-
name:
|
|
4471
|
+
name: h.BuiltInName.Normal,
|
|
4407
4472
|
style: {}
|
|
4408
|
-
}, t.push(s)),
|
|
4473
|
+
}, t.push(s)), Ss(s.style, !0);
|
|
4409
4474
|
}
|
|
4410
|
-
})(
|
|
4475
|
+
})(ne, L.get(xs)), ((t, e) => {
|
|
4411
4476
|
if (e && 0 !== e.size) for (const o of t.sheets ?? []) {
|
|
4412
|
-
const t =
|
|
4477
|
+
const t = ht(o), s = t?.pivotTables;
|
|
4413
4478
|
if (!t || !s || 0 === s.length) continue;
|
|
4414
|
-
const r = s.map(
|
|
4479
|
+
const r = s.map(Et), n = s.map(() => []);
|
|
4415
4480
|
for (const [o, s] of t.directStyles ?? []) {
|
|
4416
4481
|
if (!e.has(s)) continue;
|
|
4417
|
-
const t =
|
|
4482
|
+
const t = v.fastStringToRange(o);
|
|
4418
4483
|
for (let e = 0; e < r.length; e++) {
|
|
4419
4484
|
const o = r[e];
|
|
4420
4485
|
if (!o) continue;
|
|
4421
4486
|
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);
|
|
4422
4487
|
if (s > i || a > l) continue;
|
|
4423
|
-
const c =
|
|
4488
|
+
const c = v.rangeToString({
|
|
4424
4489
|
rowStart: s - o.rowStart,
|
|
4425
4490
|
rowEnd: i - o.rowStart,
|
|
4426
4491
|
colStart: a - o.colStart,
|
|
@@ -4431,19 +4496,19 @@ var ds = {
|
|
|
4431
4496
|
}
|
|
4432
4497
|
for (let t = 0; t < s.length; t++) n[t].length > 0 && (s[t].buttons = n[t]);
|
|
4433
4498
|
}
|
|
4434
|
-
})(
|
|
4435
|
-
const
|
|
4499
|
+
})(ne, L.get(ks));
|
|
4500
|
+
const le = L.get($s);
|
|
4436
4501
|
((t, e) => {
|
|
4437
4502
|
const o = t.styles?.direct;
|
|
4438
4503
|
if (!o || 0 === o.length) return;
|
|
4439
4504
|
let s = null;
|
|
4440
4505
|
const r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), i = (t, i, l, c) => {
|
|
4441
|
-
let
|
|
4442
|
-
c && (
|
|
4443
|
-
const
|
|
4444
|
-
let d = r.get(
|
|
4506
|
+
let u = "";
|
|
4507
|
+
c && (u = n.get(c) ?? a.JSONStableStringify(c), n.set(c, u));
|
|
4508
|
+
const h = `${t}|${i ?? ""}|${l ?? ""}|${u}`;
|
|
4509
|
+
let d = r.get(h);
|
|
4445
4510
|
if (void 0 !== d) return d;
|
|
4446
|
-
const p = o[t], f = p ?
|
|
4511
|
+
const p = o[t], f = p ? Cs(p, i, l, c) : null, g = e?.get(t);
|
|
4447
4512
|
return d = f === p ? t : f || void 0 !== g ? ((t, r) => {
|
|
4448
4513
|
if (!s) {
|
|
4449
4514
|
s = /* @__PURE__ */ new Map();
|
|
@@ -4457,29 +4522,29 @@ var ds = {
|
|
|
4457
4522
|
void 0 !== r && (n += `|${r}`);
|
|
4458
4523
|
let i = s.get(n);
|
|
4459
4524
|
return void 0 === i && (i = o.length, o.push(t), s.set(n, i), void 0 !== r && e.set(i, r)), i;
|
|
4460
|
-
})(f ?? {}, g) : null, r.set(
|
|
4525
|
+
})(f ?? {}, g) : null, r.set(h, d), d;
|
|
4461
4526
|
}, l = new Map((t.pivotCaches ?? []).map((t) => [t.cacheId, t.fields]));
|
|
4462
4527
|
for (const e of t.sheets ?? []) {
|
|
4463
|
-
const t =
|
|
4528
|
+
const t = ht(e), o = t?.pivotTables, s = t?.directStyles;
|
|
4464
4529
|
if (!t || !o || 0 === o.length || !s || 0 === s.length) continue;
|
|
4465
4530
|
let r = s, n = !1;
|
|
4466
4531
|
for (const t of o) {
|
|
4467
|
-
const e =
|
|
4532
|
+
const e = As(t, l.get(t.cacheId));
|
|
4468
4533
|
if (!e) continue;
|
|
4469
4534
|
const o = [];
|
|
4470
4535
|
for (const t of r) {
|
|
4471
|
-
const s =
|
|
4536
|
+
const s = v.fastStringToRange(t[0]), r = _s(s, e.coords);
|
|
4472
4537
|
if (!r) {
|
|
4473
4538
|
o.push(t);
|
|
4474
4539
|
continue;
|
|
4475
4540
|
}
|
|
4476
4541
|
n = !0;
|
|
4477
|
-
for (const e of
|
|
4542
|
+
for (const e of Ms(s, r)) o.push([v.rangeToString(e), t[1]]);
|
|
4478
4543
|
const { rowIndex: a, colIndex: l } = e.origin;
|
|
4479
4544
|
for (let s = r.rowStart; s <= r.rowEnd; s++) {
|
|
4480
4545
|
let n = r.colStart, c = null;
|
|
4481
|
-
const
|
|
4482
|
-
null !== c && o.push([
|
|
4546
|
+
const u = (t) => {
|
|
4547
|
+
null !== c && o.push([v.rangeToString({
|
|
4483
4548
|
rowStart: s,
|
|
4484
4549
|
rowEnd: s,
|
|
4485
4550
|
colStart: n,
|
|
@@ -4487,17 +4552,17 @@ var ds = {
|
|
|
4487
4552
|
}), c]);
|
|
4488
4553
|
};
|
|
4489
4554
|
for (let o = r.colStart; o <= r.colEnd; o++) {
|
|
4490
|
-
const { numberFormat:
|
|
4491
|
-
o !== r.colStart && f === c || (o !== r.colStart &&
|
|
4555
|
+
const { numberFormat: h, labelIndent: d, user: p } = e.formats.formatAt(s - a, o - l), f = i(t[1], h, d, p);
|
|
4556
|
+
o !== r.colStart && f === c || (o !== r.colStart && u(o - 1), n = o, c = f);
|
|
4492
4557
|
}
|
|
4493
|
-
|
|
4558
|
+
u(r.colEnd);
|
|
4494
4559
|
}
|
|
4495
4560
|
}
|
|
4496
4561
|
r = o;
|
|
4497
4562
|
}
|
|
4498
4563
|
n && (t.directStyles = r);
|
|
4499
4564
|
}
|
|
4500
|
-
})(
|
|
4565
|
+
})(ne, le), ((t) => {
|
|
4501
4566
|
const o = {
|
|
4502
4567
|
colStart: 0,
|
|
4503
4568
|
rowStart: 0,
|
|
@@ -4505,13 +4570,13 @@ var ds = {
|
|
|
4505
4570
|
rowEnd: 1048575
|
|
4506
4571
|
};
|
|
4507
4572
|
for (const r of t.sheets ?? []) {
|
|
4508
|
-
const t =
|
|
4573
|
+
const t = ht(r);
|
|
4509
4574
|
if (!t) continue;
|
|
4510
4575
|
const n = [];
|
|
4511
|
-
if (
|
|
4576
|
+
if (Vs(t.cols, !0, o, n), Vs(t.rows, !1, o, n), 0 === n.length) continue;
|
|
4512
4577
|
const i = [];
|
|
4513
4578
|
for (const [e, o] of t.directStyles ?? []) i.push({
|
|
4514
|
-
...
|
|
4579
|
+
...v.fastStringToRange(e),
|
|
4515
4580
|
value: {
|
|
4516
4581
|
kind: 0,
|
|
4517
4582
|
index: o
|
|
@@ -4532,11 +4597,11 @@ var ds = {
|
|
|
4532
4597
|
}
|
|
4533
4598
|
s = t ?? o ?? r;
|
|
4534
4599
|
}
|
|
4535
|
-
a.push([
|
|
4600
|
+
a.push([v.rangeToString(t.value.range, o), s.index]);
|
|
4536
4601
|
}
|
|
4537
4602
|
a.length > 0 ? t.directStyles = a : delete t.directStyles;
|
|
4538
4603
|
}
|
|
4539
|
-
})(
|
|
4604
|
+
})(ne), le && ((t, e, o) => {
|
|
4540
4605
|
if (!e || 0 === e.size || !o) return;
|
|
4541
4606
|
const s = (t) => {
|
|
4542
4607
|
if (void 0 === t || 0 === t) return null;
|
|
@@ -4544,7 +4609,7 @@ var ds = {
|
|
|
4544
4609
|
return void 0 !== s ? o.controls[s] ?? null : null;
|
|
4545
4610
|
};
|
|
4546
4611
|
for (const e of t.sheets ?? []) {
|
|
4547
|
-
const t =
|
|
4612
|
+
const t = ht(e);
|
|
4548
4613
|
if (!t) continue;
|
|
4549
4614
|
const o = /* @__PURE__ */ new Map();
|
|
4550
4615
|
for (const e of t.directStyles ?? []) {
|
|
@@ -4555,7 +4620,7 @@ var ds = {
|
|
|
4555
4620
|
i || (i = {
|
|
4556
4621
|
control: r,
|
|
4557
4622
|
addresses: []
|
|
4558
|
-
}, o.set(n, i)),
|
|
4623
|
+
}, o.set(n, i)), Rs(t, i.addresses);
|
|
4559
4624
|
}
|
|
4560
4625
|
if (0 === o.size) continue;
|
|
4561
4626
|
const r = [...t.cellControls ?? []];
|
|
@@ -4565,32 +4630,32 @@ var ds = {
|
|
|
4565
4630
|
});
|
|
4566
4631
|
t.cellControls = r;
|
|
4567
4632
|
}
|
|
4568
|
-
})(
|
|
4633
|
+
})(ne, le, Ot("featurePropertyBag", o, t, F, B, Tt).values().next().value?.featurePropertyBag);
|
|
4569
4634
|
{
|
|
4570
4635
|
const e = /* @__PURE__ */ new Map();
|
|
4571
|
-
|
|
4636
|
+
Ot("slicers", o, t, F, B, Tt).forEach((t, o) => {
|
|
4572
4637
|
t?.slicers && e.set(o, t.slicers);
|
|
4573
|
-
}),
|
|
4638
|
+
}), ie(ne, {
|
|
4574
4639
|
warn: (t, e) => {
|
|
4575
|
-
|
|
4640
|
+
w(t, "xl/slicers", e);
|
|
4576
4641
|
},
|
|
4577
|
-
markAbsorbed:
|
|
4642
|
+
markAbsorbed: ot,
|
|
4578
4643
|
slicerParts: e
|
|
4579
4644
|
});
|
|
4580
4645
|
}
|
|
4581
|
-
|
|
4582
|
-
...
|
|
4646
|
+
ne.calc = {
|
|
4647
|
+
...ne.calc ?? {},
|
|
4583
4648
|
legacyIntersect: !0
|
|
4584
|
-
},
|
|
4585
|
-
const
|
|
4586
|
-
|
|
4587
|
-
const fe =
|
|
4649
|
+
}, St.length > 0 && (ne.strings = St);
|
|
4650
|
+
const ce = vt.toJSON();
|
|
4651
|
+
ce && ce.length > 0 && (ne.people = ce);
|
|
4652
|
+
const fe = Y.getEntry("xl/vbaProject.bin");
|
|
4588
4653
|
if (fe) try {
|
|
4589
|
-
const { VBAProject: t } = await import("./
|
|
4654
|
+
const { VBAProject: t } = await import("./DbwDQlhCuGoasVUz.js"), e = t.extract(fe);
|
|
4590
4655
|
if (e) {
|
|
4591
4656
|
const o = /* @__PURE__ */ new Map();
|
|
4592
|
-
for (const t of
|
|
4593
|
-
const e =
|
|
4657
|
+
for (const t of ne.sheets ?? []) {
|
|
4658
|
+
const e = ht(t), s = e?.codeName;
|
|
4594
4659
|
s && o.set(s, e);
|
|
4595
4660
|
}
|
|
4596
4661
|
for (const s of e.modules) {
|
|
@@ -4598,38 +4663,38 @@ var ds = {
|
|
|
4598
4663
|
n && (e.source = n), r && (e.sourceHeader = r);
|
|
4599
4664
|
const i = "document" === s.type ? o.get(s.name) : void 0;
|
|
4600
4665
|
i || "document" !== s.type || (e.scope = "workbook");
|
|
4601
|
-
const a = i ? i.modules ??= {} :
|
|
4666
|
+
const a = i ? i.modules ??= {} : ne.modules ??= {};
|
|
4602
4667
|
a[s.name] || (a[s.name] = e);
|
|
4603
4668
|
}
|
|
4604
|
-
|
|
4669
|
+
u?.(e);
|
|
4605
4670
|
} else x.push(["Unable to parse VBA project.", "xl/vbaProject.bin"]);
|
|
4606
4671
|
} catch (n) {
|
|
4607
4672
|
x.push([`Error extracting VBA: ${n?.message ?? n}`, "xl/vbaProject.bin"]);
|
|
4608
4673
|
}
|
|
4609
|
-
const ge =
|
|
4674
|
+
const ge = L.get("calcId"), me = void 0 === ge || !(Number(ge) >= 191029), be = f.calcOnLoad ?? ("auto" === p && me ? "full" : p), ye = {
|
|
4610
4675
|
...f,
|
|
4611
4676
|
calcOnLoad: be,
|
|
4612
4677
|
resources: g,
|
|
4613
|
-
json:
|
|
4678
|
+
json: ne
|
|
4614
4679
|
};
|
|
4615
|
-
if (void 0 ===
|
|
4616
|
-
const t =
|
|
4617
|
-
|
|
4680
|
+
if (void 0 === ye.disableLoadAutoFit) {
|
|
4681
|
+
const t = L.get(ee);
|
|
4682
|
+
ye.disableLoadAutoFit = !!t?.declared && t.normalIsThemeFont && await jt(t.faces);
|
|
4618
4683
|
}
|
|
4619
4684
|
y?.mark("json-assembled");
|
|
4620
|
-
const
|
|
4621
|
-
if (y?.mark("workbook-constructed"),
|
|
4685
|
+
const ve = new I(ye);
|
|
4686
|
+
if (y?.mark("workbook-constructed"), $.forEach((t) => {
|
|
4622
4687
|
t.deleteReference(N);
|
|
4623
|
-
}),
|
|
4624
|
-
|
|
4688
|
+
}), k.endPersist(), b) {
|
|
4689
|
+
X(ve);
|
|
4625
4690
|
const t = /* @__PURE__ */ new Map();
|
|
4626
4691
|
let e = 0;
|
|
4627
|
-
for (const o of
|
|
4628
|
-
const s =
|
|
4692
|
+
for (const o of Y.getNames()) {
|
|
4693
|
+
const s = Y.getEntry(o);
|
|
4629
4694
|
if (!s) continue;
|
|
4630
|
-
const r =
|
|
4695
|
+
const r = Y.getRawEntry(o), n = r ? {
|
|
4631
4696
|
data: s,
|
|
4632
|
-
uncompressedSize:
|
|
4697
|
+
uncompressedSize: Y.uncompressedSize(o),
|
|
4633
4698
|
raw: {
|
|
4634
4699
|
compressedData: r.data,
|
|
4635
4700
|
compressionMethod: r.compressionMethod,
|
|
@@ -4637,40 +4702,40 @@ var ds = {
|
|
|
4637
4702
|
}
|
|
4638
4703
|
} : {
|
|
4639
4704
|
data: s,
|
|
4640
|
-
uncompressedSize:
|
|
4705
|
+
uncompressedSize: Y.uncompressedSize(o)
|
|
4641
4706
|
};
|
|
4642
4707
|
t.set(o, n), e += s.byteLength;
|
|
4643
4708
|
}
|
|
4644
|
-
if (e > 67108864) x.push([`Source package too large to retain (${e} bytes, limit ${
|
|
4709
|
+
if (e > 67108864) x.push([`Source package too large to retain (${e} bytes, limit ${te}); unmodeled parts will be dropped on save.`, "SourcePackage"]);
|
|
4645
4710
|
else if (t.size > 0) {
|
|
4646
|
-
const e = new
|
|
4647
|
-
|
|
4648
|
-
let o =
|
|
4649
|
-
const s =
|
|
4711
|
+
const e = new Nt(t, et);
|
|
4712
|
+
tt(ve, e);
|
|
4713
|
+
let o = ve.getWorksheets().getItems();
|
|
4714
|
+
const s = ve.getTransactions().addListener({ onCommitEnd: (t) => {
|
|
4650
4715
|
const o = t.getOperation()?.name;
|
|
4651
4716
|
"insertCells" !== o && "deleteCells" !== o || e.markStructuralChange();
|
|
4652
|
-
} }), r =
|
|
4653
|
-
const t =
|
|
4717
|
+
} }), r = ve.addListeners({ onSheetsChange: () => {
|
|
4718
|
+
const t = ve.getWorksheets().getItems();
|
|
4654
4719
|
(t.length !== o.length || t.some((t, e) => t !== o[e])) && e.markStructuralChange(), o = t;
|
|
4655
4720
|
} });
|
|
4656
|
-
|
|
4657
|
-
s(), r(),
|
|
4721
|
+
ve.addListeners({ onClose: () => {
|
|
4722
|
+
s(), r(), X(ve);
|
|
4658
4723
|
} });
|
|
4659
4724
|
}
|
|
4660
4725
|
}
|
|
4661
|
-
if (x.length &&
|
|
4726
|
+
if (x.length && E?.onWarning) {
|
|
4662
4727
|
const t = /* @__PURE__ */ new Set();
|
|
4663
4728
|
for (const e of x) {
|
|
4664
4729
|
const [o, s, r] = e, n = r ?? o;
|
|
4665
|
-
t.has(n) || (t.add(n),
|
|
4730
|
+
t.has(n) || (t.add(n), E.onWarning(o, s));
|
|
4666
4731
|
}
|
|
4667
4732
|
}
|
|
4668
|
-
return y && !0 === d && console.table(y.toTable()), await
|
|
4733
|
+
return y && !0 === d && console.table(y.toTable()), await ve.whenFontsReady(), ve;
|
|
4669
4734
|
} catch (n) {
|
|
4670
4735
|
let t = "Unable to parse XLSX.";
|
|
4671
4736
|
throw n instanceof o && (t = "Unable to open XLSX. There are too many rows or columns."), new Error(t, { cause: n });
|
|
4672
4737
|
} finally {
|
|
4673
|
-
await
|
|
4738
|
+
await Y.close().catch(() => {});
|
|
4674
4739
|
}
|
|
4675
4740
|
};
|
|
4676
|
-
export {
|
|
4741
|
+
export { Xs as a, ks as i, xs as n, os as o, $s as r, Bs as t };
|