@sheetxl/studio-vanilla 0.4.20 → 0.4.22
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/{BdltTXLt7iZT8sku.cjs → -AkvO2DXLOxJTxam.cjs} +1 -1
- package/browser/cjs/{dQ_t_glP-41DsAl-.cjs → 3CSmmG7E8ziDB1mP.cjs} +1 -1
- package/browser/cjs/{BKow6xaj0GHFH5-V.cjs → 7nEG2wj_Ohie6CwI.cjs} +1 -1
- package/browser/cjs/{DlL3FUzHZ4HVF-yg.cjs → B0aLqzqegePPgpc2.cjs} +1 -1
- package/browser/cjs/B9GyERAqyIxdqS4D.cjs +145 -0
- package/browser/cjs/BO8oGaHWFtHyxmQ1.cjs +6 -0
- package/browser/cjs/{B3IrGavp2xDl72qi.cjs → BPODmSH7Z1MR1rHr.cjs} +3 -3
- package/browser/cjs/{BDxykI6GcXpGGGMz.cjs → BS0bGW4PmNinQUvL.cjs} +7 -7
- package/browser/cjs/{Bf-D_AYDbEeRcsvz.cjs → BY3tZiH_cfwBkpN8.cjs} +1 -1
- package/browser/cjs/BYRBdz-9UGZ0b_AO.cjs +7 -0
- package/browser/cjs/{Dn5IBCKPuNI0ypyZ.cjs → BZvC7PqILOVRl2ij.cjs} +1 -1
- package/browser/cjs/Bc6lVP0c3mEzf_yK.cjs +6 -0
- package/browser/cjs/Bdm_fGdkK4-pZ0tW.cjs +6 -0
- package/browser/cjs/{IxfGyvVPF27qqDF3.cjs → Bi2-QXq5KvbsAXoB.cjs} +1 -1
- package/browser/cjs/Bk2cFYnTKxP7WbLy.cjs +6 -0
- package/browser/cjs/{DHiQ_sK8f-95Ft4X.cjs → BlojFx4yQfY8ahEJ.cjs} +2 -2
- package/browser/cjs/BvEv8i6SisfC24C1.cjs +7 -0
- package/browser/cjs/{CX82d7xySIGMF7yM.cjs → Bzntg1YSzOszdwLy.cjs} +1 -1
- package/browser/cjs/C9oIS5xxO9B7vS3W.cjs +6 -0
- package/browser/cjs/{D6WxWENDWFXA_esX.cjs → C9xTKWx1tr6NZFC8.cjs} +1 -1
- package/browser/cjs/{BC_a9wiziJZdu6Au.cjs → CCu9cK1DUD4oa3Nj.cjs} +1 -1
- package/browser/cjs/{C4AWzM1Uh9cuE1A9.cjs → CIeiC9TKv80O2_fQ.cjs} +1 -1
- package/browser/cjs/{zreCxaXU5L2iHQ99.cjs → COuRf_8YbqEsDQOC.cjs} +1 -1
- package/browser/cjs/{DMpqQkdCfg2AjXjR.cjs → CQRZm8lGq26oKY31.cjs} +1 -1
- package/browser/cjs/CYmpgLiDS0ZlbG11.cjs +6 -0
- package/browser/cjs/CZltonq1gEczLRHi.cjs +32 -0
- package/browser/cjs/Cf1j7hiCbQ8xo4_U.cjs +7 -0
- package/browser/cjs/{CW5RuE4isKBlwHmQ.cjs → CknjEH7DZBnqyPfk.cjs} +1 -1
- package/browser/cjs/{iIOyWIrlq0JiZyZX.cjs → ClEc15AqSTFOf5zG.cjs} +1 -1
- package/browser/cjs/{CTPgM-UqKCo4_hd1.cjs → CrUZUIz00uPDq4EA.cjs} +1 -1
- package/browser/cjs/{BOAxaoihJZZzZXhd.cjs → Cv1BFY5pqPtJd8qO.cjs} +1 -1
- package/browser/cjs/CvvHAxM5SO6mwsyq.cjs +161 -0
- package/browser/cjs/{BK6DsykAfJG4V-cJ.cjs → Cvwrl86aXHFXJVZZ.cjs} +1 -1
- package/browser/cjs/CwgzE59YUQ1eOTBi.cjs +6 -0
- package/browser/cjs/{BSlU398ba-ACAG1g.cjs → D3qzZXPgfAtKIAP9.cjs} +6 -6
- package/browser/cjs/{Dp6UwWmFehNr8oln.cjs → D7q2GFLhv9QRTZJe.cjs} +1 -1
- package/browser/cjs/{D3hV1-QRPKCq0om8.cjs → DB2WR3LaeOhkCAXY.cjs} +2 -2
- package/browser/cjs/{BndDL5HS4RNIfwOd.cjs → DFJ4dyRxiUF1XPPZ.cjs} +6 -6
- package/browser/cjs/{jX_tynzFoHAGPZOz.cjs → DJMpu6kYQUW3FWjs.cjs} +1 -1
- package/browser/cjs/{CSM5H5PTjrTaUgKK.cjs → DL7DCFUaFkr2LYhZ.cjs} +1 -1
- package/browser/cjs/{CXik9BghKbVW93T0.cjs → DMMZr350oW-Zan7x.cjs} +24 -24
- package/browser/cjs/{d6ywgaNww4eYXcem.cjs → DMfk3didwdGQLc0i.cjs} +4 -4
- package/browser/cjs/DaEdjRWwuNebE2hn.cjs +6 -0
- package/browser/cjs/Dd7vDdIeQaFScMRQ.cjs +6 -0
- package/browser/cjs/{DUjgS2e8jjyhZF41.cjs → Df9S9eEGYxA_EcEr.cjs} +1 -1
- package/browser/cjs/{CKa-Z1SfYc0pkIX2.cjs → DgSAPPq-D_vlo9jE.cjs} +1 -1
- package/browser/cjs/DmtZLv1wnSxRzPiR.cjs +6 -0
- package/browser/cjs/{CvYl4W2vXnvHHHoI.cjs → DqlFSswn_reXyFz8.cjs} +1 -1
- package/browser/cjs/{CeLG8vmgbEkx4oD1.cjs → Dws_eDddoJKDPps_.cjs} +1 -1
- package/browser/cjs/HyVntu9KkvdKrJEt.cjs +16 -0
- package/browser/cjs/{QonkTPcCkOm4Mvas.cjs → Iek_K8QW1doYx_eo.cjs} +1 -1
- package/browser/cjs/QJFc55OPrJyuRvDO.cjs +19 -0
- package/browser/cjs/QxU4KIgsHZuVigdy.cjs +329 -0
- package/browser/cjs/cOAjfOdF1cb-xgQG.cjs +6 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{Bhlan81dumwgyb0S.cjs → kQ8wVygFJMcxlUv-.cjs} +1 -1
- package/browser/cjs/{D2J4RLkySRIXFbsa.cjs → tVbeAmLkaH_1Jy7R.cjs} +2 -2
- package/browser/cjs/wNoDw92hvq2txBki.cjs +11 -0
- package/browser/esm/2d2eGHpsnUoCOFMT.mjs +47 -0
- package/browser/esm/{BqgjdQ15LFcefVOZ.mjs → AVmCEk8Fmiw2k_yK.mjs} +2 -2
- package/browser/esm/B0A2aLiKDPGGU4k-.mjs +44515 -0
- package/{cdn/assets/DmXkRZFP-WnV2YT9.js → browser/esm/BBov1fpR61VyhE3Z.mjs} +1 -1
- package/{cdn/assets/BS_-p_4yMCoR9FTp.js → browser/esm/BJD32_Zv5gkabGc0.mjs} +1 -1
- package/browser/esm/{Bmfu8IUFzu9KyCkA.mjs → BJqIPJDvrhWpZc4S.mjs} +1 -1
- package/{cdn/assets/KUyPDaQO4D8lwO7O.js → browser/esm/BKYjPTKdwG8Dn1_Z.mjs} +1 -1
- package/browser/esm/{JdOvTKCcf5acl7vA.mjs → BQfnqD12mz41DOr_.mjs} +1 -1
- package/{cdn/assets/BfiejFYnvgVrrJPI.js → browser/esm/BSdVpOzJ8SL3EBhP.mjs} +1 -1
- package/browser/esm/{KWZAe-e6U7Po4gCx.mjs → BVuoKgnuqrUwY6Fv.mjs} +15 -15
- package/browser/esm/{RvEM-YtFLw3OMG0V.mjs → Ba4SdTfCAvYS7a3O.mjs} +2 -2
- package/browser/esm/{D2L4EVLdv-YwKGoi.mjs → BajFlIH_X_nvDNfp.mjs} +2 -2
- package/browser/esm/{BGJaDv3Ih-M1lFCD.mjs → Bb0W3ByMVowTViNK.mjs} +1 -1
- package/browser/esm/{DWnopZ6R26qNLVyV.mjs → BmyjN5txj3iMw_DE.mjs} +1 -1
- package/{cdn/assets/B6c_mMwG96t6MlCE.js → browser/esm/BpFA0UU_TF4JO3dh.mjs} +1 -1
- package/browser/esm/Btr2FDDtI_fht0WU.mjs +1466 -0
- package/{cdn/assets/S2TZ7C9tQtDNeeGo.js → browser/esm/Bzg-D_R4sXN-wyMx.mjs} +1 -1
- package/browser/esm/C2xOGr0pDSHSMKoW.mjs +1366 -0
- package/{cdn/assets/CpDyqZXpstRo2buW.js → browser/esm/CAal3t8F-VfdmgAH.mjs} +1 -1
- package/browser/esm/{DlASr70UXrIpKZQO.mjs → CBPeZuyUIf9scEwn.mjs} +722 -815
- package/{cdn/assets/Bnpwlyv8i_gnevRF.js → browser/esm/CCjuiVOyesh1IQpA.mjs} +1861 -1859
- package/browser/esm/{Cjp7NabZ26PaBnIT.mjs → CDnNRZ7jINT_Dr0K.mjs} +4 -4
- package/browser/esm/{DJx6S7TOhQyWdjS5.mjs → CQaM4Ka20cP71fl0.mjs} +1 -1
- package/browser/esm/{VYFESZA0Jc8C13ZT.mjs → CVlIOg6F8qrZdlQ1.mjs} +1 -1
- package/{cdn/assets/dWGGn8a_Ez8kVjgZ.js → browser/esm/Cbq2K4YGny5wwFEf.mjs} +1 -1
- package/browser/esm/CfeqmUm-TkCE2XpK.mjs +260 -0
- package/{cdn/assets/_sUvLBCLSPhV2gF6.js → browser/esm/Ckb6l6osoWh90VXn.mjs} +1 -1
- package/{cdn/assets/Bj6XCGohW0EagXDQ.js → browser/esm/CkccSfJEU471_Sui.mjs} +8 -8
- package/browser/esm/{2vIB3gG-Ct-P7aHY.mjs → Cl0mB61JgZYfTh4S.mjs} +1 -1
- package/browser/esm/{CXSiJ-t5xz78GMwK.mjs → Cm7pnWH_xgLwX_lZ.mjs} +1 -1
- package/browser/esm/{CPchasanZLQiASse.mjs → Co_HyodT3prcEvNJ.mjs} +1 -1
- package/{cdn/assets/glJJyP0v0nlhAzqM.js → browser/esm/CsBIABPdnqpcZcvJ.mjs} +1 -1
- package/browser/esm/{CT_g1GDC8_vSGR0o.mjs → CslKfn0zxkGKrM4-.mjs} +19 -19
- package/browser/esm/{B4ABRWtE31zu8-wJ.mjs → Cx0a1WWRvJgDg4qb.mjs} +7 -7
- package/browser/esm/{BRzxK84abQUinUUx.mjs → D-QFKqWRP5dKwynV.mjs} +1 -1
- package/browser/esm/{DsabS3TdXZB45_O2.mjs → DWgbhx4Y4WzyAP3Z.mjs} +4 -4
- package/browser/esm/DgFIjoPrM5dmrLHT.mjs +392 -0
- package/{cdn/assets/giu63J2gO2p8JJIf.js → browser/esm/Dk_OZhcDLapTaNma.mjs} +1 -1
- package/{cdn/assets/CSDiL3gZro2_BYTj.js → browser/esm/Dp--KMDeqecbq_Wc.mjs} +1 -1
- package/browser/esm/Dva_qJrZGvFYbRxZ.mjs +21 -0
- package/browser/esm/DxJfUV0HFQT8g6H_.mjs +39 -0
- package/browser/esm/{Dkf0_o7D9GkUfOZy.mjs → Dxqx7qwqE6wbYSpB.mjs} +36 -36
- package/{cdn/assets/D7bqIxhqlHgc3Fih.js → browser/esm/ObudKUELIfmbm87W.mjs} +1 -1
- package/browser/esm/{B1qmfUH_Mmjtp3JU.mjs → SGprYj0-SzDtrM3y.mjs} +13 -13
- package/browser/esm/{CmLCIveZbsUFrSOH.mjs → SmC3rmOCw-Ynredz.mjs} +672 -665
- package/browser/esm/{CA33PnXmPNl09v6w.mjs → T263hpnj_sMd1bmD.mjs} +23 -23
- package/browser/esm/{DaoqFa2lhVoZvd16.mjs → Ys1OCodY6sXUkZ6-.mjs} +102 -99
- package/{cdn/assets/xbsV0YR05atX96kb.js → browser/esm/aqvSzH4m6bf7ODc6.mjs} +1 -1
- package/browser/esm/{Bz0TojPavQ5NTjyD.mjs → d49_A3euUkzKZure.mjs} +1 -1
- package/browser/esm/d8r4AqRUASAMCbBC.mjs +1352 -0
- package/browser/esm/{CVvfga1mKyvzrvCr.mjs → fgXzhDR19HBK6PEW.mjs} +6 -6
- package/browser/esm/{Be9tvHxvnxnHNRa4.mjs → g2unVUs-HBGBvXMs.mjs} +1 -1
- package/browser/esm/gzl_ozUgkS0mr_32.mjs +13391 -0
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/kbK4ZGVl1tl5F-UA.mjs +41 -0
- package/browser/esm/oAfM3SU0EgMxfDc0.mjs +3802 -0
- package/browser/esm/{BFUWwMA9uskwVkew.mjs → oUl7lbkOPMCi30tO.mjs} +1 -1
- package/browser/esm/{Dvo7tXJcgnIXR-H7.mjs → tAl8qMu6C0Vlq5p-.mjs} +670 -667
- package/cdn/assets/1we1udiYEDagZ5XN.js +241 -0
- package/cdn/assets/8d4z_mUqWF_BnOt4.js +6481 -0
- package/cdn/assets/B-ol51_1jHaCVeGO.js +3802 -0
- package/cdn/assets/B2I5EC8Y3LkhqzOe.js +50 -0
- package/{browser/esm/CpQM3xIeariuqfsN.mjs → cdn/assets/B44RkeFF8g1ncaGw.js} +16 -14
- package/{browser/esm/DmXkRZFP-WnV2YT9.mjs → cdn/assets/BBov1fpR61VyhE3Z.js} +1 -1
- package/cdn/assets/BCEDMsB3yP73FGo4.js +260 -0
- package/cdn/assets/{BCfZ9L4sqA1AhATQ.js → BERonPR_jlfR0j1B.js} +14 -14
- package/{browser/esm/BS_-p_4yMCoR9FTp.mjs → cdn/assets/BJD32_Zv5gkabGc0.js} +1 -1
- package/cdn/assets/{Bmfu8IUFzu9KyCkA.js → BJqIPJDvrhWpZc4S.js} +1 -1
- package/{browser/esm/KUyPDaQO4D8lwO7O.mjs → cdn/assets/BKYjPTKdwG8Dn1_Z.js} +1 -1
- package/cdn/assets/{Cz1EUITrDS2M-lu2.js → BPQvYX3Tn3_XfM55.js} +849 -849
- package/cdn/assets/{JdOvTKCcf5acl7vA.js → BQfnqD12mz41DOr_.js} +1 -1
- package/{browser/esm/BfiejFYnvgVrrJPI.mjs → cdn/assets/BSdVpOzJ8SL3EBhP.js} +1 -1
- package/cdn/assets/{EN4PLLABu5llaV3T.js → BWHiFslK55rPiaTT.js} +5 -5
- package/cdn/assets/BWhbbP9qvpjw1m3d.js +21 -0
- package/cdn/assets/{SsQFeDXfmfXHyy1R.js → B_gWDLoUXJ58kUTF.js} +670 -667
- package/cdn/assets/{BGJaDv3Ih-M1lFCD.js → Bb0W3ByMVowTViNK.js} +1 -1
- package/{browser/esm/BuX3I7e8lbon25vL.mjs → cdn/assets/Bk7mWQ4jJ591qT5U.js} +9 -9
- package/cdn/assets/{DWnopZ6R26qNLVyV.js → BmyjN5txj3iMw_DE.js} +1 -1
- package/cdn/assets/{SPvRfEBpgC5rbgPz.js → BnEb6t4xIVuW37yn.js} +2 -2
- package/{browser/esm/B6c_mMwG96t6MlCE.mjs → cdn/assets/BpFA0UU_TF4JO3dh.js} +1 -1
- package/{browser/esm/S2TZ7C9tQtDNeeGo.mjs → cdn/assets/Bzg-D_R4sXN-wyMx.js} +1 -1
- package/cdn/assets/C2xOGr0pDSHSMKoW.js +1366 -0
- package/{browser/esm/CpDyqZXpstRo2buW.mjs → cdn/assets/CAal3t8F-VfdmgAH.js} +1 -1
- package/{browser/esm/Qjkn8L0WuEQToAqm.mjs → cdn/assets/CGImeT9zAECbU9zM.js} +14 -12
- package/cdn/assets/CIdfxx6BkkxIdU4J.js +36 -0
- package/cdn/assets/{DJx6S7TOhQyWdjS5.js → CQaM4Ka20cP71fl0.js} +1 -1
- package/cdn/assets/CVgQlKevn28IBavQ.js +44342 -0
- package/cdn/assets/{VYFESZA0Jc8C13ZT.js → CVlIOg6F8qrZdlQ1.js} +1 -1
- package/{browser/esm/dWGGn8a_Ez8kVjgZ.mjs → cdn/assets/Cbq2K4YGny5wwFEf.js} +1 -1
- package/cdn/assets/{BGQ19MuEoWb0IGOg.js → CcE9nC_34k_5iKdO.js} +25 -25
- package/cdn/assets/{CO9eLmNMi1heLPMx.js → CcP-5SrDsnDeT6SQ.js} +733 -827
- package/{browser/esm/_sUvLBCLSPhV2gF6.mjs → cdn/assets/Ckb6l6osoWh90VXn.js} +1 -1
- package/cdn/assets/{2vIB3gG-Ct-P7aHY.js → Cl0mB61JgZYfTh4S.js} +1 -1
- package/cdn/assets/{CXSiJ-t5xz78GMwK.js → Cm7pnWH_xgLwX_lZ.js} +1 -1
- package/cdn/assets/{CPchasanZLQiASse.js → Co_HyodT3prcEvNJ.js} +1 -1
- package/{browser/esm/glJJyP0v0nlhAzqM.mjs → cdn/assets/CsBIABPdnqpcZcvJ.js} +1 -1
- package/cdn/assets/Ct1wZ_TFb7_zG9uz.js +22 -0
- package/cdn/assets/{BRzxK84abQUinUUx.js → D-QFKqWRP5dKwynV.js} +1 -1
- package/cdn/assets/D8hsneNA-W9ryUa9.js +27 -0
- package/cdn/assets/{9GNkN_zTAHpnP-uq.js → DBzbchpZyNJVqFwJ.js} +4 -4
- package/cdn/assets/DIBJnPf-ZLpoUAyv.js +90 -0
- package/{browser/esm/B7ohU_quBXWjiBEw.mjs → cdn/assets/DKaNurhCUtSDI3-Y.js} +1861 -1859
- package/cdn/assets/DQmcuM6zJj_UBR4j.js +58 -0
- package/cdn/assets/DXWy4_H6I-dyOLr6.js +46 -0
- package/cdn/assets/DXlz010r4VFvz1TS.js +23 -0
- package/{browser/esm/giu63J2gO2p8JJIf.mjs → cdn/assets/Dk_OZhcDLapTaNma.js} +1 -1
- package/{browser/esm/CSDiL3gZro2_BYTj.mjs → cdn/assets/Dp--KMDeqecbq_Wc.js} +1 -1
- package/{browser/esm/CYrbG4T_bwbc4Un4.mjs → cdn/assets/DqRiTlxxpGv8z6hB.js} +136 -134
- package/cdn/assets/Dt6M8k8ljeGubAJ5.js +1466 -0
- package/cdn/assets/Dzb_e1lRgdeWlKbP.js +27 -0
- package/{browser/esm/D7bqIxhqlHgc3Fih.mjs → cdn/assets/ObudKUELIfmbm87W.js} +1 -1
- package/cdn/assets/{DU8_1yjWbaEkXcbL.js → QtHcsa9O7bxZgew4.js} +5 -5
- package/cdn/assets/{CmLCIveZbsUFrSOH.js → SmC3rmOCw-Ynredz.js} +672 -665
- package/cdn/assets/{UhBzX4vQryCjy6ce.js → UBuQw1PVtmH3a9bE.js} +16 -16
- package/cdn/assets/{DaoqFa2lhVoZvd16.js → Ys1OCodY6sXUkZ6-.js} +102 -99
- package/{browser/esm/xbsV0YR05atX96kb.mjs → cdn/assets/aqvSzH4m6bf7ODc6.js} +1 -1
- package/cdn/assets/{Bz0TojPavQ5NTjyD.js → d49_A3euUkzKZure.js} +1 -1
- package/cdn/assets/d8r4AqRUASAMCbBC.js +1352 -0
- package/cdn/assets/{Be9tvHxvnxnHNRa4.js → g2unVUs-HBGBvXMs.js} +1 -1
- package/cdn/assets/gzl_ozUgkS0mr_32.js +13391 -0
- package/cdn/assets/o1yNcQczZA65rwUv.js +41 -0
- package/cdn/assets/u_xPkr1quUnZRgrA.js +149 -0
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/B4ScrvWBCXLzvNBz.cjs +0 -145
- package/browser/cjs/BBNggAKHDP4QyhrD.cjs +0 -6
- package/browser/cjs/BSoRD8INLnGqOd24.cjs +0 -7
- package/browser/cjs/BTxfWiE-FbVvlbXz.cjs +0 -11
- package/browser/cjs/BlJixWFmG-z3n7dN.cjs +0 -6
- package/browser/cjs/Buw8XeqL6XQwxqnQ.cjs +0 -32
- package/browser/cjs/C04_CccTUmfnv-ln.cjs +0 -6
- package/browser/cjs/C5TLXtw93fBnRGm7.cjs +0 -378
- package/browser/cjs/CLiSJrUNaSxa5Mn7.cjs +0 -16
- package/browser/cjs/CODi1uYlZ35lFLh9.cjs +0 -6
- package/browser/cjs/Ccv5NHm99sYZnKE6.cjs +0 -7
- package/browser/cjs/CeH0O9zPmIGKjuT9.cjs +0 -19
- package/browser/cjs/D2bZuhwA7aCEA0It.cjs +0 -6
- package/browser/cjs/DEiPHs81OFnGI_GL.cjs +0 -6
- package/browser/cjs/DWIR1gQMiYyoUVpN.cjs +0 -7
- package/browser/cjs/DawJBg8LyIArkwdU.cjs +0 -6
- package/browser/cjs/Dr95ZpJD5KpADFgL.cjs +0 -6
- package/browser/cjs/P7jR9JAKpf5me2pK.cjs +0 -6
- package/browser/cjs/T4zy652TD1RHF35F.cjs +0 -6
- package/browser/cjs/nlzloz3gqSXQwTl5.cjs +0 -13
- package/browser/cjs/xPUjEhL251Mb-kyD.cjs +0 -161
- package/browser/esm/BJkeQi-0GTlyPsTT.mjs +0 -52369
- package/browser/esm/BR2yOGMlFrbNy1I_.mjs +0 -472
- package/browser/esm/BTbBL2qySirAIMIH.mjs +0 -1346
- package/browser/esm/Bj4d7nd4XMugBsBg.mjs +0 -39
- package/browser/esm/CeSDjV2b8w7KibJw.mjs +0 -1466
- package/browser/esm/DR85glElKOQxCdEw.mjs +0 -820
- package/browser/esm/DgxaqoqInkc26SCt.mjs +0 -13208
- package/browser/esm/dwY5oHtoGa_ktt9_.mjs +0 -1365
- package/browser/esm/q5jyS6wUD9X8N3dI.mjs +0 -3755
- package/cdn/assets/BBGivbkBG9VS_rL9.js +0 -3756
- package/cdn/assets/BF0szY6Cs6OTiu4J.js +0 -22
- package/cdn/assets/BFvB3zk5mbav2VDI.js +0 -52200
- package/cdn/assets/BKAFXvz5L4pnwrYW.js +0 -41
- package/cdn/assets/BTbBL2qySirAIMIH.js +0 -1346
- package/cdn/assets/BnrLDtUMM23rGXOR.js +0 -390
- package/cdn/assets/C-saEYaoPI4gaVAh.js +0 -820
- package/cdn/assets/CBG91FlGgFb_NSW3.js +0 -1466
- package/cdn/assets/Cc_7h2P328hlBcqK.js +0 -472
- package/cdn/assets/Cv2EzXYuphY8Hlz2.js +0 -23
- package/cdn/assets/DDWoPuN8AcPJHNxL.js +0 -58
- package/cdn/assets/DYE-hWYAUd_f6MX8.js +0 -46
- package/cdn/assets/DfpCefkqWIezzC8Z.js +0 -49
- package/cdn/assets/DgxaqoqInkc26SCt.js +0 -13208
- package/cdn/assets/LbFq2oCowUDgCX8L.js +0 -43
- package/cdn/assets/TP7wJaHcKRz3uH_W.js +0 -50
- package/cdn/assets/dwY5oHtoGa_ktt9_.js +0 -1365
- package/cdn/assets/nsmFGDjpeUcAO4is.js +0 -149
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as $s, n as D, Y as ft, T as Ye, N as Ws, K as Xt, b as jn, r as Gs, f as Ks, t as Xe, W as zs, M as se, Z as Ue, c as Fe } from "./CVgQlKevn28IBavQ.js";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
|
|
4
4
|
*
|
|
5
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
7
|
*/
|
|
8
|
-
var
|
|
8
|
+
var Mo = typeof global == "object" && global && global.Object === Object && global, Vs = typeof self == "object" && self && self.Object === Object && self, wt = Mo || Vs || Function("return this")(), It = wt.Symbol, Uo = Object.prototype, Hs = Uo.hasOwnProperty, Ys = Uo.toString, ye = It ? It.toStringTag : void 0, Xs = Object.prototype.toString, Zr = It ? It.toStringTag : void 0;
|
|
9
9
|
function Jt(t) {
|
|
10
|
-
return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" :
|
|
11
|
-
var r =
|
|
10
|
+
return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Zr && Zr in Object(t) ? function(n) {
|
|
11
|
+
var r = Hs.call(n, ye), i = n[ye];
|
|
12
12
|
try {
|
|
13
13
|
n[ye] = void 0;
|
|
14
14
|
var o = !0;
|
|
15
15
|
} catch {
|
|
16
16
|
}
|
|
17
|
-
var s =
|
|
17
|
+
var s = Ys.call(n);
|
|
18
18
|
return o && (r ? n[ye] = i : delete n[ye]), s;
|
|
19
|
-
}(t) : (e = t,
|
|
19
|
+
}(t) : (e = t, Xs.call(e));
|
|
20
20
|
var e;
|
|
21
21
|
}
|
|
22
22
|
function Ot(t) {
|
|
@@ -29,21 +29,21 @@ function Sn(t, e) {
|
|
|
29
29
|
for (var n = -1, r = t == null ? 0 : t.length, i = Array(r); ++n < r; ) i[n] = e(t[n], n, t);
|
|
30
30
|
return i;
|
|
31
31
|
}
|
|
32
|
-
var B = Array.isArray,
|
|
33
|
-
function
|
|
32
|
+
var B = Array.isArray, Qr = It ? It.prototype : void 0, Jr = Qr ? Qr.toString : void 0;
|
|
33
|
+
function Fo(t) {
|
|
34
34
|
if (typeof t == "string") return t;
|
|
35
|
-
if (B(t)) return Sn(t,
|
|
36
|
-
if (On(t)) return
|
|
35
|
+
if (B(t)) return Sn(t, Fo) + "";
|
|
36
|
+
if (On(t)) return Jr ? Jr.call(t) : "";
|
|
37
37
|
var e = t + "";
|
|
38
38
|
return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
|
|
39
39
|
}
|
|
40
|
-
var
|
|
40
|
+
var qs = /\s/, Zs = /^\s+/;
|
|
41
41
|
function Nt(t) {
|
|
42
42
|
var e = typeof t;
|
|
43
43
|
return t != null && (e == "object" || e == "function");
|
|
44
44
|
}
|
|
45
|
-
var
|
|
46
|
-
function
|
|
45
|
+
var Qs = /^[-+]0x[0-9a-f]+$/i, Js = /^0b[01]+$/i, ta = /^0o[0-7]+$/i, ea = parseInt, na = 1 / 0;
|
|
46
|
+
function ra(t) {
|
|
47
47
|
return t ? (t = function(e) {
|
|
48
48
|
if (typeof e == "number") return e;
|
|
49
49
|
if (On(e)) return NaN;
|
|
@@ -54,16 +54,16 @@ function oa(t) {
|
|
|
54
54
|
if (typeof e != "string") return e === 0 ? e : +e;
|
|
55
55
|
e = function(i) {
|
|
56
56
|
return i && i.slice(0, function(o) {
|
|
57
|
-
for (var s = o.length; s-- &&
|
|
57
|
+
for (var s = o.length; s-- && qs.test(o.charAt(s)); ) ;
|
|
58
58
|
return s;
|
|
59
|
-
}(i) + 1).replace(
|
|
59
|
+
}(i) + 1).replace(Zs, "");
|
|
60
60
|
}(e);
|
|
61
|
-
var r =
|
|
62
|
-
return r ||
|
|
63
|
-
}(t)) ===
|
|
61
|
+
var r = Js.test(e);
|
|
62
|
+
return r || ta.test(e) ? ea(e.slice(2), r ? 2 : 8) : Qs.test(e) ? NaN : +e;
|
|
63
|
+
}(t)) === na || t === -1 / 0 ? 17976931348623157e292 * (t < 0 ? -1 : 1) : t == t ? t : 0 : t === 0 ? t : 0;
|
|
64
64
|
}
|
|
65
65
|
function _n(t) {
|
|
66
|
-
var e =
|
|
66
|
+
var e = ra(t), n = e % 1;
|
|
67
67
|
return e == e ? n ? e - n : e : 0;
|
|
68
68
|
}
|
|
69
69
|
function Ee(t) {
|
|
@@ -74,11 +74,11 @@ function Yt(t) {
|
|
|
74
74
|
var e = Jt(t);
|
|
75
75
|
return e == "[object Function]" || e == "[object GeneratorFunction]" || e == "[object AsyncFunction]" || e == "[object Proxy]";
|
|
76
76
|
}
|
|
77
|
-
var
|
|
77
|
+
var ti, Bn = wt["__core-js_shared__"], ei = (ti = /[^.]+$/.exec(Bn && Bn.keys && Bn.keys.IE_PROTO || "")) ? "Symbol(src)_1." + ti : "", ia = Function.prototype.toString;
|
|
78
78
|
function ae(t) {
|
|
79
79
|
if (t != null) {
|
|
80
80
|
try {
|
|
81
|
-
return
|
|
81
|
+
return ia.call(t);
|
|
82
82
|
} catch {
|
|
83
83
|
}
|
|
84
84
|
try {
|
|
@@ -88,20 +88,20 @@ function ae(t) {
|
|
|
88
88
|
}
|
|
89
89
|
return "";
|
|
90
90
|
}
|
|
91
|
-
var
|
|
91
|
+
var oa = /^\[object .+?Constructor\]$/, sa = Function.prototype, aa = Object.prototype, ca = sa.toString, ua = aa.hasOwnProperty, la = RegExp("^" + ca.call(ua).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
92
92
|
function ce(t, e) {
|
|
93
93
|
var n, r, i = (n = t, r = e, n?.[r]);
|
|
94
94
|
return function(o) {
|
|
95
|
-
return !(!Nt(o) || (s = o,
|
|
95
|
+
return !(!Nt(o) || (s = o, ei && ei in s)) && (Yt(o) ? la : oa).test(ae(o));
|
|
96
96
|
var s;
|
|
97
97
|
}(i) ? i : void 0;
|
|
98
98
|
}
|
|
99
|
-
var
|
|
99
|
+
var dr = ce(wt, "WeakMap"), ni = Object.create, ha = /* @__PURE__ */ function() {
|
|
100
100
|
function t() {
|
|
101
101
|
}
|
|
102
102
|
return function(e) {
|
|
103
103
|
if (!Nt(e)) return {};
|
|
104
|
-
if (
|
|
104
|
+
if (ni) return ni(e);
|
|
105
105
|
t.prototype = e;
|
|
106
106
|
var n = new t();
|
|
107
107
|
return t.prototype = void 0, n;
|
|
@@ -109,115 +109,116 @@ var mr = ce(wt, "WeakMap"), ii = Object.create, da = /* @__PURE__ */ function()
|
|
|
109
109
|
}();
|
|
110
110
|
function Z() {
|
|
111
111
|
}
|
|
112
|
-
var
|
|
112
|
+
var ri, $n, Wn, fa = Date.now, pn = function() {
|
|
113
113
|
try {
|
|
114
114
|
var t = ce(Object, "defineProperty");
|
|
115
115
|
return t({}, "", {}), t;
|
|
116
116
|
} catch {
|
|
117
117
|
}
|
|
118
|
-
}(),
|
|
118
|
+
}(), da = pn ? function(t, e) {
|
|
119
119
|
return pn(t, "toString", { configurable: !0, enumerable: !1, value: (n = e, function() {
|
|
120
120
|
return n;
|
|
121
121
|
}), writable: !0 });
|
|
122
122
|
var n;
|
|
123
|
-
} : Ee,
|
|
124
|
-
var t =
|
|
123
|
+
} : Ee, pa = (ri = da, $n = 0, Wn = 0, function() {
|
|
124
|
+
var t = fa(), e = 16 - (t - Wn);
|
|
125
125
|
if (Wn = t, e > 0) {
|
|
126
126
|
if (++$n >= 800) return arguments[0];
|
|
127
127
|
} else $n = 0;
|
|
128
|
-
return
|
|
128
|
+
return ri.apply(void 0, arguments);
|
|
129
129
|
});
|
|
130
|
-
function
|
|
130
|
+
function Do(t, e) {
|
|
131
131
|
for (var n = -1, r = t == null ? 0 : t.length; ++n < r && e(t[n], n, t) !== !1; ) ;
|
|
132
132
|
return t;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function jo(t, e, n, r) {
|
|
135
135
|
for (var i = t.length, o = n + -1; ++o < i; ) if (e(t[o], o, t)) return o;
|
|
136
136
|
return -1;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function ma(t) {
|
|
139
139
|
return t != t;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function Ur(t, e, n) {
|
|
142
142
|
return e == e ? function(r, i, o) {
|
|
143
143
|
for (var s = o - 1, a = r.length; ++s < a; ) if (r[s] === i) return s;
|
|
144
144
|
return -1;
|
|
145
|
-
}(t, e, n) :
|
|
145
|
+
}(t, e, n) : jo(t, ma, n);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
return !(t == null || !t.length) &&
|
|
147
|
+
function Bo(t, e) {
|
|
148
|
+
return !(t == null || !t.length) && Ur(t, e, 0) > -1;
|
|
149
149
|
}
|
|
150
|
-
var
|
|
150
|
+
var Ea = /^(?:0|[1-9]\d*)$/;
|
|
151
151
|
function Ln(t, e) {
|
|
152
152
|
var n = typeof t;
|
|
153
|
-
return !!(e = e ?? 9007199254740991) && (n == "number" || n != "symbol" &&
|
|
153
|
+
return !!(e = e ?? 9007199254740991) && (n == "number" || n != "symbol" && Ea.test(t)) && t > -1 && t % 1 == 0 && t < e;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Fr(t, e, n) {
|
|
156
156
|
e == "__proto__" && pn ? pn(t, e, { configurable: !0, enumerable: !0, value: n, writable: !0 }) : t[e] = n;
|
|
157
157
|
}
|
|
158
158
|
function ze(t, e) {
|
|
159
159
|
return t === e || t != t && e != e;
|
|
160
160
|
}
|
|
161
|
-
var
|
|
161
|
+
var ga = Object.prototype.hasOwnProperty;
|
|
162
162
|
function xn(t, e, n) {
|
|
163
163
|
var r = t[e];
|
|
164
|
-
|
|
164
|
+
ga.call(t, e) && ze(r, n) && (n !== void 0 || e in t) || Fr(t, e, n);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function pr(t, e, n, r) {
|
|
167
167
|
var i = !n;
|
|
168
168
|
n || (n = {});
|
|
169
169
|
for (var o = -1, s = e.length; ++o < s; ) {
|
|
170
170
|
var a = e[o], c = void 0;
|
|
171
|
-
c === void 0 && (c = t[a]), i ?
|
|
171
|
+
c === void 0 && (c = t[a]), i ? Fr(n, a, c) : xn(n, a, c);
|
|
172
172
|
}
|
|
173
173
|
return n;
|
|
174
174
|
}
|
|
175
|
-
var
|
|
176
|
-
function
|
|
177
|
-
return
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
175
|
+
var ii = Math.max;
|
|
176
|
+
function Dr(t, e) {
|
|
177
|
+
return pa(function(n, r, i) {
|
|
178
|
+
return r = ii(r === void 0 ? n.length - 1 : r, 0), function() {
|
|
179
|
+
for (var o = arguments, s = -1, a = ii(o.length - r, 0), c = Array(a); ++s < a; ) c[s] = o[r + s];
|
|
180
|
+
s = -1;
|
|
181
|
+
for (var u = Array(r + 1); ++s < r; ) u[s] = o[s];
|
|
182
|
+
return u[r] = i(c), function(l, h, N) {
|
|
183
|
+
switch (N.length) {
|
|
184
|
+
case 0:
|
|
185
|
+
return l.call(h);
|
|
186
|
+
case 1:
|
|
187
|
+
return l.call(h, N[0]);
|
|
188
|
+
case 2:
|
|
189
|
+
return l.call(h, N[0], N[1]);
|
|
190
|
+
case 3:
|
|
191
|
+
return l.call(h, N[0], N[1], N[2]);
|
|
192
|
+
}
|
|
193
|
+
return l.apply(h, N);
|
|
194
|
+
}(n, this, u);
|
|
195
|
+
};
|
|
196
|
+
}(t, e, Ee), t + "");
|
|
196
197
|
}
|
|
197
|
-
function
|
|
198
|
+
function jr(t) {
|
|
198
199
|
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= 9007199254740991;
|
|
199
200
|
}
|
|
200
201
|
function Mt(t) {
|
|
201
|
-
return t != null &&
|
|
202
|
+
return t != null && jr(t.length) && !Yt(t);
|
|
202
203
|
}
|
|
203
|
-
function
|
|
204
|
+
function $o(t, e, n) {
|
|
204
205
|
if (!Nt(n)) return !1;
|
|
205
206
|
var r = typeof e;
|
|
206
207
|
return !!(r == "number" ? Mt(n) && Ln(e, n.length) : r == "string" && e in n) && ze(n[e], t);
|
|
207
208
|
}
|
|
208
|
-
var
|
|
209
|
+
var Ta = Object.prototype;
|
|
209
210
|
function Ve(t) {
|
|
210
211
|
var e = t && t.constructor;
|
|
211
|
-
return t === (typeof e == "function" && e.prototype ||
|
|
212
|
+
return t === (typeof e == "function" && e.prototype || Ta);
|
|
212
213
|
}
|
|
213
|
-
function
|
|
214
|
+
function oi(t) {
|
|
214
215
|
return Ot(t) && Jt(t) == "[object Arguments]";
|
|
215
216
|
}
|
|
216
|
-
var
|
|
217
|
+
var Wo = Object.prototype, Aa = Wo.hasOwnProperty, Ia = Wo.propertyIsEnumerable, Cn = oi(/* @__PURE__ */ function() {
|
|
217
218
|
return arguments;
|
|
218
|
-
}()) ?
|
|
219
|
-
return Ot(t) &&
|
|
220
|
-
},
|
|
219
|
+
}()) ? oi : function(t) {
|
|
220
|
+
return Ot(t) && Aa.call(t, "callee") && !Ia.call(t, "callee");
|
|
221
|
+
}, Go = typeof exports == "object" && exports && !exports.nodeType && exports, si = Go && typeof module == "object" && module && !module.nodeType && module, ai = si && si.exports === Go ? wt.Buffer : void 0, De = (ai ? ai.isBuffer : void 0) || function() {
|
|
221
222
|
return !1;
|
|
222
223
|
}, z = {};
|
|
223
224
|
function kn(t) {
|
|
@@ -226,67 +227,67 @@ function kn(t) {
|
|
|
226
227
|
};
|
|
227
228
|
}
|
|
228
229
|
z["[object Float32Array]"] = z["[object Float64Array]"] = z["[object Int8Array]"] = z["[object Int16Array]"] = z["[object Int32Array]"] = z["[object Uint8Array]"] = z["[object Uint8ClampedArray]"] = z["[object Uint16Array]"] = z["[object Uint32Array]"] = !0, z["[object Arguments]"] = z["[object Array]"] = z["[object ArrayBuffer]"] = z["[object Boolean]"] = z["[object DataView]"] = z["[object Date]"] = z["[object Error]"] = z["[object Function]"] = z["[object Map]"] = z["[object Number]"] = z["[object Object]"] = z["[object RegExp]"] = z["[object Set]"] = z["[object String]"] = z["[object WeakMap]"] = !1;
|
|
229
|
-
var
|
|
230
|
+
var Ko = typeof exports == "object" && exports && !exports.nodeType && exports, ke = Ko && typeof module == "object" && module && !module.nodeType && module, Gn = ke && ke.exports === Ko && Mo.process, Zt = function() {
|
|
230
231
|
try {
|
|
231
232
|
return ke && ke.require && ke.require("util").types || Gn && Gn.binding && Gn.binding("util");
|
|
232
233
|
} catch {
|
|
233
234
|
}
|
|
234
|
-
}(),
|
|
235
|
-
return Ot(t) &&
|
|
236
|
-
},
|
|
237
|
-
function
|
|
238
|
-
var n = B(t), r = !n && Cn(t), i = !n && !r && De(t), o = !n && !r && !i &&
|
|
235
|
+
}(), ci = Zt && Zt.isTypedArray, Br = ci ? kn(ci) : function(t) {
|
|
236
|
+
return Ot(t) && jr(t.length) && !!z[Jt(t)];
|
|
237
|
+
}, Na = Object.prototype.hasOwnProperty;
|
|
238
|
+
function zo(t, e) {
|
|
239
|
+
var n = B(t), r = !n && Cn(t), i = !n && !r && De(t), o = !n && !r && !i && Br(t), s = n || r || i || o, a = s ? function(l, h) {
|
|
239
240
|
for (var N = -1, S = Array(l); ++N < l; ) S[N] = h(N);
|
|
240
241
|
return S;
|
|
241
242
|
}(t.length, String) : [], c = a.length;
|
|
242
|
-
for (var u in t) !e && !
|
|
243
|
+
for (var u in t) !e && !Na.call(t, u) || s && (u == "length" || i && (u == "offset" || u == "parent") || o && (u == "buffer" || u == "byteLength" || u == "byteOffset") || Ln(u, c)) || a.push(u);
|
|
243
244
|
return a;
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
+
function Vo(t, e) {
|
|
246
247
|
return function(n) {
|
|
247
248
|
return t(e(n));
|
|
248
249
|
};
|
|
249
250
|
}
|
|
250
|
-
var
|
|
251
|
-
function
|
|
252
|
-
if (!Ve(t)) return
|
|
251
|
+
var ya = Vo(Object.keys, Object), Ra = Object.prototype.hasOwnProperty;
|
|
252
|
+
function Ho(t) {
|
|
253
|
+
if (!Ve(t)) return ya(t);
|
|
253
254
|
var e = [];
|
|
254
|
-
for (var n in Object(t))
|
|
255
|
+
for (var n in Object(t)) Ra.call(t, n) && n != "constructor" && e.push(n);
|
|
255
256
|
return e;
|
|
256
257
|
}
|
|
257
258
|
function yt(t) {
|
|
258
|
-
return Mt(t) ?
|
|
259
|
+
return Mt(t) ? zo(t) : Ho(t);
|
|
259
260
|
}
|
|
260
|
-
var Kn,
|
|
261
|
-
if (Ve(e) || Mt(e))
|
|
262
|
-
else for (var n in e)
|
|
263
|
-
},
|
|
261
|
+
var Kn, va = Object.prototype.hasOwnProperty, pt = (Kn = function(t, e) {
|
|
262
|
+
if (Ve(e) || Mt(e)) pr(e, yt(e), t);
|
|
263
|
+
else for (var n in e) va.call(e, n) && xn(t, n, e[n]);
|
|
264
|
+
}, Dr(function(t, e) {
|
|
264
265
|
var n = -1, r = e.length, i = r > 1 ? e[r - 1] : void 0, o = r > 2 ? e[2] : void 0;
|
|
265
|
-
for (i = Kn.length > 3 && typeof i == "function" ? (r--, i) : void 0, o &&
|
|
266
|
+
for (i = Kn.length > 3 && typeof i == "function" ? (r--, i) : void 0, o && $o(e[0], e[1], o) && (i = r < 3 ? void 0 : i, r = 1), t = Object(t); ++n < r; ) {
|
|
266
267
|
var s = e[n];
|
|
267
268
|
s && Kn(t, s);
|
|
268
269
|
}
|
|
269
270
|
return t;
|
|
270
|
-
})),
|
|
271
|
-
function
|
|
272
|
-
return Mt(t) ?
|
|
271
|
+
})), Oa = Object.prototype.hasOwnProperty;
|
|
272
|
+
function Yo(t) {
|
|
273
|
+
return Mt(t) ? zo(t, !0) : function(e) {
|
|
273
274
|
if (!Nt(e)) return function(o) {
|
|
274
275
|
var s = [];
|
|
275
276
|
if (o != null) for (var a in Object(o)) s.push(a);
|
|
276
277
|
return s;
|
|
277
278
|
}(e);
|
|
278
279
|
var n = Ve(e), r = [];
|
|
279
|
-
for (var i in e) (i != "constructor" || !n &&
|
|
280
|
+
for (var i in e) (i != "constructor" || !n && Oa.call(e, i)) && r.push(i);
|
|
280
281
|
return r;
|
|
281
282
|
}(t);
|
|
282
283
|
}
|
|
283
|
-
var
|
|
284
|
-
function
|
|
284
|
+
var Sa = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, _a = /^\w*$/;
|
|
285
|
+
function mr(t, e) {
|
|
285
286
|
if (B(t)) return !1;
|
|
286
287
|
var n = typeof t;
|
|
287
|
-
return !(n != "number" && n != "symbol" && n != "boolean" && t != null && !On(t)) ||
|
|
288
|
+
return !(n != "number" && n != "symbol" && n != "boolean" && t != null && !On(t)) || _a.test(t) || !Sa.test(t) || e != null && t in Object(e);
|
|
288
289
|
}
|
|
289
|
-
var Re = ce(Object, "create"),
|
|
290
|
+
var Re = ce(Object, "create"), La = Object.prototype.hasOwnProperty, xa = Object.prototype.hasOwnProperty;
|
|
290
291
|
function re(t) {
|
|
291
292
|
var e = -1, n = t == null ? 0 : t.length;
|
|
292
293
|
for (this.clear(); ++e < n; ) {
|
|
@@ -309,15 +310,15 @@ re.prototype.clear = function() {
|
|
|
309
310
|
var n = e[t];
|
|
310
311
|
return n === "__lodash_hash_undefined__" ? void 0 : n;
|
|
311
312
|
}
|
|
312
|
-
return
|
|
313
|
+
return La.call(e, t) ? e[t] : void 0;
|
|
313
314
|
}, re.prototype.has = function(t) {
|
|
314
315
|
var e = this.__data__;
|
|
315
|
-
return Re ? e[t] !== void 0 :
|
|
316
|
+
return Re ? e[t] !== void 0 : xa.call(e, t);
|
|
316
317
|
}, re.prototype.set = function(t, e) {
|
|
317
318
|
var n = this.__data__;
|
|
318
319
|
return this.size += this.has(t) ? 0 : 1, n[t] = Re && e === void 0 ? "__lodash_hash_undefined__" : e, this;
|
|
319
320
|
};
|
|
320
|
-
var
|
|
321
|
+
var Ca = Array.prototype.splice;
|
|
321
322
|
function Vt(t) {
|
|
322
323
|
var e = -1, n = t == null ? 0 : t.length;
|
|
323
324
|
for (this.clear(); ++e < n; ) {
|
|
@@ -329,7 +330,7 @@ Vt.prototype.clear = function() {
|
|
|
329
330
|
this.__data__ = [], this.size = 0;
|
|
330
331
|
}, Vt.prototype.delete = function(t) {
|
|
331
332
|
var e = this.__data__, n = qe(e, t);
|
|
332
|
-
return !(n < 0 || (n == e.length - 1 ? e.pop() :
|
|
333
|
+
return !(n < 0 || (n == e.length - 1 ? e.pop() : Ca.call(e, n, 1), --this.size, 0));
|
|
333
334
|
}, Vt.prototype.get = function(t) {
|
|
334
335
|
var e = this.__data__, n = qe(e, t);
|
|
335
336
|
return n < 0 ? void 0 : e[n][1];
|
|
@@ -351,7 +352,7 @@ function Gt(t) {
|
|
|
351
352
|
this.set(r[0], r[1]);
|
|
352
353
|
}
|
|
353
354
|
}
|
|
354
|
-
function
|
|
355
|
+
function $r(t, e) {
|
|
355
356
|
if (typeof t != "function" || e != null && typeof e != "function") throw new TypeError("Expected a function");
|
|
356
357
|
var n = function() {
|
|
357
358
|
var r = arguments, i = e ? e.apply(this, r) : r[0], o = n.cache;
|
|
@@ -359,7 +360,7 @@ function Gr(t, e) {
|
|
|
359
360
|
var s = t.apply(this, r);
|
|
360
361
|
return n.cache = o.set(i, s) || o, s;
|
|
361
362
|
};
|
|
362
|
-
return n.cache = new (
|
|
363
|
+
return n.cache = new ($r.Cache || Gt)(), n;
|
|
363
364
|
}
|
|
364
365
|
Gt.prototype.clear = function() {
|
|
365
366
|
this.size = 0, this.__data__ = { hash: new re(), map: new (je || Vt)(), string: new re() };
|
|
@@ -373,18 +374,21 @@ Gt.prototype.clear = function() {
|
|
|
373
374
|
}, Gt.prototype.set = function(t, e) {
|
|
374
375
|
var n = Ze(this, t), r = n.size;
|
|
375
376
|
return n.set(t, e), this.size += n.size == r ? 0 : 1, this;
|
|
376
|
-
},
|
|
377
|
-
var
|
|
378
|
-
var
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
},
|
|
383
|
-
|
|
384
|
-
|
|
377
|
+
}, $r.Cache = Gt;
|
|
378
|
+
var ka = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ba = /\\(\\)?/g, Pa = function() {
|
|
379
|
+
var t = $r(function(n) {
|
|
380
|
+
var r = [];
|
|
381
|
+
return n.charCodeAt(0) === 46 && r.push(""), n.replace(ka, function(i, o, s, a) {
|
|
382
|
+
r.push(s ? a.replace(ba, "$1") : o || i);
|
|
383
|
+
}), r;
|
|
384
|
+
}, function(n) {
|
|
385
|
+
return e.size === 500 && e.clear(), n;
|
|
386
|
+
}), e = t.cache;
|
|
387
|
+
return t;
|
|
388
|
+
}();
|
|
385
389
|
function bn(t, e) {
|
|
386
|
-
return B(t) ? t :
|
|
387
|
-
return n == null ? "" :
|
|
390
|
+
return B(t) ? t : mr(t, e) ? [t] : Pa(function(n) {
|
|
391
|
+
return n == null ? "" : Fo(n);
|
|
388
392
|
}(t));
|
|
389
393
|
}
|
|
390
394
|
function Be(t) {
|
|
@@ -392,37 +396,37 @@ function Be(t) {
|
|
|
392
396
|
var e = t + "";
|
|
393
397
|
return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
|
|
394
398
|
}
|
|
395
|
-
function
|
|
399
|
+
function Er(t, e) {
|
|
396
400
|
for (var n = 0, r = (e = bn(e, t)).length; t != null && n < r; ) t = t[Be(e[n++])];
|
|
397
401
|
return n && n == r ? t : void 0;
|
|
398
402
|
}
|
|
399
|
-
function
|
|
403
|
+
function Wr(t, e) {
|
|
400
404
|
for (var n = -1, r = e.length, i = t.length; ++n < r; ) t[i + n] = e[n];
|
|
401
405
|
return t;
|
|
402
406
|
}
|
|
403
|
-
var
|
|
404
|
-
function
|
|
405
|
-
return B(t) || Cn(t) || !!(
|
|
407
|
+
var ui = It ? It.isConcatSpreadable : void 0;
|
|
408
|
+
function wa(t) {
|
|
409
|
+
return B(t) || Cn(t) || !!(ui && t && t[ui]);
|
|
406
410
|
}
|
|
407
|
-
function
|
|
411
|
+
function Gr(t, e, n, r, i) {
|
|
408
412
|
var o = -1, s = t.length;
|
|
409
|
-
for (n || (n =
|
|
413
|
+
for (n || (n = wa), i || (i = []); ++o < s; ) {
|
|
410
414
|
var a = t[o];
|
|
411
|
-
n(a) ?
|
|
415
|
+
n(a) ? Wr(i, a) : r || (i[i.length] = a);
|
|
412
416
|
}
|
|
413
417
|
return i;
|
|
414
418
|
}
|
|
415
419
|
function Rt(t) {
|
|
416
|
-
return t != null && t.length ?
|
|
420
|
+
return t != null && t.length ? Gr(t) : [];
|
|
417
421
|
}
|
|
418
|
-
var
|
|
419
|
-
function
|
|
422
|
+
var Xo = Vo(Object.getPrototypeOf, Object);
|
|
423
|
+
function qo(t, e, n) {
|
|
420
424
|
var r = -1, i = t.length;
|
|
421
425
|
e < 0 && (e = -e > i ? 0 : i + e), (n = n > i ? i : n) < 0 && (n += i), i = e > n ? 0 : n - e >>> 0, e >>>= 0;
|
|
422
426
|
for (var o = Array(i); ++r < i; ) o[r] = t[r + e];
|
|
423
427
|
return o;
|
|
424
428
|
}
|
|
425
|
-
function
|
|
429
|
+
function Ma(t, e, n, r) {
|
|
426
430
|
var i = -1, o = t == null ? 0 : t.length;
|
|
427
431
|
for (r && o && (n = t[++i]); ++i < o; ) n = e(n, t[i], i, t);
|
|
428
432
|
return n;
|
|
@@ -449,75 +453,75 @@ bt.prototype.clear = function() {
|
|
|
449
453
|
}
|
|
450
454
|
return n.set(t, e), this.size = n.size, this;
|
|
451
455
|
};
|
|
452
|
-
var
|
|
453
|
-
function
|
|
456
|
+
var Zo = typeof exports == "object" && exports && !exports.nodeType && exports, li = Zo && typeof module == "object" && module && !module.nodeType && module, hi = li && li.exports === Zo ? wt.Buffer : void 0, fi = hi ? hi.allocUnsafe : void 0;
|
|
457
|
+
function Kr(t, e) {
|
|
454
458
|
for (var n = -1, r = t == null ? 0 : t.length, i = 0, o = []; ++n < r; ) {
|
|
455
459
|
var s = t[n];
|
|
456
460
|
e(s, n, t) && (o[i++] = s);
|
|
457
461
|
}
|
|
458
462
|
return o;
|
|
459
463
|
}
|
|
460
|
-
function
|
|
464
|
+
function Qo() {
|
|
461
465
|
return [];
|
|
462
466
|
}
|
|
463
|
-
var
|
|
464
|
-
return t == null ? [] : (t = Object(t),
|
|
465
|
-
return
|
|
467
|
+
var Ua = Object.prototype.propertyIsEnumerable, di = Object.getOwnPropertySymbols, zr = di ? function(t) {
|
|
468
|
+
return t == null ? [] : (t = Object(t), Kr(di(t), function(e) {
|
|
469
|
+
return Ua.call(t, e);
|
|
466
470
|
}));
|
|
467
|
-
} :
|
|
468
|
-
for (var e = []; t; )
|
|
471
|
+
} : Qo, Fa = Object.getOwnPropertySymbols ? function(t) {
|
|
472
|
+
for (var e = []; t; ) Wr(e, zr(t)), t = Xo(t);
|
|
469
473
|
return e;
|
|
470
|
-
} :
|
|
471
|
-
function
|
|
474
|
+
} : Qo;
|
|
475
|
+
function Jo(t, e, n) {
|
|
472
476
|
var r = e(t);
|
|
473
|
-
return B(t) ? r :
|
|
477
|
+
return B(t) ? r : Wr(r, n(t));
|
|
474
478
|
}
|
|
475
|
-
function
|
|
476
|
-
return
|
|
479
|
+
function gr(t) {
|
|
480
|
+
return Jo(t, yt, zr);
|
|
477
481
|
}
|
|
478
|
-
var
|
|
479
|
-
(
|
|
482
|
+
var Tr = ce(wt, "DataView"), Ar = ce(wt, "Promise"), pe = ce(wt, "Set"), pi = "[object Map]", mi = "[object Promise]", Ei = "[object Set]", gi = "[object WeakMap]", Ti = "[object DataView]", Da = ae(Tr), ja = ae(je), Ba = ae(Ar), $a = ae(pe), Wa = ae(dr), At = Jt;
|
|
483
|
+
(Tr && At(new Tr(new ArrayBuffer(1))) != Ti || je && At(new je()) != pi || Ar && At(Ar.resolve()) != mi || pe && At(new pe()) != Ei || dr && At(new dr()) != gi) && (At = function(t) {
|
|
480
484
|
var e = Jt(t), n = e == "[object Object]" ? t.constructor : void 0, r = n ? ae(n) : "";
|
|
481
485
|
if (r) switch (r) {
|
|
486
|
+
case Da:
|
|
487
|
+
return Ti;
|
|
488
|
+
case ja:
|
|
489
|
+
return pi;
|
|
482
490
|
case Ba:
|
|
483
|
-
return
|
|
491
|
+
return mi;
|
|
484
492
|
case $a:
|
|
485
493
|
return Ei;
|
|
486
494
|
case Wa:
|
|
487
495
|
return gi;
|
|
488
|
-
case Ga:
|
|
489
|
-
return Ti;
|
|
490
|
-
case Ka:
|
|
491
|
-
return Ai;
|
|
492
496
|
}
|
|
493
497
|
return e;
|
|
494
498
|
});
|
|
495
|
-
var
|
|
499
|
+
var Ga = Object.prototype.hasOwnProperty, mn = wt.Uint8Array, Ka = /\w*$/, Ai = It ? It.prototype : void 0, Ii = Ai ? Ai.valueOf : void 0, Ni = Zt && Zt.isMap, za = Ni ? kn(Ni) : function(t) {
|
|
496
500
|
return Ot(t) && At(t) == "[object Map]";
|
|
497
|
-
},
|
|
501
|
+
}, yi = Zt && Zt.isSet, Va = yi ? kn(yi) : function(t) {
|
|
498
502
|
return Ot(t) && At(t) == "[object Set]";
|
|
499
|
-
},
|
|
503
|
+
}, ts = "[object Arguments]", es = "[object Function]", ns = "[object Object]", G = {};
|
|
500
504
|
function sn(t, e, n, r, i, o) {
|
|
501
505
|
var s;
|
|
502
506
|
if (s !== void 0) return s;
|
|
503
507
|
if (!Nt(t)) return t;
|
|
504
508
|
var a, c, u, l = B(t);
|
|
505
|
-
if (l) return c = (a = t).length, u = new a.constructor(c), c && typeof a[0] == "string" &&
|
|
509
|
+
if (l) return c = (a = t).length, u = new a.constructor(c), c && typeof a[0] == "string" && Ga.call(a, "index") && (u.index = a.index, u.input = a.input), function(m, y) {
|
|
506
510
|
var p = -1, T = m.length;
|
|
507
511
|
for (y || (y = Array(T)); ++p < T; ) y[p] = m[p];
|
|
508
512
|
return y;
|
|
509
513
|
}(t, s = u);
|
|
510
|
-
var h = At(t), N = h ==
|
|
514
|
+
var h = At(t), N = h == es || h == "[object GeneratorFunction]";
|
|
511
515
|
if (De(t)) return function(m) {
|
|
512
|
-
var y = m.length, p =
|
|
516
|
+
var y = m.length, p = fi ? fi(y) : new m.constructor(y);
|
|
513
517
|
return m.copy(p), p;
|
|
514
518
|
}(t);
|
|
515
|
-
if (h ==
|
|
516
|
-
return typeof m.constructor != "function" || Ve(m) ? {} :
|
|
519
|
+
if (h == ns || h == ts || N && !i) return s = N ? {} : function(m) {
|
|
520
|
+
return typeof m.constructor != "function" || Ve(m) ? {} : ha(Xo(m));
|
|
517
521
|
}(t), function(m, y) {
|
|
518
|
-
return
|
|
522
|
+
return pr(m, zr(m), y);
|
|
519
523
|
}(t, function(m, y) {
|
|
520
|
-
return m &&
|
|
524
|
+
return m && pr(y, yt(y), m);
|
|
521
525
|
}(s, t));
|
|
522
526
|
if (!G[h]) return i ? t : {};
|
|
523
527
|
s = function(m, y) {
|
|
@@ -548,22 +552,22 @@ function sn(t, e, n, r, i, o) {
|
|
|
548
552
|
return new I(m);
|
|
549
553
|
case "[object RegExp]":
|
|
550
554
|
return function(E) {
|
|
551
|
-
var R = new E.constructor(E.source,
|
|
555
|
+
var R = new E.constructor(E.source, Ka.exec(E));
|
|
552
556
|
return R.lastIndex = E.lastIndex, R;
|
|
553
557
|
}(m);
|
|
554
558
|
case "[object Symbol]":
|
|
555
|
-
return p = m,
|
|
559
|
+
return p = m, Ii ? Object(Ii.call(p)) : {};
|
|
556
560
|
}
|
|
557
561
|
}(t, h), o || (o = new bt());
|
|
558
562
|
var S = o.get(t);
|
|
559
563
|
if (S) return S;
|
|
560
|
-
o.set(t, s),
|
|
564
|
+
o.set(t, s), Va(t) ? t.forEach(function(m) {
|
|
561
565
|
s.add(sn(m, e, n, m, t, o));
|
|
562
|
-
}) :
|
|
566
|
+
}) : za(t) && t.forEach(function(m, y) {
|
|
563
567
|
s.set(y, sn(m, e, n, y, t, o));
|
|
564
568
|
});
|
|
565
|
-
var _ = l ? void 0 :
|
|
566
|
-
return
|
|
569
|
+
var _ = l ? void 0 : gr(t);
|
|
570
|
+
return Do(_ || t, function(m, y) {
|
|
567
571
|
_ && (m = t[y = m]), xn(s, y, sn(m, e, n, y, t, o));
|
|
568
572
|
}), s;
|
|
569
573
|
}
|
|
@@ -581,14 +585,14 @@ function me(t) {
|
|
|
581
585
|
var e = -1, n = t == null ? 0 : t.length;
|
|
582
586
|
for (this.__data__ = new Gt(); ++e < n; ) this.add(t[e]);
|
|
583
587
|
}
|
|
584
|
-
function
|
|
588
|
+
function rs(t, e) {
|
|
585
589
|
for (var n = -1, r = t == null ? 0 : t.length; ++n < r; ) if (e(t[n], n, t)) return !0;
|
|
586
590
|
return !1;
|
|
587
591
|
}
|
|
588
|
-
function
|
|
592
|
+
function Vr(t, e) {
|
|
589
593
|
return t.has(e);
|
|
590
594
|
}
|
|
591
|
-
function
|
|
595
|
+
function Ri(t, e, n, r, i, o) {
|
|
592
596
|
var s = 1 & n, a = t.length, c = e.length;
|
|
593
597
|
if (a != c && !(s && c > a)) return !1;
|
|
594
598
|
var u = o.get(t), l = o.get(e);
|
|
@@ -603,8 +607,8 @@ function Oi(t, e, n, r, i, o) {
|
|
|
603
607
|
break;
|
|
604
608
|
}
|
|
605
609
|
if (S) {
|
|
606
|
-
if (!
|
|
607
|
-
if (!
|
|
610
|
+
if (!rs(e, function(p, T) {
|
|
611
|
+
if (!Vr(S, T) && (_ === p || i(_, p, n, r, o))) return S.push(T);
|
|
608
612
|
})) {
|
|
609
613
|
N = !1;
|
|
610
614
|
break;
|
|
@@ -616,32 +620,32 @@ function Oi(t, e, n, r, i, o) {
|
|
|
616
620
|
}
|
|
617
621
|
return o.delete(t), o.delete(e), N;
|
|
618
622
|
}
|
|
619
|
-
function
|
|
623
|
+
function Ha(t) {
|
|
620
624
|
var e = -1, n = Array(t.size);
|
|
621
625
|
return t.forEach(function(r, i) {
|
|
622
626
|
n[++e] = [i, r];
|
|
623
627
|
}), n;
|
|
624
628
|
}
|
|
625
|
-
function
|
|
629
|
+
function Hr(t) {
|
|
626
630
|
var e = -1, n = Array(t.size);
|
|
627
631
|
return t.forEach(function(r) {
|
|
628
632
|
n[++e] = r;
|
|
629
633
|
}), n;
|
|
630
634
|
}
|
|
631
|
-
G[
|
|
635
|
+
G[ts] = G["[object Array]"] = G["[object ArrayBuffer]"] = G["[object DataView]"] = G["[object Boolean]"] = G["[object Date]"] = G["[object Float32Array]"] = G["[object Float64Array]"] = G["[object Int8Array]"] = G["[object Int16Array]"] = G["[object Int32Array]"] = G["[object Map]"] = G["[object Number]"] = G[ns] = G["[object RegExp]"] = G["[object Set]"] = G["[object String]"] = G["[object Symbol]"] = G["[object Uint8Array]"] = G["[object Uint8ClampedArray]"] = G["[object Uint16Array]"] = G["[object Uint32Array]"] = !0, G["[object Error]"] = G[es] = G["[object WeakMap]"] = !1, me.prototype.add = me.prototype.push = function(t) {
|
|
632
636
|
return this.__data__.set(t, "__lodash_hash_undefined__"), this;
|
|
633
637
|
}, me.prototype.has = function(t) {
|
|
634
638
|
return this.__data__.has(t);
|
|
635
639
|
};
|
|
636
|
-
var
|
|
637
|
-
function
|
|
640
|
+
var vi = It ? It.prototype : void 0, zn = vi ? vi.valueOf : void 0, Ya = Object.prototype.hasOwnProperty, Oi = "[object Arguments]", Si = "[object Array]", Qe = "[object Object]", _i = Object.prototype.hasOwnProperty;
|
|
641
|
+
function Ir(t, e, n, r, i) {
|
|
638
642
|
return t === e || (t == null || e == null || !Ot(t) && !Ot(e) ? t != t && e != e : function(o, s, a, c, u, l) {
|
|
639
|
-
var h = B(o), N = B(s), S = h ?
|
|
643
|
+
var h = B(o), N = B(s), S = h ? Si : At(o), _ = N ? Si : At(s), m = (S = S == Oi ? Qe : S) == Qe, y = (_ = _ == Oi ? Qe : _) == Qe, p = S == _;
|
|
640
644
|
if (p && De(o)) {
|
|
641
645
|
if (!De(s)) return !1;
|
|
642
646
|
h = !0, m = !1;
|
|
643
647
|
}
|
|
644
|
-
if (p && !m) return l || (l = new bt()), h ||
|
|
648
|
+
if (p && !m) return l || (l = new bt()), h || Br(o) ? Ri(o, s, a, c, u, l) : function(f, d, I, E, R, M, L) {
|
|
645
649
|
switch (I) {
|
|
646
650
|
case "[object DataView]":
|
|
647
651
|
if (f.byteLength != d.byteLength || f.byteOffset != d.byteOffset) return !1;
|
|
@@ -658,33 +662,33 @@ function yr(t, e, n, r, i) {
|
|
|
658
662
|
case "[object String]":
|
|
659
663
|
return f == d + "";
|
|
660
664
|
case "[object Map]":
|
|
661
|
-
var O =
|
|
665
|
+
var O = Ha;
|
|
662
666
|
case "[object Set]":
|
|
663
667
|
var P = 1 & E;
|
|
664
|
-
if (O || (O =
|
|
668
|
+
if (O || (O = Hr), f.size != d.size && !P) return !1;
|
|
665
669
|
var x = L.get(f);
|
|
666
670
|
if (x) return x == d;
|
|
667
671
|
E |= 2, L.set(f, d);
|
|
668
|
-
var C =
|
|
672
|
+
var C = Ri(O(f), O(d), E, R, M, L);
|
|
669
673
|
return L.delete(f), C;
|
|
670
674
|
case "[object Symbol]":
|
|
671
|
-
if (
|
|
675
|
+
if (zn) return zn.call(f) == zn.call(d);
|
|
672
676
|
}
|
|
673
677
|
return !1;
|
|
674
678
|
}(o, s, S, a, c, u, l);
|
|
675
679
|
if (!(1 & a)) {
|
|
676
|
-
var T = m &&
|
|
680
|
+
var T = m && _i.call(o, "__wrapped__"), g = y && _i.call(s, "__wrapped__");
|
|
677
681
|
if (T || g) {
|
|
678
682
|
var A = T ? o.value() : o, v = g ? s.value() : s;
|
|
679
683
|
return l || (l = new bt()), u(A, v, a, c, l);
|
|
680
684
|
}
|
|
681
685
|
}
|
|
682
686
|
return !!p && (l || (l = new bt()), function(f, d, I, E, R, M) {
|
|
683
|
-
var L = 1 & I, O =
|
|
684
|
-
if (P !=
|
|
687
|
+
var L = 1 & I, O = gr(f), P = O.length;
|
|
688
|
+
if (P != gr(d).length && !L) return !1;
|
|
685
689
|
for (var x = P; x--; ) {
|
|
686
690
|
var C = O[x];
|
|
687
|
-
if (!(L ? C in d :
|
|
691
|
+
if (!(L ? C in d : Ya.call(d, C))) return !1;
|
|
688
692
|
}
|
|
689
693
|
var $ = M.get(f), X = M.get(d);
|
|
690
694
|
if ($ && X) return $ == d && X == f;
|
|
@@ -705,44 +709,44 @@ function yr(t, e, n, r, i) {
|
|
|
705
709
|
}
|
|
706
710
|
return M.delete(f), M.delete(d), W;
|
|
707
711
|
}(o, s, a, c, u, l));
|
|
708
|
-
}(t, e, n, r,
|
|
712
|
+
}(t, e, n, r, Ir, i));
|
|
709
713
|
}
|
|
710
|
-
function
|
|
714
|
+
function Li(t) {
|
|
711
715
|
return t == t && !Nt(t);
|
|
712
716
|
}
|
|
713
|
-
function
|
|
717
|
+
function xi(t, e) {
|
|
714
718
|
return function(n) {
|
|
715
719
|
return n != null && n[t] === e && (e !== void 0 || t in Object(n));
|
|
716
720
|
};
|
|
717
721
|
}
|
|
718
|
-
function
|
|
722
|
+
function Xa(t, e) {
|
|
719
723
|
return t != null && e in Object(t);
|
|
720
724
|
}
|
|
721
|
-
function
|
|
725
|
+
function is(t, e, n) {
|
|
722
726
|
for (var r = -1, i = (e = bn(e, t)).length, o = !1; ++r < i; ) {
|
|
723
727
|
var s = Be(e[r]);
|
|
724
728
|
if (!(o = t != null && n(t, s))) break;
|
|
725
729
|
t = t[s];
|
|
726
730
|
}
|
|
727
|
-
return o || ++r != i ? o : !!(i = t == null ? 0 : t.length) &&
|
|
731
|
+
return o || ++r != i ? o : !!(i = t == null ? 0 : t.length) && jr(i) && Ln(s, i) && (B(t) || Cn(t));
|
|
728
732
|
}
|
|
729
733
|
function Pt(t) {
|
|
730
734
|
return typeof t == "function" ? t : t == null ? Ee : typeof t == "object" ? B(t) ? function(e, n) {
|
|
731
|
-
return
|
|
732
|
-
var i, o, s = (o = (i = r) == null ? void 0 :
|
|
735
|
+
return mr(e) && Li(n) ? xi(Be(e), n) : function(r) {
|
|
736
|
+
var i, o, s = (o = (i = r) == null ? void 0 : Er(i, e)) === void 0 ? void 0 : o;
|
|
733
737
|
return s === void 0 && s === n ? function(a, c) {
|
|
734
|
-
return a != null &&
|
|
735
|
-
}(r, e) :
|
|
738
|
+
return a != null && is(a, c, Xa);
|
|
739
|
+
}(r, e) : Ir(n, s, 3);
|
|
736
740
|
};
|
|
737
741
|
}(t[0], t[1]) : function(e) {
|
|
738
742
|
var n = function(r) {
|
|
739
743
|
for (var i = yt(r), o = i.length; o--; ) {
|
|
740
744
|
var s = i[o], a = r[s];
|
|
741
|
-
i[o] = [s, a,
|
|
745
|
+
i[o] = [s, a, Li(a)];
|
|
742
746
|
}
|
|
743
747
|
return i;
|
|
744
748
|
}(e);
|
|
745
|
-
return n.length == 1 && n[0][2] ?
|
|
749
|
+
return n.length == 1 && n[0][2] ? xi(n[0][0], n[0][1]) : function(r) {
|
|
746
750
|
return r === e || function(i, o, s) {
|
|
747
751
|
var a = s.length, c = a;
|
|
748
752
|
if (i == null) return !c;
|
|
@@ -754,30 +758,30 @@ function Pt(t) {
|
|
|
754
758
|
var l = (u = s[a])[0], h = i[l], N = u[1];
|
|
755
759
|
if (u[2]) {
|
|
756
760
|
if (h === void 0 && !(l in i)) return !1;
|
|
757
|
-
} else if (!
|
|
761
|
+
} else if (!Ir(N, h, 3, void 0, new bt())) return !1;
|
|
758
762
|
}
|
|
759
763
|
return !0;
|
|
760
764
|
}(r, 0, n);
|
|
761
765
|
};
|
|
762
766
|
}(t) : function(e) {
|
|
763
|
-
return
|
|
767
|
+
return mr(e) ? (n = Be(e), function(r) {
|
|
764
768
|
return r?.[n];
|
|
765
769
|
}) : /* @__PURE__ */ function(r) {
|
|
766
770
|
return function(i) {
|
|
767
|
-
return
|
|
771
|
+
return Er(i, r);
|
|
768
772
|
};
|
|
769
773
|
}(e);
|
|
770
774
|
var n;
|
|
771
775
|
}(t);
|
|
772
776
|
}
|
|
773
|
-
function
|
|
777
|
+
function qa(t, e, n, r) {
|
|
774
778
|
for (var i = -1, o = t == null ? 0 : t.length; ++i < o; ) {
|
|
775
779
|
var s = t[i];
|
|
776
780
|
e(r, s, n(s), t);
|
|
777
781
|
}
|
|
778
782
|
return r;
|
|
779
783
|
}
|
|
780
|
-
var
|
|
784
|
+
var Ci, ue = (Ci = function(t, e) {
|
|
781
785
|
return t && function(n, r, i) {
|
|
782
786
|
for (var o = -1, s = Object(n), a = i(n), c = a.length; c--; ) {
|
|
783
787
|
var u = a[++o];
|
|
@@ -787,32 +791,32 @@ var bi, ue = (bi = function(t, e) {
|
|
|
787
791
|
}(t, e, yt);
|
|
788
792
|
}, function(t, e) {
|
|
789
793
|
if (t == null) return t;
|
|
790
|
-
if (!Mt(t)) return
|
|
794
|
+
if (!Mt(t)) return Ci(t, e);
|
|
791
795
|
for (var n = t.length, r = -1, i = Object(t); ++r < n && e(i[r], r, i) !== !1; ) ;
|
|
792
796
|
return t;
|
|
793
797
|
});
|
|
794
|
-
function
|
|
798
|
+
function Za(t, e, n, r) {
|
|
795
799
|
return ue(t, function(i, o, s) {
|
|
796
800
|
e(r, i, n(i), s);
|
|
797
801
|
}), r;
|
|
798
802
|
}
|
|
799
|
-
var
|
|
803
|
+
var os = Object.prototype, Qa = os.hasOwnProperty, Nr = Dr(function(t, e) {
|
|
800
804
|
t = Object(t);
|
|
801
805
|
var n = -1, r = e.length, i = r > 2 ? e[2] : void 0;
|
|
802
|
-
for (i &&
|
|
806
|
+
for (i && $o(e[0], e[1], i) && (r = 1); ++n < r; ) for (var o = e[n], s = Yo(o), a = -1, c = s.length; ++a < c; ) {
|
|
803
807
|
var u = s[a], l = t[u];
|
|
804
|
-
(l === void 0 || ze(l,
|
|
808
|
+
(l === void 0 || ze(l, os[u]) && !Qa.call(t, u)) && (t[u] = o[u]);
|
|
805
809
|
}
|
|
806
810
|
return t;
|
|
807
811
|
});
|
|
808
|
-
function
|
|
812
|
+
function ki(t) {
|
|
809
813
|
return Ot(t) && Mt(t);
|
|
810
814
|
}
|
|
811
|
-
var En =
|
|
812
|
-
return
|
|
813
|
-
var i = -1, o =
|
|
815
|
+
var En = Dr(function(t, e) {
|
|
816
|
+
return ki(t) ? function(n, r) {
|
|
817
|
+
var i = -1, o = Bo, s = !0, a = n.length, c = [], u = r.length;
|
|
814
818
|
if (!a) return c;
|
|
815
|
-
r.length >= 200 && (o =
|
|
819
|
+
r.length >= 200 && (o = Vr, s = !1, r = new me(r));
|
|
816
820
|
t: for (; ++i < a; ) {
|
|
817
821
|
var l = n[i], h = l;
|
|
818
822
|
if (l = l !== 0 ? l : 0, s && h == h) {
|
|
@@ -821,7 +825,7 @@ var En = Br(function(t, e) {
|
|
|
821
825
|
} else o(r, h, void 0) || c.push(l);
|
|
822
826
|
}
|
|
823
827
|
return c;
|
|
824
|
-
}(t,
|
|
828
|
+
}(t, Gr(e, 0, ki, !0)) : [];
|
|
825
829
|
});
|
|
826
830
|
function ge(t) {
|
|
827
831
|
var e = t == null ? 0 : t.length;
|
|
@@ -829,43 +833,43 @@ function ge(t) {
|
|
|
829
833
|
}
|
|
830
834
|
function tt(t, e, n) {
|
|
831
835
|
var r = t == null ? 0 : t.length;
|
|
832
|
-
return r ?
|
|
836
|
+
return r ? qo(t, (e = e === void 0 ? 1 : _n(e)) < 0 ? 0 : e, r) : [];
|
|
833
837
|
}
|
|
834
838
|
function We(t, e, n) {
|
|
835
839
|
var r = t == null ? 0 : t.length;
|
|
836
|
-
return r ?
|
|
840
|
+
return r ? qo(t, 0, (e = r - (e = e === void 0 ? 1 : _n(e))) < 0 ? 0 : e) : [];
|
|
837
841
|
}
|
|
838
842
|
function w(t, e) {
|
|
839
843
|
var n;
|
|
840
|
-
return (B(t) ?
|
|
844
|
+
return (B(t) ? Do : ue)(t, typeof (n = e) == "function" ? n : Ee);
|
|
841
845
|
}
|
|
842
|
-
function
|
|
846
|
+
function Ja(t, e) {
|
|
843
847
|
for (var n = -1, r = t == null ? 0 : t.length; ++n < r; ) if (!e(t[n], n, t)) return !1;
|
|
844
848
|
return !0;
|
|
845
849
|
}
|
|
846
|
-
function
|
|
850
|
+
function tc(t, e) {
|
|
847
851
|
var n = !0;
|
|
848
852
|
return ue(t, function(r, i, o) {
|
|
849
853
|
return n = !!e(r, i, o);
|
|
850
854
|
}), n;
|
|
851
855
|
}
|
|
852
856
|
function vt(t, e, n) {
|
|
853
|
-
return (B(t) ?
|
|
857
|
+
return (B(t) ? Ja : tc)(t, Pt(e));
|
|
854
858
|
}
|
|
855
|
-
function
|
|
859
|
+
function ss(t, e) {
|
|
856
860
|
var n = [];
|
|
857
861
|
return ue(t, function(r, i, o) {
|
|
858
862
|
e(r, i, o) && n.push(r);
|
|
859
863
|
}), n;
|
|
860
864
|
}
|
|
861
865
|
function gt(t, e) {
|
|
862
|
-
return (B(t) ?
|
|
866
|
+
return (B(t) ? Kr : ss)(t, Pt(e));
|
|
863
867
|
}
|
|
864
|
-
var
|
|
868
|
+
var bi, ec = Math.max, Te = (bi = function(t, e, n) {
|
|
865
869
|
var r = t == null ? 0 : t.length;
|
|
866
870
|
if (!r) return -1;
|
|
867
871
|
var i = n == null ? 0 : _n(n);
|
|
868
|
-
return i < 0 && (i =
|
|
872
|
+
return i < 0 && (i = ec(r + i, 0)), jo(t, Pt(e), i);
|
|
869
873
|
}, function(t, e, n) {
|
|
870
874
|
var r = Object(t);
|
|
871
875
|
if (!Mt(t)) {
|
|
@@ -874,34 +878,34 @@ var wi, rc = Math.max, Te = (wi = function(t, e, n) {
|
|
|
874
878
|
return i(r[s], s, r);
|
|
875
879
|
};
|
|
876
880
|
}
|
|
877
|
-
var o =
|
|
881
|
+
var o = bi(t, e, n);
|
|
878
882
|
return o > -1 ? r[i ? t[o] : o] : void 0;
|
|
879
883
|
});
|
|
880
884
|
function St(t) {
|
|
881
885
|
return t && t.length ? t[0] : void 0;
|
|
882
886
|
}
|
|
883
|
-
function
|
|
887
|
+
function nc(t, e) {
|
|
884
888
|
var n = -1, r = Mt(t) ? Array(t.length) : [];
|
|
885
889
|
return ue(t, function(i, o, s) {
|
|
886
890
|
r[++n] = e(i, o, s);
|
|
887
891
|
}), r;
|
|
888
892
|
}
|
|
889
893
|
function k(t, e) {
|
|
890
|
-
return (B(t) ? Sn :
|
|
894
|
+
return (B(t) ? Sn : nc)(t, Pt(e));
|
|
891
895
|
}
|
|
892
896
|
function Tt(t, e) {
|
|
893
|
-
return
|
|
897
|
+
return Gr(k(t, e));
|
|
894
898
|
}
|
|
895
|
-
var
|
|
896
|
-
|
|
899
|
+
var Pi, rc = Object.prototype.hasOwnProperty, ic = (Pi = function(t, e, n) {
|
|
900
|
+
rc.call(t, n) ? t[n].push(e) : Fr(t, n, [e]);
|
|
897
901
|
}, function(t, e) {
|
|
898
|
-
return (B(t) ?
|
|
899
|
-
}),
|
|
900
|
-
function
|
|
901
|
-
return t != null &&
|
|
902
|
+
return (B(t) ? qa : Za)(t, Pi, Pt(e), {});
|
|
903
|
+
}), oc = Object.prototype.hasOwnProperty;
|
|
904
|
+
function sc(t, e) {
|
|
905
|
+
return t != null && oc.call(t, e);
|
|
902
906
|
}
|
|
903
907
|
function b(t, e) {
|
|
904
|
-
return t != null &&
|
|
908
|
+
return t != null && is(t, e, sc);
|
|
905
909
|
}
|
|
906
910
|
function ut(t) {
|
|
907
911
|
return typeof t == "string" || !B(t) && Ot(t) && Jt(t) == "[object String]";
|
|
@@ -913,32 +917,32 @@ function Q(t) {
|
|
|
913
917
|
});
|
|
914
918
|
}(t, yt(t));
|
|
915
919
|
}
|
|
916
|
-
var
|
|
920
|
+
var ac = Math.max;
|
|
917
921
|
function at(t, e, n, r) {
|
|
918
922
|
t = Mt(t) ? t : Q(t), n = n ? _n(n) : 0;
|
|
919
923
|
var i = t.length;
|
|
920
|
-
return n < 0 && (n =
|
|
924
|
+
return n < 0 && (n = ac(i + n, 0)), ut(t) ? n <= i && t.indexOf(e, n) > -1 : !!i && Ur(t, e, n) > -1;
|
|
921
925
|
}
|
|
922
|
-
function
|
|
923
|
-
return t != null && t.length ?
|
|
926
|
+
function wi(t, e, n) {
|
|
927
|
+
return t != null && t.length ? Ur(t, e, 0) : -1;
|
|
924
928
|
}
|
|
925
|
-
var
|
|
929
|
+
var cc = Object.prototype.hasOwnProperty;
|
|
926
930
|
function K(t) {
|
|
927
931
|
if (t == null) return !0;
|
|
928
|
-
if (Mt(t) && (B(t) || typeof t == "string" || typeof t.splice == "function" || De(t) ||
|
|
932
|
+
if (Mt(t) && (B(t) || typeof t == "string" || typeof t.splice == "function" || De(t) || Br(t) || Cn(t))) return !t.length;
|
|
929
933
|
var e = At(t);
|
|
930
934
|
if (e == "[object Map]" || e == "[object Set]") return !t.size;
|
|
931
|
-
if (Ve(t)) return !
|
|
932
|
-
for (var n in t) if (
|
|
935
|
+
if (Ve(t)) return !Ho(t).length;
|
|
936
|
+
for (var n in t) if (cc.call(t, n)) return !1;
|
|
933
937
|
return !0;
|
|
934
938
|
}
|
|
935
|
-
var
|
|
939
|
+
var Mi = Zt && Zt.isRegExp, Kt = Mi ? kn(Mi) : function(t) {
|
|
936
940
|
return Ot(t) && Jt(t) == "[object RegExp]";
|
|
937
941
|
};
|
|
938
942
|
function Ht(t) {
|
|
939
943
|
return t === void 0;
|
|
940
944
|
}
|
|
941
|
-
function
|
|
945
|
+
function uc(t, e, n, r) {
|
|
942
946
|
if (!Nt(t)) return t;
|
|
943
947
|
for (var i = -1, o = (e = bn(e, t)).length, s = o - 1, a = t; a != null && ++i < o; ) {
|
|
944
948
|
var c = Be(e[i]), u = n;
|
|
@@ -953,30 +957,30 @@ function hc(t, e, n, r) {
|
|
|
953
957
|
}
|
|
954
958
|
function _t(t, e) {
|
|
955
959
|
if (t == null) return {};
|
|
956
|
-
var n = Sn(
|
|
960
|
+
var n = Sn(Jo(t, Yo, Fa), function(r) {
|
|
957
961
|
return [r];
|
|
958
962
|
});
|
|
959
963
|
return e = Pt(e), function(r, i, o) {
|
|
960
964
|
for (var s = -1, a = i.length, c = {}; ++s < a; ) {
|
|
961
|
-
var u = i[s], l =
|
|
962
|
-
o(l, u) &&
|
|
965
|
+
var u = i[s], l = Er(r, u);
|
|
966
|
+
o(l, u) && uc(c, bn(u, r), l);
|
|
963
967
|
}
|
|
964
968
|
return c;
|
|
965
969
|
}(t, n, function(r, i) {
|
|
966
970
|
return e(r, i[0]);
|
|
967
971
|
});
|
|
968
972
|
}
|
|
969
|
-
function
|
|
973
|
+
function lc(t, e, n, r, i) {
|
|
970
974
|
return i(t, function(o, s, a) {
|
|
971
975
|
n = r ? (r = !1, o) : e(n, o, s, a);
|
|
972
976
|
}), n;
|
|
973
977
|
}
|
|
974
978
|
function dt(t, e, n) {
|
|
975
|
-
var r = B(t) ?
|
|
979
|
+
var r = B(t) ? Ma : lc, i = arguments.length < 3;
|
|
976
980
|
return r(t, Pt(e), n, i, ue);
|
|
977
981
|
}
|
|
978
982
|
function an(t, e) {
|
|
979
|
-
return (B(t) ?
|
|
983
|
+
return (B(t) ? Kr : ss)(t, function(n) {
|
|
980
984
|
if (typeof n != "function") throw new TypeError("Expected a function");
|
|
981
985
|
return function() {
|
|
982
986
|
var r = arguments;
|
|
@@ -994,25 +998,25 @@ function an(t, e) {
|
|
|
994
998
|
};
|
|
995
999
|
}(Pt(e)));
|
|
996
1000
|
}
|
|
997
|
-
function
|
|
1001
|
+
function hc(t, e) {
|
|
998
1002
|
var n;
|
|
999
1003
|
return ue(t, function(r, i, o) {
|
|
1000
1004
|
return !(n = e(r, i, o));
|
|
1001
1005
|
}), !!n;
|
|
1002
1006
|
}
|
|
1003
|
-
function
|
|
1004
|
-
return (B(t) ?
|
|
1007
|
+
function as(t, e, n) {
|
|
1008
|
+
return (B(t) ? rs : hc)(t, Pt(e));
|
|
1005
1009
|
}
|
|
1006
|
-
var
|
|
1010
|
+
var fc = pe && 1 / Hr(new pe([, -0]))[1] == 1 / 0 ? function(t) {
|
|
1007
1011
|
return new pe(t);
|
|
1008
1012
|
} : Z;
|
|
1009
|
-
function
|
|
1013
|
+
function yr(t) {
|
|
1010
1014
|
return t && t.length ? function(e) {
|
|
1011
|
-
var n = -1, r =
|
|
1015
|
+
var n = -1, r = Bo, i = e.length, o = !0, s = [], a = s;
|
|
1012
1016
|
if (i >= 200) {
|
|
1013
|
-
var c =
|
|
1014
|
-
if (c) return
|
|
1015
|
-
o = !1, r =
|
|
1017
|
+
var c = fc(e);
|
|
1018
|
+
if (c) return Hr(c);
|
|
1019
|
+
o = !1, r = Vr, a = new me();
|
|
1016
1020
|
} else a = s;
|
|
1017
1021
|
t: for (; ++n < i; ) {
|
|
1018
1022
|
var u = e[n], l = u;
|
|
@@ -1024,17 +1028,17 @@ function vr(t) {
|
|
|
1024
1028
|
return s;
|
|
1025
1029
|
}(t) : [];
|
|
1026
1030
|
}
|
|
1027
|
-
function
|
|
1031
|
+
function Rr(t) {
|
|
1028
1032
|
console && console.error && console.error(`Error: ${t}`);
|
|
1029
1033
|
}
|
|
1030
|
-
function
|
|
1034
|
+
function cs(t) {
|
|
1031
1035
|
console && console.warn && console.warn(`Warning: ${t}`);
|
|
1032
1036
|
}
|
|
1033
|
-
function
|
|
1037
|
+
function us(t) {
|
|
1034
1038
|
const e = (/* @__PURE__ */ new Date()).getTime(), n = t();
|
|
1035
1039
|
return { time: (/* @__PURE__ */ new Date()).getTime() - e, value: n };
|
|
1036
1040
|
}
|
|
1037
|
-
function
|
|
1041
|
+
function ls(t) {
|
|
1038
1042
|
function e() {
|
|
1039
1043
|
}
|
|
1040
1044
|
e.prototype = t;
|
|
@@ -1044,7 +1048,7 @@ function fs(t) {
|
|
|
1044
1048
|
}
|
|
1045
1049
|
return r(), r(), t;
|
|
1046
1050
|
}
|
|
1047
|
-
function
|
|
1051
|
+
function dc(t) {
|
|
1048
1052
|
return ut((e = t).LABEL) && e.LABEL !== "" ? t.LABEL : t.name;
|
|
1049
1053
|
var e;
|
|
1050
1054
|
}
|
|
@@ -1147,7 +1151,7 @@ function cn(t) {
|
|
|
1147
1151
|
if (t instanceof J) return { type: "Repetition", idx: t.idx, definition: e(t.definition) };
|
|
1148
1152
|
if (t instanceof xt) return { type: "Alternation", idx: t.idx, definition: e(t.definition) };
|
|
1149
1153
|
if (t instanceof V) {
|
|
1150
|
-
const n = { type: "Terminal", name: t.terminalType.name, label:
|
|
1154
|
+
const n = { type: "Terminal", name: t.terminalType.name, label: dc(t.terminalType), idx: t.idx };
|
|
1151
1155
|
ut(t.label) && (n.terminalLabel = t.label);
|
|
1152
1156
|
const r = t.terminalType.PATTERN;
|
|
1153
1157
|
return t.terminalType.PATTERN && (n.pattern = Kt(r) ? r.source : r), n;
|
|
@@ -1205,7 +1209,7 @@ class Ie {
|
|
|
1205
1209
|
}
|
|
1206
1210
|
}
|
|
1207
1211
|
function gn(t, e = []) {
|
|
1208
|
-
return t instanceof lt || t instanceof J || t instanceof Lt || (t instanceof xt ?
|
|
1212
|
+
return t instanceof lt || t instanceof J || t instanceof Lt || (t instanceof xt ? as(t.definition, (n) => gn(n, e)) : !(t instanceof mt && at(e, t)) && t instanceof Ut && (t instanceof mt && e.push(t), vt(t.definition, (n) => gn(n, e))));
|
|
1209
1213
|
}
|
|
1210
1214
|
function kt(t) {
|
|
1211
1215
|
if (t instanceof mt) return "SUBRULE";
|
|
@@ -1253,7 +1257,7 @@ class Pn {
|
|
|
1253
1257
|
this.walk(e, i);
|
|
1254
1258
|
}
|
|
1255
1259
|
walkAtLeastOneSep(e, n, r) {
|
|
1256
|
-
const i =
|
|
1260
|
+
const i = Ui(e, n, r);
|
|
1257
1261
|
this.walk(e, i);
|
|
1258
1262
|
}
|
|
1259
1263
|
walkMany(e, n, r) {
|
|
@@ -1261,7 +1265,7 @@ class Pn {
|
|
|
1261
1265
|
this.walk(e, i);
|
|
1262
1266
|
}
|
|
1263
1267
|
walkManySep(e, n, r) {
|
|
1264
|
-
const i =
|
|
1268
|
+
const i = Ui(e, n, r);
|
|
1265
1269
|
this.walk(e, i);
|
|
1266
1270
|
}
|
|
1267
1271
|
walkOr(e, n, r) {
|
|
@@ -1272,30 +1276,29 @@ class Pn {
|
|
|
1272
1276
|
});
|
|
1273
1277
|
}
|
|
1274
1278
|
}
|
|
1275
|
-
function
|
|
1279
|
+
function Ui(t, e, n) {
|
|
1276
1280
|
return [new lt({ definition: [new V({ terminalType: t.separator })].concat(t.definition) })].concat(e, n);
|
|
1277
1281
|
}
|
|
1278
1282
|
function be(t) {
|
|
1279
1283
|
if (t instanceof mt) return be(t.referencedRule);
|
|
1280
1284
|
if (t instanceof V) return [t.terminalType];
|
|
1281
|
-
if (
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
let
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
for (; s && a; ) i = r[o], a = gn(i), n = n.concat(be(i)), o += 1, s = r.length > o;
|
|
1288
|
-
return vr(n);
|
|
1285
|
+
if ((e = t) instanceof ht || e instanceof lt || e instanceof J || e instanceof Ft || e instanceof Dt || e instanceof Lt || e instanceof V || e instanceof Ae) return function(n) {
|
|
1286
|
+
let r = [];
|
|
1287
|
+
const i = n.definition;
|
|
1288
|
+
let o, s = 0, a = i.length > s, c = !0;
|
|
1289
|
+
for (; a && c; ) o = i[s], c = gn(o), r = r.concat(be(o)), s += 1, a = i.length > s;
|
|
1290
|
+
return yr(r);
|
|
1289
1291
|
}(t);
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1292
|
+
var e;
|
|
1293
|
+
if (function(n) {
|
|
1294
|
+
return n instanceof xt;
|
|
1295
|
+
}(t)) return function(n) {
|
|
1296
|
+
return yr(Rt(k(n.definition, (r) => be(r))));
|
|
1294
1297
|
}(t);
|
|
1295
1298
|
throw Error("non exhaustive match");
|
|
1296
1299
|
}
|
|
1297
|
-
const
|
|
1298
|
-
class
|
|
1300
|
+
const hs = "_~IN~_";
|
|
1301
|
+
class pc extends Pn {
|
|
1299
1302
|
constructor(e) {
|
|
1300
1303
|
super(), this.topProd = e, this.follows = {};
|
|
1301
1304
|
}
|
|
@@ -1305,7 +1308,7 @@ class Ec extends Pn {
|
|
|
1305
1308
|
walkTerminal(e, n, r) {
|
|
1306
1309
|
}
|
|
1307
1310
|
walkProdRef(e, n, r) {
|
|
1308
|
-
const i = (o = e.referencedRule, s = e.idx, o.name + s +
|
|
1311
|
+
const i = (o = e.referencedRule, s = e.idx, o.name + s + hs + this.topProd.name);
|
|
1309
1312
|
var o, s;
|
|
1310
1313
|
const a = n.concat(r), c = be(new ht({ definition: a }));
|
|
1311
1314
|
this.follows[i] = c;
|
|
@@ -1314,7 +1317,7 @@ class Ec extends Pn {
|
|
|
1314
1317
|
function U(t) {
|
|
1315
1318
|
return t.charCodeAt(0);
|
|
1316
1319
|
}
|
|
1317
|
-
function
|
|
1320
|
+
function Vn(t, e) {
|
|
1318
1321
|
Array.isArray(t) ? t.forEach(function(n) {
|
|
1319
1322
|
e.push(n);
|
|
1320
1323
|
}) : e.push(t);
|
|
@@ -1327,7 +1330,7 @@ function le(t) {
|
|
|
1327
1330
|
if (t === void 0) throw Error("Internal Error - Should never get here!");
|
|
1328
1331
|
return !0;
|
|
1329
1332
|
}
|
|
1330
|
-
function
|
|
1333
|
+
function Fi(t) {
|
|
1331
1334
|
return t.type === "Character";
|
|
1332
1335
|
}
|
|
1333
1336
|
const Tn = [];
|
|
@@ -1335,9 +1338,9 @@ for (let t = U("0"); t <= U("9"); t++) Tn.push(t);
|
|
|
1335
1338
|
const An = [U("_")].concat(Tn);
|
|
1336
1339
|
for (let t = U("a"); t <= U("z"); t++) An.push(t);
|
|
1337
1340
|
for (let t = U("A"); t <= U("Z"); t++) An.push(t);
|
|
1338
|
-
const
|
|
1339
|
-
`), U("\r"), U(" "), U("\v"), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U("\u2028"), U("\u2029"), U(" "), U(" "), U(" "), U("\uFEFF")],
|
|
1340
|
-
class
|
|
1341
|
+
const Di = [U(" "), U("\f"), U(`
|
|
1342
|
+
`), U("\r"), U(" "), U("\v"), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U(" "), U("\u2028"), U("\u2029"), U(" "), U(" "), U(" "), U("\uFEFF")], mc = /[0-9a-fA-F]/, Je = /[0-9]/, Ec = /[1-9]/;
|
|
1343
|
+
class vr {
|
|
1341
1344
|
visitChildren(e) {
|
|
1342
1345
|
for (const n in e) {
|
|
1343
1346
|
const r = e[n];
|
|
@@ -1427,7 +1430,7 @@ class Sr {
|
|
|
1427
1430
|
}
|
|
1428
1431
|
}
|
|
1429
1432
|
let un = {};
|
|
1430
|
-
const
|
|
1433
|
+
const gc = new class {
|
|
1431
1434
|
constructor() {
|
|
1432
1435
|
this.idx = 0, this.input = "", this.groupIdx = 0;
|
|
1433
1436
|
}
|
|
@@ -1606,10 +1609,10 @@ const Ac = new class {
|
|
|
1606
1609
|
t = Tn, e = !0;
|
|
1607
1610
|
break;
|
|
1608
1611
|
case "s":
|
|
1609
|
-
t =
|
|
1612
|
+
t = Di;
|
|
1610
1613
|
break;
|
|
1611
1614
|
case "S":
|
|
1612
|
-
t =
|
|
1615
|
+
t = Di, e = !0;
|
|
1613
1616
|
break;
|
|
1614
1617
|
case "w":
|
|
1615
1618
|
t = An;
|
|
@@ -1677,14 +1680,14 @@ const Ac = new class {
|
|
|
1677
1680
|
let e = !1;
|
|
1678
1681
|
for (this.consumeChar("["), this.peekChar(0) === "^" && (this.consumeChar("^"), e = !0); this.isClassAtom(); ) {
|
|
1679
1682
|
const n = this.classAtom();
|
|
1680
|
-
if (n.type,
|
|
1683
|
+
if (n.type, Fi(n) && this.isRangeDash()) {
|
|
1681
1684
|
this.consumeChar("-");
|
|
1682
1685
|
const r = this.classAtom();
|
|
1683
|
-
if (r.type,
|
|
1686
|
+
if (r.type, Fi(r)) {
|
|
1684
1687
|
if (r.value < n.value) throw Error("Range out of order in character class");
|
|
1685
1688
|
t.push({ from: n.value, to: r.value });
|
|
1686
|
-
} else
|
|
1687
|
-
} else
|
|
1689
|
+
} else Vn(n.value, t), t.push(U("-")), Vn(r.value, t);
|
|
1690
|
+
} else Vn(n.value, t);
|
|
1688
1691
|
}
|
|
1689
1692
|
return this.consumeChar("]"), { type: "Set", complement: e, value: t };
|
|
1690
1693
|
}
|
|
@@ -1742,7 +1745,7 @@ const Ac = new class {
|
|
|
1742
1745
|
}
|
|
1743
1746
|
positiveInteger() {
|
|
1744
1747
|
let t = this.popChar();
|
|
1745
|
-
if (
|
|
1748
|
+
if (Ec.test(t) === !1) throw Error("Expecting a positive integer");
|
|
1746
1749
|
for (; Je.test(this.peekChar(0)); ) t += this.popChar();
|
|
1747
1750
|
return parseInt(t, 10);
|
|
1748
1751
|
}
|
|
@@ -1879,7 +1882,7 @@ const Ac = new class {
|
|
|
1879
1882
|
let e = "";
|
|
1880
1883
|
for (let n = 0; n < t; n++) {
|
|
1881
1884
|
const r = this.popChar();
|
|
1882
|
-
if (
|
|
1885
|
+
if (mc.test(r) === !1) throw Error("Expecting a HexDecimal digits");
|
|
1883
1886
|
e += r;
|
|
1884
1887
|
}
|
|
1885
1888
|
return { type: "Character", value: parseInt(e, 16) };
|
|
@@ -1904,18 +1907,18 @@ function In(t) {
|
|
|
1904
1907
|
const e = t.toString();
|
|
1905
1908
|
if (un.hasOwnProperty(e)) return un[e];
|
|
1906
1909
|
{
|
|
1907
|
-
const n =
|
|
1910
|
+
const n = gc.pattern(e);
|
|
1908
1911
|
return un[e] = n, n;
|
|
1909
1912
|
}
|
|
1910
1913
|
}
|
|
1911
|
-
const
|
|
1914
|
+
const fs = "Complement Sets are not supported for first char optimization", Nn = `Unable to use "first char" lexer optimizations:
|
|
1912
1915
|
`;
|
|
1913
|
-
function
|
|
1916
|
+
function Tc(t, e = !1) {
|
|
1914
1917
|
try {
|
|
1915
1918
|
const n = In(t);
|
|
1916
|
-
return
|
|
1919
|
+
return Or(n.value, {}, n.flags.ignoreCase);
|
|
1917
1920
|
} catch (n) {
|
|
1918
|
-
if (n.message ===
|
|
1921
|
+
if (n.message === fs) e && cs(`${Nn} Unable to optimize: < ${t.toString()} >
|
|
1919
1922
|
Complement Sets cannot be automatically optimized.
|
|
1920
1923
|
This will disable the lexer's first char optimizations.
|
|
1921
1924
|
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);
|
|
@@ -1923,7 +1926,7 @@ function Ic(t, e = !1) {
|
|
|
1923
1926
|
let r = "";
|
|
1924
1927
|
e && (r = `
|
|
1925
1928
|
This will disable the lexer's first char optimizations.
|
|
1926
|
-
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),
|
|
1929
|
+
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`), Rr(`${Nn}
|
|
1927
1930
|
Failed parsing: < ${t.toString()} >
|
|
1928
1931
|
Using the @chevrotain/regexp-to-ast library
|
|
1929
1932
|
Please open an issue at: https://github.com/chevrotain/chevrotain/issues` + r);
|
|
@@ -1931,10 +1934,10 @@ function Ic(t, e = !1) {
|
|
|
1931
1934
|
}
|
|
1932
1935
|
return [];
|
|
1933
1936
|
}
|
|
1934
|
-
function
|
|
1937
|
+
function Or(t, e, n) {
|
|
1935
1938
|
switch (t.type) {
|
|
1936
1939
|
case "Disjunction":
|
|
1937
|
-
for (let i = 0; i < t.value.length; i++)
|
|
1940
|
+
for (let i = 0; i < t.value.length; i++) Or(t.value[i], e, n);
|
|
1938
1941
|
break;
|
|
1939
1942
|
case "Alternative":
|
|
1940
1943
|
const r = t.value;
|
|
@@ -1956,7 +1959,7 @@ function _r(t, e, n) {
|
|
|
1956
1959
|
tn(s.value, e, n);
|
|
1957
1960
|
break;
|
|
1958
1961
|
case "Set":
|
|
1959
|
-
if (s.complement === !0) throw Error(
|
|
1962
|
+
if (s.complement === !0) throw Error(fs);
|
|
1960
1963
|
w(s.value, (c) => {
|
|
1961
1964
|
if (typeof c == "number") tn(c, e, n);
|
|
1962
1965
|
else {
|
|
@@ -1973,13 +1976,13 @@ function _r(t, e, n) {
|
|
|
1973
1976
|
});
|
|
1974
1977
|
break;
|
|
1975
1978
|
case "Group":
|
|
1976
|
-
|
|
1979
|
+
Or(s.value, e, n);
|
|
1977
1980
|
break;
|
|
1978
1981
|
default:
|
|
1979
1982
|
throw Error("Non Exhaustive Match");
|
|
1980
1983
|
}
|
|
1981
1984
|
const a = s.quantifier !== void 0 && s.quantifier.atLeast === 0;
|
|
1982
|
-
if (s.type === "Group" &&
|
|
1985
|
+
if (s.type === "Group" && Sr(s) === !1 || s.type !== "Group" && a === !1) break;
|
|
1983
1986
|
}
|
|
1984
1987
|
break;
|
|
1985
1988
|
default:
|
|
@@ -2003,7 +2006,7 @@ function tn(t, e, n) {
|
|
|
2003
2006
|
}
|
|
2004
2007
|
}(t, e);
|
|
2005
2008
|
}
|
|
2006
|
-
function
|
|
2009
|
+
function ji(t, e) {
|
|
2007
2010
|
return Te(t.value, (n) => {
|
|
2008
2011
|
if (typeof n == "number") return at(e, n);
|
|
2009
2012
|
{
|
|
@@ -2012,11 +2015,11 @@ function $i(t, e) {
|
|
|
2012
2015
|
}
|
|
2013
2016
|
});
|
|
2014
2017
|
}
|
|
2015
|
-
function
|
|
2018
|
+
function Sr(t) {
|
|
2016
2019
|
const e = t.quantifier;
|
|
2017
|
-
return !(!e || e.atLeast !== 0) || !!t.value && (B(t.value) ? vt(t.value,
|
|
2020
|
+
return !(!e || e.atLeast !== 0) || !!t.value && (B(t.value) ? vt(t.value, Sr) : Sr(t.value));
|
|
2018
2021
|
}
|
|
2019
|
-
class
|
|
2022
|
+
class Ac extends vr {
|
|
2020
2023
|
constructor(e) {
|
|
2021
2024
|
super(), this.targetCharCodes = e, this.found = !1;
|
|
2022
2025
|
}
|
|
@@ -2035,38 +2038,38 @@ class Nc extends Sr {
|
|
|
2035
2038
|
at(this.targetCharCodes, e.value) && (this.found = !0);
|
|
2036
2039
|
}
|
|
2037
2040
|
visitSet(e) {
|
|
2038
|
-
e.complement ?
|
|
2041
|
+
e.complement ? ji(e, this.targetCharCodes) === void 0 && (this.found = !0) : ji(e, this.targetCharCodes) !== void 0 && (this.found = !0);
|
|
2039
2042
|
}
|
|
2040
2043
|
}
|
|
2041
|
-
function
|
|
2044
|
+
function _r(t, e) {
|
|
2042
2045
|
if (e instanceof RegExp) {
|
|
2043
|
-
const n = In(e), r = new
|
|
2046
|
+
const n = In(e), r = new Ac(t);
|
|
2044
2047
|
return r.visit(n), r.found;
|
|
2045
2048
|
}
|
|
2046
2049
|
return Te(e, (n) => at(t, n.charCodeAt(0))) !== void 0;
|
|
2047
2050
|
}
|
|
2048
|
-
const ne = "PATTERN", Oe = "defaultMode",
|
|
2049
|
-
let
|
|
2050
|
-
const
|
|
2051
|
-
function
|
|
2051
|
+
const ne = "PATTERN", Oe = "defaultMode", Hn = "modes";
|
|
2052
|
+
let Bi = typeof new RegExp("(?:)").sticky == "boolean";
|
|
2053
|
+
const Ic = /[^\\][$]/, Nc = /[^\\[][\^]|^\^/;
|
|
2054
|
+
function $i(t) {
|
|
2052
2055
|
const e = t.ignoreCase ? "i" : "";
|
|
2053
2056
|
return new RegExp(`^(?:${t.source})`, e);
|
|
2054
2057
|
}
|
|
2055
|
-
function
|
|
2058
|
+
function Wi(t) {
|
|
2056
2059
|
const e = t.ignoreCase ? "iy" : "y";
|
|
2057
2060
|
return new RegExp(`${t.source}`, e);
|
|
2058
2061
|
}
|
|
2059
|
-
function
|
|
2062
|
+
function ds(t) {
|
|
2060
2063
|
const e = t.PATTERN;
|
|
2061
2064
|
if (Kt(e)) return !1;
|
|
2062
2065
|
if (Yt(e) || b(e, "exec")) return !0;
|
|
2063
2066
|
if (ut(e)) return !1;
|
|
2064
2067
|
throw Error("non exhaustive match");
|
|
2065
2068
|
}
|
|
2066
|
-
function
|
|
2069
|
+
function yc(t) {
|
|
2067
2070
|
return !(!ut(t) || t.length !== 1) && t.charCodeAt(0);
|
|
2068
2071
|
}
|
|
2069
|
-
const
|
|
2072
|
+
const Rc = { test: function(t) {
|
|
2070
2073
|
const e = t.length;
|
|
2071
2074
|
for (let n = this.lastIndex; n < e; n++) {
|
|
2072
2075
|
const r = t.charCodeAt(n);
|
|
@@ -2075,24 +2078,24 @@ const Oc = { test: function(t) {
|
|
|
2075
2078
|
}
|
|
2076
2079
|
return !1;
|
|
2077
2080
|
}, lastIndex: 0 };
|
|
2078
|
-
function
|
|
2081
|
+
function Gi(t, e) {
|
|
2079
2082
|
if (b(t, "LINE_BREAKS")) return !1;
|
|
2080
2083
|
if (Kt(t.PATTERN)) {
|
|
2081
2084
|
try {
|
|
2082
|
-
|
|
2085
|
+
_r(e, t.PATTERN);
|
|
2083
2086
|
} catch (n) {
|
|
2084
2087
|
return { issue: H.IDENTIFY_TERMINATOR, errMsg: n.message };
|
|
2085
2088
|
}
|
|
2086
2089
|
return !1;
|
|
2087
2090
|
}
|
|
2088
2091
|
if (ut(t.PATTERN)) return !1;
|
|
2089
|
-
if (
|
|
2092
|
+
if (ds(t)) return { issue: H.CUSTOM_LINE_BREAK };
|
|
2090
2093
|
throw Error("non exhaustive match");
|
|
2091
2094
|
}
|
|
2092
|
-
function
|
|
2095
|
+
function Ki(t) {
|
|
2093
2096
|
return k(t, (e) => ut(e) ? e.charCodeAt(0) : e);
|
|
2094
2097
|
}
|
|
2095
|
-
function
|
|
2098
|
+
function Yn(t, e, n) {
|
|
2096
2099
|
t[e] === void 0 ? t[e] = [n] : t[e].push(n);
|
|
2097
2100
|
}
|
|
2098
2101
|
const Le = 256;
|
|
@@ -2107,8 +2110,8 @@ function Pe(t, e) {
|
|
|
2107
2110
|
function yn(t, e) {
|
|
2108
2111
|
return t.tokenTypeIdx === e.tokenTypeIdx;
|
|
2109
2112
|
}
|
|
2110
|
-
let
|
|
2111
|
-
const
|
|
2113
|
+
let zi = 1;
|
|
2114
|
+
const Vi = {};
|
|
2112
2115
|
function He(t) {
|
|
2113
2116
|
const e = function(n) {
|
|
2114
2117
|
let r = et(n), i = n, o = !0;
|
|
@@ -2121,37 +2124,37 @@ function He(t) {
|
|
|
2121
2124
|
}(t);
|
|
2122
2125
|
(function(n) {
|
|
2123
2126
|
w(n, (r) => {
|
|
2124
|
-
|
|
2127
|
+
ms(r) || (Vi[zi] = r, r.tokenTypeIdx = zi++), Hi(r) && !B(r.CATEGORIES) && (r.CATEGORIES = [r.CATEGORIES]), Hi(r) || (r.CATEGORIES = []), b(r, "categoryMatches") || (r.categoryMatches = []), b(r, "categoryMatchesMap") || (r.categoryMatchesMap = {});
|
|
2125
2128
|
});
|
|
2126
2129
|
})(e), function(n) {
|
|
2127
2130
|
w(n, (r) => {
|
|
2128
|
-
|
|
2131
|
+
ps([], r);
|
|
2129
2132
|
});
|
|
2130
2133
|
}(e), function(n) {
|
|
2131
2134
|
w(n, (r) => {
|
|
2132
2135
|
r.categoryMatches = [], w(r.categoryMatchesMap, (i, o) => {
|
|
2133
|
-
r.categoryMatches.push(
|
|
2136
|
+
r.categoryMatches.push(Vi[o].tokenTypeIdx);
|
|
2134
2137
|
});
|
|
2135
2138
|
});
|
|
2136
2139
|
}(e), w(e, (n) => {
|
|
2137
2140
|
n.isParent = n.categoryMatches.length > 0;
|
|
2138
2141
|
});
|
|
2139
2142
|
}
|
|
2140
|
-
function
|
|
2143
|
+
function ps(t, e) {
|
|
2141
2144
|
w(t, (n) => {
|
|
2142
2145
|
e.categoryMatchesMap[n.tokenTypeIdx] = !0;
|
|
2143
2146
|
}), w(e.CATEGORIES, (n) => {
|
|
2144
2147
|
const r = t.concat(e);
|
|
2145
|
-
at(r, n) ||
|
|
2148
|
+
at(r, n) || ps(r, n);
|
|
2146
2149
|
});
|
|
2147
2150
|
}
|
|
2148
|
-
function
|
|
2151
|
+
function ms(t) {
|
|
2149
2152
|
return b(t, "tokenTypeIdx");
|
|
2150
2153
|
}
|
|
2151
|
-
function
|
|
2154
|
+
function Hi(t) {
|
|
2152
2155
|
return b(t, "CATEGORIES");
|
|
2153
2156
|
}
|
|
2154
|
-
function
|
|
2157
|
+
function vc(t) {
|
|
2155
2158
|
return b(t, "tokenTypeIdx");
|
|
2156
2159
|
}
|
|
2157
2160
|
var H, j;
|
|
@@ -2166,7 +2169,7 @@ class ot {
|
|
|
2166
2169
|
this.traceInitIndent++;
|
|
2167
2170
|
const s = new Array(this.traceInitIndent + 1).join(" ");
|
|
2168
2171
|
this.traceInitIndent < this.traceInitMaxIdent && console.log(`${s}--> <${i}>`);
|
|
2169
|
-
const { time: a, value: c } =
|
|
2172
|
+
const { time: a, value: c } = us(o), u = a > 10 ? console.warn : console.log;
|
|
2170
2173
|
return this.traceInitIndent < this.traceInitMaxIdent && u(`${s}<-- <${i}> time: ${a}ms`), this.traceInitIndent--, c;
|
|
2171
2174
|
}
|
|
2172
2175
|
return o();
|
|
@@ -2177,7 +2180,7 @@ a boolean 2nd argument is no longer supported`);
|
|
|
2177
2180
|
r === !0 ? (this.traceInitMaxIdent = 1 / 0, this.traceInitPerf = !0) : typeof r == "number" && (this.traceInitMaxIdent = r, this.traceInitPerf = !0), this.traceInitIndent = -1, this.TRACE_INIT("Lexer Constructor", () => {
|
|
2178
2181
|
let i, o = !0;
|
|
2179
2182
|
this.TRACE_INIT("Lexer Config handling", () => {
|
|
2180
|
-
if (this.config.lineTerminatorsPattern === xe.lineTerminatorsPattern) this.config.lineTerminatorsPattern =
|
|
2183
|
+
if (this.config.lineTerminatorsPattern === xe.lineTerminatorsPattern) this.config.lineTerminatorsPattern = Rc;
|
|
2181
2184
|
else if (this.config.lineTerminatorCharacters === xe.lineTerminatorCharacters) throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
|
|
2182
2185
|
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);
|
|
2183
2186
|
if (n.safeMode && n.ensureOptimizations) throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');
|
|
@@ -2186,9 +2189,9 @@ a boolean 2nd argument is no longer supported`);
|
|
|
2186
2189
|
this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(function(a) {
|
|
2187
2190
|
const c = [];
|
|
2188
2191
|
return b(a, Oe) || c.push({ message: "A MultiMode Lexer cannot be initialized without a <" + Oe + `> property in its definition
|
|
2189
|
-
`, type: H.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE }), b(a,
|
|
2190
|
-
`, type: H.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY }), b(a,
|
|
2191
|
-
`, type: H.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST }), b(a,
|
|
2192
|
+
`, type: H.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE }), b(a, Hn) || c.push({ message: `A MultiMode Lexer cannot be initialized without a <modes> property in its definition
|
|
2193
|
+
`, type: H.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY }), b(a, Hn) && b(a, Oe) && !b(a.modes, a.defaultMode) && c.push({ message: `A MultiMode Lexer cannot be initialized with a ${Oe}: <${a.defaultMode}>which does not exist
|
|
2194
|
+
`, type: H.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST }), b(a, Hn) && w(a.modes, (u, l) => {
|
|
2192
2195
|
w(u, (h, N) => {
|
|
2193
2196
|
Ht(h) ? c.push({ message: `A Lexer cannot be initialized using an undefined Token Type. Mode:<${l}> at index: <${N}>
|
|
2194
2197
|
`, type: H.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED }) : b(h, "LONGER_ALT") && w(B(h.LONGER_ALT) ? h.LONGER_ALT : [h.LONGER_ALT], (S) => {
|
|
@@ -2202,9 +2205,9 @@ a boolean 2nd argument is no longer supported`);
|
|
|
2202
2205
|
this.lexerDefinitionWarning = this.lexerDefinitionWarning.concat(function(a, c, u) {
|
|
2203
2206
|
const l = [];
|
|
2204
2207
|
let h = !1;
|
|
2205
|
-
const N = an($e(Rt(Q(a.modes))), (_) => _[ne] === ot.NA), S =
|
|
2208
|
+
const N = an($e(Rt(Q(a.modes))), (_) => _[ne] === ot.NA), S = Ki(u);
|
|
2206
2209
|
return c && w(N, (_) => {
|
|
2207
|
-
const m =
|
|
2210
|
+
const m = Gi(_, S);
|
|
2208
2211
|
if (m !== !1) {
|
|
2209
2212
|
const y = { message: function(p, T) {
|
|
2210
2213
|
if (T.issue === H.IDENTIFY_TERMINATOR) return `Warning: unable to identify line terminator usage in pattern.
|
|
@@ -2217,7 +2220,7 @@ a boolean 2nd argument is no longer supported`);
|
|
|
2217
2220
|
throw Error("non exhaustive match");
|
|
2218
2221
|
}(_, m), type: m.issue, tokenType: _ };
|
|
2219
2222
|
l.push(y);
|
|
2220
|
-
} else b(_, "LINE_BREAKS") ? _.LINE_BREAKS === !0 && (h = !0) :
|
|
2223
|
+
} else b(_, "LINE_BREAKS") ? _.LINE_BREAKS === !0 && (h = !0) : _r(S, _.PATTERN) && (h = !0);
|
|
2221
2224
|
}), c && !h && l.push({ message: `Warning: No LINE_BREAKS Found.
|
|
2222
2225
|
This Lexer has been defined to track line and column information,
|
|
2223
2226
|
But none of the Token Types can be identified as matching a line terminator.
|
|
@@ -2249,7 +2252,7 @@ a boolean 2nd argument is no longer supported`);
|
|
|
2249
2252
|
let y = [];
|
|
2250
2253
|
const p = gt(m, (T) => Kt(T[ne]));
|
|
2251
2254
|
return y = y.concat(function(T) {
|
|
2252
|
-
class g extends
|
|
2255
|
+
class g extends vr {
|
|
2253
2256
|
constructor() {
|
|
2254
2257
|
super(...arguments), this.found = !1;
|
|
2255
2258
|
}
|
|
@@ -2263,13 +2266,13 @@ a boolean 2nd argument is no longer supported`);
|
|
|
2263
2266
|
const f = In(v), d = new g();
|
|
2264
2267
|
return d.visit(f), d.found;
|
|
2265
2268
|
} catch {
|
|
2266
|
-
return
|
|
2269
|
+
return Ic.test(v.source);
|
|
2267
2270
|
}
|
|
2268
2271
|
}), (A) => ({ message: `Unexpected RegExp Anchor Error:
|
|
2269
2272
|
Token Type: ->` + A.name + `<- static 'PATTERN' cannot contain end of input anchor '$'
|
|
2270
2273
|
See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`, type: H.EOI_ANCHOR_FOUND, tokenTypes: [A] }));
|
|
2271
2274
|
}(p)), y = y.concat(function(T) {
|
|
2272
|
-
class g extends
|
|
2275
|
+
class g extends vr {
|
|
2273
2276
|
constructor() {
|
|
2274
2277
|
super(...arguments), this.found = !1;
|
|
2275
2278
|
}
|
|
@@ -2283,7 +2286,7 @@ a boolean 2nd argument is no longer supported`);
|
|
|
2283
2286
|
const f = In(v), d = new g();
|
|
2284
2287
|
return d.visit(f), d.found;
|
|
2285
2288
|
} catch {
|
|
2286
|
-
return
|
|
2289
|
+
return Nc.test(v.source);
|
|
2287
2290
|
}
|
|
2288
2291
|
}), (A) => ({ message: `Unexpected RegExp Anchor Error:
|
|
2289
2292
|
Token Type: ->` + A.name + `<- static 'PATTERN' cannot contain start of input anchor '^'
|
|
@@ -2336,7 +2339,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2336
2339
|
let u;
|
|
2337
2340
|
He(a), this.TRACE_INIT("analyzeTokenTypes", () => {
|
|
2338
2341
|
u = function(l, h) {
|
|
2339
|
-
const N = (h =
|
|
2342
|
+
const N = (h = Nr(h, { useSticky: Bi, debug: !1, safeMode: !1, positionTracking: "full", lineTerminatorCharacters: ["\r", `
|
|
2340
2343
|
`], tracer: (L, O) => O() })).tracer;
|
|
2341
2344
|
let S;
|
|
2342
2345
|
N("initCharCodeToOptimizedIndexMap", () => {
|
|
@@ -2355,7 +2358,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2355
2358
|
const O = L[ne];
|
|
2356
2359
|
if (Kt(O)) {
|
|
2357
2360
|
const P = O.source;
|
|
2358
|
-
return P.length !== 1 || P === "^" || P === "$" || P === "." || O.ignoreCase ? P.length !== 2 || P[0] !== "\\" || at(["d", "D", "s", "S", "t", "r", "n", "t", "0", "c", "b", "B", "f", "v", "w", "W"], P[1]) ? h.useSticky ?
|
|
2361
|
+
return P.length !== 1 || P === "^" || P === "$" || P === "." || O.ignoreCase ? P.length !== 2 || P[0] !== "\\" || at(["d", "D", "s", "S", "t", "r", "n", "t", "0", "c", "b", "B", "f", "v", "w", "W"], P[1]) ? h.useSticky ? Wi(O) : $i(O) : P[1] : P;
|
|
2359
2362
|
}
|
|
2360
2363
|
if (Yt(O)) return E = !0, { exec: O };
|
|
2361
2364
|
if (typeof O == "object") return E = !0, O;
|
|
@@ -2363,7 +2366,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2363
2366
|
if (O.length === 1) return O;
|
|
2364
2367
|
{
|
|
2365
2368
|
const P = O.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&"), x = new RegExp(P);
|
|
2366
|
-
return h.useSticky ?
|
|
2369
|
+
return h.useSticky ? Wi(x) : $i(x);
|
|
2367
2370
|
}
|
|
2368
2371
|
}
|
|
2369
2372
|
throw Error("non exhaustive match");
|
|
@@ -2378,13 +2381,13 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2378
2381
|
}
|
|
2379
2382
|
}), p = k(S, (L) => {
|
|
2380
2383
|
const O = L.LONGER_ALT;
|
|
2381
|
-
if (O) return B(O) ? k(O, (P) =>
|
|
2384
|
+
if (O) return B(O) ? k(O, (P) => wi(S, P)) : [wi(S, O)];
|
|
2382
2385
|
}), T = k(S, (L) => L.PUSH_MODE), g = k(S, (L) => b(L, "POP_MODE"));
|
|
2383
2386
|
}), N("Line Terminator Handling", () => {
|
|
2384
|
-
const L =
|
|
2385
|
-
A = k(S, (O) => !1), h.positionTracking !== "onlyOffset" && (A = k(S, (O) => b(O, "LINE_BREAKS") ? !!O.LINE_BREAKS :
|
|
2387
|
+
const L = Ki(h.lineTerminatorCharacters);
|
|
2388
|
+
A = k(S, (O) => !1), h.positionTracking !== "onlyOffset" && (A = k(S, (O) => b(O, "LINE_BREAKS") ? !!O.LINE_BREAKS : Gi(O, L) === !1 && _r(L, O.PATTERN)));
|
|
2386
2389
|
}), N("Misc Mapping #2", () => {
|
|
2387
|
-
v = k(S,
|
|
2390
|
+
v = k(S, ds), f = k(_, yc), d = dt(S, (L, O) => {
|
|
2388
2391
|
const P = O.GROUP;
|
|
2389
2392
|
return ut(P) && P !== ot.SKIPPED && (L[P] = []), L;
|
|
2390
2393
|
}, {}), I = k(_, (L, O) => ({ pattern: _[O], longerAlt: p[O], canLineTerminator: A[O], isCustom: v[O], short: f[O], group: y[O], push: T[O], pop: g[O], tokenTypeIdx: m[O], tokenType: S[O] }));
|
|
@@ -2394,24 +2397,24 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2394
2397
|
M = dt(S, (L, O, P) => {
|
|
2395
2398
|
if (typeof O.PATTERN == "string") {
|
|
2396
2399
|
const x = qt(O.PATTERN.charCodeAt(0));
|
|
2397
|
-
|
|
2400
|
+
Yn(L, x, I[P]);
|
|
2398
2401
|
} else if (B(O.START_CHARS_HINT)) {
|
|
2399
2402
|
let x;
|
|
2400
2403
|
w(O.START_CHARS_HINT, (C) => {
|
|
2401
2404
|
const $ = qt(typeof C == "string" ? C.charCodeAt(0) : C);
|
|
2402
|
-
x !== $ && (x = $,
|
|
2405
|
+
x !== $ && (x = $, Yn(L, $, I[P]));
|
|
2403
2406
|
});
|
|
2404
|
-
} else if (Kt(O.PATTERN)) if (O.PATTERN.unicode) R = !1, h.ensureOptimizations &&
|
|
2407
|
+
} else if (Kt(O.PATTERN)) if (O.PATTERN.unicode) R = !1, h.ensureOptimizations && Rr(`${Nn} Unable to analyze < ${O.PATTERN.toString()} > pattern.
|
|
2405
2408
|
The regexp unicode flag is not currently supported by the regexp-to-ast library.
|
|
2406
2409
|
This will disable the lexer's first char optimizations.
|
|
2407
2410
|
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);
|
|
2408
2411
|
else {
|
|
2409
|
-
const x =
|
|
2412
|
+
const x = Tc(O.PATTERN, h.ensureOptimizations);
|
|
2410
2413
|
K(x) && (R = !1), w(x, (C) => {
|
|
2411
|
-
|
|
2414
|
+
Yn(L, C, I[P]);
|
|
2412
2415
|
});
|
|
2413
2416
|
}
|
|
2414
|
-
else h.ensureOptimizations &&
|
|
2417
|
+
else h.ensureOptimizations && Rr(`${Nn} TokenType: <${O.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
|
|
2415
2418
|
This will disable the lexer's first char optimizations.
|
|
2416
2419
|
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`), R = !1;
|
|
2417
2420
|
return L;
|
|
@@ -2428,9 +2431,9 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2428
2431
|
` + a);
|
|
2429
2432
|
}
|
|
2430
2433
|
w(this.lexerDefinitionWarning, (a) => {
|
|
2431
|
-
|
|
2434
|
+
cs(a.message);
|
|
2432
2435
|
}), this.TRACE_INIT("Choosing sub-methods implementations", () => {
|
|
2433
|
-
if (
|
|
2436
|
+
if (Bi ? (this.chopInput = Ee, this.match = this.matchWithTest) : (this.updateLastIndex = Z, this.match = this.matchWithExec), o && (this.handleModes = Z), this.trackStartLines === !1 && (this.computeNewColumn = Ee), this.trackEndLines === !1 && (this.updateTokenEndLineColumnLocation = Z), /full/i.test(this.config.positionTracking)) this.createTokenInstance = this.createFullToken;
|
|
2434
2437
|
else if (/onlyStart/i.test(this.config.positionTracking)) this.createTokenInstance = this.createStartOnlyToken;
|
|
2435
2438
|
else {
|
|
2436
2439
|
if (!/onlyOffset/i.test(this.config.positionTracking)) throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);
|
|
@@ -2445,7 +2448,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2445
2448
|
}), this.TRACE_INIT("clearRegExpParserCache", () => {
|
|
2446
2449
|
un = {};
|
|
2447
2450
|
}), this.TRACE_INIT("toFastProperties", () => {
|
|
2448
|
-
|
|
2451
|
+
ls(this);
|
|
2449
2452
|
});
|
|
2450
2453
|
});
|
|
2451
2454
|
}
|
|
@@ -2539,8 +2542,8 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2539
2542
|
const ct = A, Bt = E, $t = R;
|
|
2540
2543
|
let Wt = te === !1;
|
|
2541
2544
|
for (; Wt === !1 && A < g; ) for (e = this.chopInput(e, 1), A++, i = 0; i < P; i++) {
|
|
2542
|
-
const ee = x[i], Dn = ee.pattern,
|
|
2543
|
-
if (
|
|
2545
|
+
const ee = x[i], Dn = ee.pattern, qr = ee.short;
|
|
2546
|
+
if (qr !== !1 ? T.charCodeAt(A) === qr && (Wt = !0) : ee.isCustom === !0 ? Wt = Dn.exec(T, A, d, M) !== null : (this.updateLastIndex(Dn, A), Wt = Dn.exec(e) !== null), Wt === !0) break;
|
|
2544
2547
|
}
|
|
2545
2548
|
if (m = A - ct, R = this.computeNewColumn(R, m), y = this.config.errorMessageProvider.buildUnexpectedCharactersMessage(T, ct, m, Bt, $t), I.push({ offset: ct, line: Bt, column: $t, length: m, message: y }), te === !1) break;
|
|
2546
2549
|
}
|
|
@@ -2595,27 +2598,27 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2595
2598
|
}
|
|
2596
2599
|
}
|
|
2597
2600
|
function we(t) {
|
|
2598
|
-
return
|
|
2601
|
+
return Es(t) ? t.LABEL : t.name;
|
|
2599
2602
|
}
|
|
2600
|
-
function
|
|
2603
|
+
function Es(t) {
|
|
2601
2604
|
return ut(t.LABEL) && t.LABEL !== "";
|
|
2602
2605
|
}
|
|
2603
2606
|
ot.SKIPPED = "This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.", ot.NA = /NOT_APPLICABLE/;
|
|
2604
|
-
const
|
|
2607
|
+
const Yi = "categories", Xi = "label", qi = "group", Zi = "push_mode", Qi = "pop_mode", Ji = "longer_alt", to = "line_breaks", eo = "start_chars_hint";
|
|
2605
2608
|
function F(t) {
|
|
2606
2609
|
return function(e) {
|
|
2607
2610
|
const n = e.pattern, r = {};
|
|
2608
2611
|
if (r.name = e.name, Ht(n) || (r.PATTERN = n), b(e, "parent")) throw `The parent property is no longer supported.
|
|
2609
2612
|
See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;
|
|
2610
|
-
return b(e,
|
|
2613
|
+
return b(e, Yi) && (r.CATEGORIES = e[Yi]), He([r]), b(e, Xi) && (r.LABEL = e[Xi]), b(e, qi) && (r.GROUP = e[qi]), b(e, Qi) && (r.POP_MODE = e[Qi]), b(e, Zi) && (r.PUSH_MODE = e[Zi]), b(e, Ji) && (r.LONGER_ALT = e[Ji]), b(e, to) && (r.LINE_BREAKS = e[to]), b(e, eo) && (r.START_CHARS_HINT = e[eo]), r;
|
|
2611
2614
|
}(t);
|
|
2612
2615
|
}
|
|
2613
2616
|
const ie = F({ name: "EOF", pattern: ot.NA });
|
|
2614
|
-
function
|
|
2617
|
+
function Yr(t, e, n, r, i, o, s, a) {
|
|
2615
2618
|
return { image: e, startOffset: n, endOffset: r, startLine: i, endLine: o, startColumn: s, endColumn: a, tokenTypeIdx: t.tokenTypeIdx, tokenType: t };
|
|
2616
2619
|
}
|
|
2617
2620
|
He([ie]);
|
|
2618
|
-
const
|
|
2621
|
+
const gs = { buildMismatchTokenMessage: ({ expected: t, actual: e, previous: n, ruleName: r }) => `Expecting ${Es(t) ? `--> ${we(t)} <--` : `token of type --> ${t.name} <--`} but found --> '${e.image}' <--`, buildNotAllInputParsedMessage: ({ firstRedundant: t, ruleName: e }) => "Redundant input, expecting EOF but found: " + t.image, buildNoViableAltMessage({ expectedPathsPerAlt: t, actual: e, previous: n, customUserDescription: r, ruleName: i }) {
|
|
2619
2622
|
const o = "Expecting: ", s = `
|
|
2620
2623
|
but found: '` + St(e).image + "'";
|
|
2621
2624
|
if (r) return o + r + s;
|
|
@@ -2631,8 +2634,8 @@ but found: '` + St(e).image + "'";
|
|
|
2631
2634
|
return n ? i + n + o : i + `expecting at least one iteration which starts with one of these possible Token sequences::
|
|
2632
2635
|
<${k(t, (s) => `[${k(s, (a) => we(a)).join(",")}]`).join(" ,")}>` + o;
|
|
2633
2636
|
} };
|
|
2634
|
-
Object.freeze(
|
|
2635
|
-
const
|
|
2637
|
+
Object.freeze(gs);
|
|
2638
|
+
const Oc = { buildRuleNotFoundError: (t, e) => "Invalid grammar, reference to a rule which is not defined: ->" + e.nonTerminalName + `<-
|
|
2636
2639
|
inside top level rule: ->` + t.name + "<-" }, oe = { buildDuplicateFoundError(t, e) {
|
|
2637
2640
|
const n = t.name, r = St(e), i = r.idx, o = kt(r), s = (a = r) instanceof V ? a.terminalType.name : a instanceof mt ? a.nonTerminalName : "";
|
|
2638
2641
|
var a;
|
|
@@ -2679,7 +2682,7 @@ see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`;
|
|
|
2679
2682
|
let e;
|
|
2680
2683
|
return e = t.topLevelRule instanceof Ae ? t.topLevelRule.name : t.topLevelRule, `Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`;
|
|
2681
2684
|
} };
|
|
2682
|
-
class
|
|
2685
|
+
class Sc extends Ie {
|
|
2683
2686
|
constructor(e, n) {
|
|
2684
2687
|
super(), this.nameToTopRule = e, this.errMsgProvider = n, this.errors = [];
|
|
2685
2688
|
}
|
|
@@ -2697,7 +2700,7 @@ class Lc extends Ie {
|
|
|
2697
2700
|
}
|
|
2698
2701
|
}
|
|
2699
2702
|
}
|
|
2700
|
-
class
|
|
2703
|
+
class _c extends Pn {
|
|
2701
2704
|
constructor(e, n) {
|
|
2702
2705
|
super(), this.topProd = e, this.path = n, this.possibleTokTypes = [], this.nextProductionName = "", this.nextProductionOccurrence = 0, this.found = !1, this.isAtEndOfPath = !1;
|
|
2703
2706
|
}
|
|
@@ -2718,7 +2721,7 @@ class xc extends Pn {
|
|
|
2718
2721
|
K(this.ruleStack) ? (this.nextProductionName = "", this.nextProductionOccurrence = 0, this.isAtEndOfPath = !0) : (this.nextProductionName = this.ruleStack.pop(), this.nextProductionOccurrence = this.occurrenceStack.pop());
|
|
2719
2722
|
}
|
|
2720
2723
|
}
|
|
2721
|
-
class
|
|
2724
|
+
class Lc extends _c {
|
|
2722
2725
|
constructor(e, n) {
|
|
2723
2726
|
super(e, n), this.path = n, this.nextTerminalName = "", this.nextTerminalOccurrence = 0, this.nextTerminalName = this.path.lastTok.name, this.nextTerminalOccurrence = this.path.lastTokOccurrence;
|
|
2724
2727
|
}
|
|
@@ -2737,7 +2740,7 @@ class wn extends Pn {
|
|
|
2737
2740
|
return this.walk(this.topRule), this.result;
|
|
2738
2741
|
}
|
|
2739
2742
|
}
|
|
2740
|
-
class
|
|
2743
|
+
class xc extends wn {
|
|
2741
2744
|
walkMany(e, n, r) {
|
|
2742
2745
|
if (e.idx === this.occurrence) {
|
|
2743
2746
|
const i = St(n.concat(r));
|
|
@@ -2745,7 +2748,7 @@ class kc extends wn {
|
|
|
2745
2748
|
} else super.walkMany(e, n, r);
|
|
2746
2749
|
}
|
|
2747
2750
|
}
|
|
2748
|
-
class
|
|
2751
|
+
class no extends wn {
|
|
2749
2752
|
walkManySep(e, n, r) {
|
|
2750
2753
|
if (e.idx === this.occurrence) {
|
|
2751
2754
|
const i = St(n.concat(r));
|
|
@@ -2753,7 +2756,7 @@ class io extends wn {
|
|
|
2753
2756
|
} else super.walkManySep(e, n, r);
|
|
2754
2757
|
}
|
|
2755
2758
|
}
|
|
2756
|
-
class
|
|
2759
|
+
class Cc extends wn {
|
|
2757
2760
|
walkAtLeastOne(e, n, r) {
|
|
2758
2761
|
if (e.idx === this.occurrence) {
|
|
2759
2762
|
const i = St(n.concat(r));
|
|
@@ -2761,7 +2764,7 @@ class bc extends wn {
|
|
|
2761
2764
|
} else super.walkAtLeastOne(e, n, r);
|
|
2762
2765
|
}
|
|
2763
2766
|
}
|
|
2764
|
-
class
|
|
2767
|
+
class ro extends wn {
|
|
2765
2768
|
walkAtLeastOneSep(e, n, r) {
|
|
2766
2769
|
if (e.idx === this.occurrence) {
|
|
2767
2770
|
const i = St(n.concat(r));
|
|
@@ -2769,11 +2772,11 @@ class oo extends wn {
|
|
|
2769
2772
|
} else super.walkAtLeastOneSep(e, n, r);
|
|
2770
2773
|
}
|
|
2771
2774
|
}
|
|
2772
|
-
function
|
|
2775
|
+
function Lr(t, e, n = []) {
|
|
2773
2776
|
n = et(n);
|
|
2774
2777
|
let r = [], i = 0;
|
|
2775
2778
|
function o(s) {
|
|
2776
|
-
const a =
|
|
2779
|
+
const a = Lr(s.concat(tt(t, i + 1)), e, n);
|
|
2777
2780
|
return r.concat(a);
|
|
2778
2781
|
}
|
|
2779
2782
|
for (; n.length < e && i < t.length; ) {
|
|
@@ -2801,7 +2804,7 @@ function Cr(t, e, n = []) {
|
|
|
2801
2804
|
}
|
|
2802
2805
|
return r.push({ partialPath: n, suffixDef: tt(t, i) }), r;
|
|
2803
2806
|
}
|
|
2804
|
-
function
|
|
2807
|
+
function Ts(t, e, n, r) {
|
|
2805
2808
|
const i = "EXIT_NONE_TERMINAL", o = [i], s = "EXIT_ALTERNATIVE";
|
|
2806
2809
|
let a = !1;
|
|
2807
2810
|
const c = e.length, u = c - r - 1, l = [], h = [];
|
|
@@ -2862,19 +2865,19 @@ function Is(t, e, n, r) {
|
|
|
2862
2865
|
else if (p instanceof ht) h.push({ idx: _, def: p.definition.concat(tt(S)), ruleStack: m, occurrenceStack: y });
|
|
2863
2866
|
else {
|
|
2864
2867
|
if (!(p instanceof Ae)) throw Error("non exhaustive match");
|
|
2865
|
-
h.push(
|
|
2868
|
+
h.push(kc(p, _, m, y));
|
|
2866
2869
|
}
|
|
2867
2870
|
}
|
|
2868
2871
|
return l;
|
|
2869
2872
|
}
|
|
2870
|
-
function
|
|
2873
|
+
function kc(t, e, n, r) {
|
|
2871
2874
|
const i = et(n);
|
|
2872
2875
|
i.push(t.name);
|
|
2873
2876
|
const o = et(r);
|
|
2874
2877
|
return o.push(1), { idx: e, def: t.definition, ruleStack: i, occurrenceStack: o };
|
|
2875
2878
|
}
|
|
2876
2879
|
var Y;
|
|
2877
|
-
function
|
|
2880
|
+
function io(t) {
|
|
2878
2881
|
if (t instanceof lt || t === "Option") return Y.OPTION;
|
|
2879
2882
|
if (t instanceof J || t === "Repetition") return Y.REPETITION;
|
|
2880
2883
|
if (t instanceof Ft || t === "RepetitionMandatory") return Y.REPETITION_MANDATORY;
|
|
@@ -2883,7 +2886,7 @@ function so(t) {
|
|
|
2883
2886
|
if (t instanceof xt || t === "Alternation") return Y.ALTERNATION;
|
|
2884
2887
|
throw Error("non exhaustive match");
|
|
2885
2888
|
}
|
|
2886
|
-
function
|
|
2889
|
+
function bc(t, e, n, r) {
|
|
2887
2890
|
const i = t.length, o = vt(t, (s) => vt(s, (a) => a.length === 1));
|
|
2888
2891
|
if (e) return function(s) {
|
|
2889
2892
|
const a = k(s, (c) => c.GATE);
|
|
@@ -2924,7 +2927,7 @@ function wc(t, e, n, r) {
|
|
|
2924
2927
|
}
|
|
2925
2928
|
};
|
|
2926
2929
|
}
|
|
2927
|
-
function
|
|
2930
|
+
function Pc(t, e, n) {
|
|
2928
2931
|
const r = vt(t, (o) => o.length === 1), i = t.length;
|
|
2929
2932
|
if (r && !n) {
|
|
2930
2933
|
const o = Rt(t);
|
|
@@ -2959,7 +2962,7 @@ function Mc(t, e, n) {
|
|
|
2959
2962
|
(function(t) {
|
|
2960
2963
|
t[t.OPTION = 0] = "OPTION", t[t.REPETITION = 1] = "REPETITION", t[t.REPETITION_MANDATORY = 2] = "REPETITION_MANDATORY", t[t.REPETITION_MANDATORY_WITH_SEPARATOR = 3] = "REPETITION_MANDATORY_WITH_SEPARATOR", t[t.REPETITION_WITH_SEPARATOR = 4] = "REPETITION_WITH_SEPARATOR", t[t.ALTERNATION = 5] = "ALTERNATION";
|
|
2961
2964
|
})(Y || (Y = {}));
|
|
2962
|
-
class
|
|
2965
|
+
class wc extends Pn {
|
|
2963
2966
|
constructor(e, n, r) {
|
|
2964
2967
|
super(), this.topProd = e, this.targetOccurrence = n, this.targetProdType = r;
|
|
2965
2968
|
}
|
|
@@ -2985,7 +2988,7 @@ class Uc extends Pn {
|
|
|
2985
2988
|
this.checkIsTarget(e, Y.REPETITION_WITH_SEPARATOR, n, r) || super.walkOption(e, n, r);
|
|
2986
2989
|
}
|
|
2987
2990
|
}
|
|
2988
|
-
class
|
|
2991
|
+
class As extends Ie {
|
|
2989
2992
|
constructor(e, n, r) {
|
|
2990
2993
|
super(), this.targetOccurrence = e, this.targetProdType = n, this.targetRef = r, this.result = [];
|
|
2991
2994
|
}
|
|
@@ -3011,12 +3014,12 @@ class Ns extends Ie {
|
|
|
3011
3014
|
this.checkIsTarget(e, Y.ALTERNATION);
|
|
3012
3015
|
}
|
|
3013
3016
|
}
|
|
3014
|
-
function
|
|
3017
|
+
function oo(t) {
|
|
3015
3018
|
const e = new Array(t);
|
|
3016
3019
|
for (let n = 0; n < t; n++) e[n] = [];
|
|
3017
3020
|
return e;
|
|
3018
3021
|
}
|
|
3019
|
-
function
|
|
3022
|
+
function Xn(t) {
|
|
3020
3023
|
let e = [""];
|
|
3021
3024
|
for (let n = 0; n < t.length; n++) {
|
|
3022
3025
|
const r = t[n], i = [];
|
|
@@ -3032,7 +3035,7 @@ function Zn(t) {
|
|
|
3032
3035
|
}
|
|
3033
3036
|
return e;
|
|
3034
3037
|
}
|
|
3035
|
-
function
|
|
3038
|
+
function Mc(t, e, n) {
|
|
3036
3039
|
for (let r = 0; r < t.length; r++) {
|
|
3037
3040
|
if (r === n) continue;
|
|
3038
3041
|
const i = t[r];
|
|
@@ -3040,11 +3043,11 @@ function Fc(t, e, n) {
|
|
|
3040
3043
|
}
|
|
3041
3044
|
return !0;
|
|
3042
3045
|
}
|
|
3043
|
-
function
|
|
3044
|
-
const n = k(t, (s) =>
|
|
3046
|
+
function Is(t, e) {
|
|
3047
|
+
const n = k(t, (s) => Lr([s], 1)), r = oo(n.length), i = k(n, (s) => {
|
|
3045
3048
|
const a = {};
|
|
3046
3049
|
return w(s, (c) => {
|
|
3047
|
-
w(
|
|
3050
|
+
w(Xn(c.partialPath), (u) => {
|
|
3048
3051
|
a[u] = !0;
|
|
3049
3052
|
});
|
|
3050
3053
|
}), a;
|
|
@@ -3052,14 +3055,14 @@ function ys(t, e) {
|
|
|
3052
3055
|
let o = n;
|
|
3053
3056
|
for (let s = 1; s <= e; s++) {
|
|
3054
3057
|
const a = o;
|
|
3055
|
-
o =
|
|
3058
|
+
o = oo(a.length);
|
|
3056
3059
|
for (let c = 0; c < a.length; c++) {
|
|
3057
3060
|
const u = a[c];
|
|
3058
3061
|
for (let l = 0; l < u.length; l++) {
|
|
3059
|
-
const h = u[l].partialPath, N = u[l].suffixDef, S =
|
|
3060
|
-
if (
|
|
3062
|
+
const h = u[l].partialPath, N = u[l].suffixDef, S = Xn(h);
|
|
3063
|
+
if (Mc(i, S, c) || K(N) || h.length === e) {
|
|
3061
3064
|
const _ = r[c];
|
|
3062
|
-
if (
|
|
3065
|
+
if (kr(_, h) === !1) {
|
|
3063
3066
|
_.push(h);
|
|
3064
3067
|
for (let m = 0; m < S.length; m++) {
|
|
3065
3068
|
const y = S[m];
|
|
@@ -3067,9 +3070,9 @@ function ys(t, e) {
|
|
|
3067
3070
|
}
|
|
3068
3071
|
}
|
|
3069
3072
|
} else {
|
|
3070
|
-
const _ =
|
|
3073
|
+
const _ = Lr(N, s + 1, h);
|
|
3071
3074
|
o[c] = o[c].concat(_), w(_, (m) => {
|
|
3072
|
-
w(
|
|
3075
|
+
w(Xn(m.partialPath), (y) => {
|
|
3073
3076
|
i[c][y] = !0;
|
|
3074
3077
|
});
|
|
3075
3078
|
});
|
|
@@ -3079,17 +3082,17 @@ function ys(t, e) {
|
|
|
3079
3082
|
}
|
|
3080
3083
|
return r;
|
|
3081
3084
|
}
|
|
3082
|
-
function
|
|
3083
|
-
const i = new
|
|
3084
|
-
return e.accept(i),
|
|
3085
|
+
function xr(t, e, n, r) {
|
|
3086
|
+
const i = new As(t, Y.ALTERNATION, r);
|
|
3087
|
+
return e.accept(i), Is(i.result, n);
|
|
3085
3088
|
}
|
|
3086
|
-
function
|
|
3087
|
-
const i = new
|
|
3089
|
+
function Cr(t, e, n, r) {
|
|
3090
|
+
const i = new As(t, n);
|
|
3088
3091
|
e.accept(i);
|
|
3089
|
-
const o = i.result, s = new
|
|
3090
|
-
return
|
|
3092
|
+
const o = i.result, s = new wc(e, t, n).startWalking();
|
|
3093
|
+
return Is([new ht({ definition: o }), new ht({ definition: s })], r);
|
|
3091
3094
|
}
|
|
3092
|
-
function
|
|
3095
|
+
function kr(t, e) {
|
|
3093
3096
|
t: for (let n = 0; n < t.length; n++) {
|
|
3094
3097
|
const r = t[n];
|
|
3095
3098
|
if (r.length === e.length) {
|
|
@@ -3102,16 +3105,16 @@ function Pr(t, e) {
|
|
|
3102
3105
|
}
|
|
3103
3106
|
return !1;
|
|
3104
3107
|
}
|
|
3105
|
-
function
|
|
3108
|
+
function so(t) {
|
|
3106
3109
|
return vt(t, (e) => vt(e, (n) => vt(n, (r) => K(r.categoryMatches))));
|
|
3107
3110
|
}
|
|
3108
|
-
function
|
|
3109
|
-
return `${kt(t)}_#_${t.idx}_#_${
|
|
3111
|
+
function Uc(t) {
|
|
3112
|
+
return `${kt(t)}_#_${t.idx}_#_${Ns(t)}`;
|
|
3110
3113
|
}
|
|
3111
|
-
function
|
|
3114
|
+
function Ns(t) {
|
|
3112
3115
|
return t instanceof V ? t.terminalType.name : t instanceof mt ? t.nonTerminalName : "";
|
|
3113
3116
|
}
|
|
3114
|
-
class
|
|
3117
|
+
class Fc extends Ie {
|
|
3115
3118
|
constructor() {
|
|
3116
3119
|
super(...arguments), this.allProductions = [];
|
|
3117
3120
|
}
|
|
@@ -3140,7 +3143,7 @@ class jc extends Ie {
|
|
|
3140
3143
|
this.allProductions.push(e);
|
|
3141
3144
|
}
|
|
3142
3145
|
}
|
|
3143
|
-
function
|
|
3146
|
+
function ys(t, e, n, r = []) {
|
|
3144
3147
|
const i = [], o = hn(e.definition);
|
|
3145
3148
|
if (K(o)) return [];
|
|
3146
3149
|
{
|
|
@@ -3148,7 +3151,7 @@ function vs(t, e, n, r = []) {
|
|
|
3148
3151
|
at(o, t) && i.push({ message: n.buildLeftRecursionError({ topLevelRule: t, leftRecursionPath: r }), type: st.LEFT_RECURSION, ruleName: s });
|
|
3149
3152
|
const a = Tt(En(o, r.concat([t])), (c) => {
|
|
3150
3153
|
const u = et(r);
|
|
3151
|
-
return u.push(c),
|
|
3154
|
+
return u.push(c), ys(t, c, n, u);
|
|
3152
3155
|
});
|
|
3153
3156
|
return i.concat(a);
|
|
3154
3157
|
}
|
|
@@ -3168,7 +3171,7 @@ function hn(t) {
|
|
|
3168
3171
|
}
|
|
3169
3172
|
return e;
|
|
3170
3173
|
}
|
|
3171
|
-
class
|
|
3174
|
+
class br extends Ie {
|
|
3172
3175
|
constructor() {
|
|
3173
3176
|
super(...arguments), this.alternations = [];
|
|
3174
3177
|
}
|
|
@@ -3176,7 +3179,7 @@ class wr extends Ie {
|
|
|
3176
3179
|
this.alternations.push(e);
|
|
3177
3180
|
}
|
|
3178
3181
|
}
|
|
3179
|
-
class
|
|
3182
|
+
class Dc extends Ie {
|
|
3180
3183
|
constructor() {
|
|
3181
3184
|
super(...arguments), this.allProductions = [];
|
|
3182
3185
|
}
|
|
@@ -3193,43 +3196,43 @@ class Bc extends Ie {
|
|
|
3193
3196
|
this.allProductions.push(e);
|
|
3194
3197
|
}
|
|
3195
3198
|
}
|
|
3196
|
-
const
|
|
3199
|
+
const Rs = "MismatchedTokenException", vs = "NoViableAltException", Os = "EarlyExitException", Ss = "NotAllInputParsedException", _s = [Rs, vs, Os, Ss];
|
|
3197
3200
|
function en(t) {
|
|
3198
|
-
return at(
|
|
3201
|
+
return at(_s, t.name);
|
|
3199
3202
|
}
|
|
3200
|
-
Object.freeze(
|
|
3203
|
+
Object.freeze(_s);
|
|
3201
3204
|
class Mn extends Error {
|
|
3202
3205
|
constructor(e, n) {
|
|
3203
3206
|
super(e), this.token = n, this.resyncedTokens = [], Object.setPrototypeOf(this, new.target.prototype), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
3204
3207
|
}
|
|
3205
3208
|
}
|
|
3206
|
-
class
|
|
3209
|
+
class ao extends Mn {
|
|
3207
3210
|
constructor(e, n, r) {
|
|
3208
|
-
super(e, n), this.previousToken = r, this.name =
|
|
3211
|
+
super(e, n), this.previousToken = r, this.name = Rs;
|
|
3209
3212
|
}
|
|
3210
3213
|
}
|
|
3211
|
-
class
|
|
3214
|
+
class jc extends Mn {
|
|
3212
3215
|
constructor(e, n, r) {
|
|
3213
|
-
super(e, n), this.previousToken = r, this.name =
|
|
3216
|
+
super(e, n), this.previousToken = r, this.name = vs;
|
|
3214
3217
|
}
|
|
3215
3218
|
}
|
|
3216
|
-
class
|
|
3219
|
+
class Bc extends Mn {
|
|
3217
3220
|
constructor(e, n) {
|
|
3218
|
-
super(e, n), this.name =
|
|
3221
|
+
super(e, n), this.name = Ss;
|
|
3219
3222
|
}
|
|
3220
3223
|
}
|
|
3221
|
-
class
|
|
3224
|
+
class $c extends Mn {
|
|
3222
3225
|
constructor(e, n, r) {
|
|
3223
|
-
super(e, n), this.previousToken = r, this.name =
|
|
3226
|
+
super(e, n), this.previousToken = r, this.name = Os;
|
|
3224
3227
|
}
|
|
3225
3228
|
}
|
|
3226
|
-
const
|
|
3227
|
-
class
|
|
3229
|
+
const qn = {}, Ls = "InRuleRecoveryException";
|
|
3230
|
+
class Wc extends Error {
|
|
3228
3231
|
constructor(e) {
|
|
3229
|
-
super(e), this.name =
|
|
3232
|
+
super(e), this.name = Ls;
|
|
3230
3233
|
}
|
|
3231
3234
|
}
|
|
3232
|
-
function
|
|
3235
|
+
function Gc(t, e, n, r, i, o, s) {
|
|
3233
3236
|
const a = this.getKeyForAutomaticLookahead(r, i);
|
|
3234
3237
|
let c = this.firstAfterRepMap[a];
|
|
3235
3238
|
if (c === void 0) {
|
|
@@ -3240,11 +3243,11 @@ function zc(t, e, n, r, i, o, s) {
|
|
|
3240
3243
|
const h = c.isEndOfRule;
|
|
3241
3244
|
this.RULE_STACK.length === 1 && h && u === void 0 && (u = ie, l = 1), u !== void 0 && l !== void 0 && this.shouldInRepetitionRecoveryBeTried(u, l, s) && this.tryInRepetitionRecovery(t, e, n, u);
|
|
3242
3245
|
}
|
|
3243
|
-
const
|
|
3244
|
-
function
|
|
3246
|
+
const Zn = 1024, Qn = 1280, nn = 1536;
|
|
3247
|
+
function Jn(t, e, n) {
|
|
3245
3248
|
return n | e | t;
|
|
3246
3249
|
}
|
|
3247
|
-
class
|
|
3250
|
+
class Kc {
|
|
3248
3251
|
constructor(e) {
|
|
3249
3252
|
var n;
|
|
3250
3253
|
this.maxLookahead = (n = e?.maxLookahead) !== null && n !== void 0 ? n : zt.maxLookahead;
|
|
@@ -3258,27 +3261,27 @@ class Vc {
|
|
|
3258
3261
|
return n;
|
|
3259
3262
|
}
|
|
3260
3263
|
validateNoLeftRecursion(e) {
|
|
3261
|
-
return Tt(e, (n) =>
|
|
3264
|
+
return Tt(e, (n) => ys(n, n, oe));
|
|
3262
3265
|
}
|
|
3263
3266
|
validateEmptyOrAlternatives(e) {
|
|
3264
3267
|
return Tt(e, (n) => function(r, i) {
|
|
3265
|
-
const o = new
|
|
3266
|
-
return r.accept(o), Tt(o.alternations, (s) => Tt(We(s.definition), (a, c) => K(
|
|
3268
|
+
const o = new br();
|
|
3269
|
+
return r.accept(o), Tt(o.alternations, (s) => Tt(We(s.definition), (a, c) => K(Ts([a], [], Pe, 1)) ? [{ message: i.buildEmptyAlternationError({ topLevelRule: r, alternation: s, emptyChoiceIdx: c }), type: st.NONE_LAST_EMPTY_ALT, ruleName: r.name, occurrence: s.idx, alternative: c + 1 }] : []));
|
|
3267
3270
|
}(n, oe));
|
|
3268
3271
|
}
|
|
3269
3272
|
validateAmbiguousAlternationAlternatives(e, n) {
|
|
3270
3273
|
return Tt(e, (r) => function(i, o, s) {
|
|
3271
|
-
const a = new
|
|
3274
|
+
const a = new br();
|
|
3272
3275
|
i.accept(a);
|
|
3273
3276
|
let c = a.alternations;
|
|
3274
3277
|
return c = an(c, (u) => u.ignoreAmbiguities === !0), Tt(c, (u) => {
|
|
3275
|
-
const l = u.idx, h = u.maxLookahead || o, N =
|
|
3278
|
+
const l = u.idx, h = u.maxLookahead || o, N = xr(l, i, h, u), S = function(m, y, p, T) {
|
|
3276
3279
|
const g = [];
|
|
3277
3280
|
return k(dt(m, (A, v, f) => (y.definition[f].ignoreAmbiguities === !0 || w(v, (d) => {
|
|
3278
3281
|
const I = [f];
|
|
3279
3282
|
w(m, (E, R) => {
|
|
3280
|
-
f !== R &&
|
|
3281
|
-
}), I.length > 1 && !
|
|
3283
|
+
f !== R && kr(E, d) && y.definition[R].ignoreAmbiguities !== !0 && I.push(R);
|
|
3284
|
+
}), I.length > 1 && !kr(g, d) && (g.push(d), A.push({ alts: I, path: d }));
|
|
3282
3285
|
}), A), []), (A) => {
|
|
3283
3286
|
const v = k(A.alts, (f) => f + 1);
|
|
3284
3287
|
return { message: T.buildAlternationAmbiguityError({ topLevelRule: p, alternation: y, ambiguityIndices: v, prefixPath: A.path }), type: st.AMBIGUOUS_ALTS, ruleName: p.name, occurrence: y.idx, alternatives: A.alts };
|
|
@@ -3311,10 +3314,10 @@ class Vc {
|
|
|
3311
3314
|
return function(r, i, o) {
|
|
3312
3315
|
const s = [];
|
|
3313
3316
|
return w(r, (a) => {
|
|
3314
|
-
const c = new
|
|
3317
|
+
const c = new Dc();
|
|
3315
3318
|
a.accept(c), w(c.allProductions, (u) => {
|
|
3316
|
-
const l =
|
|
3317
|
-
if (K(Rt(
|
|
3319
|
+
const l = io(u), h = u.maxLookahead || i;
|
|
3320
|
+
if (K(Rt(Cr(u.idx, a, l, h)[0]))) {
|
|
3318
3321
|
const N = o.buildEmptyRepetitionError({ topLevelRule: a, repetition: u });
|
|
3319
3322
|
s.push({ message: N, type: st.NO_NON_EMPTY_LOOKAHEAD, ruleName: a.name });
|
|
3320
3323
|
}
|
|
@@ -3324,15 +3327,15 @@ class Vc {
|
|
|
3324
3327
|
}
|
|
3325
3328
|
buildLookaheadForAlternation(e) {
|
|
3326
3329
|
return function(n, r, i, o, s, a) {
|
|
3327
|
-
const c =
|
|
3328
|
-
return a(c, o,
|
|
3329
|
-
}(e.prodOccurrence, e.rule, e.maxLookahead, e.hasPredicates, e.dynamicTokensEnabled,
|
|
3330
|
+
const c = xr(n, r, i);
|
|
3331
|
+
return a(c, o, so(c) ? yn : Pe, s);
|
|
3332
|
+
}(e.prodOccurrence, e.rule, e.maxLookahead, e.hasPredicates, e.dynamicTokensEnabled, bc);
|
|
3330
3333
|
}
|
|
3331
3334
|
buildLookaheadForOptional(e) {
|
|
3332
3335
|
return function(n, r, i, o, s, a) {
|
|
3333
|
-
const c =
|
|
3336
|
+
const c = Cr(n, r, s, i), u = so(c) ? yn : Pe;
|
|
3334
3337
|
return a(c[0], u, o);
|
|
3335
|
-
}(e.prodOccurrence, e.rule, e.maxLookahead, e.dynamicTokensEnabled,
|
|
3338
|
+
}(e.prodOccurrence, e.rule, e.maxLookahead, e.dynamicTokensEnabled, io(e.prodType), Pc);
|
|
3336
3339
|
}
|
|
3337
3340
|
}
|
|
3338
3341
|
const rn = new class extends Ie {
|
|
@@ -3361,16 +3364,16 @@ const rn = new class extends Ie {
|
|
|
3361
3364
|
this.dslMethods.alternation.push(t);
|
|
3362
3365
|
}
|
|
3363
3366
|
}();
|
|
3364
|
-
function
|
|
3367
|
+
function co(t, e) {
|
|
3365
3368
|
isNaN(t.startOffset) === !0 ? (t.startOffset = e.startOffset, t.endOffset = e.endOffset) : t.endOffset < e.endOffset && (t.endOffset = e.endOffset);
|
|
3366
3369
|
}
|
|
3367
|
-
function
|
|
3370
|
+
function uo(t, e) {
|
|
3368
3371
|
isNaN(t.startOffset) === !0 ? (t.startOffset = e.startOffset, t.startColumn = e.startColumn, t.startLine = e.startLine, t.endOffset = e.endOffset, t.endColumn = e.endColumn, t.endLine = e.endLine) : t.endOffset < e.endOffset && (t.endOffset = e.endOffset, t.endColumn = e.endColumn, t.endLine = e.endLine);
|
|
3369
3372
|
}
|
|
3370
|
-
function
|
|
3373
|
+
function lo(t, e) {
|
|
3371
3374
|
Object.defineProperty(t, "name", { enumerable: !1, configurable: !0, writable: !1, value: e });
|
|
3372
3375
|
}
|
|
3373
|
-
function
|
|
3376
|
+
function zc(t, e) {
|
|
3374
3377
|
const n = yt(t), r = n.length;
|
|
3375
3378
|
for (let i = 0; i < r; i++) {
|
|
3376
3379
|
const o = t[n[i]], s = o.length;
|
|
@@ -3380,49 +3383,49 @@ function Hc(t, e) {
|
|
|
3380
3383
|
}
|
|
3381
3384
|
}
|
|
3382
3385
|
}
|
|
3383
|
-
var
|
|
3386
|
+
var Pr;
|
|
3384
3387
|
(function(t) {
|
|
3385
3388
|
t[t.REDUNDANT_METHOD = 0] = "REDUNDANT_METHOD", t[t.MISSING_METHOD = 1] = "MISSING_METHOD";
|
|
3386
|
-
})(
|
|
3389
|
+
})(Pr || (Pr = {}));
|
|
3387
3390
|
const Un = { description: "This Object indicates the Parser is during Recording Phase" };
|
|
3388
3391
|
Object.freeze(Un);
|
|
3389
|
-
const
|
|
3390
|
-
He([
|
|
3391
|
-
const
|
|
3392
|
+
const ho = !0, fo = Math.pow(2, 8) - 1, xs = F({ name: "RECORDING_PHASE_TOKEN", pattern: ot.NA });
|
|
3393
|
+
He([xs]);
|
|
3394
|
+
const Cs = Yr(xs, `This IToken indicates the Parser is in Recording Phase
|
|
3392
3395
|
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, -1, -1, -1, -1, -1, -1);
|
|
3393
|
-
Object.freeze(
|
|
3394
|
-
const
|
|
3396
|
+
Object.freeze(Cs);
|
|
3397
|
+
const Vc = { name: `This CSTNode indicates the Parser is in Recording Phase
|
|
3395
3398
|
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, children: {} };
|
|
3396
3399
|
function Se(t, e, n, r = !1) {
|
|
3397
3400
|
Rn(n);
|
|
3398
3401
|
const i = ge(this.recordingProdStack), o = Yt(e) ? e : e.DEF, s = new t({ definition: [], idx: n });
|
|
3399
3402
|
return r && (s.separator = e.SEP), b(e, "MAX_LOOKAHEAD") && (s.maxLookahead = e.MAX_LOOKAHEAD), this.recordingProdStack.push(s), o.call(this), i.definition.push(s), this.recordingProdStack.pop(), Un;
|
|
3400
3403
|
}
|
|
3401
|
-
function
|
|
3404
|
+
function Hc(t, e) {
|
|
3402
3405
|
Rn(e);
|
|
3403
3406
|
const n = ge(this.recordingProdStack), r = B(t) === !1, i = r === !1 ? t : t.DEF, o = new xt({ definition: [], idx: e, ignoreAmbiguities: r && t.IGNORE_AMBIGUITIES === !0 });
|
|
3404
3407
|
b(t, "MAX_LOOKAHEAD") && (o.maxLookahead = t.MAX_LOOKAHEAD);
|
|
3405
|
-
const s =
|
|
3408
|
+
const s = as(i, (a) => Yt(a.GATE));
|
|
3406
3409
|
return o.hasPredicates = s, n.definition.push(o), w(i, (a) => {
|
|
3407
3410
|
const c = new ht({ definition: [] });
|
|
3408
3411
|
o.definition.push(c), b(a, "IGNORE_AMBIGUITIES") ? c.ignoreAmbiguities = a.IGNORE_AMBIGUITIES : b(a, "GATE") && (c.ignoreAmbiguities = !0), this.recordingProdStack.push(c), a.ALT.call(this), this.recordingProdStack.pop();
|
|
3409
3412
|
}), Un;
|
|
3410
3413
|
}
|
|
3411
|
-
function
|
|
3414
|
+
function po(t) {
|
|
3412
3415
|
return t === 0 ? "" : `${t}`;
|
|
3413
3416
|
}
|
|
3414
3417
|
function Rn(t) {
|
|
3415
|
-
if (t < 0 || t >
|
|
3418
|
+
if (t < 0 || t > fo) {
|
|
3416
3419
|
const e = new Error(`Invalid DSL Method idx value: <${t}>
|
|
3417
|
-
Idx value must be a none negative value smaller than ${
|
|
3420
|
+
Idx value must be a none negative value smaller than ${fo + 1}`);
|
|
3418
3421
|
throw e.KNOWN_RECORDER_ERROR = !0, e;
|
|
3419
3422
|
}
|
|
3420
3423
|
}
|
|
3421
|
-
const fn =
|
|
3424
|
+
const fn = Yr(ie, "", NaN, NaN, NaN, NaN, NaN, NaN);
|
|
3422
3425
|
Object.freeze(fn);
|
|
3423
|
-
const zt = Object.freeze({ recoveryEnabled: !1, maxLookahead: 3, dynamicTokensEnabled: !1, outputCst: !0, errorMessageProvider:
|
|
3426
|
+
const zt = Object.freeze({ recoveryEnabled: !1, maxLookahead: 3, dynamicTokensEnabled: !1, outputCst: !0, errorMessageProvider: gs, nodeLocationTracking: "none", traceInitPerf: !1, skipValidations: !1 }), on = Object.freeze({ recoveryValueFunc: () => {
|
|
3424
3427
|
}, resyncEnabled: !0 });
|
|
3425
|
-
var st,
|
|
3428
|
+
var st, tr;
|
|
3426
3429
|
(function(t) {
|
|
3427
3430
|
t[t.INVALID_RULE_NAME = 0] = "INVALID_RULE_NAME", t[t.DUPLICATE_RULE_NAME = 1] = "DUPLICATE_RULE_NAME", t[t.INVALID_RULE_OVERRIDE = 2] = "INVALID_RULE_OVERRIDE", t[t.DUPLICATE_PRODUCTIONS = 3] = "DUPLICATE_PRODUCTIONS", t[t.UNRESOLVED_SUBRULE_REF = 4] = "UNRESOLVED_SUBRULE_REF", t[t.LEFT_RECURSION = 5] = "LEFT_RECURSION", t[t.NONE_LAST_EMPTY_ALT = 6] = "NONE_LAST_EMPTY_ALT", t[t.AMBIGUOUS_ALTS = 7] = "AMBIGUOUS_ALTS", t[t.CONFLICT_TOKENS_RULES_NAMESPACE = 8] = "CONFLICT_TOKENS_RULES_NAMESPACE", t[t.INVALID_TOKEN_NAME = 9] = "INVALID_TOKEN_NAME", t[t.NO_NON_EMPTY_LOOKAHEAD = 10] = "NO_NON_EMPTY_LOOKAHEAD", t[t.AMBIGUOUS_PREFIX_ALTS = 11] = "AMBIGUOUS_PREFIX_ALTS", t[t.TOO_MANY_ALTS = 12] = "TOO_MANY_ALTS", t[t.CUSTOM_LOOKAHEAD_VALIDATION = 13] = "CUSTOM_LOOKAHEAD_VALIDATION";
|
|
3428
3431
|
})(st || (st = {}));
|
|
@@ -3436,7 +3439,7 @@ class Ge {
|
|
|
3436
3439
|
this.selfAnalysisDone = !0;
|
|
3437
3440
|
const n = this.className;
|
|
3438
3441
|
this.TRACE_INIT("toFastProps", () => {
|
|
3439
|
-
|
|
3442
|
+
ls(this);
|
|
3440
3443
|
}), this.TRACE_INIT("Grammar Recording", () => {
|
|
3441
3444
|
try {
|
|
3442
3445
|
this.enableRecording(), w(this.definedRulesNames, (i) => {
|
|
@@ -3453,11 +3456,11 @@ class Ge {
|
|
|
3453
3456
|
let r = [];
|
|
3454
3457
|
if (this.TRACE_INIT("Grammar Resolving", () => {
|
|
3455
3458
|
r = function(i) {
|
|
3456
|
-
const o =
|
|
3459
|
+
const o = Nr(i, { errMsgProvider: Oc }), s = {};
|
|
3457
3460
|
return w(i.rules, (a) => {
|
|
3458
3461
|
s[a.name] = a;
|
|
3459
3462
|
}), function(a, c) {
|
|
3460
|
-
const u = new
|
|
3463
|
+
const u = new Sc(a, c);
|
|
3461
3464
|
return u.resolveRefs(), u.errors;
|
|
3462
3465
|
}(s, o.errMsgProvider);
|
|
3463
3466
|
}({ rules: Q(this.gastProductionsCache) }), this.definitionErrors = this.definitionErrors.concat(r);
|
|
@@ -3465,11 +3468,11 @@ class Ge {
|
|
|
3465
3468
|
if (K(r) && this.skipValidations === !1) {
|
|
3466
3469
|
const s = (o = { rules: Q(this.gastProductionsCache), tokenTypes: Q(this.tokensMap), errMsgProvider: oe, grammarName: n }, function(c, u, l, h) {
|
|
3467
3470
|
const N = Tt(c, (y) => function(p, T) {
|
|
3468
|
-
const g = new
|
|
3471
|
+
const g = new Fc();
|
|
3469
3472
|
p.accept(g);
|
|
3470
3473
|
const A = g.allProductions;
|
|
3471
|
-
return k(Q(_t(
|
|
3472
|
-
const f = St(v), d = T.buildDuplicateFoundError(p, v), I = kt(f), E = { message: d, type: st.DUPLICATE_PRODUCTIONS, ruleName: p.name, dslName: I, occurrence: f.idx }, R =
|
|
3474
|
+
return k(Q(_t(ic(A, Uc), (v) => v.length > 1)), (v) => {
|
|
3475
|
+
const f = St(v), d = T.buildDuplicateFoundError(p, v), I = kt(f), E = { message: d, type: st.DUPLICATE_PRODUCTIONS, ruleName: p.name, dslName: I, occurrence: f.idx }, R = Ns(f);
|
|
3473
3476
|
return R && (E.parameter = R), E;
|
|
3474
3477
|
});
|
|
3475
3478
|
}(y, l)), S = function(y, p, T) {
|
|
@@ -3482,7 +3485,7 @@ class Ge {
|
|
|
3482
3485
|
}
|
|
3483
3486
|
}), g;
|
|
3484
3487
|
}(c, u, l), _ = Tt(c, (y) => function(p, T) {
|
|
3485
|
-
const g = new
|
|
3488
|
+
const g = new br();
|
|
3486
3489
|
return p.accept(g), Tt(g.alternations, (A) => A.definition.length > 255 ? [{ message: T.buildTooManyAlternativesError({ topLevelRule: p, alternation: A }), type: st.TOO_MANY_ALTS, ruleName: p.name, occurrence: A.idx }] : []);
|
|
3487
3490
|
}(y, l)), m = Tt(c, (y) => function(p, T, g, A) {
|
|
3488
3491
|
const v = [];
|
|
@@ -3493,7 +3496,7 @@ class Ge {
|
|
|
3493
3496
|
return v;
|
|
3494
3497
|
}(y, c, h, l));
|
|
3495
3498
|
return N.concat(S, _, m);
|
|
3496
|
-
}((o =
|
|
3499
|
+
}((o = Nr(o, { errMsgProvider: oe })).rules, o.tokenTypes, o.errMsgProvider, o.grammarName)), a = k((i = { lookaheadStrategy: this.lookaheadStrategy, rules: Q(this.gastProductionsCache), tokenTypes: Q(this.tokensMap), grammarName: n }).lookaheadStrategy.validate({ rules: i.rules, tokenTypes: i.tokenTypes, grammarName: i.grammarName }), (c) => Object.assign({ type: st.CUSTOM_LOOKAHEAD_VALIDATION }, c));
|
|
3497
3500
|
this.definitionErrors = this.definitionErrors.concat(s, a);
|
|
3498
3501
|
}
|
|
3499
3502
|
var i, o;
|
|
@@ -3501,7 +3504,7 @@ class Ge {
|
|
|
3501
3504
|
const i = function(o) {
|
|
3502
3505
|
const s = {};
|
|
3503
3506
|
return w(o, (a) => {
|
|
3504
|
-
const c = new
|
|
3507
|
+
const c = new pc(a).startWalking();
|
|
3505
3508
|
pt(s, c);
|
|
3506
3509
|
}), s;
|
|
3507
3510
|
}(Q(this.gastProductionsCache));
|
|
@@ -3525,12 +3528,12 @@ class Ge {
|
|
|
3525
3528
|
this.skipValidations = b(n, "skipValidations") ? n.skipValidations : zt.skipValidations;
|
|
3526
3529
|
}
|
|
3527
3530
|
}
|
|
3528
|
-
Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1,
|
|
3531
|
+
Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, tr = Ge, [class {
|
|
3529
3532
|
initRecoverable(t) {
|
|
3530
|
-
this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = b(t, "recoveryEnabled") ? t.recoveryEnabled : zt.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery =
|
|
3533
|
+
this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = b(t, "recoveryEnabled") ? t.recoveryEnabled : zt.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = Gc);
|
|
3531
3534
|
}
|
|
3532
3535
|
getTokenToInsert(t) {
|
|
3533
|
-
const e =
|
|
3536
|
+
const e = Yr(t, "", NaN, NaN, NaN, NaN, NaN, NaN);
|
|
3534
3537
|
return e.isInsertedInRecovery = !0, e;
|
|
3535
3538
|
}
|
|
3536
3539
|
canTokenTypeBeInsertedInRecovery(t) {
|
|
@@ -3545,7 +3548,7 @@ Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
|
3545
3548
|
const c = this.LA(1);
|
|
3546
3549
|
let u = this.LA(1);
|
|
3547
3550
|
const l = () => {
|
|
3548
|
-
const h = this.LA(0), N = this.errorMessageProvider.buildMismatchTokenMessage({ expected: r, actual: c, previous: h, ruleName: this.getCurrRuleFullName() }), S = new
|
|
3551
|
+
const h = this.LA(0), N = this.errorMessageProvider.buildMismatchTokenMessage({ expected: r, actual: c, previous: h, ruleName: this.getCurrRuleFullName() }), S = new ao(N, c, this.LA(0));
|
|
3549
3552
|
S.resyncedTokens = We(s), this.SAVE_ERROR(S);
|
|
3550
3553
|
};
|
|
3551
3554
|
for (; !a; ) {
|
|
@@ -3568,7 +3571,7 @@ Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
|
3568
3571
|
const n = this.SKIP_TOKEN();
|
|
3569
3572
|
return this.consumeToken(), n;
|
|
3570
3573
|
}
|
|
3571
|
-
throw new
|
|
3574
|
+
throw new Wc("sad sad panda");
|
|
3572
3575
|
}
|
|
3573
3576
|
canPerformInRuleRecovery(t, e) {
|
|
3574
3577
|
return this.canRecoverWithSingleTokenInsertion(t, e) || this.canRecoverWithSingleTokenDeletion(t);
|
|
@@ -3595,20 +3598,20 @@ Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
|
3595
3598
|
}
|
|
3596
3599
|
}
|
|
3597
3600
|
getCurrFollowKey() {
|
|
3598
|
-
if (this.RULE_STACK.length === 1) return
|
|
3601
|
+
if (this.RULE_STACK.length === 1) return qn;
|
|
3599
3602
|
const t = this.getLastExplicitRuleShortName(), e = this.getLastExplicitRuleOccurrenceIndex(), n = this.getPreviousExplicitRuleShortName();
|
|
3600
3603
|
return { ruleName: this.shortRuleNameToFullName(t), idxInCallingRule: e, inRule: this.shortRuleNameToFullName(n) };
|
|
3601
3604
|
}
|
|
3602
3605
|
buildFullFollowKeyStack() {
|
|
3603
3606
|
const t = this.RULE_STACK, e = this.RULE_OCCURRENCE_STACK;
|
|
3604
|
-
return k(t, (n, r) => r === 0 ?
|
|
3607
|
+
return k(t, (n, r) => r === 0 ? qn : { ruleName: this.shortRuleNameToFullName(n), idxInCallingRule: e[r], inRule: this.shortRuleNameToFullName(t[r - 1]) });
|
|
3605
3608
|
}
|
|
3606
3609
|
flattenFollowSet() {
|
|
3607
3610
|
return Rt(k(this.buildFullFollowKeyStack(), (t) => this.getFollowSetFromFollowKey(t)));
|
|
3608
3611
|
}
|
|
3609
3612
|
getFollowSetFromFollowKey(t) {
|
|
3610
|
-
if (t ===
|
|
3611
|
-
const e = t.ruleName + t.idxInCallingRule +
|
|
3613
|
+
if (t === qn) return [ie];
|
|
3614
|
+
const e = t.ruleName + t.idxInCallingRule + hs + t.inRule;
|
|
3612
3615
|
return this.resyncFollows[e];
|
|
3613
3616
|
}
|
|
3614
3617
|
addToResyncTokens(t, e) {
|
|
@@ -3630,7 +3633,7 @@ Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
|
3630
3633
|
}
|
|
3631
3634
|
}, class {
|
|
3632
3635
|
initLooksAhead(t) {
|
|
3633
|
-
this.dynamicTokensEnabled = b(t, "dynamicTokensEnabled") ? t.dynamicTokensEnabled : zt.dynamicTokensEnabled, this.maxLookahead = b(t, "maxLookahead") ? t.maxLookahead : zt.maxLookahead, this.lookaheadStrategy = b(t, "lookaheadStrategy") ? t.lookaheadStrategy : new
|
|
3636
|
+
this.dynamicTokensEnabled = b(t, "dynamicTokensEnabled") ? t.dynamicTokensEnabled : zt.dynamicTokensEnabled, this.maxLookahead = b(t, "maxLookahead") ? t.maxLookahead : zt.maxLookahead, this.lookaheadStrategy = b(t, "lookaheadStrategy") ? t.lookaheadStrategy : new Kc({ maxLookahead: this.maxLookahead }), this.lookAheadFuncsCache = /* @__PURE__ */ new Map();
|
|
3634
3637
|
}
|
|
3635
3638
|
preComputeLookaheadFunctions(t) {
|
|
3636
3639
|
w(t, (e) => {
|
|
@@ -3643,7 +3646,7 @@ Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
|
3643
3646
|
w(n, (c) => {
|
|
3644
3647
|
const u = c.idx === 0 ? "" : c.idx;
|
|
3645
3648
|
this.TRACE_INIT(`${kt(c)}${u}`, () => {
|
|
3646
|
-
const l = this.lookaheadStrategy.buildLookaheadForAlternation({ prodOccurrence: c.idx, rule: e, maxLookahead: c.maxLookahead || this.maxLookahead, hasPredicates: c.hasPredicates, dynamicTokensEnabled: this.dynamicTokensEnabled }), h =
|
|
3649
|
+
const l = this.lookaheadStrategy.buildLookaheadForAlternation({ prodOccurrence: c.idx, rule: e, maxLookahead: c.maxLookahead || this.maxLookahead, hasPredicates: c.hasPredicates, dynamicTokensEnabled: this.dynamicTokensEnabled }), h = Jn(this.fullRuleNameToShort[e.name], 256, c.idx);
|
|
3647
3650
|
this.setLaFuncCache(h, l);
|
|
3648
3651
|
});
|
|
3649
3652
|
}), w(r, (c) => {
|
|
@@ -3651,23 +3654,23 @@ Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
|
3651
3654
|
}), w(i, (c) => {
|
|
3652
3655
|
this.computeLookaheadFunc(e, c.idx, 512, "Option", c.maxLookahead, kt(c));
|
|
3653
3656
|
}), w(o, (c) => {
|
|
3654
|
-
this.computeLookaheadFunc(e, c.idx,
|
|
3657
|
+
this.computeLookaheadFunc(e, c.idx, Zn, "RepetitionMandatory", c.maxLookahead, kt(c));
|
|
3655
3658
|
}), w(s, (c) => {
|
|
3656
3659
|
this.computeLookaheadFunc(e, c.idx, nn, "RepetitionMandatoryWithSeparator", c.maxLookahead, kt(c));
|
|
3657
3660
|
}), w(a, (c) => {
|
|
3658
|
-
this.computeLookaheadFunc(e, c.idx,
|
|
3661
|
+
this.computeLookaheadFunc(e, c.idx, Qn, "RepetitionWithSeparator", c.maxLookahead, kt(c));
|
|
3659
3662
|
});
|
|
3660
3663
|
});
|
|
3661
3664
|
});
|
|
3662
3665
|
}
|
|
3663
3666
|
computeLookaheadFunc(t, e, n, r, i, o) {
|
|
3664
3667
|
this.TRACE_INIT(`${o}${e === 0 ? "" : e}`, () => {
|
|
3665
|
-
const s = this.lookaheadStrategy.buildLookaheadForOptional({ prodOccurrence: e, rule: t, maxLookahead: i || this.maxLookahead, dynamicTokensEnabled: this.dynamicTokensEnabled, prodType: r }), a =
|
|
3668
|
+
const s = this.lookaheadStrategy.buildLookaheadForOptional({ prodOccurrence: e, rule: t, maxLookahead: i || this.maxLookahead, dynamicTokensEnabled: this.dynamicTokensEnabled, prodType: r }), a = Jn(this.fullRuleNameToShort[t.name], n, e);
|
|
3666
3669
|
this.setLaFuncCache(a, s);
|
|
3667
3670
|
});
|
|
3668
3671
|
}
|
|
3669
3672
|
getKeyForAutomaticLookahead(t, e) {
|
|
3670
|
-
return
|
|
3673
|
+
return Jn(this.getLastExplicitRuleShortName(), t, e);
|
|
3671
3674
|
}
|
|
3672
3675
|
getLaFuncFromCache(t) {
|
|
3673
3676
|
return this.lookAheadFuncsCache.get(t);
|
|
@@ -3677,8 +3680,8 @@ Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
|
3677
3680
|
}
|
|
3678
3681
|
}, class {
|
|
3679
3682
|
initTreeBuilder(t) {
|
|
3680
|
-
if (this.CST_STACK = [], this.outputCst = t.outputCst, this.nodeLocationTracking = b(t, "nodeLocationTracking") ? t.nodeLocationTracking : zt.nodeLocationTracking, this.outputCst) if (/full/i.test(this.nodeLocationTracking)) this.recoveryEnabled ? (this.setNodeLocationFromToken =
|
|
3681
|
-
else if (/onlyOffset/i.test(this.nodeLocationTracking)) this.recoveryEnabled ? (this.setNodeLocationFromToken =
|
|
3683
|
+
if (this.CST_STACK = [], this.outputCst = t.outputCst, this.nodeLocationTracking = b(t, "nodeLocationTracking") ? t.nodeLocationTracking : zt.nodeLocationTracking, this.outputCst) if (/full/i.test(this.nodeLocationTracking)) this.recoveryEnabled ? (this.setNodeLocationFromToken = uo, this.setNodeLocationFromNode = uo, this.cstPostRule = Z, this.setInitialNodeLocation = this.setInitialNodeLocationFullRecovery) : (this.setNodeLocationFromToken = Z, this.setNodeLocationFromNode = Z, this.cstPostRule = this.cstPostRuleFull, this.setInitialNodeLocation = this.setInitialNodeLocationFullRegular);
|
|
3684
|
+
else if (/onlyOffset/i.test(this.nodeLocationTracking)) this.recoveryEnabled ? (this.setNodeLocationFromToken = co, this.setNodeLocationFromNode = co, this.cstPostRule = Z, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRecovery) : (this.setNodeLocationFromToken = Z, this.setNodeLocationFromNode = Z, this.cstPostRule = this.cstPostRuleOnlyOffset, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRegular);
|
|
3682
3685
|
else {
|
|
3683
3686
|
if (!/none/i.test(this.nodeLocationTracking)) throw Error(`Invalid <nodeLocationTracking> config option: "${t.nodeLocationTracking}"`);
|
|
3684
3687
|
this.setNodeLocationFromToken = Z, this.setNodeLocationFromNode = Z, this.cstPostRule = Z, this.setInitialNodeLocation = Z;
|
|
@@ -3728,10 +3731,10 @@ Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
|
3728
3731
|
const t = function(e, n) {
|
|
3729
3732
|
const r = function() {
|
|
3730
3733
|
};
|
|
3731
|
-
return
|
|
3734
|
+
return lo(r, e + "BaseSemantics"), (r.prototype = { visit: function(i, o) {
|
|
3732
3735
|
if (B(i) && (i = i[0]), !Ht(i)) return this[i.name](i.children, o);
|
|
3733
3736
|
}, validateVisitor: function() {
|
|
3734
|
-
const i = (o = this, $e(k(gt(n, (s) => Yt(o[s]) === !1), (s) => ({ msg: `Missing visitor method: <${s}> on ${o.constructor.name} CST Visitor.`, type:
|
|
3737
|
+
const i = (o = this, $e(k(gt(n, (s) => Yt(o[s]) === !1), (s) => ({ msg: `Missing visitor method: <${s}> on ${o.constructor.name} CST Visitor.`, type: Pr.MISSING_METHOD, methodName: s }))));
|
|
3735
3738
|
var o;
|
|
3736
3739
|
if (!K(i)) {
|
|
3737
3740
|
const s = k(i, (a) => a.msg);
|
|
@@ -3752,10 +3755,10 @@ Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
|
3752
3755
|
const t = function(e, n, r) {
|
|
3753
3756
|
const i = function() {
|
|
3754
3757
|
};
|
|
3755
|
-
|
|
3758
|
+
lo(i, e + "BaseSemanticsWithDefaults");
|
|
3756
3759
|
const o = Object.create(r.prototype);
|
|
3757
3760
|
return w(n, (s) => {
|
|
3758
|
-
o[s] =
|
|
3761
|
+
o[s] = zc;
|
|
3759
3762
|
}), (i.prototype = o).constructor = i, i;
|
|
3760
3763
|
}(this.className, yt(this.gastProductionsCache), this.getBaseCstVisitorConstructor());
|
|
3761
3764
|
return this.baseCstVisitorWithDefaultsConstructor = t, t;
|
|
@@ -3824,8 +3827,8 @@ Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
|
3824
3827
|
For Further details.`);
|
|
3825
3828
|
}
|
|
3826
3829
|
if (B(t)) this.tokensMap = dt(t, (r, i) => (r[i.name] = i, r), {});
|
|
3827
|
-
else if (b(t, "modes") && vt(Rt(Q(t.modes)),
|
|
3828
|
-
const r =
|
|
3830
|
+
else if (b(t, "modes") && vt(Rt(Q(t.modes)), vc)) {
|
|
3831
|
+
const r = yr(Rt(Q(t.modes)));
|
|
3829
3832
|
this.tokensMap = dt(r, (i, o) => (i[o.name] = o, i), {});
|
|
3830
3833
|
} else {
|
|
3831
3834
|
if (!Nt(t)) throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");
|
|
@@ -3901,7 +3904,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
3901
3904
|
if (i.call(this) === !0) return r.call(this);
|
|
3902
3905
|
}
|
|
3903
3906
|
atLeastOneInternal(t, e) {
|
|
3904
|
-
const n = this.getKeyForAutomaticLookahead(
|
|
3907
|
+
const n = this.getKeyForAutomaticLookahead(Zn, t);
|
|
3905
3908
|
return this.atLeastOneInternalLogic(t, e, n);
|
|
3906
3909
|
}
|
|
3907
3910
|
atLeastOneInternalLogic(t, e, n) {
|
|
@@ -3919,7 +3922,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
3919
3922
|
let o = this.doSingleRepetition(r);
|
|
3920
3923
|
for (; i.call(this) === !0 && o === !0; ) o = this.doSingleRepetition(r);
|
|
3921
3924
|
}
|
|
3922
|
-
this.attemptInRepetitionRecovery(this.atLeastOneInternal, [t, e], i,
|
|
3925
|
+
this.attemptInRepetitionRecovery(this.atLeastOneInternal, [t, e], i, Zn, t, Cc);
|
|
3923
3926
|
}
|
|
3924
3927
|
atLeastOneSepFirstInternal(t, e) {
|
|
3925
3928
|
const n = this.getKeyForAutomaticLookahead(nn, t);
|
|
@@ -3932,7 +3935,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
3932
3935
|
r.call(this);
|
|
3933
3936
|
const o = () => this.tokenMatcher(this.LA(1), i);
|
|
3934
3937
|
for (; this.tokenMatcher(this.LA(1), i) === !0; ) this.CONSUME(i), r.call(this);
|
|
3935
|
-
this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal, [t, i, o, r,
|
|
3938
|
+
this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal, [t, i, o, r, ro], o, nn, t, ro);
|
|
3936
3939
|
}
|
|
3937
3940
|
}
|
|
3938
3941
|
manyInternal(t, e) {
|
|
@@ -3951,10 +3954,10 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
3951
3954
|
} else r = e;
|
|
3952
3955
|
let o = !0;
|
|
3953
3956
|
for (; i.call(this) === !0 && o === !0; ) o = this.doSingleRepetition(r);
|
|
3954
|
-
this.attemptInRepetitionRecovery(this.manyInternal, [t, e], i, 768, t,
|
|
3957
|
+
this.attemptInRepetitionRecovery(this.manyInternal, [t, e], i, 768, t, xc, o);
|
|
3955
3958
|
}
|
|
3956
3959
|
manySepFirstInternal(t, e) {
|
|
3957
|
-
const n = this.getKeyForAutomaticLookahead(
|
|
3960
|
+
const n = this.getKeyForAutomaticLookahead(Qn, t);
|
|
3958
3961
|
this.manySepFirstInternalLogic(t, e, n);
|
|
3959
3962
|
}
|
|
3960
3963
|
manySepFirstInternalLogic(t, e, n) {
|
|
@@ -3963,7 +3966,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
3963
3966
|
r.call(this);
|
|
3964
3967
|
const o = () => this.tokenMatcher(this.LA(1), i);
|
|
3965
3968
|
for (; this.tokenMatcher(this.LA(1), i) === !0; ) this.CONSUME(i), r.call(this);
|
|
3966
|
-
this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal, [t, i, o, r,
|
|
3969
|
+
this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal, [t, i, o, r, no], o, Qn, t, no);
|
|
3967
3970
|
}
|
|
3968
3971
|
}
|
|
3969
3972
|
repetitionSepSecondInternal(t, e, n, r, i) {
|
|
@@ -3982,7 +3985,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
3982
3985
|
ruleFinallyStateUpdate() {
|
|
3983
3986
|
if (this.RULE_STACK.pop(), this.RULE_OCCURRENCE_STACK.pop(), this.cstFinallyStateUpdate(), this.RULE_STACK.length === 0 && this.isAtEndOfInput() === !1) {
|
|
3984
3987
|
const t = this.LA(1), e = this.errorMessageProvider.buildNotAllInputParsedMessage({ firstRedundant: t, ruleName: this.getCurrRuleFullName() });
|
|
3985
|
-
this.SAVE_ERROR(new
|
|
3988
|
+
this.SAVE_ERROR(new Bc(e, t));
|
|
3986
3989
|
}
|
|
3987
3990
|
}
|
|
3988
3991
|
subruleInternal(t, e, n) {
|
|
@@ -4010,7 +4013,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
4010
4013
|
consumeInternalError(t, e, n) {
|
|
4011
4014
|
let r;
|
|
4012
4015
|
const i = this.LA(0);
|
|
4013
|
-
throw r = n !== void 0 && n.ERR_MSG ? n.ERR_MSG : this.errorMessageProvider.buildMismatchTokenMessage({ expected: t, actual: e, previous: i, ruleName: this.getCurrRuleFullName() }), this.SAVE_ERROR(new
|
|
4016
|
+
throw r = n !== void 0 && n.ERR_MSG ? n.ERR_MSG : this.errorMessageProvider.buildMismatchTokenMessage({ expected: t, actual: e, previous: i, ruleName: this.getCurrRuleFullName() }), this.SAVE_ERROR(new ao(r, e, i));
|
|
4014
4017
|
}
|
|
4015
4018
|
consumeInternalRecovery(t, e, n) {
|
|
4016
4019
|
if (!this.recoveryEnabled || n.name !== "MismatchedTokenException" || this.isBackTracking()) throw n;
|
|
@@ -4019,7 +4022,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
4019
4022
|
try {
|
|
4020
4023
|
return this.tryInRuleRecovery(t, r);
|
|
4021
4024
|
} catch (i) {
|
|
4022
|
-
throw i.name ===
|
|
4025
|
+
throw i.name === Ls ? n : i;
|
|
4023
4026
|
}
|
|
4024
4027
|
}
|
|
4025
4028
|
}
|
|
@@ -4365,16 +4368,16 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
4365
4368
|
this._errors = t;
|
|
4366
4369
|
}
|
|
4367
4370
|
raiseEarlyExitException(t, e, n) {
|
|
4368
|
-
const r = this.getCurrRuleFullName(), i =
|
|
4371
|
+
const r = this.getCurrRuleFullName(), i = Cr(t, this.getGAstProductions()[r], e, this.maxLookahead)[0], o = [];
|
|
4369
4372
|
for (let a = 1; a <= this.maxLookahead; a++) o.push(this.LA(a));
|
|
4370
4373
|
const s = this.errorMessageProvider.buildEarlyExitMessage({ expectedIterationPaths: i, actual: o, previous: this.LA(0), customUserDescription: n, ruleName: r });
|
|
4371
|
-
throw this.SAVE_ERROR(new
|
|
4374
|
+
throw this.SAVE_ERROR(new $c(s, this.LA(1), this.LA(0)));
|
|
4372
4375
|
}
|
|
4373
4376
|
raiseNoAltException(t, e) {
|
|
4374
|
-
const n = this.getCurrRuleFullName(), r =
|
|
4377
|
+
const n = this.getCurrRuleFullName(), r = xr(t, this.getGAstProductions()[n], this.maxLookahead), i = [];
|
|
4375
4378
|
for (let a = 1; a <= this.maxLookahead; a++) i.push(this.LA(a));
|
|
4376
4379
|
const o = this.LA(0), s = this.errorMessageProvider.buildNoViableAltMessage({ expectedPathsPerAlt: r, actual: i, previous: o, customUserDescription: e, ruleName: this.getCurrRuleFullName() });
|
|
4377
|
-
throw this.SAVE_ERROR(new
|
|
4380
|
+
throw this.SAVE_ERROR(new jc(s, this.LA(1), o));
|
|
4378
4381
|
}
|
|
4379
4382
|
}, class {
|
|
4380
4383
|
initContentAssist() {
|
|
@@ -4382,11 +4385,11 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
4382
4385
|
computeContentAssist(t, e) {
|
|
4383
4386
|
const n = this.gastProductionsCache[t];
|
|
4384
4387
|
if (Ht(n)) throw Error(`Rule ->${t}<- does not exist in this grammar.`);
|
|
4385
|
-
return
|
|
4388
|
+
return Ts([n], e, this.tokenMatcher, this.maxLookahead);
|
|
4386
4389
|
}
|
|
4387
4390
|
getNextPossibleTokenTypes(t) {
|
|
4388
4391
|
const e = St(t.ruleStack), n = this.getGAstProductions()[e];
|
|
4389
|
-
return new
|
|
4392
|
+
return new Lc(n, t).startWalking();
|
|
4390
4393
|
}
|
|
4391
4394
|
}, class {
|
|
4392
4395
|
initGastRecorder(t) {
|
|
@@ -4469,34 +4472,34 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
4469
4472
|
Se.call(this, Ft, e, t);
|
|
4470
4473
|
}
|
|
4471
4474
|
atLeastOneSepFirstInternalRecord(t, e) {
|
|
4472
|
-
Se.call(this, Dt, e, t,
|
|
4475
|
+
Se.call(this, Dt, e, t, ho);
|
|
4473
4476
|
}
|
|
4474
4477
|
manyInternalRecord(t, e) {
|
|
4475
4478
|
Se.call(this, J, e, t);
|
|
4476
4479
|
}
|
|
4477
4480
|
manySepFirstInternalRecord(t, e) {
|
|
4478
|
-
Se.call(this, Lt, e, t,
|
|
4481
|
+
Se.call(this, Lt, e, t, ho);
|
|
4479
4482
|
}
|
|
4480
4483
|
orInternalRecord(t, e) {
|
|
4481
|
-
return
|
|
4484
|
+
return Hc.call(this, t, e);
|
|
4482
4485
|
}
|
|
4483
4486
|
subruleInternalRecord(t, e, n) {
|
|
4484
4487
|
if (Rn(e), !t || b(t, "ruleName") === !1) {
|
|
4485
|
-
const s = new Error(`<SUBRULE${
|
|
4488
|
+
const s = new Error(`<SUBRULE${po(e)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(t)}>
|
|
4486
4489
|
inside top level rule: <${this.recordingProdStack[0].name}>`);
|
|
4487
4490
|
throw s.KNOWN_RECORDER_ERROR = !0, s;
|
|
4488
4491
|
}
|
|
4489
4492
|
const r = ge(this.recordingProdStack), i = t.ruleName, o = new mt({ idx: e, nonTerminalName: i, label: n?.LABEL, referencedRule: void 0 });
|
|
4490
|
-
return r.definition.push(o), this.outputCst ?
|
|
4493
|
+
return r.definition.push(o), this.outputCst ? Vc : Un;
|
|
4491
4494
|
}
|
|
4492
4495
|
consumeInternalRecord(t, e, n) {
|
|
4493
|
-
if (Rn(e), !
|
|
4494
|
-
const o = new Error(`<CONSUME${
|
|
4496
|
+
if (Rn(e), !ms(t)) {
|
|
4497
|
+
const o = new Error(`<CONSUME${po(e)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(t)}>
|
|
4495
4498
|
inside top level rule: <${this.recordingProdStack[0].name}>`);
|
|
4496
4499
|
throw o.KNOWN_RECORDER_ERROR = !0, o;
|
|
4497
4500
|
}
|
|
4498
4501
|
const r = ge(this.recordingProdStack), i = new V({ idx: e, terminalType: t, label: n?.LABEL });
|
|
4499
|
-
return r.definition.push(i),
|
|
4502
|
+
return r.definition.push(i), Cs;
|
|
4500
4503
|
}
|
|
4501
4504
|
}, class {
|
|
4502
4505
|
initPerformanceTracer(t) {
|
|
@@ -4511,7 +4514,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
4511
4514
|
this.traceInitIndent++;
|
|
4512
4515
|
const n = new Array(this.traceInitIndent + 1).join(" ");
|
|
4513
4516
|
this.traceInitIndent < this.traceInitMaxIdent && console.log(`${n}--> <${t}>`);
|
|
4514
|
-
const { time: r, value: i } =
|
|
4517
|
+
const { time: r, value: i } = us(e), o = r > 10 ? console.warn : console.log;
|
|
4515
4518
|
return this.traceInitIndent < this.traceInitMaxIdent && o(`${n}<-- <${t}> time: ${r}ms`), this.traceInitIndent--, i;
|
|
4516
4519
|
}
|
|
4517
4520
|
return e();
|
|
@@ -4521,18 +4524,18 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
4521
4524
|
Object.getOwnPropertyNames(e).forEach((n) => {
|
|
4522
4525
|
if (n === "constructor") return;
|
|
4523
4526
|
const r = Object.getOwnPropertyDescriptor(e, n);
|
|
4524
|
-
r && (r.get || r.set) ? Object.defineProperty(
|
|
4527
|
+
r && (r.get || r.set) ? Object.defineProperty(tr.prototype, n, r) : tr.prototype[n] = t.prototype[n];
|
|
4525
4528
|
});
|
|
4526
4529
|
});
|
|
4527
|
-
class
|
|
4530
|
+
class Yc extends Ge {
|
|
4528
4531
|
constructor(e, n = zt) {
|
|
4529
4532
|
const r = et(n);
|
|
4530
4533
|
r.outputCst = !1, super(e, r);
|
|
4531
4534
|
}
|
|
4532
4535
|
}
|
|
4533
|
-
const
|
|
4536
|
+
const Xc = F({ name: "WhiteSpace", pattern: /\s+/, group: ot.SKIPPED }), ks = F({ name: "String", pattern: /"(""|[^"])*"/ }), qc = F({ name: "SingleQuotedString", pattern: /'(''|[^'])*'/ }), Zc = F({ name: "SheetQuoted", pattern: /'((?![\\/[\]*?:]).)+?'!/ }), Qc = F({ name: "FunctionToken", pattern: /[A-Za-z_]+[A-Za-z_0-9.]*\(/ }), bs = F({ name: "NamedTableReference", pattern: /[A-Za-z_]+[A-Za-z_0-9.]*\[/ }), Jc = F({ name: "BracketedString", pattern: /\[([^[\]]*)\]/, longer_alt: [bs, ks] }), Ps = F({ name: "LiteralError", pattern: /#PARSE!|#NULL!|#DIV\/0!|#VALUE!|#NUM!|#FIELD!|#N\/A|#GETTING_DATA|#SPILL!|#CONNECT!|#BLOCKED!|#UNKNOWN!|#FIELD!|#CALC!|#BUSY!|#PYTHON!|#TIMEOUT!/ }), ws = F({ name: "RefError", pattern: /#REF!|#NAME\?/ }), tu = F({ name: "Sheet", pattern: /[A-Za-z_.\d\u007F-\uFFFF]+!/ }), eu = /^[a-zA-Z_][a-zA-Z0-9_.?]*:?/, Fn = F({ name: "Name", pattern: { exec: (t, e) => {
|
|
4534
4537
|
try {
|
|
4535
|
-
const n =
|
|
4538
|
+
const n = eu.exec(t.substring(e));
|
|
4536
4539
|
if (n) {
|
|
4537
4540
|
const r = n[0];
|
|
4538
4541
|
if (r.endsWith(":")) {
|
|
@@ -4551,60 +4554,60 @@ const Zc = F({ name: "WhiteSpace", pattern: /\s+/, group: ot.SKIPPED }), Ps = F(
|
|
|
4551
4554
|
for (let e = 97; e <= 122; e++) t.push(e);
|
|
4552
4555
|
for (let e = 48; e <= 57; e++) t.push(e);
|
|
4553
4556
|
return t;
|
|
4554
|
-
})() }),
|
|
4557
|
+
})() }), nu = F({ name: "Cell", pattern: /[$]?[A-Za-z]{1,3}[$]?[1-9][0-9]*/, longer_alt: Fn }), ru = F({ name: "Column", pattern: /[$]?[A-Za-z]{1,3}/, longer_alt: Fn }), iu = F({ name: "AbsRow", pattern: /[$][0-9]+/, longer_alt: Fn }), ou = F({ name: "NumberToken", pattern: /[0-9]+[.]?[0-9]*([eE][+-][0-9]+)?/ }), su = F({ name: "Boolean", pattern: /TRUE|FALSE/i }), au = F({ name: "Comma", pattern: /,/ }), cu = F({ name: "RangeUnion", pattern: /:/ }), uu = F({ name: "RangeTrimFull", pattern: /\.:\./ }), lu = F({ name: "RangeTrimLeading", pattern: /\.:/ }), hu = F({ name: "RangeTrimTrailing", pattern: /:\./ }), fu = F({ name: "Semicolon", pattern: /;/ }), du = F({ name: "OpenParen", pattern: /\(/ }), pu = F({ name: "CloseParen", pattern: /\)/ }), mu = F({ name: "OpenSquareParen", pattern: /\[/ }), Eu = F({ name: "CloseSquareParen", pattern: /]/ });
|
|
4555
4558
|
F({ name: "exclamationMark", pattern: /!/ });
|
|
4556
|
-
const
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
+
const gu = F({ name: "OpenCurlyParen", pattern: /{/ }), Tu = F({ name: "CloseCurlyParen", pattern: /}/ }), Au = F({ name: "QuoteS", pattern: /'/ }), mo = F({ name: "MulOp", pattern: /\*/ }), Iu = F({ name: "PlusOp", pattern: /\+/ }), Nu = F({ name: "DivOp", pattern: /\// }), yu = F({ name: "MinOp", pattern: /-/ }), Ru = F({ name: "ImplicitIntersectOp", pattern: /@/ }), vu = F({ name: "ConcatOp", pattern: /&/ }), Ou = F({ name: "ExOp", pattern: /\^/ }), Su = F({ name: "PercentOp", pattern: /%/ }), Ms = F({ name: "TableSpecifier", pattern: /#(All|Data|Headers|Totals|This Row)/i }), _u = F({ name: "ArrayAnchorOp", pattern: /#/, longer_alt: [Ms, Ps, ws] }), Lu = F({ name: "GtOp", pattern: />/ }), xu = F({ name: "EqOp", pattern: /=/ }), Cu = F({ name: "LtOp", pattern: /</ }), Us = [Xc, ks, Zc, qc, Qc, bs, Jc, Ps, ws, tu, nu, su, ru, iu, Ms, _u, Ru, Fn, ou, au, uu, lu, hu, cu, fu, du, pu, mu, Eu, gu, Tu, Au, mo, Iu, Nu, yu, vu, Ou, mo, Su, F({ name: "NeqOp", pattern: /<>/ }), F({ name: "GteOp", pattern: />=/ }), F({ name: "LteOp", pattern: /<=/ }), Lu, xu, Cu], ku = new ot(Us, { ensureOptimizations: !0 }), Xr = {};
|
|
4560
|
+
Us.forEach((t) => {
|
|
4561
|
+
Xr[t.name] = t;
|
|
4559
4562
|
});
|
|
4560
|
-
const Qt = { boolean: 3, string: 2, number: 1 },
|
|
4563
|
+
const Qt = { boolean: 3, string: 2, number: 1 }, bu = (t, e) => {
|
|
4561
4564
|
let n = t + e;
|
|
4562
4565
|
return n = Math.abs(n) < 99e-14 ? 0 : n, isFinite(n) ? n : Number.NaN;
|
|
4563
|
-
},
|
|
4566
|
+
}, Pu = (t, e) => {
|
|
4564
4567
|
let n = t - e;
|
|
4565
4568
|
return n = Math.abs(n) < 99e-14 ? 0 : n, isFinite(n) ? n : Number.NaN;
|
|
4566
|
-
},
|
|
4569
|
+
}, Fs = (t, e) => {
|
|
4567
4570
|
let n = t * e;
|
|
4568
4571
|
return n = Math.abs(n) < 99e-14 ? 0 : n, isFinite(n) ? n : Number.NaN;
|
|
4569
|
-
},
|
|
4572
|
+
}, Ds = (t, e) => {
|
|
4570
4573
|
if (e === 0) return 1 / 0;
|
|
4571
4574
|
let n = t / e;
|
|
4572
4575
|
return n = Math.abs(n) < 99e-14 ? 0 : n, isFinite(n) ? n : Number.NaN;
|
|
4573
|
-
},
|
|
4576
|
+
}, wu = (t, e) => {
|
|
4574
4577
|
const n = t ** e;
|
|
4575
4578
|
return isFinite(n) ? n : Number.NaN;
|
|
4576
|
-
},
|
|
4579
|
+
}, Mu = (t = "", e = "") => (t === null && (t = ""), e === null && (e = ""), typeof t == "boolean" && (t = t ? "TRUE" : "FALSE"), typeof e == "boolean" && (e = e ? "TRUE" : "FALSE"), "" + t + e), Uu = (t = null, e = null) => typeof t == typeof e && t === e, Fu = (t = null, e = null) => typeof t != typeof e || t !== e, Du = (t = null, e = null) => {
|
|
4577
4580
|
const n = typeof t, r = typeof e;
|
|
4578
4581
|
return n === r ? t > e : Qt[n] > Qt[r];
|
|
4579
|
-
},
|
|
4582
|
+
}, ju = (t = null, e = null) => {
|
|
4580
4583
|
const n = typeof t, r = typeof e;
|
|
4581
4584
|
return n === r ? t >= e : Qt[n] >= Qt[r];
|
|
4582
|
-
},
|
|
4585
|
+
}, Bu = (t = null, e = null) => {
|
|
4583
4586
|
const n = typeof t, r = typeof e;
|
|
4584
4587
|
return n === r ? t < e : Qt[n] < Qt[r];
|
|
4585
|
-
},
|
|
4588
|
+
}, $u = (t = null, e = null) => {
|
|
4586
4589
|
const n = typeof t, r = typeof e;
|
|
4587
4590
|
return n === r ? t <= e : Qt[n] <= Qt[r];
|
|
4588
|
-
},
|
|
4591
|
+
}, Wu = { type: se.Number, coerce: !0, includeBoolean: !0, includeMistyped: !0, mismatchFill: D.BuiltIn.NA }, Gu = { type: se.String, coerce: !0, includeMistyped: !0, mismatchFill: D.BuiltIn.NA }, js = { type: null, coerce: !0, includeMistyped: !0, mismatchFill: D.BuiltIn.NA }, de = (t, e, n, r) => {
|
|
4589
4592
|
if (e !== null && e.colStart !== void 0 && (e = t.getValueAt(e.rowStart, e.colStart)), n !== null && n.colStart !== void 0 && (n = t.getValueAt(n.rowStart, n.colStart)), typeof e == "number" && typeof n == "number") return r(e, n);
|
|
4590
4593
|
let i, o;
|
|
4591
|
-
return e?.isIRange ? i = e : n?.isIRange && (o = n), i || o ? (i || (i = t.getRange(e)), i.broadcast(n, r,
|
|
4594
|
+
return e?.isIRange ? i = e : n?.isIRange && (o = n), i || o ? (i || (i = t.getRange(e)), i.broadcast(n, r, Wu).fillEmpty(0)) : (e = Ue(e, Fe(e, !0), se.Number, !0, !1), n = Ue(n, Fe(n, !0), se.Number, !0, !1), e instanceof D.Value ? e : n instanceof D.Value ? n : r(e, n));
|
|
4592
4595
|
}, he = (t, e, n, r) => {
|
|
4593
4596
|
let i, o;
|
|
4594
|
-
return e !== null && e.colStart !== void 0 && (e = t.getValueAt(e.rowStart, e.colStart)), n !== null && n.colStart !== void 0 && (n = t.getValueAt(n.rowStart, n.colStart)), e?.isIRange ? (i = e, o = n) : n?.isIRange && (i = n, o = e), i ? i.broadcast(o, r,
|
|
4595
|
-
},
|
|
4597
|
+
return e !== null && e.colStart !== void 0 && (e = t.getValueAt(e.rowStart, e.colStart)), n !== null && n.colStart !== void 0 && (n = t.getValueAt(n.rowStart, n.colStart)), e?.isIRange ? (i = e, o = n) : n?.isIRange && (i = n, o = e), i ? i.broadcast(o, r, js) : r(e, n);
|
|
4598
|
+
}, Eo = (t, e) => {
|
|
4596
4599
|
e == null && (e = 0);
|
|
4597
4600
|
let n, r = 1;
|
|
4598
4601
|
if (t === "+") return e;
|
|
4599
4602
|
if (t !== "-") throw new D.Value(`Unrecognized prefix: ${t}`);
|
|
4600
|
-
return r = -r, e?.isIRange && (n = e), n ? n.broadcast(r,
|
|
4603
|
+
return r = -r, e?.isIRange && (n = e), n ? n.broadcast(r, Fs, js) : typeof (e = Ue(e, Fe(e, !0), se.Number)) != "number" || isNaN(e) ? D.BuiltIn.Value : e * r;
|
|
4601
4604
|
}, _e = (t, e, n, r) => {
|
|
4602
4605
|
if (!e) return D.BuiltIn.Ref;
|
|
4603
4606
|
if (e.isIReferenceRange && (e = e.getCoords()), e.colStart === void 0) return D.BuiltIn.Ref;
|
|
4604
4607
|
if (n.isIReferenceRange && (n = n.getCoords()), n.colStart === void 0) return D.BuiltIn.Ref;
|
|
4605
4608
|
const i = r(e, n);
|
|
4606
4609
|
return i ? t.getReference(i) : D.BuiltIn.Null;
|
|
4607
|
-
},
|
|
4610
|
+
}, Ku = { "+": (t, e, n) => de(t, e, n, bu), "-": (t, e, n) => de(t, e, n, Pu), "*": (t, e, n) => de(t, e, n, Fs), "/": (t, e, n) => de(t, e, n, Ds), "^": (t, e, n) => de(t, e, n, wu), " ": (t, e, n, r) => _e(t, e, n, Xt.intersectRanges), ":": (t, e, n, r) => _e(t, e, n, Xt.unionRanges), ".:.": (t, e, n, r) => {
|
|
4608
4611
|
const i = _e(t, e, n, Xt.unionRanges);
|
|
4609
4612
|
return t.getFunction("TRIMRANGE").execute(i, 3, 3);
|
|
4610
4613
|
}, ".:": (t, e, n, r) => {
|
|
@@ -4616,8 +4619,8 @@ const Qt = { boolean: 3, string: 2, number: 1 }, wu = (t, e) => {
|
|
|
4616
4619
|
}, "&": (t, e, n) => ((r, i, o, s) => {
|
|
4617
4620
|
if (i !== null && i.colStart !== void 0 && (i = r.getValueAt(i.rowStart, i.colStart)), o !== null && o.colStart !== void 0 && (o = r.getValueAt(o.rowStart, o.colStart)), typeof i == "string" && typeof o == "string") return s(i, o);
|
|
4618
4621
|
let a, c;
|
|
4619
|
-
return i?.isIRange ? a = i : o?.isIRange && (c = o), a || c ? (a || (a = r.getRange(i)), a.broadcast(o, s,
|
|
4620
|
-
})(t, e, n,
|
|
4622
|
+
return i?.isIRange ? a = i : o?.isIRange && (c = o), a || c ? (a || (a = r.getRange(i)), a.broadcast(o, s, Gu)) : s(i = Ue(i, Fe(i, !0), se.String), o = Ue(o, Fe(o, !0), se.String));
|
|
4623
|
+
})(t, e, n, Mu), "=": (t, e, n) => he(t, e, n, Uu), "<>": (t, e, n) => he(t, e, n, Fu), ">": (t, e, n) => he(t, e, n, Du), "<": (t, e, n) => he(t, e, n, Bu), ">=": (t, e, n) => he(t, e, n, ju), "<=": (t, e, n) => he(t, e, n, $u) }, zu = { "-": (t, e) => Eo("-", e), "+": (t, e) => Eo("+", e), "@": (t, e) => {
|
|
4621
4624
|
if (!e || !e.isIReferenceRange) return e;
|
|
4622
4625
|
const n = e.getCoords(), r = e, i = t.getPosition(), o = r.getHeight(), s = r.getWidth();
|
|
4623
4626
|
if (s > 1 && o > 1) return D.BuiltIn.Value;
|
|
@@ -4632,8 +4635,8 @@ const Qt = { boolean: 3, string: 2, number: 1 }, wu = (t, e) => {
|
|
|
4632
4635
|
}
|
|
4633
4636
|
}
|
|
4634
4637
|
return D.BuiltIn.Value;
|
|
4635
|
-
} },
|
|
4636
|
-
function
|
|
4638
|
+
} }, Vu = { "%": (t, e) => de(t, e, 100, Ds), "#": (t, e) => t.getSpillAt(e.rowStart, e.colStart) || D.BuiltIn.Ref };
|
|
4639
|
+
function go(t) {
|
|
4637
4640
|
const e = (t = t.toUpperCase()).length;
|
|
4638
4641
|
let n = 0;
|
|
4639
4642
|
for (let r = 0; r < e; r++) {
|
|
@@ -4642,29 +4645,29 @@ function Ao(t) {
|
|
|
4642
4645
|
}
|
|
4643
4646
|
return n;
|
|
4644
4647
|
}
|
|
4645
|
-
function
|
|
4648
|
+
function er(t) {
|
|
4646
4649
|
return { type: "cell", value: Object.freeze({ colIndex: t.colIndex, rowIndex: t.rowIndex, $colIndex: t.$colIndex || !1, $rowIndex: t.$rowIndex || !1 }), inputs: null, isReference: !0 };
|
|
4647
4650
|
}
|
|
4648
|
-
function
|
|
4651
|
+
function To(t, e) {
|
|
4649
4652
|
const n = t.startsWith("$");
|
|
4650
4653
|
n && (t = t.substring(1));
|
|
4651
4654
|
let r = parseInt(t) - 1;
|
|
4652
4655
|
return n || r === Number.MIN_SAFE_INTEGER || (r -= e.colIndex), { type: "cell", value: Object.freeze({ colIndex: Number.MIN_SAFE_INTEGER, $colIndex: !1, rowIndex: r, $rowIndex: n }), inputs: null, isReference: !0 };
|
|
4653
4656
|
}
|
|
4654
|
-
function
|
|
4657
|
+
function Ao(t, e) {
|
|
4655
4658
|
return { type: "function", value: t = t.toUpperCase(), inputs: e };
|
|
4656
4659
|
}
|
|
4657
|
-
function
|
|
4660
|
+
function nr(t, e) {
|
|
4658
4661
|
return { type: "tableReference", value: t, inputs: e };
|
|
4659
4662
|
}
|
|
4660
|
-
function
|
|
4663
|
+
function rr(t) {
|
|
4661
4664
|
return { type: "tableSpecifier", value: t, inputs: null, isReference: !0 };
|
|
4662
4665
|
}
|
|
4663
|
-
function
|
|
4666
|
+
function wr(t, e, n, r = !1) {
|
|
4664
4667
|
const i = { type: "infix", value: t, inputs: [e, n] };
|
|
4665
4668
|
return r && (i.isReference = !0), i;
|
|
4666
4669
|
}
|
|
4667
|
-
function
|
|
4670
|
+
function ir(t, e, n = !1) {
|
|
4668
4671
|
const r = { type: "postfix", value: t, inputs: [e] };
|
|
4669
4672
|
return n && (r.isReference = !0), r;
|
|
4670
4673
|
}
|
|
@@ -4672,21 +4675,21 @@ function Ce(t, e, n = !1) {
|
|
|
4672
4675
|
const r = { type: "prefix", value: t, inputs: [e] };
|
|
4673
4676
|
return n && (r.isReference = !0), r;
|
|
4674
4677
|
}
|
|
4675
|
-
function
|
|
4678
|
+
function or(t) {
|
|
4676
4679
|
return { type: "named", value: t, inputs: null, isReference: !0 };
|
|
4677
4680
|
}
|
|
4678
|
-
function
|
|
4681
|
+
function Io(t) {
|
|
4679
4682
|
return { type: "number", value: Number(t), isLiteral: !0 };
|
|
4680
4683
|
}
|
|
4681
|
-
function
|
|
4684
|
+
function sr(t) {
|
|
4682
4685
|
let e = t;
|
|
4683
4686
|
const n = t && t.length > 1 && t[0] === '"' && t[t.length - 1] === '"';
|
|
4684
4687
|
return n && (e = t.substring(1, t.length - 1)), { type: n ? "quotedString" : "string", value: e, isLiteral: !0 };
|
|
4685
4688
|
}
|
|
4686
|
-
function
|
|
4689
|
+
function No(t) {
|
|
4687
4690
|
return { type: "boolean", value: t === "TRUE" || t.toUpperCase() === "TRUE", isLiteral: !0 };
|
|
4688
4691
|
}
|
|
4689
|
-
function
|
|
4692
|
+
function yo(t) {
|
|
4690
4693
|
return { type: "error", value: D.getBuiltInByLabel(t.toUpperCase()), isLiteral: !0 };
|
|
4691
4694
|
}
|
|
4692
4695
|
function vn(t) {
|
|
@@ -4732,7 +4735,7 @@ function dn(t, e) {
|
|
|
4732
4735
|
const P = E[O], x = c.get(P);
|
|
4733
4736
|
x && (x.hasHorizontalAbs && (I.hasHorizontalAbs = !0), x.hasVerticalAbs && (I.hasVerticalAbs = !0)), L[O] = x ? x.index : -1, o.delete(x);
|
|
4734
4737
|
}
|
|
4735
|
-
if (o.add(I),
|
|
4738
|
+
if (o.add(I), Bs.includes(M)) {
|
|
4736
4739
|
const O = E[0], P = !!O && O.type === "cell", x = E[1], C = !!x && x.type === "cell";
|
|
4737
4740
|
P && C && (l.splice(x.refIndex, 1), x.refIndex = O.refIndex, g.refIndex = O.refIndex, l[O.refIndex] = I.index);
|
|
4738
4741
|
} else M === "#" && (g.refIndex = E[0].refIndex);
|
|
@@ -4765,7 +4768,7 @@ function dn(t, e) {
|
|
|
4765
4768
|
}
|
|
4766
4769
|
E[R] = O;
|
|
4767
4770
|
}
|
|
4768
|
-
i[f] =
|
|
4771
|
+
i[f] = zs(E);
|
|
4769
4772
|
}
|
|
4770
4773
|
else {
|
|
4771
4774
|
if (v !== "empty") return u.push(g), g;
|
|
@@ -4795,13 +4798,13 @@ function dn(t, e) {
|
|
|
4795
4798
|
const A = u[g], v = A.type;
|
|
4796
4799
|
if (v === "infix") {
|
|
4797
4800
|
const f = A.value;
|
|
4798
|
-
A.fn =
|
|
4801
|
+
A.fn = Ku[f];
|
|
4799
4802
|
} else if (v === "prefix") {
|
|
4800
4803
|
const f = A.value;
|
|
4801
|
-
A.fn =
|
|
4804
|
+
A.fn = zu[f];
|
|
4802
4805
|
} else if (v === "postfix") {
|
|
4803
4806
|
const f = A.value;
|
|
4804
|
-
A.fn =
|
|
4807
|
+
A.fn = Vu[f];
|
|
4805
4808
|
}
|
|
4806
4809
|
}
|
|
4807
4810
|
const T = function(g) {
|
|
@@ -4892,7 +4895,7 @@ function dn(t, e) {
|
|
|
4892
4895
|
}(r);
|
|
4893
4896
|
return { ast: r, evaluations: i, executions: u, precedentsAbsolute: S, precedentsExecute: _, precedentsNamed: m, precedentsRelative: h, precedentsRoot: y, references: l, tokens: T, error: e };
|
|
4894
4897
|
}
|
|
4895
|
-
function
|
|
4898
|
+
function Ro(t, e) {
|
|
4896
4899
|
let n, r = -1, i = "";
|
|
4897
4900
|
Number.isSafeInteger(t.previousToken?.startLine) ? (r = t.previousToken.startLine, n = t.previousToken.endColumn + 1) : Number.isSafeInteger(t.token?.startLine) && (r = t.token.startLine, n = t.token.startColumn), r !== -1 ? (i += `
|
|
4898
4901
|
` + e.split(`
|
|
@@ -4904,12 +4907,12 @@ function Oo(t, e) {
|
|
|
4904
4907
|
const o = new D.Parse(i);
|
|
4905
4908
|
return o.details = t, o;
|
|
4906
4909
|
}
|
|
4907
|
-
const
|
|
4910
|
+
const ar = function(t, e) {
|
|
4908
4911
|
return e.wsBefore && (t.wsBefore = e.wsBefore), e.wsAfter && (t.wsAfter = e.wsAfter), e.image && (t.image = e.image), t;
|
|
4909
|
-
},
|
|
4910
|
-
class
|
|
4912
|
+
}, vo = Object.freeze([[":", ".:.", ".:", , ":."], ["^"], ["*", "/"], ["+", "-"], ["&"], ["<", ">", "=", "<>", "<=", ">="]]), Bs = Object.freeze([":", ".:.", ".:", , ":."]), Hu = Object.freeze([":", " ", ".:.", ".:", , ":."]), Yu = Object.freeze(["@"]), Xu = Object.freeze(["#"]), cr = Object.freeze(Hu.concat(Yu).concat(Xu)), { String: Oo, SheetQuoted: qu, SingleQuotedString: Zu, FunctionToken: Qu, NamedTableReference: Ju, LiteralError: So, RefError: _o, Cell: tl, Sheet: el, Name: Lo, NumberToken: xo, Boolean: Co, Column: nl, AbsRow: rl, ImplicitIntersectOp: ur, Comma: fe, RangeUnion: il, RangeTrimFull: ol, RangeTrimLeading: sl, RangeTrimTrailing: al, Semicolon: cl, OpenParen: ul, CloseParen: lr, OpenSquareParen: ko, CloseSquareParen: bo, OpenCurlyParen: ll, CloseCurlyParen: hl, MulOp: fl, PlusOp: hr, DivOp: dl, MinOp: fr, ConcatOp: pl, ExOp: ml, PercentOp: El, ArrayAnchorOp: Po, TableSpecifier: gl, BracketedString: wo, NeqOp: Tl, GteOp: Al, LteOp: Il, GtOp: Nl, EqOp: yl, LtOp: Rl } = Xr;
|
|
4913
|
+
class vl extends Yc {
|
|
4911
4914
|
constructor() {
|
|
4912
|
-
super(
|
|
4915
|
+
super(Xr, { nodeLocationTracking: "full", maxLookahead: 1, skipValidations: !0, recoveryEnabled: !0 }), this.position = { colIndex: 0, rowIndex: 0 }, this.astErrors = [];
|
|
4913
4916
|
const e = this, n = (r, i, o) => {
|
|
4914
4917
|
let s;
|
|
4915
4918
|
e.CONSUME(i);
|
|
@@ -4926,41 +4929,41 @@ class Sl extends qc {
|
|
|
4926
4929
|
e.RULE("infixOp", () => {
|
|
4927
4930
|
const r = [], i = [e.SUBRULE(e.postfixOp)];
|
|
4928
4931
|
return e.MANY(() => {
|
|
4929
|
-
const o = e.OR(e.c1 || (e.c1 = [{ ALT: () => e.CONSUME(
|
|
4930
|
-
r.push([o, e.getLexerPosition(),
|
|
4932
|
+
const o = e.OR(e.c1 || (e.c1 = [{ ALT: () => e.CONSUME(il).image }, { ALT: () => e.CONSUME(hr).image }, { ALT: () => e.CONSUME(fr).image }, { ALT: () => e.CONSUME(fl).image }, { ALT: () => e.CONSUME(dl).image }, { ALT: () => e.CONSUME(ml).image }, { ALT: () => e.CONSUME(pl).image }, { ALT: () => e.CONSUME(Nl).image }, { ALT: () => e.CONSUME(yl).image }, { ALT: () => e.CONSUME(Rl).image }, { ALT: () => e.CONSUME(Tl).image }, { ALT: () => e.CONSUME(Al).image }, { ALT: () => e.CONSUME(Il).image }, { ALT: () => e.CONSUME(ol).image }, { ALT: () => e.CONSUME(sl).image }, { ALT: () => e.CONSUME(al).image }]));
|
|
4933
|
+
r.push([o, e.getLexerPosition(), cr.includes(o)]), i.push(e.SUBRULE2(e.postfixOp));
|
|
4931
4934
|
}), e.ACTION(() => {
|
|
4932
4935
|
let o = r.length;
|
|
4933
|
-
const s =
|
|
4936
|
+
const s = vo.length;
|
|
4934
4937
|
for (let a = 0; o > 0 && a < s; a++) {
|
|
4935
|
-
const c =
|
|
4938
|
+
const c = vo[a];
|
|
4936
4939
|
let u = r.length;
|
|
4937
4940
|
for (let l = 0; l < u; l++) {
|
|
4938
4941
|
const h = r[l], N = h[0];
|
|
4939
4942
|
if (!c.includes(N)) continue;
|
|
4940
|
-
let S =
|
|
4943
|
+
let S = wr(N, i[l], i[l + 1], h[2]);
|
|
4941
4944
|
S = this._ensureWhitespace(S, h[1]), r.splice(l, 1), i.splice(l, 2, S), l--, u--, o--;
|
|
4942
4945
|
}
|
|
4943
4946
|
}
|
|
4944
4947
|
}), i[0];
|
|
4945
|
-
}), e.RULE("plusMinusOp", () => e.OR([{ ALT: () => e.CONSUME(
|
|
4948
|
+
}), e.RULE("plusMinusOp", () => e.OR([{ ALT: () => e.CONSUME(hr).image }, { ALT: () => e.CONSUME(fr).image }])), e.RULE("postfixOp", () => {
|
|
4946
4949
|
let r = e.SUBRULE(e.prefixOp);
|
|
4947
4950
|
const i = [];
|
|
4948
4951
|
return e.MANY(() => {
|
|
4949
|
-
const o = e.OR([{ ALT: () => e.CONSUME(
|
|
4952
|
+
const o = e.OR([{ ALT: () => e.CONSUME(El).image }, { ALT: () => e.CONSUME(Po).image }]);
|
|
4950
4953
|
e.ACTION(() => {
|
|
4951
4954
|
i.push([o, e.getLexerPosition()]);
|
|
4952
4955
|
});
|
|
4953
4956
|
}), e.ACTION(() => {
|
|
4954
4957
|
const o = i.length;
|
|
4955
4958
|
if (o !== 0) for (let s = 0; s < o; s++) {
|
|
4956
|
-
const a = i[s], c = a[0], u = a[1], l =
|
|
4957
|
-
r =
|
|
4959
|
+
const a = i[s], c = a[0], u = a[1], l = cr.includes(c);
|
|
4960
|
+
r = ir(c, r, l), r = this._ensureWhitespace(r, u);
|
|
4958
4961
|
}
|
|
4959
4962
|
}), r;
|
|
4960
4963
|
}), e.RULE("prefixOp", () => {
|
|
4961
4964
|
const r = [];
|
|
4962
4965
|
e.MANY(() => {
|
|
4963
|
-
const o = e.OR([{ ALT: () => e.CONSUME(
|
|
4966
|
+
const o = e.OR([{ ALT: () => e.CONSUME(hr).image }, { ALT: () => e.CONSUME(fr).image }, { ALT: () => e.CONSUME(ur).image }]);
|
|
4964
4967
|
e.ACTION(() => {
|
|
4965
4968
|
r.push([o, e.getLexerPosition()]);
|
|
4966
4969
|
});
|
|
@@ -4969,7 +4972,7 @@ class Sl extends qc {
|
|
|
4969
4972
|
return e.ACTION(() => {
|
|
4970
4973
|
const o = r.length;
|
|
4971
4974
|
if (o !== 0) for (let s = o - 1; s >= 0; s--) {
|
|
4972
|
-
const a = r[s], c = a[0], u = a[1], l =
|
|
4975
|
+
const a = r[s], c = a[0], u = a[1], l = cr.includes(c);
|
|
4973
4976
|
i = Ce(c, i, l), i = this._ensureWhitespace(i, u);
|
|
4974
4977
|
}
|
|
4975
4978
|
}), i;
|
|
@@ -4986,7 +4989,7 @@ class Sl extends qc {
|
|
|
4986
4989
|
for (; r.length > 1; ) {
|
|
4987
4990
|
let i = r.length - 1;
|
|
4988
4991
|
for (let o = 0; o < i; o++) {
|
|
4989
|
-
const s = r[o], a = r[o + 1], c =
|
|
4992
|
+
const s = r[o], a = r[o + 1], c = wr(" ", s, a, !0);
|
|
4990
4993
|
if (delete s.wsAfter, a.wsBefore) {
|
|
4991
4994
|
const u = a.wsBefore.slice(0, -1), l = u.length;
|
|
4992
4995
|
delete a.wsBefore, l > 0 && (c.wsBefore = u);
|
|
@@ -5004,55 +5007,55 @@ class Sl extends qc {
|
|
|
5004
5007
|
r.push(i);
|
|
5005
5008
|
});
|
|
5006
5009
|
}), r;
|
|
5007
|
-
}), e.RULE("paren", () => n("paren",
|
|
5010
|
+
}), e.RULE("paren", () => n("paren", ul, lr)), e.RULE("literalArray", () => {
|
|
5008
5011
|
let r = { type: "row", value: [], isLiteral: !0 };
|
|
5009
|
-
e.CONSUME(
|
|
5012
|
+
e.CONSUME(ll);
|
|
5010
5013
|
const i = e.getLexerPosition();
|
|
5011
5014
|
let o = e.ACTION(() => this._ensureWhitespace({ type: "array", value: [r], isLiteral: !0 }, i, !0));
|
|
5012
5015
|
const s = e.SUBRULE(e.literalForArray);
|
|
5013
5016
|
e.ACTION(() => {
|
|
5014
5017
|
r.value.push(s);
|
|
5015
5018
|
}), e.MANY(() => {
|
|
5016
|
-
const c = e.OR([{ ALT: () => e.CONSUME(fe).image }, { ALT: () => e.CONSUME(
|
|
5019
|
+
const c = e.OR([{ ALT: () => e.CONSUME(fe).image }, { ALT: () => e.CONSUME(cl).image }]), u = e.SUBRULE2(e.literalForArray);
|
|
5017
5020
|
e.ACTION(() => {
|
|
5018
5021
|
c === "," || (r = { type: "row", value: [], isLiteral: !0 }, o.value.push(r)), r.value.push(u);
|
|
5019
5022
|
});
|
|
5020
5023
|
});
|
|
5021
|
-
const a = e.OPTION(() => this.CONSUME(
|
|
5024
|
+
const a = e.OPTION(() => this.CONSUME(hl));
|
|
5022
5025
|
return o = e.ACTION(() => (a || this._reportError(o, "Missing closing parenthesis '}'", i), this._ensureWhitespace(o, e.getLexerPosition(), !1, !0))), o;
|
|
5023
5026
|
}), e.RULE("literalForArray", () => e.OR([{ ALT: () => {
|
|
5024
|
-
const r = e.OPTION(() => e.SUBRULE(e.plusMinusOp)), i = e.CONSUME(
|
|
5027
|
+
const r = e.OPTION(() => e.SUBRULE(e.plusMinusOp)), i = e.CONSUME(xo), o = e.ACTION(() => this._ensureWhitespace(Io(i.image), e.getLexerPosition()));
|
|
5025
5028
|
return r ? e.ACTION(() => /* @__PURE__ */ function(s, a) {
|
|
5026
5029
|
return { type: "prefix", value: s, inputs: [a] };
|
|
5027
5030
|
}(r, o)) : o;
|
|
5028
5031
|
} }, { ALT: () => {
|
|
5029
|
-
const r = e.CONSUME(
|
|
5030
|
-
return e.ACTION(() => this._ensureWhitespace(
|
|
5032
|
+
const r = e.CONSUME(Oo);
|
|
5033
|
+
return e.ACTION(() => this._ensureWhitespace(sr(r.image), e.getLexerPosition()));
|
|
5031
5034
|
} }, { ALT: () => {
|
|
5032
|
-
const r = e.CONSUME(
|
|
5033
|
-
return e.ACTION(() => this._ensureWhitespace(
|
|
5035
|
+
const r = e.CONSUME(Co);
|
|
5036
|
+
return e.ACTION(() => this._ensureWhitespace(No(r.image), e.getLexerPosition()));
|
|
5034
5037
|
} }, { ALT: () => {
|
|
5035
|
-
const r = e.CONSUME(
|
|
5036
|
-
return e.ACTION(() => this._ensureWhitespace(
|
|
5038
|
+
const r = e.CONSUME(So);
|
|
5039
|
+
return e.ACTION(() => this._ensureWhitespace(yo(r.image), e.getLexerPosition()));
|
|
5037
5040
|
} }, { ALT: () => {
|
|
5038
|
-
const r = e.CONSUME(
|
|
5041
|
+
const r = e.CONSUME(_o);
|
|
5039
5042
|
return e.ACTION(() => this._ensureWhitespace(vn(r.image), e.getLexerPosition()));
|
|
5040
5043
|
} }])), e.RULE("literal", () => e.OR([{ ALT: () => {
|
|
5041
|
-
const r = e.CONSUME(
|
|
5042
|
-
return e.ACTION(() => this._ensureWhitespace(
|
|
5044
|
+
const r = e.CONSUME(xo);
|
|
5045
|
+
return e.ACTION(() => this._ensureWhitespace(Io(r.image), e.getLexerPosition()));
|
|
5043
5046
|
} }, { ALT: () => {
|
|
5044
|
-
const r = e.CONSUME(
|
|
5045
|
-
return e.ACTION(() => this._ensureWhitespace(
|
|
5047
|
+
const r = e.CONSUME(Oo);
|
|
5048
|
+
return e.ACTION(() => this._ensureWhitespace(sr(r.image), e.getLexerPosition()));
|
|
5046
5049
|
} }, { ALT: () => {
|
|
5047
|
-
const r = e.CONSUME(
|
|
5048
|
-
return e.ACTION(() => this._ensureWhitespace(
|
|
5050
|
+
const r = e.CONSUME(Co);
|
|
5051
|
+
return e.ACTION(() => this._ensureWhitespace(No(r.image), e.getLexerPosition()));
|
|
5049
5052
|
} }, { ALT: () => {
|
|
5050
|
-
const r = e.CONSUME(
|
|
5051
|
-
return e.ACTION(() => this._ensureWhitespace(
|
|
5053
|
+
const r = e.CONSUME(So);
|
|
5054
|
+
return e.ACTION(() => this._ensureWhitespace(yo(r.image), e.getLexerPosition()));
|
|
5052
5055
|
} }])), e.RULE("function", () => {
|
|
5053
|
-
const r = e.CONSUME(
|
|
5054
|
-
let s = e.ACTION(() => this._ensureWhitespace(
|
|
5055
|
-
const a = e.OPTION(() => this.CONSUME(
|
|
5056
|
+
const r = e.CONSUME(Qu).image.slice(0, -1), i = e.getLexerPosition(), o = e.SUBRULE(e.functionArguments);
|
|
5057
|
+
let s = e.ACTION(() => this._ensureWhitespace(Ao(r, o), i, !0));
|
|
5058
|
+
const a = e.OPTION(() => this.CONSUME(lr));
|
|
5056
5059
|
return s = e.ACTION(() => (a || this._reportError(s, "Missing closing parenthesis ')'", i), this._ensureWhitespace(s, e.getLexerPosition(), !1, !0))), s;
|
|
5057
5060
|
}), e.RULE("functionArguments", () => {
|
|
5058
5061
|
const r = [];
|
|
@@ -5068,24 +5071,24 @@ class Sl extends qc {
|
|
|
5068
5071
|
});
|
|
5069
5072
|
}), r;
|
|
5070
5073
|
}), e.RULE("bracketedString", () => {
|
|
5071
|
-
const r = e.CONSUME(
|
|
5074
|
+
const r = e.CONSUME(wo), i = e.getLexerPosition();
|
|
5072
5075
|
return e.ACTION(() => {
|
|
5073
5076
|
const o = r.image;
|
|
5074
|
-
let s =
|
|
5077
|
+
let s = nr("", [rr(o.substring(1, o.length - 1))]);
|
|
5075
5078
|
return s = this._ensureWhitespace(s, i, !0, !1), s = this._ensureWhitespace(s, e.getLexerPosition(), !1, !0), s;
|
|
5076
5079
|
});
|
|
5077
5080
|
}), e.RULE("squareParen", () => {
|
|
5078
|
-
e.CONSUME(
|
|
5081
|
+
e.CONSUME(ko);
|
|
5079
5082
|
const r = e.getLexerPosition();
|
|
5080
|
-
let i =
|
|
5081
|
-
const o = e.OPTION(() => this.CONSUME(
|
|
5083
|
+
let i = nr("", [e.SUBRULE(e.structuredArgument)]);
|
|
5084
|
+
const o = e.OPTION(() => this.CONSUME(bo));
|
|
5082
5085
|
return e.ACTION(() => {
|
|
5083
5086
|
o || this._reportError(i, "Missing closing parenthesis ']'", r), i = this._ensureWhitespace(i, r, !0, !1), i = this._ensureWhitespace(i, e.getLexerPosition(), !1, !0);
|
|
5084
5087
|
}), i;
|
|
5085
5088
|
}), e.RULE("namedTableReference", () => {
|
|
5086
|
-
const r = e.CONSUME(
|
|
5087
|
-
let s = e.ACTION(() => this._ensureWhitespace(
|
|
5088
|
-
const a = e.OPTION(() => this.CONSUME(
|
|
5089
|
+
const r = e.CONSUME(Ju).image.slice(0, -1), i = e.getLexerPosition(), o = e.SUBRULE(e.structuredArguments);
|
|
5090
|
+
let s = e.ACTION(() => this._ensureWhitespace(nr(r, o), i, !0));
|
|
5091
|
+
const a = e.OPTION(() => this.CONSUME(bo));
|
|
5089
5092
|
return s = e.ACTION(() => (a || this._reportError(s, "Missing closing parenthesis ']'", i), this._ensureWhitespace(s, e.getLexerPosition(), !1, !0))), s;
|
|
5090
5093
|
}), e.RULE("structuredArguments", () => {
|
|
5091
5094
|
const r = [];
|
|
@@ -5107,22 +5110,22 @@ class Sl extends qc {
|
|
|
5107
5110
|
});
|
|
5108
5111
|
}), r;
|
|
5109
5112
|
}), e.RULE("structuredArgument", () => {
|
|
5110
|
-
const r = e.OPTION(() => e.CONSUME(
|
|
5113
|
+
const r = e.OPTION(() => e.CONSUME(ur)), i = e.getLexerPosition(), o = e.OPTION2(() => this.CONSUME(ko));
|
|
5111
5114
|
let s = e.OR([{ ALT: () => {
|
|
5112
|
-
const a = e.CONSUME(
|
|
5113
|
-
return e.ACTION(() => this._ensureWhitespace(
|
|
5115
|
+
const a = e.CONSUME(gl);
|
|
5116
|
+
return e.ACTION(() => this._ensureWhitespace(rr(a.image), e.getLexerPosition()));
|
|
5114
5117
|
} }, { ALT: () => {
|
|
5115
|
-
const a = e.CONSUME(
|
|
5116
|
-
return e.ACTION(() => this._ensureWhitespace(
|
|
5118
|
+
const a = e.CONSUME(wo);
|
|
5119
|
+
return e.ACTION(() => this._ensureWhitespace(rr(a.image), e.getLexerPosition()));
|
|
5117
5120
|
} }, { ALT: () => {
|
|
5118
|
-
const a = e.CONSUME(
|
|
5119
|
-
return e.ACTION(() => this._ensureWhitespace(
|
|
5121
|
+
const a = e.CONSUME(Lo);
|
|
5122
|
+
return e.ACTION(() => this._ensureWhitespace(or(a.image), e.getLexerPosition()));
|
|
5120
5123
|
} }, { ALT: () => {
|
|
5121
|
-
const a = e.CONSUME(
|
|
5122
|
-
return e.ACTION(() => this._ensureWhitespace(
|
|
5124
|
+
const a = e.CONSUME(Zu);
|
|
5125
|
+
return e.ACTION(() => this._ensureWhitespace(sr(a.image), e.getLexerPosition()));
|
|
5123
5126
|
} }]);
|
|
5124
5127
|
if (o) {
|
|
5125
|
-
const a = e.OPTION3(() => this.CONSUME(
|
|
5128
|
+
const a = e.OPTION3(() => this.CONSUME(lr));
|
|
5126
5129
|
e.ACTION(() => (a || this._reportError(s, "Missing closing parenthesis ']'", i), this._ensureWhitespace(s, e.getLexerPosition(), !1, !0))), s = { type: "structuredArg", value: null, inputs: [s] };
|
|
5127
5130
|
}
|
|
5128
5131
|
return e.ACTION(() => {
|
|
@@ -5136,42 +5139,42 @@ class Sl extends qc {
|
|
|
5136
5139
|
i.ref && (i.ref.sheet = r);
|
|
5137
5140
|
}), i;
|
|
5138
5141
|
} }])), e.RULE("reference", () => {
|
|
5139
|
-
const r = e.OPTION4(() => e.CONSUME(
|
|
5142
|
+
const r = e.OPTION4(() => e.CONSUME(ur));
|
|
5140
5143
|
let i = e.OR([{ ALT: () => {
|
|
5141
|
-
const o = e.CONSUME(
|
|
5144
|
+
const o = e.CONSUME(tl), s = e.getLexerPosition(), a = e.OPTION(() => e.CONSUME(Po));
|
|
5142
5145
|
return e.ACTION(() => {
|
|
5143
5146
|
const c = this._ensureWhitespace(function(u, l) {
|
|
5144
5147
|
const h = u.match(/([$]?)([A-Za-z]{1,3})([$]?)([1-9][0-9]*)/);
|
|
5145
|
-
let N =
|
|
5148
|
+
let N = go(h[2]) - 1;
|
|
5146
5149
|
const S = h[1].length === 1;
|
|
5147
5150
|
let _ = +h[4] - 1;
|
|
5148
5151
|
const m = h[3].length === 1;
|
|
5149
5152
|
return S || N === Number.MIN_SAFE_INTEGER || (N -= l.colIndex), m || _ === Number.MIN_SAFE_INTEGER || (_ -= l.rowIndex), { type: "cell", value: Object.freeze({ colIndex: N, rowIndex: _, $colIndex: S, $rowIndex: m }), inputs: null, isReference: !0 };
|
|
5150
5153
|
}(o.image, e.position), s);
|
|
5151
|
-
return a ? this._ensureWhitespace(
|
|
5154
|
+
return a ? this._ensureWhitespace(ir("#", c, !0), s) : c;
|
|
5152
5155
|
});
|
|
5153
5156
|
} }, { ALT: () => {
|
|
5154
|
-
const o = e.CONSUME(
|
|
5155
|
-
return e.ACTION(() => this._ensureWhitespace(
|
|
5157
|
+
const o = e.CONSUME(Lo);
|
|
5158
|
+
return e.ACTION(() => this._ensureWhitespace(or(o.image), e.getLexerPosition()));
|
|
5156
5159
|
} }, { ALT: () => {
|
|
5157
|
-
const o = e.CONSUME(
|
|
5160
|
+
const o = e.CONSUME(nl);
|
|
5158
5161
|
return e.ACTION(() => this._ensureWhitespace(function(s, a) {
|
|
5159
5162
|
const c = s.startsWith("$");
|
|
5160
5163
|
c && (s = s.substring(1));
|
|
5161
|
-
let u =
|
|
5164
|
+
let u = go(s) - 1;
|
|
5162
5165
|
return c || u === Number.MIN_SAFE_INTEGER || (u -= a.colIndex), { type: "cell", value: Object.freeze({ colIndex: u, rowIndex: Number.MIN_SAFE_INTEGER, $colIndex: c, $rowIndex: !1 }), inputs: null, isReference: !0 };
|
|
5163
5166
|
}(o.image, e.position), e.getLexerPosition()));
|
|
5164
5167
|
} }, { ALT: () => {
|
|
5165
|
-
const o = e.CONSUME(
|
|
5166
|
-
return e.ACTION(() => this._ensureWhitespace(
|
|
5168
|
+
const o = e.CONSUME(rl);
|
|
5169
|
+
return e.ACTION(() => this._ensureWhitespace(To(o.image, e.position), e.getLexerPosition()));
|
|
5167
5170
|
} }, { ALT: () => {
|
|
5168
|
-
const o = e.CONSUME(
|
|
5171
|
+
const o = e.CONSUME(_o);
|
|
5169
5172
|
return e.ACTION(() => this._ensureWhitespace(vn(o.image), e.getLexerPosition()));
|
|
5170
5173
|
} }]);
|
|
5171
5174
|
return e.ACTION(() => {
|
|
5172
5175
|
r && (i = Ce(r, i, !0), i = this._ensureWhitespace(i, e.getLexerPosition()));
|
|
5173
5176
|
}), i;
|
|
5174
|
-
}), e.RULE("prefixSheetName", () => e.OR([{ ALT: () => e.CONSUME(
|
|
5177
|
+
}), e.RULE("prefixSheetName", () => e.OR([{ ALT: () => e.CONSUME(el).image.slice(0, -1) }, { ALT: () => e.CONSUME(qu).image.slice(1, -2).replace(/''/g, "'") }])), e.performSelfAnalysis();
|
|
5175
5178
|
}
|
|
5176
5179
|
_reportError(e, n, r = void 0, i = "SyntaxError") {
|
|
5177
5180
|
r === void 0 && (r = this.getLexerPosition()), e.error = !0, this.astErrors.push({ name: i, message: n, previousToken: this.input[r], ast: e });
|
|
@@ -5191,7 +5194,7 @@ class Sl extends qc {
|
|
|
5191
5194
|
}
|
|
5192
5195
|
_createAST(e, n) {
|
|
5193
5196
|
const r = function(a) {
|
|
5194
|
-
const c =
|
|
5197
|
+
const c = ku.tokenize(a);
|
|
5195
5198
|
if (c.errors.length > 0) {
|
|
5196
5199
|
const u = c.errors[0], l = u.line, h = u.column;
|
|
5197
5200
|
let N = `
|
|
@@ -5214,22 +5217,22 @@ class Sl extends qc {
|
|
|
5214
5217
|
if (u === "function" && a.value && a.value.toUpperCase().startsWith("_XLFN.")) {
|
|
5215
5218
|
const l = a.value.substring(6);
|
|
5216
5219
|
let h = a.image.substring(6), N = a;
|
|
5217
|
-
l === "ANCHORARRAY" ? (N =
|
|
5220
|
+
l === "ANCHORARRAY" ? (N = ir("#", a.inputs[0], !0), h = "#") : l === "SINGLE" ? (N = Ce("@", a.inputs[0], !0), h = "@") : N = Ao(l, a.inputs), ar(N, a), N.image = h, u = (a = N).type;
|
|
5218
5221
|
}
|
|
5219
5222
|
if (c?.isReference) {
|
|
5220
5223
|
const l = c.value;
|
|
5221
5224
|
if ((l === ":" || l === ".:." || l === ".:" || l === ":.") && Number.isInteger(a.value)) {
|
|
5222
5225
|
const h = c.inputs[0] === a ? c.inputs[1] : c.inputs[0];
|
|
5223
5226
|
if (h && Number.isInteger(h.value)) {
|
|
5224
|
-
const N =
|
|
5225
|
-
return
|
|
5227
|
+
const N = To(a.image, s);
|
|
5228
|
+
return ar(N, a), N;
|
|
5226
5229
|
}
|
|
5227
5230
|
}
|
|
5228
5231
|
} else if (u === "cell") {
|
|
5229
5232
|
const l = a.value;
|
|
5230
5233
|
if (l.rowIndex === Number.MIN_SAFE_INTEGER || l.colIndex >= 16384) {
|
|
5231
|
-
const h =
|
|
5232
|
-
return
|
|
5234
|
+
const h = or(a.image);
|
|
5235
|
+
return ar(h, a), h;
|
|
5233
5236
|
}
|
|
5234
5237
|
}
|
|
5235
5238
|
return a;
|
|
@@ -5244,9 +5247,9 @@ class Sl extends qc {
|
|
|
5244
5247
|
o = c instanceof D.Parse ? c : new D.Parse(c.message, c);
|
|
5245
5248
|
}
|
|
5246
5249
|
const s = this.errors;
|
|
5247
|
-
s.length > 0 && (o =
|
|
5250
|
+
s.length > 0 && (o = Ro(s[0], n));
|
|
5248
5251
|
const a = this.astErrors;
|
|
5249
|
-
return a.length > 0 && (o =
|
|
5252
|
+
return a.length > 0 && (o = Ro(a[0], n)), i = r ? dn(r, o) : { ast: null, evaluations: ft.EmptyArray, executions: ft.EmptyArray, precedentsAbsolute: ft.EmptyArray, precedentsExecute: ft.EmptyArray, precedentsNamed: null, precedentsRelative: ft.EmptyArray, precedentsRoot: ft.EmptyArray, references: ft.EmptyArray, tokens: ft.EmptyArray, error: o }, i;
|
|
5250
5253
|
}
|
|
5251
5254
|
}
|
|
5252
5255
|
class Me {
|
|
@@ -5254,7 +5257,7 @@ class Me {
|
|
|
5254
5257
|
this._options = e, this._compiled = n;
|
|
5255
5258
|
}
|
|
5256
5259
|
getTextAt(e, n, r = !1) {
|
|
5257
|
-
return r ? Ye(this._compiled.tokens) :
|
|
5260
|
+
return r ? Ye(this._compiled.tokens) : Ws(this._compiled.tokens, e, n);
|
|
5258
5261
|
}
|
|
5259
5262
|
getTokens() {
|
|
5260
5263
|
return this._compiled.tokens;
|
|
@@ -5305,7 +5308,7 @@ class Me {
|
|
|
5305
5308
|
const y = this._compiled.ast, p = Ke(y, (A) => {
|
|
5306
5309
|
if (!A || !A.isReference) return;
|
|
5307
5310
|
const v = A.type;
|
|
5308
|
-
if (!n &&
|
|
5311
|
+
if (!n && Bs.includes(A.value)) {
|
|
5309
5312
|
const E = u[0], R = u[1];
|
|
5310
5313
|
let M = E.evalIndex === _, L = R.evalIndex === m;
|
|
5311
5314
|
if (M || L) {
|
|
@@ -5320,7 +5323,7 @@ class Me {
|
|
|
5320
5323
|
if (n) if (S === N) {
|
|
5321
5324
|
let E = I ? l : h;
|
|
5322
5325
|
d = { ...A }, d.value = E, d.image = null;
|
|
5323
|
-
} else d = N ?
|
|
5326
|
+
} else d = N ? wr(":", er(l), er(h), !0) : er(l);
|
|
5324
5327
|
else d = vn(), d.image = "#REF!";
|
|
5325
5328
|
return d;
|
|
5326
5329
|
}
|
|
@@ -5345,7 +5348,7 @@ class Me {
|
|
|
5345
5348
|
l[p] = A;
|
|
5346
5349
|
}
|
|
5347
5350
|
let N = !1;
|
|
5348
|
-
const S = s.precedentsExecute, _ = S.length, m =
|
|
5351
|
+
const S = s.precedentsExecute, _ = S.length, m = Mr;
|
|
5349
5352
|
for (let p = 0; p < _; p++) {
|
|
5350
5353
|
const T = S[p], g = T.op;
|
|
5351
5354
|
if (!g) {
|
|
@@ -5520,7 +5523,7 @@ class Me {
|
|
|
5520
5523
|
if (i.type === "cell") return this;
|
|
5521
5524
|
if (i.value === "@") return this;
|
|
5522
5525
|
if (!r) return this;
|
|
5523
|
-
const o =
|
|
5526
|
+
const o = Gs(n) + Ks(e);
|
|
5524
5527
|
if (r.has(o)) return this;
|
|
5525
5528
|
const s = dn(Ce("@", i, !0), this._compiled.error);
|
|
5526
5529
|
return new Me(this._options, s);
|
|
@@ -5545,7 +5548,7 @@ class Me {
|
|
|
5545
5548
|
} catch {
|
|
5546
5549
|
n = D.BuiltIn.Value;
|
|
5547
5550
|
}
|
|
5548
|
-
return n?.isIRange ? n.size === 1 ? (n = n.getValueAt(0, 0,
|
|
5551
|
+
return n?.isIRange ? n.size === 1 ? (n = n.getValueAt(0, 0, Ol), (n = Xe(n, e)) === null && (n = 0)) : n = n.fillEmpty(0) : (n = Xe(n, e)) === null && (n = 0), n;
|
|
5549
5552
|
}
|
|
5550
5553
|
get [Symbol.toStringTag]() {
|
|
5551
5554
|
return "[FormulaBlock]";
|
|
@@ -5561,12 +5564,12 @@ class Me {
|
|
|
5561
5564
|
return Ye(e.tokens);
|
|
5562
5565
|
}
|
|
5563
5566
|
}
|
|
5564
|
-
const
|
|
5565
|
-
for (let t = 0; t <
|
|
5566
|
-
const
|
|
5567
|
-
class
|
|
5567
|
+
const Mr = new Array(20);
|
|
5568
|
+
for (let t = 0; t < Mr.length; t++) Mr[t] = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0, sheetName: null };
|
|
5569
|
+
const Ol = { type: null };
|
|
5570
|
+
class _l {
|
|
5568
5571
|
constructor(e) {
|
|
5569
|
-
this._options = { getEntireCoords:
|
|
5572
|
+
this._options = { getEntireCoords: $s, ...e }, this._astBuilder = new vl();
|
|
5570
5573
|
}
|
|
5571
5574
|
parse(e, n) {
|
|
5572
5575
|
e.getPosition().sheetName;
|
|
@@ -5578,5 +5581,5 @@ class xl {
|
|
|
5578
5581
|
}
|
|
5579
5582
|
}
|
|
5580
5583
|
export {
|
|
5581
|
-
|
|
5584
|
+
_l as FormulaParser
|
|
5582
5585
|
};
|