import{A as w}from"./index.f4d41e67.entry.js";function z(l,d){return d.forEach(function(u){u&&typeof u!="string"&&!Array.isArray(u)&&Object.keys(u).forEach(function(c){if(c!=="default"&&!(c in l)){var f=Object.getOwnPropertyDescriptor(u,c);Object.defineProperty(l,c,f.get?f:{enumerable:!0,get:function(){return u[c]}})}})}),Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var m={exports:{}};(function(l,d){(function(u){u(w.exports)})(function(u){u.defineMode("go",function(c){var f=c.indentUnit,v={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0},b={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},s=/[+\-*&^%:=<>!|\/]/,i;function a(e,r){var t=e.next();if(t=='"'||t=="'"||t=="`")return r.tokenize=k(t),r.tokenize(e,r);if(/[\d\.]/.test(t))return t=="."?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):t=="0"?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(t))return i=t,null;if(t=="/"){if(e.eat("*"))return r.tokenize=x,x(e,r);if(e.eat("/"))return e.skipToEnd(),"comment"}if(s.test(t))return e.eatWhile(s),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var n=e.current();return v.propertyIsEnumerable(n)?((n=="case"||n=="default")&&(i="case"),"keyword"):b.propertyIsEnumerable(n)?"atom":"variable"}function k(e){return function(r,t){for(var n=!1,o,h=!1;(o=r.next())!=null;){if(o==e&&!n){h=!0;break}n=!n&&e!="`"&&o=="\\"}return(h||!(n||e=="`"))&&(t.tokenize=a),"string"}}function x(e,r){for(var t=!1,n;n=e.next();){if(n=="/"&&t){r.tokenize=a;break}t=n=="*"}return"comment"}function g(e,r,t,n,o){this.indented=e,this.column=r,this.type=t,this.align=n,this.prev=o}function p(e,r,t){return e.context=new g(e.indented,r,t,null,e.context)}function y(e){if(!!e.context.prev){var r=e.context.type;return(r==")"||r=="]"||r=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}}return{startState:function(e){return{tokenize:null,context:new g((e||0)-f,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,r){var t=r.context;if(e.sol()&&(t.align==null&&(t.align=!1),r.indented=e.indentation(),r.startOfLine=!0,t.type=="case"&&(t.type="}")),e.eatSpace())return null;i=null;var n=(r.tokenize||a)(e,r);return n=="comment"||(t.align==null&&(t.align=!0),i=="{"?p(r,e.column(),"}"):i=="["?p(r,e.column(),"]"):i=="("?p(r,e.column(),")"):i=="case"?t.type="case":(i=="}"&&t.type=="}"||i==t.type)&&y(r),r.startOfLine=!1),n},indent:function(e,r){if(e.tokenize!=a&&e.tokenize!=null)return u.Pass;var t=e.context,n=r&&r.charAt(0);if(t.type=="case"&&/^(?:case|default)\b/.test(r))return e.context.type="}",t.indented;var o=n==t.type;return t.align?t.column+(o?0:1):t.indented+(o?0:f)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),u.defineMIME("text/x-go","go")})})();var E=m.exports,C=z({__proto__:null,default:E},[m.exports]);export{C as g};
