@sheetxl/studio-vanilla 0.7.20 → 0.7.21
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/browser/cjs/{BzV8wBjArFtuUr6Q.cjs → 6-vJOr7Q28gyS483.cjs} +2 -2
- package/browser/cjs/{CzN-CwCSYKcOS9vr.cjs → 97jt2JXgyNPl7Mtt.cjs} +1 -1
- package/browser/cjs/{DaYLnQn6N_fPjQsP.cjs → AcaOLiUNlyIuhJJ6.cjs} +1 -1
- package/browser/cjs/{DUcNa0U95UG3xv1P.cjs → BDErSmCb8DIXLRwh.cjs} +1 -1
- package/browser/cjs/{IPzCC6TV2WSrZCQh.cjs → BEUbpk4AljnzeEZu.cjs} +1 -1
- package/browser/cjs/{wc5zoON-utlXwayE.cjs → BLiI50zkGELG61E3.cjs} +1 -1
- package/browser/cjs/{Dc8dDo0mpe9husnW.cjs → BOyje3Q70GAB5ARH.cjs} +4 -4
- package/browser/cjs/BTb7NFxLYXig6VK-.cjs +327 -0
- package/browser/cjs/{CbQkI1WR3n-GhDJG.cjs → Bai88-Sb1JMwJZxx.cjs} +1 -1
- package/browser/cjs/{DhaOYvn3rBfUW4tj.cjs → BbeQO7zyILXGyFPt.cjs} +2 -2
- package/browser/cjs/{BXU0S-Z1NnPP3ylk.cjs → Bdf95Imu-qLUe6b1.cjs} +2 -2
- package/browser/cjs/{CH42PODl2_V0FZtI.cjs → Bfg0ZfAfPLLoL95E.cjs} +1 -1
- package/browser/cjs/{VtVSJwkFbYZeuFeR.cjs → BlV9Yx3ZFFZkpIqA.cjs} +4 -4
- package/browser/cjs/{C5sJO_GV1mgcGPrS.cjs → Bonegnp0I4BgzBlE.cjs} +2 -2
- package/browser/cjs/{DCWZonT7pZzbHdI1.cjs → BrOEeOfcxZrMg4eQ.cjs} +1 -1
- package/browser/cjs/{AuRScZeD2PY2AU6g.cjs → BxIyKkpK22SVErHN.cjs} +1 -1
- package/browser/cjs/{1uvVWKoDCeURnacj.cjs → ByWmzz4XYnBBLpTQ.cjs} +2 -2
- package/browser/cjs/{CWoatP9K16aMEshJ.cjs → Bzedo5wSGgXxeqny.cjs} +2 -2
- package/browser/cjs/{Bx8hf99qQLC6Zw_j.cjs → C6S-f2VWTy_7_wpC.cjs} +1 -1
- package/browser/cjs/{DOkw8qQ4UPI7lmFA.cjs → C8bNFncZgt3sY1nV.cjs} +1 -1
- package/browser/cjs/{1m-wMn6XJDyuhoUr.cjs → C8kLkPSa7V_EZDVI.cjs} +1 -1
- package/browser/cjs/{CBKrvN18sBqBx6vR.cjs → CAPVUAfIRWYTSl-R.cjs} +1 -1
- package/browser/cjs/{DZEuVThWm_qSXAtY.cjs → CEzDe8lKYA-cAXWM.cjs} +6 -6
- package/browser/cjs/{BXGuIvbSLE0qcvtY.cjs → CIzozNiy51noyx1l.cjs} +1 -1
- package/browser/cjs/{DF1HcS9SX6pajKgX.cjs → CRU3HIw_0ucOdCZP.cjs} +4 -4
- package/browser/cjs/{C_e2ryc2JI9eNMRh.cjs → CTz-NfTn9ZVOtN4i.cjs} +2 -2
- package/browser/cjs/{D6uf2ZMGyZAVe7Xm.cjs → CUZawO_WFunopkE1.cjs} +1 -1
- package/browser/cjs/{sHIiaC-iDwXBh4VR.cjs → CaODCLchpXyJRQzM.cjs} +1 -1
- package/browser/cjs/{XOcmGykAqNLzobYR.cjs → CbqD-HCikI1X_r9e.cjs} +1 -1
- package/browser/cjs/{DwD9bLOnNXwaD1YF.cjs → CfR9YPEANKuvTdxN.cjs} +1 -1
- package/browser/cjs/{D4OHS-bhMHaD-PvU.cjs → CipmwWwUlaocheHw.cjs} +1 -1
- package/browser/cjs/{bjPVoyRMAxc_N8q8.cjs → CkA0Qjb5oCDzMqvt.cjs} +2 -2
- package/browser/cjs/{DYXZiaE8jo1m7oKV.cjs → Cpp4lHX4OTpOnmUg.cjs} +8 -8
- package/browser/cjs/{CmeziBGLd6bVgVrZ.cjs → CrlzYXw3MHGD4_-q.cjs} +2 -2
- package/browser/cjs/{BSf_vXfxIEMsDR97.cjs → CzAgQQK8QvyS6_TA.cjs} +1 -1
- package/browser/cjs/{CInLNBqwD6aHNCRz.cjs → D1XFFsr5xtC70ydy.cjs} +1 -1
- package/browser/cjs/{Bg5_xfiCdUbKC3nM.cjs → DG30v0uDwwizwD2r.cjs} +1 -1
- package/browser/cjs/{Cmht83hyEJh-aBv7.cjs → DGRO7tn2MFWdNQsO.cjs} +1 -1
- package/browser/cjs/{DKtZMuHCCyyGiMpj.cjs → DJFIFH0FbmmkZiCR.cjs} +1 -1
- package/browser/cjs/{Bv5M7z9CLmqUdHLL.cjs → DTUhB6vlRSty_nEf.cjs} +1 -1
- package/browser/cjs/{Xe4ngJY8sNgJ6brX.cjs → DavL30GjAQCawLMH.cjs} +2 -2
- package/browser/cjs/{B8PCcQbCy_L67Q5-.cjs → DdSaBJNzCfJpCeVA.cjs} +2 -2
- package/browser/cjs/{CsY_-c_ld490b0Kw.cjs → DhvPc6q6NqMbAEvF.cjs} +2 -2
- package/browser/cjs/{Z0HcgXF3OK6POtDO.cjs → Doohr9PtvoUazXx3.cjs} +2 -2
- package/browser/cjs/{CxVS9NMNps9pQnt7.cjs → DpNQUAG-TvQDBKoa.cjs} +2 -2
- package/browser/cjs/{BNecxacZmW8BbSA-.cjs → DrTZWF9aIF_bMlaJ.cjs} +1 -1
- package/browser/cjs/{DSQ5nW3HpFmyNbxX.cjs → DyCcBWCnb27xwGeG.cjs} +2 -2
- package/browser/cjs/{BvhTv59YPQ9Jex6z.cjs → Dzu6uLKaNk1sgEsK.cjs} +1 -1
- package/browser/cjs/{DF4qz_mUO-jxqN6R.cjs → FQg6n4i2NjLOhptV.cjs} +2 -2
- package/browser/cjs/{ClZxTKmzqFM7s5vI.cjs → JXd5-4lH2t50MwgC.cjs} +1 -1
- package/browser/cjs/{D_tIhPv9iNoWq6R4.cjs → KLTaZshw3kdfQByJ.cjs} +4 -4
- package/browser/cjs/{D5nhbOgizx6uKB2J.cjs → MpPjEWu-1oO7TTLJ.cjs} +1 -1
- package/browser/cjs/{CpNruAkS6jLVhk_r.cjs → TDzW9D6o0zP8plyu.cjs} +3 -3
- package/browser/cjs/{CpeHh2-I0lILcwKL.cjs → XqyRKqYt_vtON2XQ.cjs} +6 -6
- package/browser/cjs/{rFJte8mjrtn_2vVE.cjs → _AtktFOL5ZmIoo3x.cjs} +2 -2
- package/browser/cjs/{D3OKMM6mwpgKjq3T.cjs → eqUnAwibTeTANx3J.cjs} +1 -1
- package/browser/cjs/{CgqQ3MbDauazgzDn.cjs → iSvsTAjxNcOe4nfr.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{BrvprhY7zodv1uu3.cjs → pyrSah1S03Pjcgjz.cjs} +1 -1
- package/{cdn/assets/CCo7GabBmelvhNyn.js → browser/esm/0Y5gefudV72yvrqS.mjs} +1 -1
- package/browser/esm/{bFsI9PmmnMoEtL__.mjs → 1ksOtOUVUX4KLQ9u.mjs} +3 -3
- package/{cdn/assets/oEQ0ruP2nlpvbSrL.js → browser/esm/6irz7V0AEik-oFdR.mjs} +1 -1
- package/browser/esm/{1MThtftElTy6WrA0.mjs → 8MJ4FtEQ38pjfWty.mjs} +1 -1
- package/browser/esm/{DdKr4ehgWyYJpVp8.mjs → AMVCY6d-OktdfOQE.mjs} +1 -1
- package/{cdn/assets/5QXcgftJH5CfnJdM.js → browser/esm/B4jVhMsVA-Mmw9qH.mjs} +1 -1
- package/browser/esm/{DAoG0qewdAKdM_ho.mjs → B8QLSA97cr_AP7r9.mjs} +1 -1
- package/browser/esm/{BKDjyp3RzGbtEZM3.mjs → B9wzNp0HXrPxB3mR.mjs} +14 -14
- package/browser/esm/{CSIS9eBDu4JwmTHi.mjs → BBdUME9WGIBoo1ny.mjs} +1 -1
- package/browser/esm/{-3u5GbBQA0FSOuAP.mjs → BBrfl5Nlrf2w6aQW.mjs} +12 -12
- package/{cdn/assets/Duj69RQfdRblYdPT.js → browser/esm/BIz59j9Xq7ky1AL-.mjs} +2 -2
- package/{cdn/assets/BCx6y5BBxl46SHtk.js → browser/esm/BR5hyjZ5Os742V_v.mjs} +2 -2
- package/browser/esm/{DKha__YF_NhQK0SK.mjs → BRqFp2pl8HikXTFt.mjs} +27 -27
- package/browser/esm/{CV01HGZbX1r6oU0O.mjs → BUPRdtMv_fXp0FDY.mjs} +8 -8
- package/browser/esm/{kPSDIvwgPsxxE24j.mjs → BWGSTS25S1XWOcqu.mjs} +12 -12
- package/browser/esm/{Bg15z7RuUZkCb9bo.mjs → BXR7TnsuCEpho1AU.mjs} +2 -2
- package/browser/esm/{C-ZVytqqDm_z7xWM.mjs → BdQCRxN2rixUHxOl.mjs} +1 -1
- package/{cdn/assets/C5WjPJZ8kaKrIU61.js → browser/esm/BdSlSLWrpvc4_G6J.mjs} +1 -1
- package/browser/esm/{DpIf2SsnjarVkIuv.mjs → Bdd-VDF9hcSuHmH5.mjs} +1 -1
- package/{cdn/assets/BcuxIYGSAi3xC4Lk.js → browser/esm/BfAp_QcJuhDULyD9.mjs} +1 -1
- package/{cdn/assets/Cr7pXPBAHOtmgCJf.js → browser/esm/BgELNRooJzC8YlDI.mjs} +1 -1
- package/browser/esm/{B4c17RzcYfxQeRny.mjs → Bmv_Ya5-UmS_-HS3.mjs} +1 -1
- package/browser/esm/{4lA748o59cx4KITO.mjs → BrNBOYOb6FQm6NDt.mjs} +1 -1
- package/browser/esm/{C6-DkxYhg7RXmlo7.mjs → ByuHrhH0nFMCN572.mjs} +1 -1
- package/browser/esm/{COfCOEmst6i3w3-H.mjs → C8sYGCGQem4v9TwQ.mjs} +2 -2
- package/{cdn/assets/D1hJ_HNOxCWJcItV.js → browser/esm/C9ObN98JqT5tLS5g.mjs} +1 -1
- package/browser/esm/{CmQn9LrxD5KlRZ6i.mjs → CUqbqz2samKfHOoe.mjs} +4 -4
- package/browser/esm/{d5ANpsHs_Cd32TxS.mjs → CdZfyBeXLtHUAnSL.mjs} +1 -1
- package/{cdn/assets/Ck3MM-jyP5O9Fbwo.js → browser/esm/CmsP4fA9ozarTWvD.mjs} +1 -1
- package/browser/esm/{hhUXO2d2SOFylRa6.mjs → CpzwyPfeoLaA13rc.mjs} +11 -11
- package/browser/esm/{61QT0ZDOqKxgj6_K.mjs → Cqvfh689dGMncbPU.mjs} +2 -2
- package/{cdn/assets/BCzQK19xrI6fJV9-.js → browser/esm/Cvm_VLcMKFBDg7cI.mjs} +1 -1
- package/{cdn/assets/DrfVzaY6Q9kP4Bs_.js → browser/esm/CvoGYY1fWczsqjxx.mjs} +1 -1
- package/browser/esm/{m4AYbY7xk35Yz6t_.mjs → D-sKAXoVNI9Wl3Gu.mjs} +1 -1
- package/browser/esm/{BsReprB77sMG7Ia3.mjs → D1ubbhTM0PPYk_4g.mjs} +19 -19
- package/browser/esm/{BmOuY3i5KeYOGOIN.mjs → D1ygqUdAm6vV2Wu1.mjs} +2 -2
- package/browser/esm/{CD0HbuVGcie3SJXt.mjs → D2W2MeIZqi1a78Wo.mjs} +4 -4
- package/browser/esm/{Bmp0G6OFsH4OYPK7.mjs → DAgf08hha8x4NkiW.mjs} +1 -1
- package/{cdn/assets/4QZbPTlatdpGW8mW.js → browser/esm/DF3364yTjdOhE032.mjs} +1 -1
- package/browser/esm/{Ct3zOB2fwBbjFVnJ.mjs → DGIpt4xqgo5wnXvI.mjs} +3 -3
- package/browser/esm/{BqE0-P5J-y_rRP_G.mjs → DHikzoSuZHmfdSGR.mjs} +104 -104
- package/browser/esm/{CVQG2g2PFKFijLz1.mjs → DHtUFaCIWaHG5aYd.mjs} +1 -1
- package/browser/esm/{Dw6PE-qxq-I4r30f.mjs → DS8TRQNTZhPt1f8w.mjs} +1 -1
- package/browser/esm/{DJ7Usn1zMSWfd7o_.mjs → DgulLzh_EvvOjeVx.mjs} +4 -4
- package/browser/esm/Dulk_QHiqWiy9JRN.mjs +39 -0
- package/browser/esm/{LTd6f6bNi108-7q5.mjs → DxgruwCeDJTbE6BY.mjs} +4 -4
- package/{cdn/assets/lGjZjGcY4pvqJBdB.js → browser/esm/G70q4hSkx8NcTIKq.mjs} +1 -1
- package/browser/esm/{-dRLDgEfKLIrhQsi.mjs → JVXhdaSy30fFzmJ7.mjs} +1 -1
- package/browser/esm/{B4YKOSATl_vM4_VO.mjs → KWhubU_eRmtHQTVn.mjs} +2 -2
- package/browser/esm/{aderzMl9WPEOXpEY.mjs → M0TBnxbjkgqSV-d-.mjs} +1 -1
- package/browser/esm/{Dhh9RXpPpVVlJoDC.mjs → PyAqLbHqBupOkXBp.mjs} +18013 -17950
- package/browser/esm/{D-o1pnphdBGmqkDS.mjs → QT4TXuIWZVGw5W5z.mjs} +1 -1
- package/{cdn/assets/dym78C0-EBdgTQA-.js → browser/esm/XoVlPZtnLC2eEZlk.mjs} +1 -1
- package/browser/esm/{D5kpCYo0lYaF8XG3.mjs → hAkqzllvkN9izXI7.mjs} +2 -2
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{BNqU4QZQSca9gEI2.mjs → peouLp3TIJeeFSPG.mjs} +6 -6
- package/browser/esm/{BFsGpbPpZIWq9j9G.mjs → rHLNvA1AXYIckwOI.mjs} +1 -1
- package/browser/esm/{YhoVLGLgRFZWxMsx.mjs → sKs0rW2QqSvXYO-K.mjs} +1 -1
- package/{cdn/assets/D-SS16dWhPQviXwr.js → browser/esm/sxz2WOEbh7KwirsX.mjs} +3 -3
- package/{browser/esm/CCo7GabBmelvhNyn.mjs → cdn/assets/0Y5gefudV72yvrqS.js} +1 -1
- package/cdn/assets/{D0A2A29hLklUBBW2.js → 1rC1OgsRROXIR4ap.js} +4 -4
- package/{browser/esm/oEQ0ruP2nlpvbSrL.mjs → cdn/assets/6irz7V0AEik-oFdR.js} +1 -1
- package/cdn/assets/{1MThtftElTy6WrA0.js → 8MJ4FtEQ38pjfWty.js} +1 -1
- package/cdn/assets/{DdKr4ehgWyYJpVp8.js → AMVCY6d-OktdfOQE.js} +1 -1
- package/{browser/esm/5QXcgftJH5CfnJdM.mjs → cdn/assets/B4jVhMsVA-Mmw9qH.js} +1 -1
- package/cdn/assets/{r7NBY_vG39kjGhEw.js → B5zuziWQAqN3tu-Q.js} +7 -7
- package/cdn/assets/{CSIS9eBDu4JwmTHi.js → BBdUME9WGIBoo1ny.js} +1 -1
- package/cdn/assets/{D30ogm4gygj8i8nN.js → BJ13QLvuKdqU65pj.js} +2 -2
- package/cdn/assets/{DWvh6NjXKQU6eMUt.js → BMKO-uJI7mJ2C3sW.js} +3 -3
- package/cdn/assets/{CZarNhw1Wj6tobmF.js → BN-bM9RVum-ACh7O.js} +10 -10
- package/cdn/assets/{Bu0itxC2rUwiWMEQ.js → BZL0_H5oEMX8NF7M.js} +20 -20
- package/cdn/assets/{C-ZVytqqDm_z7xWM.js → BdQCRxN2rixUHxOl.js} +1 -1
- package/{browser/esm/C5WjPJZ8kaKrIU61.mjs → cdn/assets/BdSlSLWrpvc4_G6J.js} +1 -1
- package/cdn/assets/{DpIf2SsnjarVkIuv.js → Bdd-VDF9hcSuHmH5.js} +1 -1
- package/{browser/esm/BcuxIYGSAi3xC4Lk.mjs → cdn/assets/BfAp_QcJuhDULyD9.js} +1 -1
- package/{browser/esm/Cr7pXPBAHOtmgCJf.mjs → cdn/assets/BgELNRooJzC8YlDI.js} +1 -1
- package/cdn/assets/{27RYKPXNI81kxNqa.js → Bgpk4W4CQhholXa6.js} +2 -2
- package/cdn/assets/{JguVvfKKqzNxFSPz.js → BgxRG1-sWpywlnAD.js} +2 -2
- package/cdn/assets/{B4c17RzcYfxQeRny.js → Bmv_Ya5-UmS_-HS3.js} +1 -1
- package/cdn/assets/{BZbbB0km7YjZH-ls.js → BnH-3eCKgCudNXNv.js} +3 -3
- package/cdn/assets/{4lA748o59cx4KITO.js → BrNBOYOb6FQm6NDt.js} +1 -1
- package/cdn/assets/{zBdl4-IsCQ8OcoAP.js → BtFhIZstiHoRdl91.js} +6 -6
- package/cdn/assets/{C6-DkxYhg7RXmlo7.js → ByuHrhH0nFMCN572.js} +1 -1
- package/cdn/assets/{URQMYH7Tm-ryuQts.js → C9Em4SG9Bu9yfgZ2.js} +4 -4
- package/cdn/assets/{_LZbly6Yqrd-8ih7.js → C9F5SMblLZR6llDC.js} +9 -9
- package/{browser/esm/D1hJ_HNOxCWJcItV.mjs → cdn/assets/C9ObN98JqT5tLS5g.js} +1 -1
- package/cdn/assets/{DKZNMsmM6A1pRtcG.js → CIYTPoXO0_IxL2Il.js} +21 -21
- package/cdn/assets/CMPyx-14e9yukzaY.js +41 -0
- package/{browser/esm/DtQ8PkRqxGLC8DmS.mjs → cdn/assets/CWoJvFMdnz7risZh.js} +2 -2
- package/cdn/assets/{D8Vyk9JZvPQOI1N-.js → CczV0JNf4842mL46.js} +2 -2
- package/{browser/esm/CUOWdcWpdsKz372Z.mjs → cdn/assets/CdWcgrvC3zmKEuiT.js} +34 -34
- package/cdn/assets/{d5ANpsHs_Cd32TxS.js → CdZfyBeXLtHUAnSL.js} +1 -1
- package/cdn/assets/{DhplvyRWSIrau07O.js → Chvtx3LElavAKTBM.js} +4 -4
- package/{browser/esm/Ck3MM-jyP5O9Fbwo.mjs → cdn/assets/CmsP4fA9ozarTWvD.js} +1 -1
- package/cdn/assets/{IX2BHljZEQ9dhYmv.js → Cr0zSyE_0zg80NKX.js} +5 -5
- package/{browser/esm/BCzQK19xrI6fJV9-.mjs → cdn/assets/Cvm_VLcMKFBDg7cI.js} +1 -1
- package/{browser/esm/DrfVzaY6Q9kP4Bs_.mjs → cdn/assets/CvoGYY1fWczsqjxx.js} +1 -1
- package/cdn/assets/{m4AYbY7xk35Yz6t_.js → D-sKAXoVNI9Wl3Gu.js} +1 -1
- package/cdn/assets/{DpjBB4EF0ZrTtRdV.js → D7pqAxdvMydZdMez.js} +2 -2
- package/cdn/assets/{Bsop2qtZKF9zaSub.js → D7tm1uwijt6yRCig.js} +4 -4
- package/cdn/assets/{C8ErMKswFhRIVklY.js → DAJy_HCUldnnaEJp.js} +10 -10
- package/cdn/assets/{Bmp0G6OFsH4OYPK7.js → DAgf08hha8x4NkiW.js} +1 -1
- package/{browser/esm/4QZbPTlatdpGW8mW.mjs → cdn/assets/DF3364yTjdOhE032.js} +1 -1
- package/cdn/assets/{CVQG2g2PFKFijLz1.js → DHtUFaCIWaHG5aYd.js} +1 -1
- package/cdn/assets/{DwqpwyqGoQ36Oyfc.js → DLCRJN3sA8sJWNsZ.js} +17976 -17913
- package/cdn/assets/{Dw6PE-qxq-I4r30f.js → DS8TRQNTZhPt1f8w.js} +1 -1
- package/cdn/assets/{Ckf795_xHgemB6ls.js → DT7e7zhUsFJGcx2Z.js} +4 -4
- package/cdn/assets/{CUh7bWm0PDYyIgds.js → DU1Zo3S2s-1xTJJs.js} +2 -2
- package/cdn/assets/{D3IsWhYeF4VWF1yh.js → DXTgNpbkKzuEWeF2.js} +7 -7
- package/cdn/assets/{CUnm3OFf6WTVDUL6.js → Dco0MS8_hEsc0OPo.js} +3 -3
- package/cdn/assets/{Z2-dlS699zVzx3pY.js → Dfjm_X6eQE-sv061.js} +4 -4
- package/{browser/esm/lGjZjGcY4pvqJBdB.mjs → cdn/assets/G70q4hSkx8NcTIKq.js} +1 -1
- package/cdn/assets/{-dRLDgEfKLIrhQsi.js → JVXhdaSy30fFzmJ7.js} +1 -1
- package/cdn/assets/{aderzMl9WPEOXpEY.js → M0TBnxbjkgqSV-d-.js} +1 -1
- package/cdn/assets/{D-o1pnphdBGmqkDS.js → QT4TXuIWZVGw5W5z.js} +1 -1
- package/cdn/assets/{2ikZ1tpmgnnoWmvA.js → UtmutBQROyuBtl4r.js} +1 -1
- package/{browser/esm/dym78C0-EBdgTQA-.mjs → cdn/assets/XoVlPZtnLC2eEZlk.js} +1 -1
- package/cdn/assets/{BmYQis5LoyoPFlaz.js → aPBS98bJMioBkE9g.js} +7 -7
- package/cdn/assets/{BHh2zMZGJe6dUWlk.js → drYtPnOe21tQDl8L.js} +15 -15
- package/cdn/assets/{BnbqN9I5cg3axP7D.js → jmwAu8IOkB1kD1KF.js} +2 -2
- package/cdn/assets/{BFsGpbPpZIWq9j9G.js → rHLNvA1AXYIckwOI.js} +1 -1
- package/cdn/assets/{YhoVLGLgRFZWxMsx.js → sKs0rW2QqSvXYO-K.js} +1 -1
- package/{browser/esm/DNASG22eNK2wJSII.mjs → cdn/assets/wGEPbEOJOOYqjwRF.js} +10 -10
- package/cdn/assets/{2ePZckFQMEXP71ln.js → xpA-oP_sNRbMCnCC.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/DV3WU2M19nBxtVRA.cjs +0 -327
- package/browser/esm/BoLX2j6yXdLB3jXI.mjs +0 -39
- package/cdn/assets/57A0lwhfYhakqAd0.js +0 -41
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.21
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./BTb7NFxLYXig6VK-.cjs"),as=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",As=new RegExp(`^[${as}][-${as}.0-9·̀-ͯ‿-⁀]*$`,"u");function ps(i){return i>=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const ls="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",Ds=new RegExp(`^[${ls}][-${ls}.0-9·̀-ͯ‿-⁀]*$`,"u");function gs(i){return i>=65&&i<=90||i===95||i>=97&&i<=122||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const U=function(i){return i===32||i===10||i===13||i===9},Es=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},ae=ps,cs=function(i){return ps(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256},fs=[32,10,13,9],Os=As,Is=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},Vs=gs,Ns=function(i){return gs(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256},Ls=Ds,Te="http://www.w3.org/XML/1998/namespace",Qt="http://www.w3.org/2000/xmlns/",Rs={__proto__:null,xml:Te,xmlns:Qt},Ms={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},I=-1,ct=-2,q=13,$t=33,nt=10,vt=60,Gt=61,H=62,X=63,Zt=93,me=i=>i===34||i===39,ms=[34,39],$s=[...ms,91,H],Hs=[...ms,vt,Zt],js=[Gt,X,...fs],Fs=[...fs,H,38,vt];function Ie(i,t,s){switch(t){case"xml":s!==Te&&i.fail(`xml prefix must be bound to ${Te}.`);break;case"xmlns":s!==Qt&&i.fail(`xmlns prefix must be bound to ${Qt}.`)}switch(s){case Qt:i.fail(t===""?`the default namespace may not be set to ${s}.`:`may not assign a prefix (even "xmlns") to the URI ${Qt}.`);break;case Te:switch(t){case"xml":break;case"":i.fail(`the default namespace may not be set to ${s}.`);break;default:i.fail("may not assign the xml namespace to another prefix.")}}}const Xs=i=>Ls.test(i),Bs=i=>Os.test(i),hs={xmldecl:"xmlDeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class Ws{constructor(t){this.i=0,this.prevI=0,this.opt=t??{},this.fragmentOpt=!!this.opt.fragment;const s=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,s){this.nameStartCheck=Vs,this.nameCheck=Ns,this.isName=Xs,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...Rs};const o=this.opt.additionalNamespaces;o!=null&&((function(n,a){for(const h of Object.keys(a))Ie(n,h,a[h])})(this,o),Object.assign(this.ns,o))}else this.nameStartCheck=ae,this.nameCheck=cs,this.isName=Bs,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){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=[];const{fragmentOpt:t}=this;this.state=t?q:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:s}=this.opt;if(s===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");s="1.0"}this.setXMLVersion(s),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(Ms),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,s){this[hs[t]]=s}off(t){this[hs[t]]=void 0}makeError(t){let s=this.fileName??"";return this.trackPosition&&(s.length>0&&(s+=":"),s+=`${this.line}:${this.column}`),s.length>0&&(s+=": "),new Error(s+t)}fail(t){const s=this.makeError(t),o=this.errorHandler;if(o===void 0)throw s;return o(s),this}write(t){if(this.closed)return this.fail("cannot write after close.");let s=!1;t===null?(s=!0,t=""):typeof t=="object"&&(t=t.toString()),this.carriedFromPrevious!==void 0&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let o=t.length;const n=t.charCodeAt(o-1);!s&&(n===13||n>=55296&&n<=56319)&&(this.carriedFromPrevious=t[o-1],o--,t=t.slice(0,o));const{stateTable:a}=this;for(this.chunk=t,this.i=0;this.i<o;)a[this.state].call(this);return this.chunkPosition+=o,s?this.end():this}close(){return this.write(null)}getCode10(){const t=this.chunk,s=this.i;if(this.prevI=s,this.i++,s>=t.length)return I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>=32||o===9)return o;switch(o){case nt:return this.line++,this.column=0,this.positionAtNewLine=this.position,nt;case 13:return t.charCodeAt(s+1)===nt&&(this.i=s+2),this.line++,this.column=0,this.positionAtNewLine=this.position,ct;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:t,i:s}=this;if(this.prevI=s,this.i=s+1,s>=t.length)return I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>31&&o<127||o>159&&o!==8232||o===9)return o;switch(o){case nt:return this.line++,this.column=0,this.positionAtNewLine=this.position,nt;case 13:{const a=t.charCodeAt(s+1);a!==nt&&a!==133||(this.i=s+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,ct;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const t=this.getCode();return t===ct?nt:t}unGet(){this.i=this.prevI,this.column--}captureTo(t){let{i:s}=this;const{chunk:o}=this;for(;;){const n=this.getCode(),a=n===ct,h=a?nt:n;if(h===I||t.includes(h))return this.text+=o.slice(s,this.prevI),h;a&&(this.text+=`${o.slice(s,this.prevI)}
|
|
7
7
|
`,s=this.i)}}captureToChar(t){let{i:s}=this;const{chunk:o}=this;for(;;){let n=this.getCode();switch(n){case ct:this.text+=`${o.slice(s,this.prevI)}
|
|
8
|
-
`,s=this.i,n=nt;break;case I:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===I)return this.name+=t.slice(s),I;if(!cs(o))return this.name+=t.slice(s,this.prevI),o===ct?nt:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===I||!
|
|
9
|
-
`,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===
|
|
10
|
-
`),t=this.i,s=0;break;case I:n!==void 0&&(this.text+=o.slice(t));break t;default:s=0}this.forbiddenState=s}handleTextOutsideRoot(){let{i:t}=this;const{chunk:s,textHandler:o}=this;let n=!1;t:for(;;){const a=this.getCode();switch(a){case vt:if(this.state=15,o!==void 0){const{text:h}=this,m=s.slice(t,this.prevI);h.length!==0?(o(h+m),this.text=""):m.length!==0&&o(m)}break t;case 38:this.state=14,this.entityReturnState=
|
|
11
|
-
`),t=this.i;break;case I:o!==void 0&&(this.text+=s.slice(t));break t;default:G(a)||(n=!0)}}n&&(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))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qName(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const h=s.trim();this.currentXMLVersion==="1.0"&&h===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=h,Ie(this,n,h)}else if(t==="xmlns"){const h=s.trim();this.topNS[""]=h,Ie(this,"",h)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==W&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qName(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:h}=this.qName(s.name);s.prefix=a,s.local=h;const m=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),m===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:h,prefix:m,local:P}=a;let b,C;m===""?(b=h==="xmlns"?Zt:"",C=h):(b=this.resolve(m),b===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(m)}.`),b=m),C=`{${b}}${P}`),n.has(C)&&this.fail(`duplicate attribute: ${C}.`),n.add(C),a.uri=b,o[h]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=W,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=W,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=W,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail(`unexpected close tag: ${s}.`)}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ve,mt;(mt=Ve||(Ve={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},mt.parseStream=async(i,t,s)=>{const o=new qs({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(mt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(mt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(mt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(mt.Events.Attribute,t.onAttribute),t.onText&&o.on(mt.Events.Text,t.onText),t.onError&&o.on(mt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(mt.Events.End,a)}for(;;){const{value:a,done:h}=await i.read();if(h)break;o.write(a)}return o.close(),n};const S=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,E=i=>{const t=parseInt(i);return isNaN(t)?null:t},ht=i=>{const t=parseFloat(i);return isNaN(t)?null:t},k=null;class Ws{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let h=null,m=null,P=null,b=null;const C=[],A={key:null,source:t};let y=null,R=!1;const K=(c,d)=>{let T=P.attributes[c];if(d){if(Array.isArray(d)){for(let j=0;j<d.length;j++)if(T==null||(T=d[j](T),T==null))return}else if(T==null||(T=d(T),T==null))return}return T},x={getSource:()=>y.source,setSource:c=>{y.source=c},setKey:c=>{y.key=c},getFrom:()=>P,getAttribute:(c,d)=>K(c,d)??null,hasAttribute:c=>x.getAttribute(c)!==null,getParent:()=>C[C.length-2].source,getPath:()=>{const c=[];for(let d=0;d<a.length;d++)c.push(a[d].local);return c.join("\\")},parseAttribute:K,copyToObject:(c,d,T,j)=>{const U=K(j??d,T);U!==void 0&&(c[d]=U)},copyTo:(c,d,T)=>{const j=K(T??c,d);j!==void 0&&(y.source[c]=j)},warn:c=>{o?o?.(c):console.warn(c)}};return{onOpenTag:c=>{let d=c.name;const T=d.indexOf(":");T!==-1&&(d=d.slice(T+1));const j=n.get(d);if(h={local:d,visitor:j,tag:c,destination:null},R)return a.push(h),m=d,void(P=c);b=h?.visitor??null,j&&(y=a.length===0?A:b?.to!==null?{key:null,source:{}}:null,h.destination=y,y&&C.push(y)),a.push(h),m=d,P=c,R=b?.to===null,b?.openTag?.(x)},onCloseTag:c=>{let d=c.name;const T=d.indexOf(":");if(T!==-1&&(d=d.slice(T+1)),d!==m)throw new Error(`mismatch open/close tag: '${d}'/'${m}'`);R||b?.closeTag?.(x);const j=a.pop()??null;h=a[a.length-1]??null;const U=j?.destination;if(U){C.pop(),y=C[C.length-1]??A;const ut=j.visitor;ut&&ut.to&&U.source!==void 0&&(Array.isArray(ut.to)?y.source.push?y.source.push(U.source):o?.(`Unable to parse array for ${ut.from} at ${x.getPath()}`):U.key?y.source[U.key]=U.source:typeof ut.to=="string"&&(y.source[ut.to]=U.source))}m=h?.local??null,P=h?.tag??null,b=h?.visitor??null,R=!h?.destination},onText:c=>{b?.text?.(c,x)},onEnd:s}}}const us=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const h=t(n);if(!h)return null;let m=h.content;try{s&&(m=s(m))}catch(P){console.warn(P)}return o?.parsedRefs?.set(i,m),m},Ne=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let h=n?.parsedRefs?.get(i);if(h!==void 0)return h;const m=t(a);if(!m)return null;const P=m.content;try{const b=new TextDecoder().decode(P),C=s.parseFromString(b,"text/xml"),A=o.convert(C,i,n);return n?.parsedRefs?.set(i,A),A}catch(b){console.warn(b)}return null},Gt=(i,t,s,o,n=null)=>{const a=new Map;let h=t.Directory[i];const m=h?h.length:0;for(let P=0;P<m;P++){const b=h[P];if(!b)continue;let C=b;C.startsWith("/")&&(C=C.substring(1));const A=Ne(C,y=>t.files[y],s,o,n);a.set(C,A)}return a},_s=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Le=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const h=i("theme");h&&(s=_s[h]);let m=i("tint");if(m&&(s+=` ${p.N.AdjustmentType.ETint} ${parseFloat(m)}`),s)return s},Ts=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),ys=i=>i==="true"||i==="1";class Ht{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const zs=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},ds={colStart:0,colEnd:0,rowStart:0,rowEnd:0},Gs=Object.freeze(Object.defineProperty({__proto__:null,readBufferXLSX:async(i,t)=>{const{password:s,createWorkbookOptions:o={},...n}=t??{},a=[],h=t?.progress,m=h?.onProgress;let P=0;const b=Promise.resolve().then(()=>require("./XOcmGykAqNLzobYR.cjs")),C=Promise.resolve().then(()=>require("./CsY_-c_ld490b0Kw.cjs"));let A=null;try{A=new DOMParser}catch{}let y=null;A||(y=Promise.resolve().then(()=>require("./BSf_vXfxIEMsDR97.cjs")).then(c=>c.i));let R=null,K=null,x=null;try{const c=await Promise.all([b,C,y]);R=c[0],K=c[1],x=c[2]}catch(c){throw new Error("Unable to load XLSX parser.",{cause:c})}try{const c=R.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!c.Directory)throw new p.xt("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");c.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],c.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const d=new K.FromOOXMLConverter,T=A??new x.DOMParser,j=o?.resources??new p.hf,U=j.beginPersist(),ut={},Re=new Set,ye=new Map;ye.set("richTypes",[]);const Me=new Map,$e=[],le=w=>c.files[w],be=(w,B)=>{const J=w.lastIndexOf("/"),st=w.substring(0,J+1)+"_rels/"+w.substring(J+1,w.length)+".rels";let dt=B.get(st);return dt||(dt=((L,Se,Ce,ke,jt=null)=>{if(!L)return null;const it=Ne(L,Se,Ce,ke,jt);if(!it)return null;const ot=new Map,yt=Object.keys(it),Ft=yt.length;for(let bt=0;bt<Ft;bt++){const Xt=yt[bt],Ct=it[Xt];ot.set(Xt,Ct)}return ot})(st,le,T,d,Tt),B.set(st,dt)),dt},ce=(w,B,J,st=Me)=>{let dt=be(B,st).get(w),L=dt?.target;if(!L)return null;if(dt.targetMode==="External")return dt.target;const Se=B.lastIndexOf("/"),Ce=B.substring(0,Se+1);L.startsWith("/")||(L=Ce+L),L=(it=>{const ot=it.split(/\/+/);return ot.reduce((yt,Ft,bt)=>(Ft==="."?yt.splice(bt,1):Ft===".."&&yt.splice(bt-1,2),yt),ot).join("/")})(L);const ke=d?.getVisitorParamsState().get("dxfs");let jt=st.get(L);if(!jt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const it={};jt=it;const ot=async()=>{const yt=((M,F,Qt,_,Z,z,Kt,kt)=>{const u=new Ws,Q=new p.Pt.TransposedBuilder;let $=null;u.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",S)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let g=0;g<l.length;g++){const V=l[g];V!=="rule"&&(r[V]=r.rule[V])}}delete r.rule}}),u.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",k),e.copyToObject(r,"priority",E),e.copyToObject(r,"stopIfTrue",S);const l=e.getAttribute("dxfId",E);if(l!==null){let g=_?.get(l);g||(z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),g={}),r.style=g}e.copyToObject(r,"aboveAverage",S),e.copyToObject(r,"equalAverage",S),e.copyToObject(r,"stdDev",E),e.copyToObject(r,"bottom",S),e.copyToObject(r,"percent",S),e.copyToObject(r,"rank",E),e.copyToObject(r,"operator",k),e.copyToObject(r,"text",k),e.copyToObject(r,"timePeriod",k)}}),u.registerVisitor({from:"colorScale",to:"colorScale"}),u.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",E),e.copyTo("minLength",E),e.copyTo("showValue",S)}}),u.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",k),e.copyTo("reverse",S),e.copyTo("showValue",S)}}),u.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let g=l.formulas;g||(g=[],l.formulas=g),g.push(e)}}),u.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",k),e.copyTo("value",ht,"val"),e.copyTo("gte",S)}}),u.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Le(g=>e.getAttribute(g));r.colors.push(l)}}),u.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",E,"colId"),e.copyTo("hiddenButton",S),e.copyTo("showButton",S)}}),u.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.Pu.Type.Color,e.copyTo("cellColor",S),e.copyTo("styleId",E,"dxfId")}}),u.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.Pu.Type.Dynamic,e.copyTo("dynamicType",k,"type"),e.copyTo("val",ht),e.copyTo("maxVal",ht,"maxVal")}}),u.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.Pu.Type.Icon,e.copyTo("iconId",E),e.copyTo("iconSet",k)}}),u.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.Pu.Type.Top10,e.copyTo("filterVal",ht),e.copyTo("percent",S),e.copyTo("top",S),e.copyTo("val",ht)}}),u.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.Pu.Type.Items,e.copyTo("blank",S),e.copyTo("calendarType",k)}}),u.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",k,"dateTimeGrouping"),e.copyTo("day",E),e.copyTo("hour",E),e.copyTo("minute",E),e.copyTo("month",E),e.copyTo("second",E),e.copyTo("year",E)}}),u.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ht))}}),u.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.Pu.Type.Custom,e.copyTo("and",S)}}),u.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",k),e.copyTo("value",ht,"val")}}),u.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",k,"sortBy"),e.copyTo("dxfId",k,"sortBy"),e.copyTo("iconSet",k),e.copyTo("customList",k);const g=e.getAttribute("ref");if(g){const V=p.wo.fastStringToRange(g,ds).colStart,Y=p.wo.fastStringToRange(r.ref,ds),Bt=Y.colStart;l.offset=Y?V-Bt:V}l.reverse=e.getAttribute("descending",S)??!1}}),u.registerVisitor({from:"AlternateContent",to:null});const pe=e=>{$=e.getSource(),e.copyTo("topLeft",k,"topLeftCell");const r=ys(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",S),e.copyTo("showFormulas",S),e.copyTo("zoomScale",E),e.copyTo("showRowHeaders",S,"showRowColHeaders"),e.copyTo("showColumnHeaders",S,"showRowColHeaders"),e.copyTo("showRowGridlines",S,"showGridLines"),e.copyTo("showColumnGridlines",S,"showGridLines")};u.registerVisitor({from:"sheetView",to:"view",openTag:e=>{pe(e)},closeTag:()=>{$=null}}),u.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"customSheetView",to:[],openTag:e=>{pe(e)},closeTag:()=>{$=null}}),u.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!$)return;e.copyTo("cell",k,"activeCell"),e.copyTo("rangeIndex",E,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),u.registerVisitor({from:"pane",to:"pane",openTag:e=>{if($&&e.getAttribute("state")==="frozen"){const r={};$.freezePanes=r,e.copyToObject(r,"topLeft",k,"topLeftCell");const l=$.topLeft?p.wo.fastStringToCell($.topLeft):{colIndex:0,rowIndex:0},g={colIndex:0,rowIndex:0};e.copyToObject(g,"colIndex",E,"xSplit"),e.copyToObject(g,"rowIndex",E,"ySplit");const V={colIndex:l.colIndex+g.colIndex,rowIndex:l.rowIndex+g.rowIndex};r.coords=p.wo.cellToString(V)}}}),u.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Le(l=>e.getAttribute(l));r&&(M.tabColor=r)}}),u.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),u.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),u.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),u.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),u.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),u.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),u.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let g=r?F(r):"";if(typeof g!="string")return void console.warn("Invalid address ",g);const V=e.getAttribute("location");g.endsWith("\\")&&(g=g.substring(0,g.length-1));const Y=e.getAttribute("location");if(Y&&(V&&V!==Y&&console.warn("display and location are different",V,Y),g+="#"+Y),!g)return void console.warn("No address found for hyperlink. r:id",r);let Bt;const xt=e.getAttribute("tooltip");Bt=xt?{address:g,tooltip:xt}:g,e.setSource({r:l,v:Bt})}}),u.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=F(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),u.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=F(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),u.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),u.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&S(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=V=>V===!0||V==="1"||V==="on"||V==="true"||V===!1||V==="0"||V==="off"||V==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const g={};e.copyToObject(g,"hash",k,"hashValue"),e.copyToObject(g,"algorithm",k,"algorithmName"),e.copyToObject(g,"salt",k,"saltValue"),e.copyToObject(g,"spinCount",E),Object.keys(g).length>0&&(e.getSource().password=g)}}),u.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),u.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",k,"hashValue"),e.copyToObject(l,"algorithm",k,"algorithmName"),e.copyToObject(l,"salt",k,"saltValue"),e.copyToObject(l,"spinCount",E),Object.keys(l).length>0&&(e.getSource().password=l)}}),u.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(M,"defaultColSize",ht,"defaultColWidth"),e.copyToObject(M,"outlineLevelCol",E,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(M,"defaultRowSize",ht,"defaultRowHeight"),e.copyToObject(M,"outlineLevelRow",E,"outlineLevelRow")}}),u.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ht,"width"),e.copyTo("csz",S,"customWidth"),e.copyTo("h",S,"hidden"),e.copyTo("l",E,"outlineLevel"),e.copyTo("s",E,"style")}}),u.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Yt=null;const ks={onOpenTag:e=>{Yt===null&&(Yt="")},onText:e=>{Yt+=e},onEnd:()=>{const e=Qt(Yt);return Yt=null,e},onError:e=>{}};return((e,r,l,g,V,Y,Bt)=>{let xt=!1,ge=!1,qt=[],Wt=!1,Pt=null,te=null,fe=null,at=null,We=null,_e=null;const Ps=Bt?.get("richData")??[],ze=p.wo.normalizeA1ToR1C1,Ge=p.Ht.createConflatingRanges(),Ue=new Map,Pe=[];let ee=null;const Je=p.Ht.createConflatingRanges();let se,At=!1,q=-1,tt=-1,pt=null,ie=null;const Ae=[];let De=null,Ze=-2,gt=0,_t="",Dt="",Et="",Ot="",zt="",It="",Vt="",Qe="",Ke="",Ye="",ts="",es="",ss="",is="",ft=!0,Nt=null,os=!1,Ee=!1,oe=null,Oe=0;return{...l,onEnd:()=>{Ae.length>0&&(r.rows=Ae);let f=Ge.done(zs);const v=f.length;if(v>0){const O=new Array(v);for(let N=0;N<v;N++){const lt=f[N],Lt=p.wo.rangeToString(lt),Rt=lt.value[1],re=p.wo.resolveRelativeToA1(Rt,lt.rowStart,lt.colStart);O[N]=[Lt,re]}r.formulas=O}const rt=Je.done(!0),D=rt.length;if(D>0){const O=new Array(D);for(let N=0;N<D;N++){const lt=rt[N],Lt=p.wo.rangeToString(lt);O[N]=Lt}r.volatile=O}if(Pe.length>0&&(r.dynamicArray=[...Pe]),qt.length>0){qt.sort(p.Ht.createRangeComparator(p.w.Orientation.Column));const O=[];let N=null,lt=-1,Lt=-1,Rt=-1,re=-1,wt=null;const rs=qt.length;rs>0&&(N=qt[0],lt=N.colStart,Lt=N.colEnd,Rt=N.rowEnd,re=N.value,O.push(N));for(let Mt=1;Mt<rs;Mt++)wt=qt[Mt],re!==wt.value||lt!==wt.colStart||Lt!==wt.colEnd||Rt+1!==wt.rowEnd?(O.push(wt),N=wt,lt=N.colStart,Lt=N.colEnd,Rt=N.rowEnd,re=N.value):(Rt=wt.rowEnd,N.rowEnd=Rt);let ns=[];for(let Mt=0;Mt<O.length;Mt++){const ne=O[Mt];ns.push({r:{colStart:ne.colStart,colEnd:ne.colEnd,rowStart:ne.rowStart,rowEnd:ne.rowEnd},v:ne.value})}r.directStyles=ns}const et=e.build();if(et){const O=et.tuples;r.data=O}l?.onEnd?.()},onOpenTag:f=>{let v=f.name;const rt=v.indexOf(":");if(rt!==-1&&(v=v.slice(rt+1)),Oe++,Oe%196608==0&&V(Oe),se){const D=f.attributes;switch(v){case"v":ge=!0;break;case"f":switch(D.t??null){case null:case"normal":Wt=!0;break;case"shared":const et=D.si;te=D.ref,Pt=et;break;case"array":Wt=!0,te=D.ref,ee=[te,!1];break;case"datatable":Wt=!0,te=D.ref,Wt=!0}D.ca!==void 0&&Je.append(q,tt);break;case"is":return void(At=!0)}return void(At&&Y?.onOpenTag(f))}if(xt){if(v==="c"){se=f;const D=f.attributes.r;tt=p.wo.fastStringToCol(D);const et=f.attributes.t;et===void 0?ie=null:(ie=et,ie==="str"&&(At=!0));let O=f.attributes.s;O===void 0&&(oe!==null||Ee)&&(O="0"),O!==void 0&&(O=parseInt(O),Nt&&Nt.value===O&&Nt.colEnd+1===tt?Nt.colEnd=tt:(Nt={colStart:tt,rowStart:q,colEnd:tt,rowEnd:q,value:O},qt.push(Nt)))}}else{if(v==="row"){xt=!0;const D=f.attributes.r;if(q=parseInt(D)-1,gt=0,Dt=f.attributes.customHeight,Dt!==void 0&&(gt|=Ht.CustomHeight),Dt!==Ke&&(ft=!0,Ke=Dt),_t=f.attributes.ht,_t!==void 0&&(gt|=Ht.Ht),_t!==Qe&&(ft=!0,Qe=_t),Et=f.attributes.hidden,Et!==void 0&&(gt|=Ht.Hidden),Et!==Ye&&(ft=!0,Ye=Et),zt=f.attributes.s,zt!==void 0&&(gt|=Ht.S),zt!==es&&(ft=!0,es=zt),Ot=f.attributes.customFormat,Ot!==void 0&&(gt|=Ht.CustomFormat),Ot!==ts&&(ft=!0,ts=Ot),It=f.attributes.outlineLevel,It!==void 0&&(gt|=Ht.OutlineLevel),It!==ss&&(ft=!0,ss=It),Vt=f.attributes.collapsed,Vt!==void 0&&(gt|=Ht.Collapsed),Vt!==is&&(ft=!0,is=Vt),gt!==0)if(Ze+1!==q||ft){const et=Dt!==void 0&&(Dt==="1"||Dt==="true");oe=Ot===void 0||Ot!=="1"&&Ot!=="true"||zt===void 0?null:zt,De={min:q,max:q,sz:et&&_t!==void 0?parseFloat(_t):-1,csz:et,h:Et!==void 0&&(Et==="1"||Et==="true"),s:oe===null?void 0:oe==="0"?0:parseInt(oe),l:It===void 0||It==="0"?0:parseInt(It),cl:Vt!==void 0&&(Vt==="1"||Vt==="true")},Ae.push(De)}else De.max=q;return Ze=q,void(ft=!1)}if(!os&&v==="sheetData"){os=!0;const D=r.cols,et=D?D.length:0;for(let O=0;!Ee&&O<et;O++)D[O].s&&(Ee=!0)}l?.onOpenTag(f)}},onCloseTag:f=>{if(se){let v=f.name;const rt=v.indexOf(":");if(rt!==-1&&(v=v.slice(rt+1)),At)if(v==="is"||v==="v"){const D=Y?.onEnd();D!==null&&e.addValue(q,tt,""+D)}else Y?.onCloseTag?.(f);return ge&&(ge=!1),void(v==="c"&&(se=null,At=!1))}if(xt)return xt=!1,void(Nt=null);l?.onCloseTag(f)},onText:f=>{if(f=f.trim(),ge){switch(pt=null,ie){case null:case"n":pt=parseFloat(f);break;case"b":pt=f==="1"||f==="true";break;case"s":pt=f;break;case"e":if(f==="#VALUE!"){const rt=se.attributes.vm;if(rt!==void 0){const D=Ps[parseInt(rt)-1];if(D&&D.isFormulaError){pt={t:p.M.Error,v:D.getCode()};break}}}const v=p.n.getBuiltInByLabel(f);v?pt={t:p.M.Error,v:v.getCode()}:(pt=f,g?.(`Unknown formula error '${f}' in cell ${p.wo.cellToString({colIndex:tt,rowIndex:q})}`));break;case"str":case"inlineStr":At=!0}pt!==null&&e.addValue(q,tt,pt)}if(ee&&(ie==="e"&&(ee[1]=!0),Pe.push(ee),ee=null),Pt)if(We===Pt)at=_e;else{if(at=Ue.get(Pt),!at){const v=[];fe=ze(f,q,tt,v),at=[fe,v,f],Ue.set(Pt,at)}We=Pt,_e=at}if(Wt){const v=[];fe=ze(f,q,tt,v),at=[fe,v,f]}if(at)return Ge.append(q,tt,at),at=null,Wt=!1,Pt=null,void(te=null);At?Y?.onText(f):xt||l?.onText(f)}}})(Q,M,u.createEventHandler(M,()=>{},z),z,e=>{P+=e,m?.(P)},ks,kt)})(it,(M,F=!1)=>ce(M,L,F)??null,xs,ke,0,(M,F)=>{F=F?`${F} (${L})`:L,a.push([M,F])},0,ye),Ft=us(L,le),bt=await(async(M,F=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:z}=await Promise.resolve().then(()=>require("./DCWZonT7pZzbHdI1.cjs"));globalThis.ReadableStream=z}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Qt=new TextDecoder("utf-8");let _=0;const Z=M instanceof Uint8Array?M:new Uint8Array(M);return new ReadableStream({pull(z){if(_>=Z.byteLength)return void z.close();const Kt=Z.subarray(_,Math.min(_+F,Z.byteLength)),kt=Qt.decode(Kt,{stream:_+F<Z.byteLength});z.enqueue(kt),_+=Kt.length}}).getReader()})(Ft);try{await Ve.parseStream(bt,yt,{xmlns:!1})}catch(M){throw console.warn(`Error parsing sheet: '${L}'`,M),new Error(`Error parsing sheet: '${L}'`,{cause:M})}const Xt=be(L,st);let Ct,qe=new Map;if(Xt){const M="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let F;Xt.forEach((_,Z)=>{_.type===M&&(Ct=ce(Z,L,!1,st)?.comments,Ct&&Ct.forEach(z=>{qe.set(z.id,z)}))});const Qt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Xt.forEach((_,Z)=>{_.type===Qt&&(F=ce(Z,L,!1,st))}),F||Ct){const _=Ct??[],Z=F?.comments;if(Z){const z=F?.authors,Kt=Z.length;for(let kt=0;kt<Kt;kt++){const u=Z[kt];if(!u)continue;let Q=z&&u.authorId!==void 0?z[u.authorId]:u.authorId;if(Q&&Q.startsWith("tc=")&&(Q=Ts(Q.substring(3)),qe.has(Q)))continue;let $=null;Q&&($=ue.get(Q)),$||($=Fe.get(Q)),$||($={id:p.te.uuidV4(),displayName:Q},Fe.set($.displayName,$),ue.set($.id,$)),Q=$?.id??null;const pe={id:p.te.uuidV4(),personId:Q,ref:u.ref,done:!1,asNote:!0,content:u.content};_.push(pe)}}it.comments=_}}};$e.push(ot())}else jt=J?us(L,le,it=>{const ot=j.add({buffer:it});return ot.addReference(ut),Re.add(ot),U.toResourceId(ot)},Tt):Ne(L,le,T,d,Tt);return jt},Tt={paramMap:ye,getRefs:be,getRef:ce,parsedRefs:Me,addPerson:w=>null},he=[];let xe=0;c.Strings&&(xe=parseInt(c.Strings.Unique??c.Strings.length??0));const bs=c.Strings??[];for(let w=0;w<xe;w++)he.push(bs[w]?.t??"");const He=new Map;let je=xe;const xs=w=>{const B=He.get(w);if(B!==void 0)return B;const J=je;return He.set(w,je++),he.push(w),J},ue=(Gt("richstructure",c,T,d,Tt),Gt("richdata",c,T,d,Tt),new Map),Fe=new Map,Xe=Gt("people",c,T,d);let St=null;if(Xe.size>0&&(St=Xe.entries().next()?.value?.[1]?.persons,St)){const w=St.length;for(let B=0;B<w;B++){const J=St[B];ue.set(J.id,J),ue.set(J.displayName,J)}}const we=Gt("themes",c,T,d,Tt);let Be=null;if(we&&we.entries){let w=we.entries().next();w?.value?.[1]&&(Be=w.value[1])}const ws=new p.nc(Be);let de=Gt("styles",c,T,d,Tt).entries().next()?.value[1];de&&(de=JSON.parse(p.oe(de)));const vs=Gt("workbooks",c,T,d,Tt);await Promise.all($e);const ve={...vs.entries().next().value[1],styles:de,theme:ws.toJSON()};he.length>0&&(ve.strings=he),St&&St.length>0&&(ve.people=St);const Ss={...o,resources:j,json:ve},Cs=new p.a1(Ss);if(Re.forEach(w=>{w.deleteReference(ut)}),U.endPersist(),a.length){const w=h?.onWarning;if(w)for(const B of a){const[J,st]=B;w(J,st)}}return Cs}catch(c){let d="Unable to parse XLSX.";throw c instanceof p.ae&&(d="Unable to open XLSX. There are too many rows or columns."),new Error(d,{cause:c})}},writeBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./XOcmGykAqNLzobYR.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const h=o.sheets[a],m=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,m,h.name);const P=h.sheet,b=i.getSheetAt(a),C=b.getUsedRange();if(C?(m["!ref"]=C.getA1(),C.forEach((A,y)=>{const R={t:"z"},K=y.getCell().getStyle();if(!K.isNormal()){let x=K.getNumberFormat();x!==p.Je.Type.General&&(x===p.Je.Type.ShortDate?x="m/d/yyyy":x===p.Je.Type.MediumDate?x="d-mmm-yy":x===p.Je.Type.LongDate?x="[$-x-sysdate]dddd, mmmm dd, yyyy":x===p.Je.Type.ShortTime?x="h:mm":x===p.Je.Type.MediumTime?x="h:mm AM/PM":x===p.Je.Type.LongTime&&(x="h:mm:ss AM/PM"),R.z=x)}if(A!==null)switch(y.getType()){case p.M.Number:R.t="n",R.v=A;break;case p.M.String:R.t="s",R.v=A;break;case p.M.Boolean:R.t="b",R.v=A;break;case p.M.Error:R.t="e",R.v=A.toString();case p.M.RichData:}m[y.getA1()]=R})):m["!ref"]="A1:A1",P.merges?.length>0){const A=[];m["!merges"]=A;for(let y=0;y<P.merges.length;y++)A.push(s.utils.decode_range(P.merges[y]))}if(P.cols?.length>0){const A=[];m["!cols"]=A;const y=P.cols,R={width:P.defaultColSize??b.getColumnWidthAsFontUnit(b.getColumnHeaders().getDefaultSize())},K=y.length;for(let x=0;x<K;x++){const c=y[x];for(let T=A.length;T<=c.min-1;T++)A.push(R);const d={};c.sz!==void 0&&(d.width=c.sz),c.h!==void 0&&(d.hidden=c.h),c.l!==void 0&&(d.level=c.l);for(let T=c.min;T<=c.max;T++)A.push(d)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.H=Gs,exports.a=i=>parseFloat(i)/1e3,exports.b=ys,exports.c=i=>i?p.te.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Le,exports.p=i=>parseFloat(i)/6e4,exports.r=Ts,exports.t=i=>i?p.te.roundAccurately(parseFloat(i)/12700,4):null;
|
|
8
|
+
`,s=this.i,n=nt;break;case I:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===I)return this.name+=t.slice(s),I;if(!cs(o))return this.name+=t.slice(s,this.prevI),o===ct?nt:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===I||!U(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=Es,this.getCode=this.getCode10):(this.isChar=Is,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,s=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),s){case vt:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case I:break;default:this.unGet(),this.state=q,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo($s);switch(t){case H:this.doctypeHandler?.(this.text),this.text="",this.state=q,this.doctype=!0;break;case I:break;default:this.text+=String.fromCodePoint(t),t===91?this.state=4:me(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=2)}sDTD(){const t=this.captureTo(Hs);t!==I&&(this.text+=String.fromCodePoint(t),t===Zt?this.state=2:t===vt?this.state=6:me(t)&&(this.state=5,this.q=t))}sDTDQuoted(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=4,this.q=null)}sDTDOpenWaka(){const t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case 33:this.state=7,this.openWakaBang="";break;case X:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const t=String.fromCodePoint(this.getCodeNorm()),s=this.openWakaBang+=t;this.text+=t,s!=="-"&&(this.state=s==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=t===45?10:8}sDTDCommentEnded(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===H?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(X)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===H&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this;const{chunk:s}=this;t:for(;;)switch(this.getCode()){case ct:this.entity+=`${s.slice(t,this.prevI)}
|
|
9
|
+
`,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===q&&this.textHandler===void 0||(this.text+=a);break t}case I:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(ae(t))this.state=34,this.unGet(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case X:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=q,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":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),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){const t=this.getCodeNorm();t===45?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==H?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=q}sCData(){this.captureToChar(Zt)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===Zt?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){const t=this.getCodeNorm();switch(t){case H:this.cdataHandler?.(this.text),this.text="",this.state=q;break;case Zt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`,this.state=20}}sPIFirstChar(){const t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=24):t===X||U(t)?(this.fail("processing instruction without a target."),this.state=t===X?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=24)}sPIRest(){const{chunk:t,i:s}=this;for(;;){const o=this.getCodeNorm();if(o===I)return void(this.piTarget+=t.slice(s));if(!this.nameCheck(o)){this.piTarget+=t.slice(s,this.prevI);const n=o===X;n||U(o)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?$t:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(o));break}}}sPIBody(){if(this.text.length===0){const t=this.getCodeNorm();t===X?this.state=26:U(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(X)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===H){const{piTarget:s}=this;s.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),this.piHandler?.({target:s,body:this.text}),this.piTarget=this.text="",this.state=q}else t===X?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==X?t!==I&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=$t}sXMLDeclName(){const t=this.captureTo(js);if(t===X)return this.state=$t,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(U(t)||t===Gt){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=t===Gt?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===X)return this.state=$t,void this.fail("XML declaration is incomplete.");U(t)||(t!==Gt&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===X)return this.state=$t,void this.fail("XML declaration is incomplete.");U(t)||(me(t)?this.q=t:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const t=this.captureTo([this.q,X]);if(t===X)return this.state=$t,this.text="",void this.fail("XML declaration is incomplete.");if(t===I)return;const s=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const o=s;this.xmlDecl.version=o,/^1\.[0-9]+$/.test(o)?this.opt.forceXMLVersion||this.setXMLVersion(o):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(s)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=s;break;case"standalone":s!=="yes"&&s!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=s}this.name="",this.state=32}sXMLDeclSeparator(){const t=this.getCodeNorm();t!==X?(U(t)||(this.fail("whitespace required."),this.unGet()),this.state=27):this.state=$t}sXMLDeclEnding(){this.getCodeNorm()===H?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),this.xmlDeclHandler?.(this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=q):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===I)return;const s=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=s.ns=Object.create(null)),this.openTagStartHandler?.(s),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case H:this.openTag();break;case 47:this.state=35;break;default:U(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===H?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==I&&(ae(t)?(this.unGet(),this.state=37):t===H?this.openTag():t===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===Gt?this.state=39:U(t)?this.state=38:t===H?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==I&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case I:return;case Gt:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===H?this.openTag():ae(t)?(this.unGet(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();me(t)?(this.q=t,this.state=40):U(t)||(this.fail("unquoted attribute value."),this.state=42,this.unGet())}sAttribValueQuoted(){const{q:t,chunk:s}=this;let{i:o}=this;for(;;)switch(this.getCode()){case t:return this.pushAttrib(this.name,this.text+s.slice(o,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=s.slice(o,this.prevI),this.state=14,void(this.entityReturnState=40);case nt:case ct:case 9:this.text+=`${s.slice(o,this.prevI)} `,o=this.i;break;case vt:return this.text+=s.slice(o,this.prevI),void this.fail("disallowed character.");case I:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();U(t)?this.state=36:t===H?this.openTag():t===47?this.state=35:ae(t)?(this.fail("no whitespace between attributes."),this.unGet(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(Fs);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case vt:this.fail("disallowed character.");break;case I:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===H?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===H?this.closeTag():U(t)?this.state=44:t!==I&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case H:this.closeTag();break;case I:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:s}=this;const{chunk:o,textHandler:n}=this;t:for(;;)switch(this.getCode()){case vt:if(this.state=15,n!==void 0){const{text:a}=this,h=o.slice(t,this.prevI);a.length!==0?(n(a+h),this.text=""):h.length!==0&&n(h)}s=0;break t;case 38:this.state=14,this.entityReturnState=q,n!==void 0&&(this.text+=o.slice(t,this.prevI)),s=0;break t;case Zt:switch(s){case 0:s=1;break;case 1:s=2;break;case 2:break;default:throw new Error("impossible state")}break;case H:s===2&&this.fail('the string "]]>" is disallowed in char data.'),s=0;break;case ct:n!==void 0&&(this.text+=`${o.slice(t,this.prevI)}
|
|
10
|
+
`),t=this.i,s=0;break;case I:n!==void 0&&(this.text+=o.slice(t));break t;default:s=0}this.forbiddenState=s}handleTextOutsideRoot(){let{i:t}=this;const{chunk:s,textHandler:o}=this;let n=!1;t:for(;;){const a=this.getCode();switch(a){case vt:if(this.state=15,o!==void 0){const{text:h}=this,m=s.slice(t,this.prevI);h.length!==0?(o(h+m),this.text=""):m.length!==0&&o(m)}break t;case 38:this.state=14,this.entityReturnState=q,o!==void 0&&(this.text+=s.slice(t,this.prevI)),n=!0;break t;case ct:o!==void 0&&(this.text+=`${s.slice(t,this.prevI)}
|
|
11
|
+
`),t=this.i;break;case I:o!==void 0&&(this.text+=s.slice(t));break t;default:U(a)||(n=!0)}}n&&(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))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qName(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const h=s.trim();this.currentXMLVersion==="1.0"&&h===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=h,Ie(this,n,h)}else if(t==="xmlns"){const h=s.trim();this.topNS[""]=h,Ie(this,"",h)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==q&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qName(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:h}=this.qName(s.name);s.prefix=a,s.local=h;const m=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),m===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:h,prefix:m,local:P}=a;let b,C;m===""?(b=h==="xmlns"?Qt:"",C=h):(b=this.resolve(m),b===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(m)}.`),b=m),C=`{${b}}${P}`),n.has(C)&&this.fail(`duplicate attribute: ${C}.`),n.add(C),a.uri=b,o[h]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=q,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=q,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=q,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail(`unexpected close tag: ${s}.`)}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ve,mt;(mt=Ve||(Ve={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},mt.parseStream=async(i,t,s)=>{const o=new Ws({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(mt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(mt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(mt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(mt.Events.Attribute,t.onAttribute),t.onText&&o.on(mt.Events.Text,t.onText),t.onError&&o.on(mt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(mt.Events.End,a)}for(;;){const{value:a,done:h}=await i.read();if(h)break;o.write(a)}return o.close(),n};const S=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,E=i=>{const t=parseInt(i);return isNaN(t)?null:t},ht=i=>{const t=parseFloat(i);return isNaN(t)?null:t},k=null;class qs{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let h=null,m=null,P=null,b=null;const C=[],A={key:null,source:t};let y=null,R=!1;const K=(c,d)=>{let T=P.attributes[c];if(d){if(Array.isArray(d)){for(let j=0;j<d.length;j++)if(T==null||(T=d[j](T),T==null))return}else if(T==null||(T=d(T),T==null))return}return T},x={getSource:()=>y.source,setSource:c=>{y.source=c},setKey:c=>{y.key=c},getFrom:()=>P,getAttribute:(c,d)=>K(c,d)??null,hasAttribute:c=>x.getAttribute(c)!==null,getParent:()=>C[C.length-2].source,getPath:()=>{const c=[];for(let d=0;d<a.length;d++)c.push(a[d].local);return c.join("\\")},parseAttribute:K,copyToObject:(c,d,T,j)=>{const G=K(j??d,T);G!==void 0&&(c[d]=G)},copyTo:(c,d,T)=>{const j=K(T??c,d);j!==void 0&&(y.source[c]=j)},warn:c=>{o?o?.(c):console.warn(c)}};return{onOpenTag:c=>{let d=c.name;const T=d.indexOf(":");T!==-1&&(d=d.slice(T+1));const j=n.get(d);if(h={local:d,visitor:j,tag:c,destination:null},R)return a.push(h),m=d,void(P=c);b=h?.visitor??null,j&&(y=a.length===0?A:b?.to!==null?{key:null,source:{}}:null,h.destination=y,y&&C.push(y)),a.push(h),m=d,P=c,R=b?.to===null,b?.openTag?.(x)},onCloseTag:c=>{let d=c.name;const T=d.indexOf(":");if(T!==-1&&(d=d.slice(T+1)),d!==m)throw new Error(`mismatch open/close tag: '${d}'/'${m}'`);R||b?.closeTag?.(x);const j=a.pop()??null;h=a[a.length-1]??null;const G=j?.destination;if(G){C.pop(),y=C[C.length-1]??A;const ut=j.visitor;ut&&ut.to&&G.source!==void 0&&(Array.isArray(ut.to)?y.source.push?y.source.push(G.source):o?.(`Unable to parse array for ${ut.from} at ${x.getPath()}`):G.key?y.source[G.key]=G.source:typeof ut.to=="string"&&(y.source[ut.to]=G.source))}m=h?.local??null,P=h?.tag??null,b=h?.visitor??null,R=!h?.destination},onText:c=>{b?.text?.(c,x)},onEnd:s}}}const us=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const h=t(n);if(!h)return null;let m=h.content;try{s&&(m=s(m))}catch(P){console.warn(P)}return o?.parsedRefs?.set(i,m),m},Ne=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let h=n?.parsedRefs?.get(i);if(h!==void 0)return h;const m=t(a);if(!m)return null;const P=m.content;try{const b=new TextDecoder().decode(P),C=s.parseFromString(b,"text/xml"),A=o.convert(C,i,n);return n?.parsedRefs?.set(i,A),A}catch(b){console.warn(b)}return null},Ut=(i,t,s,o,n=null)=>{const a=new Map;let h=t.Directory[i];const m=h?h.length:0;for(let P=0;P<m;P++){const b=h[P];if(!b)continue;let C=b;C.startsWith("/")&&(C=C.substring(1));const A=Ne(C,y=>t.files[y],s,o,n);a.set(C,A)}return a},_s=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Le=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const h=i("theme");h&&(s=_s[h]);let m=i("tint");if(m&&(s+=` ${p.N.AdjustmentType.ETint} ${parseFloat(m)}`),s)return s},Ts=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),ys=i=>i==="true"||i==="1";class Ht{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const zs=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},ds={colStart:0,colEnd:0,rowStart:0,rowEnd:0},Us=Object.freeze(Object.defineProperty({__proto__:null,readBufferXLSX:async(i,t)=>{const{password:s,createWorkbookOptions:o={},...n}=t??{},a=[],h=t?.progress,m=h?.onProgress;let P=0;const b=Promise.resolve().then(()=>require("./CbqD-HCikI1X_r9e.cjs")),C=Promise.resolve().then(()=>require("./DhvPc6q6NqMbAEvF.cjs"));let A=null;try{A=new DOMParser}catch{}let y=null;A||(y=Promise.resolve().then(()=>require("./CzAgQQK8QvyS6_TA.cjs")).then(c=>c.i));let R=null,K=null,x=null;try{const c=await Promise.all([b,C,y]);R=c[0],K=c[1],x=c[2]}catch(c){throw new Error("Unable to load XLSX parser.",{cause:c})}try{const c=R.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!c.Directory)throw new p.xt("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");c.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],c.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const d=new K.FromOOXMLConverter,T=A??new x.DOMParser,j=o?.resources??new p.jm,G=j.beginPersist(),ut={},Re=new Set,ye=new Map;ye.set("richTypes",[]);const Me=new Map,$e=[],le=w=>c.files[w],be=(w,B)=>{const Z=w.lastIndexOf("/"),st=w.substring(0,Z+1)+"_rels/"+w.substring(Z+1,w.length)+".rels";let dt=B.get(st);return dt||(dt=((L,Se,Ce,ke,jt=null)=>{if(!L)return null;const it=Ne(L,Se,Ce,ke,jt);if(!it)return null;const ot=new Map,yt=Object.keys(it),Ft=yt.length;for(let bt=0;bt<Ft;bt++){const Xt=yt[bt],Ct=it[Xt];ot.set(Xt,Ct)}return ot})(st,le,T,d,Tt),B.set(st,dt)),dt},ce=(w,B,Z,st=Me)=>{let dt=be(B,st).get(w),L=dt?.target;if(!L)return null;if(dt.targetMode==="External")return dt.target;const Se=B.lastIndexOf("/"),Ce=B.substring(0,Se+1);L.startsWith("/")||(L=Ce+L),L=(it=>{const ot=it.split(/\/+/);return ot.reduce((yt,Ft,bt)=>(Ft==="."?yt.splice(bt,1):Ft===".."&&yt.splice(bt-1,2),yt),ot).join("/")})(L);const ke=d?.getVisitorParamsState().get("dxfs");let jt=st.get(L);if(!jt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const it={};jt=it;const ot=async()=>{const yt=((M,F,Jt,_,Q,z,Kt,kt)=>{const u=new qs,J=new p.Vt$1.TransposedBuilder;let $=null;u.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",S)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let g=0;g<l.length;g++){const V=l[g];V!=="rule"&&(r[V]=r.rule[V])}}delete r.rule}}),u.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",k),e.copyToObject(r,"priority",E),e.copyToObject(r,"stopIfTrue",S);const l=e.getAttribute("dxfId",E);if(l!==null){let g=_?.get(l);g||(z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),g={}),r.style=g}e.copyToObject(r,"aboveAverage",S),e.copyToObject(r,"equalAverage",S),e.copyToObject(r,"stdDev",E),e.copyToObject(r,"bottom",S),e.copyToObject(r,"percent",S),e.copyToObject(r,"rank",E),e.copyToObject(r,"operator",k),e.copyToObject(r,"text",k),e.copyToObject(r,"timePeriod",k)}}),u.registerVisitor({from:"colorScale",to:"colorScale"}),u.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",E),e.copyTo("minLength",E),e.copyTo("showValue",S)}}),u.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",k),e.copyTo("reverse",S),e.copyTo("showValue",S)}}),u.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let g=l.formulas;g||(g=[],l.formulas=g),g.push(e)}}),u.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",k),e.copyTo("value",ht,"val"),e.copyTo("gte",S)}}),u.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Le(g=>e.getAttribute(g));r.colors.push(l)}}),u.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",E,"colId"),e.copyTo("hiddenButton",S),e.copyTo("showButton",S)}}),u.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.wd.Type.Color,e.copyTo("cellColor",S),e.copyTo("styleId",E,"dxfId")}}),u.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.wd.Type.Dynamic,e.copyTo("dynamicType",k,"type"),e.copyTo("val",ht),e.copyTo("maxVal",ht,"maxVal")}}),u.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.wd.Type.Icon,e.copyTo("iconId",E),e.copyTo("iconSet",k)}}),u.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.wd.Type.Top10,e.copyTo("filterVal",ht),e.copyTo("percent",S),e.copyTo("top",S),e.copyTo("val",ht)}}),u.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.wd.Type.Items,e.copyTo("blank",S),e.copyTo("calendarType",k)}}),u.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",k,"dateTimeGrouping"),e.copyTo("day",E),e.copyTo("hour",E),e.copyTo("minute",E),e.copyTo("month",E),e.copyTo("second",E),e.copyTo("year",E)}}),u.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ht))}}),u.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=p.wd.Type.Custom,e.copyTo("and",S)}}),u.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",k),e.copyTo("value",ht,"val")}}),u.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",k,"sortBy"),e.copyTo("dxfId",k,"sortBy"),e.copyTo("iconSet",k),e.copyTo("customList",k);const g=e.getAttribute("ref");if(g){const V=p.so.fastStringToRange(g,ds).colStart,Y=p.so.fastStringToRange(r.ref,ds),Bt=Y.colStart;l.offset=Y?V-Bt:V}l.reverse=e.getAttribute("descending",S)??!1}}),u.registerVisitor({from:"AlternateContent",to:null});const pe=e=>{$=e.getSource(),e.copyTo("topLeft",k,"topLeftCell");const r=ys(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",S),e.copyTo("showFormulas",S),e.copyTo("zoomScale",E),e.copyTo("showRowHeaders",S,"showRowColHeaders"),e.copyTo("showColumnHeaders",S,"showRowColHeaders"),e.copyTo("showRowGridlines",S,"showGridLines"),e.copyTo("showColumnGridlines",S,"showGridLines")};u.registerVisitor({from:"sheetView",to:"view",openTag:e=>{pe(e)},closeTag:()=>{$=null}}),u.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"customSheetView",to:[],openTag:e=>{pe(e)},closeTag:()=>{$=null}}),u.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!$)return;e.copyTo("cell",k,"activeCell"),e.copyTo("rangeIndex",E,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),u.registerVisitor({from:"pane",to:"pane",openTag:e=>{if($&&e.getAttribute("state")==="frozen"){const r={};$.freezePanes=r,e.copyToObject(r,"topLeft",k,"topLeftCell");const l=$.topLeft?p.so.fastStringToCell($.topLeft):{colIndex:0,rowIndex:0},g={colIndex:0,rowIndex:0};e.copyToObject(g,"colIndex",E,"xSplit"),e.copyToObject(g,"rowIndex",E,"ySplit");const V={colIndex:l.colIndex+g.colIndex,rowIndex:l.rowIndex+g.rowIndex};r.coords=p.so.cellToString(V)}}}),u.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Le(l=>e.getAttribute(l));r&&(M.tabColor=r)}}),u.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),u.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),u.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),u.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),u.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),u.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),u.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let g=r?F(r):"";if(typeof g!="string")return void console.warn("Invalid address ",g);const V=e.getAttribute("location");g.endsWith("\\")&&(g=g.substring(0,g.length-1));const Y=e.getAttribute("location");if(Y&&(V&&V!==Y&&console.warn("display and location are different",V,Y),g+="#"+Y),!g)return void console.warn("No address found for hyperlink. r:id",r);let Bt;const xt=e.getAttribute("tooltip");Bt=xt?{address:g,tooltip:xt}:g,e.setSource({r:l,v:Bt})}}),u.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=F(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),u.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=F(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),u.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),u.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&S(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=V=>V===!0||V==="1"||V==="on"||V==="true"||V===!1||V==="0"||V==="off"||V==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const g={};e.copyToObject(g,"hash",k,"hashValue"),e.copyToObject(g,"algorithm",k,"algorithmName"),e.copyToObject(g,"salt",k,"saltValue"),e.copyToObject(g,"spinCount",E),Object.keys(g).length>0&&(e.getSource().password=g)}}),u.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),u.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",k,"hashValue"),e.copyToObject(l,"algorithm",k,"algorithmName"),e.copyToObject(l,"salt",k,"saltValue"),e.copyToObject(l,"spinCount",E),Object.keys(l).length>0&&(e.getSource().password=l)}}),u.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(M,"defaultColSize",ht,"defaultColWidth"),e.copyToObject(M,"outlineLevelCol",E,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(M,"defaultRowSize",ht,"defaultRowHeight"),e.copyToObject(M,"outlineLevelRow",E,"outlineLevelRow")}}),u.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ht,"width"),e.copyTo("csz",S,"customWidth"),e.copyTo("h",S,"hidden"),e.copyTo("l",E,"outlineLevel"),e.copyTo("s",E,"style")}}),u.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Yt=null;const ks={onOpenTag:e=>{Yt===null&&(Yt="")},onText:e=>{Yt+=e},onEnd:()=>{const e=Jt(Yt);return Yt=null,e},onError:e=>{}};return((e,r,l,g,V,Y,Bt)=>{let xt=!1,ge=!1,Wt=[],qt=!1,Pt=null,te=null,fe=null,at=null,qe=null,_e=null;const Ps=Bt?.get("richData")??[],ze=p.so.normalizeA1ToR1C1,Ue=p.Ht.createConflatingRanges(),Ge=new Map,Pe=[];let ee=null;const Ze=p.Ht.createConflatingRanges();let se,At=!1,W=-1,tt=-1,pt=null,ie=null;const Ae=[];let De=null,Qe=-2,gt=0,_t="",Dt="",Et="",Ot="",zt="",It="",Vt="",Je="",Ke="",Ye="",ts="",es="",ss="",is="",ft=!0,Nt=null,os=!1,Ee=!1,oe=null,Oe=0;return{...l,onEnd:()=>{Ae.length>0&&(r.rows=Ae);let f=Ue.done(zs);const v=f.length;if(v>0){const O=new Array(v);for(let N=0;N<v;N++){const lt=f[N],Lt=p.so.rangeToString(lt),Rt=lt.value[1],re=p.so.resolveRelativeToA1(Rt,lt.rowStart,lt.colStart);O[N]=[Lt,re]}r.formulas=O}const rt=Ze.done(!0),D=rt.length;if(D>0){const O=new Array(D);for(let N=0;N<D;N++){const lt=rt[N],Lt=p.so.rangeToString(lt);O[N]=Lt}r.volatile=O}if(Pe.length>0&&(r.dynamicArray=[...Pe]),Wt.length>0){Wt.sort(p.Ht.createRangeComparator(p.w.Orientation.Column));const O=[];let N=null,lt=-1,Lt=-1,Rt=-1,re=-1,wt=null;const rs=Wt.length;rs>0&&(N=Wt[0],lt=N.colStart,Lt=N.colEnd,Rt=N.rowEnd,re=N.value,O.push(N));for(let Mt=1;Mt<rs;Mt++)wt=Wt[Mt],re!==wt.value||lt!==wt.colStart||Lt!==wt.colEnd||Rt+1!==wt.rowEnd?(O.push(wt),N=wt,lt=N.colStart,Lt=N.colEnd,Rt=N.rowEnd,re=N.value):(Rt=wt.rowEnd,N.rowEnd=Rt);let ns=[];for(let Mt=0;Mt<O.length;Mt++){const ne=O[Mt];ns.push({r:{colStart:ne.colStart,colEnd:ne.colEnd,rowStart:ne.rowStart,rowEnd:ne.rowEnd},v:ne.value})}r.directStyles=ns}const et=e.build();if(et){const O=et.tuples;r.data=O}l?.onEnd?.()},onOpenTag:f=>{let v=f.name;const rt=v.indexOf(":");if(rt!==-1&&(v=v.slice(rt+1)),Oe++,Oe%196608==0&&V(Oe),se){const D=f.attributes;switch(v){case"v":ge=!0;break;case"f":switch(D.t??null){case null:case"normal":qt=!0;break;case"shared":const et=D.si;te=D.ref,Pt=et;break;case"array":qt=!0,te=D.ref,ee=[te,!1];break;case"datatable":qt=!0,te=D.ref,qt=!0}D.ca!==void 0&&Ze.append(W,tt);break;case"is":return void(At=!0)}return void(At&&Y?.onOpenTag(f))}if(xt){if(v==="c"){se=f;const D=f.attributes.r;tt=p.so.fastStringToCol(D);const et=f.attributes.t;et===void 0?ie=null:(ie=et,ie==="str"&&(At=!0));let O=f.attributes.s;O===void 0&&(oe!==null||Ee)&&(O="0"),O!==void 0&&(O=parseInt(O),Nt&&Nt.value===O&&Nt.colEnd+1===tt?Nt.colEnd=tt:(Nt={colStart:tt,rowStart:W,colEnd:tt,rowEnd:W,value:O},Wt.push(Nt)))}}else{if(v==="row"){xt=!0;const D=f.attributes.r;if(W=parseInt(D)-1,gt=0,Dt=f.attributes.customHeight,Dt!==void 0&&(gt|=Ht.CustomHeight),Dt!==Ke&&(ft=!0,Ke=Dt),_t=f.attributes.ht,_t!==void 0&&(gt|=Ht.Ht),_t!==Je&&(ft=!0,Je=_t),Et=f.attributes.hidden,Et!==void 0&&(gt|=Ht.Hidden),Et!==Ye&&(ft=!0,Ye=Et),zt=f.attributes.s,zt!==void 0&&(gt|=Ht.S),zt!==es&&(ft=!0,es=zt),Ot=f.attributes.customFormat,Ot!==void 0&&(gt|=Ht.CustomFormat),Ot!==ts&&(ft=!0,ts=Ot),It=f.attributes.outlineLevel,It!==void 0&&(gt|=Ht.OutlineLevel),It!==ss&&(ft=!0,ss=It),Vt=f.attributes.collapsed,Vt!==void 0&&(gt|=Ht.Collapsed),Vt!==is&&(ft=!0,is=Vt),gt!==0)if(Qe+1!==W||ft){const et=Dt!==void 0&&(Dt==="1"||Dt==="true");oe=Ot===void 0||Ot!=="1"&&Ot!=="true"||zt===void 0?null:zt,De={min:W,max:W,sz:et&&_t!==void 0?parseFloat(_t):-1,csz:et,h:Et!==void 0&&(Et==="1"||Et==="true"),s:oe===null?void 0:oe==="0"?0:parseInt(oe),l:It===void 0||It==="0"?0:parseInt(It),cl:Vt!==void 0&&(Vt==="1"||Vt==="true")},Ae.push(De)}else De.max=W;return Qe=W,void(ft=!1)}if(!os&&v==="sheetData"){os=!0;const D=r.cols,et=D?D.length:0;for(let O=0;!Ee&&O<et;O++)D[O].s&&(Ee=!0)}l?.onOpenTag(f)}},onCloseTag:f=>{if(se){let v=f.name;const rt=v.indexOf(":");if(rt!==-1&&(v=v.slice(rt+1)),At)if(v==="is"||v==="v"){const D=Y?.onEnd();D!==null&&e.addValue(W,tt,""+D)}else Y?.onCloseTag?.(f);return ge&&(ge=!1),void(v==="c"&&(se=null,At=!1))}if(xt)return xt=!1,void(Nt=null);l?.onCloseTag(f)},onText:f=>{if(f=f.trim(),ge){switch(pt=null,ie){case null:case"n":pt=parseFloat(f);break;case"b":pt=f==="1"||f==="true";break;case"s":pt=f;break;case"e":if(f==="#VALUE!"){const rt=se.attributes.vm;if(rt!==void 0){const D=Ps[parseInt(rt)-1];if(D&&D.isFormulaError){pt={t:p.M.Error,v:D.getCode()};break}}}const v=p.n.getBuiltInByLabel(f);v?pt={t:p.M.Error,v:v.getCode()}:(pt=f,g?.(`Unknown formula error '${f}' in cell ${p.so.cellToString({colIndex:tt,rowIndex:W})}`));break;case"str":case"inlineStr":At=!0}pt!==null&&e.addValue(W,tt,pt)}if(ee&&(ie==="e"&&(ee[1]=!0),Pe.push(ee),ee=null),Pt)if(qe===Pt)at=_e;else{if(at=Ge.get(Pt),!at){const v=[];fe=ze(f,W,tt,v),at=[fe,v,f],Ge.set(Pt,at)}qe=Pt,_e=at}if(qt){const v=[];fe=ze(f,W,tt,v),at=[fe,v,f]}if(at)return Ue.append(W,tt,at),at=null,qt=!1,Pt=null,void(te=null);At?Y?.onText(f):xt||l?.onText(f)}}})(J,M,u.createEventHandler(M,()=>{},z),z,e=>{P+=e,m?.(P)},ks,kt)})(it,(M,F=!1)=>ce(M,L,F)??null,xs,ke,0,(M,F)=>{F=F?`${F} (${L})`:L,a.push([M,F])},0,ye),Ft=us(L,le),bt=await(async(M,F=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:z}=await Promise.resolve().then(()=>require("./BrOEeOfcxZrMg4eQ.cjs"));globalThis.ReadableStream=z}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Jt=new TextDecoder("utf-8");let _=0;const Q=M instanceof Uint8Array?M:new Uint8Array(M);return new ReadableStream({pull(z){if(_>=Q.byteLength)return void z.close();const Kt=Q.subarray(_,Math.min(_+F,Q.byteLength)),kt=Jt.decode(Kt,{stream:_+F<Q.byteLength});z.enqueue(kt),_+=Kt.length}}).getReader()})(Ft);try{await Ve.parseStream(bt,yt,{xmlns:!1})}catch(M){throw console.warn(`Error parsing sheet: '${L}'`,M),new Error(`Error parsing sheet: '${L}'`,{cause:M})}const Xt=be(L,st);let Ct,We=new Map;if(Xt){const M="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let F;Xt.forEach((_,Q)=>{_.type===M&&(Ct=ce(Q,L,!1,st)?.comments,Ct&&Ct.forEach(z=>{We.set(z.id,z)}))});const Jt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Xt.forEach((_,Q)=>{_.type===Jt&&(F=ce(Q,L,!1,st))}),F||Ct){const _=Ct??[],Q=F?.comments;if(Q){const z=F?.authors,Kt=Q.length;for(let kt=0;kt<Kt;kt++){const u=Q[kt];if(!u)continue;let J=z&&u.authorId!==void 0?z[u.authorId]:u.authorId;if(J&&J.startsWith("tc=")&&(J=Ts(J.substring(3)),We.has(J)))continue;let $=null;J&&($=ue.get(J)),$||($=Fe.get(J)),$||($={id:p.te.uuidV4(),displayName:J},Fe.set($.displayName,$),ue.set($.id,$)),J=$?.id??null;const pe={id:p.te.uuidV4(),personId:J,ref:u.ref,done:!1,asNote:!0,content:u.content};_.push(pe)}}it.comments=_}}};$e.push(ot())}else jt=Z?us(L,le,it=>{const ot=j.add({buffer:it});return ot.addReference(ut),Re.add(ot),G.toResourceId(ot)},Tt):Ne(L,le,T,d,Tt);return jt},Tt={paramMap:ye,getRefs:be,getRef:ce,parsedRefs:Me,addPerson:w=>null},he=[];let xe=0;c.Strings&&(xe=parseInt(c.Strings.Unique??c.Strings.length??0));const bs=c.Strings??[];for(let w=0;w<xe;w++)he.push(bs[w]?.t??"");const He=new Map;let je=xe;const xs=w=>{const B=He.get(w);if(B!==void 0)return B;const Z=je;return He.set(w,je++),he.push(w),Z},ue=(Ut("richstructure",c,T,d,Tt),Ut("richdata",c,T,d,Tt),new Map),Fe=new Map,Xe=Ut("people",c,T,d);let St=null;if(Xe.size>0&&(St=Xe.entries().next()?.value?.[1]?.persons,St)){const w=St.length;for(let B=0;B<w;B++){const Z=St[B];ue.set(Z.id,Z),ue.set(Z.displayName,Z)}}const we=Ut("themes",c,T,d,Tt);let Be=null;if(we&&we.entries){let w=we.entries().next();w?.value?.[1]&&(Be=w.value[1])}const ws=new p.Wl(Be);let de=Ut("styles",c,T,d,Tt).entries().next()?.value[1];de&&(de=JSON.parse(p.oe(de)));const vs=Ut("workbooks",c,T,d,Tt);await Promise.all($e);const ve={...vs.entries().next().value[1],styles:de,theme:ws.toJSON()};he.length>0&&(ve.strings=he),St&&St.length>0&&(ve.people=St);const Ss={...o,resources:j,json:ve},Cs=new p.Uy(Ss);if(Re.forEach(w=>{w.deleteReference(ut)}),G.endPersist(),a.length){const w=h?.onWarning;if(w)for(const B of a){const[Z,st]=B;w(Z,st)}}return Cs}catch(c){let d="Unable to parse XLSX.";throw c instanceof p.ae&&(d="Unable to open XLSX. There are too many rows or columns."),new Error(d,{cause:c})}},writeBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./CbqD-HCikI1X_r9e.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const h=o.sheets[a],m=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,m,h.name);const P=h.sheet,b=i.getSheetAt(a),C=b.getUsedRange();if(C?(m["!ref"]=C.getA1(),C.forEach((A,y)=>{const R={t:"z"},K=y.getCell().getStyle();if(!K.isNormal()){let x=K.getNumberFormat();x!==p.Pe.Type.General&&(x===p.Pe.Type.ShortDate?x="m/d/yyyy":x===p.Pe.Type.MediumDate?x="d-mmm-yy":x===p.Pe.Type.LongDate?x="[$-x-sysdate]dddd, mmmm dd, yyyy":x===p.Pe.Type.ShortTime?x="h:mm":x===p.Pe.Type.MediumTime?x="h:mm AM/PM":x===p.Pe.Type.LongTime&&(x="h:mm:ss AM/PM"),R.z=x)}if(A!==null)switch(y.getType()){case p.M.Number:R.t="n",R.v=A;break;case p.M.String:R.t="s",R.v=A;break;case p.M.Boolean:R.t="b",R.v=A;break;case p.M.Error:R.t="e",R.v=A.toString();case p.M.RichData:}m[y.getA1()]=R})):m["!ref"]="A1:A1",P.merges?.length>0){const A=[];m["!merges"]=A;for(let y=0;y<P.merges.length;y++)A.push(s.utils.decode_range(P.merges[y]))}if(P.cols?.length>0){const A=[];m["!cols"]=A;const y=P.cols,R={width:P.defaultColSize??b.getColumnWidthAsFontUnit(b.getColumnHeaders().getDefaultSize())},K=y.length;for(let x=0;x<K;x++){const c=y[x];for(let T=A.length;T<=c.min-1;T++)A.push(R);const d={};c.sz!==void 0&&(d.width=c.sz),c.h!==void 0&&(d.hidden=c.h),c.l!==void 0&&(d.level=c.l);for(let T=c.min;T<=c.max;T++)A.push(d)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.H=Us,exports.a=i=>parseFloat(i)/1e3,exports.b=ys,exports.c=i=>i?p.te.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Le,exports.p=i=>parseFloat(i)/6e4,exports.r=Ts,exports.t=i=>i?p.te.roundAccurately(parseFloat(i)/12700,4):null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.21
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.21
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./BTb7NFxLYXig6VK-.cjs");let $=null,L=null;const le={compilerOptions:{target:"esnext"}},se=async()=>`
|
|
7
7
|
interface FirstTest {
|
|
8
8
|
isTrue?: boolean;
|
|
9
9
|
}
|
|
10
|
-
`,Y=new Map([["IReferenceRange","r"],["IRange","l"]]),Z=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),V=(T,S)=>{Array.from(S.keys()).forEach(z=>{const P=S.get(z);S.set(`${T}.${z}`,P)})},ce=new Map([["Scalar","*"],["FormulaError.Known",b.M.Error],["Date","Date"],["JSON","JSON"]]),de=new Map([]),U="SheetXL";V(U,Y),V(U,Z),V(U,de);const ue=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let R=null;async function pe(){if(R)return R;try{return await(await Promise.resolve().then(()=>require("./
|
|
10
|
+
`,Y=new Map([["IReferenceRange","r"],["IRange","l"]]),Z=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),V=(T,S)=>{Array.from(S.keys()).forEach(z=>{const P=S.get(z);S.set(`${T}.${z}`,P)})},ce=new Map([["Scalar","*"],["FormulaError.Known",b.M.Error],["Date","Date"],["JSON","JSON"]]),de=new Map([]),U="SheetXL";V(U,Y),V(U,Z),V(U,de);const ue=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let R=null;async function pe(){if(R)return R;try{return await(await Promise.resolve().then(()=>require("./C8bNFncZgt3sY1nV.cjs"))).initialize()}catch(T){throw R=null,T}finally{R=null}}exports.compileModule=async function(T){const S=T?.source??null;if(!S)return null;const z=(T.disableBundle||T.declarationsOnly)??!1,P=[se(),pe()],X=await Promise.all(P),ee=X[0],n=X[1];let C="",j=null;const O=[],te={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:n.ScriptTarget.ES2020},A="script",I=`${A}.ts`,_="lib.d.ts",H="global.d.ts",F={[I]:S,[_]:`
|
|
11
11
|
/**
|
|
12
12
|
* Represents the completion of an asynchronous operation
|
|
13
13
|
*/
|
|
@@ -21,7 +21,7 @@ interface Promise<T> {
|
|
|
21
21
|
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
22
22
|
}
|
|
23
23
|
`,[H]:ee},ne={getSourceFile:(e,o,y,r)=>n.createSourceFile(e,F[e],n.ScriptTarget.Latest,!0),fileExists:e=>F[e]!==void 0,readFile:e=>F[e],writeFile:(e,o)=>{F[e]=o},getCurrentDirectory:()=>"./",getCanonicalFileName:e=>e,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:e=>_,getNewLine:()=>`
|
|
24
|
-
`},q=n.createProgram([I,H],te,ne),D=q.getTypeChecker(),re=q.getSourceFile(I),W=q.emit();W.diagnostics.length>0&&console.warn(W.diagnostics),C=F[`${A}.js`];const N=(e,o,y,r)=>{if(e){if(e.kind===n.SyntaxKind.NumberKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.StringKeyword)o.scalar=b.M.String;else if(e.kind===n.SyntaxKind.BooleanKeyword)o.scalar=b.M.Boolean;else if(e.kind===n.SyntaxKind.UndefinedKeyword||e.kind===n.SyntaxKind.NullKeyword||e.kind===n.SyntaxKind.VoidKeyword){if(r)return void h(e,new Error(`'undefined' is not a valid type for input: '${e?.parent?.name?.escapedText}'.`));o.scalar=b.M.Null}else if(e.kind===n.SyntaxKind.BigIntKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.AnyKeyword)o.scalar=b.M.Null;else if(e.kind===n.SyntaxKind.ArrayType){const i=e.elementType;if(!i)return void h(e,new Error(`'Array' must be typed: '${e?.parent?.name?.escapedText}'.`));o.arrayDepth=(o.arrayDepth??0)+1,N(i,o,y,r)}else if(e.kind!==n.SyntaxKind.TupleType&&e.kind===n.SyntaxKind.TypeReference){const i=e.typeName?.getText?.()??null,f=Y.get(i);let m=!1;f&&(o.range=f,m=!0);const x=ce.get(i);if(x&&(o.scalar=x),x!==void 0&&(m=!0),r){const c=Z.get(i);if(c)return c}else{const c=ue.get(i);if(c){const l={...o,...c()};let t=0;if(l.async&&t++,l.stream&&t++,t>1)return void h(e,new Error(`'${i}' cannot have multiple modifiers: '${e?.parent?.name?.escapedText}'.`));o=l,m=!0}}if(!m)return void h("node",new Error(`'${i}' is not a valid type: '${e?.parent?.name?.escapedText}'.`));const p=e.typeArguments;if(p){if(p.length!==1)return void h(e,new Error(`'${i}' must be typed with exactly 1 type: '${e?.parent?.name?.escapedText}'.`));N(p[0],o,y,r)}}}else h(e,new Error(`Type is not defined for '${o?.name??"return"}'.`))},k=[],h=(e,o)=>{k.push(o)};if(n.forEachChild(re,e=>{if(y=e,(n.getCombinedModifierFlags(y)&n.ModifierFlags.Export)!==0&&n.isFunctionDeclaration(e)){const r={},i={parameters:{}},f=e?.name?.getText();try{r.name=f;const m=D.getSymbolAtLocation(e.name).getDocumentationComment(D);if(m&&m.length>0&&m[0].text){let l=m[0].text;l=l.replace(/[\r\n]+/g,"\\n").trim(),i.summary=l}const x={};N(e.type,x,r,!1),r.returnType=x;const p={};o=e,(n.getCombinedModifierFlags(o)&n.ModifierFlags.Default)!==0&&(p.default=!0,j=f),Object.keys(p).length>0&&(r.behavior=p),r.parameters=[];const c=new Map;for(let l=0;l<e.parameters.length;l++){const t=e.parameters[l],s={};s.name=t.name?.getText();const E=N(t.type,s,r,!0);if(E){if(r.parameters.length!==0){const v=e?.parent,u=v?.name?.getText();return void h(e,new Error(`'${r.name}' contexts must be the first parameter: '${u}'.`))}r.context=E;continue}let g;if((t.initializer!==void 0&&t.initializer!==null||t.questionToken!==void 0&&t.questionToken!==null)&&(s.optional=!0,t.initializer))try{g=t.initializer.kind===n.SyntaxKind.StringLiteral?t.initializer.text:t.initializer.kind===n.SyntaxKind.NumericLiteral?parseFloat(t.initializer.text):t.initializer.kind===n.SyntaxKind.TrueKeyword||t.initializer.kind===n.SyntaxKind.FalseKeyword?t.initializer.kind===n.SyntaxKind.TrueKeyword:t.initializer.kind===n.SyntaxKind.NullKeyword?null:t.initializer.kind===n.SyntaxKind.ObjectLiteralExpression||t.initializer.kind===n.SyntaxKind.ArrayLiteralExpression?t.initializer.getText():t.initializer.getText?.()}catch(v){console.warn(`Couldn't extract default value for parameter '${s.name}'`,v)}t.dotDotDotToken&&(s.rest=!0),r.parameters.push(s);const d={description:""};i.parameters[s.name]=d;const a=D.getSymbolAtLocation(t.name).getDocumentationComment(D);a&&a.length>0&&a[0].text&&(d.description=a[0].text),g!==void 0&&(d.defaultValue=g),c.set(s.name,s)}if(e.jsDoc&&e.jsDoc.length>0){const l=e.jsDoc;for(let t=0;t<l.length;t++){const s=l[t]?.tags;if(s)for(let E=0;E<s.length;E++){const g=s[E];let d=g?.tagName?.text;if(!d)continue;d=d.toLowerCase();let a=g.comment;const v=d==="hidden";if((typeof a=="string"||v)&&(typeof a=="string"&&(a=a.replace(/[\r\n]+/g,"\\n").trim()),v||!a||(a=a.split(/\\n/)[0],a&&a.length!==0))){if(a&&typeof a=="string"){const u=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let w,K=a,M=[];for(;(w=u.exec(a))!==null;){const[B,J,oe,Q]=w,ae=[oe.trim()];Q&&ae.push(Q.trim())}a=K,M.length>0&&d==="see"&&(i.links||(i.links=[]),i.links.push(...M))}if(d==="name"){const u=a;u!==f&&(i.name=u)}else if(d!=="description"){if(d==="summary"){const u=a;u&&(i.summary=u)}else if(d==="param"){const u=g.name?.text,w=c.get(u);if(!w){k.push(new Error(`Parameter '${u}' not found in function '${f}'.`));continue}if(g.typeExpression&&g.typeExpression.type)try{const K=g.typeExpression.type;if(K.kind===n.SyntaxKind.UnionType){const M=[];w.enums=M,K.types.forEach(B=>{if(B.kind===n.SyntaxKind.LiteralType){const J=B.literal.text;J&&M.push(J)}})}}catch(K){console.warn("Error parsing JSDoc type expression:",K)}}else if(d==="returns"||d==="return")r.returnType.description=a;else if(d==="category")i.category=a;else if(d==="hidden"){let u=!0;const w=a?.toLowerCase();w==="false"?u=!1:w!=="true"&&(u=a),u!==!1&&(i.hidden=u??!0)}}}}}}Object.keys(r.returnType).length===0&&delete r.returnType,O.push([r,i])}catch(m){h(e,new Error(`'${f}': ${m.message}`))}}var o,y}),k.length>0)throw console.warn(k),new Error("There were compilation errors.",{cause:k});if(O.length===0)throw new Error("No exported functions.");const ie=`${b.te.uuidV4()}-script`;try{z||k.length!==0||(C=await(async function(e,o,y="/script.js",r="__SHEETXL"){try{const i=await(async function(){if($)return $;if(L){if(await L,!$)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return $}let c,l;L=new Promise((t,s)=>{c=t,l=s});try{const{initialize:t}=await Promise.resolve().then(()=>require("./
|
|
24
|
+
`},q=n.createProgram([I,H],te,ne),D=q.getTypeChecker(),re=q.getSourceFile(I),W=q.emit();W.diagnostics.length>0&&console.warn(W.diagnostics),C=F[`${A}.js`];const N=(e,o,y,r)=>{if(e){if(e.kind===n.SyntaxKind.NumberKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.StringKeyword)o.scalar=b.M.String;else if(e.kind===n.SyntaxKind.BooleanKeyword)o.scalar=b.M.Boolean;else if(e.kind===n.SyntaxKind.UndefinedKeyword||e.kind===n.SyntaxKind.NullKeyword||e.kind===n.SyntaxKind.VoidKeyword){if(r)return void h(e,new Error(`'undefined' is not a valid type for input: '${e?.parent?.name?.escapedText}'.`));o.scalar=b.M.Null}else if(e.kind===n.SyntaxKind.BigIntKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.AnyKeyword)o.scalar=b.M.Null;else if(e.kind===n.SyntaxKind.ArrayType){const i=e.elementType;if(!i)return void h(e,new Error(`'Array' must be typed: '${e?.parent?.name?.escapedText}'.`));o.arrayDepth=(o.arrayDepth??0)+1,N(i,o,y,r)}else if(e.kind!==n.SyntaxKind.TupleType&&e.kind===n.SyntaxKind.TypeReference){const i=e.typeName?.getText?.()??null,f=Y.get(i);let m=!1;f&&(o.range=f,m=!0);const x=ce.get(i);if(x&&(o.scalar=x),x!==void 0&&(m=!0),r){const c=Z.get(i);if(c)return c}else{const c=ue.get(i);if(c){const l={...o,...c()};let t=0;if(l.async&&t++,l.stream&&t++,t>1)return void h(e,new Error(`'${i}' cannot have multiple modifiers: '${e?.parent?.name?.escapedText}'.`));o=l,m=!0}}if(!m)return void h("node",new Error(`'${i}' is not a valid type: '${e?.parent?.name?.escapedText}'.`));const p=e.typeArguments;if(p){if(p.length!==1)return void h(e,new Error(`'${i}' must be typed with exactly 1 type: '${e?.parent?.name?.escapedText}'.`));N(p[0],o,y,r)}}}else h(e,new Error(`Type is not defined for '${o?.name??"return"}'.`))},k=[],h=(e,o)=>{k.push(o)};if(n.forEachChild(re,e=>{if(y=e,(n.getCombinedModifierFlags(y)&n.ModifierFlags.Export)!==0&&n.isFunctionDeclaration(e)){const r={},i={parameters:{}},f=e?.name?.getText();try{r.name=f;const m=D.getSymbolAtLocation(e.name).getDocumentationComment(D);if(m&&m.length>0&&m[0].text){let l=m[0].text;l=l.replace(/[\r\n]+/g,"\\n").trim(),i.summary=l}const x={};N(e.type,x,r,!1),r.returnType=x;const p={};o=e,(n.getCombinedModifierFlags(o)&n.ModifierFlags.Default)!==0&&(p.default=!0,j=f),Object.keys(p).length>0&&(r.behavior=p),r.parameters=[];const c=new Map;for(let l=0;l<e.parameters.length;l++){const t=e.parameters[l],s={};s.name=t.name?.getText();const E=N(t.type,s,r,!0);if(E){if(r.parameters.length!==0){const v=e?.parent,u=v?.name?.getText();return void h(e,new Error(`'${r.name}' contexts must be the first parameter: '${u}'.`))}r.context=E;continue}let g;if((t.initializer!==void 0&&t.initializer!==null||t.questionToken!==void 0&&t.questionToken!==null)&&(s.optional=!0,t.initializer))try{g=t.initializer.kind===n.SyntaxKind.StringLiteral?t.initializer.text:t.initializer.kind===n.SyntaxKind.NumericLiteral?parseFloat(t.initializer.text):t.initializer.kind===n.SyntaxKind.TrueKeyword||t.initializer.kind===n.SyntaxKind.FalseKeyword?t.initializer.kind===n.SyntaxKind.TrueKeyword:t.initializer.kind===n.SyntaxKind.NullKeyword?null:t.initializer.kind===n.SyntaxKind.ObjectLiteralExpression||t.initializer.kind===n.SyntaxKind.ArrayLiteralExpression?t.initializer.getText():t.initializer.getText?.()}catch(v){console.warn(`Couldn't extract default value for parameter '${s.name}'`,v)}t.dotDotDotToken&&(s.rest=!0),r.parameters.push(s);const d={description:""};i.parameters[s.name]=d;const a=D.getSymbolAtLocation(t.name).getDocumentationComment(D);a&&a.length>0&&a[0].text&&(d.description=a[0].text),g!==void 0&&(d.defaultValue=g),c.set(s.name,s)}if(e.jsDoc&&e.jsDoc.length>0){const l=e.jsDoc;for(let t=0;t<l.length;t++){const s=l[t]?.tags;if(s)for(let E=0;E<s.length;E++){const g=s[E];let d=g?.tagName?.text;if(!d)continue;d=d.toLowerCase();let a=g.comment;const v=d==="hidden";if((typeof a=="string"||v)&&(typeof a=="string"&&(a=a.replace(/[\r\n]+/g,"\\n").trim()),v||!a||(a=a.split(/\\n/)[0],a&&a.length!==0))){if(a&&typeof a=="string"){const u=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let w,K=a,M=[];for(;(w=u.exec(a))!==null;){const[B,J,oe,Q]=w,ae=[oe.trim()];Q&&ae.push(Q.trim())}a=K,M.length>0&&d==="see"&&(i.links||(i.links=[]),i.links.push(...M))}if(d==="name"){const u=a;u!==f&&(i.name=u)}else if(d!=="description"){if(d==="summary"){const u=a;u&&(i.summary=u)}else if(d==="param"){const u=g.name?.text,w=c.get(u);if(!w){k.push(new Error(`Parameter '${u}' not found in function '${f}'.`));continue}if(g.typeExpression&&g.typeExpression.type)try{const K=g.typeExpression.type;if(K.kind===n.SyntaxKind.UnionType){const M=[];w.enums=M,K.types.forEach(B=>{if(B.kind===n.SyntaxKind.LiteralType){const J=B.literal.text;J&&M.push(J)}})}}catch(K){console.warn("Error parsing JSDoc type expression:",K)}}else if(d==="returns"||d==="return")r.returnType.description=a;else if(d==="category")i.category=a;else if(d==="hidden"){let u=!0;const w=a?.toLowerCase();w==="false"?u=!1:w!=="true"&&(u=a),u!==!1&&(i.hidden=u??!0)}}}}}}Object.keys(r.returnType).length===0&&delete r.returnType,O.push([r,i])}catch(m){h(e,new Error(`'${f}': ${m.message}`))}}var o,y}),k.length>0)throw console.warn(k),new Error("There were compilation errors.",{cause:k});if(O.length===0)throw new Error("No exported functions.");const ie=`${b.te.uuidV4()}-script`;try{z||k.length!==0||(C=await(async function(e,o,y="/script.js",r="__SHEETXL"){try{const i=await(async function(){if($)return $;if(L){if(await L,!$)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return $}let c,l;L=new Promise((t,s)=>{c=t,l=s});try{const{initialize:t}=await Promise.resolve().then(()=>require("./AcaOLiUNlyIuhJJ6.cjs"));return $=await t(),c(),$}catch(t){throw console.error("Failed to import or initialize esbuild:",t),L=null,l(t),t}})(),f="@sheetxl/primitives",m=`
|
|
25
25
|
export const FormulaContext = globalThis.${r}?.FormulaContext;
|
|
26
26
|
export const ScalarType = globalThis.${r}?.ScalarType;
|
|
27
27
|
export const Observable = globalThis.${r}?.Observable;
|