import{A as b}from"./index.f4d41e67.entry.js";function k(f,p){return p.forEach(function(c){c&&typeof c!="string"&&!Array.isArray(c)&&Object.keys(c).forEach(function(i){if(i!=="default"&&!(i in f)){var t=Object.getOwnPropertyDescriptor(c,i);Object.defineProperty(f,i,t.get?t:{enumerable:!0,get:function(){return c[i]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var s={exports:{}};(function(f,p){(function(c){c(b.exports)})(function(c){c.defineMode("ebnf",function(i){var t={slash:0,parenthesis:1},r={comment:0,_string:1,characterClass:2},a=null;return i.bracesMode&&(a=c.getMode(i,i.bracesMode)),{startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(e,n){if(!!e){switch(n.stack.length===0&&(e.peek()=='"'||e.peek()=="'"?(n.stringType=e.peek(),e.next(),n.stack.unshift(r._string)):e.match("/*")?(n.stack.unshift(r.comment),n.commentType=t.slash):e.match("(*")&&(n.stack.unshift(r.comment),n.commentType=t.parenthesis)),n.stack[0]){case r._string:for(;n.stack[0]===r._string&&!e.eol();)e.peek()===n.stringType?(e.next(),n.stack.shift()):e.peek()==="\\"?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return n.lhs?"property string":"string";case r.comment:for(;n.stack[0]===r.comment&&!e.eol();)n.commentType===t.slash&&e.match("*/")||n.commentType===t.parenthesis&&e.match("*)")?(n.stack.shift(),n.commentType=null):e.match(/^.[^\*]*/);return"comment";case r.characterClass:for(;n.stack[0]===r.characterClass&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(".")||n.stack.shift();return"operator"}var u=e.peek();if(a!==null&&(n.braced||u==="{")){n.localState===null&&(n.localState=c.startState(a));var l=a.token(e,n.localState),h=e.current();if(!l)for(var o=0;o<h.length;o++)h[o]==="{"?(n.braced===0&&(l="matchingbracket"),n.braced++):h[o]==="}"&&(n.braced--,n.braced===0&&(l="matchingbracket"));return l}switch(u){case"[":return e.next(),n.stack.unshift(r.characterClass),"bracket";case":":case"|":case";":return e.next(),"operator";case"%":if(e.match("%%"))return"header";if(e.match(/[%][A-Za-z]+/))return"keyword";if(e.match(/[%][}]/))return"matchingbracket";break;case"/":if(e.match(/[\/][A-Za-z]+/))return"keyword";case"\\":if(e.match(/[\][a-z]+/))return"string-2";case".":if(e.match("."))return"atom";case"*":case"-":case"+":case"^":if(e.match(u))return"atom";case"$":if(e.match("$$"))return"builtin";if(e.match(/[$][0-9]+/))return"variable-3";case"<":if(e.match(/<<[a-zA-Z_]+>>/))return"builtin"}return e.match("//")?(e.skipToEnd(),"comment"):e.match("return")?"operator":e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?e.match(/(?=[\(.])/)?"variable":e.match(/(?=[\s\n]*[:=])/)?"def":"variable-2":["[","]","(",")"].indexOf(e.peek())!=-1?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}}),c.defineMIME("text/x-ebnf","ebnf")})})();var y=s.exports,g=k({__proto__:null,default:y},[s.exports]);export{g as e};
