import{S as p}from"./TextViewer-a959e5a3.js";import"./useSetting-bf1f702c.js";import"./index-25eb6331.js";import"./file-5139c625.js";import"./request-14d7fed5.js";import"./index-3bef6acb.js";import"./path-8ad564a3.js";import"./base-00eb0fe9.js";/* empty css                */import"./dialog-66decf59.js";import"./index-db57f3ab.js";import"./vnode-761469ca.js";import"./scroll-044a6ede.js";import"./button-c2afb424.js";import"./overlay-25bb32bf.js";import"./refs-e3c707bd.js";/* empty css                     *//* empty css               *//* empty css                  */import"./dropdown-item-13559a59.js";import"./index-51e1cffc.js";import"./index-b7ba0c9a.js";import"./dropdown-8894c5a8.js";import"./index-0746525e.js";import"./_initCloneObject-55db8b76.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./directive-77ef4fb1.js";import"./index-98eb1092.js";import"./validator-551b2058.js";import"./index-02f3ff91.js";import"./index-1c392315.js";import"./index-73ac7f16.js";import"./strings-59e484a0.js";import"./debounce-8de7dc13.js";import"./index-272fcf3f.js";import"./useFileUpload-914f2d00.js";import"./common-9cc21621.js";function s(e){return new RegExp("^(?:"+e.join("|")+")","i")}function a(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var c=a(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),d=a(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),g=a(["function","if","repeat","do","\\(","{"]),f=a(["end","until","\\)","}"]),h=s(["end","until","\\)","}","else","elseif"]);function u(e){for(var t=0;e.eat("=");)++t;return e.eat("["),t}function l(e,t){var i=e.next();return i=="-"&&e.eat("-")?e.eat("[")&&e.eat("[")?(t.cur=m(u(e),"comment"))(e,t):(e.skipToEnd(),"comment"):i=='"'||i=="'"?(t.cur=b(i))(e,t):i=="["&&/[\[=]/.test(e.peek())?(t.cur=m(u(e),"string"))(e,t):/\d/.test(i)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(i)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function m(e,t){return function(i,r){for(var n=null,o;(o=i.next())!=null;)if(n==null)o=="]"&&(n=0);else if(o=="=")++n;else if(o=="]"&&n==e){r.cur=l;break}else n=null;return t}}function b(e){return function(t,i){for(var r=!1,n;(n=t.next())!=null&&!(n==e&&!r);)r=!r&&n=="\\";return r||(i.cur=l),"string"}}const k={name:"lua",startState:function(){return{basecol:0,indentDepth:0,cur:l}},token:function(e,t){if(e.eatSpace())return null;var i=t.cur(e,t),r=e.current();return i=="variable"&&(d.test(r)?i="keyword":c.test(r)&&(i="builtin")),i!="comment"&&i!="string"&&(g.test(r)?++t.indentDepth:f.test(r)&&--t.indentDepth),i},indent:function(e,t,i){var r=h.test(t);return e.basecol+i.unit*(e.indentDepth-(r?1:0))},languageData:{indentOnInput:/^\s*(?:end|until|else|\)|\})$/,commentTokens:{line:"--",block:{open:"--[[",close:"]]--"}}}};function ie(){return p.define(k)}export{ie as default};
