@cline/cli-darwin-x64 3.0.38 → 3.0.39

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.
Files changed (99) hide show
  1. package/bin/cline +0 -0
  2. package/cline-hub/webview/assets/Chat-BDmC6MlQ.js +201 -0
  3. package/cline-hub/webview/assets/{abnfDiagram-VRR7QNED-C5rCTOhv.js → abnfDiagram-VRR7QNED-Bnj4QJTn.js} +1 -1
  4. package/cline-hub/webview/assets/{architectureDiagram-ZJ3FMSHR-B-IyfiZR.js → architectureDiagram-ZJ3FMSHR-C7E4F6FP.js} +1 -1
  5. package/cline-hub/webview/assets/{badge-Bzt6S3c1.js → badge-DLmAsOmN.js} +1 -1
  6. package/cline-hub/webview/assets/{blockDiagram-677ZJIJ3-B-BR0eRd.js → blockDiagram-677ZJIJ3-2BmIt81d.js} +2 -2
  7. package/cline-hub/webview/assets/{c4Diagram-LMCZKHZV-nm2HPWma.js → c4Diagram-LMCZKHZV-BLqZyTQG.js} +1 -1
  8. package/cline-hub/webview/assets/channel-lcB16PBt.js +1 -0
  9. package/cline-hub/webview/assets/{chunk-32BRIVSS-hNjl59yJ.js → chunk-32BRIVSS-DvgtUMjH.js} +1 -1
  10. package/cline-hub/webview/assets/{chunk-52WLFC77-BuWVK9iY.js → chunk-52WLFC77-Bc3oUjd3.js} +1 -1
  11. package/cline-hub/webview/assets/{chunk-BO2N2NFS-Dc8TVhBR.js → chunk-BO2N2NFS-DGgewybA.js} +32 -32
  12. package/cline-hub/webview/assets/{chunk-C7G6YPKG-DNqG58q0.js → chunk-C7G6YPKG-B8eWs7WC.js} +1 -1
  13. package/cline-hub/webview/assets/{chunk-EX3LRPZG-e5_iLYaU.js → chunk-EX3LRPZG-D1GtIwqs.js} +1 -1
  14. package/cline-hub/webview/assets/{chunk-FWX5IMBZ-CYhSzu5d.js → chunk-FWX5IMBZ-pb5aM7v8.js} +2 -2
  15. package/cline-hub/webview/assets/{chunk-HOUHSVGY-7-np6tLe.js → chunk-HOUHSVGY-DZv73_1N.js} +1 -1
  16. package/cline-hub/webview/assets/{chunk-ICXQ74PX-tBj7_Af3.js → chunk-ICXQ74PX-BLkwAJRS.js} +2 -2
  17. package/cline-hub/webview/assets/{chunk-MOJQB5TN-yHpPpNVl.js → chunk-MOJQB5TN-BDIrf06r.js} +1 -1
  18. package/cline-hub/webview/assets/{chunk-OGEWGWER-BWr7Kxep.js → chunk-OGEWGWER-DC6ZHIaO.js} +1 -1
  19. package/cline-hub/webview/assets/{chunk-PUDLZKDR-8aZ1kjkY.js → chunk-PUDLZKDR-B3QvWDCN.js} +1 -1
  20. package/cline-hub/webview/assets/{chunk-Q4XR5HBZ-DLm93PI-.js → chunk-Q4XR5HBZ-BrcuBWmp.js} +1 -1
  21. package/cline-hub/webview/assets/{chunk-V7JOEXUC-ClSqKe24.js → chunk-V7JOEXUC-ORex7Wci.js} +1 -1
  22. package/cline-hub/webview/assets/{chunk-VAUOI2AC-CsrCo4-F.js → chunk-VAUOI2AC-9UwoaXaF.js} +1 -1
  23. package/cline-hub/webview/assets/{chunk-VR4S4FIN-s6lsgHY6.js → chunk-VR4S4FIN-CxpxBT1R.js} +1 -1
  24. package/cline-hub/webview/assets/{chunk-WYO6CB5R-i6G7y6Wv.js → chunk-WYO6CB5R-s6qbtyS5.js} +3 -3
  25. package/cline-hub/webview/assets/{chunk-ZGVPDNZ5-C9VvO5W0.js → chunk-ZGVPDNZ5-CJkTHIbj.js} +1 -1
  26. package/cline-hub/webview/assets/classDiagram-OUVF2IWQ-cNXfBUZQ.js +1 -0
  27. package/cline-hub/webview/assets/classDiagram-v2-EOCWNBFH-cNXfBUZQ.js +1 -0
  28. package/cline-hub/webview/assets/{cose-bilkent-JH36ORCC-MT4lvgSK.js → cose-bilkent-JH36ORCC-o75EFMYq.js} +1 -1
  29. package/cline-hub/webview/assets/{cynefinDiagram-TSTJHNR4-Dn-OLu7p.js → cynefinDiagram-TSTJHNR4-Bxj5jfDv.js} +1 -1
  30. package/cline-hub/webview/assets/{dagre-VKFMJZFB-eCj9UyqP.js → dagre-VKFMJZFB-8O7vc2EM.js} +2 -2
  31. package/cline-hub/webview/assets/{desktop-client-D5160ONr.js → desktop-client-BKJwuQxH.js} +1 -1
  32. package/cline-hub/webview/assets/{diagram-FQU43EPY-DRPKgSnd.js → diagram-FQU43EPY-3nNW41L5.js} +1 -1
  33. package/cline-hub/webview/assets/{diagram-G47NLZAW-0GD8Q1tc.js → diagram-G47NLZAW-PoM_buCM.js} +1 -1
  34. package/cline-hub/webview/assets/{diagram-NH7WQ7WH-BEnNVzix.js → diagram-NH7WQ7WH-ulhavK3B.js} +1 -1
  35. package/cline-hub/webview/assets/{diagram-OA4YK3LP-V6MJ_f3q.js → diagram-OA4YK3LP-q-oLT4Q4.js} +1 -1
  36. package/cline-hub/webview/assets/{diagram-WEI45ONY-CzW1JD7r.js → diagram-WEI45ONY-DxbP_qr6.js} +1 -1
  37. package/cline-hub/webview/assets/{ebnfDiagram-CCIWWBDH-CFwKmlRg.js → ebnfDiagram-CCIWWBDH-DOMIwyXA.js} +1 -1
  38. package/cline-hub/webview/assets/{erDiagram-Q63AITRT-CgAPlUXh.js → erDiagram-Q63AITRT-4IazwZPI.js} +1 -1
  39. package/cline-hub/webview/assets/extensions-view-XjJ_AYhg.js +1 -0
  40. package/cline-hub/webview/assets/flowDiagram-23GEKE2U-hdDBVE6S.js +1 -0
  41. package/cline-hub/webview/assets/{ganttDiagram-NO4QXBWP-DM0XEDYK.js → ganttDiagram-NO4QXBWP-CUoaBp7f.js} +1 -1
  42. package/cline-hub/webview/assets/{gitGraphDiagram-IHSO6WYX-CNM8anLk.js → gitGraphDiagram-IHSO6WYX-o8p04hK8.js} +2 -2
  43. package/cline-hub/webview/assets/{highlighted-body-OFNGDK62-DPiwQPvA.js → highlighted-body-OFNGDK62-C7gtB-Ji.js} +1 -1
  44. package/cline-hub/webview/assets/{index-BRXDRu6K.js → index-DGmyn1v-.js} +3 -3
  45. package/cline-hub/webview/assets/{infoDiagram-FWYZ7A6U-CHt0koLa.js → infoDiagram-FWYZ7A6U-CkjroFJc.js} +1 -1
  46. package/cline-hub/webview/assets/{ishikawaDiagram-FXEZZL3T-zkyeJR-l.js → ishikawaDiagram-FXEZZL3T-OLGuTzHp.js} +1 -1
  47. package/cline-hub/webview/assets/{journeyDiagram-5HDEW3XC-DDcjgcyH.js → journeyDiagram-5HDEW3XC-CKpZM-zW.js} +2 -2
  48. package/cline-hub/webview/assets/{kanban-definition-HUTT4EX6-BYP4PPrE.js → kanban-definition-HUTT4EX6-DR-Yk3T8.js} +1 -1
  49. package/cline-hub/webview/assets/label-CutRt30b.js +1 -0
  50. package/cline-hub/webview/assets/{line-BTy_dUbW.js → line-iHvrbOzL.js} +1 -1
  51. package/cline-hub/webview/assets/mermaid-GHXKKRXX-CMmEDVDX.js +1 -0
  52. package/cline-hub/webview/assets/{mermaid-layout-Djp6vQyU.js → mermaid-layout-B3I8pqwA.js} +1 -1
  53. package/cline-hub/webview/assets/{mermaid-markup-BZ6zsKDb.js → mermaid-markup-DxHYj2el.js} +1 -1
  54. package/cline-hub/webview/assets/{mermaid-parser-CZPlgix_.js → mermaid-parser-B5nDuK1i.js} +2 -2
  55. package/cline-hub/webview/assets/{mermaid-parser-QWTbqGyA.js → mermaid-parser-B9zpCB84.js} +1 -1
  56. package/cline-hub/webview/assets/mermaid-parser-BBCGbbKs.js +1 -0
  57. package/cline-hub/webview/assets/{mermaid-parser-DNzq6p3w.js → mermaid-parser-BfrZ3jm6.js} +3 -3
  58. package/cline-hub/webview/assets/{mermaid-parser-Cp5YPQ7g.js → mermaid-parser-CTYjzP1x.js} +1 -1
  59. package/cline-hub/webview/assets/{mermaid-parser-DyUJWOTu.js → mermaid-parser-CY_uQclF.js} +1 -1
  60. package/cline-hub/webview/assets/mermaid-parser-CZjLeXFT.js +1 -0
  61. package/cline-hub/webview/assets/{mermaid-parser-DyeriwkP.js → mermaid-parser-Cvf3sTYp.js} +1 -1
  62. package/cline-hub/webview/assets/mermaid-parser-CyY34pyG.js +1 -0
  63. package/cline-hub/webview/assets/{mermaid.core-DPoJ8TcZ.js → mermaid.core-B1yAI6DJ.js} +4 -4
  64. package/cline-hub/webview/assets/{mindmap-definition-LN4V7U3C-CHWTvxxK.js → mindmap-definition-LN4V7U3C-BUPLTHRx.js} +1 -1
  65. package/cline-hub/webview/assets/{pegDiagram-2B236MQR-CXg1egGc.js → pegDiagram-2B236MQR-CqCUMPkJ.js} +1 -1
  66. package/cline-hub/webview/assets/{pieDiagram-ENE6RG2P-DaCuXnM0.js → pieDiagram-ENE6RG2P-C1AZq6_4.js} +1 -1
  67. package/cline-hub/webview/assets/{quadrantDiagram-ABIIQ3AL-nzS6VzgH.js → quadrantDiagram-ABIIQ3AL-CQ6-Nh1S.js} +1 -1
  68. package/cline-hub/webview/assets/{railroadDiagram-RFXS5EU6-CqNrv-_I.js → railroadDiagram-RFXS5EU6-CihPS5zZ.js} +1 -1
  69. package/cline-hub/webview/assets/{requirementDiagram-TGXJPOKE-OOZcRg4n.js → requirementDiagram-TGXJPOKE-DqSnTPUm.js} +1 -1
  70. package/cline-hub/webview/assets/{sankeyDiagram-HTMAVEWB-HscxOZtZ.js → sankeyDiagram-HTMAVEWB-BPrP9qMr.js} +1 -1
  71. package/cline-hub/webview/assets/{sequenceDiagram-DBY2YBRQ-R_qy17y4.js → sequenceDiagram-DBY2YBRQ-vNDq7H85.js} +1 -1
  72. package/cline-hub/webview/assets/settings-view-0hTCA1ER.js +1 -0
  73. package/cline-hub/webview/assets/{stateDiagram-2N3HPSRC-ClswSyZL.js → stateDiagram-2N3HPSRC-BhZeX4AV.js} +1 -1
  74. package/cline-hub/webview/assets/stateDiagram-v2-6OUMAXLB-DSblVTf_.js +1 -0
  75. package/cline-hub/webview/assets/{swimlanes-5IMT3BWC-BkuqVu2j.js → swimlanes-5IMT3BWC-CBgarXiN.js} +1 -1
  76. package/cline-hub/webview/assets/swimlanesDiagram-G3AALYLV-BLE3IPK-.js +8 -0
  77. package/cline-hub/webview/assets/switch-DQs_IHZT.js +1 -0
  78. package/cline-hub/webview/assets/{timeline-definition-FHXFAJF6-BjpuN3pN.js → timeline-definition-FHXFAJF6-CCjLKk-6.js} +1 -1
  79. package/cline-hub/webview/assets/{vennDiagram-L72KCM5P-8F1dmIqI.js → vennDiagram-L72KCM5P-CTW_BgiG.js} +1 -1
  80. package/cline-hub/webview/assets/{vscode-BO5mAFne.js → vscode-CAVw_AZi.js} +1 -1
  81. package/cline-hub/webview/assets/{wardleyDiagram-EHGQE667-7YrnPd_H.js → wardleyDiagram-EHGQE667-BeIO74o9.js} +1 -1
  82. package/cline-hub/webview/assets/{xychartDiagram-FW5EYKEG-Cja295cp.js → xychartDiagram-FW5EYKEG-QjSpx4am.js} +1 -1
  83. package/cline-hub/webview/index.html +2 -2
  84. package/package.json +1 -1
  85. package/cline-hub/webview/assets/Chat-Cpzgs4Zf.js +0 -201
  86. package/cline-hub/webview/assets/channel-8doMLUjk.js +0 -1
  87. package/cline-hub/webview/assets/classDiagram-OUVF2IWQ-tjZJwVeV.js +0 -1
  88. package/cline-hub/webview/assets/classDiagram-v2-EOCWNBFH-tjZJwVeV.js +0 -1
  89. package/cline-hub/webview/assets/extensions-view-BQAXMxuI.js +0 -1
  90. package/cline-hub/webview/assets/flowDiagram-23GEKE2U-Dzdx6GmQ.js +0 -1
  91. package/cline-hub/webview/assets/label-CW5deNNM.js +0 -1
  92. package/cline-hub/webview/assets/mermaid-GHXKKRXX-Am84rhzj.js +0 -1
  93. package/cline-hub/webview/assets/mermaid-parser-2rg6EBvL.js +0 -1
  94. package/cline-hub/webview/assets/mermaid-parser-BSNQtRf6.js +0 -1
  95. package/cline-hub/webview/assets/mermaid-parser-i85Vjfgu.js +0 -1
  96. package/cline-hub/webview/assets/settings-view-D6J1Z1IG.js +0 -1
  97. package/cline-hub/webview/assets/stateDiagram-v2-6OUMAXLB-DFYi3Fwm.js +0 -1
  98. package/cline-hub/webview/assets/swimlanesDiagram-G3AALYLV-CxnljicL.js +0 -8
  99. package/cline-hub/webview/assets/switch-DI9z38Ya.js +0 -1
