web-interface.assets.c224886a075dcbcf9433ec9416f08206.js Maven / Gradle / Ivy
"no use strict";(()=>{var wt=(m,y)=>()=>(y||m((y={exports:{}}).exports,y),y.exports);var At=wt(He=>{(function(m){if(typeof m.window<"u"&&m.document||m.require&&m.define)return;m.console||(m.console=function(){var s=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:s})},m.console.error=m.console.warn=m.console.log=m.console.trace=m.console),m.window=m,m.ace=m,m.onerror=function(s,i,r,n,l){postMessage({type:"error",data:{message:s,data:l&&l.data,file:i,line:r,col:n,stack:l&&l.stack}})},m.normalizeModule=function(s,i){if(i.indexOf("!")!==-1){var r=i.split("!");return m.normalizeModule(s,r[0])+"!"+m.normalizeModule(s,r[1])}if(i.charAt(0)=="."){var n=s.split("/").slice(0,-1).join("/");for(i=(n?n+"/":"")+i;i.indexOf(".")!==-1&&l!=i;){var l=i;i=i.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},m.require=function(i,r){if(r||(r=i,i=null),!r.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");r=m.normalizeModule(i,r);var n=m.require.modules[r];if(n)return n.initialized||(n.initialized=!0,n.exports=n.factory().exports),n.exports;if(!m.require.tlns)return console.log("unable to load "+r);var l=y(r,m.require.tlns);return l.slice(-3)!=".js"&&(l+=".js"),m.require.id=r,m.require.modules[r]={},importScripts(l),m.require(i,r)};function y(s,i){for(var r=s,n="";r;){var l=i[r];if(typeof l=="string")return l+n;if(l)return l.location.replace(/\/*$/,"/")+(n||l.main||l.name);if(l===!1)return"";var c=r.lastIndexOf("/");if(c===-1)break;n=r.substr(c)+n,r=r.slice(0,c)}return s}m.require.modules={},m.require.tlns={},m.define=function(s,i,r){if(arguments.length==2?(r=i,typeof s!="string"&&(i=s,s=m.require.id)):arguments.length==1&&(r=s,i=[],s=m.require.id),typeof r!="function"){m.require.modules[s]={exports:r,initialized:!0};return}i.length||(i=["require","exports","module"]);var n=function(l){return m.require(s,l)};m.require.modules[s]={exports:{},factory:function(){var l=this,c=r.apply(this,i.slice(0,r.length).map(function(a){switch(a){case"require":return n;case"exports":return l.exports;case"module":return l;default:return n(a)}}));return c&&(l.exports=c),l}}},m.define.amd={},m.require.tlns={},m.initBaseUrls=function(i){for(var r in i)this.require.tlns[r]=i[r]},m.initSender=function(){var i=m.require("ace/lib/event_emitter").EventEmitter,r=m.require("ace/lib/oop"),n=function(){};return(function(){r.implement(this,i),this.callback=function(l,c){postMessage({type:"call",id:c,data:l})},this.emit=function(l,c){postMessage({type:"event",name:l,data:c})}}).call(n.prototype),new n};var N=m.main=null,v=m.sender=null;m.onmessage=function(s){var i=s.data;if(i.event&&v)v._signal(i.event,i.data);else if(i.command)if(N[i.command])N[i.command].apply(N,i.args);else if(m[i.command])m[i.command].apply(m,i.args);else throw new Error("Unknown command:"+i.command);else if(i.init){m.initBaseUrls(i.tlns),v=m.sender=m.initSender();var r=this.require(i.module)[i.classname];N=m.main=new r(v)}}})(He);ace.define("ace/lib/oop",[],function(m,y,N){"use strict";y.inherits=function(v,s){v.super_=s,v.prototype=Object.create(s.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}})},y.mixin=function(v,s){for(var i in s)v[i]=s[i];return v},y.implement=function(v,s){y.mixin(v,s)}});ace.define("ace/apply_delta",[],function(m,y,N){"use strict";function v(r,n){throw console.log("Invalid Delta:",r),"Invalid Delta: "+n}function s(r,n){return n.row>=0&&n.row=0&&n.column<=r[n.row].length}function i(r,n){n.action!="insert"&&n.action!="remove"&&v(n,"delta.action must be 'insert' or 'remove'"),n.lines instanceof Array||v(n,"delta.lines must be an Array"),(!n.start||!n.end)&&v(n,"delta.start/end must be an present");var l=n.start;s(r,n.start)||v(n,"delta.start must be contained in document");var c=n.end;n.action=="remove"&&!s(r,c)&&v(n,"delta.end must contained in document for 'remove' actions");var a=c.row-l.row,f=c.column-(a==0?l.column:0);(a!=n.lines.length-1||n.lines[a].length!=f)&&v(n,"delta.range must match delta lines")}y.applyDelta=function(r,n,l){var c=n.start.row,a=n.start.column,f=r[c]||"";switch(n.action){case"insert":var g=n.lines;if(g.length===1)r[c]=f.substring(0,a)+n.lines[0]+f.substring(a);else{var b=[c,1].concat(n.lines);r.splice.apply(r,b),r[c]=f.substring(0,a)+r[c],r[c+n.lines.length-1]+=f.substring(a)}break;case"remove":var L=n.end.column,D=n.end.row;c===D?r[c]=f.substring(0,a)+f.substring(L):r.splice(c,D-c+1,f.substring(0,a)+r[D].substring(L));break}}});ace.define("ace/lib/event_emitter",[],function(m,y,N){"use strict";var v={},s=function(){this.propagationStopped=!0},i=function(){this.defaultPrevented=!0};v._emit=v._dispatchEvent=function(r,n){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var l=this._eventRegistry[r]||[],c=this._defaultHandlers[r];if(!(!l.length&&!c)){(typeof n!="object"||!n)&&(n={}),n.type||(n.type=r),n.stopPropagation||(n.stopPropagation=s),n.preventDefault||(n.preventDefault=i),l=l.slice();for(var a=0;a ["+this.end.row+"/"+this.end.column+"]"},i.prototype.contains=function(r,n){return this.compare(r,n)==0},i.prototype.compareRange=function(r){var n,l=r.end,c=r.start;return n=this.compare(l.row,l.column),n==1?(n=this.compare(c.row,c.column),n==1?2:n==0?1:0):n==-1?-2:(n=this.compare(c.row,c.column),n==-1?-1:n==1?42:0)},i.prototype.comparePoint=function(r){return this.compare(r.row,r.column)},i.prototype.containsRange=function(r){return this.comparePoint(r.start)==0&&this.comparePoint(r.end)==0},i.prototype.intersects=function(r){var n=this.compareRange(r);return n==-1||n==0||n==1},i.prototype.isEnd=function(r,n){return this.end.row==r&&this.end.column==n},i.prototype.isStart=function(r,n){return this.start.row==r&&this.start.column==n},i.prototype.setStart=function(r,n){typeof r=="object"?(this.start.column=r.column,this.start.row=r.row):(this.start.row=r,this.start.column=n)},i.prototype.setEnd=function(r,n){typeof r=="object"?(this.end.column=r.column,this.end.row=r.row):(this.end.row=r,this.end.column=n)},i.prototype.inside=function(r,n){return this.compare(r,n)==0?!(this.isEnd(r,n)||this.isStart(r,n)):!1},i.prototype.insideStart=function(r,n){return this.compare(r,n)==0?!this.isEnd(r,n):!1},i.prototype.insideEnd=function(r,n){return this.compare(r,n)==0?!this.isStart(r,n):!1},i.prototype.compare=function(r,n){return!this.isMultiLine()&&r===this.start.row?nthis.end.column?1:0:rthis.end.row?1:this.start.row===r?n>=this.start.column?0:-1:this.end.row===r?n<=this.end.column?0:1:0},i.prototype.compareStart=function(r,n){return this.start.row==r&&this.start.column==n?-1:this.compare(r,n)},i.prototype.compareEnd=function(r,n){return this.end.row==r&&this.end.column==n?1:this.compare(r,n)},i.prototype.compareInside=function(r,n){return this.end.row==r&&this.end.column==n?1:this.start.row==r&&this.start.column==n?-1:this.compare(r,n)},i.prototype.clipRows=function(r,n){if(this.end.row>n)var l={row:n+1,column:0};else if(this.end.rown)var c={row:n+1,column:0};else if(this.start.row"u"?this.setPosition(a.row,a.column):this.setPosition(a,f)}return l.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},l.prototype.getDocument=function(){return this.document},l.prototype.onChange=function(c){if(!(c.start.row==c.end.row&&c.start.row!=this.row)&&!(c.start.row>this.row)){var a=n(c,{row:this.row,column:this.column},this.$insertRight);this.setPosition(a.row,a.column,!0)}},l.prototype.setPosition=function(c,a,f){var g;if(f?g={row:c,column:a}:g=this.$clipPositionToDocument(c,a),!(this.row==g.row&&this.column==g.column)){var b={row:this.row,column:this.column};this.row=g.row,this.column=g.column,this._signal("change",{old:b,value:g})}},l.prototype.detach=function(){this.document.off("change",this.$onChange)},l.prototype.attach=function(c){this.document=c||this.document,this.document.on("change",this.$onChange)},l.prototype.$clipPositionToDocument=function(c,a){var f={};return c>=this.document.getLength()?(f.row=Math.max(0,this.document.getLength()-1),f.column=this.document.getLine(f.row).length):c<0?(f.row=0,f.column=0):(f.row=c,f.column=Math.min(this.document.getLine(f.row).length,Math.max(0,a))),a<0&&(f.column=0),f},l}();i.prototype.$insertRight=!1,v.implement(i.prototype,s);function r(l,c,a){var f=a?l.column<=c.column:l.column=g&&(a=g-1,f=void 0);var b=this.getLine(a);return f==null&&(f=b.length),f=Math.min(Math.max(f,0),b.length),{row:a,column:f}},c.prototype.clonePos=function(a){return{row:a.row,column:a.column}},c.prototype.pos=function(a,f){return{row:a,column:f}},c.prototype.$clipPosition=function(a){var f=this.getLength();return a.row>=f?(a.row=Math.max(0,f-1),a.column=this.getLine(f-1).length):(a.row=Math.max(0,a.row),a.column=Math.min(Math.max(a.column,0),this.getLine(a.row).length)),a},c.prototype.insertFullLines=function(a,f){a=Math.min(Math.max(a,0),this.getLength());var g=0;a0,b=f=0&&this.applyDelta({start:this.pos(a,this.getLine(a).length),end:this.pos(a+1,0),action:"remove",lines:["",""]})},c.prototype.replace=function(a,f){if(a instanceof r||(a=r.fromPoints(a.start,a.end)),f.length===0&&a.isEmpty())return a.start;if(f==this.getTextRange(a))return a.end;this.remove(a);var g;return f?g=this.insert(a.start,f):g=a.start,g},c.prototype.applyDeltas=function(a){for(var f=0;f=0;f--)this.revertDelta(a[f])},c.prototype.applyDelta=function(a,f){var g=a.action=="insert";(g?a.lines.length<=1&&!a.lines[0]:!r.comparePoints(a.start,a.end))||(g&&a.lines.length>2e4?this.$splitAndapplyLargeDelta(a,2e4):(s(this.$lines,a,f),this._signal("change",a)))},c.prototype.$safeApplyDelta=function(a){var f=this.$lines.length;(a.action=="remove"&&a.start.row0;)r&1&&(n+=i),(r>>=1)&&(i+=i);return n};var v=/^\s\s*/,s=/\s\s*$/;y.stringTrimLeft=function(i){return i.replace(v,"")},y.stringTrimRight=function(i){return i.replace(s,"")},y.copyObject=function(i){var r={};for(var n in i)r[n]=i[n];return r},y.copyArray=function(i){for(var r=[],n=0,l=i.length;n=n.$lines.length)throw L=new Error("Invalid delta"),L.data={path:c.$path,linesLength:n.$lines.length,start:b.start,end:b.end},L;n.applyDelta(b,!0)}if(c.$timeout)return l.schedule(c.$timeout);c.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(r){this.$timeout=r},this.setValue=function(r){this.doc.setValue(r),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(r){this.sender.callback(this.doc.getValue(),r)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(i.prototype)});ace.define("ace/mode/lua/luaparse",[],function(m,y,N){(function(v,s,i){i(y)})(this,"luaparse",function(v){"use strict";v.version="0.3.1";var s,i,r,n,l,c=v.defaultOptions={wait:!1,comments:!0,scope:!1,locations:!1,ranges:!1,onCreateNode:null,onCreateScope:null,onDestroyScope:null,onLocalDeclaration:null,luaVersion:"5.3",encodingMode:"none"};function a(e,t){return t=t||0,e<128?String.fromCharCode(e):e<2048?String.fromCharCode(t|192|e>>6,t|128|e&63):e<65536?String.fromCharCode(t|224|e>>12,t|128|e>>6&63,t|128|e&63):e<1114112?String.fromCharCode(t|240|e>>18,t|128|e>>12&63,t|128|e>>6&63,t|128|e&63):null}function f(e,t){for(var o=e.toString(16);o.length=128?String.fromCharCode(e|63232):String.fromCharCode(e)},encodeUTF8:function(e){return a(e,63232)}},none:{discardStrings:!0,fixup:function(e){return e},encodeByte:function(e){return""},encodeUTF8:function(e){return""}}},L=1,D=2,$=4,_=8,H=16,K=32,se=64,oe=128,ue=256;v.tokenTypes={EOF:L,StringLiteral:D,Keyword:$,Identifier:_,NumericLiteral:H,Punctuator:K,BooleanLiteral:se,NilLiteral:oe,VarargLiteral:ue};var w=v.errors={unexpected:"unexpected %1 '%2' near '%3'",unexpectedEOF:"unexpected symbol near ''",expected:"'%1' expected near '%2'",expectedToken:"%1 expected near '%2'",unfinishedString:"unfinished string near '%1'",malformedNumber:"malformed number near '%1'",decimalEscapeTooLarge:"decimal escape too large near '%1'",invalidEscape:"invalid escape sequence near '%1'",hexadecimalDigitExpected:"hexadecimal digit expected near '%1'",braceExpected:"missing '%1' near '%2'",tooLargeCodepoint:"UTF-8 value too large near '%1'",unfinishedLongString:"unfinished long string (starting at line %1) near '%2'",unfinishedLongComment:"unfinished long comment (starting at line %1) near '%2'",ambiguousSyntax:"ambiguous syntax (function call x new statement) near '%1'",noLoopToBreak:"no loop to break near '%1'",labelAlreadyDefined:"label '%1' already defined on line %2",labelNotVisible:"no visible label '%1' for ",gotoJumpInLocalScope:" jumps into the scope of local '%2'",cannotUseVararg:"cannot use '...' outside a vararg function near '%1'",invalidCodeUnit:"code unit U+%1 is not allowed in the current encoding mode"},E=v.ast={labelStatement:function(e){return{type:"LabelStatement",label:e}},breakStatement:function(){return{type:"BreakStatement"}},gotoStatement:function(e){return{type:"GotoStatement",label:e}},returnStatement:function(e){return{type:"ReturnStatement",arguments:e}},ifStatement:function(e){return{type:"IfStatement",clauses:e}},ifClause:function(e,t){return{type:"IfClause",condition:e,body:t}},elseifClause:function(e,t){return{type:"ElseifClause",condition:e,body:t}},elseClause:function(e){return{type:"ElseClause",body:e}},whileStatement:function(e,t){return{type:"WhileStatement",condition:e,body:t}},doStatement:function(e){return{type:"DoStatement",body:e}},repeatStatement:function(e,t){return{type:"RepeatStatement",condition:e,body:t}},localStatement:function(e,t){return{type:"LocalStatement",variables:e,init:t}},assignmentStatement:function(e,t){return{type:"AssignmentStatement",variables:e,init:t}},callStatement:function(e){return{type:"CallStatement",expression:e}},functionStatement:function(e,t,o,p){return{type:"FunctionDeclaration",identifier:e,isLocal:o,parameters:t,body:p}},forNumericStatement:function(e,t,o,p,h){return{type:"ForNumericStatement",variable:e,start:t,end:o,step:p,body:h}},forGenericStatement:function(e,t,o){return{type:"ForGenericStatement",variables:e,iterators:t,body:o}},chunk:function(e){return{type:"Chunk",body:e}},identifier:function(e){return{type:"Identifier",name:e}},literal:function(e,t,o){return e=e===D?"StringLiteral":e===H?"NumericLiteral":e===se?"BooleanLiteral":e===oe?"NilLiteral":"VarargLiteral",{type:e,value:t,raw:o}},tableKey:function(e,t){return{type:"TableKey",key:e,value:t}},tableKeyString:function(e,t){return{type:"TableKeyString",key:e,value:t}},tableValue:function(e){return{type:"TableValue",value:e}},tableConstructorExpression:function(e){return{type:"TableConstructorExpression",fields:e}},binaryExpression:function(e,t,o){var p=e==="and"||e==="or"?"LogicalExpression":"BinaryExpression";return{type:p,operator:e,left:t,right:o}},unaryExpression:function(e,t){return{type:"UnaryExpression",operator:e,argument:t}},memberExpression:function(e,t,o){return{type:"MemberExpression",indexer:t,identifier:o,base:e}},indexExpression:function(e,t){return{type:"IndexExpression",base:e,index:t}},callExpression:function(e,t){return{type:"CallExpression",base:e,arguments:t}},tableCallExpression:function(e,t){return{type:"TableCallExpression",base:e,arguments:t}},stringCallExpression:function(e,t){return{type:"StringCallExpression",base:e,argument:t}},comment:function(e,t){return{type:"Comment",value:e,raw:t}}};function x(e){if(U){var t=j.pop();t.complete(),t.bless(e)}return i.onCreateNode&&i.onCreateNode(e),e}var Se=Array.prototype.slice,Dt=Object.prototype.toString,Le=function(e,t){for(var o=0,p=e.length;o"u"?(p=u-V+1,o=Te(new SyntaxError(ce("[%1:%2] %3",R,p,t))),o.index=u,o.line=R,o.column=p):(p=e.range[0]-e.lineStart,o=Te(new SyntaxError(ce("[%1:%2] %3",e.line,p,t))),o.line=e.line,o.index=e.range[0],o.column=p),o}function le(e){var t=s.slice(e.range[0],e.range[1]);return t||e.value}function ee(e,t){A(t,w.expectedToken,e,le(t))}function fe(e){var t=le(te);if(typeof e.type<"u"){var o;switch(e.type){case D:o="string";break;case $:o="keyword";break;case _:o="identifier";break;case H:o="number";break;case K:o="symbol";break;case se:o="boolean";break;case oe:return A(e,w.unexpected,"symbol","nil",t);case L:return A(e,w.unexpectedEOF)}return A(e,w.unexpected,o,le(e),t)}return A(e,w.unexpected,"symbol",e,t)}var u,d,G,te,xe,T,R,V;v.lex=we;function we(){for(Ae();s.charCodeAt(u)===45&&s.charCodeAt(u+1)===45;)rt(),Ae();if(u>=r)return{type:L,value:"",line:R,lineStart:V,range:[u,u]};var e=s.charCodeAt(u),t=s.charCodeAt(u+1);if(T=u,it(e))return Ke();switch(e){case 39:case 34:return ze();case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Ce();case 46:return Y(t)?Ce():t===46?s.charCodeAt(u+2)===46?We():F(".."):F(".");case 61:return F(t===61?"==":"=");case 62:return n.bitwiseOperators&&t===62?F(">>"):F(t===61?">=":">");case 60:return n.bitwiseOperators&&t===60?F("<<"):F(t===61?"<=":"<");case 126:if(t===61)return F("~=");if(!n.bitwiseOperators)break;return F("~");case 58:return n.labels&&t===58?F("::"):F(":");case 91:return t===91||t===61?Je():F("[");case 47:return n.integerDivision&&t===47?F("//"):F("/");case 38:case 124:if(!n.bitwiseOperators)break;case 42:case 94:case 37:case 44:case 123:case 125:case 93:case 40:case 41:case 59:case 35:case 45:case 43:return F(s.charAt(u))}return fe(s.charAt(u))}function ge(){var e=s.charCodeAt(u),t=s.charCodeAt(u+1);return pe(e)?(e===10&&t===13&&++u,e===13&&t===10&&++u,++R,V=++u,!0):!1}function Ae(){for(;ur||pe(S))&&(h+=s.slice(p,u-1),A(null,w.unfinishedString,s.slice(T,u-1))),S===92){if(!l.discardStrings){var k=s.slice(p,u-1);h+=l.fixup(k)}var C=tt();l.discardStrings||(h+=C),p=u}return l.discardStrings||(h+=l.encodeByte(null),h+=l.fixup(s.slice(p,u-1))),{type:D,value:h,line:t,lineStart:o,lastLine:R,lastLineStart:V,range:[T,u]}}function Je(){var e=R,t=V,o=Ie(!1);return o===!1&&A(d,w.expected,"[",le(d)),{type:D,value:l.discardStrings?null:l.fixup(o),line:e,lineStart:t,lastLine:R,lastLineStart:V,range:[T,u]}}function Ce(){var e=s.charAt(u),t=s.charAt(u+1),o=e==="0"&&"xX".indexOf(t||null)>=0?Ye():Ze(),p=Qe(),h=Xe();return h&&(p||o.hasFractionPart)&&A(null,w.malformedNumber,s.slice(T,u)),{type:H,value:o.value,line:R,lineStart:V,range:[T,u]}}function Qe(){if(n.imaginaryNumbers)return"iI".indexOf(s.charAt(u)||null)>=0?(++u,!0):!1}function Xe(){if(n.integerSuffixes){if("uU".indexOf(s.charAt(u)||null)>=0)if(++u,"lL".indexOf(s.charAt(u)||null)>=0){if(++u,"lL".indexOf(s.charAt(u)||null)>=0)return++u,"ULL";A(null,w.malformedNumber,s.slice(T,u))}else A(null,w.malformedNumber,s.slice(T,u));else if("lL".indexOf(s.charAt(u)||null)>=0){if(++u,"lL".indexOf(s.charAt(u)||null)>=0)return++u,"LL";A(null,w.malformedNumber,s.slice(T,u))}}}function Ye(){var e=0,t=1,o=1,p,h,S,k;for(k=u+=2,re(s.charCodeAt(u))||A(null,w.malformedNumber,s.slice(T,u));re(s.charCodeAt(u));)++u;p=parseInt(s.slice(k,u),16);var C=!1;if(s.charAt(u)==="."){for(C=!0,h=++u;re(s.charCodeAt(u));)++u;e=s.slice(h,u),e=h===u?0:parseInt(e,16)/Math.pow(16,u-h)}var de=!1;if("pP".indexOf(s.charAt(u)||null)>=0){for(de=!0,++u,"+-".indexOf(s.charAt(u)||null)>=0&&(o=s.charAt(u++)==="+"?1:-1),S=u,Y(s.charCodeAt(u))||A(null,w.malformedNumber,s.slice(T,u));Y(s.charCodeAt(u));)++u;t=s.slice(S,u),t=Math.pow(2,t*o)}return{value:(p+e)*t,hasFractionPart:C||de}}function Ze(){for(;Y(s.charCodeAt(u));)++u;var e=!1;if(s.charAt(u)===".")for(e=!0,++u;Y(s.charCodeAt(u));)++u;var t=!1;if("eE".indexOf(s.charAt(u)||null)>=0)for(t=!0,++u,"+-".indexOf(s.charAt(u)||null)>=0&&++u,Y(s.charCodeAt(u))||A(null,w.malformedNumber,s.slice(T,u));Y(s.charCodeAt(u));)++u;return{value:parseFloat(s.slice(T,u)),hasFractionPart:e||t}}function et(){var e=u++;for(s.charAt(u++)!=="{"&&A(null,w.braceExpected,"{","\\"+s.slice(e,u)),re(s.charCodeAt(u))||A(null,w.hexadecimalDigitExpected,"\\"+s.slice(e,u));s.charCodeAt(u)===48;)++u;for(var t=u;re(s.charCodeAt(u));)++u,u-t>6&&A(null,w.tooLargeCodepoint,"\\"+s.slice(e,u));var o=s.charAt(u++);o!=="}"&&(o==='"'||o==="'"?A(null,w.braceExpected,"}","\\"+s.slice(e,u--)):A(null,w.hexadecimalDigitExpected,"\\"+s.slice(e,u)));var p=parseInt(s.slice(t,u-1)||"0",16),h="\\"+s.slice(e,u);return p>1114111&&A(null,w.tooLargeCodepoint,h),l.encodeUTF8(p,h)}function tt(){var e=u;switch(s.charAt(u)){case"a":return++u,"\x07";case"n":return++u,`
`;case"r":return++u,"\r";case"t":return++u," ";case"v":return++u,"\v";case"b":return++u,"\b";case"f":return++u,"\f";case"\r":case`
`:return ge(),`
`;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;Y(s.charCodeAt(u))&&u-e<3;)++u;var t=s.slice(e,u),o=parseInt(t,10);return o>255&&A(null,w.decimalEscapeTooLarge,"\\"+o),l.encodeByte(o,"\\"+t);case"z":if(n.skipWhitespaceEscape)return++u,Ae(),"";break;case"x":if(n.hexEscapes){if(re(s.charCodeAt(u+1))&&re(s.charCodeAt(u+2)))return u+=3,l.encodeByte(parseInt(s.slice(e+1,u),16),"\\"+s.slice(e,u));A(null,w.hexadecimalDigitExpected,"\\"+s.slice(e,u+2))}break;case"u":if(n.unicodeEscapes)return et();break;case"\\":case'"':case"'":return s.charAt(u++)}return n.strictEscapes&&A(null,w.invalidEscape,"\\"+s.slice(e,u+1)),s.charAt(u++)}function rt(){T=u,u+=2;var e=s.charAt(u),t="",o=!1,p=u,h=V,S=R;if(e==="["&&(t=Ie(!0),t===!1?t=e:o=!0),!o){for(;u")}function P(){G=d,d=te,te=we()}function M(e){return e===d.value?(P(),!0):!1}function O(e){e===d.value?P():A(d,w.expected,e,le(d))}function nt(e){return e===9||e===32||e===11||e===12}function pe(e){return e===10||e===13}function Y(e){return e>=48&&e<=57}function re(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function it(e){return!!(e>=65&&e<=90||e>=97&&e<=122||e===95||n.extendedIdentifiers&&e>=128)}function at(e){return!!(e>=65&&e<=90||e>=97&&e<=122||e===95||e>=48&&e<=57||n.extendedIdentifiers&&e>=128)}function st(e){switch(e.length){case 2:return e==="do"||e==="if"||e==="in"||e==="or";case 3:return e==="and"||e==="end"||e==="for"||e==="not";case 4:return e==="else"||e==="then"?!0:n.labels&&!n.contextualGoto?e==="goto":!1;case 5:return e==="break"||e==="local"||e==="until"||e==="while";case 6:return e==="elseif"||e==="repeat"||e==="return";case 8:return e==="function"}return!1}function ot(e){return K===e.type?"#-~".indexOf(e.value)>=0:$===e.type?e.value==="not":!1}function ut(e){if(L===e.type)return!0;if($!==e.type)return!1;switch(e.value){case"else":case"elseif":case"end":case"until":return!0;default:return!1}}var ne,ie,ve;function W(){var e=ne[ie++].slice();ne.push(e),i.onCreateScope&&i.onCreateScope()}function z(){var e=ne.pop();--ie,i.onDestroyScope&&i.onDestroyScope()}function De(e){i.onLocalDeclaration&&i.onLocalDeclaration(e),Le(ne[ie],e)===-1&&ne[ie].push(e)}function he(e){De(e.name),me(e,!0)}function me(e,t){!t&&Ge(ve,"name",e.name)===-1&&ve.push(e),e.isLocal=t}function Pe(e){return Le(ne[ie],e)!==-1}var j=[],U;function Q(){return new ye(d)}function ye(e){i.locations&&(this.loc={start:{line:e.line,column:e.range[0]-e.lineStart},end:{line:0,column:0}}),i.ranges&&(this.range=[e.range[0],0])}ye.prototype.complete=function(){i.locations&&(this.loc.end.line=G.lastLine||G.line,this.loc.end.column=G.range[1]-(G.lastLineStart||G.lineStart)),i.ranges&&(this.range[1]=G.range[1])},ye.prototype.bless=function(e){if(this.loc){var t=this.loc;e.loc={start:{line:t.start.line,column:t.start.column},end:{line:t.end.line,column:t.end.column}}}this.range&&(e.range=[this.range[0],this.range[1]])};function ae(){U&&j.push(Q())}function B(e){U&&j.push(e)}function X(){this.scopes=[],this.pendingGotos=[]}X.prototype.isInLoop=function(){for(var e=this.scopes.length;e-- >0;)if(this.scopes[e].isLoop)return!0;return!1},X.prototype.pushScope=function(e){var t={labels:{},locals:[],deferredGotos:[],isLoop:!!e};this.scopes.push(t)},X.prototype.popScope=function(){for(var e=0;e=this.scopes.length&&--t.maxDepth<=0&&A(t.token,w.labelNotVisible,t.target)}this.scopes.pop()},X.prototype.addGoto=function(e,t){for(var o=[],p=0;p=this.scopes.length&&S.target===e){S.localCounts[this.scopes.length-1]",d)}function bt(e){var t=d,o,p,h,S,k,C=[];U&&(p=Q());do{if(U&&(o=Q()),_===d.type)k=d.value,S=q(),i.scope&&me(S,Pe(k)),h=!0;else if(d.value==="(")P(),S=I(e),O(")"),h=!1;else return fe(d);e:for(;;){var de;switch(D===d.type?'"':d.value){case".":case"[":h=!0;break;case":":case"(":case"{":case'"':h=null;break;default:break e}S=Ne(S,o,e)}if(C.push(S),d.value!==",")break;if(!h)return fe(d);P()}while(!0);if(C.length===1&&h===null)return B(o),x(E.callStatement(C[0]));if(!h)return fe(d);O("=");var je=[];do je.push(I(e));while(M(","));return B(p),x(E.assignmentStatement(C,je))}function q(){ae();var e=d.value;return _!==d.type&&ee("",d),P(),x(E.identifier(e))}function ke(e,t){var o=_e();o.pushScope();var p=[];if(O("("),!M(")"))for(;;){if(_===d.type){var h=q();if(i.scope&&he(h),p.push(h),M(","))continue}else ue===d.type?(o.allowVararg=!0,p.push($e(o))):ee(" or '...'",d);O(")");break}var S=J(o);return o.popScope(),O("end"),i.scope&&z(),t=t||!1,x(E.functionStatement(e,p,t,S))}function St(){var e,t,o;for(U&&(o=Q()),e=q(),i.scope&&(me(e,Pe(e.name)),W());M(".");)B(o),t=q(),e=x(E.memberExpression(e,".",t));return M(":")&&(B(o),t=q(),e=x(E.memberExpression(e,":",t)),i.scope&&De("self")),e}function Re(e){for(var t=[],o,p;;){if(ae(),K===d.type&&M("["))o=I(e),O("]"),O("="),p=I(e),t.push(x(E.tableKey(o,p)));else if(_===d.type)te.value==="="?(o=q(),P(),p=I(e),t.push(x(E.tableKeyString(o,p)))):(p=I(e),t.push(x(E.tableValue(p))));else{if((p=be(e))==null){j.pop();break}t.push(x(E.tableValue(p)))}if(",;".indexOf(d.value)>=0){P();continue}break}return O("}"),x(E.tableConstructorExpression(t))}function be(e){var t=Oe(0,e);return t}function I(e){var t=be(e);if(t==null)ee("",d);else return t}function Lt(e){var t=e.charCodeAt(0),o=e.length;if(o===1)switch(t){case 94:return 12;case 42:case 47:case 37:return 10;case 43:case 45:return 9;case 38:return 6;case 126:return 5;case 124:return 4;case 60:case 62:return 3}else if(o===2)switch(t){case 47:return 10;case 46:return 8;case 60:case 62:return e==="<<"||e===">>"?7:3;case 61:case 126:return 3;case 111:return 1}else if(t===97&&e==="and")return 2;return 0}function Oe(e,t){var o=d.value,p,h;if(U&&(h=Q()),ot(d)){ae(),P();var S=Oe(10,t);S==null&&ee("",d),p=x(E.unaryExpression(o,S))}if(p==null&&(p=$e(t),p==null&&(p=Et(t))),p==null)return null;for(var k;o=d.value,k=K===d.type||$===d.type?Lt(o):0,!(k===0||k<=e);){(o==="^"||o==="..")&&--k,P();var C=Oe(k,t);C==null&&ee("",d),U&&j.push(h),p=x(E.binaryExpression(o,p,C))}return p}function Ne(e,t,o){var p,h;if(K===d.type)switch(d.value){case"[":return B(t),P(),p=I(o),O("]"),x(E.indexExpression(e,p));case".":return B(t),P(),h=q(),x(E.memberExpression(e,".",h));case":":return B(t),P(),h=q(),e=x(E.memberExpression(e,":",h)),B(t),Me(e,o);case"(":case"{":return B(t),Me(e,o)}else if(D===d.type)return B(t),Me(e,o);return null}function Et(e){var t,o,p;if(U&&(p=Q()),_===d.type)o=d.value,t=q(),i.scope&&me(t,Pe(o));else if(M("("))t=I(e),O(")");else return null;for(;;){var h=Ne(t,p,e);if(h===null)break;t=h}return t}function Me(e,t){if(K===d.type)switch(d.value){case"(":n.emptyStatement||d.line!==G.line&&A(null,w.ambiguousSyntax,d.value),P();var o=[],p=be(t);for(p!=null&&o.push(p);M(",");)p=I(t),o.push(p);return O(")"),x(E.callExpression(e,o));case"{":ae(),P();var h=Re(t);return x(E.tableCallExpression(e,h))}else if(D===d.type)return x(E.stringCallExpression(e,$e(t)));ee("function arguments",d)}function $e(e){var t=D|H|se|oe|ue,o=d.value,p=d.type,h;if(U&&(h=Q()),p===ue&&!e.allowVararg&&A(d,w.cannotUseVararg,d.value),p&t){B(h);var S=s.slice(d.range[0],d.range[1]);return P(),x(E.literal(p,o,S))}else{if($===p&&o==="function")return B(h),P(),i.scope&&W(),ke(null);if(M("{"))return B(h),Re(e)}}v.parse=xt;var qe={"5.1":{},"5.2":{labels:!0,emptyStatement:!0,hexEscapes:!0,skipWhitespaceEscape:!0,strictEscapes:!0,relaxedBreak:!0},"5.3":{labels:!0,emptyStatement:!0,hexEscapes:!0,skipWhitespaceEscape:!0,strictEscapes:!0,unicodeEscapes:!0,bitwiseOperators:!0,integerDivision:!0,relaxedBreak:!0},LuaJIT:{labels:!0,contextualGoto:!0,hexEscapes:!0,skipWhitespaceEscape:!0,strictEscapes:!0,unicodeEscapes:!0,imaginaryNumbers:!0,integerSuffixes:!0}};function xt(e,t){if(typeof t>"u"&&typeof e=="object"&&(t=e,e=void 0),t||(t={}),s=e||"",i=Ee({},c,t),u=0,R=1,V=0,r=s.length,ne=[[]],ie=0,ve=[],j=[],!Object.prototype.hasOwnProperty.call(qe,i.luaVersion))throw new Error(ce("Lua version '%1' not supported",i.luaVersion));if(n=Ee({},qe[i.luaVersion]),i.extendedIdentifiers!==void 0&&(n.extendedIdentifiers=!!i.extendedIdentifiers),!Object.prototype.hasOwnProperty.call(b,i.encodingMode))throw new Error(ce("Encoding mode '%1' not supported",i.encodingMode));return l=b[i.encodingMode],i.comments&&(xe=[]),i.wait?v:Be()}v.write=Ve;function Ve(e){return s+=String(e),r=s.length,v}v.end=Be;function Be(e){typeof e<"u"&&Ve(e),s&&s.substr(0,2)==="#!"&&(s=s.replace(/^.*/,function(o){return o.replace(/./g," ")})),r=s.length,U=i.locations||i.ranges,te=we();var t=ct();if(i.comments&&(t.comments=xe),i.scope&&(t.globals=ve),j.length>0)throw new Error("Location tracking failed. This is most likely a bug in luaparse");return t}})});ace.define("ace/mode/lua_worker",[],function(m,y,N){"use strict";var v=m("../lib/oop"),s=m("../worker/mirror").Mirror,i=m("../mode/lua/luaparse"),r=y.Worker=function(n){s.call(this,n),this.setTimeout(500)};v.inherits(r,s),(function(){this.onUpdate=function(){var n=this.doc.getValue(),l=[];try{i.parse(n)}catch(c){c instanceof i.SyntaxError&&l.push({row:c.line-1,column:c.column,text:c.message,type:"error"})}this.sender.emit("annotate",l)}}).call(r.prototype)})});At();})();
//# sourceMappingURL=c224886a075dcbcf9433ec9416f08206.js.map