@marimo-team/islands 0.16.5 → 0.17.1
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/dist/{fullscreen-D1yTiBlu.js → Combination-De9yoNY5.js} +855 -795
- package/dist/{ConnectedDataExplorerComponent-D96i9G-X.js → ConnectedDataExplorerComponent-DuvpJOKp.js} +102 -123
- package/dist/{ImageComparisonComponent-D4Tv9QzJ.js → ImageComparisonComponent--etUl2pp.js} +2 -2
- package/dist/{_baseIsEqual-oN7pRNcM.js → _baseIsEqual-BFlyFUxC.js} +20 -20
- package/dist/{_basePickBy-CYvzhRjy.js → _basePickBy-gCCvtjgp.js} +3 -3
- package/dist/{_baseProperty-DGUdIBuu.js → _baseProperty-BuqBC0Ie.js} +5 -5
- package/dist/{_baseUniq-B5gfSl8S.js → _baseUniq-CKN9mEDq.js} +5 -5
- package/dist/any-language-editor-Du2Q_6IK.js +156 -0
- package/dist/apl-CUm2DGqh.js +4 -0
- package/dist/{arc-B1iVbHTB.js → arc-C_O2hc-b.js} +2 -2
- package/dist/architecture-O4VJ6CD3-PFw3eFBY.js +21 -0
- package/dist/{architectureDiagram-W76B3OCA-DkEhipkW.js → architectureDiagram-W76B3OCA-CrK99pJi.js} +41 -40
- package/dist/asciiarmor-lqJ78U01.js +4 -0
- package/dist/asn1-CjwpSTlW.js +4 -0
- package/dist/assets/__vite-browser-external-DHoMWs4M.js +1 -0
- package/dist/assets/worker-B6tH8gPO.js +54 -0
- package/dist/{blockDiagram-QIGZ2CNN-DZOqLMYa.js → blockDiagram-QIGZ2CNN-BJOEyO6w.js} +101 -111
- package/dist/brainfuck-ClvDI1dq.js +4 -0
- package/dist/{button-CEcjneWG.js → button-ADXOb_gX.js} +37 -40
- package/dist/{c4Diagram-FPNF74CW-DVaR7c9q.js → c4Diagram-FPNF74CW-7Pz_X9wF.js} +31 -54
- package/dist/{channel-Uh0KpgGW.js → channel-X-wRUxX6.js} +1 -1
- package/dist/{check-BK9zDfQk.js → check-COlaG7Ss.js} +1 -1
- package/dist/{chunk-3AY6CYHV-Dk2R2-S1.js → chunk-3AY6CYHV-BQH2fFpA.js} +37 -37
- package/dist/{chunk-4BX2VUAB-CqO6zUIz.js → chunk-4BX2VUAB-D-QtDCKM.js} +1 -1
- package/dist/{chunk-4KMFLZZN-CloTfTwP.js → chunk-4KMFLZZN-BirZvvJS.js} +220 -329
- package/dist/{chunk-55IACEB6-I0rmqTua.js → chunk-55IACEB6-DjtPYZKs.js} +1 -1
- package/dist/{chunk-6OXUPJBA-BuROSTmo.js → chunk-6OXUPJBA-CTnnqlzw.js} +7 -7
- package/dist/{chunk-7GE3RBXV-B1-tsIPP.js → chunk-7GE3RBXV-CT47hCrL.js} +1 -1
- package/dist/{chunk-ABZYJK2D-CLlso8tj.js → chunk-ABZYJK2D-B6ZsU6SR.js} +484 -1043
- package/dist/{chunk-BN7GFLIU-Db2-FjLn.js → chunk-BN7GFLIU-DYWEsrG4.js} +1 -1
- package/dist/{chunk-CVBHYZKI-BONeiloK.js → chunk-CVBHYZKI-BuzDGXz0.js} +3 -3
- package/dist/{chunk-CXMOBAN2-U9GJSP1d.js → chunk-CXMOBAN2-Bas2S5w1.js} +46 -54
- package/dist/chunk-EXTU4WIE-DXwNSukz.js +10 -0
- package/dist/{chunk-FMBD7UC4-DyV3BR_I.js → chunk-FMBD7UC4-CYKEpuPr.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-C9A1076P.js → chunk-JA3XYJ7Z-DcxfkcDC.js} +21 -25
- package/dist/{chunk-JEIROHC2-BGnFkSVq.js → chunk-JEIROHC2-C01ZIcIG.js} +1 -1
- package/dist/{chunk-K7UQS3LO-033LOsjK.js → chunk-K7UQS3LO-CmbT97MV.js} +7 -7
- package/dist/{chunk-KMC2YHZD-DT4Sq4Ld.js → chunk-KMC2YHZD-D64m-1E1.js} +1 -1
- package/dist/{chunk-QN33PNHL-gs44MZla.js → chunk-QN33PNHL-DjB0j8Dr.js} +2 -2
- package/dist/{chunk-QYVHNE3D-B8BO1AnT.js → chunk-QYVHNE3D-VA4W4oxG.js} +3 -4
- package/dist/{chunk-QZHKN3VN-CeN_GkU6.js → chunk-QZHKN3VN-KT0fl3Em.js} +1 -1
- package/dist/chunk-S3R3BYOJ-C5zmcMvn.js +380 -0
- package/dist/{chunk-T44TD3VJ-BwzD6YE0.js → chunk-T44TD3VJ-BMOgu-Hk.js} +1 -1
- package/dist/{chunk-TVAH2DTR-Bi6jpQJQ.js → chunk-TVAH2DTR-eKm8SKnH.js} +7 -8
- package/dist/{chunk-TZMSLE5B-D8klz2H_.js → chunk-TZMSLE5B-CQxFRiI2.js} +5 -6
- package/dist/{chunk-WFRQ32O7-CzSwSlN0.js → chunk-WFRQ32O7-Dg51o277.js} +1 -1
- package/dist/{chunk-WFWHJNB7-DN_cavM6.js → chunk-WFWHJNB7-DVLO98ge.js} +1 -1
- package/dist/{chunk-XRWGC2XP-Bb5eGNM2.js → chunk-XRWGC2XP-UNFKdWQh.js} +1 -1
- package/dist/{chunk-ZPAFE4SF-S5UYNb0V.js → chunk-ZPAFE4SF-DbCSwfLK.js} +22 -22
- package/dist/classDiagram-KNZD7YFC-HUFFxNdk.js +40 -0
- package/dist/classDiagram-v2-RKCZMP56-Dw7Acmuf.js +40 -0
- package/dist/{click-outside-container-DE4e7p1p.js → click-outside-container-2BH589Bq.js} +9 -14
- package/dist/{clike-Cg_DBrJ0.js → clike-Bc2PZzZQ.js} +1 -1
- package/dist/{clike-CxAz4p9E.js → clike-CytFO-kN.js} +1 -1
- package/dist/clojure-8GefCgPe.js +4 -0
- package/dist/{clone-Dk4FkKH0.js → clone-CCgVUJ6x.js} +1 -1
- package/dist/cmake-yAhT9H0F.js +4 -0
- package/dist/cobol-BmltueOY.js +4 -0
- package/dist/coffeescript-C7KEQBcH.js +4 -0
- package/dist/commonlisp-CNbiJRU-.js +4 -0
- package/dist/{constants-Cjd_3kwd.js → constants-BaCMVd12.js} +3 -3
- package/dist/{copy-C5RFg7ok.js → copy-GNcK40wy.js} +6 -2
- package/dist/{cose-bilkent-S5V4N54A-B3iOTGu5.js → cose-bilkent-S5V4N54A-BnvuJG6Y.js} +20 -20
- package/dist/crystal-OdjZZ8bc.js +4 -0
- package/dist/css-DhTxMmL_.js +5 -0
- package/dist/cypher-CgN8E3YI.js +4 -0
- package/dist/{cytoscape.esm-DTDV0Nbj.js → cytoscape.esm-BFEMljQI.js} +586 -661
- package/dist/d-g41sJcBC.js +4 -0
- package/dist/{dagre-5GWH7T2D-KM4Z11yT.js → dagre-5GWH7T2D-rn7tZYaQ.js} +41 -45
- package/dist/{dagre-B0u1urxE.js → dagre-Bghq6VKO.js} +58 -77
- package/dist/data-grid-overlay-editor-B4_Caieu.js +133 -0
- package/dist/{diagram-N5W7TBWH-CtO7az4G.js → diagram-N5W7TBWH-lbF94o-g.js} +46 -61
- package/dist/diagram-QEK2KX5R-CKBhSzsO.js +246 -0
- package/dist/{diagram-S2PKOQOG-CiXElLNQ.js → diagram-S2PKOQOG-161_1f53.js} +35 -34
- package/dist/diff-ViRYYhhg.js +4 -0
- package/dist/{dist-C3WYsf4K.js → dist-28HYzERB.js} +4 -10
- package/dist/{dist-CChOkSUg.js → dist-4dtbqf8A.js} +3 -3
- package/dist/{dist-CUnh_3Ii.js → dist-71jYYbWP.js} +2 -2
- package/dist/{dist-elblfNXO.js → dist-B8Pbw5ln.js} +2 -2
- package/dist/{dist-DPF5TTUg.js → dist-BAqp4Vtl.js} +126 -115
- package/dist/{dist-BEvIw5Nh.js → dist-BBhmkni2.js} +1 -1
- package/dist/{dist-C7ASiFxI.js → dist-BNRdMfJH.js} +273 -263
- package/dist/dist-BSyYM1Gi.js +15 -0
- package/dist/{dist-DzOpMdwb.js → dist-BYHiiJB-.js} +4 -4
- package/dist/{dist-DKFaZRVk.js → dist-B_wjJqqS.js} +2 -2
- package/dist/{dist-CutXTm8t.js → dist-BaPjLM6s.js} +1 -1
- package/dist/dist-BfJO8Bm9.js +12 -0
- package/dist/{dist-CGIZPq3J.js → dist-BqdQPWpQ.js} +2 -2
- package/dist/{dist--I6Htnlv.js → dist-C2IEc8og.js} +5 -5
- package/dist/{dist-CLvpViod.js → dist-C9-uHBqC.js} +2 -3
- package/dist/{dist-DBhzmFyH.js → dist-CJb8EiFO.js} +3 -3
- package/dist/dist-CLuF3AtO.js +6 -0
- package/dist/{dist-Dzk1C8l5.js → dist-CNAkUyxv.js} +11 -14
- package/dist/{dist-DNnYAdRE.js → dist-CNvMOZu9.js} +2 -2
- package/dist/{dist-CxD5E6Sh.js → dist-CPNnKuPh.js} +24 -22
- package/dist/{dist-C3QUag__.js → dist-CTIyD_KU.js} +3 -3
- package/dist/dist-CU04U4NL.js +10 -0
- package/dist/{dist-CZfRM7pE.js → dist-CWh5ZwcC.js} +2 -2
- package/dist/{dist-DW9er3Zq.js → dist-CWqB4bg8.js} +44 -23
- package/dist/{dist-CbRkrKrP.js → dist-CtOeHDJp.js} +5 -5
- package/dist/{dist-DL_ci7Yc.js → dist-Cw0F6l-7.js} +1 -1
- package/dist/{dist-BZBitvuL.js → dist-CwZcC4om.js} +1 -1
- package/dist/dist-DNUT6b47.js +6 -0
- package/dist/{dist-BBlFk9ki.js → dist-Da046MhT.js} +1 -1
- package/dist/{dist-Cib4sGDA.js → dist-DaTVdKJa.js} +2 -2
- package/dist/dist-DbAb2sY7.js +6 -0
- package/dist/dist-DiDFQ2Rk.js +6 -0
- package/dist/{dist-BQmQQqFH.js → dist-DlK420ke.js} +1 -1
- package/dist/{dist-o7fhJC7U.js → dist-Drf3cyIW.js} +3 -3
- package/dist/{dist-CdE2C2In.js → dist-DxESp2-T.js} +15 -20
- package/dist/{dist-JCAky9ND.js → dist-DzJem5xc.js} +17 -22
- package/dist/{dist-C5zMs_n5.js → dist-O0zVziwn.js} +3 -3
- package/dist/dist-SNAyAOJ-.js +6 -0
- package/dist/{dist-Bar1QnNM.js → dist-_4cudra1.js} +3 -3
- package/dist/dist-cbW5xJNV.js +6 -0
- package/dist/dist-h8eGLSbK.js +10 -0
- package/dist/{dist-BqgkUnEN.js → dist-xLN9qCAp.js} +3 -3
- package/dist/{dockerfile-Dum_1b-5.js → dockerfile-Cmlcqk35.js} +1 -1
- package/dist/dtd-RplB6hDg.js +4 -0
- package/dist/dylan-BX8KJufP.js +4 -0
- package/dist/ecl-CWtLaNMH.js +4 -0
- package/dist/eiffel-C-mlZPMn.js +4 -0
- package/dist/elm-CWp06vcb.js +4 -0
- package/dist/{erDiagram-AWTI2OKA-ZTIl9iQO.js → erDiagram-AWTI2OKA-BU7Qig7n.js} +32 -31
- package/dist/erlang-pfp22AZM.js +4 -0
- package/dist/error-banner-BAWlXn49.js +1012 -0
- package/dist/{esm-d0g2RsOH.js → esm-AtKNNGYO.js} +7 -9
- package/dist/esm-B2pocBPL.js +26 -0
- package/dist/{esm-DxFkg7a6.js → esm-Oo8OvZ6m.js} +1529 -1493
- package/dist/{esm-1_Mp6VD2.js → esm-YVnxJqkD.js} +340 -411
- package/dist/{factor-CdgiDGiu.js → factor-BZnBK3CG.js} +1 -1
- package/dist/factor-CEn53jua.js +5 -0
- package/dist/{flowDiagram-PVAE7QVJ-DsbofOzu.js → flowDiagram-PVAE7QVJ-JKJebWeY.js} +41 -40
- package/dist/{formats-ChrNdVdJ.js → formats-DOEuF6TR.js} +15 -19
- package/dist/forth-CL8vu_y8.js +4 -0
- package/dist/fortran-DsmXkYtE.js +4 -0
- package/dist/{ganttDiagram-OWAHRB6G-FnCH1Yj3.js → ganttDiagram-OWAHRB6G-BvWRfg05.js} +17 -16
- package/dist/gas-mYt9Rtlx.js +4 -0
- package/dist/gherkin-DHNCKBNj.js +4 -0
- package/dist/gitGraph-ZV4HHKMB-Cpd6k0O8.js +21 -0
- package/dist/{gitGraphDiagram-NY62KEGX-B0wvMNqU.js → gitGraphDiagram-NY62KEGX-VEJJBf5L.js} +38 -40
- package/dist/{glide-data-editor-D_kEsT07.js → glide-data-editor-Bne10icG.js} +1703 -1771
- package/dist/{graphlib-BGmr7CYF.js → graphlib-DRS8CrjA.js} +5 -5
- package/dist/groovy-DzRtOS5a.js +4 -0
- package/dist/haskell-Bl9iT_Mp.js +4 -0
- package/dist/haxe-DqA0ED6k.js +5 -0
- package/dist/{hotkeys-yFrUwyJK.js → hotkeys-DVxFjl2s.js} +16 -7
- package/dist/idl-WU2hil4i.js +4 -0
- package/dist/info-63CPKGFF-CG-xzUJo.js +21 -0
- package/dist/infoDiagram-STP46IZ2-zoRBGoup.js +45 -0
- package/dist/invariant-D3JoRb4I.js +6 -0
- package/dist/{isArrayLikeObject-DiDsNamC.js → isArrayLikeObject-DU5MCuQM.js} +3 -5
- package/dist/{isEmpty-BBG-u1GM.js → isEmpty-Do_v2sls.js} +2 -2
- package/dist/{isSymbol-BxF-_8BA.js → isSymbol-CtkA8Y0a.js} +1 -1
- package/dist/{javascript-Dfq1qI35.js → javascript-DGukg1sB.js} +2 -2
- package/dist/javascript-QY2BGJeV.js +5 -0
- package/dist/jinja2-Czleq7Sk.js +4 -0
- package/dist/{journeyDiagram-BIP6EPQ6-B3PotfAW.js → journeyDiagram-BIP6EPQ6-CsgEQgxh.js} +28 -28
- package/dist/julia-Dru3Qi0y.js +4 -0
- package/dist/{kanban-definition-6OIFK2YF-BTrQZ3LN.js → kanban-definition-6OIFK2YF-Bi8Ete2P.js} +42 -41
- package/dist/{katex-dN__NFdn.js → katex-C-g3rKKt.js} +1 -1
- package/dist/{katex-BE4xflfm.js → katex-DgfMWJY9.js} +149 -173
- package/dist/{label-BinTsX-u.js → label-BiVIU_wb.js} +252 -253
- package/dist/{line-C6-zz71o.js → line-B7-GoF1m.js} +3 -3
- package/dist/{linear-DyTdUIqX.js → linear-DeGGALuc.js} +4 -4
- package/dist/livescript-Dxqi_HLT.js +4 -0
- package/dist/{loader-Dijti3y4.js → loader-BBqwtZWj.js} +19 -26
- package/dist/lua-ByH1cUQZ.js +4 -0
- package/dist/main.js +17025 -17039
- package/dist/{marked.esm-3RjvXPoO.js → marked.esm-DkVwEwtO.js} +5 -5
- package/dist/mathematica-CWJIFuES.js +4 -0
- package/dist/mbox-qhPIGaUI.js +4 -0
- package/dist/{memoize-Dq87l1O_.js → memoize-D7eDkf3R.js} +1 -1
- package/dist/{merge-BPDCIm8P.js → merge-C_6cGM6o.js} +1 -1
- package/dist/{mermaid-MWiyXDcI.js → mermaid-BmtvsZ2m.js} +323 -339
- package/dist/{mermaid-parser.core-CSFx6MQ7.js → mermaid-parser.core-geyG_6o0.js} +8 -8
- package/dist/{mhchem-DZ68WS0G.js → mhchem-OhAaJ0fA.js} +1 -1
- package/dist/{min-BzhKOmZo.js → min-Dwa_NbP6.js} +7 -7
- package/dist/{mindmap-definition-Q6HEUPPD-9hhnrO1k.js → mindmap-definition-Q6HEUPPD-B-wmX1oG.js} +29 -28
- package/dist/mirc-yYcXhXBY.js +4 -0
- package/dist/mllike-BfT_Nl9x.js +6 -0
- package/dist/modelica-lVDtz1Rm.js +4 -0
- package/dist/mscgen-DvwdD1QJ.js +6 -0
- package/dist/mumps-BiY3GwKd.js +4 -0
- package/dist/{node-sql-parser-13oju30e.js → node-sql-parser-CoPWN4hn.js} +14343 -14351
- package/dist/{now-DVBcRCoE.js → now-DumxsrcX.js} +1 -1
- package/dist/{nsis-BW6_XagK.js → nsis-D4bLR_Y1.js} +1 -1
- package/dist/nsis-Dk18Sq_4.js +5 -0
- package/dist/ntriples-Cj-8VqKF.js +4 -0
- package/dist/{number-overlay-editor-D1YdiOrm.js → number-overlay-editor-D6r-48ka.js} +18 -24
- package/dist/octave-BgFAaYjU.js +4 -0
- package/dist/once-3OSMKEsL.js +74 -0
- package/dist/{ordinal-BXk5xAj2.js → ordinal-DpEbSVPc.js} +1 -1
- package/dist/oz-IsEG1I1m.js +4 -0
- package/dist/packet-HUATNLJX-Cafuo3IG.js +21 -0
- package/dist/pascal-BVf7FtIE.js +4 -0
- package/dist/perl-BM0-y4mZ.js +4 -0
- package/dist/pie-WTHONI2E-BE0pHBwB.js +21 -0
- package/dist/{pieDiagram-ADFJNKIX-CSBC0ZgF.js → pieDiagram-ADFJNKIX-C3GvPNUL.js} +40 -39
- package/dist/pig-CLBjzQmc.js +4 -0
- package/dist/powershell-B_qvE33J.js +4 -0
- package/dist/powershell-Dr7WZMDU.js +236 -0
- package/dist/{precisionRound-DbP73hkf.js → precisionRound-7YYJq2rW.js} +1 -1
- package/dist/properties-CUTpsH2y.js +4 -0
- package/dist/protobuf-DqCP8a-0.js +4 -0
- package/dist/pug-BvexKkw4.js +5 -0
- package/dist/{pug-Bmups_z0.js → pug-Dv3gE36O.js} +1 -1
- package/dist/puppet-CoIi0R3f.js +4 -0
- package/dist/purify.es-CrfFzTyi.js +536 -0
- package/dist/python-C-11-YMh.js +5 -0
- package/dist/{q-BzWcnVri.js → q-BzRpKgfd.js} +3 -2
- package/dist/q-CCVgEip7.js +4 -0
- package/dist/{quadrantDiagram-LMRXKWRM-h7nHf8xG.js → quadrantDiagram-LMRXKWRM-DPXwGNVa.js} +11 -10
- package/dist/r-CIdR0Sfs.js +4 -0
- package/dist/radar-NJJJXTRR-0adgjw0u.js +21 -0
- package/dist/{range-CgK0-PEw.js → range-CIbLpsrs.js} +3 -3
- package/dist/{react-plotly-BZakcxdv.js → react-plotly-DYyvxcRD.js} +4365 -4706
- package/dist/{requirementDiagram-4UW4RH46-BGEurQYq.js → requirementDiagram-4UW4RH46-Cs3Hqnm0.js} +24 -23
- package/dist/rpm-Dwvm039g.js +5 -0
- package/dist/ruby-DpTnO5gb.js +4 -0
- package/dist/{sankeyDiagram-GR3RE2ED-CxeJ_jfl.js → sankeyDiagram-GR3RE2ED-Be1d_Xf7.js} +7 -6
- package/dist/sas-CK9boxgv.js +4 -0
- package/dist/scheme-Y1aYL-Qq.js +4 -0
- package/dist/{sequenceDiagram-C3RYC4MD-CbFxwyr_.js → sequenceDiagram-C3RYC4MD-lbtovKTa.js} +24 -33
- package/dist/shell-D3eXGsHd.js +4 -0
- package/dist/sieve-BdwSFdWJ.js +4 -0
- package/dist/{simple-mode-Cgyya8F-.js → simple-mode-BMmwP_vI.js} +1 -1
- package/dist/{slides-component-BEyG25AH.js → slides-component-BoeQU7-s.js} +1012 -1033
- package/dist/smalltalk-BTYJquCm.js +4 -0
- package/dist/sparql-CYF0g4Cc.js +4 -0
- package/dist/{src-BNNJRxz3.js → src-BTqT1mA1.js} +6 -6
- package/dist/{stateDiagram-KXAO66HF-A61bMf29.js → stateDiagram-KXAO66HF-BmbR-Rol.js} +48 -49
- package/dist/stateDiagram-v2-UMBNRL4Z-DdJ7qVWc.js +39 -0
- package/dist/{step-IHYrujTc.js → step-2RJrMSSG.js} +1 -1
- package/dist/stex-CyWhoWHt.js +5 -0
- package/dist/style.css +1 -1
- package/dist/stylus-BBiKaI2h.js +4 -0
- package/dist/swift-COb15qFR.js +4 -0
- package/dist/tcl-Jik1LXu9.js +4 -0
- package/dist/textile-BFHPD3wr.js +4 -0
- package/dist/{time-D3tzCqJ6.js → time-BB30r1tK.js} +4 -4
- package/dist/{timeline-definition-XQNQX7LJ-BwdsB7CR.js → timeline-definition-XQNQX7LJ-1mv5caPW.js} +17 -17
- package/dist/{timer-D3Zlu9ow.js → timer-CcUhugb0.js} +2 -2
- package/dist/{toNumber-efKT08hh.js → toNumber-D3Ystr3y.js} +2 -2
- package/dist/{toString-BvCd3yJc.js → toString-CbuxCRDG.js} +2 -2
- package/dist/{toml-CIUkU1CP.js → toml-BqNUJWRI.js} +6 -2
- package/dist/toml-Brp9fBXs.js +4 -0
- package/dist/treemap-75Q7IDZK-CyBT8_Wh.js +21 -0
- package/dist/troff-CcZRW4vg.js +4 -0
- package/dist/ttcn-Bz_6ifRd.js +4 -0
- package/dist/ttcn-cfg-v-yi2rKc.js +4 -0
- package/dist/turtle-CDOsZYhB.js +4 -0
- package/dist/{types-1X1uZB4y.js → types-BPohCsA7.js} +198 -278
- package/dist/{useAsyncData-C4IqQK0g.js → useAsyncData-DHBqeb9a.js} +3 -2
- package/dist/{useDateFormatter-BCsBqetx.js → useDateFormatter-BkbjKw83.js} +9 -9
- package/dist/useIframeCapabilities-BEvvwlwt.js +46 -0
- package/dist/{useTheme-C2pgJzDH.js → useTheme-CnMbo-iq.js} +32 -29
- package/dist/vb-CL7fRwRw.js +4 -0
- package/dist/vbscript-CR2xfxpw.js +4 -0
- package/dist/{vega-component-Cv4J8CHz.js → vega-component-BfFcXZxw.js} +40 -39
- package/dist/{vega-loader.browser.module-Bi3ttvdj.js → vega-loader.browser.module-CFMtdrNw.js} +4 -5
- package/dist/velocity-CfuZoxPt.js +4 -0
- package/dist/verilog-CySTkzw_.js +4 -0
- package/dist/vhdl-Dvcd8KHW.js +4 -0
- package/dist/webidl-tbJt7sKk.js +4 -0
- package/dist/xquery-DJQVztyc.js +4 -0
- package/dist/{xychartDiagram-6GGTOJPD-BJRRi5HC.js → xychartDiagram-6GGTOJPD-njc-naaw.js} +24 -24
- package/dist/yacas-BbgBReEH.js +4 -0
- package/dist/z80-DPyb8VGz.js +4 -0
- package/dist/{zod-UPQf9SGn.js → zod-mAEs2ITo.js} +71 -81
- package/package.json +21 -17
- package/src/__mocks__/requests.ts +2 -0
- package/src/components/app-config/ai-config.tsx +1 -3
- package/src/components/app-config/common.tsx +14 -0
- package/src/components/app-config/data-form.tsx +282 -0
- package/src/components/app-config/user-config-form.tsx +36 -219
- package/src/components/chat/acp/__tests__/state.test.ts +75 -2
- package/src/components/chat/acp/agent-panel.tsx +143 -89
- package/src/components/chat/acp/blocks.tsx +77 -34
- package/src/components/chat/acp/state.ts +5 -1
- package/src/components/chat/acp/thread.tsx +12 -1
- package/src/components/chat/chat-panel.tsx +38 -5
- package/src/components/chat/chat-utils.ts +16 -5
- package/src/components/chat/markdown-renderer.css +1 -0
- package/src/components/chat/tool-call-accordion.tsx +7 -1
- package/src/components/data-table/__tests__/header-items.test.tsx +117 -0
- package/src/components/data-table/charts/__tests__/storage.test.ts +12 -6
- package/src/components/data-table/charts/charts.tsx +8 -2
- package/src/components/data-table/charts/storage.ts +1 -1
- package/src/components/data-table/column-header.tsx +4 -2
- package/src/components/data-table/column-wrapping/feature.ts +2 -0
- package/src/components/data-table/columns.tsx +12 -3
- package/src/components/data-table/data-table.tsx +7 -2
- package/src/components/data-table/header-items.tsx +63 -10
- package/src/components/data-table/renderers.tsx +3 -2
- package/src/components/dependency-graph/custom-node.tsx +11 -11
- package/src/components/dependency-graph/elements.ts +9 -4
- package/src/components/dependency-graph/panels.tsx +6 -4
- package/src/components/editor/Output.tsx +34 -25
- package/src/components/editor/actions/useCellActionButton.tsx +20 -4
- package/src/components/editor/ai/add-cell-with-ai.tsx +17 -3
- package/src/components/editor/ai/ai-completion-editor.tsx +203 -26
- package/src/components/editor/ai/completion-handlers.tsx +126 -23
- package/src/components/editor/cell/StagedAICell.tsx +81 -12
- package/src/components/editor/cell/code/cell-editor.tsx +6 -2
- package/src/components/editor/cell/useRunCells.ts +62 -30
- package/src/components/editor/chrome/panels/cache-panel.tsx +216 -0
- package/src/components/editor/chrome/panels/empty-state.tsx +3 -1
- package/src/components/editor/chrome/panels/packages-panel.tsx +1 -1
- package/src/components/editor/chrome/state.ts +1 -1
- package/src/components/editor/chrome/types.ts +66 -22
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +4 -0
- package/src/components/editor/chrome/wrapper/minimap.tsx +2 -0
- package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +108 -0
- package/src/components/editor/chrome/wrapper/sidebar.tsx +1 -1
- package/src/components/editor/code/readonly-diff.tsx +49 -0
- package/src/components/editor/columns/storage.ts +1 -1
- package/src/components/editor/errors/auto-fix.tsx +138 -32
- package/src/components/editor/errors/fix-mode.ts +20 -0
- package/src/components/editor/inputs/Inputs.styles.ts +1 -1
- package/src/components/editor/navigation/__tests__/clipboard.test.ts +0 -5
- package/src/components/editor/navigation/clipboard.ts +2 -1
- package/src/components/editor/notebook-cell.tsx +20 -7
- package/src/components/editor/output/CalloutOutput.tsx +1 -1
- package/src/components/editor/output/ConsoleOutput.tsx +27 -33
- package/src/components/editor/output/HtmlOutput.tsx +3 -2
- package/src/components/editor/output/JsonOutput.tsx +15 -1
- package/src/components/editor/output/MarimoTracebackOutput.tsx +69 -52
- package/src/components/editor/output/__tests__/HtmlOutput.test.tsx +134 -0
- package/src/components/editor/output/__tests__/json-output.test.ts +43 -0
- package/src/components/editor/output/__tests__/traceback.test.tsx +8 -1
- package/src/components/editor/output/useWrapText.ts +6 -1
- package/src/components/editor/package-alert.tsx +37 -32
- package/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx +5 -2
- package/src/components/forms/__tests__/form-utils.test.ts +4 -2
- package/src/components/home/state.ts +3 -2
- package/src/components/icons/copy-icon.tsx +11 -5
- package/src/components/scratchpad/scratchpad-history.ts +6 -1
- package/src/components/shortcuts/renderShortcut.tsx +3 -1
- package/src/components/slides/slides-component.tsx +25 -21
- package/src/components/ui/button.tsx +2 -0
- package/src/components/ui/confirmation-button.tsx +85 -0
- package/src/components/ui/context-menu.tsx +14 -4
- package/src/components/ui/dropdown-menu.tsx +14 -4
- package/src/components/ui/fullscreen.tsx +115 -1
- package/src/components/ui/popover.tsx +11 -3
- package/src/components/ui/range-slider.tsx +1 -1
- package/src/components/ui/select.tsx +7 -3
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/switch.tsx +2 -0
- package/src/components/ui/tooltip.tsx +10 -3
- package/src/core/ai/__tests__/staged-cells.test.ts +189 -64
- package/src/core/ai/config.ts +6 -2
- package/src/core/ai/context/providers/__tests__/__snapshots__/cell-output.test.ts.snap +17 -0
- package/src/core/ai/context/providers/__tests__/cell-output.test.ts +194 -10
- package/src/core/ai/context/providers/__tests__/datasource.test.ts +9 -1
- package/src/core/ai/context/providers/cell-output.ts +170 -112
- package/src/core/ai/context/providers/datasource.ts +25 -1
- package/src/core/ai/context/providers/tables.ts +2 -2
- package/src/core/ai/staged-cells.ts +32 -16
- package/src/core/ai/state.ts +8 -4
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +556 -0
- package/src/core/ai/tools/__tests__/registry.test.ts +41 -8
- package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +450 -0
- package/src/core/ai/tools/__tests__/utils.test.ts +87 -0
- package/src/core/ai/tools/base.ts +109 -6
- package/src/core/ai/tools/edit-notebook-tool.ts +239 -0
- package/src/core/ai/tools/registry.ts +48 -15
- package/src/core/ai/tools/run-cells-tool.ts +233 -0
- package/src/core/ai/tools/sample-tool.ts +53 -15
- package/src/core/ai/tools/utils.ts +23 -0
- package/src/core/cache/requests.ts +5 -0
- package/src/core/cells/__tests__/cells.test.ts +19 -1
- package/src/core/cells/__tests__/session.test.ts +20 -3
- package/src/core/cells/cells.ts +13 -8
- package/src/core/cells/session.ts +1 -1
- package/src/core/codemirror/__tests__/__snapshots__/setup.test.ts.snap +2 -0
- package/src/core/codemirror/__tests__/replace-editor-content.test.ts +336 -0
- package/src/core/codemirror/ai/resources.ts +13 -2
- package/src/core/codemirror/copilot/state.ts +4 -2
- package/src/core/codemirror/find-replace/navigate.ts +2 -2
- package/src/core/codemirror/format.ts +2 -9
- package/src/core/codemirror/language/__tests__/extension.test.ts +10 -2
- package/src/core/codemirror/language/__tests__/sql.test.ts +24 -6
- package/src/core/codemirror/language/languages/markdown.ts +16 -153
- package/src/core/codemirror/language/languages/python.ts +13 -10
- package/src/core/codemirror/language/languages/sql/sql-mode.ts +6 -1
- package/src/core/codemirror/language/languages/sql/sql.ts +43 -306
- package/src/core/codemirror/language/panel/markdown.tsx +2 -1
- package/src/core/codemirror/language/panel/panel.tsx +2 -7
- package/src/core/codemirror/language/utils.ts +3 -8
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +21 -14
- package/src/core/codemirror/lsp/federated-lsp.ts +20 -9
- package/src/core/codemirror/lsp/notebook-lsp.ts +35 -29
- package/src/core/codemirror/lsp/transports.ts +7 -13
- package/src/core/codemirror/lsp/types.ts +0 -13
- package/src/core/codemirror/replace-editor-content.ts +87 -0
- package/src/core/config/__tests__/config-schema.test.ts +3 -0
- package/src/core/config/config-schema.ts +12 -1
- package/src/core/config/feature-flag.tsx +2 -4
- package/src/core/errors/__tests__/errors.test.ts +1 -0
- package/src/core/errors/errors.ts +20 -6
- package/src/core/hotkeys/hotkeys.ts +12 -0
- package/src/core/islands/bridge.ts +2 -0
- package/src/core/islands/main.ts +4 -0
- package/src/core/kernel/messages.ts +1 -0
- package/src/core/lsp/__tests__/transport.test.ts +233 -0
- package/src/core/lsp/transport.ts +139 -0
- package/src/core/network/requests-network.ts +14 -0
- package/src/core/network/requests-static.ts +2 -0
- package/src/core/network/requests-toasting.ts +2 -0
- package/src/core/network/types.ts +5 -0
- package/src/core/rtc/state.ts +6 -1
- package/src/core/saving/save-component.tsx +43 -36
- package/src/core/vscode/is-in-vscode.ts +9 -0
- package/src/core/wasm/bridge.ts +2 -0
- package/src/core/wasm/store.ts +1 -1
- package/src/core/websocket/useMarimoWebSocket.tsx +8 -0
- package/src/css/app/Cell.css +31 -0
- package/src/css/app/codemirror-completions.css +1 -1
- package/src/css/globals.css +5 -0
- package/src/custom.d.ts +2 -0
- package/src/hooks/useIframeCapabilities.ts +14 -0
- package/src/hooks/useLocalStorage.ts +1 -1
- package/src/plugins/core/RenderHTML.tsx +65 -5
- package/src/plugins/core/__test__/RenderHTML.test.ts +25 -23
- package/src/plugins/core/__test__/renderHTML-sanitization.test.tsx +131 -0
- package/src/plugins/core/__test__/sanitize.test.ts +465 -0
- package/src/plugins/core/registerReactComponent.tsx +19 -2
- package/src/plugins/core/sanitize.ts +76 -0
- package/src/plugins/impl/DataTablePlugin.tsx +20 -19
- package/src/plugins/impl/FileBrowserPlugin.tsx +1 -3
- package/src/plugins/impl/FileUploadPlugin.tsx +1 -3
- package/src/plugins/impl/__tests__/DateTimePickerPlugin.test.tsx +40 -1
- package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +6 -0
- package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +8 -1
- package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +3 -0
- package/src/plugins/impl/chat/ChatPlugin.tsx +1 -1
- package/src/plugins/impl/chat/chat-ui.tsx +17 -2
- package/src/plugins/impl/chat/types.ts +1 -1
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +7 -2
- package/src/plugins/impl/plotly/__tests__/parse-from-template.test.ts +17 -0
- package/src/plugins/impl/plotly/parse-from-template.ts +2 -1
- package/src/utils/__tests__/arrays.test.ts +42 -0
- package/src/utils/__tests__/capabilities.test.ts +453 -0
- package/src/utils/__tests__/formatting.test.ts +107 -0
- package/src/utils/__tests__/json-parser.test.ts +13 -0
- package/src/utils/__tests__/local-storage.test.ts +1 -1
- package/src/utils/__tests__/storage.test.ts +21 -21
- package/src/utils/arrays.ts +25 -0
- package/src/utils/capabilities.ts +114 -0
- package/src/utils/copy.ts +6 -0
- package/src/utils/formatting.ts +51 -0
- package/src/utils/json/json-parser.ts +28 -3
- package/src/utils/numbers.ts +2 -2
- package/src/utils/{storage.ts → storage/jotai.ts} +16 -4
- package/src/utils/storage/storage.ts +57 -0
- package/src/utils/{localStorage.ts → storage/typed.ts} +22 -12
- package/dist/any-language-editor-CVFQlioK.js +0 -156
- package/dist/apl-ChlaBfxB.js +0 -4
- package/dist/architecture-O4VJ6CD3-BVeaxUcM.js +0 -21
- package/dist/asciiarmor-CcJmm3l_.js +0 -4
- package/dist/asn1-ThRYxoBE.js +0 -4
- package/dist/assets/__vite-browser-external-Dv_SHu1h.js +0 -1
- package/dist/assets/worker-DVOR9oZG.js +0 -54
- package/dist/brainfuck-CEM0JgDn.js +0 -4
- package/dist/chunk-EXTU4WIE-DECT9AAK.js +0 -14
- package/dist/chunk-S3R3BYOJ-DMQ1yeyq.js +0 -386
- package/dist/classDiagram-KNZD7YFC-BG53O6Jt.js +0 -39
- package/dist/classDiagram-v2-RKCZMP56-BmKILsGU.js +0 -39
- package/dist/clojure-B7RHyE9t.js +0 -4
- package/dist/cmake-TeTMP4I5.js +0 -4
- package/dist/cobol-DI-mxUER.js +0 -4
- package/dist/coffeescript-DHUFLqWp.js +0 -4
- package/dist/commonlisp-SLiUrh1m.js +0 -4
- package/dist/crystal-B4fY1ZfJ.js +0 -4
- package/dist/css-Bdoq3TzK.js +0 -5
- package/dist/cypher-CBU182fp.js +0 -4
- package/dist/d-D8myDZeH.js +0 -4
- package/dist/data-grid-overlay-editor-qNmJk2x0.js +0 -135
- package/dist/diagram-QEK2KX5R-fu8Noi3H.js +0 -245
- package/dist/diff-DJF_UB7H.js +0 -4
- package/dist/dist-52-_pKoy.js +0 -6
- package/dist/dist-6DOMStFn.js +0 -6
- package/dist/dist-B334aW7p.js +0 -10
- package/dist/dist-BOI9lUz-.js +0 -12
- package/dist/dist-C06uhBzF.js +0 -6
- package/dist/dist-CGkpguCB.js +0 -6
- package/dist/dist-CrApzUED.js +0 -6
- package/dist/dist-Dp2GLdCl.js +0 -14
- package/dist/dist-WHFsbMDr.js +0 -6
- package/dist/dist-hyKcTPG9.js +0 -10
- package/dist/dtd-DY8q65lC.js +0 -4
- package/dist/dylan-CBLcjWCi.js +0 -4
- package/dist/ecl-BSXPNfOw.js +0 -4
- package/dist/eiffel-BJf0PQX-.js +0 -4
- package/dist/elm-DWQwPCZS.js +0 -4
- package/dist/erlang-BWBaGZ5e.js +0 -4
- package/dist/error-banner-OQIGTqFR.js +0 -1012
- package/dist/esm-BO9n_s6u.js +0 -26
- package/dist/factor-DT1-MBPl.js +0 -5
- package/dist/forth-D9GDt3FB.js +0 -4
- package/dist/fortran-DHkRhDWw.js +0 -4
- package/dist/gas-7lQEOM0H.js +0 -4
- package/dist/gherkin-BLLyroYi.js +0 -4
- package/dist/gitGraph-ZV4HHKMB-z2v_cInC.js +0 -21
- package/dist/groovy-C-wabwj0.js +0 -4
- package/dist/haskell-DaxVQ_d1.js +0 -4
- package/dist/haxe-C2yLoC7h.js +0 -5
- package/dist/idl-DQBP8i7k.js +0 -4
- package/dist/info-63CPKGFF-GS4w6pCB.js +0 -21
- package/dist/infoDiagram-STP46IZ2-DE9YYPFg.js +0 -44
- package/dist/javascript-DRwFV9r5.js +0 -5
- package/dist/jinja2-CNoIpVmN.js +0 -4
- package/dist/julia-DXDf-GhP.js +0 -4
- package/dist/livescript-S2uhJQx7.js +0 -4
- package/dist/lua-Bvgs0y2G.js +0 -4
- package/dist/mathematica-D2zqfwIg.js +0 -4
- package/dist/mbox-SBcPaDuZ.js +0 -4
- package/dist/mirc-hkQc7sVF.js +0 -4
- package/dist/mllike-DRWPBlr9.js +0 -6
- package/dist/modelica-CO2ROGlP.js +0 -4
- package/dist/mscgen-BpX61bO6.js +0 -6
- package/dist/mumps-BCnFeIn6.js +0 -4
- package/dist/nsis-BaTOxlD1.js +0 -5
- package/dist/ntriples-zEo5BWjr.js +0 -4
- package/dist/octave-BE0RnCM9.js +0 -4
- package/dist/oz-C4_2Ttul.js +0 -4
- package/dist/packet-HUATNLJX-CjHqJIqk.js +0 -21
- package/dist/pascal-Q3jJucpw.js +0 -4
- package/dist/perl-DkXZIWHF.js +0 -4
- package/dist/pie-WTHONI2E-D67gLWtR.js +0 -21
- package/dist/pig-DCgEHdsu.js +0 -4
- package/dist/powershell-3rK_nRRJ.js +0 -236
- package/dist/powershell-Eo2-7MoM.js +0 -4
- package/dist/properties-C0IOX8WR.js +0 -4
- package/dist/protobuf--lGQUSRO.js +0 -4
- package/dist/pug-Cf8AQHMJ.js +0 -5
- package/dist/puppet-D7Z3dTJn.js +0 -4
- package/dist/python-FHIx_i8Y.js +0 -5
- package/dist/q-B7UA1feM.js +0 -4
- package/dist/r-Cc9R2A7N.js +0 -4
- package/dist/radar-NJJJXTRR-C-AZP_Te.js +0 -21
- package/dist/rpm-vhJNlrQ6.js +0 -5
- package/dist/ruby-CVluPY0M.js +0 -4
- package/dist/sas-A8DL8oy3.js +0 -4
- package/dist/scheme-6xHHcSXC.js +0 -4
- package/dist/shell-DHN-e5rf.js +0 -4
- package/dist/sieve-BuQwLY02.js +0 -4
- package/dist/smalltalk-BA4HPg2H.js +0 -4
- package/dist/sparql-Bf4yCuy3.js +0 -4
- package/dist/stateDiagram-v2-UMBNRL4Z-C_0FUzzk.js +0 -38
- package/dist/stex-D-I1cYeE.js +0 -5
- package/dist/stylus-BMeped2l.js +0 -4
- package/dist/swift-lwEdlZoC.js +0 -4
- package/dist/tcl-B03ipeqv.js +0 -4
- package/dist/textile-Cy55fYGC.js +0 -4
- package/dist/toml-BLgrVtfu.js +0 -4
- package/dist/treemap-75Q7IDZK-DTvwfpWt.js +0 -21
- package/dist/troff-g6EjN2O2.js +0 -4
- package/dist/ttcn-Dzvba8jK.js +0 -4
- package/dist/ttcn-cfg-CadG0p1K.js +0 -4
- package/dist/turtle-DkXAMWo9.js +0 -4
- package/dist/vb-C5dCiel8.js +0 -4
- package/dist/vbscript-I4bDEQln.js +0 -4
- package/dist/velocity-mt0fDwFH.js +0 -4
- package/dist/verilog-Dxq3KJkc.js +0 -4
- package/dist/vhdl-Km0QUlV-.js +0 -4
- package/dist/webidl-B3lJ2MRL.js +0 -4
- package/dist/xquery-CcIxNPEe.js +0 -4
- package/dist/yacas-oMa-f-tN.js +0 -4
- package/dist/z80-D03Nvn6l.js +0 -4
- package/src/core/codemirror/language/__tests__/ast.test.ts +0 -124
- package/src/core/codemirror/language/utils/ast.ts +0 -84
- package/src/core/codemirror/language/utils/quotes.ts +0 -18
- /package/dist/{_arrayReduce-CVwxyrBP.js → _arrayReduce-Cd9xQjbl.js} +0 -0
- /package/dist/{_baseSlice-OgpvpOOJ.js → _baseSlice-CE9WsQZm.js} +0 -0
- /package/dist/{_hasUnicode-BgIggCqE.js → _hasUnicode-DkEebvtD.js} +0 -0
- /package/dist/{apl-DZqo8Elt.js → apl-aGhy11IM.js} +0 -0
- /package/dist/{array-aAxy08hN.js → array-DYSXIreg.js} +0 -0
- /package/dist/{asciiarmor-DTzHAIeX.js → asciiarmor-DJKJ3Gkn.js} +0 -0
- /package/dist/{asn1-DrAXKsZH.js → asn1-C6f5IeNs.js} +0 -0
- /package/dist/{asterisk-oF4U3h48.js → asterisk-DB1poX9_.js} +0 -0
- /package/dist/{brainfuck-BYgLey30.js → brainfuck-Ch9vjun0.js} +0 -0
- /package/dist/{chunk-57QY23SG-0TxCfmy_.js → chunk-57QY23SG-BpXU7ph4.js} +0 -0
- /package/dist/{clojure-Bs2M3OUY.js → clojure-B_lpr3zt.js} +0 -0
- /package/dist/{cmake-DpI8vxJN.js → cmake-DaocNF4I.js} +0 -0
- /package/dist/{cobol-BQyrWo72.js → cobol-suTPtt7c.js} +0 -0
- /package/dist/{coffeescript-9ke9UHmw.js → coffeescript-CPLIvtqJ.js} +0 -0
- /package/dist/{colors-Cr_mZ2aH.js → colors-BXlG8Lmz.js} +0 -0
- /package/dist/{common-keywords-BzgeAvH1.js → common-keywords-Bhll7O3b.js} +0 -0
- /package/dist/{commonlisp-DghUdrUH.js → commonlisp-BqM3qFK7.js} +0 -0
- /package/dist/{crystal-DEf_SInh.js → crystal-AsSFu4ke.js} +0 -0
- /package/dist/{css-BzTU9lNO.js → css-Df7Sdeyh.js} +0 -0
- /package/dist/{cypher-a2v0c11S.js → cypher-CaVKL6Gu.js} +0 -0
- /package/dist/{d-SAswny-M.js → d-DCGWK7NQ.js} +0 -0
- /package/dist/{defaultLocale-BAgEOGks.js → defaultLocale-CYgZlqDF.js} +0 -0
- /package/dist/{defaultLocale-471SYAPk.js → defaultLocale-Cto8YOmX.js} +0 -0
- /package/dist/{diff-OJ-xLXcG.js → diff-CsxOM4Tr.js} +0 -0
- /package/dist/{dist-CK8Gj3GX.js → dist-C76MUPD3.js} +0 -0
- /package/dist/{dtd-BsUf-rer.js → dtd-Dwr0Jmks.js} +0 -0
- /package/dist/{duckdb-keywords-B0NOra5o.js → duckdb-keywords-7wAWf848.js} +0 -0
- /package/dist/{dylan-C0ZYngjn.js → dylan-A7-ZBSey.js} +0 -0
- /package/dist/{ebnf-DF1xx0b_.js → ebnf-9_SaGDUz.js} +0 -0
- /package/dist/{ecl-Bsuvoouq.js → ecl-BzJVIQDc.js} +0 -0
- /package/dist/{eiffel-DgfSpLi-.js → eiffel-CO9eC_Op.js} +0 -0
- /package/dist/{elm-GNxDj-5E.js → elm-CVAWj8SB.js} +0 -0
- /package/dist/{emotion-is-prop-valid.esm-BHMWayAG.js → emotion-is-prop-valid.esm-C3Yi5GQt.js} +0 -0
- /package/dist/{erlang-Ds3uY1kL.js → erlang-DWbZP546.js} +0 -0
- /package/dist/{fcl-CqBgSioc.js → fcl-CM9t2iay.js} +0 -0
- /package/dist/{forth-JCaLysGk.js → forth-BTYqUuu3.js} +0 -0
- /package/dist/{fortran-Dc2AoKAl.js → fortran-DgAjHcCq.js} +0 -0
- /package/dist/{gas-Q4Uz82YW.js → gas-BjDSWPZd.js} +0 -0
- /package/dist/{gherkin-Dpxe49sQ.js → gherkin-ClRqqpKv.js} +0 -0
- /package/dist/{groovy-D8mTRCu6.js → groovy-BzNjnc8x.js} +0 -0
- /package/dist/{haskell-2_8cC4wY.js → haskell-DLdk34Jq.js} +0 -0
- /package/dist/{haxe-Bl9zkZlz.js → haxe-l6gaY_IS.js} +0 -0
- /package/dist/{http-DKCqY6yS.js → http-6Qg7z_h2.js} +0 -0
- /package/dist/{idl-Dn-HNfGW.js → idl-hlWT4D26.js} +0 -0
- /package/dist/{init-D6eDd7H0.js → init-tZ42Torz.js} +0 -0
- /package/dist/{jinja2-JjFiAGKk.js → jinja2-DI5k_Er3.js} +0 -0
- /package/dist/{julia-R5wne8eu.js → julia-BvDZDiIT.js} +0 -0
- /package/dist/{livescript-DSwokrYj.js → livescript-2YMQfkfI.js} +0 -0
- /package/dist/{lua-CgXfrp2-.js → lua-DIUrQRfA.js} +0 -0
- /package/dist/{main-Czi9-LVy.js → main-BMTpe7M0.js} +0 -0
- /package/dist/{math-C7wLpe9K.js → math-qsHyz2Eo.js} +0 -0
- /package/dist/{mathematica-BVli92MR.js → mathematica-Dqmg_BwL.js} +0 -0
- /package/dist/{mbox-CMFlocdS.js → mbox-Cng-P-F1.js} +0 -0
- /package/dist/{mirc-BkW04Zpc.js → mirc-CNDqOVhQ.js} +0 -0
- /package/dist/{mllike-DEjvHvNV.js → mllike-C1n2UDyX.js} +0 -0
- /package/dist/{modelica-CxDn-oje.js → modelica-QqQC2pFj.js} +0 -0
- /package/dist/{mscgen-D78wmE-w.js → mscgen-C3fl8uhp.js} +0 -0
- /package/dist/{mumps-Bi0IvPOV.js → mumps-BeCUbMej.js} +0 -0
- /package/dist/{nginx-DErPZFhX.js → nginx-ejv7DsBz.js} +0 -0
- /package/dist/{ntriples-Btyp6wRL.js → ntriples-CUgUpcma.js} +0 -0
- /package/dist/{octave-CZA6-2F8.js → octave-BD652tGl.js} +0 -0
- /package/dist/{oz-Bm6LSNfE.js → oz-DrRsFa0K.js} +0 -0
- /package/dist/{pascal-B4J6a9BH.js → pascal-hpcx9sVn.js} +0 -0
- /package/dist/{path-VDkDgx1I.js → path-Bbv2tLY1.js} +0 -0
- /package/dist/{perl-CzVqxS08.js → perl-DW8XHeFc.js} +0 -0
- /package/dist/{pig-Clh03cnn.js → pig-Cv7Nxbfo.js} +0 -0
- /package/dist/{prop-types-0wNc-99T.js → prop-types-Bd16OEUP.js} +0 -0
- /package/dist/{properties-D7ch1Wyb.js → properties-D-qJDXAM.js} +0 -0
- /package/dist/{protobuf-DrkdrMPK.js → protobuf-B48QZbd3.js} +0 -0
- /package/dist/{puppet-BtZG8zdO.js → puppet-15JDyiY2.js} +0 -0
- /package/dist/{python-B6FKOVIv.js → python-DWkQA94h.js} +0 -0
- /package/dist/{r-Dnvo5-96.js → r-dcNRe_Q8.js} +0 -0
- /package/dist/{range-PcytnUSJ.js → range-CQvYp_qE.js} +0 -0
- /package/dist/{rpm-B1DrgfnX.js → rpm-Djl3Dsf1.js} +0 -0
- /package/dist/{ruby-CelfUg17.js → ruby-Dd2CZTip.js} +0 -0
- /package/dist/{sas-DfSQFMWG.js → sas-DYF5_Iqu.js} +0 -0
- /package/dist/{scheme-BplhaWuO.js → scheme-YtWcji1H.js} +0 -0
- /package/dist/{shell-DqU5OS2c.js → shell-C3uC3Y0Z.js} +0 -0
- /package/dist/{sieve-BE4_IyGa.js → sieve-DHB17sQG.js} +0 -0
- /package/dist/{smalltalk-B_WPL8Nx.js → smalltalk-Y5v1Np3H.js} +0 -0
- /package/dist/{solr-DlJFg7H5.js → solr-DvRJLlRD.js} +0 -0
- /package/dist/{sparql-7XIlcOgW.js → sparql-BEt3GJwM.js} +0 -0
- /package/dist/{spreadsheet-BdZSVwVp.js → spreadsheet-Dp4B9_rc.js} +0 -0
- /package/dist/{sql-CCrq7lfJ.js → sql-DBsUs8nQ.js} +0 -0
- /package/dist/{stex-BiFc8QAu.js → stex-C6-x52ei.js} +0 -0
- /package/dist/{stylus-DlSH9xpH.js → stylus-DroA8via.js} +0 -0
- /package/dist/{swift-e3tMTZgJ.js → swift-DR0x1ESK.js} +0 -0
- /package/dist/{tcl-DfZMC20G.js → tcl-BeuTFc_c.js} +0 -0
- /package/dist/{textile-DaSeca5U.js → textile-C0ikhHN3.js} +0 -0
- /package/dist/{tiddlywiki-dfoiz8pS.js → tiddlywiki-C_2Nvsgu.js} +0 -0
- /package/dist/{tiki-yJbQzhma.js → tiki-CKQlhmQQ.js} +0 -0
- /package/dist/{treemap-BpgMKHv-.js → treemap-BYLUKIzA.js} +0 -0
- /package/dist/{troff-FN_FrCXR.js → troff-DkK0f2ZH.js} +0 -0
- /package/dist/{tslib.es6-DofFyd9S.js → tslib.es6-3ZL768sZ.js} +0 -0
- /package/dist/{ttcn-7_i4HlyB.js → ttcn-Bf8vrg-_.js} +0 -0
- /package/dist/{ttcn-cfg-B46AlBUV.js → ttcn-cfg-DjCKzd95.js} +0 -0
- /package/dist/{turtle-QQfeFveR.js → turtle-SSc84S9m.js} +0 -0
- /package/dist/{vb-DToPVnLa.js → vb-CQ6DC3cL.js} +0 -0
- /package/dist/{vbscript-CtsNaTz4.js → vbscript-Dw0gFssg.js} +0 -0
- /package/dist/{velocity-CAoNe6ns.js → velocity-BvJQyBmj.js} +0 -0
- /package/dist/{verilog-DrDOMiJq.js → verilog-CKGAvQjj.js} +0 -0
- /package/dist/{vhdl-DnO0OEPh.js → vhdl-B40_x6fM.js} +0 -0
- /package/dist/{webidl-Or6d1ZfA.js → webidl-Bi9hczCv.js} +0 -0
- /package/dist/{xquery-CEp_Mcpr.js → xquery-DwWUXvP3.js} +0 -0
- /package/dist/{yacas-DgnYrSlp.js → yacas-ClUs0mmH.js} +0 -0
- /package/dist/{z80-DlG_kyeB.js → z80-DPC4UGzR.js} +0 -0
|
@@ -3,17 +3,17 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
var _a, _b, _c, _d, _e;
|
|
5
5
|
import { i as __reExport, r as __export, s as __toESM, t as __commonJSMin } from "./chunk-DgPTj83v.js";
|
|
6
|
-
import { B as isObject_default, C as _isIterateeCall_default, E as _baseRest_default, H as isObjectLike_default, O as _copyObject_default, R as isFunction_default, S as _createAssigner_default, U as _baseGetTag_default, V as isArray_default, _ as _baseUnary_default, g as _nodeUtil_default, j as _baseAssignValue_default, k as _assignValue_default, t as isArrayLikeObject_default, w as isArrayLike_default, x as _isPrototype_default, z as identity_default } from "./isArrayLikeObject-
|
|
7
|
-
import { n as _arrayMap_default } from "./toString-
|
|
8
|
-
import { i as toInteger_default, r as flatten_default, t as _basePickBy_default } from "./_basePickBy-
|
|
9
|
-
import { a as _SetCache_default, f as _arrayFilter_default, i as _arraySome_default, m as keys_default, r as _cacheHas_default } from "./_baseIsEqual-
|
|
10
|
-
import { a as filter_default, f as _baseIteratee_default, g as _baseIndexOf_default, h as _arrayIncludes_default, i as values_default, l as _arrayIncludesWith_default, m as _getAllKeysIn_default, n as reduce_default, o as _baseFilter_default, r as isUndefined_default, s as forEach_default, t as _baseUniq_default, u as _baseEach_default, v as noop_default } from "./_baseUniq-
|
|
11
|
-
import { i as _baseFlatten_default } from "./_baseProperty-
|
|
12
|
-
import { t as _baseSlice_default } from "./_baseSlice-
|
|
13
|
-
import { t as clone_default } from "./clone-
|
|
14
|
-
import { a as has_default, c as find_default, i as isString_default, l as last_default, o as map_default, t as min_default, u as defaults_default } from "./min-
|
|
15
|
-
import { t as isEmpty_default } from "./isEmpty-
|
|
16
|
-
import { n as Range, r as init_main, t as Position } from "./main-
|
|
6
|
+
import { B as isObject_default, C as _isIterateeCall_default, E as _baseRest_default, H as isObjectLike_default, O as _copyObject_default, R as isFunction_default, S as _createAssigner_default, U as _baseGetTag_default, V as isArray_default, _ as _baseUnary_default, g as _nodeUtil_default, j as _baseAssignValue_default, k as _assignValue_default, t as isArrayLikeObject_default, w as isArrayLike_default, x as _isPrototype_default, z as identity_default } from "./isArrayLikeObject-DU5MCuQM.js";
|
|
7
|
+
import { n as _arrayMap_default } from "./toString-CbuxCRDG.js";
|
|
8
|
+
import { i as toInteger_default, r as flatten_default, t as _basePickBy_default } from "./_basePickBy-gCCvtjgp.js";
|
|
9
|
+
import { a as _SetCache_default, f as _arrayFilter_default, i as _arraySome_default, m as keys_default, r as _cacheHas_default } from "./_baseIsEqual-BFlyFUxC.js";
|
|
10
|
+
import { a as filter_default, f as _baseIteratee_default, g as _baseIndexOf_default, h as _arrayIncludes_default, i as values_default, l as _arrayIncludesWith_default, m as _getAllKeysIn_default, n as reduce_default, o as _baseFilter_default, r as isUndefined_default, s as forEach_default, t as _baseUniq_default, u as _baseEach_default, v as noop_default } from "./_baseUniq-CKN9mEDq.js";
|
|
11
|
+
import { i as _baseFlatten_default } from "./_baseProperty-BuqBC0Ie.js";
|
|
12
|
+
import { t as _baseSlice_default } from "./_baseSlice-CE9WsQZm.js";
|
|
13
|
+
import { t as clone_default } from "./clone-CCgVUJ6x.js";
|
|
14
|
+
import { a as has_default, c as find_default, i as isString_default, l as last_default, o as map_default, t as min_default, u as defaults_default } from "./min-Dwa_NbP6.js";
|
|
15
|
+
import { t as isEmpty_default } from "./isEmpty-Do_v2sls.js";
|
|
16
|
+
import { n as Range, r as init_main, t as Position } from "./main-BMTpe7M0.js";
|
|
17
17
|
var hasOwnProperty$1 = Object.prototype.hasOwnProperty, assign_default = _createAssigner_default(function(e5, m) {
|
|
18
18
|
if (_isPrototype_default(m) || isArrayLike_default(m)) {
|
|
19
19
|
_copyObject_default(m, keys_default(m), e5);
|
|
@@ -1632,10 +1632,10 @@ function streamContents(e5, m) {
|
|
|
1632
1632
|
};
|
|
1633
1633
|
} else if (Array.isArray(_)) {
|
|
1634
1634
|
for (; m2.arrayIndex < _.length; ) {
|
|
1635
|
-
let e6 = m2.arrayIndex
|
|
1636
|
-
if (isAstNode(
|
|
1635
|
+
let e6 = _[m2.arrayIndex++];
|
|
1636
|
+
if (isAstNode(e6) && isAstNodeInRange(e6, h)) return {
|
|
1637
1637
|
done: false,
|
|
1638
|
-
value:
|
|
1638
|
+
value: e6
|
|
1639
1639
|
};
|
|
1640
1640
|
}
|
|
1641
1641
|
m2.arrayIndex = 0;
|
|
@@ -2100,10 +2100,9 @@ var hexDigitPattern = /[0-9a-fA-F]/, decimalPattern = /[0-9]/, decimalPatternNoZ
|
|
|
2100
2100
|
return this.consumeChar("u"), this.parseHexDigits(4);
|
|
2101
2101
|
}
|
|
2102
2102
|
identityEscapeAtom() {
|
|
2103
|
-
let e5 = this.popChar();
|
|
2104
2103
|
return {
|
|
2105
2104
|
type: "Character",
|
|
2106
|
-
value: cc(
|
|
2105
|
+
value: cc(this.popChar())
|
|
2107
2106
|
};
|
|
2108
2107
|
}
|
|
2109
2108
|
classPatternCharacterAtom() {
|
|
@@ -2116,10 +2115,9 @@ var hexDigitPattern = /[0-9a-fA-F]/, decimalPattern = /[0-9]/, decimalPatternNoZ
|
|
|
2116
2115
|
case "]":
|
|
2117
2116
|
throw Error("TBD");
|
|
2118
2117
|
default:
|
|
2119
|
-
let e5 = this.popChar();
|
|
2120
2118
|
return {
|
|
2121
2119
|
type: "Character",
|
|
2122
|
-
value: cc(
|
|
2120
|
+
value: cc(this.popChar())
|
|
2123
2121
|
};
|
|
2124
2122
|
}
|
|
2125
2123
|
}
|
|
@@ -3230,8 +3228,7 @@ function firstForSequence(e5) {
|
|
|
3230
3228
|
return uniq_default(m);
|
|
3231
3229
|
}
|
|
3232
3230
|
function firstForBranching(e5) {
|
|
3233
|
-
|
|
3234
|
-
return uniq_default(flatten_default(m));
|
|
3231
|
+
return uniq_default(flatten_default(map_default(e5.definition, (e6) => first(e6))));
|
|
3235
3232
|
}
|
|
3236
3233
|
function firstForTerminal(e5) {
|
|
3237
3234
|
return [e5.terminalType];
|
|
@@ -3247,15 +3244,14 @@ var ResyncFollowsWalker = class extends RestWalker {
|
|
|
3247
3244
|
walkTerminal(e5, m, h) {
|
|
3248
3245
|
}
|
|
3249
3246
|
walkProdRef(e5, m, h) {
|
|
3250
|
-
let g = buildBetweenProdsFollowPrefix(e5.referencedRule, e5.idx) + this.topProd.name, _ =
|
|
3251
|
-
this.follows[g] =
|
|
3247
|
+
let g = buildBetweenProdsFollowPrefix(e5.referencedRule, e5.idx) + this.topProd.name, _ = first(new Alternative({ definition: m.concat(h) }));
|
|
3248
|
+
this.follows[g] = _;
|
|
3252
3249
|
}
|
|
3253
3250
|
};
|
|
3254
3251
|
function computeAllProdsFollows(e5) {
|
|
3255
3252
|
let m = {};
|
|
3256
3253
|
return forEach_default(e5, (e6) => {
|
|
3257
|
-
|
|
3258
|
-
assign_default(m, h);
|
|
3254
|
+
assign_default(m, new ResyncFollowsWalker(e6).startWalking());
|
|
3259
3255
|
}), m;
|
|
3260
3256
|
}
|
|
3261
3257
|
function buildBetweenProdsFollowPrefix(e5, m) {
|
|
@@ -3505,14 +3501,12 @@ function analyzeTokenTypes(e5, m) {
|
|
|
3505
3501
|
let j = true, M = [];
|
|
3506
3502
|
return m.safeMode || h("First Char Optimization", () => {
|
|
3507
3503
|
M = reduce_default(g, (e6, h2, g2) => {
|
|
3508
|
-
if (typeof h2.PATTERN == "string")
|
|
3509
|
-
|
|
3510
|
-
addToMapOfArrays(e6, _2, A[g2]);
|
|
3511
|
-
} else if (isArray_default(h2.START_CHARS_HINT)) {
|
|
3504
|
+
if (typeof h2.PATTERN == "string") addToMapOfArrays(e6, charCodeToOptimizedIndex(h2.PATTERN.charCodeAt(0)), A[g2]);
|
|
3505
|
+
else if (isArray_default(h2.START_CHARS_HINT)) {
|
|
3512
3506
|
let m2;
|
|
3513
3507
|
forEach_default(h2.START_CHARS_HINT, (h3) => {
|
|
3514
|
-
let _2 = typeof h3 == "string" ? h3.charCodeAt(0) : h3
|
|
3515
|
-
m2 !==
|
|
3508
|
+
let _2 = charCodeToOptimizedIndex(typeof h3 == "string" ? h3.charCodeAt(0) : h3);
|
|
3509
|
+
m2 !== _2 && (m2 = _2, addToMapOfArrays(e6, _2, A[g2]));
|
|
3516
3510
|
});
|
|
3517
3511
|
} else if (isRegExp_default(h2.PATTERN)) if (h2.PATTERN.unicode) j = false, m.ensureOptimizations && PRINT_ERROR(`${failedOptimizationPrefixMsg} Unable to analyze < ${h2.PATTERN.toString()} > pattern.
|
|
3518
3512
|
The regexp unicode flag is not currently supported by the regexp-to-ast library.
|
|
@@ -3548,28 +3542,28 @@ function validateRegExpPattern(e5) {
|
|
|
3548
3542
|
return m = m.concat(findEndOfInputAnchor(h)), m = m.concat(findStartOfInputAnchor(h)), m = m.concat(findUnsupportedFlags(h)), m = m.concat(findDuplicatePatterns(h)), m = m.concat(findEmptyMatchRegExps(h)), m;
|
|
3549
3543
|
}
|
|
3550
3544
|
function findMissingPatterns(e5) {
|
|
3551
|
-
let m = filter_default(e5, (e6) => !has_default(e6, PATTERN))
|
|
3552
|
-
message: "Token Type: ->" + e6.name + "<- missing static 'PATTERN' property",
|
|
3553
|
-
type: LexerDefinitionErrorType.MISSING_PATTERN,
|
|
3554
|
-
tokenTypes: [e6]
|
|
3555
|
-
})), g = difference_default(e5, m);
|
|
3545
|
+
let m = filter_default(e5, (e6) => !has_default(e6, PATTERN));
|
|
3556
3546
|
return {
|
|
3557
|
-
errors:
|
|
3558
|
-
|
|
3547
|
+
errors: map_default(m, (e6) => ({
|
|
3548
|
+
message: "Token Type: ->" + e6.name + "<- missing static 'PATTERN' property",
|
|
3549
|
+
type: LexerDefinitionErrorType.MISSING_PATTERN,
|
|
3550
|
+
tokenTypes: [e6]
|
|
3551
|
+
})),
|
|
3552
|
+
valid: difference_default(e5, m)
|
|
3559
3553
|
};
|
|
3560
3554
|
}
|
|
3561
3555
|
function findInvalidPatterns(e5) {
|
|
3562
3556
|
let m = filter_default(e5, (e6) => {
|
|
3563
3557
|
let m2 = e6[PATTERN];
|
|
3564
3558
|
return !isRegExp_default(m2) && !isFunction_default(m2) && !has_default(m2, "exec") && !isString_default(m2);
|
|
3565
|
-
})
|
|
3566
|
-
message: "Token Type: ->" + e6.name + "<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",
|
|
3567
|
-
type: LexerDefinitionErrorType.INVALID_PATTERN,
|
|
3568
|
-
tokenTypes: [e6]
|
|
3569
|
-
})), g = difference_default(e5, m);
|
|
3559
|
+
});
|
|
3570
3560
|
return {
|
|
3571
|
-
errors:
|
|
3572
|
-
|
|
3561
|
+
errors: map_default(m, (e6) => ({
|
|
3562
|
+
message: "Token Type: ->" + e6.name + "<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",
|
|
3563
|
+
type: LexerDefinitionErrorType.INVALID_PATTERN,
|
|
3564
|
+
tokenTypes: [e6]
|
|
3565
|
+
})),
|
|
3566
|
+
valid: difference_default(e5, m)
|
|
3573
3567
|
};
|
|
3574
3568
|
}
|
|
3575
3569
|
var end_of_input = /[^\\][$]/;
|
|
@@ -3582,24 +3576,22 @@ function findEndOfInputAnchor(e5) {
|
|
|
3582
3576
|
this.found = true;
|
|
3583
3577
|
}
|
|
3584
3578
|
}
|
|
3585
|
-
|
|
3586
|
-
let
|
|
3579
|
+
return map_default(filter_default(e5, (e6) => {
|
|
3580
|
+
let h = e6.PATTERN;
|
|
3587
3581
|
try {
|
|
3588
|
-
let e7 = getRegExpAst(
|
|
3582
|
+
let e7 = getRegExpAst(h), g = new m();
|
|
3589
3583
|
return g.visit(e7), g.found;
|
|
3590
3584
|
} catch {
|
|
3591
|
-
return end_of_input.test(
|
|
3585
|
+
return end_of_input.test(h.source);
|
|
3592
3586
|
}
|
|
3593
|
-
})
|
|
3594
|
-
return map_default(h, (e6) => ({
|
|
3587
|
+
}), (e6) => ({
|
|
3595
3588
|
message: "Unexpected RegExp Anchor Error:\n Token Type: ->" + e6.name + "<- static 'PATTERN' cannot contain end of input anchor '$'\n See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.",
|
|
3596
3589
|
type: LexerDefinitionErrorType.EOI_ANCHOR_FOUND,
|
|
3597
3590
|
tokenTypes: [e6]
|
|
3598
3591
|
}));
|
|
3599
3592
|
}
|
|
3600
3593
|
function findEmptyMatchRegExps(e5) {
|
|
3601
|
-
|
|
3602
|
-
return map_default(m, (e6) => ({
|
|
3594
|
+
return map_default(filter_default(e5, (e6) => e6.PATTERN.test("")), (e6) => ({
|
|
3603
3595
|
message: "Token Type: ->" + e6.name + "<- static 'PATTERN' must not match an empty string",
|
|
3604
3596
|
type: LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,
|
|
3605
3597
|
tokenTypes: [e6]
|
|
@@ -3615,37 +3607,33 @@ function findStartOfInputAnchor(e5) {
|
|
|
3615
3607
|
this.found = true;
|
|
3616
3608
|
}
|
|
3617
3609
|
}
|
|
3618
|
-
|
|
3619
|
-
let
|
|
3610
|
+
return map_default(filter_default(e5, (e6) => {
|
|
3611
|
+
let h = e6.PATTERN;
|
|
3620
3612
|
try {
|
|
3621
|
-
let e7 = getRegExpAst(
|
|
3613
|
+
let e7 = getRegExpAst(h), g = new m();
|
|
3622
3614
|
return g.visit(e7), g.found;
|
|
3623
3615
|
} catch {
|
|
3624
|
-
return start_of_input.test(
|
|
3616
|
+
return start_of_input.test(h.source);
|
|
3625
3617
|
}
|
|
3626
|
-
})
|
|
3627
|
-
return map_default(h, (e6) => ({
|
|
3618
|
+
}), (e6) => ({
|
|
3628
3619
|
message: "Unexpected RegExp Anchor Error:\n Token Type: ->" + e6.name + "<- static 'PATTERN' cannot contain start of input anchor '^'\n See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.",
|
|
3629
3620
|
type: LexerDefinitionErrorType.SOI_ANCHOR_FOUND,
|
|
3630
3621
|
tokenTypes: [e6]
|
|
3631
3622
|
}));
|
|
3632
3623
|
}
|
|
3633
3624
|
function findUnsupportedFlags(e5) {
|
|
3634
|
-
|
|
3635
|
-
let
|
|
3636
|
-
return
|
|
3637
|
-
})
|
|
3638
|
-
return map_default(m, (e6) => ({
|
|
3625
|
+
return map_default(filter_default(e5, (e6) => {
|
|
3626
|
+
let m = e6[PATTERN];
|
|
3627
|
+
return m instanceof RegExp && (m.multiline || m.global);
|
|
3628
|
+
}), (e6) => ({
|
|
3639
3629
|
message: "Token Type: ->" + e6.name + "<- static 'PATTERN' may NOT contain global('g') or multiline('m')",
|
|
3640
3630
|
type: LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,
|
|
3641
3631
|
tokenTypes: [e6]
|
|
3642
3632
|
}));
|
|
3643
3633
|
}
|
|
3644
3634
|
function findDuplicatePatterns(e5) {
|
|
3645
|
-
let m = [], h = map_default(e5, (h2) => reduce_default(e5, (e6,
|
|
3646
|
-
h = compact_default(h)
|
|
3647
|
-
let g = filter_default(h, (e6) => e6.length > 1);
|
|
3648
|
-
return map_default(g, (e6) => {
|
|
3635
|
+
let m = [], h = map_default(e5, (h2) => reduce_default(e5, (e6, g) => h2.PATTERN.source === g.PATTERN.source && !includes_default(m, g) && g.PATTERN !== Lexer.NA ? (m.push(g), e6.push(g), e6) : e6, []));
|
|
3636
|
+
return h = compact_default(h), map_default(filter_default(h, (e6) => e6.length > 1), (e6) => {
|
|
3649
3637
|
let m2 = map_default(e6, (e7) => e7.name);
|
|
3650
3638
|
return {
|
|
3651
3639
|
message: `The same RegExp pattern ->${head_default(e6).PATTERN}<-has been used in all of the following Token Types: ${m2.join(", ")} <-`,
|
|
@@ -3655,20 +3643,18 @@ function findDuplicatePatterns(e5) {
|
|
|
3655
3643
|
});
|
|
3656
3644
|
}
|
|
3657
3645
|
function findInvalidGroupType(e5) {
|
|
3658
|
-
|
|
3646
|
+
return map_default(filter_default(e5, (e6) => {
|
|
3659
3647
|
if (!has_default(e6, "GROUP")) return false;
|
|
3660
|
-
let
|
|
3661
|
-
return
|
|
3662
|
-
})
|
|
3663
|
-
return map_default(m, (e6) => ({
|
|
3648
|
+
let m = e6.GROUP;
|
|
3649
|
+
return m !== Lexer.SKIPPED && m !== Lexer.NA && !isString_default(m);
|
|
3650
|
+
}), (e6) => ({
|
|
3664
3651
|
message: "Token Type: ->" + e6.name + "<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",
|
|
3665
3652
|
type: LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,
|
|
3666
3653
|
tokenTypes: [e6]
|
|
3667
3654
|
}));
|
|
3668
3655
|
}
|
|
3669
3656
|
function findModesThatDoNotExist(e5, m) {
|
|
3670
|
-
|
|
3671
|
-
return map_default(h, (e6) => ({
|
|
3657
|
+
return map_default(filter_default(e5, (e6) => e6.PUSH_MODE !== void 0 && !includes_default(m, e6.PUSH_MODE)), (e6) => ({
|
|
3672
3658
|
message: `Token Type: ->${e6.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e6.PUSH_MODE}<-which does not exist`,
|
|
3673
3659
|
type: LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,
|
|
3674
3660
|
tokenTypes: [e6]
|
|
@@ -3750,28 +3736,24 @@ function performRuntimeChecks(e5, m, h) {
|
|
|
3750
3736
|
type: LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST
|
|
3751
3737
|
}), has_default(e5, "modes") && forEach_default(e5.modes, (e6, m2) => {
|
|
3752
3738
|
forEach_default(e6, (h2, _) => {
|
|
3753
|
-
|
|
3739
|
+
isUndefined_default(h2) ? g.push({
|
|
3754
3740
|
message: `A Lexer cannot be initialized using an undefined Token Type. Mode:<${m2}> at index: <${_}>
|
|
3755
3741
|
`,
|
|
3756
3742
|
type: LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED
|
|
3757
|
-
})
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
forEach_default(_2, (_3) => {
|
|
3761
|
-
!isUndefined_default(_3) && !includes_default(e6, _3) && g.push({
|
|
3762
|
-
message: `A MultiMode Lexer cannot be initialized with a longer_alt <${_3.name}> on token <${h2.name}> outside of mode <${m2}>
|
|
3743
|
+
}) : has_default(h2, "LONGER_ALT") && forEach_default(isArray_default(h2.LONGER_ALT) ? h2.LONGER_ALT : [h2.LONGER_ALT], (_2) => {
|
|
3744
|
+
!isUndefined_default(_2) && !includes_default(e6, _2) && g.push({
|
|
3745
|
+
message: `A MultiMode Lexer cannot be initialized with a longer_alt <${_2.name}> on token <${h2.name}> outside of mode <${m2}>
|
|
3763
3746
|
`,
|
|
3764
|
-
|
|
3765
|
-
});
|
|
3747
|
+
type: LexerDefinitionErrorType.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE
|
|
3766
3748
|
});
|
|
3767
|
-
}
|
|
3749
|
+
});
|
|
3768
3750
|
});
|
|
3769
3751
|
}), g;
|
|
3770
3752
|
}
|
|
3771
3753
|
function performWarningRuntimeChecks(e5, m, h) {
|
|
3772
|
-
let g = [], _ = false, v = compact_default(flatten_default(values_default(e5.modes))),
|
|
3773
|
-
return m && forEach_default(
|
|
3774
|
-
let m2 = checkLineBreaksIssues(e6,
|
|
3754
|
+
let g = [], _ = false, v = reject_default(compact_default(flatten_default(values_default(e5.modes))), (e6) => e6[PATTERN] === Lexer.NA), y = getCharCodes(h);
|
|
3755
|
+
return m && forEach_default(v, (e6) => {
|
|
3756
|
+
let m2 = checkLineBreaksIssues(e6, y);
|
|
3775
3757
|
if (m2 !== false) {
|
|
3776
3758
|
let h2 = {
|
|
3777
3759
|
message: buildLineBreakIssueMessage(e6, m2),
|
|
@@ -3779,17 +3761,17 @@ function performWarningRuntimeChecks(e5, m, h) {
|
|
|
3779
3761
|
tokenType: e6
|
|
3780
3762
|
};
|
|
3781
3763
|
g.push(h2);
|
|
3782
|
-
} else has_default(e6, "LINE_BREAKS") ? e6.LINE_BREAKS === true && (_ = true) : canMatchCharCode(
|
|
3764
|
+
} else has_default(e6, "LINE_BREAKS") ? e6.LINE_BREAKS === true && (_ = true) : canMatchCharCode(y, e6.PATTERN) && (_ = true);
|
|
3783
3765
|
}), m && !_ && g.push({
|
|
3784
3766
|
message: "Warning: No LINE_BREAKS Found.\n This Lexer has been defined to track line and column information,\n But none of the Token Types can be identified as matching a line terminator.\n See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n for details.",
|
|
3785
3767
|
type: LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS
|
|
3786
3768
|
}), g;
|
|
3787
3769
|
}
|
|
3788
3770
|
function cloneEmptyGroups(e5) {
|
|
3789
|
-
let m = {}
|
|
3790
|
-
return forEach_default(
|
|
3791
|
-
let g = e5[
|
|
3792
|
-
if (isArray_default(g)) m[
|
|
3771
|
+
let m = {};
|
|
3772
|
+
return forEach_default(keys_default(e5), (h) => {
|
|
3773
|
+
let g = e5[h];
|
|
3774
|
+
if (isArray_default(g)) m[h] = [];
|
|
3793
3775
|
else throw Error("non exhaustive match");
|
|
3794
3776
|
}), m;
|
|
3795
3777
|
}
|
|
@@ -4229,22 +4211,14 @@ const defaultParserErrorProvider = {
|
|
|
4229
4211
|
return "Redundant input, expecting EOF but found: " + e5.image;
|
|
4230
4212
|
},
|
|
4231
4213
|
buildNoViableAltMessage({ expectedPathsPerAlt: e5, actual: m, previous: h, customUserDescription: g, ruleName: _ }) {
|
|
4232
|
-
let v = "
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
let m2 = reduce_default(e5, (e6, m3) => e6.concat(m3), []), h2 = map_default(m2, (e6) => `[${map_default(e6, (e7) => tokenLabel(e7)).join(", ")}]`), g2 = `one of these possible Token sequences:
|
|
4236
|
-
${map_default(h2, (e6, m3) => ` ${m3 + 1}. ${e6}`).join("\n")}`;
|
|
4237
|
-
return v + g2 + y;
|
|
4238
|
-
}
|
|
4214
|
+
let v = "\nbut found: '" + head_default(m).image + "'";
|
|
4215
|
+
return g ? "Expecting: " + g + v : `Expecting: one of these possible Token sequences:
|
|
4216
|
+
${map_default(map_default(reduce_default(e5, (e6, m2) => e6.concat(m2), []), (e6) => `[${map_default(e6, (e7) => tokenLabel(e7)).join(", ")}]`), (e6, m2) => ` ${m2 + 1}. ${e6}`).join("\n")}` + v;
|
|
4239
4217
|
},
|
|
4240
4218
|
buildEarlyExitMessage({ expectedIterationPaths: e5, actual: m, customUserDescription: h, ruleName: g }) {
|
|
4241
|
-
let _ = "
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
let m2 = `expecting at least one iteration which starts with one of these possible Token sequences::
|
|
4245
|
-
<${map_default(e5, (e6) => `[${map_default(e6, (e7) => tokenLabel(e7)).join(",")}]`).join(" ,")}>`;
|
|
4246
|
-
return _ + m2 + v;
|
|
4247
|
-
}
|
|
4219
|
+
let _ = "\nbut found: '" + head_default(m).image + "'";
|
|
4220
|
+
return h ? "Expecting: " + h + _ : `Expecting: expecting at least one iteration which starts with one of these possible Token sequences::
|
|
4221
|
+
<${map_default(e5, (e6) => `[${map_default(e6, (e7) => tokenLabel(e7)).join(",")}]`).join(" ,")}>` + _;
|
|
4248
4222
|
}
|
|
4249
4223
|
};
|
|
4250
4224
|
Object.freeze(defaultParserErrorProvider);
|
|
@@ -4300,11 +4274,11 @@ Only the last alternative may be an empty alternative.`;
|
|
|
4300
4274
|
has ${e5.alternation.definition.length + 1} alternatives.`;
|
|
4301
4275
|
},
|
|
4302
4276
|
buildLeftRecursionError(e5) {
|
|
4303
|
-
let m = e5.topLevelRule.name
|
|
4277
|
+
let m = e5.topLevelRule.name;
|
|
4304
4278
|
return `Left Recursion found in grammar.
|
|
4305
4279
|
rule: <${m}> can be invoked from itself (directly or indirectly)
|
|
4306
4280
|
without consuming any Tokens. The grammar path that causes this is:
|
|
4307
|
-
${
|
|
4281
|
+
${`${m} --> ${map_default(e5.leftRecursionPath, (e6) => e6.name).concat([m]).join(" --> ")}`}
|
|
4308
4282
|
To fix this refactor your grammar to remove the left recursion.
|
|
4309
4283
|
see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`;
|
|
4310
4284
|
},
|
|
@@ -4367,10 +4341,7 @@ var GastRefResolverVisitor = class extends GAstVisitor {
|
|
|
4367
4341
|
super(e5, m), this.path = m, this.nextTerminalName = "", this.nextTerminalOccurrence = 0, this.nextTerminalName = this.path.lastTok.name, this.nextTerminalOccurrence = this.path.lastTokOccurrence;
|
|
4368
4342
|
}
|
|
4369
4343
|
walkTerminal(e5, m, h) {
|
|
4370
|
-
|
|
4371
|
-
let e6 = m.concat(h), g = new Alternative({ definition: e6 });
|
|
4372
|
-
this.possibleTokTypes = first(g), this.found = true;
|
|
4373
|
-
}
|
|
4344
|
+
this.isAtEndOfPath && e5.terminalType.name === this.nextTerminalName && e5.idx === this.nextTerminalOccurrence && !this.found && (this.possibleTokTypes = first(new Alternative({ definition: m.concat(h) })), this.found = true);
|
|
4374
4345
|
}
|
|
4375
4346
|
}, AbstractNextTerminalAfterProductionWalker = class extends RestWalker {
|
|
4376
4347
|
constructor(e5, m) {
|
|
@@ -4426,19 +4397,11 @@ function possiblePathsFrom(e5, m, h = []) {
|
|
|
4426
4397
|
let m2 = e5[_];
|
|
4427
4398
|
if (m2 instanceof Alternative || m2 instanceof NonTerminal) return y(m2.definition);
|
|
4428
4399
|
if (m2 instanceof Option$1) g = y(m2.definition);
|
|
4429
|
-
else if (m2 instanceof RepetitionMandatory) {
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
return y(e6);
|
|
4435
|
-
} else if (m2 instanceof RepetitionWithSeparator) {
|
|
4436
|
-
let e6 = m2.definition.concat([new Repetition({ definition: [new Terminal({ terminalType: m2.separator })].concat(m2.definition) })]);
|
|
4437
|
-
g = y(e6);
|
|
4438
|
-
} else if (m2 instanceof Repetition) {
|
|
4439
|
-
let e6 = m2.definition.concat([new Repetition({ definition: m2.definition })]);
|
|
4440
|
-
g = y(e6);
|
|
4441
|
-
} else if (m2 instanceof Alternation) return forEach_default(m2.definition, (e6) => {
|
|
4400
|
+
else if (m2 instanceof RepetitionMandatory) return y(m2.definition.concat([new Repetition({ definition: m2.definition })]));
|
|
4401
|
+
else if (m2 instanceof RepetitionMandatoryWithSeparator) return y([new Alternative({ definition: m2.definition }), new Repetition({ definition: [new Terminal({ terminalType: m2.separator })].concat(m2.definition) })]);
|
|
4402
|
+
else if (m2 instanceof RepetitionWithSeparator) g = y(m2.definition.concat([new Repetition({ definition: [new Terminal({ terminalType: m2.separator })].concat(m2.definition) })]));
|
|
4403
|
+
else if (m2 instanceof Repetition) g = y(m2.definition.concat([new Repetition({ definition: m2.definition })]));
|
|
4404
|
+
else if (m2 instanceof Alternation) return forEach_default(m2.definition, (e6) => {
|
|
4442
4405
|
isEmpty_default(e6.definition) === false && (g = y(e6.definition));
|
|
4443
4406
|
}), g;
|
|
4444
4407
|
else if (m2 instanceof Terminal) h.push(m2.terminalType);
|
|
@@ -4524,24 +4487,24 @@ function nextPossibleTokensAfter(e5, m, h, g) {
|
|
|
4524
4487
|
let e7 = new Repetition({
|
|
4525
4488
|
definition: O.definition,
|
|
4526
4489
|
idx: O.idx
|
|
4527
|
-
}), m2 =
|
|
4490
|
+
}), m2 = {
|
|
4528
4491
|
idx: T,
|
|
4529
|
-
def:
|
|
4492
|
+
def: O.definition.concat([e7], drop_default(g2)),
|
|
4530
4493
|
ruleStack: E,
|
|
4531
4494
|
occurrenceStack: D
|
|
4532
4495
|
};
|
|
4533
|
-
w.push(
|
|
4496
|
+
w.push(m2);
|
|
4534
4497
|
} else if (O instanceof RepetitionMandatoryWithSeparator) {
|
|
4535
|
-
let e7 = new
|
|
4536
|
-
definition: [
|
|
4498
|
+
let e7 = new Repetition({
|
|
4499
|
+
definition: [new Terminal({ terminalType: O.separator })].concat(O.definition),
|
|
4537
4500
|
idx: O.idx
|
|
4538
|
-
}),
|
|
4501
|
+
}), m2 = {
|
|
4539
4502
|
idx: T,
|
|
4540
|
-
def:
|
|
4503
|
+
def: O.definition.concat([e7], drop_default(g2)),
|
|
4541
4504
|
ruleStack: E,
|
|
4542
4505
|
occurrenceStack: D
|
|
4543
4506
|
};
|
|
4544
|
-
w.push(
|
|
4507
|
+
w.push(m2);
|
|
4545
4508
|
} else if (O instanceof RepetitionWithSeparator) {
|
|
4546
4509
|
let e7 = {
|
|
4547
4510
|
idx: T,
|
|
@@ -4550,16 +4513,16 @@ function nextPossibleTokensAfter(e5, m, h, g) {
|
|
|
4550
4513
|
occurrenceStack: D
|
|
4551
4514
|
};
|
|
4552
4515
|
w.push(e7), w.push(y);
|
|
4553
|
-
let m2 = new
|
|
4554
|
-
definition: [
|
|
4516
|
+
let m2 = new Repetition({
|
|
4517
|
+
definition: [new Terminal({ terminalType: O.separator })].concat(O.definition),
|
|
4555
4518
|
idx: O.idx
|
|
4556
|
-
}),
|
|
4519
|
+
}), h2 = {
|
|
4557
4520
|
idx: T,
|
|
4558
|
-
def:
|
|
4521
|
+
def: O.definition.concat([m2], drop_default(g2)),
|
|
4559
4522
|
ruleStack: E,
|
|
4560
4523
|
occurrenceStack: D
|
|
4561
4524
|
};
|
|
4562
|
-
w.push(
|
|
4525
|
+
w.push(h2);
|
|
4563
4526
|
} else if (O instanceof Repetition) {
|
|
4564
4527
|
let e7 = {
|
|
4565
4528
|
idx: T,
|
|
@@ -4571,21 +4534,21 @@ function nextPossibleTokensAfter(e5, m, h, g) {
|
|
|
4571
4534
|
let m2 = new Repetition({
|
|
4572
4535
|
definition: O.definition,
|
|
4573
4536
|
idx: O.idx
|
|
4574
|
-
}), h2 =
|
|
4537
|
+
}), h2 = {
|
|
4575
4538
|
idx: T,
|
|
4576
|
-
def:
|
|
4539
|
+
def: O.definition.concat([m2], drop_default(g2)),
|
|
4577
4540
|
ruleStack: E,
|
|
4578
4541
|
occurrenceStack: D
|
|
4579
4542
|
};
|
|
4580
|
-
w.push(
|
|
4543
|
+
w.push(h2);
|
|
4581
4544
|
} else if (O instanceof Alternation) for (let e7 = O.definition.length - 1; e7 >= 0; e7--) {
|
|
4582
|
-
let m2 =
|
|
4545
|
+
let m2 = {
|
|
4583
4546
|
idx: T,
|
|
4584
|
-
def:
|
|
4547
|
+
def: O.definition[e7].definition.concat(drop_default(g2)),
|
|
4585
4548
|
ruleStack: E,
|
|
4586
4549
|
occurrenceStack: D
|
|
4587
4550
|
};
|
|
4588
|
-
w.push(
|
|
4551
|
+
w.push(m2), w.push(y);
|
|
4589
4552
|
}
|
|
4590
4553
|
else if (O instanceof Alternative) w.push({
|
|
4591
4554
|
idx: T,
|
|
@@ -4627,8 +4590,8 @@ function getLookaheadPaths(e5) {
|
|
|
4627
4590
|
return v === PROD_TYPE.ALTERNATION ? getLookaheadPathsForOr(m, h, _) : getLookaheadPathsForOptionalProd(m, h, v, _);
|
|
4628
4591
|
}
|
|
4629
4592
|
function buildLookaheadFuncForOr(e5, m, h, g, _, v) {
|
|
4630
|
-
let y = getLookaheadPathsForOr(e5, m, h)
|
|
4631
|
-
return v(y, g,
|
|
4593
|
+
let y = getLookaheadPathsForOr(e5, m, h);
|
|
4594
|
+
return v(y, g, areTokenCategoriesNotUsed(y) ? tokenStructuredMatcherNoCategories : tokenStructuredMatcher, _);
|
|
4632
4595
|
}
|
|
4633
4596
|
function buildLookaheadFuncForOptionalProd(e5, m, h, g, _, v) {
|
|
4634
4597
|
let y = getLookaheadPathsForOptionalProd(e5, m, _, h), b = areTokenCategoriesNotUsed(y) ? tokenStructuredMatcherNoCategories : tokenStructuredMatcher;
|
|
@@ -4642,33 +4605,26 @@ function buildAlternativesLookAheadFunc(e5, m, h, g) {
|
|
|
4642
4605
|
let _2 = e5[m3], v2 = _2.length, y = g2[m3];
|
|
4643
4606
|
if (!(y !== void 0 && y.call(this) === false)) nextPath: for (let e6 = 0; e6 < v2; e6++) {
|
|
4644
4607
|
let g3 = _2[e6], v3 = g3.length;
|
|
4645
|
-
for (let e7 = 0; e7 < v3; e7++)
|
|
4646
|
-
let m4 = this.LA(e7 + 1);
|
|
4647
|
-
if (h(m4, g3[e7]) === false) continue nextPath;
|
|
4648
|
-
}
|
|
4608
|
+
for (let e7 = 0; e7 < v3; e7++) if (h(this.LA(e7 + 1), g3[e7]) === false) continue nextPath;
|
|
4649
4609
|
return m3;
|
|
4650
4610
|
}
|
|
4651
4611
|
}
|
|
4652
4612
|
};
|
|
4653
4613
|
if (v && !g) {
|
|
4654
|
-
let m2 = map_default(e5, (e6) => flatten_default(e6)),
|
|
4655
|
-
has_default(e6, m4.tokenTypeIdx) || (e6[m4.tokenTypeIdx] =
|
|
4656
|
-
has_default(e6, m5) || (e6[m5] =
|
|
4614
|
+
let m2 = reduce_default(map_default(e5, (e6) => flatten_default(e6)), (e6, m3, h2) => (forEach_default(m3, (m4) => {
|
|
4615
|
+
has_default(e6, m4.tokenTypeIdx) || (e6[m4.tokenTypeIdx] = h2), forEach_default(m4.categoryMatches, (m5) => {
|
|
4616
|
+
has_default(e6, m5) || (e6[m5] = h2);
|
|
4657
4617
|
});
|
|
4658
4618
|
}), e6), {});
|
|
4659
4619
|
return function() {
|
|
4660
|
-
|
|
4661
|
-
return h2[e6.tokenTypeIdx];
|
|
4620
|
+
return m2[this.LA(1).tokenTypeIdx];
|
|
4662
4621
|
};
|
|
4663
4622
|
} else return function() {
|
|
4664
4623
|
for (let m2 = 0; m2 < _; m2++) {
|
|
4665
4624
|
let g2 = e5[m2], _2 = g2.length;
|
|
4666
4625
|
nextPath: for (let e6 = 0; e6 < _2; e6++) {
|
|
4667
4626
|
let _3 = g2[e6], v2 = _3.length;
|
|
4668
|
-
for (let e7 = 0; e7 < v2; e7++)
|
|
4669
|
-
let m3 = this.LA(e7 + 1);
|
|
4670
|
-
if (h(m3, _3[e7]) === false) continue nextPath;
|
|
4671
|
-
}
|
|
4627
|
+
for (let e7 = 0; e7 < v2; e7++) if (h(this.LA(e7 + 1), _3[e7]) === false) continue nextPath;
|
|
4672
4628
|
return m2;
|
|
4673
4629
|
}
|
|
4674
4630
|
}
|
|
@@ -4688,17 +4644,13 @@ function buildSingleAlternativeLookaheadFunction(e5, m, h) {
|
|
|
4688
4644
|
e7[m4] = true;
|
|
4689
4645
|
}), e7), []);
|
|
4690
4646
|
return function() {
|
|
4691
|
-
|
|
4692
|
-
return e6[m3.tokenTypeIdx] === true;
|
|
4647
|
+
return e6[this.LA(1).tokenTypeIdx] === true;
|
|
4693
4648
|
};
|
|
4694
4649
|
}
|
|
4695
4650
|
} else return function() {
|
|
4696
4651
|
nextPath: for (let h2 = 0; h2 < _; h2++) {
|
|
4697
4652
|
let g2 = e5[h2], _2 = g2.length;
|
|
4698
|
-
for (let e6 = 0; e6 < _2; e6++)
|
|
4699
|
-
let h3 = this.LA(e6 + 1);
|
|
4700
|
-
if (m(h3, g2[e6]) === false) continue nextPath;
|
|
4701
|
-
}
|
|
4653
|
+
for (let e6 = 0; e6 < _2; e6++) if (m(this.LA(e6 + 1), g2[e6]) === false) continue nextPath;
|
|
4702
4654
|
return true;
|
|
4703
4655
|
}
|
|
4704
4656
|
return false;
|
|
@@ -4780,10 +4732,7 @@ function isUniquePrefixHash(e5, m, h) {
|
|
|
4780
4732
|
for (let g = 0; g < e5.length; g++) {
|
|
4781
4733
|
if (g === h) continue;
|
|
4782
4734
|
let _ = e5[g];
|
|
4783
|
-
for (let e6 = 0; e6 < m.length; e6++)
|
|
4784
|
-
let h2 = m[e6];
|
|
4785
|
-
if (_[h2] === true) return false;
|
|
4786
|
-
}
|
|
4735
|
+
for (let e6 = 0; e6 < m.length; e6++) if (_[m[e6]] === true) return false;
|
|
4787
4736
|
}
|
|
4788
4737
|
return true;
|
|
4789
4738
|
}
|
|
@@ -4791,8 +4740,7 @@ function lookAheadSequenceFromAlternatives(e5, m) {
|
|
|
4791
4740
|
let h = map_default(e5, (e6) => possiblePathsFrom([e6], 1)), g = initializeArrayOfArrays(h.length), _ = map_default(h, (e6) => {
|
|
4792
4741
|
let m2 = {};
|
|
4793
4742
|
return forEach_default(e6, (e7) => {
|
|
4794
|
-
|
|
4795
|
-
forEach_default(h2, (e8) => {
|
|
4743
|
+
forEach_default(pathToHashKeys(e7.partialPath), (e8) => {
|
|
4796
4744
|
m2[e8] = true;
|
|
4797
4745
|
});
|
|
4798
4746
|
}), m2;
|
|
@@ -4816,8 +4764,7 @@ function lookAheadSequenceFromAlternatives(e5, m) {
|
|
|
4816
4764
|
} else {
|
|
4817
4765
|
let m2 = possiblePathsFrom(S, e6 + 1, x);
|
|
4818
4766
|
v[y] = v[y].concat(m2), forEach_default(m2, (e7) => {
|
|
4819
|
-
|
|
4820
|
-
forEach_default(m3, (e8) => {
|
|
4767
|
+
forEach_default(pathToHashKeys(e7.partialPath), (e8) => {
|
|
4821
4768
|
_[y][e8] = true;
|
|
4822
4769
|
});
|
|
4823
4770
|
});
|
|
@@ -4834,8 +4781,8 @@ function getLookaheadPathsForOr(e5, m, h, g) {
|
|
|
4834
4781
|
function getLookaheadPathsForOptionalProd(e5, m, h, g) {
|
|
4835
4782
|
let _ = new InsideDefinitionFinderVisitor(e5, h);
|
|
4836
4783
|
m.accept(_);
|
|
4837
|
-
let v = _.result, y = new RestDefinitionFinderWalker(m, e5, h).startWalking()
|
|
4838
|
-
return lookAheadSequenceFromAlternatives([
|
|
4784
|
+
let v = _.result, y = new RestDefinitionFinderWalker(m, e5, h).startWalking();
|
|
4785
|
+
return lookAheadSequenceFromAlternatives([new Alternative({ definition: v }), new Alternative({ definition: y })], g);
|
|
4839
4786
|
}
|
|
4840
4787
|
function containsPath(e5, m) {
|
|
4841
4788
|
compareOtherPath: for (let h = 0; h < e5.length; h++) {
|
|
@@ -4860,12 +4807,11 @@ function areTokenCategoriesNotUsed(e5) {
|
|
|
4860
4807
|
return every_default(e5, (e6) => every_default(e6, (e7) => every_default(e7, (e8) => isEmpty_default(e8.categoryMatches))));
|
|
4861
4808
|
}
|
|
4862
4809
|
function validateLookahead(e5) {
|
|
4863
|
-
|
|
4810
|
+
return map_default(e5.lookaheadStrategy.validate({
|
|
4864
4811
|
rules: e5.rules,
|
|
4865
4812
|
tokenTypes: e5.tokenTypes,
|
|
4866
4813
|
grammarName: e5.grammarName
|
|
4867
|
-
});
|
|
4868
|
-
return map_default(m, (e6) => Object.assign({ type: ParserDefinitionErrorType.CUSTOM_LOOKAHEAD_VALIDATION }, e6));
|
|
4814
|
+
}), (e6) => Object.assign({ type: ParserDefinitionErrorType.CUSTOM_LOOKAHEAD_VALIDATION }, e6));
|
|
4869
4815
|
}
|
|
4870
4816
|
function validateGrammar$1(e5, m, h, g) {
|
|
4871
4817
|
let _ = flatMap_default(e5, (e6) => validateDuplicateProductions(e6, h)), v = checkTerminalAndNoneTerminalsNameSpace(e5, m, h), y = flatMap_default(e5, (e6) => validateTooManyAlts(e6, h)), b = flatMap_default(e5, (m2) => validateRuleDoesNotAlreadyExist(m2, e5, g, h));
|
|
@@ -4874,13 +4820,13 @@ function validateGrammar$1(e5, m, h, g) {
|
|
|
4874
4820
|
function validateDuplicateProductions(e5, m) {
|
|
4875
4821
|
let h = new OccurrenceValidationCollector();
|
|
4876
4822
|
e5.accept(h);
|
|
4877
|
-
let g = h.allProductions
|
|
4878
|
-
return map_default(values_default(
|
|
4879
|
-
let g2 = head_default(h2),
|
|
4880
|
-
message:
|
|
4823
|
+
let g = h.allProductions;
|
|
4824
|
+
return map_default(values_default(pickBy_default(groupBy_default(g, identifyProductionForDuplicates), (e6) => e6.length > 1)), (h2) => {
|
|
4825
|
+
let g2 = head_default(h2), _ = m.buildDuplicateFoundError(e5, h2), v = getProductionDslName$1(g2), y = {
|
|
4826
|
+
message: _,
|
|
4881
4827
|
type: ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS,
|
|
4882
4828
|
ruleName: e5.name,
|
|
4883
|
-
dslName:
|
|
4829
|
+
dslName: v,
|
|
4884
4830
|
occurrence: g2.idx
|
|
4885
4831
|
}, b = getExtraProductionArgument(g2);
|
|
4886
4832
|
return b && (y.parameter = b), y;
|
|
@@ -4957,11 +4903,11 @@ function validateNoLeftRecursion(e5, m, h, g = []) {
|
|
|
4957
4903
|
type: ParserDefinitionErrorType.LEFT_RECURSION,
|
|
4958
4904
|
ruleName: m2
|
|
4959
4905
|
});
|
|
4960
|
-
let y = difference_default(v, g.concat([e5])),
|
|
4906
|
+
let y = flatMap_default(difference_default(v, g.concat([e5])), (m3) => {
|
|
4961
4907
|
let _2 = clone_default(g);
|
|
4962
4908
|
return _2.push(m3), validateNoLeftRecursion(e5, m3, h, _2);
|
|
4963
4909
|
});
|
|
4964
|
-
return _.concat(
|
|
4910
|
+
return _.concat(y);
|
|
4965
4911
|
}
|
|
4966
4912
|
}
|
|
4967
4913
|
function getFirstNoneTerminal(e5) {
|
|
@@ -4990,31 +4936,25 @@ function validateEmptyOrAlternative(e5, m) {
|
|
|
4990
4936
|
let h = new OrCollector();
|
|
4991
4937
|
e5.accept(h);
|
|
4992
4938
|
let g = h.alternations;
|
|
4993
|
-
return flatMap_default(g, (h2) => {
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
ruleName: e5.name,
|
|
5005
|
-
occurrence: h2.idx,
|
|
5006
|
-
alternative: _ + 1
|
|
5007
|
-
}] : [];
|
|
5008
|
-
});
|
|
5009
|
-
});
|
|
4939
|
+
return flatMap_default(g, (h2) => flatMap_default(dropRight_default(h2.definition), (g2, _) => isEmpty_default(nextPossibleTokensAfter([g2], [], tokenStructuredMatcher, 1)) ? [{
|
|
4940
|
+
message: m.buildEmptyAlternationError({
|
|
4941
|
+
topLevelRule: e5,
|
|
4942
|
+
alternation: h2,
|
|
4943
|
+
emptyChoiceIdx: _
|
|
4944
|
+
}),
|
|
4945
|
+
type: ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT,
|
|
4946
|
+
ruleName: e5.name,
|
|
4947
|
+
occurrence: h2.idx,
|
|
4948
|
+
alternative: _ + 1
|
|
4949
|
+
}] : []));
|
|
5010
4950
|
}
|
|
5011
4951
|
function validateAmbiguousAlternationAlternatives(e5, m, h) {
|
|
5012
4952
|
let g = new OrCollector();
|
|
5013
4953
|
e5.accept(g);
|
|
5014
4954
|
let _ = g.alternations;
|
|
5015
4955
|
return _ = reject_default(_, (e6) => e6.ignoreAmbiguities === true), flatMap_default(_, (g2) => {
|
|
5016
|
-
let _2 = g2.idx, v =
|
|
5017
|
-
return
|
|
4956
|
+
let _2 = g2.idx, v = getLookaheadPathsForOr(_2, e5, g2.maxLookahead || m, g2), y = checkAlternativesAmbiguities(v, g2, e5, h), b = checkPrefixAlternativesAmbiguities(v, g2, e5, h);
|
|
4957
|
+
return y.concat(b);
|
|
5018
4958
|
});
|
|
5019
4959
|
}
|
|
5020
4960
|
var RepetitionCollector = class extends GAstVisitor {
|
|
@@ -5071,16 +5011,16 @@ function validateSomeNonEmptyLookaheadPath(e5, m, h) {
|
|
|
5071
5011
|
}), g;
|
|
5072
5012
|
}
|
|
5073
5013
|
function checkAlternativesAmbiguities(e5, m, h, g) {
|
|
5074
|
-
let _ = []
|
|
5075
|
-
|
|
5014
|
+
let _ = [];
|
|
5015
|
+
return map_default(reduce_default(e5, (h2, g2, v) => (m.definition[v].ignoreAmbiguities === true || forEach_default(g2, (g3) => {
|
|
5016
|
+
let y = [v];
|
|
5076
5017
|
forEach_default(e5, (e6, h3) => {
|
|
5077
|
-
|
|
5018
|
+
v !== h3 && containsPath(e6, g3) && m.definition[h3].ignoreAmbiguities !== true && y.push(h3);
|
|
5078
5019
|
}), y.length > 1 && !containsPath(_, g3) && (_.push(g3), h2.push({
|
|
5079
5020
|
alts: y,
|
|
5080
5021
|
path: g3
|
|
5081
5022
|
}));
|
|
5082
|
-
}), h2), [])
|
|
5083
|
-
return map_default(v, (e6) => {
|
|
5023
|
+
}), h2), []), (e6) => {
|
|
5084
5024
|
let _2 = map_default(e6.alts, (e7) => e7 + 1);
|
|
5085
5025
|
return {
|
|
5086
5026
|
message: g.buildAlternationAmbiguityError({
|
|
@@ -5106,8 +5046,8 @@ function checkPrefixAlternativesAmbiguities(e5, m, h, g) {
|
|
|
5106
5046
|
}, []);
|
|
5107
5047
|
return compact_default(flatMap_default(_, (e6) => {
|
|
5108
5048
|
if (m.definition[e6.idx].ignoreAmbiguities === true) return [];
|
|
5109
|
-
let v = e6.idx, y = e6.path
|
|
5110
|
-
return map_default(
|
|
5049
|
+
let v = e6.idx, y = e6.path;
|
|
5050
|
+
return map_default(filter_default(_, (e7) => m.definition[e7.idx].ignoreAmbiguities !== true && e7.idx < v && isStrictPrefixOfPath(e7.path, y)), (e7) => {
|
|
5111
5051
|
let _2 = [e7.idx + 1, v + 1], y2 = m.idx === 0 ? "" : m.idx;
|
|
5112
5052
|
return {
|
|
5113
5053
|
message: g.buildAlternationPrefixAmbiguityError({
|
|
@@ -5199,13 +5139,13 @@ var InRuleRecoveryException = class extends Error {
|
|
|
5199
5139
|
}
|
|
5200
5140
|
tryInRepetitionRecovery(e5, m, h, g) {
|
|
5201
5141
|
let _ = this.findReSyncTokenType(), v = this.exportLexerState(), y = [], b = false, x = this.LA(1), S = this.LA(1), C = () => {
|
|
5202
|
-
let e6 = this.LA(0), m2 = this.errorMessageProvider.buildMismatchTokenMessage({
|
|
5142
|
+
let e6 = this.LA(0), m2 = new MismatchedTokenException(this.errorMessageProvider.buildMismatchTokenMessage({
|
|
5203
5143
|
expected: g,
|
|
5204
5144
|
actual: x,
|
|
5205
5145
|
previous: e6,
|
|
5206
5146
|
ruleName: this.getCurrRuleFullName()
|
|
5207
|
-
}),
|
|
5208
|
-
|
|
5147
|
+
}), x, this.LA(0));
|
|
5148
|
+
m2.resyncedTokens = dropRight_default(y), this.SAVE_ERROR(m2);
|
|
5209
5149
|
};
|
|
5210
5150
|
for (; !b; ) if (this.tokenMatcher(S, g)) {
|
|
5211
5151
|
C();
|
|
@@ -5243,8 +5183,8 @@ var InRuleRecoveryException = class extends Error {
|
|
|
5243
5183
|
return this.canTokenTypeBeDeletedInRecovery(e5) ? this.tokenMatcher(this.LA(2), e5) : false;
|
|
5244
5184
|
}
|
|
5245
5185
|
isInCurrentRuleReSyncSet(e5) {
|
|
5246
|
-
let m = this.getCurrFollowKey()
|
|
5247
|
-
return includes_default(
|
|
5186
|
+
let m = this.getCurrFollowKey();
|
|
5187
|
+
return includes_default(this.getFollowSetFromFollowKey(m), e5);
|
|
5248
5188
|
}
|
|
5249
5189
|
findReSyncTokenType() {
|
|
5250
5190
|
let e5 = this.flattenFollowSet(), m = this.LA(1), h = 2;
|
|
@@ -5272,8 +5212,7 @@ var InRuleRecoveryException = class extends Error {
|
|
|
5272
5212
|
});
|
|
5273
5213
|
}
|
|
5274
5214
|
flattenFollowSet() {
|
|
5275
|
-
|
|
5276
|
-
return flatten_default(e5);
|
|
5215
|
+
return flatten_default(map_default(this.buildFullFollowKeyStack(), (e5) => this.getFollowSetFromFollowKey(e5)));
|
|
5277
5216
|
}
|
|
5278
5217
|
getFollowSetFromFollowKey(e5) {
|
|
5279
5218
|
if (e5 === EOF_FOLLOW_KEY) return [EOF];
|
|
@@ -5291,10 +5230,9 @@ var InRuleRecoveryException = class extends Error {
|
|
|
5291
5230
|
attemptInRepetitionRecovery(e5, m, h, g, _, v, y) {
|
|
5292
5231
|
}
|
|
5293
5232
|
getCurrentGrammarPath(e5, m) {
|
|
5294
|
-
let h = this.getHumanReadableRuleStack(), g = clone_default(this.RULE_OCCURRENCE_STACK);
|
|
5295
5233
|
return {
|
|
5296
|
-
ruleStack:
|
|
5297
|
-
occurrenceStack:
|
|
5234
|
+
ruleStack: this.getHumanReadableRuleStack(),
|
|
5235
|
+
occurrenceStack: clone_default(this.RULE_OCCURRENCE_STACK),
|
|
5298
5236
|
lastTok: e5,
|
|
5299
5237
|
lastTokOccurrence: m
|
|
5300
5238
|
};
|
|
@@ -5398,8 +5336,7 @@ var LLkLookaheadStrategy = class {
|
|
|
5398
5336
|
});
|
|
5399
5337
|
}
|
|
5400
5338
|
getKeyForAutomaticLookahead(e5, m) {
|
|
5401
|
-
|
|
5402
|
-
return getKeyForAutomaticLookahead(h, e5, m);
|
|
5339
|
+
return getKeyForAutomaticLookahead(this.getLastExplicitRuleShortName(), e5, m);
|
|
5403
5340
|
}
|
|
5404
5341
|
getLaFuncFromCache(e5) {
|
|
5405
5342
|
return this.lookAheadFuncsCache.get(e5);
|
|
@@ -5477,9 +5414,9 @@ function defineNameProp(e5, m) {
|
|
|
5477
5414
|
function defaultVisit(e5, m) {
|
|
5478
5415
|
let h = keys_default(e5), g = h.length;
|
|
5479
5416
|
for (let _ = 0; _ < g; _++) {
|
|
5480
|
-
let g2 = h[_], v =
|
|
5481
|
-
for (let e6 = 0; e6 <
|
|
5482
|
-
let h2 =
|
|
5417
|
+
let g2 = e5[h[_]], v = g2.length;
|
|
5418
|
+
for (let e6 = 0; e6 < v; e6++) {
|
|
5419
|
+
let h2 = g2[e6];
|
|
5483
5420
|
h2.tokenTypeIdx === void 0 && this[h2.name](h2.children, m);
|
|
5484
5421
|
}
|
|
5485
5422
|
}
|
|
@@ -5518,12 +5455,11 @@ function validateVisitor(e5, m) {
|
|
|
5518
5455
|
return validateMissingCstMethods(e5, m);
|
|
5519
5456
|
}
|
|
5520
5457
|
function validateMissingCstMethods(e5, m) {
|
|
5521
|
-
|
|
5458
|
+
return compact_default(map_default(filter_default(m, (m2) => isFunction_default(e5[m2]) === false), (m2) => ({
|
|
5522
5459
|
msg: `Missing visitor method: <${m2}> on ${e5.constructor.name} CST Visitor.`,
|
|
5523
5460
|
type: CstVisitorDefinitionError.MISSING_METHOD,
|
|
5524
5461
|
methodName: m2
|
|
5525
|
-
}));
|
|
5526
|
-
return compact_default(g);
|
|
5462
|
+
})));
|
|
5527
5463
|
}
|
|
5528
5464
|
var TreeBuilder = class {
|
|
5529
5465
|
initTreeBuilder(e5) {
|
|
@@ -5966,14 +5902,10 @@ var TreeBuilder = class {
|
|
|
5966
5902
|
if (typeof e5[0].startOffset == "number") throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n For Further details.");
|
|
5967
5903
|
}
|
|
5968
5904
|
if (isArray_default(e5)) this.tokensMap = reduce_default(e5, (e6, m2) => (e6[m2.name] = m2, e6), {});
|
|
5969
|
-
else if (has_default(e5, "modes") && every_default(flatten_default(values_default(e5.modes)), isTokenType)) {
|
|
5970
|
-
|
|
5971
|
-
this.tokensMap = reduce_default(h2, (e6, m3) => (e6[m3.name] = m3, e6), {});
|
|
5972
|
-
} else if (isObject_default(e5)) this.tokensMap = clone_default(e5);
|
|
5905
|
+
else if (has_default(e5, "modes") && every_default(flatten_default(values_default(e5.modes)), isTokenType)) this.tokensMap = reduce_default(uniq_default(flatten_default(values_default(e5.modes))), (e6, m2) => (e6[m2.name] = m2, e6), {});
|
|
5906
|
+
else if (isObject_default(e5)) this.tokensMap = clone_default(e5);
|
|
5973
5907
|
else throw Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");
|
|
5974
|
-
this.tokensMap.EOF = EOF;
|
|
5975
|
-
let h = has_default(e5, "modes") ? flatten_default(values_default(e5.modes)) : values_default(e5);
|
|
5976
|
-
this.tokenMatcher = every_default(h, (e6) => isEmpty_default(e6.categoryMatches)) ? tokenStructuredMatcherNoCategories : tokenStructuredMatcher, augmentTokenTypes(values_default(this.tokensMap));
|
|
5908
|
+
this.tokensMap.EOF = EOF, this.tokenMatcher = every_default(has_default(e5, "modes") ? flatten_default(values_default(e5.modes)) : values_default(e5), (e6) => isEmpty_default(e6.categoryMatches)) ? tokenStructuredMatcherNoCategories : tokenStructuredMatcher, augmentTokenTypes(values_default(this.tokensMap));
|
|
5977
5909
|
}
|
|
5978
5910
|
defineRule(e5, m, h) {
|
|
5979
5911
|
if (this.selfAnalysisDone) throw Error(`Grammar rule <${e5}> may not be defined after the 'performSelfAnalysis' method has been called'
|
|
@@ -6617,39 +6549,27 @@ function atom(e5, m, h) {
|
|
|
6617
6549
|
}
|
|
6618
6550
|
function repetition(e5, m, h) {
|
|
6619
6551
|
let g = newState(e5, m, h, { type: 5 });
|
|
6620
|
-
defineDecisionState(e5, g);
|
|
6621
|
-
let _ = makeAlts(e5, m, g, h, block(e5, m, h));
|
|
6622
|
-
return star(e5, m, h, _);
|
|
6552
|
+
return defineDecisionState(e5, g), star(e5, m, h, makeAlts(e5, m, g, h, block(e5, m, h)));
|
|
6623
6553
|
}
|
|
6624
6554
|
function repetitionSep(e5, m, h) {
|
|
6625
6555
|
let g = newState(e5, m, h, { type: 5 });
|
|
6626
|
-
defineDecisionState(e5, g);
|
|
6627
|
-
let _ = makeAlts(e5, m, g, h, block(e5, m, h)), v = tokenRef(e5, m, h.separator, h);
|
|
6628
|
-
return star(e5, m, h, _, v);
|
|
6556
|
+
return defineDecisionState(e5, g), star(e5, m, h, makeAlts(e5, m, g, h, block(e5, m, h)), tokenRef(e5, m, h.separator, h));
|
|
6629
6557
|
}
|
|
6630
6558
|
function repetitionMandatory(e5, m, h) {
|
|
6631
6559
|
let g = newState(e5, m, h, { type: 4 });
|
|
6632
|
-
defineDecisionState(e5, g);
|
|
6633
|
-
let _ = makeAlts(e5, m, g, h, block(e5, m, h));
|
|
6634
|
-
return plus(e5, m, h, _);
|
|
6560
|
+
return defineDecisionState(e5, g), plus(e5, m, h, makeAlts(e5, m, g, h, block(e5, m, h)));
|
|
6635
6561
|
}
|
|
6636
6562
|
function repetitionMandatorySep(e5, m, h) {
|
|
6637
6563
|
let g = newState(e5, m, h, { type: 4 });
|
|
6638
|
-
defineDecisionState(e5, g);
|
|
6639
|
-
let _ = makeAlts(e5, m, g, h, block(e5, m, h)), v = tokenRef(e5, m, h.separator, h);
|
|
6640
|
-
return plus(e5, m, h, _, v);
|
|
6564
|
+
return defineDecisionState(e5, g), plus(e5, m, h, makeAlts(e5, m, g, h, block(e5, m, h)), tokenRef(e5, m, h.separator, h));
|
|
6641
6565
|
}
|
|
6642
6566
|
function alternation(e5, m, h) {
|
|
6643
6567
|
let g = newState(e5, m, h, { type: 1 });
|
|
6644
|
-
defineDecisionState(e5, g);
|
|
6645
|
-
let _ = map_default(h.definition, (h2) => atom(e5, m, h2));
|
|
6646
|
-
return makeAlts(e5, m, g, h, ..._);
|
|
6568
|
+
return defineDecisionState(e5, g), makeAlts(e5, m, g, h, ...map_default(h.definition, (h2) => atom(e5, m, h2)));
|
|
6647
6569
|
}
|
|
6648
6570
|
function option(e5, m, h) {
|
|
6649
6571
|
let g = newState(e5, m, h, { type: 1 });
|
|
6650
|
-
defineDecisionState(e5, g);
|
|
6651
|
-
let _ = makeAlts(e5, m, g, h, block(e5, m, h));
|
|
6652
|
-
return optional(e5, m, h, _);
|
|
6572
|
+
return defineDecisionState(e5, g), optional(e5, m, h, makeAlts(e5, m, g, h, block(e5, m, h)));
|
|
6653
6573
|
}
|
|
6654
6574
|
function block(e5, m, h) {
|
|
6655
6575
|
let g = filter_default(map_default(h.definition, (h2) => atom(e5, m, h2)), (e6) => e6 !== void 0);
|
|
@@ -6724,8 +6644,8 @@ function tokenRef(e5, m, h, g) {
|
|
|
6724
6644
|
};
|
|
6725
6645
|
}
|
|
6726
6646
|
function ruleRef(e5, m, h) {
|
|
6727
|
-
let g = h.referencedRule, _ = e5.ruleToStartState.get(g), v = newState(e5, m, h, { type: 1 }), y = newState(e5, m, h, { type: 1 })
|
|
6728
|
-
return addTransition(v,
|
|
6647
|
+
let g = h.referencedRule, _ = e5.ruleToStartState.get(g), v = newState(e5, m, h, { type: 1 }), y = newState(e5, m, h, { type: 1 });
|
|
6648
|
+
return addTransition(v, new RuleTransition(_, g, y)), {
|
|
6729
6649
|
left: v,
|
|
6730
6650
|
right: y
|
|
6731
6651
|
};
|
|
@@ -6740,8 +6660,7 @@ function buildRuleHandle(e5, m, h) {
|
|
|
6740
6660
|
};
|
|
6741
6661
|
}
|
|
6742
6662
|
function epsilon(e5, m) {
|
|
6743
|
-
|
|
6744
|
-
addTransition(e5, h);
|
|
6663
|
+
addTransition(e5, new EpsilonTransition(m));
|
|
6745
6664
|
}
|
|
6746
6665
|
function newState(e5, m, h, g) {
|
|
6747
6666
|
let _ = Object.assign({
|
|
@@ -6845,15 +6764,14 @@ var PredicateSet = class {
|
|
|
6845
6764
|
}), e7), {});
|
|
6846
6765
|
return g ? function(m2) {
|
|
6847
6766
|
var _a2;
|
|
6848
|
-
let h2 = this.LA(1)
|
|
6849
|
-
if (m2 !== void 0 &&
|
|
6850
|
-
let e7 = (_a2 = m2[
|
|
6767
|
+
let h2 = e6[this.LA(1).tokenTypeIdx];
|
|
6768
|
+
if (m2 !== void 0 && h2 !== void 0) {
|
|
6769
|
+
let e7 = (_a2 = m2[h2]) == null ? void 0 : _a2.GATE;
|
|
6851
6770
|
if (e7 !== void 0 && e7.call(this) === false) return;
|
|
6852
6771
|
}
|
|
6853
|
-
return
|
|
6772
|
+
return h2;
|
|
6854
6773
|
} : function() {
|
|
6855
|
-
|
|
6856
|
-
return e6[m2.tokenTypeIdx];
|
|
6774
|
+
return e6[this.LA(1).tokenTypeIdx];
|
|
6857
6775
|
};
|
|
6858
6776
|
} else if (g) return function(e6) {
|
|
6859
6777
|
let m2 = new PredicateSet(), h2 = e6 === void 0 ? 0 : e6.length;
|
|
@@ -6888,8 +6806,7 @@ var PredicateSet = class {
|
|
|
6888
6806
|
e8[m4] = true;
|
|
6889
6807
|
})), e8), {});
|
|
6890
6808
|
return function() {
|
|
6891
|
-
|
|
6892
|
-
return e7[m3.tokenTypeIdx] === true;
|
|
6809
|
+
return e7[this.LA(1).tokenTypeIdx] === true;
|
|
6893
6810
|
};
|
|
6894
6811
|
}
|
|
6895
6812
|
}
|
|
@@ -6923,11 +6840,7 @@ function initATNSimulator(e5) {
|
|
|
6923
6840
|
}
|
|
6924
6841
|
function adaptivePredict(e5, m, h, g) {
|
|
6925
6842
|
let _ = e5[m](h), v = _.start;
|
|
6926
|
-
|
|
6927
|
-
let e6 = computeStartState(_.atnStartState);
|
|
6928
|
-
v = addDFAState(_, newDFAState(e6)), _.start = v;
|
|
6929
|
-
}
|
|
6930
|
-
return performLookahead.apply(this, [
|
|
6843
|
+
return v === void 0 && (v = addDFAState(_, newDFAState(computeStartState(_.atnStartState))), _.start = v), performLookahead.apply(this, [
|
|
6931
6844
|
_,
|
|
6932
6845
|
v,
|
|
6933
6846
|
h,
|
|
@@ -6969,13 +6882,13 @@ function computeLookaheadTarget(e5, m, h, g, _, v) {
|
|
|
6969
6882
|
function reportLookaheadAmbiguity(e5, m, h, g) {
|
|
6970
6883
|
let _ = [];
|
|
6971
6884
|
for (let e6 = 1; e6 <= m; e6++) _.push(this.LA(e6).tokenType);
|
|
6972
|
-
let v = e5.atnStartState, y = v.rule, b = v.production
|
|
6885
|
+
let v = e5.atnStartState, y = v.rule, b = v.production;
|
|
6886
|
+
g(buildAmbiguityError({
|
|
6973
6887
|
topLevelRule: y,
|
|
6974
6888
|
ambiguityIndices: h,
|
|
6975
6889
|
production: b,
|
|
6976
6890
|
prefixPath: _
|
|
6977
|
-
});
|
|
6978
|
-
g(x);
|
|
6891
|
+
}));
|
|
6979
6892
|
}
|
|
6980
6893
|
function buildAmbiguityError(e5) {
|
|
6981
6894
|
let m = map_default(e5.prefixPath, (e6) => tokenLabel(e6)).join(", "), h = e5.production.idx === 0 ? "" : e5.production.idx, g = `Ambiguous Alternatives Detected: <${e5.ambiguityIndices.join(", ")}> in <${getProductionDslName(e5.production)}${h}> inside <${e5.topLevelRule.name}> Rule,
|
|
@@ -6995,10 +6908,9 @@ function getProductionDslName(e5) {
|
|
|
6995
6908
|
throw Error("non exhaustive match");
|
|
6996
6909
|
}
|
|
6997
6910
|
function buildAdaptivePredictError(e5, m, h) {
|
|
6998
|
-
let g = flatMap_default(m.configs.elements, (e6) => e6.state.transitions), _ = uniqBy_default(g.filter((e6) => e6 instanceof AtomTransition).map((e6) => e6.tokenType), (e6) => e6.tokenTypeIdx);
|
|
6999
6911
|
return {
|
|
7000
6912
|
actualToken: h,
|
|
7001
|
-
possibleTokenTypes:
|
|
6913
|
+
possibleTokenTypes: uniqBy_default(flatMap_default(m.configs.elements, (e6) => e6.state.transitions).filter((e6) => e6 instanceof AtomTransition).map((e6) => e6.tokenType), (e6) => e6.tokenTypeIdx),
|
|
7002
6914
|
tokenPath: e5
|
|
7003
6915
|
};
|
|
7004
6916
|
}
|
|
@@ -7060,26 +6972,23 @@ function addDFAState(e5, m) {
|
|
|
7060
6972
|
}
|
|
7061
6973
|
function computeStartState(e5) {
|
|
7062
6974
|
let m = new ATNConfigSet(), h = e5.transitions.length;
|
|
7063
|
-
for (let g = 0; g < h; g++) {
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
};
|
|
7069
|
-
closure(h2, m);
|
|
7070
|
-
}
|
|
6975
|
+
for (let g = 0; g < h; g++) closure({
|
|
6976
|
+
state: e5.transitions[g].target,
|
|
6977
|
+
alt: g,
|
|
6978
|
+
stack: []
|
|
6979
|
+
}, m);
|
|
7071
6980
|
return m;
|
|
7072
6981
|
}
|
|
7073
6982
|
function closure(e5, m) {
|
|
7074
6983
|
let h = e5.state;
|
|
7075
6984
|
if (h.type === 7) {
|
|
7076
6985
|
if (e5.stack.length > 0) {
|
|
7077
|
-
let h2 = [...e5.stack]
|
|
6986
|
+
let h2 = [...e5.stack];
|
|
6987
|
+
closure({
|
|
7078
6988
|
state: h2.pop(),
|
|
7079
6989
|
alt: e5.alt,
|
|
7080
6990
|
stack: h2
|
|
7081
|
-
};
|
|
7082
|
-
closure(g2, m);
|
|
6991
|
+
}, m);
|
|
7083
6992
|
} else m.add(e5);
|
|
7084
6993
|
return;
|
|
7085
6994
|
}
|
|
@@ -7704,10 +7613,7 @@ function buildUnorderedGroup(e5, m) {
|
|
|
7704
7613
|
let m2 = { ALT: buildElement(e5, g2, true) }, _2 = getGuardCondition(g2);
|
|
7705
7614
|
_2 && (m2.GATE = buildPredicate(_2)), h.push(m2);
|
|
7706
7615
|
}
|
|
7707
|
-
let g = e5.or++, _ = (e6, m2) => {
|
|
7708
|
-
let h2 = m2.getRuleStack().join("-");
|
|
7709
|
-
return `uGroup_${e6}_${h2}`;
|
|
7710
|
-
}, v = wrap(e5, getGuardCondition(m), (m2) => e5.parser.alternatives(g, h.map((h2, v2) => {
|
|
7616
|
+
let g = e5.or++, _ = (e6, m2) => `uGroup_${e6}_${m2.getRuleStack().join("-")}`, v = wrap(e5, getGuardCondition(m), (m2) => e5.parser.alternatives(g, h.map((h2, v2) => {
|
|
7711
7617
|
let y = { ALT: () => true }, b = e5.parser;
|
|
7712
7618
|
y.ALT = () => {
|
|
7713
7619
|
if (h2.ALT(m2), !b.isRecording()) {
|
|
@@ -7824,8 +7730,8 @@ function createLangiumParser(e5) {
|
|
|
7824
7730
|
return m.finalize(), m;
|
|
7825
7731
|
}
|
|
7826
7732
|
function prepareLangiumParser(e5) {
|
|
7827
|
-
let m = e5.Grammar, h = e5.parser.Lexer
|
|
7828
|
-
return createParser(m,
|
|
7733
|
+
let m = e5.Grammar, h = e5.parser.Lexer;
|
|
7734
|
+
return createParser(m, new LangiumParser(e5), h.definition);
|
|
7829
7735
|
}
|
|
7830
7736
|
var DefaultTokenBuilder = class {
|
|
7831
7737
|
constructor() {
|
|
@@ -8130,7 +8036,7 @@ var require_ral = /* @__PURE__ */ __commonJSMin(((e5) => {
|
|
|
8130
8036
|
}
|
|
8131
8037
|
};
|
|
8132
8038
|
})), cancellation_exports = {};
|
|
8133
|
-
__reExport(cancellation_exports, /* @__PURE__ */ __toESM(require_cancellation()));
|
|
8039
|
+
__reExport(cancellation_exports, /* @__PURE__ */ __toESM(require_cancellation(), 1));
|
|
8134
8040
|
function delayNextTick() {
|
|
8135
8041
|
return new Promise((e5) => {
|
|
8136
8042
|
typeof setImmediate > "u" ? setTimeout(e5, 0) : setImmediate(e5);
|
|
@@ -8683,8 +8589,7 @@ var UriUtils;
|
|
|
8683
8589
|
function h(e6, m2) {
|
|
8684
8590
|
let h2 = typeof e6 == "string" ? e6 : e6.path, g2 = typeof m2 == "string" ? m2 : m2.path, _ = h2.split("/").filter((e7) => e7.length > 0), v = g2.split("/").filter((e7) => e7.length > 0), y = 0;
|
|
8685
8591
|
for (; y < _.length && _[y] === v[y]; y++) ;
|
|
8686
|
-
|
|
8687
|
-
return b + x;
|
|
8592
|
+
return "../".repeat(_.length - y) + v.slice(y).join("/");
|
|
8688
8593
|
}
|
|
8689
8594
|
e5.relative = h;
|
|
8690
8595
|
function g(e6) {
|
|
@@ -9228,11 +9133,10 @@ var DisposableCache = class {
|
|
|
9228
9133
|
return new StreamScope(stream(e5), m, h);
|
|
9229
9134
|
}
|
|
9230
9135
|
createScopeForNodes(e5, m, h) {
|
|
9231
|
-
|
|
9136
|
+
return new StreamScope(stream(e5).map((e6) => {
|
|
9232
9137
|
let m2 = this.nameProvider.getName(e6);
|
|
9233
9138
|
if (m2) return this.descriptions.createDescription(e6, m2);
|
|
9234
|
-
}).nonNullable();
|
|
9235
|
-
return new StreamScope(g, m, h);
|
|
9139
|
+
}).nonNullable(), m, h);
|
|
9236
9140
|
}
|
|
9237
9141
|
getGlobalScope(e5, m) {
|
|
9238
9142
|
return this.globalScopeCache.get(e5, () => new MapScope(this.indexManager.allElements(e5)));
|
|
@@ -9431,9 +9335,7 @@ var ValidationRegistry = class {
|
|
|
9431
9335
|
await e5();
|
|
9432
9336
|
} catch (e6) {
|
|
9433
9337
|
if (isOperationCancelled(e6)) throw e6;
|
|
9434
|
-
console.error(`${m}:`, e6), e6 instanceof Error && e6.stack && console.error(e6.stack);
|
|
9435
|
-
let _ = e6 instanceof Error ? e6.message : String(e6);
|
|
9436
|
-
h("error", `${m}: ${_}`, { node: g });
|
|
9338
|
+
console.error(`${m}:`, e6), e6 instanceof Error && e6.stack && console.error(e6.stack), h("error", `${m}: ${e6 instanceof Error ? e6.message : String(e6)}`, { node: g });
|
|
9437
9339
|
}
|
|
9438
9340
|
}
|
|
9439
9341
|
addEntry(e5, m) {
|
|
@@ -9728,7 +9630,7 @@ var DefaultAstNodeDescriptionProvider = class {
|
|
|
9728
9630
|
}, e5);
|
|
9729
9631
|
}
|
|
9730
9632
|
}, event_exports = {};
|
|
9731
|
-
__reExport(event_exports, /* @__PURE__ */ __toESM(require_events()));
|
|
9633
|
+
__reExport(event_exports, /* @__PURE__ */ __toESM(require_events(), 1));
|
|
9732
9634
|
var DefaultConfigurationProvider = class {
|
|
9733
9635
|
constructor(e5) {
|
|
9734
9636
|
this._ready = new Deferred(), this.settings = {}, this.workspaceConfig = false, this.onConfigurationSectionUpdateEmitter = new event_exports.Emitter(), this.serviceRegistry = e5.ServiceRegistry;
|
|
@@ -9900,10 +9802,8 @@ var DefaultDocumentBuilder = class {
|
|
|
9900
9802
|
}
|
|
9901
9803
|
return this.currentState >= e5 ? Promise.resolve(void 0) : h.isCancellationRequested ? Promise.reject(OperationCancelled) : new Promise((m2, _) => {
|
|
9902
9804
|
let v = this.onBuildPhase(e5, () => {
|
|
9903
|
-
|
|
9904
|
-
|
|
9905
|
-
m2(e6 == null ? void 0 : e6.uri);
|
|
9906
|
-
} else m2(void 0);
|
|
9805
|
+
var _a2;
|
|
9806
|
+
v.dispose(), y.dispose(), m2(g ? (_a2 = this.langiumDocuments.getDocument(g)) == null ? void 0 : _a2.uri : void 0);
|
|
9907
9807
|
}), y = h.onCancellationRequested(() => {
|
|
9908
9808
|
v.dispose(), y.dispose(), _(OperationCancelled);
|
|
9909
9809
|
});
|
|
@@ -10009,13 +9909,7 @@ var DefaultDocumentBuilder = class {
|
|
|
10009
9909
|
async traverseFolder(e5, m, h, g) {
|
|
10010
9910
|
let _ = await this.fileSystemProvider.readDirectory(m);
|
|
10011
9911
|
await Promise.all(_.map(async (m2) => {
|
|
10012
|
-
|
|
10013
|
-
if (m2.isDirectory) await this.traverseFolder(e5, m2.uri, h, g);
|
|
10014
|
-
else if (m2.isFile) {
|
|
10015
|
-
let e6 = await this.langiumDocuments.getOrCreateDocument(m2.uri);
|
|
10016
|
-
g(e6);
|
|
10017
|
-
}
|
|
10018
|
-
}
|
|
9912
|
+
this.includeEntry(e5, m2, h) && (m2.isDirectory ? await this.traverseFolder(e5, m2.uri, h, g) : m2.isFile && g(await this.langiumDocuments.getOrCreateDocument(m2.uri)));
|
|
10019
9913
|
}));
|
|
10020
9914
|
}
|
|
10021
9915
|
includeEntry(e5, m, h) {
|
|
@@ -10041,11 +9935,9 @@ var DefaultLexer = class {
|
|
|
10041
9935
|
constructor(e5) {
|
|
10042
9936
|
this.errorMessageProvider = e5.parser.LexerErrorMessageProvider, this.tokenBuilder = e5.parser.TokenBuilder;
|
|
10043
9937
|
let m = this.tokenBuilder.buildTokens(e5.Grammar, { caseInsensitive: e5.LanguageMetaData.caseInsensitive });
|
|
10044
|
-
this.tokenTypes = this.toTokenTypeDictionary(m)
|
|
10045
|
-
let h = isTokenTypeDictionary(m) ? Object.values(m) : m, g = e5.LanguageMetaData.mode === "production";
|
|
10046
|
-
this.chevrotainLexer = new Lexer(h, {
|
|
9938
|
+
this.tokenTypes = this.toTokenTypeDictionary(m), this.chevrotainLexer = new Lexer(isTokenTypeDictionary(m) ? Object.values(m) : m, {
|
|
10047
9939
|
positionTracking: "full",
|
|
10048
|
-
skipValidations:
|
|
9940
|
+
skipValidations: e5.LanguageMetaData.mode === "production",
|
|
10049
9941
|
errorMessageProvider: this.errorMessageProvider
|
|
10050
9942
|
});
|
|
10051
9943
|
}
|
|
@@ -10082,14 +9974,14 @@ init_main();
|
|
|
10082
9974
|
function parseJSDoc(e5, m, h) {
|
|
10083
9975
|
let g, _;
|
|
10084
9976
|
typeof e5 == "string" ? (_ = m, g = h) : (_ = e5.range.start, g = m), _ || (_ = Position.create(0, 0));
|
|
10085
|
-
let v = getLines(e5), y = normalizeOptions(g)
|
|
10086
|
-
lines: v,
|
|
10087
|
-
position: _,
|
|
10088
|
-
options: y
|
|
10089
|
-
});
|
|
9977
|
+
let v = getLines(e5), y = normalizeOptions(g);
|
|
10090
9978
|
return parseJSDocComment({
|
|
10091
9979
|
index: 0,
|
|
10092
|
-
tokens:
|
|
9980
|
+
tokens: tokenize({
|
|
9981
|
+
lines: v,
|
|
9982
|
+
position: _,
|
|
9983
|
+
options: y
|
|
9984
|
+
}),
|
|
10093
9985
|
position: _
|
|
10094
9986
|
});
|
|
10095
9987
|
}
|
|
@@ -10398,8 +10290,8 @@ var JSDocDocumentationProvider = class {
|
|
|
10398
10290
|
documentationLinkRenderer(e5, m, h) {
|
|
10399
10291
|
let g = this.findNameInPrecomputedScopes(e5, m) ?? this.findNameInGlobalScope(e5, m);
|
|
10400
10292
|
if (g && g.nameSegment) {
|
|
10401
|
-
let e6 = g.nameSegment.range.start.line + 1, m2 = g.nameSegment.range.start.character + 1
|
|
10402
|
-
return `[${h}](${
|
|
10293
|
+
let e6 = g.nameSegment.range.start.line + 1, m2 = g.nameSegment.range.start.character + 1;
|
|
10294
|
+
return `[${h}](${g.documentUri.with({ fragment: `L${e6},${m2}` }).toString()})`;
|
|
10403
10295
|
} else return;
|
|
10404
10296
|
}
|
|
10405
10297
|
documentationTagRenderer(e5, m) {
|
|
@@ -10717,7 +10609,7 @@ var Module;
|
|
|
10717
10609
|
e5.merge = (e6, m) => _merge(_merge({}, e6), m);
|
|
10718
10610
|
})(Module || (Module = {}));
|
|
10719
10611
|
function inject(e5, m, h, g, _, v, y, b, x) {
|
|
10720
|
-
|
|
10612
|
+
return _inject([
|
|
10721
10613
|
e5,
|
|
10722
10614
|
m,
|
|
10723
10615
|
h,
|
|
@@ -10727,8 +10619,7 @@ function inject(e5, m, h, g, _, v, y, b, x) {
|
|
|
10727
10619
|
y,
|
|
10728
10620
|
b,
|
|
10729
10621
|
x
|
|
10730
|
-
].reduce(_merge, {});
|
|
10731
|
-
return _inject(S);
|
|
10622
|
+
].reduce(_merge, {}));
|
|
10732
10623
|
}
|
|
10733
10624
|
var isProxy = Symbol("isProxy");
|
|
10734
10625
|
function eagerLoad(e5) {
|