@@ -43,7 +43,7 @@ ${JSON.stringify(e,null,4)}`);let t=e;if(n.string(t.id)||n.number(t.id)){let e=t
43
43
  `:case`\r`:case`\u2028`:case`\u2029`:return!1;default:return!0}}parseHexDigits(e){let t=``;for(let n=0;n<e;n++){let e=this.popChar();if(ga.test(e)===!1)throw Error(`Expecting a HexDecimal digits`);t+=e}return{type:`Character`,value:parseInt(t,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){let e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(e!==void 0&&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}}},ba=class{static{o(this,`BaseRegExpVisitor`)}visitChildren(e){for(let t in e){let n=e[t];e.hasOwnProperty(t)&&(n.type===void 0?Array.isArray(n)&&n.forEach(e=>{this.visit(e)},this):this.visit(n))}}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);break}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){}},xa=/\r?\n/gm,Sa=new ya,Ca=new class extends ba{static{o(this,`TerminalRegExpVisitor`)}constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join(``)}reset(e){this.multiline=!1,this.regex=e,this.startRegexp=``,this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){let t=String.fromCharCode(e.value);if(!this.multiline&&t===`
44
44
  `&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let e=Oa(t);this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e)}}visitSet(e){if(!this.multiline){let t=this.regex.substring(e.loc.begin,e.loc.end),n=new RegExp(t);this.multiline=!!`
45
45
  `.match(n)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){e.type===`Group`&&e.quantifier||super.visitChildren(e)}};function wa(e){try{typeof e!=`string`&&(e=e.source),e=`/${e}/`;let t=Sa.pattern(e),n=[];for(let r of t.value.value)Ca.reset(e),Ca.visit(r),n.push({start:Ca.startRegexp,end:Ca.endRegex});return n}catch{return[]}}o(wa,`getTerminalParts`);function Ta(e){try{return typeof e==`string`&&(e=new RegExp(e)),e=e.toString(),Ca.reset(e),Ca.visit(Sa.pattern(e)),Ca.multiline}catch{return!1}}o(Ta,`isMultilineComment`);var Ea=`\f
46
- \r \v \xA0            \u2028\u2029   `.split(``);function Da(e){let t=typeof e==`string`?new RegExp(e):e;return Ea.some(e=>t.test(e))}o(Da,`isWhitespace`);function Oa(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}o(Oa,`escapeRegExp`);function ka(e,t){let n=Aa(e),r=t.match(n);return!!r&&r[0].length>0}o(ka,`partialMatches`);function Aa(e){typeof e==`string`&&(e=new RegExp(e));let t=e,n=e.source,r=0;function i(){let e=``,a;function s(t){e+=n.substr(r,t),r+=t}o(s,`appendRaw`);function c(t){e+=`(?:`+n.substr(r,t)+`|$)`,r+=t}for(o(c,`appendOptional`);r<n.length;)switch(n[r]){case`\\`:switch(n[r+1]){case`c`:c(3);break;case`x`:c(4);break;case`u`:t.unicode?n[r+2]===`{`?c(n.indexOf(`}`,r)-r+1):c(6):c(2);break;case`p`:case`P`:t.unicode?c(n.indexOf(`}`,r)-r+1):c(2);break;case`k`:c(n.indexOf(`>`,r)-r+1);break;default:c(2);break}break;case`[`:a=/\[(?:\\.|.)*?\]/g,a.lastIndex=r,a=a.exec(n)||[],c(a[0].length);break;case`|`:case`^`:case`$`:case`*`:case`+`:case`?`:s(1);break;case`{`:a=/\{\d+,?\d*\}/g,a.lastIndex=r,a=a.exec(n),a?s(a[0].length):c(1);break;case`(`:if(n[r+1]===`?`)switch(n[r+2]){case`:`:e+=`(?:`,r+=3,e+=i()+`|$)`;break;case`=`:e+=`(?=`,r+=3,e+=i()+`)`;break;case`!`:a=r,r+=3,i(),e+=n.substr(a,r-a);break;case`<`:switch(n[r+3]){case`=`:case`!`:a=r,r+=4,i(),e+=n.substr(a,r-a);break;default:s(n.indexOf(`>`,r)-r+1),e+=i()+`|$)`;break}break}else s(1),e+=i()+`|$)`;break;case`)`:return++r,e;default:c(1);break}return e}return o(i,`process`),new RegExp(i(),e.flags)}o(Aa,`partialRegExp`);function ja(e){return e.rules.find(e=>Yr(e)&&e.entry)}o(ja,`getEntryRule`);function Ma(e){return e.rules.filter(e=>hi(e)&&e.hidden)}o(Ma,`getHiddenRules`);function Na(e,t){let n=new Set,r=ja(e);if(!r)return new Set(e.rules);let i=[r].concat(Ma(e));for(let e of i)Pa(e,n,t);let a=new Set;for(let t of e.rules)(n.has(t.name)||hi(t)&&t.hidden)&&a.add(t);return a}o(Na,`getAllReachableRules`);function Pa(e,t,n){t.add(e.name),jn(e).forEach(e=>{if(ri(e)||n&&_i(e)){let r=e.rule.ref;r&&!t.has(r.name)&&Pa(r,t,n)}})}o(Pa,`ruleDfs`);function Fa(e){let t=new Set;return jn(e).forEach(e=>{pr(e)&&(Yr(e.type.ref)&&t.add(e.type.ref),Tr(e.type.ref)&&Yr(e.type.ref.$container)&&t.add(e.type.ref.$container))}),t}o(Fa,`getAllRulesUsedForCrossReferences`);function Ia(e){if(e.terminal)return e.terminal;if(e.type.ref)return Ga(e.type.ref)?.terminal}o(Ia,`getCrossReferenceTerminal`);function La(e){return e.hidden&&!Da(oo(e))}o(La,`isCommentTerminal`);function Ra(e,t){return!e||!t?[]:Ba(e,t,e.astNode,!0)}o(Ra,`findNodesForProperty`);function za(e,t,n){if(!e||!t)return;let r=Ba(e,t,e.astNode,!0);if(r.length!==0)return n=n===void 0?0:Math.max(0,Math.min(n,r.length-1)),r[n]}o(za,`findNodeForProperty`);function Ba(e,t,n,r){if(!r){let n=Tn(e.grammarSource,rr);if(n&&n.feature===t)return[e]}return pn(e)&&e.astNode===n?e.content.flatMap(e=>Ba(e,t,n,!1)):[]}o(Ba,`findNodesForPropertyInternal`);function Va(e,t){return e?Ua(e,t,e?.astNode):[]}o(Va,`findNodesForKeyword`);function Ha(e,t,n){if(!e)return;let r=Ua(e,t,e?.astNode);if(r.length!==0)return n=n===void 0?0:Math.max(0,Math.min(n,r.length-1)),r[n]}o(Ha,`findNodeForKeyword`);function Ua(e,t,n){if(e.astNode!==n)return[];if(Fr(e.grammarSource)&&e.grammarSource.value===t)return[e];let r=Ii(e).iterator(),i,a=[];do if(i=r.next(),!i.done){let e=i.value;e.astNode===n?Fr(e.grammarSource)&&e.grammarSource.value===t&&a.push(e):r.prune()}while(!i.done);return a}o(Ua,`findNodesForKeywordInternal`);function Wa(e){let t=e.astNode;for(;t===e.container?.astNode;){let t=Tn(e.grammarSource,rr);if(t)return t;e=e.container}}o(Wa,`findAssignment`);function Ga(e){let t=e;return Tr(t)&&(Yn(t.$container)?t=t.$container.$container:Un(t.$container)?t=t.$container:aa(t.$container)),Ka(e,t,new Map)}o(Ga,`findNameAssignment`);function Ka(e,t,n){function r(t,r){let i;return Tn(t,rr)||(i=Ka(r,r,n)),n.set(e,i),i}if(o(r,`go`),n.has(e))return n.get(e);n.set(e,void 0);for(let i of jn(t))if(rr(i)&&i.feature.toLowerCase()===`name`)return n.set(e,i),i;else if(ri(i)&&Yr(i.rule.ref))return r(i,i.rule.ref);else if(ai(i)&&i.typeRef?.ref)return r(i,i.typeRef.ref)}o(Ka,`findNameAssignmentInternal`);function qa(e){let t=e.$container;if(Cr(t)){let n=t.elements,r=n.indexOf(e);for(let e=r-1;e>=0;e--){let t=n[e];if(Yn(t))return t;{let t=jn(n[e]).find(Yn);if(t)return t}}}if(Vn(t))return qa(t)}o(qa,`getActionAtElement`);function Ja(e,t){return e===`?`||e===`*`||Cr(t)&&!!t.guardCondition}o(Ja,`isOptionalCardinality`);function Ya(e){return e===`*`||e===`+`}o(Ya,`isArrayCardinality`);function Xa(e){return e===`+=`}o(Xa,`isArrayOperator`);function Za(e){return Qa(e,new Set)}o(Za,`isDataTypeRule`);function Qa(e,t){if(t.has(e))return!0;t.add(e);for(let n of jn(e))if(ri(n)){if(!n.rule.ref||Yr(n.rule.ref)&&!Qa(n.rule.ref,t)||Dr(n.rule.ref))return!1}else if(rr(n))return!1;else if(Yn(n))return!1;return!!e.definition}o(Qa,`isDataTypeRuleInternal`);function $a(e){return eo(e.type,new Set)}o($a,`isDataType`);function eo(e,t){if(t.has(e))return!0;if(t.add(e),tr(e)||Zr(e))return!1;if(Ti(e))return e.types.every(e=>eo(e,t));if(ai(e)){if(e.primitiveType!==void 0||e.stringType!==void 0)return!0;if(e.typeRef!==void 0){let n=e.typeRef.ref;return yi(n)?eo(n.type,t):!1}else return!1}else return!1}o(eo,`isDataTypeInternal`);function to(e){if(!hi(e)){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){let t=e.returnType.ref;if(t)return t.name}}}o(to,`getExplicitRuleType`);function no(e){if(Un(e))return Yr(e)&&Za(e)?e.name:to(e)??e.name;if(Nr(e)||yi(e)||ti(e))return e.name;if(Yn(e)){let t=ro(e);if(t)return t}else if(Tr(e))return e.name;throw Error(`Cannot get name of Unknown Type`)}o(no,`getTypeName`);function ro(e){if(e.inferredType)return e.inferredType.name;if(e.type?.ref)return no(e.type.ref)}o(ro,`getActionType`);function io(e){return hi(e)?e.type?.name??`string`:Yr(e)&&Za(e)?e.name:to(e)??e.name}o(io,`getRuleTypeName`);function ao(e){return hi(e)?e.type?.name??`string`:to(e)??e.name}o(ao,`getRuleType`);function oo(e){let t={s:!1,i:!1,u:!1},n=co(e.definition,t),r=Object.entries(t).filter(([,e])=>e).map(([e])=>e).join(``);return new RegExp(n,r)}o(oo,`terminalRegex`);var so=`[\\s\\S]`;function co(e,t){if(li(e))return lo(e);if(pi(e))return uo(e);if(sr(e))return mo(e);if(_i(e)){let t=e.rule.ref;if(!t)throw Error(`Missing rule reference.`);return go(co(t.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}else if(zr(e))return po(e);else if(ki(e))return fo(e);else if($r(e)){let n=e.regex.lastIndexOf(`/`),r=e.regex.substring(1,n),i=e.regex.substring(n+1);return t&&(t.i=i.includes(`i`),t.s=i.includes(`s`),t.u=i.includes(`u`)),go(r,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}else if(Ni(e))return go(so,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});else throw Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}o(co,`abstractElementToRegex`);function lo(e){return go(e.elements.map(e=>co(e)).join(`|`),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}o(lo,`terminalAlternativesToRegex`);function uo(e){return go(e.elements.map(e=>co(e)).join(``),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}o(uo,`terminalGroupToRegex`);function fo(e){return go(`${so}*?${co(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}o(fo,`untilTokenToRegex`);function po(e){return go(`(?!${co(e.terminal)})${so}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}o(po,`negateTokenToRegex`);function mo(e){return e.right?go(`[${ho(e.left)}-${ho(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):go(ho(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}o(mo,`characterRangeToRegex`);function ho(e){return Oa(e.value)}o(ho,`keywordToRegex`);function go(e,t){return(t.parenthesized||t.lookahead||t.wrap!==!1)&&(e=`(${t.lookahead??(t.parenthesized?``:`?:`)}${e})`),t.cardinality?`${e}${t.cardinality}`:e}o(go,`withCardinality`);function _o(e){let t=[],n=e.Grammar;for(let e of n.rules)hi(e)&&La(e)&&Ta(oo(e))&&t.push(e.name);return{multilineCommentRules:t,nameRegexp:Wi}}o(_o,`createGrammarConfig`);var vo=typeof global==`object`&&global&&global.Object===Object&&global,yo=typeof self==`object`&&self&&self.Object===Object&&self,bo=vo||yo||Function(`return this`)(),xo=bo.Symbol,So=Object.prototype,Co=So.hasOwnProperty,wo=So.toString,To=xo?xo.toStringTag:void 0;function Eo(e){var t=Co.call(e,To),n=e[To];try{e[To]=void 0;var r=!0}catch{}var i=wo.call(e);return r&&(t?e[To]=n:delete e[To]),i}o(Eo,`getRawTag`);var Do=Eo,Oo=Object.prototype.toString;function ko(e){return Oo.call(e)}o(ko,`objectToString`);var Ao=ko,jo=`[object Null]`,Mo=`[object Undefined]`,No=xo?xo.toStringTag:void 0;function Po(e){return e==null?e===void 0?Mo:jo:No&&No in Object(e)?Do(e):Ao(e)}o(Po,`baseGetTag`);var Fo=Po;function Io(e){return typeof e==`object`&&!!e}o(Io,`isObjectLike`);var Lo=Io,Ro=`[object Symbol]`;function zo(e){return typeof e==`symbol`||Lo(e)&&Fo(e)==Ro}o(zo,`isSymbol`);var Bo=zo;function Vo(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}o(Vo,`arrayMap`);var Ho=Vo,I=Array.isArray,Uo=1/0,Wo=xo?xo.prototype:void 0,Go=Wo?Wo.toString:void 0;function Ko(e){if(typeof e==`string`)return e;if(I(e))return Ho(e,Ko)+``;if(Bo(e))return Go?Go.call(e):``;var t=e+``;return t==`0`&&1/e==-Uo?`-0`:t}o(Ko,`baseToString`);var qo=Ko,Jo=/\s/;function Yo(e){for(var t=e.length;t--&&Jo.test(e.charAt(t)););return t}o(Yo,`trimmedEndIndex`);var Xo=Yo,Zo=/^\s+/;function Qo(e){return e&&e.slice(0,Xo(e)+1).replace(Zo,``)}o(Qo,`baseTrim`);var $o=Qo;function es(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}o(es,`isObject`);var ts=es,ns=NaN,rs=/^[-+]0x[0-9a-f]+$/i,is=/^0b[01]+$/i,as=/^0o[0-7]+$/i,os=parseInt;function ss(e){if(typeof e==`number`)return e;if(Bo(e))return ns;if(ts(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=ts(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=$o(e);var n=is.test(e);return n||as.test(e)?os(e.slice(2),n?2:8):rs.test(e)?ns:+e}o(ss,`toNumber`);var cs=ss,ls=1/0,us=17976931348623157e292;function ds(e){return e?(e=cs(e),e===ls||e===-ls?(e<0?-1:1)*us:e===e?e:0):e===0?e:0}o(ds,`toFinite`);var fs=ds;function ps(e){var t=fs(e),n=t%1;return t===t?n?t-n:t:0}o(ps,`toInteger`);var ms=ps;function hs(e){return e}o(hs,`identity`);var gs=hs,_s=`[object AsyncFunction]`,vs=`[object Function]`,ys=`[object GeneratorFunction]`,bs=`[object Proxy]`;function xs(e){if(!ts(e))return!1;var t=Fo(e);return t==vs||t==ys||t==_s||t==bs}o(xs,`isFunction`);var Ss=xs,Cs=bo[`__core-js_shared__`],ws=(function(){var e=/[^.]+$/.exec(Cs&&Cs.keys&&Cs.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})();function Ts(e){return!!ws&&ws in e}o(Ts,`isMasked`);var Es=Ts,Ds=Function.prototype.toString;function Os(e){if(e!=null){try{return Ds.call(e)}catch{}try{return e+``}catch{}}return``}o(Os,`toSource`);var ks=Os,As=/[\\^$.*+?()[\]{}|]/g,js=/^\[object .+?Constructor\]$/,Ms=Function.prototype,Ns=Object.prototype,Ps=Ms.toString,Fs=Ns.hasOwnProperty,Is=RegExp(`^`+Ps.call(Fs).replace(As,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Ls(e){return!ts(e)||Es(e)?!1:(Ss(e)?Is:js).test(ks(e))}o(Ls,`baseIsNative`);var Rs=Ls;function zs(e,t){return e?.[t]}o(zs,`getValue`);var Bs=zs;function Vs(e,t){var n=Bs(e,t);return Rs(n)?n:void 0}o(Vs,`getNative`);var Hs=Vs,Us=Hs(bo,`WeakMap`),Ws=Object.create,Gs=(function(){function e(){}return o(e,`object`),function(t){if(!ts(t))return{};if(Ws)return Ws(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function Ks(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}o(Ks,`apply`);var qs=Ks;function Js(){}o(Js,`noop`);var Ys=Js;function Xs(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}o(Xs,`copyArray`);var Zs=Xs,Qs=800,$s=16,ec=Date.now;function tc(e){var t=0,n=0;return function(){var r=ec(),i=$s-(r-n);if(n=r,i>0){if(++t>=Qs)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}o(tc,`shortOut`);var nc=tc;function rc(e){return function(){return e}}o(rc,`constant`);var ic=rc,ac=(function(){try{var e=Hs(Object,`defineProperty`);return e({},``,{}),e}catch{}})(),oc=nc(ac?function(e,t){return ac(e,`toString`,{configurable:!0,enumerable:!1,value:ic(t),writable:!0})}:gs);function sc(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}o(sc,`arrayEach`);var cc=sc;function lc(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}o(lc,`baseFindIndex`);var uc=lc;function dc(e){return e!==e}o(dc,`baseIsNaN`);var fc=dc;function pc(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}o(pc,`strictIndexOf`);var mc=pc;function hc(e,t,n){return t===t?mc(e,t,n):uc(e,fc,n)}o(hc,`baseIndexOf`);var gc=hc;function _c(e,t){return!!(e!=null&&e.length)&&gc(e,t,0)>-1}o(_c,`arrayIncludes`);var vc=_c,yc=9007199254740991,bc=/^(?:0|[1-9]\d*)$/;function xc(e,t){var n=typeof e;return t??=yc,!!t&&(n==`number`||n!=`symbol`&&bc.test(e))&&e>-1&&e%1==0&&e<t}o(xc,`isIndex`);var Sc=xc;function Cc(e,t,n){t==`__proto__`&&ac?ac(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}o(Cc,`baseAssignValue`);var wc=Cc;function Tc(e,t){return e===t||e!==e&&t!==t}o(Tc,`eq`);var Ec=Tc,Dc=Object.prototype.hasOwnProperty;function Oc(e,t,n){var r=e[t];(!(Dc.call(e,t)&&Ec(r,n))||n===void 0&&!(t in e))&&wc(e,t,n)}o(Oc,`assignValue`);var kc=Oc;function Ac(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?wc(n,s,c):kc(n,s,c)}return n}o(Ac,`copyObject`);var jc=Ac,Mc=Math.max;function Nc(e,t,n){return t=Mc(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Mc(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),qs(e,this,s)}}o(Nc,`overRest`);var Pc=Nc;function Fc(e,t){return oc(Pc(e,t,gs),e+``)}o(Fc,`baseRest`);var Ic=Fc,Lc=9007199254740991;function Rc(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Lc}o(Rc,`isLength`);var zc=Rc;function Bc(e){return e!=null&&zc(e.length)&&!Ss(e)}o(Bc,`isArrayLike`);var Vc=Bc;function Hc(e,t,n){if(!ts(n))return!1;var r=typeof t;return(r==`number`?Vc(n)&&Sc(t,n.length):r==`string`&&t in n)?Ec(n[t],e):!1}o(Hc,`isIterateeCall`);var Uc=Hc;function Wc(e){return Ic(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Uc(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}o(Wc,`createAssigner`);var Gc=Wc,Kc=Object.prototype;function qc(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Kc)}o(qc,`isPrototype`);var Jc=qc;function Yc(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}o(Yc,`baseTimes`);var Xc=Yc,Zc=`[object Arguments]`;function Qc(e){return Lo(e)&&Fo(e)==Zc}o(Qc,`baseIsArguments`);var $c=Qc,el=Object.prototype,tl=el.hasOwnProperty,nl=el.propertyIsEnumerable,rl=$c((function(){return arguments})())?$c:function(e){return Lo(e)&&tl.call(e,`callee`)&&!nl.call(e,`callee`)};function il(){return!1}o(il,`stubFalse`);var al=il,ol=typeof exports==`object`&&exports&&!exports.nodeType&&exports,sl=ol&&typeof module==`object`&&module&&!module.nodeType&&module,cl=sl&&sl.exports===ol?bo.Buffer:void 0,ll=(cl?cl.isBuffer:void 0)||al,ul=`[object Arguments]`,dl=`[object Array]`,fl=`[object Boolean]`,pl=`[object Date]`,ml=`[object Error]`,hl=`[object Function]`,gl=`[object Map]`,_l=`[object Number]`,vl=`[object Object]`,yl=`[object RegExp]`,bl=`[object Set]`,xl=`[object String]`,Sl=`[object WeakMap]`,Cl=`[object ArrayBuffer]`,wl=`[object DataView]`,Tl=`[object Float32Array]`,El=`[object Float64Array]`,Dl=`[object Int8Array]`,Ol=`[object Int16Array]`,kl=`[object Int32Array]`,Al=`[object Uint8Array]`,jl=`[object Uint8ClampedArray]`,Ml=`[object Uint16Array]`,Nl=`[object Uint32Array]`,L={};L[Tl]=L[El]=L[Dl]=L[Ol]=L[kl]=L[Al]=L[jl]=L[Ml]=L[Nl]=!0,L[ul]=L[dl]=L[Cl]=L[fl]=L[wl]=L[pl]=L[ml]=L[hl]=L[gl]=L[_l]=L[vl]=L[yl]=L[bl]=L[xl]=L[Sl]=!1;function Pl(e){return Lo(e)&&zc(e.length)&&!!L[Fo(e)]}o(Pl,`baseIsTypedArray`);var Fl=Pl;function Il(e){return function(t){return e(t)}}o(Il,`baseUnary`);var Ll=Il,Rl=typeof exports==`object`&&exports&&!exports.nodeType&&exports,zl=Rl&&typeof module==`object`&&module&&!module.nodeType&&module,Bl=zl&&zl.exports===Rl&&vo.process,Vl=(function(){try{return zl&&zl.require&&zl.require(`util`).types||Bl&&Bl.binding&&Bl.binding(`util`)}catch{}})(),Hl=Vl&&Vl.isTypedArray,Ul=Hl?Ll(Hl):Fl,Wl=Object.prototype.hasOwnProperty;function Gl(e,t){var n=I(e),r=!n&&rl(e),i=!n&&!r&&ll(e),a=!n&&!r&&!i&&Ul(e),o=n||r||i||a,s=o?Xc(e.length,String):[],c=s.length;for(var l in e)(t||Wl.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Sc(l,c)))&&s.push(l);return s}o(Gl,`arrayLikeKeys`);var Kl=Gl;function ql(e,t){return function(n){return e(t(n))}}o(ql,`overArg`);var Jl=ql,Yl=Jl(Object.keys,Object),Xl=Object.prototype.hasOwnProperty;function Zl(e){if(!Jc(e))return Yl(e);var t=[];for(var n in Object(e))Xl.call(e,n)&&n!=`constructor`&&t.push(n);return t}o(Zl,`baseKeys`);var Ql=Zl;function $l(e){return Vc(e)?Kl(e):Ql(e)}o($l,`keys`);var eu=$l,tu=Object.prototype.hasOwnProperty,nu=Gc(function(e,t){if(Jc(t)||Vc(t)){jc(t,eu(t),e);return}for(var n in t)tu.call(t,n)&&kc(e,n,t[n])});function ru(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}o(ru,`nativeKeysIn`);var iu=ru,au=Object.prototype.hasOwnProperty;function ou(e){if(!ts(e))return iu(e);var t=Jc(e),n=[];for(var r in e)r==`constructor`&&(t||!au.call(e,r))||n.push(r);return n}o(ou,`baseKeysIn`);var su=ou;function cu(e){return Vc(e)?Kl(e,!0):su(e)}o(cu,`keysIn`);var lu=cu,uu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,du=/^\w*$/;function fu(e,t){if(I(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Bo(e)?!0:du.test(e)||!uu.test(e)||t!=null&&e in Object(t)}o(fu,`isKey`);var pu=fu,mu=Hs(Object,`create`);function hu(){this.__data__=mu?mu(null):{},this.size=0}o(hu,`hashClear`);var gu=hu;function _u(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}o(_u,`hashDelete`);var vu=_u,yu=`__lodash_hash_undefined__`,bu=Object.prototype.hasOwnProperty;function xu(e){var t=this.__data__;if(mu){var n=t[e];return n===yu?void 0:n}return bu.call(t,e)?t[e]:void 0}o(xu,`hashGet`);var Su=xu,Cu=Object.prototype.hasOwnProperty;function wu(e){var t=this.__data__;return mu?t[e]!==void 0:Cu.call(t,e)}o(wu,`hashHas`);var Tu=wu,Eu=`__lodash_hash_undefined__`;function Du(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=mu&&t===void 0?Eu:t,this}o(Du,`hashSet`);var Ou=Du;function ku(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o(ku,`Hash`),ku.prototype.clear=gu,ku.prototype.delete=vu,ku.prototype.get=Su,ku.prototype.has=Tu,ku.prototype.set=Ou;var Au=ku;function ju(){this.__data__=[],this.size=0}o(ju,`listCacheClear`);var Mu=ju;function Nu(e,t){for(var n=e.length;n--;)if(Ec(e[n][0],t))return n;return-1}o(Nu,`assocIndexOf`);var Pu=Nu,Fu=Array.prototype.splice;function Iu(e){var t=this.__data__,n=Pu(t,e);return n<0?!1:(n==t.length-1?t.pop():Fu.call(t,n,1),--this.size,!0)}o(Iu,`listCacheDelete`);var Lu=Iu;function Ru(e){var t=this.__data__,n=Pu(t,e);return n<0?void 0:t[n][1]}o(Ru,`listCacheGet`);var zu=Ru;function Bu(e){return Pu(this.__data__,e)>-1}o(Bu,`listCacheHas`);var Vu=Bu;function Hu(e,t){var n=this.__data__,r=Pu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}o(Hu,`listCacheSet`);var Uu=Hu;function Wu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o(Wu,`ListCache`),Wu.prototype.clear=Mu,Wu.prototype.delete=Lu,Wu.prototype.get=zu,Wu.prototype.has=Vu,Wu.prototype.set=Uu;var Gu=Wu,Ku=Hs(bo,`Map`);function qu(){this.size=0,this.__data__={hash:new Au,map:new(Ku||Gu),string:new Au}}o(qu,`mapCacheClear`);var Ju=qu;function Yu(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}o(Yu,`isKeyable`);var Xu=Yu;function Zu(e,t){var n=e.__data__;return Xu(t)?n[typeof t==`string`?`string`:`hash`]:n.map}o(Zu,`getMapData`);var Qu=Zu;function $u(e){var t=Qu(this,e).delete(e);return this.size-=+!!t,t}o($u,`mapCacheDelete`);var ed=$u;function td(e){return Qu(this,e).get(e)}o(td,`mapCacheGet`);var nd=td;function rd(e){return Qu(this,e).has(e)}o(rd,`mapCacheHas`);var id=rd;function ad(e,t){var n=Qu(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}o(ad,`mapCacheSet`);var od=ad;function sd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o(sd,`MapCache`),sd.prototype.clear=Ju,sd.prototype.delete=ed,sd.prototype.get=nd,sd.prototype.has=id,sd.prototype.set=od;var cd=sd,ld=`Expected a function`;function ud(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(ld);var n=o(function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o},`memoized`);return n.cache=new(ud.Cache||cd),n}o(ud,`memoize`),ud.Cache=cd;var dd=ud,fd=500;function pd(e){var t=dd(e,function(e){return n.size===fd&&n.clear(),e}),n=t.cache;return t}o(pd,`memoizeCapped`);var md=pd,hd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gd=/\\(\\)?/g,_d=md(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(hd,function(e,n,r,i){t.push(r?i.replace(gd,`$1`):n||e)}),t});function vd(e){return e==null?``:qo(e)}o(vd,`toString`);var yd=vd;function bd(e,t){return I(e)?e:pu(e,t)?[e]:_d(yd(e))}o(bd,`castPath`);var xd=bd,Sd=1/0;function Cd(e){if(typeof e==`string`||Bo(e))return e;var t=e+``;return t==`0`&&1/e==-Sd?`-0`:t}o(Cd,`toKey`);var wd=Cd;function Td(e,t){t=xd(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[wd(t[n++])];return n&&n==r?e:void 0}o(Td,`baseGet`);var Ed=Td;function Dd(e,t,n){var r=e==null?void 0:Ed(e,t);return r===void 0?n:r}o(Dd,`get`);var Od=Dd;function kd(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}o(kd,`arrayPush`);var Ad=kd,jd=xo?xo.isConcatSpreadable:void 0;function Md(e){return I(e)||rl(e)||!!(jd&&e&&e[jd])}o(Md,`isFlattenable`);var Nd=Md;function Pd(e,t,n,r,i){var a=-1,o=e.length;for(n||=Nd,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Pd(s,t-1,n,r,i):Ad(i,s):r||(i[i.length]=s)}return i}o(Pd,`baseFlatten`);var Fd=Pd;function Id(e){return e!=null&&e.length?Fd(e,1):[]}o(Id,`flatten`);var Ld=Id,Rd=Jl(Object.getPrototypeOf,Object);function zd(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}o(zd,`baseSlice`);var Bd=zd;function Vd(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}o(Vd,`arrayReduce`);var Hd=Vd;function Ud(){this.__data__=new Gu,this.size=0}o(Ud,`stackClear`);var Wd=Ud;function Gd(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}o(Gd,`stackDelete`);var Kd=Gd;function qd(e){return this.__data__.get(e)}o(qd,`stackGet`);var Jd=qd;function Yd(e){return this.__data__.has(e)}o(Yd,`stackHas`);var Xd=Yd,Zd=200;function Qd(e,t){var n=this.__data__;if(n instanceof Gu){var r=n.__data__;if(!Ku||r.length<Zd-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new cd(r)}return n.set(e,t),this.size=n.size,this}o(Qd,`stackSet`);var $d=Qd;function ef(e){var t=this.__data__=new Gu(e);this.size=t.size}o(ef,`Stack`),ef.prototype.clear=Wd,ef.prototype.delete=Kd,ef.prototype.get=Jd,ef.prototype.has=Xd,ef.prototype.set=$d;var tf=ef;function nf(e,t){return e&&jc(t,eu(t),e)}o(nf,`baseAssign`);var rf=nf;function af(e,t){return e&&jc(t,lu(t),e)}o(af,`baseAssignIn`);var of=af,sf=typeof exports==`object`&&exports&&!exports.nodeType&&exports,cf=sf&&typeof module==`object`&&module&&!module.nodeType&&module,lf=cf&&cf.exports===sf?bo.Buffer:void 0,uf=lf?lf.allocUnsafe:void 0;function df(e,t){if(t)return e.slice();var n=e.length,r=uf?uf(n):new e.constructor(n);return e.copy(r),r}o(df,`cloneBuffer`);var ff=df;function pf(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}o(pf,`arrayFilter`);var mf=pf;function hf(){return[]}o(hf,`stubArray`);var gf=hf,_f=Object.prototype.propertyIsEnumerable,vf=Object.getOwnPropertySymbols,yf=vf?function(e){return e==null?[]:(e=Object(e),mf(vf(e),function(t){return _f.call(e,t)}))}:gf;function bf(e,t){return jc(e,yf(e),t)}o(bf,`copySymbols`);var xf=bf,Sf=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ad(t,yf(e)),e=Rd(e);return t}:gf;function Cf(e,t){return jc(e,Sf(e),t)}o(Cf,`copySymbolsIn`);var wf=Cf;function Tf(e,t,n){var r=t(e);return I(e)?r:Ad(r,n(e))}o(Tf,`baseGetAllKeys`);var Ef=Tf;function Df(e){return Ef(e,eu,yf)}o(Df,`getAllKeys`);var Of=Df;function kf(e){return Ef(e,lu,Sf)}o(kf,`getAllKeysIn`);var Af=kf,jf=Hs(bo,`DataView`),Mf=Hs(bo,`Promise`),Nf=Hs(bo,`Set`),Pf=`[object Map]`,Ff=`[object Object]`,If=`[object Promise]`,Lf=`[object Set]`,Rf=`[object WeakMap]`,zf=`[object DataView]`,Bf=ks(jf),Vf=ks(Ku),Hf=ks(Mf),Uf=ks(Nf),Wf=ks(Us),Gf=Fo;(jf&&Gf(new jf(new ArrayBuffer(1)))!=zf||Ku&&Gf(new Ku)!=Pf||Mf&&Gf(Mf.resolve())!=If||Nf&&Gf(new Nf)!=Lf||Us&&Gf(new Us)!=Rf)&&(Gf=o(function(e){var t=Fo(e),n=t==Ff?e.constructor:void 0,r=n?ks(n):``;if(r)switch(r){case Bf:return zf;case Vf:return Pf;case Hf:return If;case Uf:return Lf;case Wf:return Rf}return t},`getTag`));var Kf=Gf,qf=Object.prototype.hasOwnProperty;function Jf(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&qf.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}o(Jf,`initCloneArray`);var Yf=Jf,Xf=bo.Uint8Array;function Zf(e){var t=new e.constructor(e.byteLength);return new Xf(t).set(new Xf(e)),t}o(Zf,`cloneArrayBuffer`);var Qf=Zf;function $f(e,t){var n=t?Qf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}o($f,`cloneDataView`);var ep=$f,tp=/\w*$/;function np(e){var t=new e.constructor(e.source,tp.exec(e));return t.lastIndex=e.lastIndex,t}o(np,`cloneRegExp`);var rp=np,ip=xo?xo.prototype:void 0,ap=ip?ip.valueOf:void 0;function op(e){return ap?Object(ap.call(e)):{}}o(op,`cloneSymbol`);var sp=op;function cp(e,t){var n=t?Qf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}o(cp,`cloneTypedArray`);var lp=cp,up=`[object Boolean]`,dp=`[object Date]`,fp=`[object Map]`,pp=`[object Number]`,mp=`[object RegExp]`,hp=`[object Set]`,gp=`[object String]`,_p=`[object Symbol]`,vp=`[object ArrayBuffer]`,yp=`[object DataView]`,bp=`[object Float32Array]`,xp=`[object Float64Array]`,Sp=`[object Int8Array]`,Cp=`[object Int16Array]`,wp=`[object Int32Array]`,Tp=`[object Uint8Array]`,Ep=`[object Uint8ClampedArray]`,Dp=`[object Uint16Array]`,Op=`[object Uint32Array]`;function kp(e,t,n){var r=e.constructor;switch(t){case vp:return Qf(e);case up:case dp:return new r(+e);case yp:return ep(e,n);case bp:case xp:case Sp:case Cp:case wp:case Tp:case Ep:case Dp:case Op:return lp(e,n);case fp:return new r;case pp:case gp:return new r(e);case mp:return rp(e);case hp:return new r;case _p:return sp(e)}}o(kp,`initCloneByTag`);var Ap=kp;function jp(e){return typeof e.constructor==`function`&&!Jc(e)?Gs(Rd(e)):{}}o(jp,`initCloneObject`);var Mp=jp,Np=`[object Map]`;function Pp(e){return Lo(e)&&Kf(e)==Np}o(Pp,`baseIsMap`);var Fp=Pp,Ip=Vl&&Vl.isMap,Lp=Ip?Ll(Ip):Fp,Rp=`[object Set]`;function zp(e){return Lo(e)&&Kf(e)==Rp}o(zp,`baseIsSet`);var Bp=zp,Vp=Vl&&Vl.isSet,Hp=Vp?Ll(Vp):Bp,Up=1,Wp=2,Gp=4,Kp=`[object Arguments]`,qp=`[object Array]`,Jp=`[object Boolean]`,Yp=`[object Date]`,Xp=`[object Error]`,Zp=`[object Function]`,Qp=`[object GeneratorFunction]`,$p=`[object Map]`,em=`[object Number]`,tm=`[object Object]`,nm=`[object RegExp]`,rm=`[object Set]`,im=`[object String]`,am=`[object Symbol]`,om=`[object WeakMap]`,sm=`[object ArrayBuffer]`,cm=`[object DataView]`,lm=`[object Float32Array]`,um=`[object Float64Array]`,dm=`[object Int8Array]`,fm=`[object Int16Array]`,pm=`[object Int32Array]`,mm=`[object Uint8Array]`,hm=`[object Uint8ClampedArray]`,gm=`[object Uint16Array]`,_m=`[object Uint32Array]`,R={};R[Kp]=R[qp]=R[sm]=R[cm]=R[Jp]=R[Yp]=R[lm]=R[um]=R[dm]=R[fm]=R[pm]=R[$p]=R[em]=R[tm]=R[nm]=R[rm]=R[im]=R[am]=R[mm]=R[hm]=R[gm]=R[_m]=!0,R[Xp]=R[Zp]=R[om]=!1;function vm(e,t,n,r,i,a){var o,s=t&Up,c=t&Wp,l=t&Gp;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!ts(e))return e;var u=I(e);if(u){if(o=Yf(e),!s)return Zs(e,o)}else{var d=Kf(e),f=d==Zp||d==Qp;if(ll(e))return ff(e,s);if(d==tm||d==Kp||f&&!i){if(o=c||f?{}:Mp(e),!s)return c?wf(e,of(o,e)):xf(e,rf(o,e))}else{if(!R[d])return i?e:{};o=Ap(e,d,s)}}a||=new tf;var p=a.get(e);if(p)return p;a.set(e,o),Hp(e)?e.forEach(function(r){o.add(vm(r,t,n,r,e,a))}):Lp(e)&&e.forEach(function(r,i){o.set(i,vm(r,t,n,i,e,a))});var m=u?void 0:(l?c?Af:Of:c?lu:eu)(e);return cc(m||e,function(r,i){m&&(i=r,r=e[i]),kc(o,i,vm(r,t,n,i,e,a))}),o}o(vm,`baseClone`);var ym=vm,bm=4;function xm(e){return ym(e,bm)}o(xm,`clone`);var Sm=xm;function Cm(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}o(Cm,`compact`);var wm=Cm,Tm=`__lodash_hash_undefined__`;function Em(e){return this.__data__.set(e,Tm),this}o(Em,`setCacheAdd`);var Dm=Em;function Om(e){return this.__data__.has(e)}o(Om,`setCacheHas`);var km=Om;function Am(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new cd;++t<n;)this.add(e[t])}o(Am,`SetCache`),Am.prototype.add=Am.prototype.push=Dm,Am.prototype.has=km;var jm=Am;function Mm(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}o(Mm,`arraySome`);var Nm=Mm;function Pm(e,t){return e.has(t)}o(Pm,`cacheHas`);var Fm=Pm,Im=1,Lm=2;function Rm(e,t,n,r,i,a){var o=n&Im,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Lm?new jm:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!Nm(t,function(e,t){if(!Fm(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}o(Rm,`equalArrays`);var zm=Rm;function Bm(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}o(Bm,`mapToArray`);var Vm=Bm;function Hm(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}o(Hm,`setToArray`);var Um=Hm,Wm=1,Gm=2,Km=`[object Boolean]`,qm=`[object Date]`,Jm=`[object Error]`,Ym=`[object Map]`,Xm=`[object Number]`,Zm=`[object RegExp]`,Qm=`[object Set]`,$m=`[object String]`,eh=`[object Symbol]`,th=`[object ArrayBuffer]`,nh=`[object DataView]`,rh=xo?xo.prototype:void 0,ih=rh?rh.valueOf:void 0;function ah(e,t,n,r,i,a,o){switch(n){case nh:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case th:return!(e.byteLength!=t.byteLength||!a(new Xf(e),new Xf(t)));case Km:case qm:case Xm:return Ec(+e,+t);case Jm:return e.name==t.name&&e.message==t.message;case Zm:case $m:return e==t+``;case Ym:var s=Vm;case Qm:var c=r&Wm;if(s||=Um,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=Gm,o.set(e,t);var u=zm(s(e),s(t),r,i,a,o);return o.delete(e),u;case eh:if(ih)return ih.call(e)==ih.call(t)}return!1}o(ah,`equalByTag`);var oh=ah,sh=1,ch=Object.prototype.hasOwnProperty;function lh(e,t,n,r,i,a){var o=n&sh,s=Of(e),c=s.length;if(c!=Of(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:ch.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}o(lh,`equalObjects`);var uh=lh,dh=1,fh=`[object Arguments]`,ph=`[object Array]`,mh=`[object Object]`,hh=Object.prototype.hasOwnProperty;function gh(e,t,n,r,i,a){var o=I(e),s=I(t),c=o?ph:Kf(e),l=s?ph:Kf(t);c=c==fh?mh:c,l=l==fh?mh:l;var u=c==mh,d=l==mh,f=c==l;if(f&&ll(e)){if(!ll(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new tf,o||Ul(e)?zm(e,t,n,r,i,a):oh(e,t,c,n,r,i,a);if(!(n&dh)){var p=u&&hh.call(e,`__wrapped__`),m=d&&hh.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new tf,i(h,g,n,r,a)}}return f?(a||=new tf,uh(e,t,n,r,i,a)):!1}o(gh,`baseIsEqualDeep`);var _h=gh;function vh(e,t,n,r,i){return e===t?!0:e==null||t==null||!Lo(e)&&!Lo(t)?e!==e&&t!==t:_h(e,t,n,r,vh,i)}o(vh,`baseIsEqual`);var yh=vh,bh=1,xh=2;function Sh(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new tf;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?yh(u,l,bh|xh,r,d):f))return!1}}return!0}o(Sh,`baseIsMatch`);var Ch=Sh;function wh(e){return e===e&&!ts(e)}o(wh,`isStrictComparable`);var Th=wh;function Eh(e){for(var t=eu(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Th(i)]}return t}o(Eh,`getMatchData`);var Dh=Eh;function Oh(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}o(Oh,`matchesStrictComparable`);var kh=Oh;function Ah(e){var t=Dh(e);return t.length==1&&t[0][2]?kh(t[0][0],t[0][1]):function(n){return n===e||Ch(n,e,t)}}o(Ah,`baseMatches`);var jh=Ah;function Mh(e,t){return e!=null&&t in Object(e)}o(Mh,`baseHasIn`);var Nh=Mh;function Ph(e,t,n){t=xd(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=wd(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&zc(i)&&Sc(o,i)&&(I(e)||rl(e)))}o(Ph,`hasPath`);var Fh=Ph;function Ih(e,t){return e!=null&&Fh(e,t,Nh)}o(Ih,`hasIn`);var Lh=Ih,Rh=1,zh=2;function Bh(e,t){return pu(e)&&Th(t)?kh(wd(e),t):function(n){var r=Od(n,e);return r===void 0&&r===t?Lh(n,e):yh(t,r,Rh|zh)}}o(Bh,`baseMatchesProperty`);var Vh=Bh;function Hh(e){return function(t){return t?.[e]}}o(Hh,`baseProperty`);var Uh=Hh;function Wh(e){return function(t){return Ed(t,e)}}o(Wh,`basePropertyDeep`);var Gh=Wh;function Kh(e){return pu(e)?Uh(wd(e)):Gh(e)}o(Kh,`property`);var qh=Kh;function Jh(e){return typeof e==`function`?e:e==null?gs:typeof e==`object`?I(e)?Vh(e[0],e[1]):jh(e):qh(e)}o(Jh,`baseIteratee`);var Yh=Jh;function Xh(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}o(Xh,`arrayAggregator`);var Zh=Xh;function Qh(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}o(Qh,`createBaseFor`);var $h=Qh();function eg(e,t){return e&&$h(e,t,eu)}o(eg,`baseForOwn`);var tg=eg;function ng(e,t){return function(n,r){if(n==null)return n;if(!Vc(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}o(ng,`createBaseEach`);var rg=ng(tg);function ig(e,t,n,r){return rg(e,function(e,i,a){t(r,e,n(e),a)}),r}o(ig,`baseAggregator`);var ag=ig;function og(e,t){return function(n,r){var i=I(n)?Zh:ag,a=t?t():{};return i(n,e,Yh(r,2),a)}}o(og,`createAggregator`);var sg=og,cg=Object.prototype,lg=cg.hasOwnProperty,ug=Ic(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&Uc(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],o=lu(a),s=-1,c=o.length;++s<c;){var l=o[s],u=e[l];(u===void 0||Ec(u,cg[l])&&!lg.call(e,l))&&(e[l]=a[l])}return e});function dg(e){return Lo(e)&&Vc(e)}o(dg,`isArrayLikeObject`);var fg=dg;function pg(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}o(pg,`arrayIncludesWith`);var mg=pg,hg=200;function gg(e,t,n,r){var i=-1,a=vc,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=Ho(t,Ll(n))),r?(a=mg,o=!1):t.length>=hg&&(a=Fm,o=!1,t=new jm(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}o(gg,`baseDifference`);var _g=gg,vg=Ic(function(e,t){return fg(e)?_g(e,Fd(t,1,fg,!0)):[]});function yg(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}o(yg,`last`);var bg=yg;function xg(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:ms(t),Bd(e,t<0?0:t,r)):[]}o(xg,`drop`);var Sg=xg;function Cg(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:ms(t),t=r-t,Bd(e,0,t<0?0:t)):[]}o(Cg,`dropRight`);var wg=Cg;function Tg(e){return typeof e==`function`?e:gs}o(Tg,`castFunction`);var Eg=Tg;function Dg(e,t){return(I(e)?cc:rg)(e,Eg(t))}o(Dg,`forEach`);var z=Dg;function Og(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}o(Og,`arrayEvery`);var kg=Og;function Ag(e,t){var n=!0;return rg(e,function(e,r,i){return n=!!t(e,r,i),n}),n}o(Ag,`baseEvery`);var jg=Ag;function Mg(e,t,n){var r=I(e)?kg:jg;return n&&Uc(e,t,n)&&(t=void 0),r(e,Yh(t,3))}o(Mg,`every`);var Ng=Mg;function Pg(e,t){var n=[];return rg(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}o(Pg,`baseFilter`);var Fg=Pg;function Ig(e,t){return(I(e)?mf:Fg)(e,Yh(t,3))}o(Ig,`filter`);var Lg=Ig;function Rg(e){return function(t,n,r){var i=Object(t);if(!Vc(t)){var a=Yh(n,3);t=eu(t),n=o(function(e){return a(i[e],e,i)},`predicate`)}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:void 0}}o(Rg,`createFind`);var zg=Rg,Bg=Math.max;function Vg(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:ms(n);return i<0&&(i=Bg(r+i,0)),uc(e,Yh(t,3),i)}o(Vg,`findIndex`);var Hg=zg(Vg);function Ug(e){return e&&e.length?e[0]:void 0}o(Ug,`head`);var Wg=Ug;function Gg(e,t){var n=-1,r=Vc(e)?Array(e.length):[];return rg(e,function(e,i,a){r[++n]=t(e,i,a)}),r}o(Gg,`baseMap`);var Kg=Gg;function qg(e,t){return(I(e)?Ho:Kg)(e,Yh(t,3))}o(qg,`map`);var B=qg;function Jg(e,t){return Fd(B(e,t),1)}o(Jg,`flatMap`);var Yg=Jg,Xg=Object.prototype.hasOwnProperty,Zg=sg(function(e,t,n){Xg.call(e,n)?e[n].push(t):wc(e,n,[t])}),Qg=Object.prototype.hasOwnProperty;function $g(e,t){return e!=null&&Qg.call(e,t)}o($g,`baseHas`);var e_=$g;function t_(e,t){return e!=null&&Fh(e,t,e_)}o(t_,`has`);var V=t_,n_=`[object String]`;function r_(e){return typeof e==`string`||!I(e)&&Lo(e)&&Fo(e)==n_}o(r_,`isString`);var i_=r_;function a_(e,t){return Ho(t,function(t){return e[t]})}o(a_,`baseValues`);var o_=a_;function s_(e){return e==null?[]:o_(e,eu(e))}o(s_,`values`);var H=s_,c_=Math.max;function l_(e,t,n,r){e=Vc(e)?e:H(e),n=n&&!r?ms(n):0;var i=e.length;return n<0&&(n=c_(i+n,0)),i_(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&gc(e,t,n)>-1}o(l_,`includes`);var u_=l_,d_=Math.max;function f_(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:ms(n);return i<0&&(i=d_(r+i,0)),gc(e,t,i)}o(f_,`indexOf`);var p_=f_,m_=`[object Map]`,h_=`[object Set]`,g_=Object.prototype.hasOwnProperty;function __(e){if(e==null)return!0;if(Vc(e)&&(I(e)||typeof e==`string`||typeof e.splice==`function`||ll(e)||Ul(e)||rl(e)))return!e.length;var t=Kf(e);if(t==m_||t==h_)return!e.size;if(Jc(e))return!Ql(e).length;for(var n in e)if(g_.call(e,n))return!1;return!0}o(__,`isEmpty`);var U=__,v_=`[object RegExp]`;function y_(e){return Lo(e)&&Fo(e)==v_}o(y_,`baseIsRegExp`);var b_=y_,x_=Vl&&Vl.isRegExp,S_=x_?Ll(x_):b_;function C_(e){return e===void 0}o(C_,`isUndefined`);var w_=C_,T_=`Expected a function`;function E_(e){if(typeof e!=`function`)throw TypeError(T_);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)}}o(E_,`negate`);var D_=E_;function O_(e,t,n,r){if(!ts(e))return e;t=xd(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=wd(t[i]),l=n;if(c===`__proto__`||c===`constructor`||c===`prototype`)return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=ts(u)?u:Sc(t[i+1])?[]:{})}kc(s,c,l),s=s[c]}return e}o(O_,`baseSet`);var k_=O_;function A_(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ed(e,o);n(s,o)&&k_(a,xd(o,e),s)}return a}o(A_,`basePickBy`);var j_=A_;function M_(e,t){if(e==null)return{};var n=Ho(Af(e),function(e){return[e]});return t=Yh(t),j_(e,n,function(e,n){return t(e,n[0])})}o(M_,`pickBy`);var N_=M_;function P_(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}o(P_,`baseReduce`);var F_=P_;function I_(e,t,n){var r=I(e)?Hd:F_,i=arguments.length<3;return r(e,Yh(t,4),n,i,rg)}o(I_,`reduce`);var L_=I_;function R_(e,t){return(I(e)?mf:Fg)(e,D_(Yh(t,3)))}o(R_,`reject`);var z_=R_;function B_(e,t){var n;return rg(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}o(B_,`baseSome`);var V_=B_;function H_(e,t,n){var r=I(e)?Nm:V_;return n&&Uc(e,t,n)&&(t=void 0),r(e,Yh(t,3))}o(H_,`some`);var U_=H_,W_=Nf&&1/Um(new Nf([,-0]))[1]==1/0?function(e){return new Nf(e)}:Ys,G_=200;function K_(e,t,n){var r=-1,i=vc,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=mg;else if(a>=G_){var l=t?null:W_(e);if(l)return Um(l);o=!1,i=Fm,c=new jm}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}o(K_,`baseUniq`);var q_=K_;function J_(e){return e&&e.length?q_(e):[]}o(J_,`uniq`);var Y_=J_;function X_(e){console&&console.error&&console.error(`Error: ${e}`)}o(X_,`PRINT_ERROR`);function Z_(e){console&&console.warn&&console.warn(`Warning: ${e}`)}o(Z_,`PRINT_WARNING`);function Q_(e){let t=new Date().getTime(),n=e();return{time:new Date().getTime()-t,value:n}}o(Q_,`timer`);function $_(e){function t(){}o(t,`FakeConstructor`),t.prototype=e;let n=new t;function r(){return typeof n.bar}return o(r,`fakeAccess`),r(),r(),e}o($_,`toFastProperties`);function ev(e){return tv(e)?e.LABEL:e.name}o(ev,`tokenLabel`);function tv(e){return i_(e.LABEL)&&e.LABEL!==``}o(tv,`hasTokenLabel`);var nv=class{static{o(this,`AbstractProduction`)}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),z(this.definition,t=>{t.accept(e)})}},rv=class extends nv{static{o(this,`NonTerminal`)}constructor(e){super([]),this.idx=1,nu(this,N_(e,e=>e!==void 0))}set definition(e){}get definition(){return this.referencedRule===void 0?[]:this.referencedRule.definition}accept(e){e.visit(this)}},iv=class extends nv{static{o(this,`Rule`)}constructor(e){super(e.definition),this.orgText=``,nu(this,N_(e,e=>e!==void 0))}},av=class extends nv{static{o(this,`Alternative`)}constructor(e){super(e.definition),this.ignoreAmbiguities=!1,nu(this,N_(e,e=>e!==void 0))}},ov=class extends nv{static{o(this,`Option`)}constructor(e){super(e.definition),this.idx=1,nu(this,N_(e,e=>e!==void 0))}},sv=class extends nv{static{o(this,`RepetitionMandatory`)}constructor(e){super(e.definition),this.idx=1,nu(this,N_(e,e=>e!==void 0))}},cv=class extends nv{static{o(this,`RepetitionMandatoryWithSeparator`)}constructor(e){super(e.definition),this.idx=1,nu(this,N_(e,e=>e!==void 0))}},W=class extends nv{static{o(this,`Repetition`)}constructor(e){super(e.definition),this.idx=1,nu(this,N_(e,e=>e!==void 0))}},lv=class extends nv{static{o(this,`RepetitionWithSeparator`)}constructor(e){super(e.definition),this.idx=1,nu(this,N_(e,e=>e!==void 0))}},uv=class extends nv{static{o(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,nu(this,N_(e,e=>e!==void 0))}},G=class{static{o(this,`Terminal`)}constructor(e){this.idx=1,nu(this,N_(e,e=>e!==void 0))}accept(e){e.visit(this)}};function dv(e){return B(e,fv)}o(dv,`serializeGrammar`);function fv(e){function t(e){return B(e,fv)}if(o(t,`convertDefinition`),e instanceof rv){let t={type:`NonTerminal`,name:e.nonTerminalName,idx:e.idx};return i_(e.label)&&(t.label=e.label),t}else if(e instanceof av)return{type:`Alternative`,definition:t(e.definition)};else if(e instanceof ov)return{type:`Option`,idx:e.idx,definition:t(e.definition)};else if(e instanceof sv)return{type:`RepetitionMandatory`,idx:e.idx,definition:t(e.definition)};else if(e instanceof cv)return{type:`RepetitionMandatoryWithSeparator`,idx:e.idx,separator:fv(new G({terminalType:e.separator})),definition:t(e.definition)};else if(e instanceof lv)return{type:`RepetitionWithSeparator`,idx:e.idx,separator:fv(new G({terminalType:e.separator})),definition:t(e.definition)};else if(e instanceof W)return{type:`Repetition`,idx:e.idx,definition:t(e.definition)};else if(e instanceof uv)return{type:`Alternation`,idx:e.idx,definition:t(e.definition)};else if(e instanceof G){let t={type:`Terminal`,name:e.terminalType.name,label:ev(e.terminalType),idx:e.idx};i_(e.label)&&(t.terminalLabel=e.label);let n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=S_(n)?n.source:n),t}else if(e instanceof iv)return{type:`Rule`,name:e.name,orgText:e.orgText,definition:t(e.definition)};else throw Error(`non exhaustive match`)}o(fv,`serializeProduction`);var pv=class{static{o(this,`GAstVisitor`)}visit(e){let t=e;switch(t.constructor){case rv:return this.visitNonTerminal(t);case av:return this.visitAlternative(t);case ov:return this.visitOption(t);case sv:return this.visitRepetitionMandatory(t);case cv:return this.visitRepetitionMandatoryWithSeparator(t);case lv:return this.visitRepetitionWithSeparator(t);case W:return this.visitRepetition(t);case uv:return this.visitAlternation(t);case G:return this.visitTerminal(t);case iv: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 mv(e){return e instanceof av||e instanceof ov||e instanceof W||e instanceof sv||e instanceof cv||e instanceof lv||e instanceof G||e instanceof iv}o(mv,`isSequenceProd`);function hv(e,t=[]){return e instanceof ov||e instanceof W||e instanceof lv?!0:e instanceof uv?U_(e.definition,e=>hv(e,t)):e instanceof rv&&u_(t,e)?!1:e instanceof nv?(e instanceof rv&&t.push(e),Ng(e.definition,e=>hv(e,t))):!1}o(hv,`isOptionalProd`);function gv(e){return e instanceof uv}o(gv,`isBranchingProd`);function _v(e){if(e instanceof rv)return`SUBRULE`;if(e instanceof ov)return`OPTION`;if(e instanceof uv)return`OR`;if(e instanceof sv)return`AT_LEAST_ONE`;if(e instanceof cv)return`AT_LEAST_ONE_SEP`;if(e instanceof lv)return`MANY_SEP`;if(e instanceof W)return`MANY`;if(e instanceof G)return`CONSUME`;throw Error(`non exhaustive match`)}o(_v,`getProductionDslName`);var vv=class{static{o(this,`RestWalker`)}walk(e,t=[]){z(e.definition,(n,r)=>{let i=Sg(e.definition,r+1);if(n instanceof rv)this.walkProdRef(n,i,t);else if(n instanceof G)this.walkTerminal(n,i,t);else if(n instanceof av)this.walkFlat(n,i,t);else if(n instanceof ov)this.walkOption(n,i,t);else if(n instanceof sv)this.walkAtLeastOne(n,i,t);else if(n instanceof cv)this.walkAtLeastOneSep(n,i,t);else if(n instanceof lv)this.walkManySep(n,i,t);else if(n instanceof W)this.walkMany(n,i,t);else if(n instanceof uv)this.walkOr(n,i,t);else throw Error(`non exhaustive match`)})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){let r=t.concat(n);this.walk(e,r)}walkOption(e,t,n){let r=t.concat(n);this.walk(e,r)}walkAtLeastOne(e,t,n){let r=[new ov({definition:e.definition})].concat(t,n);this.walk(e,r)}walkAtLeastOneSep(e,t,n){let r=yv(e,t,n);this.walk(e,r)}walkMany(e,t,n){let r=[new ov({definition:e.definition})].concat(t,n);this.walk(e,r)}walkManySep(e,t,n){let r=yv(e,t,n);this.walk(e,r)}walkOr(e,t,n){let r=t.concat(n);z(e.definition,e=>{let t=new av({definition:[e]});this.walk(t,r)})}};function yv(e,t,n){return[new ov({definition:[new G({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}o(yv,`restForRepetitionWithSeparator`);function bv(e){if(e instanceof rv)return bv(e.referencedRule);if(e instanceof G)return Cv(e);if(mv(e))return xv(e);if(gv(e))return Sv(e);throw Error(`non exhaustive match`)}o(bv,`first`);function xv(e){let t=[],n=e.definition,r=0,i=n.length>r,a,o=!0;for(;i&&o;)a=n[r],o=hv(a),t=t.concat(bv(a)),r+=1,i=n.length>r;return Y_(t)}o(xv,`firstForSequence`);function Sv(e){return Y_(Ld(B(e.definition,e=>bv(e))))}o(Sv,`firstForBranching`);function Cv(e){return[e.terminalType]}o(Cv,`firstForTerminal`);var wv=`_~IN~_`,Tv=class extends vv{static{o(this,`ResyncFollowsWalker`)}constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){let r=Dv(e.referencedRule,e.idx)+this.topProd.name,i=bv(new av({definition:t.concat(n)}));this.follows[r]=i}};function Ev(e){let t={};return z(e,e=>{nu(t,new Tv(e).startWalking())}),t}o(Ev,`computeAllProdsFollows`);function Dv(e,t){return e.name+t+wv}o(Dv,`buildBetweenProdsFollowPrefix`);var Ov={},kv=new ya;function Av(e){let t=e.toString();if(Ov.hasOwnProperty(t))return Ov[t];{let e=kv.pattern(t);return Ov[t]=e,e}}o(Av,`getRegExpAst`);function jv(){Ov={}}o(jv,`clearRegExpParserCache`);var Mv=`Complement Sets are not supported for first char optimization`,Nv=`Unable to use "first char" lexer optimizations:
46
+ \r \v \xA0            \u2028\u2029   `.split(``);function Da(e){let t=typeof e==`string`?new RegExp(e):e;return Ea.some(e=>t.test(e))}o(Da,`isWhitespace`);function Oa(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}o(Oa,`escapeRegExp`);function ka(e,t){let n=Aa(e),r=t.match(n);return!!r&&r[0].length>0}o(ka,`partialMatches`);function Aa(e){typeof e==`string`&&(e=new RegExp(e));let t=e,n=e.source,r=0;function i(){let e=``,a;function s(t){e+=n.substr(r,t),r+=t}o(s,`appendRaw`);function c(t){e+=`(?:`+n.substr(r,t)+`|$)`,r+=t}for(o(c,`appendOptional`);r<n.length;)switch(n[r]){case`\\`:switch(n[r+1]){case`c`:c(3);break;case`x`:c(4);break;case`u`:t.unicode?n[r+2]===`{`?c(n.indexOf(`}`,r)-r+1):c(6):c(2);break;case`p`:case`P`:t.unicode?c(n.indexOf(`}`,r)-r+1):c(2);break;case`k`:c(n.indexOf(`>`,r)-r+1);break;default:c(2);break}break;case`[`:a=/\[(?:\\.|.)*?\]/g,a.lastIndex=r,a=a.exec(n)||[],c(a[0].length);break;case`|`:case`^`:case`$`:case`*`:case`+`:case`?`:s(1);break;case`{`:a=/\{\d+,?\d*\}/g,a.lastIndex=r,a=a.exec(n),a?s(a[0].length):c(1);break;case`(`:if(n[r+1]===`?`)switch(n[r+2]){case`:`:e+=`(?:`,r+=3,e+=i()+`|$)`;break;case`=`:e+=`(?=`,r+=3,e+=i()+`)`;break;case`!`:a=r,r+=3,i(),e+=n.substr(a,r-a);break;case`<`:switch(n[r+3]){case`=`:case`!`:a=r,r+=4,i(),e+=n.substr(a,r-a);break;default:s(n.indexOf(`>`,r)-r+1),e+=i()+`|$)`;break}break}else s(1),e+=i()+`|$)`;break;case`)`:return++r,e;default:c(1);break}return e}return o(i,`process`),new RegExp(i(),e.flags)}o(Aa,`partialRegExp`);function ja(e){return e.rules.find(e=>Yr(e)&&e.entry)}o(ja,`getEntryRule`);function Ma(e){return e.rules.filter(e=>hi(e)&&e.hidden)}o(Ma,`getHiddenRules`);function Na(e,t){let n=new Set,r=ja(e);if(!r)return new Set(e.rules);let i=[r].concat(Ma(e));for(let e of i)Pa(e,n,t);let a=new Set;for(let t of e.rules)(n.has(t.name)||hi(t)&&t.hidden)&&a.add(t);return a}o(Na,`getAllReachableRules`);function Pa(e,t,n){t.add(e.name),jn(e).forEach(e=>{if(ri(e)||n&&_i(e)){let r=e.rule.ref;r&&!t.has(r.name)&&Pa(r,t,n)}})}o(Pa,`ruleDfs`);function Fa(e){let t=new Set;return jn(e).forEach(e=>{pr(e)&&(Yr(e.type.ref)&&t.add(e.type.ref),Tr(e.type.ref)&&Yr(e.type.ref.$container)&&t.add(e.type.ref.$container))}),t}o(Fa,`getAllRulesUsedForCrossReferences`);function Ia(e){if(e.terminal)return e.terminal;if(e.type.ref)return Ga(e.type.ref)?.terminal}o(Ia,`getCrossReferenceTerminal`);function La(e){return e.hidden&&!Da(oo(e))}o(La,`isCommentTerminal`);function Ra(e,t){return!e||!t?[]:Ba(e,t,e.astNode,!0)}o(Ra,`findNodesForProperty`);function za(e,t,n){if(!e||!t)return;let r=Ba(e,t,e.astNode,!0);if(r.length!==0)return n=n===void 0?0:Math.max(0,Math.min(n,r.length-1)),r[n]}o(za,`findNodeForProperty`);function Ba(e,t,n,r){if(!r){let n=Tn(e.grammarSource,rr);if(n&&n.feature===t)return[e]}return pn(e)&&e.astNode===n?e.content.flatMap(e=>Ba(e,t,n,!1)):[]}o(Ba,`findNodesForPropertyInternal`);function Va(e,t){return e?Ua(e,t,e?.astNode):[]}o(Va,`findNodesForKeyword`);function Ha(e,t,n){if(!e)return;let r=Ua(e,t,e?.astNode);if(r.length!==0)return n=n===void 0?0:Math.max(0,Math.min(n,r.length-1)),r[n]}o(Ha,`findNodeForKeyword`);function Ua(e,t,n){if(e.astNode!==n)return[];if(Fr(e.grammarSource)&&e.grammarSource.value===t)return[e];let r=Ii(e).iterator(),i,a=[];do if(i=r.next(),!i.done){let e=i.value;e.astNode===n?Fr(e.grammarSource)&&e.grammarSource.value===t&&a.push(e):r.prune()}while(!i.done);return a}o(Ua,`findNodesForKeywordInternal`);function Wa(e){let t=e.astNode;for(;t===e.container?.astNode;){let t=Tn(e.grammarSource,rr);if(t)return t;e=e.container}}o(Wa,`findAssignment`);function Ga(e){let t=e;return Tr(t)&&(Yn(t.$container)?t=t.$container.$container:Un(t.$container)?t=t.$container:aa(t.$container)),Ka(e,t,new Map)}o(Ga,`findNameAssignment`);function Ka(e,t,n){function r(t,r){let i;return Tn(t,rr)||(i=Ka(r,r,n)),n.set(e,i),i}if(o(r,`go`),n.has(e))return n.get(e);n.set(e,void 0);for(let i of jn(t))if(rr(i)&&i.feature.toLowerCase()===`name`)return n.set(e,i),i;else if(ri(i)&&Yr(i.rule.ref))return r(i,i.rule.ref);else if(ai(i)&&i.typeRef?.ref)return r(i,i.typeRef.ref)}o(Ka,`findNameAssignmentInternal`);function qa(e){let t=e.$container;if(Cr(t)){let n=t.elements,r=n.indexOf(e);for(let e=r-1;e>=0;e--){let t=n[e];if(Yn(t))return t;{let t=jn(n[e]).find(Yn);if(t)return t}}}if(Vn(t))return qa(t)}o(qa,`getActionAtElement`);function Ja(e,t){return e===`?`||e===`*`||Cr(t)&&!!t.guardCondition}o(Ja,`isOptionalCardinality`);function Ya(e){return e===`*`||e===`+`}o(Ya,`isArrayCardinality`);function Xa(e){return e===`+=`}o(Xa,`isArrayOperator`);function Za(e){return Qa(e,new Set)}o(Za,`isDataTypeRule`);function Qa(e,t){if(t.has(e))return!0;t.add(e);for(let n of jn(e))if(ri(n)){if(!n.rule.ref||Yr(n.rule.ref)&&!Qa(n.rule.ref,t)||Dr(n.rule.ref))return!1}else if(rr(n))return!1;else if(Yn(n))return!1;return!!e.definition}o(Qa,`isDataTypeRuleInternal`);function $a(e){return eo(e.type,new Set)}o($a,`isDataType`);function eo(e,t){if(t.has(e))return!0;if(t.add(e),tr(e)||Zr(e))return!1;if(Ti(e))return e.types.every(e=>eo(e,t));if(ai(e)){if(e.primitiveType!==void 0||e.stringType!==void 0)return!0;if(e.typeRef!==void 0){let n=e.typeRef.ref;return yi(n)?eo(n.type,t):!1}else return!1}else return!1}o(eo,`isDataTypeInternal`);function to(e){if(!hi(e)){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){let t=e.returnType.ref;if(t)return t.name}}}o(to,`getExplicitRuleType`);function no(e){if(Un(e))return Yr(e)&&Za(e)?e.name:to(e)??e.name;if(Nr(e)||yi(e)||ti(e))return e.name;if(Yn(e)){let t=ro(e);if(t)return t}else if(Tr(e))return e.name;throw Error(`Cannot get name of Unknown Type`)}o(no,`getTypeName`);function ro(e){if(e.inferredType)return e.inferredType.name;if(e.type?.ref)return no(e.type.ref)}o(ro,`getActionType`);function io(e){return hi(e)?e.type?.name??`string`:Yr(e)&&Za(e)?e.name:to(e)??e.name}o(io,`getRuleTypeName`);function ao(e){return hi(e)?e.type?.name??`string`:to(e)??e.name}o(ao,`getRuleType`);function oo(e){let t={s:!1,i:!1,u:!1},n=co(e.definition,t),r=Object.entries(t).filter(([,e])=>e).map(([e])=>e).join(``);return new RegExp(n,r)}o(oo,`terminalRegex`);var so=`[\\s\\S]`;function co(e,t){if(li(e))return lo(e);if(pi(e))return uo(e);if(sr(e))return mo(e);if(_i(e)){let t=e.rule.ref;if(!t)throw Error(`Missing rule reference.`);return go(co(t.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}else if(zr(e))return po(e);else if(ki(e))return fo(e);else if($r(e)){let n=e.regex.lastIndexOf(`/`),r=e.regex.substring(1,n),i=e.regex.substring(n+1);return t&&(t.i=i.includes(`i`),t.s=i.includes(`s`),t.u=i.includes(`u`)),go(r,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}else if(Ni(e))return go(so,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});else throw Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}o(co,`abstractElementToRegex`);function lo(e){return go(e.elements.map(e=>co(e)).join(`|`),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}o(lo,`terminalAlternativesToRegex`);function uo(e){return go(e.elements.map(e=>co(e)).join(``),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}o(uo,`terminalGroupToRegex`);function fo(e){return go(`${so}*?${co(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}o(fo,`untilTokenToRegex`);function po(e){return go(`(?!${co(e.terminal)})${so}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}o(po,`negateTokenToRegex`);function mo(e){return e.right?go(`[${ho(e.left)}-${ho(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):go(ho(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}o(mo,`characterRangeToRegex`);function ho(e){return Oa(e.value)}o(ho,`keywordToRegex`);function go(e,t){return(t.parenthesized||t.lookahead||t.wrap!==!1)&&(e=`(${t.lookahead??(t.parenthesized?``:`?:`)}${e})`),t.cardinality?`${e}${t.cardinality}`:e}o(go,`withCardinality`);function _o(e){let t=[],n=e.Grammar;for(let e of n.rules)hi(e)&&La(e)&&Ta(oo(e))&&t.push(e.name);return{multilineCommentRules:t,nameRegexp:Wi}}o(_o,`createGrammarConfig`);var vo=typeof global==`object`&&global&&global.Object===Object&&global,yo=typeof self==`object`&&self&&self.Object===Object&&self,bo=vo||yo||Function(`return this`)(),xo=bo.Symbol,So=Object.prototype,Co=So.hasOwnProperty,wo=So.toString,To=xo?xo.toStringTag:void 0;function Eo(e){var t=Co.call(e,To),n=e[To];try{e[To]=void 0;var r=!0}catch{}var i=wo.call(e);return r&&(t?e[To]=n:delete e[To]),i}o(Eo,`getRawTag`);var Do=Eo,Oo=Object.prototype.toString;function ko(e){return Oo.call(e)}o(ko,`objectToString`);var Ao=ko,jo=`[object Null]`,Mo=`[object Undefined]`,No=xo?xo.toStringTag:void 0;function Po(e){return e==null?e===void 0?Mo:jo:No&&No in Object(e)?Do(e):Ao(e)}o(Po,`baseGetTag`);var Fo=Po;function Io(e){return typeof e==`object`&&!!e}o(Io,`isObjectLike`);var Lo=Io,Ro=`[object Symbol]`;function zo(e){return typeof e==`symbol`||Lo(e)&&Fo(e)==Ro}o(zo,`isSymbol`);var Bo=zo;function Vo(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}o(Vo,`arrayMap`);var Ho=Vo,I=Array.isArray,Uo=1/0,Wo=xo?xo.prototype:void 0,Go=Wo?Wo.toString:void 0;function Ko(e){if(typeof e==`string`)return e;if(I(e))return Ho(e,Ko)+``;if(Bo(e))return Go?Go.call(e):``;var t=e+``;return t==`0`&&1/e==-Uo?`-0`:t}o(Ko,`baseToString`);var qo=Ko,Jo=/\s/;function Yo(e){for(var t=e.length;t--&&Jo.test(e.charAt(t)););return t}o(Yo,`trimmedEndIndex`);var Xo=Yo,Zo=/^\s+/;function Qo(e){return e&&e.slice(0,Xo(e)+1).replace(Zo,``)}o(Qo,`baseTrim`);var $o=Qo;function es(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}o(es,`isObject`);var ts=es,ns=NaN,rs=/^[-+]0x[0-9a-f]+$/i,is=/^0b[01]+$/i,as=/^0o[0-7]+$/i,os=parseInt;function ss(e){if(typeof e==`number`)return e;if(Bo(e))return ns;if(ts(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=ts(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=$o(e);var n=is.test(e);return n||as.test(e)?os(e.slice(2),n?2:8):rs.test(e)?ns:+e}o(ss,`toNumber`);var cs=ss,ls=1/0,us=17976931348623157e292;function ds(e){return e?(e=cs(e),e===ls||e===-ls?(e<0?-1:1)*us:e===e?e:0):e===0?e:0}o(ds,`toFinite`);var fs=ds;function ps(e){var t=fs(e),n=t%1;return t===t?n?t-n:t:0}o(ps,`toInteger`);var ms=ps;function hs(e){return e}o(hs,`identity`);var gs=hs,_s=`[object AsyncFunction]`,vs=`[object Function]`,ys=`[object GeneratorFunction]`,bs=`[object Proxy]`;function xs(e){if(!ts(e))return!1;var t=Fo(e);return t==vs||t==ys||t==_s||t==bs}o(xs,`isFunction`);var Ss=xs,Cs=bo[`__core-js_shared__`],ws=(function(){var e=/[^.]+$/.exec(Cs&&Cs.keys&&Cs.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})();function Ts(e){return!!ws&&ws in e}o(Ts,`isMasked`);var Es=Ts,Ds=Function.prototype.toString;function Os(e){if(e!=null){try{return Ds.call(e)}catch{}try{return e+``}catch{}}return``}o(Os,`toSource`);var ks=Os,As=/[\\^$.*+?()[\]{}|]/g,js=/^\[object .+?Constructor\]$/,Ms=Function.prototype,Ns=Object.prototype,Ps=Ms.toString,Fs=Ns.hasOwnProperty,Is=RegExp(`^`+Ps.call(Fs).replace(As,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Ls(e){return!ts(e)||Es(e)?!1:(Ss(e)?Is:js).test(ks(e))}o(Ls,`baseIsNative`);var Rs=Ls;function zs(e,t){return e?.[t]}o(zs,`getValue`);var Bs=zs;function Vs(e,t){var n=Bs(e,t);return Rs(n)?n:void 0}o(Vs,`getNative`);var Hs=Vs,Us=Hs(bo,`WeakMap`),Ws=Object.create,Gs=(function(){function e(){}return o(e,`object`),function(t){if(!ts(t))return{};if(Ws)return Ws(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function Ks(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}o(Ks,`apply`);var qs=Ks;function Js(){}o(Js,`noop`);var Ys=Js;function Xs(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}o(Xs,`copyArray`);var Zs=Xs,Qs=800,$s=16,ec=Date.now;function tc(e){var t=0,n=0;return function(){var r=ec(),i=$s-(r-n);if(n=r,i>0){if(++t>=Qs)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}o(tc,`shortOut`);var nc=tc;function rc(e){return function(){return e}}o(rc,`constant`);var ic=rc,ac=(function(){try{var e=Hs(Object,`defineProperty`);return e({},``,{}),e}catch{}})(),oc=nc(ac?function(e,t){return ac(e,`toString`,{configurable:!0,enumerable:!1,value:ic(t),writable:!0})}:gs);function sc(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}o(sc,`arrayEach`);var cc=sc;function lc(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}o(lc,`baseFindIndex`);var uc=lc;function dc(e){return e!==e}o(dc,`baseIsNaN`);var fc=dc;function pc(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}o(pc,`strictIndexOf`);var mc=pc;function hc(e,t,n){return t===t?mc(e,t,n):uc(e,fc,n)}o(hc,`baseIndexOf`);var gc=hc;function _c(e,t){return!!(e!=null&&e.length)&&gc(e,t,0)>-1}o(_c,`arrayIncludes`);var vc=_c,yc=9007199254740991,bc=/^(?:0|[1-9]\d*)$/;function xc(e,t){var n=typeof e;return t??=yc,!!t&&(n==`number`||n!=`symbol`&&bc.test(e))&&e>-1&&e%1==0&&e<t}o(xc,`isIndex`);var Sc=xc;function Cc(e,t,n){t==`__proto__`&&ac?ac(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}o(Cc,`baseAssignValue`);var wc=Cc;function Tc(e,t){return e===t||e!==e&&t!==t}o(Tc,`eq`);var Ec=Tc,Dc=Object.prototype.hasOwnProperty;function Oc(e,t,n){var r=e[t];(!(Dc.call(e,t)&&Ec(r,n))||n===void 0&&!(t in e))&&wc(e,t,n)}o(Oc,`assignValue`);var kc=Oc;function Ac(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?wc(n,s,c):kc(n,s,c)}return n}o(Ac,`copyObject`);var jc=Ac,Mc=Math.max;function Nc(e,t,n){return t=Mc(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Mc(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),qs(e,this,s)}}o(Nc,`overRest`);var Pc=Nc;function Fc(e,t){return oc(Pc(e,t,gs),e+``)}o(Fc,`baseRest`);var Ic=Fc,Lc=9007199254740991;function Rc(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Lc}o(Rc,`isLength`);var zc=Rc;function Bc(e){return e!=null&&zc(e.length)&&!Ss(e)}o(Bc,`isArrayLike`);var Vc=Bc;function Hc(e,t,n){if(!ts(n))return!1;var r=typeof t;return(r==`number`?Vc(n)&&Sc(t,n.length):r==`string`&&t in n)?Ec(n[t],e):!1}o(Hc,`isIterateeCall`);var Uc=Hc;function Wc(e){return Ic(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Uc(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}o(Wc,`createAssigner`);var Gc=Wc,Kc=Object.prototype;function qc(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Kc)}o(qc,`isPrototype`);var Jc=qc;function Yc(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}o(Yc,`baseTimes`);var Xc=Yc,Zc=`[object Arguments]`;function Qc(e){return Lo(e)&&Fo(e)==Zc}o(Qc,`baseIsArguments`);var $c=Qc,el=Object.prototype,tl=el.hasOwnProperty,nl=el.propertyIsEnumerable,rl=$c((function(){return arguments})())?$c:function(e){return Lo(e)&&tl.call(e,`callee`)&&!nl.call(e,`callee`)};function il(){return!1}o(il,`stubFalse`);var al=il,ol=typeof exports==`object`&&exports&&!exports.nodeType&&exports,sl=ol&&typeof module==`object`&&module&&!module.nodeType&&module,cl=sl&&sl.exports===ol?bo.Buffer:void 0,ll=(cl?cl.isBuffer:void 0)||al,ul=`[object Arguments]`,dl=`[object Array]`,fl=`[object Boolean]`,pl=`[object Date]`,ml=`[object Error]`,hl=`[object Function]`,gl=`[object Map]`,_l=`[object Number]`,vl=`[object Object]`,yl=`[object RegExp]`,bl=`[object Set]`,xl=`[object String]`,Sl=`[object WeakMap]`,Cl=`[object ArrayBuffer]`,wl=`[object DataView]`,Tl=`[object Float32Array]`,El=`[object Float64Array]`,Dl=`[object Int8Array]`,Ol=`[object Int16Array]`,kl=`[object Int32Array]`,Al=`[object Uint8Array]`,jl=`[object Uint8ClampedArray]`,Ml=`[object Uint16Array]`,Nl=`[object Uint32Array]`,L={};L[Tl]=L[El]=L[Dl]=L[Ol]=L[kl]=L[Al]=L[jl]=L[Ml]=L[Nl]=!0,L[ul]=L[dl]=L[Cl]=L[fl]=L[wl]=L[pl]=L[ml]=L[hl]=L[gl]=L[_l]=L[vl]=L[yl]=L[bl]=L[xl]=L[Sl]=!1;function Pl(e){return Lo(e)&&zc(e.length)&&!!L[Fo(e)]}o(Pl,`baseIsTypedArray`);var Fl=Pl;function Il(e){return function(t){return e(t)}}o(Il,`baseUnary`);var Ll=Il,Rl=typeof exports==`object`&&exports&&!exports.nodeType&&exports,zl=Rl&&typeof module==`object`&&module&&!module.nodeType&&module,Bl=zl&&zl.exports===Rl&&vo.process,Vl=(function(){try{return zl&&zl.require&&zl.require(`util`).types||Bl&&Bl.binding&&Bl.binding(`util`)}catch{}})(),Hl=Vl&&Vl.isTypedArray,Ul=Hl?Ll(Hl):Fl,Wl=Object.prototype.hasOwnProperty;function Gl(e,t){var n=I(e),r=!n&&rl(e),i=!n&&!r&&ll(e),a=!n&&!r&&!i&&Ul(e),o=n||r||i||a,s=o?Xc(e.length,String):[],c=s.length;for(var l in e)(t||Wl.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Sc(l,c)))&&s.push(l);return s}o(Gl,`arrayLikeKeys`);var Kl=Gl;function ql(e,t){return function(n){return e(t(n))}}o(ql,`overArg`);var Jl=ql,Yl=Jl(Object.keys,Object),Xl=Object.prototype.hasOwnProperty;function Zl(e){if(!Jc(e))return Yl(e);var t=[];for(var n in Object(e))Xl.call(e,n)&&n!=`constructor`&&t.push(n);return t}o(Zl,`baseKeys`);var Ql=Zl;function $l(e){return Vc(e)?Kl(e):Ql(e)}o($l,`keys`);var eu=$l,tu=Object.prototype.hasOwnProperty,nu=Gc(function(e,t){if(Jc(t)||Vc(t)){jc(t,eu(t),e);return}for(var n in t)tu.call(t,n)&&kc(e,n,t[n])});function ru(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}o(ru,`nativeKeysIn`);var iu=ru,au=Object.prototype.hasOwnProperty;function ou(e){if(!ts(e))return iu(e);var t=Jc(e),n=[];for(var r in e)r==`constructor`&&(t||!au.call(e,r))||n.push(r);return n}o(ou,`baseKeysIn`);var su=ou;function cu(e){return Vc(e)?Kl(e,!0):su(e)}o(cu,`keysIn`);var lu=cu,uu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,du=/^\w*$/;function fu(e,t){if(I(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Bo(e)?!0:du.test(e)||!uu.test(e)||t!=null&&e in Object(t)}o(fu,`isKey`);var pu=fu,mu=Hs(Object,`create`);function hu(){this.__data__=mu?mu(null):{},this.size=0}o(hu,`hashClear`);var gu=hu;function _u(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}o(_u,`hashDelete`);var vu=_u,yu=`__lodash_hash_undefined__`,bu=Object.prototype.hasOwnProperty;function xu(e){var t=this.__data__;if(mu){var n=t[e];return n===yu?void 0:n}return bu.call(t,e)?t[e]:void 0}o(xu,`hashGet`);var Su=xu,Cu=Object.prototype.hasOwnProperty;function wu(e){var t=this.__data__;return mu?t[e]!==void 0:Cu.call(t,e)}o(wu,`hashHas`);var Tu=wu,Eu=`__lodash_hash_undefined__`;function Du(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=mu&&t===void 0?Eu:t,this}o(Du,`hashSet`);var Ou=Du;function ku(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o(ku,`Hash`),ku.prototype.clear=gu,ku.prototype.delete=vu,ku.prototype.get=Su,ku.prototype.has=Tu,ku.prototype.set=Ou;var Au=ku;function ju(){this.__data__=[],this.size=0}o(ju,`listCacheClear`);var Mu=ju;function Nu(e,t){for(var n=e.length;n--;)if(Ec(e[n][0],t))return n;return-1}o(Nu,`assocIndexOf`);var Pu=Nu,Fu=Array.prototype.splice;function Iu(e){var t=this.__data__,n=Pu(t,e);return n<0?!1:(n==t.length-1?t.pop():Fu.call(t,n,1),--this.size,!0)}o(Iu,`listCacheDelete`);var Lu=Iu;function Ru(e){var t=this.__data__,n=Pu(t,e);return n<0?void 0:t[n][1]}o(Ru,`listCacheGet`);var zu=Ru;function Bu(e){return Pu(this.__data__,e)>-1}o(Bu,`listCacheHas`);var Vu=Bu;function Hu(e,t){var n=this.__data__,r=Pu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}o(Hu,`listCacheSet`);var Uu=Hu;function Wu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o(Wu,`ListCache`),Wu.prototype.clear=Mu,Wu.prototype.delete=Lu,Wu.prototype.get=zu,Wu.prototype.has=Vu,Wu.prototype.set=Uu;var Gu=Wu,Ku=Hs(bo,`Map`);function qu(){this.size=0,this.__data__={hash:new Au,map:new(Ku||Gu),string:new Au}}o(qu,`mapCacheClear`);var Ju=qu;function Yu(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}o(Yu,`isKeyable`);var Xu=Yu;function Zu(e,t){var n=e.__data__;return Xu(t)?n[typeof t==`string`?`string`:`hash`]:n.map}o(Zu,`getMapData`);var Qu=Zu;function $u(e){var t=Qu(this,e).delete(e);return this.size-=+!!t,t}o($u,`mapCacheDelete`);var ed=$u;function td(e){return Qu(this,e).get(e)}o(td,`mapCacheGet`);var nd=td;function rd(e){return Qu(this,e).has(e)}o(rd,`mapCacheHas`);var id=rd;function ad(e,t){var n=Qu(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}o(ad,`mapCacheSet`);var od=ad;function sd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o(sd,`MapCache`),sd.prototype.clear=Ju,sd.prototype.delete=ed,sd.prototype.get=nd,sd.prototype.has=id,sd.prototype.set=od;var cd=sd,ld=`Expected a function`;function ud(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(ld);var n=o(function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o},`memoized`);return n.cache=new(ud.Cache||cd),n}o(ud,`memoize`),ud.Cache=cd;var dd=ud,fd=500;function pd(e){var t=dd(e,function(e){return n.size===fd&&n.clear(),e}),n=t.cache;return t}o(pd,`memoizeCapped`);var md=pd,hd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gd=/\\(\\)?/g,_d=md(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(hd,function(e,n,r,i){t.push(r?i.replace(gd,`$1`):n||e)}),t});function vd(e){return e==null?``:qo(e)}o(vd,`toString`);var yd=vd;function bd(e,t){return I(e)?e:pu(e,t)?[e]:_d(yd(e))}o(bd,`castPath`);var xd=bd,Sd=1/0;function Cd(e){if(typeof e==`string`||Bo(e))return e;var t=e+``;return t==`0`&&1/e==-Sd?`-0`:t}o(Cd,`toKey`);var wd=Cd;function Td(e,t){t=xd(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[wd(t[n++])];return n&&n==r?e:void 0}o(Td,`baseGet`);var Ed=Td;function Dd(e,t,n){var r=e==null?void 0:Ed(e,t);return r===void 0?n:r}o(Dd,`get`);var Od=Dd;function kd(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}o(kd,`arrayPush`);var Ad=kd,jd=xo?xo.isConcatSpreadable:void 0;function Md(e){return I(e)||rl(e)||!!(jd&&e&&e[jd])}o(Md,`isFlattenable`);var Nd=Md;function Pd(e,t,n,r,i){var a=-1,o=e.length;for(n||=Nd,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Pd(s,t-1,n,r,i):Ad(i,s):r||(i[i.length]=s)}return i}o(Pd,`baseFlatten`);var Fd=Pd;function Id(e){return e!=null&&e.length?Fd(e,1):[]}o(Id,`flatten`);var Ld=Id,Rd=Jl(Object.getPrototypeOf,Object);function zd(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}o(zd,`baseSlice`);var Bd=zd;function Vd(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}o(Vd,`arrayReduce`);var Hd=Vd;function Ud(){this.__data__=new Gu,this.size=0}o(Ud,`stackClear`);var Wd=Ud;function Gd(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}o(Gd,`stackDelete`);var Kd=Gd;function qd(e){return this.__data__.get(e)}o(qd,`stackGet`);var Jd=qd;function Yd(e){return this.__data__.has(e)}o(Yd,`stackHas`);var Xd=Yd,Zd=200;function Qd(e,t){var n=this.__data__;if(n instanceof Gu){var r=n.__data__;if(!Ku||r.length<Zd-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new cd(r)}return n.set(e,t),this.size=n.size,this}o(Qd,`stackSet`);var $d=Qd;function ef(e){var t=this.__data__=new Gu(e);this.size=t.size}o(ef,`Stack`),ef.prototype.clear=Wd,ef.prototype.delete=Kd,ef.prototype.get=Jd,ef.prototype.has=Xd,ef.prototype.set=$d;var tf=ef;function nf(e,t){return e&&jc(t,eu(t),e)}o(nf,`baseAssign`);var rf=nf;function af(e,t){return e&&jc(t,lu(t),e)}o(af,`baseAssignIn`);var of=af,sf=typeof exports==`object`&&exports&&!exports.nodeType&&exports,cf=sf&&typeof module==`object`&&module&&!module.nodeType&&module,lf=cf&&cf.exports===sf?bo.Buffer:void 0,uf=lf?lf.allocUnsafe:void 0;function df(e,t){if(t)return e.slice();var n=e.length,r=uf?uf(n):new e.constructor(n);return e.copy(r),r}o(df,`cloneBuffer`);var ff=df;function pf(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}o(pf,`arrayFilter`);var mf=pf;function hf(){return[]}o(hf,`stubArray`);var gf=hf,_f=Object.prototype.propertyIsEnumerable,vf=Object.getOwnPropertySymbols,yf=vf?function(e){return e==null?[]:(e=Object(e),mf(vf(e),function(t){return _f.call(e,t)}))}:gf;function bf(e,t){return jc(e,yf(e),t)}o(bf,`copySymbols`);var xf=bf,Sf=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ad(t,yf(e)),e=Rd(e);return t}:gf;function Cf(e,t){return jc(e,Sf(e),t)}o(Cf,`copySymbolsIn`);var wf=Cf;function Tf(e,t,n){var r=t(e);return I(e)?r:Ad(r,n(e))}o(Tf,`baseGetAllKeys`);var Ef=Tf;function Df(e){return Ef(e,eu,yf)}o(Df,`getAllKeys`);var Of=Df;function kf(e){return Ef(e,lu,Sf)}o(kf,`getAllKeysIn`);var Af=kf,jf=Hs(bo,`DataView`),Mf=Hs(bo,`Promise`),Nf=Hs(bo,`Set`),Pf=`[object Map]`,Ff=`[object Object]`,If=`[object Promise]`,Lf=`[object Set]`,Rf=`[object WeakMap]`,zf=`[object DataView]`,Bf=ks(jf),Vf=ks(Ku),Hf=ks(Mf),Uf=ks(Nf),Wf=ks(Us),Gf=Fo;(jf&&Gf(new jf(new ArrayBuffer(1)))!=zf||Ku&&Gf(new Ku)!=Pf||Mf&&Gf(Mf.resolve())!=If||Nf&&Gf(new Nf)!=Lf||Us&&Gf(new Us)!=Rf)&&(Gf=o(function(e){var t=Fo(e),n=t==Ff?e.constructor:void 0,r=n?ks(n):``;if(r)switch(r){case Bf:return zf;case Vf:return Pf;case Hf:return If;case Uf:return Lf;case Wf:return Rf}return t},`getTag`));var Kf=Gf,qf=Object.prototype.hasOwnProperty;function Jf(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&qf.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}o(Jf,`initCloneArray`);var Yf=Jf,Xf=bo.Uint8Array;function Zf(e){var t=new e.constructor(e.byteLength);return new Xf(t).set(new Xf(e)),t}o(Zf,`cloneArrayBuffer`);var Qf=Zf;function $f(e,t){var n=t?Qf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}o($f,`cloneDataView`);var ep=$f,tp=/\w*$/;function np(e){var t=new e.constructor(e.source,tp.exec(e));return t.lastIndex=e.lastIndex,t}o(np,`cloneRegExp`);var rp=np,ip=xo?xo.prototype:void 0,ap=ip?ip.valueOf:void 0;function op(e){return ap?Object(ap.call(e)):{}}o(op,`cloneSymbol`);var sp=op;function cp(e,t){var n=t?Qf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}o(cp,`cloneTypedArray`);var lp=cp,up=`[object Boolean]`,dp=`[object Date]`,fp=`[object Map]`,pp=`[object Number]`,mp=`[object RegExp]`,hp=`[object Set]`,gp=`[object String]`,_p=`[object Symbol]`,vp=`[object ArrayBuffer]`,yp=`[object DataView]`,bp=`[object Float32Array]`,xp=`[object Float64Array]`,Sp=`[object Int8Array]`,Cp=`[object Int16Array]`,wp=`[object Int32Array]`,Tp=`[object Uint8Array]`,Ep=`[object Uint8ClampedArray]`,Dp=`[object Uint16Array]`,Op=`[object Uint32Array]`;function kp(e,t,n){var r=e.constructor;switch(t){case vp:return Qf(e);case up:case dp:return new r(+e);case yp:return ep(e,n);case bp:case xp:case Sp:case Cp:case wp:case Tp:case Ep:case Dp:case Op:return lp(e,n);case fp:return new r;case pp:case gp:return new r(e);case mp:return rp(e);case hp:return new r;case _p:return sp(e)}}o(kp,`initCloneByTag`);var Ap=kp;function jp(e){return typeof e.constructor==`function`&&!Jc(e)?Gs(Rd(e)):{}}o(jp,`initCloneObject`);var Mp=jp,Np=`[object Map]`;function Pp(e){return Lo(e)&&Kf(e)==Np}o(Pp,`baseIsMap`);var Fp=Pp,Ip=Vl&&Vl.isMap,Lp=Ip?Ll(Ip):Fp,Rp=`[object Set]`;function zp(e){return Lo(e)&&Kf(e)==Rp}o(zp,`baseIsSet`);var Bp=zp,Vp=Vl&&Vl.isSet,Hp=Vp?Ll(Vp):Bp,Up=1,Wp=2,Gp=4,Kp=`[object Arguments]`,qp=`[object Array]`,Jp=`[object Boolean]`,Yp=`[object Date]`,Xp=`[object Error]`,Zp=`[object Function]`,Qp=`[object GeneratorFunction]`,$p=`[object Map]`,em=`[object Number]`,tm=`[object Object]`,nm=`[object RegExp]`,rm=`[object Set]`,im=`[object String]`,am=`[object Symbol]`,om=`[object WeakMap]`,sm=`[object ArrayBuffer]`,cm=`[object DataView]`,lm=`[object Float32Array]`,um=`[object Float64Array]`,dm=`[object Int8Array]`,fm=`[object Int16Array]`,pm=`[object Int32Array]`,mm=`[object Uint8Array]`,hm=`[object Uint8ClampedArray]`,gm=`[object Uint16Array]`,_m=`[object Uint32Array]`,R={};R[Kp]=R[qp]=R[sm]=R[cm]=R[Jp]=R[Yp]=R[lm]=R[um]=R[dm]=R[fm]=R[pm]=R[$p]=R[em]=R[tm]=R[nm]=R[rm]=R[im]=R[am]=R[mm]=R[hm]=R[gm]=R[_m]=!0,R[Xp]=R[Zp]=R[om]=!1;function vm(e,t,n,r,i,a){var o,s=t&Up,c=t&Wp,l=t&Gp;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!ts(e))return e;var u=I(e);if(u){if(o=Yf(e),!s)return Zs(e,o)}else{var d=Kf(e),f=d==Zp||d==Qp;if(ll(e))return ff(e,s);if(d==tm||d==Kp||f&&!i){if(o=c||f?{}:Mp(e),!s)return c?wf(e,of(o,e)):xf(e,rf(o,e))}else{if(!R[d])return i?e:{};o=Ap(e,d,s)}}a||=new tf;var p=a.get(e);if(p)return p;a.set(e,o),Hp(e)?e.forEach(function(r){o.add(vm(r,t,n,r,e,a))}):Lp(e)&&e.forEach(function(r,i){o.set(i,vm(r,t,n,i,e,a))});var m=u?void 0:(l?c?Af:Of:c?lu:eu)(e);return cc(m||e,function(r,i){m&&(i=r,r=e[i]),kc(o,i,vm(r,t,n,i,e,a))}),o}o(vm,`baseClone`);var ym=vm,bm=4;function xm(e){return ym(e,bm)}o(xm,`clone`);var Sm=xm;function Cm(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}o(Cm,`compact`);var wm=Cm,Tm=`__lodash_hash_undefined__`;function Em(e){return this.__data__.set(e,Tm),this}o(Em,`setCacheAdd`);var Dm=Em;function Om(e){return this.__data__.has(e)}o(Om,`setCacheHas`);var km=Om;function Am(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new cd;++t<n;)this.add(e[t])}o(Am,`SetCache`),Am.prototype.add=Am.prototype.push=Dm,Am.prototype.has=km;var jm=Am;function Mm(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}o(Mm,`arraySome`);var Nm=Mm;function Pm(e,t){return e.has(t)}o(Pm,`cacheHas`);var Fm=Pm,Im=1,Lm=2;function Rm(e,t,n,r,i,a){var o=n&Im,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Lm?new jm:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!Nm(t,function(e,t){if(!Fm(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}o(Rm,`equalArrays`);var zm=Rm;function Bm(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}o(Bm,`mapToArray`);var Vm=Bm;function Hm(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}o(Hm,`setToArray`);var Um=Hm,Wm=1,Gm=2,Km=`[object Boolean]`,qm=`[object Date]`,Jm=`[object Error]`,Ym=`[object Map]`,Xm=`[object Number]`,Zm=`[object RegExp]`,Qm=`[object Set]`,$m=`[object String]`,eh=`[object Symbol]`,th=`[object ArrayBuffer]`,nh=`[object DataView]`,rh=xo?xo.prototype:void 0,ih=rh?rh.valueOf:void 0;function ah(e,t,n,r,i,a,o){switch(n){case nh:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case th:return!(e.byteLength!=t.byteLength||!a(new Xf(e),new Xf(t)));case Km:case qm:case Xm:return Ec(+e,+t);case Jm:return e.name==t.name&&e.message==t.message;case Zm:case $m:return e==t+``;case Ym:var s=Vm;case Qm:var c=r&Wm;if(s||=Um,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=Gm,o.set(e,t);var u=zm(s(e),s(t),r,i,a,o);return o.delete(e),u;case eh:if(ih)return ih.call(e)==ih.call(t)}return!1}o(ah,`equalByTag`);var oh=ah,sh=1,ch=Object.prototype.hasOwnProperty;function lh(e,t,n,r,i,a){var o=n&sh,s=Of(e),c=s.length;if(c!=Of(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:ch.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}o(lh,`equalObjects`);var uh=lh,dh=1,fh=`[object Arguments]`,ph=`[object Array]`,mh=`[object Object]`,hh=Object.prototype.hasOwnProperty;function gh(e,t,n,r,i,a){var o=I(e),s=I(t),c=o?ph:Kf(e),l=s?ph:Kf(t);c=c==fh?mh:c,l=l==fh?mh:l;var u=c==mh,d=l==mh,f=c==l;if(f&&ll(e)){if(!ll(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new tf,o||Ul(e)?zm(e,t,n,r,i,a):oh(e,t,c,n,r,i,a);if(!(n&dh)){var p=u&&hh.call(e,`__wrapped__`),m=d&&hh.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new tf,i(h,g,n,r,a)}}return f?(a||=new tf,uh(e,t,n,r,i,a)):!1}o(gh,`baseIsEqualDeep`);var _h=gh;function vh(e,t,n,r,i){return e===t?!0:e==null||t==null||!Lo(e)&&!Lo(t)?e!==e&&t!==t:_h(e,t,n,r,vh,i)}o(vh,`baseIsEqual`);var yh=vh,bh=1,xh=2;function Sh(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new tf;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?yh(u,l,bh|xh,r,d):f))return!1}}return!0}o(Sh,`baseIsMatch`);var Ch=Sh;function wh(e){return e===e&&!ts(e)}o(wh,`isStrictComparable`);var Th=wh;function Eh(e){for(var t=eu(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Th(i)]}return t}o(Eh,`getMatchData`);var Dh=Eh;function Oh(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}o(Oh,`matchesStrictComparable`);var kh=Oh;function Ah(e){var t=Dh(e);return t.length==1&&t[0][2]?kh(t[0][0],t[0][1]):function(n){return n===e||Ch(n,e,t)}}o(Ah,`baseMatches`);var jh=Ah;function Mh(e,t){return e!=null&&t in Object(e)}o(Mh,`baseHasIn`);var Nh=Mh;function Ph(e,t,n){t=xd(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=wd(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&zc(i)&&Sc(o,i)&&(I(e)||rl(e)))}o(Ph,`hasPath`);var Fh=Ph;function Ih(e,t){return e!=null&&Fh(e,t,Nh)}o(Ih,`hasIn`);var Lh=Ih,Rh=1,zh=2;function Bh(e,t){return pu(e)&&Th(t)?kh(wd(e),t):function(n){var r=Od(n,e);return r===void 0&&r===t?Lh(n,e):yh(t,r,Rh|zh)}}o(Bh,`baseMatchesProperty`);var Vh=Bh;function Hh(e){return function(t){return t?.[e]}}o(Hh,`baseProperty`);var Uh=Hh;function Wh(e){return function(t){return Ed(t,e)}}o(Wh,`basePropertyDeep`);var Gh=Wh;function Kh(e){return pu(e)?Uh(wd(e)):Gh(e)}o(Kh,`property`);var qh=Kh;function Jh(e){return typeof e==`function`?e:e==null?gs:typeof e==`object`?I(e)?Vh(e[0],e[1]):jh(e):qh(e)}o(Jh,`baseIteratee`);var Yh=Jh;function Xh(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}o(Xh,`arrayAggregator`);var Zh=Xh;function Qh(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}o(Qh,`createBaseFor`);var $h=Qh();function eg(e,t){return e&&$h(e,t,eu)}o(eg,`baseForOwn`);var tg=eg;function ng(e,t){return function(n,r){if(n==null)return n;if(!Vc(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}o(ng,`createBaseEach`);var rg=ng(tg);function ig(e,t,n,r){return rg(e,function(e,i,a){t(r,e,n(e),a)}),r}o(ig,`baseAggregator`);var ag=ig;function og(e,t){return function(n,r){var i=I(n)?Zh:ag,a=t?t():{};return i(n,e,Yh(r,2),a)}}o(og,`createAggregator`);var sg=og,cg=Object.prototype,lg=cg.hasOwnProperty,ug=Ic(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&Uc(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],o=lu(a),s=-1,c=o.length;++s<c;){var l=o[s],u=e[l];(u===void 0||Ec(u,cg[l])&&!lg.call(e,l))&&(e[l]=a[l])}return e});function dg(e){return Lo(e)&&Vc(e)}o(dg,`isArrayLikeObject`);var fg=dg;function pg(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}o(pg,`arrayIncludesWith`);var mg=pg,hg=200;function gg(e,t,n,r){var i=-1,a=vc,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=Ho(t,Ll(n))),r?(a=mg,o=!1):t.length>=hg&&(a=Fm,o=!1,t=new jm(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}o(gg,`baseDifference`);var _g=gg,vg=Ic(function(e,t){return fg(e)?_g(e,Fd(t,1,fg,!0)):[]});function yg(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}o(yg,`last`);var bg=yg;function xg(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:ms(t),Bd(e,t<0?0:t,r)):[]}o(xg,`drop`);var Sg=xg;function Cg(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:ms(t),t=r-t,Bd(e,0,t<0?0:t)):[]}o(Cg,`dropRight`);var wg=Cg;function Tg(e){return typeof e==`function`?e:gs}o(Tg,`castFunction`);var Eg=Tg;function Dg(e,t){return(I(e)?cc:rg)(e,Eg(t))}o(Dg,`forEach`);var z=Dg;function Og(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}o(Og,`arrayEvery`);var kg=Og;function Ag(e,t){var n=!0;return rg(e,function(e,r,i){return n=!!t(e,r,i),n}),n}o(Ag,`baseEvery`);var jg=Ag;function Mg(e,t,n){var r=I(e)?kg:jg;return n&&Uc(e,t,n)&&(t=void 0),r(e,Yh(t,3))}o(Mg,`every`);var Ng=Mg;function Pg(e,t){var n=[];return rg(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}o(Pg,`baseFilter`);var Fg=Pg;function Ig(e,t){return(I(e)?mf:Fg)(e,Yh(t,3))}o(Ig,`filter`);var Lg=Ig;function Rg(e){return function(t,n,r){var i=Object(t);if(!Vc(t)){var a=Yh(n,3);t=eu(t),n=o(function(e){return a(i[e],e,i)},`predicate`)}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:void 0}}o(Rg,`createFind`);var zg=Rg,Bg=Math.max;function Vg(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:ms(n);return i<0&&(i=Bg(r+i,0)),uc(e,Yh(t,3),i)}o(Vg,`findIndex`);var Hg=zg(Vg);function Ug(e){return e&&e.length?e[0]:void 0}o(Ug,`head`);var Wg=Ug;function Gg(e,t){var n=-1,r=Vc(e)?Array(e.length):[];return rg(e,function(e,i,a){r[++n]=t(e,i,a)}),r}o(Gg,`baseMap`);var Kg=Gg;function qg(e,t){return(I(e)?Ho:Kg)(e,Yh(t,3))}o(qg,`map`);var B=qg;function Jg(e,t){return Fd(B(e,t),1)}o(Jg,`flatMap`);var Yg=Jg,Xg=Object.prototype.hasOwnProperty,Zg=sg(function(e,t,n){Xg.call(e,n)?e[n].push(t):wc(e,n,[t])}),Qg=Object.prototype.hasOwnProperty;function $g(e,t){return e!=null&&Qg.call(e,t)}o($g,`baseHas`);var e_=$g;function t_(e,t){return e!=null&&Fh(e,t,e_)}o(t_,`has`);var V=t_,n_=`[object String]`;function r_(e){return typeof e==`string`||!I(e)&&Lo(e)&&Fo(e)==n_}o(r_,`isString`);var i_=r_;function a_(e,t){return Ho(t,function(t){return e[t]})}o(a_,`baseValues`);var o_=a_;function s_(e){return e==null?[]:o_(e,eu(e))}o(s_,`values`);var H=s_,c_=Math.max;function l_(e,t,n,r){e=Vc(e)?e:H(e),n=n&&!r?ms(n):0;var i=e.length;return n<0&&(n=c_(i+n,0)),i_(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&gc(e,t,n)>-1}o(l_,`includes`);var u_=l_,d_=Math.max;function f_(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:ms(n);return i<0&&(i=d_(r+i,0)),gc(e,t,i)}o(f_,`indexOf`);var p_=f_,m_=`[object Map]`,h_=`[object Set]`,g_=Object.prototype.hasOwnProperty;function __(e){if(e==null)return!0;if(Vc(e)&&(I(e)||typeof e==`string`||typeof e.splice==`function`||ll(e)||Ul(e)||rl(e)))return!e.length;var t=Kf(e);if(t==m_||t==h_)return!e.size;if(Jc(e))return!Ql(e).length;for(var n in e)if(g_.call(e,n))return!1;return!0}o(__,`isEmpty`);var U=__,v_=`[object RegExp]`;function y_(e){return Lo(e)&&Fo(e)==v_}o(y_,`baseIsRegExp`);var b_=y_,x_=Vl&&Vl.isRegExp,S_=x_?Ll(x_):b_;function C_(e){return e===void 0}o(C_,`isUndefined`);var w_=C_,T_=`Expected a function`;function E_(e){if(typeof e!=`function`)throw TypeError(T_);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)}}o(E_,`negate`);var D_=E_;function O_(e,t,n,r){if(!ts(e))return e;t=xd(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=wd(t[i]),l=n;if(c===`__proto__`||c===`constructor`||c===`prototype`)return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=ts(u)?u:Sc(t[i+1])?[]:{})}kc(s,c,l),s=s[c]}return e}o(O_,`baseSet`);var k_=O_;function A_(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ed(e,o);n(s,o)&&k_(a,xd(o,e),s)}return a}o(A_,`basePickBy`);var j_=A_;function M_(e,t){if(e==null)return{};var n=Ho(Af(e),function(e){return[e]});return t=Yh(t),j_(e,n,function(e,n){return t(e,n[0])})}o(M_,`pickBy`);var N_=M_;function P_(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}o(P_,`baseReduce`);var F_=P_;function I_(e,t,n){var r=I(e)?Hd:F_,i=arguments.length<3;return r(e,Yh(t,4),n,i,rg)}o(I_,`reduce`);var L_=I_;function R_(e,t){return(I(e)?mf:Fg)(e,D_(Yh(t,3)))}o(R_,`reject`);var z_=R_;function B_(e,t){var n;return rg(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}o(B_,`baseSome`);var V_=B_;function H_(e,t,n){var r=I(e)?Nm:V_;return n&&Uc(e,t,n)&&(t=void 0),r(e,Yh(t,3))}o(H_,`some`);var U_=H_,W_=Nf&&1/Um(new Nf([,-0]))[1]==1/0?function(e){return new Nf(e)}:Ys,G_=200;function K_(e,t,n){var r=-1,i=vc,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=mg;else if(a>=G_){var l=t?null:W_(e);if(l)return Um(l);o=!1,i=Fm,c=new jm}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}o(K_,`baseUniq`);var q_=K_;function J_(e){return e&&e.length?q_(e):[]}o(J_,`uniq`);var Y_=J_;function X_(e){console&&console.error&&console.error(`Error: ${e}`)}o(X_,`PRINT_ERROR`);function Z_(e){console&&console.warn&&console.warn(`Warning: ${e}`)}o(Z_,`PRINT_WARNING`);function Q_(e){let t=new Date().getTime(),n=e();return{time:new Date().getTime()-t,value:n}}o(Q_,`timer`);function $_(e){function t(){}o(t,`FakeConstructor`),t.prototype=e;let n=new t;function r(){return typeof n.bar}return o(r,`fakeAccess`),r(),r(),e}o($_,`toFastProperties`);function ev(e){return tv(e)?e.LABEL:e.name}o(ev,`tokenLabel`);function tv(e){return i_(e.LABEL)&&e.LABEL!==``}o(tv,`hasTokenLabel`);var nv=class{static{o(this,`AbstractProduction`)}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),z(this.definition,t=>{t.accept(e)})}},rv=class extends nv{static{o(this,`NonTerminal`)}constructor(e){super([]),this.idx=1,nu(this,N_(e,e=>e!==void 0))}set definition(e){}get definition(){return this.referencedRule===void 0?[]:this.referencedRule.definition}accept(e){e.visit(this)}},iv=class extends nv{static{o(this,`Rule`)}constructor(e){super(e.definition),this.orgText=``,nu(this,N_(e,e=>e!==void 0))}},av=class extends nv{static{o(this,`Alternative`)}constructor(e){super(e.definition),this.ignoreAmbiguities=!1,nu(this,N_(e,e=>e!==void 0))}},ov=class extends nv{static{o(this,`Option`)}constructor(e){super(e.definition),this.idx=1,nu(this,N_(e,e=>e!==void 0))}},sv=class extends nv{static{o(this,`RepetitionMandatory`)}constructor(e){super(e.definition),this.idx=1,nu(this,N_(e,e=>e!==void 0))}},cv=class extends nv{static{o(this,`RepetitionMandatoryWithSeparator`)}constructor(e){super(e.definition),this.idx=1,nu(this,N_(e,e=>e!==void 0))}},W=class extends nv{static{o(this,`Repetition`)}constructor(e){super(e.definition),this.idx=1,nu(this,N_(e,e=>e!==void 0))}},lv=class extends nv{static{o(this,`RepetitionWithSeparator`)}constructor(e){super(e.definition),this.idx=1,nu(this,N_(e,e=>e!==void 0))}},uv=class extends nv{static{o(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,nu(this,N_(e,e=>e!==void 0))}},G=class{static{o(this,`Terminal`)}constructor(e){this.idx=1,nu(this,N_(e,e=>e!==void 0))}accept(e){e.visit(this)}};function dv(e){return B(e,fv)}o(dv,`serializeGrammar`);function fv(e){function t(e){return B(e,fv)}if(o(t,`convertDefinition`),e instanceof rv){let t={type:`NonTerminal`,name:e.nonTerminalName,idx:e.idx};return i_(e.label)&&(t.label=e.label),t}else if(e instanceof av)return{type:`Alternative`,definition:t(e.definition)};else if(e instanceof ov)return{type:`Option`,idx:e.idx,definition:t(e.definition)};else if(e instanceof sv)return{type:`RepetitionMandatory`,idx:e.idx,definition:t(e.definition)};else if(e instanceof cv)return{type:`RepetitionMandatoryWithSeparator`,idx:e.idx,separator:fv(new G({terminalType:e.separator})),definition:t(e.definition)};else if(e instanceof lv)return{type:`RepetitionWithSeparator`,idx:e.idx,separator:fv(new G({terminalType:e.separator})),definition:t(e.definition)};else if(e instanceof W)return{type:`Repetition`,idx:e.idx,definition:t(e.definition)};else if(e instanceof uv)return{type:`Alternation`,idx:e.idx,definition:t(e.definition)};else if(e instanceof G){let t={type:`Terminal`,name:e.terminalType.name,label:ev(e.terminalType),idx:e.idx};i_(e.label)&&(t.terminalLabel=e.label);let n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=S_(n)?n.source:n),t}else if(e instanceof iv)return{type:`Rule`,name:e.name,orgText:e.orgText,definition:t(e.definition)};else throw Error(`non exhaustive match`)}o(fv,`serializeProduction`);var pv=class{static{o(this,`GAstVisitor`)}visit(e){let t=e;switch(t.constructor){case rv:return this.visitNonTerminal(t);case av:return this.visitAlternative(t);case ov:return this.visitOption(t);case sv:return this.visitRepetitionMandatory(t);case cv:return this.visitRepetitionMandatoryWithSeparator(t);case lv:return this.visitRepetitionWithSeparator(t);case W:return this.visitRepetition(t);case uv:return this.visitAlternation(t);case G:return this.visitTerminal(t);case iv: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 mv(e){return e instanceof av||e instanceof ov||e instanceof W||e instanceof sv||e instanceof cv||e instanceof lv||e instanceof G||e instanceof iv}o(mv,`isSequenceProd`);function hv(e,t=[]){return e instanceof ov||e instanceof W||e instanceof lv?!0:e instanceof uv?U_(e.definition,e=>hv(e,t)):e instanceof rv&&u_(t,e)?!1:e instanceof nv?(e instanceof rv&&t.push(e),Ng(e.definition,e=>hv(e,t))):!1}o(hv,`isOptionalProd`);function gv(e){return e instanceof uv}o(gv,`isBranchingProd`);function _v(e){if(e instanceof rv)return`SUBRULE`;if(e instanceof ov)return`OPTION`;if(e instanceof uv)return`OR`;if(e instanceof sv)return`AT_LEAST_ONE`;if(e instanceof cv)return`AT_LEAST_ONE_SEP`;if(e instanceof lv)return`MANY_SEP`;if(e instanceof W)return`MANY`;if(e instanceof G)return`CONSUME`;throw Error(`non exhaustive match`)}o(_v,`getProductionDslName`);var vv=class{static{o(this,`RestWalker`)}walk(e,t=[]){z(e.definition,(n,r)=>{let i=Sg(e.definition,r+1);if(n instanceof rv)this.walkProdRef(n,i,t);else if(n instanceof G)this.walkTerminal(n,i,t);else if(n instanceof av)this.walkFlat(n,i,t);else if(n instanceof ov)this.walkOption(n,i,t);else if(n instanceof sv)this.walkAtLeastOne(n,i,t);else if(n instanceof cv)this.walkAtLeastOneSep(n,i,t);else if(n instanceof lv)this.walkManySep(n,i,t);else if(n instanceof W)this.walkMany(n,i,t);else if(n instanceof uv)this.walkOr(n,i,t);else throw Error(`non exhaustive match`)})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){let r=t.concat(n);this.walk(e,r)}walkOption(e,t,n){let r=t.concat(n);this.walk(e,r)}walkAtLeastOne(e,t,n){let r=[new ov({definition:e.definition})].concat(t,n);this.walk(e,r)}walkAtLeastOneSep(e,t,n){let r=yv(e,t,n);this.walk(e,r)}walkMany(e,t,n){let r=[new ov({definition:e.definition})].concat(t,n);this.walk(e,r)}walkManySep(e,t,n){let r=yv(e,t,n);this.walk(e,r)}walkOr(e,t,n){let r=t.concat(n);z(e.definition,e=>{let t=new av({definition:[e]});this.walk(t,r)})}};function yv(e,t,n){return[new ov({definition:[new G({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}o(yv,`restForRepetitionWithSeparator`);function bv(e){if(e instanceof rv)return bv(e.referencedRule);if(e instanceof G)return Cv(e);if(mv(e))return xv(e);if(gv(e))return Sv(e);throw Error(`non exhaustive match`)}o(bv,`first`);function xv(e){let t=[],n=e.definition,r=0,i=n.length>r,a,o=!0;for(;i&&o;)a=n[r],o=hv(a),t=t.concat(bv(a)),r+=1,i=n.length>r;return Y_(t)}o(xv,`firstForSequence`);function Sv(e){return Y_(Ld(B(e.definition,e=>bv(e))))}o(Sv,`firstForBranching`);function Cv(e){return[e.terminalType]}o(Cv,`firstForTerminal`);var wv=`_~IN~_`,Tv=class extends vv{static{o(this,`ResyncFollowsWalker`)}constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){let r=Dv(e.referencedRule,e.idx)+this.topProd.name,i=bv(new av({definition:t.concat(n)}));this.follows[r]=i}};function Ev(e){let t={};return z(e,e=>{let n=new Tv(e).startWalking();nu(t,n)}),t}o(Ev,`computeAllProdsFollows`);function Dv(e,t){return e.name+t+wv}o(Dv,`buildBetweenProdsFollowPrefix`);var Ov={},kv=new ya;function Av(e){let t=e.toString();if(Ov.hasOwnProperty(t))return Ov[t];{let e=kv.pattern(t);return Ov[t]=e,e}}o(Av,`getRegExpAst`);function jv(){Ov={}}o(jv,`clearRegExpParserCache`);var Mv=`Complement Sets are not supported for first char optimization`,Nv=`Unable to use "first char" lexer optimizations:
47
47
  `;function Pv(e,t=!1){try{let t=Av(e);return Fv(t.value,{},t.flags.ignoreCase)}catch(n){if(n.message===Mv)t&&Z_(`${Nv} Unable to optimize: < ${e.toString()} >
48
48
  Complement Sets cannot be automatically optimized.
49
49
  This will disable the lexer's first char optimizations.
@@ -120,7 +120,7 @@ rule: <${t}> can be invoked from itself (directly or indirectly)
120
120
  without consuming any Tokens. The grammar path that causes this is:
121
121
  ${`${t} --> ${B(e.leftRecursionPath,e=>e.name).concat([t]).join(` --> `)}`}
122
122
  To fix this refactor your grammar to remove the left recursion.
123
- see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return`deprecated`},buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof iv?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};function sb(e,t){let n=new cb(e,t);return n.resolveRefs(),n.errors}o(sb,`resolveGrammar`);var cb=class extends pv{static{o(this,`GastRefResolverVisitor`)}constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){z(H(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:pS.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},lb=class extends vv{static{o(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=Sm(this.path.ruleStack).reverse(),this.occurrenceStack=Sm(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,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}}updateExpectedNext(){U(this.ruleStack)?(this.nextProductionName=``,this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},ub=class extends lb{static{o(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,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let e=new av({definition:t.concat(n)});this.possibleTokTypes=bv(e),this.found=!0}}},db=class extends vv{static{o(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}},fb=class extends db{static{o(this,`NextTerminalAfterManyWalker`)}walkMany(e,t,n){if(e.idx===this.occurrence){let e=Wg(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof G&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,n)}},pb=class extends db{static{o(this,`NextTerminalAfterManySepWalker`)}walkManySep(e,t,n){if(e.idx===this.occurrence){let e=Wg(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof G&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,n)}},mb=class extends db{static{o(this,`NextTerminalAfterAtLeastOneWalker`)}walkAtLeastOne(e,t,n){if(e.idx===this.occurrence){let e=Wg(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof G&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,n)}},hb=class extends db{static{o(this,`NextTerminalAfterAtLeastOneSepWalker`)}walkAtLeastOneSep(e,t,n){if(e.idx===this.occurrence){let e=Wg(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof G&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,n)}};function gb(e,t,n=[]){n=Sm(n);let r=[],i=0;function a(t){return t.concat(Sg(e,i+1))}o(a,`remainingPathWith`);function s(e){let i=gb(a(e),t,n);return r.concat(i)}for(o(s,`getAlternativesForProd`);n.length<t&&i<e.length;){let t=e[i];if(t instanceof av||t instanceof rv)return s(t.definition);if(t instanceof ov)r=s(t.definition);else if(t instanceof sv)return s(t.definition.concat([new W({definition:t.definition})]));else if(t instanceof cv)return s([new av({definition:t.definition}),new W({definition:[new G({terminalType:t.separator})].concat(t.definition)})]);else if(t instanceof lv)r=s(t.definition.concat([new W({definition:[new G({terminalType:t.separator})].concat(t.definition)})]));else if(t instanceof W)r=s(t.definition.concat([new W({definition:t.definition})]));else if(t instanceof uv)return z(t.definition,e=>{U(e.definition)===!1&&(r=s(e.definition))}),r;else if(t instanceof G)n.push(t.terminalType);else throw Error(`non exhaustive match`);i++}return r.push({partialPath:n,suffixDef:Sg(e,i)}),r}o(gb,`possiblePathsFrom`);function _b(e,t,n,r){let i=`EXIT_NONE_TERMINAL`,a=[i],o=`EXIT_ALTERNATIVE`,s=!1,c=t.length,l=c-r-1,u=[],d=[];for(d.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!U(d);){let e=d.pop();if(e===o){s&&bg(d).idx<=l&&d.pop();continue}let r=e.def,f=e.idx,p=e.ruleStack,m=e.occurrenceStack;if(U(r))continue;let h=r[0];if(h===i){let e={idx:f,def:Sg(r),ruleStack:wg(p),occurrenceStack:wg(m)};d.push(e)}else if(h instanceof G)if(f<c-1){let e=f+1,i=t[e];if(n(i,h.terminalType)){let t={idx:e,def:Sg(r),ruleStack:p,occurrenceStack:m};d.push(t)}}else if(f===c-1)u.push({nextTokenType:h.terminalType,nextTokenOccurrence:h.idx,ruleStack:p,occurrenceStack:m}),s=!0;else throw Error(`non exhaustive match`);else if(h instanceof rv){let e=Sm(p);e.push(h.nonTerminalName);let t=Sm(m);t.push(h.idx);let n={idx:f,def:h.definition.concat(a,Sg(r)),ruleStack:e,occurrenceStack:t};d.push(n)}else if(h instanceof ov){let e={idx:f,def:Sg(r),ruleStack:p,occurrenceStack:m};d.push(e),d.push(o);let t={idx:f,def:h.definition.concat(Sg(r)),ruleStack:p,occurrenceStack:m};d.push(t)}else if(h instanceof sv){let e=new W({definition:h.definition,idx:h.idx}),t={idx:f,def:h.definition.concat([e],Sg(r)),ruleStack:p,occurrenceStack:m};d.push(t)}else if(h instanceof cv){let e=new W({definition:[new G({terminalType:h.separator})].concat(h.definition),idx:h.idx}),t={idx:f,def:h.definition.concat([e],Sg(r)),ruleStack:p,occurrenceStack:m};d.push(t)}else if(h instanceof lv){let e={idx:f,def:Sg(r),ruleStack:p,occurrenceStack:m};d.push(e),d.push(o);let t=new W({definition:[new G({terminalType:h.separator})].concat(h.definition),idx:h.idx}),n={idx:f,def:h.definition.concat([t],Sg(r)),ruleStack:p,occurrenceStack:m};d.push(n)}else if(h instanceof W){let e={idx:f,def:Sg(r),ruleStack:p,occurrenceStack:m};d.push(e),d.push(o);let t=new W({definition:h.definition,idx:h.idx}),n={idx:f,def:h.definition.concat([t],Sg(r)),ruleStack:p,occurrenceStack:m};d.push(n)}else if(h instanceof uv)for(let e=h.definition.length-1;e>=0;e--){let t={idx:f,def:h.definition[e].definition.concat(Sg(r)),ruleStack:p,occurrenceStack:m};d.push(t),d.push(o)}else if(h instanceof av)d.push({idx:f,def:h.definition.concat(Sg(r)),ruleStack:p,occurrenceStack:m});else if(h instanceof iv)d.push(vb(h,f,p,m));else throw Error(`non exhaustive match`)}return u}o(_b,`nextPossibleTokensAfter`);function vb(e,t,n,r){let i=Sm(n);i.push(e.name);let a=Sm(r);return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}o(vb,`expandTopLevelRule`);var q;(function(e){e[e.OPTION=0]=`OPTION`,e[e.REPETITION=1]=`REPETITION`,e[e.REPETITION_MANDATORY=2]=`REPETITION_MANDATORY`,e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]=`REPETITION_MANDATORY_WITH_SEPARATOR`,e[e.REPETITION_WITH_SEPARATOR=4]=`REPETITION_WITH_SEPARATOR`,e[e.ALTERNATION=5]=`ALTERNATION`})(q||={});function yb(e){if(e instanceof ov||e===`Option`)return q.OPTION;if(e instanceof W||e===`Repetition`)return q.REPETITION;if(e instanceof sv||e===`RepetitionMandatory`)return q.REPETITION_MANDATORY;if(e instanceof cv||e===`RepetitionMandatoryWithSeparator`)return q.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof lv||e===`RepetitionWithSeparator`)return q.REPETITION_WITH_SEPARATOR;if(e instanceof uv||e===`Alternation`)return q.ALTERNATION;throw Error(`non exhaustive match`)}o(yb,`getProdType`);function bb(e){let{occurrence:t,rule:n,prodType:r,maxLookahead:i}=e,a=yb(r);return a===q.ALTERNATION?jb(t,n,i):Mb(t,n,a,i)}o(bb,`getLookaheadPaths`);function xb(e,t,n,r,i,a){let o=jb(e,t,n);return a(o,r,Fb(o)?Ty:wy,i)}o(xb,`buildLookaheadFuncForOr`);function Sb(e,t,n,r,i,a){let o=Mb(e,t,i,n),s=Fb(o)?Ty:wy;return a(o[0],s,r)}o(Sb,`buildLookaheadFuncForOptionalProd`);function Cb(e,t,n,r){let i=e.length,a=Ng(e,e=>Ng(e,e=>e.length===1));if(t)return function(t){let r=B(t,e=>e.GATE);for(let t=0;t<i;t++){let i=e[t],a=i.length,o=r[t];if(!(o!==void 0&&o.call(this)===!1))nextPath:for(let e=0;e<a;e++){let r=i[e],a=r.length;for(let e=0;e<a;e++)if(n(this.LA(e+1),r[e])===!1)continue nextPath;return t}}};if(a&&!r){let t=L_(B(e,e=>Ld(e)),(e,t,n)=>(z(t,t=>{V(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=n),z(t.categoryMatches,t=>{V(e,t)||(e[t]=n)})}),e),{});return function(){return t[this.LA(1).tokenTypeIdx]}}else return function(){for(let t=0;t<i;t++){let r=e[t],i=r.length;nextPath:for(let e=0;e<i;e++){let i=r[e],a=i.length;for(let e=0;e<a;e++)if(n(this.LA(e+1),i[e])===!1)continue nextPath;return t}}}}o(Cb,`buildAlternativesLookAheadFunc`);function wb(e,t,n){let r=Ng(e,e=>e.length===1),i=e.length;if(r&&!n){let t=Ld(e);if(t.length===1&&U(t[0].categoryMatches)){let e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}else{let e=L_(t,(e,t,n)=>(e[t.tokenTypeIdx]=!0,z(t.categoryMatches,t=>{e[t]=!0}),e),[]);return function(){return e[this.LA(1).tokenTypeIdx]===!0}}}else return function(){nextPath:for(let n=0;n<i;n++){let r=e[n],i=r.length;for(let e=0;e<i;e++)if(t(this.LA(e+1),r[e])===!1)continue nextPath;return!0}return!1}}o(wb,`buildSingleAlternativeLookaheadFunction`);var Tb=class extends vv{static{o(this,`RestDefinitionFinderWalker`)}constructor(e,t,n){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,n,r){return e.idx===this.targetOccurrence&&this.targetProdType===t?(this.restDef=n.concat(r),!0):!1}walkOption(e,t,n){this.checkIsTarget(e,q.OPTION,t,n)||super.walkOption(e,t,n)}walkAtLeastOne(e,t,n){this.checkIsTarget(e,q.REPETITION_MANDATORY,t,n)||super.walkOption(e,t,n)}walkAtLeastOneSep(e,t,n){this.checkIsTarget(e,q.REPETITION_MANDATORY_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}walkMany(e,t,n){this.checkIsTarget(e,q.REPETITION,t,n)||super.walkOption(e,t,n)}walkManySep(e,t,n){this.checkIsTarget(e,q.REPETITION_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}},Eb=class extends pv{static{o(this,`InsideDefinitionFinderVisitor`)}constructor(e,t,n){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=n,this.result=[]}checkIsTarget(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.targetRef===void 0||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,q.OPTION)}visitRepetition(e){this.checkIsTarget(e,q.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,q.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,q.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,q.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,q.ALTERNATION)}};function Db(e){let t=Array(e);for(let n=0;n<e;n++)t[n]=[];return t}o(Db,`initializeArrayOfArrays`);function Ob(e){let t=[``];for(let n=0;n<e.length;n++){let r=e[n],i=[];for(let e=0;e<t.length;e++){let n=t[e];i.push(n+`_`+r.tokenTypeIdx);for(let e=0;e<r.categoryMatches.length;e++){let t=`_`+r.categoryMatches[e];i.push(n+t)}}t=i}return t}o(Ob,`pathToHashKeys`);function kb(e,t,n){for(let r=0;r<e.length;r++){if(r===n)continue;let i=e[r];for(let e=0;e<t.length;e++)if(i[t[e]]===!0)return!1}return!0}o(kb,`isUniquePrefixHash`);function Ab(e,t){let n=B(e,e=>gb([e],1)),r=Db(n.length),i=B(n,e=>{let t={};return z(e,e=>{z(Ob(e.partialPath),e=>{t[e]=!0})}),t}),a=n;for(let e=1;e<=t;e++){let n=a;a=Db(n.length);for(let o=0;o<n.length;o++){let s=n[o];for(let n=0;n<s.length;n++){let c=s[n].partialPath,l=s[n].suffixDef,u=Ob(c);if(kb(i,u,o)||U(l)||c.length===t){let e=r[o];if(Nb(e,c)===!1){e.push(c);for(let e=0;e<u.length;e++){let t=u[e];i[o][t]=!0}}}else{let t=gb(l,e+1,c);a[o]=a[o].concat(t),z(t,e=>{z(Ob(e.partialPath),e=>{i[o][e]=!0})})}}}}return r}o(Ab,`lookAheadSequenceFromAlternatives`);function jb(e,t,n,r){let i=new Eb(e,q.ALTERNATION,r);return t.accept(i),Ab(i.result,n)}o(jb,`getLookaheadPathsForOr`);function Mb(e,t,n,r){let i=new Eb(e,n);t.accept(i);let a=i.result,o=new Tb(t,e,n).startWalking();return Ab([new av({definition:a}),new av({definition:o})],r)}o(Mb,`getLookaheadPathsForOptionalProd`);function Nb(e,t){compareOtherPath:for(let n=0;n<e.length;n++){let r=e[n];if(r.length===t.length){for(let e=0;e<r.length;e++){let n=t[e],i=r[e];if(!(n===i||i.categoryMatchesMap[n.tokenTypeIdx]!==void 0))continue compareOtherPath}return!0}}return!1}o(Nb,`containsPath`);function Pb(e,t){return e.length<t.length&&Ng(e,(e,n)=>{let r=t[n];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]})}o(Pb,`isStrictPrefixOfPath`);function Fb(e){return Ng(e,e=>Ng(e,e=>Ng(e,e=>U(e.categoryMatches))))}o(Fb,`areTokenCategoriesNotUsed`);function Ib(e){return B(e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}),e=>Object.assign({type:pS.CUSTOM_LOOKAHEAD_VALIDATION},e))}o(Ib,`validateLookahead`);function Lb(e,t,n,r){let i=Yg(e,e=>Rb(e,n)),a=ex(e,t,n),o=Yg(e,e=>Xb(e,n)),s=Yg(e,t=>Hb(t,e,r,n));return i.concat(a,o,s)}o(Lb,`validateGrammar`);function Rb(e,t){let n=new Vb;e.accept(n);let r=n.allProductions;return B(H(N_(Zg(r,zb),e=>e.length>1)),n=>{let r=Wg(n),i=t.buildDuplicateFoundError(e,n),a=_v(r),o={message:i,type:pS.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:a,occurrence:r.idx},s=Bb(r);return s&&(o.parameter=s),o})}o(Rb,`validateDuplicateProductions`);function zb(e){return`${_v(e)}_#_${e.idx}_#_${Bb(e)}`}o(zb,`identifyProductionForDuplicates`);function Bb(e){return e instanceof G?e.terminalType.name:e instanceof rv?e.nonTerminalName:``}o(Bb,`getExtraProductionArgument`);var Vb=class extends pv{static{o(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 Hb(e,t,n,r){let i=[];if(L_(t,(t,n)=>n.name===e.name?t+1:t,0)>1){let t=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});i.push({message:t,type:pS.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}o(Hb,`validateRuleDoesNotAlreadyExist`);function Ub(e,t,n){let r=[],i;return u_(t,e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `,r.push({message:i,type:pS.INVALID_RULE_OVERRIDE,ruleName:e})),r}o(Ub,`validateRuleIsOverridden`);function Wb(e,t,n,r=[]){let i=[],a=Gb(t.definition);if(U(a))return[];{let t=e.name;u_(a,e)&&i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:pS.LEFT_RECURSION,ruleName:t});let o=Yg(vg(a,r.concat([e])),t=>{let i=Sm(r);return i.push(t),Wb(e,t,n,i)});return i.concat(o)}}o(Wb,`validateNoLeftRecursion`);function Gb(e){let t=[];if(U(e))return t;let n=Wg(e);if(n instanceof rv)t.push(n.referencedRule);else if(n instanceof av||n instanceof ov||n instanceof sv||n instanceof cv||n instanceof lv||n instanceof W)t=t.concat(Gb(n.definition));else if(n instanceof uv)t=Ld(B(n.definition,e=>Gb(e.definition)));else if(!(n instanceof G))throw Error(`non exhaustive match`);let r=hv(n),i=e.length>1;if(r&&i){let n=Sg(e);return t.concat(Gb(n))}else return t}o(Gb,`getFirstNoneTerminal`);var Kb=class extends pv{static{o(this,`OrCollector`)}constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};function qb(e,t){let n=new Kb;e.accept(n);let r=n.alternations;return Yg(r,n=>Yg(wg(n.definition),(r,i)=>U(_b([r],[],wy,1))?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:pS.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}]:[]))}o(qb,`validateEmptyOrAlternative`);function Jb(e,t,n){let r=new Kb;e.accept(r);let i=r.alternations;return i=z_(i,e=>e.ignoreAmbiguities===!0),Yg(i,r=>{let i=r.idx,a=jb(i,e,r.maxLookahead||t,r),o=Qb(a,r,e,n),s=$b(a,r,e,n);return o.concat(s)})}o(Jb,`validateAmbiguousAlternationAlternatives`);var Yb=class extends pv{static{o(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 Xb(e,t){let n=new Kb;e.accept(n);let r=n.alternations;return Yg(r,n=>n.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:pS.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}]:[])}o(Xb,`validateTooManyAlts`);function Zb(e,t,n){let r=[];return z(e,e=>{let i=new Yb;e.accept(i);let a=i.allProductions;z(a,i=>{let a=yb(i),o=i.maxLookahead||t,s=i.idx,c=Mb(s,e,a,o)[0];if(U(Ld(c))){let t=n.buildEmptyRepetitionError({topLevelRule:e,repetition:i});r.push({message:t,type:pS.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),r}o(Zb,`validateSomeNonEmptyLookaheadPath`);function Qb(e,t,n,r){let i=[];return B(L_(e,(n,r,a)=>(t.definition[a].ignoreAmbiguities===!0||z(r,r=>{let o=[a];z(e,(e,n)=>{a!==n&&Nb(e,r)&&t.definition[n].ignoreAmbiguities!==!0&&o.push(n)}),o.length>1&&!Nb(i,r)&&(i.push(r),n.push({alts:o,path:r}))}),n),[]),e=>{let i=B(e.alts,e=>e+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:pS.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:e.alts}})}o(Qb,`checkAlternativesAmbiguities`);function $b(e,t,n,r){let i=L_(e,(e,t,n)=>{let r=B(t,e=>({idx:n,path:e}));return e.concat(r)},[]);return wm(Yg(i,e=>{if(t.definition[e.idx].ignoreAmbiguities===!0)return[];let a=e.idx,o=e.path;return B(Lg(i,e=>t.definition[e.idx].ignoreAmbiguities!==!0&&e.idx<a&&Pb(e.path,o)),e=>{let i=[e.idx+1,a+1],o=t.idx===0?``:t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:pS.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:o,alternatives:i}})}))}o($b,`checkPrefixAlternativesAmbiguities`);function ex(e,t,n){let r=[],i=B(t,e=>e.name);return z(e,e=>{let t=e.name;if(u_(i,t)){let i=n.buildNamespaceConflictError(e);r.push({message:i,type:pS.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),r}o(ex,`checkTerminalAndNoneTerminalsNameSpace`);function tx(e){let t=ug(e,{errMsgProvider:ab}),n={};return z(e.rules,e=>{n[e.name]=e}),sb(n,t.errMsgProvider)}o(tx,`resolveGrammar`);function nx(e){return e=ug(e,{errMsgProvider:ob}),Lb(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}o(nx,`validateGrammar`);var rx=`MismatchedTokenException`,ix=`NoViableAltException`,ax=`EarlyExitException`,ox=`NotAllInputParsedException`,sx=[rx,ix,ax,ox];Object.freeze(sx);function cx(e){return u_(sx,e.name)}o(cx,`isRecognitionException`);var lx=class extends Error{static{o(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)}},ux=class extends lx{static{o(this,`MismatchedTokenException`)}constructor(e,t,n){super(e,t),this.previousToken=n,this.name=rx}},dx=class extends lx{static{o(this,`NoViableAltException`)}constructor(e,t,n){super(e,t),this.previousToken=n,this.name=ix}},fx=class extends lx{static{o(this,`NotAllInputParsedException`)}constructor(e,t){super(e,t),this.name=ox}},px=class extends lx{static{o(this,`EarlyExitException`)}constructor(e,t,n){super(e,t),this.previousToken=n,this.name=ax}},mx={},hx=`InRuleRecoveryException`,gx=class extends Error{static{o(this,`InRuleRecoveryException`)}constructor(e){super(e),this.name=hx}},_x=class{static{o(this,`Recoverable`)}initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=V(e,`recoveryEnabled`)?e.recoveryEnabled:dS.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=vx)}getTokenToInsert(e){let t=nb(e,``,NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,n,r){let i=this.findReSyncTokenType(),a=this.exportLexerState(),s=[],c=!1,l=this.LA(1),u=this.LA(1),d=o(()=>{let e=this.LA(0),t=new ux(this.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),l,this.LA(0));t.resyncedTokens=wg(s),this.SAVE_ERROR(t)},`generateErrorMessage`);for(;!c;)if(this.tokenMatcher(u,r)){d();return}else if(n.call(this)){d(),e.apply(this,t);return}else this.tokenMatcher(u,i)?c=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,s));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,n){return!(n===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getFollowsForInRuleRecovery(e,t){let n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new gx(`sad sad panda`)}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||U(t))return!1;let n=this.LA(1);return Hg(t,e=>this.tokenMatcher(n,e))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return u_(this.getFollowSetFromFollowKey(t),e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA(1),n=2;for(;;){let r=Hg(e,e=>rb(t,e));if(r!==void 0)return r;t=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return mx;let e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return B(e,(n,r)=>r===0?mx:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:t[r],inRule:this.shortRuleNameToFullName(e[r-1])})}flattenFollowSet(){return Ld(B(this.buildFullFollowKeyStack(),e=>this.getFollowSetFromFollowKey(e)))}getFollowSetFromFollowKey(e){if(e===mx)return[tb];let t=e.ruleName+e.idxInCallingRule+wv+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,tb)||t.push(e),t}reSyncTo(e){let t=[],n=this.LA(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return wg(t)}attemptInRepetitionRecovery(e,t,n,r,i,a,o){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:Sm(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return B(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}};function vx(e,t,n,r,i,a,o){let s=this.getKeyForAutomaticLookahead(r,i),c=this.firstAfterRepMap[s];if(c===void 0){let e=this.getCurrRuleFullName(),t=this.getGAstProductions()[e];c=new a(t,i).startWalking(),this.firstAfterRepMap[s]=c}let l=c.token,u=c.occurrence,d=c.isEndOfRule;this.RULE_STACK.length===1&&d&&l===void 0&&(l=tb,u=1),!(l===void 0||u===void 0)&&this.shouldInRepetitionRecoveryBeTried(l,u,o)&&this.tryInRepetitionRecovery(e,t,n,l)}o(vx,`attemptInRepetitionRecovery`);var yx=4,bx=8,xx=8,Sx=1<<bx,Cx=2<<bx,wx=3<<bx,Tx=4<<bx,Ex=5<<bx,Dx=6<<bx;function Ox(e,t,n){return n|t|e}o(Ox,`getKeyForAutomaticLookahead`),32-xx;var kx=class{static{o(this,`LLkLookaheadStrategy`)}constructor(e){this.maxLookahead=e?.maxLookahead??dS.maxLookahead}validate(e){let t=this.validateNoLeftRecursion(e.rules);if(U(t)){let n=this.validateEmptyOrAlternatives(e.rules),r=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),i=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...t,...n,...r,...i]}return t}validateNoLeftRecursion(e){return Yg(e,e=>Wb(e,e,ob))}validateEmptyOrAlternatives(e){return Yg(e,e=>qb(e,ob))}validateAmbiguousAlternationAlternatives(e,t){return Yg(e,e=>Jb(e,t,ob))}validateSomeNonEmptyLookaheadPath(e,t){return Zb(e,t,ob)}buildLookaheadForAlternation(e){return xb(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,Cb)}buildLookaheadForOptional(e){return Sb(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,yb(e.prodType),wb)}},Ax=class{static{o(this,`LooksAhead`)}initLooksAhead(e){this.dynamicTokensEnabled=V(e,`dynamicTokensEnabled`)?e.dynamicTokensEnabled:dS.dynamicTokensEnabled,this.maxLookahead=V(e,`maxLookahead`)?e.maxLookahead:dS.maxLookahead,this.lookaheadStrategy=V(e,`lookaheadStrategy`)?e.lookaheadStrategy:new kx({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){z(e,e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{let{alternation:t,repetition:n,option:r,repetitionMandatory:i,repetitionMandatoryWithSeparator:a,repetitionWithSeparator:o}=Mx(e);z(t,t=>{let n=t.idx===0?``:t.idx;this.TRACE_INIT(`${_v(t)}${n}`,()=>{let n=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),r=Ox(this.fullRuleNameToShort[e.name],Sx,t.idx);this.setLaFuncCache(r,n)})}),z(n,t=>{this.computeLookaheadFunc(e,t.idx,wx,`Repetition`,t.maxLookahead,_v(t))}),z(r,t=>{this.computeLookaheadFunc(e,t.idx,Cx,`Option`,t.maxLookahead,_v(t))}),z(i,t=>{this.computeLookaheadFunc(e,t.idx,Tx,`RepetitionMandatory`,t.maxLookahead,_v(t))}),z(a,t=>{this.computeLookaheadFunc(e,t.idx,Dx,`RepetitionMandatoryWithSeparator`,t.maxLookahead,_v(t))}),z(o,t=>{this.computeLookaheadFunc(e,t.idx,Ex,`RepetitionWithSeparator`,t.maxLookahead,_v(t))})})})}computeLookaheadFunc(e,t,n,r,i,a){this.TRACE_INIT(`${a}${t===0?``:t}`,()=>{let a=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:r}),o=Ox(this.fullRuleNameToShort[e.name],n,t);this.setLaFuncCache(o,a)})}getKeyForAutomaticLookahead(e,t){return Ox(this.getLastExplicitRuleShortName(),e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},jx=new class extends pv{static{o(this,`DslMethodsCollectorVisitor`)}constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}};function Mx(e){jx.reset(),e.accept(jx);let t=jx.dslMethods;return jx.reset(),t}o(Mx,`collectMethods`);function Nx(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}o(Nx,`setNodeLocationOnlyOffset`);function Px(e,t){isNaN(e.startOffset)===!0?(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&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}o(Px,`setNodeLocationFull`);function Fx(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}o(Fx,`addTerminalToCst`);function Ix(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}o(Ix,`addNoneTerminalToCst`);var Lx=`name`;function Rx(e,t){Object.defineProperty(e,Lx,{enumerable:!1,configurable:!0,writable:!1,value:t})}o(Rx,`defineNameProp`);function zx(e,t){let n=eu(e),r=n.length;for(let i=0;i<r;i++){let r=e[n[i]],a=r.length;for(let e=0;e<a;e++){let n=r[e];n.tokenTypeIdx===void 0&&this[n.name](n.children,t)}}}o(zx,`defaultVisit`);function Bx(e,t){let n=o(function(){},`derivedConstructor`);return Rx(n,e+`BaseSemantics`),n.prototype={visit:o(function(e,t){if(I(e)&&(e=e[0]),!w_(e))return this[e.name](e.children,t)},`visit`),validateVisitor:o(function(){let e=Ux(this,t);if(!U(e)){let t=B(e,e=>e.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
123
+ see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return`deprecated`},buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof iv?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};function sb(e,t){let n=new cb(e,t);return n.resolveRefs(),n.errors}o(sb,`resolveGrammar`);var cb=class extends pv{static{o(this,`GastRefResolverVisitor`)}constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){z(H(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:pS.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},lb=class extends vv{static{o(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=Sm(this.path.ruleStack).reverse(),this.occurrenceStack=Sm(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,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}}updateExpectedNext(){U(this.ruleStack)?(this.nextProductionName=``,this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},ub=class extends lb{static{o(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,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let e=new av({definition:t.concat(n)});this.possibleTokTypes=bv(e),this.found=!0}}},db=class extends vv{static{o(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}},fb=class extends db{static{o(this,`NextTerminalAfterManyWalker`)}walkMany(e,t,n){if(e.idx===this.occurrence){let e=Wg(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof G&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,n)}},pb=class extends db{static{o(this,`NextTerminalAfterManySepWalker`)}walkManySep(e,t,n){if(e.idx===this.occurrence){let e=Wg(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof G&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,n)}},mb=class extends db{static{o(this,`NextTerminalAfterAtLeastOneWalker`)}walkAtLeastOne(e,t,n){if(e.idx===this.occurrence){let e=Wg(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof G&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,n)}},hb=class extends db{static{o(this,`NextTerminalAfterAtLeastOneSepWalker`)}walkAtLeastOneSep(e,t,n){if(e.idx===this.occurrence){let e=Wg(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof G&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,n)}};function gb(e,t,n=[]){n=Sm(n);let r=[],i=0;function a(t){return t.concat(Sg(e,i+1))}o(a,`remainingPathWith`);function s(e){let i=gb(a(e),t,n);return r.concat(i)}for(o(s,`getAlternativesForProd`);n.length<t&&i<e.length;){let t=e[i];if(t instanceof av||t instanceof rv)return s(t.definition);if(t instanceof ov)r=s(t.definition);else if(t instanceof sv)return s(t.definition.concat([new W({definition:t.definition})]));else if(t instanceof cv)return s([new av({definition:t.definition}),new W({definition:[new G({terminalType:t.separator})].concat(t.definition)})]);else if(t instanceof lv)r=s(t.definition.concat([new W({definition:[new G({terminalType:t.separator})].concat(t.definition)})]));else if(t instanceof W)r=s(t.definition.concat([new W({definition:t.definition})]));else if(t instanceof uv)return z(t.definition,e=>{U(e.definition)===!1&&(r=s(e.definition))}),r;else if(t instanceof G)n.push(t.terminalType);else throw Error(`non exhaustive match`);i++}return r.push({partialPath:n,suffixDef:Sg(e,i)}),r}o(gb,`possiblePathsFrom`);function _b(e,t,n,r){let i=`EXIT_NONE_TERMINAL`,a=[i],o=`EXIT_ALTERNATIVE`,s=!1,c=t.length,l=c-r-1,u=[],d=[];for(d.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!U(d);){let e=d.pop();if(e===o){s&&bg(d).idx<=l&&d.pop();continue}let r=e.def,f=e.idx,p=e.ruleStack,m=e.occurrenceStack;if(U(r))continue;let h=r[0];if(h===i){let e={idx:f,def:Sg(r),ruleStack:wg(p),occurrenceStack:wg(m)};d.push(e)}else if(h instanceof G)if(f<c-1){let e=f+1,i=t[e];if(n(i,h.terminalType)){let t={idx:e,def:Sg(r),ruleStack:p,occurrenceStack:m};d.push(t)}}else if(f===c-1)u.push({nextTokenType:h.terminalType,nextTokenOccurrence:h.idx,ruleStack:p,occurrenceStack:m}),s=!0;else throw Error(`non exhaustive match`);else if(h instanceof rv){let e=Sm(p);e.push(h.nonTerminalName);let t=Sm(m);t.push(h.idx);let n={idx:f,def:h.definition.concat(a,Sg(r)),ruleStack:e,occurrenceStack:t};d.push(n)}else if(h instanceof ov){let e={idx:f,def:Sg(r),ruleStack:p,occurrenceStack:m};d.push(e),d.push(o);let t={idx:f,def:h.definition.concat(Sg(r)),ruleStack:p,occurrenceStack:m};d.push(t)}else if(h instanceof sv){let e=new W({definition:h.definition,idx:h.idx}),t={idx:f,def:h.definition.concat([e],Sg(r)),ruleStack:p,occurrenceStack:m};d.push(t)}else if(h instanceof cv){let e=new W({definition:[new G({terminalType:h.separator})].concat(h.definition),idx:h.idx}),t={idx:f,def:h.definition.concat([e],Sg(r)),ruleStack:p,occurrenceStack:m};d.push(t)}else if(h instanceof lv){let e={idx:f,def:Sg(r),ruleStack:p,occurrenceStack:m};d.push(e),d.push(o);let t=new W({definition:[new G({terminalType:h.separator})].concat(h.definition),idx:h.idx}),n={idx:f,def:h.definition.concat([t],Sg(r)),ruleStack:p,occurrenceStack:m};d.push(n)}else if(h instanceof W){let e={idx:f,def:Sg(r),ruleStack:p,occurrenceStack:m};d.push(e),d.push(o);let t=new W({definition:h.definition,idx:h.idx}),n={idx:f,def:h.definition.concat([t],Sg(r)),ruleStack:p,occurrenceStack:m};d.push(n)}else if(h instanceof uv)for(let e=h.definition.length-1;e>=0;e--){let t={idx:f,def:h.definition[e].definition.concat(Sg(r)),ruleStack:p,occurrenceStack:m};d.push(t),d.push(o)}else if(h instanceof av)d.push({idx:f,def:h.definition.concat(Sg(r)),ruleStack:p,occurrenceStack:m});else if(h instanceof iv)d.push(vb(h,f,p,m));else throw Error(`non exhaustive match`)}return u}o(_b,`nextPossibleTokensAfter`);function vb(e,t,n,r){let i=Sm(n);i.push(e.name);let a=Sm(r);return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}o(vb,`expandTopLevelRule`);var q;(function(e){e[e.OPTION=0]=`OPTION`,e[e.REPETITION=1]=`REPETITION`,e[e.REPETITION_MANDATORY=2]=`REPETITION_MANDATORY`,e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]=`REPETITION_MANDATORY_WITH_SEPARATOR`,e[e.REPETITION_WITH_SEPARATOR=4]=`REPETITION_WITH_SEPARATOR`,e[e.ALTERNATION=5]=`ALTERNATION`})(q||={});function yb(e){if(e instanceof ov||e===`Option`)return q.OPTION;if(e instanceof W||e===`Repetition`)return q.REPETITION;if(e instanceof sv||e===`RepetitionMandatory`)return q.REPETITION_MANDATORY;if(e instanceof cv||e===`RepetitionMandatoryWithSeparator`)return q.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof lv||e===`RepetitionWithSeparator`)return q.REPETITION_WITH_SEPARATOR;if(e instanceof uv||e===`Alternation`)return q.ALTERNATION;throw Error(`non exhaustive match`)}o(yb,`getProdType`);function bb(e){let{occurrence:t,rule:n,prodType:r,maxLookahead:i}=e,a=yb(r);return a===q.ALTERNATION?jb(t,n,i):Mb(t,n,a,i)}o(bb,`getLookaheadPaths`);function xb(e,t,n,r,i,a){let o=jb(e,t,n);return a(o,r,Fb(o)?Ty:wy,i)}o(xb,`buildLookaheadFuncForOr`);function Sb(e,t,n,r,i,a){let o=Mb(e,t,i,n),s=Fb(o)?Ty:wy;return a(o[0],s,r)}o(Sb,`buildLookaheadFuncForOptionalProd`);function Cb(e,t,n,r){let i=e.length,a=Ng(e,e=>Ng(e,e=>e.length===1));if(t)return function(t){let r=B(t,e=>e.GATE);for(let t=0;t<i;t++){let i=e[t],a=i.length,o=r[t];if(!(o!==void 0&&o.call(this)===!1))nextPath:for(let e=0;e<a;e++){let r=i[e],a=r.length;for(let e=0;e<a;e++)if(n(this.LA(e+1),r[e])===!1)continue nextPath;return t}}};if(a&&!r){let t=L_(B(e,e=>Ld(e)),(e,t,n)=>(z(t,t=>{V(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=n),z(t.categoryMatches,t=>{V(e,t)||(e[t]=n)})}),e),{});return function(){let e=this.LA(1);return t[e.tokenTypeIdx]}}else return function(){for(let t=0;t<i;t++){let r=e[t],i=r.length;nextPath:for(let e=0;e<i;e++){let i=r[e],a=i.length;for(let e=0;e<a;e++)if(n(this.LA(e+1),i[e])===!1)continue nextPath;return t}}}}o(Cb,`buildAlternativesLookAheadFunc`);function wb(e,t,n){let r=Ng(e,e=>e.length===1),i=e.length;if(r&&!n){let t=Ld(e);if(t.length===1&&U(t[0].categoryMatches)){let e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}else{let e=L_(t,(e,t,n)=>(e[t.tokenTypeIdx]=!0,z(t.categoryMatches,t=>{e[t]=!0}),e),[]);return function(){let t=this.LA(1);return e[t.tokenTypeIdx]===!0}}}else return function(){nextPath:for(let n=0;n<i;n++){let r=e[n],i=r.length;for(let e=0;e<i;e++)if(t(this.LA(e+1),r[e])===!1)continue nextPath;return!0}return!1}}o(wb,`buildSingleAlternativeLookaheadFunction`);var Tb=class extends vv{static{o(this,`RestDefinitionFinderWalker`)}constructor(e,t,n){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,n,r){return e.idx===this.targetOccurrence&&this.targetProdType===t?(this.restDef=n.concat(r),!0):!1}walkOption(e,t,n){this.checkIsTarget(e,q.OPTION,t,n)||super.walkOption(e,t,n)}walkAtLeastOne(e,t,n){this.checkIsTarget(e,q.REPETITION_MANDATORY,t,n)||super.walkOption(e,t,n)}walkAtLeastOneSep(e,t,n){this.checkIsTarget(e,q.REPETITION_MANDATORY_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}walkMany(e,t,n){this.checkIsTarget(e,q.REPETITION,t,n)||super.walkOption(e,t,n)}walkManySep(e,t,n){this.checkIsTarget(e,q.REPETITION_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}},Eb=class extends pv{static{o(this,`InsideDefinitionFinderVisitor`)}constructor(e,t,n){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=n,this.result=[]}checkIsTarget(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.targetRef===void 0||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,q.OPTION)}visitRepetition(e){this.checkIsTarget(e,q.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,q.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,q.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,q.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,q.ALTERNATION)}};function Db(e){let t=Array(e);for(let n=0;n<e;n++)t[n]=[];return t}o(Db,`initializeArrayOfArrays`);function Ob(e){let t=[``];for(let n=0;n<e.length;n++){let r=e[n],i=[];for(let e=0;e<t.length;e++){let n=t[e];i.push(n+`_`+r.tokenTypeIdx);for(let e=0;e<r.categoryMatches.length;e++){let t=`_`+r.categoryMatches[e];i.push(n+t)}}t=i}return t}o(Ob,`pathToHashKeys`);function kb(e,t,n){for(let r=0;r<e.length;r++){if(r===n)continue;let i=e[r];for(let e=0;e<t.length;e++)if(i[t[e]]===!0)return!1}return!0}o(kb,`isUniquePrefixHash`);function Ab(e,t){let n=B(e,e=>gb([e],1)),r=Db(n.length),i=B(n,e=>{let t={};return z(e,e=>{z(Ob(e.partialPath),e=>{t[e]=!0})}),t}),a=n;for(let e=1;e<=t;e++){let n=a;a=Db(n.length);for(let o=0;o<n.length;o++){let s=n[o];for(let n=0;n<s.length;n++){let c=s[n].partialPath,l=s[n].suffixDef,u=Ob(c);if(kb(i,u,o)||U(l)||c.length===t){let e=r[o];if(Nb(e,c)===!1){e.push(c);for(let e=0;e<u.length;e++){let t=u[e];i[o][t]=!0}}}else{let t=gb(l,e+1,c);a[o]=a[o].concat(t),z(t,e=>{z(Ob(e.partialPath),e=>{i[o][e]=!0})})}}}}return r}o(Ab,`lookAheadSequenceFromAlternatives`);function jb(e,t,n,r){let i=new Eb(e,q.ALTERNATION,r);return t.accept(i),Ab(i.result,n)}o(jb,`getLookaheadPathsForOr`);function Mb(e,t,n,r){let i=new Eb(e,n);t.accept(i);let a=i.result,o=new Tb(t,e,n).startWalking();return Ab([new av({definition:a}),new av({definition:o})],r)}o(Mb,`getLookaheadPathsForOptionalProd`);function Nb(e,t){compareOtherPath:for(let n=0;n<e.length;n++){let r=e[n];if(r.length===t.length){for(let e=0;e<r.length;e++){let n=t[e],i=r[e];if(!(n===i||i.categoryMatchesMap[n.tokenTypeIdx]!==void 0))continue compareOtherPath}return!0}}return!1}o(Nb,`containsPath`);function Pb(e,t){return e.length<t.length&&Ng(e,(e,n)=>{let r=t[n];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]})}o(Pb,`isStrictPrefixOfPath`);function Fb(e){return Ng(e,e=>Ng(e,e=>Ng(e,e=>U(e.categoryMatches))))}o(Fb,`areTokenCategoriesNotUsed`);function Ib(e){return B(e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}),e=>Object.assign({type:pS.CUSTOM_LOOKAHEAD_VALIDATION},e))}o(Ib,`validateLookahead`);function Lb(e,t,n,r){let i=Yg(e,e=>Rb(e,n)),a=ex(e,t,n),o=Yg(e,e=>Xb(e,n)),s=Yg(e,t=>Hb(t,e,r,n));return i.concat(a,o,s)}o(Lb,`validateGrammar`);function Rb(e,t){let n=new Vb;e.accept(n);let r=n.allProductions;return B(H(N_(Zg(r,zb),e=>e.length>1)),n=>{let r=Wg(n),i=t.buildDuplicateFoundError(e,n),a=_v(r),o={message:i,type:pS.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:a,occurrence:r.idx},s=Bb(r);return s&&(o.parameter=s),o})}o(Rb,`validateDuplicateProductions`);function zb(e){return`${_v(e)}_#_${e.idx}_#_${Bb(e)}`}o(zb,`identifyProductionForDuplicates`);function Bb(e){return e instanceof G?e.terminalType.name:e instanceof rv?e.nonTerminalName:``}o(Bb,`getExtraProductionArgument`);var Vb=class extends pv{static{o(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 Hb(e,t,n,r){let i=[];if(L_(t,(t,n)=>n.name===e.name?t+1:t,0)>1){let t=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});i.push({message:t,type:pS.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}o(Hb,`validateRuleDoesNotAlreadyExist`);function Ub(e,t,n){let r=[],i;return u_(t,e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `,r.push({message:i,type:pS.INVALID_RULE_OVERRIDE,ruleName:e})),r}o(Ub,`validateRuleIsOverridden`);function Wb(e,t,n,r=[]){let i=[],a=Gb(t.definition);if(U(a))return[];{let t=e.name;u_(a,e)&&i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:pS.LEFT_RECURSION,ruleName:t});let o=Yg(vg(a,r.concat([e])),t=>{let i=Sm(r);return i.push(t),Wb(e,t,n,i)});return i.concat(o)}}o(Wb,`validateNoLeftRecursion`);function Gb(e){let t=[];if(U(e))return t;let n=Wg(e);if(n instanceof rv)t.push(n.referencedRule);else if(n instanceof av||n instanceof ov||n instanceof sv||n instanceof cv||n instanceof lv||n instanceof W)t=t.concat(Gb(n.definition));else if(n instanceof uv)t=Ld(B(n.definition,e=>Gb(e.definition)));else if(!(n instanceof G))throw Error(`non exhaustive match`);let r=hv(n),i=e.length>1;if(r&&i){let n=Sg(e);return t.concat(Gb(n))}else return t}o(Gb,`getFirstNoneTerminal`);var Kb=class extends pv{static{o(this,`OrCollector`)}constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};function qb(e,t){let n=new Kb;e.accept(n);let r=n.alternations;return Yg(r,n=>Yg(wg(n.definition),(r,i)=>U(_b([r],[],wy,1))?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:pS.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}]:[]))}o(qb,`validateEmptyOrAlternative`);function Jb(e,t,n){let r=new Kb;e.accept(r);let i=r.alternations;return i=z_(i,e=>e.ignoreAmbiguities===!0),Yg(i,r=>{let i=r.idx,a=jb(i,e,r.maxLookahead||t,r),o=Qb(a,r,e,n),s=$b(a,r,e,n);return o.concat(s)})}o(Jb,`validateAmbiguousAlternationAlternatives`);var Yb=class extends pv{static{o(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 Xb(e,t){let n=new Kb;e.accept(n);let r=n.alternations;return Yg(r,n=>n.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:pS.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}]:[])}o(Xb,`validateTooManyAlts`);function Zb(e,t,n){let r=[];return z(e,e=>{let i=new Yb;e.accept(i);let a=i.allProductions;z(a,i=>{let a=yb(i),o=i.maxLookahead||t,s=i.idx,c=Mb(s,e,a,o)[0];if(U(Ld(c))){let t=n.buildEmptyRepetitionError({topLevelRule:e,repetition:i});r.push({message:t,type:pS.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),r}o(Zb,`validateSomeNonEmptyLookaheadPath`);function Qb(e,t,n,r){let i=[];return B(L_(e,(n,r,a)=>(t.definition[a].ignoreAmbiguities===!0||z(r,r=>{let o=[a];z(e,(e,n)=>{a!==n&&Nb(e,r)&&t.definition[n].ignoreAmbiguities!==!0&&o.push(n)}),o.length>1&&!Nb(i,r)&&(i.push(r),n.push({alts:o,path:r}))}),n),[]),e=>{let i=B(e.alts,e=>e+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:pS.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:e.alts}})}o(Qb,`checkAlternativesAmbiguities`);function $b(e,t,n,r){let i=L_(e,(e,t,n)=>{let r=B(t,e=>({idx:n,path:e}));return e.concat(r)},[]);return wm(Yg(i,e=>{if(t.definition[e.idx].ignoreAmbiguities===!0)return[];let a=e.idx,o=e.path;return B(Lg(i,e=>t.definition[e.idx].ignoreAmbiguities!==!0&&e.idx<a&&Pb(e.path,o)),e=>{let i=[e.idx+1,a+1],o=t.idx===0?``:t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:pS.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:o,alternatives:i}})}))}o($b,`checkPrefixAlternativesAmbiguities`);function ex(e,t,n){let r=[],i=B(t,e=>e.name);return z(e,e=>{let t=e.name;if(u_(i,t)){let i=n.buildNamespaceConflictError(e);r.push({message:i,type:pS.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),r}o(ex,`checkTerminalAndNoneTerminalsNameSpace`);function tx(e){let t=ug(e,{errMsgProvider:ab}),n={};return z(e.rules,e=>{n[e.name]=e}),sb(n,t.errMsgProvider)}o(tx,`resolveGrammar`);function nx(e){return e=ug(e,{errMsgProvider:ob}),Lb(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}o(nx,`validateGrammar`);var rx=`MismatchedTokenException`,ix=`NoViableAltException`,ax=`EarlyExitException`,ox=`NotAllInputParsedException`,sx=[rx,ix,ax,ox];Object.freeze(sx);function cx(e){return u_(sx,e.name)}o(cx,`isRecognitionException`);var lx=class extends Error{static{o(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)}},ux=class extends lx{static{o(this,`MismatchedTokenException`)}constructor(e,t,n){super(e,t),this.previousToken=n,this.name=rx}},dx=class extends lx{static{o(this,`NoViableAltException`)}constructor(e,t,n){super(e,t),this.previousToken=n,this.name=ix}},fx=class extends lx{static{o(this,`NotAllInputParsedException`)}constructor(e,t){super(e,t),this.name=ox}},px=class extends lx{static{o(this,`EarlyExitException`)}constructor(e,t,n){super(e,t),this.previousToken=n,this.name=ax}},mx={},hx=`InRuleRecoveryException`,gx=class extends Error{static{o(this,`InRuleRecoveryException`)}constructor(e){super(e),this.name=hx}},_x=class{static{o(this,`Recoverable`)}initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=V(e,`recoveryEnabled`)?e.recoveryEnabled:dS.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=vx)}getTokenToInsert(e){let t=nb(e,``,NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,n,r){let i=this.findReSyncTokenType(),a=this.exportLexerState(),s=[],c=!1,l=this.LA(1),u=this.LA(1),d=o(()=>{let e=this.LA(0),t=new ux(this.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),l,this.LA(0));t.resyncedTokens=wg(s),this.SAVE_ERROR(t)},`generateErrorMessage`);for(;!c;)if(this.tokenMatcher(u,r)){d();return}else if(n.call(this)){d(),e.apply(this,t);return}else this.tokenMatcher(u,i)?c=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,s));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,n){return!(n===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getFollowsForInRuleRecovery(e,t){let n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new gx(`sad sad panda`)}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||U(t))return!1;let n=this.LA(1);return Hg(t,e=>this.tokenMatcher(n,e))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return u_(this.getFollowSetFromFollowKey(t),e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA(1),n=2;for(;;){let r=Hg(e,e=>rb(t,e));if(r!==void 0)return r;t=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return mx;let e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return B(e,(n,r)=>r===0?mx:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:t[r],inRule:this.shortRuleNameToFullName(e[r-1])})}flattenFollowSet(){return Ld(B(this.buildFullFollowKeyStack(),e=>this.getFollowSetFromFollowKey(e)))}getFollowSetFromFollowKey(e){if(e===mx)return[tb];let t=e.ruleName+e.idxInCallingRule+wv+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,tb)||t.push(e),t}reSyncTo(e){let t=[],n=this.LA(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return wg(t)}attemptInRepetitionRecovery(e,t,n,r,i,a,o){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:Sm(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return B(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}};function vx(e,t,n,r,i,a,o){let s=this.getKeyForAutomaticLookahead(r,i),c=this.firstAfterRepMap[s];if(c===void 0){let e=this.getCurrRuleFullName(),t=this.getGAstProductions()[e];c=new a(t,i).startWalking(),this.firstAfterRepMap[s]=c}let l=c.token,u=c.occurrence,d=c.isEndOfRule;this.RULE_STACK.length===1&&d&&l===void 0&&(l=tb,u=1),!(l===void 0||u===void 0)&&this.shouldInRepetitionRecoveryBeTried(l,u,o)&&this.tryInRepetitionRecovery(e,t,n,l)}o(vx,`attemptInRepetitionRecovery`);var yx=4,bx=8,xx=8,Sx=1<<bx,Cx=2<<bx,wx=3<<bx,Tx=4<<bx,Ex=5<<bx,Dx=6<<bx;function Ox(e,t,n){return n|t|e}o(Ox,`getKeyForAutomaticLookahead`),32-xx;var kx=class{static{o(this,`LLkLookaheadStrategy`)}constructor(e){this.maxLookahead=e?.maxLookahead??dS.maxLookahead}validate(e){let t=this.validateNoLeftRecursion(e.rules);if(U(t)){let n=this.validateEmptyOrAlternatives(e.rules),r=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),i=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...t,...n,...r,...i]}return t}validateNoLeftRecursion(e){return Yg(e,e=>Wb(e,e,ob))}validateEmptyOrAlternatives(e){return Yg(e,e=>qb(e,ob))}validateAmbiguousAlternationAlternatives(e,t){return Yg(e,e=>Jb(e,t,ob))}validateSomeNonEmptyLookaheadPath(e,t){return Zb(e,t,ob)}buildLookaheadForAlternation(e){return xb(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,Cb)}buildLookaheadForOptional(e){return Sb(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,yb(e.prodType),wb)}},Ax=class{static{o(this,`LooksAhead`)}initLooksAhead(e){this.dynamicTokensEnabled=V(e,`dynamicTokensEnabled`)?e.dynamicTokensEnabled:dS.dynamicTokensEnabled,this.maxLookahead=V(e,`maxLookahead`)?e.maxLookahead:dS.maxLookahead,this.lookaheadStrategy=V(e,`lookaheadStrategy`)?e.lookaheadStrategy:new kx({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){z(e,e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{let{alternation:t,repetition:n,option:r,repetitionMandatory:i,repetitionMandatoryWithSeparator:a,repetitionWithSeparator:o}=Mx(e);z(t,t=>{let n=t.idx===0?``:t.idx;this.TRACE_INIT(`${_v(t)}${n}`,()=>{let n=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),r=Ox(this.fullRuleNameToShort[e.name],Sx,t.idx);this.setLaFuncCache(r,n)})}),z(n,t=>{this.computeLookaheadFunc(e,t.idx,wx,`Repetition`,t.maxLookahead,_v(t))}),z(r,t=>{this.computeLookaheadFunc(e,t.idx,Cx,`Option`,t.maxLookahead,_v(t))}),z(i,t=>{this.computeLookaheadFunc(e,t.idx,Tx,`RepetitionMandatory`,t.maxLookahead,_v(t))}),z(a,t=>{this.computeLookaheadFunc(e,t.idx,Dx,`RepetitionMandatoryWithSeparator`,t.maxLookahead,_v(t))}),z(o,t=>{this.computeLookaheadFunc(e,t.idx,Ex,`RepetitionWithSeparator`,t.maxLookahead,_v(t))})})})}computeLookaheadFunc(e,t,n,r,i,a){this.TRACE_INIT(`${a}${t===0?``:t}`,()=>{let a=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:r}),o=Ox(this.fullRuleNameToShort[e.name],n,t);this.setLaFuncCache(o,a)})}getKeyForAutomaticLookahead(e,t){return Ox(this.getLastExplicitRuleShortName(),e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},jx=new class extends pv{static{o(this,`DslMethodsCollectorVisitor`)}constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}};function Mx(e){jx.reset(),e.accept(jx);let t=jx.dslMethods;return jx.reset(),t}o(Mx,`collectMethods`);function Nx(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}o(Nx,`setNodeLocationOnlyOffset`);function Px(e,t){isNaN(e.startOffset)===!0?(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&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}o(Px,`setNodeLocationFull`);function Fx(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}o(Fx,`addTerminalToCst`);function Ix(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}o(Ix,`addNoneTerminalToCst`);var Lx=`name`;function Rx(e,t){Object.defineProperty(e,Lx,{enumerable:!1,configurable:!0,writable:!1,value:t})}o(Rx,`defineNameProp`);function zx(e,t){let n=eu(e),r=n.length;for(let i=0;i<r;i++){let r=e[n[i]],a=r.length;for(let e=0;e<a;e++){let n=r[e];n.tokenTypeIdx===void 0&&this[n.name](n.children,t)}}}o(zx,`defaultVisit`);function Bx(e,t){let n=o(function(){},`derivedConstructor`);return Rx(n,e+`BaseSemantics`),n.prototype={visit:o(function(e,t){if(I(e)&&(e=e[0]),!w_(e))return this[e.name](e.children,t)},`visit`),validateVisitor:o(function(){let e=Ux(this,t);if(!U(e)){let t=B(e,e=>e.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
124
124
  ${t.join(`
125
125
 
126
126
  `).replace(/\n/g,`
@@ -144,7 +144,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
144
144
  `)}`)})}constructor(e,t){this.definitionErrors=[],this.selfAnalysisDone=!1;let n=this;if(n.initErrorHandler(t),n.initLexerAdapter(),n.initLooksAhead(t),n.initRecognizerEngine(e,t),n.initRecoverable(t),n.initTreeBuilder(t),n.initContentAssist(),n.initGastRecorder(t),n.initPerformanceTracer(t),V(t,`ignoredIssues`))throw Error(`The <ignoredIssues> IParserConfig property has been deprecated.
145
145
  Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
146
146
  See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
147
- For further details.`);this.skipValidations=V(t,`skipValidations`)?t.skipValidations:dS.skipValidations}};hS.DEFER_DEFINITION_ERRORS_HANDLING=!1,lS(hS,[_x,Ax,Gx,Kx,Jx,qx,Yx,Xx,rS,cS]);var gS=class extends hS{static{o(this,`EmbeddedActionsParser`)}constructor(e,t=dS){let n=Sm(t);n.outputCst=!1,super(e,n)}};function _S(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}o(_S,`arrayMap`);var vS=_S;function yS(){this.__data__=[],this.size=0}o(yS,`listCacheClear`);var bS=yS;function xS(e,t){return e===t||e!==e&&t!==t}o(xS,`eq`);var SS=xS;function CS(e,t){for(var n=e.length;n--;)if(SS(e[n][0],t))return n;return-1}o(CS,`assocIndexOf`);var wS=CS,TS=Array.prototype.splice;function ES(e){var t=this.__data__,n=wS(t,e);return n<0?!1:(n==t.length-1?t.pop():TS.call(t,n,1),--this.size,!0)}o(ES,`listCacheDelete`);var DS=ES;function OS(e){var t=this.__data__,n=wS(t,e);return n<0?void 0:t[n][1]}o(OS,`listCacheGet`);var kS=OS;function AS(e){return wS(this.__data__,e)>-1}o(AS,`listCacheHas`);var jS=AS;function MS(e,t){var n=this.__data__,r=wS(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}o(MS,`listCacheSet`);var NS=MS;function PS(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o(PS,`ListCache`),PS.prototype.clear=bS,PS.prototype.delete=DS,PS.prototype.get=kS,PS.prototype.has=jS,PS.prototype.set=NS;var FS=PS;function IS(){this.__data__=new FS,this.size=0}o(IS,`stackClear`);var LS=IS;function RS(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}o(RS,`stackDelete`);var zS=RS;function BS(e){return this.__data__.get(e)}o(BS,`stackGet`);var VS=BS;function HS(e){return this.__data__.has(e)}o(HS,`stackHas`);var US=HS,WS=typeof global==`object`&&global&&global.Object===Object&&global,GS=typeof self==`object`&&self&&self.Object===Object&&self,KS=WS||GS||Function(`return this`)(),qS=KS.Symbol,JS=Object.prototype,YS=JS.hasOwnProperty,XS=JS.toString,ZS=qS?qS.toStringTag:void 0;function QS(e){var t=YS.call(e,ZS),n=e[ZS];try{e[ZS]=void 0;var r=!0}catch{}var i=XS.call(e);return r&&(t?e[ZS]=n:delete e[ZS]),i}o(QS,`getRawTag`);var $S=QS,eC=Object.prototype.toString;function tC(e){return eC.call(e)}o(tC,`objectToString`);var nC=tC,rC=`[object Null]`,iC=`[object Undefined]`,aC=qS?qS.toStringTag:void 0;function oC(e){return e==null?e===void 0?iC:rC:aC&&aC in Object(e)?$S(e):nC(e)}o(oC,`baseGetTag`);var sC=oC;function cC(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}o(cC,`isObject`);var lC=cC,uC=`[object AsyncFunction]`,dC=`[object Function]`,fC=`[object GeneratorFunction]`,pC=`[object Proxy]`;function mC(e){if(!lC(e))return!1;var t=sC(e);return t==dC||t==fC||t==uC||t==pC}o(mC,`isFunction`);var hC=mC,gC=KS[`__core-js_shared__`],_C=(function(){var e=/[^.]+$/.exec(gC&&gC.keys&&gC.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})();function vC(e){return!!_C&&_C in e}o(vC,`isMasked`);var yC=vC,bC=Function.prototype.toString;function xC(e){if(e!=null){try{return bC.call(e)}catch{}try{return e+``}catch{}}return``}o(xC,`toSource`);var SC=xC,CC=/[\\^$.*+?()[\]{}|]/g,wC=/^\[object .+?Constructor\]$/,TC=Function.prototype,EC=Object.prototype,DC=TC.toString,OC=EC.hasOwnProperty,kC=RegExp(`^`+DC.call(OC).replace(CC,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function AC(e){return!lC(e)||yC(e)?!1:(hC(e)?kC:wC).test(SC(e))}o(AC,`baseIsNative`);var jC=AC;function MC(e,t){return e?.[t]}o(MC,`getValue`);var NC=MC;function PC(e,t){var n=NC(e,t);return jC(n)?n:void 0}o(PC,`getNative`);var FC=PC,IC=FC(KS,`Map`),LC=FC(Object,`create`);function RC(){this.__data__=LC?LC(null):{},this.size=0}o(RC,`hashClear`);var zC=RC;function BC(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}o(BC,`hashDelete`);var VC=BC,HC=`__lodash_hash_undefined__`,UC=Object.prototype.hasOwnProperty;function WC(e){var t=this.__data__;if(LC){var n=t[e];return n===HC?void 0:n}return UC.call(t,e)?t[e]:void 0}o(WC,`hashGet`);var GC=WC,KC=Object.prototype.hasOwnProperty;function qC(e){var t=this.__data__;return LC?t[e]!==void 0:KC.call(t,e)}o(qC,`hashHas`);var JC=qC,YC=`__lodash_hash_undefined__`;function XC(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=LC&&t===void 0?YC:t,this}o(XC,`hashSet`);var ZC=XC;function QC(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o(QC,`Hash`),QC.prototype.clear=zC,QC.prototype.delete=VC,QC.prototype.get=GC,QC.prototype.has=JC,QC.prototype.set=ZC;var $C=QC;function ew(){this.size=0,this.__data__={hash:new $C,map:new(IC||FS),string:new $C}}o(ew,`mapCacheClear`);var tw=ew;function nw(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}o(nw,`isKeyable`);var rw=nw;function iw(e,t){var n=e.__data__;return rw(t)?n[typeof t==`string`?`string`:`hash`]:n.map}o(iw,`getMapData`);var aw=iw;function ow(e){var t=aw(this,e).delete(e);return this.size-=+!!t,t}o(ow,`mapCacheDelete`);var sw=ow;function cw(e){return aw(this,e).get(e)}o(cw,`mapCacheGet`);var lw=cw;function uw(e){return aw(this,e).has(e)}o(uw,`mapCacheHas`);var dw=uw;function fw(e,t){var n=aw(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}o(fw,`mapCacheSet`);var pw=fw;function mw(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o(mw,`MapCache`),mw.prototype.clear=tw,mw.prototype.delete=sw,mw.prototype.get=lw,mw.prototype.has=dw,mw.prototype.set=pw;var hw=mw,gw=200;function _w(e,t){var n=this.__data__;if(n instanceof FS){var r=n.__data__;if(!IC||r.length<gw-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new hw(r)}return n.set(e,t),this.size=n.size,this}o(_w,`stackSet`);var vw=_w;function yw(e){var t=this.__data__=new FS(e);this.size=t.size}o(yw,`Stack`),yw.prototype.clear=LS,yw.prototype.delete=zS,yw.prototype.get=VS,yw.prototype.has=US,yw.prototype.set=vw;var bw=yw,xw=`__lodash_hash_undefined__`;function Sw(e){return this.__data__.set(e,xw),this}o(Sw,`setCacheAdd`);var Cw=Sw;function ww(e){return this.__data__.has(e)}o(ww,`setCacheHas`);var Tw=ww;function Ew(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new hw;++t<n;)this.add(e[t])}o(Ew,`SetCache`),Ew.prototype.add=Ew.prototype.push=Cw,Ew.prototype.has=Tw;var Dw=Ew;function Ow(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}o(Ow,`arraySome`);var kw=Ow;function Aw(e,t){return e.has(t)}o(Aw,`cacheHas`);var jw=Aw,Mw=1,Nw=2;function Pw(e,t,n,r,i,a){var o=n&Mw,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Nw?new Dw:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!kw(t,function(e,t){if(!jw(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}o(Pw,`equalArrays`);var Fw=Pw,Iw=KS.Uint8Array;function Lw(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}o(Lw,`mapToArray`);var Rw=Lw;function zw(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}o(zw,`setToArray`);var Bw=zw,Vw=1,Hw=2,Uw=`[object Boolean]`,Ww=`[object Date]`,Gw=`[object Error]`,Kw=`[object Map]`,qw=`[object Number]`,Jw=`[object RegExp]`,Yw=`[object Set]`,Xw=`[object String]`,Zw=`[object Symbol]`,Qw=`[object ArrayBuffer]`,$w=`[object DataView]`,eT=qS?qS.prototype:void 0,tT=eT?eT.valueOf:void 0;function nT(e,t,n,r,i,a,o){switch(n){case $w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Qw:return!(e.byteLength!=t.byteLength||!a(new Iw(e),new Iw(t)));case Uw:case Ww:case qw:return SS(+e,+t);case Gw:return e.name==t.name&&e.message==t.message;case Jw:case Xw:return e==t+``;case Kw:var s=Rw;case Yw:var c=r&Vw;if(s||=Bw,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=Hw,o.set(e,t);var u=Fw(s(e),s(t),r,i,a,o);return o.delete(e),u;case Zw:if(tT)return tT.call(e)==tT.call(t)}return!1}o(nT,`equalByTag`);var rT=nT;function iT(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}o(iT,`arrayPush`);var aT=iT,oT=Array.isArray;function sT(e,t,n){var r=t(e);return oT(e)?r:aT(r,n(e))}o(sT,`baseGetAllKeys`);var cT=sT;function lT(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}o(lT,`arrayFilter`);var uT=lT;function dT(){return[]}o(dT,`stubArray`);var fT=dT,pT=Object.prototype.propertyIsEnumerable,mT=Object.getOwnPropertySymbols,hT=mT?function(e){return e==null?[]:(e=Object(e),uT(mT(e),function(t){return pT.call(e,t)}))}:fT;function gT(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}o(gT,`baseTimes`);var _T=gT;function vT(e){return typeof e==`object`&&!!e}o(vT,`isObjectLike`);var yT=vT,bT=`[object Arguments]`;function xT(e){return yT(e)&&sC(e)==bT}o(xT,`baseIsArguments`);var ST=xT,CT=Object.prototype,wT=CT.hasOwnProperty,TT=CT.propertyIsEnumerable,ET=ST((function(){return arguments})())?ST:function(e){return yT(e)&&wT.call(e,`callee`)&&!TT.call(e,`callee`)};function DT(){return!1}o(DT,`stubFalse`);var OT=DT,kT=typeof exports==`object`&&exports&&!exports.nodeType&&exports,AT=kT&&typeof module==`object`&&module&&!module.nodeType&&module,jT=AT&&AT.exports===kT?KS.Buffer:void 0,MT=(jT?jT.isBuffer:void 0)||OT,NT=9007199254740991,PT=/^(?:0|[1-9]\d*)$/;function FT(e,t){var n=typeof e;return t??=NT,!!t&&(n==`number`||n!=`symbol`&&PT.test(e))&&e>-1&&e%1==0&&e<t}o(FT,`isIndex`);var IT=FT,LT=9007199254740991;function RT(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=LT}o(RT,`isLength`);var zT=RT,BT=`[object Arguments]`,VT=`[object Array]`,HT=`[object Boolean]`,UT=`[object Date]`,WT=`[object Error]`,GT=`[object Function]`,KT=`[object Map]`,qT=`[object Number]`,JT=`[object Object]`,YT=`[object RegExp]`,XT=`[object Set]`,ZT=`[object String]`,QT=`[object WeakMap]`,$T=`[object ArrayBuffer]`,eE=`[object DataView]`,tE=`[object Float32Array]`,nE=`[object Float64Array]`,rE=`[object Int8Array]`,iE=`[object Int16Array]`,aE=`[object Int32Array]`,oE=`[object Uint8Array]`,sE=`[object Uint8ClampedArray]`,cE=`[object Uint16Array]`,lE=`[object Uint32Array]`,J={};J[tE]=J[nE]=J[rE]=J[iE]=J[aE]=J[oE]=J[sE]=J[cE]=J[lE]=!0,J[BT]=J[VT]=J[$T]=J[HT]=J[eE]=J[UT]=J[WT]=J[GT]=J[KT]=J[qT]=J[JT]=J[YT]=J[XT]=J[ZT]=J[QT]=!1;function uE(e){return yT(e)&&zT(e.length)&&!!J[sC(e)]}o(uE,`baseIsTypedArray`);var dE=uE;function fE(e){return function(t){return e(t)}}o(fE,`baseUnary`);var pE=fE,mE=typeof exports==`object`&&exports&&!exports.nodeType&&exports,hE=mE&&typeof module==`object`&&module&&!module.nodeType&&module,gE=hE&&hE.exports===mE&&WS.process,_E=(function(){try{return hE&&hE.require&&hE.require(`util`).types||gE&&gE.binding&&gE.binding(`util`)}catch{}})(),vE=_E&&_E.isTypedArray,yE=vE?pE(vE):dE,bE=Object.prototype.hasOwnProperty;function xE(e,t){var n=oT(e),r=!n&&ET(e),i=!n&&!r&&MT(e),a=!n&&!r&&!i&&yE(e),o=n||r||i||a,s=o?_T(e.length,String):[],c=s.length;for(var l in e)(t||bE.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||IT(l,c)))&&s.push(l);return s}o(xE,`arrayLikeKeys`);var SE=xE,CE=Object.prototype;function wE(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||CE)}o(wE,`isPrototype`);var TE=wE;function EE(e,t){return function(n){return e(t(n))}}o(EE,`overArg`);var DE=EE(Object.keys,Object),OE=Object.prototype.hasOwnProperty;function kE(e){if(!TE(e))return DE(e);var t=[];for(var n in Object(e))OE.call(e,n)&&n!=`constructor`&&t.push(n);return t}o(kE,`baseKeys`);var AE=kE;function jE(e){return e!=null&&zT(e.length)&&!hC(e)}o(jE,`isArrayLike`);var ME=jE;function NE(e){return ME(e)?SE(e):AE(e)}o(NE,`keys`);var PE=NE;function FE(e){return cT(e,PE,hT)}o(FE,`getAllKeys`);var IE=FE,LE=1,RE=Object.prototype.hasOwnProperty;function zE(e,t,n,r,i,a){var o=n&LE,s=IE(e),c=s.length;if(c!=IE(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:RE.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}o(zE,`equalObjects`);var BE=zE,VE=FC(KS,`DataView`),HE=FC(KS,`Promise`),UE=FC(KS,`Set`),WE=FC(KS,`WeakMap`),GE=`[object Map]`,KE=`[object Object]`,qE=`[object Promise]`,JE=`[object Set]`,YE=`[object WeakMap]`,XE=`[object DataView]`,ZE=SC(VE),QE=SC(IC),$E=SC(HE),eD=SC(UE),tD=SC(WE),nD=sC;(VE&&nD(new VE(new ArrayBuffer(1)))!=XE||IC&&nD(new IC)!=GE||HE&&nD(HE.resolve())!=qE||UE&&nD(new UE)!=JE||WE&&nD(new WE)!=YE)&&(nD=o(function(e){var t=sC(e),n=t==KE?e.constructor:void 0,r=n?SC(n):``;if(r)switch(r){case ZE:return XE;case QE:return GE;case $E:return qE;case eD:return JE;case tD:return YE}return t},`getTag`));var rD=nD,iD=1,aD=`[object Arguments]`,oD=`[object Array]`,sD=`[object Object]`,cD=Object.prototype.hasOwnProperty;function lD(e,t,n,r,i,a){var o=oT(e),s=oT(t),c=o?oD:rD(e),l=s?oD:rD(t);c=c==aD?sD:c,l=l==aD?sD:l;var u=c==sD,d=l==sD,f=c==l;if(f&&MT(e)){if(!MT(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new bw,o||yE(e)?Fw(e,t,n,r,i,a):rT(e,t,c,n,r,i,a);if(!(n&iD)){var p=u&&cD.call(e,`__wrapped__`),m=d&&cD.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new bw,i(h,g,n,r,a)}}return f?(a||=new bw,BE(e,t,n,r,i,a)):!1}o(lD,`baseIsEqualDeep`);var uD=lD;function dD(e,t,n,r,i){return e===t?!0:e==null||t==null||!yT(e)&&!yT(t)?e!==e&&t!==t:uD(e,t,n,r,dD,i)}o(dD,`baseIsEqual`);var fD=dD,pD=1,mD=2;function hD(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new bw;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?fD(u,l,pD|mD,r,d):f))return!1}}return!0}o(hD,`baseIsMatch`);var gD=hD;function _D(e){return e===e&&!lC(e)}o(_D,`isStrictComparable`);var vD=_D;function yD(e){for(var t=PE(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,vD(i)]}return t}o(yD,`getMatchData`);var bD=yD;function xD(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}o(xD,`matchesStrictComparable`);var SD=xD;function CD(e){var t=bD(e);return t.length==1&&t[0][2]?SD(t[0][0],t[0][1]):function(n){return n===e||gD(n,e,t)}}o(CD,`baseMatches`);var wD=CD,TD=`[object Symbol]`;function ED(e){return typeof e==`symbol`||yT(e)&&sC(e)==TD}o(ED,`isSymbol`);var DD=ED,OD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kD=/^\w*$/;function AD(e,t){if(oT(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||DD(e)?!0:kD.test(e)||!OD.test(e)||t!=null&&e in Object(t)}o(AD,`isKey`);var jD=AD,MD=`Expected a function`;function ND(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(MD);var n=o(function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o},`memoized`);return n.cache=new(ND.Cache||hw),n}o(ND,`memoize`),ND.Cache=hw;var PD=ND,FD=500;function ID(e){var t=PD(e,function(e){return n.size===FD&&n.clear(),e}),n=t.cache;return t}o(ID,`memoizeCapped`);var LD=ID,RD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zD=/\\(\\)?/g,BD=LD(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(RD,function(e,n,r,i){t.push(r?i.replace(zD,`$1`):n||e)}),t}),VD=1/0,HD=qS?qS.prototype:void 0,UD=HD?HD.toString:void 0;function WD(e){if(typeof e==`string`)return e;if(oT(e))return vS(e,WD)+``;if(DD(e))return UD?UD.call(e):``;var t=e+``;return t==`0`&&1/e==-VD?`-0`:t}o(WD,`baseToString`);var GD=WD;function KD(e){return e==null?``:GD(e)}o(KD,`toString`);var qD=KD;function JD(e,t){return oT(e)?e:jD(e,t)?[e]:BD(qD(e))}o(JD,`castPath`);var YD=JD,XD=1/0;function ZD(e){if(typeof e==`string`||DD(e))return e;var t=e+``;return t==`0`&&1/e==-XD?`-0`:t}o(ZD,`toKey`);var QD=ZD;function $D(e,t){t=YD(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[QD(t[n++])];return n&&n==r?e:void 0}o($D,`baseGet`);var eO=$D;function tO(e,t,n){var r=e==null?void 0:eO(e,t);return r===void 0?n:r}o(tO,`get`);var nO=tO;function rO(e,t){return e!=null&&t in Object(e)}o(rO,`baseHasIn`);var iO=rO;function aO(e,t,n){t=YD(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=QD(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&zT(i)&&IT(o,i)&&(oT(e)||ET(e)))}o(aO,`hasPath`);var oO=aO;function sO(e,t){return e!=null&&oO(e,t,iO)}o(sO,`hasIn`);var cO=sO,lO=1,uO=2;function dO(e,t){return jD(e)&&vD(t)?SD(QD(e),t):function(n){var r=nO(n,e);return r===void 0&&r===t?cO(n,e):fD(t,r,lO|uO)}}o(dO,`baseMatchesProperty`);var fO=dO;function pO(e){return e}o(pO,`identity`);var mO=pO;function hO(e){return function(t){return t?.[e]}}o(hO,`baseProperty`);var gO=hO;function _O(e){return function(t){return eO(t,e)}}o(_O,`basePropertyDeep`);var vO=_O;function yO(e){return jD(e)?gO(QD(e)):vO(e)}o(yO,`property`);var bO=yO;function xO(e){return typeof e==`function`?e:e==null?mO:typeof e==`object`?oT(e)?fO(e[0],e[1]):wD(e):bO(e)}o(xO,`baseIteratee`);var SO=xO;function CO(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}o(CO,`createBaseFor`);var wO=CO();function TO(e,t){return e&&wO(e,t,PE)}o(TO,`baseForOwn`);var EO=TO;function DO(e,t){return function(n,r){if(n==null)return n;if(!ME(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}o(DO,`createBaseEach`);var OO=DO(EO);function kO(e,t){var n=-1,r=ME(e)?Array(e.length):[];return OO(e,function(e,i,a){r[++n]=t(e,i,a)}),r}o(kO,`baseMap`);var AO=kO;function jO(e,t){return(oT(e)?vS:AO)(e,SO(t,3))}o(jO,`map`);var MO=jO;function NO(e,t){var n=[];return OO(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}o(NO,`baseFilter`);var PO=NO;function FO(e,t){return(oT(e)?uT:PO)(e,SO(t,3))}o(FO,`filter`);var IO=FO;function LO(e,t,n){return`${e.name}_${t}_${n}`}o(LO,`buildATNKey`);var RO=1,zO=2,BO=4,VO=5,HO=7,UO=8,WO=9,GO=10,KO=11,qO=12,JO=class{static{o(this,`AbstractTransition`)}constructor(e){this.target=e}isEpsilon(){return!1}},YO=class extends JO{static{o(this,`AtomTransition`)}constructor(e,t){super(e),this.tokenType=t}},XO=class extends JO{static{o(this,`EpsilonTransition`)}constructor(e){super(e)}isEpsilon(){return!0}},ZO=class extends JO{static{o(this,`RuleTransition`)}constructor(e,t,n){super(e),this.rule=t,this.followState=n}isEpsilon(){return!0}};function QO(e){let t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};$O(t,e);let n=e.length;for(let r=0;r<n;r++){let n=e[r],i=sk(t,n,n);i!==void 0&&_k(t,n,i)}return t}o(QO,`createATN`);function $O(e,t){let n=t.length;for(let r=0;r<n;r++){let n=t[r],i=X(e,n,void 0,{type:zO}),a=X(e,n,void 0,{type:HO});i.stop=a,e.ruleToStartState.set(n,i),e.ruleToStopState.set(n,a)}}o($O,`createRuleStartAndStopATNStates`);function ek(e,t,n){return n instanceof G?hk(e,t,n.terminalType,n):n instanceof rv?gk(e,t,n):n instanceof uv?ak(e,t,n):n instanceof ov?ok(e,t,n):n instanceof W?tk(e,t,n):n instanceof lv?nk(e,t,n):n instanceof sv?rk(e,t,n):n instanceof cv?ik(e,t,n):sk(e,t,n)}o(ek,`atom`);function tk(e,t,n){let r=X(e,t,n,{type:VO});return dk(e,r),lk(e,t,n,fk(e,t,r,n,sk(e,t,n)))}o(tk,`repetition`);function nk(e,t,n){let r=X(e,t,n,{type:VO});return dk(e,r),lk(e,t,n,fk(e,t,r,n,sk(e,t,n)),hk(e,t,n.separator,n))}o(nk,`repetitionSep`);function rk(e,t,n){let r=X(e,t,n,{type:BO});return dk(e,r),ck(e,t,n,fk(e,t,r,n,sk(e,t,n)))}o(rk,`repetitionMandatory`);function ik(e,t,n){let r=X(e,t,n,{type:BO});return dk(e,r),ck(e,t,n,fk(e,t,r,n,sk(e,t,n)),hk(e,t,n.separator,n))}o(ik,`repetitionMandatorySep`);function ak(e,t,n){let r=X(e,t,n,{type:RO});return dk(e,r),fk(e,t,r,n,...MO(n.definition,n=>ek(e,t,n)))}o(ak,`alternation`);function ok(e,t,n){let r=X(e,t,n,{type:RO});return dk(e,r),uk(e,t,n,fk(e,t,r,n,sk(e,t,n)))}o(ok,`option`);function sk(e,t,n){let r=IO(MO(n.definition,n=>ek(e,t,n)),e=>e!==void 0);return r.length===1?r[0]:r.length===0?void 0:mk(e,r)}o(sk,`block`);function ck(e,t,n,r,i){let a=r.left,o=r.right,s=X(e,t,n,{type:KO});dk(e,s);let c=X(e,t,n,{type:qO});return a.loopback=s,c.loopback=s,e.decisionMap[LO(t,i?`RepetitionMandatoryWithSeparator`:`RepetitionMandatory`,n.idx)]=s,Y(o,s),i===void 0?(Y(s,a),Y(s,c)):(Y(s,c),Y(s,i.left),Y(i.right,a)),{left:a,right:c}}o(ck,`plus`);function lk(e,t,n,r,i){let a=r.left,o=r.right,s=X(e,t,n,{type:GO});dk(e,s);let c=X(e,t,n,{type:qO}),l=X(e,t,n,{type:WO});return s.loopback=l,c.loopback=l,Y(s,a),Y(s,c),Y(o,l),i===void 0?Y(l,s):(Y(l,c),Y(l,i.left),Y(i.right,a)),e.decisionMap[LO(t,i?`RepetitionWithSeparator`:`Repetition`,n.idx)]=s,{left:s,right:c}}o(lk,`star`);function uk(e,t,n,r){let i=r.left,a=r.right;return Y(i,a),e.decisionMap[LO(t,`Option`,n.idx)]=i,r}o(uk,`optional`);function dk(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}o(dk,`defineDecisionState`);function fk(e,t,n,r,...i){let a=X(e,t,r,{type:UO,start:n});n.end=a;for(let e of i)e===void 0?Y(n,a):(Y(n,e.left),Y(e.right,a));let o={left:n,right:a};return e.decisionMap[LO(t,pk(r),r.idx)]=n,o}o(fk,`makeAlts`);function pk(e){if(e instanceof uv)return`Alternation`;if(e instanceof ov)return`Option`;if(e instanceof W)return`Repetition`;if(e instanceof lv)return`RepetitionWithSeparator`;if(e instanceof sv)return`RepetitionMandatory`;if(e instanceof cv)return`RepetitionMandatoryWithSeparator`;throw Error(`Invalid production type encountered`)}o(pk,`getProdType`);function mk(e,t){let n=t.length;for(let r=0;r<n-1;r++){let n=t[r],i;n.left.transitions.length===1&&(i=n.left.transitions[0]);let a=i instanceof ZO,o=i,s=t[r+1].left;n.left.type===RO&&n.right.type===RO&&i!==void 0&&(a&&o.followState===n.right||i.target===n.right)?(a?o.followState=s:i.target=s,yk(e,n.right)):Y(n.right,s)}let r=t[0],i=t[n-1];return{left:r.left,right:i.right}}o(mk,`makeBlock`);function hk(e,t,n,r){let i=X(e,t,r,{type:RO}),a=X(e,t,r,{type:RO});return vk(i,new YO(a,n)),{left:i,right:a}}o(hk,`tokenRef`);function gk(e,t,n){let r=n.referencedRule,i=e.ruleToStartState.get(r),a=X(e,t,n,{type:RO}),o=X(e,t,n,{type:RO});return vk(a,new ZO(i,r,o)),{left:a,right:o}}o(gk,`ruleRef`);function _k(e,t,n){let r=e.ruleToStartState.get(t);Y(r,n.left);let i=e.ruleToStopState.get(t);return Y(n.right,i),{left:r,right:i}}o(_k,`buildRuleHandle`);function Y(e,t){vk(e,new XO(t))}o(Y,`epsilon`);function X(e,t,n,r){let i=Object.assign({atn:e,production:n,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:e.states.length},r);return e.states.push(i),i}o(X,`newState`);function vk(e,t){e.transitions.length===0&&(e.epsilonOnlyTransitions=t.isEpsilon()),e.transitions.push(t)}o(vk,`addTransition`);function yk(e,t){e.states.splice(e.states.indexOf(t),1)}o(yk,`removeState`);var bk={},xk=class{static{o(this,`ATNConfigSet`)}constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){let t=Sk(e);t in this.map||(this.map[t]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return MO(this.configs,e=>e.alt)}get key(){let e=``;for(let t in this.map)e+=t+`:`;return e}};function Sk(e,t=!0){return`${t?`a${e.alt}`:``}s${e.state.stateNumber}:${e.stack.map(e=>e.stateNumber.toString()).join(`_`)}`}o(Sk,`getATNConfigKey`);function Ck(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(o!=null&&(s===void 0?o===o&&!DD(o):n(o,s)))var s=o,c=a}return c}o(Ck,`baseExtremum`);var wk=Ck;function Tk(e,t){return e<t}o(Tk,`baseLt`);var Ek=Tk;function Dk(e){return e&&e.length?wk(e,mO,Ek):void 0}o(Dk,`min`);var Ok=Dk,kk=qS?qS.isConcatSpreadable:void 0;function Ak(e){return oT(e)||ET(e)||!!(kk&&e&&e[kk])}o(Ak,`isFlattenable`);var jk=Ak;function Mk(e,t,n,r,i){var a=-1,o=e.length;for(n||=jk,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Mk(s,t-1,n,r,i):aT(i,s):r||(i[i.length]=s)}return i}o(Mk,`baseFlatten`);var Nk=Mk;function Pk(e,t){return Nk(MO(e,t),1)}o(Pk,`flatMap`);var Fk=Pk;function Ik(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}o(Ik,`baseFindIndex`);var Lk=Ik;function Rk(e){return e!==e}o(Rk,`baseIsNaN`);var zk=Rk;function Bk(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}o(Bk,`strictIndexOf`);var Vk=Bk;function Hk(e,t,n){return t===t?Vk(e,t,n):Lk(e,zk,n)}o(Hk,`baseIndexOf`);var Uk=Hk;function Wk(e,t){return!!(e!=null&&e.length)&&Uk(e,t,0)>-1}o(Wk,`arrayIncludes`);var Gk=Wk;function Kk(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}o(Kk,`arrayIncludesWith`);var qk=Kk;function Jk(){}o(Jk,`noop`);var Yk=Jk,Xk=UE&&1/Bw(new UE([,-0]))[1]==1/0?function(e){return new UE(e)}:Yk,Zk=200;function Qk(e,t,n){var r=-1,i=Gk,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=qk;else if(a>=Zk){var l=t?null:Xk(e);if(l)return Bw(l);o=!1,i=jw,c=new Dw}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}o(Qk,`baseUniq`);var $k=Qk;function eA(e,t){return e&&e.length?$k(e,SO(t,2)):[]}o(eA,`uniqBy`);var tA=eA;function nA(e){return e!=null&&e.length?Nk(e,1):[]}o(nA,`flatten`);var rA=nA;function iA(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}o(iA,`arrayEach`);var aA=iA;function oA(e){return typeof e==`function`?e:mO}o(oA,`castFunction`);var sA=oA;function cA(e,t){return(oT(e)?aA:OO)(e,sA(t))}o(cA,`forEach`);var lA=cA,uA=`[object Map]`,dA=`[object Set]`,fA=Object.prototype.hasOwnProperty;function pA(e){if(e==null)return!0;if(ME(e)&&(oT(e)||typeof e==`string`||typeof e.splice==`function`||MT(e)||yE(e)||ET(e)))return!e.length;var t=rD(e);if(t==uA||t==dA)return!e.size;if(TE(e))return!AE(e).length;for(var n in e)if(fA.call(e,n))return!1;return!0}o(pA,`isEmpty`);var mA=pA;function hA(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}o(hA,`arrayReduce`);var gA=hA;function _A(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}o(_A,`baseReduce`);var vA=_A;function yA(e,t,n){var r=oT(e)?gA:vA,i=arguments.length<3;return r(e,SO(t,4),n,i,OO)}o(yA,`reduce`);var bA=yA;function xA(e,t){let n={};return r=>{let i=r.toString(),a=n[i];return a===void 0?(a={atnStartState:e,decision:t,states:{}},n[i]=a,a):a}}o(xA,`createDFACache`);var SA=class{static{o(this,`PredicateSet`)}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e=``,t=this.predicates.length;for(let n=0;n<t;n++)e+=this.predicates[n]===!0?`1`:`0`;return e}},CA=new SA,wA=class extends kx{static{o(this,`LLStarLookaheadStrategy`)}constructor(e){super(),this.logging=e?.logging??(e=>console.log(e))}initialize(e){this.atn=QO(e.rules),this.dfas=EA(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:n,hasPredicates:r,dynamicTokensEnabled:i}=e,a=this.dfas,o=this.logging,s=LO(n,`Alternation`,t),c=this.atn.decisionMap[s].decision,l=MO(bb({maxLookahead:1,occurrence:t,prodType:`Alternation`,rule:n}),e=>MO(e,e=>e[0]));if(TA(l,!1)&&!i){let e=bA(l,(e,t,n)=>(lA(t,t=>{t&&(e[t.tokenTypeIdx]=n,lA(t.categoryMatches,t=>{e[t]=n}))}),e),{});return r?function(t){let n=e[this.LA(1).tokenTypeIdx];if(t!==void 0&&n!==void 0){let e=t[n]?.GATE;if(e!==void 0&&e.call(this)===!1)return}return n}:function(){return e[this.LA(1).tokenTypeIdx]}}else if(r)return function(e){let t=new SA,n=e===void 0?0:e.length;for(let r=0;r<n;r++){let n=e?.[r].GATE;t.set(r,n===void 0||n.call(this))}let r=DA.call(this,a,c,t,o);return typeof r==`number`?r:void 0};else return function(){let e=DA.call(this,a,c,CA,o);return typeof e==`number`?e:void 0}}buildLookaheadForOptional(e){let{prodOccurrence:t,rule:n,prodType:r,dynamicTokensEnabled:i}=e,a=this.dfas,o=this.logging,s=LO(n,r,t),c=this.atn.decisionMap[s].decision,l=MO(bb({maxLookahead:1,occurrence:t,prodType:r,rule:n}),e=>MO(e,e=>e[0]));if(TA(l)&&l[0][0]&&!i){let e=l[0],t=rA(e);if(t.length===1&&mA(t[0].categoryMatches)){let e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}else{let e=bA(t,(e,t)=>(t!==void 0&&(e[t.tokenTypeIdx]=!0,lA(t.categoryMatches,t=>{e[t]=!0})),e),{});return function(){return e[this.LA(1).tokenTypeIdx]===!0}}}return function(){let e=DA.call(this,a,c,CA,o);return typeof e==`object`?!1:e===0}}};function TA(e,t=!0){let n=new Set;for(let r of e){let e=new Set;for(let i of r){if(i===void 0){if(t)break;return!1}let r=[i.tokenTypeIdx].concat(i.categoryMatches);for(let t of r)if(n.has(t)){if(!e.has(t))return!1}else n.add(t),e.add(t)}}return!0}o(TA,`isLL1Sequence`);function EA(e){let t=e.decisionStates.length,n=Array(t);for(let r=0;r<t;r++)n[r]=xA(e.decisionStates[r],r);return n}o(EA,`initATNSimulator`);function DA(e,t,n,r){let i=e[t](n),a=i.start;return a===void 0&&(a=BA(i,RA(VA(i.atnStartState))),i.start=a),OA.apply(this,[i,a,n,r])}o(DA,`adaptivePredict`);function OA(e,t,n,r){let i=t,a=1,o=[],s=this.LA(a++);for(;;){let t=PA(i,s);if(t===void 0&&(t=kA.apply(this,[e,i,s,a,n,r])),t===bk)return NA(o,i,s);if(t.isAcceptState===!0)return t.prediction;i=t,o.push(s),s=this.LA(a++)}}o(OA,`performLookahead`);function kA(e,t,n,r,i,a){let o=FA(t.configs,n,i);if(o.size===0)return zA(e,t,n,bk),bk;let s=RA(o),c=LA(o,i);if(c!==void 0)s.isAcceptState=!0,s.prediction=c,s.configs.uniqueAlt=c;else if(KA(o)){let t=Ok(o.alts);s.isAcceptState=!0,s.prediction=t,s.configs.uniqueAlt=t,AA.apply(this,[e,r,o.alts,a])}return s=zA(e,t,n,s),s}o(kA,`computeLookaheadTarget`);function AA(e,t,n,r){let i=[];for(let e=1;e<=t;e++)i.push(this.LA(e).tokenType);let a=e.atnStartState,o=a.rule,s=a.production;r(jA({topLevelRule:o,ambiguityIndices:n,production:s,prefixPath:i}))}o(AA,`reportLookaheadAmbiguity`);function jA(e){let t=MO(e.prefixPath,e=>Hy(e)).join(`, `),n=e.production.idx===0?``:e.production.idx,r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(`, `)}> in <${MA(e.production)}${n}> inside <${e.topLevelRule.name}> Rule,
147
+ For further details.`);this.skipValidations=V(t,`skipValidations`)?t.skipValidations:dS.skipValidations}};hS.DEFER_DEFINITION_ERRORS_HANDLING=!1,lS(hS,[_x,Ax,Gx,Kx,Jx,qx,Yx,Xx,rS,cS]);var gS=class extends hS{static{o(this,`EmbeddedActionsParser`)}constructor(e,t=dS){let n=Sm(t);n.outputCst=!1,super(e,n)}};function _S(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}o(_S,`arrayMap`);var vS=_S;function yS(){this.__data__=[],this.size=0}o(yS,`listCacheClear`);var bS=yS;function xS(e,t){return e===t||e!==e&&t!==t}o(xS,`eq`);var SS=xS;function CS(e,t){for(var n=e.length;n--;)if(SS(e[n][0],t))return n;return-1}o(CS,`assocIndexOf`);var wS=CS,TS=Array.prototype.splice;function ES(e){var t=this.__data__,n=wS(t,e);return n<0?!1:(n==t.length-1?t.pop():TS.call(t,n,1),--this.size,!0)}o(ES,`listCacheDelete`);var DS=ES;function OS(e){var t=this.__data__,n=wS(t,e);return n<0?void 0:t[n][1]}o(OS,`listCacheGet`);var kS=OS;function AS(e){return wS(this.__data__,e)>-1}o(AS,`listCacheHas`);var jS=AS;function MS(e,t){var n=this.__data__,r=wS(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}o(MS,`listCacheSet`);var NS=MS;function PS(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o(PS,`ListCache`),PS.prototype.clear=bS,PS.prototype.delete=DS,PS.prototype.get=kS,PS.prototype.has=jS,PS.prototype.set=NS;var FS=PS;function IS(){this.__data__=new FS,this.size=0}o(IS,`stackClear`);var LS=IS;function RS(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}o(RS,`stackDelete`);var zS=RS;function BS(e){return this.__data__.get(e)}o(BS,`stackGet`);var VS=BS;function HS(e){return this.__data__.has(e)}o(HS,`stackHas`);var US=HS,WS=typeof global==`object`&&global&&global.Object===Object&&global,GS=typeof self==`object`&&self&&self.Object===Object&&self,KS=WS||GS||Function(`return this`)(),qS=KS.Symbol,JS=Object.prototype,YS=JS.hasOwnProperty,XS=JS.toString,ZS=qS?qS.toStringTag:void 0;function QS(e){var t=YS.call(e,ZS),n=e[ZS];try{e[ZS]=void 0;var r=!0}catch{}var i=XS.call(e);return r&&(t?e[ZS]=n:delete e[ZS]),i}o(QS,`getRawTag`);var $S=QS,eC=Object.prototype.toString;function tC(e){return eC.call(e)}o(tC,`objectToString`);var nC=tC,rC=`[object Null]`,iC=`[object Undefined]`,aC=qS?qS.toStringTag:void 0;function oC(e){return e==null?e===void 0?iC:rC:aC&&aC in Object(e)?$S(e):nC(e)}o(oC,`baseGetTag`);var sC=oC;function cC(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}o(cC,`isObject`);var lC=cC,uC=`[object AsyncFunction]`,dC=`[object Function]`,fC=`[object GeneratorFunction]`,pC=`[object Proxy]`;function mC(e){if(!lC(e))return!1;var t=sC(e);return t==dC||t==fC||t==uC||t==pC}o(mC,`isFunction`);var hC=mC,gC=KS[`__core-js_shared__`],_C=(function(){var e=/[^.]+$/.exec(gC&&gC.keys&&gC.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})();function vC(e){return!!_C&&_C in e}o(vC,`isMasked`);var yC=vC,bC=Function.prototype.toString;function xC(e){if(e!=null){try{return bC.call(e)}catch{}try{return e+``}catch{}}return``}o(xC,`toSource`);var SC=xC,CC=/[\\^$.*+?()[\]{}|]/g,wC=/^\[object .+?Constructor\]$/,TC=Function.prototype,EC=Object.prototype,DC=TC.toString,OC=EC.hasOwnProperty,kC=RegExp(`^`+DC.call(OC).replace(CC,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function AC(e){return!lC(e)||yC(e)?!1:(hC(e)?kC:wC).test(SC(e))}o(AC,`baseIsNative`);var jC=AC;function MC(e,t){return e?.[t]}o(MC,`getValue`);var NC=MC;function PC(e,t){var n=NC(e,t);return jC(n)?n:void 0}o(PC,`getNative`);var FC=PC,IC=FC(KS,`Map`),LC=FC(Object,`create`);function RC(){this.__data__=LC?LC(null):{},this.size=0}o(RC,`hashClear`);var zC=RC;function BC(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}o(BC,`hashDelete`);var VC=BC,HC=`__lodash_hash_undefined__`,UC=Object.prototype.hasOwnProperty;function WC(e){var t=this.__data__;if(LC){var n=t[e];return n===HC?void 0:n}return UC.call(t,e)?t[e]:void 0}o(WC,`hashGet`);var GC=WC,KC=Object.prototype.hasOwnProperty;function qC(e){var t=this.__data__;return LC?t[e]!==void 0:KC.call(t,e)}o(qC,`hashHas`);var JC=qC,YC=`__lodash_hash_undefined__`;function XC(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=LC&&t===void 0?YC:t,this}o(XC,`hashSet`);var ZC=XC;function QC(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o(QC,`Hash`),QC.prototype.clear=zC,QC.prototype.delete=VC,QC.prototype.get=GC,QC.prototype.has=JC,QC.prototype.set=ZC;var $C=QC;function ew(){this.size=0,this.__data__={hash:new $C,map:new(IC||FS),string:new $C}}o(ew,`mapCacheClear`);var tw=ew;function nw(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}o(nw,`isKeyable`);var rw=nw;function iw(e,t){var n=e.__data__;return rw(t)?n[typeof t==`string`?`string`:`hash`]:n.map}o(iw,`getMapData`);var aw=iw;function ow(e){var t=aw(this,e).delete(e);return this.size-=+!!t,t}o(ow,`mapCacheDelete`);var sw=ow;function cw(e){return aw(this,e).get(e)}o(cw,`mapCacheGet`);var lw=cw;function uw(e){return aw(this,e).has(e)}o(uw,`mapCacheHas`);var dw=uw;function fw(e,t){var n=aw(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}o(fw,`mapCacheSet`);var pw=fw;function mw(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o(mw,`MapCache`),mw.prototype.clear=tw,mw.prototype.delete=sw,mw.prototype.get=lw,mw.prototype.has=dw,mw.prototype.set=pw;var hw=mw,gw=200;function _w(e,t){var n=this.__data__;if(n instanceof FS){var r=n.__data__;if(!IC||r.length<gw-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new hw(r)}return n.set(e,t),this.size=n.size,this}o(_w,`stackSet`);var vw=_w;function yw(e){var t=this.__data__=new FS(e);this.size=t.size}o(yw,`Stack`),yw.prototype.clear=LS,yw.prototype.delete=zS,yw.prototype.get=VS,yw.prototype.has=US,yw.prototype.set=vw;var bw=yw,xw=`__lodash_hash_undefined__`;function Sw(e){return this.__data__.set(e,xw),this}o(Sw,`setCacheAdd`);var Cw=Sw;function ww(e){return this.__data__.has(e)}o(ww,`setCacheHas`);var Tw=ww;function Ew(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new hw;++t<n;)this.add(e[t])}o(Ew,`SetCache`),Ew.prototype.add=Ew.prototype.push=Cw,Ew.prototype.has=Tw;var Dw=Ew;function Ow(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}o(Ow,`arraySome`);var kw=Ow;function Aw(e,t){return e.has(t)}o(Aw,`cacheHas`);var jw=Aw,Mw=1,Nw=2;function Pw(e,t,n,r,i,a){var o=n&Mw,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Nw?new Dw:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!kw(t,function(e,t){if(!jw(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}o(Pw,`equalArrays`);var Fw=Pw,Iw=KS.Uint8Array;function Lw(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}o(Lw,`mapToArray`);var Rw=Lw;function zw(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}o(zw,`setToArray`);var Bw=zw,Vw=1,Hw=2,Uw=`[object Boolean]`,Ww=`[object Date]`,Gw=`[object Error]`,Kw=`[object Map]`,qw=`[object Number]`,Jw=`[object RegExp]`,Yw=`[object Set]`,Xw=`[object String]`,Zw=`[object Symbol]`,Qw=`[object ArrayBuffer]`,$w=`[object DataView]`,eT=qS?qS.prototype:void 0,tT=eT?eT.valueOf:void 0;function nT(e,t,n,r,i,a,o){switch(n){case $w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Qw:return!(e.byteLength!=t.byteLength||!a(new Iw(e),new Iw(t)));case Uw:case Ww:case qw:return SS(+e,+t);case Gw:return e.name==t.name&&e.message==t.message;case Jw:case Xw:return e==t+``;case Kw:var s=Rw;case Yw:var c=r&Vw;if(s||=Bw,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=Hw,o.set(e,t);var u=Fw(s(e),s(t),r,i,a,o);return o.delete(e),u;case Zw:if(tT)return tT.call(e)==tT.call(t)}return!1}o(nT,`equalByTag`);var rT=nT;function iT(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}o(iT,`arrayPush`);var aT=iT,oT=Array.isArray;function sT(e,t,n){var r=t(e);return oT(e)?r:aT(r,n(e))}o(sT,`baseGetAllKeys`);var cT=sT;function lT(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}o(lT,`arrayFilter`);var uT=lT;function dT(){return[]}o(dT,`stubArray`);var fT=dT,pT=Object.prototype.propertyIsEnumerable,mT=Object.getOwnPropertySymbols,hT=mT?function(e){return e==null?[]:(e=Object(e),uT(mT(e),function(t){return pT.call(e,t)}))}:fT;function gT(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}o(gT,`baseTimes`);var _T=gT;function vT(e){return typeof e==`object`&&!!e}o(vT,`isObjectLike`);var yT=vT,bT=`[object Arguments]`;function xT(e){return yT(e)&&sC(e)==bT}o(xT,`baseIsArguments`);var ST=xT,CT=Object.prototype,wT=CT.hasOwnProperty,TT=CT.propertyIsEnumerable,ET=ST((function(){return arguments})())?ST:function(e){return yT(e)&&wT.call(e,`callee`)&&!TT.call(e,`callee`)};function DT(){return!1}o(DT,`stubFalse`);var OT=DT,kT=typeof exports==`object`&&exports&&!exports.nodeType&&exports,AT=kT&&typeof module==`object`&&module&&!module.nodeType&&module,jT=AT&&AT.exports===kT?KS.Buffer:void 0,MT=(jT?jT.isBuffer:void 0)||OT,NT=9007199254740991,PT=/^(?:0|[1-9]\d*)$/;function FT(e,t){var n=typeof e;return t??=NT,!!t&&(n==`number`||n!=`symbol`&&PT.test(e))&&e>-1&&e%1==0&&e<t}o(FT,`isIndex`);var IT=FT,LT=9007199254740991;function RT(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=LT}o(RT,`isLength`);var zT=RT,BT=`[object Arguments]`,VT=`[object Array]`,HT=`[object Boolean]`,UT=`[object Date]`,WT=`[object Error]`,GT=`[object Function]`,KT=`[object Map]`,qT=`[object Number]`,JT=`[object Object]`,YT=`[object RegExp]`,XT=`[object Set]`,ZT=`[object String]`,QT=`[object WeakMap]`,$T=`[object ArrayBuffer]`,eE=`[object DataView]`,tE=`[object Float32Array]`,nE=`[object Float64Array]`,rE=`[object Int8Array]`,iE=`[object Int16Array]`,aE=`[object Int32Array]`,oE=`[object Uint8Array]`,sE=`[object Uint8ClampedArray]`,cE=`[object Uint16Array]`,lE=`[object Uint32Array]`,J={};J[tE]=J[nE]=J[rE]=J[iE]=J[aE]=J[oE]=J[sE]=J[cE]=J[lE]=!0,J[BT]=J[VT]=J[$T]=J[HT]=J[eE]=J[UT]=J[WT]=J[GT]=J[KT]=J[qT]=J[JT]=J[YT]=J[XT]=J[ZT]=J[QT]=!1;function uE(e){return yT(e)&&zT(e.length)&&!!J[sC(e)]}o(uE,`baseIsTypedArray`);var dE=uE;function fE(e){return function(t){return e(t)}}o(fE,`baseUnary`);var pE=fE,mE=typeof exports==`object`&&exports&&!exports.nodeType&&exports,hE=mE&&typeof module==`object`&&module&&!module.nodeType&&module,gE=hE&&hE.exports===mE&&WS.process,_E=(function(){try{return hE&&hE.require&&hE.require(`util`).types||gE&&gE.binding&&gE.binding(`util`)}catch{}})(),vE=_E&&_E.isTypedArray,yE=vE?pE(vE):dE,bE=Object.prototype.hasOwnProperty;function xE(e,t){var n=oT(e),r=!n&&ET(e),i=!n&&!r&&MT(e),a=!n&&!r&&!i&&yE(e),o=n||r||i||a,s=o?_T(e.length,String):[],c=s.length;for(var l in e)(t||bE.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||IT(l,c)))&&s.push(l);return s}o(xE,`arrayLikeKeys`);var SE=xE,CE=Object.prototype;function wE(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||CE)}o(wE,`isPrototype`);var TE=wE;function EE(e,t){return function(n){return e(t(n))}}o(EE,`overArg`);var DE=EE(Object.keys,Object),OE=Object.prototype.hasOwnProperty;function kE(e){if(!TE(e))return DE(e);var t=[];for(var n in Object(e))OE.call(e,n)&&n!=`constructor`&&t.push(n);return t}o(kE,`baseKeys`);var AE=kE;function jE(e){return e!=null&&zT(e.length)&&!hC(e)}o(jE,`isArrayLike`);var ME=jE;function NE(e){return ME(e)?SE(e):AE(e)}o(NE,`keys`);var PE=NE;function FE(e){return cT(e,PE,hT)}o(FE,`getAllKeys`);var IE=FE,LE=1,RE=Object.prototype.hasOwnProperty;function zE(e,t,n,r,i,a){var o=n&LE,s=IE(e),c=s.length;if(c!=IE(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:RE.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}o(zE,`equalObjects`);var BE=zE,VE=FC(KS,`DataView`),HE=FC(KS,`Promise`),UE=FC(KS,`Set`),WE=FC(KS,`WeakMap`),GE=`[object Map]`,KE=`[object Object]`,qE=`[object Promise]`,JE=`[object Set]`,YE=`[object WeakMap]`,XE=`[object DataView]`,ZE=SC(VE),QE=SC(IC),$E=SC(HE),eD=SC(UE),tD=SC(WE),nD=sC;(VE&&nD(new VE(new ArrayBuffer(1)))!=XE||IC&&nD(new IC)!=GE||HE&&nD(HE.resolve())!=qE||UE&&nD(new UE)!=JE||WE&&nD(new WE)!=YE)&&(nD=o(function(e){var t=sC(e),n=t==KE?e.constructor:void 0,r=n?SC(n):``;if(r)switch(r){case ZE:return XE;case QE:return GE;case $E:return qE;case eD:return JE;case tD:return YE}return t},`getTag`));var rD=nD,iD=1,aD=`[object Arguments]`,oD=`[object Array]`,sD=`[object Object]`,cD=Object.prototype.hasOwnProperty;function lD(e,t,n,r,i,a){var o=oT(e),s=oT(t),c=o?oD:rD(e),l=s?oD:rD(t);c=c==aD?sD:c,l=l==aD?sD:l;var u=c==sD,d=l==sD,f=c==l;if(f&&MT(e)){if(!MT(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new bw,o||yE(e)?Fw(e,t,n,r,i,a):rT(e,t,c,n,r,i,a);if(!(n&iD)){var p=u&&cD.call(e,`__wrapped__`),m=d&&cD.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new bw,i(h,g,n,r,a)}}return f?(a||=new bw,BE(e,t,n,r,i,a)):!1}o(lD,`baseIsEqualDeep`);var uD=lD;function dD(e,t,n,r,i){return e===t?!0:e==null||t==null||!yT(e)&&!yT(t)?e!==e&&t!==t:uD(e,t,n,r,dD,i)}o(dD,`baseIsEqual`);var fD=dD,pD=1,mD=2;function hD(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new bw;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?fD(u,l,pD|mD,r,d):f))return!1}}return!0}o(hD,`baseIsMatch`);var gD=hD;function _D(e){return e===e&&!lC(e)}o(_D,`isStrictComparable`);var vD=_D;function yD(e){for(var t=PE(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,vD(i)]}return t}o(yD,`getMatchData`);var bD=yD;function xD(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}o(xD,`matchesStrictComparable`);var SD=xD;function CD(e){var t=bD(e);return t.length==1&&t[0][2]?SD(t[0][0],t[0][1]):function(n){return n===e||gD(n,e,t)}}o(CD,`baseMatches`);var wD=CD,TD=`[object Symbol]`;function ED(e){return typeof e==`symbol`||yT(e)&&sC(e)==TD}o(ED,`isSymbol`);var DD=ED,OD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kD=/^\w*$/;function AD(e,t){if(oT(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||DD(e)?!0:kD.test(e)||!OD.test(e)||t!=null&&e in Object(t)}o(AD,`isKey`);var jD=AD,MD=`Expected a function`;function ND(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(MD);var n=o(function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o},`memoized`);return n.cache=new(ND.Cache||hw),n}o(ND,`memoize`),ND.Cache=hw;var PD=ND,FD=500;function ID(e){var t=PD(e,function(e){return n.size===FD&&n.clear(),e}),n=t.cache;return t}o(ID,`memoizeCapped`);var LD=ID,RD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zD=/\\(\\)?/g,BD=LD(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(RD,function(e,n,r,i){t.push(r?i.replace(zD,`$1`):n||e)}),t}),VD=1/0,HD=qS?qS.prototype:void 0,UD=HD?HD.toString:void 0;function WD(e){if(typeof e==`string`)return e;if(oT(e))return vS(e,WD)+``;if(DD(e))return UD?UD.call(e):``;var t=e+``;return t==`0`&&1/e==-VD?`-0`:t}o(WD,`baseToString`);var GD=WD;function KD(e){return e==null?``:GD(e)}o(KD,`toString`);var qD=KD;function JD(e,t){return oT(e)?e:jD(e,t)?[e]:BD(qD(e))}o(JD,`castPath`);var YD=JD,XD=1/0;function ZD(e){if(typeof e==`string`||DD(e))return e;var t=e+``;return t==`0`&&1/e==-XD?`-0`:t}o(ZD,`toKey`);var QD=ZD;function $D(e,t){t=YD(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[QD(t[n++])];return n&&n==r?e:void 0}o($D,`baseGet`);var eO=$D;function tO(e,t,n){var r=e==null?void 0:eO(e,t);return r===void 0?n:r}o(tO,`get`);var nO=tO;function rO(e,t){return e!=null&&t in Object(e)}o(rO,`baseHasIn`);var iO=rO;function aO(e,t,n){t=YD(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=QD(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&zT(i)&&IT(o,i)&&(oT(e)||ET(e)))}o(aO,`hasPath`);var oO=aO;function sO(e,t){return e!=null&&oO(e,t,iO)}o(sO,`hasIn`);var cO=sO,lO=1,uO=2;function dO(e,t){return jD(e)&&vD(t)?SD(QD(e),t):function(n){var r=nO(n,e);return r===void 0&&r===t?cO(n,e):fD(t,r,lO|uO)}}o(dO,`baseMatchesProperty`);var fO=dO;function pO(e){return e}o(pO,`identity`);var mO=pO;function hO(e){return function(t){return t?.[e]}}o(hO,`baseProperty`);var gO=hO;function _O(e){return function(t){return eO(t,e)}}o(_O,`basePropertyDeep`);var vO=_O;function yO(e){return jD(e)?gO(QD(e)):vO(e)}o(yO,`property`);var bO=yO;function xO(e){return typeof e==`function`?e:e==null?mO:typeof e==`object`?oT(e)?fO(e[0],e[1]):wD(e):bO(e)}o(xO,`baseIteratee`);var SO=xO;function CO(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}o(CO,`createBaseFor`);var wO=CO();function TO(e,t){return e&&wO(e,t,PE)}o(TO,`baseForOwn`);var EO=TO;function DO(e,t){return function(n,r){if(n==null)return n;if(!ME(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}o(DO,`createBaseEach`);var OO=DO(EO);function kO(e,t){var n=-1,r=ME(e)?Array(e.length):[];return OO(e,function(e,i,a){r[++n]=t(e,i,a)}),r}o(kO,`baseMap`);var AO=kO;function jO(e,t){return(oT(e)?vS:AO)(e,SO(t,3))}o(jO,`map`);var MO=jO;function NO(e,t){var n=[];return OO(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}o(NO,`baseFilter`);var PO=NO;function FO(e,t){return(oT(e)?uT:PO)(e,SO(t,3))}o(FO,`filter`);var IO=FO;function LO(e,t,n){return`${e.name}_${t}_${n}`}o(LO,`buildATNKey`);var RO=1,zO=2,BO=4,VO=5,HO=7,UO=8,WO=9,GO=10,KO=11,qO=12,JO=class{static{o(this,`AbstractTransition`)}constructor(e){this.target=e}isEpsilon(){return!1}},YO=class extends JO{static{o(this,`AtomTransition`)}constructor(e,t){super(e),this.tokenType=t}},XO=class extends JO{static{o(this,`EpsilonTransition`)}constructor(e){super(e)}isEpsilon(){return!0}},ZO=class extends JO{static{o(this,`RuleTransition`)}constructor(e,t,n){super(e),this.rule=t,this.followState=n}isEpsilon(){return!0}};function QO(e){let t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};$O(t,e);let n=e.length;for(let r=0;r<n;r++){let n=e[r],i=sk(t,n,n);i!==void 0&&_k(t,n,i)}return t}o(QO,`createATN`);function $O(e,t){let n=t.length;for(let r=0;r<n;r++){let n=t[r],i=X(e,n,void 0,{type:zO}),a=X(e,n,void 0,{type:HO});i.stop=a,e.ruleToStartState.set(n,i),e.ruleToStopState.set(n,a)}}o($O,`createRuleStartAndStopATNStates`);function ek(e,t,n){return n instanceof G?hk(e,t,n.terminalType,n):n instanceof rv?gk(e,t,n):n instanceof uv?ak(e,t,n):n instanceof ov?ok(e,t,n):n instanceof W?tk(e,t,n):n instanceof lv?nk(e,t,n):n instanceof sv?rk(e,t,n):n instanceof cv?ik(e,t,n):sk(e,t,n)}o(ek,`atom`);function tk(e,t,n){let r=X(e,t,n,{type:VO});return dk(e,r),lk(e,t,n,fk(e,t,r,n,sk(e,t,n)))}o(tk,`repetition`);function nk(e,t,n){let r=X(e,t,n,{type:VO});return dk(e,r),lk(e,t,n,fk(e,t,r,n,sk(e,t,n)),hk(e,t,n.separator,n))}o(nk,`repetitionSep`);function rk(e,t,n){let r=X(e,t,n,{type:BO});return dk(e,r),ck(e,t,n,fk(e,t,r,n,sk(e,t,n)))}o(rk,`repetitionMandatory`);function ik(e,t,n){let r=X(e,t,n,{type:BO});return dk(e,r),ck(e,t,n,fk(e,t,r,n,sk(e,t,n)),hk(e,t,n.separator,n))}o(ik,`repetitionMandatorySep`);function ak(e,t,n){let r=X(e,t,n,{type:RO});return dk(e,r),fk(e,t,r,n,...MO(n.definition,n=>ek(e,t,n)))}o(ak,`alternation`);function ok(e,t,n){let r=X(e,t,n,{type:RO});return dk(e,r),uk(e,t,n,fk(e,t,r,n,sk(e,t,n)))}o(ok,`option`);function sk(e,t,n){let r=IO(MO(n.definition,n=>ek(e,t,n)),e=>e!==void 0);return r.length===1?r[0]:r.length===0?void 0:mk(e,r)}o(sk,`block`);function ck(e,t,n,r,i){let a=r.left,o=r.right,s=X(e,t,n,{type:KO});dk(e,s);let c=X(e,t,n,{type:qO});return a.loopback=s,c.loopback=s,e.decisionMap[LO(t,i?`RepetitionMandatoryWithSeparator`:`RepetitionMandatory`,n.idx)]=s,Y(o,s),i===void 0?(Y(s,a),Y(s,c)):(Y(s,c),Y(s,i.left),Y(i.right,a)),{left:a,right:c}}o(ck,`plus`);function lk(e,t,n,r,i){let a=r.left,o=r.right,s=X(e,t,n,{type:GO});dk(e,s);let c=X(e,t,n,{type:qO}),l=X(e,t,n,{type:WO});return s.loopback=l,c.loopback=l,Y(s,a),Y(s,c),Y(o,l),i===void 0?Y(l,s):(Y(l,c),Y(l,i.left),Y(i.right,a)),e.decisionMap[LO(t,i?`RepetitionWithSeparator`:`Repetition`,n.idx)]=s,{left:s,right:c}}o(lk,`star`);function uk(e,t,n,r){let i=r.left,a=r.right;return Y(i,a),e.decisionMap[LO(t,`Option`,n.idx)]=i,r}o(uk,`optional`);function dk(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}o(dk,`defineDecisionState`);function fk(e,t,n,r,...i){let a=X(e,t,r,{type:UO,start:n});n.end=a;for(let e of i)e===void 0?Y(n,a):(Y(n,e.left),Y(e.right,a));let o={left:n,right:a};return e.decisionMap[LO(t,pk(r),r.idx)]=n,o}o(fk,`makeAlts`);function pk(e){if(e instanceof uv)return`Alternation`;if(e instanceof ov)return`Option`;if(e instanceof W)return`Repetition`;if(e instanceof lv)return`RepetitionWithSeparator`;if(e instanceof sv)return`RepetitionMandatory`;if(e instanceof cv)return`RepetitionMandatoryWithSeparator`;throw Error(`Invalid production type encountered`)}o(pk,`getProdType`);function mk(e,t){let n=t.length;for(let r=0;r<n-1;r++){let n=t[r],i;n.left.transitions.length===1&&(i=n.left.transitions[0]);let a=i instanceof ZO,o=i,s=t[r+1].left;n.left.type===RO&&n.right.type===RO&&i!==void 0&&(a&&o.followState===n.right||i.target===n.right)?(a?o.followState=s:i.target=s,yk(e,n.right)):Y(n.right,s)}let r=t[0],i=t[n-1];return{left:r.left,right:i.right}}o(mk,`makeBlock`);function hk(e,t,n,r){let i=X(e,t,r,{type:RO}),a=X(e,t,r,{type:RO});return vk(i,new YO(a,n)),{left:i,right:a}}o(hk,`tokenRef`);function gk(e,t,n){let r=n.referencedRule,i=e.ruleToStartState.get(r),a=X(e,t,n,{type:RO}),o=X(e,t,n,{type:RO});return vk(a,new ZO(i,r,o)),{left:a,right:o}}o(gk,`ruleRef`);function _k(e,t,n){let r=e.ruleToStartState.get(t);Y(r,n.left);let i=e.ruleToStopState.get(t);return Y(n.right,i),{left:r,right:i}}o(_k,`buildRuleHandle`);function Y(e,t){vk(e,new XO(t))}o(Y,`epsilon`);function X(e,t,n,r){let i=Object.assign({atn:e,production:n,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:e.states.length},r);return e.states.push(i),i}o(X,`newState`);function vk(e,t){e.transitions.length===0&&(e.epsilonOnlyTransitions=t.isEpsilon()),e.transitions.push(t)}o(vk,`addTransition`);function yk(e,t){e.states.splice(e.states.indexOf(t),1)}o(yk,`removeState`);var bk={},xk=class{static{o(this,`ATNConfigSet`)}constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){let t=Sk(e);t in this.map||(this.map[t]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return MO(this.configs,e=>e.alt)}get key(){let e=``;for(let t in this.map)e+=t+`:`;return e}};function Sk(e,t=!0){return`${t?`a${e.alt}`:``}s${e.state.stateNumber}:${e.stack.map(e=>e.stateNumber.toString()).join(`_`)}`}o(Sk,`getATNConfigKey`);function Ck(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(o!=null&&(s===void 0?o===o&&!DD(o):n(o,s)))var s=o,c=a}return c}o(Ck,`baseExtremum`);var wk=Ck;function Tk(e,t){return e<t}o(Tk,`baseLt`);var Ek=Tk;function Dk(e){return e&&e.length?wk(e,mO,Ek):void 0}o(Dk,`min`);var Ok=Dk,kk=qS?qS.isConcatSpreadable:void 0;function Ak(e){return oT(e)||ET(e)||!!(kk&&e&&e[kk])}o(Ak,`isFlattenable`);var jk=Ak;function Mk(e,t,n,r,i){var a=-1,o=e.length;for(n||=jk,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Mk(s,t-1,n,r,i):aT(i,s):r||(i[i.length]=s)}return i}o(Mk,`baseFlatten`);var Nk=Mk;function Pk(e,t){return Nk(MO(e,t),1)}o(Pk,`flatMap`);var Fk=Pk;function Ik(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}o(Ik,`baseFindIndex`);var Lk=Ik;function Rk(e){return e!==e}o(Rk,`baseIsNaN`);var zk=Rk;function Bk(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}o(Bk,`strictIndexOf`);var Vk=Bk;function Hk(e,t,n){return t===t?Vk(e,t,n):Lk(e,zk,n)}o(Hk,`baseIndexOf`);var Uk=Hk;function Wk(e,t){return!!(e!=null&&e.length)&&Uk(e,t,0)>-1}o(Wk,`arrayIncludes`);var Gk=Wk;function Kk(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}o(Kk,`arrayIncludesWith`);var qk=Kk;function Jk(){}o(Jk,`noop`);var Yk=Jk,Xk=UE&&1/Bw(new UE([,-0]))[1]==1/0?function(e){return new UE(e)}:Yk,Zk=200;function Qk(e,t,n){var r=-1,i=Gk,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=qk;else if(a>=Zk){var l=t?null:Xk(e);if(l)return Bw(l);o=!1,i=jw,c=new Dw}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}o(Qk,`baseUniq`);var $k=Qk;function eA(e,t){return e&&e.length?$k(e,SO(t,2)):[]}o(eA,`uniqBy`);var tA=eA;function nA(e){return e!=null&&e.length?Nk(e,1):[]}o(nA,`flatten`);var rA=nA;function iA(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}o(iA,`arrayEach`);var aA=iA;function oA(e){return typeof e==`function`?e:mO}o(oA,`castFunction`);var sA=oA;function cA(e,t){return(oT(e)?aA:OO)(e,sA(t))}o(cA,`forEach`);var lA=cA,uA=`[object Map]`,dA=`[object Set]`,fA=Object.prototype.hasOwnProperty;function pA(e){if(e==null)return!0;if(ME(e)&&(oT(e)||typeof e==`string`||typeof e.splice==`function`||MT(e)||yE(e)||ET(e)))return!e.length;var t=rD(e);if(t==uA||t==dA)return!e.size;if(TE(e))return!AE(e).length;for(var n in e)if(fA.call(e,n))return!1;return!0}o(pA,`isEmpty`);var mA=pA;function hA(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}o(hA,`arrayReduce`);var gA=hA;function _A(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}o(_A,`baseReduce`);var vA=_A;function yA(e,t,n){var r=oT(e)?gA:vA,i=arguments.length<3;return r(e,SO(t,4),n,i,OO)}o(yA,`reduce`);var bA=yA;function xA(e,t){let n={};return r=>{let i=r.toString(),a=n[i];return a===void 0?(a={atnStartState:e,decision:t,states:{}},n[i]=a,a):a}}o(xA,`createDFACache`);var SA=class{static{o(this,`PredicateSet`)}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e=``,t=this.predicates.length;for(let n=0;n<t;n++)e+=this.predicates[n]===!0?`1`:`0`;return e}},CA=new SA,wA=class extends kx{static{o(this,`LLStarLookaheadStrategy`)}constructor(e){super(),this.logging=e?.logging??(e=>console.log(e))}initialize(e){this.atn=QO(e.rules),this.dfas=EA(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:n,hasPredicates:r,dynamicTokensEnabled:i}=e,a=this.dfas,o=this.logging,s=LO(n,`Alternation`,t),c=this.atn.decisionMap[s].decision,l=MO(bb({maxLookahead:1,occurrence:t,prodType:`Alternation`,rule:n}),e=>MO(e,e=>e[0]));if(TA(l,!1)&&!i){let e=bA(l,(e,t,n)=>(lA(t,t=>{t&&(e[t.tokenTypeIdx]=n,lA(t.categoryMatches,t=>{e[t]=n}))}),e),{});return r?function(t){let n=this.LA(1),r=e[n.tokenTypeIdx];if(t!==void 0&&r!==void 0){let e=t[r]?.GATE;if(e!==void 0&&e.call(this)===!1)return}return r}:function(){let t=this.LA(1);return e[t.tokenTypeIdx]}}else if(r)return function(e){let t=new SA,n=e===void 0?0:e.length;for(let r=0;r<n;r++){let n=e?.[r].GATE;t.set(r,n===void 0||n.call(this))}let r=DA.call(this,a,c,t,o);return typeof r==`number`?r:void 0};else return function(){let e=DA.call(this,a,c,CA,o);return typeof e==`number`?e:void 0}}buildLookaheadForOptional(e){let{prodOccurrence:t,rule:n,prodType:r,dynamicTokensEnabled:i}=e,a=this.dfas,o=this.logging,s=LO(n,r,t),c=this.atn.decisionMap[s].decision,l=MO(bb({maxLookahead:1,occurrence:t,prodType:r,rule:n}),e=>MO(e,e=>e[0]));if(TA(l)&&l[0][0]&&!i){let e=l[0],t=rA(e);if(t.length===1&&mA(t[0].categoryMatches)){let e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}else{let e=bA(t,(e,t)=>(t!==void 0&&(e[t.tokenTypeIdx]=!0,lA(t.categoryMatches,t=>{e[t]=!0})),e),{});return function(){let t=this.LA(1);return e[t.tokenTypeIdx]===!0}}}return function(){let e=DA.call(this,a,c,CA,o);return typeof e==`object`?!1:e===0}}};function TA(e,t=!0){let n=new Set;for(let r of e){let e=new Set;for(let i of r){if(i===void 0){if(t)break;return!1}let r=[i.tokenTypeIdx].concat(i.categoryMatches);for(let t of r)if(n.has(t)){if(!e.has(t))return!1}else n.add(t),e.add(t)}}return!0}o(TA,`isLL1Sequence`);function EA(e){let t=e.decisionStates.length,n=Array(t);for(let r=0;r<t;r++)n[r]=xA(e.decisionStates[r],r);return n}o(EA,`initATNSimulator`);function DA(e,t,n,r){let i=e[t](n),a=i.start;return a===void 0&&(a=BA(i,RA(VA(i.atnStartState))),i.start=a),OA.apply(this,[i,a,n,r])}o(DA,`adaptivePredict`);function OA(e,t,n,r){let i=t,a=1,o=[],s=this.LA(a++);for(;;){let t=PA(i,s);if(t===void 0&&(t=kA.apply(this,[e,i,s,a,n,r])),t===bk)return NA(o,i,s);if(t.isAcceptState===!0)return t.prediction;i=t,o.push(s),s=this.LA(a++)}}o(OA,`performLookahead`);function kA(e,t,n,r,i,a){let o=FA(t.configs,n,i);if(o.size===0)return zA(e,t,n,bk),bk;let s=RA(o),c=LA(o,i);if(c!==void 0)s.isAcceptState=!0,s.prediction=c,s.configs.uniqueAlt=c;else if(KA(o)){let t=Ok(o.alts);s.isAcceptState=!0,s.prediction=t,s.configs.uniqueAlt=t,AA.apply(this,[e,r,o.alts,a])}return s=zA(e,t,n,s),s}o(kA,`computeLookaheadTarget`);function AA(e,t,n,r){let i=[];for(let e=1;e<=t;e++)i.push(this.LA(e).tokenType);let a=e.atnStartState,o=a.rule,s=a.production;r(jA({topLevelRule:o,ambiguityIndices:n,production:s,prefixPath:i}))}o(AA,`reportLookaheadAmbiguity`);function jA(e){let t=MO(e.prefixPath,e=>Hy(e)).join(`, `),n=e.production.idx===0?``:e.production.idx,r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(`, `)}> in <${MA(e.production)}${n}> inside <${e.topLevelRule.name}> Rule,
148
148
  <${t}> may appears as a prefix path in all these alternatives.
149
149
  `;return r+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
150
150
  For Further details.`,r}o(jA,`buildAmbiguityError`);function MA(e){if(e instanceof rv)return`SUBRULE`;if(e instanceof ov)return`OPTION`;if(e instanceof uv)return`OR`;if(e instanceof sv)return`AT_LEAST_ONE`;if(e instanceof cv)return`AT_LEAST_ONE_SEP`;if(e instanceof lv)return`MANY_SEP`;if(e instanceof W)return`MANY`;if(e instanceof G)return`CONSUME`;throw Error(`non exhaustive match`)}o(MA,`getProductionDslName`);function NA(e,t,n){return{actualToken:n,possibleTokenTypes:tA(Fk(t.configs.elements,e=>e.state.transitions).filter(e=>e instanceof YO).map(e=>e.tokenType),e=>e.tokenTypeIdx),tokenPath:e}}o(NA,`buildAdaptivePredictError`);function PA(e,t){return e.edges[t.tokenTypeIdx]}o(PA,`getExistingTargetState`);function FA(e,t,n){let r=new xk,i=[];for(let a of e.elements){if(n.is(a.alt)===!1)continue;if(a.state.type===HO){i.push(a);continue}let e=a.state.transitions.length;for(let n=0;n<e;n++){let e=a.state.transitions[n],i=IA(e,t);i!==void 0&&r.add({state:i,alt:a.alt,stack:a.stack})}}let a;if(i.length===0&&r.size===1&&(a=r),a===void 0){a=new xk;for(let e of r.elements)HA(e,a)}if(i.length>0&&!WA(a))for(let e of i)a.add(e);return a}o(FA,`computeReachSet`);function IA(e,t){if(e instanceof YO&&rb(t,e.tokenType))return e.target}o(IA,`getReachableTarget`);function LA(e,t){let n;for(let r of e.elements)if(t.is(r.alt)===!0){if(n===void 0)n=r.alt;else if(n!==r.alt)return}return n}o(LA,`getUniqueAlt`);function RA(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}o(RA,`newDFAState`);function zA(e,t,n,r){return r=BA(e,r),t.edges[n.tokenTypeIdx]=r,r}o(zA,`addDFAEdge`);function BA(e,t){if(t===bk)return t;let n=t.configs.key,r=e.states[n];return r===void 0?(t.configs.finalize(),e.states[n]=t,t):r}o(BA,`addDFAState`);function VA(e){let t=new xk,n=e.transitions.length;for(let r=0;r<n;r++)HA({state:e.transitions[r].target,alt:r,stack:[]},t);return t}o(VA,`computeStartState`);function HA(e,t){let n=e.state;if(n.type===HO){if(e.stack.length>0){let n=[...e.stack];HA({state:n.pop(),alt:e.alt,stack:n},t)}else t.add(e);return}n.epsilonOnlyTransitions||t.add(e);let r=n.transitions.length;for(let i=0;i<r;i++){let r=n.transitions[i],a=UA(e,r);a!==void 0&&HA(a,t)}}o(HA,`closure`);function UA(e,t){if(t instanceof XO)return{state:t.target,alt:e.alt,stack:e.stack};if(t instanceof ZO){let n=[...e.stack,t.followState];return{state:t.target,alt:e.alt,stack:n}}}o(UA,`getEpsilonTarget`);function WA(e){for(let t of e.elements)if(t.state.type===HO)return!0;return!1}o(WA,`hasConfigInRuleStopState`);function GA(e){for(let t of e.elements)if(t.state.type!==HO)return!1;return!0}o(GA,`allConfigsInRuleStopStates`);function KA(e){if(GA(e))return!0;let t=qA(e.elements);return JA(t)&&!YA(t)}o(KA,`hasConflictTerminatingPrediction`);function qA(e){let t=new Map;for(let n of e){let e=Sk(n,!1),r=t.get(e);r===void 0&&(r={},t.set(e,r)),r[n.alt]=!0}return t}o(qA,`getConflictingAltSets`);function JA(e){for(let t of Array.from(e.values()))if(Object.keys(t).length>1)return!0;return!1}o(JA,`hasConflictingAltSet`);function YA(e){for(let t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}o(YA,`hasStateAssociatedWithOneAlt`),ht();var XA=class{static{o(this,`CstNodeBuilder`)}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new tj(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let t=new $A;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){let n=new QA(e.startOffset,e.image.length,zi(e),e.tokenType,!t);return n.grammarSource=t,n.root=this.rootNode,this.current.content.push(n),n}removeNode(e){let t=e.container;if(t){let n=t.content.indexOf(e);n>=0&&t.content.splice(n,1)}}addHiddenNodes(e){let t=[];for(let n of e){let e=new QA(n.startOffset,n.image.length,zi(n),n.tokenType,!0);e.root=this.rootNode,t.push(e)}let n=this.current,r=!1;if(n.content.length>0){n.content.push(...t);return}for(;n.container;){let e=n.container.content.indexOf(n);if(e>0){n.container.content.splice(e,0,...t),r=!0;break}n=n.container}r||this.rootNode.content.unshift(...t)}construct(e){let t=this.current;typeof e.$type==`string`&&!e.$infix&&(this.current.astNode=e),e.$cstNode=t;let n=this.nodeStack.pop();n?.content.length===0&&this.removeNode(n)}},ZA=class{static{o(this,`AbstractCstNode`)}get hidden(){return!1}get astNode(){let e=typeof this._astNode?.$type==`string`?this._astNode:this.container?.astNode;if(!e)throw Error(`This node has no associated AST element`);return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},QA=class extends ZA{static{o(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,n,r,i=!1){super(),this._hidden=i,this._offset=e,this._tokenType=r,this._length=t,this._range=n}},$A=class extends ZA{static{o(this,`CompositeCstNodeImpl`)}constructor(){super(...arguments),this.content=new ej(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){let e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;if(e&&t){if(this._rangeCache===void 0){let{range:n}=e,{range:r}=t;this._rangeCache={start:n.start,end:r.end.line<n.start.line?n.start:r.end}}return this._rangeCache}else return{start:y.create(0,0),end:y.create(0,0)}}get firstNonHiddenNode(){for(let e of this.content)if(!e.hidden)return e;return this.content[0]}get lastNonHiddenNode(){for(let e=this.content.length-1;e>=0;e--){let t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},ej=class e extends Array{static{o(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,...n){return this.addParents(n),super.splice(e,t,...n)}addParents(e){for(let t of e)t.container=this.parent}},tj=class extends $A{static{o(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??``}},nj=Symbol(`Datatype`);function rj(e){return e.$type===nj}o(rj,`isDataTypeNode`);var ij=`​`,aj=o(e=>e.endsWith(ij)?e:e+ij,`withRuleSuffix`),oj=class{static{o(this,`AbstractLangiumParser`)}constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;let t=this.lexer.definition,n=e.LanguageMetaData.mode===`production`;e.shared.profilers.LangiumProfiler?.isActive(`parsing`)?this.wrapper=new pj(t,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask(`parsing`,e.LanguageMetaData.languageId)):this.wrapper=new fj(t,{...e.parser.ParserConfig,skipValidations:n,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()}},sj=class extends oj{static{o(this,`LangiumParser`)}get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new XA,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){let n=this.computeRuleType(e),r;Dr(e)&&(r=e.name,this.registerPrecedenceMap(e));let i=this.wrapper.DEFINE_RULE(aj(e.name),this.startImplementation(n,r,t).bind(this));return this.allRules.set(e.name,i),Yr(e)&&e.entry&&(this.mainRule=i),i}registerPrecedenceMap(e){let t=e.name,n=new Map;for(let t=0;t<e.operators.precedences.length;t++){let r=e.operators.precedences[t];for(let e of r.operators)n.set(e.value,{precedence:t,rightAssoc:r.associativity===`right`})}this.operatorPrecedence.set(t,n)}computeRuleType(e){return Dr(e)?no(e):e.fragment?void 0:Za(e)?nj:no(e)}parse(e,t={}){this.nodeBuilder.buildRootNode(e);let n=this.lexerResult=this.lexer.tokenize(e);this.wrapper.input=n.tokens;let r=t.rule?this.allRules.get(t.rule):this.mainRule;if(!r)throw Error(t.rule?`No rule found with name '${t.rule}'`:`No main rule available.`);let i=this.doParse(r);return this.nodeBuilder.addHiddenNodes(n.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,wn(i,{deep:!0}),{value:i,lexerErrors:n.errors,lexerReport:n.report,parserErrors:this.wrapper.errors}}doParse(e){let t=this.wrapper.rule(e);if(this.stack.length>0&&(t=this.construct()),t===void 0)throw Error(`No result from parser`);if(this.stack.length>0)throw Error(`Parser stack is not empty after parsing`);return t}startImplementation(e,t,n){return r=>{let i=!this.isRecording()&&e!==void 0;if(i){let n={$type:e};this.stack.push(n),e===nj?n.value=``:t!==void 0&&(n.$infixName=t)}return n(r),i?this.construct():void 0}}extractHiddenTokens(e){let t=this.lexerResult.hidden;if(!t.length)return[];let n=e.startOffset;for(let e=0;e<t.length;e++)if(t[e].startOffset>n)return t.splice(0,e);return t.splice(0,t.length)}consume(e,t,n){let r=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(r)){let e=this.extractHiddenTokens(r);this.nodeBuilder.addHiddenNodes(e);let t=this.nodeBuilder.buildLeafNode(r,n),{assignment:i,crossRef:a}=this.getAssignment(n),o=this.current;if(i){let e=Fr(n)?r.image:this.converter.convert(r.image,t);this.assign(i.operator,i.feature,e,t,a)}else if(rj(o)){let e=r.image;Fr(n)||(e=this.converter.convert(e,t).toString()),o.value+=e}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset==`number`&&!isNaN(e.endOffset)}subrule(e,t,n,r,i){let a;!this.isRecording()&&!n&&(a=this.nodeBuilder.buildCompositeNode(r));let o;try{o=this.wrapper.wrapSubrule(e,t,i)}finally{this.isRecording()||(o===void 0&&!n&&(o=this.construct()),o!==void 0&&a&&a.length>0&&this.performSubruleAssignment(o,r,a))}}performSubruleAssignment(e,t,n){let{assignment:r,crossRef:i}=this.getAssignment(t);if(r)this.assign(r.operator,r.feature,e,n,i);else if(!r){let t=this.current;if(rj(t))t.value+=e.toString();else if(typeof e==`object`&&e){let n=this.assignWithoutOverride(e,t);this.stack.pop(),this.stack.push(n)}}}action(e,t){if(!this.isRecording()){let n=this.current;if(t.feature&&t.operator){n=this.construct(),this.nodeBuilder.removeNode(n.$cstNode),this.nodeBuilder.buildCompositeNode(t).content.push(n.$cstNode);let r={$type:e};this.stack.push(r),this.assign(t.operator,t.feature,n,n.$cstNode)}else n.$type=e}}construct(){if(this.isRecording())return;let e=this.stack.pop();return this.nodeBuilder.construct(e),`$infixName`in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):rj(e)?this.converter.convert(e.value,e.$cstNode):(Fn(this.astReflection,e),e)}constructInfix(e,t){let n=e.parts;if(!Array.isArray(n)||n.length===0)return;let r=e.operators;if(!Array.isArray(r)||n.length<2)return n[0];let i=0,a=-1;for(let e=0;e<r.length;e++){let n=r[e],o=t.get(n)??{precedence:1/0,rightAssoc:!1};o.precedence>a?(a=o.precedence,i=e):o.precedence===a&&(o.rightAssoc||(i=e))}let o=r.slice(0,i),s=r.slice(i+1),c=n.slice(0,i+1),l=n.slice(i+1),u={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:c,operators:o},d={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:l,operators:s},f=this.constructInfix(u,t),p=this.constructInfix(d,t);return{$type:e.$type,$cstNode:e.$cstNode,left:f,operator:r[i],right:p}}getAssignment(e){if(!this.assignmentMap.has(e)){let t=Tn(e,rr);this.assignmentMap.set(e,{assignment:t,crossRef:t&&pr(t.terminal)?t.terminal.isMulti?`multi`:`single`:void 0})}return this.assignmentMap.get(e)}assign(e,t,n,r,i){let a=this.current,o;switch(o=i===`single`&&typeof n==`string`?this.linker.buildReference(a,t,r,n):i===`multi`&&typeof n==`string`?this.linker.buildMultiReference(a,t,r,n):n,e){case`=`:a[t]=o;break;case`?=`:a[t]=!0;break;case`+=`:Array.isArray(a[t])||(a[t]=[]),a[t].push(o)}}assignWithoutOverride(e,t){for(let[n,r]of Object.entries(t)){let t=e[n];t===void 0?e[n]=r:Array.isArray(t)&&Array.isArray(r)&&(r.push(...t),e[n]=r)}let n=e.$cstNode;return n&&(n.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},cj=class{static{o(this,`AbstractParserErrorMessageProvider`)}buildMismatchTokenMessage(e){return ib.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return ib.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return ib.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return ib.buildEarlyExitMessage(e)}},lj=class extends cj{static{o(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}\`.`}},uj=class extends oj{static{o(this,`LangiumCompletionParser`)}constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();let t=this.lexer.tokenize(e,{mode:`partial`});return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){let n=this.wrapper.DEFINE_RULE(aj(e.name),this.startImplementation(t).bind(this));return this.allRules.set(e.name,n),e.entry&&(this.mainRule=n),n}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{let n=this.keepStackSize();try{e(t)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,n){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,n],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,n,r,i){this.before(r),this.wrapper.wrapSubrule(e,t,i),this.after(r)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){let t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},dj={recoveryEnabled:!0,nodeLocationTracking:`full`,skipValidations:!0,errorMessageProvider:new lj},fj=class extends gS{static{o(this,`ChevrotainWrapper`)}constructor(e,t){let n=t&&`maxLookahead`in t;super(e,{...dj,lookaheadStrategy:n?new kx({maxLookahead:t.maxLookahead}):new wA({logging:t.skipValidations?()=>{}:void 0}),...t})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t,n){return this.RULE(e,t,n)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t,void 0)}wrapSubrule(e,t,n){return this.subrule(e,t,{ARGS:[n]})}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,{})}},pj=class extends fj{static{o(this,`ProfilerWrapper`)}constructor(e,t,n){super(e,t),this.task=n}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,n){this.task.startSubTask(this.ruleName(t));try{return super.subrule(e,t,n)}finally{this.task.stopSubTask(this.ruleName(t))}}};function mj(e,t,n){return hj({parser:t,tokens:n,ruleNames:new Map},e),t}o(mj,`createParser`);function hj(e,t){let n=Na(t,!1),r=N(t.rules).filter(Yr).filter(e=>n.has(e));for(let t of r){let n={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(t,_j(n,t.definition))}let i=N(t.rules).filter(Dr).filter(e=>n.has(e));for(let t of i)e.parser.rule(t,gj(e,t))}o(hj,`buildRules`);function gj(e,t){let n=t.call.rule.ref;if(!n)throw Error(`Could not resolve reference to infix operator rule: `+t.call.rule.$refText);if(hi(n))throw Error(`Cannot use terminal rule in infix expression`);let r=t.operators.precedences.flatMap(e=>e.operators),i={$type:`Group`,elements:[]},a={$container:i,$type:`Assignment`,feature:`parts`,operator:`+=`,terminal:t.call},s={$container:i,$type:`Group`,elements:[],cardinality:`*`};i.elements.push(a,s);let c={$container:s,$type:`Assignment`,feature:`operators`,operator:`+=`,terminal:{$type:`Alternatives`,elements:r}},l={...a,$container:s};s.elements.push(c,l);let u=r.map(t=>e.tokens[t.value]).map((t,n)=>({ALT:o(()=>e.parser.consume(n,t,c),`ALT`)})),d;return t=>{d??=kj(e,n),e.parser.subrule(0,d,!1,a,t),e.parser.many(0,{DEF:o(()=>{e.parser.alternatives(0,u),e.parser.subrule(1,d,!1,l,t)},`DEF`)})}}o(gj,`buildInfixRule`);function _j(e,t,n=!1){let r;if(Fr(t))r=Dj(e,t);else if(Yn(t))r=vj(e,t);else if(rr(t))r=_j(e,t.terminal);else if(pr(t))r=Ej(e,t);else if(ri(t))r=yj(e,t);else if(Zn(t))r=Sj(e,t);else if(Di(t))r=Cj(e,t);else if(Cr(t))r=wj(e,t);else if(_r(t)){let n=e.consume++;r=o(()=>e.parser.consume(n,tb,t),`method`)}else throw new ia(t.$cstNode,`Unexpected element type: ${t.$type}`);return Oj(e,n?void 0:Tj(t),r,t.cardinality)}o(_j,`buildElement`);function vj(e,t){let n=no(t);return()=>e.parser.action(n,t)}o(vj,`buildAction`);function yj(e,t){let n=t.rule.ref;if(Un(n)){let r=e.subrule++,i=Yr(n)&&n.fragment,a=t.arguments.length>0?bj(n,t.arguments):()=>({}),o;return s=>{o??=kj(e,n),e.parser.subrule(r,o,i,t,a(s))}}else if(hi(n)){let r=e.consume++,i=jj(e,n.name);return()=>e.parser.consume(r,i,t)}else if(n)aa(n);else throw new ia(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}o(yj,`buildRuleCall`);function bj(e,t){if(t.some(e=>e.calledByName)){let e=t.map(e=>({parameterName:e.parameter?.ref?.name,predicate:xj(e.value)}));return t=>{let n={};for(let{parameterName:r,predicate:i}of e)r&&(n[r]=i(t));return n}}else{let n=t.map(e=>xj(e.value));return t=>{let r={};for(let i=0;i<n.length;i++)if(i<e.parameters.length){let a=e.parameters[i].name,o=n[i];r[a]=o(t)}return r}}}o(bj,`buildRuleCallPredicate`);function xj(e){if(hr(e)){let t=xj(e.left),n=xj(e.right);return e=>t(e)||n(e)}else if(dr(e)){let t=xj(e.left),n=xj(e.right);return e=>t(e)&&n(e)}else if(Vr(e)){let t=xj(e.value);return e=>!t(e)}else if(qr(e)){let t=e.parameter.ref.name;return e=>e!==void 0&&e[t]===!0}else if(ar(e)){let t=!!e.true;return()=>t}aa(e)}o(xj,`buildPredicate`);function Sj(e,t){if(t.elements.length===1)return _j(e,t.elements[0]);{let n=[];for(let r of t.elements){let t={ALT:_j(e,r,!0)},i=Tj(r);i&&(t.GATE=xj(i)),n.push(t)}let r=e.or++;return t=>e.parser.alternatives(r,n.map(e=>{let n={ALT:o(()=>e.ALT(t),`ALT`)},r=e.GATE;return r&&(n.GATE=()=>r(t)),n}))}}o(Sj,`buildAlternatives`);function Cj(e,t){if(t.elements.length===1)return _j(e,t.elements[0]);let n=[];for(let r of t.elements){let t={ALT:_j(e,r,!0)},i=Tj(r);i&&(t.GATE=xj(i)),n.push(t)}let r=e.or++,i=o((e,t)=>`uGroup_${e}_${t.getRuleStack().join(`-`)}`,`idFunc`),a=o(t=>e.parser.alternatives(r,n.map((n,a)=>{let s={ALT:o(()=>!0,`ALT`)},c=e.parser;s.ALT=()=>{if(n.ALT(t),!c.isRecording()){let e=i(r,c);c.unorderedGroups.get(e)||c.unorderedGroups.set(e,[]);let t=c.unorderedGroups.get(e);t?.[a]===void 0&&(t[a]=!0)}};let l=n.GATE;return l?s.GATE=()=>l(t):s.GATE=()=>!c.unorderedGroups.get(i(r,c))?.[a],s})),`alternatives`),s=Oj(e,Tj(t),a,`*`);return t=>{s(t),e.parser.isRecording()||e.parser.unorderedGroups.delete(i(r,e.parser))}}o(Cj,`buildUnorderedGroup`);function wj(e,t){let n=t.elements.map(t=>_j(e,t));return e=>n.forEach(t=>t(e))}o(wj,`buildGroup`);function Tj(e){if(Cr(e))return e.guardCondition}o(Tj,`getGuardCondition`);function Ej(e,t,n=t.terminal){if(!n){if(!t.type.ref)throw Error(`Could not resolve reference to type: `+t.type.$refText);let n=Ga(t.type.ref)?.terminal;if(!n)throw Error(`Could not find name assignment for type: `+no(t.type.ref));return Ej(e,t,n)}else if(ri(n)&&Yr(n.rule.ref)){let r=n.rule.ref,i=e.subrule++,a;return n=>{a??=kj(e,r),e.parser.subrule(i,a,!1,t,n)}}else if(ri(n)&&hi(n.rule.ref)){let r=e.consume++,i=jj(e,n.rule.ref.name);return()=>e.parser.consume(r,i,t)}else if(Fr(n)){let r=e.consume++,i=jj(e,n.value);return()=>e.parser.consume(r,i,t)}else throw Error(`Could not build cross reference parser`)}o(Ej,`buildCrossReference`);function Dj(e,t){let n=e.consume++,r=e.tokens[t.value];if(!r)throw Error(`Could not find token for keyword: `+t.value);return()=>e.parser.consume(n,r,t)}o(Dj,`buildKeyword`);function Oj(e,t,n,r){let i=t&&xj(t);if(!r)if(i){let t=e.or++;return r=>e.parser.alternatives(t,[{ALT:o(()=>n(r),`ALT`),GATE:o(()=>i(r),`GATE`)},{ALT:mS(),GATE:o(()=>!i(r),`GATE`)}])}else return n;if(r===`*`){let t=e.many++;return r=>e.parser.many(t,{DEF:o(()=>n(r),`DEF`),GATE:i?()=>i(r):void 0})}else if(r===`+`){let t=e.many++;if(i){let r=e.or++;return a=>e.parser.alternatives(r,[{ALT:o(()=>e.parser.atLeastOne(t,{DEF:o(()=>n(a),`DEF`)}),`ALT`),GATE:o(()=>i(a),`GATE`)},{ALT:mS(),GATE:o(()=>!i(a),`GATE`)}])}else return r=>e.parser.atLeastOne(t,{DEF:o(()=>n(r),`DEF`)})}else if(r===`?`){let t=e.optional++;return r=>e.parser.optional(t,{DEF:o(()=>n(r),`DEF`),GATE:i?()=>i(r):void 0})}else aa(r)}o(Oj,`wrap`);function kj(e,t){let n=Aj(e,t),r=e.parser.getRule(n);if(!r)throw Error(`Rule "${n}" not found."`);return r}o(kj,`getRule`);function Aj(e,t){if(Un(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let n=t,r=n.$container,i=t.$type;for(;!Yr(r);)(Cr(r)||Zn(r)||Di(r))&&(i=r.elements.indexOf(n).toString()+`:`+i),n=r,r=r.$container;return i=r.name+`:`+i,e.ruleNames.set(t,i),i}}o(Aj,`getRuleName`);function jj(e,t){let n=e.tokens[t];if(!n)throw Error(`Token "${t}" not found."`);return n}o(jj,`getToken`);function Mj(e){let t=e.Grammar,n=e.parser.Lexer,r=new uj(e);return mj(t,r,n.definition),r.finalize(),r}o(Mj,`createCompletionParser`);function Nj(e){let t=Pj(e);return t.finalize(),t}o(Nj,`createLangiumParser`);function Pj(e){let t=e.Grammar,n=e.parser.Lexer;return mj(t,new sj(e),n.definition)}o(Pj,`prepareLangiumParser`);var Fj=class{static{o(this,`DefaultTokenBuilder`)}constructor(){this.diagnostics=[]}buildTokens(e,t){let n=N(Na(e,!1)),r=this.buildTerminalTokens(n),i=this.buildKeywordTokens(n,r,t);return i.push(...r),i}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){let e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(hi).filter(e=>!e.fragment).map(e=>this.buildTerminalToken(e)).toArray()}buildTerminalToken(e){let t=oo(e),n=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,r={name:e.name,PATTERN:n};return typeof n==`function`&&(r.LINE_BREAKS=!0),e.hidden&&(r.GROUP=Da(t)?Vy.SKIPPED:`hidden`),r}requiresCustomPattern(e){return!!(e.flags.includes(`u`)||e.flags.includes(`s`))}regexPatternFunction(e){let t=new RegExp(e,e.flags+`y`);return(e,n)=>(t.lastIndex=n,t.exec(e))}buildKeywordTokens(e,t,n){return e.filter(Un).flatMap(e=>jn(e).filter(Fr)).distinct(e=>e.value).toArray().sort((e,t)=>t.value.length-e.value.length).map(e=>this.buildKeywordToken(e,t,!!n?.caseInsensitive))}buildKeywordToken(e,t,n){let r=this.buildKeywordPattern(e,n),i={name:e.value,PATTERN:r,LONGER_ALT:this.findLongerAlt(e,t)};return typeof r==`function`&&(i.LINE_BREAKS=!0),i}buildKeywordPattern(e,t){return t?new RegExp(Oa(e.value),`i`):e.value}findLongerAlt(e,t){return t.reduce((t,n)=>{let r=n?.PATTERN;return r?.source&&ka(`^`+r.source+`$`,e.value)&&t.push(n),t},[])}},Ij=class{static{o(this,`DefaultValueConverter`)}convert(e,t){let n=t.grammarSource;if(pr(n)&&(n=Ia(n)),ri(n)){let r=n.rule.ref;if(!r)throw Error(`This cst node was not parsed by a rule.`);return this.runConverter(r,e,t)}return e}runConverter(e,t,n){switch(e.name.toUpperCase()){case`INT`:return Lj.convertInt(t);case`STRING`:return Lj.convertString(t);case`ID`:return Lj.convertID(t)}switch(ao(e)?.toLowerCase()){case`number`:return Lj.convertNumber(t);case`boolean`:return Lj.convertBoolean(t);case`bigint`:return Lj.convertBigint(t);case`date`:return Lj.convertDate(t);default:return t}}},Lj;(function(e){function t(e){let t=``;for(let r=1;r<e.length-1;r++){let i=e.charAt(r);if(i===`\\`){let i=e.charAt(++r);t+=n(i)}else t+=i}return t}o(t,`convertString`),e.convertString=t;function n(e){switch(e){case`b`:return`\b`;case`f`:return`\f`;case`n`:return`