@sheetxl/studio-vanilla 0.8.0-beta.5 → 0.8.0-beta.7
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/{CQfkl_5YTtPzqRSg.cjs → -fvFQTbevbuRecGW.cjs} +1 -1
- package/browser/cjs/{pWgqqjBa4jIrxyvw.cjs → 1bLr8XHpEtM2MjCk.cjs} +1 -1
- package/browser/cjs/5drI55_IEkX8nx_B2.cjs +8 -0
- package/browser/cjs/{-pHZ0FglrwHVe1pv.cjs → B0gP-9ZXQb_QZ8Jm.cjs} +1 -1
- package/browser/cjs/{DWaaProrT5w4AQi4.cjs → B1yQqy3iSI5uZPt3.cjs} +1 -1
- package/browser/cjs/{aTngYYEK_h4_TqHo2.cjs → B4VCKO11wngJjEO92.cjs} +1 -1
- package/browser/cjs/{CS4wNxH88XJVjGU0.cjs → B6T_y0ce8SbjxV-I.cjs} +1 -1
- package/browser/cjs/{D9H7eKWKcSjA08Zi2.cjs → B6k5f9VFbYVTvfVE2.cjs} +1 -1
- package/browser/cjs/BCaRwsX64XTvboxS.cjs +93 -0
- package/browser/cjs/{CAlbD-ahsKIYPLxV2.cjs → BCm6d5TSyOWIner52.cjs} +1 -1
- package/browser/cjs/BDnKbuPYvsWYP-3w.cjs +14 -0
- package/browser/cjs/{CPpaoS366U54RWte.cjs → BInT189S2DdzvIhp.cjs} +1 -1
- package/browser/cjs/{Y2E8S2qjo-X637U3.cjs → BPjFqEo3wA9GJNPE.cjs} +1 -1
- package/browser/cjs/BPtsVWnUZPVQBm21.cjs +22 -0
- package/browser/cjs/BTr4bJxe0-3IBHPb.cjs +2 -0
- package/browser/cjs/BUh9jPBJDMwQarBZ.cjs +1 -0
- package/browser/cjs/{B8pxNq6Do9BXuxnW.cjs → BUm56uGV9gjkjukY.cjs} +1 -1
- package/browser/cjs/BbMNM5e-lfDFkOvn2.cjs +1 -0
- package/browser/cjs/{DWyFHz2jCB9Ej_YQ.cjs → BbXbe-bwCJLD279F.cjs} +1 -1
- package/browser/cjs/{CMOeL2fuTqmW07BD.cjs → Be1L2JmTBCRa52VW.cjs} +650 -694
- package/browser/cjs/{BmP-beLcejV6RRzL.cjs → BjQ-fIDc7Z3qMcPY.cjs} +1 -1
- package/browser/cjs/{Ck-uFI-6VF3NMr4v.cjs → BmdFT-Ie0SY8YqFf.cjs} +1 -1
- package/browser/cjs/{CjqMMBQ8Kk0moB_z.cjs → BnXCqfKX491kQrtl.cjs} +1 -1
- package/browser/cjs/{DvbNUe-4CGh0IgQt.cjs → Bzd1x5C01LQtiSb0.cjs} +1 -1
- package/browser/cjs/C03SW3gXtIOgEr3A.cjs +43 -0
- package/browser/cjs/C2THZMKIDIU8VSFH2.cjs +1 -0
- package/browser/cjs/{C6c8mL5CgmHaGKS8.cjs → C5RvrnAGhfLzpBNO.cjs} +1 -1
- package/browser/cjs/C9RqCKNI0CK1VHnE2.cjs +1 -0
- package/browser/cjs/CA37AwwfHsjvbZT62.cjs +1 -0
- package/browser/cjs/{i2rygY6lV8CpJIBa.cjs → CEEuvrhhkW5TgJnc.cjs} +3 -3
- package/browser/cjs/CLEx2DRw3kmsrkt82.cjs +1 -0
- package/browser/cjs/{6V1LlorEUj_nSWnU.cjs → CZTLmhvlTal7rnXb2.cjs} +1 -1
- package/browser/cjs/CgfPOPhwYwiOfpBy.cjs +1 -0
- package/browser/cjs/CkIFp77GQAFoyjtq.cjs +1 -0
- package/browser/cjs/CsGKVtbBtGlgkYJw2.cjs +1 -0
- package/browser/cjs/{H7GCoq8sv5AfDWcU2.cjs → Ct45LEBcOGxMU-VE2.cjs} +1 -1
- package/browser/cjs/{K-menOImhm6Qcwkr.cjs → D3gV1sduXTeibviI.cjs} +1 -1
- package/browser/cjs/{PVM_8Czy_QchyPbY.cjs → D9hGhZ8wId9qKZlT.cjs} +1 -1
- package/browser/cjs/{DEG5zPL5j1fLGSt42.cjs → DB7uY0V24myTsCAO2.cjs} +1 -1
- package/browser/cjs/{DDFt0sUTKfAcQPPd.cjs → DFfYZJqlytuKuwBJ.cjs} +1 -1
- package/browser/cjs/{BGWllzPl0ZZpYb85.cjs → DKdgEj89ChMWaDQz.cjs} +2 -2
- package/browser/cjs/DRgeBTxGZFx-ukKA.cjs +1 -0
- package/browser/cjs/DXGjBmROptbxP3On.cjs +24 -0
- package/browser/cjs/DXJEany3J8zAcDA5.cjs +32 -0
- package/browser/cjs/Dgxx0CvoFxJobjxY.cjs +1 -0
- package/browser/cjs/DnMx7IQDtha_NuLB2.cjs +1 -0
- package/browser/cjs/Dx79LP1-YCQg8B872.cjs +1 -0
- package/browser/cjs/GN7MZBww4pHIrihk.cjs +5 -0
- package/browser/cjs/{uwL_7o9DIJyenW1_.cjs → HR_JYXh2W9xtKFL2.cjs} +1 -1
- package/browser/cjs/ImnRKBYtNpv7bEa7.cjs +3 -0
- package/browser/cjs/{CvjJnxfMX3aal6Zj2.cjs → O6F5xVsoF2hTiprv2.cjs} +1 -1
- package/browser/cjs/YGQWfCXmA-65lrhA2.cjs +1 -0
- package/browser/cjs/{DdaTLh6vF5y310CX2.cjs → ahQaPMczi7feo-ae2.cjs} +1 -1
- package/browser/cjs/{CFBCm2JGyntY_T_G2.cjs → eCs1q0PICk1snU-12.cjs} +1 -1
- package/browser/cjs/index.cjs +1 -1
- package/browser/cjs/{B-Iy-uZsTIHDkogf2.cjs → namqZsBygpcj2yf42.cjs} +1 -1
- package/browser/cjs/voiGKFLz_nq_RGBY2.cjs +1 -0
- package/browser/esm/{8byAl8o3b5ERzC2f.mjs → 1Xvtgcae3VR_6R8I.mjs} +10 -10
- package/browser/esm/{BVLs5hMoDYB3C1o22.mjs → 4YGRiYPupFKq8BfP2.mjs} +1 -1
- package/{cdn/assets/CtwFmaqTopRJLzS-2.js → browser/esm/5DCw2IuKPn_ERodw2.mjs} +1 -1
- package/browser/esm/{nY56r1ctOp0l-Cj42.mjs → 9cn1ewqq1BWmzgIL2.mjs} +1 -1
- package/browser/esm/{uf2cbFmQ5GH4QguP.mjs → B-svf5wq7V5QDtO4.mjs} +12 -12
- package/browser/esm/{BXyAtmroS_bl4Hb1.mjs → B1ZEbc_b-Hug9WON.mjs} +1 -1
- package/{cdn/assets/CwIRaew_lypEkoUe2.js → browser/esm/B3PPwwyNEblsUOL8.mjs} +1 -1
- package/browser/esm/{uCF09-daiySIvpQn.mjs → B4OkD-x-7fL0aUxy.mjs} +5 -5
- package/{cdn/assets/DaHGI3svC3_Ne-4m.js → browser/esm/B4g2Yf4whV01sYya2.mjs} +1 -1
- package/browser/esm/{C62f10Gyl_4h66X22.mjs → B4jNGg7_t9JeroNp2.mjs} +18 -4
- package/{cdn/assets/DOl37EQPys2hSQ8A2.js → browser/esm/BA63EN1awAh-Inzl.mjs} +839 -736
- package/{cdn/assets/ByJEKW7Yb2GMOYw1.js → browser/esm/BASSDm-JY_bgolFA2.mjs} +1 -1
- package/browser/esm/{9XdPIuWzuP_fNsMc.mjs → BBmgXo0P8kU87RB42.mjs} +1 -1
- package/browser/esm/{D6J-1hSJ63oZwM1Y.mjs → BD1aTBqOuoKSzGSD.mjs} +23 -23
- package/browser/esm/{3GyY2zv58tP35TSP2.mjs → BDFm0nphkYgT4nS22.mjs} +9 -9
- package/browser/esm/{DvNptskytLmS92UC.mjs → BJXpsm4jy1MQEydA.mjs} +4117 -3014
- package/browser/esm/{ChuTJoGpKAZ1jbdn.mjs → BPnA1nEVe1clG1IF.mjs} +4 -4
- package/browser/esm/{DWOXBo1RfTbNiz5y.mjs → BQkwe2PCHBQEw--9.mjs} +2 -2
- package/{cdn/assets/CGphh091pmrMF0fz2.js → browser/esm/BRSPE-Kbm0TK7bm4.mjs} +1 -1
- package/browser/esm/{YaFGb13NzomqlPhx.mjs → BS7DCPO7VdYxiXF82.mjs} +1 -1
- package/{cdn/assets/bY3efNg89jFPogek2.js → browser/esm/BSlFBKA1YartFibf.mjs} +152 -151
- package/browser/esm/{DqR9ypY2lo7NdhdA.mjs → BT8V24glIXLW0J7i.mjs} +1 -1
- package/browser/esm/{DLWy3-8VQfVD6kwY.mjs → BZvD2AxAqbnxspY6.mjs} +4598 -3680
- package/browser/esm/{Dh7MPAd98iiUhXf2.mjs → BZwg6XaGq6GshkAo.mjs} +599 -597
- package/browser/esm/{X5MjCuPO8Yr739vZ.mjs → Bb-mZ1cMsciuz4ww.mjs} +248 -244
- package/browser/esm/{DKvEwaJfPWiOP8fE2.mjs → BcO0tjxUkaw8VKEE2.mjs} +8 -8
- package/browser/esm/{BQaSJTMvIv7JCgD62.mjs → BdTAWhP-loxlROWg2.mjs} +1 -1
- package/{cdn/assets/FBT-Uj-UHaWcC9hf2.js → browser/esm/BdZUKtFZuJHAUStY.mjs} +159 -73
- package/browser/esm/{8CSB84e_emQV5R8x.mjs → Bdf9NRBqMDRFuqxL.mjs} +1 -1
- package/browser/esm/{MtvgycEqvj_iaI_a.mjs → BefWPzywuI_Ptwju.mjs} +12 -12
- package/{cdn/assets/DPFLq_i4WqawDi012.js → browser/esm/BfqHVT9RAMHzPrq22.mjs} +1 -1
- package/{cdn/assets/CaQy0UO3TARwf9lv2.js → browser/esm/Bi82rHDsiL2lqeRo2.mjs} +1 -1
- package/browser/esm/{BxWGBuBUE-ef4qaS2.mjs → Bjpm9ZVaFQRdne7s.mjs} +1 -1
- package/browser/esm/{B0UFSNuNXaITFeUo.mjs → BkU3OKqpa0ddsfDs.mjs} +2 -2
- package/browser/esm/{B0UFSNuNXaITFeUo2.mjs → BkU3OKqpa0ddsfDs2.mjs} +2 -2
- package/browser/esm/{BRClrw1gCHOYle2g.mjs → BmHI7i54YtVAcFrP.mjs} +5 -5
- package/browser/esm/{4uPEJOprzEht4SzA.mjs → Bp36kaEEsGhP709t2.mjs} +1 -1
- package/browser/esm/{BcG0JULge5x_L8Es2.mjs → Br0flZ59oGm_KTug2.mjs} +2 -2
- package/{cdn/assets/BxVi9Yt82U55JbkE.js → browser/esm/BrDePmlBu6Hb4zjJ.mjs} +1 -1
- package/browser/esm/{CH8HIhB841-G2xQ8.mjs → BrUW8pfVTjf65sDi2.mjs} +2 -2
- package/{cdn/assets/BrBFY1fUM6isyJR7.js → browser/esm/Bt3ndQy-OnI4OHTz.mjs} +1 -1
- package/{cdn/assets/BkUQ2rZTe8VAO1oB.js → browser/esm/BtPBnZB0UiICvNBH.mjs} +3 -3
- package/browser/esm/{C_nwA5FGYFKge7oa.mjs → Bu8wK5Vy7X9Vp_2S.mjs} +2 -2
- package/browser/esm/{BDC1gzaNCs82vYHQ.mjs → BuBAtTrlYVvU86de.mjs} +6 -6
- package/browser/esm/{CcwkG-z-iFoCFOt1.mjs → BxetdicosmSVg2vW.mjs} +9 -9
- package/browser/esm/{X1dNP9JuUJDTSSUz2.mjs → BxhPqvaARsOu1pOy2.mjs} +1448 -1681
- package/browser/esm/{6UKBDybUcMTwrAg4.mjs → ByGJZ2rruqWUbaGY.mjs} +6 -6
- package/browser/esm/{Eiawyv29d1WfCkp72.mjs → BzY-TCedGBSg3UzZ2.mjs} +7 -7
- package/browser/esm/{B0bZyS8PEuQdlbWK.mjs → C-X2_FUeulh-Fay1.mjs} +5 -5
- package/browser/esm/{C458ofhQ4Q6OuqGD2.mjs → C18TArpE7wOvMYXB2.mjs} +14 -14
- package/{cdn/assets/CRZ6nMW0sPFhGN8u.js → browser/esm/C2DL_mDwKLFZBqvN2.mjs} +1 -1
- package/{cdn/assets/QK8wPJEXtMpUkF5O.js → browser/esm/C55NEfrA6s_yuajX2.mjs} +1 -1
- package/{cdn/assets/Bb2KUiusJj-R9-bL.js → browser/esm/C6eVL3m02S-Qj2uy2.mjs} +1 -1
- package/browser/esm/{CSeYl-X-bL3-wwj22.mjs → C7926vmEK1-oM95A2.mjs} +18 -18
- package/browser/esm/{CG1w46Kqn0AmNJjP.mjs → C7Em8LjBH1VJoyfm.mjs} +1 -1
- package/browser/esm/{DO_srLsUC5FrarXA2.mjs → C82u-7ClfP9SoGOY2.mjs} +10 -10
- package/{cdn/assets/CAJyOPOsOhkyreOa.js → browser/esm/C8jJJ5X2nIRCaMcu2.mjs} +1 -1
- package/browser/esm/{BZ6fnTTLyw1RMWk32.mjs → CBv1rU3xPDQ-215V2.mjs} +9 -9
- package/browser/esm/{DVKsvS22o0v0glGu.mjs → CCIybQZ3Tgu4CxnN.mjs} +1 -1
- package/browser/esm/{CFQz07nMv0V8904P.mjs → CD-JsN04jY0VyY1v.mjs} +1 -1
- package/browser/esm/{QWhoO1D-tt9yab9K2.mjs → CFnqyLJDpOXdxb3c2.mjs} +5 -5
- package/browser/esm/{CrjTHME_ZD6LcTDU.mjs → CHCc5YuSbtNgC6qQ.mjs} +1 -1
- package/browser/esm/{zMr7JGzVhJy9UkSR.mjs → CJfK3Zm2ZKVEv5Mv.mjs} +1 -1
- package/{cdn/assets/BLqwwpQl8XESCuBb.js → browser/esm/COJLKiCysD7hs2jG.mjs} +1 -1
- package/browser/esm/{BW1dPK38H6_2KNgN.mjs → COqCbm81u1WaCS7k.mjs} +1 -1
- package/browser/esm/{B7wQkwBdwRb7kacm.mjs → CWJBcuvUa2RVQMju.mjs} +3 -3
- package/browser/esm/{BaLJfxCFTS-J7Qn3.mjs → CY8tngENYkEZn2SB.mjs} +6 -6
- package/browser/esm/{CzgGRoHeo-ZNAb5d.mjs → C__NPFffG8xrVl4W.mjs} +12 -12
- package/{cdn/assets/CTC5YAOtLAZGGiUL2.js → browser/esm/CaHBZElxMjo_v4LY2.mjs} +1 -1
- package/browser/esm/{CdcmFHYIMwynrOPS.mjs → Cl_mxlCr73V-Yg6k.mjs} +10977 -9832
- package/browser/esm/{CdA4fRy3QcuvWfzj.mjs → CoqDXeaMS0XICCe2.mjs} +1 -1
- package/browser/esm/{DRZYMJA0Mk0SbohL2.mjs → CtIl_LU__yf7i0CI2.mjs} +17 -17
- package/browser/esm/D-oV3YlvN_279OAe.mjs +236 -0
- package/{cdn/assets/BRHP1tO4uz2mscfE2.js → browser/esm/D3aXs7hDPXNqjUte.mjs} +2 -2
- package/{cdn/assets/DbHaqFzeVSgieXnR.js → browser/esm/D4cHE39d638a1U-y2.mjs} +1 -1
- package/{cdn/assets/BOQ_aIsihPsIbZKi.js → browser/esm/D5MFyg_gQzrtkU5q2.mjs} +1 -1
- package/{cdn/assets/Bn0Zl7pydiHARthC.js → browser/esm/D9h6T10d18-OYsnY.mjs} +1 -1
- package/browser/esm/{DqzA7RtNUvsLdscx2.mjs → DCOuB4SkbT3JU9bd2.mjs} +7 -7
- package/{cdn/assets/buApadOsUzJffqMK.js → browser/esm/DFHP3kC1VW25l54r2.mjs} +1 -1
- package/{cdn/assets/Df4TV780zP-UkbB1.js → browser/esm/DFfqXOHApBHKjPmq.mjs} +1 -1
- package/browser/esm/{cIxxV_90h2dPQozO2.mjs → DFgibCVRkv7ROc5v2.mjs} +1 -1
- package/browser/esm/{DNlaQkWEr2q-g0dd.mjs → DIxQ75X7k8keCEPD.mjs} +4 -4
- package/{cdn/assets/D1ux3f7S9r50KVKs.js → browser/esm/DJfrSiVd9Hm9g2d2.mjs} +1 -1
- package/browser/esm/{uY2BXFDda7fHQFuK.mjs → DL_mqnTNaFcgm_nY.mjs} +2 -2
- package/{cdn/assets/CAR-0i_rg3wlCjH72.js → browser/esm/DLxFo71kHJsGXBZ3.mjs} +1 -1
- package/browser/esm/{CpftofIbZs_pRecS.mjs → DNwEAT1MO-6FRFlC.mjs} +5 -5
- package/browser/esm/{DTRizK5R37HoZ_f1.mjs → DU8ox87tBW2BnWct.mjs} +16 -16
- package/browser/esm/DZUjFTXDHp2HSvYN.mjs +226 -0
- package/browser/esm/{OuSJblL799bkmWSG2.mjs → D_Iw8uMiIvx2jhcv2.mjs} +1 -1
- package/{cdn/assets/BQkmUzRKlWiqor0q.js → browser/esm/DaSrO6iF4NOXLpMI2.mjs} +1 -1
- package/browser/esm/{BpYrVpNYxLiyvpsG2.mjs → Dc5MbVn_75FtzgPY2.mjs} +1 -1
- package/{cdn/assets/ShRab4BlbkYGaP_M.js → browser/esm/DcKd5bjp1ZnTq_-x.mjs} +1 -1
- package/browser/esm/DcZJy7SSyaWDcelM.mjs +87 -0
- package/{cdn/assets/BAL80tfcY_xLu0G0.js → browser/esm/DdWhgxkT5YtvYarN.mjs} +1 -1
- package/{cdn/assets/CPFAhBuBEQ2WQ1xL.js → browser/esm/De8YQFKHRYztHtNy2.mjs} +1 -1
- package/browser/esm/{ASzAufEHRJxLynVy2.mjs → DfDgl_4vSuF3nubw2.mjs} +21 -21
- package/browser/esm/{GJzjEL175hRFbbbB.mjs → DgCRnAf5wqM0QG4X2.mjs} +1 -1
- package/{cdn/assets/O8EB2u7R_rndPG2C.js → browser/esm/DgmukBO5L3U9_0t42.mjs} +1 -1
- package/browser/esm/{CB9PVYNZz7jviPeM.mjs → DhZ8HFnFgb6ij3dI.mjs} +112 -111
- package/{cdn/assets/I6hoqlf8ReojOl6S2.js → browser/esm/DmxxEaNdjPB6nBgy.mjs} +1 -1
- package/browser/esm/{DHYjpa4TQd0OyX_-.mjs → DsGyEBTgXCOEpB4D.mjs} +31 -31
- package/{cdn/assets/4s24g7BIXmb-ZsJu.js → browser/esm/DxLzXk_tSrLv1u632.mjs} +1 -1
- package/{cdn/assets/D2JDIYFefaXzh0Q7.js → browser/esm/DxkY3Q5VwWkfqW7t.mjs} +1 -1
- package/{cdn/assets/CYsJALdAfHsvSsfO.js → browser/esm/DyQEm0-NZ41L--1K.mjs} +1 -1
- package/browser/esm/{D_qsNLP-D6CrMu_6.mjs → Dy_DuOQMMsoys5uG.mjs} +43 -43
- package/browser/esm/{B4I6uEgyYNann2Ke.mjs → GZBYOLZMS5CK612Z.mjs} +8 -8
- package/browser/esm/{CQWXozGddE-bt3e02.mjs → KH2MZAMxGzfVMoKB2.mjs} +12 -12
- package/browser/esm/{CqUf50LIOBNC_hcw2.mjs → KRAw_H4pyLSGG7VM2.mjs} +1 -1
- package/browser/esm/{O-XUoWE0ea4B2z_7.mjs → OF1t5e-IpoCN4nMo.mjs} +277 -185
- package/browser/esm/{CDVFmdooKU1S5AYN2.mjs → RP044HPTvZ7fRPp62.mjs} +11 -11
- package/browser/esm/{CkSbV_IfAZJi0c6l.mjs → ZMzJhKJMzHflPVYY.mjs} +2 -2
- package/{cdn/assets/CuGd6EIdmLLIjJmy.js → browser/esm/cBQ4eqpoDrXn7JHn.mjs} +3 -3
- package/{cdn/assets/nDh85tt1QTeI0M52.js → browser/esm/dRE1rh6cW8nKpTsz2.mjs} +2 -2
- package/{cdn/assets/BSLpLAM29GayIcHp.js → browser/esm/fY2YKQMUdsYu7XiI.mjs} +1 -1
- package/browser/esm/{B2NuZPYij8J3kTpp.mjs → iHpxHAsf4TbCq-TE.mjs} +1 -1
- package/browser/esm/index.mjs +4 -4
- package/browser/esm/{D13cYHehI1MFANBs.mjs → mGzBkmSW0FIS3l47.mjs} +1 -1
- package/browser/esm/{CX79dsSUsejpgy3I.mjs → ooQCodfB4ck6IWqw.mjs} +1 -1
- package/browser/esm/{Bc6eSp3eJSBG2upN2.mjs → pkHBfquSDF6569Gk2.mjs} +2 -2
- package/browser/esm/{DguciGbiLUEk9ta72.mjs → q3Mf-6we7Zn-SXlN2.mjs} +83 -83
- package/browser/esm/{DdZPPDc6wlduH_KR.mjs → q9O6l04D06PeFt9r.mjs} +5 -5
- package/browser/esm/{B_pRnJh0RkIyoM8I.mjs → r5p8Wcz2C4nKJXvc.mjs} +3 -3
- package/browser/esm/{DmQJ8rkLCqU29r122.mjs → rFUbFjv5JlDQ1yJw2.mjs} +11 -11
- package/browser/esm/{NZMc3v4NvbbnA8fu2.mjs → rTH3jO4xeLwX22po.mjs} +1 -1
- package/browser/esm/{BbWwG0VXcXl_hRVo.mjs → vFkFpwfIwu3oIJ542.mjs} +1 -1
- package/{cdn/assets/DGacyXSHaj_qFWtj.js → browser/esm/y7OPrnmnmsKf_AFC.mjs} +1 -1
- package/cdn/assets/{CxYIPOzcP70mE8ty.js → 2rpiEjMFb7cTkJWu.js} +2 -2
- package/cdn/assets/{C4gE_UWGPgSx-l4F.js → 3fQDDuvcrnAkT5qe.js} +106 -106
- package/cdn/assets/{BVLs5hMoDYB3C1o2.js → 4YGRiYPupFKq8BfP.js} +1 -1
- package/{browser/esm/CtwFmaqTopRJLzS-.mjs → cdn/assets/5DCw2IuKPn_ERodw.js} +1 -1
- package/cdn/assets/{lXaq1eaUXGJUybgi2.js → 6NAkWncviZTFXMsY2.js} +11 -11
- package/cdn/assets/{nY56r1ctOp0l-Cj4.js → 9cn1ewqq1BWmzgIL.js} +1 -1
- package/cdn/assets/{BXyAtmroS_bl4Hb12.js → B1ZEbc_b-Hug9WON2.js} +1 -1
- package/{browser/esm/CwIRaew_lypEkoUe.mjs → cdn/assets/B3PPwwyNEblsUOL82.js} +1 -1
- package/{browser/esm/Dh_DQ87yyGmzCgIB.mjs → cdn/assets/B3xtxS53C7jgKwfe2.js} +159 -73
- package/{browser/esm/DaHGI3svC3_Ne-4m2.mjs → cdn/assets/B4g2Yf4whV01sYya.js} +1 -1
- package/cdn/assets/B5IRoZY13t_fHSz42.js +227 -0
- package/{browser/esm/ByJEKW7Yb2GMOYw12.mjs → cdn/assets/BASSDm-JY_bgolFA.js} +1 -1
- package/cdn/assets/{9XdPIuWzuP_fNsMc2.js → BBmgXo0P8kU87RB4.js} +1 -1
- package/cdn/assets/{COM2FF9Jardk1EZo.js → BDYtqqyKrm2S3aWJ2.js} +30 -30
- package/cdn/assets/BNBvUyjF30xlfOmr.js +236 -0
- package/{browser/esm/CGphh091pmrMF0fz.mjs → cdn/assets/BRSPE-Kbm0TK7bm42.js} +1 -1
- package/cdn/assets/{YaFGb13NzomqlPhx.js → BS7DCPO7VdYxiXF8.js} +1 -1
- package/cdn/assets/{DqR9ypY2lo7NdhdA2.js → BT8V24glIXLW0J7i2.js} +1 -1
- package/cdn/assets/{Dh6uFsw0ts9G0IzC.js → BVM91MmuaEyh3X9n.js} +2 -2
- package/{browser/esm/ByhPTRCEKiD7ZwZ9.mjs → cdn/assets/BX7-HB3e-_oTITi_.js} +3 -3
- package/cdn/assets/{Dm5N2qOf6OaXFKgs.js → BbjFUZr9zWRsnpUT2.js} +303 -211
- package/cdn/assets/{BQaSJTMvIv7JCgD6.js → BdTAWhP-loxlROWg.js} +1 -1
- package/cdn/assets/{8CSB84e_emQV5R8x2.js → Bdf9NRBqMDRFuqxL2.js} +1 -1
- package/cdn/assets/{CQ6dwRf0tKhftmHo.js → BfmYSaC7YF8lHawu.js} +8 -8
- package/{browser/esm/DPFLq_i4WqawDi01.mjs → cdn/assets/BfqHVT9RAMHzPrq2.js} +1 -1
- package/{browser/esm/CaQy0UO3TARwf9lv2.mjs → cdn/assets/Bi82rHDsiL2lqeRo2.js} +1 -1
- package/cdn/assets/{BxWGBuBUE-ef4qaS.js → Bjpm9ZVaFQRdne7s.js} +1 -1
- package/cdn/assets/{4uPEJOprzEht4SzA.js → Bp36kaEEsGhP709t.js} +1 -1
- package/{browser/esm/BxVi9Yt82U55JbkE.mjs → cdn/assets/BrDePmlBu6Hb4zjJ.js} +1 -1
- package/cdn/assets/{Db3jycTcoF5LNwZu.js → BrYD9S8O_9gXuYHf.js} +17 -3
- package/{browser/esm/BrBFY1fUM6isyJR72.mjs → cdn/assets/Bt3ndQy-OnI4OHTz.js} +1 -1
- package/cdn/assets/{QZtjqpJrLQtNbNwq.js → BvuxB7CzGAv0w7by.js} +8 -8
- package/cdn/assets/{Cw3IdV71ouaTuRGF.js → BwMxbQa51h7P3IFw.js} +4 -4
- package/cdn/assets/{JXU6hMEMJG28IfSo.js → ByU4uQWIIAoe9hoQ2.js} +10 -10
- package/cdn/assets/{BPIFGE6onebofB6E.js → C0Nxz1Q33eJ2mdFL2.js} +13 -13
- package/cdn/assets/{BmDHD3gIBb1ZRHAi2.js → C0VNHurPIrPcmiu02.js} +2 -2
- package/cdn/assets/{BNXRa9Q6esS40zrP2.js → C13AOL3lFAH4T6nv2.js} +21 -21
- package/cdn/assets/{CqEfk9KdtsnilBpc2.js → C1Fgr1CHaaJCZwDE2.js} +42 -42
- package/{browser/esm/CRZ6nMW0sPFhGN8u2.mjs → cdn/assets/C2DL_mDwKLFZBqvN.js} +1 -1
- package/cdn/assets/{BC5-Aqh8iVN25i1L.js → C3wPGkvUzepIQRVC2.js} +139 -138
- package/{browser/esm/QK8wPJEXtMpUkF5O2.mjs → cdn/assets/C55NEfrA6s_yuajX.js} +1 -1
- package/cdn/assets/{DwiLonfLJkGM8c_i2.js → C566hKAp9g__r7-72.js} +110 -110
- package/{browser/esm/Bb2KUiusJj-R9-bL2.mjs → cdn/assets/C6eVL3m02S-Qj2uy.js} +1 -1
- package/{browser/esm/Bn0Zl7pydiHARthC.mjs → cdn/assets/C7Em8LjBH1VJoyfm.js} +1 -1
- package/cdn/assets/C7Em8LjBH1VJoyfm2.js +24 -0
- package/cdn/assets/{DbmXbOECZu0Do014.js → C7fY4QaenhDjniAr.js} +32 -32
- package/cdn/assets/{KHBwkVymIFAD9Dbf.js → C8HjRahIuD14iG_b.js} +4 -4
- package/{browser/esm/CAJyOPOsOhkyreOa2.mjs → cdn/assets/C8jJJ5X2nIRCaMcu.js} +1 -1
- package/cdn/assets/{b2vK8MBPEiSThFFJ.js → CA00G9Yi4uXcS5l5.js} +124 -125
- package/cdn/assets/{DVKsvS22o0v0glGu2.js → CCIybQZ3Tgu4CxnN2.js} +1 -1
- package/cdn/assets/{CFQz07nMv0V8904P2.js → CD-JsN04jY0VyY1v2.js} +1 -1
- package/cdn/assets/{CK4fXD1IwAeSeTwV2.js → CEP2pbRcOThbPSHu2.js} +12 -12
- package/cdn/assets/{zMr7JGzVhJy9UkSR2.js → CJfK3Zm2ZKVEv5Mv2.js} +1 -1
- package/cdn/assets/{DjgsfBCsDutlNfA32.js → CKFb0F8a8b7Bp8XG2.js} +20 -20
- package/{browser/esm/BLqwwpQl8XESCuBb2.mjs → cdn/assets/COJLKiCysD7hs2jG2.js} +1 -1
- package/cdn/assets/{BW1dPK38H6_2KNgN.js → COqCbm81u1WaCS7k2.js} +1 -1
- package/cdn/assets/{lHtLCWS9jxiZzvGt2.js → CR_q2LxqSxi13Hij2.js} +20508 -19363
- package/cdn/assets/{mTL1l5m3_3yXiJWq.js → C_zj-VriJ00f1MCn.js} +5 -5
- package/{browser/esm/CTC5YAOtLAZGGiUL.mjs → cdn/assets/CaHBZElxMjo_v4LY.js} +1 -1
- package/cdn/assets/{Dyq9Ikb6bjr5wlTM2.js → CaW2AIr71l8EwY4q.js} +5 -5
- package/cdn/assets/{u4PJnC_HIHrIUCU8.js → CajvXeO8GjmlYo1w.js} +3 -3
- package/cdn/assets/{CHS-pOLaI-3RNreZ2.js → Ck6OFgakjG9KRLkz2.js} +58 -58
- package/cdn/assets/{CdA4fRy3QcuvWfzj.js → CoqDXeaMS0XICCe2.js} +1 -1
- package/cdn/assets/{B3q6CHSdywBA_IuW.js → Csgvd2uwdSVvtxd0.js} +3 -3
- package/cdn/assets/{BlQSSKKj6whg6HxL2.js → CxR_QBoT5nmLyrpM2.js} +14 -14
- package/{browser/esm/DbHaqFzeVSgieXnR2.mjs → cdn/assets/D4cHE39d638a1U-y.js} +1 -1
- package/{browser/esm/BOQ_aIsihPsIbZKi2.mjs → cdn/assets/D5MFyg_gQzrtkU5q.js} +1 -1
- package/cdn/assets/{CLPEH9osFTX0UFh-.js → D5nFDHDC5F0D8PyZ.js} +2 -2
- package/cdn/assets/{Cm_5b6gJsOcFsRgO.js → D6o4brLafnJRIFnU.js} +2 -2
- package/cdn/assets/{D9PfBHlV1Y9_Y-zn2.js → D8Ln6s5Q7xc7NoKg2.js} +67 -67
- package/cdn/assets/D9h6T10d18-OYsnY2.js +24 -0
- package/cdn/assets/{CEfH1gPlh_URyXo_.js → DA1nRTNBW1PtpWgT.js} +2 -2
- package/cdn/assets/{CI29ulYNfhsjjSbV2.js → DFAAoXpOwrC4RlJR2.js} +11 -11
- package/{browser/esm/buApadOsUzJffqMK2.mjs → cdn/assets/DFHP3kC1VW25l54r.js} +1 -1
- package/{browser/esm/Df4TV780zP-UkbB12.mjs → cdn/assets/DFfqXOHApBHKjPmq.js} +1 -1
- package/cdn/assets/{cIxxV_90h2dPQozO.js → DFgibCVRkv7ROc5v.js} +1 -1
- package/cdn/assets/{6kb7eUPQPaaWHmrP.js → DFnfLBAD7P-akaff.js} +2 -2
- package/{browser/esm/BEiZjvI9ie1V8MyZ2.mjs → cdn/assets/DIARlYhdv_2V83X8.js} +2 -2
- package/{browser/esm/D1ux3f7S9r50KVKs2.mjs → cdn/assets/DJfrSiVd9Hm9g2d2.js} +1 -1
- package/cdn/assets/{DeBFiQAoGIJi-RTE.js → DLY3Gp_G16n4d85q.js} +6 -6
- package/{browser/esm/CAR-0i_rg3wlCjH7.mjs → cdn/assets/DLxFo71kHJsGXBZ32.js} +1 -1
- package/cdn/assets/{BPYBuLSyiHvC6HiX2.js → DVFxFNggaQDjhPuL2.js} +42 -42
- package/cdn/assets/{OuSJblL799bkmWSG.js → D_Iw8uMiIvx2jhcv.js} +1 -1
- package/cdn/assets/{Bp_LNXqn6oIX3Fid.js → D_qtb6BEhWE61Z7C.js} +146 -146
- package/{browser/esm/BQkmUzRKlWiqor0q2.mjs → cdn/assets/DaSrO6iF4NOXLpMI.js} +1 -1
- package/cdn/assets/{CED7roWwWtDJSGsI2.js → DavJsn-94WtXCnyy2.js} +1586 -1819
- package/cdn/assets/{BpYrVpNYxLiyvpsG.js → Dc5MbVn_75FtzgPY.js} +1 -1
- package/{browser/esm/ShRab4BlbkYGaP_M2.mjs → cdn/assets/DcKd5bjp1ZnTq_-x2.js} +1 -1
- package/{browser/esm/BAL80tfcY_xLu0G02.mjs → cdn/assets/DdWhgxkT5YtvYarN2.js} +1 -1
- package/{browser/esm/CPFAhBuBEQ2WQ1xL.mjs → cdn/assets/De8YQFKHRYztHtNy.js} +1 -1
- package/cdn/assets/{CJDbSQUUpT8PLGGS.js → De94qdhWNQbkhAKb.js} +690 -688
- package/{browser/esm/DARfvNH02jVzsWOM.mjs → cdn/assets/DefFGyX5E__KiHEC.js} +1007 -904
- package/cdn/assets/{GJzjEL175hRFbbbB2.js → DgCRnAf5wqM0QG4X.js} +1 -1
- package/{browser/esm/O8EB2u7R_rndPG2C2.mjs → cdn/assets/DgmukBO5L3U9_0t4.js} +1 -1
- package/cdn/assets/{CEyHZpFHiQtmnCve2.js → Dkba6grmCB6y_Yvs2.js} +12 -12
- package/cdn/assets/{Df4qEjXlCr78Fb20.js → Dlk7gS21CL59t8cD.js} +11 -11
- package/{browser/esm/I6hoqlf8ReojOl6S.mjs → cdn/assets/DmxxEaNdjPB6nBgy2.js} +1 -1
- package/{browser/esm/C9ThHYC9Dk1pmhfV.mjs → cdn/assets/Dt3O9kdjcB6vva5A.js} +231 -231
- package/cdn/assets/{CKytyHmKFv4IQWen2.js → Dt52g2i0t1p8L5mE2.js} +25 -25
- package/{browser/esm/4s24g7BIXmb-ZsJu.mjs → cdn/assets/DxLzXk_tSrLv1u63.js} +1 -1
- package/{browser/esm/D2JDIYFefaXzh0Q72.mjs → cdn/assets/DxkY3Q5VwWkfqW7t2.js} +1 -1
- package/{browser/esm/CYsJALdAfHsvSsfO.mjs → cdn/assets/DyQEm0-NZ41L--1K.js} +1 -1
- package/cdn/assets/{qiBKIZwqkjWBAX3K.js → HhQT-w3KhQYyLF3E.js} +3 -3
- package/cdn/assets/{CqUf50LIOBNC_hcw.js → KRAw_H4pyLSGG7VM.js} +1 -1
- package/{browser/esm/AQFoTfI5MYgvP0xF.mjs → cdn/assets/N2PDFuHeMIcJXi-I2.js} +498 -497
- package/cdn/assets/{BtC1CaZjkCNKOB_x.js → OaIdw_jfk8n1tSOG.js} +2 -2
- package/cdn/assets/{NwbxANY_VGPKT45F.js → P-5R1AyiA1bO8kls2.js} +7 -7
- package/cdn/assets/{lA8F04dL44NCFFgB2.js → RRJyZ2WtMoVN8bzW2.js} +22 -22
- package/cdn/assets/{D9LRNXQqJCBaGu0Z.js → S2-ef6zfqD83qohl.js} +7 -7
- package/cdn/assets/{DJXeHGaPVXVYlPh4.js → SY3JTpsm5Bpu0tXj.js} +8 -8
- package/cdn/assets/{BxGxLT2jIfZse_a12.js → T7quzcPIEGcVdh0D2.js} +6 -6
- package/cdn/assets/{DMPnZEIYOsBo9meY2.js → VLBw3i20lk_Yly9G.js} +6657 -5739
- package/cdn/assets/{aa5Vge2hHXpeHQv9.js → ZDs8hbqQmtSIaDZm.js} +4314 -3211
- package/cdn/assets/{B6Sdb1B6hJzZOmK42.js → ZFmNH36WAkLLbTKE2.js} +8 -8
- package/cdn/assets/{B3c7lB4rkBwYOv6w2.js → aIjKRE7sQ1uohehj.js} +12 -12
- package/{browser/esm/BSLpLAM29GayIcHp2.mjs → cdn/assets/fY2YKQMUdsYu7XiI.js} +1 -1
- package/cdn/assets/{B2NuZPYij8J3kTpp2.js → iHpxHAsf4TbCq-TE2.js} +1 -1
- package/cdn/assets/{D13cYHehI1MFANBs2.js → mGzBkmSW0FIS3l472.js} +1 -1
- package/cdn/assets/{Bhoz1Sbq-j_YrLg52.js → ml6iN9Or0sV9rNHQ2.js} +13 -13
- package/cdn/assets/oclc-Ixh46_UsUpL.js +87 -0
- package/cdn/assets/{CX79dsSUsejpgy3I2.js → ooQCodfB4ck6IWqw.js} +1 -1
- package/cdn/assets/{Bc6eSp3eJSBG2upN.js → pkHBfquSDF6569Gk.js} +2 -2
- package/cdn/assets/{Deod2y9FvWRW6-1L.js → q7pkii0gu8s26iBw.js} +2 -2
- package/cdn/assets/{NZMc3v4NvbbnA8fu.js → rTH3jO4xeLwX22po2.js} +1 -1
- package/cdn/assets/{jHFW_YYMzmnHs6rB2.js → rynh3babuCEq2zBn2.js} +7 -7
- package/{browser/esm/x6BOR0Zsm6T0JGoW.mjs → cdn/assets/uVz7RxSLXYsjkdHy.js} +2 -2
- package/cdn/assets/{BbWwG0VXcXl_hRVo.js → vFkFpwfIwu3oIJ54.js} +1 -1
- package/cdn/assets/{BAxsBsOz3AJuEFOH2.js → w8ORLCpD4v-F7nl22.js} +7 -7
- package/{browser/esm/DGacyXSHaj_qFWtj.mjs → cdn/assets/y7OPrnmnmsKf_AFC.js} +1 -1
- package/cdn/index.js +2 -2
- package/package.json +3 -3
- package/browser/cjs/A1Gu5kAMj0Iicl_T.cjs +0 -32
- package/browser/cjs/BDKlnWp7xCcP65l4.cjs +0 -1
- package/browser/cjs/BRikaOBjd90ZslxS2.cjs +0 -1
- package/browser/cjs/BVhuM-U_zQMtB3Rj2.cjs +0 -8
- package/browser/cjs/BeEQmpnUNjfq14ww2.cjs +0 -1
- package/browser/cjs/BekJlCRmg4z-bY-P2.cjs +0 -1
- package/browser/cjs/Bg5fDBNyBYrzvmaE2.cjs +0 -3
- package/browser/cjs/BqAfQbSbXb2LOQbv.cjs +0 -14
- package/browser/cjs/Bvn-CsjRyKMgJe5M.cjs +0 -2
- package/browser/cjs/Bw82zZDnlCRZW3tT2.cjs +0 -1
- package/browser/cjs/C2xqrjnwNc6jmaeh.cjs +0 -41
- package/browser/cjs/C93fNlONyjGB_ZQr.cjs +0 -3
- package/browser/cjs/CClH6iclautDoj8x2.cjs +0 -1
- package/browser/cjs/CSWmGDsxPB7HVJiO2.cjs +0 -1
- package/browser/cjs/CpPGKlipSfknSo2L2.cjs +0 -1
- package/browser/cjs/D4jFBIwyj80GDSx12.cjs +0 -1
- package/browser/cjs/DNnMGL1ff8hutxSd.cjs +0 -1
- package/browser/cjs/DXs9xla8JSLmvscc2.cjs +0 -1
- package/browser/cjs/DaWlsfheBCsinBpg.cjs +0 -1
- package/browser/cjs/DlFiaQEEJyI6gR6p.cjs +0 -93
- package/browser/cjs/GCXpCGPZN9vgoEGL.cjs +0 -1
- package/browser/cjs/Ugq14m_1jIROW2RN2.cjs +0 -22
- package/browser/cjs/eueRerE2mxFno4122.cjs +0 -1
- package/browser/cjs/gYAA75Xg3ecR5t-Y.cjs +0 -11
- package/browser/cjs/nQZj8ROMT7RSXLoL.cjs +0 -5
- package/browser/cjs/rTqXOtDoRYaWhUWc.cjs +0 -1
- package/browser/esm/B70US6XCCdca6Gnm.mjs +0 -225
- package/browser/esm/BGM2QvJ-QM02j7Ry.mjs +0 -87
- package/browser/esm/BVwZ0Nw8kL8sB67E2.mjs +0 -280
- package/browser/esm/CL00yLGi41YYp5DU2.mjs +0 -98
- package/cdn/assets/B01InbzHQYdDE8i5.js +0 -280
- package/cdn/assets/B9gOvGXhUTZKL-HS.js +0 -87
- package/cdn/assets/BMBrXd8xf13n1fFf2.js +0 -99
- package/cdn/assets/Bn0Zl7pydiHARthC2.js +0 -24
- package/cdn/assets/CG1w46Kqn0AmNJjP2.js +0 -24
- package/cdn/assets/DOVauj9y5INMkh2p2.js +0 -226
- /package/browser/cjs/{1XrWGMP3GmsQOMIX2.cjs → 1XrWGMP3GmsQOMIX.cjs} +0 -0
- /package/browser/cjs/{4nReftSsKWmnRdtf.cjs → 4nReftSsKWmnRdtf2.cjs} +0 -0
- /package/browser/cjs/{B4ANcw0mAmhe2Aeb.cjs → B4ANcw0mAmhe2Aeb2.cjs} +0 -0
- /package/browser/cjs/{B6vy56yEA1I3B74O2.cjs → B6vy56yEA1I3B74O.cjs} +0 -0
- /package/browser/cjs/{BcROQ4pvVajDQ1em.cjs → BcROQ4pvVajDQ1em2.cjs} +0 -0
- /package/browser/cjs/{Btc0Nzu40VYOpzLX2.cjs → Btc0Nzu40VYOpzLX.cjs} +0 -0
- /package/browser/cjs/{BvG8N7G_8CXIAlT-2.cjs → BvG8N7G_8CXIAlT-.cjs} +0 -0
- /package/browser/cjs/{C9q3zr8iCIoYDrdA2.cjs → C9q3zr8iCIoYDrdA.cjs} +0 -0
- /package/browser/cjs/{CFxueP0tbpmvY1Ip2.cjs → CFxueP0tbpmvY1Ip.cjs} +0 -0
- /package/browser/cjs/{CRcv32tHTbGSGtkh.cjs → CRcv32tHTbGSGtkh2.cjs} +0 -0
- /package/browser/cjs/{CaJGoNwTL6pAJ6a42.cjs → CaJGoNwTL6pAJ6a4.cjs} +0 -0
- /package/browser/cjs/{CrZlUtdX1h2RUnCP.cjs → CrZlUtdX1h2RUnCP2.cjs} +0 -0
- /package/browser/cjs/{D8-KovdJ0LjxqCe22.cjs → D8-KovdJ0LjxqCe2.cjs} +0 -0
- /package/browser/cjs/{DG2kqsWRUtVugjay.cjs → DG2kqsWRUtVugjay2.cjs} +0 -0
- /package/browser/cjs/{DpFg69dDCPoOK2BY2.cjs → DpFg69dDCPoOK2BY.cjs} +0 -0
- /package/browser/cjs/{Dx7GQ4ALtNG3kshu.cjs → Dx7GQ4ALtNG3kshu2.cjs} +0 -0
- /package/browser/cjs/{a4xpA8d_d22-GKos.cjs → a4xpA8d_d22-GKos2.cjs} +0 -0
- /package/browser/cjs/{aONv0Ys3C8xmnaR8.cjs → aONv0Ys3C8xmnaR82.cjs} +0 -0
- /package/browser/cjs/{bM25C5avKgBAJVfk.cjs → bM25C5avKgBAJVfk2.cjs} +0 -0
- /package/browser/cjs/{z_rZE1OHFPpdGBh42.cjs → z_rZE1OHFPpdGBh4.cjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var e=class{constructor(e){this._worker=null,this._nextId=1,this._pendingRequests=new Map,this._workerFactory=e}start(){if(typeof Worker>`u`)throw Error(`Web Workers are not supported in this environment.`);return this._worker||(this._worker=this._workerFactory(),this._worker.onmessage=e=>{let{id:t,result:n,error:r}=e.data,i=this._pendingRequests.get(t);if(i)if(this._pendingRequests.delete(t),r){let e=Error(r.message);e.stack=r.stack,r.cause&&(e.cause=r.cause),i.reject(e)}else i.resolve(n)},this._worker.onerror=e=>{console.error(`Worker error:`,e),this._pendingRequests.forEach(t=>{t.reject(Error(`Worker failed: ${e.message}`))}),this._pendingRequests.clear(),this._worker=null}),Promise.resolve()}execute(e){if(!this._worker)throw Error(`Worker is not initialized. Call start() first.`);let t=this._nextId++;return new Promise((n,r)=>{this._pendingRequests.set(t,{resolve:n,reject:r}),this._worker.postMessage({id:t,params:e})})}terminate(){this._worker&&=(this._worker.terminate(),null)}},t=class{constructor(e){this._onExecute=e}execute(e){return this._onExecute(e)}start(){return Promise.resolve()}terminate(){}},n=`var yt = Object.defineProperty,
|
|
1
|
+
var e=class{constructor(e){this._worker=null,this._nextId=1,this._pendingRequests=new Map,this._workerFactory=e}start(){if(typeof Worker>`u`)throw Error(`Web Workers are not supported in this environment.`);return this._worker||(this._worker=this._workerFactory(),this._worker.onmessage=e=>{let{id:t,result:n,error:r}=e.data,i=this._pendingRequests.get(t);if(i)if(this._pendingRequests.delete(t),r){let e=Error(r.message);e.stack=r.stack,r.cause&&(e.cause=r.cause),i.reject(e)}else i.resolve(n)},this._worker.onerror=e=>{console.error(`Worker error:`,e),this._pendingRequests.forEach(t=>{t.reject(Error(`Worker failed: ${e.message}`))}),this._pendingRequests.clear(),this._worker=null}),Promise.resolve()}execute(e){if(!this._worker)throw Error(`Worker is not initialized. Call start() first.`);let t=this._nextId++;return new Promise((n,r)=>{this._pendingRequests.set(t,{resolve:n,reject:r}),this._worker.postMessage({id:t,params:e})})}terminate(){this._worker&&=(this._worker.terminate(),null)}},t=class{constructor(e){this._onExecute=e}execute(e){return this._onExecute(e)}start(){return Promise.resolve()}terminate(){}},n=`var yt = Object.defineProperty, qt = (e, t, r) => () => {
|
|
2
2
|
if (r) throw r[0];
|
|
3
3
|
try {
|
|
4
4
|
return e && (t = e(e = 0)), t;
|
|
@@ -76,7 +76,7 @@ function rn(e) {
|
|
|
76
76
|
})(e) && !en(e);
|
|
77
77
|
}
|
|
78
78
|
function Ne(e, t) {
|
|
79
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
79
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ve((r = e, Array.isArray(r) ? [] : {}), e, t) : e;
|
|
80
80
|
var r;
|
|
81
81
|
}
|
|
82
82
|
function nn(e, t, r) {
|
|
@@ -84,14 +84,14 @@ function nn(e, t, r) {
|
|
|
84
84
|
return Ne(n, r);
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function bt(e) {
|
|
88
88
|
return Object.keys(e).concat((function(t) {
|
|
89
89
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(r) {
|
|
90
90
|
return Object.propertyIsEnumerable.call(t, r);
|
|
91
91
|
}) : [];
|
|
92
92
|
})(e));
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function St(e, t) {
|
|
95
95
|
try {
|
|
96
96
|
return t in e;
|
|
97
97
|
} catch {
|
|
@@ -100,27 +100,27 @@ function bt(e, t) {
|
|
|
100
100
|
}
|
|
101
101
|
function on(e, t, r) {
|
|
102
102
|
let n = {};
|
|
103
|
-
return r.isMergeableObject(e) &&
|
|
103
|
+
return r.isMergeableObject(e) && bt(e).forEach(function(o) {
|
|
104
104
|
n[o] = Ne(e[o], r);
|
|
105
|
-
}),
|
|
105
|
+
}), bt(t).forEach(function(o) {
|
|
106
106
|
(function(a, l) {
|
|
107
|
-
return
|
|
108
|
-
})(e, o) || (
|
|
109
|
-
if (!l.customMerge) return
|
|
107
|
+
return St(a, l) && !(Object.hasOwnProperty.call(a, l) && Object.propertyIsEnumerable.call(a, l));
|
|
108
|
+
})(e, o) || (St(e, o) && r.isMergeableObject(t[o]) ? n[o] = (function(a, l) {
|
|
109
|
+
if (!l.customMerge) return ve;
|
|
110
110
|
let i = l.customMerge(a);
|
|
111
|
-
return typeof i == "function" ? i :
|
|
111
|
+
return typeof i == "function" ? i : ve;
|
|
112
112
|
})(o, r)(e[o], t[o], r) : n[o] = Ne(t[o], r));
|
|
113
113
|
}), n;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function ve(e, t, r) {
|
|
116
116
|
(r ||= {}).arrayMerge = r.arrayMerge || nn, r.isMergeableObject = r.isMergeableObject || rn, r.cloneUnlessOtherwiseSpecified = Ne;
|
|
117
117
|
let n = Array.isArray(t);
|
|
118
118
|
return n === Array.isArray(e) ? n ? r.arrayMerge(e, t, r) : on(e, t, r) : Ne(t, r);
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
ve.all = function(e, t) {
|
|
121
121
|
if (!Array.isArray(e)) throw Error("first argument should be an array");
|
|
122
122
|
return e.reduce(function(r, n) {
|
|
123
|
-
return
|
|
123
|
+
return ve(r, n, t);
|
|
124
124
|
}, {});
|
|
125
125
|
};
|
|
126
126
|
var Qt = he({
|
|
@@ -133,12 +133,12 @@ var Qt = he({
|
|
|
133
133
|
camelToPrettyCase: () => cn,
|
|
134
134
|
castToString: () => Cn,
|
|
135
135
|
cloneObject: () => gn,
|
|
136
|
-
consoleWithNoSource: () =>
|
|
136
|
+
consoleWithNoSource: () => kn,
|
|
137
137
|
deepEqual: () => Be,
|
|
138
138
|
deepFreeze: () => sr,
|
|
139
|
-
deepMerge: () =>
|
|
140
|
-
diffValues: () =>
|
|
141
|
-
findEqualOrGreater: () =>
|
|
139
|
+
deepMerge: () => ve,
|
|
140
|
+
diffValues: () => vn,
|
|
141
|
+
findEqualOrGreater: () => En,
|
|
142
142
|
findEqualOrLesser: () => xn,
|
|
143
143
|
getFromPath: () => _n,
|
|
144
144
|
getPlatform: () => Xe,
|
|
@@ -148,22 +148,22 @@ var Qt = he({
|
|
|
148
148
|
isEqualBounds: () => yn,
|
|
149
149
|
isNullOrUndefined: () => ir,
|
|
150
150
|
isNumeric: () => fn,
|
|
151
|
-
isObject: () =>
|
|
151
|
+
isObject: () => Le,
|
|
152
152
|
isPromiseLike: () => $n,
|
|
153
153
|
isRectInsideRect: () => Rn,
|
|
154
154
|
isRectIntersect: () => lr,
|
|
155
|
-
mergeContentful: () =>
|
|
155
|
+
mergeContentful: () => Sn,
|
|
156
156
|
removeEmptyProperties: () => rr,
|
|
157
157
|
removeEqualValues: () => or,
|
|
158
158
|
removeEqualValuesLayered: () => ar,
|
|
159
159
|
removeListenerAll: () => wn,
|
|
160
160
|
roundAccurately: () => mn,
|
|
161
|
-
setToPath: () =>
|
|
161
|
+
setToPath: () => Ln,
|
|
162
162
|
splitNumber: () => pn,
|
|
163
163
|
subtractRect: () => Nn,
|
|
164
164
|
textToKey: () => un,
|
|
165
165
|
toSafeJSON: () => at,
|
|
166
|
-
transpose: () =>
|
|
166
|
+
transpose: () => bn,
|
|
167
167
|
uuidV4: () => Ke,
|
|
168
168
|
validEnumValue: () => sn
|
|
169
169
|
}), _e = Object.freeze([]), an = Object.freeze({}), ln = Promise.resolve(), er = (e) => e;
|
|
@@ -199,7 +199,7 @@ function fn(e) {
|
|
|
199
199
|
let t = 1 * e;
|
|
200
200
|
return Number.isFinite(t) && typeof t == "number";
|
|
201
201
|
}
|
|
202
|
-
var
|
|
202
|
+
var Je = [
|
|
203
203
|
1,
|
|
204
204
|
10,
|
|
205
205
|
100,
|
|
@@ -222,11 +222,11 @@ function pn(e) {
|
|
|
222
222
|
let t = Math.abs(e);
|
|
223
223
|
if (!Number.isFinite(t)) return null;
|
|
224
224
|
let r = Math.trunc(t), n = t - r, o;
|
|
225
|
-
r > 2 ** 53 - 1 ? o = Number(r.toExponential().split("e")[1]) + 1 : (o = Math.ceil(Math.log10(r + 1)),
|
|
225
|
+
r > 2 ** 53 - 1 ? o = Number(r.toExponential().split("e")[1]) + 1 : (o = Math.ceil(Math.log10(r + 1)), Je[o] <= r && o++);
|
|
226
226
|
let a = 0, l = 0, i = 15 - o;
|
|
227
227
|
if (n > 0 && i > 0) {
|
|
228
|
-
let u =
|
|
229
|
-
if (a = Math.round(n * u), a === u) r++, a = 0, r >=
|
|
228
|
+
let u = Je[i];
|
|
229
|
+
if (a = Math.round(n * u), a === u) r++, a = 0, r >= Je[o] && o++;
|
|
230
230
|
else if (a > 0) for (l = i; a % 10 == 0;) a /= 10, l--;
|
|
231
231
|
}
|
|
232
232
|
return {
|
|
@@ -256,7 +256,7 @@ function tr(e, t, r) {
|
|
|
256
256
|
function yn(e, t) {
|
|
257
257
|
return e === t || !(!e || !t) && e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Le(e) {
|
|
260
260
|
return typeof e == "object" && !Array.isArray(e) && e !== null;
|
|
261
261
|
}
|
|
262
262
|
function rr(e) {
|
|
@@ -275,7 +275,7 @@ function wn(e, t) {
|
|
|
275
275
|
}
|
|
276
276
|
return _e;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function bn(e) {
|
|
279
279
|
if (!e) return e;
|
|
280
280
|
let t = e.length, r = e[0].length, n = [];
|
|
281
281
|
for (let o = 0; o < r; o++) n[o] = Array(t);
|
|
@@ -318,14 +318,14 @@ function ar(e, t, r = nr) {
|
|
|
318
318
|
}
|
|
319
319
|
return l && Object.keys(e).length === 0;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Sn(...e) {
|
|
322
322
|
let t = e.length;
|
|
323
|
-
if (t > 0 && e[t - 1] !== void 0 && !
|
|
323
|
+
if (t > 0 && e[t - 1] !== void 0 && !Le(e[t - 1])) return e[t - 1];
|
|
324
324
|
let r = e[0] || {};
|
|
325
|
-
for (let n = 1; n < t; n++) r =
|
|
325
|
+
for (let n = 1; n < t; n++) r = ve(r, e[n] || {}, { arrayMerge: (o, a) => [...a] });
|
|
326
326
|
return r;
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function vn(e, t) {
|
|
329
329
|
let r = {}, n = Object.keys(t), o = n.length;
|
|
330
330
|
for (let a = 0; a < o; a++) {
|
|
331
331
|
let l = n[a], i = e[l], u = t[l];
|
|
@@ -333,7 +333,7 @@ function En(e, t) {
|
|
|
333
333
|
}
|
|
334
334
|
return Object.keys(r).length === 0 ? null : r;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function En(e, t, r = er) {
|
|
337
337
|
let n = 0, o = e.length - 1;
|
|
338
338
|
for (; n <= o;) {
|
|
339
339
|
let a = Math.floor((n + o) / 2), l = r(e[a]);
|
|
@@ -420,24 +420,24 @@ function _n(e, t) {
|
|
|
420
420
|
let l = r[a];
|
|
421
421
|
if (!n) return null;
|
|
422
422
|
let i = n[l];
|
|
423
|
-
if (typeof i == "function" && (i = i.bind(n)()), !i || !
|
|
423
|
+
if (typeof i == "function" && (i = i.bind(n)()), !i || !Le(i)) return i;
|
|
424
424
|
n = i;
|
|
425
425
|
}
|
|
426
426
|
return n ?? null;
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function Ln(e, t, r) {
|
|
429
429
|
let n = t.split("."), o = e;
|
|
430
430
|
if (!o) throw Error("Can not set path to a null path.");
|
|
431
431
|
let a = n.length;
|
|
432
432
|
for (let l = 0; o && l < a - 1; l++) {
|
|
433
433
|
let i = n[l], u = o[i];
|
|
434
|
-
if (u ?? (u = {}, o[i] = u), !
|
|
434
|
+
if (u ?? (u = {}, o[i] = u), !Le(u)) throw Error("Can not set path to a non object path.");
|
|
435
435
|
o = u;
|
|
436
436
|
}
|
|
437
|
-
if (typeof r != "number" && typeof r != "boolean" && typeof r != "string" && !
|
|
437
|
+
if (typeof r != "number" && typeof r != "boolean" && typeof r != "string" && !Le(r)) throw Error(\`Can not set path to \${r} that is not a a supported primitive.\`);
|
|
438
438
|
return o[n[a - 1]] = r, e;
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function kn(...e) {
|
|
441
441
|
return new Promise((t) => {
|
|
442
442
|
setTimeout(() => {
|
|
443
443
|
Function("console.log.apply(console, arguments)").apply(null, e), t();
|
|
@@ -478,28 +478,28 @@ he({
|
|
|
478
478
|
EmptyCell: () => cr,
|
|
479
479
|
EmptyRange: () => On,
|
|
480
480
|
EmptyRanges: () => Mn,
|
|
481
|
-
EmptySelection: () =>
|
|
482
|
-
InsertCutShift: () =>
|
|
481
|
+
EmptySelection: () => Fn,
|
|
482
|
+
InsertCutShift: () => Se,
|
|
483
483
|
cellToRange: () => jn,
|
|
484
|
-
classifyInsertCut: () =>
|
|
484
|
+
classifyInsertCut: () => Yn,
|
|
485
485
|
columnFirstCellComparator: () => mr,
|
|
486
486
|
columnFirstRangeComparator: () => ur,
|
|
487
|
-
createCellComparator: () =>
|
|
488
|
-
createConflatingRanges: () =>
|
|
487
|
+
createCellComparator: () => Dn,
|
|
488
|
+
createConflatingRanges: () => Jn,
|
|
489
489
|
createRangeComparator: () => wr,
|
|
490
490
|
defaultRange: () => Gn,
|
|
491
491
|
extendRangeToIntersectingRanges: () => Tr,
|
|
492
492
|
extendRangeToUnionRanges: () => zn,
|
|
493
|
-
intersectRanges: () =>
|
|
494
|
-
isCellWithinRange: () =>
|
|
495
|
-
isEqualCells: () =>
|
|
493
|
+
intersectRanges: () => Er,
|
|
494
|
+
isCellWithinRange: () => Un,
|
|
495
|
+
isEqualCells: () => br,
|
|
496
496
|
isEqualRanges: () => dt,
|
|
497
|
-
isEqualRangesArrays: () =>
|
|
497
|
+
isEqualRangesArrays: () => vr,
|
|
498
498
|
isEqualSelectionCoords: () => xr,
|
|
499
|
-
isRangeWithinRange: () =>
|
|
499
|
+
isRangeWithinRange: () => Sr,
|
|
500
500
|
isRangesIntersect: () => ft,
|
|
501
|
-
isRefusedInsertCut: () =>
|
|
502
|
-
isSingleCell: () =>
|
|
501
|
+
isRefusedInsertCut: () => qn,
|
|
502
|
+
isSingleCell: () => Pn,
|
|
503
503
|
isValidRange: () => Kn,
|
|
504
504
|
mergeRangeCoordValues: () => Ar,
|
|
505
505
|
reverseColumnFirstCellComparator: () => yr,
|
|
@@ -522,7 +522,7 @@ var cr = Object.freeze({
|
|
|
522
522
|
rowStart: 0,
|
|
523
523
|
colEnd: 0,
|
|
524
524
|
rowEnd: 0
|
|
525
|
-
}), Mn = _e,
|
|
525
|
+
}), Mn = _e, Fn = Object.freeze({
|
|
526
526
|
cell: cr,
|
|
527
527
|
ranges: _e,
|
|
528
528
|
rangeIndex: -1
|
|
@@ -554,35 +554,35 @@ function yr(e, t) {
|
|
|
554
554
|
function wr(e = ue.Row, t = !1) {
|
|
555
555
|
return t ? e === ue.Column ? pr : fr : e === ue.Column ? ur : dr;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Dn(e = ue.Row, t = !1) {
|
|
558
558
|
return t ? e === ue.Column ? yr : hr : e === ue.Column ? mr : gr;
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function br(e, t) {
|
|
561
561
|
return e === t || !(!e || !t) && e.rowIndex === t.rowIndex && e.colIndex === t.colIndex && e.scope === t.scope;
|
|
562
562
|
}
|
|
563
563
|
function dt(e, t) {
|
|
564
564
|
return e === t || !(!e || !t) && e.rowStart === t.rowStart && e.rowEnd === t.rowEnd && e.colStart === t.colStart && e.colEnd === t.colEnd && e.scope === t.scope;
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Un(e, t) {
|
|
567
567
|
if (!e || !t) return !1;
|
|
568
568
|
let r = e.rowIndex;
|
|
569
569
|
if (r < t.rowStart || r > t.rowEnd) return !1;
|
|
570
570
|
let n = e.colIndex;
|
|
571
571
|
return !(n < t.colStart || n > t.colEnd);
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Sr(e, t) {
|
|
574
574
|
return !(!e || !t) && !(e.rowStart < t.rowStart || e.rowEnd > t.rowEnd) && !(e.colStart < t.colStart || e.colEnd > t.colEnd);
|
|
575
575
|
}
|
|
576
576
|
function ft(e, t) {
|
|
577
577
|
return !(!e || !t) && !(e.colStart > t.colEnd || t.colStart > e.colEnd) && !(e.rowStart > t.rowEnd || t.rowStart > e.rowEnd);
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function vr(e, t) {
|
|
580
580
|
if (e === t) return !0;
|
|
581
581
|
if (!e || !t || e.length !== t.length) return !1;
|
|
582
582
|
for (let r = 0; r < e.length; r++) if (!dt(e[r], t[r])) return !1;
|
|
583
583
|
return !0;
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function Pn(e) {
|
|
586
586
|
return !!e && e.rowEnd === e.rowStart && e.colStart === e.colEnd;
|
|
587
587
|
}
|
|
588
588
|
function jn(e, t) {
|
|
@@ -590,7 +590,7 @@ function jn(e, t) {
|
|
|
590
590
|
let r = t;
|
|
591
591
|
return r || (r = { ...e }, delete r.colIndex, delete r.rowIndex), r.colStart = e.colIndex ?? 0, r.rowStart = e.rowIndex ?? 0, r.colEnd = e.colIndex ?? 0, r.rowEnd = e.rowIndex ?? 0, r;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Er(e, t, r) {
|
|
594
594
|
if (!e) return r ? t : { ...t };
|
|
595
595
|
if (!t) return r ? e : { ...e };
|
|
596
596
|
if (!e && !t || e.rowStart > t.rowEnd || e.rowEnd < t.rowStart || e.colStart > t.colEnd || e.colEnd < t.colStart) return null;
|
|
@@ -615,7 +615,7 @@ function it(e, t, r) {
|
|
|
615
615
|
}, i;
|
|
616
616
|
}
|
|
617
617
|
function xr(e, t) {
|
|
618
|
-
return e === t || !(!e || !t) && e.rangeIndex === t.rangeIndex && !!
|
|
618
|
+
return e === t || !(!e || !t) && e.rangeIndex === t.rangeIndex && !!br(e.cell, t.cell) && vr(e.ranges, t.ranges);
|
|
619
619
|
}
|
|
620
620
|
function Bn(e, t, r) {
|
|
621
621
|
if (!e || e.length === 0) return null;
|
|
@@ -678,7 +678,7 @@ function Gn(e, t, r) {
|
|
|
678
678
|
rowEnd: e.rowEnd ?? t.rowEnd
|
|
679
679
|
} : t;
|
|
680
680
|
}
|
|
681
|
-
var
|
|
681
|
+
var Hn = [null, null], Wn = (e, t, r) => {
|
|
682
682
|
if (e[0].value === e[1].value) return t;
|
|
683
683
|
};
|
|
684
684
|
function Ar(e, t = 2, r, n = ue.Row, o) {
|
|
@@ -688,32 +688,32 @@ function Ar(e, t = 2, r, n = ue.Row, o) {
|
|
|
688
688
|
do {
|
|
689
689
|
let p = a.sort(wr(l ? ue.Row : ue.Column));
|
|
690
690
|
a = [], a.push(p[0]);
|
|
691
|
-
let h = p.length, c = 0, g = p[0], T = g.colStart, I = g.rowStart, M = g.colEnd,
|
|
692
|
-
for (let
|
|
693
|
-
let C = p[
|
|
694
|
-
if (R = l ? g && I === C.rowStart &&
|
|
695
|
-
let
|
|
691
|
+
let h = p.length, c = 0, g = p[0], T = g.colStart, I = g.rowStart, M = g.colEnd, H = g.rowEnd;
|
|
692
|
+
for (let E = 1; E < h; E++) {
|
|
693
|
+
let C = p[E], R = !1;
|
|
694
|
+
if (R = l ? g && I === C.rowStart && H === C.rowEnd && M + 1 === C.colStart : g && T === C.colStart && M === C.colEnd && H + 1 === C.rowStart, R) {
|
|
695
|
+
let P = {
|
|
696
696
|
colStart: T,
|
|
697
697
|
rowStart: I,
|
|
698
698
|
colEnd: l ? C.colEnd : M,
|
|
699
|
-
rowEnd: l ?
|
|
699
|
+
rowEnd: l ? H : C.rowEnd
|
|
700
700
|
};
|
|
701
|
-
if (g.value !== void 0 && (
|
|
701
|
+
if (g.value !== void 0 && (P.value = g.value), r) {
|
|
702
702
|
let Z = o ?? [null, null];
|
|
703
|
-
Z[0] = g, Z[1] = C,
|
|
703
|
+
Z[0] = g, Z[1] = C, P = r(Z, P, n);
|
|
704
704
|
}
|
|
705
|
-
if (
|
|
706
|
-
a[c] =
|
|
705
|
+
if (P) {
|
|
706
|
+
a[c] = P, u = !0, g = P, T = g.colStart, I = g.rowStart, M = g.colEnd, H = g.rowEnd;
|
|
707
707
|
continue;
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
|
-
a[++c] = C, g = C, T = g.colStart, I = g.rowStart, M = g.colEnd,
|
|
710
|
+
a[++c] = C, g = C, T = g.colStart, I = g.rowStart, M = g.colEnd, H = g.rowEnd;
|
|
711
711
|
}
|
|
712
712
|
i++, l = !l, i === 1 && (u = !0);
|
|
713
713
|
} while (i < t && u && a.length > 1);
|
|
714
714
|
return a;
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function Jn(e, t = !1) {
|
|
717
717
|
let r = [], n, o = null, a = -(2 ** 53 - 1), l = -(2 ** 53 - 1);
|
|
718
718
|
return {
|
|
719
719
|
append: (i, u, p) => {
|
|
@@ -732,28 +732,28 @@ function Wn(e, t = !1) {
|
|
|
732
732
|
rowEnd: T
|
|
733
733
|
}, c && (o.value = p), a = i, l = u, n = p;
|
|
734
734
|
},
|
|
735
|
-
done: (i) => (o &&= (r.push(o), null), i ? Ar(r, 3, i === !0 ?
|
|
735
|
+
done: (i) => (o &&= (r.push(o), null), i ? Ar(r, 3, i === !0 ? Wn : i, t ? ue.Column : ue.Row, Hn) : r)
|
|
736
736
|
};
|
|
737
737
|
}
|
|
738
|
-
var
|
|
738
|
+
var Se = {
|
|
739
739
|
Close: "close",
|
|
740
740
|
Blank: "blank",
|
|
741
741
|
Inside: "inside",
|
|
742
742
|
Tear: "tear"
|
|
743
743
|
};
|
|
744
|
-
function
|
|
744
|
+
function Yn(e, t, r) {
|
|
745
745
|
let n = r === ue.Row;
|
|
746
|
-
return (n ? e.colStart === t.colStart && e.colEnd === t.colEnd : e.rowStart === t.rowStart && e.rowEnd === t.rowEnd) ? (n ? t.rowStart > e.rowStart && t.rowStart <= e.rowEnd : t.colStart > e.colStart && t.colStart <= e.colEnd) ?
|
|
746
|
+
return (n ? e.colStart === t.colStart && e.colEnd === t.colEnd : e.rowStart === t.rowStart && e.rowEnd === t.rowEnd) ? (n ? t.rowStart > e.rowStart && t.rowStart <= e.rowEnd : t.colStart > e.colStart && t.colStart <= e.colEnd) ? Se.Inside : Se.Close : (n ? e.rowEnd >= t.rowStart && e.colStart <= t.colEnd && e.colEnd >= t.colStart : e.colEnd >= t.colStart && e.rowStart <= t.rowEnd && e.rowEnd >= t.rowStart) ? Se.Tear : Se.Blank;
|
|
747
747
|
}
|
|
748
|
-
function
|
|
749
|
-
return e ===
|
|
748
|
+
function qn(e) {
|
|
749
|
+
return e === Se.Inside || e === Se.Tear;
|
|
750
750
|
}
|
|
751
|
-
var
|
|
751
|
+
var q = {
|
|
752
752
|
Up: "up",
|
|
753
753
|
Down: "down",
|
|
754
754
|
Left: "left",
|
|
755
755
|
Right: "right"
|
|
756
|
-
},
|
|
756
|
+
}, W = {
|
|
757
757
|
Html: "text/html",
|
|
758
758
|
Plain: "text/plain",
|
|
759
759
|
Png: "image/png"
|
|
@@ -764,7 +764,7 @@ he({
|
|
|
764
764
|
});
|
|
765
765
|
function de(e, t, r, n) {
|
|
766
766
|
if (!e) return t;
|
|
767
|
-
let o = t, a = r ===
|
|
767
|
+
let o = t, a = r === q.Right || r === q.Down;
|
|
768
768
|
for (;;) {
|
|
769
769
|
let l = e(o, !a);
|
|
770
770
|
if (l === 0) return o;
|
|
@@ -773,7 +773,7 @@ function de(e, t, r, n) {
|
|
|
773
773
|
o = i;
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
|
-
function Ir(e, t =
|
|
776
|
+
function Ir(e, t = q.Right, r, n, o, a = null) {
|
|
777
777
|
if (a && xr(a, e)) return e;
|
|
778
778
|
let l = e.ranges, i = e.rangeIndex, u = l[i];
|
|
779
779
|
if (!ft({
|
|
@@ -784,16 +784,16 @@ function Ir(e, t = Y.Right, r, n, o, a = null) {
|
|
|
784
784
|
}, u)) return e;
|
|
785
785
|
let p = { ...e.cell }, h = i;
|
|
786
786
|
switch (t) {
|
|
787
|
-
case
|
|
787
|
+
case q.Right:
|
|
788
788
|
p.colIndex = de(o, p.colIndex + 1, t, u.colEnd + 1);
|
|
789
789
|
break;
|
|
790
|
-
case
|
|
790
|
+
case q.Left:
|
|
791
791
|
p.colIndex = de(o, p.colIndex - 1, t, u.colStart - 1);
|
|
792
792
|
break;
|
|
793
|
-
case
|
|
793
|
+
case q.Down:
|
|
794
794
|
p.rowIndex = de(n, p.rowIndex + 1, t, u.rowEnd + 1);
|
|
795
795
|
break;
|
|
796
|
-
case
|
|
796
|
+
case q.Up: p.rowIndex = de(n, p.rowIndex - 1, t, u.rowStart - 1);
|
|
797
797
|
}
|
|
798
798
|
let c = (I) => {
|
|
799
799
|
if (I) {
|
|
@@ -812,23 +812,23 @@ function Ir(e, t = Y.Right, r, n, o, a = null) {
|
|
|
812
812
|
};
|
|
813
813
|
}
|
|
814
814
|
};
|
|
815
|
-
if (t ===
|
|
816
|
-
else if (t ===
|
|
817
|
-
else if (t ===
|
|
818
|
-
else if (t ===
|
|
815
|
+
if (t === q.Right && p.colIndex > u.colEnd && p.rowIndex === u.rowEnd) c(!0);
|
|
816
|
+
else if (t === q.Left && p.colIndex < u.colStart && p.rowIndex === u.rowStart) c(!1);
|
|
817
|
+
else if (t === q.Down && p.colIndex === u.colEnd && p.rowIndex > u.rowEnd) c(!0);
|
|
818
|
+
else if (t === q.Up && p.colIndex === u.colStart && p.rowIndex < u.rowStart) c(!1);
|
|
819
819
|
else {
|
|
820
820
|
let I = p.rowIndex, M = p.colIndex;
|
|
821
821
|
switch (t) {
|
|
822
|
-
case
|
|
822
|
+
case q.Right:
|
|
823
823
|
M > u.colEnd && (I = de(n, I + 1, t, u.rowEnd + 1), M = u.colStart, I > u.rowEnd && (I = u.rowStart));
|
|
824
824
|
break;
|
|
825
|
-
case
|
|
825
|
+
case q.Left:
|
|
826
826
|
M < u.colStart && (I = de(n, I - 1, t, u.rowStart - 1), M = u.colEnd, I < u.rowStart && (I = u.rowEnd));
|
|
827
827
|
break;
|
|
828
|
-
case
|
|
828
|
+
case q.Down:
|
|
829
829
|
I > u.rowEnd && (M = de(o, M + 1, t, u.colEnd + 1), I = u.rowStart, M > u.colEnd && (M = u.colStart));
|
|
830
830
|
break;
|
|
831
|
-
case
|
|
831
|
+
case q.Up: I < u.rowStart && (M = de(o, M - 1, t, u.colStart - 1), I = u.rowEnd, M < u.colStart && (M = u.colEnd));
|
|
832
832
|
}
|
|
833
833
|
p = {
|
|
834
834
|
rowIndex: I,
|
|
@@ -836,28 +836,28 @@ function Ir(e, t = Y.Right, r, n, o, a = null) {
|
|
|
836
836
|
};
|
|
837
837
|
}
|
|
838
838
|
let g = r(p);
|
|
839
|
-
if (!
|
|
840
|
-
let I =
|
|
839
|
+
if (!Sr(g, u)) {
|
|
840
|
+
let I = Er(g, u);
|
|
841
841
|
I && (g = I);
|
|
842
842
|
}
|
|
843
843
|
let T = {
|
|
844
|
-
rowStart: de(n, g.rowStart,
|
|
845
|
-
colStart: de(o, g.colStart,
|
|
846
|
-
rowEnd: de(n, g.rowEnd,
|
|
847
|
-
colEnd: de(o, g.colEnd,
|
|
844
|
+
rowStart: de(n, g.rowStart, q.Down, g.rowEnd),
|
|
845
|
+
colStart: de(o, g.colStart, q.Right, g.colEnd),
|
|
846
|
+
rowEnd: de(n, g.rowEnd, q.Up, g.rowStart),
|
|
847
|
+
colEnd: de(o, g.colEnd, q.Left, g.colStart)
|
|
848
848
|
};
|
|
849
849
|
if (T.rowStart !== p.rowIndex || T.colStart !== p.colIndex) {
|
|
850
850
|
switch (t) {
|
|
851
|
-
case
|
|
851
|
+
case q.Right:
|
|
852
852
|
l[h].colStart === T.colStart && l[h].colEnd === T.colEnd && (p.rowIndex = T.rowEnd), p.colIndex = T.colEnd;
|
|
853
853
|
break;
|
|
854
|
-
case
|
|
854
|
+
case q.Left:
|
|
855
855
|
l[h].colStart === T.colStart && l[h].colEnd === T.colEnd && (p.rowIndex = T.rowStart), p.rowIndex === T.rowStart ? p.colIndex = T.colStart + 1 : p.colIndex = T.colStart;
|
|
856
856
|
break;
|
|
857
|
-
case
|
|
857
|
+
case q.Down:
|
|
858
858
|
l[h].rowStart === T.rowStart && l[h].rowEnd === T.rowEnd && (p.colIndex = T.colEnd), p.rowIndex = T.rowEnd;
|
|
859
859
|
break;
|
|
860
|
-
case
|
|
860
|
+
case q.Up: l[h].rowStart === T.rowStart && l[h].rowEnd === T.rowEnd && (p.colIndex = T.colStart), p.colIndex === T.colStart ? p.rowIndex = T.rowStart + 1 : p.rowIndex = T.rowStart;
|
|
861
861
|
}
|
|
862
862
|
return Ir({
|
|
863
863
|
cell: p,
|
|
@@ -908,7 +908,7 @@ var Zn = class {
|
|
|
908
908
|
}
|
|
909
909
|
};
|
|
910
910
|
new Zn();
|
|
911
|
-
var
|
|
911
|
+
var Ye;
|
|
912
912
|
he({
|
|
913
913
|
EmptyBounds: () => to,
|
|
914
914
|
EmptyRect: () => eo,
|
|
@@ -959,16 +959,16 @@ var $r = !(typeof window > "u" || !window.document || !window.document.createEle
|
|
|
959
959
|
return typeof window == "object" && (e = window.devicePixelRatio || 1), e;
|
|
960
960
|
}, Rr = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeElement || e?.contains(document.activeElement)), oo = (e, t, r = "auto") => {
|
|
961
961
|
if ((() => {
|
|
962
|
-
if (
|
|
962
|
+
if (Ye === void 0) {
|
|
963
963
|
let u = !1;
|
|
964
964
|
try {
|
|
965
965
|
document.createElement("div").scrollIntoView({ get container() {
|
|
966
966
|
return u = !0, "nearest";
|
|
967
967
|
} });
|
|
968
968
|
} catch {}
|
|
969
|
-
|
|
969
|
+
Ye = u;
|
|
970
970
|
}
|
|
971
|
-
return
|
|
971
|
+
return Ye;
|
|
972
972
|
})()) return void t.scrollIntoView({
|
|
973
973
|
block: "nearest",
|
|
974
974
|
inline: "nearest",
|
|
@@ -993,7 +993,7 @@ he({
|
|
|
993
993
|
requestTimeout: () => po,
|
|
994
994
|
throttle: () => lo
|
|
995
995
|
});
|
|
996
|
-
var
|
|
996
|
+
var ke = globalThis.requestAnimationFrame, io = globalThis.cancelAnimationFrame;
|
|
997
997
|
function lo(e, t) {
|
|
998
998
|
let r = null;
|
|
999
999
|
return (...n) => {
|
|
@@ -1024,10 +1024,10 @@ var co = (e) => {
|
|
|
1024
1024
|
r = !1, e(t);
|
|
1025
1025
|
};
|
|
1026
1026
|
return function(o) {
|
|
1027
|
-
t = o, t && t.persist && t.persist(), r || (r = !0,
|
|
1027
|
+
t = o, t && t.persist && t.persist(), r || (r = !0, ke(n));
|
|
1028
1028
|
};
|
|
1029
1029
|
}, uo = (e) => {
|
|
1030
|
-
if (typeof
|
|
1030
|
+
if (typeof ke == "function") ke(() => {
|
|
1031
1031
|
e();
|
|
1032
1032
|
});
|
|
1033
1033
|
else {
|
|
@@ -1036,11 +1036,11 @@ var co = (e) => {
|
|
|
1036
1036
|
e();
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
1039
|
-
},
|
|
1039
|
+
}, vt = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now(), fo = (e) => {
|
|
1040
1040
|
io(e.id);
|
|
1041
1041
|
}, po = (e, t) => {
|
|
1042
|
-
let r =
|
|
1043
|
-
|
|
1042
|
+
let r = vt(), n = { id: ke(function o() {
|
|
1043
|
+
vt() - r >= t ? e.call(null) : n.id = ke(o);
|
|
1044
1044
|
}) };
|
|
1045
1045
|
return n;
|
|
1046
1046
|
};
|
|
@@ -1049,15 +1049,15 @@ var mo = (e) => \`Invalid argument: '\${e}'.\`;
|
|
|
1049
1049
|
he({
|
|
1050
1050
|
APP_MIME_TYPE: () => go,
|
|
1051
1051
|
DEFAULT_MIME_TYPE: () => "*/*",
|
|
1052
|
-
JSONStableStringify: () =>
|
|
1052
|
+
JSONStableStringify: () => So,
|
|
1053
1053
|
arrayBufferToBase64: () => Nr,
|
|
1054
|
-
base64ToArrayBuffer: () =>
|
|
1054
|
+
base64ToArrayBuffer: () => bo,
|
|
1055
1055
|
blobToString: () => lt,
|
|
1056
1056
|
isLittleEndian: () => wo,
|
|
1057
1057
|
isNodeBuffer: () => ho,
|
|
1058
1058
|
isSharedArrayBufferSupported: () => yo
|
|
1059
1059
|
});
|
|
1060
|
-
var go = "application/octet-stream", Ae = globalThis.Buffer, ho = (e) => Ae?.isBuffer(e) ?? !1, yo = typeof SharedArrayBuffer == "function" && (globalThis.crossOriginIsolated === void 0 || globalThis.crossOriginIsolated === !0), wo = new Uint8Array(new Uint16Array([1]).buffer)[0] === 1,
|
|
1060
|
+
var go = "application/octet-stream", Ae = globalThis.Buffer, ho = (e) => Ae?.isBuffer(e) ?? !1, yo = typeof SharedArrayBuffer == "function" && (globalThis.crossOriginIsolated === void 0 || globalThis.crossOriginIsolated === !0), wo = new Uint8Array(new Uint16Array([1]).buffer)[0] === 1, Et = globalThis.FileReader, bo = (e) => {
|
|
1061
1061
|
let t = typeof globalThis.atob == "function" ? globalThis.atob(e) : Ae.from(e, "base64").toString("binary"), r = t.length, n = new Uint8Array(r);
|
|
1062
1062
|
for (let o = 0; o < r; o++) n[o] = t.charCodeAt(o);
|
|
1063
1063
|
return n.buffer;
|
|
@@ -1068,8 +1068,8 @@ var go = "application/octet-stream", Ae = globalThis.Buffer, ho = (e) => Ae?.isB
|
|
|
1068
1068
|
if (Ae) return Ae.from(n, "binary").toString("base64");
|
|
1069
1069
|
throw Error("Unsupported environment");
|
|
1070
1070
|
}, lt = (e) => new Promise((t, r) => {
|
|
1071
|
-
if (e) if (
|
|
1072
|
-
let n = new
|
|
1071
|
+
if (e) if (Et) {
|
|
1072
|
+
let n = new Et();
|
|
1073
1073
|
n.onload = () => {
|
|
1074
1074
|
t(n.result);
|
|
1075
1075
|
}, n.onerror = () => {
|
|
@@ -1085,7 +1085,7 @@ var go = "application/octet-stream", Ae = globalThis.Buffer, ho = (e) => Ae?.isB
|
|
|
1085
1085
|
} else r(/* @__PURE__ */ Error("Unsupported environment"));
|
|
1086
1086
|
else t("");
|
|
1087
1087
|
});
|
|
1088
|
-
function
|
|
1088
|
+
function So(e, t) {
|
|
1089
1089
|
t ||= {}, typeof t == "function" && (t = { cmp: t });
|
|
1090
1090
|
let r = typeof t.cycles == "boolean" && t.cycles, n = t.cmp && (o = t.cmp, function(l) {
|
|
1091
1091
|
return function(i, u) {
|
|
@@ -1124,13 +1124,13 @@ function bo(e, t) {
|
|
|
1124
1124
|
return a.splice(p, 1), "{" + u + "}";
|
|
1125
1125
|
})(e);
|
|
1126
1126
|
}
|
|
1127
|
-
var
|
|
1127
|
+
var vo;
|
|
1128
1128
|
he({
|
|
1129
1129
|
DATA_URL_PNG_PREFIX: () => _r,
|
|
1130
|
-
getImageDataUrl: () =>
|
|
1130
|
+
getImageDataUrl: () => Eo,
|
|
1131
1131
|
loadImageDetails: () => xo
|
|
1132
1132
|
});
|
|
1133
|
-
var _r = "data:image/png;base64,",
|
|
1133
|
+
var _r = "data:image/png;base64,", Lr = "Unable to resolve image.", xt = (e) => new Promise(async (t, r) => {
|
|
1134
1134
|
let n = null;
|
|
1135
1135
|
try {
|
|
1136
1136
|
let o = n = new Image();
|
|
@@ -1147,8 +1147,8 @@ var _r = "data:image/png;base64,", kr = "Unable to resolve image.", xt = (e) =>
|
|
|
1147
1147
|
} catch {
|
|
1148
1148
|
n?.src && URL.revokeObjectURL(n.src);
|
|
1149
1149
|
}
|
|
1150
|
-
n || r(Error(
|
|
1151
|
-
}),
|
|
1150
|
+
n || r(Error(Lr));
|
|
1151
|
+
}), Eo = (e, t = 1) => new Promise(async (r, n) => {
|
|
1152
1152
|
let o = null;
|
|
1153
1153
|
try {
|
|
1154
1154
|
let a = o = new Image();
|
|
@@ -1173,8 +1173,8 @@ var _r = "data:image/png;base64,", kr = "Unable to resolve image.", xt = (e) =>
|
|
|
1173
1173
|
} catch {
|
|
1174
1174
|
o?.src && URL.revokeObjectURL(o.src);
|
|
1175
1175
|
}
|
|
1176
|
-
o || n(Error(
|
|
1177
|
-
}),
|
|
1176
|
+
o || n(Error(Lr));
|
|
1177
|
+
}), qe = "image/svg+xml", xo = async (e, t = null) => {
|
|
1178
1178
|
let r = null, n = async () => {
|
|
1179
1179
|
try {
|
|
1180
1180
|
let a = t ?? "image/*", l = URL.createObjectURL(new Blob([e], { type: a }));
|
|
@@ -1186,16 +1186,16 @@ var _r = "data:image/png;base64,", kr = "Unable to resolve image.", xt = (e) =>
|
|
|
1186
1186
|
} catch {}
|
|
1187
1187
|
}, o = async () => {
|
|
1188
1188
|
try {
|
|
1189
|
-
let a = new TextDecoder().decode(e), l = URL.createObjectURL(new Blob([a], { type:
|
|
1189
|
+
let a = new TextDecoder().decode(e), l = URL.createObjectURL(new Blob([a], { type: qe })), i = await xt(l);
|
|
1190
1190
|
r = {
|
|
1191
|
-
mimeType: t ??
|
|
1191
|
+
mimeType: t ?? qe,
|
|
1192
1192
|
naturalSize: i,
|
|
1193
1193
|
asUrl: l,
|
|
1194
1194
|
asSVGText: a
|
|
1195
1195
|
};
|
|
1196
1196
|
} catch {}
|
|
1197
1197
|
};
|
|
1198
|
-
if (t ===
|
|
1198
|
+
if (t === qe ? await o() : t?.startsWith("image/") ? await n() : (await n(), r || await o()), !r) throw Error("Failed to load image");
|
|
1199
1199
|
return r;
|
|
1200
1200
|
}, Tt = /* @__PURE__ */ new Set(), To = (e) => {
|
|
1201
1201
|
Tt.has(e) || (Tt.add(e), console.warn(\`Unknown property '\${e}' in update; ignoring.\`));
|
|
@@ -1224,34 +1224,34 @@ var _r = "data:image/png;base64,", kr = "Unable to resolve image.", xt = (e) =>
|
|
|
1224
1224
|
h = null;
|
|
1225
1225
|
let g = c.length;
|
|
1226
1226
|
for (let T = 0; T < g; T++) {
|
|
1227
|
-
let I = c[T], M,
|
|
1228
|
-
if (
|
|
1229
|
-
let
|
|
1230
|
-
if (!
|
|
1227
|
+
let I = c[T], M, H = i?.[I];
|
|
1228
|
+
if (H !== void 0) {
|
|
1229
|
+
let E = u[I];
|
|
1230
|
+
if (!E) {
|
|
1231
1231
|
To(I);
|
|
1232
1232
|
continue;
|
|
1233
1233
|
}
|
|
1234
|
-
M = t(
|
|
1234
|
+
M = t(H, E, o, a?.[I], l);
|
|
1235
1235
|
} else M = a?.[I];
|
|
1236
|
-
M == null ? l &&
|
|
1236
|
+
M == null ? l && H === null && (h ??= {}, h[I] = null) : (h ??= {}, h[I] = M);
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
return h;
|
|
1240
1240
|
};
|
|
1241
|
-
})(
|
|
1241
|
+
})(vo ||= {});
|
|
1242
1242
|
var pt = {
|
|
1243
1243
|
code: "safari",
|
|
1244
1244
|
message: \`The Safari browser does not support advanced copy and paste.
|
|
1245
1245
|
Copy and paste will be limited to within the browser tab.
|
|
1246
1246
|
|
|
1247
1247
|
Please use Chrome or Edge if external copy and paste is required.\`
|
|
1248
|
-
},
|
|
1248
|
+
}, kr = {
|
|
1249
1249
|
code: "perms",
|
|
1250
1250
|
message: \`You do not have permissions to access the clipboard.
|
|
1251
1251
|
All copy and paste operations will be limited to the browser tab.\`
|
|
1252
|
-
}, Ct = Xe() === fe.Safari ? pt :
|
|
1252
|
+
}, Ct = Xe() === fe.Safari ? pt : kr, Co = {
|
|
1253
1253
|
Safari: pt,
|
|
1254
|
-
Perms:
|
|
1254
|
+
Perms: kr,
|
|
1255
1255
|
PermsWrite: Ct,
|
|
1256
1256
|
PermsRead: Ct
|
|
1257
1257
|
}, Ze = async () => new Promise((e) => {
|
|
@@ -1280,7 +1280,7 @@ All copy and paste operations will be limited to the browser tab.\`
|
|
|
1280
1280
|
}, Or = async (e) => {
|
|
1281
1281
|
if (!e) return null;
|
|
1282
1282
|
try {
|
|
1283
|
-
return await e.read({ unsanitized: [
|
|
1283
|
+
return await e.read({ unsanitized: [W.Html] });
|
|
1284
1284
|
} catch {}
|
|
1285
1285
|
return await e.read();
|
|
1286
1286
|
}, Ao = async (e, t) => {
|
|
@@ -1313,7 +1313,7 @@ if (!globalThis.ClipboardItem) {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
globalThis.ClipboardItem = t;
|
|
1315
1315
|
}
|
|
1316
|
-
var At, st = async (e, t =
|
|
1316
|
+
var At, st = async (e, t = W.Html) => new Promise(async (r, n) => {
|
|
1317
1317
|
try {
|
|
1318
1318
|
let o = await Ao(e, t);
|
|
1319
1319
|
if (o) {
|
|
@@ -1327,28 +1327,28 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
|
|
|
1327
1327
|
} catch (o) {
|
|
1328
1328
|
n(o);
|
|
1329
1329
|
}
|
|
1330
|
-
}), It = async (e, t =
|
|
1330
|
+
}), It = async (e, t = W.Html) => {
|
|
1331
1331
|
let r = await st(e, t);
|
|
1332
1332
|
if (!r) return null;
|
|
1333
1333
|
let n = null;
|
|
1334
1334
|
try {
|
|
1335
|
-
n = new DOMParser().parseFromString(r,
|
|
1335
|
+
n = new DOMParser().parseFromString(r, W.Html);
|
|
1336
1336
|
} catch {
|
|
1337
1337
|
console.warn("Can't parse html from clipboard.");
|
|
1338
1338
|
}
|
|
1339
1339
|
return n;
|
|
1340
1340
|
}, Io = async (e) => {
|
|
1341
1341
|
e && await e.writeText("");
|
|
1342
|
-
}, Oe = "clipboard-uuid", Re = "web text/uuid", $t = (e) => \`<div style="display:none" \${Oe}="\${e}"/>\`, Rt = { type:
|
|
1342
|
+
}, Oe = "clipboard-uuid", Re = "web text/uuid", $t = (e) => \`<div style="display:none" \${Oe}="\${e}"/>\`, Rt = { type: W.Plain }, Nt = { type: W.Html }, _t = { type: Re }, $o = (e, t) => {
|
|
1343
1343
|
let r = null;
|
|
1344
1344
|
try {
|
|
1345
|
-
let n = new DOMParser().parseFromString(t,
|
|
1345
|
+
let n = new DOMParser().parseFromString(t, W.Html);
|
|
1346
1346
|
n.body.firstElementChild?.setAttribute(Oe, e), r = n.getElementsByTagName("body")[0].innerHTML;
|
|
1347
1347
|
} catch (n) {
|
|
1348
1348
|
console.warn("Can't embed uuid.", n);
|
|
1349
1349
|
}
|
|
1350
1350
|
return r;
|
|
1351
|
-
},
|
|
1351
|
+
}, Lt = (e, t) => {
|
|
1352
1352
|
if (!t || !e) return !1;
|
|
1353
1353
|
try {
|
|
1354
1354
|
let r = t.querySelectorAll(\`[\${Oe}="\${e}"]\`);
|
|
@@ -1358,7 +1358,7 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
|
|
|
1358
1358
|
} catch {
|
|
1359
1359
|
return !1;
|
|
1360
1360
|
}
|
|
1361
|
-
},
|
|
1361
|
+
}, kt = class {
|
|
1362
1362
|
constructor(e) {
|
|
1363
1363
|
if (this._state = null, this._nativeClipboard = null, this._onFocus = null, this._onBlur = null, e?.nativeClipboard === void 0 || e?.nativeClipboard === !0) try {
|
|
1364
1364
|
this._nativeClipboard = globalThis?.navigator.clipboard;
|
|
@@ -1373,8 +1373,8 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
|
|
|
1373
1373
|
await Ze();
|
|
1374
1374
|
let e = await st(this._nativeClipboard, Re);
|
|
1375
1375
|
if (!this._state || e && e === this._state.uuid) return !0;
|
|
1376
|
-
let t = await It(this._nativeClipboard,
|
|
1377
|
-
return !this._state || (
|
|
1376
|
+
let t = await It(this._nativeClipboard, W.Html);
|
|
1377
|
+
return !this._state || (Lt(this._state.uuid, t) || this.clear(), !0);
|
|
1378
1378
|
}, async (e) => {
|
|
1379
1379
|
e?.message === "denied" || e.message?.includes("Document is not focused") || Xe() === fe.Safari || console.warn("Unable to detect clipboard changes: ", e);
|
|
1380
1380
|
});
|
|
@@ -1396,8 +1396,8 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
|
|
|
1396
1396
|
if (await Ze(), this._state?.uuid) {
|
|
1397
1397
|
let t = await st(this._nativeClipboard, Re);
|
|
1398
1398
|
if (t && t === e._state?.uuid) return !0;
|
|
1399
|
-
let r = await It(this._nativeClipboard,
|
|
1400
|
-
if (
|
|
1399
|
+
let r = await It(this._nativeClipboard, W.Html);
|
|
1400
|
+
if (Lt(e._state?.uuid, r)) return !0;
|
|
1401
1401
|
}
|
|
1402
1402
|
return e._state = {
|
|
1403
1403
|
items: await Or(this._nativeClipboard),
|
|
@@ -1425,18 +1425,18 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
|
|
|
1425
1425
|
}, t.dispatchEvent(new Event("clipboardwrite")), t.dispatchEvent(new Event("clipboardchange"));
|
|
1426
1426
|
};
|
|
1427
1427
|
await Qe("clipboard-write", async () => {
|
|
1428
|
-
await Ze(), n && o.length === 0 && (o.push(new ClipboardItem({ [Re]: new Blob([n], _t) })), o.push(new ClipboardItem({ [
|
|
1428
|
+
await Ze(), n && o.length === 0 && (o.push(new ClipboardItem({ [Re]: new Blob([n], _t) })), o.push(new ClipboardItem({ [W.Html]: new Blob([$t(n)], Nt) })));
|
|
1429
1429
|
for (let l = 0; l < Math.min(1, o.length); l++) {
|
|
1430
|
-
let i = o[l], u = i.types.indexOf(
|
|
1431
|
-
if (u !== -1 && (p = await lt(await i.getType(
|
|
1432
|
-
let I = await i.getType(
|
|
1430
|
+
let i = o[l], u = i.types.indexOf(W.Html), p = null;
|
|
1431
|
+
if (u !== -1 && (p = await lt(await i.getType(W.Html)), p &&= $o(n, p)), !p && i.types.includes(W.Plain)) {
|
|
1432
|
+
let I = await i.getType(W.Plain);
|
|
1433
1433
|
if (I) {
|
|
1434
1434
|
let M = null;
|
|
1435
1435
|
typeof I == "string" ? (console.warn("text as string", I), M = I) : M = await lt(I), M && (p = \`<div \${Oe}="\${n}">\${M}</div>\`);
|
|
1436
1436
|
}
|
|
1437
1437
|
}
|
|
1438
|
-
if (!p && i.types.includes(
|
|
1439
|
-
let I = Nr(await (await i.getType(
|
|
1438
|
+
if (!p && i.types.includes(W.Png)) {
|
|
1439
|
+
let I = Nr(await (await i.getType(W.Png)).arrayBuffer());
|
|
1440
1440
|
p = \`<div \${Oe}="\${n}"><img src="\${_r + I}"/></div>\`;
|
|
1441
1441
|
}
|
|
1442
1442
|
!p && n && (p = $t(n));
|
|
@@ -1445,7 +1445,7 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
|
|
|
1445
1445
|
let M = g[I];
|
|
1446
1446
|
c[M] = I === u ? h : i.getType(M);
|
|
1447
1447
|
}
|
|
1448
|
-
p && u === -1 && (c[
|
|
1448
|
+
p && u === -1 && (c[W.Html] = h), n && (c[Re] = new Blob([n], _t)), r.push(new ClipboardItem(c));
|
|
1449
1449
|
}
|
|
1450
1450
|
try {
|
|
1451
1451
|
r && r.length !== 0 ? await this._nativeClipboard.write(r) : await Io(this._nativeClipboard);
|
|
@@ -1462,19 +1462,19 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
|
|
|
1462
1462
|
let t = null, r = {};
|
|
1463
1463
|
try {
|
|
1464
1464
|
let o = await e.toText?.() ?? null;
|
|
1465
|
-
o && (r[
|
|
1465
|
+
o && (r[W.Plain] = new Blob([o ?? ""], Rt));
|
|
1466
1466
|
} catch (o) {
|
|
1467
1467
|
t = o;
|
|
1468
1468
|
}
|
|
1469
1469
|
try {
|
|
1470
1470
|
let o = await e.toHtml?.() ?? null;
|
|
1471
|
-
o && (r[
|
|
1471
|
+
o && (r[W.Html] = new Blob([o], { type: W.Html }));
|
|
1472
1472
|
} catch (o) {
|
|
1473
1473
|
t = o, console.warn("export to html", o);
|
|
1474
1474
|
}
|
|
1475
1475
|
try {
|
|
1476
1476
|
let o = await e.toImage?.() ?? null;
|
|
1477
|
-
o && (r[
|
|
1477
|
+
o && (r[W.Png] = o);
|
|
1478
1478
|
} catch (o) {
|
|
1479
1479
|
t = o, console.warn("export to png", o);
|
|
1480
1480
|
}
|
|
@@ -1501,7 +1501,7 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
|
|
|
1501
1501
|
let r = await this.read(), n = null, o = r ? r.length : 0;
|
|
1502
1502
|
for (let l = 0; !n && l < o; l++) {
|
|
1503
1503
|
let i = r[l];
|
|
1504
|
-
i.types.includes(
|
|
1504
|
+
i.types.includes(W.Plain) && (n = await i.getType(W.Plain));
|
|
1505
1505
|
}
|
|
1506
1506
|
if (!n) return void e("");
|
|
1507
1507
|
let a = new FileReader();
|
|
@@ -1513,7 +1513,7 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
|
|
|
1513
1513
|
});
|
|
1514
1514
|
}
|
|
1515
1515
|
async writeText(e) {
|
|
1516
|
-
let t = [new ClipboardItem({ [
|
|
1516
|
+
let t = [new ClipboardItem({ [W.Plain]: new Blob([e], Rt) })];
|
|
1517
1517
|
return this._write({
|
|
1518
1518
|
uuid: Ke(),
|
|
1519
1519
|
items: t,
|
|
@@ -1546,13 +1546,13 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
|
|
|
1546
1546
|
this._onFocus && globalThis.removeEventListener?.("focus", this._onFocus), this._onBlur && globalThis.removeEventListener?.("blur", this._onBlur);
|
|
1547
1547
|
}
|
|
1548
1548
|
};
|
|
1549
|
-
(At =
|
|
1549
|
+
(At = kt ||= {}).ErrorMessages = Co, At.Global = new kt();
|
|
1550
1550
|
var Mr = (e) => e === " " || e === " " || e === \`
|
|
1551
1551
|
\` || e === "\\r";
|
|
1552
1552
|
function Ot(e, t) {
|
|
1553
1553
|
for (; t.i < e.length && Mr(e[t.i]);) t.i++;
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1555
|
+
function Fr(e, t, r, n) {
|
|
1556
1556
|
let o = [], a = "", l = () => {
|
|
1557
1557
|
a &&= (o.push(a), "");
|
|
1558
1558
|
};
|
|
@@ -1628,7 +1628,7 @@ function Ro(e, t, r, n) {
|
|
|
1628
1628
|
if (g.startsWith("offset:")) h = parseInt(g.slice(7), 10) || 0;
|
|
1629
1629
|
else {
|
|
1630
1630
|
if (Ot(e, t), e[t.i] !== "{") break;
|
|
1631
|
-
t.i++, p[g] =
|
|
1631
|
+
t.i++, p[g] = Fr(e, t, i !== "select" || r, n + 1), e[t.i] === "}" && t.i++;
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
1634
1634
|
return {
|
|
@@ -1640,7 +1640,7 @@ function Ro(e, t, r, n) {
|
|
|
1640
1640
|
};
|
|
1641
1641
|
}
|
|
1642
1642
|
var No = /* @__PURE__ */ new Map(), _o = /* @__PURE__ */ new Map(), Mt = /* @__PURE__ */ new Map();
|
|
1643
|
-
function
|
|
1643
|
+
function Lo(e, t) {
|
|
1644
1644
|
let r = t ? _o : No, n = r.get(e);
|
|
1645
1645
|
if (!n) {
|
|
1646
1646
|
try {
|
|
@@ -1652,7 +1652,7 @@ function ko(e, t) {
|
|
|
1652
1652
|
}
|
|
1653
1653
|
return n;
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1655
|
+
function ko(e) {
|
|
1656
1656
|
let t = Mt.get(e);
|
|
1657
1657
|
if (!t) {
|
|
1658
1658
|
try {
|
|
@@ -1677,7 +1677,7 @@ function ze(e, t, r, n) {
|
|
|
1677
1677
|
continue;
|
|
1678
1678
|
}
|
|
1679
1679
|
if (a.kind === "hash") {
|
|
1680
|
-
o += n === void 0 ? "#" :
|
|
1680
|
+
o += n === void 0 ? "#" : ko(r).format(n);
|
|
1681
1681
|
continue;
|
|
1682
1682
|
}
|
|
1683
1683
|
let l = t?.[a.name];
|
|
@@ -1694,7 +1694,7 @@ function ze(e, t, r, n) {
|
|
|
1694
1694
|
}
|
|
1695
1695
|
let u = a.branches[\`=\${i}\`], p = i - a.offset;
|
|
1696
1696
|
if (!u) {
|
|
1697
|
-
let h =
|
|
1697
|
+
let h = Lo(r, a.type === "selectordinal").select(p);
|
|
1698
1698
|
u = a.branches[h] ?? a.branches.other;
|
|
1699
1699
|
}
|
|
1700
1700
|
o += u ? ze(u, t, r, p) : String(l);
|
|
@@ -1702,7 +1702,93 @@ function ze(e, t, r, n) {
|
|
|
1702
1702
|
return o;
|
|
1703
1703
|
}
|
|
1704
1704
|
new TextDecoder();
|
|
1705
|
-
|
|
1705
|
+
const w = Object.freeze({
|
|
1706
|
+
/** Exported function has no body. */
|
|
1707
|
+
NoBody: "SXL1001",
|
|
1708
|
+
/** Anonymous exported function is not allowed. */
|
|
1709
|
+
Anonymous: "SXL1002",
|
|
1710
|
+
/** Internal parse failure while analyzing the module. */
|
|
1711
|
+
ParseError: "SXL1003",
|
|
1712
|
+
/** Invalid parameter type. */
|
|
1713
|
+
InvalidParamType: "SXL2001",
|
|
1714
|
+
/** Invalid return type. */
|
|
1715
|
+
InvalidReturnType: "SXL2002",
|
|
1716
|
+
/** \`undefined\` / \`null\` / \`void\` is not valid as an input type. */
|
|
1717
|
+
UndefinedInput: "SXL2003",
|
|
1718
|
+
/** A type annotation is required but missing. */
|
|
1719
|
+
MissingType: "SXL2004",
|
|
1720
|
+
/** An \`Array\` must be typed (e.g. \`number[]\`, not bare \`[]\`). */
|
|
1721
|
+
UntypedArray: "SXL2005",
|
|
1722
|
+
/** A generic type must be supplied exactly one type argument. */
|
|
1723
|
+
GenericArity: "SXL2006",
|
|
1724
|
+
/** A return type cannot combine multiple modifiers (e.g. async + stream). */
|
|
1725
|
+
MultipleModifiers: "SXL2007",
|
|
1726
|
+
/** A context parameter must be the first parameter. */
|
|
1727
|
+
ContextNotFirst: "SXL2010",
|
|
1728
|
+
/** More than one \`Lambda\` parameter. */
|
|
1729
|
+
MultipleLambda: "SXL2020",
|
|
1730
|
+
/** A \`Lambda\` parameter must be the last parameter. */
|
|
1731
|
+
LambdaNotLast: "SXL2021",
|
|
1732
|
+
/** A \`Lambda\` parameter/return scalar type mismatch. */
|
|
1733
|
+
LambdaScalarMismatch: "SXL2022",
|
|
1734
|
+
/** \`Lambda\` is not valid as a return type. */
|
|
1735
|
+
LambdaReturn: "SXL2023",
|
|
1736
|
+
/** A bare function type is not valid as a return type. */
|
|
1737
|
+
FunctionReturn: "SXL2024",
|
|
1738
|
+
/** A \`Lambda\` function type has the wrong number of parameters. */
|
|
1739
|
+
LambdaArity: "SXL2025",
|
|
1740
|
+
/** Arrays of more than 2 dimensions are not supported. */
|
|
1741
|
+
ArrayDepth: "SXL2030",
|
|
1742
|
+
/** \`Repeating<T>\` used somewhere it cannot be (a return type, a rest parameter, nested in an array). */
|
|
1743
|
+
RepeatingPosition: "SXL2040",
|
|
1744
|
+
/** More than one \`Repeating<T>\` parameter. */
|
|
1745
|
+
MultipleRepeating: "SXL2041",
|
|
1746
|
+
/** A \`Repeating<T>\` group's slots are malformed (unlabelled tuple member, or a 1-element tuple). */
|
|
1747
|
+
RepeatingSlots: "SXL2042",
|
|
1748
|
+
/** An optional parameter/slot where a repeating group does not allow one. */
|
|
1749
|
+
RepeatingOptional: "SXL2043",
|
|
1750
|
+
/** \`Repeating<T, Max>\`'s maximum argument count is not a whole number in range. */
|
|
1751
|
+
RepeatingMax: "SXL2044",
|
|
1752
|
+
/** An enum mixes number and string members. */
|
|
1753
|
+
EnumMixed: "SXL2050",
|
|
1754
|
+
/** An enum member is not a constant number or string. */
|
|
1755
|
+
EnumMemberNotConstant: "SXL2051",
|
|
1756
|
+
/** A parameter type that is not declared in this module, so an enum behind it cannot be read. */
|
|
1757
|
+
EnumNotLocal: "SXL2052",
|
|
1758
|
+
/** An \`as const\` object used as a parameter type without its same-name type alias. */
|
|
1759
|
+
EnumMissingAlias: "SXL2053",
|
|
1760
|
+
/** An enum where no single argument is coerced to it (\`IRange<E>\`, \`Lazy<E>\`). */
|
|
1761
|
+
EnumPosition: "SXL2054",
|
|
1762
|
+
/** \`Omittable<E, V>\` whose \`V\` is neither a member of \`E\` nor \`null\`. */
|
|
1763
|
+
EnumOmittedValue: "SXL2055",
|
|
1764
|
+
/** No exported functions found in the module. */
|
|
1765
|
+
NoExports: "SXL3001",
|
|
1766
|
+
/** A \`@param\` tag references a parameter that does not exist. */
|
|
1767
|
+
UnknownParam: "SXL3002",
|
|
1768
|
+
/** A calculation function takes a built-in function's name. */
|
|
1769
|
+
BuiltInName: "SXL3003",
|
|
1770
|
+
/** A \`@returnKind\` tag names a value kind that does not exist, or names none at all. */
|
|
1771
|
+
UnknownReturnKind: "SXL3005",
|
|
1772
|
+
/** A calculation function's name (its \`@name\`, or else its own) is not a name a formula can call. */
|
|
1773
|
+
InvalidName: "SXL3006",
|
|
1774
|
+
/** Two functions in one module register under the same name (an \`@name\` repeats another's). */
|
|
1775
|
+
DuplicateName: "SXL3007",
|
|
1776
|
+
/** A function has no JSDoc description. */
|
|
1777
|
+
MissingSummary: "SXL9001",
|
|
1778
|
+
/** A \`@param\` is missing a description. */
|
|
1779
|
+
MissingParamDescription: "SXL9002",
|
|
1780
|
+
/**
|
|
1781
|
+
* Missing \`@returns\` on a non-void function.
|
|
1782
|
+
* @deprecated Retained for code stability but no longer emitted - Excel-style tooltips describe
|
|
1783
|
+
* behavior via the summary, so a standalone \`@returns\` warning is noise.
|
|
1784
|
+
*/
|
|
1785
|
+
MissingReturns: "SXL9003",
|
|
1786
|
+
/** Two enum members share a value. */
|
|
1787
|
+
EnumDuplicateValue: "SXL9004",
|
|
1788
|
+
/** An enum member has no doc comment. */
|
|
1789
|
+
EnumMemberUndocumented: "SXL9005"
|
|
1790
|
+
});
|
|
1791
|
+
var Fo;
|
|
1706
1792
|
(function(e) {
|
|
1707
1793
|
e.MAX_TEXT_LENGTH = 32767;
|
|
1708
1794
|
let t = e.MAX_SIGNIFICANT_DIGITS = 15;
|
|
@@ -1719,15 +1805,15 @@ var Do;
|
|
|
1719
1805
|
}
|
|
1720
1806
|
return a === null ? r : a.join("");
|
|
1721
1807
|
};
|
|
1722
|
-
})(
|
|
1723
|
-
var
|
|
1808
|
+
})(Fo ||= {});
|
|
1809
|
+
var Ut, et, Do, S, me = {
|
|
1724
1810
|
Number: "number",
|
|
1725
1811
|
String: "string",
|
|
1726
1812
|
Boolean: "boolean",
|
|
1727
1813
|
Error: "error",
|
|
1728
1814
|
RichData: "richData",
|
|
1729
1815
|
Null: "null"
|
|
1730
|
-
},
|
|
1816
|
+
}, Pt = {
|
|
1731
1817
|
...me,
|
|
1732
1818
|
Date: "date"
|
|
1733
1819
|
}, jt = {
|
|
@@ -1737,18 +1823,18 @@ var Pt, et, Fo, b, me = {
|
|
|
1737
1823
|
Lambda: "lambda",
|
|
1738
1824
|
Omitted: "omitted"
|
|
1739
1825
|
};
|
|
1740
|
-
(et =
|
|
1826
|
+
(et = Ut ||= {}).Axis = {
|
|
1741
1827
|
Column: "column",
|
|
1742
1828
|
Row: "row"
|
|
1743
1829
|
}, et.AxisSelection = {
|
|
1744
|
-
...
|
|
1830
|
+
...Ut.Axis,
|
|
1745
1831
|
Both: "both"
|
|
1746
1832
|
}, et.Direction = {
|
|
1747
1833
|
Up: "up",
|
|
1748
1834
|
Down: "down",
|
|
1749
1835
|
Left: "left",
|
|
1750
1836
|
Right: "right"
|
|
1751
|
-
}, (
|
|
1837
|
+
}, (Do ||= {}).Aggregate = {
|
|
1752
1838
|
Count: "count",
|
|
1753
1839
|
NumericalCount: "numericalCount",
|
|
1754
1840
|
Sum: "sum",
|
|
@@ -1800,11 +1886,11 @@ var Pt, et, Fo, b, me = {
|
|
|
1800
1886
|
Timeout: "#TIMEOUT!"
|
|
1801
1887
|
};
|
|
1802
1888
|
class n extends Error {
|
|
1803
|
-
constructor(N,
|
|
1804
|
-
super(pe,
|
|
1889
|
+
constructor(N, L, pe, J) {
|
|
1890
|
+
super(pe, J), this._label = L, this._code = N, this.details = J;
|
|
1805
1891
|
}
|
|
1806
1892
|
static {
|
|
1807
|
-
this.code =
|
|
1893
|
+
this.code = S.Code.Unknown;
|
|
1808
1894
|
}
|
|
1809
1895
|
get isFormulaError() {
|
|
1810
1896
|
return !0;
|
|
@@ -1827,11 +1913,11 @@ var Pt, et, Fo, b, me = {
|
|
|
1827
1913
|
}
|
|
1828
1914
|
e.Known = n;
|
|
1829
1915
|
class o extends n {
|
|
1830
|
-
constructor(N,
|
|
1831
|
-
super(t.Parse, r.Parse, N,
|
|
1916
|
+
constructor(N, L) {
|
|
1917
|
+
super(t.Parse, r.Parse, N, L);
|
|
1832
1918
|
}
|
|
1833
1919
|
static {
|
|
1834
|
-
this.code =
|
|
1920
|
+
this.code = S.Code.Parse;
|
|
1835
1921
|
}
|
|
1836
1922
|
getDetails() {
|
|
1837
1923
|
let N = this.details;
|
|
@@ -1845,195 +1931,195 @@ var Pt, et, Fo, b, me = {
|
|
|
1845
1931
|
}
|
|
1846
1932
|
e.Parse = o;
|
|
1847
1933
|
class a extends n {
|
|
1848
|
-
constructor(N,
|
|
1849
|
-
super(t.Null, r.Null, N,
|
|
1934
|
+
constructor(N, L) {
|
|
1935
|
+
super(t.Null, r.Null, N, L);
|
|
1850
1936
|
}
|
|
1851
1937
|
static {
|
|
1852
|
-
this.code =
|
|
1938
|
+
this.code = S.Code.Null;
|
|
1853
1939
|
}
|
|
1854
1940
|
}
|
|
1855
1941
|
e.Null = a;
|
|
1856
1942
|
class l extends n {
|
|
1857
|
-
constructor(N,
|
|
1858
|
-
super(t.Div0, r.Div0, N,
|
|
1943
|
+
constructor(N, L) {
|
|
1944
|
+
super(t.Div0, r.Div0, N, L);
|
|
1859
1945
|
}
|
|
1860
1946
|
static {
|
|
1861
|
-
this.code =
|
|
1947
|
+
this.code = S.Code.Div0;
|
|
1862
1948
|
}
|
|
1863
1949
|
}
|
|
1864
1950
|
e.Div0 = l;
|
|
1865
1951
|
class i extends n {
|
|
1866
|
-
constructor(N,
|
|
1867
|
-
super(t.Value, r.Value, N,
|
|
1952
|
+
constructor(N, L) {
|
|
1953
|
+
super(t.Value, r.Value, N, L);
|
|
1868
1954
|
}
|
|
1869
1955
|
static {
|
|
1870
|
-
this.code =
|
|
1956
|
+
this.code = S.Code.Value;
|
|
1871
1957
|
}
|
|
1872
1958
|
}
|
|
1873
1959
|
e.Value = i;
|
|
1874
1960
|
class u extends n {
|
|
1875
|
-
constructor(N,
|
|
1876
|
-
super(t.Ref, r.Ref, N,
|
|
1961
|
+
constructor(N, L) {
|
|
1962
|
+
super(t.Ref, r.Ref, N, L);
|
|
1877
1963
|
}
|
|
1878
1964
|
static {
|
|
1879
|
-
this.code =
|
|
1965
|
+
this.code = S.Code.Ref;
|
|
1880
1966
|
}
|
|
1881
1967
|
}
|
|
1882
1968
|
e.Ref = u;
|
|
1883
1969
|
class p extends n {
|
|
1884
|
-
constructor(N,
|
|
1885
|
-
super(t.Name, r.Name, N,
|
|
1970
|
+
constructor(N, L) {
|
|
1971
|
+
super(t.Name, r.Name, N, L);
|
|
1886
1972
|
}
|
|
1887
1973
|
static {
|
|
1888
|
-
this.code =
|
|
1974
|
+
this.code = S.Code.Name;
|
|
1889
1975
|
}
|
|
1890
1976
|
}
|
|
1891
1977
|
e.Name = p;
|
|
1892
1978
|
class h extends n {
|
|
1893
|
-
constructor(N,
|
|
1894
|
-
super(t.Num, r.Num, N,
|
|
1979
|
+
constructor(N, L) {
|
|
1980
|
+
super(t.Num, r.Num, N, L);
|
|
1895
1981
|
}
|
|
1896
1982
|
static {
|
|
1897
|
-
this.code =
|
|
1983
|
+
this.code = S.Code.Num;
|
|
1898
1984
|
}
|
|
1899
1985
|
}
|
|
1900
1986
|
e.Num = h;
|
|
1901
1987
|
class c extends n {
|
|
1902
|
-
constructor(N,
|
|
1903
|
-
super(t.NA, r.NA, N,
|
|
1988
|
+
constructor(N, L) {
|
|
1989
|
+
super(t.NA, r.NA, N, L);
|
|
1904
1990
|
}
|
|
1905
1991
|
static {
|
|
1906
|
-
this.code =
|
|
1992
|
+
this.code = S.Code.NA;
|
|
1907
1993
|
}
|
|
1908
1994
|
}
|
|
1909
1995
|
e.NA = c;
|
|
1910
1996
|
class g extends n {
|
|
1911
|
-
constructor(N,
|
|
1912
|
-
super(t.GettingData, r.GettingData, N,
|
|
1997
|
+
constructor(N, L) {
|
|
1998
|
+
super(t.GettingData, r.GettingData, N, L);
|
|
1913
1999
|
}
|
|
1914
2000
|
static {
|
|
1915
|
-
this.code =
|
|
2001
|
+
this.code = S.Code.GettingData;
|
|
1916
2002
|
}
|
|
1917
2003
|
}
|
|
1918
2004
|
e.GettingData = g;
|
|
1919
2005
|
class T extends n {
|
|
1920
|
-
constructor(N,
|
|
1921
|
-
super(t.Spill, r.Spill, N,
|
|
2006
|
+
constructor(N, L) {
|
|
2007
|
+
super(t.Spill, r.Spill, N, L);
|
|
1922
2008
|
}
|
|
1923
2009
|
static {
|
|
1924
|
-
this.code =
|
|
2010
|
+
this.code = S.Code.Spill;
|
|
1925
2011
|
}
|
|
1926
2012
|
}
|
|
1927
2013
|
e.Spill = T;
|
|
1928
2014
|
class I extends n {
|
|
1929
|
-
constructor(N,
|
|
1930
|
-
super(t.Connect, r.Connect, N,
|
|
2015
|
+
constructor(N, L) {
|
|
2016
|
+
super(t.Connect, r.Connect, N, L);
|
|
1931
2017
|
}
|
|
1932
2018
|
static {
|
|
1933
|
-
this.code =
|
|
2019
|
+
this.code = S.Code.Connect;
|
|
1934
2020
|
}
|
|
1935
2021
|
}
|
|
1936
2022
|
e.Connect = I;
|
|
1937
2023
|
class M extends n {
|
|
1938
|
-
constructor(N,
|
|
1939
|
-
super(t.Blocked, r.Blocked, N,
|
|
2024
|
+
constructor(N, L) {
|
|
2025
|
+
super(t.Blocked, r.Blocked, N, L);
|
|
1940
2026
|
}
|
|
1941
2027
|
static {
|
|
1942
|
-
this.code =
|
|
2028
|
+
this.code = S.Code.Blocked;
|
|
1943
2029
|
}
|
|
1944
2030
|
}
|
|
1945
2031
|
e.Blocked = M;
|
|
1946
|
-
class
|
|
1947
|
-
constructor(N,
|
|
1948
|
-
super(t.Unknown, r.Unknown, N,
|
|
2032
|
+
class H extends n {
|
|
2033
|
+
constructor(N, L) {
|
|
2034
|
+
super(t.Unknown, r.Unknown, N, L);
|
|
1949
2035
|
}
|
|
1950
2036
|
static {
|
|
1951
|
-
this.code =
|
|
2037
|
+
this.code = S.Code.Unknown;
|
|
1952
2038
|
}
|
|
1953
2039
|
}
|
|
1954
|
-
e.Unknown =
|
|
1955
|
-
class
|
|
1956
|
-
constructor(N,
|
|
1957
|
-
super(t.Field, r.Field, N,
|
|
2040
|
+
e.Unknown = H;
|
|
2041
|
+
class E extends n {
|
|
2042
|
+
constructor(N, L) {
|
|
2043
|
+
super(t.Field, r.Field, N, L);
|
|
1958
2044
|
}
|
|
1959
2045
|
static {
|
|
1960
|
-
this.code =
|
|
2046
|
+
this.code = S.Code.Field;
|
|
1961
2047
|
}
|
|
1962
2048
|
}
|
|
1963
|
-
e.Field =
|
|
2049
|
+
e.Field = E;
|
|
1964
2050
|
class C extends n {
|
|
1965
|
-
constructor(N,
|
|
1966
|
-
super(t.Calc, r.Calc, N,
|
|
2051
|
+
constructor(N, L) {
|
|
2052
|
+
super(t.Calc, r.Calc, N, L);
|
|
1967
2053
|
}
|
|
1968
2054
|
static {
|
|
1969
|
-
this.code =
|
|
2055
|
+
this.code = S.Code.Calc;
|
|
1970
2056
|
}
|
|
1971
2057
|
}
|
|
1972
2058
|
e.Calc = C;
|
|
1973
2059
|
class R extends n {
|
|
1974
|
-
constructor(N,
|
|
1975
|
-
super(t.Busy, r.Busy, N,
|
|
2060
|
+
constructor(N, L) {
|
|
2061
|
+
super(t.Busy, r.Busy, N, L);
|
|
1976
2062
|
}
|
|
1977
2063
|
static {
|
|
1978
|
-
this.code =
|
|
2064
|
+
this.code = S.Code.Busy;
|
|
1979
2065
|
}
|
|
1980
2066
|
}
|
|
1981
2067
|
e.Busy = R;
|
|
1982
|
-
class
|
|
1983
|
-
constructor(N,
|
|
1984
|
-
super(t.Python, r.Python, N,
|
|
2068
|
+
class P extends n {
|
|
2069
|
+
constructor(N, L) {
|
|
2070
|
+
super(t.Python, r.Python, N, L);
|
|
1985
2071
|
}
|
|
1986
2072
|
static {
|
|
1987
|
-
this.code =
|
|
2073
|
+
this.code = S.Code.Python;
|
|
1988
2074
|
}
|
|
1989
2075
|
}
|
|
1990
|
-
e.Python =
|
|
2076
|
+
e.Python = P;
|
|
1991
2077
|
class Z extends n {
|
|
1992
|
-
constructor(N,
|
|
1993
|
-
super(t.Timeout, r.Timeout, N,
|
|
2078
|
+
constructor(N, L) {
|
|
2079
|
+
super(t.Timeout, r.Timeout, N, L);
|
|
1994
2080
|
}
|
|
1995
2081
|
static {
|
|
1996
|
-
this.code =
|
|
2082
|
+
this.code = S.Code.Timeout;
|
|
1997
2083
|
}
|
|
1998
2084
|
}
|
|
1999
2085
|
e.Timeout = Z;
|
|
2000
|
-
})(
|
|
2086
|
+
})(S ||= {});
|
|
2001
2087
|
var te = {};
|
|
2002
|
-
te[
|
|
2003
|
-
var
|
|
2088
|
+
te[S.Code.Parse] = S.Parse, te[S.Code.Null] = S.Null, te[S.Code.Div0] = S.Div0, te[S.Code.Value] = S.Value, te[S.Code.Ref] = S.Ref, te[S.Code.Name] = S.Name, te[S.Code.Num] = S.Num, te[S.Code.NA] = S.NA, te[S.Code.GettingData] = S.GettingData, te[S.Code.Spill] = S.Spill, te[S.Code.Connect] = S.Connect, te[S.Code.Blocked] = S.Blocked, te[S.Code.Unknown] = S.Unknown, te[S.Code.Field] = S.Field, te[S.Code.Calc] = S.Calc, te[S.Code.Busy] = S.Busy, te[S.Code.Python] = S.Python, te[S.Code.Timeout] = S.Timeout;
|
|
2089
|
+
var Dr = /* @__PURE__ */ new Map(), Ur = /* @__PURE__ */ new Map(), Pr = /* @__PURE__ */ new Map(), jr = /* @__PURE__ */ new Map(), Bt = Object.keys(te);
|
|
2004
2090
|
for (let e = 0; e < Bt.length; e++) {
|
|
2005
2091
|
let t = te[Bt[e]], r = new t();
|
|
2006
|
-
|
|
2092
|
+
Pr.set(r.getLabel(), t), jr.set(r.getCode(), t), Dr.set(r.getLabel(), r), Ur.set(r.getCode(), r);
|
|
2007
2093
|
}
|
|
2008
2094
|
(function(e) {
|
|
2009
|
-
let t = e.getBuiltInByCode = (r) =>
|
|
2095
|
+
let t = e.getBuiltInByCode = (r) => Ur.get(r);
|
|
2010
2096
|
e.BuiltIn = {
|
|
2011
|
-
Parse: t(
|
|
2012
|
-
Null: t(
|
|
2013
|
-
Div0: t(
|
|
2014
|
-
Value: t(
|
|
2015
|
-
Ref: t(
|
|
2016
|
-
Name: t(
|
|
2017
|
-
Num: t(
|
|
2018
|
-
NA: t(
|
|
2019
|
-
GettingData: t(
|
|
2020
|
-
Spill: t(
|
|
2021
|
-
Connect: t(
|
|
2022
|
-
Blocked: t(
|
|
2023
|
-
Unknown: t(
|
|
2024
|
-
Field: t(
|
|
2025
|
-
Calc: t(
|
|
2026
|
-
Busy: t(
|
|
2027
|
-
Python: t(
|
|
2028
|
-
Timeout: t(
|
|
2097
|
+
Parse: t(S.Code.Parse),
|
|
2098
|
+
Null: t(S.Code.Null),
|
|
2099
|
+
Div0: t(S.Code.Div0),
|
|
2100
|
+
Value: t(S.Code.Value),
|
|
2101
|
+
Ref: t(S.Code.Ref),
|
|
2102
|
+
Name: t(S.Code.Name),
|
|
2103
|
+
Num: t(S.Code.Num),
|
|
2104
|
+
NA: t(S.Code.NA),
|
|
2105
|
+
GettingData: t(S.Code.GettingData),
|
|
2106
|
+
Spill: t(S.Code.Spill),
|
|
2107
|
+
Connect: t(S.Code.Connect),
|
|
2108
|
+
Blocked: t(S.Code.Blocked),
|
|
2109
|
+
Unknown: t(S.Code.Unknown),
|
|
2110
|
+
Field: t(S.Code.Field),
|
|
2111
|
+
Calc: t(S.Code.Calc),
|
|
2112
|
+
Busy: t(S.Code.Busy),
|
|
2113
|
+
Python: t(S.Code.Python),
|
|
2114
|
+
Timeout: t(S.Code.Timeout)
|
|
2029
2115
|
}, e.newTypedError = (r, n, o) => {
|
|
2030
2116
|
let a;
|
|
2031
|
-
return a = typeof r == "string" ?
|
|
2032
|
-
}, e.getBuiltInByLabel = (r) =>
|
|
2117
|
+
return a = typeof r == "string" ? Pr.get(r) : jr.get(r), a ||= S.Unknown, new a(n, o);
|
|
2118
|
+
}, e.getBuiltInByLabel = (r) => Dr.get(r), e.isError = function(r, n) {
|
|
2033
2119
|
return !!r && r.isFormulaError === !0 && (n === void 0 || r.getCode() === n);
|
|
2034
2120
|
};
|
|
2035
|
-
})(
|
|
2036
|
-
var
|
|
2121
|
+
})(S ||= {});
|
|
2122
|
+
var Uo = class {
|
|
2037
2123
|
createRange(e, t, r) {
|
|
2038
2124
|
throw new oe();
|
|
2039
2125
|
}
|
|
@@ -2125,7 +2211,7 @@ var Po = class {
|
|
|
2125
2211
|
}
|
|
2126
2212
|
parseAsLiteral(e) {
|
|
2127
2213
|
let t = e.toUpperCase();
|
|
2128
|
-
return t === "TRUE" || t !== "FALSE" &&
|
|
2214
|
+
return t === "TRUE" || t !== "FALSE" && S.getBuiltInByLabel(t);
|
|
2129
2215
|
}
|
|
2130
2216
|
toText(e) {
|
|
2131
2217
|
return typeof e == "string" ? e : e == null ? "" : typeof e == "boolean" ? e ? "TRUE" : "FALSE" : e?.isFormulaError ? e.getLabel() : String(e);
|
|
@@ -2136,7 +2222,7 @@ var Po = class {
|
|
|
2136
2222
|
return n === o ? e < t ? -1 : +(e > t) : n < o ? -1 : 1;
|
|
2137
2223
|
}
|
|
2138
2224
|
getRuntime() {
|
|
2139
|
-
return
|
|
2225
|
+
return Po;
|
|
2140
2226
|
}
|
|
2141
2227
|
getArgs() {
|
|
2142
2228
|
throw new oe(Br);
|
|
@@ -2158,7 +2244,7 @@ var Po = class {
|
|
|
2158
2244
|
rowStart: 0,
|
|
2159
2245
|
colEnd: 2 ** 14 - 1,
|
|
2160
2246
|
rowEnd: 2 ** 20 - 1
|
|
2161
|
-
}),
|
|
2247
|
+
}), Po = {
|
|
2162
2248
|
isDate1904: () => !1,
|
|
2163
2249
|
getLocale: () => zt.tag,
|
|
2164
2250
|
getLocaleProfile: () => zt,
|
|
@@ -2170,12 +2256,12 @@ var Po = class {
|
|
|
2170
2256
|
getOS: () => "unknown",
|
|
2171
2257
|
getUser: () => "unidentified",
|
|
2172
2258
|
getDescription: () => "Stubbed Formula Context"
|
|
2173
|
-
}, jo = 2958465,
|
|
2259
|
+
}, jo = 2958465, Ue = new Uo(), Bo = class {
|
|
2174
2260
|
constructor() {
|
|
2175
|
-
this._scope =
|
|
2261
|
+
this._scope = Ue, this._argsFn = null;
|
|
2176
2262
|
}
|
|
2177
2263
|
_setScope(e) {
|
|
2178
|
-
this._scope = e ??
|
|
2264
|
+
this._scope = e ?? Ue;
|
|
2179
2265
|
}
|
|
2180
2266
|
_getScope() {
|
|
2181
2267
|
return this._scope;
|
|
@@ -2203,7 +2289,7 @@ var Po = class {
|
|
|
2203
2289
|
}
|
|
2204
2290
|
parseAsLiteral(e) {
|
|
2205
2291
|
let t = this._getScope();
|
|
2206
|
-
return t.parseAsLiteral ? t.parseAsLiteral(e) :
|
|
2292
|
+
return t.parseAsLiteral ? t.parseAsLiteral(e) : Ue.parseAsLiteral(e);
|
|
2207
2293
|
}
|
|
2208
2294
|
toText(e) {
|
|
2209
2295
|
return this._getScope().toText(e);
|
|
@@ -2290,7 +2376,7 @@ var Po = class {
|
|
|
2290
2376
|
return this._getScope().getAddress(e, t);
|
|
2291
2377
|
}
|
|
2292
2378
|
compare(e, t, r) {
|
|
2293
|
-
return this._getScope().compare?.(e, t, r) ??
|
|
2379
|
+
return this._getScope().compare?.(e, t, r) ?? Ue.compare(e, t, r);
|
|
2294
2380
|
}
|
|
2295
2381
|
getRuntime() {
|
|
2296
2382
|
return this._getScope().getRuntime();
|
|
@@ -2388,92 +2474,7 @@ var Po = class {
|
|
|
2388
2474
|
})
|
|
2389
2475
|
});
|
|
2390
2476
|
new Bo();
|
|
2391
|
-
const
|
|
2392
|
-
/** Exported function has no body. */
|
|
2393
|
-
NoBody: "SXL1001",
|
|
2394
|
-
/** Anonymous exported function is not allowed. */
|
|
2395
|
-
Anonymous: "SXL1002",
|
|
2396
|
-
/** Internal parse failure while analyzing the module. */
|
|
2397
|
-
ParseError: "SXL1003",
|
|
2398
|
-
/** Invalid parameter type. */
|
|
2399
|
-
InvalidParamType: "SXL2001",
|
|
2400
|
-
/** Invalid return type. */
|
|
2401
|
-
InvalidReturnType: "SXL2002",
|
|
2402
|
-
/** \`undefined\` / \`null\` / \`void\` is not valid as an input type. */
|
|
2403
|
-
UndefinedInput: "SXL2003",
|
|
2404
|
-
/** A type annotation is required but missing. */
|
|
2405
|
-
MissingType: "SXL2004",
|
|
2406
|
-
/** An \`Array\` must be typed (e.g. \`number[]\`, not bare \`[]\`). */
|
|
2407
|
-
UntypedArray: "SXL2005",
|
|
2408
|
-
/** A generic type must be supplied exactly one type argument. */
|
|
2409
|
-
GenericArity: "SXL2006",
|
|
2410
|
-
/** A return type cannot combine multiple modifiers (e.g. async + stream). */
|
|
2411
|
-
MultipleModifiers: "SXL2007",
|
|
2412
|
-
/** A context parameter must be the first parameter. */
|
|
2413
|
-
ContextNotFirst: "SXL2010",
|
|
2414
|
-
/** More than one \`Lambda\` parameter. */
|
|
2415
|
-
MultipleLambda: "SXL2020",
|
|
2416
|
-
/** A \`Lambda\` parameter must be the last parameter. */
|
|
2417
|
-
LambdaNotLast: "SXL2021",
|
|
2418
|
-
/** A \`Lambda\` parameter/return scalar type mismatch. */
|
|
2419
|
-
LambdaScalarMismatch: "SXL2022",
|
|
2420
|
-
/** \`Lambda\` is not valid as a return type. */
|
|
2421
|
-
LambdaReturn: "SXL2023",
|
|
2422
|
-
/** A bare function type is not valid as a return type. */
|
|
2423
|
-
FunctionReturn: "SXL2024",
|
|
2424
|
-
/** A \`Lambda\` function type has the wrong number of parameters. */
|
|
2425
|
-
LambdaArity: "SXL2025",
|
|
2426
|
-
/** Arrays of more than 2 dimensions are not supported. */
|
|
2427
|
-
ArrayDepth: "SXL2030",
|
|
2428
|
-
/** \`Repeating<T>\` used somewhere it cannot be (a return type, a rest parameter, nested in an array). */
|
|
2429
|
-
RepeatingPosition: "SXL2040",
|
|
2430
|
-
/** More than one \`Repeating<T>\` parameter. */
|
|
2431
|
-
MultipleRepeating: "SXL2041",
|
|
2432
|
-
/** A \`Repeating<T>\` group's slots are malformed (unlabelled tuple member, or a 1-element tuple). */
|
|
2433
|
-
RepeatingSlots: "SXL2042",
|
|
2434
|
-
/** An optional parameter/slot where a repeating group does not allow one. */
|
|
2435
|
-
RepeatingOptional: "SXL2043",
|
|
2436
|
-
/** \`Repeating<T, Max>\`'s maximum argument count is not a whole number in range. */
|
|
2437
|
-
RepeatingMax: "SXL2044",
|
|
2438
|
-
/** An enum mixes number and string members. */
|
|
2439
|
-
EnumMixed: "SXL2050",
|
|
2440
|
-
/** An enum member is not a constant number or string. */
|
|
2441
|
-
EnumMemberNotConstant: "SXL2051",
|
|
2442
|
-
/** A parameter type that is not declared in this module, so an enum behind it cannot be read. */
|
|
2443
|
-
EnumNotLocal: "SXL2052",
|
|
2444
|
-
/** An \`as const\` object used as a parameter type without its same-name type alias. */
|
|
2445
|
-
EnumMissingAlias: "SXL2053",
|
|
2446
|
-
/** An enum where no single argument is coerced to it (\`IRange<E>\`, \`Lazy<E>\`). */
|
|
2447
|
-
EnumPosition: "SXL2054",
|
|
2448
|
-
/** \`Omittable<E, V>\` whose \`V\` is neither a member of \`E\` nor \`null\`. */
|
|
2449
|
-
EnumOmittedValue: "SXL2055",
|
|
2450
|
-
/** No exported functions found in the module. */
|
|
2451
|
-
NoExports: "SXL3001",
|
|
2452
|
-
/** A \`@param\` tag references a parameter that does not exist. */
|
|
2453
|
-
UnknownParam: "SXL3002",
|
|
2454
|
-
/** A calculation function takes a built-in function's name. */
|
|
2455
|
-
BuiltInName: "SXL3003",
|
|
2456
|
-
/** A \`@returnKind\` tag names a value kind that does not exist, or names none at all. */
|
|
2457
|
-
UnknownReturnKind: "SXL3005",
|
|
2458
|
-
/** A calculation function's name (its \`@name\`, or else its own) is not a name a formula can call. */
|
|
2459
|
-
InvalidName: "SXL3006",
|
|
2460
|
-
/** Two functions in one module register under the same name (an \`@name\` repeats another's). */
|
|
2461
|
-
DuplicateName: "SXL3007",
|
|
2462
|
-
/** A function has no JSDoc description. */
|
|
2463
|
-
MissingSummary: "SXL9001",
|
|
2464
|
-
/** A \`@param\` is missing a description. */
|
|
2465
|
-
MissingParamDescription: "SXL9002",
|
|
2466
|
-
/**
|
|
2467
|
-
* Missing \`@returns\` on a non-void function.
|
|
2468
|
-
* @deprecated Retained for code stability but no longer emitted - Excel-style tooltips describe
|
|
2469
|
-
* behavior via the summary, so a standalone \`@returns\` warning is noise.
|
|
2470
|
-
*/
|
|
2471
|
-
MissingReturns: "SXL9003",
|
|
2472
|
-
/** Two enum members share a value. */
|
|
2473
|
-
EnumDuplicateValue: "SXL9004",
|
|
2474
|
-
/** An enum member has no doc comment. */
|
|
2475
|
-
EnumMemberUndocumented: "SXL9005"
|
|
2476
|
-
}), Ko = [
|
|
2477
|
+
const Ko = [
|
|
2477
2478
|
{
|
|
2478
2479
|
name: "param",
|
|
2479
2480
|
group: "jsdoc",
|
|
@@ -2554,21 +2555,21 @@ const ct = /* @__PURE__ */ new Map([["IReferenceRange", "p"], ["IRange", "r"]]),
|
|
|
2554
2555
|
const n = t.get(r);
|
|
2555
2556
|
t.set(\`\${e}.\${r}\`, n);
|
|
2556
2557
|
});
|
|
2557
|
-
},
|
|
2558
|
+
}, Ho = /* @__PURE__ */ new Map([
|
|
2558
2559
|
["Scalar", "*"],
|
|
2559
2560
|
["Lambda", "l"],
|
|
2560
2561
|
["FormulaError.Known", me.Error],
|
|
2561
|
-
["Date",
|
|
2562
|
-
["IRichData",
|
|
2563
|
-
]), zr = /* @__PURE__ */ new Map([["Repeating", "repeating"]]),
|
|
2564
|
-
if (
|
|
2565
|
-
const t =
|
|
2562
|
+
["Date", Pt.Date],
|
|
2563
|
+
["IRichData", Pt.RichData]
|
|
2564
|
+
]), zr = /* @__PURE__ */ new Map([["Repeating", "repeating"]]), Wo = /* @__PURE__ */ new Set(["Flatten", "SheetXL.Flatten"]), Vr = /* @__PURE__ */ new Set(["AcceptError"]), Xr = /* @__PURE__ */ new Set(["Omittable"]), Gr = /* @__PURE__ */ new Set(["NoLift"]), Hr = /* @__PURE__ */ new Set(["NoFilter"]), Wr = /* @__PURE__ */ new Set(["Lazy"]), ut = /* @__PURE__ */ new Set(["ReportType"]), Vt = 255, Jo = /^[a-zA-Z_-][a-zA-Z0-9_.-]*$/, Yo = /^([a-z]{1,3})([0-9]+)$/i, qo = /^r[0-9]*c[0-9]*$/i, Zo = (e) => {
|
|
2565
|
+
if (qo.test(e)) return !0;
|
|
2566
|
+
const t = Yo.exec(e);
|
|
2566
2567
|
if (!t) return !1;
|
|
2567
2568
|
let r = 0;
|
|
2568
2569
|
for (const o of t[1].toUpperCase()) r = r * 26 + (o.charCodeAt(0) - 64);
|
|
2569
2570
|
const n = Number(t[2]);
|
|
2570
2571
|
return r <= 16384 && n >= 1 && n <= 1048576;
|
|
2571
|
-
}, le = "SheetXL",
|
|
2572
|
+
}, le = "SheetXL", Ee = (e) => {
|
|
2572
2573
|
const t = e.typeName.getText();
|
|
2573
2574
|
return t.startsWith(\`\${le}.\`) ? t.slice(8) : t;
|
|
2574
2575
|
};
|
|
@@ -2578,8 +2579,8 @@ gt(le, zr);
|
|
|
2578
2579
|
Vr.add("SheetXL.AcceptError");
|
|
2579
2580
|
Xr.add(\`\${le}.Omittable\`);
|
|
2580
2581
|
Gr.add(\`\${le}.NoLift\`);
|
|
2581
|
-
|
|
2582
|
-
|
|
2582
|
+
Hr.add(\`\${le}.NoFilter\`);
|
|
2583
|
+
Wr.add(\`\${le}.Lazy\`);
|
|
2583
2584
|
ut.add(\`\${le}.ReportType\`);
|
|
2584
2585
|
const Qo = /* @__PURE__ */ new Map([
|
|
2585
2586
|
["Promise", () => ({ async: !0 })],
|
|
@@ -2590,7 +2591,7 @@ const Qo = /* @__PURE__ */ new Map([
|
|
|
2590
2591
|
"IScript.ScriptContext",
|
|
2591
2592
|
\`\${le}.IScript.ScriptContext\`,
|
|
2592
2593
|
"ScriptContext"
|
|
2593
|
-
]),
|
|
2594
|
+
]), Ht = (e, t) => {
|
|
2594
2595
|
const r = t.literal;
|
|
2595
2596
|
if (r === void 0) return;
|
|
2596
2597
|
const n = e.SyntaxKind;
|
|
@@ -2647,34 +2648,34 @@ function ta(e, t, r, n) {
|
|
|
2647
2648
|
};
|
|
2648
2649
|
}
|
|
2649
2650
|
}, h = (s, f, d, y) => {
|
|
2650
|
-
const { start:
|
|
2651
|
+
const { start: v, length: k } = p(s);
|
|
2651
2652
|
i.push({
|
|
2652
|
-
start:
|
|
2653
|
-
length:
|
|
2653
|
+
start: v,
|
|
2654
|
+
length: k,
|
|
2654
2655
|
severity: d,
|
|
2655
2656
|
code: f,
|
|
2656
2657
|
message: y
|
|
2657
2658
|
});
|
|
2658
2659
|
}, c = (s, f, d) => {
|
|
2659
2660
|
h(s, f, "error", d);
|
|
2660
|
-
}, g = (s) => s?.parent?.name?.escapedText, T = (s, f, d, y,
|
|
2661
|
-
const O = { count: 0 }, A =
|
|
2661
|
+
}, g = (s) => s?.parent?.name?.escapedText, T = (s, f, d, y, v = !1, k = !1, j = !1) => {
|
|
2662
|
+
const O = { count: 0 }, A = J(s, f, d, y, O, v, k, j);
|
|
2662
2663
|
O.count >= 2 && (f.range || (f.range = "m", O.count -= 2), !y && O.count >= 1 && (O.count -= 1, O.count > 0 && c(s, w.ArrayDepth, \`Arrays of more than 2 dimensions are not supported: '\${g(s)}'.\`))), O.count > 0 && (f.arrayDepth = O.count);
|
|
2663
|
-
const
|
|
2664
|
-
return
|
|
2665
|
-
}, I = (s, f, d, y,
|
|
2664
|
+
const D = f.enum;
|
|
2665
|
+
return D && (O.count > (j ? 1 : 0) || f.range) && !P.has(f) && (f.valueOrRange || (c(s, w.EnumPosition, \`A list cannot hold the enum '\${D.id}': '\${f.name ?? g(s)}'. Its members reach the body as they are, so nothing checks them against the enum. Take one value per argument ('...x: \${D.id}[]'), or type the list by its scalar ('\${D.type}').\`), delete f.enum)), A;
|
|
2666
|
+
}, I = (s, f, d, y, v) => {
|
|
2666
2667
|
if (f !== "Lambda" && f !== \`\${le}.Lambda\`) return !1;
|
|
2667
|
-
const
|
|
2668
|
+
const k = s.typeArguments;
|
|
2668
2669
|
let j = "*";
|
|
2669
|
-
if (
|
|
2670
|
+
if (k && k.length === 2) if (v && k[0].kind === e.SyntaxKind.TupleType && (d.lambdaArity = k[0].elements.length), k[1].kind === e.SyntaxKind.AnyKeyword) j = "raw";
|
|
2670
2671
|
else {
|
|
2671
2672
|
const O = {};
|
|
2672
|
-
|
|
2673
|
+
J(k[1], O, y, !1, { count: 0 }), j = O.scalar ?? "*";
|
|
2673
2674
|
}
|
|
2674
|
-
else if (
|
|
2675
|
+
else if (k && k.length === 1 && k[0].kind !== e.SyntaxKind.TupleType && k[0].kind !== e.SyntaxKind.ArrayType) if (v && (d.lambdaArity = 2), k[0].kind === e.SyntaxKind.AnyKeyword) j = "raw";
|
|
2675
2676
|
else {
|
|
2676
2677
|
const O = {};
|
|
2677
|
-
|
|
2678
|
+
J(k[0], O, y, !1, { count: 0 }), j = O.scalar ?? "*";
|
|
2678
2679
|
}
|
|
2679
2680
|
return d.lambda = j, !0;
|
|
2680
2681
|
}, M = (s, f, d, y) => {
|
|
@@ -2682,158 +2683,158 @@ function ta(e, t, r, n) {
|
|
|
2682
2683
|
c(s, w.FunctionReturn, \`Function type is not a valid return type: '\${g(s)}'. Declare a 'Lambda' return instead.\`);
|
|
2683
2684
|
return;
|
|
2684
2685
|
}
|
|
2685
|
-
const
|
|
2686
|
+
const v = s.type, k = {};
|
|
2686
2687
|
let j = "*";
|
|
2687
|
-
|
|
2688
|
+
v && (v.kind === e.SyntaxKind.AnyKeyword ? j = "raw" : (J(v, k, d, !1, { count: 0 }), j = k.scalar ?? "*"));
|
|
2688
2689
|
const O = s.parameters;
|
|
2689
2690
|
O && !O.some((A) => A.dotDotDotToken) && (f.lambdaArity = O.length), f.lambda = j;
|
|
2690
|
-
},
|
|
2691
|
+
}, H = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new WeakSet(), Z = (s) => s !== void 0 && s.getSourceFile() === t, U = (s, f = !1) => {
|
|
2691
2692
|
return s.getJsDocTags(r).find((y) => y.name === "name")?.text?.map((y) => y.text).join("").trim() || (f ? Qt.camelToPrettyCase(s.name) : s.name);
|
|
2692
2693
|
}, N = (s) => {
|
|
2693
2694
|
const f = s.getJsDocTags(r).find((d) => d.name === "deprecated");
|
|
2694
2695
|
if (f) return f.text?.map((d) => d.text).join("").trim() || !0;
|
|
2695
|
-
},
|
|
2696
|
-
const d = e.isTypeReferenceNode(s) ? s.typeName : void 0, y = d ? r.getSymbolAtLocation(d) : void 0,
|
|
2696
|
+
}, L = (s, f) => {
|
|
2697
|
+
const d = e.isTypeReferenceNode(s) ? s.typeName : void 0, y = d ? r.getSymbolAtLocation(d) : void 0, v = y?.declarations?.length ? y : void 0;
|
|
2697
2698
|
if (d) {
|
|
2698
|
-
if (
|
|
2699
|
+
if (v && v.flags & e.SymbolFlags.Alias) {
|
|
2699
2700
|
c(s, w.EnumNotLocal, \`'\${d.getText()}' is imported, so its declaration cannot be read: '\${f}'. An enum must be declared in the module that uses it.\`);
|
|
2700
2701
|
return;
|
|
2701
2702
|
}
|
|
2702
|
-
if (!
|
|
2703
|
-
const
|
|
2704
|
-
if (!(
|
|
2705
|
-
c(s, w.EnumMissingAlias, \`'\${
|
|
2703
|
+
if (!v || !(v.flags & e.SymbolFlags.Type)) {
|
|
2704
|
+
const b = d.getText();
|
|
2705
|
+
if (!(v ? (v.flags & e.SymbolFlags.Variable) !== 0 : t.statements.some((x) => e.isVariableStatement(x) && x.declarationList.declarations.some((K) => e.isIdentifier(K.name) && K.name.text === b)))) return null;
|
|
2706
|
+
c(s, w.EnumMissingAlias, \`'\${b}' is a value, not a type: '\${f}'. Pair the object with a same-name type — 'type \${b} = typeof \${b}[keyof typeof \${b}];' — or declare it as 'enum \${b} { … }'.\`);
|
|
2706
2707
|
return;
|
|
2707
2708
|
}
|
|
2708
|
-
const m =
|
|
2709
|
+
const m = H.get(v);
|
|
2709
2710
|
if (m !== void 0) return m;
|
|
2710
|
-
if (R.has(
|
|
2711
|
+
if (R.has(v)) return;
|
|
2711
2712
|
}
|
|
2712
|
-
const
|
|
2713
|
+
const k = [];
|
|
2713
2714
|
let j = !1;
|
|
2714
|
-
if (
|
|
2715
|
-
if (!
|
|
2716
|
-
c(s, w.EnumNotLocal, \`'\${
|
|
2715
|
+
if (v && v.flags & e.SymbolFlags.Enum) {
|
|
2716
|
+
if (!v.declarations?.some(Z)) {
|
|
2717
|
+
c(s, w.EnumNotLocal, \`'\${v.name}' is not declared in this module: '\${f}'. An enum must be declared in the module that uses it.\`);
|
|
2717
2718
|
return;
|
|
2718
2719
|
}
|
|
2719
2720
|
j = !0;
|
|
2720
2721
|
let m = !1;
|
|
2721
|
-
if (
|
|
2722
|
-
const x =
|
|
2722
|
+
if (v.exports?.forEach((b) => {
|
|
2723
|
+
const x = b.valueDeclaration;
|
|
2723
2724
|
if (!x || !e.isEnumMember(x)) return;
|
|
2724
2725
|
const K = r.getConstantValue(x);
|
|
2725
2726
|
if (K === void 0) {
|
|
2726
|
-
c(x, w.EnumMemberNotConstant, \`'\${
|
|
2727
|
+
c(x, w.EnumMemberNotConstant, \`'\${v.name}.\${b.name}' is not a constant number or string. A formula passes the VALUE, so every member needs one that can be read at compile time.\`), m = !0;
|
|
2727
2728
|
return;
|
|
2728
2729
|
}
|
|
2729
|
-
|
|
2730
|
-
|
|
2730
|
+
k.push([
|
|
2731
|
+
U(b, !0),
|
|
2731
2732
|
K,
|
|
2732
2733
|
x,
|
|
2733
|
-
$e(
|
|
2734
|
-
N(
|
|
2734
|
+
$e(b.getDocumentationComment(r)),
|
|
2735
|
+
N(b)
|
|
2735
2736
|
]);
|
|
2736
2737
|
}), m) {
|
|
2737
|
-
R.add(
|
|
2738
|
+
R.add(v);
|
|
2738
2739
|
return;
|
|
2739
2740
|
}
|
|
2740
2741
|
} else {
|
|
2741
|
-
const m = r.getTypeFromTypeNode(s),
|
|
2742
|
-
for (const
|
|
2743
|
-
if (!(
|
|
2744
|
-
K.push(
|
|
2742
|
+
const m = r.getTypeFromTypeNode(s), b = e.TypeFlags.Null | e.TypeFlags.Undefined | e.TypeFlags.Void, x = (m.isUnion() ? m.types : [m]).filter((F) => !(F.flags & b)), K = [];
|
|
2743
|
+
for (const F of x) {
|
|
2744
|
+
if (!(F.flags & (e.TypeFlags.NumberLiteral | e.TypeFlags.StringLiteral))) return v && H.set(v, null), null;
|
|
2745
|
+
K.push(F.value);
|
|
2745
2746
|
}
|
|
2746
2747
|
if (K.length === 0) return null;
|
|
2747
|
-
const re =
|
|
2748
|
-
if (
|
|
2749
|
-
const
|
|
2748
|
+
const re = v?.declarations?.find((F) => e.isTypeAliasDeclaration(F)), Y = e.isUnionTypeNode(s) ? s : re?.type;
|
|
2749
|
+
if (Y && e.isUnionTypeNode(Y)) {
|
|
2750
|
+
const F = Y.types.map(($) => {
|
|
2750
2751
|
const ne = r.getTypeFromTypeNode($);
|
|
2751
2752
|
return ne.isLiteral() ? ne.value : void 0;
|
|
2752
2753
|
}), _ = ($) => {
|
|
2753
|
-
const ne =
|
|
2754
|
-
return ne < 0 ?
|
|
2754
|
+
const ne = F.indexOf($);
|
|
2755
|
+
return ne < 0 ? F.length : ne;
|
|
2755
2756
|
};
|
|
2756
2757
|
K.sort(($, ne) => _($) - _(ne));
|
|
2757
2758
|
}
|
|
2758
|
-
const ee =
|
|
2759
|
-
if (
|
|
2760
|
-
const _ =
|
|
2759
|
+
const ee = v && v.flags & e.SymbolFlags.Variable ? v.valueDeclaration : void 0, ge = new Set(K);
|
|
2760
|
+
if (v && ee && Z(ee)) for (const F of r.getTypeOfSymbolAtLocation(v, ee).getProperties()) {
|
|
2761
|
+
const _ = F.valueDeclaration, $ = r.getTypeOfSymbolAtLocation(F, _ ?? ee);
|
|
2761
2762
|
if (!($.flags & (e.TypeFlags.NumberLiteral | e.TypeFlags.StringLiteral))) continue;
|
|
2762
2763
|
const ne = $.value;
|
|
2763
|
-
K.includes(ne) && (j = !0, ge.delete(ne),
|
|
2764
|
-
|
|
2764
|
+
K.includes(ne) && (j = !0, ge.delete(ne), k.push([
|
|
2765
|
+
U(F, !0),
|
|
2765
2766
|
ne,
|
|
2766
2767
|
_,
|
|
2767
|
-
$e(
|
|
2768
|
-
N(
|
|
2768
|
+
$e(F.getDocumentationComment(r)),
|
|
2769
|
+
N(F)
|
|
2769
2770
|
]));
|
|
2770
2771
|
}
|
|
2771
|
-
for (const
|
|
2772
|
-
String(
|
|
2773
|
-
|
|
2772
|
+
for (const F of K) ge.has(F) && k.push([
|
|
2773
|
+
String(F),
|
|
2774
|
+
F,
|
|
2774
2775
|
void 0,
|
|
2775
2776
|
null
|
|
2776
2777
|
]);
|
|
2777
2778
|
}
|
|
2778
|
-
if (
|
|
2779
|
-
const O = typeof
|
|
2780
|
-
if (
|
|
2781
|
-
c(s, w.EnumMixed, \`'\${
|
|
2779
|
+
if (k.length === 0) return null;
|
|
2780
|
+
const O = typeof k[0][1] == "number";
|
|
2781
|
+
if (k.some(([, m]) => typeof m == "number" !== O)) {
|
|
2782
|
+
c(s, w.EnumMixed, \`'\${v?.name ?? s.getText()}' mixes number and string members: '\${f}'. A parameter has one type, so an enum is all numbers or all strings.\`);
|
|
2782
2783
|
return;
|
|
2783
2784
|
}
|
|
2784
|
-
const A =
|
|
2785
|
-
if (
|
|
2785
|
+
const A = v ? U(v) : k.map(([, m]) => String(m)).join("|"), D = v ? void 0 : E.get(A);
|
|
2786
|
+
if (D) return D;
|
|
2786
2787
|
if (j) {
|
|
2787
2788
|
const m = /* @__PURE__ */ new Map();
|
|
2788
|
-
for (const [
|
|
2789
|
-
const
|
|
2790
|
-
ee !== void 0 ? h(K ?? s, w.EnumDuplicateValue, "warning", \`'\${A}.\${
|
|
2789
|
+
for (const [b, x, K, re] of k) {
|
|
2790
|
+
const Y = K?.name?.getText() ?? b, ee = m.get(x);
|
|
2791
|
+
ee !== void 0 ? h(K ?? s, w.EnumDuplicateValue, "warning", \`'\${A}.\${Y}' has the same value as '\${A}.\${ee}' (\${JSON.stringify(x)}). A formula passes the value, so the two cannot be told apart.\`) : m.set(x, Y), re === "" && h(K ?? s, w.EnumMemberUndocumented, "warning", \`'\${A}.\${Y}' is missing a description. Add a doc comment above the member — it is what the argument dropdown shows.\`);
|
|
2791
2792
|
}
|
|
2792
2793
|
}
|
|
2793
2794
|
const V = {
|
|
2794
2795
|
id: A,
|
|
2795
2796
|
type: O ? me.Number : me.String,
|
|
2796
|
-
members:
|
|
2797
|
+
members: k.map(([m, b, , , x]) => x ? [
|
|
2797
2798
|
m,
|
|
2798
|
-
|
|
2799
|
+
b,
|
|
2799
2800
|
x
|
|
2800
|
-
] : [m,
|
|
2801
|
+
] : [m, b])
|
|
2801
2802
|
};
|
|
2802
|
-
|
|
2803
|
-
const z =
|
|
2804
|
-
for (const [m, , ,
|
|
2803
|
+
v ? H.set(v, V) : E.set(A, V);
|
|
2804
|
+
const z = v ? $e(v.getDocumentationComment(r)) : "", B = {};
|
|
2805
|
+
for (const [m, , , b] of k) b && (B[m] = { description: b });
|
|
2805
2806
|
if (z || Object.keys(B).length > 0) {
|
|
2806
2807
|
const m = {};
|
|
2807
2808
|
z && (m.summary = z), Object.keys(B).length > 0 && (m.members = B), C.set(V, m);
|
|
2808
2809
|
}
|
|
2809
2810
|
return V;
|
|
2810
2811
|
}, pe = (s, f, d, y) => {
|
|
2811
|
-
const
|
|
2812
|
+
const v = (O, A, D) => {
|
|
2812
2813
|
const V = { name: O };
|
|
2813
|
-
return T(A, V, d, !0),
|
|
2814
|
+
return T(A, V, d, !0), D && (V.optional = !0), y && !V.acceptError && (V.acceptError = !0), V;
|
|
2814
2815
|
};
|
|
2815
|
-
if (s.kind !== e.SyntaxKind.TupleType) return [
|
|
2816
|
-
const
|
|
2817
|
-
if (
|
|
2816
|
+
if (s.kind !== e.SyntaxKind.TupleType) return [v(f, s, !1)];
|
|
2817
|
+
const k = s.elements;
|
|
2818
|
+
if (k.length < 2) return c(s, w.RepeatingSlots, \`'\${f}': a repeating group of period \${k.length} must be spelled 'Repeating<T>' without the tuple.\`), null;
|
|
2818
2819
|
const j = [];
|
|
2819
|
-
for (let O = 0; O <
|
|
2820
|
-
const A =
|
|
2820
|
+
for (let O = 0; O < k.length; O++) {
|
|
2821
|
+
const A = k[O];
|
|
2821
2822
|
if (A.kind !== e.SyntaxKind.NamedTupleMember) return c(A, w.RepeatingSlots, \`'\${f}': every slot of a repeating group must be labelled, e.g. 'Repeating<[criteriaRange: IRange, criteria: Scalar]>'.\`), null;
|
|
2822
|
-
const
|
|
2823
|
-
if (
|
|
2824
|
-
j.push(
|
|
2823
|
+
const D = !!A.questionToken;
|
|
2824
|
+
if (D && O !== k.length - 1) return c(A, w.RepeatingOptional, \`'\${f}': only the LAST slot of a repeating group may be optional (slot '\${A.name?.getText?.()}' is not).\`), null;
|
|
2825
|
+
j.push(v(A.name?.getText?.() ?? \`\${O}\`, A.type, D));
|
|
2825
2826
|
}
|
|
2826
2827
|
return j;
|
|
2827
|
-
},
|
|
2828
|
+
}, J = (s, f, d, y, v, k = !1, j = !1, O = !1) => {
|
|
2828
2829
|
if (!s) {
|
|
2829
2830
|
c(s, w.MissingType, \`Type is not defined for '\${f?.name ?? "return"}'.\`);
|
|
2830
2831
|
return;
|
|
2831
2832
|
}
|
|
2832
|
-
if (s.kind === e.SyntaxKind.ParenthesizedType) return
|
|
2833
|
+
if (s.kind === e.SyntaxKind.ParenthesizedType) return J(s.type, f, d, y, v, k, j, O);
|
|
2833
2834
|
if (s.kind === e.SyntaxKind.UnionType) {
|
|
2834
|
-
const A = (z) => z.kind === e.SyntaxKind.UndefinedKeyword || z.kind === e.SyntaxKind.VoidKeyword || z.kind === e.SyntaxKind.NullKeyword || z.kind === e.SyntaxKind.LiteralType && z.literal?.kind === e.SyntaxKind.NullKeyword,
|
|
2835
|
-
if (
|
|
2836
|
-
const V =
|
|
2835
|
+
const A = (z) => z.kind === e.SyntaxKind.UndefinedKeyword || z.kind === e.SyntaxKind.VoidKeyword || z.kind === e.SyntaxKind.NullKeyword || z.kind === e.SyntaxKind.LiteralType && z.literal?.kind === e.SyntaxKind.NullKeyword, D = s.types.filter((z) => !A(z));
|
|
2836
|
+
if (D.length === 1) return J(D[0], f, d, y, v, k, j, O);
|
|
2837
|
+
const V = L(s, f.name ?? g(s));
|
|
2837
2838
|
if (V === void 0) return;
|
|
2838
2839
|
if (V !== null) {
|
|
2839
2840
|
f.scalar = V.type, y && (f.enum = V);
|
|
@@ -2843,31 +2844,31 @@ function ta(e, t, r, n) {
|
|
|
2843
2844
|
f.scalar = "*";
|
|
2844
2845
|
return;
|
|
2845
2846
|
}
|
|
2846
|
-
if (
|
|
2847
|
-
const z = (m) => m.kind !== e.SyntaxKind.TypeReference ? !1 : e.isTypeReferenceNode(m) &&
|
|
2848
|
-
if (B >= 0 && !z(
|
|
2849
|
-
|
|
2847
|
+
if (D.length === 2) {
|
|
2848
|
+
const z = (m) => m.kind !== e.SyntaxKind.TypeReference ? !1 : e.isTypeReferenceNode(m) && Ee(m) === "Lambda", B = D.findIndex(z);
|
|
2849
|
+
if (B >= 0 && !z(D[1 - B])) {
|
|
2850
|
+
J(D[1 - B], f, d, y, v, k, j, O), I(D[B], Ee(D[B]), f, d, y);
|
|
2850
2851
|
return;
|
|
2851
2852
|
}
|
|
2852
2853
|
}
|
|
2853
|
-
if (y &&
|
|
2854
|
+
if (y && D.length === 2) {
|
|
2854
2855
|
const z = (m) => {
|
|
2855
|
-
if (!(m.kind !== e.SyntaxKind.TypeReference || m.typeArguments?.length)) return ct.get(
|
|
2856
|
-
}, B =
|
|
2857
|
-
if (B >= 0 && z(
|
|
2858
|
-
const m = {},
|
|
2859
|
-
if (
|
|
2860
|
-
f.range = z(
|
|
2856
|
+
if (!(m.kind !== e.SyntaxKind.TypeReference || m.typeArguments?.length)) return ct.get(Ee(m));
|
|
2857
|
+
}, B = D.findIndex((m) => z(m) !== void 0);
|
|
2858
|
+
if (B >= 0 && z(D[1 - B]) === void 0) {
|
|
2859
|
+
const m = {}, b = v.count;
|
|
2860
|
+
if (J(D[1 - B], m, d, y, v, k, !1), m.scalar && !m.range && m.lambda == null && v.count === b) {
|
|
2861
|
+
f.range = z(D[B]), f.scalar = m.scalar, f.valueOrRange = !0;
|
|
2861
2862
|
const x = m.enum;
|
|
2862
2863
|
x && (f.enum = x);
|
|
2863
2864
|
return;
|
|
2864
2865
|
}
|
|
2865
2866
|
}
|
|
2866
2867
|
}
|
|
2867
|
-
if (y &&
|
|
2868
|
-
const z = (m) => m.kind === e.SyntaxKind.TypeReference && !m.typeArguments?.length &&
|
|
2869
|
-
if (B >= 0 && !z(
|
|
2870
|
-
const m =
|
|
2868
|
+
if (y && D.length === 2) {
|
|
2869
|
+
const z = (m) => m.kind === e.SyntaxKind.TypeReference && !m.typeArguments?.length && Ee(m) === "Scalar", B = D.findIndex(z);
|
|
2870
|
+
if (B >= 0 && !z(D[1 - B])) {
|
|
2871
|
+
const m = L(D[1 - B], f.name ?? g(s));
|
|
2871
2872
|
if (m === void 0) return;
|
|
2872
2873
|
if (m !== null) {
|
|
2873
2874
|
f.scalar = "*", f.enum = m;
|
|
@@ -2896,23 +2897,23 @@ function ta(e, t, r, n) {
|
|
|
2896
2897
|
return;
|
|
2897
2898
|
}
|
|
2898
2899
|
if (y && j) {
|
|
2899
|
-
const
|
|
2900
|
-
delete
|
|
2900
|
+
const D = f, V = D.name ?? g(s) ?? "parameter", z = D.acceptError;
|
|
2901
|
+
delete D.acceptError;
|
|
2901
2902
|
const B = { name: V };
|
|
2902
|
-
T(A, B, d, !0), z && !B.acceptError && (B.acceptError = !0),
|
|
2903
|
+
T(A, B, d, !0), z && !B.acceptError && (B.acceptError = !0), D.repeating = [B];
|
|
2903
2904
|
return;
|
|
2904
2905
|
}
|
|
2905
|
-
|
|
2906
|
+
v.count++, J(A, f, d, y, v);
|
|
2906
2907
|
} else if (s.kind !== e.SyntaxKind.TupleType) if (s.kind === e.SyntaxKind.TypeReference) {
|
|
2907
|
-
const A =
|
|
2908
|
+
const A = Ee(s);
|
|
2908
2909
|
if (Vr.has(A)) {
|
|
2909
2910
|
const m = g(s);
|
|
2910
2911
|
if (!y) {
|
|
2911
2912
|
c(s, w.InvalidReturnType, \`'\${A}' is not a valid return type: '\${m}'. It describes how an ARGUMENT is received.\`);
|
|
2912
2913
|
return;
|
|
2913
2914
|
}
|
|
2914
|
-
const
|
|
2915
|
-
if (
|
|
2915
|
+
const b = f;
|
|
2916
|
+
if (b.acceptError) {
|
|
2916
2917
|
c(s, w.InvalidParamType, \`'\${m}' declares 'AcceptError' more than once.\`);
|
|
2917
2918
|
return;
|
|
2918
2919
|
}
|
|
@@ -2921,7 +2922,7 @@ function ta(e, t, r, n) {
|
|
|
2921
2922
|
c(s, w.GenericArity, \`'\${A}' must be typed with exactly 1 type: '\${m}'.\`);
|
|
2922
2923
|
return;
|
|
2923
2924
|
}
|
|
2924
|
-
return
|
|
2925
|
+
return b.acceptError = !0, J(x[0], f, d, y, v, k, j, O);
|
|
2925
2926
|
}
|
|
2926
2927
|
if (ut.has(A)) {
|
|
2927
2928
|
const m = f.name ?? g(s);
|
|
@@ -2929,12 +2930,12 @@ function ta(e, t, r, n) {
|
|
|
2929
2930
|
c(s, w.InvalidReturnType, \`'ReportType' is not a valid return type: '\${m}'. It describes how an ARGUMENT is received.\`);
|
|
2930
2931
|
return;
|
|
2931
2932
|
}
|
|
2932
|
-
const
|
|
2933
|
-
if (!
|
|
2933
|
+
const b = s.typeArguments;
|
|
2934
|
+
if (!b || b.length !== 1) {
|
|
2934
2935
|
c(s, w.GenericArity, \`'\${A}' must be typed with exactly 1 type: '\${m}'.\`);
|
|
2935
2936
|
return;
|
|
2936
2937
|
}
|
|
2937
|
-
return f.reportType = !0,
|
|
2938
|
+
return f.reportType = !0, J(b[0], f, d, y, v, k, j, O);
|
|
2938
2939
|
}
|
|
2939
2940
|
if (Gr.has(A)) {
|
|
2940
2941
|
const m = f.name ?? g(s);
|
|
@@ -2942,32 +2943,32 @@ function ta(e, t, r, n) {
|
|
|
2942
2943
|
c(s, w.InvalidReturnType, \`'NoLift' is not a valid return type: '\${m}'. It describes how an ARGUMENT is received.\`);
|
|
2943
2944
|
return;
|
|
2944
2945
|
}
|
|
2945
|
-
const
|
|
2946
|
-
if (!
|
|
2946
|
+
const b = s.typeArguments;
|
|
2947
|
+
if (!b || b.length !== 1) {
|
|
2947
2948
|
c(s, w.GenericArity, \`'\${A}' must be typed with exactly 1 type: '\${m}'.\`);
|
|
2948
2949
|
return;
|
|
2949
2950
|
}
|
|
2950
2951
|
const x = f;
|
|
2951
2952
|
x.noLift = !0;
|
|
2952
|
-
const K =
|
|
2953
|
-
|
|
2953
|
+
const K = v.count;
|
|
2954
|
+
J(b[0], f, d, y, v, k, j, O), (x.range || x.lambda != null || x.repeating || v.count !== K) && c(s, w.InvalidParamType, \`'\${m}': 'NoLift' applies to a SCALAR parameter only - a range, list, repeating or lambda slot never lifts.\`);
|
|
2954
2955
|
return;
|
|
2955
2956
|
}
|
|
2956
|
-
if (
|
|
2957
|
+
if (Hr.has(A)) {
|
|
2957
2958
|
const m = f.name ?? g(s);
|
|
2958
2959
|
if (!y) {
|
|
2959
2960
|
c(s, w.InvalidReturnType, \`'NoFilter' is not a valid return type: '\${m}'. It describes how an ARGUMENT is received.\`);
|
|
2960
2961
|
return;
|
|
2961
2962
|
}
|
|
2962
|
-
const
|
|
2963
|
-
if (!
|
|
2963
|
+
const b = s.typeArguments;
|
|
2964
|
+
if (!b || b.length !== 1) {
|
|
2964
2965
|
c(s, w.GenericArity, \`'\${A}' must be typed with exactly 1 type: '\${m}'.\`);
|
|
2965
2966
|
return;
|
|
2966
2967
|
}
|
|
2967
2968
|
const x = f;
|
|
2968
2969
|
x.noFilter = !0;
|
|
2969
|
-
const K =
|
|
2970
|
-
if (
|
|
2970
|
+
const K = v.count;
|
|
2971
|
+
if (J(b[0], f, d, y, v, k, j, O), x.range || x.lambda != null || v.count !== K) {
|
|
2971
2972
|
c(s, w.InvalidParamType, \`'\${m}': 'NoFilter' applies to a SCALAR slot only - a range, list or lambda slot has no members to coerce.\`);
|
|
2972
2973
|
return;
|
|
2973
2974
|
}
|
|
@@ -2987,31 +2988,31 @@ function ta(e, t, r, n) {
|
|
|
2987
2988
|
c(s, w.InvalidReturnType, \`'Omittable' is not a valid return type: '\${m}'. It describes how an ARGUMENT is received.\`);
|
|
2988
2989
|
return;
|
|
2989
2990
|
}
|
|
2990
|
-
const
|
|
2991
|
-
if (!
|
|
2991
|
+
const b = s.typeArguments;
|
|
2992
|
+
if (!b || b.length < 1 || b.length > 2) {
|
|
2992
2993
|
c(s, w.GenericArity, \`'\${A}' must be typed with 1 or 2 types: '\${m}'.\`);
|
|
2993
2994
|
return;
|
|
2994
2995
|
}
|
|
2995
2996
|
const x = f;
|
|
2996
|
-
if (x.omittable = !0,
|
|
2997
|
-
const
|
|
2998
|
-
if (
|
|
2997
|
+
if (x.omittable = !0, b.length === 2) {
|
|
2998
|
+
const Y = Ht(e, b[1]);
|
|
2999
|
+
if (Y === void 0) {
|
|
2999
3000
|
c(s, w.InvalidParamType, \`'\${m}' declares '\${A}' with a second type that is not a literal value. Use a number, string, boolean or null - the engine substitutes it for an omitted argument.\`);
|
|
3000
3001
|
return;
|
|
3001
3002
|
}
|
|
3002
|
-
x.omittedValue =
|
|
3003
|
+
x.omittedValue = Y;
|
|
3003
3004
|
}
|
|
3004
|
-
const K =
|
|
3005
|
-
return x.enum && re !== void 0 && re !== null && !x.enum.members.some(([,
|
|
3005
|
+
const K = J(b[0], f, d, y, v, k, j, O), re = x.omittedValue;
|
|
3006
|
+
return x.enum && re !== void 0 && re !== null && !x.enum.members.some(([, Y]) => Y === re) && c(b[1], w.EnumOmittedValue, \`'\${m}': \${JSON.stringify(re)} is not a member of '\${x.enum.id}'. An omitted argument must mean a member (\${x.enum.members.map(([, Y]) => JSON.stringify(Y)).join(", ")}) or null.\`), K;
|
|
3006
3007
|
}
|
|
3007
|
-
if (
|
|
3008
|
+
if (Wr.has(A)) {
|
|
3008
3009
|
const m = f.name ?? g(s);
|
|
3009
3010
|
if (!y) {
|
|
3010
3011
|
c(s, w.InvalidReturnType, \`'Lazy' is not a valid return type: '\${m}'. It describes how an ARGUMENT is received.\`);
|
|
3011
3012
|
return;
|
|
3012
3013
|
}
|
|
3013
|
-
const
|
|
3014
|
-
if (
|
|
3014
|
+
const b = f;
|
|
3015
|
+
if (b.lazy) {
|
|
3015
3016
|
c(s, w.InvalidParamType, \`'\${m}' declares 'Lazy' more than once.\`);
|
|
3016
3017
|
return;
|
|
3017
3018
|
}
|
|
@@ -3020,29 +3021,29 @@ function ta(e, t, r, n) {
|
|
|
3020
3021
|
c(s, w.GenericArity, \`'\${A}' must be typed with 1 or 2 types: '\${m}'.\`);
|
|
3021
3022
|
return;
|
|
3022
3023
|
}
|
|
3023
|
-
if (
|
|
3024
|
-
const K =
|
|
3024
|
+
if (b.lazy = !0, x.length === 2) {
|
|
3025
|
+
const K = Ht(e, x[1]);
|
|
3025
3026
|
if (K === void 0) {
|
|
3026
3027
|
c(s, w.InvalidParamType, \`'\${m}' declares '\${A}' with a second type that is not a literal value. Use a number, string, boolean or null - the engine substitutes it for an absent argument.\`);
|
|
3027
3028
|
return;
|
|
3028
3029
|
}
|
|
3029
|
-
|
|
3030
|
+
b.optional = !0, b.defaultValue = K;
|
|
3030
3031
|
}
|
|
3031
|
-
|
|
3032
|
+
J(x[0], f, d, y, v, k, j, O), b.enum ? (c(s, w.EnumPosition, \`'\${m}': 'Lazy' cannot hold the enum '\${b.enum.id}'. The argument may never be evaluated, so there is no point at which it could be checked against the members.\`), delete b.enum) : b.lambda != null ? c(s, w.InvalidParamType, \`'\${m}': 'Lazy' cannot be combined with a Lambda parameter - a callable slot is already the body's to call, or not.\`) : b.repeating && c(s, w.InvalidParamType, \`'\${m}': 'Lazy' applies to a VALUE, not to a repeating group - mark the group's slots instead.\`);
|
|
3032
3033
|
return;
|
|
3033
3034
|
}
|
|
3034
|
-
if (
|
|
3035
|
+
if (Wo.has(A)) {
|
|
3035
3036
|
const m = f.name ?? g(s);
|
|
3036
3037
|
if (!y) {
|
|
3037
3038
|
c(s, w.InvalidReturnType, \`'Flatten' is not a valid return type: '\${m}'. It describes how an ARGUMENT is received.\`);
|
|
3038
3039
|
return;
|
|
3039
3040
|
}
|
|
3040
|
-
const
|
|
3041
|
-
if (!
|
|
3041
|
+
const b = s.typeArguments;
|
|
3042
|
+
if (!b || b.length !== 1) {
|
|
3042
3043
|
c(s, w.GenericArity, \`'\${A}' must be typed with exactly 1 type: '\${m}'.\`);
|
|
3043
3044
|
return;
|
|
3044
3045
|
}
|
|
3045
|
-
return
|
|
3046
|
+
return v.count++, J(b[0], f, d, y, v, k);
|
|
3046
3047
|
}
|
|
3047
3048
|
if (zr.get(A) === "repeating") {
|
|
3048
3049
|
const m = f.name ?? g(s);
|
|
@@ -3050,41 +3051,41 @@ function ta(e, t, r, n) {
|
|
|
3050
3051
|
c(s, w.RepeatingPosition, \`'Repeating' is not a valid return type: '\${m}'.\`);
|
|
3051
3052
|
return;
|
|
3052
3053
|
}
|
|
3053
|
-
if (
|
|
3054
|
+
if (v.count !== 0) {
|
|
3054
3055
|
c(s, w.RepeatingPosition, \`'Repeating' cannot be nested inside another type: '\${m}'.\`);
|
|
3055
3056
|
return;
|
|
3056
3057
|
}
|
|
3057
|
-
const
|
|
3058
|
+
const b = f, x = s.typeArguments;
|
|
3058
3059
|
if (!x || x.length < 1 || x.length > 2) {
|
|
3059
3060
|
c(s, w.GenericArity, \`'\${A}' must be typed with 1 type, optionally followed by a maximum argument count: '\${m}'.\`);
|
|
3060
3061
|
return;
|
|
3061
3062
|
}
|
|
3062
3063
|
let K;
|
|
3063
3064
|
if (x.length === 2) {
|
|
3064
|
-
const ee = x[1], ge = ee.kind === e.SyntaxKind.LiteralType ? ee.literal : null,
|
|
3065
|
-
if (!Number.isInteger(
|
|
3065
|
+
const ee = x[1], ge = ee.kind === e.SyntaxKind.LiteralType ? ee.literal : null, F = ge && ge.kind === e.SyntaxKind.NumericLiteral ? Number(ge.text) : NaN;
|
|
3066
|
+
if (!Number.isInteger(F) || F < 1 || F > Vt) {
|
|
3066
3067
|
c(ee, w.RepeatingMax, \`'\${m}': '\${A}'’s maximum must be a whole number between 1 and \${Vt}.\`);
|
|
3067
3068
|
return;
|
|
3068
3069
|
}
|
|
3069
|
-
K =
|
|
3070
|
+
K = F, d.maxArguments = F;
|
|
3070
3071
|
}
|
|
3071
3072
|
if (O) {
|
|
3072
3073
|
if (K === void 0) {
|
|
3073
3074
|
c(s, w.RepeatingPosition, \`'\${m}' is a rest parameter and a repeating group. A group already repeats — drop the '...', or give the group a maximum ('Repeating<T, 254>') if the ceiling is all you meant.\`);
|
|
3074
3075
|
return;
|
|
3075
3076
|
}
|
|
3076
|
-
return
|
|
3077
|
+
return J(x[0], f, d, y, v, k, j);
|
|
3077
3078
|
}
|
|
3078
|
-
const re =
|
|
3079
|
-
delete
|
|
3080
|
-
const
|
|
3081
|
-
|
|
3079
|
+
const re = b.acceptError;
|
|
3080
|
+
delete b.acceptError;
|
|
3081
|
+
const Y = pe(x[0], m ?? "parameter", d, re);
|
|
3082
|
+
Y && (b.repeating = Y);
|
|
3082
3083
|
return;
|
|
3083
3084
|
}
|
|
3084
|
-
const
|
|
3085
|
+
const D = ct.get(A);
|
|
3085
3086
|
let V = !1;
|
|
3086
|
-
|
|
3087
|
-
const z =
|
|
3087
|
+
D && (f.range = D, V = !0);
|
|
3088
|
+
const z = Ho.get(A);
|
|
3088
3089
|
if (z && (f.scalar = z), z !== void 0 && (V = !0), I(s, A, f, d, y)) return;
|
|
3089
3090
|
if (y) {
|
|
3090
3091
|
if (A === "Volatile" || A === \`\${le}.Volatile\`) {
|
|
@@ -3097,9 +3098,9 @@ function ta(e, t, r, n) {
|
|
|
3097
3098
|
} else {
|
|
3098
3099
|
const m = Qo.get(A);
|
|
3099
3100
|
if (m) {
|
|
3100
|
-
const
|
|
3101
|
+
const b = Object.assign(f, m());
|
|
3101
3102
|
let x = 0;
|
|
3102
|
-
if (
|
|
3103
|
+
if (b.async && x++, b.stream && x++, x > 1) {
|
|
3103
3104
|
c(s, w.MultipleModifiers, \`'\${A}' cannot have multiple modifiers: '\${g(s)}'.\`);
|
|
3104
3105
|
return;
|
|
3105
3106
|
}
|
|
@@ -3107,7 +3108,7 @@ function ta(e, t, r, n) {
|
|
|
3107
3108
|
}
|
|
3108
3109
|
}
|
|
3109
3110
|
if (!V) {
|
|
3110
|
-
const m =
|
|
3111
|
+
const m = L(s, f.name ?? g(s));
|
|
3111
3112
|
if (m === void 0) return;
|
|
3112
3113
|
if (m !== null) {
|
|
3113
3114
|
f.scalar = m.type, y && (f.enum = m);
|
|
@@ -3115,9 +3116,9 @@ function ta(e, t, r, n) {
|
|
|
3115
3116
|
}
|
|
3116
3117
|
}
|
|
3117
3118
|
if (!V) {
|
|
3118
|
-
const m = "number, string, boolean, Scalar, Lambda, Date, FormulaError.Known, IRichData, IRange, IReferenceRange (and arrays of these; optionally wrapped in AcceptError<T>, or grouped with Repeating<T>)",
|
|
3119
|
+
const m = "number, string, boolean, Scalar, Lambda, Date, FormulaError.Known, IRichData, IRange, IReferenceRange (and arrays of these; optionally wrapped in AcceptError<T>, or grouped with Repeating<T>)", b = "number, string, boolean, Scalar, Date, FormulaError.Known, IRichData, IRange, Promise<T>, Observable<T>, Volatile<T> (and arrays of these)";
|
|
3119
3120
|
let x;
|
|
3120
|
-
y ?
|
|
3121
|
+
y ? k ? x = \`'\${A}' is not a valid first parameter: '\${g(s)}'. The first parameter is EITHER a macro target (making this a macro) OR a calculation input (making this a calculation function). Allowed: \${Go.join(", ")} (macro target); \${m} (calculation input).\` : x = \`'\${A}' is not a valid parameter type: '\${g(s)}'. Allowed: \${m}.\` : x = \`'\${A}' is not a valid return type: '\${g(s)}'. Allowed: \${b}.\`, c(s, y ? w.InvalidParamType : w.InvalidReturnType, x);
|
|
3121
3122
|
return;
|
|
3122
3123
|
}
|
|
3123
3124
|
const B = s.typeArguments;
|
|
@@ -3126,13 +3127,13 @@ function ta(e, t, r, n) {
|
|
|
3126
3127
|
c(s, w.GenericArity, \`'\${A}' must be typed with exactly 1 type: '\${g(s)}'.\`);
|
|
3127
3128
|
return;
|
|
3128
3129
|
}
|
|
3129
|
-
const m = B[0],
|
|
3130
|
-
|
|
3130
|
+
const m = B[0], b = y && e.isTypeReferenceNode(m) && ut.has(Ee(m)), x = f.reportType;
|
|
3131
|
+
b && P.add(f), T(m, f, d, y), b && x === void 0 && delete f.reportType;
|
|
3131
3132
|
const K = f.enum;
|
|
3132
|
-
K && !
|
|
3133
|
+
K && !b && (c(B[0], w.EnumPosition, \`'\${A}' cannot hold the enum '\${K.id}': '\${g(s)}'. The members of a range reach the body as they are, so nothing checks them against the enum. Take the enum as a value, or type the range by its scalar ('\${A}<\${K.type}>').\`), delete f.enum);
|
|
3133
3134
|
}
|
|
3134
3135
|
} else s.kind === e.SyntaxKind.FunctionType && M(s, f, d, y);
|
|
3135
|
-
}, Ge = (s) => (e.getCombinedModifierFlags(s) & e.ModifierFlags.Export) !== 0,
|
|
3136
|
+
}, Ge = (s) => (e.getCombinedModifierFlags(s) & e.ModifierFlags.Export) !== 0, He = (s) => (e.getCombinedModifierFlags(s) & e.ModifierFlags.Default) !== 0;
|
|
3136
3137
|
try {
|
|
3137
3138
|
e.forEachChild(t, (s) => {
|
|
3138
3139
|
if (Ge(s) && e.isFunctionDeclaration(s)) {
|
|
@@ -3148,25 +3149,25 @@ function ta(e, t, r, n) {
|
|
|
3148
3149
|
const d = {}, y = { parameters: {} };
|
|
3149
3150
|
try {
|
|
3150
3151
|
d.name = f;
|
|
3151
|
-
const
|
|
3152
|
-
|
|
3152
|
+
const v = r.getSymbolAtLocation(s.name), k = $e(v?.getDocumentationComment(r));
|
|
3153
|
+
k && (y.summary = k);
|
|
3153
3154
|
const j = {};
|
|
3154
3155
|
T(s.type, j, d, !1), d.returnType = j;
|
|
3155
3156
|
const O = {};
|
|
3156
|
-
|
|
3157
|
-
const A = /* @__PURE__ */ new Map(),
|
|
3158
|
-
let z = null, B = null, m = null,
|
|
3159
|
-
for (let
|
|
3160
|
-
const _ = s.parameters[
|
|
3157
|
+
He(s) && (O.default = !0, u = f), d.parameters = [];
|
|
3158
|
+
const A = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Set();
|
|
3159
|
+
let z = null, B = null, m = null, b = 0, x = !1, K = 0;
|
|
3160
|
+
for (let F = 0; F < s.parameters.length; F++) {
|
|
3161
|
+
const _ = s.parameters[F], $ = {};
|
|
3161
3162
|
$.name = _.name?.getText();
|
|
3162
3163
|
const ne = d.parameters.length === 0;
|
|
3163
|
-
if (n?.lenient &&
|
|
3164
|
+
if (n?.lenient && F === 0 && !_.type && O.default) {
|
|
3164
3165
|
d.context = Gt;
|
|
3165
3166
|
continue;
|
|
3166
3167
|
}
|
|
3167
3168
|
const Ie = T(_.type, $, d, !0, ne, !_.dotDotDotToken, !!_.dotDotDotToken);
|
|
3168
3169
|
if (Ie === Xt) {
|
|
3169
|
-
|
|
3170
|
+
F === 0 && d.context === void 0 && (d.context = Gt);
|
|
3170
3171
|
continue;
|
|
3171
3172
|
}
|
|
3172
3173
|
if (Ie) {
|
|
@@ -3221,13 +3222,13 @@ function ta(e, t, r, n) {
|
|
|
3221
3222
|
c(_, w.RepeatingOptional, \`'\${d.name}' parameter '\${m}' is optional and precedes the repeating group '\${$.name}'. Every parameter outside a group must be required.\`);
|
|
3222
3223
|
return;
|
|
3223
3224
|
}
|
|
3224
|
-
B = $.name,
|
|
3225
|
+
B = $.name, b = X.length, x = X[X.length - 1].optional === !0;
|
|
3225
3226
|
} else if (B !== null && $.rest) {
|
|
3226
3227
|
c(_, w.RepeatingOptional, \`'\${d.name}' parameter '\${$.name}' is a rest parameter and follows the repeating group '\${B}'. Two variadic tails would make the argument count ambiguous.\`);
|
|
3227
3228
|
return;
|
|
3228
3229
|
} else if (B !== null && ye) {
|
|
3229
|
-
if (K >=
|
|
3230
|
-
c(_, w.RepeatingOptional,
|
|
3230
|
+
if (K >= b - 1) {
|
|
3231
|
+
c(_, w.RepeatingOptional, b === 1 ? \`'\${d.name}' parameter '\${$.name}' is optional and follows the period-1 repeating group '\${B}'. One more argument is indistinguishable from one more repetition — make it required, or give the group a period.\` : \`'\${d.name}' has \${K + 1} optional parameters after the repeating group '\${B}', which has period \${b}. At most \${b - 1} may be optional, or the argument count no longer decides the parse.\`);
|
|
3231
3232
|
return;
|
|
3232
3233
|
}
|
|
3233
3234
|
if (x) {
|
|
@@ -3245,38 +3246,38 @@ function ta(e, t, r, n) {
|
|
|
3245
3246
|
d.parameters.push($);
|
|
3246
3247
|
const se = { description: "" };
|
|
3247
3248
|
y.parameters[$.name] = se;
|
|
3248
|
-
const
|
|
3249
|
-
se.description = $e(
|
|
3249
|
+
const We = r.getSymbolAtLocation(_.name);
|
|
3250
|
+
se.description = $e(We?.getDocumentationComment(r)), ae !== void 0 && ($.defaultValue = ae);
|
|
3250
3251
|
for (const ce of [$, ...$.repeating ?? []]) {
|
|
3251
3252
|
const we = ce.enum ? C.get(ce.enum) : void 0;
|
|
3252
3253
|
we && ((y.enums ??= {})[ce.enum.id] = we);
|
|
3253
3254
|
}
|
|
3254
|
-
if (A.set($.name, $),
|
|
3255
|
+
if (A.set($.name, $), D.set($.name, _), X && X.length > 1) {
|
|
3255
3256
|
V.add($.name);
|
|
3256
3257
|
for (const ce of X) {
|
|
3257
3258
|
const we = \`\${$.name}.\${ce.name}\`;
|
|
3258
|
-
y.parameters[we] = { description: "" }, A.set(we, ce),
|
|
3259
|
+
y.parameters[we] = { description: "" }, A.set(we, ce), D.set(we, _);
|
|
3259
3260
|
}
|
|
3260
3261
|
}
|
|
3261
3262
|
}
|
|
3262
3263
|
const re = d.maxArguments;
|
|
3263
3264
|
if (re !== void 0) {
|
|
3264
|
-
const
|
|
3265
|
-
if (!
|
|
3266
|
-
c(s, w.RepeatingMax, \`'\${d.name}' declares a maximum of \${re} arguments but takes a fixed \${
|
|
3265
|
+
const F = d.parameters ?? [];
|
|
3266
|
+
if (!F.some(($) => $.rest === !0 || $.repeating !== void 0)) {
|
|
3267
|
+
c(s, w.RepeatingMax, \`'\${d.name}' declares a maximum of \${re} arguments but takes a fixed \${F.length}. A maximum only means something on a variadic tail.\`);
|
|
3267
3268
|
return;
|
|
3268
3269
|
}
|
|
3269
3270
|
let _ = 0;
|
|
3270
|
-
for (const $ of
|
|
3271
|
+
for (const $ of F) $.rest === !0 || $.optional === !0 || (_ += $.repeating ? $.repeating.length : 1);
|
|
3271
3272
|
if (re < _) {
|
|
3272
3273
|
c(s, w.RepeatingMax, \`'\${d.name}' declares a maximum of \${re} arguments but requires \${_}.\`);
|
|
3273
3274
|
return;
|
|
3274
3275
|
}
|
|
3275
3276
|
}
|
|
3276
3277
|
if (s.jsDoc && s.jsDoc.length > 0) {
|
|
3277
|
-
const
|
|
3278
|
+
const F = s.jsDoc, _ = F.length;
|
|
3278
3279
|
for (let $ = 0; $ < _; $++) {
|
|
3279
|
-
const ne =
|
|
3280
|
+
const ne = F[$]?.tags;
|
|
3280
3281
|
if (!ne) continue;
|
|
3281
3282
|
const Ie = ne.length;
|
|
3282
3283
|
for (let ye = 0; ye < Ie; ye++) {
|
|
@@ -3295,12 +3296,12 @@ function ta(e, t, r, n) {
|
|
|
3295
3296
|
\`)[0].trim(), !G || G.length === 0))) {
|
|
3296
3297
|
if (G && typeof G == "string") {
|
|
3297
3298
|
const Q = /\\{@link(code|plain)?\\s+([^}|]+)(?:\\s*\\|\\s*([^}]+))?\\}/g;
|
|
3298
|
-
let se,
|
|
3299
|
+
let se, We = G, ce = [];
|
|
3299
3300
|
for (; (se = Q.exec(G)) !== null;) {
|
|
3300
|
-
const [we,
|
|
3301
|
+
const [we, wa, Zr, ht] = se, Qr = [Zr.trim()];
|
|
3301
3302
|
ht && Qr.push(ht.trim());
|
|
3302
3303
|
}
|
|
3303
|
-
G =
|
|
3304
|
+
G = We, ce.length > 0 && X === "see" && (y.links || (y.links = []), y.links.push(...ce));
|
|
3304
3305
|
}
|
|
3305
3306
|
if (X === "name") {
|
|
3306
3307
|
const Q = G;
|
|
@@ -3330,15 +3331,15 @@ function ta(e, t, r, n) {
|
|
|
3330
3331
|
}
|
|
3331
3332
|
}
|
|
3332
3333
|
Object.keys(d.returnType).length === 0 && delete d.returnType, Object.keys(O).length > 0 && (d.behavior = O), y.summary || h(s.name ?? s, w.MissingSummary, "warning", \`'\${f}': missing a description. Add a JSDoc comment above the function.\`);
|
|
3333
|
-
const
|
|
3334
|
-
if (
|
|
3335
|
-
const
|
|
3336
|
-
c(s.name ?? s, w.InvalidName, \`'\${f}': \${
|
|
3334
|
+
const Y = !d.context, ee = Y && y.name || f;
|
|
3335
|
+
if (Y && !Jo.test(ee)) {
|
|
3336
|
+
const F = y.name ? \`'@name \${y.name}'\` : \`'\${ee}'\`;
|
|
3337
|
+
c(s.name ?? s, w.InvalidName, \`'\${f}': \${F} cannot be called from a formula. A function name starts with a letter or '_', and continues with letters, digits, '_' or '.'.\` + (y.name ? "" : " Add an '@name' tag to register it under another name."));
|
|
3337
3338
|
return;
|
|
3338
3339
|
}
|
|
3339
|
-
if (
|
|
3340
|
-
const
|
|
3341
|
-
c(s.name ?? s, w.InvalidName, \`'\${f}': \${
|
|
3340
|
+
if (Y && !n?.isBuiltIn && Zo(ee)) {
|
|
3341
|
+
const F = y.name ? \`'@name \${y.name}'\` : \`'\${ee}'\`;
|
|
3342
|
+
c(s.name ?? s, w.InvalidName, \`'\${f}': \${F} cannot be called from a formula. It reads as a cell address.\` + (y.name ? "" : " Add an '@name' tag to register it under another name."));
|
|
3342
3343
|
return;
|
|
3343
3344
|
}
|
|
3344
3345
|
const ge = l.get(ee.toUpperCase());
|
|
@@ -3346,20 +3347,20 @@ function ta(e, t, r, n) {
|
|
|
3346
3347
|
c(s.name ?? s, w.DuplicateName, \`'\${f}': '\${ee}' is already the name of '\${ge}' in this module.\`);
|
|
3347
3348
|
return;
|
|
3348
3349
|
}
|
|
3349
|
-
if (l.set(ee.toUpperCase(), f),
|
|
3350
|
+
if (l.set(ee.toUpperCase(), f), Y && o?.has(ee.toUpperCase())) {
|
|
3350
3351
|
c(s.name ?? s, w.BuiltInName, \`'\${ee}' is a built-in function. Choose a different name - a calculation function cannot replace a built-in.\`);
|
|
3351
3352
|
return;
|
|
3352
3353
|
}
|
|
3353
|
-
if (
|
|
3354
|
-
const
|
|
3355
|
-
for (const [_, $] of Object.entries(
|
|
3356
|
-
const ne =
|
|
3354
|
+
if (Y) {
|
|
3355
|
+
const F = y.parameters ?? {};
|
|
3356
|
+
for (const [_, $] of Object.entries(F)) if (!V.has(_) && !$.description) {
|
|
3357
|
+
const ne = D.get(_);
|
|
3357
3358
|
h(ne, w.MissingParamDescription, "warning", \`'\${f}': parameter '\${_}' is missing a description. Add an '@param \${_}' tag.\`);
|
|
3358
3359
|
}
|
|
3359
3360
|
}
|
|
3360
3361
|
a.push([d, y]);
|
|
3361
|
-
} catch (
|
|
3362
|
-
c(s, w.ParseError, \`'\${f}': \${
|
|
3362
|
+
} catch (v) {
|
|
3363
|
+
c(s, w.ParseError, \`'\${f}': \${v.message}\`);
|
|
3363
3364
|
}
|
|
3364
3365
|
}
|
|
3365
3366
|
});
|
|
@@ -3391,64 +3392,64 @@ async function na() {
|
|
|
3391
3392
|
}
|
|
3392
3393
|
}), Te);
|
|
3393
3394
|
}
|
|
3394
|
-
var Te, oa =
|
|
3395
|
+
var Te, oa = qt((() => {
|
|
3395
3396
|
Te = null;
|
|
3396
3397
|
}));
|
|
3397
|
-
let xe = null,
|
|
3398
|
+
let xe = null, Pe = null;
|
|
3398
3399
|
async function aa() {
|
|
3399
3400
|
if (xe) return xe;
|
|
3400
|
-
if (
|
|
3401
|
-
if (await
|
|
3401
|
+
if (Pe) {
|
|
3402
|
+
if (await Pe, !xe) throw new Error("ESBuild initialization promise resolved, but instance is not available.");
|
|
3402
3403
|
return xe;
|
|
3403
3404
|
}
|
|
3404
3405
|
let e, t;
|
|
3405
|
-
|
|
3406
|
+
Pe = new Promise((r, n) => {
|
|
3406
3407
|
e = r, t = n;
|
|
3407
3408
|
});
|
|
3408
3409
|
try {
|
|
3409
3410
|
const { initialize: r } = await Promise.resolve().then(() => (oa(), ra));
|
|
3410
3411
|
return xe = await r(), e(), xe;
|
|
3411
3412
|
} catch (r) {
|
|
3412
|
-
throw console.error("Failed to import or initialize esbuild:", r),
|
|
3413
|
+
throw console.error("Failed to import or initialize esbuild:", r), Pe = null, t(r), r;
|
|
3413
3414
|
}
|
|
3414
3415
|
}
|
|
3415
3416
|
const ia = { compilerOptions: { target: "esnext" } };
|
|
3416
|
-
async function la(e, t, r = "/script.js", n = Ve) {
|
|
3417
|
+
async function la(e, t, r = "/script.js", n = Ve, o = !1) {
|
|
3417
3418
|
try {
|
|
3418
|
-
const
|
|
3419
|
+
const a = await aa(), l = "@sheetxl/primitives", i = \`
|
|
3419
3420
|
export const FormulaContext = globalThis.\${n}?.FormulaContext;
|
|
3420
3421
|
export const ScalarType = globalThis.\${n}?.ScalarType;
|
|
3421
3422
|
export const Observable = globalThis.\${n}?.Observable;
|
|
3422
3423
|
export const IRange = globalThis.\${n}?.IRange;
|
|
3423
3424
|
export const FormulaError = globalThis.\${n}?.FormulaError;
|
|
3424
3425
|
// Add more exports as needed
|
|
3425
|
-
\`,
|
|
3426
|
+
\`, u = await a.build({
|
|
3426
3427
|
entryPoints: [r],
|
|
3427
3428
|
bundle: !0,
|
|
3428
3429
|
write: !1,
|
|
3429
3430
|
format: "esm",
|
|
3430
3431
|
plugins: [{
|
|
3431
3432
|
name: "sheetxl-esbuild-in-memory",
|
|
3432
|
-
setup(
|
|
3433
|
-
const
|
|
3434
|
-
|
|
3435
|
-
path:
|
|
3436
|
-
namespace:
|
|
3437
|
-
})),
|
|
3438
|
-
if (
|
|
3439
|
-
path:
|
|
3433
|
+
setup(p) {
|
|
3434
|
+
const h = "sheetxl-" + (/* @__PURE__ */ new Date()).getTime();
|
|
3435
|
+
p.onResolve({ filter: new RegExp(\`^(\${r.replace("/", "\\\\/")}|\${l})$\`) }, (c) => ({
|
|
3436
|
+
path: c.path,
|
|
3437
|
+
namespace: h
|
|
3438
|
+
})), p.onResolve({ filter: /.*/ }, (c) => {
|
|
3439
|
+
if (c.namespace !== h) return console.warn(\`esbuild: Treating import "\${c.path}" as external.\`), {
|
|
3440
|
+
path: c.path,
|
|
3440
3441
|
external: !0
|
|
3441
3442
|
};
|
|
3442
|
-
}),
|
|
3443
|
+
}), p.onLoad({
|
|
3443
3444
|
filter: /.*/,
|
|
3444
|
-
namespace:
|
|
3445
|
-
}, (
|
|
3446
|
-
let
|
|
3447
|
-
if (
|
|
3448
|
-
else if (
|
|
3449
|
-
else return { errors: [{ text: \`Cannot load unknown path in \${
|
|
3445
|
+
namespace: h
|
|
3446
|
+
}, (c) => {
|
|
3447
|
+
let g;
|
|
3448
|
+
if (c.path === r) g = t;
|
|
3449
|
+
else if (c.path === l) g = i;
|
|
3450
|
+
else return { errors: [{ text: \`Cannot load unknown path in \${h}: \${c.path}\` }] };
|
|
3450
3451
|
return {
|
|
3451
|
-
contents:
|
|
3452
|
+
contents: g,
|
|
3452
3453
|
loader: "ts"
|
|
3453
3454
|
};
|
|
3454
3455
|
});
|
|
@@ -3456,14 +3457,14 @@ async function la(e, t, r = "/script.js", n = Ve) {
|
|
|
3456
3457
|
}],
|
|
3457
3458
|
sourcemap: "inline",
|
|
3458
3459
|
tsconfigRaw: ia,
|
|
3459
|
-
minify:
|
|
3460
|
+
minify: o,
|
|
3460
3461
|
platform: "neutral"
|
|
3461
3462
|
});
|
|
3462
|
-
if (
|
|
3463
|
-
throw
|
|
3463
|
+
if (u.outputFiles && u.outputFiles.length > 0) return u.outputFiles[0].text;
|
|
3464
|
+
throw u.errors && u.errors.length > 0 ? /* @__PURE__ */ new Error(\`esbuild bundling failed: \${u.errors.map((p) => p.text).join(\`
|
|
3464
3465
|
\`)}\`) : /* @__PURE__ */ new Error("esbuild did not produce an output file.");
|
|
3465
|
-
} catch (
|
|
3466
|
-
throw console.error("esbuild bundling process failed:",
|
|
3466
|
+
} catch (a) {
|
|
3467
|
+
throw console.error("esbuild bundling process failed:", a), a;
|
|
3467
3468
|
}
|
|
3468
3469
|
}
|
|
3469
3470
|
function sa(e, t, r) {
|
|
@@ -3497,56 +3498,12 @@ function sa(e, t, r) {
|
|
|
3497
3498
|
return (c) => e.visitNode(c, h);
|
|
3498
3499
|
};
|
|
3499
3500
|
}
|
|
3500
|
-
const
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
r < a.getStart(t) || r >= a.end || (a.getStart(t) === r && (n = a), e.forEachChild(a, o));
|
|
3505
|
-
};
|
|
3506
|
-
return e.forEachChild(t, o), n;
|
|
3507
|
-
}
|
|
3508
|
-
const fa = (e, t) => t.kind === e.SyntaxKind.NullKeyword || e.isIdentifier(t) && t.text === "undefined";
|
|
3509
|
-
function pa(e, t) {
|
|
3510
|
-
const r = t.parent;
|
|
3511
|
-
if (!r || !e.isPropertyAccessExpression(r) || r.name !== t) return !1;
|
|
3512
|
-
let n = r, o = r.parent;
|
|
3513
|
-
for (; o && (e.isParenthesizedExpression(o) || e.isNonNullExpression(o));) n = o, o = o.parent;
|
|
3514
|
-
if (!o) return !1;
|
|
3515
|
-
if ((e.isCallExpression(o) || e.isPropertyAccessExpression(o) || e.isElementAccessExpression(o)) && o.expression === n) return !!o.questionDotToken;
|
|
3516
|
-
if (e.isTypeOfExpression(o)) return !0;
|
|
3517
|
-
if (e.isPrefixUnaryExpression(o)) return o.operator === e.SyntaxKind.ExclamationToken;
|
|
3518
|
-
if (e.isConditionalExpression(o)) return o.condition === n;
|
|
3519
|
-
if (e.isIfStatement(o) || e.isWhileStatement(o) || e.isDoStatement(o)) return o.expression === n;
|
|
3520
|
-
if (e.isBinaryExpression(o)) {
|
|
3521
|
-
const a = o.operatorToken.kind, l = e.SyntaxKind;
|
|
3522
|
-
if (a === l.AmpersandAmpersandToken || a === l.BarBarToken || a === l.QuestionQuestionToken) return o.left === n;
|
|
3523
|
-
if (a === l.EqualsEqualsEqualsToken || a === l.ExclamationEqualsEqualsToken || a === l.EqualsEqualsToken || a === l.ExclamationEqualsToken) return fa(e, o.left === n ? o.right : o.left);
|
|
3524
|
-
}
|
|
3525
|
-
return !1;
|
|
3526
|
-
}
|
|
3527
|
-
function ma(e, t, r) {
|
|
3528
|
-
const n = [];
|
|
3529
|
-
for (const o of r) if (o.code !== w.MissingType) if (o.severity !== "error") n.push(o);
|
|
3530
|
-
else if (o.code === ua) n.push({
|
|
3531
|
-
...o,
|
|
3532
|
-
severity: "warning"
|
|
3533
|
-
});
|
|
3534
|
-
else if (ca.has(o.code)) {
|
|
3535
|
-
const a = da(e, t, o.start);
|
|
3536
|
-
n.push(a && pa(e, a) ? {
|
|
3537
|
-
...o,
|
|
3538
|
-
severity: "warning",
|
|
3539
|
-
message: \`\${o.message} Read as a probe, it is undefined.\`
|
|
3540
|
-
} : o);
|
|
3541
|
-
} else n.push(o);
|
|
3542
|
-
return n;
|
|
3543
|
-
}
|
|
3544
|
-
const Ht = "//# sourceMappingURL";
|
|
3545
|
-
var Wr = /* @__PURE__ */ Zt({
|
|
3546
|
-
initialize: () => ga,
|
|
3547
|
-
readLibFile: () => ha
|
|
3501
|
+
const Wt = "//# sourceMappingURL";
|
|
3502
|
+
var Jr = /* @__PURE__ */ Zt({
|
|
3503
|
+
initialize: () => ca,
|
|
3504
|
+
readLibFile: () => ua
|
|
3548
3505
|
});
|
|
3549
|
-
async function
|
|
3506
|
+
async function ca() {
|
|
3550
3507
|
return Ce || (Ce = new Promise(async (e, t) => {
|
|
3551
3508
|
let r = null;
|
|
3552
3509
|
try {
|
|
@@ -3561,11 +3518,11 @@ async function ga() {
|
|
|
3561
3518
|
r || (console.log("use script fallback"), Ce = null), e(r);
|
|
3562
3519
|
}), Ce);
|
|
3563
3520
|
}
|
|
3564
|
-
function
|
|
3565
|
-
var Ce,
|
|
3521
|
+
function ua(e, t) {}
|
|
3522
|
+
var Ce, Yr = qt((() => {
|
|
3566
3523
|
Ce = null;
|
|
3567
3524
|
}));
|
|
3568
|
-
const
|
|
3525
|
+
const da = \`
|
|
3569
3526
|
/**
|
|
3570
3527
|
* Represents the completion of an asynchronous operation
|
|
3571
3528
|
*/
|
|
@@ -3578,29 +3535,29 @@ interface Promise<T> {
|
|
|
3578
3535
|
*/
|
|
3579
3536
|
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
3580
3537
|
}
|
|
3581
|
-
\`,
|
|
3538
|
+
\`, fa = \`
|
|
3582
3539
|
interface FirstTest {
|
|
3583
3540
|
isTrue?: boolean;
|
|
3584
3541
|
}
|
|
3585
|
-
\`,
|
|
3542
|
+
\`, pa = async () => fa;
|
|
3586
3543
|
let je = null;
|
|
3587
|
-
const rt = "sheetxl.d.ts",
|
|
3588
|
-
\`,
|
|
3544
|
+
const rt = "sheetxl.d.ts", Jt = "sheetxl-modules.d.ts", ma = \`declare module '@sheetxl/primitives' { export = SheetXL; }
|
|
3545
|
+
\`, ga = [
|
|
3589
3546
|
"lib.webworker.d.ts",
|
|
3590
3547
|
"lib.es2020.d.ts",
|
|
3591
3548
|
"lib.esnext.asynciterable.d.ts"
|
|
3592
|
-
],
|
|
3549
|
+
], Yt = /* @__PURE__ */ new Map();
|
|
3593
3550
|
let nt = null, ot = null;
|
|
3594
|
-
async function
|
|
3595
|
-
return ot || (ot = Promise.resolve().then(() => (
|
|
3596
|
-
const t = await
|
|
3551
|
+
async function ha() {
|
|
3552
|
+
return ot || (ot = Promise.resolve().then(() => (Yr(), Jr)).then(async (e) => {
|
|
3553
|
+
const t = await qr();
|
|
3597
3554
|
return e.readLibFile(t, "lib.es5.d.ts") !== void 0 ? e.readLibFile : null;
|
|
3598
3555
|
})), ot;
|
|
3599
3556
|
}
|
|
3600
|
-
async function
|
|
3557
|
+
async function qr() {
|
|
3601
3558
|
if (je) return je;
|
|
3602
3559
|
try {
|
|
3603
|
-
const e = await (await Promise.resolve().then(() => (
|
|
3560
|
+
const e = await (await Promise.resolve().then(() => (Yr(), Jr))).initialize();
|
|
3604
3561
|
if (!e) throw new Error("TypeScript could not be loaded. Check your connection and try again.");
|
|
3605
3562
|
return e;
|
|
3606
3563
|
} catch (e) {
|
|
@@ -3609,16 +3566,16 @@ async function Yr() {
|
|
|
3609
3566
|
je = null;
|
|
3610
3567
|
}
|
|
3611
3568
|
}
|
|
3612
|
-
async function
|
|
3569
|
+
async function ya(e) {
|
|
3613
3570
|
const t = e?.source ?? null;
|
|
3614
3571
|
if (!t) return {
|
|
3615
3572
|
module: null,
|
|
3616
3573
|
diagnostics: []
|
|
3617
3574
|
};
|
|
3618
3575
|
const r = (e.disableBundle || e.declarationsOnly) ?? !1, [n, o, a] = await Promise.all([
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
e.ambientTypes ?
|
|
3576
|
+
pa(),
|
|
3577
|
+
qr(),
|
|
3578
|
+
e.ambientTypes ? ha() : null
|
|
3622
3579
|
]), l = a ? e.ambientTypes ?? null : null;
|
|
3623
3580
|
let i = "";
|
|
3624
3581
|
const u = {
|
|
@@ -3634,31 +3591,30 @@ async function xa(e) {
|
|
|
3634
3591
|
emitDeclarationOnly: !1,
|
|
3635
3592
|
target: o.ScriptTarget.ES2020,
|
|
3636
3593
|
...l ? {
|
|
3637
|
-
lib:
|
|
3594
|
+
lib: ga,
|
|
3638
3595
|
skipLibCheck: !0,
|
|
3639
3596
|
strict: !0
|
|
3640
|
-
} : {}
|
|
3641
|
-
...l && e.lenient ? { noImplicitAny: !1 } : {}
|
|
3597
|
+
} : {}
|
|
3642
3598
|
}, p = "script", h = \`\${p}.ts\`, c = "lib.d.ts", g = "global.d.ts", T = {
|
|
3643
3599
|
[h]: t,
|
|
3644
|
-
[c]:
|
|
3600
|
+
[c]: da,
|
|
3645
3601
|
[g]: n,
|
|
3646
3602
|
...l ? {
|
|
3647
3603
|
[rt]: l,
|
|
3648
|
-
[
|
|
3604
|
+
[Jt]: ma
|
|
3649
3605
|
} : {}
|
|
3650
3606
|
}, I = (d) => T[d] ?? (a && d.startsWith("lib.") ? a(o, d) : void 0), M = {
|
|
3651
|
-
getSourceFile: (d, y,
|
|
3607
|
+
getSourceFile: (d, y, v, k) => {
|
|
3652
3608
|
if (d === rt) return nt?.text !== l && (nt = {
|
|
3653
3609
|
text: l,
|
|
3654
3610
|
file: o.createSourceFile(d, l, o.ScriptTarget.Latest, !1)
|
|
3655
3611
|
}), nt.file;
|
|
3656
3612
|
if (T[d] === void 0) {
|
|
3657
|
-
let j =
|
|
3613
|
+
let j = Yt.get(d);
|
|
3658
3614
|
if (!j) {
|
|
3659
3615
|
const O = I(d);
|
|
3660
3616
|
if (O === void 0) return;
|
|
3661
|
-
j = o.createSourceFile(d, O, o.ScriptTarget.Latest, !1),
|
|
3617
|
+
j = o.createSourceFile(d, O, o.ScriptTarget.Latest, !1), Yt.set(d, j);
|
|
3662
3618
|
}
|
|
3663
3619
|
return j;
|
|
3664
3620
|
}
|
|
@@ -3675,58 +3631,58 @@ async function xa(e) {
|
|
|
3675
3631
|
getDefaultLibFileName: (d) => c,
|
|
3676
3632
|
getNewLine: () => \`
|
|
3677
3633
|
\`
|
|
3678
|
-
},
|
|
3634
|
+
}, H = o.createProgram([
|
|
3679
3635
|
h,
|
|
3680
3636
|
g,
|
|
3681
|
-
...l ? [rt,
|
|
3682
|
-
], u, M),
|
|
3683
|
-
|
|
3684
|
-
const
|
|
3637
|
+
...l ? [rt, Jt] : []
|
|
3638
|
+
], u, M), E = H.getTypeChecker(), C = H.getSourceFile(h), R = e.runGuard;
|
|
3639
|
+
H.emit(void 0, void 0, void 0, void 0, R ? { before: [sa(o, R.key, R.timeoutMs)] } : void 0), i = T[\`\${p}.js\`] ?? "";
|
|
3640
|
+
const P = (d) => ({
|
|
3685
3641
|
start: d.start ?? 0,
|
|
3686
3642
|
length: d.length ?? 0,
|
|
3687
3643
|
severity: d.category === o.DiagnosticCategory.Warning ? "warning" : "error",
|
|
3688
3644
|
code: \`TS\${d.code}\`,
|
|
3689
3645
|
message: o.flattenDiagnosticMessageText(d.messageText, \`
|
|
3690
3646
|
\`)
|
|
3691
|
-
}), Z =
|
|
3647
|
+
}), Z = H.getSyntacticDiagnostics(C).map(P), U = l ? H.getSemanticDiagnostics(C).filter((d) => d.category === o.DiagnosticCategory.Error || d.category === o.DiagnosticCategory.Warning).map(P) : [], N = ta(o, C, E, {
|
|
3692
3648
|
builtInNames: e.builtInNames,
|
|
3693
3649
|
isBuiltIn: e.isBuiltIn,
|
|
3694
|
-
lenient:
|
|
3650
|
+
lenient: e.lenient
|
|
3695
3651
|
});
|
|
3696
|
-
let
|
|
3652
|
+
let L = [
|
|
3697
3653
|
...Z,
|
|
3698
|
-
...
|
|
3654
|
+
...U,
|
|
3699
3655
|
...N.diagnostics
|
|
3700
3656
|
];
|
|
3701
|
-
|
|
3702
|
-
const pe = N.functions,
|
|
3657
|
+
e.lenient && (L = L.filter((d) => d.code !== w.MissingType));
|
|
3658
|
+
const pe = N.functions, J = N.autoRun, Ge = L.some((d) => d.severity === "error"), He = \`\${Qt.uuidV4()}-script\`;
|
|
3703
3659
|
let s = null;
|
|
3704
3660
|
if (Ge) i = "";
|
|
3705
3661
|
else {
|
|
3706
3662
|
try {
|
|
3707
|
-
r || (i = await la(o, i, p));
|
|
3663
|
+
r || (i = await la(o, i, p, void 0, e.minify ?? !1));
|
|
3708
3664
|
} catch {
|
|
3709
3665
|
console.warn("Error bundling script");
|
|
3710
3666
|
}
|
|
3711
|
-
const d = i.indexOf(
|
|
3667
|
+
const d = i.indexOf(Wt);
|
|
3712
3668
|
d > -1 && (s = i.substring(d + 20 + 1, i.length), i = i.substring(0, d), i = i.replaceAll("globalThis.__SHEETXL", Ve));
|
|
3713
3669
|
}
|
|
3714
3670
|
const f = {
|
|
3715
3671
|
functions: pe,
|
|
3716
|
-
commitId:
|
|
3672
|
+
commitId: He,
|
|
3717
3673
|
source: t,
|
|
3718
3674
|
language: "typescript",
|
|
3719
3675
|
compiled: i
|
|
3720
3676
|
};
|
|
3721
|
-
return s && (f.sourceMap = s),
|
|
3677
|
+
return s && (f.sourceMap = s), J && (f.autoRun = J), {
|
|
3722
3678
|
module: f,
|
|
3723
|
-
diagnostics:
|
|
3679
|
+
diagnostics: L
|
|
3724
3680
|
};
|
|
3725
3681
|
}
|
|
3726
3682
|
self.addEventListener("message", async (e) => {
|
|
3727
3683
|
const { id: t, params: r } = e.data;
|
|
3728
3684
|
try {
|
|
3729
|
-
const n = await
|
|
3685
|
+
const n = await ya(r);
|
|
3730
3686
|
self.postMessage({
|
|
3731
3687
|
id: t,
|
|
3732
3688
|
result: n,
|
|
@@ -3744,4 +3700,4 @@ self.addEventListener("message", async (e) => {
|
|
|
3744
3700
|
});
|
|
3745
3701
|
}
|
|
3746
3702
|
});
|
|
3747
|
-
`,r=typeof self<`u`&&self.Blob&&new Blob([`URL.revokeObjectURL(import.meta.url);`,n],{type:`text/javascript;charset=utf-8`});function i(e){let t;try{if(t=r&&(self.URL||self.webkitURL).createObjectURL(r),!t)throw``;let n=new Worker(t,{type:`module`,name:e?.name});return n.addEventListener(`error`,()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker(`data:text/javascript;charset=utf-8,`+encodeURIComponent(n),{type:`module`,name:e?.name})}}var a=async()=>{let{compileModule:e}=await Promise.resolve().then(()=>require("./
|
|
3703
|
+
`,r=typeof self<`u`&&self.Blob&&new Blob([`URL.revokeObjectURL(import.meta.url);`,n],{type:`text/javascript;charset=utf-8`});function i(e){let t;try{if(t=r&&(self.URL||self.webkitURL).createObjectURL(r),!t)throw``;let n=new Worker(t,{type:`module`,name:e?.name});return n.addEventListener(`error`,()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker(`data:text/javascript;charset=utf-8,`+encodeURIComponent(n),{type:`module`,name:e?.name})}}var a=async()=>{let{compileModule:e}=await Promise.resolve().then(()=>require("./BPtsVWnUZPVQBm21.cjs")),n=new t(t=>e(t));return await n.start(),n};exports.createCompilerWorker=async function(){if(globalThis.process?.versions?.node&&typeof Worker>`u`)return await a();if(typeof Worker<`u`){let t=new e(()=>new i);try{return await t.start(),t}catch(e){console.error(`Failed to start TypescriptCompiler worker reverting to fallback:`,e)}}return await a()};
|