kontexta 4.3.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/LICENSE +191 -0
- package/README.md +58 -0
- package/bundle/standalone/CHANGELOG.md +382 -0
- package/bundle/standalone/apps/web/.next/BUILD_ID +1 -0
- package/bundle/standalone/apps/web/.next/app-build-manifest.json +403 -0
- package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +60 -0
- package/bundle/standalone/apps/web/.next/build-manifest.json +33 -0
- package/bundle/standalone/apps/web/.next/package.json +1 -0
- package/bundle/standalone/apps/web/.next/prerender-manifest.json +148 -0
- package/bundle/standalone/apps/web/.next/react-loadable-manifest.json +300 -0
- package/bundle/standalone/apps/web/.next/required-server-files.json +344 -0
- package/bundle/standalone/apps/web/.next/routes-manifest.json +210 -0
- package/bundle/standalone/apps/web/.next/server/app/_not-found/page.js +2 -0
- package/bundle/standalone/apps/web/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/_not-found.html +1 -0
- package/bundle/standalone/apps/web/.next/server/app/_not-found.meta +8 -0
- package/bundle/standalone/apps/web/.next/server/app/_not-found.rsc +22 -0
- package/bundle/standalone/apps/web/.next/server/app/api/about/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/about/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/about/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/clip/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/clip/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/clip/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/folders/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/folders/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/folders/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/health/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/health/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/health/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route.js +17 -0
- package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/profile/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/profile/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/profile/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/projects/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/publish/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/publish/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/publish/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/refresh/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/refresh/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/refresh/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/reindex/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/reindex/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/reindex/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/search/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/search/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/search/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/tags/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/tags/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/tags/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/apple-icon.png/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/apple-icon.png/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/apple-icon.png.body +0 -0
- package/bundle/standalone/apps/web/.next/server/app/apple-icon.png.meta +1 -0
- package/bundle/standalone/apps/web/.next/server/app/calendar/page.js +2 -0
- package/bundle/standalone/apps/web/.next/server/app/calendar/page.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/calendar/page_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/favicon.ico/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/favicon.ico/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/favicon.ico.body +0 -0
- package/bundle/standalone/apps/web/.next/server/app/favicon.ico.meta +1 -0
- package/bundle/standalone/apps/web/.next/server/app/icon.png/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/icon.png/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/icon.png.body +0 -0
- package/bundle/standalone/apps/web/.next/server/app/icon.png.meta +1 -0
- package/bundle/standalone/apps/web/.next/server/app/login/page.js +2 -0
- package/bundle/standalone/apps/web/.next/server/app/login/page.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/login/page_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/page.js +9 -0
- package/bundle/standalone/apps/web/.next/server/app/page.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page.js +6 -0
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs.html +5 -0
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs.meta +7 -0
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs.rsc +29 -0
- package/bundle/standalone/apps/web/.next/server/app-paths-manifest.json +60 -0
- package/bundle/standalone/apps/web/.next/server/chunks/1018.js +115 -0
- package/bundle/standalone/apps/web/.next/server/chunks/1096.js +23 -0
- package/bundle/standalone/apps/web/.next/server/chunks/1139.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/128.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/1921.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/2034.js +36 -0
- package/bundle/standalone/apps/web/.next/server/chunks/2048.js +64 -0
- package/bundle/standalone/apps/web/.next/server/chunks/2065.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/2144.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/2151.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/2161.js +153 -0
- package/bundle/standalone/apps/web/.next/server/chunks/2450.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/246.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/260.js +24 -0
- package/bundle/standalone/apps/web/.next/server/chunks/269.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/2792.js +287 -0
- package/bundle/standalone/apps/web/.next/server/chunks/2923.js +22 -0
- package/bundle/standalone/apps/web/.next/server/chunks/2944.js +77 -0
- package/bundle/standalone/apps/web/.next/server/chunks/3334.js +141 -0
- package/bundle/standalone/apps/web/.next/server/chunks/3668.js +9 -0
- package/bundle/standalone/apps/web/.next/server/chunks/3758.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/3833.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/3990.js +2 -0
- package/bundle/standalone/apps/web/.next/server/chunks/4274.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/4290.js +252 -0
- package/bundle/standalone/apps/web/.next/server/chunks/4347.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/4550.js +226 -0
- package/bundle/standalone/apps/web/.next/server/chunks/4824.js +166 -0
- package/bundle/standalone/apps/web/.next/server/chunks/509.js +43 -0
- package/bundle/standalone/apps/web/.next/server/chunks/5104.js +215 -0
- package/bundle/standalone/apps/web/.next/server/chunks/5186.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/5400.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/5558.js +80 -0
- package/bundle/standalone/apps/web/.next/server/chunks/6496.js +93 -0
- package/bundle/standalone/apps/web/.next/server/chunks/6693.js +148 -0
- package/bundle/standalone/apps/web/.next/server/chunks/6775.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/7020.js +29 -0
- package/bundle/standalone/apps/web/.next/server/chunks/7098.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/7117.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/7204.js +104 -0
- package/bundle/standalone/apps/web/.next/server/chunks/7342.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/7629.js +80 -0
- package/bundle/standalone/apps/web/.next/server/chunks/7784.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/8286.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/8349.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/8620.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/8675.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/8860.js +24 -0
- package/bundle/standalone/apps/web/.next/server/chunks/8896.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/8950.js +5 -0
- package/bundle/standalone/apps/web/.next/server/chunks/8960.js +79 -0
- package/bundle/standalone/apps/web/.next/server/chunks/899.js +2 -0
- package/bundle/standalone/apps/web/.next/server/chunks/9069.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/9315.js +34 -0
- package/bundle/standalone/apps/web/.next/server/chunks/9372.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/9555.js +6 -0
- package/bundle/standalone/apps/web/.next/server/chunks/9571.js +9 -0
- package/bundle/standalone/apps/web/.next/server/chunks/9681.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/97.js +90 -0
- package/bundle/standalone/apps/web/.next/server/chunks/9797.js +1 -0
- package/bundle/standalone/apps/web/.next/server/chunks/989.js +1 -0
- package/bundle/standalone/apps/web/.next/server/functions-config-manifest.json +4 -0
- package/bundle/standalone/apps/web/.next/server/instrumentation.js +1 -0
- package/bundle/standalone/apps/web/.next/server/middleware-build-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/middleware-manifest.json +6 -0
- package/bundle/standalone/apps/web/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/next-font-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/next-font-manifest.json +1 -0
- package/bundle/standalone/apps/web/.next/server/pages/404.html +1 -0
- package/bundle/standalone/apps/web/.next/server/pages/500.html +1 -0
- package/bundle/standalone/apps/web/.next/server/pages/_app.js +1 -0
- package/bundle/standalone/apps/web/.next/server/pages/_app.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/pages/_document.js +1 -0
- package/bundle/standalone/apps/web/.next/server/pages/_document.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/pages/_error.js +19 -0
- package/bundle/standalone/apps/web/.next/server/pages/_error.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/pages-manifest.json +6 -0
- package/bundle/standalone/apps/web/.next/server/server-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/server-reference-manifest.json +1 -0
- package/bundle/standalone/apps/web/.next/server/webpack-runtime.js +1 -0
- package/bundle/standalone/apps/web/.next/static/TwaiLte1NHCp3gRYUc-go/_buildManifest.js +1 -0
- package/bundle/standalone/apps/web/.next/static/TwaiLte1NHCp3gRYUc-go/_ssgManifest.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/02852184.a3b62691cdc349cf.js +80 -0
- package/bundle/standalone/apps/web/.next/static/chunks/1226.49d217dc03a1770f.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/1286.8da72129ab3aa8fd.js +77 -0
- package/bundle/standalone/apps/web/.next/static/chunks/1403cfaa-33c2b74c127517c2.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/171.a4732e77e941b2cd.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/1733.3a6dae5cc3785d0b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/2081.313746c212bfc5c9.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/2086.0b05a08670aae1db.js +226 -0
- package/bundle/standalone/apps/web/.next/static/chunks/2377-956eb9b333193ac6.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/3034.e1171cbeeed85923.js +5 -0
- package/bundle/standalone/apps/web/.next/static/chunks/3068-293b252158eb9d15.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/3297.7664b51ee69c7513.js +23 -0
- package/bundle/standalone/apps/web/.next/static/chunks/338.77f45c7810885961.js +115 -0
- package/bundle/standalone/apps/web/.next/static/chunks/3471.7790a4192ef84a1a.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/3514.14aa56fe189fd052.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/3696.5d462babda0c0b9e.js +34 -0
- package/bundle/standalone/apps/web/.next/static/chunks/408.82356d1e11e880d9.js +93 -0
- package/bundle/standalone/apps/web/.next/static/chunks/46.9922e50f2158e1a9.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/4798.d851e8027b2db933.js +287 -0
- package/bundle/standalone/apps/web/.next/static/chunks/4908.2fed0b6fbc391b55.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/4915.97b9c59991c26fa7.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/492.234794e12315e4bb.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/4936.c65cdd63440ade70.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/5127.e5e917b5cb9c4e52.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/5141.93a42ebd1580da60.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/5159-7bcf68ab11c1091e.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/5514.f969d5c86c590512.js +73 -0
- package/bundle/standalone/apps/web/.next/static/chunks/559.c4615787d977bf47.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/5667.e0097b2112faa29b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/6367.fd87728718a97771.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/6394.c2172a59c01bd0bd.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/6396.d288334e13a70139.js +24 -0
- package/bundle/standalone/apps/web/.next/static/chunks/6483.88695b22b21b10f1.js +9 -0
- package/bundle/standalone/apps/web/.next/static/chunks/6561.176d35e576df3f9d.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/6584.87fc375a0510108d.js +104 -0
- package/bundle/standalone/apps/web/.next/static/chunks/693.71c8b97896628a66.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/6934.45e50410379dc377.js +79 -0
- package/bundle/standalone/apps/web/.next/static/chunks/6a2ca82e.c26cb70da3106c1c.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/6b5bb80a.c511153adad62faf.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/7216.d1b096d2a35967fd.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/7342.fcb52cf5f7ce0e17.js +29 -0
- package/bundle/standalone/apps/web/.next/static/chunks/7541.43ff810bb14fd5c0.js +43 -0
- package/bundle/standalone/apps/web/.next/static/chunks/7563.376c2692778a62b3.js +148 -0
- package/bundle/standalone/apps/web/.next/static/chunks/7756.b0dd00e996549a39.js +24 -0
- package/bundle/standalone/apps/web/.next/static/chunks/8052.69c066e56bbd5d6c.js +64 -0
- package/bundle/standalone/apps/web/.next/static/chunks/8080c6f4.ed360e7424d6fe99.js +62 -0
- package/bundle/standalone/apps/web/.next/static/chunks/8280.81c2b0d61e27a576.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/8547.5bef8f1afd162429.js +90 -0
- package/bundle/standalone/apps/web/.next/static/chunks/8602.0b457ca55bd2c08e.js +141 -0
- package/bundle/standalone/apps/web/.next/static/chunks/8794.401ab179d53aa5d5.js +80 -0
- package/bundle/standalone/apps/web/.next/static/chunks/9053.c953d758ff5dc6ee.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/9122.cf7fd16fc8d7fad0.js +36 -0
- package/bundle/standalone/apps/web/.next/static/chunks/9255.78469e88fa06e186.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/944.ba7dcdca1c72114a.js +166 -0
- package/bundle/standalone/apps/web/.next/static/chunks/9794-16144bed6de4bf26.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/9852.e1937ca867a99475.js +215 -0
- package/bundle/standalone/apps/web/.next/static/chunks/9981.8fa0bb90a26c66eb.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/a118fb18.9c3b4291884abee0.js +119 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/_not-found/page-972b01bf23ed0942.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/about/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/login/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/logout/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/setup/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/status/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/token/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/conflicts/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/[id]/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/[id]/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/ics/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/links/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/settings/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/clip/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/docker-config/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/export/zip/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/download/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-pdf/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/restore/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/move/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/upload/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/folders/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/remote/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/sync-all/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/test-pattern/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/validate/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/health/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/install-snippets/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/mcp-tools/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/profile/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/hands-config/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-config/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-status/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/onboard/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/refresh/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/sync/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/onboard/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/html/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/refresh/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/reindex/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/search/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/tags/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/ws-config/route-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/calendar/page-180fba7a5e149d79.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/layout-9a9569fc88cd95d2.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/login/page-d299785546ea6ab6.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/page-2b151d30cb29d2e5.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/preview/motifs/page-c1d02d72a16497fa.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/d185f5cd.71b8f43667fbf60d.js +153 -0
- package/bundle/standalone/apps/web/.next/static/chunks/framework-d5846a86e24c79c9.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/main-0205543fb3b69ad5.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/main-app-20d292116f434ff3.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/pages/_app-fe81927504f65cde.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/pages/_error-2973b69c43483f0b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/webpack-8818fea786a923fe.js +1 -0
- package/bundle/standalone/apps/web/.next/static/css/c00514317f297826.css +3 -0
- package/bundle/standalone/apps/web/.next/static/media/0aa834ed78bf6d07-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/438aa629764e75f3-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/4c9affa5bc8f420e-s.p.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/51251f8b9793cdb3-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/67957d42bae0796d-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/875ae681bfde4580-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/886030b0b59bc5a7-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/939c4f875ee75fbb-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/9b01607e2f794050-s.p.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/a5ded5fed781d3c1-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/bb3ef058b751a6ad-s.p.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/cc978ac5ee68c2b6-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/e857b654a2caa584-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/f28ff2d15b1e9bd8-s.woff2 +0 -0
- package/bundle/standalone/apps/web/.next/static/media/f911b923c6adde36-s.woff2 +0 -0
- package/bundle/standalone/apps/web/package.json +66 -0
- package/bundle/standalone/apps/web/public/logo-dark.png +0 -0
- package/bundle/standalone/apps/web/public/logo.png +0 -0
- package/bundle/standalone/apps/web/server.js +38 -0
- package/bundle/standalone/apps/web/src/lib/mcp-tools.json +1941 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-block.md +185 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.d.ts +2 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js +205 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/confirm.d.ts +25 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/confirm.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/confirm.js +40 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/confirm.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/executor.d.ts +13 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/executor.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/executor.js +250 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/executor.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.d.ts +11 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.js +39 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/loader.d.ts +4 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/loader.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/loader.js +164 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/loader.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/registry.d.ts +42 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/registry.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/registry.js +143 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/registry.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/sanitizer.d.ts +16 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/sanitizer.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/sanitizer.js +86 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/sanitizer.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.d.ts +2 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.js +202 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/types.d.ts +50 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/types.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/types.js +2 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/types.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.d.ts +3 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js +2117 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.d.ts +31 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js +293 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.d.ts +2 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.js +24 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.d.ts +2 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.js +24 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.d.ts +2 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js +57 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/001-initial.sql +72 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/002-remote-git.sql +2 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/003-source-path-index.sql +2 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/004-journaling.sql +44 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/005-auth.sql +7 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/006-journal-locks.sql +11 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/007-calendar.sql +49 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/profile-tool.d.ts +9 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/profile-tool.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/profile-tool.js +25 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/profile-tool.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/re2-compat.d.ts +4 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/re2-compat.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/re2-compat.js +14 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/re2-compat.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/package.json +66 -0
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.d.ts +73 -0
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js +436 -0
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/rules-block.md +185 -0
- package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.d.ts +26 -0
- package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.js +115 -0
- package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/conflicts.d.ts +32 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/conflicts.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/conflicts.js +129 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/conflicts.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/ics.d.ts +16 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/ics.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/ics.js +73 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/ics.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/index.d.ts +9 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/index.js +7 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/repository.d.ts +65 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/repository.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/repository.js +219 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/repository.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/types.d.ts +52 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/types.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/types.js +2 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/types.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/validate.d.ts +11 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/validate.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/validate.js +39 -0
- package/bundle/standalone/node_modules/kxta-core/dist/calendar/validate.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/clip/extract.d.ts +26 -0
- package/bundle/standalone/node_modules/kxta-core/dist/clip/extract.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/clip/extract.js +315 -0
- package/bundle/standalone/node_modules/kxta-core/dist/clip/extract.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/clip/frontmatter.d.ts +10 -0
- package/bundle/standalone/node_modules/kxta-core/dist/clip/frontmatter.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/clip/frontmatter.js +53 -0
- package/bundle/standalone/node_modules/kxta-core/dist/clip/frontmatter.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/clip/index.d.ts +12 -0
- package/bundle/standalone/node_modules/kxta-core/dist/clip/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/clip/index.js +38 -0
- package/bundle/standalone/node_modules/kxta-core/dist/clip/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/compat/env-shim.d.ts +2 -0
- package/bundle/standalone/node_modules/kxta-core/dist/compat/env-shim.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/compat/env-shim.js +26 -0
- package/bundle/standalone/node_modules/kxta-core/dist/compat/env-shim.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/compat/file-migration.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/compat/file-migration.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/compat/file-migration.js +30 -0
- package/bundle/standalone/node_modules/kxta-core/dist/compat/file-migration.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.d.ts +37 -0
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.js +182 -0
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/001-initial.sql +72 -0
- package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/002-remote-git.sql +2 -0
- package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/003-source-path-index.sql +2 -0
- package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/004-journaling.sql +44 -0
- package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/005-auth.sql +7 -0
- package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/006-journal-locks.sql +11 -0
- package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/007-calendar.sql +49 -0
- package/bundle/standalone/node_modules/kxta-core/dist/files/index.d.ts +84 -0
- package/bundle/standalone/node_modules/kxta-core/dist/files/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/files/index.js +631 -0
- package/bundle/standalone/node_modules/kxta-core/dist/files/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/files/sections.d.ts +48 -0
- package/bundle/standalone/node_modules/kxta-core/dist/files/sections.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/files/sections.js +112 -0
- package/bundle/standalone/node_modules/kxta-core/dist/files/sections.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/git/index.d.ts +92 -0
- package/bundle/standalone/node_modules/kxta-core/dist/git/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/git/index.js +801 -0
- package/bundle/standalone/node_modules/kxta-core/dist/git/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/index.d.ts +24 -0
- package/bundle/standalone/node_modules/kxta-core/dist/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/index.js +22 -0
- package/bundle/standalone/node_modules/kxta-core/dist/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/cooldown.d.ts +28 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/cooldown.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/cooldown.js +61 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/cooldown.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.d.ts +16 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.js +311 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/engine.d.ts +45 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/engine.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/engine.js +198 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/engine.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/git-watcher.d.ts +11 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/git-watcher.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/git-watcher.js +41 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/git-watcher.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/high-water.d.ts +16 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/high-water.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/high-water.js +30 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/high-water.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/housekeep.d.ts +22 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/housekeep.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/housekeep.js +104 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/housekeep.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/index.d.ts +27 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/index.js +18 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/build-failure-recovery.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/build-failure-recovery.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/build-failure-recovery.js +31 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/build-failure-recovery.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/error-recovery.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/error-recovery.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/error-recovery.js +31 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/error-recovery.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.js +28 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/extra-loader.d.ts +13 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/extra-loader.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/extra-loader.js +45 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/extra-loader.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/feature-development.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/feature-development.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/feature-development.js +21 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/feature-development.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/incident-response.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/incident-response.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/incident-response.js +21 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/incident-response.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/index.d.ts +16 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/index.js +40 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/pivot.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/pivot.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/pivot.js +15 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/pivot.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.js +24 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.js +42 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.js +22 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/test-cycle.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/test-cycle.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/test-cycle.js +23 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/test-cycle.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/presence.d.ts +2 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/presence.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/presence.js +17 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/presence.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/redact.d.ts +8 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/redact.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/redact.js +40 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/redact.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/renderer.d.ts +10 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/renderer.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/renderer.js +40 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/renderer.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/repository.d.ts +30 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/repository.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/repository.js +66 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/repository.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.d.ts +9 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js +32 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.d.ts +4 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.js +71 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/types.d.ts +59 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/types.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/types.js +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/types.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/writer.d.ts +16 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/writer.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/writer.js +44 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/writer.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.d.ts +97 -0
- package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.js +517 -0
- package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/metadata/settings.d.ts +13 -0
- package/bundle/standalone/node_modules/kxta-core/dist/metadata/settings.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/metadata/settings.js +33 -0
- package/bundle/standalone/node_modules/kxta-core/dist/metadata/settings.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/profile/index.d.ts +23 -0
- package/bundle/standalone/node_modules/kxta-core/dist/profile/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/profile/index.js +161 -0
- package/bundle/standalone/node_modules/kxta-core/dist/profile/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/project-map/index.d.ts +34 -0
- package/bundle/standalone/node_modules/kxta-core/dist/project-map/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/project-map/index.js +157 -0
- package/bundle/standalone/node_modules/kxta-core/dist/project-map/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/types.d.ts +69 -0
- package/bundle/standalone/node_modules/kxta-core/dist/types.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/types.js +5 -0
- package/bundle/standalone/node_modules/kxta-core/dist/types.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/extensions.d.ts +15 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/extensions.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/extensions.js +26 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/extensions.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/paths.d.ts +31 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/paths.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/paths.js +179 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/paths.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/safety.d.ts +37 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/safety.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/safety.js +156 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/safety.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/tokens.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/tokens.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/tokens.js +13 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/tokens.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/watcher/index.d.ts +9 -0
- package/bundle/standalone/node_modules/kxta-core/dist/watcher/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/watcher/index.js +214 -0
- package/bundle/standalone/node_modules/kxta-core/dist/watcher/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/whats-new/index.d.ts +36 -0
- package/bundle/standalone/node_modules/kxta-core/dist/whats-new/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/whats-new/index.js +94 -0
- package/bundle/standalone/node_modules/kxta-core/dist/whats-new/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/package.json +20 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/cli.d.ts +9 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/cli.js +139 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/config.d.ts +25 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/config.js +62 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/index.d.ts +2 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/index.js +45 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/pipeline.d.ts +14 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/pipeline.js +42 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/render/blocks/endpoints.d.ts +6 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/render/blocks/endpoints.js +112 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/render/blocks/glossary.d.ts +2 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/render/blocks/glossary.js +42 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/render/blocks/mermaid.d.ts +2 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/render/blocks/mermaid.js +17 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/render/llms.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/render/llms.js +52 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/render/markdown.d.ts +24 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/render/markdown.js +87 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/render/nav.d.ts +21 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/render/nav.js +107 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/render/pdf.d.ts +10 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/render/pdf.js +70 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/seeds/01-overview.md +74 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/seeds/02-api.md +169 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/seeds/03-improvements.md +90 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/seeds/04-glossary.md +55 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/seeds/seeds.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/seeds/seeds.js +53 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/source/enumerate.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/source/enumerate.js +50 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/source/reader.d.ts +20 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/source/reader.js +20 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/template/api-ref.css +593 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/template/app.js +297 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/template/brutalist.css +57 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/template/flat.css +182 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/template/minimal.css +578 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/template/ocean.css +179 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/template/paper.css +33 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/template/shell.d.ts +8 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/template/shell.js +181 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/template/solarized.css +162 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/template/terminal.css +37 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/template/theme.css +701 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/types.d.ts +97 -0
- package/bundle/standalone/node_modules/kxta-publish/dist/types.js +1 -0
- package/bundle/standalone/node_modules/kxta-publish/package.json +25 -0
- package/bundle/standalone/package.json +26 -0
- package/dist/chunk-KQTCKRN2.js +31 -0
- package/dist/doctor-W733U3FD.js +46 -0
- package/dist/index.js +45 -0
- package/dist/mcp-DGMGR3MZ.js +34 -0
- package/dist/start-RCW7AKUK.js +121 -0
- package/package.json +89 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4371],{84754:(e,t,r)=>{r.d(t,{Bg:()=>bb,CZ:()=>bC,DD:()=>R1,D_:()=>b$,F5:()=>$E,FZ:()=>bT,K2:()=>tf,Tm:()=>bx,WQ:()=>RU,XE:()=>bE,Xr:()=>bA,d$:()=>bv,dg:()=>bk,mR:()=>bN,p5:()=>bR,sr:()=>bm,tG:()=>Rq,uM:()=>RG,wV:()=>by,x0:()=>bg});var n,i,a,s,o,l,u,c,p,d,f,h,m,y,g,v,T,R,$,b,E,C,A,S,k,x,N,w,I,_,P,D,O,L,M,j,F,z,q,G,U,K,W,B,V,H,Y,X,J,Z,Q,ee,et,er,en,ei,ea,es,eo,el,eu,ec,ep,ed,ef,eh,em,ey,eg,ev,eT,eR,e$,eb,eE,eC,eA,eS,ek,ex,eN,ew,eI,e_,eP,eD,eO,eL,eM,ej,eF,ez,eq,eG,eU,eK,eW,eB,eV,eH,eY,eX,eJ,eZ,eQ,e0,e1,e2,e3,e9,e4,e5,e8,e7,e6,te,tt,tr,tn,ti,ta,ts=r(37811),to=Object.create,tl=Object.defineProperty,tu=Object.getOwnPropertyDescriptor,tc=Object.getOwnPropertyNames,tp=Object.getPrototypeOf,td=Object.prototype.hasOwnProperty,tf=(e,t)=>tl(e,"name",{value:t,configurable:!0}),th=(e,t)=>function(){return t||(0,e[tc(e)[0]])((t={exports:{}}).exports,t),t.exports},tm=(e,t)=>{for(var r in t)tl(e,r,{get:t[r],enumerable:!0})},ty=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of tc(t))td.call(e,i)||i===r||tl(e,i,{get:()=>t[i],enumerable:!(n=tu(t,i))||n.enumerable});return e},tg=(e,t,r)=>(ty(e,t,"default"),r&&ty(r,t,"default")),tv=(e,t,r)=>(r=null!=e?to(tp(e)):{},ty(!t&&e&&e.__esModule?r:tl(r,"default",{value:e,enumerable:!0}),e)),tT=e=>ty(tl({},"__esModule",{value:!0}),e),tR={};tm(tR,{AnnotatedTextEdit:()=>A,ChangeAnnotation:()=>E,ChangeAnnotationIdentifier:()=>C,CodeAction:()=>el,CodeActionContext:()=>eo,CodeActionKind:()=>ea,CodeActionTriggerKind:()=>es,CodeDescription:()=>T,CodeLens:()=>eu,Color:()=>p,ColorInformation:()=>d,ColorPresentation:()=>f,Command:()=>$,CompletionItem:()=>B,CompletionItemKind:()=>z,CompletionItemLabelDetails:()=>W,CompletionItemTag:()=>G,CompletionList:()=>V,CreateFile:()=>k,DeleteFile:()=>N,Diagnostic:()=>R,DiagnosticRelatedInformation:()=>y,DiagnosticSeverity:()=>g,DiagnosticTag:()=>v,DocumentHighlight:()=>Q,DocumentHighlightKind:()=>Z,DocumentLink:()=>ep,DocumentSymbol:()=>ei,DocumentUri:()=>n,EOL:()=>ew,FoldingRange:()=>m,FoldingRangeKind:()=>h,FormattingOptions:()=>ec,Hover:()=>Y,InlayHint:()=>eb,InlayHintKind:()=>eR,InlayHintLabelPart:()=>e$,InlineCompletionContext:()=>ex,InlineCompletionItem:()=>eC,InlineCompletionList:()=>eA,InlineCompletionTriggerKind:()=>eS,InlineValueContext:()=>eT,InlineValueEvaluatableExpression:()=>ev,InlineValueText:()=>ey,InlineValueVariableLookup:()=>eg,InsertReplaceEdit:()=>U,InsertTextFormat:()=>q,InsertTextMode:()=>K,Location:()=>u,LocationLink:()=>c,MarkedString:()=>H,MarkupContent:()=>F,MarkupKind:()=>j,OptionalVersionedTextDocumentIdentifier:()=>L,ParameterInformation:()=>X,Position:()=>o,Range:()=>l,RenameFile:()=>x,SelectedCompletionInfo:()=>ek,SelectionRange:()=>ed,SemanticTokenModifiers:()=>eh,SemanticTokenTypes:()=>ef,SemanticTokens:()=>em,SignatureInformation:()=>J,StringValue:()=>eE,SymbolInformation:()=>er,SymbolKind:()=>ee,SymbolTag:()=>et,TextDocument:()=>eI,TextDocumentEdit:()=>S,TextDocumentIdentifier:()=>D,TextDocumentItem:()=>M,TextEdit:()=>b,URI:()=>i,VersionedTextDocumentIdentifier:()=>O,WorkspaceChange:()=>P,WorkspaceEdit:()=>w,WorkspaceFolder:()=>eN,WorkspaceSymbol:()=>en,integer:()=>a,uinteger:()=>s});var t$=((e,t)=>function(){return e&&(t=(0,e[tc(e)[0]])(e=0)),t})({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var e,t,r,eD,eO,eL,eM,ej,eF,ez,eq,eG,eU,eK=n||(n={});function eW(e){return"string"==typeof e}tf(eW,"is"),eK.is=eW;var eB=i||(i={});function eV(e){return"string"==typeof e}tf(eV,"is"),eB.is=eV;var eH=a||(a={});function eY(e){return"number"==typeof e&&eH.MIN_VALUE<=e&&e<=eH.MAX_VALUE}eH.MIN_VALUE=-0x80000000,eH.MAX_VALUE=0x7fffffff,tf(eY,"is"),eH.is=eY;var eX=s||(s={});function eJ(e){return"number"==typeof e&&eX.MIN_VALUE<=e&&e<=eX.MAX_VALUE}eX.MIN_VALUE=0,eX.MAX_VALUE=0x7fffffff,tf(eJ,"is"),eX.is=eJ;var eZ=o||(o={});function eQ(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}}function e0(e){return eP.objectLiteral(e)&&eP.uinteger(e.line)&&eP.uinteger(e.character)}tf(eQ,"create"),eZ.create=eQ,tf(e0,"is"),eZ.is=e0;var e1=l||(l={});function e2(e,t,r,n){if(eP.uinteger(e)&&eP.uinteger(t)&&eP.uinteger(r)&&eP.uinteger(n))return{start:o.create(e,t),end:o.create(r,n)};if(o.is(e)&&o.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${r}, ${n}]`)}function e3(e){return eP.objectLiteral(e)&&o.is(e.start)&&o.is(e.end)}tf(e2,"create"),e1.create=e2,tf(e3,"is"),e1.is=e3;var e9=u||(u={});function e4(e,t){return{uri:e,range:t}}function e5(e){return eP.objectLiteral(e)&&l.is(e.range)&&(eP.string(e.uri)||eP.undefined(e.uri))}tf(e4,"create"),e9.create=e4,tf(e5,"is"),e9.is=e5;var e8=c||(c={});function e7(e,t,r,n){return{targetUri:e,targetRange:t,targetSelectionRange:r,originSelectionRange:n}}function e6(e){return eP.objectLiteral(e)&&l.is(e.targetRange)&&eP.string(e.targetUri)&&l.is(e.targetSelectionRange)&&(l.is(e.originSelectionRange)||eP.undefined(e.originSelectionRange))}tf(e7,"create"),e8.create=e7,tf(e6,"is"),e8.is=e6;var te=p||(p={});function tt(e,t,r,n){return{red:e,green:t,blue:r,alpha:n}}function tr(e){return eP.objectLiteral(e)&&eP.numberRange(e.red,0,1)&&eP.numberRange(e.green,0,1)&&eP.numberRange(e.blue,0,1)&&eP.numberRange(e.alpha,0,1)}tf(tt,"create"),te.create=tt,tf(tr,"is"),te.is=tr;var tn=d||(d={});function ti(e,t){return{range:e,color:t}}function ta(e){return eP.objectLiteral(e)&&l.is(e.range)&&p.is(e.color)}tf(ti,"create"),tn.create=ti,tf(ta,"is"),tn.is=ta;var ts=f||(f={});function to(e,t,r){return{label:e,textEdit:t,additionalTextEdits:r}}function tl(e){return eP.objectLiteral(e)&&eP.string(e.label)&&(eP.undefined(e.textEdit)||b.is(e))&&(eP.undefined(e.additionalTextEdits)||eP.typedArray(e.additionalTextEdits,b.is))}tf(to,"create"),ts.create=to,tf(tl,"is"),ts.is=tl,(e=h||(h={})).Comment="comment",e.Imports="imports",e.Region="region";var tu=m||(m={});function tc(e,t,r,n,i,a){let s={startLine:e,endLine:t};return eP.defined(r)&&(s.startCharacter=r),eP.defined(n)&&(s.endCharacter=n),eP.defined(i)&&(s.kind=i),eP.defined(a)&&(s.collapsedText=a),s}function tp(e){return eP.objectLiteral(e)&&eP.uinteger(e.startLine)&&eP.uinteger(e.startLine)&&(eP.undefined(e.startCharacter)||eP.uinteger(e.startCharacter))&&(eP.undefined(e.endCharacter)||eP.uinteger(e.endCharacter))&&(eP.undefined(e.kind)||eP.string(e.kind))}tf(tc,"create"),tu.create=tc,tf(tp,"is"),tu.is=tp;var td=y||(y={});function th(e,t){return{location:e,message:t}}function tm(e){return eP.defined(e)&&u.is(e.location)&&eP.string(e.message)}tf(th,"create"),td.create=th,tf(tm,"is"),td.is=tm,(t=g||(g={})).Error=1,t.Warning=2,t.Information=3,t.Hint=4,(r=v||(v={})).Unnecessary=1,r.Deprecated=2;var ty=T||(T={});function tg(e){return eP.objectLiteral(e)&&eP.string(e.href)}tf(tg,"is"),ty.is=tg;var tv=R||(R={});function tT(e,t,r,n,i,a){let s={range:e,message:t};return eP.defined(r)&&(s.severity=r),eP.defined(n)&&(s.code=n),eP.defined(i)&&(s.source=i),eP.defined(a)&&(s.relatedInformation=a),s}function tR(e){var t;return eP.defined(e)&&l.is(e.range)&&eP.string(e.message)&&(eP.number(e.severity)||eP.undefined(e.severity))&&(eP.integer(e.code)||eP.string(e.code)||eP.undefined(e.code))&&(eP.undefined(e.codeDescription)||eP.string(null==(t=e.codeDescription)?void 0:t.href))&&(eP.string(e.source)||eP.undefined(e.source))&&(eP.undefined(e.relatedInformation)||eP.typedArray(e.relatedInformation,y.is))}tf(tT,"create"),tv.create=tT,tf(tR,"is"),tv.is=tR;var t$=$||($={});function tb(e,t,...r){let n={title:e,command:t};return eP.defined(r)&&r.length>0&&(n.arguments=r),n}function tE(e){return eP.defined(e)&&eP.string(e.title)&&eP.string(e.command)}tf(tb,"create"),t$.create=tb,tf(tE,"is"),t$.is=tE,function(e){function t(e,t){return{range:e,newText:t}}function r(e,t){return{range:{start:e,end:e},newText:t}}function n(e){return{range:e,newText:""}}function i(e){return eP.objectLiteral(e)&&eP.string(e.newText)&&l.is(e.range)}tf(t,"replace"),e.replace=t,tf(r,"insert"),e.insert=r,tf(n,"del"),e.del=n,tf(i,"is"),e.is=i}(b||(b={}));var tC=E||(E={});function tA(e,t,r){let n={label:e};return void 0!==t&&(n.needsConfirmation=t),void 0!==r&&(n.description=r),n}function tS(e){return eP.objectLiteral(e)&&eP.string(e.label)&&(eP.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(eP.string(e.description)||void 0===e.description)}tf(tA,"create"),tC.create=tA,tf(tS,"is"),tC.is=tS;var tk=C||(C={});function tx(e){return eP.string(e)}tf(tx,"is"),tk.is=tx,function(e){function t(e,t,r){return{range:e,newText:t,annotationId:r}}function r(e,t,r){return{range:{start:e,end:e},newText:t,annotationId:r}}function n(e,t){return{range:e,newText:"",annotationId:t}}function i(e){return b.is(e)&&(E.is(e.annotationId)||C.is(e.annotationId))}tf(t,"replace"),e.replace=t,tf(r,"insert"),e.insert=r,tf(n,"del"),e.del=n,tf(i,"is"),e.is=i}(A||(A={}));var tN=S||(S={});function tw(e,t){return{textDocument:e,edits:t}}function tI(e){return eP.defined(e)&&L.is(e.textDocument)&&Array.isArray(e.edits)}tf(tw,"create"),tN.create=tw,tf(tI,"is"),tN.is=tI;var t_=k||(k={});function tP(e,t,r){let n={kind:"create",uri:e};return void 0!==t&&(void 0!==t.overwrite||void 0!==t.ignoreIfExists)&&(n.options=t),void 0!==r&&(n.annotationId=r),n}function tD(e){return e&&"create"===e.kind&&eP.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||eP.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||eP.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||C.is(e.annotationId))}tf(tP,"create"),t_.create=tP,tf(tD,"is"),t_.is=tD;var tO=x||(x={});function tL(e,t,r,n){let i={kind:"rename",oldUri:e,newUri:t};return void 0!==r&&(void 0!==r.overwrite||void 0!==r.ignoreIfExists)&&(i.options=r),void 0!==n&&(i.annotationId=n),i}function tM(e){return e&&"rename"===e.kind&&eP.string(e.oldUri)&&eP.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||eP.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||eP.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||C.is(e.annotationId))}tf(tL,"create"),tO.create=tL,tf(tM,"is"),tO.is=tM;var tj=N||(N={});function tF(e,t,r){let n={kind:"delete",uri:e};return void 0!==t&&(void 0!==t.recursive||void 0!==t.ignoreIfNotExists)&&(n.options=t),void 0!==r&&(n.annotationId=r),n}function tz(e){return e&&"delete"===e.kind&&eP.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||eP.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||eP.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||C.is(e.annotationId))}tf(tF,"create"),tj.create=tF,tf(tz,"is"),tj.is=tz;var tq=w||(w={});function tG(e){return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every(e=>eP.string(e.kind)?k.is(e)||x.is(e)||N.is(e):S.is(e)))}tf(tG,"is"),tq.is=tG,I=class{static{tf(this,"TextEditChangeImpl")}constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,r){let n,i;if(void 0===r?n=b.insert(e,t):C.is(r)?(i=r,n=A.insert(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),n=A.insert(e,t,i)),this.edits.push(n),void 0!==i)return i}replace(e,t,r){let n,i;if(void 0===r?n=b.replace(e,t):C.is(r)?(i=r,n=A.replace(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),n=A.replace(e,t,i)),this.edits.push(n),void 0!==i)return i}delete(e,t){let r,n;if(void 0===t?r=b.del(e):C.is(t)?(n=t,r=A.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),r=A.del(e,n)),this.edits.push(r),void 0!==n)return n}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(void 0===e)throw Error("Text edit change is not configured to manage change annotations.")}},_=class{static{tf(this,"ChangeAnnotations")}constructor(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let r;if(C.is(e)?r=e:(r=this.nextId(),t=e),void 0!==this._annotations[r])throw Error(`Id ${r} is already in use.`);if(void 0===t)throw Error(`No annotation provided for id ${r}`);return this._annotations[r]=t,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},P=class{static{tf(this,"WorkspaceChange")}constructor(e){this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new _(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(e=>{if(S.is(e)){let t=new I(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}})):e.changes&&Object.keys(e.changes).forEach(t=>{let r=new I(e.changes[t]);this._textEditChanges[t]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(L.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");let t={uri:e.uri,version:e.version},r=this._textEditChanges[t.uri];if(!r){let e=[];this._workspaceEdit.documentChanges.push({textDocument:t,edits:e}),r=new I(e,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){let r=[];this._workspaceEdit.changes[e]=r,t=new I(r),this._textEditChanges[e]=t}return t}}initDocumentChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new _,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,r){let n,i,a;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(E.is(t)||C.is(t)?n=t:r=t,void 0===n?i=k.create(e,r):(a=C.is(n)?n:this._changeAnnotations.manage(n),i=k.create(e,r,a)),this._workspaceEdit.documentChanges.push(i),void 0!==a)return a}renameFile(e,t,r,n){let i,a,s;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(E.is(r)||C.is(r)?i=r:n=r,void 0===i?a=x.create(e,t,n):(s=C.is(i)?i:this._changeAnnotations.manage(i),a=x.create(e,t,n,s)),this._workspaceEdit.documentChanges.push(a),void 0!==s)return s}deleteFile(e,t,r){let n,i,a;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(E.is(t)||C.is(t)?n=t:r=t,void 0===n?i=N.create(e,r):(a=C.is(n)?n:this._changeAnnotations.manage(n),i=N.create(e,r,a)),this._workspaceEdit.documentChanges.push(i),void 0!==a)return a}};var tU=D||(D={});function tK(e){return{uri:e}}function tW(e){return eP.defined(e)&&eP.string(e.uri)}tf(tK,"create"),tU.create=tK,tf(tW,"is"),tU.is=tW;var tB=O||(O={});function tV(e,t){return{uri:e,version:t}}function tH(e){return eP.defined(e)&&eP.string(e.uri)&&eP.integer(e.version)}tf(tV,"create"),tB.create=tV,tf(tH,"is"),tB.is=tH;var tY=L||(L={});function tX(e,t){return{uri:e,version:t}}function tJ(e){return eP.defined(e)&&eP.string(e.uri)&&(null===e.version||eP.integer(e.version))}tf(tX,"create"),tY.create=tX,tf(tJ,"is"),tY.is=tJ;var tZ=M||(M={});function tQ(e,t,r,n){return{uri:e,languageId:t,version:r,text:n}}function t0(e){return eP.defined(e)&&eP.string(e.uri)&&eP.string(e.languageId)&&eP.integer(e.version)&&eP.string(e.text)}tf(tQ,"create"),tZ.create=tQ,tf(t0,"is"),tZ.is=t0;var t1=j||(j={});function t2(e){return e===t1.PlainText||e===t1.Markdown}t1.PlainText="plaintext",t1.Markdown="markdown",tf(t2,"is"),t1.is=t2;var t3=F||(F={});function t9(e){return eP.objectLiteral(e)&&j.is(e.kind)&&eP.string(e.value)}tf(t9,"is"),t3.is=t9,(eD=z||(z={})).Text=1,eD.Method=2,eD.Function=3,eD.Constructor=4,eD.Field=5,eD.Variable=6,eD.Class=7,eD.Interface=8,eD.Module=9,eD.Property=10,eD.Unit=11,eD.Value=12,eD.Enum=13,eD.Keyword=14,eD.Snippet=15,eD.Color=16,eD.File=17,eD.Reference=18,eD.Folder=19,eD.EnumMember=20,eD.Constant=21,eD.Struct=22,eD.Event=23,eD.Operator=24,eD.TypeParameter=25,(eO=q||(q={})).PlainText=1,eO.Snippet=2,(G||(G={})).Deprecated=1;var t4=U||(U={});function t5(e,t,r){return{newText:e,insert:t,replace:r}}function t8(e){return e&&eP.string(e.newText)&&l.is(e.insert)&&l.is(e.replace)}tf(t5,"create"),t4.create=t5,tf(t8,"is"),t4.is=t8,(eL=K||(K={})).asIs=1,eL.adjustIndentation=2;var t7=W||(W={});function t6(e){return e&&(eP.string(e.detail)||void 0===e.detail)&&(eP.string(e.description)||void 0===e.description)}tf(t6,"is"),t7.is=t6;var re=B||(B={});function rt(e){return{label:e}}tf(rt,"create"),re.create=rt;var rr=V||(V={});function rn(e,t){return{items:e||[],isIncomplete:!!t}}tf(rn,"create"),rr.create=rn;var ri=H||(H={});function ra(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function rs(e){return eP.string(e)||eP.objectLiteral(e)&&eP.string(e.language)&&eP.string(e.value)}tf(ra,"fromPlainText"),ri.fromPlainText=ra,tf(rs,"is"),ri.is=rs;var ro=Y||(Y={});function rl(e){return!!e&&eP.objectLiteral(e)&&(F.is(e.contents)||H.is(e.contents)||eP.typedArray(e.contents,H.is))&&(void 0===e.range||l.is(e.range))}tf(rl,"is"),ro.is=rl;var ru=X||(X={});function rc(e,t){return t?{label:e,documentation:t}:{label:e}}tf(rc,"create"),ru.create=rc;var rp=J||(J={});function rd(e,t,...r){let n={label:e};return eP.defined(t)&&(n.documentation=t),eP.defined(r)?n.parameters=r:n.parameters=[],n}tf(rd,"create"),rp.create=rd,(eM=Z||(Z={})).Text=1,eM.Read=2,eM.Write=3;var rf=Q||(Q={});function rh(e,t){let r={range:e};return eP.number(t)&&(r.kind=t),r}tf(rh,"create"),rf.create=rh,(ej=ee||(ee={})).File=1,ej.Module=2,ej.Namespace=3,ej.Package=4,ej.Class=5,ej.Method=6,ej.Property=7,ej.Field=8,ej.Constructor=9,ej.Enum=10,ej.Interface=11,ej.Function=12,ej.Variable=13,ej.Constant=14,ej.String=15,ej.Number=16,ej.Boolean=17,ej.Array=18,ej.Object=19,ej.Key=20,ej.Null=21,ej.EnumMember=22,ej.Struct=23,ej.Event=24,ej.Operator=25,ej.TypeParameter=26,(et||(et={})).Deprecated=1;var rm=er||(er={});function ry(e,t,r,n,i){let a={name:e,kind:t,location:{uri:n,range:r}};return i&&(a.containerName=i),a}tf(ry,"create"),rm.create=ry;var rg=en||(en={});function rv(e,t,r,n){return void 0!==n?{name:e,kind:t,location:{uri:r,range:n}}:{name:e,kind:t,location:{uri:r}}}tf(rv,"create"),rg.create=rv;var rT=ei||(ei={});function rR(e,t,r,n,i,a){let s={name:e,detail:t,kind:r,range:n,selectionRange:i};return void 0!==a&&(s.children=a),s}function r$(e){return e&&eP.string(e.name)&&eP.number(e.kind)&&l.is(e.range)&&l.is(e.selectionRange)&&(void 0===e.detail||eP.string(e.detail))&&(void 0===e.deprecated||eP.boolean(e.deprecated))&&(void 0===e.children||Array.isArray(e.children))&&(void 0===e.tags||Array.isArray(e.tags))}tf(rR,"create"),rT.create=rR,tf(r$,"is"),rT.is=r$,(eF=ea||(ea={})).Empty="",eF.QuickFix="quickfix",eF.Refactor="refactor",eF.RefactorExtract="refactor.extract",eF.RefactorInline="refactor.inline",eF.RefactorRewrite="refactor.rewrite",eF.Source="source",eF.SourceOrganizeImports="source.organizeImports",eF.SourceFixAll="source.fixAll",(ez=es||(es={})).Invoked=1,ez.Automatic=2;var rb=eo||(eo={});function rE(e,t,r){let n={diagnostics:e};return null!=t&&(n.only=t),null!=r&&(n.triggerKind=r),n}function rC(e){return eP.defined(e)&&eP.typedArray(e.diagnostics,R.is)&&(void 0===e.only||eP.typedArray(e.only,eP.string))&&(void 0===e.triggerKind||e.triggerKind===es.Invoked||e.triggerKind===es.Automatic)}tf(rE,"create"),rb.create=rE,tf(rC,"is"),rb.is=rC;var rA=el||(el={});function rS(e,t,r){let n={title:e},i=!0;return"string"==typeof t?(i=!1,n.kind=t):$.is(t)?n.command=t:n.edit=t,i&&void 0!==r&&(n.kind=r),n}function rk(e){return e&&eP.string(e.title)&&(void 0===e.diagnostics||eP.typedArray(e.diagnostics,R.is))&&(void 0===e.kind||eP.string(e.kind))&&(void 0!==e.edit||void 0!==e.command)&&(void 0===e.command||$.is(e.command))&&(void 0===e.isPreferred||eP.boolean(e.isPreferred))&&(void 0===e.edit||w.is(e.edit))}tf(rS,"create"),rA.create=rS,tf(rk,"is"),rA.is=rk;var rx=eu||(eu={});function rN(e,t){let r={range:e};return eP.defined(t)&&(r.data=t),r}function rw(e){return eP.defined(e)&&l.is(e.range)&&(eP.undefined(e.command)||$.is(e.command))}tf(rN,"create"),rx.create=rN,tf(rw,"is"),rx.is=rw;var rI=ec||(ec={});function r_(e,t){return{tabSize:e,insertSpaces:t}}function rP(e){return eP.defined(e)&&eP.uinteger(e.tabSize)&&eP.boolean(e.insertSpaces)}tf(r_,"create"),rI.create=r_,tf(rP,"is"),rI.is=rP;var rD=ep||(ep={});function rO(e,t,r){return{range:e,target:t,data:r}}function rL(e){return eP.defined(e)&&l.is(e.range)&&(eP.undefined(e.target)||eP.string(e.target))}tf(rO,"create"),rD.create=rO,tf(rL,"is"),rD.is=rL;var rM=ed||(ed={});function rj(e,t){return{range:e,parent:t}}function rF(e){return eP.objectLiteral(e)&&l.is(e.range)&&(void 0===e.parent||rM.is(e.parent))}tf(rj,"create"),rM.create=rj,tf(rF,"is"),rM.is=rF,(eq=ef||(ef={})).namespace="namespace",eq.type="type",eq.class="class",eq.enum="enum",eq.interface="interface",eq.struct="struct",eq.typeParameter="typeParameter",eq.parameter="parameter",eq.variable="variable",eq.property="property",eq.enumMember="enumMember",eq.event="event",eq.function="function",eq.method="method",eq.macro="macro",eq.keyword="keyword",eq.modifier="modifier",eq.comment="comment",eq.string="string",eq.number="number",eq.regexp="regexp",eq.operator="operator",eq.decorator="decorator",(eG=eh||(eh={})).declaration="declaration",eG.definition="definition",eG.readonly="readonly",eG.static="static",eG.deprecated="deprecated",eG.abstract="abstract",eG.async="async",eG.modification="modification",eG.documentation="documentation",eG.defaultLibrary="defaultLibrary";var rz=em||(em={});function rq(e){return eP.objectLiteral(e)&&(void 0===e.resultId||"string"==typeof e.resultId)&&Array.isArray(e.data)&&(0===e.data.length||"number"==typeof e.data[0])}tf(rq,"is"),rz.is=rq;var rG=ey||(ey={});function rU(e,t){return{range:e,text:t}}function rK(e){return null!=e&&l.is(e.range)&&eP.string(e.text)}tf(rU,"create"),rG.create=rU,tf(rK,"is"),rG.is=rK;var rW=eg||(eg={});function rB(e,t,r){return{range:e,variableName:t,caseSensitiveLookup:r}}function rV(e){return null!=e&&l.is(e.range)&&eP.boolean(e.caseSensitiveLookup)&&(eP.string(e.variableName)||void 0===e.variableName)}tf(rB,"create"),rW.create=rB,tf(rV,"is"),rW.is=rV;var rH=ev||(ev={});function rY(e,t){return{range:e,expression:t}}function rX(e){return null!=e&&l.is(e.range)&&(eP.string(e.expression)||void 0===e.expression)}tf(rY,"create"),rH.create=rY,tf(rX,"is"),rH.is=rX;var rJ=eT||(eT={});function rZ(e,t){return{frameId:e,stoppedLocation:t}}function rQ(e){return eP.defined(e)&&l.is(e.stoppedLocation)}tf(rZ,"create"),rJ.create=rZ,tf(rQ,"is"),rJ.is=rQ;var r0=eR||(eR={});function r1(e){return 1===e||2===e}r0.Type=1,r0.Parameter=2,tf(r1,"is"),r0.is=r1;var r2=e$||(e$={});function r3(e){return{value:e}}function r9(e){return eP.objectLiteral(e)&&(void 0===e.tooltip||eP.string(e.tooltip)||F.is(e.tooltip))&&(void 0===e.location||u.is(e.location))&&(void 0===e.command||$.is(e.command))}tf(r3,"create"),r2.create=r3,tf(r9,"is"),r2.is=r9;var r4=eb||(eb={});function r5(e,t,r){let n={position:e,label:t};return void 0!==r&&(n.kind=r),n}function r8(e){return eP.objectLiteral(e)&&o.is(e.position)&&(eP.string(e.label)||eP.typedArray(e.label,e$.is))&&(void 0===e.kind||eR.is(e.kind))&&void 0===e.textEdits||eP.typedArray(e.textEdits,b.is)&&(void 0===e.tooltip||eP.string(e.tooltip)||F.is(e.tooltip))&&(void 0===e.paddingLeft||eP.boolean(e.paddingLeft))&&(void 0===e.paddingRight||eP.boolean(e.paddingRight))}tf(r5,"create"),r4.create=r5,tf(r8,"is"),r4.is=r8;var r7=eE||(eE={});function r6(e){return{kind:"snippet",value:e}}tf(r6,"createSnippet"),r7.createSnippet=r6;var ne=eC||(eC={});function nt(e,t,r,n){return{insertText:e,filterText:t,range:r,command:n}}tf(nt,"create"),ne.create=nt;var nr=eA||(eA={});function nn(e){return{items:e}}tf(nn,"create"),nr.create=nn,(eU=eS||(eS={})).Invoked=0,eU.Automatic=1;var ni=ek||(ek={});function na(e,t){return{range:e,text:t}}tf(na,"create"),ni.create=na;var ns=ex||(ex={});function no(e,t){return{triggerKind:e,selectedCompletionInfo:t}}tf(no,"create"),ns.create=no;var nl=eN||(eN={});function nu(e){return eP.objectLiteral(e)&&i.is(e.uri)&&eP.string(e.name)}tf(nu,"is"),nl.is=nu,ew=["\n","\r\n","\r"],function(e){function t(e,t,r,n){return new e_(e,t,r,n)}function r(e){return!!(eP.defined(e)&&eP.string(e.uri)&&(eP.undefined(e.languageId)||eP.string(e.languageId))&&eP.uinteger(e.lineCount)&&eP.func(e.getText)&&eP.func(e.positionAt)&&eP.func(e.offsetAt))}function n(e,t){let r=e.getText(),n=i(t,(e,t)=>{let r=e.range.start.line-t.range.start.line;return 0===r?e.range.start.character-t.range.start.character:r}),a=r.length;for(let t=n.length-1;t>=0;t--){let i=n[t],s=e.offsetAt(i.range.start),o=e.offsetAt(i.range.end);if(o<=a)r=r.substring(0,s)+i.newText+r.substring(o,r.length);else throw Error("Overlapping edit");a=s}return r}function i(e,t){if(e.length<=1)return e;let r=e.length/2|0,n=e.slice(0,r),a=e.slice(r);i(n,t),i(a,t);let s=0,o=0,l=0;for(;s<n.length&&o<a.length;)0>=t(n[s],a[o])?e[l++]=n[s++]:e[l++]=a[o++];for(;s<n.length;)e[l++]=n[s++];for(;o<a.length;)e[l++]=a[o++];return e}tf(t,"create"),e.create=t,tf(r,"is"),e.is=r,tf(n,"applyEdits"),e.applyEdits=n,tf(i,"mergeSort")}(eI||(eI={})),e_=class{static{tf(this,"FullTextDocument")}constructor(e,t,r,n){this._uri=e,this._languageId=t,this._version=r,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,r=!0;for(let n=0;n<t.length;n++){r&&(e.push(n),r=!1);let i=t.charAt(n);r="\r"===i||"\n"===i,"\r"===i&&n+1<t.length&&"\n"===t.charAt(n+1)&&n++}r&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),r=0,n=t.length;if(0===n)return o.create(0,e);for(;r<n;){let i=Math.floor((r+n)/2);t[i]>e?n=i:r=i+1}let i=r-1;return o.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let r=t[e.line],n=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,n),r)}get lineCount(){return this.getLineOffsets().length}},function(e){let t=Object.prototype.toString;function r(e){return void 0!==e}function n(e){return void 0===e}function i(e){return!0===e||!1===e}function a(e){return"[object String]"===t.call(e)}function s(e){return"[object Number]"===t.call(e)}function o(e,r,n){return"[object Number]"===t.call(e)&&r<=e&&e<=n}function l(e){return"[object Number]"===t.call(e)&&-0x80000000<=e&&e<=0x7fffffff}function u(e){return"[object Number]"===t.call(e)&&0<=e&&e<=0x7fffffff}function c(e){return"[object Function]"===t.call(e)}function p(e){return null!==e&&"object"==typeof e}function d(e,t){return Array.isArray(e)&&e.every(t)}tf(r,"defined"),e.defined=r,tf(n,"undefined"),e.undefined=n,tf(i,"boolean"),e.boolean=i,tf(a,"string"),e.string=a,tf(s,"number"),e.number=s,tf(o,"numberRange"),e.numberRange=o,tf(l,"integer"),e.integer=l,tf(u,"uinteger"),e.uinteger=u,tf(c,"func"),e.func=c,tf(p,"objectLiteral"),e.objectLiteral=p,tf(d,"typedArray"),e.typedArray=d}(eP||(eP={}))}}),tb=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){function t(){if(void 0===r)throw Error("No runtime abstraction layer installed");return r}Object.defineProperty(e,"__esModule",{value:!0}),tf(t,"RAL");var r,n=t||(t={});function i(e){if(void 0===e)throw Error("No runtime abstraction layer provided");r=e}tf(i,"install"),n.install=i,e.default=t}}),tE=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.js"(e){function t(e){return!0===e||!1===e}function r(e){return"string"==typeof e||e instanceof String}function n(e){return"number"==typeof e||e instanceof Number}function i(e){return e instanceof Error}function a(e){return"function"==typeof e}function s(e){return Array.isArray(e)}function o(e){return s(e)&&e.every(e=>r(e))}Object.defineProperty(e,"__esModule",{value:!0}),e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0,tf(t,"boolean"),e.boolean=t,tf(r,"string"),e.string=r,tf(n,"number"),e.number=n,tf(i,"error"),e.error=i,tf(a,"func"),e.func=a,tf(s,"array"),e.array=s,tf(o,"stringArray"),e.stringArray=o}}),tC=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var t,r=tb(),n=t||(e.Event=t={});let i={dispose(){}};n.None=function(){return i};var a=class{static{tf(this,"CallbackList")}add(e,t=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(r)&&r.push({dispose:tf(()=>this.remove(e,t),"dispose")})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let n=0,i=this._callbacks.length;n<i;n++)if(this._callbacks[n]===e)if(this._contexts[n]===t){this._callbacks.splice(n,1),this._contexts.splice(n,1);return}else r=!0;if(r)throw Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let t=[],n=this._callbacks.slice(0),i=this._contexts.slice(0);for(let a=0,s=n.length;a<s;a++)try{t.push(n[a].apply(i[a],e))}catch(e){(0,r.default)().console.error(e)}return t}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}},s=class e{static{tf(this,"Emitter")}constructor(e){this._options=e}get event(){return this._event||(this._event=(t,r,n)=>{this._callbacks||(this._callbacks=new a),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,r);let i={dispose:tf(()=>{this._callbacks&&(this._callbacks.remove(t,r),i.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(n)&&n.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};e.Emitter=s,s._noop=function(){}}}),tA=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var t,r=tb(),n=tE(),i=tC(),a=t||(e.CancellationToken=t={});function s(e){return e&&(e===a.None||e===a.Cancelled||n.boolean(e.isCancellationRequested)&&!!e.onCancellationRequested)}a.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.Event.None}),a.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i.Event.None}),tf(s,"is"),a.is=s;var o=Object.freeze(function(e,t){let n=(0,r.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),l=class{static{tf(this,"MutableToken")}constructor(){this._isCancelled=!1}cancel(){!this._isCancelled&&(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||(this._emitter=new i.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}};e.CancellationTokenSource=class{static{tf(this,"CancellationTokenSource")}get token(){return this._token||(this._token=new l),this._token}cancel(){this._token?this._token.cancel():this._token=t.Cancelled}dispose(){this._token?this._token instanceof l&&this._token.dispose():this._token=t.None}}}}),tS=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var t,r,n,i=tE();(t=r||(e.ErrorCodes=r={})).ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=-32099,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.PendingResponseRejected=-32097,t.ConnectionInactive=-32096,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=-32e3,e.ResponseError=class e extends Error{static{tf(this,"ResponseError")}constructor(t,n,a){super(n),this.code=i.number(t)?t:r.UnknownErrorCode,this.data=a,Object.setPrototypeOf(this,e.prototype)}toJson(){let e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}};var a=class e{static{tf(this,"ParameterStructures")}constructor(e){this.kind=e}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};e.ParameterStructures=a,a.auto=new a("auto"),a.byPosition=new a("byPosition"),a.byName=new a("byName");var s=class{static{tf(this,"AbstractMessageSignature")}constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return a.auto}};e.AbstractMessageSignature=s,e.RequestType0=class extends s{static{tf(this,"RequestType0")}constructor(e){super(e,0)}},e.RequestType=class extends s{static{tf(this,"RequestType")}constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType1=class extends s{static{tf(this,"RequestType1")}constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType2=class extends s{static{tf(this,"RequestType2")}constructor(e){super(e,2)}},e.RequestType3=class extends s{static{tf(this,"RequestType3")}constructor(e){super(e,3)}},e.RequestType4=class extends s{static{tf(this,"RequestType4")}constructor(e){super(e,4)}},e.RequestType5=class extends s{static{tf(this,"RequestType5")}constructor(e){super(e,5)}},e.RequestType6=class extends s{static{tf(this,"RequestType6")}constructor(e){super(e,6)}},e.RequestType7=class extends s{static{tf(this,"RequestType7")}constructor(e){super(e,7)}},e.RequestType8=class extends s{static{tf(this,"RequestType8")}constructor(e){super(e,8)}},e.RequestType9=class extends s{static{tf(this,"RequestType9")}constructor(e){super(e,9)}},e.NotificationType=class extends s{static{tf(this,"NotificationType")}constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType0=class extends s{static{tf(this,"NotificationType0")}constructor(e){super(e,0)}},e.NotificationType1=class extends s{static{tf(this,"NotificationType1")}constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType2=class extends s{static{tf(this,"NotificationType2")}constructor(e){super(e,2)}},e.NotificationType3=class extends s{static{tf(this,"NotificationType3")}constructor(e){super(e,3)}},e.NotificationType4=class extends s{static{tf(this,"NotificationType4")}constructor(e){super(e,4)}},e.NotificationType5=class extends s{static{tf(this,"NotificationType5")}constructor(e){super(e,5)}},e.NotificationType6=class extends s{static{tf(this,"NotificationType6")}constructor(e){super(e,6)}},e.NotificationType7=class extends s{static{tf(this,"NotificationType7")}constructor(e){super(e,7)}},e.NotificationType8=class extends s{static{tf(this,"NotificationType8")}constructor(e){super(e,8)}},e.NotificationType9=class extends s{static{tf(this,"NotificationType9")}constructor(e){super(e,9)}},function(e){function t(e){return e&&i.string(e.method)&&(i.string(e.id)||i.number(e.id))}function r(e){return e&&i.string(e.method)&&void 0===e.id}function n(e){return e&&(void 0!==e.result||!!e.error)&&(i.string(e.id)||i.number(e.id)||null===e.id)}tf(t,"isRequest"),e.isRequest=t,tf(r,"isNotification"),e.isNotification=r,tf(n,"isResponse"),e.isResponse=n}(n||(e.Message=n={}))}}),tk=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0,(t=n||(e.Touch=n={})).None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last;var t,r,n,i=class{static{tf(this,"LinkedMap")}constructor(){this[r]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=n.None){let r=this._map.get(e);if(r)return t!==n.None&&this.touch(r,t),r.value}set(e,t,r=n.None){let i=this._map.get(e);if(i)i.value=t,r!==n.None&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case n.None:this.addItemLast(i);break;case n.First:this.addItemFirst(i);break;case n.Last:default:this.addItemLast(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let r=this._state,n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==r)throw Error("LinkedMap got modified during iteration.");n=n.next}}keys(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:tf(()=>{if(this._state!==e)throw Error("LinkedMap got modified during iteration.");if(!t)return{value:void 0,done:!0};{let e={value:t.key,done:!1};return t=t.next,e}},"next")};return r}values(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:tf(()=>{if(this._state!==e)throw Error("LinkedMap got modified during iteration.");if(!t)return{value:void 0,done:!0};{let e={value:t.value,done:!1};return t=t.next,e}},"next")};return r}entries(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:tf(()=>{if(this._state!==e)throw Error("LinkedMap got modified during iteration.");if(!t)return{value:void 0,done:!0};{let e={value:[t.key,t.value],done:!1};return t=t.next,e}},"next")};return r}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,r=this.size;for(;t&&r>e;)this._map.delete(t.key),t=t.next,r--;this._head=t,this._size=r,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail)if(this._head)e.next=this._head,this._head.previous=e;else throw Error("Invalid list");else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail)if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error("Invalid list");else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,r=e.previous;if(!t||!r)throw Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error("Invalid list");if(t===n.First||t===n.Last){if(t===n.First){if(e===this._head)return;let t=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(t.previous=r,r.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;let t=e.next,r=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=r,r.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,r)=>{e.push([r,t])}),e}fromJSON(e){for(let[t,r]of(this.clear(),e))this.set(t,r)}};e.LinkedMap=i,e.LRUCache=class extends i{static{tf(this,"LRUCache")}constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}}}),tx=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t,r=t||(e.Disposable=t={});function n(e){return{dispose:e}}tf(n,"create"),r.create=n}}),tN=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t,r,n=tA();(t=r||(r={})).Continue=0,t.Cancelled=1,e.SharedArraySenderStrategy=class{static{tf(this,"SharedArraySenderStrategy")}constructor(){this.buffers=new Map}enableCancellation(e){if(null===e.id)return;let t=new SharedArrayBuffer(4);new Int32Array(t,0,1)[0]=r.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){let n=this.buffers.get(t);if(void 0===n)return;let i=new Int32Array(n,0,1);Atomics.store(i,0,r.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};var i=class{static{tf(this,"SharedArrayBufferCancellationToken")}constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},a=class{static{tf(this,"SharedArrayBufferCancellationTokenSource")}constructor(e){this.token=new i(e)}cancel(){}dispose(){}};e.SharedArrayReceiverStrategy=class{static{tf(this,"SharedArrayReceiverStrategy")}constructor(){this.kind="request"}createCancellationTokenSource(e){let t=e.$cancellationData;return void 0===t?new n.CancellationTokenSource:new a(t)}}}}),tw=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var t=tb();e.Semaphore=class{static{tf(this,"Semaphore")}constructor(e=1){if(e<=0)throw Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,r)=>{this._waiting.push({thunk:e,resolve:t,reject:r}),this.runNext()})}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,t.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("To many thunks active");try{let t=e.thunk();t instanceof Promise?t.then(t=>{this._active--,e.resolve(t),this.runNext()},t=>{this._active--,e.reject(t),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}}}),tI=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var t,r,n=tb(),i=tE(),a=tC(),s=tw(),o=t||(e.MessageReader=t={});function l(e){return e&&i.func(e.listen)&&i.func(e.dispose)&&i.func(e.onError)&&i.func(e.onClose)&&i.func(e.onPartialMessage)}tf(l,"is"),o.is=l;var u=class{static{tf(this,"AbstractMessageReader")}constructor(){this.errorEmitter=new a.Emitter,this.closeEmitter=new a.Emitter,this.partialMessageEmitter=new a.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:Error(`Reader received error. Reason: ${i.string(e.message)?e.message:"unknown"}`)}};e.AbstractMessageReader=u;var c=r||(r={});function p(e){let t,r,i,a=new Map,s=new Map;if(void 0===e||"string"==typeof e)t=e??"utf-8";else{if(t=e.charset??"utf-8",void 0!==e.contentDecoder&&(r=e.contentDecoder,a.set(r.name,r)),void 0!==e.contentDecoders)for(let t of e.contentDecoders)a.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(i=e.contentTypeDecoder,s.set(i.name,i)),void 0!==e.contentTypeDecoders)for(let t of e.contentTypeDecoders)s.set(t.name,t)}return void 0===i&&(i=(0,n.default)().applicationJson.decoder,s.set(i.name,i)),{charset:t,contentDecoder:r,contentDecoders:a,contentTypeDecoder:i,contentTypeDecoders:s}}tf(p,"fromOptions"),c.fromOptions=p,e.ReadableStreamMessageReader=class extends u{static{tf(this,"ReadableStreamMessageReader")}constructor(e,t){super(),this.readable=e,this.options=r.fromOptions(t),this.buffer=(0,n.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new s.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(e=>{this.onData(e)});return this.readable.onError(e=>this.fireError(e)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{for(this.buffer.append(e);;){if(-1===this.nextMessageLength){let e=this.buffer.tryReadHeaders(!0);if(!e)return;let t=e.get("content-length");if(!t)return void this.fireError(Error(`Header must provide a Content-Length property.
|
|
2
|
+
${JSON.stringify(Object.fromEntries(e))}`));let r=parseInt(t);if(isNaN(r))return void this.fireError(Error(`Content-Length value must be a number. Got ${t}`));this.nextMessageLength=r}let e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let t=void 0!==this.options.contentDecoder?await this.options.contentDecoder.decode(e):e,r=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(r)}).catch(e=>{this.fireError(e)})}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,n.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}}}),t_=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;var t,r,n=tb(),i=tE(),a=tw(),s=tC(),o=t||(e.MessageWriter=t={});function l(e){return e&&i.func(e.dispose)&&i.func(e.onClose)&&i.func(e.onError)&&i.func(e.write)}tf(l,"is"),o.is=l;var u=class{static{tf(this,"AbstractMessageWriter")}constructor(){this.errorEmitter=new s.Emitter,this.closeEmitter=new s.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,r){this.errorEmitter.fire([this.asError(e),t,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:Error(`Writer received error. Reason: ${i.string(e.message)?e.message:"unknown"}`)}};e.AbstractMessageWriter=u;var c=r||(r={});function p(e){return void 0===e||"string"==typeof e?{charset:e??"utf-8",contentTypeEncoder:(0,n.default)().applicationJson.encoder}:{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,n.default)().applicationJson.encoder}}tf(p,"fromOptions"),c.fromOptions=p,e.WriteableStreamMessageWriter=class extends u{static{tf(this,"WriteableStreamMessageWriter")}constructor(e,t){super(),this.writable=e,this.options=r.fromOptions(t),this.errorCount=0,this.writeSemaphore=new a.Semaphore(1),this.writable.onError(e=>this.fireError(e)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e).then(t=>{let r=[];return r.push("Content-Length: ",t.byteLength.toString(),"\r\n"),r.push("\r\n"),this.doWrite(e,r,t)},e=>{throw this.fireError(e),e}))}async doWrite(e,t,r){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(r)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}}}),tP=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0,e.AbstractMessageBuffer=class{static{tf(this,"AbstractMessageBuffer")}constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(0===this._chunks.length)return;let t=0,r=0,n=0,i=0;e:for(;r<this._chunks.length;){let e=this._chunks[r];for(n=0;n<e.length;){switch(e[n]){case 13:switch(t){case 0:t=1;break;case 2:t=3;break;default:t=0}break;case 10:switch(t){case 1:t=2;break;case 3:t=4,n++;break e;default:t=0}break;default:t=0}n++}i+=e.byteLength,r++}if(4!==t)return;let a=this._read(i+n),s=new Map,o=this.toString(a,"ascii").split("\r\n");if(o.length<2)return s;for(let t=0;t<o.length-2;t++){let r=o[t],n=r.indexOf(":");if(-1===n)throw Error(`Message header must separate key and value using ':'
|
|
3
|
+
${r}`);let i=r.substr(0,n),a=r.substr(n+1).trim();s.set(e?i.toLowerCase():i,a)}return s}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(0===e)return this.emptyBuffer();if(e>this._totalLength)throw Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){let t=this._chunks[0],r=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,r}let t=this.allocNative(e),r=0;for(;e>0;){let n=this._chunks[0];if(n.byteLength>e){let i=n.slice(0,e);t.set(i,r),r+=e,this._chunks[0]=n.slice(e),this._totalLength-=e,e-=e}else t.set(n,r),r+=n.byteLength,this._chunks.shift(),this._totalLength-=n.byteLength,e-=n.byteLength}return t}}}}),tD=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.ConnectionOptions=e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.ConnectionStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=e.NullLogger=e.ProgressType=e.ProgressToken=void 0;var t,r,n,i,a,s,o,l,u,c,p,d,f,h,m,y,g,v,T,R,$,b,E,C,A=tb(),S=tE(),k=tS(),x=tk(),N=tC(),w=tA();(s||(s={})).type=new k.NotificationType("$/cancelRequest");var I=o||(e.ProgressToken=o={});function _(e){return"string"==typeof e||"number"==typeof e}tf(_,"is"),I.is=_,(l||(l={})).type=new k.NotificationType("$/progress"),e.ProgressType=class{static{tf(this,"ProgressType")}constructor(){}};var P=u||(u={});function D(e){return S.func(e)}tf(D,"is"),P.is=D,e.NullLogger=Object.freeze({error:tf(()=>{},"error"),warn:tf(()=>{},"warn"),info:tf(()=>{},"info"),log:tf(()=>{},"log")}),(t=c||(e.Trace=c={}))[t.Off=0]="Off",t[t.Messages=1]="Messages",t[t.Compact=2]="Compact",t[t.Verbose=3]="Verbose",(r=p||(e.TraceValues=p={})).Off="off",r.Messages="messages",r.Compact="compact",r.Verbose="verbose";var O=c||(e.Trace=c={});function L(e){if(!S.string(e))return O.Off;switch(e=e.toLowerCase()){case"off":default:return O.Off;case"messages":return O.Messages;case"compact":return O.Compact;case"verbose":return O.Verbose}}function M(e){switch(e){case O.Off:return"off";case O.Messages:return"messages";case O.Compact:return"compact";case O.Verbose:return"verbose";default:return"off"}}tf(L,"fromString"),O.fromString=L,tf(M,"toString"),O.toString=M,(n=d||(e.TraceFormat=d={})).Text="text",n.JSON="json";var j=d||(e.TraceFormat=d={});function F(e){return S.string(e)&&"json"===(e=e.toLowerCase())?j.JSON:j.Text}tf(F,"fromString"),j.fromString=F,(f||(e.SetTraceNotification=f={})).type=new k.NotificationType("$/setTrace"),(h||(e.LogTraceNotification=h={})).type=new k.NotificationType("$/logTrace"),(i=m||(e.ConnectionErrors=m={}))[i.Closed=1]="Closed",i[i.Disposed=2]="Disposed",i[i.AlreadyListening=3]="AlreadyListening";var z=class e extends Error{static{tf(this,"ConnectionError")}constructor(t,r){super(r),this.code=t,Object.setPrototypeOf(this,e.prototype)}};e.ConnectionError=z;var q=y||(e.ConnectionStrategy=y={});function G(e){return e&&S.func(e.cancelUndispatched)}tf(G,"is"),q.is=G;var U=g||(e.IdCancellationReceiverStrategy=g={});function K(e){return e&&(void 0===e.kind||"id"===e.kind)&&S.func(e.createCancellationTokenSource)&&(void 0===e.dispose||S.func(e.dispose))}tf(K,"is"),U.is=K;var W=v||(e.RequestCancellationReceiverStrategy=v={});function B(e){return e&&"request"===e.kind&&S.func(e.createCancellationTokenSource)&&(void 0===e.dispose||S.func(e.dispose))}tf(B,"is"),W.is=B;var V=T||(e.CancellationReceiverStrategy=T={});function H(e){return g.is(e)||v.is(e)}V.Message=Object.freeze({createCancellationTokenSource:e=>new w.CancellationTokenSource}),tf(H,"is"),V.is=H;var Y=R||(e.CancellationSenderStrategy=R={});function X(e){return e&&S.func(e.sendCancellation)&&S.func(e.cleanup)}Y.Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(s.type,{id:t}),cleanup(e){}}),tf(X,"is"),Y.is=X;var J=$||(e.CancellationStrategy=$={});function Z(e){return e&&T.is(e.receiver)&&R.is(e.sender)}J.Message=Object.freeze({receiver:T.Message,sender:R.Message}),tf(Z,"is"),J.is=Z;var Q=b||(e.MessageStrategy=b={});function ee(e){return e&&S.func(e.handleMessage)}tf(ee,"is"),Q.is=ee;var et=E||(e.ConnectionOptions=E={});function er(e){return e&&($.is(e.cancellationStrategy)||y.is(e.connectionStrategy)||b.is(e.messageStrategy))}function en(t,r,n,i){let a,p,y,v,T=void 0!==n?n:e.NullLogger,R=0,E=0,I=0,_=new Map,P=new Map,D=new Map,O=new x.LinkedMap,L=new Map,M=new Set,j=new Map,F=c.Off,q=d.Text,G=C.New,U=new N.Emitter,K=new N.Emitter,W=new N.Emitter,B=new N.Emitter,V=new N.Emitter,H=i&&i.cancellationStrategy?i.cancellationStrategy:$.Message;function Y(e){if(null===e)throw Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function X(e){return null===e?"res-unknown-"+(++I).toString():"res-"+e.toString()}function J(){return"not-"+(++E).toString()}function Z(e,t){k.Message.isRequest(t)?e.set(Y(t.id),t):k.Message.isResponse(t)?e.set(X(t.id),t):e.set(J(),t)}function Q(e){}function ee(){return G===C.Listening}function et(){return G===C.Closed}function er(){return G===C.Disposed}function en(){(G===C.New||G===C.Listening)&&(G=C.Closed,K.fire(void 0))}function ei(e){U.fire([e,void 0,void 0])}function ea(e){U.fire(e)}function es(){a||0===O.size||(a=(0,A.default)().timer.setImmediate(()=>{a=void 0,el()}))}function eo(e){k.Message.isRequest(e)?ec(e):k.Message.isNotification(e)?ed(e):k.Message.isResponse(e)?ep(e):ef(e)}function el(){if(0===O.size)return;let e=O.shift();try{let t=i?.messageStrategy;b.is(t)?t.handleMessage(e,eo):eo(e)}finally{es()}}tf(Y,"createRequestQueueKey"),tf(X,"createResponseQueueKey"),tf(J,"createNotificationQueueKey"),tf(Z,"addMessageToQueue"),tf(Q,"cancelUndispatched"),tf(ee,"isListening"),tf(et,"isClosed"),tf(er,"isDisposed"),tf(en,"closeHandler"),tf(ei,"readErrorHandler"),tf(ea,"writeErrorHandler"),t.onClose(en),t.onError(ei),r.onClose(en),r.onError(ea),tf(es,"triggerMessageQueue"),tf(eo,"handleMessage"),tf(el,"processMessageQueue");let eu=tf(e=>{try{if(k.Message.isNotification(e)&&e.method===s.type.method){let t=e.params.id,n=Y(t),a=O.get(n);if(k.Message.isRequest(a)){let s=i?.connectionStrategy,o=s&&s.cancelUndispatched?s.cancelUndispatched(a,Q):Q(a);if(o&&(void 0!==o.error||void 0!==o.result)){O.delete(n),j.delete(t),o.id=a.id,eg(o,e.method,Date.now()),r.write(o).catch(()=>T.error("Sending response for canceled message failed."));return}}let s=j.get(t);if(void 0!==s){s.cancel(),eT(e);return}M.add(t)}Z(O,e)}finally{es()}},"callback");function ec(e){let t,n;if(er())return;function i(t,n,i){let a={jsonrpc:"2.0",id:e.id};t instanceof k.ResponseError?a.error=t.toJson():a.result=void 0===t?null:t,eg(a,n,i),r.write(a).catch(()=>T.error("Sending response failed."))}function a(t,n,i){let a={jsonrpc:"2.0",id:e.id,error:t.toJson()};eg(a,n,i),r.write(a).catch(()=>T.error("Sending response failed."))}function s(t,n,i){void 0===t&&(t=null);let a={jsonrpc:"2.0",id:e.id,result:t};eg(a,n,i),r.write(a).catch(()=>T.error("Sending response failed."))}tf(i,"reply"),tf(a,"replyError"),tf(s,"replySuccess"),ev(e);let o=_.get(e.method);o&&(t=o.type,n=o.handler);let l=Date.now();if(n||y){let r=e.id??String(Date.now()),o=g.is(H.receiver)?H.receiver.createCancellationTokenSource(r):H.receiver.createCancellationTokenSource(e);null!==e.id&&M.has(e.id)&&o.cancel(),null!==e.id&&j.set(r,o);try{let u;if(n)if(void 0===e.params){if(void 0!==t&&0!==t.numberOfParams)return void a(new k.ResponseError(k.ErrorCodes.InvalidParams,`Request ${e.method} defines ${t.numberOfParams} params but received none.`),e.method,l);u=n(o.token)}else if(Array.isArray(e.params)){if(void 0!==t&&t.parameterStructures===k.ParameterStructures.byName)return void a(new k.ResponseError(k.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,l);u=n(...e.params,o.token)}else{if(void 0!==t&&t.parameterStructures===k.ParameterStructures.byPosition)return void a(new k.ResponseError(k.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,l);u=n(e.params,o.token)}else y&&(u=y(e.method,e.params,o.token));let c=u;u?c.then?c.then(t=>{j.delete(r),i(t,e.method,l)},t=>{j.delete(r),t instanceof k.ResponseError?a(t,e.method,l):t&&S.string(t.message)?a(new k.ResponseError(k.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,l):a(new k.ResponseError(k.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,l)}):(j.delete(r),i(u,e.method,l)):(j.delete(r),s(u,e.method,l))}catch(t){j.delete(r),t instanceof k.ResponseError?i(t,e.method,l):t&&S.string(t.message)?a(new k.ResponseError(k.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,l):a(new k.ResponseError(k.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,l)}}else a(new k.ResponseError(k.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,l)}function ep(e){if(!er())if(null===e.id)e.error?T.error(`Received response message without id: Error is:
|
|
4
|
+
${JSON.stringify(e.error,void 0,4)}`):T.error("Received response message without id. No further error information provided.");else{let t=e.id,r=L.get(t);if(eR(e,r),void 0!==r){L.delete(t);try{if(e.error){let t=e.error;r.reject(new k.ResponseError(t.code,t.message,t.data))}else if(void 0!==e.result)r.resolve(e.result);else throw Error("Should never happen.")}catch(e){e.message?T.error(`Response handler '${r.method}' failed with message: ${e.message}`):T.error(`Response handler '${r.method}' failed unexpectedly.`)}}}}function ed(e){let t,r;if(!er()){if(e.method===s.type.method){let t=e.params.id;M.delete(t),eT(e);return}{let n=P.get(e.method);n&&(t=n.handler,r=n.type)}if(t||v)try{if(eT(e),t)if(void 0===e.params)void 0!==r&&0!==r.numberOfParams&&r.parameterStructures!==k.ParameterStructures.byName&&T.error(`Notification ${e.method} defines ${r.numberOfParams} params but received none.`),t();else if(Array.isArray(e.params)){let n=e.params;e.method===l.type.method&&2===n.length&&o.is(n[0])?t({token:n[0],value:n[1]}):(void 0!==r&&(r.parameterStructures===k.ParameterStructures.byName&&T.error(`Notification ${e.method} defines parameters by name but received parameters by position`),r.numberOfParams!==e.params.length&&T.error(`Notification ${e.method} defines ${r.numberOfParams} params but received ${n.length} arguments`)),t(...n))}else void 0!==r&&r.parameterStructures===k.ParameterStructures.byPosition&&T.error(`Notification ${e.method} defines parameters by position but received parameters by name`),t(e.params);else v&&v(e.method,e.params)}catch(t){t.message?T.error(`Notification handler '${e.method}' failed with message: ${t.message}`):T.error(`Notification handler '${e.method}' failed unexpectedly.`)}else W.fire(e)}}function ef(e){if(!e)return void T.error("Received empty message.");if(T.error(`Received message which is neither a response nor a notification message:
|
|
5
|
+
${JSON.stringify(e,null,4)}`),S.string(e.id)||S.number(e.id)){let t=e.id,r=L.get(t);r&&r.reject(Error("The received response has neither a result nor an error property."))}}function eh(e){if(null!=e)switch(F){case c.Verbose:return JSON.stringify(e,null,4);case c.Compact:return JSON.stringify(e);default:return}}function em(e){if(F!==c.Off&&p)if(q===d.Text){let t;(F===c.Verbose||F===c.Compact)&&e.params&&(t=`Params: ${eh(e.params)}
|
|
6
|
+
|
|
7
|
+
`),p.log(`Sending request '${e.method} - (${e.id})'.`,t)}else e$("send-request",e)}function ey(e){if(F!==c.Off&&p)if(q===d.Text){let t;(F===c.Verbose||F===c.Compact)&&(t=e.params?`Params: ${eh(e.params)}
|
|
8
|
+
|
|
9
|
+
`:"No parameters provided.\n\n"),p.log(`Sending notification '${e.method}'.`,t)}else e$("send-notification",e)}function eg(e,t,r){if(F!==c.Off&&p)if(q===d.Text){let n;(F===c.Verbose||F===c.Compact)&&(e.error&&e.error.data?n=`Error data: ${eh(e.error.data)}
|
|
10
|
+
|
|
11
|
+
`:e.result?n=`Result: ${eh(e.result)}
|
|
12
|
+
|
|
13
|
+
`:void 0===e.error&&(n="No result returned.\n\n")),p.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-r}ms`,n)}else e$("send-response",e)}function ev(e){if(F!==c.Off&&p)if(q===d.Text){let t;(F===c.Verbose||F===c.Compact)&&e.params&&(t=`Params: ${eh(e.params)}
|
|
14
|
+
|
|
15
|
+
`),p.log(`Received request '${e.method} - (${e.id})'.`,t)}else e$("receive-request",e)}function eT(e){if(F!==c.Off&&p&&e.method!==h.type.method)if(q===d.Text){let t;(F===c.Verbose||F===c.Compact)&&(t=e.params?`Params: ${eh(e.params)}
|
|
16
|
+
|
|
17
|
+
`:"No parameters provided.\n\n"),p.log(`Received notification '${e.method}'.`,t)}else e$("receive-notification",e)}function eR(e,t){if(F!==c.Off&&p)if(q===d.Text){let r;if((F===c.Verbose||F===c.Compact)&&(e.error&&e.error.data?r=`Error data: ${eh(e.error.data)}
|
|
18
|
+
|
|
19
|
+
`:e.result?r=`Result: ${eh(e.result)}
|
|
20
|
+
|
|
21
|
+
`:void 0===e.error&&(r="No result returned.\n\n")),t){let n=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";p.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${n}`,r)}else p.log(`Received response ${e.id} without active response promise.`,r)}else e$("receive-response",e)}function e$(e,t){if(!p||F===c.Off)return;let r={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};p.log(r)}function eb(){if(et())throw new z(m.Closed,"Connection is closed.");if(er())throw new z(m.Disposed,"Connection is disposed.")}function eE(){if(ee())throw new z(m.AlreadyListening,"Connection is already listening")}function eC(){if(!ee())throw Error("Call listen() first.")}function eA(e){return void 0===e?null:e}function eS(e){if(null!==e)return e}function ek(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ex(e,t){switch(e){case k.ParameterStructures.auto:if(ek(t))return eS(t);return[eA(t)];case k.ParameterStructures.byName:if(!ek(t))throw Error("Received parameters by name but param is not an object literal.");return eS(t);case k.ParameterStructures.byPosition:return[eA(t)];default:throw Error(`Unknown parameter structure ${e.toString()}`)}}function eN(e,t){let r,n=e.numberOfParams;switch(n){case 0:r=void 0;break;case 1:r=ex(e.parameterStructures,t[0]);break;default:r=[];for(let e=0;e<t.length&&e<n;e++)r.push(eA(t[e]));if(t.length<n)for(let e=t.length;e<n;e++)r.push(null)}return r}tf(ec,"handleRequest"),tf(ep,"handleResponse"),tf(ed,"handleNotification"),tf(ef,"handleInvalidMessage"),tf(eh,"stringifyTrace"),tf(em,"traceSendingRequest"),tf(ey,"traceSendingNotification"),tf(eg,"traceSendingResponse"),tf(ev,"traceReceivedRequest"),tf(eT,"traceReceivedNotification"),tf(eR,"traceReceivedResponse"),tf(e$,"logLSPMessage"),tf(eb,"throwIfClosedOrDisposed"),tf(eE,"throwIfListening"),tf(eC,"throwIfNotListening"),tf(eA,"undefinedToNull"),tf(eS,"nullToUndefined"),tf(ek,"isNamedParam"),tf(ex,"computeSingleParam"),tf(eN,"computeMessageParams");let ew={sendNotification:tf((e,...t)=>{let n,i;if(eb(),S.string(e)){n=e;let r=t[0],a=0,s=k.ParameterStructures.auto;k.ParameterStructures.is(r)&&(a=1,s=r);let o=t.length,l=o-a;switch(l){case 0:i=void 0;break;case 1:i=ex(s,t[a]);break;default:if(s===k.ParameterStructures.byName)throw Error(`Received ${l} parameters for 'by Name' notification parameter structure.`);i=t.slice(a,o).map(e=>eA(e))}}else n=e.method,i=eN(e,t);let a={jsonrpc:"2.0",method:n,params:i};return ey(a),r.write(a).catch(e=>{throw T.error("Sending notification failed."),e})},"sendNotification"),onNotification:tf((e,t)=>{let r;return eb(),S.func(e)?v=e:t&&(S.string(e)?(r=e,P.set(e,{type:void 0,handler:t})):(r=e.method,P.set(e.method,{type:e,handler:t}))),{dispose:tf(()=>{void 0!==r?P.delete(r):v=void 0},"dispose")}},"onNotification"),onProgress:tf((e,t,r)=>{if(D.has(t))throw Error(`Progress handler for token ${t} already registered`);return D.set(t,r),{dispose:tf(()=>{D.delete(t)},"dispose")}},"onProgress"),sendProgress:tf((e,t,r)=>ew.sendNotification(l.type,{token:t,value:r}),"sendProgress"),onUnhandledProgress:B.event,sendRequest:tf((e,...t)=>{let n,i,a,s;if(eb(),eC(),S.string(e)){n=e;let r=t[0],a=t[t.length-1],o=0,l=k.ParameterStructures.auto;k.ParameterStructures.is(r)&&(o=1,l=r);let u=t.length;w.CancellationToken.is(a)&&(u-=1,s=a);let c=u-o;switch(c){case 0:i=void 0;break;case 1:i=ex(l,t[o]);break;default:if(l===k.ParameterStructures.byName)throw Error(`Received ${c} parameters for 'by Name' request parameter structure.`);i=t.slice(o,u).map(e=>eA(e))}}else{n=e.method,i=eN(e,t);let r=e.numberOfParams;s=w.CancellationToken.is(t[r])?t[r]:void 0}let o=R++;s&&(a=s.onCancellationRequested(()=>{let e=H.sender.sendCancellation(ew,o);return void 0===e?(T.log(`Received no promise from cancellation strategy when cancelling id ${o}`),Promise.resolve()):e.catch(()=>{T.log(`Sending cancellation messages for id ${o} failed`)})}));let l={jsonrpc:"2.0",id:o,method:n,params:i};return em(l),"function"==typeof H.sender.enableCancellation&&H.sender.enableCancellation(l),new Promise(async(e,t)=>{let i=tf(t=>{e(t),H.sender.cleanup(o),a?.dispose()},"resolveWithCleanup"),s=tf(e=>{t(e),H.sender.cleanup(o),a?.dispose()},"rejectWithCleanup"),u={method:n,timerStart:Date.now(),resolve:i,reject:s};try{await r.write(l),L.set(o,u)}catch(e){throw T.error("Sending request failed."),u.reject(new k.ResponseError(k.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),e}})},"sendRequest"),onRequest:tf((e,t)=>{eb();let r=null;return u.is(e)?(r=void 0,y=e):S.string(e)?(r=null,void 0!==t&&(r=e,_.set(e,{handler:t,type:void 0}))):void 0!==t&&(r=e.method,_.set(e.method,{type:e,handler:t})),{dispose:tf(()=>{null!==r&&(void 0!==r?_.delete(r):y=void 0)},"dispose")}},"onRequest"),hasPendingResponse:tf(()=>L.size>0,"hasPendingResponse"),trace:tf(async(e,t,r)=>{let n=!1,i=d.Text;void 0!==r&&(S.boolean(r)?n=r:(n=r.sendNotification||!1,i=r.traceFormat||d.Text)),F=e,q=i,p=F===c.Off?void 0:t,!n||et()||er()||await ew.sendNotification(f.type,{value:c.toString(e)})},"trace"),onError:U.event,onClose:K.event,onUnhandledNotification:W.event,onDispose:V.event,end:tf(()=>{r.end()},"end"),dispose:tf(()=>{if(er())return;G=C.Disposed,V.fire(void 0);let e=new k.ResponseError(k.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let t of L.values())t.reject(e);L=new Map,j=new Map,M=new Set,O=new x.LinkedMap,S.func(r.dispose)&&r.dispose(),S.func(t.dispose)&&t.dispose()},"dispose"),listen:tf(()=>{eb(),eE(),G=C.Listening,t.listen(eu)},"listen"),inspect:tf(()=>{(0,A.default)().console.log("inspect")},"inspect")};return ew.onNotification(h.type,e=>{if(F===c.Off||!p)return;let t=F===c.Verbose||F===c.Compact;p.log(e.message,t?e.verbose:void 0)}),ew.onNotification(l.type,e=>{let t=D.get(e.token);t?t(e.value):B.fire(e)}),ew}tf(er,"is"),et.is=er,(a=C||(C={}))[a.New=1]="New",a[a.Listening=2]="Listening",a[a.Closed=3]="Closed",a[a.Disposed=4]="Disposed",tf(en,"createMessageConnection"),e.createMessageConnection=en}}),tO=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=void 0;var t=tS();Object.defineProperty(e,"Message",{enumerable:!0,get:tf(function(){return t.Message},"get")}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:tf(function(){return t.RequestType},"get")}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:tf(function(){return t.RequestType0},"get")}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:tf(function(){return t.RequestType1},"get")}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:tf(function(){return t.RequestType2},"get")}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:tf(function(){return t.RequestType3},"get")}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:tf(function(){return t.RequestType4},"get")}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:tf(function(){return t.RequestType5},"get")}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:tf(function(){return t.RequestType6},"get")}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:tf(function(){return t.RequestType7},"get")}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:tf(function(){return t.RequestType8},"get")}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:tf(function(){return t.RequestType9},"get")}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:tf(function(){return t.ResponseError},"get")}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:tf(function(){return t.ErrorCodes},"get")}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:tf(function(){return t.NotificationType},"get")}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:tf(function(){return t.NotificationType0},"get")}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:tf(function(){return t.NotificationType1},"get")}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:tf(function(){return t.NotificationType2},"get")}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:tf(function(){return t.NotificationType3},"get")}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:tf(function(){return t.NotificationType4},"get")}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:tf(function(){return t.NotificationType5},"get")}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:tf(function(){return t.NotificationType6},"get")}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:tf(function(){return t.NotificationType7},"get")}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:tf(function(){return t.NotificationType8},"get")}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:tf(function(){return t.NotificationType9},"get")}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:tf(function(){return t.ParameterStructures},"get")});var r=tk();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:tf(function(){return r.LinkedMap},"get")}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:tf(function(){return r.LRUCache},"get")}),Object.defineProperty(e,"Touch",{enumerable:!0,get:tf(function(){return r.Touch},"get")});var n=tx();Object.defineProperty(e,"Disposable",{enumerable:!0,get:tf(function(){return n.Disposable},"get")});var i=tC();Object.defineProperty(e,"Event",{enumerable:!0,get:tf(function(){return i.Event},"get")}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:tf(function(){return i.Emitter},"get")});var a=tA();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:tf(function(){return a.CancellationTokenSource},"get")}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:tf(function(){return a.CancellationToken},"get")});var s=tN();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:tf(function(){return s.SharedArraySenderStrategy},"get")}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:tf(function(){return s.SharedArrayReceiverStrategy},"get")});var o=tI();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:tf(function(){return o.MessageReader},"get")}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:tf(function(){return o.AbstractMessageReader},"get")}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:tf(function(){return o.ReadableStreamMessageReader},"get")});var l=t_();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:tf(function(){return l.MessageWriter},"get")}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:tf(function(){return l.AbstractMessageWriter},"get")}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:tf(function(){return l.WriteableStreamMessageWriter},"get")});var u=tP();Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:tf(function(){return u.AbstractMessageBuffer},"get")});var c=tD();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:tf(function(){return c.ConnectionStrategy},"get")}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:tf(function(){return c.ConnectionOptions},"get")}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:tf(function(){return c.NullLogger},"get")}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:tf(function(){return c.createMessageConnection},"get")}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:tf(function(){return c.ProgressToken},"get")}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:tf(function(){return c.ProgressType},"get")}),Object.defineProperty(e,"Trace",{enumerable:!0,get:tf(function(){return c.Trace},"get")}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:tf(function(){return c.TraceValues},"get")}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:tf(function(){return c.TraceFormat},"get")}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:tf(function(){return c.SetTraceNotification},"get")}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:tf(function(){return c.LogTraceNotification},"get")}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:tf(function(){return c.ConnectionErrors},"get")}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:tf(function(){return c.ConnectionError},"get")}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:tf(function(){return c.CancellationReceiverStrategy},"get")}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:tf(function(){return c.CancellationSenderStrategy},"get")}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:tf(function(){return c.CancellationStrategy},"get")}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:tf(function(){return c.MessageStrategy},"get")}),e.RAL=tb().default}}),tL=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/ril.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=tO(),r=class e extends t.AbstractMessageBuffer{static{tf(this,"MessageBuffer")}constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return e.emptyBuffer}fromString(e,t){return new TextEncoder().encode(e)}toString(e,t){return"ascii"===t?this.asciiDecoder.decode(e):new TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e:e.slice(0,t)}allocNative(e){return new Uint8Array(e)}};r.emptyBuffer=new Uint8Array(0);var n=class{static{tf(this,"ReadableStreamWrapper")}constructor(e){this.socket=e,this._onData=new t.Emitter,this._messageListener=e=>{e.data.arrayBuffer().then(e=>{this._onData.fire(new Uint8Array(e))},()=>{(0,t.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),t.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),t.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),t.Disposable.create(()=>this.socket.removeEventListener("end",e))}onData(e){return this._onData.event(e)}},i=class{static{tf(this,"WritableStreamWrapper")}constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),t.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),t.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),t.Disposable.create(()=>this.socket.removeEventListener("end",e))}write(e,t){if("string"==typeof e){if(void 0!==t&&"utf-8"!==t)throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}},a=new TextEncoder,s=Object.freeze({messageBuffer:Object.freeze({create:tf(e=>new r(e),"create")}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:tf((e,t)=>{if("utf-8"!==t.charset)throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(a.encode(JSON.stringify(e,void 0,0)))},"encode")}),decoder:Object.freeze({name:"application/json",decode:tf((e,t)=>{if(!(e instanceof Uint8Array))throw Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))},"decode")})}),stream:Object.freeze({asReadableStream:tf(e=>new n(e),"asReadableStream"),asWritableStream:tf(e=>new i(e),"asWritableStream")}),console,timer:Object.freeze({setTimeout(e,t,...r){let n=setTimeout(e,t,...r);return{dispose:tf(()=>clearTimeout(n),"dispose")}},setImmediate(e,...t){let r=setTimeout(e,0,...t);return{dispose:tf(()=>clearTimeout(r),"dispose")}},setInterval(e,t,...r){let n=setInterval(e,t,...r);return{dispose:tf(()=>clearInterval(n),"dispose")}}})});function o(){return s}tf(o,"RIL");var l=o||(o={});function u(){t.RAL.install(s)}tf(u,"install"),l.install=u,e.default=o}}),tM=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:tf(function(){return t[r]},"get")}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=e&&e.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.BrowserMessageWriter=e.BrowserMessageReader=void 0,tL().default.install();var n=tO();function i(e,t,r,i){return void 0===r&&(r=n.NullLogger),n.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,n.createMessageConnection)(e,t,r,i)}r(tO(),e),e.BrowserMessageReader=class extends n.AbstractMessageReader{static{tf(this,"BrowserMessageReader")}constructor(e){super(),this._onData=new n.Emitter,this._messageListener=e=>{this._onData.fire(e.data)},e.addEventListener("error",e=>this.fireError(e)),e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}},e.BrowserMessageWriter=class extends n.AbstractMessageWriter{static{tf(this,"BrowserMessageWriter")}constructor(e){super(),this.port=e,this.errorCount=0,e.addEventListener("error",e=>this.fireError(e))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}},tf(i,"createMessageConnection"),e.createMessageConnection=i}}),tj=th({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(e,t){t.exports=tM()}}),tF=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProtocolNotificationType=e.ProtocolNotificationType0=e.ProtocolRequestType=e.ProtocolRequestType0=e.RegistrationType=e.MessageDirection=void 0;var t,r,n=tM();(t=r||(e.MessageDirection=r={})).clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both",e.RegistrationType=class{static{tf(this,"RegistrationType")}constructor(e){this.method=e}},e.ProtocolRequestType0=class extends n.RequestType0{static{tf(this,"ProtocolRequestType0")}constructor(e){super(e)}},e.ProtocolRequestType=class extends n.RequestType{static{tf(this,"ProtocolRequestType")}constructor(e){super(e,n.ParameterStructures.byName)}},e.ProtocolNotificationType0=class extends n.NotificationType0{static{tf(this,"ProtocolNotificationType0")}constructor(e){super(e)}},e.ProtocolNotificationType=class extends n.NotificationType{static{tf(this,"ProtocolNotificationType")}constructor(e){super(e,n.ParameterStructures.byName)}}}}),tz=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(e){function t(e){return!0===e||!1===e}function r(e){return"string"==typeof e||e instanceof String}function n(e){return"number"==typeof e||e instanceof Number}function i(e){return e instanceof Error}function a(e){return"function"==typeof e}function s(e){return Array.isArray(e)}function o(e){return s(e)&&e.every(e=>r(e))}function l(e,t){return Array.isArray(e)&&e.every(t)}function u(e){return null!==e&&"object"==typeof e}Object.defineProperty(e,"__esModule",{value:!0}),e.objectLiteral=e.typedArray=e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0,tf(t,"boolean"),e.boolean=t,tf(r,"string"),e.string=r,tf(n,"number"),e.number=n,tf(i,"error"),e.error=i,tf(a,"func"),e.func=a,tf(s,"array"),e.array=s,tf(o,"stringArray"),e.stringArray=o,tf(l,"typedArray"),e.typedArray=l,tf(u,"objectLiteral"),e.objectLiteral=u}}),tq=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationRequest=void 0;var t,r,n=tF();(t=r||(e.ImplementationRequest=r={})).method="textDocument/implementation",t.messageDirection=n.MessageDirection.clientToServer,t.type=new n.ProtocolRequestType(t.method)}}),tG=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeDefinitionRequest=void 0;var t,r,n=tF();(t=r||(e.TypeDefinitionRequest=r={})).method="textDocument/typeDefinition",t.messageDirection=n.MessageDirection.clientToServer,t.type=new n.ProtocolRequestType(t.method)}}),tU=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;var t,r,n,i,a=tF();(t=n||(e.WorkspaceFoldersRequest=n={})).method="workspace/workspaceFolders",t.messageDirection=a.MessageDirection.serverToClient,t.type=new a.ProtocolRequestType0(t.method),(r=i||(e.DidChangeWorkspaceFoldersNotification=i={})).method="workspace/didChangeWorkspaceFolders",r.messageDirection=a.MessageDirection.clientToServer,r.type=new a.ProtocolNotificationType(r.method)}}),tK=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationRequest=void 0;var t,r,n=tF();(t=r||(e.ConfigurationRequest=r={})).method="workspace/configuration",t.messageDirection=n.MessageDirection.serverToClient,t.type=new n.ProtocolRequestType(t.method)}}),tW=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;var t,r,n,i,a=tF();(t=n||(e.DocumentColorRequest=n={})).method="textDocument/documentColor",t.messageDirection=a.MessageDirection.clientToServer,t.type=new a.ProtocolRequestType(t.method),(r=i||(e.ColorPresentationRequest=i={})).method="textDocument/colorPresentation",r.messageDirection=a.MessageDirection.clientToServer,r.type=new a.ProtocolRequestType(r.method)}}),tB=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;var t,r,n,i,a=tF();(t=n||(e.FoldingRangeRequest=n={})).method="textDocument/foldingRange",t.messageDirection=a.MessageDirection.clientToServer,t.type=new a.ProtocolRequestType(t.method),(r=i||(e.FoldingRangeRefreshRequest=i={})).method="workspace/foldingRange/refresh",r.messageDirection=a.MessageDirection.serverToClient,r.type=new a.ProtocolRequestType0(r.method)}}),tV=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeclarationRequest=void 0;var t,r,n=tF();(t=r||(e.DeclarationRequest=r={})).method="textDocument/declaration",t.messageDirection=n.MessageDirection.clientToServer,t.type=new n.ProtocolRequestType(t.method)}}),tH=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionRangeRequest=void 0;var t,r,n=tF();(t=r||(e.SelectionRangeRequest=r={})).method="textDocument/selectionRange",t.messageDirection=n.MessageDirection.clientToServer,t.type=new n.ProtocolRequestType(t.method)}}),tY=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;var t,r,n,i,a,s=tM(),o=tF(),l=n||(e.WorkDoneProgress=n={});function u(e){return e===l.type}l.type=new s.ProgressType,tf(u,"is"),l.is=u,(t=i||(e.WorkDoneProgressCreateRequest=i={})).method="window/workDoneProgress/create",t.messageDirection=o.MessageDirection.serverToClient,t.type=new o.ProtocolRequestType(t.method),(r=a||(e.WorkDoneProgressCancelNotification=a={})).method="window/workDoneProgress/cancel",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolNotificationType(r.method)}}),tX=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;var t,r,n,i,a,s,o=tF();(t=i||(e.CallHierarchyPrepareRequest=i={})).method="textDocument/prepareCallHierarchy",t.messageDirection=o.MessageDirection.clientToServer,t.type=new o.ProtocolRequestType(t.method),(r=a||(e.CallHierarchyIncomingCallsRequest=a={})).method="callHierarchy/incomingCalls",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolRequestType(r.method),(n=s||(e.CallHierarchyOutgoingCallsRequest=s={})).method="callHierarchy/outgoingCalls",n.messageDirection=o.MessageDirection.clientToServer,n.type=new o.ProtocolRequestType(n.method)}}),tJ=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;var t,r,n,i,a,s,o,l,u,c,p,d=tF();(s||(e.TokenFormat=s={})).Relative="relative",(t=o||(e.SemanticTokensRegistrationType=o={})).method="textDocument/semanticTokens",t.type=new d.RegistrationType(t.method),(r=l||(e.SemanticTokensRequest=l={})).method="textDocument/semanticTokens/full",r.messageDirection=d.MessageDirection.clientToServer,r.type=new d.ProtocolRequestType(r.method),r.registrationMethod=o.method,(n=u||(e.SemanticTokensDeltaRequest=u={})).method="textDocument/semanticTokens/full/delta",n.messageDirection=d.MessageDirection.clientToServer,n.type=new d.ProtocolRequestType(n.method),n.registrationMethod=o.method,(i=c||(e.SemanticTokensRangeRequest=c={})).method="textDocument/semanticTokens/range",i.messageDirection=d.MessageDirection.clientToServer,i.type=new d.ProtocolRequestType(i.method),i.registrationMethod=o.method,(a=p||(e.SemanticTokensRefreshRequest=p={})).method="workspace/semanticTokens/refresh",a.messageDirection=d.MessageDirection.serverToClient,a.type=new d.ProtocolRequestType0(a.method)}}),tZ=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDocumentRequest=void 0;var t,r,n=tF();(t=r||(e.ShowDocumentRequest=r={})).method="window/showDocument",t.messageDirection=n.MessageDirection.serverToClient,t.type=new n.ProtocolRequestType(t.method)}}),tQ=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedEditingRangeRequest=void 0;var t,r,n=tF();(t=r||(e.LinkedEditingRangeRequest=r={})).method="textDocument/linkedEditingRange",t.messageDirection=n.MessageDirection.clientToServer,t.type=new n.ProtocolRequestType(t.method)}}),t0=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;var t,r,n,i,a,s,o,l,u,c,p,d,f,h,m=tF();(t=l||(e.FileOperationPatternKind=l={})).file="file",t.folder="folder",(r=u||(e.WillCreateFilesRequest=u={})).method="workspace/willCreateFiles",r.messageDirection=m.MessageDirection.clientToServer,r.type=new m.ProtocolRequestType(r.method),(n=c||(e.DidCreateFilesNotification=c={})).method="workspace/didCreateFiles",n.messageDirection=m.MessageDirection.clientToServer,n.type=new m.ProtocolNotificationType(n.method),(i=p||(e.WillRenameFilesRequest=p={})).method="workspace/willRenameFiles",i.messageDirection=m.MessageDirection.clientToServer,i.type=new m.ProtocolRequestType(i.method),(a=d||(e.DidRenameFilesNotification=d={})).method="workspace/didRenameFiles",a.messageDirection=m.MessageDirection.clientToServer,a.type=new m.ProtocolNotificationType(a.method),(s=f||(e.DidDeleteFilesNotification=f={})).method="workspace/didDeleteFiles",s.messageDirection=m.MessageDirection.clientToServer,s.type=new m.ProtocolNotificationType(s.method),(o=h||(e.WillDeleteFilesRequest=h={})).method="workspace/willDeleteFiles",o.messageDirection=m.MessageDirection.clientToServer,o.type=new m.ProtocolRequestType(o.method)}}),t1=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;var t,r,n,i,a,s,o=tF();(t=i||(e.UniquenessLevel=i={})).document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global",(r=a||(e.MonikerKind=a={})).$import="import",r.$export="export",r.local="local",(n=s||(e.MonikerRequest=s={})).method="textDocument/moniker",n.messageDirection=o.MessageDirection.clientToServer,n.type=new o.ProtocolRequestType(n.method)}}),t2=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t,r,n,i,a,s,o=tF();(t=i||(e.TypeHierarchyPrepareRequest=i={})).method="textDocument/prepareTypeHierarchy",t.messageDirection=o.MessageDirection.clientToServer,t.type=new o.ProtocolRequestType(t.method),(r=a||(e.TypeHierarchySupertypesRequest=a={})).method="typeHierarchy/supertypes",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolRequestType(r.method),(n=s||(e.TypeHierarchySubtypesRequest=s={})).method="typeHierarchy/subtypes",n.messageDirection=o.MessageDirection.clientToServer,n.type=new o.ProtocolRequestType(n.method)}}),t3=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;var t,r,n,i,a=tF();(t=n||(e.InlineValueRequest=n={})).method="textDocument/inlineValue",t.messageDirection=a.MessageDirection.clientToServer,t.type=new a.ProtocolRequestType(t.method),(r=i||(e.InlineValueRefreshRequest=i={})).method="workspace/inlineValue/refresh",r.messageDirection=a.MessageDirection.serverToClient,r.type=new a.ProtocolRequestType0(r.method)}}),t9=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;var t,r,n,i,a,s,o=tF();(t=i||(e.InlayHintRequest=i={})).method="textDocument/inlayHint",t.messageDirection=o.MessageDirection.clientToServer,t.type=new o.ProtocolRequestType(t.method),(r=a||(e.InlayHintResolveRequest=a={})).method="inlayHint/resolve",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolRequestType(r.method),(n=s||(e.InlayHintRefreshRequest=s={})).method="workspace/inlayHint/refresh",n.messageDirection=o.MessageDirection.serverToClient,n.type=new o.ProtocolRequestType0(n.method)}}),t4=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=void 0;var t,r,n,i,a,s,o,l,u,c=tM(),p=tz(),d=tF(),f=a||(e.DiagnosticServerCancellationData=a={});function h(e){return e&&p.boolean(e.retriggerRequest)}tf(h,"is"),f.is=h,(t=s||(e.DocumentDiagnosticReportKind=s={})).Full="full",t.Unchanged="unchanged",(r=o||(e.DocumentDiagnosticRequest=o={})).method="textDocument/diagnostic",r.messageDirection=d.MessageDirection.clientToServer,r.type=new d.ProtocolRequestType(r.method),r.partialResult=new c.ProgressType,(n=l||(e.WorkspaceDiagnosticRequest=l={})).method="workspace/diagnostic",n.messageDirection=d.MessageDirection.clientToServer,n.type=new d.ProtocolRequestType(n.method),n.partialResult=new c.ProgressType,(i=u||(e.DiagnosticRefreshRequest=u={})).method="workspace/diagnostic/refresh",i.messageDirection=d.MessageDirection.serverToClient,i.type=new d.ProtocolRequestType0(i.method)}}),t5=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=void 0;var t,r,n,i,a,s,o,l,u,c,p,d,f,h,m,y=(t$(),tT(tR)),g=tz(),v=tF(),T=s||(e.NotebookCellKind=s={});function R(e){return 1===e||2===e}T.Markup=1,T.Code=2,tf(R,"is"),T.is=R,function(e){function t(e,t){let r={executionOrder:e};return(!0===t||!1===t)&&(r.success=t),r}function r(e){return g.objectLiteral(e)&&y.uinteger.is(e.executionOrder)&&(void 0===e.success||g.boolean(e.success))}function n(e,t){return e===t||null!=e&&null!=t&&e.executionOrder===t.executionOrder&&e.success===t.success}tf(t,"create"),e.create=t,tf(r,"is"),e.is=r,tf(n,"equals"),e.equals=n}(o||(e.ExecutionSummary=o={})),function(e){function t(e,t){return{kind:e,document:t}}function r(e){return g.objectLiteral(e)&&s.is(e.kind)&&y.DocumentUri.is(e.document)&&(void 0===e.metadata||g.objectLiteral(e.metadata))}function n(e,t){let r=new Set;return e.document!==t.document&&r.add("document"),e.kind!==t.kind&&r.add("kind"),e.executionSummary!==t.executionSummary&&r.add("executionSummary"),void 0===e.metadata&&void 0===t.metadata||i(e.metadata,t.metadata)||r.add("metadata"),void 0===e.executionSummary&&void 0===t.executionSummary||o.equals(e.executionSummary,t.executionSummary)||r.add("executionSummary"),r}function i(e,t){if(e===t)return!0;if(null==e||null==t||typeof e!=typeof t||"object"!=typeof e)return!1;let r=Array.isArray(e),n=Array.isArray(t);if(r!==n)return!1;if(r&&n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!i(e[r],t[r]))return!1}if(g.objectLiteral(e)&&g.objectLiteral(t)){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length||(r.sort(),n.sort(),!i(r,n)))return!1;for(let n=0;n<r.length;n++){let a=r[n];if(!i(e[a],t[a]))return!1}}return!0}tf(t,"create"),e.create=t,tf(r,"is"),e.is=r,tf(n,"diff"),e.diff=n,tf(i,"equalsMetadata")}(l||(e.NotebookCell=l={}));var $=u||(e.NotebookDocument=u={});function b(e,t,r,n){return{uri:e,notebookType:t,version:r,cells:n}}function E(e){return g.objectLiteral(e)&&g.string(e.uri)&&y.integer.is(e.version)&&g.typedArray(e.cells,l.is)}tf(b,"create"),$.create=b,tf(E,"is"),$.is=E,(t=c||(e.NotebookDocumentSyncRegistrationType=c={})).method="notebookDocument/sync",t.messageDirection=v.MessageDirection.clientToServer,t.type=new v.RegistrationType(t.method),(r=p||(e.DidOpenNotebookDocumentNotification=p={})).method="notebookDocument/didOpen",r.messageDirection=v.MessageDirection.clientToServer,r.type=new v.ProtocolNotificationType(r.method),r.registrationMethod=c.method;var C=d||(e.NotebookCellArrayChange=d={});function A(e){return g.objectLiteral(e)&&y.uinteger.is(e.start)&&y.uinteger.is(e.deleteCount)&&(void 0===e.cells||g.typedArray(e.cells,l.is))}function S(e,t,r){let n={start:e,deleteCount:t};return void 0!==r&&(n.cells=r),n}tf(A,"is"),C.is=A,tf(S,"create"),C.create=S,(n=f||(e.DidChangeNotebookDocumentNotification=f={})).method="notebookDocument/didChange",n.messageDirection=v.MessageDirection.clientToServer,n.type=new v.ProtocolNotificationType(n.method),n.registrationMethod=c.method,(i=h||(e.DidSaveNotebookDocumentNotification=h={})).method="notebookDocument/didSave",i.messageDirection=v.MessageDirection.clientToServer,i.type=new v.ProtocolNotificationType(i.method),i.registrationMethod=c.method,(a=m||(e.DidCloseNotebookDocumentNotification=m={})).method="notebookDocument/didClose",a.messageDirection=v.MessageDirection.clientToServer,a.type=new v.ProtocolNotificationType(a.method),a.registrationMethod=c.method}}),t8=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlineCompletionRequest=void 0;var t,r,n=tF();(t=r||(e.InlineCompletionRequest=r={})).method="textDocument/inlineCompletion",t.messageDirection=n.MessageDirection.clientToServer,t.type=new n.ProtocolRequestType(t.method)}}),t7=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceSymbolRequest=e.CodeActionResolveRequest=e.CodeActionRequest=e.DocumentSymbolRequest=e.DocumentHighlightRequest=e.ReferencesRequest=e.DefinitionRequest=e.SignatureHelpRequest=e.SignatureHelpTriggerKind=e.HoverRequest=e.CompletionResolveRequest=e.CompletionRequest=e.CompletionTriggerKind=e.PublishDiagnosticsNotification=e.WatchKind=e.RelativePattern=e.FileChangeType=e.DidChangeWatchedFilesNotification=e.WillSaveTextDocumentWaitUntilRequest=e.WillSaveTextDocumentNotification=e.TextDocumentSaveReason=e.DidSaveTextDocumentNotification=e.DidCloseTextDocumentNotification=e.DidChangeTextDocumentNotification=e.TextDocumentContentChangeEvent=e.DidOpenTextDocumentNotification=e.TextDocumentSyncKind=e.TelemetryEventNotification=e.LogMessageNotification=e.ShowMessageRequest=e.ShowMessageNotification=e.MessageType=e.DidChangeConfigurationNotification=e.ExitNotification=e.ShutdownRequest=e.InitializedNotification=e.InitializeErrorCodes=e.InitializeRequest=e.WorkDoneProgressOptions=e.TextDocumentRegistrationOptions=e.StaticRegistrationOptions=e.PositionEncodingKind=e.FailureHandlingKind=e.ResourceOperationKind=e.UnregistrationRequest=e.RegistrationRequest=e.DocumentSelector=e.NotebookCellTextDocumentFilter=e.NotebookDocumentFilter=e.TextDocumentFilter=void 0,e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.WillRenameFilesRequest=e.DidRenameFilesNotification=e.WillCreateFilesRequest=e.DidCreateFilesNotification=e.FileOperationPatternKind=e.LinkedEditingRangeRequest=e.ShowDocumentRequest=e.SemanticTokensRegistrationType=e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.TokenFormat=e.CallHierarchyPrepareRequest=e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=e.SelectionRangeRequest=e.DeclarationRequest=e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=e.ColorPresentationRequest=e.DocumentColorRequest=e.ConfigurationRequest=e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=e.TypeDefinitionRequest=e.ImplementationRequest=e.ApplyWorkspaceEditRequest=e.ExecuteCommandRequest=e.PrepareRenameRequest=e.RenameRequest=e.PrepareSupportDefaultBehavior=e.DocumentOnTypeFormattingRequest=e.DocumentRangesFormattingRequest=e.DocumentRangeFormattingRequest=e.DocumentFormattingRequest=e.DocumentLinkResolveRequest=e.DocumentLinkRequest=e.CodeLensRefreshRequest=e.CodeLensResolveRequest=e.CodeLensRequest=e.WorkspaceSymbolResolveRequest=void 0,e.InlineCompletionRequest=e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=e.InlineValueRefreshRequest=e.InlineValueRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchySubtypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t,r,n,i,a,s,o,l,u,c,p,d,f,h,m,y,g,v,T,R,$,b,E,C,A,S,k,x,N,w,I,_,P,D,O,L,M,j,F,z,q,G,U,K,W,B,V,H,Y,X,J,Z,Q,ee,et,er,en,ei,ea,es,eo,el,eu,ec,ep,ed,ef,eh,em,ey,eg,ev,eT,eR,e$,eb,eE,eC,eA,eS,ek,ex,eN,ew,eI,e_,eP,eD,eO,eL,eM,ej,eF,ez,eq,eG,eU,eK,eW,eB,eV,eH,eY,eX,eJ,eZ,eQ,e0,e1,e2,e3,e9,e4,e5,e8,e7,e6,te,tt,tr=tF(),tn=(t$(),tT(tR)),ti=tz(),ta=tq();Object.defineProperty(e,"ImplementationRequest",{enumerable:!0,get:tf(function(){return ta.ImplementationRequest},"get")});var ts=tG();Object.defineProperty(e,"TypeDefinitionRequest",{enumerable:!0,get:tf(function(){return ts.TypeDefinitionRequest},"get")});var to=tU();Object.defineProperty(e,"WorkspaceFoldersRequest",{enumerable:!0,get:tf(function(){return to.WorkspaceFoldersRequest},"get")}),Object.defineProperty(e,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:tf(function(){return to.DidChangeWorkspaceFoldersNotification},"get")});var tl=tK();Object.defineProperty(e,"ConfigurationRequest",{enumerable:!0,get:tf(function(){return tl.ConfigurationRequest},"get")});var tu=tW();Object.defineProperty(e,"DocumentColorRequest",{enumerable:!0,get:tf(function(){return tu.DocumentColorRequest},"get")}),Object.defineProperty(e,"ColorPresentationRequest",{enumerable:!0,get:tf(function(){return tu.ColorPresentationRequest},"get")});var tc=tB();Object.defineProperty(e,"FoldingRangeRequest",{enumerable:!0,get:tf(function(){return tc.FoldingRangeRequest},"get")}),Object.defineProperty(e,"FoldingRangeRefreshRequest",{enumerable:!0,get:tf(function(){return tc.FoldingRangeRefreshRequest},"get")});var tp=tV();Object.defineProperty(e,"DeclarationRequest",{enumerable:!0,get:tf(function(){return tp.DeclarationRequest},"get")});var td=tH();Object.defineProperty(e,"SelectionRangeRequest",{enumerable:!0,get:tf(function(){return td.SelectionRangeRequest},"get")});var th=tY();Object.defineProperty(e,"WorkDoneProgress",{enumerable:!0,get:tf(function(){return th.WorkDoneProgress},"get")}),Object.defineProperty(e,"WorkDoneProgressCreateRequest",{enumerable:!0,get:tf(function(){return th.WorkDoneProgressCreateRequest},"get")}),Object.defineProperty(e,"WorkDoneProgressCancelNotification",{enumerable:!0,get:tf(function(){return th.WorkDoneProgressCancelNotification},"get")});var tm=tX();Object.defineProperty(e,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:tf(function(){return tm.CallHierarchyIncomingCallsRequest},"get")}),Object.defineProperty(e,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:tf(function(){return tm.CallHierarchyOutgoingCallsRequest},"get")}),Object.defineProperty(e,"CallHierarchyPrepareRequest",{enumerable:!0,get:tf(function(){return tm.CallHierarchyPrepareRequest},"get")});var ty=tJ();Object.defineProperty(e,"TokenFormat",{enumerable:!0,get:tf(function(){return ty.TokenFormat},"get")}),Object.defineProperty(e,"SemanticTokensRequest",{enumerable:!0,get:tf(function(){return ty.SemanticTokensRequest},"get")}),Object.defineProperty(e,"SemanticTokensDeltaRequest",{enumerable:!0,get:tf(function(){return ty.SemanticTokensDeltaRequest},"get")}),Object.defineProperty(e,"SemanticTokensRangeRequest",{enumerable:!0,get:tf(function(){return ty.SemanticTokensRangeRequest},"get")}),Object.defineProperty(e,"SemanticTokensRefreshRequest",{enumerable:!0,get:tf(function(){return ty.SemanticTokensRefreshRequest},"get")}),Object.defineProperty(e,"SemanticTokensRegistrationType",{enumerable:!0,get:tf(function(){return ty.SemanticTokensRegistrationType},"get")});var tg=tZ();Object.defineProperty(e,"ShowDocumentRequest",{enumerable:!0,get:tf(function(){return tg.ShowDocumentRequest},"get")});var tv=tQ();Object.defineProperty(e,"LinkedEditingRangeRequest",{enumerable:!0,get:tf(function(){return tv.LinkedEditingRangeRequest},"get")});var tb=t0();Object.defineProperty(e,"FileOperationPatternKind",{enumerable:!0,get:tf(function(){return tb.FileOperationPatternKind},"get")}),Object.defineProperty(e,"DidCreateFilesNotification",{enumerable:!0,get:tf(function(){return tb.DidCreateFilesNotification},"get")}),Object.defineProperty(e,"WillCreateFilesRequest",{enumerable:!0,get:tf(function(){return tb.WillCreateFilesRequest},"get")}),Object.defineProperty(e,"DidRenameFilesNotification",{enumerable:!0,get:tf(function(){return tb.DidRenameFilesNotification},"get")}),Object.defineProperty(e,"WillRenameFilesRequest",{enumerable:!0,get:tf(function(){return tb.WillRenameFilesRequest},"get")}),Object.defineProperty(e,"DidDeleteFilesNotification",{enumerable:!0,get:tf(function(){return tb.DidDeleteFilesNotification},"get")}),Object.defineProperty(e,"WillDeleteFilesRequest",{enumerable:!0,get:tf(function(){return tb.WillDeleteFilesRequest},"get")});var tE=t1();Object.defineProperty(e,"UniquenessLevel",{enumerable:!0,get:tf(function(){return tE.UniquenessLevel},"get")}),Object.defineProperty(e,"MonikerKind",{enumerable:!0,get:tf(function(){return tE.MonikerKind},"get")}),Object.defineProperty(e,"MonikerRequest",{enumerable:!0,get:tf(function(){return tE.MonikerRequest},"get")});var tC=t2();Object.defineProperty(e,"TypeHierarchyPrepareRequest",{enumerable:!0,get:tf(function(){return tC.TypeHierarchyPrepareRequest},"get")}),Object.defineProperty(e,"TypeHierarchySubtypesRequest",{enumerable:!0,get:tf(function(){return tC.TypeHierarchySubtypesRequest},"get")}),Object.defineProperty(e,"TypeHierarchySupertypesRequest",{enumerable:!0,get:tf(function(){return tC.TypeHierarchySupertypesRequest},"get")});var tA=t3();Object.defineProperty(e,"InlineValueRequest",{enumerable:!0,get:tf(function(){return tA.InlineValueRequest},"get")}),Object.defineProperty(e,"InlineValueRefreshRequest",{enumerable:!0,get:tf(function(){return tA.InlineValueRefreshRequest},"get")});var tS=t9();Object.defineProperty(e,"InlayHintRequest",{enumerable:!0,get:tf(function(){return tS.InlayHintRequest},"get")}),Object.defineProperty(e,"InlayHintResolveRequest",{enumerable:!0,get:tf(function(){return tS.InlayHintResolveRequest},"get")}),Object.defineProperty(e,"InlayHintRefreshRequest",{enumerable:!0,get:tf(function(){return tS.InlayHintRefreshRequest},"get")});var tk=t4();Object.defineProperty(e,"DiagnosticServerCancellationData",{enumerable:!0,get:tf(function(){return tk.DiagnosticServerCancellationData},"get")}),Object.defineProperty(e,"DocumentDiagnosticReportKind",{enumerable:!0,get:tf(function(){return tk.DocumentDiagnosticReportKind},"get")}),Object.defineProperty(e,"DocumentDiagnosticRequest",{enumerable:!0,get:tf(function(){return tk.DocumentDiagnosticRequest},"get")}),Object.defineProperty(e,"WorkspaceDiagnosticRequest",{enumerable:!0,get:tf(function(){return tk.WorkspaceDiagnosticRequest},"get")}),Object.defineProperty(e,"DiagnosticRefreshRequest",{enumerable:!0,get:tf(function(){return tk.DiagnosticRefreshRequest},"get")});var tx=t5();Object.defineProperty(e,"NotebookCellKind",{enumerable:!0,get:tf(function(){return tx.NotebookCellKind},"get")}),Object.defineProperty(e,"ExecutionSummary",{enumerable:!0,get:tf(function(){return tx.ExecutionSummary},"get")}),Object.defineProperty(e,"NotebookCell",{enumerable:!0,get:tf(function(){return tx.NotebookCell},"get")}),Object.defineProperty(e,"NotebookDocument",{enumerable:!0,get:tf(function(){return tx.NotebookDocument},"get")}),Object.defineProperty(e,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:tf(function(){return tx.NotebookDocumentSyncRegistrationType},"get")}),Object.defineProperty(e,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:tf(function(){return tx.DidOpenNotebookDocumentNotification},"get")}),Object.defineProperty(e,"NotebookCellArrayChange",{enumerable:!0,get:tf(function(){return tx.NotebookCellArrayChange},"get")}),Object.defineProperty(e,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:tf(function(){return tx.DidChangeNotebookDocumentNotification},"get")}),Object.defineProperty(e,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:tf(function(){return tx.DidSaveNotebookDocumentNotification},"get")}),Object.defineProperty(e,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:tf(function(){return tx.DidCloseNotebookDocumentNotification},"get")});var tN=t8();Object.defineProperty(e,"InlineCompletionRequest",{enumerable:!0,get:tf(function(){return tN.InlineCompletionRequest},"get")});var tw=et||(e.TextDocumentFilter=et={});function tI(e){return ti.string(e)||ti.string(e.language)||ti.string(e.scheme)||ti.string(e.pattern)}tf(tI,"is"),tw.is=tI;var t_=er||(e.NotebookDocumentFilter=er={});function tP(e){return ti.objectLiteral(e)&&(ti.string(e.notebookType)||ti.string(e.scheme)||ti.string(e.pattern))}tf(tP,"is"),t_.is=tP;var tD=en||(e.NotebookCellTextDocumentFilter=en={});function tO(e){return ti.objectLiteral(e)&&(ti.string(e.notebook)||er.is(e.notebook))&&(void 0===e.language||ti.string(e.language))}tf(tO,"is"),tD.is=tO;var tL=ei||(e.DocumentSelector=ei={});function tM(e){if(!Array.isArray(e))return!1;for(let t of e)if(!ti.string(t)&&!et.is(t)&&!en.is(t))return!1;return!0}tf(tM,"is"),tL.is=tM,(t=ea||(e.RegistrationRequest=ea={})).method="client/registerCapability",t.messageDirection=tr.MessageDirection.serverToClient,t.type=new tr.ProtocolRequestType(t.method),(r=es||(e.UnregistrationRequest=es={})).method="client/unregisterCapability",r.messageDirection=tr.MessageDirection.serverToClient,r.type=new tr.ProtocolRequestType(r.method),(n=eo||(e.ResourceOperationKind=eo={})).Create="create",n.Rename="rename",n.Delete="delete",(i=el||(e.FailureHandlingKind=el={})).Abort="abort",i.Transactional="transactional",i.TextOnlyTransactional="textOnlyTransactional",i.Undo="undo",(a=eu||(e.PositionEncodingKind=eu={})).UTF8="utf-8",a.UTF16="utf-16",a.UTF32="utf-32";var tj=ec||(e.StaticRegistrationOptions=ec={});function t7(e){return e&&ti.string(e.id)&&e.id.length>0}tf(t7,"hasId"),tj.hasId=t7;var t6=ep||(e.TextDocumentRegistrationOptions=ep={});function re(e){return e&&(null===e.documentSelector||ei.is(e.documentSelector))}tf(re,"is"),t6.is=re;var rt=ed||(e.WorkDoneProgressOptions=ed={});function rr(e){return ti.objectLiteral(e)&&(void 0===e.workDoneProgress||ti.boolean(e.workDoneProgress))}function rn(e){return e&&ti.boolean(e.workDoneProgress)}tf(rr,"is"),rt.is=rr,tf(rn,"hasWorkDoneProgress"),rt.hasWorkDoneProgress=rn,(s=ef||(e.InitializeRequest=ef={})).method="initialize",s.messageDirection=tr.MessageDirection.clientToServer,s.type=new tr.ProtocolRequestType(s.method),(eh||(e.InitializeErrorCodes=eh={})).unknownProtocolVersion=1,(o=em||(e.InitializedNotification=em={})).method="initialized",o.messageDirection=tr.MessageDirection.clientToServer,o.type=new tr.ProtocolNotificationType(o.method),(l=ey||(e.ShutdownRequest=ey={})).method="shutdown",l.messageDirection=tr.MessageDirection.clientToServer,l.type=new tr.ProtocolRequestType0(l.method),(u=eg||(e.ExitNotification=eg={})).method="exit",u.messageDirection=tr.MessageDirection.clientToServer,u.type=new tr.ProtocolNotificationType0(u.method),(c=ev||(e.DidChangeConfigurationNotification=ev={})).method="workspace/didChangeConfiguration",c.messageDirection=tr.MessageDirection.clientToServer,c.type=new tr.ProtocolNotificationType(c.method),(p=eT||(e.MessageType=eT={})).Error=1,p.Warning=2,p.Info=3,p.Log=4,p.Debug=5,(d=eR||(e.ShowMessageNotification=eR={})).method="window/showMessage",d.messageDirection=tr.MessageDirection.serverToClient,d.type=new tr.ProtocolNotificationType(d.method),(f=e$||(e.ShowMessageRequest=e$={})).method="window/showMessageRequest",f.messageDirection=tr.MessageDirection.serverToClient,f.type=new tr.ProtocolRequestType(f.method),(h=eb||(e.LogMessageNotification=eb={})).method="window/logMessage",h.messageDirection=tr.MessageDirection.serverToClient,h.type=new tr.ProtocolNotificationType(h.method),(m=eE||(e.TelemetryEventNotification=eE={})).method="telemetry/event",m.messageDirection=tr.MessageDirection.serverToClient,m.type=new tr.ProtocolNotificationType(m.method),(y=eC||(e.TextDocumentSyncKind=eC={})).None=0,y.Full=1,y.Incremental=2,(g=eA||(e.DidOpenTextDocumentNotification=eA={})).method="textDocument/didOpen",g.messageDirection=tr.MessageDirection.clientToServer,g.type=new tr.ProtocolNotificationType(g.method);var ri=eS||(e.TextDocumentContentChangeEvent=eS={});function ra(e){return null!=e&&"string"==typeof e.text&&void 0!==e.range&&(void 0===e.rangeLength||"number"==typeof e.rangeLength)}function rs(e){return null!=e&&"string"==typeof e.text&&void 0===e.range&&void 0===e.rangeLength}tf(ra,"isIncremental"),ri.isIncremental=ra,tf(rs,"isFull"),ri.isFull=rs,(v=ek||(e.DidChangeTextDocumentNotification=ek={})).method="textDocument/didChange",v.messageDirection=tr.MessageDirection.clientToServer,v.type=new tr.ProtocolNotificationType(v.method),(T=ex||(e.DidCloseTextDocumentNotification=ex={})).method="textDocument/didClose",T.messageDirection=tr.MessageDirection.clientToServer,T.type=new tr.ProtocolNotificationType(T.method),(R=eN||(e.DidSaveTextDocumentNotification=eN={})).method="textDocument/didSave",R.messageDirection=tr.MessageDirection.clientToServer,R.type=new tr.ProtocolNotificationType(R.method),($=ew||(e.TextDocumentSaveReason=ew={})).Manual=1,$.AfterDelay=2,$.FocusOut=3,(b=eI||(e.WillSaveTextDocumentNotification=eI={})).method="textDocument/willSave",b.messageDirection=tr.MessageDirection.clientToServer,b.type=new tr.ProtocolNotificationType(b.method),(E=e_||(e.WillSaveTextDocumentWaitUntilRequest=e_={})).method="textDocument/willSaveWaitUntil",E.messageDirection=tr.MessageDirection.clientToServer,E.type=new tr.ProtocolRequestType(E.method),(C=eP||(e.DidChangeWatchedFilesNotification=eP={})).method="workspace/didChangeWatchedFiles",C.messageDirection=tr.MessageDirection.clientToServer,C.type=new tr.ProtocolNotificationType(C.method),(A=eD||(e.FileChangeType=eD={})).Created=1,A.Changed=2,A.Deleted=3;var ro=eO||(e.RelativePattern=eO={});function rl(e){return ti.objectLiteral(e)&&(tn.URI.is(e.baseUri)||tn.WorkspaceFolder.is(e.baseUri))&&ti.string(e.pattern)}tf(rl,"is"),ro.is=rl,(S=eL||(e.WatchKind=eL={})).Create=1,S.Change=2,S.Delete=4,(k=eM||(e.PublishDiagnosticsNotification=eM={})).method="textDocument/publishDiagnostics",k.messageDirection=tr.MessageDirection.serverToClient,k.type=new tr.ProtocolNotificationType(k.method),(x=ej||(e.CompletionTriggerKind=ej={})).Invoked=1,x.TriggerCharacter=2,x.TriggerForIncompleteCompletions=3,(N=eF||(e.CompletionRequest=eF={})).method="textDocument/completion",N.messageDirection=tr.MessageDirection.clientToServer,N.type=new tr.ProtocolRequestType(N.method),(w=ez||(e.CompletionResolveRequest=ez={})).method="completionItem/resolve",w.messageDirection=tr.MessageDirection.clientToServer,w.type=new tr.ProtocolRequestType(w.method),(I=eq||(e.HoverRequest=eq={})).method="textDocument/hover",I.messageDirection=tr.MessageDirection.clientToServer,I.type=new tr.ProtocolRequestType(I.method),(_=eG||(e.SignatureHelpTriggerKind=eG={})).Invoked=1,_.TriggerCharacter=2,_.ContentChange=3,(P=eU||(e.SignatureHelpRequest=eU={})).method="textDocument/signatureHelp",P.messageDirection=tr.MessageDirection.clientToServer,P.type=new tr.ProtocolRequestType(P.method),(D=eK||(e.DefinitionRequest=eK={})).method="textDocument/definition",D.messageDirection=tr.MessageDirection.clientToServer,D.type=new tr.ProtocolRequestType(D.method),(O=eW||(e.ReferencesRequest=eW={})).method="textDocument/references",O.messageDirection=tr.MessageDirection.clientToServer,O.type=new tr.ProtocolRequestType(O.method),(L=eB||(e.DocumentHighlightRequest=eB={})).method="textDocument/documentHighlight",L.messageDirection=tr.MessageDirection.clientToServer,L.type=new tr.ProtocolRequestType(L.method),(M=eV||(e.DocumentSymbolRequest=eV={})).method="textDocument/documentSymbol",M.messageDirection=tr.MessageDirection.clientToServer,M.type=new tr.ProtocolRequestType(M.method),(j=eH||(e.CodeActionRequest=eH={})).method="textDocument/codeAction",j.messageDirection=tr.MessageDirection.clientToServer,j.type=new tr.ProtocolRequestType(j.method),(F=eY||(e.CodeActionResolveRequest=eY={})).method="codeAction/resolve",F.messageDirection=tr.MessageDirection.clientToServer,F.type=new tr.ProtocolRequestType(F.method),(z=eX||(e.WorkspaceSymbolRequest=eX={})).method="workspace/symbol",z.messageDirection=tr.MessageDirection.clientToServer,z.type=new tr.ProtocolRequestType(z.method),(q=eJ||(e.WorkspaceSymbolResolveRequest=eJ={})).method="workspaceSymbol/resolve",q.messageDirection=tr.MessageDirection.clientToServer,q.type=new tr.ProtocolRequestType(q.method),(G=eZ||(e.CodeLensRequest=eZ={})).method="textDocument/codeLens",G.messageDirection=tr.MessageDirection.clientToServer,G.type=new tr.ProtocolRequestType(G.method),(U=eQ||(e.CodeLensResolveRequest=eQ={})).method="codeLens/resolve",U.messageDirection=tr.MessageDirection.clientToServer,U.type=new tr.ProtocolRequestType(U.method),(K=e0||(e.CodeLensRefreshRequest=e0={})).method="workspace/codeLens/refresh",K.messageDirection=tr.MessageDirection.serverToClient,K.type=new tr.ProtocolRequestType0(K.method),(W=e1||(e.DocumentLinkRequest=e1={})).method="textDocument/documentLink",W.messageDirection=tr.MessageDirection.clientToServer,W.type=new tr.ProtocolRequestType(W.method),(B=e2||(e.DocumentLinkResolveRequest=e2={})).method="documentLink/resolve",B.messageDirection=tr.MessageDirection.clientToServer,B.type=new tr.ProtocolRequestType(B.method),(V=e3||(e.DocumentFormattingRequest=e3={})).method="textDocument/formatting",V.messageDirection=tr.MessageDirection.clientToServer,V.type=new tr.ProtocolRequestType(V.method),(H=e9||(e.DocumentRangeFormattingRequest=e9={})).method="textDocument/rangeFormatting",H.messageDirection=tr.MessageDirection.clientToServer,H.type=new tr.ProtocolRequestType(H.method),(Y=e4||(e.DocumentRangesFormattingRequest=e4={})).method="textDocument/rangesFormatting",Y.messageDirection=tr.MessageDirection.clientToServer,Y.type=new tr.ProtocolRequestType(Y.method),(X=e5||(e.DocumentOnTypeFormattingRequest=e5={})).method="textDocument/onTypeFormatting",X.messageDirection=tr.MessageDirection.clientToServer,X.type=new tr.ProtocolRequestType(X.method),(e8||(e.PrepareSupportDefaultBehavior=e8={})).Identifier=1,(J=e7||(e.RenameRequest=e7={})).method="textDocument/rename",J.messageDirection=tr.MessageDirection.clientToServer,J.type=new tr.ProtocolRequestType(J.method),(Z=e6||(e.PrepareRenameRequest=e6={})).method="textDocument/prepareRename",Z.messageDirection=tr.MessageDirection.clientToServer,Z.type=new tr.ProtocolRequestType(Z.method),(Q=te||(e.ExecuteCommandRequest=te={})).method="workspace/executeCommand",Q.messageDirection=tr.MessageDirection.clientToServer,Q.type=new tr.ProtocolRequestType(Q.method),(ee=tt||(e.ApplyWorkspaceEditRequest=tt={})).method="workspace/applyEdit",ee.messageDirection=tr.MessageDirection.serverToClient,ee.type=new tr.ProtocolRequestType("workspace/applyEdit")}}),t6=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var t=tM();function r(e,r,n,i){return t.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,t.createMessageConnection)(e,r,n,i)}tf(r,"createProtocolConnection"),e.createProtocolConnection=r}}),re=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js"(e){var t,r,n=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:tf(function(){return t[r]},"get")}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,i(tM(),e),i((t$(),tT(tR)),e),i(tF(),e),i(t7(),e);var a=t6();Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:tf(function(){return a.createProtocolConnection},"get")}),(t=r||(e.LSPErrorCodes=r={})).lspReservedErrorRangeStart=-32899,t.RequestFailed=-32803,t.ServerCancelled=-32802,t.ContentModified=-32801,t.RequestCancelled=-32800,t.lspReservedErrorRangeEnd=-32800}}),rt=th({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/browser/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:tf(function(){return t[r]},"get")}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=e&&e.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var n=tj();function i(e,t,r,i){return(0,n.createMessageConnection)(e,t,r,i)}r(tj(),e),r(re(),e),tf(i,"createProtocolConnection"),e.createProtocolConnection=i}}),rr={};tm(rr,{AbstractAstReflection:()=>ru,AbstractCstNode:()=>vI,AbstractLangiumParser:()=>vF,AbstractParserErrorMessageProvider:()=>vq,AbstractThreadedAsyncParser:()=>RM,AstUtils:()=>rR,BiMap:()=>TP,Cancellation:()=>Ts,CompositeCstNodeImpl:()=>vP,ContextCache:()=>Tq,CstNodeBuilder:()=>vw,CstUtils:()=>rn,DEFAULT_TOKENIZE_OPTIONS:()=>Rr,DONE_RESULT:()=>rg,DatatypeSymbol:()=>vL,DefaultAstNodeDescriptionProvider:()=>T2,DefaultAstNodeLocator:()=>T9,DefaultAsyncParser:()=>RL,DefaultCommentProvider:()=>RO,DefaultConfigurationProvider:()=>T5,DefaultDocumentBuilder:()=>T7,DefaultDocumentValidator:()=>TZ,DefaultHydrator:()=>Rz,DefaultIndexManager:()=>T6,DefaultJsonSerializer:()=>TV,DefaultLangiumDocumentFactory:()=>TA,DefaultLangiumDocuments:()=>TS,DefaultLangiumProfiler:()=>R5,DefaultLexer:()=>Rn,DefaultLexerErrorMessageProvider:()=>Rt,DefaultLinker:()=>Tx,DefaultNameProvider:()=>Tw,DefaultReferenceDescriptionProvider:()=>T3,DefaultReferences:()=>TI,DefaultScopeComputation:()=>TD,DefaultScopeProvider:()=>TK,DefaultServiceRegistry:()=>TH,DefaultTokenBuilder:()=>Ti,DefaultValueConverter:()=>Ta,DefaultWorkspaceLock:()=>RF,DefaultWorkspaceManager:()=>Re,Deferred:()=>Tm,Disposable:()=>eV,DisposableCache:()=>TF,DocumentCache:()=>TG,DocumentState:()=>eK,DocumentValidator:()=>eB,EMPTY_SCOPE:()=>Tj,EMPTY_STREAM:()=>ry,EmptyFileSystem:()=>R1,EmptyFileSystemProvider:()=>R0,ErrorWithLocation:()=>iM,GrammarAST:()=>rO,GrammarUtils:()=>iL,IndentationAwareLexer:()=>RZ,IndentationAwareTokenBuilder:()=>RJ,JSDocDocumentationProvider:()=>RD,LangiumCompletionParser:()=>vU,LangiumParser:()=>vz,LangiumParserErrorMessageProvider:()=>vG,LeafCstNodeImpl:()=>v_,LexingMode:()=>eY,MapScope:()=>TL,Module:()=>eH,MultiMap:()=>T_,MultiMapScope:()=>TM,OperationCancelled:()=>Td,ParserWorker:()=>Rj,ProfilingTask:()=>R8,Reduction:()=>eD,RefResolving:()=>Tk,RegExpUtils:()=>iz,RootCstNodeImpl:()=>vO,SimpleCache:()=>Tz,StreamImpl:()=>rf,StreamScope:()=>TO,TextDocument:()=>eq,TreeStreamImpl:()=>rT,URI:()=>Tb,UriTrie:()=>TC,UriUtils:()=>eU,VALIDATE_EACH_NODE:()=>TJ,ValidationCategory:()=>eW,ValidationRegistry:()=>TX,ValueConverter:()=>ez,WorkspaceCache:()=>TU,assertCondition:()=>iF,assertUnreachable:()=>ij,createCompletionParser:()=>Tt,createDefaultCoreModule:()=>Rq,createDefaultSharedCoreModule:()=>RG,createGrammarConfig:()=>az,createLangiumParser:()=>Tr,createParser:()=>vV,delayNextTick:()=>To,diagnosticData:()=>TY,eagerLoad:()=>RW,getDiagnosticRange:()=>TQ,indentationBuilderDefaultOptions:()=>RX,inject:()=>RU,interruptAndCheck:()=>Th,isAstNode:()=>ri,isAstNodeDescription:()=>ro,isAstNodeWithComment:()=>TW,isCompositeCstNode:()=>rc,isIMultiModeLexerDefinition:()=>Ra,isJSDoc:()=>Rl,isLeafCstNode:()=>rp,isLinkingError:()=>rl,isMultiReference:()=>rs,isNamed:()=>TN,isOperationCancelled:()=>Tf,isReference:()=>ra,isRootCstNode:()=>rd,isTokenTypeArray:()=>Ri,isTokenTypeDictionary:()=>Rs,loadGrammarFromJson:()=>R4,parseJSDoc:()=>Ro,prepareLangiumParser:()=>Tn,setInterruptionPeriod:()=>Tp,startCancelableOperation:()=>Tc,stream:()=>rv,toDiagnosticData:()=>T1,toDiagnosticSeverity:()=>T0});var rn={};function ri(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$type}function ra(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$refText&&"ref"in e}function rs(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$refText&&"items"in e}function ro(e){return"object"==typeof e&&null!==e&&"string"==typeof e.name&&"string"==typeof e.type&&"string"==typeof e.path}function rl(e){return"object"==typeof e&&null!==e&&"object"==typeof e.info&&"string"==typeof e.message}tm(rn,{DefaultNameRegexp:()=>iE,RangeComparison:()=>eO,compareRange:()=>i$,findCommentNode:()=>iA,findDeclarationNodeAtOffset:()=>iC,findLeafNodeAtOffset:()=>ik,findLeafNodeBeforeOffset:()=>ix,flattenCst:()=>ig,getDatatypeNode:()=>im,getInteriorNodes:()=>iP,getNextNode:()=>iI,getPreviousNode:()=>iw,getStartlineNode:()=>i_,inRange:()=>ib,isChildNode:()=>iv,isCommentNode:()=>iS,streamCst:()=>iy,toDocumentSegment:()=>iR,tokenToRange:()=>iT}),tf(ri,"isAstNode"),tf(ra,"isReference"),tf(rs,"isMultiReference"),tf(ro,"isAstNodeDescription"),tf(rl,"isLinkingError");var ru=class{static{tf(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw Error(`Type ${e.container.$type||"undefined"} not found.`);let r=t.properties[e.property]?.referenceType;if(!r)throw Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return r}getTypeMetaData(e){let t=this.types[e];return t||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return ri(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});let n=r[t];if(void 0!==n)return n;{let n=this.types[e],i=!!n&&n.superTypes.some(e=>this.isSubtype(e,t));return r[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let t=this.getAllTypes(),r=[];for(let n of t)this.isSubtype(n,e)&&r.push(n);return this.allSubtypes[e]=r,r}}};function rc(e){return"object"==typeof e&&null!==e&&Array.isArray(e.content)}function rp(e){return"object"==typeof e&&null!==e&&"object"==typeof e.tokenType}function rd(e){return rc(e)&&"string"==typeof e.fullText}tf(rc,"isCompositeCstNode"),tf(rp,"isLeafCstNode"),tf(rd,"isRootCstNode");var rf=class e{static{tf(this,"StreamImpl")}constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:tf(()=>this.nextFn(e.state),"next"),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,r=e.next();for(;!r.done;)t++,r=e.next();return t}toArray(){let e,t=[],r=this.iterator();do void 0!==(e=r.next()).value&&t.push(e.value);while(!e.done);return t}toSet(){return new Set(this)}toMap(e,t){return new Map(this.map(r=>[e?e(r):r,t?t(r):r]))}toString(){return this.join()}concat(t){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do if(!(t=this.nextFn(e.first)).done)return t;while(!t.done);e.firstDone=!0}do if(!(t=e.iterator.next()).done)return t;while(!t.done);return rg})}join(e=","){let t,r=this.iterator(),n="",i=!1;do(t=r.next()).done||(i&&(n+=e),n+=rh(t.value)),i=!0;while(!t.done);return n}indexOf(e,t=0){let r=this.iterator(),n=0,i=r.next();for(;!i.done;){if(n>=t&&i.value===e)return n;i=r.next(),n++}return -1}every(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(!e(r.value))return!1;r=t.next()}return!0}some(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(e(r.value))return!0;r=t.next()}return!1}forEach(e){let t=this.iterator(),r=0,n=t.next();for(;!n.done;)e(n.value,r),n=t.next(),r++}map(t){return new e(this.startFn,e=>{let{done:r,value:n}=this.nextFn(e);return r?rg:{done:!1,value:t(n)}})}filter(t){return new e(this.startFn,e=>{let r;do if(!(r=this.nextFn(e)).done&&t(r.value))return r;while(!r.done);return rg})}nonNullable(){return this.filter(e=>null!=e)}reduce(e,t){let r=this.iterator(),n=t,i=r.next();for(;!i.done;)n=void 0===n?i.value:e(n,i.value),i=r.next();return n}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,r){let n=e.next();if(n.done)return r;let i=this.recursiveReduce(e,t,r);return void 0===i?n.value:t(i,n.value)}find(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(e(r.value))return r.value;r=t.next()}}findIndex(e){let t=this.iterator(),r=0,n=t.next();for(;!n.done;){if(e(n.value))return r;n=t.next(),r++}return -1}includes(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(r.value===e)return!0;r=t.next()}return!1}flatMap(t){return new e(()=>({this:this.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}let{done:r,value:n}=this.nextFn(e.this);if(!r){let r=t(n);if(!rm(r))return{done:!1,value:r};e.iterator=r[Symbol.iterator]()}}while(e.iterator);return rg})}flat(t){if(void 0===t&&(t=1),t<=0)return this;let r=t>1?this.flat(t-1):this;return new e(()=>({this:r.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}let{done:t,value:n}=r.nextFn(e.this);if(!t)if(!rm(n))return{done:!1,value:n};else e.iterator=n[Symbol.iterator]()}while(e.iterator);return rg})}head(){let e=this.iterator().next();if(!e.done)return e.value}tail(t=1){return new e(()=>{let e=this.startFn();for(let r=0;r<t&&!this.nextFn(e).done;r++);return e},this.nextFn)}limit(t){return new e(()=>({size:0,state:this.startFn()}),e=>(e.size++,e.size>t)?rg:this.nextFn(e.state))}distinct(t){return new e(()=>({set:new Set,internalState:this.startFn()}),e=>{let r;do if(!(r=this.nextFn(e.internalState)).done){let n=t?t(r.value):r.value;if(!e.set.has(n))return e.set.add(n),r}while(!r.done);return rg})}exclude(e,t){let r=new Set;for(let n of e){let e=t?t(n):n;r.add(e)}return this.filter(e=>{let n=t?t(e):e;return!r.has(n)})}};function rh(e){return"string"==typeof e?e:void 0===e?"undefined":"function"==typeof e.toString?e.toString():Object.prototype.toString.call(e)}function rm(e){return!!e&&"function"==typeof e[Symbol.iterator]}tf(rh,"toString"),tf(rm,"isIterable");var ry=new rf(()=>void 0,()=>rg),rg=Object.freeze({done:!0,value:void 0});function rv(...e){if(1===e.length){let t=e[0];if(t instanceof rf)return t;if(rm(t))return new rf(()=>t[Symbol.iterator](),e=>e.next());if("number"==typeof t.length)return new rf(()=>({index:0}),e=>e.index<t.length?{done:!1,value:t[e.index++]}:rg)}return e.length>1?new rf(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}if(t.collIndex<e.length){let r=e[t.collIndex++];rm(r)?t.iterator=r[Symbol.iterator]():r&&"number"==typeof r.length&&(t.array=r)}}while(t.iterator||t.array||t.collIndex<e.length);return rg}):ry}tf(rv,"stream");var rT=class extends rf{static{tf(this,"TreeStreamImpl")}constructor(e,t,r){super(()=>({iterators:r?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&(e.iterators.pop(),e.pruned=!1);e.iterators.length>0;){let r=e.iterators[e.iterators.length-1].next();if(!r.done)return e.iterators.push(t(r.value)[Symbol.iterator]()),r;e.iterators.pop()}return rg})}iterator(){let e={state:this.startFn(),next:tf(()=>this.nextFn(e.state),"next"),prune:tf(()=>{e.state.pruned=!0},"prune"),[Symbol.iterator]:()=>e};return e}};!function(e){function t(e){return e.reduce((e,t)=>e+t,0)}function r(e){return e.reduce((e,t)=>e*t,0)}function n(e){return e.reduce((e,t)=>Math.min(e,t))}function i(e){return e.reduce((e,t)=>Math.max(e,t))}tf(t,"sum"),e.sum=t,tf(r,"product"),e.product=r,tf(n,"min"),e.min=n,tf(i,"max"),e.max=i}(eD||(eD={}));var rR={};function r$(e,t={}){for(let[r,n]of Object.entries(e))!r.startsWith("$")&&(Array.isArray(n)?n.forEach((n,i)=>{ri(n)&&(n.$container=e,n.$containerProperty=r,n.$containerIndex=i,t.deep&&r$(n,t))}):ri(n)&&(n.$container=e,n.$containerProperty=r,t.deep&&r$(n,t)))}function rb(e,t){let r=e;for(;r;){if(t(r))return r;r=r.$container}}function rE(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.$container}return!1}function rC(e){let t=rA(e).$document;if(!t)throw Error("AST node has no document.");return t}function rA(e){for(;e.$container;)e=e.$container;return e}function rS(e){return ra(e)?e.ref?[e.ref]:[]:rs(e)?e.items.map(e=>e.ref):[]}function rk(e,t){if(!e)throw Error("Node must be an AstNode.");let r=t?.range;return new rf(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let n=t.keys[t.keyIndex];if(!n.startsWith("$")){let i=e[n];if(ri(i)){if(t.keyIndex++,rw(i,r))return{done:!1,value:i}}else if(Array.isArray(i)){for(;t.arrayIndex<i.length;){let e=i[t.arrayIndex++];if(ri(e)&&rw(e,r))return{done:!1,value:e}}t.arrayIndex=0}}t.keyIndex++}return rg})}function rx(e,t){if(!e)throw Error("Root node must be an AstNode.");return new rT(e,e=>rk(e,t))}function rN(e,t){if(e){if(t?.range&&!rw(e,t.range))return new rT(e,()=>[])}else throw Error("Root node must be an AstNode.");return new rT(e,e=>rk(e,t),{includeRoot:!0})}function rw(e,t){if(!t)return!0;let r=e.$cstNode?.range;return!!r&&ib(r,t)}function rI(e){return new rf(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let r=t.keys[t.keyIndex];if(!r.startsWith("$")){let n=e[r];if(ra(n)||rs(n))return t.keyIndex++,{done:!1,value:{reference:n,container:e,property:r}};if(Array.isArray(n)){for(;t.arrayIndex<n.length;){let i=t.arrayIndex++,a=n[i];if(ra(a)||rs(n))return{done:!1,value:{reference:a,container:e,property:r,index:i}}}t.arrayIndex=0}}t.keyIndex++}return rg})}function r_(e,t){for(let r of Object.values(e.getTypeMetaData(t.$type).properties))void 0!==r.defaultValue&&void 0===t[r.name]&&(t[r.name]=rP(r.defaultValue))}function rP(e){return Array.isArray(e)?[...e.map(rP)]:e}function rD(e,t,r){let n={$type:e.$type};for(let[i,a]of(r&&(r.set(e,n),r.set(n,e)),Object.entries(e)))if(!i.startsWith("$"))if(ri(a))n[i]=rD(a,t,r);else if(ra(a))n[i]=t(n,i,a.$refNode,a.$refText,a);else if(Array.isArray(a)){let e=[];for(let s of a)ri(s)?e.push(rD(s,t,r)):ra(s)?e.push(t(n,i,s.$refNode,s.$refText,s)):e.push(s);n[i]=e}else n[i]=a;return r$(n,{deep:!0}),n}tm(rR,{assignMandatoryProperties:()=>r_,copyAstNode:()=>rD,findRootNode:()=>rA,getContainerOfType:()=>rb,getDocument:()=>rC,getReferenceNodes:()=>rS,hasContainerOfType:()=>rE,linkContentToContainer:()=>r$,streamAllContents:()=>rx,streamAst:()=>rN,streamContents:()=>rk,streamReferences:()=>rI}),tf(r$,"linkContentToContainer"),tf(rb,"getContainerOfType"),tf(rE,"hasContainerOfType"),tf(rC,"getDocument"),tf(rA,"findRootNode"),tf(rS,"getReferenceNodes"),tf(rk,"streamContents"),tf(rx,"streamAllContents"),tf(rN,"streamAst"),tf(rw,"isAstNodeInRange"),tf(rI,"streamReferences"),tf(r_,"assignMandatoryProperties"),tf(rP,"copyDefaultValue"),tf(rD,"copyAstNode");var rO={};tm(rO,{AbstractElement:()=>rM,AbstractParserRule:()=>rF,AbstractRule:()=>rq,AbstractType:()=>rU,Action:()=>rW,Alternatives:()=>rV,ArrayLiteral:()=>rY,ArrayType:()=>rJ,Assignment:()=>rQ,BooleanLiteral:()=>r1,CharacterRange:()=>r3,Condition:()=>r4,Conjunction:()=>r8,CrossReference:()=>r6,Disjunction:()=>nt,EndOfFile:()=>nn,Grammar:()=>na,GrammarImport:()=>no,Group:()=>nu,InferredType:()=>np,InfixRule:()=>nf,InfixRuleOperatorList:()=>nm,InfixRuleOperators:()=>ng,Interface:()=>nT,Keyword:()=>n$,LangiumGrammarAstReflection:()=>id,LangiumGrammarTerminals:()=>rL,NamedArgument:()=>nE,NegatedToken:()=>nA,Negation:()=>nk,NumberLiteral:()=>nN,Parameter:()=>nI,ParameterReference:()=>nP,ParserRule:()=>nO,ReferenceType:()=>nM,RegexToken:()=>nF,ReturnType:()=>nq,RuleCall:()=>nU,SimpleType:()=>nW,StringLiteral:()=>nV,TerminalAlternatives:()=>nY,TerminalElement:()=>nJ,TerminalGroup:()=>nQ,TerminalRule:()=>n1,TerminalRuleCall:()=>n3,Type:()=>n4,TypeAttribute:()=>n8,TypeDefinition:()=>n6,UnionType:()=>it,UnorderedGroup:()=>ii,UntilToken:()=>is,ValueLiteral:()=>il,Wildcard:()=>ic,isAbstractElement:()=>rj,isAbstractParserRule:()=>rz,isAbstractRule:()=>rG,isAbstractType:()=>rK,isAction:()=>rB,isAlternatives:()=>rH,isArrayLiteral:()=>rX,isArrayType:()=>rZ,isAssignment:()=>r0,isBooleanLiteral:()=>r2,isCharacterRange:()=>r9,isCondition:()=>r5,isConjunction:()=>r7,isCrossReference:()=>ne,isDisjunction:()=>nr,isEndOfFile:()=>ni,isGrammar:()=>ns,isGrammarImport:()=>nl,isGroup:()=>nc,isInferredType:()=>nd,isInfixRule:()=>nh,isInfixRuleOperatorList:()=>ny,isInfixRuleOperators:()=>nv,isInterface:()=>nR,isKeyword:()=>nb,isNamedArgument:()=>nC,isNegatedToken:()=>nS,isNegation:()=>nx,isNumberLiteral:()=>nw,isParameter:()=>n_,isParameterReference:()=>nD,isParserRule:()=>nL,isReferenceType:()=>nj,isRegexToken:()=>nz,isReturnType:()=>nG,isRuleCall:()=>nK,isSimpleType:()=>nB,isStringLiteral:()=>nH,isTerminalAlternatives:()=>nX,isTerminalElement:()=>nZ,isTerminalGroup:()=>n0,isTerminalRule:()=>n2,isTerminalRuleCall:()=>n9,isType:()=>n5,isTypeAttribute:()=>n7,isTypeDefinition:()=>ie,isUnionType:()=>ir,isUnorderedGroup:()=>ia,isUntilToken:()=>io,isValueLiteral:()=>iu,isWildcard:()=>ip,reflection:()=>ih});var rL={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},rM={$type:"AbstractElement",cardinality:"cardinality"};function rj(e){return ih.isInstance(e,rM.$type)}tf(rj,"isAbstractElement");var rF={$type:"AbstractParserRule"};function rz(e){return ih.isInstance(e,rF.$type)}tf(rz,"isAbstractParserRule");var rq={$type:"AbstractRule"};function rG(e){return ih.isInstance(e,rq.$type)}tf(rG,"isAbstractRule");var rU={$type:"AbstractType"};function rK(e){return ih.isInstance(e,rU.$type)}tf(rK,"isAbstractType");var rW={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function rB(e){return ih.isInstance(e,rW.$type)}tf(rB,"isAction");var rV={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function rH(e){return ih.isInstance(e,rV.$type)}tf(rH,"isAlternatives");var rY={$type:"ArrayLiteral",elements:"elements"};function rX(e){return ih.isInstance(e,rY.$type)}tf(rX,"isArrayLiteral");var rJ={$type:"ArrayType",elementType:"elementType"};function rZ(e){return ih.isInstance(e,rJ.$type)}tf(rZ,"isArrayType");var rQ={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function r0(e){return ih.isInstance(e,rQ.$type)}tf(r0,"isAssignment");var r1={$type:"BooleanLiteral",true:"true"};function r2(e){return ih.isInstance(e,r1.$type)}tf(r2,"isBooleanLiteral");var r3={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function r9(e){return ih.isInstance(e,r3.$type)}tf(r9,"isCharacterRange");var r4={$type:"Condition"};function r5(e){return ih.isInstance(e,r4.$type)}tf(r5,"isCondition");var r8={$type:"Conjunction",left:"left",right:"right"};function r7(e){return ih.isInstance(e,r8.$type)}tf(r7,"isConjunction");var r6={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function ne(e){return ih.isInstance(e,r6.$type)}tf(ne,"isCrossReference");var nt={$type:"Disjunction",left:"left",right:"right"};function nr(e){return ih.isInstance(e,nt.$type)}tf(nr,"isDisjunction");var nn={$type:"EndOfFile",cardinality:"cardinality"};function ni(e){return ih.isInstance(e,nn.$type)}tf(ni,"isEndOfFile");var na={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"};function ns(e){return ih.isInstance(e,na.$type)}tf(ns,"isGrammar");var no={$type:"GrammarImport",path:"path"};function nl(e){return ih.isInstance(e,no.$type)}tf(nl,"isGrammarImport");var nu={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function nc(e){return ih.isInstance(e,nu.$type)}tf(nc,"isGroup");var np={$type:"InferredType",name:"name"};function nd(e){return ih.isInstance(e,np.$type)}tf(nd,"isInferredType");var nf={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function nh(e){return ih.isInstance(e,nf.$type)}tf(nh,"isInfixRule");var nm={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"};function ny(e){return ih.isInstance(e,nm.$type)}tf(ny,"isInfixRuleOperatorList");var ng={$type:"InfixRuleOperators",precedences:"precedences"};function nv(e){return ih.isInstance(e,ng.$type)}tf(nv,"isInfixRuleOperators");var nT={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function nR(e){return ih.isInstance(e,nT.$type)}tf(nR,"isInterface");var n$={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function nb(e){return ih.isInstance(e,n$.$type)}tf(nb,"isKeyword");var nE={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"};function nC(e){return ih.isInstance(e,nE.$type)}tf(nC,"isNamedArgument");var nA={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function nS(e){return ih.isInstance(e,nA.$type)}tf(nS,"isNegatedToken");var nk={$type:"Negation",value:"value"};function nx(e){return ih.isInstance(e,nk.$type)}tf(nx,"isNegation");var nN={$type:"NumberLiteral",value:"value"};function nw(e){return ih.isInstance(e,nN.$type)}tf(nw,"isNumberLiteral");var nI={$type:"Parameter",name:"name"};function n_(e){return ih.isInstance(e,nI.$type)}tf(n_,"isParameter");var nP={$type:"ParameterReference",parameter:"parameter"};function nD(e){return ih.isInstance(e,nP.$type)}tf(nD,"isParameterReference");var nO={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function nL(e){return ih.isInstance(e,nO.$type)}tf(nL,"isParserRule");var nM={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"};function nj(e){return ih.isInstance(e,nM.$type)}tf(nj,"isReferenceType");var nF={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function nz(e){return ih.isInstance(e,nF.$type)}tf(nz,"isRegexToken");var nq={$type:"ReturnType",name:"name"};function nG(e){return ih.isInstance(e,nq.$type)}tf(nG,"isReturnType");var nU={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function nK(e){return ih.isInstance(e,nU.$type)}tf(nK,"isRuleCall");var nW={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function nB(e){return ih.isInstance(e,nW.$type)}tf(nB,"isSimpleType");var nV={$type:"StringLiteral",value:"value"};function nH(e){return ih.isInstance(e,nV.$type)}tf(nH,"isStringLiteral");var nY={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function nX(e){return ih.isInstance(e,nY.$type)}tf(nX,"isTerminalAlternatives");var nJ={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function nZ(e){return ih.isInstance(e,nJ.$type)}tf(nZ,"isTerminalElement");var nQ={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function n0(e){return ih.isInstance(e,nQ.$type)}tf(n0,"isTerminalGroup");var n1={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function n2(e){return ih.isInstance(e,n1.$type)}tf(n2,"isTerminalRule");var n3={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function n9(e){return ih.isInstance(e,n3.$type)}tf(n9,"isTerminalRuleCall");var n4={$type:"Type",name:"name",type:"type"};function n5(e){return ih.isInstance(e,n4.$type)}tf(n5,"isType");var n8={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"};function n7(e){return ih.isInstance(e,n8.$type)}tf(n7,"isTypeAttribute");var n6={$type:"TypeDefinition"};function ie(e){return ih.isInstance(e,n6.$type)}tf(ie,"isTypeDefinition");var it={$type:"UnionType",types:"types"};function ir(e){return ih.isInstance(e,it.$type)}tf(ir,"isUnionType");var ii={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function ia(e){return ih.isInstance(e,ii.$type)}tf(ia,"isUnorderedGroup");var is={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function io(e){return ih.isInstance(e,is.$type)}tf(io,"isUntilToken");var il={$type:"ValueLiteral"};function iu(e){return ih.isInstance(e,il.$type)}tf(iu,"isValueLiteral");var ic={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function ip(e){return ih.isInstance(e,ic.$type)}tf(ip,"isWildcard");var id=class extends ru{static{tf(this,"LangiumGrammarAstReflection")}constructor(){super(...arguments),this.types={AbstractElement:{name:rM.$type,properties:{cardinality:{name:rM.cardinality}},superTypes:[]},AbstractParserRule:{name:rF.$type,properties:{},superTypes:[rq.$type,rU.$type]},AbstractRule:{name:rq.$type,properties:{},superTypes:[]},AbstractType:{name:rU.$type,properties:{},superTypes:[]},Action:{name:rW.$type,properties:{cardinality:{name:rW.cardinality},feature:{name:rW.feature},inferredType:{name:rW.inferredType},operator:{name:rW.operator},type:{name:rW.type,referenceType:rU.$type}},superTypes:[rM.$type]},Alternatives:{name:rV.$type,properties:{cardinality:{name:rV.cardinality},elements:{name:rV.elements,defaultValue:[]}},superTypes:[rM.$type]},ArrayLiteral:{name:rY.$type,properties:{elements:{name:rY.elements,defaultValue:[]}},superTypes:[il.$type]},ArrayType:{name:rJ.$type,properties:{elementType:{name:rJ.elementType}},superTypes:[n6.$type]},Assignment:{name:rQ.$type,properties:{cardinality:{name:rQ.cardinality},feature:{name:rQ.feature},operator:{name:rQ.operator},predicate:{name:rQ.predicate},terminal:{name:rQ.terminal}},superTypes:[rM.$type]},BooleanLiteral:{name:r1.$type,properties:{true:{name:r1.true,defaultValue:!1}},superTypes:[r4.$type,il.$type]},CharacterRange:{name:r3.$type,properties:{cardinality:{name:r3.cardinality},left:{name:r3.left},lookahead:{name:r3.lookahead},parenthesized:{name:r3.parenthesized,defaultValue:!1},right:{name:r3.right}},superTypes:[nJ.$type]},Condition:{name:r4.$type,properties:{},superTypes:[]},Conjunction:{name:r8.$type,properties:{left:{name:r8.left},right:{name:r8.right}},superTypes:[r4.$type]},CrossReference:{name:r6.$type,properties:{cardinality:{name:r6.cardinality},deprecatedSyntax:{name:r6.deprecatedSyntax,defaultValue:!1},isMulti:{name:r6.isMulti,defaultValue:!1},terminal:{name:r6.terminal},type:{name:r6.type,referenceType:rU.$type}},superTypes:[rM.$type]},Disjunction:{name:nt.$type,properties:{left:{name:nt.left},right:{name:nt.right}},superTypes:[r4.$type]},EndOfFile:{name:nn.$type,properties:{cardinality:{name:nn.cardinality}},superTypes:[rM.$type]},Grammar:{name:na.$type,properties:{imports:{name:na.imports,defaultValue:[]},interfaces:{name:na.interfaces,defaultValue:[]},isDeclared:{name:na.isDeclared,defaultValue:!1},name:{name:na.name},rules:{name:na.rules,defaultValue:[]},types:{name:na.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:no.$type,properties:{path:{name:no.path}},superTypes:[]},Group:{name:nu.$type,properties:{cardinality:{name:nu.cardinality},elements:{name:nu.elements,defaultValue:[]},guardCondition:{name:nu.guardCondition},predicate:{name:nu.predicate}},superTypes:[rM.$type]},InferredType:{name:np.$type,properties:{name:{name:np.name}},superTypes:[rU.$type]},InfixRule:{name:nf.$type,properties:{call:{name:nf.call},dataType:{name:nf.dataType},inferredType:{name:nf.inferredType},name:{name:nf.name},operators:{name:nf.operators},parameters:{name:nf.parameters,defaultValue:[]},returnType:{name:nf.returnType,referenceType:rU.$type}},superTypes:[rF.$type]},InfixRuleOperatorList:{name:nm.$type,properties:{associativity:{name:nm.associativity},operators:{name:nm.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:ng.$type,properties:{precedences:{name:ng.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:nT.$type,properties:{attributes:{name:nT.attributes,defaultValue:[]},name:{name:nT.name},superTypes:{name:nT.superTypes,defaultValue:[],referenceType:rU.$type}},superTypes:[rU.$type]},Keyword:{name:n$.$type,properties:{cardinality:{name:n$.cardinality},predicate:{name:n$.predicate},value:{name:n$.value}},superTypes:[rM.$type]},NamedArgument:{name:nE.$type,properties:{calledByName:{name:nE.calledByName,defaultValue:!1},parameter:{name:nE.parameter,referenceType:nI.$type},value:{name:nE.value}},superTypes:[]},NegatedToken:{name:nA.$type,properties:{cardinality:{name:nA.cardinality},lookahead:{name:nA.lookahead},parenthesized:{name:nA.parenthesized,defaultValue:!1},terminal:{name:nA.terminal}},superTypes:[nJ.$type]},Negation:{name:nk.$type,properties:{value:{name:nk.value}},superTypes:[r4.$type]},NumberLiteral:{name:nN.$type,properties:{value:{name:nN.value}},superTypes:[il.$type]},Parameter:{name:nI.$type,properties:{name:{name:nI.name}},superTypes:[]},ParameterReference:{name:nP.$type,properties:{parameter:{name:nP.parameter,referenceType:nI.$type}},superTypes:[r4.$type]},ParserRule:{name:nO.$type,properties:{dataType:{name:nO.dataType},definition:{name:nO.definition},entry:{name:nO.entry,defaultValue:!1},fragment:{name:nO.fragment,defaultValue:!1},inferredType:{name:nO.inferredType},name:{name:nO.name},parameters:{name:nO.parameters,defaultValue:[]},returnType:{name:nO.returnType,referenceType:rU.$type}},superTypes:[rF.$type]},ReferenceType:{name:nM.$type,properties:{isMulti:{name:nM.isMulti,defaultValue:!1},referenceType:{name:nM.referenceType}},superTypes:[n6.$type]},RegexToken:{name:nF.$type,properties:{cardinality:{name:nF.cardinality},lookahead:{name:nF.lookahead},parenthesized:{name:nF.parenthesized,defaultValue:!1},regex:{name:nF.regex}},superTypes:[nJ.$type]},ReturnType:{name:nq.$type,properties:{name:{name:nq.name}},superTypes:[]},RuleCall:{name:nU.$type,properties:{arguments:{name:nU.arguments,defaultValue:[]},cardinality:{name:nU.cardinality},predicate:{name:nU.predicate},rule:{name:nU.rule,referenceType:rq.$type}},superTypes:[rM.$type]},SimpleType:{name:nW.$type,properties:{primitiveType:{name:nW.primitiveType},stringType:{name:nW.stringType},typeRef:{name:nW.typeRef,referenceType:rU.$type}},superTypes:[n6.$type]},StringLiteral:{name:nV.$type,properties:{value:{name:nV.value}},superTypes:[il.$type]},TerminalAlternatives:{name:nY.$type,properties:{cardinality:{name:nY.cardinality},elements:{name:nY.elements,defaultValue:[]},lookahead:{name:nY.lookahead},parenthesized:{name:nY.parenthesized,defaultValue:!1}},superTypes:[nJ.$type]},TerminalElement:{name:nJ.$type,properties:{cardinality:{name:nJ.cardinality},lookahead:{name:nJ.lookahead},parenthesized:{name:nJ.parenthesized,defaultValue:!1}},superTypes:[rM.$type]},TerminalGroup:{name:nQ.$type,properties:{cardinality:{name:nQ.cardinality},elements:{name:nQ.elements,defaultValue:[]},lookahead:{name:nQ.lookahead},parenthesized:{name:nQ.parenthesized,defaultValue:!1}},superTypes:[nJ.$type]},TerminalRule:{name:n1.$type,properties:{definition:{name:n1.definition},fragment:{name:n1.fragment,defaultValue:!1},hidden:{name:n1.hidden,defaultValue:!1},name:{name:n1.name},type:{name:n1.type}},superTypes:[rq.$type]},TerminalRuleCall:{name:n3.$type,properties:{cardinality:{name:n3.cardinality},lookahead:{name:n3.lookahead},parenthesized:{name:n3.parenthesized,defaultValue:!1},rule:{name:n3.rule,referenceType:n1.$type}},superTypes:[nJ.$type]},Type:{name:n4.$type,properties:{name:{name:n4.name},type:{name:n4.type}},superTypes:[rU.$type]},TypeAttribute:{name:n8.$type,properties:{defaultValue:{name:n8.defaultValue},isOptional:{name:n8.isOptional,defaultValue:!1},name:{name:n8.name},type:{name:n8.type}},superTypes:[]},TypeDefinition:{name:n6.$type,properties:{},superTypes:[]},UnionType:{name:it.$type,properties:{types:{name:it.types,defaultValue:[]}},superTypes:[n6.$type]},UnorderedGroup:{name:ii.$type,properties:{cardinality:{name:ii.cardinality},elements:{name:ii.elements,defaultValue:[]}},superTypes:[rM.$type]},UntilToken:{name:is.$type,properties:{cardinality:{name:is.cardinality},lookahead:{name:is.lookahead},parenthesized:{name:is.parenthesized,defaultValue:!1},terminal:{name:is.terminal}},superTypes:[nJ.$type]},ValueLiteral:{name:il.$type,properties:{},superTypes:[]},Wildcard:{name:ic.$type,properties:{cardinality:{name:ic.cardinality},lookahead:{name:ic.lookahead},parenthesized:{name:ic.parenthesized,defaultValue:!1}},superTypes:[nJ.$type]}}}},ih=new id;function im(e){let t=e,r=!1;for(;t;){let e=rb(t.grammarSource,nL);if(e&&e.dataType)t=t.container,r=!0;else if(r)return t;else break}}function iy(e){return new rT(e,e=>rc(e)?e.content:[],{includeRoot:!0})}function ig(e){return iy(e).filter(rp)}function iv(e,t){for(;e.container;)if((e=e.container)===t)return!0;return!1}function iT(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function iR(e){if(!e)return;let{offset:t,end:r,range:n}=e;return{range:n,offset:t,end:r,length:r-t}}function i$(e,t){if(e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<=t.start.character)return eO.Before;if(e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return eO.After;let r=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,n=e.end.line<t.end.line||e.end.line===t.end.line&&e.end.character<=t.end.character;return r&&n?eO.Inside:r?eO.OverlapBack:n?eO.OverlapFront:eO.Outside}function ib(e,t){return i$(e,t)>eO.After}tf(im,"getDatatypeNode"),tf(iy,"streamCst"),tf(ig,"flattenCst"),tf(iv,"isChildNode"),tf(iT,"tokenToRange"),tf(iR,"toDocumentSegment"),function(e){e[e.Before=0]="Before",e[e.After=1]="After",e[e.OverlapFront=2]="OverlapFront",e[e.OverlapBack=3]="OverlapBack",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside"}(eO||(eO={})),tf(i$,"compareRange"),tf(ib,"inRange");var iE=/^[\w\p{L}]$/u;function iC(e,t,r=iE){if(e){if(t>0){let n=t-e.offset,i=e.text.charAt(n);!r.test(i)&&t--}return ik(e,t)}}function iA(e,t){if(e){let r=iw(e,!0);if(r&&iS(r,t))return r;if(rd(e)){let r=e.content.findIndex(e=>!e.hidden);for(let n=r-1;n>=0;n--){let r=e.content[n];if(iS(r,t))return r}}}}function iS(e,t){return rp(e)&&t.includes(e.tokenType.name)}function ik(e,t){if(rp(e))return e;if(rc(e)){let r=iN(e,t,!1);if(r)return ik(r,t)}}function ix(e,t){if(rp(e))return e;if(rc(e)){let r=iN(e,t,!0);if(r)return ix(r,t)}}function iN(e,t,r){let n,i=0,a=e.content.length-1;for(;i<=a;){let s=Math.floor((i+a)/2),o=e.content[s];if(o.offset<=t&&o.end>t)return o;o.end<=t?(n=r?o:void 0,i=s+1):a=s-1}return n}function iw(e,t=!0){for(;e.container;){let r=e.container,n=r.content.indexOf(e);for(;n>0;){n--;let e=r.content[n];if(t||!e.hidden)return e}e=r}}function iI(e,t=!0){for(;e.container;){let r=e.container,n=r.content.indexOf(e),i=r.content.length-1;for(;n<i;){n++;let e=r.content[n];if(t||!e.hidden)return e}e=r}}function i_(e){let t;if(0===e.range.start.character)return e;let r=e.range.start.line,n=e;for(;e.container;){let i=e.container,a=t??i.content.indexOf(e);if(0===a?(e=i,t=void 0):(t=a-1,e=i.content[t]),e.range.start.line!==r)break;n=e}return n}function iP(e,t){let r=iD(e,t);return r?r.parent.content.slice(r.a+1,r.b):[]}function iD(e,t){let r,n=iO(e),i=iO(t);for(let e=0;e<n.length&&e<i.length;e++){let t=n[e],a=i[e];if(t.parent===a.parent)r={parent:t.parent,a:t.index,b:a.index};else break}return r}function iO(e){let t=[];for(;e.container;){let r=e.container,n=r.content.indexOf(e);t.push({parent:r,index:n}),e=r}return t.reverse()}tf(iC,"findDeclarationNodeAtOffset"),tf(iA,"findCommentNode"),tf(iS,"isCommentNode"),tf(ik,"findLeafNodeAtOffset"),tf(ix,"findLeafNodeBeforeOffset"),tf(iN,"binarySearch"),tf(iw,"getPreviousNode"),tf(iI,"getNextNode"),tf(i_,"getStartlineNode"),tf(iP,"getInteriorNodes"),tf(iD,"getCommonParent"),tf(iO,"getParentChain");var iL={};tm(iL,{findAssignment:()=>ah,findNameAssignment:()=>am,findNodeForKeyword:()=>ad,findNodeForProperty:()=>au,findNodesForKeyword:()=>ap,findNodesForKeywordInternal:()=>af,findNodesForProperty:()=>al,getActionAtElement:()=>ag,getActionType:()=>ak,getAllReachableRules:()=>an,getAllRulesUsedForCrossReferences:()=>aa,getCrossReferenceTerminal:()=>as,getEntryRule:()=>at,getExplicitRuleType:()=>aA,getHiddenRules:()=>ar,getRuleType:()=>aN,getRuleTypeName:()=>ax,getTypeName:()=>aS,isArrayCardinality:()=>aT,isArrayOperator:()=>aR,isCommentTerminal:()=>ao,isDataType:()=>aE,isDataTypeRule:()=>a$,isOptionalCardinality:()=>av,terminalRegex:()=>aw});var iM=class extends Error{static{tf(this,"ErrorWithLocation")}constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}};function ij(e,t="Error: Got unexpected value."){throw Error(t)}function iF(e,t="Error: Condition is violated."){if(!e)throw Error(t)}tf(ij,"assertUnreachable"),tf(iF,"assertCondition");var iz={};function iq(e){return e.charCodeAt(0)}function iG(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function iU(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t],e[t]=!0}function iK(e){if(void 0===e)throw Error("Internal Error - Should never get here!");return!0}function iW(){throw Error("Internal Error - Should never get here!")}function iB(e){return"Character"===e.type}tm(iz,{NEWLINE_REGEXP:()=>i1,escapeRegExp:()=>i7,getTerminalParts:()=>i9,isMultilineComment:()=>i4,isWhitespace:()=>i8,partialMatches:()=>i6,partialRegExp:()=>ae,whitespaceCharacters:()=>i5}),tf(iq,"cc"),tf(iG,"insertToSet"),tf(iU,"addFlag"),tf(iK,"ASSERT_EXISTS"),tf(iW,"ASSERT_NEVER_REACH_HERE"),tf(iB,"isCharacter");var iV=[];for(let e=iq("0");e<=iq("9");e++)iV.push(e);var iH=[iq("_")].concat(iV);for(let e=iq("a");e<=iq("z");e++)iH.push(e);for(let e=iq("A");e<=iq("Z");e++)iH.push(e);var iY=[iq(" "),iq("\f"),iq("\n"),iq("\r"),iq(" "),iq("\v"),iq(" "),iq("\xa0"),iq(" "),iq(" "),iq(" "),iq(" "),iq(" "),iq(" "),iq(" "),iq(" "),iq(" "),iq(" "),iq(" "),iq(" "),iq("\u2028"),iq("\u2029"),iq(" "),iq(" "),iq(" "),iq("\uFEFF")],iX=/[0-9a-fA-F]/,iJ=/[0-9]/,iZ=/[1-9]/,iQ=class{static{tf(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let t=this.disjunction();this.consumeChar("/");let r={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":iU(r,"global");break;case"i":iU(r,"ignoreCase");break;case"m":iU(r,"multiLine");break;case"u":iU(r,"unicode");break;case"y":iU(r,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":let t;switch(this.consumeChar("?"),this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}}iK(t);let r=this.disjunction();return this.consumeChar(")"),{type:t,value:r,loc:this.loc(e)}}return iW()}quantifier(e=!1){let t,r=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":let n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":t=this.isDigit()?{atLeast:n,atMost:this.integerIncludingZero()}:{atLeast:n,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;iK(t)}if((!0!==e||void 0!==t)&&iK(t))return"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(r),t}atom(){let e,t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return(void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),iK(e))?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):iW()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[iq("\n"),iq("\r"),iq("\u2028"),iq("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=iV;break;case"D":e=iV,t=!0;break;case"s":e=iY;break;case"S":e=iY,t=!0;break;case"w":e=iH;break;case"W":e=iH,t=!0}return iK(e)?{type:"Set",value:e,complement:t}:iW()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=iq("\f");break;case"n":e=iq("\n");break;case"r":e=iq("\r");break;case"t":e=iq(" ");break;case"v":e=iq("\v")}return iK(e)?{type:"Character",value:e}:iW()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:iq("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:iq(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:iq(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){let t=this.classAtom();if(t.type,iB(t)&&this.isRangeDash()){this.consumeChar("-");let r=this.classAtom();if(r.type,iB(r)){if(r.value<t.value)throw Error("Range out of order in character class");e.push({from:t.value,to:r.value})}else iG(t.value,e),e.push(iq("-")),iG(r.value,e)}else iG(t.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}}classAtom(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:iq("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let e=!0;this.consumeChar("("),"?"===this.peekChar(0)?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;let t=this.disjunction();this.consumeChar(")");let r={type:"Group",capturing:e,value:t};return e&&(r.idx=this.groupIdx),r}positiveInteger(){let e=this.popChar();if(!1===iZ.test(e))throw Error("Expecting a positive integer");for(;iJ.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(!1===iJ.test(e))throw Error("Expecting an integer");for(;iJ.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){let e=this.popChar();switch(e){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:iq(e)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return"-"===this.peekChar()&&this.isClassAtom(1)}isDigit(){return iJ.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2)||"<"===this.peekChar(2)&&("="===this.peekChar(3)||"!"===this.peekChar(3)));default:return!1}}isQuantifier(){let e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(e){return!1}finally{this.restoreState(e)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(e){let t="";for(let r=0;r<e;r++){let e=this.popChar();if(!1===iX.test(e))throw Error("Expecting a HexDecimal digits");t+=e}return{type:"Character",value:parseInt(t,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){let e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}},i0=class{static{tf(this,"BaseRegExpVisitor")}visitChildren(e){for(let t in e){let r=e[t];e.hasOwnProperty(t)&&(void 0!==r.type?this.visit(r):Array.isArray(r)&&r.forEach(e=>{this.visit(e)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},i1=/\r?\n/gm,i2=new iQ,i3=new class extends i0{static{tf(this,"TerminalRegExpVisitor")}constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){let t=String.fromCharCode(e.value);if(this.multiline||"\n"!==t||(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let e=i7(t);this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e)}}visitSet(e){if(!this.multiline){let t=new RegExp(this.regex.substring(e.loc.begin,e.loc.end));this.multiline=!!"\n".match(t)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){"Group"===e.type&&e.quantifier||super.visitChildren(e)}};function i9(e){try{"string"!=typeof e&&(e=e.source),e=`/${e}/`;let t=i2.pattern(e),r=[];for(let n of t.value.value)i3.reset(e),i3.visit(n),r.push({start:i3.startRegexp,end:i3.endRegex});return r}catch{return[]}}function i4(e){try{return"string"==typeof e&&(e=new RegExp(e)),e=e.toString(),i3.reset(e),i3.visit(i2.pattern(e)),i3.multiline}catch{return!1}}tf(i9,"getTerminalParts"),tf(i4,"isMultilineComment");var i5="\f\n\r \v \xa0 \u2028\u2029 \uFEFF".split("");function i8(e){let t="string"==typeof e?new RegExp(e):e;return i5.some(e=>t.test(e))}function i7(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function i6(e,t){let r=ae(e),n=t.match(r);return!!n&&n[0].length>0}function ae(e){"string"==typeof e&&(e=new RegExp(e));let t=e,r=e.source,n=0;function i(){let e="",a;function s(t){e+=r.substr(n,t),n+=t}function o(t){e+="(?:"+r.substr(n,t)+"|$)",n+=t}for(tf(s,"appendRaw"),tf(o,"appendOptional");n<r.length;)switch(r[n]){case"\\":switch(r[n+1]){case"c":o(3);break;case"x":o(4);break;case"u":o(t.unicode?"{"===r[n+2]?r.indexOf("}",n)-n+1:6:2);break;case"p":case"P":o(t.unicode?r.indexOf("}",n)-n+1:2);break;case"k":o(r.indexOf(">",n)-n+1);break;default:o(2)}break;case"[":(a=/\[(?:\\.|.)*?\]/g).lastIndex=n,o((a=a.exec(r)||[])[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":s(1);break;case"{":(a=/\{\d+,?\d*\}/g).lastIndex=n,(a=a.exec(r))?s(a[0].length):o(1);break;case"(":if("?"===r[n+1])switch(r[n+2]){case":":e+="(?:",n+=3,e+=i()+"|$)";break;case"=":e+="(?=",n+=3,e+=i()+")";break;case"!":a=n,n+=3,i(),e+=r.substr(a,n-a);break;case"<":switch(r[n+3]){case"=":case"!":a=n,n+=4,i(),e+=r.substr(a,n-a);break;default:s(r.indexOf(">",n)-n+1),e+=i()+"|$)"}}else s(1),e+=i()+"|$)";break;case")":return++n,e;default:o(1)}return e}return tf(i,"process"),new RegExp(i(),e.flags)}function at(e){return e.rules.find(e=>nL(e)&&e.entry)}function ar(e){return e.rules.filter(e=>n2(e)&&e.hidden)}function an(e,t){let r=new Set,n=at(e);if(!n)return new Set(e.rules);for(let i of[n].concat(ar(e)))ai(i,r,t);let i=new Set;for(let t of e.rules)(r.has(t.name)||n2(t)&&t.hidden)&&i.add(t);return i}function ai(e,t,r){t.add(e.name),rx(e).forEach(e=>{if(nK(e)||r&&n9(e)){let n=e.rule.ref;n&&!t.has(n.name)&&ai(n,t,r)}})}function aa(e){let t=new Set;return rx(e).forEach(e=>{ne(e)&&(nL(e.type.ref)&&t.add(e.type.ref),nd(e.type.ref)&&nL(e.type.ref.$container)&&t.add(e.type.ref.$container))}),t}function as(e){if(e.terminal)return e.terminal;if(e.type.ref){let t=am(e.type.ref);return t?.terminal}}function ao(e){return e.hidden&&!i8(aw(e))}function al(e,t){return e&&t?ac(e,t,e.astNode,!0):[]}function au(e,t,r){if(!e||!t)return;let n=ac(e,t,e.astNode,!0);if(0!==n.length)return r=void 0!==r?Math.max(0,Math.min(r,n.length-1)):0,n[r]}function ac(e,t,r,n){if(!n){let r=rb(e.grammarSource,r0);if(r&&r.feature===t)return[e]}return rc(e)&&e.astNode===r?e.content.flatMap(e=>ac(e,t,r,!1)):[]}function ap(e,t){return e?af(e,t,e?.astNode):[]}function ad(e,t,r){if(!e)return;let n=af(e,t,e?.astNode);if(0!==n.length)return r=void 0!==r?Math.max(0,Math.min(r,n.length-1)):0,n[r]}function af(e,t,r){let n;if(e.astNode!==r)return[];if(nb(e.grammarSource)&&e.grammarSource.value===t)return[e];let i=iy(e).iterator(),a=[];do if(!(n=i.next()).done){let e=n.value;e.astNode===r?nb(e.grammarSource)&&e.grammarSource.value===t&&a.push(e):i.prune()}while(!n.done);return a}function ah(e){let t=e.astNode;for(;t===e.container?.astNode;){let t=rb(e.grammarSource,r0);if(t)return t;e=e.container}}function am(e){let t=e;return nd(t)&&(rB(t.$container)?t=t.$container.$container:rz(t.$container)?t=t.$container:ij(t.$container)),ay(e,t,new Map)}function ay(e,t,r){function n(t,n){let i;return rb(t,r0)||(i=ay(n,n,r)),r.set(e,i),i}if(tf(n,"go"),r.has(e))return r.get(e);for(let i of(r.set(e,void 0),rx(t)))if(r0(i)&&"name"===i.feature.toLowerCase())return r.set(e,i),i;else if(nK(i)&&nL(i.rule.ref))return n(i,i.rule.ref);else if(nB(i)&&i.typeRef?.ref)return n(i,i.typeRef.ref)}function ag(e){let t=e.$container;if(nc(t)){let r=t.elements,n=r.indexOf(e);for(let e=n-1;e>=0;e--){let t=r[e];if(rB(t))return t;{let t=rx(r[e]).find(rB);if(t)return t}}}return rj(t)?ag(t):void 0}function av(e,t){return"?"===e||"*"===e||nc(t)&&!!t.guardCondition}function aT(e){return"*"===e||"+"===e}function aR(e){return"+="===e}function a$(e){return ab(e,new Set)}function ab(e,t){if(t.has(e))return!0;for(let r of(t.add(e),rx(e)))if(nK(r)){if(!r.rule.ref||nL(r.rule.ref)&&!ab(r.rule.ref,t)||nh(r.rule.ref))return!1}else if(r0(r))return!1;else if(rB(r))return!1;return!!e.definition}function aE(e){return aC(e.type,new Set)}function aC(e,t){if(t.has(e))return!0;if(t.add(e),rZ(e)||nj(e))return!1;if(ir(e))return e.types.every(e=>aC(e,t));{if(!nB(e))return!1;if(void 0!==e.primitiveType||void 0!==e.stringType)return!0;if(void 0===e.typeRef)return!1;let r=e.typeRef.ref;return!!n5(r)&&aC(r.type,t)}}function aA(e){if(!n2(e)){if(e.inferredType)return e.inferredType.name;else if(e.dataType)return e.dataType;else if(e.returnType){let t=e.returnType.ref;if(t)return t.name}}}function aS(e){if(rz(e))return nL(e)&&a$(e)?e.name:aA(e)??e.name;if(nR(e)||n5(e)||nG(e))return e.name;if(rB(e)){let t=ak(e);if(t)return t}else if(nd(e))return e.name;throw Error("Cannot get name of Unknown Type")}function ak(e){return e.inferredType?e.inferredType.name:e.type?.ref?aS(e.type.ref):void 0}function ax(e){return n2(e)?e.type?.name??"string":nL(e)&&a$(e)?e.name:aA(e)??e.name}function aN(e){return n2(e)?e.type?.name??"string":aA(e)??e.name}function aw(e){let t={s:!1,i:!1,u:!1};return new RegExp(a_(e.definition,t),Object.entries(t).filter(([,e])=>e).map(([e])=>e).join(""))}tf(i8,"isWhitespace"),tf(i7,"escapeRegExp"),tf(i6,"partialMatches"),tf(ae,"partialRegExp"),tf(at,"getEntryRule"),tf(ar,"getHiddenRules"),tf(an,"getAllReachableRules"),tf(ai,"ruleDfs"),tf(aa,"getAllRulesUsedForCrossReferences"),tf(as,"getCrossReferenceTerminal"),tf(ao,"isCommentTerminal"),tf(al,"findNodesForProperty"),tf(au,"findNodeForProperty"),tf(ac,"findNodesForPropertyInternal"),tf(ap,"findNodesForKeyword"),tf(ad,"findNodeForKeyword"),tf(af,"findNodesForKeywordInternal"),tf(ah,"findAssignment"),tf(am,"findNameAssignment"),tf(ay,"findNameAssignmentInternal"),tf(ag,"getActionAtElement"),tf(av,"isOptionalCardinality"),tf(aT,"isArrayCardinality"),tf(aR,"isArrayOperator"),tf(a$,"isDataTypeRule"),tf(ab,"isDataTypeRuleInternal"),tf(aE,"isDataType"),tf(aC,"isDataTypeInternal"),tf(aA,"getExplicitRuleType"),tf(aS,"getTypeName"),tf(ak,"getActionType"),tf(ax,"getRuleTypeName"),tf(aN,"getRuleType"),tf(aw,"terminalRegex");var aI=/[\s\S]/.source;function a_(e,t){if(nX(e))return aP(e);if(n0(e))return aD(e);if(r9(e))return aM(e);if(n9(e)){let t=e.rule.ref;if(!t)throw Error("Missing rule reference.");return aF(a_(t.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}if(nS(e))return aL(e);else if(io(e))return aO(e);else if(nz(e)){let r=e.regex.lastIndexOf("/"),n=e.regex.substring(1,r),i=e.regex.substring(r+1);return t&&(t.i=i.includes("i"),t.s=i.includes("s"),t.u=i.includes("u")),aF(n,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}else if(ip(e))return aF(aI,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});else throw Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}function aP(e){return aF(e.elements.map(e=>a_(e)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function aD(e){return aF(e.elements.map(e=>a_(e)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function aO(e){return aF(`${aI}*?${a_(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function aL(e){return aF(`(?!${a_(e.terminal)})${aI}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function aM(e){return e.right?aF(`[${aj(e.left)}-${aj(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):aF(aj(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function aj(e){return i7(e.value)}function aF(e,t){if(t.parenthesized||t.lookahead||!1!==t.wrap){let r=t.lookahead??(t.parenthesized?"":"?:");e=`(${r}${e})`}return t.cardinality?`${e}${t.cardinality}`:e}function az(e){let t=[];for(let r of e.Grammar.rules)n2(r)&&ao(r)&&i4(aw(r))&&t.push(r.name);return{multilineCommentRules:t,nameRegexp:iE}}tf(a_,"abstractElementToRegex"),tf(aP,"terminalAlternativesToRegex"),tf(aD,"terminalGroupToRegex"),tf(aO,"untilTokenToRegex"),tf(aL,"negateTokenToRegex"),tf(aM,"characterRangeToRegex"),tf(aj,"keywordToRegex"),tf(aF,"withCardinality"),tf(az,"createGrammarConfig");var aq="object"==typeof global&&global&&global.Object===Object&&global,aG="object"==typeof self&&self&&self.Object===Object&&self,aU=aq||aG||Function("return this")(),aK=aU.Symbol,aW=Object.prototype,aB=aW.hasOwnProperty,aV=aW.toString,aH=aK?aK.toStringTag:void 0;function aY(e){var t=aB.call(e,aH),r=e[aH];try{e[aH]=void 0;var n=!0}catch(e){}var i=aV.call(e);return n&&(t?e[aH]=r:delete e[aH]),i}tf(aY,"getRawTag");var aX=Object.prototype.toString;function aJ(e){return aX.call(e)}tf(aJ,"objectToString");var aZ=aK?aK.toStringTag:void 0;function aQ(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":aZ&&aZ in Object(e)?aY(e):aJ(e)}function a0(e){return null!=e&&"object"==typeof e}function a1(e){return"symbol"==typeof e||a0(e)&&"[object Symbol]"==aQ(e)}function a2(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}tf(aQ,"baseGetTag"),tf(a0,"isObjectLike"),tf(a1,"isSymbol"),tf(a2,"arrayMap");var a3=Array.isArray,a9=1/0,a4=aK?aK.prototype:void 0,a5=a4?a4.toString:void 0;function a8(e){if("string"==typeof e)return e;if(a3(e))return a2(e,a8)+"";if(a1(e))return a5?a5.call(e):"";var t=e+"";return"0"==t&&1/e==-a9?"-0":t}tf(a8,"baseToString");var a7=/\s/;function a6(e){for(var t=e.length;t--&&a7.test(e.charAt(t)););return t}tf(a6,"trimmedEndIndex");var se=/^\s+/;function st(e){return e?e.slice(0,a6(e)+1).replace(se,""):e}function sr(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}tf(st,"baseTrim"),tf(sr,"isObject");var sn=0/0,si=/^[-+]0x[0-9a-f]+$/i,sa=/^0b[01]+$/i,ss=/^0o[0-7]+$/i,so=parseInt;function sl(e){if("number"==typeof e)return e;if(a1(e))return sn;if(sr(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=sr(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=st(e);var r=sa.test(e);return r||ss.test(e)?so(e.slice(2),r?2:8):si.test(e)?sn:+e}tf(sl,"toNumber");var su=1/0;function sc(e){return e?(e=sl(e))===su||e===-su?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}function sp(e){var t=sc(e),r=t%1;return t==t?r?t-r:t:0}function sd(e){return e}function sf(e){if(!sr(e))return!1;var t=aQ(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}tf(sc,"toFinite"),tf(sp,"toInteger"),tf(sd,"identity"),tf(sf,"isFunction");var sh=aU["__core-js_shared__"],sm=function(){var e=/[^.]+$/.exec(sh&&sh.keys&&sh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sy(e){return!!sm&&sm in e}tf(sy,"isMasked");var sg=Function.prototype.toString;function sv(e){if(null!=e){try{return sg.call(e)}catch(e){}try{return e+""}catch(e){}}return""}tf(sv,"toSource");var sT=/^\[object .+?Constructor\]$/,sR=Object.prototype,s$=Function.prototype.toString,sb=sR.hasOwnProperty,sE=RegExp("^"+s$.call(sb).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sC(e){return!(!sr(e)||sy(e))&&(sf(e)?sE:sT).test(sv(e))}function sA(e,t){return null==e?void 0:e[t]}function sS(e,t){var r=sA(e,t);return sC(r)?r:void 0}tf(sC,"baseIsNative"),tf(sA,"getValue"),tf(sS,"getNative");var sk=sS(aU,"WeakMap"),sx=Object.create,sN=function(){function e(){}return tf(e,"object"),function(t){if(!sr(t))return{};if(sx)return sx(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function sw(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function sI(){}function s_(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}tf(sw,"apply"),tf(sI,"noop"),tf(s_,"copyArray");var sP=Date.now;function sD(e){var t=0,r=0;return function(){var n=sP(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function sO(e){return function(){return e}}tf(sD,"shortOut"),tf(sO,"constant");var sL=function(){try{var e=sS(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),sM=sD(sL?function(e,t){return sL(e,"toString",{configurable:!0,enumerable:!1,value:sO(t),writable:!0})}:sd);function sj(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function sF(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return -1}function sz(e){return e!=e}function sq(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}function sG(e,t,r){return t==t?sq(e,t,r):sF(e,sz,r)}function sU(e,t){return!!(null==e?0:e.length)&&sG(e,t,0)>-1}tf(sj,"arrayEach"),tf(sF,"baseFindIndex"),tf(sz,"baseIsNaN"),tf(sq,"strictIndexOf"),tf(sG,"baseIndexOf"),tf(sU,"arrayIncludes");var sK=/^(?:0|[1-9]\d*)$/;function sW(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&sK.test(e))&&e>-1&&e%1==0&&e<t}function sB(e,t,r){"__proto__"==t&&sL?sL(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function sV(e,t){return e===t||e!=e&&t!=t}tf(sW,"isIndex"),tf(sB,"baseAssignValue"),tf(sV,"eq");var sH=Object.prototype.hasOwnProperty;function sY(e,t,r){var n=e[t];sH.call(e,t)&&sV(n,r)&&(void 0!==r||t in e)||sB(e,t,r)}function sX(e,t,r,n){var i=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var o=t[a],l=n?n(r[o],e[o],o,r,e):void 0;void 0===l&&(l=e[o]),i?sB(r,o,l):sY(r,o,l)}return r}tf(sY,"assignValue"),tf(sX,"copyObject");var sJ=Math.max;function sZ(e,t,r){return t=sJ(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=sJ(n.length-t,0),s=Array(a);++i<a;)s[i]=n[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=n[i];return o[t]=r(s),sw(e,this,o)}}function sQ(e,t){return sM(sZ(e,t,sd),e+"")}function s0(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function s1(e){return null!=e&&s0(e.length)&&!sf(e)}function s2(e,t,r){if(!sr(r))return!1;var n=typeof t;return("number"==n?!!(s1(r)&&sW(t,r.length)):"string"==n&&t in r)&&sV(r[t],e)}function s3(e){return sQ(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&s2(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var o=r[n];o&&e(t,o,n,a)}return t})}tf(sZ,"overRest"),tf(sQ,"baseRest"),tf(s0,"isLength"),tf(s1,"isArrayLike"),tf(s2,"isIterateeCall"),tf(s3,"createAssigner");var s9=Object.prototype;function s4(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||s9)}function s5(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function s8(e){return a0(e)&&"[object Arguments]"==aQ(e)}tf(s4,"isPrototype"),tf(s5,"baseTimes"),tf(s8,"baseIsArguments");var s7=Object.prototype,s6=s7.hasOwnProperty,oe=s7.propertyIsEnumerable,ot=s8(function(){return arguments}())?s8:function(e){return a0(e)&&s6.call(e,"callee")&&!oe.call(e,"callee")};function or(){return!1}tf(or,"stubFalse");var on="object"==typeof exports&&exports&&!exports.nodeType&&exports,oi=on&&"object"==typeof module&&module&&!module.nodeType&&module,oa=oi&&oi.exports===on?aU.Buffer:void 0,os=(oa?oa.isBuffer:void 0)||or,oo={};function ol(e){return a0(e)&&s0(e.length)&&!!oo[aQ(e)]}function ou(e){return function(t){return e(t)}}oo["[object Float32Array]"]=oo["[object Float64Array]"]=oo["[object Int8Array]"]=oo["[object Int16Array]"]=oo["[object Int32Array]"]=oo["[object Uint8Array]"]=oo["[object Uint8ClampedArray]"]=oo["[object Uint16Array]"]=oo["[object Uint32Array]"]=!0,oo["[object Arguments]"]=oo["[object Array]"]=oo["[object ArrayBuffer]"]=oo["[object Boolean]"]=oo["[object DataView]"]=oo["[object Date]"]=oo["[object Error]"]=oo["[object Function]"]=oo["[object Map]"]=oo["[object Number]"]=oo["[object Object]"]=oo["[object RegExp]"]=oo["[object Set]"]=oo["[object String]"]=oo["[object WeakMap]"]=!1,tf(ol,"baseIsTypedArray"),tf(ou,"baseUnary");var oc="object"==typeof exports&&exports&&!exports.nodeType&&exports,op=oc&&"object"==typeof module&&module&&!module.nodeType&&module,od=op&&op.exports===oc&&aq.process,of=function(){try{var e=op&&op.require&&op.require("util").types;if(e)return e;return od&&od.binding&&od.binding("util")}catch(e){}}(),oh=of&&of.isTypedArray,om=oh?ou(oh):ol,oy=Object.prototype.hasOwnProperty;function og(e,t){var r=a3(e),n=!r&&ot(e),i=!r&&!n&&os(e),a=!r&&!n&&!i&&om(e),s=r||n||i||a,o=s?s5(e.length,String):[],l=o.length;for(var u in e)(t||oy.call(e,u))&&!(s&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||sW(u,l)))&&o.push(u);return o}function ov(e,t){return function(r){return e(t(r))}}tf(og,"arrayLikeKeys"),tf(ov,"overArg");var oT=ov(Object.keys,Object),oR=Object.prototype.hasOwnProperty;function o$(e){if(!s4(e))return oT(e);var t=[];for(var r in Object(e))oR.call(e,r)&&"constructor"!=r&&t.push(r);return t}function ob(e){return s1(e)?og(e):o$(e)}tf(o$,"baseKeys"),tf(ob,"keys");var oE=Object.prototype.hasOwnProperty,oC=s3(function(e,t){if(s4(t)||s1(t))return void sX(t,ob(t),e);for(var r in t)oE.call(t,r)&&sY(e,r,t[r])});function oA(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}tf(oA,"nativeKeysIn");var oS=Object.prototype.hasOwnProperty;function ok(e){if(!sr(e))return oA(e);var t=s4(e),r=[];for(var n in e)"constructor"==n&&(t||!oS.call(e,n))||r.push(n);return r}function ox(e){return s1(e)?og(e,!0):ok(e)}tf(ok,"baseKeysIn"),tf(ox,"keysIn");var oN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ow=/^\w*$/;function oI(e,t){if(a3(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||a1(e))||ow.test(e)||!oN.test(e)||null!=t&&e in Object(t)}tf(oI,"isKey");var o_=sS(Object,"create");function oP(){this.__data__=o_?o_(null):{},this.size=0}function oD(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}tf(oP,"hashClear"),tf(oD,"hashDelete");var oO=Object.prototype.hasOwnProperty;function oL(e){var t=this.__data__;if(o_){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return oO.call(t,e)?t[e]:void 0}tf(oL,"hashGet");var oM=Object.prototype.hasOwnProperty;function oj(e){var t=this.__data__;return o_?void 0!==t[e]:oM.call(t,e)}function oF(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=o_&&void 0===t?"__lodash_hash_undefined__":t,this}function oz(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function oq(){this.__data__=[],this.size=0}function oG(e,t){for(var r=e.length;r--;)if(sV(e[r][0],t))return r;return -1}tf(oj,"hashHas"),tf(oF,"hashSet"),tf(oz,"Hash"),oz.prototype.clear=oP,oz.prototype.delete=oD,oz.prototype.get=oL,oz.prototype.has=oj,oz.prototype.set=oF,tf(oq,"listCacheClear"),tf(oG,"assocIndexOf");var oU=Array.prototype.splice;function oK(e){var t=this.__data__,r=oG(t,e);return!(r<0)&&(r==t.length-1?t.pop():oU.call(t,r,1),--this.size,!0)}function oW(e){var t=this.__data__,r=oG(t,e);return r<0?void 0:t[r][1]}function oB(e){return oG(this.__data__,e)>-1}function oV(e,t){var r=this.__data__,n=oG(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function oH(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}tf(oK,"listCacheDelete"),tf(oW,"listCacheGet"),tf(oB,"listCacheHas"),tf(oV,"listCacheSet"),tf(oH,"ListCache"),oH.prototype.clear=oq,oH.prototype.delete=oK,oH.prototype.get=oW,oH.prototype.has=oB,oH.prototype.set=oV;var oY=sS(aU,"Map");function oX(){this.size=0,this.__data__={hash:new oz,map:new(oY||oH),string:new oz}}function oJ(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function oZ(e,t){var r=e.__data__;return oJ(t)?r["string"==typeof t?"string":"hash"]:r.map}function oQ(e){var t=oZ(this,e).delete(e);return this.size-=!!t,t}function o0(e){return oZ(this,e).get(e)}function o1(e){return oZ(this,e).has(e)}function o2(e,t){var r=oZ(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this}function o3(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function o9(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=tf(function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,n);return r.cache=a.set(i,s)||a,s},"memoized");return r.cache=new(o9.Cache||o3),r}function o4(e){var t=o9(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}tf(oX,"mapCacheClear"),tf(oJ,"isKeyable"),tf(oZ,"getMapData"),tf(oQ,"mapCacheDelete"),tf(o0,"mapCacheGet"),tf(o1,"mapCacheHas"),tf(o2,"mapCacheSet"),tf(o3,"MapCache"),o3.prototype.clear=oX,o3.prototype.delete=oQ,o3.prototype.get=o0,o3.prototype.has=o1,o3.prototype.set=o2,tf(o9,"memoize"),o9.Cache=o3,tf(o4,"memoizeCapped");var o5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o8=/\\(\\)?/g,o7=o4(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o5,function(e,r,n,i){t.push(n?i.replace(o8,"$1"):r||e)}),t});function o6(e){return null==e?"":a8(e)}function le(e,t){return a3(e)?e:oI(e,t)?[e]:o7(o6(e))}tf(o6,"toString"),tf(le,"castPath");var lt=1/0;function lr(e){if("string"==typeof e||a1(e))return e;var t=e+"";return"0"==t&&1/e==-lt?"-0":t}function ln(e,t){t=le(t,e);for(var r=0,n=t.length;null!=e&&r<n;)e=e[lr(t[r++])];return r&&r==n?e:void 0}function li(e,t,r){var n=null==e?void 0:ln(e,t);return void 0===n?r:n}function la(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}tf(lr,"toKey"),tf(ln,"baseGet"),tf(li,"get"),tf(la,"arrayPush");var ls=aK?aK.isConcatSpreadable:void 0;function lo(e){return a3(e)||ot(e)||!!(ls&&e&&e[ls])}function ll(e,t,r,n,i){var a=-1,s=e.length;for(r||(r=lo),i||(i=[]);++a<s;){var o=e[a];t>0&&r(o)?t>1?ll(o,t-1,r,n,i):la(i,o):n||(i[i.length]=o)}return i}function lu(e){return(null==e?0:e.length)?ll(e,1):[]}tf(lo,"isFlattenable"),tf(ll,"baseFlatten"),tf(lu,"flatten");var lc=ov(Object.getPrototypeOf,Object);function lp(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}function ld(e,t,r,n){var i=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++i]);++i<a;)r=t(r,e[i],i,e);return r}function lf(){this.__data__=new oH,this.size=0}function lh(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function lm(e){return this.__data__.get(e)}function ly(e){return this.__data__.has(e)}function lg(e,t){var r=this.__data__;if(r instanceof oH){var n=r.__data__;if(!oY||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new o3(n)}return r.set(e,t),this.size=r.size,this}function lv(e){var t=this.__data__=new oH(e);this.size=t.size}function lT(e,t){return e&&sX(t,ob(t),e)}function lR(e,t){return e&&sX(t,ox(t),e)}tf(lp,"baseSlice"),tf(ld,"arrayReduce"),tf(lf,"stackClear"),tf(lh,"stackDelete"),tf(lm,"stackGet"),tf(ly,"stackHas"),tf(lg,"stackSet"),tf(lv,"Stack"),lv.prototype.clear=lf,lv.prototype.delete=lh,lv.prototype.get=lm,lv.prototype.has=ly,lv.prototype.set=lg,tf(lT,"baseAssign"),tf(lR,"baseAssignIn");var l$="object"==typeof exports&&exports&&!exports.nodeType&&exports,lb=l$&&"object"==typeof module&&module&&!module.nodeType&&module,lE=lb&&lb.exports===l$?aU.Buffer:void 0,lC=lE?lE.allocUnsafe:void 0;function lA(e,t){if(t)return e.slice();var r=e.length,n=lC?lC(r):new e.constructor(r);return e.copy(n),n}function lS(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var s=e[r];t(s,r,e)&&(a[i++]=s)}return a}function lk(){return[]}tf(lA,"cloneBuffer"),tf(lS,"arrayFilter"),tf(lk,"stubArray");var lx=Object.prototype.propertyIsEnumerable,lN=Object.getOwnPropertySymbols,lw=lN?function(e){return null==e?[]:lS(lN(e=Object(e)),function(t){return lx.call(e,t)})}:lk;function lI(e,t){return sX(e,lw(e),t)}tf(lI,"copySymbols");var l_=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)la(t,lw(e)),e=lc(e);return t}:lk;function lP(e,t){return sX(e,l_(e),t)}function lD(e,t,r){var n=t(e);return a3(e)?n:la(n,r(e))}function lO(e){return lD(e,ob,lw)}function lL(e){return lD(e,ox,l_)}tf(lP,"copySymbolsIn"),tf(lD,"baseGetAllKeys"),tf(lO,"getAllKeys"),tf(lL,"getAllKeysIn");var lM=sS(aU,"DataView"),lj=sS(aU,"Promise"),lF=sS(aU,"Set"),lz="[object Map]",lq="[object Promise]",lG="[object Set]",lU="[object WeakMap]",lK="[object DataView]",lW=sv(lM),lB=sv(oY),lV=sv(lj),lH=sv(lF),lY=sv(sk),lX=aQ;(lM&&lX(new lM(new ArrayBuffer(1)))!=lK||oY&&lX(new oY)!=lz||lj&&lX(lj.resolve())!=lq||lF&&lX(new lF)!=lG||sk&&lX(new sk)!=lU)&&(lX=tf(function(e){var t=aQ(e),r="[object Object]"==t?e.constructor:void 0,n=r?sv(r):"";if(n)switch(n){case lW:return lK;case lB:return lz;case lV:return lq;case lH:return lG;case lY:return lU}return t},"getTag"));var lJ=lX,lZ=Object.prototype.hasOwnProperty;function lQ(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&lZ.call(e,"index")&&(r.index=e.index,r.input=e.input),r}tf(lQ,"initCloneArray");var l0=aU.Uint8Array;function l1(e){var t=new e.constructor(e.byteLength);return new l0(t).set(new l0(e)),t}function l2(e,t){var r=t?l1(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}tf(l1,"cloneArrayBuffer"),tf(l2,"cloneDataView");var l3=/\w*$/;function l9(e){var t=new e.constructor(e.source,l3.exec(e));return t.lastIndex=e.lastIndex,t}tf(l9,"cloneRegExp");var l4=aK?aK.prototype:void 0,l5=l4?l4.valueOf:void 0;function l8(e){return l5?Object(l5.call(e)):{}}function l7(e,t){var r=t?l1(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function l6(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return l1(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return l2(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return l7(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return l9(e);case"[object Symbol]":return l8(e)}}function ue(e){return"function"!=typeof e.constructor||s4(e)?{}:sN(lc(e))}function ut(e){return a0(e)&&"[object Map]"==lJ(e)}tf(l8,"cloneSymbol"),tf(l7,"cloneTypedArray"),tf(l6,"initCloneByTag"),tf(ue,"initCloneObject"),tf(ut,"baseIsMap");var ur=of&&of.isMap,un=ur?ou(ur):ut;function ui(e){return a0(e)&&"[object Set]"==lJ(e)}tf(ui,"baseIsSet");var ua=of&&of.isSet,us=ua?ou(ua):ui,uo="[object Arguments]",ul="[object Function]",uu="[object Object]",uc={};function up(e,t,r,n,i,a){var s,o=1&t,l=2&t,u=4&t;if(r&&(s=i?r(e,n,i,a):r(e)),void 0!==s)return s;if(!sr(e))return e;var c=a3(e);if(c){if(s=lQ(e),!o)return s_(e,s)}else{var p=lJ(e),d=p==ul||"[object GeneratorFunction]"==p;if(os(e))return lA(e,o);if(p==uu||p==uo||d&&!i){if(s=l||d?{}:ue(e),!o)return l?lP(e,lR(s,e)):lI(e,lT(s,e))}else{if(!uc[p])return i?e:{};s=l6(e,p,o)}}a||(a=new lv);var f=a.get(e);if(f)return f;a.set(e,s),us(e)?e.forEach(function(n){s.add(up(n,t,r,n,e,a))}):un(e)&&e.forEach(function(n,i){s.set(i,up(n,t,r,i,e,a))});var h=u?l?lL:lO:l?ox:ob,m=c?void 0:h(e);return sj(m||e,function(n,i){m&&(n=e[i=n]),sY(s,i,up(n,t,r,i,e,a))}),s}function ud(e){return up(e,4)}function uf(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var a=e[t];a&&(i[n++]=a)}return i}function uh(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}function um(e){return this.__data__.has(e)}function uy(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new o3;++t<r;)this.add(e[t])}function ug(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function uv(e,t){return e.has(t)}function uT(e,t,r,n,i,a){var s=1&r,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var p=-1,d=!0,f=2&r?new uy:void 0;for(a.set(e,t),a.set(t,e);++p<o;){var h=e[p],m=t[p];if(n)var y=s?n(m,h,p,t,e,a):n(h,m,p,e,t,a);if(void 0!==y){if(y)continue;d=!1;break}if(f){if(!ug(t,function(e,t){if(!uv(f,t)&&(h===e||i(h,e,r,n,a)))return f.push(t)})){d=!1;break}}else if(!(h===m||i(h,m,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function uR(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function u$(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}uc[uo]=uc["[object Array]"]=uc["[object ArrayBuffer]"]=uc["[object DataView]"]=uc["[object Boolean]"]=uc["[object Date]"]=uc["[object Float32Array]"]=uc["[object Float64Array]"]=uc["[object Int8Array]"]=uc["[object Int16Array]"]=uc["[object Int32Array]"]=uc["[object Map]"]=uc["[object Number]"]=uc[uu]=uc["[object RegExp]"]=uc["[object Set]"]=uc["[object String]"]=uc["[object Symbol]"]=uc["[object Uint8Array]"]=uc["[object Uint8ClampedArray]"]=uc["[object Uint16Array]"]=uc["[object Uint32Array]"]=!0,uc["[object Error]"]=uc[ul]=uc["[object WeakMap]"]=!1,tf(up,"baseClone"),tf(ud,"clone"),tf(uf,"compact"),tf(uh,"setCacheAdd"),tf(um,"setCacheHas"),tf(uy,"SetCache"),uy.prototype.add=uy.prototype.push=uh,uy.prototype.has=um,tf(ug,"arraySome"),tf(uv,"cacheHas"),tf(uT,"equalArrays"),tf(uR,"mapToArray"),tf(u$,"setToArray");var ub=aK?aK.prototype:void 0,uE=ub?ub.valueOf:void 0;function uC(e,t,r,n,i,a,s){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!a(new l0(e),new l0(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return sV(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=uR;case"[object Set]":var l=1&n;if(o||(o=u$),e.size!=t.size&&!l)break;var u=s.get(e);if(u)return u==t;n|=2,s.set(e,t);var c=uT(o(e),o(t),n,i,a,s);return s.delete(e),c;case"[object Symbol]":if(uE)return uE.call(e)==uE.call(t)}return!1}tf(uC,"equalByTag");var uA=Object.prototype.hasOwnProperty;function uS(e,t,r,n,i,a){var s=1&r,o=lO(e),l=o.length;if(l!=lO(t).length&&!s)return!1;for(var u=l;u--;){var c=o[u];if(!(s?c in t:uA.call(t,c)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var f=!0;a.set(e,t),a.set(t,e);for(var h=s;++u<l;){var m=e[c=o[u]],y=t[c];if(n)var g=s?n(y,m,c,t,e,a):n(m,y,c,e,t,a);if(!(void 0===g?m===y||i(m,y,r,n,a):g)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var v=e.constructor,T=t.constructor;v!=T&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof T&&T instanceof T)&&(f=!1)}return a.delete(e),a.delete(t),f}tf(uS,"equalObjects");var uk="[object Arguments]",ux="[object Array]",uN="[object Object]",uw=Object.prototype.hasOwnProperty;function uI(e,t,r,n,i,a){var s=a3(e),o=a3(t),l=s?ux:lJ(e),u=o?ux:lJ(t);l=l==uk?uN:l,u=u==uk?uN:u;var c=l==uN,p=u==uN,d=l==u;if(d&&os(e)){if(!os(t))return!1;s=!0,c=!1}if(d&&!c)return a||(a=new lv),s||om(e)?uT(e,t,r,n,i,a):uC(e,t,l,r,n,i,a);if(!(1&r)){var f=c&&uw.call(e,"__wrapped__"),h=p&&uw.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,y=h?t.value():t;return a||(a=new lv),i(m,y,r,n,a)}}return!!d&&(a||(a=new lv),uS(e,t,r,n,i,a))}function u_(e,t,r,n,i){return e===t||(null!=e&&null!=t&&(a0(e)||a0(t))?uI(e,t,r,n,u_,i):e!=e&&t!=t)}function uP(e,t,r,n){var i=r.length,a=i,s=!n;if(null==e)return!a;for(e=Object(e);i--;){var o=r[i];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<a;){var l=(o=r[i])[0],u=e[l],c=o[1];if(s&&o[2]){if(void 0===u&&!(l in e))return!1}else{var p=new lv;if(n)var d=n(u,c,l,e,t,p);if(!(void 0===d?u_(c,u,3,n,p):d))return!1}}return!0}function uD(e){return e==e&&!sr(e)}function uO(e){for(var t=ob(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,uD(i)]}return t}function uL(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}function uM(e){var t=uO(e);return 1==t.length&&t[0][2]?uL(t[0][0],t[0][1]):function(r){return r===e||uP(r,e,t)}}function uj(e,t){return null!=e&&t in Object(e)}function uF(e,t,r){t=le(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var s=lr(t[n]);if(!(a=null!=e&&r(e,s)))break;e=e[s]}return a||++n!=i?a:!!(i=null==e?0:e.length)&&s0(i)&&sW(s,i)&&(a3(e)||ot(e))}function uz(e,t){return null!=e&&uF(e,t,uj)}function uq(e,t){return oI(e)&&uD(t)?uL(lr(e),t):function(r){var n=li(r,e);return void 0===n&&n===t?uz(r,e):u_(t,n,3)}}function uG(e){return function(t){return null==t?void 0:t[e]}}function uU(e){return function(t){return ln(t,e)}}function uK(e){return oI(e)?uG(lr(e)):uU(e)}function uW(e){return"function"==typeof e?e:null==e?sd:"object"==typeof e?a3(e)?uq(e[0],e[1]):uM(e):uK(e)}function uB(e,t,r,n){for(var i=-1,a=null==e?0:e.length;++i<a;){var s=e[i];t(n,s,r(s),e)}return n}function uV(e){return function(t,r,n){for(var i=-1,a=Object(t),s=n(t),o=s.length;o--;){var l=s[e?o:++i];if(!1===r(a[l],l,a))break}return t}}tf(uI,"baseIsEqualDeep"),tf(u_,"baseIsEqual"),tf(uP,"baseIsMatch"),tf(uD,"isStrictComparable"),tf(uO,"getMatchData"),tf(uL,"matchesStrictComparable"),tf(uM,"baseMatches"),tf(uj,"baseHasIn"),tf(uF,"hasPath"),tf(uz,"hasIn"),tf(uq,"baseMatchesProperty"),tf(uG,"baseProperty"),tf(uU,"basePropertyDeep"),tf(uK,"property"),tf(uW,"baseIteratee"),tf(uB,"arrayAggregator"),tf(uV,"createBaseFor");var uH=uV();function uY(e,t){return e&&uH(e,t,ob)}function uX(e,t){return function(r,n){if(null==r)return r;if(!s1(r))return e(r,n);for(var i=r.length,a=t?i:-1,s=Object(r);(t?a--:++a<i)&&!1!==n(s[a],a,s););return r}}tf(uY,"baseForOwn"),tf(uX,"createBaseEach");var uJ=uX(uY);function uZ(e,t,r,n){return uJ(e,function(e,i,a){t(n,e,r(e),a)}),n}function uQ(e,t){return function(r,n){var i=a3(r)?uB:uZ,a=t?t():{};return i(r,e,uW(n,2),a)}}tf(uZ,"baseAggregator"),tf(uQ,"createAggregator");var u0=Object.prototype,u1=u0.hasOwnProperty,u2=sQ(function(e,t){e=Object(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&s2(t[0],t[1],i)&&(n=1);++r<n;)for(var a=t[r],s=ox(a),o=-1,l=s.length;++o<l;){var u=s[o],c=e[u];(void 0===c||sV(c,u0[u])&&!u1.call(e,u))&&(e[u]=a[u])}return e});function u3(e){return a0(e)&&s1(e)}function u9(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function u4(e,t,r,n){var i=-1,a=sU,s=!0,o=e.length,l=[],u=t.length;if(!o)return l;r&&(t=a2(t,ou(r))),n?(a=u9,s=!1):t.length>=200&&(a=uv,s=!1,t=new uy(t));t:for(;++i<o;){var c=e[i],p=null==r?c:r(c);if(c=n||0!==c?c:0,s&&p==p){for(var d=u;d--;)if(t[d]===p)continue t;l.push(c)}else a(t,p,n)||l.push(c)}return l}tf(u3,"isArrayLikeObject"),tf(u9,"arrayIncludesWith"),tf(u4,"baseDifference");var u5=sQ(function(e,t){return u3(e)?u4(e,ll(t,1,u3,!0)):[]});function u8(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}function u7(e,t,r){var n=null==e?0:e.length;return n?lp(e,(t=r||void 0===t?1:sp(t))<0?0:t,n):[]}function u6(e,t,r){var n=null==e?0:e.length;return n?lp(e,0,(t=n-(t=r||void 0===t?1:sp(t)))<0?0:t):[]}function ce(e){return"function"==typeof e?e:sd}function ct(e,t){return(a3(e)?sj:uJ)(e,ce(t))}function cr(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function cn(e,t){var r=!0;return uJ(e,function(e,n,i){return r=!!t(e,n,i)}),r}function ci(e,t,r){var n=a3(e)?cr:cn;return r&&s2(e,t,r)&&(t=void 0),n(e,uW(t,3))}function ca(e,t){var r=[];return uJ(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function cs(e,t){return(a3(e)?lS:ca)(e,uW(t,3))}function co(e){return function(t,r,n){var i=Object(t);if(!s1(t)){var a=uW(r,3);t=ob(t),r=tf(function(e){return a(i[e],e,i)},"predicate")}var s=e(t,r,n);return s>-1?i[a?t[s]:s]:void 0}}tf(u8,"last"),tf(u7,"drop"),tf(u6,"dropRight"),tf(ce,"castFunction"),tf(ct,"forEach"),tf(cr,"arrayEvery"),tf(cn,"baseEvery"),tf(ci,"every"),tf(ca,"baseFilter"),tf(cs,"filter"),tf(co,"createFind");var cl=Math.max;function cu(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:sp(r);return i<0&&(i=cl(n+i,0)),sF(e,uW(t,3),i)}tf(cu,"findIndex");var cc=co(cu);function cp(e){return e&&e.length?e[0]:void 0}function cd(e,t){var r=-1,n=s1(e)?Array(e.length):[];return uJ(e,function(e,i,a){n[++r]=t(e,i,a)}),n}function cf(e,t){return(a3(e)?a2:cd)(e,uW(t,3))}function ch(e,t){return ll(cf(e,t),1)}tf(cp,"head"),tf(cd,"baseMap"),tf(cf,"map"),tf(ch,"flatMap");var cm=Object.prototype.hasOwnProperty,cy=uQ(function(e,t,r){cm.call(e,r)?e[r].push(t):sB(e,r,[t])}),cg=Object.prototype.hasOwnProperty;function cv(e,t){return null!=e&&cg.call(e,t)}function cT(e,t){return null!=e&&uF(e,t,cv)}function cR(e){return"string"==typeof e||!a3(e)&&a0(e)&&"[object String]"==aQ(e)}function c$(e,t){return a2(t,function(t){return e[t]})}function cb(e){return null==e?[]:c$(e,ob(e))}tf(cv,"baseHas"),tf(cT,"has"),tf(cR,"isString"),tf(c$,"baseValues"),tf(cb,"values");var cE=Math.max;function cC(e,t,r,n){e=s1(e)?e:cb(e),r=r&&!n?sp(r):0;var i=e.length;return r<0&&(r=cE(i+r,0)),cR(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&sG(e,t,r)>-1}tf(cC,"includes");var cA=Math.max;function cS(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:sp(r);return i<0&&(i=cA(n+i,0)),sG(e,t,i)}tf(cS,"indexOf");var ck=Object.prototype.hasOwnProperty;function cx(e){if(null==e)return!0;if(s1(e)&&(a3(e)||"string"==typeof e||"function"==typeof e.splice||os(e)||om(e)||ot(e)))return!e.length;var t=lJ(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(s4(e))return!o$(e).length;for(var r in e)if(ck.call(e,r))return!1;return!0}function cN(e){return a0(e)&&"[object RegExp]"==aQ(e)}tf(cx,"isEmpty"),tf(cN,"baseIsRegExp");var cw=of&&of.isRegExp,cI=cw?ou(cw):cN;function c_(e){return void 0===e}function cP(e){if("function"!=typeof e)throw TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function cD(e,t,r,n){if(!sr(e))return e;t=le(t,e);for(var i=-1,a=t.length,s=a-1,o=e;null!=o&&++i<a;){var l=lr(t[i]),u=r;if("__proto__"===l||"constructor"===l||"prototype"===l)break;if(i!=s){var c=o[l];void 0===(u=n?n(c,l,o):void 0)&&(u=sr(c)?c:sW(t[i+1])?[]:{})}sY(o,l,u),o=o[l]}return e}function cO(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var s=t[n],o=ln(e,s);r(o,s)&&cD(a,le(s,e),o)}return a}function cL(e,t){if(null==e)return{};var r=a2(lL(e),function(e){return[e]});return t=uW(t),cO(e,r,function(e,r){return t(e,r[0])})}function cM(e,t,r,n,i){return i(e,function(e,i,a){r=n?(n=!1,e):t(r,e,i,a)}),r}function cj(e,t,r){var n=a3(e)?ld:cM,i=arguments.length<3;return n(e,uW(t,4),r,i,uJ)}function cF(e,t){return(a3(e)?lS:ca)(e,cP(uW(t,3)))}function cz(e,t){var r;return uJ(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function cq(e,t,r){var n=a3(e)?ug:cz;return r&&s2(e,t,r)&&(t=void 0),n(e,uW(t,3))}tf(c_,"isUndefined"),tf(cP,"negate"),tf(cD,"baseSet"),tf(cO,"basePickBy"),tf(cL,"pickBy"),tf(cM,"baseReduce"),tf(cj,"reduce"),tf(cF,"reject"),tf(cz,"baseSome"),tf(cq,"some");var cG=lF&&1/u$(new lF([,-0]))[1]==1/0?function(e){return new lF(e)}:sI;function cU(e,t,r){var n=-1,i=sU,a=e.length,s=!0,o=[],l=o;if(r)s=!1,i=u9;else if(a>=200){var u=t?null:cG(e);if(u)return u$(u);s=!1,i=uv,l=new uy}else l=t?[]:o;t:for(;++n<a;){var c=e[n],p=t?t(c):c;if(c=r||0!==c?c:0,s&&p==p){for(var d=l.length;d--;)if(l[d]===p)continue t;t&&l.push(p),o.push(c)}else i(l,p,r)||(l!==o&&l.push(p),o.push(c))}return o}function cK(e){return e&&e.length?cU(e):[]}function cW(e){console&&console.error&&console.error(`Error: ${e}`)}function cB(e){console&&console.warn&&console.warn(`Warning: ${e}`)}function cV(e){let t=new Date().getTime(),r=e();return{time:new Date().getTime()-t,value:r}}function cH(e){function t(){}tf(t,"FakeConstructor"),t.prototype=e;let r=new t;function n(){return typeof r.bar}return tf(n,"fakeAccess"),n(),n(),e}function cY(e){return cX(e)?e.LABEL:e.name}function cX(e){return cR(e.LABEL)&&""!==e.LABEL}tf(cU,"baseUniq"),tf(cK,"uniq"),tf(cW,"PRINT_ERROR"),tf(cB,"PRINT_WARNING"),tf(cV,"timer"),tf(cH,"toFastProperties"),tf(cY,"tokenLabel"),tf(cX,"hasTokenLabel");var cJ=class{static{tf(this,"AbstractProduction")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),ct(this.definition,t=>{t.accept(e)})}},cZ=class extends cJ{static{tf(this,"NonTerminal")}constructor(e){super([]),this.idx=1,oC(this,cL(e,e=>void 0!==e))}set definition(e){}get definition(){return void 0!==this.referencedRule?this.referencedRule.definition:[]}accept(e){e.visit(this)}},cQ=class extends cJ{static{tf(this,"Rule")}constructor(e){super(e.definition),this.orgText="",oC(this,cL(e,e=>void 0!==e))}},c0=class extends cJ{static{tf(this,"Alternative")}constructor(e){super(e.definition),this.ignoreAmbiguities=!1,oC(this,cL(e,e=>void 0!==e))}},c1=class extends cJ{static{tf(this,"Option")}constructor(e){super(e.definition),this.idx=1,oC(this,cL(e,e=>void 0!==e))}},c2=class extends cJ{static{tf(this,"RepetitionMandatory")}constructor(e){super(e.definition),this.idx=1,oC(this,cL(e,e=>void 0!==e))}},c3=class extends cJ{static{tf(this,"RepetitionMandatoryWithSeparator")}constructor(e){super(e.definition),this.idx=1,oC(this,cL(e,e=>void 0!==e))}},c9=class extends cJ{static{tf(this,"Repetition")}constructor(e){super(e.definition),this.idx=1,oC(this,cL(e,e=>void 0!==e))}},c4=class extends cJ{static{tf(this,"RepetitionWithSeparator")}constructor(e){super(e.definition),this.idx=1,oC(this,cL(e,e=>void 0!==e))}},c5=class extends cJ{static{tf(this,"Alternation")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,oC(this,cL(e,e=>void 0!==e))}},c8=class{static{tf(this,"Terminal")}constructor(e){this.idx=1,oC(this,cL(e,e=>void 0!==e))}accept(e){e.visit(this)}};function c7(e){return cf(e,c6)}function c6(e){function t(e){return cf(e,c6)}if(tf(t,"convertDefinition"),e instanceof cZ){let t={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return cR(e.label)&&(t.label=e.label),t}if(e instanceof c0)return{type:"Alternative",definition:t(e.definition)};if(e instanceof c1)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof c2)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof c3)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:c6(new c8({terminalType:e.separator})),definition:t(e.definition)};else if(e instanceof c4)return{type:"RepetitionWithSeparator",idx:e.idx,separator:c6(new c8({terminalType:e.separator})),definition:t(e.definition)};else if(e instanceof c9)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};else if(e instanceof c5)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};else if(e instanceof c8){let t={type:"Terminal",name:e.terminalType.name,label:cY(e.terminalType),idx:e.idx};cR(e.label)&&(t.terminalLabel=e.label);let r=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=cI(r)?r.source:r),t}else if(e instanceof cQ)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};else throw Error("non exhaustive match")}tf(c7,"serializeGrammar"),tf(c6,"serializeProduction");var pe=class{static{tf(this,"GAstVisitor")}visit(e){switch(e.constructor){case cZ:return this.visitNonTerminal(e);case c0:return this.visitAlternative(e);case c1:return this.visitOption(e);case c2:return this.visitRepetitionMandatory(e);case c3:return this.visitRepetitionMandatoryWithSeparator(e);case c4:return this.visitRepetitionWithSeparator(e);case c9:return this.visitRepetition(e);case c5:return this.visitAlternation(e);case c8:return this.visitTerminal(e);case cQ:return this.visitRule(e);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}};function pt(e){return e instanceof c0||e instanceof c1||e instanceof c9||e instanceof c2||e instanceof c3||e instanceof c4||e instanceof c8||e instanceof cQ}function pr(e,t=[]){return e instanceof c1||e instanceof c9||e instanceof c4||(e instanceof c5?cq(e.definition,e=>pr(e,t)):!(e instanceof cZ&&cC(t,e))&&e instanceof cJ&&(e instanceof cZ&&t.push(e),ci(e.definition,e=>pr(e,t))))}function pn(e){return e instanceof c5}function pi(e){if(e instanceof cZ)return"SUBRULE";if(e instanceof c1)return"OPTION";if(e instanceof c5)return"OR";if(e instanceof c2)return"AT_LEAST_ONE";if(e instanceof c3)return"AT_LEAST_ONE_SEP";else if(e instanceof c4)return"MANY_SEP";else if(e instanceof c9)return"MANY";else if(e instanceof c8)return"CONSUME";else throw Error("non exhaustive match")}tf(pt,"isSequenceProd"),tf(pr,"isOptionalProd"),tf(pn,"isBranchingProd"),tf(pi,"getProductionDslName");var pa=class{static{tf(this,"RestWalker")}walk(e,t=[]){ct(e.definition,(r,n)=>{let i=u7(e.definition,n+1);if(r instanceof cZ)this.walkProdRef(r,i,t);else if(r instanceof c8)this.walkTerminal(r,i,t);else if(r instanceof c0)this.walkFlat(r,i,t);else if(r instanceof c1)this.walkOption(r,i,t);else if(r instanceof c2)this.walkAtLeastOne(r,i,t);else if(r instanceof c3)this.walkAtLeastOneSep(r,i,t);else if(r instanceof c4)this.walkManySep(r,i,t);else if(r instanceof c9)this.walkMany(r,i,t);else if(r instanceof c5)this.walkOr(r,i,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,r){}walkProdRef(e,t,r){}walkFlat(e,t,r){let n=t.concat(r);this.walk(e,n)}walkOption(e,t,r){let n=t.concat(r);this.walk(e,n)}walkAtLeastOne(e,t,r){let n=[new c1({definition:e.definition})].concat(t,r);this.walk(e,n)}walkAtLeastOneSep(e,t,r){let n=ps(e,t,r);this.walk(e,n)}walkMany(e,t,r){let n=[new c1({definition:e.definition})].concat(t,r);this.walk(e,n)}walkManySep(e,t,r){let n=ps(e,t,r);this.walk(e,n)}walkOr(e,t,r){let n=t.concat(r);ct(e.definition,e=>{let t=new c0({definition:[e]});this.walk(t,n)})}};function ps(e,t,r){return[new c1({definition:[new c8({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}function po(e){if(e instanceof cZ)return po(e.referencedRule);if(e instanceof c8)return pc(e);if(pt(e))return pl(e);if(pn(e))return pu(e);throw Error("non exhaustive match")}function pl(e){let t,r=[],n=e.definition,i=0,a=n.length>i,s=!0;for(;a&&s;)s=pr(t=n[i]),r=r.concat(po(t)),i+=1,a=n.length>i;return cK(r)}function pu(e){return cK(lu(cf(e.definition,e=>po(e))))}function pc(e){return[e.terminalType]}tf(ps,"restForRepetitionWithSeparator"),tf(po,"first"),tf(pl,"firstForSequence"),tf(pu,"firstForBranching"),tf(pc,"firstForTerminal");var pp="_~IN~_",pd=class extends pa{static{tf(this,"ResyncFollowsWalker")}constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,r){}walkProdRef(e,t,r){let n=ph(e.referencedRule,e.idx)+this.topProd.name,i=po(new c0({definition:t.concat(r)}));this.follows[n]=i}};function pf(e){let t={};return ct(e,e=>{oC(t,new pd(e).startWalking())}),t}function ph(e,t){return e.name+t+pp}tf(pf,"computeAllProdsFollows"),tf(ph,"buildBetweenProdsFollowPrefix");var pm={},py=new iQ;function pg(e){let t=e.toString();if(pm.hasOwnProperty(t))return pm[t];{let e=py.pattern(t);return pm[t]=e,e}}function pv(){pm={}}tf(pg,"getRegExpAst"),tf(pv,"clearRegExpParserCache");var pT="Complement Sets are not supported for first char optimization",pR='Unable to use "first char" lexer optimizations:\n';function p$(e,t=!1){try{let t=pg(e);return pb(t.value,{},t.flags.ignoreCase)}catch(r){if(r.message===pT)t&&cB(`${pR} Unable to optimize: < ${e.toString()} >
|
|
22
|
+
Complement Sets cannot be automatically optimized.
|
|
23
|
+
This will disable the lexer's first char optimizations.
|
|
24
|
+
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let r="";t&&(r="\n This will disable the lexer's first char optimizations.\n See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),cW(`${pR}
|
|
25
|
+
Failed parsing: < ${e.toString()} >
|
|
26
|
+
Using the @chevrotain/regexp-to-ast library
|
|
27
|
+
Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+r)}}return[]}function pb(e,t,r){switch(e.type){case"Disjunction":for(let n=0;n<e.value.length;n++)pb(e.value[n],t,r);break;case"Alternative":let n=e.value;for(let e=0;e<n.length;e++){let i=n[e];switch(i.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}switch(i.type){case"Character":pE(i.value,t,r);break;case"Set":if(!0===i.complement)throw Error(pT);ct(i.value,e=>{if("number"==typeof e)pE(e,t,r);else if(!0===r)for(let n=e.from;n<=e.to;n++)pE(n,t,r);else{for(let n=e.from;n<=e.to&&n<p6;n++)pE(n,t,r);if(e.to>=p6){let r=e.from>=p6?e.from:p6,n=e.to,i=dt(r),a=dt(n);for(let e=i;e<=a;e++)t[e]=e}}});break;case"Group":pb(i.value,t,r);break;default:throw Error("Non Exhaustive Match")}let a=void 0!==i.quantifier&&0===i.quantifier.atLeast;if("Group"===i.type&&!1===pS(i)||"Group"!==i.type&&!1===a)break}break;default:throw Error("non exhaustive match!")}return cb(t)}function pE(e,t,r){let n=dt(e);t[n]=n,!0===r&&pC(e,t)}function pC(e,t){let r=String.fromCharCode(e),n=r.toUpperCase();if(n!==r){let e=dt(n.charCodeAt(0));t[e]=e}else{let e=r.toLowerCase();if(e!==r){let r=dt(e.charCodeAt(0));t[r]=r}}}function pA(e,t){return cc(e.value,e=>"number"==typeof e?cC(t,e):void 0!==cc(t,t=>e.from<=t&&t<=e.to))}function pS(e){let t=e.quantifier;return!!t&&0===t.atLeast||!!e.value&&(a3(e.value)?ci(e.value,pS):pS(e.value))}tf(p$,"getOptimizedStartCodesIndices"),tf(pb,"firstCharOptimizedIndices"),tf(pE,"addOptimizedIdxToResult"),tf(pC,"handleIgnoreCase"),tf(pA,"findCode"),tf(pS,"isWholeOptional");var pk=class extends i0{static{tf(this,"CharCodeFinder")}constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(!0!==this.found){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){cC(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?void 0===pA(e,this.targetCharCodes)&&(this.found=!0):void 0!==pA(e,this.targetCharCodes)&&(this.found=!0)}};function px(e,t){if(!(t instanceof RegExp))return void 0!==cc(t,t=>cC(e,t.charCodeAt(0)));{let r=pg(t),n=new pk(e);return n.visit(r),n.found}}tf(px,"canMatchCharCode");var pN="PATTERN",pw="defaultMode",pI="modes",p_="boolean"==typeof RegExp("(?:)").sticky;function pP(e,t){let r,n,i,a,s,o,l,u,c,p,d,f,h=(t=u2(t,{useSticky:p_,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:tf((e,t)=>t(),"tracer")})).tracer;h("initCharCodeToOptimizedIndexMap",()=>{dr()}),h("Reject Lexer.NA",()=>{r=cF(e,e=>e[pN]===d$.NA)});let m=!1;h("Transform Patterns",()=>{m=!1,n=cf(r,e=>{let r=e[pN];if(cI(r)){let e=r.source;return 1!==e.length||"^"===e||"$"===e||"."===e||r.ignoreCase?2!==e.length||"\\"!==e[0]||cC(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],e[1])?t.useSticky?pZ(r):pJ(r):e[1]:e}if(sf(r))return m=!0,{exec:r};if("object"==typeof r)return m=!0,r;if("string"==typeof r)if(1===r.length)return r;else{let e=new RegExp(r.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"));return t.useSticky?pZ(e):pJ(e)}throw Error("non exhaustive match")})}),h("misc mapping",()=>{i=cf(r,e=>e.tokenTypeIdx),a=cf(r,e=>{let t=e.GROUP;if(t!==d$.SKIPPED){if(cR(t))return t;if(c_(t))return!1;throw Error("non exhaustive match")}}),s=cf(r,e=>{let t=e.LONGER_ALT;if(t)return a3(t)?cf(t,e=>cS(r,e)):[cS(r,t)]}),o=cf(r,e=>e.PUSH_MODE),l=cf(r,e=>cT(e,"POP_MODE"))}),h("Line Terminator Handling",()=>{let e=p8(t.lineTerminatorCharacters);u=cf(r,e=>!1),"onlyOffset"!==t.positionTracking&&(u=cf(r,t=>cT(t,"LINE_BREAKS")?!!t.LINE_BREAKS:!1===p4(t,e)&&px(e,t.PATTERN)))}),h("Misc Mapping #2",()=>{c=cf(r,p2),p=cf(n,p3),d=cj(r,(e,t)=>{let r=t.GROUP;return cR(r)&&r!==d$.SKIPPED&&(e[r]=[]),e},{}),f=cf(n,(e,t)=>({pattern:n[t],longerAlt:s[t],canLineTerminator:u[t],isCustom:c[t],short:p[t],group:a[t],push:o[t],pop:l[t],tokenTypeIdx:i[t],tokenType:r[t]}))});let y=!0,g=[];return t.safeMode||h("First Char Optimization",()=>{g=cj(r,(e,r,n)=>{if("string"==typeof r.PATTERN)p7(e,dt(r.PATTERN.charCodeAt(0)),f[n]);else if(a3(r.START_CHARS_HINT)){let t;ct(r.START_CHARS_HINT,r=>{let i=dt("string"==typeof r?r.charCodeAt(0):r);t!==i&&(t=i,p7(e,i,f[n]))})}else if(cI(r.PATTERN))if(r.PATTERN.unicode)y=!1,t.ensureOptimizations&&cW(`${pR} Unable to analyze < ${r.PATTERN.toString()} > pattern.
|
|
28
|
+
The regexp unicode flag is not currently supported by the regexp-to-ast library.
|
|
29
|
+
This will disable the lexer's first char optimizations.
|
|
30
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let i=p$(r.PATTERN,t.ensureOptimizations);cx(i)&&(y=!1),ct(i,t=>{p7(e,t,f[n])})}else t.ensureOptimizations&&cW(`${pR} TokenType: <${r.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
|
|
31
|
+
This will disable the lexer's first char optimizations.
|
|
32
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),y=!1;return e},[])}),{emptyGroups:d,patternIdxToConfig:f,charCodeToPatternIdxToConfig:g,hasCustom:m,canBeOptimized:y}}function pD(e,t){let r=[],n=pL(e);r=r.concat(n.errors);let i=pM(n.valid),a=i.valid;return(r=(r=(r=(r=r.concat(i.errors)).concat(pO(a))).concat(pW(a))).concat(pB(a,t))).concat(pV(a))}function pO(e){let t=[],r=cs(e,e=>cI(e[pN]));return(t=(t=(t=(t=t.concat(pF(r))).concat(pG(r))).concat(pU(r))).concat(pK(r))).concat(pz(r))}function pL(e){let t=cs(e,e=>!cT(e,pN));return{errors:cf(t,e=>({message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:eL.MISSING_PATTERN,tokenTypes:[e]})),valid:u5(e,t)}}function pM(e){let t=cs(e,e=>{let t=e[pN];return!cI(t)&&!sf(t)&&!cT(t,"exec")&&!cR(t)});return{errors:cf(t,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:eL.INVALID_PATTERN,tokenTypes:[e]})),valid:u5(e,t)}}tf(pP,"analyzeTokenTypes"),tf(pD,"validatePatterns"),tf(pO,"validateRegExpPattern"),tf(pL,"findMissingPatterns"),tf(pM,"findInvalidPatterns");var pj=/[^\\][$]/;function pF(e){class t extends i0{static{tf(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}return cf(cs(e,e=>{let r=e.PATTERN;try{let e=pg(r),n=new t;return n.visit(e),n.found}catch(e){return pj.test(r.source)}}),e=>({message:"Unexpected RegExp Anchor Error:\n Token Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.",type:eL.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}function pz(e){return cf(cs(e,e=>e.PATTERN.test("")),e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:eL.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}tf(pF,"findEndOfInputAnchor"),tf(pz,"findEmptyMatchRegExps");var pq=/[^\\[][\^]|^\^/;function pG(e){class t extends i0{static{tf(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}return cf(cs(e,e=>{let r=e.PATTERN;try{let e=pg(r),n=new t;return n.visit(e),n.found}catch(e){return pq.test(r.source)}}),e=>({message:"Unexpected RegExp Anchor Error:\n Token Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.",type:eL.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}function pU(e){return cf(cs(e,e=>{let t=e[pN];return t instanceof RegExp&&(t.multiline||t.global)}),e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:eL.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}function pK(e){let t=[],r=cf(e,r=>cj(e,(e,n)=>(r.PATTERN.source!==n.PATTERN.source||cC(t,n)||n.PATTERN===d$.NA||(t.push(n),e.push(n)),e),[]));return cf(cs(r=uf(r),e=>e.length>1),e=>{let t=cf(e,e=>e.name),r=cp(e).PATTERN;return{message:`The same RegExp pattern ->${r}<-has been used in all of the following Token Types: ${t.join(", ")} <-`,type:eL.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}function pW(e){return cf(cs(e,e=>{if(!cT(e,"GROUP"))return!1;let t=e.GROUP;return t!==d$.SKIPPED&&t!==d$.NA&&!cR(t)}),e=>({message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:eL.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}function pB(e,t){return cf(cs(e,e=>void 0!==e.PUSH_MODE&&!cC(t,e.PUSH_MODE)),e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:eL.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}function pV(e){let t=[],r=cj(e,(e,t,r)=>{let n=t.PATTERN;return n===d$.NA||(cR(n)?e.push({str:n,idx:r,tokenType:t}):cI(n)&&pY(n)&&e.push({str:n.source,idx:r,tokenType:t})),e},[]);return ct(e,(e,n)=>{ct(r,({str:r,idx:i,tokenType:a})=>{if(n<i&&pH(r,e.PATTERN)){let r=`Token: ->${a.name}<- can never be matched.
|
|
33
|
+
Because it appears AFTER the Token Type ->${e.name}<-in the lexer's definition.
|
|
34
|
+
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:r,type:eL.UNREACHABLE_PATTERN,tokenTypes:[e,a]})}})}),t}function pH(e,t){if(cI(t)){if(pX(t))return!1;let r=t.exec(e);return null!==r&&0===r.index}if(sf(t))return t(e,0,[],{});if(cT(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}function pY(e){return void 0===cc([".","\\","[","]","|","^","$","(",")","?","*","+","{"],t=>-1!==e.source.indexOf(t))}function pX(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(e.source)}function pJ(e){let t=e.ignoreCase?"i":"";return RegExp(`^(?:${e.source})`,t)}function pZ(e){let t=e.ignoreCase?"iy":"y";return RegExp(`${e.source}`,t)}function pQ(e,t,r){let n=[];return cT(e,pw)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+pw+"> property in its definition\n",type:eL.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),cT(e,pI)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+pI+"> property in its definition\n",type:eL.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),cT(e,pI)&&cT(e,pw)&&!cT(e.modes,e.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${pw}: <${e.defaultMode}>which does not exist
|
|
35
|
+
`,type:eL.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),cT(e,pI)&&ct(e.modes,(e,t)=>{ct(e,(r,i)=>{c_(r)?n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${t}> at index: <${i}>
|
|
36
|
+
`,type:eL.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):cT(r,"LONGER_ALT")&&ct(a3(r.LONGER_ALT)?r.LONGER_ALT:[r.LONGER_ALT],i=>{c_(i)||cC(e,i)||n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${i.name}> on token <${r.name}> outside of mode <${t}>
|
|
37
|
+
`,type:eL.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),n}function p0(e,t,r){let n=[],i=!1,a=cF(uf(lu(cb(e.modes))),e=>e[pN]===d$.NA),s=p8(r);return t&&ct(a,e=>{let t=p4(e,s);if(!1!==t){let r={message:p5(e,t),type:t.issue,tokenType:e};n.push(r)}else cT(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(i=!0):px(s,e.PATTERN)&&(i=!0)}),t&&!i&&n.push({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.",type:eL.NO_LINE_BREAKS_FLAGS}),n}function p1(e){let t={};return ct(ob(e),r=>{if(a3(e[r]))t[r]=[];else throw Error("non exhaustive match")}),t}function p2(e){let t=e.PATTERN;if(cI(t))return!1;if(sf(t))return!0;if(cT(t,"exec"))return!0;if(cR(t))return!1;throw Error("non exhaustive match")}function p3(e){return!!cR(e)&&1===e.length&&e.charCodeAt(0)}tf(pG,"findStartOfInputAnchor"),tf(pU,"findUnsupportedFlags"),tf(pK,"findDuplicatePatterns"),tf(pW,"findInvalidGroupType"),tf(pB,"findModesThatDoNotExist"),tf(pV,"findUnreachablePatterns"),tf(pH,"tryToMatchStrToPattern"),tf(pY,"noMetaChar"),tf(pX,"usesLookAheadOrBehind"),tf(pJ,"addStartOfInput"),tf(pZ,"addStickyFlag"),tf(pQ,"performRuntimeChecks"),tf(p0,"performWarningRuntimeChecks"),tf(p1,"cloneEmptyGroups"),tf(p2,"isCustomPattern"),tf(p3,"isShortPattern");var p9={test:tf(function(e){let t=e.length;for(let r=this.lastIndex;r<t;r++){let t=e.charCodeAt(r);if(10===t)return this.lastIndex=r+1,!0;if(13===t)return 10===e.charCodeAt(r+1)?this.lastIndex=r+2:this.lastIndex=r+1,!0}return!1},"test"),lastIndex:0};function p4(e,t){if(cT(e,"LINE_BREAKS"))return!1;if(cI(e.PATTERN)){try{px(t,e.PATTERN)}catch(e){return{issue:eL.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if(cR(e.PATTERN))return!1;if(p2(e))return{issue:eL.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function p5(e,t){if(t.issue===eL.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
|
|
38
|
+
The problem is in the <${e.name}> Token Type
|
|
39
|
+
Root cause: ${t.errMsg}.
|
|
40
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===eL.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
|
|
41
|
+
The problem is in the <${e.name}> Token Type
|
|
42
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function p8(e){return cf(e,e=>cR(e)?e.charCodeAt(0):e)}function p7(e,t,r){void 0===e[t]?e[t]=[r]:e[t].push(r)}tf(p4,"checkLineBreaksIssues"),tf(p5,"buildLineBreakIssueMessage"),tf(p8,"getCharCodes"),tf(p7,"addToMapOfArrays");var p6=256,de=[];function dt(e){return e<p6?e:de[e]}function dr(){if(cx(de)){de=Array(65536);for(let e=0;e<65536;e++)de[e]=e>255?255+~~(e/255):e}}function dn(e,t){let r=e.tokenTypeIdx;return r===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[r]}function di(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}tf(dt,"charCodeToOptimizedIndex"),tf(dr,"initCharCodeToOptimizedIndexMap"),tf(dn,"tokenStructuredMatcher"),tf(di,"tokenStructuredMatcherNoCategories");var da=1,ds={};function dl(e){let t=du(e);dc(t),dd(t),dp(t),ct(t,e=>{e.isParent=e.categoryMatches.length>0})}function du(e){let t=ud(e),r=e,n=!0;for(;n;){let e=u5(r=uf(lu(cf(r,e=>e.CATEGORIES))),t);t=t.concat(e),cx(e)?n=!1:r=e}return t}function dc(e){ct(e,e=>{dh(e)||(ds[da]=e,e.tokenTypeIdx=da++),dm(e)&&!a3(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),dm(e)||(e.CATEGORIES=[]),dy(e)||(e.categoryMatches=[]),dg(e)||(e.categoryMatchesMap={})})}function dp(e){ct(e,e=>{e.categoryMatches=[],ct(e.categoryMatchesMap,(t,r)=>{e.categoryMatches.push(ds[r].tokenTypeIdx)})})}function dd(e){ct(e,e=>{df([],e)})}function df(e,t){ct(e,e=>{t.categoryMatchesMap[e.tokenTypeIdx]=!0}),ct(t.CATEGORIES,r=>{let n=e.concat(t);cC(n,r)||df(n,r)})}function dh(e){return cT(e,"tokenTypeIdx")}function dm(e){return cT(e,"CATEGORIES")}function dy(e){return cT(e,"categoryMatches")}function dg(e){return cT(e,"categoryMatchesMap")}function dv(e){return cT(e,"tokenTypeIdx")}tf(dl,"augmentTokenTypes"),tf(du,"expandCategories"),tf(dc,"assignTokenDefaultProps"),tf(dp,"assignCategoriesTokensProp"),tf(dd,"assignCategoriesMapProp"),tf(df,"singleAssignCategoriesToksMap"),tf(dh,"hasShortKeyProperty"),tf(dm,"hasCategoriesProperty"),tf(dy,"hasExtendingTokensTypesProperty"),tf(dg,"hasExtendingTokensTypesMapProperty"),tf(dv,"isTokenType");var dT={buildUnableToPopLexerModeMessage:e=>`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`,buildUnexpectedCharactersMessage:(e,t,r,n,i,a)=>`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${r} characters.`};!function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"}(eL||(eL={}));var dR={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:dT,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(dR);var d$=class{static{tf(this,"Lexer")}constructor(e,t=dR){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(!0!==this.traceInitPerf)return t();{this.traceInitIndent++;let r=Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${r}--> <${e}>`);let{time:n,value:i}=cV(t),a=n>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&a(`${r}<-- <${e}> time: ${n}ms`),this.traceInitIndent--,i}},"boolean"==typeof t)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=oC({},dR,t);let r=this.config.traceInitPerf;!0===r?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof r&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let r,n=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===dR.lineTerminatorsPattern)this.config.lineTerminatorsPattern=p9;else if(this.config.lineTerminatorCharacters===dR.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),a3(e)?r={modes:{defaultMode:ud(e)},defaultMode:pw}:(n=!1,r=ud(e))}),!1===this.config.skipValidations&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(pQ(r,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(p0(r,this.trackStartLines,this.config.lineTerminatorCharacters))})),r.modes=r.modes?r.modes:{},ct(r.modes,(e,t)=>{r.modes[t]=cF(e,e=>c_(e))});let i=ob(r.modes);if(ct(r.modes,(e,r)=>{this.TRACE_INIT(`Mode: <${r}> processing`,()=>{if(this.modes.push(r),!1===this.config.skipValidations&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(pD(e,i))}),cx(this.lexerDefinitionErrors)){let n;dl(e),this.TRACE_INIT("analyzeTokenTypes",()=>{n=pP(e,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[r]=n.patternIdxToConfig,this.charCodeToPatternIdxToConfig[r]=n.charCodeToPatternIdxToConfig,this.emptyGroups=oC({},this.emptyGroups,n.emptyGroups),this.hasCustom=n.hasCustom||this.hasCustom,this.canModeBeOptimized[r]=n.canBeOptimized}})}),this.defaultMode=r.defaultMode,!cx(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling)throw Error("Errors detected in definition of Lexer:\n"+cf(this.lexerDefinitionErrors,e=>e.message).join("-----------------------\n"));ct(this.lexerDefinitionWarning,e=>{cB(e.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(p_?(this.chopInput=sd,this.match=this.matchWithTest):(this.updateLastIndex=sI,this.match=this.matchWithExec),n&&(this.handleModes=sI),!1===this.trackStartLines&&(this.computeNewColumn=sd),!1===this.trackEndLines&&(this.updateTokenEndLineColumnLocation=sI),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let e=cj(this.canModeBeOptimized,(e,t,r)=>(!1===t&&e.push(r),e),[]);if(t.ensureOptimizations&&!cx(e))throw Error(`Lexer Modes: < ${e.join(", ")} > cannot be optimized.
|
|
43
|
+
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
|
|
44
|
+
Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{pv()}),this.TRACE_INIT("toFastProperties",()=>{cH(this)})})}tokenize(e,t=this.defaultMode){if(!cx(this.lexerDefinitionErrors))throw Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+cf(this.lexerDefinitionErrors,e=>e.message).join("-----------------------\n"));return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let r,n,i,a,s,o,l,u,c,p,d,f,h,m,y,g,v,T=e,R=T.length,$=0,b=0,E=Array(this.hasCustom?0:Math.floor(e.length/10)),C=[],A=this.trackStartLines?1:void 0,S=this.trackStartLines?1:void 0,k=p1(this.emptyGroups),x=this.trackStartLines,N=this.config.lineTerminatorsPattern,w=0,I=[],_=[],P=[],D=[];function O(){return I}function L(e){let t=_[dt(e)];return void 0===t?D:t}Object.freeze(D),tf(O,"getPossiblePatternsSlow"),tf(L,"getPossiblePatternsOptimized");let M=tf(e=>{if(1===P.length&&void 0===e.tokenType.PUSH_MODE){let t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);C.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{P.pop();let e=u8(P);I=this.patternIdxToConfig[e],_=this.charCodeToPatternIdxToConfig[e],w=I.length;let t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;g=_&&t?L:O}},"pop_mode");function j(e){P.push(e),_=this.charCodeToPatternIdxToConfig[e],w=(I=this.patternIdxToConfig[e]).length,w=I.length;let t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;g=_&&t?L:O}tf(j,"push_mode"),j.call(this,t);let F=this.config.recoveryEnabled;for(;$<R;){o=null;let t=T.charCodeAt($),_=g(t),D=_.length;for(r=0;r<D;r++){let n=(v=_[r]).pattern;l=null;let c=v.short;if(!1!==c?t===c&&(o=n):!0===v.isCustom?null!==(y=n.exec(T,$,E,k))?(o=y[0],void 0!==y.payload&&(l=y.payload)):o=null:(this.updateLastIndex(n,$),o=this.match(n,e,$)),null!==o){if(void 0!==(s=v.longerAlt)){let t=s.length;for(i=0;i<t;i++){let t=I[s[i]],r=t.pattern;if(u=null,!0===t.isCustom?null!==(y=r.exec(T,$,E,k))?(a=y[0],void 0!==y.payload&&(u=y.payload)):a=null:(this.updateLastIndex(r,$),a=this.match(r,e,$)),a&&a.length>o.length){o=a,l=u,v=t;break}}}break}}if(null!==o){if(c=o.length,void 0!==(p=v.group)&&(d=v.tokenTypeIdx,f=this.createTokenInstance(o,$,d,v.tokenType,A,S,c),this.handlePayload(f,l),!1===p?b=this.addToken(E,b,f):k[p].push(f)),e=this.chopInput(e,c),$+=c,S=this.computeNewColumn(S,c),!0===x&&!0===v.canLineTerminator){let e,t,r=0;N.lastIndex=0;do!0===(e=N.test(o))&&(t=N.lastIndex-1,r++);while(!0===e);0!==r&&(A+=r,S=c-t,this.updateTokenEndLineColumnLocation(f,p,t,r,A,S,c))}this.handleModes(v,M,j,f)}else{let t=$,r=A,i=S,a=!1===F;for(;!1===a&&$<R;)for(e=this.chopInput(e,1),$++,n=0;n<w;n++){let t=I[n],r=t.pattern,i=t.short;if(!1!==i?T.charCodeAt($)===i&&(a=!0):!0===t.isCustom?a=null!==r.exec(T,$,E,k):(this.updateLastIndex(r,$),a=null!==r.exec(e)),!0===a)break}if(h=$-t,S=this.computeNewColumn(S,h),m=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(T,t,h,r,i,u8(P)),C.push({offset:t,line:r,column:i,length:h,message:m}),!1===F)break}}return this.hasCustom||(E.length=b),{tokens:E,groups:k,errors:C}}handleModes(e,t,r,n){if(!0===e.pop){let i=e.push;t(n),void 0!==i&&r.call(this,i)}else void 0!==e.push&&r.call(this,e.push)}chopInput(e,t){return e.substring(t)}updateLastIndex(e,t){e.lastIndex=t}updateTokenEndLineColumnLocation(e,t,r,n,i,a,s){let o,l;void 0!==t&&(l=(o=r===s-1)?-1:0,(1!==n||!0!==o)&&(e.endLine=i+l,e.endColumn=a-1+-l))}computeNewColumn(e,t){return e+t}createOffsetOnlyToken(e,t,r,n){return{image:e,startOffset:t,tokenTypeIdx:r,tokenType:n}}createStartOnlyToken(e,t,r,n,i,a){return{image:e,startOffset:t,startLine:i,startColumn:a,tokenTypeIdx:r,tokenType:n}}createFullToken(e,t,r,n,i,a,s){return{image:e,startOffset:t,endOffset:t+s-1,startLine:i,endLine:i,startColumn:a,endColumn:a+s-1,tokenTypeIdx:r,tokenType:n}}addTokenUsingPush(e,t,r){return e.push(r),t}addTokenUsingMemberAccess(e,t,r){return e[t]=r,++t}handlePayloadNoCustom(e,t){}handlePayloadWithCustom(e,t){null!==t&&(e.payload=t)}matchWithTest(e,t,r){return!0===e.test(t)?t.substring(r,e.lastIndex):null}matchWithExec(e,t){let r=e.exec(t);return null!==r?r[0]:null}};function db(e){return dE(e)?e.LABEL:e.name}function dE(e){return cR(e.LABEL)&&""!==e.LABEL}d$.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",d$.NA=/NOT_APPLICABLE/,tf(db,"tokenLabel"),tf(dE,"hasTokenLabel");var dC="categories",dA="label",dS="group",dk="push_mode",dx="pop_mode",dN="longer_alt",dw="line_breaks",dI="start_chars_hint";function d_(e){return dP(e)}function dP(e){let t=e.pattern,r={};if(r.name=e.name,c_(t)||(r.PATTERN=t),cT(e,"parent"))throw"The parent property is no longer supported.\nSee: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.";return cT(e,dC)&&(r.CATEGORIES=e[dC]),dl([r]),cT(e,dA)&&(r.LABEL=e[dA]),cT(e,dS)&&(r.GROUP=e[dS]),cT(e,dx)&&(r.POP_MODE=e[dx]),cT(e,dk)&&(r.PUSH_MODE=e[dk]),cT(e,dN)&&(r.LONGER_ALT=e[dN]),cT(e,dw)&&(r.LINE_BREAKS=e[dw]),cT(e,dI)&&(r.START_CHARS_HINT=e[dI]),r}tf(d_,"createToken"),tf(dP,"createTokenInternal");var dD=d_({name:"EOF",pattern:d$.NA});function dO(e,t,r,n,i,a,s,o){return{image:t,startOffset:r,endOffset:n,startLine:i,endLine:a,startColumn:s,endColumn:o,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function dL(e,t){return dn(e,t)}dl([dD]),tf(dO,"createTokenInstance"),tf(dL,"tokenMatcher");var dM={buildMismatchTokenMessage({expected:e,actual:t,previous:r,ruleName:n}){let i=dE(e)?`--> ${db(e)} <--`:`token of type --> ${e.name} <--`;return`Expecting ${i} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage:({firstRedundant:e,ruleName:t})=>"Redundant input, expecting EOF but found: "+e.image,buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:r,customUserDescription:n,ruleName:i}){let a="Expecting: ",s="\nbut found: '"+cp(t).image+"'";if(n)return a+n+s;{let t=cf(cj(e,(e,t)=>e.concat(t),[]),e=>`[${cf(e,e=>db(e)).join(", ")}]`),r=cf(t,(e,t)=>` ${t+1}. ${e}`);return a+`one of these possible Token sequences:
|
|
45
|
+
${r.join("\n")}`+s}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:r,ruleName:n}){let i="Expecting: ",a="\nbut found: '"+cp(t).image+"'";if(r)return i+r+a;{let t=cf(e,e=>`[${cf(e,e=>db(e)).join(",")}]`);return i+`expecting at least one iteration which starts with one of these possible Token sequences::
|
|
46
|
+
<${t.join(" ,")}>`+a}}};Object.freeze(dM);var dj={buildRuleNotFoundError:(e,t)=>"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"},dF={buildDuplicateFoundError(e,t){function r(e){return e instanceof c8?e.terminalType.name:e instanceof cZ?e.nonTerminalName:""}tf(r,"getExtraProductionArgument");let n=e.name,i=cp(t),a=i.idx,s=pi(i),o=r(i),l=`->${s}${a>0?a:""}<- ${o?`with argument: ->${o}<-`:""}
|
|
47
|
+
appears more than once (${t.length} times) in the top level rule: ->${n}<-.
|
|
48
|
+
For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
|
|
49
|
+
`;return(l=l.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildNamespaceConflictError:e=>`Namespace conflict found in grammar.
|
|
50
|
+
The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.
|
|
51
|
+
To resolve this make sure each Terminal and Non-Terminal names are unique
|
|
52
|
+
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
|
|
53
|
+
and Non-Terminal names start with a lower case letter.`,buildAlternationPrefixAmbiguityError(e){let t=cf(e.prefixPath,e=>db(e)).join(", "),r=0===e.alternation.idx?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix
|
|
54
|
+
in <OR${r}> inside <${e.topLevelRule.name}> Rule,
|
|
55
|
+
<${t}> may appears as a prefix path in all these alternatives.
|
|
56
|
+
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
|
|
57
|
+
For Further details.`},buildAlternationAmbiguityError(e){let t=cf(e.prefixPath,e=>db(e)).join(", "),r=0===e.alternation.idx?"":e.alternation.idx,n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in <OR${r}> inside <${e.topLevelRule.name}> Rule,
|
|
58
|
+
<${t}> may appears as a prefix path in all these alternatives.
|
|
59
|
+
`;return n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
|
60
|
+
For Further details.`},buildEmptyRepetitionError(e){let t=pi(e.repetition);return 0!==e.repetition.idx&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.
|
|
61
|
+
This could lead to an infinite loop.`},buildTokenNameError:e=>"deprecated",buildEmptyAlternationError:e=>`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
|
|
62
|
+
Only the last alternative may be an empty alternative.`,buildTooManyAlternativesError:e=>`An Alternation cannot have more than 256 alternatives:
|
|
63
|
+
<OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
|
|
64
|
+
has ${e.alternation.definition.length+1} alternatives.`,buildLeftRecursionError(e){let t=e.topLevelRule.name,r=cf(e.leftRecursionPath,e=>e.name),n=`${t} --> ${r.concat([t]).join(" --\x3e ")}`;return`Left Recursion found in grammar.
|
|
65
|
+
rule: <${t}> can be invoked from itself (directly or indirectly)
|
|
66
|
+
without consuming any Tokens. The grammar path that causes this is:
|
|
67
|
+
${n}
|
|
68
|
+
To fix this refactor your grammar to remove the left recursion.
|
|
69
|
+
see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError:e=>"deprecated",buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof cQ?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};function dz(e,t){let r=new dq(e,t);return r.resolveRefs(),r.errors}tf(dz,"resolveGrammar");var dq=class extends pe{static{tf(this,"GastRefResolverVisitor")}constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){ct(cb(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:eF.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},dG=class extends pa{static{tf(this,"AbstractNextPossibleTokensWalker")}constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=ud(this.path.ruleStack).reverse(),this.occurrenceStack=ud(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,r){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let n=t.concat(r);this.updateExpectedNext(),this.walk(e.referencedRule,n)}}updateExpectedNext(){cx(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},dU=class extends dG{static{tf(this,"NextAfterTokenWalker")}constructor(e,t){super(e,t),this.path=t,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,r){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let e=new c0({definition:t.concat(r)});this.possibleTokTypes=po(e),this.found=!0}}},dK=class extends pa{static{tf(this,"AbstractNextTerminalAfterProductionWalker")}constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},dW=class extends dK{static{tf(this,"NextTerminalAfterManyWalker")}walkMany(e,t,r){if(e.idx===this.occurrence){let e=cp(t.concat(r));this.result.isEndOfRule=void 0===e,e instanceof c8&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,r)}},dB=class extends dK{static{tf(this,"NextTerminalAfterManySepWalker")}walkManySep(e,t,r){if(e.idx===this.occurrence){let e=cp(t.concat(r));this.result.isEndOfRule=void 0===e,e instanceof c8&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,r)}},dV=class extends dK{static{tf(this,"NextTerminalAfterAtLeastOneWalker")}walkAtLeastOne(e,t,r){if(e.idx===this.occurrence){let e=cp(t.concat(r));this.result.isEndOfRule=void 0===e,e instanceof c8&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,r)}},dH=class extends dK{static{tf(this,"NextTerminalAfterAtLeastOneSepWalker")}walkAtLeastOneSep(e,t,r){if(e.idx===this.occurrence){let e=cp(t.concat(r));this.result.isEndOfRule=void 0===e,e instanceof c8&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,r)}};function dY(e,t,r=[]){r=ud(r);let n=[],i=0;function a(t){return t.concat(u7(e,i+1))}function s(e){let i=dY(a(e),t,r);return n.concat(i)}for(tf(a,"remainingPathWith"),tf(s,"getAlternativesForProd");r.length<t&&i<e.length;){let t=e[i];if(t instanceof c0)return s(t.definition);if(t instanceof cZ)return s(t.definition);if(t instanceof c1)n=s(t.definition);else if(t instanceof c2)return s(t.definition.concat([new c9({definition:t.definition})]));else if(t instanceof c3)return s([new c0({definition:t.definition}),new c9({definition:[new c8({terminalType:t.separator})].concat(t.definition)})]);else if(t instanceof c4)n=s(t.definition.concat([new c9({definition:[new c8({terminalType:t.separator})].concat(t.definition)})]));else if(t instanceof c9)n=s(t.definition.concat([new c9({definition:t.definition})]));else if(t instanceof c5)return ct(t.definition,e=>{!1===cx(e.definition)&&(n=s(e.definition))}),n;else if(t instanceof c8)r.push(t.terminalType);else throw Error("non exhaustive match");i++}return n.push({partialPath:r,suffixDef:u7(e,i)}),n}function dX(e,t,r,n){let i="EXIT_NONE_TERMINAL",a=[i],s="EXIT_ALTERNATIVE",o=!1,l=t.length,u=l-n-1,c=[],p=[];for(p.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!cx(p);){let e=p.pop();if(e===s){o&&u8(p).idx<=u&&p.pop();continue}let n=e.def,d=e.idx,f=e.ruleStack,h=e.occurrenceStack;if(cx(n))continue;let m=n[0];if(m===i){let e={idx:d,def:u7(n),ruleStack:u6(f),occurrenceStack:u6(h)};p.push(e)}else if(m instanceof c8)if(d<l-1){let e=d+1;if(r(t[e],m.terminalType)){let t={idx:e,def:u7(n),ruleStack:f,occurrenceStack:h};p.push(t)}}else if(d===l-1)c.push({nextTokenType:m.terminalType,nextTokenOccurrence:m.idx,ruleStack:f,occurrenceStack:h}),o=!0;else throw Error("non exhaustive match");else if(m instanceof cZ){let e=ud(f);e.push(m.nonTerminalName);let t=ud(h);t.push(m.idx);let r={idx:d,def:m.definition.concat(a,u7(n)),ruleStack:e,occurrenceStack:t};p.push(r)}else if(m instanceof c1){let e={idx:d,def:u7(n),ruleStack:f,occurrenceStack:h};p.push(e),p.push(s);let t={idx:d,def:m.definition.concat(u7(n)),ruleStack:f,occurrenceStack:h};p.push(t)}else if(m instanceof c2){let e=new c9({definition:m.definition,idx:m.idx}),t={idx:d,def:m.definition.concat([e],u7(n)),ruleStack:f,occurrenceStack:h};p.push(t)}else if(m instanceof c3){let e=new c9({definition:[new c8({terminalType:m.separator})].concat(m.definition),idx:m.idx}),t={idx:d,def:m.definition.concat([e],u7(n)),ruleStack:f,occurrenceStack:h};p.push(t)}else if(m instanceof c4){let e={idx:d,def:u7(n),ruleStack:f,occurrenceStack:h};p.push(e),p.push(s);let t=new c9({definition:[new c8({terminalType:m.separator})].concat(m.definition),idx:m.idx}),r={idx:d,def:m.definition.concat([t],u7(n)),ruleStack:f,occurrenceStack:h};p.push(r)}else if(m instanceof c9){let e={idx:d,def:u7(n),ruleStack:f,occurrenceStack:h};p.push(e),p.push(s);let t=new c9({definition:m.definition,idx:m.idx}),r={idx:d,def:m.definition.concat([t],u7(n)),ruleStack:f,occurrenceStack:h};p.push(r)}else if(m instanceof c5)for(let e=m.definition.length-1;e>=0;e--){let t={idx:d,def:m.definition[e].definition.concat(u7(n)),ruleStack:f,occurrenceStack:h};p.push(t),p.push(s)}else if(m instanceof c0)p.push({idx:d,def:m.definition.concat(u7(n)),ruleStack:f,occurrenceStack:h});else if(m instanceof cQ)p.push(dJ(m,d,f,h));else throw Error("non exhaustive match")}return c}function dJ(e,t,r,n){let i=ud(r);i.push(e.name);let a=ud(n);return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}function dZ(e){if(e instanceof c1||"Option"===e)return eM.OPTION;if(e instanceof c9||"Repetition"===e)return eM.REPETITION;if(e instanceof c2||"RepetitionMandatory"===e)return eM.REPETITION_MANDATORY;if(e instanceof c3||"RepetitionMandatoryWithSeparator"===e)return eM.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof c4||"RepetitionWithSeparator"===e)return eM.REPETITION_WITH_SEPARATOR;else if(e instanceof c5||"Alternation"===e)return eM.ALTERNATION;else throw Error("non exhaustive match")}function dQ(e){let{occurrence:t,rule:r,prodType:n,maxLookahead:i}=e,a=dZ(n);return a===eM.ALTERNATION?fe(t,r,i):ft(t,r,a,i)}function d0(e,t,r,n,i,a){let s=fe(e,t,r),o=fi(s)?di:dn;return a(s,n,o,i)}function d1(e,t,r,n,i,a){let s=ft(e,t,i,r),o=fi(s)?di:dn;return a(s[0],o,n)}function d2(e,t,r,n){let i=e.length,a=ci(e,e=>ci(e,e=>1===e.length));if(t)return function(t){let n=cf(t,e=>e.GATE);for(let t=0;t<i;t++){let i=e[t],a=i.length,s=n[t];if(void 0===s||!1!==s.call(this))r:for(let e=0;e<a;e++){let n=i[e],a=n.length;for(let e=0;e<a;e++)if(!1===r(this.LA(e+1),n[e]))continue r;return t}}};if(!a||n)return function(){for(let t=0;t<i;t++){let n=e[t],i=n.length;r:for(let e=0;e<i;e++){let i=n[e],a=i.length;for(let e=0;e<a;e++)if(!1===r(this.LA(e+1),i[e]))continue r;return t}}};{let t=cj(cf(e,e=>lu(e)),(e,t,r)=>(ct(t,t=>{cT(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=r),ct(t.categoryMatches,t=>{cT(e,t)||(e[t]=r)})}),e),{});return function(){return t[this.LA(1).tokenTypeIdx]}}}function d3(e,t,r){let n=ci(e,e=>1===e.length),i=e.length;if(!n||r)return function(){r:for(let r=0;r<i;r++){let n=e[r],i=n.length;for(let e=0;e<i;e++)if(!1===t(this.LA(e+1),n[e]))continue r;return!0}return!1};{let t=lu(e);if(1===t.length&&cx(t[0].categoryMatches)){let e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{let e=cj(t,(e,t,r)=>(e[t.tokenTypeIdx]=!0,ct(t.categoryMatches,t=>{e[t]=!0}),e),[]);return function(){return!0===e[this.LA(1).tokenTypeIdx]}}}}tf(dY,"possiblePathsFrom"),tf(dX,"nextPossibleTokensAfter"),tf(dJ,"expandTopLevelRule"),function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"}(eM||(eM={})),tf(dZ,"getProdType"),tf(dQ,"getLookaheadPaths"),tf(d0,"buildLookaheadFuncForOr"),tf(d1,"buildLookaheadFuncForOptionalProd"),tf(d2,"buildAlternativesLookAheadFunc"),tf(d3,"buildSingleAlternativeLookaheadFunction");var d9=class extends pa{static{tf(this,"RestDefinitionFinderWalker")}constructor(e,t,r){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=r}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,r,n){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=r.concat(n),!0)}walkOption(e,t,r){this.checkIsTarget(e,eM.OPTION,t,r)||super.walkOption(e,t,r)}walkAtLeastOne(e,t,r){this.checkIsTarget(e,eM.REPETITION_MANDATORY,t,r)||super.walkOption(e,t,r)}walkAtLeastOneSep(e,t,r){this.checkIsTarget(e,eM.REPETITION_MANDATORY_WITH_SEPARATOR,t,r)||super.walkOption(e,t,r)}walkMany(e,t,r){this.checkIsTarget(e,eM.REPETITION,t,r)||super.walkOption(e,t,r)}walkManySep(e,t,r){this.checkIsTarget(e,eM.REPETITION_WITH_SEPARATOR,t,r)||super.walkOption(e,t,r)}},d4=class extends pe{static{tf(this,"InsideDefinitionFinderVisitor")}constructor(e,t,r){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=r,this.result=[]}checkIsTarget(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(void 0===this.targetRef||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,eM.OPTION)}visitRepetition(e){this.checkIsTarget(e,eM.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,eM.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,eM.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,eM.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,eM.ALTERNATION)}};function d5(e){let t=Array(e);for(let r=0;r<e;r++)t[r]=[];return t}function d8(e){let t=[""];for(let r=0;r<e.length;r++){let n=e[r],i=[];for(let e=0;e<t.length;e++){let r=t[e];i.push(r+"_"+n.tokenTypeIdx);for(let e=0;e<n.categoryMatches.length;e++){let t="_"+n.categoryMatches[e];i.push(r+t)}}t=i}return t}function d7(e,t,r){for(let n=0;n<e.length;n++){if(n===r)continue;let i=e[n];for(let e=0;e<t.length;e++)if(!0===i[t[e]])return!1}return!0}function d6(e,t){let r=cf(e,e=>dY([e],1)),n=d5(r.length),i=cf(r,e=>{let t={};return ct(e,e=>{ct(d8(e.partialPath),e=>{t[e]=!0})}),t}),a=r;for(let e=1;e<=t;e++){let r=a;a=d5(r.length);for(let s=0;s<r.length;s++){let o=r[s];for(let r=0;r<o.length;r++){let l=o[r].partialPath,u=o[r].suffixDef,c=d8(l);if(d7(i,c,s)||cx(u)||l.length===t){let e=n[s];if(!1===fr(e,l)){e.push(l);for(let e=0;e<c.length;e++){let t=c[e];i[s][t]=!0}}}else{let t=dY(u,e+1,l);a[s]=a[s].concat(t),ct(t,e=>{ct(d8(e.partialPath),e=>{i[s][e]=!0})})}}}}return n}function fe(e,t,r,n){let i=new d4(e,eM.ALTERNATION,n);return t.accept(i),d6(i.result,r)}function ft(e,t,r,n){let i=new d4(e,r);t.accept(i);let a=i.result,s=new d9(t,e,r).startWalking();return d6([new c0({definition:a}),new c0({definition:s})],n)}function fr(e,t){n:for(let r=0;r<e.length;r++){let n=e[r];if(n.length===t.length){for(let e=0;e<n.length;e++){let r=t[e],i=n[e];if(!1==(r===i||void 0!==i.categoryMatchesMap[r.tokenTypeIdx]))continue n}return!0}}return!1}function fn(e,t){return e.length<t.length&&ci(e,(e,r)=>{let n=t[r];return e===n||n.categoryMatchesMap[e.tokenTypeIdx]})}function fi(e){return ci(e,e=>ci(e,e=>ci(e,e=>cx(e.categoryMatches))))}function fa(e){return cf(e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}),e=>Object.assign({type:eF.CUSTOM_LOOKAHEAD_VALIDATION},e))}function fs(e,t,r,n){let i=ch(e,e=>fo(e,r)),a=fE(e,t,r),s=ch(e,e=>fT(e,r)),o=ch(e,t=>fp(t,e,n,r));return i.concat(a,s,o)}function fo(e,t){let r=new fc;return e.accept(r),cf(cb(cL(cy(r.allProductions,fl),e=>e.length>1)),r=>{let n=cp(r),i=t.buildDuplicateFoundError(e,r),a=pi(n),s={message:i,type:eF.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:a,occurrence:n.idx},o=fu(n);return o&&(s.parameter=o),s})}function fl(e){return`${pi(e)}_#_${e.idx}_#_${fu(e)}`}function fu(e){return e instanceof c8?e.terminalType.name:e instanceof cZ?e.nonTerminalName:""}tf(d5,"initializeArrayOfArrays"),tf(d8,"pathToHashKeys"),tf(d7,"isUniquePrefixHash"),tf(d6,"lookAheadSequenceFromAlternatives"),tf(fe,"getLookaheadPathsForOr"),tf(ft,"getLookaheadPathsForOptionalProd"),tf(fr,"containsPath"),tf(fn,"isStrictPrefixOfPath"),tf(fi,"areTokenCategoriesNotUsed"),tf(fa,"validateLookahead"),tf(fs,"validateGrammar"),tf(fo,"validateDuplicateProductions"),tf(fl,"identifyProductionForDuplicates"),tf(fu,"getExtraProductionArgument");var fc=class extends pe{static{tf(this,"OccurrenceValidationCollector")}constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}};function fp(e,t,r,n){let i=[];if(cj(t,(t,r)=>r.name===e.name?t+1:t,0)>1){let t=n.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});i.push({message:t,type:eF.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}function fd(e,t,r){let n=[];return cC(t,e)||n.push({message:`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,type:eF.INVALID_RULE_OVERRIDE,ruleName:e}),n}function ff(e,t,r,n=[]){let i=[],a=fh(t.definition);if(cx(a))return[];{let t=e.name;cC(a,e)&&i.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:n}),type:eF.LEFT_RECURSION,ruleName:t});let s=ch(u5(a,n.concat([e])),t=>{let i=ud(n);return i.push(t),ff(e,t,r,i)});return i.concat(s)}}function fh(e){let t=[];if(cx(e))return t;let r=cp(e);if(r instanceof cZ)t.push(r.referencedRule);else if(r instanceof c0||r instanceof c1||r instanceof c2||r instanceof c3||r instanceof c4||r instanceof c9)t=t.concat(fh(r.definition));else if(r instanceof c5)t=lu(cf(r.definition,e=>fh(e.definition)));else if(r instanceof c8);else throw Error("non exhaustive match");let n=pr(r),i=e.length>1;if(!n||!i)return t;{let r=u7(e);return t.concat(fh(r))}}tf(fp,"validateRuleDoesNotAlreadyExist"),tf(fd,"validateRuleIsOverridden"),tf(ff,"validateNoLeftRecursion"),tf(fh,"getFirstNoneTerminal");var fm=class extends pe{static{tf(this,"OrCollector")}constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};function fy(e,t){let r=new fm;return e.accept(r),ch(r.alternations,r=>ch(u6(r.definition),(n,i)=>cx(dX([n],[],dn,1))?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:r,emptyChoiceIdx:i}),type:eF.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:r.idx,alternative:i+1}]:[]))}function fg(e,t,r){let n=new fm;e.accept(n);let i=n.alternations;return ch(i=cF(i,e=>!0===e.ignoreAmbiguities),n=>{let i=fe(n.idx,e,n.maxLookahead||t,n),a=f$(i,n,e,r),s=fb(i,n,e,r);return a.concat(s)})}tf(fy,"validateEmptyOrAlternative"),tf(fg,"validateAmbiguousAlternationAlternatives");var fv=class extends pe{static{tf(this,"RepetitionCollector")}constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}};function fT(e,t){let r=new fm;return e.accept(r),ch(r.alternations,r=>r.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:r}),type:eF.TOO_MANY_ALTS,ruleName:e.name,occurrence:r.idx}]:[])}function fR(e,t,r){let n=[];return ct(e,e=>{let i=new fv;e.accept(i),ct(i.allProductions,i=>{let a=dZ(i),s=i.maxLookahead||t;if(cx(lu(ft(i.idx,e,a,s)[0]))){let t=r.buildEmptyRepetitionError({topLevelRule:e,repetition:i});n.push({message:t,type:eF.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),n}function f$(e,t,r,n){let i=[];return cf(cj(e,(r,n,a)=>(!0===t.definition[a].ignoreAmbiguities||ct(n,n=>{let s=[a];ct(e,(e,r)=>{a!==r&&fr(e,n)&&!0!==t.definition[r].ignoreAmbiguities&&s.push(r)}),s.length>1&&!fr(i,n)&&(i.push(n),r.push({alts:s,path:n}))}),r),[]),e=>{let i=cf(e.alts,e=>e+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:eF.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:e.alts}})}function fb(e,t,r,n){let i=cj(e,(e,t,r)=>{let n=cf(t,e=>({idx:r,path:e}));return e.concat(n)},[]);return uf(ch(i,e=>{if(!0===t.definition[e.idx].ignoreAmbiguities)return[];let a=e.idx,s=e.path;return cf(cs(i,e=>!0!==t.definition[e.idx].ignoreAmbiguities&&e.idx<a&&fn(e.path,s)),e=>{let i=[e.idx+1,a+1],s=0===t.idx?"":t.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:eF.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:s,alternatives:i}})}))}function fE(e,t,r){let n=[],i=cf(t,e=>e.name);return ct(e,e=>{let t=e.name;if(cC(i,t)){let i=r.buildNamespaceConflictError(e);n.push({message:i,type:eF.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),n}function fC(e){let t=u2(e,{errMsgProvider:dj}),r={};return ct(e.rules,e=>{r[e.name]=e}),dz(r,t.errMsgProvider)}function fA(e){return fs((e=u2(e,{errMsgProvider:dF})).rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}tf(fT,"validateTooManyAlts"),tf(fR,"validateSomeNonEmptyLookaheadPath"),tf(f$,"checkAlternativesAmbiguities"),tf(fb,"checkPrefixAlternativesAmbiguities"),tf(fE,"checkTerminalAndNoneTerminalsNameSpace"),tf(fC,"resolveGrammar"),tf(fA,"validateGrammar");var fS="MismatchedTokenException",fk="NoViableAltException",fx="EarlyExitException",fN="NotAllInputParsedException",fw=[fS,fk,fx,fN];function fI(e){return cC(fw,e.name)}Object.freeze(fw),tf(fI,"isRecognitionException");var f_=class extends Error{static{tf(this,"RecognitionException")}constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},fP=class extends f_{static{tf(this,"MismatchedTokenException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=fS}},fD=class extends f_{static{tf(this,"NoViableAltException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=fk}},fO=class extends f_{static{tf(this,"NotAllInputParsedException")}constructor(e,t){super(e,t),this.name=fN}},fL=class extends f_{static{tf(this,"EarlyExitException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=fx}},fM={},fj="InRuleRecoveryException",fF=class extends Error{static{tf(this,"InRuleRecoveryException")}constructor(e){super(e),this.name=fj}},fz=class{static{tf(this,"Recoverable")}initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=cT(e,"recoveryEnabled")?e.recoveryEnabled:hp.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=fq)}getTokenToInsert(e){let t=dO(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,r,n){let i=this.findReSyncTokenType(),a=this.exportLexerState(),s=[],o=!1,l=this.LA(1),u=this.LA(1),c=tf(()=>{let e=this.LA(0),t=new fP(this.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),l,this.LA(0));t.resyncedTokens=u6(s),this.SAVE_ERROR(t)},"generateErrorMessage");for(;!o;)if(this.tokenMatcher(u,n))return void c();else if(r.call(this)){c(),e.apply(this,t);return}else this.tokenMatcher(u,i)?o=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,s));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,r){return!(!1===r||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getFollowsForInRuleRecovery(e,t){let r=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(r)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new fF("sad sad panda")}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||cx(t))return!1;let r=this.LA(1);return void 0!==cc(t,e=>this.tokenMatcher(r,e))}canRecoverWithSingleTokenDeletion(e){return!!this.canTokenTypeBeDeletedInRecovery(e)&&this.tokenMatcher(this.LA(2),e)}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return cC(this.getFollowSetFromFollowKey(t),e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA(1),r=2;for(;;){let n=cc(e,e=>dL(t,e));if(void 0!==n)return n;t=this.LA(r),r++}}getCurrFollowKey(){if(1===this.RULE_STACK.length)return fM;let e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(r)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return cf(e,(r,n)=>0===n?fM:{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:t[n],inRule:this.shortRuleNameToFullName(e[n-1])})}flattenFollowSet(){return lu(cf(this.buildFullFollowKeyStack(),e=>this.getFollowSetFromFollowKey(e)))}getFollowSetFromFollowKey(e){if(e===fM)return[dD];let t=e.ruleName+e.idxInCallingRule+pp+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,dD)||t.push(e),t}reSyncTo(e){let t=[],r=this.LA(1);for(;!1===this.tokenMatcher(r,e);)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,t);return u6(t)}attemptInRepetitionRecovery(e,t,r,n,i,a,s){}getCurrentGrammarPath(e,t){let r=this.getHumanReadableRuleStack();return{ruleStack:r,occurrenceStack:ud(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return cf(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}};function fq(e,t,r,n,i,a,s){let o=this.getKeyForAutomaticLookahead(n,i),l=this.firstAfterRepMap[o];if(void 0===l){let e=this.getCurrRuleFullName();l=new a(this.getGAstProductions()[e],i).startWalking(),this.firstAfterRepMap[o]=l}let u=l.token,c=l.occurrence,p=l.isEndOfRule;1===this.RULE_STACK.length&&p&&void 0===u&&(u=dD,c=1),void 0!==u&&void 0!==c&&this.shouldInRepetitionRecoveryBeTried(u,c,s)&&this.tryInRepetitionRecovery(e,t,r,u)}tf(fq,"attemptInRepetitionRecovery");function fG(e,t,r){return r|t|e}tf(fG,"getKeyForAutomaticLookahead");var fU=class{static{tf(this,"LLkLookaheadStrategy")}constructor(e){var t;this.maxLookahead=null!=(t=null==e?void 0:e.maxLookahead)?t:hp.maxLookahead}validate(e){let t=this.validateNoLeftRecursion(e.rules);if(cx(t)){let r=this.validateEmptyOrAlternatives(e.rules);return[...t,...r,...this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),...this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead)]}return t}validateNoLeftRecursion(e){return ch(e,e=>ff(e,e,dF))}validateEmptyOrAlternatives(e){return ch(e,e=>fy(e,dF))}validateAmbiguousAlternationAlternatives(e,t){return ch(e,e=>fg(e,t,dF))}validateSomeNonEmptyLookaheadPath(e,t){return fR(e,t,dF)}buildLookaheadForAlternation(e){return d0(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,d2)}buildLookaheadForOptional(e){return d1(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,dZ(e.prodType),d3)}},fK=class{static{tf(this,"LooksAhead")}initLooksAhead(e){this.dynamicTokensEnabled=cT(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:hp.dynamicTokensEnabled,this.maxLookahead=cT(e,"maxLookahead")?e.maxLookahead:hp.maxLookahead,this.lookaheadStrategy=cT(e,"lookaheadStrategy")?e.lookaheadStrategy:new fU({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){ct(e,e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{let{alternation:t,repetition:r,option:n,repetitionMandatory:i,repetitionMandatoryWithSeparator:a,repetitionWithSeparator:s}=fB(e);ct(t,t=>{let r=0===t.idx?"":t.idx;this.TRACE_INIT(`${pi(t)}${r}`,()=>{let r=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),n=fG(this.fullRuleNameToShort[e.name],256,t.idx);this.setLaFuncCache(n,r)})}),ct(r,t=>{this.computeLookaheadFunc(e,t.idx,768,"Repetition",t.maxLookahead,pi(t))}),ct(n,t=>{this.computeLookaheadFunc(e,t.idx,512,"Option",t.maxLookahead,pi(t))}),ct(i,t=>{this.computeLookaheadFunc(e,t.idx,1024,"RepetitionMandatory",t.maxLookahead,pi(t))}),ct(a,t=>{this.computeLookaheadFunc(e,t.idx,1536,"RepetitionMandatoryWithSeparator",t.maxLookahead,pi(t))}),ct(s,t=>{this.computeLookaheadFunc(e,t.idx,1280,"RepetitionWithSeparator",t.maxLookahead,pi(t))})})})}computeLookaheadFunc(e,t,r,n,i,a){this.TRACE_INIT(`${a}${0===t?"":t}`,()=>{let a=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:n}),s=fG(this.fullRuleNameToShort[e.name],r,t);this.setLaFuncCache(s,a)})}getKeyForAutomaticLookahead(e,t){return fG(this.getLastExplicitRuleShortName(),e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},fW=new class extends pe{static{tf(this,"DslMethodsCollectorVisitor")}constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}};function fB(e){fW.reset(),e.accept(fW);let t=fW.dslMethods;return fW.reset(),t}function fV(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset)}function fH(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function fY(e,t,r){void 0===e.children[r]?e.children[r]=[t]:e.children[r].push(t)}function fX(e,t,r){void 0===e.children[t]?e.children[t]=[r]:e.children[t].push(r)}function fJ(e,t){Object.defineProperty(e,"name",{enumerable:!1,configurable:!0,writable:!1,value:t})}function fZ(e,t){let r=ob(e),n=r.length;for(let i=0;i<n;i++){let n=e[r[i]],a=n.length;for(let e=0;e<a;e++){let r=n[e];void 0===r.tokenTypeIdx&&this[r.name](r.children,t)}}}function fQ(e,t){let r=tf(function(){},"derivedConstructor");return fJ(r,e+"BaseSemantics"),r.prototype={visit:tf(function(e,t){if(a3(e)&&(e=e[0]),!c_(e))return this[e.name](e.children,t)},"visit"),validateVisitor:tf(function(){let e=f1(this,t);if(!cx(e)){let t=cf(e,e=>e.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
|
|
70
|
+
${t.join("\n\n").replace(/\n/g,"\n ")}`)}},"validateVisitor")},r.prototype.constructor=r,r._RULE_NAMES=t,r}function f0(e,t,r){let n=tf(function(){},"derivedConstructor");fJ(n,e+"BaseSemanticsWithDefaults");let i=Object.create(r.prototype);return ct(t,e=>{i[e]=fZ}),n.prototype=i,n.prototype.constructor=n,n}function f1(e,t){return f2(e,t)}function f2(e,t){return uf(cf(cs(t,t=>!1===sf(e[t])),t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:ej.MISSING_METHOD,methodName:t})))}tf(fB,"collectMethods"),tf(fV,"setNodeLocationOnlyOffset"),tf(fH,"setNodeLocationFull"),tf(fY,"addTerminalToCst"),tf(fX,"addNoneTerminalToCst"),tf(fJ,"defineNameProp"),tf(fZ,"defaultVisit"),tf(fQ,"createBaseSemanticVisitorConstructor"),tf(f0,"createBaseVisitorConstructorWithDefaults"),function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"}(ej||(ej={})),tf(f1,"validateVisitor"),tf(f2,"validateMissingCstMethods");var f3=class{static{tf(this,"TreeBuilder")}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=cT(e,"nodeLocationTracking")?e.nodeLocationTracking:hp.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=fH,this.setNodeLocationFromNode=fH,this.cstPostRule=sI,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=sI,this.setNodeLocationFromNode=sI,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=fV,this.setNodeLocationFromNode=fV,this.cstPostRule=sI,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=sI,this.setNodeLocationFromNode=sI,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=sI,this.setNodeLocationFromNode=sI,this.cstPostRule=sI,this.setInitialNodeLocation=sI;else throw Error(`Invalid <nodeLocationTracking> config option: "${e.nodeLocationTracking}"`);else this.cstInvocationStateUpdate=sI,this.cstFinallyStateUpdate=sI,this.cstPostTerminal=sI,this.cstPostNonTerminal=sI,this.cstPostRule=sI}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){let t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),r=e.location;r.startOffset<=t.startOffset==!0?(r.endOffset=t.endOffset,r.endLine=t.endLine,r.endColumn=t.endColumn):(r.startOffset=NaN,r.startLine=NaN,r.startColumn=NaN)}cstPostRuleOnlyOffset(e){let t=this.LA(0),r=e.location;r.startOffset<=t.startOffset==!0?r.endOffset=t.endOffset:r.startOffset=NaN}cstPostTerminal(e,t){let r=this.CST_STACK[this.CST_STACK.length-1];fY(r,t,e),this.setNodeLocationFromToken(r.location,t)}cstPostNonTerminal(e,t){let r=this.CST_STACK[this.CST_STACK.length-1];fX(r,t,e),this.setNodeLocationFromNode(r.location,e.location)}getBaseCstVisitorConstructor(){if(c_(this.baseCstVisitorConstructor)){let e=fQ(this.className,ob(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(c_(this.baseCstVisitorWithDefaultsConstructor)){let e=f0(this.className,ob(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){let e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},f9=class{static{tf(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):hc}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?hc:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},f4=class{static{tf(this,"RecognizerApi")}ACTION(e){return e.call(this)}consume(e,t,r){return this.consumeInternal(t,e,r)}subrule(e,t,r){return this.subruleInternal(t,e,r)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,r=hd){if(cC(this.definedRulesNames,e)){let t={message:dF.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:eF.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);let n=this.defineRule(e,t,r);return this[e]=n,n}OVERRIDE_RULE(e,t,r=hd){let n=fd(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(n);let i=this.defineRule(e,t,r);return this[e]=i,i}BACKTRACK(e,t){return function(){this.isBackTrackingStack.push(1);let r=this.saveRecogState();try{return e.apply(this,t),!0}catch(e){if(fI(e))return!1;throw e}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return c7(cb(this.gastProductionsCache))}},f5=class{static{tf(this,"RecognizerEngine")}initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=di,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},cT(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n For Further details.");if(a3(e)){if(cx(e))throw Error("A Token Vocabulary cannot be empty.\n Note that the first argument for the parser constructor\n is no longer a Token vector (since v4.0).");if("number"==typeof e[0].startOffset)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.")}if(a3(e))this.tokensMap=cj(e,(e,t)=>(e[t.name]=t,e),{});else if(cT(e,"modes")&&ci(lu(cb(e.modes)),dv)){let t=cK(lu(cb(e.modes)));this.tokensMap=cj(t,(e,t)=>(e[t.name]=t,e),{})}else if(sr(e))this.tokensMap=ud(e);else throw Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=dD;let r=ci(cT(e,"modes")?lu(cb(e.modes)):cb(e),e=>cx(e.categoryMatches));this.tokenMatcher=r?di:dn,dl(cb(this.tokensMap))}defineRule(e,t,r){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'
|
|
71
|
+
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let n=cT(r,"resyncEnabled")?r.resyncEnabled:hd.resyncEnabled,i=cT(r,"recoveryValueFunc")?r.recoveryValueFunc:hd.recoveryValueFunc,a=this.ruleShortNameIdx<<12;return this.ruleShortNameIdx++,this.shortRuleNameToFull[a]=e,this.fullRuleNameToShort[e]=a,Object.assign(!0===this.outputCst?tf(function(...r){try{this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,r);let n=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(n),n}catch(e){return this.invokeRuleCatch(e,n,i)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):tf(function(...r){try{return this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,r)}catch(e){return this.invokeRuleCatch(e,n,i)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),{ruleName:e,originalGrammarAction:t})}invokeRuleCatch(e,t,r){let n=1===this.RULE_STACK.length,i=t&&!this.isBackTracking()&&this.recoveryEnabled;if(fI(e)){if(i){let t=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(t)){if(e.resyncedTokens=this.reSyncTo(t),!this.outputCst)return r(e);{let e=this.CST_STACK[this.CST_STACK.length-1];return e.recoveredNode=!0,e}}if(this.outputCst){let t=this.CST_STACK[this.CST_STACK.length-1];t.recoveredNode=!0,e.partialCstResult=t}throw e}if(n)return this.moveToTerminatedState(),r(e)}throw e}optionInternal(e,t){let r=this.getKeyForAutomaticLookahead(512,t);return this.optionInternalLogic(e,t,r)}optionInternalLogic(e,t,r){let n,i=this.getLaFuncFromCache(r);if("function"!=typeof e){n=e.DEF;let t=e.GATE;if(void 0!==t){let e=i;i=tf(()=>t.call(this)&&e.call(this),"lookAheadFunc")}}else n=e;if(!0===i.call(this))return n.call(this)}atLeastOneInternal(e,t){let r=this.getKeyForAutomaticLookahead(1024,e);return this.atLeastOneInternalLogic(e,t,r)}atLeastOneInternalLogic(e,t,r){let n,i=this.getLaFuncFromCache(r);if("function"!=typeof t){n=t.DEF;let e=t.GATE;if(void 0!==e){let t=i;i=tf(()=>e.call(this)&&t.call(this),"lookAheadFunc")}}else n=t;if(!0===i.call(this)){let e=this.doSingleRepetition(n);for(;!0===i.call(this)&&!0===e;)e=this.doSingleRepetition(n)}else throw this.raiseEarlyExitException(e,eM.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],i,1024,e,dV)}atLeastOneSepFirstInternal(e,t){let r=this.getKeyForAutomaticLookahead(1536,e);this.atLeastOneSepFirstInternalLogic(e,t,r)}atLeastOneSepFirstInternalLogic(e,t,r){let n=t.DEF,i=t.SEP;if(!0===this.getLaFuncFromCache(r).call(this)){n.call(this);let t=tf(()=>this.tokenMatcher(this.LA(1),i),"separatorLookAheadFunc");for(;!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,n,dH],t,1536,e,dH)}else throw this.raiseEarlyExitException(e,eM.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){let r=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,t,r)}manyInternalLogic(e,t,r){let n,i=this.getLaFuncFromCache(r);if("function"!=typeof t){n=t.DEF;let e=t.GATE;if(void 0!==e){let t=i;i=tf(()=>e.call(this)&&t.call(this),"lookaheadFunction")}}else n=t;let a=!0;for(;!0===i.call(this)&&!0===a;)a=this.doSingleRepetition(n);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],i,768,e,dW,a)}manySepFirstInternal(e,t){let r=this.getKeyForAutomaticLookahead(1280,e);this.manySepFirstInternalLogic(e,t,r)}manySepFirstInternalLogic(e,t,r){let n=t.DEF,i=t.SEP;if(!0===this.getLaFuncFromCache(r).call(this)){n.call(this);let t=tf(()=>this.tokenMatcher(this.LA(1),i),"separatorLookAheadFunc");for(;!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,n,dB],t,1280,e,dB)}}repetitionSepSecondInternal(e,t,r,n,i){for(;r();)this.CONSUME(t),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,r,n,i],r,1536,e,i)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let r=this.getKeyForAutomaticLookahead(256,t),n=a3(e)?e:e.DEF,i=this.getLaFuncFromCache(r).call(this,n);if(void 0!==i)return n[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){let e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new fO(t,e))}}subruleInternal(e,t,r){let n;try{let i=void 0!==r?r.ARGS:void 0;return this.subruleIdx=t,n=e.apply(this,i),this.cstPostNonTerminal(n,void 0!==r&&void 0!==r.LABEL?r.LABEL:e.ruleName),n}catch(t){throw this.subruleInternalError(t,r,e.ruleName)}}subruleInternalError(e,t,r){throw fI(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:r),delete e.partialCstResult),e}consumeInternal(e,t,r){let n;try{let t=this.LA(1);!0===this.tokenMatcher(t,e)?(this.consumeToken(),n=t):this.consumeInternalError(e,t,r)}catch(r){n=this.consumeInternalRecovery(e,t,r)}return this.cstPostTerminal(void 0!==r&&void 0!==r.LABEL?r.LABEL:e.name,n),n}consumeInternalError(e,t,r){let n,i=this.LA(0);throw n=void 0!==r&&r.ERR_MSG?r.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new fP(n,t,i))}consumeInternalRecovery(e,t,r){if(this.recoveryEnabled&&"MismatchedTokenException"===r.name&&!this.isBackTracking()){let n=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,n)}catch(e){if(e.name===fj)throw r;throw e}}throw r}saveRecogState(){let e=this.errors,t=ud(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,t,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t)}isBackTracking(){return 0!==this.isBackTrackingStack.length}getCurrRuleFullName(){let e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),dD)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},f8=class{static{tf(this,"ErrorHandler")}initErrorHandler(e){this._errors=[],this.errorMessageProvider=cT(e,"errorMessageProvider")?e.errorMessageProvider:hp.errorMessageProvider}SAVE_ERROR(e){if(fI(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:ud(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return ud(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,r){let n=this.getCurrRuleFullName(),i=ft(e,this.getGAstProductions()[n],t,this.maxLookahead)[0],a=[];for(let e=1;e<=this.maxLookahead;e++)a.push(this.LA(e));let s=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:i,actual:a,previous:this.LA(0),customUserDescription:r,ruleName:n});throw this.SAVE_ERROR(new fL(s,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){let r=this.getCurrRuleFullName(),n=fe(e,this.getGAstProductions()[r],this.maxLookahead),i=[];for(let e=1;e<=this.maxLookahead;e++)i.push(this.LA(e));let a=this.LA(0),s=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:n,actual:i,previous:a,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new fD(s,this.LA(1),a))}},f7=class{static{tf(this,"ContentAssist")}initContentAssist(){}computeContentAssist(e,t){let r=this.gastProductionsCache[e];if(c_(r))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return dX([r],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){let t=cp(e.ruleStack);return new dU(this.getGAstProductions()[t],e).startWalking()}},f6={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(f6);var he=d_({name:"RECORDING_PHASE_TOKEN",pattern:d$.NA});dl([he]);var ht=dO(he,"This IToken indicates the Parser is in Recording Phase\n See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(ht);var hr={name:"This CSTNode indicates the Parser is in Recording Phase\n See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",children:{}},hn=class{static{tf(this,"GastRecorder")}initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){let t=e>0?e:"";this[`CONSUME${t}`]=function(t,r){return this.consumeInternalRecord(t,e,r)},this[`SUBRULE${t}`]=function(t,r){return this.subruleInternalRecord(t,e,r)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,r){return this.consumeInternalRecord(t,e,r)},this.subrule=function(e,t,r){return this.subruleInternalRecord(t,e,r)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{for(let e=0;e<10;e++){let t=e>0?e:"";delete this[`CONSUME${t}`],delete this[`SUBRULE${t}`],delete this[`OPTION${t}`],delete this[`OR${t}`],delete this[`MANY${t}`],delete this[`MANY_SEP${t}`],delete this[`AT_LEAST_ONE${t}`],delete this[`AT_LEAST_ONE_SEP${t}`]}delete this.consume,delete this.subrule,delete this.option,delete this.or,delete this.many,delete this.atLeastOne,delete this.ACTION,delete this.BACKTRACK,delete this.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return hc}topLevelRuleRecord(e,t){try{let r=new cQ({definition:[],name:e});return r.name=e,this.recordingProdStack.push(r),t.call(this),this.recordingProdStack.pop(),r}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+'\n This error was thrown during the "grammar recording phase" For more info see:\n https://chevrotain.io/docs/guide/internals.html#grammar-recording'}catch(e){}throw e}}optionInternalRecord(e,t){return hi.call(this,c1,e,t)}atLeastOneInternalRecord(e,t){hi.call(this,c2,t,e)}atLeastOneSepFirstInternalRecord(e,t){hi.call(this,c3,t,e,!0)}manyInternalRecord(e,t){hi.call(this,c9,t,e)}manySepFirstInternalRecord(e,t){hi.call(this,c4,t,e,!0)}orInternalRecord(e,t){return ha.call(this,e,t)}subruleInternalRecord(e,t,r){if(ho(t),!e||!1===cT(e,"ruleName")){let r=Error(`<SUBRULE${hs(t)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>
|
|
72
|
+
inside top level rule: <${this.recordingProdStack[0].name}>`);throw r.KNOWN_RECORDER_ERROR=!0,r}let n=u8(this.recordingProdStack),i=new cZ({idx:t,nonTerminalName:e.ruleName,label:null==r?void 0:r.LABEL,referencedRule:void 0});return n.definition.push(i),this.outputCst?hr:f6}consumeInternalRecord(e,t,r){if(ho(t),!dh(e)){let r=Error(`<CONSUME${hs(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>
|
|
73
|
+
inside top level rule: <${this.recordingProdStack[0].name}>`);throw r.KNOWN_RECORDER_ERROR=!0,r}let n=u8(this.recordingProdStack),i=new c8({idx:t,terminalType:e,label:null==r?void 0:r.LABEL});return n.definition.push(i),ht}};function hi(e,t,r,n=!1){ho(r);let i=u8(this.recordingProdStack),a=sf(t)?t:t.DEF,s=new e({definition:[],idx:r});return n&&(s.separator=t.SEP),cT(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),i.definition.push(s),this.recordingProdStack.pop(),f6}function ha(e,t){ho(t);let r=u8(this.recordingProdStack),n=!1===a3(e),i=!1===n?e:e.DEF,a=new c5({definition:[],idx:t,ignoreAmbiguities:n&&!0===e.IGNORE_AMBIGUITIES});return cT(e,"MAX_LOOKAHEAD")&&(a.maxLookahead=e.MAX_LOOKAHEAD),a.hasPredicates=cq(i,e=>sf(e.GATE)),r.definition.push(a),ct(i,e=>{let t=new c0({definition:[]});a.definition.push(t),cT(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:cT(e,"GATE")&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),f6}function hs(e){return 0===e?"":`${e}`}function ho(e){if(e<0||e>255){let t=Error(`Invalid DSL Method idx value: <${e}>
|
|
74
|
+
Idx value must be a none negative value smaller than ${256}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}tf(hi,"recordProd"),tf(ha,"recordOrProd"),tf(hs,"getIdxSuffix"),tf(ho,"assertMethodIdxIsValid");var hl=class{static{tf(this,"PerformanceTracer")}initPerformanceTracer(e){if(cT(e,"traceInitPerf")){let t=e.traceInitPerf,r="number"==typeof t;this.traceInitMaxIdent=r?t:1/0,this.traceInitPerf=r?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=hp.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(!0!==this.traceInitPerf)return t();{this.traceInitIndent++;let r=Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${r}--> <${e}>`);let{time:n,value:i}=cV(t),a=n>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&a(`${r}<-- <${e}> time: ${n}ms`),this.traceInitIndent--,i}}};function hu(e,t){t.forEach(t=>{let r=t.prototype;Object.getOwnPropertyNames(r).forEach(n=>{if("constructor"===n)return;let i=Object.getOwnPropertyDescriptor(r,n);i&&(i.get||i.set)?Object.defineProperty(e.prototype,n,i):e.prototype[n]=t.prototype[n]})})}tf(hu,"applyMixins");var hc=dO(dD,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(hc);var hp=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:dM,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),hd=Object.freeze({recoveryValueFunc:tf(()=>void 0,"recoveryValueFunc"),resyncEnabled:!0});function hf(e){return function(){return e}}!function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"}(eF||(eF={})),tf(hf,"EMPTY_ALT");var hh=class e{static{tf(this,"Parser")}static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let t;this.selfAnalysisDone=!0;let r=this.className;this.TRACE_INIT("toFastProps",()=>{cH(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),ct(this.definedRulesNames,e=>{let t,r=this[e].originalGrammarAction;this.TRACE_INIT(`${e} Rule`,()=>{t=this.topLevelRuleRecord(e,r)}),this.gastProductionsCache[e]=t})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=fC({rules:cb(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(cx(n)&&!1===this.skipValidations){let e=fA({rules:cb(this.gastProductionsCache),tokenTypes:cb(this.tokensMap),errMsgProvider:dF,grammarName:r}),t=fa({lookaheadStrategy:this.lookaheadStrategy,rules:cb(this.gastProductionsCache),tokenTypes:cb(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(e,t)}}),cx(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{let e=pf(cb(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var e,t;null==(t=(e=this.lookaheadStrategy).initialize)||t.call(e,{rules:cb(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(cb(this.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!cx(this.definitionErrors))throw t=cf(this.definitionErrors,e=>e.message),Error(`Parser Definition Errors detected:
|
|
75
|
+
${t.join("\n-------------------------------\n")}`)})}constructor(e,t){if(this.definitionErrors=[],this.selfAnalysisDone=!1,this.initErrorHandler(t),this.initLexerAdapter(),this.initLooksAhead(t),this.initRecognizerEngine(e,t),this.initRecoverable(t),this.initTreeBuilder(t),this.initContentAssist(),this.initGastRecorder(t),this.initPerformanceTracer(t),cT(t,"ignoredIssues"))throw Error("The <ignoredIssues> IParserConfig property has been deprecated.\n Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\n See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n For further details.");this.skipValidations=cT(t,"skipValidations")?t.skipValidations:hp.skipValidations}};hh.DEFER_DEFINITION_ERRORS_HANDLING=!1,hu(hh,[fz,fK,f3,f9,f5,f4,f8,f7,hn,hl]);var hm=class extends hh{static{tf(this,"EmbeddedActionsParser")}constructor(e,t=hp){let r=ud(t);r.outputCst=!1,super(e,r)}};function hy(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function hg(){this.__data__=[],this.size=0}function hv(e,t){return e===t||e!=e&&t!=t}function hT(e,t){for(var r=e.length;r--;)if(hv(e[r][0],t))return r;return -1}tf(hy,"arrayMap"),tf(hg,"listCacheClear"),tf(hv,"eq"),tf(hT,"assocIndexOf");var hR=Array.prototype.splice;function h$(e){var t=this.__data__,r=hT(t,e);return!(r<0)&&(r==t.length-1?t.pop():hR.call(t,r,1),--this.size,!0)}function hb(e){var t=this.__data__,r=hT(t,e);return r<0?void 0:t[r][1]}function hE(e){return hT(this.__data__,e)>-1}function hC(e,t){var r=this.__data__,n=hT(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function hA(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function hS(){this.__data__=new hA,this.size=0}function hk(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function hx(e){return this.__data__.get(e)}function hN(e){return this.__data__.has(e)}tf(h$,"listCacheDelete"),tf(hb,"listCacheGet"),tf(hE,"listCacheHas"),tf(hC,"listCacheSet"),tf(hA,"ListCache"),hA.prototype.clear=hg,hA.prototype.delete=h$,hA.prototype.get=hb,hA.prototype.has=hE,hA.prototype.set=hC,tf(hS,"stackClear"),tf(hk,"stackDelete"),tf(hx,"stackGet"),tf(hN,"stackHas");var hw="object"==typeof global&&global&&global.Object===Object&&global,hI="object"==typeof self&&self&&self.Object===Object&&self,h_=hw||hI||Function("return this")(),hP=h_.Symbol,hD=Object.prototype,hO=hD.hasOwnProperty,hL=hD.toString,hM=hP?hP.toStringTag:void 0;function hj(e){var t=hO.call(e,hM),r=e[hM];try{e[hM]=void 0;var n=!0}catch(e){}var i=hL.call(e);return n&&(t?e[hM]=r:delete e[hM]),i}tf(hj,"getRawTag");var hF=Object.prototype.toString;function hz(e){return hF.call(e)}tf(hz,"objectToString");var hq=hP?hP.toStringTag:void 0;function hG(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":hq&&hq in Object(e)?hj(e):hz(e)}function hU(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function hK(e){if(!hU(e))return!1;var t=hG(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}tf(hG,"baseGetTag"),tf(hU,"isObject"),tf(hK,"isFunction");var hW=h_["__core-js_shared__"],hB=function(){var e=/[^.]+$/.exec(hW&&hW.keys&&hW.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function hV(e){return!!hB&&hB in e}tf(hV,"isMasked");var hH=Function.prototype.toString;function hY(e){if(null!=e){try{return hH.call(e)}catch(e){}try{return e+""}catch(e){}}return""}tf(hY,"toSource");var hX=/^\[object .+?Constructor\]$/,hJ=Object.prototype,hZ=Function.prototype.toString,hQ=hJ.hasOwnProperty,h0=RegExp("^"+hZ.call(hQ).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h1(e){return!(!hU(e)||hV(e))&&(hK(e)?h0:hX).test(hY(e))}function h2(e,t){return null==e?void 0:e[t]}function h3(e,t){var r=h2(e,t);return h1(r)?r:void 0}tf(h1,"baseIsNative"),tf(h2,"getValue"),tf(h3,"getNative");var h9=h3(h_,"Map"),h4=h3(Object,"create");function h5(){this.__data__=h4?h4(null):{},this.size=0}function h8(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}tf(h5,"hashClear"),tf(h8,"hashDelete");var h7=Object.prototype.hasOwnProperty;function h6(e){var t=this.__data__;if(h4){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return h7.call(t,e)?t[e]:void 0}tf(h6,"hashGet");var me=Object.prototype.hasOwnProperty;function mt(e){var t=this.__data__;return h4?void 0!==t[e]:me.call(t,e)}function mr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=h4&&void 0===t?"__lodash_hash_undefined__":t,this}function mn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function mi(){this.size=0,this.__data__={hash:new mn,map:new(h9||hA),string:new mn}}function ma(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function ms(e,t){var r=e.__data__;return ma(t)?r["string"==typeof t?"string":"hash"]:r.map}function mo(e){var t=ms(this,e).delete(e);return this.size-=!!t,t}function ml(e){return ms(this,e).get(e)}function mu(e){return ms(this,e).has(e)}function mc(e,t){var r=ms(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this}function mp(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function md(e,t){var r=this.__data__;if(r instanceof hA){var n=r.__data__;if(!h9||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new mp(n)}return r.set(e,t),this.size=r.size,this}function mf(e){var t=this.__data__=new hA(e);this.size=t.size}function mh(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}function mm(e){return this.__data__.has(e)}function my(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new mp;++t<r;)this.add(e[t])}function mg(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function mv(e,t){return e.has(t)}function mT(e,t,r,n,i,a){var s=1&r,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var p=-1,d=!0,f=2&r?new my:void 0;for(a.set(e,t),a.set(t,e);++p<o;){var h=e[p],m=t[p];if(n)var y=s?n(m,h,p,t,e,a):n(h,m,p,e,t,a);if(void 0!==y){if(y)continue;d=!1;break}if(f){if(!mg(t,function(e,t){if(!mv(f,t)&&(h===e||i(h,e,r,n,a)))return f.push(t)})){d=!1;break}}else if(!(h===m||i(h,m,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}tf(mt,"hashHas"),tf(mr,"hashSet"),tf(mn,"Hash"),mn.prototype.clear=h5,mn.prototype.delete=h8,mn.prototype.get=h6,mn.prototype.has=mt,mn.prototype.set=mr,tf(mi,"mapCacheClear"),tf(ma,"isKeyable"),tf(ms,"getMapData"),tf(mo,"mapCacheDelete"),tf(ml,"mapCacheGet"),tf(mu,"mapCacheHas"),tf(mc,"mapCacheSet"),tf(mp,"MapCache"),mp.prototype.clear=mi,mp.prototype.delete=mo,mp.prototype.get=ml,mp.prototype.has=mu,mp.prototype.set=mc,tf(md,"stackSet"),tf(mf,"Stack"),mf.prototype.clear=hS,mf.prototype.delete=hk,mf.prototype.get=hx,mf.prototype.has=hN,mf.prototype.set=md,tf(mh,"setCacheAdd"),tf(mm,"setCacheHas"),tf(my,"SetCache"),my.prototype.add=my.prototype.push=mh,my.prototype.has=mm,tf(mg,"arraySome"),tf(mv,"cacheHas"),tf(mT,"equalArrays");var mR=h_.Uint8Array;function m$(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function mb(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}tf(m$,"mapToArray"),tf(mb,"setToArray");var mE=hP?hP.prototype:void 0,mC=mE?mE.valueOf:void 0;function mA(e,t,r,n,i,a,s){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!a(new mR(e),new mR(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return hv(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=m$;case"[object Set]":var l=1&n;if(o||(o=mb),e.size!=t.size&&!l)break;var u=s.get(e);if(u)return u==t;n|=2,s.set(e,t);var c=mT(o(e),o(t),n,i,a,s);return s.delete(e),c;case"[object Symbol]":if(mC)return mC.call(e)==mC.call(t)}return!1}function mS(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}tf(mA,"equalByTag"),tf(mS,"arrayPush");var mk=Array.isArray;function mx(e,t,r){var n=t(e);return mk(e)?n:mS(n,r(e))}function mN(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var s=e[r];t(s,r,e)&&(a[i++]=s)}return a}function mw(){return[]}tf(mx,"baseGetAllKeys"),tf(mN,"arrayFilter"),tf(mw,"stubArray");var mI=Object.prototype.propertyIsEnumerable,m_=Object.getOwnPropertySymbols,mP=m_?function(e){return null==e?[]:mN(m_(e=Object(e)),function(t){return mI.call(e,t)})}:mw;function mD(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function mO(e){return null!=e&&"object"==typeof e}function mL(e){return mO(e)&&"[object Arguments]"==hG(e)}tf(mD,"baseTimes"),tf(mO,"isObjectLike"),tf(mL,"baseIsArguments");var mM=Object.prototype,mj=mM.hasOwnProperty,mF=mM.propertyIsEnumerable,mz=mL(function(){return arguments}())?mL:function(e){return mO(e)&&mj.call(e,"callee")&&!mF.call(e,"callee")};function mq(){return!1}tf(mq,"stubFalse");var mG="object"==typeof exports&&exports&&!exports.nodeType&&exports,mU=mG&&"object"==typeof module&&module&&!module.nodeType&&module,mK=mU&&mU.exports===mG?h_.Buffer:void 0,mW=(mK?mK.isBuffer:void 0)||mq,mB=/^(?:0|[1-9]\d*)$/;function mV(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&mB.test(e))&&e>-1&&e%1==0&&e<t}function mH(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}tf(mV,"isIndex"),tf(mH,"isLength");var mY={};function mX(e){return mO(e)&&mH(e.length)&&!!mY[hG(e)]}function mJ(e){return function(t){return e(t)}}mY["[object Float32Array]"]=mY["[object Float64Array]"]=mY["[object Int8Array]"]=mY["[object Int16Array]"]=mY["[object Int32Array]"]=mY["[object Uint8Array]"]=mY["[object Uint8ClampedArray]"]=mY["[object Uint16Array]"]=mY["[object Uint32Array]"]=!0,mY["[object Arguments]"]=mY["[object Array]"]=mY["[object ArrayBuffer]"]=mY["[object Boolean]"]=mY["[object DataView]"]=mY["[object Date]"]=mY["[object Error]"]=mY["[object Function]"]=mY["[object Map]"]=mY["[object Number]"]=mY["[object Object]"]=mY["[object RegExp]"]=mY["[object Set]"]=mY["[object String]"]=mY["[object WeakMap]"]=!1,tf(mX,"baseIsTypedArray"),tf(mJ,"baseUnary");var mZ="object"==typeof exports&&exports&&!exports.nodeType&&exports,mQ=mZ&&"object"==typeof module&&module&&!module.nodeType&&module,m0=mQ&&mQ.exports===mZ&&hw.process,m1=function(){try{var e=mQ&&mQ.require&&mQ.require("util").types;if(e)return e;return m0&&m0.binding&&m0.binding("util")}catch(e){}}(),m2=m1&&m1.isTypedArray,m3=m2?mJ(m2):mX,m9=Object.prototype.hasOwnProperty;function m4(e,t){var r=mk(e),n=!r&&mz(e),i=!r&&!n&&mW(e),a=!r&&!n&&!i&&m3(e),s=r||n||i||a,o=s?mD(e.length,String):[],l=o.length;for(var u in e)(t||m9.call(e,u))&&!(s&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||mV(u,l)))&&o.push(u);return o}tf(m4,"arrayLikeKeys");var m5=Object.prototype;function m8(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||m5)}function m7(e,t){return function(r){return e(t(r))}}tf(m8,"isPrototype"),tf(m7,"overArg");var m6=m7(Object.keys,Object),ye=Object.prototype.hasOwnProperty;function yt(e){if(!m8(e))return m6(e);var t=[];for(var r in Object(e))ye.call(e,r)&&"constructor"!=r&&t.push(r);return t}function yr(e){return null!=e&&mH(e.length)&&!hK(e)}function yn(e){return yr(e)?m4(e):yt(e)}function yi(e){return mx(e,yn,mP)}tf(yt,"baseKeys"),tf(yr,"isArrayLike"),tf(yn,"keys"),tf(yi,"getAllKeys");var ya=Object.prototype.hasOwnProperty;function ys(e,t,r,n,i,a){var s=1&r,o=yi(e),l=o.length;if(l!=yi(t).length&&!s)return!1;for(var u=l;u--;){var c=o[u];if(!(s?c in t:ya.call(t,c)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var f=!0;a.set(e,t),a.set(t,e);for(var h=s;++u<l;){var m=e[c=o[u]],y=t[c];if(n)var g=s?n(y,m,c,t,e,a):n(m,y,c,e,t,a);if(!(void 0===g?m===y||i(m,y,r,n,a):g)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var v=e.constructor,T=t.constructor;v!=T&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof T&&T instanceof T)&&(f=!1)}return a.delete(e),a.delete(t),f}tf(ys,"equalObjects");var yo=h3(h_,"DataView"),yl=h3(h_,"Promise"),yu=h3(h_,"Set"),yc=h3(h_,"WeakMap"),yp="[object Map]",yd="[object Promise]",yf="[object Set]",yh="[object WeakMap]",ym="[object DataView]",yy=hY(yo),yg=hY(h9),yv=hY(yl),yT=hY(yu),yR=hY(yc),y$=hG;(yo&&y$(new yo(new ArrayBuffer(1)))!=ym||h9&&y$(new h9)!=yp||yl&&y$(yl.resolve())!=yd||yu&&y$(new yu)!=yf||yc&&y$(new yc)!=yh)&&(y$=tf(function(e){var t=hG(e),r="[object Object]"==t?e.constructor:void 0,n=r?hY(r):"";if(n)switch(n){case yy:return ym;case yg:return yp;case yv:return yd;case yT:return yf;case yR:return yh}return t},"getTag"));var yb=y$,yE="[object Arguments]",yC="[object Array]",yA="[object Object]",yS=Object.prototype.hasOwnProperty;function yk(e,t,r,n,i,a){var s=mk(e),o=mk(t),l=s?yC:yb(e),u=o?yC:yb(t);l=l==yE?yA:l,u=u==yE?yA:u;var c=l==yA,p=u==yA,d=l==u;if(d&&mW(e)){if(!mW(t))return!1;s=!0,c=!1}if(d&&!c)return a||(a=new mf),s||m3(e)?mT(e,t,r,n,i,a):mA(e,t,l,r,n,i,a);if(!(1&r)){var f=c&&yS.call(e,"__wrapped__"),h=p&&yS.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,y=h?t.value():t;return a||(a=new mf),i(m,y,r,n,a)}}return!!d&&(a||(a=new mf),ys(e,t,r,n,i,a))}function yx(e,t,r,n,i){return e===t||(null!=e&&null!=t&&(mO(e)||mO(t))?yk(e,t,r,n,yx,i):e!=e&&t!=t)}function yN(e,t,r,n){var i=r.length,a=i,s=!n;if(null==e)return!a;for(e=Object(e);i--;){var o=r[i];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<a;){var l=(o=r[i])[0],u=e[l],c=o[1];if(s&&o[2]){if(void 0===u&&!(l in e))return!1}else{var p=new mf;if(n)var d=n(u,c,l,e,t,p);if(!(void 0===d?yx(c,u,3,n,p):d))return!1}}return!0}function yw(e){return e==e&&!hU(e)}function yI(e){for(var t=yn(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,yw(i)]}return t}function y_(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}function yP(e){var t=yI(e);return 1==t.length&&t[0][2]?y_(t[0][0],t[0][1]):function(r){return r===e||yN(r,e,t)}}function yD(e){return"symbol"==typeof e||mO(e)&&"[object Symbol]"==hG(e)}tf(yk,"baseIsEqualDeep"),tf(yx,"baseIsEqual"),tf(yN,"baseIsMatch"),tf(yw,"isStrictComparable"),tf(yI,"getMatchData"),tf(y_,"matchesStrictComparable"),tf(yP,"baseMatches"),tf(yD,"isSymbol");var yO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yL=/^\w*$/;function yM(e,t){if(mk(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||yD(e))||yL.test(e)||!yO.test(e)||null!=t&&e in Object(t)}function yj(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=tf(function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,n);return r.cache=a.set(i,s)||a,s},"memoized");return r.cache=new(yj.Cache||mp),r}function yF(e){var t=yj(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}tf(yM,"isKey"),tf(yj,"memoize"),yj.Cache=mp,tf(yF,"memoizeCapped");var yz=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yq=/\\(\\)?/g,yG=yF(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(yz,function(e,r,n,i){t.push(n?i.replace(yq,"$1"):r||e)}),t}),yU=1/0,yK=hP?hP.prototype:void 0,yW=yK?yK.toString:void 0;function yB(e){if("string"==typeof e)return e;if(mk(e))return hy(e,yB)+"";if(yD(e))return yW?yW.call(e):"";var t=e+"";return"0"==t&&1/e==-yU?"-0":t}function yV(e){return null==e?"":yB(e)}function yH(e,t){return mk(e)?e:yM(e,t)?[e]:yG(yV(e))}tf(yB,"baseToString"),tf(yV,"toString"),tf(yH,"castPath");var yY=1/0;function yX(e){if("string"==typeof e||yD(e))return e;var t=e+"";return"0"==t&&1/e==-yY?"-0":t}function yJ(e,t){t=yH(t,e);for(var r=0,n=t.length;null!=e&&r<n;)e=e[yX(t[r++])];return r&&r==n?e:void 0}function yZ(e,t,r){var n=null==e?void 0:yJ(e,t);return void 0===n?r:n}function yQ(e,t){return null!=e&&t in Object(e)}function y0(e,t,r){t=yH(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var s=yX(t[n]);if(!(a=null!=e&&r(e,s)))break;e=e[s]}return a||++n!=i?a:!!(i=null==e?0:e.length)&&mH(i)&&mV(s,i)&&(mk(e)||mz(e))}function y1(e,t){return null!=e&&y0(e,t,yQ)}function y2(e,t){return yM(e)&&yw(t)?y_(yX(e),t):function(r){var n=yZ(r,e);return void 0===n&&n===t?y1(r,e):yx(t,n,3)}}function y3(e){return e}function y9(e){return function(t){return null==t?void 0:t[e]}}function y4(e){return function(t){return yJ(t,e)}}function y5(e){return yM(e)?y9(yX(e)):y4(e)}function y8(e){return"function"==typeof e?e:null==e?y3:"object"==typeof e?mk(e)?y2(e[0],e[1]):yP(e):y5(e)}function y7(e){return function(t,r,n){for(var i=-1,a=Object(t),s=n(t),o=s.length;o--;){var l=s[e?o:++i];if(!1===r(a[l],l,a))break}return t}}tf(yX,"toKey"),tf(yJ,"baseGet"),tf(yZ,"get"),tf(yQ,"baseHasIn"),tf(y0,"hasPath"),tf(y1,"hasIn"),tf(y2,"baseMatchesProperty"),tf(y3,"identity"),tf(y9,"baseProperty"),tf(y4,"basePropertyDeep"),tf(y5,"property"),tf(y8,"baseIteratee"),tf(y7,"createBaseFor");var y6=y7();function ge(e,t){return e&&y6(e,t,yn)}function gt(e,t){return function(r,n){if(null==r)return r;if(!yr(r))return e(r,n);for(var i=r.length,a=t?i:-1,s=Object(r);(t?a--:++a<i)&&!1!==n(s[a],a,s););return r}}tf(ge,"baseForOwn"),tf(gt,"createBaseEach");var gr=gt(ge);function gn(e,t){var r=-1,n=yr(e)?Array(e.length):[];return gr(e,function(e,i,a){n[++r]=t(e,i,a)}),n}function gi(e,t){return(mk(e)?hy:gn)(e,y8(t,3))}function ga(e,t){var r=[];return gr(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function gs(e,t){return(mk(e)?mN:ga)(e,y8(t,3))}function go(e,t,r){return`${e.name}_${t}_${r}`}tf(gn,"baseMap"),tf(gi,"map"),tf(ga,"baseFilter"),tf(gs,"filter"),tf(go,"buildATNKey");var gl=class{static{tf(this,"AbstractTransition")}constructor(e){this.target=e}isEpsilon(){return!1}},gu=class extends gl{static{tf(this,"AtomTransition")}constructor(e,t){super(e),this.tokenType=t}},gc=class extends gl{static{tf(this,"EpsilonTransition")}constructor(e){super(e)}isEpsilon(){return!0}},gp=class extends gl{static{tf(this,"RuleTransition")}constructor(e,t,r){super(e),this.rule=t,this.followState=r}isEpsilon(){return!0}};function gd(e){let t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};gf(t,e);let r=e.length;for(let n=0;n<r;n++){let r=e[n],i=g$(t,r,r);void 0!==i&&gI(t,r,i)}return t}function gf(e,t){let r=t.length;for(let n=0;n<r;n++){let r=t[n],i=gP(e,r,void 0,{type:2}),a=gP(e,r,void 0,{type:7});i.stop=a,e.ruleToStartState.set(r,i),e.ruleToStopState.set(r,a)}}function gh(e,t,r){if(r instanceof c8)return gN(e,t,r.terminalType,r);if(r instanceof cZ)return gw(e,t,r);if(r instanceof c5)return gT(e,t,r);if(r instanceof c1)return gR(e,t,r);if(r instanceof c9)return gm(e,t,r);else if(r instanceof c4)return gy(e,t,r);else if(r instanceof c2)return gg(e,t,r);else if(r instanceof c3)return gv(e,t,r);else return g$(e,t,r)}function gm(e,t,r){let n=gP(e,t,r,{type:5});gA(e,n);let i=gS(e,t,n,r,g$(e,t,r));return gE(e,t,r,i)}function gy(e,t,r){let n=gP(e,t,r,{type:5});gA(e,n);let i=gS(e,t,n,r,g$(e,t,r)),a=gN(e,t,r.separator,r);return gE(e,t,r,i,a)}function gg(e,t,r){let n=gP(e,t,r,{type:4});gA(e,n);let i=gS(e,t,n,r,g$(e,t,r));return gb(e,t,r,i)}function gv(e,t,r){let n=gP(e,t,r,{type:4});gA(e,n);let i=gS(e,t,n,r,g$(e,t,r)),a=gN(e,t,r.separator,r);return gb(e,t,r,i,a)}function gT(e,t,r){let n=gP(e,t,r,{type:1});gA(e,n);let i=gi(r.definition,r=>gh(e,t,r));return gS(e,t,n,r,...i)}function gR(e,t,r){let n=gP(e,t,r,{type:1});gA(e,n);let i=gS(e,t,n,r,g$(e,t,r));return gC(e,t,r,i)}function g$(e,t,r){let n=gs(gi(r.definition,r=>gh(e,t,r)),e=>void 0!==e);return 1===n.length?n[0]:0===n.length?void 0:gx(e,n)}function gb(e,t,r,n,i){let a=n.left,s=n.right,o=gP(e,t,r,{type:11});gA(e,o);let l=gP(e,t,r,{type:12});return a.loopback=o,l.loopback=o,e.decisionMap[go(t,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=o,g_(s,o),void 0===i?(g_(o,a),g_(o,l)):(g_(o,l),g_(o,i.left),g_(i.right,a)),{left:a,right:l}}function gE(e,t,r,n,i){let a=n.left,s=n.right,o=gP(e,t,r,{type:10});gA(e,o);let l=gP(e,t,r,{type:12}),u=gP(e,t,r,{type:9});return o.loopback=u,l.loopback=u,g_(o,a),g_(o,l),g_(s,u),void 0!==i?(g_(u,l),g_(u,i.left),g_(i.right,a)):g_(u,o),e.decisionMap[go(t,i?"RepetitionWithSeparator":"Repetition",r.idx)]=o,{left:o,right:l}}function gC(e,t,r,n){let i=n.left;return g_(i,n.right),e.decisionMap[go(t,"Option",r.idx)]=i,n}function gA(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function gS(e,t,r,n,...i){let a=gP(e,t,n,{type:8,start:r});for(let e of(r.end=a,i))void 0!==e?(g_(r,e.left),g_(e.right,a)):g_(r,a);return e.decisionMap[go(t,gk(n),n.idx)]=r,{left:r,right:a}}function gk(e){if(e instanceof c5)return"Alternation";if(e instanceof c1)return"Option";if(e instanceof c9)return"Repetition";if(e instanceof c4)return"RepetitionWithSeparator";if(e instanceof c2)return"RepetitionMandatory";else if(e instanceof c3)return"RepetitionMandatoryWithSeparator";else throw Error("Invalid production type encountered")}function gx(e,t){let r=t.length;for(let n=0;n<r-1;n++){let r,i=t[n];1===i.left.transitions.length&&(r=i.left.transitions[0]);let a=r instanceof gp,s=r,o=t[n+1].left;1===i.left.type&&1===i.right.type&&void 0!==r&&(a&&s.followState===i.right||r.target===i.right)?(a?s.followState=o:r.target=o,gO(e,i.right)):g_(i.right,o)}let n=t[0],i=t[r-1];return{left:n.left,right:i.right}}function gN(e,t,r,n){let i=gP(e,t,n,{type:1}),a=gP(e,t,n,{type:1});return gD(i,new gu(a,r)),{left:i,right:a}}function gw(e,t,r){let n=r.referencedRule,i=e.ruleToStartState.get(n),a=gP(e,t,r,{type:1}),s=gP(e,t,r,{type:1});return gD(a,new gp(i,n,s)),{left:a,right:s}}function gI(e,t,r){let n=e.ruleToStartState.get(t);g_(n,r.left);let i=e.ruleToStopState.get(t);return g_(r.right,i),{left:n,right:i}}function g_(e,t){gD(e,new gc(t))}function gP(e,t,r,n){let i=Object.assign({atn:e,production:r,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:e.states.length},n);return e.states.push(i),i}function gD(e,t){0===e.transitions.length&&(e.epsilonOnlyTransitions=t.isEpsilon()),e.transitions.push(t)}function gO(e,t){e.states.splice(e.states.indexOf(t),1)}tf(gd,"createATN"),tf(gf,"createRuleStartAndStopATNStates"),tf(gh,"atom"),tf(gm,"repetition"),tf(gy,"repetitionSep"),tf(gg,"repetitionMandatory"),tf(gv,"repetitionMandatorySep"),tf(gT,"alternation"),tf(gR,"option"),tf(g$,"block"),tf(gb,"plus"),tf(gE,"star"),tf(gC,"optional"),tf(gA,"defineDecisionState"),tf(gS,"makeAlts"),tf(gk,"getProdType"),tf(gx,"makeBlock"),tf(gN,"tokenRef"),tf(gw,"ruleRef"),tf(gI,"buildRuleHandle"),tf(g_,"epsilon"),tf(gP,"newState"),tf(gD,"addTransition"),tf(gO,"removeState");var gL={},gM=class{static{tf(this,"ATNConfigSet")}constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){let t=gj(e);t in this.map||(this.map[t]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return gi(this.configs,e=>e.alt)}get key(){let e="";for(let t in this.map)e+=t+":";return e}};function gj(e,t=!0){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map(e=>e.stateNumber.toString()).join("_")}`}function gF(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],s=t(a);if(null!=s&&(void 0===o?s==s&&!yD(s):r(s,o)))var o=s,l=a}return l}function gz(e,t){return e<t}function gq(e){return e&&e.length?gF(e,y3,gz):void 0}tf(gj,"getATNConfigKey"),tf(gF,"baseExtremum"),tf(gz,"baseLt"),tf(gq,"min");var gG=hP?hP.isConcatSpreadable:void 0;function gU(e){return mk(e)||mz(e)||!!(gG&&e&&e[gG])}function gK(e,t,r,n,i){var a=-1,s=e.length;for(r||(r=gU),i||(i=[]);++a<s;){var o=e[a];t>0&&r(o)?t>1?gK(o,t-1,r,n,i):mS(i,o):n||(i[i.length]=o)}return i}function gW(e,t){return gK(gi(e,t),1)}function gB(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return -1}function gV(e){return e!=e}function gH(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}function gY(e,t,r){return t==t?gH(e,t,r):gB(e,gV,r)}function gX(e,t){return!!(null==e?0:e.length)&&gY(e,t,0)>-1}function gJ(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function gZ(){}tf(gU,"isFlattenable"),tf(gK,"baseFlatten"),tf(gW,"flatMap"),tf(gB,"baseFindIndex"),tf(gV,"baseIsNaN"),tf(gH,"strictIndexOf"),tf(gY,"baseIndexOf"),tf(gX,"arrayIncludes"),tf(gJ,"arrayIncludesWith"),tf(gZ,"noop");var gQ=yu&&1/mb(new yu([,-0]))[1]==1/0?function(e){return new yu(e)}:gZ;function g0(e,t,r){var n=-1,i=gX,a=e.length,s=!0,o=[],l=o;if(r)s=!1,i=gJ;else if(a>=200){var u=t?null:gQ(e);if(u)return mb(u);s=!1,i=mv,l=new my}else l=t?[]:o;t:for(;++n<a;){var c=e[n],p=t?t(c):c;if(c=r||0!==c?c:0,s&&p==p){for(var d=l.length;d--;)if(l[d]===p)continue t;t&&l.push(p),o.push(c)}else i(l,p,r)||(l!==o&&l.push(p),o.push(c))}return o}function g1(e,t){return e&&e.length?g0(e,y8(t,2)):[]}function g2(e){return(null==e?0:e.length)?gK(e,1):[]}function g3(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function g9(e){return"function"==typeof e?e:y3}function g4(e,t){return(mk(e)?g3:gr)(e,g9(t))}tf(g0,"baseUniq"),tf(g1,"uniqBy"),tf(g2,"flatten"),tf(g3,"arrayEach"),tf(g9,"castFunction"),tf(g4,"forEach");var g5=Object.prototype.hasOwnProperty;function g8(e){if(null==e)return!0;if(yr(e)&&(mk(e)||"string"==typeof e||"function"==typeof e.splice||mW(e)||m3(e)||mz(e)))return!e.length;var t=yb(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(m8(e))return!yt(e).length;for(var r in e)if(g5.call(e,r))return!1;return!0}function g7(e,t,r,n){var i=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++i]);++i<a;)r=t(r,e[i],i,e);return r}function g6(e,t,r,n,i){return i(e,function(e,i,a){r=n?(n=!1,e):t(r,e,i,a)}),r}function ve(e,t,r){var n=mk(e)?g7:g6,i=arguments.length<3;return n(e,y8(t,4),r,i,gr)}function vt(e,t){let r={};return n=>{let i=n.toString(),a=r[i];return void 0!==a||(a={atnStartState:e,decision:t,states:{}},r[i]=a),a}}tf(g8,"isEmpty"),tf(g7,"arrayReduce"),tf(g6,"baseReduce"),tf(ve,"reduce"),tf(vt,"createDFACache");var vr=class{static{tf(this,"PredicateSet")}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e="",t=this.predicates.length;for(let r=0;r<t;r++)e+=!0===this.predicates[r]?"1":"0";return e}},vn=new vr,vi=class extends fU{static{tf(this,"LLStarLookaheadStrategy")}constructor(e){var t;super(),this.logging=null!=(t=null==e?void 0:e.logging)?t:e=>console.log(e)}initialize(e){this.atn=gd(e.rules),this.dfas=vs(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:r,hasPredicates:n,dynamicTokensEnabled:i}=e,a=this.dfas,s=this.logging,o=go(r,"Alternation",t),l=this.atn.decisionMap[o].decision,u=gi(dQ({maxLookahead:1,occurrence:t,prodType:"Alternation",rule:r}),e=>gi(e,e=>e[0]));if(va(u,!1)&&!i){let e=ve(u,(e,t,r)=>(g4(t,t=>{t&&(e[t.tokenTypeIdx]=r,g4(t.categoryMatches,t=>{e[t]=r}))}),e),{});return n?function(t){var r;let n=e[this.LA(1).tokenTypeIdx];if(void 0!==t&&void 0!==n){let e=null==(r=t[n])?void 0:r.GATE;if(void 0!==e&&!1===e.call(this))return}return n}:function(){return e[this.LA(1).tokenTypeIdx]}}return n?function(e){let t=new vr,r=void 0===e?0:e.length;for(let n=0;n<r;n++){let r=null==e?void 0:e[n].GATE;t.set(n,void 0===r||r.call(this))}let n=vo.call(this,a,l,t,s);return"number"==typeof n?n:void 0}:function(){let e=vo.call(this,a,l,vn,s);return"number"==typeof e?e:void 0}}buildLookaheadForOptional(e){let{prodOccurrence:t,rule:r,prodType:n,dynamicTokensEnabled:i}=e,a=this.dfas,s=this.logging,o=go(r,n,t),l=this.atn.decisionMap[o].decision,u=gi(dQ({maxLookahead:1,occurrence:t,prodType:n,rule:r}),e=>gi(e,e=>e[0]));if(va(u)&&u[0][0]&&!i){let e=g2(u[0]);if(1===e.length&&g8(e[0].categoryMatches)){let t=e[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===t}}{let t=ve(e,(e,t)=>(void 0!==t&&(e[t.tokenTypeIdx]=!0,g4(t.categoryMatches,t=>{e[t]=!0})),e),{});return function(){return!0===t[this.LA(1).tokenTypeIdx]}}}return function(){let e=vo.call(this,a,l,vn,s);return"object"!=typeof e&&0===e}}};function va(e,t=!0){let r=new Set;for(let n of e){let e=new Set;for(let i of n){if(void 0===i)if(!t)return!1;else break;for(let t of[i.tokenTypeIdx].concat(i.categoryMatches))if(r.has(t)){if(!e.has(t))return!1}else r.add(t),e.add(t)}}return!0}function vs(e){let t=e.decisionStates.length,r=Array(t);for(let n=0;n<t;n++)r[n]=vt(e.decisionStates[n],n);return r}function vo(e,t,r,n){let i=e[t](r),a=i.start;if(void 0===a){let e=v$(i.atnStartState);a=vR(i,vv(e)),i.start=a}return vl.apply(this,[i,a,r,n])}function vl(e,t,r,n){let i=t,a=1,s=[],o=this.LA(a++);for(;;){let t=vh(i,o);if(void 0===t&&(t=vu.apply(this,[e,i,o,a,r,n])),t===gL)return vf(s,i,o);if(!0===t.isAcceptState)return t.prediction;i=t,s.push(o),o=this.LA(a++)}}function vu(e,t,r,n,i,a){let s=vm(t.configs,r,i);if(0===s.size)return vT(e,t,r,gL),gL;let o=vv(s),l=vg(s,i);if(void 0!==l)o.isAcceptState=!0,o.prediction=l,o.configs.uniqueAlt=l;else if(vS(s)){let t=gq(s.alts);o.isAcceptState=!0,o.prediction=t,o.configs.uniqueAlt=t,vc.apply(this,[e,n,s.alts,a])}return vT(e,t,r,o)}function vc(e,t,r,n){let i=[];for(let e=1;e<=t;e++)i.push(this.LA(e).tokenType);let a=e.atnStartState;n(vp({topLevelRule:a.rule,ambiguityIndices:r,production:a.production,prefixPath:i}))}function vp(e){let t=gi(e.prefixPath,e=>db(e)).join(", "),r=0===e.production.idx?"":e.production.idx,n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${vd(e.production)}${r}> inside <${e.topLevelRule.name}> Rule,
|
|
76
|
+
<${t}> may appears as a prefix path in all these alternatives.
|
|
77
|
+
`;return n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
|
78
|
+
For Further details.`}function vd(e){if(e instanceof cZ)return"SUBRULE";if(e instanceof c1)return"OPTION";if(e instanceof c5)return"OR";if(e instanceof c2)return"AT_LEAST_ONE";if(e instanceof c3)return"AT_LEAST_ONE_SEP";else if(e instanceof c4)return"MANY_SEP";else if(e instanceof c9)return"MANY";else if(e instanceof c8)return"CONSUME";else throw Error("non exhaustive match")}function vf(e,t,r){return{actualToken:r,possibleTokenTypes:g1(gW(t.configs.elements,e=>e.state.transitions).filter(e=>e instanceof gu).map(e=>e.tokenType),e=>e.tokenTypeIdx),tokenPath:e}}function vh(e,t){return e.edges[t.tokenTypeIdx]}function vm(e,t,r){let n,i=new gM,a=[];for(let n of e.elements){if(!1===r.is(n.alt))continue;if(7===n.state.type){a.push(n);continue}let e=n.state.transitions.length;for(let r=0;r<e;r++){let e=vy(n.state.transitions[r],t);void 0!==e&&i.add({state:e,alt:n.alt,stack:n.stack})}}if(0===a.length&&1===i.size&&(n=i),void 0===n)for(let e of(n=new gM,i.elements))vb(e,n);if(a.length>0&&!vC(n))for(let e of a)n.add(e);return n}function vy(e,t){if(e instanceof gu&&dL(t,e.tokenType))return e.target}function vg(e,t){let r;for(let n of e.elements)if(!0===t.is(n.alt)){if(void 0===r)r=n.alt;else if(r!==n.alt)return}return r}function vv(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function vT(e,t,r,n){return n=vR(e,n),t.edges[r.tokenTypeIdx]=n,n}function vR(e,t){if(t===gL)return t;let r=t.configs.key,n=e.states[r];return void 0!==n?n:(t.configs.finalize(),e.states[r]=t,t)}function v$(e){let t=new gM,r=e.transitions.length;for(let n=0;n<r;n++)vb({state:e.transitions[n].target,alt:n,stack:[]},t);return t}function vb(e,t){let r=e.state;if(7===r.type){if(e.stack.length>0){let r=[...e.stack];vb({state:r.pop(),alt:e.alt,stack:r},t)}else t.add(e);return}r.epsilonOnlyTransitions||t.add(e);let n=r.transitions.length;for(let i=0;i<n;i++){let n=vE(e,r.transitions[i]);void 0!==n&&vb(n,t)}}function vE(e,t){if(t instanceof gc)return{state:t.target,alt:e.alt,stack:e.stack};if(t instanceof gp){let r=[...e.stack,t.followState];return{state:t.target,alt:e.alt,stack:r}}}function vC(e){for(let t of e.elements)if(7===t.state.type)return!0;return!1}function vA(e){for(let t of e.elements)if(7!==t.state.type)return!1;return!0}function vS(e){if(vA(e))return!0;let t=vk(e.elements);return vx(t)&&!vN(t)}function vk(e){let t=new Map;for(let r of e){let e=gj(r,!1),n=t.get(e);void 0===n&&(n={},t.set(e,n)),n[r.alt]=!0}return t}function vx(e){for(let t of Array.from(e.values()))if(Object.keys(t).length>1)return!0;return!1}function vN(e){for(let t of Array.from(e.values()))if(1===Object.keys(t).length)return!0;return!1}tf(va,"isLL1Sequence"),tf(vs,"initATNSimulator"),tf(vo,"adaptivePredict"),tf(vl,"performLookahead"),tf(vu,"computeLookaheadTarget"),tf(vc,"reportLookaheadAmbiguity"),tf(vp,"buildAmbiguityError"),tf(vd,"getProductionDslName"),tf(vf,"buildAdaptivePredictError"),tf(vh,"getExistingTargetState"),tf(vm,"computeReachSet"),tf(vy,"getReachableTarget"),tf(vg,"getUniqueAlt"),tf(vv,"newDFAState"),tf(vT,"addDFAEdge"),tf(vR,"addDFAState"),tf(v$,"computeStartState"),tf(vb,"closure"),tf(vE,"getEpsilonTarget"),tf(vC,"hasConfigInRuleStopState"),tf(vA,"allConfigsInRuleStopStates"),tf(vS,"hasConflictTerminatingPrediction"),tf(vk,"getConflictingAltSets"),tf(vx,"hasConflictingAltSet"),tf(vN,"hasStateAssociatedWithOneAlt"),t$();var vw=class{static{tf(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new vO(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let t=new vP;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){let r=new v_(e.startOffset,e.image.length,iT(e),e.tokenType,!t);return r.grammarSource=t,r.root=this.rootNode,this.current.content.push(r),r}removeNode(e){let t=e.container;if(t){let r=t.content.indexOf(e);r>=0&&t.content.splice(r,1)}}addHiddenNodes(e){let t=[];for(let r of e){let e=new v_(r.startOffset,r.image.length,iT(r),r.tokenType,!0);e.root=this.rootNode,t.push(e)}let r=this.current,n=!1;if(r.content.length>0)return void r.content.push(...t);for(;r.container;){let e=r.container.content.indexOf(r);if(e>0){r.container.content.splice(e,0,...t),n=!0;break}r=r.container}n||this.rootNode.content.unshift(...t)}construct(e){let t=this.current;"string"!=typeof e.$type||e.$infix||(this.current.astNode=e),e.$cstNode=t;let r=this.nodeStack.pop();r?.content.length===0&&this.removeNode(r)}},vI=class{static{tf(this,"AbstractCstNode")}get hidden(){return!1}get astNode(){let e="string"==typeof this._astNode?.$type?this._astNode:this.container?.astNode;if(!e)throw Error("This node has no associated AST element");return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},v_=class extends vI{static{tf(this,"LeafCstNodeImpl")}get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,r,n,i=!1){super(),this._hidden=i,this._offset=e,this._tokenType=n,this._length=t,this._range=r}},vP=class extends vI{static{tf(this,"CompositeCstNodeImpl")}constructor(){super(...arguments),this.content=new vD(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){let e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;if(!e||!t)return{start:o.create(0,0),end:o.create(0,0)};if(void 0===this._rangeCache){let{range:r}=e,{range:n}=t;this._rangeCache={start:r.start,end:n.end.line<r.start.line?r.start:n.end}}return this._rangeCache}get firstNonHiddenNode(){for(let e of this.content)if(!e.hidden)return e;return this.content[0]}get lastNonHiddenNode(){for(let e=this.content.length-1;e>=0;e--){let t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},vD=class e extends Array{static{tf(this,"CstNodeContainer")}constructor(t){super(),this.parent=t,Object.setPrototypeOf(this,e.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,t,...r){return this.addParents(r),super.splice(e,t,...r)}addParents(e){for(let t of e)t.container=this.parent}},vO=class extends vP{static{tf(this,"RootCstNodeImpl")}get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}},vL=Symbol("Datatype");function vM(e){return e.$type===vL}tf(vM,"isDataTypeNode");var vj=tf(e=>e.endsWith("")?e:e+"","withRuleSuffix"),vF=class{static{tf(this,"AbstractLangiumParser")}constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;let t=this.lexer.definition,r="production"===e.LanguageMetaData.mode;e.shared.profilers.LangiumProfiler?.isActive("parsing")?this.wrapper=new vB(t,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId)):this.wrapper=new vW(t,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider})}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},vz=class extends vF{static{tf(this,"LangiumParser")}get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new vw,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){let r,n=this.computeRuleType(e);nh(e)&&(r=e.name,this.registerPrecedenceMap(e));let i=this.wrapper.DEFINE_RULE(vj(e.name),this.startImplementation(n,r,t).bind(this));return this.allRules.set(e.name,i),nL(e)&&e.entry&&(this.mainRule=i),i}registerPrecedenceMap(e){let t=e.name,r=new Map;for(let t=0;t<e.operators.precedences.length;t++){let n=e.operators.precedences[t];for(let e of n.operators)r.set(e.value,{precedence:t,rightAssoc:"right"===n.associativity})}this.operatorPrecedence.set(t,r)}computeRuleType(e){if(nh(e))return aS(e);if(!e.fragment)if(a$(e))return vL;else return aS(e)}parse(e,t={}){this.nodeBuilder.buildRootNode(e);let r=this.lexerResult=this.lexer.tokenize(e);this.wrapper.input=r.tokens;let n=t.rule?this.allRules.get(t.rule):this.mainRule;if(!n)throw Error(t.rule?`No rule found with name '${t.rule}'`:"No main rule available.");let i=this.doParse(n);return this.nodeBuilder.addHiddenNodes(r.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,r$(i,{deep:!0}),{value:i,lexerErrors:r.errors,lexerReport:r.report,parserErrors:this.wrapper.errors}}doParse(e){let t=this.wrapper.rule(e);if(this.stack.length>0&&(t=this.construct()),void 0===t)throw Error("No result from parser");if(this.stack.length>0)throw Error("Parser stack is not empty after parsing");return t}startImplementation(e,t,r){return n=>{let i=!this.isRecording()&&void 0!==e;if(i){let r={$type:e};this.stack.push(r),e===vL?r.value="":void 0!==t&&(r.$infixName=t)}return r(n),i?this.construct():void 0}}extractHiddenTokens(e){let t=this.lexerResult.hidden;if(!t.length)return[];let r=e.startOffset;for(let e=0;e<t.length;e++)if(t[e].startOffset>r)return t.splice(0,e);return t.splice(0,t.length)}consume(e,t,r){let n=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(n)){let e=this.extractHiddenTokens(n);this.nodeBuilder.addHiddenNodes(e);let t=this.nodeBuilder.buildLeafNode(n,r),{assignment:i,crossRef:a}=this.getAssignment(r),s=this.current;if(i){let e=nb(r)?n.image:this.converter.convert(n.image,t);this.assign(i.operator,i.feature,e,t,a)}else if(vM(s)){let e=n.image;nb(r)||(e=this.converter.convert(e,t).toString()),s.value+=e}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&"number"==typeof e.endOffset&&!isNaN(e.endOffset)}subrule(e,t,r,n,i){let a,s;this.isRecording()||r||(a=this.nodeBuilder.buildCompositeNode(n));try{s=this.wrapper.wrapSubrule(e,t,i)}finally{!this.isRecording()&&(void 0!==s||r||(s=this.construct()),void 0!==s&&a&&a.length>0&&this.performSubruleAssignment(s,n,a))}}performSubruleAssignment(e,t,r){let{assignment:n,crossRef:i}=this.getAssignment(t);if(n)this.assign(n.operator,n.feature,e,r,i);else if(!n){let t=this.current;if(vM(t))t.value+=e.toString();else if("object"==typeof e&&e){let r=this.assignWithoutOverride(e,t);this.stack.pop(),this.stack.push(r)}}}action(e,t){if(!this.isRecording()){let r=this.current;t.feature&&t.operator?(r=this.construct(),this.nodeBuilder.removeNode(r.$cstNode),this.nodeBuilder.buildCompositeNode(t).content.push(r.$cstNode),this.stack.push({$type:e}),this.assign(t.operator,t.feature,r,r.$cstNode)):r.$type=e}}construct(){if(this.isRecording())return;let e=this.stack.pop();return(this.nodeBuilder.construct(e),"$infixName"in e)?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):vM(e)?this.converter.convert(e.value,e.$cstNode):(r_(this.astReflection,e),e)}constructInfix(e,t){let r=e.parts;if(!Array.isArray(r)||0===r.length)return;let n=e.operators;if(!Array.isArray(n)||r.length<2)return r[0];let i=0,a=-1;for(let e=0;e<n.length;e++){let r=n[e],s=t.get(r)??{precedence:1/0,rightAssoc:!1};s.precedence>a?(a=s.precedence,i=e):s.precedence!==a||s.rightAssoc||(i=e)}let s=n.slice(0,i),o=n.slice(i+1),l=r.slice(0,i+1),u=r.slice(i+1),c={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:l,operators:s},p={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:u,operators:o},d=this.constructInfix(c,t),f=this.constructInfix(p,t);return{$type:e.$type,$cstNode:e.$cstNode,left:d,operator:n[i],right:f}}getAssignment(e){if(!this.assignmentMap.has(e)){let t=rb(e,r0);this.assignmentMap.set(e,{assignment:t,crossRef:t&&ne(t.terminal)?t.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,t,r,n,i){let a,s=this.current;switch(a="single"===i&&"string"==typeof r?this.linker.buildReference(s,t,n,r):"multi"===i&&"string"==typeof r?this.linker.buildMultiReference(s,t,n,r):r,e){case"=":s[t]=a;break;case"?=":s[t]=!0;break;case"+=":Array.isArray(s[t])||(s[t]=[]),s[t].push(a)}}assignWithoutOverride(e,t){for(let[r,n]of Object.entries(t)){let t=e[r];void 0===t?e[r]=n:Array.isArray(t)&&Array.isArray(n)&&(n.push(...t),e[r]=n)}let r=e.$cstNode;return r&&(r.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},vq=class{static{tf(this,"AbstractParserErrorMessageProvider")}buildMismatchTokenMessage(e){return dM.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return dM.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return dM.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return dM.buildEarlyExitMessage(e)}},vG=class extends vq{static{tf(this,"LangiumParserErrorMessageProvider")}buildMismatchTokenMessage({expected:e,actual:t}){let r=e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`;return`Expecting ${r} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},vU=class extends vF{static{tf(this,"LangiumCompletionParser")}constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();let t=this.lexer.tokenize(e,{mode:"partial"});return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){let r=this.wrapper.DEFINE_RULE(vj(e.name),this.startImplementation(t).bind(this));return this.allRules.set(e.name,r),e.entry&&(this.mainRule=r),r}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{let r=this.keepStackSize();try{e(t)}finally{this.resetStackSize(r)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,r){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,r],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,r,n,i){this.before(n),this.wrapper.wrapSubrule(e,t,i),this.after(n)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){let t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},vK={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new vG},vW=class extends hm{static{tf(this,"ChevrotainWrapper")}constructor(e,t){super(e,{...vK,lookaheadStrategy:t&&"maxLookahead"in t?new fU({maxLookahead:t.maxLookahead}):new vi({logging:t.skipValidations?()=>{}:void 0}),...t})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t,r){return this.RULE(e,t,r)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t,void 0)}wrapSubrule(e,t,r){return this.subrule(e,t,{ARGS:[r]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}rule(e){return e.call(this,{})}},vB=class extends vW{static{tf(this,"ProfilerWrapper")}constructor(e,t,r){super(e,t),this.task=r}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,t,r){this.task.startSubTask(this.ruleName(t));try{return super.subrule(e,t,r)}finally{this.task.stopSubTask(this.ruleName(t))}}};function vV(e,t,r){return vH({parser:t,tokens:r,ruleNames:new Map},e),t}function vH(e,t){let r=an(t,!1);for(let n of rv(t.rules).filter(nL).filter(e=>r.has(e))){let t={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(n,vX(t,n.definition))}for(let n of rv(t.rules).filter(nh).filter(e=>r.has(e)))e.parser.rule(n,vY(e,n))}function vY(e,t){let r,n=t.call.rule.ref;if(!n)throw Error("Could not resolve reference to infix operator rule: "+t.call.rule.$refText);if(n2(n))throw Error("Cannot use terminal rule in infix expression");let i=t.operators.precedences.flatMap(e=>e.operators),a={$type:"Group",elements:[]},s={$container:a,$type:"Assignment",feature:"parts",operator:"+=",terminal:t.call},o={$container:a,$type:"Group",elements:[],cardinality:"*"};a.elements.push(s,o);let l={$container:o,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:i}},u={...s,$container:o};o.elements.push(l,u);let c=i.map(t=>e.tokens[t.value]).map((t,r)=>({ALT:tf(()=>e.parser.consume(r,t,l),"ALT")}));return t=>{r??(r=v7(e,n)),e.parser.subrule(0,r,!1,s,t),e.parser.many(0,{DEF:tf(()=>{e.parser.alternatives(0,c),e.parser.subrule(1,r,!1,u,t)},"DEF")})}}function vX(e,t,r=!1){let n;if(nb(t))n=v5(e,t);else if(rB(t))n=vJ(e,t);else if(r0(t))n=vX(e,t.terminal);else if(ne(t))n=v4(e,t);else if(nK(t))n=vZ(e,t);else if(rH(t))n=v1(e,t);else if(ia(t))n=v2(e,t);else if(nc(t))n=v3(e,t);else if(ni(t)){let r=e.consume++;n=tf(()=>e.parser.consume(r,dD,t),"method")}else throw new iM(t.$cstNode,`Unexpected element type: ${t.$type}`);return v8(e,r?void 0:v9(t),n,t.cardinality)}function vJ(e,t){let r=aS(t);return()=>e.parser.action(r,t)}function vZ(e,t){let r=t.rule.ref;if(rz(r)){let n,i=e.subrule++,a=nL(r)&&r.fragment,s=t.arguments.length>0?vQ(r,t.arguments):()=>({});return o=>{n??(n=v7(e,r)),e.parser.subrule(i,n,a,t,s(o))}}if(n2(r)){let n=e.consume++,i=Te(e,r.name);return()=>e.parser.consume(n,i,t)}if(r)ij(r);else throw new iM(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}function vQ(e,t){if(t.some(e=>e.calledByName)){let e=t.map(e=>({parameterName:e.parameter?.ref?.name,predicate:v0(e.value)}));return t=>{let r={};for(let{parameterName:n,predicate:i}of e)n&&(r[n]=i(t));return r}}{let r=t.map(e=>v0(e.value));return t=>{let n={};for(let i=0;i<r.length;i++)if(i<e.parameters.length){let a=e.parameters[i].name,s=r[i];n[a]=s(t)}return n}}}function v0(e){if(nr(e)){let t=v0(e.left),r=v0(e.right);return e=>t(e)||r(e)}if(r7(e)){let t=v0(e.left),r=v0(e.right);return e=>t(e)&&r(e)}if(nx(e)){let t=v0(e.value);return e=>!t(e)}if(nD(e)){let t=e.parameter.ref.name;return e=>void 0!==e&&!0===e[t]}if(r2(e)){let t=!!e.true;return()=>t}ij(e)}function v1(e,t){if(1===t.elements.length)return vX(e,t.elements[0]);{let r=[];for(let n of t.elements){let t={ALT:vX(e,n,!0)},i=v9(n);i&&(t.GATE=v0(i)),r.push(t)}let n=e.or++;return t=>e.parser.alternatives(n,r.map(e=>{let r={ALT:tf(()=>e.ALT(t),"ALT")},n=e.GATE;return n&&(r.GATE=()=>n(t)),r}))}}function v2(e,t){if(1===t.elements.length)return vX(e,t.elements[0]);let r=[];for(let n of t.elements){let t={ALT:vX(e,n,!0)},i=v9(n);i&&(t.GATE=v0(i)),r.push(t)}let n=e.or++,i=tf((e,t)=>{let r=t.getRuleStack().join("-");return`uGroup_${e}_${r}`},"idFunc"),a=tf(t=>e.parser.alternatives(n,r.map((r,a)=>{let s={ALT:tf(()=>!0,"ALT")},o=e.parser;s.ALT=()=>{if(r.ALT(t),!o.isRecording()){let e=i(n,o);o.unorderedGroups.get(e)||o.unorderedGroups.set(e,[]);let t=o.unorderedGroups.get(e);void 0===t?.[a]&&(t[a]=!0)}};let l=r.GATE;return l?s.GATE=()=>l(t):s.GATE=()=>{let e=o.unorderedGroups.get(i(n,o));return!e?.[a]},s})),"alternatives"),s=v8(e,v9(t),a,"*");return t=>{s(t),e.parser.isRecording()||e.parser.unorderedGroups.delete(i(n,e.parser))}}function v3(e,t){let r=t.elements.map(t=>vX(e,t));return e=>r.forEach(t=>t(e))}function v9(e){if(nc(e))return e.guardCondition}function v4(e,t,r=t.terminal){if(r)if(nK(r)&&nL(r.rule.ref)){let n,i=r.rule.ref,a=e.subrule++;return r=>{n??(n=v7(e,i)),e.parser.subrule(a,n,!1,t,r)}}else if(nK(r)&&n2(r.rule.ref)){let n=e.consume++,i=Te(e,r.rule.ref.name);return()=>e.parser.consume(n,i,t)}else if(nb(r)){let n=e.consume++,i=Te(e,r.value);return()=>e.parser.consume(n,i,t)}else throw Error("Could not build cross reference parser");{if(!t.type.ref)throw Error("Could not resolve reference to type: "+t.type.$refText);let r=am(t.type.ref),n=r?.terminal;if(!n)throw Error("Could not find name assignment for type: "+aS(t.type.ref));return v4(e,t,n)}}function v5(e,t){let r=e.consume++,n=e.tokens[t.value];if(!n)throw Error("Could not find token for keyword: "+t.value);return()=>e.parser.consume(r,n,t)}function v8(e,t,r,n){let i=t&&v0(t);if(!n)if(!i)return r;else{let t=e.or++;return n=>e.parser.alternatives(t,[{ALT:tf(()=>r(n),"ALT"),GATE:tf(()=>i(n),"GATE")},{ALT:hf(),GATE:tf(()=>!i(n),"GATE")}])}if("*"===n){let t=e.many++;return n=>e.parser.many(t,{DEF:tf(()=>r(n),"DEF"),GATE:i?()=>i(n):void 0})}if("+"===n){let t=e.many++;if(!i)return n=>e.parser.atLeastOne(t,{DEF:tf(()=>r(n),"DEF")});{let n=e.or++;return a=>e.parser.alternatives(n,[{ALT:tf(()=>e.parser.atLeastOne(t,{DEF:tf(()=>r(a),"DEF")}),"ALT"),GATE:tf(()=>i(a),"GATE")},{ALT:hf(),GATE:tf(()=>!i(a),"GATE")}])}}if("?"===n){let t=e.optional++;return n=>e.parser.optional(t,{DEF:tf(()=>r(n),"DEF"),GATE:i?()=>i(n):void 0})}ij(n)}function v7(e,t){let r=v6(e,t),n=e.parser.getRule(r);if(!n)throw Error(`Rule "${r}" not found."`);return n}function v6(e,t){if(rz(t))return t.name;{if(e.ruleNames.has(t))return e.ruleNames.get(t);let r=t,n=r.$container,i=t.$type;for(;!nL(n);)(nc(n)||rH(n)||ia(n))&&(i=n.elements.indexOf(r).toString()+":"+i),r=n,n=n.$container;return i=n.name+":"+i,e.ruleNames.set(t,i),i}}function Te(e,t){let r=e.tokens[t];if(!r)throw Error(`Token "${t}" not found."`);return r}function Tt(e){let t=e.Grammar,r=e.parser.Lexer,n=new vU(e);return vV(t,n,r.definition),n.finalize(),n}function Tr(e){let t=Tn(e);return t.finalize(),t}function Tn(e){let t=e.Grammar,r=e.parser.Lexer;return vV(t,new vz(e),r.definition)}tf(vV,"createParser"),tf(vH,"buildRules"),tf(vY,"buildInfixRule"),tf(vX,"buildElement"),tf(vJ,"buildAction"),tf(vZ,"buildRuleCall"),tf(vQ,"buildRuleCallPredicate"),tf(v0,"buildPredicate"),tf(v1,"buildAlternatives"),tf(v2,"buildUnorderedGroup"),tf(v3,"buildGroup"),tf(v9,"getGuardCondition"),tf(v4,"buildCrossReference"),tf(v5,"buildKeyword"),tf(v8,"wrap"),tf(v7,"getRule"),tf(v6,"getRuleName"),tf(Te,"getToken"),tf(Tt,"createCompletionParser"),tf(Tr,"createLangiumParser"),tf(Tn,"prepareLangiumParser");var Ti=class{static{tf(this,"DefaultTokenBuilder")}constructor(){this.diagnostics=[]}buildTokens(e,t){let r=rv(an(e,!1)),n=this.buildTerminalTokens(r),i=this.buildKeywordTokens(r,n,t);return i.push(...n),i}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){let e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(n2).filter(e=>!e.fragment).map(e=>this.buildTerminalToken(e)).toArray()}buildTerminalToken(e){let t=aw(e),r=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,n={name:e.name,PATTERN:r};return"function"==typeof r&&(n.LINE_BREAKS=!0),e.hidden&&(n.GROUP=i8(t)?d$.SKIPPED:"hidden"),n}requiresCustomPattern(e){return!!(e.flags.includes("u")||e.flags.includes("s"))}regexPatternFunction(e){let t=RegExp(e,e.flags+"y");return(e,r)=>(t.lastIndex=r,t.exec(e))}buildKeywordTokens(e,t,r){return e.filter(rz).flatMap(e=>rx(e).filter(nb)).distinct(e=>e.value).toArray().sort((e,t)=>t.value.length-e.value.length).map(e=>this.buildKeywordToken(e,t,!!r?.caseInsensitive))}buildKeywordToken(e,t,r){let n=this.buildKeywordPattern(e,r),i={name:e.value,PATTERN:n,LONGER_ALT:this.findLongerAlt(e,t)};return"function"==typeof n&&(i.LINE_BREAKS=!0),i}buildKeywordPattern(e,t){return t?RegExp(i7(e.value),"i"):e.value}findLongerAlt(e,t){return t.reduce((t,r)=>{let n=r?.PATTERN;return n?.source&&i6("^"+n.source+"$",e.value)&&t.push(r),t},[])}},Ta=class{static{tf(this,"DefaultValueConverter")}convert(e,t){let r=t.grammarSource;if(ne(r)&&(r=as(r)),nK(r)){let n=r.rule.ref;if(!n)throw Error("This cst node was not parsed by a rule.");return this.runConverter(n,e,t)}return e}runConverter(e,t,r){switch(e.name.toUpperCase()){case"INT":return ez.convertInt(t);case"STRING":return ez.convertString(t);case"ID":return ez.convertID(t)}switch(aN(e)?.toLowerCase()){case"number":return ez.convertNumber(t);case"boolean":return ez.convertBoolean(t);case"bigint":return ez.convertBigint(t);case"date":return ez.convertDate(t);default:return t}}};!function(e){function t(e){let t="";for(let n=1;n<e.length-1;n++){let i=e.charAt(n);"\\"===i?t+=r(e.charAt(++n)):t+=i}return t}function r(e){switch(e){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return" ";case"v":return"\v";case"0":return"\0";default:return e}}function n(e){return"^"===e.charAt(0)?e.substring(1):e}function i(e){return parseInt(e)}function a(e){return BigInt(e)}function s(e){return new Date(e)}function o(e){return Number(e)}function l(e){return"true"===e.toLowerCase()}tf(t,"convertString"),e.convertString=t,tf(r,"convertEscapeCharacter"),tf(n,"convertID"),e.convertID=n,tf(i,"convertInt"),e.convertInt=i,tf(a,"convertBigint"),e.convertBigint=a,tf(s,"convertDate"),e.convertDate=s,tf(o,"convertNumber"),e.convertNumber=o,tf(l,"convertBoolean"),e.convertBoolean=l}(ez||(ez={}));var Ts={};function To(){return new Promise(e=>{"undefined"==typeof setImmediate?setTimeout(e,0):setImmediate(e)})}tg(Ts,tv(tA(),1)),tf(To,"delayNextTick");var Tl=0,Tu=10;function Tc(){return Tl=performance.now(),new Ts.CancellationTokenSource}function Tp(e){Tu=e}tf(Tc,"startCancelableOperation"),tf(Tp,"setInterruptionPeriod");var Td=Symbol("OperationCancelled");function Tf(e){return e===Td}async function Th(e){if(e===Ts.CancellationToken.None)return;let t=performance.now();if(t-Tl>=Tu&&(Tl=t,await To(),Tl=performance.now()),e.isCancellationRequested)throw Td}tf(Tf,"isOperationCancelled"),tf(Th,"interruptAndCheck");var Tm=class{static{tf(this,"Deferred")}constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>(e(t),this),this.reject=e=>(t(e),this)})}},Ty=class e{static{tf(this,"FullTextDocument")}constructor(e,t,r,n){this._uri=e,this._languageId=t,this._version=r,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content}update(t,r){for(let r of t)if(e.isIncremental(r)){let e=TR(r.range),t=this.offsetAt(e.start),n=this.offsetAt(e.end);this._content=this._content.substring(0,t)+r.text+this._content.substring(n,this._content.length);let i=Math.max(e.start.line,0),a=Math.max(e.end.line,0),s=this._lineOffsets,o=Tv(r.text,!1,t);if(a-i===o.length)for(let e=0,t=o.length;e<t;e++)s[e+i+1]=o[e];else o.length<1e4?s.splice(i+1,a-i,...o):this._lineOffsets=s=s.slice(0,i+1).concat(o,s.slice(a+1));let l=r.text.length-(n-t);if(0!==l)for(let e=i+1+o.length,t=s.length;e<t;e++)s[e]=s[e]+l}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw Error("Unknown change event received");this._version=r}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=Tv(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),r=0,n=t.length;if(0===n)return{line:0,character:e};for(;r<n;){let i=Math.floor((r+n)/2);t[i]>e?n=i:r=i+1}let i=r-1;return e=this.ensureBeforeEOL(e,t[i]),{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let r=t[e.line];if(e.character<=0)return r;let n=e.line+1<t.length?t[e.line+1]:this._content.length,i=Math.min(r+e.character,n);return this.ensureBeforeEOL(i,r)}ensureBeforeEOL(e,t){for(;e>t&&TT(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){return null!=e&&"string"==typeof e.text&&void 0!==e.range&&(void 0===e.rangeLength||"number"==typeof e.rangeLength)}static isFull(e){return null!=e&&"string"==typeof e.text&&void 0===e.range&&void 0===e.rangeLength}};function Tg(e,t){if(e.length<=1)return e;let r=e.length/2|0,n=e.slice(0,r),i=e.slice(r);Tg(n,t),Tg(i,t);let a=0,s=0,o=0;for(;a<n.length&&s<i.length;)0>=t(n[a],i[s])?e[o++]=n[a++]:e[o++]=i[s++];for(;a<n.length;)e[o++]=n[a++];for(;s<i.length;)e[o++]=i[s++];return e}function Tv(e,t,r=0){let n=t?[r]:[];for(let t=0;t<e.length;t++){let i=e.charCodeAt(t);TT(i)&&(13===i&&t+1<e.length&&10===e.charCodeAt(t+1)&&t++,n.push(r+t+1))}return n}function TT(e){return 13===e||10===e}function TR(e){let t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function T$(e){let t=TR(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){function t(e,t,r,n){return new Ty(e,t,r,n)}function r(e,t,r){if(e instanceof Ty)return e.update(t,r),e;throw Error("TextDocument.update: document must be created by TextDocument.create")}function n(e,t){let r=e.getText(),n=Tg(t.map(T$),(e,t)=>{let r=e.range.start.line-t.range.start.line;return 0===r?e.range.start.character-t.range.start.character:r}),i=0,a=[];for(let t of n){let n=e.offsetAt(t.range.start);if(n<i)throw Error("Overlapping edit");n>i&&a.push(r.substring(i,n)),t.newText.length&&a.push(t.newText),i=e.offsetAt(t.range.end)}return a.push(r.substr(i)),a.join("")}tf(t,"create"),e.create=t,tf(r,"update"),e.update=r,tf(n,"applyEdits"),e.applyEdits=n}(eq||(eq={})),tf(Tg,"mergeSort"),tf(Tv,"computeLineOffsets"),tf(TT,"isEOL"),tf(TR,"getWellformedRange"),tf(T$,"getWellformedEdit"),(()=>{let e;var t,r={975:e=>{function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",i=0,a=-1,s=0,o=0;o<=e.length;++o){if(o<e.length)r=e.charCodeAt(o);else{if(47===r)break;r=47}if(47===r){if(a===o-1||1===s);else if(a!==o-1&&2===s){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2)){if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),a=o,s=0;continue}}else if(2===n.length||1===n.length){n="",i=0,a=o,s=0;continue}}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),i=o-a-1;a=o,s=0}else 46===r&&-1!==s?++s:s=-1}return n}tf(t,"e"),tf(r,"r");var n={resolve:tf(function(){for(var e,n,i="",a=!1,s=arguments.length-1;s>=-1&&!a;s--)s>=0?e=arguments[s]:(void 0===n&&(n=ts.cwd()),e=n),t(e),0!==e.length&&(i=e+"/"+i,a=47===e.charCodeAt(0));return i=r(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},"resolve"),normalize:tf(function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&i&&(e+="/"),n?"/"+e:e},"normalize"),isAbsolute:tf(function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},"isAbsolute"),join:tf(function(){if(0==arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":n.normalize(e)},"join"),relative:tf(function(e,r){if(t(e),t(r),e===r||(e=n.resolve(e))===(r=n.resolve(r)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var a=e.length,s=a-i,o=1;o<r.length&&47===r.charCodeAt(o);++o);for(var l=r.length-o,u=s<l?s:l,c=-1,p=0;p<=u;++p){if(p===u){if(l>u){if(47===r.charCodeAt(o+p))return r.slice(o+p+1);if(0===p)return r.slice(o+p)}else s>u&&(47===e.charCodeAt(i+p)?c=p:0===p&&(c=0));break}var d=e.charCodeAt(i+p);if(d!==r.charCodeAt(o+p))break;47===d&&(c=p)}var f="";for(p=i+c+1;p<=a;++p)p!==a&&47!==e.charCodeAt(p)||(0===f.length?f+="..":f+="/..");return f.length>0?f+r.slice(o+c):(o+=c,47===r.charCodeAt(o)&&++o,r.slice(o))},"relative"),_makeLong:tf(function(e){return e},"_makeLong"),dirname:tf(function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,i=-1,a=!0,s=e.length-1;s>=1;--s)if(47===(r=e.charCodeAt(s))){if(!a){i=s;break}}else a=!1;return -1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},"dirname"),basename:tf(function(e,r){if(void 0!==r&&"string"!=typeof r)throw TypeError('"ext" argument must be a string');t(e);var n,i=0,a=-1,s=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var o=r.length-1,l=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!s){i=n+1;break}}else -1===l&&(s=!1,l=n+1),o>=0&&(u===r.charCodeAt(o)?-1==--o&&(a=n):(o=-1,a=l))}return i===a?a=l:-1===a&&(a=e.length),e.slice(i,a)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){i=n+1;break}}else -1===a&&(s=!1,a=n+1);return -1===a?"":e.slice(i,a)},"basename"),extname:tf(function(e){t(e);for(var r=-1,n=0,i=-1,a=!0,s=0,o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(47!==l)-1===i&&(a=!1,i=o+1),46===l?-1===r?r=o:1!==s&&(s=1):-1!==r&&(s=-1);else if(!a){n=o+1;break}}return -1===r||-1===i||0===s||1===s&&r===i-1&&r===n+1?"":e.slice(r,i)},"extname"),format:tf(function(e){var t,r;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r},"format"),parse:tf(function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,i=e.charCodeAt(0),a=47===i;a?(r.root="/",n=1):n=0;for(var s=-1,o=0,l=-1,u=!0,c=e.length-1,p=0;c>=n;--c)if(47!==(i=e.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===i?-1===s?s=c:1!==p&&(p=1):-1!==s&&(p=-1);else if(!u){o=c+1;break}return -1===s||-1===l||0===p||1===p&&s===l-1&&s===o+1?-1!==l&&(r.base=r.name=0===o&&a?e.slice(1,l):e.slice(o,l)):(0===o&&a?(r.name=e.slice(1,s),r.base=e.slice(1,l)):(r.name=e.slice(o,s),r.base=e.slice(o,l)),r.ext=e.slice(s,l)),o>0?r.dir=e.slice(0,o-1):a&&(r.dir="/"),r},"parse"),sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e](a,a.exports,i),a.exports}tf(i,"r"),i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(i.r(a),i.d(a,{URI:tf(()=>p,"URI"),Utils:tf(()=>t,"Utils")}),"object"==typeof ts)?e="win32"===ts.platform:"object"==typeof navigator&&(e=navigator.userAgent.indexOf("Windows")>=0);let s=/^\w[\w\d+.-]*$/,o=/^\//,l=/^\/\//;function u(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!o.test(e.path))throw Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(e.path))throw Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}tf(u,"a");let c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class p{static{tf(this,"l")}static isUri(e){return e instanceof p||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,r,n,i,a=!1){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=function(e,t){return e||t?e:"file"}(e,a),this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?"/"!==t[0]&&(t="/"+t):t="/"}return t}(this.scheme,r||""),this.query=n||"",this.fragment=i||"",u(this,a))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:r,path:n,query:i,fragment:a}=e;return void 0===t?t=this.scheme:null===t&&(t=""),void 0===r?r=this.authority:null===r&&(r=""),void 0===n?n=this.path:null===n&&(n=""),void 0===i?i=this.query:null===i&&(i=""),void 0===a?a=this.fragment:null===a&&(a=""),t===this.scheme&&r===this.authority&&n===this.path&&i===this.query&&a===this.fragment?this:new f(t,r,n,i,a)}static parse(e,t=!1){let r=c.exec(e);return r?new f(r[2]||"",$(r[4]||""),$(r[5]||""),$(r[7]||""),$(r[9]||""),t):new f("","","","","")}static file(t){let r="";if(e&&(t=t.replace(/\\/g,"/")),"/"===t[0]&&"/"===t[1]){let e=t.indexOf("/",2);-1===e?(r=t.substring(2),t="/"):(r=t.substring(2,e),t=t.substring(e)||"/")}return new f("file",r,t,"","")}static from(e){let t=new f(e.scheme,e.authority,e.path,e.query,e.fragment);return u(t,!0),t}toString(e=!1){return v(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof p)return e;{let t=new f(e);return t._formatted=e.external,t._fsPath=e._sep===d?e.fsPath:null,t}}return e}}let d=e?1:void 0;class f extends p{static{tf(this,"d")}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath}toString(e=!1){return e?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let h={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,r){let n,i=-1;for(let a=0;a<e.length;a++){let s=e.charCodeAt(a);if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||r&&91===s||r&&93===s||r&&58===s)-1!==i&&(n+=encodeURIComponent(e.substring(i,a)),i=-1),void 0!==n&&(n+=e.charAt(a));else{void 0===n&&(n=e.substr(0,a));let t=h[s];void 0!==t?(-1!==i&&(n+=encodeURIComponent(e.substring(i,a)),i=-1),n+=t):-1===i&&(i=a)}}return -1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function y(e){let t;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);35===n||63===n?(void 0===t&&(t=e.substr(0,r)),t+=h[n]):void 0!==t&&(t+=e[r])}return void 0!==t?t:e}function g(t,r){let n;return n=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&90>=t.path.charCodeAt(1)||t.path.charCodeAt(1)>=97&&122>=t.path.charCodeAt(1))&&58===t.path.charCodeAt(2)?r?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(n=n.replace(/\//g,"\\")),n}function v(e,t){let r=t?y:m,n="",{scheme:i,authority:a,path:s,query:o,fragment:l}=e;if(i&&(n+=i,n+=":"),(a||"file"===i)&&(n+="/",n+="/"),a){let e=a.indexOf("@");if(-1!==e){let t=a.substr(0,e);a=a.substr(e+1),-1===(e=t.lastIndexOf(":"))?n+=r(t,!1,!1):(n+=r(t.substr(0,e),!1,!1),n+=":",n+=r(t.substr(e+1),!1,!0)),n+="@"}-1===(e=(a=a.toLowerCase()).lastIndexOf(":"))?n+=r(a,!1,!0):(n+=r(a.substr(0,e),!1,!0),n+=a.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){let e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){let e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}n+=r(s,!0,!1)}return o&&(n+="?",n+=r(o,!1,!1)),l&&(n+="#",n+=t?l:m(l,!1,!1)),n}function T(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+T(e.substr(3)):e}}tf(m,"m"),tf(y,"y"),tf(g,"v"),tf(v,"b"),tf(T,"C");let R=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function $(e){return e.match(R)?e.replace(R,e=>T(e)):e}tf($,"w");var b=i(975);let E=b.posix||b;!function(e){e.joinPath=function(e,...t){return e.with({path:E.join(e.path,...t)})},e.resolvePath=function(e,...t){let r=e.path,n=!1;"/"!==r[0]&&(r="/"+r,n=!0);let i=E.resolve(r,...t);return n&&"/"===i[0]&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(0===e.path.length||"/"===e.path)return e;let t=E.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},e.basename=function(e){return E.basename(e.path)},e.extname=function(e){return E.extname(e.path)}}(t||(t={})),eG=a})();var{URI:Tb,Utils:TE}=eG;!function(e){e.basename=TE.basename,e.dirname=TE.dirname,e.extname=TE.extname,e.joinPath=TE.joinPath,e.resolvePath=TE.resolvePath;let t="object"==typeof ts&&ts?.platform==="win32";function r(e,t){return e?.toString()===t?.toString()}function n(e,r){let n="string"==typeof e?Tb.parse(e).path:e.path,i="string"==typeof r?Tb.parse(r).path:r.path,a=n.split("/").filter(e=>e.length>0),s=i.split("/").filter(e=>e.length>0);if(t){let e=/^[A-Z]:$/;if(a[0]&&e.test(a[0])&&(a[0]=a[0].toLowerCase()),s[0]&&e.test(s[0])&&(s[0]=s[0].toLowerCase()),a[0]!==s[0])return i.substring(1)}let o=0;for(;o<a.length&&a[o]===s[o];o++);return"../".repeat(a.length-o)+s.slice(o).join("/")}function i(e){return Tb.parse(e.toString()).toString()}function a(e,t){let r="string"==typeof e?e:e.path,n="string"==typeof t?t:t.path;return"/"===n.charAt(n.length-1)&&(n=n.slice(0,-1)),"/"===r.charAt(r.length-1)&&(r=r.slice(0,-1)),n===r||!(n.length<r.length)&&"/"===n.charAt(r.length)&&n.startsWith(r)}tf(r,"equals"),e.equals=r,tf(n,"relative"),e.relative=n,tf(i,"normalize"),e.normalize=i,tf(a,"contains"),e.contains=a}(eU||(eU={}));var TC=class{static{tf(this,"UriTrie")}constructor(){this.root={name:"",children:new Map}}normalizeUri(e){return eU.normalize(e)}clear(){this.root.children.clear()}insert(e,t){this.getNode(this.normalizeUri(e),!0).element=t}delete(e){let t=this.getNode(this.normalizeUri(e),!1);t?.parent&&t.parent.children.delete(t.name)}has(e){return this.getNode(this.normalizeUri(e),!1)?.element!==void 0}hasNode(e){return void 0!==this.getNode(this.normalizeUri(e),!1)}find(e){return this.getNode(this.normalizeUri(e),!1)?.element}findNode(e){let t=this.normalizeUri(e),r=this.getNode(t,!1);if(r)return{name:r.name,uri:eU.joinPath(Tb.parse(t),r.name).toString(),element:r.element}}findChildren(e){let t=this.normalizeUri(e),r=this.getNode(t,!1);return r?Array.from(r.children.values()).map(e=>({name:e.name,uri:eU.joinPath(Tb.parse(t),e.name).toString(),element:e.element})):[]}all(){return this.collectValues(this.root)}findAll(e){let t=this.getNode(eU.normalize(e),!1);return t?this.collectValues(t):[]}getNode(e,t){let r=e.split("/");"/"===e.charAt(e.length-1)&&r.pop();let n=this.root;for(let e of r){let r=n.children.get(e);if(!r)if(!t)return;else r={name:e,children:new Map,parent:n},n.children.set(e,r);n=r}return n}collectValues(e){let t=[];for(let r of(e.element&&t.push(e.element),e.children.values()))t.push(...this.collectValues(r));return t}};!function(e){e[e.Changed=0]="Changed",e[e.Parsed=1]="Parsed",e[e.IndexedContent=2]="IndexedContent",e[e.ComputedScopes=3]="ComputedScopes",e[e.Linked=4]="Linked",e[e.IndexedReferences=5]="IndexedReferences",e[e.Validated=6]="Validated"}(eK||(eK={}));var TA=class{static{tf(this,"DefaultLangiumDocumentFactory")}constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=Ts.CancellationToken.None){let r=await this.fileSystemProvider.readFile(e);return this.createAsync(e,r,t)}fromTextDocument(e,t,r){return(t=t??Tb.parse(e.uri),Ts.CancellationToken.is(r))?this.createAsync(t,e,r):this.create(t,e,r)}fromString(e,t,r){return Ts.CancellationToken.is(r)?this.createAsync(t,e,r):this.create(t,e,r)}fromModel(e,t){return this.create(t,{$model:e})}create(e,t,r){if("string"==typeof t){let n=this.parse(e,t,r);return this.createLangiumDocument(n,e,void 0,t)}if("$model"in t){let r={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(r,e)}{let n=this.parse(e,t.getText(),r);return this.createLangiumDocument(n,e,t)}}async createAsync(e,t,r){if("string"==typeof t){let n=await this.parseAsync(e,t,r);return this.createLangiumDocument(n,e,void 0,t)}{let n=await this.parseAsync(e,t.getText(),r);return this.createLangiumDocument(n,e,t)}}createLangiumDocument(e,t,r,n){let i;if(r)i={parseResult:e,uri:t,state:eK.Parsed,references:[],textDocument:r};else{let r=this.createTextDocumentGetter(t,n);i={parseResult:e,uri:t,state:eK.Parsed,references:[],get textDocument(){return r()}}}return e.value.$document=i,i}async update(e,t){let r=e.parseResult.value.$cstNode?.root.fullText,n=this.textDocuments?.get(e.uri.toString()),i=n?n.getText():await this.fileSystemProvider.readFile(e.uri);if(n)Object.defineProperty(e,"textDocument",{value:n});else{let t=this.createTextDocumentGetter(e.uri,i);Object.defineProperty(e,"textDocument",{get:t})}return r!==i&&(e.parseResult=await this.parseAsync(e.uri,i,t),e.parseResult.value.$document=e),e.state=eK.Parsed,e}parse(e,t,r){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(t,r)}parseAsync(e,t,r){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(t,r)}createTextDocumentGetter(e,t){let r,n=this.serviceRegistry;return()=>r??(r=eq.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,t??""))}},TS=class{static{tf(this,"DefaultLangiumDocuments")}constructor(e){this.documentTrie=new TC,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return rv(this.documentTrie.all())}addDocument(e){let t=e.uri.toString();if(this.documentTrie.has(t))throw Error(`A document with the URI '${t}' is already present.`);this.documentTrie.insert(t,e)}getDocument(e){let t=e.toString();return this.documentTrie.find(t)}getDocuments(e){let t=e.toString();return this.documentTrie.findAll(t)}async getOrCreateDocument(e,t){let r=this.getDocument(e);return r||(r=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(r)),r}createDocument(e,t,r){if(r)return this.langiumDocumentFactory.fromString(t,e,r).then(e=>(this.addDocument(e),e));{let r=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(r),r}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){let t=e.toString(),r=this.documentTrie.find(t);return r&&this.documentBuilder().resetToState(r,eK.Changed),r}deleteDocument(e){let t=e.toString(),r=this.documentTrie.find(t);return r&&(r.state=eK.Changed,this.documentTrie.delete(t)),r}deleteDocuments(e){let t=e.toString(),r=this.documentTrie.findAll(t);for(let e of r)e.state=eK.Changed;return this.documentTrie.delete(t),r}},Tk=Symbol("RefResolving"),Tx=class{static{tf(this,"DefaultLinker")}constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async link(e,t=Ts.CancellationToken.None){if(this.profiler?.isActive("linking")){let r=this.profiler.createTask("linking",this.languageId);r.start();try{for(let n of rN(e.parseResult.value))await Th(t),rI(n).forEach(t=>{let i=`${n.$type}:${t.property}`;r.startSubTask(i);try{this.doLink(t,e)}finally{r.stopSubTask(i)}})}finally{r.stop()}}else for(let r of rN(e.parseResult.value))await Th(t),rI(r).forEach(t=>this.doLink(t,e))}doLink(e,t){let r=e.reference;if("_ref"in r&&void 0===r._ref){r._ref=Tk;try{let t=this.getCandidate(e);rl(t)?r._ref=t:(r._nodeDescription=t,r._ref=this.loadAstNode(t)??this.createLinkingError(e,t))}catch(n){console.error(`An error occurred while resolving reference to '${r.$refText}':`,n);let t=n.message??String(n);r._ref={info:e,message:`An error occurred while resolving reference to '${r.$refText}': ${t}`}}t.references.push(r)}else if("_items"in r&&void 0===r._items){r._items=Tk;try{let t=this.getCandidates(e),n=[];if(rl(t))r._linkingError=t;else for(let e of t){let t=this.loadAstNode(e);t&&n.push({ref:t,$nodeDescription:e})}r._items=n}catch(t){r._linkingError={info:e,message:`An error occurred while resolving reference to '${r.$refText}': ${t}`},r._items=[]}t.references.push(r)}}unlink(e){for(let t of e.references)"_ref"in t?(t._ref=void 0,delete t._nodeDescription):"_items"in t&&(t._items=void 0,delete t._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){let t=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(e=>`${e.documentUri}#${e.path}`).toArray();return t.length>0?t:this.createLinkingError(e)}buildReference(e,t,r,n){let i=this,a={$refNode:r,$refText:n,_ref:void 0,get ref(){if(ri(this._ref))return this._ref;if(ro(this._nodeDescription)){let r=i.loadAstNode(this._nodeDescription);this._ref=r??i.createLinkingError({reference:a,container:e,property:t},this._nodeDescription)}else if(void 0===this._ref){this._ref=Tk;let r=rA(e).$document,n=i.getLinkedNode({reference:a,container:e,property:t});if(n.error&&r&&r.state<eK.ComputedScopes)return this._ref=void 0;this._ref=n.node??n.error,this._nodeDescription=n.descr,r?.references.push(this)}else this._ref===Tk&&i.throwCyclicReferenceError(e,t,n);return ri(this._ref)?this._ref:void 0},get $nodeDescription(){return this._nodeDescription},get error(){return rl(this._ref)?this._ref:void 0}};return a}buildMultiReference(e,t,r,n){let i=this,a={$refNode:r,$refText:n,_items:void 0,get items(){if(Array.isArray(this._items))return this._items;if(void 0===this._items){this._items=Tk;let r=rA(e).$document,n=i.getCandidates({reference:a,container:e,property:t}),s=[];if(rl(n))this._linkingError=n;else for(let e of n){let t=i.loadAstNode(e);t&&s.push({ref:t,$nodeDescription:e})}this._items=s,r?.references.push(this)}else this._items===Tk&&i.throwCyclicReferenceError(e,t,n);return Array.isArray(this._items)?this._items:[]},get error(){if(this._linkingError)return this._linkingError;if(this.items.length>0)return;return this._linkingError=i.createLinkingError({reference:a,container:e,property:t})}};return a}throwCyclicReferenceError(e,t,r){throw Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${t} (symbol '${r}')`)}getLinkedNode(e){try{let t=this.getCandidate(e);if(rl(t))return{error:t};let r=this.loadAstNode(t);if(r)return{node:r,descr:t};return{descr:t,error:this.createLinkingError(e,t)}}catch(r){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,r);let t=r.message??String(r);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${t}`}}}}loadAstNode(e){if(e.node)return e.node;let t=this.langiumDocuments().getDocument(e.documentUri);if(t)return this.astNodeLocator.getAstNode(t.parseResult.value,e.path)}createLinkingError(e,t){let r=rA(e.container).$document;r&&r.state<eK.ComputedScopes&&console.warn(`Attempted reference resolution before document reached ComputedScopes state (${r.uri}).`);let n=this.reflection.getReferenceType(e);return{info:e,message:`Could not resolve reference to ${n} named '${e.reference.$refText}'.`,targetDescription:t}}};function TN(e){return"string"==typeof e.name}tf(TN,"isNamed");var Tw=class{static{tf(this,"DefaultNameProvider")}getName(e){if(TN(e))return e.name}getNameNode(e){return au(e.$cstNode,"name")}},TI=class{static{tf(this,"DefaultReferences")}constructor(e){this.nameProvider=e.references.NameProvider,this.index=e.shared.workspace.IndexManager,this.nodeLocator=e.workspace.AstNodeLocator,this.documents=e.shared.workspace.LangiumDocuments,this.hasMultiReference=rN(e.Grammar).some(e=>ne(e)&&e.isMulti)}findDeclarations(e){if(e){let t=ah(e),r=e.astNode;if(t&&r){let n=r[t.feature];if(ra(n)||rs(n))return rS(n);if(Array.isArray(n)){for(let t of n)if((ra(t)||rs(t))&&t.$refNode&&t.$refNode.offset<=e.offset&&t.$refNode.end>=e.end)return rS(t)}}if(r){let t=this.nameProvider.getNameNode(r);if(t&&(t===e||iv(e,t)))return this.getSelfNodes(r)}}return[]}getSelfNodes(e){if(!this.hasMultiReference)return[e];{let t=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),r=this.getNodeFromReferenceDescription(t.head());if(r){for(let t of rI(r))if(rs(t.reference)&&t.reference.items.some(t=>t.ref===e))return t.reference.items.map(e=>e.ref)}return[e]}}getNodeFromReferenceDescription(e){if(!e)return;let t=this.documents.getDocument(e.sourceUri);if(t)return this.nodeLocator.getAstNode(t.parseResult.value,e.sourcePath)}findDeclarationNodes(e){let t=this.findDeclarations(e),r=[];for(let e of t){let t=this.nameProvider.getNameNode(e)??e.$cstNode;t&&r.push(t)}return r}findReferences(e,t){let r=[];t.includeDeclaration&&r.push(...this.getSelfReferences(e));let n=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(n=n.filter(e=>eU.equals(e.sourceUri,t.documentUri))),r.push(...n),rv(r)}getSelfReferences(e){let t=this.getSelfNodes(e),r=[];for(let e of t){let t=this.nameProvider.getNameNode(e);if(t){let n=rC(e),i=this.nodeLocator.getAstNodePath(e);r.push({sourceUri:n.uri,sourcePath:i,targetUri:n.uri,targetPath:i,segment:iR(t),local:!0})}}return r}},T_=class{static{tf(this,"MultiMap")}constructor(e){if(this.map=new Map,e)for(let[t,r]of e)this.add(t,r)}get size(){return eD.sum(rv(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(void 0===t)return this.map.delete(e);{let r=this.map.get(e);if(r){let n=r.indexOf(t);if(n>=0)return 1===r.length?this.map.delete(e):r.splice(n,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){let t=this.map.get(e);return t?rv(t):ry}has(e,t){if(void 0===t)return this.map.has(e);{let r=this.map.get(e);return!!r&&r.indexOf(t)>=0}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,r)=>t.forEach(t=>e(t,r,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return rv(this.map.entries()).flatMap(([e,t])=>t.map(t=>[e,t]))}keys(){return rv(this.map.keys())}values(){return rv(this.map.values()).flat()}entriesGroupedByKey(){return rv(this.map.entries())}},TP=class{static{tf(this,"BiMap")}get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(let[t,r]of e)this.set(t,r)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){let t=this.map.get(e);return void 0!==t&&(this.map.delete(e),this.inverse.delete(t),!0)}},TD=class{static{tf(this,"DefaultScopeComputation")}constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,t=Ts.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,t)}async collectExportedSymbolsForNode(e,t,r=rk,n=Ts.CancellationToken.None){let i=[];for(let a of(this.addExportedSymbol(e,i,t),r(e)))await Th(n),this.addExportedSymbol(a,i,t);return i}addExportedSymbol(e,t,r){let n=this.nameProvider.getName(e);n&&t.push(this.descriptions.createDescription(e,n,r))}async collectLocalSymbols(e,t=Ts.CancellationToken.None){let r=e.parseResult.value,n=new T_;for(let i of rx(r))await Th(t),this.addLocalSymbol(i,e,n);return n}addLocalSymbol(e,t,r){let n=e.$container;if(n){let i=this.nameProvider.getName(e);i&&r.add(n,this.descriptions.createDescription(e,i,t))}}},TO=class{static{tf(this,"StreamScope")}constructor(e,t,r){this.elements=e,this.outerScope=t,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.caseInsensitive?this.elements.find(e=>e.name.toLowerCase()===t):this.elements.find(t=>t.name===e);return r||(this.outerScope?this.outerScope.getElement(e):void 0)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.caseInsensitive?this.elements.filter(e=>e.name.toLowerCase()===t):this.elements.filter(t=>t.name===e);return(this.concatOuterScope||r.isEmpty())&&this.outerScope?r.concat(this.outerScope.getElements(e)):r}},TL=class{static{tf(this,"MapScope")}constructor(e,t,r){for(let t of(this.elements=new Map,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0,e)){let e=this.caseInsensitive?t.name.toLowerCase():t.name;this.elements.set(e,t)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);return r||(this.outerScope?this.outerScope.getElement(e):void 0)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t),n=r?[r]:[];return(this.concatOuterScope||n.length>0)&&this.outerScope?rv(n).concat(this.outerScope.getElements(e)):rv(n)}getAllElements(){let e=rv(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},TM=class{static{tf(this,"MultiMapScope")}constructor(e,t,r){for(let t of(this.elements=new T_,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0,e)){let e=this.caseInsensitive?t.name.toLowerCase():t.name;this.elements.add(e,t)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t)[0];return r||(this.outerScope?this.outerScope.getElement(e):void 0)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);return(this.concatOuterScope||0===r.length)&&this.outerScope?rv(r).concat(this.outerScope.getElements(e)):rv(r)}getAllElements(){let e=rv(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},Tj={getElement(){},getElements:()=>ry,getAllElements:()=>ry},TF=class{static{tf(this,"DisposableCache")}constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw Error("This cache has already been disposed")}},Tz=class extends TF{static{tf(this,"SimpleCache")}constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){let r=t();return this.cache.set(e,r),r}}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},Tq=class extends TF{static{tf(this,"ContextCache")}constructor(e){super(),this.cache=new Map,this.converter=e??(e=>e)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,r){this.throwIfDisposed(),this.cacheForContext(e).set(t,r)}get(e,t,r){this.throwIfDisposed();let n=this.cacheForContext(e);if(n.has(t))return n.get(t);if(r){let e=r();return n.set(t,e),e}}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){let t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){let t=this.converter(e),r=this.cache.get(t);return r||(r=new Map,this.cache.set(t,r)),r}},TG=class extends Tq{static{tf(this,"DocumentCache")}constructor(e,t){super(e=>e.toString()),t?(this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(t,e=>{this.clear(e.uri.toString())})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{for(let e of t)this.clear(e)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{for(let r of e.concat(t))this.clear(r)}))}},TU=class extends Tz{static{tf(this,"WorkspaceCache")}constructor(e,t){super(),t?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{t.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},TK=class{static{tf(this,"DefaultScopeProvider")}constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new TU(e.shared)}getScope(e){let t=[],r=this.reflection.getReferenceType(e),n=rC(e.container).localSymbols;if(n){let i=e.container;do n.has(i)&&t.push(n.getStream(i).filter(e=>this.reflection.isSubtype(e.type,r))),i=i.$container;while(i)}let i=this.getGlobalScope(r,e);for(let e=t.length-1;e>=0;e--)i=this.createScope(t[e],i);return i}createScope(e,t,r){return new TO(rv(e),t,r)}createScopeForNodes(e,t,r){return new TO(rv(e).map(e=>{let t=this.nameProvider.getName(e);if(t)return this.descriptions.createDescription(e,t)}).nonNullable(),t,r)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new TM(this.indexManager.allElements(e)))}};function TW(e){return"string"==typeof e.$comment}function TB(e){return"object"==typeof e&&!!e&&("$ref"in e||"$error"in e)}tf(TW,"isAstNodeWithComment"),tf(TB,"isIntermediateReference");var TV=class{static{tf(this,"DefaultJsonSerializer")}constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t){let r=t??{},n=t?.replacer,i=tf((e,t)=>this.replacer(e,t,r),"defaultReplacer"),a=n?(e,t)=>n(e,t,i):i;try{return this.currentDocument=rC(e),JSON.stringify(e,a,t?.space)}finally{this.currentDocument=void 0}}deserialize(e,t){let r=JSON.parse(e);return this.linkNode(r,r,t??{}),r}replacer(e,t,{refText:r,sourceText:n,textRegions:i,comments:a,uriConverter:s}){if(!this.ignoreProperties.has(e)){if(ra(t)){let e=t.ref,n=r?t.$refText:void 0;if(!e)return{$error:t.error?.message??"Could not resolve reference",$refText:n};{let t=rC(e),r="";this.currentDocument&&this.currentDocument!==t&&(r=s?s(t.uri,e):t.uri.toString());let i=this.astNodeLocator.getAstNodePath(e);return{$ref:`${r}#${i}`,$refText:n}}}if(rs(t)){let e=r?t.$refText:void 0,n=[];for(let e of t.items){let t=e.ref,r=rC(e.ref),i="";this.currentDocument&&this.currentDocument!==r&&(i=s?s(r.uri,t):r.uri.toString());let a=this.astNodeLocator.getAstNodePath(t);n.push(`${i}#${a}`)}return{$refs:n,$refText:e}}{let r;if(!ri(t))return t;if(i&&(r=this.addAstNodeRegionWithAssignmentsTo({...t}),(!e||t.$document)&&r?.$textRegion&&(r.$textRegion.documentURI=this.currentDocument?.uri.toString())),n&&!e&&(r??(r={...t}),r.$sourceText=t.$cstNode?.text),a){r??(r={...t});let e=this.commentProvider.getComment(t);e&&(r.$comment=e.replace(/\r/g,""))}return r??t}}}addAstNodeRegionWithAssignmentsTo(e){let t=tf(e=>({offset:e.offset,end:e.end,length:e.length,range:e.range}),"createDocumentSegment");if(e.$cstNode){let r=(e.$textRegion=t(e.$cstNode)).assignments={};return Object.keys(e).filter(e=>!e.startsWith("$")).forEach(n=>{let i=al(e.$cstNode,n).map(t);0!==i.length&&(r[n]=i)}),e}}linkNode(e,t,r,n,i,a){for(let[n,i]of Object.entries(e))if(Array.isArray(i))for(let a=0;a<i.length;a++){let s=i[a];TB(s)?i[a]=this.reviveReference(e,n,t,s,r):ri(s)&&this.linkNode(s,t,r,e,n,a)}else TB(i)?e[n]=this.reviveReference(e,n,t,i,r):ri(i)&&this.linkNode(i,t,r,e,n);e.$container=n,e.$containerProperty=i,e.$containerIndex=a}reviveReference(e,t,r,n,i){let a,s=n.$refText,o=n.$error;if(n.$ref){let e=this.getRefNode(r,n.$ref,i.uriConverter);if(ri(e))return s||(s=this.nameProvider.getName(e)),{$refText:s??"",ref:e};o=e}else if(n.$refs){let e=[];for(let t of n.$refs){let n=this.getRefNode(r,t,i.uriConverter);ri(n)&&e.push({ref:n})}if(0!==e.length)return{$refText:s??"",items:e};a={$refText:s??"",items:e},o??(o="Could not resolve multi-reference")}return o?(a??(a={$refText:s??"",ref:void 0}),a.error={info:{container:e,property:t,reference:a},message:o},a):void 0}getRefNode(e,t,r){try{let n=t.indexOf("#");if(0===n){let r=this.astNodeLocator.getAstNode(e,t.substring(1));if(!r)return"Could not resolve path: "+t;return r}if(n<0){let e=r?r(t):Tb.parse(t),n=this.langiumDocuments.getDocument(e);if(!n)return"Could not find document for URI: "+t;return n.parseResult.value}let i=r?r(t.substring(0,n)):Tb.parse(t.substring(0,n)),a=this.langiumDocuments.getDocument(i);if(!a)return"Could not find document for URI: "+t;if(n===t.length-1)return a.parseResult.value;let s=this.astNodeLocator.getAstNode(a.parseResult.value,t.substring(n+1));if(!s)return"Could not resolve URI: "+t;return s}catch(e){return String(e)}}},TH=class{static{tf(this,"DefaultServiceRegistry")}get map(){return this.fileExtensionMap}constructor(e){this.languageIdMap=new Map,this.fileExtensionMap=new Map,this.fileNameMap=new Map,this.textDocuments=e?.workspace.TextDocuments}register(e){let t=e.LanguageMetaData;for(let r of t.fileExtensions)this.fileExtensionMap.has(r)&&console.warn(`The file extension ${r} is used by multiple languages. It is now assigned to '${t.languageId}'.`),this.fileExtensionMap.set(r,e);if(t.fileNames)for(let r of t.fileNames)this.fileNameMap.has(r)&&console.warn(`The file name ${r} is used by multiple languages. It is now assigned to '${t.languageId}'.`),this.fileNameMap.set(r,e);this.languageIdMap.set(t.languageId,e)}getServices(e){if(0===this.languageIdMap.size)throw Error("The service registry is empty. Use `register` to register the services of a language.");let t=this.textDocuments?.get(e)?.languageId;if(void 0!==t){let e=this.languageIdMap.get(t);if(e)return e}let r=eU.extname(e),n=eU.basename(e),i=this.fileNameMap.get(n)??this.fileExtensionMap.get(r);if(!i)if(t)throw Error(`The service registry contains no services for the extension '${r}' for language '${t}'.`);else throw Error(`The service registry contains no services for the extension '${r}'.`);return i}hasServices(e){try{return this.getServices(e),!0}catch{return!1}}get all(){return Array.from(this.languageIdMap.values())}};function TY(e){return{code:e}}tf(TY,"diagnosticData"),function(e){e.defaults=["fast","slow","built-in"],e.all=e.defaults}(eW||(eW={}));var TX=class{static{tf(this,"ValidationRegistry")}constructor(e){this.entries=new T_,this.knownCategories=new Set(eW.defaults),this.entriesBefore=[],this.entriesAfter=[],this.reflection=e.shared.AstReflection}register(e,t=this,r="fast"){if("built-in"===r)throw Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");for(let[n,i]of(this.knownCategories.add(r),Object.entries(e)))if(Array.isArray(i))for(let e of i){let i={check:this.wrapValidationException(e,t),category:r};this.addEntry(n,i)}else if("function"==typeof i){let e={check:this.wrapValidationException(i,t),category:r};this.addEntry(n,e)}else ij(i)}wrapValidationException(e,t){return async(r,n,i)=>{await this.handleException(()=>e.call(t,r,n,i),"An error occurred during validation",n,r)}}async handleException(e,t,r,n){try{await e()}catch(i){if(Tf(i))throw i;console.error(`${t}:`,i),i instanceof Error&&i.stack&&console.error(i.stack);let e=i instanceof Error?i.message:String(i);r("error",`${t}: ${e}`,{node:n})}}addEntry(e,t){if("AstNode"===e)return void this.entries.add("AstNode",t);for(let r of this.reflection.getAllSubTypes(e))this.entries.add(r,t)}getChecks(e,t){let r=rv(this.entries.get(e)).concat(this.entries.get("AstNode"));return t&&(r=r.filter(e=>t.includes(e.category))),r.map(e=>e.check)}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",t))}wrapPreparationException(e,t,r){return async(n,i,a,s)=>{await this.handleException(()=>e.call(r,n,i,a,s),t,i,n)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},TJ=Object.freeze({validateNode:!0,validateChildren:!0}),TZ=class{static{tf(this,"DefaultDocumentValidator")}constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,t={},r=Ts.CancellationToken.None){let n=e.parseResult,i=[];if((await Th(r),!t.categories||t.categories.includes("built-in"))&&(this.processLexingErrors(n,i,t),t.stopAfterLexingErrors&&i.some(e=>e.data?.code===eB.LexingError)||(this.processParsingErrors(n,i,t),t.stopAfterParsingErrors&&i.some(e=>e.data?.code===eB.ParsingError))||(this.processLinkingErrors(e,i,t),t.stopAfterLinkingErrors&&i.some(e=>e.data?.code===eB.LinkingError))))return i;try{i.push(...await this.validateAst(n.value,t,r))}catch(e){if(Tf(e))throw e;console.error("An error occurred during validation:",e)}return await Th(r),i}processLexingErrors(e,t,r){for(let r of[...e.lexerErrors,...e.lexerReport?.diagnostics??[]]){let e=r.severity??"error",n={severity:T0(e),range:{start:{line:r.line-1,character:r.column-1},end:{line:r.line-1,character:r.column+r.length-1}},message:r.message,data:T1(e),source:this.getSource()};t.push(n)}}processParsingErrors(e,t,r){for(let r of e.parserErrors){let e;if(isNaN(r.token.startOffset)){if("previousToken"in r){let t=r.previousToken;if(isNaN(t.startOffset)){let t={line:0,character:0};e={start:t,end:t}}else{let r={line:t.endLine-1,character:t.endColumn};e={start:r,end:r}}}}else e=iT(r.token);if(e){let n={severity:T0("error"),range:e,message:r.message,data:TY(eB.ParsingError),source:this.getSource()};t.push(n)}}}processLinkingErrors(e,t,r){for(let r of e.references){let e=r.error;if(e){let n={node:e.info.container,range:r.$refNode?.range,property:e.info.property,index:e.info.index,data:{code:eB.LinkingError,containerType:e.info.container.$type,property:e.info.property,refText:e.info.reference.$refText}};t.push(this.toDiagnostic("error",e.message,n))}}}async validateAst(e,t,r=Ts.CancellationToken.None){let n=[],i=tf((e,t,r)=>{n.push(this.toDiagnostic(e,t,r))},"acceptor");return await this.validateAstBefore(e,t,i,r),await this.validateAstNodes(e,t,i,r),await this.validateAstAfter(e,t,i,r),n}async validateAstBefore(e,t,r,n=Ts.CancellationToken.None){for(let i of this.validationRegistry.checksBefore)await Th(n),await i(e,r,t.categories??[],n)}async validateAstNodes(e,t,r,n=Ts.CancellationToken.None){if(this.profiler?.isActive("validating")){let i=this.profiler.createTask("validating",this.languageId);i.start();try{let a=rN(e).iterator();for(let e of a){i.startSubTask(e.$type);let s=this.validateSingleNodeOptions(e,t);if(s.validateNode)try{for(let i of this.validationRegistry.getChecks(e.$type,t.categories))await i(e,r,n)}finally{i.stopSubTask(e.$type)}s.validateChildren||a.prune()}}finally{i.stop()}}else{let i=rN(e).iterator();for(let e of i){await Th(n);let a=this.validateSingleNodeOptions(e,t);if(a.validateNode)for(let i of this.validationRegistry.getChecks(e.$type,t.categories))await i(e,r,n);a.validateChildren||i.prune()}}}validateSingleNodeOptions(e,t){return TJ}async validateAstAfter(e,t,r,n=Ts.CancellationToken.None){for(let i of this.validationRegistry.checksAfter)await Th(n),await i(e,r,t.categories??[],n)}toDiagnostic(e,t,r){return{message:t,range:TQ(r),severity:T0(e),code:r.code,codeDescription:r.codeDescription,tags:r.tags,relatedInformation:r.relatedInformation,data:r.data,source:this.getSource()}}getSource(){return this.metadata.languageId}};function TQ(e){let t;return e.range?e.range:("string"==typeof e.property?t=au(e.node.$cstNode,e.property,e.index):"string"==typeof e.keyword&&(t=ad(e.node.$cstNode,e.keyword,e.index)),t??(t=e.node.$cstNode),t)?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}function T0(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw Error("Invalid diagnostic severity: "+e)}}function T1(e){switch(e){case"error":return TY(eB.LexingError);case"warning":return TY(eB.LexingWarning);case"info":return TY(eB.LexingInfo);case"hint":return TY(eB.LexingHint);default:throw Error("Invalid diagnostic severity: "+e)}}tf(TQ,"getDiagnosticRange"),tf(T0,"toDiagnosticSeverity"),tf(T1,"toDiagnosticData"),function(e){e.LexingError="lexing-error",e.LexingWarning="lexing-warning",e.LexingInfo="lexing-info",e.LexingHint="lexing-hint",e.ParsingError="parsing-error",e.LinkingError="linking-error"}(eB||(eB={}));var T2=class{static{tf(this,"DefaultAstNodeDescriptionProvider")}constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,r){let n,i=r??rC(e);t??(t=this.nameProvider.getName(e));let a=this.astNodeLocator.getAstNodePath(e);if(!t)throw Error(`Node at path ${a} has no name.`);let s=tf(()=>n??(n=iR(this.nameProvider.getNameNode(e)??e.$cstNode)),"nameSegmentGetter");return{node:e,name:t,get nameSegment(){return s()},selectionSegment:iR(e.$cstNode),type:e.$type,documentUri:i.uri,path:a}}},T3=class{static{tf(this,"DefaultReferenceDescriptionProvider")}constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=Ts.CancellationToken.None){let r=[];for(let n of rN(e.parseResult.value))await Th(t),rI(n).forEach(e=>{e.reference.error||r.push(...this.createInfoDescriptions(e))});return r}createInfoDescriptions(e){let t=e.reference;if(t.error||!t.$refNode)return[];let r=[];ra(t)&&t.$nodeDescription?r=[t.$nodeDescription]:rs(t)&&(r=t.items.map(e=>e.$nodeDescription).filter(e=>void 0!==e));let n=rC(e.container).uri,i=this.nodeLocator.getAstNodePath(e.container),a=[],s=iR(t.$refNode);for(let e of r)a.push({sourceUri:n,sourcePath:i,targetUri:e.documentUri,targetPath:e.path,segment:s,local:eU.equals(e.documentUri,n)});return a}},T9=class{static{tf(this,"DefaultAstNodeLocator")}constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){let t=this.getAstNodePath(e.$container),r=this.getPathSegment(e);return t+this.segmentSeparator+r}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw Error("Missing '$containerProperty' in AST node.");return void 0!==t?e+this.indexSeparator+t:e}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((e,t)=>{if(!e||0===t.length)return e;let r=t.indexOf(this.indexSeparator);if(r>0){let n=t.substring(0,r),i=parseInt(t.substring(r+1)),a=e[n];return a?.[i]}return e[t]},e)}},T4={};tg(T4,tv(tC(),1));var T5=class{static{tf(this,"DefaultConfigurationProvider")}constructor(e){this._ready=new Tm,this.onConfigurationSectionUpdateEmitter=new T4.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){let t=this.serviceRegistry.all;e.register({section:t.map(e=>this.toSectionName(e.LanguageMetaData.languageId))})}if(e.fetchConfiguration){let t=this.serviceRegistry.all.map(e=>({section:this.toSectionName(e.LanguageMetaData.languageId)})),r=await e.fetchConfiguration(t);t.forEach((e,t)=>{this.updateSectionConfiguration(e.section,r[t])})}}this._ready.resolve()}updateConfiguration(e){"object"==typeof e.settings&&null!==e.settings&&Object.entries(e.settings).forEach(([e,t])=>{this.updateSectionConfiguration(e,t),this.onConfigurationSectionUpdateEmitter.fire({section:e,configuration:t})})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;let r=this.toSectionName(e);if(this.settings[r])return this.settings[r][t]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},T8=tv(rt(),1);!function(e){function t(e){return{dispose:tf(async()=>await e(),"dispose")}}tf(t,"create"),e.create=t}(eV||(eV={}));var T7=class{static{tf(this,"DefaultDocumentBuilder")}constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new T_,this.documentPhaseListeners=new T_,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=eK.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},r=Ts.CancellationToken.None){for(let r of e){let e=r.uri.toString();if(r.state===eK.Validated){if("boolean"==typeof t.validation&&t.validation)this.resetToState(r,eK.IndexedReferences);else if("object"==typeof t.validation){let n=this.findMissingValidationCategories(r,t);n.length>0&&(this.buildState.set(e,{completed:!1,options:{validation:{categories:n}},result:this.buildState.get(e)?.result}),r.state=eK.IndexedReferences)}}else this.buildState.delete(e)}this.currentState=eK.Changed,await this.emitUpdate(e.map(e=>e.uri),[]),await this.buildDocuments(e,t,r)}async update(e,t,r=Ts.CancellationToken.None){this.currentState=eK.Changed;let n=[];for(let e of t)for(let t of this.langiumDocuments.deleteDocuments(e))n.push(t.uri),this.cleanUpDeleted(t);let i=(await Promise.all(e.map(e=>this.findChangedUris(e)))).flat();for(let e of i){let t=this.langiumDocuments.getDocument(e);void 0===t&&((t=this.langiumDocumentFactory.fromModel({$type:"INVALID"},e)).state=eK.Changed,this.langiumDocuments.addDocument(t)),this.resetToState(t,eK.Changed)}let a=rv(i).concat(n).map(e=>e.toString()).toSet();this.langiumDocuments.all.filter(e=>!a.has(e.uri.toString())&&this.shouldRelink(e,a)).forEach(e=>this.resetToState(e,eK.ComputedScopes)),await this.emitUpdate(i,n),await Th(r);let s=this.sortDocuments(this.langiumDocuments.all.filter(e=>e.state<eK.Validated||!this.buildState.get(e.uri.toString())?.completed||this.resultsAreIncomplete(e,this.updateBuildOptions)).toArray());await this.buildDocuments(s,this.updateBuildOptions,r)}resultsAreIncomplete(e,t){return this.findMissingValidationCategories(e,t).length>=1}findMissingValidationCategories(e,t){let r=this.buildState.get(e.uri.toString()),n=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),i=r?.result?.validationChecks?new Set(r?.result?.validationChecks):r?.completed?n:new Set;return rv(void 0===t||!0===t.validation?n:"object"==typeof t.validation?t.validation.categories??n:[]).filter(e=>!i.has(e)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{let t=await this.fileSystemProvider.stat(e);if(t.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(t))return[e]}catch{}return[]}async emitUpdate(e,t){await Promise.all(this.updateListeners.map(r=>r(e,t)))}sortDocuments(e){let t=0,r=e.length-1;for(;t<r;){for(;t<e.length&&this.hasTextDocument(e[t]);)t++;for(;r>=0&&!this.hasTextDocument(e[r]);)r--;t<r&&([e[t],e[r]]=[e[r],e[t]])}return e}hasTextDocument(e){return!!this.textDocuments?.get(e.uri)}shouldRelink(e,t){return!!e.references.some(e=>void 0!==e.error)||this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),eV.create(()=>{let t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}resetToState(e,t){switch(t){case eK.Changed:case eK.Parsed:this.indexManager.removeContent(e.uri);case eK.IndexedContent:e.localSymbols=void 0;case eK.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case eK.Linked:this.indexManager.removeReferences(e.uri);case eK.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case eK.Validated:}e.state>t&&(e.state=t)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=eK.Changed}async buildDocuments(e,t,r){this.prepareBuild(e,t),await this.runCancelable(e,eK.Parsed,r,e=>this.langiumDocumentFactory.update(e,r)),await this.runCancelable(e,eK.IndexedContent,r,e=>this.indexManager.updateContent(e,r)),await this.runCancelable(e,eK.ComputedScopes,r,async e=>{let t=this.serviceRegistry.getServices(e.uri).references.ScopeComputation;e.localSymbols=await t.collectLocalSymbols(e,r)});let n=e.filter(e=>this.shouldLink(e));await this.runCancelable(n,eK.Linked,r,e=>this.serviceRegistry.getServices(e.uri).references.Linker.link(e,r)),await this.runCancelable(n,eK.IndexedReferences,r,e=>this.indexManager.updateReferences(e,r));let i=e.filter(e=>!!this.shouldValidate(e)||(this.markAsCompleted(e),!1));await this.runCancelable(i,eK.Validated,r,async e=>{await this.validate(e,r),this.markAsCompleted(e)})}markAsCompleted(e){let t=this.buildState.get(e.uri.toString());t&&(t.completed=!0)}prepareBuild(e,t){for(let r of e){let e=r.uri.toString(),n=this.buildState.get(e);(!n||n.completed)&&this.buildState.set(e,{completed:!1,options:t,result:n?.result})}}async runCancelable(e,t,r,n){for(let i of e)i.state<t&&(await Th(r),await n(i),i.state=t,await this.notifyDocumentPhase(i,t,r));let i=e.filter(e=>e.state===t);await this.notifyBuildPhase(i,t,r),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),eV.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),eV.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(e,t,r){let n;return(t&&"path"in t?n=t:r=t,r??(r=Ts.CancellationToken.None),n)?this.awaitDocumentState(e,n,r):this.awaitBuilderState(e,r)}awaitDocumentState(e,t,r){let n=this.langiumDocuments.getDocument(t);return n?n.state>=e?Promise.resolve(t):r.isCancellationRequested?Promise.reject(Td):this.currentState>=e&&e>n.state?Promise.reject(new T8.ResponseError(T8.LSPErrorCodes.RequestFailed,`Document state of ${t.toString()} is ${eK[n.state]}, requiring ${eK[e]}, but workspace state is already ${eK[this.currentState]}. Returning undefined.`)):new Promise((n,i)=>{let a=this.onDocumentPhase(e,e=>{eU.equals(e.uri,t)&&(a.dispose(),s.dispose(),n(e.uri))}),s=r.onCancellationRequested(()=>{a.dispose(),s.dispose(),i(Td)})}):Promise.reject(new T8.ResponseError(T8.LSPErrorCodes.ServerCancelled,`No document found for URI: ${t.toString()}`))}awaitBuilderState(e,t){return this.currentState>=e?Promise.resolve():t.isCancellationRequested?Promise.reject(Td):new Promise((r,n)=>{let i=this.onBuildPhase(e,()=>{i.dispose(),a.dispose(),r()}),a=t.onCancellationRequested(()=>{i.dispose(),a.dispose(),n(Td)})})}async notifyDocumentPhase(e,t,r){for(let n of this.documentPhaseListeners.get(t).slice())try{await Th(r),await n(e,r)}catch(e){if(!Tf(e))throw e}}async notifyBuildPhase(e,t,r){if(0!==e.length)for(let n of this.buildPhaseListeners.get(t).slice())await Th(r),await n(e,r)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){let r=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,n=this.getBuildOptions(e),i="object"==typeof n.validation?{...n.validation}:{};i.categories=this.findMissingValidationCategories(e,n);let a=await r.validateDocument(e,i,t);e.diagnostics?e.diagnostics.push(...a):e.diagnostics=a;let s=this.buildState.get(e.uri.toString());s&&(s.result??(s.result={}),s.result.validationChecks?s.result.validationChecks=rv(s.result.validationChecks).concat(i.categories).distinct().toArray():s.result.validationChecks=[...i.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},T6=class{static{tf(this,"DefaultIndexManager")}constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new Tq,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){let r=rC(e).uri,n=[];return this.referenceIndex.forEach(e=>{e.forEach(e=>{eU.equals(e.targetUri,r)&&e.targetPath===t&&n.push(e)})}),rv(n)}allElements(e,t){let r=rv(this.symbolIndex.keys());return t&&(r=r.filter(e=>!t||t.has(e))),r.map(t=>this.getFileDescriptions(t,e)).flat()}getFileDescriptions(e,t){return t?this.symbolByTypeIndex.get(e,t,()=>(this.symbolIndex.get(e)??[]).filter(e=>this.astReflection.isSubtype(e.type,t))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){let t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t)}removeReferences(e){let t=e.toString();this.referenceIndex.delete(t)}async updateContent(e,t=Ts.CancellationToken.None){let r=this.serviceRegistry.getServices(e.uri),n=await r.references.ScopeComputation.collectExportedSymbols(e,t),i=e.uri.toString();this.symbolIndex.set(i,n),this.symbolByTypeIndex.clear(i)}async updateReferences(e,t=Ts.CancellationToken.None){let r=this.serviceRegistry.getServices(e.uri),n=await r.workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),n)}isAffected(e,t){let r=this.referenceIndex.get(e.uri.toString());return!!r&&r.some(e=>!e.local&&t.has(e.targetUri.toString()))}},Re=class{static{tf(this,"DefaultWorkspaceManager")}constructor(e){this.initialBuildOptions={},this._ready=new Tm,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(e=>this.initializeWorkspace(this.folders??[],e))}async initializeWorkspace(e,t=Ts.CancellationToken.None){let r=await this.performStartup(e);await Th(t),await this.documentBuilder.build(r,this.initialBuildOptions,t)}async performStartup(e){let t=[],r=tf(e=>{t.push(e),this.langiumDocuments.hasDocument(e.uri)||this.langiumDocuments.addDocument(e)},"collector");await this.loadAdditionalDocuments(e,r);let n=[];await Promise.all(e.map(e=>this.getRootFolder(e)).map(async e=>this.traverseFolder(e,n)));let i=rv(n).distinct(e=>e.toString()).filter(e=>!this.langiumDocuments.hasDocument(e));return await this.loadWorkspaceDocuments(i,r),this._ready.resolve(),t}async loadWorkspaceDocuments(e,t){await Promise.all(e.map(async e=>{t(await this.langiumDocuments.getOrCreateDocument(e))}))}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return Tb.parse(e.uri)}async traverseFolder(e,t){try{let r=await this.fileSystemProvider.readDirectory(e);await Promise.all(r.map(async e=>{this.shouldIncludeEntry(e)&&(e.isDirectory?await this.traverseFolder(e.uri,t):e.isFile&&t.push(e.uri))}))}catch(t){console.error("Failure to read directory content of "+e.toString(!0),t)}}async searchFolder(e){let t=[];return await this.traverseFolder(e,t),t}shouldIncludeEntry(e){let t=eU.basename(e.uri);return!t.startsWith(".")&&(e.isDirectory?"node_modules"!==t&&"out"!==t:!!e.isFile&&this.serviceRegistry.hasServices(e.uri))}},Rt=class{static{tf(this,"DefaultLexerErrorMessageProvider")}buildUnexpectedCharactersMessage(e,t,r,n,i){return dT.buildUnexpectedCharactersMessage(e,t,r,n,i)}buildUnableToPopLexerModeMessage(e){return dT.buildUnableToPopLexerModeMessage(e)}},Rr={mode:"full"},Rn=class{static{tf(this,"DefaultLexer")}constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;let t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);let r=Rs(t)?Object.values(t):t,n="production"===e.LanguageMetaData.mode;this.chevrotainLexer=new d$(r,{positionTracking:"full",skipValidations:n,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=Rr){let r=this.chevrotainLexer.tokenize(e);return{tokens:r.tokens,errors:r.errors,hidden:r.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(Rs(e))return e;let t=Ra(e)?Object.values(e.modes).flat():e,r={};return t.forEach(e=>r[e.name]=e),r}};function Ri(e){return Array.isArray(e)&&(0===e.length||"name"in e[0])}function Ra(e){return e&&"modes"in e&&"defaultMode"in e}function Rs(e){return!Ri(e)&&!Ra(e)}function Ro(e,t,r){let n,i;return"string"==typeof e?(i=t,n=r):(i=e.range.start,n=t),i||(i=o.create(0,0)),Rv({index:0,tokens:Rd({lines:Ru(e),position:i,options:RA(n)}),position:i})}function Rl(e,t){let r=RA(t),n=Ru(e);if(0===n.length)return!1;let i=n[0],a=n[n.length-1],s=r.start,o=r.end;return!!s?.exec(i)&&!!o?.exec(a)}function Ru(e){return("string"==typeof e?e:e.text).split(i1)}tf(Ri,"isTokenTypeArray"),tf(Ra,"isIMultiModeLexerDefinition"),tf(Rs,"isTokenTypeDictionary"),t$(),tf(Ro,"parseJSDoc"),tf(Rl,"isJSDoc"),tf(Ru,"getLines");var Rc=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Rp=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function Rd(e){let t=[],r=e.position.line,n=e.position.character;for(let i=0;i<e.lines.length;i++){let a=0===i,s=i===e.lines.length-1,u=e.lines[i],c=0;if(a&&e.options.start){let t=e.options.start?.exec(u);t&&(c=t.index+t[0].length)}else{let t=e.options.line?.exec(u);t&&(c=t.index+t[0].length)}if(s){let t=e.options.end?.exec(u);t&&(u=u.substring(0,t.index))}if(Ry(u=u.substring(0,Rg(u)),c)>=u.length){if(t.length>0){let e=o.create(r,n);t.push({type:"break",content:"",range:l.create(e,e)})}}else{Rc.lastIndex=c;let e=Rc.exec(u);if(e){let i=e[0],a=e[1],s=o.create(r,n+c),p=o.create(r,n+c+i.length);t.push({type:"tag",content:a,range:l.create(s,p)}),c+=i.length,c=Ry(u,c)}if(c<u.length){let e=u.substring(c),i=Array.from(e.matchAll(Rp));t.push(...Rf(i,e,r,n+c))}}r++,n=0}return t.length>0&&"break"===t[t.length-1].type?t.slice(0,-1):t}function Rf(e,t,r,n){let i=[];if(0===e.length){let e=o.create(r,n),a=o.create(r,n+t.length);i.push({type:"text",content:t,range:l.create(e,a)})}else{let a=0;for(let s of e){let e=s.index,u=t.substring(a,e);u.length>0&&i.push({type:"text",content:t.substring(a,e),range:l.create(o.create(r,a+n),o.create(r,e+n))});let c=u.length+1,p=s[1];if(i.push({type:"inline-tag",content:p,range:l.create(o.create(r,a+c+n),o.create(r,a+c+p.length+n))}),c+=p.length,4===s.length){c+=s[2].length;let e=s[3];i.push({type:"text",content:e,range:l.create(o.create(r,a+c+n),o.create(r,a+c+e.length+n))})}else i.push({type:"text",content:"",range:l.create(o.create(r,a+c+n),o.create(r,a+c+n))});a=e+s[0].length}let s=t.substring(a);s.length>0&&i.push({type:"text",content:s,range:l.create(o.create(r,a+n),o.create(r,a+n+s.length))})}return i}tf(Rd,"tokenize"),tf(Rf,"buildInlineTokens");var Rh=/\S/,Rm=/\s*$/;function Ry(e,t){let r=e.substring(t).match(Rh);return r?t+r.index:e.length}function Rg(e){let t=e.match(Rm);if(t&&"number"==typeof t.index)return t.index}function Rv(e){let t=o.create(e.position.line,e.position.character);if(0===e.tokens.length)return new Rk([],l.create(t,t));let r=[];for(;e.index<e.tokens.length;){let t=RT(e,r[r.length-1]);t&&r.push(t)}let n=r[0]?.range.start??t,i=r[r.length-1]?.range.end??t;return new Rk(r,l.create(n,i))}function RT(e,t){let r=e.tokens[e.index];return"tag"===r.type?RE(e,!1):"text"===r.type||"inline-tag"===r.type?R$(e):(RR(r,t),void e.index++)}function RR(e,t){if(t){let r=new R_("",e.range);"inlines"in t?t.inlines.push(r):t.content.inlines.push(r)}}function R$(e){let t=e.tokens[e.index],r=t,n=t,i=[];for(;t&&"break"!==t.type&&"tag"!==t.type;)i.push(Rb(e)),n=t,t=e.tokens[e.index];return new RI(i,l.create(r.range.start,n.range.end))}function Rb(e){return"inline-tag"===e.tokens[e.index].type?RE(e,!0):RC(e)}function RE(e,t){let r=e.tokens[e.index++],n=r.content.substring(1),i=e.tokens[e.index];if(i?.type==="text")if(t){let i=RC(e);return new Rx(n,new RI([i],i.range),t,l.create(r.range.start,i.range.end))}else{let i=R$(e);return new Rx(n,i,t,l.create(r.range.start,i.range.end))}{let e=r.range;return new Rx(n,new RI([],e),t,e)}}function RC(e){let t=e.tokens[e.index++];return new R_(t.content,t.range)}function RA(e){if(!e)return RA({start:"/**",end:"*/",line:"*"});let{start:t,end:r,line:n}=e;return{start:RS(t,!0),end:RS(r,!1),line:RS(n,!0)}}function RS(e,t){if("string"!=typeof e&&"object"!=typeof e)return e;{let r="string"==typeof e?i7(e):e.source;return t?RegExp(`^\\s*${r}`):RegExp(`\\s*${r}\\s*$`)}}tf(Ry,"skipWhitespace"),tf(Rg,"lastCharacter"),tf(Rv,"parseJSDocComment"),tf(RT,"parseJSDocElement"),tf(RR,"appendEmptyLine"),tf(R$,"parseJSDocText"),tf(Rb,"parseJSDocInline"),tf(RE,"parseJSDocTag"),tf(RC,"parseJSDocLine"),tf(RA,"normalizeOptions"),tf(RS,"normalizeOption");var Rk=class{static{tf(this,"JSDocCommentImpl")}constructor(e,t){this.elements=e,this.range=t}getTag(e){return this.getAllTags().find(t=>t.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(let t of this.elements)if(0===e.length)e=t.toString();else{let r=t.toString();e+=RP(e)+r}return e.trim()}toMarkdown(e){let t="";for(let r of this.elements)if(0===t.length)t=r.toMarkdown(e);else{let n=r.toMarkdown(e);t+=RP(t)+n}return t.trim()}},Rx=class{static{tf(this,"JSDocTagImpl")}constructor(e,t,r,n){this.name=e,this.content=t,this.inline=r,this.range=n}toString(){let e=`@${this.name}`,t=this.content.toString();return(1===this.content.inlines.length?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e}
|
|
79
|
+
${t}`),this.inline)?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){let t=this.content.toMarkdown(e);if(this.inline){let r=RN(this.name,t,e??{});if("string"==typeof r)return r}let r="";e?.tag==="italic"||e?.tag===void 0?r="*":e?.tag==="bold"?r="**":e?.tag==="bold-italic"&&(r="***");let n=`${r}@${this.name}${r}`;return(1===this.content.inlines.length?n=`${n} \u2014 ${t}`:this.content.inlines.length>1&&(n=`${n}
|
|
80
|
+
${t}`),this.inline)?`{${n}}`:n}};function RN(e,t,r){if("linkplain"===e||"linkcode"===e||"link"===e){let n=t.indexOf(" "),i=t;if(n>0){let e=Ry(t,n);i=t.substring(e),t=t.substring(0,n)}return("linkcode"===e||"link"===e&&"code"===r.link)&&(i=`\`${i}\``),r.renderLink?.(t,i)??Rw(t,i)}}function Rw(e,t){try{return Tb.parse(e,!0),`[${t}](${e})`}catch{return e}}tf(RN,"renderInlineTag"),tf(Rw,"renderLinkDefault");var RI=class{static{tf(this,"JSDocTextImpl")}constructor(e,t){this.inlines=e,this.range=t}toString(){let e="";for(let t=0;t<this.inlines.length;t++){let r=this.inlines[t],n=this.inlines[t+1];e+=r.toString(),n&&n.range.start.line>r.range.start.line&&(e+="\n")}return e}toMarkdown(e){let t="";for(let r=0;r<this.inlines.length;r++){let n=this.inlines[r],i=this.inlines[r+1];t+=n.toMarkdown(e),i&&i.range.start.line>n.range.start.line&&(t+="\n")}return t}},R_=class{static{tf(this,"JSDocLineImpl")}constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}};function RP(e){return e.endsWith("\n")?"\n":"\n\n"}tf(RP,"fillNewlines");var RD=class{static{tf(this,"JSDocDocumentationProvider")}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let t=this.commentProvider.getComment(e);if(t&&Rl(t))return Ro(t).toMarkdown({renderLink:tf((t,r)=>this.documentationLinkRenderer(e,t,r),"renderLink"),renderTag:tf(t=>this.documentationTagRenderer(e,t),"renderTag")})}documentationLinkRenderer(e,t,r){let n=this.findNameInLocalSymbols(e,t)??this.findNameInGlobalScope(e,t);if(n&&n.nameSegment){let e=n.nameSegment.range.start.line+1,t=n.nameSegment.range.start.character+1,i=n.documentUri.with({fragment:`L${e},${t}`});return`[${r}](${i.toString()})`}}documentationTagRenderer(e,t){}findNameInLocalSymbols(e,t){let r=rC(e).localSymbols;if(!r)return;let n=e;do{let e=r.getStream(n).find(e=>e.name===t);if(e)return e;n=n.$container}while(n)}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(e=>e.name===t)}},RO=class{static{tf(this,"DefaultCommentProvider")}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return TW(e)?e.$comment:iA(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},RL=class{static{tf(this,"DefaultAsyncParser")}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},RM=class{static{tf(this,"AbstractThreadedAsyncParser")}constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length<this.threadCount;){let e=this.createWorker();e.onReady(()=>{if(this.queue.length>0){let t=this.queue.shift();t&&(e.lock(),t.resolve(e))}}),this.workerPool.push(e)}}async parse(e,t){let r,n=await this.acquireParserWorker(t),i=new Tm,a=t.onCancellationRequested(()=>{r=setTimeout(()=>{this.terminateWorker(n)},this.terminationDelay)});return n.parse(e).then(e=>{let t=this.hydrator.hydrate(e);i.resolve(t)}).catch(e=>{i.reject(e)}).finally(()=>{a.dispose(),clearTimeout(r)}),i.promise}terminateWorker(e){e.terminate();let t=this.workerPool.indexOf(e);t>=0&&this.workerPool.splice(t,1)}async acquireParserWorker(e){for(let e of(this.initializeWorkers(),this.workerPool))if(e.ready)return e.lock(),e;let t=new Tm;return e.onCancellationRequested(()=>{let e=this.queue.indexOf(t);e>=0&&this.queue.splice(e,1),t.reject(Td)}),this.queue.push(t),t.promise}},Rj=class{static{tf(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,t,r,n){this.onReadyEmitter=new T4.Emitter,this.deferred=new Tm,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=n,t(e=>{this.deferred.resolve(e),this.unlock()}),r(e=>{this.deferred.reject(e),this.unlock()})}terminate(){this.deferred.reject(Td),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw Error("Parser worker is busy");return this._parsing=!0,this.deferred=new Tm,this.sendMessage(e),this.deferred.promise}},RF=class{static{tf(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new Ts.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();let t=Tc();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,r=Ts.CancellationToken.None){let n=new Tm;return e.push({action:t,deferred:n,cancellationToken:r}),this.performNextOperation(),n.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else{if(!(this.readQueue.length>0))return;e.push(...this.readQueue.splice(0,this.readQueue.length))}this.done=!1,await Promise.all(e.map(async({action:e,deferred:t,cancellationToken:r})=>{try{let n=await Promise.resolve().then(()=>e(r));t.resolve(n)}catch(e){Tf(e)?t.resolve(void 0):t.reject(e)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},Rz=class{static{tf(this,"DefaultHydrator")}constructor(e){this.grammarElementIdMap=new TP,this.tokenTypeIdMap=new TP,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(e=>({...e,message:e.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){let t=new Map,r=new Map;for(let r of rN(e))t.set(r,{});if(e.$cstNode)for(let t of iy(e.$cstNode))r.set(t,{});return{astNodes:t,cstNodes:r}}dehydrateAstNode(e,t){let r=t.astNodes.get(e);for(let[n,i]of(r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,void 0!==e.$cstNode&&(r.$cstNode=this.dehydrateCstNode(e.$cstNode,t)),Object.entries(e)))if(!n.startsWith("$"))if(Array.isArray(i)){let e=[];for(let a of(r[n]=e,i))ri(a)?e.push(this.dehydrateAstNode(a,t)):ra(a)?e.push(this.dehydrateReference(a,t)):e.push(a)}else ri(i)?r[n]=this.dehydrateAstNode(i,t):ra(i)?r[n]=this.dehydrateReference(i,t):void 0!==i&&(r[n]=i);return r}dehydrateReference(e,t){let r={};return r.$refText=e.$refText,e.$refNode&&(r.$refNode=t.cstNodes.get(e.$refNode)),r}dehydrateCstNode(e,t){let r=t.cstNodes.get(e);return rd(e)?r.fullText=e.fullText:r.grammarSource=this.getGrammarElementId(e.grammarSource),r.hidden=e.hidden,r.astNode=t.astNodes.get(e.astNode),rc(e)?r.content=e.content.map(e=>this.dehydrateCstNode(e,t)):rp(e)&&(r.tokenType=e.tokenType.name,r.offset=e.offset,r.length=e.length,r.startLine=e.range.start.line,r.startColumn=e.range.start.character,r.endLine=e.range.end.line,r.endColumn=e.range.end.character),r}hydrate(e){let t=e.value,r=this.createHydrationContext(t);return"$cstNode"in t&&this.hydrateCstNode(t.$cstNode,r),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,r)}}createHydrationContext(e){let t,r=new Map,n=new Map;for(let t of rN(e))r.set(t,{});if(e.$cstNode)for(let r of iy(e.$cstNode)){let e;"fullText"in r?t=e=new vO(r.fullText):"content"in r?e=new vP:"tokenType"in r&&(e=this.hydrateCstLeafNode(r)),e&&(n.set(r,e),e.root=t)}return{astNodes:r,cstNodes:n}}hydrateAstNode(e,t){let r=t.astNodes.get(e);for(let[n,i]of(r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode&&(r.$cstNode=t.cstNodes.get(e.$cstNode)),Object.entries(e)))if(!n.startsWith("$"))if(Array.isArray(i)){let e=[];for(let a of(r[n]=e,i))ri(a)?e.push(this.setParent(this.hydrateAstNode(a,t),r)):ra(a)?e.push(this.hydrateReference(a,r,n,t)):e.push(a)}else ri(i)?r[n]=this.setParent(this.hydrateAstNode(i,t),r):ra(i)?r[n]=this.hydrateReference(i,r,n,t):void 0!==i&&(r[n]=i);return r}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,r,n){return this.linker.buildReference(t,r,n.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,r=0){let n=t.cstNodes.get(e);if("number"==typeof e.grammarSource&&(n.grammarSource=this.getGrammarElement(e.grammarSource)),n.astNode=t.astNodes.get(e.astNode),rc(n))for(let i of e.content){let e=this.hydrateCstNode(i,t,r++);n.content.push(e)}return n}hydrateCstLeafNode(e){let t=this.getTokenType(e.tokenType),r=e.offset,n=e.length,i=e.startLine,a=e.startColumn,s=e.endLine;return new v_(r,n,{start:{line:i,character:a},end:{line:s,character:e.endColumn}},t,e.hidden)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return 0===this.grammarElementIdMap.size&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return 0===this.grammarElementIdMap.size&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(let t of rN(this.grammar))rj(t)&&this.grammarElementIdMap.set(t,e++)}};function Rq(e){return{documentation:{CommentProvider:tf(e=>new RO(e),"CommentProvider"),DocumentationProvider:tf(e=>new RD(e),"DocumentationProvider")},parser:{AsyncParser:tf(e=>new RL(e),"AsyncParser"),GrammarConfig:tf(e=>az(e),"GrammarConfig"),LangiumParser:tf(e=>Tr(e),"LangiumParser"),CompletionParser:tf(e=>Tt(e),"CompletionParser"),ValueConverter:tf(()=>new Ta,"ValueConverter"),TokenBuilder:tf(()=>new Ti,"TokenBuilder"),Lexer:tf(e=>new Rn(e),"Lexer"),ParserErrorMessageProvider:tf(()=>new vG,"ParserErrorMessageProvider"),LexerErrorMessageProvider:tf(()=>new Rt,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:tf(()=>new T9,"AstNodeLocator"),AstNodeDescriptionProvider:tf(e=>new T2(e),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:tf(e=>new T3(e),"ReferenceDescriptionProvider")},references:{Linker:tf(e=>new Tx(e),"Linker"),NameProvider:tf(()=>new Tw,"NameProvider"),ScopeProvider:tf(e=>new TK(e),"ScopeProvider"),ScopeComputation:tf(e=>new TD(e),"ScopeComputation"),References:tf(e=>new TI(e),"References")},serializer:{Hydrator:tf(e=>new Rz(e),"Hydrator"),JsonSerializer:tf(e=>new TV(e),"JsonSerializer")},validation:{DocumentValidator:tf(e=>new TZ(e),"DocumentValidator"),ValidationRegistry:tf(e=>new TX(e),"ValidationRegistry")},shared:tf(()=>e.shared,"shared")}}function RG(e){return{ServiceRegistry:tf(e=>new TH(e),"ServiceRegistry"),workspace:{LangiumDocuments:tf(e=>new TS(e),"LangiumDocuments"),LangiumDocumentFactory:tf(e=>new TA(e),"LangiumDocumentFactory"),DocumentBuilder:tf(e=>new T7(e),"DocumentBuilder"),IndexManager:tf(e=>new T6(e),"IndexManager"),WorkspaceManager:tf(e=>new Re(e),"WorkspaceManager"),FileSystemProvider:tf(t=>e.fileSystemProvider(t),"FileSystemProvider"),WorkspaceLock:tf(()=>new RF,"WorkspaceLock"),ConfigurationProvider:tf(e=>new T5(e),"ConfigurationProvider")},profilers:{}}}function RU(e,t,r,n,i,a,s,o,l){return RB([e,t,r,n,i,a,s,o,l].reduce(RY,{}))}tf(Rq,"createDefaultCoreModule"),tf(RG,"createDefaultSharedCoreModule"),(eH||(eH={})).merge=(e,t)=>RY(RY({},e),t),tf(RU,"inject");var RK=Symbol("isProxy");function RW(e){if(e&&e[RK])for(let t of Object.values(e))RW(t);return e}function RB(e,t){let r=new Proxy({},{deleteProperty:tf(()=>!1,"deleteProperty"),set:tf(()=>{throw Error("Cannot set property on injected service container")},"set"),get:tf((n,i)=>i===RK||RH(n,i,e,t||r),"get"),getOwnPropertyDescriptor:tf((n,i)=>(RH(n,i,e,t||r),Object.getOwnPropertyDescriptor(n,i)),"getOwnPropertyDescriptor"),has:tf((t,r)=>r in e,"has"),ownKeys:tf(()=>[...Object.getOwnPropertyNames(e)],"ownKeys")});return r}tf(RW,"eagerLoad"),tf(RB,"_inject");var RV=Symbol();function RH(e,t,r,n){if(t in e){if(e[t]instanceof Error)throw Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+e[t]);if(e[t]===RV)throw Error('Cycle detected. Please make "'+String(t)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return e[t]}if(t in r){let i=r[t];e[t]=RV;try{e[t]="function"==typeof i?i(n):RB(i,n)}catch(r){throw e[t]=r instanceof Error?r:void 0,r}return e[t]}}function RY(e,t){if(t){for(let[r,n]of Object.entries(t))if(null!=n)if("object"==typeof n){let t=e[r];"object"==typeof t&&null!==t?e[r]=RY(t,n):e[r]=RY({},n)}else e[r]=n}return e}tf(RH,"_resolve"),tf(RY,"_merge");var RX={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]};!function(e){e.REGULAR="indentation-sensitive",e.IGNORE_INDENTATION="ignore-indentation"}(eY||(eY={}));var RJ=class extends Ti{static{tf(this,"IndentationAwareTokenBuilder")}constructor(e=RX){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...RX,...e},this.indentTokenType=d_({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=d_({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,t){let r,n,i,a=super.buildTokens(e,t);if(!Ri(a))throw Error("Invalid tokens built by default builder");let{indentTokenName:s,dedentTokenName:o,whitespaceTokenName:l,ignoreIndentationDelimiters:u}=this.options,c=[];for(let e of a){for(let[t,r]of u)e.name===t?e.PUSH_MODE=eY.IGNORE_INDENTATION:e.name===r&&(e.POP_MODE=!0);e.name===o?r=e:e.name===s?n=e:e.name===l?i=e:c.push(e)}if(!r||!n||!i)throw Error("Some indentation/whitespace tokens not found!");return u.length>0?{modes:{[eY.REGULAR]:[r,n,...c,i],[eY.IGNORE_INDENTATION]:[...c,i]},defaultMode:eY.REGULAR}:[r,n,i,...c]}flushLexingReport(e){return{...super.flushLexingReport(e),remainingDedents:this.flushRemainingDedents(e)}}isStartOfLine(e,t){return 0===t||"\r\n".includes(e[t-1])}matchWhitespace(e,t,r,n){this.whitespaceRegExp.lastIndex=t;let i=this.whitespaceRegExp.exec(e);return{currIndentLevel:i?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:i}}createIndentationTokenInstance(e,t,r,n){let i=this.getLineNumber(t,n);return dO(e,r,n,n+r.length,i,i,1,r.length)}getLineNumber(e,t){return e.substring(0,t).split(/\r\n|\r|\n/).length}indentMatcher(e,t,r,n){if(!this.isStartOfLine(e,t))return null;let{currIndentLevel:i,prevIndentLevel:a,match:s}=this.matchWhitespace(e,t,r,n);return i<=a?null:(this.indentationStack.push(i),s)}dedentMatcher(e,t,r,n){if(!this.isStartOfLine(e,t))return null;let{currIndentLevel:i,prevIndentLevel:a,match:s}=this.matchWhitespace(e,t,r,n);if(i>=a)return null;let o=this.indentationStack.lastIndexOf(i);if(-1===o)return this.diagnostics.push({severity:"error",message:`Invalid dedent level ${i} at offset: ${t}. Current indentation stack: ${this.indentationStack}`,offset:t,length:s?.[0]?.length??0,line:this.getLineNumber(e,t),column:1}),null;let l=this.indentationStack.length-o-1,u=e.substring(0,t).match(/[\r\n]+$/)?.[0].length??1;for(let n=0;n<l;n++){let n=this.createIndentationTokenInstance(this.dedentTokenType,e,"",t-(u-1));r.push(n),this.indentationStack.pop()}return null}buildTerminalToken(e){let t=super.buildTerminalToken(e),{indentTokenName:r,dedentTokenName:n,whitespaceTokenName:i}=this.options;return t.name===r?this.indentTokenType:t.name===n?this.dedentTokenType:t.name===i?d_({name:i,pattern:this.whitespaceRegExp,group:d$.SKIPPED}):t}flushRemainingDedents(e){let t=[];for(;this.indentationStack.length>1;)t.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],t}},RZ=class extends Rn{static{tf(this,"IndentationAwareLexer")}constructor(e){if(super(e),e.parser.TokenBuilder instanceof RJ)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder")}tokenize(e,t=Rr){let r=super.tokenize(e),n=r.report;t?.mode==="full"&&r.tokens.push(...n.remainingDedents),n.remainingDedents=[];let{indentTokenType:i,dedentTokenType:a}=this.indentationTokenBuilder,s=i.tokenTypeIdx,o=a.tokenTypeIdx,l=[],u=r.tokens.length-1;for(let e=0;e<u;e++){let t=r.tokens[e],n=r.tokens[e+1];if(t.tokenTypeIdx===s&&n.tokenTypeIdx===o){e++;continue}l.push(t)}return u>=0&&l.push(r.tokens[u]),r.tokens=l,r}},RQ={};tm(RQ,{AstUtils:()=>rR,BiMap:()=>TP,Cancellation:()=>Ts,ContextCache:()=>Tq,CstUtils:()=>rn,DONE_RESULT:()=>rg,Deferred:()=>Tm,Disposable:()=>eV,DisposableCache:()=>TF,DocumentCache:()=>TG,EMPTY_STREAM:()=>ry,ErrorWithLocation:()=>iM,GrammarUtils:()=>iL,MultiMap:()=>T_,OperationCancelled:()=>Td,Reduction:()=>eD,RegExpUtils:()=>iz,SimpleCache:()=>Tz,StreamImpl:()=>rf,TreeStreamImpl:()=>rT,URI:()=>Tb,UriTrie:()=>TC,UriUtils:()=>eU,WorkspaceCache:()=>TU,assertCondition:()=>iF,assertUnreachable:()=>ij,delayNextTick:()=>To,interruptAndCheck:()=>Th,isOperationCancelled:()=>Tf,loadGrammarFromJson:()=>R4,setInterruptionPeriod:()=>Tp,startCancelableOperation:()=>Tc,stream:()=>rv}),tg(RQ,T4);var R0=class{static{tf(this,"EmptyFileSystemProvider")}stat(e){throw Error("No file system is available.")}statSync(e){throw Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw Error("No file system is available.")}readBinarySync(){throw Error("No file system is available.")}readFile(){throw Error("No file system is available.")}readFileSync(){throw Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},R1={fileSystemProvider:tf(()=>new R0,"fileSystemProvider")},R2={Grammar:tf(()=>void 0,"Grammar"),LanguageMetaData:tf(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},R3={AstReflection:tf(()=>new id,"AstReflection")};function R9(){let e=RU(RG(R1),R3),t=RU(Rq({shared:e}),R2);return e.ServiceRegistry.register(t),t}function R4(e){let t=R9(),r=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(r,Tb.parse(`memory:/${r.name??"grammar"}.langium`)),r}tf(R9,"createMinimalGrammarServices"),tf(R4,"loadGrammarFromJson"),tg(rr,RQ);var R5=class{static{tf(this,"DefaultLangiumProfiler")}constructor(e){this.activeCategories=new Set,this.allCategories=new Set(["validating","parsing","linking"]),this.activeCategories=e??new Set(this.allCategories),this.records=new T_}isActive(e){return this.activeCategories.has(e)}start(...e){e?e.forEach(e=>this.activeCategories.add(e)):this.activeCategories=new Set(this.allCategories)}stop(...e){e?e.forEach(e=>this.activeCategories.delete(e)):this.activeCategories.clear()}createTask(e,t){if(!this.isActive(e))throw Error(`Category "${e}" is not active.`);return console.log(`Creating profiling task for '${e}.${t}'.`),new R8(t=>this.records.add(e,this.dumpRecord(e,t)),t)}dumpRecord(e,t){console.info(`Task ${e}.${t.identifier} executed in ${t.duration.toFixed(2)}ms and ended at ${t.date.toISOString()}`);let r=[];for(let e of t.entries.keys()){let n=t.entries.get(e),i=n.reduce((e,t)=>e+t);r.push({name:`${t.identifier}.${e}`,count:n.length,duration:i})}let n=t.duration-r.map(e=>e.duration).reduce((e,t)=>e+t,0);function i(e){return Math.round(100*e)/100}return r.push({name:t.identifier,count:1,duration:n}),r.sort((e,t)=>t.duration-e.duration),tf(i,"Round"),console.table(r.map(e=>({Element:e.name,Count:e.count,"Self %":i(100*e.duration/t.duration),"Time (ms)":i(e.duration)}))),t}getRecords(...e){return 0===e.length?this.records.values():this.records.entries().filter(t=>e.some(e=>e===t[0])).flatMap(e=>e[1])}},R8=class{static{tf(this,"ProfilingTask")}constructor(e,t){this.stack=[],this.entries=new T_,this.addRecord=e,this.identifier=t}start(){if(void 0!==this.startTime)throw Error(`Task "${this.identifier}" is already started.`);this.startTime=performance.now()}stop(){if(void 0===this.startTime)throw Error(`Task "${this.identifier}" was not started.`);if(0!==this.stack.length)throw Error(`Task "${this.identifier}" cannot be stopped before sub-task(s): ${this.stack.map(e=>e.id).join(", ")}.`);let e={identifier:this.identifier,date:new Date,duration:performance.now()-this.startTime,entries:this.entries};this.addRecord(e),this.startTime=void 0,this.entries.clear()}startSubTask(e){this.stack.push({id:e,start:performance.now(),content:0})}stopSubTask(e){let t=this.stack.pop();if(!t)throw Error(`Task "${this.identifier}.${e}" was not started.`);if(t.id!==e)throw Error(`Sub-Task "${t.id}" is not already stopped.`);let r=performance.now()-t.start;void 0!==this.stack.at(-1)&&(this.stack[this.stack.length-1].content+=r);let n=r-t.content;this.entries.add(e,n)}};(eX||(eX={})).Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[\w ]+)\]/},(eJ||(eJ={})).Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/},(eZ||(eZ={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/},(eQ||(eQ={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(e0||(e0={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(e1||(e1={})).Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(e2||(e2={})).Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(e3||(e3={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/},(e9||(e9={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,STRING2:/"[^"]*"|'[^']*'/},(e4||(e4={})).Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+</,LINK_ARROW:/-->|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},eX.Terminals,eJ.Terminals,eZ.Terminals,eQ.Terminals,e0.Terminals,e1.Terminals,e2.Terminals,e9.Terminals,e3.Terminals,e4.Terminals;var R7={$type:"Accelerator",name:"name",x:"x",y:"y"},R6={$type:"Anchor",evolution:"evolution",name:"name",visibility:"visibility"},$e={$type:"Annotation",number:"number",text:"text",x:"x",y:"y"},$t={$type:"Annotations",x:"x",y:"y"},$r={$type:"Architecture",accDescr:"accDescr",accTitle:"accTitle",edges:"edges",groups:"groups",junctions:"junctions",services:"services",title:"title"};tf(function(e){return $9.isInstance(e,$r.$type)},"isArchitecture");var $n={$type:"Axis",label:"label",name:"name"},$i={$type:"Branch",name:"name",order:"order"};tf(function(e){return $9.isInstance(e,$i.$type)},"isBranch");var $a={$type:"Checkout",branch:"branch"},$s={$type:"CherryPicking",id:"id",parent:"parent",tags:"tags"},$o={$type:"ClassDefStatement",className:"className",styleText:"styleText"},$l={$type:"Commit",id:"id",message:"message",tags:"tags",type:"type"};tf(function(e){return $9.isInstance(e,$l.$type)},"isCommit");var $u={$type:"Common",accDescr:"accDescr",accTitle:"accTitle",title:"title"},$c={$type:"Component",decorator:"decorator",evolution:"evolution",inertia:"inertia",label:"label",name:"name",visibility:"visibility"},$p={$type:"Curve",entries:"entries",label:"label",name:"name"},$d={$type:"Deaccelerator",name:"name",x:"x",y:"y"},$f={$type:"Decorator",strategy:"strategy"},$h={$type:"Direction",accDescr:"accDescr",accTitle:"accTitle",dir:"dir",statements:"statements",title:"title"},$m={$type:"Edge",lhsDir:"lhsDir",lhsGroup:"lhsGroup",lhsId:"lhsId",lhsInto:"lhsInto",rhsDir:"rhsDir",rhsGroup:"rhsGroup",rhsId:"rhsId",rhsInto:"rhsInto",title:"title"},$y={$type:"EmDataEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",name:"name"},$g={$type:"EmFrame"},$v={$type:"EmGwt",givenStatements:"givenStatements",sourceFrame:"sourceFrame",thenStatements:"thenStatements",whenStatements:"whenStatements"},$T={$type:"EmGwtStatement",entityIdentifier:"entityIdentifier"},$R={$type:"EmModelEntity",name:"name"};tf(function(e){return"rmo"===e||"readmodel"===e||"ui"===e||"cmd"===e||"command"===e||"evt"===e||"event"===e||"pcr"===e||"processor"===e},"isEmModelEntityType");var $$={$type:"EmNoteEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",sourceFrame:"sourceFrame"},$b={$type:"EmResetFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"};function $E(e){return $9.isInstance(e,$b.$type)}tf($E,"isEmResetFrame");var $C={$type:"EmTimeFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},$A={$type:"Entry",axis:"axis",value:"value"},$S={$type:"EventModel",accDescr:"accDescr",accTitle:"accTitle",dataEntities:"dataEntities",frames:"frames",gwtEntities:"gwtEntities",modelEntities:"modelEntities",noteEntities:"noteEntities",title:"title"},$k={$type:"Evolution",stages:"stages"},$x={$type:"EvolutionStage",boundary:"boundary",name:"name",secondName:"secondName"},$N={$type:"Evolve",component:"component",target:"target"},$w={$type:"GitGraph",accDescr:"accDescr",accTitle:"accTitle",statements:"statements",title:"title"};tf(function(e){return $9.isInstance(e,$w.$type)},"isGitGraph");var $I={$type:"Group",icon:"icon",id:"id",in:"in",title:"title"},$_={$type:"Info",accDescr:"accDescr",accTitle:"accTitle",title:"title"};tf(function(e){return $9.isInstance(e,$_.$type)},"isInfo");var $P={$type:"Item",classSelector:"classSelector",name:"name"},$D={$type:"Junction",id:"id",in:"in"},$O={$type:"Label",negX:"negX",negY:"negY",offsetX:"offsetX",offsetY:"offsetY"},$L={$type:"Leaf",classSelector:"classSelector",name:"name",value:"value"},$M={$type:"Link",arrow:"arrow",from:"from",fromPort:"fromPort",linkLabel:"linkLabel",to:"to",toPort:"toPort"},$j={$type:"Merge",branch:"branch",id:"id",tags:"tags",type:"type"};tf(function(e){return $9.isInstance(e,$j.$type)},"isMerge");var $F={$type:"Note",evolution:"evolution",text:"text",visibility:"visibility"},$z={$type:"Option",name:"name",value:"value"},$q={$type:"Packet",accDescr:"accDescr",accTitle:"accTitle",blocks:"blocks",title:"title"};tf(function(e){return $9.isInstance(e,$q.$type)},"isPacket");var $G={$type:"PacketBlock",bits:"bits",end:"end",label:"label",start:"start"};tf(function(e){return $9.isInstance(e,$G.$type)},"isPacketBlock");var $U={$type:"Pie",accDescr:"accDescr",accTitle:"accTitle",sections:"sections",showData:"showData",title:"title"};tf(function(e){return $9.isInstance(e,$U.$type)},"isPie");var $K={$type:"PieSection",label:"label",value:"value"};tf(function(e){return $9.isInstance(e,$K.$type)},"isPieSection");var $W={$type:"Pipeline",components:"components",parent:"parent"},$B={$type:"PipelineComponent",evolution:"evolution",label:"label",name:"name"},$V={$type:"Radar",accDescr:"accDescr",accTitle:"accTitle",axes:"axes",curves:"curves",options:"options",title:"title"},$H={$type:"Section",classSelector:"classSelector",name:"name"},$Y={$type:"Service",icon:"icon",iconText:"iconText",id:"id",in:"in",title:"title"},$X={$type:"Size",height:"height",width:"width"},$J={$type:"Statement"},$Z={$type:"Treemap",accDescr:"accDescr",accTitle:"accTitle",title:"title",TreemapRows:"TreemapRows"};tf(function(e){return $9.isInstance(e,$Z.$type)},"isTreemap");var $Q={$type:"TreemapRow",indent:"indent",item:"item"},$0={$type:"TreeNode",indent:"indent",name:"name"},$1={$type:"TreeView",accDescr:"accDescr",accTitle:"accTitle",nodes:"nodes",title:"title"},$2={$type:"Wardley",accDescr:"accDescr",accelerators:"accelerators",accTitle:"accTitle",anchors:"anchors",annotation:"annotation",annotations:"annotations",components:"components",deaccelerators:"deaccelerators",evolution:"evolution",evolves:"evolves",links:"links",notes:"notes",pipelines:"pipelines",size:"size",title:"title"};tf(function(e){return $9.isInstance(e,$2.$type)},"isWardley");var $3=class extends ru{constructor(){super(...arguments),this.types={Accelerator:{name:R7.$type,properties:{name:{name:R7.name},x:{name:R7.x},y:{name:R7.y}},superTypes:[]},Anchor:{name:R6.$type,properties:{evolution:{name:R6.evolution},name:{name:R6.name},visibility:{name:R6.visibility}},superTypes:[]},Annotation:{name:$e.$type,properties:{number:{name:$e.number},text:{name:$e.text},x:{name:$e.x},y:{name:$e.y}},superTypes:[]},Annotations:{name:$t.$type,properties:{x:{name:$t.x},y:{name:$t.y}},superTypes:[]},Architecture:{name:$r.$type,properties:{accDescr:{name:$r.accDescr},accTitle:{name:$r.accTitle},edges:{name:$r.edges,defaultValue:[]},groups:{name:$r.groups,defaultValue:[]},junctions:{name:$r.junctions,defaultValue:[]},services:{name:$r.services,defaultValue:[]},title:{name:$r.title}},superTypes:[]},Axis:{name:$n.$type,properties:{label:{name:$n.label},name:{name:$n.name}},superTypes:[]},Branch:{name:$i.$type,properties:{name:{name:$i.name},order:{name:$i.order}},superTypes:[$J.$type]},Checkout:{name:$a.$type,properties:{branch:{name:$a.branch}},superTypes:[$J.$type]},CherryPicking:{name:$s.$type,properties:{id:{name:$s.id},parent:{name:$s.parent},tags:{name:$s.tags,defaultValue:[]}},superTypes:[$J.$type]},ClassDefStatement:{name:$o.$type,properties:{className:{name:$o.className},styleText:{name:$o.styleText}},superTypes:[]},Commit:{name:$l.$type,properties:{id:{name:$l.id},message:{name:$l.message},tags:{name:$l.tags,defaultValue:[]},type:{name:$l.type}},superTypes:[$J.$type]},Common:{name:$u.$type,properties:{accDescr:{name:$u.accDescr},accTitle:{name:$u.accTitle},title:{name:$u.title}},superTypes:[]},Component:{name:$c.$type,properties:{decorator:{name:$c.decorator},evolution:{name:$c.evolution},inertia:{name:$c.inertia,defaultValue:!1},label:{name:$c.label},name:{name:$c.name},visibility:{name:$c.visibility}},superTypes:[]},Curve:{name:$p.$type,properties:{entries:{name:$p.entries,defaultValue:[]},label:{name:$p.label},name:{name:$p.name}},superTypes:[]},Deaccelerator:{name:$d.$type,properties:{name:{name:$d.name},x:{name:$d.x},y:{name:$d.y}},superTypes:[]},Decorator:{name:$f.$type,properties:{strategy:{name:$f.strategy}},superTypes:[]},Direction:{name:$h.$type,properties:{accDescr:{name:$h.accDescr},accTitle:{name:$h.accTitle},dir:{name:$h.dir},statements:{name:$h.statements,defaultValue:[]},title:{name:$h.title}},superTypes:[$w.$type]},Edge:{name:$m.$type,properties:{lhsDir:{name:$m.lhsDir},lhsGroup:{name:$m.lhsGroup,defaultValue:!1},lhsId:{name:$m.lhsId},lhsInto:{name:$m.lhsInto,defaultValue:!1},rhsDir:{name:$m.rhsDir},rhsGroup:{name:$m.rhsGroup,defaultValue:!1},rhsId:{name:$m.rhsId},rhsInto:{name:$m.rhsInto,defaultValue:!1},title:{name:$m.title}},superTypes:[]},EmDataEntity:{name:$y.$type,properties:{dataBlockValue:{name:$y.dataBlockValue},dataType:{name:$y.dataType},name:{name:$y.name}},superTypes:[]},EmFrame:{name:$g.$type,properties:{},superTypes:[]},EmGwt:{name:$v.$type,properties:{givenStatements:{name:$v.givenStatements,defaultValue:[]},sourceFrame:{name:$v.sourceFrame,referenceType:$g.$type},thenStatements:{name:$v.thenStatements,defaultValue:[]},whenStatements:{name:$v.whenStatements,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:$T.$type,properties:{entityIdentifier:{name:$T.entityIdentifier,referenceType:$R.$type}},superTypes:[]},EmModelEntity:{name:$R.$type,properties:{name:{name:$R.name}},superTypes:[]},EmNoteEntity:{name:$$.$type,properties:{dataBlockValue:{name:$$.dataBlockValue},dataType:{name:$$.dataType},sourceFrame:{name:$$.sourceFrame,referenceType:$g.$type}},superTypes:[]},EmResetFrame:{name:$b.$type,properties:{dataInlineValue:{name:$b.dataInlineValue},dataReference:{name:$b.dataReference,referenceType:$y.$type},dataType:{name:$b.dataType},entityIdentifier:{name:$b.entityIdentifier},modelEntityType:{name:$b.modelEntityType},name:{name:$b.name},sourceFrames:{name:$b.sourceFrames,defaultValue:[],referenceType:$g.$type}},superTypes:[$g.$type]},EmTimeFrame:{name:$C.$type,properties:{dataInlineValue:{name:$C.dataInlineValue},dataReference:{name:$C.dataReference,referenceType:$y.$type},dataType:{name:$C.dataType},entityIdentifier:{name:$C.entityIdentifier},modelEntityType:{name:$C.modelEntityType},name:{name:$C.name},sourceFrames:{name:$C.sourceFrames,defaultValue:[],referenceType:$g.$type}},superTypes:[$g.$type]},Entry:{name:$A.$type,properties:{axis:{name:$A.axis,referenceType:$n.$type},value:{name:$A.value}},superTypes:[]},EventModel:{name:$S.$type,properties:{accDescr:{name:$S.accDescr},accTitle:{name:$S.accTitle},dataEntities:{name:$S.dataEntities,defaultValue:[]},frames:{name:$S.frames,defaultValue:[]},gwtEntities:{name:$S.gwtEntities,defaultValue:[]},modelEntities:{name:$S.modelEntities,defaultValue:[]},noteEntities:{name:$S.noteEntities,defaultValue:[]},title:{name:$S.title}},superTypes:[]},Evolution:{name:$k.$type,properties:{stages:{name:$k.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:$x.$type,properties:{boundary:{name:$x.boundary},name:{name:$x.name},secondName:{name:$x.secondName}},superTypes:[]},Evolve:{name:$N.$type,properties:{component:{name:$N.component},target:{name:$N.target}},superTypes:[]},GitGraph:{name:$w.$type,properties:{accDescr:{name:$w.accDescr},accTitle:{name:$w.accTitle},statements:{name:$w.statements,defaultValue:[]},title:{name:$w.title}},superTypes:[]},Group:{name:$I.$type,properties:{icon:{name:$I.icon},id:{name:$I.id},in:{name:$I.in},title:{name:$I.title}},superTypes:[]},Info:{name:$_.$type,properties:{accDescr:{name:$_.accDescr},accTitle:{name:$_.accTitle},title:{name:$_.title}},superTypes:[]},Item:{name:$P.$type,properties:{classSelector:{name:$P.classSelector},name:{name:$P.name}},superTypes:[]},Junction:{name:$D.$type,properties:{id:{name:$D.id},in:{name:$D.in}},superTypes:[]},Label:{name:$O.$type,properties:{negX:{name:$O.negX,defaultValue:!1},negY:{name:$O.negY,defaultValue:!1},offsetX:{name:$O.offsetX},offsetY:{name:$O.offsetY}},superTypes:[]},Leaf:{name:$L.$type,properties:{classSelector:{name:$L.classSelector},name:{name:$L.name},value:{name:$L.value}},superTypes:[$P.$type]},Link:{name:$M.$type,properties:{arrow:{name:$M.arrow},from:{name:$M.from},fromPort:{name:$M.fromPort},linkLabel:{name:$M.linkLabel},to:{name:$M.to},toPort:{name:$M.toPort}},superTypes:[]},Merge:{name:$j.$type,properties:{branch:{name:$j.branch},id:{name:$j.id},tags:{name:$j.tags,defaultValue:[]},type:{name:$j.type}},superTypes:[$J.$type]},Note:{name:$F.$type,properties:{evolution:{name:$F.evolution},text:{name:$F.text},visibility:{name:$F.visibility}},superTypes:[]},Option:{name:$z.$type,properties:{name:{name:$z.name},value:{name:$z.value,defaultValue:!1}},superTypes:[]},Packet:{name:$q.$type,properties:{accDescr:{name:$q.accDescr},accTitle:{name:$q.accTitle},blocks:{name:$q.blocks,defaultValue:[]},title:{name:$q.title}},superTypes:[]},PacketBlock:{name:$G.$type,properties:{bits:{name:$G.bits},end:{name:$G.end},label:{name:$G.label},start:{name:$G.start}},superTypes:[]},Pie:{name:$U.$type,properties:{accDescr:{name:$U.accDescr},accTitle:{name:$U.accTitle},sections:{name:$U.sections,defaultValue:[]},showData:{name:$U.showData,defaultValue:!1},title:{name:$U.title}},superTypes:[]},PieSection:{name:$K.$type,properties:{label:{name:$K.label},value:{name:$K.value}},superTypes:[]},Pipeline:{name:$W.$type,properties:{components:{name:$W.components,defaultValue:[]},parent:{name:$W.parent}},superTypes:[]},PipelineComponent:{name:$B.$type,properties:{evolution:{name:$B.evolution},label:{name:$B.label},name:{name:$B.name}},superTypes:[]},Radar:{name:$V.$type,properties:{accDescr:{name:$V.accDescr},accTitle:{name:$V.accTitle},axes:{name:$V.axes,defaultValue:[]},curves:{name:$V.curves,defaultValue:[]},options:{name:$V.options,defaultValue:[]},title:{name:$V.title}},superTypes:[]},Section:{name:$H.$type,properties:{classSelector:{name:$H.classSelector},name:{name:$H.name}},superTypes:[$P.$type]},Service:{name:$Y.$type,properties:{icon:{name:$Y.icon},iconText:{name:$Y.iconText},id:{name:$Y.id},in:{name:$Y.in},title:{name:$Y.title}},superTypes:[]},Size:{name:$X.$type,properties:{height:{name:$X.height},width:{name:$X.width}},superTypes:[]},Statement:{name:$J.$type,properties:{},superTypes:[]},TreeNode:{name:$0.$type,properties:{indent:{name:$0.indent},name:{name:$0.name}},superTypes:[]},TreeView:{name:$1.$type,properties:{accDescr:{name:$1.accDescr},accTitle:{name:$1.accTitle},nodes:{name:$1.nodes,defaultValue:[]},title:{name:$1.title}},superTypes:[]},Treemap:{name:$Z.$type,properties:{accDescr:{name:$Z.accDescr},accTitle:{name:$Z.accTitle},title:{name:$Z.title},TreemapRows:{name:$Z.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:$Q.$type,properties:{indent:{name:$Q.indent},item:{name:$Q.item}},superTypes:[]},Wardley:{name:$2.$type,properties:{accDescr:{name:$2.accDescr},accelerators:{name:$2.accelerators,defaultValue:[]},accTitle:{name:$2.accTitle},anchors:{name:$2.anchors,defaultValue:[]},annotation:{name:$2.annotation,defaultValue:[]},annotations:{name:$2.annotations,defaultValue:[]},components:{name:$2.components,defaultValue:[]},deaccelerators:{name:$2.deaccelerators,defaultValue:[]},evolution:{name:$2.evolution},evolves:{name:$2.evolves,defaultValue:[]},links:{name:$2.links,defaultValue:[]},notes:{name:$2.notes,defaultValue:[]},pipelines:{name:$2.pipelines,defaultValue:[]},size:{name:$2.size},title:{name:$2.title}},superTypes:[]}}}static{tf(this,"MermaidAstReflection")}},$9=new $3,$4=tf(()=>e5??(e5=R4(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[\\\\w ]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"ArchitectureGrammarGrammar"),$5=tf(()=>e8??(e8=R4('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}')),"EventModelingGrammar"),$8=tf(()=>e7??(e7=R4(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"GitGraphGrammarGrammar"),$7=tf(()=>e6??(e6=R4(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"InfoGrammarGrammar"),$6=tf(()=>te??(te=R4(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PacketGrammarGrammar"),be=tf(()=>tt??(tt=R4(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PieGrammarGrammar"),bt=tf(()=>tr??(tr=R4(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`)),"RadarGrammarGrammar"),br=tf(()=>tn??(tn=R4(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`)),"TreemapGrammarGrammar"),bn=tf(()=>ti??(ti=R4(`{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@9"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n * Converted from treemap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`)),"TreeViewGrammarGrammar"),bi=tf(()=>ta??(ta=R4(`{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'</","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'>/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"WardleyGrammarGrammar"),ba={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},bs={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},bo={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},bl={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},bu={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},bc={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},bp={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},bd={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},bf={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},bh={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},bm={AstReflection:tf(()=>new $3,"AstReflection")},by={Grammar:tf(()=>$4(),"Grammar"),LanguageMetaData:tf(()=>ba,"LanguageMetaData"),parser:{}},bg={Grammar:tf(()=>$5(),"Grammar"),LanguageMetaData:tf(()=>bs,"LanguageMetaData"),parser:{}},bv={Grammar:tf(()=>$8(),"Grammar"),LanguageMetaData:tf(()=>bo,"LanguageMetaData"),parser:{}},bT={Grammar:tf(()=>$7(),"Grammar"),LanguageMetaData:tf(()=>bl,"LanguageMetaData"),parser:{}},bR={Grammar:tf(()=>$6(),"Grammar"),LanguageMetaData:tf(()=>bu,"LanguageMetaData"),parser:{}},b$={Grammar:tf(()=>be(),"Grammar"),LanguageMetaData:tf(()=>bc,"LanguageMetaData"),parser:{}},bb={Grammar:tf(()=>bt(),"Grammar"),LanguageMetaData:tf(()=>bp,"LanguageMetaData"),parser:{}},bE={Grammar:tf(()=>br(),"Grammar"),LanguageMetaData:tf(()=>bd,"LanguageMetaData"),parser:{}},bC={Grammar:tf(()=>bn(),"Grammar"),LanguageMetaData:tf(()=>bf,"LanguageMetaData"),parser:{}},bA={Grammar:tf(()=>bi(),"Grammar"),LanguageMetaData:tf(()=>bh,"LanguageMetaData"),parser:{}},bS={ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/accTitle[\t ]*:([^\n\r]*)/,TITLE:/title([\t ][^\n\r]*|)/},bk=class extends Ta{static{tf(this,"AbstractMermaidValueConverter")}runConverter(e,t,r){let n=this.runCommonConverter(e,t,r);return(void 0===n&&(n=this.runCustomConverter(e,t,r)),void 0===n)?super.runConverter(e,t,r):n}runCommonConverter(e,t,r){let n=bS[e.name];if(void 0===n)return;let i=n.exec(t);if(null!==i){if(void 0!==i[1])return i[1].trim().replace(/[\t ]{2,}/gm," ");if(void 0!==i[2])return i[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,"\n")}}},bx=class extends bk{static{tf(this,"CommonValueConverter")}runCustomConverter(e,t,r){}},bN=class extends Ti{static{tf(this,"AbstractMermaidTokenBuilder")}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,r){let n=super.buildKeywordTokens(e,t,r);return n.forEach(e=>{this.keywords.has(e.name)&&void 0!==e.PATTERN&&(e.PATTERN=RegExp(e.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),n}};(class extends bN{static{tf(this,"CommonTokenBuilder")}})}}]);
|