import{A as k}from"./index.f4d41e67.entry.js";function y(s,c){return c.forEach(function(a){a&&typeof a!="string"&&!Array.isArray(a)&&Object.keys(a).forEach(function(l){if(l!=="default"&&!(l in s)){var o=Object.getOwnPropertyDescriptor(a,l);Object.defineProperty(s,l,o.get?o:{enumerable:!0,get:function(){return a[l]}})}})}),Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var b={exports:{}};(function(s,c){(function(a){a(k.exports)})(function(a){a.defineMode("smalltalk",function(l){var o=/[+\-\/\\*~<>=@%|&?!.,:;^]/,w=/true|false|nil|self|super|thisContext/,u=function(e,n){this.next=e,this.parent=n},f=function(e,n,t){this.name=e,this.context=n,this.eos=t},p=function(){this.context=new u(h,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};p.prototype.userIndent=function(e){this.userIndentationDelta=e>0?e/l.indentUnit-this.indentation:0};var h=function(e,n,t){var i=new f(null,n,!1),r=e.next();return r==='"'?i=x(e,new u(x,n)):r==="'"?i=d(e,new u(d,n)):r==="#"?e.peek()==="'"?(e.next(),i=v(e,new u(v,n))):e.eatWhile(/[^\s.{}\[\]()]/)?i.name="string-2":i.name="meta":r==="$"?(e.next()==="<"&&(e.eatWhile(/[^\s>]/),e.next()),i.name="string-2"):r==="|"&&t.expectVariable?i.context=new u(m,n):/[\[\]{}()]/.test(r)?(i.name="bracket",i.eos=/[\[{(]/.test(r),r==="["?t.indentation++:r==="]"&&(t.indentation=Math.max(0,t.indentation-1))):o.test(r)?(e.eatWhile(o),i.name="operator",i.eos=r!==";"):/\d/.test(r)?(e.eatWhile(/[\w\d]/),i.name="number"):/[\w_]/.test(r)?(e.eatWhile(/[\w\d_]/),i.name=t.expectVariable?w.test(e.current())?"keyword":"variable":null):i.eos=t.expectVariable,i},x=function(e,n){return e.eatWhile(/[^"]/),new f("comment",e.eat('"')?n.parent:n,!0)},d=function(e,n){return e.eatWhile(/[^']/),new f("string",e.eat("'")?n.parent:n,!1)},v=function(e,n){return e.eatWhile(/[^']/),new f("string-2",e.eat("'")?n.parent:n,!1)},m=function(e,n){var t=new f(null,n,!1),i=e.next();return i==="|"?(t.context=n.parent,t.eos=!0):(e.eatWhile(/[^|]/),t.name="variable"),t};return{startState:function(){return new p},token:function(e,n){if(n.userIndent(e.indentation()),e.eatSpace())return null;var t=n.context.next(e,n.context,n);return n.context=t.context,n.expectVariable=t.eos,t.name},blankLine:function(e){e.userIndent(0)},indent:function(e,n){var t=e.context.next===h&&n&&n.charAt(0)==="]"?-1:e.userIndentationDelta;return(e.indentation+t)*l.indentUnit},electricChars:"]"}}),a.defineMIME("text/x-stsrc",{name:"smalltalk"})})})();var g=b.exports,I=y({__proto__:null,default:g},[b.exports]);export{I as s};
