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

ber-security.graylog.graylog-plugin-correlation-count.5.1.1.source-code.d7160f95-735.3610b4bd0e41c407c113.js Maven / Gradle / Ivy

There is a newer version: 6.1.0
Show newest version
(()=>{(self.webpackChunkCorrelationCount=self.webpackChunkCorrelationCount||[]).push([["d7160f95-735"],{"TFdHK+vd":(h,L,s)=>{h=s.nmd(h),ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("./text_highlight_rules").TextHighlightRules,g=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};m.inherits(g,b),E.JsonHighlightRules=g}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(R,E,_){"use strict";var m=R("../range").Range,b=function(){};(function(){this.checkOutdent=function(g,a){return/^\s+$/.test(g)?/^\s*\}/.test(a):!1},this.autoOutdent=function(g,a){var l=g.getLine(a),e=l.match(/^(\s*\})/);if(!e)return 0;var i=e[1].length,n=g.findMatchingBracket({row:a,column:i});if(!n||n.row==a)return 0;var t=this.$getIndent(g.getLine(n.row));g.replace(new m(a,0,a,i-1),t)},this.$getIndent=function(g){return g.match(/^\s*/)[0]}}).call(b.prototype),E.MatchingBraceOutdent=b}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(R,E,_){"use strict";var m=R("../../lib/oop"),b=R("../../range").Range,g=R("./fold_mode").FoldMode,a=E.FoldMode=function(l){l&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+l.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+l.end)))};m.inherits(a,g),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(l,e,i){var n=l.getLine(i);if(this.singleLineBlockCommentRe.test(n)&&!this.startRegionRe.test(n)&&!this.tripleStarBlockCommentRe.test(n))return"";var t=this._getFoldWidgetBase(l,e,i);return!t&&this.startRegionRe.test(n)?"start":t},this.getFoldWidgetRange=function(l,e,i,n){var t=l.getLine(i);if(this.startRegionRe.test(t))return this.getCommentRegionBlock(l,t,i);var c=t.match(this.foldingStartMarker);if(c){var r=c.index;if(c[1])return this.openingBracketBlock(l,c[1],i,r);var o=l.getCommentFoldRange(i,r+c[0].length,1);return o&&!o.isMultiLine()&&(n?o=this.getSectionRange(l,i):e!="all"&&(o=null)),o}if(e!=="markbegin"){var c=t.match(this.foldingStopMarker);if(c){var r=c.index+c[0].length;return c[1]?this.closingBracketBlock(l,c[1],i,r):l.getCommentFoldRange(i,r,-1)}}},this.getSectionRange=function(l,e){var i=l.getLine(e),n=i.search(/\S/),t=e,r=i.length;e+=1;for(var o=e,c=l.getLength();++ed)break;var p=this.getFoldWidgetRange(l,"all",e);if(p){if(p.start.row<=t)break;if(p.isMultiLine())e=p.end.row;else if(n==d)break}o=e}}return new b(t,r,o,l.getLine(o).length)},this.getCommentRegionBlock=function(l,e,i){for(var n=e.search(/\s*$/),t=l.getLength(),r=i,o=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++ir)return new b(r,n,p,e.length)}}.call(a.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("./text").Mode,g=R("./json_highlight_rules").JsonHighlightRules,a=R("./matching_brace_outdent").MatchingBraceOutdent,l=R("./behaviour/cstyle").CstyleBehaviour,e=R("./folding/cstyle").FoldMode,i=R("../worker/worker_client").WorkerClient,n=function(){this.HighlightRules=g,this.$outdent=new a,this.$behaviour=new l,this.foldingRules=new e};m.inherits(n,b),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(t,r,o){var c=this.$getIndent(r);if(t=="start"){var d=r.match(/^.*[\{\(\[]\s*$/);d&&(c+=o)}return c},this.checkOutdent=function(t,r,o){return this.$outdent.checkOutdent(r,o)},this.autoOutdent=function(t,r,o){this.$outdent.autoOutdent(r,o)},this.createWorker=function(t){var r=new i(["ace"],"ace/mode/json_worker","JsonWorker");return r.attachToDocument(t.getDocument()),r.on("annotate",function(o){t.setAnnotations(o.data)}),r.on("terminate",function(){t.clearAnnotations()}),r},this.$id="ace/mode/json"}.call(n.prototype),E.Mode=n}),function(){ace.require(["ace/mode/json"],function(R){h&&(h.exports=R)})}()},"QUUNCm+s":(h,L,s)=>{h=s.nmd(h),ace.define("ace/mode/lua_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("./text_highlight_rules").TextHighlightRules,g=function(){var a="break|do|else|elseif|end|for|function|if|in|local|repeat|return|then|until|while|or|and|not",l="true|false|nil|_G|_VERSION",e="string|xpcall|package|tostring|print|os|unpack|require|getfenv|setmetatable|next|assert|tonumber|io|rawequal|collectgarbage|getmetatable|module|rawset|math|debug|pcall|table|newproxy|type|coroutine|_G|select|gcinfo|pairs|rawget|loadstring|ipairs|_VERSION|dofile|setfenv|load|error|loadfile|sub|upper|len|gfind|rep|find|match|char|dump|gmatch|reverse|byte|format|gsub|lower|preload|loadlib|loaded|loaders|cpath|config|path|seeall|exit|setlocale|date|getenv|difftime|remove|time|clock|tmpname|rename|execute|lines|write|close|flush|open|output|type|read|stderr|stdin|input|stdout|popen|tmpfile|log|max|acos|huge|ldexp|pi|cos|tanh|pow|deg|tan|cosh|sinh|random|randomseed|frexp|ceil|floor|rad|abs|sqrt|modf|asin|min|mod|fmod|log10|atan2|exp|sin|atan|getupvalue|debug|sethook|getmetatable|gethook|setmetatable|setlocal|traceback|setfenv|getinfo|setupvalue|getlocal|getregistry|getfenv|setn|insert|getn|foreachi|maxn|foreach|concat|sort|remove|resume|yield|status|wrap|create|running|__add|__sub|__mod|__unm|__concat|__lt|__index|__call|__gc|__metatable|__mul|__div|__pow|__len|__eq|__le|__newindex|__tostring|__mode|__tonumber",i="string|package|os|io|math|debug|table|coroutine",n="setn|foreach|foreachi|gcinfo|log10|maxn",t=this.createKeywordMapper({keyword:a,"support.function":e,"keyword.deprecated":n,"constant.library":i,"constant.language":l,"variable.language":"self"},"identifier"),r="(?:(?:[1-9]\\d*)|(?:0))",o="(?:0[xX][\\dA-Fa-f]+)",c="(?:"+r+"|"+o+")",d="(?:\\.\\d+)",p="(?:\\d+)",x="(?:(?:"+p+"?"+d+")|(?:"+p+"\\.))",y="(?:"+x+")";this.$rules={start:[{stateName:"bracketedComment",onMatch:function(k,M,v){return v.unshift(this.next,k.length-2,M),"comment"},regex:/\-\-\[=*\[/,next:[{onMatch:function(k,M,v){return k.length==v[1]?(v.shift(),v.shift(),this.next=v.shift()):this.next="","comment"},regex:/\]=*\]/,next:"start"},{defaultToken:"comment"}]},{token:"comment",regex:"\\-\\-.*$"},{stateName:"bracketedString",onMatch:function(k,M,v){return v.unshift(this.next,k.length,M),"string.start"},regex:/\[=*\[/,next:[{onMatch:function(k,M,v){return k.length==v[1]?(v.shift(),v.shift(),this.next=v.shift()):this.next="","string.end"},regex:/\]=*\]/,next:"start"},{defaultToken:"string"}]},{token:"string",regex:'"(?:[^\\\\]|\\\\.)*?"'},{token:"string",regex:"'(?:[^\\\\]|\\\\.)*?'"},{token:"constant.numeric",regex:y},{token:"constant.numeric",regex:c+"\\b"},{token:t,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\/|%|\\#|\\^|~|<|>|<=|=>|==|~=|=|\\:|\\.\\.\\.|\\.\\."},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:"text",regex:"\\s+|\\w+"}]},this.normalizeRules()};m.inherits(g,b),E.LuaHighlightRules=g}),ace.define("ace/mode/folding/lua",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(R,E,_){"use strict";var m=R("../../lib/oop"),b=R("./fold_mode").FoldMode,g=R("../../range").Range,a=R("../../token_iterator").TokenIterator,l=E.FoldMode=function(){};m.inherits(l,b),function(){this.foldingStartMarker=/\b(function|then|do|repeat)\b|{\s*$|(\[=*\[)/,this.foldingStopMarker=/\bend\b|^\s*}|\]=*\]/,this.getFoldWidget=function(e,i,n){var t=e.getLine(n),r=this.foldingStartMarker.test(t),o=this.foldingStopMarker.test(t);if(r&&!o){var d=t.match(this.foldingStartMarker);if(d[1]=="then"&&/\belseif\b/.test(t))return;if(d[1]){if(e.getTokenAt(n,d.index+1).type==="keyword")return"start"}else{if(!d[2])return"start";var c=e.bgTokenizer.getState(n)||"";if(c[0]=="bracketedComment"||c[0]=="bracketedString")return"start"}}if(i!="markbeginend"||!o||r&&o)return"";var d=t.match(this.foldingStopMarker);if(d[0]==="end"){if(e.getTokenAt(n,d.index+1).type==="keyword")return"end"}else{if(d[0][0]!=="]")return"end";var c=e.bgTokenizer.getState(n-1)||"";if(c[0]=="bracketedComment"||c[0]=="bracketedString")return"end"}},this.getFoldWidgetRange=function(e,i,n){var t=e.doc.getLine(n),r=this.foldingStartMarker.exec(t);if(r)return r[1]?this.luaBlock(e,n,r.index+1):r[2]?e.getCommentFoldRange(n,r.index+1):this.openingBracketBlock(e,"{",n,r.index);var r=this.foldingStopMarker.exec(t);if(r)return r[0]==="end"&&e.getTokenAt(n,r.index+1).type==="keyword"?this.luaBlock(e,n,r.index+1):r[0][0]==="]"?e.getCommentFoldRange(n,r.index+1):this.closingBracketBlock(e,"}",n,r.index+r[0].length)},this.luaBlock=function(e,v,n,t){var r=new a(e,v,n),o={function:1,do:1,then:1,elseif:-1,end:-1,repeat:1,until:-1},c=r.getCurrentToken();if(!(!c||c.type!="keyword")){var d=c.value,p=[d],x=o[d];if(x){var y=x===-1?r.getCurrentTokenColumn():e.getLine(v).length,k=v;for(r.step=x===-1?r.stepBackward:r.stepForward;c=r.step();)if(c.type==="keyword"){var M=x*o[c.value];if(M>0)p.unshift(c.value);else if(M<=0){if(p.shift(),!p.length&&c.value!="elseif")break;M===0&&p.unshift(c.value)}}if(!c)return null;if(t)return r.getCurrentTokenRange();var v=r.getCurrentTokenRow();return x===-1?new g(v,e.getLine(v).length,k,y):new g(k,y,v,r.getCurrentTokenColumn())}}}}.call(l.prototype)}),ace.define("ace/mode/lua",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/lua_highlight_rules","ace/mode/folding/lua","ace/range","ace/worker/worker_client"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("./text").Mode,g=R("./lua_highlight_rules").LuaHighlightRules,a=R("./folding/lua").FoldMode,l=R("../range").Range,e=R("../worker/worker_client").WorkerClient,i=function(){this.HighlightRules=g,this.foldingRules=new a,this.$behaviour=this.$defaultBehaviour};m.inherits(i,b),function(){function n(o){for(var c=0,d=0;d0?1:0}this.lineCommentStart="--",this.blockComment={start:"--[[",end:"--]]"};var t={function:1,then:1,do:1,else:1,elseif:1,repeat:1,end:-1,until:-1},r=["else","elseif","end","until"];this.getNextLineIndent=function(o,c,d){var p=this.$getIndent(c),x=0,y=this.getTokenizer().getLineTokens(c,o),k=y.tokens;return o=="start"&&(x=n(k)),x>0?p+d:x<0&&p.substr(p.length-d.length)==d&&!this.checkOutdent(o,c,`
`)?p.substr(0,p.length-d.length):p},this.checkOutdent=function(o,c,d){if(d!=`
`&&d!="\r"&&d!=`\r
`)return!1;if(c.match(/^\s*[\)\}\]]$/))return!0;var p=this.getTokenizer().getLineTokens(c.trim(),o).tokens;return!p||!p.length?!1:p[0].type=="keyword"&&r.indexOf(p[0].value)!=-1},this.getMatching=function(o,c,d){if(c==null){var p=o.selection.lead;d=p.column,c=p.row}var x=o.getTokenAt(c,d);if(x&&x.value in t)return this.foldingRules.luaBlock(o,c,d,!0)},this.autoOutdent=function(o,c,d){var p=c.getLine(d),x=p.match(/^\s*/)[0].length;if(!(!x||!d)){var y=this.getMatching(c,d,x+1);if(!(!y||y.start.row==d)){var k=this.$getIndent(c.getLine(y.start.row));k.length!=x&&(c.replace(new l(d,0,d,x),k),c.outdentRows(new l(d+1,0,d+1,0)))}}},this.createWorker=function(o){var c=new e(["ace"],"ace/mode/lua_worker","Worker");return c.attachToDocument(o.getDocument()),c.on("annotate",function(d){o.setAnnotations(d.data)}),c.on("terminate",function(){o.clearAnnotations()}),c},this.$id="ace/mode/lua",this.snippetFileId="ace/snippets/lua"}.call(i.prototype),E.Mode=i}),function(){ace.require(["ace/mode/lua"],function(R){h&&(h.exports=R)})}()},KBBAgaWt:(h,L,s)=>{h=s.nmd(h),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("../lib/lang"),g=R("./text_highlight_rules").TextHighlightRules,a=E.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",l=E.supportFunction="rgb|rgba|url|attr|counter|counters",e=E.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",i=E.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",n=E.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",t=E.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",r=E.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",o=E.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",c=function(){var d=this.createKeywordMapper({"support.function":l,"support.constant":e,"support.type":a,"support.constant.color":i,"support.constant.fonts":n},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:t},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+t+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:t},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:r},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:o},{include:"url"},{token:d,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};m.inherits(c,g),E.CssHighlightRules=c}),ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("./text_highlight_rules").TextHighlightRules,g=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},g.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};m.inherits(g,b),g.getTagRule=function(a){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},g.getStartRule=function(a){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:a}},g.getEndRule=function(a){return{token:"comment.doc",regex:"\\*\\/",next:a}},E.DocCommentHighlightRules=g}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(R,E,_){"use strict";function m(){var n=e.replace("\\d","\\d\\-"),t={onMatch:function(o,c,d){var p=o.charAt(1)=="/"?2:1;return p==1?(c!=this.nextState?d.unshift(this.next,this.nextState,0):d.unshift(this.next),d[2]++):p==2&&c==this.nextState&&(d[1]--,(!d[1]||d[1]<0)&&(d.shift(),d.shift())),[{type:"meta.tag.punctuation."+(p==1?"":"end-")+"tag-open.xml",value:o.slice(0,p)},{type:"meta.tag.tag-name.xml",value:o.substr(p)}]},regex:"",onMatch:function(o,c,d){return c==d[0]&&d.shift(),o.length==2&&(d[0]==this.nextState&&d[1]--,(!d[1]||d[1]<0)&&d.splice(0,2)),this.next=d[0]||"start",[{type:this.token,value:o}]},nextState:"jsx"},r,b("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:n},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function b(n){return[{token:"comment",regex:/\/\*/,next:[a.getTagRule(),{token:"comment",regex:"\\*\\/",next:n||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[a.getTagRule(),{token:"comment",regex:"$|^",next:n||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var g=R("../lib/oop"),a=R("./doc_comment_highlight_rules").DocCommentHighlightRules,l=R("./text_highlight_rules").TextHighlightRules,e="[a-zA-Z\\$_\xA1-\uFFFF][a-zA-Z\\d\\$_\xA1-\uFFFF]*",i=function(n){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),r="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",o="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[a.getStartRule("doc-start"),b("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+e+")(\\.)(prototype)(\\.)("+e+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+e+")(\\.)("+e+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+e+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+e+")(\\.)("+e+")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function\\*?)(\\s+)("+e+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+e+")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+r+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:e},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+e+")(\\.)("+e+")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:e},{regex:"",token:"empty",next:"no_regex"}],start:[a.getStartRule("doc-start"),b("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[b("function_arguments"),{token:"variable.parameter",regex:e},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:o},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:o},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!n||!n.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(c,d,p){if(this.next=c=="{"?this.nextState:"",c=="{"&&p.length)p.unshift("start",d);else if(c=="}"&&p.length&&(p.shift(),this.next=p.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return c=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:o},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+e+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=.+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!n||n.jsx!=0)&&m.call(this)),this.embedRules(a,"doc-",[a.getEndRule("no_regex")]),this.normalizeRules()};g.inherits(i,l),E.JavaScriptHighlightRules=i}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("./text_highlight_rules").TextHighlightRules,g=function(a){var l="[_:a-zA-Z\xC0-\uFFFF][-_:.a-zA-Z0-9\xC0-\uFFFF]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+l+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+l+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:l},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===g&&this.normalizeRules()};(function(){this.embedTagRules=function(a,l,e){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+e+".tag-name.xml"],regex:"(<)("+e+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:l+"start"}]}),this.$rules[e+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(i,n,t){return t.splice(0),this.token}}],this.embedRules(a,l,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+e+".tag-name.xml"],regex:"(|$))",next:e+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(b.prototype),m.inherits(g,b),E.XmlHighlightRules=g}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("../lib/lang"),g=R("./css_highlight_rules").CssHighlightRules,a=R("./javascript_highlight_rules").JavaScriptHighlightRules,l=R("./xml_highlight_rules").XmlHighlightRules,e=b.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),i=function(){l.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(n,t){var r=e[t];return["meta.tag.punctuation."+(n=="<"?"":"end-")+"tag-open.xml","meta.tag"+(r?"."+r:"")+".tag-name.xml"]},regex:"(",next:"start"}]}),this.embedTagRules(g,"css-","style"),this.embedTagRules(new a({jsx:!1}).getRules(),"js-","script"),this.constructor===i&&this.normalizeRules()};m.inherits(i,l),E.HtmlHighlightRules=i}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(R,E,_){"use strict";var m=R("../config").$modes,b=R("../lib/oop"),g=R("../lib/lang"),a=R("./text_highlight_rules").TextHighlightRules,l=R("./html_highlight_rules").HtmlHighlightRules,e=function(n){return"(?:[^"+g.escapeRegExp(n)+"\\\\]|\\\\.)*"},i=function(){l.call(this);var n={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(r,o,c,d){var p=r.match(/^(\s*)([`~]+)(.*)/),x=/[\w-]+|$/.exec(p[3])[0];return m[x]||(x=""),c.unshift("githubblock",[],[p[1],p[2],x],o),this.token},next:"githubblock"},t=[{token:"support.function",regex:".*",onMatch:function(r,o,c,d){var p=c[1],x=c[2][0],y=c[2][1],k=c[2][2],M=/^(\s*)(`+|~+)\s*$/.exec(r);if(M&&M[1].length=y.length&&M[2][0]==y[0])return c.splice(0,3),this.next=c.shift(),this.token;if(this.next="",k&&m[k]){var v=m[k].getTokenizer().getLineTokens(r,p.slice(0));return c[1]=v.state,v.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(r){return"markup.heading."+r.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},n,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+e("]")+")(\\]\\s*\\[)("+e("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+e("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+e('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:`(<)((?:https?|ftp|dict):[^'">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)`}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},n,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:t}),this.normalizeRules()};b.inherits(i,a),E.MarkdownHighlightRules=i}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(R,E,_){"use strict";var m=R("../../lib/oop"),b=R("./fold_mode").FoldMode,g=R("../../range").Range,a=E.FoldMode=function(){};m.inherits(a,b),function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(l,e,i){var n=l.getLine(i);return this.foldingStartMarker.test(n)?n[0]=="`"&&l.bgTokenizer.getState(i)=="start"?"end":"start":""},this.getFoldWidgetRange=function(l,e,i){function n(S){return x=l.getTokens(S)[0],x&&x.type.lastIndexOf(y,0)===0}function t(){var S=x.value[0];return S=="="?6:S=="-"?5:7-x.value.search(/[^#]|$/)}var r=l.getLine(i),o=r.length,c=l.getLength(),d=i,p=i;if(r.match(this.foldingStartMarker)){if(r[0]=="`"){if(l.bgTokenizer.getState(i)!=="start"){for(;++i0&&(r=l.getLine(i),!(r[0]=="`"&r.substring(0,3)=="```")););return new g(i,r.length,d,0)}var x,y="markup.heading";if(n(i)){for(var k=t();++i=k)break}if(p=i-(!x||["=","-"].indexOf(x.value[0])==-1?1:2),p>d)for(;p>d&&/^\s*$/.test(l.getLine(p));)p--;if(p>d){var v=l.getLine(p).length;return new g(d,o,p,v)}}}}}.call(a.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(R,E,_){"use strict";var m=R("../range").Range,b=function(){};(function(){this.checkOutdent=function(g,a){return/^\s+$/.test(g)?/^\s*\}/.test(a):!1},this.autoOutdent=function(g,a){var l=g.getLine(a),e=l.match(/^(\s*\})/);if(!e)return 0;var i=e[1].length,n=g.findMatchingBracket({row:a,column:i});if(!n||n.row==a)return 0;var t=this.$getIndent(g.getLine(n.row));g.replace(new m(a,0,a,i-1),t)},this.$getIndent=function(g){return g.match(/^\s*/)[0]}}).call(b.prototype),E.MatchingBraceOutdent=b}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(R,E,_){"use strict";var m=R("../../lib/oop"),b=R("../../range").Range,g=R("./fold_mode").FoldMode,a=E.FoldMode=function(l){l&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+l.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+l.end)))};m.inherits(a,g),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(l,e,i){var n=l.getLine(i);if(this.singleLineBlockCommentRe.test(n)&&!this.startRegionRe.test(n)&&!this.tripleStarBlockCommentRe.test(n))return"";var t=this._getFoldWidgetBase(l,e,i);return!t&&this.startRegionRe.test(n)?"start":t},this.getFoldWidgetRange=function(l,e,i,n){var t=l.getLine(i);if(this.startRegionRe.test(t))return this.getCommentRegionBlock(l,t,i);var c=t.match(this.foldingStartMarker);if(c){var r=c.index;if(c[1])return this.openingBracketBlock(l,c[1],i,r);var o=l.getCommentFoldRange(i,r+c[0].length,1);return o&&!o.isMultiLine()&&(n?o=this.getSectionRange(l,i):e!="all"&&(o=null)),o}if(e!=="markbegin"){var c=t.match(this.foldingStopMarker);if(c){var r=c.index+c[0].length;return c[1]?this.closingBracketBlock(l,c[1],i,r):l.getCommentFoldRange(i,r,-1)}}},this.getSectionRange=function(l,e){var i=l.getLine(e),n=i.search(/\S/),t=e,r=i.length;e+=1;for(var o=e,c=l.getLength();++ed)break;var p=this.getFoldWidgetRange(l,"all",e);if(p){if(p.start.row<=t)break;if(p.isMultiLine())e=p.end.row;else if(n==d)break}o=e}}return new b(t,r,o,l.getLine(o).length)},this.getCommentRegionBlock=function(l,e,i){for(var n=e.search(/\s*$/),t=l.getLength(),r=i,o=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++ir)return new b(r,n,p,e.length)}}.call(a.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("./text").Mode,g=R("./javascript_highlight_rules").JavaScriptHighlightRules,a=R("./matching_brace_outdent").MatchingBraceOutdent,l=R("../worker/worker_client").WorkerClient,e=R("./behaviour/cstyle").CstyleBehaviour,i=R("./folding/cstyle").FoldMode,n=function(){this.HighlightRules=g,this.$outdent=new a,this.$behaviour=new e,this.foldingRules=new i};m.inherits(n,b),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(t,r,o){var c=this.$getIndent(r),d=this.getTokenizer().getLineTokens(r,t),p=d.tokens,x=d.state;if(p.length&&p[p.length-1].type=="comment")return c;if(t=="start"||t=="no_regex"){var y=r.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);y&&(c+=o)}else if(t=="doc-start"){if(x=="start"||x=="no_regex")return"";var y=r.match(/^\s*(\/?)\*/);y&&(y[1]&&(c+=" "),c+="* ")}return c},this.checkOutdent=function(t,r,o){return this.$outdent.checkOutdent(r,o)},this.autoOutdent=function(t,r,o){this.$outdent.autoOutdent(r,o)},this.createWorker=function(t){var r=new l(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return r.attachToDocument(t.getDocument()),r.on("annotate",function(o){t.setAnnotations(o.data)}),r.on("terminate",function(){t.clearAnnotations()}),r},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(n.prototype),E.Mode=n}),ace.define("ace/mode/css_completions",["require","exports","module"],function(R,E,_){"use strict";var m={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},b=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var g=document.createElement("c").style;for(var a in g)if(typeof g[a]=="string"){var l=a.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()});m.hasOwnProperty(l)||(m[l]=1)}}this.completionsDefined=!0},this.getCompletions=function(g,a,l,e){if(this.completionsDefined||this.defineCompletions(),g==="ruleset"||a.$mode.$id=="ace/mode/scss"){var i=a.getLine(l.row).substr(0,l.column),n=/\([^)]*$/.test(i);return n&&(i=i.substr(i.lastIndexOf("(")+1)),/:[^;]+$/.test(i)?(/([\w\-]+):[^:]*$/.test(i),this.getPropertyValueCompletions(g,a,l,e)):this.getPropertyCompletions(g,a,l,e,n)}return[]},this.getPropertyCompletions=function(g,a,l,e,i){i=i||!1;var n=Object.keys(m);return n.map(function(t){return{caption:t,snippet:t+": $0"+(i?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(g,a,l,e){var i=a.getLine(l.row).substr(0,l.column),n=(/([\w\-]+):[^:]*$/.exec(i)||{})[1];if(!n)return[];var t=[];return n in m&&typeof m[n]=="object"&&(t=Object.keys(m[n])),t.map(function(r){return{caption:r,snippet:r,meta:"property value",score:1e6}})}}).call(b.prototype),E.CssCompletions=b}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(R,E,_){"use strict";var m=R("../../lib/oop"),b=R("../behaviour").Behaviour,g=R("./cstyle").CstyleBehaviour,a=R("../../token_iterator").TokenIterator,l=function(){this.inherit(g),this.add("colon","insertion",function(e,i,n,t,r){if(r===":"&&n.selection.isEmpty()){var o=n.getCursorPosition(),c=new a(t,o.row,o.column),d=c.getCurrentToken();if(d&&d.value.match(/\s+/)&&(d=c.stepBackward()),d&&d.type==="support.type"){var p=t.doc.getLine(o.row),x=p.substring(o.column,o.column+1);if(x===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(p.substring(o.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(e,i,n,t,r){var o=t.doc.getTextRange(r);if(!r.isMultiLine()&&o===":"){var c=n.getCursorPosition(),d=new a(t,c.row,c.column),p=d.getCurrentToken();if(p&&p.value.match(/\s+/)&&(p=d.stepBackward()),p&&p.type==="support.type"){var x=t.doc.getLine(r.start.row),y=x.substring(r.end.column,r.end.column+1);if(y===";")return r.end.column++,r}}}),this.add("semicolon","insertion",function(e,i,n,t,r){if(r===";"&&n.selection.isEmpty()){var o=n.getCursorPosition(),c=t.doc.getLine(o.row),d=c.substring(o.column,o.column+1);if(d===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(e,i,n,t,r){if(r==="!"&&n.selection.isEmpty()){var o=n.getCursorPosition(),c=t.doc.getLine(o.row);if(/^\s*(;|}|$)/.test(c.substring(o.column)))return{text:"!important",selection:[10,10]}}})};m.inherits(l,g),E.CssBehaviour=l}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("./text").Mode,g=R("./css_highlight_rules").CssHighlightRules,a=R("./matching_brace_outdent").MatchingBraceOutdent,l=R("../worker/worker_client").WorkerClient,e=R("./css_completions").CssCompletions,i=R("./behaviour/css").CssBehaviour,n=R("./folding/cstyle").FoldMode,t=function(){this.HighlightRules=g,this.$outdent=new a,this.$behaviour=new i,this.$completer=new e,this.foldingRules=new n};m.inherits(t,b),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(r,o,c){var d=this.$getIndent(o),p=this.getTokenizer().getLineTokens(o,r).tokens;if(p.length&&p[p.length-1].type=="comment")return d;var x=o.match(/^.*\{\s*$/);return x&&(d+=c),d},this.checkOutdent=function(r,o,c){return this.$outdent.checkOutdent(o,c)},this.autoOutdent=function(r,o,c){this.$outdent.autoOutdent(o,c)},this.getCompletions=function(r,o,c,d){return this.$completer.getCompletions(r,o,c,d)},this.createWorker=function(r){var o=new l(["ace"],"ace/mode/css_worker","Worker");return o.attachToDocument(r.getDocument()),o.on("annotate",function(c){r.setAnnotations(c.data)}),o.on("terminate",function(){r.clearAnnotations()}),o},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(t.prototype),E.Mode=t}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(R,E,_){"use strict";function m(i,n){return i&&i.type.lastIndexOf(n+".xml")>-1}var b=R("../../lib/oop"),g=R("../behaviour").Behaviour,a=R("../../token_iterator").TokenIterator,l=R("../../lib/lang"),e=function(){this.add("string_dquotes","insertion",function(i,n,t,r,o){if(o=='"'||o=="'"){var c=o,d=r.doc.getTextRange(t.getSelectionRange());if(d!==""&&d!=="'"&&d!='"'&&t.getWrapBehavioursEnabled())return{text:c+d+c,selection:!1};var p=t.getCursorPosition(),x=r.doc.getLine(p.row),y=x.substring(p.column,p.column+1),k=new a(r,p.row,p.column),M=k.getCurrentToken();if(y==c&&(m(M,"attribute-value")||m(M,"string")))return{text:"",selection:[1,1]};if(M||(M=k.stepBackward()),!M)return;for(;m(M,"tag-whitespace")||m(M,"whitespace");)M=k.stepBackward();var v=!y||y.match(/\s/);if(m(M,"attribute-equals")&&(v||y==">")||m(M,"decl-attribute-equals")&&(v||y=="?"))return{text:c+c,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(i,n,t,r,o){var c=r.doc.getTextRange(o);if(!o.isMultiLine()&&(c=='"'||c=="'")){var d=r.doc.getLine(o.start.row),p=d.substring(o.start.column+1,o.start.column+2);if(p==c)return o.end.column++,o}}),this.add("autoclosing","insertion",function(i,n,t,r,o){if(o==">"){var c=t.getSelectionRange().start,d=new a(r,c.row,c.column),p=d.getCurrentToken()||d.stepBackward();if(!p||!(m(p,"tag-name")||m(p,"tag-whitespace")||m(p,"attribute-name")||m(p,"attribute-equals")||m(p,"attribute-value"))||m(p,"reference.attribute-value"))return;if(m(p,"attribute-value")){var x=d.getCurrentTokenColumn()+p.value.length;if(c.column/.test(r.getLine(c.row).slice(c.column)))return;for(;!m(p,"tag-name");)if(p=d.stepBackward(),p.value=="<"){p=d.stepForward();break}var k=d.getCurrentTokenRow(),M=d.getCurrentTokenColumn();if(m(d.stepBackward(),"end-tag-open"))return;var v=p.value;return k==c.row&&(v=v.substring(0,c.column-M)),this.voidElements.hasOwnProperty(v.toLowerCase())?void 0:{text:">",selection:[1,1]}}}),this.add("autoindent","insertion",function(i,n,t,r,o){if(o==`
`){var c=t.getCursorPosition(),d=r.getLine(c.row),p=new a(r,c.row,c.column),x=p.getCurrentToken();if(x&&x.type.indexOf("tag-close")!==-1){if(x.value=="/>")return;for(;x&&x.type.indexOf("tag-name")===-1;)x=p.stepBackward();if(!x)return;var y=x.value,k=p.getCurrentTokenRow();if(x=p.stepBackward(),!x||x.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[y]){var M=r.getTokenAt(c.row,c.column+1),d=r.getLine(k),v=this.$getIndent(d),S=v+r.getTabString();return M&&M.value==="-1}var b=R("../../lib/oop"),g=R("../../range").Range,a=R("./fold_mode").FoldMode,l=E.FoldMode=function(i,n){a.call(this),this.voidElements=i||{},this.optionalEndTags=b.mixin({},this.voidElements),n&&b.mixin(this.optionalEndTags,n)};b.inherits(l,a);var e=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(i,n,t){var r=this._getFirstTagInLine(i,t);return r?r.closing||!r.tagName&&r.selfClosing?n==="markbeginend"?"end":"":!r.tagName||r.selfClosing||this.voidElements.hasOwnProperty(r.tagName.toLowerCase())||this._findEndTagInLine(i,t,r.tagName,r.end.column)?"":"start":this.getCommentFoldWidget(i,t)},this.getCommentFoldWidget=function(i,n){return/comment/.test(i.getState(n))&&/";break}return r}if(m(c,"tag-close"))return r.selfClosing=c.value=="/>",r;r.start.column+=c.value.length}return null},this._findEndTagInLine=function(i,n,t,r){for(var o=i.getTokens(n),c=0,d=0;d-1}function b(o,c){for(var d=new a(o,c.row,c.column),p=d.getCurrentToken();p&&!m(p,"tag-name");)p=d.stepBackward();if(p)return p.value}function g(o,c){for(var d=new a(o,c.row,c.column),p=d.getCurrentToken();p&&!m(p,"attribute-name");)p=d.stepBackward();if(p)return p.value}var a=R("../token_iterator").TokenIterator,l=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],e=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],i=l.concat(e),n={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},t=Object.keys(n),r=function(){};(function(){this.getCompletions=function(o,c,d,p){var x=c.getTokenAt(d.row,d.column);if(!x)return[];if(m(x,"tag-name")||m(x,"tag-open")||m(x,"end-tag-open"))return this.getTagCompletions(o,c,d,p);if(m(x,"tag-whitespace")||m(x,"attribute-name"))return this.getAttributeCompletions(o,c,d,p);if(m(x,"attribute-value"))return this.getAttributeValueCompletions(o,c,d,p);var y=c.getLine(d.row).substr(0,d.column);return/&[a-z]*$/i.test(y)?this.getHTMLEntityCompletions(o,c,d,p):[]},this.getTagCompletions=function(o,c,d,p){return t.map(function(x){return{value:x,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(o,c,d,p){var x=b(c,d);if(!x)return[];var y=i;return x in n&&(y=y.concat(Object.keys(n[x]))),y.map(function(k){return{caption:k,snippet:k+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(o,c,d,p){var x=b(c,d),y=g(c,d);if(!x)return[];var k=[];return x in n&&y in n[x]&&typeof n[x][y]=="object"&&(k=Object.keys(n[x][y])),k.map(function(M){return{caption:M,snippet:M,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(o,c,d,p){var x=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return x.map(function(y){return{caption:y,snippet:y,meta:"html entity",score:1e6}})}}).call(r.prototype),E.HtmlCompletions=r}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("../lib/lang"),g=R("./text").Mode,a=R("./javascript").Mode,l=R("./css").Mode,e=R("./html_highlight_rules").HtmlHighlightRules,i=R("./behaviour/xml").XmlBehaviour,n=R("./folding/html").FoldMode,t=R("./html_completions").HtmlCompletions,r=R("../worker/worker_client").WorkerClient,o=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],c=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],d=function(p){this.fragmentContext=p&&p.fragmentContext,this.HighlightRules=e,this.$behaviour=new i,this.$completer=new t,this.createModeDelegates({"js-":a,"css-":l}),this.foldingRules=new n(this.voidElements,b.arrayToMap(c))};m.inherits(d,g),function(){this.blockComment={start:""},this.voidElements=b.arrayToMap(o),this.getNextLineIndent=function(p,x,y){return this.$getIndent(x)},this.checkOutdent=function(p,x,y){return!1},this.getCompletions=function(p,x,y,k){return this.$completer.getCompletions(p,x,y,k)},this.createWorker=function(p){if(this.constructor==d){var x=new r(["ace"],"ace/mode/html_worker","Worker");return x.attachToDocument(p.getDocument()),this.fragmentContext&&x.call("setOptions",[{context:this.fragmentContext}]),x.on("error",function(y){p.setAnnotations(y.data)}),x.on("terminate",function(){p.clearAnnotations()}),x}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}.call(d.prototype),E.Mode=d}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("./text_highlight_rules").TextHighlightRules,g=E.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",a=E.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",l=function(){var e=this.createKeywordMapper({keyword:g,"support.function.builtin":a,"invalid.deprecated":"debugger"},"identifier"),i="(?:(?:[1-9]\\d*)|(?:0))",n="(?:\\.\\d+)",t="(?:\\d+)",r="(?:(?:"+t+"?"+n+")|(?:"+t+"\\.))",o="(?:(?:"+r+"|"+t+"))",c="(?:"+o+"|"+r+")",d="(?:&"+t+")",p="[a-zA-Z_][a-zA-Z0-9_]*",x="(?:"+p+"(?==))",y="(?:\\$(?:SHLVL|\\$|\\!|\\?))",k="(?:"+p+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(M,v,S){var A=M[2]=="-"?"indentedHeredoc":"heredoc",$=M.split(this.splitRegex);return S.push(A,$[4]),[{type:"constant",value:$[1]},{type:"text",value:$[2]},{type:"string",value:$[3]},{type:"support.class",value:$[4]},{type:"string",value:$[5]}]},rules:{heredoc:[{onMatch:function(M,v,S){return M===S[1]?(S.shift(),S.shift(),this.next=S[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^	+"},{onMatch:function(M,v,S){return M===S[1]?(S.shift(),S.shift(),this.next=S[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(M,v){return v[0]==="heredoc"||v[0]==="indentedHeredoc"?v[0]:M}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:y},{token:"variable",regex:x},{include:"variables"},{token:"support.function",regex:k},{token:"support.function",regex:d},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:c},{token:"constant.numeric",regex:i+"\\b"},{token:e,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};m.inherits(l,b),E.ShHighlightRules=l}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle","ace/mode/behaviour/cstyle"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("./text").Mode,g=R("./sh_highlight_rules").ShHighlightRules,a=R("../range").Range,l=R("./folding/cstyle").FoldMode,e=R("./behaviour/cstyle").CstyleBehaviour,i=function(){this.HighlightRules=g,this.foldingRules=new l,this.$behaviour=new e};m.inherits(i,b),function(){this.lineCommentStart="#",this.getNextLineIndent=function(t,r,o){var c=this.$getIndent(r),d=this.getTokenizer().getLineTokens(r,t),p=d.tokens;if(p.length&&p[p.length-1].type=="comment")return c;if(t=="start"){var x=r.match(/^.*[\{\(\[:]\s*$/);x&&(c+=o)}return c};var n={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(t,r,o){if(o!==`\r
`&&o!=="\r"&&o!==`
`)return!1;var c=this.getTokenizer().getLineTokens(r.trim(),t).tokens;if(!c)return!1;do var d=c.pop();while(d&&(d.type=="comment"||d.type=="text"&&d.value.match(/^\s+$/)));return d?d.type=="keyword"&&n[d.value]:!1},this.autoOutdent=function(t,r,o){o+=1;var c=this.$getIndent(r.getLine(o)),d=r.getTabString();c.slice(-d.length)==d&&r.remove(new a(o,c.length-d.length,o,c.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}.call(i.prototype),E.Mode=i}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("../lib/lang"),g=R("./text").Mode,a=R("./xml_highlight_rules").XmlHighlightRules,l=R("./behaviour/xml").XmlBehaviour,e=R("./folding/xml").FoldMode,i=R("../worker/worker_client").WorkerClient,n=function(){this.HighlightRules=a,this.$behaviour=new l,this.foldingRules=new e};m.inherits(n,g),function(){this.voidElements=b.arrayToMap([]),this.blockComment={start:""},this.createWorker=function(t){var r=new i(["ace"],"ace/mode/xml_worker","Worker");return r.attachToDocument(t.getDocument()),r.on("error",function(o){t.setAnnotations(o.data)}),r.on("terminate",function(){t.clearAnnotations()}),r},this.$id="ace/mode/xml"}.call(n.prototype),E.Mode=n}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("./behaviour/cstyle").CstyleBehaviour,g=R("./text").Mode,a=R("./markdown_highlight_rules").MarkdownHighlightRules,l=R("./folding/markdown").FoldMode,e=function(){this.HighlightRules=a,this.createModeDelegates({javascript:R("./javascript").Mode,html:R("./html").Mode,bash:R("./sh").Mode,sh:R("./sh").Mode,xml:R("./xml").Mode,css:R("./css").Mode}),this.foldingRules=new l,this.$behaviour=new b({braces:!0})};m.inherits(e,g),function(){this.type="text",this.blockComment={start:""},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(i,n,t){if(i=="listblock"){var r=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(n);if(!r)return"";var o=r[2];return o||(o=parseInt(r[3],10)+1+"."),r[1]+o+r[4]}return this.$getIndent(n)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}.call(e.prototype),E.Mode=e}),function(){ace.require(["ace/mode/markdown"],function(R){h&&(h.exports=R)})}()},MSzkZIna:(h,L,s)=>{h=s.nmd(h),function(){ace.require(["ace/mode/text"],function(R){h&&(h.exports=R)})}()},"46egSNnb":(h,L,s)=>{h=s.nmd(h),ace.define("ace/mode/yaml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("./text_highlight_rules").TextHighlightRules,g=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"list.markup",regex:/^(?:-{3}|\.{3})\s*(?=#|$)/},{token:"list.markup",regex:/^\s*[\-?](?:$|\s)/},{token:"constant",regex:"!![\\w//]+"},{token:"constant.language",regex:"[&\\*][a-zA-Z0-9-_]+"},{token:["meta.tag","keyword"],regex:/^(\s*\w[^\s:]*?)(:(?=\s|$))/},{token:["meta.tag","keyword"],regex:/(\w[^\s:]*?)(\s*:(?=\s|$))/},{token:"keyword.operator",regex:"<<\\w*:\\w*"},{token:"keyword.operator",regex:"-\\s*(?=[{])"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:/[|>][-+\d]*(?:$|\s+(?:$|#))/,onMatch:function(a,l,e,i){i=i.replace(/ #.*/,"");var n=/^ *((:\s*)?-(\s*[^|>])?)?/.exec(i)[0].replace(/\S\s*$/,"").length,t=parseInt(/\d+[\s+-]*$/.exec(i));return t?(n+=t-1,this.next="mlString"):this.next="mlStringPre",e.length?(e[0]=this.next,e[1]=n):(e.push(this.next),e.push(n)),this.token},next:"mlString"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"constant.numeric",regex:/(\b|[+\-\.])[\d_]+(?:(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)(?=[^\d-\w]|$)$/},{token:"constant.numeric",regex:/[+\-]?\.inf\b|NaN\b|0x[\dA-Fa-f_]+|0b[10_]+/},{token:"constant.language.boolean",regex:"\\b(?:true|false|TRUE|FALSE|True|False|yes|no)\\b"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:/[^\s,:\[\]\{\}]+/}],mlStringPre:[{token:"indent",regex:/^ *$/},{token:"indent",regex:/^ */,onMatch:function(a,l,e){var i=e[1];return i>=a.length?(this.next="start",e.shift(),e.shift()):(e[1]=a.length-1,this.next=e[0]="mlString"),this.token},next:"mlString"},{defaultToken:"string"}],mlString:[{token:"indent",regex:/^ *$/},{token:"indent",regex:/^ */,onMatch:function(a,l,e){var i=e[1];return i>=a.length?(this.next="start",e.splice(0)):this.next="mlString",this.token},next:"mlString"},{token:"string",regex:".+"}]},this.normalizeRules()};m.inherits(g,b),E.YamlHighlightRules=g}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(R,E,_){"use strict";var m=R("../range").Range,b=function(){};(function(){this.checkOutdent=function(g,a){return/^\s+$/.test(g)?/^\s*\}/.test(a):!1},this.autoOutdent=function(g,a){var l=g.getLine(a),e=l.match(/^(\s*\})/);if(!e)return 0;var i=e[1].length,n=g.findMatchingBracket({row:a,column:i});if(!n||n.row==a)return 0;var t=this.$getIndent(g.getLine(n.row));g.replace(new m(a,0,a,i-1),t)},this.$getIndent=function(g){return g.match(/^\s*/)[0]}}).call(b.prototype),E.MatchingBraceOutdent=b}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(R,E,_){"use strict";var m=R("../../lib/oop"),b=R("./fold_mode").FoldMode,g=R("../../range").Range,a=E.FoldMode=function(){};m.inherits(a,b),function(){this.getFoldWidgetRange=function(l,e,i){var n=this.indentationBlock(l,i);if(n)return n;var t=/\S/,r=l.getLine(i),o=r.search(t);if(!(o==-1||r[o]!="#")){for(var c=r.length,d=l.getLength(),p=i,x=i;++ip){var k=l.getLine(x).length;return new g(p,c,x,k)}}},this.getFoldWidget=function(l,e,i){var n=l.getLine(i),t=n.search(/\S/),r=l.getLine(i+1),o=l.getLine(i-1),c=o.search(/\S/),d=r.search(/\S/);if(t==-1)return l.foldWidgets[i-1]=c!=-1&&c{h=s.nmd(h),function(){var R="ace",E=function(){return this}();if(!E&&typeof window<"u"&&(E=window),!R&&typeof requirejs<"u")return;var _=function(e,i,n){if(typeof e!="string"){_.original?_.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(n=i),_.modules[e]||(_.payloads[e]=n,_.modules[e]=null)};_.modules={},_.payloads={};var m=function(e,i,n){if(typeof i=="string"){var t=a(e,i);if(t!=null)return n&&n(),t}else if(Object.prototype.toString.call(i)==="[object Array]"){for(var r=[],o=0,c=i.length;oa.length)&&(g=a.length),g-=b.length;var l=a.indexOf(b,g);return l!==-1&&l===g}),String.prototype.repeat||m(String.prototype,"repeat",function(b){for(var g="",a=this;b>0;)b&1&&(g+=a),(b>>=1)&&(a+=a);return g}),String.prototype.includes||m(String.prototype,"includes",function(b,g){return this.indexOf(b,g)!=-1}),Object.assign||(Object.assign=function(b){if(b==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(b),a=1;a>>0,l=arguments[1],e=l>>0,i=e<0?Math.max(a+e,0):Math.min(e,a),n=arguments[2],t=n===void 0?a:n>>0,r=t<0?Math.max(a+t,0):Math.min(t,a);i0;)a&1&&(l+=g),(a>>=1)&&(g+=g);return l};var m=/^\s\s*/,b=/\s\s*$/;E.stringTrimLeft=function(g){return g.replace(m,"")},E.stringTrimRight=function(g){return g.replace(b,"")},E.copyObject=function(g){var a={};for(var l in g)a[l]=g[l];return a},E.copyArray=function(g){for(var a=[],l=0,e=g.length;l=0?parseFloat((g.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((g.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),E.isOldIE=E.isIE&&E.isIE<9,E.isGecko=E.isMozilla=g.match(/ Gecko\/\d+/),E.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",E.isWebKit=parseFloat(g.split("WebKit/")[1])||void 0,E.isChrome=parseFloat(g.split(" Chrome/")[1])||void 0,E.isEdge=parseFloat(g.split(" Edge/")[1])||void 0,E.isAIR=g.indexOf("AdobeAIR")>=0,E.isAndroid=g.indexOf("Android")>=0,E.isChromeOS=g.indexOf(" CrOS ")>=0,E.isIOS=/iPad|iPhone|iPod/.test(g)&&!window.MSStream,E.isIOS&&(E.isMac=!0),E.isMobile=E.isIOS||E.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(R,E,_){"use strict";var m=R("./useragent"),b="http://www.w3.org/1999/xhtml";E.buildDom=function n(t,r,o){if(typeof t=="string"&&t){var c=document.createTextNode(t);return r&&r.appendChild(c),c}if(!Array.isArray(t))return t&&t.appendChild&&r&&r.appendChild(t),t;if(typeof t[0]!="string"||!t[0]){for(var d=[],p=0;p"u")){if(a){if(r)l();else if(r===!1)return a.push([n,t])}if(!g){var o=r;!r||!r.getRootNode?o=document:(o=r.getRootNode(),(!o||o==r)&&(o=document));var c=o.ownerDocument||o;if(t&&E.hasCssString(t,o))return null;t&&(n+=`
/*# sourceURL=ace/css/`+t+" */");var d=E.createElement("style");d.appendChild(c.createTextNode(n)),t&&(d.id=t),o==c&&(o=E.getDocumentHead(c)),o.insertBefore(d,o.firstChild)}}}if(E.importCssString=e,E.importCssStylsheet=function(n,t){E.buildDom(["link",{rel:"stylesheet",href:n}],E.getDocumentHead(t))},E.scrollbarWidth=function(n){var t=E.createElement("ace_inner");t.style.width="100%",t.style.minWidth="0px",t.style.height="200px",t.style.display="block";var r=E.createElement("ace_outer"),o=r.style;o.position="absolute",o.left="-10000px",o.overflow="hidden",o.width="200px",o.minWidth="0px",o.height="150px",o.display="block",r.appendChild(t);var c=n&&n.documentElement||document&&document.documentElement;if(!c)return 0;c.appendChild(r);var d=t.offsetWidth;o.overflow="scroll";var p=t.offsetWidth;return d===p&&(p=r.clientWidth),c.removeChild(r),d-p},E.computedStyle=function(n,t){return window.getComputedStyle(n,"")||{}},E.setStyle=function(n,t,r){n[t]!==r&&(n[t]=r)},E.HAS_CSS_ANIMATION=!1,E.HAS_CSS_TRANSFORMS=!1,E.HI_DPI=m.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,m.isChromeOS&&(E.HI_DPI=!1),typeof document<"u"){var i=document.createElement("div");E.HI_DPI&&i.style.transform!==void 0&&(E.HAS_CSS_TRANSFORMS=!0),!m.isEdge&&typeof i.style.animationName<"u"&&(E.HAS_CSS_ANIMATION=!0),i=null}E.HAS_CSS_TRANSFORMS?E.translate=function(n,t,r){n.style.transform="translate("+Math.round(t)+"px, "+Math.round(r)+"px)"}:E.translate=function(n,t,r){n.style.top=Math.round(r)+"px",n.style.left=Math.round(t)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(R,E,_){/*
* based on code from:
*
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/"use strict";var m=R("./dom");E.get=function(b,g){var a=new XMLHttpRequest;a.open("GET",b,!0),a.onreadystatechange=function(){a.readyState===4&&g(a.responseText)},a.send(null)},E.loadScript=function(b,g){var a=m.getDocumentHead(),l=document.createElement("script");l.src=b,a.appendChild(l),l.onload=l.onreadystatechange=function(e,i){(i||!l.readyState||l.readyState=="loaded"||l.readyState=="complete")&&(l=l.onload=l.onreadystatechange=null,i||g())}},E.qualifyURL=function(b){var g=document.createElement("a");return g.href=b,g.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(R,E,_){"use strict";E.inherits=function(m,b){m.super_=b,m.prototype=Object.create(b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})},E.mixin=function(m,b){for(var g in b)m[g]=b[g];return m},E.implement=function(m,b){E.mixin(m,b)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(R,E,_){"use strict";var m={},b=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};m._emit=m._dispatchEvent=function(a,l){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var e=this._eventRegistry[a]||[],i=this._defaultHandlers[a];if(!(!e.length&&!i)){(typeof l!="object"||!l)&&(l={}),l.type||(l.type=a),l.stopPropagation||(l.stopPropagation=b),l.preventDefault||(l.preventDefault=g),e=e.slice();for(var n=0;n1&&(c=r[r.length-2]);var p=l[t+"Path"];return p==null?p=l.basePath:o=="/"&&(t=o=""),p&&p.slice(-1)!="/"&&(p+="/"),p+t+o+c+this.get("suffix")},E.setModuleUrl=function(n,t){return l.$moduleUrls[n]=t};var e=function(n,t){return n==="ace/theme/textmate"||n==="./theme/textmate"?t(null,R("./theme/textmate")):console.error("loader is not configured")};E.setLoader=function(n){e=n},E.dynamicModules=Object.create(null),E.$loading={},E.loadModule=function(n,t){var r,o;Array.isArray(n)&&(o=n[0],n=n[1]);var c=function(d){if(d&&!E.$loading[n])return t&&t(d);if(E.$loading[n]||(E.$loading[n]=[]),E.$loading[n].push(t),!(E.$loading[n].length>1)){var p=function(){e(n,function(x,y){E._emit("load.module",{name:n,module:y});var k=E.$loading[n];E.$loading[n]=null,k.forEach(function(M){M&&M(y)})})};if(!E.get("packaged"))return p();b.loadScript(E.moduleUrl(n,o),p),i()}};if(E.dynamicModules[n])E.dynamicModules[n]().then(function(d){d.default?c(d.default):c(d)});else{try{r=R(n)}catch{}c(r)}},E.setModuleLoader=function(n,t){E.dynamicModules[n]=t};var i=function(){!l.basePath&&!l.workerPath&&!l.modePath&&!l.themePath&&!Object.keys(l.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),i=function(){})};E.version="1.17.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(R,E,_){"use strict";R("./lib/fixoldbrowsers");var m=R("./config");m.setLoader(function(l,e){R([l],function(i){e(null,i)})});var b=function(){return this||typeof window<"u"&&window}();_.exports=function(l){m.init=g,l.require=R,l.define=s.amdD},g(!0);function g(l){if(!(!b||!b.document)){m.set("packaged",l||R.packaged||_.packaged||b.define&&s.amdD.packaged);var e={},i="",n=document.currentScript||document._currentScript,t=n&&n.ownerDocument||document;n&&n.src&&(i=n.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var r=t.getElementsByTagName("script"),o=0;o ["+this.end.row+"/"+this.end.column+"]"},g.prototype.contains=function(a,l){return this.compare(a,l)==0},g.prototype.compareRange=function(a){var l,e=a.end,i=a.start;return l=this.compare(e.row,e.column),l==1?(l=this.compare(i.row,i.column),l==1?2:l==0?1:0):l==-1?-2:(l=this.compare(i.row,i.column),l==-1?-1:l==1?42:0)},g.prototype.comparePoint=function(a){return this.compare(a.row,a.column)},g.prototype.containsRange=function(a){return this.comparePoint(a.start)==0&&this.comparePoint(a.end)==0},g.prototype.intersects=function(a){var l=this.compareRange(a);return l==-1||l==0||l==1},g.prototype.isEnd=function(a,l){return this.end.row==a&&this.end.column==l},g.prototype.isStart=function(a,l){return this.start.row==a&&this.start.column==l},g.prototype.setStart=function(a,l){typeof a=="object"?(this.start.column=a.column,this.start.row=a.row):(this.start.row=a,this.start.column=l)},g.prototype.setEnd=function(a,l){typeof a=="object"?(this.end.column=a.column,this.end.row=a.row):(this.end.row=a,this.end.column=l)},g.prototype.inside=function(a,l){return this.compare(a,l)==0?!(this.isEnd(a,l)||this.isStart(a,l)):!1},g.prototype.insideStart=function(a,l){return this.compare(a,l)==0?!this.isEnd(a,l):!1},g.prototype.insideEnd=function(a,l){return this.compare(a,l)==0?!this.isStart(a,l):!1},g.prototype.compare=function(a,l){return!this.isMultiLine()&&a===this.start.row?lthis.end.column?1:0:athis.end.row?1:this.start.row===a?l>=this.start.column?0:-1:this.end.row===a?l<=this.end.column?0:1:0},g.prototype.compareStart=function(a,l){return this.start.row==a&&this.start.column==l?-1:this.compare(a,l)},g.prototype.compareEnd=function(a,l){return this.end.row==a&&this.end.column==l?1:this.compare(a,l)},g.prototype.compareInside=function(a,l){return this.end.row==a&&this.end.column==l?1:this.start.row==a&&this.start.column==l?-1:this.compare(a,l)},g.prototype.clipRows=function(a,l){if(this.end.row>l)var e={row:l+1,column:0};else if(this.end.rowl)var i={row:l+1,column:0};else if(this.start.row1?(S++,S>4&&(S=1)):S=1,b.isIE){var T=Math.abs(C.clientX-A)>5||Math.abs(C.clientY-$)>5;(!u||T)&&(S=1),u&&clearTimeout(u),u=setTimeout(function(){u=null},y[S-1]||600),S==1&&(A=C.clientX,$=C.clientY)}if(C._clicks=S,k[M]("mousedown",C),S>4)S=0;else if(S>1)return k[M](f[S],C)}Array.isArray(x)||(x=[x]),x.forEach(function(C){t(C,"mousedown",w,v)})};var o=function(x){return 0|(x.ctrlKey?1:0)|(x.altKey?2:0)|(x.shiftKey?4:0)|(x.metaKey?8:0)};E.getModifierString=function(x){return m.KEY_MODS[o(x)]};function c(x,y,k){var M=o(y);if(!b.isMac&&g){if(y.getModifierState&&(y.getModifierState("OS")||y.getModifierState("Win"))&&(M|=8),g.altGr)if((3&M)!=3)g.altGr=0;else return;if(k===18||k===17){var v="location"in y?y.location:y.keyLocation;if(k===17&&v===1)g[k]==1&&(a=y.timeStamp);else if(k===18&&M===3&&v===2){var S=y.timeStamp-a;S<50&&(g.altGr=!0)}}}if(k in m.MODIFIER_KEYS&&(k=-1),!M&&k===13){var v="location"in y?y.location:y.keyLocation;if(v===3&&(x(y,M,-k),y.defaultPrevented))return}if(b.isChromeOS&&M&8){if(x(y,M,k),y.defaultPrevented)return;M&=-9}return!M&&!(k in m.FUNCTION_KEYS)&&!(k in m.PRINTABLE_KEYS)?!1:x(y,M,k)}E.addCommandKeyListener=function(x,y,k){if(b.isOldGecko||b.isOpera&&!("KeyboardEvent"in window)){var M=null;t(x,"keydown",function(S){M=S.keyCode},k),t(x,"keypress",function(S){return c(y,S,M)},k)}else{var v=null;t(x,"keydown",function(S){g[S.keyCode]=(g[S.keyCode]||0)+1;var A=c(y,S,S.keyCode);return v=S.defaultPrevented,A},k),t(x,"keypress",function(S){v&&(S.ctrlKey||S.altKey||S.shiftKey||S.metaKey)&&(E.stopEvent(S),v=null)},k),t(x,"keyup",function(S){g[S.keyCode]=null},k),g||(d(),t(window,"focus",d))}};function d(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!b.isOldIE){var p=1;E.nextTick=function(x,y){y=y||window;var k="zero-timeout-message-"+p++,M=function(v){v.data==k&&(E.stopPropagation(v),r(y,"message",M),x())};t(y,"message",M),y.postMessage(k,"*")}}E.$idleBlocked=!1,E.onIdle=function(x,y){return setTimeout(function k(){E.$idleBlocked?setTimeout(k,100):x()},y)},E.$idleBlockId=null,E.blockIdle=function(x){E.$idleBlockId&&clearTimeout(E.$idleBlockId),E.$idleBlocked=!0,E.$idleBlockId=setTimeout(function(){E.$idleBlocked=!1},x||100)},E.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),E.nextFrame?E.nextFrame=E.nextFrame.bind(window):E.nextFrame=function(x){setTimeout(x,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(R,E,_){"use strict";var m;_.exports={lineMode:!1,pasteCancelled:function(){return m&&m>Date.now()-50?!0:m=!1},cancel:function(){m=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(R,E,_){"use strict";var m=R("../lib/event"),b=R("../lib/useragent"),g=R("../lib/dom"),a=R("../lib/lang"),l=R("../clipboard"),e=b.isChrome<18,i=b.isIE,n=b.isChrome>63,t=400,r=R("../lib/keys"),o=r.KEY_MODS,c=b.isIOS,d=c?/\s/:/\n/,p=b.isMobile,x=function(y,k){var M=g.createElement("textarea");M.className="ace_text-input",M.setAttribute("wrap","off"),M.setAttribute("autocorrect","off"),M.setAttribute("autocapitalize","off"),M.setAttribute("spellcheck",!1),M.style.opacity="0",y.insertBefore(M,y.firstChild);var v=!1,S=!1,A=!1,$=!1,u="";p||(M.style.fontSize="1px");var f=!1,w=!1,C="",T=0,I=0,F=0;try{var O=document.activeElement===M}catch{}this.setAriaOptions=function(z){z.activeDescendant?(M.setAttribute("aria-haspopup","true"),M.setAttribute("aria-autocomplete",z.inline?"both":"list"),M.setAttribute("aria-activedescendant",z.activeDescendant)):(M.setAttribute("aria-haspopup","false"),M.setAttribute("aria-autocomplete","both"),M.removeAttribute("aria-activedescendant")),z.role&&M.setAttribute("role",z.role)},this.setAriaOptions({role:"textbox"}),m.addListener(M,"blur",function(z){w||(k.onBlur(z),O=!1,p&&!c&&document.removeEventListener("selectionchange",B))},k),m.addListener(M,"focus",function(z){if(!w){if(O=!0,b.isEdge)try{if(!document.hasFocus())return}catch{}k.onFocus(z),b.isEdge?setTimeout(D):D(),p&&!c&&document.addEventListener("selectionchange",B)}},k),this.$focusScroll=!1,this.focus=function(){if(u||n||this.$focusScroll=="browser")return M.focus({preventScroll:!0});var z=M.style.top;M.style.position="fixed",M.style.top="0px";try{var Z=M.getBoundingClientRect().top!=0}catch{return}var q=[];if(Z)for(var se=M.parentElement;se&&se.nodeType==1;)q.push(se),se.setAttribute("ace_nocontext",!0),!se.parentElement&&se.getRootNode?se=se.getRootNode().host:se=se.parentElement;M.focus({preventScroll:!0}),Z&&q.forEach(function(ae){ae.removeAttribute("ace_nocontext")}),setTimeout(function(){M.style.position="",M.style.top=="0px"&&(M.style.top=z)},0)},this.blur=function(){M.blur()},this.isFocused=function(){return O},k.on("beforeEndOperation",function(){var z=k.curOp,Z=z&&z.command&&z.command.name;if(Z!="insertstring"){var q=Z&&(z.docChanged||z.selectionChanged);A&&q&&(C=M.value="",re()),D()}});var D=c?function(z){if(!(!O||v&&!z||$)){z||(z="");var Z=`
 ab`+z+`cde fg
`;Z!=M.value&&(M.value=C=Z);var q=4,se=4+(z.length||(k.selection.isEmpty()?0:1));(T!=q||I!=se)&&M.setSelectionRange(q,se),T=q,I=se}}:function(){if(!(A||$)&&!(!O&&!N)){A=!0;var z=0,Z=0,q="";if(k.session){var se=k.selection,ae=se.getRange(),he=se.cursor.row;if(z=ae.start.column,Z=ae.end.column,q=k.session.getLine(he),ae.start.row!=he){var ge=k.session.getLine(he-1);z=ae.start.rowhe+1?pe.length:Z,Z+=q.length+1,q=q+`
`+pe}else p&&he>0&&(q=`
`+q,Z+=1,z+=1);q.length>t&&(z=C.length&&z.value===C&&C&&z.selectionEnd!==I},U=function(z){A||(v?v=!1:W(M)?(k.selectAll(),D()):p&&M.selectionStart!=T&&D())};function B(z){if((!M||!M.parentNode)&&document.removeEventListener("selectionchange",B),!A&&M.selectionStart===M.selectionEnd){var Z=M.selectionStart-T,q=I-T;Z>0?Z=Math.max(Z-q,1):Z===0&&q&&(Z=-1);for(var se=Math.abs(Z),ae=Z>0?r.right:r.left,he=0;he0&&C[ue]==z[ue];)ue++,ae--;for(ge=ge.slice(ue),ue=1;he>0&&C.length-ue>T-1&&C[C.length-ue]==z[z.length-ue];)ue++,he--;pe-=ue-1,ce-=ue-1;var be=ge.length-ue+1;if(be<0&&(ae=-be,be=0),ge=ge.slice(0,be),!Z&&!ge&&!pe&&!ae&&!he&&!ce)return"";$=!0;var we=!1;return b.isAndroid&&ge==". "&&(ge="  ",we=!0),ge&&!ae&&!he&&!pe&&!ce||f?k.onTextInput(ge):k.onTextInput(ge,{extendLeft:ae,extendRight:he,restoreStart:pe,restoreEnd:ce}),$=!1,C=z,T=q,I=se,F=ce,we?`
`:ge},G=function(z){if(A)return ie();if(z&&z.inputType){if(z.inputType=="historyUndo")return k.execCommand("undo");if(z.inputType=="historyRedo")return k.execCommand("redo")}var Z=M.value,q=P(Z,!0);(Z.length>t+100||d.test(q)||p&&T<1&&T==I)&&D()},J=function(z,Z,q){var se=z.clipboardData||window.clipboardData;if(!(!se||e)){var ae=i||q?"Text":"text/plain";try{return Z?se.setData(ae,Z)!==!1:se.getData(ae)}catch(he){if(!q)return J(he,Z,!0)}}},ne=function(z,Z){var q=k.getCopyText();if(!q)return m.preventDefault(z);J(z,q)?(c&&(D(q),v=q,setTimeout(function(){v=!1},10)),Z?k.onCut():k.onCopy(),m.preventDefault(z)):(v=!0,M.value=q,M.select(),setTimeout(function(){v=!1,D(),Z?k.onCut():k.onCopy()}))},K=function(z){ne(z,!0)},X=function(z){ne(z,!1)},Q=function(z){var Z=J(z);l.pasteCancelled()||(typeof Z=="string"?(Z&&k.onPaste(Z,z),b.isIE&&setTimeout(D),m.preventDefault(z)):(M.value="",S=!0))};m.addCommandKeyListener(M,k.onCommandKey.bind(k),k),m.addListener(M,"select",U,k),m.addListener(M,"input",G,k),m.addListener(M,"cut",K,k),m.addListener(M,"copy",X,k),m.addListener(M,"paste",Q,k),(!("oncut"in M)||!("oncopy"in M)||!("onpaste"in M))&&m.addListener(y,"keydown",function(z){if(!(b.isMac&&!z.metaKey||!z.ctrlKey))switch(z.keyCode){case 67:X(z);break;case 86:Q(z);break;case 88:K(z);break}},k);var Y=function(z){if(!(A||!k.onCompositionStart||k.$readOnly)&&(A={},!f)){z.data&&(A.useTextareaForIME=!1),setTimeout(ie,0),k._signal("compositionStart"),k.on("mousedown",oe);var Z=k.getSelectionRange();Z.end.row=Z.start.row,Z.end.column=Z.start.column,A.markerRange=Z,A.selectionStart=T,k.onCompositionStart(A),A.useTextareaForIME?(C=M.value="",T=0,I=0):(M.msGetInputContext&&(A.context=M.msGetInputContext()),M.getInputContext&&(A.context=M.getInputContext()))}},ie=function(){if(!(!A||!k.onCompositionUpdate||k.$readOnly)){if(f)return oe();if(A.useTextareaForIME)k.onCompositionUpdate(M.value);else{var z=M.value;P(z),A.markerRange&&(A.context&&(A.markerRange.start.column=A.selectionStart=A.context.compositionStartOffset),A.markerRange.end.column=A.markerRange.start.column+I-A.selectionStart+F)}}},re=function(z){!k.onCompositionEnd||k.$readOnly||(A=!1,k.onCompositionEnd(),k.off("mousedown",oe),z&&G())};function oe(){w=!0,M.blur(),M.focus(),w=!1}var te=a.delayedCall(ie,50).schedule.bind(null,null);function le(z){z.keyCode==27&&M.value.lengthI&&C[ce]==`
`?ue=r.end:peI&&C.slice(0,ce).split(`
`).length>2?ue=r.down:ce>I&&C[ce-1]==" "?(ue=r.right,be=o.option):(ce>I||ce==I&&I!=T&&pe==ce)&&(ue=r.right),pe!==ce&&(be|=o.shift),ue){var we=Z.onCommandKey({},be,ue);if(!we&&Z.commands){ue=r.keyCodeToString(ue);var xe=Z.commands.findKeyCommand(be,ue);xe&&Z.execCommand(xe)}T=pe,I=ce,D("")}}};document.addEventListener("selectionchange",he),Z.on("destroy",function(){document.removeEventListener("selectionchange",he)})}this.destroy=function(){M.parentElement&&M.parentElement.removeChild(M)}};E.TextInput=x,E.$setUserAgentForTests=function(y,k){p=y,c=k}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(R,E,_){"use strict";var m=R("../lib/useragent"),b=0,g=550,a=function(){function i(n){n.$clickSelection=null;var t=n.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(n)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(n)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(n)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(n)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(n));var r=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];r.forEach(function(o){n[o]=this[o]},this),n.selectByLines=this.extendSelectionBy.bind(n,"getLineRange"),n.selectByWords=this.extendSelectionBy.bind(n,"getWordRange")}return i.prototype.onMouseDown=function(n){var t=n.inSelection(),r=n.getDocumentPosition();this.mousedownEvent=n;var o=this.editor,c=n.getButton();if(c!==0){var d=o.getSelectionRange(),p=d.isEmpty();(p||c==1)&&o.selection.moveToPosition(r),c==2&&(o.textInput.onContextMenu(n.domEvent),m.isMozilla||n.preventDefault());return}if(this.mousedownEvent.time=Date.now(),t&&!o.isFocused()&&(o.focus(),this.$focusTimeout&&!this.$clickSelection&&!o.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(n);return}return this.captureMouse(n),this.startSelect(r,n.domEvent._clicks>1),n.preventDefault()},i.prototype.startSelect=function(n,t){n=n||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var r=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?r.selection.selectToPosition(n):t||r.selection.moveToPosition(n),t||this.select(),r.setStyle("ace_selecting"),this.setState("select"))},i.prototype.select=function(){var n,t=this.editor,r=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var o=this.$clickSelection.comparePoint(r);if(o==-1)n=this.$clickSelection.end;else if(o==1)n=this.$clickSelection.start;else{var c=e(this.$clickSelection,r);r=c.cursor,n=c.anchor}t.selection.setSelectionAnchor(n.row,n.column)}t.selection.selectToPosition(r),t.renderer.scrollCursorIntoView()},i.prototype.extendSelectionBy=function(n){var t,r=this.editor,o=r.renderer.screenToTextCoordinates(this.x,this.y),c=r.selection[n](o.row,o.column);if(this.$clickSelection){var d=this.$clickSelection.comparePoint(c.start),p=this.$clickSelection.comparePoint(c.end);if(d==-1&&p<=0)t=this.$clickSelection.end,(c.end.row!=o.row||c.end.column!=o.column)&&(o=c.start);else if(p==1&&d>=0)t=this.$clickSelection.start,(c.start.row!=o.row||c.start.column!=o.column)&&(o=c.end);else if(d==-1&&p==1)o=c.end,t=c.start;else{var x=e(this.$clickSelection,o);o=x.cursor,t=x.anchor}r.selection.setSelectionAnchor(t.row,t.column)}r.selection.selectToPosition(o),r.renderer.scrollCursorIntoView()},i.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},i.prototype.focusWait=function(){var n=l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();(n>b||t-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},i.prototype.onDoubleClick=function(n){var t=n.getDocumentPosition(),r=this.editor,o=r.session,c=o.getBracketRange(t);c?(c.isEmpty()&&(c.start.column--,c.end.column++),this.setState("select")):(c=r.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=c,this.select()},i.prototype.onTripleClick=function(n){var t=n.getDocumentPosition(),r=this.editor;this.setState("selectByLines");var o=r.getSelectionRange();o.isMultiLine()&&o.contains(t.row,t.column)?(this.$clickSelection=r.selection.getLineRange(o.start.row),this.$clickSelection.end=r.selection.getLineRange(o.end.row).end):this.$clickSelection=r.selection.getLineRange(t.row),this.select()},i.prototype.onQuadClick=function(n){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},i.prototype.onMouseWheel=function(n){if(!n.getAccelKey()){n.getShiftKey()&&n.wheelY&&!n.wheelX&&(n.wheelX=n.wheelY,n.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var r=this.$lastScroll,o=n.domEvent.timeStamp,c=o-r.t,d=c?n.wheelX/c:r.vx,p=c?n.wheelY/c:r.vy;c=1&&t.renderer.isScrollableBy(n.wheelX*n.speed,0)&&(y=!0),x<=1&&t.renderer.isScrollableBy(0,n.wheelY*n.speed)&&(y=!0),y)r.allowed=o;else if(o-r.allowedn.session.documentToScreenRow(A.row,A.column))return x()}for(var $={error:[],warning:[],info:[]},u={error:{singular:"error",plural:"errors"},warning:{singular:"warning",plural:"warnings"},info:{singular:"information message",plural:"information messages"}},f=t.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",w=0;w  ").concat(M.text[w]);$[M.type[w]].push(C)}var T="
";T+=[].concat($.error,$.warning,$.info).join("
"),T+="
";for(var I=!1,F="
",w=0;w<3;w++){var O=["error","warning","info"][w];if($[O].length>0){var D=$[O].length===1?u[O].singular:u[O].plural;F+="".concat(I?", ":"").concat($[O].length," ").concat(D),I=!0}}if(F+="
",d=F+T,r.setHtml(d),r.setClassName("ace_gutter-tooltip"),r.$element.setAttribute("aria-live","polite"),r.show(),n._signal("showGutterTooltip",r),n.on("mousewheel",x),i.$tooltipFollowsMouse)y(c);else{var W=c.domEvent.target,U=W.getBoundingClientRect(),B=r.getElement().style;B.left=U.right+"px",B.top=U.bottom+"px"}}function x(){o&&(o=clearTimeout(o)),d&&(r.hide(),d=null,n._signal("hideGutterTooltip",r),n.off("mousewheel",x))}function y(k){r.setPosition(k.x,k.y)}i.editor.setDefaultHandler("guttermousemove",function(k){var M=k.domEvent.target||k.domEvent.srcElement;if(b.hasCssClass(M,"ace_fold-widget"))return x();d&&i.$tooltipFollowsMouse&&y(k),c=k,!o&&(o=setTimeout(function(){o=null,c&&!i.isMousePressed?p():x()},50))}),g.addListener(n.renderer.$gutter,"mouseout",function(k){c=null,!(!d||o)&&(o=setTimeout(function(){o=null,x()},50))},n),n.on("changeSession",x)}var e=function(i){m(n,i);function n(){return i!==null&&i.apply(this,arguments)||this}return n.prototype.setPosition=function(t,r){var o=window.innerWidth||document.documentElement.clientWidth,c=window.innerHeight||document.documentElement.clientHeight,d=this.getWidth(),p=this.getHeight();t+=15,r+=15,t+d>o&&(t-=t+d-o),r+p>c&&(r-=20+p),a.prototype.setPosition.call(this,t,r)},n}(a);E.GutterHandler=l}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(R,E,_){"use strict";var m=R("../lib/event"),b=R("../lib/useragent"),g=function(){function a(l,e){this.domEvent=l,this.editor=e,this.x=this.clientX=l.clientX,this.y=this.clientY=l.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1,this.getAccelKey=b.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}return a.prototype.stopPropagation=function(){m.stopPropagation(this.domEvent),this.propagationStopped=!0},a.prototype.preventDefault=function(){m.preventDefault(this.domEvent),this.defaultPrevented=!0},a.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},a.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},a.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var l=this.editor,e=l.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var i=this.getDocumentPosition();this.$inSelection=e.contains(i.row,i.column)}return this.$inSelection},a.prototype.getButton=function(){return m.getButton(this.domEvent)},a.prototype.getShiftKey=function(){return this.domEvent.shiftKey},a}();E.MouseEvent=g}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(R,E,_){"use strict";var m=R("../lib/dom"),b=R("../lib/event"),g=R("../lib/useragent"),a=200,l=200,e=5;function i(t){var r=t.editor,o=m.createElement("div");o.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",o.textContent="\xA0";var c=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];c.forEach(function(H){t[H]=this[H]},this),r.on("mousedown",this.onMouseDown.bind(t));var d=r.container,p,x,y,k,M,v,S=0,A,$,u,f,w;this.onDragStart=function(H){if(this.cancelDrag||!d.draggable){var N=this;return setTimeout(function(){N.startSelect(),N.captureMouse(H)},0),H.preventDefault()}M=r.getSelectionRange();var P=H.dataTransfer;P.effectAllowed=r.getReadOnly()?"copy":"copyMove",r.container.appendChild(o),P.setDragImage&&P.setDragImage(o,0,0),setTimeout(function(){r.container.removeChild(o)}),P.clearData(),P.setData("Text",r.session.getTextRange()),$=!0,this.setState("drag")},this.onDragEnd=function(H){if(d.draggable=!1,$=!1,this.setState(null),!r.getReadOnly()){var N=H.dataTransfer.dropEffect;!A&&N=="move"&&r.session.remove(r.getSelectionRange()),r.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(H){if(!(r.getReadOnly()||!U(H.dataTransfer)))return x=H.clientX,y=H.clientY,p||F(),S++,H.dataTransfer.dropEffect=A=B(H),b.preventDefault(H)},this.onDragOver=function(H){if(!(r.getReadOnly()||!U(H.dataTransfer)))return x=H.clientX,y=H.clientY,p||(F(),S++),D!==null&&(D=null),H.dataTransfer.dropEffect=A=B(H),b.preventDefault(H)},this.onDragLeave=function(H){if(S--,S<=0&&p)return O(),A=null,b.preventDefault(H)},this.onDrop=function(H){if(v){var N=H.dataTransfer;if($)switch(A){case"move":M.contains(v.row,v.column)?M={start:v,end:v}:M=r.moveText(M,v);break;case"copy":M=r.moveText(M,v,!0);break}else{var P=N.getData("Text");M={start:v,end:r.session.insert(v,P)},r.focus(),A=null}return O(),b.preventDefault(H)}},b.addListener(d,"dragstart",this.onDragStart.bind(t),r),b.addListener(d,"dragend",this.onDragEnd.bind(t),r),b.addListener(d,"dragenter",this.onDragEnter.bind(t),r),b.addListener(d,"dragover",this.onDragOver.bind(t),r),b.addListener(d,"dragleave",this.onDragLeave.bind(t),r),b.addListener(d,"drop",this.onDrop.bind(t),r);function C(H,N){var P=Date.now(),G=!N||H.row!=N.row,J=!N||H.column!=N.column;if(!f||G||J)r.moveCursorToPosition(H),f=P,w={x,y};else{var ne=n(w.x,w.y,x,y);ne>e?f=null:P-f>=l&&(r.renderer.scrollCursorIntoView(),f=null)}}function T(H,N){var P=Date.now(),G=r.renderer.layerConfig.lineHeight,J=r.renderer.layerConfig.characterWidth,ne=r.renderer.scroller.getBoundingClientRect(),K={x:{left:x-ne.left,right:ne.right-x},y:{top:y-ne.top,bottom:ne.bottom-y}},X=Math.min(K.x.left,K.x.right),Q=Math.min(K.y.top,K.y.bottom),Y={row:H.row,column:H.column};X/J<=2&&(Y.column+=K.x.left=a&&r.renderer.scrollCursorIntoView(Y):u=P:u=null}function I(){var H=v;v=r.renderer.screenToTextCoordinates(x,y),C(v,H),T(v,H)}function F(){M=r.selection.toOrientedRange(),p=r.session.addMarker(M,"ace_selection",r.getSelectionStyle()),r.clearSelection(),r.isFocused()&&r.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),I(),k=setInterval(I,20),S=0,b.addListener(document,"mousemove",W)}function O(){clearInterval(k),r.session.removeMarker(p),p=null,r.selection.fromOrientedRange(M),r.isFocused()&&!$&&r.$resetCursorStyle(),M=null,v=null,S=0,u=null,f=null,b.removeListener(document,"mousemove",W)}var D=null;function W(){D==null&&(D=setTimeout(function(){D!=null&&p&&O()},20))}function U(H){var N=H.types;return!N||Array.prototype.some.call(N,function(P){return P=="text/plain"||P=="Text"})}function B(H){var N=["copy","copymove","all","uninitialized"],P=["move","copymove","linkmove","all","uninitialized"],G=g.isMac?H.altKey:H.ctrlKey,J="uninitialized";try{J=H.dataTransfer.effectAllowed.toLowerCase()}catch{}var ne="none";return G&&N.indexOf(J)>=0?ne="copy":P.indexOf(J)>=0?ne="move":N.indexOf(J)>=0&&(ne="copy"),ne}}(function(){this.dragWait=function(){var t=Date.now()-this.mousedownEvent.time;t>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var t=this.editor.container;t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(t){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var t=this.editor,r=t.container;r.draggable=!0,t.renderer.$cursorLayer.setBlinking(!1),t.setStyle("ace_dragging");var o=g.isWin?"default":"move";t.renderer.setCursorStyle(o),this.setState("dragReady")},this.onMouseDrag=function(t){var r=this.editor.container;if(g.isIE&&this.state=="dragReady"){var o=n(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);o>3&&r.dragDrop()}if(this.state==="dragWait"){var o=n(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);o>0&&(r.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(t){if(this.$dragEnabled){this.mousedownEvent=t;var r=this.editor,o=t.inSelection(),c=t.getButton(),d=t.domEvent.detail||1;if(d===1&&c===0&&o){if(t.editor.inMultiSelectMode&&(t.getAccelKey()||t.getShiftKey()))return;this.mousedownEvent.time=Date.now();var p=t.domEvent.target||t.domEvent.srcElement;if("unselectable"in p&&(p.unselectable="on"),r.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var x=r.container;x.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(t,this.onMouseDrag.bind(this)),t.defaultPrevented=!0}}}}).call(i.prototype);function n(t,r,o,c){return Math.sqrt(Math.pow(o-t,2)+Math.pow(c-r,2))}E.DragdropHandler=i}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(R,E,_){"use strict";var m=R("./mouse_event").MouseEvent,b=R("../lib/event"),g=R("../lib/dom");E.addTouchListeners=function(a,l){var e="scroll",i,n,t,r,o,c,d=0,p,x=0,y=0,k=0,M,v;function S(){var C=window.navigator&&window.navigator.clipboard,T=!1,I=function(){var O=l.getCopyText(),D=l.session.getUndoManager().hasUndo();v.replaceChild(g.buildDom(T?["span",!O&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],O&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],O&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],C&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],D&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),v.firstChild)},F=function(O){var D=O.target.getAttribute("action");if(D=="more"||!T)return T=!T,I();D=="paste"?C.readText().then(function(W){l.execCommand(D,W)}):D&&((D=="cut"||D=="copy")&&(C?C.writeText(l.getCopyText()):document.execCommand("copy")),l.execCommand(D)),v.firstChild.style.display="none",T=!1,D!="openCommandPallete"&&l.focus()};v=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(O){e="menu",O.stopPropagation(),O.preventDefault(),l.textInput.focus()},ontouchend:function(O){O.stopPropagation(),O.preventDefault(),F(O)},onclick:F},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],l.container)}function A(){v||S();var C=l.selection.cursor,T=l.renderer.textToScreenCoordinates(C.row,C.column),I=l.renderer.textToScreenCoordinates(0,0).pageX,F=l.renderer.scrollLeft,O=l.container.getBoundingClientRect();v.style.top=T.pageY-O.top-3+"px",T.pageX-O.left=2?l.selection.getLineRange(p.row):l.session.getBracketRange(p);C&&!C.isEmpty()?l.selection.setRange(C):l.selection.selectWord(),e="wait"}b.addListener(a,"contextmenu",function(C){if(M){var T=l.textInput.getElement();T.focus()}},l),b.addListener(a,"touchstart",function(C){var T=C.touches;if(o||T.length>1){clearTimeout(o),o=null,t=-1,e="zoom";return}M=l.$mouseHandler.isMousePressed=!0;var I=l.renderer.layerConfig.lineHeight,F=l.renderer.layerConfig.lineHeight,O=C.timeStamp;r=O;var D=T[0],W=D.clientX,U=D.clientY;Math.abs(i-W)+Math.abs(n-U)>I&&(t=-1),i=C.clientX=W,n=C.clientY=U,y=k=0;var B=new m(C,l);if(p=B.getDocumentPosition(),O-t<500&&T.length==1&&!d)x++,C.preventDefault(),C.button=0,f();else{x=0;var H=l.selection.cursor,N=l.selection.isEmpty()?H:l.selection.anchor,P=l.renderer.$cursorLayer.getPixelPosition(H,!0),G=l.renderer.$cursorLayer.getPixelPosition(N,!0),J=l.renderer.scroller.getBoundingClientRect(),ne=l.renderer.layerConfig.offset,K=l.renderer.scrollLeft,X=function(ie,re){return ie=ie/F,re=re/I-.75,ie*ie+re*re};if(C.clientXY?"cursor":"anchor"),Y<3.5?e="anchor":Q<3.5?e="cursor":e="scroll",o=setTimeout(u,450)}t=O},l),b.addListener(a,"touchend",function(C){M=l.$mouseHandler.isMousePressed=!1,c&&clearInterval(c),e=="zoom"?(e="",d=0):o?(l.selection.moveToPosition(p),d=0,A()):e=="scroll"?(w(),$()):A(),clearTimeout(o),o=null},l),b.addListener(a,"touchmove",function(C){o&&(clearTimeout(o),o=null);var T=C.touches;if(!(T.length>1||e=="zoom")){var I=T[0],F=i-I.clientX,O=n-I.clientY;if(e=="wait")if(F*F+O*O>4)e="cursor";else return C.preventDefault();i=I.clientX,n=I.clientY,C.clientX=I.clientX,C.clientY=I.clientY;var D=C.timeStamp,W=D-r;if(r=D,e=="scroll"){var U=new m(C,l);U.speed=1,U.wheelX=F,U.wheelY=O,10*Math.abs(F)0)if(ve==16){for(fe=me;fe-1){for(fe=me;fe=0&&Y[q]==u;q--)X[q]=g}}}function P(K,X,Q){if(!(a=K){for(re=ie+1;re=K;)re++;for(oe=ie,te=re-1;oe=X.length||(re=Q[Y-1])!=k&&re!=M||(oe=X[Y+1])!=k&&oe!=M?v:(l&&(oe=M),oe==re?oe:v);case w:return re=Y>0?Q[Y-1]:S,re==k&&Y+10&&Q[Y-1]==k)return k;if(l)return v;for(le=Y+1,te=X.length;le=1425&&ve<=2303||ve==64286;if(re=X[le],ye&&(re==y||re==$))return y}return Y<1||(re=X[Y-1])==S?v:Q[Y-1];case S:return l=!1,i=!0,g;case A:return n=!0,v;case I:case F:case D:case W:case O:l=!1;case U:return v}}function J(K){var X=K.charCodeAt(0),Q=X>>8;return Q==0?X>191?x:B[X]:Q==5?/[\u0591-\u05f4]/.test(K)?y:x:Q==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(K)?T:/[\u0660-\u0669\u066b-\u066c]/.test(K)?M:X==1642?C:/[\u06f0-\u06f9]/.test(K)?k:$:Q==32&&X<=8287?H[X&255]:Q==254&&X>=65136?$:v}function ne(K){return K>="\u064B"&&K<="\u0655"}E.L=x,E.R=y,E.EN=k,E.ON_R=3,E.AN=4,E.R_H=5,E.B=6,E.RLE=7,E.DOT="\xB7",E.doBidiReorder=function(K,X,Q){if(K.length<2)return{};var Y=K.split(""),ie=new Array(Y.length),re=new Array(Y.length),oe=[];g=Q?p:d,N(Y,oe,Y.length,X);for(var te=0;te$&&X[te]0&&Y[te-1]==="\u0644"&&/\u0622|\u0623|\u0625|\u0627/.test(Y[te])&&(oe[te-1]=oe[te]=E.R_H,te++);Y[Y.length-1]===E.DOT&&(oe[Y.length-1]=E.B),Y[0]==="\u202B"&&(oe[0]=E.RLE);for(var te=0;te=0&&(e=this.session.$docRowCache[n])}return e},l.prototype.getSplitIndex=function(){var e=0,i=this.session.$screenRowCache;if(i.length)for(var n,t=this.session.$getRowCacheIndex(i,this.currentRow);this.currentRow-e>0&&(n=this.session.$getRowCacheIndex(i,this.currentRow-e-1),n===t);)t=n,e++;else e=this.currentRow;return e},l.prototype.updateRowLine=function(e,i){e===void 0&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1,t=n?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var r=this.session.$wrapData[e];r&&(i===void 0&&(i=this.getSplitIndex()),i>0&&r.length?(this.wrapIndent=r.indent,this.wrapOffset=this.wrapIndent*this.charWidths[m.L],this.line=ii?this.session.getOverwrite()?e:e-1:i,t=m.getVisualFromLogicalIdx(n,this.bidiMap),r=this.bidiMap.bidiLevels,o=0;!this.session.getOverwrite()&&e<=i&&r[t]%2!==0&&t++;for(var c=0;ci&&r[t]%2===0&&(o+=this.charWidths[r[t]]),this.wrapIndent&&(o+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(o+=this.rtlLineOffset),o},l.prototype.getSelections=function(e,i){var n=this.bidiMap,t=n.bidiLevels,r,o=[],c=0,d=Math.min(e,i)-this.wrapIndent,p=Math.max(e,i)-this.wrapIndent,x=!1,y=!1,k=0;this.wrapIndent&&(c+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var M,v=0;v=d&&Mt+c/2;){if(t+=c,r===o.length-1){c=0;break}c=this.charWidths[o[++r]]}return r>0&&o[r-1]%2!==0&&o[r]%2===0?(n0&&o[r-1]%2===0&&o[r]%2!==0?i=1+(n>t?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===o.length-1&&c===0&&o[r-1]%2===0||!this.isRtlDir&&r===0&&o[r]%2!==0?i=1+this.bidiMap.logicalFromVisual[r]:(r>0&&o[r-1]%2!==0&&c!==0&&r--,i=this.bidiMap.logicalFromVisual[r]),i===0&&this.isRtlDir&&i++,i+this.wrapIndent},l}();E.BidiHandler=a}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(R,E,_){"use strict";var m=R("./lib/oop"),b=R("./lib/lang"),g=R("./lib/event_emitter").EventEmitter,a=R("./range").Range,l=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var i=this;this.cursor.on("change",function(n){i.$cursorChanged=!0,i.$silent||i._emit("changeCursor"),!i.$isEmpty&&!i.$silent&&i._emit("changeSelection"),!i.$keepDesiredColumnOnChange&&n.old.column!=n.value.column&&(i.$desiredColumn=null)}),this.anchor.on("change",function(){i.$anchorChanged=!0,!i.$isEmpty&&!i.$silent&&i._emit("changeSelection")})};(function(){m.implement(this,g),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setAnchor=function(e,i){this.$isEmpty=!1,this.anchor.setPosition(e,i)},this.setSelectionAnchor=this.setAnchor,this.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionAnchor=this.getAnchor,this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,i=this.lead;return e.row>i.row||e.row==i.row&&e.column>i.column},this.getRange=function(){var e=this.anchor,i=this.lead;return this.$isEmpty?a.fromPoints(i,i):this.isBackwards()?a.fromPoints(i,e):a.fromPoints(e,i)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,i){var n=i?e.end:e.start,t=i?e.start:e.end;this.$setSelection(n.row,n.column,t.row,t.column)},this.$setSelection=function(e,i,n,t){if(!this.$silent){var r=this.$isEmpty,o=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,i),this.cursor.setPosition(n,t),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||r!=this.$isEmpty||o)&&this._emit("changeSelection")}},this.$moveSelection=function(e){var i=this.lead;this.$isEmpty&&this.setSelectionAnchor(i.row,i.column),e.call(this)},this.selectTo=function(e,i){this.$moveSelection(function(){this.moveCursorTo(e,i)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,i){this.clearSelection(),this.moveCursorTo(e,i)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,i){if(typeof i>"u"){var n=e||this.lead;e=n.row,i=n.column}return this.session.getWordRange(e,i)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),i=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(i)},this.getLineRange=function(e,i){var n=typeof e=="number"?e:this.lead.row,t,r=this.session.getFoldLine(n);return r?(n=r.start.row,t=r.end.row):t=n,i===!0?new a(n,0,t,this.session.getLine(t).length):new a(n,0,t+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,i,n){var t=e.column,r=e.column+i;return n<0&&(t=e.column-i,r=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(t,r).split(" ").length-1==i},this.moveCursorLeft=function(){var e=this.lead.getPosition(),i;if(i=this.session.getFoldAt(e.row,e.column,-1))this.moveCursorTo(i.start.row,i.start.column);else if(e.column===0)e.row>0&&this.moveCursorTo(e.row-1,this.doc.getLine(e.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(e,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e=this.lead.getPosition(),i;if(i=this.session.getFoldAt(e.row,e.column,1))this.moveCursorTo(i.end.row,i.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(i.column=t)}}this.moveCursorTo(i.row,i.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,i=this.doc.getLine(e).length;this.moveCursorTo(e,i)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,i=this.lead.column,n=this.doc.getLine(e),t=n.substring(i);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var r=this.session.getFoldAt(e,i,1);if(r){this.moveCursorTo(r.end.row,r.end.column);return}if(this.session.nonTokenRe.exec(t)&&(i+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,t=n.substring(i)),i>=n.length){this.moveCursorTo(e,n.length),this.moveCursorRight(),e0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(r)&&(i-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,i)},this.$shortWordEndIndex=function(e){var i=0,n,t=/\s/,r=this.session.tokenRe;if(r.lastIndex=0,this.session.tokenRe.exec(e))i=this.session.tokenRe.lastIndex;else{for(;(n=e[i])&&t.test(n);)i++;if(i<1){for(r.lastIndex=0;(n=e[i])&&!r.test(n);)if(r.lastIndex=0,i++,t.test(n))if(i>2){i--;break}else{for(;(n=e[i])&&t.test(n);)i++;if(i>2)break}}}return r.lastIndex=0,i},this.moveCursorShortWordRight=function(){var e=this.lead.row,i=this.lead.column,n=this.doc.getLine(e),t=n.substring(i),r=this.session.getFoldAt(e,i,1);if(r)return this.moveCursorTo(r.end.row,r.end.column);if(i==n.length){var o=this.doc.getLength();do e++,t=this.doc.getLine(e);while(e0&&/^\s*$/.test(t));i=t.length,/\s+$/.test(t)||(t="")}var r=b.stringReverse(t),o=this.$shortWordEndIndex(r);return this.moveCursorTo(e,i-o)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,i){var n=this.session.documentToScreenPosition(this.lead.row,this.lead.column),t;if(i===0&&(e!==0&&(this.session.$bidiHandler.isBidiRow(n.row,this.lead.row)?(t=this.session.$bidiHandler.getPosLeft(n.column),n.column=Math.round(t/this.session.$bidiHandler.charWidths[0])):t=n.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?n.column=this.$desiredColumn:this.$desiredColumn=n.column),e!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var r=this.session.lineWidgets[this.lead.row];e<0?e-=r.rowsAbove||0:e>0&&(e+=r.rowCount-(r.rowsAbove||0))}var o=this.session.screenToDocumentPosition(n.row+e,n.column,t);e!==0&&i===0&&o.row===this.lead.row&&(o.column,this.lead.column),this.moveCursorTo(o.row,o.column+i,i===0)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,i,n){var t=this.session.getFoldAt(e,i,1);t&&(e=t.start.row,i=t.start.column),this.$keepDesiredColumnOnChange=!0;var r=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(r.charAt(i))&&r.charAt(i-1)&&(this.lead.row==e&&this.lead.column==i+1?i=i-1:i=i+1),this.lead.setPosition(e,i),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,i,n){var t=this.session.screenToDocumentPosition(e,i);this.moveCursorTo(t.row,t.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var i=this.getRange();return e?(e.start.column=i.start.column,e.start.row=i.start.row,e.end.column=i.end.column,e.end.row=i.end.row):e=i,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var i=this.getCursor();try{e(this);var n=this.getCursor();return a.fromPoints(i,n)}catch{return a.fromPoints(i,i)}finally{this.moveCursorToPosition(i)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map(function(i){var n=i.clone();return n.isBackwards=i.cursor==i.start,n});else{var e=this.getRange();e.isBackwards=this.isBackwards()}return e},this.fromJSON=function(e){if(e.start==null)if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var i=e.length;i--;){var n=a.fromPoints(e[i].start,e[i].end);e[i].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}else e=e[0];this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var i=this.ranges.length;i--;)if(!this.ranges[i].isEqual(e[i]))return!1;return!0}}).call(l.prototype),E.Selection=l}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(R,E,_){"use strict";var m=R("./config"),b=2e3,g=function(){function a(l){this.states=l,this.regExps={},this.matchMappings={};for(var e in this.states){for(var i=this.states[e],n=[],t=0,r=this.matchMappings[e]={defaultToken:"text"},o="g",c=[],d=0;d1?p.onMatch=this.$applyToken:p.onMatch=p.token),y>1&&(/\\\d/.test(p.regex)?x=p.regex.replace(/\\([0-9]+)/g,function(k,M){return"\\"+(parseInt(M,10)+t+1)}):(y=1,x=this.removeCapturingGroups(p.regex)),!p.splitRegex&&typeof p.token!="string"&&c.push(p)),r[t]=d,t+=y,n.push(x),p.onMatch||(p.onMatch=null)}}n.length||(r[0]=0,n.push("$")),c.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,o)},this),this.regExps[e]=new RegExp("("+n.join(")|(")+")|($)",o)}}return a.prototype.$setMaxTokenCount=function(l){b=l|0},a.prototype.$applyToken=function(l){var e=this.splitRegex.exec(l).slice(1),i=this.token.apply(this,e);if(typeof i=="string")return[{type:i,value:l}];for(var n=[],t=0,r=i.length;tp){var A=l.substring(p,S-v.length);y.type==k?y.value+=A:(y.type&&d.push(y),y={type:k,value:A})}for(var $=0;$b){for(x>2*l.length&&this.reportError("infinite loop with in ace tokenizer",{startState:e,line:l});p1&&i[0]!==n&&i.unshift("#tmp",n),{tokens:d,state:i.length?i:n}},a}();g.prototype.reportError=m.reportError,E.Tokenizer=g}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(R,E,_){"use strict";var m=R("../lib/lang"),b=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(l,e){if(!e){for(var i in l)this.$rules[i]=l[i];return}for(var i in l){for(var n=l[i],t=0;t=this.$rowTokens.length;){if(this.$row+=1,a||(a=this.$session.getLength()),this.$row>=a)return this.$row=a-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentTokenRow=function(){return this.$row},g.prototype.getCurrentTokenColumn=function(){var a=this.$rowTokens,l=this.$tokenIndex,e=a[l].start;if(e!==void 0)return e;for(e=0;l>0;)l-=1,e+=a[l].value.length;return e},g.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},g.prototype.getCurrentTokenRange=function(){var a=this.$rowTokens[this.$tokenIndex],l=this.getCurrentTokenColumn();return new m(this.$row,l,this.$row,l+a.value.length)},g}();E.TokenIterator=b}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(R,E,_){"use strict";var m=R("../../lib/oop"),b=R("../behaviour").Behaviour,g=R("../../token_iterator").TokenIterator,a=R("../../lib/lang"),l=["text","paren.rparen","rparen","paren","punctuation.operator"],e=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],i,n={},t={'"':'"',"'":"'"},r=function(d){var p=-1;if(d.multiSelect&&(p=d.selection.index,n.rangeCount!=d.multiSelect.rangeCount&&(n={rangeCount:d.multiSelect.rangeCount})),n[p])return i=n[p];i=n[p]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},o=function(d,p,x,y){var k=d.end.row-d.start.row;return{text:x+p+y,selection:[0,d.start.column+1,k,d.end.column+(k?0:1)]}},c=function(d){this.add("braces","insertion",function(p,x,y,k,M){var v=y.getCursorPosition(),S=k.doc.getLine(v.row);if(M=="{"){r(y);var A=y.getSelectionRange(),$=k.doc.getTextRange(A);if($!==""&&$!=="{"&&y.getWrapBehavioursEnabled())return o(A,$,"{","}");if(c.isSaneInsertion(y,k))return/[\]\}\)]/.test(S[v.column])||y.inMultiSelectMode||d&&d.braces?(c.recordAutoInsert(y,k,"}"),{text:"{}",selection:[1,1]}):(c.recordMaybeInsert(y,k,"{"),{text:"{",selection:[1,1]})}else if(M=="}"){r(y);var u=S.substring(v.column,v.column+1);if(u=="}"){var f=k.$findOpeningBracket("}",{column:v.column+1,row:v.row});if(f!==null&&c.isAutoInsertedClosing(v,S,M))return c.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(M==` `||M==`\r `){r(y);var w="";c.isMaybeInsertedClosing(v,S)&&(w=a.stringRepeat("}",i.maybeInsertedBrackets),c.clearMaybeInsertedClosing());var u=S.substring(v.column,v.column+1);if(u==="}"){var C=k.findMatchingBracket({row:v.row,column:v.column+1},"}");if(!C)return null;var T=this.$getIndent(k.getLine(C.row))}else if(w)var T=this.$getIndent(S);else{c.clearMaybeInsertedClosing();return}var I=T+k.getTabString();return{text:` `+I+` `+T+w,selection:[1,I.length,1,I.length]}}else c.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(p,x,y,k,M){var v=k.doc.getTextRange(M);if(!M.isMultiLine()&&v=="{"){r(y);var S=k.doc.getLine(M.start.row),A=S.substring(M.end.column,M.end.column+1);if(A=="}")return M.end.column++,M;i.maybeInsertedBrackets--}}),this.add("parens","insertion",function(p,x,y,k,M){if(M=="("){r(y);var v=y.getSelectionRange(),S=k.doc.getTextRange(v);if(S!==""&&y.getWrapBehavioursEnabled())return o(v,S,"(",")");if(c.isSaneInsertion(y,k))return c.recordAutoInsert(y,k,")"),{text:"()",selection:[1,1]}}else if(M==")"){r(y);var A=y.getCursorPosition(),$=k.doc.getLine(A.row),u=$.substring(A.column,A.column+1);if(u==")"){var f=k.$findOpeningBracket(")",{column:A.column+1,row:A.row});if(f!==null&&c.isAutoInsertedClosing(A,$,M))return c.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(p,x,y,k,M){var v=k.doc.getTextRange(M);if(!M.isMultiLine()&&v=="("){r(y);var S=k.doc.getLine(M.start.row),A=S.substring(M.start.column+1,M.start.column+2);if(A==")")return M.end.column++,M}}),this.add("brackets","insertion",function(p,x,y,k,M){if(M=="["){r(y);var v=y.getSelectionRange(),S=k.doc.getTextRange(v);if(S!==""&&y.getWrapBehavioursEnabled())return o(v,S,"[","]");if(c.isSaneInsertion(y,k))return c.recordAutoInsert(y,k,"]"),{text:"[]",selection:[1,1]}}else if(M=="]"){r(y);var A=y.getCursorPosition(),$=k.doc.getLine(A.row),u=$.substring(A.column,A.column+1);if(u=="]"){var f=k.$findOpeningBracket("]",{column:A.column+1,row:A.row});if(f!==null&&c.isAutoInsertedClosing(A,$,M))return c.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(p,x,y,k,M){var v=k.doc.getTextRange(M);if(!M.isMultiLine()&&v=="["){r(y);var S=k.doc.getLine(M.start.row),A=S.substring(M.start.column+1,M.start.column+2);if(A=="]")return M.end.column++,M}}),this.add("string_dquotes","insertion",function(p,x,y,k,M){var v=k.$mode.$quotes||t;if(M.length==1&&v[M]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(M)!=-1)return;r(y);var S=M,A=y.getSelectionRange(),$=k.doc.getTextRange(A);if($!==""&&($.length!=1||!v[$])&&y.getWrapBehavioursEnabled())return o(A,$,S,S);if(!$){var u=y.getCursorPosition(),f=k.doc.getLine(u.row),w=f.substring(u.column-1,u.column),C=f.substring(u.column,u.column+1),T=k.getTokenAt(u.row,u.column),I=k.getTokenAt(u.row,u.column+1);if(w=="\\"&&T&&/escape/.test(T.type))return null;var F=T&&/string|escape/.test(T.type),O=!I||/string|escape/.test(I.type),D;if(C==S)D=F!==O,D&&/string\.end/.test(I.type)&&(D=!1);else{if(F&&!O||F&&O)return null;var W=k.$mode.tokenRe;W.lastIndex=0;var U=W.test(w);W.lastIndex=0;var B=W.test(C),H=k.$mode.$pairQuotesAfter,N=H&&H[S]&&H[S].test(w);if(!N&&U||B||C&&!/[\s;,.})\]\\]/.test(C))return null;var P=f[u.column-2];if(w==S&&(P==S||W.test(P)))return null;D=!0}return{text:D?S+S:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(p,x,y,k,M){var v=k.$mode.$quotes||t,S=k.doc.getTextRange(M);if(!M.isMultiLine()&&v.hasOwnProperty(S)){r(y);var A=k.doc.getLine(M.start.row),$=A.substring(M.start.column+1,M.start.column+2);if($==S)return M.end.column++,M}})};c.isSaneInsertion=function(d,p){var x=d.getCursorPosition(),y=new g(p,x.row,x.column);if(!this.$matchTokenType(y.getCurrentToken()||"text",l)){if(/[)}\]]/.test(d.session.getLine(x.row)[x.column]))return!0;var k=new g(p,x.row,x.column+1);if(!this.$matchTokenType(k.getCurrentToken()||"text",l))return!1}return y.stepForward(),y.getCurrentTokenRow()!==x.row||this.$matchTokenType(y.getCurrentToken()||"text",e)},c.$matchTokenType=function(d,p){return p.indexOf(d.type||d)>-1},c.recordAutoInsert=function(d,p,x){var y=d.getCursorPosition(),k=p.doc.getLine(y.row);this.isAutoInsertedClosing(y,k,i.autoInsertedLineEnd[0])||(i.autoInsertedBrackets=0),i.autoInsertedRow=y.row,i.autoInsertedLineEnd=x+k.substr(y.column),i.autoInsertedBrackets++},c.recordMaybeInsert=function(d,p,x){var y=d.getCursorPosition(),k=p.doc.getLine(y.row);this.isMaybeInsertedClosing(y,k)||(i.maybeInsertedBrackets=0),i.maybeInsertedRow=y.row,i.maybeInsertedLineStart=k.substr(0,y.column)+x,i.maybeInsertedLineEnd=k.substr(y.column),i.maybeInsertedBrackets++},c.isAutoInsertedClosing=function(d,p,x){return i.autoInsertedBrackets>0&&d.row===i.autoInsertedRow&&x===i.autoInsertedLineEnd[0]&&p.substr(d.column)===i.autoInsertedLineEnd},c.isMaybeInsertedClosing=function(d,p){return i.maybeInsertedBrackets>0&&d.row===i.maybeInsertedRow&&p.substr(d.column)===i.maybeInsertedLineEnd&&p.substr(0,d.column)==i.maybeInsertedLineStart},c.popAutoInsertedClosing=function(){i.autoInsertedLineEnd=i.autoInsertedLineEnd.substr(1),i.autoInsertedBrackets--},c.clearMaybeInsertedClosing=function(){i&&(i.maybeInsertedBrackets=0,i.maybeInsertedRow=-1)},m.inherits(c,b),E.CstyleBehaviour=c}),ace.define("ace/unicode",["require","exports","module"],function(R,E,_){"use strict";for(var m=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],b=0,g=[],a=0;a2?P%M!=M-1:P%M==0}}else{if(!this.blockComment)return!1;var S=this.blockComment.start,A=this.blockComment.end,$=new RegExp("^(\\s*)(?:"+e.escapeRegExp(S)+")"),u=new RegExp("(?:"+e.escapeRegExp(A)+")\\s*$"),f=function(D,W){C(D,W)||(!x||/\S/.test(D))&&(p.insertInLine({row:W,column:D.length},A),p.insertInLine({row:W,column:k},S))},w=function(D,W){var U;(U=D.match(u))&&p.removeInLine(W,D.length-U[0].length,D.length),(U=D.match($))&&p.removeInLine(W,U[1].length,U[0].length)},C=function(D,W){if($.test(D))return!0;for(var U=o.getTokens(W),B=0;BD.length&&(O=D.length)}),k==1/0&&(k=O,x=!1,y=!1),v&&k%M!=0&&(k=Math.floor(k/M)*M),F(y?w:f)},this.toggleBlockComment=function(r,o,c,d){var p=this.blockComment;if(p){!p.start&&p[0]&&(p=p[0]);var x=new i(o,d.row,d.column),y=x.getCurrentToken(),k=o.selection,M=o.selection.toOrientedRange(),v,S;if(y&&/comment/.test(y.type)){for(var A,$;y&&/comment/.test(y.type);){var u=y.value.indexOf(p.start);if(u!=-1){var f=x.getCurrentTokenRow(),w=x.getCurrentTokenColumn()+u;A=new n(f,w,f,w+p.start.length);break}y=x.stepBackward()}for(var x=new i(o,d.row,d.column),y=x.getCurrentToken();y&&/comment/.test(y.type);){var u=y.value.indexOf(p.end);if(u!=-1){var f=x.getCurrentTokenRow(),w=x.getCurrentTokenColumn()+u;$=new n(f,w,f,w+p.end.length);break}y=x.stepForward()}$&&o.remove($),A&&(o.remove(A),v=A.start.row,S=-p.start.length)}else S=p.start.length,v=c.start.row,o.insert(c.end,p.end),o.insert(c.start,p.start);M.start.row==v&&(M.start.column+=S),M.end.row==v&&(M.end.column+=S),o.selection.fromOrientedRange(M)}},this.getNextLineIndent=function(r,o,c){return this.$getIndent(o)},this.checkOutdent=function(r,o,c){return!1},this.autoOutdent=function(r,o,c){},this.$getIndent=function(r){return r.match(/^\s*/)[0]},this.createWorker=function(r){return null},this.createModeDelegates=function(r){this.$embeds=[],this.$modes={};for(var o in r)if(r[o]){var c=r[o],d=c.prototype.$id,p=m.$modes[d];p||(m.$modes[d]=p=new c),m.$modes[o]||(m.$modes[o]=p),this.$embeds.push(o),this.$modes[o]=p}for(var x=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],o=0;o=0&&l.row=0&&l.column<=a[l.row].length}function g(a,l){l.action!="insert"&&l.action!="remove"&&m(l,"delta.action must be 'insert' or 'remove'"),l.lines instanceof Array||m(l,"delta.lines must be an Array"),(!l.start||!l.end)&&m(l,"delta.start/end must be an present");var e=l.start;b(a,l.start)||m(l,"delta.start must be contained in document");var i=l.end;l.action=="remove"&&!b(a,i)&&m(l,"delta.end must contained in document for 'remove' actions");var n=i.row-e.row,t=i.column-(n==0?e.column:0);(n!=l.lines.length-1||l.lines[n].length!=t)&&m(l,"delta.range must match delta lines")}E.applyDelta=function(a,l,e){var i=l.start.row,n=l.start.column,t=a[i]||"";switch(l.action){case"insert":var r=l.lines;if(r.length===1)a[i]=t.substring(0,n)+l.lines[0]+t.substring(n);else{var o=[i,1].concat(l.lines);a.splice.apply(a,o),a[i]=t.substring(0,n)+a[i],a[i+l.lines.length-1]+=t.substring(n)}break;case"remove":var c=l.end.column,d=l.end.row;i===d?a[i]=t.substring(0,n)+t.substring(c):a.splice(i,d-i+1,t.substring(0,n)+a[d].substring(c));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(R,E,_){"use strict";var m=R("./lib/oop"),b=R("./lib/event_emitter").EventEmitter,g=function(){function e(i,n,t){this.$onChange=this.onChange.bind(this),this.attach(i),typeof t>"u"?this.setPosition(n.row,n.column):this.setPosition(n,t)}return e.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},e.prototype.getDocument=function(){return this.document},e.prototype.onChange=function(i){if(!(i.start.row==i.end.row&&i.start.row!=this.row)&&!(i.start.row>this.row)){var n=l(i,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},e.prototype.setPosition=function(i,n,t){var r;if(t?r={row:i,column:n}:r=this.$clipPositionToDocument(i,n),!(this.row==r.row&&this.column==r.column)){var o={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:o,value:r})}},e.prototype.detach=function(){this.document.off("change",this.$onChange)},e.prototype.attach=function(i){this.document=i||this.document,this.document.on("change",this.$onChange)},e.prototype.$clipPositionToDocument=function(i,n){var t={};return i>=this.document.getLength()?(t.row=Math.max(0,this.document.getLength()-1),t.column=this.document.getLine(t.row).length):i<0?(t.row=0,t.column=0):(t.row=i,t.column=Math.min(this.document.getLine(t.row).length,Math.max(0,n))),n<0&&(t.column=0),t},e}();g.prototype.$insertRight=!1,m.implement(g.prototype,b);function a(e,i,n){var t=n?e.column<=i.column:e.column=r&&(n=r-1,t=void 0);var o=this.getLine(n);return t==null&&(t=o.length),t=Math.min(Math.max(t,0),o.length),{row:n,column:t}},i.prototype.clonePos=function(n){return{row:n.row,column:n.column}},i.prototype.pos=function(n,t){return{row:n,column:t}},i.prototype.$clipPosition=function(n){var t=this.getLength();return n.row>=t?(n.row=Math.max(0,t-1),n.column=this.getLine(t-1).length):(n.row=Math.max(0,n.row),n.column=Math.min(Math.max(n.column,0),this.getLine(n.row).length)),n},i.prototype.insertFullLines=function(n,t){n=Math.min(Math.max(n,0),this.getLength());var r=0;n0,o=t=0&&this.applyDelta({start:this.pos(n,this.getLine(n).length),end:this.pos(n+1,0),action:"remove",lines:["",""]})},i.prototype.replace=function(n,t){if(n instanceof a||(n=a.fromPoints(n.start,n.end)),t.length===0&&n.isEmpty())return n.start;if(t==this.getTextRange(n))return n.end;this.remove(n);var r;return t?r=this.insert(n.start,t):r=n.start,r},i.prototype.applyDeltas=function(n){for(var t=0;t=0;t--)this.revertDelta(n[t])},i.prototype.applyDelta=function(n,t){var r=n.action=="insert";(r?n.lines.length<=1&&!n.lines[0]:!a.comparePoints(n.start,n.end))||(r&&n.lines.length>2e4?this.$splitAndapplyLargeDelta(n,2e4):(b(this.$lines,n,t),this._signal("change",n)))},i.prototype.$safeApplyDelta=function(n){var t=this.$lines.length;(n.action=="remove"&&n.start.row20){i.running=setTimeout(i.$worker,20);break}}i.currentLine=t,r==-1&&(r=t),c<=r&&i.fireUpdateEvent(c,r)}}}return a.prototype.setTokenizer=function(l){this.tokenizer=l,this.lines=[],this.states=[],this.start(0)},a.prototype.setDocument=function(l){this.doc=l,this.lines=[],this.states=[],this.stop()},a.prototype.fireUpdateEvent=function(l,e){var i={first:l,last:e};this._signal("update",{data:i})},a.prototype.start=function(l){this.currentLine=Math.min(l||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},a.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},a.prototype.$updateOnChange=function(l){var e=l.start.row,i=l.end.row-e;if(i===0)this.lines[e]=null;else if(l.action=="remove")this.lines.splice(e,i+1,null),this.states.splice(e,i+1,null);else{var n=Array(i+1);n.unshift(e,1),this.lines.splice.apply(this.lines,n),this.states.splice.apply(this.states,n)}this.currentLine=Math.min(e,this.currentLine,this.doc.getLength()),this.stop()},a.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},a.prototype.getTokens=function(l){return this.lines[l]||this.$tokenizeRow(l)},a.prototype.getState=function(l){return this.currentLine==l&&this.$tokenizeRow(l),this.states[l]||"start"},a.prototype.$tokenizeRow=function(l){var e=this.doc.getLine(l),i=this.states[l-1],n=this.tokenizer.getLineTokens(e,i,l);return this.states[l]+""!=n.state+""?(this.states[l]=n.state,this.lines[l+1]=null,this.currentLine>l+1&&(this.currentLine=l+1)):this.currentLine==l&&(this.currentLine=l+1),this.lines[l]=n.tokens},a.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},a}();m.implement(g.prototype,b),E.BackgroundTokenizer=g}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(R,E,_){"use strict";var m=R("./lib/lang"),b=R("./range").Range,g=function(){function a(l,e,i){i===void 0&&(i="text"),this.setRegexp(l),this.clazz=e,this.type=i}return a.prototype.setRegexp=function(l){this.regExp+""!=l+""&&(this.regExp=l,this.cache=[])},a.prototype.update=function(l,e,i,n){if(this.regExp)for(var t=n.firstRow,r=n.lastRow,o={},c=t;c<=r;c++){var d=this.cache[c];d==null&&(d=m.getMatchOffsets(i.getLine(c),this.regExp),d.length>this.MAX_RANGES&&(d=d.slice(0,this.MAX_RANGES)),d=d.map(function(k){return new b(c,k.offset,c,k.offset+k.length)}),this.cache[c]=d.length?d:"");for(var p=d.length;p--;){var x=d[p].toScreenRange(i),y=x.toString();o[y]||(o[y]=!0,e.drawSingleLineMarker(l,x,this.clazz,n))}}},a}();g.prototype.MAX_RANGES=500,E.SearchHighlight=g}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(R,E,_){"use strict";var m=R("../range").Range,b=function(){function g(a,l){this.foldData=a,Array.isArray(l)?this.folds=l:l=this.folds=[l];var e=l[l.length-1];this.range=new m(l[0].start.row,l[0].start.column,e.end.row,e.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(i){i.setFoldLine(this)},this)}return g.prototype.shiftRow=function(a){this.start.row+=a,this.end.row+=a,this.folds.forEach(function(l){l.start.row+=a,l.end.row+=a})},g.prototype.addFold=function(a){if(a.sameRow){if(a.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(a),this.folds.sort(function(l,e){return-l.range.compareEnd(e.start.row,e.start.column)}),this.range.compareEnd(a.start.row,a.start.column)>0?(this.end.row=a.end.row,this.end.column=a.end.column):this.range.compareStart(a.end.row,a.end.column)<0&&(this.start.row=a.start.row,this.start.column=a.start.column)}else if(a.start.row==this.end.row)this.folds.push(a),this.end.row=a.end.row,this.end.column=a.end.column;else if(a.end.row==this.start.row)this.folds.unshift(a),this.start.row=a.start.row,this.start.column=a.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");a.foldLine=this},g.prototype.containsRow=function(a){return a>=this.start.row&&a<=this.end.row},g.prototype.walk=function(a,l,e){var i=0,n=this.folds,t,r,o,c=!0;l==null&&(l=this.end.row,e=this.end.column);for(var d=0;d0)){var c=b(l,r.start);return o===0?e&&c!==0?-t-2:t:c>0||c===0&&!e?t:-t-1}}return-t-1},a.prototype.add=function(l){var e=!l.isEmpty(),i=this.pointIndex(l.start,e);i<0&&(i=-i-1);var n=this.pointIndex(l.end,e,i);return n<0?n=-n-1:n++,this.ranges.splice(i,n-i,l)},a.prototype.addList=function(l){for(var e=[],i=l.length;i--;)e.push.apply(e,this.add(l[i]));return e},a.prototype.substractPoint=function(l){var e=this.pointIndex(l);if(e>=0)return this.ranges.splice(e,1)},a.prototype.merge=function(){var l=[],e=this.ranges;e=e.sort(function(o,c){return b(o.start,c.start)});for(var i=e[0],n,t=1;t=0},a.prototype.containsPoint=function(l){return this.pointIndex(l)>=0},a.prototype.rangeAtPoint=function(l){var e=this.pointIndex(l);if(e>=0)return this.ranges[e]},a.prototype.clipRows=function(l,e){var i=this.ranges;if(i[0].start.row>e||i[i.length-1].start.row=n)break}if(l.action=="insert")for(var p=t-n,x=-e.column+i.column;on)break;if(d.start.row==n&&d.start.column>=e.column&&(d.start.column==e.column&&this.$bias<=0||(d.start.column+=x,d.start.row+=p)),d.end.row==n&&d.end.column>=e.column){if(d.end.column==e.column&&this.$bias<0)continue;d.end.column==e.column&&x>0&&od.start.column&&d.end.column==r[o+1].start.column&&(d.end.column-=x),d.end.column+=x,d.end.row+=p}}else for(var p=n-t,x=e.column-i.column;ot)break;d.end.rowe.column)&&(d.end.column=e.column,d.end.row=e.row):(d.end.column+=x,d.end.row+=p):d.end.row>t&&(d.end.row+=p),d.start.rowe.column)&&(d.start.column=e.column,d.start.row=e.row):(d.start.column+=x,d.start.row+=p):d.start.row>t&&(d.start.row+=p)}if(p!=0&&o=e)return r;if(r.end.row>e)return null}return null},this.getNextFoldLine=function(e,i){var n=this.$foldData,t=0;for(i&&(t=n.indexOf(i)),t==-1&&(t=0),t;t=e)return r}return null},this.getFoldedRowCount=function(e,i){for(var n=this.$foldData,t=i-e+1,r=0;r=i){d=e?t-=i-d:t=0);break}else c>=e&&(d>=e?t-=c-d:t-=c-e+1)}return t},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort(function(i,n){return i.start.row-n.start.row}),e},this.addFold=function(e,i){var n=this.$foldData,t=!1,r;e instanceof g?r=e:(r=new g(i,e),r.collapseChildren=i.collapseChildren),this.$clipRangeToDocument(r.range);var o=r.start.row,c=r.start.column,d=r.end.row,p=r.end.column,x=this.getFoldAt(o,c,1),y=this.getFoldAt(d,p,-1);if(x&&y==x)return x.addSubFold(r);x&&!x.range.isStart(o,c)&&this.removeFold(x),y&&!y.range.isEnd(d,p)&&this.removeFold(y);var k=this.getFoldsInRange(r.range);k.length>0&&(this.removeFolds(k),r.collapseChildren||k.forEach(function(A){r.addSubFold(A)}));for(var M=0;M0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach(function(i){this.expandFold(i)},this)},this.unfold=function(e,i){var n,t;if(e==null)n=new m(0,0,this.getLength(),0),i==null&&(i=!0);else if(typeof e=="number")n=new m(e,0,e,this.getLine(e).length);else if("row"in e)n=m.fromPoints(e,e);else{if(Array.isArray(e))return t=[],e.forEach(function(o){t=t.concat(this.unfold(o))},this),t;n=e}t=this.getFoldsInRangeList(n);for(var r=t;t.length==1&&m.comparePoints(t[0].start,n.start)<0&&m.comparePoints(t[0].end,n.end)>0;)this.expandFolds(t),t=this.getFoldsInRangeList(n);if(i!=!1?this.removeFolds(t):this.expandFolds(t),r.length)return r},this.isRowFolded=function(e,i){return!!this.getFoldLine(e,i)},this.getRowFoldEnd=function(e,i){var n=this.getFoldLine(e,i);return n?n.end.row:e},this.getRowFoldStart=function(e,i){var n=this.getFoldLine(e,i);return n?n.start.row:e},this.getFoldDisplayLine=function(e,i,n,t,r){t==null&&(t=e.start.row),r==null&&(r=0),i==null&&(i=e.end.row),n==null&&(n=this.getLine(i).length);var o=this.doc,c="";return e.walk(function(d,p,x,y){if(!(pp)break;while(r&&c.test(r.type)&&!/^comment.start/.test(r.type));r=t.stepBackward()}else r=t.getCurrentToken();return d.end.row=t.getCurrentTokenRow(),d.end.column=t.getCurrentTokenColumn(),/^comment.end/.test(r.type)||(d.end.column+=r.value.length-2),d}},this.foldAll=function(e,i,n,t){n==null&&(n=1e5);var r=this.foldWidgets;if(r){i=i||this.getLength(),e=e||0;for(var o=e;o=e&&(o=c.end.row,c.collapseChildren=n,this.addFold("...",c))}}},this.foldToLevel=function(e){for(this.foldAll();e-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,function(i){for(var n=e.getTokens(i),t=0;t=0;){var o=n[t];if(o==null&&(o=n[t]=this.getFoldWidget(t)),o=="start"){var c=this.getFoldWidgetRange(t);if(r||(r=c),c&&c.end.row>=e)break}t--}return{range:t!==-1&&c,firstRange:r}},this.onFoldWidgetClick=function(e,i){i=i.domEvent;var n={children:i.shiftKey,all:i.ctrlKey||i.metaKey,siblings:i.altKey},t=this.$toggleFoldWidget(e,n);if(!t){var r=i.target||i.srcElement;r&&/ace_fold-widget/.test(r.className)&&(r.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,i){if(this.getFoldWidget){var n=this.getFoldWidget(e),t=this.getLine(e),r=n==="end"?-1:1,o=this.getFoldAt(e,r===-1?0:t.length,r);if(o)return i.children||i.all?this.removeFold(o):this.expandFold(o),o;var c=this.getFoldWidgetRange(e,!0);if(c&&!c.isMultiLine()&&(o=this.getFoldAt(c.start.row,c.start.column,1),o&&c.isEqual(o.range)))return this.removeFold(o),o;if(i.siblings){var d=this.getParentFoldRangeData(e);if(d.range)var p=d.range.start.row+1,x=d.range.end.row;this.foldAll(p,x,i.all?1e4:0)}else i.children?(x=c?c.end.row:this.getLength(),this.foldAll(e+1,x,i.all?1e4:0)):c&&(i.all&&(c.collapseChildren=1e4),this.addFold("...",c));return c}},this.toggleFoldWidget=function(e){var i=this.selection.getCursor().row;i=this.getRowFoldStart(i);var n=this.$toggleFoldWidget(i,{});if(!n){var t=this.getParentFoldRangeData(i,!0);if(n=t.range||t.firstRange,n){i=n.start.row;var r=this.getFoldAt(i,this.getLine(i).length,1);r?this.removeFold(r):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var i=e.start.row,n=e.end.row-i;if(n===0)this.foldWidgets[i]=null;else if(e.action=="remove")this.foldWidgets.splice(i,n+1,null);else{var t=Array(n+1);t.unshift(i,1),this.foldWidgets.splice.apply(this.foldWidgets,t)}},this.tokenizerUpdateFoldWidgets=function(e){var i=e.data;i.first!=i.last&&this.foldWidgets.length>i.first&&this.foldWidgets.splice(i.first,this.foldWidgets.length)}}E.Folding=l}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(R,E,_){"use strict";var m=R("../token_iterator").TokenIterator,b=R("../range").Range;function g(){this.findMatchingBracket=function(a,l){if(a.column==0)return null;var e=l||this.getLine(a.row).charAt(a.column-1);if(e=="")return null;var i=e.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],a):this.$findOpeningBracket(i[2],a):null},this.getBracketRange=function(a){var l=this.getLine(a.row),e=!0,i,n=l.charAt(a.column-1),t=n&&n.match(/([\(\[\{])|([\)\]\}])/);if(t||(n=l.charAt(a.column),a={row:a.row,column:a.column+1},t=n&&n.match(/([\(\[\{])|([\)\]\}])/),e=!1),!t)return null;if(t[1]){var r=this.$findClosingBracket(t[1],a);if(!r)return null;i=b.fromPoints(a,r),e||(i.end.column++,i.start.column--),i.cursor=i.end}else{var r=this.$findOpeningBracket(t[2],a);if(!r)return null;i=b.fromPoints(r,a),e||(i.start.column++,i.end.column--),i.cursor=i.start}return i},this.getMatchingBracketRanges=function(a,l){var e=this.getLine(a.row),i=/([\(\[\{])|([\)\]\}])/,n=!l&&e.charAt(a.column-1),t=n&&n.match(i);if(t||(n=(l===void 0||l)&&e.charAt(a.column),a={row:a.row,column:a.column+1},t=n&&n.match(i)),!t)return null;var r=new b(a.row,a.column-1,a.row,a.column),o=t[1]?this.$findClosingBracket(t[1],a):this.$findOpeningBracket(t[2],a);if(!o)return[r];var c=new b(o.row,o.column,o.row,o.column+1);return[r,c]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(a,l,e){var i=this.$brackets[a],n=1,t=new m(this,l.row,l.column),r=t.getCurrentToken();if(r||(r=t.stepForward()),!!r){e||(e=new RegExp("(\\.?"+r.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var o=l.column-t.getCurrentTokenColumn()-2,c=r.value;;){for(;o>=0;){var d=c.charAt(o);if(d==i){if(n-=1,n==0)return{row:t.getCurrentTokenRow(),column:o+t.getCurrentTokenColumn()}}else d==a&&(n+=1);o-=1}do r=t.stepBackward();while(r&&!e.test(r.type));if(r==null)break;c=r.value,o=c.length-1}return null}},this.$findClosingBracket=function(a,l,e){var i=this.$brackets[a],n=1,t=new m(this,l.row,l.column),r=t.getCurrentToken();if(r||(r=t.stepForward()),!!r){e||(e=new RegExp("(\\.?"+r.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var o=l.column-t.getCurrentTokenColumn();;){for(var c=r.value,d=c.length;o"?i=!0:l.type.indexOf("tag-name")!==-1&&(e=!0));while(l&&!e);return l},this.$findClosingTag=function(a,l){var e,i=l.value,n=l.value,t=0,r=new b(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);l=a.stepForward();var o=new b(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+l.value.length),c=!1;do if(e=l,l=a.stepForward(),l){if(l.value===">"&&!c){var d=new b(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);c=!0}if(l.type.indexOf("tag-name")!==-1){if(i=l.value,n===i){if(e.value==="<")t++;else if(e.value==="")var y=new b(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);else return}}}else if(n===i&&l.value==="/>"&&(t--,t<0))var p=new b(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+2),x=p,y=x,d=new b(o.end.row,o.end.column,o.end.row,o.end.column+1)}while(l&&t>=0);if(r&&d&&p&&y&&o&&x)return{openTag:new b(r.start.row,r.start.column,d.end.row,d.end.column),closeTag:new b(p.start.row,p.start.column,y.end.row,y.end.column),openTagName:o,closeTagName:x}},this.$findOpeningTag=function(a,l){var e=a.getCurrentToken(),i=l.value,n=0,t=a.getCurrentTokenRow(),r=a.getCurrentTokenColumn(),o=r+2,c=new b(t,r,t,o);a.stepForward();var d=new b(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+l.value.length);if(l=a.stepForward(),!(!l||l.value!==">")){var p=new b(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);a.stepBackward(),a.stepBackward();do if(l=e,t=a.getCurrentTokenRow(),r=a.getCurrentTokenColumn(),o=r+l.value.length,e=a.stepBackward(),l){if(l.type.indexOf("tag-name")!==-1){if(i===l.value)if(e.value==="<"){if(n++,n>0){var x=new b(t,r,t,o),y=new b(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);do l=a.stepForward();while(l&&l.value!==">");var k=new b(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1)}}else e.value===""){for(var M=0,v=e;v;){if(v.type.indexOf("tag-name")!==-1&&v.value===i){n--;break}else if(v.value==="<")break;v=a.stepBackward(),M++}for(var S=0;Sw&&(this.$docRowCache.splice(w,f),this.$screenRowCache.splice(w,f))},$.prototype.$getRowCacheIndex=function(u,f){for(var w=0,C=u.length-1;w<=C;){var T=w+C>>1,I=u[T];if(f>I)w=T+1;else if(f=f));I++);return C=w[I],C?(C.index=I,C.start=T-C.value.length,C):null},$.prototype.setUndoManager=function(u){if(this.$undoManager=u,this.$informUndoManager&&this.$informUndoManager.cancel(),u){var f=this;u.addSession(this),this.$syncInformUndoManager=function(){f.$informUndoManager.cancel(),f.mergeUndoDeltas=!1},this.$informUndoManager=b.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},$.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},$.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},$.prototype.getTabString=function(){return this.getUseSoftTabs()?b.stringRepeat(" ",this.getTabSize()):" "},$.prototype.setUseSoftTabs=function(u){this.setOption("useSoftTabs",u)},$.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},$.prototype.setTabSize=function(u){this.setOption("tabSize",u)},$.prototype.getTabSize=function(){return this.$tabSize},$.prototype.isTabStop=function(u){return this.$useSoftTabs&&u.column%this.$tabSize===0},$.prototype.setNavigateWithinSoftTabs=function(u){this.setOption("navigateWithinSoftTabs",u)},$.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},$.prototype.setOverwrite=function(u){this.setOption("overwrite",u)},$.prototype.getOverwrite=function(){return this.$overwrite},$.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},$.prototype.addGutterDecoration=function(u,f){this.$decorations[u]||(this.$decorations[u]=""),this.$decorations[u]+=" "+f,this._signal("changeBreakpoint",{})},$.prototype.removeGutterDecoration=function(u,f){this.$decorations[u]=(this.$decorations[u]||"").replace(" "+f,""),this._signal("changeBreakpoint",{})},$.prototype.getBreakpoints=function(){return this.$breakpoints},$.prototype.setBreakpoints=function(u){this.$breakpoints=[];for(var f=0;f0&&(C=!!w.charAt(f-1).match(this.tokenRe)),C||(C=!!w.charAt(f).match(this.tokenRe)),C)var T=this.tokenRe;else if(/^\s+$/.test(w.slice(f-1,f+1)))var T=/\s/;else var T=this.nonTokenRe;var I=f;if(I>0){do I--;while(I>=0&&w.charAt(I).match(T));I++}for(var F=f;Fu&&(u=f.screenWidth)}),this.lineWidgetWidth=u},$.prototype.$computeWidth=function(u){if(this.$modified||u){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var f=this.doc.getAllLines(),w=this.$rowLengthCache,C=0,T=0,I=this.$foldData[T],F=I?I.start.row:1/0,O=f.length,D=0;DF){if(D=I.end.row+1,D>=O)break;I=this.$foldData[T++],F=I?I.start.row:1/0}w[D]==null&&(w[D]=this.$getStringScreenWidth(f[D])[0]),w[D]>C&&(C=w[D])}this.screenWidth=C}},$.prototype.getLine=function(u){return this.doc.getLine(u)},$.prototype.getLines=function(u,f){return this.doc.getLines(u,f)},$.prototype.getLength=function(){return this.doc.getLength()},$.prototype.getTextRange=function(u){return this.doc.getTextRange(u||this.selection.getRange())},$.prototype.insert=function(u,f){return this.doc.insert(u,f)},$.prototype.remove=function(u){return this.doc.remove(u)},$.prototype.removeFullLines=function(u,f){return this.doc.removeFullLines(u,f)},$.prototype.undoChanges=function(u,f){if(u.length){this.$fromUndo=!0;for(var w=u.length-1;w!=-1;w--){var C=u[w];C.action=="insert"||C.action=="remove"?this.doc.revertDelta(C):C.folds&&this.addFolds(C.folds)}!f&&this.$undoSelect&&(u.selectionBefore?this.selection.fromJSON(u.selectionBefore):this.selection.setRange(this.$getUndoSelection(u,!0))),this.$fromUndo=!1}},$.prototype.redoChanges=function(u,f){if(u.length){this.$fromUndo=!0;for(var w=0;wu.end.column&&(I.start.column+=O),I.end.row==u.end.row&&I.end.column>u.end.column&&(I.end.column+=O)),F&&I.start.row>=u.end.row&&(I.start.row+=F,I.end.row+=F)}if(I.end=this.insert(I.start,C),T.length){var D=u.start,W=I.start,F=W.row-D.row,O=W.column-D.column;this.addFolds(T.map(function(H){return H=H.clone(),H.start.row==D.row&&(H.start.column+=O),H.end.row==D.row&&(H.end.column+=O),H.start.row+=F,H.end.row+=F,H}))}return I},$.prototype.indentRows=function(u,f,w){w=w.replace(/\t/g,this.getTabString());for(var C=u;C<=f;C++)this.doc.insertInLine({row:C,column:0},w)},$.prototype.outdentRows=function(u){for(var f=u.collapseRows(),w=new n(0,0,0,0),C=this.getTabSize(),T=f.start.row;T<=f.end.row;++T){var I=this.getLine(T);w.start.row=T,w.end.row=T;for(var F=0;F0){var C=this.getRowFoldEnd(f+w);if(C>this.doc.getLength()-1)return 0;var T=C-f}else{u=this.$clipRowToDocument(u),f=this.$clipRowToDocument(f);var T=f-u+1}var I=new n(u,0,f,Number.MAX_VALUE),F=this.getFoldsInRange(I).map(function(D){return D=D.clone(),D.start.row+=T,D.end.row+=T,D}),O=w==0?this.doc.getLines(u,f):this.doc.removeFullLines(u,f);return this.doc.insertFullLines(u+T,O),F.length&&this.addFolds(F),T},$.prototype.moveLinesUp=function(u,f){return this.$moveLines(u,f,-1)},$.prototype.moveLinesDown=function(u,f){return this.$moveLines(u,f,1)},$.prototype.duplicateLines=function(u,f){return this.$moveLines(u,f,0)},$.prototype.$clipRowToDocument=function(u){return Math.max(0,Math.min(u,this.doc.getLength()-1))},$.prototype.$clipColumnToRow=function(u,f){return f<0?0:Math.min(this.doc.getLine(u).length,f)},$.prototype.$clipPositionToDocument=function(u,f){if(f=Math.max(0,f),u<0)u=0,f=0;else{var w=this.doc.getLength();u>=w?(u=w-1,f=this.doc.getLine(w-1).length):f=Math.min(this.doc.getLine(u).length,f)}return{row:u,column:f}},$.prototype.$clipRangeToDocument=function(u){u.start.row<0?(u.start.row=0,u.start.column=0):u.start.column=this.$clipColumnToRow(u.start.row,u.start.column);var f=this.doc.getLength()-1;return u.end.row>f?(u.end.row=f,u.end.column=this.doc.getLine(f).length):u.end.column=this.$clipColumnToRow(u.end.row,u.end.column),u},$.prototype.setUseWrapMode=function(u){if(u!=this.$useWrapMode){if(this.$useWrapMode=u,this.$modified=!0,this.$resetRowCache(0),u){var f=this.getLength();this.$wrapData=Array(f),this.$updateWrapData(0,f-1)}this._signal("changeWrapMode")}},$.prototype.getUseWrapMode=function(){return this.$useWrapMode},$.prototype.setWrapLimitRange=function(u,f){(this.$wrapLimitRange.min!==u||this.$wrapLimitRange.max!==f)&&(this.$wrapLimitRange={min:u,max:f},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},$.prototype.adjustWrapLimit=function(u,f){var w=this.$wrapLimitRange;w.max<0&&(w={min:f,max:f});var C=this.$constrainWrapLimit(u,w.min,w.max);return C!=this.$wrapLimit&&C>1?(this.$wrapLimit=C,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},$.prototype.$constrainWrapLimit=function(u,f,w){return f&&(u=Math.max(f,u)),w&&(u=Math.min(w,u)),u},$.prototype.getWrapLimit=function(){return this.$wrapLimit},$.prototype.setWrapLimit=function(u){this.setWrapLimitRange(u,u)},$.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},$.prototype.$updateInternalDataOnChange=function(u){var f=this.$useWrapMode,w=u.action,C=u.start,T=u.end,I=C.row,F=T.row,O=F-I,D=null;if(this.$updating=!0,O!=0)if(w==="remove"){this[f?"$wrapData":"$rowLengthCache"].splice(I,O);var W=this.$foldData;D=this.getFoldsInRange(u),this.removeFolds(D);var U=this.getFoldLine(T.row),B=0;if(U){U.addRemoveChars(T.row,T.column,C.column-T.column),U.shiftRow(-O);var H=this.getFoldLine(I);H&&H!==U&&(H.merge(U),U=H),B=W.indexOf(U)+1}for(B;B=T.row&&U.shiftRow(-O)}F=I}else{var N=Array(O);N.unshift(I,0);var P=f?this.$wrapData:this.$rowLengthCache;P.splice.apply(P,N);var W=this.$foldData,U=this.getFoldLine(I),B=0;if(U){var G=U.range.compareInside(C.row,C.column);G==0?(U=U.split(C.row,C.column),U&&(U.shiftRow(O),U.addRemoveChars(F,0,T.column-C.column))):G==-1&&(U.addRemoveChars(I,0,T.column-C.column),U.shiftRow(O)),B=W.indexOf(U)+1}for(B;B=I&&U.shiftRow(O)}}else{O=Math.abs(u.start.column-u.end.column),w==="remove"&&(D=this.getFoldsInRange(u),this.removeFolds(D),O=-O);var U=this.getFoldLine(I);U&&U.addRemoveChars(I,C.column,O)}return f&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,f?this.$updateWrapData(I,F):this.$updateRowLengthCache(I,F),D},$.prototype.$updateRowLengthCache=function(u,f,w){this.$rowLengthCache[u]=null,this.$rowLengthCache[f]=null},$.prototype.$updateWrapData=function(u,f){var w=this.doc.getAllLines(),C=this.getTabSize(),T=this.$wrapData,I=this.$wrapLimit,F,O,D=u;for(f=Math.min(f,w.length-1);D<=f;)O=this.getFoldLine(D,O),O?(F=[],O.walk(function(W,U,B,H){var N;if(W!=null){N=this.$getDisplayTokens(W,F.length),N[0]=x;for(var P=1;Pf-H;){var N=I+f-H;if(u[N-1]>=M&&u[N]>=M){B(N);continue}if(u[N]==x||u[N]==y){for(N;N!=I-1&&u[N]!=x;N--);if(N>I){B(N);continue}for(N=I+f,N;N>2)),I-1);N>P&&u[N]P&&u[N]P&&u[N]==k;)N--}else for(;N>P&&u[N]P){B(++N);continue}N=I+f,u[N]==p&&N--,B(N-H)}return C},$.prototype.$getDisplayTokens=function(u,f){var w=[],C;f=f||0;for(var T=0;T39&&I<48||I>57&&I<64?w.push(k):I>=4352&&A(I)?w.push(d,p):w.push(d)}return w},$.prototype.$getStringScreenWidth=function(u,f,w){if(f==0)return[0,0];f==null&&(f=1/0),w=w||0;var C,T;for(T=0;T=4352&&A(C)?w+=2:w+=1,!(w>f));T++);return[w,T]},$.prototype.getRowLength=function(u){var f=1;return this.lineWidgets&&(f+=this.lineWidgets[u]&&this.lineWidgets[u].rowCount||0),!this.$useWrapMode||!this.$wrapData[u]?f:this.$wrapData[u].length+f},$.prototype.getRowLineCount=function(u){return!this.$useWrapMode||!this.$wrapData[u]?1:this.$wrapData[u].length+1},$.prototype.getRowWrapIndent=function(u){if(this.$useWrapMode){var f=this.screenToDocumentPosition(u,Number.MAX_VALUE),w=this.$wrapData[f.row];return w.length&&w[0]=0)var O=W[U],T=this.$docRowCache[U],H=u>W[B-1];else var H=!B;for(var N=this.getLength()-1,P=this.getNextFoldLine(T),G=P?P.start.row:1/0;O<=u&&(D=this.getRowLength(T),!(O+D>u||T>=N));)O+=D,T++,T>G&&(T=P.end.row+1,P=this.getNextFoldLine(T,P),G=P?P.start.row:1/0),H&&(this.$docRowCache.push(T),this.$screenRowCache.push(O));if(P&&P.start.row<=T)C=this.getFoldDisplayLine(P),T=P.start.row;else{if(O+D<=u||T>N)return{row:N,column:this.getLine(N).length};C=this.getLine(T),P=null}var J=0,ne=Math.floor(u-O);if(this.$useWrapMode){var K=this.$wrapData[T];K&&(F=K[ne],ne>0&&K.length&&(J=K.indent,I=K[ne-1]||K[K.length-1],C=C.substring(I)))}return w!==void 0&&this.$bidiHandler.isBidiRow(O+ne,T,ne)&&(f=this.$bidiHandler.offsetToCol(w)),I+=this.$getStringScreenWidth(C,f-J)[1],this.$useWrapMode&&I>=F&&(I=F-1),P?P.idxToPosition(I):{row:T,column:I}},$.prototype.documentToScreenPosition=function(u,f){if(typeof f>"u")var w=this.$clipPositionToDocument(u.row,u.column);else w=this.$clipPositionToDocument(u,f);u=w.row,f=w.column;var C=0,T=null,I=null;I=this.getFoldAt(u,f,1),I&&(u=I.start.row,f=I.start.column);var F,O=0,D=this.$docRowCache,W=this.$getRowCacheIndex(D,u),U=D.length;if(U&&W>=0)var O=D[W],C=this.$screenRowCache[W],B=u>D[U-1];else var B=!U;for(var H=this.getNextFoldLine(O),N=H?H.start.row:1/0;O=N){if(F=H.end.row+1,F>u)break;H=this.getNextFoldLine(F,H),N=H?H.start.row:1/0}else F=O+1;C+=this.getRowLength(O),O=F,B&&(this.$docRowCache.push(O),this.$screenRowCache.push(C))}var P="";H&&O>=N?(P=this.getFoldDisplayLine(H,u,f),T=H.start.row):(P=this.getLine(u).substring(0,f),T=u);var G=0;if(this.$useWrapMode){var J=this.$wrapData[T];if(J){for(var ne=0;P.length>=J[ne];)C++,ne++;P=P.substring(J[ne-1]||0,P.length),G=ne>0?J.indent:0}}return this.lineWidgets&&this.lineWidgets[O]&&this.lineWidgets[O].rowsAbove&&(C+=this.lineWidgets[O].rowsAbove),{row:C,column:G+this.$getStringScreenWidth(P)[0]}},$.prototype.documentToScreenColumn=function(u,f){return this.documentToScreenPosition(u,f).column},$.prototype.documentToScreenRow=function(u,f){return this.documentToScreenPosition(u,f).row},$.prototype.getScreenLength=function(){var u=0,f=null;if(this.$useWrapMode)for(var T=this.$wrapData.length,I=0,C=0,f=this.$foldData[C++],F=f?f.start.row:1/0;IF&&(I=f.end.row+1,f=this.$foldData[C++],F=f?f.start.row:1/0)}else{u=this.getLength();for(var w=this.$foldData,C=0;Cw));I++);return[C,I]})},$.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},$}();c.$uid=0,c.prototype.$modes=a.$modes,c.prototype.getValue=c.prototype.toString,c.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},c.prototype.$overwrite=!1,c.prototype.$mode=null,c.prototype.$modeId=null,c.prototype.$scrollTop=0,c.prototype.$scrollLeft=0,c.prototype.$wrapLimit=80,c.prototype.$useWrapMode=!1,c.prototype.$wrapLimitRange={min:null,max:null},c.prototype.lineWidgets=null,c.prototype.isFullWidth=A,m.implement(c.prototype,l);var d=1,p=2,x=3,y=4,k=9,M=10,v=11,S=12;function A($){return $<4352?!1:$>=4352&&$<=4447||$>=4515&&$<=4519||$>=4602&&$<=4607||$>=9001&&$<=9002||$>=11904&&$<=11929||$>=11931&&$<=12019||$>=12032&&$<=12245||$>=12272&&$<=12283||$>=12288&&$<=12350||$>=12353&&$<=12438||$>=12441&&$<=12543||$>=12549&&$<=12589||$>=12593&&$<=12686||$>=12688&&$<=12730||$>=12736&&$<=12771||$>=12784&&$<=12830||$>=12832&&$<=12871||$>=12880&&$<=13054||$>=13056&&$<=19903||$>=19968&&$<=42124||$>=42128&&$<=42182||$>=43360&&$<=43388||$>=44032&&$<=55203||$>=55216&&$<=55238||$>=55243&&$<=55291||$>=63744&&$<=64255||$>=65040&&$<=65049||$>=65072&&$<=65106||$>=65108&&$<=65126||$>=65128&&$<=65131||$>=65281&&$<=65376||$>=65504&&$<=65510}R("./edit_session/folding").Folding.call(c.prototype),R("./edit_session/bracket_match").BracketMatch.call(c.prototype),a.defineOptions(c.prototype,"session",{wrap:{set:function($){if(!$||$=="off"?$=!1:$=="free"?$=!0:$=="printMargin"?$=-1:typeof $=="string"&&($=parseInt($,10)||!1),this.$wrap!=$)if(this.$wrap=$,!$)this.setUseWrapMode(!1);else{var u=typeof $=="number"?$:null;this.setWrapLimitRange(u,u),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function($){$=$=="auto"?this.$mode.type!="text":$!="text",$!=this.$wrapAsCode&&(this.$wrapAsCode=$,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function($){this.$useWorker=$,this.$stopWorker(),$&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function($){$=parseInt($),$>0&&this.$tabSize!==$&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=$,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function($){this.setFoldStyle($)},handlesSet:!0},overwrite:{set:function($){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function($){this.doc.setNewLineMode($)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function($){this.setMode($)},get:function(){return this.$modeId},handlesSet:!0}}),E.EditSession=c}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(R,E,_){"use strict";var m=R("./lib/lang"),b=R("./lib/oop"),g=R("./range").Range,a=function(){function e(){this.$options={}}return e.prototype.set=function(i){return b.mixin(this.$options,i),this},e.prototype.getOptions=function(){return m.copyObject(this.$options)},e.prototype.setOptions=function(i){this.$options=i},e.prototype.find=function(i){var n=this.$options,t=this.$matchIterator(i,n);if(!t)return!1;var r=null;return t.forEach(function(o,c,d,p){return r=new g(o,c,d,p),c==p&&n.start&&n.start.start&&n.skipCurrent!=!1&&r.isEqual(n.start)?(r=null,!1):!0}),r},e.prototype.findAll=function(i){var n=this.$options;if(!n.needle)return[];this.$assembleRegExp(n);var t=n.range,r=t?i.getLines(t.start.row,t.end.row):i.doc.getAllLines(),o=[],c=n.re;if(n.$isMultiLine){var d=c.length,p=r.length-d,x;e:for(var y=c.offset||0;y<=p;y++){for(var k=0;kS||(o.push(x=new g(y,S,y+d-1,A)),d>2&&(y=y+d-2))}}else for(var $=0;$C&&o[k].end.row==T;)k--;for(o=o.slice($,k+1),$=0,k=o.length;$=p;S--)if(M(S,Number.MAX_VALUE,v))return;if(n.wrap!=!1){for(S=x,p=d.row;S>=p;S--)if(M(S,Number.MAX_VALUE,v))return}}};else var y=function(S){var A=d.row;if(!M(A,d.column,S)){for(A=A+1;A<=x;A++)if(M(A,0,S))return;if(n.wrap!=!1){for(A=p,x=d.row;A<=x;A++)if(M(A,0,S))return}}};if(n.$isMultiLine)var k=t.length,M=function(v,S,A){var $=r?v-k+1:v;if(!($<0||$+k>i.getLength())){var u=i.getLine($),f=u.search(t[0]);if(!(!r&&fS)&&A($,f,$+k-1,C))return!0}}};else if(r)var M=function(S,A,$){var u=i.getLine(S),f=[],w,C=0;for(t.lastIndex=0;w=t.exec(u);){var T=w[0].length;if(C=w.index,!T){if(C>=u.length)break;t.lastIndex=C+=1}if(w.index+T>A)break;f.push(w.index,T)}for(var I=f.length-1;I>=0;I-=2){var F=f[I-1],T=f[I];if($(S,F,S,F+T))return!0}};else var M=function(S,A,$){var u=i.getLine(S),f,w;for(t.lastIndex=A;w=t.exec(u);){var C=w[0].length;if(f=w.index,$(S,f,S,f+C))return!0;if(!C&&(t.lastIndex=f+=1,f>=u.length))return!1}};return{forEach:y}},e}();function l(e,i){function n(t){return/\w/.test(t)||i.regExp?"\\b":""}return n(e[0])+e+n(e[e.length-1])}E.Search=a}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(R,E,_){"use strict";var m=R("../lib/keys"),b=R("../lib/useragent"),g=m.KEY_MODS;function a(e,i){this.platform=i||(b.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function l(e,i){a.call(this,e,i),this.$singleCommand=!1}l.prototype=a.prototype,function(){this.addCommand=function(i){this.commands[i.name]&&this.removeCommand(i),this.commands[i.name]=i,i.bindKey&&this._buildKeyHash(i)},this.removeCommand=function(i,n){var t=i&&(typeof i=="string"?i:i.name);i=this.commands[t],n||delete this.commands[t];var r=this.commandKeyBinding;for(var o in r){var c=r[o];if(c==i)delete r[o];else if(Array.isArray(c)){var d=c.indexOf(i);d!=-1&&(c.splice(d,1),c.length==1&&(r[o]=c[0]))}}},this.bindKey=function(i,n,t){if(typeof i=="object"&&i&&(t==null&&(t=i.position),i=i[this.platform]),!!i){if(typeof n=="function")return this.addCommand({exec:n,bindKey:i,name:n.name||i});i.split("|").forEach(function(r){var o="";if(r.indexOf(" ")!=-1){var c=r.split(/\s+/);r=c.pop(),c.forEach(function(x){var y=this.parseKeys(x),k=g[y.hashId]+y.key;o+=(o?" ":"")+k,this._addCommandToBinding(o,"chainKeys")},this),o+=" "}var d=this.parseKeys(r),p=g[d.hashId]+d.key;this._addCommandToBinding(o+p,n,t)},this)}};function e(i){return typeof i=="object"&&i.bindKey&&i.bindKey.position||(i.isDefault?-100:0)}this._addCommandToBinding=function(i,n,t){var r=this.commandKeyBinding,o;if(!n)delete r[i];else if(!r[i]||this.$singleCommand)r[i]=n;else{Array.isArray(r[i])?(o=r[i].indexOf(n))!=-1&&r[i].splice(o,1):r[i]=[r[i]],typeof t!="number"&&(t=e(n));var c=r[i];for(o=0;ot)break}c.splice(o,0,n)}},this.addCommands=function(i){i&&Object.keys(i).forEach(function(n){var t=i[n];if(t){if(typeof t=="string")return this.bindKey(t,n);typeof t=="function"&&(t={exec:t}),typeof t=="object"&&(t.name||(t.name=n),this.addCommand(t))}},this)},this.removeCommands=function(i){Object.keys(i).forEach(function(n){this.removeCommand(i[n])},this)},this.bindKeys=function(i){Object.keys(i).forEach(function(n){this.bindKey(n,i[n])},this)},this._buildKeyHash=function(i){this.bindKey(i.bindKey,i)},this.parseKeys=function(i){var n=i.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(p){return p}),t=n.pop(),r=m[t];if(m.FUNCTION_KEYS[r])t=m.FUNCTION_KEYS[r].toLowerCase();else if(n.length){if(n.length==1&&n[0]=="shift")return{key:t.toUpperCase(),hashId:-1}}else return{key:t,hashId:-1};for(var o=0,c=n.length;c--;){var d=m.KEY_MODS[n[c]];if(d==null)return typeof console<"u"&&console.error("invalid modifier "+n[c]+" in "+i),!1;o|=d}return{key:t,hashId:o}},this.findKeyCommand=function(n,t){var r=g[n]+t;return this.commandKeyBinding[r]},this.handleKeyboard=function(i,n,t,r){if(!(r<0)){var o=g[n]+t,c=this.commandKeyBinding[o];return i.$keyChain&&(i.$keyChain+=" "+o,c=this.commandKeyBinding[i.$keyChain]||c),c&&(c=="chainKeys"||c[c.length-1]=="chainKeys")?(i.$keyChain=i.$keyChain||o,{command:"null"}):(i.$keyChain&&((!n||n==4)&&t.length==1?i.$keyChain=i.$keyChain.slice(0,-o.length-1):(n==-1||r>0)&&(i.$keyChain="")),{command:c})}},this.getStatusText=function(i,n){return n.$keyChain||""}}.call(a.prototype),E.HashHandler=a,E.MultiHashHandler=l}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(R,E,_){"use strict";var m=this&&this.__extends||function(){var e=function(i,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},e(i,n)};return function(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(i,n);function t(){this.constructor=i}i.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}(),b=R("../lib/oop"),g=R("../keyboard/hash_handler").MultiHashHandler,a=R("../lib/event_emitter").EventEmitter,l=function(e){m(i,e);function i(n,t){var r=e.call(this,t,n)||this;return r.byName=r.commands,r.setDefaultHandler("exec",function(o){return o.args?o.command.exec(o.editor,o.args,o.event,!1):o.command.exec(o.editor,{},o.event,!0)}),r}return i.prototype.exec=function(n,t,r){if(Array.isArray(n)){for(var o=n.length;o--;)if(this.exec(n[o],t,r))return!0;return!1}if(typeof n=="string"&&(n=this.commands[n]),!n||t&&t.$readOnly&&!n.readOnly||this.$checkCommandState!=!1&&n.isAvailable&&!n.isAvailable(t))return!1;var c={editor:t,command:n,args:r};return c.returnValue=this._emit("exec",c),this._signal("afterExec",c),c.returnValue!==!1},i.prototype.toggleRecording=function(n){if(!this.$inReplay)return n&&n._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(t){this.macro.push([t.command,t.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},i.prototype.replay=function(n){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(n);try{this.$inReplay=!0,this.macro.forEach(function(t){typeof t=="string"?this.exec(t,n):this.exec(t[0],n,t[1])},this)}finally{this.$inReplay=!1}}},i.prototype.trimMacro=function(n){return n.map(function(t){return typeof t[0]!="string"&&(t[0]=t[0].name),t[1]||(t=t[0]),t})},i}(g);b.implement(l.prototype,a),E.CommandManager=l}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(R,E,_){"use strict";var m=R("../lib/lang"),b=R("../config"),g=R("../range").Range;function a(e,i){return{win:e,mac:i}}E.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:a("Ctrl-,","Command-,"),exec:function(e){b.loadModule("ace/ext/settings_menu",function(i){i.init(e),e.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:a("Alt-E","F4"),exec:function(e){b.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(e,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(e){b.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(e,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:a("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:a(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:a("Ctrl-L","Command-L"),exec:function(e,i){typeof i=="number"&&!isNaN(i)&&e.gotoLine(i),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:a("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:a("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:a("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:a("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:a("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:a("Ctrl-F","Command-F"),exec:function(e){b.loadModule("ace/ext/searchbox",function(i){i.Search(e)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:a("Up","Up|Ctrl-P"),exec:function(e,i){e.navigateUp(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:a("Down","Down|Ctrl-N"),exec:function(e,i){e.navigateDown(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:a("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:a("Left","Left|Ctrl-B"),exec:function(e,i){e.navigateLeft(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:a("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:a("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:a("Right","Right|Ctrl-F"),exec:function(e,i){e.navigateRight(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:a(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:a(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:a("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:a("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:a("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:a("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var i=e.$copyWithEmptySelection&&e.selection.isEmpty(),n=i?e.selection.getLineRange():e.selection.getRange();e._emit("cut",n),n.isEmpty()||e.session.remove(n),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,i){e.$handlePaste(i)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:a("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:a("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(e){b.loadModule("ace/ext/searchbox",function(i){i.Search(e,!0)})}},{name:"undo",description:"Undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:a("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:a("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:a("Shift-Delete",null),exec:function(e){if(e.selection.isEmpty())e.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(e){var i=e.selection.getRange();i.start.column=0,e.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(e){var i=e.selection.getRange();i.end.column=Number.MAX_VALUE,e.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:a("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,i){e.insert(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,i){e.insert(m.stringRepeat(i.text||"",i.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:a(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:a(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var i=e.selection.getRange();i.start.column=i.end.column=0,i.end.row++,e.selection.setRange(i,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:a("Ctrl+F3","F3"),exec:function(e){e.openLink()}},{name:"joinlines",description:"Join lines",bindKey:a(null,null),exec:function(e){for(var i=e.selection.isBackwards(),n=i?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),t=i?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),r=e.session.doc.getLine(n.row).length,o=e.session.doc.getTextRange(e.selection.getRange()),c=o.replace(/\n\s*/," ").length,d=e.session.doc.getLine(n.row),p=n.row+1;p<=t.row+1;p++){var x=m.stringTrimLeft(m.stringTrimRight(e.session.doc.getLine(p)));x.length!==0&&(x=" "+x),d+=x}t.row+10?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+c)):(r=e.session.doc.getLine(n.row).length>r?r+1:r,e.selection.moveCursorTo(n.row,r))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(e){var i=e.session.doc.getLength()-1,n=e.session.doc.getLine(i).length,t=e.selection.rangeList.ranges,r=[];t.length<1&&(t=[e.selection.getRange()]);for(var o=0;ol[e].column&&e++,t.unshift(e,0),l.splice.apply(l,t),this.$updateRows()}}},g.prototype.$updateRows=function(){var a=this.session.lineWidgets;if(a){var l=!0;a.forEach(function(e,i){if(e)for(l=!1,e.row=i;e.$oldWidget;)e.$oldWidget.row=i,e=e.$oldWidget}),l&&(this.session.lineWidgets=null)}},g.prototype.$registerLineWidget=function(a){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var l=this.session.lineWidgets[a.row];return l&&(a.$oldWidget=l,l.el&&l.el.parentNode&&(l.el.parentNode.removeChild(l.el),l._inDocument=!1)),this.session.lineWidgets[a.row]=a,a},g.prototype.addLineWidget=function(a){if(this.$registerLineWidget(a),a.session=this.session,!this.editor)return a;var l=this.editor.renderer;a.html&&!a.el&&(a.el=m.createElement("div"),a.el.innerHTML=a.html),a.text&&!a.el&&(a.el=m.createElement("div"),a.el.textContent=a.text),a.el&&(m.addCssClass(a.el,"ace_lineWidgetContainer"),a.className&&m.addCssClass(a.el,a.className),a.el.style.position="absolute",a.el.style.zIndex=5,l.container.appendChild(a.el),a._inDocument=!0,a.coverGutter||(a.el.style.zIndex=3),a.pixelHeight==null&&(a.pixelHeight=a.el.offsetHeight)),a.rowCount==null&&(a.rowCount=a.pixelHeight/l.layerConfig.lineHeight);var e=this.session.getFoldAt(a.row,0);if(a.$fold=e,e){var i=this.session.lineWidgets;a.row==e.end.row&&!i[e.start.row]?i[e.start.row]=a:a.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:a.row}}}),this.$updateRows(),this.renderWidgets(null,l),this.onWidgetChanged(a),a},g.prototype.removeLineWidget=function(a){if(a._inDocument=!1,a.session=null,a.el&&a.el.parentNode&&a.el.parentNode.removeChild(a.el),a.editor&&a.editor.destroy)try{a.editor.destroy()}catch{}if(this.session.lineWidgets){var l=this.session.lineWidgets[a.row];if(l==a)this.session.lineWidgets[a.row]=a.$oldWidget,a.$oldWidget&&this.onWidgetChanged(a.$oldWidget);else for(;l;){if(l.$oldWidget==a){l.$oldWidget=a.$oldWidget;break}l=l.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:a.row}}}),this.$updateRows()},g.prototype.getWidgetsAtRow=function(a){for(var l=this.session.lineWidgets,e=l&&l[a],i=[];e;)i.push(e),e=e.$oldWidget;return i},g.prototype.onWidgetChanged=function(a){this.session._changedWidgets.push(a),this.editor&&this.editor.renderer.updateFull()},g.prototype.measureWidgets=function(a,l){var e=this.session._changedWidgets,i=l.layerConfig;if(!(!e||!e.length)){for(var n=1/0,t=0;t0&&!i[n];)n--;this.firstRow=e.firstRow,this.lastRow=e.lastRow,l.$cursorLayer.config=e;for(var r=n;r<=t;r++){var o=i[r];if(!(!o||!o.el)){if(o.hidden){o.el.style.top=-100-(o.pixelHeight||0)+"px";continue}o._inDocument||(o._inDocument=!0,l.container.appendChild(o.el));var c=l.$cursorLayer.getPixelPosition({row:r,column:0},!0).top;o.coverLine||(c+=e.lineHeight*this.session.getRowLineCount(o.row)),o.el.style.top=c-e.offset+"px";var d=o.coverGutter?0:l.gutterWidth;o.fixedWidth||(d-=l.scrollLeft),o.el.style.left=d+"px",o.fullWidth&&o.screenWidth&&(o.el.style.minWidth=e.width+2*e.padding+"px"),o.fixedWidth?o.el.style.right=l.scrollBar.getWidth()+"px":o.el.style.right=""}}}},g}();E.LineWidgets=b}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/line_widgets","ace/clipboard","ace/lib/keys"],function(R,E,_){"use strict";var m=this&&this.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,w=f&&u[f],C=0;if(w)return w.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&C>=u.length&&(u=void 0),{value:u&&u[C++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},b=R("./lib/oop"),g=R("./lib/dom"),a=R("./lib/lang"),l=R("./lib/useragent"),e=R("./keyboard/textinput").TextInput,i=R("./mouse/mouse_handler").MouseHandler,n=R("./mouse/fold_handler").FoldHandler,t=R("./keyboard/keybinding").KeyBinding,r=R("./edit_session").EditSession,o=R("./search").Search,c=R("./range").Range,d=R("./lib/event_emitter").EventEmitter,p=R("./commands/command_manager").CommandManager,x=R("./commands/default_commands").commands,y=R("./config"),k=R("./token_iterator").TokenIterator,M=R("./line_widgets").LineWidgets,v=R("./clipboard"),S=R("./lib/keys"),A=function(){function u(f,w,C){this.$toDestroy=[];var T=f.getContainerElement();this.container=T,this.renderer=f,this.id="editor"+ ++u.$uid,this.commands=new p(l.isMac?"mac":"win",x),typeof document=="object"&&(this.textInput=new e(f.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new i(this),new n(this)),this.keyBinding=new t(this),this.$search=new o().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=a.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(I,F){F._$emitInputEvent.schedule(31)}),this.setSession(w||C&&C.session||new r("")),y.resetOptions(this),C&&this.setOptions(C),y._signal("editor",this)}return u.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=a.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},u.prototype.startOperation=function(f){if(this.curOp){if(!f||this.curOp.command)return;this.prevOp=this.curOp}f||(this.previousCommand=null,f={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:f.command||{},args:f.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},u.prototype.endOperation=function(f){if(this.curOp&&this.session){if(f&&f.returnValue===!1||!this.session)return this.curOp=null;if(f==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var w=this.curOp.command,C=w&&w.scrollIntoView;if(C){switch(C){case"center-animate":C="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var T=this.selection.getRange(),I=this.renderer.layerConfig;(T.start.row>=I.lastRow||T.end.row<=I.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break;default:break}C=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var F=this.selection.toJSON();this.curOp.selectionAfter=F,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(F),this.prevOp=this.curOp,this.curOp=null}},u.prototype.$historyTracker=function(f){if(this.$mergeUndoDeltas){var w=this.prevOp,C=this.$mergeableCommands,T=w.command&&f.command.name==w.command.name;if(f.command.name=="insertstring"){var I=f.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),T=T&&this.mergeNextCommand&&(!/\s/.test(I)||/\s/.test(w.args)),this.mergeNextCommand=!0}else T=T&&C.indexOf(f.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(T=!1),T?this.session.mergeUndoDeltas=!0:C.indexOf(f.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},u.prototype.setKeyboardHandler=function(f,w){if(f&&typeof f=="string"&&f!="ace"){this.$keybindingId=f;var C=this;y.loadModule(["keybinding",f],function(T){C.$keybindingId==f&&C.keyBinding.setKeyboardHandler(T&&T.handler),w&&w()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(f),w&&w()},u.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},u.prototype.setSession=function(f){if(this.session!=f){this.curOp&&this.endOperation(),this.curOp={};var w=this.session;if(w){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var C=this.session.getSelection();C.off("changeCursor",this.$onCursorChange),C.off("changeSelection",this.$onSelectionChange)}this.session=f,f?(this.$onDocumentChange=this.onDocumentChange.bind(this),f.on("change",this.$onDocumentChange),this.renderer.setSession(f),this.$onChangeMode=this.onChangeMode.bind(this),f.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),f.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),f.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),f.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),f.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),f.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=f.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(f)),this._signal("changeSession",{session:f,oldSession:w}),this.curOp=null,w&&w._signal("changeEditor",{oldEditor:this}),f&&f._signal("changeEditor",{editor:this}),f&&!f.destroyed&&f.bgTokenizer.scheduleStart()}},u.prototype.getSession=function(){return this.session},u.prototype.setValue=function(f,w){return this.session.doc.setValue(f),w?w==1?this.navigateFileEnd():w==-1&&this.navigateFileStart():this.selectAll(),f},u.prototype.getValue=function(){return this.session.getValue()},u.prototype.getSelection=function(){return this.selection},u.prototype.resize=function(f){this.renderer.onResize(f)},u.prototype.setTheme=function(f,w){this.renderer.setTheme(f,w)},u.prototype.getTheme=function(){return this.renderer.getTheme()},u.prototype.setStyle=function(f){this.renderer.setStyle(f)},u.prototype.unsetStyle=function(f){this.renderer.unsetStyle(f)},u.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},u.prototype.setFontSize=function(f){this.setOption("fontSize",f)},u.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var f=this;this.$highlightPending=!0,setTimeout(function(){f.$highlightPending=!1;var w=f.session;if(!(!w||w.destroyed)){w.$bracketHighlight&&(w.$bracketHighlight.markerIds.forEach(function(B){w.removeMarker(B)}),w.$bracketHighlight=null);var C=f.getCursorPosition(),T=f.getKeyboardHandler(),I=T&&T.$getDirectionForHighlight&&T.$getDirectionForHighlight(f),F=w.getMatchingBracketRanges(C,I);if(!F){var O=new k(w,C.row,C.column),D=O.getCurrentToken();if(D&&/\b(?:tag-open|tag-name)/.test(D.type)){var W=w.getMatchingTags(C);W&&(F=[W.openTagName,W.closeTagName])}}if(!F&&w.$mode.getMatching&&(F=w.$mode.getMatching(f.session)),!F){f.getHighlightIndentGuides()&&f.renderer.$textLayer.$highlightIndentGuide();return}var U="ace_bracket";Array.isArray(F)?F.length==1&&(U="ace_error_bracket"):F=[F],F.length==2&&(c.comparePoints(F[0].end,F[1].start)==0?F=[c.fromPoints(F[0].start,F[1].end)]:c.comparePoints(F[0].start,F[1].end)==0&&(F=[c.fromPoints(F[1].start,F[0].end)])),w.$bracketHighlight={ranges:F,markerIds:F.map(function(B){return w.addMarker(B,U,"text")})},f.getHighlightIndentGuides()&&f.renderer.$textLayer.$highlightIndentGuide()}},50)}},u.prototype.focus=function(){this.textInput.focus()},u.prototype.isFocused=function(){return this.textInput.isFocused()},u.prototype.blur=function(){this.textInput.blur()},u.prototype.onFocus=function(f){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",f))},u.prototype.onBlur=function(f){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",f))},u.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},u.prototype.onDocumentChange=function(f){var w=this.session.$useWrapMode,C=f.start.row==f.end.row?f.end.row:1/0;this.renderer.updateLines(f.start.row,C,w),this._signal("change",f),this.$cursorChange()},u.prototype.onTokenizerUpdate=function(f){var w=f.data;this.renderer.updateLines(w.first,w.last)},u.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},u.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},u.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},u.prototype.$updateHighlightActiveLine=function(){var f=this.getSession(),w;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(w=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(w=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(w=!1)),f.$highlightLineMarker&&!w)f.removeMarker(f.$highlightLineMarker.id),f.$highlightLineMarker=null;else if(!f.$highlightLineMarker&&w){var C=new c(w.row,w.column,w.row,1/0);C.id=f.addMarker(C,"ace_active-line","screenLine"),f.$highlightLineMarker=C}else w&&(f.$highlightLineMarker.start.row=w.row,f.$highlightLineMarker.end.row=w.row,f.$highlightLineMarker.start.column=w.column,f._signal("changeBackMarker"))},u.prototype.onSelectionChange=function(f){var w=this.session;if(w.$selectionMarker&&w.removeMarker(w.$selectionMarker),w.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var C=this.selection.getRange(),T=this.getSelectionStyle();w.$selectionMarker=w.addMarker(C,"ace_selection",T)}var I=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(I),this._signal("changeSelection")},u.prototype.$getSelectionHighLightRegexp=function(){var f=this.session,w=this.getSelectionRange();if(!(w.isEmpty()||w.isMultiLine())){var C=w.start.column,T=w.end.column,I=f.getLine(w.start.row),F=I.substring(C,T);if(!(F.length>5e3||!/[\w\d]/.test(F))){var O=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:F}),D=I.substring(C-1,T+1);if(O.test(D))return O}}},u.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},u.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},u.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},u.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},u.prototype.onChangeMode=function(f){this.renderer.updateText(),this._emit("changeMode",f)},u.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},u.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},u.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},u.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},u.prototype.getCopyText=function(){var f=this.getSelectedText(),w=this.session.doc.getNewLineCharacter(),C=!1;if(!f&&this.$copyWithEmptySelection){C=!0;for(var T=this.selection.getAllRanges(),I=0;IB.search(/\S|$/)){var D=B.substr(I.column).search(/\S|$/);C.doc.removeInLine(I.row,I.column,I.column+D)}}this.clearSelection();var W=I.column,U=C.getState(I.row),B=C.getLine(I.row),H=T.checkOutdent(U,B,f);if(C.insert(I,f),F&&F.selection&&(F.selection.length==2?this.selection.setSelectionRange(new c(I.row,W+F.selection[0],I.row,W+F.selection[1])):this.selection.setSelectionRange(new c(I.row+F.selection[0],F.selection[1],I.row+F.selection[2],F.selection[3]))),this.$enableAutoIndent){if(C.getDocument().isNewLine(f)){var N=T.getNextLineIndent(U,B.slice(0,I.column),C.getTabString());C.insert({row:I.row+1,column:0},N)}H&&T.autoOutdent(U,C,I.row)}},u.prototype.autoIndent=function(){var f=this.session,w=f.getMode(),C,T;if(this.selection.isEmpty())C=0,T=f.doc.getLength()-1;else{var I=this.getSelectionRange();C=I.start.row,T=I.end.row}for(var F="",O="",D="",W,U,B,H=f.getTabString(),N=C;N<=T;N++)N>0&&(F=f.getState(N-1),O=f.getLine(N-1),D=w.getNextLineIndent(F,O,H)),W=f.getLine(N),U=w.$getIndent(W),D!==U&&(U.length>0&&(B=new c(N,0,N,U.length),f.remove(B)),D.length>0&&f.insert({row:N,column:0},D)),w.autoOutdent(F,f,N)},u.prototype.onTextInput=function(f,w){if(!w)return this.keyBinding.onTextInput(f);this.startOperation({command:{name:"insertstring"}});var C=this.applyComposition.bind(this,f,w);this.selection.rangeCount?this.forEachSelection(C):C(),this.endOperation()},u.prototype.applyComposition=function(f,w){if(w.extendLeft||w.extendRight){var C=this.selection.getRange();C.start.column-=w.extendLeft,C.end.column+=w.extendRight,C.start.column<0&&(C.start.row--,C.start.column+=this.session.getLine(C.start.row).length+1),this.selection.setRange(C),!f&&!C.isEmpty()&&this.remove()}if((f||!this.selection.isEmpty())&&this.insert(f,!0),w.restoreStart||w.restoreEnd){var C=this.selection.getRange();C.start.column-=w.restoreStart,C.end.column-=w.restoreEnd,this.selection.setRange(C)}},u.prototype.onCommandKey=function(f,w,C){return this.keyBinding.onCommandKey(f,w,C)},u.prototype.setOverwrite=function(f){this.session.setOverwrite(f)},u.prototype.getOverwrite=function(){return this.session.getOverwrite()},u.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},u.prototype.setScrollSpeed=function(f){this.setOption("scrollSpeed",f)},u.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},u.prototype.setDragDelay=function(f){this.setOption("dragDelay",f)},u.prototype.getDragDelay=function(){return this.getOption("dragDelay")},u.prototype.setSelectionStyle=function(f){this.setOption("selectionStyle",f)},u.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},u.prototype.setHighlightActiveLine=function(f){this.setOption("highlightActiveLine",f)},u.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},u.prototype.setHighlightGutterLine=function(f){this.setOption("highlightGutterLine",f)},u.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},u.prototype.setHighlightSelectedWord=function(f){this.setOption("highlightSelectedWord",f)},u.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},u.prototype.setAnimatedScroll=function(f){this.renderer.setAnimatedScroll(f)},u.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},u.prototype.setShowInvisibles=function(f){this.renderer.setShowInvisibles(f)},u.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},u.prototype.setDisplayIndentGuides=function(f){this.renderer.setDisplayIndentGuides(f)},u.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},u.prototype.setHighlightIndentGuides=function(f){this.renderer.setHighlightIndentGuides(f)},u.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},u.prototype.setShowPrintMargin=function(f){this.renderer.setShowPrintMargin(f)},u.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},u.prototype.setPrintMarginColumn=function(f){this.renderer.setPrintMarginColumn(f)},u.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},u.prototype.setReadOnly=function(f){this.setOption("readOnly",f)},u.prototype.getReadOnly=function(){return this.getOption("readOnly")},u.prototype.setBehavioursEnabled=function(f){this.setOption("behavioursEnabled",f)},u.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},u.prototype.setWrapBehavioursEnabled=function(f){this.setOption("wrapBehavioursEnabled",f)},u.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},u.prototype.setShowFoldWidgets=function(f){this.setOption("showFoldWidgets",f)},u.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},u.prototype.setFadeFoldWidgets=function(f){this.setOption("fadeFoldWidgets",f)},u.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},u.prototype.remove=function(f){this.selection.isEmpty()&&(f=="left"?this.selection.selectLeft():this.selection.selectRight());var w=this.getSelectionRange();if(this.getBehavioursEnabled()){var C=this.session,T=C.getState(w.start.row),I=C.getMode().transformAction(T,"deletion",this,C,w);if(w.end.column===0){var F=C.getTextRange(w);if(F[F.length-1]==` `){var O=C.getLine(w.end.row);/^\s+$/.test(O)&&(w.end.column=O.length)}}I&&(w=I)}this.session.remove(w),this.clearSelection()},u.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},u.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},u.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},u.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var f=this.getSelectionRange();f.start.column==f.end.column&&f.start.row==f.end.row&&(f.end.column=0,f.end.row++),this.session.remove(f),this.clearSelection()},u.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var f=this.getCursorPosition();this.insert(` `),this.moveCursorToPosition(f)},u.prototype.setGhostText=function(f,w){this.session.widgetManager||(this.session.widgetManager=new M(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(f,w)},u.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},u.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var f=this.getCursorPosition(),w=f.column;if(w!==0){var C=this.session.getLine(f.row),T,I;wD.toLowerCase()?1:0});for(var I=new c(0,0,0,0),T=f.first;T<=f.last;T++){var F=w.getLine(T);I.start.row=T,I.end.row=T,I.end.column=F.length,w.replace(I,C[T-f.first])}},u.prototype.toggleCommentLines=function(){var f=this.session.getState(this.getCursorPosition().row),w=this.$getSelectedRows();this.session.getMode().toggleCommentLines(f,this.session,w.first,w.last)},u.prototype.toggleBlockComment=function(){var f=this.getCursorPosition(),w=this.session.getState(f.row),C=this.getSelectionRange();this.session.getMode().toggleBlockComment(w,this.session,C,f)},u.prototype.getNumberAt=function(f,w){var C=/[\-]?[0-9]+(?:\.[0-9]+)?/g;C.lastIndex=0;for(var T=this.session.getLine(f);C.lastIndex=w){var F={value:I[0],start:I.index,end:I.index+I[0].length};return F}}return null},u.prototype.modifyNumber=function(f){var w=this.selection.getCursor().row,C=this.selection.getCursor().column,T=new c(w,C-1,w,C),I=this.session.getTextRange(T);if(!isNaN(parseFloat(I))&&isFinite(I)){var F=this.getNumberAt(w,C);if(F){var O=F.value.indexOf(".")>=0?F.start+F.value.indexOf(".")+1:F.end,D=F.start+F.value.length-O,W=parseFloat(F.value);W*=Math.pow(10,D),O!==F.end&&C=O&&F<=D&&(C=K,W.selection.clearSelection(),W.moveCursorTo(f,O+T),W.selection.selectTo(f,D+T)),O=D});for(var U=this.$toggleWordPairs,B,H=0;H=D&&O<=W&&N.match(/((?:https?|ftp):\/\/[\S]+)/)){U=N.replace(/[\s:.,'";}\]]+$/,"");break}D=W}}catch(P){C={error:P}}finally{try{H&&!H.done&&(T=B.return)&&T.call(B)}finally{if(C)throw C.error}}return U},u.prototype.openLink=function(){var f=this.selection.getCursor(),w=this.findLinkAt(f.row,f.column);return w&&window.open(w,"_blank"),w!=null},u.prototype.removeLines=function(){var f=this.$getSelectedRows();this.session.removeFullLines(f.first,f.last),this.clearSelection()},u.prototype.duplicateSelection=function(){var f=this.selection,w=this.session,C=f.getRange(),T=f.isBackwards();if(C.isEmpty()){var I=C.start.row;w.duplicateLines(I,I)}else{var F=T?C.start:C.end,O=w.insert(F,w.getTextRange(C),!1);C.start=F,C.end=O,f.setSelectionRange(C,T)}},u.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},u.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},u.prototype.moveText=function(f,w,C){return this.session.moveText(f,w,C)},u.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},u.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},u.prototype.$moveLines=function(f,w){var C,T,I=this.selection;if(!I.inMultiSelectMode||this.inVirtualSelectionMode){var F=I.toOrientedRange();C=this.$getSelectedRows(F),T=this.session.$moveLines(C.first,C.last,w?0:f),w&&f==-1&&(T=0),F.moveBy(T,0),I.fromOrientedRange(F)}else{var O=I.rangeList.ranges;I.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var D=0,W=0,U=O.length,B=0;BP+1)break;P=G.last}for(B--,D=this.session.$moveLines(N,P,w?0:f),w&&f==-1&&(H=B+1);H<=B;)O[H].moveBy(D,0),H++;w||(D=0),W+=D}I.fromOrientedRange(I.ranges[0]),I.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},u.prototype.$getSelectedRows=function(f){return f=(f||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(f.start.row),last:this.session.getRowFoldEnd(f.end.row)}},u.prototype.onCompositionStart=function(f){this.renderer.showComposition(f)},u.prototype.onCompositionUpdate=function(f){this.renderer.setCompositionText(f)},u.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},u.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},u.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},u.prototype.isRowVisible=function(f){return f>=this.getFirstVisibleRow()&&f<=this.getLastVisibleRow()},u.prototype.isRowFullyVisible=function(f){return f>=this.renderer.getFirstFullyVisibleRow()&&f<=this.renderer.getLastFullyVisibleRow()},u.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},u.prototype.$moveByPage=function(f,w){var C=this.renderer,T=this.renderer.layerConfig,I=f*Math.floor(T.height/T.lineHeight);w===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):w===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var F=C.scrollTop;C.scrollBy(0,I*T.lineHeight),w!=null&&C.scrollCursorIntoView(null,.5),C.animateScrolling(F)},u.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},u.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},u.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},u.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},u.prototype.scrollPageDown=function(){this.$moveByPage(1)},u.prototype.scrollPageUp=function(){this.$moveByPage(-1)},u.prototype.scrollToRow=function(f){this.renderer.scrollToRow(f)},u.prototype.scrollToLine=function(f,w,C,T){this.renderer.scrollToLine(f,w,C,T)},u.prototype.centerSelection=function(){var f=this.getSelectionRange(),w={row:Math.floor(f.start.row+(f.end.row-f.start.row)/2),column:Math.floor(f.start.column+(f.end.column-f.start.column)/2)};this.renderer.alignCursor(w,.5)},u.prototype.getCursorPosition=function(){return this.selection.getCursor()},u.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},u.prototype.getSelectionRange=function(){return this.selection.getRange()},u.prototype.selectAll=function(){this.selection.selectAll()},u.prototype.clearSelection=function(){this.selection.clearSelection()},u.prototype.moveCursorTo=function(f,w){this.selection.moveCursorTo(f,w)},u.prototype.moveCursorToPosition=function(f){this.selection.moveCursorToPosition(f)},u.prototype.jumpToMatching=function(f,w){var C=this.getCursorPosition(),T=new k(this.session,C.row,C.column),I=T.getCurrentToken(),F=0;I&&I.type.indexOf("tag-name")!==-1&&(I=T.stepBackward());var O=I||T.stepForward();if(O){var D,W=!1,U={},B=C.column-O.start,H,N={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(O.value.match(/[{}()\[\]]/g)){for(;B1?U[O.value]++:I.value==="=0;--F)this.$tryReplace(C[F],f)&&T++;return this.selection.setSelectionRange(I),T},u.prototype.$tryReplace=function(f,w){var C=this.session.getTextRange(f);return w=this.$search.replace(C,w),w!==null?(f.end=this.session.replace(f,w),f):null},u.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},u.prototype.find=function(f,w,C){w||(w={}),typeof f=="string"||f instanceof RegExp?w.needle=f:typeof f=="object"&&b.mixin(w,f);var T=this.selection.getRange();w.needle==null&&(f=this.session.getTextRange(T)||this.$search.$options.needle,f||(T=this.session.getWordRange(T.start.row,T.start.column),f=this.session.getTextRange(T)),this.$search.set({needle:f})),this.$search.set(w),w.start||this.$search.set({start:T});var I=this.$search.find(this.session);if(w.preventScroll)return I;if(I)return this.revealRange(I,C),I;w.backwards?T.start=T.end:T.end=T.start,this.selection.setRange(T)},u.prototype.findNext=function(f,w){this.find({skipCurrent:!0,backwards:!1},f,w)},u.prototype.findPrevious=function(f,w){this.find(f,{skipCurrent:!0,backwards:!0},w)},u.prototype.revealRange=function(f,w){this.session.unfold(f),this.selection.setSelectionRange(f);var C=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(f.start,f.end,.5),w!==!1&&this.renderer.animateScrolling(C)},u.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},u.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},u.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(f){f.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},u.prototype.setAutoScrollEditorIntoView=function(f){if(f){var w,C=this,T=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var I=this.$scrollAnchor;I.style.cssText="position:absolute",this.container.insertBefore(I,this.container.firstChild);var F=this.on("changeSelection",function(){T=!0}),O=this.renderer.on("beforeRender",function(){T&&(w=C.renderer.container.getBoundingClientRect())}),D=this.renderer.on("afterRender",function(){if(T&&w&&(C.isFocused()||C.searchBox&&C.searchBox.isFocused())){var W=C.renderer,U=W.$cursorLayer.$pixelPos,B=W.layerConfig,H=U.top-B.offset;U.top>=0&&H+w.top<0?T=!0:U.topwindow.innerHeight?T=!1:T=null,T!=null&&(I.style.top=H+"px",I.style.left=U.left+"px",I.style.height=B.lineHeight+"px",I.scrollIntoView(T)),T=w=null}});this.setAutoScrollEditorIntoView=function(W){W||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",F),this.renderer.off("afterRender",D),this.renderer.off("beforeRender",O))}}},u.prototype.$resetCursorStyle=function(){var f=this.$cursorStyle||"ace",w=this.renderer.$cursorLayer;w&&(w.setSmoothBlinking(/smooth/.test(f)),w.isBlinking=!this.$readOnly&&f!="wide",g.setCssClass(w.element,"ace_slim-cursors",/slim/.test(f)))},u.prototype.prompt=function(f,w,C){var T=this;y.loadModule("ace/ext/prompt",function(I){I.prompt(T,f,w,C)})},u}();A.$uid=0,A.prototype.curOp=null,A.prototype.prevOp={},A.prototype.$mergeableCommands=["backspace","del","insertstring"],A.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],b.implement(A.prototype,d),y.defineOptions(A.prototype,"editor",{selectionStyle:{set:function(u){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:u})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(u){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(u){this.textInput.setReadOnly(u),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(u){this.textInput.setCopyWithEmptySelection(u)},initialValue:!1},cursorStyle:{set:function(u){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(u){this.setAutoScrollEditorIntoView(u)}},keyboardHandler:{set:function(u){this.setKeyboardHandler(u)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(u){this.session.setValue(u)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(u){this.setSession(u)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(u){this.renderer.$gutterLayer.setShowLineNumbers(u),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),u&&this.$relativeLineNumbers?$.attach(this):$.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(u){this.$showLineNumbers&&u?$.attach(this):$.detach(this)}},placeholder:{set:function(u){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var f=this.session&&(this.renderer.$composition||this.getValue());if(f&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),g.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!f&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),g.addCssClass(this.container,"ace_hasPlaceholder");var w=g.createElement("div");w.className="ace_placeholder",w.textContent=this.$placeholder||"",this.renderer.placeholderNode=w,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!f&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(u){var f={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(T){T.blur(),T.renderer.content.focus()},readOnly:!0},w=function(T){T.target==this.renderer.content&&T.keyCode===S.enter&&(T.stopPropagation(),T.preventDefault(),this.focus())},C="ace_keyboard-focus";u?(this.textInput.getElement().setAttribute("tabindex",-1),this.renderer.content.setAttribute("tabindex",0),this.renderer.content.classList.add(C),this.renderer.content.setAttribute("aria-label","Editor, press Enter key to start editing, press Escape key to exit"),this.renderer.content.addEventListener("keyup",w.bind(this)),this.commands.addCommand(f)):(this.textInput.getElement().setAttribute("tabindex",0),this.renderer.content.setAttribute("tabindex",-1),this.renderer.content.classList.remove(C),this.renderer.content.setAttribute("aria-label",""),this.renderer.content.removeEventListener("keyup",w.bind(this)),this.commands.removeCommand(f))},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var $={getText:function(u,f){return(Math.abs(u.selection.lead.row-f)||f+1+(f<9?"\xB7":""))+""},getWidth:function(u,f,w){return Math.max(f.toString().length,(w.lastRow+1).toString().length,2)*w.characterWidth},update:function(u,f){f.renderer.$loop.schedule(f.renderer.CHANGE_GUTTER)},attach:function(u){u.renderer.$gutterLayer.$renderer=this,u.on("changeSelection",this.update),this.update(null,u)},detach:function(u){u.renderer.$gutterLayer.$renderer==this&&(u.renderer.$gutterLayer.$renderer=null),u.off("changeSelection",this.update),this.update(null,u)}};E.Editor=A}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(R,E,_){"use strict";var m=function(){function v(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return v.prototype.addSession=function(S){this.$session=S},v.prototype.add=function(S,A,$){if(!this.$fromUndo&&S!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),A===!1||!this.lastDeltas){this.lastDeltas=[];var u=this.$undoStack.length;u>this.$undoDepth-1&&this.$undoStack.splice(0,u-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),S.id=this.$rev=++this.$maxRev}(S.action=="remove"||S.action=="insert")&&(this.$lastDelta=S),this.lastDeltas.push(S)}},v.prototype.addSelection=function(S,A){this.selections.push({value:S,rev:A||this.$rev})},v.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},v.prototype.markIgnored=function(S,A){A==null&&(A=this.$rev+1);for(var $=this.$undoStack,u=$.length;u--;){var f=$[u][0];if(f.id<=S)break;f.id0},v.prototype.canRedo=function(){return this.$redoStack.length>0},v.prototype.bookmark=function(S){S==null&&(S=this.$rev),this.mark=S},v.prototype.isAtBookmark=function(){return this.$rev===this.mark},v.prototype.toJSON=function(){},v.prototype.fromJSON=function(){},v.prototype.$prettyPrint=function(S){return S?t(S):t(this.$undoStack)+` --- `+t(this.$redoStack)},v}();m.prototype.hasUndo=m.prototype.canUndo,m.prototype.hasRedo=m.prototype.canRedo,m.prototype.isClean=m.prototype.isAtBookmark,m.prototype.markClean=m.prototype.bookmark;function b(v,S){for(var A=S;A--;){var $=v[A];if($&&!$[0].ignore){for(;A0){C.row+=u,C.column+=C.row==$.row?f:0;continue}!S&&I<=0&&(C.row=A.row,C.column=A.column,I===0&&(C.bias=1))}}}function i(v){return{row:v.row,column:v.column}}function n(v){return{start:i(v.start),end:i(v.end),action:v.action,lines:v.lines.slice()}}function t(v){if(v=v||this,Array.isArray(v))return v.map(t).join(` `);var S="";return v.action?(S=v.action=="insert"?"+":"-",S+="["+v.lines+"]"):v.value&&(Array.isArray(v.value)?S=v.value.map(r).join(` `):S=r(v.value)),v.start&&(S+=r(v)),(v.id||v.rev)&&(S+=" ("+(v.id||v.rev)+")"),S}function r(v){return v.start.row+":"+v.start.column+"=>"+v.end.row+":"+v.end.column}function o(v,S){var A=v.action=="insert",$=S.action=="insert";if(A&&$)if(a(S.start,v.end)>=0)p(S,v,-1);else if(a(S.start,v.start)<=0)p(v,S,1);else return null;else if(A&&!$)if(a(S.start,v.end)>=0)p(S,v,-1);else if(a(S.end,v.start)<=0)p(v,S,-1);else return null;else if(!A&&$)if(a(S.start,v.start)>=0)p(S,v,1);else if(a(S.start,v.start)<=0)p(v,S,1);else return null;else if(!A&&!$)if(a(S.start,v.start)>=0)p(S,v,1);else if(a(S.end,v.start)<=0)p(v,S,-1);else return null;return[S,v]}function c(v,S){for(var A=v.length;A--;)for(var $=0;$=0?p(v,S,-1):(a(v.start,S.start)<=0||p(v,g.fromPoints(S.start,v.start),-1),p(S,v,1));else if(!A&&$)a(S.start,v.end)>=0?p(S,v,-1):(a(S.start,v.start)<=0||p(S,g.fromPoints(v.start,S.start),-1),p(v,S,1));else if(!A&&!$)if(a(S.start,v.end)>=0)p(S,v,-1);else if(a(S.end,v.start)<=0)p(v,S,-1);else{var u,f;return a(v.start,S.start)<0&&(u=v,v=y(v,S.start)),a(v.end,S.end)>0&&(f=y(v,S.end)),x(S.end,v.start,v.end,-1),f&&!u&&(v.lines=f.lines,v.start=f.start,v.end=f.end,f=v),[S,u,f].filter(Boolean)}return[S,v]}function p(v,S,A){x(v.start,S.start,S.end,A),x(v.end,S.start,S.end,A)}function x(v,S,A,$){v.row==($==1?S:A).row&&(v.column+=$*(A.column-S.column)),v.row+=$*(A.row-S.row)}function y(v,S){var A=v.lines,$=v.end;v.end=i(S);var u=v.end.row-v.start.row,f=A.splice(u,A.length),w=u?S.column:S.column-v.start.column;A.push(f[0].substring(0,w)),f[0]=f[0].substr(w);var C={start:i(S),end:$,lines:f,action:v.action};return C}function k(v,S){S=n(S);for(var A=v.length;A--;){for(var $=v[A],u=0;u<$.length;u++){var f=$[u],w=d(f,S);S=w[0],w.length!=2&&(w[2]?($.splice(u+1,1,w[1],w[2]),u++):w[1]||($.splice(u,1),u--))}$.length||v.splice(A,1)}return v}function M(v,S){for(var A=0;Ap&&(k=d.end.row+1,d=r.getNextFoldLine(k,d),p=d?d.start.row:1/0),k>c){for(;this.$lines.getLength()>y+1;)this.$lines.pop();break}x=this.$lines.get(++y),x?x.row=k:(x=this.$lines.createCell(k,t,this.session,i),this.$lines.push(x)),this.$renderCell(x,t,d,k),k++}this._signal("afterRender"),this.$updateGutterWidth(t)},n.prototype.$updateGutterWidth=function(t){var r=this.session,o=r.gutterRenderer||this.$renderer,c=r.$firstLineNumber,d=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||r.$useWrapMode)&&(d=r.getLength()+c-1);var p=o?o.getWidth(r,d,t):d.toString().length*t.characterWidth,x=this.$padding||this.$computePadding();p+=x.left+x.right,p!==this.gutterWidth&&!isNaN(p)&&(this.gutterWidth=p,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",p))},n.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var t=this.session.selection.getCursor();this.$cursorRow!==t.row&&(this.$cursorRow=t.row)}},n.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var t=this.session.selection.cursor.row;if(this.$cursorRow=t,!(this.$cursorCell&&this.$cursorCell.row==t)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var r=this.$lines.cells;this.$cursorCell=null;for(var o=0;o=this.$cursorRow){if(c.row>this.$cursorRow){var d=this.session.getFoldLine(this.$cursorRow);if(o>0&&d&&d.start.row==r[o-1].row)c=r[o-1];else break}c.element.className="ace_gutter-active-line "+c.element.className,this.$cursorCell=c;break}}}}},n.prototype.scrollLines=function(t){var r=this.config;if(this.config=t,this.$updateCursorRow(),this.$lines.pageChanged(r,t))return this.update(t);this.$lines.moveContainer(t);var o=Math.min(t.lastRow+t.gutterOffset,this.session.getLength()-1),c=this.oldLastRow;if(this.oldLastRow=o,!r||c0;d--)this.$lines.shift();if(c>o)for(var d=this.session.getFoldedRowCount(o+1,c);d>0;d--)this.$lines.pop();t.firstRowc&&this.$lines.push(this.$renderLines(t,c+1,o)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(t)},n.prototype.$renderLines=function(t,r,o){for(var c=[],d=r,p=this.session.getNextFoldLine(d),x=p?p.start.row:1/0;d>x&&(d=p.end.row+1,p=this.session.getNextFoldLine(d,p),x=p?p.start.row:1/0),!(d>o);){var y=this.$lines.createCell(d,t,this.session,i);this.$renderCell(y,t,p,d),c.push(y),d++}return c},n.prototype.$renderCell=function(t,r,o,c){var d=t.element,p=this.session,x=d.childNodes[0],y=d.childNodes[1],k=d.childNodes[2],M=p.$firstLineNumber,v=p.$breakpoints,S=p.$decorations,A=p.gutterRenderer||this.$renderer,$=this.$showFoldWidgets&&p.foldWidgets,u=o?o.start.row:Number.MAX_VALUE,f=r.lineHeight+"px",w;if(this.$useSvgGutterIcons?(w="ace_gutter-cell_svg-icons ",this.$annotations[c]?(k.className="ace_icon_svg"+this.$annotations[c].className,m.setStyle(k.style,"height",f),m.setStyle(k.style,"display","block")):m.setStyle(k.style,"display","none")):(w="ace_gutter-cell ",m.setStyle(k.style,"display","none")),this.$highlightGutterLine&&(c==this.$cursorRow||o&&c=u&&this.$cursorRow<=o.end.row)&&(w+="ace_gutter-active-line ",this.$cursorCell!=t&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=t)),v[c]&&(w+=v[c]),S[c]&&(w+=S[c]),this.$annotations[c]&&(w+=this.$annotations[c].className),d.className!=w&&(d.className=w),$){var C=$[c];C==null&&(C=$[c]=p.getFoldWidget(c))}if(C){var w="ace_fold-widget ace_"+C;C=="start"&&c==u&&co.right-r.right)return"foldWidgets"},n}();e.prototype.$fixedWidth=!1,e.prototype.$highlightGutterLine=!0,e.prototype.$renderer="",e.prototype.$showLineNumbers=!0,e.prototype.$showFoldWidgets=!0,b.implement(e.prototype,a);function i(n){var t=document.createTextNode("");n.appendChild(t);var r=m.createElement("span");n.appendChild(r);var o=m.createElement("span");return n.appendChild(o),n}E.Gutter=e}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(R,E,_){"use strict";var m=R("../range").Range,b=R("../lib/dom"),g=function(){function l(e){this.element=b.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)}return l.prototype.setPadding=function(e){this.$padding=e},l.prototype.setSession=function(e){this.session=e},l.prototype.setMarkers=function(e){this.markers=e},l.prototype.elt=function(e,i){var n=this.i!=-1&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=i,n.className=e},l.prototype.update=function(e){if(e){this.config=e,this.i=0;var i;for(var n in this.markers){var t=this.markers[n];if(!t.range){t.update(i,this,this.session,e);continue}var r=t.range.clipRows(e.firstRow,e.lastRow);if(!r.isEmpty())if(r=r.toScreenRange(this.session),t.renderer){var o=this.$getTop(r.start.row,e),c=this.$padding+r.start.column*e.characterWidth;t.renderer(i,r,c,o,e)}else t.type=="fullLine"?this.drawFullLineMarker(i,r,t.clazz,e):t.type=="screenLine"?this.drawScreenLineMarker(i,r,t.clazz,e):r.isMultiLine()?t.type=="text"?this.drawTextMarker(i,r,t.clazz,e):this.drawMultiLineMarker(i,r,t.clazz,e):this.drawSingleLineMarker(i,r,t.clazz+" ace_start ace_br15",e)}if(this.i!=-1)for(;this.ik,p==d),t,p==d?0:1,r)},l.prototype.drawMultiLineMarker=function(e,i,n,t,r){var o=this.$padding,c=t.lineHeight,d=this.$getTop(i.start.row,t),p=o+i.start.column*t.characterWidth;if(r=r||"",this.session.$bidiHandler.isBidiRow(i.start.row)){var x=i.clone();x.end.row=x.start.row,x.end.column=this.session.getLine(x.start.row).length,this.drawBidiSingleLineMarker(e,x,n+" ace_br1 ace_start",t,null,r)}else this.elt(n+" ace_br1 ace_start","height:"+c+"px;right:0;top:"+d+"px;left:"+p+"px;"+(r||""));if(this.session.$bidiHandler.isBidiRow(i.end.row)){var x=i.clone();x.start.row=x.end.row,x.start.column=0,this.drawBidiSingleLineMarker(e,x,n+" ace_br12",t,null,r)}else{d=this.$getTop(i.end.row,t);var y=i.end.column*t.characterWidth;this.elt(n+" ace_br12","height:"+c+"px;width:"+y+"px;top:"+d+"px;left:"+o+"px;"+(r||""))}if(c=(i.end.row-i.start.row-1)*t.lineHeight,!(c<=0)){d=this.$getTop(i.start.row+1,t);var k=(i.start.column?1:0)|(i.end.column?0:8);this.elt(n+(k?" ace_br"+k:""),"height:"+c+"px;right:0;top:"+d+"px;left:"+o+"px;"+(r||""))}},l.prototype.drawSingleLineMarker=function(e,i,n,t,r,o){if(this.session.$bidiHandler.isBidiRow(i.start.row))return this.drawBidiSingleLineMarker(e,i,n,t,r,o);var c=t.lineHeight,d=(i.end.column+(r||0)-i.start.column)*t.characterWidth,p=this.$getTop(i.start.row,t),x=this.$padding+i.start.column*t.characterWidth;this.elt(n,"height:"+c+"px;width:"+d+"px;top:"+p+"px;left:"+x+"px;"+(o||""))},l.prototype.drawBidiSingleLineMarker=function(e,i,n,t,r,o){var c=t.lineHeight,d=this.$getTop(i.start.row,t),p=this.$padding,x=this.session.$bidiHandler.getSelections(i.start.column,i.end.column);x.forEach(function(y){this.elt(n,"height:"+c+"px;width:"+(y.width+(r||0))+"px;top:"+d+"px;left:"+(p+y.left)+"px;"+(o||""))},this)},l.prototype.drawFullLineMarker=function(e,i,n,t,r){var o=this.$getTop(i.start.row,t),c=t.lineHeight;i.start.row!=i.end.row&&(c+=this.$getTop(i.end.row,t)-o),this.elt(n,"height:"+c+"px;top:"+o+"px;left:0;right:0;"+(r||""))},l.prototype.drawScreenLineMarker=function(e,i,n,t,r){var o=this.$getTop(i.start.row,t),c=t.lineHeight;this.elt(n,"height:"+c+"px;top:"+o+"px;left:0;right:0;"+(r||""))},l}();g.prototype.$padding=0;function a(l,e,i,n){return(l?1:0)|(e?2:0)|(i?4:0)|(n?8:0)}E.Marker=g}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("../lib/dom"),g=R("../lib/lang"),a=R("./lines").Lines,l=R("../lib/event_emitter").EventEmitter,e=function(){function i(n){this.dom=b,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",n.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)}return i.prototype.$updateEolChar=function(){var n=this.session.doc,t=n.getNewLineCharacter()==` `&&n.getNewLineMode()!="windows",r=t?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=r)return this.EOL_CHAR=r,!0},i.prototype.setPadding=function(n){this.$padding=n,this.element.style.margin="0 "+n+"px"},i.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},i.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},i.prototype.$setFontMetrics=function(n){this.$fontMetrics=n,this.$fontMetrics.on("changeCharacterSize",function(t){this._signal("changeCharacterSize",t)}.bind(this)),this.$pollSizeChanges()},i.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},i.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},i.prototype.setSession=function(n){this.session=n,n&&this.$computeTabString()},i.prototype.setShowInvisibles=function(n){return this.showInvisibles==n?!1:(this.showInvisibles=n,typeof n=="string"?(this.showSpaces=/tab/i.test(n),this.showTabs=/space/i.test(n),this.showEOL=/eol/i.test(n)):this.showSpaces=this.showTabs=this.showEOL=n,this.$computeTabString(),!0)},i.prototype.setDisplayIndentGuides=function(n){return this.displayIndentGuides==n?!1:(this.displayIndentGuides=n,this.$computeTabString(),!0)},i.prototype.setHighlightIndentGuides=function(n){return this.$highlightIndentGuides===n?!1:(this.$highlightIndentGuides=n,n)},i.prototype.$computeTabString=function(){var n=this.session.getTabSize();this.tabSize=n;for(var t=this.$tabStrings=[0],r=1;rM&&(y=k.end.row+1,k=this.session.getNextFoldLine(y,k),M=k?k.start.row:1/0),!(y>c);){var v=d[p++];if(v){this.dom.removeChildren(v),this.$renderLine(v,y,y==M?k:!1),x&&(v.style.top=this.$lines.computeLineTop(y,n,this.session)+"px");var S=n.lineHeight*this.session.getRowLength(y)+"px";v.style.height!=S&&(x=!0,v.style.height=S)}y++}if(x)for(;p0;c--)this.$lines.shift();if(t.lastRow>n.lastRow)for(var c=this.session.getFoldedRowCount(n.lastRow+1,t.lastRow);c>0;c--)this.$lines.pop();n.firstRowt.lastRow&&this.$lines.push(this.$renderLinesFragment(n,t.lastRow+1,n.lastRow)),this.$highlightIndentGuide()},i.prototype.$renderLinesFragment=function(n,t,r){for(var o=[],c=t,d=this.session.getNextFoldLine(c),p=d?d.start.row:1/0;c>p&&(c=d.end.row+1,d=this.session.getNextFoldLine(c,d),p=d?d.start.row:1/0),!(c>r);){var x=this.$lines.createCell(c,n,this.session),y=x.element;this.dom.removeChildren(y),b.setStyle(y.style,"height",this.$lines.computeLineHeight(c,n,this.session)+"px"),b.setStyle(y.style,"top",this.$lines.computeLineTop(c,n,this.session)+"px"),this.$renderLine(y,c,c==p?d:!1),this.$useLineGroups()?y.className="ace_line_group":y.className="ace_line",o.push(x),c++}return o},i.prototype.update=function(n){this.$lines.moveContainer(n),this.config=n;for(var t=n.firstRow,r=n.lastRow,o=this.$lines;o.getLength();)o.pop();o.push(this.$renderLinesFragment(n,t,r))},i.prototype.$renderToken=function(n,t,r,o){for(var c=this,d=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,p=this.dom.createFragment(this.element),x,y=0;x=d.exec(o);){var k=x[1],M=x[2],v=x[3],S=x[4],A=x[5];if(!(!c.showSpaces&&M)){var $=y!=x.index?o.slice(y,x.index):"";if(y=x.index+x[0].length,$&&p.appendChild(this.dom.createTextNode($,this.element)),k){var u=c.session.getScreenTabSize(t+x.index);p.appendChild(c.$tabStrings[u].cloneNode(!0)),t+=u-1}else if(M)if(c.showSpaces){var f=this.dom.createElement("span");f.className="ace_invisible ace_invisible_space",f.textContent=g.stringRepeat(c.SPACE_CHAR,M.length),p.appendChild(f)}else p.appendChild(this.com.createTextNode(M,this.element));else if(v){var f=this.dom.createElement("span");f.className="ace_invisible ace_invisible_space ace_invalid",f.textContent=g.stringRepeat(c.SPACE_CHAR,v.length),p.appendChild(f)}else if(S){t+=1;var f=this.dom.createElement("span");f.style.width=c.config.characterWidth*2+"px",f.className=c.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",f.textContent=c.showSpaces?c.SPACE_CHAR:S,p.appendChild(f)}else if(A){t+=1;var f=this.dom.createElement("span");f.style.width=c.config.characterWidth*2+"px",f.className="ace_cjk",f.textContent=A,p.appendChild(f)}}}if(p.appendChild(this.dom.createTextNode(y?o.slice(y):o,this.element)),this.$textToken[r.type])n.appendChild(p);else{var w="ace_"+r.type.replace(/\./g," ace_"),f=this.dom.createElement("span");r.type=="fold"&&(f.style.width=r.value.length*this.config.characterWidth+"px"),f.className=w,f.appendChild(p),n.appendChild(f)}return t+o.length},i.prototype.renderIndentGuide=function(n,t,r){var o=t.search(this.$indentGuideRe);if(o<=0||o>=r)return t;if(t[0]==" "){o-=o%this.tabSize;for(var c=o/this.tabSize,d=0;dd[p].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&n[t.row]!==""&&t.column===n[t.row].length){this.$highlightIndentGuideMarker.dir=1;for(var p=t.row+1;p0){for(var c=0;c=this.$highlightIndentGuideMarker.start+1){if(o.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(o,t)}}else for(var r=n.length-1;r>=0;r--){var o=n[r];if(this.$highlightIndentGuideMarker.end&&o.row=d;)p=this.$renderToken(x,p,k,M.substring(0,d-o)),M=M.substring(d-o),o=d,x=this.$createLineElement(),n.appendChild(x),x.appendChild(this.dom.createTextNode(g.stringRepeat("\xA0",r.indent),this.element)),c++,p=0,d=r[c]||Number.MAX_VALUE;M.length!=0&&(o+=M.length,p=this.$renderToken(x,p,k,M))}}r[r.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(x,p,null,"",!0)},i.prototype.$renderSimpleLine=function(n,t){for(var r=0,o=0;othis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(n,r,c,d);r=this.$renderToken(n,r,c,d)}}},i.prototype.$renderOverflowMessage=function(n,t,r,o,c){r&&this.$renderToken(n,t,r,o.slice(0,this.MAX_LINE_LENGTH-t));var d=this.dom.createElement("span");d.className="ace_inline_button ace_keyword ace_toggle_wrap",d.textContent=c?"":"",n.appendChild(d)},i.prototype.$renderLine=function(n,t,r){if(!r&&r!=!1&&(r=this.session.getFoldLine(t)),r)var o=this.$getFoldLineTokens(t,r);else var o=this.session.getTokens(t);var c=n;if(o.length){var d=this.session.getRowSplitData(t);if(d&&d.length){this.$renderWrappedLine(n,o,d);var c=n.lastChild}else{var c=n;this.$useLineGroups()&&(c=this.$createLineElement(),n.appendChild(c)),this.$renderSimpleLine(c,o)}}else this.$useLineGroups()&&(c=this.$createLineElement(),n.appendChild(c));if(this.showEOL&&c){r&&(t=r.end.row);var p=this.dom.createElement("span");p.className="ace_invisible ace_invisible_eol",p.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,c.appendChild(p)}},i.prototype.$getFoldLineTokens=function(n,t){var r=this.session,o=[];function c(p,x,y){for(var k=0,M=0;M+p[k].value.lengthy-x&&(v=v.substring(0,y-x)),o.push({type:p[k].type,value:v}),M=x+v.length,k+=1}for(;My?o.push({type:p[k].type,value:v.substring(0,y-M)}):o.push(p[k]),M+=v.length,k+=1}}var d=r.getTokens(n);return t.walk(function(p,x,y,k,M){p!=null?o.push({type:"fold",value:p}):(M&&(d=r.getTokens(x)),d.length&&c(d,k,y))},t.end.row,this.session.getLine(t.end.row).length),o},i.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},i}();e.prototype.$textToken={text:!0,rparen:!0,lparen:!0},e.prototype.EOF_CHAR="\xB6",e.prototype.EOL_CHAR_LF="\xAC",e.prototype.EOL_CHAR_CRLF="\xA4",e.prototype.EOL_CHAR=e.prototype.EOL_CHAR_LF,e.prototype.TAB_CHAR="\u2014",e.prototype.SPACE_CHAR="\xB7",e.prototype.$padding=0,e.prototype.MAX_LINE_LENGTH=1e4,e.prototype.showInvisibles=!1,e.prototype.showSpaces=!1,e.prototype.showTabs=!1,e.prototype.showEOL=!1,e.prototype.displayIndentGuides=!0,e.prototype.$highlightIndentGuides=!0,e.prototype.$tabStrings=[],e.prototype.destroy={},e.prototype.onChangeTabSize=e.prototype.$computeTabString,m.implement(e.prototype,l),E.Text=e}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(R,E,_){"use strict";var m=R("../lib/dom"),b=function(){function g(a){this.element=m.createElement("div"),this.element.className="ace_layer ace_cursor-layer",a.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),m.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return g.prototype.$updateOpacity=function(a){for(var l=this.cursors,e=l.length;e--;)m.setStyle(l[e].style,"opacity",a?"":"0")},g.prototype.$startCssAnimation=function(){for(var a=this.cursors,l=a.length;l--;)a[l].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&m.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},g.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,m.removeCssClass(this.element,"ace_animate-blinking")},g.prototype.setPadding=function(a){this.$padding=a},g.prototype.setSession=function(a){this.session=a},g.prototype.setBlinking=function(a){a!=this.isBlinking&&(this.isBlinking=a,this.restartTimer())},g.prototype.setBlinkInterval=function(a){a!=this.blinkInterval&&(this.blinkInterval=a,this.restartTimer())},g.prototype.setSmoothBlinking=function(a){a!=this.smoothBlinking&&(this.smoothBlinking=a,m.setCssClass(this.element,"ace_smooth-blinking",a),this.$updateCursors(!0),this.restartTimer())},g.prototype.addCursor=function(){var a=m.createElement("div");return a.className="ace_cursor",this.element.appendChild(a),this.cursors.push(a),a},g.prototype.removeCursor=function(){if(this.cursors.length>1){var a=this.cursors.pop();return a.parentNode.removeChild(a),a}},g.prototype.hideCursor=function(){this.isVisible=!1,m.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.showCursor=function(){this.isVisible=!0,m.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.restartTimer=function(){var a=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,m.removeCssClass(this.element,"ace_smooth-blinking")),a(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&m.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),m.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var l=function(){this.timeoutId=setTimeout(function(){a(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){a(!0),l()},this.blinkInterval),l()}},g.prototype.getPixelPosition=function(a,l){if(!this.config||!this.session)return{left:0,top:0};a||(a=this.session.selection.getCursor());var e=this.session.documentToScreenPosition(a),i=this.$padding+(this.session.$bidiHandler.isBidiRow(e.row,a.row)?this.session.$bidiHandler.getPosLeft(e.column):e.column*this.config.characterWidth),n=(e.row-(l?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:i,top:n}},g.prototype.isCursorInView=function(a,l){return a.top>=0&&a.topa.height+a.offset||t.top<0)&&e>1)){var r=this.cursors[i++]||this.addCursor(),o=r.style;this.drawCursor?this.drawCursor(r,t,a,l[e],this.session):this.isCursorInView(t,a)?(m.setStyle(o,"display","block"),m.translate(r,t.left,t.top),m.setStyle(o,"width",Math.round(a.characterWidth)+"px"),m.setStyle(o,"height",a.lineHeight+"px")):m.setStyle(o,"display","none")}}for(;this.cursors.length>i;)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=t,this.restartTimer()},g.prototype.$setOverwrite=function(a){a!=this.overwrite&&(this.overwrite=a,a?m.addCssClass(this.element,"ace_overwrite-cursors"):m.removeCssClass(this.element,"ace_overwrite-cursors"))},g.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},g}();b.prototype.$padding=0,b.prototype.drawCursor=null,E.Cursor=b}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(R,E,_){"use strict";var m=this&&this.__extends||function(){var r=function(o,c){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var x in p)Object.prototype.hasOwnProperty.call(p,x)&&(d[x]=p[x])},r(o,c)};return function(o,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");r(o,c);function d(){this.constructor=o}o.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}}(),b=R("./lib/oop"),g=R("./lib/dom"),a=R("./lib/event"),l=R("./lib/event_emitter").EventEmitter,e=32768,i=function(){function r(o,c){this.element=g.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+c,this.inner=g.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xA0",this.element.appendChild(this.inner),o.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addListener(this.element,"scroll",this.onScroll.bind(this)),a.addListener(this.element,"mousedown",a.preventDefault)}return r.prototype.setVisible=function(o){this.element.style.display=o?"":"none",this.isVisible=o,this.coeff=1},r}();b.implement(i.prototype,l);var n=function(r){m(o,r);function o(c,d){var p=r.call(this,c,"-v")||this;return p.scrollTop=0,p.scrollHeight=0,d.$scrollbarWidth=p.width=g.scrollbarWidth(c.ownerDocument),p.inner.style.width=p.element.style.width=(p.width||15)+5+"px",p.$minWidth=0,p}return o.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var c=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-c)/(this.coeff-c)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},o.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},o.prototype.setHeight=function(c){this.element.style.height=c+"px"},o.prototype.setScrollHeight=function(c){this.scrollHeight=c,c>e?(this.coeff=e/c,c=e):this.coeff!=1&&(this.coeff=1),this.inner.style.height=c+"px"},o.prototype.setScrollTop=function(c){this.scrollTop!=c&&(this.skipEvent=!0,this.scrollTop=c,this.element.scrollTop=c*this.coeff)},o}(i);n.prototype.setInnerHeight=n.prototype.setScrollHeight;var t=function(r){m(o,r);function o(c,d){var p=r.call(this,c,"-h")||this;return p.scrollLeft=0,p.height=d.$scrollbarWidth,p.inner.style.height=p.element.style.height=(p.height||15)+5+"px",p}return o.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},o.prototype.getHeight=function(){return this.isVisible?this.height:0},o.prototype.setWidth=function(c){this.element.style.width=c+"px"},o.prototype.setInnerWidth=function(c){this.inner.style.width=c+"px"},o.prototype.setScrollWidth=function(c){this.inner.style.width=c+"px"},o.prototype.setScrollLeft=function(c){this.scrollLeft!=c&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=c)},o}(i);E.ScrollBar=n,E.ScrollBarV=n,E.ScrollBarH=t,E.VScrollBar=n,E.HScrollBar=t}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(R,E,_){"use strict";var m=this&&this.__extends||function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(c[p]=d[p])},t(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(r,o);function c(){this.constructor=r}r.prototype=o===null?Object.create(o):(c.prototype=o.prototype,new c)}}(),b=R("./lib/oop"),g=R("./lib/dom"),a=R("./lib/event"),l=R("./lib/event_emitter").EventEmitter;g.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{ position: absolute; background: rgba(128, 128, 128, 0.6); -moz-box-sizing: border-box; box-sizing: border-box; border: 1px solid #bbb; border-radius: 2px; z-index: 8; } .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h { position: absolute; z-index: 6; background: none; overflow: hidden!important; } .ace_editor>.ace_sb-v { z-index: 6; right: 0; top: 0; width: 12px; } .ace_editor>.ace_sb-v div { z-index: 8; right: 0; width: 100%; } .ace_editor>.ace_sb-h { bottom: 0; left: 0; height: 12px; } .ace_editor>.ace_sb-h div { bottom: 0; height: 100%; } .ace_editor>.ace_sb_grabbed { z-index: 8; background: #000; }`,"ace_scrollbar.css",!1);var e=function(){function t(r,o){this.element=g.createElement("div"),this.element.className="ace_sb"+o,this.inner=g.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,r.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return t.prototype.setVisible=function(r){this.element.style.display=r?"":"none",this.isVisible=r,this.coeff=1},t}();b.implement(e.prototype,l);var i=function(t){m(r,t);function r(o,c){var d=t.call(this,o,"-v")||this;return d.scrollTop=0,d.scrollHeight=0,d.parent=o,d.width=d.VScrollWidth,d.renderer=c,d.inner.style.width=d.element.style.width=(d.width||15)+"px",d.$minWidth=0,d}return r.prototype.onMouseDown=function(o,c){if(o==="mousedown"&&!(a.getButton(c)!==0||c.detail===2)){if(c.target===this.inner){var d=this,p=c.clientY,x=function($){p=$.clientY},y=function(){clearInterval(S)},k=c.clientY,M=this.thumbTop,v=function(){if(p!==void 0){var $=d.scrollTopFromThumbTop(M+p-k);$!==d.scrollTop&&d._emit("scroll",{data:$})}};a.capture(this.inner,x,y);var S=setInterval(v,20);return a.preventDefault(c)}var A=c.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(A)}),a.preventDefault(c)}},r.prototype.getHeight=function(){return this.height},r.prototype.scrollTopFromThumbTop=function(o){var c=o*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return c=c>>0,c<0?c=0:c>this.pageHeight-this.viewHeight&&(c=this.pageHeight-this.viewHeight),c},r.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},r.prototype.setHeight=function(o){this.height=Math.max(0,o),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},r.prototype.setScrollHeight=function(o,c){this.pageHeight===o&&!c||(this.pageHeight=o,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},r.prototype.setScrollTop=function(o){this.scrollTop=o,o<0&&(o=0),this.thumbTop=o*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},r}(e);i.prototype.setInnerHeight=i.prototype.setScrollHeight;var n=function(t){m(r,t);function r(o,c){var d=t.call(this,o,"-h")||this;return d.scrollLeft=0,d.scrollWidth=0,d.height=d.HScrollHeight,d.inner.style.height=d.element.style.height=(d.height||12)+"px",d.renderer=c,d}return r.prototype.onMouseDown=function(o,c){if(o==="mousedown"&&!(a.getButton(c)!==0||c.detail===2)){if(c.target===this.inner){var d=this,p=c.clientX,x=function($){p=$.clientX},y=function(){clearInterval(S)},k=c.clientX,M=this.thumbLeft,v=function(){if(p!==void 0){var $=d.scrollLeftFromThumbLeft(M+p-k);$!==d.scrollLeft&&d._emit("scroll",{data:$})}};a.capture(this.inner,x,y);var S=setInterval(v,20);return a.preventDefault(c)}var A=c.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(A)}),a.preventDefault(c)}},r.prototype.getHeight=function(){return this.isVisible?this.height:0},r.prototype.scrollLeftFromThumbLeft=function(o){var c=o*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return c=c>>0,c<0?c=0:c>this.pageWidth-this.viewWidth&&(c=this.pageWidth-this.viewWidth),c},r.prototype.setWidth=function(o){this.width=Math.max(0,o),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},r.prototype.setScrollWidth=function(o,c){this.pageWidth===o&&!c||(this.pageWidth=o,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},r.prototype.setScrollLeft=function(o){this.scrollLeft=o,o<0&&(o=0),this.thumbLeft=o*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},r}(e);n.prototype.setInnerWidth=n.prototype.setScrollWidth,E.ScrollBar=i,E.ScrollBarV=i,E.ScrollBarH=n,E.VScrollBar=i,E.HScrollBar=n}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(R,E,_){"use strict";var m=R("./lib/event"),b=function(){function g(a,l){this.onRender=a,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=l||window;var e=this;this._flush=function(i){e.pending=!1;var n=e.changes;if(n&&(m.blockIdle(100),e.changes=0,e.onRender(n)),e.changes){if(e.$recursionLimit--<0)return;e.schedule()}else e.$recursionLimit=2}}return g.prototype.schedule=function(a){this.changes=this.changes|a,this.changes&&!this.pending&&(m.nextFrame(this._flush),this.pending=!0)},g.prototype.clear=function(a){var l=this.changes;return this.changes=0,l},g}();E.RenderLoop=b}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(R,E,_){var m=R("../lib/oop"),b=R("../lib/dom"),g=R("../lib/lang"),a=R("../lib/event"),l=R("../lib/useragent"),e=R("../lib/event_emitter").EventEmitter,i=512,n=typeof ResizeObserver=="function",t=200,r=function(){function o(c){this.el=b.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=b.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=b.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),c.appendChild(this.el),this.$measureNode.textContent=g.stringRepeat("X",i),this.$characterSize={width:0,height:0},n?this.$addObserver():this.checkForSizeChanges()}return o.prototype.$setMeasureNodeStyles=function(c,d){c.width=c.height="auto",c.left=c.top="0px",c.visibility="hidden",c.position="absolute",c.whiteSpace="pre",l.isIE<8?c["font-family"]="inherit":c.font="inherit",c.overflow=d?"hidden":"visible"},o.prototype.checkForSizeChanges=function(c){if(c===void 0&&(c=this.$measureSizes()),c&&(this.$characterSize.width!==c.width||this.$characterSize.height!==c.height)){this.$measureNode.style.fontWeight="bold";var d=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=c,this.charSizes=Object.create(null),this.allowBoldFonts=d&&d.width===c.width&&d.height===c.height,this._emit("changeCharacterSize",{data:c})}},o.prototype.$addObserver=function(){var c=this;this.$observer=new window.ResizeObserver(function(d){c.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},o.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var c=this;return this.$pollSizeChangesTimer=a.onIdle(function d(){c.checkForSizeChanges(),a.onIdle(d,500)},500)},o.prototype.setPolling=function(c){c?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},o.prototype.$measureSizes=function(c){var d={height:(c||this.$measureNode).clientHeight,width:(c||this.$measureNode).clientWidth/i};return d.width===0||d.height===0?null:d},o.prototype.$measureCharWidth=function(c){this.$main.textContent=g.stringRepeat(c,i);var d=this.$main.getBoundingClientRect();return d.width/i},o.prototype.getCharacterWidth=function(c){var d=this.charSizes[c];return d===void 0&&(d=this.charSizes[c]=this.$measureCharWidth(c)/this.$characterSize.width),d},o.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},o.prototype.$getZoom=function(c){return!c||!c.parentElement?1:(window.getComputedStyle(c).zoom||1)*this.$getZoom(c.parentElement)},o.prototype.$initTransformMeasureNodes=function(){var c=function(d,p){return["div",{style:"position: absolute;top:"+d+"px;left:"+p+"px;"}]};this.els=b.buildDom([c(0,0),c(t,0),c(0,t),c(t,t)],this.el)},o.prototype.transformCoordinates=function(c,d){if(c){var p=this.$getZoom(this.el);c=M(1/p,c)}function x(W,U,B){var H=W[1]*U[0]-W[0]*U[1];return[(-U[1]*B[0]+U[0]*B[1])/H,(+W[1]*B[0]-W[0]*B[1])/H]}function y(W,U){return[W[0]-U[0],W[1]-U[1]]}function k(W,U){return[W[0]+U[0],W[1]+U[1]]}function M(W,U){return[W*U[0],W*U[1]]}this.els||this.$initTransformMeasureNodes();function v(W){var U=W.getBoundingClientRect();return[U.left,U.top]}var S=v(this.els[0]),A=v(this.els[1]),$=v(this.els[2]),u=v(this.els[3]),f=x(y(u,A),y(u,$),y(k(A,$),k(u,S))),w=M(1+f[0],y(A,S)),C=M(1+f[1],y($,S));if(d){var T=d,I=f[0]*T[0]/t+f[1]*T[1]/t+1,F=k(M(T[0],w),M(T[1],C));return k(M(1/I/t,F),S)}var O=y(c,S),D=x(y(w,M(f[0],O)),y(C,M(f[1],O)),O);return M(t,D)},o}();r.prototype.$characterSize={width:0,height:0},m.implement(r.prototype,e),E.FontMetrics=r}),ace.define("ace/css/editor.css",["require","exports","module"],function(R,E,_){_.exports=` .ace_br1 {border-top-left-radius : 3px;} .ace_br2 {border-top-right-radius : 3px;} .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;} .ace_br4 {border-bottom-right-radius: 3px;} .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;} .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;} .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;} .ace_br8 {border-bottom-left-radius : 3px;} .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;} .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;} .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;} .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} .ace_editor { position: relative; overflow: hidden; padding: 0; font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace; direction: ltr; text-align: left; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .ace_scroller { position: absolute; overflow: hidden; top: 0; bottom: 0; background-color: inherit; -ms-user-select: none; -moz-user-select: none; -webkit-user-select: none; user-select: none; cursor: text; } .ace_content { position: absolute; box-sizing: border-box; min-width: 100%; contain: style size layout; font-variant-ligatures: no-common-ligatures; } .ace_keyboard-focus:focus { box-shadow: inset 0 0 0 2px #5E9ED6; outline: none; } .ace_dragging .ace_scroller:before{ position: absolute; top: 0; left: 0; right: 0; bottom: 0; content: ''; background: rgba(250, 250, 250, 0.01); z-index: 1000; } .ace_dragging.ace_dark .ace_scroller:before{ background: rgba(0, 0, 0, 0.01); } .ace_gutter { position: absolute; overflow : hidden; width: auto; top: 0; bottom: 0; left: 0; cursor: default; z-index: 4; -ms-user-select: none; -moz-user-select: none; -webkit-user-select: none; user-select: none; contain: style size layout; } .ace_gutter-active-line { position: absolute; left: 0; right: 0; } .ace_scroller.ace_scroll-left:after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset; pointer-events: none; } .ace_gutter-cell, .ace_gutter-cell_svg-icons { position: absolute; top: 0; left: 0; right: 0; padding-left: 19px; padding-right: 6px; background-repeat: no-repeat; } .ace_gutter-cell_svg-icons .ace_icon_svg{ margin-left: -14px; float: left; } .ace_gutter-cell.ace_error, .ace_icon.ace_error { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg=="); background-repeat: no-repeat; background-position: 2px center; } .ace_gutter-cell.ace_warning, .ace_icon.ace_warning { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg=="); background-repeat: no-repeat; background-position: 2px center; } .ace_gutter-cell.ace_info, .ace_icon.ace_info { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII="); background-repeat: no-repeat; background-position: 2px center; } .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC"); } .ace_icon_svg.ace_error { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+"); background-color: crimson; } .ace_icon_svg.ace_warning { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg=="); background-color: darkorange; } .ace_icon_svg.ace_info { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg=="); background-color: royalblue; } .ace_scrollbar { contain: strict; position: absolute; right: 0; bottom: 0; z-index: 6; } .ace_scrollbar-inner { position: absolute; cursor: text; left: 0; top: 0; } .ace_scrollbar-v{ overflow-x: hidden; overflow-y: scroll; top: 0; } .ace_scrollbar-h { overflow-x: scroll; overflow-y: hidden; left: 0; } .ace_print-margin { position: absolute; height: 100%; } .ace_text-input { position: absolute; z-index: 0; width: 0.5em; height: 1em; opacity: 0; background: transparent; -moz-appearance: none; appearance: none; border: none; resize: none; outline: none; overflow: hidden; font: inherit; padding: 0 1px; margin: 0 -1px; contain: strict; -ms-user-select: text; -moz-user-select: text; -webkit-user-select: text; user-select: text; /*with \`pre-line\` chrome inserts   instead of space*/ white-space: pre!important; } .ace_text-input.ace_composition { background: transparent; color: inherit; z-index: 1000; opacity: 1; } .ace_composition_placeholder { color: transparent } .ace_composition_marker { border-bottom: 1px solid; position: absolute; border-radius: 0; margin-top: 1px; } [ace_nocontext=true] { transform: none!important; filter: none!important; clip-path: none!important; mask : none!important; contain: none!important; perspective: none!important; mix-blend-mode: initial!important; z-index: auto; } .ace_layer { z-index: 1; position: absolute; overflow: hidden; /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/ word-wrap: normal; white-space: pre; height: 100%; width: 100%; box-sizing: border-box; /* setting pointer-events: auto; on node under the mouse, which changes during scroll, will break mouse wheel scrolling in Safari */ pointer-events: none; } .ace_gutter-layer { position: relative; width: auto; text-align: right; pointer-events: auto; height: 1000000px; contain: style size layout; } .ace_text-layer { font: inherit !important; position: absolute; height: 1000000px; width: 1000000px; contain: style size layout; } .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group { contain: style size layout; position: absolute; top: 0; left: 0; right: 0; } .ace_hidpi .ace_text-layer, .ace_hidpi .ace_gutter-layer, .ace_hidpi .ace_content, .ace_hidpi .ace_gutter { contain: strict; } .ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group { contain: strict; } .ace_cjk { display: inline-block; text-align: center; } .ace_cursor-layer { z-index: 4; } .ace_cursor { z-index: 4; position: absolute; box-sizing: border-box; border-left: 2px solid; /* workaround for smooth cursor repaintng whole screen in chrome */ transform: translatez(0); } .ace_multiselect .ace_cursor { border-left-width: 1px; } .ace_slim-cursors .ace_cursor { border-left-width: 1px; } .ace_overwrite-cursors .ace_cursor { border-left-width: 0; border-bottom: 1px solid; } .ace_hidden-cursors .ace_cursor { opacity: 0.2; } .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor { opacity: 0; } .ace_smooth-blinking .ace_cursor { transition: opacity 0.18s; } .ace_animate-blinking .ace_cursor { animation-duration: 1000ms; animation-timing-function: step-end; animation-name: blink-ace-animate; animation-iteration-count: infinite; } .ace_animate-blinking.ace_smooth-blinking .ace_cursor { animation-duration: 1000ms; animation-timing-function: ease-in-out; animation-name: blink-ace-animate-smooth; } @keyframes blink-ace-animate { from, to { opacity: 1; } 60% { opacity: 0; } } @keyframes blink-ace-animate-smooth { from, to { opacity: 1; } 45% { opacity: 1; } 60% { opacity: 0; } 85% { opacity: 0; } } .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack { position: absolute; z-index: 3; } .ace_marker-layer .ace_selection { position: absolute; z-index: 5; } .ace_marker-layer .ace_bracket { position: absolute; z-index: 6; } .ace_marker-layer .ace_error_bracket { position: absolute; border-bottom: 1px solid #DE5555; border-radius: 0; } .ace_marker-layer .ace_active-line { position: absolute; z-index: 2; } .ace_marker-layer .ace_selected-word { position: absolute; z-index: 4; box-sizing: border-box; } .ace_line .ace_fold { box-sizing: border-box; display: inline-block; height: 11px; margin-top: -2px; vertical-align: middle; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII="); background-repeat: no-repeat, repeat-x; background-position: center center, top left; color: transparent; border: 1px solid black; border-radius: 2px; cursor: pointer; pointer-events: auto; } .ace_dark .ace_fold { } .ace_fold:hover{ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC"); } .ace_tooltip { background-color: #f5f5f5; border: 1px solid gray; border-radius: 1px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); color: black; max-width: 100%; padding: 3px 4px; position: fixed; z-index: 999999; box-sizing: border-box; cursor: default; white-space: pre; word-wrap: break-word; line-height: normal; font-style: normal; font-weight: normal; letter-spacing: normal; pointer-events: none; } .ace_tooltip:focus { outline: 1px solid black; } .ace_gutter-tooltip_header { font-weight: bold; } .ace_gutter-tooltip_body { padding-top: 5px; } .ace_gutter-tooltip .ace_icon { display: inline-block; width: 18px; } .ace_icon_svg { display: inline-block; width: 12px; vertical-align: top; -webkit-mask-repeat: no-repeat; -webkit-mask-size: 12px; -webkit-mask-position: center; } .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons { padding-right: 13px; } .ace_fold-widget { box-sizing: border-box; margin: 0 -12px 0 1px; display: none; width: 11px; vertical-align: top; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg=="); background-repeat: no-repeat; background-position: center; border-radius: 3px; border: 1px solid transparent; cursor: pointer; } .ace_folding-enabled .ace_fold-widget { display: inline-block; } .ace_fold-widget.ace_end { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg=="); } .ace_fold-widget.ace_closed { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA=="); } .ace_fold-widget:hover { border: 1px solid rgba(0, 0, 0, 0.3); background-color: rgba(255, 255, 255, 0.2); box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7); } .ace_fold-widget:active { border: 1px solid rgba(0, 0, 0, 0.4); background-color: rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8); } /** * Dark version for fold widgets */ .ace_dark .ace_fold-widget { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC"); } .ace_dark .ace_fold-widget.ace_end { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg=="); } .ace_dark .ace_fold-widget.ace_closed { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg=="); } .ace_dark .ace_fold-widget:hover { box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.1); } .ace_dark .ace_fold-widget:active { box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); } .ace_inline_button { border: 1px solid lightgray; display: inline-block; margin: -1px 8px; padding: 0 5px; pointer-events: auto; cursor: pointer; } .ace_inline_button:hover { border-color: gray; background: rgba(200,200,200,0.2); display: inline-block; pointer-events: auto; } .ace_fold-widget.ace_invalid { background-color: #FFB4B4; border-color: #DE5555; } .ace_fade-fold-widgets .ace_fold-widget { transition: opacity 0.4s ease 0.05s; opacity: 0; } .ace_fade-fold-widgets:hover .ace_fold-widget { transition: opacity 0.05s ease 0.05s; opacity:1; } .ace_underline { text-decoration: underline; } .ace_bold { font-weight: bold; } .ace_nobold .ace_bold { font-weight: normal; } .ace_italic { font-style: italic; } .ace_error-marker { background-color: rgba(255, 0, 0,0.2); position: absolute; z-index: 9; } .ace_highlight-marker { background-color: rgba(255, 255, 0,0.2); position: absolute; z-index: 8; } .ace_mobile-menu { position: absolute; line-height: 1.5; border-radius: 4px; -ms-user-select: none; -moz-user-select: none; -webkit-user-select: none; user-select: none; background: white; box-shadow: 1px 3px 2px grey; border: 1px solid #dcdcdc; color: black; } .ace_dark > .ace_mobile-menu { background: #333; color: #ccc; box-shadow: 1px 3px 2px grey; border: 1px solid #444; } .ace_mobile-button { padding: 2px; cursor: pointer; overflow: hidden; } .ace_mobile-button:hover { background-color: #eee; opacity:1; } .ace_mobile-button:active { background-color: #ddd; } .ace_placeholder { font-family: arial; transform: scale(0.9); transform-origin: left; white-space: pre; opacity: 0.7; margin: 0 10px; } .ace_ghost_text { opacity: 0.5; font-style: italic; white-space: pre; }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(R,E,_){"use strict";var m=R("../lib/dom"),b=R("../lib/oop"),g=R("../lib/event_emitter").EventEmitter,a=function(){function l(e,i){this.canvas=m.createElement("canvas"),this.renderer=i,this.pixelRatio=1,this.maxHeight=i.layerConfig.maxHeight,this.lineHeight=i.layerConfig.lineHeight,this.canvasHeight=e.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=e.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},e.element.appendChild(this.canvas)}return l.prototype.$updateDecorators=function(e){var i=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(e){this.maxHeight=e.maxHeight,this.lineHeight=e.lineHeight,this.canvasHeight=e.height;var n=(e.lastRow+1)*this.lineHeight;nf.priority?1:0}var o=this.renderer.session.$annotations;if(t.clearRect(0,0,this.canvas.width,this.canvas.height),o){var c={info:1,warning:2,error:3};o.forEach(function(u){u.priority=c[u.type]||null}),o=o.sort(r);for(var d=this.renderer.session.$foldData,p=0;pthis.canvasHeight&&(A=this.canvasHeight-this.halfMinDecorationHeight),M=Math.round(A-this.halfMinDecorationHeight),v=Math.round(A+this.halfMinDecorationHeight)}t.fillStyle=i[o[p].type]||null,t.fillRect(0,k,this.canvasWidth,v-M)}}var $=this.renderer.session.selection.getCursor();if($){var y=this.compensateFoldRows($.row,d),k=Math.round(($.row-y)*this.lineHeight*this.heightRatio);t.fillStyle="rgba(0, 0, 0, 0.5)",t.fillRect(0,k,this.canvasWidth,2)}},l.prototype.compensateFoldRows=function(e,i){var n=0;if(i&&i.length>0)for(var t=0;ti[t].start.row&&e=i[t].end.row&&(n+=i[t].end.row-i[t].start.row);return n},l}();b.implement(a.prototype,g),E.Decorator=a}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor.css","ace/layer/decorators","ace/lib/useragent"],function(R,E,_){"use strict";var m=R("./lib/oop"),b=R("./lib/dom"),g=R("./lib/lang"),a=R("./config"),l=R("./layer/gutter").Gutter,e=R("./layer/marker").Marker,i=R("./layer/text").Text,n=R("./layer/cursor").Cursor,t=R("./scrollbar").HScrollBar,r=R("./scrollbar").VScrollBar,o=R("./scrollbar_custom").HScrollBar,c=R("./scrollbar_custom").VScrollBar,d=R("./renderloop").RenderLoop,p=R("./layer/font_metrics").FontMetrics,x=R("./lib/event_emitter").EventEmitter,y=R("./css/editor.css"),k=R("./layer/decorators").Decorator,M=R("./lib/useragent");b.importCssString(y,"ace_editor.css",!1);var v=function(){function S(A,$){var u=this;this.container=A||b.createElement("div"),b.addCssClass(this.container,"ace_editor"),b.HI_DPI&&b.addCssClass(this.container,"ace_hidpi"),this.setTheme($),a.get("useStrictCSP")==null&&a.set("useStrictCSP",!1),this.$gutter=b.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=b.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=b.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new l(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new e(this.content);var f=this.$textLayer=new i(this.content);this.canvas=f.element,this.$markerFront=new e(this.content),this.$cursorLayer=new n(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new r(this.container,this),this.scrollBarH=new t(this.container,this),this.scrollBarV.on("scroll",function(w){u.$scrollAnimation||u.session.setScrollTop(w.data-u.scrollMargin.top)}),this.scrollBarH.on("scroll",function(w){u.$scrollAnimation||u.session.setScrollLeft(w.data-u.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new p(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(w){u.updateCharacterSize(),u.onResize(!0,u.gutterWidth,u.$size.width,u.$size.height),u._signal("changeCharacterSize",w)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!M.isIOS,this.$loop=new d(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),a.resetOptions(this),a._signal("renderer",this)}return S.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),b.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},S.prototype.setSession=function(A){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=A,A&&this.scrollMargin.top&&A.getScrollTop()<=0&&A.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(A),this.$markerBack.setSession(A),this.$markerFront.setSession(A),this.$gutterLayer.setSession(A),this.$textLayer.setSession(A),A&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},S.prototype.updateLines=function(A,$,u){if($===void 0&&($=1/0),this.$changedLines?(this.$changedLines.firstRow>A&&(this.$changedLines.firstRow=A),this.$changedLines.lastRow<$&&(this.$changedLines.lastRow=$)):this.$changedLines={firstRow:A,lastRow:$},this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},S.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},S.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},S.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},S.prototype.updateFull=function(A){A?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},S.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},S.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},S.prototype.onResize=function(A,$,u,f){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=A?1:0;var w=this.container;f||(f=w.clientHeight||w.scrollHeight),u||(u=w.clientWidth||w.scrollWidth);var C=this.$updateCachedSize(A,$,u,f);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!u&&!f)return this.resizing=0;A&&(this.$gutterLayer.$padding=null),A?this.$renderChanges(C|this.$changes,!0):this.$loop.schedule(C|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},S.prototype.$updateCachedSize=function(A,$,u,f){f-=this.$extraHeight||0;var w=0,C=this.$size,T={width:C.width,height:C.height,scrollerHeight:C.scrollerHeight,scrollerWidth:C.scrollerWidth};if(f&&(A||C.height!=f)&&(C.height=f,w|=this.CHANGE_SIZE,C.scrollerHeight=C.height,this.$horizScroll&&(C.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(C.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",w=w|this.CHANGE_SCROLL),u&&(A||C.width!=u)){w|=this.CHANGE_SIZE,C.width=u,$==null&&($=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=$,b.setStyle(this.scrollBarH.element.style,"left",$+"px"),b.setStyle(this.scroller.style,"left",$+this.margin.left+"px"),C.scrollerWidth=Math.max(0,u-$-this.scrollBarV.getWidth()-this.margin.h),b.setStyle(this.$gutter.style,"left",this.margin.left+"px");var I=this.scrollBarV.getWidth()+"px";b.setStyle(this.scrollBarH.element.style,"right",I),b.setStyle(this.scroller.style,"right",I),b.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(C.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||A)&&(w|=this.CHANGE_FULL)}return C.$dirty=!u||!f,w&&this._signal("resize",T),w},S.prototype.onGutterResize=function(A){var $=this.$showGutter?A:0;$!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,$,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},S.prototype.adjustWrapLimit=function(){var A=this.$size.scrollerWidth-this.$padding*2,$=Math.floor(A/this.characterWidth);return this.session.adjustWrapLimit($,this.$showPrintMargin&&this.$printMarginColumn)},S.prototype.setAnimatedScroll=function(A){this.setOption("animatedScroll",A)},S.prototype.getAnimatedScroll=function(){return this.$animatedScroll},S.prototype.setShowInvisibles=function(A){this.setOption("showInvisibles",A),this.session.$bidiHandler.setShowInvisibles(A)},S.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},S.prototype.getDisplayIndentGuide=function(){return this.getOption("displayIndentGuides")},S.prototype.setDisplayIndentGuides=function(A){this.setOption("displayIndentGuides",A)},S.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},S.prototype.setHighlightIndentGuides=function(A){this.setOption("highlightIndentGuides",A)},S.prototype.setShowPrintMargin=function(A){this.setOption("showPrintMargin",A)},S.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},S.prototype.setPrintMarginColumn=function(A){this.setOption("printMarginColumn",A)},S.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},S.prototype.getShowGutter=function(){return this.getOption("showGutter")},S.prototype.setShowGutter=function(A){return this.setOption("showGutter",A)},S.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},S.prototype.setFadeFoldWidgets=function(A){this.setOption("fadeFoldWidgets",A)},S.prototype.setHighlightGutterLine=function(A){this.setOption("highlightGutterLine",A)},S.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},S.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var A=b.createElement("div");A.className="ace_layer ace_print-margin-layer",this.$printMarginEl=b.createElement("div"),this.$printMarginEl.className="ace_print-margin",A.appendChild(this.$printMarginEl),this.content.insertBefore(A,this.content.firstChild)}var $=this.$printMarginEl.style;$.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",$.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},S.prototype.getContainerElement=function(){return this.container},S.prototype.getMouseEventTarget=function(){return this.scroller},S.prototype.getTextAreaContainer=function(){return this.container},S.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var A=this.textarea.style,$=this.$composition;if(!this.$keepTextAreaAtCursor&&!$){b.translate(this.textarea,-100,0);return}var u=this.$cursorLayer.$pixelPos;if(u){$&&$.markerRange&&(u=this.$cursorLayer.getPixelPosition($.markerRange.start,!0));var f=this.layerConfig,w=u.top,C=u.left;w-=f.offset;var T=$&&$.useTextareaForIME||M.isMobile?this.lineHeight:1;if(w<0||w>f.height-T){b.translate(this.textarea,0,0);return}var I=1,F=this.$size.height-T;if(!$)w+=this.lineHeight;else if($.useTextareaForIME){var O=this.textarea.value;I=this.characterWidth*this.session.$getStringScreenWidth(O)[0]}else w+=this.lineHeight+2;C-=this.scrollLeft,C>this.$size.scrollerWidth-I&&(C=this.$size.scrollerWidth-I),C+=this.gutterWidth+this.margin.left,b.setStyle(A,"height",T+"px"),b.setStyle(A,"width",I+"px"),b.translate(this.textarea,Math.min(C,this.$size.scrollerWidth-I),Math.min(w,F))}}},S.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},S.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},S.prototype.getLastFullyVisibleRow=function(){var A=this.layerConfig,$=A.lastRow,u=this.session.documentToScreenRow($,0)*A.lineHeight;return u-this.session.getScrollTop()>A.height-A.lineHeight?$-1:$},S.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},S.prototype.setPadding=function(A){this.$padding=A,this.$textLayer.setPadding(A),this.$cursorLayer.setPadding(A),this.$markerFront.setPadding(A),this.$markerBack.setPadding(A),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},S.prototype.setScrollMargin=function(A,$,u,f){var w=this.scrollMargin;w.top=A|0,w.bottom=$|0,w.right=f|0,w.left=u|0,w.v=w.top+w.bottom,w.h=w.left+w.right,w.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-w.top),this.updateFull()},S.prototype.setMargin=function(A,$,u,f){var w=this.margin;w.top=A|0,w.bottom=$|0,w.right=f|0,w.left=u|0,w.v=w.top+w.bottom,w.h=w.left+w.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},S.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},S.prototype.setHScrollBarAlwaysVisible=function(A){this.setOption("hScrollBarAlwaysVisible",A)},S.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},S.prototype.setVScrollBarAlwaysVisible=function(A){this.setOption("vScrollBarAlwaysVisible",A)},S.prototype.$updateScrollBarV=function(){var A=this.layerConfig.maxHeight,$=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(A-=($-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>A-$&&(A=this.scrollTop+$,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(A+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},S.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},S.prototype.freeze=function(){this.$frozen=!0},S.prototype.unfreeze=function(){this.$frozen=!1},S.prototype.$renderChanges=function(A,$){if(this.$changes&&(A|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!A&&!$){this.$changes|=A;return}if(this.$size.$dirty)return this.$changes|=A,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",A),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var u=this.layerConfig;if(A&this.CHANGE_FULL||A&this.CHANGE_SIZE||A&this.CHANGE_TEXT||A&this.CHANGE_LINES||A&this.CHANGE_SCROLL||A&this.CHANGE_H_SCROLL){if(A|=this.$computeLayerConfig()|this.$loop.clear(),u.firstRow!=this.layerConfig.firstRow&&u.firstRowScreen==this.layerConfig.firstRowScreen){var f=this.scrollTop+(u.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;f>0&&(this.scrollTop=f,A=A|this.CHANGE_SCROLL,A|=this.$computeLayerConfig()|this.$loop.clear())}u=this.layerConfig,this.$updateScrollBarV(),A&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),b.translate(this.content,-this.scrollLeft,-u.offset);var w=u.width+2*this.$padding+"px",C=u.minHeight+"px";b.setStyle(this.content.style,"width",w),b.setStyle(this.content.style,"height",C)}if(A&this.CHANGE_H_SCROLL&&(b.translate(this.content,-this.scrollLeft,-u.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),A&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(u),this.$showGutter&&this.$gutterLayer.update(u),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(u),this.$markerBack.update(u),this.$markerFront.update(u),this.$cursorLayer.update(u),this.$moveTextAreaToCursor(),this._signal("afterRender",A);return}if(A&this.CHANGE_SCROLL){this.$changedLines=null,A&this.CHANGE_TEXT||A&this.CHANGE_LINES?this.$textLayer.update(u):this.$textLayer.scrollLines(u),this.$showGutter&&(A&this.CHANGE_GUTTER||A&this.CHANGE_LINES?this.$gutterLayer.update(u):this.$gutterLayer.scrollLines(u)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(u),this.$markerBack.update(u),this.$markerFront.update(u),this.$cursorLayer.update(u),this.$moveTextAreaToCursor(),this._signal("afterRender",A);return}A&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(u),this.$showGutter&&this.$gutterLayer.update(u),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(u)):A&this.CHANGE_LINES?((this.$updateLines()||A&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(u),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(u)):A&this.CHANGE_TEXT||A&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(u),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(u)):A&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(u),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(u)),A&this.CHANGE_CURSOR&&(this.$cursorLayer.update(u),this.$moveTextAreaToCursor()),A&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(u),A&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(u),this._signal("afterRender",A)},S.prototype.$autosize=function(){var A=this.session.getScreenLength()*this.lineHeight,$=this.$maxLines*this.lineHeight,u=Math.min($,Math.max((this.$minLines||1)*this.lineHeight,A))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(u+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&u>this.$maxPixelHeight&&(u=this.$maxPixelHeight);var f=u<=2*this.lineHeight,w=!f&&A>$;if(u!=this.desiredHeight||this.$size.height!=this.desiredHeight||w!=this.$vScroll){w!=this.$vScroll&&(this.$vScroll=w,this.scrollBarV.setVisible(w));var C=this.container.clientWidth;this.container.style.height=u+"px",this.$updateCachedSize(!0,this.$gutterWidth,C,u),this.desiredHeight=u,this._signal("autosize")}},S.prototype.$computeLayerConfig=function(){var A=this.session,$=this.$size,u=$.height<=2*this.lineHeight,f=this.session.getScreenLength(),w=f*this.lineHeight,C=this.$getLongestLine(),T=!u&&(this.$hScrollBarAlwaysVisible||$.scrollerWidth-C-2*this.$padding<0),I=this.$horizScroll!==T;I&&(this.$horizScroll=T,this.scrollBarH.setVisible(T));var F=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var O=$.scrollerHeight+this.lineHeight,D=!this.$maxLines&&this.$scrollPastEnd?($.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;w+=D;var W=this.scrollMargin;this.session.setScrollTop(Math.max(-W.top,Math.min(this.scrollTop,w-$.scrollerHeight+W.bottom))),this.session.setScrollLeft(Math.max(-W.left,Math.min(this.scrollLeft,C+2*this.$padding-$.scrollerWidth+W.right)));var U=!u&&(this.$vScrollBarAlwaysVisible||$.scrollerHeight-w+D<0||this.scrollTop>W.top),B=F!==U;B&&(this.$vScroll=U,this.scrollBarV.setVisible(U));var H=this.scrollTop%this.lineHeight,N=Math.ceil(O/this.lineHeight)-1,P=Math.max(0,Math.round((this.scrollTop-H)/this.lineHeight)),G=P+N,J,ne,K=this.lineHeight;P=A.screenToDocumentRow(P,0);var X=A.getFoldLine(P);X&&(P=X.start.row),J=A.documentToScreenRow(P,0),ne=A.getRowLength(P)*K,G=Math.min(A.screenToDocumentRow(G,0),A.getLength()-1),O=$.scrollerHeight+A.getRowLength(G)*K+ne,H=this.scrollTop-J*K;var Q=0;return(this.layerConfig.width!=C||I)&&(Q=this.CHANGE_H_SCROLL),(I||B)&&(Q|=this.$updateCachedSize(!0,this.gutterWidth,$.width,$.height),this._signal("scrollbarVisibilityChanged"),B&&(C=this.$getLongestLine())),this.layerConfig={width:C,padding:this.$padding,firstRow:P,firstRowScreen:J,lastRow:G,lineHeight:K,characterWidth:this.characterWidth,minHeight:O,maxHeight:w,offset:H,gutterOffset:K?Math.max(0,Math.ceil((H+$.height-$.scrollerHeight)/K)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(C-this.$padding),Q},S.prototype.$updateLines=function(){if(this.$changedLines){var A=this.$changedLines.firstRow,$=this.$changedLines.lastRow;this.$changedLines=null;var u=this.layerConfig;if(!(A>u.lastRow+1)&&!($this.$textLayer.MAX_LINE_LENGTH&&(A=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(A*this.characterWidth))},S.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},S.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},S.prototype.addGutterDecoration=function(A,$){this.$gutterLayer.addGutterDecoration(A,$)},S.prototype.removeGutterDecoration=function(A,$){this.$gutterLayer.removeGutterDecoration(A,$)},S.prototype.updateBreakpoints=function(A){this.$loop.schedule(this.CHANGE_GUTTER)},S.prototype.setAnnotations=function(A){this.$gutterLayer.setAnnotations(A),this.$loop.schedule(this.CHANGE_GUTTER)},S.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},S.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},S.prototype.showCursor=function(){this.$cursorLayer.showCursor()},S.prototype.scrollSelectionIntoView=function(A,$,u){this.scrollCursorIntoView(A,u),this.scrollCursorIntoView($,u)},S.prototype.scrollCursorIntoView=function(A,$,u){if(this.$size.scrollerHeight!==0){var f=this.$cursorLayer.getPixelPosition(A),w=f.left,C=f.top,T=u&&u.top||0,I=u&&u.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var F=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;F+T>C?($&&F+T>C+this.lineHeight&&(C-=$*this.$size.scrollerHeight),C===0&&(C=-this.scrollMargin.top),this.session.setScrollTop(C)):F+this.$size.scrollerHeight-I=1-this.scrollMargin.top||$>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||A<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||A>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},S.prototype.pixelToScreenCoordinates=function(A,$){var u;if(this.$hasCssTransforms){u={top:0,left:0};var f=this.$fontMetrics.transformCoordinates([A,$]);A=f[1]-this.gutterWidth-this.margin.left,$=f[0]}else u=this.scroller.getBoundingClientRect();var w=A+this.scrollLeft-u.left-this.$padding,C=w/this.characterWidth,T=Math.floor(($+this.scrollTop-u.top)/this.lineHeight),I=this.$blockCursor?Math.floor(C):Math.round(C);return{row:T,column:I,side:C-I>0?1:-1,offsetX:w}},S.prototype.screenToTextCoordinates=function(A,$){var u;if(this.$hasCssTransforms){u={top:0,left:0};var f=this.$fontMetrics.transformCoordinates([A,$]);A=f[1]-this.gutterWidth-this.margin.left,$=f[0]}else u=this.scroller.getBoundingClientRect();var w=A+this.scrollLeft-u.left-this.$padding,C=w/this.characterWidth,T=this.$blockCursor?Math.floor(C):Math.round(C),I=Math.floor(($+this.scrollTop-u.top)/this.lineHeight);return this.session.screenToDocumentPosition(I,Math.max(T,0),w)},S.prototype.textToScreenCoordinates=function(A,$){var u=this.scroller.getBoundingClientRect(),f=this.session.documentToScreenPosition(A,$),w=this.$padding+(this.session.$bidiHandler.isBidiRow(f.row,A)?this.session.$bidiHandler.getPosLeft(f.column):Math.round(f.column*this.characterWidth)),C=f.row*this.lineHeight;return{pageX:u.left+w-this.scrollLeft,pageY:u.top+C-this.scrollTop}},S.prototype.visualizeFocus=function(){b.addCssClass(this.container,"ace_focus")},S.prototype.visualizeBlur=function(){b.removeCssClass(this.container,"ace_focus")},S.prototype.showComposition=function(A){this.$composition=A,A.cssText||(A.cssText=this.textarea.style.cssText),A.useTextareaForIME==null&&(A.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(b.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):A.markerId=this.session.addMarker(A.markerRange,"ace_composition_marker","text")},S.prototype.setCompositionText=function(A){var $=this.session.selection.cursor;this.addToken(A,"composition_placeholder",$.row,$.column),this.$moveTextAreaToCursor()},S.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),b.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var A=this.session.selection.cursor;this.removeExtraToken(A.row,A.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},S.prototype.setGhostText=function(A,$){var u=this.session.selection.cursor,f=$||{row:u.row,column:u.column};this.removeGhostText();var w=A.split(` `);this.addToken(w[0],"ghost_text",f.row,f.column),this.$ghostText={text:A,position:{row:f.row,column:f.column}},w.length>1&&(this.$ghostTextWidget={text:w.slice(1).join(` `),row:f.row,column:f.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},S.prototype.removeGhostText=function(){if(this.$ghostText){var A=this.$ghostText.position;this.removeExtraToken(A.row,A.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},S.prototype.addToken=function(A,$,u,f){var w=this.session;w.bgTokenizer.lines[u]=null;var C={type:$,value:A},T=w.getTokens(u);if(f==null||!T.length)T.push(C);else for(var I=0,F=0;F1||Math.abs(A.$size.height-f)>1?A.$resizeTimer.delay():A.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},S}();v.prototype.CHANGE_CURSOR=1,v.prototype.CHANGE_MARKER=2,v.prototype.CHANGE_GUTTER=4,v.prototype.CHANGE_SCROLL=8,v.prototype.CHANGE_LINES=16,v.prototype.CHANGE_TEXT=32,v.prototype.CHANGE_SIZE=64,v.prototype.CHANGE_MARKER_BACK=128,v.prototype.CHANGE_MARKER_FRONT=256,v.prototype.CHANGE_FULL=512,v.prototype.CHANGE_H_SCROLL=1024,v.prototype.$changes=0,v.prototype.$padding=null,v.prototype.$frozen=!1,v.prototype.STEPS=8,m.implement(v.prototype,x),a.defineOptions(v.prototype,"renderer",{useResizeObserver:{set:function(S){!S&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):S&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(S){this.$textLayer.setShowInvisibles(S)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(S){typeof S=="number"&&(this.$printMarginColumn=S),this.$showPrintMargin=!!S,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(S){this.$gutter.style.display=S?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(S){this.$gutterLayer.$useSvgGutterIcons=S},initialValue:!1},fadeFoldWidgets:{set:function(S){b.setCssClass(this.$gutter,"ace_fade-fold-widgets",S)},initialValue:!1},showFoldWidgets:{set:function(S){this.$gutterLayer.setShowFoldWidgets(S),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(S){this.$textLayer.setDisplayIndentGuides(S)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(S){this.$textLayer.setHighlightIndentGuides(S)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(S){this.$gutterLayer.setHighlightGutterLine(S),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(S){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(S){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(S){typeof S=="number"&&(S=S+"px"),this.container.style.fontSize=S,this.updateFontSize()},initialValue:12},fontFamily:{set:function(S){this.container.style.fontFamily=S,this.updateFontSize()}},maxLines:{set:function(S){this.updateFull()}},minLines:{set:function(S){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(S){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(S){S=+S||0,this.$scrollPastEnd!=S&&(this.$scrollPastEnd=S,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(S){this.$gutterLayer.$fixedWidth=!!S,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(S){this.$updateCustomScrollbar(S)},initialValue:!1},theme:{set:function(S){this.setTheme(S)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!M.isMobile&&!M.isIE}}),E.VirtualRenderer=v}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(R,E,_){"use strict";var m=R("../lib/oop"),b=R("../lib/net"),g=R("../lib/event_emitter").EventEmitter,a=R("../config");function l(t){var r="importScripts('"+b.qualifyURL(t)+"');";try{return new Blob([r],{type:"application/javascript"})}catch{var o=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,c=new o;return c.append(r),c.getBlob("application/javascript")}}function e(t){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(a.get("loadWorkerFromBlob")){var r=l(t),o=window.URL||window.webkitURL,c=o.createObjectURL(r);return new Worker(c)}return new Worker(t)}var i=function(t){t.postMessage||(t=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=t,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){m.implement(this,g),this.$createWorkerFromOldConfig=function(t,r,o,c,d){if(R.nameToUrl&&!R.toUrl&&(R.toUrl=R.nameToUrl),a.get("packaged")||!R.toUrl)c=c||a.moduleUrl(r,"worker");else{var p=this.$normalizePath;c=c||p(R.toUrl("ace/worker/worker.js",null,"_"));var x={};t.forEach(function(y){x[y]=p(R.toUrl(y,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=e(c),d&&this.send("importScripts",d),this.$worker.postMessage({init:!0,tlns:x,module:r,classname:o}),this.$worker},this.onMessage=function(t){var r=t.data;switch(r.type){case"event":this._signal(r.name,{data:r.data});break;case"call":var o=this.callbacks[r.id];o&&(o(r.data),delete this.callbacks[r.id]);break;case"error":this.reportError(r.data);break;case"log":window.console&&console.log&&console.log.apply(console,r.data);break}},this.reportError=function(t){window.console&&console.error&&console.error(t)},this.$normalizePath=function(t){return b.qualifyURL(t)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(t,r){this.$worker.postMessage({command:t,args:r})},this.call=function(t,r,o){if(o){var c=this.callbackId++;this.callbacks[c]=o,r.push(c)}this.send(t,r)},this.emit=function(t,r){try{r.data&&r.data.err&&(r.data.err={message:r.data.err.message,stack:r.data.err.stack,code:r.data.err.code}),this.$worker&&this.$worker.postMessage({event:t,data:{data:r.data}})}catch(o){console.error(o.stack)}},this.attachToDocument=function(t){this.$doc&&this.terminate(),this.$doc=t,this.call("setValue",[t.getValue()]),t.on("change",this.changeListener,!0)},this.changeListener=function(t){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),t.action=="insert"?this.deltaQueue.push(t.start,t.lines):this.deltaQueue.push(t.start,t.end)},this.$sendDeltaQueue=function(){var t=this.deltaQueue;t&&(this.deltaQueue=null,t.length>50&&t.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:t}))}}).call(i.prototype);var n=function(t,r,o){var c=null,d=!1,p=Object.create(g),x=[],y=new i({messageBuffer:x,terminate:function(){},postMessage:function(M){x.push(M),c&&(d?setTimeout(k):k())}});y.setEmitSync=function(M){d=M};var k=function(){var M=x.shift();M.command?c[M.command].apply(c,M.args):M.event&&p._signal(M.event,M.data)};return p.postMessage=function(M){y.onMessage({data:M})},p.callback=function(M,v){this.postMessage({type:"call",id:v,data:M})},p.emit=function(M,v){this.postMessage({type:"event",name:M,data:v})},a.loadModule(["worker",r],function(M){for(c=new M[o](p);x.length;)k()}),y};E.UIWorkerClient=n,E.WorkerClient=i,E.createWorker=e}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(R,E,_){"use strict";var m=R("./range").Range,b=R("./lib/event_emitter").EventEmitter,g=R("./lib/oop"),a=function(){function l(e,i,n,t,r,o){var c=this;this.length=i,this.session=e,this.doc=e.getDocument(),this.mainClass=r,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=t,this.$onCursorChange=function(){setTimeout(function(){c.onCursorChange()})},this.$pos=n;var d=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=d.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)}return l.prototype.setup=function(){var e=this,i=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column);var t=this.pos;t.$insertRight=!0,t.detach(),t.markerId=n.addMarker(new m(t.row,t.column,t.row,t.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(r){var o=i.createAnchor(r.row,r.column);o.$insertRight=!0,o.detach(),e.others.push(o)}),n.setUndoSelect(!1)},l.prototype.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,i=this;this.othersActive=!0,this.others.forEach(function(n){n.markerId=e.addMarker(new m(n.row,n.column,n.row,n.column+i.length),i.othersClass,null,!1)})}},l.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&i.start.column<=this.pos.column+this.length+1,r=i.start.column-this.pos.column;if(this.updateAnchors(e),t&&(this.length+=n),t&&!this.session.$fromUndo){if(e.action==="insert")for(var o=this.others.length-1;o>=0;o--){var c=this.others[o],d={row:c.row,column:c.column+r};this.doc.insertMergedLines(d,e.lines)}else if(e.action==="remove")for(var o=this.others.length-1;o>=0;o--){var c=this.others[o],d={row:c.row,column:c.column+r};this.doc.remove(new m(d.row,d.column,d.row,d.column-n))}}this.$updating=!1,this.updateMarkers()}},l.prototype.updateAnchors=function(e){this.pos.onChange(e);for(var i=this.others.length;i--;)this.others[i].onChange(e);this.updateMarkers()},l.prototype.updateMarkers=function(){if(!this.$updating){var e=this,i=this.session,n=function(r,o){i.removeMarker(r.markerId),r.markerId=i.addMarker(new m(r.row,r.column,r.row,r.column+e.length),o,null,!1)};n(this.pos,this.mainClass);for(var t=this.others.length;t--;)n(this.others[t],this.othersClass)}},l.prototype.onCursorChange=function(e){if(!(this.$updating||!this.session)){var i=this.session.selection.getCursor();i.row===this.pos.row&&i.column>=this.pos.column&&i.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},l.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},l.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var e=this.session.getUndoManager(),i=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n1?b.multiSelect.joinSelections():b.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(b){b.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(b){b.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(b){b.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],E.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(b){b.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(b){return b&&b.inMultiSelectMode}}];var m=R("../keyboard/hash_handler").HashHandler;E.keyboardHandler=new m(E.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(R,E,_){var m=R("./range_list").RangeList,b=R("./range").Range,g=R("./selection").Selection,a=R("./mouse/multi_select_handler").onMouseDown,l=R("./lib/event"),e=R("./lib/lang"),i=R("./commands/multi_select_commands");E.commands=i.defaultCommands.concat(i.multiSelectCommands);var n=R("./search").Search,t=new n;function r(y,k,M){return t.$options.wrap=!0,t.$options.needle=k,t.$options.backwards=M==-1,t.find(y)}var o=R("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(o.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(y,k){if(y){if(!this.inMultiSelectMode&&this.rangeCount===0){var M=this.toOrientedRange();if(this.rangeList.add(M),this.rangeList.add(y),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),k||this.fromOrientedRange(y);this.rangeList.removeAll(),this.rangeList.add(M),this.$onAddRange(M)}y.cursor||(y.cursor=y.end);var v=this.rangeList.add(y);return this.$onAddRange(y),v.length&&this.$onRemoveRange(v),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),k||this.fromOrientedRange(y)}},this.toSingleRange=function(y){y=y||this.ranges[0];var k=this.rangeList.removeAll();k.length&&this.$onRemoveRange(k),y&&this.fromOrientedRange(y)},this.substractPoint=function(y){var k=this.rangeList.substractPoint(y);if(k)return this.$onRemoveRange(k),k[0]},this.mergeOverlappingRanges=function(){var y=this.rangeList.merge();y.length&&this.$onRemoveRange(y)},this.$onAddRange=function(y){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(y),this._signal("addRange",{range:y})},this.$onRemoveRange=function(y){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var k=this.rangeList.ranges.pop();y.push(k),this.rangeCount=0}for(var M=y.length;M--;){var v=this.ranges.indexOf(y[M]);this.ranges.splice(v,1)}this._signal("removeRange",{ranges:y}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),k=k||this.ranges[0],k&&!k.isEqual(this.getRange())&&this.fromOrientedRange(k)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new m,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var y=this.ranges.length?this.ranges:[this.getRange()],k=[],M=0;M1){var y=this.rangeList.ranges,k=y[y.length-1],M=b.fromPoints(y[0].start,k.end);this.toSingleRange(),this.setSelectionRange(M,k.cursor==k.start)}else{var v=this.session.documentToScreenPosition(this.cursor),S=this.session.documentToScreenPosition(this.anchor),A=this.rectangularRangeBlock(v,S);A.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(y,k,M){var v=[],S=y.column0;)D--;if(D>0)for(var W=0;v[W].isEmpty();)W++;for(var U=D;U>=W;U--)v[U].isEmpty()&&v.splice(U,1)}return v}}.call(g.prototype);var c=R("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(y){y.cursor||(y.cursor=y.end);var k=this.getSelectionStyle();return y.marker=this.session.addMarker(y,"ace_selection",k),this.session.$selectionMarkers.push(y),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,y},this.removeSelectionMarker=function(y){if(y.marker){this.session.removeMarker(y.marker);var k=this.session.$selectionMarkers.indexOf(y);k!=-1&&this.session.$selectionMarkers.splice(k,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(y){for(var k=this.session.$selectionMarkers,M=y.length;M--;){var v=y[M];if(v.marker){this.session.removeMarker(v.marker);var S=k.indexOf(v);S!=-1&&k.splice(S,1)}}this.session.selectionMarkerCount=k.length},this.$onAddRange=function(y){this.addSelectionMarker(y.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(y){this.removeSelectionMarkers(y.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(y){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(i.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(y){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(i.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(y){var k=y.command,M=y.editor;if(M.multiSelect){if(k.multiSelectAction)k.multiSelectAction=="forEach"?v=M.forEachSelection(k,y.args):k.multiSelectAction=="forEachLine"?v=M.forEachSelection(k,y.args,!0):k.multiSelectAction=="single"?(M.exitMultiSelectMode(),v=k.exec(M,y.args||{})):v=k.multiSelectAction(M,y.args||{});else{var v=k.exec(M,y.args||{});M.multiSelect.addRange(M.multiSelect.toOrientedRange()),M.multiSelect.mergeOverlappingRanges()}return v}},this.forEachSelection=function(y,k,M){if(!this.inVirtualSelectionMode){var v=M&&M.keepOrder,S=M==!0||M&&M.$byLines,A=this.session,$=this.selection,u=$.rangeList,f=(v?$:u).ranges,w;if(!f.length)return y.exec?y.exec(this,k||{}):y(this,k||{});var C=$._eventRegistry;$._eventRegistry={};var T=new g(A);this.inVirtualSelectionMode=!0;for(var I=f.length;I--;){if(S)for(;I>0&&f[I].start.row==f[I-1].end.row;)I--;T.fromOrientedRange(f[I]),T.index=I,this.selection=A.selection=T;var F=y.exec?y.exec(this,k||{}):y(this,k||{});!w&&F!==void 0&&(w=F),T.toOrientedRange(f[I])}T.detach(),this.selection=A.selection=$,this.inVirtualSelectionMode=!1,$._eventRegistry=C,$.mergeOverlappingRanges(),$.ranges[0]&&$.fromOrientedRange($.ranges[0]);var O=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),O&&O.from==O.to&&this.renderer.animateScrolling(O.from),w}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var y="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var k=this.multiSelect.rangeList.ranges,M=[],v=0;v0);$<0&&($=0),u>=w&&(u=w-1)}var T=this.session.removeFullLines($,u);T=this.$reAlignText(T,f),this.session.insert({row:$,column:0},T.join(` `)+` `),f||(A.start.column=0,A.end.column=T[T.length-1].length),this.selection.setRange(A)}else{S.forEach(function(D){k.substractPoint(D.cursor)});var I=0,F=1/0,O=M.map(function(D){var W=D.cursor,U=y.getLine(W.row),B=U.substr(W.column).search(/\S/g);return B==-1&&(B=0),W.column>I&&(I=W.column),BH?y.insert(U,e.stringRepeat(" ",B-H)):y.remove(new b(U.row,U.column,U.row,U.column-B+H)),D.start.column=D.end.column=I,D.start.row=D.end.row=U.row,D.cursor=D.end}),k.fromOrientedRange(M[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(y,k){var M=!0,v=!0,S,A,$;return y.map(function(T){var I=T.match(/(\s*)(.*?)(\s*)([=:].*)/);return I?S==null?(S=I[1].length,A=I[2].length,$=I[3].length,I):(S+A+$!=I[1].length+I[2].length+I[3].length&&(v=!1),S!=I[1].length&&(M=!1),S>I[1].length&&(S=I[1].length),AI[3].length&&($=I[3].length),I):[T]}).map(k?f:M?v?w:f:C);function u(T){return e.stringRepeat(" ",T)}function f(T){return T[2]?u(S)+T[2]+u(A-T[2].length+$)+T[4].replace(/^([=:])\s+/,"$1 "):T[0]}function w(T){return T[2]?u(S+A-T[2].length)+T[2]+u($)+T[4].replace(/^([=:])\s+/,"$1 "):T[0]}function C(T){return T[2]?u(S)+T[2]+u($)+T[4].replace(/^([=:])\s+/,"$1 "):T[0]}}}).call(c.prototype);function d(y,k){return y.row==k.row&&y.column==k.column}E.onSessionChange=function(y){var k=y.session;k&&!k.multiSelect&&(k.$selectionMarkers=[],k.selection.$initRangeList(),k.multiSelect=k.selection),this.multiSelect=k&&k.multiSelect;var M=y.oldSession;M&&(M.multiSelect.off("addRange",this.$onAddRange),M.multiSelect.off("removeRange",this.$onRemoveRange),M.multiSelect.off("multiSelect",this.$onMultiSelect),M.multiSelect.off("singleSelect",this.$onSingleSelect),M.multiSelect.lead.off("change",this.$checkMultiselectChange),M.multiSelect.anchor.off("change",this.$checkMultiselectChange)),k&&(k.multiSelect.on("addRange",this.$onAddRange),k.multiSelect.on("removeRange",this.$onRemoveRange),k.multiSelect.on("multiSelect",this.$onMultiSelect),k.multiSelect.on("singleSelect",this.$onSingleSelect),k.multiSelect.lead.on("change",this.$checkMultiselectChange),k.multiSelect.anchor.on("change",this.$checkMultiselectChange)),k&&this.inMultiSelectMode!=k.selection.inMultiSelectMode&&(k.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function p(y){y.$multiselectOnSessionChange||(y.$onAddRange=y.$onAddRange.bind(y),y.$onRemoveRange=y.$onRemoveRange.bind(y),y.$onMultiSelect=y.$onMultiSelect.bind(y),y.$onSingleSelect=y.$onSingleSelect.bind(y),y.$multiselectOnSessionChange=E.onSessionChange.bind(y),y.$checkMultiselectChange=y.$checkMultiselectChange.bind(y),y.$multiselectOnSessionChange(y),y.on("changeSession",y.$multiselectOnSessionChange),y.on("mousedown",a),y.commands.addCommands(i.defaultCommands),x(y))}function x(y){if(!y.textInput)return;var k=y.textInput.getElement(),M=!1;l.addListener(k,"keydown",function(S){var A=S.keyCode==18&&!(S.ctrlKey||S.shiftKey||S.metaKey);y.$blockSelectEnabled&&A?M||(y.renderer.setMouseCursor("crosshair"),M=!0):M&&v()},y),l.addListener(k,"keyup",v,y),l.addListener(k,"blur",v,y);function v(S){M&&(y.renderer.setMouseCursor(""),M=!1)}}E.MultiSelect=p,R("./config").defineOptions(c.prototype,"editor",{enableMultiselect:{set:function(y){p(this),y?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(y){this.$blockSelectEnabled=y},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(R,E,_){"use strict";var m=R("../../range").Range,b=E.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,a,l){var e=g.getLine(l);return this.foldingStartMarker.test(e)?"start":a=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(e)?"end":""},this.getFoldWidgetRange=function(g,a,l){return null},this.indentationBlock=function(g,a,l){var e=/\S/,i=g.getLine(a),n=i.search(e);if(n!=-1){for(var t=l||i.length,r=g.getLength(),o=a,c=a;++ao){var x=g.getLine(c).length;return new m(o,t,c,x)}}},this.openingBracketBlock=function(g,a,l,e,i){var n={row:l,column:e+1},t=g.$findClosingBracket(a,n,i);if(t){var r=g.foldWidgets[t.row];return r==null&&(r=g.getFoldWidget(t.row)),r=="start"&&t.row>n.row&&(t.row--,t.column=g.getLine(t.row).length),m.fromPoints(n,t)}},this.closingBracketBlock=function(g,a,l,e,i){var n={row:l,column:e},t=g.$findOpeningBracket(a,n);if(t)return t.column++,n.column--,m.fromPoints(t,n)}}).call(b.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(R,E,_){"use strict";var m=R("../line_widgets").LineWidgets,b=R("../lib/dom"),g=R("../range").Range;function a(e,i,n){for(var t=0,r=e.length-1;t<=r;){var o=t+r>>1,c=n(i,e[o]);if(c>0)t=o+1;else if(c<0)r=o-1;else return o}return-(t+1)}function l(e,i,n){var t=e.getAnnotations().sort(g.comparePoints);if(t.length){var r=a(t,{row:i,column:-1},g.comparePoints);r<0&&(r=-r-1),r>=t.length?r=n>0?0:t.length-1:r===0&&n<0&&(r=t.length-1);var o=t[r];if(!(!o||!n)){if(o.row===i){do o=t[r+=n];while(o&&o.row===i);if(!o)return t.slice()}var c=[];i=o.row;do c[n<0?"unshift":"push"](o),o=t[r+=n];while(o&&o.row==i);return c.length&&c}}}E.showErrorMarker=function(e,i){var n=e.session;n.widgetManager||(n.widgetManager=new m(n),n.widgetManager.attach(e));var t=e.getCursorPosition(),r=t.row,o=n.widgetManager.getWidgetsAtRow(r).filter(function(S){return S.type=="errorMarker"})[0];o?o.destroy():r-=i;var c=l(n,r,i),d;if(c){var p=c[0];t.column=(p.pos&&typeof p.column!="number"?p.pos.sc:p.column)||0,t.row=p.row,d=e.renderer.$gutterLayer.$annotations[t.row]}else{if(o)return;d={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(t.row),e.selection.moveToPosition(t);var x={row:t.row,fixedWidth:!0,coverGutter:!0,el:b.createElement("div"),type:"errorMarker"},y=x.el.appendChild(b.createElement("div")),k=x.el.appendChild(b.createElement("div"));k.className="error_widget_arrow "+d.className;var M=e.renderer.$cursorLayer.getPixelPosition(t).left;k.style.left=M+e.renderer.gutterWidth-5+"px",x.el.className="error_widget_wrapper",y.className="error_widget "+d.className,y.innerHTML=d.text.join("
"),y.appendChild(b.createElement("div"));var v=function(S,A,$){if(A===0&&($==="esc"||$==="return"))return x.destroy(),{command:"null"}};x.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(v),n.widgetManager.removeLineWidget(x),e.off("changeSelection",x.destroy),e.off("changeSession",x.destroy),e.off("mouseup",x.destroy),e.off("change",x.destroy))},e.keyBinding.addKeyboardHandler(v),e.on("changeSelection",x.destroy),e.on("changeSession",x.destroy),e.on("mouseup",x.destroy),e.on("change",x.destroy),e.session.widgetManager.addLineWidget(x),x.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:x.el.offsetHeight})},b.importCssString(` .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; } `,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","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","ace/loader_build"],function(R,E,_){"use strict";R("./loader_build")(E);var m=R("./lib/dom"),b=R("./range").Range,g=R("./editor").Editor,a=R("./edit_session").EditSession,l=R("./undomanager").UndoManager,e=R("./virtual_renderer").VirtualRenderer;R("./worker/worker_client"),R("./keyboard/hash_handler"),R("./placeholder"),R("./multi_select"),R("./mode/folding/fold_mode"),R("./theme/textmate"),R("./ext/error_marker"),E.config=R("./config"),E.edit=function(i,n){if(typeof i=="string"){var t=i;if(i=document.getElementById(t),!i)throw new Error("ace.edit can't find div #"+t)}if(i&&i.env&&i.env.editor instanceof g)return i.env.editor;var r="";if(i&&/input|textarea/i.test(i.tagName)){var o=i;r=o.value,i=m.createElement("pre"),o.parentNode.replaceChild(i,o)}else i&&(r=i.textContent,i.innerHTML="");var c=E.createEditSession(r),d=new g(new e(i),c,n),p={document:c,editor:d,onResize:d.resize.bind(d,null)};return o&&(p.textarea=o),d.on("destroy",function(){p.editor.container.env=null}),d.container.env=d.env=p,d},E.createEditSession=function(i,n){var t=new a(i,n);return t.setUndoManager(new l),t},E.Range=b,E.Editor=g,E.EditSession=a,E.UndoManager=l,E.VirtualRenderer=e,E.version=E.config.version}),function(){ace.require(["ace/ace"],function(R){R&&(R.config.init(!0),R.define=ace.define),window.ace||(window.ace=R);for(var E in R)R.hasOwnProperty(E)&&(window.ace[E]=R[E]);window.ace.default=window.ace,h&&(h.exports=window.ace)})}()},F48TptDW:(h,L,s)=>{h=s.nmd(h),ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(R,E,_){"use strict";var m=R("./lib/oop"),b=R("./lib/lang"),g=R("./lib/event_emitter").EventEmitter,a=R("./editor").Editor,l=R("./virtual_renderer").VirtualRenderer,e=R("./edit_session").EditSession,i=function(n,t,r){this.BELOW=1,this.BESIDE=0,this.$container=n,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(r||1),this.$cEditor=this.$editors[0],this.on("focus",function(o){this.$cEditor=o}.bind(this))};(function(){m.implement(this,g),this.$createEditor=function(){var n=document.createElement("div");n.className=this.$editorCSS,n.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(n);var t=new a(new l(n,this.$theme));return t.on("focus",function(){this._emit("focus",t)}.bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(n){var t;if(n<1)throw"The number of splits have to be > 0!";if(n!=this.$splits){if(n>this.$splits){for(;this.$splitsn;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(n){return this.$editors[n]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(n){this.$editors.forEach(function(t){t.setTheme(n)})},this.setKeyboardHandler=function(n){this.$editors.forEach(function(t){t.setKeyboardHandler(n)})},this.forEach=function(n,t){this.$editors.forEach(n,t)},this.$fontSize="",this.setFontSize=function(n){this.$fontSize=n,this.forEach(function(t){t.setFontSize(n)})},this.$cloneSession=function(n){var t=new e(n.getDocument(),n.getMode()),r=n.getUndoManager();return t.setUndoManager(r),t.setTabSize(n.getTabSize()),t.setUseSoftTabs(n.getUseSoftTabs()),t.setOverwrite(n.getOverwrite()),t.setBreakpoints(n.getBreakpoints()),t.setUseWrapMode(n.getUseWrapMode()),t.setUseWorker(n.getUseWorker()),t.setWrapLimitRange(n.$wrapLimitRange.min,n.$wrapLimitRange.max),t.$foldData=n.$cloneFoldData(),t},this.setSession=function(n,t){var r;t==null?r=this.$cEditor:r=this.$editors[t];var o=this.$editors.some(function(c){return c.session===n});return o&&(n=this.$cloneSession(n)),r.setSession(n),n},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(n){this.$orientation!=n&&(this.$orientation=n,this.resize())},this.resize=function(){var n=this.$container.clientWidth,t=this.$container.clientHeight,r;if(this.$orientation==this.BESIDE)for(var o=n/this.$splits,c=0;c{h=s.nmd(h),ace.define("ace/theme/monokai.css",["require","exports","module"],function(R,E,_){_.exports=`.ace-monokai .ace_gutter { background: #2F3129; color: #8F908A } .ace-monokai .ace_print-margin { width: 1px; background: #555651 } .ace-monokai { background-color: #272822; color: #F8F8F2 } .ace-monokai .ace_cursor { color: #F8F8F0 } .ace-monokai .ace_marker-layer .ace_selection { background: #49483E } .ace-monokai.ace_multiselect .ace_selection.ace_start { box-shadow: 0 0 3px 0px #272822; } .ace-monokai .ace_marker-layer .ace_step { background: rgb(102, 82, 0) } .ace-monokai .ace_marker-layer .ace_bracket { margin: -1px 0 0 -1px; border: 1px solid #49483E } .ace-monokai .ace_marker-layer .ace_active-line { background: #202020 } .ace-monokai .ace_gutter-active-line { background-color: #272727 } .ace-monokai .ace_marker-layer .ace_selected-word { border: 1px solid #49483E } .ace-monokai .ace_invisible { color: #52524d } .ace-monokai .ace_entity.ace_name.ace_tag, .ace-monokai .ace_keyword, .ace-monokai .ace_meta.ace_tag, .ace-monokai .ace_storage { color: #F92672 } .ace-monokai .ace_punctuation, .ace-monokai .ace_punctuation.ace_tag { color: #fff } .ace-monokai .ace_constant.ace_character, .ace-monokai .ace_constant.ace_language, .ace-monokai .ace_constant.ace_numeric, .ace-monokai .ace_constant.ace_other { color: #AE81FF } .ace-monokai .ace_invalid { color: #F8F8F0; background-color: #F92672 } .ace-monokai .ace_invalid.ace_deprecated { color: #F8F8F0; background-color: #AE81FF } .ace-monokai .ace_support.ace_constant, .ace-monokai .ace_support.ace_function { color: #66D9EF } .ace-monokai .ace_fold { background-color: #A6E22E; border-color: #F8F8F2 } .ace-monokai .ace_storage.ace_type, .ace-monokai .ace_support.ace_class, .ace-monokai .ace_support.ace_type { font-style: italic; color: #66D9EF } .ace-monokai .ace_entity.ace_name.ace_function, .ace-monokai .ace_entity.ace_other, .ace-monokai .ace_entity.ace_other.ace_attribute-name, .ace-monokai .ace_variable { color: #A6E22E } .ace-monokai .ace_variable.ace_parameter { font-style: italic; color: #FD971F } .ace-monokai .ace_string { color: #E6DB74 } .ace-monokai .ace_comment { color: #75715E } .ace-monokai .ace_indent-guide { background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y } .ace-monokai .ace_indent-guide-active { background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y; } `}),ace.define("ace/theme/monokai",["require","exports","module","ace/theme/monokai.css","ace/lib/dom"],function(R,E,_){E.isDark=!0,E.cssClass="ace-monokai",E.cssText=R("./monokai.css");var m=R("../lib/dom");m.importCssString(E.cssText,E.cssClass,!1)}),function(){ace.require(["ace/theme/monokai"],function(R){h&&(h.exports=R)})}()},m2mdH5bp:(h,L,s)=>{h=s.nmd(h),ace.define("ace/theme/tomorrow.css",["require","exports","module"],function(R,E,_){_.exports=`.ace-tomorrow .ace_gutter { background: #f6f6f6; color: #4D4D4C } .ace-tomorrow .ace_print-margin { width: 1px; background: #f6f6f6 } .ace-tomorrow { background-color: #FFFFFF; color: #4D4D4C } .ace-tomorrow .ace_cursor { color: #AEAFAD } .ace-tomorrow .ace_marker-layer .ace_selection { background: #D6D6D6 } .ace-tomorrow.ace_multiselect .ace_selection.ace_start { box-shadow: 0 0 3px 0px #FFFFFF; } .ace-tomorrow .ace_marker-layer .ace_step { background: rgb(255, 255, 0) } .ace-tomorrow .ace_marker-layer .ace_bracket { margin: -1px 0 0 -1px; border: 1px solid #D1D1D1 } .ace-tomorrow .ace_marker-layer .ace_active-line { background: #EFEFEF } .ace-tomorrow .ace_gutter-active-line { background-color : #dcdcdc } .ace-tomorrow .ace_marker-layer .ace_selected-word { border: 1px solid #D6D6D6 } .ace-tomorrow .ace_invisible { color: #D1D1D1 } .ace-tomorrow .ace_keyword, .ace-tomorrow .ace_meta, .ace-tomorrow .ace_storage, .ace-tomorrow .ace_storage.ace_type, .ace-tomorrow .ace_support.ace_type { color: #8959A8 } .ace-tomorrow .ace_keyword.ace_operator { color: #3E999F } .ace-tomorrow .ace_constant.ace_character, .ace-tomorrow .ace_constant.ace_language, .ace-tomorrow .ace_constant.ace_numeric, .ace-tomorrow .ace_keyword.ace_other.ace_unit, .ace-tomorrow .ace_support.ace_constant, .ace-tomorrow .ace_variable.ace_parameter { color: #F5871F } .ace-tomorrow .ace_constant.ace_other { color: #666969 } .ace-tomorrow .ace_invalid { color: #FFFFFF; background-color: #C82829 } .ace-tomorrow .ace_invalid.ace_deprecated { color: #FFFFFF; background-color: #8959A8 } .ace-tomorrow .ace_fold { background-color: #4271AE; border-color: #4D4D4C } .ace-tomorrow .ace_entity.ace_name.ace_function, .ace-tomorrow .ace_support.ace_function, .ace-tomorrow .ace_variable { color: #4271AE } .ace-tomorrow .ace_support.ace_class, .ace-tomorrow .ace_support.ace_type { color: #C99E00 } .ace-tomorrow .ace_heading, .ace-tomorrow .ace_markup.ace_heading, .ace-tomorrow .ace_string { color: #718C00 } .ace-tomorrow .ace_entity.ace_name.ace_tag, .ace-tomorrow .ace_entity.ace_other.ace_attribute-name, .ace-tomorrow .ace_meta.ace_tag, .ace-tomorrow .ace_string.ace_regexp, .ace-tomorrow .ace_variable { color: #C82829 } .ace-tomorrow .ace_comment { color: #8E908C } .ace-tomorrow .ace_indent-guide { background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bdu3f/BwAlfgctduB85QAAAABJRU5ErkJggg==) right repeat-y } .ace-tomorrow .ace_indent-guide-active { background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y; } `}),ace.define("ace/theme/tomorrow",["require","exports","module","ace/theme/tomorrow.css","ace/lib/dom"],function(R,E,_){E.isDark=!1,E.cssClass="ace-tomorrow",E.cssText=R("./tomorrow.css");var m=R("../lib/dom");m.importCssString(E.cssText,E.cssClass,!1)}),function(){ace.require(["ace/theme/tomorrow"],function(R){h&&(h.exports=R)})}()},hViWz1AJ:(h,L,s)=>{ace.config.setModuleUrl("ace/ext/beautify",s("KJ7h3pF+")),ace.config.setModuleUrl("ace/ext/code_lens",s("B2w+iJaB")),ace.config.setModuleUrl("ace/ext/elastic_tabstops_lite",s("wR0O36G8")),ace.config.setModuleUrl("ace/ext/emmet",s("mHIQJwee")),ace.config.setModuleUrl("ace/ext/error_marker",s("IiPcyGu1")),ace.config.setModuleUrl("ace/ext/hardwrap",s("PN3wrz79")),ace.config.setModuleUrl("ace/ext/inline_autocomplete",s("fiOGeUQO")),ace.config.setModuleUrl("ace/ext/keyboard_menu",s("JvCZCupa")),ace.config.setModuleUrl("ace/ext/language_tools",s("cljE5Yi3")),ace.config.setModuleUrl("ace/ext/linking",s("EVIIvNP1")),ace.config.setModuleUrl("ace/ext/modelist",s("oIN3Y9Y+")),ace.config.setModuleUrl("ace/ext/options",s("q+fHRtOx")),ace.config.setModuleUrl("ace/ext/prompt",s("QypEdsZr")),ace.config.setModuleUrl("ace/ext/rtl",s("N8a/s2JS")),ace.config.setModuleUrl("ace/ext/searchbox",s("nurdQOvO")),ace.config.setModuleUrl("ace/ext/settings_menu",s("rwFhBhnm")),ace.config.setModuleUrl("ace/ext/spellcheck",s("5gaeSbfJ")),ace.config.setModuleUrl("ace/ext/split",s("rhwaacp8")),ace.config.setModuleUrl("ace/ext/static_highlight",s("RSbUIhpb")),ace.config.setModuleUrl("ace/ext/statusbar",s("LMJK8O2y")),ace.config.setModuleUrl("ace/ext/textarea",s("dgljeUWr")),ace.config.setModuleUrl("ace/ext/themelist",s("WgBn9RKV")),ace.config.setModuleUrl("ace/ext/whitespace",s("AxyJJlvS")),ace.config.setModuleUrl("ace/keyboard/emacs",s("RCyuP6sI")),ace.config.setModuleUrl("ace/keyboard/sublime",s("0EoOxFjP")),ace.config.setModuleUrl("ace/keyboard/vim",s("JI23s+Ew")),ace.config.setModuleUrl("ace/keyboard/vscode",s("NFKPcVdi")),ace.config.setModuleUrl("ace/mode/abap",s("f9Q7KjhE")),ace.config.setModuleUrl("ace/mode/abc",s("XhiZ6TMh")),ace.config.setModuleUrl("ace/mode/actionscript",s("Mb+SRHbE")),ace.config.setModuleUrl("ace/mode/ada",s("rgV7qPh1")),ace.config.setModuleUrl("ace/mode/alda",s("7ywyViGB")),ace.config.setModuleUrl("ace/mode/apache_conf",s("aRDpmiz3")),ace.config.setModuleUrl("ace/mode/apex",s("3z+10Qww")),ace.config.setModuleUrl("ace/mode/applescript",s("zDUw687c")),ace.config.setModuleUrl("ace/mode/aql",s("ZA5bJL04")),ace.config.setModuleUrl("ace/mode/asciidoc",s("UJ5VeWm1")),ace.config.setModuleUrl("ace/mode/asl",s("AjKEyyw0")),ace.config.setModuleUrl("ace/mode/assembly_x86",s("RoY3kljj")),ace.config.setModuleUrl("ace/mode/autohotkey",s("bbSMiwHX")),ace.config.setModuleUrl("ace/mode/batchfile",s("6gW+mNVp")),ace.config.setModuleUrl("ace/mode/bibtex",s("CGG2B4Nh")),ace.config.setModuleUrl("ace/mode/c9search",s("dcyoWKsu")),ace.config.setModuleUrl("ace/mode/c_cpp",s("B4nyWlQE")),ace.config.setModuleUrl("ace/mode/cirru",s("39kRP7Gz")),ace.config.setModuleUrl("ace/mode/clojure",s("9l0XtChj")),ace.config.setModuleUrl("ace/mode/cobol",s("cEnPwFgi")),ace.config.setModuleUrl("ace/mode/coffee",s("TsGWTwOG")),ace.config.setModuleUrl("ace/mode/coldfusion",s("WhVMIyF3")),ace.config.setModuleUrl("ace/mode/crystal",s("rwT/30E5")),ace.config.setModuleUrl("ace/mode/csharp",s("l65YTBe6")),ace.config.setModuleUrl("ace/mode/csound_document",s("69el5XK7")),ace.config.setModuleUrl("ace/mode/csound_orchestra",s("ItHIJ0eS")),ace.config.setModuleUrl("ace/mode/csound_score",s("ZEwA1jXv")),ace.config.setModuleUrl("ace/mode/csp",s("c3lQ44gr")),ace.config.setModuleUrl("ace/mode/css",s("Zy5PLfu2")),ace.config.setModuleUrl("ace/mode/curly",s("tB02ZMrV")),ace.config.setModuleUrl("ace/mode/d",s("UtAR/Nnz")),ace.config.setModuleUrl("ace/mode/dart",s("pp9hmRmR")),ace.config.setModuleUrl("ace/mode/diff",s("TtEonQ3c")),ace.config.setModuleUrl("ace/mode/django",s("FvzVfDpQ")),ace.config.setModuleUrl("ace/mode/dockerfile",s("ZcBizuvF")),ace.config.setModuleUrl("ace/mode/dot",s("FFRdY6+R")),ace.config.setModuleUrl("ace/mode/drools",s("s2J4aKZl")),ace.config.setModuleUrl("ace/mode/edifact",s("qk+K9Bzw")),ace.config.setModuleUrl("ace/mode/eiffel",s("Y06WGWj3")),ace.config.setModuleUrl("ace/mode/ejs",s("fdM/w1OY")),ace.config.setModuleUrl("ace/mode/elixir",s("gW8wQhfm")),ace.config.setModuleUrl("ace/mode/elm",s("4DcnL6V3")),ace.config.setModuleUrl("ace/mode/erlang",s("Q/osO92v")),ace.config.setModuleUrl("ace/mode/forth",s("wRYuiDPf")),ace.config.setModuleUrl("ace/mode/fortran",s("w9bn3WmC")),ace.config.setModuleUrl("ace/mode/fsharp",s("CvT/dj26")),ace.config.setModuleUrl("ace/mode/fsl",s("f+ZChAbB")),ace.config.setModuleUrl("ace/mode/ftl",s("aSNr9qDC")),ace.config.setModuleUrl("ace/mode/gcode",s("G+KEVL1w")),ace.config.setModuleUrl("ace/mode/gherkin",s("m2hyIYI9")),ace.config.setModuleUrl("ace/mode/gitignore",s("oIWYaTpo")),ace.config.setModuleUrl("ace/mode/glsl",s("XZoIdHs0")),ace.config.setModuleUrl("ace/mode/gobstones",s("ROcMGP6M")),ace.config.setModuleUrl("ace/mode/golang",s("BS7OfPZr")),ace.config.setModuleUrl("ace/mode/graphqlschema",s("gTxcyPlx")),ace.config.setModuleUrl("ace/mode/groovy",s("5wuiXJtp")),ace.config.setModuleUrl("ace/mode/haml",s("8sUpSktc")),ace.config.setModuleUrl("ace/mode/handlebars",s("E2WBvs6p")),ace.config.setModuleUrl("ace/mode/haskell",s("eWkduJug")),ace.config.setModuleUrl("ace/mode/haskell_cabal",s("lpf+oj3p")),ace.config.setModuleUrl("ace/mode/haxe",s("q+kd1DVF")),ace.config.setModuleUrl("ace/mode/hjson",s("VoHmqoAv")),ace.config.setModuleUrl("ace/mode/html",s("69/8WEWc")),ace.config.setModuleUrl("ace/mode/html_elixir",s("sVY7IdRA")),ace.config.setModuleUrl("ace/mode/html_ruby",s("GdNCG2Ac")),ace.config.setModuleUrl("ace/mode/ini",s("Qsb02umC")),ace.config.setModuleUrl("ace/mode/io",s("MbwhKzfE")),ace.config.setModuleUrl("ace/mode/ion",s("82G3Eh7o")),ace.config.setModuleUrl("ace/mode/jack",s("BWVg9xUM")),ace.config.setModuleUrl("ace/mode/jade",s("5jJQfH1G")),ace.config.setModuleUrl("ace/mode/java",s("SKNPrvj3")),ace.config.setModuleUrl("ace/mode/javascript",s("W+rRzPQ3")),ace.config.setModuleUrl("ace/mode/jexl",s("slnLcnPv")),ace.config.setModuleUrl("ace/mode/json",s("S/S+XPbm")),ace.config.setModuleUrl("ace/mode/json5",s("4Ofed9nk")),ace.config.setModuleUrl("ace/mode/jsoniq",s("2YivyU24")),ace.config.setModuleUrl("ace/mode/jsp",s("QT2u3ERV")),ace.config.setModuleUrl("ace/mode/jssm",s("wOeE8qtP")),ace.config.setModuleUrl("ace/mode/jsx",s("Ko8nu1IK")),ace.config.setModuleUrl("ace/mode/julia",s("4lxwVSe7")),ace.config.setModuleUrl("ace/mode/kotlin",s("wuE3nUfE")),ace.config.setModuleUrl("ace/mode/latex",s("KilHDkrb")),ace.config.setModuleUrl("ace/mode/latte",s("dSNjqeYx")),ace.config.setModuleUrl("ace/mode/less",s("9s0zGrJC")),ace.config.setModuleUrl("ace/mode/liquid",s("lKxe9i7C")),ace.config.setModuleUrl("ace/mode/lisp",s("RhDfJIvJ")),ace.config.setModuleUrl("ace/mode/livescript",s("MetX2Z6a")),ace.config.setModuleUrl("ace/mode/logiql",s("WIs0ZCRn")),ace.config.setModuleUrl("ace/mode/logtalk",s("lPOXAEYo")),ace.config.setModuleUrl("ace/mode/lsl",s("Lj7y0Iiv")),ace.config.setModuleUrl("ace/mode/lua",s("m9gbmgpX")),ace.config.setModuleUrl("ace/mode/luapage",s("y+2Cak43")),ace.config.setModuleUrl("ace/mode/lucene",s("IPW/J58z")),ace.config.setModuleUrl("ace/mode/makefile",s("8UDn0fo/")),ace.config.setModuleUrl("ace/mode/markdown",s("MaW1rtmX")),ace.config.setModuleUrl("ace/mode/mask",s("6DPeZKoT")),ace.config.setModuleUrl("ace/mode/matlab",s("WJdO7a6x")),ace.config.setModuleUrl("ace/mode/maze",s("Ryv5Hs/0")),ace.config.setModuleUrl("ace/mode/mediawiki",s("b3jIjWsp")),ace.config.setModuleUrl("ace/mode/mel",s("g8PbnK2I")),ace.config.setModuleUrl("ace/mode/mips",s("7xtVVdF8")),ace.config.setModuleUrl("ace/mode/mixal",s("Sz82cEdf")),ace.config.setModuleUrl("ace/mode/mushcode",s("kRVSeld2")),ace.config.setModuleUrl("ace/mode/mysql",s("YcAgQIDi")),ace.config.setModuleUrl("ace/mode/nginx",s("WzplMpNk")),ace.config.setModuleUrl("ace/mode/nim",s("cEkhK+AE")),ace.config.setModuleUrl("ace/mode/nix",s("YmftNx5B")),ace.config.setModuleUrl("ace/mode/nsis",s("yRL3jNDK")),ace.config.setModuleUrl("ace/mode/nunjucks",s("t8wWwN0E")),ace.config.setModuleUrl("ace/mode/objectivec",s("Jo2d/QyO")),ace.config.setModuleUrl("ace/mode/ocaml",s("O+MHPI4B")),ace.config.setModuleUrl("ace/mode/partiql",s("EmkkcrGA")),ace.config.setModuleUrl("ace/mode/pascal",s("UN69KoiI")),ace.config.setModuleUrl("ace/mode/perl",s("XDChci5t")),ace.config.setModuleUrl("ace/mode/pgsql",s("gzGSqjXe")),ace.config.setModuleUrl("ace/mode/php",s("3LFiePQv")),ace.config.setModuleUrl("ace/mode/php_laravel_blade",s("OffvJTpV")),ace.config.setModuleUrl("ace/mode/pig",s("YrxQQ9ic")),ace.config.setModuleUrl("ace/mode/plain_text",s("P5Du0AOV")),ace.config.setModuleUrl("ace/mode/plsql",s("BHNJPC/F")),ace.config.setModuleUrl("ace/mode/powershell",s("gQFTgoKh")),ace.config.setModuleUrl("ace/mode/praat",s("cIA33Uux")),ace.config.setModuleUrl("ace/mode/prisma",s("nvxbpDjX")),ace.config.setModuleUrl("ace/mode/prolog",s("Cv9D60U9")),ace.config.setModuleUrl("ace/mode/properties",s("z787h9SV")),ace.config.setModuleUrl("ace/mode/protobuf",s("JIzEQQOP")),ace.config.setModuleUrl("ace/mode/puppet",s("eB2Xyp6Q")),ace.config.setModuleUrl("ace/mode/python",s("cZexJJJu")),ace.config.setModuleUrl("ace/mode/qml",s("D7IIxazi")),ace.config.setModuleUrl("ace/mode/r",s("37Ne+x1b")),ace.config.setModuleUrl("ace/mode/raku",s("V3IcoNW6")),ace.config.setModuleUrl("ace/mode/razor",s("+GyvnhH0")),ace.config.setModuleUrl("ace/mode/rdoc",s("wnJQvwxJ")),ace.config.setModuleUrl("ace/mode/red",s("5M3QnVF8")),ace.config.setModuleUrl("ace/mode/redshift",s("uMJskZWQ")),ace.config.setModuleUrl("ace/mode/rhtml",s("jGoRnk1m")),ace.config.setModuleUrl("ace/mode/robot",s("R3UaiYdG")),ace.config.setModuleUrl("ace/mode/rst",s("+21qgRUW")),ace.config.setModuleUrl("ace/mode/ruby",s("rui/SuoT")),ace.config.setModuleUrl("ace/mode/rust",s("ev/jN719")),ace.config.setModuleUrl("ace/mode/sac",s("0cT35Irr")),ace.config.setModuleUrl("ace/mode/sass",s("is3xhf2Z")),ace.config.setModuleUrl("ace/mode/scad",s("uJRJGR5x")),ace.config.setModuleUrl("ace/mode/scala",s("Ej9Mbt41")),ace.config.setModuleUrl("ace/mode/scheme",s("GS2u+uCB")),ace.config.setModuleUrl("ace/mode/scrypt",s("P6XL5j+J")),ace.config.setModuleUrl("ace/mode/scss",s("rb1WeCd3")),ace.config.setModuleUrl("ace/mode/sh",s("mj/X/QpT")),ace.config.setModuleUrl("ace/mode/sjs",s("nPSTcxkM")),ace.config.setModuleUrl("ace/mode/slim",s("rMv34TVG")),ace.config.setModuleUrl("ace/mode/smarty",s("9frdRC+d")),ace.config.setModuleUrl("ace/mode/smithy",s("Dgd6TotM")),ace.config.setModuleUrl("ace/mode/snippets",s("Ee/adM0h")),ace.config.setModuleUrl("ace/mode/soy_template",s("/K+DecFy")),ace.config.setModuleUrl("ace/mode/space",s("mHl7nGoL")),ace.config.setModuleUrl("ace/mode/sparql",s("D/iew0TZ")),ace.config.setModuleUrl("ace/mode/sql",s("2fr/hfKJ")),ace.config.setModuleUrl("ace/mode/sqlserver",s("/HAVoDco")),ace.config.setModuleUrl("ace/mode/stylus",s("uuGmp+oa")),ace.config.setModuleUrl("ace/mode/svg",s("wT9XyTxq")),ace.config.setModuleUrl("ace/mode/swift",s("4spcbJDg")),ace.config.setModuleUrl("ace/mode/tcl",s("81Ub9/Bh")),ace.config.setModuleUrl("ace/mode/terraform",s("kOgJL9KN")),ace.config.setModuleUrl("ace/mode/tex",s("FIgdNmq8")),ace.config.setModuleUrl("ace/mode/text",s("ZA3nFAaf")),ace.config.setModuleUrl("ace/mode/textile",s("qGefSyI+")),ace.config.setModuleUrl("ace/mode/toml",s("fqiXtc88")),ace.config.setModuleUrl("ace/mode/tsx",s("/THIiewk")),ace.config.setModuleUrl("ace/mode/turtle",s("RwWxixsF")),ace.config.setModuleUrl("ace/mode/twig",s("7ZI/55zZ")),ace.config.setModuleUrl("ace/mode/typescript",s("xwm6i9FM")),ace.config.setModuleUrl("ace/mode/vala",s("XjZTha4a")),ace.config.setModuleUrl("ace/mode/vbscript",s("lVzFo0Y4")),ace.config.setModuleUrl("ace/mode/velocity",s("UrD4N1zb")),ace.config.setModuleUrl("ace/mode/verilog",s("CGGEaVCf")),ace.config.setModuleUrl("ace/mode/vhdl",s("v+Lyqq2Z")),ace.config.setModuleUrl("ace/mode/visualforce",s("XY3gE0Rk")),ace.config.setModuleUrl("ace/mode/wollok",s("xiFOb0Ie")),ace.config.setModuleUrl("ace/mode/xml",s("IpYM2bHn")),ace.config.setModuleUrl("ace/mode/xquery",s("PrNkpak9")),ace.config.setModuleUrl("ace/mode/yaml",s("DVHugB0f")),ace.config.setModuleUrl("ace/mode/zeek",s("B4poQTOL")),ace.config.setModuleUrl("ace/theme/ambiance",s("l1lYLnFG")),ace.config.setModuleUrl("ace/theme/chaos",s("MVLfkgRO")),ace.config.setModuleUrl("ace/theme/chrome",s("JdNh8gb3")),ace.config.setModuleUrl("ace/theme/cloud9_day",s("v3cIezEl")),ace.config.setModuleUrl("ace/theme/cloud9_night",s("vL/GGtXq")),ace.config.setModuleUrl("ace/theme/cloud9_night_low_color",s("6W0Oybpv")),ace.config.setModuleUrl("ace/theme/clouds",s("1YT6s9sZ")),ace.config.setModuleUrl("ace/theme/clouds_midnight",s("hDf0rkEI")),ace.config.setModuleUrl("ace/theme/cobalt",s("IcdJB6RT")),ace.config.setModuleUrl("ace/theme/crimson_editor",s("1CcjkTW2")),ace.config.setModuleUrl("ace/theme/dawn",s("qKdFSJM1")),ace.config.setModuleUrl("ace/theme/dracula",s("WcID6jHe")),ace.config.setModuleUrl("ace/theme/dreamweaver",s("UrmhI2yl")),ace.config.setModuleUrl("ace/theme/eclipse",s("adfKiEqr")),ace.config.setModuleUrl("ace/theme/github",s("6JUCKrPp")),ace.config.setModuleUrl("ace/theme/gob",s("ZNs4vcdh")),ace.config.setModuleUrl("ace/theme/gruvbox",s("g00obu5c")),ace.config.setModuleUrl("ace/theme/gruvbox_dark_hard",s("948B1sdC")),ace.config.setModuleUrl("ace/theme/gruvbox_light_hard",s("6f6ywK4X")),ace.config.setModuleUrl("ace/theme/idle_fingers",s("X5lyhFZq")),ace.config.setModuleUrl("ace/theme/iplastic",s("E+BVsWKj")),ace.config.setModuleUrl("ace/theme/katzenmilch",s("NEJeIpSa")),ace.config.setModuleUrl("ace/theme/kr_theme",s("ZhCPcINa")),ace.config.setModuleUrl("ace/theme/kuroir",s("n/YvNmNM")),ace.config.setModuleUrl("ace/theme/merbivore",s("5hr//AML")),ace.config.setModuleUrl("ace/theme/merbivore_soft",s("WLtUVsLt")),ace.config.setModuleUrl("ace/theme/mono_industrial",s("kllLTRgG")),ace.config.setModuleUrl("ace/theme/monokai",s("tvqcW6d4")),ace.config.setModuleUrl("ace/theme/nord_dark",s("vdQ1l0lh")),ace.config.setModuleUrl("ace/theme/one_dark",s("CTxztnCu")),ace.config.setModuleUrl("ace/theme/pastel_on_dark",s("DKVKp6eM")),ace.config.setModuleUrl("ace/theme/solarized_dark",s("2DTlQWKj")),ace.config.setModuleUrl("ace/theme/solarized_light",s("bKl877OY")),ace.config.setModuleUrl("ace/theme/sqlserver",s("yrMd9gTa")),ace.config.setModuleUrl("ace/theme/terminal",s("cYmr97PJ")),ace.config.setModuleUrl("ace/theme/textmate",s("kDa7ZriR")),ace.config.setModuleUrl("ace/theme/tomorrow",s("JE6AtuIa")),ace.config.setModuleUrl("ace/theme/tomorrow_night",s("kHeRLRtP")),ace.config.setModuleUrl("ace/theme/tomorrow_night_blue",s("JKOkCiEx")),ace.config.setModuleUrl("ace/theme/tomorrow_night_bright",s("aEfBTURH")),ace.config.setModuleUrl("ace/theme/tomorrow_night_eighties",s("oa8N11m+")),ace.config.setModuleUrl("ace/theme/twilight",s("TJwQQT13")),ace.config.setModuleUrl("ace/theme/vibrant_ink",s("fCARvF4c")),ace.config.setModuleUrl("ace/theme/xcode",s("SklWCMVA")),ace.config.setModuleUrl("ace/mode/base_worker",s("ceoYkTou")),ace.config.setModuleUrl("ace/mode/coffee_worker",s("51Xq34bu")),ace.config.setModuleUrl("ace/mode/css_worker",s("fKv/I13j")),ace.config.setModuleUrl("ace/mode/html_worker",s("kxLoK35b")),ace.config.setModuleUrl("ace/mode/javascript_worker",s("Z2cYhbxg")),ace.config.setModuleUrl("ace/mode/json_worker",s("ziqewSXn")),ace.config.setModuleUrl("ace/mode/lua_worker",s("hFHpaEZ9")),ace.config.setModuleUrl("ace/mode/php_worker",s("8z5K6nuC")),ace.config.setModuleUrl("ace/mode/xml_worker",s("DW5CTjRI")),ace.config.setModuleUrl("ace/mode/xquery_worker",s("5KKxcDH1")),ace.config.setModuleUrl("ace/mode/yaml_worker",s("GsNPzpn+")),ace.config.setModuleUrl("ace/snippets/abap",s("CUPortIW")),ace.config.setModuleUrl("ace/snippets/abc",s("cBRChpL7")),ace.config.setModuleUrl("ace/snippets/actionscript",s("5O/jQAPE")),ace.config.setModuleUrl("ace/snippets/ada",s("JRv3Q5h0")),ace.config.setModuleUrl("ace/snippets/alda",s("T8wnTgVd")),ace.config.setModuleUrl("ace/snippets/apache_conf",s("D4m/mj+u")),ace.config.setModuleUrl("ace/snippets/apex",s("PfEcizAn")),ace.config.setModuleUrl("ace/snippets/applescript",s("XJIOnCMI")),ace.config.setModuleUrl("ace/snippets/aql",s("bzJRp/fj")),ace.config.setModuleUrl("ace/snippets/asciidoc",s("WGudCwHG")),ace.config.setModuleUrl("ace/snippets/asl",s("Sgt41ziz")),ace.config.setModuleUrl("ace/snippets/assembly_x86",s("5Cd9/Clf")),ace.config.setModuleUrl("ace/snippets/autohotkey",s("xkdg8c4m")),ace.config.setModuleUrl("ace/snippets/batchfile",s("Pan7UXi6")),ace.config.setModuleUrl("ace/snippets/bibtex",s("5rFUMTo0")),ace.config.setModuleUrl("ace/snippets/c9search",s("5Y51+Vh1")),ace.config.setModuleUrl("ace/snippets/c_cpp",s("xOgV6CkG")),ace.config.setModuleUrl("ace/snippets/cirru",s("CjBhGB0o")),ace.config.setModuleUrl("ace/snippets/clojure",s("VXvdTg0X")),ace.config.setModuleUrl("ace/snippets/cobol",s("W4XoRKK4")),ace.config.setModuleUrl("ace/snippets/coffee",s("Ken8ylxk")),ace.config.setModuleUrl("ace/snippets/coldfusion",s("ewgFOqjw")),ace.config.setModuleUrl("ace/snippets/crystal",s("8/kwZneT")),ace.config.setModuleUrl("ace/snippets/csharp",s("LzhmpIfy")),ace.config.setModuleUrl("ace/snippets/csound_document",s("KS7ndwix")),ace.config.setModuleUrl("ace/snippets/csound_orchestra",s("737WX/BK")),ace.config.setModuleUrl("ace/snippets/csound_score",s("pjcg92Zz")),ace.config.setModuleUrl("ace/snippets/csp",s("7lnPtNAK")),ace.config.setModuleUrl("ace/snippets/css",s("lF6nRVUD")),ace.config.setModuleUrl("ace/snippets/curly",s("Q52XOfEM")),ace.config.setModuleUrl("ace/snippets/d",s("vnmFDQ0H")),ace.config.setModuleUrl("ace/snippets/dart",s("vhsfk6tw")),ace.config.setModuleUrl("ace/snippets/diff",s("+5E7vsAR")),ace.config.setModuleUrl("ace/snippets/django",s("iYxCCA4j")),ace.config.setModuleUrl("ace/snippets/dockerfile",s("QHbcYkzC")),ace.config.setModuleUrl("ace/snippets/dot",s("G1zdDMr3")),ace.config.setModuleUrl("ace/snippets/drools",s("1vi6P6ZX")),ace.config.setModuleUrl("ace/snippets/edifact",s("0uau5JfL")),ace.config.setModuleUrl("ace/snippets/eiffel",s("Mi1cIhKo")),ace.config.setModuleUrl("ace/snippets/ejs",s("zq0C7U0x")),ace.config.setModuleUrl("ace/snippets/elixir",s("22AtaWbi")),ace.config.setModuleUrl("ace/snippets/elm",s("qURPEew3")),ace.config.setModuleUrl("ace/snippets/erlang",s("Htk+FigO")),ace.config.setModuleUrl("ace/snippets/forth",s("ClI35KjP")),ace.config.setModuleUrl("ace/snippets/fortran",s("I831XjCT")),ace.config.setModuleUrl("ace/snippets/fsharp",s("m/z0LwsV")),ace.config.setModuleUrl("ace/snippets/fsl",s("3lcU/Z5b")),ace.config.setModuleUrl("ace/snippets/ftl",s("wqC/KZut")),ace.config.setModuleUrl("ace/snippets/gcode",s("LDaJ9HVy")),ace.config.setModuleUrl("ace/snippets/gherkin",s("7DmFC2co")),ace.config.setModuleUrl("ace/snippets/gitignore",s("3l+1RVa8")),ace.config.setModuleUrl("ace/snippets/glsl",s("/+VYuwMr")),ace.config.setModuleUrl("ace/snippets/gobstones",s("uggWucqH")),ace.config.setModuleUrl("ace/snippets/golang",s("9Hvh6IkR")),ace.config.setModuleUrl("ace/snippets/graphqlschema",s("KeKEOp26")),ace.config.setModuleUrl("ace/snippets/groovy",s("ipFPgOjE")),ace.config.setModuleUrl("ace/snippets/haml",s("/tvpFP6K")),ace.config.setModuleUrl("ace/snippets/handlebars",s("iDkCzcRu")),ace.config.setModuleUrl("ace/snippets/haskell",s("96bhyy2v")),ace.config.setModuleUrl("ace/snippets/haskell_cabal",s("D9w5+Ipp")),ace.config.setModuleUrl("ace/snippets/haxe",s("az9h16It")),ace.config.setModuleUrl("ace/snippets/hjson",s("Xg2jGysL")),ace.config.setModuleUrl("ace/snippets/html",s("3aygTms3")),ace.config.setModuleUrl("ace/snippets/html_elixir",s("OSlsKDry")),ace.config.setModuleUrl("ace/snippets/html_ruby",s("Kue1cIAt")),ace.config.setModuleUrl("ace/snippets/ini",s("nvi5A4UP")),ace.config.setModuleUrl("ace/snippets/io",s("++uZwDHV")),ace.config.setModuleUrl("ace/snippets/ion",s("OFj1V6yW")),ace.config.setModuleUrl("ace/snippets/jack",s("Q556q2nj")),ace.config.setModuleUrl("ace/snippets/jade",s("jpFhRn/K")),ace.config.setModuleUrl("ace/snippets/java",s("6EgliD2x")),ace.config.setModuleUrl("ace/snippets/javascript",s("z1tPbJqk")),ace.config.setModuleUrl("ace/snippets/jexl",s("fOfn4SAq")),ace.config.setModuleUrl("ace/snippets/json",s("cgm9fZ4Z")),ace.config.setModuleUrl("ace/snippets/json5",s("2XNm83HG")),ace.config.setModuleUrl("ace/snippets/jsoniq",s("wwe7Ei82")),ace.config.setModuleUrl("ace/snippets/jsp",s("+3cSePVN")),ace.config.setModuleUrl("ace/snippets/jssm",s("/5sc5LQ/")),ace.config.setModuleUrl("ace/snippets/jsx",s("rmSOybUV")),ace.config.setModuleUrl("ace/snippets/julia",s("p6ZErS+M")),ace.config.setModuleUrl("ace/snippets/kotlin",s("1NaKqGmv")),ace.config.setModuleUrl("ace/snippets/latex",s("ATSx0vyg")),ace.config.setModuleUrl("ace/snippets/latte",s("EwS0GjOe")),ace.config.setModuleUrl("ace/snippets/less",s("mfCekQZK")),ace.config.setModuleUrl("ace/snippets/liquid",s("BDgUyHXA")),ace.config.setModuleUrl("ace/snippets/lisp",s("7x+Vk7mX")),ace.config.setModuleUrl("ace/snippets/livescript",s("C2DxEU3T")),ace.config.setModuleUrl("ace/snippets/logiql",s("JxYJ+kJ2")),ace.config.setModuleUrl("ace/snippets/logtalk",s("W2tFaWWM")),ace.config.setModuleUrl("ace/snippets/lsl",s("USNc1lOU")),ace.config.setModuleUrl("ace/snippets/lua",s("DBpawh0J")),ace.config.setModuleUrl("ace/snippets/luapage",s("HUrZ6Vfz")),ace.config.setModuleUrl("ace/snippets/lucene",s("lfcaaAum")),ace.config.setModuleUrl("ace/snippets/makefile",s("Vt82Sw00")),ace.config.setModuleUrl("ace/snippets/markdown",s("RNjP2RaD")),ace.config.setModuleUrl("ace/snippets/mask",s("qWJarf8E")),ace.config.setModuleUrl("ace/snippets/matlab",s("rGspZ/cs")),ace.config.setModuleUrl("ace/snippets/maze",s("26XcIolH")),ace.config.setModuleUrl("ace/snippets/mediawiki",s("zBuM/LwL")),ace.config.setModuleUrl("ace/snippets/mel",s("htdc/ZfD")),ace.config.setModuleUrl("ace/snippets/mips",s("yTBE18zO")),ace.config.setModuleUrl("ace/snippets/mixal",s("N++oaRnM")),ace.config.setModuleUrl("ace/snippets/mushcode",s("x3yLY1fn")),ace.config.setModuleUrl("ace/snippets/mysql",s("wEhzoJv1")),ace.config.setModuleUrl("ace/snippets/nginx",s("h8BNSlXW")),ace.config.setModuleUrl("ace/snippets/nim",s("vLmH2mZP")),ace.config.setModuleUrl("ace/snippets/nix",s("0y7KfLVv")),ace.config.setModuleUrl("ace/snippets/nsis",s("a5x23qP0")),ace.config.setModuleUrl("ace/snippets/nunjucks",s("FahyREvx")),ace.config.setModuleUrl("ace/snippets/objectivec",s("rN1ibGaQ")),ace.config.setModuleUrl("ace/snippets/ocaml",s("4A0YQKMO")),ace.config.setModuleUrl("ace/snippets/partiql",s("hb5QFz0Y")),ace.config.setModuleUrl("ace/snippets/pascal",s("cUWDMBw3")),ace.config.setModuleUrl("ace/snippets/perl",s("xMFgkhje")),ace.config.setModuleUrl("ace/snippets/pgsql",s("L6PI+Mm5")),ace.config.setModuleUrl("ace/snippets/php",s("DL7V56rh")),ace.config.setModuleUrl("ace/snippets/php_laravel_blade",s("0iARbyZB")),ace.config.setModuleUrl("ace/snippets/pig",s("oRytI9dk")),ace.config.setModuleUrl("ace/snippets/plain_text",s("9iKdx794")),ace.config.setModuleUrl("ace/snippets/plsql",s("PpoLh//W")),ace.config.setModuleUrl("ace/snippets/powershell",s("DuYlNLYV")),ace.config.setModuleUrl("ace/snippets/praat",s("cjsPdS2M")),ace.config.setModuleUrl("ace/snippets/prisma",s("+qFE+WCe")),ace.config.setModuleUrl("ace/snippets/prolog",s("GcJbFFTo")),ace.config.setModuleUrl("ace/snippets/properties",s("MlK9mbrq")),ace.config.setModuleUrl("ace/snippets/protobuf",s("Qkef5na7")),ace.config.setModuleUrl("ace/snippets/puppet",s("zD4c1kQW")),ace.config.setModuleUrl("ace/snippets/python",s("omLBwaJy")),ace.config.setModuleUrl("ace/snippets/qml",s("kcaebZdw")),ace.config.setModuleUrl("ace/snippets/r",s("pBsbXtsO")),ace.config.setModuleUrl("ace/snippets/raku",s("LHMnpSV1")),ace.config.setModuleUrl("ace/snippets/razor",s("NKoLGt9T")),ace.config.setModuleUrl("ace/snippets/rdoc",s("iuGZVVoh")),ace.config.setModuleUrl("ace/snippets/red",s("ORg80VlQ")),ace.config.setModuleUrl("ace/snippets/redshift",s("lVsY5ZeT")),ace.config.setModuleUrl("ace/snippets/rhtml",s("HtaPVipB")),ace.config.setModuleUrl("ace/snippets/robot",s("n58JWpjf")),ace.config.setModuleUrl("ace/snippets/rst",s("EzVqlTg1")),ace.config.setModuleUrl("ace/snippets/ruby",s("MadJGpfj")),ace.config.setModuleUrl("ace/snippets/rust",s("Mwr+NElN")),ace.config.setModuleUrl("ace/snippets/sac",s("RXUjpE6h")),ace.config.setModuleUrl("ace/snippets/sass",s("FoeSoneJ")),ace.config.setModuleUrl("ace/snippets/scad",s("SBs1G66B")),ace.config.setModuleUrl("ace/snippets/scala",s("f6Heh59i")),ace.config.setModuleUrl("ace/snippets/scheme",s("EN487mEE")),ace.config.setModuleUrl("ace/snippets/scrypt",s("QKaXJArO")),ace.config.setModuleUrl("ace/snippets/scss",s("GqulFKAY")),ace.config.setModuleUrl("ace/snippets/sh",s("WsoryliH")),ace.config.setModuleUrl("ace/snippets/sjs",s("q1ieORLj")),ace.config.setModuleUrl("ace/snippets/slim",s("NrkbQkRf")),ace.config.setModuleUrl("ace/snippets/smarty",s("ZiEE8QSS")),ace.config.setModuleUrl("ace/snippets/smithy",s("9I46VFIs")),ace.config.setModuleUrl("ace/snippets/snippets",s("xPS261pY")),ace.config.setModuleUrl("ace/snippets/soy_template",s("4GlXurRv")),ace.config.setModuleUrl("ace/snippets/space",s("lHOJVCM1")),ace.config.setModuleUrl("ace/snippets/sparql",s("b/a/nMdg")),ace.config.setModuleUrl("ace/snippets/sql",s("CfvDPJNl")),ace.config.setModuleUrl("ace/snippets/sqlserver",s("CAV3BmUD")),ace.config.setModuleUrl("ace/snippets/stylus",s("hRQSEh0H")),ace.config.setModuleUrl("ace/snippets/svg",s("mHfIxAZ3")),ace.config.setModuleUrl("ace/snippets/swift",s("dmMAqt4A")),ace.config.setModuleUrl("ace/snippets/tcl",s("/Ur8doHf")),ace.config.setModuleUrl("ace/snippets/terraform",s("X6nXUfxm")),ace.config.setModuleUrl("ace/snippets/tex",s("OXFOFxv0")),ace.config.setModuleUrl("ace/snippets/text",s("TLoZpwCW")),ace.config.setModuleUrl("ace/snippets/textile",s("gv0ApP2p")),ace.config.setModuleUrl("ace/snippets/toml",s("OKSZ/QaQ")),ace.config.setModuleUrl("ace/snippets/tsx",s("uLfDbZqI")),ace.config.setModuleUrl("ace/snippets/turtle",s("S8h5mCt5")),ace.config.setModuleUrl("ace/snippets/twig",s("F/fWcFaE")),ace.config.setModuleUrl("ace/snippets/typescript",s("VM3ZlZcj")),ace.config.setModuleUrl("ace/snippets/vala",s("K3fci0JP")),ace.config.setModuleUrl("ace/snippets/vbscript",s("d72Ua0Uy")),ace.config.setModuleUrl("ace/snippets/velocity",s("awr1Em0A")),ace.config.setModuleUrl("ace/snippets/verilog",s("nzvD2jUB")),ace.config.setModuleUrl("ace/snippets/vhdl",s("1+B0wZP9")),ace.config.setModuleUrl("ace/snippets/visualforce",s("R6fCfMtF")),ace.config.setModuleUrl("ace/snippets/wollok",s("cE8EDZqE")),ace.config.setModuleUrl("ace/snippets/xml",s("VJc5aOjJ")),ace.config.setModuleUrl("ace/snippets/xquery",s("r4yf2FS1")),ace.config.setModuleUrl("ace/snippets/yaml",s("M9wr4wKr")),ace.config.setModuleUrl("ace/snippets/zeek",s("c1/Hszs9"))},"y57+zKqG":h=>{var L=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},s=-1,R=1,E=0;L.Diff=function(_,m){return[_,m]},L.prototype.diff_main=function(_,m,b,g){typeof g>"u"&&(this.Diff_Timeout<=0?g=Number.MAX_VALUE:g=new Date().getTime()+this.Diff_Timeout*1e3);var a=g;if(_==null||m==null)throw new Error("Null input. (diff_main)");if(_==m)return _?[new L.Diff(E,_)]:[];typeof b>"u"&&(b=!0);var l=b,e=this.diff_commonPrefix(_,m),i=_.substring(0,e);_=_.substring(e),m=m.substring(e),e=this.diff_commonSuffix(_,m);var n=_.substring(_.length-e);_=_.substring(0,_.length-e),m=m.substring(0,m.length-e);var t=this.diff_compute_(_,m,l,a);return i&&t.unshift(new L.Diff(E,i)),n&&t.push(new L.Diff(E,n)),this.diff_cleanupMerge(t),t},L.prototype.diff_compute_=function(_,m,b,g){var a;if(!_)return[new L.Diff(R,m)];if(!m)return[new L.Diff(s,_)];var l=_.length>m.length?_:m,e=_.length>m.length?m:_,i=l.indexOf(e);if(i!=-1)return a=[new L.Diff(R,l.substring(0,i)),new L.Diff(E,e),new L.Diff(R,l.substring(i+e.length))],_.length>m.length&&(a[0][0]=a[2][0]=s),a;if(e.length==1)return[new L.Diff(s,_),new L.Diff(R,m)];var n=this.diff_halfMatch_(_,m);if(n){var t=n[0],r=n[1],o=n[2],c=n[3],d=n[4],p=this.diff_main(t,o,b,g),x=this.diff_main(r,c,b,g);return p.concat([new L.Diff(E,d)],x)}return b&&_.length>100&&m.length>100?this.diff_lineMode_(_,m,g):this.diff_bisect_(_,m,g)},L.prototype.diff_lineMode_=function(_,m,b){var g=this.diff_linesToChars_(_,m);_=g.chars1,m=g.chars2;var a=g.lineArray,l=this.diff_main(_,m,!1,b);this.diff_charsToLines_(l,a),this.diff_cleanupSemantic(l),l.push(new L.Diff(E,""));for(var e=0,i=0,n=0,t="",r="";e=1&&n>=1){l.splice(e-i-n,i+n),e=e-i-n;for(var o=this.diff_main(t,r,!1,b),c=o.length-1;c>=0;c--)l.splice(e,0,o[c]);e=e+o.length}n=0,i=0,t="",r="";break}e++}return l.pop(),l},L.prototype.diff_bisect_=function(_,m,b){for(var g=_.length,a=m.length,l=Math.ceil((g+a)/2),e=l,i=2*l,n=new Array(i),t=new Array(i),r=0;rb);k++){for(var M=-k+d;M<=k-p;M+=2){var v=e+M,S;M==-k||M!=k&&n[v-1]g)p+=2;else if(A>a)d+=2;else if(c){var $=e+o-M;if($>=0&&$=u)return this.diff_bisectSplit_(_,m,S,A,b)}}}for(var f=-k+x;f<=k-y;f+=2){var $=e+f,u;f==-k||f!=k&&t[$-1]g)y+=2;else if(w>a)x+=2;else if(!c){var v=e+o-f;if(v>=0&&v=u)return this.diff_bisectSplit_(_,m,S,A,b)}}}}return[new L.Diff(s,_),new L.Diff(R,m)]},L.prototype.diff_bisectSplit_=function(_,m,b,g,a){var l=_.substring(0,b),e=m.substring(0,g),i=_.substring(b),n=m.substring(g),t=this.diff_main(l,e,!1,a),r=this.diff_main(i,n,!1,a);return t.concat(r)},L.prototype.diff_linesToChars_=function(_,m){var b=[],g={};b[0]="";function a(n){for(var t="",r=0,o=-1,c=b.length;og?_=_.substring(b-g):bm.length?_:m,g=_.length>m.length?m:_;if(b.length<4||g.length*2=p.length?[S,A,$,u,v]:null}var e=l(b,g,Math.ceil(b.length/4)),i=l(b,g,Math.ceil(b.length/2)),n;if(!e&&!i)return null;i?e?n=e[4].length>i[4].length?e:i:n=i:n=e;var t,r,o,c;_.length>m.length?(t=n[0],r=n[1],o=n[2],c=n[3]):(o=n[0],c=n[1],t=n[2],r=n[3]);var d=n[4];return[t,r,o,c,d]},L.prototype.diff_cleanupSemantic=function(_){for(var m=!1,b=[],g=0,a=null,l=0,e=0,i=0,n=0,t=0;l<_.length;)_[l][0]==E?(b[g++]=l,e=n,i=t,n=0,t=0,a=_[l][1]):(_[l][0]==R?n+=_[l][1].length:t+=_[l][1].length,a&&a.length<=Math.max(e,i)&&a.length<=Math.max(n,t)&&(_.splice(b[g-1],0,new L.Diff(s,a)),_[b[g-1]+1][0]=R,g--,g--,l=g>0?b[g-1]:-1,e=0,i=0,n=0,t=0,a=null,m=!0)),l++;for(m&&this.diff_cleanupMerge(_),this.diff_cleanupSemanticLossless(_),l=1;l<_.length;){if(_[l-1][0]==s&&_[l][0]==R){var r=_[l-1][1],o=_[l][1],c=this.diff_commonOverlap_(r,o),d=this.diff_commonOverlap_(o,r);c>=d?(c>=r.length/2||c>=o.length/2)&&(_.splice(l,0,new L.Diff(E,o.substring(0,c))),_[l-1][1]=r.substring(0,r.length-c),_[l+1][1]=o.substring(c),l++):(d>=r.length/2||d>=o.length/2)&&(_.splice(l,0,new L.Diff(E,r.substring(0,d))),_[l-1][0]=R,_[l-1][1]=o.substring(0,o.length-d),_[l+1][0]=s,_[l+1][1]=r.substring(d),l++),l++}l++}},L.prototype.diff_cleanupSemanticLossless=function(_){function m(d,p){if(!d||!p)return 6;var x=d.charAt(d.length-1),y=p.charAt(0),k=x.match(L.nonAlphaNumericRegex_),M=y.match(L.nonAlphaNumericRegex_),v=k&&x.match(L.whitespaceRegex_),S=M&&y.match(L.whitespaceRegex_),A=v&&x.match(L.linebreakRegex_),$=S&&y.match(L.linebreakRegex_),u=A&&d.match(L.blanklineEndRegex_),f=$&&p.match(L.blanklineStartRegex_);return u||f?5:A||$?4:k&&!v&&S?3:v||S?2:k||M?1:0}for(var b=1;b<_.length-1;){if(_[b-1][0]==E&&_[b+1][0]==E){var g=_[b-1][1],a=_[b][1],l=_[b+1][1],e=this.diff_commonSuffix(g,a);if(e){var i=a.substring(a.length-e);g=g.substring(0,g.length-e),a=i+a.substring(0,a.length-e),l=i+l}for(var n=g,t=a,r=l,o=m(g,a)+m(a,l);a.charAt(0)===l.charAt(0);){g+=a.charAt(0),a=a.substring(1)+l.charAt(0),l=l.substring(1);var c=m(g,a)+m(a,l);c>=o&&(o=c,n=g,t=a,r=l)}_[b-1][1]!=n&&(n?_[b-1][1]=n:(_.splice(b-1,1),b--),_[b][1]=t,r?_[b+1][1]=r:(_.splice(b+1,1),b--))}b++}},L.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,L.whitespaceRegex_=/\s/,L.linebreakRegex_=/[\r\n]/,L.blanklineEndRegex_=/\n\r?\n$/,L.blanklineStartRegex_=/^\r?\n\r?\n/,L.prototype.diff_cleanupEfficiency=function(_){for(var m=!1,b=[],g=0,a=null,l=0,e=!1,i=!1,n=!1,t=!1;l<_.length;)_[l][0]==E?(_[l][1].length0?b[g-1]:-1,n=t=!1),m=!0)),l++;m&&this.diff_cleanupMerge(_)},L.prototype.diff_cleanupMerge=function(_){_.push(new L.Diff(E,""));for(var m=0,b=0,g=0,a="",l="",e;m<_.length;)switch(_[m][0]){case R:g++,l+=_[m][1],m++;break;case s:b++,a+=_[m][1],m++;break;case E:b+g>1?(b!==0&&g!==0&&(e=this.diff_commonPrefix(l,a),e!==0&&(m-b-g>0&&_[m-b-g-1][0]==E?_[m-b-g-1][1]+=l.substring(0,e):(_.splice(0,0,new L.Diff(E,l.substring(0,e))),m++),l=l.substring(e),a=a.substring(e)),e=this.diff_commonSuffix(l,a),e!==0&&(_[m][1]=l.substring(l.length-e)+_[m][1],l=l.substring(0,l.length-e),a=a.substring(0,a.length-e))),m-=b+g,_.splice(m,b+g),a.length&&(_.splice(m,0,new L.Diff(s,a)),m++),l.length&&(_.splice(m,0,new L.Diff(R,l)),m++),m++):m!==0&&_[m-1][0]==E?(_[m-1][1]+=_[m][1],_.splice(m,1)):m++,g=0,b=0,a="",l="";break}_[_.length-1][1]===""&&_.pop();var i=!1;for(m=1;m<_.length-1;)_[m-1][0]==E&&_[m+1][0]==E&&(_[m][1].substring(_[m][1].length-_[m-1][1].length)==_[m-1][1]?(_[m][1]=_[m-1][1]+_[m][1].substring(0,_[m][1].length-_[m-1][1].length),_[m+1][1]=_[m-1][1]+_[m+1][1],_.splice(m-1,1),i=!0):_[m][1].substring(0,_[m+1][1].length)==_[m+1][1]&&(_[m-1][1]+=_[m+1][1],_[m][1]=_[m][1].substring(_[m+1][1].length)+_[m+1][1],_.splice(m+1,1),i=!0)),m++;i&&this.diff_cleanupMerge(_)},L.prototype.diff_xIndex=function(_,m){var b=0,g=0,a=0,l=0,e;for(e=0;e<_.length&&(_[e][0]!==R&&(b+=_[e][1].length),_[e][0]!==s&&(g+=_[e][1].length),!(b>m));e++)a=b,l=g;return _.length!=e&&_[e][0]===s?l:l+(m-a)},L.prototype.diff_prettyHtml=function(_){for(var m=[],b=/&/g,g=//g,l=/\n/g,e=0;e<_.length;e++){var i=_[e][0],n=_[e][1],t=n.replace(b,"&").replace(g,"<").replace(a,">").replace(l,"¶
");switch(i){case R:m[e]=''+t+"";break;case s:m[e]=''+t+"";break;case E:m[e]=""+t+"";break}}return m.join("")},L.prototype.diff_text1=function(_){for(var m=[],b=0;b<_.length;b++)_[b][0]!==R&&(m[b]=_[b][1]);return m.join("")},L.prototype.diff_text2=function(_){for(var m=[],b=0;b<_.length;b++)_[b][0]!==s&&(m[b]=_[b][1]);return m.join("")},L.prototype.diff_levenshtein=function(_){for(var m=0,b=0,g=0,a=0;a<_.length;a++){var l=_[a][0],e=_[a][1];switch(l){case R:b+=e.length;break;case s:g+=e.length;break;case E:m+=Math.max(b,g),b=0,g=0;break}}return m+=Math.max(b,g),m},L.prototype.diff_toDelta=function(_){for(var m=[],b=0;b<_.length;b++)switch(_[b][0]){case R:m[b]="+"+encodeURI(_[b][1]);break;case s:m[b]="-"+_[b][1].length;break;case E:m[b]="="+_[b][1].length;break}return m.join(" ").replace(/%20/g," ")},L.prototype.diff_fromDelta=function(_,m){for(var b=[],g=0,a=0,l=m.split(/\t/g),e=0;ethis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var g=this.match_alphabet_(m),a=this;function l(S,A){var $=S/m.length,u=Math.abs(b-A);return a.Match_Distance?$+u/a.Match_Distance:u?1:$}var e=this.Match_Threshold,i=_.indexOf(m,b);i!=-1&&(e=Math.min(l(0,i),e),i=_.lastIndexOf(m,b+m.length),i!=-1&&(e=Math.min(l(0,i),e)));var n=1<=p;k--){var M=g[_.charAt(k-1)];if(d===0?y[k]=(y[k+1]<<1|1)&M:y[k]=(y[k+1]<<1|1)&M|((c[k+1]|c[k])<<1|1)|c[k+1],y[k]&n){var v=l(d,k-1);if(v<=e)if(e=v,i=k-1,i>b)p=Math.max(1,2*b-i);else break}}if(l(d+1,b)>e)break;c=y}return i},L.prototype.match_alphabet_=function(_){for(var m={},b=0;b<_.length;b++)m[_.charAt(b)]=0;for(var b=0;b<_.length;b++)m[_.charAt(b)]|=1<<_.length-b-1;return m},L.prototype.patch_addContext_=function(_,m){if(m.length!=0){if(_.start2===null)throw Error("patch not initialized");for(var b=m.substring(_.start2,_.start2+_.length1),g=0;m.indexOf(b)!=m.lastIndexOf(b)&&b.length"u")g=_,a=this.diff_main(g,m,!0),a.length>2&&(this.diff_cleanupSemantic(a),this.diff_cleanupEfficiency(a));else if(_&&typeof _=="object"&&typeof m>"u"&&typeof b>"u")a=_,g=this.diff_text1(a);else if(typeof _=="string"&&m&&typeof m=="object"&&typeof b>"u")g=_,a=m;else if(typeof _=="string"&&typeof m=="string"&&b&&typeof b=="object")g=_,a=b;else throw new Error("Unknown call format to patch_make.");if(a.length===0)return[];for(var l=[],e=new L.patch_obj,i=0,n=0,t=0,r=g,o=g,c=0;c=2*this.Patch_Margin&&i&&(this.patch_addContext_(e,r),l.push(e),e=new L.patch_obj,i=0,r=o,n=t);break}d!==R&&(n+=p.length),d!==s&&(t+=p.length)}return i&&(this.patch_addContext_(e,r),l.push(e)),l},L.prototype.patch_deepCopy=function(_){for(var m=[],b=0;b<_.length;b++){var g=_[b],a=new L.patch_obj;a.diffs=[];for(var l=0;lthis.Match_MaxBits?(n=this.match_main(m,i.substring(0,this.Match_MaxBits),e),n!=-1&&(t=this.match_main(m,i.substring(i.length-this.Match_MaxBits),e+i.length-this.Match_MaxBits),(t==-1||n>=t)&&(n=-1))):n=this.match_main(m,i,e),n==-1)a[l]=!1,g-=_[l].length2-_[l].length1;else{a[l]=!0,g=n-e;var r;if(t==-1?r=m.substring(n,n+i.length):r=m.substring(n,t+this.Match_MaxBits),i==r)m=m.substring(0,n)+this.diff_text2(_[l].diffs)+m.substring(n+i.length);else{var o=this.diff_main(i,r,!1);if(i.length>this.Match_MaxBits&&this.diff_levenshtein(o)/i.length>this.Patch_DeleteThreshold)a[l]=!1;else{this.diff_cleanupSemanticLossless(o);for(var c=0,d,p=0;p<_[l].diffs.length;p++){var x=_[l].diffs[p];x[0]!==E&&(d=this.diff_xIndex(o,c)),x[0]===R?m=m.substring(0,n+d)+x[1]+m.substring(n+d):x[0]===s&&(m=m.substring(0,n+d)+m.substring(n+this.diff_xIndex(o,c+x[1].length))),x[0]!==s&&(c+=x[1].length)}}}}}return m=m.substring(b.length,m.length-b.length),[m,a]},L.prototype.patch_addPadding=function(_){for(var m=this.Patch_Margin,b="",g=1;g<=m;g++)b+=String.fromCharCode(g);for(var g=0;g<_.length;g++)_[g].start1+=m,_[g].start2+=m;var a=_[0],l=a.diffs;if(l.length==0||l[0][0]!=E)l.unshift(new L.Diff(E,b)),a.start1-=m,a.start2-=m,a.length1+=m,a.length2+=m;else if(m>l[0][1].length){var e=m-l[0][1].length;l[0][1]=b.substring(l[0][1].length)+l[0][1],a.start1-=e,a.start2-=e,a.length1+=e,a.length2+=e}if(a=_[_.length-1],l=a.diffs,l.length==0||l[l.length-1][0]!=E)l.push(new L.Diff(E,b)),a.length1+=m,a.length2+=m;else if(m>l[l.length-1][1].length){var e=m-l[l.length-1][1].length;l[l.length-1][1]+=b.substring(0,e),a.length1+=e,a.length2+=e}return b},L.prototype.patch_splitMax=function(_){for(var m=this.Match_MaxBits,b=0;b<_.length;b++)if(!(_[b].length1<=m)){var g=_[b];_.splice(b--,1);for(var a=g.start1,l=g.start2,e="";g.diffs.length!==0;){var i=new L.patch_obj,n=!0;for(i.start1=a-e.length,i.start2=l-e.length,e!==""&&(i.length1=i.length2=e.length,i.diffs.push(new L.Diff(E,e)));g.diffs.length!==0&&i.length12*m?(i.length1+=r.length,a+=r.length,n=!1,i.diffs.push(new L.Diff(t,r)),g.diffs.shift()):(r=r.substring(0,m-i.length1-this.Patch_Margin),i.length1+=r.length,a+=r.length,t===E?(i.length2+=r.length,l+=r.length):n=!1,i.diffs.push(new L.Diff(t,r)),r==g.diffs[0][1]?g.diffs.shift():g.diffs[0][1]=g.diffs[0][1].substring(r.length))}e=this.diff_text2(i.diffs),e=e.substring(e.length-this.Patch_Margin);var o=this.diff_text1(g.diffs).substring(0,this.Patch_Margin);o!==""&&(i.length1+=o.length,i.length2+=o.length,i.diffs.length!==0&&i.diffs[i.diffs.length-1][0]===E?i.diffs[i.diffs.length-1][1]+=o:i.diffs.push(new L.Diff(E,o))),n||_.splice(++b,0,i)}}},L.prototype.patch_toText=function(_){for(var m=[],b=0;b<_.length;b++)m[b]=_[b];return m.join("")},L.prototype.patch_fromText=function(_){var m=[];if(!_)return m;for(var b=_.split(` `),g=0,a=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;g{h.exports=s.p+"852f0ecd7b17e3bfd700a821ff438f7e.js"},"B2w+iJaB":(h,L,s)=>{h.exports=s.p+"7d64980faff5b041a461fd0ba3e2f3f5.js"},wR0O36G8:(h,L,s)=>{h.exports=s.p+"8b8336037f074d9dcbd20eab535b803f.js"},mHIQJwee:(h,L,s)=>{h.exports=s.p+"17a63c96eb9a52f5847f13d40801a937.js"},IiPcyGu1:(h,L,s)=>{h.exports=s.p+"c530988d2b1966fd10a4d99fa3877e1b.js"},PN3wrz79:(h,L,s)=>{h.exports=s.p+"2fe2904fc024afaf81732563cb83e547.js"},fiOGeUQO:(h,L,s)=>{h.exports=s.p+"5c84e28b79a13688792139cf8ef0afbd.js"},JvCZCupa:(h,L,s)=>{h.exports=s.p+"cfe1a9dd61dd943a574fc6c7157372f7.js"},cljE5Yi3:(h,L,s)=>{h.exports=s.p+"fa2a51840478b6cc4fc8ccbcc36d3e83.js"},EVIIvNP1:(h,L,s)=>{h.exports=s.p+"fec23c6964d6cf25681d1f3e24b076a4.js"},"oIN3Y9Y+":(h,L,s)=>{h.exports=s.p+"4135e96afff2a6a76773cd7ccd0ebd7f.js"},"q+fHRtOx":(h,L,s)=>{h.exports=s.p+"17228e9d98dbacfdc6c18af0509eb839.js"},QypEdsZr:(h,L,s)=>{h.exports=s.p+"a80419f9c3febe3a5c13051df62f6737.js"},"N8a/s2JS":(h,L,s)=>{h.exports=s.p+"07567125b93045706d81f17f7d04e262.js"},nurdQOvO:(h,L,s)=>{h.exports=s.p+"34501398c7c07f9c3bbac23939b364e2.js"},rwFhBhnm:(h,L,s)=>{h.exports=s.p+"add601e3bc4b668e95f2c976bd6dfd1b.js"},"5gaeSbfJ":(h,L,s)=>{h.exports=s.p+"2f55cddc8eb85b63ee5b4ce0e5488230.js"},rhwaacp8:(h,L,s)=>{h.exports=s.p+"6f77d1c97d1c6937d21c4a1034be62b6.js"},RSbUIhpb:(h,L,s)=>{h.exports=s.p+"50f4ea8c16517e482db8d3d3588b99d6.js"},LMJK8O2y:(h,L,s)=>{h.exports=s.p+"d0415105402964718010284fcfa8b2ea.js"},dgljeUWr:(h,L,s)=>{h.exports=s.p+"645b74a0625033669c9d0440b32e3fd0.js"},WgBn9RKV:(h,L,s)=>{h.exports=s.p+"16b5146f5e9b7a1a196f6d11a6187282.js"},AxyJJlvS:(h,L,s)=>{h.exports=s.p+"2f25a4dc442bc9aebc58cae30c50c3e2.js"},RCyuP6sI:(h,L,s)=>{h.exports=s.p+"93b5186e225380c3e006a764ad08c7f6.js"},"0EoOxFjP":(h,L,s)=>{h.exports=s.p+"3b02cca9e95276a74f3ed2bbc7a64ce6.js"},"JI23s+Ew":(h,L,s)=>{h.exports=s.p+"c1ef58663e7326fe623bed35be305efd.js"},NFKPcVdi:(h,L,s)=>{h.exports=s.p+"8fa2dead80e1f4956c4c5c868ebb0b81.js"},f9Q7KjhE:(h,L,s)=>{h.exports=s.p+"fb08407a1b7ad7f9a2da2a7845f596c5.js"},XhiZ6TMh:(h,L,s)=>{h.exports=s.p+"bf37de323316c6ae5745fc11fd576b1c.js"},"Mb+SRHbE":(h,L,s)=>{h.exports=s.p+"875ae58e8015a6d08dbc9d0c04e24638.js"},rgV7qPh1:(h,L,s)=>{h.exports=s.p+"392e4c8d74cb1c9267a14eb0270ba2d6.js"},"7ywyViGB":(h,L,s)=>{h.exports=s.p+"d4f1a314cb3668f8e17f24bccf0229b6.js"},aRDpmiz3:(h,L,s)=>{h.exports=s.p+"39fea85ed7dd99d7c6c9e59b7040523f.js"},"3z+10Qww":(h,L,s)=>{h.exports=s.p+"686915e134683f72ea5f3c227a6f13be.js"},zDUw687c:(h,L,s)=>{h.exports=s.p+"2611b2dc99534665bf6734ddfa6b8de4.js"},ZA5bJL04:(h,L,s)=>{h.exports=s.p+"cd29b6e52c3ebcbaee8c7bb709fd1d8e.js"},UJ5VeWm1:(h,L,s)=>{h.exports=s.p+"0b06cbc7edf78b6f2810187262e7630b.js"},AjKEyyw0:(h,L,s)=>{h.exports=s.p+"d3a6de3a3eae748464b9d49001eba546.js"},RoY3kljj:(h,L,s)=>{h.exports=s.p+"a6b8f5b8c9ce7808c5ca6baccdf1ad1e.js"},bbSMiwHX:(h,L,s)=>{h.exports=s.p+"fa0c561bb37040fc8145e5c70ea64912.js"},"6gW+mNVp":(h,L,s)=>{h.exports=s.p+"4b692785a8a6340a89e6067274a7583c.js"},CGG2B4Nh:(h,L,s)=>{h.exports=s.p+"5cab33610b8d9c1aee4db4672811cb5f.js"},dcyoWKsu:(h,L,s)=>{h.exports=s.p+"02b97d3c4a7e895228beec69fb63e420.js"},B4nyWlQE:(h,L,s)=>{h.exports=s.p+"efbb5510bc35424b261de45355e3a626.js"},"39kRP7Gz":(h,L,s)=>{h.exports=s.p+"92164e5d714ab4cda2b91eede29bc191.js"},"9l0XtChj":(h,L,s)=>{h.exports=s.p+"5061ac5e99882b9f26051a5d73c75271.js"},cEnPwFgi:(h,L,s)=>{h.exports=s.p+"a72ec8ab4a5bdfd6695dfa5fa86ef30d.js"},TsGWTwOG:(h,L,s)=>{h.exports=s.p+"3a3b2fef963d6c2c49c5b11b74a9ea81.js"},WhVMIyF3:(h,L,s)=>{h.exports=s.p+"618331e839ffc9634fd1deb48990ce04.js"},"rwT/30E5":(h,L,s)=>{h.exports=s.p+"8f8ce96f0f6ce8d8a30d5f2dcb4eca76.js"},l65YTBe6:(h,L,s)=>{h.exports=s.p+"039ae6f160cd9781bcbb003484e23cdc.js"},"69el5XK7":(h,L,s)=>{h.exports=s.p+"d990538e9bb18371ca4e54a043b544a3.js"},ItHIJ0eS:(h,L,s)=>{h.exports=s.p+"2184bcd361a0e38d249bc49439d994cb.js"},ZEwA1jXv:(h,L,s)=>{h.exports=s.p+"b992b348ffb6453e4a02a60e71c5304e.js"},c3lQ44gr:(h,L,s)=>{h.exports=s.p+"9b80d1a12acd18c90e41ca92073122a7.js"},Zy5PLfu2:(h,L,s)=>{h.exports=s.p+"3564e45dfb2ed064007f910db434889f.js"},tB02ZMrV:(h,L,s)=>{h.exports=s.p+"143badb617ec88ad7fe2e10e091246be.js"},"UtAR/Nnz":(h,L,s)=>{h.exports=s.p+"ab3d46f8dd12e29e10eb35c5e406bbcb.js"},pp9hmRmR:(h,L,s)=>{h.exports=s.p+"d72f9e2d15bf7a51a613e2f116b1a2df.js"},TtEonQ3c:(h,L,s)=>{h.exports=s.p+"43139bfbcbce9de597b4985dc1e6a03b.js"},FvzVfDpQ:(h,L,s)=>{h.exports=s.p+"d53696b89662b28451668075257ef676.js"},ZcBizuvF:(h,L,s)=>{h.exports=s.p+"8b0e5da82a1aa923f454ee2e6568850b.js"},"FFRdY6+R":(h,L,s)=>{h.exports=s.p+"474c86d7a4a0fa50030c6503fdb52392.js"},s2J4aKZl:(h,L,s)=>{h.exports=s.p+"cd88309c904c403022c51d1fa3ee4bf3.js"},"qk+K9Bzw":(h,L,s)=>{h.exports=s.p+"3063479c31202a0d1ecf707b2a4ce742.js"},Y06WGWj3:(h,L,s)=>{h.exports=s.p+"2adc6bc4a8a2bf35636e8fc7fe0df2dd.js"},"fdM/w1OY":(h,L,s)=>{h.exports=s.p+"0744e134f3a2272433b18bc05c08b3ce.js"},gW8wQhfm:(h,L,s)=>{h.exports=s.p+"277128dcbc226dfeb8fde9391fb24787.js"},"4DcnL6V3":(h,L,s)=>{h.exports=s.p+"e0fa6a4fe8bff90d50ce812e666957ca.js"},"Q/osO92v":(h,L,s)=>{h.exports=s.p+"262f489eb59166e1215642b60446d123.js"},wRYuiDPf:(h,L,s)=>{h.exports=s.p+"10c464f3f882bfeeefbc0934c2ee9fbe.js"},w9bn3WmC:(h,L,s)=>{h.exports=s.p+"19017707f34649cae551ee9d5ea1edbf.js"},"CvT/dj26":(h,L,s)=>{h.exports=s.p+"135747176621bcc94e9edd0323a81d3c.js"},"f+ZChAbB":(h,L,s)=>{h.exports=s.p+"111d9fdb9864abba36298d1a0807fe6d.js"},aSNr9qDC:(h,L,s)=>{h.exports=s.p+"569511c9ae26db72043c2c03e327e25a.js"},"G+KEVL1w":(h,L,s)=>{h.exports=s.p+"ac12519ccf3cc323b28f70e35f922e3f.js"},m2hyIYI9:(h,L,s)=>{h.exports=s.p+"410ecb602443afbd5908a14f39b40eb2.js"},oIWYaTpo:(h,L,s)=>{h.exports=s.p+"73cdbb2580cd6a02d989c86e56bb83f3.js"},XZoIdHs0:(h,L,s)=>{h.exports=s.p+"919edf70e532c72ecd4b9579c1879bc2.js"},ROcMGP6M:(h,L,s)=>{h.exports=s.p+"7c1465680d800e79f40ae230486fbfa2.js"},BS7OfPZr:(h,L,s)=>{h.exports=s.p+"945ea249c1f1d3595cc55a51046d9032.js"},gTxcyPlx:(h,L,s)=>{h.exports=s.p+"363d3bac8dcd9a83332c3758185ce080.js"},"5wuiXJtp":(h,L,s)=>{h.exports=s.p+"a13672111ba811108733a460e64b3cc7.js"},"8sUpSktc":(h,L,s)=>{h.exports=s.p+"12f1dfe288cde1fda28776dbc2b17abe.js"},E2WBvs6p:(h,L,s)=>{h.exports=s.p+"23a7e00e9d25d2fe13bfc976b043c822.js"},eWkduJug:(h,L,s)=>{h.exports=s.p+"5df362c9904925cdf574d9506e4be76d.js"},"lpf+oj3p":(h,L,s)=>{h.exports=s.p+"5f8e9f09349e37425d6ef96bf1bf7a2d.js"},"q+kd1DVF":(h,L,s)=>{h.exports=s.p+"979239ac9b74c2c57dcc2b66e7e3b353.js"},VoHmqoAv:(h,L,s)=>{h.exports=s.p+"83bd353f98aa901411c82b8af58d1296.js"},"69/8WEWc":(h,L,s)=>{h.exports=s.p+"0b95786af26cd3ab1e48fefe4d86f8ff.js"},sVY7IdRA:(h,L,s)=>{h.exports=s.p+"3dcdddc1bbf039f788587e60dad5e803.js"},GdNCG2Ac:(h,L,s)=>{h.exports=s.p+"bfe05c994b2f6c651b9f4539040ec9f6.js"},Qsb02umC:(h,L,s)=>{h.exports=s.p+"4d156ee0485ab4b40b090a3cd7b995a9.js"},MbwhKzfE:(h,L,s)=>{h.exports=s.p+"3a6ca6958d003ae67bb7fefc8713ee93.js"},"82G3Eh7o":(h,L,s)=>{h.exports=s.p+"54a7b0b5248e428a4a703329f36e286f.js"},BWVg9xUM:(h,L,s)=>{h.exports=s.p+"5b2b9bc695bfdee92665388010a7e74d.js"},"5jJQfH1G":(h,L,s)=>{h.exports=s.p+"88c5669303ea9c7b7c172b45a6ea365d.js"},SKNPrvj3:(h,L,s)=>{h.exports=s.p+"9af9f6ab9ea0f04d01c2e1e763321896.js"},"W+rRzPQ3":(h,L,s)=>{h.exports=s.p+"e108a13b172b5c56559c22abebca953d.js"},slnLcnPv:(h,L,s)=>{h.exports=s.p+"99e41196ce05ad5fb70891b44ac227e8.js"},"S/S+XPbm":(h,L,s)=>{h.exports=s.p+"4816d92f4fbed14925ed1946f4135365.js"},"4Ofed9nk":(h,L,s)=>{h.exports=s.p+"6257c20a623b032171b358cc95a1adab.js"},"2YivyU24":(h,L,s)=>{h.exports=s.p+"d8f7ecdd496f3caf14f5afbedfff1937.js"},QT2u3ERV:(h,L,s)=>{h.exports=s.p+"32398e706069c4b609b5cfa872917ebf.js"},wOeE8qtP:(h,L,s)=>{h.exports=s.p+"a4e021a4b5d5d65cc87fee17c1886c3f.js"},Ko8nu1IK:(h,L,s)=>{h.exports=s.p+"023545291c7d55eb893591da836fc73d.js"},"4lxwVSe7":(h,L,s)=>{h.exports=s.p+"349237ad9565dc823ce7bcb7527ba7ee.js"},wuE3nUfE:(h,L,s)=>{h.exports=s.p+"6707296f86034ccf2225ce3c27370114.js"},KilHDkrb:(h,L,s)=>{h.exports=s.p+"a223748cd69094dd12b486353b22f479.js"},dSNjqeYx:(h,L,s)=>{h.exports=s.p+"c55e18724e8d0ebe8f36663b5670daa6.js"},"9s0zGrJC":(h,L,s)=>{h.exports=s.p+"bba393726b199f66d8b4314385c1f2f0.js"},lKxe9i7C:(h,L,s)=>{h.exports=s.p+"881f6cf1f1cc12ab4dd3fd59db5c7463.js"},RhDfJIvJ:(h,L,s)=>{h.exports=s.p+"c3174a46927bbec0fbd8946f97bd7170.js"},MetX2Z6a:(h,L,s)=>{h.exports=s.p+"2ad349208b3a727abb3c9f943865a27c.js"},WIs0ZCRn:(h,L,s)=>{h.exports=s.p+"b491027881efabe4493ad65daf3368de.js"},lPOXAEYo:(h,L,s)=>{h.exports=s.p+"d1f0ad8ca2a550bc292669b06a614f79.js"},Lj7y0Iiv:(h,L,s)=>{h.exports=s.p+"ad88ef07c8c702b1a5f1e3d19c1052c7.js"},m9gbmgpX:(h,L,s)=>{h.exports=s.p+"e45a0dfd102b67ad7cdefe10500bf0d7.js"},"y+2Cak43":(h,L,s)=>{h.exports=s.p+"81884a9c7ebd1cb85032157dd8438f7f.js"},"IPW/J58z":(h,L,s)=>{h.exports=s.p+"50bd9a652785963a5d7d24bda4dee4ca.js"},"8UDn0fo/":(h,L,s)=>{h.exports=s.p+"08d12eee2127dc573b757f69752c6704.js"},MaW1rtmX:(h,L,s)=>{h.exports=s.p+"3ded48057576a99dfdea14f1f7f7e022.js"},"6DPeZKoT":(h,L,s)=>{h.exports=s.p+"9a73a8c225dc6db280e2ca2429a93a42.js"},WJdO7a6x:(h,L,s)=>{h.exports=s.p+"b943c561d9e064f79f938275bad6e597.js"},"Ryv5Hs/0":(h,L,s)=>{h.exports=s.p+"52fd09d1713345d9ee64dc7daea9fd6f.js"},b3jIjWsp:(h,L,s)=>{h.exports=s.p+"d1db2c4677dd2ee7a0c690c58798a013.js"},g8PbnK2I:(h,L,s)=>{h.exports=s.p+"116d29a13f16f0a9bf9c25eaa2186c24.js"},"7xtVVdF8":(h,L,s)=>{h.exports=s.p+"55a1830305eaf8f525aad4c04c138483.js"},Sz82cEdf:(h,L,s)=>{h.exports=s.p+"4f683c6881e9f8740f5516a85b9eb9da.js"},kRVSeld2:(h,L,s)=>{h.exports=s.p+"6231f0100394f756aac18e8d972d8f2b.js"},YcAgQIDi:(h,L,s)=>{h.exports=s.p+"c4bc14809712037bf601bf7914d57732.js"},WzplMpNk:(h,L,s)=>{h.exports=s.p+"4d6d9020e7e5c8d8dee7a5e374355f05.js"},"cEkhK+AE":(h,L,s)=>{h.exports=s.p+"4430c55f023b72fb5e389cee9351b38c.js"},YmftNx5B:(h,L,s)=>{h.exports=s.p+"d723acafb30584c955c9aeaedb3e03f0.js"},yRL3jNDK:(h,L,s)=>{h.exports=s.p+"9b3441051d8551264ac58b36253b9b10.js"},t8wWwN0E:(h,L,s)=>{h.exports=s.p+"f6a253f43d28d4415f29bc935788acec.js"},"Jo2d/QyO":(h,L,s)=>{h.exports=s.p+"154e51d48e7dc7f244bf748e4deb64f9.js"},"O+MHPI4B":(h,L,s)=>{h.exports=s.p+"8de1f09307a99c5a8bb0a53d32fbaaa9.js"},EmkkcrGA:(h,L,s)=>{h.exports=s.p+"8cfffdd2f772eec8342fdfc4d511e0cc.js"},UN69KoiI:(h,L,s)=>{h.exports=s.p+"df350f726187b69bcededaaed6cf5f31.js"},XDChci5t:(h,L,s)=>{h.exports=s.p+"b8cb123e6c753c6031ab9c6a4acbbcd6.js"},gzGSqjXe:(h,L,s)=>{h.exports=s.p+"05edc16945dbd5dbfc620a42a1da296a.js"},"3LFiePQv":(h,L,s)=>{h.exports=s.p+"a417705ba6c66b21ec2bd80fdd92e18b.js"},OffvJTpV:(h,L,s)=>{h.exports=s.p+"c45770f9271b832767411fbb272dceab.js"},YrxQQ9ic:(h,L,s)=>{h.exports=s.p+"764b59bdd3a89e14f88c9d63020551a1.js"},P5Du0AOV:(h,L,s)=>{h.exports=s.p+"843c762c24f7fac628d8c62519a7b308.js"},"BHNJPC/F":(h,L,s)=>{h.exports=s.p+"0d9ac3f6468082360311da967190e45f.js"},gQFTgoKh:(h,L,s)=>{h.exports=s.p+"f5dfa3d3658fddbce84d7c3ecd5504f0.js"},cIA33Uux:(h,L,s)=>{h.exports=s.p+"7f9a9efc9ab681fcbf6400e2adb368a9.js"},nvxbpDjX:(h,L,s)=>{h.exports=s.p+"23602ad4c88f0f19e7a0a12454ebf556.js"},Cv9D60U9:(h,L,s)=>{h.exports=s.p+"7f79d4bde67c8013b187889b63e25bce.js"},z787h9SV:(h,L,s)=>{h.exports=s.p+"0144de97a3c256f81447e7e7135780e5.js"},JIzEQQOP:(h,L,s)=>{h.exports=s.p+"9296988a753e8e251ff627aef2c929e8.js"},eB2Xyp6Q:(h,L,s)=>{h.exports=s.p+"56ddbe1e119db3c02da97dc04012cf2b.js"},cZexJJJu:(h,L,s)=>{h.exports=s.p+"3feee6e20769581f2314934a02076628.js"},D7IIxazi:(h,L,s)=>{h.exports=s.p+"250c230f9465d8affc02c67d41d7e067.js"},"37Ne+x1b":(h,L,s)=>{h.exports=s.p+"ff9176b28afa428194276840d85679ef.js"},V3IcoNW6:(h,L,s)=>{h.exports=s.p+"938b32f75aefeab50ba608132c5862c8.js"},"+GyvnhH0":(h,L,s)=>{h.exports=s.p+"fe45964855df0cb454236065377aeb1d.js"},wnJQvwxJ:(h,L,s)=>{h.exports=s.p+"f59696ab0f6f26c339d7e6bb1d73a5c3.js"},"5M3QnVF8":(h,L,s)=>{h.exports=s.p+"5cd4e1282f4409600b942819b7aa4f21.js"},uMJskZWQ:(h,L,s)=>{h.exports=s.p+"151786e5421aae5a57d862be1387a079.js"},jGoRnk1m:(h,L,s)=>{h.exports=s.p+"66600f875f233c58caa5f140c08958fb.js"},R3UaiYdG:(h,L,s)=>{h.exports=s.p+"11e3a2a8fb5bcb9d19298a80cafd3f5a.js"},"+21qgRUW":(h,L,s)=>{h.exports=s.p+"0973bb38b2e3efd2a879fd8e81d50fce.js"},"rui/SuoT":(h,L,s)=>{h.exports=s.p+"b49ae09a10a2a2d6dfc7ba9cb37cbbb3.js"},"ev/jN719":(h,L,s)=>{h.exports=s.p+"a9ed61bdf8ae777e7a6f68bf7175e839.js"},"0cT35Irr":(h,L,s)=>{h.exports=s.p+"2765855f04cd6d7fb7fcf0a81c1e2022.js"},is3xhf2Z:(h,L,s)=>{h.exports=s.p+"19df93bf1797b4caf8232cc4b544f865.js"},uJRJGR5x:(h,L,s)=>{h.exports=s.p+"7cc98960277ab04470e3ff9ed5fc6028.js"},Ej9Mbt41:(h,L,s)=>{h.exports=s.p+"8e2d41d7a86aa2440568025ca2e0fc6e.js"},"GS2u+uCB":(h,L,s)=>{h.exports=s.p+"951a8cbe4efaab1b1451ffd8904fc9dd.js"},"P6XL5j+J":(h,L,s)=>{h.exports=s.p+"4686855c499be892779f614770ec2cf7.js"},rb1WeCd3:(h,L,s)=>{h.exports=s.p+"a58f90f6c8db84024327b4d9059c991e.js"},"mj/X/QpT":(h,L,s)=>{h.exports=s.p+"4b75999ea99d719689337def2fab50a3.js"},nPSTcxkM:(h,L,s)=>{h.exports=s.p+"bde0c14810e52ff831d2beab12767309.js"},rMv34TVG:(h,L,s)=>{h.exports=s.p+"330880c09d9594f799c194b0a84df4a1.js"},"9frdRC+d":(h,L,s)=>{h.exports=s.p+"0f7288c53a38924e7f54d224cd630289.js"},Dgd6TotM:(h,L,s)=>{h.exports=s.p+"949a350e1d9f92839865e927eb00673f.js"},"Ee/adM0h":(h,L,s)=>{h.exports=s.p+"40f9100a898e3396df73051eb7c44cb8.js"},"/K+DecFy":(h,L,s)=>{h.exports=s.p+"0126bb4c9fff35b8eea1c696ebc9d16a.js"},mHl7nGoL:(h,L,s)=>{h.exports=s.p+"77c629df0ebf40b066d0ffeb34b7711b.js"},"D/iew0TZ":(h,L,s)=>{h.exports=s.p+"069a0d6b093e73e820f6a60a91fa614b.js"},"2fr/hfKJ":(h,L,s)=>{h.exports=s.p+"f8ee12a5cfa6ff1d3550ef30a238d89a.js"},"/HAVoDco":(h,L,s)=>{h.exports=s.p+"917b2857799bc462cb464bfe770581a8.js"},"uuGmp+oa":(h,L,s)=>{h.exports=s.p+"8db9f93698f3eea94f936fcb5986f1a3.js"},wT9XyTxq:(h,L,s)=>{h.exports=s.p+"4dd91288f73da90c07f394c231ad6eca.js"},"4spcbJDg":(h,L,s)=>{h.exports=s.p+"93be766c753e075a3f7d5b89b3ee04ce.js"},"81Ub9/Bh":(h,L,s)=>{h.exports=s.p+"aefed4953ced506e20b934606ac083f3.js"},kOgJL9KN:(h,L,s)=>{h.exports=s.p+"7e4b5afab13800eedc72d1669997de99.js"},FIgdNmq8:(h,L,s)=>{h.exports=s.p+"0c1e757d25446799bcab87a8607dee60.js"},ZA3nFAaf:(h,L,s)=>{h.exports=s.p+"25718a469574ade47e23567d8c543169.js"},"qGefSyI+":(h,L,s)=>{h.exports=s.p+"b934b22e8f8a8b1ba81dbc2cf058b0cd.js"},fqiXtc88:(h,L,s)=>{h.exports=s.p+"9fd3f255cfd09016ec7f4896bc51864c.js"},"/THIiewk":(h,L,s)=>{h.exports=s.p+"e221aeb45e730b0d430f4203a9b17fb3.js"},RwWxixsF:(h,L,s)=>{h.exports=s.p+"84abf03cc94d264bb38020b4ac5f76e1.js"},"7ZI/55zZ":(h,L,s)=>{h.exports=s.p+"8fa23553ce1badeca04da1d2b5da9c71.js"},xwm6i9FM:(h,L,s)=>{h.exports=s.p+"a17de57c1a079551a2f94580866db133.js"},XjZTha4a:(h,L,s)=>{h.exports=s.p+"f5d50af31e924b65e3bd3764e8d1df3a.js"},lVzFo0Y4:(h,L,s)=>{h.exports=s.p+"ab237eed5fd16ab99c06f0d28d465edb.js"},UrD4N1zb:(h,L,s)=>{h.exports=s.p+"6a83adaba55dec659b637870ed4065c1.js"},CGGEaVCf:(h,L,s)=>{h.exports=s.p+"41469950e6a0ef73a57342235b44c55a.js"},"v+Lyqq2Z":(h,L,s)=>{h.exports=s.p+"71f39fefd16025c224fe31cdb352ae01.js"},XY3gE0Rk:(h,L,s)=>{h.exports=s.p+"c097be1c839f1c0f81f48b330393e093.js"},xiFOb0Ie:(h,L,s)=>{h.exports=s.p+"a64793f1223fd656b488beb2f762303f.js"},IpYM2bHn:(h,L,s)=>{h.exports=s.p+"e13fc7d468ab9b5797f2a44412ca2f00.js"},PrNkpak9:(h,L,s)=>{h.exports=s.p+"03452373324e7ceaf58e3830eafd1a28.js"},DVHugB0f:(h,L,s)=>{h.exports=s.p+"1ab96c77da77918d9160c787732c68a6.js"},B4poQTOL:(h,L,s)=>{h.exports=s.p+"da3a9dc1f8b62f2221f1040e8d207d0e.js"},CUPortIW:(h,L,s)=>{h.exports=s.p+"b02d982ccb1011197a5a24800b178a0a.js"},cBRChpL7:(h,L,s)=>{h.exports=s.p+"879d6bc1ca1dde95a9a98dc7a2ab0d06.js"},"5O/jQAPE":(h,L,s)=>{h.exports=s.p+"b8b6bd460e7da0ba8f3b2218327966ee.js"},JRv3Q5h0:(h,L,s)=>{h.exports=s.p+"2f055ac4066041b9008dd6aebf9df34b.js"},T8wnTgVd:(h,L,s)=>{h.exports=s.p+"d542dda7308361c34af2afb9b70d755a.js"},"D4m/mj+u":(h,L,s)=>{h.exports=s.p+"a4bedde07e392f8ebf64341b61f75df2.js"},PfEcizAn:(h,L,s)=>{h.exports=s.p+"77aaca51c1c32acaf32656d45f4dc017.js"},XJIOnCMI:(h,L,s)=>{h.exports=s.p+"725da29f1643c2263a437c08a1454aea.js"},"bzJRp/fj":(h,L,s)=>{h.exports=s.p+"efc14cdf19554635e477781704353ec2.js"},WGudCwHG:(h,L,s)=>{h.exports=s.p+"eaa55a522fb2cb2f0287711f42344984.js"},Sgt41ziz:(h,L,s)=>{h.exports=s.p+"b808fb222140a85b23ebbe0fffa906d9.js"},"5Cd9/Clf":(h,L,s)=>{h.exports=s.p+"e874d975c9128dc6eb9a513d088bed9f.js"},xkdg8c4m:(h,L,s)=>{h.exports=s.p+"e7e1a807af3160b342e0a3550cf8f7c5.js"},Pan7UXi6:(h,L,s)=>{h.exports=s.p+"48e9351c5623d4da657ce7d5d0267ea6.js"},"5rFUMTo0":(h,L,s)=>{h.exports=s.p+"9827973b533de05b338533a0211d97d9.js"},"5Y51+Vh1":(h,L,s)=>{h.exports=s.p+"bb5bab7a675544fe31ddb7f4a77dffb9.js"},xOgV6CkG:(h,L,s)=>{h.exports=s.p+"a2746fc96d535b19c120d4b87dc86ef1.js"},CjBhGB0o:(h,L,s)=>{h.exports=s.p+"23bb1a9f279e7a732bfd405350aab114.js"},VXvdTg0X:(h,L,s)=>{h.exports=s.p+"b1e349371cb9c226905c846706ad8b93.js"},W4XoRKK4:(h,L,s)=>{h.exports=s.p+"1c57b3481f295105588972ffa1305521.js"},Ken8ylxk:(h,L,s)=>{h.exports=s.p+"87bce6f50196688852142c679227b1b9.js"},ewgFOqjw:(h,L,s)=>{h.exports=s.p+"6c67587c2093ac3a19da9f2196e040b7.js"},"8/kwZneT":(h,L,s)=>{h.exports=s.p+"5a496ae20cc576bef1d35972548207cf.js"},LzhmpIfy:(h,L,s)=>{h.exports=s.p+"5e55b301888460bd06c8e26d1011e01a.js"},KS7ndwix:(h,L,s)=>{h.exports=s.p+"003671ee2a876e7614cd94390e2255b3.js"},"737WX/BK":(h,L,s)=>{h.exports=s.p+"3ea020c57c2bbf457a8497df313b2e5c.js"},pjcg92Zz:(h,L,s)=>{h.exports=s.p+"64d6924350bd7706850cdc0dcc76ccf6.js"},"7lnPtNAK":(h,L,s)=>{h.exports=s.p+"b1f3f77a9279cdb38846ebe13c3438bc.js"},lF6nRVUD:(h,L,s)=>{h.exports=s.p+"d5999827bd3af6b813a871de344b109a.js"},Q52XOfEM:(h,L,s)=>{h.exports=s.p+"58598705e7012f4ca1eb1dd21d3c59a5.js"},vnmFDQ0H:(h,L,s)=>{h.exports=s.p+"70074e0c785c9a808dea76c7c7d17af3.js"},vhsfk6tw:(h,L,s)=>{h.exports=s.p+"1875ecdf54e78b5f07ff1bd944cf794b.js"},"+5E7vsAR":(h,L,s)=>{h.exports=s.p+"8eede17ae9e4d25c3c17b8a8a7fc3c3d.js"},iYxCCA4j:(h,L,s)=>{h.exports=s.p+"eff4371180dfac54de25ed3a0105d82f.js"},QHbcYkzC:(h,L,s)=>{h.exports=s.p+"06d958315fc6cdbb28576b03e43203aa.js"},G1zdDMr3:(h,L,s)=>{h.exports=s.p+"c51840077c684be0e7e13339f85cd4a9.js"},"1vi6P6ZX":(h,L,s)=>{h.exports=s.p+"c3f345c994392d97785925e790513a9f.js"},"0uau5JfL":(h,L,s)=>{h.exports=s.p+"1495a3d68b15b8622c53f6688b64809f.js"},Mi1cIhKo:(h,L,s)=>{h.exports=s.p+"7e4099fc2d04c7c1cf96892b962ba4ec.js"},zq0C7U0x:(h,L,s)=>{h.exports=s.p+"6c0a75dc5671c3f237a79f6e45b9891c.js"},"22AtaWbi":(h,L,s)=>{h.exports=s.p+"aa5623ec68d23fedb9c9c115c7d99063.js"},qURPEew3:(h,L,s)=>{h.exports=s.p+"4ef80ee74467e0297eec3cc03092da01.js"},"Htk+FigO":(h,L,s)=>{h.exports=s.p+"f6d7091e70dee6c74956acfef2464d08.js"},ClI35KjP:(h,L,s)=>{h.exports=s.p+"4bf3bc1fbdd26ac698fef1bdf26e3ff4.js"},I831XjCT:(h,L,s)=>{h.exports=s.p+"70286c33cab463fd576766adecd2d5d9.js"},"m/z0LwsV":(h,L,s)=>{h.exports=s.p+"1533058f0ce13acdaa8d5bdc7d147bef.js"},"3lcU/Z5b":(h,L,s)=>{h.exports=s.p+"724a16861717b5b4f786d24b56b62614.js"},"wqC/KZut":(h,L,s)=>{h.exports=s.p+"03aae8272914723a7bf85b984385032c.js"},LDaJ9HVy:(h,L,s)=>{h.exports=s.p+"029ed9161a8d24a9c2ba97124020989d.js"},"7DmFC2co":(h,L,s)=>{h.exports=s.p+"cb652f200fc3dd740b2e7f678a9272ea.js"},"3l+1RVa8":(h,L,s)=>{h.exports=s.p+"d43ad5f9bad9a042b49b2592c7639c28.js"},"/+VYuwMr":(h,L,s)=>{h.exports=s.p+"d78d3b050ea95b068380d975fd413fd7.js"},uggWucqH:(h,L,s)=>{h.exports=s.p+"4d0ebf4c528cee9b0cdd3e076e06570b.js"},"9Hvh6IkR":(h,L,s)=>{h.exports=s.p+"28785bea435918d49b290d27bf660baa.js"},KeKEOp26:(h,L,s)=>{h.exports=s.p+"38b1d18836e38ee7b4deaeba0c35f7b8.js"},ipFPgOjE:(h,L,s)=>{h.exports=s.p+"2dd82c65030101b60dffccedd8741c6e.js"},"/tvpFP6K":(h,L,s)=>{h.exports=s.p+"47e5776dff3b80ed69ab5947dba33c76.js"},iDkCzcRu:(h,L,s)=>{h.exports=s.p+"e61779df91186b23e7adf2d1968b2708.js"},"96bhyy2v":(h,L,s)=>{h.exports=s.p+"839e3594798c1942d3c92f9acfaa5f0b.js"},"D9w5+Ipp":(h,L,s)=>{h.exports=s.p+"3567d1ea443427e944a6f189a0898819.js"},az9h16It:(h,L,s)=>{h.exports=s.p+"c80e89199aef31e48addb2b35ea96365.js"},Xg2jGysL:(h,L,s)=>{h.exports=s.p+"5b6a626249d0bc43e412fffa6a9ee177.js"},"3aygTms3":(h,L,s)=>{h.exports=s.p+"fd9645aaf1f70c8abc562be41bee25fc.js"},OSlsKDry:(h,L,s)=>{h.exports=s.p+"57f4109bd1f06be4dc2bcb8ff7eaf1e5.js"},Kue1cIAt:(h,L,s)=>{h.exports=s.p+"cd9a17f94a922c7c88000b1b3cdd67df.js"},nvi5A4UP:(h,L,s)=>{h.exports=s.p+"755114145e5b97e5571a160a39e716db.js"},"++uZwDHV":(h,L,s)=>{h.exports=s.p+"5e8a4f4320a07ae4bb1d8a5cd621d955.js"},OFj1V6yW:(h,L,s)=>{h.exports=s.p+"e9c8f7e13e00284ce126890bf7ac46fd.js"},Q556q2nj:(h,L,s)=>{h.exports=s.p+"e0adad8a8579bf99f3e22f7c214a5c64.js"},"jpFhRn/K":(h,L,s)=>{h.exports=s.p+"3b190e5159c72fb7e27271956772bcba.js"},"6EgliD2x":(h,L,s)=>{h.exports=s.p+"62a96977e725e8bc809dc80afe0fedf1.js"},z1tPbJqk:(h,L,s)=>{h.exports=s.p+"8a31266178067a316bb2503147cdb5cb.js"},fOfn4SAq:(h,L,s)=>{h.exports=s.p+"a9cb92db2399f7ac97ad55fe79fe5c20.js"},cgm9fZ4Z:(h,L,s)=>{h.exports=s.p+"6d38cef4a006e6cfe54a6117aba7b600.js"},"2XNm83HG":(h,L,s)=>{h.exports=s.p+"8d9bb1799d9b98db107e84f10132e17f.js"},wwe7Ei82:(h,L,s)=>{h.exports=s.p+"432aff60ba31a74d2120031fdc894775.js"},"+3cSePVN":(h,L,s)=>{h.exports=s.p+"e2fe8f0d4fd950b20b30fabaea96b3f8.js"},"/5sc5LQ/":(h,L,s)=>{h.exports=s.p+"b881dca9d9a80f61d87374b4bd5a2dd5.js"},rmSOybUV:(h,L,s)=>{h.exports=s.p+"ffd3b83e8b5878f4785591ff54b1dfff.js"},"p6ZErS+M":(h,L,s)=>{h.exports=s.p+"88e2feda80ac8cfb28f1dc0ec833b40d.js"},"1NaKqGmv":(h,L,s)=>{h.exports=s.p+"64a5f4d62507d032038dcd76d15188e1.js"},ATSx0vyg:(h,L,s)=>{h.exports=s.p+"aa0eee504d52a12d3a30bbd523afcc34.js"},EwS0GjOe:(h,L,s)=>{h.exports=s.p+"cf26dd07f19bcb5b7efbf057a6cfeb8f.js"},mfCekQZK:(h,L,s)=>{h.exports=s.p+"cbdbd623038183a8c068dd24ecd90682.js"},BDgUyHXA:(h,L,s)=>{h.exports=s.p+"0972f21af3e75388ef55435c0b3b831d.js"},"7x+Vk7mX":(h,L,s)=>{h.exports=s.p+"4d8cb7033879cb7fcc7a43798e2bde22.js"},C2DxEU3T:(h,L,s)=>{h.exports=s.p+"58aab872dbdb5e1607076e1935130e03.js"},"JxYJ+kJ2":(h,L,s)=>{h.exports=s.p+"ecdb4966f685f3e44b1f28fae46827a3.js"},W2tFaWWM:(h,L,s)=>{h.exports=s.p+"5d3314103b00c8ea165c6f9f6757f794.js"},USNc1lOU:(h,L,s)=>{h.exports=s.p+"9b5a6ec07bb0a2daade10189696fc399.js"},DBpawh0J:(h,L,s)=>{h.exports=s.p+"e0c565aadda4787ba4ef4456c0a7ee29.js"},HUrZ6Vfz:(h,L,s)=>{h.exports=s.p+"d5f79987405c2169278f8de37bcc9d05.js"},lfcaaAum:(h,L,s)=>{h.exports=s.p+"de0fd4fd7c2d7a4887cbc99eed91f797.js"},Vt82Sw00:(h,L,s)=>{h.exports=s.p+"17632e1e19e438f431784dfd77e01773.js"},RNjP2RaD:(h,L,s)=>{h.exports=s.p+"663ffb67b9683a2126410325d1a5a152.js"},qWJarf8E:(h,L,s)=>{h.exports=s.p+"e2b38a8393be2cf23f3894ace3efb1c3.js"},"rGspZ/cs":(h,L,s)=>{h.exports=s.p+"27730a0bdc6f430cc85049a46a73a029.js"},"26XcIolH":(h,L,s)=>{h.exports=s.p+"0f147528a6f36ca40c8b3ec796429f58.js"},"zBuM/LwL":(h,L,s)=>{h.exports=s.p+"15f3800d33b854ba476c9daf1b9e0326.js"},"htdc/ZfD":(h,L,s)=>{h.exports=s.p+"211511e7b374f57ad31acaf49dbdccb1.js"},yTBE18zO:(h,L,s)=>{h.exports=s.p+"54560f13b36626237959e93b7771a484.js"},"N++oaRnM":(h,L,s)=>{h.exports=s.p+"582e24f5ba929e358fadfc7be4c18025.js"},x3yLY1fn:(h,L,s)=>{h.exports=s.p+"37ee3b5201ae2e2dc5dc8b1b20ad900e.js"},wEhzoJv1:(h,L,s)=>{h.exports=s.p+"cf3f6b1c74c72cb5d02870022dbc9f94.js"},h8BNSlXW:(h,L,s)=>{h.exports=s.p+"9696a4229fb787eeb25b26f1274b75ee.js"},vLmH2mZP:(h,L,s)=>{h.exports=s.p+"cf188b3f83735389d47bb12fc9f7069a.js"},"0y7KfLVv":(h,L,s)=>{h.exports=s.p+"ba6b8b3e06cd9d0aee9c69278ee84647.js"},a5x23qP0:(h,L,s)=>{h.exports=s.p+"130340e2c62b9e858f186dab5f491e55.js"},FahyREvx:(h,L,s)=>{h.exports=s.p+"6faa9e5f2a0122d2333fa450337a09b0.js"},rN1ibGaQ:(h,L,s)=>{h.exports=s.p+"2fc0239242a898632ca8aa451cb930c2.js"},"4A0YQKMO":(h,L,s)=>{h.exports=s.p+"92f4aab5c66f6269c7054c8fbcb3de13.js"},hb5QFz0Y:(h,L,s)=>{h.exports=s.p+"63596b4896732fb322ab0496b4be1e74.js"},cUWDMBw3:(h,L,s)=>{h.exports=s.p+"5352ecd8e5f1a2637b48e18cc406edb1.js"},xMFgkhje:(h,L,s)=>{h.exports=s.p+"07397bd479cbc34bc04576b4f15bdf18.js"},"L6PI+Mm5":(h,L,s)=>{h.exports=s.p+"5fedbf948ed123687f77167fac1faf8b.js"},DL7V56rh:(h,L,s)=>{h.exports=s.p+"a709bba98acec5da3ea6258e245514cb.js"},"0iARbyZB":(h,L,s)=>{h.exports=s.p+"25eda4bb98e40a82cfd5b4bf9fbc06ec.js"},oRytI9dk:(h,L,s)=>{h.exports=s.p+"3b6e7dc98c47eeafd851ca5072db4be6.js"},"9iKdx794":(h,L,s)=>{h.exports=s.p+"cbdc4ca43a8c940a6c3f59a8b6f17df5.js"},"PpoLh//W":(h,L,s)=>{h.exports=s.p+"432a5982ba3ddf958381d780e1e9a8e2.js"},DuYlNLYV:(h,L,s)=>{h.exports=s.p+"3c5b59a666c5d39d9ba9cc054d36a410.js"},cjsPdS2M:(h,L,s)=>{h.exports=s.p+"13eda3507db9cbfb400f46b9b3ff6553.js"},"+qFE+WCe":(h,L,s)=>{h.exports=s.p+"894edcaf39c3c95818e3949d737ed459.js"},GcJbFFTo:(h,L,s)=>{h.exports=s.p+"0a1d9862d917663419ac2dd2e8193267.js"},MlK9mbrq:(h,L,s)=>{h.exports=s.p+"51f903c5ce5284a63196247cffb5ca40.js"},Qkef5na7:(h,L,s)=>{h.exports=s.p+"e4917fa7632b01d28e99304d32d989f7.js"},zD4c1kQW:(h,L,s)=>{h.exports=s.p+"805cb6232d7a9fa46025d48a43622ecf.js"},omLBwaJy:(h,L,s)=>{h.exports=s.p+"283970c76db99e2d0d90f0e7c45494f9.js"},kcaebZdw:(h,L,s)=>{h.exports=s.p+"10132993df2cf9c9423b53a8a44379ab.js"},pBsbXtsO:(h,L,s)=>{h.exports=s.p+"1736cea368ae85240f34289307fdf67f.js"},LHMnpSV1:(h,L,s)=>{h.exports=s.p+"cf9c7cbfc2b609b9ae59daeab82719c4.js"},NKoLGt9T:(h,L,s)=>{h.exports=s.p+"119f6c45ea400e3c27e1ce172e4c881d.js"},iuGZVVoh:(h,L,s)=>{h.exports=s.p+"d5a6140d581e5c4eb200259ce372f40b.js"},ORg80VlQ:(h,L,s)=>{h.exports=s.p+"a533e643002830be2da76c9527265860.js"},lVsY5ZeT:(h,L,s)=>{h.exports=s.p+"83387cb17a7680f59240e7b399e3ac2b.js"},HtaPVipB:(h,L,s)=>{h.exports=s.p+"37172facd8a534a38f378ca2a9c7c11b.js"},n58JWpjf:(h,L,s)=>{h.exports=s.p+"02174460fe8ff6a6bc19db86543b9600.js"},EzVqlTg1:(h,L,s)=>{h.exports=s.p+"c64d6e1e72024bb5d3d3e9bfc19d183d.js"},MadJGpfj:(h,L,s)=>{h.exports=s.p+"54a10f3bddad1e6da452fee7124fe846.js"},"Mwr+NElN":(h,L,s)=>{h.exports=s.p+"24a3ff38afde257888d755ece9bfd704.js"},RXUjpE6h:(h,L,s)=>{h.exports=s.p+"078dd0bd08c93b1512e3d1b777591b21.js"},FoeSoneJ:(h,L,s)=>{h.exports=s.p+"170487867de05784a96608617bdd544d.js"},SBs1G66B:(h,L,s)=>{h.exports=s.p+"5861dfe4f2c7823623e82d0619c5bf06.js"},f6Heh59i:(h,L,s)=>{h.exports=s.p+"2272c6632c52c3e402ab27b8045ab8f1.js"},EN487mEE:(h,L,s)=>{h.exports=s.p+"03980cb12dacd26148c22bb61fce440f.js"},QKaXJArO:(h,L,s)=>{h.exports=s.p+"58c35e5c73bbc1664bbd67c570342aa0.js"},GqulFKAY:(h,L,s)=>{h.exports=s.p+"fd5bc50b18c9f46380cbe5ec1ac2127b.js"},WsoryliH:(h,L,s)=>{h.exports=s.p+"714763ddd9bd466c95df7b042900bb87.js"},q1ieORLj:(h,L,s)=>{h.exports=s.p+"4e389cce6fb8f78845fab249bce43c0b.js"},NrkbQkRf:(h,L,s)=>{h.exports=s.p+"17dc98279d24649d3ca77cbce8c44e83.js"},ZiEE8QSS:(h,L,s)=>{h.exports=s.p+"a1c8660c5bcc6b6a43a7fb3c351174d9.js"},"9I46VFIs":(h,L,s)=>{h.exports=s.p+"a4d638b976f02f35740be031f996e088.js"},xPS261pY:(h,L,s)=>{h.exports=s.p+"b306285dfd802d091e788de0f96b8cb2.js"},"4GlXurRv":(h,L,s)=>{h.exports=s.p+"ddbc961769cd2ff4d4a7a136168ebf4c.js"},lHOJVCM1:(h,L,s)=>{h.exports=s.p+"3b544bb2c5a4e7b225a4b50235a0fd6d.js"},"b/a/nMdg":(h,L,s)=>{h.exports=s.p+"1034e3807d1bcf55cb564491950237ab.js"},CfvDPJNl:(h,L,s)=>{h.exports=s.p+"d83cda12aee0c87c8b381a1234bf7798.js"},CAV3BmUD:(h,L,s)=>{h.exports=s.p+"9ed8c3550b5c3c1e878d0692f0338cb7.js"},hRQSEh0H:(h,L,s)=>{h.exports=s.p+"5f3ce6efab3c679ec1ad25ab0b3f6b2f.js"},mHfIxAZ3:(h,L,s)=>{h.exports=s.p+"db8ca5cfb6fe4aaef215f116f6991784.js"},dmMAqt4A:(h,L,s)=>{h.exports=s.p+"53e3600928916423671f3388e2d67844.js"},"/Ur8doHf":(h,L,s)=>{h.exports=s.p+"dc8240db39815020378555a4d80571c3.js"},X6nXUfxm:(h,L,s)=>{h.exports=s.p+"1b15b9f88acaf59b96e59c6b5f32da12.js"},OXFOFxv0:(h,L,s)=>{h.exports=s.p+"894052ca1f8f35cc1cf7cfb29ef75027.js"},TLoZpwCW:(h,L,s)=>{h.exports=s.p+"191feb6103c36b202bc01ba262916cdf.js"},gv0ApP2p:(h,L,s)=>{h.exports=s.p+"33b4e371d4983ab56f4db08627119f0b.js"},"OKSZ/QaQ":(h,L,s)=>{h.exports=s.p+"b1170472ae4b50e3b0070eb991e502fe.js"},uLfDbZqI:(h,L,s)=>{h.exports=s.p+"9807cf1e443a7440371904b6525f37eb.js"},S8h5mCt5:(h,L,s)=>{h.exports=s.p+"9b1fd9cf4206cc32e84150c49707d811.js"},"F/fWcFaE":(h,L,s)=>{h.exports=s.p+"d7d616d4aa8fd3f51d681242853dcde9.js"},VM3ZlZcj:(h,L,s)=>{h.exports=s.p+"e6ad50b520736b595970c9e07029c3f1.js"},K3fci0JP:(h,L,s)=>{h.exports=s.p+"49582665262ff6179b9f3a98adf7ed5c.js"},d72Ua0Uy:(h,L,s)=>{h.exports=s.p+"7080d2a1db1608264a6d9d9fbaf2cce8.js"},awr1Em0A:(h,L,s)=>{h.exports=s.p+"ef87482c92662e8b69a21f47588474ea.js"},nzvD2jUB:(h,L,s)=>{h.exports=s.p+"f326f2f263b1498fedbe1d07d7254d10.js"},"1+B0wZP9":(h,L,s)=>{h.exports=s.p+"962969a46fefcace3305abd4d6e14a2e.js"},R6fCfMtF:(h,L,s)=>{h.exports=s.p+"b33ef9b4202539d3690251cb8213a034.js"},cE8EDZqE:(h,L,s)=>{h.exports=s.p+"80ddbf4f0fdde4ddba57130e61043017.js"},VJc5aOjJ:(h,L,s)=>{h.exports=s.p+"8ed58ed9c7e1cb1ae1f2830d29011ffb.js"},r4yf2FS1:(h,L,s)=>{h.exports=s.p+"c4e58637b4d14c303e29d3ce4b4a210f.js"},M9wr4wKr:(h,L,s)=>{h.exports=s.p+"59cc05504a1c823b6d4796bf6b430822.js"},"c1/Hszs9":(h,L,s)=>{h.exports=s.p+"b20cd9acf45420fcacfd923754185663.js"},l1lYLnFG:(h,L,s)=>{h.exports=s.p+"19f1a880f679f834a0938b716e7e48e0.js"},MVLfkgRO:(h,L,s)=>{h.exports=s.p+"0d419aec4c7e2317238c3502a967b560.js"},JdNh8gb3:(h,L,s)=>{h.exports=s.p+"acaef5b3d4971efbf24be1a229186ff5.js"},v3cIezEl:(h,L,s)=>{h.exports=s.p+"17b41db8dd7120d3a88417a1490f57b7.js"},"vL/GGtXq":(h,L,s)=>{h.exports=s.p+"8d8bc65ea473a73628e915a0e002e294.js"},"6W0Oybpv":(h,L,s)=>{h.exports=s.p+"f861afeb7d450f1840ab5139655d79d4.js"},"1YT6s9sZ":(h,L,s)=>{h.exports=s.p+"32f291b1164c2610ed1a9260677d15f0.js"},hDf0rkEI:(h,L,s)=>{h.exports=s.p+"47cf6414c4d2d3b5eaaf7030e5b93c4a.js"},IcdJB6RT:(h,L,s)=>{h.exports=s.p+"dd7b2f280cf4c20afba7e2a7c2625354.js"},"1CcjkTW2":(h,L,s)=>{h.exports=s.p+"700530bc418f23dccca7db36bfa9f745.js"},qKdFSJM1:(h,L,s)=>{h.exports=s.p+"0d8cca845a71e82acc3ffc1fc95c94f3.js"},WcID6jHe:(h,L,s)=>{h.exports=s.p+"ac0681e93739efad9b6f1b85453d6a1b.js"},UrmhI2yl:(h,L,s)=>{h.exports=s.p+"fc84e4779f22e5f1c9a70f56f47e0ed6.js"},adfKiEqr:(h,L,s)=>{h.exports=s.p+"d492c085b5834c819ba21542b9147966.js"},"6JUCKrPp":(h,L,s)=>{h.exports=s.p+"330c0deacbfbbb6f1249b5bd887d608a.js"},ZNs4vcdh:(h,L,s)=>{h.exports=s.p+"124690e9a699fd76cfa8a534efda285b.js"},g00obu5c:(h,L,s)=>{h.exports=s.p+"757427655aafe6b2f424fefdf1747758.js"},"948B1sdC":(h,L,s)=>{h.exports=s.p+"98c86ea025c719a98eeba2931cc3d4c3.js"},"6f6ywK4X":(h,L,s)=>{h.exports=s.p+"2772fa250d538d9b7a8702fb6c50d195.js"},X5lyhFZq:(h,L,s)=>{h.exports=s.p+"03b1e9dce952e11949d123c2f00a1a0d.js"},"E+BVsWKj":(h,L,s)=>{h.exports=s.p+"5fc5b7fdc1899b18bee20c7905c76182.js"},NEJeIpSa:(h,L,s)=>{h.exports=s.p+"531e426da5d4c152efe1e9522991e466.js"},ZhCPcINa:(h,L,s)=>{h.exports=s.p+"b0ca1cc27ac114315e876ea7f4992597.js"},"n/YvNmNM":(h,L,s)=>{h.exports=s.p+"4123d5ea3e1f99dd3a5f2a89e16c6e59.js"},"5hr//AML":(h,L,s)=>{h.exports=s.p+"2241367b24817b336d02880c0fb9d4da.js"},WLtUVsLt:(h,L,s)=>{h.exports=s.p+"83c9fb8b375da1e934dfc690ff491dc8.js"},kllLTRgG:(h,L,s)=>{h.exports=s.p+"b6b908d02eb372ba7c31346f24d6d092.js"},tvqcW6d4:(h,L,s)=>{h.exports=s.p+"362d6b4094abc903d46e3ebc2872ebef.js"},vdQ1l0lh:(h,L,s)=>{h.exports=s.p+"30d2b805bcbc5d6bd558d7bdf9137a0e.js"},CTxztnCu:(h,L,s)=>{h.exports=s.p+"084c8831e00a094c78a6b068737e6fc9.js"},DKVKp6eM:(h,L,s)=>{h.exports=s.p+"01b980b85f1677a08953749fb6eaa6a7.js"},"2DTlQWKj":(h,L,s)=>{h.exports=s.p+"650d97c1b1782b09687b01c800f8c50d.js"},bKl877OY:(h,L,s)=>{h.exports=s.p+"4dec4bb457555975c148226534ecbdbe.js"},yrMd9gTa:(h,L,s)=>{h.exports=s.p+"4150db3307181a1afef55ab2c9ec191e.js"},cYmr97PJ:(h,L,s)=>{h.exports=s.p+"4658834fc06a687e86ad254c924afb03.js"},kDa7ZriR:(h,L,s)=>{h.exports=s.p+"d3c6f63283deafb27231ec767a161534.js"},JE6AtuIa:(h,L,s)=>{h.exports=s.p+"e4bea9a2a2680d970c13cc4ed89bc1a0.js"},kHeRLRtP:(h,L,s)=>{h.exports=s.p+"7d8a26b9d697e69af3f5850893dbf14f.js"},JKOkCiEx:(h,L,s)=>{h.exports=s.p+"73566e3f1371433ab25201c465d4ee28.js"},aEfBTURH:(h,L,s)=>{h.exports=s.p+"9585c763d3064914bb3445f4123be3b8.js"},"oa8N11m+":(h,L,s)=>{h.exports=s.p+"576b507586d8bfab23a49bafb04d90d9.js"},TJwQQT13:(h,L,s)=>{h.exports=s.p+"1ea58b5ac34abb82493bad6800823fee.js"},fCARvF4c:(h,L,s)=>{h.exports=s.p+"6964339483286e46bbadd7b8f3137800.js"},SklWCMVA:(h,L,s)=>{h.exports=s.p+"2091e4c01015d7dda392116f3ae59801.js"},ceoYkTou:(h,L,s)=>{h.exports=s.p+"5cb7bcb4d07bb5127b4847308e858ee9.js"},"51Xq34bu":(h,L,s)=>{h.exports=s.p+"85f45066f93f1ef990ea34b7b740ffa9.js"},"fKv/I13j":(h,L,s)=>{h.exports=s.p+"4ff96a186576c0af6f2398f3ac26dd9f.js"},kxLoK35b:(h,L,s)=>{h.exports=s.p+"cd93d34e6d4f88137403ead72943a1ae.js"},Z2cYhbxg:(h,L,s)=>{h.exports=s.p+"fd945c0d172b77df1ab2c752d37fc500.js"},ziqewSXn:(h,L,s)=>{h.exports=s.p+"af13854f56ac35bdc0056d81c70223f1.js"},hFHpaEZ9:(h,L,s)=>{h.exports=s.p+"eae581ca7174f5c6f1fb0cb327ceac5b.js"},"8z5K6nuC":(h,L,s)=>{h.exports=s.p+"74ffa4716341fc3417308d7774f85025.js"},DW5CTjRI:(h,L,s)=>{h.exports=s.p+"ab598c4ee8179effac233eae21d2ddd3.js"},"5KKxcDH1":(h,L,s)=>{h.exports=s.p+"f1a786356c0f437cbfe534afc3473efd.js"},"GsNPzpn+":(h,L,s)=>{h.exports=s.p+"c8f182d7dc987b3534e6db28bb0dc3df.js"},"3CftRekL":(h,L,s)=>{var R="Expected a function",E="__lodash_hash_undefined__",_=1/0,m="[object Function]",b="[object GeneratorFunction]",g="[object Symbol]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,e=/^\./,i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/[\\^$.*+?()[\]{}|]/g,t=/\\(\\)?/g,r=/^\[object .+?Constructor\]$/,o=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g,c=typeof self=="object"&&self&&self.Object===Object&&self,d=o||c||Function("return this")();function p(j,V){return j==null?void 0:j[V]}function x(j){var V=!1;if(j!=null&&typeof j.toString!="function")try{V=!!(j+"")}catch{}return V}var y=Array.prototype,k=Function.prototype,M=Object.prototype,v=d["__core-js_shared__"],S=function(){var j=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||"");return j?"Symbol(src)_1."+j:""}(),A=k.toString,$=M.hasOwnProperty,u=M.toString,f=RegExp("^"+A.call($).replace(n,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=d.Symbol,C=y.splice,T=Z(d,"Map"),I=Z(Object,"create"),F=w?w.prototype:void 0,O=F?F.toString:void 0;function D(j){var V=-1,ee=j?j.length:0;for(this.clear();++V-1}function X(j,V){var ee=this.__data__,de=le(ee,j);return de<0?ee.push([j,V]):ee[de][1]=V,this}P.prototype.clear=G,P.prototype.delete=J,P.prototype.get=ne,P.prototype.has=K,P.prototype.set=X;function Q(j){var V=-1,ee=j?j.length:0;for(this.clear();++V{var R=s("RMa3hR3V"),E=R.isFinite;function _(m){return typeof m=="number"&&E(m)}h.exports=_},qB2g08AP:function(h,L,s){"use strict";var R=this&&this.__extends||function(){var i=function(n,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(r[c]=o[c])},i(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),E=this&&this.__assign||function(){return E=Object.assign||function(i){for(var n,t=1,r=arguments.length;t0&&this.handleMarkers(F);var U=this.editor.$options;a.editorOptions.forEach(function(B){U.hasOwnProperty(B)?t.editor.setOption(B,t.props[B]):t.props[B]&&console.warn("ReactAce: editor option ".concat(B," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}),this.handleOptions(this.props),Array.isArray(T)&&T.forEach(function(B){typeof B.exec=="string"?t.editor.commands.bindKey(B.bindKey,B.exec):t.editor.commands.addCommand(B)}),w&&this.editor.setKeyboardHandler("ace/keyboard/"+w),o&&(this.refEditor.className+=" "+o),C&&C(this.editor),this.editor.resize(),x&&this.editor.focus()},n.prototype.componentDidUpdate=function(t){for(var r=t,o=this.props,c=0;c{"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.getAceInstance=L.debounce=L.editorEvents=L.editorOptions=void 0;var R=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];L.editorOptions=R;var E=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];L.editorEvents=E;var _=function(){var b;return typeof window>"u"?(s.g.window={},b=s("rJZCvzgl"),delete s.g.window):window.ace?(b=window.ace,b.acequire=window.ace.require||window.ace.acequire):b=s("rJZCvzgl"),b};L.getAceInstance=_;var m=function(b,g){var a=null;return function(){var l=this,e=arguments;clearTimeout(a),a=setTimeout(function(){b.apply(l,e)},g)}};L.debounce=m},X6wT4U46:(h,L,s)=>{"use strict";var R;R={value:!0},R=R=void 0;var E=s("qB2g08AP"),_=s("jwwjE/Aq");R=_.default;var m=s("uxzrkUqc");R=m.default,L.ZP=E.default},uxzrkUqc:function(h,L,s){"use strict";var R=this&&this.__extends||function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(c[p]=d[p])},t(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(r,o);function c(){this.constructor=r}r.prototype=o===null?Object.create(o):(c.prototype=o.prototype,new c)}}(),E=this&&this.__assign||function(){return E=Object.assign||function(t){for(var r,o=1,c=arguments.length;o0&&o.handleMarkers(Q,P);for(var J=0;J<_.editorOptions.length;J++){var Y=_.editorOptions[J];H.hasOwnProperty(Y)?P.setOption(Y,o.props[Y]):o.props[Y]&&console.warn("ReaceAce: editor option ".concat(Y," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}o.handleOptions(o.props,P),Array.isArray(F)&&F.forEach(function(ie){typeof ie.exec=="string"?P.commands.bindKey(ie.bindKey,ie.exec):P.commands.addCommand(ie)}),T&&P.setKeyboardHandler("ace/keyboard/"+T)}),d&&(this.refEditor.className+=" "+d),y&&this.splitEditor.focus();var N=this.editor.env.split;N.setOrientation(this.props.orientation==="below"?N.BELOW:N.BESIDE),N.resize(!0),I&&I(N)},r.prototype.componentDidUpdate=function(o){var c=this,d=o,p=this.props,x=this.editor.env.split;if(p.splits!==d.splits&&x.setSplits(p.splits),p.orientation!==d.orientation&&x.setOrientation(p.orientation==="below"?x.BELOW:x.BESIDE),x.forEach(function(v,S){p.mode!==d.mode&&v.getSession().setMode("ace/mode/"+p.mode),p.keyboardHandler!==d.keyboardHandler&&(p.keyboardHandler?v.setKeyboardHandler("ace/keyboard/"+p.keyboardHandler):v.setKeyboardHandler(null)),p.fontSize!==d.fontSize&&v.setFontSize(p.fontSize),p.wrapEnabled!==d.wrapEnabled&&v.getSession().setUseWrapMode(p.wrapEnabled),p.showPrintMargin!==d.showPrintMargin&&v.setShowPrintMargin(p.showPrintMargin),p.showGutter!==d.showGutter&&v.renderer.setShowGutter(p.showGutter);for(var A=0;A<_.editorOptions.length;A++){var $=_.editorOptions[A];p[$]!==d[$]&&v.setOption($,p[$])}e(p.setOptions,d.setOptions)||c.handleOptions(p,v);var u=i(p.value,S,"");if(v.getValue()!==u){c.silent=!0;var f=v.session.selection.toJSON();v.setValue(u,p.cursorStart),v.session.selection.fromJSON(f),c.silent=!1}var w=i(p.annotations,S,[]),C=i(d.annotations,S,[]);e(w,C)||v.getSession().setAnnotations(w);var T=i(p.markers,S,[]),I=i(d.markers,S,[]);!e(T,I)&&Array.isArray(T)&&c.handleMarkers(T,v)}),p.className!==d.className){var y=this.refEditor.className,k=y.trim().split(" "),M=d.className.trim().split(" ");M.forEach(function(v){var S=k.indexOf(v);k.splice(S,1)}),this.refEditor.className=" "+p.className+" "+k.join(" ")}p.theme!==d.theme&&x.setTheme("ace/theme/"+p.theme),p.focus&&!d.focus&&this.splitEditor.focus(),(p.height!==this.props.height||p.width!==this.props.width)&&this.editor.resize()},r.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},r.prototype.onChange=function(o){if(this.props.onChange&&!this.silent){var c=[];this.editor.env.split.forEach(function(d){c.push(d.getValue())}),this.props.onChange(c,o)}},r.prototype.onSelectionChange=function(o){if(this.props.onSelectionChange){var c=[];this.editor.env.split.forEach(function(d){c.push(d.getSelection())}),this.props.onSelectionChange(c,o)}},r.prototype.onCursorChange=function(o){if(this.props.onCursorChange){var c=[];this.editor.env.split.forEach(function(d){c.push(d.getSelection())}),this.props.onCursorChange(c,o)}},r.prototype.onFocus=function(o){this.props.onFocus&&this.props.onFocus(o)},r.prototype.onInput=function(o){this.props.onInput&&this.props.onInput(o)},r.prototype.onBlur=function(o){this.props.onBlur&&this.props.onBlur(o)},r.prototype.onCopy=function(o){this.props.onCopy&&this.props.onCopy(o)},r.prototype.onPaste=function(o){this.props.onPaste&&this.props.onPaste(o)},r.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},r.prototype.handleOptions=function(o,c){for(var d=Object.keys(o.setOptions),p=0;p




© 2015 - 2025 Weber Informatics LLC | Privacy Policy