All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.5d833ca045603c1105d2db3b9d931274.js Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
!function(e){if(!(void 0!==e.window&&e.document||e.require&&e.define)){e.console||(e.console=function(){var e=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:e})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(e,t,n,r,i){postMessage({type:"error",data:{message:e,data:i&&i.data,file:t,line:n,col:r,stack:i&&i.stack}})},e.normalizeModule=function(t,n){if(-1!==n.indexOf("!")){var r=n.split("!");return e.normalizeModule(t,r[0])+"!"+e.normalizeModule(t,r[1])}if("."==n.charAt(0)){var i=t.split("/").slice(0,-1).join("/");for(n=(i?i+"/":"")+n;-1!==n.indexOf(".")&&o!=n;){var o=n;n=n.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return n},e.require=function(t,n){if(n||(n=t,t=null),!n.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");n=e.normalizeModule(t,n);var r=e.require.modules[n];if(r)return r.initialized||(r.initialized=!0,r.exports=r.factory().exports),r.exports;if(!e.require.tlns)return console.log("unable to load "+n);var i=function(e,t){var n=e,r="";for(;n;){var i=t[n];if("string"==typeof i)return i+r;if(i)return i.location.replace(/\/*$/,"/")+(r||i.main||i.name);if(!1===i)return"";var o=n.lastIndexOf("/");if(-1===o)break;r=n.substr(o)+r,n=n.slice(0,o)}return e}(n,e.require.tlns);return".js"!=i.slice(-3)&&(i+=".js"),e.require.id=n,e.require.modules[n]={},importScripts(i),e.require(t,n)},e.require.modules={},e.require.tlns={},e.define=function(t,n,r){if(2==arguments.length?(r=n,"string"!=typeof t&&(n=t,t=e.require.id)):1==arguments.length&&(r=t,n=[],t=e.require.id),"function"==typeof r){n.length||(n=["require","exports","module"]);var i=function(n){return e.require(t,n)};e.require.modules[t]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map((function(t){switch(t){case"require":return i;case"exports":return e.exports;case"module":return e;default:return i(t)}})));return t&&(e.exports=t),e}}}else e.require.modules[t]={exports:r,initialized:!0}},e.define.amd={},e.require.tlns={},e.initBaseUrls=function(e){for(var t in e)this.require.tlns[t]=e[t]},e.initSender=function(){var t=e.require("ace/lib/event_emitter").EventEmitter,n=e.require("ace/lib/oop"),r=function(){};return function(){n.implement(this,t),this.callback=function(e,t){postMessage({type:"call",id:t,data:e})},this.emit=function(e,t){postMessage({type:"event",name:e,data:t})}}.call(r.prototype),new r};var t=e.main=null,n=e.sender=null;e.onmessage=function(r){var i=r.data;if(i.event&&n)n._signal(i.event,i.data);else if(i.command)if(t[i.command])t[i.command].apply(t,i.args);else{if(!e[i.command])throw new Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),n=e.sender=e.initSender();var o=this.require(i.module)[i.classname];t=e.main=new o(n)}}}}(this),ace.define("ace/lib/oop",[],(function(require,exports,e){"use strict";exports.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},exports.implement=function(e,t){exports.mixin(e,t)}})),ace.define("ace/apply_delta",[],(function(require,exports,e){"use strict";exports.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,o=e[r]||"";switch(t.action){case"insert":if(1===t.lines.length)e[r]=o.substring(0,i)+t.lines[0]+o.substring(i);else{var s=[r,1].concat(t.lines);e.splice.apply(e,s),e[r]=o.substring(0,i)+e[r],e[r+t.lines.length-1]+=o.substring(i)}break;case"remove":var a=t.end.column,c=t.end.row;r===c?e[r]=o.substring(0,i)+o.substring(a):e.splice(r,c-r+1,o.substring(0,i)+e[c].substring(a))}}})),ace.define("ace/lib/event_emitter",[],(function(require,exports,e){"use strict";var t={},n=function(){this.propagationStopped=!0},r=function(){this.defaultPrevented=!0};t._emit=t._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var i=this._eventRegistry[e]||[],o=this._defaultHandlers[e];if(i.length||o){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=n),t.preventDefault||(t.preventDefault=r),i=i.slice();for(var s=0;s ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,r=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(r.row,r.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(r.row,r.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?ethis.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:tthis.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,n){if(this.end.row>n)var r={row:n+1,column:0};else if(this.end.rown)var i={row:n+1,column:0};else if(this.start.rowthis.row)){var n=function(t,n,r){var i="insert"==t.action,o=(i?1:-1)*(t.end.row-t.start.row),s=(i?1:-1)*(t.end.column-t.start.column),a=t.start,c=i?a:t.end;if(e(n,a,r))return{row:n.row,column:n.column};if(e(c,n,!r))return{row:n.row+o,column:n.column+(n.row==c.row?s:0)};return{row:a.row,column:a.column}}(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(r.prototype)})),ace.define("ace/document",[],(function(require,exports,e){"use strict";var t=require("./lib/oop"),n=require("./apply_delta").applyDelta,r=require("./lib/event_emitter").EventEmitter,i=require("./range").Range,o=require("./anchor").Anchor,s=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){t.implement(this,r),this.setValue=function(e){var t=this.getLength()-1;this.remove(new i(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e||"")},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new o(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return null==t&&(t=r.length),{row:e,column:t=Math.min(Math.max(t,0),r.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))0,r=t=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof i||(e=i.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var r="insert"==e.action;(r?e.lines.length<=1&&!e.lines[0]:!i.comparePoints(e.start,e.end))||(r&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(n(this.$lines,e,t),this._signal("change",e)))},this.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var t=/^\s\s*/,n=/\s\s*$/;exports.stringTrimLeft=function(e){return e.replace(t,"")},exports.stringTrimRight=function(e){return e.replace(n,"")},exports.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},exports.copyArray=function(e){for(var t=[],n=0,r=e.length;n=r.$lines.length)throw(a=new Error("Invalid delta")).data={path:o.$path,linesLength:r.$lines.length,start:s.start,end:s.end},a;r.applyDelta(s,!0)}if(o.$timeout)return i.schedule(o.$timeout);o.onUpdate()}))};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(r.prototype)})),ace.define("ace/mode/lua/luaparse",[],(function(require,exports,e){!function(exports){"use strict";var e,t,n,r,i;exports.version="0.3.1";var o=exports.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 s(e,t){return t=t||0,e<128?String.fromCharCode(e):e<2048?String.fromCharCode(192|t|e>>6,128|t|63&e):e<65536?String.fromCharCode(224|t|e>>12,128|t|e>>6&63,128|t|63&e):e<1114112?String.fromCharCode(240|t|e>>18,128|t|e>>12&63,128|t|e>>6&63,128|t|63&e):null}function a(e,t){for(var n=e.toString(16);n.length=128?String.fromCharCode(63232|e):String.fromCharCode(e)},encodeUTF8:function(e){return s(e,63232)}},none:{discardStrings:!0,fixup:function(e){return e},encodeByte:function(e){return""},encodeUTF8:function(e){return""}}},l=1,h=2,p=4,f=8,d=16,m=32,g=64,v=128,w=256;exports.tokenTypes={EOF:l,StringLiteral:h,Keyword:p,Identifier:f,NumericLiteral:d,Punctuator:m,BooleanLiteral:g,NilLiteral:v,VarargLiteral:w};var y=exports.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"},b=exports.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,n,r){return{type:"FunctionDeclaration",identifier:e,isLocal:n,parameters:t,body:r}},forNumericStatement:function(e,t,n,r,i){return{type:"ForNumericStatement",variable:e,start:t,end:n,step:r,body:i}},forGenericStatement:function(e,t,n){return{type:"ForGenericStatement",variables:e,iterators:t,body:n}},chunk:function(e){return{type:"Chunk",body:e}},identifier:function(e){return{type:"Identifier",name:e}},literal:function(e,t,n){return{type:e=e===h?"StringLiteral":e===d?"NumericLiteral":e===g?"BooleanLiteral":e===v?"NilLiteral":"VarargLiteral",value:t,raw:n}},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,n){return{type:"and"===e||"or"===e?"LogicalExpression":"BinaryExpression",operator:e,left:t,right:n}},unaryExpression:function(e,t){return{type:"UnaryExpression",operator:e,argument:t}},memberExpression:function(e,t,n){return{type:"MemberExpression",indexer:t,identifier:n,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(Ee){var n=Ae.pop();n.complete(),n.bless(e)}return t.onCreateNode&&t.onCreateNode(e),e}var L=Array.prototype.slice,S=(Object.prototype.toString,function(e,t){for(var n=0,r=e.length;n=n)return{type:l,value:"",line:_,lineStart:N,range:[A,A]};var t=e.charCodeAt(A),i=e.charCodeAt(A+1);if(O=A,de(t))return K();switch(t){case 39:case 34:return X();case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Y();case 46:return pe(i)?Y():46===i?46===e.charCodeAt(A+2)?J():W(".."):W(".");case 61:return W(61===i?"==":"=");case 62:return r.bitwiseOperators&&62===i?W(">>"):W(61===i?">=":">");case 60:return r.bitwiseOperators&&60===i?W("<<"):W(61===i?"<=":"<");case 126:if(61===i)return W("~=");if(!r.bitwiseOperators)break;return W("~");case 58:return r.labels&&58===i?W("::"):W(":");case 91:return 91===i||61===i?Q():W("[");case 47:return r.integerDivision&&47===i?W("//"):W("/");case 38:case 124:if(!r.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 W(e.charAt(A))}return G(e.charAt(A))}function H(){var t=e.charCodeAt(A),n=e.charCodeAt(A+1);return!!he(t)&&(10===t&&13===n&&++A,13===t&&10===n&&++A,++_,N=++A,!0)}function z(){for(;An||he(t))&&(c+=e.slice(a,A-1),F(null,y.unfinishedString,e.slice(O,A-1))),92===t){if(!i.discardStrings){var u=e.slice(a,A-1);c+=i.fixup(u)}var l=ie();i.discardStrings||(c+=l),a=A}return i.discardStrings||(c+=i.encodeByte(null),c+=i.fixup(e.slice(a,A-1))),{type:h,value:c,line:o,lineStart:s,lastLine:_,lastLineStart:N,range:[O,A]}}function Q(){var e=_,t=N,n=se(!1);return!1===n&&F(k,y.expected,"[",q(k)),{type:h,value:i.discardStrings?null:i.fixup(n),line:e,lineStart:t,lastLine:_,lastLineStart:N,range:[O,A]}}function Y(){var t=e.charAt(A),n=e.charAt(A+1),r="0"===t&&"xX".indexOf(n||null)>=0?te():ne(),i=Z();return ee()&&(i||r.hasFractionPart)&&F(null,y.malformedNumber,e.slice(O,A)),{type:d,value:r.value,line:_,lineStart:N,range:[O,A]}}function Z(){if(r.imaginaryNumbers)return"iI".indexOf(e.charAt(A)||null)>=0&&(++A,!0)}function ee(){if(r.integerSuffixes)if("uU".indexOf(e.charAt(A)||null)>=0)if(++A,"lL".indexOf(e.charAt(A)||null)>=0){if(++A,"lL".indexOf(e.charAt(A)||null)>=0)return++A,"ULL";F(null,y.malformedNumber,e.slice(O,A))}else F(null,y.malformedNumber,e.slice(O,A));else if("lL".indexOf(e.charAt(A)||null)>=0){if(++A,"lL".indexOf(e.charAt(A)||null)>=0)return++A,"LL";F(null,y.malformedNumber,e.slice(O,A))}}function te(){var t,n,r,i,o=0,s=1,a=1;for(i=A+=2,fe(e.charCodeAt(A))||F(null,y.malformedNumber,e.slice(O,A));fe(e.charCodeAt(A));)++A;t=parseInt(e.slice(i,A),16);var c=!1;if("."===e.charAt(A)){for(c=!0,n=++A;fe(e.charCodeAt(A));)++A;o=e.slice(n,A),o=n===A?0:parseInt(o,16)/Math.pow(16,A-n)}var u=!1;if("pP".indexOf(e.charAt(A)||null)>=0){for(u=!0,++A,"+-".indexOf(e.charAt(A)||null)>=0&&(a="+"===e.charAt(A++)?1:-1),r=A,pe(e.charCodeAt(A))||F(null,y.malformedNumber,e.slice(O,A));pe(e.charCodeAt(A));)++A;s=e.slice(r,A),s=Math.pow(2,s*a)}return{value:(t+o)*s,hasFractionPart:c||u}}function ne(){for(;pe(e.charCodeAt(A));)++A;var t=!1;if("."===e.charAt(A))for(t=!0,++A;pe(e.charCodeAt(A));)++A;var n=!1;if("eE".indexOf(e.charAt(A)||null)>=0)for(n=!0,++A,"+-".indexOf(e.charAt(A)||null)>=0&&++A,pe(e.charCodeAt(A))||F(null,y.malformedNumber,e.slice(O,A));pe(e.charCodeAt(A));)++A;return{value:parseFloat(e.slice(O,A)),hasFractionPart:t||n}}function re(){var t=A++;for("{"!==e.charAt(A++)&&F(null,y.braceExpected,"{","\\"+e.slice(t,A)),fe(e.charCodeAt(A))||F(null,y.hexadecimalDigitExpected,"\\"+e.slice(t,A));48===e.charCodeAt(A);)++A;for(var n=A;fe(e.charCodeAt(A));)++A-n>6&&F(null,y.tooLargeCodepoint,"\\"+e.slice(t,A));var r=e.charAt(A++);"}"!==r&&('"'===r||"'"===r?F(null,y.braceExpected,"}","\\"+e.slice(t,A--)):F(null,y.hexadecimalDigitExpected,"\\"+e.slice(t,A)));var o=parseInt(e.slice(n,A-1)||"0",16),s="\\"+e.slice(t,A);return o>1114111&&F(null,y.tooLargeCodepoint,s),i.encodeUTF8(o,s)}function ie(){var t=A;switch(e.charAt(A)){case"a":return++A,"";case"n":return++A,"\n";case"r":return++A,"\r";case"t":return++A,"\t";case"v":return++A,"\v";case"b":return++A,"\b";case"f":return++A,"\f";case"\r":case"\n":return H(),"\n";case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;pe(e.charCodeAt(A))&&A-t<3;)++A;var n=e.slice(t,A),o=parseInt(n,10);return o>255&&F(null,y.decimalEscapeTooLarge,"\\"+o),i.encodeByte(o,"\\"+n);case"z":if(r.skipWhitespaceEscape)return++A,z(),"";break;case"x":if(r.hexEscapes){if(fe(e.charCodeAt(A+1))&&fe(e.charCodeAt(A+2)))return A+=3,i.encodeByte(parseInt(e.slice(t+1,A),16),"\\"+e.slice(t,A));F(null,y.hexadecimalDigitExpected,"\\"+e.slice(t,A+2))}break;case"u":if(r.unicodeEscapes)return re();break;case"\\":case'"':case"'":return e.charAt(A++)}return r.strictEscapes&&F(null,y.invalidEscape,"\\"+e.slice(t,A+1)),e.charAt(A++)}function oe(){O=A,A+=2;var r=e.charAt(A),i="",o=!1,s=A,a=N,c=_;if("["===r&&(!1===(i=se(!0))?i=r:o=!0),!o){for(;A")}function ae(){D=k,k=P,P=B()}function ce(e){return e===k.value&&(ae(),!0)}function ue(e){e===k.value?ae():F(k,y.expected,e,q(k))}function le(e){return 9===e||32===e||11===e||12===e}function he(e){return 10===e||13===e}function pe(e){return e>=48&&e<=57}function fe(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function de(e){return e>=65&&e<=90||e>=97&&e<=122||95===e||!!(r.extendedIdentifiers&&e>=128)}function me(e){return e>=65&&e<=90||e>=97&&e<=122||95===e||e>=48&&e<=57||!!(r.extendedIdentifiers&&e>=128)}function ge(e){switch(e.length){case 2:return"do"===e||"if"===e||"in"===e||"or"===e;case 3:return"and"===e||"end"===e||"for"===e||"not"===e;case 4:return"else"===e||"then"===e||!(!r.labels||r.contextualGoto)&&"goto"===e;case 5:return"break"===e||"local"===e||"until"===e||"while"===e;case 6:return"elseif"===e||"repeat"===e||"return"===e;case 8:return"function"===e}return!1}function ve(e){return m===e.type?"#-~".indexOf(e.value)>=0:p===e.type&&"not"===e.value}function we(e){if(l===e.type)return!0;if(p!==e.type)return!1;switch(e.value){case"else":case"elseif":case"end":case"until":return!0;default:return!1}}function ye(){var e=T[R++].slice();T.push(e),t.onCreateScope&&t.onCreateScope()}function be(){T.pop(),--R,t.onDestroyScope&&t.onDestroyScope()}function xe(e){t.onLocalDeclaration&&t.onLocalDeclaration(e),-1===S(T[R],e)&&T[R].push(e)}function Le(e){xe(e.name),Se(e,!0)}function Se(e,t){t||-1!==C(j,"name",e.name)||j.push(e),e.isLocal=t}function Ce(e){return-1!==S(T[R],e)}Object.assign&&(U=Object.assign),exports.SyntaxError=SyntaxError,exports.lex=B;var Ee,Ae=[];function ke(){return new De(k)}function De(e){t.locations&&(this.loc={start:{line:e.line,column:e.range[0]-e.lineStart},end:{line:0,column:0}}),t.ranges&&(this.range=[e.range[0],0])}function Pe(){Ee&&Ae.push(ke())}function Me(e){Ee&&Ae.push(e)}function Oe(){this.scopes=[],this.pendingGotos=[]}function $e(){this.level=0,this.loopLevels=[]}function _e(){return r.labels?new Oe:new $e}function Ne(){ae(),Pe(),t.scope&&ye();var e=_e();e.allowVararg=!0,e.pushScope();var n=Te(e);return e.popScope(),t.scope&&be(),l!==k.type&&G(k),Ee&&!n.length&&(D=k),x(b.chunk(n))}function Te(e){for(var t,n=[];!we(k);){if("return"===k.value||!r.relaxedBreak&&"break"===k.value){n.push(Re(e));break}t=Re(e),ce(";"),t&&n.push(t)}return n}function Re(e){if(Pe(),m===k.type&&ce("::"))return je(e);if(!r.emptyStatement||!ce(";")){if(e.raiseDeferredErrors(),p===k.type)switch(k.value){case"local":return ae(),ze(e);case"if":return ae(),Be(e);case"return":return ae(),Ge(e);case"function":return ae(),Je(Xe());case"while":return ae(),qe(e);case"for":return ae(),He(e);case"repeat":return ae(),Ve(e);case"break":return ae(),e.isInLoop()||F(k,y.noLoopToBreak,k.value),Ue();case"do":return ae(),Fe(e);case"goto":return ae(),Ie(e)}return r.contextualGoto&&k.type===f&&"goto"===k.value&&P.type===f&&"goto"!==P.value?(ae(),Ie(e)):(Ee&&Ae.pop(),Ke(e))}Ee&&Ae.pop()}function je(e){var n=k,r=We();return t.scope&&(xe("::"+n.value+"::"),Se(r,!0)),ue("::"),e.addLabel(n.value,n),x(b.labelStatement(r))}function Ue(){return x(b.breakStatement())}function Ie(e){var t=k.value,n=D,r=We();return e.addGoto(t,n),x(b.gotoStatement(r))}function Fe(e){t.scope&&ye(),e.pushScope();var n=Te(e);return e.popScope(),t.scope&&be(),ue("end"),x(b.doStatement(n))}function qe(e){var n=Ze(e);ue("do"),t.scope&&ye(),e.pushScope(!0);var r=Te(e);return e.popScope(),t.scope&&be(),ue("end"),x(b.whileStatement(n,r))}function Ve(e){t.scope&&ye(),e.pushScope(!0);var n=Te(e);ue("until"),e.raiseDeferredErrors();var r=Ze(e);return e.popScope(),t.scope&&be(),x(b.repeatStatement(r,n))}function Ge(e){var t=[];if("end"!==k.value){var n=Ye(e);for(null!=n&&t.push(n);ce(",");)n=Ze(e),t.push(n);ce(";")}return x(b.returnStatement(t))}function Be(e){var n,r,i,o=[];for(Ee&&(i=Ae[Ae.length-1],Ae.push(i)),n=Ze(e),ue("then"),t.scope&&ye(),e.pushScope(),r=Te(e),e.popScope(),t.scope&&be(),o.push(x(b.ifClause(n,r))),Ee&&(i=ke());ce("elseif");)Me(i),n=Ze(e),ue("then"),t.scope&&ye(),e.pushScope(),r=Te(e),e.popScope(),t.scope&&be(),o.push(x(b.elseifClause(n,r))),Ee&&(i=ke());return ce("else")&&(Ee&&(i=new De(D),Ae.push(i)),t.scope&&ye(),e.pushScope(),r=Te(e),e.popScope(),t.scope&&be(),o.push(x(b.elseClause(r)))),ue("end"),x(b.ifStatement(o))}function He(e){var n,r=We();if(t.scope&&(ye(),Le(r)),ce("=")){var i=Ze(e);ue(",");var o=Ze(e),s=ce(",")?Ze(e):null;return ue("do"),e.pushScope(!0),n=Te(e),e.popScope(),ue("end"),t.scope&&be(),x(b.forNumericStatement(r,i,o,s,n))}for(var a=[r];ce(",");)r=We(),t.scope&&Le(r),a.push(r);ue("in");var c=[];do{var u=Ze(e);c.push(u)}while(ce(","));return ue("do"),e.pushScope(!0),n=Te(e),e.popScope(),ue("end"),t.scope&&be(),x(b.forGenericStatement(a,c,n))}function ze(e){var n,r=D;if(f===k.type){var i=[],o=[];do{n=We(),i.push(n),e.addLocal(n.name,r)}while(ce(","));if(ce("="))do{var s=Ze(e);o.push(s)}while(ce(","));if(t.scope)for(var a=0,c=i.length;a",k)}function Ke(e){var n,r,i,o,s,a=[];for(Ee&&(r=ke());;){if(Ee&&(n=ke()),f===k.type)s=k.value,o=We(),t.scope&&Se(o,Ce(s)),i=!0;else{if("("!==k.value)return G(k);ae(),o=Ze(e),ue(")"),i=!1}e:for(;;){switch(h===k.type?'"':k.value){case".":case"[":i=!0;break;case":":case"(":case"{":case'"':i=null;break;default:break e}o=nt(o,n,e)}if(a.push(o),","!==k.value)break;if(!i)return G(k);ae()}if(1===a.length&&null===i)return Me(n),x(b.callStatement(a[0]));if(!i)return G(k);ue("=");var c=[];do{c.push(Ze(e))}while(ce(","));return Me(r),x(b.assignmentStatement(a,c))}function We(){Pe();var e=k.value;return f!==k.type&&V("",k),ae(),x(b.identifier(e))}function Je(e,n){var r=_e();r.pushScope();var i=[];if(ue("("),!ce(")"))for(;;){if(f===k.type){var o=We();if(t.scope&&Le(o),i.push(o),ce(","))continue}else w===k.type?(r.allowVararg=!0,i.push(ot(r))):V(" or '...'",k);ue(")");break}var s=Te(r);return r.popScope(),ue("end"),t.scope&&be(),n=n||!1,x(b.functionStatement(e,i,n,s))}function Xe(){var e,n,r;for(Ee&&(r=ke()),e=We(),t.scope&&(Se(e,Ce(e.name)),ye());ce(".");)Me(r),n=We(),e=x(b.memberExpression(e,".",n));return ce(":")&&(Me(r),n=We(),e=x(b.memberExpression(e,":",n)),t.scope&&xe("self")),e}function Qe(e){for(var t,n,r=[];;){if(Pe(),m===k.type&&ce("["))t=Ze(e),ue("]"),ue("="),n=Ze(e),r.push(x(b.tableKey(t,n)));else if(f===k.type)"="===P.value?(t=We(),ae(),n=Ze(e),r.push(x(b.tableKeyString(t,n)))):(n=Ze(e),r.push(x(b.tableValue(n))));else{if(null==(n=Ye(e))){Ae.pop();break}r.push(x(b.tableValue(n)))}if(!(",;".indexOf(k.value)>=0))break;ae()}return ue("}"),x(b.tableConstructorExpression(r))}function Ye(e){return tt(0,e)}function Ze(e){var t=Ye(e);if(null!=t)return t;V("",k)}function et(e){var t=e.charCodeAt(0),n=e.length;if(1===n)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(2===n)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(97===t&&"and"===e)return 2;return 0}function tt(e,t){var n,r,i,o=k.value;if(Ee&&(r=ke()),ve(k)){Pe(),ae();var s=tt(10,t);null==s&&V("",k),n=x(b.unaryExpression(o,s))}if(null==n&&null==(n=ot(t))&&(n=rt(t)),null==n)return null;for(;o=k.value,!(0===(i=m===k.type||p===k.type?et(o):0)||i<=e);){"^"!==o&&".."!==o||--i,ae();var a=tt(i,t);null==a&&V("",k),Ee&&Ae.push(r),n=x(b.binaryExpression(o,n,a))}return n}function nt(e,t,n){var r,i;if(m===k.type)switch(k.value){case"[":return Me(t),ae(),r=Ze(n),ue("]"),x(b.indexExpression(e,r));case".":return Me(t),ae(),i=We(),x(b.memberExpression(e,".",i));case":":return Me(t),ae(),i=We(),e=x(b.memberExpression(e,":",i)),Me(t),it(e,n);case"(":case"{":return Me(t),it(e,n)}else if(h===k.type)return Me(t),it(e,n);return null}function rt(e){var n,r,i;if(Ee&&(i=ke()),f===k.type)r=k.value,n=We(),t.scope&&Se(n,Ce(r));else{if(!ce("("))return null;n=Ze(e),ue(")")}for(;;){var o=nt(n,i,e);if(null===o)break;n=o}return n}function it(e,t){if(m===k.type)switch(k.value){case"(":r.emptyStatement||k.line!==D.line&&F(null,y.ambiguousSyntax,k.value),ae();var n=[],i=Ye(t);for(null!=i&&n.push(i);ce(",");)i=Ze(t),n.push(i);return ue(")"),x(b.callExpression(e,n));case"{":Pe(),ae();var o=Qe(t);return x(b.tableCallExpression(e,o))}else if(h===k.type)return x(b.stringCallExpression(e,ot(t)));V("function arguments",k)}function ot(n){var r,i=h|d|g|v|w,o=k.value,s=k.type;if(Ee&&(r=ke()),s!==w||n.allowVararg||F(k,y.cannotUseVararg,k.value),s&i){Me(r);var a=e.slice(k.range[0],k.range[1]);return ae(),x(b.literal(s,o,a))}return p===s&&"function"===o?(Me(r),ae(),t.scope&&ye(),Je(null)):ce("{")?(Me(r),Qe(n)):void 0}De.prototype.complete=function(){t.locations&&(this.loc.end.line=D.lastLine||D.line,this.loc.end.column=D.range[1]-(D.lastLineStart||D.lineStart)),t.ranges&&(this.range[1]=D.range[1])},De.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]])},Oe.prototype.isInLoop=function(){for(var e=this.scopes.length;e-- >0;)if(this.scopes[e].isLoop)return!0;return!1},Oe.prototype.pushScope=function(e){var t={labels:{},locals:[],deferredGotos:[],isLoop:!!e};this.scopes.push(t)},Oe.prototype.popScope=function(){for(var e=0;e=this.scopes.length&&--t.maxDepth<=0&&F(t.token,y.labelNotVisible,t.target)}this.scopes.pop()},Oe.prototype.addGoto=function(e,t){for(var n=[],r=0;r=this.scopes.length&&o.target===e?o.localCounts[this.scopes.length-1]0)throw new Error("Location tracking failed. This is most likely a bug in luaparse");return i}exports.write=ct,exports.end=ut}(exports)})),ace.define("ace/mode/lua_worker",[],(function(require,exports,e){"use strict";var t=require("../lib/oop"),n=require("../worker/mirror").Mirror,r=require("../mode/lua/luaparse"),i=exports.Worker=function(e){n.call(this,e),this.setTimeout(500)};t.inherits(i,n),function(){this.onUpdate=function(){var e=this.doc.getValue(),t=[];try{r.parse(e)}catch(e){e instanceof r.SyntaxError&&t.push({row:e.line-1,column:e.column,text:e.message,type:"error"})}this.sender.emit("annotate",t)}}.call(i.prototype)}));




© 2015 - 2024 Weber Informatics LLC | Privacy Policy