web-interface.assets.af1635b600efd13f6059eb6ac9deae12.js Maven / Gradle / Ivy
"no use strict";(()=>{var At=(m,y)=>()=>(y||m((y={exports:{}}).exports,y),y.exports);var wt=At(He=>{(function(m){if(typeof m.window<"u"&&m.document||m.require&&m.define)return;m.console||(m.console=function(){var a=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:a})},m.console.error=m.console.warn=m.console.log=m.console.trace=m.console),m.window=m,m.ace=m,m.onerror=function(a,r,n,s,l){postMessage({type:"error",data:{message:a,data:l&&l.data,file:r,line:n,col:s,stack:l&&l.stack}})},m.normalizeModule=function(a,r){if(r.indexOf("!")!==-1){var n=r.split("!");return m.normalizeModule(a,n[0])+"!"+m.normalizeModule(a,n[1])}if(r.charAt(0)=="."){var s=a.split("/").slice(0,-1).join("/");for(r=(s?s+"/":"")+r;r.indexOf(".")!==-1&&l!=r;){var l=r;r=r.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return r},m.require=function(r,n){if(n||(n=r,r=null),!n.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");n=m.normalizeModule(r,n);var s=m.require.modules[n];if(s)return s.initialized||(s.initialized=!0,s.exports=s.factory().exports),s.exports;if(!m.require.tlns)return console.log("unable to load "+n);var l=y(n,m.require.tlns);return l.slice(-3)!=".js"&&(l+=".js"),m.require.id=n,m.require.modules[n]={},importScripts(l),m.require(r,n)};function y(a,r){for(var n=a,s="";n;){var l=r[n];if(typeof l=="string")return l+s;if(l)return l.location.replace(/\/*$/,"/")+(s||l.main||l.name);if(l===!1)return"";var c=n.lastIndexOf("/");if(c===-1)break;s=n.substr(c)+s,n=n.slice(0,c)}return a}m.require.modules={},m.require.tlns={},m.define=function(a,r,n){if(arguments.length==2?(n=r,typeof a!="string"&&(r=a,a=m.require.id)):arguments.length==1&&(n=a,r=[],a=m.require.id),typeof n!="function"){m.require.modules[a]={exports:n,initialized:!0};return}r.length||(r=["require","exports","module"]);var s=function(l){return m.require(a,l)};m.require.modules[a]={exports:{},factory:function(){var l=this,c=n.apply(this,r.slice(0,n.length).map(function(i){switch(i){case"require":return s;case"exports":return l.exports;case"module":return l;default:return s(i)}}));return c&&(l.exports=c),l}}},m.define.amd={},m.require.tlns={},m.initBaseUrls=function(r){for(var n in r)this.require.tlns[n]=r[n]},m.initSender=function(){var r=m.require("ace/lib/event_emitter").EventEmitter,n=m.require("ace/lib/oop"),s=function(){};return function(){n.implement(this,r),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(s.prototype),new s};var N=m.main=null,v=m.sender=null;m.onmessage=function(a){var r=a.data;if(r.event&&v)v._signal(r.event,r.data);else if(r.command)if(N[r.command])N[r.command].apply(N,r.args);else if(m[r.command])m[r.command].apply(m,r.args);else throw new Error("Unknown command:"+r.command);else if(r.init){m.initBaseUrls(r.tlns),v=m.sender=m.initSender();var n=this.require(r.module)[r.classname];N=m.main=new n(v)}}})(He);ace.define("ace/lib/oop",[],function(m,y,N){"use strict";y.inherits=function(v,a){v.super_=a,v.prototype=Object.create(a.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}})},y.mixin=function(v,a){for(var r in a)v[r]=a[r];return v},y.implement=function(v,a){y.mixin(v,a)}});ace.define("ace/apply_delta",[],function(m,y,N){"use strict";function v(n,s){throw console.log("Invalid Delta:",n),"Invalid Delta: "+s}function a(n,s){return s.row>=0&&s.row=0&&s.column<=n[s.row].length}function r(n,s){s.action!="insert"&&s.action!="remove"&&v(s,"delta.action must be 'insert' or 'remove'"),s.lines instanceof Array||v(s,"delta.lines must be an Array"),(!s.start||!s.end)&&v(s,"delta.start/end must be an present");var l=s.start;a(n,s.start)||v(s,"delta.start must be contained in document");var c=s.end;s.action=="remove"&&!a(n,c)&&v(s,"delta.end must contained in document for 'remove' actions");var i=c.row-l.row,f=c.column-(i==0?l.column:0);(i!=s.lines.length-1||s.lines[i].length!=f)&&v(s,"delta.range must match delta lines")}y.applyDelta=function(n,s,l){var c=s.start.row,i=s.start.column,f=n[c]||"";switch(s.action){case"insert":var g=s.lines;if(g.length===1)n[c]=f.substring(0,i)+s.lines[0]+f.substring(i);else{var b=[c,1].concat(s.lines);n.splice.apply(n,b),n[c]=f.substring(0,i)+n[c],n[c+s.lines.length-1]+=f.substring(i)}break;case"remove":var L=s.end.column,D=s.end.row;c===D?n[c]=f.substring(0,i)+f.substring(L):n.splice(c,D-c+1,f.substring(0,i)+n[D].substring(L));break}}});ace.define("ace/lib/event_emitter",[],function(m,y,N){"use strict";var v={},a=function(){this.propagationStopped=!0},r=function(){this.defaultPrevented=!0};v._emit=v._dispatchEvent=function(n,s){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var l=this._eventRegistry[n]||[],c=this._defaultHandlers[n];if(!(!l.length&&!c)){(typeof s!="object"||!s)&&(s={}),s.type||(s.type=n),s.stopPropagation||(s.stopPropagation=a),s.preventDefault||(s.preventDefault=r),l=l.slice();for(var i=0;i ["+this.end.row+"/"+this.end.column+"]"},a.prototype.contains=function(r,n){return this.compare(r,n)==0},a.prototype.compareRange=function(r){var n,s=r.end,l=r.start;return n=this.compare(s.row,s.column),n==1?(n=this.compare(l.row,l.column),n==1?2:n==0?1:0):n==-1?-2:(n=this.compare(l.row,l.column),n==-1?-1:n==1?42:0)},a.prototype.comparePoint=function(r){return this.compare(r.row,r.column)},a.prototype.containsRange=function(r){return this.comparePoint(r.start)==0&&this.comparePoint(r.end)==0},a.prototype.intersects=function(r){var n=this.compareRange(r);return n==-1||n==0||n==1},a.prototype.isEnd=function(r,n){return this.end.row==r&&this.end.column==n},a.prototype.isStart=function(r,n){return this.start.row==r&&this.start.column==n},a.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)},a.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)},a.prototype.inside=function(r,n){return this.compare(r,n)==0?!(this.isEnd(r,n)||this.isStart(r,n)):!1},a.prototype.insideStart=function(r,n){return this.compare(r,n)==0?!this.isEnd(r,n):!1},a.prototype.insideEnd=function(r,n){return this.compare(r,n)==0?!this.isStart(r,n):!1},a.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},a.prototype.compareStart=function(r,n){return this.start.row==r&&this.start.column==n?-1:this.compare(r,n)},a.prototype.compareEnd=function(r,n){return this.end.row==r&&this.end.column==n?1:this.compare(r,n)},a.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)},a.prototype.clipRows=function(r,n){if(this.end.row>n)var s={row:n+1,column:0};else if(this.end.rown)var l={row:n+1,column:0};else if(this.start.rowthis.row)){var i=s(c,{row:this.row,column:this.column},this.$insertRight);this.setPosition(i.row,i.column,!0)}},l.prototype.setPosition=function(c,i,f){var g;if(f?g={row:c,column:i}:g=this.$clipPositionToDocument(c,i),!(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,i){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,i))),i<0&&(f.column=0),f},l}();r.prototype.$insertRight=!1,v.implement(r.prototype,a);function n(l,c,i){var f=i?l.column<=c.column:l.column=g&&(i=g-1,f=void 0);var b=this.getLine(i);return f==null&&(f=b.length),f=Math.min(Math.max(f,0),b.length),{row:i,column:f}},c.prototype.clonePos=function(i){return{row:i.row,column:i.column}},c.prototype.pos=function(i,f){return{row:i,column:f}},c.prototype.$clipPosition=function(i){var f=this.getLength();return i.row>=f?(i.row=Math.max(0,f-1),i.column=this.getLine(f-1).length):(i.row=Math.max(0,i.row),i.column=Math.min(Math.max(i.column,0),this.getLine(i.row).length)),i},c.prototype.insertFullLines=function(i,f){i=Math.min(Math.max(i,0),this.getLength());var g=0;i0,b=f=0&&this.applyDelta({start:this.pos(i,this.getLine(i).length),end:this.pos(i+1,0),action:"remove",lines:["",""]})},c.prototype.replace=function(i,f){if(i instanceof n||(i=n.fromPoints(i.start,i.end)),f.length===0&&i.isEmpty())return i.start;if(f==this.getTextRange(i))return i.end;this.remove(i);var g;return f?g=this.insert(i.start,f):g=i.start,g},c.prototype.applyDeltas=function(i){for(var f=0;f=0;f--)this.revertDelta(i[f])},c.prototype.applyDelta=function(i,f){var g=i.action=="insert";(g?i.lines.length<=1&&!i.lines[0]:!n.comparePoints(i.start,i.end))||(g&&i.lines.length>2e4?this.$splitAndapplyLargeDelta(i,2e4):(a(this.$lines,i,f),this._signal("change",i)))},c.prototype.$safeApplyDelta=function(i){var f=this.$lines.length;(i.action=="remove"&&i.start.row0;)n&1&&(s+=r),(n>>=1)&&(r+=r);return s};var v=/^\s\s*/,a=/\s\s*$/;y.stringTrimLeft=function(r){return r.replace(v,"")},y.stringTrimRight=function(r){return r.replace(a,"")},y.copyObject=function(r){var n={};for(var s in r)n[s]=r[s];return n},y.copyArray=function(r){for(var n=[],s=0,l=r.length;s65535?2:1}});ace.define("ace/worker/mirror",[],function(m,y,N){"use strict";var v=m("../document").Document,a=m("../lib/lang"),r=y.Mirror=function(n){this.sender=n;var s=this.doc=new v(""),l=this.deferredUpdate=a.delayedCall(this.onUpdate.bind(this)),c=this;n.on("change",function(i){var f=i.data;if(f[0].start)s.applyDeltas(f);else for(var g=0;g=s.$lines.length)throw L=new Error("Invalid delta"),L.data={path:c.$path,linesLength:s.$lines.length,start:b.start,end:b.end},L;s.applyDelta(b,!0)}if(c.$timeout)return l.schedule(c.$timeout);c.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(n){this.$timeout=n},this.setValue=function(n){this.doc.setValue(n),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(n){this.sender.callback(this.doc.getValue(),n)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(r.prototype)});ace.define("ace/mode/lua/luaparse",[],function(m,y,N){(function(v,a,r){r(y)})(this,"luaparse",function(v){"use strict";v.version="0.3.1";var a,r,n,s,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 i(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 i(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 A=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 r.onCreateNode&&r.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=a.slice(e.range[0],e.range[1]);return t||e.value}function ee(e,t){w(t,A.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 w(e,A.unexpected,"symbol","nil",t);case L:return w(e,A.unexpectedEOF)}return w(e,A.unexpected,o,le(e),t)}return w(e,A.unexpected,"symbol",e,t)}var u,d,G,te,xe,T,R,V;v.lex=Ae;function Ae(){for(we();a.charCodeAt(u)===45&&a.charCodeAt(u+1)===45;)rt(),we();if(u>=n)return{type:L,value:"",line:R,lineStart:V,range:[u,u]};var e=a.charCodeAt(u),t=a.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?a.charCodeAt(u+2)===46?We():F(".."):F(".");case 61:return F(t===61?"==":"=");case 62:return s.bitwiseOperators&&t===62?F(">>"):F(t===61?">=":">");case 60:return s.bitwiseOperators&&t===60?F("<<"):F(t===61?"<=":"<");case 126:if(t===61)return F("~=");if(!s.bitwiseOperators)break;return F("~");case 58:return s.labels&&t===58?F("::"):F(":");case 91:return t===91||t===61?Je():F("[");case 47:return s.integerDivision&&t===47?F("//"):F("/");case 38:case 124:if(!s.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(a.charAt(u))}return fe(a.charAt(u))}function ge(){var e=a.charCodeAt(u),t=a.charCodeAt(u+1);return pe(e)?(e===10&&t===13&&++u,e===13&&t===10&&++u,++R,V=++u,!0):!1}function we(){for(;un||pe(S))&&(h+=a.slice(p,u-1),w(null,A.unfinishedString,a.slice(T,u-1))),S===92){if(!l.discardStrings){var k=a.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(a.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&&w(d,A.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=a.charAt(u),t=a.charAt(u+1),o=e==="0"&&"xX".indexOf(t||null)>=0?Ye():Ze(),p=Qe(),h=Xe();return h&&(p||o.hasFractionPart)&&w(null,A.malformedNumber,a.slice(T,u)),{type:H,value:o.value,line:R,lineStart:V,range:[T,u]}}function Qe(){if(s.imaginaryNumbers)return"iI".indexOf(a.charAt(u)||null)>=0?(++u,!0):!1}function Xe(){if(s.integerSuffixes){if("uU".indexOf(a.charAt(u)||null)>=0)if(++u,"lL".indexOf(a.charAt(u)||null)>=0){if(++u,"lL".indexOf(a.charAt(u)||null)>=0)return++u,"ULL";w(null,A.malformedNumber,a.slice(T,u))}else w(null,A.malformedNumber,a.slice(T,u));else if("lL".indexOf(a.charAt(u)||null)>=0){if(++u,"lL".indexOf(a.charAt(u)||null)>=0)return++u,"LL";w(null,A.malformedNumber,a.slice(T,u))}}}function Ye(){var e=0,t=1,o=1,p,h,S,k;for(k=u+=2,re(a.charCodeAt(u))||w(null,A.malformedNumber,a.slice(T,u));re(a.charCodeAt(u));)++u;p=parseInt(a.slice(k,u),16);var C=!1;if(a.charAt(u)==="."){for(C=!0,h=++u;re(a.charCodeAt(u));)++u;e=a.slice(h,u),e=h===u?0:parseInt(e,16)/Math.pow(16,u-h)}var de=!1;if("pP".indexOf(a.charAt(u)||null)>=0){for(de=!0,++u,"+-".indexOf(a.charAt(u)||null)>=0&&(o=a.charAt(u++)==="+"?1:-1),S=u,Y(a.charCodeAt(u))||w(null,A.malformedNumber,a.slice(T,u));Y(a.charCodeAt(u));)++u;t=a.slice(S,u),t=Math.pow(2,t*o)}return{value:(p+e)*t,hasFractionPart:C||de}}function Ze(){for(;Y(a.charCodeAt(u));)++u;var e=!1;if(a.charAt(u)===".")for(e=!0,++u;Y(a.charCodeAt(u));)++u;var t=!1;if("eE".indexOf(a.charAt(u)||null)>=0)for(t=!0,++u,"+-".indexOf(a.charAt(u)||null)>=0&&++u,Y(a.charCodeAt(u))||w(null,A.malformedNumber,a.slice(T,u));Y(a.charCodeAt(u));)++u;return{value:parseFloat(a.slice(T,u)),hasFractionPart:e||t}}function et(){var e=u++;for(a.charAt(u++)!=="{"&&w(null,A.braceExpected,"{","\\"+a.slice(e,u)),re(a.charCodeAt(u))||w(null,A.hexadecimalDigitExpected,"\\"+a.slice(e,u));a.charCodeAt(u)===48;)++u;for(var t=u;re(a.charCodeAt(u));)++u,u-t>6&&w(null,A.tooLargeCodepoint,"\\"+a.slice(e,u));var o=a.charAt(u++);o!=="}"&&(o==='"'||o==="'"?w(null,A.braceExpected,"}","\\"+a.slice(e,u--)):w(null,A.hexadecimalDigitExpected,"\\"+a.slice(e,u)));var p=parseInt(a.slice(t,u-1)||"0",16),h="\\"+a.slice(e,u);return p>1114111&&w(null,A.tooLargeCodepoint,h),l.encodeUTF8(p,h)}function tt(){var e=u;switch(a.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(a.charCodeAt(u))&&u-e<3;)++u;var t=a.slice(e,u),o=parseInt(t,10);return o>255&&w(null,A.decimalEscapeTooLarge,"\\"+o),l.encodeByte(o,"\\"+t);case"z":if(s.skipWhitespaceEscape)return++u,we(),"";break;case"x":if(s.hexEscapes){if(re(a.charCodeAt(u+1))&&re(a.charCodeAt(u+2)))return u+=3,l.encodeByte(parseInt(a.slice(e+1,u),16),"\\"+a.slice(e,u));w(null,A.hexadecimalDigitExpected,"\\"+a.slice(e,u+2))}break;case"u":if(s.unicodeEscapes)return et();break;case"\\":case'"':case"'":return a.charAt(u++)}return s.strictEscapes&&w(null,A.invalidEscape,"\\"+a.slice(e,u+1)),a.charAt(u++)}function rt(){T=u,u+=2;var e=a.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=Ae()}function M(e){return e===d.value?(P(),!0):!1}function O(e){e===d.value?P():w(d,A.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||s.extendedIdentifiers&&e>=128)}function at(e){return!!(e>=65&&e<=90||e>=97&&e<=122||e===95||e>=48&&e<=57||s.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:s.labels&&!s.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),r.onCreateScope&&r.onCreateScope()}function z(){var e=ne.pop();--ie,r.onDestroyScope&&r.onDestroyScope()}function De(e){r.onLocalDeclaration&&r.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){r.locations&&(this.loc={start:{line:e.line,column:e.range[0]-e.lineStart},end:{line:0,column:0}}),r.ranges&&(this.range=[e.range[0],0])}ye.prototype.complete=function(){r.locations&&(this.loc.end.line=G.lastLine||G.line,this.loc.end.column=G.range[1]-(G.lastLineStart||G.lineStart)),r.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&&w(t.token,A.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(),r.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(r.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"),r.scope&&z(),t=t||!1,x(E.functionStatement(e,p,t,S))}function St(){var e,t,o;for(U&&(o=Q()),e=q(),r.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)),r.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(),r.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"(":s.emptyStatement||d.line!==G.line&&w(null,A.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&&w(d,A.cannotUseVararg,d.value),p&t){B(h);var S=a.slice(d.range[0],d.range[1]);return P(),x(E.literal(p,o,S))}else{if($===p&&o==="function")return B(h),P(),r.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={}),a=e||"",r=Ee({},c,t),u=0,R=1,V=0,n=a.length,ne=[[]],ie=0,ve=[],j=[],!Object.prototype.hasOwnProperty.call(qe,r.luaVersion))throw new Error(ce("Lua version '%1' not supported",r.luaVersion));if(s=Ee({},qe[r.luaVersion]),r.extendedIdentifiers!==void 0&&(s.extendedIdentifiers=!!r.extendedIdentifiers),!Object.prototype.hasOwnProperty.call(b,r.encodingMode))throw new Error(ce("Encoding mode '%1' not supported",r.encodingMode));return l=b[r.encodingMode],r.comments&&(xe=[]),r.wait?v:Be()}v.write=Ve;function Ve(e){return a+=String(e),n=a.length,v}v.end=Be;function Be(e){typeof e<"u"&&Ve(e),a&&a.substr(0,2)==="#!"&&(a=a.replace(/^.*/,function(o){return o.replace(/./g," ")})),n=a.length,U=r.locations||r.ranges,te=Ae();var t=ct();if(r.comments&&(t.comments=xe),r.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"),a=m("../worker/mirror").Mirror,r=m("../mode/lua/luaparse"),n=y.Worker=function(s){a.call(this,s),this.setTimeout(500)};v.inherits(n,a),function(){this.onUpdate=function(){var s=this.doc.getValue(),l=[];try{r.parse(s)}catch(c){c instanceof r.SyntaxError&&l.push({row:c.line-1,column:c.column,text:c.message,type:"error"})}this.sender.emit("annotate",l)}}.call(n.prototype)})});wt();})();
//# sourceMappingURL=af1635b600efd13f6059eb6ac9deae12.js.map