diff --git a/cmd b/cmd index 79c6c86..468136f 100644 Binary files a/cmd and b/cmd differ diff --git a/dist/index.html b/dist/index.html index 044aabe..9b33fdf 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -
0;)e[r]=e[--r];r!==n++&&(e[r]=i)}return e},merge=function(e,t,i,r){for(var o=t.length,n=i.length,s=0,a=0;s 0;)e[r]=e[--r];r!==n++&&(e[r]=i)}return e},merge=function(e,t,i,r){for(var o=t.length,n=i.length,s=0,a=0;s5){var i=["("+(t.length-5)+" more...)"];(t=t.slice(0,5)).push(i)}e.message="should be equal to one of: "+t.join(", ")}}return"additionalProperties"===e.keyword&&(e.message="should NOT have additional property: "+e.params.additionalProperty),e},t.insideRect=function(e,t,i){var r=void 0!==i?i:0;return t.left-r>=e.left&&t.right+r<=e.right&&t.top-r>=e.top&&t.bottom+r<=e.bottom},t.debounce=function(e,t,i){var r;return function(){var o=this,n=arguments,s=function(){r=null,i||e.apply(o,n)},a=i&&!r;clearTimeout(r),r=setTimeout(s,t),a&&e.apply(o,n)}},t.textDiff=function(e,t){for(var i=t.length,r=0,o=e.length,n=t.length;t.charAt(r)===e.charAt(r)&&rr&&o>0;)n--,o--;return{start:r,end:n}}},function(e,t,i){var r,o,n=(r={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(e,t,i,r,o,n,s){var a=n.length-1;switch(o){case 1:this.$=e.replace(/\\(\\|")/g,"$1").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(e);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=n[a-1];case 13:this.$={};break;case 14:this.$=n[a-1];break;case 15:this.$=[n[a-2],n[a]];break;case 16:this.$={},this.$[n[a][0]]=n[a][1];break;case 17:this.$=n[a-2],n[a-2][n[a][0]]=n[a][1];break;case 18:this.$=[];break;case 19:this.$=n[a-1];break;case 20:this.$=[n[a]];break;case 21:this.$=n[a-2],n[a-2].push(n[a])}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,i=[0],r=[null],o=[],n=this.table,s="",a=0,l=0,c=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var d=this.lexer.yylloc;function h(){var e;return"number"!=typeof(e=t.lexer.lex()||1)&&(e=t.symbols_[e]||e),e}o.push(d),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var u,f,p,m,A,g,y,C,D,v,B={};;){if(p=i[i.length-1],this.defaultActions[p]?m=this.defaultActions[p]:(null==u&&(u=h()),m=n[p]&&n[p][u]),void 0===m||!m.length||!m[0]){if(!c){for(g in D=[],n[p])this.terminals_[g]&&g>2&&D.push("'"+this.terminals_[g]+"'");var w="";w=this.lexer.showPosition?"Parse error on line "+(a+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+D.join(", ")+", got '"+this.terminals_[u]+"'":"Parse error on line "+(a+1)+": Unexpected "+(1==u?"end of input":"'"+(this.terminals_[u]||u)+"'"),this.parseError(w,{text:this.lexer.match,token:this.terminals_[u]||u,line:this.lexer.yylineno,loc:d,expected:D})}if(3==c){if(1==u)throw new Error(w||"Parsing halted.");l=this.lexer.yyleng,s=this.lexer.yytext,a=this.lexer.yylineno,d=this.lexer.yylloc,u=h()}for(;!(2..toString()in n[p]);){if(0==p)throw new Error(w||"Parsing halted.");v=1,i.length=i.length-2*v,r.length=r.length-v,o.length=o.length-v,p=i[i.length-1]}f=u,u=2,m=n[p=i[i.length-1]]&&n[p][2],c=3}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+p+", token: "+u);switch(m[0]){case 1:i.push(u),r.push(this.lexer.yytext),o.push(this.lexer.yylloc),i.push(m[1]),u=null,f?(u=f,f=null):(l=this.lexer.yyleng,s=this.lexer.yytext,a=this.lexer.yylineno,d=this.lexer.yylloc,c>0&&c--);break;case 2:if(y=this.productions_[m[1]][1],B.$=r[r.length-y],B._$={first_line:o[o.length-(y||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(y||1)].first_column,last_column:o[o.length-1].last_column},void 0!==(A=this.performAction.call(B,s,l,a,this.yy,m[1],r,o)))return A;y&&(i=i.slice(0,-1*y*2),r=r.slice(0,-1*y),o=o.slice(0,-1*y)),i.push(this.productions_[m[1]][0]),r.push(B.$),o.push(B._$),C=n[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0}},o=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parseError)throw new Error(e);this.yy.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e,e.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},less:function(e){this._input=this.match.slice(e)+this._input},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,i,r,o;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),s=0;s'+i.map((function(e){return'
",this.dom.validationErrors=o,this.frame.appendChild(o);var s=o.clientHeight;this.content.style.marginBottom=-s+"px",this.content.style.paddingBottom=s+"px"}this.aceEditor&&this.aceEditor.resize(!1)},e.exports=[{mode:"text",mixin:s,data:"text",load:s.format},{mode:"code",mixin:s,data:"text",load:s.format}]},function(e,t,i){var r=i(64);i(67),i(69),e.exports=r},function(e,t,i){!function(){var e=function(){return this}();e||"undefined"==typeof window||(e=window);var t=function e(t,i,r){"string"==typeof t?(2==arguments.length&&(r=i),e.modules[t]||(e.payloads[t]=r,e.modules[t]=null)):e.original?e.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};t.modules={},t.payloads={};var i,r,o=function(e,t,i){if("string"==typeof t){var r=a(e,t);if(null!=r)return i&&i(),r}else if("[object Array]"===Object.prototype.toString.call(t)){for(var o=[],s=0,l=t.length;s "})).join("")+"'+("string"==typeof e?' ":"'+e+"
"+e.dataPath+" "+e.message+" ")+"
"),c.setHtml(o),c.show(),s.on("mousewheel",d),e.$tooltipFollowsMouse)h(i);else{var u=i.domEvent.target.getBoundingClientRect(),f=c.getElement().style;f.left=u.right+"px",f.top=u.bottom+"px"}}():d()}),50))})),n.addListener(s.renderer.$gutter,"mouseout",(function(e){i=null,o&&!t&&(t=setTimeout((function(){t=null,d()}),50))})),s.on("changeSession",d)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,i){var r=e("../lib/event"),o=e("../lib/useragent"),n=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){r.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){r.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return r.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=o.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(n.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,i){var r=e("../lib/dom"),o=e("../lib/event"),n=e("../lib/useragent");function s(e){var t=e.editor,i=r.createElement("img");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",n.isOpera&&(i.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;"),["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(t){e[t]=this[t]}),this),t.addEventListener("mousedown",this.onMouseDown.bind(e));var s,l,c,d,h,u,f,p,m,A,g,y=t.container,C=0;function D(){var e=u;(function(e,i){var r=Date.now(),o=!i||e.row!=i.row,n=!i||e.column!=i.column;!A||o||n?(t.$blockScrolling+=1,t.moveCursorToPosition(e),t.$blockScrolling-=1,A=r,g={x:l,y:c}):a(g.x,g.y,l,c)>5?A=null:r-A>=200&&(t.renderer.scrollCursorIntoView(),A=null)})(u=t.renderer.screenToTextCoordinates(l,c),e),function(e,i){var r=Date.now(),o=t.renderer.layerConfig.lineHeight,n=t.renderer.layerConfig.characterWidth,s=t.renderer.scroller.getBoundingClientRect(),a={x:{left:l-s.left,right:s.right-l},y:{top:c-s.top,bottom:s.bottom-c}},d=Math.min(a.x.left,a.x.right),h=Math.min(a.y.top,a.y.bottom),u={row:e.row,column:e.column};d/n<=2&&(u.column+=a.x.leftf+1)break;f=p.last}for(d--,a=this.session.$moveLines(u,f,t?0:e),t&&-1==e&&(h=d+1);h<=d;)s[h].moveBy(a,0),h++;t||(a=0),l+=a}o.fromOrientedRange(o.ranges[0]),o.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var i=this.renderer,r=this.renderer.layerConfig,o=e*Math.floor(r.height/r.lineHeight);this.$blockScrolling++,!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(o,0)})):!1===t&&(this.selection.moveCursorBy(o,0),this.selection.clearSelection()),this.$blockScrolling--;var n=i.scrollTop;i.scrollBy(0,o*r.lineHeight),null!=t&&i.scrollCursorIntoView(null,.5),i.animateScrolling(n)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,i,r){this.renderer.scrollToLine(e,t,i,r)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var i=this.getCursorPosition(),r=new y(this.session,i.row,i.column),o=r.getCurrentToken(),n=o||r.stepForward();if(n){var s,a,l=!1,c={},d=i.column-n.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(n.value.match(/[{}()\[\]]/g)){for(;d1){var e=this.rangeList.ranges,t=e[e.length-1],i=o.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(i,t.cursor==t.start)}else{var r=this.session.documentToScreenPosition(this.selectionLead),n=this.session.documentToScreenPosition(this.selectionAnchor);this.rectangularRangeBlock(r,n).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,i){var r=[],n=e.column
"),f.appendChild(o.createElement("div"));var A=function(e,t,i){if(0===t&&("esc"===i||"return"===i))return u.destroy(),{command:"null"}};u.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(A),i.widgetManager.removeLineWidget(u),e.off("changeSelection",u.destroy),e.off("changeSession",u.destroy),e.off("mouseup",u.destroy),e.off("change",u.destroy))},e.keyBinding.addKeyboardHandler(A),e.on("changeSelection",u.destroy),e.on("changeSession",u.destroy),e.on("mouseup",u.destroy),e.on("change",u.destroy),e.session.widgetManager.addLineWidget(u),u.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:u.el.offsetHeight})},o.importCssString("\t .error_widget_wrapper {\t background: inherit;\t color: inherit;\t border:none\t }\t .error_widget {\t border-top: solid 2px;\t border-bottom: solid 2px;\t margin: 5px 0;\t padding: 10px 40px;\t white-space: pre-wrap;\t }\t .error_widget.ace_error, .error_widget_arrow.ace_error{\t border-color: #ff5a5a\t }\t .error_widget.ace_warning, .error_widget_arrow.ace_warning{\t border-color: #F1D817\t }\t .error_widget.ace_info, .error_widget_arrow.ace_info{\t border-color: #5a5a5a\t }\t .error_widget.ace_ok, .error_widget_arrow.ace_ok{\t border-color: #5aaa5a\t }\t .error_widget_arrow {\t position: absolute;\t border: solid 5px;\t border-top-color: transparent!important;\t border-right-color: transparent!important;\t border-left-color: transparent!important;\t top: -5px;\t }\t","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,i){e("./lib/fixoldbrowsers");var r=e("./lib/dom"),o=e("./lib/event"),n=e("./editor").Editor,s=e("./edit_session").EditSession,a=e("./undomanager").UndoManager,l=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.acequire=e,t.edit=function(e){if("string"==typeof e){var i=e;if(!(e=document.getElementById(i)))throw new Error("ace.edit can't find div #"+i)}if(e&&e.env&&e.env.editor instanceof n)return e.env.editor;var s="";if(e&&/input|textarea/i.test(e.tagName)){var a=e;s=a.value,e=r.createElement("pre"),a.parentNode.replaceChild(e,a)}else e&&(s=r.getInnerText(e),e.innerHTML="");var c=t.createEditSession(s),d=new n(new l(e));d.setSession(c);var h={document:c,editor:d,onResize:d.resize.bind(d,null)};return a&&(h.textarea=a),o.addListener(window,"resize",h.onResize),d.on("destroy",(function(){o.removeListener(window,"resize",h.onResize),h.editor.container.env=null})),d.container.env=d.env=h,d},t.createEditSession=function(e,t){var i=new s(e,t);return i.setUndoManager(new a),i},t.EditSession=s,t.UndoManager=a,t.version="1.2.3"})),ace.acequire(["ace/ace"],(function(e){for(var t in e&&e.config.init(!0),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t])})),e.exports=window.ace.acequire("ace/ace")},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){(function(t){e.exports=function(){if(t.Blob)try{return new Blob(["asdf"],{type:"text/plain"}),Blob}catch(e){}var e=t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder;return function(t,i){var r=new e,o=i.endings,n=i.type;if(o)for(var s=0,a=t.length;s-1},f.recordAutoInsert=function(e,t,i){var o=e.getCursorPosition(),n=t.doc.getLine(o.row);this.isAutoInsertedClosing(o,n,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=o.row,r.autoInsertedLineEnd=i+n.substr(o.column),r.autoInsertedBrackets++},f.recordMaybeInsert=function(e,t,i){var o=e.getCursorPosition(),n=t.doc.getLine(o.row);this.isMaybeInsertedClosing(o,n)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=o.row,r.maybeInsertedLineStart=n.substr(0,o.column)+i,r.maybeInsertedLineEnd=n.substr(o.column),r.maybeInsertedBrackets++},f.isAutoInsertedClosing=function(e,t,i){return r.autoInsertedBrackets>0&&e.row===r.autoInsertedRow&&i===r.autoInsertedLineEnd[0]&&t.substr(e.column)===r.autoInsertedLineEnd},f.isMaybeInsertedClosing=function(e,t){return r.maybeInsertedBrackets>0&&e.row===r.maybeInsertedRow&&t.substr(e.column)===r.maybeInsertedLineEnd&&t.substr(0,e.column)==r.maybeInsertedLineStart},f.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},f.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},o.inherits(f,n),t.CstyleBehaviour=f})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,i){var r=e("../../lib/oop"),o=e("../../range").Range,n=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(s,n),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,i){var r=e.getLine(i);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var o=this._getFoldWidgetBase(e,t,i);return!o&&this.startRegionRe.test(r)?"start":o},this.getFoldWidgetRange=function(e,t,i,r){var o,n=e.getLine(i);if(this.startRegionRe.test(n))return this.getCommentRegionBlock(e,n,i);if(o=n.match(this.foldingStartMarker)){var s=o.index;if(o[1])return this.openingBracketBlock(e,o[1],i,s);var a=e.getCommentFoldRange(i,s+o[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,i):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(o=n.match(this.foldingStopMarker))?(s=o.index+o[0].length,o[1]?this.closingBracketBlock(e,o[1],i,s):e.getCommentFoldRange(i,s,-1)):void 0},this.getSectionRange=function(e,t){for(var i=e.getLine(t),r=i.search(/\S/),n=t,s=i.length,a=t+=1,l=e.getLength();++to)return NaN;return parseInt(n,r)}return+c};if(isForced_1(NUMBER,!NativeNumber(\" 0o1\")||!NativeNumber(\"0b1\")||NativeNumber(\"+0x1\"))){for(var NumberWrapper=function(e){var t=arguments.length<1?0:NativeNumber(toNumeric(e)),i=this;return objectIsPrototypeOf(NumberPrototype,i)&&fails((function(){thisNumberValue(i)}))?inheritIfRequired(Object(t),i,NumberWrapper):t},keys=descriptors?getOwnPropertyNames$1(NativeNumber):\"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range\".split(\",\"),j=0,key;keys.length>j;j++)hasOwnProperty_1(NativeNumber,key=keys[j])&&!hasOwnProperty_1(NumberWrapper,key)&&defineProperty$1(NumberWrapper,key,getOwnPropertyDescriptor$2(NativeNumber,key));NumberWrapper.prototype=NumberPrototype,NumberPrototype.constructor=NumberWrapper,redefine(global_1,NUMBER,NumberWrapper)}var quot=/\"/g,replace$3=functionUncurryThis(\"\".replace),createHtml=function(e,t,i,r){var o=toString_1(requireObjectCoercible(e)),n=\"<\"+t;return\"\"!==i&&(n+=\" \"+i+'=\"'+replace$3(toString_1(r),quot,\""\")+'\"'),n+\">\"+o+\"\"+t+\">\"},stringHtmlForced=function(e){return fails((function(){var t=\"\"[e]('\"');return t!==t.toLowerCase()||t.split('\"').length>3}))};_export({target:\"String\",proto:!0,forced:stringHtmlForced(\"anchor\")},{anchor:function(e){return createHtml(this,\"a\",\"name\",e)}});var webkit=engineUserAgent.match(/AppleWebKit\\/(\\d+)\\./),engineWebkitVersion=!!webkit&&+webkit[1],objectPrototypeAccessorsForced=!fails((function(){if(!(engineWebkitVersion&&engineWebkitVersion<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete global_1[e]}}));descriptors&&_export({target:\"Object\",proto:!0,forced:objectPrototypeAccessorsForced},{__defineGetter__:function(e,t){objectDefineProperty.f(toObject(this),e,{get:aCallable(t),enumerable:!0,configurable:!0})}}),descriptors&&_export({target:\"Object\",proto:!0,forced:objectPrototypeAccessorsForced},{__defineSetter__:function(e,t){objectDefineProperty.f(toObject(this),e,{set:aCallable(t),enumerable:!0,configurable:!0})}});var getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f;descriptors&&_export({target:\"Object\",proto:!0,forced:objectPrototypeAccessorsForced},{__lookupGetter__:function(e){var t,i=toObject(this),r=toPropertyKey(e);do{if(t=getOwnPropertyDescriptor$1(i,r))return t.get}while(i=objectGetPrototypeOf(i))}});var getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f;descriptors&&_export({target:\"Object\",proto:!0,forced:objectPrototypeAccessorsForced},{__lookupSetter__:function(e){var t,i=toObject(this),r=toPropertyKey(e);do{if(t=getOwnPropertyDescriptor(i,r))return t.set}while(i=objectGetPrototypeOf(i))}});var nativeGetOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,FAILS_ON_PRIMITIVES$7=fails((function(){nativeGetOwnPropertyDescriptor(1)})),FORCED$1=!descriptors||FAILS_ON_PRIMITIVES$7;_export({target:\"Object\",stat:!0,forced:FORCED$1,sham:!descriptors},{getOwnPropertyDescriptor:function(e,t){return nativeGetOwnPropertyDescriptor(toIndexedObject(e),t)}});var getOwnPropertyNames=objectGetOwnPropertyNamesExternal.f,FAILS_ON_PRIMITIVES$6=fails((function(){return!Object.getOwnPropertyNames(1)}));_export({target:\"Object\",stat:!0,forced:FAILS_ON_PRIMITIVES$6},{getOwnPropertyNames:getOwnPropertyNames});var arrayBufferNonExtensible=fails((function(){if(\"function\"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,\"a\",{value:8})}})),$isExtensible=Object.isExtensible,FAILS_ON_PRIMITIVES$5=fails((function(){$isExtensible(1)})),objectIsExtensible=FAILS_ON_PRIMITIVES$5||arrayBufferNonExtensible?function(e){return!!isObject(e)&&((!arrayBufferNonExtensible||\"ArrayBuffer\"!=classofRaw(e))&&(!$isExtensible||$isExtensible(e)))}:$isExtensible,freezing=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))})),internalMetadata=createCommonjsModule((function(e){var t=objectDefineProperty.f,i=!1,r=uid(\"meta\"),o=0,n=function(e){t(e,r,{value:{objectID:\"O\"+o++,weakData:{}}})},s=e.exports={enable:function(){s.enable=function(){},i=!0;var e=objectGetOwnPropertyNames.f,t=functionUncurryThis([].splice),o={};o[r]=1,e(o).length&&(objectGetOwnPropertyNames.f=function(i){for(var o=e(i),n=0,s=o.length;n1?arguments[1]:void 0)}}),addToUnscopables(FIND);var RangeError$3=global_1.RangeError,stringRepeat=function(e){var t=toString_1(requireObjectCoercible(this)),i=\"\",r=toIntegerOrInfinity(e);if(r<0||r==1/0)throw RangeError$3(\"Wrong number of repetitions\");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(i+=t);return i},RangeError$2=global_1.RangeError,String$1=global_1.String,floor$3=Math.floor,repeat=functionUncurryThis(stringRepeat),stringSlice$2=functionUncurryThis(\"\".slice),un$ToFixed=functionUncurryThis(1..toFixed),pow$1=function(e,t,i){return 0===t?i:t%2==1?pow$1(e,t-1,i*e):pow$1(e*e,t/2,i)},log=function(e){for(var t=0,i=e;i>=4096;)t+=12,i/=4096;for(;i>=2;)t+=1,i/=2;return t},multiply=function(e,t,i){for(var r=-1,o=i;++r<6;)o+=t*e[r],e[r]=o%1e7,o=floor$3(o/1e7)},divide=function(e,t){for(var i=6,r=0;--i>=0;)r+=e[i],e[i]=floor$3(r/t),r=r%t*1e7},dataToString=function(e){for(var t=6,i=\"\";--t>=0;)if(\"\"!==i||0===t||0!==e[t]){var r=String$1(e[t]);i=\"\"===i?r:i+repeat(\"0\",7-r.length)+r}return i},FORCED=fails((function(){return\"0.000\"!==un$ToFixed(8e-5,3)||\"1\"!==un$ToFixed(.9,0)||\"1.25\"!==un$ToFixed(1.255,2)||\"1000000000000000128\"!==un$ToFixed(0xde0b6b3a7640080,0)}))||!fails((function(){un$ToFixed({})}));_export({target:\"Number\",proto:!0,forced:FORCED},{toFixed:function(e){var t,i,r,o,n=thisNumberValue(this),s=toIntegerOrInfinity(e),a=[0,0,0,0,0,0],l=\"\",c=\"0\";if(s<0||s>20)throw RangeError$2(\"Incorrect fraction digits\");if(n!=n)return\"NaN\";if(n<=-1e21||n>=1e21)return String$1(n);if(n<0&&(l=\"-\",n=-n),n>1e-21)if(i=(t=log(n*pow$1(2,69,1))-69)<0?n*pow$1(2,-t,1):n/pow$1(2,t,1),i*=4503599627370496,(t=52-t)>0){for(multiply(a,0,i),r=s;r>=7;)multiply(a,1e7,0),r-=7;for(multiply(a,pow$1(10,r,1),0),r=t-1;r>=23;)divide(a,1<<23),r-=23;divide(a,1<