@sheetxl/mcp 0.8.0-beta.16 → 0.8.0-beta.17
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/agent/instructions.md +15 -4
- package/assets/{B_nQLUWaxp-Q1IfV.js → -cMvbaW1kvHslPKX.js} +2 -2
- package/assets/{D1g6IOzdvInVLV-x.js → 0kfwZuOHUkJmVjg6.js} +6 -6
- package/assets/{Gqh12ggLm5KlvN3v.js → 1feDuXw6tBXu2XFg.js} +1 -1
- package/assets/{DmLbqbAez7Dzwyl7.js → 4qMP71Fe1Ep8kbOX.js} +1 -1
- package/assets/{AjWB-QdIkr07kToW.js → 7TRx0dMYnL2i4tqL.js} +193 -193
- package/assets/{iqQWGoJaPha0_8lU.js → 8cVPexxAVrFJ9QLX.js} +1 -1
- package/assets/{C-AIgWmHugqMcl9J.js → APP8AzsNgQXHTalA.js} +2 -2
- package/assets/{Cl98sBOj9GM2XnFe.js → AnF1Kh3Vo2AniIYO.js} +2 -2
- package/assets/{B2YEEPHIkNcezk9T.js → B2BfjRdJGZs6afVL.js} +2 -2
- package/assets/{DEIkGoOZ_WeuY0Lj.js → B2UxLSteMiPlg8Uu.js} +1 -1
- package/assets/{BiGm1tKvxUh8oWbD.js → B3mh2tuvP-lMP6f_.js} +1 -1
- package/assets/{CG8zvnxueimOY7wm.js → B6NnxkSmEzCGZEZA.js} +1 -1
- package/assets/{DFAqI-o57Kd_Azlt.js → B7Nqa7V-v0cxGBux.js} +1 -1
- package/assets/{DTLbKr_XIJMwQJmk.js → B7OyFSpBb1eBvMVd.js} +13 -13
- package/assets/{CFdJvXLSbUrvNera.js → B8JX7a6VZlBNA_Bd.js} +8 -8
- package/assets/{Z01wJImjl6lBMpf4.js → B9J8nV-dh6jHpzZI.js} +1 -1
- package/assets/{C75i_5ip7OhGkuiF.js → B9M_sgHpoc-op6FF.js} +1 -1
- package/assets/{POdlv6cpSx6ftJxx.js → BBC_WF8BcAH-k_cQ.js} +1 -1
- package/assets/{DdrsYdX3bLixdb_9.js → BGZ_ltNFYvnAmbVR.js} +1 -1
- package/assets/{BNrpvJZtIL0Ex_wE.js → BJBoygm-gY68bLAP.js} +15 -15
- package/assets/{SaCo3me4_hw2b1L4.js → BJdWgj1hv57eGVl4.js} +389 -389
- package/assets/{Co_y6GfwJTYtOmlt.js → BKRLtOdVOUTrLjQN.js} +3 -3
- package/assets/{DNhfziNrJGdL8BYs.js → BKjovBsLpX2Fkhov.js} +6 -6
- package/assets/{pQUJKbHGetb7dcOr.js → BMJhHHX2LWgOJWGz.js} +1 -1
- package/assets/{D-irgQZ2WmkP9dnK.js → BOx4Ut_Rme7NH34X.js} +1 -1
- package/assets/{DfzLOnWTNL_2J90y.js → BQYpVYbvfWuUJgdx.js} +1 -1
- package/assets/{BtNRIFE92ka4hATo.js → BS4ZsfH5D6aemSpO.js} +1 -1
- package/assets/{CZepo1lDTQp1myg6.js → BSAdmOdx3brRE9LW.js} +1 -1
- package/assets/{DFn_thWGK0_EZI5k.js → BSY9Tbmz6VEY_F_x.js} +1 -1
- package/assets/{Dd8CHUZz7xuYTfp-.js → BT8AGlSg2t7V1QNj.js} +488 -488
- package/assets/{SB2aKOIVln0EkgXR.js → BUV7BlOZcuPgDZ__.js} +1 -1
- package/assets/{BbXlmp8W_cbr75FN.js → BX5xFncPLyeN7TqA.js} +5 -5
- package/assets/{3t-I20nDzFHBd5UJ.js → Bcak_hZpcIkB2gJD.js} +1 -1
- package/assets/{C0JSC9gVwR1QxopD.js → BdijGsy5W7yZ_I_n.js} +1 -1
- package/assets/{QVWayvB03YMyTKt3.js → BebXDUnlrDDRGW60.js} +2 -2
- package/assets/{D7iU4kaxzl_PojNt.js → BgldX21zhey2aR9D.js} +1 -1
- package/assets/{DQcus4X_kTKIIyX6.js → BhCbCEPpDzhg5nqL.js} +1 -1
- package/assets/{BZbxPclVVopktv3l.js → Bj4BFLBC9Tf6SGSt.js} +1 -1
- package/assets/{Di4ehJD7muvtcrN3.js → BjhAYfsKC8iEbtgn.js} +40 -40
- package/assets/{Ct5VTtdW77k-WcP_.js → BjnQVl1lb1KEbt2D.js} +51 -51
- package/assets/{CAEhAL7-0FG7jdzN.js → BlbxiLf1zD6_fWZs.js} +1 -1
- package/assets/{JC8UUcu6m23qqrr3.js → BmM-nHMAAuNatCcN.js} +1 -1
- package/assets/{BlWfQ5HPEehB_lPz.js → Bni-y4FJS4rkFYtn.js} +107 -107
- package/assets/{C2dG4GHThf9O-IJy.js → BodrfKIAhDFD-X3t.js} +1 -1
- package/assets/{C_0RM0w6Pw70Bx_Y.js → BvDcHHJvQMRHthm-.js} +1 -1
- package/assets/{4vS8pASPZSU7QcRZ.js → Bw_FtA-1886HMCLJ.js} +3 -3
- package/assets/{2GLqCzpAJP6jbaRx.js → Bxkx8QokmRNyXbOI.js} +5 -5
- package/assets/{B3MqN3t5naY3moOk.js → Bz1ImBvJwPwBrA5j.js} +1 -1
- package/assets/{BpgPKKZwxXklRyo7.js → C2NPIWe0pLs3PAZM.js} +2 -2
- package/assets/{DzkccbbE6iXMqQDO.js → C2ZX6ffXsMaEr2d2.js} +305 -305
- package/assets/{nmB0nnkFQf5NWo0i.js → C3Q-fjiZZ15waCq_.js} +2 -2
- package/assets/{CsjjeeOHE2624pGt.js → C46RpMrfF6FiEFI7.js} +1 -1
- package/assets/{LwFDS0HxPZKiiEnN.js → C4deMY87Q_haYyLF.js} +1 -1
- package/assets/{CW-ivE6pl3V7vKuT.js → C7iHn3y3HVBHflpA.js} +4 -4
- package/assets/{CVRc6jQcH155Z89u.js → CJF3P7U7yBQVF2Cg.js} +1 -1
- package/assets/{B16N6VSLY5HPgVkD.js → CLgvdaqeFlESLvbF.js} +1 -1
- package/assets/{BUAq-ENCmL0XGLIu.js → CLze192iF2o-aETZ.js} +1 -1
- package/assets/{CX-6eYkcr5y0VmQm.js → CMRLNLqYkiqCLMRa.js} +3 -3
- package/assets/{CAMrW5ypKhgn105y.js → COa691om4fLN4CUy.js} +1 -1
- package/assets/CSLLHl-zum7m1CJl.js +14 -0
- package/assets/{DJdRl2yX9DP_D8kh.js → CUbCBf24Ie4A2l4R.js} +2 -2
- package/assets/{CDqG64rXHp9-2tXr.js → CWLleOolFzyT0COW.js} +1 -1
- package/assets/{C3Wibs7QGFZ1FI7W.js → CaJ9j3l0cERnYqDS.js} +1 -1
- package/assets/{CrwtgrD7BbXyCkx0.js → CfA8o-FNret9-D6Y.js} +1 -1
- package/assets/{BbDKWV_FQAICqZjP.js → Cl7HHR6Vc9S4n3AP.js} +1 -1
- package/assets/{DKRa_Oc4XqB3DABB.js → CqjNsZ2OB4Kx6J3s.js} +8 -8
- package/assets/{soSlr334Fv1j5t2m.js → CqwEHSKivMYw7tRZ.js} +1 -1
- package/assets/{Dg4JXbd1yPGNZOtL.js → Cr6lm0oXZJaaoAmD.js} +1 -1
- package/assets/{Dp-dLoOaBndV2N5i.js → CshK6Ew7OQ7mngI3.js} +2 -2
- package/assets/{DBMZF6PRHCko9K9R.js → CsiIgnb_L2x2Go6g.js} +1 -1
- package/assets/{BYqyNLuwXl7GKuzh.js → CtmrBbpapaNwjwNB.js} +28 -28
- package/assets/{DvFwVzuc5YfagNnH.js → CwRhhoL5ynbe78dB.js} +1 -1
- package/assets/{C95HXhZkkhnUx_aE.js → CyI1eGGzJX8nJXaT.js} +2 -2
- package/assets/{DMhtIFfkX-DZT_e3.js → Cz4H3Qge2u8er3Ny.js} +3 -3
- package/assets/{BrtLeTsrulaU6osB.js → D0OQ6ka8so0BWPwL.js} +1 -1
- package/assets/{CJa8JVvKGVBz8Q7q.js → D336KioeSjd-T8n3.js} +2 -2
- package/assets/{DBANZf_eAzaCFdIj.js → D5L35C8cbX16BSCF.js} +227 -227
- package/assets/{DOZ40EyxD3m0gCos.js → D5VFuX1h50V2jLmZ.js} +305 -305
- package/assets/{5B_tapYOcjOv1wGO.js → D6ON3ZLcTAXV3fO6.js} +8353 -8352
- package/assets/{BsFWmVYPrLyh5Dre.js → DDhPOQPc-lpyZrUJ.js} +4 -4
- package/assets/{iULnLPcNKVpz00r7.js → DE4xC78p5UtS7wH6.js} +1 -1
- package/assets/{-PtBguqpLi7Nr4Df.js → DF7-oRscXc_vkMo8.js} +1 -1
- package/assets/{BIUUGUhypimIDg2a.js → DMuOMpgIhVgB3eG8.js} +1 -1
- package/assets/{TNQaiw20sEAEUiK5.js → DPKeRb9GKmh_WCPv.js} +1 -1
- package/assets/{9MXt8KXdWlbEJNc2.js → DSsH28SW8CMrSL-q.js} +1 -1
- package/assets/{D2YdqNWXwSHJMPbA.js → DV6WSFmSEKfb3d2s.js} +4 -4
- package/assets/{Bdt9nQs8gDIzu_IG.js → DYJcfrNUUJQtxXWX.js} +1 -1
- package/assets/{DLhlBqwsDnmscAuL.js → D_peM8fbRgGaWvpq.js} +1 -1
- package/assets/{D7ibkNIu_Pn4TeBD.js → DeEZvPW-VvlE28oE.js} +3 -3
- package/assets/{CL1-ziDI0aAaVbhJ.js → Dgi2xwb2DN2Gybj3.js} +2 -2
- package/assets/{BiE9M6RctwQ339_7.js → DidhZpf9qJAei29Y.js} +1 -1
- package/assets/{BlIrJwQGEASCgJdZ.js → Dkg-LQVsZlrHk7A8.js} +1 -1
- package/assets/{BBPjYcS8XKQREith.js → DnTfXqCnRCe-1QYI.js} +61 -61
- package/assets/{CVbRpT7QPHOMgwTx.js → DoBvgI3Ry8DlGzwQ.js} +1 -1
- package/assets/{BjDsx_FHl0mShqHX.js → DrHVew6gwOB6oxCn.js} +1 -1
- package/assets/{BRLA4pJWiYdpW-69.js → Dre79rTMoYYikNuB.js} +19 -19
- package/assets/{DaILIYfy-jPVTXjz.js → DsCNtBR5jCeqmLBS.js} +2 -2
- package/assets/{W2FU69Pfo4chpqtk.js → Dzz3yrKbECzg6caR.js} +1 -1
- package/assets/{nDmE2I07HvkpRdR0.js → FvxN6PPps-rNPDo8.js} +1 -1
- package/assets/{DfWWAHOjmhqvN3m_.js → G2Wjyx_ETCAcofwm.js} +130 -130
- package/assets/{YXC__Myl-BuIFW6s.js → IGAV8DdYH32cW8XU.js} +1 -1
- package/assets/{C-gN7uBg-MWHRo4g.js → Jd71-QCmFEcDcYSw.js} +1 -1
- package/assets/{CBPkPTmeaEokFPSI.js → Ljri8sTW3dWT4clD.js} +1 -1
- package/assets/{D3bxrF1Ys2GSVfQH.js → MW2nt7se27FlH9Yb.js} +1 -1
- package/assets/{8NrxfSWBHDaEJvhz.js → Mgs_OJP41a-Nfac3.js} +1 -1
- package/assets/{CvJkwRgwm80S2bcd.js → OHBzl-tZOi9Ni8YV.js} +1 -1
- package/assets/{BR66nPIzyzlOcP10.js → PbBzI4PlKpCgULLd.js} +1 -1
- package/assets/{DR9xHYH6v5G0lOqf.js → UH_biJmLrI9SvckA.js} +3 -3
- package/assets/{DFvs1LVzXKm1N5M2.js → Xe7sA_mEwDQpJjcF.js} +2 -2
- package/assets/{Dy67BUF2yd8VRPwL.js → YFiGplEq1G4XdCJ2.js} +1 -1
- package/assets/{BuhHuKVWppW4L8AV.js → YQtUMMGmb1_WFsh_.js} +1 -1
- package/assets/{BCSRsSAEPlwR59H5.js → dcvgOfBmWFTsXoT8.js} +4 -4
- package/assets/{Ci7-PIIhZwb2mVv5.js → iBgLe32XErisaUSr.js} +1 -1
- package/assets/{rfwqMukKbJBeJBuC.js → kpS1vY0DcE9p8JnI.js} +2 -2
- package/assets/{BdMebk9YSA0oxQ_d.js → lcIaYgz4tQGBlzlo.js} +67 -67
- package/assets/{CK9h6iDOreaI8GEt.js → nQbVdQrfdz3osBdi.js} +3 -3
- package/assets/{CoIjAX2gECGb3Wxl.js → oJNJQJEDQCsjHSmo.js} +1 -1
- package/assets/{3_NofB4A4Qhl-4YY.js → qgW-p2sFhMtuu5yw.js} +1 -1
- package/assets/{h6EQSu5n2vTsu2yd.js → z24-oIqP_fu2hsOt.js} +1 -1
- package/assets/{CIqJdIUKSLZkNwHy.js → z7nDK_gfX7G37XbZ.js} +34 -34
- package/index.js +205 -205
- package/lib.js +1 -1
- package/licenses/dependencies.txt +35 -35
- package/package.json +2 -2
- package/screenshot-page/assets/{D8s3sJnhFxbI3Dqn.js → 7Xk_eQAcM_HgWrOC.js} +1 -1
- package/screenshot-page/assets/{CQFj5AGXfIA9z9zI.js → B1W17rc9ilPFCh31.js} +1 -1
- package/screenshot-page/assets/B8UkvH0o9n_G5UO9.js +3 -0
- package/screenshot-page/assets/{CZa1rha3RnQUWyOk.js → BD96fN2dSVuoME09.js} +4 -4
- package/screenshot-page/assets/BE8ea8S0Q-qogeEs.js +2 -0
- package/screenshot-page/assets/{BU5S8KEzPmIA_Flm.js → BKwVcuWOKeH2xREA.js} +1 -1
- package/screenshot-page/assets/BNMBa8EZgWX2Eb3c.js +1 -0
- package/screenshot-page/assets/{Db6bZVJ-184DJIoe.js → BQCyH9YbEgnH78Ke.js} +2 -2
- package/screenshot-page/assets/BcDxaEii3arJqOym.js +1 -0
- package/screenshot-page/assets/Be-rukvcufhLamH5.js +1 -0
- package/screenshot-page/assets/{Dq7wGcTrNIshovlT.js → Bh33WyohJvbKZVQN.js} +2 -2
- package/screenshot-page/assets/C2ty_K_uix4ooip6.js +1 -0
- package/screenshot-page/assets/C9mUKjQ3yEzRu9j2.js +2 -0
- package/screenshot-page/assets/{DDkL9PZPXAggW2Yr.js → CB2mQ5rbaSw2W4ik.js} +23 -23
- package/screenshot-page/assets/{DLFFFQjTi5Ji1940.js → CCVAsuUimIJOkBnk.js} +1 -1
- package/screenshot-page/assets/{D7biuwkvm3zAwsBa.js → COoMVTzF50qBNFEu.js} +3 -3
- package/screenshot-page/assets/{Bir0SSOHX0w2yo8h.js → CSMEGhAHxl5-4FxB.js} +1 -1
- package/screenshot-page/assets/{rOzyaU7hqchMbhRL.js → CT7cY57t9j1sBhAy.js} +1 -1
- package/screenshot-page/assets/{BJ2r2WfEL3SgkBAX.js → CTjUtxDw6Z2I9OGc.js} +1 -1
- package/screenshot-page/assets/{BIrVK5hdDCUYmxGO.js → CUZobZ3mfNAdEisS.js} +1 -1
- package/screenshot-page/assets/{ClzJdxlUDDtBYjH8.js → C_OuKbe6z1it80cj.js} +1 -1
- package/screenshot-page/assets/Cbcv49b9jWyY4HKj.js +2 -0
- package/screenshot-page/assets/CtZFqwLoeJOvwFrl.js +42 -0
- package/screenshot-page/assets/Cz6KFmsp267l_VZS.js +1 -0
- package/screenshot-page/assets/{lgeNUp9cU20IAotv.js → D0koRjO2KnWQ1fNV.js} +1 -1
- package/screenshot-page/assets/{cTMKPkmZF8FWQaMn.js → DCP8JXEeiwAMiVD2.js} +1 -1
- package/screenshot-page/assets/DQAZPADvH5lhlMnK.js +1 -0
- package/screenshot-page/assets/DQBUH0j44Vtrykua.js +13 -0
- package/screenshot-page/assets/{DyiVrm8mEnEaoZHa.js → DSKOOgcJQeqIc9Us.js} +1 -1
- package/screenshot-page/assets/{CguXw0IcKNPbmAbj.js → DXaM3CulPA3aPGV1.js} +2 -2
- package/screenshot-page/assets/{CqyMYduWKFvmMs_Z.js → DcUOAH274IbYOuK1.js} +1 -1
- package/screenshot-page/assets/{CRsTnamLrPN5-Dsi.js → DdXSKhFUAsKUsQ1u.js} +1 -1
- package/screenshot-page/assets/Djl40tfWoPJSvqtv.js +1 -0
- package/screenshot-page/assets/TCImIYUUdVD4Z35I.js +1 -0
- package/screenshot-page/assets/dQsis-90Up-pIkSq.js +4 -0
- package/screenshot-page/assets/{Dn5PwRw7rrTKNnql.js → dXn1GWWjYmuLb1HF.js} +8 -8
- package/screenshot-page/index.html +5 -5
- package/assets/DsTi7zHk_Xl37bAD.js +0 -14
- package/screenshot-page/assets/B7eQ3rE-7Vayb_4O.js +0 -2
- package/screenshot-page/assets/B8i4Sr2kMQAXp0rb.js +0 -4
- package/screenshot-page/assets/BIHbD4jMsk3NetOd.js +0 -1
- package/screenshot-page/assets/BJviQwDXR5L6l1DA.js +0 -1
- package/screenshot-page/assets/BM78thqEW6HwXFAK.js +0 -13
- package/screenshot-page/assets/C2H2lX8eyKpxpP6M.js +0 -2
- package/screenshot-page/assets/CYfkL98Zu43S8-50.js +0 -42
- package/screenshot-page/assets/CzsoLbEIUVK5ia1C.js +0 -1
- package/screenshot-page/assets/D2IHCJ1QWDKwmhge.js +0 -1
- package/screenshot-page/assets/DMxrNtfw275en7pm.js +0 -1
- package/screenshot-page/assets/D_kJ3WunvjIINcHC.js +0 -1
- package/screenshot-page/assets/DhB6GjSJIeTmIODk.js +0 -1
- package/screenshot-page/assets/TilS2JSBGVkd1za3.js +0 -3
- package/screenshot-page/assets/UKFgEuwI1UMhPqKF.js +0 -2
- package/screenshot-page/assets/hlxJ87-H830aSZBQ.js +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.17
|
|
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 h, v as u } from "./
|
|
10
|
-
import { d, m as p, o as f } from "./
|
|
11
|
-
import {
|
|
12
|
-
import { N as A, P as k, d as E, g as I } from "./
|
|
13
|
-
import { F as P, ft as O, vt as D, yt as N } from "./
|
|
14
|
-
import { $ as _, B as $, Bt as M, Cr as R, Ct as V, D as L, Dt as j, E as B, Er as F, Fn as H, Ft as W, G as z, H as X, Hn as q, In as U, J as K, Jn as J, Lt as Z, N as Q, Nn as Y, Nt as tt, On as et, Rt as ot, S as st, Sr as rt, St as nt, T as it, Vn as at, W as lt, Xt as ct, Zn as ht, Zt as ut, _ as dt, _t as pt, a as ft, b as gt, bn as mt, bt, cr as
|
|
7
|
+
import { r as t } from "./BMJhHHX2LWgOJWGz.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 "./CfA8o-FNret9-D6Y.js";
|
|
9
|
+
import { G as l, ht as c, lt as h, v as u } from "./BJBoygm-gY68bLAP.js";
|
|
10
|
+
import { d, m as p, o as f } from "./MW2nt7se27FlH9Yb.js";
|
|
11
|
+
import { $i as g, $r as m, Ci as b, Li as v, Sn as y, Vi as x, lt as w, ot as T, r as S, v as C } from "./D6ON3ZLcTAXV3fO6.js";
|
|
12
|
+
import { N as A, P as k, d as E, g as I } from "./D5VFuX1h50V2jLmZ.js";
|
|
13
|
+
import { F as P, ft as O, vt as D, yt as N } from "./DPKeRb9GKmh_WCPv.js";
|
|
14
|
+
import { $ as _, B as $, Bt as M, Cr as R, Ct as V, D as L, Dt as j, E as B, Er as F, Fn as H, Ft as W, G as z, H as X, Hn as q, In as U, J as K, Jn as J, Lt as Z, N as Q, Nn as Y, Nt as tt, On as et, Rt as ot, S as st, Sr as rt, St as nt, T as it, Vn as at, W as lt, Xt as ct, Zn as ht, Zt as ut, _ as dt, _t as pt, a as ft, b as gt, bn as mt, bt, cr as vt, ct as yt, d as xt, dt as wt, en as Tt, er as St, fn as Ct, fr as At, gn as kt, gr as Et, gt as It, hn as Pt, i as Ot, in as Dt, k as Nt, l as _t, ln as $t, lr as Mt, m as Rt, mr as Vt, n as Lt, nt as jt, or as Bt, ot as Ft, q as Ht, rr as Wt, tt as zt, v as Xt, vn as qt, w as Ut, wr as Gt, wt as Kt, xn as Jt, xt as Zt, yn as Qt, zn as Yt, zt as te } from "./Bni-y4FJS4rkFYtn.js";
|
|
15
15
|
var ee = {
|
|
16
16
|
ascending: "ascending",
|
|
17
17
|
descending: "descending",
|
|
@@ -64,7 +64,7 @@ function oe(t, e) {
|
|
|
64
64
|
continue;
|
|
65
65
|
}
|
|
66
66
|
const p = s.get(String(h.tableId)), f = p ? se(p.columns, h.columnId) : null;
|
|
67
|
-
p && f ? (o.json = ne(h, o.json,
|
|
67
|
+
p && f ? (o.json = ne(h, o.json, C.structuredReference(p.name, f.name)), l.add(c), h.cachePath && e.markAbsorbed(h.cachePath)) : (e.warn("A slicer names no table; it was not imported.", "xlsx.slicer.cacheDefinition"), d.splice(t, 1));
|
|
68
68
|
}
|
|
69
69
|
delete h.slicers;
|
|
70
70
|
}
|
|
@@ -247,7 +247,7 @@ function ge() {
|
|
|
247
247
|
function me(t) {
|
|
248
248
|
return Math.round(10 * t) / 10;
|
|
249
249
|
}
|
|
250
|
-
var be = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",
|
|
250
|
+
var be = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", ve = `-${be}.0-9·̀-ͯ‿-⁀`, ye = (new RegExp(`^[${be}]$`, "u"), new RegExp(`^[${ve}]$`, "u"), new RegExp(`^[${be}][${ve}]*$`, "u")), xe = (new RegExp(`^[${ve}]+$`, "u"), [
|
|
251
251
|
32,
|
|
252
252
|
10,
|
|
253
253
|
13,
|
|
@@ -268,7 +268,7 @@ var Ie, Pe = function(t) {
|
|
|
268
268
|
return t >= 32 && t <= 55295 || 10 === t || 13 === t || 9 === t || t >= 57344 && t <= 65533 || t >= 65536 && t <= 1114111;
|
|
269
269
|
}, De = we, Ne = function(t) {
|
|
270
270
|
return we(t) || t >= 48 && t <= 57 || 45 === t || 46 === t || 183 === t || t >= 768 && t <= 879 || t >= 8255 && t <= 8256;
|
|
271
|
-
}, _e = xe, $e =
|
|
271
|
+
}, _e = xe, $e = ye, Me = function(t) {
|
|
272
272
|
return t >= 1 && t <= 55295 || t >= 57344 && t <= 65533 || t >= 65536 && t <= 1114111;
|
|
273
273
|
}, Re = Ee, Ve = function(t) {
|
|
274
274
|
return Ee(t) || 45 === t || 46 === t || t >= 48 && t <= 57 || 183 === t || t >= 768 && t <= 879 || t >= 8255 && t <= 8256;
|
|
@@ -1310,7 +1310,7 @@ var io = (t) => Le.test(t), ao = (t) => $e.test(t), lo = {
|
|
|
1310
1310
|
return s.close(), r;
|
|
1311
1311
|
};
|
|
1312
1312
|
})(Ie || (Ie = {}));
|
|
1313
|
-
var
|
|
1313
|
+
var vo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t && "0" !== t && "off" !== t && "false" !== t && null, yo = (t) => {
|
|
1314
1314
|
const e = parseInt(t);
|
|
1315
1315
|
return isNaN(e) ? null : e;
|
|
1316
1316
|
}, xo = (t) => {
|
|
@@ -1345,7 +1345,7 @@ var yo = (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
|
+
}, v = {
|
|
1349
1349
|
getSource: () => d?.source ?? null,
|
|
1350
1350
|
setSource: (t) => {
|
|
1351
1351
|
d.source = t;
|
|
@@ -1355,7 +1355,7 @@ var yo = (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 !== v.getAttribute(t),
|
|
1359
1359
|
getParent: () => {
|
|
1360
1360
|
const t = h[h.length - 2];
|
|
1361
1361
|
return t.parent ?? t.source;
|
|
@@ -1406,7 +1406,7 @@ var yo = (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(v);
|
|
1410
1410
|
null === t ? b = !0 : t && (r.push(t), i.pushedScope = !0);
|
|
1411
1411
|
}
|
|
1412
1412
|
m && (0 === n.length ? (d = u, i.destination = d, i.pushedDestination = !0, h.push(d)) : b ? (d = null, i.destination = null) : m.transparent ? i.destination = d : (d = {
|
|
@@ -1414,8 +1414,8 @@ var yo = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1414
1414
|
source: {},
|
|
1415
1415
|
parent: null
|
|
1416
1416
|
}, i.destination = d, i.pushedDestination = !0, h.push(d))), n.push(i), p = b;
|
|
1417
|
-
const
|
|
1418
|
-
void 0 !==
|
|
1417
|
+
const y = c?.openTag?.(v);
|
|
1418
|
+
void 0 !== y && (d.parent = y), m?.raw && !b && (f = [], g = i);
|
|
1419
1419
|
},
|
|
1420
1420
|
onCloseTag: (t) => {
|
|
1421
1421
|
let e = t.name;
|
|
@@ -1426,19 +1426,19 @@ var yo = (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 &&
|
|
1429
|
+
p || c?.closeTag?.(v), b && (m = null);
|
|
1430
|
+
const y = n.pop() ?? null;
|
|
1431
|
+
i = n[n.length - 1] ?? null, y?.pushedScope && r.pop();
|
|
1432
|
+
const x = y?.destination;
|
|
1433
|
+
if (x && y.pushedDestination) {
|
|
1434
1434
|
h.pop(), d = h[h.length - 1] ?? u;
|
|
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 ${
|
|
1435
|
+
const t = y.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 ${v.getPath()}`) : x.key ? d.source[x.key] = x.source : "string" == typeof t.to && (d.source[t.to] = x.source));
|
|
1437
1437
|
} else x || (d = h[h.length - 1] ?? u);
|
|
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(To(t)) : c?.text?.(t,
|
|
1441
|
+
f ? f.push(To(t)) : c?.text?.(t, v);
|
|
1442
1442
|
},
|
|
1443
1443
|
onEnd: e
|
|
1444
1444
|
};
|
|
@@ -1505,19 +1505,19 @@ var yo = (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) => [m.rangeToString(t), "dynamic"]);
|
|
1509
1509
|
}
|
|
1510
1510
|
}, _o = /^\s*TABLE\s*\(([^()]*)\)\s*$/i, $o = /^\s*(\$?)([A-Za-z]{1,3})(\$?)(\d{1,7})\s*$/, Mo = (t) => {
|
|
1511
1511
|
const e = $o.exec(t);
|
|
1512
1512
|
if (!e) return null;
|
|
1513
|
-
const o =
|
|
1513
|
+
const o = m.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
|
-
}, Ro = (t) =>
|
|
1520
|
+
}, Ro = (t) => m.cellToString({
|
|
1521
1521
|
rowIndex: t.row,
|
|
1522
1522
|
colIndex: t.col
|
|
1523
1523
|
}), Vo = (t, e) => {
|
|
@@ -1711,17 +1711,17 @@ var Xo = {
|
|
|
1711
1711
|
};
|
|
1712
1712
|
}, Go = "formulaDialect", Ko = "isKnownFunction", Jo = "date1904", Zo = "richStrings", Qo = "defaultFont", Yo = (t, e, o, s, r, n, i, a) => {
|
|
1713
1713
|
const l = new Co(), c = (t) => {
|
|
1714
|
-
const e = t.getAttribute("dxfId",
|
|
1714
|
+
const e = t.getAttribute("dxfId", yo);
|
|
1715
1715
|
if (null !== e) return s?.get(e) || (n?.(`A color filter or sort names a format that does not exist (dxfId '${e}').`), {});
|
|
1716
1716
|
};
|
|
1717
1717
|
let h = !1;
|
|
1718
|
-
const u = a?.get("parseInlineDxf"), d = a?.get(Go), f = (t) => d && t ? d.readDetached(t) : t,
|
|
1719
|
-
let
|
|
1718
|
+
const u = a?.get("parseInlineDxf"), d = a?.get(Go), f = (t) => d && t ? d.readDetached(t) : t, b = new x.TransposedBuilder();
|
|
1719
|
+
let y = null, w = "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 = m.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", vo);
|
|
1746
1746
|
null !== r && (s.pivot = r), t.setSource(s);
|
|
1747
1747
|
}
|
|
1748
1748
|
}), l.registerVisitor({
|
|
@@ -1756,13 +1756,13 @@ var Xo = {
|
|
|
1756
1756
|
r: e.r,
|
|
1757
1757
|
v: null,
|
|
1758
1758
|
rule: o
|
|
1759
|
-
}), t.copyToObject(o, "type", wo), t.copyToObject(o, "priority",
|
|
1760
|
-
const r = t.getAttribute("dxfId",
|
|
1759
|
+
}), t.copyToObject(o, "type", wo), t.copyToObject(o, "priority", yo), t.copyToObject(o, "stopIfTrue", vo);
|
|
1760
|
+
const r = t.getAttribute("dxfId", yo);
|
|
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", vo), t.copyToObject(o, "equalAverage", vo), t.copyToObject(o, "stdDev", yo), t.copyToObject(o, "bottom", vo), t.copyToObject(o, "percent", vo), t.copyToObject(o, "rank", yo), t.copyToObject(o, "operator", wo), t.copyToObject(o, "text", wo), t.copyToObject(o, "timePeriod", wo);
|
|
1766
1766
|
},
|
|
1767
1767
|
closeTag: (t) => {
|
|
1768
1768
|
const e = t.getParent();
|
|
@@ -1773,7 +1773,7 @@ var Xo = {
|
|
|
1773
1773
|
i && (r.condition = i), s.style && (r.style = s.style), s.scale && (r.scale = s.scale), s.stopIfTrue && (r.stopIfTrue = !0), s.pivot && "number" == typeof s.priority && (r.pivotKey = s.priority), o.v = r, o.priority = s.priority, s.x14Id && (o.x14Id = s.x14Id), delete o.rule;
|
|
1774
1774
|
}
|
|
1775
1775
|
});
|
|
1776
|
-
const
|
|
1776
|
+
const S = (t) => {
|
|
1777
1777
|
const e = t.conditions ?? [], o = [];
|
|
1778
1778
|
for (let t = 0; t < e.length; t++) {
|
|
1779
1779
|
const s = e[t], r = {};
|
|
@@ -1786,10 +1786,10 @@ var Xo = {
|
|
|
1786
1786
|
to: {},
|
|
1787
1787
|
openTag: (t) => {},
|
|
1788
1788
|
closeTag: (t) => {
|
|
1789
|
-
const e = t.getSource(), o = e.colors ?? [], s =
|
|
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: g.ScaleType.ColorScale,
|
|
1793
1793
|
stops: s
|
|
1794
1794
|
};
|
|
1795
1795
|
}
|
|
@@ -1797,12 +1797,12 @@ var Xo = {
|
|
|
1797
1797
|
from: "dataBar",
|
|
1798
1798
|
to: {},
|
|
1799
1799
|
openTag: (t) => {
|
|
1800
|
-
t.copyTo("maxLength",
|
|
1800
|
+
t.copyTo("maxLength", yo), t.copyTo("minLength", yo), t.copyTo("showValue", vo);
|
|
1801
1801
|
},
|
|
1802
1802
|
closeTag: (t) => {
|
|
1803
1803
|
const e = t.getSource(), o = {
|
|
1804
|
-
type:
|
|
1805
|
-
stops:
|
|
1804
|
+
type: g.ScaleType.DataBar,
|
|
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;
|
|
1808
1808
|
}
|
|
@@ -1810,12 +1810,12 @@ var Xo = {
|
|
|
1810
1810
|
from: "iconSet",
|
|
1811
1811
|
to: {},
|
|
1812
1812
|
openTag: (t) => {
|
|
1813
|
-
t.copyTo("iconSet", wo), t.copyTo("reverse",
|
|
1813
|
+
t.copyTo("iconSet", wo), t.copyTo("reverse", vo), t.copyTo("showValue", vo);
|
|
1814
1814
|
},
|
|
1815
1815
|
closeTag: (t) => {
|
|
1816
1816
|
const e = t.getSource(), o = {
|
|
1817
|
-
type:
|
|
1818
|
-
stops:
|
|
1817
|
+
type: g.ScaleType.IconSet,
|
|
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;
|
|
1821
1821
|
}
|
|
@@ -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", wo), o.type ===
|
|
1837
|
+
if (e.conditions.push(o), t.copyTo("type", wo), o.type === g.ColorStopType.Formula) {
|
|
1838
1838
|
const e = t.getAttribute("val");
|
|
1839
1839
|
null != e && (o.value = f(String(e)));
|
|
1840
1840
|
} else t.copyTo("value", xo, "val");
|
|
1841
|
-
!1 === t.getAttribute("gte",
|
|
1841
|
+
!1 === t.getAttribute("gte", vo) && (o.exclusive = !0);
|
|
1842
1842
|
}
|
|
1843
1843
|
}), l.registerVisitor({
|
|
1844
1844
|
from: "color",
|
|
@@ -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", vo) && 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", vo) && 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 = v.BuiltInOperatorNames.Color, e.param = o, t.copyToObject(o, "cellColor", vo);
|
|
1876
1876
|
const s = c(t);
|
|
1877
1877
|
s && (o.style = s);
|
|
1878
1878
|
}
|
|
@@ -1880,13 +1880,13 @@ var Xo = {
|
|
|
1880
1880
|
from: "iconFilter",
|
|
1881
1881
|
openTag: (t) => {
|
|
1882
1882
|
const e = t.getParent(), o = {};
|
|
1883
|
-
e.operator =
|
|
1883
|
+
e.operator = v.BuiltInOperatorNames.Icon, e.param = o, t.copyToObject(o, "iconId", yo), t.copyToObject(o, "iconSet", wo);
|
|
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 = v.BuiltInOperatorNames.TopN, e.param = o, t.copyToObject(o, "filterVal", xo), t.copyToObject(o, "percent", vo), t.copyToObject(o, "top", vo), t.copyToObject(o, "limit", xo, "val");
|
|
1890
1890
|
}
|
|
1891
1891
|
}), l.registerVisitor({
|
|
1892
1892
|
from: "dynamicFilter",
|
|
@@ -1895,15 +1895,15 @@ var Xo = {
|
|
|
1895
1895
|
e.operator = o.operator, e.param = o.param;
|
|
1896
1896
|
}
|
|
1897
1897
|
});
|
|
1898
|
-
const
|
|
1898
|
+
const C = {
|
|
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 = v.BuiltInSelectorNames.Display, e.operator = v.BuiltInOperatorNames.InSet, e.param = o, t.copyToObject(o, "blank", vo), t.copyToObject(o, "calendarType", wo), o;
|
|
1904
1904
|
}
|
|
1905
1905
|
};
|
|
1906
|
-
l.registerVisitor(
|
|
1906
|
+
l.registerVisitor(C);
|
|
1907
1907
|
const A = {
|
|
1908
1908
|
from: "filter",
|
|
1909
1909
|
openTag: (t) => {
|
|
@@ -1919,7 +1919,7 @@ var Xo = {
|
|
|
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", wo, "dateTimeGrouping"), t.copyTo("day",
|
|
1922
|
+
o || (o = [], e.dateGroups = o), o.push(t.getSource()), t.copyTo("group", wo, "dateTimeGrouping"), t.copyTo("day", yo), t.copyTo("hour", yo), t.copyTo("minute", yo), t.copyTo("month", yo), t.copyTo("second", yo), t.copyTo("year", yo);
|
|
1923
1923
|
}
|
|
1924
1924
|
};
|
|
1925
1925
|
l.registerVisitor(k);
|
|
@@ -1927,11 +1927,11 @@ var Xo = {
|
|
|
1927
1927
|
E.set("filterColumn", {
|
|
1928
1928
|
from: "filterColumn",
|
|
1929
1929
|
transparent: !0
|
|
1930
|
-
}), E.set("filters",
|
|
1930
|
+
}), E.set("filters", C), E.set("filter", A), E.set("dateGroupItem", k), 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 ? v.BuiltInOperatorNames.And : v.BuiltInOperatorNames.Or, e.param = r, t.setSource(e), r;
|
|
1935
1935
|
},
|
|
1936
1936
|
closeTag: (t) => {
|
|
1937
1937
|
const e = t.getSource(), o = e?.param;
|
|
@@ -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", vo);
|
|
1966
|
+
null != r && (I.collatorOptions = r ? T.CaseSensitiveOptions : T.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", vo) && (s.axis = p.Axis.Column);
|
|
1972
1972
|
const i = t.getAttribute("ref"), a = e.r;
|
|
1973
|
-
P = i && a ?
|
|
1973
|
+
P = i && a ? m.fastStringToRange(i) : null, P && (s.extent = { range: Ot(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 =
|
|
1988
|
+
const t = m.fastStringToRange(n, ss), o = t.colStart, s = e.r, r = s.colStart;
|
|
1989
1989
|
i = s ? o - r : o, s && P && (a = R(s, P, t));
|
|
1990
1990
|
}
|
|
1991
1991
|
s.extent && (s.extent.sorts ??= []).push(a);
|
|
1992
1992
|
const l = { ...I }, h = st(t.getAttribute("sortBy"));
|
|
1993
1993
|
h && (l.sortOn = h);
|
|
1994
1994
|
const u = c(t);
|
|
1995
|
-
u && (l.style = u), t.copyToObject(l, "iconSet", wo), t.copyToObject(l, "customList", wo), l.reverse = t.getAttribute("descending",
|
|
1995
|
+
u && (l.style = u), t.copyToObject(l, "iconSet", wo), t.copyToObject(l, "customList", wo), l.reverse = t.getAttribute("descending", vo) ?? !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
|
-
|
|
2004
|
+
y = t.getSource(), w = "topLeft", t.copyTo("topLeft", wo, "topLeftCell");
|
|
2005
2005
|
const e = ht(t.getAttribute("defaultGridColor")), o = t.getAttribute("colorId");
|
|
2006
|
-
null === o || e || (t.getSource().gridLineColor = "index" + parseFloat(o)), t.copyTo("showZeros",
|
|
2006
|
+
null === o || e || (t.getSource().gridLineColor = "index" + parseFloat(o)), t.copyTo("showZeros", vo), t.copyTo("showFormulas", vo), t.copyTo("zoomScale", yo), t.copyTo("viewMode", wo, "view");
|
|
2007
2007
|
const s = {};
|
|
2008
2008
|
for (const [e, o] of Lt) {
|
|
2009
|
-
const r = t.getAttribute(o,
|
|
2009
|
+
const r = t.getAttribute(o, yo);
|
|
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", vo), t.copyTo("showWhitespace", vo, "showWhiteSpace"), t.copyTo("windowProtection", vo), t.copyTo("showRowHeaders", vo, "showRowColHeaders"), t.copyTo("showColumnHeaders", vo, "showRowColHeaders"), t.copyTo("showRowGridlines", vo, "showGridLines"), t.copyTo("showColumnGridlines", vo, "showGridLines"), t.copyTo("rightToLeft", vo), t.copyTo("showOutlineSymbols", vo);
|
|
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
|
+
y = 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, y = null;
|
|
2037
2037
|
}
|
|
2038
2038
|
}), l.registerVisitor({
|
|
2039
2039
|
from: "selection",
|
|
2040
2040
|
to: null,
|
|
2041
2041
|
openTag: (t) => {
|
|
2042
|
-
if (!
|
|
2042
|
+
if (!y) return;
|
|
2043
2043
|
const e = t.getAttribute("activeCell")?.replace(/\$/g, ""), o = t.getAttribute("sqref")?.replace(/\$/g, ""), s = t.getAttribute("pane") ?? "topLeft";
|
|
2044
2044
|
if (s !== w) {
|
|
2045
|
-
const t =
|
|
2045
|
+
const t = y.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", yo);
|
|
2055
|
+
null !== n && (r.rangeIndex = n), o && o !== e && (r.ranges = o.trim().split(/\s+/)), y.selection = r;
|
|
2056
2056
|
}
|
|
2057
2057
|
}), l.registerVisitor({
|
|
2058
2058
|
from: "pane",
|
|
2059
2059
|
to: null,
|
|
2060
2060
|
openTag: (t) => {
|
|
2061
|
-
if (!
|
|
2061
|
+
if (!y) return;
|
|
2062
2062
|
w = 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
|
+
y.freezePanes = e, t.copyToObject(e, "topLeft", wo, "topLeftCell");
|
|
2067
|
+
const o = (y.topLeft ? m.fastStringToCell(y.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", yo, "xSplit"), t.copyToObject(s, "rowIndex", yo, "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 = m.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", vo) && (t.conditionalFormatCalculation = !1), !0 === e.getAttribute("transitionEvaluation", vo) && (t.transitionFormulaEvaluation = !0), !0 === e.getAttribute("transitionEntry", vo) && (t.transitionFormulaEntry = !0), !1 === e.getAttribute("published", vo) && (t.excludeFromPublishing = !0);
|
|
2088
2088
|
const s = {};
|
|
2089
|
-
!0 === e.getAttribute("syncHorizontal",
|
|
2089
|
+
!0 === e.getAttribute("syncHorizontal", vo) && (s.horizontal = !0), !0 === e.getAttribute("syncVertical", vo) && (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
|
}
|
|
@@ -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", vo) && (N().fitToPage = !0), !1 === t.getAttribute("autoPageBreaks", vo) && (N().hideAutoPageBreaks = !0);
|
|
2108
2108
|
}
|
|
2109
2109
|
}), l.registerVisitor({
|
|
2110
2110
|
from: "outlinePr",
|
|
@@ -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, yo) ?? void 0, r = (e) => t.getAttribute(e, vo), n = t.getAttribute("orientation");
|
|
2143
2143
|
"landscape" !== n && "portrait" !== n || (o.orientation = n);
|
|
2144
2144
|
for (const t of [
|
|
2145
2145
|
"paperSize",
|
|
@@ -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, vo);
|
|
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,7 +2178,7 @@ 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, vo);
|
|
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
|
});
|
|
@@ -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", yo);
|
|
2208
2208
|
if (null == e) return;
|
|
2209
|
-
const o = { index: e }, s = t.getAttribute("min",
|
|
2209
|
+
const o = { index: e }, s = t.getAttribute("min", yo);
|
|
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", yo);
|
|
2212
|
+
null != r && (o.max = r), !0 !== t.getAttribute("man", vo) && (o.automatic = !0), !0 === t.getAttribute("pt", vo) && (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 J) !0 === e.getAttribute(t,
|
|
2226
|
+
for (const t of J) !0 === e.getAttribute(t, vo) && 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,10 +2241,10 @@ 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", vo) && (o.disablePrompts = !0);
|
|
2245
|
+
const s = e.getAttribute("xWindow", yo);
|
|
2246
2246
|
null !== s && (o.windowX = s);
|
|
2247
|
-
const r = e.getAttribute("yWindow",
|
|
2247
|
+
const r = e.getAttribute("yWindow", yo);
|
|
2248
2248
|
null !== r && (o.windowY = r), Object.keys(o).length > 0 && (t.validationSettings = {
|
|
2249
2249
|
...t.validationSettings,
|
|
2250
2250
|
...o
|
|
@@ -2265,13 +2265,13 @@ var Xo = {
|
|
|
2265
2265
|
operator: t.getAttribute("operator") ?? void 0
|
|
2266
2266
|
}
|
|
2267
2267
|
};
|
|
2268
|
-
!0 === t.getAttribute("showDropDown",
|
|
2268
|
+
!0 === t.getAttribute("showDropDown", vo) && (o.hideDropdown = !0), t.copyToObject(o, "alert", wo, "error"), t.copyToObject(o, "alertTitle", wo, "errorTitle"), t.copyToObject(o, "showAlertMessage", vo, "showErrorMessage"), o.alertStyle = t.getAttribute("errorStyle") ?? "stop", t.copyToObject(o, "imeMode"), t.copyToObject(o, "prompt"), t.copyToObject(o, "promptTitle"), t.copyToObject(o, "showPromptMessage", vo, "showInputMessage"), t.setSource(s);
|
|
2269
2269
|
},
|
|
2270
2270
|
closeTag: (t) => {
|
|
2271
2271
|
const e = t.getSource();
|
|
2272
2272
|
if (!e?.rule) return;
|
|
2273
2273
|
const o = Zt(e.rule, n);
|
|
2274
|
-
o && (t.getAttribute("allowBlank",
|
|
2274
|
+
o && (t.getAttribute("allowBlank", vo) && (o.includeBlanks = !0), e.v.condition = o), delete e.rule;
|
|
2275
2275
|
}
|
|
2276
2276
|
};
|
|
2277
2277
|
l.registerVisitor($), l.registerVisitor({
|
|
@@ -2390,7 +2390,7 @@ var Xo = {
|
|
|
2390
2390
|
from: "cfRule",
|
|
2391
2391
|
to: {},
|
|
2392
2392
|
openTag: (t) => {
|
|
2393
|
-
t.copyTo("id", wo), t.copyTo("type", wo), t.copyTo("priority",
|
|
2393
|
+
t.copyTo("id", wo), t.copyTo("type", wo), t.copyTo("priority", yo), t.copyTo("stopIfTrue", vo), t.copyTo("operator", wo), t.copyTo("text", wo), t.copyTo("timePeriod", wo), t.copyTo("aboveAverage", vo), t.copyTo("equalAverage", vo), t.copyTo("stdDev", yo), t.copyTo("bottom", vo), t.copyTo("percent", vo), t.copyTo("rank", yo);
|
|
2394
2394
|
},
|
|
2395
2395
|
closeTag: (t) => {
|
|
2396
2396
|
const e = t.getSource();
|
|
@@ -2403,7 +2403,7 @@ var Xo = {
|
|
|
2403
2403
|
from: "dataBar",
|
|
2404
2404
|
to: {},
|
|
2405
2405
|
openTag: (t) => {
|
|
2406
|
-
t.copyTo("minLength",
|
|
2406
|
+
t.copyTo("minLength", yo), t.copyTo("maxLength", yo), t.copyTo("gradient", vo), t.copyTo("border", vo), t.copyTo("direction", wo), t.copyTo("axisPosition", wo), t.copyTo("negativeBarColorSameAsPositive", vo), t.copyTo("negativeBarBorderColorSameAsPositive", vo);
|
|
2407
2407
|
},
|
|
2408
2408
|
closeTag: (t) => {
|
|
2409
2409
|
t.getParent().dataBar = t.getSource();
|
|
@@ -2412,7 +2412,7 @@ var Xo = {
|
|
|
2412
2412
|
from: "iconSet",
|
|
2413
2413
|
to: {},
|
|
2414
2414
|
openTag: (t) => {
|
|
2415
|
-
t.copyTo("iconSet", wo), t.copyTo("custom",
|
|
2415
|
+
t.copyTo("iconSet", wo), t.copyTo("custom", vo), t.copyTo("reverse", vo), t.copyTo("showValue", vo);
|
|
2416
2416
|
},
|
|
2417
2417
|
closeTag: (t) => {
|
|
2418
2418
|
t.getParent().iconSet = t.getSource();
|
|
@@ -2432,7 +2432,7 @@ var Xo = {
|
|
|
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", wo), !1 === t.getAttribute("gte",
|
|
2435
|
+
e.conditions.push(o), t.copyTo("type", wo), !1 === t.getAttribute("gte", vo) && (o.exclusive = !0);
|
|
2436
2436
|
}
|
|
2437
2437
|
}), X.set("f", j("f", (t, e) => {
|
|
2438
2438
|
const o = e.getParent();
|
|
@@ -2461,7 +2461,7 @@ var Xo = {
|
|
|
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", yo);
|
|
2465
2465
|
if (null === e || null === o) return;
|
|
2466
2466
|
const s = t.getParent();
|
|
2467
2467
|
s.icons || (s.icons = []), s.icons.push({
|
|
@@ -2672,19 +2672,19 @@ var Xo = {
|
|
|
2672
2672
|
}
|
|
2673
2673
|
});
|
|
2674
2674
|
const mt = (t, e) => {
|
|
2675
|
-
e.conditions?.length && (t.stops =
|
|
2676
|
-
},
|
|
2677
|
-
e.conditions?.length && (t.stops =
|
|
2678
|
-
},
|
|
2675
|
+
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
|
+
}, vt = (t, e) => {
|
|
2677
|
+
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
|
+
}, yt = (t) => {
|
|
2679
2679
|
if (!t.sqref) return null;
|
|
2680
2680
|
const e = t.sqref.split(/\s+/).join(",");
|
|
2681
2681
|
if ("iconSet" === t.type) {
|
|
2682
2682
|
if (!t.iconSet) return null;
|
|
2683
2683
|
const o = {
|
|
2684
|
-
type:
|
|
2684
|
+
type: g.ScaleType.IconSet,
|
|
2685
2685
|
stops: []
|
|
2686
2686
|
};
|
|
2687
|
-
return
|
|
2687
|
+
return vt(o, t.iconSet), {
|
|
2688
2688
|
r: e,
|
|
2689
2689
|
v: { scale: o },
|
|
2690
2690
|
priority: t.priority
|
|
@@ -2714,12 +2714,12 @@ var Xo = {
|
|
|
2714
2714
|
if (!r) continue;
|
|
2715
2715
|
W.delete(s);
|
|
2716
2716
|
const n = e.v?.scale;
|
|
2717
|
-
r.dataBar && n?.type ===
|
|
2717
|
+
r.dataBar && n?.type === g.ScaleType.DataBar ? mt(n, r.dataBar) : r.iconSet && n?.type === g.ScaleType.IconSet && vt(n, r.iconSet);
|
|
2718
2718
|
}
|
|
2719
2719
|
const s = [...W.values(), ...z], r = /* @__PURE__ */ new Set();
|
|
2720
2720
|
let i = 0;
|
|
2721
2721
|
for (let t = 0; t < s.length; t++) {
|
|
2722
|
-
const n =
|
|
2722
|
+
const n = yt(s[t]);
|
|
2723
2723
|
n ? (o || (o = [], e.conditionals = o), o.push(n)) : (r.add(s[t].type ?? "unknown"), i++);
|
|
2724
2724
|
}
|
|
2725
2725
|
if (i > 0) {
|
|
@@ -2763,7 +2763,7 @@ var Xo = {
|
|
|
2763
2763
|
}
|
|
2764
2764
|
if (e.sheet) return;
|
|
2765
2765
|
const o = {};
|
|
2766
|
-
t.copyToObject(o, "hash", wo, "hashValue"), t.copyToObject(o, "algorithm", wo, "algorithmName"), t.copyToObject(o, "salt", wo, "saltValue"), t.copyToObject(o, "spinCount",
|
|
2766
|
+
t.copyToObject(o, "hash", wo, "hashValue"), t.copyToObject(o, "algorithm", wo, "algorithmName"), t.copyToObject(o, "salt", wo, "saltValue"), t.copyToObject(o, "spinCount", yo), t.copyToObject(o, "legacyHash", wo, "password"), Object.keys(o).length > 0 && (t.getSource().password = o);
|
|
2767
2767
|
}
|
|
2768
2768
|
}), l.registerVisitor({
|
|
2769
2769
|
from: "protectedRanges",
|
|
@@ -2783,7 +2783,7 @@ var Xo = {
|
|
|
2783
2783
|
};
|
|
2784
2784
|
t.copyToObject(o, "name"), t.copyToObject(o, "securityDescriptor");
|
|
2785
2785
|
const r = {};
|
|
2786
|
-
t.copyToObject(r, "hash", wo, "hashValue"), t.copyToObject(r, "algorithm", wo, "algorithmName"), t.copyToObject(r, "salt", wo, "saltValue"), t.copyToObject(r, "spinCount",
|
|
2786
|
+
t.copyToObject(r, "hash", wo, "hashValue"), t.copyToObject(r, "algorithm", wo, "algorithmName"), t.copyToObject(r, "salt", wo, "saltValue"), t.copyToObject(r, "spinCount", yo), t.copyToObject(r, "legacyHash", wo, "password"), Object.keys(r).length > 0 && (o.password = r), t.setSource(s);
|
|
2787
2787
|
},
|
|
2788
2788
|
closeTag: (t) => {
|
|
2789
2789
|
const e = t.getSource();
|
|
@@ -2796,8 +2796,8 @@ var Xo = {
|
|
|
2796
2796
|
e.copyToObject(t, "defaultColSize", xo, "defaultColWidth");
|
|
2797
2797
|
const o = e.getAttribute("customHeight");
|
|
2798
2798
|
"1" !== o && "true" !== o || e.copyToObject(t, "defaultRowSize", xo, "defaultRowHeight");
|
|
2799
|
-
const s = e.getAttribute("baseColWidth",
|
|
2800
|
-
s && 8 !== s && (t.baseColSize = s), h = !!e.getAttribute("zeroHeight",
|
|
2799
|
+
const s = e.getAttribute("baseColWidth", yo);
|
|
2800
|
+
s && 8 !== s && (t.baseColSize = s), h = !!e.getAttribute("zeroHeight", vo);
|
|
2801
2801
|
}
|
|
2802
2802
|
}), l.registerVisitor({
|
|
2803
2803
|
from: "cols",
|
|
@@ -2810,9 +2810,9 @@ var Xo = {
|
|
|
2810
2810
|
to: [],
|
|
2811
2811
|
openTag: (t) => {
|
|
2812
2812
|
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 =
|
|
2813
|
+
e.r = m.runToString(r, n, !0);
|
|
2814
2814
|
const i = {};
|
|
2815
|
-
e.v = i, t.copyToObject(i, "sz", xo, "width"), t.copyToObject(i, "csz",
|
|
2815
|
+
e.v = i, t.copyToObject(i, "sz", xo, "width"), t.copyToObject(i, "csz", vo, "customWidth"), t.copyToObject(i, "h", vo, "hidden"), t.copyToObject(i, "l", yo, "outlineLevel"), t.copyToObject(i, "cl", vo, "collapsed"), t.getAttribute("bestFit", vo) && (i.bf = !0), t.copyToObject(i, "s", yo, "style");
|
|
2816
2816
|
}
|
|
2817
2817
|
}), l.registerVisitor({
|
|
2818
2818
|
from: "oleObjects",
|
|
@@ -2826,7 +2826,7 @@ var Xo = {
|
|
|
2826
2826
|
const e = t.indexOf(":");
|
|
2827
2827
|
return -1 === e ? t : t.slice(e + 1);
|
|
2828
2828
|
}, Vt = new Wo();
|
|
2829
|
-
return ns(
|
|
2829
|
+
return ns(b, t, l.createEventHandler(t, r, n), n, i, {
|
|
2830
2830
|
onOpenTag: (t) => {
|
|
2831
2831
|
Ct = !0;
|
|
2832
2832
|
const e = Rt(t.name);
|
|
@@ -2894,11 +2894,11 @@ var Xo = {
|
|
|
2894
2894
|
rowEnd: 0
|
|
2895
2895
|
}, rs = (t) => "1" === t || "true" === t, ns = (t, e, o, s, i, a, l, c, h, u) => {
|
|
2896
2896
|
let g = !1;
|
|
2897
|
-
const
|
|
2898
|
-
let
|
|
2897
|
+
const b = [], v = l?.get(Zo), x = l?.get(Qo), w = /* @__PURE__ */ new Map();
|
|
2898
|
+
let T = !1, S = [], C = !1, k = null, E = null, I = null, P = null, O = null, D = null;
|
|
2899
2899
|
const N = l?.get("richData") ?? r.EmptyArray;
|
|
2900
2900
|
let _ = null, $ = !1;
|
|
2901
|
-
const M =
|
|
2901
|
+
const M = m.normalizeA1ToR1C1, R = n.createConflatingRanges(), V = /* @__PURE__ */ new Map(), L = [], j = [];
|
|
2902
2902
|
let B = !1, F = !1, H = null;
|
|
2903
2903
|
const W = (t) => {
|
|
2904
2904
|
const e = (l?.get("metadata"))?.values;
|
|
@@ -2923,7 +2923,7 @@ var Xo = {
|
|
|
2923
2923
|
});
|
|
2924
2924
|
let Y = null;
|
|
2925
2925
|
const tt = [];
|
|
2926
|
-
let et = null, ot = -2, st = 0, nt = "", it = "", at = "", lt = "", ct = "", ht = "", dt = "", pt = "", ft = "", gt = "", mt = "", bt = "",
|
|
2926
|
+
let et = null, ot = -2, st = 0, nt = "", it = "", at = "", lt = "", ct = "", ht = "", dt = "", pt = "", ft = "", gt = "", mt = "", bt = "", vt = "", yt = "", xt = !0, wt = null, Tt = !1, St = !1, Ct = !1, At = null, kt = 0;
|
|
2927
2927
|
const Et = (t) => {
|
|
2928
2928
|
let s = t.name;
|
|
2929
2929
|
const r = s.indexOf(":");
|
|
@@ -2931,10 +2931,10 @@ var Xo = {
|
|
|
2931
2931
|
const e = t.attributes;
|
|
2932
2932
|
switch (s) {
|
|
2933
2933
|
case "v":
|
|
2934
|
-
|
|
2934
|
+
T = !0;
|
|
2935
2935
|
break;
|
|
2936
2936
|
case "f":
|
|
2937
|
-
switch (
|
|
2937
|
+
switch (C = !0, e.t ?? null) {
|
|
2938
2938
|
case null:
|
|
2939
2939
|
case "normal": break;
|
|
2940
2940
|
case "shared":
|
|
@@ -2948,10 +2948,10 @@ var Xo = {
|
|
|
2948
2948
|
const t = ((t, e, o) => {
|
|
2949
2949
|
const s = t.r1, r = rs(t.del1);
|
|
2950
2950
|
if (!s && !r) return null;
|
|
2951
|
-
const n = t.ref ??
|
|
2951
|
+
const n = t.ref ?? m.cellToString({
|
|
2952
2952
|
rowIndex: e,
|
|
2953
2953
|
colIndex: o
|
|
2954
|
-
}), i =
|
|
2954
|
+
}), i = m.fastStringToRange(n);
|
|
2955
2955
|
if (!i) return null;
|
|
2956
2956
|
const a = { ref: {
|
|
2957
2957
|
rowStart: i.rowStart,
|
|
@@ -2976,14 +2976,14 @@ var Xo = {
|
|
|
2976
2976
|
U = !0;
|
|
2977
2977
|
return;
|
|
2978
2978
|
}
|
|
2979
|
-
U && !
|
|
2979
|
+
U && !C && a?.onOpenTag?.(t);
|
|
2980
2980
|
return;
|
|
2981
2981
|
}
|
|
2982
2982
|
if (g) {
|
|
2983
2983
|
if ("c" === s) {
|
|
2984
2984
|
Z = t, q = void 0;
|
|
2985
2985
|
const e = t.attributes, o = e.r;
|
|
2986
|
-
K = void 0 !== o ?
|
|
2986
|
+
K = void 0 !== o ? m.fastStringToCol(o) : K + 1;
|
|
2987
2987
|
const s = e.t;
|
|
2988
2988
|
void 0 === s ? Y = null : (Y = s, "str" === Y && (U = !0));
|
|
2989
2989
|
let r = e.s;
|
|
@@ -2993,7 +2993,7 @@ var Xo = {
|
|
|
2993
2993
|
colEnd: K,
|
|
2994
2994
|
rowEnd: G,
|
|
2995
2995
|
value: r
|
|
2996
|
-
},
|
|
2996
|
+
}, S.push(wt))), H = null, F = !1, $ = !1;
|
|
2997
2997
|
const n = e.cm;
|
|
2998
2998
|
B = void 0 !== n && ((t) => {
|
|
2999
2999
|
const e = (l?.get("metadata"))?.cells;
|
|
@@ -3018,13 +3018,13 @@ var Xo = {
|
|
|
3018
3018
|
g = !0;
|
|
3019
3019
|
const e = t.attributes.r;
|
|
3020
3020
|
if (G = void 0 !== e ? parseInt(e) - 1 : G + 1, K = -1, h?.()) {
|
|
3021
|
-
const t =
|
|
3022
|
-
t && t.max + 1 === G ? t.max = G :
|
|
3021
|
+
const t = b[b.length - 1];
|
|
3022
|
+
t && t.max + 1 === G ? t.max = G : b.push({
|
|
3023
3023
|
min: G,
|
|
3024
3024
|
max: G
|
|
3025
3025
|
});
|
|
3026
3026
|
}
|
|
3027
|
-
if (st = 0, it = t.attributes.customHeight, void 0 !== it && (st |= ts.CustomHeight), it !== ft && (xt = !0, ft = it), nt = t.attributes.ht, void 0 !== nt && (st |= ts.Ht), nt !== pt && (xt = !0, pt = nt), at = t.attributes.hidden, void 0 !== at && (st |= ts.Hidden), at !== gt && (xt = !0, gt = at), ct = t.attributes.s, void 0 !== ct && (st |= ts.S), ct !== bt && (xt = !0, bt = ct), lt = t.attributes.customFormat, void 0 !== lt && (st |= ts.CustomFormat), lt !== mt && (xt = !0, mt = lt), ht = t.attributes.outlineLevel, void 0 !== ht && (st |= ts.OutlineLevel), ht !==
|
|
3027
|
+
if (st = 0, it = t.attributes.customHeight, void 0 !== it && (st |= ts.CustomHeight), it !== ft && (xt = !0, ft = it), nt = t.attributes.ht, void 0 !== nt && (st |= ts.Ht), nt !== pt && (xt = !0, pt = nt), at = t.attributes.hidden, void 0 !== at && (st |= ts.Hidden), at !== gt && (xt = !0, gt = at), ct = t.attributes.s, void 0 !== ct && (st |= ts.S), ct !== bt && (xt = !0, bt = ct), lt = t.attributes.customFormat, void 0 !== lt && (st |= ts.CustomFormat), lt !== mt && (xt = !0, mt = lt), ht = t.attributes.outlineLevel, void 0 !== ht && (st |= ts.OutlineLevel), ht !== vt && (xt = !0, vt = ht), dt = t.attributes.collapsed, void 0 !== dt && (st |= ts.Collapsed), dt !== yt && (xt = !0, yt = dt), 0 !== st) if (ot + 1 !== G || xt) {
|
|
3028
3028
|
const t = void 0 !== it && ("1" === it || "true" === it), e = void 0 !== lt && ("1" === lt || "true" === lt);
|
|
3029
3029
|
At = e && void 0 !== ct ? ct : null, e && null === At && (At = "0"), et = {
|
|
3030
3030
|
min: G,
|
|
@@ -3051,7 +3051,7 @@ var Xo = {
|
|
|
3051
3051
|
}
|
|
3052
3052
|
}, It = (e) => {
|
|
3053
3053
|
let s = e.name;
|
|
3054
|
-
if ("sheetData" === s && (St = !1), !
|
|
3054
|
+
if ("sheetData" === s && (St = !1), !C || "c" !== s && "f" !== s || (k && (P = V.get(k) ?? null), P && (q = ((t) => {
|
|
3055
3055
|
if (t.length < 11 || 104 != (32 | t.charCodeAt(0))) return;
|
|
3056
3056
|
if (!/^HYPERLINK\(/i.test(t)) return;
|
|
3057
3057
|
let e = 1, o = !1, s = 10;
|
|
@@ -3062,20 +3062,20 @@ var Xo = {
|
|
|
3062
3062
|
if (0 !== e || t.slice(s).trim().length > 0) return;
|
|
3063
3063
|
const r = /^HYPERLINK\(\s*"((?:[^"]|"")*)"\s*[,)]/i.exec(t);
|
|
3064
3064
|
return r ? r[1].replace(/""/g, "\"") : null;
|
|
3065
|
-
})(P[2]), R.append(G, K, P), z && X.append(G, K)), null !== H && L.push([H, B ? F ? "error" : "dynamic" : "fixed"]),
|
|
3065
|
+
})(P[2]), R.append(G, K, P), z && X.append(G, K)), null !== H && L.push([H, B ? F ? "error" : "dynamic" : "fixed"]), C = !1, P = null, k = null, E = null, T = !1, z = !1, H = null, B = !1, F = !1), Z) {
|
|
3066
3066
|
const o = s.indexOf(":");
|
|
3067
3067
|
if (-1 !== o && (s = s.slice(o + 1)), U) if ("is" === s || "v" === s) {
|
|
3068
3068
|
const e = a?.onEnd?.();
|
|
3069
3069
|
null == e || $ && "" === u?.() || t.pushAt(G, K, void 0 !== q && "number" == typeof e ? Q(u?.() ?? "") : "number" == typeof e ? "" + e : e);
|
|
3070
3070
|
} else "f" !== s && a?.onCloseTag?.(e);
|
|
3071
|
-
|
|
3071
|
+
T && (T = !1), "c" === s && (Z = null, U = !1);
|
|
3072
3072
|
return;
|
|
3073
3073
|
}
|
|
3074
3074
|
if (g) return g = !1, void (wt = null);
|
|
3075
3075
|
o?.onCloseTag?.(e);
|
|
3076
3076
|
}, Pt = (e) => {
|
|
3077
3077
|
const r = e.trim();
|
|
3078
|
-
if (
|
|
3078
|
+
if (T) {
|
|
3079
3079
|
switch (J = null, Y) {
|
|
3080
3080
|
case null:
|
|
3081
3081
|
case "n":
|
|
@@ -3086,10 +3086,10 @@ var Xo = {
|
|
|
3086
3086
|
break;
|
|
3087
3087
|
case "s": {
|
|
3088
3088
|
const t = parseInt(r, 10);
|
|
3089
|
-
let e =
|
|
3089
|
+
let e = w.get(t);
|
|
3090
3090
|
if (void 0 === e) {
|
|
3091
|
-
const o =
|
|
3092
|
-
e = o ? zo(o,
|
|
3091
|
+
const o = v?.get(t);
|
|
3092
|
+
e = o ? zo(o, x) : null, w.set(t, e);
|
|
3093
3093
|
}
|
|
3094
3094
|
J = e ? {
|
|
3095
3095
|
t: "r",
|
|
@@ -3121,7 +3121,7 @@ var Xo = {
|
|
|
3121
3121
|
}
|
|
3122
3122
|
return void 0 !== a && (u += (3600 * parseInt(a, 10) + 60 * parseInt(l, 10) + (void 0 !== c ? parseInt(c, 10) : 0) + (void 0 !== h ? parseFloat(h) : 0)) / 86400), u;
|
|
3123
3123
|
})(r, !0 === l?.get(Jo));
|
|
3124
|
-
null !== t ? J = t : c && (s?.(`Date '${r}' in cell ${
|
|
3124
|
+
null !== t ? J = t : c && (s?.(`Date '${r}' in cell ${m.cellToString({
|
|
3125
3125
|
colIndex: K,
|
|
3126
3126
|
rowIndex: G
|
|
3127
3127
|
})} is not a date this workbook can hold; kept as text.`, void 0, "xlsx.cell.isoDateText"), J = "" + c(r));
|
|
@@ -3139,7 +3139,7 @@ var Xo = {
|
|
|
3139
3139
|
};
|
|
3140
3140
|
break;
|
|
3141
3141
|
}
|
|
3142
|
-
if (
|
|
3142
|
+
if (y.isJSON(e)) {
|
|
3143
3143
|
J = {
|
|
3144
3144
|
t: "r",
|
|
3145
3145
|
v: e
|
|
@@ -3152,7 +3152,7 @@ var Xo = {
|
|
|
3152
3152
|
t ? J = {
|
|
3153
3153
|
t: "e",
|
|
3154
3154
|
v: t.getCode()
|
|
3155
|
-
} : (J = r, s?.(`Unknown formula error '${r}' in cell ${
|
|
3155
|
+
} : (J = r, s?.(`Unknown formula error '${r}' in cell ${m.cellToString({
|
|
3156
3156
|
colIndex: K,
|
|
3157
3157
|
rowIndex: G
|
|
3158
3158
|
})}`));
|
|
@@ -3178,7 +3178,7 @@ var Xo = {
|
|
|
3178
3178
|
}
|
|
3179
3179
|
k = null;
|
|
3180
3180
|
}
|
|
3181
|
-
if (
|
|
3181
|
+
if (C) {
|
|
3182
3182
|
let t = r;
|
|
3183
3183
|
const e = n ? void 0 : l?.get(Ko);
|
|
3184
3184
|
if (e) {
|
|
@@ -3311,10 +3311,10 @@ var Xo = {
|
|
|
3311
3311
|
cl: !1
|
|
3312
3312
|
}
|
|
3313
3313
|
});
|
|
3314
|
-
for (const s of
|
|
3314
|
+
for (const s of b) s.min > t && e.push(o(t, s.min - 1)), t = Math.max(t, s.max + 1);
|
|
3315
3315
|
t <= 1048575 && e.push(o(t, 1048575)), e.length > 0 && (tt.push(...e), tt.sort((t, e) => t.min - e.min));
|
|
3316
3316
|
}
|
|
3317
|
-
tt.length > 0 && (e.rows =
|
|
3317
|
+
tt.length > 0 && (e.rows = m.runsToRefs(tt, !1));
|
|
3318
3318
|
let s = R.done(es);
|
|
3319
3319
|
s = ((t, e) => {
|
|
3320
3320
|
let o = null;
|
|
@@ -3340,7 +3340,7 @@ var Xo = {
|
|
|
3340
3340
|
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
3341
|
}
|
|
3342
3342
|
if (n !== (r.rowEnd - r.rowStart + 1) * (r.colEnd - r.colStart + 1)) continue;
|
|
3343
|
-
const i = Vo(
|
|
3343
|
+
const i = Vo(m.resolveRelativeToA1(o.value[1], r.rowStart, r.colStart), r);
|
|
3344
3344
|
if (i) {
|
|
3345
3345
|
e.push(i);
|
|
3346
3346
|
for (let e = 0; e < t.length; e++) s.add(t[e]);
|
|
@@ -3352,15 +3352,15 @@ var Xo = {
|
|
|
3352
3352
|
if (r > 0 || j.length > 0) {
|
|
3353
3353
|
const t = new Array(r);
|
|
3354
3354
|
for (let e = 0; e < r; e++) {
|
|
3355
|
-
const o = s[e], r =
|
|
3355
|
+
const o = s[e], r = m.rangeToString(o), n = o.value[1], i = m.resolveRelativeToA1(n, o.rowStart, o.colStart);
|
|
3356
3356
|
t[e] = [r, i];
|
|
3357
3357
|
}
|
|
3358
3358
|
for (let e = 0; e < j.length; e++) {
|
|
3359
3359
|
const o = j[e], s = o.ref;
|
|
3360
|
-
t.push([
|
|
3360
|
+
t.push([m.cellToString({
|
|
3361
3361
|
rowIndex: s.rowStart,
|
|
3362
3362
|
colIndex: s.colStart
|
|
3363
|
-
}), ut(o)]), L.push([
|
|
3363
|
+
}), ut(o)]), L.push([m.rangeToString(s), "dynamic"]);
|
|
3364
3364
|
}
|
|
3365
3365
|
e.formulas = t;
|
|
3366
3366
|
}
|
|
@@ -3368,23 +3368,23 @@ var Xo = {
|
|
|
3368
3368
|
if (a > 0) {
|
|
3369
3369
|
const t = new Array(a);
|
|
3370
3370
|
for (let e = 0; e < a; e++) {
|
|
3371
|
-
const o = i[e], s =
|
|
3371
|
+
const o = i[e], s = m.rangeToString(o);
|
|
3372
3372
|
t[e] = s;
|
|
3373
3373
|
}
|
|
3374
3374
|
e.volatile = t;
|
|
3375
3375
|
}
|
|
3376
3376
|
_ && L.push(..._.getFormulaArray()), L.length > 0 && (e.formulaArray = [...L]);
|
|
3377
|
-
const l =
|
|
3377
|
+
const l = S.length;
|
|
3378
3378
|
if (l > 0) {
|
|
3379
|
-
|
|
3380
|
-
let t =
|
|
3379
|
+
S.sort(n.createRangeComparator(p.Axis.Column));
|
|
3380
|
+
let t = S[0], o = t.colStart, s = t.colEnd, r = t.rowEnd, i = t.value;
|
|
3381
3381
|
const a = [];
|
|
3382
3382
|
a.push(t);
|
|
3383
3383
|
let c = null;
|
|
3384
|
-
for (let e = 1; e < l; e++) c =
|
|
3384
|
+
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
3385
|
const h = a.length, u = new Array(h);
|
|
3386
3386
|
for (let t = 0; t < h; t++) {
|
|
3387
|
-
const e = a[t], o =
|
|
3387
|
+
const e = a[t], o = m.rangeToString(e);
|
|
3388
3388
|
u[t] = [o, e.value];
|
|
3389
3389
|
}
|
|
3390
3390
|
e.directStyles = u;
|
|
@@ -3587,24 +3587,24 @@ var ds = {
|
|
|
3587
3587
|
};
|
|
3588
3588
|
}
|
|
3589
3589
|
return t.linkTarget && (s.linkTarget = t.linkTarget), s;
|
|
3590
|
-
}, ms = "hiddenXfs", bs = (t) => (Array.isArray(t) ? t[1] : t?.v)?.s,
|
|
3590
|
+
}, ms = "hiddenXfs", bs = (t) => (Array.isArray(t) ? t[1] : t?.v)?.s, vs = (t) => {
|
|
3591
3591
|
if (!t || 0 === t.length) return !1;
|
|
3592
|
-
const e =
|
|
3592
|
+
const e = m.refsToRuns(t, !0);
|
|
3593
3593
|
let o = 0;
|
|
3594
3594
|
for (const t of e) {
|
|
3595
3595
|
if (t.min > o || void 0 === t.value?.s) return !1;
|
|
3596
3596
|
o = Math.max(o, t.max + 1);
|
|
3597
3597
|
}
|
|
3598
3598
|
return o > mt;
|
|
3599
|
-
},
|
|
3599
|
+
}, ys = (t, e) => {
|
|
3600
3600
|
t.protection = {
|
|
3601
3601
|
...t.protection,
|
|
3602
3602
|
showFormulas: e
|
|
3603
3603
|
};
|
|
3604
3604
|
}, xs = "pivotButtonXfs", ws = (t, e) => {
|
|
3605
|
-
const o =
|
|
3605
|
+
const o = S(t, e);
|
|
3606
3606
|
if (!o || !t.location) return null;
|
|
3607
|
-
const s =
|
|
3607
|
+
const s = m.fastStringToRange(t.location), r = {
|
|
3608
3608
|
rowIndex: s.rowStart - o.top,
|
|
3609
3609
|
colIndex: s.colStart
|
|
3610
3610
|
};
|
|
@@ -3693,7 +3693,7 @@ var ds = {
|
|
|
3693
3693
|
if ("string" == typeof t) return void e.push(t);
|
|
3694
3694
|
const o = Array.isArray(t) ? t : [t];
|
|
3695
3695
|
for (let t = 0; t < o.length; t++) {
|
|
3696
|
-
const s =
|
|
3696
|
+
const s = m.rangeToString(o[t]);
|
|
3697
3697
|
s && e.push(s);
|
|
3698
3698
|
}
|
|
3699
3699
|
}, _s = (t) => {
|
|
@@ -3706,7 +3706,7 @@ var ds = {
|
|
|
3706
3706
|
const r = e ? 2 : 1, n = e ? o.rowStart : o.colStart, i = e ? o.rowEnd : o.colEnd;
|
|
3707
3707
|
let a, l = -1;
|
|
3708
3708
|
for (const o of t) {
|
|
3709
|
-
const t =
|
|
3709
|
+
const t = m.refToRun(o, e), c = _s(o);
|
|
3710
3710
|
t && void 0 !== c ? c !== l || (e ? a.colEnd : a.rowEnd) + 1 !== t.min ? (a = {
|
|
3711
3711
|
colStart: e ? t.min : n,
|
|
3712
3712
|
rowStart: e ? n : t.min,
|
|
@@ -3762,21 +3762,21 @@ var ds = {
|
|
|
3762
3762
|
225
|
|
3763
3763
|
], js = /^xl\/worksheets\/[^/]+\.xml$/i, Bs = (t) => "string" == typeof t ? t : (t?.runs ?? []).map((t) => t.text ?? "").join(""), Fs = async (n, l) => {
|
|
3764
3764
|
const { password: c, onVBA: h, profile: d, calcOnLoad: p = "auto", createWorkbookOptions: f = {}, ...g } = l ?? {};
|
|
3765
|
-
await
|
|
3766
|
-
const
|
|
3767
|
-
|
|
3765
|
+
await C.load();
|
|
3766
|
+
const v = !!f.origin && "string" != typeof f.origin, y = d ? new de("function" == typeof d ? d : void 0) : null, x = [], T = (t, e, o) => {
|
|
3767
|
+
x.push([
|
|
3768
3768
|
t,
|
|
3769
3769
|
e ?? "",
|
|
3770
3770
|
o
|
|
3771
3771
|
]);
|
|
3772
|
-
},
|
|
3772
|
+
}, S = { onWarning: T }, I = l?.progress, P = I?.onProgress ? I.onProgress.bind(I) : void 0, O = n.byteLength;
|
|
3773
3773
|
let D = 0, N = 0;
|
|
3774
3774
|
const $ = P ? (t) => {
|
|
3775
3775
|
if (D <= 0) return;
|
|
3776
3776
|
N += t;
|
|
3777
3777
|
const e = Math.min(O, Math.round(N / D * O));
|
|
3778
3778
|
P(e, O);
|
|
3779
|
-
} : void 0, M = import("./
|
|
3779
|
+
} : void 0, M = import("./z7nDK_gfX7G37XbZ.js");
|
|
3780
3780
|
let R = null;
|
|
3781
3781
|
try {
|
|
3782
3782
|
R = new DOMParser();
|
|
@@ -3786,7 +3786,7 @@ var ds = {
|
|
|
3786
3786
|
F = new XMLSerializer();
|
|
3787
3787
|
} catch (n) {}
|
|
3788
3788
|
let H, z, q, G = null;
|
|
3789
|
-
R || (G = import("./
|
|
3789
|
+
R || (G = import("./APP8AzsNgQXHTalA.js").then((e) => t(e.default, 1)));
|
|
3790
3790
|
try {
|
|
3791
3791
|
const [t, e] = await Promise.all([G, M]);
|
|
3792
3792
|
H = new e.DOMTransformer(), z = R ?? new t.DOMParser(), q = F ?? new t.XMLSerializer();
|
|
@@ -3805,7 +3805,7 @@ var ds = {
|
|
|
3805
3805
|
} catch (n) {
|
|
3806
3806
|
throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.", { cause: n });
|
|
3807
3807
|
}
|
|
3808
|
-
|
|
3808
|
+
y?.mark("zip-open");
|
|
3809
3809
|
try {
|
|
3810
3810
|
if (!J.has("[Content_Types].xml")) throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
|
|
3811
3811
|
const t = (t) => {
|
|
@@ -3857,7 +3857,7 @@ var ds = {
|
|
|
3857
3857
|
},
|
|
3858
3858
|
onError: (t) => {
|
|
3859
3859
|
((t) => {
|
|
3860
|
-
|
|
3860
|
+
x.push([t, "[Content_Types].xml"]);
|
|
3861
3861
|
})(`Error parsing content types: ${t?.message ?? t}`);
|
|
3862
3862
|
}
|
|
3863
3863
|
}))(o), e = await J.getTextStream("[Content_Types].xml");
|
|
@@ -3867,15 +3867,15 @@ var ds = {
|
|
|
3867
3867
|
} catch (n) {
|
|
3868
3868
|
throw new Error("Error parsing content types: '[Content_Types].xml'", { cause: n });
|
|
3869
3869
|
}
|
|
3870
|
-
|
|
3870
|
+
v && await J.getBuffer("[Content_Types].xml");
|
|
3871
3871
|
}
|
|
3872
|
-
|
|
3872
|
+
y?.mark("content-types");
|
|
3873
3873
|
const l = o.sst, c = /* @__PURE__ */ new Set();
|
|
3874
3874
|
for (const t of o.sheets) c.add(Vs(t));
|
|
3875
3875
|
l && c.add(Vs(l));
|
|
3876
3876
|
for (const t of c) D += J.uncompressedSize(t);
|
|
3877
|
-
if (await J.prefetch((t) => !c.has(t) && !js.test(t)),
|
|
3878
|
-
const e = Rt("_rels/.rels", t, z, H,
|
|
3877
|
+
if (await J.prefetch((t) => !c.has(t) && !js.test(t)), y?.mark("prefetch-side-parts"), 0 === o.workbooks.length) {
|
|
3878
|
+
const e = Rt("_rels/.rels", t, z, H, S), s = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
|
|
3879
3879
|
if (e) {
|
|
3880
3880
|
for (const t of e.values()) if (t.type === s && t.target) {
|
|
3881
3881
|
o.workbooks.push(t.target);
|
|
@@ -3884,15 +3884,15 @@ var ds = {
|
|
|
3884
3884
|
}
|
|
3885
3885
|
}
|
|
3886
3886
|
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
|
|
3887
|
+
const g = f?.resources ?? new w(), C = g.beginPersist(), N = {}, M = /* @__PURE__ */ new Set(), R = /* @__PURE__ */ new Map();
|
|
3888
3888
|
R.set("parseInlineDxf", (t) => {
|
|
3889
3889
|
if (!t) return;
|
|
3890
3890
|
const e = z.parseFromString(`<dxf xmlns:x14="${Y}" xmlns:xm="${U}">${t}</dxf>`, "text/xml")?.documentElement;
|
|
3891
3891
|
if (!e) return;
|
|
3892
|
-
const o = H.parseDxf(e, "",
|
|
3892
|
+
const o = H.parseDxf(e, "", S);
|
|
3893
3893
|
return Object.keys(o).length > 0 ? o : void 0;
|
|
3894
3894
|
});
|
|
3895
|
-
const F = Ht("metadata", o, t, z, H,
|
|
3895
|
+
const F = Ht("metadata", o, t, z, H, S).entries().next()?.value?.[1]?.metadata;
|
|
3896
3896
|
F && R.set("metadata", F), R.set(Go, ct());
|
|
3897
3897
|
const q = /* @__PURE__ */ new Map(), G = [], tt = /* @__PURE__ */ new Set(), et = (t) => {
|
|
3898
3898
|
tt.add(Vs(t));
|
|
@@ -3906,7 +3906,7 @@ var ds = {
|
|
|
3906
3906
|
if ("External" === n.targetMode) {
|
|
3907
3907
|
if (!s) return n.target;
|
|
3908
3908
|
const t = g.add({ source: { external: n.target } });
|
|
3909
|
-
return t.addReference(N), M.add(t),
|
|
3909
|
+
return t.addReference(N), M.add(t), C.toResourceId(t);
|
|
3910
3910
|
}
|
|
3911
3911
|
const a = o.lastIndexOf("/"), l = o.substring(0, a + 1);
|
|
3912
3912
|
i.startsWith("/") || (i = l + i), i = dt(i);
|
|
@@ -3919,7 +3919,7 @@ var ds = {
|
|
|
3919
3919
|
h = t;
|
|
3920
3920
|
const e = async () => {
|
|
3921
3921
|
const e = Yo(t, (t, e) => "legacyDrawing" === e ? at(t, i) : "formControl" === e ? lt(t, i) : "part" === e ? ht(t, i) : st(t, i, "resource" === e) ?? null, Ot, c, () => {}, (t, e, o) => {
|
|
3922
|
-
|
|
3922
|
+
T(t, e ? `${e} (${i})` : i, o);
|
|
3923
3923
|
}, void 0, R), o = await J.getTextStream(i, $);
|
|
3924
3924
|
if (o) try {
|
|
3925
3925
|
await Ie.parseStream(o, e, {
|
|
@@ -3938,10 +3938,10 @@ var ds = {
|
|
|
3938
3938
|
const s = ht(o, i, t.type, (t) => "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition" !== t);
|
|
3939
3939
|
if (!s?.xml) return;
|
|
3940
3940
|
const r = /<pivotTableDefinition\b[^>]*>/.exec(s.xml)?.[0] ?? "", n = parseInt(/\scacheId="(\d+)"/.exec(r)?.[1] ?? "", 10);
|
|
3941
|
-
if (isNaN(n)) return void
|
|
3941
|
+
if (isNaN(n)) return void x.push([`Pivot table '${s.name}' names no cache and was dropped.`, i]);
|
|
3942
3942
|
const a = /\sname="([^"]*)"/.exec(r)?.[1], l = Xt(s.xml);
|
|
3943
|
-
if (!l) return void
|
|
3944
|
-
const c = H?.getVisitorParamsState(), h = Kt(c?.get("numFmts"), c?.get("dxfs")), u = X(s.xml, h), d = u ? void 0 :
|
|
3943
|
+
if (!l) return void x.push([`Pivot table '${s.name}' states no location and was dropped.`, i]);
|
|
3944
|
+
const c = H?.getVisitorParamsState(), h = Kt(c?.get("numFmts"), c?.get("dxfs")), u = X(s.xml, h), d = u ? void 0 : vt(s.xml, h);
|
|
3945
3945
|
e.push({
|
|
3946
3946
|
...a ? { name: qt(a) } : {},
|
|
3947
3947
|
cacheId: n,
|
|
@@ -3972,7 +3972,7 @@ var ds = {
|
|
|
3972
3972
|
} else h = null;
|
|
3973
3973
|
} else h = s ? Q(i, t, (t, e) => {
|
|
3974
3974
|
const o = g.add({ source: { buffer: t } });
|
|
3975
|
-
return o.addReference(N), M.add(o),
|
|
3975
|
+
return o.addReference(N), M.add(o), C.toResourceId(o);
|
|
3976
3976
|
}, wt) : jt(i, t, z, H, wt);
|
|
3977
3977
|
}
|
|
3978
3978
|
return h;
|
|
@@ -4044,7 +4044,7 @@ var ds = {
|
|
|
4044
4044
|
const s = /* @__PURE__ */ new Map();
|
|
4045
4045
|
for (let t = 0; t < o.length; t++) {
|
|
4046
4046
|
const e = o[t];
|
|
4047
|
-
s.set(
|
|
4047
|
+
s.set(m.cellToString({
|
|
4048
4048
|
rowIndex: e.row,
|
|
4049
4049
|
colIndex: e.col
|
|
4050
4050
|
}), e);
|
|
@@ -4136,11 +4136,11 @@ var ds = {
|
|
|
4136
4136
|
const o = ht(e, a, t.type, n, i);
|
|
4137
4137
|
o && p.push(o);
|
|
4138
4138
|
}), p.length > 0 && (d.parts = p), et(a), d;
|
|
4139
|
-
}, ut = Ht("coreprops", o, t, z, H,
|
|
4139
|
+
}, ut = Ht("coreprops", o, t, z, H, S), pt = Ht("extprops", o, t, z, H, S), ft = Ht("custprops", o, t, z, H, S);
|
|
4140
4140
|
ft.forEach((t, e) => {
|
|
4141
4141
|
t?.custom && et(e);
|
|
4142
4142
|
});
|
|
4143
|
-
const mt = new k(), bt = Ht("people", o, t, z, H,
|
|
4143
|
+
const mt = new k(), bt = Ht("people", o, t, z, H, S);
|
|
4144
4144
|
if (bt.size > 0) {
|
|
4145
4145
|
const [t, e] = bt.entries().next().value;
|
|
4146
4146
|
mt.fromJSON(e?.persons), et(t);
|
|
@@ -4155,7 +4155,7 @@ var ds = {
|
|
|
4155
4155
|
readEmbeddedPart: (t, e) => ht(t, e),
|
|
4156
4156
|
addPerson: xt,
|
|
4157
4157
|
serializeElement: K,
|
|
4158
|
-
onWarning:
|
|
4158
|
+
onWarning: T
|
|
4159
4159
|
}, Tt = [], St = /* @__PURE__ */ new Map();
|
|
4160
4160
|
if (R.set(Zo, St), l) {
|
|
4161
4161
|
const t = await J.getTextStream(l, $);
|
|
@@ -4182,7 +4182,7 @@ var ds = {
|
|
|
4182
4182
|
}
|
|
4183
4183
|
};
|
|
4184
4184
|
})(0, (t) => {
|
|
4185
|
-
|
|
4185
|
+
T(t, l);
|
|
4186
4186
|
});
|
|
4187
4187
|
try {
|
|
4188
4188
|
await Ie.parseStream(t, e, { xmlns: !1 });
|
|
@@ -4191,7 +4191,7 @@ var ds = {
|
|
|
4191
4191
|
}
|
|
4192
4192
|
}
|
|
4193
4193
|
}
|
|
4194
|
-
|
|
4194
|
+
y?.mark("shared-strings");
|
|
4195
4195
|
let kt = Tt.length;
|
|
4196
4196
|
const Et = /* @__PURE__ */ new Map();
|
|
4197
4197
|
let It = kt;
|
|
@@ -4233,7 +4233,7 @@ var ds = {
|
|
|
4233
4233
|
source: { buffer: t },
|
|
4234
4234
|
fetchedFrom: e
|
|
4235
4235
|
});
|
|
4236
|
-
return o.addReference(N), M.add(o),
|
|
4236
|
+
return o.addReference(N), M.add(o), C.toResourceId(o);
|
|
4237
4237
|
},
|
|
4238
4238
|
markAbsorbed: et
|
|
4239
4239
|
}, zt = /* @__PURE__ */ new Map();
|
|
@@ -4289,7 +4289,7 @@ var ds = {
|
|
|
4289
4289
|
})
|
|
4290
4290
|
};
|
|
4291
4291
|
})(t, z), Zt = Yt(Gt, zt, (t) => {
|
|
4292
|
-
|
|
4292
|
+
T(t, "/xl/richData/rdrichvalue.xml");
|
|
4293
4293
|
});
|
|
4294
4294
|
R.set("richData", Gt.values.map((t, e) => Zt.cellValue(e)));
|
|
4295
4295
|
for (let t = 0; t < $t; t++) {
|
|
@@ -4302,7 +4302,7 @@ var ds = {
|
|
|
4302
4302
|
let t = te.entries().next();
|
|
4303
4303
|
t?.value?.[1] && (ee = t.value[1]);
|
|
4304
4304
|
}
|
|
4305
|
-
const se = new
|
|
4305
|
+
const se = new b(ee);
|
|
4306
4306
|
let re = Ht("styles", o, t, z, H, wt).entries().next()?.value?.[1];
|
|
4307
4307
|
re && (re = JSON.parse(a.JSONStableStringify(re)));
|
|
4308
4308
|
const ne = Ht("workbooks", o, t, z, H, wt);
|
|
@@ -4318,7 +4318,7 @@ var ds = {
|
|
|
4318
4318
|
for (const t of s.keys()) o.add(t.toUpperCase());
|
|
4319
4319
|
} catch {}
|
|
4320
4320
|
return (t) => o.has(t) || A.has(t);
|
|
4321
|
-
})(ne.entries().next().value?.[1]?.names, f.functions)),
|
|
4321
|
+
})(ne.entries().next().value?.[1]?.names, f.functions)), y?.mark("side-parts-json"), await Promise.all(G);
|
|
4322
4322
|
{
|
|
4323
4323
|
const t = ne.entries().next().value?.[1], e = ct(t?.names), o = t?.sheets ?? [];
|
|
4324
4324
|
for (let t = 0; t < o.length; t++) {
|
|
@@ -4336,7 +4336,7 @@ var ds = {
|
|
|
4336
4336
|
"string" == typeof o && (s[t].ref = e.readDetached(o));
|
|
4337
4337
|
}
|
|
4338
4338
|
}
|
|
4339
|
-
P && D > 0 && (P(O, O), await new Promise((t) => setTimeout(t, 0))),
|
|
4339
|
+
P && D > 0 && (P(O, O), await new Promise((t) => setTimeout(t, 0))), y?.mark("sheets");
|
|
4340
4340
|
const he = {
|
|
4341
4341
|
...ne.entries().next().value?.[1],
|
|
4342
4342
|
styles: re,
|
|
@@ -4361,7 +4361,7 @@ var ds = {
|
|
|
4361
4361
|
}
|
|
4362
4362
|
return Object.keys(r).length > 0 ? r : void 0;
|
|
4363
4363
|
})(ut.values().next().value?.properties, pt.values().next().value?.properties, ft.values().next().value?.custom, (t, e) => {
|
|
4364
|
-
|
|
4364
|
+
T(t, "docProps/custom.xml", e);
|
|
4365
4365
|
});
|
|
4366
4366
|
ue && (he.properties = ue), ((t, e) => {
|
|
4367
4367
|
if (!e || 0 === e.size) return;
|
|
@@ -4372,7 +4372,7 @@ var ds = {
|
|
|
4372
4372
|
const t = W(o);
|
|
4373
4373
|
if (!t) continue;
|
|
4374
4374
|
const n = /* @__PURE__ */ new Set();
|
|
4375
|
-
|
|
4375
|
+
vs(t.cols) || n.add(0);
|
|
4376
4376
|
for (const e of t.directStyles ?? []) n.add(Array.isArray(e) ? e[1] : e.v);
|
|
4377
4377
|
for (const e of t.rows ?? []) {
|
|
4378
4378
|
const t = bs(e);
|
|
@@ -4397,15 +4397,15 @@ var ds = {
|
|
|
4397
4397
|
}
|
|
4398
4398
|
if (0 === s.size) return;
|
|
4399
4399
|
const n = o.direct ?? (o.direct = []);
|
|
4400
|
-
for (const t of s) 0 !== t &&
|
|
4401
|
-
for (const t of r) 0 !== t &&
|
|
4400
|
+
for (const t of s) 0 !== t && ys(n[t] ?? (n[t] = {}), !0);
|
|
4401
|
+
for (const t of r) 0 !== t && ys(n[t] ?? (n[t] = {}), !1);
|
|
4402
4402
|
if (s.has(0)) {
|
|
4403
4403
|
const t = o.named ?? (o.named = []), e = u.BuiltInName.Normal.toLowerCase();
|
|
4404
4404
|
let s = t.find((t) => t.name?.toLowerCase() === e);
|
|
4405
4405
|
s || (s = {
|
|
4406
4406
|
name: u.BuiltInName.Normal,
|
|
4407
4407
|
style: {}
|
|
4408
|
-
}, t.push(s)),
|
|
4408
|
+
}, t.push(s)), ys(s.style, !0);
|
|
4409
4409
|
}
|
|
4410
4410
|
})(he, R.get(ms)), ((t, e) => {
|
|
4411
4411
|
if (e && 0 !== e.size) for (const o of t.sheets ?? []) {
|
|
@@ -4414,13 +4414,13 @@ var ds = {
|
|
|
4414
4414
|
const r = s.map(j), n = s.map(() => []);
|
|
4415
4415
|
for (const [o, s] of t.directStyles ?? []) {
|
|
4416
4416
|
if (!e.has(s)) continue;
|
|
4417
|
-
const t =
|
|
4417
|
+
const t = m.fastStringToRange(o);
|
|
4418
4418
|
for (let e = 0; e < r.length; e++) {
|
|
4419
4419
|
const o = r[e];
|
|
4420
4420
|
if (!o) continue;
|
|
4421
4421
|
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
4422
|
if (s > i || a > l) continue;
|
|
4423
|
-
const c =
|
|
4423
|
+
const c = m.rangeToString({
|
|
4424
4424
|
rowStart: s - o.rowStart,
|
|
4425
4425
|
rowEnd: i - o.rowStart,
|
|
4426
4426
|
colStart: a - o.colStart,
|
|
@@ -4468,18 +4468,18 @@ var ds = {
|
|
|
4468
4468
|
if (!e) continue;
|
|
4469
4469
|
const o = [];
|
|
4470
4470
|
for (const t of r) {
|
|
4471
|
-
const s =
|
|
4471
|
+
const s = m.fastStringToRange(t[0]), r = Ps(s, e.coords);
|
|
4472
4472
|
if (!r) {
|
|
4473
4473
|
o.push(t);
|
|
4474
4474
|
continue;
|
|
4475
4475
|
}
|
|
4476
4476
|
n = !0;
|
|
4477
|
-
for (const e of Os(s, r)) o.push([
|
|
4477
|
+
for (const e of Os(s, r)) o.push([m.rangeToString(e), t[1]]);
|
|
4478
4478
|
const { rowIndex: a, colIndex: l } = e.origin;
|
|
4479
4479
|
for (let s = r.rowStart; s <= r.rowEnd; s++) {
|
|
4480
4480
|
let n = r.colStart, c = null;
|
|
4481
4481
|
const h = (t) => {
|
|
4482
|
-
null !== c && o.push([
|
|
4482
|
+
null !== c && o.push([m.rangeToString({
|
|
4483
4483
|
rowStart: s,
|
|
4484
4484
|
rowEnd: s,
|
|
4485
4485
|
colStart: n,
|
|
@@ -4511,7 +4511,7 @@ var ds = {
|
|
|
4511
4511
|
if ($s(t.cols, !0, o, n), $s(t.rows, !1, o, n), 0 === n.length) continue;
|
|
4512
4512
|
const i = [];
|
|
4513
4513
|
for (const [e, o] of t.directStyles ?? []) i.push({
|
|
4514
|
-
...
|
|
4514
|
+
...m.fastStringToRange(e),
|
|
4515
4515
|
value: {
|
|
4516
4516
|
kind: 0,
|
|
4517
4517
|
index: o
|
|
@@ -4532,7 +4532,7 @@ var ds = {
|
|
|
4532
4532
|
}
|
|
4533
4533
|
s = t ?? o ?? r;
|
|
4534
4534
|
}
|
|
4535
|
-
a.push([
|
|
4535
|
+
a.push([m.rangeToString(t.value.range, o), s.index]);
|
|
4536
4536
|
}
|
|
4537
4537
|
a.length > 0 ? t.directStyles = a : delete t.directStyles;
|
|
4538
4538
|
}
|
|
@@ -4572,7 +4572,7 @@ var ds = {
|
|
|
4572
4572
|
t?.slicers && e.set(o, t.slicers);
|
|
4573
4573
|
}), oe(he, {
|
|
4574
4574
|
warn: (t, e) => {
|
|
4575
|
-
|
|
4575
|
+
T(t, "xl/slicers", e);
|
|
4576
4576
|
},
|
|
4577
4577
|
markAbsorbed: et,
|
|
4578
4578
|
slicerParts: e
|
|
@@ -4586,7 +4586,7 @@ var ds = {
|
|
|
4586
4586
|
pe && pe.length > 0 && (he.people = pe);
|
|
4587
4587
|
const fe = J.getEntry("xl/vbaProject.bin");
|
|
4588
4588
|
if (fe) try {
|
|
4589
|
-
const { VBAProject: t } = await import("./
|
|
4589
|
+
const { VBAProject: t } = await import("./BebXDUnlrDDRGW60.js"), e = t.extract(fe);
|
|
4590
4590
|
if (e) {
|
|
4591
4591
|
const o = /* @__PURE__ */ new Map();
|
|
4592
4592
|
for (const t of he.sheets ?? []) {
|
|
@@ -4602,26 +4602,26 @@ var ds = {
|
|
|
4602
4602
|
a[s.name] || (a[s.name] = e);
|
|
4603
4603
|
}
|
|
4604
4604
|
h?.(e);
|
|
4605
|
-
} else
|
|
4605
|
+
} else x.push(["Unable to parse VBA project.", "xl/vbaProject.bin"]);
|
|
4606
4606
|
} catch (n) {
|
|
4607
|
-
|
|
4607
|
+
x.push([`Error extracting VBA: ${n?.message ?? n}`, "xl/vbaProject.bin"]);
|
|
4608
4608
|
}
|
|
4609
|
-
const ge = R.get("calcId"), me = void 0 === ge || !(Number(ge) >= 191029), be = f.calcOnLoad ?? ("auto" === p && me ? "full" : p),
|
|
4609
|
+
const ge = R.get("calcId"), me = void 0 === ge || !(Number(ge) >= 191029), be = f.calcOnLoad ?? ("auto" === p && me ? "full" : p), ve = {
|
|
4610
4610
|
...f,
|
|
4611
4611
|
calcOnLoad: be,
|
|
4612
4612
|
resources: g,
|
|
4613
4613
|
json: he
|
|
4614
4614
|
};
|
|
4615
|
-
if (void 0 ===
|
|
4615
|
+
if (void 0 === ve.disableLoadAutoFit) {
|
|
4616
4616
|
const t = R.get(nt);
|
|
4617
|
-
|
|
4617
|
+
ve.disableLoadAutoFit = !!t?.declared && t.normalIsThemeFont && await _(t.faces);
|
|
4618
4618
|
}
|
|
4619
|
-
|
|
4620
|
-
const
|
|
4621
|
-
if (
|
|
4619
|
+
y?.mark("json-assembled");
|
|
4620
|
+
const ye = new E(ve);
|
|
4621
|
+
if (y?.mark("workbook-constructed"), M.forEach((t) => {
|
|
4622
4622
|
t.deleteReference(N);
|
|
4623
|
-
}),
|
|
4624
|
-
|
|
4623
|
+
}), C.endPersist(), v) {
|
|
4624
|
+
yt(ye);
|
|
4625
4625
|
const t = /* @__PURE__ */ new Map();
|
|
4626
4626
|
let e = 0;
|
|
4627
4627
|
for (const o of J.getNames()) {
|
|
@@ -4641,31 +4641,31 @@ var ds = {
|
|
|
4641
4641
|
};
|
|
4642
4642
|
t.set(o, n), e += s.byteLength;
|
|
4643
4643
|
}
|
|
4644
|
-
if (e > 67108864)
|
|
4644
|
+
if (e > 67108864) x.push([`Source package too large to retain (${e} bytes, limit ${Ct}); unmodeled parts will be dropped on save.`, "SourcePackage"]);
|
|
4645
4645
|
else if (t.size > 0) {
|
|
4646
4646
|
const e = new Pt(t, tt);
|
|
4647
|
-
_t(
|
|
4648
|
-
let o =
|
|
4649
|
-
const s =
|
|
4647
|
+
_t(ye, e);
|
|
4648
|
+
let o = ye.getWorksheets().getItems();
|
|
4649
|
+
const s = ye.getTransactions().addListener({ onCommitEnd: (t) => {
|
|
4650
4650
|
const o = t.getOperation()?.name;
|
|
4651
4651
|
"insertCells" !== o && "deleteCells" !== o || e.markStructuralChange();
|
|
4652
|
-
} }), r =
|
|
4653
|
-
const t =
|
|
4652
|
+
} }), r = ye.addListeners({ onSheetsChange: () => {
|
|
4653
|
+
const t = ye.getWorksheets().getItems();
|
|
4654
4654
|
(t.length !== o.length || t.some((t, e) => t !== o[e])) && e.markStructuralChange(), o = t;
|
|
4655
4655
|
} });
|
|
4656
|
-
|
|
4657
|
-
s(), r(),
|
|
4656
|
+
ye.addListeners({ onClose: () => {
|
|
4657
|
+
s(), r(), yt(ye);
|
|
4658
4658
|
} });
|
|
4659
4659
|
}
|
|
4660
4660
|
}
|
|
4661
|
-
if (
|
|
4661
|
+
if (x.length && I?.onWarning) {
|
|
4662
4662
|
const t = /* @__PURE__ */ new Set();
|
|
4663
|
-
for (const e of
|
|
4663
|
+
for (const e of x) {
|
|
4664
4664
|
const [o, s, r] = e, n = r ?? o;
|
|
4665
4665
|
t.has(n) || (t.add(n), I.onWarning(o, s));
|
|
4666
4666
|
}
|
|
4667
4667
|
}
|
|
4668
|
-
return
|
|
4668
|
+
return y && !0 === d && console.table(y.toTable()), await ye.whenFontsReady(), ye;
|
|
4669
4669
|
} catch (n) {
|
|
4670
4670
|
let t = "Unable to parse XLSX.";
|
|
4671
4671
|
throw n instanceof o && (t = "Unable to open XLSX. There are too many rows or columns."), new Error(t, { cause: n });
|