@sheetxl/studio-vanilla 0.7.17 → 0.7.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{-yNm4nZGW6oBCNWD.cjs → -OpJd7DU9PwW2RXc.cjs} +1 -1
- package/browser/cjs/{B9qgit8PjHJuyYOp.cjs → 7n-hEbUIYqSBaDat.cjs} +1 -1
- package/browser/cjs/{BxEuVP9ucIWFkTqo.cjs → B1ub75RSZ_fZY-5u.cjs} +2 -2
- package/browser/cjs/{CcMGshOE5d1m-1f8.cjs → B5snYB_hoP7VcqzZ.cjs} +1 -1
- package/browser/cjs/{C61MOdhGMszg1C2U.cjs → B8wDYqG5sHRdIDsj.cjs} +2 -2
- package/browser/cjs/BLw2ZetGgxM_UPbO.cjs +327 -0
- package/browser/cjs/{B4Ljh1SX5IaGkIGX.cjs → BYdPezSa2xYqjORK.cjs} +1 -1
- package/browser/cjs/{D0_IINTrfXlXfxER.cjs → BdnAMpQtFN5ugYFZ.cjs} +1 -1
- package/browser/cjs/{CYEVzTL4XEeM2iSw.cjs → BduETbtBhV0XCmH1.cjs} +1 -1
- package/browser/cjs/{BUoCeZCjrMUTZVmg.cjs → Bs9bhowg6reA3ZiG.cjs} +1 -1
- package/browser/cjs/{G-QjJ2QtlB1ifjtA.cjs → BwVM8--8HyHn_87f.cjs} +1 -1
- package/browser/cjs/{D63UluXUHli4tPea.cjs → Bx1mLfmB0irjjQ59.cjs} +1 -1
- package/browser/cjs/C1iuoZpBS0VgPiZZ.cjs +6 -0
- package/browser/cjs/{oHQTaFi48ojf1BCO.cjs → C4EY3whsmpcB8TfM.cjs} +4 -4
- package/browser/cjs/{Vrfwy0e6SweDE7FV.cjs → C5oHWS2wsHSxukpC.cjs} +2 -2
- package/browser/cjs/{DKY6Y9cdzHn7BZ6_.cjs → C6Dt4rQL6QpfZXQm.cjs} +1 -1
- package/browser/cjs/{CJOyjFElORFuUIdv.cjs → CG9M85LJg0wJNz2k.cjs} +2 -2
- package/browser/cjs/{uSvdH1mCWlg3dNFu.cjs → CHyM26fHmnShQyOK.cjs} +1 -1
- package/browser/cjs/{D6_ZKruhsxbB1XZ1.cjs → CLHrBw96SEaWqdwz.cjs} +2 -2
- package/browser/cjs/{BqSFxp6kFYBlkmS3.cjs → CN0u80hTqSY_HBl8.cjs} +2 -2
- package/browser/cjs/{nZp9cR-GUPKzhRZy.cjs → CTtmVCW39eSkvdm2.cjs} +1 -1
- package/browser/cjs/{aEUt2dyQJHwNzcZd.cjs → CY6AU5GgBH3FEf6M.cjs} +1 -1
- package/browser/cjs/{DYZCCgXdxrwFqk6H.cjs → Can0-bXoL2OhE52t.cjs} +2 -2
- package/browser/cjs/{BKy2QI_dqY2u6-VR.cjs → Cn1R71AuCiyTgctH.cjs} +4 -4
- package/browser/cjs/{C_dMA8qMOlFifojV.cjs → CnFV-rdV2OV4NoPf.cjs} +1 -1
- package/browser/cjs/{BXoogJgfvlBdGjcy.cjs → CqAC3qdRSzuNldEf.cjs} +1 -1
- package/browser/cjs/{BDI2X-uxO9RqgVcA.cjs → Cuccw5_D6orsZ6ig.cjs} +1 -1
- package/browser/cjs/{pNhPF__fvekXJqRB.cjs → D1RCqtdKH57FVTnr.cjs} +1 -1
- package/browser/cjs/{CqQ-Ghs12y1q6QxY.cjs → D4bhF8b7ITBdKtXE.cjs} +1 -1
- package/browser/cjs/{CfsUAQKIJfZVfpqY.cjs → D5Io7AkIarxaLz0o.cjs} +2 -2
- package/browser/cjs/{QkU8n6EvDcxQgLhb.cjs → D6NIMEmt1k6ha9ze.cjs} +3 -3
- package/browser/cjs/{jlt5U7AG4nC1c7oH.cjs → D8obnqJFN0oBhWN5.cjs} +1 -1
- package/browser/cjs/{BE6S5mD2X6XYhB73.cjs → DKdGkW0QG81Jiw7t.cjs} +1 -1
- package/browser/cjs/{mvvx-Old8nlHmKS_.cjs → DNZMJdlbY4rc9obW.cjs} +1 -1
- package/browser/cjs/DRzXA3ngmzsTykhQ.cjs +12 -0
- package/browser/cjs/{uPv2EqsX1ASXnEBq.cjs → DSTkG5JgAPAw7yxZ.cjs} +240 -236
- package/browser/cjs/{bbKVKsorljm1bnzm.cjs → DSb153-6mEozv0oi.cjs} +1 -1
- package/browser/cjs/{DlLE_Nt_2RfEsi1R.cjs → DXA9LmHL0Fevkkxq.cjs} +1 -1
- package/browser/cjs/{CrFB5S_hHBLEOhWe.cjs → DXfnItDfztAnEKP4.cjs} +1 -1
- package/browser/cjs/{DfgitTR6RekXoIxp.cjs → D_j-ddwN_vyKl1gw.cjs} +2 -2
- package/browser/cjs/{1tRhHl303E8Hkn92.cjs → Df8pXCfA82TxY-iz.cjs} +2 -2
- package/browser/cjs/{pWvj2l2ScVN9bGc8.cjs → Di1G1HIM3occAPQO.cjs} +1 -1
- package/browser/cjs/{B3W1PqoqSxsvCJnt.cjs → Dl-bgq_10atIBtKj.cjs} +2 -2
- package/browser/cjs/{BDrmEZxdgPIWjAqS.cjs → Dri8w0JSm-asfiuG.cjs} +1 -1
- package/browser/cjs/{G8sgs7T7l4lEGGAK.cjs → DzPXt6evVjtMfZSZ.cjs} +2 -2
- package/browser/cjs/{Cs5r68wlb5QQB-n6.cjs → QBOfAfp49JVJgEGM.cjs} +3 -3
- package/browser/cjs/{BW6iAFSygqnaIrpk.cjs → R1ROURFib9YPd6Uz.cjs} +1 -1
- package/browser/cjs/{7wPFcItyHeByUtaC.cjs → SQbzOKRenIlNvJN4.cjs} +1 -1
- package/browser/cjs/{moxrtL1Unv4EfhfP.cjs → UXySlnm6n5GkKyYX.cjs} +1 -1
- package/browser/cjs/{C57_RaSyTwNsLDLn.cjs → V1ZT2I2d_Vhy7JbL.cjs} +6 -6
- package/browser/cjs/{CHrOzHV0mkXxphBw.cjs → W2ON7E4F225_2o0x.cjs} +2 -2
- package/browser/cjs/{Cz4OiBFPd7Yw_Acp.cjs → XseOGnoB6WRWeL1h.cjs} +4 -4
- package/browser/cjs/{DyJfDZ8fsBLfMsm2.cjs → ee8TVXh-uuz06Qxj.cjs} +4 -4
- package/browser/cjs/{D6Eb2t4J5DXL45oX.cjs → fVwk2Ps0ia7OOeoN.cjs} +2 -2
- package/browser/cjs/{DtNVqHp3Dnl0KJ8v.cjs → gYnOAekaIzfUbBHK.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{k5XY8CCJ-UHv--Zx.cjs → wjiUE6QSbScJqQyj.cjs} +2 -2
- package/browser/cjs/{DAZYE-uQx0b5Dc0g.cjs → wuYSiUzDxFuv7qe0.cjs} +1 -1
- package/browser/cjs/{Df550p_OyCcGYwdV.cjs → yQr9TT0cwJS4lefS.cjs} +1 -1
- package/{cdn/assets/CSreUySDfbsDpQe5.js → browser/esm/B2ScwzcRdliNbCVA.mjs} +1 -1
- package/browser/esm/{B33Rpu-kjzxmYcoc.mjs → BGLYo-oLZFEA6mNA.mjs} +3 -3
- package/browser/esm/{CDMMTs9q-mk9qhOn.mjs → BIUCcziaV7qfwVED.mjs} +1 -1
- package/browser/esm/{DhfmpKK0j4zwjrFw.mjs → BKCyeEHaOhs9q3J4.mjs} +2 -2
- package/browser/esm/{Rvb4UIwb_H9QhRrb.mjs → BKw_Lc1PPk4HqFoh.mjs} +1 -1
- package/browser/esm/{1d7Aft4vQaznJBBw.mjs → BZQ3CWGY87pdmaRe.mjs} +2 -2
- package/browser/esm/{B1644qru3veN3T5N.mjs → BbZKD2SbKfuELXbf.mjs} +1 -1
- package/{cdn/assets/D8tj5ehHlhzfheNn.js → browser/esm/BbhvW0gf1ykgX4eB.mjs} +1 -1
- package/browser/esm/{CeUu1iTV_1cWEzfR.mjs → Bhb7bGNskbvjYv4x.mjs} +1 -1
- package/browser/esm/{C5ufMjxY0KI2t1Gq.mjs → BinO4Kv0E_DXOGPS.mjs} +8 -8
- package/{cdn/assets/B852x-CAFndzl1Pn.js → browser/esm/BmNWc7YPPdByxJEr.mjs} +1 -1
- package/browser/esm/{5jfaCJ2A21vE6L3j.mjs → BmsaLC02SxtzRA6c.mjs} +1 -1
- package/browser/esm/{hlZWtfgr0-z0tiwM.mjs → Bodzo07Ns86Hes_6.mjs} +1 -1
- package/{cdn/assets/DOVHwS9l7XB0D112.js → browser/esm/BqvYn8MDuN8Hp0fL.mjs} +1 -1
- package/{cdn/assets/DmEn4HUVOzbZjsSk.js → browser/esm/Bv7HyDfRLhfRflgD.mjs} +1 -1
- package/{cdn/assets/D2erHtC_3enJU853.js → browser/esm/BvYFaSeWrHb-Mjlm.mjs} +1 -1
- package/browser/esm/ByHWUvEO_3ZE9jtG.mjs +48 -0
- package/browser/esm/{YIbtKjVM1nOvMZvP.mjs → BzVVfsPrbQ5A5-rD.mjs} +1 -1
- package/{cdn/assets/DAnK8hVf7ME_llxx.js → browser/esm/C-XgZSeS4DjP7Oxm.mjs} +1 -1
- package/{cdn/assets/DdeSfSM3gLzpMLBO.js → browser/esm/C86ahDGlKcgHEpFW.mjs} +2 -2
- package/browser/esm/{C0mYBVeD88eyNteC.mjs → C8anKI55xb9J8r8A.mjs} +4 -4
- package/browser/esm/{DDgjJDjkrt3iMr3H.mjs → C9k8b2H-QgOWRv-q.mjs} +9 -9
- package/browser/esm/{D9UwsCo-ppUuUVR_.mjs → CLUXUXEy55lTS1bq.mjs} +5 -5
- package/browser/esm/{eEBVB8oAzikfUmDV.mjs → CY3hoDW-As3R3n1r.mjs} +240 -236
- package/browser/esm/{CSqQov357rbKyWqy.mjs → CZ4HcH8NIJ2O_YcC.mjs} +1 -1
- package/browser/esm/{DGVQdAEWtlwON-QH.mjs → C_qKrewe7FG7duUk.mjs} +2 -2
- package/{cdn/assets/Bvicutnw4ljOuDH0.js → browser/esm/Caq_VV3EDVXWQF_F.mjs} +1 -1
- package/{cdn/assets/CjYCxM1grAhz8MF-.js → browser/esm/CbkdO3Vq1_DiUtf_.mjs} +1 -1
- package/{cdn/assets/CbujxmVSzwTt_RHu.js → browser/esm/Cexsa6YRMcgeElgD.mjs} +1 -1
- package/browser/esm/{C8tIYj16xuImSN-9.mjs → Ch6b5kcaGBAwLHt3.mjs} +2 -2
- package/browser/esm/{BcG6cGAs6SCKT2oq.mjs → CiewBvPqbClRmfxs.mjs} +1 -1
- package/browser/esm/{C4heXWzPixq--HbZ.mjs → Cnp-iamct8cXZ7lZ.mjs} +2 -2
- package/browser/esm/{DjdhT3BrIwhOORnu.mjs → CwqfLo1J_X1HUTve.mjs} +1 -1
- package/browser/esm/{Cb704H2clLYJVxU2.mjs → D8baOjVCEcXTKDdp.mjs} +1 -1
- package/browser/esm/{CfXL0PI_uELS5881.mjs → DAknLepGdEeiMXM_.mjs} +8 -8
- package/browser/esm/{DWSx2x2G37z5aM1G.mjs → DNc01DUxUBvND9NP.mjs} +3 -3
- package/{cdn/assets/KTk6BV5FEQiYRj_u.js → browser/esm/DPcPFiKDxxoV8w3C.mjs} +1 -1
- package/browser/esm/{eIbYx1yYfg3hhocM.mjs → DVlq_yFzmYm585l7.mjs} +3 -3
- package/browser/esm/{B_mQxm5atVJx4CYN.mjs → DVsrmHN0j_4KEJRa.mjs} +9 -9
- package/browser/esm/{hajtbAiDiQCKDskz.mjs → DcFBTiZVyhQ9ZiLT.mjs} +1 -1
- package/browser/esm/{welsuZV-uT5GqtOR.mjs → Df41Rnk9w8CBQXCS.mjs} +9 -9
- package/browser/esm/{BDkW7UhKjVpgiLQm.mjs → DhG6grvVV7MmFPRO.mjs} +2 -2
- package/browser/esm/{DYQxeskdOPHye_nf.mjs → DmU2nyEI-_Eb30r-.mjs} +7 -7
- package/{cdn/assets/BEzbLdDUgWgWjutq.js → browser/esm/DnNERP55hzjrrhc3.mjs} +1 -1
- package/browser/esm/{9YCLdoqEoVsTaLW1.mjs → DnqXietOybYaqPPj.mjs} +34 -34
- package/browser/esm/{BIXlt1qCRcCQqrsR.mjs → DsIgs7p3pcuTKsPz.mjs} +1 -1
- package/browser/esm/{Wv9k21i-bgCAr9Jt.mjs → Dycp02TMRmFQr07V.mjs} +33 -33
- package/browser/esm/{2nmuU0mX4kghWbEO.mjs → DzqX3Zoc7atMeUcF.mjs} +2 -2
- package/{cdn/assets/CHSNxi2e3P1I018K.js → browser/esm/FW0_jEmcY2wBldQu.mjs} +1 -1
- package/browser/esm/{Bp_7px9kGtrnUsTb.mjs → GncVQG4JILLz59go.mjs} +1 -1
- package/{cdn/assets/H7eht2HhDaexkvUx.js → browser/esm/MDcGjO44t1NA66gt.mjs} +1 -1
- package/browser/esm/{BXZXRiaWfhtpKMVk.mjs → X7fbzrIpDUvf-HCz.mjs} +1 -1
- package/browser/esm/{BeUphXMXj6wR4ELr.mjs → XZBEquFAZ2eofgDN.mjs} +2 -2
- package/browser/esm/{-Lv1TANUNicVCyny.mjs → _tWm1fSNAqYw-kRs.mjs} +2 -2
- package/browser/esm/{BtR8V5RjbS9dJ33d.mjs → dMToZzUgh7thVzKN.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{DlsPnPOwcNdbXstf.mjs → u_A963nMPgCdHQxv.mjs} +14897 -14861
- package/{cdn/assets/BPx7oySRllCMbzuD.js → browser/esm/xEqptKjElxl2-Cxa.mjs} +1 -1
- package/browser/esm/{DaJvsWdDzhPO_KIB.mjs → xLjEMvbAB3LCzAoa.mjs} +1 -1
- package/cdn/assets/{CxCKTE1Jf5koh9hk.js → 5z0OEWKKz6tvGEvM.js} +4 -4
- package/{browser/esm/CSreUySDfbsDpQe5.mjs → cdn/assets/B2ScwzcRdliNbCVA.js} +1 -1
- package/cdn/assets/{Dn_feNW7bNmSup19.js → B3SLbUgWxigdYSoW.js} +15121 -15085
- package/cdn/assets/B7OSw0wE9IMMRUtT.js +48 -0
- package/cdn/assets/{b_km3ns3cOyV9TWu.js → B8pTVRJyYXx1EY-x.js} +3 -3
- package/cdn/assets/{CDMMTs9q-mk9qhOn.js → BIUCcziaV7qfwVED.js} +1 -1
- package/cdn/assets/{Rvb4UIwb_H9QhRrb.js → BKw_Lc1PPk4HqFoh.js} +1 -1
- package/cdn/assets/{B1644qru3veN3T5N.js → BbZKD2SbKfuELXbf.js} +1 -1
- package/{browser/esm/D8tj5ehHlhzfheNn.mjs → cdn/assets/BbhvW0gf1ykgX4eB.js} +1 -1
- package/cdn/assets/{DpzQd_HDbcmhJkli.js → Bdw_crsm0e74qfp7.js} +3 -3
- package/cdn/assets/{CNqQdQQbMwsHaClt.js → Bdx3ruItp2_baXZU.js} +1 -1
- package/cdn/assets/{DBDZCz98Rpa3_dGk.js → BePb6bRlNmkX2lgo.js} +9 -9
- package/cdn/assets/{CeUu1iTV_1cWEzfR.js → Bhb7bGNskbvjYv4x.js} +1 -1
- package/cdn/assets/{oxOOv9uPE2sfO6Y5.js → Bi3wiCDiTpk2viZa.js} +2 -2
- package/{browser/esm/B852x-CAFndzl1Pn.mjs → cdn/assets/BmNWc7YPPdByxJEr.js} +1 -1
- package/cdn/assets/{5jfaCJ2A21vE6L3j.js → BmsaLC02SxtzRA6c.js} +1 -1
- package/cdn/assets/{hlZWtfgr0-z0tiwM.js → Bodzo07Ns86Hes_6.js} +1 -1
- package/{browser/esm/DOVHwS9l7XB0D112.mjs → cdn/assets/BqvYn8MDuN8Hp0fL.js} +1 -1
- package/{browser/esm/DmEn4HUVOzbZjsSk.mjs → cdn/assets/Bv7HyDfRLhfRflgD.js} +1 -1
- package/{browser/esm/D2erHtC_3enJU853.mjs → cdn/assets/BvYFaSeWrHb-Mjlm.js} +1 -1
- package/cdn/assets/{YIbtKjVM1nOvMZvP.js → BzVVfsPrbQ5A5-rD.js} +1 -1
- package/{browser/esm/DAnK8hVf7ME_llxx.mjs → cdn/assets/C-XgZSeS4DjP7Oxm.js} +1 -1
- package/cdn/assets/{BcZyRqrwdUSmE_J0.js → C5pGH1Zmf62_j66q.js} +2 -2
- package/cdn/assets/{DJIupEi1yOa-zI6F.js → C8cBWaKbtQGw_TPE.js} +16 -16
- package/cdn/assets/{ClZu4lGWP2KkCF_D.js → C915DjG7OX8UAz6K.js} +10 -10
- package/cdn/assets/{D4uvuiZcnrixFxe7.js → CGCRF99I-jhOR7jw.js} +2 -2
- package/cdn/assets/{D7GOwlSXDP3fd_yH.js → CRDwiGWdCGjY3VTV.js} +4 -4
- package/cdn/assets/{CSqQov357rbKyWqy.js → CZ4HcH8NIJ2O_YcC.js} +1 -1
- package/{browser/esm/Bvicutnw4ljOuDH0.mjs → cdn/assets/Caq_VV3EDVXWQF_F.js} +1 -1
- package/{browser/esm/CjYCxM1grAhz8MF-.mjs → cdn/assets/CbkdO3Vq1_DiUtf_.js} +1 -1
- package/cdn/assets/{CJ9LF_V3xRMb0gUd.js → Cdu_dwo8cFQhHV82.js} +2 -2
- package/{browser/esm/CbujxmVSzwTt_RHu.mjs → cdn/assets/Cexsa6YRMcgeElgD.js} +1 -1
- package/cdn/assets/{BtUkR7Puu4tMW6y6.js → CiaCj4_YFGlEMTeo.js} +7 -7
- package/cdn/assets/{BcG6cGAs6SCKT2oq.js → CiewBvPqbClRmfxs.js} +1 -1
- package/cdn/assets/{DMfsGc2IpANuqJQY.js → CrMb7WfYaFkTtaRw.js} +15 -15
- package/cdn/assets/{DjdhT3BrIwhOORnu.js → CwqfLo1J_X1HUTve.js} +1 -1
- package/cdn/assets/{D60NeKIQnzvT49Vu.js → CwrlE4QCHEvkaHPN.js} +15 -15
- package/cdn/assets/{C4Empjom6ZoRDo_o.js → D0elTwWvY3NqsEWl.js} +13 -13
- package/cdn/assets/{DZ5n_bHdPFfYqHOM.js → D1a6QI4-ES868dRF.js} +3 -3
- package/cdn/assets/{Cb704H2clLYJVxU2.js → D8baOjVCEcXTKDdp.js} +1 -1
- package/cdn/assets/{ByNVXcfFmojElIOz.js → DLWXLdr28bw1c6dd.js} +3 -3
- package/cdn/assets/{DW0DCdCA-Yz3t9mF.js → DPa_VfaBIXFPlwou.js} +240 -236
- package/{browser/esm/KTk6BV5FEQiYRj_u.mjs → cdn/assets/DPcPFiKDxxoV8w3C.js} +1 -1
- package/cdn/assets/{CYiVmEg8u-gjkWca.js → D_2R7XUstAWLtAbl.js} +2 -2
- package/cdn/assets/{hajtbAiDiQCKDskz.js → DcFBTiZVyhQ9ZiLT.js} +1 -1
- package/{browser/esm/De8PFvFXtxsbABmk.mjs → cdn/assets/DejxS3n7p1yMS3_g.js} +12 -12
- package/{browser/esm/BEzbLdDUgWgWjutq.mjs → cdn/assets/DnNERP55hzjrrhc3.js} +1 -1
- package/cdn/assets/{D0Q4vwBbwR62z8I3.js → Do86HxDJX-Iup_sw.js} +7 -7
- package/cdn/assets/{BIXlt1qCRcCQqrsR.js → DsIgs7p3pcuTKsPz.js} +1 -1
- package/{browser/esm/CHSNxi2e3P1I018K.mjs → cdn/assets/FW0_jEmcY2wBldQu.js} +1 -1
- package/cdn/assets/{Bp_7px9kGtrnUsTb.js → GncVQG4JILLz59go.js} +1 -1
- package/cdn/assets/{BiDnChpXWqg41lNb.js → M3pI3KRDsMdkXj_F.js} +1 -1
- package/{browser/esm/H7eht2HhDaexkvUx.mjs → cdn/assets/MDcGjO44t1NA66gt.js} +1 -1
- package/cdn/assets/{DfkdRvK69HToiXoA.js → SuGjbhfbxh2gzCG3.js} +4 -4
- package/cdn/assets/{BXZXRiaWfhtpKMVk.js → X7fbzrIpDUvf-HCz.js} +1 -1
- package/cdn/assets/{Oz5TCDin3n5hZ6HZ.js → XQJOQMjS-LB9xq2g.js} +7 -7
- package/cdn/assets/{Ce0flzxPSvcAkcQn.js → _vwgpguI74mUFPFw.js} +18 -18
- package/cdn/assets/{DiNBHfEVqxyPFbPH.js → erJ-1t69v0aRHj0s.js} +2 -2
- package/cdn/assets/{BpSHQqYfSGgEOF_j.js → koz370oSs59gWnK7.js} +4 -4
- package/cdn/assets/{BqIxBsOQ_Mjm9Qfs.js → moLjHbBHh-yk5Dhm.js} +3 -3
- package/cdn/assets/{1sfmqGUYA777Xk9y.js → nyHNSxymtQj02wO4.js} +2 -2
- package/cdn/assets/{B0Nii2H246KHPawx.js → q8X5-ItRNzGVCCyk.js} +49 -49
- package/cdn/assets/{A7agAc3eTsrqP7Qr.js → rS78tt3VYVOHY4h-.js} +3 -3
- package/{browser/esm/BPx7oySRllCMbzuD.mjs → cdn/assets/xEqptKjElxl2-Cxa.js} +1 -1
- package/cdn/assets/{DaJvsWdDzhPO_KIB.js → xLjEMvbAB3LCzAoa.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/B6gPKX91bKPL030F.cjs +0 -12
- package/browser/cjs/Bly2wUGVevTrN1mC.cjs +0 -327
- package/browser/cjs/nD_bO9BhkQkZENX3.cjs +0 -6
- package/browser/esm/DHE7UmNpfh-p40tp.mjs +0 -48
- package/cdn/assets/CHWGRV2rkf_9btAc.js +0 -48
|
@@ -1,21 +1,21 @@
|
|
|
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.18
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let c=class{constructor(e){this._worker=null,this._nextId=1,this._pendingRequests=new Map,this._workerFactory=e}start(){if(typeof Worker>"u")throw new Error("Web Workers are not supported in this environment.");return this._worker||(this._worker=this._workerFactory(),this._worker.onmessage=e=>{const{id:n,result:t,error:r}=e.data,o=this._pendingRequests.get(n);if(o)if(this._pendingRequests.delete(n),r){const a=new Error(r.message);a.stack=r.stack,r.cause&&(a.cause=r.cause),o.reject(a)}else o.resolve(t)},this._worker.onerror=e=>{console.error("Worker error:",e),this._pendingRequests.forEach(n=>{n.reject(new Error(`Worker failed: ${e.message}`))}),this._pendingRequests.clear(),this._worker=null}),Promise.resolve()}execute(e){if(!this._worker)throw new Error("Worker is not initialized. Call start() first.");const n=this._nextId++;return new Promise((t,r)=>{this._pendingRequests.set(n,{resolve:t,reject:r}),this._worker.postMessage({id:n,params:e})})}terminate(){this._worker&&(this._worker.terminate(),this._worker=null)}};class u{constructor(n){this._onExecute=n}execute(n){return this._onExecute(n)}start(){return Promise.resolve()}terminate(){}}const s=`/**
|
|
7
|
-
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.
|
|
7
|
+
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.18
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
11
11
|
*/
|
|
12
12
|
const W = { Number: "n", String: "s", Boolean: "b", Error: "e", Null: "z" };
|
|
13
|
-
var
|
|
14
|
-
(ie =
|
|
13
|
+
var ke, ie, d;
|
|
14
|
+
(ie = ke || (ke = {})).Orientation = { Column: "column", Row: "row" }, ie.Orientations = { ...ie.Orientation, Both: "both" }, ie.Direction = { Up: "up", Down: "down", Left: "left", Right: "right" }, ((e) => {
|
|
15
15
|
e.Code = { Parse: 0, Null: 1, Div0: 2, Value: 3, Ref: 4, Name: 5, Num: 6, NA: 7, GettingData: 8, Spill: 9, Connect: 10, Blocked: 11, Unknown: 12, Field: 13, Calc: 14, Busy: 16, Python: 19, Timeout: 20 }, e.Label = { Parse: "#PARSE!", Null: "#NULL!", Div0: "#DIV/0!", Value: "#VALUE!", Ref: "#REF!", Name: "#NAME?", Num: "#NUM!", NA: "#N/A", GettingData: "#GETTING_DATA", Spill: "#SPILL!", Connect: "#CONNECT!", Blocked: "#BLOCKED!", Unknown: "#UNKNOWN!", Field: "#FIELD!", Calc: "#CALC!", Busy: "#BUSY!", Python: "#PYTHON!", Timeout: "#TIMEOUT!" };
|
|
16
16
|
class t extends Error {
|
|
17
|
-
constructor(
|
|
18
|
-
super(fe, B), this._label = h, this._code =
|
|
17
|
+
constructor(u, h, fe, B) {
|
|
18
|
+
super(fe, B), this._label = h, this._code = u, this.details = B;
|
|
19
19
|
}
|
|
20
20
|
static {
|
|
21
21
|
this.code = e.Code.Unknown;
|
|
@@ -29,8 +29,8 @@ var Re, ie, d;
|
|
|
29
29
|
getCode() {
|
|
30
30
|
return this._code;
|
|
31
31
|
}
|
|
32
|
-
equals(
|
|
33
|
-
return !!
|
|
32
|
+
equals(u) {
|
|
33
|
+
return !!u && (this._code === u._code || this._code === u.code);
|
|
34
34
|
}
|
|
35
35
|
get [Symbol.toStringTag]() {
|
|
36
36
|
return "[FormulaError]";
|
|
@@ -41,21 +41,21 @@ var Re, ie, d;
|
|
|
41
41
|
}
|
|
42
42
|
e.Known = t;
|
|
43
43
|
class n extends t {
|
|
44
|
-
constructor(
|
|
45
|
-
super(e.Code.Parse, e.Label.Parse,
|
|
44
|
+
constructor(u, h) {
|
|
45
|
+
super(e.Code.Parse, e.Label.Parse, u, h);
|
|
46
46
|
}
|
|
47
47
|
static {
|
|
48
48
|
this.code = e.Code.Parse;
|
|
49
49
|
}
|
|
50
50
|
getDetails() {
|
|
51
|
-
const
|
|
52
|
-
return { line:
|
|
51
|
+
const u = this.details;
|
|
52
|
+
return { line: u?.line ?? 1, column: u?.column ?? 1, offset: u?.offset ?? 0, length: u?.length ?? 0 };
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
e.Parse = n;
|
|
56
56
|
class r extends t {
|
|
57
|
-
constructor(
|
|
58
|
-
super(e.Code.Null, e.Label.Null,
|
|
57
|
+
constructor(u, h) {
|
|
58
|
+
super(e.Code.Null, e.Label.Null, u, h);
|
|
59
59
|
}
|
|
60
60
|
static {
|
|
61
61
|
this.code = e.Code.Null;
|
|
@@ -63,8 +63,8 @@ var Re, ie, d;
|
|
|
63
63
|
}
|
|
64
64
|
e.Null = r;
|
|
65
65
|
class o extends t {
|
|
66
|
-
constructor(
|
|
67
|
-
super(e.Code.Div0, e.Label.Div0,
|
|
66
|
+
constructor(u, h) {
|
|
67
|
+
super(e.Code.Div0, e.Label.Div0, u, h);
|
|
68
68
|
}
|
|
69
69
|
static {
|
|
70
70
|
this.code = e.Code.Div0;
|
|
@@ -72,8 +72,8 @@ var Re, ie, d;
|
|
|
72
72
|
}
|
|
73
73
|
e.Div0 = o;
|
|
74
74
|
class a extends t {
|
|
75
|
-
constructor(
|
|
76
|
-
super(e.Code.Value, e.Label.Value,
|
|
75
|
+
constructor(u, h) {
|
|
76
|
+
super(e.Code.Value, e.Label.Value, u, h);
|
|
77
77
|
}
|
|
78
78
|
static {
|
|
79
79
|
this.code = e.Code.Value;
|
|
@@ -81,8 +81,8 @@ var Re, ie, d;
|
|
|
81
81
|
}
|
|
82
82
|
e.Value = a;
|
|
83
83
|
class i extends t {
|
|
84
|
-
constructor(
|
|
85
|
-
super(e.Code.Ref, e.Label.Ref,
|
|
84
|
+
constructor(u, h) {
|
|
85
|
+
super(e.Code.Ref, e.Label.Ref, u, h);
|
|
86
86
|
}
|
|
87
87
|
static {
|
|
88
88
|
this.code = e.Code.Ref;
|
|
@@ -90,26 +90,26 @@ var Re, ie, d;
|
|
|
90
90
|
}
|
|
91
91
|
e.Ref = i;
|
|
92
92
|
class l extends t {
|
|
93
|
-
constructor(
|
|
94
|
-
super(e.Code.Name, e.Label.Name,
|
|
93
|
+
constructor(u, h) {
|
|
94
|
+
super(e.Code.Name, e.Label.Name, u, h);
|
|
95
95
|
}
|
|
96
96
|
static {
|
|
97
97
|
this.code = e.Code.Name;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
e.Name = l;
|
|
101
|
-
class
|
|
102
|
-
constructor(
|
|
103
|
-
super(e.Code.Num, e.Label.Num,
|
|
101
|
+
class c extends t {
|
|
102
|
+
constructor(u, h) {
|
|
103
|
+
super(e.Code.Num, e.Label.Num, u, h);
|
|
104
104
|
}
|
|
105
105
|
static {
|
|
106
106
|
this.code = e.Code.Num;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
e.Num =
|
|
109
|
+
e.Num = c;
|
|
110
110
|
class p extends t {
|
|
111
|
-
constructor(
|
|
112
|
-
super(e.Code.NA, e.Label.NA,
|
|
111
|
+
constructor(u, h) {
|
|
112
|
+
super(e.Code.NA, e.Label.NA, u, h);
|
|
113
113
|
}
|
|
114
114
|
static {
|
|
115
115
|
this.code = e.Code.NA;
|
|
@@ -117,8 +117,8 @@ var Re, ie, d;
|
|
|
117
117
|
}
|
|
118
118
|
e.NA = p;
|
|
119
119
|
class w extends t {
|
|
120
|
-
constructor(
|
|
121
|
-
super(e.Code.GettingData, e.Label.GettingData,
|
|
120
|
+
constructor(u, h) {
|
|
121
|
+
super(e.Code.GettingData, e.Label.GettingData, u, h);
|
|
122
122
|
}
|
|
123
123
|
static {
|
|
124
124
|
this.code = e.Code.GettingData;
|
|
@@ -126,8 +126,8 @@ var Re, ie, d;
|
|
|
126
126
|
}
|
|
127
127
|
e.GettingData = w;
|
|
128
128
|
class g extends t {
|
|
129
|
-
constructor(
|
|
130
|
-
super(e.Code.Spill, e.Label.Spill,
|
|
129
|
+
constructor(u, h) {
|
|
130
|
+
super(e.Code.Spill, e.Label.Spill, u, h);
|
|
131
131
|
}
|
|
132
132
|
static {
|
|
133
133
|
this.code = e.Code.Spill;
|
|
@@ -135,8 +135,8 @@ var Re, ie, d;
|
|
|
135
135
|
}
|
|
136
136
|
e.Spill = g;
|
|
137
137
|
class f extends t {
|
|
138
|
-
constructor(
|
|
139
|
-
super(e.Code.Connect, e.Label.Connect,
|
|
138
|
+
constructor(u, h) {
|
|
139
|
+
super(e.Code.Connect, e.Label.Connect, u, h);
|
|
140
140
|
}
|
|
141
141
|
static {
|
|
142
142
|
this.code = e.Code.Connect;
|
|
@@ -144,8 +144,8 @@ var Re, ie, d;
|
|
|
144
144
|
}
|
|
145
145
|
e.Connect = f;
|
|
146
146
|
class y extends t {
|
|
147
|
-
constructor(
|
|
148
|
-
super(e.Code.Blocked, e.Label.Blocked,
|
|
147
|
+
constructor(u, h) {
|
|
148
|
+
super(e.Code.Blocked, e.Label.Blocked, u, h);
|
|
149
149
|
}
|
|
150
150
|
static {
|
|
151
151
|
this.code = e.Code.Blocked;
|
|
@@ -153,8 +153,8 @@ var Re, ie, d;
|
|
|
153
153
|
}
|
|
154
154
|
e.Blocked = y;
|
|
155
155
|
class x extends t {
|
|
156
|
-
constructor(
|
|
157
|
-
super(e.Code.Unknown, e.Label.Unknown,
|
|
156
|
+
constructor(u, h) {
|
|
157
|
+
super(e.Code.Unknown, e.Label.Unknown, u, h);
|
|
158
158
|
}
|
|
159
159
|
static {
|
|
160
160
|
this.code = e.Code.Unknown;
|
|
@@ -162,8 +162,8 @@ var Re, ie, d;
|
|
|
162
162
|
}
|
|
163
163
|
e.Unknown = x;
|
|
164
164
|
class A extends t {
|
|
165
|
-
constructor(
|
|
166
|
-
super(e.Code.Field, e.Label.Field,
|
|
165
|
+
constructor(u, h) {
|
|
166
|
+
super(e.Code.Field, e.Label.Field, u, h);
|
|
167
167
|
}
|
|
168
168
|
static {
|
|
169
169
|
this.code = e.Code.Field;
|
|
@@ -171,8 +171,8 @@ var Re, ie, d;
|
|
|
171
171
|
}
|
|
172
172
|
e.Field = A;
|
|
173
173
|
class D extends t {
|
|
174
|
-
constructor(
|
|
175
|
-
super(e.Code.Calc, e.Label.Calc,
|
|
174
|
+
constructor(u, h) {
|
|
175
|
+
super(e.Code.Calc, e.Label.Calc, u, h);
|
|
176
176
|
}
|
|
177
177
|
static {
|
|
178
178
|
this.code = e.Code.Calc;
|
|
@@ -180,8 +180,8 @@ var Re, ie, d;
|
|
|
180
180
|
}
|
|
181
181
|
e.Calc = D;
|
|
182
182
|
class U extends t {
|
|
183
|
-
constructor(
|
|
184
|
-
super(e.Code.Busy, e.Label.Busy,
|
|
183
|
+
constructor(u, h) {
|
|
184
|
+
super(e.Code.Busy, e.Label.Busy, u, h);
|
|
185
185
|
}
|
|
186
186
|
static {
|
|
187
187
|
this.code = e.Code.Busy;
|
|
@@ -189,8 +189,8 @@ var Re, ie, d;
|
|
|
189
189
|
}
|
|
190
190
|
e.Busy = U;
|
|
191
191
|
class I extends t {
|
|
192
|
-
constructor(
|
|
193
|
-
super(e.Code.Python, e.Label.Python,
|
|
192
|
+
constructor(u, h) {
|
|
193
|
+
super(e.Code.Python, e.Label.Python, u, h);
|
|
194
194
|
}
|
|
195
195
|
static {
|
|
196
196
|
this.code = e.Code.Python;
|
|
@@ -198,8 +198,8 @@ var Re, ie, d;
|
|
|
198
198
|
}
|
|
199
199
|
e.Python = I;
|
|
200
200
|
class J extends t {
|
|
201
|
-
constructor(
|
|
202
|
-
super(e.Code.Timeout, e.Label.Timeout,
|
|
201
|
+
constructor(u, h) {
|
|
202
|
+
super(e.Code.Timeout, e.Label.Timeout, u, h);
|
|
203
203
|
}
|
|
204
204
|
static {
|
|
205
205
|
this.code = e.Code.Timeout;
|
|
@@ -209,29 +209,29 @@ var Re, ie, d;
|
|
|
209
209
|
})(d || (d = {}));
|
|
210
210
|
const _ = {};
|
|
211
211
|
_[d.Code.Parse] = d.Parse, _[d.Code.Null] = d.Null, _[d.Code.Div0] = d.Div0, _[d.Code.Value] = d.Value, _[d.Code.Ref] = d.Ref, _[d.Code.Name] = d.Name, _[d.Code.Num] = d.Num, _[d.Code.NA] = d.NA, _[d.Code.GettingData] = d.GettingData, _[d.Code.Spill] = d.Spill, _[d.Code.Connect] = d.Connect, _[d.Code.Blocked] = d.Blocked, _[d.Code.Unknown] = d.Unknown, _[d.Code.Field] = d.Field, _[d.Code.Calc] = d.Calc, _[d.Code.Busy] = d.Busy, _[d.Code.Python] = d.Python, _[d.Code.Timeout] = d.Timeout;
|
|
212
|
-
const
|
|
213
|
-
for (let e = 0; e <
|
|
214
|
-
const t =
|
|
215
|
-
|
|
212
|
+
const rt = /* @__PURE__ */ new Map(), _e = /* @__PURE__ */ new Map(), ot = /* @__PURE__ */ new Map(), at = /* @__PURE__ */ new Map(), Le = Object.keys(_);
|
|
213
|
+
for (let e = 0; e < Le.length; e++) {
|
|
214
|
+
const t = Le[e], n = _[t];
|
|
215
|
+
ot.set(d.Label[t], n), at.set(d.Code[t], n);
|
|
216
216
|
const r = new n();
|
|
217
|
-
|
|
217
|
+
rt.set(r.getLabel(), r), _e.set(r.getCode(), r);
|
|
218
218
|
}
|
|
219
|
-
const
|
|
219
|
+
const Ct = _e.get(d.Code.Unknown);
|
|
220
220
|
var T;
|
|
221
|
-
(T = d || (d = {})).BuiltIn = { Parse: new T.Parse(), Null: new T.Null(), Div0: new T.Div0(), Value: new T.Value(), Ref: new T.Ref(), Name: new T.Name(), Num: new T.Num(), NA: new T.NA(), GettingData: new T.GettingData(), Spill: new T.Spill(), Connect: new T.Connect(), Blocked: new T.Blocked(), Unknown: new T.Unknown(), Field: new T.Field(), Calc: new T.Calc(), Busy: new T.Busy(), Python: new T.Python(), Timeout: new T.Timeout() }, T.getBuiltInByLabel = (e) =>
|
|
221
|
+
(T = d || (d = {})).BuiltIn = { Parse: new T.Parse(), Null: new T.Null(), Div0: new T.Div0(), Value: new T.Value(), Ref: new T.Ref(), Name: new T.Name(), Num: new T.Num(), NA: new T.NA(), GettingData: new T.GettingData(), Spill: new T.Spill(), Connect: new T.Connect(), Blocked: new T.Blocked(), Unknown: new T.Unknown(), Field: new T.Field(), Calc: new T.Calc(), Busy: new T.Busy(), Python: new T.Python(), Timeout: new T.Timeout() }, T.getBuiltInByLabel = (e) => rt.get(e), T.newTypedError = (e, t, n) => {
|
|
222
222
|
let r;
|
|
223
|
-
return r = typeof e == "string" ?
|
|
224
|
-
}, T.getBuiltInById = (e) =>
|
|
223
|
+
return r = typeof e == "string" ? ot.get(e) : at.get(e), r || (r = T.Unknown), new r(t, n);
|
|
224
|
+
}, T.getBuiltInById = (e) => _e.get(e) || Ct;
|
|
225
225
|
/**
|
|
226
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.
|
|
226
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.18
|
|
227
227
|
*
|
|
228
228
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
229
229
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
230
230
|
*/
|
|
231
|
-
const j = { Column: "column", Row: "row" },
|
|
231
|
+
const j = { Column: "column", Row: "row" }, vt = Object.freeze({ colIndex: 0, rowIndex: 0 }), Tt = Object.freeze({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }), it = (e, t) => e.colStart === t.colStart ? e.rowStart - t.rowStart : e.colStart - t.colStart, lt = (e, t) => e.rowStart === t.rowStart ? e.colStart - t.colStart : e.rowStart - t.rowStart, _t = (e, t) => e.rowEnd === t.rowEnd ? t.colEnd - e.colEnd : t.rowEnd - e.rowEnd, Ot = (e, t) => e.colEnd === t.colEnd ? t.rowEnd - e.rowEnd : t.colEnd - e.colEnd, Ae = (e, t) => e.colIndex === t.colIndex ? e.rowIndex - t.rowIndex : e.colIndex - t.colIndex, Me = (e, t) => e.rowIndex === t.rowIndex ? e.colIndex - t.colIndex : e.rowIndex - t.rowIndex, je = (e, t) => e.rowIndex === t.rowIndex ? t.colIndex - e.colIndex : t.rowIndex - e.rowIndex, Pe = (e, t) => e.colIndex === t.colIndex ? t.rowIndex - e.rowIndex : t.colIndex - e.colIndex, st = (e = j.Row, t = !1) => t ? e !== j.Column ? _t : Ot : e !== j.Column ? lt : it, Fe = (e, t) => e === t || !(!e || !t) && e.rowIndex === t.rowIndex && e.colIndex === t.colIndex, xe = (e, t) => e === t || !(!e || !t) && e.rowStart === t.rowStart && e.rowEnd === t.rowEnd && e.colStart === t.colStart && e.colEnd === t.colEnd, Ce = (e, t) => !(!e || !t) && !(e.colStart > t.colEnd || t.colStart > e.colEnd) && !(e.rowStart > t.rowEnd || t.rowStart > e.rowEnd), De = (e, t) => {
|
|
232
232
|
if (e === t) return !0;
|
|
233
233
|
if (!e || !t || e.length !== t.length) return !1;
|
|
234
|
-
for (let n = 0; n < e.length; n++) if (!
|
|
234
|
+
for (let n = 0; n < e.length; n++) if (!xe(e[n], t[n])) return !1;
|
|
235
235
|
return !0;
|
|
236
236
|
}, me = (e, t, n) => {
|
|
237
237
|
if (!e && !t) return null;
|
|
@@ -240,23 +240,23 @@ const j = { Column: "column", Row: "row" }, Ct = Object.freeze({ colIndex: 0, ro
|
|
|
240
240
|
const r = Math.min(e.colStart, t.colStart), o = Math.min(e.rowStart, t.rowStart), a = Math.max(e.colEnd, t.colEnd), i = Math.max(e.rowEnd, t.rowEnd);
|
|
241
241
|
let l = n;
|
|
242
242
|
return l ? (l.colStart = r, l.rowStart = o, l.colEnd = a, l.rowEnd = i) : l = { colStart: r, rowStart: o, colEnd: a, rowEnd: i }, l;
|
|
243
|
-
},
|
|
243
|
+
}, Ue = (e, t) => {
|
|
244
244
|
if (!t || t.length === 0) return e;
|
|
245
245
|
const n = { ...e };
|
|
246
246
|
for (let r = 0; r < t.length; r++) {
|
|
247
247
|
const o = t[r];
|
|
248
|
-
|
|
248
|
+
Ce(n, o) && (n.rowStart = Math.min(n.rowStart, o.rowStart), n.colStart = Math.min(n.colStart, o.colStart), n.rowEnd = Math.max(n.rowEnd, o.rowEnd), n.colEnd = Math.max(n.colEnd, o.colEnd));
|
|
249
249
|
}
|
|
250
250
|
return n;
|
|
251
|
-
},
|
|
251
|
+
}, It = [null, null], Nt = (e, t, n) => {
|
|
252
252
|
if (e[0].value === e[1].value) return t;
|
|
253
253
|
};
|
|
254
|
-
function
|
|
254
|
+
function Be(e, t = 2, n, r = j.Row, o) {
|
|
255
255
|
let a = [...e];
|
|
256
256
|
if (t <= 0 || e.length <= 1) return a;
|
|
257
|
-
let i = r === j.Column, l = 0,
|
|
257
|
+
let i = r === j.Column, l = 0, c = !1;
|
|
258
258
|
do {
|
|
259
|
-
const p = a.sort(
|
|
259
|
+
const p = a.sort(st(i ? j.Row : j.Column));
|
|
260
260
|
a = [], a.push(p[0]);
|
|
261
261
|
const w = p.length;
|
|
262
262
|
let g = 0, f = p[0], y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
|
|
@@ -266,47 +266,47 @@ function Ue(e, t = 2, n, r = j.Row, o) {
|
|
|
266
266
|
if (J = i ? f && x === I.rowStart && D === I.rowEnd && A + 1 === I.colStart : f && y === I.colStart && A === I.colEnd && D + 1 === I.rowStart, J) {
|
|
267
267
|
let E = { colStart: y, rowStart: x, colEnd: i ? I.colEnd : A, rowEnd: i ? D : I.rowEnd };
|
|
268
268
|
if (f.value !== void 0 && (E.value = f.value), n) {
|
|
269
|
-
const
|
|
270
|
-
|
|
269
|
+
const u = o ?? [null, null];
|
|
270
|
+
u[0] = f, u[1] = I, E = n(u, E, r);
|
|
271
271
|
}
|
|
272
272
|
if (E) {
|
|
273
|
-
a[g] = E,
|
|
273
|
+
a[g] = E, c = !0, f = E, y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
|
|
274
274
|
continue;
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
a[++g] = I, f = I, y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
|
|
278
278
|
}
|
|
279
|
-
l++, i = !i, l === 1 && (
|
|
280
|
-
} while (l < t &&
|
|
279
|
+
l++, i = !i, l === 1 && (c = !0);
|
|
280
|
+
} while (l < t && c && a.length > 1);
|
|
281
281
|
return a;
|
|
282
282
|
}
|
|
283
|
-
Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell:
|
|
283
|
+
Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: vt, EmptyRange: Tt, cellToRange: (e, t) => {
|
|
284
284
|
if (!e) return null;
|
|
285
285
|
let n = t;
|
|
286
286
|
return n || (n = { ...e }, delete n.colIndex, delete n.rowIndex), n.colStart = e.colIndex ?? 0, n.rowStart = e.rowIndex ?? 0, n.colEnd = e.colIndex ?? 0, n.rowEnd = e.rowIndex ?? 0, n;
|
|
287
|
-
}, columnFirstCellComparator:
|
|
287
|
+
}, columnFirstCellComparator: Ae, columnFirstRangeComparator: it, createCellComparator: (e = j.Row, t = !1) => t ? e !== j.Column ? je : Pe : e !== j.Column ? Me : Ae, createConflatingRanges: (e, t = !1) => {
|
|
288
288
|
const n = [];
|
|
289
289
|
let r, o, a = Number.MIN_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
|
|
290
|
-
return { append: (l,
|
|
290
|
+
return { append: (l, c, p) => {
|
|
291
291
|
let w = !0;
|
|
292
292
|
const g = p !== void 0;
|
|
293
293
|
if (g) {
|
|
294
294
|
const x = e ? e(o, p, t) : o === p ? p : void 0;
|
|
295
295
|
x === void 0 ? w = !1 : p = x;
|
|
296
296
|
}
|
|
297
|
-
if (w &&
|
|
297
|
+
if (w && c === i + 1 && l === a) return t ? r.rowEnd = c : r.colEnd = c, i = c, void (o = p);
|
|
298
298
|
r && n.push(r);
|
|
299
|
-
const f = t ? l :
|
|
300
|
-
r = { colStart: f, rowStart: y, colEnd: f, rowEnd: y }, g && (r.value = p), a = l, i =
|
|
301
|
-
}, done: (l) => (r && (n.push(r), r = null), l ?
|
|
302
|
-
}, createRangeComparator:
|
|
299
|
+
const f = t ? l : c, y = t ? c : l;
|
|
300
|
+
r = { colStart: f, rowStart: y, colEnd: f, rowEnd: y }, g && (r.value = p), a = l, i = c, o = p;
|
|
301
|
+
}, done: (l) => (r && (n.push(r), r = null), l ? Be(n, 3, l === !0 ? Nt : l, t ? j.Column : j.Row, It) : n) };
|
|
302
|
+
}, createRangeComparator: st, defaultRange: (e, t, n) => e ? n ? (n.colStart = e.colStart ?? t.colStart, n.rowStart = e.rowStart ?? t.rowStart, n.colEnd = e.colEnd ?? t.colEnd, n.rowEnd = e.rowEnd ?? t.rowEnd, n) : { colStart: e.colStart ?? t.colStart, rowStart: e.rowStart ?? t.rowStart, colEnd: e.colEnd ?? t.colEnd, rowEnd: e.rowEnd ?? t.rowEnd } : t, extendRangeToIntersectingRanges: Ue, extendRangeToUnionRanges: (e, t) => {
|
|
303
303
|
if (!t || t.length === 0) return e;
|
|
304
304
|
let n = e, r = null;
|
|
305
|
-
for (; !
|
|
305
|
+
for (; !xe(n, r); ) r = n, n = Ue(r, t);
|
|
306
306
|
return n;
|
|
307
307
|
}, indexOfCoords: (e, t) => {
|
|
308
308
|
const n = { colStart: e.colIndex, rowStart: e.rowIndex, colEnd: e.colIndex, rowEnd: e.rowIndex };
|
|
309
|
-
for (let r = t.length - 1; r >= 0; r--) if (
|
|
309
|
+
for (let r = t.length - 1; r >= 0; r--) if (Ce(n, t[r])) return r;
|
|
310
310
|
return -1;
|
|
311
311
|
}, intersectRanges: (e, t, n) => {
|
|
312
312
|
if (!e) return n ? t : { ...t };
|
|
@@ -321,58 +321,58 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: Ct, EmptyRange
|
|
|
321
321
|
if (n < t.rowStart || n > t.rowEnd) return !1;
|
|
322
322
|
const r = e.colIndex;
|
|
323
323
|
return !(r < t.colStart || r > t.colEnd);
|
|
324
|
-
}, isEqualCells:
|
|
324
|
+
}, isEqualCells: Fe, isEqualRanges: xe, isEqualRangesArrays: De, isEqualSelectionCoords: (e, t) => e === t || !(!e || !t) && e.rangeIndex === t.rangeIndex && !!Fe(e.cell, t.cell) && De(e.ranges, t.ranges), isRangeWithinRange: (e, t) => !(e.rowStart < t.rowStart || e.rowEnd > t.rowEnd) && !(e.colStart < t.colStart || e.colEnd > t.colEnd), isRangesIntersect: Ce, isSingleCell: (e) => !!e && e.rowEnd === e.rowStart && e.colStart === e.colEnd, isValidRange: (e) => !!e && !(typeof e.colStart != "number" || e.colStart < 0) && !(typeof e.colEnd != "number" || e.colEnd < e.colStart) && !(typeof e.rowStart != "number" || e.rowStart < 0) && !(typeof e.rowEnd != "number" || e.rowEnd < e.rowStart), mergeRangedValues: Be, reverseColumnFirstCellComparator: Pe, reverseRowFirstCellComparator: je, rowFirstCellComparator: Me, rowFirstRangeComparator: lt, sanitizeRange: (e) => e ? { colStart: e.colIndex ?? e.colStart ?? 0, rowStart: e.rowIndex ?? e.rowStart ?? 0, colEnd: e.colIndex ?? e.colEnd ?? 0, rowEnd: e.rowIndex ?? e.rowEnd ?? 0 } : null, translateRange: (e, t = -e.rowStart, n = -e.colStart, r) => r ? (r.colStart = e.colStart + n, r.rowStart = e.rowStart + t, r.colEnd = e.colEnd + n, r.rowEnd = e.rowEnd + t, r) : { colStart: e.colStart + n, rowStart: e.rowStart + t, colEnd: e.colEnd + n, rowEnd: e.rowEnd + t }, unionRanges: me, unionRangesArrays: (e, t, n) => {
|
|
325
325
|
if (!e || e.length === 0) return null;
|
|
326
326
|
if (e.length === 1 && !t) return e[0];
|
|
327
327
|
let r = e[0];
|
|
328
328
|
for (let o = 1; o < e.length; o++) r = me(r, e[o], n);
|
|
329
329
|
return t && (r = me(r, t, n)), r;
|
|
330
330
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
331
|
-
const S = { html: "text/html", plain: "text/plain", png: "image/png" },
|
|
332
|
-
Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds:
|
|
333
|
-
function
|
|
331
|
+
const S = { html: "text/html", plain: "text/plain", png: "image/png" }, Rt = Object.freeze({ left: 0, top: 0 }), kt = Object.freeze({ left: 0, top: 0, bottom: 0, right: 0 }), Lt = Object.freeze({ x: 0, y: 0, width: 0, height: 0 });
|
|
332
|
+
Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: Lt, EmptyRect: kt, EmptyTopLeft: Rt }, Symbol.toStringTag, { value: "Module" }));
|
|
333
|
+
function At(e) {
|
|
334
334
|
const t = Object.prototype.toString.call(e);
|
|
335
335
|
return t === "[object RegExp]" || t === "[object Date]" || (function(n) {
|
|
336
|
-
return n.$$typeof ===
|
|
336
|
+
return n.$$typeof === Mt;
|
|
337
337
|
})(e);
|
|
338
338
|
}
|
|
339
|
-
const
|
|
340
|
-
function
|
|
339
|
+
const Mt = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.element") : 60103;
|
|
340
|
+
function jt(e) {
|
|
341
341
|
return /* @__PURE__ */ (function(t) {
|
|
342
342
|
return !!t && typeof t == "object";
|
|
343
|
-
})(e) && !
|
|
343
|
+
})(e) && !At(e);
|
|
344
344
|
}
|
|
345
345
|
function re(e, t) {
|
|
346
346
|
return t.clone !== !1 && t.isMergeableObject(e) ? Y((n = e, Array.isArray(n) ? [] : {}), e, t) : e;
|
|
347
347
|
var n;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function Pt(e, t, n) {
|
|
350
350
|
return e.concat(t).map(function(r) {
|
|
351
351
|
return re(r, n);
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function $e(e) {
|
|
355
355
|
return Object.keys(e).concat((function(t) {
|
|
356
356
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(n) {
|
|
357
357
|
return Object.propertyIsEnumerable.call(t, n);
|
|
358
358
|
}) : [];
|
|
359
359
|
})(e));
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function ze(e, t) {
|
|
362
362
|
try {
|
|
363
363
|
return t in e;
|
|
364
364
|
} catch {
|
|
365
365
|
return !1;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function Ft(e, t, n) {
|
|
369
369
|
const r = {};
|
|
370
|
-
return n.isMergeableObject(e) &&
|
|
370
|
+
return n.isMergeableObject(e) && $e(e).forEach(function(o) {
|
|
371
371
|
r[o] = re(e[o], n);
|
|
372
|
-
}),
|
|
372
|
+
}), $e(t).forEach(function(o) {
|
|
373
373
|
(function(a, i) {
|
|
374
|
-
return
|
|
375
|
-
})(e, o) || (
|
|
374
|
+
return ze(a, i) && !(Object.hasOwnProperty.call(a, i) && Object.propertyIsEnumerable.call(a, i));
|
|
375
|
+
})(e, o) || (ze(e, o) && n.isMergeableObject(t[o]) ? r[o] = (function(a, i) {
|
|
376
376
|
if (!i.customMerge) return Y;
|
|
377
377
|
const l = i.customMerge(a);
|
|
378
378
|
return typeof l == "function" ? l : Y;
|
|
@@ -380,9 +380,9 @@ function Pt(e, t, n) {
|
|
|
380
380
|
}), r;
|
|
381
381
|
}
|
|
382
382
|
function Y(e, t, n) {
|
|
383
|
-
(n = n || {}).arrayMerge = n.arrayMerge ||
|
|
383
|
+
(n = n || {}).arrayMerge = n.arrayMerge || Pt, n.isMergeableObject = n.isMergeableObject || jt, n.cloneUnlessOtherwiseSpecified = re;
|
|
384
384
|
const r = Array.isArray(t);
|
|
385
|
-
return r === Array.isArray(e) ? r ? n.arrayMerge(e, t, n) :
|
|
385
|
+
return r === Array.isArray(e) ? r ? n.arrayMerge(e, t, n) : Ft(e, t, n) : re(t, n);
|
|
386
386
|
}
|
|
387
387
|
Y.all = function(e, t) {
|
|
388
388
|
if (!Array.isArray(e)) throw new Error("first argument should be an array");
|
|
@@ -390,12 +390,12 @@ Y.all = function(e, t) {
|
|
|
390
390
|
return Y(n, r, t);
|
|
391
391
|
}, {});
|
|
392
392
|
};
|
|
393
|
-
const
|
|
393
|
+
const we = Object.freeze([]), Dt = Object.freeze({}), Ke = (e) => e, de = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
394
394
|
let t = 16 * Math.random() | 0;
|
|
395
395
|
return (e === "x" ? t : 3 & t | 8).toString(16);
|
|
396
|
-
}), Ut = (e) => 1 * e,
|
|
397
|
-
e[t] && typeof e[t] == "object" ?
|
|
398
|
-
}), Object.keys(e).length === 0 ? null : e), Bt = (e, t) => !(e !== t && !
|
|
396
|
+
}), Ut = (e) => 1 * e, ct = (e, t) => e === t || !(!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length) && e.every((n, r) => n === t[r]), ne = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, ut = (e) => typeof e != "object" || Array.isArray(e) || e === null ? e : (Object.keys(e).forEach(function(t) {
|
|
397
|
+
e[t] && typeof e[t] == "object" ? ut(e[t]) : e[t] !== null && e[t] !== void 0 || delete e[t], typeof e[t] == "object" && Object.keys(e[t]).length === 0 && delete e[t];
|
|
398
|
+
}), Object.keys(e).length === 0 ? null : e), Bt = (e, t) => !(e !== t && !ct(e, t)) || !!e.isEqual?.(t), dt = (e, t, n = Bt) => {
|
|
399
399
|
if (e == null || e === t) return null;
|
|
400
400
|
if (!e || typeof e != "object" || Array.isArray(e) || e.isImmutable?.()) return n(e, t) ? null : e;
|
|
401
401
|
const r = Object.keys(e);
|
|
@@ -403,18 +403,18 @@ const Ft = Object.freeze([]), Dt = Object.freeze({}), ze = (e) => e, de = () =>
|
|
|
403
403
|
let o = !1;
|
|
404
404
|
for (let a = 0; a < r.length; a++) {
|
|
405
405
|
const i = r[a];
|
|
406
|
-
|
|
406
|
+
dt(e[i], t?.[i], n) === null && (o = !0, delete e[i]);
|
|
407
407
|
}
|
|
408
408
|
return o && Object.keys(e).length === 0 ? null : void 0;
|
|
409
|
-
},
|
|
410
|
-
if (
|
|
409
|
+
}, Ve = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now(), qe = (e) => e == null, Ge = (e, t) => !(t.left > e.right || t.right < e.left || t.top > e.bottom || t.bottom < e.top), We = !(typeof window > "u" || !window.document || !window.document.createElement), k = { Windows: "windows", MacOS: "macos", IOS: "ios", Linux: "linux", Android: "android", Safari: "safari", Firefox: "firefox", Node: "node", Unknown: "unknown" }, oe = () => {
|
|
410
|
+
if (ft()) return k.Node;
|
|
411
411
|
const e = globalThis.navigator !== void 0 && globalThis.navigator.userAgent ? globalThis.navigator.userAgent.toLowerCase() : "";
|
|
412
412
|
return e ? /(win32|win64|windows|wince)/i.test(e) ? k.Windows : /(macintosh|macintel|macppc|mac68k|macos)/i.test(e) ? k.MacOS : /(iphone|ipad|ipod)/i.test(e) ? k.IOS : /android/.test(e) ? k.Android : /linux/.test(e) ? k.Linux : /^((?!chrome|android|).)*safari/i.test(e) ? k.Safari : /^((?!chrome|android|Seamonkey).)*firefox/i.test(e) ? k.Firefox : k.Unknown : k.Unknown;
|
|
413
413
|
};
|
|
414
|
-
function
|
|
414
|
+
function ft() {
|
|
415
415
|
return typeof process < "u" && process.release?.name === "node" || (typeof process < "u" && process.browser, !1);
|
|
416
416
|
}
|
|
417
|
-
const
|
|
417
|
+
const Ye = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeElement || e?.contains(document.activeElement)), $t = Object.freeze(Object.defineProperty({ __proto__: null, EmptyArray: we, EmptyObject: Dt, OSType: k, arrayMove: function(e, t, n) {
|
|
418
418
|
const r = e.slice();
|
|
419
419
|
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
420
420
|
}, asNumber: (e) => {
|
|
@@ -422,23 +422,23 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
422
422
|
return Number.isFinite(t) ? t : 0;
|
|
423
423
|
}, camelToPrettyCase: (e) => e.length === 1 ? e.toUpperCase() : e.replace(/([A-Z])/g, " $1").replace(/^./, function(t) {
|
|
424
424
|
return t.toUpperCase();
|
|
425
|
-
}).trim(), canUseDOM:
|
|
425
|
+
}).trim(), canUseDOM: We, cancelTimeout: (e) => {
|
|
426
426
|
cancelAnimationFrame(e.id);
|
|
427
|
-
}, castToString: (e) => e == null || e === void 0 ? "" : typeof e != "string" ? "" + e : e, cloneObject: (e) =>
|
|
427
|
+
}, castToString: (e) => e == null || e === void 0 ? "" : typeof e != "string" ? "" + e : e, cloneObject: (e) => qe(e) ? e : JSON.parse(JSON.stringify(e)), consoleWithNoSource: (...e) => new Promise((t) => {
|
|
428
428
|
setTimeout(() => {
|
|
429
429
|
Function("console.log.apply(console, arguments)").apply(null, e), t();
|
|
430
430
|
});
|
|
431
431
|
}), debounce: function(e, t = 300, n = !1) {
|
|
432
432
|
let r, o, a, i, l = 0;
|
|
433
|
-
function
|
|
433
|
+
function c() {
|
|
434
434
|
let w = Date.now() - l;
|
|
435
|
-
w < t && w >= 0 ? r = setTimeout(
|
|
435
|
+
w < t && w >= 0 ? r = setTimeout(c, t - w) : (r = null, n || (i = e.apply(a, o), a = o = null));
|
|
436
436
|
}
|
|
437
437
|
t == null && (t = 100);
|
|
438
438
|
const p = function() {
|
|
439
439
|
a = globalThis, o = arguments, l = Date.now();
|
|
440
440
|
var w = n && !r;
|
|
441
|
-
return r || (r = setTimeout(
|
|
441
|
+
return r || (r = setTimeout(c, t)), w && (i = e.apply(a, o), a = o = null), i;
|
|
442
442
|
};
|
|
443
443
|
return p.clear = function() {
|
|
444
444
|
r && (clearTimeout(r), r = null);
|
|
@@ -490,11 +490,11 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
490
490
|
}, deepMerge: Y, diffValues: (e, t) => {
|
|
491
491
|
const n = {}, r = Object.keys(t), o = r.length;
|
|
492
492
|
for (let a = 0; a < o; a++) {
|
|
493
|
-
const i = r[a];
|
|
494
|
-
|
|
493
|
+
const i = r[a], l = e[i], c = t[i];
|
|
494
|
+
l !== c && (n[i] = l === void 0 ? c : l);
|
|
495
495
|
}
|
|
496
496
|
return Object.keys(n).length === 0 ? null : n;
|
|
497
|
-
}, findEqualOrGreater: function(e, t, n =
|
|
497
|
+
}, findEqualOrGreater: function(e, t, n = Ke) {
|
|
498
498
|
let r = 0, o = e.length - 1;
|
|
499
499
|
for (; r <= o; ) {
|
|
500
500
|
let a = Math.floor((r + o) / 2), i = n(e[a]);
|
|
@@ -502,7 +502,7 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
502
502
|
i < t ? r = a + 1 : o = a - 1;
|
|
503
503
|
}
|
|
504
504
|
return r;
|
|
505
|
-
}, findEqualOrLesser: function(e, t, n =
|
|
505
|
+
}, findEqualOrLesser: function(e, t, n = Ke) {
|
|
506
506
|
let r = e.length - 1, o = 0;
|
|
507
507
|
for (; r >= o; ) {
|
|
508
508
|
let a = Math.floor((r + o) / 2), i = n(e[a]);
|
|
@@ -527,14 +527,14 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
527
527
|
r = i;
|
|
528
528
|
}
|
|
529
529
|
return r ?? null;
|
|
530
|
-
}, getOS: oe, hasFocus:
|
|
530
|
+
}, getOS: oe, hasFocus: Ye, isDefined: (e) => e != null, isEmpty: (e) => e == null || e === "", isEqualArrays: ct, isEqualBounds: (e, t) => e === t || !(e && !t || t && !e) && e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, isEqualObjectKeys: (e, t) => {
|
|
531
531
|
if (e === t) return !0;
|
|
532
532
|
if (e && !t || t && !e) return !1;
|
|
533
533
|
const n = Object.keys(e);
|
|
534
534
|
if (n.length !== Object.keys(t).length) return !1;
|
|
535
535
|
for (let r = 0; r < n.length; r++) if (e[n[r]] !== t[n[r]]) return !1;
|
|
536
536
|
return !0;
|
|
537
|
-
}, isNode:
|
|
537
|
+
}, isNode: ft, isNullOrUndefined: qe, isNumeric: (e) => {
|
|
538
538
|
const t = 1 * e;
|
|
539
539
|
return Number.isFinite(t) && typeof t == "number";
|
|
540
540
|
}, isObject: ne, isPromiseLike: (e) => !!e && typeof e.then == "function", isRectInsideRect: (e, t) => e.top >= t.top && e.bottom <= t.bottom && e.left >= t.left && e.right <= t.right, isRectIntersect: Ge, mergeContentful: (...e) => {
|
|
@@ -550,7 +550,7 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
550
550
|
e();
|
|
551
551
|
});
|
|
552
552
|
}, openFileDialog: (e = "*.*") => new Promise((t, n) => {
|
|
553
|
-
if (!
|
|
553
|
+
if (!We) return void n("Unable to open dialog with no dom.");
|
|
554
554
|
const r = document.createElement("input");
|
|
555
555
|
r.type = "file", r.accept = e;
|
|
556
556
|
let o = null, a = !1;
|
|
@@ -571,13 +571,17 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
571
571
|
return function(o) {
|
|
572
572
|
t = o, t && t.persist && t.persist(), n || (n = !0, requestAnimationFrame(r));
|
|
573
573
|
};
|
|
574
|
-
}, removeEmptyProperties:
|
|
575
|
-
if (!e) return
|
|
576
|
-
|
|
577
|
-
|
|
574
|
+
}, removeEmptyProperties: ut, removeEqualValues: dt, removeListenerAll: (e) => {
|
|
575
|
+
if (!e) return we;
|
|
576
|
+
const t = e.length;
|
|
577
|
+
for (let n = 0; n < t; n++) {
|
|
578
|
+
const r = e[n];
|
|
579
|
+
r && r();
|
|
580
|
+
}
|
|
581
|
+
return we;
|
|
578
582
|
}, requestTimeout: (e, t) => {
|
|
579
|
-
const n =
|
|
580
|
-
|
|
583
|
+
const n = Ve(), r = { id: requestAnimationFrame(function o() {
|
|
584
|
+
Ve() - n >= t ? e.call(null) : r.id = requestAnimationFrame(o);
|
|
581
585
|
}) };
|
|
582
586
|
return r;
|
|
583
587
|
}, roundAccurately: (e, t = 0) => {
|
|
@@ -613,10 +617,10 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
613
617
|
t.bottom > o.top && t.bottom < o.bottom && (r.push({ ...o, top: t.bottom }), o = { ...o, bottom: t.bottom });
|
|
614
618
|
}, l = () => {
|
|
615
619
|
t.right > o.left && t.right < o.right && (r.push({ ...o, left: t.right }), o = { ...o, right: t.right });
|
|
616
|
-
},
|
|
620
|
+
}, c = () => {
|
|
617
621
|
t.left > o.left && t.left < o.right && (r.push({ ...o, right: t.left }), o = { ...o, left: t.left });
|
|
618
622
|
};
|
|
619
|
-
return n ? (
|
|
623
|
+
return n ? (c(), l(), a(), i()) : (a(), i(), l(), c()), r;
|
|
620
624
|
}, textToKey: (e) => e.replace(/[^a-zA-Z0-9]/g, "").toLowerCase(), throttle: function(e, t) {
|
|
621
625
|
let n = null;
|
|
622
626
|
return (...r) => {
|
|
@@ -640,19 +644,19 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
640
644
|
}, uuidV4: de, validEnumValue: (e, t) => {
|
|
641
645
|
if (!Object.values(e).includes(t)) throw new Error(\`Invalid type: \${t ?? "null"}. Must be one of: \${Object.values(t).join(", ")}.\`);
|
|
642
646
|
}, whenFocus: async (e, t = !1) => new Promise((n) => {
|
|
643
|
-
|
|
647
|
+
Ye(e, t) ? n(!0) : e.addEventListener("focusin", () => {
|
|
644
648
|
n(!0);
|
|
645
649
|
}, { once: !0 }), e.focus();
|
|
646
650
|
}) }, Symbol.toStringTag, { value: "Module" }));
|
|
647
651
|
Object.freeze(Object.defineProperty({ __proto__: null, MESSAGE_ERROR_INVALID_ARG: (e) => \`Invalid argument: '\${e}'.\` }, Symbol.toStringTag, { value: "Module" }));
|
|
648
|
-
const
|
|
652
|
+
const pt = (e) => {
|
|
649
653
|
const t = new Uint8Array(e), n = t.byteLength;
|
|
650
654
|
let r = "";
|
|
651
655
|
for (let o = 0; o < n; o++) r += String.fromCharCode(t[o]);
|
|
652
656
|
if (typeof window < "u" && typeof globalThis.btoa == "function") return globalThis.btoa(r);
|
|
653
657
|
if (typeof Buffer < "u") return Buffer.from(r, "binary").toString("base64");
|
|
654
658
|
throw new Error("Unsupported environment");
|
|
655
|
-
},
|
|
659
|
+
}, ve = (e) => new Promise((t, n) => {
|
|
656
660
|
if (e) if (typeof FileReader < "u") {
|
|
657
661
|
const r = new FileReader();
|
|
658
662
|
r.onload = () => {
|
|
@@ -670,12 +674,12 @@ const ft = (e) => {
|
|
|
670
674
|
} else n(new Error("Unsupported environment"));
|
|
671
675
|
else t("");
|
|
672
676
|
});
|
|
673
|
-
Object.freeze(Object.defineProperty({ __proto__: null, DEFAULT_MIME_TYPE: "*/*", arrayBufferToBase64:
|
|
677
|
+
Object.freeze(Object.defineProperty({ __proto__: null, DEFAULT_MIME_TYPE: "*/*", arrayBufferToBase64: pt, base64ToArrayBuffer: (e) => {
|
|
674
678
|
const t = typeof window < "u" && typeof globalThis.atob == "function" ? globalThis.atob(e) : Buffer.from(e, "base64").toString("binary"), n = t.length, r = new Uint8Array(n);
|
|
675
679
|
for (let o = 0; o < n; o++) r[o] = t.charCodeAt(o);
|
|
676
680
|
return r.buffer;
|
|
677
|
-
}, blobToString:
|
|
678
|
-
const
|
|
681
|
+
}, blobToString: ve }, Symbol.toStringTag, { value: "Module" }));
|
|
682
|
+
const ht = "data:image/png;base64,", mt = "Unable to resolve image.", Je = (e) => new Promise(async (t, n) => {
|
|
679
683
|
let r = null;
|
|
680
684
|
try {
|
|
681
685
|
r = new Image(), r.src = e, r.addEventListener("load", function() {
|
|
@@ -686,9 +690,9 @@ const pt = "data:image/png;base64,", ht = "Unable to resolve image.", Ye = (e) =
|
|
|
686
690
|
} catch {
|
|
687
691
|
r?.src && URL.revokeObjectURL(r.src);
|
|
688
692
|
}
|
|
689
|
-
r || n(
|
|
690
|
-
}),
|
|
691
|
-
Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX:
|
|
693
|
+
r || n(mt);
|
|
694
|
+
}), ye = "image/svg+xml";
|
|
695
|
+
Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: ht, getImageDataUrl: (e, t = 1) => new Promise(async (n, r) => {
|
|
692
696
|
let o = null;
|
|
693
697
|
try {
|
|
694
698
|
o = new Image(), o.src = e, o.addEventListener("load", function() {
|
|
@@ -706,70 +710,70 @@ Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: pt,
|
|
|
706
710
|
} catch {
|
|
707
711
|
o?.src && URL.revokeObjectURL(o.src);
|
|
708
712
|
}
|
|
709
|
-
o || r(
|
|
713
|
+
o || r(mt);
|
|
710
714
|
}), loadImageDetails: async (e, t = null) => {
|
|
711
715
|
let n = null;
|
|
712
716
|
const r = async () => {
|
|
713
717
|
try {
|
|
714
|
-
const a = t ?? "image/*", i = URL.createObjectURL(new Blob([e], { type: a })), l = await
|
|
718
|
+
const a = t ?? "image/*", i = URL.createObjectURL(new Blob([e], { type: a })), l = await Je(i);
|
|
715
719
|
n = { mimeType: a, naturalSize: l, asUrl: i };
|
|
716
720
|
} catch {
|
|
717
721
|
}
|
|
718
722
|
}, o = async () => {
|
|
719
723
|
try {
|
|
720
|
-
const a = new TextDecoder().decode(e), i = URL.createObjectURL(new Blob([a], { type:
|
|
721
|
-
n = { mimeType: t ??
|
|
724
|
+
const a = new TextDecoder().decode(e), i = URL.createObjectURL(new Blob([a], { type: ye })), l = await Je(i);
|
|
725
|
+
n = { mimeType: t ?? ye, naturalSize: l, asUrl: i, asSVGText: a };
|
|
722
726
|
} catch {
|
|
723
727
|
}
|
|
724
728
|
};
|
|
725
|
-
if (t ===
|
|
729
|
+
if (t === ye ? await o() : t.startsWith("image/") ? await r() : (await r(), n || await o()), !n) throw new Error("Failed to load image");
|
|
726
730
|
return n;
|
|
727
731
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
728
|
-
var
|
|
729
|
-
(
|
|
732
|
+
var He, Xe;
|
|
733
|
+
(Xe = He || (He = {})).resolveTypedUpdates = (e, t, n, r) => {
|
|
730
734
|
if (e === null) return e;
|
|
731
735
|
if (e === void 0) return r;
|
|
732
736
|
let o = e;
|
|
733
737
|
if (t?.shorthand) {
|
|
734
|
-
const
|
|
735
|
-
|
|
738
|
+
const c = t?.shorthand(e, n);
|
|
739
|
+
c !== void 0 && (o = c);
|
|
736
740
|
}
|
|
737
741
|
if (o !== null && t?.getSubType) {
|
|
738
|
-
const
|
|
739
|
-
|
|
742
|
+
const c = t.getSubType(o);
|
|
743
|
+
c && (t = c);
|
|
740
744
|
}
|
|
741
745
|
const a = t?.properties, i = t?.arrayType ?? !1;
|
|
742
746
|
let l = o;
|
|
743
747
|
if (t && t.merge && l && r) l = t.merge(l, r, n);
|
|
744
748
|
else if (!i && a) {
|
|
745
|
-
const
|
|
749
|
+
const c = Object.keys({ ...o, ...r });
|
|
746
750
|
l = null;
|
|
747
|
-
const p =
|
|
751
|
+
const p = c.length;
|
|
748
752
|
for (let w = 0; w < p; w++) {
|
|
749
|
-
const g =
|
|
753
|
+
const g = c[w];
|
|
750
754
|
let f, y = o[g];
|
|
751
755
|
if (y !== void 0) {
|
|
752
756
|
const x = a[g];
|
|
753
|
-
f = x ? (0,
|
|
757
|
+
f = x ? (0, Xe.resolveTypedUpdates)(y, x, n, r?.[g]) : y;
|
|
754
758
|
} else f = r?.[g];
|
|
755
759
|
f != null && (l = l ?? {}, l[g] = f);
|
|
756
760
|
}
|
|
757
761
|
}
|
|
758
762
|
return l;
|
|
759
763
|
};
|
|
760
|
-
const
|
|
764
|
+
const Ze = \`The Safari browser does not support advanced copy and paste.
|
|
761
765
|
Copy and paste will be limited to within the browser tab.
|
|
762
766
|
|
|
763
|
-
Please use Chrome or Edge if external copy and paste is required.\`,
|
|
764
|
-
All copy and paste operations will be limited to the browser tab.\`,
|
|
767
|
+
Please use Chrome or Edge if external copy and paste is required.\`, ge = \`You do not have permissions to access the clipboard.
|
|
768
|
+
All copy and paste operations will be limited to the browser tab.\`, wt = { Safari: \`The Safari browser does not support advanced copy and paste.
|
|
765
769
|
Copy and paste will be limited to within the browser tab.
|
|
766
770
|
|
|
767
|
-
Please use Chrome or Edge if external copy and paste is required.\`, Perms:
|
|
771
|
+
Please use Chrome or Edge if external copy and paste is required.\`, Perms: ge, PermsWrite: oe() === k.Safari ? Ze : ge, PermsRead: oe() === k.Safari ? Ze : ge }, be = async () => new Promise((e) => {
|
|
768
772
|
document.hasFocus() ? e() : globalThis.addEventListener?.("focus", () => {
|
|
769
773
|
e();
|
|
770
774
|
}, { once: !0 }), document.activeElement.focus?.();
|
|
771
|
-
}),
|
|
772
|
-
if (oe() === k.Safari) return await n(new Error(
|
|
775
|
+
}), Ee = async (e, t, n) => {
|
|
776
|
+
if (oe() === k.Safari) return await n(new Error(wt.Safari));
|
|
773
777
|
try {
|
|
774
778
|
const r = async (i) => {
|
|
775
779
|
try {
|
|
@@ -784,7 +788,7 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye,
|
|
|
784
788
|
} catch (r) {
|
|
785
789
|
return r.message === "No valid data on clipboard" || r.name === "DataError" ? void 0 : await n(r);
|
|
786
790
|
}
|
|
787
|
-
},
|
|
791
|
+
}, yt = async (e) => {
|
|
788
792
|
try {
|
|
789
793
|
return await e.read({ unsanitized: [S.html] });
|
|
790
794
|
} catch {
|
|
@@ -792,7 +796,7 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye,
|
|
|
792
796
|
return await e.read();
|
|
793
797
|
}, zt = async (e, t) => {
|
|
794
798
|
if (!e) return null;
|
|
795
|
-
const n = await
|
|
799
|
+
const n = await yt(e);
|
|
796
800
|
let r = !1;
|
|
797
801
|
for (let o = 0; !r && n && o < n.length; o++) if (r = n[o].types.includes(t), r)
|
|
798
802
|
return await n[o].getType(t);
|
|
@@ -805,9 +809,9 @@ if (!globalThis.ClipboardItem) {
|
|
|
805
809
|
this._items = {}, this._types = Object.keys(r);
|
|
806
810
|
const a = {}, i = Object.keys(r);
|
|
807
811
|
for (let l = 0; l < i.length; l++) {
|
|
808
|
-
const
|
|
809
|
-
let p = r[
|
|
810
|
-
a[
|
|
812
|
+
const c = i[l];
|
|
813
|
+
let p = r[c];
|
|
814
|
+
a[c] = typeof p == "string" ? e(c, p) : p;
|
|
811
815
|
}
|
|
812
816
|
this._items = a, this._presentationStyle = o?.presentationStyle ?? "unspecified";
|
|
813
817
|
}
|
|
@@ -823,7 +827,7 @@ if (!globalThis.ClipboardItem) {
|
|
|
823
827
|
}
|
|
824
828
|
globalThis.ClipboardItem = t;
|
|
825
829
|
}
|
|
826
|
-
const
|
|
830
|
+
const Te = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
827
831
|
try {
|
|
828
832
|
const o = await zt(e, t);
|
|
829
833
|
if (o) {
|
|
@@ -837,8 +841,8 @@ const ve = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
|
837
841
|
} catch (o) {
|
|
838
842
|
r(o);
|
|
839
843
|
}
|
|
840
|
-
}),
|
|
841
|
-
const n = await
|
|
844
|
+
}), Qe = async (e, t = S.html) => {
|
|
845
|
+
const n = await Te(e, t);
|
|
842
846
|
if (!n) return null;
|
|
843
847
|
let r = null;
|
|
844
848
|
try {
|
|
@@ -849,7 +853,7 @@ const ve = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
|
849
853
|
return r;
|
|
850
854
|
}, Kt = async (e) => {
|
|
851
855
|
e && await e.writeText("");
|
|
852
|
-
}, ae = "clipboard-uuid", Q = "web text/uuid",
|
|
856
|
+
}, ae = "clipboard-uuid", Q = "web text/uuid", et = (e) => \`<div style="display:none" \${ae}="\${e}"/>\`, Vt = (e, t) => {
|
|
853
857
|
let n = null;
|
|
854
858
|
try {
|
|
855
859
|
const r = new DOMParser().parseFromString(t, S.html);
|
|
@@ -858,7 +862,7 @@ const ve = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
|
858
862
|
console.warn("Can't embed uuid.", r);
|
|
859
863
|
}
|
|
860
864
|
return n;
|
|
861
|
-
},
|
|
865
|
+
}, tt = (e, t) => {
|
|
862
866
|
if (!t || !e) return !1;
|
|
863
867
|
try {
|
|
864
868
|
const n = t.querySelectorAll(\`[\${ae}="\${e}"]\`);
|
|
@@ -869,7 +873,7 @@ const ve = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
|
869
873
|
return !1;
|
|
870
874
|
}
|
|
871
875
|
};
|
|
872
|
-
class
|
|
876
|
+
class nt {
|
|
873
877
|
constructor(t) {
|
|
874
878
|
if (t?.nativeClipboard === void 0 || t?.nativeClipboard === !0) try {
|
|
875
879
|
this._nativeClipboard = globalThis?.navigator.clipboard;
|
|
@@ -880,12 +884,12 @@ class tt {
|
|
|
880
884
|
this._disableCheckOnFocus = t?.disableCheckOnFocus ?? !1, this._init();
|
|
881
885
|
}
|
|
882
886
|
async _checkForChanges() {
|
|
883
|
-
this._nativeClipboard && this._state && !this._disableCheckOnFocus && await
|
|
884
|
-
await
|
|
885
|
-
const t = await
|
|
887
|
+
this._nativeClipboard && this._state && !this._disableCheckOnFocus && await Ee("clipboard-read", async () => {
|
|
888
|
+
await be();
|
|
889
|
+
const t = await Te(this._nativeClipboard, Q);
|
|
886
890
|
if (!this._state || t && t === this._state.uuid) return !0;
|
|
887
|
-
const n = await
|
|
888
|
-
return !this._state || (
|
|
891
|
+
const n = await Qe(this._nativeClipboard, S.html);
|
|
892
|
+
return !this._state || (tt(this._state.uuid, n) || this.clear(), !0);
|
|
889
893
|
}, async (t) => {
|
|
890
894
|
t?.message === "denied" || t.message?.includes("Document is not focused") || oe() === k.Safari || console.warn("Unable to detect clipboard changes: ", t);
|
|
891
895
|
});
|
|
@@ -903,14 +907,14 @@ class tt {
|
|
|
903
907
|
async read() {
|
|
904
908
|
if (!this._nativeClipboard) return this._state?.items ?? null;
|
|
905
909
|
const t = this;
|
|
906
|
-
return await
|
|
907
|
-
if (await
|
|
908
|
-
const n = await
|
|
910
|
+
return await Ee("clipboard-read", async () => {
|
|
911
|
+
if (await be(), this._state?.uuid) {
|
|
912
|
+
const n = await Te(this._nativeClipboard, Q);
|
|
909
913
|
if (n && n === t._state.uuid) return !0;
|
|
910
|
-
const r = await
|
|
911
|
-
if (
|
|
914
|
+
const r = await Qe(this._nativeClipboard, S.html);
|
|
915
|
+
if (tt(t._state?.uuid, r)) return !0;
|
|
912
916
|
}
|
|
913
|
-
return t._state = { items: await
|
|
917
|
+
return t._state = { items: await yt(this._nativeClipboard), uuid: null, ref: null }, this.dispatchEvent(new Event("clipboardread")), !0;
|
|
914
918
|
}, async (n) => {
|
|
915
919
|
this.dispatchEvent(new Event("clipboarderrorread"));
|
|
916
920
|
}), this._state?.items ?? [];
|
|
@@ -925,31 +929,31 @@ class tt {
|
|
|
925
929
|
const i = () => {
|
|
926
930
|
n._state = { uuid: o, ref: t.ref, items: r }, n.dispatchEvent(new Event("clipboardwrite")), n.dispatchEvent(new Event("clipboardchange"));
|
|
927
931
|
};
|
|
928
|
-
await
|
|
929
|
-
await
|
|
932
|
+
await Ee("clipboard-write", async () => {
|
|
933
|
+
await be(), o && a.length === 0 && (a.push(new ClipboardItem({ [Q]: new Blob([o], { type: Q }) })), a.push(new ClipboardItem({ [S.html]: new Blob([et(o)], { type: S.html }) })));
|
|
930
934
|
for (let l = 0; l < Math.min(1, a.length); l++) {
|
|
931
|
-
const
|
|
932
|
-
let p =
|
|
935
|
+
const c = a[l];
|
|
936
|
+
let p = c.types.indexOf(S.html), w = null;
|
|
933
937
|
if (p !== -1) {
|
|
934
|
-
const y = await
|
|
935
|
-
w = await
|
|
938
|
+
const y = await c.getType(S.html);
|
|
939
|
+
w = await ve(y), w && (w = Vt(o, w));
|
|
936
940
|
}
|
|
937
|
-
if (!w &&
|
|
938
|
-
const y = await
|
|
941
|
+
if (!w && c.types.includes(S.plain)) {
|
|
942
|
+
const y = await c.getType(S.plain);
|
|
939
943
|
if (y) {
|
|
940
944
|
let x = null;
|
|
941
|
-
typeof y == "string" ? (console.warn("text as string", y), x = y) : x = await
|
|
945
|
+
typeof y == "string" ? (console.warn("text as string", y), x = y) : x = await ve(y), x && (w = \`<div \${ae}="\${o}">\${x}</div>\`);
|
|
942
946
|
}
|
|
943
947
|
}
|
|
944
|
-
if (!w &&
|
|
945
|
-
const y = await
|
|
946
|
-
w = \`<div \${ae}="\${o}"><img src="\${
|
|
948
|
+
if (!w && c.types.includes(S.png)) {
|
|
949
|
+
const y = await c.getType(S.png), x = pt(await y.arrayBuffer());
|
|
950
|
+
w = \`<div \${ae}="\${o}"><img src="\${ht + x}"/></div>\`;
|
|
947
951
|
}
|
|
948
|
-
!w && o && (w =
|
|
952
|
+
!w && o && (w = et(o));
|
|
949
953
|
const g = new Blob([w ?? ""], { type: S.html }), f = {};
|
|
950
|
-
for (let y = 0; y <
|
|
951
|
-
const x =
|
|
952
|
-
f[x] = y === p ? g :
|
|
954
|
+
for (let y = 0; y < c.types.length; y++) {
|
|
955
|
+
const x = c.types[y];
|
|
956
|
+
f[x] = y === p ? g : c.getType(x);
|
|
953
957
|
}
|
|
954
958
|
w && p === -1 && (f[S.html] = g), o && (f[Q] = new Blob([o], { type: Q })), r.push(new ClipboardItem(f));
|
|
955
959
|
}
|
|
@@ -1040,11 +1044,11 @@ class tt {
|
|
|
1040
1044
|
globalThis.removeEventListener?.("focus", this._onFocus), globalThis.removeEventListener?.("blur", this._onBlur);
|
|
1041
1045
|
}
|
|
1042
1046
|
}
|
|
1043
|
-
var
|
|
1044
|
-
(
|
|
1045
|
-
const
|
|
1047
|
+
var Se;
|
|
1048
|
+
(Se = nt || (nt = {})).ErrorMessages = wt, Se.Global = new Se();
|
|
1049
|
+
const qt = "__SHEETXL";
|
|
1046
1050
|
let ee = null, le = null;
|
|
1047
|
-
async function
|
|
1051
|
+
async function Gt() {
|
|
1048
1052
|
if (ee)
|
|
1049
1053
|
return ee;
|
|
1050
1054
|
if (le) {
|
|
@@ -1071,9 +1075,9 @@ const Wt = {
|
|
|
1071
1075
|
target: "esnext"
|
|
1072
1076
|
}
|
|
1073
1077
|
};
|
|
1074
|
-
async function Yt(e, t, n = "/script.js", r =
|
|
1078
|
+
async function Yt(e, t, n = "/script.js", r = qt) {
|
|
1075
1079
|
try {
|
|
1076
|
-
const o = await
|
|
1080
|
+
const o = await Gt(), a = "@sheetxl/primitives", i = \`
|
|
1077
1081
|
export const FormulaContext = globalThis.\${r}?.FormulaContext;
|
|
1078
1082
|
export const ScalarType = globalThis.\${r}?.ScalarType;
|
|
1079
1083
|
export const Observable = globalThis.\${r}?.Observable;
|
|
@@ -1108,7 +1112,7 @@ async function Yt(e, t, n = "/script.js", r = Gt) {
|
|
|
1108
1112
|
};
|
|
1109
1113
|
});
|
|
1110
1114
|
}
|
|
1111
|
-
},
|
|
1115
|
+
}, c = await o.build({
|
|
1112
1116
|
entryPoints: [n],
|
|
1113
1117
|
// Use the virtual entry point
|
|
1114
1118
|
bundle: !0,
|
|
@@ -1131,9 +1135,9 @@ async function Yt(e, t, n = "/script.js", r = Gt) {
|
|
|
1131
1135
|
platform: "neutral"
|
|
1132
1136
|
// not really needed
|
|
1133
1137
|
});
|
|
1134
|
-
if (
|
|
1135
|
-
return
|
|
1136
|
-
throw
|
|
1138
|
+
if (c.outputFiles && c.outputFiles.length > 0)
|
|
1139
|
+
return c.outputFiles[0].text;
|
|
1140
|
+
throw c.errors && c.errors.length > 0 ? new Error(\`esbuild bundling failed: \${c.errors.map((p) => p.text).join(\`
|
|
1137
1141
|
\`)}\`) : new Error("esbuild did not produce an output file.");
|
|
1138
1142
|
} catch (o) {
|
|
1139
1143
|
throw console.error("esbuild bundling process failed:", o), o;
|
|
@@ -1156,16 +1160,16 @@ interface Promise<T> {
|
|
|
1156
1160
|
interface FirstTest {
|
|
1157
1161
|
isTrue?: boolean;
|
|
1158
1162
|
}
|
|
1159
|
-
\`, Xt = async () => Ht,
|
|
1163
|
+
\`, Xt = async () => Ht, gt = /* @__PURE__ */ new Map([
|
|
1160
1164
|
["IReferenceRange", "r"],
|
|
1161
1165
|
["IRange", "l"]
|
|
1162
|
-
]),
|
|
1166
|
+
]), bt = /* @__PURE__ */ new Map([
|
|
1163
1167
|
["IWorkbook", "workbook"],
|
|
1164
1168
|
["ISheet", "sheet"],
|
|
1165
1169
|
["ICellRanges", "ranges"],
|
|
1166
1170
|
["ICellRange", "range"],
|
|
1167
1171
|
["IFormulaContext", "context"]
|
|
1168
|
-
]),
|
|
1172
|
+
]), Oe = (e, t) => {
|
|
1169
1173
|
Array.from(t.keys()).forEach((r) => {
|
|
1170
1174
|
const o = t.get(r);
|
|
1171
1175
|
t.set(\`\${e}.\${r}\`, o);
|
|
@@ -1177,10 +1181,10 @@ interface Promise<T> {
|
|
|
1177
1181
|
["JSON", "JSON"]
|
|
1178
1182
|
]), Qt = /* @__PURE__ */ new Map([
|
|
1179
1183
|
// Repeating
|
|
1180
|
-
]),
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
+
]), Ie = "SheetXL";
|
|
1185
|
+
Oe(Ie, gt);
|
|
1186
|
+
Oe(Ie, bt);
|
|
1187
|
+
Oe(Ie, Qt);
|
|
1184
1188
|
const en = /* @__PURE__ */ new Map([
|
|
1185
1189
|
["Promise", () => ({ async: !0 })],
|
|
1186
1190
|
// ['PromiseLike', (): Partial<IFunction.ReturnTypeJSON> => {
|
|
@@ -1210,7 +1214,7 @@ async function nn(e) {
|
|
|
1210
1214
|
//import('typescript'), // when bundled, but node check causes issues. We could bundle replace isNode but felt hacky
|
|
1211
1215
|
tn()
|
|
1212
1216
|
], o = await Promise.all(r), a = o[0], i = o[1];
|
|
1213
|
-
let l = "",
|
|
1217
|
+
let l = "", c = null;
|
|
1214
1218
|
const p = [], w = {
|
|
1215
1219
|
allowJs: !0,
|
|
1216
1220
|
declaration: !1,
|
|
@@ -1247,7 +1251,7 @@ async function nn(e) {
|
|
|
1247
1251
|
\`
|
|
1248
1252
|
}, U = i.createProgram([f, x], w, D), I = U.getTypeChecker(), J = U.getSourceFile(f), E = U.emit();
|
|
1249
1253
|
E.diagnostics.length > 0 && console.warn(E.diagnostics), l = A[\`\${g}.js\`];
|
|
1250
|
-
const
|
|
1254
|
+
const u = (s, m, L, P) => {
|
|
1251
1255
|
if (!s) {
|
|
1252
1256
|
$(s, new Error(\`Type is not defined for '\${m?.name ?? "return"}'.\`));
|
|
1253
1257
|
return;
|
|
@@ -1274,15 +1278,15 @@ async function nn(e) {
|
|
|
1274
1278
|
$(s, new Error(\`'Array' must be typed: '\${s?.parent?.name?.escapedText}'.\`));
|
|
1275
1279
|
return;
|
|
1276
1280
|
}
|
|
1277
|
-
m.arrayDepth = (m.arrayDepth ?? 0) + 1,
|
|
1281
|
+
m.arrayDepth = (m.arrayDepth ?? 0) + 1, u(M, m, L, P);
|
|
1278
1282
|
} else if (s.kind !== i.SyntaxKind.TupleType) {
|
|
1279
1283
|
if (s.kind === i.SyntaxKind.TypeReference) {
|
|
1280
|
-
const M = s.typeName?.getText?.() ?? null, K =
|
|
1284
|
+
const M = s.typeName?.getText?.() ?? null, K = gt.get(M);
|
|
1281
1285
|
let V = !1;
|
|
1282
1286
|
K && (m.range = K, V = !0);
|
|
1283
|
-
const
|
|
1284
|
-
if (
|
|
1285
|
-
const R =
|
|
1287
|
+
const q = Zt.get(M);
|
|
1288
|
+
if (q && (m.scalar = q), q !== void 0 && (V = !0), P) {
|
|
1289
|
+
const R = bt.get(M);
|
|
1286
1290
|
if (R)
|
|
1287
1291
|
return R;
|
|
1288
1292
|
} else {
|
|
@@ -1307,7 +1311,7 @@ async function nn(e) {
|
|
|
1307
1311
|
$(s, new Error(\`'\${M}' must be typed with exactly 1 type: '\${s?.parent?.name?.escapedText}'.\`));
|
|
1308
1312
|
return;
|
|
1309
1313
|
}
|
|
1310
|
-
|
|
1314
|
+
u(H[0], m, L, P);
|
|
1311
1315
|
}
|
|
1312
1316
|
}
|
|
1313
1317
|
}
|
|
@@ -1327,14 +1331,14 @@ async function nn(e) {
|
|
|
1327
1331
|
R = R.replace(/[\\r\\n]+/g, "\\\\n").trim(), L.summary = R;
|
|
1328
1332
|
}
|
|
1329
1333
|
const V = {};
|
|
1330
|
-
|
|
1331
|
-
const
|
|
1332
|
-
fe(s) && (
|
|
1334
|
+
u(s.type, V, m, !1), m.returnType = V;
|
|
1335
|
+
const q = {};
|
|
1336
|
+
fe(s) && (q.default = !0, c = P), Object.keys(q).length > 0 && (m.behavior = q), m.parameters = [];
|
|
1333
1337
|
const H = /* @__PURE__ */ new Map();
|
|
1334
1338
|
for (let R = 0; R < s.parameters.length; R++) {
|
|
1335
1339
|
const b = s.parameters[R], N = {};
|
|
1336
1340
|
N.name = b.name?.getText();
|
|
1337
|
-
const X =
|
|
1341
|
+
const X = u(b.type, N, m, !0);
|
|
1338
1342
|
if (X) {
|
|
1339
1343
|
if (m.parameters.length !== 0) {
|
|
1340
1344
|
const F = s?.parent?.name?.getText();
|
|
@@ -1355,8 +1359,8 @@ async function nn(e) {
|
|
|
1355
1359
|
b.dotDotDotToken && (N.rest = !0), m.parameters.push(N);
|
|
1356
1360
|
const C = { description: "" };
|
|
1357
1361
|
L.parameters[N.name] = C;
|
|
1358
|
-
const
|
|
1359
|
-
|
|
1362
|
+
const G = I.getSymbolAtLocation(b.name).getDocumentationComment(I);
|
|
1363
|
+
G && G.length > 0 && G[0].text && (C.description = G[0].text), v !== void 0 && (C.defaultValue = v), H.set(N.name, N);
|
|
1360
1364
|
}
|
|
1361
1365
|
if (s.jsDoc && s.jsDoc.length > 0) {
|
|
1362
1366
|
const R = s.jsDoc;
|
|
@@ -1369,14 +1373,14 @@ async function nn(e) {
|
|
|
1369
1373
|
if (!v) continue;
|
|
1370
1374
|
v = v.toLowerCase();
|
|
1371
1375
|
let C = z.comment;
|
|
1372
|
-
const
|
|
1373
|
-
if (!(typeof C != "string" && !
|
|
1376
|
+
const G = v === "hidden";
|
|
1377
|
+
if (!(typeof C != "string" && !G) && (typeof C == "string" && (C = C.replace(/[\\r\\n]+/g, "\\\\n").trim()), !(!G && C && (C = C.split(/\\\\n/)[0], !C || C.length === 0)))) {
|
|
1374
1378
|
if (C && typeof C == "string") {
|
|
1375
1379
|
const O = /\\{@link(code|plain)?\\s+([^}|]+)(?:\\s*\\|\\s*([^}]+))?\\}/g;
|
|
1376
1380
|
let F, Z = C, te = [];
|
|
1377
1381
|
for (; (F = O.exec(C)) !== null; ) {
|
|
1378
|
-
const [pe, he,
|
|
1379
|
-
|
|
1382
|
+
const [pe, he, St, Re] = F, xt = [St.trim()];
|
|
1383
|
+
Re && xt.push(Re.trim());
|
|
1380
1384
|
}
|
|
1381
1385
|
C = Z, te.length > 0 && v === "see" && (L.links || (L.links = []), L.links.push(...te));
|
|
1382
1386
|
}
|
|
@@ -1431,22 +1435,22 @@ async function nn(e) {
|
|
|
1431
1435
|
throw console.warn(B), new Error("There were compilation errors.", { cause: B });
|
|
1432
1436
|
if (p.length === 0)
|
|
1433
1437
|
throw new Error("No exported functions.");
|
|
1434
|
-
const
|
|
1438
|
+
const Et = \`\${$t.uuidV4()}-script\`;
|
|
1435
1439
|
try {
|
|
1436
1440
|
!n && B.length === 0 && (l = await Yt(i, l, g));
|
|
1437
1441
|
} catch {
|
|
1438
1442
|
console.warn("Error bundling script");
|
|
1439
1443
|
}
|
|
1440
|
-
const
|
|
1444
|
+
const Ne = {
|
|
1441
1445
|
functions: p,
|
|
1442
|
-
commitId:
|
|
1446
|
+
commitId: Et,
|
|
1443
1447
|
source: t,
|
|
1444
1448
|
name: "Script",
|
|
1445
1449
|
language: "typescript",
|
|
1446
1450
|
// default
|
|
1447
1451
|
compiled: l
|
|
1448
1452
|
};
|
|
1449
|
-
return
|
|
1453
|
+
return c && (Ne.autoRun = c), Ne;
|
|
1450
1454
|
}
|
|
1451
1455
|
self.addEventListener("message", async (e) => {
|
|
1452
1456
|
const { id: t, params: n } = e.data;
|
|
@@ -1505,4 +1509,4 @@ var ln = /* @__PURE__ */ Object.freeze({
|
|
|
1505
1509
|
__proto__: null,
|
|
1506
1510
|
initialize: an
|
|
1507
1511
|
});
|
|
1508
|
-
`,i=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=i&&(self.URL||self.webkitURL).createObjectURL(i),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./
|
|
1512
|
+
`,i=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=i&&(self.URL||self.webkitURL).createObjectURL(i),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./XseOGnoB6WRWeL1h.cjs")),n=new u(t=>e(t));return await n.start(),n};exports.createCompilerWorker=async function(){if(typeof process<"u"&&process.versions?.node&&typeof Worker>"u")return await l();if(typeof Worker<"u"){const e=new c(()=>new d);try{return await e.start(),e}catch(n){console.error("Failed to start TypescriptCompiler worker reverting to fallback:",n)}}return await l()};
|