@elliemae/pui-cli 8.62.3 → 8.62.4
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/build/docs/404.html +5 -5
- package/build/docs/api/functions/loadRoutes/index.html +10 -10
- package/build/docs/api/index.html +9 -9
- package/build/docs/api/type-aliases/LIB_NAME/index.html +6 -6
- package/build/docs/api/variables/babelConfig/index.html +29 -29
- package/build/docs/api/variables/commitlintConfig/index.html +9 -9
- package/build/docs/api/variables/eslintBaseConfig/index.html +119 -119
- package/build/docs/api/variables/eslintConfig/index.html +167 -167
- package/build/docs/api/variables/jestConfig/index.html +87 -87
- package/build/docs/api/variables/jestNodeConfig/index.html +87 -87
- package/build/docs/api/variables/lintStagedConfig/index.html +13 -13
- package/build/docs/api/variables/prettierConfig/index.html +19 -19
- package/build/docs/api/variables/stylelintConfig/index.html +19 -19
- package/build/docs/api/variables/vitestConfig/index.html +6 -6
- package/build/docs/assets/css/{styles.c76f0d12.css → styles.5e594f8e.css} +1 -1
- package/build/docs/assets/js/04ee7372.6701a521.js +1 -0
- package/build/docs/assets/js/1038.7eccbe83.js +1 -0
- package/build/docs/assets/js/1200.62fdfb17.js +1 -0
- package/build/docs/assets/js/1340.e320589e.js +1 -0
- package/build/docs/assets/js/1348.fdba76ee.js +1 -0
- package/build/docs/assets/js/1591.b2d5d84b.js +1 -0
- package/build/docs/assets/js/{16b7bc88.384bbfa6.js → 16b7bc88.98d0e7e1.js} +1 -1
- package/build/docs/assets/js/17896441.4a6e0d00.js +1 -0
- package/build/docs/assets/js/1912.edd5c016.js +1 -0
- package/build/docs/assets/js/{1b9df811.7c12d74c.js → 1b9df811.cbc3937e.js} +1 -1
- package/build/docs/assets/js/213.e69351b3.js +1 -0
- package/build/docs/assets/js/2154.9723abaf.js +1 -0
- package/build/docs/assets/js/2185.f2209249.js +1 -0
- package/build/docs/assets/js/2186.40926696.js +1 -0
- package/build/docs/assets/js/2327.22ae5940.js +1 -0
- package/build/docs/assets/js/234.83bc0029.js +1 -0
- package/build/docs/assets/js/2399.63cd96a9.js +1 -0
- package/build/docs/assets/js/2421.0a678e37.js +1 -0
- package/build/docs/assets/js/{7048.333735e8.js → 2534.dbf7919d.js} +1 -1
- package/build/docs/assets/js/2650.eb69c6a5.js +1 -0
- package/build/docs/assets/js/2652.3c5e01f6.js +1 -0
- package/build/docs/assets/js/2675.413b1881.js +1 -0
- package/build/docs/assets/js/2856.434d8532.js +1 -0
- package/build/docs/assets/js/3075.8eb78c50.js +1 -0
- package/build/docs/assets/js/3171.c208ec80.js +1 -0
- package/build/docs/assets/js/3186.4706e934.js +1 -0
- package/build/docs/assets/js/3242.80d2f573.js +1 -0
- package/build/docs/assets/js/3380.fa624efa.js +1 -0
- package/build/docs/assets/js/3720.8e7f36d4.js +2 -0
- package/build/docs/assets/js/3731.3625e619.js +1 -0
- package/build/docs/assets/js/3749.25d3a9dc.js +1 -0
- package/build/docs/assets/js/3753.ad43bbbf.js +1 -0
- package/build/docs/assets/js/{37d86055.a3793e79.js → 37d86055.ac328609.js} +1 -1
- package/build/docs/assets/js/386.82e1d440.js +2 -0
- package/build/docs/assets/js/386.82e1d440.js.LICENSE.txt +1 -0
- package/build/docs/assets/js/3938.381439b7.js +1 -0
- package/build/docs/assets/js/3995.9c7a08d7.js +1 -0
- package/build/docs/assets/js/4074.2d89387a.js +1 -0
- package/build/docs/assets/js/4567.40926696.js +1 -0
- package/build/docs/assets/js/4570.22eef064.js +1 -0
- package/build/docs/assets/js/4832.f41ebb6a.js +1 -0
- package/build/docs/assets/js/4944.20a6ae14.js +1 -0
- package/build/docs/assets/js/504.082248a2.js +1 -0
- package/build/docs/assets/js/5111.1b6768c7.js +1 -0
- package/build/docs/assets/js/5153.ccd7118e.js +1 -0
- package/build/docs/assets/js/5463.df303412.js +1 -0
- package/build/docs/assets/js/5529.a57e8e4a.js +1 -0
- package/build/docs/assets/js/5663.13fc2f9f.js +1 -0
- package/build/docs/assets/js/5818.62ee6d97.js +1 -0
- package/build/docs/assets/js/5850.e0052526.js +1 -0
- package/build/docs/assets/js/5973.50ffe932.js +1 -0
- package/build/docs/assets/js/{5d5f1db0.478d1366.js → 5d5f1db0.ee0a2786.js} +1 -1
- package/build/docs/assets/js/{5e8c322a.efde0b1b.js → 5e8c322a.03e5f869.js} +1 -1
- package/build/docs/assets/js/5e95c892.0b2807a1.js +1 -0
- package/build/docs/assets/js/{5fb3c522.a5641583.js → 5fb3c522.7fa934f6.js} +1 -1
- package/build/docs/assets/js/6001.475cf9bc.js +1 -0
- package/build/docs/assets/js/6216.81ed3f71.js +1 -0
- package/build/docs/assets/js/6286.1e2004df.js +1 -0
- package/build/docs/assets/js/6737.cba35710.js +1 -0
- package/build/docs/assets/js/6779.48fa5e85.js +1 -0
- package/build/docs/assets/js/6780.35d6b408.js +1 -0
- package/build/docs/assets/js/681.7048216c.js +1 -0
- package/build/docs/assets/js/{6bd11e52.8445697f.js → 6bd11e52.4a64999a.js} +1 -1
- package/build/docs/assets/js/6e96545e.82b3f634.js +1 -0
- package/build/docs/assets/js/7129.6a95a014.js +1 -0
- package/build/docs/assets/js/7173.3df1d101.js +1 -0
- package/build/docs/assets/js/{71f6d02b.46228c35.js → 71f6d02b.f4ef9e77.js} +1 -1
- package/build/docs/assets/js/7330.25c0f54a.js +1 -0
- package/build/docs/assets/js/777.6cc435d2.js +1 -0
- package/build/docs/assets/js/{80e87108.6b0a340e.js → 80e87108.fb514ef2.js} +1 -1
- package/build/docs/assets/js/{1206.d4327b16.js → 8335.7c94cd06.js} +1 -1
- package/build/docs/assets/js/8347.ba32afd0.js +1 -0
- package/build/docs/assets/js/8398.64ed21da.js +1 -0
- package/build/docs/assets/js/8585.38199cd1.js +1 -0
- package/build/docs/assets/js/8725.440f4f8c.js +1 -0
- package/build/docs/assets/js/918.44c83d98.js +1 -0
- package/build/docs/assets/js/9242.e3fb85ca.js +1 -0
- package/build/docs/assets/js/940.c104b973.js +1 -0
- package/build/docs/assets/js/9661.e5f9a8b1.js +1 -0
- package/build/docs/assets/js/9718.706df9d5.js +1 -0
- package/build/docs/assets/js/9737.81795237.js +1 -0
- package/build/docs/assets/js/9805.40926696.js +1 -0
- package/build/docs/assets/js/9998.2236d038.js +1 -0
- package/build/docs/assets/js/{a7bd4aaa.bbcaa6ab.js → a7bd4aaa.82b76b67.js} +1 -1
- package/build/docs/assets/js/a94703ab.8fd80ed9.js +1 -0
- package/build/docs/assets/js/{b8ac1d98.20b7f87c.js → b8ac1d98.eac62e10.js} +1 -1
- package/build/docs/assets/js/{bde5209a.7f232bf8.js → bde5209a.1f661437.js} +1 -1
- package/build/docs/assets/js/{c377a04b.0965a6f2.js → c377a04b.54071de3.js} +1 -1
- package/build/docs/assets/js/common.469f0e39.js +1 -0
- package/build/docs/assets/js/{e5f79924.1b7c8fd6.js → e5f79924.3b9434d6.js} +1 -1
- package/build/docs/assets/js/{f736c962.9ac135e1.js → f736c962.1745b6ff.js} +1 -1
- package/build/docs/assets/js/main.ceaf5a1d.js +2 -0
- package/build/docs/assets/js/runtime~main.2ef68500.js +1 -0
- package/build/docs/index.html +66 -66
- package/build/docs/ssl-certificate-setup/index.html +24 -24
- package/build/docs/usage-guide/index.html +85 -85
- package/dist/cjs/package.json +1 -4
- package/dist/esm/package.json +1 -4
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +17 -17
- package/build/docs/assets/js/04ee7372.b1dcd3d9.js +0 -1
- package/build/docs/assets/js/1128.9ff5d096.js +0 -1
- package/build/docs/assets/js/1262.d1c4c9bd.js +0 -1
- package/build/docs/assets/js/1316.2f619863.js +0 -2
- package/build/docs/assets/js/1316.2f619863.js.LICENSE.txt +0 -1
- package/build/docs/assets/js/1588.8a61195f.js +0 -1
- package/build/docs/assets/js/1783.8b385fce.js +0 -1
- package/build/docs/assets/js/17896441.aa99c4b5.js +0 -1
- package/build/docs/assets/js/1944.083a40da.js +0 -1
- package/build/docs/assets/js/2535.486788ef.js +0 -1
- package/build/docs/assets/js/2762.1f225b61.js +0 -1
- package/build/docs/assets/js/280.e6b3c363.js +0 -1
- package/build/docs/assets/js/2919.a0e90f28.js +0 -1
- package/build/docs/assets/js/2948.802fa79d.js +0 -1
- package/build/docs/assets/js/32.3e01a330.js +0 -1
- package/build/docs/assets/js/3241.57801946.js +0 -1
- package/build/docs/assets/js/338.eac1f210.js +0 -1
- package/build/docs/assets/js/3455.b04bcf73.js +0 -1
- package/build/docs/assets/js/365.7dfc1c9b.js +0 -1
- package/build/docs/assets/js/3715.6de9c72e.js +0 -1
- package/build/docs/assets/js/3807.315d3647.js +0 -1
- package/build/docs/assets/js/3956.6817c831.js +0 -1
- package/build/docs/assets/js/4179.8f624946.js +0 -1
- package/build/docs/assets/js/4250.1db07eb8.js +0 -1
- package/build/docs/assets/js/4273.55f1d480.js +0 -2
- package/build/docs/assets/js/4430.ceb8b97f.js +0 -1
- package/build/docs/assets/js/4986.88c0e4c4.js +0 -1
- package/build/docs/assets/js/5146.9c2d5a70.js +0 -1
- package/build/docs/assets/js/5256.9c97e6c5.js +0 -1
- package/build/docs/assets/js/5291.b3189179.js +0 -1
- package/build/docs/assets/js/5384.c08a8b31.js +0 -1
- package/build/docs/assets/js/5e95c892.d57b4057.js +0 -1
- package/build/docs/assets/js/61.73463c9d.js +0 -1
- package/build/docs/assets/js/6176.08e5ab11.js +0 -1
- package/build/docs/assets/js/6668.9ed55615.js +0 -1
- package/build/docs/assets/js/6870.af8f1a4f.js +0 -1
- package/build/docs/assets/js/6e96545e.237cb417.js +0 -1
- package/build/docs/assets/js/7311.638d1073.js +0 -1
- package/build/docs/assets/js/7617.0bb56b23.js +0 -1
- package/build/docs/assets/js/7803.74307e92.js +0 -1
- package/build/docs/assets/js/7897.2559cb99.js +0 -1
- package/build/docs/assets/js/7919.7f173626.js +0 -1
- package/build/docs/assets/js/8213.30ff6f0f.js +0 -1
- package/build/docs/assets/js/9016.ea955f0a.js +0 -1
- package/build/docs/assets/js/9018.0e3aeec5.js +0 -1
- package/build/docs/assets/js/9199.39e38dc8.js +0 -1
- package/build/docs/assets/js/9349.68c3fedb.js +0 -1
- package/build/docs/assets/js/9566.974ba8ff.js +0 -1
- package/build/docs/assets/js/9799.856d5e67.js +0 -1
- package/build/docs/assets/js/9822.c1ad99cd.js +0 -1
- package/build/docs/assets/js/9945.d801623d.js +0 -1
- package/build/docs/assets/js/a94703ab.e6576f9b.js +0 -1
- package/build/docs/assets/js/common.f9eba4a3.js +0 -1
- package/build/docs/assets/js/main.548fd04b.js +0 -2
- package/build/docs/assets/js/runtime~main.3504f0b1.js +0 -1
- /package/build/docs/assets/js/{4273.55f1d480.js.LICENSE.txt → 3720.8e7f36d4.js.LICENSE.txt} +0 -0
- /package/build/docs/assets/js/{main.548fd04b.js.LICENSE.txt → main.ceaf5a1d.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_elliemae_pui_cli=globalThis.webpackChunk_elliemae_pui_cli||[]).push([[2076],{5676(e,t,r){r.d(t,{R:()=>s,x:()=>o});var n=r(758);const a={},i=n.createContext(a);function s(e){const t=n.useContext(i);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),n.createElement(i.Provider,{value:t},e.children)}},7221(e,t,r){r.d(t,{J:()=>s});var n=r(9044),a=class extends n.dg{static{(0,n.K2)(this,"WardleyValueConverter")}runCustomConverter(e,t,r){if("LINK_LABEL"===e.name.toUpperCase())return t.substring(1).trim()}},i={parser:{ValueConverter:(0,n.K2)(()=>new a,"ValueConverter")}};function s(e=n.DD){const t=(0,n.WQ)((0,n.uM)(e),n.sr),r=(0,n.WQ)((0,n.tG)({shared:t}),n.Xr,i);return t.ServiceRegistry.register(r),{shared:t,Wardley:r}}(0,n.K2)(s,"createWardleyServices")},27(e,t,r){r.d(t,{s:()=>o});var n=r(9044),a=class extends n.mR{static{(0,n.K2)(this,"RailroadAbnfTokenBuilder")}constructor(){super(["railroad-abnf-beta"])}},i=class extends n.dg{static{(0,n.K2)(this,"RailroadAbnfValueConverter")}runConverter(e,t,r){const n=super.runConverter(e,t,r);if("TITLE"===e.name&&"string"==typeof n){const e=n.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return e.slice(1,-1)}return n}runCustomConverter(e,t,r){if("ABNF_STRING"===e.name)return t.slice(1,-1)}},s={parser:{TokenBuilder:(0,n.K2)(()=>new a,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new i,"ValueConverter")}};function o(e=n.DD){const t=(0,n.WQ)((0,n.uM)(e),n.sr),r=(0,n.WQ)((0,n.tG)({shared:t}),n.oI,s);return t.ServiceRegistry.register(r),{shared:t,RailroadAbnf:r}}(0,n.K2)(o,"createRailroadAbnfServices")},3277(e,t,r){r.d(t,{g:()=>f});var n=r(9044),a=class extends n.mR{static{(0,n.K2)(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},i=new Set(["cmd","command"]),s=new Set(["evt","event"]),o=new Set(["rmo","readmodel"]),l=new Set(["pcr","processor"]),u=new Set(["ui"]);function c(e){const t=e.validation.EventModelingValidator,r=e.validation.ValidationRegistry;if(r){const e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};r.register(e,t)}}(0,n.K2)(c,"registerValidationChecks");var p=class{static{(0,n.K2)(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){0!==e.sourceFrames.length&&(i.has(e.modelEntityType)?this.validateSources(e,new Set([...u,...l]),"command","ui or processor",t):s.has(e.modelEntityType)?this.validateSources(e,i,"event","command",t):o.has(e.modelEntityType)?this.validateSources(e,s,"read model","event",t):l.has(e.modelEntityType)?this.validateSources(e,o,"processor","read model",t):u.has(e.modelEntityType)&&this.validateSources(e,o,"ui","read model",t))}validateSources(e,t,r,n,a){for(const i of e.sourceFrames){const s=i.ref;void 0===s||t.has(s.modelEntityType)||a("error",`A ${r} can only receive input from a ${n}, not from '${s.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},d={parser:{TokenBuilder:(0,n.K2)(()=>new a,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new n.Tm,"ValueConverter")},validation:{EventModelingValidator:(0,n.K2)(()=>new p,"EventModelingValidator")}};function f(e=n.DD){const t=(0,n.WQ)((0,n.uM)(e),n.sr),r=(0,n.WQ)((0,n.tG)({shared:t}),n.x0,d);return t.ServiceRegistry.register(r),c(r),{shared:t,EventModel:r}}(0,n.K2)(f,"createEventModelingServices")},5553(e,t,r){r.d(t,{l:()=>l});var n=r(9044),a=class extends n.mR{static{(0,n.K2)(this,"RailroadTokenBuilder")}constructor(){super(["railroad-beta"])}},i=(0,n.K2)(e=>{const t=e.slice(1,-1);let r="";for(let n=0;n<t.length;n++){const e=t[n];if("\\"===e&&n+1<t.length){n++;const e=t[n];switch(e){case"n":r+="\n";break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=e}continue}r+=e}return r},"decodeEscapedString"),s=class extends n.dg{static{(0,n.K2)(this,"RailroadValueConverter")}runConverter(e,t,r){const n=super.runConverter(e,t,r);if("TITLE"===e.name&&"string"==typeof n){const e=n.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return i(e)}return n}runCustomConverter(e,t,r){if("RR_STRING"===e.name)return i(t)}},o={parser:{TokenBuilder:(0,n.K2)(()=>new a,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new s,"ValueConverter")}};function l(e=n.DD){const t=(0,n.WQ)((0,n.uM)(e),n.sr),r=(0,n.WQ)((0,n.tG)({shared:t}),n.Bi,o);return t.ServiceRegistry.register(r),{shared:t,Railroad:r}}(0,n.K2)(l,"createRailroadServices")},4455(e,t,r){r.d(t,{v:()=>s});var n=r(9044),a=class extends n.mR{static{(0,n.K2)(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},i={parser:{TokenBuilder:(0,n.K2)(()=>new a,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new n.Tm,"ValueConverter")}};function s(e=n.DD){const t=(0,n.WQ)((0,n.uM)(e),n.sr),r=(0,n.WQ)((0,n.tG)({shared:t}),n.FZ,i);return t.ServiceRegistry.register(r),{shared:t,Info:r}}(0,n.K2)(s,"createInfoServices")},5543(e,t,r){r.d(t,{I:()=>o});var n=r(9044),a=class extends n.dg{static{(0,n.K2)(this,"TreeViewValueConverter")}runCustomConverter(e,t,r){if("INDENTATION"===e.name)return t?.length||0;if("QUOTED_NAME"===e.name)return t.substring(1,t.length-1);if("BARE_NAME"===e.name)return t.replace(/[\t ]+$/,"");if("CLASS_ANNOTATION"===e.name){return t.trim().substring(3).trim()}if("ICON_ANNOTATION"===e.name){const e=t.trim();return e.substring(5,e.length-1)}if("DESC_ANNOTATION"===e.name){return t.trim().substring(2).trim()}}},i=class extends n.mR{static{(0,n.K2)(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},s={parser:{TokenBuilder:(0,n.K2)(()=>new i,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new a,"ValueConverter")}};function o(e=n.DD){const t=(0,n.WQ)((0,n.uM)(e),n.sr),r=(0,n.WQ)((0,n.tG)({shared:t}),n.CZ,s);return t.ServiceRegistry.register(r),{shared:t,TreeView:r}}(0,n.K2)(o,"createTreeViewServices")},9145(e,t,r){r.d(t,{b:()=>s});var n=r(9044),a=class extends n.mR{static{(0,n.K2)(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},i={parser:{TokenBuilder:(0,n.K2)(()=>new a,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new n.Tm,"ValueConverter")}};function s(e=n.DD){const t=(0,n.WQ)((0,n.uM)(e),n.sr),r=(0,n.WQ)((0,n.tG)({shared:t}),n.d$,i);return t.ServiceRegistry.register(r),{shared:t,GitGraph:r}}(0,n.K2)(s,"createGitGraphServices")},9185(e,t,r){r.d(t,{$:()=>s});var n=r(9044),a=class extends n.mR{static{(0,n.K2)(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},i={parser:{TokenBuilder:(0,n.K2)(()=>new a,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new n.Tm,"ValueConverter")}};function s(e=n.DD){const t=(0,n.WQ)((0,n.uM)(e),n.sr),r=(0,n.WQ)((0,n.tG)({shared:t}),n.p5,i);return t.ServiceRegistry.register(r),{shared:t,Packet:r}}(0,n.K2)(s,"createPacketServices")},8116(e,t,r){r.d(t,{P:()=>l});var n=r(9044),a=class extends n.mR{static{(0,n.K2)(this,"RailroadPegTokenBuilder")}constructor(){super(["railroad-peg-beta"])}},i=(0,n.K2)(e=>{const t=e.slice(1,-1);let r="";for(let n=0;n<t.length;n++){const e=t[n];if("\\"===e&&n+1<t.length){n++;const e=t[n];switch(e){case"n":r+="\n";break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=e}continue}r+=e}return r},"decodeEscapedString"),s=class extends n.dg{static{(0,n.K2)(this,"RailroadPegValueConverter")}runConverter(e,t,r){const n=super.runConverter(e,t,r);if("TITLE"===e.name&&"string"==typeof n){const e=n.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return i(e)}return n}runCustomConverter(e,t,r){if("PEG_STRING"===e.name)return i(t)}},o={parser:{TokenBuilder:(0,n.K2)(()=>new a,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new s,"ValueConverter")}};function l(e=n.DD){const t=(0,n.WQ)((0,n.uM)(e),n.sr),r=(0,n.WQ)((0,n.tG)({shared:t}),n.dj,o);return t.ServiceRegistry.register(r),{shared:t,RailroadPeg:r}}(0,n.K2)(l,"createRailroadPegServices")},9044(e,t,r){r.d(t,{Bg:()=>oF,Bi:()=>cF,CZ:()=>fF,DD:()=>yN,D_:()=>sF,F5:()=>ZP,FZ:()=>aF,Jn:()=>tF,K2:()=>Ge,Tm:()=>gF,U4:()=>uF,WQ:()=>rN,XE:()=>dF,Xr:()=>mF,d$:()=>nF,dg:()=>yF,dj:()=>pF,mR:()=>TF,oI:()=>lF,p5:()=>iF,sr:()=>Jj,tG:()=>eN,uM:()=>tN,wV:()=>eF,x0:()=>rF});var n,a,i,s,o,l,u,c,p,d,f,m,h,y,g,T,v,$,R,b,E,A,C,S,k,x,w,N,I,_,P,O,D,L,M,j,F,G,K,z,q,U,B,W,V,H,Y,Q,Z,X,J,ee,te,re,ne,ae,ie,se,oe,le,ue,ce,pe,de,fe,me,he,ye,ge,Te,ve,$e,Re,be,Ee,Ae,Ce,Se,ke,xe,we,Ne,Ie,_e,Pe,Oe=Object.create,De=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,Me=Object.getOwnPropertyNames,je=Object.getPrototypeOf,Fe=Object.prototype.hasOwnProperty,Ge=(e,t)=>De(e,"name",{value:t,configurable:!0}),Ke=(e,t)=>function(){return t||(0,e[Me(e)[0]])((t={exports:{}}).exports,t),t.exports},ze=(e,t)=>{for(var r in t)De(e,r,{get:t[r],enumerable:!0})},qe=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of Me(t))Fe.call(e,a)||a===r||De(e,a,{get:()=>t[a],enumerable:!(n=Le(t,a))||n.enumerable});return e},Ue=(e,t,r)=>(qe(e,t,"default"),r&&qe(r,t,"default")),Be=(e,t,r)=>(r=null!=e?Oe(je(e)):{},qe(!t&&e&&e.__esModule?r:De(r,"default",{value:e,enumerable:!0}),e)),We=e=>qe(De({},"__esModule",{value:!0}),e),Ve={};ze(Ve,{AnnotatedTextEdit:()=>C,ChangeAnnotation:()=>E,ChangeAnnotationIdentifier:()=>A,CodeAction:()=>le,CodeActionContext:()=>oe,CodeActionKind:()=>ie,CodeActionTriggerKind:()=>se,CodeDescription:()=>v,CodeLens:()=>ue,Color:()=>p,ColorInformation:()=>d,ColorPresentation:()=>f,Command:()=>R,CompletionItem:()=>W,CompletionItemKind:()=>G,CompletionItemLabelDetails:()=>B,CompletionItemTag:()=>z,CompletionList:()=>V,CreateFile:()=>k,DeleteFile:()=>w,Diagnostic:()=>$,DiagnosticRelatedInformation:()=>y,DiagnosticSeverity:()=>g,DiagnosticTag:()=>T,DocumentHighlight:()=>J,DocumentHighlightKind:()=>X,DocumentLink:()=>pe,DocumentSymbol:()=>ae,DocumentUri:()=>n,EOL:()=>Ne,FoldingRange:()=>h,FoldingRangeKind:()=>m,FormattingOptions:()=>ce,Hover:()=>Y,InlayHint:()=>be,InlayHintKind:()=>$e,InlayHintLabelPart:()=>Re,InlineCompletionContext:()=>xe,InlineCompletionItem:()=>Ae,InlineCompletionList:()=>Ce,InlineCompletionTriggerKind:()=>Se,InlineValueContext:()=>ve,InlineValueEvaluatableExpression:()=>Te,InlineValueText:()=>ye,InlineValueVariableLookup:()=>ge,InsertReplaceEdit:()=>q,InsertTextFormat:()=>K,InsertTextMode:()=>U,Location:()=>u,LocationLink:()=>c,MarkedString:()=>H,MarkupContent:()=>F,MarkupKind:()=>j,OptionalVersionedTextDocumentIdentifier:()=>L,ParameterInformation:()=>Q,Position:()=>o,Range:()=>l,RenameFile:()=>x,SelectedCompletionInfo:()=>ke,SelectionRange:()=>de,SemanticTokenModifiers:()=>me,SemanticTokenTypes:()=>fe,SemanticTokens:()=>he,SignatureInformation:()=>Z,StringValue:()=>Ee,SymbolInformation:()=>re,SymbolKind:()=>ee,SymbolTag:()=>te,TextDocument:()=>Ie,TextDocumentEdit:()=>S,TextDocumentIdentifier:()=>O,TextDocumentItem:()=>M,TextEdit:()=>b,URI:()=>a,VersionedTextDocumentIdentifier:()=>D,WorkspaceChange:()=>P,WorkspaceEdit:()=>N,WorkspaceFolder:()=>we,WorkspaceSymbol:()=>ne,integer:()=>i,uinteger:()=>s});var He,Ye,Qe=(He={"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var e,t,r,Oe,De,Le,Me,je,Fe,Ke,ze,qe,Ue;!function(e){function t(e){return"string"==typeof e}Ge(t,"is"),e.is=t}(n||(n={})),function(e){function t(e){return"string"==typeof e}Ge(t,"is"),e.is=t}(a||(a={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,Ge(t,"is"),e.is=t}(i||(i={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=0,e.MAX_VALUE=2147483647,Ge(t,"is"),e.is=t}(s||(s={})),function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}}function r(e){let t=e;return Pe.objectLiteral(t)&&Pe.uinteger(t.line)&&Pe.uinteger(t.character)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(o||(o={})),function(e){function t(e,t,r,n){if(Pe.uinteger(e)&&Pe.uinteger(t)&&Pe.uinteger(r)&&Pe.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 new Error(`Range#create called with invalid arguments[${e}, ${t}, ${r}, ${n}]`)}function r(e){let t=e;return Pe.objectLiteral(t)&&o.is(t.start)&&o.is(t.end)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(l||(l={})),function(e){function t(e,t){return{uri:e,range:t}}function r(e){let t=e;return Pe.objectLiteral(t)&&l.is(t.range)&&(Pe.string(t.uri)||Pe.undefined(t.uri))}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(u||(u={})),function(e){function t(e,t,r,n){return{targetUri:e,targetRange:t,targetSelectionRange:r,originSelectionRange:n}}function r(e){let t=e;return Pe.objectLiteral(t)&&l.is(t.targetRange)&&Pe.string(t.targetUri)&&l.is(t.targetSelectionRange)&&(l.is(t.originSelectionRange)||Pe.undefined(t.originSelectionRange))}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(c||(c={})),function(e){function t(e,t,r,n){return{red:e,green:t,blue:r,alpha:n}}function r(e){const t=e;return Pe.objectLiteral(t)&&Pe.numberRange(t.red,0,1)&&Pe.numberRange(t.green,0,1)&&Pe.numberRange(t.blue,0,1)&&Pe.numberRange(t.alpha,0,1)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(p||(p={})),function(e){function t(e,t){return{range:e,color:t}}function r(e){const t=e;return Pe.objectLiteral(t)&&l.is(t.range)&&p.is(t.color)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(d||(d={})),function(e){function t(e,t,r){return{label:e,textEdit:t,additionalTextEdits:r}}function r(e){const t=e;return Pe.objectLiteral(t)&&Pe.string(t.label)&&(Pe.undefined(t.textEdit)||b.is(t))&&(Pe.undefined(t.additionalTextEdits)||Pe.typedArray(t.additionalTextEdits,b.is))}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(f||(f={})),(e=m||(m={})).Comment="comment",e.Imports="imports",e.Region="region",function(e){function t(e,t,r,n,a,i){const s={startLine:e,endLine:t};return Pe.defined(r)&&(s.startCharacter=r),Pe.defined(n)&&(s.endCharacter=n),Pe.defined(a)&&(s.kind=a),Pe.defined(i)&&(s.collapsedText=i),s}function r(e){const t=e;return Pe.objectLiteral(t)&&Pe.uinteger(t.startLine)&&Pe.uinteger(t.startLine)&&(Pe.undefined(t.startCharacter)||Pe.uinteger(t.startCharacter))&&(Pe.undefined(t.endCharacter)||Pe.uinteger(t.endCharacter))&&(Pe.undefined(t.kind)||Pe.string(t.kind))}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(h||(h={})),function(e){function t(e,t){return{location:e,message:t}}function r(e){let t=e;return Pe.defined(t)&&u.is(t.location)&&Pe.string(t.message)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(y||(y={})),(t=g||(g={})).Error=1,t.Warning=2,t.Information=3,t.Hint=4,(r=T||(T={})).Unnecessary=1,r.Deprecated=2,function(e){function t(e){const t=e;return Pe.objectLiteral(t)&&Pe.string(t.href)}Ge(t,"is"),e.is=t}(v||(v={})),function(e){function t(e,t,r,n,a,i){let s={range:e,message:t};return Pe.defined(r)&&(s.severity=r),Pe.defined(n)&&(s.code=n),Pe.defined(a)&&(s.source=a),Pe.defined(i)&&(s.relatedInformation=i),s}function r(e){var t;let r=e;return Pe.defined(r)&&l.is(r.range)&&Pe.string(r.message)&&(Pe.number(r.severity)||Pe.undefined(r.severity))&&(Pe.integer(r.code)||Pe.string(r.code)||Pe.undefined(r.code))&&(Pe.undefined(r.codeDescription)||Pe.string(null===(t=r.codeDescription)||void 0===t?void 0:t.href))&&(Pe.string(r.source)||Pe.undefined(r.source))&&(Pe.undefined(r.relatedInformation)||Pe.typedArray(r.relatedInformation,y.is))}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}($||($={})),function(e){function t(e,t,...r){let n={title:e,command:t};return Pe.defined(r)&&r.length>0&&(n.arguments=r),n}function r(e){let t=e;return Pe.defined(t)&&Pe.string(t.title)&&Pe.string(t.command)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(R||(R={})),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 a(e){const t=e;return Pe.objectLiteral(t)&&Pe.string(t.newText)&&l.is(t.range)}Ge(t,"replace"),e.replace=t,Ge(r,"insert"),e.insert=r,Ge(n,"del"),e.del=n,Ge(a,"is"),e.is=a}(b||(b={})),function(e){function t(e,t,r){const n={label:e};return void 0!==t&&(n.needsConfirmation=t),void 0!==r&&(n.description=r),n}function r(e){const t=e;return Pe.objectLiteral(t)&&Pe.string(t.label)&&(Pe.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Pe.string(t.description)||void 0===t.description)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(E||(E={})),function(e){function t(e){const t=e;return Pe.string(t)}Ge(t,"is"),e.is=t}(A||(A={})),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 a(e){const t=e;return b.is(t)&&(E.is(t.annotationId)||A.is(t.annotationId))}Ge(t,"replace"),e.replace=t,Ge(r,"insert"),e.insert=r,Ge(n,"del"),e.del=n,Ge(a,"is"),e.is=a}(C||(C={})),function(e){function t(e,t){return{textDocument:e,edits:t}}function r(e){let t=e;return Pe.defined(t)&&L.is(t.textDocument)&&Array.isArray(t.edits)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(S||(S={})),function(e){function t(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 r(e){let t=e;return t&&"create"===t.kind&&Pe.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Pe.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Pe.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||A.is(t.annotationId))}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(k||(k={})),function(e){function t(e,t,r,n){let a={kind:"rename",oldUri:e,newUri:t};return void 0===r||void 0===r.overwrite&&void 0===r.ignoreIfExists||(a.options=r),void 0!==n&&(a.annotationId=n),a}function r(e){let t=e;return t&&"rename"===t.kind&&Pe.string(t.oldUri)&&Pe.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Pe.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Pe.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||A.is(t.annotationId))}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(x||(x={})),function(e){function t(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 r(e){let t=e;return t&&"delete"===t.kind&&Pe.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Pe.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Pe.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||A.is(t.annotationId))}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(w||(w={})),function(e){function t(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every(e=>Pe.string(e.kind)?k.is(e)||x.is(e)||w.is(e):S.is(e)))}Ge(t,"is"),e.is=t}(N||(N={})),I=class{static{Ge(this,"TextEditChangeImpl")}constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,r){let n,a;if(void 0===r?n=b.insert(e,t):A.is(r)?(a=r,n=C.insert(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),n=C.insert(e,t,a)),this.edits.push(n),void 0!==a)return a}replace(e,t,r){let n,a;if(void 0===r?n=b.replace(e,t):A.is(r)?(a=r,n=C.replace(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),n=C.replace(e,t,a)),this.edits.push(n),void 0!==a)return a}delete(e,t){let r,n;if(void 0===t?r=b.del(e):A.is(t)?(n=t,r=C.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),r=C.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 new Error("Text edit change is not configured to manage change annotations.")}},_=class{static{Ge(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(A.is(e)?r=e:(r=this.nextId(),t=e),void 0!==this._annotations[r])throw new Error(`Id ${r} is already in use.`);if(void 0===t)throw new 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{Ge(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)){const t=new I(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}})):e.changes&&Object.keys(e.changes).forEach(t=>{const 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 new Error("Workspace edit is not configured for document changes.");const t={uri:e.uri,version:e.version};let r=this._textEditChanges[t.uri];if(!r){const e=[],n={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(n),r=new I(e,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new 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){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let n,a,i;if(E.is(t)||A.is(t)?n=t:r=t,void 0===n?a=k.create(e,r):(i=A.is(n)?n:this._changeAnnotations.manage(n),a=k.create(e,r,i)),this._workspaceEdit.documentChanges.push(a),void 0!==i)return i}renameFile(e,t,r,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let a,i,s;if(E.is(r)||A.is(r)?a=r:n=r,void 0===a?i=x.create(e,t,n):(s=A.is(a)?a:this._changeAnnotations.manage(a),i=x.create(e,t,n,s)),this._workspaceEdit.documentChanges.push(i),void 0!==s)return s}deleteFile(e,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let n,a,i;if(E.is(t)||A.is(t)?n=t:r=t,void 0===n?a=w.create(e,r):(i=A.is(n)?n:this._changeAnnotations.manage(n),a=w.create(e,r,i)),this._workspaceEdit.documentChanges.push(a),void 0!==i)return i}},function(e){function t(e){return{uri:e}}function r(e){let t=e;return Pe.defined(t)&&Pe.string(t.uri)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(O||(O={})),function(e){function t(e,t){return{uri:e,version:t}}function r(e){let t=e;return Pe.defined(t)&&Pe.string(t.uri)&&Pe.integer(t.version)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(D||(D={})),function(e){function t(e,t){return{uri:e,version:t}}function r(e){let t=e;return Pe.defined(t)&&Pe.string(t.uri)&&(null===t.version||Pe.integer(t.version))}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(L||(L={})),function(e){function t(e,t,r,n){return{uri:e,languageId:t,version:r,text:n}}function r(e){let t=e;return Pe.defined(t)&&Pe.string(t.uri)&&Pe.string(t.languageId)&&Pe.integer(t.version)&&Pe.string(t.text)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(M||(M={})),function(e){function t(t){const r=t;return r===e.PlainText||r===e.Markdown}e.PlainText="plaintext",e.Markdown="markdown",Ge(t,"is"),e.is=t}(j||(j={})),function(e){function t(e){const t=e;return Pe.objectLiteral(e)&&j.is(t.kind)&&Pe.string(t.value)}Ge(t,"is"),e.is=t}(F||(F={})),(Oe=G||(G={})).Text=1,Oe.Method=2,Oe.Function=3,Oe.Constructor=4,Oe.Field=5,Oe.Variable=6,Oe.Class=7,Oe.Interface=8,Oe.Module=9,Oe.Property=10,Oe.Unit=11,Oe.Value=12,Oe.Enum=13,Oe.Keyword=14,Oe.Snippet=15,Oe.Color=16,Oe.File=17,Oe.Reference=18,Oe.Folder=19,Oe.EnumMember=20,Oe.Constant=21,Oe.Struct=22,Oe.Event=23,Oe.Operator=24,Oe.TypeParameter=25,(De=K||(K={})).PlainText=1,De.Snippet=2,(z||(z={})).Deprecated=1,function(e){function t(e,t,r){return{newText:e,insert:t,replace:r}}function r(e){const t=e;return t&&Pe.string(t.newText)&&l.is(t.insert)&&l.is(t.replace)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(q||(q={})),(Le=U||(U={})).asIs=1,Le.adjustIndentation=2,function(e){function t(e){const t=e;return t&&(Pe.string(t.detail)||void 0===t.detail)&&(Pe.string(t.description)||void 0===t.description)}Ge(t,"is"),e.is=t}(B||(B={})),function(e){function t(e){return{label:e}}Ge(t,"create"),e.create=t}(W||(W={})),function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}Ge(t,"create"),e.create=t}(V||(V={})),function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function r(e){const t=e;return Pe.string(t)||Pe.objectLiteral(t)&&Pe.string(t.language)&&Pe.string(t.value)}Ge(t,"fromPlainText"),e.fromPlainText=t,Ge(r,"is"),e.is=r}(H||(H={})),function(e){function t(e){let t=e;return!!t&&Pe.objectLiteral(t)&&(F.is(t.contents)||H.is(t.contents)||Pe.typedArray(t.contents,H.is))&&(void 0===e.range||l.is(e.range))}Ge(t,"is"),e.is=t}(Y||(Y={})),function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}Ge(t,"create"),e.create=t}(Q||(Q={})),function(e){function t(e,t,...r){let n={label:e};return Pe.defined(t)&&(n.documentation=t),Pe.defined(r)?n.parameters=r:n.parameters=[],n}Ge(t,"create"),e.create=t}(Z||(Z={})),(Me=X||(X={})).Text=1,Me.Read=2,Me.Write=3,function(e){function t(e,t){let r={range:e};return Pe.number(t)&&(r.kind=t),r}Ge(t,"create"),e.create=t}(J||(J={})),(je=ee||(ee={})).File=1,je.Module=2,je.Namespace=3,je.Package=4,je.Class=5,je.Method=6,je.Property=7,je.Field=8,je.Constructor=9,je.Enum=10,je.Interface=11,je.Function=12,je.Variable=13,je.Constant=14,je.String=15,je.Number=16,je.Boolean=17,je.Array=18,je.Object=19,je.Key=20,je.Null=21,je.EnumMember=22,je.Struct=23,je.Event=24,je.Operator=25,je.TypeParameter=26,(te||(te={})).Deprecated=1,function(e){function t(e,t,r,n,a){let i={name:e,kind:t,location:{uri:n,range:r}};return a&&(i.containerName=a),i}Ge(t,"create"),e.create=t}(re||(re={})),function(e){function t(e,t,r,n){return void 0!==n?{name:e,kind:t,location:{uri:r,range:n}}:{name:e,kind:t,location:{uri:r}}}Ge(t,"create"),e.create=t}(ne||(ne={})),function(e){function t(e,t,r,n,a,i){let s={name:e,detail:t,kind:r,range:n,selectionRange:a};return void 0!==i&&(s.children=i),s}function r(e){let t=e;return t&&Pe.string(t.name)&&Pe.number(t.kind)&&l.is(t.range)&&l.is(t.selectionRange)&&(void 0===t.detail||Pe.string(t.detail))&&(void 0===t.deprecated||Pe.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(ae||(ae={})),(Fe=ie||(ie={})).Empty="",Fe.QuickFix="quickfix",Fe.Refactor="refactor",Fe.RefactorExtract="refactor.extract",Fe.RefactorInline="refactor.inline",Fe.RefactorRewrite="refactor.rewrite",Fe.Source="source",Fe.SourceOrganizeImports="source.organizeImports",Fe.SourceFixAll="source.fixAll",(Ke=se||(se={})).Invoked=1,Ke.Automatic=2,function(e){function t(e,t,r){let n={diagnostics:e};return null!=t&&(n.only=t),null!=r&&(n.triggerKind=r),n}function r(e){let t=e;return Pe.defined(t)&&Pe.typedArray(t.diagnostics,$.is)&&(void 0===t.only||Pe.typedArray(t.only,Pe.string))&&(void 0===t.triggerKind||t.triggerKind===se.Invoked||t.triggerKind===se.Automatic)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(oe||(oe={})),function(e){function t(e,t,r){let n={title:e},a=!0;return"string"==typeof t?(a=!1,n.kind=t):R.is(t)?n.command=t:n.edit=t,a&&void 0!==r&&(n.kind=r),n}function r(e){let t=e;return t&&Pe.string(t.title)&&(void 0===t.diagnostics||Pe.typedArray(t.diagnostics,$.is))&&(void 0===t.kind||Pe.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||R.is(t.command))&&(void 0===t.isPreferred||Pe.boolean(t.isPreferred))&&(void 0===t.edit||N.is(t.edit))}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(le||(le={})),function(e){function t(e,t){let r={range:e};return Pe.defined(t)&&(r.data=t),r}function r(e){let t=e;return Pe.defined(t)&&l.is(t.range)&&(Pe.undefined(t.command)||R.is(t.command))}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(ue||(ue={})),function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}function r(e){let t=e;return Pe.defined(t)&&Pe.uinteger(t.tabSize)&&Pe.boolean(t.insertSpaces)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(ce||(ce={})),function(e){function t(e,t,r){return{range:e,target:t,data:r}}function r(e){let t=e;return Pe.defined(t)&&l.is(t.range)&&(Pe.undefined(t.target)||Pe.string(t.target))}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(pe||(pe={})),function(e){function t(e,t){return{range:e,parent:t}}function r(t){let r=t;return Pe.objectLiteral(r)&&l.is(r.range)&&(void 0===r.parent||e.is(r.parent))}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(de||(de={})),(ze=fe||(fe={})).namespace="namespace",ze.type="type",ze.class="class",ze.enum="enum",ze.interface="interface",ze.struct="struct",ze.typeParameter="typeParameter",ze.parameter="parameter",ze.variable="variable",ze.property="property",ze.enumMember="enumMember",ze.event="event",ze.function="function",ze.method="method",ze.macro="macro",ze.keyword="keyword",ze.modifier="modifier",ze.comment="comment",ze.string="string",ze.number="number",ze.regexp="regexp",ze.operator="operator",ze.decorator="decorator",(qe=me||(me={})).declaration="declaration",qe.definition="definition",qe.readonly="readonly",qe.static="static",qe.deprecated="deprecated",qe.abstract="abstract",qe.async="async",qe.modification="modification",qe.documentation="documentation",qe.defaultLibrary="defaultLibrary",function(e){function t(e){const t=e;return Pe.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}Ge(t,"is"),e.is=t}(he||(he={})),function(e){function t(e,t){return{range:e,text:t}}function r(e){const t=e;return null!=t&&l.is(t.range)&&Pe.string(t.text)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(ye||(ye={})),function(e){function t(e,t,r){return{range:e,variableName:t,caseSensitiveLookup:r}}function r(e){const t=e;return null!=t&&l.is(t.range)&&Pe.boolean(t.caseSensitiveLookup)&&(Pe.string(t.variableName)||void 0===t.variableName)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(ge||(ge={})),function(e){function t(e,t){return{range:e,expression:t}}function r(e){const t=e;return null!=t&&l.is(t.range)&&(Pe.string(t.expression)||void 0===t.expression)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(Te||(Te={})),function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}function r(e){const t=e;return Pe.defined(t)&&l.is(e.stoppedLocation)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(ve||(ve={})),function(e){function t(e){return 1===e||2===e}e.Type=1,e.Parameter=2,Ge(t,"is"),e.is=t}($e||($e={})),function(e){function t(e){return{value:e}}function r(e){const t=e;return Pe.objectLiteral(t)&&(void 0===t.tooltip||Pe.string(t.tooltip)||F.is(t.tooltip))&&(void 0===t.location||u.is(t.location))&&(void 0===t.command||R.is(t.command))}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(Re||(Re={})),function(e){function t(e,t,r){const n={position:e,label:t};return void 0!==r&&(n.kind=r),n}function r(e){const t=e;return Pe.objectLiteral(t)&&o.is(t.position)&&(Pe.string(t.label)||Pe.typedArray(t.label,Re.is))&&(void 0===t.kind||$e.is(t.kind))&&void 0===t.textEdits||Pe.typedArray(t.textEdits,b.is)&&(void 0===t.tooltip||Pe.string(t.tooltip)||F.is(t.tooltip))&&(void 0===t.paddingLeft||Pe.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Pe.boolean(t.paddingRight))}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(be||(be={})),function(e){function t(e){return{kind:"snippet",value:e}}Ge(t,"createSnippet"),e.createSnippet=t}(Ee||(Ee={})),function(e){function t(e,t,r,n){return{insertText:e,filterText:t,range:r,command:n}}Ge(t,"create"),e.create=t}(Ae||(Ae={})),function(e){function t(e){return{items:e}}Ge(t,"create"),e.create=t}(Ce||(Ce={})),(Ue=Se||(Se={})).Invoked=0,Ue.Automatic=1,function(e){function t(e,t){return{range:e,text:t}}Ge(t,"create"),e.create=t}(ke||(ke={})),function(e){function t(e,t){return{triggerKind:e,selectedCompletionInfo:t}}Ge(t,"create"),e.create=t}(xe||(xe={})),function(e){function t(e){const t=e;return Pe.objectLiteral(t)&&a.is(t.uri)&&Pe.string(t.name)}Ge(t,"is"),e.is=t}(we||(we={})),Ne=["\n","\r\n","\r"],function(e){function t(e,t,r,n){return new _e(e,t,r,n)}function r(e){let t=e;return!!(Pe.defined(t)&&Pe.string(t.uri)&&(Pe.undefined(t.languageId)||Pe.string(t.languageId))&&Pe.uinteger(t.lineCount)&&Pe.func(t.getText)&&Pe.func(t.positionAt)&&Pe.func(t.offsetAt))}function n(e,t){let r=e.getText(),n=a(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=r.length;for(let a=n.length-1;a>=0;a--){let t=n[a],s=e.offsetAt(t.range.start),o=e.offsetAt(t.range.end);if(!(o<=i))throw new Error("Overlapping edit");r=r.substring(0,s)+t.newText+r.substring(o,r.length),i=s}return r}function a(e,t){if(e.length<=1)return e;const r=e.length/2|0,n=e.slice(0,r),i=e.slice(r);a(n,t),a(i,t);let s=0,o=0,l=0;for(;s<n.length&&o<i.length;){let r=t(n[s],i[o]);e[l++]=r<=0?n[s++]:i[o++]}for(;s<n.length;)e[l++]=n[s++];for(;o<i.length;)e[l++]=i[o++];return e}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r,Ge(n,"applyEdits"),e.applyEdits=n,Ge(a,"mergeSort")}(Ie||(Ie={})),_e=class{static{Ge(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 a=t.charAt(n);r="\r"===a||"\n"===a,"\r"===a&&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 a=Math.floor((r+n)/2);t[a]>e?n=a:r=a+1}let a=r-1;return o.create(a,e-t[a])}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){const t=Object.prototype.toString;function r(e){return void 0!==e}function n(e){return void 0===e}function a(e){return!0===e||!1===e}function i(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)&&-2147483648<=e&&e<=2147483647}function u(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647}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)}Ge(r,"defined"),e.defined=r,Ge(n,"undefined"),e.undefined=n,Ge(a,"boolean"),e.boolean=a,Ge(i,"string"),e.string=i,Ge(s,"number"),e.number=s,Ge(o,"numberRange"),e.numberRange=o,Ge(l,"integer"),e.integer=l,Ge(u,"uinteger"),e.uinteger=u,Ge(c,"func"),e.func=c,Ge(p,"objectLiteral"),e.objectLiteral=p,Ge(d,"typedArray"),e.typedArray=d}(Pe||(Pe={}))}},function(){return He&&(Ye=(0,He[Me(He)[0]])(He=0)),Ye}),Ze=Ke({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){var t;function r(){if(void 0===t)throw new Error("No runtime abstraction layer installed");return t}Object.defineProperty(e,"__esModule",{value:!0}),Ge(r,"RAL"),function(e){function r(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");t=e}Ge(r,"install"),e.install=r}(r||(r={})),e.default=r}}),Xe=Ke({"../../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 a(e){return e instanceof Error}function i(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,Ge(t,"boolean"),e.boolean=t,Ge(r,"string"),e.string=r,Ge(n,"number"),e.number=n,Ge(a,"error"),e.error=a,Ge(i,"func"),e.func=i,Ge(s,"array"),e.array=s,Ge(o,"stringArray"),e.stringArray=o}}),Je=Ke({"../../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=Ze();!function(e){const t={dispose(){}};e.None=function(){return t}}(t||(e.Event=t={}));var n=class{static{Ge(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:Ge(()=>this.remove(e,t),"dispose")})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let n=0,a=this._callbacks.length;n<a;n++)if(this._callbacks[n]===e){if(this._contexts[n]===t)return this._callbacks.splice(n,1),void this._contexts.splice(n,1);r=!0}if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const t=[],n=this._callbacks.slice(0),a=this._contexts.slice(0);for(let s=0,o=n.length;s<o;s++)try{t.push(n[s].apply(a[s],e))}catch(i){(0,r.default)().console.error(i)}return t}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}},a=class e{static{Ge(this,"Emitter")}constructor(e){this._options=e}get event(){return this._event||(this._event=(t,r,a)=>{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,r);const i={dispose:Ge(()=>{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(a)&&a.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=a,a._noop=function(){}}}),et=Ke({"../../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=Ze(),n=Xe(),a=Je();!function(e){function t(t){const r=t;return r&&(r===e.None||r===e.Cancelled||n.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:a.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:a.Event.None}),Ge(t,"is"),e.is=t}(t||(e.CancellationToken=t={}));var i=Object.freeze(function(e,t){const n=(0,r.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),s=class{static{Ge(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?i:(this._emitter||(this._emitter=new a.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},o=class{static{Ge(this,"CancellationTokenSource")}get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token.cancel():this._token=t.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=t.None}};e.CancellationTokenSource=o}}),tt=Ke({"../../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=Xe();(r=t||(e.ErrorCodes=t={})).ParseError=-32700,r.InvalidRequest=-32600,r.MethodNotFound=-32601,r.InvalidParams=-32602,r.InternalError=-32603,r.jsonrpcReservedErrorRangeStart=-32099,r.serverErrorStart=-32099,r.MessageWriteError=-32099,r.MessageReadError=-32098,r.PendingResponseRejected=-32097,r.ConnectionInactive=-32096,r.ServerNotInitialized=-32002,r.UnknownErrorCode=-32001,r.jsonrpcReservedErrorRangeEnd=-32e3,r.serverErrorEnd=-32e3;var a=class e extends Error{static{Ge(this,"ResponseError")}constructor(r,a,i){super(a),this.code=n.number(r)?r:t.UnknownErrorCode,this.data=i,Object.setPrototypeOf(this,e.prototype)}toJson(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}};e.ResponseError=a;var i=class e{static{Ge(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=i,i.auto=new i("auto"),i.byPosition=new i("byPosition"),i.byName=new i("byName");var s=class{static{Ge(this,"AbstractMessageSignature")}constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return i.auto}};e.AbstractMessageSignature=s;var o=class extends s{static{Ge(this,"RequestType0")}constructor(e){super(e,0)}};e.RequestType0=o;var l=class extends s{static{Ge(this,"RequestType")}constructor(e,t=i.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};e.RequestType=l;var u=class extends s{static{Ge(this,"RequestType1")}constructor(e,t=i.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};e.RequestType1=u;var c=class extends s{static{Ge(this,"RequestType2")}constructor(e){super(e,2)}};e.RequestType2=c;var p=class extends s{static{Ge(this,"RequestType3")}constructor(e){super(e,3)}};e.RequestType3=p;var d=class extends s{static{Ge(this,"RequestType4")}constructor(e){super(e,4)}};e.RequestType4=d;var f=class extends s{static{Ge(this,"RequestType5")}constructor(e){super(e,5)}};e.RequestType5=f;var m=class extends s{static{Ge(this,"RequestType6")}constructor(e){super(e,6)}};e.RequestType6=m;var h=class extends s{static{Ge(this,"RequestType7")}constructor(e){super(e,7)}};e.RequestType7=h;var y=class extends s{static{Ge(this,"RequestType8")}constructor(e){super(e,8)}};e.RequestType8=y;var g=class extends s{static{Ge(this,"RequestType9")}constructor(e){super(e,9)}};e.RequestType9=g;var T=class extends s{static{Ge(this,"NotificationType")}constructor(e,t=i.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};e.NotificationType=T;var v=class extends s{static{Ge(this,"NotificationType0")}constructor(e){super(e,0)}};e.NotificationType0=v;var $=class extends s{static{Ge(this,"NotificationType1")}constructor(e,t=i.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};e.NotificationType1=$;var R=class extends s{static{Ge(this,"NotificationType2")}constructor(e){super(e,2)}};e.NotificationType2=R;var b=class extends s{static{Ge(this,"NotificationType3")}constructor(e){super(e,3)}};e.NotificationType3=b;var E=class extends s{static{Ge(this,"NotificationType4")}constructor(e){super(e,4)}};e.NotificationType4=E;var A=class extends s{static{Ge(this,"NotificationType5")}constructor(e){super(e,5)}};e.NotificationType5=A;var C=class extends s{static{Ge(this,"NotificationType6")}constructor(e){super(e,6)}};e.NotificationType6=C;var S=class extends s{static{Ge(this,"NotificationType7")}constructor(e){super(e,7)}};e.NotificationType7=S;var k=class extends s{static{Ge(this,"NotificationType8")}constructor(e){super(e,8)}};e.NotificationType8=k;var x,w=class extends s{static{Ge(this,"NotificationType9")}constructor(e){super(e,9)}};e.NotificationType9=w,function(e){function t(e){const t=e;return t&&n.string(t.method)&&(n.string(t.id)||n.number(t.id))}function r(e){const t=e;return t&&n.string(t.method)&&void 0===e.id}function a(e){const t=e;return t&&(void 0!==t.result||!!t.error)&&(n.string(t.id)||n.number(t.id)||null===t.id)}Ge(t,"isRequest"),e.isRequest=t,Ge(r,"isNotification"),e.isNotification=r,Ge(a,"isResponse"),e.isResponse=a}(x||(e.Message=x={}))}}),rt=Ke({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){var t,r,n;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0,(n=r||(e.Touch=r={})).None=0,n.First=1,n.AsOld=n.First,n.Last=2,n.AsNew=n.Last;var a=class{static{Ge(this,"LinkedMap")}constructor(){this[t]="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=r.None){const n=this._map.get(e);if(n)return t!==r.None&&this.touch(n,t),n.value}set(e,t,n=r.None){let a=this._map.get(e);if(a)a.value=t,n!==r.None&&this.touch(a,n);else{switch(a={key:e,value:t,next:void 0,previous:void 0},n){case r.None:this.addItemLast(a);break;case r.First:this.addItemFirst(a);break;case r.Last:default:this.addItemLast(a)}this._map.set(e,a),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const 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 new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const r=this._state;let 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 new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next:Ge(()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}},"next")};return r}values(){const e=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next:Ge(()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}},"next")};return r}entries(){const e=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next:Ge(()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}},"next")};return r}[(t=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)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}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 new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,r=e.previous;if(!t||!r)throw new 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 new Error("Invalid list");if(t===r.First||t===r.Last)if(t===r.First){if(e===this._head)return;const 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===r.Last){if(e===this._tail)return;const 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(){const e=[];return this.forEach((t,r)=>{e.push([r,t])}),e}fromJSON(e){this.clear();for(const[t,r]of e)this.set(t,r)}};e.LinkedMap=a;var i=class extends a{static{Ge(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=r.AsNew){return super.get(e,t)}peek(e){return super.get(e,r.None)}set(e,t){return super.set(e,t,r.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};e.LRUCache=i}}),nt=Ke({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0,function(e){function t(e){return{dispose:e}}Ge(t,"create"),e.create=t}(t||(e.Disposable=t={}))}}),at=Ke({"../../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=et();(r=t||(t={})).Continue=0,r.Cancelled=1;var a=class{static{Ge(this,"SharedArraySenderStrategy")}constructor(){this.buffers=new Map}enableCancellation(e){if(null===e.id)return;const r=new SharedArrayBuffer(4);new Int32Array(r,0,1)[0]=t.Continue,this.buffers.set(e.id,r),e.$cancellationData=r}async sendCancellation(e,r){const n=this.buffers.get(r);if(void 0===n)return;const a=new Int32Array(n,0,1);Atomics.store(a,0,t.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};e.SharedArraySenderStrategy=a;var i=class{static{Ge(this,"SharedArrayBufferCancellationToken")}constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===t.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s=class{static{Ge(this,"SharedArrayBufferCancellationTokenSource")}constructor(e){this.token=new i(e)}cancel(){}dispose(){}},o=class{static{Ge(this,"SharedArrayReceiverStrategy")}constructor(){this.kind="request"}createCancellationTokenSource(e){const t=e.$cancellationData;return void 0===t?new n.CancellationTokenSource:new s(t)}};e.SharedArrayReceiverStrategy=o}}),it=Ke({"../../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=Ze(),r=class{static{Ge(this,"Semaphore")}constructor(e=1){if(e<=0)throw new 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;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const 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()}}};e.Semaphore=r}}),st=Ke({"../../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=Ze(),n=Xe(),a=Je(),i=it();!function(e){function t(e){let t=e;return t&&n.func(t.listen)&&n.func(t.dispose)&&n.func(t.onError)&&n.func(t.onClose)&&n.func(t.onPartialMessage)}Ge(t,"is"),e.is=t}(t||(e.MessageReader=t={}));var s,o=class{static{Ge(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:new Error(`Reader received error. Reason: ${n.string(e.message)?e.message:"unknown"}`)}};e.AbstractMessageReader=o,function(e){function t(e){let t,n;const a=new Map;let i;const 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&&(n=e.contentDecoder,a.set(n.name,n)),void 0!==e.contentDecoders)for(const 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(const t of e.contentTypeDecoders)s.set(t.name,t)}return void 0===i&&(i=(0,r.default)().applicationJson.decoder,s.set(i.name,i)),{charset:t,contentDecoder:n,contentDecoders:a,contentTypeDecoder:i,contentTypeDecoders:s}}Ge(t,"fromOptions"),e.fromOptions=t}(s||(s={}));var l=class extends o{static{Ge(this,"ReadableStreamMessageReader")}constructor(e,t){super(),this.readable=e,this.options=s.fromOptions(t),this.buffer=(0,r.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new i.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;const 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){const e=this.buffer.tryReadHeaders(!0);if(!e)return;const t=e.get("content-length");if(!t)return void this.fireError(new Error(`Header must provide a Content-Length property.\n${JSON.stringify(Object.fromEntries(e))}`));const r=parseInt(t);if(isNaN(r))return void this.fireError(new Error(`Content-Length value must be a number. Got ${t}`));this.nextMessageLength=r}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const 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(t){this.fireError(t)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,r.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))}};e.ReadableStreamMessageReader=l}}),ot=Ke({"../../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=Ze(),n=Xe(),a=it(),i=Je();!function(e){function t(e){let t=e;return t&&n.func(t.dispose)&&n.func(t.onClose)&&n.func(t.onError)&&n.func(t.write)}Ge(t,"is"),e.is=t}(t||(e.MessageWriter=t={}));var s,o=class{static{Ge(this,"AbstractMessageWriter")}constructor(){this.errorEmitter=new i.Emitter,this.closeEmitter=new i.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:new Error(`Writer received error. Reason: ${n.string(e.message)?e.message:"unknown"}`)}};e.AbstractMessageWriter=o,function(e){function t(e){return void 0===e||"string"==typeof e?{charset:e??"utf-8",contentTypeEncoder:(0,r.default)().applicationJson.encoder}:{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,r.default)().applicationJson.encoder}}Ge(t,"fromOptions"),e.fromOptions=t}(s||(s={}));var l=class extends o{static{Ge(this,"WriteableStreamMessageWriter")}constructor(e,t){super(),this.writable=e,this.options=s.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=>{const 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(n){return this.handleError(n,e),Promise.reject(n)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}};e.WriteableStreamMessageWriter=l}}),lt=Ke({"../../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;var t=class{static{Ge(this,"AbstractMessageBuffer")}constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const 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,a=0;e:for(;r<this._chunks.length;){const 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++}a+=e.byteLength,r++}if(4!==t)return;const i=this._read(a+n),s=new Map,o=this.toString(i,"ascii").split("\r\n");if(o.length<2)return s;for(let l=0;l<o.length-2;l++){const t=o[l],r=t.indexOf(":");if(-1===r)throw new Error(`Message header must separate key and value using ':'\n${t}`);const n=t.substr(0,r),a=t.substr(r+1).trim();s.set(e?n.toLowerCase():n,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 new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],r=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,r}const t=this.allocNative(e);let r=0;for(;e>0;){const n=this._chunks[0];if(n.byteLength>e){const a=n.slice(0,e);t.set(a,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}};e.AbstractMessageBuffer=t}}),ut=Ke({"../../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,a=Ze(),i=Xe(),s=tt(),o=rt(),l=Je(),u=et();(t||(t={})).type=new s.NotificationType("$/cancelRequest"),function(e){function t(e){return"string"==typeof e||"number"==typeof e}Ge(t,"is"),e.is=t}(r||(e.ProgressToken=r={})),(n||(n={})).type=new s.NotificationType("$/progress");var c,p,d,f,m,h,y,g,T,v,$,R=class{static{Ge(this,"ProgressType")}constructor(){}};e.ProgressType=R,function(e){function t(e){return i.func(e)}Ge(t,"is"),e.is=t}(c||(c={})),e.NullLogger=Object.freeze({error:Ge(()=>{},"error"),warn:Ge(()=>{},"warn"),info:Ge(()=>{},"info"),log:Ge(()=>{},"log")}),(d=p||(e.Trace=p={}))[d.Off=0]="Off",d[d.Messages=1]="Messages",d[d.Compact=2]="Compact",d[d.Verbose=3]="Verbose",(m=f||(e.TraceValues=f={})).Off="off",m.Messages="messages",m.Compact="compact",m.Verbose="verbose",function(e){function t(t){if(!i.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":default:return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose}}function r(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}Ge(t,"fromString"),e.fromString=t,Ge(r,"toString"),e.toString=r}(p||(e.Trace=p={})),(y=h||(e.TraceFormat=h={})).Text="text",y.JSON="json",function(e){function t(t){return i.string(t)&&"json"===(t=t.toLowerCase())?e.JSON:e.Text}Ge(t,"fromString"),e.fromString=t}(h||(e.TraceFormat=h={})),(g||(e.SetTraceNotification=g={})).type=new s.NotificationType("$/setTrace"),(T||(e.LogTraceNotification=T={})).type=new s.NotificationType("$/logTrace"),($=v||(e.ConnectionErrors=v={}))[$.Closed=1]="Closed",$[$.Disposed=2]="Disposed",$[$.AlreadyListening=3]="AlreadyListening";var b,E,A,C,S,k,x,w,N,I,_=class e extends Error{static{Ge(this,"ConnectionError")}constructor(t,r){super(r),this.code=t,Object.setPrototypeOf(this,e.prototype)}};function P(d,f,m,y){const $=void 0!==m?m:e.NullLogger;let R=0,b=0,A=0;const C="2.0";let S;const w=new Map;let I;const P=new Map,O=new Map;let D,L,M=new o.LinkedMap,j=new Map,F=new Set,G=new Map,K=p.Off,z=h.Text,q=N.New;const U=new l.Emitter,B=new l.Emitter,W=new l.Emitter,V=new l.Emitter,H=new l.Emitter,Y=y&&y.cancellationStrategy?y.cancellationStrategy:k.Message;function Q(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function Z(e){return null===e?"res-unknown-"+(++A).toString():"res-"+e.toString()}function X(){return"not-"+(++b).toString()}function J(e,t){s.Message.isRequest(t)?e.set(Q(t.id),t):s.Message.isResponse(t)?e.set(Z(t.id),t):e.set(X(),t)}function ee(e){}function te(){return q===N.Listening}function re(){return q===N.Closed}function ne(){return q===N.Disposed}function ae(){q!==N.New&&q!==N.Listening||(q=N.Closed,B.fire(void 0))}function ie(e){U.fire([e,void 0,void 0])}function se(e){U.fire(e)}function oe(){D||0===M.size||(D=(0,a.default)().timer.setImmediate(()=>{D=void 0,ue()}))}function le(e){s.Message.isRequest(e)?pe(e):s.Message.isNotification(e)?fe(e):s.Message.isResponse(e)?de(e):me(e)}function ue(){if(0===M.size)return;const e=M.shift();try{const t=y?.messageStrategy;x.is(t)?t.handleMessage(e,le):le(e)}finally{oe()}}Ge(Q,"createRequestQueueKey"),Ge(Z,"createResponseQueueKey"),Ge(X,"createNotificationQueueKey"),Ge(J,"addMessageToQueue"),Ge(ee,"cancelUndispatched"),Ge(te,"isListening"),Ge(re,"isClosed"),Ge(ne,"isDisposed"),Ge(ae,"closeHandler"),Ge(ie,"readErrorHandler"),Ge(se,"writeErrorHandler"),d.onClose(ae),d.onError(ie),f.onClose(ae),f.onError(se),Ge(oe,"triggerMessageQueue"),Ge(le,"handleMessage"),Ge(ue,"processMessageQueue");const ce=Ge(e=>{try{if(s.Message.isNotification(e)&&e.method===t.type.method){const t=e.params.id,r=Q(t),n=M.get(r);if(s.Message.isRequest(n)){const a=y?.connectionStrategy,i=a&&a.cancelUndispatched?a.cancelUndispatched(n,ee):void 0;if(i&&(void 0!==i.error||void 0!==i.result))return M.delete(r),G.delete(t),i.id=n.id,Te(i,e.method,Date.now()),void f.write(i).catch(()=>$.error("Sending response for canceled message failed."))}const a=G.get(t);if(void 0!==a)return a.cancel(),void $e(e);F.add(t)}J(M,e)}finally{oe()}},"callback");function pe(e){if(ne())return;function t(t,r,n){const a={jsonrpc:C,id:e.id};t instanceof s.ResponseError?a.error=t.toJson():a.result=void 0===t?null:t,Te(a,r,n),f.write(a).catch(()=>$.error("Sending response failed."))}function r(t,r,n){const a={jsonrpc:C,id:e.id,error:t.toJson()};Te(a,r,n),f.write(a).catch(()=>$.error("Sending response failed."))}function n(t,r,n){void 0===t&&(t=null);const a={jsonrpc:C,id:e.id,result:t};Te(a,r,n),f.write(a).catch(()=>$.error("Sending response failed."))}Ge(t,"reply"),Ge(r,"replyError"),Ge(n,"replySuccess"),ve(e);const a=w.get(e.method);let o,l;a&&(o=a.type,l=a.handler);const u=Date.now();if(l||S){const a=e.id??String(Date.now()),p=E.is(Y.receiver)?Y.receiver.createCancellationTokenSource(a):Y.receiver.createCancellationTokenSource(e);null!==e.id&&F.has(e.id)&&p.cancel(),null!==e.id&&G.set(a,p);try{let c;if(l)if(void 0===e.params){if(void 0!==o&&0!==o.numberOfParams)return void r(new s.ResponseError(s.ErrorCodes.InvalidParams,`Request ${e.method} defines ${o.numberOfParams} params but received none.`),e.method,u);c=l(p.token)}else if(Array.isArray(e.params)){if(void 0!==o&&o.parameterStructures===s.ParameterStructures.byName)return void r(new s.ResponseError(s.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,u);c=l(...e.params,p.token)}else{if(void 0!==o&&o.parameterStructures===s.ParameterStructures.byPosition)return void r(new s.ResponseError(s.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,u);c=l(e.params,p.token)}else S&&(c=S(e.method,e.params,p.token));const d=c;c?d.then?d.then(r=>{G.delete(a),t(r,e.method,u)},t=>{G.delete(a),t instanceof s.ResponseError?r(t,e.method,u):t&&i.string(t.message)?r(new s.ResponseError(s.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,u):r(new s.ResponseError(s.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}):(G.delete(a),t(c,e.method,u)):(G.delete(a),n(c,e.method,u))}catch(c){G.delete(a),c instanceof s.ResponseError?t(c,e.method,u):c&&i.string(c.message)?r(new s.ResponseError(s.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${c.message}`),e.method,u):r(new s.ResponseError(s.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}}else r(new s.ResponseError(s.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,u)}function de(e){if(!ne())if(null===e.id)e.error?$.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):$.error("Received response message without id. No further error information provided.");else{const r=e.id,n=j.get(r);if(Re(e,n),void 0!==n){j.delete(r);try{if(e.error){const t=e.error;n.reject(new s.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");n.resolve(e.result)}}catch(t){t.message?$.error(`Response handler '${n.method}' failed with message: ${t.message}`):$.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}function fe(e){if(ne())return;let a,i;if(e.method===t.type.method){const t=e.params.id;return F.delete(t),void $e(e)}{const t=P.get(e.method);t&&(i=t.handler,a=t.type)}if(i||I)try{if($e(e),i)if(void 0===e.params)void 0!==a&&0!==a.numberOfParams&&a.parameterStructures!==s.ParameterStructures.byName&&$.error(`Notification ${e.method} defines ${a.numberOfParams} params but received none.`),i();else if(Array.isArray(e.params)){const t=e.params;e.method===n.type.method&&2===t.length&&r.is(t[0])?i({token:t[0],value:t[1]}):(void 0!==a&&(a.parameterStructures===s.ParameterStructures.byName&&$.error(`Notification ${e.method} defines parameters by name but received parameters by position`),a.numberOfParams!==e.params.length&&$.error(`Notification ${e.method} defines ${a.numberOfParams} params but received ${t.length} arguments`)),i(...t))}else void 0!==a&&a.parameterStructures===s.ParameterStructures.byPosition&&$.error(`Notification ${e.method} defines parameters by position but received parameters by name`),i(e.params);else I&&I(e.method,e.params)}catch(o){o.message?$.error(`Notification handler '${e.method}' failed with message: ${o.message}`):$.error(`Notification handler '${e.method}' failed unexpectedly.`)}else W.fire(e)}function me(e){if(!e)return void $.error("Received empty message.");$.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(i.string(t.id)||i.number(t.id)){const e=t.id,r=j.get(e);r&&r.reject(new Error("The received response has neither a result nor an error property."))}}function he(e){if(null!=e)switch(K){case p.Verbose:return JSON.stringify(e,null,4);case p.Compact:return JSON.stringify(e);default:return}}function ye(e){if(K!==p.Off&&L)if(z===h.Text){let t;K!==p.Verbose&&K!==p.Compact||!e.params||(t=`Params: ${he(e.params)}\n\n`),L.log(`Sending request '${e.method} - (${e.id})'.`,t)}else be("send-request",e)}function ge(e){if(K!==p.Off&&L)if(z===h.Text){let t;K!==p.Verbose&&K!==p.Compact||(t=e.params?`Params: ${he(e.params)}\n\n`:"No parameters provided.\n\n"),L.log(`Sending notification '${e.method}'.`,t)}else be("send-notification",e)}function Te(e,t,r){if(K!==p.Off&&L)if(z===h.Text){let n;K!==p.Verbose&&K!==p.Compact||(e.error&&e.error.data?n=`Error data: ${he(e.error.data)}\n\n`:e.result?n=`Result: ${he(e.result)}\n\n`:void 0===e.error&&(n="No result returned.\n\n")),L.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-r}ms`,n)}else be("send-response",e)}function ve(e){if(K!==p.Off&&L)if(z===h.Text){let t;K!==p.Verbose&&K!==p.Compact||!e.params||(t=`Params: ${he(e.params)}\n\n`),L.log(`Received request '${e.method} - (${e.id})'.`,t)}else be("receive-request",e)}function $e(e){if(K!==p.Off&&L&&e.method!==T.type.method)if(z===h.Text){let t;K!==p.Verbose&&K!==p.Compact||(t=e.params?`Params: ${he(e.params)}\n\n`:"No parameters provided.\n\n"),L.log(`Received notification '${e.method}'.`,t)}else be("receive-notification",e)}function Re(e,t){if(K!==p.Off&&L)if(z===h.Text){let r;if(K!==p.Verbose&&K!==p.Compact||(e.error&&e.error.data?r=`Error data: ${he(e.error.data)}\n\n`:e.result?r=`Result: ${he(e.result)}\n\n`:void 0===e.error&&(r="No result returned.\n\n")),t){const n=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";L.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${n}`,r)}else L.log(`Received response ${e.id} without active response promise.`,r)}else be("receive-response",e)}function be(e,t){if(!L||K===p.Off)return;const r={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};L.log(r)}function Ee(){if(re())throw new _(v.Closed,"Connection is closed.");if(ne())throw new _(v.Disposed,"Connection is disposed.")}function Ae(){if(te())throw new _(v.AlreadyListening,"Connection is already listening")}function Ce(){if(!te())throw new Error("Call listen() first.")}function Se(e){return void 0===e?null:e}function ke(e){return null===e?void 0:e}function xe(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function we(e,t){switch(e){case s.ParameterStructures.auto:return xe(t)?ke(t):[Se(t)];case s.ParameterStructures.byName:if(!xe(t))throw new Error("Received parameters by name but param is not an object literal.");return ke(t);case s.ParameterStructures.byPosition:return[Se(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function Ne(e,t){let r;const n=e.numberOfParams;switch(n){case 0:r=void 0;break;case 1:r=we(e.parameterStructures,t[0]);break;default:r=[];for(let e=0;e<t.length&&e<n;e++)r.push(Se(t[e]));if(t.length<n)for(let e=t.length;e<n;e++)r.push(null)}return r}Ge(pe,"handleRequest"),Ge(de,"handleResponse"),Ge(fe,"handleNotification"),Ge(me,"handleInvalidMessage"),Ge(he,"stringifyTrace"),Ge(ye,"traceSendingRequest"),Ge(ge,"traceSendingNotification"),Ge(Te,"traceSendingResponse"),Ge(ve,"traceReceivedRequest"),Ge($e,"traceReceivedNotification"),Ge(Re,"traceReceivedResponse"),Ge(be,"logLSPMessage"),Ge(Ee,"throwIfClosedOrDisposed"),Ge(Ae,"throwIfListening"),Ge(Ce,"throwIfNotListening"),Ge(Se,"undefinedToNull"),Ge(ke,"nullToUndefined"),Ge(xe,"isNamedParam"),Ge(we,"computeSingleParam"),Ge(Ne,"computeMessageParams");const Ie={sendNotification:Ge((e,...t)=>{let r,n;if(Ee(),i.string(e)){r=e;const a=t[0];let i=0,o=s.ParameterStructures.auto;s.ParameterStructures.is(a)&&(i=1,o=a);let l=t.length;const u=l-i;switch(u){case 0:n=void 0;break;case 1:n=we(o,t[i]);break;default:if(o===s.ParameterStructures.byName)throw new Error(`Received ${u} parameters for 'by Name' notification parameter structure.`);n=t.slice(i,l).map(e=>Se(e))}}else{const a=t;r=e.method,n=Ne(e,a)}const a={jsonrpc:C,method:r,params:n};return ge(a),f.write(a).catch(e=>{throw $.error("Sending notification failed."),e})},"sendNotification"),onNotification:Ge((e,t)=>{let r;return Ee(),i.func(e)?I=e:t&&(i.string(e)?(r=e,P.set(e,{type:void 0,handler:t})):(r=e.method,P.set(e.method,{type:e,handler:t}))),{dispose:Ge(()=>{void 0!==r?P.delete(r):I=void 0},"dispose")}},"onNotification"),onProgress:Ge((e,t,r)=>{if(O.has(t))throw new Error(`Progress handler for token ${t} already registered`);return O.set(t,r),{dispose:Ge(()=>{O.delete(t)},"dispose")}},"onProgress"),sendProgress:Ge((e,t,r)=>Ie.sendNotification(n.type,{token:t,value:r}),"sendProgress"),onUnhandledProgress:V.event,sendRequest:Ge((e,...t)=>{let r,n,a;if(Ee(),Ce(),i.string(e)){r=e;const i=t[0],o=t[t.length-1];let l=0,c=s.ParameterStructures.auto;s.ParameterStructures.is(i)&&(l=1,c=i);let p=t.length;u.CancellationToken.is(o)&&(p-=1,a=o);const d=p-l;switch(d){case 0:n=void 0;break;case 1:n=we(c,t[l]);break;default:if(c===s.ParameterStructures.byName)throw new Error(`Received ${d} parameters for 'by Name' request parameter structure.`);n=t.slice(l,p).map(e=>Se(e))}}else{const i=t;r=e.method,n=Ne(e,i);const s=e.numberOfParams;a=u.CancellationToken.is(i[s])?i[s]:void 0}const o=R++;let l;a&&(l=a.onCancellationRequested(()=>{const e=Y.sender.sendCancellation(Ie,o);return void 0===e?($.log(`Received no promise from cancellation strategy when cancelling id ${o}`),Promise.resolve()):e.catch(()=>{$.log(`Sending cancellation messages for id ${o} failed`)})}));const c={jsonrpc:C,id:o,method:r,params:n};return ye(c),"function"==typeof Y.sender.enableCancellation&&Y.sender.enableCancellation(c),new Promise(async(e,t)=>{const n=Ge(t=>{e(t),Y.sender.cleanup(o),l?.dispose()},"resolveWithCleanup"),a=Ge(e=>{t(e),Y.sender.cleanup(o),l?.dispose()},"rejectWithCleanup"),i={method:r,timerStart:Date.now(),resolve:n,reject:a};try{await f.write(c),j.set(o,i)}catch(u){throw $.error("Sending request failed."),i.reject(new s.ResponseError(s.ErrorCodes.MessageWriteError,u.message?u.message:"Unknown reason")),u}})},"sendRequest"),onRequest:Ge((e,t)=>{Ee();let r=null;return c.is(e)?(r=void 0,S=e):i.string(e)?(r=null,void 0!==t&&(r=e,w.set(e,{handler:t,type:void 0}))):void 0!==t&&(r=e.method,w.set(e.method,{type:e,handler:t})),{dispose:Ge(()=>{null!==r&&(void 0!==r?w.delete(r):S=void 0)},"dispose")}},"onRequest"),hasPendingResponse:Ge(()=>j.size>0,"hasPendingResponse"),trace:Ge(async(e,t,r)=>{let n=!1,a=h.Text;void 0!==r&&(i.boolean(r)?n=r:(n=r.sendNotification||!1,a=r.traceFormat||h.Text)),K=e,z=a,L=K===p.Off?void 0:t,!n||re()||ne()||await Ie.sendNotification(g.type,{value:p.toString(e)})},"trace"),onError:U.event,onClose:B.event,onUnhandledNotification:W.event,onDispose:H.event,end:Ge(()=>{f.end()},"end"),dispose:Ge(()=>{if(ne())return;q=N.Disposed,H.fire(void 0);const e=new s.ResponseError(s.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const t of j.values())t.reject(e);j=new Map,G=new Map,F=new Set,M=new o.LinkedMap,i.func(f.dispose)&&f.dispose(),i.func(d.dispose)&&d.dispose()},"dispose"),listen:Ge(()=>{Ee(),Ae(),q=N.Listening,d.listen(ce)},"listen"),inspect:Ge(()=>{(0,a.default)().console.log("inspect")},"inspect")};return Ie.onNotification(T.type,e=>{if(K===p.Off||!L)return;const t=K===p.Verbose||K===p.Compact;L.log(e.message,t?e.verbose:void 0)}),Ie.onNotification(n.type,e=>{const t=O.get(e.token);t?t(e.value):V.fire(e)}),Ie}e.ConnectionError=_,function(e){function t(e){const t=e;return t&&i.func(t.cancelUndispatched)}Ge(t,"is"),e.is=t}(b||(e.ConnectionStrategy=b={})),function(e){function t(e){const t=e;return t&&(void 0===t.kind||"id"===t.kind)&&i.func(t.createCancellationTokenSource)&&(void 0===t.dispose||i.func(t.dispose))}Ge(t,"is"),e.is=t}(E||(e.IdCancellationReceiverStrategy=E={})),function(e){function t(e){const t=e;return t&&"request"===t.kind&&i.func(t.createCancellationTokenSource)&&(void 0===t.dispose||i.func(t.dispose))}Ge(t,"is"),e.is=t}(A||(e.RequestCancellationReceiverStrategy=A={})),function(e){function t(e){return E.is(e)||A.is(e)}e.Message=Object.freeze({createCancellationTokenSource:e=>new u.CancellationTokenSource}),Ge(t,"is"),e.is=t}(C||(e.CancellationReceiverStrategy=C={})),function(e){function r(e){const t=e;return t&&i.func(t.sendCancellation)&&i.func(t.cleanup)}e.Message=Object.freeze({sendCancellation:(e,r)=>e.sendNotification(t.type,{id:r}),cleanup(e){}}),Ge(r,"is"),e.is=r}(S||(e.CancellationSenderStrategy=S={})),function(e){function t(e){const t=e;return t&&C.is(t.receiver)&&S.is(t.sender)}e.Message=Object.freeze({receiver:C.Message,sender:S.Message}),Ge(t,"is"),e.is=t}(k||(e.CancellationStrategy=k={})),function(e){function t(e){const t=e;return t&&i.func(t.handleMessage)}Ge(t,"is"),e.is=t}(x||(e.MessageStrategy=x={})),function(e){function t(e){const t=e;return t&&(k.is(t.cancellationStrategy)||b.is(t.connectionStrategy)||x.is(t.messageStrategy))}Ge(t,"is"),e.is=t}(w||(e.ConnectionOptions=w={})),(I=N||(N={}))[I.New=1]="New",I[I.Listening=2]="Listening",I[I.Closed=3]="Closed",I[I.Disposed=4]="Disposed",Ge(P,"createMessageConnection"),e.createMessageConnection=P}}),ct=Ke({"../../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=tt();Object.defineProperty(e,"Message",{enumerable:!0,get:Ge(function(){return t.Message},"get")}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:Ge(function(){return t.RequestType},"get")}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:Ge(function(){return t.RequestType0},"get")}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:Ge(function(){return t.RequestType1},"get")}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:Ge(function(){return t.RequestType2},"get")}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:Ge(function(){return t.RequestType3},"get")}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:Ge(function(){return t.RequestType4},"get")}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:Ge(function(){return t.RequestType5},"get")}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:Ge(function(){return t.RequestType6},"get")}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:Ge(function(){return t.RequestType7},"get")}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:Ge(function(){return t.RequestType8},"get")}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:Ge(function(){return t.RequestType9},"get")}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:Ge(function(){return t.ResponseError},"get")}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:Ge(function(){return t.ErrorCodes},"get")}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:Ge(function(){return t.NotificationType},"get")}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:Ge(function(){return t.NotificationType0},"get")}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:Ge(function(){return t.NotificationType1},"get")}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:Ge(function(){return t.NotificationType2},"get")}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:Ge(function(){return t.NotificationType3},"get")}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:Ge(function(){return t.NotificationType4},"get")}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:Ge(function(){return t.NotificationType5},"get")}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:Ge(function(){return t.NotificationType6},"get")}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:Ge(function(){return t.NotificationType7},"get")}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:Ge(function(){return t.NotificationType8},"get")}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:Ge(function(){return t.NotificationType9},"get")}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:Ge(function(){return t.ParameterStructures},"get")});var r=rt();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:Ge(function(){return r.LinkedMap},"get")}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:Ge(function(){return r.LRUCache},"get")}),Object.defineProperty(e,"Touch",{enumerable:!0,get:Ge(function(){return r.Touch},"get")});var n=nt();Object.defineProperty(e,"Disposable",{enumerable:!0,get:Ge(function(){return n.Disposable},"get")});var a=Je();Object.defineProperty(e,"Event",{enumerable:!0,get:Ge(function(){return a.Event},"get")}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:Ge(function(){return a.Emitter},"get")});var i=et();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:Ge(function(){return i.CancellationTokenSource},"get")}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:Ge(function(){return i.CancellationToken},"get")});var s=at();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:Ge(function(){return s.SharedArraySenderStrategy},"get")}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:Ge(function(){return s.SharedArrayReceiverStrategy},"get")});var o=st();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:Ge(function(){return o.MessageReader},"get")}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:Ge(function(){return o.AbstractMessageReader},"get")}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:Ge(function(){return o.ReadableStreamMessageReader},"get")});var l=ot();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:Ge(function(){return l.MessageWriter},"get")}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:Ge(function(){return l.AbstractMessageWriter},"get")}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:Ge(function(){return l.WriteableStreamMessageWriter},"get")});var u=lt();Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:Ge(function(){return u.AbstractMessageBuffer},"get")});var c=ut();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:Ge(function(){return c.ConnectionStrategy},"get")}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:Ge(function(){return c.ConnectionOptions},"get")}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:Ge(function(){return c.NullLogger},"get")}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:Ge(function(){return c.createMessageConnection},"get")}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:Ge(function(){return c.ProgressToken},"get")}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:Ge(function(){return c.ProgressType},"get")}),Object.defineProperty(e,"Trace",{enumerable:!0,get:Ge(function(){return c.Trace},"get")}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:Ge(function(){return c.TraceValues},"get")}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:Ge(function(){return c.TraceFormat},"get")}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:Ge(function(){return c.SetTraceNotification},"get")}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:Ge(function(){return c.LogTraceNotification},"get")}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:Ge(function(){return c.ConnectionErrors},"get")}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:Ge(function(){return c.ConnectionError},"get")}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:Ge(function(){return c.CancellationReceiverStrategy},"get")}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:Ge(function(){return c.CancellationSenderStrategy},"get")}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:Ge(function(){return c.CancellationStrategy},"get")}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:Ge(function(){return c.MessageStrategy},"get")});var p=Ze();e.RAL=p.default}}),pt=Ke({"../../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=ct(),r=class e extends t.AbstractMessageBuffer{static{Ge(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{Ge(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)}},a=class{static{Ge(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 new 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()}},i=new TextEncoder,s=Object.freeze({messageBuffer:Object.freeze({create:Ge(e=>new r(e),"create")}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:Ge((e,t)=>{if("utf-8"!==t.charset)throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(i.encode(JSON.stringify(e,void 0,0)))},"encode")}),decoder:Object.freeze({name:"application/json",decode:Ge((e,t)=>{if(!(e instanceof Uint8Array))throw new 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:Ge(e=>new n(e),"asReadableStream"),asWritableStream:Ge(e=>new a(e),"asWritableStream")}),console:console,timer:Object.freeze({setTimeout(e,t,...r){const n=setTimeout(e,t,...r);return{dispose:Ge(()=>clearTimeout(n),"dispose")}},setImmediate(e,...t){const r=setTimeout(e,0,...t);return{dispose:Ge(()=>clearTimeout(r),"dispose")}},setInterval(e,t,...r){const n=setInterval(e,t,...r);return{dispose:Ge(()=>clearInterval(n),"dispose")}}})});function o(){return s}Ge(o,"RIL"),function(e){function r(){t.RAL.install(s)}Ge(r,"install"),e.install=r}(o||(o={})),e.default=o}}),dt=Ke({"../../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 a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:Ge(function(){return t[r]},"get")}),Object.defineProperty(e,n,a)}: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,pt().default.install();var n=ct();r(ct(),e);var a=class extends n.AbstractMessageReader{static{Ge(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.BrowserMessageReader=a;var i=class extends n.AbstractMessageWriter{static{Ge(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(){}};function s(e,t,r,a){return void 0===r&&(r=n.NullLogger),n.ConnectionStrategy.is(a)&&(a={connectionStrategy:a}),(0,n.createMessageConnection)(e,t,r,a)}e.BrowserMessageWriter=i,Ge(s,"createMessageConnection"),e.createMessageConnection=s}}),ft=Ke({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(e,t){t.exports=dt()}}),mt=Ke({"../../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=dt();(r=t||(e.MessageDirection=t={})).clientToServer="clientToServer",r.serverToClient="serverToClient",r.both="both";var a=class{static{Ge(this,"RegistrationType")}constructor(e){this.method=e}};e.RegistrationType=a;var i=class extends n.RequestType0{static{Ge(this,"ProtocolRequestType0")}constructor(e){super(e)}};e.ProtocolRequestType0=i;var s=class extends n.RequestType{static{Ge(this,"ProtocolRequestType")}constructor(e){super(e,n.ParameterStructures.byName)}};e.ProtocolRequestType=s;var o=class extends n.NotificationType0{static{Ge(this,"ProtocolNotificationType0")}constructor(e){super(e)}};e.ProtocolNotificationType0=o;var l=class extends n.NotificationType{static{Ge(this,"ProtocolNotificationType")}constructor(e){super(e,n.ParameterStructures.byName)}};e.ProtocolNotificationType=l}}),ht=Ke({"../../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 a(e){return e instanceof Error}function i(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,Ge(t,"boolean"),e.boolean=t,Ge(r,"string"),e.string=r,Ge(n,"number"),e.number=n,Ge(a,"error"),e.error=a,Ge(i,"func"),e.func=i,Ge(s,"array"),e.array=s,Ge(o,"stringArray"),e.stringArray=o,Ge(l,"typedArray"),e.typedArray=l,Ge(u,"objectLiteral"),e.objectLiteral=u}}),yt=Ke({"../../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=mt();(r=t||(e.ImplementationRequest=t={})).method="textDocument/implementation",r.messageDirection=n.MessageDirection.clientToServer,r.type=new n.ProtocolRequestType(r.method)}}),gt=Ke({"../../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=mt();(r=t||(e.TypeDefinitionRequest=t={})).method="textDocument/typeDefinition",r.messageDirection=n.MessageDirection.clientToServer,r.type=new n.ProtocolRequestType(r.method)}}),Tt=Ke({"../../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,a,i=mt();(r=t||(e.WorkspaceFoldersRequest=t={})).method="workspace/workspaceFolders",r.messageDirection=i.MessageDirection.serverToClient,r.type=new i.ProtocolRequestType0(r.method),(a=n||(e.DidChangeWorkspaceFoldersNotification=n={})).method="workspace/didChangeWorkspaceFolders",a.messageDirection=i.MessageDirection.clientToServer,a.type=new i.ProtocolNotificationType(a.method)}}),vt=Ke({"../../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=mt();(r=t||(e.ConfigurationRequest=t={})).method="workspace/configuration",r.messageDirection=n.MessageDirection.serverToClient,r.type=new n.ProtocolRequestType(r.method)}}),$t=Ke({"../../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,a,i=mt();(r=t||(e.DocumentColorRequest=t={})).method="textDocument/documentColor",r.messageDirection=i.MessageDirection.clientToServer,r.type=new i.ProtocolRequestType(r.method),(a=n||(e.ColorPresentationRequest=n={})).method="textDocument/colorPresentation",a.messageDirection=i.MessageDirection.clientToServer,a.type=new i.ProtocolRequestType(a.method)}}),Rt=Ke({"../../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,a,i=mt();(r=t||(e.FoldingRangeRequest=t={})).method="textDocument/foldingRange",r.messageDirection=i.MessageDirection.clientToServer,r.type=new i.ProtocolRequestType(r.method),(a=n||(e.FoldingRangeRefreshRequest=n={})).method="workspace/foldingRange/refresh",a.messageDirection=i.MessageDirection.serverToClient,a.type=new i.ProtocolRequestType0(a.method)}}),bt=Ke({"../../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=mt();(r=t||(e.DeclarationRequest=t={})).method="textDocument/declaration",r.messageDirection=n.MessageDirection.clientToServer,r.type=new n.ProtocolRequestType(r.method)}}),Et=Ke({"../../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=mt();(r=t||(e.SelectionRangeRequest=t={})).method="textDocument/selectionRange",r.messageDirection=n.MessageDirection.clientToServer,r.type=new n.ProtocolRequestType(r.method)}}),At=Ke({"../../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,a,i,s=dt(),o=mt();!function(e){function t(t){return t===e.type}e.type=new s.ProgressType,Ge(t,"is"),e.is=t}(t||(e.WorkDoneProgress=t={})),(n=r||(e.WorkDoneProgressCreateRequest=r={})).method="window/workDoneProgress/create",n.messageDirection=o.MessageDirection.serverToClient,n.type=new o.ProtocolRequestType(n.method),(i=a||(e.WorkDoneProgressCancelNotification=a={})).method="window/workDoneProgress/cancel",i.messageDirection=o.MessageDirection.clientToServer,i.type=new o.ProtocolNotificationType(i.method)}}),Ct=Ke({"../../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,a,i,s,o=mt();(r=t||(e.CallHierarchyPrepareRequest=t={})).method="textDocument/prepareCallHierarchy",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolRequestType(r.method),(a=n||(e.CallHierarchyIncomingCallsRequest=n={})).method="callHierarchy/incomingCalls",a.messageDirection=o.MessageDirection.clientToServer,a.type=new o.ProtocolRequestType(a.method),(s=i||(e.CallHierarchyOutgoingCallsRequest=i={})).method="callHierarchy/outgoingCalls",s.messageDirection=o.MessageDirection.clientToServer,s.type=new o.ProtocolRequestType(s.method)}}),St=Ke({"../../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,a,i,s,o,l,u,c,p,d=mt();(t||(e.TokenFormat=t={})).Relative="relative",(n=r||(e.SemanticTokensRegistrationType=r={})).method="textDocument/semanticTokens",n.type=new d.RegistrationType(n.method),(i=a||(e.SemanticTokensRequest=a={})).method="textDocument/semanticTokens/full",i.messageDirection=d.MessageDirection.clientToServer,i.type=new d.ProtocolRequestType(i.method),i.registrationMethod=r.method,(o=s||(e.SemanticTokensDeltaRequest=s={})).method="textDocument/semanticTokens/full/delta",o.messageDirection=d.MessageDirection.clientToServer,o.type=new d.ProtocolRequestType(o.method),o.registrationMethod=r.method,(u=l||(e.SemanticTokensRangeRequest=l={})).method="textDocument/semanticTokens/range",u.messageDirection=d.MessageDirection.clientToServer,u.type=new d.ProtocolRequestType(u.method),u.registrationMethod=r.method,(p=c||(e.SemanticTokensRefreshRequest=c={})).method="workspace/semanticTokens/refresh",p.messageDirection=d.MessageDirection.serverToClient,p.type=new d.ProtocolRequestType0(p.method)}}),kt=Ke({"../../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=mt();(r=t||(e.ShowDocumentRequest=t={})).method="window/showDocument",r.messageDirection=n.MessageDirection.serverToClient,r.type=new n.ProtocolRequestType(r.method)}}),xt=Ke({"../../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=mt();(r=t||(e.LinkedEditingRangeRequest=t={})).method="textDocument/linkedEditingRange",r.messageDirection=n.MessageDirection.clientToServer,r.type=new n.ProtocolRequestType(r.method)}}),wt=Ke({"../../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,a,i,s,o,l,u,c,p,d,f,m,h=mt();(r=t||(e.FileOperationPatternKind=t={})).file="file",r.folder="folder",(a=n||(e.WillCreateFilesRequest=n={})).method="workspace/willCreateFiles",a.messageDirection=h.MessageDirection.clientToServer,a.type=new h.ProtocolRequestType(a.method),(s=i||(e.DidCreateFilesNotification=i={})).method="workspace/didCreateFiles",s.messageDirection=h.MessageDirection.clientToServer,s.type=new h.ProtocolNotificationType(s.method),(l=o||(e.WillRenameFilesRequest=o={})).method="workspace/willRenameFiles",l.messageDirection=h.MessageDirection.clientToServer,l.type=new h.ProtocolRequestType(l.method),(c=u||(e.DidRenameFilesNotification=u={})).method="workspace/didRenameFiles",c.messageDirection=h.MessageDirection.clientToServer,c.type=new h.ProtocolNotificationType(c.method),(d=p||(e.DidDeleteFilesNotification=p={})).method="workspace/didDeleteFiles",d.messageDirection=h.MessageDirection.clientToServer,d.type=new h.ProtocolNotificationType(d.method),(m=f||(e.WillDeleteFilesRequest=f={})).method="workspace/willDeleteFiles",m.messageDirection=h.MessageDirection.clientToServer,m.type=new h.ProtocolRequestType(m.method)}}),Nt=Ke({"../../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,a,i,s,o=mt();(r=t||(e.UniquenessLevel=t={})).document="document",r.project="project",r.group="group",r.scheme="scheme",r.global="global",(a=n||(e.MonikerKind=n={})).$import="import",a.$export="export",a.local="local",(s=i||(e.MonikerRequest=i={})).method="textDocument/moniker",s.messageDirection=o.MessageDirection.clientToServer,s.type=new o.ProtocolRequestType(s.method)}}),It=Ke({"../../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,a,i,s,o=mt();(r=t||(e.TypeHierarchyPrepareRequest=t={})).method="textDocument/prepareTypeHierarchy",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolRequestType(r.method),(a=n||(e.TypeHierarchySupertypesRequest=n={})).method="typeHierarchy/supertypes",a.messageDirection=o.MessageDirection.clientToServer,a.type=new o.ProtocolRequestType(a.method),(s=i||(e.TypeHierarchySubtypesRequest=i={})).method="typeHierarchy/subtypes",s.messageDirection=o.MessageDirection.clientToServer,s.type=new o.ProtocolRequestType(s.method)}}),_t=Ke({"../../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,a,i=mt();(r=t||(e.InlineValueRequest=t={})).method="textDocument/inlineValue",r.messageDirection=i.MessageDirection.clientToServer,r.type=new i.ProtocolRequestType(r.method),(a=n||(e.InlineValueRefreshRequest=n={})).method="workspace/inlineValue/refresh",a.messageDirection=i.MessageDirection.serverToClient,a.type=new i.ProtocolRequestType0(a.method)}}),Pt=Ke({"../../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,a,i,s,o=mt();(r=t||(e.InlayHintRequest=t={})).method="textDocument/inlayHint",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolRequestType(r.method),(a=n||(e.InlayHintResolveRequest=n={})).method="inlayHint/resolve",a.messageDirection=o.MessageDirection.clientToServer,a.type=new o.ProtocolRequestType(a.method),(s=i||(e.InlayHintRefreshRequest=i={})).method="workspace/inlayHint/refresh",s.messageDirection=o.MessageDirection.serverToClient,s.type=new o.ProtocolRequestType0(s.method)}}),Ot=Ke({"../../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,a,i,s,o,l,u,c=dt(),p=ht(),d=mt();!function(e){function t(e){const t=e;return t&&p.boolean(t.retriggerRequest)}Ge(t,"is"),e.is=t}(t||(e.DiagnosticServerCancellationData=t={})),(n=r||(e.DocumentDiagnosticReportKind=r={})).Full="full",n.Unchanged="unchanged",(i=a||(e.DocumentDiagnosticRequest=a={})).method="textDocument/diagnostic",i.messageDirection=d.MessageDirection.clientToServer,i.type=new d.ProtocolRequestType(i.method),i.partialResult=new c.ProgressType,(o=s||(e.WorkspaceDiagnosticRequest=s={})).method="workspace/diagnostic",o.messageDirection=d.MessageDirection.clientToServer,o.type=new d.ProtocolRequestType(o.method),o.partialResult=new c.ProgressType,(u=l||(e.DiagnosticRefreshRequest=l={})).method="workspace/diagnostic/refresh",u.messageDirection=d.MessageDirection.serverToClient,u.type=new d.ProtocolRequestType0(u.method)}}),Dt=Ke({"../../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,a,i,s,o,l,u,c,p,d,f,m,h,y=(Qe(),We(Ve)),g=ht(),T=mt();!function(e){function t(e){return 1===e||2===e}e.Markup=1,e.Code=2,Ge(t,"is"),e.is=t}(t||(e.NotebookCellKind=t={})),function(e){function t(e,t){const r={executionOrder:e};return!0!==t&&!1!==t||(r.success=t),r}function r(e){const t=e;return g.objectLiteral(t)&&y.uinteger.is(t.executionOrder)&&(void 0===t.success||g.boolean(t.success))}function n(e,t){return e===t||null!=e&&null!=t&&(e.executionOrder===t.executionOrder&&e.success===t.success)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r,Ge(n,"equals"),e.equals=n}(r||(e.ExecutionSummary=r={})),function(e){function n(e,t){return{kind:e,document:t}}function a(e){const r=e;return g.objectLiteral(r)&&t.is(r.kind)&&y.DocumentUri.is(r.document)&&(void 0===r.metadata||g.objectLiteral(r.metadata))}function i(e,t){const n=new Set;return e.document!==t.document&&n.add("document"),e.kind!==t.kind&&n.add("kind"),e.executionSummary!==t.executionSummary&&n.add("executionSummary"),void 0===e.metadata&&void 0===t.metadata||s(e.metadata,t.metadata)||n.add("metadata"),void 0===e.executionSummary&&void 0===t.executionSummary||r.equals(e.executionSummary,t.executionSummary)||n.add("executionSummary"),n}function s(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;const 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(!s(e[r],t[r]))return!1}if(g.objectLiteral(e)&&g.objectLiteral(t)){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;if(r.sort(),n.sort(),!s(r,n))return!1;for(let a=0;a<r.length;a++){const n=r[a];if(!s(e[n],t[n]))return!1}}return!0}Ge(n,"create"),e.create=n,Ge(a,"is"),e.is=a,Ge(i,"diff"),e.diff=i,Ge(s,"equalsMetadata")}(n||(e.NotebookCell=n={})),function(e){function t(e,t,r,n){return{uri:e,notebookType:t,version:r,cells:n}}function r(e){const t=e;return g.objectLiteral(t)&&g.string(t.uri)&&y.integer.is(t.version)&&g.typedArray(t.cells,n.is)}Ge(t,"create"),e.create=t,Ge(r,"is"),e.is=r}(a||(e.NotebookDocument=a={})),(s=i||(e.NotebookDocumentSyncRegistrationType=i={})).method="notebookDocument/sync",s.messageDirection=T.MessageDirection.clientToServer,s.type=new T.RegistrationType(s.method),(l=o||(e.DidOpenNotebookDocumentNotification=o={})).method="notebookDocument/didOpen",l.messageDirection=T.MessageDirection.clientToServer,l.type=new T.ProtocolNotificationType(l.method),l.registrationMethod=i.method,function(e){function t(e){const t=e;return g.objectLiteral(t)&&y.uinteger.is(t.start)&&y.uinteger.is(t.deleteCount)&&(void 0===t.cells||g.typedArray(t.cells,n.is))}function r(e,t,r){const n={start:e,deleteCount:t};return void 0!==r&&(n.cells=r),n}Ge(t,"is"),e.is=t,Ge(r,"create"),e.create=r}(u||(e.NotebookCellArrayChange=u={})),(p=c||(e.DidChangeNotebookDocumentNotification=c={})).method="notebookDocument/didChange",p.messageDirection=T.MessageDirection.clientToServer,p.type=new T.ProtocolNotificationType(p.method),p.registrationMethod=i.method,(f=d||(e.DidSaveNotebookDocumentNotification=d={})).method="notebookDocument/didSave",f.messageDirection=T.MessageDirection.clientToServer,f.type=new T.ProtocolNotificationType(f.method),f.registrationMethod=i.method,(h=m||(e.DidCloseNotebookDocumentNotification=m={})).method="notebookDocument/didClose",h.messageDirection=T.MessageDirection.clientToServer,h.type=new T.ProtocolNotificationType(h.method),h.registrationMethod=i.method}}),Lt=Ke({"../../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=mt();(r=t||(e.InlineCompletionRequest=t={})).method="textDocument/inlineCompletion",r.messageDirection=n.MessageDirection.clientToServer,r.type=new n.ProtocolRequestType(r.method)}}),Mt=Ke({"../../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=mt(),r=(Qe(),We(Ve)),n=ht(),a=yt();Object.defineProperty(e,"ImplementationRequest",{enumerable:!0,get:Ge(function(){return a.ImplementationRequest},"get")});var i=gt();Object.defineProperty(e,"TypeDefinitionRequest",{enumerable:!0,get:Ge(function(){return i.TypeDefinitionRequest},"get")});var s=Tt();Object.defineProperty(e,"WorkspaceFoldersRequest",{enumerable:!0,get:Ge(function(){return s.WorkspaceFoldersRequest},"get")}),Object.defineProperty(e,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:Ge(function(){return s.DidChangeWorkspaceFoldersNotification},"get")});var o=vt();Object.defineProperty(e,"ConfigurationRequest",{enumerable:!0,get:Ge(function(){return o.ConfigurationRequest},"get")});var l=$t();Object.defineProperty(e,"DocumentColorRequest",{enumerable:!0,get:Ge(function(){return l.DocumentColorRequest},"get")}),Object.defineProperty(e,"ColorPresentationRequest",{enumerable:!0,get:Ge(function(){return l.ColorPresentationRequest},"get")});var u=Rt();Object.defineProperty(e,"FoldingRangeRequest",{enumerable:!0,get:Ge(function(){return u.FoldingRangeRequest},"get")}),Object.defineProperty(e,"FoldingRangeRefreshRequest",{enumerable:!0,get:Ge(function(){return u.FoldingRangeRefreshRequest},"get")});var c=bt();Object.defineProperty(e,"DeclarationRequest",{enumerable:!0,get:Ge(function(){return c.DeclarationRequest},"get")});var p=Et();Object.defineProperty(e,"SelectionRangeRequest",{enumerable:!0,get:Ge(function(){return p.SelectionRangeRequest},"get")});var d=At();Object.defineProperty(e,"WorkDoneProgress",{enumerable:!0,get:Ge(function(){return d.WorkDoneProgress},"get")}),Object.defineProperty(e,"WorkDoneProgressCreateRequest",{enumerable:!0,get:Ge(function(){return d.WorkDoneProgressCreateRequest},"get")}),Object.defineProperty(e,"WorkDoneProgressCancelNotification",{enumerable:!0,get:Ge(function(){return d.WorkDoneProgressCancelNotification},"get")});var f=Ct();Object.defineProperty(e,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:Ge(function(){return f.CallHierarchyIncomingCallsRequest},"get")}),Object.defineProperty(e,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:Ge(function(){return f.CallHierarchyOutgoingCallsRequest},"get")}),Object.defineProperty(e,"CallHierarchyPrepareRequest",{enumerable:!0,get:Ge(function(){return f.CallHierarchyPrepareRequest},"get")});var m=St();Object.defineProperty(e,"TokenFormat",{enumerable:!0,get:Ge(function(){return m.TokenFormat},"get")}),Object.defineProperty(e,"SemanticTokensRequest",{enumerable:!0,get:Ge(function(){return m.SemanticTokensRequest},"get")}),Object.defineProperty(e,"SemanticTokensDeltaRequest",{enumerable:!0,get:Ge(function(){return m.SemanticTokensDeltaRequest},"get")}),Object.defineProperty(e,"SemanticTokensRangeRequest",{enumerable:!0,get:Ge(function(){return m.SemanticTokensRangeRequest},"get")}),Object.defineProperty(e,"SemanticTokensRefreshRequest",{enumerable:!0,get:Ge(function(){return m.SemanticTokensRefreshRequest},"get")}),Object.defineProperty(e,"SemanticTokensRegistrationType",{enumerable:!0,get:Ge(function(){return m.SemanticTokensRegistrationType},"get")});var h=kt();Object.defineProperty(e,"ShowDocumentRequest",{enumerable:!0,get:Ge(function(){return h.ShowDocumentRequest},"get")});var y=xt();Object.defineProperty(e,"LinkedEditingRangeRequest",{enumerable:!0,get:Ge(function(){return y.LinkedEditingRangeRequest},"get")});var g=wt();Object.defineProperty(e,"FileOperationPatternKind",{enumerable:!0,get:Ge(function(){return g.FileOperationPatternKind},"get")}),Object.defineProperty(e,"DidCreateFilesNotification",{enumerable:!0,get:Ge(function(){return g.DidCreateFilesNotification},"get")}),Object.defineProperty(e,"WillCreateFilesRequest",{enumerable:!0,get:Ge(function(){return g.WillCreateFilesRequest},"get")}),Object.defineProperty(e,"DidRenameFilesNotification",{enumerable:!0,get:Ge(function(){return g.DidRenameFilesNotification},"get")}),Object.defineProperty(e,"WillRenameFilesRequest",{enumerable:!0,get:Ge(function(){return g.WillRenameFilesRequest},"get")}),Object.defineProperty(e,"DidDeleteFilesNotification",{enumerable:!0,get:Ge(function(){return g.DidDeleteFilesNotification},"get")}),Object.defineProperty(e,"WillDeleteFilesRequest",{enumerable:!0,get:Ge(function(){return g.WillDeleteFilesRequest},"get")});var T=Nt();Object.defineProperty(e,"UniquenessLevel",{enumerable:!0,get:Ge(function(){return T.UniquenessLevel},"get")}),Object.defineProperty(e,"MonikerKind",{enumerable:!0,get:Ge(function(){return T.MonikerKind},"get")}),Object.defineProperty(e,"MonikerRequest",{enumerable:!0,get:Ge(function(){return T.MonikerRequest},"get")});var v=It();Object.defineProperty(e,"TypeHierarchyPrepareRequest",{enumerable:!0,get:Ge(function(){return v.TypeHierarchyPrepareRequest},"get")}),Object.defineProperty(e,"TypeHierarchySubtypesRequest",{enumerable:!0,get:Ge(function(){return v.TypeHierarchySubtypesRequest},"get")}),Object.defineProperty(e,"TypeHierarchySupertypesRequest",{enumerable:!0,get:Ge(function(){return v.TypeHierarchySupertypesRequest},"get")});var $=_t();Object.defineProperty(e,"InlineValueRequest",{enumerable:!0,get:Ge(function(){return $.InlineValueRequest},"get")}),Object.defineProperty(e,"InlineValueRefreshRequest",{enumerable:!0,get:Ge(function(){return $.InlineValueRefreshRequest},"get")});var R=Pt();Object.defineProperty(e,"InlayHintRequest",{enumerable:!0,get:Ge(function(){return R.InlayHintRequest},"get")}),Object.defineProperty(e,"InlayHintResolveRequest",{enumerable:!0,get:Ge(function(){return R.InlayHintResolveRequest},"get")}),Object.defineProperty(e,"InlayHintRefreshRequest",{enumerable:!0,get:Ge(function(){return R.InlayHintRefreshRequest},"get")});var b=Ot();Object.defineProperty(e,"DiagnosticServerCancellationData",{enumerable:!0,get:Ge(function(){return b.DiagnosticServerCancellationData},"get")}),Object.defineProperty(e,"DocumentDiagnosticReportKind",{enumerable:!0,get:Ge(function(){return b.DocumentDiagnosticReportKind},"get")}),Object.defineProperty(e,"DocumentDiagnosticRequest",{enumerable:!0,get:Ge(function(){return b.DocumentDiagnosticRequest},"get")}),Object.defineProperty(e,"WorkspaceDiagnosticRequest",{enumerable:!0,get:Ge(function(){return b.WorkspaceDiagnosticRequest},"get")}),Object.defineProperty(e,"DiagnosticRefreshRequest",{enumerable:!0,get:Ge(function(){return b.DiagnosticRefreshRequest},"get")});var E=Dt();Object.defineProperty(e,"NotebookCellKind",{enumerable:!0,get:Ge(function(){return E.NotebookCellKind},"get")}),Object.defineProperty(e,"ExecutionSummary",{enumerable:!0,get:Ge(function(){return E.ExecutionSummary},"get")}),Object.defineProperty(e,"NotebookCell",{enumerable:!0,get:Ge(function(){return E.NotebookCell},"get")}),Object.defineProperty(e,"NotebookDocument",{enumerable:!0,get:Ge(function(){return E.NotebookDocument},"get")}),Object.defineProperty(e,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:Ge(function(){return E.NotebookDocumentSyncRegistrationType},"get")}),Object.defineProperty(e,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:Ge(function(){return E.DidOpenNotebookDocumentNotification},"get")}),Object.defineProperty(e,"NotebookCellArrayChange",{enumerable:!0,get:Ge(function(){return E.NotebookCellArrayChange},"get")}),Object.defineProperty(e,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:Ge(function(){return E.DidChangeNotebookDocumentNotification},"get")}),Object.defineProperty(e,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:Ge(function(){return E.DidSaveNotebookDocumentNotification},"get")}),Object.defineProperty(e,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:Ge(function(){return E.DidCloseNotebookDocumentNotification},"get")});var A,C,S,k,x,w,N,I,_,P,O,D,L,M,j,F,G,K,z,q,U,B,W,V,H,Y,Q,Z,X,J,ee,te,re,ne,ae,ie,se,oe,le,ue,ce,pe,de,fe,me,he,ye,ge,Te,ve,$e,Re,be,Ee,Ae,Ce,Se,ke,xe,we,Ne,Ie,_e,Pe,Oe,De,Le,Me,je,Fe,Ke,ze,qe,Ue,Be,He,Ye,Ze,Xe,Je,et,tt,rt,nt,at,it,st,ot,lt,ut,ct,pt,dt,ft,Mt,jt,Ft,Gt,Kt,zt,qt,Ut,Bt,Wt,Vt,Ht,Yt,Qt,Zt,Xt,Jt,er,tr,rr,nr,ar,ir,sr,or,lr=Lt();Object.defineProperty(e,"InlineCompletionRequest",{enumerable:!0,get:Ge(function(){return lr.InlineCompletionRequest},"get")}),function(e){function t(e){const t=e;return n.string(t)||n.string(t.language)||n.string(t.scheme)||n.string(t.pattern)}Ge(t,"is"),e.is=t}(A||(e.TextDocumentFilter=A={})),function(e){function t(e){const t=e;return n.objectLiteral(t)&&(n.string(t.notebookType)||n.string(t.scheme)||n.string(t.pattern))}Ge(t,"is"),e.is=t}(C||(e.NotebookDocumentFilter=C={})),function(e){function t(e){const t=e;return n.objectLiteral(t)&&(n.string(t.notebook)||C.is(t.notebook))&&(void 0===t.language||n.string(t.language))}Ge(t,"is"),e.is=t}(S||(e.NotebookCellTextDocumentFilter=S={})),function(e){function t(e){if(!Array.isArray(e))return!1;for(let t of e)if(!n.string(t)&&!A.is(t)&&!S.is(t))return!1;return!0}Ge(t,"is"),e.is=t}(k||(e.DocumentSelector=k={})),(w=x||(e.RegistrationRequest=x={})).method="client/registerCapability",w.messageDirection=t.MessageDirection.serverToClient,w.type=new t.ProtocolRequestType(w.method),(I=N||(e.UnregistrationRequest=N={})).method="client/unregisterCapability",I.messageDirection=t.MessageDirection.serverToClient,I.type=new t.ProtocolRequestType(I.method),(P=_||(e.ResourceOperationKind=_={})).Create="create",P.Rename="rename",P.Delete="delete",(D=O||(e.FailureHandlingKind=O={})).Abort="abort",D.Transactional="transactional",D.TextOnlyTransactional="textOnlyTransactional",D.Undo="undo",(M=L||(e.PositionEncodingKind=L={})).UTF8="utf-8",M.UTF16="utf-16",M.UTF32="utf-32",function(e){function t(e){const t=e;return t&&n.string(t.id)&&t.id.length>0}Ge(t,"hasId"),e.hasId=t}(j||(e.StaticRegistrationOptions=j={})),function(e){function t(e){const t=e;return t&&(null===t.documentSelector||k.is(t.documentSelector))}Ge(t,"is"),e.is=t}(F||(e.TextDocumentRegistrationOptions=F={})),function(e){function t(e){const t=e;return n.objectLiteral(t)&&(void 0===t.workDoneProgress||n.boolean(t.workDoneProgress))}function r(e){const t=e;return t&&n.boolean(t.workDoneProgress)}Ge(t,"is"),e.is=t,Ge(r,"hasWorkDoneProgress"),e.hasWorkDoneProgress=r}(G||(e.WorkDoneProgressOptions=G={})),(z=K||(e.InitializeRequest=K={})).method="initialize",z.messageDirection=t.MessageDirection.clientToServer,z.type=new t.ProtocolRequestType(z.method),(q||(e.InitializeErrorCodes=q={})).unknownProtocolVersion=1,(B=U||(e.InitializedNotification=U={})).method="initialized",B.messageDirection=t.MessageDirection.clientToServer,B.type=new t.ProtocolNotificationType(B.method),(V=W||(e.ShutdownRequest=W={})).method="shutdown",V.messageDirection=t.MessageDirection.clientToServer,V.type=new t.ProtocolRequestType0(V.method),(Y=H||(e.ExitNotification=H={})).method="exit",Y.messageDirection=t.MessageDirection.clientToServer,Y.type=new t.ProtocolNotificationType0(Y.method),(Z=Q||(e.DidChangeConfigurationNotification=Q={})).method="workspace/didChangeConfiguration",Z.messageDirection=t.MessageDirection.clientToServer,Z.type=new t.ProtocolNotificationType(Z.method),(J=X||(e.MessageType=X={})).Error=1,J.Warning=2,J.Info=3,J.Log=4,J.Debug=5,(te=ee||(e.ShowMessageNotification=ee={})).method="window/showMessage",te.messageDirection=t.MessageDirection.serverToClient,te.type=new t.ProtocolNotificationType(te.method),(ne=re||(e.ShowMessageRequest=re={})).method="window/showMessageRequest",ne.messageDirection=t.MessageDirection.serverToClient,ne.type=new t.ProtocolRequestType(ne.method),(ie=ae||(e.LogMessageNotification=ae={})).method="window/logMessage",ie.messageDirection=t.MessageDirection.serverToClient,ie.type=new t.ProtocolNotificationType(ie.method),(oe=se||(e.TelemetryEventNotification=se={})).method="telemetry/event",oe.messageDirection=t.MessageDirection.serverToClient,oe.type=new t.ProtocolNotificationType(oe.method),(ue=le||(e.TextDocumentSyncKind=le={})).None=0,ue.Full=1,ue.Incremental=2,(pe=ce||(e.DidOpenTextDocumentNotification=ce={})).method="textDocument/didOpen",pe.messageDirection=t.MessageDirection.clientToServer,pe.type=new t.ProtocolNotificationType(pe.method),function(e){function t(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)}function r(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}Ge(t,"isIncremental"),e.isIncremental=t,Ge(r,"isFull"),e.isFull=r}(de||(e.TextDocumentContentChangeEvent=de={})),(me=fe||(e.DidChangeTextDocumentNotification=fe={})).method="textDocument/didChange",me.messageDirection=t.MessageDirection.clientToServer,me.type=new t.ProtocolNotificationType(me.method),(ye=he||(e.DidCloseTextDocumentNotification=he={})).method="textDocument/didClose",ye.messageDirection=t.MessageDirection.clientToServer,ye.type=new t.ProtocolNotificationType(ye.method),(Te=ge||(e.DidSaveTextDocumentNotification=ge={})).method="textDocument/didSave",Te.messageDirection=t.MessageDirection.clientToServer,Te.type=new t.ProtocolNotificationType(Te.method),($e=ve||(e.TextDocumentSaveReason=ve={})).Manual=1,$e.AfterDelay=2,$e.FocusOut=3,(be=Re||(e.WillSaveTextDocumentNotification=Re={})).method="textDocument/willSave",be.messageDirection=t.MessageDirection.clientToServer,be.type=new t.ProtocolNotificationType(be.method),(Ae=Ee||(e.WillSaveTextDocumentWaitUntilRequest=Ee={})).method="textDocument/willSaveWaitUntil",Ae.messageDirection=t.MessageDirection.clientToServer,Ae.type=new t.ProtocolRequestType(Ae.method),(Se=Ce||(e.DidChangeWatchedFilesNotification=Ce={})).method="workspace/didChangeWatchedFiles",Se.messageDirection=t.MessageDirection.clientToServer,Se.type=new t.ProtocolNotificationType(Se.method),(xe=ke||(e.FileChangeType=ke={})).Created=1,xe.Changed=2,xe.Deleted=3,function(e){function t(e){const t=e;return n.objectLiteral(t)&&(r.URI.is(t.baseUri)||r.WorkspaceFolder.is(t.baseUri))&&n.string(t.pattern)}Ge(t,"is"),e.is=t}(we||(e.RelativePattern=we={})),(Ie=Ne||(e.WatchKind=Ne={})).Create=1,Ie.Change=2,Ie.Delete=4,(Pe=_e||(e.PublishDiagnosticsNotification=_e={})).method="textDocument/publishDiagnostics",Pe.messageDirection=t.MessageDirection.serverToClient,Pe.type=new t.ProtocolNotificationType(Pe.method),(De=Oe||(e.CompletionTriggerKind=Oe={})).Invoked=1,De.TriggerCharacter=2,De.TriggerForIncompleteCompletions=3,(Me=Le||(e.CompletionRequest=Le={})).method="textDocument/completion",Me.messageDirection=t.MessageDirection.clientToServer,Me.type=new t.ProtocolRequestType(Me.method),(Fe=je||(e.CompletionResolveRequest=je={})).method="completionItem/resolve",Fe.messageDirection=t.MessageDirection.clientToServer,Fe.type=new t.ProtocolRequestType(Fe.method),(ze=Ke||(e.HoverRequest=Ke={})).method="textDocument/hover",ze.messageDirection=t.MessageDirection.clientToServer,ze.type=new t.ProtocolRequestType(ze.method),(Ue=qe||(e.SignatureHelpTriggerKind=qe={})).Invoked=1,Ue.TriggerCharacter=2,Ue.ContentChange=3,(He=Be||(e.SignatureHelpRequest=Be={})).method="textDocument/signatureHelp",He.messageDirection=t.MessageDirection.clientToServer,He.type=new t.ProtocolRequestType(He.method),(Ze=Ye||(e.DefinitionRequest=Ye={})).method="textDocument/definition",Ze.messageDirection=t.MessageDirection.clientToServer,Ze.type=new t.ProtocolRequestType(Ze.method),(Je=Xe||(e.ReferencesRequest=Xe={})).method="textDocument/references",Je.messageDirection=t.MessageDirection.clientToServer,Je.type=new t.ProtocolRequestType(Je.method),(tt=et||(e.DocumentHighlightRequest=et={})).method="textDocument/documentHighlight",tt.messageDirection=t.MessageDirection.clientToServer,tt.type=new t.ProtocolRequestType(tt.method),(nt=rt||(e.DocumentSymbolRequest=rt={})).method="textDocument/documentSymbol",nt.messageDirection=t.MessageDirection.clientToServer,nt.type=new t.ProtocolRequestType(nt.method),(it=at||(e.CodeActionRequest=at={})).method="textDocument/codeAction",it.messageDirection=t.MessageDirection.clientToServer,it.type=new t.ProtocolRequestType(it.method),(ot=st||(e.CodeActionResolveRequest=st={})).method="codeAction/resolve",ot.messageDirection=t.MessageDirection.clientToServer,ot.type=new t.ProtocolRequestType(ot.method),(ut=lt||(e.WorkspaceSymbolRequest=lt={})).method="workspace/symbol",ut.messageDirection=t.MessageDirection.clientToServer,ut.type=new t.ProtocolRequestType(ut.method),(pt=ct||(e.WorkspaceSymbolResolveRequest=ct={})).method="workspaceSymbol/resolve",pt.messageDirection=t.MessageDirection.clientToServer,pt.type=new t.ProtocolRequestType(pt.method),(ft=dt||(e.CodeLensRequest=dt={})).method="textDocument/codeLens",ft.messageDirection=t.MessageDirection.clientToServer,ft.type=new t.ProtocolRequestType(ft.method),(jt=Mt||(e.CodeLensResolveRequest=Mt={})).method="codeLens/resolve",jt.messageDirection=t.MessageDirection.clientToServer,jt.type=new t.ProtocolRequestType(jt.method),(Gt=Ft||(e.CodeLensRefreshRequest=Ft={})).method="workspace/codeLens/refresh",Gt.messageDirection=t.MessageDirection.serverToClient,Gt.type=new t.ProtocolRequestType0(Gt.method),(zt=Kt||(e.DocumentLinkRequest=Kt={})).method="textDocument/documentLink",zt.messageDirection=t.MessageDirection.clientToServer,zt.type=new t.ProtocolRequestType(zt.method),(Ut=qt||(e.DocumentLinkResolveRequest=qt={})).method="documentLink/resolve",Ut.messageDirection=t.MessageDirection.clientToServer,Ut.type=new t.ProtocolRequestType(Ut.method),(Wt=Bt||(e.DocumentFormattingRequest=Bt={})).method="textDocument/formatting",Wt.messageDirection=t.MessageDirection.clientToServer,Wt.type=new t.ProtocolRequestType(Wt.method),(Ht=Vt||(e.DocumentRangeFormattingRequest=Vt={})).method="textDocument/rangeFormatting",Ht.messageDirection=t.MessageDirection.clientToServer,Ht.type=new t.ProtocolRequestType(Ht.method),(Qt=Yt||(e.DocumentRangesFormattingRequest=Yt={})).method="textDocument/rangesFormatting",Qt.messageDirection=t.MessageDirection.clientToServer,Qt.type=new t.ProtocolRequestType(Qt.method),(Xt=Zt||(e.DocumentOnTypeFormattingRequest=Zt={})).method="textDocument/onTypeFormatting",Xt.messageDirection=t.MessageDirection.clientToServer,Xt.type=new t.ProtocolRequestType(Xt.method),(Jt||(e.PrepareSupportDefaultBehavior=Jt={})).Identifier=1,(tr=er||(e.RenameRequest=er={})).method="textDocument/rename",tr.messageDirection=t.MessageDirection.clientToServer,tr.type=new t.ProtocolRequestType(tr.method),(nr=rr||(e.PrepareRenameRequest=rr={})).method="textDocument/prepareRename",nr.messageDirection=t.MessageDirection.clientToServer,nr.type=new t.ProtocolRequestType(nr.method),(ir=ar||(e.ExecuteCommandRequest=ar={})).method="workspace/executeCommand",ir.messageDirection=t.MessageDirection.clientToServer,ir.type=new t.ProtocolRequestType(ir.method),(or=sr||(e.ApplyWorkspaceEditRequest=sr={})).method="workspace/applyEdit",or.messageDirection=t.MessageDirection.serverToClient,or.type=new t.ProtocolRequestType("workspace/applyEdit")}}),jt=Ke({"../../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=dt();function r(e,r,n,a){return t.ConnectionStrategy.is(a)&&(a={connectionStrategy:a}),(0,t.createMessageConnection)(e,r,n,a)}Ge(r,"createProtocolConnection"),e.createProtocolConnection=r}}),Ft=Ke({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js"(e){var t=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:Ge(function(){return t[r]},"get")}),Object.defineProperty(e,n,a)}: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.LSPErrorCodes=e.createProtocolConnection=void 0,r(dt(),e),r((Qe(),We(Ve)),e),r(mt(),e),r(Mt(),e);var n,a,i=jt();Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:Ge(function(){return i.createProtocolConnection},"get")}),(a=n||(e.LSPErrorCodes=n={})).lspReservedErrorRangeStart=-32899,a.RequestFailed=-32803,a.ServerCancelled=-32802,a.ContentModified=-32801,a.RequestCancelled=-32800,a.lspReservedErrorRangeEnd=-32800}}),Gt=Ke({"../../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 a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:Ge(function(){return t[r]},"get")}),Object.defineProperty(e,n,a)}: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=ft();function a(e,t,r,a){return(0,n.createMessageConnection)(e,t,r,a)}r(ft(),e),r(Ft(),e),Ge(a,"createProtocolConnection"),e.createProtocolConnection=a}}),Kt={};ze(Kt,{AbstractAstReflection:()=>Ht,AbstractCstNode:()=>dk,AbstractLangiumParser:()=>$k,AbstractParserErrorMessageProvider:()=>bk,AbstractThreadedAsyncParser:()=>Qw,AstUtils:()=>sr,BiMap:()=>Nx,Cancellation:()=>Xk,CompositeCstNodeImpl:()=>mk,ContextCache:()=>jx,CstNodeBuilder:()=>pk,CstUtils:()=>zt,DEFAULT_TOKENIZE_OPTIONS:()=>mw,DONE_RESULT:()=>rr,DatatypeSymbol:()=>gk,DefaultAstNodeDescriptionProvider:()=>nw,DefaultAstNodeLocator:()=>iw,DefaultAsyncParser:()=>Yw,DefaultCommentProvider:()=>Hw,DefaultConfigurationProvider:()=>lw,DefaultDocumentBuilder:()=>cw,DefaultDocumentValidator:()=>Jx,DefaultHydrator:()=>Jw,DefaultIndexManager:()=>pw,DefaultJsonSerializer:()=>Wx,DefaultLangiumDocumentFactory:()=>bx,DefaultLangiumDocuments:()=>Ex,DefaultLangiumProfiler:()=>LN,DefaultLexer:()=>hw,DefaultLexerErrorMessageProvider:()=>fw,DefaultLinker:()=>Cx,DefaultNameProvider:()=>kx,DefaultReferenceDescriptionProvider:()=>aw,DefaultReferences:()=>xx,DefaultScopeComputation:()=>Ix,DefaultScopeProvider:()=>Kx,DefaultServiceRegistry:()=>Vx,DefaultTokenBuilder:()=>Qk,DefaultValueConverter:()=>Zk,DefaultWorkspaceLock:()=>Xw,DefaultWorkspaceManager:()=>dw,Deferred:()=>ux,Disposable:()=>ow,DisposableCache:()=>Lx,DocumentCache:()=>Fx,DocumentState:()=>vx,DocumentValidator:()=>Yx,EMPTY_SCOPE:()=>Dx,EMPTY_STREAM:()=>tr,EmptyFileSystem:()=>yN,EmptyFileSystemProvider:()=>hN,ErrorWithLocation:()=>Ua,GrammarAST:()=>Rr,GrammarUtils:()=>qa,IndentationAwareLexer:()=>fN,IndentationAwareTokenBuilder:()=>dN,JSDocDocumentationProvider:()=>Vw,LangiumCompletionParser:()=>Ak,LangiumParser:()=>Rk,LangiumParserErrorMessageProvider:()=>Ek,LeafCstNodeImpl:()=>fk,LexingMode:()=>uN,MapScope:()=>Px,Module:()=>Ww,MultiMap:()=>wx,MultiMapScope:()=>Ox,OperationCancelled:()=>ax,ParserWorker:()=>Zw,ProfilingTask:()=>MN,Reduction:()=>ar,RefResolving:()=>Ax,RegExpUtils:()=>Va,RootCstNodeImpl:()=>yk,SimpleCache:()=>Mx,StreamImpl:()=>Xt,StreamScope:()=>_x,TextDocument:()=>ox,TreeStreamImpl:()=>ir,URI:()=>gx,UriTrie:()=>Rx,UriUtils:()=>yx,VALIDATE_EACH_NODE:()=>Xx,ValidationCategory:()=>Ux,ValidationRegistry:()=>Zx,ValueConverter:()=>Yk,WorkspaceCache:()=>Gx,assertCondition:()=>Wa,assertUnreachable:()=>Ba,createCompletionParser:()=>Wk,createDefaultCoreModule:()=>eN,createDefaultSharedCoreModule:()=>tN,createGrammarConfig:()=>as,createLangiumParser:()=>Vk,createParser:()=>xk,delayNextTick:()=>Jk,diagnosticData:()=>Hx,eagerLoad:()=>aN,getDiagnosticRange:()=>ew,indentationBuilderDefaultOptions:()=>pN,inject:()=>rN,interruptAndCheck:()=>sx,isAstNode:()=>qt,isAstNodeDescription:()=>Wt,isAstNodeWithComment:()=>zx,isCompositeCstNode:()=>Yt,isIMultiModeLexerDefinition:()=>gw,isJSDoc:()=>$w,isLeafCstNode:()=>Qt,isLinkingError:()=>Vt,isMultiReference:()=>Bt,isNamed:()=>Sx,isOperationCancelled:()=>ix,isReference:()=>Ut,isRootCstNode:()=>Zt,isTokenTypeArray:()=>yw,isTokenTypeDictionary:()=>Tw,loadGrammarFromJson:()=>$N,parseJSDoc:()=>vw,prepareLangiumParser:()=>Hk,setInterruptionPeriod:()=>nx,startCancelableOperation:()=>rx,stream:()=>nr,toDiagnosticData:()=>rw,toDiagnosticSeverity:()=>tw});var zt={};function qt(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$type}function Ut(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$refText&&"ref"in e}function Bt(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$refText&&"items"in e}function Wt(e){return"object"==typeof e&&null!==e&&"string"==typeof e.name&&"string"==typeof e.type&&"string"==typeof e.path}function Vt(e){return"object"==typeof e&&null!==e&&"object"==typeof e.info&&"string"==typeof e.message}ze(zt,{DefaultNameRegexp:()=>Na,RangeComparison:()=>Ta,compareRange:()=>xa,findCommentNode:()=>_a,findDeclarationNodeAtOffset:()=>Ia,findLeafNodeAtOffset:()=>Oa,findLeafNodeBeforeOffset:()=>Da,flattenCst:()=>Aa,getDatatypeNode:()=>ba,getInteriorNodes:()=>Ga,getNextNode:()=>ja,getPreviousNode:()=>Ma,getStartlineNode:()=>Fa,inRange:()=>wa,isChildNode:()=>Ca,isCommentNode:()=>Pa,streamCst:()=>Ea,toDocumentSegment:()=>ka,tokenToRange:()=>Sa}),Ge(qt,"isAstNode"),Ge(Ut,"isReference"),Ge(Bt,"isMultiReference"),Ge(Wt,"isAstNodeDescription"),Ge(Vt,"isLinkingError");var Ht=class{static{Ge(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){const t=this.types[e.container.$type];if(!t)throw new Error(`Type ${e.container.$type||"undefined"} not found.`);const r=t.properties[e.property]?.referenceType;if(!r)throw new Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return r}getTypeMetaData(e){const t=this.types[e];return t||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return qt(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const n=r[t];if(void 0!==n)return n;{const n=this.types[e],a=!!n&&n.superTypes.some(e=>this.isSubtype(e,t));return r[t]=a,a}}getAllSubTypes(e){const t=this.allSubtypes[e];if(t)return t;{const t=this.getAllTypes(),r=[];for(const n of t)this.isSubtype(n,e)&&r.push(n);return this.allSubtypes[e]=r,r}}};function Yt(e){return"object"==typeof e&&null!==e&&Array.isArray(e.content)}function Qt(e){return"object"==typeof e&&null!==e&&"object"==typeof e.tokenType}function Zt(e){return Yt(e)&&"string"==typeof e.fullText}Ge(Yt,"isCompositeCstNode"),Ge(Qt,"isLeafCstNode"),Ge(Zt,"isRootCstNode");var Xt=class e{static{Ge(this,"StreamImpl")}constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){const e={state:this.startFn(),next:Ge(()=>this.nextFn(e.state),"next"),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){const e=this.iterator();return Boolean(e.next().done)}count(){const e=this.iterator();let t=0,r=e.next();for(;!r.done;)t++,r=e.next();return t}toArray(){const e=[],t=this.iterator();let r;do{r=t.next(),void 0!==r.value&&e.push(r.value)}while(!r.done);return e}toSet(){return new Set(this)}toMap(e,t){const r=this.map(r=>[e?e(r):r,t?t(r):r]);return new Map(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),!t.done)return t}while(!t.done);e.firstDone=!0}do{if(t=e.iterator.next(),!t.done)return t}while(!t.done);return rr})}join(e=","){const t=this.iterator();let r,n="",a=!1;do{r=t.next(),r.done||(a&&(n+=e),n+=Jt(r.value)),a=!0}while(!r.done);return n}indexOf(e,t=0){const r=this.iterator();let n=0,a=r.next();for(;!a.done;){if(n>=t&&a.value===e)return n;a=r.next(),n++}return-1}every(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(!e(r.value))return!1;r=t.next()}return!0}some(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return!0;r=t.next()}return!1}forEach(e){const t=this.iterator();let r=0,n=t.next();for(;!n.done;)e(n.value,r),n=t.next(),r++}map(t){return new e(this.startFn,e=>{const{done:r,value:n}=this.nextFn(e);return r?rr:{done:!1,value:t(n)}})}filter(t){return new e(this.startFn,e=>{let r;do{if(r=this.nextFn(e),!r.done&&t(r.value))return r}while(!r.done);return rr})}nonNullable(){return this.filter(e=>null!=e)}reduce(e,t){const r=this.iterator();let n=t,a=r.next();for(;!a.done;)n=void 0===n?a.value:e(n,a.value),a=r.next();return n}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,r){const n=e.next();if(n.done)return r;const a=this.recursiveReduce(e,t,r);return void 0===a?n.value:t(a,n.value)}find(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return r.value;r=t.next()}}findIndex(e){const t=this.iterator();let r=0,n=t.next();for(;!n.done;){if(e(n.value))return r;n=t.next(),r++}return-1}includes(e){const t=this.iterator();let 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){const t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}const{done:r,value:n}=this.nextFn(e.this);if(!r){const r=t(n);if(!er(r))return{done:!1,value:r};e.iterator=r[Symbol.iterator]()}}while(e.iterator);return rr})}flat(t){if(void 0===t&&(t=1),t<=0)return this;const r=t>1?this.flat(t-1):this;return new e(()=>({this:r.startFn()}),e=>{do{if(e.iterator){const t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}const{done:t,value:n}=r.nextFn(e.this);if(!t){if(!er(n))return{done:!1,value:n};e.iterator=n[Symbol.iterator]()}}while(e.iterator);return rr})}head(){const e=this.iterator().next();if(!e.done)return e.value}tail(t=1){return new e(()=>{const e=this.startFn();for(let r=0;r<t;r++){if(this.nextFn(e).done)return e}return e},this.nextFn)}limit(t){return new e(()=>({size:0,state:this.startFn()}),e=>(e.size++,e.size>t?rr: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),!r.done){const n=t?t(r.value):r.value;if(!e.set.has(n))return e.set.add(n),r}}while(!r.done);return rr})}exclude(e,t){const r=new Set;for(const n of e){const e=t?t(n):n;r.add(e)}return this.filter(e=>{const n=t?t(e):e;return!r.has(n)})}};function Jt(e){return"string"==typeof e?e:void 0===e?"undefined":"function"==typeof e.toString?e.toString():Object.prototype.toString.call(e)}function er(e){return!!e&&"function"==typeof e[Symbol.iterator]}Ge(Jt,"toString"),Ge(er,"isIterable");var tr=new Xt(()=>{},()=>rr),rr=Object.freeze({done:!0,value:void 0});function nr(...e){if(1===e.length){const t=e[0];if(t instanceof Xt)return t;if(er(t))return new Xt(()=>t[Symbol.iterator](),e=>e.next());if("number"==typeof t.length)return new Xt(()=>({index:0}),e=>e.index<t.length?{done:!1,value:t[e.index++]}:rr)}return e.length>1?new Xt(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){const 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){const r=e[t.collIndex++];er(r)?t.iterator=r[Symbol.iterator]():r&&"number"==typeof r.length&&(t.array=r)}}while(t.iterator||t.array||t.collIndex<e.length);return rr}):tr}Ge(nr,"stream");var ar,ir=class extends Xt{static{Ge(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;){const 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 rr})}iterator(){const e={state:this.startFn(),next:Ge(()=>this.nextFn(e.state),"next"),prune:Ge(()=>{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 a(e){return e.reduce((e,t)=>Math.max(e,t))}Ge(t,"sum"),e.sum=t,Ge(r,"product"),e.product=r,Ge(n,"min"),e.min=n,Ge(a,"max"),e.max=a}(ar||(ar={}));var sr={};function or(e,t={}){for(const[r,n]of Object.entries(e))r.startsWith("$")||(Array.isArray(n)?n.forEach((n,a)=>{qt(n)&&(n.$container=e,n.$containerProperty=r,n.$containerIndex=a,t.deep&&or(n,t))}):qt(n)&&(n.$container=e,n.$containerProperty=r,t.deep&&or(n,t)))}function lr(e,t){let r=e;for(;r;){if(t(r))return r;r=r.$container}}function ur(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.$container}return!1}function cr(e){const t=pr(e).$document;if(!t)throw new Error("AST node has no document.");return t}function pr(e){for(;e.$container;)e=e.$container;return e}function dr(e){return Ut(e)?e.ref?[e.ref]:[]:Bt(e)?e.items.map(e=>e.ref):[]}function fr(e,t){if(!e)throw new Error("Node must be an AstNode.");const r=t?.range;return new Xt(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){const n=t.keys[t.keyIndex];if(!n.startsWith("$")){const a=e[n];if(qt(a)){if(t.keyIndex++,yr(a,r))return{done:!1,value:a}}else if(Array.isArray(a)){for(;t.arrayIndex<a.length;){const e=a[t.arrayIndex++];if(qt(e)&&yr(e,r))return{done:!1,value:e}}t.arrayIndex=0}}t.keyIndex++}return rr})}function mr(e,t){if(!e)throw new Error("Root node must be an AstNode.");return new ir(e,e=>fr(e,t))}function hr(e,t){if(!e)throw new Error("Root node must be an AstNode.");return t?.range&&!yr(e,t.range)?new ir(e,()=>[]):new ir(e,e=>fr(e,t),{includeRoot:!0})}function yr(e,t){if(!t)return!0;const r=e.$cstNode?.range;return!!r&&wa(r,t)}function gr(e){return new Xt(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){const r=t.keys[t.keyIndex];if(!r.startsWith("$")){const n=e[r];if(Ut(n)||Bt(n))return t.keyIndex++,{done:!1,value:{reference:n,container:e,property:r}};if(Array.isArray(n)){for(;t.arrayIndex<n.length;){const a=t.arrayIndex++,i=n[a];if(Ut(i)||Bt(n))return{done:!1,value:{reference:i,container:e,property:r,index:a}}}t.arrayIndex=0}}t.keyIndex++}return rr})}function Tr(e,t){const r=e.getTypeMetaData(t.$type),n=t;for(const a of Object.values(r.properties))void 0!==a.defaultValue&&void 0===n[a.name]&&(n[a.name]=vr(a.defaultValue))}function vr(e){return Array.isArray(e)?[...e.map(vr)]:e}function $r(e,t,r){const n={$type:e.$type};r&&(r.set(e,n),r.set(n,e));for(const[a,i]of Object.entries(e))if(!a.startsWith("$"))if(qt(i))n[a]=$r(i,t,r);else if(Ut(i))n[a]=t(n,a,i.$refNode,i.$refText,i);else if(Array.isArray(i)){const e=[];for(const s of i)qt(s)?e.push($r(s,t,r)):Ut(s)?e.push(t(n,a,s.$refNode,s.$refText,s)):e.push(s);n[a]=e}else n[a]=i;return or(n,{deep:!0}),n}ze(sr,{assignMandatoryProperties:()=>Tr,copyAstNode:()=>$r,findRootNode:()=>pr,getContainerOfType:()=>lr,getDocument:()=>cr,getReferenceNodes:()=>dr,hasContainerOfType:()=>ur,linkContentToContainer:()=>or,streamAllContents:()=>mr,streamAst:()=>hr,streamContents:()=>fr,streamReferences:()=>gr}),Ge(or,"linkContentToContainer"),Ge(lr,"getContainerOfType"),Ge(ur,"hasContainerOfType"),Ge(cr,"getDocument"),Ge(pr,"findRootNode"),Ge(dr,"getReferenceNodes"),Ge(fr,"streamContents"),Ge(mr,"streamAllContents"),Ge(hr,"streamAst"),Ge(yr,"isAstNodeInRange"),Ge(gr,"streamReferences"),Ge(Tr,"assignMandatoryProperties"),Ge(vr,"copyDefaultValue"),Ge($r,"copyAstNode");var Rr={};ze(Rr,{AbstractElement:()=>Er,AbstractParserRule:()=>Cr,AbstractRule:()=>kr,AbstractType:()=>wr,Action:()=>Ir,Alternatives:()=>Pr,ArrayLiteral:()=>Dr,ArrayType:()=>Mr,Assignment:()=>Fr,BooleanLiteral:()=>Kr,CharacterRange:()=>qr,Condition:()=>Br,Conjunction:()=>Vr,CrossReference:()=>Yr,Disjunction:()=>Zr,EndOfFile:()=>Jr,Grammar:()=>tn,GrammarImport:()=>nn,Group:()=>sn,InferredType:()=>ln,InfixRule:()=>cn,InfixRuleOperatorList:()=>dn,InfixRuleOperators:()=>mn,Interface:()=>yn,Keyword:()=>Tn,LangiumGrammarAstReflection:()=>$a,LangiumGrammarTerminals:()=>br,NamedArgument:()=>$n,NegatedToken:()=>bn,Negation:()=>An,NumberLiteral:()=>Sn,Parameter:()=>xn,ParameterReference:()=>Nn,ParserRule:()=>_n,ReferenceType:()=>On,RegexToken:()=>Ln,ReturnType:()=>jn,RuleCall:()=>Gn,SimpleType:()=>zn,StringLiteral:()=>Un,TerminalAlternatives:()=>Wn,TerminalElement:()=>Hn,TerminalGroup:()=>Qn,TerminalRule:()=>Xn,TerminalRuleCall:()=>ea,Type:()=>ra,TypeAttribute:()=>aa,TypeDefinition:()=>sa,UnionType:()=>la,UnorderedGroup:()=>ca,UntilToken:()=>da,ValueLiteral:()=>ma,Wildcard:()=>ya,isAbstractElement:()=>Ar,isAbstractParserRule:()=>Sr,isAbstractRule:()=>xr,isAbstractType:()=>Nr,isAction:()=>_r,isAlternatives:()=>Or,isArrayLiteral:()=>Lr,isArrayType:()=>jr,isAssignment:()=>Gr,isBooleanLiteral:()=>zr,isCharacterRange:()=>Ur,isCondition:()=>Wr,isConjunction:()=>Hr,isCrossReference:()=>Qr,isDisjunction:()=>Xr,isEndOfFile:()=>en,isGrammar:()=>rn,isGrammarImport:()=>an,isGroup:()=>on,isInferredType:()=>un,isInfixRule:()=>pn,isInfixRuleOperatorList:()=>fn,isInfixRuleOperators:()=>hn,isInterface:()=>gn,isKeyword:()=>vn,isNamedArgument:()=>Rn,isNegatedToken:()=>En,isNegation:()=>Cn,isNumberLiteral:()=>kn,isParameter:()=>wn,isParameterReference:()=>In,isParserRule:()=>Pn,isReferenceType:()=>Dn,isRegexToken:()=>Mn,isReturnType:()=>Fn,isRuleCall:()=>Kn,isSimpleType:()=>qn,isStringLiteral:()=>Bn,isTerminalAlternatives:()=>Vn,isTerminalElement:()=>Yn,isTerminalGroup:()=>Zn,isTerminalRule:()=>Jn,isTerminalRuleCall:()=>ta,isType:()=>na,isTypeAttribute:()=>ia,isTypeDefinition:()=>oa,isUnionType:()=>ua,isUnorderedGroup:()=>pa,isUntilToken:()=>fa,isValueLiteral:()=>ha,isWildcard:()=>ga,reflection:()=>Ra});var br={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]*/},Er={$type:"AbstractElement",cardinality:"cardinality"};function Ar(e){return Ra.isInstance(e,Er.$type)}Ge(Ar,"isAbstractElement");var Cr={$type:"AbstractParserRule"};function Sr(e){return Ra.isInstance(e,Cr.$type)}Ge(Sr,"isAbstractParserRule");var kr={$type:"AbstractRule"};function xr(e){return Ra.isInstance(e,kr.$type)}Ge(xr,"isAbstractRule");var wr={$type:"AbstractType"};function Nr(e){return Ra.isInstance(e,wr.$type)}Ge(Nr,"isAbstractType");var Ir={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function _r(e){return Ra.isInstance(e,Ir.$type)}Ge(_r,"isAction");var Pr={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function Or(e){return Ra.isInstance(e,Pr.$type)}Ge(Or,"isAlternatives");var Dr={$type:"ArrayLiteral",elements:"elements"};function Lr(e){return Ra.isInstance(e,Dr.$type)}Ge(Lr,"isArrayLiteral");var Mr={$type:"ArrayType",elementType:"elementType"};function jr(e){return Ra.isInstance(e,Mr.$type)}Ge(jr,"isArrayType");var Fr={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function Gr(e){return Ra.isInstance(e,Fr.$type)}Ge(Gr,"isAssignment");var Kr={$type:"BooleanLiteral",true:"true"};function zr(e){return Ra.isInstance(e,Kr.$type)}Ge(zr,"isBooleanLiteral");var qr={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function Ur(e){return Ra.isInstance(e,qr.$type)}Ge(Ur,"isCharacterRange");var Br={$type:"Condition"};function Wr(e){return Ra.isInstance(e,Br.$type)}Ge(Wr,"isCondition");var Vr={$type:"Conjunction",left:"left",right:"right"};function Hr(e){return Ra.isInstance(e,Vr.$type)}Ge(Hr,"isConjunction");var Yr={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function Qr(e){return Ra.isInstance(e,Yr.$type)}Ge(Qr,"isCrossReference");var Zr={$type:"Disjunction",left:"left",right:"right"};function Xr(e){return Ra.isInstance(e,Zr.$type)}Ge(Xr,"isDisjunction");var Jr={$type:"EndOfFile",cardinality:"cardinality"};function en(e){return Ra.isInstance(e,Jr.$type)}Ge(en,"isEndOfFile");var tn={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"};function rn(e){return Ra.isInstance(e,tn.$type)}Ge(rn,"isGrammar");var nn={$type:"GrammarImport",path:"path"};function an(e){return Ra.isInstance(e,nn.$type)}Ge(an,"isGrammarImport");var sn={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function on(e){return Ra.isInstance(e,sn.$type)}Ge(on,"isGroup");var ln={$type:"InferredType",name:"name"};function un(e){return Ra.isInstance(e,ln.$type)}Ge(un,"isInferredType");var cn={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function pn(e){return Ra.isInstance(e,cn.$type)}Ge(pn,"isInfixRule");var dn={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"};function fn(e){return Ra.isInstance(e,dn.$type)}Ge(fn,"isInfixRuleOperatorList");var mn={$type:"InfixRuleOperators",precedences:"precedences"};function hn(e){return Ra.isInstance(e,mn.$type)}Ge(hn,"isInfixRuleOperators");var yn={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function gn(e){return Ra.isInstance(e,yn.$type)}Ge(gn,"isInterface");var Tn={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function vn(e){return Ra.isInstance(e,Tn.$type)}Ge(vn,"isKeyword");var $n={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"};function Rn(e){return Ra.isInstance(e,$n.$type)}Ge(Rn,"isNamedArgument");var bn={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function En(e){return Ra.isInstance(e,bn.$type)}Ge(En,"isNegatedToken");var An={$type:"Negation",value:"value"};function Cn(e){return Ra.isInstance(e,An.$type)}Ge(Cn,"isNegation");var Sn={$type:"NumberLiteral",value:"value"};function kn(e){return Ra.isInstance(e,Sn.$type)}Ge(kn,"isNumberLiteral");var xn={$type:"Parameter",name:"name"};function wn(e){return Ra.isInstance(e,xn.$type)}Ge(wn,"isParameter");var Nn={$type:"ParameterReference",parameter:"parameter"};function In(e){return Ra.isInstance(e,Nn.$type)}Ge(In,"isParameterReference");var _n={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function Pn(e){return Ra.isInstance(e,_n.$type)}Ge(Pn,"isParserRule");var On={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"};function Dn(e){return Ra.isInstance(e,On.$type)}Ge(Dn,"isReferenceType");var Ln={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function Mn(e){return Ra.isInstance(e,Ln.$type)}Ge(Mn,"isRegexToken");var jn={$type:"ReturnType",name:"name"};function Fn(e){return Ra.isInstance(e,jn.$type)}Ge(Fn,"isReturnType");var Gn={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function Kn(e){return Ra.isInstance(e,Gn.$type)}Ge(Kn,"isRuleCall");var zn={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function qn(e){return Ra.isInstance(e,zn.$type)}Ge(qn,"isSimpleType");var Un={$type:"StringLiteral",value:"value"};function Bn(e){return Ra.isInstance(e,Un.$type)}Ge(Bn,"isStringLiteral");var Wn={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Vn(e){return Ra.isInstance(e,Wn.$type)}Ge(Vn,"isTerminalAlternatives");var Hn={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function Yn(e){return Ra.isInstance(e,Hn.$type)}Ge(Yn,"isTerminalElement");var Qn={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Zn(e){return Ra.isInstance(e,Qn.$type)}Ge(Zn,"isTerminalGroup");var Xn={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function Jn(e){return Ra.isInstance(e,Xn.$type)}Ge(Jn,"isTerminalRule");var ea={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function ta(e){return Ra.isInstance(e,ea.$type)}Ge(ta,"isTerminalRuleCall");var ra={$type:"Type",name:"name",type:"type"};function na(e){return Ra.isInstance(e,ra.$type)}Ge(na,"isType");var aa={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"};function ia(e){return Ra.isInstance(e,aa.$type)}Ge(ia,"isTypeAttribute");var sa={$type:"TypeDefinition"};function oa(e){return Ra.isInstance(e,sa.$type)}Ge(oa,"isTypeDefinition");var la={$type:"UnionType",types:"types"};function ua(e){return Ra.isInstance(e,la.$type)}Ge(ua,"isUnionType");var ca={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function pa(e){return Ra.isInstance(e,ca.$type)}Ge(pa,"isUnorderedGroup");var da={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function fa(e){return Ra.isInstance(e,da.$type)}Ge(fa,"isUntilToken");var ma={$type:"ValueLiteral"};function ha(e){return Ra.isInstance(e,ma.$type)}Ge(ha,"isValueLiteral");var ya={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function ga(e){return Ra.isInstance(e,ya.$type)}Ge(ga,"isWildcard");var Ta,va,$a=class extends Ht{static{Ge(this,"LangiumGrammarAstReflection")}constructor(){super(...arguments),this.types={AbstractElement:{name:Er.$type,properties:{cardinality:{name:Er.cardinality}},superTypes:[]},AbstractParserRule:{name:Cr.$type,properties:{},superTypes:[kr.$type,wr.$type]},AbstractRule:{name:kr.$type,properties:{},superTypes:[]},AbstractType:{name:wr.$type,properties:{},superTypes:[]},Action:{name:Ir.$type,properties:{cardinality:{name:Ir.cardinality},feature:{name:Ir.feature},inferredType:{name:Ir.inferredType},operator:{name:Ir.operator},type:{name:Ir.type,referenceType:wr.$type}},superTypes:[Er.$type]},Alternatives:{name:Pr.$type,properties:{cardinality:{name:Pr.cardinality},elements:{name:Pr.elements,defaultValue:[]}},superTypes:[Er.$type]},ArrayLiteral:{name:Dr.$type,properties:{elements:{name:Dr.elements,defaultValue:[]}},superTypes:[ma.$type]},ArrayType:{name:Mr.$type,properties:{elementType:{name:Mr.elementType}},superTypes:[sa.$type]},Assignment:{name:Fr.$type,properties:{cardinality:{name:Fr.cardinality},feature:{name:Fr.feature},operator:{name:Fr.operator},predicate:{name:Fr.predicate},terminal:{name:Fr.terminal}},superTypes:[Er.$type]},BooleanLiteral:{name:Kr.$type,properties:{true:{name:Kr.true,defaultValue:!1}},superTypes:[Br.$type,ma.$type]},CharacterRange:{name:qr.$type,properties:{cardinality:{name:qr.cardinality},left:{name:qr.left},lookahead:{name:qr.lookahead},parenthesized:{name:qr.parenthesized,defaultValue:!1},right:{name:qr.right}},superTypes:[Hn.$type]},Condition:{name:Br.$type,properties:{},superTypes:[]},Conjunction:{name:Vr.$type,properties:{left:{name:Vr.left},right:{name:Vr.right}},superTypes:[Br.$type]},CrossReference:{name:Yr.$type,properties:{cardinality:{name:Yr.cardinality},deprecatedSyntax:{name:Yr.deprecatedSyntax,defaultValue:!1},isMulti:{name:Yr.isMulti,defaultValue:!1},terminal:{name:Yr.terminal},type:{name:Yr.type,referenceType:wr.$type}},superTypes:[Er.$type]},Disjunction:{name:Zr.$type,properties:{left:{name:Zr.left},right:{name:Zr.right}},superTypes:[Br.$type]},EndOfFile:{name:Jr.$type,properties:{cardinality:{name:Jr.cardinality}},superTypes:[Er.$type]},Grammar:{name:tn.$type,properties:{imports:{name:tn.imports,defaultValue:[]},interfaces:{name:tn.interfaces,defaultValue:[]},isDeclared:{name:tn.isDeclared,defaultValue:!1},name:{name:tn.name},rules:{name:tn.rules,defaultValue:[]},types:{name:tn.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:nn.$type,properties:{path:{name:nn.path}},superTypes:[]},Group:{name:sn.$type,properties:{cardinality:{name:sn.cardinality},elements:{name:sn.elements,defaultValue:[]},guardCondition:{name:sn.guardCondition},predicate:{name:sn.predicate}},superTypes:[Er.$type]},InferredType:{name:ln.$type,properties:{name:{name:ln.name}},superTypes:[wr.$type]},InfixRule:{name:cn.$type,properties:{call:{name:cn.call},dataType:{name:cn.dataType},inferredType:{name:cn.inferredType},name:{name:cn.name},operators:{name:cn.operators},parameters:{name:cn.parameters,defaultValue:[]},returnType:{name:cn.returnType,referenceType:wr.$type}},superTypes:[Cr.$type]},InfixRuleOperatorList:{name:dn.$type,properties:{associativity:{name:dn.associativity},operators:{name:dn.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:mn.$type,properties:{precedences:{name:mn.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:yn.$type,properties:{attributes:{name:yn.attributes,defaultValue:[]},name:{name:yn.name},superTypes:{name:yn.superTypes,defaultValue:[],referenceType:wr.$type}},superTypes:[wr.$type]},Keyword:{name:Tn.$type,properties:{cardinality:{name:Tn.cardinality},predicate:{name:Tn.predicate},value:{name:Tn.value}},superTypes:[Er.$type]},NamedArgument:{name:$n.$type,properties:{calledByName:{name:$n.calledByName,defaultValue:!1},parameter:{name:$n.parameter,referenceType:xn.$type},value:{name:$n.value}},superTypes:[]},NegatedToken:{name:bn.$type,properties:{cardinality:{name:bn.cardinality},lookahead:{name:bn.lookahead},parenthesized:{name:bn.parenthesized,defaultValue:!1},terminal:{name:bn.terminal}},superTypes:[Hn.$type]},Negation:{name:An.$type,properties:{value:{name:An.value}},superTypes:[Br.$type]},NumberLiteral:{name:Sn.$type,properties:{value:{name:Sn.value}},superTypes:[ma.$type]},Parameter:{name:xn.$type,properties:{name:{name:xn.name}},superTypes:[]},ParameterReference:{name:Nn.$type,properties:{parameter:{name:Nn.parameter,referenceType:xn.$type}},superTypes:[Br.$type]},ParserRule:{name:_n.$type,properties:{dataType:{name:_n.dataType},definition:{name:_n.definition},entry:{name:_n.entry,defaultValue:!1},fragment:{name:_n.fragment,defaultValue:!1},inferredType:{name:_n.inferredType},name:{name:_n.name},parameters:{name:_n.parameters,defaultValue:[]},returnType:{name:_n.returnType,referenceType:wr.$type}},superTypes:[Cr.$type]},ReferenceType:{name:On.$type,properties:{isMulti:{name:On.isMulti,defaultValue:!1},referenceType:{name:On.referenceType}},superTypes:[sa.$type]},RegexToken:{name:Ln.$type,properties:{cardinality:{name:Ln.cardinality},lookahead:{name:Ln.lookahead},parenthesized:{name:Ln.parenthesized,defaultValue:!1},regex:{name:Ln.regex}},superTypes:[Hn.$type]},ReturnType:{name:jn.$type,properties:{name:{name:jn.name}},superTypes:[]},RuleCall:{name:Gn.$type,properties:{arguments:{name:Gn.arguments,defaultValue:[]},cardinality:{name:Gn.cardinality},predicate:{name:Gn.predicate},rule:{name:Gn.rule,referenceType:kr.$type}},superTypes:[Er.$type]},SimpleType:{name:zn.$type,properties:{primitiveType:{name:zn.primitiveType},stringType:{name:zn.stringType},typeRef:{name:zn.typeRef,referenceType:wr.$type}},superTypes:[sa.$type]},StringLiteral:{name:Un.$type,properties:{value:{name:Un.value}},superTypes:[ma.$type]},TerminalAlternatives:{name:Wn.$type,properties:{cardinality:{name:Wn.cardinality},elements:{name:Wn.elements,defaultValue:[]},lookahead:{name:Wn.lookahead},parenthesized:{name:Wn.parenthesized,defaultValue:!1}},superTypes:[Hn.$type]},TerminalElement:{name:Hn.$type,properties:{cardinality:{name:Hn.cardinality},lookahead:{name:Hn.lookahead},parenthesized:{name:Hn.parenthesized,defaultValue:!1}},superTypes:[Er.$type]},TerminalGroup:{name:Qn.$type,properties:{cardinality:{name:Qn.cardinality},elements:{name:Qn.elements,defaultValue:[]},lookahead:{name:Qn.lookahead},parenthesized:{name:Qn.parenthesized,defaultValue:!1}},superTypes:[Hn.$type]},TerminalRule:{name:Xn.$type,properties:{definition:{name:Xn.definition},fragment:{name:Xn.fragment,defaultValue:!1},hidden:{name:Xn.hidden,defaultValue:!1},name:{name:Xn.name},type:{name:Xn.type}},superTypes:[kr.$type]},TerminalRuleCall:{name:ea.$type,properties:{cardinality:{name:ea.cardinality},lookahead:{name:ea.lookahead},parenthesized:{name:ea.parenthesized,defaultValue:!1},rule:{name:ea.rule,referenceType:Xn.$type}},superTypes:[Hn.$type]},Type:{name:ra.$type,properties:{name:{name:ra.name},type:{name:ra.type}},superTypes:[wr.$type]},TypeAttribute:{name:aa.$type,properties:{defaultValue:{name:aa.defaultValue},isOptional:{name:aa.isOptional,defaultValue:!1},name:{name:aa.name},type:{name:aa.type}},superTypes:[]},TypeDefinition:{name:sa.$type,properties:{},superTypes:[]},UnionType:{name:la.$type,properties:{types:{name:la.types,defaultValue:[]}},superTypes:[sa.$type]},UnorderedGroup:{name:ca.$type,properties:{cardinality:{name:ca.cardinality},elements:{name:ca.elements,defaultValue:[]}},superTypes:[Er.$type]},UntilToken:{name:da.$type,properties:{cardinality:{name:da.cardinality},lookahead:{name:da.lookahead},parenthesized:{name:da.parenthesized,defaultValue:!1},terminal:{name:da.terminal}},superTypes:[Hn.$type]},ValueLiteral:{name:ma.$type,properties:{},superTypes:[]},Wildcard:{name:ya.$type,properties:{cardinality:{name:ya.cardinality},lookahead:{name:ya.lookahead},parenthesized:{name:ya.parenthesized,defaultValue:!1}},superTypes:[Hn.$type]}}}},Ra=new $a;function ba(e){let t=e,r=!1;for(;t;){const e=lr(t.grammarSource,Pn);if(!e||!e.dataType)return r?t:void 0;t=t.container,r=!0}}function Ea(e){return new ir(e,e=>Yt(e)?e.content:[],{includeRoot:!0})}function Aa(e){return Ea(e).filter(Qt)}function Ca(e,t){for(;e.container;)if((e=e.container)===t)return!0;return!1}function Sa(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function ka(e){if(!e)return;const{offset:t,end:r,range:n}=e;return{range:n,offset:t,end:r,length:r-t}}function xa(e,t){if(e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<=t.start.character)return Ta.Before;if(e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return Ta.After;const 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?Ta.Inside:r?Ta.OverlapBack:n?Ta.OverlapFront:Ta.Outside}function wa(e,t){return xa(e,t)>Ta.After}Ge(ba,"getDatatypeNode"),Ge(Ea,"streamCst"),Ge(Aa,"flattenCst"),Ge(Ca,"isChildNode"),Ge(Sa,"tokenToRange"),Ge(ka,"toDocumentSegment"),(va=Ta||(Ta={}))[va.Before=0]="Before",va[va.After=1]="After",va[va.OverlapFront=2]="OverlapFront",va[va.OverlapBack=3]="OverlapBack",va[va.Inside=4]="Inside",va[va.Outside=5]="Outside",Ge(xa,"compareRange"),Ge(wa,"inRange");var Na=/^[\w\p{L}]$/u;function Ia(e,t,r=Na){if(e){if(t>0){const n=t-e.offset,a=e.text.charAt(n);r.test(a)||t--}return Oa(e,t)}}function _a(e,t){if(e){const r=Ma(e,!0);if(r&&Pa(r,t))return r;if(Zt(e)){for(let r=e.content.findIndex(e=>!e.hidden)-1;r>=0;r--){const n=e.content[r];if(Pa(n,t))return n}}}}function Pa(e,t){return Qt(e)&&t.includes(e.tokenType.name)}function Oa(e,t){if(Qt(e))return e;if(Yt(e)){const r=La(e,t,!1);if(r)return Oa(r,t)}}function Da(e,t){if(Qt(e))return e;if(Yt(e)){const r=La(e,t,!0);if(r)return Da(r,t)}}function La(e,t,r){let n,a=0,i=e.content.length-1;for(;a<=i;){const s=Math.floor((a+i)/2),o=e.content[s];if(o.offset<=t&&o.end>t)return o;o.end<=t?(n=r?o:void 0,a=s+1):i=s-1}return n}function Ma(e,t=!0){for(;e.container;){const r=e.container;let n=r.content.indexOf(e);for(;n>0;){n--;const e=r.content[n];if(t||!e.hidden)return e}e=r}}function ja(e,t=!0){for(;e.container;){const r=e.container;let n=r.content.indexOf(e);const a=r.content.length-1;for(;n<a;){n++;const e=r.content[n];if(t||!e.hidden)return e}e=r}}function Fa(e){if(0===e.range.start.character)return e;const t=e.range.start.line;let r,n=e;for(;e.container;){const a=e.container,i=r??a.content.indexOf(e);if(0===i?(e=a,r=void 0):(r=i-1,e=a.content[r]),e.range.start.line!==t)break;n=e}return n}function Ga(e,t){const r=Ka(e,t);return r?r.parent.content.slice(r.a+1,r.b):[]}function Ka(e,t){const r=za(e),n=za(t);let a;for(let i=0;i<r.length&&i<n.length;i++){const e=r[i],t=n[i];if(e.parent!==t.parent)break;a={parent:e.parent,a:e.index,b:t.index}}return a}function za(e){const t=[];for(;e.container;){const r=e.container,n=r.content.indexOf(e);t.push({parent:r,index:n}),e=r}return t.reverse()}Ge(Ia,"findDeclarationNodeAtOffset"),Ge(_a,"findCommentNode"),Ge(Pa,"isCommentNode"),Ge(Oa,"findLeafNodeAtOffset"),Ge(Da,"findLeafNodeBeforeOffset"),Ge(La,"binarySearch"),Ge(Ma,"getPreviousNode"),Ge(ja,"getNextNode"),Ge(Fa,"getStartlineNode"),Ge(Ga,"getInteriorNodes"),Ge(Ka,"getCommonParent"),Ge(za,"getParentChain");var qa={};ze(qa,{findAssignment:()=>_i,findNameAssignment:()=>Pi,findNodeForKeyword:()=>Ni,findNodeForProperty:()=>ki,findNodesForKeyword:()=>wi,findNodesForKeywordInternal:()=>Ii,findNodesForProperty:()=>Si,getActionAtElement:()=>Di,getActionType:()=>Bi,getAllReachableRules:()=>Ri,getAllRulesUsedForCrossReferences:()=>Ei,getCrossReferenceTerminal:()=>Ai,getEntryRule:()=>vi,getExplicitRuleType:()=>qi,getHiddenRules:()=>$i,getRuleType:()=>Vi,getRuleTypeName:()=>Wi,getTypeName:()=>Ui,isArrayCardinality:()=>Mi,isArrayOperator:()=>ji,isCommentTerminal:()=>Ci,isDataType:()=>Ki,isDataTypeRule:()=>Fi,isOptionalCardinality:()=>Li,terminalRegex:()=>Hi});var Ua=class extends Error{static{Ge(this,"ErrorWithLocation")}constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}};function Ba(e,t="Error: Got unexpected value."){throw new Error(t)}function Wa(e,t="Error: Condition is violated."){if(!e)throw new Error(t)}Ge(Ba,"assertUnreachable"),Ge(Wa,"assertCondition");var Va={};function Ha(e){return e.charCodeAt(0)}function Ya(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function Qa(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t];e[t]=!0}function Za(e){if(void 0===e)throw Error("Internal Error - Should never get here!");return!0}function Xa(){throw Error("Internal Error - Should never get here!")}function Ja(e){return"Character"===e.type}ze(Va,{NEWLINE_REGEXP:()=>li,escapeRegExp:()=>yi,getTerminalParts:()=>di,isMultilineComment:()=>fi,isWhitespace:()=>hi,partialMatches:()=>gi,partialRegExp:()=>Ti,whitespaceCharacters:()=>mi}),Ge(Ha,"cc"),Ge(Ya,"insertToSet"),Ge(Qa,"addFlag"),Ge(Za,"ASSERT_EXISTS"),Ge(Xa,"ASSERT_NEVER_REACH_HERE"),Ge(Ja,"isCharacter");var ei=[];for(let vF=Ha("0");vF<=Ha("9");vF++)ei.push(vF);var ti=[Ha("_")].concat(ei);for(let vF=Ha("a");vF<=Ha("z");vF++)ti.push(vF);for(let vF=Ha("A");vF<=Ha("Z");vF++)ti.push(vF);var ri=[Ha(" "),Ha("\f"),Ha("\n"),Ha("\r"),Ha("\t"),Ha("\v"),Ha("\t"),Ha("\xa0"),Ha("\u1680"),Ha("\u2000"),Ha("\u2001"),Ha("\u2002"),Ha("\u2003"),Ha("\u2004"),Ha("\u2005"),Ha("\u2006"),Ha("\u2007"),Ha("\u2008"),Ha("\u2009"),Ha("\u200a"),Ha("\u2028"),Ha("\u2029"),Ha("\u202f"),Ha("\u205f"),Ha("\u3000"),Ha("\ufeff")],ni=/[0-9a-fA-F]/,ai=/[0-9]/,ii=/[1-9]/,si=class{static{Ge(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("/");const t=this.disjunction();this.consumeChar("/");const 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":Qa(r,"global");break;case"i":Qa(r,"ignoreCase");break;case"m":Qa(r,"multiLine");break;case"u":Qa(r,"unicode");break;case"y":Qa(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(){const 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(){const 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(){const 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"}}Za(t);const r=this.disjunction();return this.consumeChar(")"),{type:t,value:r,loc:this.loc(e)}}return Xa()}quantifier(e=!1){let t;const 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"{":const r=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:r,atMost:r};break;case",":let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:r,atMost:e}):t={atLeast:r,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;Za(t)}if(!0!==e||void 0!==t)return Za(t)?("?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(r),t):void 0}atom(){let e;const 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()),Za(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):Xa()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[Ha("\n"),Ha("\r"),Ha("\u2028"),Ha("\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=ei;break;case"D":e=ei,t=!0;break;case"s":e=ri;break;case"S":e=ri,t=!0;break;case"w":e=ti;break;case"W":e=ti,t=!0}return Za(e)?{type:"Set",value:e,complement:t}:Xa()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=Ha("\f");break;case"n":e=Ha("\n");break;case"r":e=Ha("\r");break;case"t":e=Ha("\t");break;case"v":e=Ha("\v")}return Za(e)?{type:"Character",value:e}:Xa()}controlLetterEscapeAtom(){this.consumeChar("c");const 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:Ha("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:Ha(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:Ha(this.popChar())}}}characterClass(){const e=[];let t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){const t=this.classAtom();t.type;if(Ja(t)&&this.isRangeDash()){this.consumeChar("-");const r=this.classAtom();r.type;if(Ja(r)){if(r.value<t.value)throw Error("Range out of order in character class");e.push({from:t.value,to:r.value})}else Ya(t.value,e),e.push(Ha("-")),Ya(r.value,e)}else Ya(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:Ha("\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;if(this.consumeChar("("),"?"===this.peekChar(0))this.consumeChar("?"),this.consumeChar(":"),e=!1;else this.groupIdx++;const t=this.disjunction();this.consumeChar(")");const r={type:"Group",capturing:e,value:t};return e&&(r.idx=this.groupIdx),r}positiveInteger(){let e=this.popChar();if(!1===ii.test(e))throw Error("Expecting a positive integer");for(;ai.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(!1===ai.test(e))throw Error("Expecting an integer");for(;ai.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){const 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:Ha(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 ai.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(){const e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(t){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++){const e=this.popChar();if(!1===ni.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(){const 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}}},oi=class{static{Ge(this,"BaseRegExpVisitor")}visitChildren(e){for(const t in e){const 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){}},li=/\r?\n/gm,ui=new si,ci=class extends oi{static{Ge(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){const t=String.fromCharCode(e.value);if(this.multiline||"\n"!==t||(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const e=yi(t);this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e)}}visitSet(e){if(!this.multiline){const t=this.regex.substring(e.loc.begin,e.loc.end),r=new RegExp(t);this.multiline=Boolean("\n".match(r))}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){if("Group"===e.type){if(e.quantifier)return}super.visitChildren(e)}},pi=new ci;function di(e){try{"string"!=typeof e&&(e=e.source),e=`/${e}/`;const t=ui.pattern(e),r=[];for(const n of t.value.value)pi.reset(e),pi.visit(n),r.push({start:pi.startRegexp,end:pi.endRegex});return r}catch{return[]}}function fi(e){try{return"string"==typeof e&&(e=new RegExp(e)),e=e.toString(),pi.reset(e),pi.visit(ui.pattern(e)),pi.multiline}catch{return!1}}Ge(di,"getTerminalParts"),Ge(fi,"isMultilineComment");var mi="\f\n\r\t\v \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000\ufeff".split("");function hi(e){const t="string"==typeof e?new RegExp(e):e;return mi.some(e=>t.test(e))}function yi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gi(e,t){const r=Ti(e),n=t.match(r);return!!n&&n[0].length>0}function Ti(e){"string"==typeof e&&(e=new RegExp(e));const t=e,r=e.source;let n=0;function a(){let e,i="";function s(e){i+=r.substr(n,e),n+=e}function o(e){i+="(?:"+r.substr(n,e)+"|$)",n+=e}for(Ge(s,"appendRaw"),Ge(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":t.unicode?"{"===r[n+2]?o(r.indexOf("}",n)-n+1):o(6):o(2);break;case"p":case"P":t.unicode?o(r.indexOf("}",n)-n+1):o(2);break;case"k":o(r.indexOf(">",n)-n+1);break;default:o(2)}break;case"[":e=/\[(?:\\.|.)*?\]/g,e.lastIndex=n,e=e.exec(r)||[],o(e[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":s(1);break;case"{":e=/\{\d+,?\d*\}/g,e.lastIndex=n,e=e.exec(r),e?s(e[0].length):o(1);break;case"(":if("?"===r[n+1])switch(r[n+2]){case":":i+="(?:",n+=3,i+=a()+"|$)";break;case"=":i+="(?=",n+=3,i+=a()+")";break;case"!":e=n,n+=3,a(),i+=r.substr(e,n-e);break;case"<":switch(r[n+3]){case"=":case"!":e=n,n+=4,a(),i+=r.substr(e,n-e);break;default:s(r.indexOf(">",n)-n+1),i+=a()+"|$)"}}else s(1),i+=a()+"|$)";break;case")":return++n,i;default:o(1)}return i}return Ge(a,"process"),new RegExp(a(),e.flags)}function vi(e){return e.rules.find(e=>Pn(e)&&e.entry)}function $i(e){return e.rules.filter(e=>Jn(e)&&e.hidden)}function Ri(e,t){const r=new Set,n=vi(e);if(!n)return new Set(e.rules);const a=[n].concat($i(e));for(const s of a)bi(s,r,t);const i=new Set;for(const s of e.rules)(r.has(s.name)||Jn(s)&&s.hidden)&&i.add(s);return i}function bi(e,t,r){t.add(e.name),mr(e).forEach(e=>{if(Kn(e)||r&&ta(e)){const n=e.rule.ref;n&&!t.has(n.name)&&bi(n,t,r)}})}function Ei(e){const t=new Set;return mr(e).forEach(e=>{Qr(e)&&(Pn(e.type.ref)&&t.add(e.type.ref),un(e.type.ref)&&Pn(e.type.ref.$container)&&t.add(e.type.ref.$container))}),t}function Ai(e){if(e.terminal)return e.terminal;if(e.type.ref){const t=Pi(e.type.ref);return t?.terminal}}function Ci(e){return e.hidden&&!hi(Hi(e))}function Si(e,t){return e&&t?xi(e,t,e.astNode,!0):[]}function ki(e,t,r){if(!e||!t)return;const n=xi(e,t,e.astNode,!0);return 0!==n.length?n[r=void 0!==r?Math.max(0,Math.min(r,n.length-1)):0]:void 0}function xi(e,t,r,n){if(!n){const r=lr(e.grammarSource,Gr);if(r&&r.feature===t)return[e]}return Yt(e)&&e.astNode===r?e.content.flatMap(e=>xi(e,t,r,!1)):[]}function wi(e,t){return e?Ii(e,t,e?.astNode):[]}function Ni(e,t,r){if(!e)return;const n=Ii(e,t,e?.astNode);return 0!==n.length?n[r=void 0!==r?Math.max(0,Math.min(r,n.length-1)):0]:void 0}function Ii(e,t,r){if(e.astNode!==r)return[];if(vn(e.grammarSource)&&e.grammarSource.value===t)return[e];const n=Ea(e).iterator();let a;const i=[];do{if(a=n.next(),!a.done){const e=a.value;e.astNode===r?vn(e.grammarSource)&&e.grammarSource.value===t&&i.push(e):n.prune()}}while(!a.done);return i}function _i(e){const t=e.astNode;for(;t===e.container?.astNode;){const t=lr(e.grammarSource,Gr);if(t)return t;e=e.container}}function Pi(e){let t=e;return un(t)&&(_r(t.$container)?t=t.$container.$container:Sr(t.$container)?t=t.$container:Ba(t.$container)),Oi(e,t,new Map)}function Oi(e,t,r){function n(t,n){let a;return lr(t,Gr)||(a=Oi(n,n,r)),r.set(e,a),a}if(Ge(n,"go"),r.has(e))return r.get(e);r.set(e,void 0);for(const a of mr(t)){if(Gr(a)&&"name"===a.feature.toLowerCase())return r.set(e,a),a;if(Kn(a)&&Pn(a.rule.ref))return n(a,a.rule.ref);if(qn(a)&&a.typeRef?.ref)return n(a,a.typeRef.ref)}}function Di(e){const t=e.$container;if(on(t)){const r=t.elements;for(let t=r.indexOf(e)-1;t>=0;t--){const e=r[t];if(_r(e))return e;{const e=mr(r[t]).find(_r);if(e)return e}}}return Ar(t)?Di(t):void 0}function Li(e,t){return"?"===e||"*"===e||on(t)&&Boolean(t.guardCondition)}function Mi(e){return"*"===e||"+"===e}function ji(e){return"+="===e}function Fi(e){return Gi(e,new Set)}function Gi(e,t){if(t.has(e))return!0;t.add(e);for(const r of mr(e))if(Kn(r)){if(!r.rule.ref)return!1;if(Pn(r.rule.ref)&&!Gi(r.rule.ref,t))return!1;if(pn(r.rule.ref))return!1}else{if(Gr(r))return!1;if(_r(r))return!1}return Boolean(e.definition)}function Ki(e){return zi(e.type,new Set)}function zi(e,t){if(t.has(e))return!0;if(t.add(e),jr(e))return!1;if(Dn(e))return!1;if(ua(e))return e.types.every(e=>zi(e,t));if(qn(e)){if(void 0!==e.primitiveType)return!0;if(void 0!==e.stringType)return!0;if(void 0!==e.typeRef){const r=e.typeRef.ref;return!!na(r)&&zi(r.type,t)}return!1}return!1}function qi(e){if(!Jn(e)){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){const t=e.returnType.ref;if(t)return t.name}}}function Ui(e){if(Sr(e))return Pn(e)&&Fi(e)?e.name:qi(e)??e.name;if(gn(e)||na(e)||Fn(e))return e.name;if(_r(e)){const t=Bi(e);if(t)return t}else if(un(e))return e.name;throw new Error("Cannot get name of Unknown Type")}function Bi(e){return e.inferredType?e.inferredType.name:e.type?.ref?Ui(e.type.ref):void 0}function Wi(e){return Jn(e)?e.type?.name??"string":Pn(e)&&Fi(e)?e.name:qi(e)??e.name}function Vi(e){return Jn(e)?e.type?.name??"string":qi(e)??e.name}function Hi(e){const t={s:!1,i:!1,u:!1},r=Qi(e.definition,t),n=Object.entries(t).filter(([,e])=>e).map(([e])=>e).join("");return new RegExp(r,n)}Ge(hi,"isWhitespace"),Ge(yi,"escapeRegExp"),Ge(gi,"partialMatches"),Ge(Ti,"partialRegExp"),Ge(vi,"getEntryRule"),Ge($i,"getHiddenRules"),Ge(Ri,"getAllReachableRules"),Ge(bi,"ruleDfs"),Ge(Ei,"getAllRulesUsedForCrossReferences"),Ge(Ai,"getCrossReferenceTerminal"),Ge(Ci,"isCommentTerminal"),Ge(Si,"findNodesForProperty"),Ge(ki,"findNodeForProperty"),Ge(xi,"findNodesForPropertyInternal"),Ge(wi,"findNodesForKeyword"),Ge(Ni,"findNodeForKeyword"),Ge(Ii,"findNodesForKeywordInternal"),Ge(_i,"findAssignment"),Ge(Pi,"findNameAssignment"),Ge(Oi,"findNameAssignmentInternal"),Ge(Di,"getActionAtElement"),Ge(Li,"isOptionalCardinality"),Ge(Mi,"isArrayCardinality"),Ge(ji,"isArrayOperator"),Ge(Fi,"isDataTypeRule"),Ge(Gi,"isDataTypeRuleInternal"),Ge(Ki,"isDataType"),Ge(zi,"isDataTypeInternal"),Ge(qi,"getExplicitRuleType"),Ge(Ui,"getTypeName"),Ge(Bi,"getActionType"),Ge(Wi,"getRuleTypeName"),Ge(Vi,"getRuleType"),Ge(Hi,"terminalRegex");var Yi=/[\s\S]/.source;function Qi(e,t){if(Vn(e))return Zi(e);if(Zn(e))return Xi(e);if(Ur(e))return ts(e);if(ta(e)){const t=e.rule.ref;if(!t)throw new Error("Missing rule reference.");return ns(Qi(t.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}if(En(e))return es(e);if(fa(e))return Ji(e);if(Mn(e)){const r=e.regex.lastIndexOf("/"),n=e.regex.substring(1,r),a=e.regex.substring(r+1);return t&&(t.i=a.includes("i"),t.s=a.includes("s"),t.u=a.includes("u")),ns(n,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}if(ga(e))return ns(Yi,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});throw new Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}function Zi(e){return ns(e.elements.map(e=>Qi(e)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function Xi(e){return ns(e.elements.map(e=>Qi(e)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function Ji(e){return ns(`${Yi}*?${Qi(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function es(e){return ns(`(?!${Qi(e.terminal)})${Yi}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function ts(e){return e.right?ns(`[${rs(e.left)}-${rs(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):ns(rs(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function rs(e){return yi(e.value)}function ns(e,t){if(t.parenthesized||t.lookahead||!1!==t.wrap){e=`(${t.lookahead??(t.parenthesized?"":"?:")}${e})`}return t.cardinality?`${e}${t.cardinality}`:e}function as(e){const t=[],r=e.Grammar;for(const n of r.rules)Jn(n)&&Ci(n)&&fi(Hi(n))&&t.push(n.name);return{multilineCommentRules:t,nameRegexp:Na}}Ge(Qi,"abstractElementToRegex"),Ge(Zi,"terminalAlternativesToRegex"),Ge(Xi,"terminalGroupToRegex"),Ge(Ji,"untilTokenToRegex"),Ge(es,"negateTokenToRegex"),Ge(ts,"characterRangeToRegex"),Ge(rs,"keywordToRegex"),Ge(ns,"withCardinality"),Ge(as,"createGrammarConfig");var is="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,ss="object"==typeof self&&self&&self.Object===Object&&self,os=is||ss||Function("return this")(),ls=os.Symbol,us=Object.prototype,cs=us.hasOwnProperty,ps=us.toString,ds=ls?ls.toStringTag:void 0;function fs(e){var t=cs.call(e,ds),r=e[ds];try{e[ds]=void 0;var n=!0}catch(i){}var a=ps.call(e);return n&&(t?e[ds]=r:delete e[ds]),a}Ge(fs,"getRawTag");var ms=fs,hs=Object.prototype.toString;function ys(e){return hs.call(e)}Ge(ys,"objectToString");var gs=ys,Ts=ls?ls.toStringTag:void 0;function vs(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ts&&Ts in Object(e)?ms(e):gs(e)}Ge(vs,"baseGetTag");var $s=vs;function Rs(e){return null!=e&&"object"==typeof e}Ge(Rs,"isObjectLike");var bs=Rs;function Es(e){return"symbol"==typeof e||bs(e)&&"[object Symbol]"==$s(e)}Ge(Es,"isSymbol");var As=Es;function Cs(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}Ge(Cs,"arrayMap");var Ss=Cs,ks=Array.isArray,xs=ls?ls.prototype:void 0,ws=xs?xs.toString:void 0;function Ns(e){if("string"==typeof e)return e;if(ks(e))return Ss(e,Ns)+"";if(As(e))return ws?ws.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}Ge(Ns,"baseToString");var Is=Ns,_s=/\s/;function Ps(e){for(var t=e.length;t--&&_s.test(e.charAt(t)););return t}Ge(Ps,"trimmedEndIndex");var Os=Ps,Ds=/^\s+/;function Ls(e){return e?e.slice(0,Os(e)+1).replace(Ds,""):e}Ge(Ls,"baseTrim");var Ms=Ls;function js(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Ge(js,"isObject");var Fs=js,Gs=/^[-+]0x[0-9a-f]+$/i,Ks=/^0b[01]+$/i,zs=/^0o[0-7]+$/i,qs=parseInt;function Us(e){if("number"==typeof e)return e;if(As(e))return NaN;if(Fs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Fs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ms(e);var r=Ks.test(e);return r||zs.test(e)?qs(e.slice(2),r?2:8):Gs.test(e)?NaN:+e}Ge(Us,"toNumber");var Bs=Us,Ws=1/0;function Vs(e){return e?(e=Bs(e))===Ws||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}Ge(Vs,"toFinite");var Hs=Vs;function Ys(e){var t=Hs(e),r=t%1;return t==t?r?t-r:t:0}Ge(Ys,"toInteger");var Qs=Ys;function Zs(e){return e}Ge(Zs,"identity");var Xs=Zs;function Js(e){if(!Fs(e))return!1;var t=$s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}Ge(Js,"isFunction");var eo,to=Js,ro=os["__core-js_shared__"],no=(eo=/[^.]+$/.exec(ro&&ro.keys&&ro.keys.IE_PROTO||""))?"Symbol(src)_1."+eo:"";function ao(e){return!!no&&no in e}Ge(ao,"isMasked");var io=ao,so=Function.prototype.toString;function oo(e){if(null!=e){try{return so.call(e)}catch(t){}try{return e+""}catch(t){}}return""}Ge(oo,"toSource");var lo=oo,uo=/^\[object .+?Constructor\]$/,co=Function.prototype,po=Object.prototype,fo=co.toString,mo=po.hasOwnProperty,ho=RegExp("^"+fo.call(mo).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yo(e){return!(!Fs(e)||io(e))&&(to(e)?ho:uo).test(lo(e))}Ge(yo,"baseIsNative");var go=yo;function To(e,t){return null==e?void 0:e[t]}Ge(To,"getValue");var vo=To;function $o(e,t){var r=vo(e,t);return go(r)?r:void 0}Ge($o,"getNative");var Ro=$o,bo=Ro(os,"WeakMap"),Eo=Object.create,Ao=function(){function e(){}return Ge(e,"object"),function(t){if(!Fs(t))return{};if(Eo)return Eo(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Co(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)}Ge(Co,"apply");var So=Co;function ko(){}Ge(ko,"noop");var xo=ko;function wo(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}Ge(wo,"copyArray");var No=wo,Io=Date.now;function _o(e){var t=0,r=0;return function(){var n=Io(),a=16-(n-r);if(r=n,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}Ge(_o,"shortOut");var Po=_o;function Oo(e){return function(){return e}}Ge(Oo,"constant");var Do=Oo,Lo=function(){try{var e=Ro(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),Mo=Po(Lo?function(e,t){return Lo(e,"toString",{configurable:!0,enumerable:!1,value:Do(t),writable:!0})}:Xs);function jo(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}Ge(jo,"arrayEach");var Fo=jo;function Go(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}Ge(Go,"baseFindIndex");var Ko=Go;function zo(e){return e!=e}Ge(zo,"baseIsNaN");var qo=zo;function Uo(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}Ge(Uo,"strictIndexOf");var Bo=Uo;function Wo(e,t,r){return t==t?Bo(e,t,r):Ko(e,qo,r)}Ge(Wo,"baseIndexOf");var Vo=Wo;function Ho(e,t){return!!(null==e?0:e.length)&&Vo(e,t,0)>-1}Ge(Ho,"arrayIncludes");var Yo=Ho,Qo=/^(?:0|[1-9]\d*)$/;function Zo(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Qo.test(e))&&e>-1&&e%1==0&&e<t}Ge(Zo,"isIndex");var Xo=Zo;function Jo(e,t,r){"__proto__"==t&&Lo?Lo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}Ge(Jo,"baseAssignValue");var el=Jo;function tl(e,t){return e===t||e!=e&&t!=t}Ge(tl,"eq");var rl=tl,nl=Object.prototype.hasOwnProperty;function al(e,t,r){var n=e[t];nl.call(e,t)&&rl(n,r)&&(void 0!==r||t in e)||el(e,t,r)}Ge(al,"assignValue");var il=al;function sl(e,t,r,n){var a=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var o=t[i],l=n?n(r[o],e[o],o,r,e):void 0;void 0===l&&(l=e[o]),a?el(r,o,l):il(r,o,l)}return r}Ge(sl,"copyObject");var ol=sl,ll=Math.max;function ul(e,t,r){return t=ll(void 0===t?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=ll(n.length-t,0),s=Array(i);++a<i;)s[a]=n[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=n[a];return o[t]=r(s),So(e,this,o)}}Ge(ul,"overRest");var cl=ul;function pl(e,t){return Mo(cl(e,t,Xs),e+"")}Ge(pl,"baseRest");var dl=pl;function fl(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}Ge(fl,"isLength");var ml=fl;function hl(e){return null!=e&&ml(e.length)&&!to(e)}Ge(hl,"isArrayLike");var yl=hl;function gl(e,t,r){if(!Fs(r))return!1;var n=typeof t;return!!("number"==n?yl(r)&&Xo(t,r.length):"string"==n&&t in r)&&rl(r[t],e)}Ge(gl,"isIterateeCall");var Tl=gl;function vl(e){return dl(function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,s&&Tl(r[0],r[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var o=r[n];o&&e(t,o,n,i)}return t})}Ge(vl,"createAssigner");var $l=vl,Rl=Object.prototype;function bl(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Rl)}Ge(bl,"isPrototype");var El=bl;function Al(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}Ge(Al,"baseTimes");var Cl=Al;function Sl(e){return bs(e)&&"[object Arguments]"==$s(e)}Ge(Sl,"baseIsArguments");var kl=Sl,xl=Object.prototype,wl=xl.hasOwnProperty,Nl=xl.propertyIsEnumerable,Il=kl(function(){return arguments}())?kl:function(e){return bs(e)&&wl.call(e,"callee")&&!Nl.call(e,"callee")},_l=Il;function Pl(){return!1}Ge(Pl,"stubFalse");var Ol=Pl,Dl="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ll=Dl&&"object"==typeof module&&module&&!module.nodeType&&module,Ml=Ll&&Ll.exports===Dl?os.Buffer:void 0,jl=(Ml?Ml.isBuffer:void 0)||Ol,Fl={};function Gl(e){return bs(e)&&ml(e.length)&&!!Fl[$s(e)]}Fl["[object Float32Array]"]=Fl["[object Float64Array]"]=Fl["[object Int8Array]"]=Fl["[object Int16Array]"]=Fl["[object Int32Array]"]=Fl["[object Uint8Array]"]=Fl["[object Uint8ClampedArray]"]=Fl["[object Uint16Array]"]=Fl["[object Uint32Array]"]=!0,Fl["[object Arguments]"]=Fl["[object Array]"]=Fl["[object ArrayBuffer]"]=Fl["[object Boolean]"]=Fl["[object DataView]"]=Fl["[object Date]"]=Fl["[object Error]"]=Fl["[object Function]"]=Fl["[object Map]"]=Fl["[object Number]"]=Fl["[object Object]"]=Fl["[object RegExp]"]=Fl["[object Set]"]=Fl["[object String]"]=Fl["[object WeakMap]"]=!1,Ge(Gl,"baseIsTypedArray");var Kl=Gl;function zl(e){return function(t){return e(t)}}Ge(zl,"baseUnary");var ql=zl,Ul="object"==typeof exports&&exports&&!exports.nodeType&&exports,Bl=Ul&&"object"==typeof module&&module&&!module.nodeType&&module,Wl=Bl&&Bl.exports===Ul&&is.process,Vl=function(){try{var e=Bl&&Bl.require&&Bl.require("util").types;return e||Wl&&Wl.binding&&Wl.binding("util")}catch(t){}}(),Hl=Vl&&Vl.isTypedArray,Yl=Hl?ql(Hl):Kl,Ql=Object.prototype.hasOwnProperty;function Zl(e,t){var r=ks(e),n=!r&&_l(e),a=!r&&!n&&jl(e),i=!r&&!n&&!a&&Yl(e),s=r||n||a||i,o=s?Cl(e.length,String):[],l=o.length;for(var u in e)!t&&!Ql.call(e,u)||s&&("length"==u||a&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Xo(u,l))||o.push(u);return o}Ge(Zl,"arrayLikeKeys");var Xl=Zl;function Jl(e,t){return function(r){return e(t(r))}}Ge(Jl,"overArg");var eu=Jl,tu=eu(Object.keys,Object),ru=Object.prototype.hasOwnProperty;function nu(e){if(!El(e))return tu(e);var t=[];for(var r in Object(e))ru.call(e,r)&&"constructor"!=r&&t.push(r);return t}Ge(nu,"baseKeys");var au=nu;function iu(e){return yl(e)?Xl(e):au(e)}Ge(iu,"keys");var su=iu,ou=Object.prototype.hasOwnProperty,lu=$l(function(e,t){if(El(t)||yl(t))ol(t,su(t),e);else for(var r in t)ou.call(t,r)&&il(e,r,t[r])});function uu(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}Ge(uu,"nativeKeysIn");var cu=uu,pu=Object.prototype.hasOwnProperty;function du(e){if(!Fs(e))return cu(e);var t=El(e),r=[];for(var n in e)("constructor"!=n||!t&&pu.call(e,n))&&r.push(n);return r}Ge(du,"baseKeysIn");var fu=du;function mu(e){return yl(e)?Xl(e,!0):fu(e)}Ge(mu,"keysIn");var hu=mu,yu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gu=/^\w*$/;function Tu(e,t){if(ks(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!As(e))||(gu.test(e)||!yu.test(e)||null!=t&&e in Object(t))}Ge(Tu,"isKey");var vu=Tu,$u=Ro(Object,"create");function Ru(){this.__data__=$u?$u(null):{},this.size=0}Ge(Ru,"hashClear");var bu=Ru;function Eu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}Ge(Eu,"hashDelete");var Au=Eu,Cu=Object.prototype.hasOwnProperty;function Su(e){var t=this.__data__;if($u){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Cu.call(t,e)?t[e]:void 0}Ge(Su,"hashGet");var ku=Su,xu=Object.prototype.hasOwnProperty;function wu(e){var t=this.__data__;return $u?void 0!==t[e]:xu.call(t,e)}Ge(wu,"hashHas");var Nu=wu;function Iu(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$u&&void 0===t?"__lodash_hash_undefined__":t,this}Ge(Iu,"hashSet");var _u=Iu;function Pu(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])}}Ge(Pu,"Hash"),Pu.prototype.clear=bu,Pu.prototype.delete=Au,Pu.prototype.get=ku,Pu.prototype.has=Nu,Pu.prototype.set=_u;var Ou=Pu;function Du(){this.__data__=[],this.size=0}Ge(Du,"listCacheClear");var Lu=Du;function Mu(e,t){for(var r=e.length;r--;)if(rl(e[r][0],t))return r;return-1}Ge(Mu,"assocIndexOf");var ju=Mu,Fu=Array.prototype.splice;function Gu(e){var t=this.__data__,r=ju(t,e);return!(r<0)&&(r==t.length-1?t.pop():Fu.call(t,r,1),--this.size,!0)}Ge(Gu,"listCacheDelete");var Ku=Gu;function zu(e){var t=this.__data__,r=ju(t,e);return r<0?void 0:t[r][1]}Ge(zu,"listCacheGet");var qu=zu;function Uu(e){return ju(this.__data__,e)>-1}Ge(Uu,"listCacheHas");var Bu=Uu;function Wu(e,t){var r=this.__data__,n=ju(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}Ge(Wu,"listCacheSet");var Vu=Wu;function Hu(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])}}Ge(Hu,"ListCache"),Hu.prototype.clear=Lu,Hu.prototype.delete=Ku,Hu.prototype.get=qu,Hu.prototype.has=Bu,Hu.prototype.set=Vu;var Yu=Hu,Qu=Ro(os,"Map");function Zu(){this.size=0,this.__data__={hash:new Ou,map:new(Qu||Yu),string:new Ou}}Ge(Zu,"mapCacheClear");var Xu=Zu;function Ju(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}Ge(Ju,"isKeyable");var ec=Ju;function tc(e,t){var r=e.__data__;return ec(t)?r["string"==typeof t?"string":"hash"]:r.map}Ge(tc,"getMapData");var rc=tc;function nc(e){var t=rc(this,e).delete(e);return this.size-=t?1:0,t}Ge(nc,"mapCacheDelete");var ac=nc;function ic(e){return rc(this,e).get(e)}Ge(ic,"mapCacheGet");var sc=ic;function oc(e){return rc(this,e).has(e)}Ge(oc,"mapCacheHas");var lc=oc;function uc(e,t){var r=rc(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}Ge(uc,"mapCacheSet");var cc=uc;function pc(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])}}Ge(pc,"MapCache"),pc.prototype.clear=Xu,pc.prototype.delete=ac,pc.prototype.get=sc,pc.prototype.has=lc,pc.prototype.set=cc;var dc=pc;function fc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=Ge(function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var s=e.apply(this,n);return r.cache=i.set(a,s)||i,s},"memoized");return r.cache=new(fc.Cache||dc),r}Ge(fc,"memoize"),fc.Cache=dc;var mc=fc;function hc(e){var t=mc(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}Ge(hc,"memoizeCapped");var yc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gc=/\\(\\)?/g,Tc=hc(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(yc,function(e,r,n,a){t.push(n?a.replace(gc,"$1"):r||e)}),t});function vc(e){return null==e?"":Is(e)}Ge(vc,"toString");var $c=vc;function Rc(e,t){return ks(e)?e:vu(e,t)?[e]:Tc($c(e))}Ge(Rc,"castPath");var bc=Rc;function Ec(e){if("string"==typeof e||As(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}Ge(Ec,"toKey");var Ac=Ec;function Cc(e,t){for(var r=0,n=(t=bc(t,e)).length;null!=e&&r<n;)e=e[Ac(t[r++])];return r&&r==n?e:void 0}Ge(Cc,"baseGet");var Sc=Cc;function kc(e,t,r){var n=null==e?void 0:Sc(e,t);return void 0===n?r:n}Ge(kc,"get");var xc=kc;function wc(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}Ge(wc,"arrayPush");var Nc=wc,Ic=ls?ls.isConcatSpreadable:void 0;function _c(e){return ks(e)||_l(e)||!!(Ic&&e&&e[Ic])}Ge(_c,"isFlattenable");var Pc=_c;function Oc(e,t,r,n,a){var i=-1,s=e.length;for(r||(r=Pc),a||(a=[]);++i<s;){var o=e[i];t>0&&r(o)?t>1?Oc(o,t-1,r,n,a):Nc(a,o):n||(a[a.length]=o)}return a}Ge(Oc,"baseFlatten");var Dc=Oc;function Lc(e){return(null==e?0:e.length)?Dc(e,1):[]}Ge(Lc,"flatten");var Mc=Lc,jc=eu(Object.getPrototypeOf,Object);function Fc(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n<a;)i[n]=e[n+t];return i}Ge(Fc,"baseSlice");var Gc=Fc;function Kc(e,t,r,n){var a=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++a]);++a<i;)r=t(r,e[a],a,e);return r}Ge(Kc,"arrayReduce");var zc=Kc;function qc(){this.__data__=new Yu,this.size=0}Ge(qc,"stackClear");var Uc=qc;function Bc(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}Ge(Bc,"stackDelete");var Wc=Bc;function Vc(e){return this.__data__.get(e)}Ge(Vc,"stackGet");var Hc=Vc;function Yc(e){return this.__data__.has(e)}Ge(Yc,"stackHas");var Qc=Yc;function Zc(e,t){var r=this.__data__;if(r instanceof Yu){var n=r.__data__;if(!Qu||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new dc(n)}return r.set(e,t),this.size=r.size,this}Ge(Zc,"stackSet");var Xc=Zc;function Jc(e){var t=this.__data__=new Yu(e);this.size=t.size}Ge(Jc,"Stack"),Jc.prototype.clear=Uc,Jc.prototype.delete=Wc,Jc.prototype.get=Hc,Jc.prototype.has=Qc,Jc.prototype.set=Xc;var ep=Jc;function tp(e,t){return e&&ol(t,su(t),e)}Ge(tp,"baseAssign");var rp=tp;function np(e,t){return e&&ol(t,hu(t),e)}Ge(np,"baseAssignIn");var ap=np,ip="object"==typeof exports&&exports&&!exports.nodeType&&exports,sp=ip&&"object"==typeof module&&module&&!module.nodeType&&module,op=sp&&sp.exports===ip?os.Buffer:void 0,lp=op?op.allocUnsafe:void 0;function up(e,t){if(t)return e.slice();var r=e.length,n=lp?lp(r):new e.constructor(r);return e.copy(n),n}Ge(up,"cloneBuffer");var cp=up;function pp(e,t){for(var r=-1,n=null==e?0:e.length,a=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[a++]=s)}return i}Ge(pp,"arrayFilter");var dp=pp;function fp(){return[]}Ge(fp,"stubArray");var mp=fp,hp=Object.prototype.propertyIsEnumerable,yp=Object.getOwnPropertySymbols,gp=yp?function(e){return null==e?[]:(e=Object(e),dp(yp(e),function(t){return hp.call(e,t)}))}:mp;function Tp(e,t){return ol(e,gp(e),t)}Ge(Tp,"copySymbols");var vp=Tp,$p=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Nc(t,gp(e)),e=jc(e);return t}:mp;function Rp(e,t){return ol(e,$p(e),t)}Ge(Rp,"copySymbolsIn");var bp=Rp;function Ep(e,t,r){var n=t(e);return ks(e)?n:Nc(n,r(e))}Ge(Ep,"baseGetAllKeys");var Ap=Ep;function Cp(e){return Ap(e,su,gp)}Ge(Cp,"getAllKeys");var Sp=Cp;function kp(e){return Ap(e,hu,$p)}Ge(kp,"getAllKeysIn");var xp=kp,wp=Ro(os,"DataView"),Np=Ro(os,"Promise"),Ip=Ro(os,"Set"),_p="[object Map]",Pp="[object Promise]",Op="[object Set]",Dp="[object WeakMap]",Lp="[object DataView]",Mp=lo(wp),jp=lo(Qu),Fp=lo(Np),Gp=lo(Ip),Kp=lo(bo),zp=$s;(wp&&zp(new wp(new ArrayBuffer(1)))!=Lp||Qu&&zp(new Qu)!=_p||Np&&zp(Np.resolve())!=Pp||Ip&&zp(new Ip)!=Op||bo&&zp(new bo)!=Dp)&&(zp=Ge(function(e){var t=$s(e),r="[object Object]"==t?e.constructor:void 0,n=r?lo(r):"";if(n)switch(n){case Mp:return Lp;case jp:return _p;case Fp:return Pp;case Gp:return Op;case Kp:return Dp}return t},"getTag"));var qp=zp,Up=Object.prototype.hasOwnProperty;function Bp(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Up.call(e,"index")&&(r.index=e.index,r.input=e.input),r}Ge(Bp,"initCloneArray");var Wp=Bp,Vp=os.Uint8Array;function Hp(e){var t=new e.constructor(e.byteLength);return new Vp(t).set(new Vp(e)),t}Ge(Hp,"cloneArrayBuffer");var Yp=Hp;function Qp(e,t){var r=t?Yp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}Ge(Qp,"cloneDataView");var Zp=Qp,Xp=/\w*$/;function Jp(e){var t=new e.constructor(e.source,Xp.exec(e));return t.lastIndex=e.lastIndex,t}Ge(Jp,"cloneRegExp");var ed=Jp,td=ls?ls.prototype:void 0,rd=td?td.valueOf:void 0;function nd(e){return rd?Object(rd.call(e)):{}}Ge(nd,"cloneSymbol");var ad=nd;function id(e,t){var r=t?Yp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}Ge(id,"cloneTypedArray");var sd=id;function od(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return Yp(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return Zp(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 sd(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 ed(e);case"[object Symbol]":return ad(e)}}Ge(od,"initCloneByTag");var ld=od;function ud(e){return"function"!=typeof e.constructor||El(e)?{}:Ao(jc(e))}Ge(ud,"initCloneObject");var cd=ud;function pd(e){return bs(e)&&"[object Map]"==qp(e)}Ge(pd,"baseIsMap");var dd=pd,fd=Vl&&Vl.isMap,md=fd?ql(fd):dd;function hd(e){return bs(e)&&"[object Set]"==qp(e)}Ge(hd,"baseIsSet");var yd=hd,gd=Vl&&Vl.isSet,Td=gd?ql(gd):yd,vd="[object Arguments]",$d="[object Function]",Rd="[object Object]",bd={};function Ed(e,t,r,n,a,i){var s,o=1&t,l=2&t,u=4&t;if(r&&(s=a?r(e,n,a,i):r(e)),void 0!==s)return s;if(!Fs(e))return e;var c=ks(e);if(c){if(s=Wp(e),!o)return No(e,s)}else{var p=qp(e),d=p==$d||"[object GeneratorFunction]"==p;if(jl(e))return cp(e,o);if(p==Rd||p==vd||d&&!a){if(s=l||d?{}:cd(e),!o)return l?bp(e,ap(s,e)):vp(e,rp(s,e))}else{if(!bd[p])return a?e:{};s=ld(e,p,o)}}i||(i=new ep);var f=i.get(e);if(f)return f;i.set(e,s),Td(e)?e.forEach(function(n){s.add(Ed(n,t,r,n,e,i))}):md(e)&&e.forEach(function(n,a){s.set(a,Ed(n,t,r,a,e,i))});var m=c?void 0:(u?l?xp:Sp:l?hu:su)(e);return Fo(m||e,function(n,a){m&&(n=e[a=n]),il(s,a,Ed(n,t,r,a,e,i))}),s}bd[vd]=bd["[object Array]"]=bd["[object ArrayBuffer]"]=bd["[object DataView]"]=bd["[object Boolean]"]=bd["[object Date]"]=bd["[object Float32Array]"]=bd["[object Float64Array]"]=bd["[object Int8Array]"]=bd["[object Int16Array]"]=bd["[object Int32Array]"]=bd["[object Map]"]=bd["[object Number]"]=bd[Rd]=bd["[object RegExp]"]=bd["[object Set]"]=bd["[object String]"]=bd["[object Symbol]"]=bd["[object Uint8Array]"]=bd["[object Uint8ClampedArray]"]=bd["[object Uint16Array]"]=bd["[object Uint32Array]"]=!0,bd["[object Error]"]=bd[$d]=bd["[object WeakMap]"]=!1,Ge(Ed,"baseClone");var Ad=Ed;function Cd(e){return Ad(e,4)}Ge(Cd,"clone");var Sd=Cd;function kd(e){for(var t=-1,r=null==e?0:e.length,n=0,a=[];++t<r;){var i=e[t];i&&(a[n++]=i)}return a}Ge(kd,"compact");var xd=kd;function wd(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}Ge(wd,"setCacheAdd");var Nd=wd;function Id(e){return this.__data__.has(e)}Ge(Id,"setCacheHas");var _d=Id;function Pd(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new dc;++t<r;)this.add(e[t])}Ge(Pd,"SetCache"),Pd.prototype.add=Pd.prototype.push=Nd,Pd.prototype.has=_d;var Od=Pd;function Dd(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}Ge(Dd,"arraySome");var Ld=Dd;function Md(e,t){return e.has(t)}Ge(Md,"cacheHas");var jd=Md;function Fd(e,t,r,n,a,i){var s=1&r,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var p=-1,d=!0,f=2&r?new Od:void 0;for(i.set(e,t),i.set(t,e);++p<o;){var m=e[p],h=t[p];if(n)var y=s?n(h,m,p,t,e,i):n(m,h,p,e,t,i);if(void 0!==y){if(y)continue;d=!1;break}if(f){if(!Ld(t,function(e,t){if(!jd(f,t)&&(m===e||a(m,e,r,n,i)))return f.push(t)})){d=!1;break}}else if(m!==h&&!a(m,h,r,n,i)){d=!1;break}}return i.delete(e),i.delete(t),d}Ge(Fd,"equalArrays");var Gd=Fd;function Kd(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}Ge(Kd,"mapToArray");var zd=Kd;function qd(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}Ge(qd,"setToArray");var Ud=qd,Bd=ls?ls.prototype:void 0,Wd=Bd?Bd.valueOf:void 0;function Vd(e,t,r,n,a,i,s){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Vp(e),new Vp(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return rl(+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=zd;case"[object Set]":var l=1&n;if(o||(o=Ud),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;n|=2,s.set(e,t);var c=Gd(o(e),o(t),n,a,i,s);return s.delete(e),c;case"[object Symbol]":if(Wd)return Wd.call(e)==Wd.call(t)}return!1}Ge(Vd,"equalByTag");var Hd=Vd,Yd=Object.prototype.hasOwnProperty;function Qd(e,t,r,n,a,i){var s=1&r,o=Sp(e),l=o.length;if(l!=Sp(t).length&&!s)return!1;for(var u=l;u--;){var c=o[u];if(!(s?c in t:Yd.call(t,c)))return!1}var p=i.get(e),d=i.get(t);if(p&&d)return p==t&&d==e;var f=!0;i.set(e,t),i.set(t,e);for(var m=s;++u<l;){var h=e[c=o[u]],y=t[c];if(n)var g=s?n(y,h,c,t,e,i):n(h,y,c,e,t,i);if(!(void 0===g?h===y||a(h,y,r,n,i):g)){f=!1;break}m||(m="constructor"==c)}if(f&&!m){var T=e.constructor,v=t.constructor;T==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof T&&T instanceof T&&"function"==typeof v&&v instanceof v||(f=!1)}return i.delete(e),i.delete(t),f}Ge(Qd,"equalObjects");var Zd=Qd,Xd="[object Arguments]",Jd="[object Array]",ef="[object Object]",tf=Object.prototype.hasOwnProperty;function rf(e,t,r,n,a,i){var s=ks(e),o=ks(t),l=s?Jd:qp(e),u=o?Jd:qp(t),c=(l=l==Xd?ef:l)==ef,p=(u=u==Xd?ef:u)==ef,d=l==u;if(d&&jl(e)){if(!jl(t))return!1;s=!0,c=!1}if(d&&!c)return i||(i=new ep),s||Yl(e)?Gd(e,t,r,n,a,i):Hd(e,t,l,r,n,a,i);if(!(1&r)){var f=c&&tf.call(e,"__wrapped__"),m=p&&tf.call(t,"__wrapped__");if(f||m){var h=f?e.value():e,y=m?t.value():t;return i||(i=new ep),a(h,y,r,n,i)}}return!!d&&(i||(i=new ep),Zd(e,t,r,n,a,i))}Ge(rf,"baseIsEqualDeep");var nf=rf;function af(e,t,r,n,a){return e===t||(null==e||null==t||!bs(e)&&!bs(t)?e!=e&&t!=t:nf(e,t,r,n,af,a))}Ge(af,"baseIsEqual");var sf=af;function of(e,t,r,n){var a=r.length,i=a,s=!n;if(null==e)return!i;for(e=Object(e);a--;){var o=r[a];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<i;){var l=(o=r[a])[0],u=e[l],c=o[1];if(s&&o[2]){if(void 0===u&&!(l in e))return!1}else{var p=new ep;if(n)var d=n(u,c,l,e,t,p);if(!(void 0===d?sf(c,u,3,n,p):d))return!1}}return!0}Ge(of,"baseIsMatch");var lf=of;function uf(e){return e==e&&!Fs(e)}Ge(uf,"isStrictComparable");var cf=uf;function pf(e){for(var t=su(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,cf(a)]}return t}Ge(pf,"getMatchData");var df=pf;function ff(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}Ge(ff,"matchesStrictComparable");var mf=ff;function hf(e){var t=df(e);return 1==t.length&&t[0][2]?mf(t[0][0],t[0][1]):function(r){return r===e||lf(r,e,t)}}Ge(hf,"baseMatches");var yf=hf;function gf(e,t){return null!=e&&t in Object(e)}Ge(gf,"baseHasIn");var Tf=gf;function vf(e,t,r){for(var n=-1,a=(t=bc(t,e)).length,i=!1;++n<a;){var s=Ac(t[n]);if(!(i=null!=e&&r(e,s)))break;e=e[s]}return i||++n!=a?i:!!(a=null==e?0:e.length)&&ml(a)&&Xo(s,a)&&(ks(e)||_l(e))}Ge(vf,"hasPath");var $f=vf;function Rf(e,t){return null!=e&&$f(e,t,Tf)}Ge(Rf,"hasIn");var bf=Rf;function Ef(e,t){return vu(e)&&cf(t)?mf(Ac(e),t):function(r){var n=xc(r,e);return void 0===n&&n===t?bf(r,e):sf(t,n,3)}}Ge(Ef,"baseMatchesProperty");var Af=Ef;function Cf(e){return function(t){return null==t?void 0:t[e]}}Ge(Cf,"baseProperty");var Sf=Cf;function kf(e){return function(t){return Sc(t,e)}}Ge(kf,"basePropertyDeep");var xf=kf;function wf(e){return vu(e)?Sf(Ac(e)):xf(e)}Ge(wf,"property");var Nf=wf;function If(e){return"function"==typeof e?e:null==e?Xs:"object"==typeof e?ks(e)?Af(e[0],e[1]):yf(e):Nf(e)}Ge(If,"baseIteratee");var _f=If;function Pf(e,t,r,n){for(var a=-1,i=null==e?0:e.length;++a<i;){var s=e[a];t(n,s,r(s),e)}return n}Ge(Pf,"arrayAggregator");var Of=Pf;function Df(e){return function(t,r,n){for(var a=-1,i=Object(t),s=n(t),o=s.length;o--;){var l=s[e?o:++a];if(!1===r(i[l],l,i))break}return t}}Ge(Df,"createBaseFor");var Lf=Df();function Mf(e,t){return e&&Lf(e,t,su)}Ge(Mf,"baseForOwn");var jf=Mf;function Ff(e,t){return function(r,n){if(null==r)return r;if(!yl(r))return e(r,n);for(var a=r.length,i=t?a:-1,s=Object(r);(t?i--:++i<a)&&!1!==n(s[i],i,s););return r}}Ge(Ff,"createBaseEach");var Gf=Ff(jf);function Kf(e,t,r,n){return Gf(e,function(e,a,i){t(n,e,r(e),i)}),n}Ge(Kf,"baseAggregator");var zf=Kf;function qf(e,t){return function(r,n){var a=ks(r)?Of:zf,i=t?t():{};return a(r,e,_f(n,2),i)}}Ge(qf,"createAggregator");var Uf=qf,Bf=Object.prototype,Wf=Bf.hasOwnProperty,Vf=dl(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&Tl(t[0],t[1],a)&&(n=1);++r<n;)for(var i=t[r],s=hu(i),o=-1,l=s.length;++o<l;){var u=s[o],c=e[u];(void 0===c||rl(c,Bf[u])&&!Wf.call(e,u))&&(e[u]=i[u])}return e});function Hf(e){return bs(e)&&yl(e)}Ge(Hf,"isArrayLikeObject");var Yf=Hf;function Qf(e,t,r){for(var n=-1,a=null==e?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}Ge(Qf,"arrayIncludesWith");var Zf=Qf;function Xf(e,t,r,n){var a=-1,i=Yo,s=!0,o=e.length,l=[],u=t.length;if(!o)return l;r&&(t=Ss(t,ql(r))),n?(i=Zf,s=!1):t.length>=200&&(i=jd,s=!1,t=new Od(t));e:for(;++a<o;){var c=e[a],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 e;l.push(c)}else i(t,p,n)||l.push(c)}return l}Ge(Xf,"baseDifference");var Jf=Xf,em=dl(function(e,t){return Yf(e)?Jf(e,Dc(t,1,Yf,!0)):[]});function tm(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}Ge(tm,"last");var rm=tm;function nm(e,t,r){var n=null==e?0:e.length;return n?(t=r||void 0===t?1:Qs(t),Gc(e,t<0?0:t,n)):[]}Ge(nm,"drop");var am=nm;function im(e,t,r){var n=null==e?0:e.length;return n?(t=r||void 0===t?1:Qs(t),Gc(e,0,(t=n-t)<0?0:t)):[]}Ge(im,"dropRight");var sm=im;function om(e){return"function"==typeof e?e:Xs}Ge(om,"castFunction");var lm=om;function um(e,t){return(ks(e)?Fo:Gf)(e,lm(t))}Ge(um,"forEach");var cm=um;function pm(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}Ge(pm,"arrayEvery");var dm=pm;function fm(e,t){var r=!0;return Gf(e,function(e,n,a){return r=!!t(e,n,a)}),r}Ge(fm,"baseEvery");var mm=fm;function hm(e,t,r){var n=ks(e)?dm:mm;return r&&Tl(e,t,r)&&(t=void 0),n(e,_f(t,3))}Ge(hm,"every");var ym=hm;function gm(e,t){var r=[];return Gf(e,function(e,n,a){t(e,n,a)&&r.push(e)}),r}Ge(gm,"baseFilter");var Tm=gm;function vm(e,t){return(ks(e)?dp:Tm)(e,_f(t,3))}Ge(vm,"filter");var $m=vm;function Rm(e){return function(t,r,n){var a=Object(t);if(!yl(t)){var i=_f(r,3);t=su(t),r=Ge(function(e){return i(a[e],e,a)},"predicate")}var s=e(t,r,n);return s>-1?a[i?t[s]:s]:void 0}}Ge(Rm,"createFind");var bm=Rm,Em=Math.max;function Am(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=null==r?0:Qs(r);return a<0&&(a=Em(n+a,0)),Ko(e,_f(t,3),a)}Ge(Am,"findIndex");var Cm=bm(Am);function Sm(e){return e&&e.length?e[0]:void 0}Ge(Sm,"head");var km=Sm;function xm(e,t){var r=-1,n=yl(e)?Array(e.length):[];return Gf(e,function(e,a,i){n[++r]=t(e,a,i)}),n}Ge(xm,"baseMap");var wm=xm;function Nm(e,t){return(ks(e)?Ss:wm)(e,_f(t,3))}Ge(Nm,"map");var Im=Nm;function _m(e,t){return Dc(Im(e,t),1)}Ge(_m,"flatMap");var Pm=_m,Om=Object.prototype.hasOwnProperty,Dm=Uf(function(e,t,r){Om.call(e,r)?e[r].push(t):el(e,r,[t])}),Lm=Object.prototype.hasOwnProperty;function Mm(e,t){return null!=e&&Lm.call(e,t)}Ge(Mm,"baseHas");var jm=Mm;function Fm(e,t){return null!=e&&$f(e,t,jm)}Ge(Fm,"has");var Gm=Fm;function Km(e){return"string"==typeof e||!ks(e)&&bs(e)&&"[object String]"==$s(e)}Ge(Km,"isString");var zm=Km;function qm(e,t){return Ss(t,function(t){return e[t]})}Ge(qm,"baseValues");var Um=qm;function Bm(e){return null==e?[]:Um(e,su(e))}Ge(Bm,"values");var Wm=Bm,Vm=Math.max;function Hm(e,t,r,n){e=yl(e)?e:Wm(e),r=r&&!n?Qs(r):0;var a=e.length;return r<0&&(r=Vm(a+r,0)),zm(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&Vo(e,t,r)>-1}Ge(Hm,"includes");var Ym=Hm,Qm=Math.max;function Zm(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=null==r?0:Qs(r);return a<0&&(a=Qm(n+a,0)),Vo(e,t,a)}Ge(Zm,"indexOf");var Xm=Zm,Jm=Object.prototype.hasOwnProperty;function eh(e){if(null==e)return!0;if(yl(e)&&(ks(e)||"string"==typeof e||"function"==typeof e.splice||jl(e)||Yl(e)||_l(e)))return!e.length;var t=qp(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(El(e))return!au(e).length;for(var r in e)if(Jm.call(e,r))return!1;return!0}Ge(eh,"isEmpty");var th=eh;function rh(e){return bs(e)&&"[object RegExp]"==$s(e)}Ge(rh,"baseIsRegExp");var nh=rh,ah=Vl&&Vl.isRegExp,ih=ah?ql(ah):nh;function sh(e){return void 0===e}Ge(sh,"isUndefined");var oh=sh;function lh(e){if("function"!=typeof e)throw new 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)}}Ge(lh,"negate");var uh=lh;function ch(e,t,r,n){if(!Fs(e))return e;for(var a=-1,i=(t=bc(t,e)).length,s=i-1,o=e;null!=o&&++a<i;){var l=Ac(t[a]),u=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(a!=s){var c=o[l];void 0===(u=n?n(c,l,o):void 0)&&(u=Fs(c)?c:Xo(t[a+1])?[]:{})}il(o,l,u),o=o[l]}return e}Ge(ch,"baseSet");var ph=ch;function dh(e,t,r){for(var n=-1,a=t.length,i={};++n<a;){var s=t[n],o=Sc(e,s);r(o,s)&&ph(i,bc(s,e),o)}return i}Ge(dh,"basePickBy");var fh=dh;function mh(e,t){if(null==e)return{};var r=Ss(xp(e),function(e){return[e]});return t=_f(t),fh(e,r,function(e,r){return t(e,r[0])})}Ge(mh,"pickBy");var hh=mh;function yh(e,t,r,n,a){return a(e,function(e,a,i){r=n?(n=!1,e):t(r,e,a,i)}),r}Ge(yh,"baseReduce");var gh=yh;function Th(e,t,r){var n=ks(e)?zc:gh,a=arguments.length<3;return n(e,_f(t,4),r,a,Gf)}Ge(Th,"reduce");var vh=Th;function $h(e,t){return(ks(e)?dp:Tm)(e,uh(_f(t,3)))}Ge($h,"reject");var Rh=$h;function bh(e,t){var r;return Gf(e,function(e,n,a){return!(r=t(e,n,a))}),!!r}Ge(bh,"baseSome");var Eh=bh;function Ah(e,t,r){var n=ks(e)?Ld:Eh;return r&&Tl(e,t,r)&&(t=void 0),n(e,_f(t,3))}Ge(Ah,"some");var Ch=Ah,Sh=Ip&&1/Ud(new Ip([,-0]))[1]==1/0?function(e){return new Ip(e)}:xo;function kh(e,t,r){var n=-1,a=Yo,i=e.length,s=!0,o=[],l=o;if(r)s=!1,a=Zf;else if(i>=200){var u=t?null:Sh(e);if(u)return Ud(u);s=!1,a=jd,l=new Od}else l=t?[]:o;e:for(;++n<i;){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 e;t&&l.push(p),o.push(c)}else a(l,p,r)||(l!==o&&l.push(p),o.push(c))}return o}Ge(kh,"baseUniq");var xh=kh;function wh(e){return e&&e.length?xh(e):[]}Ge(wh,"uniq");var Nh=wh;function Ih(e){console&&console.error&&console.error(`Error: ${e}`)}function _h(e){console&&console.warn&&console.warn(`Warning: ${e}`)}function Ph(e){const t=(new Date).getTime(),r=e();return{time:(new Date).getTime()-t,value:r}}function Oh(e){function t(){}Ge(t,"FakeConstructor"),t.prototype=e;const r=new t;function n(){return typeof r.bar}return Ge(n,"fakeAccess"),n(),n(),e}function Dh(e){return Lh(e)?e.LABEL:e.name}function Lh(e){return zm(e.LABEL)&&""!==e.LABEL}Ge(Ih,"PRINT_ERROR"),Ge(_h,"PRINT_WARNING"),Ge(Ph,"timer"),Ge(Oh,"toFastProperties"),Ge(Dh,"tokenLabel"),Ge(Lh,"hasTokenLabel");var Mh=class{static{Ge(this,"AbstractProduction")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),cm(this.definition,t=>{t.accept(e)})}},jh=class extends Mh{static{Ge(this,"NonTerminal")}constructor(e){super([]),this.idx=1,lu(this,hh(e,e=>void 0!==e))}set definition(e){}get definition(){return void 0!==this.referencedRule?this.referencedRule.definition:[]}accept(e){e.visit(this)}},Fh=class extends Mh{static{Ge(this,"Rule")}constructor(e){super(e.definition),this.orgText="",lu(this,hh(e,e=>void 0!==e))}},Gh=class extends Mh{static{Ge(this,"Alternative")}constructor(e){super(e.definition),this.ignoreAmbiguities=!1,lu(this,hh(e,e=>void 0!==e))}},Kh=class extends Mh{static{Ge(this,"Option")}constructor(e){super(e.definition),this.idx=1,lu(this,hh(e,e=>void 0!==e))}},zh=class extends Mh{static{Ge(this,"RepetitionMandatory")}constructor(e){super(e.definition),this.idx=1,lu(this,hh(e,e=>void 0!==e))}},qh=class extends Mh{static{Ge(this,"RepetitionMandatoryWithSeparator")}constructor(e){super(e.definition),this.idx=1,lu(this,hh(e,e=>void 0!==e))}},Uh=class extends Mh{static{Ge(this,"Repetition")}constructor(e){super(e.definition),this.idx=1,lu(this,hh(e,e=>void 0!==e))}},Bh=class extends Mh{static{Ge(this,"RepetitionWithSeparator")}constructor(e){super(e.definition),this.idx=1,lu(this,hh(e,e=>void 0!==e))}},Wh=class extends Mh{static{Ge(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,lu(this,hh(e,e=>void 0!==e))}},Vh=class{static{Ge(this,"Terminal")}constructor(e){this.idx=1,lu(this,hh(e,e=>void 0!==e))}accept(e){e.visit(this)}};function Hh(e){return Im(e,Yh)}function Yh(e){function t(e){return Im(e,Yh)}if(Ge(t,"convertDefinition"),e instanceof jh){const t={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return zm(e.label)&&(t.label=e.label),t}if(e instanceof Gh)return{type:"Alternative",definition:t(e.definition)};if(e instanceof Kh)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof zh)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof qh)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Yh(new Vh({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Bh)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Yh(new Vh({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Uh)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Wh)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof Vh){const t={type:"Terminal",name:e.terminalType.name,label:Dh(e.terminalType),idx:e.idx};zm(e.label)&&(t.terminalLabel=e.label);const r=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=ih(r)?r.source:r),t}if(e instanceof Fh)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}Ge(Hh,"serializeGrammar"),Ge(Yh,"serializeProduction");var Qh=class{static{Ge(this,"GAstVisitor")}visit(e){const t=e;switch(t.constructor){case jh:return this.visitNonTerminal(t);case Gh:return this.visitAlternative(t);case Kh:return this.visitOption(t);case zh:return this.visitRepetitionMandatory(t);case qh:return this.visitRepetitionMandatoryWithSeparator(t);case Bh:return this.visitRepetitionWithSeparator(t);case Uh:return this.visitRepetition(t);case Wh:return this.visitAlternation(t);case Vh:return this.visitTerminal(t);case Fh:return this.visitRule(t);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 Zh(e){return e instanceof Gh||e instanceof Kh||e instanceof Uh||e instanceof zh||e instanceof qh||e instanceof Bh||e instanceof Vh||e instanceof Fh}function Xh(e,t=[]){return!!(e instanceof Kh||e instanceof Uh||e instanceof Bh)||(e instanceof Wh?Ch(e.definition,e=>Xh(e,t)):!(e instanceof jh&&Ym(t,e))&&(e instanceof Mh&&(e instanceof jh&&t.push(e),ym(e.definition,e=>Xh(e,t)))))}function Jh(e){return e instanceof Wh}function ey(e){if(e instanceof jh)return"SUBRULE";if(e instanceof Kh)return"OPTION";if(e instanceof Wh)return"OR";if(e instanceof zh)return"AT_LEAST_ONE";if(e instanceof qh)return"AT_LEAST_ONE_SEP";if(e instanceof Bh)return"MANY_SEP";if(e instanceof Uh)return"MANY";if(e instanceof Vh)return"CONSUME";throw Error("non exhaustive match")}Ge(Zh,"isSequenceProd"),Ge(Xh,"isOptionalProd"),Ge(Jh,"isBranchingProd"),Ge(ey,"getProductionDslName");var ty=class{static{Ge(this,"RestWalker")}walk(e,t=[]){cm(e.definition,(r,n)=>{const a=am(e.definition,n+1);if(r instanceof jh)this.walkProdRef(r,a,t);else if(r instanceof Vh)this.walkTerminal(r,a,t);else if(r instanceof Gh)this.walkFlat(r,a,t);else if(r instanceof Kh)this.walkOption(r,a,t);else if(r instanceof zh)this.walkAtLeastOne(r,a,t);else if(r instanceof qh)this.walkAtLeastOneSep(r,a,t);else if(r instanceof Bh)this.walkManySep(r,a,t);else if(r instanceof Uh)this.walkMany(r,a,t);else{if(!(r instanceof Wh))throw Error("non exhaustive match");this.walkOr(r,a,t)}})}walkTerminal(e,t,r){}walkProdRef(e,t,r){}walkFlat(e,t,r){const n=t.concat(r);this.walk(e,n)}walkOption(e,t,r){const n=t.concat(r);this.walk(e,n)}walkAtLeastOne(e,t,r){const n=[new Kh({definition:e.definition})].concat(t,r);this.walk(e,n)}walkAtLeastOneSep(e,t,r){const n=ry(e,t,r);this.walk(e,n)}walkMany(e,t,r){const n=[new Kh({definition:e.definition})].concat(t,r);this.walk(e,n)}walkManySep(e,t,r){const n=ry(e,t,r);this.walk(e,n)}walkOr(e,t,r){const n=t.concat(r);cm(e.definition,e=>{const t=new Gh({definition:[e]});this.walk(t,n)})}};function ry(e,t,r){return[new Kh({definition:[new Vh({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}function ny(e){if(e instanceof jh)return ny(e.referencedRule);if(e instanceof Vh)return sy(e);if(Zh(e))return ay(e);if(Jh(e))return iy(e);throw Error("non exhaustive match")}function ay(e){let t=[];const r=e.definition;let n,a=0,i=r.length>a,s=!0;for(;i&&s;)n=r[a],s=Xh(n),t=t.concat(ny(n)),a+=1,i=r.length>a;return Nh(t)}function iy(e){const t=Im(e.definition,e=>ny(e));return Nh(Mc(t))}function sy(e){return[e.terminalType]}Ge(ry,"restForRepetitionWithSeparator"),Ge(ny,"first"),Ge(ay,"firstForSequence"),Ge(iy,"firstForBranching"),Ge(sy,"firstForTerminal");var oy="_~IN~_",ly=class extends ty{static{Ge(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){const n=cy(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(r),i=ny(new Gh({definition:a}));this.follows[n]=i}};function uy(e){const t={};return cm(e,e=>{const r=new ly(e).startWalking();lu(t,r)}),t}function cy(e,t){return e.name+t+oy}Ge(uy,"computeAllProdsFollows"),Ge(cy,"buildBetweenProdsFollowPrefix");var py={},dy=new si;function fy(e){const t=e.toString();if(py.hasOwnProperty(t))return py[t];{const e=dy.pattern(t);return py[t]=e,e}}function my(){py={}}Ge(fy,"getRegExpAst"),Ge(my,"clearRegExpParserCache");var hy="Complement Sets are not supported for first char optimization",yy='Unable to use "first char" lexer optimizations:\n';function gy(e,t=!1){try{const t=fy(e);return Ty(t.value,{},t.flags.ignoreCase)}catch(r){if(r.message===hy)t&&_h(`${yy}\tUnable to optimize: < ${e.toString()} >\n\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let r="";t&&(r="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),Ih(`${yy}\n\tFailed parsing: < ${e.toString()} >\n\tUsing the @chevrotain/regexp-to-ast library\n\tPlease open an issue at: https://github.com/chevrotain/chevrotain/issues`+r)}}return[]}function Ty(e,t,r){switch(e.type){case"Disjunction":for(let a=0;a<e.value.length;a++)Ty(e.value[a],t,r);break;case"Alternative":const n=e.value;for(let e=0;e<n.length;e++){const a=n[e];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}const i=a;switch(i.type){case"Character":vy(i.value,t,r);break;case"Set":if(!0===i.complement)throw Error(hy);cm(i.value,e=>{if("number"==typeof e)vy(e,t,r);else{const n=e;if(!0===r)for(let e=n.from;e<=n.to;e++)vy(e,t,r);else{for(let e=n.from;e<=n.to&&e<ng;e++)vy(e,t,r);if(n.to>=ng){const e=n.from>=ng?n.from:ng,r=n.to,a=ig(e),i=ig(r);for(let n=a;n<=i;n++)t[n]=n}}}});break;case"Group":Ty(i.value,t,r);break;default:throw Error("Non Exhaustive Match")}const s=void 0!==i.quantifier&&0===i.quantifier.atLeast;if("Group"===i.type&&!1===by(i)||"Group"!==i.type&&!1===s)break}break;default:throw Error("non exhaustive match!")}return Wm(t)}function vy(e,t,r){const n=ig(e);t[n]=n,!0===r&&$y(e,t)}function $y(e,t){const r=String.fromCharCode(e),n=r.toUpperCase();if(n!==r){const e=ig(n.charCodeAt(0));t[e]=e}else{const e=r.toLowerCase();if(e!==r){const r=ig(e.charCodeAt(0));t[r]=r}}}function Ry(e,t){return Cm(e.value,e=>{if("number"==typeof e)return Ym(t,e);{const r=e;return void 0!==Cm(t,e=>r.from<=e&&e<=r.to)}})}function by(e){const t=e.quantifier;return!(!t||0!==t.atLeast)||!!e.value&&(ks(e.value)?ym(e.value,by):by(e.value))}Ge(gy,"getOptimizedStartCodesIndices"),Ge(Ty,"firstCharOptimizedIndices"),Ge(vy,"addOptimizedIdxToResult"),Ge($y,"handleIgnoreCase"),Ge(Ry,"findCode"),Ge(by,"isWholeOptional");var Ey=class extends oi{static{Ge(this,"CharCodeFinder")}constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(!0!==this.found){switch(e.type){case"Lookahead":return void this.visitLookahead(e);case"NegativeLookahead":return void this.visitNegativeLookahead(e);case"Lookbehind":return void this.visitLookbehind(e);case"NegativeLookbehind":return void this.visitNegativeLookbehind(e)}super.visitChildren(e)}}visitCharacter(e){Ym(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?void 0===Ry(e,this.targetCharCodes)&&(this.found=!0):void 0!==Ry(e,this.targetCharCodes)&&(this.found=!0)}};function Ay(e,t){if(t instanceof RegExp){const r=fy(t),n=new Ey(e);return n.visit(r),n.found}return void 0!==Cm(t,t=>Ym(e,t.charCodeAt(0)))}Ge(Ay,"canMatchCharCode");var Cy="PATTERN",Sy="defaultMode",ky="modes";function xy(e,t){const r=(t=Vf(t,{debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:Ge((e,t)=>t(),"tracer")})).tracer;let n;r("initCharCodeToOptimizedIndexMap",()=>{sg()}),r("Reject Lexer.NA",()=>{n=Rh(e,e=>e[Cy]===Sg.NA)});let a,i,s,o,l,u,c,p,d,f,m,h=!1;r("Transform Patterns",()=>{h=!1,a=Im(n,e=>{const t=e[Cy];if(ih(t)){const e=t.source;return 1!==e.length||"^"===e||"$"===e||"."===e||t.ignoreCase?2!==e.length||"\\"!==e[0]||Ym(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],e[1])?Wy(t):e[1]:e}if(to(t))return h=!0,{exec:t};if("object"==typeof t)return h=!0,t;if("string"==typeof t){if(1===t.length)return t;{const e=t.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&");return Wy(new RegExp(e))}}throw Error("non exhaustive match")})}),r("misc mapping",()=>{i=Im(n,e=>e.tokenTypeIdx),s=Im(n,e=>{const t=e.GROUP;if(t!==Sg.SKIPPED){if(zm(t))return t;if(oh(t))return!1;throw Error("non exhaustive match")}}),o=Im(n,e=>{const t=e.LONGER_ALT;if(t){return ks(t)?Im(t,e=>Xm(n,e)):[Xm(n,t)]}}),l=Im(n,e=>e.PUSH_MODE),u=Im(n,e=>Gm(e,"POP_MODE"))}),r("Line Terminator Handling",()=>{const e=tg(t.lineTerminatorCharacters);c=Im(n,e=>!1),"onlyOffset"!==t.positionTracking&&(c=Im(n,t=>Gm(t,"LINE_BREAKS")?!!t.LINE_BREAKS:!1===Jy(t,e)&&Ay(e,t.PATTERN)))}),r("Misc Mapping #2",()=>{p=Im(n,Qy),d=Im(a,Zy),f=vh(n,(e,t)=>{const r=t.GROUP;return zm(r)&&r!==Sg.SKIPPED&&(e[r]=[]),e},{}),m=Im(a,(e,t)=>({pattern:a[t],longerAlt:o[t],canLineTerminator:c[t],isCustom:p[t],short:d[t],group:s[t],push:l[t],pop:u[t],tokenTypeIdx:i[t],tokenType:n[t]}))});let y=!0,g=[];return t.safeMode||r("First Char Optimization",()=>{g=vh(n,(e,r,n)=>{if("string"==typeof r.PATTERN){const t=ig(r.PATTERN.charCodeAt(0));rg(e,t,m[n])}else if(ks(r.START_CHARS_HINT)){let t;cm(r.START_CHARS_HINT,r=>{const a=ig("string"==typeof r?r.charCodeAt(0):r);t!==a&&(t=a,rg(e,a,m[n]))})}else if(ih(r.PATTERN))if(r.PATTERN.unicode)y=!1,t.ensureOptimizations&&Ih(`${yy}\tUnable to analyze < ${r.PATTERN.toString()} > pattern.\n\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const a=gy(r.PATTERN,t.ensureOptimizations);th(a)&&(y=!1),cm(a,t=>{rg(e,t,m[n])})}else t.ensureOptimizations&&Ih(`${yy}\tTokenType: <${r.name}> is using a custom token pattern without providing <start_chars_hint> parameter.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),y=!1;return e},[])}),{emptyGroups:f,patternIdxToConfig:m,charCodeToPatternIdxToConfig:g,hasCustom:h,canBeOptimized:y}}function wy(e,t){let r=[];const n=Iy(e);r=r.concat(n.errors);const a=_y(n.valid),i=a.valid;return r=r.concat(a.errors),r=r.concat(Ny(i)),r=r.concat(Gy(i)),r=r.concat(Ky(i,t)),r=r.concat(zy(i)),r}function Ny(e){let t=[];const r=$m(e,e=>ih(e[Cy]));return t=t.concat(Oy(r)),t=t.concat(My(r)),t=t.concat(jy(r)),t=t.concat(Fy(r)),t=t.concat(Dy(r)),t}function Iy(e){const t=$m(e,e=>!Gm(e,Cy));return{errors:Im(t,e=>({message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:bg.MISSING_PATTERN,tokenTypes:[e]})),valid:em(e,t)}}function _y(e){const t=$m(e,e=>{const t=e[Cy];return!(ih(t)||to(t)||Gm(t,"exec")||zm(t))});return{errors:Im(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:bg.INVALID_PATTERN,tokenTypes:[e]})),valid:em(e,t)}}Ge(xy,"analyzeTokenTypes"),Ge(wy,"validatePatterns"),Ge(Ny,"validateRegExpPattern"),Ge(Iy,"findMissingPatterns"),Ge(_y,"findInvalidPatterns");var Py=/[^\\][$]/;function Oy(e){class t extends oi{static{Ge(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}const r=$m(e,e=>{const r=e.PATTERN;try{const e=fy(r),n=new t;return n.visit(e),n.found}catch(n){return Py.test(r.source)}});return Im(r,e=>({message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:bg.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}function Dy(e){const t=$m(e,e=>e.PATTERN.test(""));return Im(t,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:bg.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}Ge(Oy,"findEndOfInputAnchor"),Ge(Dy,"findEmptyMatchRegExps");var Ly=/[^\\[][\^]|^\^/;function My(e){class t extends oi{static{Ge(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}const r=$m(e,e=>{const r=e.PATTERN;try{const e=fy(r),n=new t;return n.visit(e),n.found}catch(n){return Ly.test(r.source)}});return Im(r,e=>({message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:bg.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}function jy(e){const t=$m(e,e=>{const t=e[Cy];return t instanceof RegExp&&(t.multiline||t.global)});return Im(t,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:bg.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}function Fy(e){const t=[];let r=Im(e,r=>vh(e,(e,n)=>(r.PATTERN.source!==n.PATTERN.source||Ym(t,n)||n.PATTERN===Sg.NA||(t.push(n),e.push(n)),e),[]));r=xd(r);const n=$m(r,e=>e.length>1);return Im(n,e=>{const t=Im(e,e=>e.name);return{message:`The same RegExp pattern ->${km(e).PATTERN}<-has been used in all of the following Token Types: ${t.join(", ")} <-`,type:bg.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}function Gy(e){const t=$m(e,e=>{if(!Gm(e,"GROUP"))return!1;const t=e.GROUP;return t!==Sg.SKIPPED&&t!==Sg.NA&&!zm(t)});return Im(t,e=>({message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:bg.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}function Ky(e,t){const r=$m(e,e=>void 0!==e.PUSH_MODE&&!Ym(t,e.PUSH_MODE));return Im(r,e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:bg.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}function zy(e){const t=[],r=vh(e,(e,t,r)=>{const n=t.PATTERN;return n===Sg.NA||(zm(n)?e.push({str:n,idx:r,tokenType:t}):ih(n)&&Uy(n)&&e.push({str:n.source,idx:r,tokenType:t})),e},[]);return cm(e,(e,n)=>{cm(r,({str:r,idx:a,tokenType:i})=>{if(n<a&&qy(r,e.PATTERN)){const r=`Token: ->${i.name}<- can never be matched.\nBecause it appears AFTER the Token Type ->${e.name}<-in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:r,type:bg.UNREACHABLE_PATTERN,tokenTypes:[e,i]})}})}),t}function qy(e,t){if(ih(t)){if(By(t))return!1;const r=t.exec(e);return null!==r&&0===r.index}if(to(t))return t(e,0,[],{});if(Gm(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}function Uy(e){return void 0===Cm([".","\\","[","]","|","^","$","(",")","?","*","+","{"],t=>-1!==e.source.indexOf(t))}function By(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(e.source)}function Wy(e){const t=e.ignoreCase?"iy":"y";return new RegExp(`${e.source}`,t)}function Vy(e,t,r){const n=[];return Gm(e,Sy)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+Sy+"> property in its definition\n",type:bg.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Gm(e,ky)||n.push({message:"A MultiMode Lexer cannot be initialized without a <modes> property in its definition\n",type:bg.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Gm(e,ky)&&Gm(e,Sy)&&!Gm(e.modes,e.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${Sy}: <${e.defaultMode}>which does not exist\n`,type:bg.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Gm(e,ky)&&cm(e.modes,(e,t)=>{cm(e,(r,a)=>{if(oh(r))n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${t}> at index: <${a}>\n`,type:bg.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(Gm(r,"LONGER_ALT")){const a=ks(r.LONGER_ALT)?r.LONGER_ALT:[r.LONGER_ALT];cm(a,a=>{oh(a)||Ym(e,a)||n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${a.name}> on token <${r.name}> outside of mode <${t}>\n`,type:bg.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),n}function Hy(e,t,r){const n=[];let a=!1;const i=xd(Mc(Wm(e.modes))),s=Rh(i,e=>e[Cy]===Sg.NA),o=tg(r);return t&&cm(s,e=>{const t=Jy(e,o);if(!1!==t){const r={message:eg(e,t),type:t.issue,tokenType:e};n.push(r)}else Gm(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(a=!0):Ay(o,e.PATTERN)&&(a=!0)}),t&&!a&&n.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:bg.NO_LINE_BREAKS_FLAGS}),n}function Yy(e){const t={},r=su(e);return cm(r,r=>{const n=e[r];if(!ks(n))throw Error("non exhaustive match");t[r]=[]}),t}function Qy(e){const t=e.PATTERN;if(ih(t))return!1;if(to(t))return!0;if(Gm(t,"exec"))return!0;if(zm(t))return!1;throw Error("non exhaustive match")}function Zy(e){return!(!zm(e)||1!==e.length)&&e.charCodeAt(0)}Ge(My,"findStartOfInputAnchor"),Ge(jy,"findUnsupportedFlags"),Ge(Fy,"findDuplicatePatterns"),Ge(Gy,"findInvalidGroupType"),Ge(Ky,"findModesThatDoNotExist"),Ge(zy,"findUnreachablePatterns"),Ge(qy,"tryToMatchStrToPattern"),Ge(Uy,"noMetaChar"),Ge(By,"usesLookAheadOrBehind"),Ge(Wy,"addStickyFlag"),Ge(Vy,"performRuntimeChecks"),Ge(Hy,"performWarningRuntimeChecks"),Ge(Yy,"cloneEmptyGroups"),Ge(Qy,"isCustomPattern"),Ge(Zy,"isShortPattern");var Xy={test:Ge(function(e){const t=e.length;for(let r=this.lastIndex;r<t;r++){const 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 Jy(e,t){if(Gm(e,"LINE_BREAKS"))return!1;if(ih(e.PATTERN)){try{Ay(t,e.PATTERN)}catch(r){return{issue:bg.IDENTIFY_TERMINATOR,errMsg:r.message}}return!1}if(zm(e.PATTERN))return!1;if(Qy(e))return{issue:bg.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function eg(e,t){if(t.issue===bg.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <${e.name}> Token Type\n\t Root cause: ${t.errMsg}.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===bg.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.\n\tThe problem is in the <${e.name}> Token Type\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function tg(e){return Im(e,e=>zm(e)?e.charCodeAt(0):e)}function rg(e,t,r){void 0===e[t]?e[t]=[r]:e[t].push(r)}Ge(Jy,"checkLineBreaksIssues"),Ge(eg,"buildLineBreakIssueMessage"),Ge(tg,"getCharCodes"),Ge(rg,"addToMapOfArrays");var ng=256,ag=[];function ig(e){return e<ng?e:ag[e]}function sg(){if(th(ag)){ag=new Array(65536);for(let e=0;e<65536;e++)ag[e]=e>255?255+~~(e/255):e}}function og(e,t){const r=e.tokenTypeIdx;return r===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[r]}function lg(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}Ge(ig,"charCodeToOptimizedIndex"),Ge(sg,"initCharCodeToOptimizedIndexMap"),Ge(og,"tokenStructuredMatcher"),Ge(lg,"tokenStructuredMatcherNoCategories");var ug=1,cg={};function pg(e){const t=dg(e);fg(t),hg(t),mg(t),cm(t,e=>{e.isParent=e.categoryMatches.length>0})}function dg(e){let t=Sd(e),r=e,n=!0;for(;n;){r=xd(Mc(Im(r,e=>e.CATEGORIES)));const e=em(r,t);t=t.concat(e),th(e)?n=!1:r=e}return t}function fg(e){cm(e,e=>{gg(e)||(cg[ug]=e,e.tokenTypeIdx=ug++),Tg(e)&&!ks(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),Tg(e)||(e.CATEGORIES=[]),vg(e)||(e.categoryMatches=[]),$g(e)||(e.categoryMatchesMap={})})}function mg(e){cm(e,e=>{e.categoryMatches=[],cm(e.categoryMatchesMap,(t,r)=>{e.categoryMatches.push(cg[r].tokenTypeIdx)})})}function hg(e){cm(e,e=>{yg([],e)})}function yg(e,t){cm(e,e=>{t.categoryMatchesMap[e.tokenTypeIdx]=!0}),cm(t.CATEGORIES,r=>{const n=e.concat(t);Ym(n,r)||yg(n,r)})}function gg(e){return Gm(e,"tokenTypeIdx")}function Tg(e){return Gm(e,"CATEGORIES")}function vg(e){return Gm(e,"categoryMatches")}function $g(e){return Gm(e,"categoryMatchesMap")}function Rg(e){return Gm(e,"tokenTypeIdx")}Ge(pg,"augmentTokenTypes"),Ge(dg,"expandCategories"),Ge(fg,"assignTokenDefaultProps"),Ge(mg,"assignCategoriesTokensProp"),Ge(hg,"assignCategoriesMapProp"),Ge(yg,"singleAssignCategoriesToksMap"),Ge(gg,"hasShortKeyProperty"),Ge(Tg,"hasCategoriesProperty"),Ge(vg,"hasExtendingTokensTypesProperty"),Ge($g,"hasExtendingTokensTypesMapProperty"),Ge(Rg,"isTokenType");var bg,Eg,Ag={buildUnableToPopLexerModeMessage:e=>`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`,buildUnexpectedCharactersMessage:(e,t,r,n,a,i)=>`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${r} characters.`};(Eg=bg||(bg={}))[Eg.MISSING_PATTERN=0]="MISSING_PATTERN",Eg[Eg.INVALID_PATTERN=1]="INVALID_PATTERN",Eg[Eg.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",Eg[Eg.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",Eg[Eg.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",Eg[Eg.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",Eg[Eg.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",Eg[Eg.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",Eg[Eg.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",Eg[Eg.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",Eg[Eg.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",Eg[Eg.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",Eg[Eg.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",Eg[Eg.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",Eg[Eg.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",Eg[Eg.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",Eg[Eg.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",Eg[Eg.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE";var Cg={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Ag,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(Cg);var Sg=class{static{Ge(this,"Lexer")}constructor(e,t=Cg){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){this.traceInitIndent++;const r=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${r}--\x3e <${e}>`);const{time:n,value:a}=Ph(t),i=n>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&i(`${r}<-- <${e}> time: ${n}ms`),this.traceInitIndent--,a}return t()},"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=lu({},Cg,t);const 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===Cg.lineTerminatorsPattern)this.config.lineTerminatorsPattern=Xy;else if(this.config.lineTerminatorCharacters===Cg.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n\tFor 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),ks(e)?r={modes:{defaultMode:Sd(e)},defaultMode:Sy}:(n=!1,r=Sd(e))}),!1===this.config.skipValidations&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Vy(r,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(Hy(r,this.trackStartLines,this.config.lineTerminatorCharacters))})),r.modes=r.modes?r.modes:{},cm(r.modes,(e,t)=>{r.modes[t]=Rh(e,e=>oh(e))});const a=su(r.modes);if(cm(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(wy(e,a))}),th(this.lexerDefinitionErrors)){let n;pg(e),this.TRACE_INIT("analyzeTokenTypes",()=>{n=xy(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=lu({},this.emptyGroups,n.emptyGroups),this.hasCustom=n.hasCustom||this.hasCustom,this.canModeBeOptimized[r]=n.canBeOptimized}})}),this.defaultMode=r.defaultMode,!th(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const e=Im(this.lexerDefinitionErrors,e=>e.message).join("-----------------------\n");throw new Error("Errors detected in definition of Lexer:\n"+e)}cm(this.lexerDefinitionWarning,e=>{_h(e.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(n&&(this.handleModes=xo),!1===this.trackStartLines&&(this.computeNewColumn=Xs),!1===this.trackEndLines&&(this.updateTokenEndLineColumnLocation=xo),/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))throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.createTokenInstance=this.createOffsetOnlyToken}this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{const e=vh(this.canModeBeOptimized,(e,t,r)=>(!1===t&&e.push(r),e),[]);if(t.ensureOptimizations&&!th(e))throw Error(`Lexer Modes: < ${e.join(", ")} > cannot be optimized.\n\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{my()}),this.TRACE_INIT("toFastProperties",()=>{Oh(this)})})}tokenize(e,t=this.defaultMode){if(!th(this.lexerDefinitionErrors)){const e=Im(this.lexerDefinitionErrors,e=>e.message).join("-----------------------\n");throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+e)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let r,n,a,i,s,o,l,u,c,p,d,f,m,h,y;const g=e,T=g.length;let v=0,$=0;const R=this.hasCustom?0:Math.floor(e.length/10),b=new Array(R),E=[];let A=this.trackStartLines?1:void 0,C=this.trackStartLines?1:void 0;const S=Yy(this.emptyGroups),k=this.trackStartLines,x=this.config.lineTerminatorsPattern;let w=0,N=[],I=[];const _=[],P=[];Object.freeze(P);let O=!1;const D=Ge(e=>{if(1===_.length&&void 0===e.tokenType.PUSH_MODE){const t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);E.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{_.pop();const e=rm(_);N=this.patternIdxToConfig[e],I=this.charCodeToPatternIdxToConfig[e],w=N.length;const t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;O=!(!I||!t)}},"pop_mode");function L(e){_.push(e),I=this.charCodeToPatternIdxToConfig[e],N=this.patternIdxToConfig[e],w=N.length,w=N.length;const t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;O=!(!I||!t)}let M;Ge(L,"push_mode"),L.call(this,t);const j=this.config.recoveryEnabled;for(;v<T;){o=null,c=-1;const t=g.charCodeAt(v);let R;if(O){const e=ig(t),r=I[e];R=void 0!==r?r:P}else R=N;const F=R.length;for(r=0;r<F;r++){M=R[r];const n=M.pattern;l=null;const p=M.short;if(!1!==p?t===p&&(c=1,o=n):!0===M.isCustom?(y=n.exec(g,v,b,S),null!==y?(o=y[0],c=o.length,void 0!==y.payload&&(l=y.payload)):o=null):(n.lastIndex=v,c=this.matchLength(n,e,v)),-1!==c){if(s=M.longerAlt,void 0!==s){o=e.substring(v,v+c);const t=s.length;for(a=0;a<t;a++){const t=N[s[a]],r=t.pattern;if(u=null,!0===t.isCustom?(y=r.exec(g,v,b,S),null!==y?(i=y[0],void 0!==y.payload&&(u=y.payload)):i=null):(r.lastIndex=v,i=this.match(r,e,v)),i&&i.length>o.length){o=i,c=i.length,l=u,M=t;break}}}break}}if(-1!==c){if(p=M.group,void 0!==p&&(o=null!==o?o:e.substring(v,v+c),d=M.tokenTypeIdx,f=this.createTokenInstance(o,v,d,M.tokenType,A,C,c),this.handlePayload(f,l),!1===p?$=this.addToken(b,$,f):S[p].push(f)),!0===k&&!0===M.canLineTerminator){let t,r,n=0;x.lastIndex=0;do{o=null!==o?o:e.substring(v,v+c),t=x.test(o),!0===t&&(r=x.lastIndex-1,n++)}while(!0===t);0!==n?(A+=n,C=c-r,this.updateTokenEndLineColumnLocation(f,p,r,n,A,C,c)):C=this.computeNewColumn(C,c)}else C=this.computeNewColumn(C,c);v+=c,this.handleModes(M,D,L,f)}else{const t=v,r=A,a=C;let i=!1===j;for(;!1===i&&v<T;)for(v++,n=0;n<w;n++){const t=N[n],r=t.pattern,a=t.short;if(!1!==a?g.charCodeAt(v)===a&&(i=!0):!0===t.isCustom?i=null!==r.exec(g,v,b,S):(r.lastIndex=v,i=null!==r.exec(e)),!0===i)break}if(m=v-t,C=this.computeNewColumn(C,m),h=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(g,t,m,r,a,rm(_)),E.push({offset:t,line:r,column:a,length:m,message:h}),!1===j)break}}return this.hasCustom||(b.length=$),{tokens:b,groups:S,errors:E}}handleModes(e,t,r,n){if(!0===e.pop){const a=e.push;t(n),void 0!==a&&r.call(this,a)}else void 0!==e.push&&r.call(this,e.push)}updateTokenEndLineColumnLocation(e,t,r,n,a,i,s){let o,l;void 0!==t&&(o=r===s-1,l=o?-1:0,1===n&&!0===o||(e.endLine=a+l,e.endColumn=i-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,a,i){return{image:e,startOffset:t,startLine:a,startColumn:i,tokenTypeIdx:r,tokenType:n}}createFullToken(e,t,r,n,a,i,s){return{image:e,startOffset:t,endOffset:t+s-1,startLine:a,endLine:a,startColumn:i,endColumn:i+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)}match(e,t,r){return!0===e.test(t)?t.substring(r,e.lastIndex):null}matchLength(e,t,r){return!0===e.test(t)?e.lastIndex-r:-1}};function kg(e){return xg(e)?e.LABEL:e.name}function xg(e){return zm(e.LABEL)&&""!==e.LABEL}Sg.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.",Sg.NA=/NOT_APPLICABLE/,Ge(kg,"tokenLabel"),Ge(xg,"hasTokenLabel");var wg="categories",Ng="label",Ig="group",_g="push_mode",Pg="pop_mode",Og="longer_alt",Dg="line_breaks",Lg="start_chars_hint";function Mg(e){return jg(e)}function jg(e){const t=e.pattern,r={};if(r.name=e.name,oh(t)||(r.PATTERN=t),Gm(e,"parent"))throw"The parent property is no longer supported.\nSee: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.";return Gm(e,wg)&&(r.CATEGORIES=e[wg]),pg([r]),Gm(e,Ng)&&(r.LABEL=e[Ng]),Gm(e,Ig)&&(r.GROUP=e[Ig]),Gm(e,Pg)&&(r.POP_MODE=e[Pg]),Gm(e,_g)&&(r.PUSH_MODE=e[_g]),Gm(e,Og)&&(r.LONGER_ALT=e[Og]),Gm(e,Dg)&&(r.LINE_BREAKS=e[Dg]),Gm(e,Lg)&&(r.START_CHARS_HINT=e[Lg]),r}Ge(Mg,"createToken"),Ge(jg,"createTokenInternal");var Fg=Mg({name:"EOF",pattern:Sg.NA});function Gg(e,t,r,n,a,i,s,o){return{image:t,startOffset:r,endOffset:n,startLine:a,endLine:i,startColumn:s,endColumn:o,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function Kg(e,t){return og(e,t)}pg([Fg]),Ge(Gg,"createTokenInstance"),Ge(Kg,"tokenMatcher");var zg={buildMismatchTokenMessage:({expected:e,actual:t,previous:r,ruleName:n})=>`Expecting ${xg(e)?`--\x3e ${kg(e)} <--`:`token of type --\x3e ${e.name} <--`} but found --\x3e '${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:a}){const i="Expecting: ",s="\nbut found: '"+km(t).image+"'";if(n)return i+n+s;{const t=vh(e,(e,t)=>e.concat(t),[]),r=Im(t,e=>`[${Im(e,e=>kg(e)).join(", ")}]`);return i+`one of these possible Token sequences:\n${Im(r,(e,t)=>` ${t+1}. ${e}`).join("\n")}`+s}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:r,ruleName:n}){const a="Expecting: ",i="\nbut found: '"+km(t).image+"'";if(r)return a+r+i;return a+`expecting at least one iteration which starts with one of these possible Token sequences::\n <${Im(e,e=>`[${Im(e,e=>kg(e)).join(",")}]`).join(" ,")}>`+i}};Object.freeze(zg);var qg={buildRuleNotFoundError:(e,t)=>"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"},Ug={buildDuplicateFoundError(e,t){function r(e){return e instanceof Vh?e.terminalType.name:e instanceof jh?e.nonTerminalName:""}Ge(r,"getExtraProductionArgument");const n=e.name,a=km(t),i=a.idx,s=ey(a),o=r(a);let l=`->${s}${i>0?i:""}<- ${o?`with argument: ->${o}<-`:""}\n appears more than once (${t.length} times) in the top level rule: ->${n}<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n `;return l=l.replace(/[ \t]+/g," "),l=l.replace(/\s\s+/g,"\n"),l},buildNamespaceConflictError:e=>`Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter.`,buildAlternationPrefixAmbiguityError(e){const t=Im(e.prefixPath,e=>kg(e)).join(", "),r=0===e.alternation.idx?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix\nin <OR${r}> inside <${e.topLevelRule.name}> Rule,\n<${t}> may appears as a prefix path in all these alternatives.\nSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details.`},buildAlternationAmbiguityError(e){const t=0===e.alternation.idx?"":e.alternation.idx,r=0===e.prefixPath.length;let n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in <OR${t}> inside <${e.topLevelRule.name}> Rule,\n`;if(r)n+="These alternatives are all empty (match no tokens), making them indistinguishable.\nOnly the last alternative may be empty.\n";else{n+=`<${Im(e.prefixPath,e=>kg(e)).join(", ")}> may appears as a prefix path in all these alternatives.\n`}return n+="See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details.",n},buildEmptyRepetitionError(e){let t=ey(e.repetition);0!==e.repetition.idx&&(t+=e.repetition.idx);return`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.\nThis 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.\nOnly the last alternative may be an empty alternative.`,buildTooManyAlternativesError:e=>`An Alternation cannot have more than 256 alternatives:\n<OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.\n has ${e.alternation.definition.length+1} alternatives.`,buildLeftRecursionError(e){const t=e.topLevelRule.name;return`Left Recursion found in grammar.\nrule: <${t}> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n ${`${t} --\x3e ${Im(e.leftRecursionPath,e=>e.name).concat([t]).join(" --\x3e ")}`}\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError:e=>"deprecated",buildDuplicateRuleNameError(e){let t;t=e.topLevelRule instanceof Fh?e.topLevelRule.name:e.topLevelRule;return`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};function Bg(e,t){const r=new Hg(e,t);return r.resolveRefs(),r.errors}Ge(Bg,"resolveGrammar");var Wg,Vg,Hg=class extends Qh{static{Ge(this,"GastRefResolverVisitor")}constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){cm(Wm(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){const t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{const t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:Wv.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},Yg=class extends ty{static{Ge(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=Sd(this.path.ruleStack).reverse(),this.occurrenceStack=Sd(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){const n=t.concat(r);this.updateExpectedNext(),this.walk(e.referencedRule,n)}}updateExpectedNext(){th(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},Qg=class extends Yg{static{Ge(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){const e=t.concat(r),n=new Gh({definition:e});this.possibleTokTypes=ny(n),this.found=!0}}},Zg=class extends ty{static{Ge(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}},Xg=class extends Zg{static{Ge(this,"NextTerminalAfterManyWalker")}walkMany(e,t,r){if(e.idx===this.occurrence){const e=km(t.concat(r));this.result.isEndOfRule=void 0===e,e instanceof Vh&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,r)}},Jg=class extends Zg{static{Ge(this,"NextTerminalAfterManySepWalker")}walkManySep(e,t,r){if(e.idx===this.occurrence){const e=km(t.concat(r));this.result.isEndOfRule=void 0===e,e instanceof Vh&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,r)}},eT=class extends Zg{static{Ge(this,"NextTerminalAfterAtLeastOneWalker")}walkAtLeastOne(e,t,r){if(e.idx===this.occurrence){const e=km(t.concat(r));this.result.isEndOfRule=void 0===e,e instanceof Vh&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,r)}},tT=class extends Zg{static{Ge(this,"NextTerminalAfterAtLeastOneSepWalker")}walkAtLeastOneSep(e,t,r){if(e.idx===this.occurrence){const e=km(t.concat(r));this.result.isEndOfRule=void 0===e,e instanceof Vh&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,r)}};function rT(e,t,r=[]){r=Sd(r);let n=[],a=0;function i(t){return t.concat(am(e,a+1))}function s(e){const a=rT(i(e),t,r);return n.concat(a)}for(Ge(i,"remainingPathWith"),Ge(s,"getAlternativesForProd");r.length<t&&a<e.length;){const t=e[a];if(t instanceof Gh)return s(t.definition);if(t instanceof jh)return s(t.definition);if(t instanceof Kh)n=s(t.definition);else{if(t instanceof zh){return s(t.definition.concat([new Uh({definition:t.definition})]))}if(t instanceof qh){return s([new Gh({definition:t.definition}),new Uh({definition:[new Vh({terminalType:t.separator})].concat(t.definition)})])}if(t instanceof Bh){const e=t.definition.concat([new Uh({definition:[new Vh({terminalType:t.separator})].concat(t.definition)})]);n=s(e)}else if(t instanceof Uh){const e=t.definition.concat([new Uh({definition:t.definition})]);n=s(e)}else{if(t instanceof Wh)return cm(t.definition,e=>{!1===th(e.definition)&&(n=s(e.definition))}),n;if(!(t instanceof Vh))throw Error("non exhaustive match");r.push(t.terminalType)}}a++}return n.push({partialPath:r,suffixDef:am(e,a)}),n}function nT(e,t,r,n){const a="EXIT_NONE_TERMINAL",i=[a],s="EXIT_ALTERNATIVE";let o=!1;const l=t.length,u=l-n-1,c=[],p=[];for(p.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!th(p);){const e=p.pop();if(e===s){o&&rm(p).idx<=u&&p.pop();continue}const n=e.def,d=e.idx,f=e.ruleStack,m=e.occurrenceStack;if(th(n))continue;const h=n[0];if(h===a){const e={idx:d,def:am(n),ruleStack:sm(f),occurrenceStack:sm(m)};p.push(e)}else if(h instanceof Vh)if(d<l-1){const e=d+1;if(r(t[e],h.terminalType)){const t={idx:e,def:am(n),ruleStack:f,occurrenceStack:m};p.push(t)}}else{if(d!==l-1)throw Error("non exhaustive match");c.push({nextTokenType:h.terminalType,nextTokenOccurrence:h.idx,ruleStack:f,occurrenceStack:m}),o=!0}else if(h instanceof jh){const e=Sd(f);e.push(h.nonTerminalName);const t=Sd(m);t.push(h.idx);const r={idx:d,def:h.definition.concat(i,am(n)),ruleStack:e,occurrenceStack:t};p.push(r)}else if(h instanceof Kh){const e={idx:d,def:am(n),ruleStack:f,occurrenceStack:m};p.push(e),p.push(s);const t={idx:d,def:h.definition.concat(am(n)),ruleStack:f,occurrenceStack:m};p.push(t)}else if(h instanceof zh){const e=new Uh({definition:h.definition,idx:h.idx}),t={idx:d,def:h.definition.concat([e],am(n)),ruleStack:f,occurrenceStack:m};p.push(t)}else if(h instanceof qh){const e=new Vh({terminalType:h.separator}),t=new Uh({definition:[e].concat(h.definition),idx:h.idx}),r={idx:d,def:h.definition.concat([t],am(n)),ruleStack:f,occurrenceStack:m};p.push(r)}else if(h instanceof Bh){const e={idx:d,def:am(n),ruleStack:f,occurrenceStack:m};p.push(e),p.push(s);const t=new Vh({terminalType:h.separator}),r=new Uh({definition:[t].concat(h.definition),idx:h.idx}),a={idx:d,def:h.definition.concat([r],am(n)),ruleStack:f,occurrenceStack:m};p.push(a)}else if(h instanceof Uh){const e={idx:d,def:am(n),ruleStack:f,occurrenceStack:m};p.push(e),p.push(s);const t=new Uh({definition:h.definition,idx:h.idx}),r={idx:d,def:h.definition.concat([t],am(n)),ruleStack:f,occurrenceStack:m};p.push(r)}else if(h instanceof Wh)for(let t=h.definition.length-1;t>=0;t--){const e={idx:d,def:h.definition[t].definition.concat(am(n)),ruleStack:f,occurrenceStack:m};p.push(e),p.push(s)}else if(h instanceof Gh)p.push({idx:d,def:h.definition.concat(am(n)),ruleStack:f,occurrenceStack:m});else{if(!(h instanceof Fh))throw Error("non exhaustive match");p.push(aT(h,d,f,m))}}return c}function aT(e,t,r,n){const a=Sd(r);a.push(e.name);const i=Sd(n);return i.push(1),{idx:t,def:e.definition,ruleStack:a,occurrenceStack:i}}function iT(e){if(e instanceof Kh||"Option"===e)return Wg.OPTION;if(e instanceof Uh||"Repetition"===e)return Wg.REPETITION;if(e instanceof zh||"RepetitionMandatory"===e)return Wg.REPETITION_MANDATORY;if(e instanceof qh||"RepetitionMandatoryWithSeparator"===e)return Wg.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Bh||"RepetitionWithSeparator"===e)return Wg.REPETITION_WITH_SEPARATOR;if(e instanceof Wh||"Alternation"===e)return Wg.ALTERNATION;throw Error("non exhaustive match")}function sT(e){const{occurrence:t,rule:r,prodType:n,maxLookahead:a}=e,i=iT(n);return i===Wg.ALTERNATION?gT(t,r,a):TT(t,r,i,a)}function oT(e,t,r,n,a,i){const s=gT(e,t,r);return i(s,n,RT(s)?lg:og,a)}function lT(e,t,r,n,a,i){const s=TT(e,t,a,r),o=RT(s)?lg:og;return i(s[0],o,n)}function uT(e,t,r,n){const a=e.length,i=ym(e,e=>ym(e,e=>1===e.length));if(t)return function(t){const n=Im(t,e=>e.GATE);for(let i=0;i<a;i++){const t=e[i],a=t.length,s=n[i];if(void 0===s||!1!==s.call(this))e:for(let e=0;e<a;e++){const n=t[e],a=n.length;for(let e=0;e<a;e++){const t=this.LA(e+1);if(!1===r(t,n[e]))continue e}return i}}};if(i&&!n){const t=Im(e,e=>Mc(e)),r=vh(t,(e,t,r)=>(cm(t,t=>{Gm(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=r),cm(t.categoryMatches,t=>{Gm(e,t)||(e[t]=r)})}),e),{});return function(){const e=this.LA(1);return r[e.tokenTypeIdx]}}return function(){for(let t=0;t<a;t++){const n=e[t],a=n.length;e:for(let e=0;e<a;e++){const a=n[e],i=a.length;for(let e=0;e<i;e++){const t=this.LA(e+1);if(!1===r(t,a[e]))continue e}return t}}}}function cT(e,t,r){const n=ym(e,e=>1===e.length),a=e.length;if(n&&!r){const t=Mc(e);if(1===t.length&&th(t[0].categoryMatches)){const e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{const e=vh(t,(e,t,r)=>(e[t.tokenTypeIdx]=!0,cm(t.categoryMatches,t=>{e[t]=!0}),e),[]);return function(){const t=this.LA(1);return!0===e[t.tokenTypeIdx]}}}return function(){e:for(let r=0;r<a;r++){const n=e[r],a=n.length;for(let e=0;e<a;e++){const r=this.LA(e+1);if(!1===t(r,n[e]))continue e}return!0}return!1}}Ge(rT,"possiblePathsFrom"),Ge(nT,"nextPossibleTokensAfter"),Ge(aT,"expandTopLevelRule"),(Vg=Wg||(Wg={}))[Vg.OPTION=0]="OPTION",Vg[Vg.REPETITION=1]="REPETITION",Vg[Vg.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",Vg[Vg.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",Vg[Vg.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",Vg[Vg.ALTERNATION=5]="ALTERNATION",Ge(iT,"getProdType"),Ge(sT,"getLookaheadPaths"),Ge(oT,"buildLookaheadFuncForOr"),Ge(lT,"buildLookaheadFuncForOptionalProd"),Ge(uT,"buildAlternativesLookAheadFunc"),Ge(cT,"buildSingleAlternativeLookaheadFunction");var pT=class extends ty{static{Ge(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,Wg.OPTION,t,r)||super.walkOption(e,t,r)}walkAtLeastOne(e,t,r){this.checkIsTarget(e,Wg.REPETITION_MANDATORY,t,r)||super.walkOption(e,t,r)}walkAtLeastOneSep(e,t,r){this.checkIsTarget(e,Wg.REPETITION_MANDATORY_WITH_SEPARATOR,t,r)||super.walkOption(e,t,r)}walkMany(e,t,r){this.checkIsTarget(e,Wg.REPETITION,t,r)||super.walkOption(e,t,r)}walkManySep(e,t,r){this.checkIsTarget(e,Wg.REPETITION_WITH_SEPARATOR,t,r)||super.walkOption(e,t,r)}},dT=class extends Qh{static{Ge(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,Wg.OPTION)}visitRepetition(e){this.checkIsTarget(e,Wg.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,Wg.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,Wg.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,Wg.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,Wg.ALTERNATION)}};function fT(e){const t=new Array(e);for(let r=0;r<e;r++)t[r]=[];return t}function mT(e){let t=[""];for(let r=0;r<e.length;r++){const n=e[r],a=[];for(let e=0;e<t.length;e++){const r=t[e];a.push(r+"_"+n.tokenTypeIdx);for(let e=0;e<n.categoryMatches.length;e++){const t="_"+n.categoryMatches[e];a.push(r+t)}}t=a}return t}function hT(e,t,r){for(let n=0;n<e.length;n++){if(n===r)continue;const a=e[n];for(let e=0;e<t.length;e++){if(!0===a[t[e]])return!1}}return!0}function yT(e,t){const r=Im(e,e=>rT([e],1)),n=fT(r.length),a=Im(r,e=>{const t={};return cm(e,e=>{const r=mT(e.partialPath);cm(r,e=>{t[e]=!0})}),t});let i=r;for(let s=1;s<=t;s++){const e=i;i=fT(e.length);for(let r=0;r<e.length;r++){const o=e[r];for(let e=0;e<o.length;e++){const l=o[e].partialPath,u=o[e].suffixDef,c=mT(l);if(hT(a,c,r)||th(u)||l.length===t){const e=n[r];if(!1===vT(e,l)){e.push(l);for(let e=0;e<c.length;e++){const t=c[e];a[r][t]=!0}}}else{const e=rT(u,s+1,l);i[r]=i[r].concat(e),cm(e,e=>{const t=mT(e.partialPath);cm(t,e=>{a[r][e]=!0})})}}}}return n}function gT(e,t,r,n){const a=new dT(e,Wg.ALTERNATION,n);return t.accept(a),yT(a.result,r)}function TT(e,t,r,n){const a=new dT(e,r);t.accept(a);const i=a.result,s=new pT(t,e,r).startWalking();return yT([new Gh({definition:i}),new Gh({definition:s})],n)}function vT(e,t){e:for(let r=0;r<e.length;r++){const n=e[r];if(n.length===t.length){for(let e=0;e<n.length;e++){const r=t[e],a=n[e];if(!1===(r===a||void 0!==a.categoryMatchesMap[r.tokenTypeIdx]))continue e}return!0}}return!1}function $T(e,t){return e.length<t.length&&ym(e,(e,r)=>{const n=t[r];return e===n||n.categoryMatchesMap[e.tokenTypeIdx]})}function RT(e){return ym(e,e=>ym(e,e=>ym(e,e=>th(e.categoryMatches))))}function bT(e){const t=e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName});return Im(t,e=>Object.assign({type:Wv.CUSTOM_LOOKAHEAD_VALIDATION},e))}function ET(e,t,r,n){const a=Pm(e,e=>AT(e,r)),i=GT(e,t,r),s=Pm(e,e=>LT(e,r)),o=Pm(e,t=>xT(t,e,n,r));return a.concat(i,s,o)}function AT(e,t){const r=new kT;e.accept(r);const n=r.allProductions,a=Dm(n,CT),i=hh(a,e=>e.length>1);return Im(Wm(i),r=>{const n=km(r),a=t.buildDuplicateFoundError(e,r),i=ey(n),s={message:a,type:Wv.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:i,occurrence:n.idx},o=ST(n);return o&&(s.parameter=o),s})}function CT(e){return`${ey(e)}_#_${e.idx}_#_${ST(e)}`}function ST(e){return e instanceof Vh?e.terminalType.name:e instanceof jh?e.nonTerminalName:""}Ge(fT,"initializeArrayOfArrays"),Ge(mT,"pathToHashKeys"),Ge(hT,"isUniquePrefixHash"),Ge(yT,"lookAheadSequenceFromAlternatives"),Ge(gT,"getLookaheadPathsForOr"),Ge(TT,"getLookaheadPathsForOptionalProd"),Ge(vT,"containsPath"),Ge($T,"isStrictPrefixOfPath"),Ge(RT,"areTokenCategoriesNotUsed"),Ge(bT,"validateLookahead"),Ge(ET,"validateGrammar"),Ge(AT,"validateDuplicateProductions"),Ge(CT,"identifyProductionForDuplicates"),Ge(ST,"getExtraProductionArgument");var kT=class extends Qh{static{Ge(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 xT(e,t,r,n){const a=[];if(vh(t,(t,r)=>r.name===e.name?t+1:t,0)>1){const t=n.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});a.push({message:t,type:Wv.DUPLICATE_RULE_NAME,ruleName:e.name})}return a}function wT(e,t,r){const n=[];let a;return Ym(t,e)||(a=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,n.push({message:a,type:Wv.INVALID_RULE_OVERRIDE,ruleName:e})),n}function NT(e,t,r,n=[]){const a=[],i=IT(t.definition);if(th(i))return[];{const t=e.name;Ym(i,e)&&a.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:n}),type:Wv.LEFT_RECURSION,ruleName:t});const s=em(i,n.concat([e])),o=Pm(s,t=>{const a=Sd(n);return a.push(t),NT(e,t,r,a)});return a.concat(o)}}function IT(e){let t=[];if(th(e))return t;const r=km(e);if(r instanceof jh)t.push(r.referencedRule);else if(r instanceof Gh||r instanceof Kh||r instanceof zh||r instanceof qh||r instanceof Bh||r instanceof Uh)t=t.concat(IT(r.definition));else if(r instanceof Wh)t=Mc(Im(r.definition,e=>IT(e.definition)));else if(!(r instanceof Vh))throw Error("non exhaustive match");const n=Xh(r),a=e.length>1;if(n&&a){const r=am(e);return t.concat(IT(r))}return t}Ge(xT,"validateRuleDoesNotAlreadyExist"),Ge(wT,"validateRuleIsOverridden"),Ge(NT,"validateNoLeftRecursion"),Ge(IT,"getFirstNoneTerminal");var _T=class extends Qh{static{Ge(this,"OrCollector")}constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};function PT(e,t){const r=new _T;e.accept(r);const n=r.alternations;return Pm(n,r=>{const n=sm(r.definition);return Pm(n,(n,a)=>{const i=nT([n],[],og,1);return th(i)?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:r,emptyChoiceIdx:a}),type:Wv.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:r.idx,alternative:a+1}]:[]})})}function OT(e,t,r){const n=new _T;e.accept(n);let a=n.alternations;a=Rh(a,e=>!0===e.ignoreAmbiguities);return Pm(a,n=>{const a=n.idx,i=n.maxLookahead||t,s=gT(a,e,i,n),o=jT(s,n,e,r),l=FT(s,n,e,r);return o.concat(l)})}Ge(PT,"validateEmptyOrAlternative"),Ge(OT,"validateAmbiguousAlternationAlternatives");var DT=class extends Qh{static{Ge(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 LT(e,t){const r=new _T;e.accept(r);const n=r.alternations;return Pm(n,r=>r.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:r}),type:Wv.TOO_MANY_ALTS,ruleName:e.name,occurrence:r.idx}]:[])}function MT(e,t,r){const n=[];return cm(e,e=>{const a=new DT;e.accept(a);const i=a.allProductions;cm(i,a=>{const i=iT(a),s=a.maxLookahead||t,o=TT(a.idx,e,i,s)[0];if(th(Mc(o))){const t=r.buildEmptyRepetitionError({topLevelRule:e,repetition:a});n.push({message:t,type:Wv.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),n}function jT(e,t,r,n){const a=[],i=vh(e,(r,n,i)=>(!0===t.definition[i].ignoreAmbiguities||cm(n,n=>{const s=[i];cm(e,(e,r)=>{i!==r&&vT(e,n)&&!0!==t.definition[r].ignoreAmbiguities&&s.push(r)}),s.length>1&&!vT(a,n)&&(a.push(n),r.push({alts:s,path:n}))}),r),[]);return Im(i,e=>{const a=Im(e.alts,e=>e+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:a,prefixPath:e.path}),type:Wv.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:e.alts}})}function FT(e,t,r,n){const a=vh(e,(e,t,r)=>{const n=Im(t,e=>({idx:r,path:e}));return e.concat(n)},[]);return xd(Pm(a,e=>{if(!0===t.definition[e.idx].ignoreAmbiguities)return[];const i=e.idx,s=e.path,o=$m(a,e=>!0!==t.definition[e.idx].ignoreAmbiguities&&e.idx<i&&$T(e.path,s));return Im(o,e=>{const a=[e.idx+1,i+1],s=0===t.idx?"":t.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:a,prefixPath:e.path}),type:Wv.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:s,alternatives:a}})}))}function GT(e,t,r){const n=[],a=Im(t,e=>e.name);return cm(e,e=>{const t=e.name;if(Ym(a,t)){const a=r.buildNamespaceConflictError(e);n.push({message:a,type:Wv.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),n}function KT(e){const t=Vf(e,{errMsgProvider:qg}),r={};return cm(e.rules,e=>{r[e.name]=e}),Bg(r,t.errMsgProvider)}function zT(e){return ET((e=Vf(e,{errMsgProvider:Ug})).rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}Ge(LT,"validateTooManyAlts"),Ge(MT,"validateSomeNonEmptyLookaheadPath"),Ge(jT,"checkAlternativesAmbiguities"),Ge(FT,"checkPrefixAlternativesAmbiguities"),Ge(GT,"checkTerminalAndNoneTerminalsNameSpace"),Ge(KT,"resolveGrammar"),Ge(zT,"validateGrammar");var qT="MismatchedTokenException",UT="NoViableAltException",BT="EarlyExitException",WT="NotAllInputParsedException",VT=[qT,UT,BT,WT];function HT(e){return Ym(VT,e.name)}Object.freeze(VT),Ge(HT,"isRecognitionException");var YT=class extends Error{static{Ge(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)}},QT=class extends YT{static{Ge(this,"MismatchedTokenException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=qT}},ZT=class extends YT{static{Ge(this,"NoViableAltException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=UT}},XT=class extends YT{static{Ge(this,"NotAllInputParsedException")}constructor(e,t){super(e,t),this.name=WT}},JT=class extends YT{static{Ge(this,"EarlyExitException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=BT}},ev={},tv="InRuleRecoveryException",rv=class extends Error{static{Ge(this,"InRuleRecoveryException")}constructor(e){super(e),this.name=tv}},nv=class{static{Ge(this,"Recoverable")}initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Gm(e,"recoveryEnabled")?e.recoveryEnabled:Hv.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=av)}getTokenToInsert(e){const t=Gg(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){const a=this.findReSyncTokenType(),i=this.exportLexerState(),s=[];let o=!1;const l=this.LA(1);let u=this.LA(1);const c=Ge(()=>{const e=this.LA(0),t=this.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),r=new QT(t,l,this.LA(0));r.resyncedTokens=sm(s),this.SAVE_ERROR(r)},"generateErrorMessage");for(;!o;){if(this.tokenMatcher(u,n))return void c();if(r.call(this))return c(),void e.apply(this,t);this.tokenMatcher(u,a)?o=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,s))}this.importLexerState(i)}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){const 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)){const e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new rv("sad sad panda")}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e))return!1;if(th(t))return!1;const r=this.LA(1);return void 0!==Cm(t,e=>this.tokenMatcher(r,e))}canRecoverWithSingleTokenDeletion(e){if(!this.canTokenTypeBeDeletedInRecovery(e))return!1;return this.tokenMatcher(this.LA(2),e)}isInCurrentRuleReSyncSet(e){const t=this.getCurrFollowKey(),r=this.getFollowSetFromFollowKey(t);return Ym(r,e)}findReSyncTokenType(){const e=this.flattenFollowSet();let t=this.LA(1),r=2;for(;;){const n=Cm(e,e=>Kg(t,e));if(void 0!==n)return n;t=this.LA(r),r++}}getCurrFollowKey(){if(1===this.RULE_STACK.length)return ev;const e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(r)}}buildFullFollowKeyStack(){const e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return Im(e,(r,n)=>0===n?ev:{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:t[n],inRule:this.shortRuleNameToFullName(e[n-1])})}flattenFollowSet(){const e=Im(this.buildFullFollowKeyStack(),e=>this.getFollowSetFromFollowKey(e));return Mc(e)}getFollowSetFromFollowKey(e){if(e===ev)return[Fg];const t=e.ruleName+e.idxInCallingRule+oy+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,Fg)||t.push(e),t}reSyncTo(e){const t=[];let r=this.LA(1);for(;!1===this.tokenMatcher(r,e);)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,t);return sm(t)}attemptInRepetitionRecovery(e,t,r,n,a,i,s){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:Sd(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return Im(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}};function av(e,t,r,n,a,i,s){const o=this.getKeyForAutomaticLookahead(n,a);let l=this.firstAfterRepMap[o];if(void 0===l){const e=this.getCurrRuleFullName();l=new i(this.getGAstProductions()[e],a).startWalking(),this.firstAfterRepMap[o]=l}let u=l.token,c=l.occurrence;const p=l.isEndOfRule;1===this.RULE_STACK.length&&p&&void 0===u&&(u=Fg,c=1),void 0!==u&&void 0!==c&&this.shouldInRepetitionRecoveryBeTried(u,c,s)&&this.tryInRepetitionRecovery(e,t,r,u)}Ge(av,"attemptInRepetitionRecovery");var iv=1024,sv=1280,ov=1536;function lv(e,t,r){return r|t|e}Ge(lv,"getKeyForAutomaticLookahead");var uv=class{static{Ge(this,"LLkLookaheadStrategy")}constructor(e){var t;this.maxLookahead=null!==(t=null==e?void 0:e.maxLookahead)&&void 0!==t?t:Hv.maxLookahead}validate(e){const t=this.validateNoLeftRecursion(e.rules);if(th(t)){const r=this.validateEmptyOrAlternatives(e.rules),n=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),a=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...t,...r,...n,...a]}return t}validateNoLeftRecursion(e){return Pm(e,e=>NT(e,e,Ug))}validateEmptyOrAlternatives(e){return Pm(e,e=>PT(e,Ug))}validateAmbiguousAlternationAlternatives(e,t){return Pm(e,e=>OT(e,t,Ug))}validateSomeNonEmptyLookaheadPath(e,t){return MT(e,t,Ug)}buildLookaheadForAlternation(e){return oT(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,uT)}buildLookaheadForOptional(e){return lT(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,iT(e.prodType),cT)}},cv=class{static{Ge(this,"LooksAhead")}initLooksAhead(e){this.dynamicTokensEnabled=Gm(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:Hv.dynamicTokensEnabled,this.maxLookahead=Gm(e,"maxLookahead")?e.maxLookahead:Hv.maxLookahead,this.lookaheadStrategy=Gm(e,"lookaheadStrategy")?e.lookaheadStrategy:new uv({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){cm(e,e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{const{alternation:t,repetition:r,option:n,repetitionMandatory:a,repetitionMandatoryWithSeparator:i,repetitionWithSeparator:s}=fv(e);cm(t,t=>{const r=0===t.idx?"":t.idx;this.TRACE_INIT(`${ey(t)}${r}`,()=>{const r=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),n=lv(this.fullRuleNameToShort[e.name],256,t.idx);this.setLaFuncCache(n,r)})}),cm(r,t=>{this.computeLookaheadFunc(e,t.idx,768,"Repetition",t.maxLookahead,ey(t))}),cm(n,t=>{this.computeLookaheadFunc(e,t.idx,512,"Option",t.maxLookahead,ey(t))}),cm(a,t=>{this.computeLookaheadFunc(e,t.idx,iv,"RepetitionMandatory",t.maxLookahead,ey(t))}),cm(i,t=>{this.computeLookaheadFunc(e,t.idx,ov,"RepetitionMandatoryWithSeparator",t.maxLookahead,ey(t))}),cm(s,t=>{this.computeLookaheadFunc(e,t.idx,sv,"RepetitionWithSeparator",t.maxLookahead,ey(t))})})})}computeLookaheadFunc(e,t,r,n,a,i){this.TRACE_INIT(`${i}${0===t?"":t}`,()=>{const i=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:a||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:n}),s=lv(this.fullRuleNameToShort[e.name],r,t);this.setLaFuncCache(s,i)})}getKeyForAutomaticLookahead(e,t){return lv(this.getLastExplicitRuleShortName(),e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},pv=class extends Qh{static{Ge(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)}},dv=new pv;function fv(e){dv.reset(),e.accept(dv);const t=dv.dslMethods;return dv.reset(),t}function mv(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset)}function hv(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 yv(e,t,r){void 0===e.children[r]?e.children[r]=[t]:e.children[r].push(t)}function gv(e,t,r){void 0===e.children[t]?e.children[t]=[r]:e.children[t].push(r)}Ge(fv,"collectMethods"),Ge(mv,"setNodeLocationOnlyOffset"),Ge(hv,"setNodeLocationFull"),Ge(yv,"addTerminalToCst"),Ge(gv,"addNoneTerminalToCst");var Tv,vv;function $v(e,t){Object.defineProperty(e,"name",{enumerable:!1,configurable:!0,writable:!1,value:t})}function Rv(e,t){const r=su(e),n=r.length;for(let a=0;a<n;a++){const n=e[r[a]],i=n.length;for(let e=0;e<i;e++){const r=n[e];void 0===r.tokenTypeIdx&&this[r.name](r.children,t)}}}function bv(e,t){const r=Ge(function(){},"derivedConstructor");$v(r,e+"BaseSemantics");const n={visit:Ge(function(e,t){if(ks(e)&&(e=e[0]),!oh(e))return this[e.name](e.children,t)},"visit"),validateVisitor:Ge(function(){const e=Av(this,t);if(!th(e)){const t=Im(e,e=>e.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:\n\t${t.join("\n\n").replace(/\n/g,"\n\t")}`)}},"validateVisitor")};return r.prototype=n,r.prototype.constructor=r,r._RULE_NAMES=t,r}function Ev(e,t,r){const n=Ge(function(){},"derivedConstructor");$v(n,e+"BaseSemanticsWithDefaults");const a=Object.create(r.prototype);return cm(t,e=>{a[e]=Rv}),n.prototype=a,n.prototype.constructor=n,n}function Av(e,t){return Cv(e,t)}function Cv(e,t){const r=$m(t,t=>!1===to(e[t])),n=Im(r,t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:Tv.MISSING_METHOD,methodName:t}));return xd(n)}Ge($v,"defineNameProp"),Ge(Rv,"defaultVisit"),Ge(bv,"createBaseSemanticVisitorConstructor"),Ge(Ev,"createBaseVisitorConstructorWithDefaults"),(vv=Tv||(Tv={}))[vv.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",vv[vv.MISSING_METHOD=1]="MISSING_METHOD",Ge(Av,"validateVisitor"),Ge(Cv,"validateMissingCstMethods");var Sv=class{static{Ge(this,"TreeBuilder")}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Gm(e,"nodeLocationTracking")?e.nodeLocationTracking:Hv.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=hv,this.setNodeLocationFromNode=hv,this.cstPostRule=xo,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=xo,this.setNodeLocationFromNode=xo,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=mv,this.setNodeLocationFromNode=mv,this.cstPostRule=xo,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=xo,this.setNodeLocationFromNode=xo,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error(`Invalid <nodeLocationTracking> config option: "${e.nodeLocationTracking}"`);this.setNodeLocationFromToken=xo,this.setNodeLocationFromNode=xo,this.cstPostRule=xo,this.setInitialNodeLocation=xo}else this.cstInvocationStateUpdate=xo,this.cstFinallyStateUpdate=xo,this.cstPostTerminal=xo,this.cstPostNonTerminal=xo,this.cstPostRule=xo}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){const t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){const t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){const 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){const t=this.LA(0),r=e.location;r.startOffset<=t.startOffset==!0?r.endOffset=t.endOffset:r.startOffset=NaN}cstPostTerminal(e,t){const r=this.CST_STACK[this.CST_STACK.length-1];yv(r,t,e),this.setNodeLocationFromToken(r.location,t)}cstPostNonTerminal(e,t){const r=this.CST_STACK[this.CST_STACK.length-1];gv(r,t,e),this.setNodeLocationFromNode(r.location,e.location)}getBaseCstVisitorConstructor(){if(oh(this.baseCstVisitorConstructor)){const e=bv(this.className,su(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(oh(this.baseCstVisitorWithDefaultsConstructor)){const e=Ev(this.className,su(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){const e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},kv=class{static{Ge(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)):Bv}LA(e){const t=this.currIdx+e;return t<0||this.tokVectorLength<=t?Bv: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()}},xv=class{static{Ge(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=Yv){if(Ym(this.definedRulesNames,e)){const t={message:Ug.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:Wv.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);const n=this.defineRule(e,t,r);return this[e]=n,n}OVERRIDE_RULE(e,t,r=Yv){const n=wT(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(n);const a=this.defineRule(e,t,r);return this[e]=a,a}BACKTRACK(e,t){return function(){this.isBackTrackingStack.push(1);const r=this.saveRecogState();try{return e.apply(this,t),!0}catch(n){if(HT(n))return!1;throw n}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return Hh(Wm(this.gastProductionsCache))}},wv=class{static{Ge(this,"RecognizerEngine")}initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=lg,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Gm(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if(ks(e)){if(th(e))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis 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\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if(ks(e))this.tokensMap=vh(e,(e,t)=>(e[t.name]=t,e),{});else if(Gm(e,"modes")&&ym(Mc(Wm(e.modes)),Rg)){const t=Mc(Wm(e.modes)),r=Nh(t);this.tokensMap=vh(r,(e,t)=>(e[t.name]=t,e),{})}else{if(!Fs(e))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=Sd(e)}this.tokensMap.EOF=Fg;const r=Gm(e,"modes")?Mc(Wm(e.modes)):Wm(e),n=ym(r,e=>th(e.categoryMatches));this.tokenMatcher=n?lg:og,pg(Wm(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'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const n=Gm(r,"resyncEnabled")?r.resyncEnabled:Yv.resyncEnabled,a=Gm(r,"recoveryValueFunc")?r.recoveryValueFunc:Yv.recoveryValueFunc,i=this.ruleShortNameIdx<<12;let s;this.ruleShortNameIdx++,this.shortRuleNameToFull[i]=e,this.fullRuleNameToShort[e]=i,s=!0===this.outputCst?Ge(function(...r){try{this.ruleInvocationStateUpdate(i,e,this.subruleIdx),t.apply(this,r);const n=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(n),n}catch(s){return this.invokeRuleCatch(s,n,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):Ge(function(...r){try{return this.ruleInvocationStateUpdate(i,e,this.subruleIdx),t.apply(this,r)}catch(s){return this.invokeRuleCatch(s,n,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst");return Object.assign(s,{ruleName:e,originalGrammarAction:t})}invokeRuleCatch(e,t,r){const n=1===this.RULE_STACK.length,a=t&&!this.isBackTracking()&&this.recoveryEnabled;if(HT(e)){const t=e;if(a){const n=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(n)){if(t.resyncedTokens=this.reSyncTo(n),this.outputCst){const e=this.CST_STACK[this.CST_STACK.length-1];return e.recoveredNode=!0,e}return r(e)}if(this.outputCst){const e=this.CST_STACK[this.CST_STACK.length-1];e.recoveredNode=!0,t.partialCstResult=e}throw t}if(n)return this.moveToTerminatedState(),r(e);throw t}throw e}optionInternal(e,t){const r=this.getKeyForAutomaticLookahead(512,t);return this.optionInternalLogic(e,t,r)}optionInternalLogic(e,t,r){let n,a=this.getLaFuncFromCache(r);if("function"!=typeof e){n=e.DEF;const t=e.GATE;if(void 0!==t){const e=a;a=Ge(()=>t.call(this)&&e.call(this),"lookAheadFunc")}}else n=e;if(!0===a.call(this))return n.call(this)}atLeastOneInternal(e,t){const r=this.getKeyForAutomaticLookahead(iv,e);return this.atLeastOneInternalLogic(e,t,r)}atLeastOneInternalLogic(e,t,r){let n,a=this.getLaFuncFromCache(r);if("function"!=typeof t){n=t.DEF;const e=t.GATE;if(void 0!==e){const t=a;a=Ge(()=>e.call(this)&&t.call(this),"lookAheadFunc")}}else n=t;if(!0!==a.call(this))throw this.raiseEarlyExitException(e,Wg.REPETITION_MANDATORY,t.ERR_MSG);{let e=this.doSingleRepetition(n);for(;!0===a.call(this)&&!0===e;)e=this.doSingleRepetition(n)}this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],a,iv,e,eT)}atLeastOneSepFirstInternal(e,t){const r=this.getKeyForAutomaticLookahead(ov,e);this.atLeastOneSepFirstInternalLogic(e,t,r)}atLeastOneSepFirstInternalLogic(e,t,r){const n=t.DEF,a=t.SEP;if(!0!==this.getLaFuncFromCache(r).call(this))throw this.raiseEarlyExitException(e,Wg.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG);{n.call(this);const t=Ge(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;!0===this.tokenMatcher(this.LA(1),a);)this.CONSUME(a),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,t,n,tT],t,ov,e,tT)}}manyInternal(e,t){const r=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,t,r)}manyInternalLogic(e,t,r){let n,a=this.getLaFuncFromCache(r);if("function"!=typeof t){n=t.DEF;const e=t.GATE;if(void 0!==e){const t=a;a=Ge(()=>e.call(this)&&t.call(this),"lookaheadFunction")}}else n=t;let i=!0;for(;!0===a.call(this)&&!0===i;)i=this.doSingleRepetition(n);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],a,768,e,Xg,i)}manySepFirstInternal(e,t){const r=this.getKeyForAutomaticLookahead(sv,e);this.manySepFirstInternalLogic(e,t,r)}manySepFirstInternalLogic(e,t,r){const n=t.DEF,a=t.SEP;if(!0===this.getLaFuncFromCache(r).call(this)){n.call(this);const t=Ge(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;!0===this.tokenMatcher(this.LA(1),a);)this.CONSUME(a),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,t,n,Jg],t,sv,e,Jg)}}repetitionSepSecondInternal(e,t,r,n,a){for(;r();)this.CONSUME(t),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,r,n,a],r,ov,e,a)}doSingleRepetition(e){const t=this.getLexerPosition();e.call(this);return this.getLexerPosition()>t}orInternal(e,t){const r=this.getKeyForAutomaticLookahead(256,t),n=ks(e)?e:e.DEF,a=this.getLaFuncFromCache(r).call(this,n);if(void 0!==a){return n[a].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()){const e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new XT(t,e))}}subruleInternal(e,t,r){let n;try{const a=void 0!==r?r.ARGS:void 0;return this.subruleIdx=t,n=e.apply(this,a),this.cstPostNonTerminal(n,void 0!==r&&void 0!==r.LABEL?r.LABEL:e.ruleName),n}catch(a){throw this.subruleInternalError(a,r,e.ruleName)}}subruleInternalError(e,t,r){throw HT(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{const t=this.LA(1);!0===this.tokenMatcher(t,e)?(this.consumeToken(),n=t):this.consumeInternalError(e,t,r)}catch(a){n=this.consumeInternalRecovery(e,t,a)}return this.cstPostTerminal(void 0!==r&&void 0!==r.LABEL?r.LABEL:e.name,n),n}consumeInternalError(e,t,r){let n;const a=this.LA(0);throw n=void 0!==r&&r.ERR_MSG?r.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new QT(n,t,a))}consumeInternalRecovery(e,t,r){if(!this.recoveryEnabled||"MismatchedTokenException"!==r.name||this.isBackTracking())throw r;{const a=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,a)}catch(n){throw n.name===tv?r:n}}}saveRecogState(){const e=this.errors,t=Sd(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(){const e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),Fg)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},Nv=class{static{Ge(this,"ErrorHandler")}initErrorHandler(e){this._errors=[],this.errorMessageProvider=Gm(e,"errorMessageProvider")?e.errorMessageProvider:Hv.errorMessageProvider}SAVE_ERROR(e){if(HT(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Sd(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return Sd(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,r){const n=this.getCurrRuleFullName(),a=TT(e,this.getGAstProductions()[n],t,this.maxLookahead)[0],i=[];for(let o=1;o<=this.maxLookahead;o++)i.push(this.LA(o));const s=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:a,actual:i,previous:this.LA(0),customUserDescription:r,ruleName:n});throw this.SAVE_ERROR(new JT(s,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){const r=this.getCurrRuleFullName(),n=gT(e,this.getGAstProductions()[r],this.maxLookahead),a=[];for(let o=1;o<=this.maxLookahead;o++)a.push(this.LA(o));const i=this.LA(0),s=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:n,actual:a,previous:i,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new ZT(s,this.LA(1),i))}},Iv=class{static{Ge(this,"ContentAssist")}initContentAssist(){}computeContentAssist(e,t){const r=this.gastProductionsCache[e];if(oh(r))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return nT([r],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){const t=km(e.ruleStack),r=this.getGAstProductions()[t];return new Qg(r,e).startWalking()}},_v={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(_v);var Pv=!0,Ov=Math.pow(2,8)-1,Dv=Mg({name:"RECORDING_PHASE_TOKEN",pattern:Sg.NA});pg([Dv]);var Lv=Gg(Dv,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(Lv);var Mv={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",children:{}},jv=class{static{Ge(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++){const 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",()=>{const e=this;for(let t=0;t<10;t++){const r=t>0?t:"";delete e[`CONSUME${r}`],delete e[`SUBRULE${r}`],delete e[`OPTION${r}`],delete e[`OR${r}`],delete e[`MANY${r}`],delete e[`MANY_SEP${r}`],delete e[`AT_LEAST_ONE${r}`],delete e[`AT_LEAST_ONE_SEP${r}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return Bv}topLevelRuleRecord(e,t){try{const r=new Fh({definition:[],name:e});return r.name=e,this.recordingProdStack.push(r),t.call(this),this.recordingProdStack.pop(),r}catch(r){if(!0!==r.KNOWN_RECORDER_ERROR)try{r.message=r.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://chevrotain.io/docs/guide/internals.html#grammar-recording'}catch(n){throw r}throw r}}optionInternalRecord(e,t){return Fv.call(this,Kh,e,t)}atLeastOneInternalRecord(e,t){Fv.call(this,zh,t,e)}atLeastOneSepFirstInternalRecord(e,t){Fv.call(this,qh,t,e,Pv)}manyInternalRecord(e,t){Fv.call(this,Uh,t,e)}manySepFirstInternalRecord(e,t){Fv.call(this,Bh,t,e,Pv)}orInternalRecord(e,t){return Gv.call(this,e,t)}subruleInternalRecord(e,t,r){if(zv(t),!e||!1===Gm(e,"ruleName")){const r=new Error(`<SUBRULE${Kv(t)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);throw r.KNOWN_RECORDER_ERROR=!0,r}const n=rm(this.recordingProdStack),a=e.ruleName,i=new jh({idx:t,nonTerminalName:a,label:null==r?void 0:r.LABEL,referencedRule:void 0});return n.definition.push(i),this.outputCst?Mv:_v}consumeInternalRecord(e,t,r){if(zv(t),!gg(e)){const r=new Error(`<CONSUME${Kv(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);throw r.KNOWN_RECORDER_ERROR=!0,r}const n=rm(this.recordingProdStack),a=new Vh({idx:t,terminalType:e,label:null==r?void 0:r.LABEL});return n.definition.push(a),Lv}};function Fv(e,t,r,n=!1){zv(r);const a=rm(this.recordingProdStack),i=to(t)?t:t.DEF,s=new e({definition:[],idx:r});return n&&(s.separator=t.SEP),Gm(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),i.call(this),a.definition.push(s),this.recordingProdStack.pop(),_v}function Gv(e,t){zv(t);const r=rm(this.recordingProdStack),n=!1===ks(e),a=!1===n?e:e.DEF,i=new Wh({definition:[],idx:t,ignoreAmbiguities:n&&!0===e.IGNORE_AMBIGUITIES});Gm(e,"MAX_LOOKAHEAD")&&(i.maxLookahead=e.MAX_LOOKAHEAD);const s=Ch(a,e=>to(e.GATE));return i.hasPredicates=s,r.definition.push(i),cm(a,e=>{const t=new Gh({definition:[]});i.definition.push(t),Gm(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:Gm(e,"GATE")&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),_v}function Kv(e){return 0===e?"":`${e}`}function zv(e){if(e<0||e>Ov){const t=new Error(`Invalid DSL Method idx value: <${e}>\n\tIdx value must be a none negative value smaller than ${Ov+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}Ge(Fv,"recordProd"),Ge(Gv,"recordOrProd"),Ge(Kv,"getIdxSuffix"),Ge(zv,"assertMethodIdxIsValid");var qv=class{static{Ge(this,"PerformanceTracer")}initPerformanceTracer(e){if(Gm(e,"traceInitPerf")){const 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=Hv.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;const r=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${r}--\x3e <${e}>`);const{time:n,value:a}=Ph(t),i=n>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&i(`${r}<-- <${e}> time: ${n}ms`),this.traceInitIndent--,a}return t()}};function Uv(e,t){t.forEach(t=>{const r=t.prototype;Object.getOwnPropertyNames(r).forEach(n=>{if("constructor"===n)return;const a=Object.getOwnPropertyDescriptor(r,n);a&&(a.get||a.set)?Object.defineProperty(e.prototype,n,a):e.prototype[n]=t.prototype[n]})})}Ge(Uv,"applyMixins");var Bv=Gg(Fg,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Bv);var Wv,Vv,Hv=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:zg,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Yv=Object.freeze({recoveryValueFunc:Ge(()=>{},"recoveryValueFunc"),resyncEnabled:!0});function Qv(e=void 0){return function(){return e}}(Vv=Wv||(Wv={}))[Vv.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",Vv[Vv.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",Vv[Vv.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",Vv[Vv.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",Vv[Vv.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",Vv[Vv.LEFT_RECURSION=5]="LEFT_RECURSION",Vv[Vv.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",Vv[Vv.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",Vv[Vv.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",Vv[Vv.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",Vv[Vv.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",Vv[Vv.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",Vv[Vv.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",Vv[Vv.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION",Ge(Qv,"EMPTY_ALT");var Zv=class e{static{Ge(this,"Parser")}static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let t;this.selfAnalysisDone=!0;const r=this.className;this.TRACE_INIT("toFastProps",()=>{Oh(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),cm(this.definedRulesNames,e=>{const t=this[e].originalGrammarAction;let r;this.TRACE_INIT(`${e} Rule`,()=>{r=this.topLevelRuleRecord(e,t)}),this.gastProductionsCache[e]=r})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=KT({rules:Wm(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(th(n)&&!1===this.skipValidations){const e=zT({rules:Wm(this.gastProductionsCache),tokenTypes:Wm(this.tokensMap),errMsgProvider:Ug,grammarName:r}),t=bT({lookaheadStrategy:this.lookaheadStrategy,rules:Wm(this.gastProductionsCache),tokenTypes:Wm(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(e,t)}}),th(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const e=uy(Wm(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var e,t;null===(t=(e=this.lookaheadStrategy).initialize)||void 0===t||t.call(e,{rules:Wm(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Wm(this.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!th(this.definitionErrors))throw t=Im(this.definitionErrors,e=>e.message),new Error(`Parser Definition Errors detected:\n ${t.join("\n-------------------------------\n")}`)})}constructor(e,t){this.definitionErrors=[],this.selfAnalysisDone=!1;const r=this;if(r.initErrorHandler(t),r.initLexerAdapter(),r.initLooksAhead(t),r.initRecognizerEngine(e,t),r.initRecoverable(t),r.initTreeBuilder(t),r.initContentAssist(),r.initGastRecorder(t),r.initPerformanceTracer(t),Gm(t,"ignoredIssues"))throw new Error("The <ignoredIssues> IParserConfig property has been deprecated.\n\tPlease use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\n\tSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\tFor further details.");this.skipValidations=Gm(t,"skipValidations")?t.skipValidations:Hv.skipValidations}};Zv.DEFER_DEFINITION_ERRORS_HANDLING=!1,Uv(Zv,[nv,cv,Sv,kv,wv,xv,Nv,Iv,jv,qv]);var Xv=class extends Zv{static{Ge(this,"EmbeddedActionsParser")}constructor(e,t=Hv){const r=Sd(t);r.outputCst=!1,super(e,r)}};function Jv(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}Ge(Jv,"arrayMap");var e$=Jv;function t$(){this.__data__=[],this.size=0}Ge(t$,"listCacheClear");var r$=t$;function n$(e,t){return e===t||e!=e&&t!=t}Ge(n$,"eq");var a$=n$;function i$(e,t){for(var r=e.length;r--;)if(a$(e[r][0],t))return r;return-1}Ge(i$,"assocIndexOf");var s$=i$,o$=Array.prototype.splice;function l$(e){var t=this.__data__,r=s$(t,e);return!(r<0)&&(r==t.length-1?t.pop():o$.call(t,r,1),--this.size,!0)}Ge(l$,"listCacheDelete");var u$=l$;function c$(e){var t=this.__data__,r=s$(t,e);return r<0?void 0:t[r][1]}Ge(c$,"listCacheGet");var p$=c$;function d$(e){return s$(this.__data__,e)>-1}Ge(d$,"listCacheHas");var f$=d$;function m$(e,t){var r=this.__data__,n=s$(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}Ge(m$,"listCacheSet");var h$=m$;function y$(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])}}Ge(y$,"ListCache"),y$.prototype.clear=r$,y$.prototype.delete=u$,y$.prototype.get=p$,y$.prototype.has=f$,y$.prototype.set=h$;var g$=y$;function T$(){this.__data__=new g$,this.size=0}Ge(T$,"stackClear");var v$=T$;function $$(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}Ge($$,"stackDelete");var R$=$$;function b$(e){return this.__data__.get(e)}Ge(b$,"stackGet");var E$=b$;function A$(e){return this.__data__.has(e)}Ge(A$,"stackHas");var C$=A$,S$="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,k$="object"==typeof self&&self&&self.Object===Object&&self,x$=S$||k$||Function("return this")(),w$=x$.Symbol,N$=Object.prototype,I$=N$.hasOwnProperty,_$=N$.toString,P$=w$?w$.toStringTag:void 0;function O$(e){var t=I$.call(e,P$),r=e[P$];try{e[P$]=void 0;var n=!0}catch(i){}var a=_$.call(e);return n&&(t?e[P$]=r:delete e[P$]),a}Ge(O$,"getRawTag");var D$=O$,L$=Object.prototype.toString;function M$(e){return L$.call(e)}Ge(M$,"objectToString");var j$=M$,F$=w$?w$.toStringTag:void 0;function G$(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":F$&&F$ in Object(e)?D$(e):j$(e)}Ge(G$,"baseGetTag");var K$=G$;function z$(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Ge(z$,"isObject");var q$=z$;function U$(e){if(!q$(e))return!1;var t=K$(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}Ge(U$,"isFunction");var B$=U$,W$=x$["__core-js_shared__"],V$=function(){var e=/[^.]+$/.exec(W$&&W$.keys&&W$.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function H$(e){return!!V$&&V$ in e}Ge(H$,"isMasked");var Y$=H$,Q$=Function.prototype.toString;function Z$(e){if(null!=e){try{return Q$.call(e)}catch(t){}try{return e+""}catch(t){}}return""}Ge(Z$,"toSource");var X$=Z$,J$=/^\[object .+?Constructor\]$/,eR=Function.prototype,tR=Object.prototype,rR=eR.toString,nR=tR.hasOwnProperty,aR=RegExp("^"+rR.call(nR).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function iR(e){return!(!q$(e)||Y$(e))&&(B$(e)?aR:J$).test(X$(e))}Ge(iR,"baseIsNative");var sR=iR;function oR(e,t){return null==e?void 0:e[t]}Ge(oR,"getValue");var lR=oR;function uR(e,t){var r=lR(e,t);return sR(r)?r:void 0}Ge(uR,"getNative");var cR=uR,pR=cR(x$,"Map"),dR=cR(Object,"create");function fR(){this.__data__=dR?dR(null):{},this.size=0}Ge(fR,"hashClear");var mR=fR;function hR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}Ge(hR,"hashDelete");var yR=hR,gR=Object.prototype.hasOwnProperty;function TR(e){var t=this.__data__;if(dR){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return gR.call(t,e)?t[e]:void 0}Ge(TR,"hashGet");var vR=TR,$R=Object.prototype.hasOwnProperty;function RR(e){var t=this.__data__;return dR?void 0!==t[e]:$R.call(t,e)}Ge(RR,"hashHas");var bR=RR;function ER(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=dR&&void 0===t?"__lodash_hash_undefined__":t,this}Ge(ER,"hashSet");var AR=ER;function CR(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])}}Ge(CR,"Hash"),CR.prototype.clear=mR,CR.prototype.delete=yR,CR.prototype.get=vR,CR.prototype.has=bR,CR.prototype.set=AR;var SR=CR;function kR(){this.size=0,this.__data__={hash:new SR,map:new(pR||g$),string:new SR}}Ge(kR,"mapCacheClear");var xR=kR;function wR(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}Ge(wR,"isKeyable");var NR=wR;function IR(e,t){var r=e.__data__;return NR(t)?r["string"==typeof t?"string":"hash"]:r.map}Ge(IR,"getMapData");var _R=IR;function PR(e){var t=_R(this,e).delete(e);return this.size-=t?1:0,t}Ge(PR,"mapCacheDelete");var OR=PR;function DR(e){return _R(this,e).get(e)}Ge(DR,"mapCacheGet");var LR=DR;function MR(e){return _R(this,e).has(e)}Ge(MR,"mapCacheHas");var jR=MR;function FR(e,t){var r=_R(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}Ge(FR,"mapCacheSet");var GR=FR;function KR(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])}}Ge(KR,"MapCache"),KR.prototype.clear=xR,KR.prototype.delete=OR,KR.prototype.get=LR,KR.prototype.has=jR,KR.prototype.set=GR;var zR=KR;function qR(e,t){var r=this.__data__;if(r instanceof g$){var n=r.__data__;if(!pR||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new zR(n)}return r.set(e,t),this.size=r.size,this}Ge(qR,"stackSet");var UR=qR;function BR(e){var t=this.__data__=new g$(e);this.size=t.size}Ge(BR,"Stack"),BR.prototype.clear=v$,BR.prototype.delete=R$,BR.prototype.get=E$,BR.prototype.has=C$,BR.prototype.set=UR;var WR=BR;function VR(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}Ge(VR,"setCacheAdd");var HR=VR;function YR(e){return this.__data__.has(e)}Ge(YR,"setCacheHas");var QR=YR;function ZR(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new zR;++t<r;)this.add(e[t])}Ge(ZR,"SetCache"),ZR.prototype.add=ZR.prototype.push=HR,ZR.prototype.has=QR;var XR=ZR;function JR(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}Ge(JR,"arraySome");var eb=JR;function tb(e,t){return e.has(t)}Ge(tb,"cacheHas");var rb=tb;function nb(e,t,r,n,a,i){var s=1&r,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var p=-1,d=!0,f=2&r?new XR:void 0;for(i.set(e,t),i.set(t,e);++p<o;){var m=e[p],h=t[p];if(n)var y=s?n(h,m,p,t,e,i):n(m,h,p,e,t,i);if(void 0!==y){if(y)continue;d=!1;break}if(f){if(!eb(t,function(e,t){if(!rb(f,t)&&(m===e||a(m,e,r,n,i)))return f.push(t)})){d=!1;break}}else if(m!==h&&!a(m,h,r,n,i)){d=!1;break}}return i.delete(e),i.delete(t),d}Ge(nb,"equalArrays");var ab=nb,ib=x$.Uint8Array;function sb(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}Ge(sb,"mapToArray");var ob=sb;function lb(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}Ge(lb,"setToArray");var ub=lb,cb=w$?w$.prototype:void 0,pb=cb?cb.valueOf:void 0;function db(e,t,r,n,a,i,s){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new ib(e),new ib(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a$(+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=ob;case"[object Set]":var l=1&n;if(o||(o=ub),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;n|=2,s.set(e,t);var c=ab(o(e),o(t),n,a,i,s);return s.delete(e),c;case"[object Symbol]":if(pb)return pb.call(e)==pb.call(t)}return!1}Ge(db,"equalByTag");var fb=db;function mb(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}Ge(mb,"arrayPush");var hb=mb,yb=Array.isArray;function gb(e,t,r){var n=t(e);return yb(e)?n:hb(n,r(e))}Ge(gb,"baseGetAllKeys");var Tb=gb;function vb(e,t){for(var r=-1,n=null==e?0:e.length,a=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[a++]=s)}return i}Ge(vb,"arrayFilter");var $b=vb;function Rb(){return[]}Ge(Rb,"stubArray");var bb=Rb,Eb=Object.prototype.propertyIsEnumerable,Ab=Object.getOwnPropertySymbols,Cb=Ab?function(e){return null==e?[]:(e=Object(e),$b(Ab(e),function(t){return Eb.call(e,t)}))}:bb;function Sb(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}Ge(Sb,"baseTimes");var kb=Sb;function xb(e){return null!=e&&"object"==typeof e}Ge(xb,"isObjectLike");var wb=xb;function Nb(e){return wb(e)&&"[object Arguments]"==K$(e)}Ge(Nb,"baseIsArguments");var Ib=Nb,_b=Object.prototype,Pb=_b.hasOwnProperty,Ob=_b.propertyIsEnumerable,Db=Ib(function(){return arguments}())?Ib:function(e){return wb(e)&&Pb.call(e,"callee")&&!Ob.call(e,"callee")},Lb=Db;function Mb(){return!1}Ge(Mb,"stubFalse");var jb=Mb,Fb="object"==typeof exports&&exports&&!exports.nodeType&&exports,Gb=Fb&&"object"==typeof module&&module&&!module.nodeType&&module,Kb=Gb&&Gb.exports===Fb?x$.Buffer:void 0,zb=(Kb?Kb.isBuffer:void 0)||jb,qb=/^(?:0|[1-9]\d*)$/;function Ub(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&qb.test(e))&&e>-1&&e%1==0&&e<t}Ge(Ub,"isIndex");var Bb=Ub;function Wb(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}Ge(Wb,"isLength");var Vb=Wb,Hb={};function Yb(e){return wb(e)&&Vb(e.length)&&!!Hb[K$(e)]}Hb["[object Float32Array]"]=Hb["[object Float64Array]"]=Hb["[object Int8Array]"]=Hb["[object Int16Array]"]=Hb["[object Int32Array]"]=Hb["[object Uint8Array]"]=Hb["[object Uint8ClampedArray]"]=Hb["[object Uint16Array]"]=Hb["[object Uint32Array]"]=!0,Hb["[object Arguments]"]=Hb["[object Array]"]=Hb["[object ArrayBuffer]"]=Hb["[object Boolean]"]=Hb["[object DataView]"]=Hb["[object Date]"]=Hb["[object Error]"]=Hb["[object Function]"]=Hb["[object Map]"]=Hb["[object Number]"]=Hb["[object Object]"]=Hb["[object RegExp]"]=Hb["[object Set]"]=Hb["[object String]"]=Hb["[object WeakMap]"]=!1,Ge(Yb,"baseIsTypedArray");var Qb=Yb;function Zb(e){return function(t){return e(t)}}Ge(Zb,"baseUnary");var Xb=Zb,Jb="object"==typeof exports&&exports&&!exports.nodeType&&exports,eE=Jb&&"object"==typeof module&&module&&!module.nodeType&&module,tE=eE&&eE.exports===Jb&&S$.process,rE=function(){try{var e=eE&&eE.require&&eE.require("util").types;return e||tE&&tE.binding&&tE.binding("util")}catch(t){}}(),nE=rE&&rE.isTypedArray,aE=nE?Xb(nE):Qb,iE=Object.prototype.hasOwnProperty;function sE(e,t){var r=yb(e),n=!r&&Lb(e),a=!r&&!n&&zb(e),i=!r&&!n&&!a&&aE(e),s=r||n||a||i,o=s?kb(e.length,String):[],l=o.length;for(var u in e)!t&&!iE.call(e,u)||s&&("length"==u||a&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Bb(u,l))||o.push(u);return o}Ge(sE,"arrayLikeKeys");var oE=sE,lE=Object.prototype;function uE(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||lE)}Ge(uE,"isPrototype");var cE=uE;function pE(e,t){return function(r){return e(t(r))}}Ge(pE,"overArg");var dE=pE(Object.keys,Object),fE=Object.prototype.hasOwnProperty;function mE(e){if(!cE(e))return dE(e);var t=[];for(var r in Object(e))fE.call(e,r)&&"constructor"!=r&&t.push(r);return t}Ge(mE,"baseKeys");var hE=mE;function yE(e){return null!=e&&Vb(e.length)&&!B$(e)}Ge(yE,"isArrayLike");var gE=yE;function TE(e){return gE(e)?oE(e):hE(e)}Ge(TE,"keys");var vE=TE;function $E(e){return Tb(e,vE,Cb)}Ge($E,"getAllKeys");var RE=$E,bE=Object.prototype.hasOwnProperty;function EE(e,t,r,n,a,i){var s=1&r,o=RE(e),l=o.length;if(l!=RE(t).length&&!s)return!1;for(var u=l;u--;){var c=o[u];if(!(s?c in t:bE.call(t,c)))return!1}var p=i.get(e),d=i.get(t);if(p&&d)return p==t&&d==e;var f=!0;i.set(e,t),i.set(t,e);for(var m=s;++u<l;){var h=e[c=o[u]],y=t[c];if(n)var g=s?n(y,h,c,t,e,i):n(h,y,c,e,t,i);if(!(void 0===g?h===y||a(h,y,r,n,i):g)){f=!1;break}m||(m="constructor"==c)}if(f&&!m){var T=e.constructor,v=t.constructor;T==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof T&&T instanceof T&&"function"==typeof v&&v instanceof v||(f=!1)}return i.delete(e),i.delete(t),f}Ge(EE,"equalObjects");var AE=EE,CE=cR(x$,"DataView"),SE=cR(x$,"Promise"),kE=cR(x$,"Set"),xE=cR(x$,"WeakMap"),wE="[object Map]",NE="[object Promise]",IE="[object Set]",_E="[object WeakMap]",PE="[object DataView]",OE=X$(CE),DE=X$(pR),LE=X$(SE),ME=X$(kE),jE=X$(xE),FE=K$;(CE&&FE(new CE(new ArrayBuffer(1)))!=PE||pR&&FE(new pR)!=wE||SE&&FE(SE.resolve())!=NE||kE&&FE(new kE)!=IE||xE&&FE(new xE)!=_E)&&(FE=Ge(function(e){var t=K$(e),r="[object Object]"==t?e.constructor:void 0,n=r?X$(r):"";if(n)switch(n){case OE:return PE;case DE:return wE;case LE:return NE;case ME:return IE;case jE:return _E}return t},"getTag"));var GE=FE,KE="[object Arguments]",zE="[object Array]",qE="[object Object]",UE=Object.prototype.hasOwnProperty;function BE(e,t,r,n,a,i){var s=yb(e),o=yb(t),l=s?zE:GE(e),u=o?zE:GE(t),c=(l=l==KE?qE:l)==qE,p=(u=u==KE?qE:u)==qE,d=l==u;if(d&&zb(e)){if(!zb(t))return!1;s=!0,c=!1}if(d&&!c)return i||(i=new WR),s||aE(e)?ab(e,t,r,n,a,i):fb(e,t,l,r,n,a,i);if(!(1&r)){var f=c&&UE.call(e,"__wrapped__"),m=p&&UE.call(t,"__wrapped__");if(f||m){var h=f?e.value():e,y=m?t.value():t;return i||(i=new WR),a(h,y,r,n,i)}}return!!d&&(i||(i=new WR),AE(e,t,r,n,a,i))}Ge(BE,"baseIsEqualDeep");var WE=BE;function VE(e,t,r,n,a){return e===t||(null==e||null==t||!wb(e)&&!wb(t)?e!=e&&t!=t:WE(e,t,r,n,VE,a))}Ge(VE,"baseIsEqual");var HE=VE;function YE(e,t,r,n){var a=r.length,i=a,s=!n;if(null==e)return!i;for(e=Object(e);a--;){var o=r[a];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<i;){var l=(o=r[a])[0],u=e[l],c=o[1];if(s&&o[2]){if(void 0===u&&!(l in e))return!1}else{var p=new WR;if(n)var d=n(u,c,l,e,t,p);if(!(void 0===d?HE(c,u,3,n,p):d))return!1}}return!0}Ge(YE,"baseIsMatch");var QE=YE;function ZE(e){return e==e&&!q$(e)}Ge(ZE,"isStrictComparable");var XE=ZE;function JE(e){for(var t=vE(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,XE(a)]}return t}Ge(JE,"getMatchData");var eA=JE;function tA(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}Ge(tA,"matchesStrictComparable");var rA=tA;function nA(e){var t=eA(e);return 1==t.length&&t[0][2]?rA(t[0][0],t[0][1]):function(r){return r===e||QE(r,e,t)}}Ge(nA,"baseMatches");var aA=nA;function iA(e){return"symbol"==typeof e||wb(e)&&"[object Symbol]"==K$(e)}Ge(iA,"isSymbol");var sA=iA,oA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lA=/^\w*$/;function uA(e,t){if(yb(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!sA(e))||(lA.test(e)||!oA.test(e)||null!=t&&e in Object(t))}Ge(uA,"isKey");var cA=uA;function pA(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=Ge(function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var s=e.apply(this,n);return r.cache=i.set(a,s)||i,s},"memoized");return r.cache=new(pA.Cache||zR),r}Ge(pA,"memoize"),pA.Cache=zR;var dA=pA;function fA(e){var t=dA(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}Ge(fA,"memoizeCapped");var mA=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hA=/\\(\\)?/g,yA=fA(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(mA,function(e,r,n,a){t.push(n?a.replace(hA,"$1"):r||e)}),t}),gA=w$?w$.prototype:void 0,TA=gA?gA.toString:void 0;function vA(e){if("string"==typeof e)return e;if(yb(e))return e$(e,vA)+"";if(sA(e))return TA?TA.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}Ge(vA,"baseToString");var $A=vA;function RA(e){return null==e?"":$A(e)}Ge(RA,"toString");var bA=RA;function EA(e,t){return yb(e)?e:cA(e,t)?[e]:yA(bA(e))}Ge(EA,"castPath");var AA=EA;function CA(e){if("string"==typeof e||sA(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}Ge(CA,"toKey");var SA=CA;function kA(e,t){for(var r=0,n=(t=AA(t,e)).length;null!=e&&r<n;)e=e[SA(t[r++])];return r&&r==n?e:void 0}Ge(kA,"baseGet");var xA=kA;function wA(e,t,r){var n=null==e?void 0:xA(e,t);return void 0===n?r:n}Ge(wA,"get");var NA=wA;function IA(e,t){return null!=e&&t in Object(e)}Ge(IA,"baseHasIn");var _A=IA;function PA(e,t,r){for(var n=-1,a=(t=AA(t,e)).length,i=!1;++n<a;){var s=SA(t[n]);if(!(i=null!=e&&r(e,s)))break;e=e[s]}return i||++n!=a?i:!!(a=null==e?0:e.length)&&Vb(a)&&Bb(s,a)&&(yb(e)||Lb(e))}Ge(PA,"hasPath");var OA=PA;function DA(e,t){return null!=e&&OA(e,t,_A)}Ge(DA,"hasIn");var LA=DA;function MA(e,t){return cA(e)&&XE(t)?rA(SA(e),t):function(r){var n=NA(r,e);return void 0===n&&n===t?LA(r,e):HE(t,n,3)}}Ge(MA,"baseMatchesProperty");var jA=MA;function FA(e){return e}Ge(FA,"identity");var GA=FA;function KA(e){return function(t){return null==t?void 0:t[e]}}Ge(KA,"baseProperty");var zA=KA;function qA(e){return function(t){return xA(t,e)}}Ge(qA,"basePropertyDeep");var UA=qA;function BA(e){return cA(e)?zA(SA(e)):UA(e)}Ge(BA,"property");var WA=BA;function VA(e){return"function"==typeof e?e:null==e?GA:"object"==typeof e?yb(e)?jA(e[0],e[1]):aA(e):WA(e)}Ge(VA,"baseIteratee");var HA=VA;function YA(e){return function(t,r,n){for(var a=-1,i=Object(t),s=n(t),o=s.length;o--;){var l=s[e?o:++a];if(!1===r(i[l],l,i))break}return t}}Ge(YA,"createBaseFor");var QA=YA();function ZA(e,t){return e&&QA(e,t,vE)}Ge(ZA,"baseForOwn");var XA=ZA;function JA(e,t){return function(r,n){if(null==r)return r;if(!gE(r))return e(r,n);for(var a=r.length,i=t?a:-1,s=Object(r);(t?i--:++i<a)&&!1!==n(s[i],i,s););return r}}Ge(JA,"createBaseEach");var eC=JA(XA);function tC(e,t){var r=-1,n=gE(e)?Array(e.length):[];return eC(e,function(e,a,i){n[++r]=t(e,a,i)}),n}Ge(tC,"baseMap");var rC=tC;function nC(e,t){return(yb(e)?e$:rC)(e,HA(t,3))}Ge(nC,"map");var aC=nC;function iC(e,t){var r=[];return eC(e,function(e,n,a){t(e,n,a)&&r.push(e)}),r}Ge(iC,"baseFilter");var sC=iC;function oC(e,t){return(yb(e)?$b:sC)(e,HA(t,3))}Ge(oC,"filter");var lC=oC;function uC(e,t,r){return`${e.name}_${t}_${r}`}Ge(uC,"buildATNKey");var cC=class{static{Ge(this,"AbstractTransition")}constructor(e){this.target=e}isEpsilon(){return!1}},pC=class extends cC{static{Ge(this,"AtomTransition")}constructor(e,t){super(e),this.tokenType=t}},dC=class extends cC{static{Ge(this,"EpsilonTransition")}constructor(e){super(e)}isEpsilon(){return!0}},fC=class extends cC{static{Ge(this,"RuleTransition")}constructor(e,t,r){super(e),this.rule=t,this.followState=r}isEpsilon(){return!0}};function mC(e){const t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};hC(t,e);const r=e.length;for(let n=0;n<r;n++){const r=e[n],a=EC(t,r,r);void 0!==a&&PC(t,r,a)}return t}function hC(e,t){const r=t.length;for(let n=0;n<r;n++){const r=t[n],a=DC(e,r,void 0,{type:2}),i=DC(e,r,void 0,{type:7});a.stop=i,e.ruleToStartState.set(r,a),e.ruleToStopState.set(r,i)}}function yC(e,t,r){return r instanceof Vh?IC(e,t,r.terminalType,r):r instanceof jh?_C(e,t,r):r instanceof Wh?RC(e,t,r):r instanceof Kh?bC(e,t,r):r instanceof Uh?gC(e,t,r):r instanceof Bh?TC(e,t,r):r instanceof zh?vC(e,t,r):r instanceof qh?$C(e,t,r):EC(e,t,r)}function gC(e,t,r){const n=DC(e,t,r,{type:5});kC(e,n);return CC(e,t,r,xC(e,t,n,r,EC(e,t,r)))}function TC(e,t,r){const n=DC(e,t,r,{type:5});kC(e,n);return CC(e,t,r,xC(e,t,n,r,EC(e,t,r)),IC(e,t,r.separator,r))}function vC(e,t,r){const n=DC(e,t,r,{type:4});kC(e,n);return AC(e,t,r,xC(e,t,n,r,EC(e,t,r)))}function $C(e,t,r){const n=DC(e,t,r,{type:4});kC(e,n);return AC(e,t,r,xC(e,t,n,r,EC(e,t,r)),IC(e,t,r.separator,r))}function RC(e,t,r){const n=DC(e,t,r,{type:1});kC(e,n);const a=aC(r.definition,r=>yC(e,t,r));return xC(e,t,n,r,...a)}function bC(e,t,r){const n=DC(e,t,r,{type:1});kC(e,n);return SC(e,t,r,xC(e,t,n,r,EC(e,t,r)))}function EC(e,t,r){const n=lC(aC(r.definition,r=>yC(e,t,r)),e=>void 0!==e);return 1===n.length?n[0]:0===n.length?void 0:NC(e,n)}function AC(e,t,r,n,a){const i=n.left,s=n.right,o=DC(e,t,r,{type:11});kC(e,o);const l=DC(e,t,r,{type:12});return i.loopback=o,l.loopback=o,e.decisionMap[uC(t,a?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=o,OC(s,o),void 0===a?(OC(o,i),OC(o,l)):(OC(o,l),OC(o,a.left),OC(a.right,i)),{left:i,right:l}}function CC(e,t,r,n,a){const i=n.left,s=n.right,o=DC(e,t,r,{type:10});kC(e,o);const l=DC(e,t,r,{type:12}),u=DC(e,t,r,{type:9});return o.loopback=u,l.loopback=u,OC(o,i),OC(o,l),OC(s,u),void 0!==a?(OC(u,l),OC(u,a.left),OC(a.right,i)):OC(u,o),e.decisionMap[uC(t,a?"RepetitionWithSeparator":"Repetition",r.idx)]=o,{left:o,right:l}}function SC(e,t,r,n){const a=n.left;return OC(a,n.right),e.decisionMap[uC(t,"Option",r.idx)]=a,n}function kC(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function xC(e,t,r,n,...a){const i=DC(e,t,n,{type:8,start:r});r.end=i;for(const o of a)void 0!==o?(OC(r,o.left),OC(o.right,i)):OC(r,i);const s={left:r,right:i};return e.decisionMap[uC(t,wC(n),n.idx)]=r,s}function wC(e){if(e instanceof Wh)return"Alternation";if(e instanceof Kh)return"Option";if(e instanceof Uh)return"Repetition";if(e instanceof Bh)return"RepetitionWithSeparator";if(e instanceof zh)return"RepetitionMandatory";if(e instanceof qh)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function NC(e,t){const r=t.length;for(let i=0;i<r-1;i++){const r=t[i];let n;1===r.left.transitions.length&&(n=r.left.transitions[0]);const a=n instanceof fC,s=n,o=t[i+1].left;1===r.left.type&&1===r.right.type&&void 0!==n&&(a&&s.followState===r.right||n.target===r.right)?(a?s.followState=o:n.target=o,MC(e,r.right)):OC(r.right,o)}const n=t[0],a=t[r-1];return{left:n.left,right:a.right}}function IC(e,t,r,n){const a=DC(e,t,n,{type:1}),i=DC(e,t,n,{type:1});return LC(a,new pC(i,r)),{left:a,right:i}}function _C(e,t,r){const n=r.referencedRule,a=e.ruleToStartState.get(n),i=DC(e,t,r,{type:1}),s=DC(e,t,r,{type:1});return LC(i,new fC(a,n,s)),{left:i,right:s}}function PC(e,t,r){const n=e.ruleToStartState.get(t);OC(n,r.left);const a=e.ruleToStopState.get(t);OC(r.right,a);return{left:n,right:a}}function OC(e,t){LC(e,new dC(t))}function DC(e,t,r,n){const a=Object.assign({atn:e,production:r,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:e.states.length},n);return e.states.push(a),a}function LC(e,t){0===e.transitions.length&&(e.epsilonOnlyTransitions=t.isEpsilon()),e.transitions.push(t)}function MC(e,t){e.states.splice(e.states.indexOf(t),1)}Ge(mC,"createATN"),Ge(hC,"createRuleStartAndStopATNStates"),Ge(yC,"atom"),Ge(gC,"repetition"),Ge(TC,"repetitionSep"),Ge(vC,"repetitionMandatory"),Ge($C,"repetitionMandatorySep"),Ge(RC,"alternation"),Ge(bC,"option"),Ge(EC,"block"),Ge(AC,"plus"),Ge(CC,"star"),Ge(SC,"optional"),Ge(kC,"defineDecisionState"),Ge(xC,"makeAlts"),Ge(wC,"getProdType"),Ge(NC,"makeBlock"),Ge(IC,"tokenRef"),Ge(_C,"ruleRef"),Ge(PC,"buildRuleHandle"),Ge(OC,"epsilon"),Ge(DC,"newState"),Ge(LC,"addTransition"),Ge(MC,"removeState");var jC={},FC=class{static{Ge(this,"ATNConfigSet")}constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){const t=GC(e);t in this.map||(this.map[t]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return aC(this.configs,e=>e.alt)}get key(){let e="";for(const t in this.map)e+=t+":";return e}};function GC(e,t=!0){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map(e=>e.stateNumber.toString()).join("_")}`}function KC(e,t,r){for(var n=-1,a=e.length;++n<a;){var i=e[n],s=t(i);if(null!=s&&(void 0===o?s==s&&!sA(s):r(s,o)))var o=s,l=i}return l}Ge(GC,"getATNConfigKey"),Ge(KC,"baseExtremum");var zC=KC;function qC(e,t){return e<t}Ge(qC,"baseLt");var UC=qC;function BC(e){return e&&e.length?zC(e,GA,UC):void 0}Ge(BC,"min");var WC=BC,VC=w$?w$.isConcatSpreadable:void 0;function HC(e){return yb(e)||Lb(e)||!!(VC&&e&&e[VC])}Ge(HC,"isFlattenable");var YC=HC;function QC(e,t,r,n,a){var i=-1,s=e.length;for(r||(r=YC),a||(a=[]);++i<s;){var o=e[i];t>0&&r(o)?t>1?QC(o,t-1,r,n,a):hb(a,o):n||(a[a.length]=o)}return a}Ge(QC,"baseFlatten");var ZC=QC;function XC(e,t){return ZC(aC(e,t),1)}Ge(XC,"flatMap");var JC=XC;function eS(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}Ge(eS,"baseFindIndex");var tS=eS;function rS(e){return e!=e}Ge(rS,"baseIsNaN");var nS=rS;function aS(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}Ge(aS,"strictIndexOf");var iS=aS;function sS(e,t,r){return t==t?iS(e,t,r):tS(e,nS,r)}Ge(sS,"baseIndexOf");var oS=sS;function lS(e,t){return!!(null==e?0:e.length)&&oS(e,t,0)>-1}Ge(lS,"arrayIncludes");var uS=lS;function cS(e,t,r){for(var n=-1,a=null==e?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}Ge(cS,"arrayIncludesWith");var pS=cS;function dS(){}Ge(dS,"noop");var fS=dS,mS=kE&&1/ub(new kE([,-0]))[1]==1/0?function(e){return new kE(e)}:fS;function hS(e,t,r){var n=-1,a=uS,i=e.length,s=!0,o=[],l=o;if(r)s=!1,a=pS;else if(i>=200){var u=t?null:mS(e);if(u)return ub(u);s=!1,a=rb,l=new XR}else l=t?[]:o;e:for(;++n<i;){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 e;t&&l.push(p),o.push(c)}else a(l,p,r)||(l!==o&&l.push(p),o.push(c))}return o}Ge(hS,"baseUniq");var yS=hS;function gS(e,t){return e&&e.length?yS(e,HA(t,2)):[]}Ge(gS,"uniqBy");var TS=gS;function vS(e){return(null==e?0:e.length)?ZC(e,1):[]}Ge(vS,"flatten");var $S=vS;function RS(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}Ge(RS,"arrayEach");var bS=RS;function ES(e){return"function"==typeof e?e:GA}Ge(ES,"castFunction");var AS=ES;function CS(e,t){return(yb(e)?bS:eC)(e,AS(t))}Ge(CS,"forEach");var SS=CS,kS=Object.prototype.hasOwnProperty;function xS(e){if(null==e)return!0;if(gE(e)&&(yb(e)||"string"==typeof e||"function"==typeof e.splice||zb(e)||aE(e)||Lb(e)))return!e.length;var t=GE(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(cE(e))return!hE(e).length;for(var r in e)if(kS.call(e,r))return!1;return!0}Ge(xS,"isEmpty");var wS=xS;function NS(e,t,r,n){var a=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++a]);++a<i;)r=t(r,e[a],a,e);return r}Ge(NS,"arrayReduce");var IS=NS;function _S(e,t,r,n,a){return a(e,function(e,a,i){r=n?(n=!1,e):t(r,e,a,i)}),r}Ge(_S,"baseReduce");var PS=_S;function OS(e,t,r){var n=yb(e)?IS:PS,a=arguments.length<3;return n(e,HA(t,4),r,a,eC)}Ge(OS,"reduce");var DS=OS;function LS(e,t){const r={};return n=>{const a=n.toString();let i=r[a];return void 0!==i||(i={atnStartState:e,decision:t,states:{}},r[a]=i),i}}Ge(LS,"createDFACache");var MS=class{static{Ge(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="";const t=this.predicates.length;for(let r=0;r<t;r++)e+=!0===this.predicates[r]?"1":"0";return e}},jS=new MS,FS=class extends uv{static{Ge(this,"LLStarLookaheadStrategy")}constructor(e){var t;super(),this.logging=null!==(t=null==e?void 0:e.logging)&&void 0!==t?t:e=>console.log(e)}initialize(e){this.atn=mC(e.rules),this.dfas=KS(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){const{prodOccurrence:t,rule:r,hasPredicates:n,dynamicTokensEnabled:a}=e,i=this.dfas,s=this.logging,o=uC(r,"Alternation",t),l=this.atn.decisionMap[o].decision,u=aC(sT({maxLookahead:1,occurrence:t,prodType:"Alternation",rule:r}),e=>aC(e,e=>e[0]));if(GS(u,!1)&&!a){const e=DS(u,(e,t,r)=>(SS(t,t=>{t&&(e[t.tokenTypeIdx]=r,SS(t.categoryMatches,t=>{e[t]=r}))}),e),{});return n?function(t){var r;const n=this.LA(1),a=e[n.tokenTypeIdx];if(void 0!==t&&void 0!==a){const e=null===(r=t[a])||void 0===r?void 0:r.GATE;if(void 0!==e&&!1===e.call(this))return}return a}:function(){const t=this.LA(1);return e[t.tokenTypeIdx]}}return n?function(e){const t=new MS,r=void 0===e?0:e.length;for(let a=0;a<r;a++){const r=null==e?void 0:e[a].GATE;t.set(a,void 0===r||r.call(this))}const n=zS.call(this,i,l,t,s);return"number"==typeof n?n:void 0}:function(){const e=zS.call(this,i,l,jS,s);return"number"==typeof e?e:void 0}}buildLookaheadForOptional(e){const{prodOccurrence:t,rule:r,prodType:n,dynamicTokensEnabled:a}=e,i=this.dfas,s=this.logging,o=uC(r,n,t),l=this.atn.decisionMap[o].decision,u=aC(sT({maxLookahead:1,occurrence:t,prodType:n,rule:r}),e=>aC(e,e=>e[0]));if(GS(u)&&u[0][0]&&!a){const e=u[0],t=$S(e);if(1===t.length&&wS(t[0].categoryMatches)){const e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{const e=DS(t,(e,t)=>(void 0!==t&&(e[t.tokenTypeIdx]=!0,SS(t.categoryMatches,t=>{e[t]=!0})),e),{});return function(){const t=this.LA(1);return!0===e[t.tokenTypeIdx]}}}return function(){const e=zS.call(this,i,l,jS,s);return"object"!=typeof e&&0===e}}};function GS(e,t=!0){const r=new Set;for(const n of e){const e=new Set;for(const a of n){if(void 0===a){if(t)break;return!1}const n=[a.tokenTypeIdx].concat(a.categoryMatches);for(const t of n)if(r.has(t)){if(!e.has(t))return!1}else r.add(t),e.add(t)}}return!0}function KS(e){const t=e.decisionStates.length,r=Array(t);for(let n=0;n<t;n++)r[n]=LS(e.decisionStates[n],n);return r}function zS(e,t,r,n){const a=e[t](r);let i=a.start;if(void 0===i){i=tk(a,JS(rk(a.atnStartState))),a.start=i}return qS.apply(this,[a,i,r,n])}function qS(e,t,r,n){let a=t,i=1;const s=[];let o=this.LA(i++);for(;;){let t=YS(a,o);if(void 0===t&&(t=US.apply(this,[e,a,o,i,r,n])),t===jC)return HS(s,a,o);if(!0===t.isAcceptState)return t.prediction;a=t,s.push(o),o=this.LA(i++)}}function US(e,t,r,n,a,i){const s=QS(t.configs,r,a);if(0===s.size)return ek(e,t,r,jC),jC;let o=JS(s);const l=XS(s,a);if(void 0!==l)o.isAcceptState=!0,o.prediction=l,o.configs.uniqueAlt=l;else if(ok(s)){const t=WC(s.alts);o.isAcceptState=!0,o.prediction=t,o.configs.uniqueAlt=t,BS.apply(this,[e,n,s.alts,i])}return o=ek(e,t,r,o),o}function BS(e,t,r,n){const a=[];for(let s=1;s<=t;s++)a.push(this.LA(s).tokenType);const i=e.atnStartState;n(WS({topLevelRule:i.rule,ambiguityIndices:r,production:i.production,prefixPath:a}))}function WS(e){const t=aC(e.prefixPath,e=>kg(e)).join(", "),r=0===e.production.idx?"":e.production.idx;let n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${VS(e.production)}${r}> inside <${e.topLevelRule.name}> Rule,\n<${t}> may appears as a prefix path in all these alternatives.\n`;return n+="See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details.",n}function VS(e){if(e instanceof jh)return"SUBRULE";if(e instanceof Kh)return"OPTION";if(e instanceof Wh)return"OR";if(e instanceof zh)return"AT_LEAST_ONE";if(e instanceof qh)return"AT_LEAST_ONE_SEP";if(e instanceof Bh)return"MANY_SEP";if(e instanceof Uh)return"MANY";if(e instanceof Vh)return"CONSUME";throw Error("non exhaustive match")}function HS(e,t,r){const n=JC(t.configs.elements,e=>e.state.transitions);return{actualToken:r,possibleTokenTypes:TS(n.filter(e=>e instanceof pC).map(e=>e.tokenType),e=>e.tokenTypeIdx),tokenPath:e}}function YS(e,t){return e.edges[t.tokenTypeIdx]}function QS(e,t,r){const n=new FC,a=[];for(const s of e.elements){if(!1===r.is(s.alt))continue;if(7===s.state.type){a.push(s);continue}const e=s.state.transitions.length;for(let r=0;r<e;r++){const e=ZS(s.state.transitions[r],t);void 0!==e&&n.add({state:e,alt:s.alt,stack:s.stack})}}let i;if(0===a.length&&1===n.size&&(i=n),void 0===i){i=new FC;for(const e of n.elements)nk(e,i)}if(a.length>0&&!ik(i))for(const s of a)i.add(s);return i}function ZS(e,t){if(e instanceof pC&&Kg(t,e.tokenType))return e.target}function XS(e,t){let r;for(const 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 JS(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function ek(e,t,r,n){return n=tk(e,n),t.edges[r.tokenTypeIdx]=n,n}function tk(e,t){if(t===jC)return t;const r=t.configs.key,n=e.states[r];return void 0!==n?n:(t.configs.finalize(),e.states[r]=t,t)}function rk(e){const t=new FC,r=e.transitions.length;for(let n=0;n<r;n++){nk({state:e.transitions[n].target,alt:n,stack:[]},t)}return t}function nk(e,t){const r=e.state;if(7===r.type){if(e.stack.length>0){const r=[...e.stack];nk({state:r.pop(),alt:e.alt,stack:r},t)}else t.add(e);return}r.epsilonOnlyTransitions||t.add(e);const n=r.transitions.length;for(let a=0;a<n;a++){const n=ak(e,r.transitions[a]);void 0!==n&&nk(n,t)}}function ak(e,t){if(t instanceof dC)return{state:t.target,alt:e.alt,stack:e.stack};if(t instanceof fC){const r=[...e.stack,t.followState];return{state:t.target,alt:e.alt,stack:r}}}function ik(e){for(const t of e.elements)if(7===t.state.type)return!0;return!1}function sk(e){for(const t of e.elements)if(7!==t.state.type)return!1;return!0}function ok(e){if(sk(e))return!0;const t=lk(e.elements);return uk(t)&&!ck(t)}function lk(e){const t=new Map;for(const r of e){const e=GC(r,!1);let n=t.get(e);void 0===n&&(n={},t.set(e,n)),n[r.alt]=!0}return t}function uk(e){for(const t of Array.from(e.values()))if(Object.keys(t).length>1)return!0;return!1}function ck(e){for(const t of Array.from(e.values()))if(1===Object.keys(t).length)return!0;return!1}Ge(GS,"isLL1Sequence"),Ge(KS,"initATNSimulator"),Ge(zS,"adaptivePredict"),Ge(qS,"performLookahead"),Ge(US,"computeLookaheadTarget"),Ge(BS,"reportLookaheadAmbiguity"),Ge(WS,"buildAmbiguityError"),Ge(VS,"getProductionDslName"),Ge(HS,"buildAdaptivePredictError"),Ge(YS,"getExistingTargetState"),Ge(QS,"computeReachSet"),Ge(ZS,"getReachableTarget"),Ge(XS,"getUniqueAlt"),Ge(JS,"newDFAState"),Ge(ek,"addDFAEdge"),Ge(tk,"addDFAState"),Ge(rk,"computeStartState"),Ge(nk,"closure"),Ge(ak,"getEpsilonTarget"),Ge(ik,"hasConfigInRuleStopState"),Ge(sk,"allConfigsInRuleStopStates"),Ge(ok,"hasConflictTerminatingPrediction"),Ge(lk,"getConflictingAltSets"),Ge(uk,"hasConflictingAltSet"),Ge(ck,"hasStateAssociatedWithOneAlt"),Qe();var pk=class{static{Ge(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new yk(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){const t=new mk;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){const r=new fk(e.startOffset,e.image.length,Sa(e),e.tokenType,!t);return r.grammarSource=t,r.root=this.rootNode,this.current.content.push(r),r}removeNode(e){const t=e.container;if(t){const r=t.content.indexOf(e);r>=0&&t.content.splice(r,1)}}addHiddenNodes(e){const t=[];for(const a of e){const e=new fk(a.startOffset,a.image.length,Sa(a),a.tokenType,!0);e.root=this.rootNode,t.push(e)}let r=this.current,n=!1;if(r.content.length>0)r.content.push(...t);else{for(;r.container;){const 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){const t=this.current;"string"!=typeof e.$type||e.$infix||(this.current.astNode=e),e.$cstNode=t;const r=this.nodeStack.pop();0===r?.content.length&&this.removeNode(r)}},dk=class{static{Ge(this,"AbstractCstNode")}get hidden(){return!1}get astNode(){const e="string"==typeof this._astNode?.$type?this._astNode:this.container?.astNode;if(!e)throw new 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)}},fk=class extends dk{static{Ge(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,a=!1){super(),this._hidden=a,this._offset=e,this._tokenType=n,this._length=t,this._range=r}},mk=class extends dk{static{Ge(this,"CompositeCstNodeImpl")}constructor(){super(...arguments),this.content=new hk(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){const e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;if(e&&t){if(void 0===this._rangeCache){const{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}return{start:o.create(0,0),end:o.create(0,0)}}get firstNonHiddenNode(){for(const 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--){const t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},hk=class e extends Array{static{Ge(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(const t of e)t.container=this.parent}},yk=class extends mk{static{Ge(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??""}},gk=Symbol("Datatype");function Tk(e){return e.$type===gk}Ge(Tk,"isDataTypeNode");var vk=Ge(e=>e.endsWith("\u200b")?e:e+"\u200b","withRuleSuffix"),$k=class{static{Ge(this,"AbstractLangiumParser")}constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;const t=this.lexer.definition,r="production"===e.LanguageMetaData.mode;e.shared.profilers.LangiumProfiler?.isActive("parsing")?this.wrapper=new kk(t,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId)):this.wrapper=new Sk(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()}},Rk=class extends $k{static{Ge(this,"LangiumParser")}get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new pk,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){const r=this.computeRuleType(e);let n;pn(e)&&(n=e.name,this.registerPrecedenceMap(e));const a=this.wrapper.DEFINE_RULE(vk(e.name),this.startImplementation(r,n,t).bind(this));return this.allRules.set(e.name,a),Pn(e)&&e.entry&&(this.mainRule=a),a}registerPrecedenceMap(e){const t=e.name,r=new Map;for(let n=0;n<e.operators.precedences.length;n++){const t=e.operators.precedences[n];for(const e of t.operators)r.set(e.value,{precedence:n,rightAssoc:"right"===t.associativity})}this.operatorPrecedence.set(t,r)}computeRuleType(e){return pn(e)?Ui(e):e.fragment?void 0:Fi(e)?gk:Ui(e)}parse(e,t={}){this.nodeBuilder.buildRootNode(e);const r=this.lexerResult=this.lexer.tokenize(e);this.wrapper.input=r.tokens;const n=t.rule?this.allRules.get(t.rule):this.mainRule;if(!n)throw new Error(t.rule?`No rule found with name '${t.rule}'`:"No main rule available.");const a=this.doParse(n);return this.nodeBuilder.addHiddenNodes(r.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,or(a,{deep:!0}),{value:a,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 new Error("No result from parser");if(this.stack.length>0)throw new Error("Parser stack is not empty after parsing");return t}startImplementation(e,t,r){return n=>{const a=!this.isRecording()&&void 0!==e;if(a){const r={$type:e};this.stack.push(r),e===gk?r.value="":void 0!==t&&(r.$infixName=t)}return r(n),a?this.construct():void 0}}extractHiddenTokens(e){const t=this.lexerResult.hidden;if(!t.length)return[];const r=e.startOffset;for(let n=0;n<t.length;n++){if(t[n].startOffset>r)return t.splice(0,n)}return t.splice(0,t.length)}consume(e,t,r){const n=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(n)){const e=this.extractHiddenTokens(n);this.nodeBuilder.addHiddenNodes(e);const t=this.nodeBuilder.buildLeafNode(n,r),{assignment:a,crossRef:i}=this.getAssignment(r),s=this.current;if(a){const e=vn(r)?n.image:this.converter.convert(n.image,t);this.assign(a.operator,a.feature,e,t,i)}else if(Tk(s)){let e=n.image;vn(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,a){let i,s;this.isRecording()||r||(i=this.nodeBuilder.buildCompositeNode(n));try{s=this.wrapper.wrapSubrule(e,t,a)}finally{this.isRecording()||(void 0!==s||r||(s=this.construct()),void 0!==s&&i&&i.length>0&&this.performSubruleAssignment(s,n,i))}}performSubruleAssignment(e,t,r){const{assignment:n,crossRef:a}=this.getAssignment(t);if(n)this.assign(n.operator,n.feature,e,r,a);else if(!n){const t=this.current;if(Tk(t))t.value+=e.toString();else if("object"==typeof e&&e){const r=this.assignWithoutOverride(e,t);this.stack.pop(),this.stack.push(r)}}}action(e,t){if(!this.isRecording()){let r=this.current;if(t.feature&&t.operator){r=this.construct(),this.nodeBuilder.removeNode(r.$cstNode);this.nodeBuilder.buildCompositeNode(t).content.push(r.$cstNode);const n={$type:e};this.stack.push(n),this.assign(t.operator,t.feature,r,r.$cstNode)}else r.$type=e}}construct(){if(this.isRecording())return;const e=this.stack.pop();return this.nodeBuilder.construct(e),"$infixName"in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):Tk(e)?this.converter.convert(e.value,e.$cstNode):(Tr(this.astReflection,e),e)}constructInfix(e,t){const r=e.parts;if(!Array.isArray(r)||0===r.length)return;const n=e.operators;if(!Array.isArray(n)||r.length<2)return r[0];let a=0,i=-1;for(let m=0;m<n.length;m++){const e=n[m],r=t.get(e)??{precedence:1/0,rightAssoc:!1};r.precedence>i?(i=r.precedence,a=m):r.precedence===i&&(r.rightAssoc||(a=m))}const s=n.slice(0,a),o=n.slice(a+1),l=r.slice(0,a+1),u=r.slice(a+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[a],right:f}}getAssignment(e){if(!this.assignmentMap.has(e)){const t=lr(e,Gr);this.assignmentMap.set(e,{assignment:t,crossRef:t&&Qr(t.terminal)?t.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,t,r,n,a){const i=this.current;let s;switch(s="single"===a&&"string"==typeof r?this.linker.buildReference(i,t,n,r):"multi"===a&&"string"==typeof r?this.linker.buildMultiReference(i,t,n,r):r,e){case"=":i[t]=s;break;case"?=":i[t]=!0;break;case"+=":Array.isArray(i[t])||(i[t]=[]),i[t].push(s)}}assignWithoutOverride(e,t){for(const[n,a]of Object.entries(t)){const t=e[n];void 0===t?e[n]=a:Array.isArray(t)&&Array.isArray(a)&&(a.push(...t),e[n]=a)}const r=e.$cstNode;return r&&(r.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},bk=class{static{Ge(this,"AbstractParserErrorMessageProvider")}buildMismatchTokenMessage(e){return zg.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return zg.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return zg.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return zg.buildEarlyExitMessage(e)}},Ek=class extends bk{static{Ge(this,"LangiumParserErrorMessageProvider")}buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},Ak=class extends $k{static{Ge(this,"LangiumCompletionParser")}constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();const 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){const r=this.wrapper.DEFINE_RULE(vk(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=>{const r=this.keepStackSize();try{e(t)}finally{this.resetStackSize(r)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){const 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,a){this.before(n),this.wrapper.wrapSubrule(e,t,a),this.after(n)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){const t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},Ck={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new Ek},Sk=class extends Xv{static{Ge(this,"ChevrotainWrapper")}constructor(e,t){super(e,{...Ck,lookaheadStrategy:t&&"maxLookahead"in t?new uv({maxLookahead:t.maxLookahead}):new FS({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,{})}},kk=class extends Sk{static{Ge(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 xk(e,t,r){return wk({parser:t,tokens:r,ruleNames:new Map},e),t}function wk(e,t){const r=Ri(t,!1),n=nr(t.rules).filter(Pn).filter(e=>r.has(e));for(const i of n){const t={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(i,Ik(t,i.definition))}const a=nr(t.rules).filter(pn).filter(e=>r.has(e));for(const i of a)e.parser.rule(i,Nk(e,i))}function Nk(e,t){const r=t.call.rule.ref;if(!r)throw new Error("Could not resolve reference to infix operator rule: "+t.call.rule.$refText);if(Jn(r))throw new Error("Cannot use terminal rule in infix expression");const n=t.operators.precedences.flatMap(e=>e.operators),a={$type:"Group",elements:[]},i={$container:a,$type:"Assignment",feature:"parts",operator:"+=",terminal:t.call},s={$container:a,$type:"Group",elements:[],cardinality:"*"};a.elements.push(i,s);const o={$container:s,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:n}},l={...i,$container:s};s.elements.push(o,l);const u=n.map(t=>e.tokens[t.value]).map((t,r)=>({ALT:Ge(()=>e.parser.consume(r,t,o),"ALT")}));let c;return t=>{c??(c=qk(e,r)),e.parser.subrule(0,c,!1,i,t),e.parser.many(0,{DEF:Ge(()=>{e.parser.alternatives(0,u),e.parser.subrule(1,c,!1,l,t)},"DEF")})}}function Ik(e,t,r=!1){let n;if(vn(t))n=Kk(e,t);else if(_r(t))n=_k(e,t);else if(Gr(t))n=Ik(e,t.terminal);else if(Qr(t))n=Gk(e,t);else if(Kn(t))n=Pk(e,t);else if(Or(t))n=Lk(e,t);else if(pa(t))n=Mk(e,t);else if(on(t))n=jk(e,t);else{if(!en(t))throw new Ua(t.$cstNode,`Unexpected element type: ${t.$type}`);{const r=e.consume++;n=Ge(()=>e.parser.consume(r,Fg,t),"method")}}return zk(e,r?void 0:Fk(t),n,t.cardinality)}function _k(e,t){const r=Ui(t);return()=>e.parser.action(r,t)}function Pk(e,t){const r=t.rule.ref;if(Sr(r)){const n=e.subrule++,a=Pn(r)&&r.fragment,i=t.arguments.length>0?Ok(r,t.arguments):()=>({});let s;return o=>{s??(s=qk(e,r)),e.parser.subrule(n,s,a,t,i(o))}}if(Jn(r)){const n=e.consume++,a=Bk(e,r.name);return()=>e.parser.consume(n,a,t)}if(!r)throw new Ua(t.$cstNode,`Undefined rule: ${t.rule.$refText}`);Ba()}function Ok(e,t){if(t.some(e=>e.calledByName)){const e=t.map(e=>({parameterName:e.parameter?.ref?.name,predicate:Dk(e.value)}));return t=>{const r={};for(const{parameterName:n,predicate:a}of e)n&&(r[n]=a(t));return r}}{const r=t.map(e=>Dk(e.value));return t=>{const n={};for(let a=0;a<r.length;a++)if(a<e.parameters.length){const i=e.parameters[a].name,s=r[a];n[i]=s(t)}return n}}}function Dk(e){if(Xr(e)){const t=Dk(e.left),r=Dk(e.right);return e=>t(e)||r(e)}if(Hr(e)){const t=Dk(e.left),r=Dk(e.right);return e=>t(e)&&r(e)}if(Cn(e)){const t=Dk(e.value);return e=>!t(e)}if(In(e)){const t=e.parameter.ref.name;return e=>void 0!==e&&!0===e[t]}if(zr(e)){const t=Boolean(e.true);return()=>t}Ba()}function Lk(e,t){if(1===t.elements.length)return Ik(e,t.elements[0]);{const r=[];for(const a of t.elements){const t={ALT:Ik(e,a,!0)},n=Fk(a);n&&(t.GATE=Dk(n)),r.push(t)}const n=e.or++;return t=>e.parser.alternatives(n,r.map(e=>{const r={ALT:Ge(()=>e.ALT(t),"ALT")},n=e.GATE;return n&&(r.GATE=()=>n(t)),r}))}}function Mk(e,t){if(1===t.elements.length)return Ik(e,t.elements[0]);const r=[];for(const o of t.elements){const t={ALT:Ik(e,o,!0)},n=Fk(o);n&&(t.GATE=Dk(n)),r.push(t)}const n=e.or++,a=Ge((e,t)=>`uGroup_${e}_${t.getRuleStack().join("-")}`,"idFunc"),i=Ge(t=>e.parser.alternatives(n,r.map((r,i)=>{const s={ALT:Ge(()=>!0,"ALT")},o=e.parser;s.ALT=()=>{if(r.ALT(t),!o.isRecording()){const e=a(n,o);o.unorderedGroups.get(e)||o.unorderedGroups.set(e,[]);const t=o.unorderedGroups.get(e);void 0===t?.[i]&&(t[i]=!0)}};const l=r.GATE;return s.GATE=l?()=>l(t):()=>{const e=o.unorderedGroups.get(a(n,o));return!e?.[i]},s})),"alternatives"),s=zk(e,Fk(t),i,"*");return t=>{s(t),e.parser.isRecording()||e.parser.unorderedGroups.delete(a(n,e.parser))}}function jk(e,t){const r=t.elements.map(t=>Ik(e,t));return e=>r.forEach(t=>t(e))}function Fk(e){if(on(e))return e.guardCondition}function Gk(e,t,r=t.terminal){if(r){if(Kn(r)&&Pn(r.rule.ref)){const n=r.rule.ref,a=e.subrule++;let i;return r=>{i??(i=qk(e,n)),e.parser.subrule(a,i,!1,t,r)}}if(Kn(r)&&Jn(r.rule.ref)){const n=e.consume++,a=Bk(e,r.rule.ref.name);return()=>e.parser.consume(n,a,t)}if(vn(r)){const n=e.consume++,a=Bk(e,r.value);return()=>e.parser.consume(n,a,t)}throw new Error("Could not build cross reference parser")}{if(!t.type.ref)throw new Error("Could not resolve reference to type: "+t.type.$refText);const r=Pi(t.type.ref),n=r?.terminal;if(!n)throw new Error("Could not find name assignment for type: "+Ui(t.type.ref));return Gk(e,t,n)}}function Kk(e,t){const r=e.consume++,n=e.tokens[t.value];if(!n)throw new Error("Could not find token for keyword: "+t.value);return()=>e.parser.consume(r,n,t)}function zk(e,t,r,n){const a=t&&Dk(t);if(!n){if(a){const t=e.or++;return n=>e.parser.alternatives(t,[{ALT:Ge(()=>r(n),"ALT"),GATE:Ge(()=>a(n),"GATE")},{ALT:Qv(),GATE:Ge(()=>!a(n),"GATE")}])}return r}if("*"===n){const t=e.many++;return n=>e.parser.many(t,{DEF:Ge(()=>r(n),"DEF"),GATE:a?()=>a(n):void 0})}if("+"===n){const t=e.many++;if(a){const n=e.or++;return i=>e.parser.alternatives(n,[{ALT:Ge(()=>e.parser.atLeastOne(t,{DEF:Ge(()=>r(i),"DEF")}),"ALT"),GATE:Ge(()=>a(i),"GATE")},{ALT:Qv(),GATE:Ge(()=>!a(i),"GATE")}])}return n=>e.parser.atLeastOne(t,{DEF:Ge(()=>r(n),"DEF")})}if("?"===n){const t=e.optional++;return n=>e.parser.optional(t,{DEF:Ge(()=>r(n),"DEF"),GATE:a?()=>a(n):void 0})}Ba()}function qk(e,t){const r=Uk(e,t),n=e.parser.getRule(r);if(!n)throw new Error(`Rule "${r}" not found."`);return n}function Uk(e,t){if(Sr(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let r=t,n=r.$container,a=t.$type;for(;!Pn(n);){if(on(n)||Or(n)||pa(n)){a=n.elements.indexOf(r).toString()+":"+a}r=n,n=n.$container}return a=n.name+":"+a,e.ruleNames.set(t,a),a}}function Bk(e,t){const r=e.tokens[t];if(!r)throw new Error(`Token "${t}" not found."`);return r}function Wk(e){const t=e.Grammar,r=e.parser.Lexer,n=new Ak(e);return xk(t,n,r.definition),n.finalize(),n}function Vk(e){const t=Hk(e);return t.finalize(),t}function Hk(e){const t=e.Grammar,r=e.parser.Lexer;return xk(t,new Rk(e),r.definition)}Ge(xk,"createParser"),Ge(wk,"buildRules"),Ge(Nk,"buildInfixRule"),Ge(Ik,"buildElement"),Ge(_k,"buildAction"),Ge(Pk,"buildRuleCall"),Ge(Ok,"buildRuleCallPredicate"),Ge(Dk,"buildPredicate"),Ge(Lk,"buildAlternatives"),Ge(Mk,"buildUnorderedGroup"),Ge(jk,"buildGroup"),Ge(Fk,"getGuardCondition"),Ge(Gk,"buildCrossReference"),Ge(Kk,"buildKeyword"),Ge(zk,"wrap"),Ge(qk,"getRule"),Ge(Uk,"getRuleName"),Ge(Bk,"getToken"),Ge(Wk,"createCompletionParser"),Ge(Vk,"createLangiumParser"),Ge(Hk,"prepareLangiumParser");var Yk,Qk=class{static{Ge(this,"DefaultTokenBuilder")}constructor(){this.diagnostics=[]}buildTokens(e,t){const r=nr(Ri(e,!1)),n=this.buildTerminalTokens(r),a=this.buildKeywordTokens(r,n,t);return a.push(...n),a}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){const e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(Jn).filter(e=>!e.fragment).map(e=>this.buildTerminalToken(e)).toArray()}buildTerminalToken(e){const t=Hi(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=hi(t)?Sg.SKIPPED:"hidden"),n}requiresCustomPattern(e){return!(!e.flags.includes("u")&&!e.flags.includes("s"))}regexPatternFunction(e){const t=new RegExp(e,e.flags+"y");return(e,r)=>{t.lastIndex=r;return t.exec(e)}}buildKeywordTokens(e,t,r){return e.filter(Sr).flatMap(e=>mr(e).filter(vn)).distinct(e=>e.value).toArray().sort((e,t)=>t.value.length-e.value.length).map(e=>this.buildKeywordToken(e,t,Boolean(r?.caseInsensitive)))}buildKeywordToken(e,t,r){const n=this.buildKeywordPattern(e,r),a={name:e.value,PATTERN:n,LONGER_ALT:this.findLongerAlt(e,t)};return"function"==typeof n&&(a.LINE_BREAKS=!0),a}buildKeywordPattern(e,t){return t?new RegExp(yi(e.value),"i"):e.value}findLongerAlt(e,t){return t.reduce((t,r)=>{const n=r?.PATTERN;return n?.source&&gi("^"+n.source+"$",e.value)&&t.push(r),t},[])}},Zk=class{static{Ge(this,"DefaultValueConverter")}convert(e,t){let r=t.grammarSource;if(Qr(r)&&(r=Ai(r)),Kn(r)){const n=r.rule.ref;if(!n)throw new 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 Yk.convertInt(t);case"STRING":return Yk.convertString(t);case"ID":return Yk.convertID(t)}switch(Vi(e)?.toLowerCase()){case"number":return Yk.convertNumber(t);case"boolean":return Yk.convertBoolean(t);case"bigint":return Yk.convertBigint(t);case"date":return Yk.convertDate(t);default:return t}}};!function(e){function t(e){let t="";for(let n=1;n<e.length-1;n++){const a=e.charAt(n);if("\\"===a){t+=r(e.charAt(++n))}else t+=a}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"\t";case"v":return"\v";case"0":return"\0";default:return e}}function n(e){return"^"===e.charAt(0)?e.substring(1):e}function a(e){return parseInt(e)}function i(e){return BigInt(e)}function s(e){return new Date(e)}function o(e){return Number(e)}function l(e){return"true"===e.toLowerCase()}Ge(t,"convertString"),e.convertString=t,Ge(r,"convertEscapeCharacter"),Ge(n,"convertID"),e.convertID=n,Ge(a,"convertInt"),e.convertInt=a,Ge(i,"convertBigint"),e.convertBigint=i,Ge(s,"convertDate"),e.convertDate=s,Ge(o,"convertNumber"),e.convertNumber=o,Ge(l,"convertBoolean"),e.convertBoolean=l}(Yk||(Yk={}));var Xk={};function Jk(){return new Promise(e=>{"undefined"==typeof setImmediate?setTimeout(e,0):setImmediate(e)})}Ue(Xk,Be(et(),1)),Ge(Jk,"delayNextTick");var ex=0,tx=10;function rx(){return ex=performance.now(),new Xk.CancellationTokenSource}function nx(e){tx=e}Ge(rx,"startCancelableOperation"),Ge(nx,"setInterruptionPeriod");var ax=Symbol("OperationCancelled");function ix(e){return e===ax}async function sx(e){if(e===Xk.CancellationToken.None)return;const t=performance.now();if(t-ex>=tx&&(ex=t,await Jk(),ex=performance.now()),e.isCancellationRequested)throw ax}Ge(ix,"isOperationCancelled"),Ge(sx,"interruptAndCheck");var ox,lx,ux=class{static{Ge(this,"Deferred")}constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>(e(t),this),this.reject=e=>(t(e),this)})}},cx=class e{static{Ge(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){const t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content}update(t,r){for(const n of t)if(e.isIncremental(n)){const e=mx(n.range),t=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,t)+n.text+this._content.substring(r,this._content.length);const a=Math.max(e.start.line,0),i=Math.max(e.end.line,0);let s=this._lineOffsets;const o=dx(n.text,!1,t);if(i-a===o.length)for(let n=0,u=o.length;n<u;n++)s[n+a+1]=o[n];else o.length<1e4?s.splice(a+1,i-a,...o):this._lineOffsets=s=s.slice(0,a+1).concat(o,s.slice(i+1));const l=n.text.length-(r-t);if(0!==l)for(let n=a+1+o.length,u=s.length;n<u;n++)s[n]=s[n]+l}else{if(!e.isFull(n))throw new Error("Unknown change event received");this._content=n.text,this._lineOffsets=void 0}this._version=r}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=dx(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const t=this.getLineOffsets();let r=0,n=t.length;if(0===n)return{line:0,character:e};for(;r<n;){const a=Math.floor((r+n)/2);t[a]>e?n=a:r=a+1}const a=r-1;return{line:a,character:(e=this.ensureBeforeEOL(e,t[a]))-t[a]}}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const r=t[e.line];if(e.character<=0)return r;const n=e.line+1<t.length?t[e.line+1]:this._content.length,a=Math.min(r+e.character,n);return this.ensureBeforeEOL(a,r)}ensureBeforeEOL(e,t){for(;e>t&&fx(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)}static isFull(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}};function px(e,t){if(e.length<=1)return e;const r=e.length/2|0,n=e.slice(0,r),a=e.slice(r);px(n,t),px(a,t);let i=0,s=0,o=0;for(;i<n.length&&s<a.length;){const r=t(n[i],a[s]);e[o++]=r<=0?n[i++]:a[s++]}for(;i<n.length;)e[o++]=n[i++];for(;s<a.length;)e[o++]=a[s++];return e}function dx(e,t,r=0){const n=t?[r]:[];for(let a=0;a<e.length;a++){const t=e.charCodeAt(a);fx(t)&&(13===t&&a+1<e.length&&10===e.charCodeAt(a+1)&&a++,n.push(r+a+1))}return n}function fx(e){return 13===e||10===e}function mx(e){const 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 hx(e){const t=mx(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){function t(e,t,r,n){return new cx(e,t,r,n)}function r(e,t,r){if(e instanceof cx)return e.update(t,r),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")}function n(e,t){const r=e.getText(),n=px(t.map(hx),(e,t)=>{const r=e.range.start.line-t.range.start.line;return 0===r?e.range.start.character-t.range.start.character:r});let a=0;const i=[];for(const s of n){const t=e.offsetAt(s.range.start);if(t<a)throw new Error("Overlapping edit");t>a&&i.push(r.substring(a,t)),s.newText.length&&i.push(s.newText),a=e.offsetAt(s.range.end)}return i.push(r.substr(a)),i.join("")}Ge(t,"create"),e.create=t,Ge(r,"update"),e.update=r,Ge(n,"applyEdits"),e.applyEdits=n}(ox||(ox={})),Ge(px,"mergeSort"),Ge(dx,"computeLineOffsets"),Ge(fx,"isEOL"),Ge(mx,"getWellformedRange"),Ge(hx,"getWellformedEdit"),(()=>{var e={975:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",a=0,i=-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(i===o-1||1===s);else if(i!==o-1&&2===s){if(n.length<2||2!==a||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="",a=0):a=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),i=o,s=0;continue}}else if(2===n.length||1===n.length){n="",a=0,i=o,s=0;continue}t&&(n.length>0?n+="/..":n="..",a=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),a=o-i-1;i=o,s=0}else 46===r&&-1!==s?++s:s=-1}return n}Ge(t,"e"),Ge(r,"r");var n={resolve:Ge(function(){for(var e,n="",a=!1,i=arguments.length-1;i>=-1&&!a;i--){var s;i>=0?s=arguments[i]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(n=s+"/"+n,a=47===s.charCodeAt(0))}return n=r(n,!a),a?n.length>0?"/"+n:"/":n.length>0?n:"."},"resolve"),normalize:Ge(function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),a=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&a&&(e+="/"),n?"/"+e:e},"normalize"),isAbsolute:Ge(function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},"isAbsolute"),join:Ge(function(){if(0===arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var a=arguments[r];t(a),a.length>0&&(void 0===e?e=a:e+="/"+a)}return void 0===e?".":n.normalize(e)},"join"),relative:Ge(function(e,r){if(t(e),t(r),e===r)return"";if((e=n.resolve(e))===(r=n.resolve(r)))return"";for(var a=1;a<e.length&&47===e.charCodeAt(a);++a);for(var i=e.length,s=i-a,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(a+p)?c=p:0===p&&(c=0));break}var d=e.charCodeAt(a+p);if(d!==r.charCodeAt(o+p))break;47===d&&(c=p)}var f="";for(p=a+c+1;p<=i;++p)p!==i&&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:Ge(function(e){return e},"_makeLong"),dirname:Ge(function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,a=-1,i=!0,s=e.length-1;s>=1;--s)if(47===(r=e.charCodeAt(s))){if(!i){a=s;break}}else i=!1;return-1===a?n?"/":".":n&&1===a?"//":e.slice(0,a)},"dirname"),basename:Ge(function(e,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');t(e);var n,a=0,i=-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){a=n+1;break}}else-1===l&&(s=!1,l=n+1),o>=0&&(u===r.charCodeAt(o)?-1==--o&&(i=n):(o=-1,i=l))}return a===i?i=l:-1===i&&(i=e.length),e.slice(a,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){a=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(a,i)},"basename"),extname:Ge(function(e){t(e);for(var r=-1,n=0,a=-1,i=!0,s=0,o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(47!==l)-1===a&&(i=!1,a=o+1),46===l?-1===r?r=o:1!==s&&(s=1):-1!==r&&(s=-1);else if(!i){n=o+1;break}}return-1===r||-1===a||0===s||1===s&&r===a-1&&r===n+1?"":e.slice(r,a)},"extname"),format:Ge(function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return r=(t=e).dir||t.root,n=t.base||(t.name||"")+(t.ext||""),r?r===t.root?r+n:r+"/"+n:n;var t,r,n},"format"),parse:Ge(function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,a=e.charCodeAt(0),i=47===a;i?(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!==(a=e.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===a?-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&&i?e.slice(1,l):e.slice(o,l)):(0===o&&i?(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):i&&(r.dir="/"),r},"parse"),sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}Ge(r,"r"),r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};let a;if(r.r(n),r.d(n,{URI:Ge(()=>d,"URI"),Utils:Ge(()=>S,"Utils")}),"object"==typeof process)a="win32"===process.platform;else if("object"==typeof navigator){let e=navigator.userAgent;a=e.indexOf("Windows")>=0}const i=/^\w[\w\d+.-]*$/,s=/^\//,o=/^\/\//;function l(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!i.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!s.test(e.path))throw new 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(o.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}Ge(l,"a");const u="",c="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static{Ge(this,"l")}static isUri(e){return e instanceof d||!!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,a,i=!1){"object"==typeof e?(this.scheme=e.scheme||u,this.authority=e.authority||u,this.path=e.path||u,this.query=e.query||u,this.fragment=e.fragment||u):(this.scheme=function(e,t){return e||t?e:"file"}(e,i),this.authority=t||u,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,r||u),this.query=n||u,this.fragment=a||u,l(this,i))}get fsPath(){return T(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:r,path:n,query:a,fragment:i}=e;return void 0===t?t=this.scheme:null===t&&(t=u),void 0===r?r=this.authority:null===r&&(r=u),void 0===n?n=this.path:null===n&&(n=u),void 0===a?a=this.query:null===a&&(a=u),void 0===i?i=this.fragment:null===i&&(i=u),t===this.scheme&&r===this.authority&&n===this.path&&a===this.query&&i===this.fragment?this:new m(t,r,n,a,i)}static parse(e,t=!1){const r=p.exec(e);return r?new m(r[2]||u,b(r[4]||u),b(r[5]||u),b(r[7]||u),b(r[9]||u),t):new m(u,u,u,u,u)}static file(e){let t=u;if(a&&(e=e.replace(/\\/g,c)),e[0]===c&&e[1]===c){const r=e.indexOf(c,2);-1===r?(t=e.substring(2),e=c):(t=e.substring(2,r),e=e.substring(r)||c)}return new m("file",t,e,u,u)}static from(e){const t=new m(e.scheme,e.authority,e.path,e.query,e.fragment);return l(t,!0),t}toString(e=!1){return v(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{const t=new m(e);return t._formatted=e.external,t._fsPath=e._sep===f?e.fsPath:null,t}}return e}}const f=a?1:void 0;class m extends d{static{Ge(this,"d")}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=T(this,!1)),this._fsPath}toString(e=!1){return e?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=f),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}}const 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 y(e,t,r){let n,a=-1;for(let i=0;i<e.length;i++){const s=e.charCodeAt(i);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!==a&&(n+=encodeURIComponent(e.substring(a,i)),a=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));const t=h[s];void 0!==t?(-1!==a&&(n+=encodeURIComponent(e.substring(a,i)),a=-1),n+=t):-1===a&&(a=i)}}return-1!==a&&(n+=encodeURIComponent(e.substring(a))),void 0!==n?n:e}function g(e){let t;for(let r=0;r<e.length;r++){const 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 T(e,t){let r;return r=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,a&&(r=r.replace(/\//g,"\\")),r}function v(e,t){const r=t?g:y;let n="",{scheme:a,authority:i,path:s,query:o,fragment:l}=e;if(a&&(n+=a,n+=":"),(i||"file"===a)&&(n+=c,n+=c),i){let e=i.indexOf("@");if(-1!==e){const t=i.substr(0,e);i=i.substr(e+1),e=t.lastIndexOf(":"),-1===e?n+=r(t,!1,!1):(n+=r(t.substr(0,e),!1,!1),n+=":",n+=r(t.substr(e+1),!1,!0)),n+="@"}i=i.toLowerCase(),e=i.lastIndexOf(":"),-1===e?n+=r(i,!1,!0):(n+=r(i.substr(0,e),!1,!0),n+=i.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const 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)){const 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:y(l,!1,!1)),n}function $(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+$(e.substr(3)):e}}Ge(y,"m"),Ge(g,"y"),Ge(T,"v"),Ge(v,"b"),Ge($,"C");const R=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function b(e){return e.match(R)?e.replace(R,e=>$(e)):e}Ge(b,"w");var E=r(975);const A=E.posix||E,C="/";var S,k;(k=S||(S={})).joinPath=function(e,...t){return e.with({path:A.join(e.path,...t)})},k.resolvePath=function(e,...t){let r=e.path,n=!1;r[0]!==C&&(r=C+r,n=!0);let a=A.resolve(r,...t);return n&&a[0]===C&&!e.authority&&(a=a.substring(1)),e.with({path:a})},k.dirname=function(e){if(0===e.path.length||e.path===C)return e;let t=A.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},k.basename=function(e){return A.basename(e.path)},k.extname=function(e){return A.extname(e.path)},lx=n})();var yx,{URI:gx,Utils:Tx}=lx;!function(e){e.basename=Tx.basename,e.dirname=Tx.dirname,e.extname=Tx.extname,e.joinPath=Tx.joinPath,e.resolvePath=Tx.resolvePath;const t="object"==typeof process&&"win32"===process?.platform;function r(e,t){return e?.toString()===t?.toString()}function n(e,r){const n="string"==typeof e?gx.parse(e).path:e.path,a="string"==typeof r?gx.parse(r).path:r.path,i=n.split("/").filter(e=>e.length>0),s=a.split("/").filter(e=>e.length>0);if(t){const e=/^[A-Z]:$/;if(i[0]&&e.test(i[0])&&(i[0]=i[0].toLowerCase()),s[0]&&e.test(s[0])&&(s[0]=s[0].toLowerCase()),i[0]!==s[0])return a.substring(1)}let o=0;for(;o<i.length&&i[o]===s[o];o++);return"../".repeat(i.length-o)+s.slice(o).join("/")}function a(e){return gx.parse(e.toString()).toString()}function i(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))}Ge(r,"equals"),e.equals=r,Ge(n,"relative"),e.relative=n,Ge(a,"normalize"),e.normalize=a,Ge(i,"contains"),e.contains=i}(yx||(yx={}));var vx,$x,Rx=class{static{Ge(this,"UriTrie")}constructor(){this.root={name:"",children:new Map}}normalizeUri(e){return yx.normalize(e)}clear(){this.root.children.clear()}insert(e,t){this.getNode(this.normalizeUri(e),!0).element=t}delete(e){const t=this.getNode(this.normalizeUri(e),!1);t?.parent&&t.parent.children.delete(t.name)}has(e){return void 0!==this.getNode(this.normalizeUri(e),!1)?.element}hasNode(e){return void 0!==this.getNode(this.normalizeUri(e),!1)}find(e){return this.getNode(this.normalizeUri(e),!1)?.element}findNode(e){const t=this.normalizeUri(e),r=this.getNode(t,!1);if(r)return{name:r.name,uri:yx.joinPath(gx.parse(t),r.name).toString(),element:r.element}}findChildren(e){const t=this.normalizeUri(e),r=this.getNode(t,!1);return r?Array.from(r.children.values()).map(e=>({name:e.name,uri:yx.joinPath(gx.parse(t),e.name).toString(),element:e.element})):[]}all(){return this.collectValues(this.root)}findAll(e){const t=this.getNode(yx.normalize(e),!1);return t?this.collectValues(t):[]}getNode(e,t){const r=e.split("/");"/"===e.charAt(e.length-1)&&r.pop();let n=this.root;for(const a of r){let e=n.children.get(a);if(!e){if(!t)return;e={name:a,children:new Map,parent:n},n.children.set(a,e)}n=e}return n}collectValues(e){const t=[];e.element&&t.push(e.element);for(const r of e.children.values())t.push(...this.collectValues(r));return t}};($x=vx||(vx={}))[$x.Changed=0]="Changed",$x[$x.Parsed=1]="Parsed",$x[$x.IndexedContent=2]="IndexedContent",$x[$x.ComputedScopes=3]="ComputedScopes",$x[$x.Linked=4]="Linked",$x[$x.IndexedReferences=5]="IndexedReferences",$x[$x.Validated=6]="Validated";var bx=class{static{Ge(this,"DefaultLangiumDocumentFactory")}constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=Xk.CancellationToken.None){const r=await this.fileSystemProvider.readFile(e);return this.createAsync(e,r,t)}fromTextDocument(e,t,r){return t=t??gx.parse(e.uri),Xk.CancellationToken.is(r)?this.createAsync(t,e,r):this.create(t,e,r)}fromString(e,t,r){return Xk.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){const n=this.parse(e,t,r);return this.createLangiumDocument(n,e,void 0,t)}if("$model"in t){const r={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(r,e)}{const n=this.parse(e,t.getText(),r);return this.createLangiumDocument(n,e,t)}}async createAsync(e,t,r){if("string"==typeof t){const n=await this.parseAsync(e,t,r);return this.createLangiumDocument(n,e,void 0,t)}{const n=await this.parseAsync(e,t.getText(),r);return this.createLangiumDocument(n,e,t)}}createLangiumDocument(e,t,r,n){let a;if(r)a={parseResult:e,uri:t,state:vx.Parsed,references:[],textDocument:r};else{const r=this.createTextDocumentGetter(t,n);a={parseResult:e,uri:t,state:vx.Parsed,references:[],get textDocument(){return r()}}}return e.value.$document=a,a}async update(e,t){const r=e.parseResult.value.$cstNode?.root.fullText,n=this.textDocuments?.get(e.uri.toString()),a=n?n.getText():await this.fileSystemProvider.readFile(e.uri);if(n)Object.defineProperty(e,"textDocument",{value:n});else{const t=this.createTextDocumentGetter(e.uri,a);Object.defineProperty(e,"textDocument",{get:t})}return r!==a&&(e.parseResult=await this.parseAsync(e.uri,a,t),e.parseResult.value.$document=e),e.state=vx.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){const r=this.serviceRegistry;let n;return()=>n??(n=ox.create(e.toString(),r.getServices(e).LanguageMetaData.languageId,0,t??""))}},Ex=class{static{Ge(this,"DefaultLangiumDocuments")}constructor(e){this.documentTrie=new Rx,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return nr(this.documentTrie.all())}addDocument(e){const t=e.uri.toString();if(this.documentTrie.has(t))throw new Error(`A document with the URI '${t}' is already present.`);this.documentTrie.insert(t,e)}getDocument(e){const t=e.toString();return this.documentTrie.find(t)}getDocuments(e){const 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));{const r=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(r),r}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){const t=e.toString(),r=this.documentTrie.find(t);return r&&this.documentBuilder().resetToState(r,vx.Changed),r}deleteDocument(e){const t=e.toString(),r=this.documentTrie.find(t);return r&&(r.state=vx.Changed,this.documentTrie.delete(t)),r}deleteDocuments(e){const t=e.toString(),r=this.documentTrie.findAll(t);for(const n of r)n.state=vx.Changed;return this.documentTrie.delete(t),r}},Ax=Symbol("RefResolving"),Cx=class{static{Ge(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=Xk.CancellationToken.None){if(this.profiler?.isActive("linking")){const r=this.profiler.createTask("linking",this.languageId);r.start();try{for(const n of hr(e.parseResult.value))await sx(t),gr(n).forEach(t=>{const a=`${n.$type}:${t.property}`;r.startSubTask(a);try{this.doLink(t,e)}finally{r.stopSubTask(a)}})}finally{r.stop()}}else for(const r of hr(e.parseResult.value))await sx(t),gr(r).forEach(t=>this.doLink(t,e))}doLink(e,t){const r=e.reference;if("_ref"in r&&void 0===r._ref){r._ref=Ax;try{const t=this.getCandidate(e);if(Vt(t))r._ref=t;else{r._nodeDescription=t;const n=this.loadAstNode(t);r._ref=n??this.createLinkingError(e,t)}}catch(n){console.error(`An error occurred while resolving reference to '${r.$refText}':`,n);const 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=Ax;try{const t=this.getCandidates(e),n=[];if(Vt(t))r._linkingError=t;else for(const e of t){const t=this.loadAstNode(e);t&&n.push({ref:t,$nodeDescription:e})}r._items=n}catch(n){r._linkingError={info:e,message:`An error occurred while resolving reference to '${r.$refText}': ${n}`},r._items=[]}t.references.push(r)}}unlink(e){for(const 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){const 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){const a=this,i={$refNode:r,$refText:n,_ref:void 0,get ref(){if(qt(this._ref))return this._ref;if(Wt(this._nodeDescription)){const r=a.loadAstNode(this._nodeDescription);this._ref=r??a.createLinkingError({reference:i,container:e,property:t},this._nodeDescription)}else if(void 0===this._ref){this._ref=Ax;const r=pr(e).$document,n=a.getLinkedNode({reference:i,container:e,property:t});if(n.error&&r&&r.state<vx.ComputedScopes)return this._ref=void 0;this._ref=n.node??n.error,this._nodeDescription=n.descr,r?.references.push(this)}else this._ref===Ax&&a.throwCyclicReferenceError(e,t,n);return qt(this._ref)?this._ref:void 0},get $nodeDescription(){return this._nodeDescription},get error(){return Vt(this._ref)?this._ref:void 0}};return i}buildMultiReference(e,t,r,n){const a=this,i={$refNode:r,$refText:n,_items:void 0,get items(){if(Array.isArray(this._items))return this._items;if(void 0===this._items){this._items=Ax;const r=pr(e).$document,n=a.getCandidates({reference:i,container:e,property:t}),s=[];if(Vt(n))this._linkingError=n;else for(const e of n){const t=a.loadAstNode(e);t&&s.push({ref:t,$nodeDescription:e})}this._items=s,r?.references.push(this)}else this._items===Ax&&a.throwCyclicReferenceError(e,t,n);return Array.isArray(this._items)?this._items:[]},get error(){if(this._linkingError)return this._linkingError;return this.items.length>0?void 0:this._linkingError=a.createLinkingError({reference:i,container:e,property:t})}};return i}throwCyclicReferenceError(e,t,r){throw new Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${t} (symbol '${r}')`)}getLinkedNode(e){try{const t=this.getCandidate(e);if(Vt(t))return{error:t};const r=this.loadAstNode(t);return r?{node:r,descr:t}:{descr:t,error:this.createLinkingError(e,t)}}catch(t){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,t);const r=t.message??String(t);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${r}`}}}}loadAstNode(e){if(e.node)return e.node;const t=this.langiumDocuments().getDocument(e.documentUri);return t?this.astNodeLocator.getAstNode(t.parseResult.value,e.path):void 0}createLinkingError(e,t){const r=pr(e.container).$document;r&&r.state<vx.ComputedScopes&&console.warn(`Attempted reference resolution before document reached ComputedScopes state (${r.uri}).`);return{info:e,message:`Could not resolve reference to ${this.reflection.getReferenceType(e)} named '${e.reference.$refText}'.`,targetDescription:t}}};function Sx(e){return"string"==typeof e.name}Ge(Sx,"isNamed");var kx=class{static{Ge(this,"DefaultNameProvider")}getName(e){if(Sx(e))return e.name}getNameNode(e){return ki(e.$cstNode,"name")}},xx=class{static{Ge(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=hr(e.Grammar).some(e=>Qr(e)&&e.isMulti)}findDeclarations(e){if(e){const t=_i(e),r=e.astNode;if(t&&r){const n=r[t.feature];if(Ut(n)||Bt(n))return dr(n);if(Array.isArray(n))for(const t of n)if((Ut(t)||Bt(t))&&t.$refNode&&t.$refNode.offset<=e.offset&&t.$refNode.end>=e.end)return dr(t)}if(r){const t=this.nameProvider.getNameNode(r);if(t&&(t===e||Ca(e,t)))return this.getSelfNodes(r)}}return[]}getSelfNodes(e){if(this.hasMultiReference){const t=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),r=this.getNodeFromReferenceDescription(t.head());if(r)for(const n of gr(r))if(Bt(n.reference)&&n.reference.items.some(t=>t.ref===e))return n.reference.items.map(e=>e.ref);return[e]}return[e]}getNodeFromReferenceDescription(e){if(!e)return;const t=this.documents.getDocument(e.sourceUri);return t?this.nodeLocator.getAstNode(t.parseResult.value,e.sourcePath):void 0}findDeclarationNodes(e){const t=this.findDeclarations(e),r=[];for(const n of t){const e=this.nameProvider.getNameNode(n)??n.$cstNode;e&&r.push(e)}return r}findReferences(e,t){const 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=>yx.equals(e.sourceUri,t.documentUri))),r.push(...n),nr(r)}getSelfReferences(e){const t=this.getSelfNodes(e),r=[];for(const n of t){const e=this.nameProvider.getNameNode(n);if(e){const t=cr(n),a=this.nodeLocator.getAstNodePath(n);r.push({sourceUri:t.uri,sourcePath:a,targetUri:t.uri,targetPath:a,segment:ka(e),local:!0})}}return r}},wx=class{static{Ge(this,"MultiMap")}constructor(e){if(this.map=new Map,e)for(const[t,r]of e)this.add(t,r)}get size(){return ar.sum(nr(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(void 0===t)return this.map.delete(e);{const r=this.map.get(e);if(r){const 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){const t=this.map.get(e);return t?nr(t):tr}has(e,t){if(void 0===t)return this.map.has(e);{const 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 nr(this.map.entries()).flatMap(([e,t])=>t.map(t=>[e,t]))}keys(){return nr(this.map.keys())}values(){return nr(this.map.values()).flat()}entriesGroupedByKey(){return nr(this.map.entries())}},Nx=class{static{Ge(this,"BiMap")}get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[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){const t=this.map.get(e);return void 0!==t&&(this.map.delete(e),this.inverse.delete(t),!0)}},Ix=class{static{Ge(this,"DefaultScopeComputation")}constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,t=Xk.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,t)}async collectExportedSymbolsForNode(e,t,r=fr,n=Xk.CancellationToken.None){const a=[];this.addExportedSymbol(e,a,t);for(const i of r(e))await sx(n),this.addExportedSymbol(i,a,t);return a}addExportedSymbol(e,t,r){const n=this.nameProvider.getName(e);n&&t.push(this.descriptions.createDescription(e,n,r))}async collectLocalSymbols(e,t=Xk.CancellationToken.None){const r=e.parseResult.value,n=new wx;for(const a of mr(r))await sx(t),this.addLocalSymbol(a,e,n);return n}addLocalSymbol(e,t,r){const n=e.$container;if(n){const a=this.nameProvider.getName(e);a&&r.add(n,this.descriptions.createDescription(e,a,t))}}},_x=class{static{Ge(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){const 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){const 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}},Px=class{static{Ge(this,"MapScope")}constructor(e,t,r){this.elements=new Map,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0;for(const n of e){const e=this.caseInsensitive?n.name.toLowerCase():n.name;this.elements.set(e,n)}this.outerScope=t}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);return r||(this.outerScope?this.outerScope.getElement(e):void 0)}getElements(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t),n=r?[r]:[];return(this.concatOuterScope||n.length>0)&&this.outerScope?nr(n).concat(this.outerScope.getElements(e)):nr(n)}getAllElements(){let e=nr(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},Ox=class{static{Ge(this,"MultiMapScope")}constructor(e,t,r){this.elements=new wx,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0;for(const n of e){const e=this.caseInsensitive?n.name.toLowerCase():n.name;this.elements.add(e,n)}this.outerScope=t}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t)[0];return r||(this.outerScope?this.outerScope.getElement(e):void 0)}getElements(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);return(this.concatOuterScope||0===r.length)&&this.outerScope?nr(r).concat(this.outerScope.getElements(e)):nr(r)}getAllElements(){let e=nr(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},Dx={getElement(){},getElements:()=>tr,getAllElements:()=>tr},Lx=class{static{Ge(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 new Error("This cache has already been disposed")}},Mx=class extends Lx{static{Ge(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){const r=t();return this.cache.set(e,r),r}}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},jx=class extends Lx{static{Ge(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();const n=this.cacheForContext(e);if(n.has(t))return n.get(t);if(r){const 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){const t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){const t=this.converter(e);let r=this.cache.get(t);return r||(r=new Map,this.cache.set(t,r)),r}},Fx=class extends jx{static{Ge(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(const r of t)this.clear(r)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{const r=e.concat(t);for(const n of r)this.clear(n)}))}},Gx=class extends Mx{static{Ge(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()}))}},Kx=class{static{Ge(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 Gx(e.shared)}getScope(e){const t=[],r=this.reflection.getReferenceType(e),n=cr(e.container).localSymbols;if(n){let a=e.container;do{n.has(a)&&t.push(n.getStream(a).filter(e=>this.reflection.isSubtype(e.type,r))),a=a.$container}while(a)}let a=this.getGlobalScope(r,e);for(let i=t.length-1;i>=0;i--)a=this.createScope(t[i],a);return a}createScope(e,t,r){return new _x(nr(e),t,r)}createScopeForNodes(e,t,r){const n=nr(e).map(e=>{const t=this.nameProvider.getName(e);if(t)return this.descriptions.createDescription(e,t)}).nonNullable();return new _x(n,t,r)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new Ox(this.indexManager.allElements(e)))}};function zx(e){return"string"==typeof e.$comment}function qx(e){return"object"==typeof e&&!!e&&("$ref"in e||"$error"in e)}Ge(zx,"isAstNodeWithComment"),Ge(qx,"isIntermediateReference");var Ux,Bx,Wx=class{static{Ge(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){const r=t??{},n=t?.replacer,a=Ge((e,t)=>this.replacer(e,t,r),"defaultReplacer"),i=n?(e,t)=>n(e,t,a):a;try{return this.currentDocument=cr(e),JSON.stringify(e,i,t?.space)}finally{this.currentDocument=void 0}}deserialize(e,t){const r=t??{},n=JSON.parse(e);return this.linkNode(n,n,r),n}replacer(e,t,{refText:r,sourceText:n,textRegions:a,comments:i,uriConverter:s}){if(!this.ignoreProperties.has(e)){if(Ut(t)){const e=t.ref,n=r?t.$refText:void 0;if(e){const t=cr(e);let r="";this.currentDocument&&this.currentDocument!==t&&(r=s?s(t.uri,e):t.uri.toString());return{$ref:`${r}#${this.astNodeLocator.getAstNodePath(e)}`,$refText:n}}return{$error:t.error?.message??"Could not resolve reference",$refText:n}}if(Bt(t)){const e=r?t.$refText:void 0,n=[];for(const r of t.items){const e=r.ref,t=cr(r.ref);let a="";this.currentDocument&&this.currentDocument!==t&&(a=s?s(t.uri,e):t.uri.toString());const i=this.astNodeLocator.getAstNodePath(e);n.push(`${a}#${i}`)}return{$refs:n,$refText:e}}if(qt(t)){let r;if(a&&(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),i){r??(r={...t});const e=this.commentProvider.getComment(t);e&&(r.$comment=e.replace(/\r/g,""))}return r??t}return t}}addAstNodeRegionWithAssignmentsTo(e){const t=Ge(e=>({offset:e.offset,end:e.end,length:e.length,range:e.range}),"createDocumentSegment");if(e.$cstNode){const r=(e.$textRegion=t(e.$cstNode)).assignments={};return Object.keys(e).filter(e=>!e.startsWith("$")).forEach(n=>{const a=Si(e.$cstNode,n).map(t);0!==a.length&&(r[n]=a)}),e}}linkNode(e,t,r,n,a,i){for(const[o,l]of Object.entries(e))if(Array.isArray(l))for(let n=0;n<l.length;n++){const a=l[n];qx(a)?l[n]=this.reviveReference(e,o,t,a,r):qt(a)&&this.linkNode(a,t,r,e,o,n)}else qx(l)?e[o]=this.reviveReference(e,o,t,l,r):qt(l)&&this.linkNode(l,t,r,e,o);const s=e;s.$container=n,s.$containerProperty=a,s.$containerIndex=i}reviveReference(e,t,r,n,a){let i,s=n.$refText,o=n.$error;if(n.$ref){const e=this.getRefNode(r,n.$ref,a.uriConverter);if(qt(e))return s||(s=this.nameProvider.getName(e)),{$refText:s??"",ref:e};o=e}else if(n.$refs){const e=[];for(const t of n.$refs){const n=this.getRefNode(r,t,a.uriConverter);qt(n)&&e.push({ref:n})}if(0!==e.length)return{$refText:s??"",items:e};i={$refText:s??"",items:e},o??(o="Could not resolve multi-reference")}return o?(i??(i={$refText:s??"",ref:void 0}),i.error={info:{container:e,property:t,reference:i},message:o},i):void 0}getRefNode(e,t,r){try{const n=t.indexOf("#");if(0===n){const r=this.astNodeLocator.getAstNode(e,t.substring(1));return r||"Could not resolve path: "+t}if(n<0){const e=r?r(t):gx.parse(t),n=this.langiumDocuments.getDocument(e);return n?n.parseResult.value:"Could not find document for URI: "+t}const a=r?r(t.substring(0,n)):gx.parse(t.substring(0,n)),i=this.langiumDocuments.getDocument(a);if(!i)return"Could not find document for URI: "+t;if(n===t.length-1)return i.parseResult.value;const s=this.astNodeLocator.getAstNode(i.parseResult.value,t.substring(n+1));return s||"Could not resolve URI: "+t}catch(n){return String(n)}}},Vx=class{static{Ge(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){const t=e.LanguageMetaData;for(const 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(const 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 new Error("The service registry is empty. Use `register` to register the services of a language.");const t=this.textDocuments?.get(e)?.languageId;if(void 0!==t){const e=this.languageIdMap.get(t);if(e)return e}const r=yx.extname(e),n=yx.basename(e),a=this.fileNameMap.get(n)??this.fileExtensionMap.get(r);if(!a)throw t?new Error(`The service registry contains no services for the extension '${r}' for language '${t}'.`):new Error(`The service registry contains no services for the extension '${r}'.`);return a}hasServices(e){try{return this.getServices(e),!0}catch{return!1}}get all(){return Array.from(this.languageIdMap.values())}};function Hx(e){return{code:e}}Ge(Hx,"diagnosticData"),(Bx=Ux||(Ux={})).defaults=["fast","slow","built-in"],Bx.all=Bx.defaults;var Yx,Qx,Zx=class{static{Ge(this,"ValidationRegistry")}constructor(e){this.entries=new wx,this.knownCategories=new Set(Ux.defaults),this.entriesBefore=[],this.entriesAfter=[],this.reflection=e.shared.AstReflection}register(e,t=this,r="fast"){if("built-in"===r)throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");this.knownCategories.add(r);for(const[n,a]of Object.entries(e)){const e=a;if(Array.isArray(e))for(const a of e){const e={check:this.wrapValidationException(a,t),category:r};this.addEntry(n,e)}else if("function"==typeof e){const a={check:this.wrapValidationException(e,t),category:r};this.addEntry(n,a)}else Ba()}}wrapValidationException(e,t){return async(r,n,a)=>{await this.handleException(()=>e.call(t,r,n,a),"An error occurred during validation",n,r)}}async handleException(e,t,r,n){try{await e()}catch(a){if(ix(a))throw a;console.error(`${t}:`,a),a instanceof Error&&a.stack&&console.error(a.stack);r("error",`${t}: ${a instanceof Error?a.message:String(a)}`,{node:n})}}addEntry(e,t){if("AstNode"!==e)for(const r of this.reflection.getAllSubTypes(e))this.entries.add(r,t);else this.entries.add("AstNode",t)}getChecks(e,t){let r=nr(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,a,i,s)=>{await this.handleException(()=>e.call(r,n,a,i,s),t,a,n)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},Xx=Object.freeze({validateNode:!0,validateChildren:!0}),Jx=class{static{Ge(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=Xk.CancellationToken.None){const n=e.parseResult,a=[];if(await sx(r),!t.categories||t.categories.includes("built-in")){if(this.processLexingErrors(n,a,t),t.stopAfterLexingErrors&&a.some(e=>e.data?.code===Yx.LexingError))return a;if(this.processParsingErrors(n,a,t),t.stopAfterParsingErrors&&a.some(e=>e.data?.code===Yx.ParsingError))return a;if(this.processLinkingErrors(e,a,t),t.stopAfterLinkingErrors&&a.some(e=>e.data?.code===Yx.LinkingError))return a}try{a.push(...await this.validateAst(n.value,t,r))}catch(i){if(ix(i))throw i;console.error("An error occurred during validation:",i)}return await sx(r),a}processLexingErrors(e,t,r){const n=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(const a of n){const e=a.severity??"error",r={severity:tw(e),range:{start:{line:a.line-1,character:a.column-1},end:{line:a.line-1,character:a.column+a.length-1}},message:a.message,data:rw(e),source:this.getSource()};t.push(r)}}processParsingErrors(e,t,r){for(const n of e.parserErrors){let e;if(isNaN(n.token.startOffset)){if("previousToken"in n){const t=n.previousToken;if(isNaN(t.startOffset)){const t={line:0,character:0};e={start:t,end:t}}else{const r={line:t.endLine-1,character:t.endColumn};e={start:r,end:r}}}}else e=Sa(n.token);if(e){const r={severity:tw("error"),range:e,message:n.message,data:Hx(Yx.ParsingError),source:this.getSource()};t.push(r)}}}processLinkingErrors(e,t,r){for(const n of e.references){const e=n.error;if(e){const r={node:e.info.container,range:n.$refNode?.range,property:e.info.property,index:e.info.index,data:{code:Yx.LinkingError,containerType:e.info.container.$type,property:e.info.property,refText:e.info.reference.$refText}};t.push(this.toDiagnostic("error",e.message,r))}}}async validateAst(e,t,r=Xk.CancellationToken.None){const n=[],a=Ge((e,t,r)=>{n.push(this.toDiagnostic(e,t,r))},"acceptor");return await this.validateAstBefore(e,t,a,r),await this.validateAstNodes(e,t,a,r),await this.validateAstAfter(e,t,a,r),n}async validateAstBefore(e,t,r,n=Xk.CancellationToken.None){const a=this.validationRegistry.checksBefore;for(const i of a)await sx(n),await i(e,r,t.categories??[],n)}async validateAstNodes(e,t,r,n=Xk.CancellationToken.None){if(this.profiler?.isActive("validating")){const a=this.profiler.createTask("validating",this.languageId);a.start();try{const i=hr(e).iterator();for(const e of i){a.startSubTask(e.$type);const s=this.validateSingleNodeOptions(e,t);if(s.validateNode)try{const a=this.validationRegistry.getChecks(e.$type,t.categories);for(const t of a)await t(e,r,n)}finally{a.stopSubTask(e.$type)}s.validateChildren||i.prune()}}finally{a.stop()}}else{const a=hr(e).iterator();for(const e of a){await sx(n);const i=this.validateSingleNodeOptions(e,t);if(i.validateNode){const a=this.validationRegistry.getChecks(e.$type,t.categories);for(const t of a)await t(e,r,n)}i.validateChildren||a.prune()}}}validateSingleNodeOptions(e,t){return Xx}async validateAstAfter(e,t,r,n=Xk.CancellationToken.None){const a=this.validationRegistry.checksAfter;for(const i of a)await sx(n),await i(e,r,t.categories??[],n)}toDiagnostic(e,t,r){return{message:t,range:ew(r),severity:tw(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 ew(e){if(e.range)return e.range;let t;return"string"==typeof e.property?t=ki(e.node.$cstNode,e.property,e.index):"string"==typeof e.keyword&&(t=Ni(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 tw(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+e)}}function rw(e){switch(e){case"error":return Hx(Yx.LexingError);case"warning":return Hx(Yx.LexingWarning);case"info":return Hx(Yx.LexingInfo);case"hint":return Hx(Yx.LexingHint);default:throw new Error("Invalid diagnostic severity: "+e)}}Ge(ew,"getDiagnosticRange"),Ge(tw,"toDiagnosticSeverity"),Ge(rw,"toDiagnosticData"),(Qx=Yx||(Yx={})).LexingError="lexing-error",Qx.LexingWarning="lexing-warning",Qx.LexingInfo="lexing-info",Qx.LexingHint="lexing-hint",Qx.ParsingError="parsing-error",Qx.LinkingError="linking-error";var nw=class{static{Ge(this,"DefaultAstNodeDescriptionProvider")}constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,r){const n=r??cr(e);t??(t=this.nameProvider.getName(e));const a=this.astNodeLocator.getAstNodePath(e);if(!t)throw new Error(`Node at path ${a} has no name.`);let i;const s=Ge(()=>i??(i=ka(this.nameProvider.getNameNode(e)??e.$cstNode)),"nameSegmentGetter");return{node:e,name:t,get nameSegment(){return s()},selectionSegment:ka(e.$cstNode),type:e.$type,documentUri:n.uri,path:a}}},aw=class{static{Ge(this,"DefaultReferenceDescriptionProvider")}constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=Xk.CancellationToken.None){const r=[],n=e.parseResult.value;for(const a of hr(n))await sx(t),gr(a).forEach(e=>{e.reference.error||r.push(...this.createInfoDescriptions(e))});return r}createInfoDescriptions(e){const t=e.reference;if(t.error||!t.$refNode)return[];let r=[];Ut(t)&&t.$nodeDescription?r=[t.$nodeDescription]:Bt(t)&&(r=t.items.map(e=>e.$nodeDescription).filter(e=>void 0!==e));const n=cr(e.container).uri,a=this.nodeLocator.getAstNodePath(e.container),i=[],s=ka(t.$refNode);for(const o of r)i.push({sourceUri:n,sourcePath:a,targetUri:o.documentUri,targetPath:o.path,segment:s,local:yx.equals(o.documentUri,n)});return i}},iw=class{static{Ge(this,"DefaultAstNodeLocator")}constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const t=this.getAstNodePath(e.$container),r=this.getPathSegment(e);return t+this.segmentSeparator+r}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw new 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;const r=t.indexOf(this.indexSeparator);if(r>0){const n=t.substring(0,r),a=parseInt(t.substring(r+1)),i=e[n];return i?.[a]}return e[t]},e)}},sw={};Ue(sw,Be(Je(),1));var ow,lw=class{static{Ge(this,"DefaultConfigurationProvider")}constructor(e){this._ready=new ux,this.onConfigurationSectionUpdateEmitter=new sw.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){const t=this.serviceRegistry.all;e.register({section:t.map(e=>this.toSectionName(e.LanguageMetaData.languageId))})}if(e.fetchConfiguration){const 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;const r=this.toSectionName(e);if(this.settings[r])return this.settings[r][t]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},uw=Be(Gt(),1);!function(e){function t(e){return{dispose:Ge(async()=>await e(),"dispose")}}Ge(t,"create"),e.create=t}(ow||(ow={}));var cw=class{static{Ge(this,"DefaultDocumentBuilder")}constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new wx,this.documentPhaseListeners=new wx,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=vx.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=Xk.CancellationToken.None){for(const n of e){const e=n.uri.toString();if(n.state===vx.Validated){if("boolean"==typeof t.validation&&t.validation)this.resetToState(n,vx.IndexedReferences);else if("object"==typeof t.validation){const r=this.findMissingValidationCategories(n,t);r.length>0&&(this.buildState.set(e,{completed:!1,options:{validation:{categories:r}},result:this.buildState.get(e)?.result}),n.state=vx.IndexedReferences)}}else this.buildState.delete(e)}this.currentState=vx.Changed,await this.emitUpdate(e.map(e=>e.uri),[]),await this.buildDocuments(e,t,r)}async update(e,t,r=Xk.CancellationToken.None){this.currentState=vx.Changed;const n=[];for(const o of t){const e=this.langiumDocuments.deleteDocuments(o);for(const t of e)n.push(t.uri),this.cleanUpDeleted(t)}const a=(await Promise.all(e.map(e=>this.findChangedUris(e)))).flat();for(const o of a){let e=this.langiumDocuments.getDocument(o);void 0===e&&(e=this.langiumDocumentFactory.fromModel({$type:"INVALID"},o),e.state=vx.Changed,this.langiumDocuments.addDocument(e)),this.resetToState(e,vx.Changed)}const i=nr(a).concat(n).map(e=>e.toString()).toSet();this.langiumDocuments.all.filter(e=>!i.has(e.uri.toString())&&this.shouldRelink(e,i)).forEach(e=>this.resetToState(e,vx.ComputedScopes)),await this.emitUpdate(a,n),await sx(r);const s=this.sortDocuments(this.langiumDocuments.all.filter(e=>e.state<vx.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){const r=this.buildState.get(e.uri.toString()),n=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),a=r?.result?.validationChecks?new Set(r?.result?.validationChecks):r?.completed?n:new Set;return nr(void 0===t||!0===t.validation?n:"object"==typeof t.validation?t.validation.categories??n:[]).filter(e=>!a.has(e)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{const 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 Boolean(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),ow.create(()=>{const t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}resetToState(e,t){switch(t){case vx.Changed:case vx.Parsed:this.indexManager.removeContent(e.uri);case vx.IndexedContent:e.localSymbols=void 0;case vx.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case vx.Linked:this.indexManager.removeReferences(e.uri);case vx.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case vx.Validated:}e.state>t&&(e.state=t)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=vx.Changed}async buildDocuments(e,t,r){this.prepareBuild(e,t),await this.runCancelable(e,vx.Parsed,r,e=>this.langiumDocumentFactory.update(e,r)),await this.runCancelable(e,vx.IndexedContent,r,e=>this.indexManager.updateContent(e,r)),await this.runCancelable(e,vx.ComputedScopes,r,async e=>{const t=this.serviceRegistry.getServices(e.uri).references.ScopeComputation;e.localSymbols=await t.collectLocalSymbols(e,r)});const n=e.filter(e=>this.shouldLink(e));await this.runCancelable(n,vx.Linked,r,e=>this.serviceRegistry.getServices(e.uri).references.Linker.link(e,r)),await this.runCancelable(n,vx.IndexedReferences,r,e=>this.indexManager.updateReferences(e,r));const a=e.filter(e=>!!this.shouldValidate(e)||(this.markAsCompleted(e),!1));await this.runCancelable(a,vx.Validated,r,async e=>{await this.validate(e,r),this.markAsCompleted(e)})}markAsCompleted(e){const t=this.buildState.get(e.uri.toString());t&&(t.completed=!0)}prepareBuild(e,t){for(const r of e){const 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(const i of e)i.state<t&&(await sx(r),await n(i),i.state=t,await this.notifyDocumentPhase(i,t,r));const a=e.filter(e=>e.state===t);await this.notifyBuildPhase(a,t,r),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),ow.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),ow.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(e,t,r){let n;return t&&"path"in t?n=t:r=t,r??(r=Xk.CancellationToken.None),n?this.awaitDocumentState(e,n,r):this.awaitBuilderState(e,r)}awaitDocumentState(e,t,r){const n=this.langiumDocuments.getDocument(t);return n?n.state>=e?Promise.resolve(t):r.isCancellationRequested?Promise.reject(ax):this.currentState>=e&&e>n.state?Promise.reject(new uw.ResponseError(uw.LSPErrorCodes.RequestFailed,`Document state of ${t.toString()} is ${vx[n.state]}, requiring ${vx[e]}, but workspace state is already ${vx[this.currentState]}. Returning undefined.`)):new Promise((n,a)=>{const i=this.onDocumentPhase(e,e=>{yx.equals(e.uri,t)&&(i.dispose(),s.dispose(),n(e.uri))}),s=r.onCancellationRequested(()=>{i.dispose(),s.dispose(),a(ax)})}):Promise.reject(new uw.ResponseError(uw.LSPErrorCodes.ServerCancelled,`No document found for URI: ${t.toString()}`))}awaitBuilderState(e,t){return this.currentState>=e?Promise.resolve():t.isCancellationRequested?Promise.reject(ax):new Promise((r,n)=>{const a=this.onBuildPhase(e,()=>{a.dispose(),i.dispose(),r()}),i=t.onCancellationRequested(()=>{a.dispose(),i.dispose(),n(ax)})})}async notifyDocumentPhase(e,t,r){const n=this.documentPhaseListeners.get(t).slice();for(const i of n)try{await sx(r),await i(e,r)}catch(a){if(!ix(a))throw a}}async notifyBuildPhase(e,t,r){if(0===e.length)return;const n=this.buildPhaseListeners.get(t).slice();for(const a of n)await sx(r),await a(e,r)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return Boolean(this.getBuildOptions(e).validation)}async validate(e,t){const r=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,n=this.getBuildOptions(e),a="object"==typeof n.validation?{...n.validation}:{};a.categories=this.findMissingValidationCategories(e,n);const i=await r.validateDocument(e,a,t);e.diagnostics?e.diagnostics.push(...i):e.diagnostics=i;const s=this.buildState.get(e.uri.toString());s&&(s.result??(s.result={}),s.result.validationChecks?s.result.validationChecks=nr(s.result.validationChecks).concat(a.categories).distinct().toArray():s.result.validationChecks=[...a.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},pw=class{static{Ge(this,"DefaultIndexManager")}constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new jx,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){const r=cr(e).uri,n=[];return this.referenceIndex.forEach(e=>{e.forEach(e=>{yx.equals(e.targetUri,r)&&e.targetPath===t&&n.push(e)})}),nr(n)}allElements(e,t){let r=nr(this.symbolIndex.keys());return t&&(r=r.filter(e=>!t||t.has(e))),r.map(t=>this.getFileDescriptions(t,e)).flat()}getFileDescriptions(e,t){if(!t)return this.symbolIndex.get(e)??[];return this.symbolByTypeIndex.get(e,t,()=>(this.symbolIndex.get(e)??[]).filter(e=>this.astReflection.isSubtype(e.type,t)))}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){const t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t)}removeReferences(e){const t=e.toString();this.referenceIndex.delete(t)}async updateContent(e,t=Xk.CancellationToken.None){const r=this.serviceRegistry.getServices(e.uri),n=await r.references.ScopeComputation.collectExportedSymbols(e,t),a=e.uri.toString();this.symbolIndex.set(a,n),this.symbolByTypeIndex.clear(a)}async updateReferences(e,t=Xk.CancellationToken.None){const r=this.serviceRegistry.getServices(e.uri),n=await r.workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),n)}isAffected(e,t){const r=this.referenceIndex.get(e.uri.toString());return!!r&&r.some(e=>!e.local&&t.has(e.targetUri.toString()))}},dw=class{static{Ge(this,"DefaultWorkspaceManager")}constructor(e){this.initialBuildOptions={},this._ready=new ux,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=Xk.CancellationToken.None){const r=await this.performStartup(e);await sx(t),await this.documentBuilder.build(r,this.initialBuildOptions,t)}async performStartup(e){const t=[],r=Ge(e=>{t.push(e),this.langiumDocuments.hasDocument(e.uri)||this.langiumDocuments.addDocument(e)},"collector");await this.loadAdditionalDocuments(e,r);const n=[];await Promise.all(e.map(e=>this.getRootFolder(e)).map(async e=>this.traverseFolder(e,n)));const a=nr(n).distinct(e=>e.toString()).filter(e=>!this.langiumDocuments.hasDocument(e));return await this.loadWorkspaceDocuments(a,r),this._ready.resolve(),t}async loadWorkspaceDocuments(e,t){await Promise.all(e.map(async e=>{const r=await this.langiumDocuments.getOrCreateDocument(e);t(r)}))}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return gx.parse(e.uri)}async traverseFolder(e,t){try{const 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(r){console.error("Failure to read directory content of "+e.toString(!0),r)}}async searchFolder(e){const t=[];return await this.traverseFolder(e,t),t}shouldIncludeEntry(e){const t=yx.basename(e.uri);return!t.startsWith(".")&&(e.isDirectory?"node_modules"!==t&&"out"!==t:!!e.isFile&&this.serviceRegistry.hasServices(e.uri))}},fw=class{static{Ge(this,"DefaultLexerErrorMessageProvider")}buildUnexpectedCharactersMessage(e,t,r,n,a){return Ag.buildUnexpectedCharactersMessage(e,t,r,n,a)}buildUnableToPopLexerModeMessage(e){return Ag.buildUnableToPopLexerModeMessage(e)}},mw={mode:"full"},hw=class{static{Ge(this,"DefaultLexer")}constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;const t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);const r=Tw(t)?Object.values(t):t,n="production"===e.LanguageMetaData.mode;this.chevrotainLexer=new Sg(r,{positionTracking:"full",skipValidations:n,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=mw){const r=this.chevrotainLexer.tokenize(e);return{tokens:r.tokens,errors:r.errors,hidden:r.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(Tw(e))return e;const t=gw(e)?Object.values(e.modes).flat():e,r={};return t.forEach(e=>r[e.name]=e),r}};function yw(e){return Array.isArray(e)&&(0===e.length||"name"in e[0])}function gw(e){return e&&"modes"in e&&"defaultMode"in e}function Tw(e){return!yw(e)&&!gw(e)}function vw(e,t,r){let n,a;"string"==typeof e?(a=t,n=r):(a=e.range.start,n=t),a||(a=o.create(0,0));return Nw({index:0,tokens:Aw({lines:Rw(e),position:a,options:Mw(n)}),position:a})}function $w(e,t){const r=Mw(t),n=Rw(e);if(0===n.length)return!1;const a=n[0],i=n[n.length-1],s=r.start,o=r.end;return Boolean(s?.exec(a))&&Boolean(o?.exec(i))}function Rw(e){let t="";t="string"==typeof e?e:e.text;return t.split(li)}Ge(yw,"isTokenTypeArray"),Ge(gw,"isIMultiModeLexerDefinition"),Ge(Tw,"isTokenTypeDictionary"),Qe(),Ge(vw,"parseJSDoc"),Ge($w,"isJSDoc"),Ge(Rw,"getLines");var bw=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Ew=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function Aw(e){const t=[];let r=e.position.line,n=e.position.character;for(let a=0;a<e.lines.length;a++){const i=0===a,s=a===e.lines.length-1;let u=e.lines[a],c=0;if(i&&e.options.start){const t=e.options.start?.exec(u);t&&(c=t.index+t[0].length)}else{const t=e.options.line?.exec(u);t&&(c=t.index+t[0].length)}if(s){const t=e.options.end?.exec(u);t&&(u=u.substring(0,t.index))}u=u.substring(0,ww(u));if(xw(u,c)>=u.length){if(t.length>0){const e=o.create(r,n);t.push({type:"break",content:"",range:l.create(e,e)})}}else{bw.lastIndex=c;const e=bw.exec(u);if(e){const a=e[0],i=e[1],s=o.create(r,n+c),p=o.create(r,n+c+a.length);t.push({type:"tag",content:i,range:l.create(s,p)}),c+=a.length,c=xw(u,c)}if(c<u.length){const e=u.substring(c),a=Array.from(e.matchAll(Ew));t.push(...Cw(a,e,r,n+c))}}r++,n=0}return t.length>0&&"break"===t[t.length-1].type?t.slice(0,-1):t}function Cw(e,t,r,n){const a=[];if(0===e.length){const e=o.create(r,n),i=o.create(r,n+t.length);a.push({type:"text",content:t,range:l.create(e,i)})}else{let i=0;for(const u of e){const e=u.index,s=t.substring(i,e);s.length>0&&a.push({type:"text",content:t.substring(i,e),range:l.create(o.create(r,i+n),o.create(r,e+n))});let c=s.length+1;const p=u[1];if(a.push({type:"inline-tag",content:p,range:l.create(o.create(r,i+c+n),o.create(r,i+c+p.length+n))}),c+=p.length,4===u.length){c+=u[2].length;const e=u[3];a.push({type:"text",content:e,range:l.create(o.create(r,i+c+n),o.create(r,i+c+e.length+n))})}else a.push({type:"text",content:"",range:l.create(o.create(r,i+c+n),o.create(r,i+c+n))});i=e+u[0].length}const s=t.substring(i);s.length>0&&a.push({type:"text",content:s,range:l.create(o.create(r,i+n),o.create(r,i+n+s.length))})}return a}Ge(Aw,"tokenize"),Ge(Cw,"buildInlineTokens");var Sw=/\S/,kw=/\s*$/;function xw(e,t){const r=e.substring(t).match(Sw);return r?t+r.index:e.length}function ww(e){const t=e.match(kw);if(t&&"number"==typeof t.index)return t.index}function Nw(e){const t=o.create(e.position.line,e.position.character);if(0===e.tokens.length)return new Fw([],l.create(t,t));const r=[];for(;e.index<e.tokens.length;){const t=Iw(e,r[r.length-1]);t&&r.push(t)}const n=r[0]?.range.start??t,a=r[r.length-1]?.range.end??t;return new Fw(r,l.create(n,a))}function Iw(e,t){const r=e.tokens[e.index];return"tag"===r.type?Dw(e,!1):"text"===r.type||"inline-tag"===r.type?Pw(e):(_w(r,t),void e.index++)}function _w(e,t){if(t){const r=new Uw("",e.range);"inlines"in t?t.inlines.push(r):t.content.inlines.push(r)}}function Pw(e){let t=e.tokens[e.index];const r=t;let n=t;const a=[];for(;t&&"break"!==t.type&&"tag"!==t.type;)a.push(Ow(e)),n=t,t=e.tokens[e.index];return new qw(a,l.create(r.range.start,n.range.end))}function Ow(e){return"inline-tag"===e.tokens[e.index].type?Dw(e,!0):Lw(e)}function Dw(e,t){const r=e.tokens[e.index++],n=r.content.substring(1),a=e.tokens[e.index];if("text"===a?.type){if(t){const a=Lw(e);return new Gw(n,new qw([a],a.range),t,l.create(r.range.start,a.range.end))}{const a=Pw(e);return new Gw(n,a,t,l.create(r.range.start,a.range.end))}}{const e=r.range;return new Gw(n,new qw([],e),t,e)}}function Lw(e){const t=e.tokens[e.index++];return new Uw(t.content,t.range)}function Mw(e){if(!e)return Mw({start:"/**",end:"*/",line:"*"});const{start:t,end:r,line:n}=e;return{start:jw(t,!0),end:jw(r,!1),line:jw(n,!0)}}function jw(e,t){if("string"==typeof e||"object"==typeof e){const r="string"==typeof e?yi(e):e.source;return t?new RegExp(`^\\s*${r}`):new RegExp(`\\s*${r}\\s*$`)}return e}Ge(xw,"skipWhitespace"),Ge(ww,"lastCharacter"),Ge(Nw,"parseJSDocComment"),Ge(Iw,"parseJSDocElement"),Ge(_w,"appendEmptyLine"),Ge(Pw,"parseJSDocText"),Ge(Ow,"parseJSDocInline"),Ge(Dw,"parseJSDocTag"),Ge(Lw,"parseJSDocLine"),Ge(Mw,"normalizeOptions"),Ge(jw,"normalizeOption");var Fw=class{static{Ge(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(const t of this.elements)if(0===e.length)e=t.toString();else{const r=t.toString();e+=Bw(e)+r}return e.trim()}toMarkdown(e){let t="";for(const r of this.elements)if(0===t.length)t=r.toMarkdown(e);else{const n=r.toMarkdown(e);t+=Bw(t)+n}return t.trim()}},Gw=class{static{Ge(this,"JSDocTagImpl")}constructor(e,t,r,n){this.name=e,this.content=t,this.inline=r,this.range=n}toString(){let e=`@${this.name}`;const t=this.content.toString();return 1===this.content.inlines.length?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e}\n${t}`),this.inline?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){const t=this.content.toMarkdown(e);if(this.inline){const r=Kw(this.name,t,e??{});if("string"==typeof r)return r}let r="";"italic"===e?.tag||void 0===e?.tag?r="*":"bold"===e?.tag?r="**":"bold-italic"===e?.tag&&(r="***");let n=`${r}@${this.name}${r}`;return 1===this.content.inlines.length?n=`${n} \u2014 ${t}`:this.content.inlines.length>1&&(n=`${n}\n${t}`),this.inline?`{${n}}`:n}};function Kw(e,t,r){if("linkplain"===e||"linkcode"===e||"link"===e){const n=t.indexOf(" ");let a=t;if(n>0){const e=xw(t,n);a=t.substring(e),t=t.substring(0,n)}("linkcode"===e||"link"===e&&"code"===r.link)&&(a=`\`${a}\``);return r.renderLink?.(t,a)??zw(t,a)}}function zw(e,t){try{return gx.parse(e,!0),`[${t}](${e})`}catch{return e}}Ge(Kw,"renderInlineTag"),Ge(zw,"renderLinkDefault");var qw=class{static{Ge(this,"JSDocTextImpl")}constructor(e,t){this.inlines=e,this.range=t}toString(){let e="";for(let t=0;t<this.inlines.length;t++){const 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++){const n=this.inlines[r],a=this.inlines[r+1];t+=n.toMarkdown(e),a&&a.range.start.line>n.range.start.line&&(t+="\n")}return t}},Uw=class{static{Ge(this,"JSDocLineImpl")}constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}};function Bw(e){return e.endsWith("\n")?"\n":"\n\n"}Ge(Bw,"fillNewlines");var Ww,Vw=class{static{Ge(this,"JSDocDocumentationProvider")}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){const t=this.commentProvider.getComment(e);if(t&&$w(t)){return vw(t).toMarkdown({renderLink:Ge((t,r)=>this.documentationLinkRenderer(e,t,r),"renderLink"),renderTag:Ge(t=>this.documentationTagRenderer(e,t),"renderTag")})}}documentationLinkRenderer(e,t,r){const n=this.findNameInLocalSymbols(e,t)??this.findNameInGlobalScope(e,t);if(n&&n.nameSegment){const e=n.nameSegment.range.start.line+1,t=n.nameSegment.range.start.character+1;return`[${r}](${n.documentUri.with({fragment:`L${e},${t}`}).toString()})`}}documentationTagRenderer(e,t){}findNameInLocalSymbols(e,t){const r=cr(e).localSymbols;if(!r)return;let n=e;do{const 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)}},Hw=class{static{Ge(this,"DefaultCommentProvider")}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return zx(e)?e.$comment:_a(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},Yw=class{static{Ge(this,"DefaultAsyncParser")}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},Qw=class{static{Ge(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;){const e=this.createWorker();e.onReady(()=>{if(this.queue.length>0){const t=this.queue.shift();t&&(e.lock(),t.resolve(e))}}),this.workerPool.push(e)}}async parse(e,t){const r=await this.acquireParserWorker(t),n=new ux;let a;const i=t.onCancellationRequested(()=>{a=setTimeout(()=>{this.terminateWorker(r)},this.terminationDelay)});return r.parse(e).then(e=>{const t=this.hydrator.hydrate(e);n.resolve(t)}).catch(e=>{n.reject(e)}).finally(()=>{i.dispose(),clearTimeout(a)}),n.promise}terminateWorker(e){e.terminate();const t=this.workerPool.indexOf(e);t>=0&&this.workerPool.splice(t,1)}async acquireParserWorker(e){this.initializeWorkers();for(const r of this.workerPool)if(r.ready)return r.lock(),r;const t=new ux;return e.onCancellationRequested(()=>{const e=this.queue.indexOf(t);e>=0&&this.queue.splice(e,1),t.reject(ax)}),this.queue.push(t),t.promise}},Zw=class{static{Ge(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,t,r,n){this.onReadyEmitter=new sw.Emitter,this.deferred=new ux,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=n,t(e=>{const t=e;this.deferred.resolve(t),this.unlock()}),r(e=>{this.deferred.reject(e),this.unlock()})}terminate(){this.deferred.reject(ax),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new ux,this.sendMessage(e),this.deferred.promise}},Xw=class{static{Ge(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new Xk.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();const t=rx();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,r=Xk.CancellationToken.None){const n=new ux,a={action:t,deferred:n,cancellationToken:r};return e.push(a),this.performNextOperation(),n.promise}async performNextOperation(){if(!this.done)return;const 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{const n=await Promise.resolve().then(()=>e(r));t.resolve(n)}catch(n){ix(n)?t.resolve(void 0):t.reject(n)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},Jw=class{static{Ge(this,"DefaultHydrator")}constructor(e){this.grammarElementIdMap=new Nx,this.tokenTypeIdMap=new Nx,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){const t=new Map,r=new Map;for(const n of hr(e))t.set(n,{});if(e.$cstNode)for(const n of Ea(e.$cstNode))r.set(n,{});return{astNodes:t,cstNodes:r}}dehydrateAstNode(e,t){const r=t.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,void 0!==e.$cstNode&&(r.$cstNode=this.dehydrateCstNode(e.$cstNode,t));for(const[n,a]of Object.entries(e))if(!n.startsWith("$"))if(Array.isArray(a)){const e=[];r[n]=e;for(const r of a)qt(r)?e.push(this.dehydrateAstNode(r,t)):Ut(r)?e.push(this.dehydrateReference(r,t)):e.push(r)}else qt(a)?r[n]=this.dehydrateAstNode(a,t):Ut(a)?r[n]=this.dehydrateReference(a,t):void 0!==a&&(r[n]=a);return r}dehydrateReference(e,t){const r={};return r.$refText=e.$refText,e.$refNode&&(r.$refNode=t.cstNodes.get(e.$refNode)),r}dehydrateCstNode(e,t){const r=t.cstNodes.get(e);return Zt(e)?r.fullText=e.fullText:r.grammarSource=this.getGrammarElementId(e.grammarSource),r.hidden=e.hidden,r.astNode=t.astNodes.get(e.astNode),Yt(e)?r.content=e.content.map(e=>this.dehydrateCstNode(e,t)):Qt(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){const 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){const t=new Map,r=new Map;for(const a of hr(e))t.set(a,{});let n;if(e.$cstNode)for(const a of Ea(e.$cstNode)){let e;"fullText"in a?(e=new yk(a.fullText),n=e):"content"in a?e=new mk:"tokenType"in a&&(e=this.hydrateCstLeafNode(a)),e&&(r.set(a,e),e.root=n)}return{astNodes:t,cstNodes:r}}hydrateAstNode(e,t){const r=t.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode&&(r.$cstNode=t.cstNodes.get(e.$cstNode));for(const[n,a]of Object.entries(e))if(!n.startsWith("$"))if(Array.isArray(a)){const e=[];r[n]=e;for(const i of a)qt(i)?e.push(this.setParent(this.hydrateAstNode(i,t),r)):Ut(i)?e.push(this.hydrateReference(i,r,n,t)):e.push(i)}else qt(a)?r[n]=this.setParent(this.hydrateAstNode(a,t),r):Ut(a)?r[n]=this.hydrateReference(a,r,n,t):void 0!==a&&(r[n]=a);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){const n=t.cstNodes.get(e);if("number"==typeof e.grammarSource&&(n.grammarSource=this.getGrammarElement(e.grammarSource)),n.astNode=t.astNodes.get(e.astNode),Yt(n))for(const a of e.content){const e=this.hydrateCstNode(a,t,r++);n.content.push(e)}return n}hydrateCstLeafNode(e){const t=this.getTokenType(e.tokenType),r=e.offset,n=e.length,a=e.startLine,i=e.startColumn,s=e.endLine,o=e.endColumn,l=e.hidden;return new fk(r,n,{start:{line:a,character:i},end:{line:s,character:o}},t,l)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return 0===this.grammarElementIdMap.size&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){0===this.grammarElementIdMap.size&&this.createGrammarElementIdMap();return this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(const t of hr(this.grammar))Ar(t)&&this.grammarElementIdMap.set(t,e++)}};function eN(e){return{documentation:{CommentProvider:Ge(e=>new Hw(e),"CommentProvider"),DocumentationProvider:Ge(e=>new Vw(e),"DocumentationProvider")},parser:{AsyncParser:Ge(e=>new Yw(e),"AsyncParser"),GrammarConfig:Ge(e=>as(e),"GrammarConfig"),LangiumParser:Ge(e=>Vk(e),"LangiumParser"),CompletionParser:Ge(e=>Wk(e),"CompletionParser"),ValueConverter:Ge(()=>new Zk,"ValueConverter"),TokenBuilder:Ge(()=>new Qk,"TokenBuilder"),Lexer:Ge(e=>new hw(e),"Lexer"),ParserErrorMessageProvider:Ge(()=>new Ek,"ParserErrorMessageProvider"),LexerErrorMessageProvider:Ge(()=>new fw,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:Ge(()=>new iw,"AstNodeLocator"),AstNodeDescriptionProvider:Ge(e=>new nw(e),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:Ge(e=>new aw(e),"ReferenceDescriptionProvider")},references:{Linker:Ge(e=>new Cx(e),"Linker"),NameProvider:Ge(()=>new kx,"NameProvider"),ScopeProvider:Ge(e=>new Kx(e),"ScopeProvider"),ScopeComputation:Ge(e=>new Ix(e),"ScopeComputation"),References:Ge(e=>new xx(e),"References")},serializer:{Hydrator:Ge(e=>new Jw(e),"Hydrator"),JsonSerializer:Ge(e=>new Wx(e),"JsonSerializer")},validation:{DocumentValidator:Ge(e=>new Jx(e),"DocumentValidator"),ValidationRegistry:Ge(e=>new Zx(e),"ValidationRegistry")},shared:Ge(()=>e.shared,"shared")}}function tN(e){return{ServiceRegistry:Ge(e=>new Vx(e),"ServiceRegistry"),workspace:{LangiumDocuments:Ge(e=>new Ex(e),"LangiumDocuments"),LangiumDocumentFactory:Ge(e=>new bx(e),"LangiumDocumentFactory"),DocumentBuilder:Ge(e=>new cw(e),"DocumentBuilder"),IndexManager:Ge(e=>new pw(e),"IndexManager"),WorkspaceManager:Ge(e=>new dw(e),"WorkspaceManager"),FileSystemProvider:Ge(t=>e.fileSystemProvider(t),"FileSystemProvider"),WorkspaceLock:Ge(()=>new Xw,"WorkspaceLock"),ConfigurationProvider:Ge(e=>new lw(e),"ConfigurationProvider")},profilers:{}}}function rN(e,t,r,n,a,i,s,o,l){return iN([e,t,r,n,a,i,s,o,l].reduce(lN,{}))}Ge(eN,"createDefaultCoreModule"),Ge(tN,"createDefaultSharedCoreModule"),(Ww||(Ww={})).merge=(e,t)=>lN(lN({},e),t),Ge(rN,"inject");var nN=Symbol("isProxy");function aN(e){if(e&&e[nN])for(const t of Object.values(e))aN(t);return e}function iN(e,t){const r=new Proxy({},{deleteProperty:Ge(()=>!1,"deleteProperty"),set:Ge(()=>{throw new Error("Cannot set property on injected service container")},"set"),get:Ge((n,a)=>a===nN||oN(n,a,e,t||r),"get"),getOwnPropertyDescriptor:Ge((n,a)=>(oN(n,a,e,t||r),Object.getOwnPropertyDescriptor(n,a)),"getOwnPropertyDescriptor"),has:Ge((t,r)=>r in e,"has"),ownKeys:Ge(()=>[...Object.getOwnPropertyNames(e)],"ownKeys")});return r}Ge(aN,"eagerLoad"),Ge(iN,"_inject");var sN=Symbol();function oN(e,t,r,n){if(t in e){if(e[t]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+e[t]);if(e[t]===sN)throw new 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){const i=r[t];e[t]=sN;try{e[t]="function"==typeof i?i(n):iN(i,n)}catch(a){throw e[t]=a instanceof Error?a:void 0,a}return e[t]}}function lN(e,t){if(t)for(const[r,n]of Object.entries(t))if(null!=n)if("object"==typeof n){const t=e[r];e[r]=lN("object"==typeof t&&null!==t?t:{},n)}else e[r]=n;return e}Ge(oN,"_resolve"),Ge(lN,"_merge");var uN,cN,pN={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]};(cN=uN||(uN={})).REGULAR="indentation-sensitive",cN.IGNORE_INDENTATION="ignore-indentation";var dN=class extends Qk{static{Ge(this,"IndentationAwareTokenBuilder")}constructor(e=pN){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...pN,...e},this.indentTokenType=Mg({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=Mg({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,t){const r=super.buildTokens(e,t);if(!yw(r))throw new Error("Invalid tokens built by default builder");const{indentTokenName:n,dedentTokenName:a,whitespaceTokenName:i,ignoreIndentationDelimiters:s}=this.options;let o,l,u;const c=[];for(const p of r){for(const[e,t]of s)p.name===e?p.PUSH_MODE=uN.IGNORE_INDENTATION:p.name===t&&(p.POP_MODE=!0);p.name===a?o=p:p.name===n?l=p:p.name===i?u=p:c.push(p)}if(!o||!l||!u)throw new Error("Some indentation/whitespace tokens not found!");if(s.length>0){return{modes:{[uN.REGULAR]:[o,l,...c,u],[uN.IGNORE_INDENTATION]:[...c,u]},defaultMode:uN.REGULAR}}return[o,l,u,...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;const a=this.whitespaceRegExp.exec(e);return{currIndentLevel:a?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:a}}createIndentationTokenInstance(e,t,r,n){const a=this.getLineNumber(t,n);return Gg(e,r,n,n+r.length,a,a,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;const{currIndentLevel:a,prevIndentLevel:i,match:s}=this.matchWhitespace(e,t,r,n);return a<=i?null:(this.indentationStack.push(a),s)}dedentMatcher(e,t,r,n){if(!this.isStartOfLine(e,t))return null;const{currIndentLevel:a,prevIndentLevel:i,match:s}=this.matchWhitespace(e,t,r,n);if(a>=i)return null;const o=this.indentationStack.lastIndexOf(a);if(-1===o)return this.diagnostics.push({severity:"error",message:`Invalid dedent level ${a} at offset: ${t}. Current indentation stack: ${this.indentationStack}`,offset:t,length:s?.[0]?.length??0,line:this.getLineNumber(e,t),column:1}),null;const l=this.indentationStack.length-o-1,u=e.substring(0,t).match(/[\r\n]+$/)?.[0].length??1;for(let c=0;c<l;c++){const n=this.createIndentationTokenInstance(this.dedentTokenType,e,"",t-(u-1));r.push(n),this.indentationStack.pop()}return null}buildTerminalToken(e){const t=super.buildTerminalToken(e),{indentTokenName:r,dedentTokenName:n,whitespaceTokenName:a}=this.options;return t.name===r?this.indentTokenType:t.name===n?this.dedentTokenType:t.name===a?Mg({name:a,pattern:this.whitespaceRegExp,group:Sg.SKIPPED}):t}flushRemainingDedents(e){const t=[];for(;this.indentationStack.length>1;)t.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],t}},fN=class extends hw{static{Ge(this,"IndentationAwareLexer")}constructor(e){if(super(e),!(e.parser.TokenBuilder instanceof dN))throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder");this.indentationTokenBuilder=e.parser.TokenBuilder}tokenize(e,t=mw){const r=super.tokenize(e),n=r.report;"full"===t?.mode&&r.tokens.push(...n.remainingDedents),n.remainingDedents=[];const{indentTokenType:a,dedentTokenType:i}=this.indentationTokenBuilder,s=a.tokenTypeIdx,o=i.tokenTypeIdx,l=[],u=r.tokens.length-1;for(let c=0;c<u;c++){const e=r.tokens[c],t=r.tokens[c+1];e.tokenTypeIdx!==s||t.tokenTypeIdx!==o?l.push(e):c++}return u>=0&&l.push(r.tokens[u]),r.tokens=l,r}},mN={};ze(mN,{AstUtils:()=>sr,BiMap:()=>Nx,Cancellation:()=>Xk,ContextCache:()=>jx,CstUtils:()=>zt,DONE_RESULT:()=>rr,Deferred:()=>ux,Disposable:()=>ow,DisposableCache:()=>Lx,DocumentCache:()=>Fx,EMPTY_STREAM:()=>tr,ErrorWithLocation:()=>Ua,GrammarUtils:()=>qa,MultiMap:()=>wx,OperationCancelled:()=>ax,Reduction:()=>ar,RegExpUtils:()=>Va,SimpleCache:()=>Mx,StreamImpl:()=>Xt,TreeStreamImpl:()=>ir,URI:()=>gx,UriTrie:()=>Rx,UriUtils:()=>yx,WorkspaceCache:()=>Gx,assertCondition:()=>Wa,assertUnreachable:()=>Ba,delayNextTick:()=>Jk,interruptAndCheck:()=>sx,isOperationCancelled:()=>ix,loadGrammarFromJson:()=>$N,setInterruptionPeriod:()=>nx,startCancelableOperation:()=>rx,stream:()=>nr}),Ue(mN,sw);var hN=class{static{Ge(this,"EmptyFileSystemProvider")}stat(e){throw new Error("No file system is available.")}statSync(e){throw new Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw new Error("No file system is available.")}readBinarySync(){throw new Error("No file system is available.")}readFile(){throw new Error("No file system is available.")}readFileSync(){throw new Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},yN={fileSystemProvider:Ge(()=>new hN,"fileSystemProvider")},gN={Grammar:Ge(()=>{},"Grammar"),LanguageMetaData:Ge(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},TN={AstReflection:Ge(()=>new $a,"AstReflection")};function vN(){const e=rN(tN(yN),TN),t=rN(eN({shared:e}),gN);return e.ServiceRegistry.register(t),t}function $N(e){const t=vN(),r=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(r,gx.parse(`memory:/${r.name??"grammar"}.langium`)),r}Ge(vN,"createMinimalGrammarServices"),Ge($N,"loadGrammarFromJson"),Ue(Kt,mN);var RN,bN,EN,AN,CN,SN,kN,xN,wN,NN,IN,_N,PN,ON,DN,LN=class{static{Ge(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 wx}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 new Error(`Category "${e}" is not active.`);return console.log(`Creating profiling task for '${e}.${t}'.`),new MN(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()}`);const r=[];for(const i of t.entries.keys()){const e=t.entries.get(i),n=e.reduce((e,t)=>e+t);r.push({name:`${t.identifier}.${i}`,count:e.length,duration:n})}const n=t.duration-r.map(e=>e.duration).reduce((e,t)=>e+t,0);function a(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),Ge(a,"Round"),console.table(r.map(e=>({Element:e.name,Count:e.count,"Self %":a(100*e.duration/t.duration),"Time (ms)":a(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])}},MN=class{static{Ge(this,"ProfilingTask")}constructor(e,t){this.stack=[],this.entries=new wx,this.addRecord=e,this.identifier=t}start(){if(void 0!==this.startTime)throw new Error(`Task "${this.identifier}" is already started.`);this.startTime=performance.now()}stop(){if(void 0===this.startTime)throw new Error(`Task "${this.identifier}" was not started.`);if(0!==this.stack.length)throw new Error(`Task "${this.identifier}" cannot be stopped before sub-task(s): ${this.stack.map(e=>e.id).join(", ")}.`);const 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){const t=this.stack.pop();if(!t)throw new Error(`Task "${this.identifier}.${e}" was not started.`);if(t.id!==e)throw new Error(`Sub-Task "${t.id}" is not already stopped.`);const r=performance.now()-t.start;void 0!==this.stack.at(-1)&&(this.stack[this.stack.length-1].content+=r);const n=r-t.content;this.entries.add(e,n)}};(RN||(RN={})).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 ]+)\]/},(bN||(bN={})).Terminals={DOMAIN_NAME:/complex|complicated|clear|chaotic|confusion/,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]*/},(EN||(EN={})).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]*/},(AN||(AN={})).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])?/},(CN||(CN={})).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]*/},(SN||(SN={})).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]*/},(kN||(kN={})).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]*/},(xN||(xN={})).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]*/},(wN||(wN={})).Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ABNF_RULENAME:/[A-Za-z][A-Za-z0-9-]*/,ABNF_STRING:/"[^"]*"/,ABNF_NUMVAL:/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\.[0-9A-Fa-f]+)*/,ABNF_REPEAT:/[0-9]*\*[0-9]*/,ABNF_EXACT_REPEAT:/[0-9]+/,ABNF_WHITESPACE:/[\t \r\n]+/,ABNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,ABNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,ABNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ABNF_COMMENT:/;[^\n\r]*/},(NN||(NN={})).Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EBNF_ID:/[A-Z_a-z][\w-]*/,EBNF_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,EBNF_SPECIAL_SEQUENCE:/\?(?=[^?;]*[^?\s;][^?;]*\?)[^?;]*\?/,EBNF_WHITESPACE:/[\t \r\n]+/,EBNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EBNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EBNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EBNF_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//,EBNF_ISO_COMMENT:/\(\*[\s\S]*?\*\)/},(IN||(IN={})).Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,RR_ID:/[A-Z_a-z][\w-]*/,RR_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,RR_WHITESPACE:/[\t \r\n]+/,RR_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,RR_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,RR_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,RR_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//},(_N||(_N={})).Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,PEG_ID:/[A-Z_a-z][\w-]*/,PEG_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,PEG_WHITESPACE:/[\t \r\n]+/,PEG_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,PEG_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,PEG_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,PEG_LINE_COMMENT:/#[^\n\r]*/},(PN||(PN={})).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:/"[^"]*"|'[^']*'/},(ON||(ON={})).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]*|)/,CLASS_ANNOTATION:/[ \t]+:::[ \t]*[A-Za-z_][\w-]*/,ICON_ANNOTATION:/[ \t]+icon\([\w-]*(?::[\w-]+)?\)/,DESC_ANNOTATION:/[ \t]+##[^\n\r]*/,INDENTATION:/[ \t]{1,}/,QUOTED_NAME:/"[^"]*"|'[^']*'/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,BARE_NAME:/(?!:::|icon\(|##)[^ \t\n\r"'](?:(?![ \t]+:::[ \t]*[A-Za-z_]|[ \t]+icon\(|[ \t]+##)[^\n\r])*/},(DN||(DN={})).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]*/};RN.Terminals,bN.Terminals,EN.Terminals,AN.Terminals,CN.Terminals,SN.Terminals,kN.Terminals,xN.Terminals,wN.Terminals,NN.Terminals,IN.Terminals,_N.Terminals,ON.Terminals,PN.Terminals,DN.Terminals;var jN="AbnfAlternation",FN="alternatives",GN="AbnfConcatenation",KN="elements",zN="AbnfElement",qN="primary",UN="repeat",BN="AbnfGroup",WN="element",VN="AbnfNumVal",HN="value",YN="AbnfOptionalGroup",QN="element",ZN="AbnfPrimary",XN="AbnfRule",JN="definition",eI="name",tI="AbnfRuleName",rI="name",nI="AbnfStringLiteral",aI="value",iI="Accelerator",sI="name",oI="x",lI="y",uI="Alignment",cI="direction",pI="members",dI="Anchor",fI="evolution",mI="name",hI="visibility",yI="Annotation",gI="number",TI="text",vI="x",$I="y",RI="Annotations",bI="x",EI="y",AI="Architecture",CI="accDescr",SI="accTitle",kI="alignments",xI="edges",wI="groups",NI="junctions",II="services",_I="title";Ge(function(e){return bj.isInstance(e,AI)},"isArchitecture");var PI="Axis",OI="label",DI="name",LI="Branch",MI="name",jI="order";Ge(function(e){return bj.isInstance(e,LI)},"isBranch");var FI="Checkout",GI="branch",KI="CherryPicking",zI="id",qI="parent",UI="tags",BI="ClassDefStatement",WI="className",VI="styleText",HI="Commit",YI="id",QI="message",ZI="tags",XI="type";Ge(function(e){return bj.isInstance(e,HI)},"isCommit");var JI="Common",e_="accDescr",t_="accTitle",r_="title",n_="Component",a_="decorator",i_="evolution",s_="inertia",o_="label",l_="name",u_="visibility",c_="Curve",p_="entries",d_="label",f_="name",m_="Cynefin",h_="accDescr",y_="accTitle",g_="domains",T_="title",v_="transitions";Ge(function(e){return bj.isInstance(e,m_)},"isCynefin");var $_="Deaccelerator",R_="name",b_="x",E_="y",A_="Decorator",C_="strategy",S_="Direction",k_="accDescr",x_="accTitle",w_="dir",N_="statements",I_="title",__="DomainBlock",P_="domain",O_="items";Ge(function(e){return bj.isInstance(e,__)},"isDomainBlock");var D_="DomainItem",L_="label";Ge(function(e){return bj.isInstance(e,D_)},"isDomainItem");var M_="EbnfChoice",j_="alternatives",F_="EbnfExceptionPostfix",G_="except",K_="EbnfGroup",z_="element",q_="EbnfNonTerminal",U_="name",B_="EbnfOneOrMorePostfix",W_="operator",V_="EbnfOptional",H_="element",Y_="EbnfOptionalPostfix",Q_="operator",Z_="EbnfPostfix",X_="EbnfPrimary",J_="EbnfRepetition",eP="element",tP="EbnfRule",rP="definition",nP="name",aP="EbnfSequence",iP="elements",sP="EbnfSpecial",oP="text",lP="EbnfTerm",uP="base",cP="postfixes",pP="EbnfTerminal",dP="value",fP="EbnfZeroOrMorePostfix",mP="operator",hP="Edge",yP="lhsDir",gP="lhsGroup",TP="lhsId",vP="lhsInto",$P="rhsDir",RP="rhsGroup",bP="rhsId",EP="rhsInto",AP="title",CP="EmDataEntity",SP="dataBlockValue",kP="dataType",xP="name",wP="EmFrame",NP="EmGwt",IP="givenStatements",_P="sourceFrame",PP="thenStatements",OP="whenStatements",DP="EmGwtStatement",LP="entityIdentifier",MP="EmModelEntity",jP="name";Ge(function(e){return"rmo"===e||"readmodel"===e||"ui"===e||"cmd"===e||"command"===e||"evt"===e||"event"===e||"pcr"===e||"processor"===e},"isEmModelEntityType");var FP="EmNoteEntity",GP="dataBlockValue",KP="dataType",zP="sourceFrame",qP="EmResetFrame",UP="dataInlineValue",BP="dataReference",WP="dataType",VP="entityIdentifier",HP="modelEntityType",YP="name",QP="sourceFrames";function ZP(e){return bj.isInstance(e,qP)}Ge(ZP,"isEmResetFrame");var XP="EmTimeFrame",JP="dataInlineValue",eO="dataReference",tO="dataType",rO="entityIdentifier",nO="modelEntityType",aO="name",iO="sourceFrames",sO="Entry",oO="axis",lO="value",uO="EventModel",cO="accDescr",pO="accTitle",dO="dataEntities",fO="frames",mO="gwtEntities",hO="modelEntities",yO="noteEntities",gO="title",TO="Evolution",vO="stages",$O="EvolutionStage",RO="boundary",bO="name",EO="secondName",AO="Evolve",CO="component",SO="target",kO="GitGraph",xO="accDescr",wO="accTitle",NO="statements",IO="title";Ge(function(e){return bj.isInstance(e,kO)},"isGitGraph");var _O="Group",PO="icon",OO="id",DO="in",LO="title",MO="Info",jO="accDescr",FO="accTitle",GO="title";Ge(function(e){return bj.isInstance(e,MO)},"isInfo");var KO="Item",zO="classSelector",qO="name",UO="Junction",BO="id",WO="in",VO="Label",HO="negX",YO="negY",QO="offsetX",ZO="offsetY",XO="Leaf",JO="classSelector",eD="name",tD="value",rD="Link",nD="arrow",aD="from",iD="fromPort",sD="linkLabel",oD="to",lD="toPort",uD="Merge",cD="branch",pD="id",dD="tags",fD="type";Ge(function(e){return bj.isInstance(e,uD)},"isMerge");var mD="Note",hD="evolution",yD="text",gD="visibility",TD="Option",vD="name",$D="value",RD="Packet",bD="accDescr",ED="accTitle",AD="blocks",CD="title";Ge(function(e){return bj.isInstance(e,RD)},"isPacket");var SD="PacketBlock",kD="bits",xD="end",wD="label",ND="start";Ge(function(e){return bj.isInstance(e,SD)},"isPacketBlock");var ID="PegAny",_D="dot",PD="PegGroup",OD="element",DD="PegIdentifier",LD="name",MD="PegLiteral",jD="value",FD="PegOrderedChoice",GD="alternatives",KD="PegPrefix",zD="operator",qD="suffix",UD="PegPrimary",BD="PegRule",WD="definition",VD="name",HD="PegSequence",YD="elements",QD="PegSuffix",ZD="operator",XD="primary",JD="Pie",eL="accDescr",tL="accTitle",rL="sections",nL="showData",aL="title";Ge(function(e){return bj.isInstance(e,JD)},"isPie");var iL="PieSection",sL="label",oL="value";Ge(function(e){return bj.isInstance(e,iL)},"isPieSection");var lL="Pipeline",uL="components",cL="parent",pL="PipelineComponent",dL="evolution",fL="label",mL="name",hL="Radar",yL="accDescr",gL="accTitle",TL="axes",vL="curves",$L="options",RL="title",bL="Railroad",EL="accDescr",AL="accTitle",CL="rules",SL="title";Ge(function(e){return bj.isInstance(e,bL)},"isRailroad");var kL="RailroadAbnf",xL="accDescr",wL="accTitle",NL="rules",IL="title";Ge(function(e){return bj.isInstance(e,kL)},"isRailroadAbnf");var _L="RailroadChoiceExpr",PL="alternatives",OL="RailroadEbnf",DL="accDescr",LL="accTitle",ML="rules",jL="title";Ge(function(e){return bj.isInstance(e,OL)},"isRailroadEbnf");var FL="RailroadExpression",GL="RailroadNonTerminalExpr",KL="name",zL="RailroadOneOrMoreExpr",qL="element",UL="RailroadOptionalExpr",BL="element",WL="RailroadPeg",VL="accDescr",HL="accTitle",YL="rules",QL="title";Ge(function(e){return bj.isInstance(e,WL)},"isRailroadPeg");var ZL="RailroadRule",XL="definition",JL="name",eM="RailroadSequenceExpr",tM="elements",rM="RailroadSpecialExpr",nM="text",aM="RailroadTerminalExpr",iM="value",sM="RailroadZeroOrMoreExpr",oM="element",lM="Section",uM="classSelector",cM="name",pM="Service",dM="icon",fM="iconText",mM="id",hM="in",yM="title",gM="Size",TM="height",vM="width",$M="Statement",RM="Transition",bM="from",EM="label",AM="to";Ge(function(e){return bj.isInstance(e,RM)},"isTransition");var CM="Treemap",SM="accDescr",kM="accTitle",xM="title",wM="TreemapRows";Ge(function(e){return bj.isInstance(e,CM)},"isTreemap");var NM="TreemapRow",IM="indent",_M="item",PM="TreeNode",OM="classAnnotation",DM="descAnnotation",LM="iconAnnotation",MM="indent",jM="name",FM="TreeView",GM="accDescr",KM="accTitle",zM="nodes",qM="title",UM="Wardley",BM="accDescr",WM="accelerators",VM="accTitle",HM="anchors",YM="annotation",QM="annotations",ZM="components",XM="deaccelerators",JM="evolution",ej="evolves",tj="links",rj="notes",nj="pipelines",aj="size",ij="title";Ge(function(e){return bj.isInstance(e,UM)},"isWardley");var sj,oj,lj,uj,cj,pj,dj,fj,mj,hj,yj,gj,Tj,vj,$j,Rj=class extends Ht{constructor(){super(...arguments),this.types={AbnfAlternation:{name:jN,properties:{alternatives:{name:FN,defaultValue:[]}},superTypes:[]},AbnfConcatenation:{name:GN,properties:{elements:{name:KN,defaultValue:[]}},superTypes:[]},AbnfElement:{name:zN,properties:{primary:{name:qN},repeat:{name:UN}},superTypes:[]},AbnfGroup:{name:BN,properties:{element:{name:WN}},superTypes:[ZN]},AbnfNumVal:{name:VN,properties:{value:{name:HN}},superTypes:[ZN]},AbnfOptionalGroup:{name:YN,properties:{element:{name:QN}},superTypes:[ZN]},AbnfPrimary:{name:ZN,properties:{},superTypes:[]},AbnfRule:{name:XN,properties:{definition:{name:JN},name:{name:eI}},superTypes:[]},AbnfRuleName:{name:tI,properties:{name:{name:rI}},superTypes:[ZN]},AbnfStringLiteral:{name:nI,properties:{value:{name:aI}},superTypes:[ZN]},Accelerator:{name:iI,properties:{name:{name:sI},x:{name:oI},y:{name:lI}},superTypes:[]},Alignment:{name:uI,properties:{direction:{name:cI},members:{name:pI,defaultValue:[]}},superTypes:[]},Anchor:{name:dI,properties:{evolution:{name:fI},name:{name:mI},visibility:{name:hI}},superTypes:[]},Annotation:{name:yI,properties:{number:{name:gI},text:{name:TI},x:{name:vI},y:{name:$I}},superTypes:[]},Annotations:{name:RI,properties:{x:{name:bI},y:{name:EI}},superTypes:[]},Architecture:{name:AI,properties:{accDescr:{name:CI},accTitle:{name:SI},alignments:{name:kI,defaultValue:[]},edges:{name:xI,defaultValue:[]},groups:{name:wI,defaultValue:[]},junctions:{name:NI,defaultValue:[]},services:{name:II,defaultValue:[]},title:{name:_I}},superTypes:[]},Axis:{name:PI,properties:{label:{name:OI},name:{name:DI}},superTypes:[]},Branch:{name:LI,properties:{name:{name:MI},order:{name:jI}},superTypes:[$M]},Checkout:{name:FI,properties:{branch:{name:GI}},superTypes:[$M]},CherryPicking:{name:KI,properties:{id:{name:zI},parent:{name:qI},tags:{name:UI,defaultValue:[]}},superTypes:[$M]},ClassDefStatement:{name:BI,properties:{className:{name:WI},styleText:{name:VI}},superTypes:[]},Commit:{name:HI,properties:{id:{name:YI},message:{name:QI},tags:{name:ZI,defaultValue:[]},type:{name:XI}},superTypes:[$M]},Common:{name:JI,properties:{accDescr:{name:e_},accTitle:{name:t_},title:{name:r_}},superTypes:[]},Component:{name:n_,properties:{decorator:{name:a_},evolution:{name:i_},inertia:{name:s_,defaultValue:!1},label:{name:o_},name:{name:l_},visibility:{name:u_}},superTypes:[]},Curve:{name:c_,properties:{entries:{name:p_,defaultValue:[]},label:{name:d_},name:{name:f_}},superTypes:[]},Cynefin:{name:m_,properties:{accDescr:{name:h_},accTitle:{name:y_},domains:{name:g_,defaultValue:[]},title:{name:T_},transitions:{name:v_,defaultValue:[]}},superTypes:[]},Deaccelerator:{name:$_,properties:{name:{name:R_},x:{name:b_},y:{name:E_}},superTypes:[]},Decorator:{name:A_,properties:{strategy:{name:C_}},superTypes:[]},Direction:{name:S_,properties:{accDescr:{name:k_},accTitle:{name:x_},dir:{name:w_},statements:{name:N_,defaultValue:[]},title:{name:I_}},superTypes:[kO]},DomainBlock:{name:__,properties:{domain:{name:P_},items:{name:O_,defaultValue:[]}},superTypes:[]},DomainItem:{name:D_,properties:{label:{name:L_}},superTypes:[]},EbnfChoice:{name:M_,properties:{alternatives:{name:j_,defaultValue:[]}},superTypes:[]},EbnfExceptionPostfix:{name:F_,properties:{except:{name:G_}},superTypes:[Z_]},EbnfGroup:{name:K_,properties:{element:{name:z_}},superTypes:[X_]},EbnfNonTerminal:{name:q_,properties:{name:{name:U_}},superTypes:[X_]},EbnfOneOrMorePostfix:{name:B_,properties:{operator:{name:W_}},superTypes:[Z_]},EbnfOptional:{name:V_,properties:{element:{name:H_}},superTypes:[X_]},EbnfOptionalPostfix:{name:Y_,properties:{operator:{name:Q_}},superTypes:[Z_]},EbnfPostfix:{name:Z_,properties:{},superTypes:[]},EbnfPrimary:{name:X_,properties:{},superTypes:[]},EbnfRepetition:{name:J_,properties:{element:{name:eP}},superTypes:[X_]},EbnfRule:{name:tP,properties:{definition:{name:rP},name:{name:nP}},superTypes:[]},EbnfSequence:{name:aP,properties:{elements:{name:iP,defaultValue:[]}},superTypes:[]},EbnfSpecial:{name:sP,properties:{text:{name:oP}},superTypes:[X_]},EbnfTerm:{name:lP,properties:{base:{name:uP},postfixes:{name:cP,defaultValue:[]}},superTypes:[]},EbnfTerminal:{name:pP,properties:{value:{name:dP}},superTypes:[X_]},EbnfZeroOrMorePostfix:{name:fP,properties:{operator:{name:mP}},superTypes:[Z_]},Edge:{name:hP,properties:{lhsDir:{name:yP},lhsGroup:{name:gP,defaultValue:!1},lhsId:{name:TP},lhsInto:{name:vP,defaultValue:!1},rhsDir:{name:$P},rhsGroup:{name:RP,defaultValue:!1},rhsId:{name:bP},rhsInto:{name:EP,defaultValue:!1},title:{name:AP}},superTypes:[]},EmDataEntity:{name:CP,properties:{dataBlockValue:{name:SP},dataType:{name:kP},name:{name:xP}},superTypes:[]},EmFrame:{name:wP,properties:{},superTypes:[]},EmGwt:{name:NP,properties:{givenStatements:{name:IP,defaultValue:[]},sourceFrame:{name:_P,referenceType:wP},thenStatements:{name:PP,defaultValue:[]},whenStatements:{name:OP,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:DP,properties:{entityIdentifier:{name:LP,referenceType:MP}},superTypes:[]},EmModelEntity:{name:MP,properties:{name:{name:jP}},superTypes:[]},EmNoteEntity:{name:FP,properties:{dataBlockValue:{name:GP},dataType:{name:KP},sourceFrame:{name:zP,referenceType:wP}},superTypes:[]},EmResetFrame:{name:qP,properties:{dataInlineValue:{name:UP},dataReference:{name:BP,referenceType:CP},dataType:{name:WP},entityIdentifier:{name:VP},modelEntityType:{name:HP},name:{name:YP},sourceFrames:{name:QP,defaultValue:[],referenceType:wP}},superTypes:[wP]},EmTimeFrame:{name:XP,properties:{dataInlineValue:{name:JP},dataReference:{name:eO,referenceType:CP},dataType:{name:tO},entityIdentifier:{name:rO},modelEntityType:{name:nO},name:{name:aO},sourceFrames:{name:iO,defaultValue:[],referenceType:wP}},superTypes:[wP]},Entry:{name:sO,properties:{axis:{name:oO,referenceType:PI},value:{name:lO}},superTypes:[]},EventModel:{name:uO,properties:{accDescr:{name:cO},accTitle:{name:pO},dataEntities:{name:dO,defaultValue:[]},frames:{name:fO,defaultValue:[]},gwtEntities:{name:mO,defaultValue:[]},modelEntities:{name:hO,defaultValue:[]},noteEntities:{name:yO,defaultValue:[]},title:{name:gO}},superTypes:[]},Evolution:{name:TO,properties:{stages:{name:vO,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:$O,properties:{boundary:{name:RO},name:{name:bO},secondName:{name:EO}},superTypes:[]},Evolve:{name:AO,properties:{component:{name:CO},target:{name:SO}},superTypes:[]},GitGraph:{name:kO,properties:{accDescr:{name:xO},accTitle:{name:wO},statements:{name:NO,defaultValue:[]},title:{name:IO}},superTypes:[]},Group:{name:_O,properties:{icon:{name:PO},id:{name:OO},in:{name:DO},title:{name:LO}},superTypes:[]},Info:{name:MO,properties:{accDescr:{name:jO},accTitle:{name:FO},title:{name:GO}},superTypes:[]},Item:{name:KO,properties:{classSelector:{name:zO},name:{name:qO}},superTypes:[]},Junction:{name:UO,properties:{id:{name:BO},in:{name:WO}},superTypes:[]},Label:{name:VO,properties:{negX:{name:HO,defaultValue:!1},negY:{name:YO,defaultValue:!1},offsetX:{name:QO},offsetY:{name:ZO}},superTypes:[]},Leaf:{name:XO,properties:{classSelector:{name:JO},name:{name:eD},value:{name:tD}},superTypes:[KO]},Link:{name:rD,properties:{arrow:{name:nD},from:{name:aD},fromPort:{name:iD},linkLabel:{name:sD},to:{name:oD},toPort:{name:lD}},superTypes:[]},Merge:{name:uD,properties:{branch:{name:cD},id:{name:pD},tags:{name:dD,defaultValue:[]},type:{name:fD}},superTypes:[$M]},Note:{name:mD,properties:{evolution:{name:hD},text:{name:yD},visibility:{name:gD}},superTypes:[]},Option:{name:TD,properties:{name:{name:vD},value:{name:$D,defaultValue:!1}},superTypes:[]},Packet:{name:RD,properties:{accDescr:{name:bD},accTitle:{name:ED},blocks:{name:AD,defaultValue:[]},title:{name:CD}},superTypes:[]},PacketBlock:{name:SD,properties:{bits:{name:kD},end:{name:xD},label:{name:wD},start:{name:ND}},superTypes:[]},PegAny:{name:ID,properties:{dot:{name:_D}},superTypes:[UD]},PegGroup:{name:PD,properties:{element:{name:OD}},superTypes:[UD]},PegIdentifier:{name:DD,properties:{name:{name:LD}},superTypes:[UD]},PegLiteral:{name:MD,properties:{value:{name:jD}},superTypes:[UD]},PegOrderedChoice:{name:FD,properties:{alternatives:{name:GD,defaultValue:[]}},superTypes:[]},PegPrefix:{name:KD,properties:{operator:{name:zD},suffix:{name:qD}},superTypes:[]},PegPrimary:{name:UD,properties:{},superTypes:[]},PegRule:{name:BD,properties:{definition:{name:WD},name:{name:VD}},superTypes:[]},PegSequence:{name:HD,properties:{elements:{name:YD,defaultValue:[]}},superTypes:[]},PegSuffix:{name:QD,properties:{operator:{name:ZD},primary:{name:XD}},superTypes:[]},Pie:{name:JD,properties:{accDescr:{name:eL},accTitle:{name:tL},sections:{name:rL,defaultValue:[]},showData:{name:nL,defaultValue:!1},title:{name:aL}},superTypes:[]},PieSection:{name:iL,properties:{label:{name:sL},value:{name:oL}},superTypes:[]},Pipeline:{name:lL,properties:{components:{name:uL,defaultValue:[]},parent:{name:cL}},superTypes:[]},PipelineComponent:{name:pL,properties:{evolution:{name:dL},label:{name:fL},name:{name:mL}},superTypes:[]},Radar:{name:hL,properties:{accDescr:{name:yL},accTitle:{name:gL},axes:{name:TL,defaultValue:[]},curves:{name:vL,defaultValue:[]},options:{name:$L,defaultValue:[]},title:{name:RL}},superTypes:[]},Railroad:{name:bL,properties:{accDescr:{name:EL},accTitle:{name:AL},rules:{name:CL,defaultValue:[]},title:{name:SL}},superTypes:[]},RailroadAbnf:{name:kL,properties:{accDescr:{name:xL},accTitle:{name:wL},rules:{name:NL,defaultValue:[]},title:{name:IL}},superTypes:[]},RailroadChoiceExpr:{name:_L,properties:{alternatives:{name:PL,defaultValue:[]}},superTypes:[FL]},RailroadEbnf:{name:OL,properties:{accDescr:{name:DL},accTitle:{name:LL},rules:{name:ML,defaultValue:[]},title:{name:jL}},superTypes:[]},RailroadExpression:{name:FL,properties:{},superTypes:[]},RailroadNonTerminalExpr:{name:GL,properties:{name:{name:KL}},superTypes:[FL]},RailroadOneOrMoreExpr:{name:zL,properties:{element:{name:qL}},superTypes:[FL]},RailroadOptionalExpr:{name:UL,properties:{element:{name:BL}},superTypes:[FL]},RailroadPeg:{name:WL,properties:{accDescr:{name:VL},accTitle:{name:HL},rules:{name:YL,defaultValue:[]},title:{name:QL}},superTypes:[]},RailroadRule:{name:ZL,properties:{definition:{name:XL},name:{name:JL}},superTypes:[]},RailroadSequenceExpr:{name:eM,properties:{elements:{name:tM,defaultValue:[]}},superTypes:[FL]},RailroadSpecialExpr:{name:rM,properties:{text:{name:nM}},superTypes:[FL]},RailroadTerminalExpr:{name:aM,properties:{value:{name:iM}},superTypes:[FL]},RailroadZeroOrMoreExpr:{name:sM,properties:{element:{name:oM}},superTypes:[FL]},Section:{name:lM,properties:{classSelector:{name:uM},name:{name:cM}},superTypes:[KO]},Service:{name:pM,properties:{icon:{name:dM},iconText:{name:fM},id:{name:mM},in:{name:hM},title:{name:yM}},superTypes:[]},Size:{name:gM,properties:{height:{name:TM},width:{name:vM}},superTypes:[]},Statement:{name:$M,properties:{},superTypes:[]},Transition:{name:RM,properties:{from:{name:bM},label:{name:EM},to:{name:AM}},superTypes:[]},TreeNode:{name:PM,properties:{classAnnotation:{name:OM},descAnnotation:{name:DM},iconAnnotation:{name:LM},indent:{name:MM},name:{name:jM}},superTypes:[]},TreeView:{name:FM,properties:{accDescr:{name:GM},accTitle:{name:KM},nodes:{name:zM,defaultValue:[]},title:{name:qM}},superTypes:[]},Treemap:{name:CM,properties:{accDescr:{name:SM},accTitle:{name:kM},title:{name:xM},TreemapRows:{name:wM,defaultValue:[]}},superTypes:[]},TreemapRow:{name:NM,properties:{indent:{name:IM},item:{name:_M}},superTypes:[]},Wardley:{name:UM,properties:{accDescr:{name:BM},accelerators:{name:WM,defaultValue:[]},accTitle:{name:VM},anchors:{name:HM,defaultValue:[]},annotation:{name:YM,defaultValue:[]},annotations:{name:QM,defaultValue:[]},components:{name:ZM,defaultValue:[]},deaccelerators:{name:XM,defaultValue:[]},evolution:{name:JM},evolves:{name:ej,defaultValue:[]},links:{name:tj,defaultValue:[]},notes:{name:rj,defaultValue:[]},pipelines:{name:nj,defaultValue:[]},size:{name:aj},title:{name:ij}},superTypes:[]}}}static{Ge(this,"MermaidAstReflection")}},bj=new Rj,Ej=Ge(()=>sj??(sj=$N('{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"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":[]}},{"$type":"Assignment","feature":"alignments","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"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@10"},"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@10"},"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@12"},"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@30"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"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@23"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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@23"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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@23"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Alignment","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"align"},{"$type":"Assignment","feature":"direction","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"row"},{"$type":"Keyword","value":"column"}]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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@24"},"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@16"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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@19"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@20"},"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"),Aj=Ge(()=>oj??(oj=$N('{"$type":"Grammar","isDeclared":true,"name":"CynefinGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Cynefin","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"cynefin-beta"},{"$type":"Keyword","value":"cynefin-beta:"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"domains","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"transitions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"domain","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Assignment","feature":"items","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainItem","definition":{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Transition","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":"--\x3e"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"DOMAIN_NAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complex"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complicated"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"clear"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"chaotic"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"confusion"},"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":[]}')),"CynefinGrammarGrammar"),Cj=Ge(()=>lj??(lj=$N('{"$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"),Sj=Ge(()=>uj??(uj=$N('{"$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"),kj=Ge(()=>cj??(cj=$N('{"$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"),xj=Ge(()=>pj??(pj=$N('{"$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"),wj=Ge(()=>dj??(dj=$N('{"$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"),Nj=Ge(()=>fj??(fj=$N('{"$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"),Ij=Ge(()=>mj??(mj=$N('{"$type":"Grammar","isDeclared":true,"name":"RailroadAbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_RULENAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Za-z][A-Za-z0-9-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_NUMVAL","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\\\\.[0-9A-Fa-f]+)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]*\\\\*[0-9]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_EXACT_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_COMMENT","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadAbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-abnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","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":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfAlternation","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfConcatenation","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfElement","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfStringLiteral","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfNumVal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRuleName","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfOptionalGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadAbnf","attributes":[{"$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"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfAlternation","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfConcatenation","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfElement","attributes":[{"$type":"TypeAttribute","name":"repeat","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"AbnfStringLiteral","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfNumVal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfRuleName","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"AbnfOptionalGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadAbnfGrammarGrammar"),_j=Ge(()=>hj??(hj=$N('{"$type":"Grammar","isDeclared":true,"name":"RailroadEbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_SPECIAL_SEQUENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\?(?=[^?;]*[^?\\\\s;][^?;]*\\\\?)[^?;]*\\\\?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_ISO_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\(\\\\*[\\\\s\\\\S]*?\\\\*\\\\)/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadEbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-ebnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","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":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"="},{"$type":"Keyword","value":"::="}]},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"|"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":",","cardinality":"?"},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerm","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"base","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"postfixes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerminal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfNonTerminal","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSpecial","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptional","returnType":{"$ref":"#/interfaces@11"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRepetition","returnType":{"$ref":"#/interfaces@12"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"{"},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPostfix","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptionalPostfix","returnType":{"$ref":"#/interfaces@13"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfZeroOrMorePostfix","returnType":{"$ref":"#/interfaces@14"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOneOrMorePostfix","returnType":{"$ref":"#/interfaces@15"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfExceptionPostfix","returnType":{"$ref":"#/interfaces@16"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"except","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadEbnf","attributes":[{"$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"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfTerm","attributes":[{"$type":"TypeAttribute","name":"base","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false},{"$type":"TypeAttribute","name":"postfixes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfPostfix","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfNonTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfSpecial","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptional","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfRepetition","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptionalPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfZeroOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfOneOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfExceptionPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"except","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadEbnfGrammarGrammar"),Pj=Ge(()=>yj??(yj=$N('{"$type":"Grammar","isDeclared":true,"name":"RailroadGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"RR_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"Railroad","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","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":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadExpression","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSequenceExpr","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"sequence"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadChoiceExpr","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"choice"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOptionalExpr","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"optional"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOneOrMoreExpr","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"oneOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadZeroOrMoreExpr","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"zeroOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadTerminalExpr","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"terminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadNonTerminalExpr","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"nonterminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSpecialExpr","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"special"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"Railroad","attributes":[{"$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"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadExpression","attributes":[],"superTypes":[]},{"$type":"Interface","name":"RailroadSequenceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadChoiceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOptionalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOneOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadZeroOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadNonTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadSpecialExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadGrammarGrammar"),Oj=Ge(()=>gj??(gj=$N('{"$type":"Grammar","isDeclared":true,"name":"RailroadPegGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/#[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadPeg","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-peg-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","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":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"<-"},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegOrderedChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrefix","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"&"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"!"}}],"cardinality":"?"},{"$type":"Assignment","feature":"suffix","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSuffix","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrimary","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegLiteral","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegIdentifier","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegAny","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Assignment","feature":"dot","operator":"=","terminal":{"$type":"Keyword","value":"."}},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadPeg","attributes":[{"$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"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegOrderedChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegPrefix","attributes":[{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"suffix","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSuffix","attributes":[{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}},"isOptional":false},{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"PegPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"PegLiteral","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegIdentifier","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegGroup","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"PegAny","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"dot","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadPegGrammarGrammar"),Dj=Ge(()=>Tj??(Tj=$N('{"$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"),Lj=Ge(()=>vj??(vj=$N('{"$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@14"},"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":"CLASS_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+:::[ \\\\t]*[A-Za-z_][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ICON_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+icon\\\\([\\\\w-]*(?::[\\\\w-]+)?\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"DESC_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+##[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"QUOTED_NAME","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|\'[^\']*\'/","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":"TerminalRule","name":"BARE_NAME","definition":{"$type":"RegexToken","regex":"/(?!:::|icon\\\\(|##)[^ \\\\t\\\\n\\\\r\\"\'](?:(?![ \\\\t]+:::[ \\\\t]*[A-Za-z_]|[ \\\\t]+icon\\\\(|[ \\\\t]+##)[^\\\\n\\\\r])*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"classAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"iconAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"descAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"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 *\\n * Supports both quoted labels (\\"my file\\") and bare labels (index.js).\\n * Annotations (:::class, icon(), ## description) are parsed directly into\\n * AST fields by the grammar. Value conversion for stripping quotes, extracting\\n * class names, icon names, and description text happens in valueConverter.ts.\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treeView keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}')),"TreeViewGrammarGrammar"),Mj=Ge(()=>$j??($j=$N('{"$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":"--\x3e"},"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"),jj={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Fj={languageId:"cynefin",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Gj={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Kj={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},zj={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},qj={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Uj={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Bj={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Wj={languageId:"railroadAbnf",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Vj={languageId:"railroadEbnf",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Hj={languageId:"railroad",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Yj={languageId:"railroadPeg",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Qj={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Zj={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Xj={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Jj={AstReflection:Ge(()=>new Rj,"AstReflection")},eF={Grammar:Ge(()=>Ej(),"Grammar"),LanguageMetaData:Ge(()=>jj,"LanguageMetaData"),parser:{}},tF={Grammar:Ge(()=>Aj(),"Grammar"),LanguageMetaData:Ge(()=>Fj,"LanguageMetaData"),parser:{}},rF={Grammar:Ge(()=>Cj(),"Grammar"),LanguageMetaData:Ge(()=>Gj,"LanguageMetaData"),parser:{}},nF={Grammar:Ge(()=>Sj(),"Grammar"),LanguageMetaData:Ge(()=>Kj,"LanguageMetaData"),parser:{}},aF={Grammar:Ge(()=>kj(),"Grammar"),LanguageMetaData:Ge(()=>zj,"LanguageMetaData"),parser:{}},iF={Grammar:Ge(()=>xj(),"Grammar"),LanguageMetaData:Ge(()=>qj,"LanguageMetaData"),parser:{}},sF={Grammar:Ge(()=>wj(),"Grammar"),LanguageMetaData:Ge(()=>Uj,"LanguageMetaData"),parser:{}},oF={Grammar:Ge(()=>Nj(),"Grammar"),LanguageMetaData:Ge(()=>Bj,"LanguageMetaData"),parser:{}},lF={Grammar:Ge(()=>Ij(),"Grammar"),LanguageMetaData:Ge(()=>Wj,"LanguageMetaData"),parser:{}},uF={Grammar:Ge(()=>_j(),"Grammar"),LanguageMetaData:Ge(()=>Vj,"LanguageMetaData"),parser:{}},cF={Grammar:Ge(()=>Pj(),"Grammar"),LanguageMetaData:Ge(()=>Hj,"LanguageMetaData"),parser:{}},pF={Grammar:Ge(()=>Oj(),"Grammar"),LanguageMetaData:Ge(()=>Yj,"LanguageMetaData"),parser:{}},dF={Grammar:Ge(()=>Dj(),"Grammar"),LanguageMetaData:Ge(()=>Qj,"LanguageMetaData"),parser:{}},fF={Grammar:Ge(()=>Lj(),"Grammar"),LanguageMetaData:Ge(()=>Zj,"LanguageMetaData"),parser:{}},mF={Grammar:Ge(()=>Mj(),"Grammar"),LanguageMetaData:Ge(()=>Xj,"LanguageMetaData"),parser:{}},hF={ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/accTitle[\t ]*:([^\n\r]*)/,TITLE:/title([\t ][^\n\r]*|)/},yF=class extends Zk{static{Ge(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){const n=hF[e.name];if(void 0===n)return;const a=n.exec(t);return null!==a?void 0!==a[1]?a[1].trim().replace(/[\t ]{2,}/gm," "):void 0!==a[2]?a[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,"\n"):void 0:void 0}},gF=class extends yF{static{Ge(this,"CommonValueConverter")}runCustomConverter(e,t,r){}},TF=class extends Qk{static{Ge(this,"AbstractMermaidTokenBuilder")}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,r){const n=super.buildKeywordTokens(e,t,r);return n.forEach(e=>{this.keywords.has(e.name)&&void 0!==e.PATTERN&&(e.PATTERN=new RegExp(e.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),n}};(class extends TF{static{Ge(this,"CommonTokenBuilder")}})},2993(e,t,r){r.d(t,{S:()=>o});var n=r(9044),a=class extends n.mR{static{(0,n.K2)(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},i=class extends n.dg{static{(0,n.K2)(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){if("ARCH_ICON"===e.name)return t.replace(/[()]/g,"").trim();if("ARCH_TEXT_ICON"===e.name)return t.replace(/["()]/g,"");if("ARCH_TITLE"===e.name){let e=t.replace(/^\[|]$/g,"").trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}}},s={parser:{TokenBuilder:(0,n.K2)(()=>new a,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new i,"ValueConverter")}};function o(e=n.DD){const t=(0,n.WQ)((0,n.uM)(e),n.sr),r=(0,n.WQ)((0,n.tG)({shared:t}),n.wV,s);return t.ServiceRegistry.register(r),{shared:t,Architecture:r}}(0,n.K2)(o,"createArchitectureServices")},682(e,t,r){r.d(t,{t:()=>s});var n=r(9044),a=class extends n.mR{static{(0,n.K2)(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},i={parser:{TokenBuilder:(0,n.K2)(()=>new a,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new n.Tm,"ValueConverter")}};function s(e=n.DD){const t=(0,n.WQ)((0,n.uM)(e),n.sr),r=(0,n.WQ)((0,n.tG)({shared:t}),n.Jn,i);return t.ServiceRegistry.register(r),{shared:t,Cynefin:r}}(0,n.K2)(s,"createCynefinServices")},567(e,t,r){r.d(t,{f:()=>s});var n=r(9044),a=class extends n.mR{static{(0,n.K2)(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},i={parser:{TokenBuilder:(0,n.K2)(()=>new a,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new n.Tm,"ValueConverter")}};function s(e=n.DD){const t=(0,n.WQ)((0,n.uM)(e),n.sr),r=(0,n.WQ)((0,n.tG)({shared:t}),n.Bg,i);return t.ServiceRegistry.register(r),{shared:t,Radar:r}}(0,n.K2)(s,"createRadarServices")},6955(e,t,r){r.d(t,{d:()=>c});var n=r(9044),a=class extends n.mR{static{(0,n.K2)(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},i=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,s=class extends n.dg{static{(0,n.K2)(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if("NUMBER2"===e.name)return parseFloat(t.replace(/,/g,""));if("SEPARATOR"===e.name)return t.substring(1,t.length-1);if("STRING2"===e.name)return t.substring(1,t.length-1);if("INDENTATION"===e.name)return t.length;if("ClassDef"===e.name){if("string"!=typeof t)return t;const e=i.exec(t);if(e)return{$type:"ClassDefStatement",className:e[1],styleText:e[2]||void 0}}}};function o(e){const t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){const e={Treemap:t.checkSingleRoot.bind(t)};r.register(e,t)}}(0,n.K2)(o,"registerValidationChecks");var l=class{static{(0,n.K2)(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(const n of e.TreemapRows)n.item&&(void 0===r&&void 0===n.indent?r=0:(void 0===n.indent||void 0!==r&&r>=parseInt(n.indent,10))&&t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"}))}},u={parser:{TokenBuilder:(0,n.K2)(()=>new a,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new s,"ValueConverter")},validation:{TreemapValidator:(0,n.K2)(()=>new l,"TreemapValidator")}};function c(e=n.DD){const t=(0,n.WQ)((0,n.uM)(e),n.sr),r=(0,n.WQ)((0,n.tG)({shared:t}),n.XE,u);return t.ServiceRegistry.register(r),o(r),{shared:t,Treemap:r}}(0,n.K2)(c,"createTreemapServices")},7804(e,t,r){r.d(t,{W:()=>l});var n=r(9044),a=class extends n.mR{static{(0,n.K2)(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},i=(0,n.K2)(e=>{const t=e.slice(1,-1);let r="";for(let n=0;n<t.length;n++){const e=t[n];if("\\"===e&&n+1<t.length){n++;const e=t[n];switch(e){case"n":r+="\n";break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=e}continue}r+=e}return r},"decodeEscapedString"),s=class extends n.dg{static{(0,n.K2)(this,"RailroadEbnfValueConverter")}runConverter(e,t,r){const n=super.runConverter(e,t,r);if("TITLE"===e.name&&"string"==typeof n){const e=n.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return i(e)}return n}runCustomConverter(e,t,r){return"EBNF_STRING"===e.name?i(t):"EBNF_SPECIAL_SEQUENCE"===e.name?t.slice(1,-1).trim():void 0}},o={parser:{TokenBuilder:(0,n.K2)(()=>new a,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new s,"ValueConverter")}};function l(e=n.DD){const t=(0,n.WQ)((0,n.uM)(e),n.sr),r=(0,n.WQ)((0,n.tG)({shared:t}),n.U4,o);return t.ServiceRegistry.register(r),{shared:t,RailroadEbnf:r}}(0,n.K2)(l,"createRailroadEbnfServices")},6111(e,t,r){r.d(t,{f:()=>o});var n=r(9044),a=class extends n.mR{static{(0,n.K2)(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},i=class extends n.dg{static{(0,n.K2)(this,"PieValueConverter")}runCustomConverter(e,t,r){if("PIE_SECTION_LABEL"===e.name)return t.replace(/"/g,"").trim()}},s={parser:{TokenBuilder:(0,n.K2)(()=>new a,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new i,"ValueConverter")}};function o(e=n.DD){const t=(0,n.WQ)((0,n.uM)(e),n.sr),r=(0,n.WQ)((0,n.tG)({shared:t}),n.D_,s);return t.ServiceRegistry.register(r),{shared:t,Pie:r}}(0,n.K2)(o,"createPieServices")},9183(e,t,r){r.d(t,{F5:()=>o.F5,Pz:()=>s.P,WG:()=>a.W,lz:()=>n.l,qg:()=>c,sB:()=>i.s,zg:()=>p});r(567);var n=r(5553),a=r(7804),i=r(27),s=r(8116),o=(r(6955),r(7221),r(682),r(9145),r(4455),r(9185),r(6111),r(5543),r(2993),r(3277),r(9044)),l={},u={info:(0,o.K2)(async()=>{const{createInfoServices:e}=await r.e(8347).then(r.bind(r,8347)),t=e().Info.parser.LangiumParser;l.info=t},"info"),packet:(0,o.K2)(async()=>{const{createPacketServices:e}=await r.e(5663).then(r.bind(r,5663)),t=e().Packet.parser.LangiumParser;l.packet=t},"packet"),pie:(0,o.K2)(async()=>{const{createPieServices:e}=await r.e(1340).then(r.bind(r,1340)),t=e().Pie.parser.LangiumParser;l.pie=t},"pie"),treeView:(0,o.K2)(async()=>{const{createTreeViewServices:e}=await r.e(234).then(r.bind(r,234)),t=e().TreeView.parser.LangiumParser;l.treeView=t},"treeView"),architecture:(0,o.K2)(async()=>{const{createArchitectureServices:e}=await r.e(2652).then(r.bind(r,2652)),t=e().Architecture.parser.LangiumParser;l.architecture=t},"architecture"),gitGraph:(0,o.K2)(async()=>{const{createGitGraphServices:e}=await r.e(1348).then(r.bind(r,1348)),t=e().GitGraph.parser.LangiumParser;l.gitGraph=t},"gitGraph"),eventmodeling:(0,o.K2)(async()=>{const{createEventModelingServices:e}=await r.e(8725).then(r.bind(r,8725)),t=e().EventModel.parser.LangiumParser;l.eventmodeling=t},"eventmodeling"),radar:(0,o.K2)(async()=>{const{createRadarServices:e}=await r.e(9718).then(r.bind(r,9718)),t=e().Radar.parser.LangiumParser;l.radar=t},"radar"),railroad:(0,o.K2)(async()=>{const{createRailroadServices:e}=await r.e(4832).then(r.bind(r,4832)),t=e().Railroad.parser.LangiumParser;l.railroad=t},"railroad"),railroadEbnf:(0,o.K2)(async()=>{const{createRailroadEbnfServices:e}=await r.e(7173).then(r.bind(r,7173)),t=e().RailroadEbnf.parser.LangiumParser;l.railroadEbnf=t},"railroadEbnf"),railroadAbnf:(0,o.K2)(async()=>{const{createRailroadAbnfServices:e}=await r.e(5463).then(r.bind(r,5463)),t=e().RailroadAbnf.parser.LangiumParser;l.railroadAbnf=t},"railroadAbnf"),railroadPeg:(0,o.K2)(async()=>{const{createRailroadPegServices:e}=await r.e(1912).then(r.bind(r,1912)),t=e().RailroadPeg.parser.LangiumParser;l.railroadPeg=t},"railroadPeg"),treemap:(0,o.K2)(async()=>{const{createTreemapServices:e}=await r.e(2675).then(r.bind(r,2675)),t=e().Treemap.parser.LangiumParser;l.treemap=t},"treemap"),wardley:(0,o.K2)(async()=>{const{createWardleyServices:e}=await r.e(3938).then(r.bind(r,3938)),t=e().Wardley.parser.LangiumParser;l.wardley=t},"wardley"),cynefin:(0,o.K2)(async()=>{const{createCynefinServices:e}=await r.e(9737).then(r.bind(r,9737)),t=e().Cynefin.parser.LangiumParser;l.cynefin=t},"cynefin")};async function c(e,t){const r=u[e];if(!r)throw new Error(`Unknown diagram type: ${e}`);l[e]||await r();const n=l[e].parse(t);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new p(n);return n.value}(0,o.K2)(c,"parse");var p=class extends Error{constructor(e){super(`Parsing failed: ${e.lexerErrors.map(e=>`Lexer error on line ${void 0===e.line||isNaN(e.line)?"?":e.line}, column ${void 0===e.column||isNaN(e.column)?"?":e.column}: ${e.message}`).join("\n")} ${e.parserErrors.map(e=>`Parse error on line ${void 0===e.token.startLine||isNaN(e.token.startLine)?"?":e.token.startLine}, column ${void 0===e.token.startColumn||isNaN(e.token.startColumn)?"?":e.token.startColumn}: ${e.message}`).join("\n")}`),this.result=e}static{(0,o.K2)(this,"MermaidParseError")}}},4247(e,t,r){r.d(t,{CP:()=>p,Ck:()=>m,HT:()=>f,PB:()=>d,aC:()=>c,lC:()=>l,m:()=>u,tk:()=>o});var n=r(4689),a=r(8053),i=r(4674),s=r(7012),o=(0,a.K)((e,t)=>{const r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name&&r.attr("name",t.name),t.rx&&r.attr("rx",t.rx),t.ry&&r.attr("ry",t.ry),void 0!==t.attrs)for(const n in t.attrs)r.attr(n,t.attrs[n]);return t.class&&r.attr("class",t.class),r},"drawRect"),l=(0,a.K)((e,t)=>{const r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};o(e,r).lower()},"drawBackgroundRect"),u=(0,a.K)((e,t)=>{const r=t.text.replace(n.H1," "),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class&&a.attr("class",t.class);const i=a.append("tspan");return i.attr("x",t.x+2*t.textMargin),i.text(r),a},"drawText"),c=(0,a.K)((e,t,r,n)=>{const a=e.append("image");a.attr("x",t),a.attr("y",r);const s=(0,i.J)(n);a.attr("xlink:href",s)},"drawImage"),p=(0,a.K)((e,t,r,n)=>{const a=e.append("use");a.attr("x",t),a.attr("y",r);const s=(0,i.J)(n);a.attr("xlink:href",`#${s}`)},"drawEmbeddedImage"),d=(0,a.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=(0,a.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),m=(0,a.K)(()=>{let e=(0,s.Ltv)(".mermaidTooltip");return e.empty()&&(e=(0,s.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),e},"createTooltip")},5644(e,t,r){r.d(t,{o:()=>n});var n=(0,r(8053).K)(()=>"\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n","getIconStyles")},3492(e,t,r){function n(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}r.d(t,{S:()=>n}),(0,r(8053).K)(n,"populateCommonDb")},1355(e,t,r){r.d(t,{P:()=>s});var n=r(4689),a=r(2371),i=r(8053),s=(0,i.K)((e,t,r,i)=>{e.attr("class",r);const{width:s,height:u,x:c,y:p}=o(e,t);(0,n.a$)(e,u,s,i);const d=l(c,p,s,u,t);e.attr("viewBox",d),a.R.debug(`viewBox configured: ${d} with padding: ${t}`)},"setupViewPortForSVG"),o=(0,i.K)((e,t)=>{const r=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:r.width+2*t,height:r.height+2*t,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),l=(0,i.K)((e,t,r,n,a)=>`${e-a} ${t-a} ${r} ${n}`,"createViewBox")},9673(e,t,r){r.d(t,{A:()=>i});var n=r(8053),a=r(7012),i=(0,n.K)((e,t)=>{let r;"sandbox"===t&&(r=(0,a.Ltv)("#i"+e));return("sandbox"===t?(0,a.Ltv)(r.nodes()[0].contentDocument.body):(0,a.Ltv)("body")).select(`[id="${e}"]`)},"getDiagramElement")}}]);
|