web-interface.assets.1255d548-3618.de46add0db683483be9a.js Maven / Gradle / Ivy
(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["1255d548-3618"],{DcW8hC3D:(u,k,r)=>{u=r.nmd(u),function(){var I="ace",T=function(){return this}();if(!T&&typeof window<"u"&&(T=window),!I&&typeof requirejs<"u")return;var _=function(s,i,n){if(typeof s!="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[s]||(_.payloads[s]=n,_.modules[s]=null)};_.modules={},_.payloads={};var b=function(s,i,n){if(typeof i=="string"){var e=a(s,i);if(e!=null)return n&&n(),e}else if(Object.prototype.toString.call(i)==="[object Array]"){for(var t=[],o=0,l=i.length;oa.length)&&(y=a.length),y-=C.length;var c=a.indexOf(C,y);return c!==-1&&c===y}),String.prototype.repeat||b(String.prototype,"repeat",function(C){for(var y="",a=this;C>0;)C&1&&(y+=a),(C>>=1)&&(a+=a);return y}),String.prototype.includes||b(String.prototype,"includes",function(C,y){return this.indexOf(C,y)!=-1}),Object.assign||(Object.assign=function(C){if(C==null)throw new TypeError("Cannot convert undefined or null to object");for(var y=Object(C),a=1;a>>0,c=arguments[1],s=c>>0,i=s<0?Math.max(a+s,0):Math.min(s,a),n=arguments[2],e=n===void 0?a:n>>0,t=e<0?Math.max(a+e,0):Math.min(e,a);i0;)a&1&&(c+=y),(a>>=1)&&(y+=y);return c};var b=/^\s\s*/,C=/\s\s*$/;T.stringTrimLeft=function(y){return y.replace(b,"")},T.stringTrimRight=function(y){return y.replace(C,"")},T.copyObject=function(y){var a={};for(var c in y)a[c]=y[c];return a},T.copyArray=function(y){for(var a=[],c=0,s=y.length;c=0?parseFloat((y.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((y.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),T.isOldIE=T.isIE&&T.isIE<9,T.isGecko=T.isMozilla=y.match(/ Gecko\/\d+/),T.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",T.isWebKit=parseFloat(y.split("WebKit/")[1])||void 0,T.isChrome=parseFloat(y.split(" Chrome/")[1])||void 0,T.isEdge=parseFloat(y.split(" Edge/")[1])||void 0,T.isAIR=y.indexOf("AdobeAIR")>=0,T.isAndroid=y.indexOf("Android")>=0,T.isChromeOS=y.indexOf(" CrOS ")>=0,T.isIOS=/iPad|iPhone|iPod/.test(y)&&!window.MSStream,T.isIOS&&(T.isMac=!0),T.isMobile=T.isIOS||T.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(I,T,_){"use strict";var b=I("./useragent"),C="http://www.w3.org/1999/xhtml";T.buildDom=function n(e,t,o){if(typeof e=="string"&&e){var l=document.createTextNode(e);return t&&t.appendChild(l),l}if(!Array.isArray(e))return e&&e.appendChild&&t&&t.appendChild(e),e;if(typeof e[0]!="string"||!e[0]){for(var h=[],f=0;f"u")){if(a){if(t)c();else if(t===!1)return a.push([n,e])}if(!y){var o=t;!t||!t.getRootNode?o=document:(o=t.getRootNode(),(!o||o==t)&&(o=document));var l=o.ownerDocument||o;if(e&&T.hasCssString(e,o))return null;e&&(n+=`
/*# sourceURL=ace/css/`+e+" */");var h=T.createElement("style");h.appendChild(l.createTextNode(n)),e&&(h.id=e),o==l&&(o=T.getDocumentHead(l)),o.insertBefore(h,o.firstChild)}}}if(T.importCssString=s,T.importCssStylsheet=function(n,e){T.buildDom(["link",{rel:"stylesheet",href:n}],T.getDocumentHead(e))},T.scrollbarWidth=function(n){var e=T.createElement("ace_inner");e.style.width="100%",e.style.minWidth="0px",e.style.height="200px",e.style.display="block";var t=T.createElement("ace_outer"),o=t.style;o.position="absolute",o.left="-10000px",o.overflow="hidden",o.width="200px",o.minWidth="0px",o.height="150px",o.display="block",t.appendChild(e);var l=n&&n.documentElement||document&&document.documentElement;if(!l)return 0;l.appendChild(t);var h=e.offsetWidth;o.overflow="scroll";var f=e.offsetWidth;return h===f&&(f=t.clientWidth),l.removeChild(t),h-f},T.computedStyle=function(n,e){return window.getComputedStyle(n,"")||{}},T.setStyle=function(n,e,t){n[e]!==t&&(n[e]=t)},T.HAS_CSS_ANIMATION=!1,T.HAS_CSS_TRANSFORMS=!1,T.HI_DPI=b.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,b.isChromeOS&&(T.HI_DPI=!1),typeof document<"u"){var i=document.createElement("div");T.HI_DPI&&i.style.transform!==void 0&&(T.HAS_CSS_TRANSFORMS=!0),!b.isEdge&&typeof i.style.animationName<"u"&&(T.HAS_CSS_ANIMATION=!0),i=null}T.HAS_CSS_TRANSFORMS?T.translate=function(n,e,t){n.style.transform="translate("+Math.round(e)+"px, "+Math.round(t)+"px)"}:T.translate=function(n,e,t){n.style.top=Math.round(t)+"px",n.style.left=Math.round(e)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(I,T,_){/*
* 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 b=I("./dom");T.get=function(C,y){var a=new XMLHttpRequest;a.open("GET",C,!0),a.onreadystatechange=function(){a.readyState===4&&y(a.responseText)},a.send(null)},T.loadScript=function(C,y){var a=b.getDocumentHead(),c=document.createElement("script");c.src=C,a.appendChild(c),c.onload=c.onreadystatechange=function(s,i){(i||!c.readyState||c.readyState=="loaded"||c.readyState=="complete")&&(c=c.onload=c.onreadystatechange=null,i||y())}},T.qualifyURL=function(C){var y=document.createElement("a");return y.href=C,y.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(I,T,_){"use strict";T.inherits=function(b,C){b.super_=C,b.prototype=Object.create(C.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}})},T.mixin=function(b,C){for(var y in C)b[y]=C[y];return b},T.implement=function(b,C){T.mixin(b,C)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(I,T,_){"use strict";var b={},C=function(){this.propagationStopped=!0},y=function(){this.defaultPrevented=!0};b._emit=b._dispatchEvent=function(a,c){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[a]||[],i=this._defaultHandlers[a];if(!(!s.length&&!i)){(typeof c!="object"||!c)&&(c={}),c.type||(c.type=a),c.stopPropagation||(c.stopPropagation=C),c.preventDefault||(c.preventDefault=y),s=s.slice();for(var n=0;n1&&(h=o[o.length-2]);var $=c[t+"Path"];return $==null?$=c.basePath:l=="/"&&(t=l=""),$&&$.slice(-1)!="/"&&($+="/"),$+t+l+h+this.get("suffix")},T.setModuleUrl=function(e,t){return c.$moduleUrls[e]=t};var s=function(e,t){if(e==="ace/theme/textmate"||e==="./theme/textmate")return t(null,I("./theme/textmate"));if(i)return i(e,t);console.error("loader is not configured")},i;T.setLoader=function(e){i=e},T.dynamicModules=Object.create(null),T.$loading={},T.$loaded={},T.loadModule=function(e,t){var o,l;Array.isArray(e)&&(l=e[0],e=e[1]);var h=function(f){if(f&&!T.$loading[e])return t&&t(f);if(T.$loading[e]||(T.$loading[e]=[]),T.$loading[e].push(t),!(T.$loading[e].length>1)){var $=function(){s(e,function(m,M){M&&(T.$loaded[e]=M),T._emit("load.module",{name:e,module:M});var S=T.$loading[e];T.$loading[e]=null,S.forEach(function(p){p&&p(M)})})};if(!T.get("packaged"))return $();C.loadScript(T.moduleUrl(e,l),$),n()}};if(T.dynamicModules[e])T.dynamicModules[e]().then(function(f){f.default?h(f.default):h(f)});else{try{o=this.$require(e)}catch{}h(o||T.$loaded[e])}},T.$require=function(e){if(typeof _.require=="function"){var t="require";return _[t](e)}},T.setModuleLoader=function(e,t){T.dynamicModules[e]=t};var n=function(){!c.basePath&&!c.workerPath&&!c.modePath&&!c.themePath&&!Object.keys(c.$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"),n=function(){})};T.version="1.30.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(I,T,_){"use strict";I("./lib/fixoldbrowsers");var b=I("./config");b.setLoader(function(c,s){I([c],function(i){s(null,i)})});var C=function(){return this||typeof window<"u"&&window}();_.exports=function(c){b.init=y,b.$require=I,c.require=I,c.define=r.amdD},y(!0);function y(c){if(!(!C||!C.document)){b.set("packaged",c||I.packaged||_.packaged||C.define&&r.amdD.packaged);var s={},i="",n=document.currentScript||document._currentScript,e=n&&n.ownerDocument||document;n&&n.src&&(i=n.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var t=e.getElementsByTagName("script"),o=0;o ["+this.end.row+"/"+this.end.column+"]"},y.prototype.contains=function(a,c){return this.compare(a,c)==0},y.prototype.compareRange=function(a){var c,s=a.end,i=a.start;return c=this.compare(s.row,s.column),c==1?(c=this.compare(i.row,i.column),c==1?2:c==0?1:0):c==-1?-2:(c=this.compare(i.row,i.column),c==-1?-1:c==1?42:0)},y.prototype.comparePoint=function(a){return this.compare(a.row,a.column)},y.prototype.containsRange=function(a){return this.comparePoint(a.start)==0&&this.comparePoint(a.end)==0},y.prototype.intersects=function(a){var c=this.compareRange(a);return c==-1||c==0||c==1},y.prototype.isEnd=function(a,c){return this.end.row==a&&this.end.column==c},y.prototype.isStart=function(a,c){return this.start.row==a&&this.start.column==c},y.prototype.setStart=function(a,c){typeof a=="object"?(this.start.column=a.column,this.start.row=a.row):(this.start.row=a,this.start.column=c)},y.prototype.setEnd=function(a,c){typeof a=="object"?(this.end.column=a.column,this.end.row=a.row):(this.end.row=a,this.end.column=c)},y.prototype.inside=function(a,c){return this.compare(a,c)==0?!(this.isEnd(a,c)||this.isStart(a,c)):!1},y.prototype.insideStart=function(a,c){return this.compare(a,c)==0?!this.isEnd(a,c):!1},y.prototype.insideEnd=function(a,c){return this.compare(a,c)==0?!this.isStart(a,c):!1},y.prototype.compare=function(a,c){return!this.isMultiLine()&&a===this.start.row?cthis.end.column?1:0:athis.end.row?1:this.start.row===a?c>=this.start.column?0:-1:this.end.row===a?c<=this.end.column?0:1:0},y.prototype.compareStart=function(a,c){return this.start.row==a&&this.start.column==c?-1:this.compare(a,c)},y.prototype.compareEnd=function(a,c){return this.end.row==a&&this.end.column==c?1:this.compare(a,c)},y.prototype.compareInside=function(a,c){return this.end.row==a&&this.end.column==c?1:this.start.row==a&&this.start.column==c?-1:this.compare(a,c)},y.prototype.clipRows=function(a,c){if(this.end.row>c)var s={row:c+1,column:0};else if(this.end.rowc)var i={row:c+1,column:0};else if(this.start.row1?(v++,v>4&&(v=1)):v=1,C.isIE){var L=Math.abs(d.clientX-A)>5||Math.abs(d.clientY-R)>5;(!w||L)&&(v=1),w&&clearTimeout(w),w=setTimeout(function(){w=null},m[v-1]||600),v==1&&(A=d.clientX,R=d.clientY)}if(d._clicks=v,M[S]("mousedown",d),v>4)v=0;else if(v>1)return M[S](x[v],d)}Array.isArray($)||($=[$]),$.forEach(function(d){e(d,"mousedown",g,p)})};var o=function($){return 0|($.ctrlKey?1:0)|($.altKey?2:0)|($.shiftKey?4:0)|($.metaKey?8:0)};T.getModifierString=function($){return b.KEY_MODS[o($)]};function l($,m,M){var S=o(m);if(!C.isMac&&y){if(m.getModifierState&&(m.getModifierState("OS")||m.getModifierState("Win"))&&(S|=8),y.altGr)if((3&S)!=3)y.altGr=0;else return;if(M===18||M===17){var p="location"in m?m.location:m.keyLocation;if(M===17&&p===1)y[M]==1&&(a=m.timeStamp);else if(M===18&&S===3&&p===2){var v=m.timeStamp-a;v<50&&(y.altGr=!0)}}}if(M in b.MODIFIER_KEYS&&(M=-1),!S&&M===13){var p="location"in m?m.location:m.keyLocation;if(p===3&&($(m,S,-M),m.defaultPrevented))return}if(C.isChromeOS&&S&8){if($(m,S,M),m.defaultPrevented)return;S&=-9}return!S&&!(M in b.FUNCTION_KEYS)&&!(M in b.PRINTABLE_KEYS)?!1:$(m,S,M)}T.addCommandKeyListener=function($,m,M){if(C.isOldGecko||C.isOpera&&!("KeyboardEvent"in window)){var S=null;e($,"keydown",function(v){S=v.keyCode},M),e($,"keypress",function(v){return l(m,v,S)},M)}else{var p=null;e($,"keydown",function(v){y[v.keyCode]=(y[v.keyCode]||0)+1;var A=l(m,v,v.keyCode);return p=v.defaultPrevented,A},M),e($,"keypress",function(v){p&&(v.ctrlKey||v.altKey||v.shiftKey||v.metaKey)&&(T.stopEvent(v),p=null)},M),e($,"keyup",function(v){y[v.keyCode]=null},M),y||(h(),e(window,"focus",h))}};function h(){y=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!C.isOldIE){var f=1;T.nextTick=function($,m){m=m||window;var M="zero-timeout-message-"+f++,S=function(p){p.data==M&&(T.stopPropagation(p),t(m,"message",S),$())};e(m,"message",S),m.postMessage(M,"*")}}T.$idleBlocked=!1,T.onIdle=function($,m){return setTimeout(function M(){T.$idleBlocked?setTimeout(M,100):$()},m)},T.$idleBlockId=null,T.blockIdle=function($){T.$idleBlockId&&clearTimeout(T.$idleBlockId),T.$idleBlocked=!0,T.$idleBlockId=setTimeout(function(){T.$idleBlocked=!1},$||100)},T.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),T.nextFrame?T.nextFrame=T.nextFrame.bind(window):T.nextFrame=function($){setTimeout($,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(I,T,_){"use strict";var b;_.exports={lineMode:!1,pasteCancelled:function(){return b&&b>Date.now()-50?!0:b=!1},cancel:function(){b=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(I,T,_){"use strict";var b=I("../lib/event"),C=I("../config").nls,y=I("../lib/useragent"),a=I("../lib/dom"),c=I("../lib/lang"),s=I("../clipboard"),i=y.isChrome<18,n=y.isIE,e=y.isChrome>63,t=400,o=I("../lib/keys"),l=o.KEY_MODS,h=y.isIOS,f=h?/\s/:/\n/,$=y.isMobile,m=function(M,S){var p=a.createElement("textarea");p.className="ace_text-input",p.setAttribute("wrap","off"),p.setAttribute("autocorrect","off"),p.setAttribute("autocapitalize","off"),p.setAttribute("spellcheck",!1),p.style.opacity="0",M.insertBefore(p,M.firstChild);var v=!1,A=!1,R=!1,w=!1,x="";$||(p.style.fontSize="1px");var g=!1,d=!1,L="",E=0,O=0,D=0,U=Number.MAX_SAFE_INTEGER,B=Number.MIN_SAFE_INTEGER,j=0;try{var P=document.activeElement===p}catch{}this.setNumberOfExtraLines=function(V){if(U=Number.MAX_SAFE_INTEGER,B=Number.MIN_SAFE_INTEGER,V<0){j=0;return}j=V},this.setAriaOptions=function(V){if(V.activeDescendant?(p.setAttribute("aria-haspopup","true"),p.setAttribute("aria-autocomplete",V.inline?"both":"list"),p.setAttribute("aria-activedescendant",V.activeDescendant)):(p.setAttribute("aria-haspopup","false"),p.setAttribute("aria-autocomplete","both"),p.removeAttribute("aria-activedescendant")),V.role&&p.setAttribute("role",V.role),V.setLabel&&(p.setAttribute("aria-roledescription",C("editor")),S.session)){var ie=S.session.selection.cursor.row;p.setAttribute("aria-label",C("Cursor at row $0",[ie+1]))}},this.setAriaOptions({role:"textbox"}),b.addListener(p,"blur",function(V){d||(S.onBlur(V),P=!1)},S),b.addListener(p,"focus",function(V){if(!d){if(P=!0,y.isEdge)try{if(!document.hasFocus())return}catch{}S.onFocus(V),y.isEdge?setTimeout(z):z()}},S),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:S.renderer.enableKeyboardAccessibility}),x||e||this.$focusScroll=="browser")return p.focus({preventScroll:!0});var V=p.style.top;p.style.position="fixed",p.style.top="0px";try{var ie=p.getBoundingClientRect().top!=0}catch{return}var re=[];if(ie)for(var he=p.parentElement;he&&he.nodeType==1;)re.push(he),he.setAttribute("ace_nocontext",!0),!he.parentElement&&he.getRootNode?he=he.getRootNode().host:he=he.parentElement;p.focus({preventScroll:!0}),ie&&re.forEach(function(ae){ae.removeAttribute("ace_nocontext")}),setTimeout(function(){p.style.position="",p.style.top=="0px"&&(p.style.top=V)},0)},this.blur=function(){p.blur()},this.isFocused=function(){return P},S.on("beforeEndOperation",function(){var V=S.curOp,ie=V&&V.command&&V.command.name;if(ie!="insertstring"){var re=ie&&(V.docChanged||V.selectionChanged);R&&re&&(L=p.value="",Te()),z()}});var H=function(V,ie){for(var re=ie,he=1;he<=V-U&&he<2*j+1;he++)re+=S.session.getLine(V-he).length+1;return re},z=h?function(V){if(!(!P||v&&!V||w)){V||(V="");var ie=`
ab`+V+`cde fg
`;ie!=p.value&&(p.value=L=ie);var re=4,he=4+(V.length||(S.selection.isEmpty()?0:1));(E!=re||O!=he)&&p.setSelectionRange(re,he),E=re,O=he}}:function(){if(!(R||w)&&!(!P&&!q)){R=!0;var V=0,ie=0,re="";if(S.session){var he=S.selection,ae=he.getRange(),me=he.cursor.row;me===B+1?(U=B+1,B=U+2*j):me===U-1?(B=U-1,U=B-2*j):(meB+1)&&(U=me>j?me-j:0,B=me>j?me+j:2*j);for(var be=[],ye=U;ye<=B;ye++)be.push(S.session.getLine(ye));if(re=be.join(`
`),V=H(ae.start.row,ae.start.column),ie=H(ae.end.row,ae.end.column),ae.start.rowB){var de=S.session.getLine(B+1);ie=ae.end.row>B+1?de.length:ae.end.column,ie+=re.length+1,re=re+`
`+de}else $&&me>0&&(re=`
`+re,ie+=1,V+=1);re.length>t&&(V=L.length&&V.value===L&&L&&V.selectionEnd!==O},Y=function(V){R||(v?v=!1:W(p)?(S.selectAll(),z()):$&&p.selectionStart!=E&&z())},Z=null;this.setInputHandler=function(V){Z=V},this.getInputHandler=function(){return Z};var q=!1,Q=function(V,ie){if(q&&(q=!1),A)return z(),V&&S.onPaste(V),A=!1,"";for(var re=p.selectionStart,he=p.selectionEnd,ae=E,me=L.length-O,be=V,ye=V.length-re,ge=V.length-he,de=0;ae>0&&L[de]==V[de];)de++,ae--;for(be=be.slice(de),de=1;me>0&&L.length-de>E-1&&L[L.length-de]==V[V.length-de];)de++,me--;ye-=de-1,ge-=de-1;var Me=be.length-de+1;if(Me<0&&(ae=-Me,Me=0),be=be.slice(0,Me),!ie&&!be&&!ye&&!ae&&!me&&!ge)return"";w=!0;var Be=!1;return y.isAndroid&&be==". "&&(be=" ",Be=!0),be&&!ae&&!me&&!ye&&!ge||g?S.onTextInput(be):S.onTextInput(be,{extendLeft:ae,extendRight:me,restoreStart:ye,restoreEnd:ge}),w=!1,L=V,E=re,O=he,D=ge,Be?`
`:be},ee=function(V){if(R)return pe();if(V&&V.inputType){if(V.inputType=="historyUndo")return S.execCommand("undo");if(V.inputType=="historyRedo")return S.execCommand("redo")}var ie=p.value,re=Q(ie,!0);(ie.length>t+100||f.test(re)||$&&E<1&&E==O)&&z()},te=function(V,ie,re){var he=V.clipboardData||window.clipboardData;if(!(!he||i)){var ae=n||re?"Text":"text/plain";try{return ie?he.setData(ae,ie)!==!1:he.getData(ae)}catch(me){if(!re)return te(me,ie,!0)}}},J=function(V,ie){var re=S.getCopyText();if(!re)return b.preventDefault(V);te(V,re)?(h&&(z(re),v=re,setTimeout(function(){v=!1},10)),ie?S.onCut():S.onCopy(),b.preventDefault(V)):(v=!0,p.value=re,p.select(),setTimeout(function(){v=!1,z(),ie?S.onCut():S.onCopy()}))},le=function(V){J(V,!0)},ue=function(V){J(V,!1)},fe=function(V){var ie=te(V);s.pasteCancelled()||(typeof ie=="string"?(ie&&S.onPaste(ie,V),y.isIE&&setTimeout(z),b.preventDefault(V)):(p.value="",A=!0))};b.addCommandKeyListener(p,S.onCommandKey.bind(S),S),b.addListener(p,"select",Y,S),b.addListener(p,"input",ee,S),b.addListener(p,"cut",le,S),b.addListener(p,"copy",ue,S),b.addListener(p,"paste",fe,S),(!("oncut"in p)||!("oncopy"in p)||!("onpaste"in p))&&b.addListener(M,"keydown",function(V){if(!(y.isMac&&!V.metaKey||!V.ctrlKey))switch(V.keyCode){case 67:ue(V);break;case 86:fe(V);break;case 88:le(V);break}},S);var oe=function(V){if(!(R||!S.onCompositionStart||S.$readOnly)&&(R={},!g)){V.data&&(R.useTextareaForIME=!1),setTimeout(pe,0),S._signal("compositionStart"),S.on("mousedown",_e);var ie=S.getSelectionRange();ie.end.row=ie.start.row,ie.end.column=ie.start.column,R.markerRange=ie,R.selectionStart=E,S.onCompositionStart(R),R.useTextareaForIME?(L=p.value="",E=0,O=0):(p.msGetInputContext&&(R.context=p.msGetInputContext()),p.getInputContext&&(R.context=p.getInputContext()))}},pe=function(){if(!(!R||!S.onCompositionUpdate||S.$readOnly)){if(g)return _e();if(R.useTextareaForIME)S.onCompositionUpdate(p.value);else{var V=p.value;Q(V),R.markerRange&&(R.context&&(R.markerRange.start.column=R.selectionStart=R.context.compositionStartOffset),R.markerRange.end.column=R.markerRange.start.column+O-R.selectionStart+D)}}},Te=function(V){!S.onCompositionEnd||S.$readOnly||(R=!1,S.onCompositionEnd(),S.off("mousedown",_e),V&&ee())};function _e(){d=!0,p.blur(),p.focus(),d=!1}var Ee=c.delayedCall(pe,50).schedule.bind(null,null);function we(V){V.keyCode==27&&p.value.lengthO&&L[ge]==`
`?de=o.end:yeO&&L.slice(0,ge).split(`
`).length>2?de=o.down:ge>O&&L[ge-1]==" "?(de=o.right,Me=l.option):(ge>O||ge==O&&O!=E&&ye==ge)&&(de=o.right),ye!==ge&&(Me|=l.shift),de){var Be=ie.onCommandKey({},Me,de);if(!Be&&ie.commands){de=o.keyCodeToString(de);var Ze=ie.commands.findKeyCommand(Me,de);Ze&&ie.execCommand(Ze)}E=ye,O=ge,z("")}}};document.addEventListener("selectionchange",me),ie.on("destroy",function(){document.removeEventListener("selectionchange",me)})}this.destroy=function(){p.parentElement&&p.parentElement.removeChild(p)}};T.TextInput=m,T.$setUserAgentForTests=function(M,S){$=M,h=S}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(I,T,_){"use strict";var b=I("../lib/useragent"),C=0,y=550,a=function(){function i(n){n.$clickSelection=null;var e=n.editor;e.setDefaultHandler("mousedown",this.onMouseDown.bind(n)),e.setDefaultHandler("dblclick",this.onDoubleClick.bind(n)),e.setDefaultHandler("tripleclick",this.onTripleClick.bind(n)),e.setDefaultHandler("quadclick",this.onQuadClick.bind(n)),e.setDefaultHandler("mousewheel",this.onMouseWheel.bind(n));var t=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];t.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 e=n.inSelection(),t=n.getDocumentPosition();this.mousedownEvent=n;var o=this.editor,l=n.getButton();if(l!==0){var h=o.getSelectionRange(),f=h.isEmpty();(f||l==1)&&o.selection.moveToPosition(t),l==2&&(o.textInput.onContextMenu(n.domEvent),b.isMozilla||n.preventDefault());return}if(this.mousedownEvent.time=Date.now(),e&&!o.isFocused()&&(o.focus(),this.$focusTimeout&&!this.$clickSelection&&!o.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(n);return}return this.captureMouse(n),this.startSelect(t,n.domEvent._clicks>1),n.preventDefault()},i.prototype.startSelect=function(n,e){n=n||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var t=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?t.selection.selectToPosition(n):e||t.selection.moveToPosition(n),e||this.select(),t.setStyle("ace_selecting"),this.setState("select"))},i.prototype.select=function(){var n,e=this.editor,t=e.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var o=this.$clickSelection.comparePoint(t);if(o==-1)n=this.$clickSelection.end;else if(o==1)n=this.$clickSelection.start;else{var l=s(this.$clickSelection,t);t=l.cursor,n=l.anchor}e.selection.setSelectionAnchor(n.row,n.column)}e.selection.selectToPosition(t),e.renderer.scrollCursorIntoView()},i.prototype.extendSelectionBy=function(n){var e,t=this.editor,o=t.renderer.screenToTextCoordinates(this.x,this.y),l=t.selection[n](o.row,o.column);if(this.$clickSelection){var h=this.$clickSelection.comparePoint(l.start),f=this.$clickSelection.comparePoint(l.end);if(h==-1&&f<=0)e=this.$clickSelection.end,(l.end.row!=o.row||l.end.column!=o.column)&&(o=l.start);else if(f==1&&h>=0)e=this.$clickSelection.start,(l.start.row!=o.row||l.start.column!=o.column)&&(o=l.end);else if(h==-1&&f==1)o=l.end,e=l.start;else{var $=s(this.$clickSelection,o);o=$.cursor,e=$.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(o),t.renderer.scrollCursorIntoView()},i.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},i.prototype.focusWait=function(){var n=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),e=Date.now();(n>C||e-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},i.prototype.onDoubleClick=function(n){var e=n.getDocumentPosition(),t=this.editor,o=t.session,l=o.getBracketRange(e);l?(l.isEmpty()&&(l.start.column--,l.end.column++),this.setState("select")):(l=t.selection.getWordRange(e.row,e.column),this.setState("selectByWords")),this.$clickSelection=l,this.select()},i.prototype.onTripleClick=function(n){var e=n.getDocumentPosition(),t=this.editor;this.setState("selectByLines");var o=t.getSelectionRange();o.isMultiLine()&&o.contains(e.row,e.column)?(this.$clickSelection=t.selection.getLineRange(o.start.row),this.$clickSelection.end=t.selection.getLineRange(o.end.row).end):this.$clickSelection=t.selection.getLineRange(e.row),this.select()},i.prototype.onQuadClick=function(n){var e=this.editor;e.selectAll(),this.$clickSelection=e.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 e=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var t=this.$lastScroll,o=n.domEvent.timeStamp,l=o-t.t,h=l?n.wheelX/l:t.vx,f=l?n.wheelY/l:t.vy;l=1&&e.renderer.isScrollableBy(n.wheelX*n.speed,0)&&(m=!0),$<=1&&e.renderer.isScrollableBy(0,n.wheelY*n.speed)&&(m=!0),m)t.allowed=o;else if(o-t.allowed=t.length&&(t=void 0),{value:t&&t[h++],done:!t}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},y=I("./lib/dom"),a=I("./range").Range,c="ace_tooltip",s=function(){function t(o){this.isOpen=!1,this.$element=null,this.$parentNode=o}return t.prototype.$init=function(){return this.$element=y.createElement("div"),this.$element.className=c,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},t.prototype.getElement=function(){return this.$element||this.$init()},t.prototype.setText=function(o){this.getElement().textContent=o},t.prototype.setHtml=function(o){this.getElement().innerHTML=o},t.prototype.setPosition=function(o,l){this.getElement().style.left=o+"px",this.getElement().style.top=l+"px"},t.prototype.setClassName=function(o){y.addCssClass(this.getElement(),o)},t.prototype.setTheme=function(o){this.$element.className=c+" "+(o.isDark?"ace_dark ":"")+(o.cssClass||"")},t.prototype.show=function(o,l,h){o!=null&&this.setText(o),l!=null&&h!=null&&this.setPosition(l,h),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},t.prototype.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=c,this.isOpen=!1)},t.prototype.getHeight=function(){return this.getElement().offsetHeight},t.prototype.getWidth=function(){return this.getElement().offsetWidth},t.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},t}(),i=function(){function t(){this.popups=[]}return t.prototype.addPopup=function(o){this.popups.push(o),this.updatePopups()},t.prototype.removePopup=function(o){var l=this.popups.indexOf(o);l!==-1&&(this.popups.splice(l,1),this.updatePopups())},t.prototype.updatePopups=function(){var o,l,h,f;this.popups.sort(function(w,x){return x.priority-w.priority});var $=[];try{for(var m=C(this.popups),M=m.next();!M.done;M=m.next()){var S=M.value,p=!0;try{for(var v=(h=void 0,C($)),A=v.next();!A.done;A=v.next()){var R=A.value;if(this.doPopupsOverlap(R,S)){p=!1;break}}}catch(w){h={error:w}}finally{try{A&&!A.done&&(f=v.return)&&f.call(v)}finally{if(h)throw h.error}}p?$.push(S):S.hide()}}catch(w){o={error:w}}finally{try{M&&!M.done&&(l=m.return)&&l.call(m)}finally{if(o)throw o.error}}},t.prototype.doPopupsOverlap=function(o,l){var h=o.getElement().getBoundingClientRect(),f=l.getElement().getBoundingClientRect();return h.leftf.left&&h.topf.top},t}(),n=new i;T.popupManager=n,T.Tooltip=s;var e=function(t){b(o,t);function o(l){l===void 0&&(l=document.body);var h=t.call(this,l)||this;h.timeout=void 0,h.lastT=0,h.idleTime=350,h.lastEvent=void 0,h.onMouseOut=h.onMouseOut.bind(h),h.onMouseMove=h.onMouseMove.bind(h),h.waitForHover=h.waitForHover.bind(h),h.hide=h.hide.bind(h);var f=h.getElement();return f.style.whiteSpace="pre-wrap",f.style.pointerEvents="auto",f.addEventListener("mouseout",h.onMouseOut),f.tabIndex=-1,f.addEventListener("blur",(function(){f.contains(document.activeElement)||this.hide()}).bind(h)),h}return o.prototype.addToEditor=function(l){l.on("mousemove",this.onMouseMove),l.on("mousedown",this.hide),l.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},o.prototype.removeFromEditor=function(l){l.off("mousemove",this.onMouseMove),l.off("mousedown",this.hide),l.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},o.prototype.onMouseMove=function(l,h){this.lastEvent=l,this.lastT=Date.now();var f=h.$mouseHandler.isMousePressed;if(this.isOpen){var $=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains($.row,$.column)||f||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||f||(this.lastEvent=l,this.timeout=setTimeout(this.waitForHover,this.idleTime))},o.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var l=Date.now()-this.lastT;if(this.idleTime-l>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-l);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},o.prototype.isOutsideOfText=function(l){var h=l.editor,f=l.getDocumentPosition(),$=h.session.getLine(f.row);if(f.column==$.length){var m=h.renderer.pixelToScreenCoordinates(l.clientX,l.clientY),M=h.session.documentToScreenPosition(f.row,f.column);if(M.column!=m.column||M.row!=m.row)return!0}return!1},o.prototype.setDataProvider=function(l){this.$gatherData=l},o.prototype.showForRange=function(l,h,f,$){if(!($&&$!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var m=l.renderer;this.isOpen||(n.addPopup(this),this.$registerCloseEvents(),this.setTheme(m.theme)),this.isOpen=!0,this.addMarker(h,l.session),this.range=a.fromPoints(h.start,h.end);var M=this.getElement();M.innerHTML="",M.appendChild(f),M.style.display="block";var S=m.textToScreenCoordinates(h.start.row,h.start.column),p=M.clientHeight,v=m.scroller.getBoundingClientRect(),A=!0;S.pageY-p<0&&(A=!1),A?S.pageY-=p:S.pageY+=m.lineHeight,M.style.maxWidth=v.width-(S.pageX-v.left)+"px",this.setPosition(S.pageX,S.pageY)}},o.prototype.addMarker=function(l,h){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=h,this.marker=h&&h.addMarker(l,"ace_highlight-marker","text")},o.prototype.hide=function(l){!l&&document.activeElement==this.getElement()||l&&l.target&&(l.type!="keydown"||l.ctrlKey||l.metaKey)&&this.$element.contains(l.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,n.removePopup(this)))},o.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("mousewheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},o.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("mousewheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},o.prototype.onMouseOut=function(l){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!l.relatedTarget||l.relatedTarget==this.getElement()||l&&l.currentTarget.contains(l.relatedTarget)||l.relatedTarget.classList.contains("ace_content")||this.hide())},o}(s);T.HoverTooltip=e}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(I,T,_){"use strict";var b=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)Object.prototype.hasOwnProperty.call(h,f)&&(l[f]=h[f])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function l(){this.constructor=t}t.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}}(),C=this&&this.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,o=t&&e[t],l=0;if(o)return o.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&l>=e.length&&(e=void 0),{value:e&&e[l++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},y=I("../lib/dom"),a=I("../lib/event"),c=I("../tooltip").Tooltip,s=I("../config").nls;function i(e){var t=e.editor,o=t.renderer.$gutterLayer,l=new n(t);e.editor.setDefaultHandler("guttermousedown",function(S){if(!(!t.isFocused()||S.getButton()!=0)){var p=o.getRegion(S);if(p!="foldWidgets"){var v=S.getDocumentPosition().row,A=t.session.selection;if(S.getShiftKey())A.selectTo(v,0);else{if(S.domEvent.detail==2)return t.selectAll(),S.preventDefault();e.$clickSelection=t.selection.getLineRange(v)}return e.setState("selectByLines"),e.captureMouse(S),S.preventDefault()}}});var h,f;function $(){var S=f.getDocumentPosition().row,p=t.session.getLength();if(S==p){var v=t.renderer.pixelToScreenCoordinates(0,f.y).row,A=f.$pos;if(v>t.session.documentToScreenRow(A.row,A.column))return m()}if(l.showTooltip(S),!!l.isOpen)if(t.on("mousewheel",m),e.$tooltipFollowsMouse)M(f);else{var R=f.getGutterRow(),w=o.$lines.get(R);if(w){var x=w.element.querySelector(".ace_gutter_annotation"),g=x.getBoundingClientRect(),d=l.getElement().style;d.left=g.right+"px",d.top=g.bottom+"px"}else M(f)}}function m(){h&&(h=clearTimeout(h)),l.isOpen&&(l.hideTooltip(),t.off("mousewheel",m))}function M(S){l.setPosition(S.x,S.y)}e.editor.setDefaultHandler("guttermousemove",function(S){var p=S.domEvent.target||S.domEvent.srcElement;if(y.hasCssClass(p,"ace_fold-widget"))return m();l.isOpen&&e.$tooltipFollowsMouse&&M(S),f=S,!h&&(h=setTimeout(function(){h=null,f&&!e.isMousePressed?$():m()},50))}),a.addListener(t.renderer.$gutter,"mouseout",function(S){f=null,!(!l.isOpen||h)&&(h=setTimeout(function(){h=null,m()},50))},t),t.on("changeSession",m),t.on("input",m)}T.GutterHandler=i;var n=function(e){b(t,e);function t(o){var l=e.call(this,o.container)||this;return l.editor=o,l}return t.prototype.setPosition=function(o,l){var h=window.innerWidth||document.documentElement.clientWidth,f=window.innerHeight||document.documentElement.clientHeight,$=this.getWidth(),m=this.getHeight();o+=15,l+=15,o+$>h&&(o-=o+$-h),l+m>f&&(l-=20+m),c.prototype.setPosition.call(this,o,l)},Object.defineProperty(t,"annotationLabels",{get:function(){return{error:{singular:s("error"),plural:s("errors")},warning:{singular:s("warning"),plural:s("warnings")},info:{singular:s("information message"),plural:s("information messages")}}},enumerable:!1,configurable:!0}),t.prototype.showTooltip=function(o){var l=this.editor.renderer.$gutterLayer,h=l.$annotations[o],f;h?f={text:Array.from(h.text),type:Array.from(h.type)}:f={text:[],type:[]};var $=l.session.getFoldLine(o);if($&&l.$showFoldedAnnotations){for(var m={error:[],warning:[],info:[]},M,S=o+1;S<=$.end.row;S++)if(l.$annotations[S])for(var p=0;p ").concat(f.text[S]);R[f.type[S].replace("_fold","")].push(x)}var g=[].concat(R.error,R.warning,R.info).join("
");this.setHtml(g),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},t.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},t.annotationsToSummaryString=function(o){var l,h,f=[],$=["error","warning","info"];try{for(var m=C($),M=m.next();!M.done;M=m.next()){var S=M.value;if(o[S].length){var p=o[S].length===1?t.annotationLabels[S].singular:t.annotationLabels[S].plural;f.push("".concat(o[S].length," ").concat(p))}}}catch(v){l={error:v}}finally{try{M&&!M.done&&(h=m.return)&&h.call(m)}finally{if(l)throw l.error}}return f.join(", ")},t}(c);T.GutterTooltip=n}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(I,T,_){"use strict";var b=I("../lib/event"),C=I("../lib/useragent"),y=function(){function a(c,s){this.domEvent=c,this.editor=s,this.x=this.clientX=c.clientX,this.y=this.clientY=c.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return a.prototype.stopPropagation=function(){b.stopPropagation(this.domEvent),this.propagationStopped=!0},a.prototype.preventDefault=function(){b.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.getGutterRow=function(){var c=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(c,0),i=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-i},a.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var c=this.editor,s=c.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var i=this.getDocumentPosition();this.$inSelection=s.contains(i.row,i.column)}return this.$inSelection},a.prototype.getButton=function(){return b.getButton(this.domEvent)},a.prototype.getShiftKey=function(){return this.domEvent.shiftKey},a.prototype.getAccelKey=function(){return C.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},a}();T.MouseEvent=y}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(I,T,_){"use strict";var b=I("../lib/dom"),C=I("../lib/event"),y=I("../lib/useragent"),a=200,c=200,s=5;function i(e){var t=e.editor,o=b.createElement("div");o.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",o.textContent="\xA0";var l=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];l.forEach(function(H){e[H]=this[H]},this),t.on("mousedown",this.onMouseDown.bind(e));var h=t.container,f,$,m,M,S,p,v=0,A,R,w,x,g;this.onDragStart=function(H){if(this.cancelDrag||!h.draggable){var z=this;return setTimeout(function(){z.startSelect(),z.captureMouse(H)},0),H.preventDefault()}S=t.getSelectionRange();var W=H.dataTransfer;W.effectAllowed=t.getReadOnly()?"copy":"copyMove",t.container.appendChild(o),W.setDragImage&&W.setDragImage(o,0,0),setTimeout(function(){t.container.removeChild(o)}),W.clearData(),W.setData("Text",t.session.getTextRange()),R=!0,this.setState("drag")},this.onDragEnd=function(H){if(h.draggable=!1,R=!1,this.setState(null),!t.getReadOnly()){var z=H.dataTransfer.dropEffect;!A&&z=="move"&&t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(H){if(!(t.getReadOnly()||!j(H.dataTransfer)))return $=H.clientX,m=H.clientY,f||O(),v++,H.dataTransfer.dropEffect=A=P(H),C.preventDefault(H)},this.onDragOver=function(H){if(!(t.getReadOnly()||!j(H.dataTransfer)))return $=H.clientX,m=H.clientY,f||(O(),v++),U!==null&&(U=null),H.dataTransfer.dropEffect=A=P(H),C.preventDefault(H)},this.onDragLeave=function(H){if(v--,v<=0&&f)return D(),A=null,C.preventDefault(H)},this.onDrop=function(H){if(p){var z=H.dataTransfer;if(R)switch(A){case"move":S.contains(p.row,p.column)?S={start:p,end:p}:S=t.moveText(S,p);break;case"copy":S=t.moveText(S,p,!0);break}else{var W=z.getData("Text");S={start:p,end:t.session.insert(p,W)},t.focus(),A=null}return D(),C.preventDefault(H)}},C.addListener(h,"dragstart",this.onDragStart.bind(e),t),C.addListener(h,"dragend",this.onDragEnd.bind(e),t),C.addListener(h,"dragenter",this.onDragEnter.bind(e),t),C.addListener(h,"dragover",this.onDragOver.bind(e),t),C.addListener(h,"dragleave",this.onDragLeave.bind(e),t),C.addListener(h,"drop",this.onDrop.bind(e),t);function d(H,z){var W=Date.now(),Y=!z||H.row!=z.row,Z=!z||H.column!=z.column;if(!x||Y||Z)t.moveCursorToPosition(H),x=W,g={x:$,y:m};else{var q=n(g.x,g.y,$,m);q>s?x=null:W-x>=c&&(t.renderer.scrollCursorIntoView(),x=null)}}function L(H,z){var W=Date.now(),Y=t.renderer.layerConfig.lineHeight,Z=t.renderer.layerConfig.characterWidth,q=t.renderer.scroller.getBoundingClientRect(),Q={x:{left:$-q.left,right:q.right-$},y:{top:m-q.top,bottom:q.bottom-m}},ee=Math.min(Q.x.left,Q.x.right),te=Math.min(Q.y.top,Q.y.bottom),J={row:H.row,column:H.column};ee/Z<=2&&(J.column+=Q.x.left=a&&t.renderer.scrollCursorIntoView(J):w=W:w=null}function E(){var H=p;p=t.renderer.screenToTextCoordinates($,m),d(p,H),L(p,H)}function O(){S=t.selection.toOrientedRange(),f=t.session.addMarker(S,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(M),E(),M=setInterval(E,20),v=0,C.addListener(document,"mousemove",B)}function D(){clearInterval(M),t.session.removeMarker(f),f=null,t.selection.fromOrientedRange(S),t.isFocused()&&!R&&t.$resetCursorStyle(),S=null,p=null,v=0,w=null,x=null,C.removeListener(document,"mousemove",B)}var U=null;function B(){U==null&&(U=setTimeout(function(){U!=null&&f&&D()},20))}function j(H){var z=H.types;return!z||Array.prototype.some.call(z,function(W){return W=="text/plain"||W=="Text"})}function P(H){var z=["copy","copymove","all","uninitialized"],W=["move","copymove","linkmove","all","uninitialized"],Y=y.isMac?H.altKey:H.ctrlKey,Z="uninitialized";try{Z=H.dataTransfer.effectAllowed.toLowerCase()}catch{}var q="none";return Y&&z.indexOf(Z)>=0?q="copy":W.indexOf(Z)>=0?q="move":z.indexOf(Z)>=0&&(q="copy"),q}}(function(){this.dragWait=function(){var e=Date.now()-this.mousedownEvent.time;e>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var e=this.editor.container;e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=e.container;t.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var o=y.isWin?"default":"move";e.renderer.setCursorStyle(o),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;if(y.isIE&&this.state=="dragReady"){var o=n(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);o>3&&t.dragDrop()}if(this.state==="dragWait"){var o=n(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);o>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,o=e.inSelection(),l=e.getButton(),h=e.domEvent.detail||1;if(h===1&&l===0&&o){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var f=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in f&&(f.unselectable="on"),t.getDragDelay()){if(y.isWebKit){this.cancelDrag=!0;var $=t.container;$.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(i.prototype);function n(e,t,o,l){return Math.sqrt(Math.pow(o-e,2)+Math.pow(l-t,2))}T.DragdropHandler=i}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(I,T,_){"use strict";var b=I("./mouse_event").MouseEvent,C=I("../lib/event"),y=I("../lib/dom");T.addTouchListeners=function(a,c){var s="scroll",i,n,e,t,o,l,h=0,f,$=0,m=0,M=0,S,p;function v(){var d=window.navigator&&window.navigator.clipboard,L=!1,E=function(){var D=c.getCopyText(),U=c.session.getUndoManager().hasUndo();p.replaceChild(y.buildDom(L?["span",!D&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],D&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],D&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],d&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],U&&["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"]),p.firstChild)},O=function(D){var U=D.target.getAttribute("action");if(U=="more"||!L)return L=!L,E();U=="paste"?d.readText().then(function(B){c.execCommand(U,B)}):U&&((U=="cut"||U=="copy")&&(d?d.writeText(c.getCopyText()):document.execCommand("copy")),c.execCommand(U)),p.firstChild.style.display="none",L=!1,U!="openCommandPallete"&&c.focus()};p=y.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(D){s="menu",D.stopPropagation(),D.preventDefault(),c.textInput.focus()},ontouchend:function(D){D.stopPropagation(),D.preventDefault(),O(D)},onclick:O},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],c.container)}function A(){p||v();var d=c.selection.cursor,L=c.renderer.textToScreenCoordinates(d.row,d.column),E=c.renderer.textToScreenCoordinates(0,0).pageX,O=c.renderer.scrollLeft,D=c.container.getBoundingClientRect();p.style.top=L.pageY-D.top-3+"px",L.pageX-D.left=2?c.selection.getLineRange(f.row):c.session.getBracketRange(f);d&&!d.isEmpty()?c.selection.setRange(d):c.selection.selectWord(),s="wait"}C.addListener(a,"contextmenu",function(d){if(S){var L=c.textInput.getElement();L.focus()}},c),C.addListener(a,"touchstart",function(d){var L=d.touches;if(o||L.length>1){clearTimeout(o),o=null,e=-1,s="zoom";return}S=c.$mouseHandler.isMousePressed=!0;var E=c.renderer.layerConfig.lineHeight,O=c.renderer.layerConfig.lineHeight,D=d.timeStamp;t=D;var U=L[0],B=U.clientX,j=U.clientY;Math.abs(i-B)+Math.abs(n-j)>E&&(e=-1),i=d.clientX=B,n=d.clientY=j,m=M=0;var P=new b(d,c);if(f=P.getDocumentPosition(),D-e<500&&L.length==1&&!h)$++,d.preventDefault(),d.button=0,x();else{$=0;var H=c.selection.cursor,z=c.selection.isEmpty()?H:c.selection.anchor,W=c.renderer.$cursorLayer.getPixelPosition(H,!0),Y=c.renderer.$cursorLayer.getPixelPosition(z,!0),Z=c.renderer.scroller.getBoundingClientRect(),q=c.renderer.layerConfig.offset,Q=c.renderer.scrollLeft,ee=function(le,ue){return le=le/O,ue=ue/E-.75,le*le+ue*ue};if(d.clientXJ?"cursor":"anchor"),J<3.5?s="anchor":te<3.5?s="cursor":s="scroll",o=setTimeout(w,450)}e=D},c),C.addListener(a,"touchend",function(d){S=c.$mouseHandler.isMousePressed=!1,l&&clearInterval(l),s=="zoom"?(s="",h=0):o?(c.selection.moveToPosition(f),h=0,A()):s=="scroll"?(g(),R()):A(),clearTimeout(o),o=null},c),C.addListener(a,"touchmove",function(d){o&&(clearTimeout(o),o=null);var L=d.touches;if(!(L.length>1||s=="zoom")){var E=L[0],O=i-E.clientX,D=n-E.clientY;if(s=="wait")if(O*O+D*D>4)s="cursor";else return d.preventDefault();i=E.clientX,n=E.clientY,d.clientX=E.clientX,d.clientY=E.clientY;var U=d.timeStamp,B=U-t;if(t=U,s=="scroll"){var j=new b(d,c);j.speed=1,j.wheelX=O,j.wheelY=D,10*Math.abs(O)0)if(Te==16){for(we=Ee;we<$e;we++)ee[we]=1;Ee=-1}else Ee=-1;if(_e=le[pe][6],_e)Ee==-1&&(Ee=$e);else if(Ee>-1){for(we=Ee;we<$e;we++)ee[we]=oe;Ee=-1}J[$e]==v&&(ee[$e]=0),a|=oe}if(n){for(we=0;we=0&&J[Oe]==w;Oe--)ee[Oe]=y}}}function W(Q,ee,te){if(!(a=Q){for(ue=le+1;ue=Q;)ue++;for(fe=le,oe=ue-1;fe=ee.length||(ue=te[J-1])!=M&&ue!=S||(fe=ee[J+1])!=M&&fe!=S?p:(c&&(fe=S),fe==ue?fe:p);case g:return ue=J>0?te[J-1]:v,ue==M&&J+10&&te[J-1]==M)return M;if(c)return p;for(pe=J+1,oe=ee.length;pe=1425&&Te<=2303||Te==64286;if(ue=ee[pe],_e&&(ue==m||ue==R))return m}return J<1||(ue=ee[J-1])==v?p:te[J-1];case v:return c=!1,i=!0,y;case A:return n=!0,p;case E:case O:case U:case B:case D:c=!1;case j:return p}}function Z(Q){var ee=Q.charCodeAt(0),te=ee>>8;return te==0?ee>191?$:P[ee]:te==5?/[\u0591-\u05f4]/.test(Q)?m:$:te==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(Q)?L:/[\u0660-\u0669\u066b-\u066c]/.test(Q)?S:ee==1642?d:/[\u06f0-\u06f9]/.test(Q)?M:R:te==32&&ee<=8287?H[ee&255]:te==254&&ee>=65136?R:p}function q(Q){return Q>="\u064B"&&Q<="\u0655"}T.L=$,T.R=m,T.EN=M,T.ON_R=3,T.AN=4,T.R_H=5,T.B=6,T.RLE=7,T.DOT="\xB7",T.doBidiReorder=function(Q,ee,te){if(Q.length<2)return{};var J=Q.split(""),le=new Array(J.length),ue=new Array(J.length),fe=[];y=te?f:h,z(J,fe,J.length,ee);for(var oe=0;oeR&&ee[oe]0&&J[oe-1]==="\u0644"&&/\u0622|\u0623|\u0625|\u0627/.test(J[oe])&&(fe[oe-1]=fe[oe]=T.R_H,oe++);J[J.length-1]===T.DOT&&(fe[J.length-1]=T.B),J[0]==="\u202B"&&(fe[0]=T.RLE);for(var oe=0;oe=0&&(s=this.session.$docRowCache[n])}return s},c.prototype.getSplitIndex=function(){var s=0,i=this.session.$screenRowCache;if(i.length)for(var n,e=this.session.$getRowCacheIndex(i,this.currentRow);this.currentRow-s>0&&(n=this.session.$getRowCacheIndex(i,this.currentRow-s-1),n===e);)e=n,s++;else s=this.currentRow;return s},c.prototype.updateRowLine=function(s,i){s===void 0&&(s=this.getDocumentRow());var n=s===this.session.getLength()-1,e=n?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(s),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var t=this.session.$wrapData[s];t&&(i===void 0&&(i=this.getSplitIndex()),i>0&&t.length?(this.wrapIndent=t.indent,this.wrapOffset=this.wrapIndent*this.charWidths[b.L],this.line=ii?this.session.getOverwrite()?s:s-1:i,e=b.getVisualFromLogicalIdx(n,this.bidiMap),t=this.bidiMap.bidiLevels,o=0;!this.session.getOverwrite()&&s<=i&&t[e]%2!==0&&e++;for(var l=0;li&&t[e]%2===0&&(o+=this.charWidths[t[e]]),this.wrapIndent&&(o+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(o+=this.rtlLineOffset),o},c.prototype.getSelections=function(s,i){var n=this.bidiMap,e=n.bidiLevels,t,o=[],l=0,h=Math.min(s,i)-this.wrapIndent,f=Math.max(s,i)-this.wrapIndent,$=!1,m=!1,M=0;this.wrapIndent&&(l+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var S,p=0;p=h&&Se+l/2;){if(e+=l,t===o.length-1){l=0;break}l=this.charWidths[o[++t]]}return t>0&&o[t-1]%2!==0&&o[t]%2===0?(n0&&o[t-1]%2===0&&o[t]%2!==0?i=1+(n>e?this.bidiMap.logicalFromVisual[t]:this.bidiMap.logicalFromVisual[t-1]):this.isRtlDir&&t===o.length-1&&l===0&&o[t-1]%2===0||!this.isRtlDir&&t===0&&o[t]%2!==0?i=1+this.bidiMap.logicalFromVisual[t]:(t>0&&o[t-1]%2!==0&&l!==0&&t--,i=this.bidiMap.logicalFromVisual[t]),i===0&&this.isRtlDir&&i++,i+this.wrapIndent},c}();T.BidiHandler=a}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(I,T,_){"use strict";var b=I("./lib/oop"),C=I("./lib/lang"),y=I("./lib/event_emitter").EventEmitter,a=I("./range").Range,c=function(){function s(i){this.session=i,this.doc=i.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var n=this;this.cursor.on("change",function(e){n.$cursorChanged=!0,n.$silent||n._emit("changeCursor"),!n.$isEmpty&&!n.$silent&&n._emit("changeSelection"),!n.$keepDesiredColumnOnChange&&e.old.column!=e.value.column&&(n.$desiredColumn=null)}),this.anchor.on("change",function(){n.$anchorChanged=!0,!n.$isEmpty&&!n.$silent&&n._emit("changeSelection")})}return s.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},s.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},s.prototype.getCursor=function(){return this.lead.getPosition()},s.prototype.setAnchor=function(i,n){this.$isEmpty=!1,this.anchor.setPosition(i,n)},s.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},s.prototype.getSelectionLead=function(){return this.lead.getPosition()},s.prototype.isBackwards=function(){var i=this.anchor,n=this.lead;return i.row>n.row||i.row==n.row&&i.column>n.column},s.prototype.getRange=function(){var i=this.anchor,n=this.lead;return this.$isEmpty?a.fromPoints(n,n):this.isBackwards()?a.fromPoints(n,i):a.fromPoints(i,n)},s.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},s.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},s.prototype.setRange=function(i,n){var e=n?i.end:i.start,t=n?i.start:i.end;this.$setSelection(e.row,e.column,t.row,t.column)},s.prototype.$setSelection=function(i,n,e,t){if(!this.$silent){var o=this.$isEmpty,l=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(i,n),this.cursor.setPosition(e,t),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||o!=this.$isEmpty||l)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(i){var n=this.lead;this.$isEmpty&&this.setSelectionAnchor(n.row,n.column),i.call(this)},s.prototype.selectTo=function(i,n){this.$moveSelection(function(){this.moveCursorTo(i,n)})},s.prototype.selectToPosition=function(i){this.$moveSelection(function(){this.moveCursorToPosition(i)})},s.prototype.moveTo=function(i,n){this.clearSelection(),this.moveCursorTo(i,n)},s.prototype.moveToPosition=function(i){this.clearSelection(),this.moveCursorToPosition(i)},s.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},s.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},s.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},s.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},s.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},s.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},s.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},s.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},s.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},s.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},s.prototype.getWordRange=function(i,n){if(typeof n>"u"){var e=i||this.lead;i=e.row,n=e.column}return this.session.getWordRange(i,n)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var i=this.getCursor(),n=this.session.getAWordRange(i.row,i.column);this.setSelectionRange(n)},s.prototype.getLineRange=function(i,n){var e=typeof i=="number"?i:this.lead.row,t,o=this.session.getFoldLine(e);return o?(e=o.start.row,t=o.end.row):t=e,n===!0?new a(e,0,t,this.session.getLine(t).length):new a(e,0,t+1,0)},s.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},s.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},s.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},s.prototype.wouldMoveIntoSoftTab=function(i,n,e){var t=i.column,o=i.column+n;return e<0&&(t=i.column-n,o=i.column),this.session.isTabStop(i)&&this.doc.getLine(i.row).slice(t,o).split(" ").length-1==n},s.prototype.moveCursorLeft=function(){var i=this.lead.getPosition(),n;if(n=this.session.getFoldAt(i.row,i.column,-1))this.moveCursorTo(n.start.row,n.start.column);else if(i.column===0)i.row>0&&this.moveCursorTo(i.row-1,this.doc.getLine(i.row-1).length);else{var e=this.session.getTabSize();this.wouldMoveIntoSoftTab(i,e,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-e):this.moveCursorBy(0,-1)}},s.prototype.moveCursorRight=function(){var i=this.lead.getPosition(),n;if(n=this.session.getFoldAt(i.row,i.column,1))this.moveCursorTo(n.end.row,n.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(n.column=t)}}this.moveCursorTo(n.row,n.column)},s.prototype.moveCursorFileEnd=function(){var i=this.doc.getLength()-1,n=this.doc.getLine(i).length;this.moveCursorTo(i,n)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var i=this.lead.row,n=this.lead.column,e=this.doc.getLine(i),t=e.substring(n);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var o=this.session.getFoldAt(i,n,1);if(o){this.moveCursorTo(o.end.row,o.end.column);return}if(this.session.nonTokenRe.exec(t)&&(n+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,t=e.substring(n)),n>=e.length){this.moveCursorTo(i,e.length),this.moveCursorRight(),i0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(o)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(i,n)},s.prototype.$shortWordEndIndex=function(i){var n=0,e,t=/\s/,o=this.session.tokenRe;if(o.lastIndex=0,this.session.tokenRe.exec(i))n=this.session.tokenRe.lastIndex;else{for(;(e=i[n])&&t.test(e);)n++;if(n<1){for(o.lastIndex=0;(e=i[n])&&!o.test(e);)if(o.lastIndex=0,n++,t.test(e))if(n>2){n--;break}else{for(;(e=i[n])&&t.test(e);)n++;if(n>2)break}}}return o.lastIndex=0,n},s.prototype.moveCursorShortWordRight=function(){var i=this.lead.row,n=this.lead.column,e=this.doc.getLine(i),t=e.substring(n),o=this.session.getFoldAt(i,n,1);if(o)return this.moveCursorTo(o.end.row,o.end.column);if(n==e.length){var l=this.doc.getLength();do i++,t=this.doc.getLine(i);while(i0&&/^\s*$/.test(t));n=t.length,/\s+$/.test(t)||(t="")}var o=C.stringReverse(t),l=this.$shortWordEndIndex(o);return this.moveCursorTo(i,n-l)},s.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},s.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},s.prototype.moveCursorBy=function(i,n){var e=this.session.documentToScreenPosition(this.lead.row,this.lead.column),t;if(n===0&&(i!==0&&(this.session.$bidiHandler.isBidiRow(e.row,this.lead.row)?(t=this.session.$bidiHandler.getPosLeft(e.column),e.column=Math.round(t/this.session.$bidiHandler.charWidths[0])):t=e.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?e.column=this.$desiredColumn:this.$desiredColumn=e.column),i!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var o=this.session.lineWidgets[this.lead.row];i<0?i-=o.rowsAbove||0:i>0&&(i+=o.rowCount-(o.rowsAbove||0))}var l=this.session.screenToDocumentPosition(e.row+i,e.column,t);i!==0&&n===0&&l.row===this.lead.row&&(l.column,this.lead.column),this.moveCursorTo(l.row,l.column+n,n===0)},s.prototype.moveCursorToPosition=function(i){this.moveCursorTo(i.row,i.column)},s.prototype.moveCursorTo=function(i,n,e){var t=this.session.getFoldAt(i,n,1);t&&(i=t.start.row,n=t.start.column),this.$keepDesiredColumnOnChange=!0;var o=this.session.getLine(i);/[\uDC00-\uDFFF]/.test(o.charAt(n))&&o.charAt(n-1)&&(this.lead.row==i&&this.lead.column==n+1?n=n-1:n=n+1),this.lead.setPosition(i,n),this.$keepDesiredColumnOnChange=!1,e||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(i,n,e){var t=this.session.screenToDocumentPosition(i,n);this.moveCursorTo(t.row,t.column,e)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(i){this.setSelectionRange(i,i.cursor==i.start),this.$desiredColumn=i.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(i){var n=this.getRange();return i?(i.start.column=n.start.column,i.start.row=n.start.row,i.end.column=n.end.column,i.end.row=n.end.row):i=n,i.cursor=this.isBackwards()?i.start:i.end,i.desiredColumn=this.$desiredColumn,i},s.prototype.getRangeOfMovements=function(i){var n=this.getCursor();try{i(this);var e=this.getCursor();return a.fromPoints(n,e)}catch{return a.fromPoints(n,n)}finally{this.moveCursorToPosition(n)}},s.prototype.toJSON=function(){if(this.rangeCount)var i=this.ranges.map(function(n){var e=n.clone();return e.isBackwards=n.cursor==n.start,e});else{var i=this.getRange();i.isBackwards=this.isBackwards()}return i},s.prototype.fromJSON=function(i){if(i.start==null)if(this.rangeList&&i.length>1){this.toSingleRange(i[0]);for(var n=i.length;n--;){var e=a.fromPoints(i[n].start,i[n].end);i[n].isBackwards&&(e.cursor=e.start),this.addRange(e,!0)}return}else i=i[0];this.rangeList&&this.toSingleRange(i),this.setSelectionRange(i,i.isBackwards)},s.prototype.isEqual=function(i){if((i.length||this.rangeCount)&&i.length!=this.rangeCount)return!1;if(!i.length||!this.ranges)return this.getRange().isEqual(i);for(var n=this.ranges.length;n--;)if(!this.ranges[n].isEqual(i[n]))return!1;return!0},s}();c.prototype.setSelectionAnchor=c.prototype.setAnchor,c.prototype.getSelectionAnchor=c.prototype.getAnchor,c.prototype.setSelectionRange=c.prototype.setRange,b.implement(c.prototype,y),T.Selection=c}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(I,T,_){"use strict";var b=I("./lib/report_error").reportError,C=2e3,y=function(){function a(c){this.states=c,this.regExps={},this.matchMappings={};for(var s in this.states){for(var i=this.states[s],n=[],e=0,t=this.matchMappings[s]={defaultToken:"text"},o="g",l=[],h=0;h1?f.onMatch=this.$applyToken:f.onMatch=f.token),m>1&&(/\\\d/.test(f.regex)?$=f.regex.replace(/\\([0-9]+)/g,function(M,S){return"\\"+(parseInt(S,10)+e+1)}):(m=1,$=this.removeCapturingGroups(f.regex)),!f.splitRegex&&typeof f.token!="string"&&l.push(f)),t[e]=h,e+=m,n.push($),f.onMatch||(f.onMatch=null)}}n.length||(t[0]=0,n.push("$")),l.forEach(function(M){M.splitRegex=this.createSplitterRegexp(M.regex,o)},this),this.regExps[s]=new RegExp("("+n.join(")|(")+")|($)",o)}}return a.prototype.$setMaxTokenCount=function(c){C=c|0},a.prototype.$applyToken=function(c){var s=this.splitRegex.exec(c).slice(1),i=this.token.apply(this,s);if(typeof i=="string")return[{type:i,value:c}];for(var n=[],e=0,t=i.length;ef){var A=c.substring(f,v-p.length);m.type==M?m.value+=A:(m.type&&h.push(m),m={type:M,value:A})}for(var R=0;RC){for($>2*c.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:c});f1&&i[0]!==n&&i.unshift("#tmp",n),{tokens:h,state:i.length?i:n}},a}();y.prototype.reportError=b,T.Tokenizer=y}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(I,T,_){"use strict";var b=I("../lib/deep_copy").deepCopy,C=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(c,s){if(!s){for(var i in c)this.$rules[i]=c[i];return}for(var i in c){for(var n=c[i],e=0;e=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]},y.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},y.prototype.getCurrentTokenRow=function(){return this.$row},y.prototype.getCurrentTokenColumn=function(){var a=this.$rowTokens,c=this.$tokenIndex,s=a[c].start;if(s!==void 0)return s;for(s=0;c>0;)c-=1,s+=a[c].value.length;return s},y.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},y.prototype.getCurrentTokenRange=function(){var a=this.$rowTokens[this.$tokenIndex],c=this.getCurrentTokenColumn();return new b(this.$row,c,this.$row,c+a.value.length)},y}();T.TokenIterator=C}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(I,T,_){"use strict";var b=I("../../lib/oop"),C=I("../behaviour").Behaviour,y=I("../../token_iterator").TokenIterator,a=I("../../lib/lang"),c=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],i,n={},e={'"':'"',"'":"'"},t=function(h){var f=-1;if(h.multiSelect&&(f=h.selection.index,n.rangeCount!=h.multiSelect.rangeCount&&(n={rangeCount:h.multiSelect.rangeCount})),n[f])return i=n[f];i=n[f]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},o=function(h,f,$,m){var M=h.end.row-h.start.row;return{text:$+f+m,selection:[0,h.start.column+1,M,h.end.column+(M?0:1)]}},l=function(h){h=h||{},this.add("braces","insertion",function(f,$,m,M,S){var p=m.getCursorPosition(),v=M.doc.getLine(p.row);if(S=="{"){t(m);var A=m.getSelectionRange(),R=M.doc.getTextRange(A);if(R!==""&&R!=="{"&&m.getWrapBehavioursEnabled())return o(A,R,"{","}");if(l.isSaneInsertion(m,M))return/[\]\}\)]/.test(v[p.column])||m.inMultiSelectMode||h.braces?(l.recordAutoInsert(m,M,"}"),{text:"{}",selection:[1,1]}):(l.recordMaybeInsert(m,M,"{"),{text:"{",selection:[1,1]})}else if(S=="}"){t(m);var w=v.substring(p.column,p.column+1);if(w=="}"){var x=M.$findOpeningBracket("}",{column:p.column+1,row:p.row});if(x!==null&&l.isAutoInsertedClosing(p,v,S))return l.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(S==`
`||S==`\r
`){t(m);var g="";l.isMaybeInsertedClosing(p,v)&&(g=a.stringRepeat("}",i.maybeInsertedBrackets),l.clearMaybeInsertedClosing());var w=v.substring(p.column,p.column+1);if(w==="}"){var d=M.findMatchingBracket({row:p.row,column:p.column+1},"}");if(!d)return null;var L=this.$getIndent(M.getLine(d.row))}else if(g)var L=this.$getIndent(v);else{l.clearMaybeInsertedClosing();return}var E=L+M.getTabString();return{text:`
`+E+`
`+L+g,selection:[1,E.length,1,E.length]}}else l.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(f,$,m,M,S){var p=M.doc.getTextRange(S);if(!S.isMultiLine()&&p=="{"){t(m);var v=M.doc.getLine(S.start.row),A=v.substring(S.end.column,S.end.column+1);if(A=="}")return S.end.column++,S;i.maybeInsertedBrackets--}}),this.add("parens","insertion",function(f,$,m,M,S){if(S=="("){t(m);var p=m.getSelectionRange(),v=M.doc.getTextRange(p);if(v!==""&&m.getWrapBehavioursEnabled())return o(p,v,"(",")");if(l.isSaneInsertion(m,M))return l.recordAutoInsert(m,M,")"),{text:"()",selection:[1,1]}}else if(S==")"){t(m);var A=m.getCursorPosition(),R=M.doc.getLine(A.row),w=R.substring(A.column,A.column+1);if(w==")"){var x=M.$findOpeningBracket(")",{column:A.column+1,row:A.row});if(x!==null&&l.isAutoInsertedClosing(A,R,S))return l.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(f,$,m,M,S){var p=M.doc.getTextRange(S);if(!S.isMultiLine()&&p=="("){t(m);var v=M.doc.getLine(S.start.row),A=v.substring(S.start.column+1,S.start.column+2);if(A==")")return S.end.column++,S}}),this.add("brackets","insertion",function(f,$,m,M,S){if(S=="["){t(m);var p=m.getSelectionRange(),v=M.doc.getTextRange(p);if(v!==""&&m.getWrapBehavioursEnabled())return o(p,v,"[","]");if(l.isSaneInsertion(m,M))return l.recordAutoInsert(m,M,"]"),{text:"[]",selection:[1,1]}}else if(S=="]"){t(m);var A=m.getCursorPosition(),R=M.doc.getLine(A.row),w=R.substring(A.column,A.column+1);if(w=="]"){var x=M.$findOpeningBracket("]",{column:A.column+1,row:A.row});if(x!==null&&l.isAutoInsertedClosing(A,R,S))return l.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(f,$,m,M,S){var p=M.doc.getTextRange(S);if(!S.isMultiLine()&&p=="["){t(m);var v=M.doc.getLine(S.start.row),A=v.substring(S.start.column+1,S.start.column+2);if(A=="]")return S.end.column++,S}}),this.add("string_dquotes","insertion",function(f,$,m,M,S){var p=M.$mode.$quotes||e;if(S.length==1&&p[S]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(S)!=-1)return;t(m);var v=S,A=m.getSelectionRange(),R=M.doc.getTextRange(A);if(R!==""&&(R.length!=1||!p[R])&&m.getWrapBehavioursEnabled())return o(A,R,v,v);if(!R){var w=m.getCursorPosition(),x=M.doc.getLine(w.row),g=x.substring(w.column-1,w.column),d=x.substring(w.column,w.column+1),L=M.getTokenAt(w.row,w.column),E=M.getTokenAt(w.row,w.column+1);if(g=="\\"&&L&&/escape/.test(L.type))return null;var O=L&&/string|escape/.test(L.type),D=!E||/string|escape/.test(E.type),U;if(d==v)U=O!==D,U&&/string\.end/.test(E.type)&&(U=!1);else{if(O&&!D||O&&D)return null;var B=M.$mode.tokenRe;B.lastIndex=0;var j=B.test(g);B.lastIndex=0;var P=B.test(d),H=M.$mode.$pairQuotesAfter,z=H&&H[v]&&H[v].test(g);if(!z&&j||P||d&&!/[\s;,.})\]\\]/.test(d))return null;var W=x[w.column-2];if(g==v&&(W==v||B.test(W)))return null;U=!0}return{text:U?v+v:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(f,$,m,M,S){var p=M.$mode.$quotes||e,v=M.doc.getTextRange(S);if(!S.isMultiLine()&&p.hasOwnProperty(v)){t(m);var A=M.doc.getLine(S.start.row),R=A.substring(S.start.column+1,S.start.column+2);if(R==v)return S.end.column++,S}}),h.closeDocComment!==!1&&this.add("doc comment end","insertion",function(f,$,m,M,S){if(f==="doc-start"&&(S===`
`||S===`\r
`)&&m.selection.isEmpty()){var p=m.getCursorPosition(),v=M.doc.getLine(p.row),A=M.doc.getLine(p.row+1),R=this.$getIndent(v);if(/\s*\*/.test(A))return/^\s*\*/.test(v)?{text:S+R+"* ",selection:[1,3+R.length,1,3+R.length]}:{text:S+R+" * ",selection:[1,3+R.length,1,3+R.length]};if(/\/\*\*/.test(v.substring(0,p.column)))return{text:S+R+" * "+S+" "+R+"*/",selection:[1,4+R.length,1,4+R.length]}}})};l.isSaneInsertion=function(h,f){var $=h.getCursorPosition(),m=new y(f,$.row,$.column);if(!this.$matchTokenType(m.getCurrentToken()||"text",c)){if(/[)}\]]/.test(h.session.getLine($.row)[$.column]))return!0;var M=new y(f,$.row,$.column+1);if(!this.$matchTokenType(M.getCurrentToken()||"text",c))return!1}return m.stepForward(),m.getCurrentTokenRow()!==$.row||this.$matchTokenType(m.getCurrentToken()||"text",s)},l.$matchTokenType=function(h,f){return f.indexOf(h.type||h)>-1},l.recordAutoInsert=function(h,f,$){var m=h.getCursorPosition(),M=f.doc.getLine(m.row);this.isAutoInsertedClosing(m,M,i.autoInsertedLineEnd[0])||(i.autoInsertedBrackets=0),i.autoInsertedRow=m.row,i.autoInsertedLineEnd=$+M.substr(m.column),i.autoInsertedBrackets++},l.recordMaybeInsert=function(h,f,$){var m=h.getCursorPosition(),M=f.doc.getLine(m.row);this.isMaybeInsertedClosing(m,M)||(i.maybeInsertedBrackets=0),i.maybeInsertedRow=m.row,i.maybeInsertedLineStart=M.substr(0,m.column)+$,i.maybeInsertedLineEnd=M.substr(m.column),i.maybeInsertedBrackets++},l.isAutoInsertedClosing=function(h,f,$){return i.autoInsertedBrackets>0&&h.row===i.autoInsertedRow&&$===i.autoInsertedLineEnd[0]&&f.substr(h.column)===i.autoInsertedLineEnd},l.isMaybeInsertedClosing=function(h,f){return i.maybeInsertedBrackets>0&&h.row===i.maybeInsertedRow&&f.substr(h.column)===i.maybeInsertedLineEnd&&f.substr(0,h.column)==i.maybeInsertedLineStart},l.popAutoInsertedClosing=function(){i.autoInsertedLineEnd=i.autoInsertedLineEnd.substr(1),i.autoInsertedBrackets--},l.clearMaybeInsertedClosing=function(){i&&(i.maybeInsertedBrackets=0,i.maybeInsertedRow=-1)},b.inherits(l,C),T.CstyleBehaviour=l}),ace.define("ace/unicode",["require","exports","module"],function(I,T,_){"use strict";for(var b=[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],C=0,y=[],a=0;a2?W%S!=S-1:W%S==0}}else{if(!this.blockComment)return!1;var v=this.blockComment.start,A=this.blockComment.end,R=new RegExp("^(\\s*)(?:"+s.escapeRegExp(v)+")"),w=new RegExp("(?:"+s.escapeRegExp(A)+")\\s*$"),x=function(U,B){d(U,B)||(!$||/\S/.test(U))&&(f.insertInLine({row:B,column:U.length},A),f.insertInLine({row:B,column:M},v))},g=function(U,B){var j;(j=U.match(w))&&f.removeInLine(B,U.length-j[0].length,U.length),(j=U.match(R))&&f.removeInLine(B,j[1].length,j[0].length)},d=function(U,B){if(R.test(U))return!0;for(var j=o.getTokens(B),P=0;PU.length&&(D=U.length)}),M==1/0&&(M=D,$=!1,m=!1),p&&M%S!=0&&(M=Math.floor(M/S)*S),O(m?g:x)},this.toggleBlockComment=function(t,o,l,h){var f=this.blockComment;if(f){!f.start&&f[0]&&(f=f[0]);var $=new i(o,h.row,h.column),m=$.getCurrentToken(),M=o.selection,S=o.selection.toOrientedRange(),p,v;if(m&&/comment/.test(m.type)){for(var A,R;m&&/comment/.test(m.type);){var w=m.value.indexOf(f.start);if(w!=-1){var x=$.getCurrentTokenRow(),g=$.getCurrentTokenColumn()+w;A=new n(x,g,x,g+f.start.length);break}m=$.stepBackward()}for(var $=new i(o,h.row,h.column),m=$.getCurrentToken();m&&/comment/.test(m.type);){var w=m.value.indexOf(f.end);if(w!=-1){var x=$.getCurrentTokenRow(),g=$.getCurrentTokenColumn()+w;R=new n(x,g,x,g+f.end.length);break}m=$.stepForward()}R&&o.remove(R),A&&(o.remove(A),p=A.start.row,v=-f.start.length)}else v=f.start.length,p=l.start.row,o.insert(l.end,f.end),o.insert(l.start,f.start);S.start.row==p&&(S.start.column+=v),S.end.row==p&&(S.end.column+=v),o.selection.fromOrientedRange(S)}},this.getNextLineIndent=function(t,o,l){return this.$getIndent(o)},this.checkOutdent=function(t,o,l){return!1},this.autoOutdent=function(t,o,l){},this.$getIndent=function(t){return t.match(/^\s*/)[0]},this.createWorker=function(t){return null},this.createModeDelegates=function(t){this.$embeds=[],this.$modes={};for(var o in t)if(t[o]){var l=t[o],h=l.prototype.$id,f=b.$modes[h];f||(b.$modes[h]=f=new l),b.$modes[o]||(b.$modes[o]=f),this.$embeds.push(o),this.$modes[o]=f}for(var $=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],o=0;o<$.length;o++)(function(M){var S=$[o],p=M[S];M[$[o]]=function(){return this.$delegator(S,arguments,p)}})(this)},this.$delegator=function(t,o,l){var h=o[0]||"start";if(typeof h!="string"){if(Array.isArray(h[2])){var f=h[2][h[2].length-1],$=this.$modes[f];if($)return $[t].apply($,[h[1]].concat([].slice.call(o,1)))}h=h[0]||"start"}for(var m=0;m=0&&c.row=0&&c.column<=a[c.row].length}function y(a,c){c.action!="insert"&&c.action!="remove"&&b(c,"delta.action must be 'insert' or 'remove'"),c.lines instanceof Array||b(c,"delta.lines must be an Array"),(!c.start||!c.end)&&b(c,"delta.start/end must be an present");var s=c.start;C(a,c.start)||b(c,"delta.start must be contained in document");var i=c.end;c.action=="remove"&&!C(a,i)&&b(c,"delta.end must contained in document for 'remove' actions");var n=i.row-s.row,e=i.column-(n==0?s.column:0);(n!=c.lines.length-1||c.lines[n].length!=e)&&b(c,"delta.range must match delta lines")}T.applyDelta=function(a,c,s){var i=c.start.row,n=c.start.column,e=a[i]||"";switch(c.action){case"insert":var t=c.lines;if(t.length===1)a[i]=e.substring(0,n)+c.lines[0]+e.substring(n);else{var o=[i,1].concat(c.lines);a.splice.apply(a,o),a[i]=e.substring(0,n)+a[i],a[i+c.lines.length-1]+=e.substring(n)}break;case"remove":var l=c.end.column,h=c.end.row;i===h?a[i]=e.substring(0,n)+e.substring(l):a.splice(i,h-i+1,e.substring(0,n)+a[h].substring(l));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(I,T,_){"use strict";var b=I("./lib/oop"),C=I("./lib/event_emitter").EventEmitter,y=function(){function s(i,n,e){this.$onChange=this.onChange.bind(this),this.attach(i),typeof e>"u"?this.setPosition(n.row,n.column):this.setPosition(n,e)}return s.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},s.prototype.getDocument=function(){return this.document},s.prototype.onChange=function(i){if(!(i.start.row==i.end.row&&i.start.row!=this.row)&&!(i.start.row>this.row)){var n=c(i,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},s.prototype.setPosition=function(i,n,e){var t;if(e?t={row:i,column:n}:t=this.$clipPositionToDocument(i,n),!(this.row==t.row&&this.column==t.column)){var o={row:this.row,column:this.column};this.row=t.row,this.column=t.column,this._signal("change",{old:o,value:t})}},s.prototype.detach=function(){this.document.off("change",this.$onChange)},s.prototype.attach=function(i){this.document=i||this.document,this.document.on("change",this.$onChange)},s.prototype.$clipPositionToDocument=function(i,n){var e={};return i>=this.document.getLength()?(e.row=Math.max(0,this.document.getLength()-1),e.column=this.document.getLine(e.row).length):i<0?(e.row=0,e.column=0):(e.row=i,e.column=Math.min(this.document.getLine(e.row).length,Math.max(0,n))),n<0&&(e.column=0),e},s}();y.prototype.$insertRight=!1,b.implement(y.prototype,C);function a(s,i,n){var e=n?s.column<=i.column:s.column=t&&(n=t-1,e=void 0);var o=this.getLine(n);return e==null&&(e=o.length),e=Math.min(Math.max(e,0),o.length),{row:n,column:e}},i.prototype.clonePos=function(n){return{row:n.row,column:n.column}},i.prototype.pos=function(n,e){return{row:n,column:e}},i.prototype.$clipPosition=function(n){var e=this.getLength();return n.row>=e?(n.row=Math.max(0,e-1),n.column=this.getLine(e-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,e){n=Math.min(Math.max(n,0),this.getLength());var t=0;n0,o=e=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,e){if(n instanceof a||(n=a.fromPoints(n.start,n.end)),e.length===0&&n.isEmpty())return n.start;if(e==this.getTextRange(n))return n.end;this.remove(n);var t;return e?t=this.insert(n.start,e):t=n.start,t},i.prototype.applyDeltas=function(n){for(var e=0;e=0;e--)this.revertDelta(n[e])},i.prototype.applyDelta=function(n,e){var t=n.action=="insert";(t?n.lines.length<=1&&!n.lines[0]:!a.comparePoints(n.start,n.end))||(t&&n.lines.length>2e4?this.$splitAndapplyLargeDelta(n,2e4):(C(this.$lines,n,e),this._signal("change",n)))},i.prototype.$safeApplyDelta=function(n){var e=this.$lines.length;(n.action=="remove"&&n.start.row20){i.running=setTimeout(i.$worker,20);break}}i.currentLine=e,t==-1&&(t=e),l<=t&&i.fireUpdateEvent(l,t)}}}return a.prototype.setTokenizer=function(c){this.tokenizer=c,this.lines=[],this.states=[],this.start(0)},a.prototype.setDocument=function(c){this.doc=c,this.lines=[],this.states=[],this.stop()},a.prototype.fireUpdateEvent=function(c,s){var i={first:c,last:s};this._signal("update",{data:i})},a.prototype.start=function(c){this.currentLine=Math.min(c||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(c){var s=c.start.row,i=c.end.row-s;if(i===0)this.lines[s]=null;else if(c.action=="remove")this.lines.splice(s,i+1,null),this.states.splice(s,i+1,null);else{var n=Array(i+1);n.unshift(s,1),this.lines.splice.apply(this.lines,n),this.states.splice.apply(this.states,n)}this.currentLine=Math.min(s,this.currentLine,this.doc.getLength()),this.stop()},a.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},a.prototype.getTokens=function(c){return this.lines[c]||this.$tokenizeRow(c)},a.prototype.getState=function(c){return this.currentLine==c&&this.$tokenizeRow(c),this.states[c]||"start"},a.prototype.$tokenizeRow=function(c){var s=this.doc.getLine(c),i=this.states[c-1],n=this.tokenizer.getLineTokens(s,i,c);return this.states[c]+""!=n.state+""?(this.states[c]=n.state,this.lines[c+1]=null,this.currentLine>c+1&&(this.currentLine=c+1)):this.currentLine==c&&(this.currentLine=c+1),this.lines[c]=n.tokens},a.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},a}();b.implement(y.prototype,C),T.BackgroundTokenizer=y}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(I,T,_){"use strict";var b=I("./lib/lang"),C=I("./range").Range,y=function(){function a(c,s,i){i===void 0&&(i="text"),this.setRegexp(c),this.clazz=s,this.type=i}return a.prototype.setRegexp=function(c){this.regExp+""!=c+""&&(this.regExp=c,this.cache=[])},a.prototype.update=function(c,s,i,n){if(this.regExp)for(var e=n.firstRow,t=n.lastRow,o={},l=e;l<=t;l++){var h=this.cache[l];h==null&&(h=b.getMatchOffsets(i.getLine(l),this.regExp),h.length>this.MAX_RANGES&&(h=h.slice(0,this.MAX_RANGES)),h=h.map(function(M){return new C(l,M.offset,l,M.offset+M.length)}),this.cache[l]=h.length?h:"");for(var f=h.length;f--;){var $=h[f].toScreenRange(i),m=$.toString();o[m]||(o[m]=!0,s.drawSingleLineMarker(c,$,this.clazz,n))}}},a}();y.prototype.MAX_RANGES=500,T.SearchHighlight=y}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(I,T,_){"use strict";var b=function(){function p(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return p.prototype.addSession=function(v){this.$session=v},p.prototype.add=function(v,A,R){if(!this.$fromUndo&&v!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),A===!1||!this.lastDeltas){this.lastDeltas=[];var w=this.$undoStack.length;w>this.$undoDepth-1&&this.$undoStack.splice(0,w-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),v.id=this.$rev=++this.$maxRev}(v.action=="remove"||v.action=="insert")&&(this.$lastDelta=v),this.lastDeltas.push(v)}},p.prototype.addSelection=function(v,A){this.selections.push({value:v,rev:A||this.$rev})},p.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},p.prototype.markIgnored=function(v,A){A==null&&(A=this.$rev+1);for(var R=this.$undoStack,w=R.length;w--;){var x=R[w][0];if(x.id<=v)break;x.id0},p.prototype.canRedo=function(){return this.$redoStack.length>0},p.prototype.bookmark=function(v){v==null&&(v=this.$rev),this.mark=v},p.prototype.isAtBookmark=function(){return this.$rev===this.mark},p.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},p.prototype.fromJSON=function(v){this.reset(),this.$undoStack=v.$undoStack,this.$redoStack=v.$redoStack},p.prototype.$prettyPrint=function(v){return v?e(v):e(this.$undoStack)+`
---
`+e(this.$redoStack)},p}();b.prototype.hasUndo=b.prototype.canUndo,b.prototype.hasRedo=b.prototype.canRedo,b.prototype.isClean=b.prototype.isAtBookmark,b.prototype.markClean=b.prototype.bookmark;function C(p,v){for(var A=v;A--;){var R=p[A];if(R&&!R[0].ignore){for(;A0){d.row+=w,d.column+=d.row==R.row?x:0;continue}!v&&E<=0&&(d.row=A.row,d.column=A.column,E===0&&(d.bias=1))}}}function i(p){return{row:p.row,column:p.column}}function n(p){return{start:i(p.start),end:i(p.end),action:p.action,lines:p.lines.slice()}}function e(p){if(p=p||this,Array.isArray(p))return p.map(e).join(`
`);var v="";return p.action?(v=p.action=="insert"?"+":"-",v+="["+p.lines+"]"):p.value&&(Array.isArray(p.value)?v=p.value.map(t).join(`
`):v=t(p.value)),p.start&&(v+=t(p)),(p.id||p.rev)&&(v+=" ("+(p.id||p.rev)+")"),v}function t(p){return p.start.row+":"+p.start.column+"=>"+p.end.row+":"+p.end.column}function o(p,v){var A=p.action=="insert",R=v.action=="insert";if(A&&R)if(a(v.start,p.end)>=0)f(v,p,-1);else if(a(v.start,p.start)<=0)f(p,v,1);else return null;else if(A&&!R)if(a(v.start,p.end)>=0)f(v,p,-1);else if(a(v.end,p.start)<=0)f(p,v,-1);else return null;else if(!A&&R)if(a(v.start,p.start)>=0)f(v,p,1);else if(a(v.start,p.start)<=0)f(p,v,1);else return null;else if(!A&&!R)if(a(v.start,p.start)>=0)f(v,p,1);else if(a(v.end,p.start)<=0)f(p,v,-1);else return null;return[v,p]}function l(p,v){for(var A=p.length;A--;)for(var R=0;R=0?f(p,v,-1):(a(p.start,v.start)<=0||f(p,y.fromPoints(v.start,p.start),-1),f(v,p,1));else if(!A&&R)a(v.start,p.end)>=0?f(v,p,-1):(a(v.start,p.start)<=0||f(v,y.fromPoints(p.start,v.start),-1),f(p,v,1));else if(!A&&!R)if(a(v.start,p.end)>=0)f(v,p,-1);else if(a(v.end,p.start)<=0)f(p,v,-1);else{var w,x;return a(p.start,v.start)<0&&(w=p,p=m(p,v.start)),a(p.end,v.end)>0&&(x=m(p,v.end)),$(v.end,p.start,p.end,-1),x&&!w&&(p.lines=x.lines,p.start=x.start,p.end=x.end,x=p),[v,w,x].filter(Boolean)}return[v,p]}function f(p,v,A){$(p.start,v.start,v.end,A),$(p.end,v.start,v.end,A)}function $(p,v,A,R){p.row==(R==1?v:A).row&&(p.column+=R*(A.column-v.column)),p.row+=R*(A.row-v.row)}function m(p,v){var A=p.lines,R=p.end;p.end=i(v);var w=p.end.row-p.start.row,x=A.splice(w,A.length),g=w?v.column:v.column-p.start.column;A.push(x[0].substring(0,g)),x[0]=x[0].substr(g);var d={start:i(v),end:R,lines:x,action:p.action};return d}function M(p,v){v=n(v);for(var A=p.length;A--;){for(var R=p[A],w=0;wthis.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(c,s){return-c.range.compareEnd(s.start.row,s.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},y.prototype.containsRow=function(a){return a>=this.start.row&&a<=this.end.row},y.prototype.walk=function(a,c,s){var i=0,n=this.folds,e,t,o,l=!0;c==null&&(c=this.end.row,s=this.end.column);for(var h=0;h0)){var l=C(c,t.start);return o===0?s&&l!==0?-e-2:e:l>0||l===0&&!s?e:-e-1}}return-e-1},a.prototype.add=function(c){var s=!c.isEmpty(),i=this.pointIndex(c.start,s);i<0&&(i=-i-1);var n=this.pointIndex(c.end,s,i);return n<0?n=-n-1:n++,this.ranges.splice(i,n-i,c)},a.prototype.addList=function(c){for(var s=[],i=c.length;i--;)s.push.apply(s,this.add(c[i]));return s},a.prototype.substractPoint=function(c){var s=this.pointIndex(c);if(s>=0)return this.ranges.splice(s,1)},a.prototype.merge=function(){var c=[],s=this.ranges;s=s.sort(function(o,l){return C(o.start,l.start)});for(var i=s[0],n,e=1;e=0},a.prototype.containsPoint=function(c){return this.pointIndex(c)>=0},a.prototype.rangeAtPoint=function(c){var s=this.pointIndex(c);if(s>=0)return this.ranges[s]},a.prototype.clipRows=function(c,s){var i=this.ranges;if(i[0].start.row>s||i[i.length-1].start.row=n)break}if(c.action=="insert")for(var f=e-n,$=-s.column+i.column;on)break;if(h.start.row==n&&h.start.column>=s.column&&(h.start.column==s.column&&this.$bias<=0||(h.start.column+=$,h.start.row+=f)),h.end.row==n&&h.end.column>=s.column){if(h.end.column==s.column&&this.$bias<0)continue;h.end.column==s.column&&$>0&&oh.start.column&&h.end.column==t[o+1].start.column&&(h.end.column-=$),h.end.column+=$,h.end.row+=f}}else for(var f=n-e,$=s.column-i.column;oe)break;h.end.rows.column)&&(h.end.column=s.column,h.end.row=s.row):(h.end.column+=$,h.end.row+=f):h.end.row>e&&(h.end.row+=f),h.start.rows.column)&&(h.start.column=s.column,h.start.row=s.row):(h.start.column+=$,h.start.row+=f):h.start.row>e&&(h.start.row+=f)}if(f!=0&&o=i)return o;if(o.end.row>i)return null}return null},this.getNextFoldLine=function(i,n){var e=this.$foldData,t=0;for(n&&(t=e.indexOf(n)),t==-1&&(t=0),t;t=i)return o}return null},this.getFoldedRowCount=function(i,n){for(var e=this.$foldData,t=n-i+1,o=0;o=n){f=i?t-=n-f:t=0);break}else h>=i&&(f>=i?t-=h-f:t-=h-i+1)}return t},this.$addFoldLine=function(i){return this.$foldData.push(i),this.$foldData.sort(function(n,e){return n.start.row-e.start.row}),i},this.addFold=function(i,n){var e=this.$foldData,t=!1,o;i instanceof y?o=i:(o=new y(n,i),o.collapseChildren=n.collapseChildren),this.$clipRangeToDocument(o.range);var l=o.start.row,h=o.start.column,f=o.end.row,$=o.end.column,m=this.getFoldAt(l,h,1),M=this.getFoldAt(f,$,-1);if(m&&M==m)return m.addSubFold(o);m&&!m.range.isStart(l,h)&&this.removeFold(m),M&&!M.range.isEnd(f,$)&&this.removeFold(M);var S=this.getFoldsInRange(o.range);S.length>0&&(this.removeFolds(S),o.collapseChildren||S.forEach(function(R){o.addSubFold(R)}));for(var p=0;p0&&this.foldAll(i.start.row+1,i.end.row,i.collapseChildren-1),i.subFolds=[]},this.expandFolds=function(i){i.forEach(function(n){this.expandFold(n)},this)},this.unfold=function(i,n){var e,t;if(i==null)e=new b(0,0,this.getLength(),0),n==null&&(n=!0);else if(typeof i=="number")e=new b(i,0,i,this.getLine(i).length);else if("row"in i)e=b.fromPoints(i,i);else{if(Array.isArray(i))return t=[],i.forEach(function(l){t=t.concat(this.unfold(l))},this),t;e=i}t=this.getFoldsInRangeList(e);for(var o=t;t.length==1&&b.comparePoints(t[0].start,e.start)<0&&b.comparePoints(t[0].end,e.end)>0;)this.expandFolds(t),t=this.getFoldsInRangeList(e);if(n!=!1?this.removeFolds(t):this.expandFolds(t),o.length)return o},this.isRowFolded=function(i,n){return!!this.getFoldLine(i,n)},this.getRowFoldEnd=function(i,n){var e=this.getFoldLine(i,n);return e?e.end.row:i},this.getRowFoldStart=function(i,n){var e=this.getFoldLine(i,n);return e?e.start.row:i},this.getFoldDisplayLine=function(i,n,e,t,o){t==null&&(t=i.start.row),o==null&&(o=0),n==null&&(n=i.end.row),e==null&&(e=this.getLine(n).length);var l=this.doc,h="";return i.walk(function(f,$,m,M){if(!($$)break;while(o&&h.test(o.type)&&!/^comment.start/.test(o.type));o=t.stepBackward()}else o=t.getCurrentToken();return f.end.row=t.getCurrentTokenRow(),f.end.column=t.getCurrentTokenColumn(),/^comment.end/.test(o.type)||(f.end.column+=o.value.length-2),f}},this.foldAll=function(i,n,e,t){e==null&&(e=1e5);var o=this.foldWidgets;if(o){n=n||this.getLength(),i=i||0;for(var l=i;l=i&&(l=h.end.row,h.collapseChildren=e,this.addFold("...",h))}}},this.foldToLevel=function(i){for(this.foldAll();i-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var i=this;this.foldAll(null,null,null,function(n){for(var e=i.getTokens(n),t=0;t=0;){var l=e[t];if(l==null&&(l=e[t]=this.getFoldWidget(t)),l=="start"){var h=this.getFoldWidgetRange(t);if(o||(o=h),h&&h.end.row>=i)break}t--}return{range:t!==-1&&h,firstRange:o}},this.onFoldWidgetClick=function(i,n){n instanceof c&&(n=n.domEvent);var e={children:n.shiftKey,all:n.ctrlKey||n.metaKey,siblings:n.altKey},t=this.$toggleFoldWidget(i,e);if(!t){var o=n.target||n.srcElement;o&&/ace_fold-widget/.test(o.className)&&(o.className+=" ace_invalid")}},this.$toggleFoldWidget=function(i,n){if(this.getFoldWidget){var e=this.getFoldWidget(i),t=this.getLine(i),o=e==="end"?-1:1,l=this.getFoldAt(i,o===-1?0:t.length,o);if(l)return n.children||n.all?this.removeFold(l):this.expandFold(l),l;var h=this.getFoldWidgetRange(i,!0);if(h&&!h.isMultiLine()&&(l=this.getFoldAt(h.start.row,h.start.column,1),l&&h.isEqual(l.range)))return this.removeFold(l),l;if(n.siblings){var f=this.getParentFoldRangeData(i);if(f.range)var $=f.range.start.row+1,m=f.range.end.row;this.foldAll($,m,n.all?1e4:0)}else n.children?(m=h?h.end.row:this.getLength(),this.foldAll(i+1,m,n.all?1e4:0)):h&&(n.all&&(h.collapseChildren=1e4),this.addFold("...",h));return h}},this.toggleFoldWidget=function(i){var n=this.selection.getCursor().row;n=this.getRowFoldStart(n);var e=this.$toggleFoldWidget(n,{});if(!e){var t=this.getParentFoldRangeData(n,!0);if(e=t.range||t.firstRange,e){n=e.start.row;var o=this.getFoldAt(n,this.getLine(n).length,1);o?this.removeFold(o):this.addFold("...",e)}}},this.updateFoldWidgets=function(i){var n=i.start.row,e=i.end.row-n;if(e===0)this.foldWidgets[n]=null;else if(i.action=="remove")this.foldWidgets.splice(n,e+1,null);else{var t=Array(e+1);t.unshift(n,1),this.foldWidgets.splice.apply(this.foldWidgets,t)}},this.tokenizerUpdateFoldWidgets=function(i){var n=i.data;n.first!=n.last&&this.foldWidgets.length>n.first&&this.foldWidgets.splice(n.first,this.foldWidgets.length)}}T.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(I,T,_){"use strict";var b=I("../token_iterator").TokenIterator,C=I("../range").Range;function y(){this.findMatchingBracket=function(a,c){if(a.column==0)return null;var s=c||this.getLine(a.row).charAt(a.column-1);if(s=="")return null;var i=s.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],a):this.$findOpeningBracket(i[2],a):null},this.getBracketRange=function(a){var c=this.getLine(a.row),s=!0,i,n=c.charAt(a.column-1),e=n&&n.match(/([\(\[\{])|([\)\]\}])/);if(e||(n=c.charAt(a.column),a={row:a.row,column:a.column+1},e=n&&n.match(/([\(\[\{])|([\)\]\}])/),s=!1),!e)return null;if(e[1]){var t=this.$findClosingBracket(e[1],a);if(!t)return null;i=C.fromPoints(a,t),s||(i.end.column++,i.start.column--),i.cursor=i.end}else{var t=this.$findOpeningBracket(e[2],a);if(!t)return null;i=C.fromPoints(t,a),s||(i.start.column++,i.end.column--),i.cursor=i.start}return i},this.getMatchingBracketRanges=function(a,c){var s=this.getLine(a.row),i=/([\(\[\{])|([\)\]\}])/,n=!c&&s.charAt(a.column-1),e=n&&n.match(i);if(e||(n=(c===void 0||c)&&s.charAt(a.column),a={row:a.row,column:a.column+1},e=n&&n.match(i)),!e)return null;var t=new C(a.row,a.column-1,a.row,a.column),o=e[1]?this.$findClosingBracket(e[1],a):this.$findOpeningBracket(e[2],a);if(!o)return[t];var l=new C(o.row,o.column,o.row,o.column+1);return[t,l]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(a,c,s){var i=this.$brackets[a],n=1,e=new b(this,c.row,c.column),t=e.getCurrentToken();if(t||(t=e.stepForward()),!!t){s||(s=new RegExp("(\\.?"+t.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var o=c.column-e.getCurrentTokenColumn()-2,l=t.value;;){for(;o>=0;){var h=l.charAt(o);if(h==i){if(n-=1,n==0)return{row:e.getCurrentTokenRow(),column:o+e.getCurrentTokenColumn()}}else h==a&&(n+=1);o-=1}do t=e.stepBackward();while(t&&!s.test(t.type));if(t==null)break;l=t.value,o=l.length-1}return null}},this.$findClosingBracket=function(a,c,s){var i=this.$brackets[a],n=1,e=new b(this,c.row,c.column),t=e.getCurrentToken();if(t||(t=e.stepForward()),!!t){s||(s=new RegExp("(\\.?"+t.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var o=c.column-e.getCurrentTokenColumn();;){for(var l=t.value,h=l.length;o "?i=!0:c.type.indexOf("tag-name")!==-1&&(s=!0));while(c&&!s);return c},this.$findClosingTag=function(a,c){var s,i=c.value,n=c.value,e=0,t=new C(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);c=a.stepForward();var o=new C(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+c.value.length),l=!1;do if(s=c,c=a.stepForward(),c){if(c.value===">"&&!l){var h=new C(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);l=!0}if(c.type.indexOf("tag-name")!==-1){if(i=c.value,n===i){if(s.value==="<")e++;else if(s.value===""&&(e--,e<0)){a.stepBackward();var f=new C(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+2);c=a.stepForward();var $=new C(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+c.value.length);if(c=a.stepForward(),c&&c.value===">")var m=new C(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);else return}}}else if(n===i&&c.value==="/>"&&(e--,e<0))var f=new C(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+2),$=f,m=$,h=new C(o.end.row,o.end.column,o.end.row,o.end.column+1)}while(c&&e>=0);if(t&&h&&f&&m&&o&&$)return{openTag:new C(t.start.row,t.start.column,h.end.row,h.end.column),closeTag:new C(f.start.row,f.start.column,m.end.row,m.end.column),openTagName:o,closeTagName:$}},this.$findOpeningTag=function(a,c){var s=a.getCurrentToken(),i=c.value,n=0,e=a.getCurrentTokenRow(),t=a.getCurrentTokenColumn(),o=t+2,l=new C(e,t,e,o);a.stepForward();var h=new C(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+c.value.length);if(c=a.stepForward(),!(!c||c.value!==">")){var f=new C(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);a.stepBackward(),a.stepBackward();do if(c=s,e=a.getCurrentTokenRow(),t=a.getCurrentTokenColumn(),o=t+c.value.length,s=a.stepBackward(),c){if(c.type.indexOf("tag-name")!==-1){if(i===c.value)if(s.value==="<"){if(n++,n>0){var $=new C(e,t,e,o),m=new C(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);do c=a.stepForward();while(c&&c.value!==">");var M=new C(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1)}}else s.value===""&&n--}else if(c.value==="/>"){for(var S=0,p=s;p;){if(p.type.indexOf("tag-name")!==-1&&p.value===i){n--;break}else if(p.value==="<")break;p=a.stepBackward(),S++}for(var v=0;vd&&(this.$docRowCache.splice(d,g),this.$screenRowCache.splice(d,g))},w.prototype.$getRowCacheIndex=function(x,g){for(var d=0,L=x.length-1;d<=L;){var E=d+L>>1,O=x[E];if(g>O)d=E+1;else if(g=g));O++);return L=d[O],L?(L.index=O,L.start=E-L.value.length,L):null},w.prototype.setUndoManager=function(x){if(this.$undoManager=x,this.$informUndoManager&&this.$informUndoManager.cancel(),x){var g=this;x.addSession(this),this.$syncInformUndoManager=function(){g.$informUndoManager.cancel(),g.mergeUndoDeltas=!1},this.$informUndoManager=C.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},w.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},w.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},w.prototype.getTabString=function(){return this.getUseSoftTabs()?C.stringRepeat(" ",this.getTabSize()):" "},w.prototype.setUseSoftTabs=function(x){this.setOption("useSoftTabs",x)},w.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},w.prototype.setTabSize=function(x){this.setOption("tabSize",x)},w.prototype.getTabSize=function(){return this.$tabSize},w.prototype.isTabStop=function(x){return this.$useSoftTabs&&x.column%this.$tabSize===0},w.prototype.setNavigateWithinSoftTabs=function(x){this.setOption("navigateWithinSoftTabs",x)},w.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},w.prototype.setOverwrite=function(x){this.setOption("overwrite",x)},w.prototype.getOverwrite=function(){return this.$overwrite},w.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},w.prototype.addGutterDecoration=function(x,g){this.$decorations[x]||(this.$decorations[x]=""),this.$decorations[x]+=" "+g,this._signal("changeBreakpoint",{})},w.prototype.removeGutterDecoration=function(x,g){this.$decorations[x]=(this.$decorations[x]||"").replace(" "+g,""),this._signal("changeBreakpoint",{})},w.prototype.getBreakpoints=function(){return this.$breakpoints},w.prototype.setBreakpoints=function(x){this.$breakpoints=[];for(var g=0;g0&&(L=!!d.charAt(g-1).match(this.tokenRe)),L||(L=!!d.charAt(g).match(this.tokenRe)),L)var E=this.tokenRe;else if(/^\s+$/.test(d.slice(g-1,g+1)))var E=/\s/;else var E=this.nonTokenRe;var O=g;if(O>0){do O--;while(O>=0&&d.charAt(O).match(E));O++}for(var D=g;Dx&&(x=g.screenWidth)}),this.lineWidgetWidth=x},w.prototype.$computeWidth=function(x){if(this.$modified||x){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var g=this.doc.getAllLines(),d=this.$rowLengthCache,L=0,E=0,O=this.$foldData[E],D=O?O.start.row:1/0,U=g.length,B=0;BD){if(B=O.end.row+1,B>=U)break;O=this.$foldData[E++],D=O?O.start.row:1/0}d[B]==null&&(d[B]=this.$getStringScreenWidth(g[B])[0]),d[B]>L&&(L=d[B])}this.screenWidth=L}},w.prototype.getLine=function(x){return this.doc.getLine(x)},w.prototype.getLines=function(x,g){return this.doc.getLines(x,g)},w.prototype.getLength=function(){return this.doc.getLength()},w.prototype.getTextRange=function(x){return this.doc.getTextRange(x||this.selection.getRange())},w.prototype.insert=function(x,g){return this.doc.insert(x,g)},w.prototype.remove=function(x){return this.doc.remove(x)},w.prototype.removeFullLines=function(x,g){return this.doc.removeFullLines(x,g)},w.prototype.undoChanges=function(x,g){if(x.length){this.$fromUndo=!0;for(var d=x.length-1;d!=-1;d--){var L=x[d];L.action=="insert"||L.action=="remove"?this.doc.revertDelta(L):L.folds&&this.addFolds(L.folds)}!g&&this.$undoSelect&&(x.selectionBefore?this.selection.fromJSON(x.selectionBefore):this.selection.setRange(this.$getUndoSelection(x,!0))),this.$fromUndo=!1}},w.prototype.redoChanges=function(x,g){if(x.length){this.$fromUndo=!0;for(var d=0;dx.end.column&&(O.start.column+=U),O.end.row==x.end.row&&O.end.column>x.end.column&&(O.end.column+=U)),D&&O.start.row>=x.end.row&&(O.start.row+=D,O.end.row+=D)}if(O.end=this.insert(O.start,L),E.length){var B=x.start,j=O.start,D=j.row-B.row,U=j.column-B.column;this.addFolds(E.map(function(z){return z=z.clone(),z.start.row==B.row&&(z.start.column+=U),z.end.row==B.row&&(z.end.column+=U),z.start.row+=D,z.end.row+=D,z}))}return O},w.prototype.indentRows=function(x,g,d){d=d.replace(/\t/g,this.getTabString());for(var L=x;L<=g;L++)this.doc.insertInLine({row:L,column:0},d)},w.prototype.outdentRows=function(x){for(var g=x.collapseRows(),d=new n(0,0,0,0),L=this.getTabSize(),E=g.start.row;E<=g.end.row;++E){var O=this.getLine(E);d.start.row=E,d.end.row=E;for(var D=0;D0){var L=this.getRowFoldEnd(g+d);if(L>this.doc.getLength()-1)return 0;var E=L-g}else{x=this.$clipRowToDocument(x),g=this.$clipRowToDocument(g);var E=g-x+1}var O=new n(x,0,g,Number.MAX_VALUE),D=this.getFoldsInRange(O).map(function(B){return B=B.clone(),B.start.row+=E,B.end.row+=E,B}),U=d==0?this.doc.getLines(x,g):this.doc.removeFullLines(x,g);return this.doc.insertFullLines(x+E,U),D.length&&this.addFolds(D),E},w.prototype.moveLinesUp=function(x,g){return this.$moveLines(x,g,-1)},w.prototype.moveLinesDown=function(x,g){return this.$moveLines(x,g,1)},w.prototype.duplicateLines=function(x,g){return this.$moveLines(x,g,0)},w.prototype.$clipRowToDocument=function(x){return Math.max(0,Math.min(x,this.doc.getLength()-1))},w.prototype.$clipColumnToRow=function(x,g){return g<0?0:Math.min(this.doc.getLine(x).length,g)},w.prototype.$clipPositionToDocument=function(x,g){if(g=Math.max(0,g),x<0)x=0,g=0;else{var d=this.doc.getLength();x>=d?(x=d-1,g=this.doc.getLine(d-1).length):g=Math.min(this.doc.getLine(x).length,g)}return{row:x,column:g}},w.prototype.$clipRangeToDocument=function(x){x.start.row<0?(x.start.row=0,x.start.column=0):x.start.column=this.$clipColumnToRow(x.start.row,x.start.column);var g=this.doc.getLength()-1;return x.end.row>g?(x.end.row=g,x.end.column=this.doc.getLine(g).length):x.end.column=this.$clipColumnToRow(x.end.row,x.end.column),x},w.prototype.setUseWrapMode=function(x){if(x!=this.$useWrapMode){if(this.$useWrapMode=x,this.$modified=!0,this.$resetRowCache(0),x){var g=this.getLength();this.$wrapData=Array(g),this.$updateWrapData(0,g-1)}this._signal("changeWrapMode")}},w.prototype.getUseWrapMode=function(){return this.$useWrapMode},w.prototype.setWrapLimitRange=function(x,g){(this.$wrapLimitRange.min!==x||this.$wrapLimitRange.max!==g)&&(this.$wrapLimitRange={min:x,max:g},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},w.prototype.adjustWrapLimit=function(x,g){var d=this.$wrapLimitRange;d.max<0&&(d={min:g,max:g});var L=this.$constrainWrapLimit(x,d.min,d.max);return L!=this.$wrapLimit&&L>1?(this.$wrapLimit=L,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},w.prototype.$constrainWrapLimit=function(x,g,d){return g&&(x=Math.max(g,x)),d&&(x=Math.min(d,x)),x},w.prototype.getWrapLimit=function(){return this.$wrapLimit},w.prototype.setWrapLimit=function(x){this.setWrapLimitRange(x,x)},w.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},w.prototype.$updateInternalDataOnChange=function(x){var g=this.$useWrapMode,d=x.action,L=x.start,E=x.end,O=L.row,D=E.row,U=D-O,B=null;if(this.$updating=!0,U!=0)if(d==="remove"){this[g?"$wrapData":"$rowLengthCache"].splice(O,U);var j=this.$foldData;B=this.getFoldsInRange(x),this.removeFolds(B);var P=this.getFoldLine(E.row),H=0;if(P){P.addRemoveChars(E.row,E.column,L.column-E.column),P.shiftRow(-U);var z=this.getFoldLine(O);z&&z!==P&&(z.merge(P),P=z),H=j.indexOf(P)+1}for(H;H=E.row&&P.shiftRow(-U)}D=O}else{var W=Array(U);W.unshift(O,0);var Y=g?this.$wrapData:this.$rowLengthCache;Y.splice.apply(Y,W);var j=this.$foldData,P=this.getFoldLine(O),H=0;if(P){var Z=P.range.compareInside(L.row,L.column);Z==0?(P=P.split(L.row,L.column),P&&(P.shiftRow(U),P.addRemoveChars(D,0,E.column-L.column))):Z==-1&&(P.addRemoveChars(O,0,E.column-L.column),P.shiftRow(U)),H=j.indexOf(P)+1}for(H;H=O&&P.shiftRow(U)}}else{U=Math.abs(x.start.column-x.end.column),d==="remove"&&(B=this.getFoldsInRange(x),this.removeFolds(B),U=-U);var P=this.getFoldLine(O);P&&P.addRemoveChars(O,L.column,U)}return g&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,g?this.$updateWrapData(O,D):this.$updateRowLengthCache(O,D),B},w.prototype.$updateRowLengthCache=function(x,g,d){this.$rowLengthCache[x]=null,this.$rowLengthCache[g]=null},w.prototype.$updateWrapData=function(x,g){var d=this.doc.getAllLines(),L=this.getTabSize(),E=this.$wrapData,O=this.$wrapLimit,D,U,B=x;for(g=Math.min(g,d.length-1);B<=g;)U=this.getFoldLine(B,U),U?(D=[],U.walk((function(j,P,H,z){var W;if(j!=null){W=this.$getDisplayTokens(j,D.length),W[0]=m;for(var Y=1;Yg-z;){var W=O+g-z;if(x[W-1]>=p&&x[W]>=p){H(W);continue}if(x[W]==m||x[W]==M){for(W;W!=O-1&&x[W]!=m;W--);if(W>O){H(W);continue}for(W=O+g,W;W>2)),O-1);W>Y&&x[W]Y&&x[W]Y&&x[W]==S;)W--}else for(;W>Y&&x[W]Y){H(++W);continue}W=O+g,x[W]==$&&W--,H(W-z)}return L},w.prototype.$getDisplayTokens=function(x,g){var d=[],L;g=g||0;for(var E=0;E39&&O<48||O>57&&O<64?d.push(S):O>=4352&&R(O)?d.push(f,$):d.push(f)}return d},w.prototype.$getStringScreenWidth=function(x,g,d){if(g==0)return[0,0];g==null&&(g=1/0),d=d||0;var L,E;for(E=0;E=4352&&R(L)?d+=2:d+=1,!(d>g));E++);return[d,E]},w.prototype.getRowLength=function(x){var g=1;return this.lineWidgets&&(g+=this.lineWidgets[x]&&this.lineWidgets[x].rowCount||0),!this.$useWrapMode||!this.$wrapData[x]?g:this.$wrapData[x].length+g},w.prototype.getRowLineCount=function(x){return!this.$useWrapMode||!this.$wrapData[x]?1:this.$wrapData[x].length+1},w.prototype.getRowWrapIndent=function(x){if(this.$useWrapMode){var g=this.screenToDocumentPosition(x,Number.MAX_VALUE),d=this.$wrapData[g.row];return d.length&&d[0]=0)var U=j[P],E=this.$docRowCache[P],z=x>j[H-1];else var z=!H;for(var W=this.getLength()-1,Y=this.getNextFoldLine(E),Z=Y?Y.start.row:1/0;U<=x&&(B=this.getRowLength(E),!(U+B>x||E>=W));)U+=B,E++,E>Z&&(E=Y.end.row+1,Y=this.getNextFoldLine(E,Y),Z=Y?Y.start.row:1/0),z&&(this.$docRowCache.push(E),this.$screenRowCache.push(U));if(Y&&Y.start.row<=E)L=this.getFoldDisplayLine(Y),E=Y.start.row;else{if(U+B<=x||E>W)return{row:W,column:this.getLine(W).length};L=this.getLine(E),Y=null}var q=0,Q=Math.floor(x-U);if(this.$useWrapMode){var ee=this.$wrapData[E];ee&&(D=ee[Q],Q>0&&ee.length&&(q=ee.indent,O=ee[Q-1]||ee[ee.length-1],L=L.substring(O)))}return d!==void 0&&this.$bidiHandler.isBidiRow(U+Q,E,Q)&&(g=this.$bidiHandler.offsetToCol(d)),O+=this.$getStringScreenWidth(L,g-q)[1],this.$useWrapMode&&O>=D&&(O=D-1),Y?Y.idxToPosition(O):{row:E,column:O}},w.prototype.documentToScreenPosition=function(x,g){if(typeof g>"u")var d=this.$clipPositionToDocument(x.row,x.column);else d=this.$clipPositionToDocument(x,g);x=d.row,g=d.column;var L=0,E=null,O=null;O=this.getFoldAt(x,g,1),O&&(x=O.start.row,g=O.start.column);var D,U=0,B=this.$docRowCache,j=this.$getRowCacheIndex(B,x),P=B.length;if(P&&j>=0)var U=B[j],L=this.$screenRowCache[j],H=x>B[P-1];else var H=!P;for(var z=this.getNextFoldLine(U),W=z?z.start.row:1/0;U=W){if(D=z.end.row+1,D>x)break;z=this.getNextFoldLine(D,z),W=z?z.start.row:1/0}else D=U+1;L+=this.getRowLength(U),U=D,H&&(this.$docRowCache.push(U),this.$screenRowCache.push(L))}var Y="";z&&U>=W?(Y=this.getFoldDisplayLine(z,x,g),E=z.start.row):(Y=this.getLine(x).substring(0,g),E=x);var Z=0;if(this.$useWrapMode){var q=this.$wrapData[E];if(q){for(var Q=0;Y.length>=q[Q];)L++,Q++;Y=Y.substring(q[Q-1]||0,Y.length),Z=Q>0?q.indent:0}}return this.lineWidgets&&this.lineWidgets[U]&&this.lineWidgets[U].rowsAbove&&(L+=this.lineWidgets[U].rowsAbove),{row:L,column:Z+this.$getStringScreenWidth(Y)[0]}},w.prototype.documentToScreenColumn=function(x,g){return this.documentToScreenPosition(x,g).column},w.prototype.documentToScreenRow=function(x,g){return this.documentToScreenPosition(x,g).row},w.prototype.getScreenLength=function(){var x=0,g=null;if(this.$useWrapMode)for(var E=this.$wrapData.length,O=0,L=0,g=this.$foldData[L++],D=g?g.start.row:1/0;OD&&(O=g.end.row+1,g=this.$foldData[L++],D=g?g.start.row:1/0)}else{x=this.getLength();for(var d=this.$foldData,L=0;Ld));O++);return[L,O]})},w.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()},w}();h.$uid=0,h.prototype.$modes=a.$modes,h.prototype.getValue=h.prototype.toString,h.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},h.prototype.$overwrite=!1,h.prototype.$mode=null,h.prototype.$modeId=null,h.prototype.$scrollTop=0,h.prototype.$scrollLeft=0,h.prototype.$wrapLimit=80,h.prototype.$useWrapMode=!1,h.prototype.$wrapLimitRange={min:null,max:null},h.prototype.lineWidgets=null,h.prototype.isFullWidth=R,b.implement(h.prototype,c);var f=1,$=2,m=3,M=4,S=9,p=10,v=11,A=12;function R(w){return w<4352?!1:w>=4352&&w<=4447||w>=4515&&w<=4519||w>=4602&&w<=4607||w>=9001&&w<=9002||w>=11904&&w<=11929||w>=11931&&w<=12019||w>=12032&&w<=12245||w>=12272&&w<=12283||w>=12288&&w<=12350||w>=12353&&w<=12438||w>=12441&&w<=12543||w>=12549&&w<=12589||w>=12593&&w<=12686||w>=12688&&w<=12730||w>=12736&&w<=12771||w>=12784&&w<=12830||w>=12832&&w<=12871||w>=12880&&w<=13054||w>=13056&&w<=19903||w>=19968&&w<=42124||w>=42128&&w<=42182||w>=43360&&w<=43388||w>=44032&&w<=55203||w>=55216&&w<=55238||w>=55243&&w<=55291||w>=63744&&w<=64255||w>=65040&&w<=65049||w>=65072&&w<=65106||w>=65108&&w<=65126||w>=65128&&w<=65131||w>=65281&&w<=65376||w>=65504&&w<=65510}I("./edit_session/folding").Folding.call(h.prototype),I("./edit_session/bracket_match").BracketMatch.call(h.prototype),a.defineOptions(h.prototype,"session",{wrap:{set:function(w){if(!w||w=="off"?w=!1:w=="free"?w=!0:w=="printMargin"?w=-1:typeof w=="string"&&(w=parseInt(w,10)||!1),this.$wrap!=w)if(this.$wrap=w,!w)this.setUseWrapMode(!1);else{var x=typeof w=="number"?w:null;this.setWrapLimitRange(x,x),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(w){w=w=="auto"?this.$mode.type!="text":w!="text",w!=this.$wrapAsCode&&(this.$wrapAsCode=w,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(w){this.$useWorker=w,this.$stopWorker(),w&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(w){w=parseInt(w),w>0&&this.$tabSize!==w&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=w,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(w){this.setFoldStyle(w)},handlesSet:!0},overwrite:{set:function(w){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(w){this.doc.setNewLineMode(w)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(w){this.setMode(w)},get:function(){return this.$modeId},handlesSet:!0}}),T.EditSession=h}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(I,T,_){"use strict";var b=I("./lib/lang"),C=I("./lib/oop"),y=I("./range").Range,a=function(){function s(){this.$options={}}return s.prototype.set=function(i){return C.mixin(this.$options,i),this},s.prototype.getOptions=function(){return b.copyObject(this.$options)},s.prototype.setOptions=function(i){this.$options=i},s.prototype.find=function(i){var n=this.$options,e=this.$matchIterator(i,n);if(!e)return!1;var t=null;return e.forEach(function(o,l,h,f){return t=new y(o,l,h,f),l==f&&n.start&&n.start.start&&n.skipCurrent!=!1&&t.isEqual(n.start)?(t=null,!1):!0}),t},s.prototype.findAll=function(i){var n=this.$options;if(!n.needle)return[];this.$assembleRegExp(n);var e=n.range,t=e?i.getLines(e.start.row,e.end.row):i.doc.getAllLines(),o=[],l=n.re;if(n.$isMultiLine){var h=l.length,f=t.length-h,$;e:for(var m=l.offset||0;m<=f;m++){for(var M=0;Mv||(o.push($=new y(m,v,m+h-1,A)),h>2&&(m=m+h-2))}}else for(var R=0;Rd&&o[M].end.row==L;)M--;for(o=o.slice(R,M+1),R=0,M=o.length;R=f;v--)if(S(v,Number.MAX_VALUE,p))return;if(n.wrap!=!1){for(v=$,f=h.row;v>=f;v--)if(S(v,Number.MAX_VALUE,p))return}}};else var m=function(v){var A=h.row;if(!S(A,h.column,v)){for(A=A+1;A<=$;A++)if(S(A,0,v))return;if(n.wrap!=!1){for(A=f,$=h.row;A<=$;A++)if(S(A,0,v))return}}};if(n.$isMultiLine)var M=e.length,S=function(p,v,A){var R=t?p-M+1:p;if(!(R<0||R+M>i.getLength())){var w=i.getLine(R),x=w.search(e[0]);if(!(!t&&xv)&&A(R,x,R+M-1,d))return!0}}};else if(t)var S=function(v,A,R){var w=i.getLine(v),x=[],g,d=0;for(e.lastIndex=0;g=e.exec(w);){var L=g[0].length;if(d=g.index,!L){if(d>=w.length)break;e.lastIndex=d+=1}if(g.index+L>A)break;x.push(g.index,L)}for(var E=x.length-1;E>=0;E-=2){var O=x[E-1],L=x[E];if(R(v,O,v,O+L))return!0}};else var S=function(v,A,R){var w=i.getLine(v),x,g;for(e.lastIndex=A;g=e.exec(w);){var d=g[0].length;if(x=g.index,R(v,x,v,x+d))return!0;if(!d&&(e.lastIndex=x+=1,x>=w.length))return!1}};return{forEach:m}},s}();function c(s,i){var n=b.supportsLookbehind();function e(h,f){f===void 0&&(f=!0);var $=n&&i.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return $.test(h)||i.regExp?n&&i.$supportsUnicodeFlag?f?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var t=Array.from(s),o=t[0],l=t[t.length-1];return e(o)+s+e(l,!1)}T.Search=a}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(I,T,_){"use strict";var b=this&&this.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var h in l)Object.prototype.hasOwnProperty.call(l,h)&&(o[h]=l[h])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}}(),C=I("../lib/keys"),y=I("../lib/useragent"),a=C.KEY_MODS,c=function(){function n(e,t){this.$init(e,t,!1)}return n.prototype.$init=function(e,t,o){this.platform=t||(y.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=o},n.prototype.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},n.prototype.removeCommand=function(e,t){var o=e&&(typeof e=="string"?e:e.name);e=this.commands[o],t||delete this.commands[o];var l=this.commandKeyBinding;for(var h in l){var f=l[h];if(f==e)delete l[h];else if(Array.isArray(f)){var $=f.indexOf(e);$!=-1&&(f.splice($,1),f.length==1&&(l[h]=f[0]))}}},n.prototype.bindKey=function(e,t,o){if(typeof e=="object"&&e&&(o==null&&(o=e.position),e=e[this.platform]),!!e){if(typeof t=="function")return this.addCommand({exec:t,bindKey:e,name:t.name||e});e.split("|").forEach(function(l){var h="";if(l.indexOf(" ")!=-1){var f=l.split(/\s+/);l=f.pop(),f.forEach(function(M){var S=this.parseKeys(M),p=a[S.hashId]+S.key;h+=(h?" ":"")+p,this._addCommandToBinding(h,"chainKeys")},this),h+=" "}var $=this.parseKeys(l),m=a[$.hashId]+$.key;this._addCommandToBinding(h+m,t,o)},this)}},n.prototype._addCommandToBinding=function(e,t,o){var l=this.commandKeyBinding,h;if(!t)delete l[e];else if(!l[e]||this.$singleCommand)l[e]=t;else{Array.isArray(l[e])?(h=l[e].indexOf(t))!=-1&&l[e].splice(h,1):l[e]=[l[e]],typeof o!="number"&&(o=s(t));var f=l[e];for(h=0;ho)break}f.splice(h,0,t)}},n.prototype.addCommands=function(e){e&&Object.keys(e).forEach(function(t){var o=e[t];if(o){if(typeof o=="string")return this.bindKey(o,t);typeof o=="function"&&(o={exec:o}),typeof o=="object"&&(o.name||(o.name=t),this.addCommand(o))}},this)},n.prototype.removeCommands=function(e){Object.keys(e).forEach(function(t){this.removeCommand(e[t])},this)},n.prototype.bindKeys=function(e){Object.keys(e).forEach(function(t){this.bindKey(t,e[t])},this)},n.prototype._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},n.prototype.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(m){return m}),o=t.pop(),l=C[o];if(C.FUNCTION_KEYS[l])o=C.FUNCTION_KEYS[l].toLowerCase();else if(t.length){if(t.length==1&&t[0]=="shift")return{key:o.toUpperCase(),hashId:-1}}else return{key:o,hashId:-1};for(var h=0,f=t.length;f--;){var $=C.KEY_MODS[t[f]];if($==null)return typeof console<"u"&&console.error("invalid modifier "+t[f]+" in "+e),!1;h|=$}return{key:o,hashId:h}},n.prototype.findKeyCommand=function(e,t){var o=a[e]+t;return this.commandKeyBinding[o]},n.prototype.handleKeyboard=function(e,t,o,l){if(!(l<0)){var h=a[t]+o,f=this.commandKeyBinding[h];return e.$keyChain&&(e.$keyChain+=" "+h,f=this.commandKeyBinding[e.$keyChain]||f),f&&(f=="chainKeys"||f[f.length-1]=="chainKeys")?(e.$keyChain=e.$keyChain||h,{command:"null"}):(e.$keyChain&&((!t||t==4)&&o.length==1?e.$keyChain=e.$keyChain.slice(0,-h.length-1):(t==-1||l>0)&&(e.$keyChain="")),{command:f})}},n.prototype.getStatusText=function(e,t){return t.$keyChain||""},n}();function s(n){return typeof n=="object"&&n.bindKey&&n.bindKey.position||(n.isDefault?-100:0)}var i=function(n){b(e,n);function e(t,o){var l=n.call(this,t,o)||this;return l.$singleCommand=!0,l}return e}(c);i.call=function(n,e,t){c.prototype.$init.call(n,e,t,!0)},c.call=function(n,e,t){c.prototype.$init.call(n,e,t,!1)},T.HashHandler=i,T.MultiHashHandler=c}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(I,T,_){"use strict";var b=this&&this.__extends||function(){var s=function(i,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},s(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");s(i,n);function e(){this.constructor=i}i.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}}(),C=I("../lib/oop"),y=I("../keyboard/hash_handler").MultiHashHandler,a=I("../lib/event_emitter").EventEmitter,c=function(s){b(i,s);function i(n,e){var t=s.call(this,e,n)||this;return t.byName=t.commands,t.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)}),t}return i.prototype.exec=function(n,e,t){if(Array.isArray(n)){for(var o=n.length;o--;)if(this.exec(n[o],e,t))return!0;return!1}if(typeof n=="string"&&(n=this.commands[n]),!n||e&&e.$readOnly&&!n.readOnly||this.$checkCommandState!=!1&&n.isAvailable&&!n.isAvailable(e))return!1;var l={editor:e,command:n,args:t};return l.returnValue=this._emit("exec",l),this._signal("afterExec",l),l.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(e){this.macro.push([e.command,e.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(e){typeof e=="string"?this.exec(e,n):this.exec(e[0],n,e[1])},this)}finally{this.$inReplay=!1}}},i.prototype.trimMacro=function(n){return n.map(function(e){return typeof e[0]!="string"&&(e[0]=e[0].name),e[1]||(e=e[0]),e})},i}(y);C.implement(c.prototype,a),T.CommandManager=c}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(I,T,_){"use strict";var b=I("../lib/lang"),C=I("../config"),y=I("../range").Range;function a(s,i){return{win:s,mac:i}}T.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:a("Ctrl-,","Command-,"),exec:function(s){C.loadModule("ace/ext/settings_menu",function(i){i.init(s),s.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:a("Alt-E","F4"),exec:function(s){C.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(s,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(s){C.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(s,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:a("Ctrl-A","Command-A"),exec:function(s){s.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:a(null,"Ctrl-L"),exec:function(s){s.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:a("Ctrl-L","Command-L"),exec:function(s,i){typeof i=="number"&&!isNaN(i)&&s.gotoLine(i),s.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(s){s.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(s){s.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:a("F2","F2"),exec:function(s){s.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:a("Alt-F2","Alt-F2"),exec:function(s){s.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:a("Alt-0","Command-Option-0"),exec:function(s){s.session.foldAll(),s.session.unfold(s.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(s){s.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:a("Ctrl-K","Command-G"),exec:function(s){s.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(s){s.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:a("Alt-K","Ctrl-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:a("Ctrl-F","Command-F"),exec:function(s){C.loadModule("ace/ext/searchbox",function(i){i.Search(s)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(s){s.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(s){s.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(s){s.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(s){s.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:a("Up","Up|Ctrl-P"),exec:function(s,i){s.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(s){s.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(s){s.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(s){s.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:a("Down","Down|Ctrl-N"),exec:function(s,i){s.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(s){s.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:a("Ctrl-Left","Option-Left"),exec:function(s){s.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(s){s.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(s){s.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(s){s.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:a("Left","Left|Ctrl-B"),exec:function(s,i){s.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(s){s.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:a("Ctrl-Right","Option-Right"),exec:function(s){s.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(s){s.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(s){s.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:a("Shift-Right","Shift-Right"),exec:function(s){s.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:a("Right","Right|Ctrl-F"),exec:function(s,i){s.navigateRight(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(s){s.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:a(null,"Option-PageDown"),exec:function(s){s.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(s){s.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(s){s.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:a(null,"Option-PageUp"),exec:function(s){s.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(s){s.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:a("Ctrl-Up",null),exec:function(s){s.renderer.scrollBy(0,-2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:a("Ctrl-Down",null),exec:function(s){s.renderer.scrollBy(0,2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(s){s.commands.toggleRecording(s)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(s){s.commands.replay(s)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:a("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(s){s.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:a("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(s){s.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(s){s.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(s){},readOnly:!0},{name:"cut",description:"Cut",exec:function(s){var i=s.$copyWithEmptySelection&&s.selection.isEmpty(),n=i?s.selection.getLineRange():s.selection.getRange();s._emit("cut",n),n.isEmpty()||s.session.remove(n),s.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(s,i){s.$handlePaste(i)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:a("Ctrl-D","Command-D"),exec:function(s){s.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(s){s.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(s){s.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:a("Ctrl-/","Command-/"),exec:function(s){s.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(s){s.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(s){s.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(s){s.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(s){C.loadModule("ace/ext/searchbox",function(i){i.Search(s,!0)})}},{name:"undo",description:"Undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(s){s.undo()}},{name:"redo",description:"Redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(s){s.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(s){s.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:a("Alt-Up","Option-Up"),exec:function(s){s.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(s){s.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:a("Alt-Down","Option-Down"),exec:function(s){s.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(s){s.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(s){s.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:a("Shift-Delete",null),exec:function(s){if(s.selection.isEmpty())s.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(s){s.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(s){s.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(s){var i=s.selection.getRange();i.start.column=0,s.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(s){var i=s.selection.getRange();i.end.column=Number.MAX_VALUE,s.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(s){s.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(s){s.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(s){s.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:a("Tab","Tab"),exec:function(s){s.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(s){s.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(s){s.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(s,i){s.insert(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(s,i){s.insert(b.stringRepeat(i.text||"",i.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:a(null,"Ctrl-O"),exec:function(s){s.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(s){s.transposeLetters()},multiSelectAction:function(s){s.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(s){s.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(s){s.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:a(null,null),exec:function(s){s.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(s){var i=s.selection.getRange();i.start.column=i.end.column=0,i.end.row++,s.selection.setRange(i,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:a("Ctrl+F3","F3"),exec:function(s){s.openLink()}},{name:"joinlines",description:"Join lines",bindKey:a(null,null),exec:function(s){for(var i=s.selection.isBackwards(),n=i?s.selection.getSelectionLead():s.selection.getSelectionAnchor(),e=i?s.selection.getSelectionAnchor():s.selection.getSelectionLead(),t=s.session.doc.getLine(n.row).length,o=s.session.doc.getTextRange(s.selection.getRange()),l=o.replace(/\n\s*/," ").length,h=s.session.doc.getLine(n.row),f=n.row+1;f<=e.row+1;f++){var $=b.stringTrimLeft(b.stringTrimRight(s.session.doc.getLine(f)));$.length!==0&&($=" "+$),h+=$}e.row+10?(s.selection.moveCursorTo(n.row,n.column),s.selection.selectTo(n.row,n.column+l)):(t=s.session.doc.getLine(n.row).length>t?t+1:t,s.selection.moveCursorTo(n.row,t))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(s){var i=s.session.doc.getLength()-1,n=s.session.doc.getLine(i).length,e=s.selection.rangeList.ranges,t=[];e.length<1&&(e=[s.selection.getRange()]);for(var o=0;oc[s].column&&s++,e.unshift(s,0),c.splice.apply(c,e),this.$updateRows()}}},y.prototype.$updateRows=function(){var a=this.session.lineWidgets;if(a){var c=!0;a.forEach(function(s,i){if(s)for(c=!1,s.row=i;s.$oldWidget;)s.$oldWidget.row=i,s=s.$oldWidget}),c&&(this.session.lineWidgets=null)}},y.prototype.$registerLineWidget=function(a){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var c=this.session.lineWidgets[a.row];return c&&(a.$oldWidget=c,c.el&&c.el.parentNode&&(c.el.parentNode.removeChild(c.el),c._inDocument=!1)),this.session.lineWidgets[a.row]=a,a},y.prototype.addLineWidget=function(a){if(this.$registerLineWidget(a),a.session=this.session,!this.editor)return a;var c=this.editor.renderer;a.html&&!a.el&&(a.el=b.createElement("div"),a.el.innerHTML=a.html),a.text&&!a.el&&(a.el=b.createElement("div"),a.el.textContent=a.text),a.el&&(b.addCssClass(a.el,"ace_lineWidgetContainer"),a.className&&b.addCssClass(a.el,a.className),a.el.style.position="absolute",a.el.style.zIndex=5,c.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/c.layerConfig.lineHeight);var s=this.session.getFoldAt(a.row,0);if(a.$fold=s,s){var i=this.session.lineWidgets;a.row==s.end.row&&!i[s.start.row]?i[s.start.row]=a:a.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:a.row}}}),this.$updateRows(),this.renderWidgets(null,c),this.onWidgetChanged(a),a},y.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 c=this.session.lineWidgets[a.row];if(c==a)this.session.lineWidgets[a.row]=a.$oldWidget,a.$oldWidget&&this.onWidgetChanged(a.$oldWidget);else for(;c;){if(c.$oldWidget==a){c.$oldWidget=a.$oldWidget;break}c=c.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:a.row}}}),this.$updateRows()},y.prototype.getWidgetsAtRow=function(a){for(var c=this.session.lineWidgets,s=c&&c[a],i=[];s;)i.push(s),s=s.$oldWidget;return i},y.prototype.onWidgetChanged=function(a){this.session._changedWidgets.push(a),this.editor&&this.editor.renderer.updateFull()},y.prototype.measureWidgets=function(a,c){var s=this.session._changedWidgets,i=c.layerConfig;if(!(!s||!s.length)){for(var n=1/0,e=0;e0&&!i[n];)n--;this.firstRow=s.firstRow,this.lastRow=s.lastRow,c.$cursorLayer.config=s;for(var t=n;t<=e;t++){var o=i[t];if(!(!o||!o.el)){if(o.hidden){o.el.style.top=-100-(o.pixelHeight||0)+"px";continue}o._inDocument||(o._inDocument=!0,c.container.appendChild(o.el));var l=c.$cursorLayer.getPixelPosition({row:t,column:0},!0).top;o.coverLine||(l+=s.lineHeight*this.session.getRowLineCount(o.row)),o.el.style.top=l-s.offset+"px";var h=o.coverGutter?0:c.gutterWidth;o.fixedWidth||(h-=c.scrollLeft),o.el.style.left=h+"px",o.fullWidth&&o.screenWidth&&(o.el.style.minWidth=s.width+2*s.padding+"px"),o.fixedWidth?o.el.style.right=c.scrollBar.getWidth()+"px":o.el.style.right=""}}}},y}();T.LineWidgets=C}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(I,T,_){"use strict";var b=I("../lib/keys"),C=I("../mouse/default_gutter_handler").GutterTooltip,y=function(){function c(s){this.editor=s,this.gutterLayer=s.renderer.$gutterLayer,this.element=s.renderer.$gutter,this.lines=s.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new C(this.editor)}return c.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},c.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},c.prototype.$onGutterKeyDown=function(s){if(this.annotationTooltip.isOpen){s.preventDefault(),s.keyCode===b.escape&&this.annotationTooltip.hideTooltip();return}if(s.target===this.element){if(s.keyCode!=b.enter)return;s.preventDefault();var i=this.editor.getCursorPosition().row;this.editor.isRowVisible(i)||this.editor.scrollToLine(i,!0,!0),setTimeout((function(){var n=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),e=this.$findNearestFoldWidget(n),t=this.$findNearestAnnotation(n);if(!(e===null&&t===null)){if(e===null&&t!==null){this.activeRowIndex=t,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(e!==null&&t===null){this.activeRowIndex=e,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(t-n)0||s+i=0&&this.$isFoldWidgetVisible(s-i))return s-i;if(s+i<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(s+i))return s+i}return null},c.prototype.$findNearestAnnotation=function(s){if(this.$isAnnotationVisible(s))return s;for(var i=0;s-i>0||s+i=0&&this.$isAnnotationVisible(s-i))return s-i;if(s+i<=this.lines.getLength()-1&&this.$isAnnotationVisible(s+i))return s+i}return null},c.prototype.$focusFoldWidget=function(s){if(s!=null){var i=this.$getFoldWidget(s);i.classList.add(this.editor.renderer.keyboardFocusClassName),i.focus()}},c.prototype.$focusAnnotation=function(s){if(s!=null){var i=this.$getAnnotation(s);i.classList.add(this.editor.renderer.keyboardFocusClassName),i.focus()}},c.prototype.$blurFoldWidget=function(s){var i=this.$getFoldWidget(s);i.classList.remove(this.editor.renderer.keyboardFocusClassName),i.blur()},c.prototype.$blurAnnotation=function(s){var i=this.$getAnnotation(s);i.classList.remove(this.editor.renderer.keyboardFocusClassName),i.blur()},c.prototype.$moveFoldWidgetUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},c.prototype.$moveFoldWidgetDown=function(){for(var s=this.activeRowIndex;s0;)if(s--,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},c.prototype.$moveAnnotationDown=function(){for(var s=this.activeRowIndex;s=g.length&&(g=void 0),{value:g&&g[E++],done:!g}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},C=I("./lib/oop"),y=I("./lib/dom"),a=I("./lib/lang"),c=I("./lib/useragent"),s=I("./keyboard/textinput").TextInput,i=I("./mouse/mouse_handler").MouseHandler,n=I("./mouse/fold_handler").FoldHandler,e=I("./keyboard/keybinding").KeyBinding,t=I("./edit_session").EditSession,o=I("./search").Search,l=I("./range").Range,h=I("./lib/event_emitter").EventEmitter,f=I("./commands/command_manager").CommandManager,$=I("./commands/default_commands").commands,m=I("./config"),M=I("./token_iterator").TokenIterator,S=I("./line_widgets").LineWidgets,p=I("./keyboard/gutter_handler").GutterKeyboardHandler,v=I("./config").nls,A=I("./clipboard"),R=I("./lib/keys"),w=function(){function g(d,L,E){this.$toDestroy=[];var O=d.getContainerElement();this.container=O,this.renderer=d,this.id="editor"+ ++g.$uid,this.commands=new f(c.isMac?"mac":"win",$),typeof document=="object"&&(this.textInput=new s(d.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new i(this),new n(this)),this.keyBinding=new e(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(D,U){U._$emitInputEvent.schedule(31)}),this.setSession(L||E&&E.session||new t("")),m.resetOptions(this),E&&this.setOptions(E),m._signal("editor",this)}return g.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)},g.prototype.startOperation=function(d){if(this.curOp){if(!d||this.curOp.command)return;this.prevOp=this.curOp}d||(this.previousCommand=null,d={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:d.command||{},args:d.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},g.prototype.endOperation=function(d){if(this.curOp&&this.session){if(d&&d.returnValue===!1||!this.session)return this.curOp=null;if(d==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var L=this.curOp.command,E=L&&L.scrollIntoView;if(E){switch(E){case"center-animate":E="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),D=this.renderer.layerConfig;(O.start.row>=D.lastRow||O.end.row<=D.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break;default:break}E=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var U=this.selection.toJSON();this.curOp.selectionAfter=U,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(U),this.prevOp=this.curOp,this.curOp=null}},g.prototype.$historyTracker=function(d){if(this.$mergeUndoDeltas){var L=this.prevOp,E=this.$mergeableCommands,O=L.command&&d.command.name==L.command.name;if(d.command.name=="insertstring"){var D=d.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(D)||/\s/.test(L.args)),this.mergeNextCommand=!0}else O=O&&E.indexOf(d.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:E.indexOf(d.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},g.prototype.setKeyboardHandler=function(d,L){if(d&&typeof d=="string"&&d!="ace"){this.$keybindingId=d;var E=this;m.loadModule(["keybinding",d],function(O){E.$keybindingId==d&&E.keyBinding.setKeyboardHandler(O&&O.handler),L&&L()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(d),L&&L()},g.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},g.prototype.setSession=function(d){if(this.session!=d){this.curOp&&this.endOperation(),this.curOp={};var L=this.session;if(L){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 E=this.session.getSelection();E.off("changeCursor",this.$onCursorChange),E.off("changeSelection",this.$onSelectionChange)}this.session=d,d?(this.$onDocumentChange=this.onDocumentChange.bind(this),d.on("change",this.$onDocumentChange),this.renderer.setSession(d),this.$onChangeMode=this.onChangeMode.bind(this),d.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),d.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),d.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),d.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),d.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),d.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=d.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(d)),this._signal("changeSession",{session:d,oldSession:L}),this.curOp=null,L&&L._signal("changeEditor",{oldEditor:this}),d&&d._signal("changeEditor",{editor:this}),d&&!d.destroyed&&d.bgTokenizer.scheduleStart()}},g.prototype.getSession=function(){return this.session},g.prototype.setValue=function(d,L){return this.session.doc.setValue(d),L?L==1?this.navigateFileEnd():L==-1&&this.navigateFileStart():this.selectAll(),d},g.prototype.getValue=function(){return this.session.getValue()},g.prototype.getSelection=function(){return this.selection},g.prototype.resize=function(d){this.renderer.onResize(d)},g.prototype.setTheme=function(d,L){this.renderer.setTheme(d,L)},g.prototype.getTheme=function(){return this.renderer.getTheme()},g.prototype.setStyle=function(d){this.renderer.setStyle(d)},g.prototype.unsetStyle=function(d){this.renderer.unsetStyle(d)},g.prototype.getFontSize=function(){return this.getOption("fontSize")||y.computedStyle(this.container).fontSize},g.prototype.setFontSize=function(d){this.setOption("fontSize",d)},g.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var d=this;this.$highlightPending=!0,setTimeout(function(){d.$highlightPending=!1;var L=d.session;if(!(!L||L.destroyed)){L.$bracketHighlight&&(L.$bracketHighlight.markerIds.forEach(function(z){L.removeMarker(z)}),L.$bracketHighlight=null);var E=d.getCursorPosition(),O=d.getKeyboardHandler(),D=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(d),U=L.getMatchingBracketRanges(E,D);if(!U){var B=new M(L,E.row,E.column),j=B.getCurrentToken();if(j&&/\b(?:tag-open|tag-name)/.test(j.type)){var P=L.getMatchingTags(E);P&&(U=[P.openTagName,P.closeTagName])}}if(!U&&L.$mode.getMatching&&(U=L.$mode.getMatching(d.session)),!U){d.getHighlightIndentGuides()&&d.renderer.$textLayer.$highlightIndentGuide();return}var H="ace_bracket";Array.isArray(U)?U.length==1&&(H="ace_error_bracket"):U=[U],U.length==2&&(l.comparePoints(U[0].end,U[1].start)==0?U=[l.fromPoints(U[0].start,U[1].end)]:l.comparePoints(U[0].start,U[1].end)==0&&(U=[l.fromPoints(U[1].start,U[0].end)])),L.$bracketHighlight={ranges:U,markerIds:U.map(function(z){return L.addMarker(z,H,"text")})},d.getHighlightIndentGuides()&&d.renderer.$textLayer.$highlightIndentGuide()}},50)}},g.prototype.focus=function(){this.textInput.focus()},g.prototype.isFocused=function(){return this.textInput.isFocused()},g.prototype.blur=function(){this.textInput.blur()},g.prototype.onFocus=function(d){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",d))},g.prototype.onBlur=function(d){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",d))},g.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},g.prototype.onDocumentChange=function(d){var L=this.session.$useWrapMode,E=d.start.row==d.end.row?d.end.row:1/0;this.renderer.updateLines(d.start.row,E,L),this._signal("change",d),this.$cursorChange()},g.prototype.onTokenizerUpdate=function(d){var L=d.data;this.renderer.updateLines(L.first,L.last)},g.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},g.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},g.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},g.prototype.$updateHighlightActiveLine=function(){var d=this.getSession(),L;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(L=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(L=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(L=!1)),d.$highlightLineMarker&&!L)d.removeMarker(d.$highlightLineMarker.id),d.$highlightLineMarker=null;else if(!d.$highlightLineMarker&&L){var E=new l(L.row,L.column,L.row,1/0);E.id=d.addMarker(E,"ace_active-line","screenLine"),d.$highlightLineMarker=E}else L&&(d.$highlightLineMarker.start.row=L.row,d.$highlightLineMarker.end.row=L.row,d.$highlightLineMarker.start.column=L.column,d._signal("changeBackMarker"))},g.prototype.onSelectionChange=function(d){var L=this.session;if(L.$selectionMarker&&L.removeMarker(L.$selectionMarker),L.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var E=this.selection.getRange(),O=this.getSelectionStyle();L.$selectionMarker=L.addMarker(E,"ace_selection",O)}var D=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(D),this._signal("changeSelection")},g.prototype.$getSelectionHighLightRegexp=function(){var d=this.session,L=this.getSelectionRange();if(!(L.isEmpty()||L.isMultiLine())){var E=L.start.column,O=L.end.column,D=d.getLine(L.start.row),U=D.substring(E,O);if(!(U.length>5e3||!/[\w\d]/.test(U))){var B=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:U}),j=D.substring(E-1,O+1);if(B.test(j))return B}}},g.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},g.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},g.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},g.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},g.prototype.onChangeMode=function(d){this.renderer.updateText(),this._emit("changeMode",d)},g.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},g.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},g.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},g.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},g.prototype.getCopyText=function(){var d=this.getSelectedText(),L=this.session.doc.getNewLineCharacter(),E=!1;if(!d&&this.$copyWithEmptySelection){E=!0;for(var O=this.selection.getAllRanges(),D=0;Dz.search(/\S|$/)){var j=z.substr(D.column).search(/\S|$/);E.doc.removeInLine(D.row,D.column,D.column+j)}}this.clearSelection();var P=D.column,H=E.getState(D.row),z=E.getLine(D.row),W=O.checkOutdent(H,z,d);if(E.insert(D,d),U&&U.selection&&(U.selection.length==2?this.selection.setSelectionRange(new l(D.row,P+U.selection[0],D.row,P+U.selection[1])):this.selection.setSelectionRange(new l(D.row+U.selection[0],U.selection[1],D.row+U.selection[2],U.selection[3]))),this.$enableAutoIndent){if(E.getDocument().isNewLine(d)){var Y=O.getNextLineIndent(H,z.slice(0,D.column),E.getTabString());E.insert({row:D.row+1,column:0},Y)}W&&O.autoOutdent(H,E,D.row)}},g.prototype.autoIndent=function(){var d=this.session,L=d.getMode(),E,O;if(this.selection.isEmpty())E=0,O=d.doc.getLength()-1;else{var D=this.getSelectionRange();E=D.start.row,O=D.end.row}for(var U="",B="",j="",P,H,z,W=d.getTabString(),Y=E;Y<=O;Y++)Y>0&&(U=d.getState(Y-1),B=d.getLine(Y-1),j=L.getNextLineIndent(U,B,W)),P=d.getLine(Y),H=L.$getIndent(P),j!==H&&(H.length>0&&(z=new l(Y,0,Y,H.length),d.remove(z)),j.length>0&&d.insert({row:Y,column:0},j)),L.autoOutdent(U,d,Y)},g.prototype.onTextInput=function(d,L){if(!L)return this.keyBinding.onTextInput(d);this.startOperation({command:{name:"insertstring"}});var E=this.applyComposition.bind(this,d,L);this.selection.rangeCount?this.forEachSelection(E):E(),this.endOperation()},g.prototype.applyComposition=function(d,L){if(L.extendLeft||L.extendRight){var E=this.selection.getRange();E.start.column-=L.extendLeft,E.end.column+=L.extendRight,E.start.column<0&&(E.start.row--,E.start.column+=this.session.getLine(E.start.row).length+1),this.selection.setRange(E),!d&&!E.isEmpty()&&this.remove()}if((d||!this.selection.isEmpty())&&this.insert(d,!0),L.restoreStart||L.restoreEnd){var E=this.selection.getRange();E.start.column-=L.restoreStart,E.end.column-=L.restoreEnd,this.selection.setRange(E)}},g.prototype.onCommandKey=function(d,L,E){return this.keyBinding.onCommandKey(d,L,E)},g.prototype.setOverwrite=function(d){this.session.setOverwrite(d)},g.prototype.getOverwrite=function(){return this.session.getOverwrite()},g.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},g.prototype.setScrollSpeed=function(d){this.setOption("scrollSpeed",d)},g.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},g.prototype.setDragDelay=function(d){this.setOption("dragDelay",d)},g.prototype.getDragDelay=function(){return this.getOption("dragDelay")},g.prototype.setSelectionStyle=function(d){this.setOption("selectionStyle",d)},g.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},g.prototype.setHighlightActiveLine=function(d){this.setOption("highlightActiveLine",d)},g.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},g.prototype.setHighlightGutterLine=function(d){this.setOption("highlightGutterLine",d)},g.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},g.prototype.setHighlightSelectedWord=function(d){this.setOption("highlightSelectedWord",d)},g.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},g.prototype.setAnimatedScroll=function(d){this.renderer.setAnimatedScroll(d)},g.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},g.prototype.setShowInvisibles=function(d){this.renderer.setShowInvisibles(d)},g.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},g.prototype.setDisplayIndentGuides=function(d){this.renderer.setDisplayIndentGuides(d)},g.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},g.prototype.setHighlightIndentGuides=function(d){this.renderer.setHighlightIndentGuides(d)},g.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},g.prototype.setShowPrintMargin=function(d){this.renderer.setShowPrintMargin(d)},g.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},g.prototype.setPrintMarginColumn=function(d){this.renderer.setPrintMarginColumn(d)},g.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},g.prototype.setReadOnly=function(d){this.setOption("readOnly",d)},g.prototype.getReadOnly=function(){return this.getOption("readOnly")},g.prototype.setBehavioursEnabled=function(d){this.setOption("behavioursEnabled",d)},g.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},g.prototype.setWrapBehavioursEnabled=function(d){this.setOption("wrapBehavioursEnabled",d)},g.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},g.prototype.setShowFoldWidgets=function(d){this.setOption("showFoldWidgets",d)},g.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},g.prototype.setFadeFoldWidgets=function(d){this.setOption("fadeFoldWidgets",d)},g.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},g.prototype.remove=function(d){this.selection.isEmpty()&&(d=="left"?this.selection.selectLeft():this.selection.selectRight());var L=this.getSelectionRange();if(this.getBehavioursEnabled()){var E=this.session,O=E.getState(L.start.row),D=E.getMode().transformAction(O,"deletion",this,E,L);if(L.end.column===0){var U=E.getTextRange(L);if(U[U.length-1]==`
`){var B=E.getLine(L.end.row);/^\s+$/.test(B)&&(L.end.column=B.length)}}D&&(L=D)}this.session.remove(L),this.clearSelection()},g.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},g.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},g.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},g.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var d=this.getSelectionRange();d.start.column==d.end.column&&d.start.row==d.end.row&&(d.end.column=0,d.end.row++),this.session.remove(d),this.clearSelection()},g.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var d=this.getCursorPosition();this.insert(`
`),this.moveCursorToPosition(d)},g.prototype.setGhostText=function(d,L){this.session.widgetManager||(this.session.widgetManager=new S(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(d,L)},g.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},g.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var d=this.getCursorPosition(),L=d.column;if(L!==0){var E=this.session.getLine(d.row),O,D;Lj.toLowerCase()?1:0});for(var D=new l(0,0,0,0),O=d.first;O<=d.last;O++){var U=L.getLine(O);D.start.row=O,D.end.row=O,D.end.column=U.length,L.replace(D,E[O-d.first])}},g.prototype.toggleCommentLines=function(){var d=this.session.getState(this.getCursorPosition().row),L=this.$getSelectedRows();this.session.getMode().toggleCommentLines(d,this.session,L.first,L.last)},g.prototype.toggleBlockComment=function(){var d=this.getCursorPosition(),L=this.session.getState(d.row),E=this.getSelectionRange();this.session.getMode().toggleBlockComment(L,this.session,E,d)},g.prototype.getNumberAt=function(d,L){var E=/[\-]?[0-9]+(?:\.[0-9]+)?/g;E.lastIndex=0;for(var O=this.session.getLine(d);E.lastIndex=L){var U={value:D[0],start:D.index,end:D.index+D[0].length};return U}}return null},g.prototype.modifyNumber=function(d){var L=this.selection.getCursor().row,E=this.selection.getCursor().column,O=new l(L,E-1,L,E),D=this.session.getTextRange(O);if(!isNaN(parseFloat(D))&&isFinite(D)){var U=this.getNumberAt(L,E);if(U){var B=U.value.indexOf(".")>=0?U.start+U.value.indexOf(".")+1:U.end,j=U.start+U.value.length-B,P=parseFloat(U.value);P*=Math.pow(10,j),B!==U.end&&E=B&&U<=j&&(E=te,P.selection.clearSelection(),P.moveCursorTo(d,B+O),P.selection.selectTo(d,j+O)),B=j});for(var H=this.$toggleWordPairs,z,W=0;W=j&&B<=P&&Y.match(/((?:https?|ftp):\/\/[\S]+)/)){H=Y.replace(/[\s:.,'";}\]]+$/,"");break}j=P}}catch(Z){E={error:Z}}finally{try{W&&!W.done&&(O=z.return)&&O.call(z)}finally{if(E)throw E.error}}return H},g.prototype.openLink=function(){var d=this.selection.getCursor(),L=this.findLinkAt(d.row,d.column);return L&&window.open(L,"_blank"),L!=null},g.prototype.removeLines=function(){var d=this.$getSelectedRows();this.session.removeFullLines(d.first,d.last),this.clearSelection()},g.prototype.duplicateSelection=function(){var d=this.selection,L=this.session,E=d.getRange(),O=d.isBackwards();if(E.isEmpty()){var D=E.start.row;L.duplicateLines(D,D)}else{var U=O?E.start:E.end,B=L.insert(U,L.getTextRange(E),!1);E.start=U,E.end=B,d.setSelectionRange(E,O)}},g.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},g.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},g.prototype.moveText=function(d,L,E){return this.session.moveText(d,L,E)},g.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},g.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},g.prototype.$moveLines=function(d,L){var E,O,D=this.selection;if(!D.inMultiSelectMode||this.inVirtualSelectionMode){var U=D.toOrientedRange();E=this.$getSelectedRows(U),O=this.session.$moveLines(E.first,E.last,L?0:d),L&&d==-1&&(O=0),U.moveBy(O,0),D.fromOrientedRange(U)}else{var B=D.rangeList.ranges;D.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var j=0,P=0,H=B.length,z=0;zZ+1)break;Z=q.last}for(z--,j=this.session.$moveLines(Y,Z,L?0:d),L&&d==-1&&(W=z+1);W<=z;)B[W].moveBy(j,0),W++;L||(j=0),P+=j}D.fromOrientedRange(D.ranges[0]),D.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},g.prototype.$getSelectedRows=function(d){return d=(d||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(d.start.row),last:this.session.getRowFoldEnd(d.end.row)}},g.prototype.onCompositionStart=function(d){this.renderer.showComposition(d)},g.prototype.onCompositionUpdate=function(d){this.renderer.setCompositionText(d)},g.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},g.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},g.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},g.prototype.isRowVisible=function(d){return d>=this.getFirstVisibleRow()&&d<=this.getLastVisibleRow()},g.prototype.isRowFullyVisible=function(d){return d>=this.renderer.getFirstFullyVisibleRow()&&d<=this.renderer.getLastFullyVisibleRow()},g.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},g.prototype.$moveByPage=function(d,L){var E=this.renderer,O=this.renderer.layerConfig,D=d*Math.floor(O.height/O.lineHeight);L===!0?this.selection.$moveSelection(function(){this.moveCursorBy(D,0)}):L===!1&&(this.selection.moveCursorBy(D,0),this.selection.clearSelection());var U=E.scrollTop;E.scrollBy(0,D*O.lineHeight),L!=null&&E.scrollCursorIntoView(null,.5),E.animateScrolling(U)},g.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},g.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},g.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},g.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},g.prototype.scrollPageDown=function(){this.$moveByPage(1)},g.prototype.scrollPageUp=function(){this.$moveByPage(-1)},g.prototype.scrollToRow=function(d){this.renderer.scrollToRow(d)},g.prototype.scrollToLine=function(d,L,E,O){this.renderer.scrollToLine(d,L,E,O)},g.prototype.centerSelection=function(){var d=this.getSelectionRange(),L={row:Math.floor(d.start.row+(d.end.row-d.start.row)/2),column:Math.floor(d.start.column+(d.end.column-d.start.column)/2)};this.renderer.alignCursor(L,.5)},g.prototype.getCursorPosition=function(){return this.selection.getCursor()},g.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},g.prototype.getSelectionRange=function(){return this.selection.getRange()},g.prototype.selectAll=function(){this.selection.selectAll()},g.prototype.clearSelection=function(){this.selection.clearSelection()},g.prototype.moveCursorTo=function(d,L){this.selection.moveCursorTo(d,L)},g.prototype.moveCursorToPosition=function(d){this.selection.moveCursorToPosition(d)},g.prototype.jumpToMatching=function(d,L){var E=this.getCursorPosition(),O=new M(this.session,E.row,E.column),D=O.getCurrentToken(),U=0;D&&D.type.indexOf("tag-name")!==-1&&(D=O.stepBackward());var B=D||O.stepForward();if(B){var j,P=!1,H={},z=E.column-B.start,W,Y={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(B.value.match(/[{}()\[\]]/g)){for(;z1?H[B.value]++:D.value===""&&H[B.value]--,H[B.value]===-1&&(j="tag",P=!0));P||(D=B,U++,B=O.stepForward(),z=0)}while(B&&!P);if(j){var Z,q;if(j==="bracket")Z=this.session.getBracketRange(E),Z||(Z=new l(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+z-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+z-1),q=Z.start,(L||q.row===E.row&&Math.abs(q.column-E.column)<2)&&(Z=this.session.getBracketRange(q)));else if(j==="tag"){if(!B||B.type.indexOf("tag-name")===-1)return;if(Z=new l(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),Z.compare(E.row,E.column)===0){var Q=this.session.getMatchingTags(E);Q&&(Q.openTag.contains(E.row,E.column)?(Z=Q.closeTag,q=Z.start):(Z=Q.openTag,Q.closeTag.start.row===E.row&&Q.closeTag.start.column===E.column?q=Z.end:q=Z.start))}q=q||Z.start}q=Z&&Z.cursor||q,q&&(d?Z&&L?this.selection.setRange(Z):Z&&Z.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(q.row,q.column):this.selection.moveTo(q.row,q.column))}}},g.prototype.gotoLine=function(d,L,E){this.selection.clearSelection(),this.session.unfold({row:d-1,column:L||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(d-1,L||0),this.isRowFullyVisible(d-1)||this.scrollToLine(d-1,!0,E)},g.prototype.navigateTo=function(d,L){this.selection.moveTo(d,L)},g.prototype.navigateUp=function(d){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var L=this.selection.anchor.getPosition();return this.moveCursorToPosition(L)}this.selection.clearSelection(),this.selection.moveCursorBy(-d||-1,0)},g.prototype.navigateDown=function(d){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var L=this.selection.anchor.getPosition();return this.moveCursorToPosition(L)}this.selection.clearSelection(),this.selection.moveCursorBy(d||1,0)},g.prototype.navigateLeft=function(d){if(this.selection.isEmpty())for(d=d||1;d--;)this.selection.moveCursorLeft();else{var L=this.getSelectionRange().start;this.moveCursorToPosition(L)}this.clearSelection()},g.prototype.navigateRight=function(d){if(this.selection.isEmpty())for(d=d||1;d--;)this.selection.moveCursorRight();else{var L=this.getSelectionRange().end;this.moveCursorToPosition(L)}this.clearSelection()},g.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},g.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},g.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},g.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},g.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},g.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},g.prototype.replace=function(d,L){L&&this.$search.set(L);var E=this.$search.find(this.session),O=0;return E&&(this.$tryReplace(E,d)&&(O=1),this.selection.setSelectionRange(E),this.renderer.scrollSelectionIntoView(E.start,E.end)),O},g.prototype.replaceAll=function(d,L){L&&this.$search.set(L);var E=this.$search.findAll(this.session),O=0;if(!E.length)return O;var D=this.getSelectionRange();this.selection.moveTo(0,0);for(var U=E.length-1;U>=0;--U)this.$tryReplace(E[U],d)&&O++;return this.selection.setSelectionRange(D),O},g.prototype.$tryReplace=function(d,L){var E=this.session.getTextRange(d);return L=this.$search.replace(E,L),L!==null?(d.end=this.session.replace(d,L),d):null},g.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},g.prototype.find=function(d,L,E){L||(L={}),typeof d=="string"||d instanceof RegExp?L.needle=d:typeof d=="object"&&C.mixin(L,d);var O=this.selection.getRange();L.needle==null&&(d=this.session.getTextRange(O)||this.$search.$options.needle,d||(O=this.session.getWordRange(O.start.row,O.start.column),d=this.session.getTextRange(O)),this.$search.set({needle:d})),this.$search.set(L),L.start||this.$search.set({start:O});var D=this.$search.find(this.session);if(L.preventScroll)return D;if(D)return this.revealRange(D,E),D;L.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},g.prototype.findNext=function(d,L){this.find({skipCurrent:!0,backwards:!1},d,L)},g.prototype.findPrevious=function(d,L){this.find(d,{skipCurrent:!0,backwards:!0},L)},g.prototype.revealRange=function(d,L){this.session.unfold(d),this.selection.setSelectionRange(d);var E=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(d.start,d.end,.5),L!==!1&&this.renderer.animateScrolling(E)},g.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},g.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},g.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(d){d.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()},g.prototype.setAutoScrollEditorIntoView=function(d){if(d){var L,E=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var D=this.$scrollAnchor;D.style.cssText="position:absolute",this.container.insertBefore(D,this.container.firstChild);var U=this.on("changeSelection",function(){O=!0}),B=this.renderer.on("beforeRender",function(){O&&(L=E.renderer.container.getBoundingClientRect())}),j=this.renderer.on("afterRender",function(){if(O&&L&&(E.isFocused()||E.searchBox&&E.searchBox.isFocused())){var P=E.renderer,H=P.$cursorLayer.$pixelPos,z=P.layerConfig,W=H.top-z.offset;H.top>=0&&W+L.top<0?O=!0:H.topwindow.innerHeight?O=!1:O=null,O!=null&&(D.style.top=W+"px",D.style.left=H.left+"px",D.style.height=z.lineHeight+"px",D.scrollIntoView(O)),O=L=null}});this.setAutoScrollEditorIntoView=function(P){P||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",U),this.renderer.off("afterRender",j),this.renderer.off("beforeRender",B))}}},g.prototype.$resetCursorStyle=function(){var d=this.$cursorStyle||"ace",L=this.renderer.$cursorLayer;L&&(L.setSmoothBlinking(/smooth/.test(d)),L.isBlinking=!this.$readOnly&&d!="wide",y.setCssClass(L.element,"ace_slim-cursors",/slim/.test(d)))},g.prototype.prompt=function(d,L,E){var O=this;m.loadModule("ace/ext/prompt",function(D){D.prompt(O,d,L,E)})},g}();w.$uid=0,w.prototype.curOp=null,w.prototype.prevOp={},w.prototype.$mergeableCommands=["backspace","del","insertstring"],w.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"],["&&","||"],["==","!="]],C.implement(w.prototype,h),m.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(g){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:g})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(g){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(g){this.textInput.setReadOnly(g),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(g){this.textInput.setCopyWithEmptySelection(g)},initialValue:!1},cursorStyle:{set:function(g){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(g){this.setAutoScrollEditorIntoView(g)}},keyboardHandler:{set:function(g){this.setKeyboardHandler(g)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(g){this.session.setValue(g)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(g){this.setSession(g)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(g){this.renderer.$gutterLayer.setShowLineNumbers(g),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),g&&this.$relativeLineNumbers?x.attach(this):x.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(g){this.$showLineNumbers&&g?x.attach(this):x.detach(this)}},placeholder:{set:function(g){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var d=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(d&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),y.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!d&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),y.addCssClass(this.container,"ace_hasPlaceholder");var L=y.createElement("div");L.className="ace_placeholder",L.textContent=this.$placeholder||"",this.renderer.placeholderNode=L,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!d&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(g){var d={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},L=function(O){if(O.target==this.renderer.scroller&&O.keyCode===R.enter){O.preventDefault();var D=this.getCursorPosition().row;this.isRowVisible(D)||this.scrollToLine(D,!0,!0),this.focus()}},E;g?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(c.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",v("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",v("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",L.bind(this)),this.commands.addCommand(d),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",v("editor")),this.renderer.$gutter.setAttribute("aria-label",v("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),E||(E=new p(this)),E.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",L.bind(this)),this.commands.removeCommand(d),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),E&&E.removeListener())},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",showFoldedAnnotations:"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 x={getText:function(g,d){return(Math.abs(g.selection.lead.row-d)||d+1+(d<9?"\xB7":""))+""},getWidth:function(g,d,L){return Math.max(d.toString().length,(L.lastRow+1).toString().length,2)*L.characterWidth},update:function(g,d){d.renderer.$loop.schedule(d.renderer.CHANGE_GUTTER)},attach:function(g){g.renderer.$gutterLayer.$renderer=this,g.on("changeSelection",this.update),this.update(null,g)},detach:function(g){g.renderer.$gutterLayer.$renderer==this&&(g.renderer.$gutterLayer.$renderer=null),g.off("changeSelection",this.update),this.update(null,g)}};T.Editor=w}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(I,T,_){"use strict";var b=I("../lib/dom"),C=function(){function y(a,c){this.element=a,this.canvasHeight=c||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return y.prototype.moveContainer=function(a){b.translate(this.element,0,-(a.firstRowScreen*a.lineHeight%this.canvasHeight)-a.offset*this.$offsetCoefficient)},y.prototype.pageChanged=function(a,c){return Math.floor(a.firstRowScreen*a.lineHeight/this.canvasHeight)!==Math.floor(c.firstRowScreen*c.lineHeight/this.canvasHeight)},y.prototype.computeLineTop=function(a,c,s){var i=c.firstRowScreen*c.lineHeight,n=Math.floor(i/this.canvasHeight),e=s.documentToScreenRow(a,0)*c.lineHeight;return e-n*this.canvasHeight},y.prototype.computeLineHeight=function(a,c,s){return c.lineHeight*s.getRowLineCount(a)},y.prototype.getLength=function(){return this.cells.length},y.prototype.get=function(a){return this.cells[a]},y.prototype.shift=function(){this.$cacheCell(this.cells.shift())},y.prototype.pop=function(){this.$cacheCell(this.cells.pop())},y.prototype.push=function(a){if(Array.isArray(a)){this.cells.push.apply(this.cells,a);for(var c=b.createFragment(this.element),s=0;s$&&(S=f.end.row+1,f=o.getNextFoldLine(S,f),$=f?f.start.row:1/0),S>h){for(;this.$lines.getLength()>M+1;)this.$lines.pop();break}m=this.$lines.get(++M),m?m.row=S:(m=this.$lines.createCell(S,t,this.session,n),this.$lines.push(m)),this.$renderCell(m,t,f,S),S++}this._signal("afterRender"),this.$updateGutterWidth(t)},e.prototype.$updateGutterWidth=function(t){var o=this.session,l=o.gutterRenderer||this.$renderer,h=o.$firstLineNumber,f=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||o.$useWrapMode)&&(f=o.getLength()+h-1);var $=l?l.getWidth(o,f,t):f.toString().length*t.characterWidth,m=this.$padding||this.$computePadding();$+=m.left+m.right,$!==this.gutterWidth&&!isNaN($)&&(this.gutterWidth=$,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",$))},e.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var t=this.session.selection.getCursor();this.$cursorRow!==t.row&&(this.$cursorRow=t.row)}},e.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 o=this.$lines.cells;this.$cursorCell=null;for(var l=0;l=this.$cursorRow){if(h.row>this.$cursorRow){var f=this.session.getFoldLine(this.$cursorRow);if(l>0&&f&&f.start.row==o[l-1].row)h=o[l-1];else break}h.element.className="ace_gutter-active-line "+h.element.className,this.$cursorCell=h;break}}}}},e.prototype.scrollLines=function(t){var o=this.config;if(this.config=t,this.$updateCursorRow(),this.$lines.pageChanged(o,t))return this.update(t);this.$lines.moveContainer(t);var l=Math.min(t.lastRow+t.gutterOffset,this.session.getLength()-1),h=this.oldLastRow;if(this.oldLastRow=l,!o||h0;f--)this.$lines.shift();if(h>l)for(var f=this.session.getFoldedRowCount(l+1,h);f>0;f--)this.$lines.pop();t.firstRowh&&this.$lines.push(this.$renderLines(t,h+1,l)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(t)},e.prototype.$renderLines=function(t,o,l){for(var h=[],f=o,$=this.session.getNextFoldLine(f),m=$?$.start.row:1/0;f>m&&(f=$.end.row+1,$=this.session.getNextFoldLine(f,$),m=$?$.start.row:1/0),!(f>l);){var M=this.$lines.createCell(f,t,this.session,n);this.$renderCell(M,t,$,f),h.push(M),f++}return h},e.prototype.$renderCell=function(t,o,l,h){var f=t.element,$=this.session,m=f.childNodes[0],M=f.childNodes[1],S=f.childNodes[2],p=S.firstChild,v=$.$firstLineNumber,A=$.$breakpoints,R=$.$decorations,w=$.gutterRenderer||this.$renderer,x=this.$showFoldWidgets&&$.foldWidgets,g=l?l.start.row:Number.MAX_VALUE,d=o.lineHeight+"px",L=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",E=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",O=(w?w.getText($,h):h+v).toString();if(this.$highlightGutterLine&&(h==this.$cursorRow||l&&h=g&&this.$cursorRow<=l.end.row)&&(L+="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)),A[h]&&(L+=A[h]),R[h]&&(L+=R[h]),this.$annotations[h]&&h!==g&&(L+=this.$annotations[h].className),x){var D=x[h];D==null&&(D=x[h]=$.getFoldWidget(h))}if(D){var U="ace_fold-widget ace_"+D,B=D=="start"&&h==g&&hl.right-o.right)return"foldWidgets"},e}();i.prototype.$fixedWidth=!1,i.prototype.$highlightGutterLine=!0,i.prototype.$renderer="",i.prototype.$showLineNumbers=!0,i.prototype.$showFoldWidgets=!0,C.implement(i.prototype,a);function n(e){var t=document.createTextNode("");e.appendChild(t);var o=b.createElement("span");e.appendChild(o);var l=b.createElement("span");e.appendChild(l);var h=b.createElement("span");return l.appendChild(h),e}T.Gutter=i}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(I,T,_){"use strict";var b=I("../range").Range,C=I("../lib/dom"),y=function(){function c(s){this.element=C.createElement("div"),this.element.className="ace_layer ace_marker-layer",s.appendChild(this.element)}return c.prototype.setPadding=function(s){this.$padding=s},c.prototype.setSession=function(s){this.session=s},c.prototype.setMarkers=function(s){this.markers=s},c.prototype.elt=function(s,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=s},c.prototype.update=function(s){if(s){this.config=s,this.i=0;var i;for(var n in this.markers){var e=this.markers[n];if(!e.range){e.update(i,this,this.session,s);continue}var t=e.range.clipRows(s.firstRow,s.lastRow);if(!t.isEmpty())if(t=t.toScreenRange(this.session),e.renderer){var o=this.$getTop(t.start.row,s),l=this.$padding+t.start.column*s.characterWidth;e.renderer(i,t,l,o,s)}else e.type=="fullLine"?this.drawFullLineMarker(i,t,e.clazz,s):e.type=="screenLine"?this.drawScreenLineMarker(i,t,e.clazz,s):t.isMultiLine()?e.type=="text"?this.drawTextMarker(i,t,e.clazz,s):this.drawMultiLineMarker(i,t,e.clazz,s):this.drawSingleLineMarker(i,t,e.clazz+" ace_start ace_br15",s)}if(this.i!=-1)for(;this.iM,f==h),e,f==h?0:1,t)},c.prototype.drawMultiLineMarker=function(s,i,n,e,t){var o=this.$padding,l=e.lineHeight,h=this.$getTop(i.start.row,e),f=o+i.start.column*e.characterWidth;if(t=t||"",this.session.$bidiHandler.isBidiRow(i.start.row)){var $=i.clone();$.end.row=$.start.row,$.end.column=this.session.getLine($.start.row).length,this.drawBidiSingleLineMarker(s,$,n+" ace_br1 ace_start",e,null,t)}else this.elt(n+" ace_br1 ace_start","height:"+l+"px;right:0;top:"+h+"px;left:"+f+"px;"+(t||""));if(this.session.$bidiHandler.isBidiRow(i.end.row)){var $=i.clone();$.start.row=$.end.row,$.start.column=0,this.drawBidiSingleLineMarker(s,$,n+" ace_br12",e,null,t)}else{h=this.$getTop(i.end.row,e);var m=i.end.column*e.characterWidth;this.elt(n+" ace_br12","height:"+l+"px;width:"+m+"px;top:"+h+"px;left:"+o+"px;"+(t||""))}if(l=(i.end.row-i.start.row-1)*e.lineHeight,!(l<=0)){h=this.$getTop(i.start.row+1,e);var M=(i.start.column?1:0)|(i.end.column?0:8);this.elt(n+(M?" ace_br"+M:""),"height:"+l+"px;right:0;top:"+h+"px;left:"+o+"px;"+(t||""))}},c.prototype.drawSingleLineMarker=function(s,i,n,e,t,o){if(this.session.$bidiHandler.isBidiRow(i.start.row))return this.drawBidiSingleLineMarker(s,i,n,e,t,o);var l=e.lineHeight,h=(i.end.column+(t||0)-i.start.column)*e.characterWidth,f=this.$getTop(i.start.row,e),$=this.$padding+i.start.column*e.characterWidth;this.elt(n,"height:"+l+"px;width:"+h+"px;top:"+f+"px;left:"+$+"px;"+(o||""))},c.prototype.drawBidiSingleLineMarker=function(s,i,n,e,t,o){var l=e.lineHeight,h=this.$getTop(i.start.row,e),f=this.$padding,$=this.session.$bidiHandler.getSelections(i.start.column,i.end.column);$.forEach(function(m){this.elt(n,"height:"+l+"px;width:"+(m.width+(t||0))+"px;top:"+h+"px;left:"+(f+m.left)+"px;"+(o||""))},this)},c.prototype.drawFullLineMarker=function(s,i,n,e,t){var o=this.$getTop(i.start.row,e),l=e.lineHeight;i.start.row!=i.end.row&&(l+=this.$getTop(i.end.row,e)-o),this.elt(n,"height:"+l+"px;top:"+o+"px;left:0;right:0;"+(t||""))},c.prototype.drawScreenLineMarker=function(s,i,n,e,t){var o=this.$getTop(i.start.row,e),l=e.lineHeight;this.elt(n,"height:"+l+"px;top:"+o+"px;left:0;right:0;"+(t||""))},c}();y.prototype.$padding=0;function a(c,s,i,n){return(c?1:0)|(s?2:0)|(i?4:0)|(n?8:0)}T.Marker=y}),ace.define("ace/layer/text_util",["require","exports","module"],function(I,T,_){var b=new Set(["text","rparen","lparen"]);T.isTextToken=function(C){return b.has(C)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(I,T,_){"use strict";var b=I("../lib/oop"),C=I("../lib/dom"),y=I("../lib/lang"),a=I("./lines").Lines,c=I("../lib/event_emitter").EventEmitter,s=I("../config").nls,i=I("./text_util").isTextToken,n=function(){function e(t){this.dom=C,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",t.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)}return e.prototype.$updateEolChar=function(){var t=this.session.doc,o=t.getNewLineCharacter()==`
`&&t.getNewLineMode()!="windows",l=o?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=l)return this.EOL_CHAR=l,!0},e.prototype.setPadding=function(t){this.$padding=t,this.element.style.margin="0 "+t+"px"},e.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},e.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},e.prototype.$setFontMetrics=function(t){this.$fontMetrics=t,this.$fontMetrics.on("changeCharacterSize",(function(o){this._signal("changeCharacterSize",o)}).bind(this)),this.$pollSizeChanges()},e.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},e.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},e.prototype.setSession=function(t){this.session=t,t&&this.$computeTabString()},e.prototype.setShowInvisibles=function(t){return this.showInvisibles==t?!1:(this.showInvisibles=t,typeof t=="string"?(this.showSpaces=/tab/i.test(t),this.showTabs=/space/i.test(t),this.showEOL=/eol/i.test(t)):this.showSpaces=this.showTabs=this.showEOL=t,this.$computeTabString(),!0)},e.prototype.setDisplayIndentGuides=function(t){return this.displayIndentGuides==t?!1:(this.displayIndentGuides=t,this.$computeTabString(),!0)},e.prototype.setHighlightIndentGuides=function(t){return this.$highlightIndentGuides===t?!1:(this.$highlightIndentGuides=t,t)},e.prototype.$computeTabString=function(){var t=this.session.getTabSize();this.tabSize=t;for(var o=this.$tabStrings=[0],l=1;lv&&(S=p.end.row+1,p=this.session.getNextFoldLine(S,p),v=p?p.start.row:1/0),!(S>f);){var A=$[m++];if(A){this.dom.removeChildren(A),this.$renderLine(A,S,S==v?p:!1),M&&(A.style.top=this.$lines.computeLineTop(S,t,this.session)+"px");var R=t.lineHeight*this.session.getRowLength(S)+"px";A.style.height!=R&&(M=!0,A.style.height=R)}S++}if(M)for(;m0;f--)this.$lines.shift();if(o.lastRow>t.lastRow)for(var f=this.session.getFoldedRowCount(t.lastRow+1,o.lastRow);f>0;f--)this.$lines.pop();t.firstRowo.lastRow&&this.$lines.push(this.$renderLinesFragment(t,o.lastRow+1,t.lastRow)),this.$highlightIndentGuide()},e.prototype.$renderLinesFragment=function(t,o,l){for(var h=[],f=o,$=this.session.getNextFoldLine(f),m=$?$.start.row:1/0;f>m&&(f=$.end.row+1,$=this.session.getNextFoldLine(f,$),m=$?$.start.row:1/0),!(f>l);){var M=this.$lines.createCell(f,t,this.session),S=M.element;this.dom.removeChildren(S),C.setStyle(S.style,"height",this.$lines.computeLineHeight(f,t,this.session)+"px"),C.setStyle(S.style,"top",this.$lines.computeLineTop(f,t,this.session)+"px"),this.$renderLine(S,f,f==m?$:!1),this.$useLineGroups()?S.className="ace_line_group":S.className="ace_line",h.push(M),f++}return h},e.prototype.update=function(t){this.$lines.moveContainer(t),this.config=t;for(var o=t.firstRow,l=t.lastRow,h=this.$lines;h.getLength();)h.pop();h.push(this.$renderLinesFragment(t,o,l))},e.prototype.$renderToken=function(t,o,l,h){for(var f=this,$=/(\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,m=this.dom.createFragment(this.element),M,S=0;M=$.exec(h);){var p=M[1],v=M[2],A=M[3],R=M[4],w=M[5];if(!(!f.showSpaces&&v)){var x=S!=M.index?h.slice(S,M.index):"";if(S=M.index+M[0].length,x&&m.appendChild(this.dom.createTextNode(x,this.element)),p){var g=f.session.getScreenTabSize(o+M.index);m.appendChild(f.$tabStrings[g].cloneNode(!0)),o+=g-1}else if(v)if(f.showSpaces){var d=this.dom.createElement("span");d.className="ace_invisible ace_invisible_space",d.textContent=y.stringRepeat(f.SPACE_CHAR,v.length),m.appendChild(d)}else m.appendChild(this.dom.createTextNode(v,this.element));else if(A){var d=this.dom.createElement("span");d.className="ace_invisible ace_invisible_space ace_invalid",d.textContent=y.stringRepeat(f.SPACE_CHAR,A.length),m.appendChild(d)}else if(R){o+=1;var d=this.dom.createElement("span");d.style.width=f.config.characterWidth*2+"px",d.className=f.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",d.textContent=f.showSpaces?f.SPACE_CHAR:R,m.appendChild(d)}else if(w){o+=1;var d=this.dom.createElement("span");d.style.width=f.config.characterWidth*2+"px",d.className="ace_cjk",d.textContent=w,m.appendChild(d)}}}if(m.appendChild(this.dom.createTextNode(S?h.slice(S):h,this.element)),i(l.type))t.appendChild(m);else{var L="ace_"+l.type.replace(/\./g," ace_"),d=this.dom.createElement("span");l.type=="fold"&&(d.style.width=l.value.length*this.config.characterWidth+"px",d.setAttribute("title",s("Unfold code"))),d.className=L,d.appendChild(m),t.appendChild(d)}return o+h.length},e.prototype.renderIndentGuide=function(t,o,l){var h=o.search(this.$indentGuideRe);if(h<=0||h>=l)return o;if(o[0]==" "){h-=h%this.tabSize;for(var f=h/this.tabSize,$=0;$$[m].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&t[o.row]!==""&&o.column===t[o.row].length){this.$highlightIndentGuideMarker.dir=1;for(var m=o.row+1;m0){for(var f=0;f=this.$highlightIndentGuideMarker.start+1){if(h.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(h,o)}}else for(var l=t.length-1;l>=0;l--){var h=t[l];if(this.$highlightIndentGuideMarker.end&&h.row=$;)m=this.$renderToken(M,m,p,v.substring(0,$-h)),v=v.substring($-h),h=$,M=this.$createLineElement(),t.appendChild(M),M.appendChild(this.dom.createTextNode(y.stringRepeat("\xA0",l.indent),this.element)),f++,m=0,$=l[f]||Number.MAX_VALUE;v.length!=0&&(h+=v.length,m=this.$renderToken(M,m,p,v))}}l[l.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(M,m,null,"",!0)},e.prototype.$renderSimpleLine=function(t,o){for(var l=0,h=0;hthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(t,l,f,$);l=this.$renderToken(t,l,f,$)}}},e.prototype.$renderOverflowMessage=function(t,o,l,h,f){l&&this.$renderToken(t,o,l,h.slice(0,this.MAX_LINE_LENGTH-o));var $=this.dom.createElement("span");$.className="ace_inline_button ace_keyword ace_toggle_wrap",$.textContent=f?"":"",t.appendChild($)},e.prototype.$renderLine=function(t,o,l){if(!l&&l!=!1&&(l=this.session.getFoldLine(o)),l)var h=this.$getFoldLineTokens(o,l);else var h=this.session.getTokens(o);var f=t;if(h.length){var $=this.session.getRowSplitData(o);if($&&$.length){this.$renderWrappedLine(t,h,$);var f=t.lastChild}else{var f=t;this.$useLineGroups()&&(f=this.$createLineElement(),t.appendChild(f)),this.$renderSimpleLine(f,h)}}else this.$useLineGroups()&&(f=this.$createLineElement(),t.appendChild(f));if(this.showEOL&&f){l&&(o=l.end.row);var m=this.dom.createElement("span");m.className="ace_invisible ace_invisible_eol",m.textContent=o==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,f.appendChild(m)}},e.prototype.$getFoldLineTokens=function(t,o){var l=this.session,h=[];function f(m,M,S){for(var p=0,v=0;v+m[p].value.lengthS-M&&(A=A.substring(0,S-M)),h.push({type:m[p].type,value:A}),v=M+A.length,p+=1}for(;vS?h.push({type:m[p].type,value:A.substring(0,S-v)}):h.push(m[p]),v+=A.length,p+=1}}var $=l.getTokens(t);return o.walk(function(m,M,S,p,v){m!=null?h.push({type:"fold",value:m}):(v&&($=l.getTokens(M)),$.length&&f($,p,S))},o.end.row,this.session.getLine(o.end.row).length),h},e.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},e}();n.prototype.EOF_CHAR="\xB6",n.prototype.EOL_CHAR_LF="\xAC",n.prototype.EOL_CHAR_CRLF="\xA4",n.prototype.EOL_CHAR=n.prototype.EOL_CHAR_LF,n.prototype.TAB_CHAR="\u2014",n.prototype.SPACE_CHAR="\xB7",n.prototype.$padding=0,n.prototype.MAX_LINE_LENGTH=1e4,n.prototype.showInvisibles=!1,n.prototype.showSpaces=!1,n.prototype.showTabs=!1,n.prototype.showEOL=!1,n.prototype.displayIndentGuides=!0,n.prototype.$highlightIndentGuides=!0,n.prototype.$tabStrings=[],n.prototype.destroy={},n.prototype.onChangeTabSize=n.prototype.$computeTabString,b.implement(n.prototype,c),T.Text=n}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(I,T,_){"use strict";var b=I("../lib/dom"),C=function(){function y(a){this.element=b.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(),b.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return y.prototype.$updateOpacity=function(a){for(var c=this.cursors,s=c.length;s--;)b.setStyle(c[s].style,"opacity",a?"":"0")},y.prototype.$startCssAnimation=function(){for(var a=this.cursors,c=a.length;c--;)a[c].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&b.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},y.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,b.removeCssClass(this.element,"ace_animate-blinking")},y.prototype.setPadding=function(a){this.$padding=a},y.prototype.setSession=function(a){this.session=a},y.prototype.setBlinking=function(a){a!=this.isBlinking&&(this.isBlinking=a,this.restartTimer())},y.prototype.setBlinkInterval=function(a){a!=this.blinkInterval&&(this.blinkInterval=a,this.restartTimer())},y.prototype.setSmoothBlinking=function(a){a!=this.smoothBlinking&&(this.smoothBlinking=a,b.setCssClass(this.element,"ace_smooth-blinking",a),this.$updateCursors(!0),this.restartTimer())},y.prototype.addCursor=function(){var a=b.createElement("div");return a.className="ace_cursor",this.element.appendChild(a),this.cursors.push(a),a},y.prototype.removeCursor=function(){if(this.cursors.length>1){var a=this.cursors.pop();return a.parentNode.removeChild(a),a}},y.prototype.hideCursor=function(){this.isVisible=!1,b.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},y.prototype.showCursor=function(){this.isVisible=!0,b.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},y.prototype.restartTimer=function(){var a=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,b.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&&b.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),b.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var c=(function(){this.timeoutId=setTimeout(function(){a(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){a(!0),c()},this.blinkInterval),c()}},y.prototype.getPixelPosition=function(a,c){if(!this.config||!this.session)return{left:0,top:0};a||(a=this.session.selection.getCursor());var s=this.session.documentToScreenPosition(a),i=this.$padding+(this.session.$bidiHandler.isBidiRow(s.row,a.row)?this.session.$bidiHandler.getPosLeft(s.column):s.column*this.config.characterWidth),n=(s.row-(c?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:i,top:n}},y.prototype.isCursorInView=function(a,c){return a.top>=0&&a.topa.height+a.offset||e.top<0)&&s>1)){var t=this.cursors[i++]||this.addCursor(),o=t.style;this.drawCursor?this.drawCursor(t,e,a,c[s],this.session):this.isCursorInView(e,a)?(b.setStyle(o,"display","block"),b.translate(t,e.left,e.top),b.setStyle(o,"width",Math.round(a.characterWidth)+"px"),b.setStyle(o,"height",a.lineHeight+"px")):b.setStyle(o,"display","none")}}for(;this.cursors.length>i;)this.removeCursor();var l=this.session.getOverwrite();this.$setOverwrite(l),this.$pixelPos=e,this.restartTimer()},y.prototype.$setOverwrite=function(a){a!=this.overwrite&&(this.overwrite=a,a?b.addCssClass(this.element,"ace_overwrite-cursors"):b.removeCssClass(this.element,"ace_overwrite-cursors"))},y.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},y}();C.prototype.$padding=0,C.prototype.drawCursor=null,T.Cursor=C}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(I,T,_){"use strict";var b=this&&this.__extends||function(){var t=function(o,l){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var $ in f)Object.prototype.hasOwnProperty.call(f,$)&&(h[$]=f[$])},t(o,l)};return function(o,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");t(o,l);function h(){this.constructor=o}o.prototype=l===null?Object.create(l):(h.prototype=l.prototype,new h)}}(),C=I("./lib/oop"),y=I("./lib/dom"),a=I("./lib/event"),c=I("./lib/event_emitter").EventEmitter,s=32768,i=function(){function t(o,l){this.element=y.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+l,this.inner=y.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 t.prototype.setVisible=function(o){this.element.style.display=o?"":"none",this.isVisible=o,this.coeff=1},t}();C.implement(i.prototype,c);var n=function(t){b(o,t);function o(l,h){var f=t.call(this,l,"-v")||this;return f.scrollTop=0,f.scrollHeight=0,h.$scrollbarWidth=f.width=y.scrollbarWidth(l.ownerDocument),f.inner.style.width=f.element.style.width=(f.width||15)+5+"px",f.$minWidth=0,f}return o.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var l=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-l)/(this.coeff-l)}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(l){this.element.style.height=l+"px"},o.prototype.setScrollHeight=function(l){this.scrollHeight=l,l>s?(this.coeff=s/l,l=s):this.coeff!=1&&(this.coeff=1),this.inner.style.height=l+"px"},o.prototype.setScrollTop=function(l){this.scrollTop!=l&&(this.skipEvent=!0,this.scrollTop=l,this.element.scrollTop=l*this.coeff)},o}(i);n.prototype.setInnerHeight=n.prototype.setScrollHeight;var e=function(t){b(o,t);function o(l,h){var f=t.call(this,l,"-h")||this;return f.scrollLeft=0,f.height=h.$scrollbarWidth,f.inner.style.height=f.element.style.height=(f.height||15)+5+"px",f}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(l){this.element.style.width=l+"px"},o.prototype.setInnerWidth=function(l){this.inner.style.width=l+"px"},o.prototype.setScrollWidth=function(l){this.inner.style.width=l+"px"},o.prototype.setScrollLeft=function(l){this.scrollLeft!=l&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=l)},o}(i);T.ScrollBar=n,T.ScrollBarV=n,T.ScrollBarH=e,T.VScrollBar=n,T.HScrollBar=e}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(I,T,_){"use strict";var b=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)Object.prototype.hasOwnProperty.call(h,f)&&(l[f]=h[f])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function l(){this.constructor=t}t.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}}(),C=I("./lib/oop"),y=I("./lib/dom"),a=I("./lib/event"),c=I("./lib/event_emitter").EventEmitter;y.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 s=function(){function e(t,o){this.element=y.createElement("div"),this.element.className="ace_sb"+o,this.inner=y.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,t.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return e.prototype.setVisible=function(t){this.element.style.display=t?"":"none",this.isVisible=t,this.coeff=1},e}();C.implement(s.prototype,c);var i=function(e){b(t,e);function t(o,l){var h=e.call(this,o,"-v")||this;return h.scrollTop=0,h.scrollHeight=0,h.parent=o,h.width=h.VScrollWidth,h.renderer=l,h.inner.style.width=h.element.style.width=(h.width||15)+"px",h.$minWidth=0,h}return t.prototype.onMouseDown=function(o,l){if(o==="mousedown"&&!(a.getButton(l)!==0||l.detail===2)){if(l.target===this.inner){var h=this,f=l.clientY,$=function(R){f=R.clientY},m=function(){clearInterval(v)},M=l.clientY,S=this.thumbTop,p=function(){if(f!==void 0){var R=h.scrollTopFromThumbTop(S+f-M);R!==h.scrollTop&&h._emit("scroll",{data:R})}};a.capture(this.inner,$,m);var v=setInterval(p,20);return a.preventDefault(l)}var A=l.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(A)}),a.preventDefault(l)}},t.prototype.getHeight=function(){return this.height},t.prototype.scrollTopFromThumbTop=function(o){var l=o*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return l=l>>0,l<0?l=0:l>this.pageHeight-this.viewHeight&&(l=this.pageHeight-this.viewHeight),l},t.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},t.prototype.setHeight=function(o){this.height=Math.max(0,o),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},t.prototype.setScrollHeight=function(o,l){this.pageHeight===o&&!l||(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})))},t.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"},t}(s);i.prototype.setInnerHeight=i.prototype.setScrollHeight;var n=function(e){b(t,e);function t(o,l){var h=e.call(this,o,"-h")||this;return h.scrollLeft=0,h.scrollWidth=0,h.height=h.HScrollHeight,h.inner.style.height=h.element.style.height=(h.height||12)+"px",h.renderer=l,h}return t.prototype.onMouseDown=function(o,l){if(o==="mousedown"&&!(a.getButton(l)!==0||l.detail===2)){if(l.target===this.inner){var h=this,f=l.clientX,$=function(R){f=R.clientX},m=function(){clearInterval(v)},M=l.clientX,S=this.thumbLeft,p=function(){if(f!==void 0){var R=h.scrollLeftFromThumbLeft(S+f-M);R!==h.scrollLeft&&h._emit("scroll",{data:R})}};a.capture(this.inner,$,m);var v=setInterval(p,20);return a.preventDefault(l)}var A=l.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(A)}),a.preventDefault(l)}},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.scrollLeftFromThumbLeft=function(o){var l=o*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return l=l>>0,l<0?l=0:l>this.pageWidth-this.viewWidth&&(l=this.pageWidth-this.viewWidth),l},t.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)},t.prototype.setScrollWidth=function(o,l){this.pageWidth===o&&!l||(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})))},t.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"},t}(s);n.prototype.setInnerWidth=n.prototype.setScrollWidth,T.ScrollBar=i,T.ScrollBarV=i,T.ScrollBarH=n,T.VScrollBar=i,T.HScrollBar=n}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(I,T,_){"use strict";var b=I("./lib/event"),C=function(){function y(a,c){this.onRender=a,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=c||window;var s=this;this._flush=function(i){s.pending=!1;var n=s.changes;if(n&&(b.blockIdle(100),s.changes=0,s.onRender(n)),s.changes){if(s.$recursionLimit--<0)return;s.schedule()}else s.$recursionLimit=2}}return y.prototype.schedule=function(a){this.changes=this.changes|a,this.changes&&!this.pending&&(b.nextFrame(this._flush),this.pending=!0)},y.prototype.clear=function(a){var c=this.changes;return this.changes=0,c},y}();T.RenderLoop=C}),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(I,T,_){var b=I("../lib/oop"),C=I("../lib/dom"),y=I("../lib/lang"),a=I("../lib/event"),c=I("../lib/useragent"),s=I("../lib/event_emitter").EventEmitter,i=512,n=typeof ResizeObserver=="function",e=200,t=function(){function o(l){this.el=C.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=C.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=C.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),l.appendChild(this.el),this.$measureNode.textContent=y.stringRepeat("X",i),this.$characterSize={width:0,height:0},n?this.$addObserver():this.checkForSizeChanges()}return o.prototype.$setMeasureNodeStyles=function(l,h){l.width=l.height="auto",l.left=l.top="0px",l.visibility="hidden",l.position="absolute",l.whiteSpace="pre",c.isIE<8?l["font-family"]="inherit":l.font="inherit",l.overflow=h?"hidden":"visible"},o.prototype.checkForSizeChanges=function(l){if(l===void 0&&(l=this.$measureSizes()),l&&(this.$characterSize.width!==l.width||this.$characterSize.height!==l.height)){this.$measureNode.style.fontWeight="bold";var h=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=l,this.charSizes=Object.create(null),this.allowBoldFonts=h&&h.width===l.width&&h.height===l.height,this._emit("changeCharacterSize",{data:l})}},o.prototype.$addObserver=function(){var l=this;this.$observer=new window.ResizeObserver(function(h){l.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},o.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var l=this;return this.$pollSizeChangesTimer=a.onIdle(function h(){l.checkForSizeChanges(),a.onIdle(h,500)},500)},o.prototype.setPolling=function(l){l?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},o.prototype.$measureSizes=function(l){var h={height:(l||this.$measureNode).clientHeight,width:(l||this.$measureNode).clientWidth/i};return h.width===0||h.height===0?null:h},o.prototype.$measureCharWidth=function(l){this.$main.textContent=y.stringRepeat(l,i);var h=this.$main.getBoundingClientRect();return h.width/i},o.prototype.getCharacterWidth=function(l){var h=this.charSizes[l];return h===void 0&&(h=this.charSizes[l]=this.$measureCharWidth(l)/this.$characterSize.width),h},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(l){return!l||!l.parentElement?1:(window.getComputedStyle(l).zoom||1)*this.$getZoom(l.parentElement)},o.prototype.$initTransformMeasureNodes=function(){var l=function(h,f){return["div",{style:"position: absolute;top:"+h+"px;left:"+f+"px;"}]};this.els=C.buildDom([l(0,0),l(e,0),l(0,e),l(e,e)],this.el)},o.prototype.transformCoordinates=function(l,h){if(l){var f=this.$getZoom(this.el);l=S(1/f,l)}function $(B,j,P){var H=B[1]*j[0]-B[0]*j[1];return[(-j[1]*P[0]+j[0]*P[1])/H,(+B[1]*P[0]-B[0]*P[1])/H]}function m(B,j){return[B[0]-j[0],B[1]-j[1]]}function M(B,j){return[B[0]+j[0],B[1]+j[1]]}function S(B,j){return[B*j[0],B*j[1]]}this.els||this.$initTransformMeasureNodes();function p(B){var j=B.getBoundingClientRect();return[j.left,j.top]}var v=p(this.els[0]),A=p(this.els[1]),R=p(this.els[2]),w=p(this.els[3]),x=$(m(w,A),m(w,R),m(M(A,R),M(w,v))),g=S(1+x[0],m(A,v)),d=S(1+x[1],m(R,v));if(h){var L=h,E=x[0]*L[0]/e+x[1]*L[1]/e+1,O=M(S(L[0],g),S(L[1],d));return M(S(1/E/e,O),v)}var D=m(l,v),U=$(m(g,S(x[0],D)),m(d,S(x[1],D)),D);return S(e,U)},o}();t.prototype.$characterSize={width:0,height:0},b.implement(t.prototype,s),T.FontMetrics=t}),ace.define("ace/css/editor-css",["require","exports","module"],function(I,T,_){_.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_gutter_annotation {
margin-left: -14px;
float: left;
}
.ace_gutter-cell .ace_gutter_annotation {
margin-left: -19px;
float: left;
}
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
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, .ace_icon.ace_warning_fold {
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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
background-color: crimson;
}
.ace_icon_svg.ace_warning {
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
background-color: darkorange;
}
.ace_icon_svg.ace_info {
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
background-color: royalblue;
}
.ace_icon_svg.ace_error_fold {
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
background-color: crimson;
}
.ace_icon_svg.ace_warning_fold {
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
background-color: darkorange;
}
.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.ace_dark {
background-color: #636363;
color: #fff;
}
.ace_tooltip:focus {
outline: 1px solid #5E9ED6;
}
.ace_icon {
display: inline-block;
width: 18px;
vertical-align: top;
}
.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_screenreader-only {
position:absolute;
left:-10000px;
top:auto;
width:1px;
height:1px;
overflow:hidden;
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(I,T,_){"use strict";var b=I("../lib/dom"),C=I("../lib/oop"),y=I("../lib/event_emitter").EventEmitter,a=function(){function c(s,i){this.canvas=b.createElement("canvas"),this.renderer=i,this.pixelRatio=1,this.maxHeight=i.layerConfig.maxHeight,this.lineHeight=i.layerConfig.lineHeight,this.canvasHeight=s.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=s.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)"},s.element.appendChild(this.canvas)}return c.prototype.$updateDecorators=function(s){var i=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(s){this.maxHeight=s.maxHeight,this.lineHeight=s.lineHeight,this.canvasHeight=s.height;var n=(s.lastRow+1)*this.lineHeight;nx.priority?1:0}var o=this.renderer.session.$annotations;if(e.clearRect(0,0,this.canvas.width,this.canvas.height),o){var l={info:1,warning:2,error:3};o.forEach(function(w){w.priority=l[w.type]||null}),o=o.sort(t);for(var h=this.renderer.session.$foldData,f=0;fthis.canvasHeight&&(A=this.canvasHeight-this.halfMinDecorationHeight),S=Math.round(A-this.halfMinDecorationHeight),p=Math.round(A+this.halfMinDecorationHeight)}e.fillStyle=i[o[f].type]||null,e.fillRect(0,M,this.canvasWidth,p-S)}}var R=this.renderer.session.selection.getCursor();if(R){var m=this.compensateFoldRows(R.row,h),M=Math.round((R.row-m)*this.lineHeight*this.heightRatio);e.fillStyle="rgba(0, 0, 0, 0.5)",e.fillRect(0,M,this.canvasWidth,2)}},c.prototype.compensateFoldRows=function(s,i){var n=0;if(i&&i.length>0)for(var e=0;ei[e].start.row&&s=i[e].end.row&&(n+=i[e].end.row-i[e].start.row);return n},c}();C.implement(a.prototype,y),T.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(I,T,_){"use strict";var b=I("./lib/oop"),C=I("./lib/dom"),y=I("./lib/lang"),a=I("./config"),c=I("./layer/gutter").Gutter,s=I("./layer/marker").Marker,i=I("./layer/text").Text,n=I("./layer/cursor").Cursor,e=I("./scrollbar").HScrollBar,t=I("./scrollbar").VScrollBar,o=I("./scrollbar_custom").HScrollBar,l=I("./scrollbar_custom").VScrollBar,h=I("./renderloop").RenderLoop,f=I("./layer/font_metrics").FontMetrics,$=I("./lib/event_emitter").EventEmitter,m=I("./css/editor-css"),M=I("./layer/decorators").Decorator,S=I("./lib/useragent");C.importCssString(m,"ace_editor.css",!1);var p=function(){function v(A,R){var w=this;this.container=A||C.createElement("div"),C.addCssClass(this.container,"ace_editor"),C.HI_DPI&&C.addCssClass(this.container,"ace_hidpi"),this.setTheme(R),a.get("useStrictCSP")==null&&a.set("useStrictCSP",!1),this.$gutter=C.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=C.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=C.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new c(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var x=this.$textLayer=new i(this.content);this.canvas=x.element,this.$markerFront=new s(this.content),this.$cursorLayer=new n(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new t(this.container,this),this.scrollBarH=new e(this.container,this),this.scrollBarV.on("scroll",function(g){w.$scrollAnimation||w.session.setScrollTop(g.data-w.scrollMargin.top)}),this.scrollBarH.on("scroll",function(g){w.$scrollAnimation||w.session.setScrollLeft(g.data-w.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new f(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(g){w.updateCharacterSize(),w.onResize(!0,w.gutterWidth,w.$size.width,w.$size.height),w._signal("changeCharacterSize",g)}),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=!S.isIOS,this.$loop=new h(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 v.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(),C.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},v.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))},v.prototype.updateLines=function(A,R,w){if(R===void 0&&(R=1/0),this.$changedLines?(this.$changedLines.firstRow>A&&(this.$changedLines.firstRow=A),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},v.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},v.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},v.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},v.prototype.updateFull=function(A){A?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},v.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},v.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},v.prototype.onResize=function(A,R,w,x){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=A?1:0;var g=this.container;x||(x=g.clientHeight||g.scrollHeight),w||(w=g.clientWidth||g.scrollWidth);var d=this.$updateCachedSize(A,R,w,x);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!w&&!x)return this.resizing=0;A&&(this.$gutterLayer.$padding=null),A?this.$renderChanges(d|this.$changes,!0):this.$loop.schedule(d|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},v.prototype.$updateCachedSize=function(A,R,w,x){x-=this.$extraHeight||0;var g=0,d=this.$size,L={width:d.width,height:d.height,scrollerHeight:d.scrollerHeight,scrollerWidth:d.scrollerWidth};if(x&&(A||d.height!=x)&&(d.height=x,g|=this.CHANGE_SIZE,d.scrollerHeight=d.height,this.$horizScroll&&(d.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(d.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",g=g|this.CHANGE_SCROLL),w&&(A||d.width!=w)){g|=this.CHANGE_SIZE,d.width=w,R==null&&(R=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=R,C.setStyle(this.scrollBarH.element.style,"left",R+"px"),C.setStyle(this.scroller.style,"left",R+this.margin.left+"px"),d.scrollerWidth=Math.max(0,w-R-this.scrollBarV.getWidth()-this.margin.h),C.setStyle(this.$gutter.style,"left",this.margin.left+"px");var E=this.scrollBarV.getWidth()+"px";C.setStyle(this.scrollBarH.element.style,"right",E),C.setStyle(this.scroller.style,"right",E),C.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(d.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||A)&&(g|=this.CHANGE_FULL)}return d.$dirty=!w||!x,g&&this._signal("resize",L),g},v.prototype.onGutterResize=function(A){var R=this.$showGutter?A:0;R!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,R,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()},v.prototype.adjustWrapLimit=function(){var A=this.$size.scrollerWidth-this.$padding*2,R=Math.floor(A/this.characterWidth);return this.session.adjustWrapLimit(R,this.$showPrintMargin&&this.$printMarginColumn)},v.prototype.setAnimatedScroll=function(A){this.setOption("animatedScroll",A)},v.prototype.getAnimatedScroll=function(){return this.$animatedScroll},v.prototype.setShowInvisibles=function(A){this.setOption("showInvisibles",A),this.session.$bidiHandler.setShowInvisibles(A)},v.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},v.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},v.prototype.setDisplayIndentGuides=function(A){this.setOption("displayIndentGuides",A)},v.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},v.prototype.setHighlightIndentGuides=function(A){this.setOption("highlightIndentGuides",A)},v.prototype.setShowPrintMargin=function(A){this.setOption("showPrintMargin",A)},v.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},v.prototype.setPrintMarginColumn=function(A){this.setOption("printMarginColumn",A)},v.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},v.prototype.getShowGutter=function(){return this.getOption("showGutter")},v.prototype.setShowGutter=function(A){return this.setOption("showGutter",A)},v.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},v.prototype.setFadeFoldWidgets=function(A){this.setOption("fadeFoldWidgets",A)},v.prototype.setHighlightGutterLine=function(A){this.setOption("highlightGutterLine",A)},v.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},v.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var A=C.createElement("div");A.className="ace_layer ace_print-margin-layer",this.$printMarginEl=C.createElement("div"),this.$printMarginEl.className="ace_print-margin",A.appendChild(this.$printMarginEl),this.content.insertBefore(A,this.content.firstChild)}var R=this.$printMarginEl.style;R.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",R.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},v.prototype.getContainerElement=function(){return this.container},v.prototype.getMouseEventTarget=function(){return this.scroller},v.prototype.getTextAreaContainer=function(){return this.container},v.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var A=this.textarea.style,R=this.$composition;if(!this.$keepTextAreaAtCursor&&!R){C.translate(this.textarea,-100,0);return}var w=this.$cursorLayer.$pixelPos;if(w){R&&R.markerRange&&(w=this.$cursorLayer.getPixelPosition(R.markerRange.start,!0));var x=this.layerConfig,g=w.top,d=w.left;g-=x.offset;var L=R&&R.useTextareaForIME||S.isMobile?this.lineHeight:1;if(g<0||g>x.height-L){C.translate(this.textarea,0,0);return}var E=1,O=this.$size.height-L;if(!R)g+=this.lineHeight;else if(R.useTextareaForIME){var D=this.textarea.value;E=this.characterWidth*this.session.$getStringScreenWidth(D)[0]}else g+=this.lineHeight+2;d-=this.scrollLeft,d>this.$size.scrollerWidth-E&&(d=this.$size.scrollerWidth-E),d+=this.gutterWidth+this.margin.left,C.setStyle(A,"height",L+"px"),C.setStyle(A,"width",E+"px"),C.translate(this.textarea,Math.min(d,this.$size.scrollerWidth-E),Math.min(g,O))}}},v.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},v.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},v.prototype.getLastFullyVisibleRow=function(){var A=this.layerConfig,R=A.lastRow,w=this.session.documentToScreenRow(R,0)*A.lineHeight;return w-this.session.getScrollTop()>A.height-A.lineHeight?R-1:R},v.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},v.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()},v.prototype.setScrollMargin=function(A,R,w,x){var g=this.scrollMargin;g.top=A|0,g.bottom=R|0,g.right=x|0,g.left=w|0,g.v=g.top+g.bottom,g.h=g.left+g.right,g.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-g.top),this.updateFull()},v.prototype.setMargin=function(A,R,w,x){var g=this.margin;g.top=A|0,g.bottom=R|0,g.right=x|0,g.left=w|0,g.v=g.top+g.bottom,g.h=g.left+g.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},v.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},v.prototype.setHScrollBarAlwaysVisible=function(A){this.setOption("hScrollBarAlwaysVisible",A)},v.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},v.prototype.setVScrollBarAlwaysVisible=function(A){this.setOption("vScrollBarAlwaysVisible",A)},v.prototype.$updateScrollBarV=function(){var A=this.layerConfig.maxHeight,R=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(A-=(R-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>A-R&&(A=this.scrollTop+R,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(A+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},v.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},v.prototype.freeze=function(){this.$frozen=!0},v.prototype.unfreeze=function(){this.$frozen=!1},v.prototype.$renderChanges=function(A,R){if(this.$changes&&(A|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!A&&!R){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 w=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(),w.firstRow!=this.layerConfig.firstRow&&w.firstRowScreen==this.layerConfig.firstRowScreen){var x=this.scrollTop+(w.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;x>0&&(this.scrollTop=x,A=A|this.CHANGE_SCROLL,A|=this.$computeLayerConfig()|this.$loop.clear())}w=this.layerConfig,this.$updateScrollBarV(),A&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),C.translate(this.content,-this.scrollLeft,-w.offset);var g=w.width+2*this.$padding+"px",d=w.minHeight+"px";C.setStyle(this.content.style,"width",g),C.setStyle(this.content.style,"height",d)}if(A&this.CHANGE_H_SCROLL&&(C.translate(this.content,-this.scrollLeft,-w.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),A&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(w),this.$showGutter&&this.$gutterLayer.update(w),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w),this.$markerBack.update(w),this.$markerFront.update(w),this.$cursorLayer.update(w),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(w):this.$textLayer.scrollLines(w),this.$showGutter&&(A&this.CHANGE_GUTTER||A&this.CHANGE_LINES?this.$gutterLayer.update(w):this.$gutterLayer.scrollLines(w)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w),this.$markerBack.update(w),this.$markerFront.update(w),this.$cursorLayer.update(w),this.$moveTextAreaToCursor(),this._signal("afterRender",A);return}A&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(w),this.$showGutter&&this.$gutterLayer.update(w),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w)):A&this.CHANGE_LINES?((this.$updateLines()||A&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(w),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w)):A&this.CHANGE_TEXT||A&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(w),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w)):A&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(w),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w)),A&this.CHANGE_CURSOR&&(this.$cursorLayer.update(w),this.$moveTextAreaToCursor()),A&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(w),A&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(w),this._signal("afterRender",A)},v.prototype.$autosize=function(){var A=this.session.getScreenLength()*this.lineHeight,R=this.$maxLines*this.lineHeight,w=Math.min(R,Math.max((this.$minLines||1)*this.lineHeight,A))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(w+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&w>this.$maxPixelHeight&&(w=this.$maxPixelHeight);var x=w<=2*this.lineHeight,g=!x&&A>R;if(w!=this.desiredHeight||this.$size.height!=this.desiredHeight||g!=this.$vScroll){g!=this.$vScroll&&(this.$vScroll=g,this.scrollBarV.setVisible(g));var d=this.container.clientWidth;this.container.style.height=w+"px",this.$updateCachedSize(!0,this.$gutterWidth,d,w),this.desiredHeight=w,this._signal("autosize")}},v.prototype.$computeLayerConfig=function(){var A=this.session,R=this.$size,w=R.height<=2*this.lineHeight,x=this.session.getScreenLength(),g=x*this.lineHeight,d=this.$getLongestLine(),L=!w&&(this.$hScrollBarAlwaysVisible||R.scrollerWidth-d-2*this.$padding<0),E=this.$horizScroll!==L;E&&(this.$horizScroll=L,this.scrollBarH.setVisible(L));var O=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var D=R.scrollerHeight+this.lineHeight,U=!this.$maxLines&&this.$scrollPastEnd?(R.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;g+=U;var B=this.scrollMargin;this.session.setScrollTop(Math.max(-B.top,Math.min(this.scrollTop,g-R.scrollerHeight+B.bottom))),this.session.setScrollLeft(Math.max(-B.left,Math.min(this.scrollLeft,d+2*this.$padding-R.scrollerWidth+B.right)));var j=!w&&(this.$vScrollBarAlwaysVisible||R.scrollerHeight-g+U<0||this.scrollTop>B.top),P=O!==j;P&&(this.$vScroll=j,this.scrollBarV.setVisible(j));var H=this.scrollTop%this.lineHeight,z=Math.ceil(D/this.lineHeight)-1,W=Math.max(0,Math.round((this.scrollTop-H)/this.lineHeight)),Y=W+z,Z,q,Q=this.lineHeight;W=A.screenToDocumentRow(W,0);var ee=A.getFoldLine(W);ee&&(W=ee.start.row),Z=A.documentToScreenRow(W,0),q=A.getRowLength(W)*Q,Y=Math.min(A.screenToDocumentRow(Y,0),A.getLength()-1),D=R.scrollerHeight+A.getRowLength(Y)*Q+q,H=this.scrollTop-Z*Q;var te=0;return(this.layerConfig.width!=d||E)&&(te=this.CHANGE_H_SCROLL),(E||P)&&(te|=this.$updateCachedSize(!0,this.gutterWidth,R.width,R.height),this._signal("scrollbarVisibilityChanged"),P&&(d=this.$getLongestLine())),this.layerConfig={width:d,padding:this.$padding,firstRow:W,firstRowScreen:Z,lastRow:Y,lineHeight:Q,characterWidth:this.characterWidth,minHeight:D,maxHeight:g,offset:H,gutterOffset:Q?Math.max(0,Math.ceil((H+R.height-R.scrollerHeight)/Q)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(d-this.$padding),te},v.prototype.$updateLines=function(){if(this.$changedLines){var A=this.$changedLines.firstRow,R=this.$changedLines.lastRow;this.$changedLines=null;var w=this.layerConfig;if(!(A>w.lastRow+1)&&!(Rthis.$textLayer.MAX_LINE_LENGTH&&(A=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(A*this.characterWidth))},v.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},v.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},v.prototype.addGutterDecoration=function(A,R){this.$gutterLayer.addGutterDecoration(A,R)},v.prototype.removeGutterDecoration=function(A,R){this.$gutterLayer.removeGutterDecoration(A,R)},v.prototype.updateBreakpoints=function(A){this.$loop.schedule(this.CHANGE_GUTTER)},v.prototype.setAnnotations=function(A){this.$gutterLayer.setAnnotations(A),this.$loop.schedule(this.CHANGE_GUTTER)},v.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},v.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},v.prototype.showCursor=function(){this.$cursorLayer.showCursor()},v.prototype.scrollSelectionIntoView=function(A,R,w){this.scrollCursorIntoView(A,w),this.scrollCursorIntoView(R,w)},v.prototype.scrollCursorIntoView=function(A,R,w){if(this.$size.scrollerHeight!==0){var x=this.$cursorLayer.getPixelPosition(A),g=x.left,d=x.top,L=w&&w.top||0,E=w&&w.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var O=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;O+L>d?(R&&O+L>d+this.lineHeight&&(d-=R*this.$size.scrollerHeight),d===0&&(d=-this.scrollMargin.top),this.session.setScrollTop(d)):O+this.$size.scrollerHeight-E=1-this.scrollMargin.top||R>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},v.prototype.pixelToScreenCoordinates=function(A,R){var w;if(this.$hasCssTransforms){w={top:0,left:0};var x=this.$fontMetrics.transformCoordinates([A,R]);A=x[1]-this.gutterWidth-this.margin.left,R=x[0]}else w=this.scroller.getBoundingClientRect();var g=A+this.scrollLeft-w.left-this.$padding,d=g/this.characterWidth,L=Math.floor((R+this.scrollTop-w.top)/this.lineHeight),E=this.$blockCursor?Math.floor(d):Math.round(d);return{row:L,column:E,side:d-E>0?1:-1,offsetX:g}},v.prototype.screenToTextCoordinates=function(A,R){var w;if(this.$hasCssTransforms){w={top:0,left:0};var x=this.$fontMetrics.transformCoordinates([A,R]);A=x[1]-this.gutterWidth-this.margin.left,R=x[0]}else w=this.scroller.getBoundingClientRect();var g=A+this.scrollLeft-w.left-this.$padding,d=g/this.characterWidth,L=this.$blockCursor?Math.floor(d):Math.round(d),E=Math.floor((R+this.scrollTop-w.top)/this.lineHeight);return this.session.screenToDocumentPosition(E,Math.max(L,0),g)},v.prototype.textToScreenCoordinates=function(A,R){var w=this.scroller.getBoundingClientRect(),x=this.session.documentToScreenPosition(A,R),g=this.$padding+(this.session.$bidiHandler.isBidiRow(x.row,A)?this.session.$bidiHandler.getPosLeft(x.column):Math.round(x.column*this.characterWidth)),d=x.row*this.lineHeight;return{pageX:w.left+g-this.scrollLeft,pageY:w.top+d-this.scrollTop}},v.prototype.visualizeFocus=function(){C.addCssClass(this.container,"ace_focus")},v.prototype.visualizeBlur=function(){C.removeCssClass(this.container,"ace_focus")},v.prototype.showComposition=function(A){this.$composition=A,A.cssText||(A.cssText=this.textarea.style.cssText),A.useTextareaForIME==null&&(A.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(C.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")},v.prototype.setCompositionText=function(A){var R=this.session.selection.cursor;this.addToken(A,"composition_placeholder",R.row,R.column),this.$moveTextAreaToCursor()},v.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),C.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=""}},v.prototype.setGhostText=function(A,R){var w=this.session.selection.cursor,x=R||{row:w.row,column:w.column};this.removeGhostText();var g=A.split(`
`);this.addToken(g[0],"ghost_text",x.row,x.column),this.$ghostText={text:A,position:{row:x.row,column:x.column}},g.length>1&&(this.$ghostTextWidget={text:g.slice(1).join(`
`),row:x.row,column:x.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},v.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}},v.prototype.addToken=function(A,R,w,x){var g=this.session;g.bgTokenizer.lines[w]=null;var d={type:R,value:A},L=g.getTokens(w);if(x==null||!L.length)L.push(d);else for(var E=0,O=0;O1||Math.abs(A.$size.height-x)>1?A.$resizeTimer.delay():A.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},v}();p.prototype.CHANGE_CURSOR=1,p.prototype.CHANGE_MARKER=2,p.prototype.CHANGE_GUTTER=4,p.prototype.CHANGE_SCROLL=8,p.prototype.CHANGE_LINES=16,p.prototype.CHANGE_TEXT=32,p.prototype.CHANGE_SIZE=64,p.prototype.CHANGE_MARKER_BACK=128,p.prototype.CHANGE_MARKER_FRONT=256,p.prototype.CHANGE_FULL=512,p.prototype.CHANGE_H_SCROLL=1024,p.prototype.$changes=0,p.prototype.$padding=null,p.prototype.$frozen=!1,p.prototype.STEPS=8,b.implement(p.prototype,$),a.defineOptions(p.prototype,"renderer",{useResizeObserver:{set:function(v){!v&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):v&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(v){this.$textLayer.setShowInvisibles(v)&&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(v){typeof v=="number"&&(this.$printMarginColumn=v),this.$showPrintMargin=!!v,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(v){this.$gutter.style.display=v?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(v){this.$gutterLayer.$useSvgGutterIcons=v},initialValue:!1},showFoldedAnnotations:{set:function(v){this.$gutterLayer.$showFoldedAnnotations=v},initialValue:!1},fadeFoldWidgets:{set:function(v){C.setCssClass(this.$gutter,"ace_fade-fold-widgets",v)},initialValue:!1},showFoldWidgets:{set:function(v){this.$gutterLayer.setShowFoldWidgets(v),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(v){this.$textLayer.setDisplayIndentGuides(v)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(v){this.$textLayer.setHighlightIndentGuides(v)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(v){this.$gutterLayer.setHighlightGutterLine(v),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(v){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(v){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(v){typeof v=="number"&&(v=v+"px"),this.container.style.fontSize=v,this.updateFontSize()},initialValue:12},fontFamily:{set:function(v){this.container.style.fontFamily=v,this.updateFontSize()}},maxLines:{set:function(v){this.updateFull()}},minLines:{set:function(v){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(v){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(v){v=+v||0,this.$scrollPastEnd!=v&&(this.$scrollPastEnd=v,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(v){this.$gutterLayer.$fixedWidth=!!v,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(v){this.$updateCustomScrollbar(v)},initialValue:!1},theme:{set:function(v){this.setTheme(v)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!S.isMobile&&!S.isIE}}),T.VirtualRenderer=p}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(I,T,_){"use strict";var b=I("../lib/oop"),C=I("../lib/net"),y=I("../lib/event_emitter").EventEmitter,a=I("../config");function c(e){var t="importScripts('"+C.qualifyURL(e)+"');";try{return new Blob([t],{type:"application/javascript"})}catch{var o=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,l=new o;return l.append(t),l.getBlob("application/javascript")}}function s(e){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(a.get("loadWorkerFromBlob")){var t=c(e),o=window.URL||window.webkitURL,l=o.createObjectURL(t);return new Worker(l)}return new Worker(e)}var i=function(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,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(){b.implement(this,y),this.$createWorkerFromOldConfig=function(e,t,o,l,h){if(I.nameToUrl&&!I.toUrl&&(I.toUrl=I.nameToUrl),a.get("packaged")||!I.toUrl)l=l||a.moduleUrl(t,"worker");else{var f=this.$normalizePath;l=l||f(I.toUrl("ace/worker/worker.js",null,"_"));var $={};e.forEach(function(m){$[m]=f(I.toUrl(m,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(l),h&&this.send("importScripts",h),this.$worker.postMessage({init:!0,tlns:$,module:t,classname:o}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var o=this.callbacks[t.id];o&&(o(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data);break}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return C.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(e){e.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,o){if(o){var l=this.callbackId++;this.callbacks[l]=o,t.push(l)}this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker&&this.$worker.postMessage({event:e,data:{data:t.data}})}catch(o){console.error(o.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener,!0)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),e.action=="insert"?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(i.prototype);var n=function(e,t,o){var l=null,h=!1,f=Object.create(y),$=[],m=new i({messageBuffer:$,terminate:function(){},postMessage:function(S){$.push(S),l&&(h?setTimeout(M):M())}});m.setEmitSync=function(S){h=S};var M=function(){var S=$.shift();S.command?l[S.command].apply(l,S.args):S.event&&f._signal(S.event,S.data)};return f.postMessage=function(S){m.onMessage({data:S})},f.callback=function(S,p){this.postMessage({type:"call",id:p,data:S})},f.emit=function(S,p){this.postMessage({type:"event",name:S,data:p})},a.loadModule(["worker",t],function(S){for(l=new S[o](f);$.length;)M()}),m};T.UIWorkerClient=n,T.WorkerClient=i,T.createWorker=s}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(I,T,_){"use strict";var b=I("./range").Range,C=I("./lib/event_emitter").EventEmitter,y=I("./lib/oop"),a=function(){function c(s,i,n,e,t,o){var l=this;this.length=i,this.session=s,this.doc=s.getDocument(),this.mainClass=t,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=e,this.$onCursorChange=function(){setTimeout(function(){l.onCursorChange()})},this.$pos=n;var h=s.getUndoManager().$undoStack||s.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=h.length,this.setup(),s.selection.on("changeCursor",this.$onCursorChange)}return c.prototype.setup=function(){var s=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 e=this.pos;e.$insertRight=!0,e.detach(),e.markerId=n.addMarker(new b(e.row,e.column,e.row,e.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(t){var o=i.createAnchor(t.row,t.column);o.$insertRight=!0,o.detach(),s.others.push(o)}),n.setUndoSelect(!1)},c.prototype.showOtherMarkers=function(){if(!this.othersActive){var s=this.session,i=this;this.othersActive=!0,this.others.forEach(function(n){n.markerId=s.addMarker(new b(n.row,n.column,n.row,n.column+i.length),i.othersClass,null,!1)})}},c.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var s=0;s=this.pos.column&&i.start.column<=this.pos.column+this.length+1,t=i.start.column-this.pos.column;if(this.updateAnchors(s),e&&(this.length+=n),e&&!this.session.$fromUndo){if(s.action==="insert")for(var o=this.others.length-1;o>=0;o--){var l=this.others[o],h={row:l.row,column:l.column+t};this.doc.insertMergedLines(h,s.lines)}else if(s.action==="remove")for(var o=this.others.length-1;o>=0;o--){var l=this.others[o],h={row:l.row,column:l.column+t};this.doc.remove(new b(h.row,h.column,h.row,h.column-n))}}this.$updating=!1,this.updateMarkers()}},c.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var i=this.others.length;i--;)this.others[i].onChange(s);this.updateMarkers()},c.prototype.updateMarkers=function(){if(!this.$updating){var s=this,i=this.session,n=function(t,o){i.removeMarker(t.markerId),t.markerId=i.addMarker(new b(t.row,t.column,t.row,t.column+s.length),o,null,!1)};n(this.pos,this.mainClass);for(var e=this.others.length;e--;)n(this.others[e],this.othersClass)}},c.prototype.onCursorChange=function(s){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",s)):(this.hideOtherMarkers(),this._emit("cursorLeave",s))}},c.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},c.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var s=this.session.getUndoManager(),i=(s.$undoStack||s.$undostack).length-this.$undoStackDepth,n=0;n1?C.multiSelect.joinSelections():C.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(C){C.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(C){C.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(C){C.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],T.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(C){C.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(C){return C&&C.inMultiSelectMode}}];var b=I("../keyboard/hash_handler").HashHandler;T.keyboardHandler=new b(T.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(I,T,_){var b=I("./range_list").RangeList,C=I("./range").Range,y=I("./selection").Selection,a=I("./mouse/multi_select_handler").onMouseDown,c=I("./lib/event"),s=I("./lib/lang"),i=I("./commands/multi_select_commands");T.commands=i.defaultCommands.concat(i.multiSelectCommands);var n=I("./search").Search,e=new n;function t(m,M,S){return e.$options.wrap=!0,e.$options.needle=M,e.$options.backwards=S==-1,e.find(m)}var o=I("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(o.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(m,M){if(m){if(!this.inMultiSelectMode&&this.rangeCount===0){var S=this.toOrientedRange();if(this.rangeList.add(S),this.rangeList.add(m),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),M||this.fromOrientedRange(m);this.rangeList.removeAll(),this.rangeList.add(S),this.$onAddRange(S)}m.cursor||(m.cursor=m.end);var p=this.rangeList.add(m);return this.$onAddRange(m),p.length&&this.$onRemoveRange(p),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),M||this.fromOrientedRange(m)}},this.toSingleRange=function(m){m=m||this.ranges[0];var M=this.rangeList.removeAll();M.length&&this.$onRemoveRange(M),m&&this.fromOrientedRange(m)},this.substractPoint=function(m){var M=this.rangeList.substractPoint(m);if(M)return this.$onRemoveRange(M),M[0]},this.mergeOverlappingRanges=function(){var m=this.rangeList.merge();m.length&&this.$onRemoveRange(m)},this.$onAddRange=function(m){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(m),this._signal("addRange",{range:m})},this.$onRemoveRange=function(m){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var M=this.rangeList.ranges.pop();m.push(M),this.rangeCount=0}for(var S=m.length;S--;){var p=this.ranges.indexOf(m[S]);this.ranges.splice(p,1)}this._signal("removeRange",{ranges:m}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),M=M||this.ranges[0],M&&!M.isEqual(this.getRange())&&this.fromOrientedRange(M)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new b,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var m=this.ranges.length?this.ranges:[this.getRange()],M=[],S=0;S1){var m=this.rangeList.ranges,M=m[m.length-1],S=C.fromPoints(m[0].start,M.end);this.toSingleRange(),this.setSelectionRange(S,M.cursor==M.start)}else{var p=this.session.documentToScreenPosition(this.cursor),v=this.session.documentToScreenPosition(this.anchor),A=this.rectangularRangeBlock(p,v);A.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(m,M,S){var p=[],v=m.column0;)U--;if(U>0)for(var B=0;p[B].isEmpty();)B++;for(var j=U;j>=B;j--)p[j].isEmpty()&&p.splice(j,1)}return p}}).call(y.prototype);var l=I("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(m){m.cursor||(m.cursor=m.end);var M=this.getSelectionStyle();return m.marker=this.session.addMarker(m,"ace_selection",M),this.session.$selectionMarkers.push(m),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,m},this.removeSelectionMarker=function(m){if(m.marker){this.session.removeMarker(m.marker);var M=this.session.$selectionMarkers.indexOf(m);M!=-1&&this.session.$selectionMarkers.splice(M,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(m){for(var M=this.session.$selectionMarkers,S=m.length;S--;){var p=m[S];if(p.marker){this.session.removeMarker(p.marker);var v=M.indexOf(p);v!=-1&&M.splice(v,1)}}this.session.selectionMarkerCount=M.length},this.$onAddRange=function(m){this.addSelectionMarker(m.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(m){this.removeSelectionMarkers(m.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(m){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(m){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(m){var M=m.command,S=m.editor;if(S.multiSelect){if(M.multiSelectAction)M.multiSelectAction=="forEach"?p=S.forEachSelection(M,m.args):M.multiSelectAction=="forEachLine"?p=S.forEachSelection(M,m.args,!0):M.multiSelectAction=="single"?(S.exitMultiSelectMode(),p=M.exec(S,m.args||{})):p=M.multiSelectAction(S,m.args||{});else{var p=M.exec(S,m.args||{});S.multiSelect.addRange(S.multiSelect.toOrientedRange()),S.multiSelect.mergeOverlappingRanges()}return p}},this.forEachSelection=function(m,M,S){if(!this.inVirtualSelectionMode){var p=S&&S.keepOrder,v=S==!0||S&&S.$byLines,A=this.session,R=this.selection,w=R.rangeList,x=(p?R:w).ranges,g;if(!x.length)return m.exec?m.exec(this,M||{}):m(this,M||{});var d=R._eventRegistry;R._eventRegistry={};var L=new y(A);this.inVirtualSelectionMode=!0;for(var E=x.length;E--;){if(v)for(;E>0&&x[E].start.row==x[E-1].end.row;)E--;L.fromOrientedRange(x[E]),L.index=E,this.selection=A.selection=L;var O=m.exec?m.exec(this,M||{}):m(this,M||{});!g&&O!==void 0&&(g=O),L.toOrientedRange(x[E])}L.detach(),this.selection=A.selection=R,this.inVirtualSelectionMode=!1,R._eventRegistry=d,R.mergeOverlappingRanges(),R.ranges[0]&&R.fromOrientedRange(R.ranges[0]);var D=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),D&&D.from==D.to&&this.renderer.animateScrolling(D.from),g}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var m="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var M=this.multiSelect.rangeList.ranges,S=[],p=0;p0);R<0&&(R=0),w>=g&&(w=g-1)}var L=this.session.removeFullLines(R,w);L=this.$reAlignText(L,x),this.session.insert({row:R,column:0},L.join(`
`)+`
`),x||(A.start.column=0,A.end.column=L[L.length-1].length),this.selection.setRange(A)}else{v.forEach(function(U){M.substractPoint(U.cursor)});var E=0,O=1/0,D=S.map(function(U){var B=U.cursor,j=m.getLine(B.row),P=j.substr(B.column).search(/\S/g);return P==-1&&(P=0),B.column>E&&(E=B.column),PH?m.insert(j,s.stringRepeat(" ",P-H)):m.remove(new C(j.row,j.column,j.row,j.column-P+H)),U.start.column=U.end.column=E,U.start.row=U.end.row=j.row,U.cursor=U.end}),M.fromOrientedRange(S[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(m,M){var S=!0,p=!0,v,A,R;return m.map(function(L){var E=L.match(/(\s*)(.*?)(\s*)([=:].*)/);return E?v==null?(v=E[1].length,A=E[2].length,R=E[3].length,E):(v+A+R!=E[1].length+E[2].length+E[3].length&&(p=!1),v!=E[1].length&&(S=!1),v>E[1].length&&(v=E[1].length),AE[3].length&&(R=E[3].length),E):[L]}).map(M?x:S?p?g:x:d);function w(L){return s.stringRepeat(" ",L)}function x(L){return L[2]?w(v)+L[2]+w(A-L[2].length+R)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function g(L){return L[2]?w(v+A-L[2].length)+L[2]+w(R)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function d(L){return L[2]?w(v)+L[2]+w(R)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}}}).call(l.prototype);function h(m,M){return m.row==M.row&&m.column==M.column}T.onSessionChange=function(m){var M=m.session;M&&!M.multiSelect&&(M.$selectionMarkers=[],M.selection.$initRangeList(),M.multiSelect=M.selection),this.multiSelect=M&&M.multiSelect;var S=m.oldSession;S&&(S.multiSelect.off("addRange",this.$onAddRange),S.multiSelect.off("removeRange",this.$onRemoveRange),S.multiSelect.off("multiSelect",this.$onMultiSelect),S.multiSelect.off("singleSelect",this.$onSingleSelect),S.multiSelect.lead.off("change",this.$checkMultiselectChange),S.multiSelect.anchor.off("change",this.$checkMultiselectChange)),M&&(M.multiSelect.on("addRange",this.$onAddRange),M.multiSelect.on("removeRange",this.$onRemoveRange),M.multiSelect.on("multiSelect",this.$onMultiSelect),M.multiSelect.on("singleSelect",this.$onSingleSelect),M.multiSelect.lead.on("change",this.$checkMultiselectChange),M.multiSelect.anchor.on("change",this.$checkMultiselectChange)),M&&this.inMultiSelectMode!=M.selection.inMultiSelectMode&&(M.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function f(m){m.$multiselectOnSessionChange||(m.$onAddRange=m.$onAddRange.bind(m),m.$onRemoveRange=m.$onRemoveRange.bind(m),m.$onMultiSelect=m.$onMultiSelect.bind(m),m.$onSingleSelect=m.$onSingleSelect.bind(m),m.$multiselectOnSessionChange=T.onSessionChange.bind(m),m.$checkMultiselectChange=m.$checkMultiselectChange.bind(m),m.$multiselectOnSessionChange(m),m.on("changeSession",m.$multiselectOnSessionChange),m.on("mousedown",a),m.commands.addCommands(i.defaultCommands),$(m))}function $(m){if(!m.textInput)return;var M=m.textInput.getElement(),S=!1;c.addListener(M,"keydown",function(v){var A=v.keyCode==18&&!(v.ctrlKey||v.shiftKey||v.metaKey);m.$blockSelectEnabled&&A?S||(m.renderer.setMouseCursor("crosshair"),S=!0):S&&p()},m),c.addListener(M,"keyup",p,m),c.addListener(M,"blur",p,m);function p(v){S&&(m.renderer.setMouseCursor(""),S=!1)}}T.MultiSelect=f,I("./config").defineOptions(l.prototype,"editor",{enableMultiselect:{set:function(m){f(this),m?this.on("mousedown",a):this.off("mousedown",a)},value:!0},enableBlockSelect:{set:function(m){this.$blockSelectEnabled=m},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(I,T,_){"use strict";var b=I("../../range").Range,C=T.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(y,a,c){var s=y.getLine(c);return this.foldingStartMarker.test(s)?"start":a=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(y,a,c){return null},this.indentationBlock=function(y,a,c){var s=/\S/,i=y.getLine(a),n=i.search(s);if(n!=-1){for(var e=c||i.length,t=y.getLength(),o=a,l=a;++ao){var $=y.getLine(l).length;return new b(o,e,l,$)}}},this.openingBracketBlock=function(y,a,c,s,i){var n={row:c,column:s+1},e=y.$findClosingBracket(a,n,i);if(e){var t=y.foldWidgets[e.row];return t==null&&(t=y.getFoldWidget(e.row)),t=="start"&&e.row>n.row&&(e.row--,e.column=y.getLine(e.row).length),b.fromPoints(n,e)}},this.closingBracketBlock=function(y,a,c,s,i){var n={row:c,column:s},e=y.$findOpeningBracket(a,n);if(e)return e.column++,n.column--,b.fromPoints(e,n)}}).call(C.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(I,T,_){"use strict";var b=I("../line_widgets").LineWidgets,C=I("../lib/dom"),y=I("../range").Range,a=I("../config").nls;function c(i,n,e){for(var t=0,o=i.length-1;t<=o;){var l=t+o>>1,h=e(n,i[l]);if(h>0)t=l+1;else if(h<0)o=l-1;else return l}return-(t+1)}function s(i,n,e){var t=i.getAnnotations().sort(y.comparePoints);if(t.length){var o=c(t,{row:n,column:-1},y.comparePoints);o<0&&(o=-o-1),o>=t.length?o=e>0?0:t.length-1:o===0&&e<0&&(o=t.length-1);var l=t[o];if(!(!l||!e)){if(l.row===n){do l=t[o+=e];while(l&&l.row===n);if(!l)return t.slice()}var h=[];n=l.row;do h[e<0?"unshift":"push"](l),l=t[o+=e];while(l&&l.row==n);return h.length&&h}}}T.showErrorMarker=function(i,n){var e=i.session;e.widgetManager||(e.widgetManager=new b(e),e.widgetManager.attach(i));var t=i.getCursorPosition(),o=t.row,l=e.widgetManager.getWidgetsAtRow(o).filter(function(A){return A.type=="errorMarker"})[0];l?l.destroy():o-=n;var h=s(e,o,n),f;if(h){var $=h[0];t.column=($.pos&&typeof $.column!="number"?$.pos.sc:$.column)||0,t.row=$.row,f=i.renderer.$gutterLayer.$annotations[t.row]}else{if(l)return;f={text:[a("Looks good!")],className:"ace_ok"}}i.session.unfold(t.row),i.selection.moveToPosition(t);var m={row:t.row,fixedWidth:!0,coverGutter:!0,el:C.createElement("div"),type:"errorMarker"},M=m.el.appendChild(C.createElement("div")),S=m.el.appendChild(C.createElement("div"));S.className="error_widget_arrow "+f.className;var p=i.renderer.$cursorLayer.getPixelPosition(t).left;S.style.left=p+i.renderer.gutterWidth-5+"px",m.el.className="error_widget_wrapper",M.className="error_widget "+f.className,M.innerHTML=f.text.join("
"),M.appendChild(C.createElement("div"));var v=function(A,R,w){if(R===0&&(w==="esc"||w==="return"))return m.destroy(),{command:"null"}};m.destroy=function(){i.$mouseHandler.isMousePressed||(i.keyBinding.removeKeyboardHandler(v),e.widgetManager.removeLineWidget(m),i.off("changeSelection",m.destroy),i.off("changeSession",m.destroy),i.off("mouseup",m.destroy),i.off("change",m.destroy))},i.keyBinding.addKeyboardHandler(v),i.on("changeSelection",m.destroy),i.on("changeSession",m.destroy),i.on("mouseup",m.destroy),i.on("change",m.destroy),i.session.widgetManager.addLineWidget(m),m.el.onmousedown=i.focus.bind(i),i.renderer.scrollCursorIntoView(null,.5,{bottom:m.el.offsetHeight})},C.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(I,T,_){"use strict";I("./loader_build")(T);var b=I("./lib/dom"),C=I("./range").Range,y=I("./editor").Editor,a=I("./edit_session").EditSession,c=I("./undomanager").UndoManager,s=I("./virtual_renderer").VirtualRenderer;I("./worker/worker_client"),I("./keyboard/hash_handler"),I("./placeholder"),I("./multi_select"),I("./mode/folding/fold_mode"),I("./theme/textmate"),I("./ext/error_marker"),T.config=I("./config"),T.edit=function(i,n){if(typeof i=="string"){var e=i;if(i=document.getElementById(e),!i)throw new Error("ace.edit can't find div #"+e)}if(i&&i.env&&i.env.editor instanceof y)return i.env.editor;var t="";if(i&&/input|textarea/i.test(i.tagName)){var o=i;t=o.value,i=b.createElement("pre"),o.parentNode.replaceChild(i,o)}else i&&(t=i.textContent,i.innerHTML="");var l=T.createEditSession(t),h=new y(new s(i),l,n),f={document:l,editor:h,onResize:h.resize.bind(h,null)};return o&&(f.textarea=o),h.on("destroy",function(){f.editor.container.env=null}),h.container.env=h.env=f,h},T.createEditSession=function(i,n){var e=new a(i,n);return e.setUndoManager(new c),e},T.Range=C,T.Editor=y,T.EditSession=a,T.UndoManager=c,T.VirtualRenderer=s,T.version=T.config.version}),function(){ace.require(["ace/ace"],function(I){I&&(I.config.init(!0),I.define=ace.define);var T=function(){return this}();!T&&typeof window<"u"&&(T=window),!T&&typeof self<"u"&&(T=self),T.ace||(T.ace=I);for(var _ in I)I.hasOwnProperty(_)&&(T.ace[_]=I[_]);T.ace.default=T.ace,u&&(u.exports=T.ace)})}()},YucCq8qS:(u,k,r)=>{u=r.nmd(u),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(I,T,_){"use strict";var b=I("./lib/oop"),C=I("./lib/lang"),y=I("./lib/event_emitter").EventEmitter,a=I("./editor").Editor,c=I("./virtual_renderer").VirtualRenderer,s=I("./edit_session").EditSession,i=function(n,e,t){this.BELOW=1,this.BESIDE=0,this.$container=n,this.$theme=e,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(t||1),this.$cEditor=this.$editors[0],this.on("focus",(function(o){this.$cEditor=o}).bind(this))};(function(){b.implement(this,y),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 e=new a(new c(n,this.$theme));return e.on("focus",(function(){this._emit("focus",e)}).bind(this)),this.$editors.push(e),e.setFontSize(this.$fontSize),e},this.setSplits=function(n){var e;if(n<1)throw"The number of splits have to be > 0!";if(n!=this.$splits){if(n>this.$splits){for(;this.$splitsn;)e=this.$editors[this.$splits-1],this.$container.removeChild(e.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(e){e.setTheme(n)})},this.setKeyboardHandler=function(n){this.$editors.forEach(function(e){e.setKeyboardHandler(n)})},this.forEach=function(n,e){this.$editors.forEach(n,e)},this.$fontSize="",this.setFontSize=function(n){this.$fontSize=n,this.forEach(function(e){e.setFontSize(n)})},this.$cloneSession=function(n){var e=new s(n.getDocument(),n.getMode()),t=n.getUndoManager();return e.setUndoManager(t),e.setTabSize(n.getTabSize()),e.setUseSoftTabs(n.getUseSoftTabs()),e.setOverwrite(n.getOverwrite()),e.setBreakpoints(n.getBreakpoints()),e.setUseWrapMode(n.getUseWrapMode()),e.setUseWorker(n.getUseWorker()),e.setWrapLimitRange(n.$wrapLimitRange.min,n.$wrapLimitRange.max),e.$foldData=n.$cloneFoldData(),e},this.setSession=function(n,e){var t;e==null?t=this.$cEditor:t=this.$editors[e];var o=this.$editors.some(function(l){return l.session===n});return o&&(n=this.$cloneSession(n)),t.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,e=this.$container.clientHeight,t;if(this.$orientation==this.BESIDE)for(var o=n/this.$splits,l=0;l{ace.config.setModuleUrl("ace/ext/beautify",r("7AR6yh6E")),ace.config.setModuleUrl("ace/ext/code_lens",r("d5DInCCs")),ace.config.setModuleUrl("ace/ext/command_bar",r("ZxljQyAn")),ace.config.setModuleUrl("ace/ext/elastic_tabstops_lite",r("RDQjmDWb")),ace.config.setModuleUrl("ace/ext/emmet",r("BV9P4L46")),ace.config.setModuleUrl("ace/ext/error_marker",r("MJeWgd6c")),ace.config.setModuleUrl("ace/ext/hardwrap",r("BKtAhKI8")),ace.config.setModuleUrl("ace/ext/inline_autocomplete",r("ZIOzB1Uo")),ace.config.setModuleUrl("ace/ext/keyboard_menu",r("j3BhWVns")),ace.config.setModuleUrl("ace/ext/language_tools",r("TCw1rQBy")),ace.config.setModuleUrl("ace/ext/linking",r("JSYh1Q26")),ace.config.setModuleUrl("ace/ext/modelist",r("TOxD74io")),ace.config.setModuleUrl("ace/ext/options",r("nqxuvGGK")),ace.config.setModuleUrl("ace/ext/prompt",r("xJbGM3ij")),ace.config.setModuleUrl("ace/ext/rtl",r("x33dly1X")),ace.config.setModuleUrl("ace/ext/searchbox",r("8pZlAnyf")),ace.config.setModuleUrl("ace/ext/settings_menu",r("hwk0pWr2")),ace.config.setModuleUrl("ace/ext/simple_tokenizer",r("2U4kZlpN")),ace.config.setModuleUrl("ace/ext/spellcheck",r("mjlcqYnD")),ace.config.setModuleUrl("ace/ext/split",r("rn6e7pBE")),ace.config.setModuleUrl("ace/ext/static_highlight",r("AJjf6W/g")),ace.config.setModuleUrl("ace/ext/statusbar",r("UCccCLnU")),ace.config.setModuleUrl("ace/ext/textarea",r("rhpP8EVh")),ace.config.setModuleUrl("ace/ext/themelist",r("L+cGqZ1V")),ace.config.setModuleUrl("ace/ext/whitespace",r("nwPmu/td")),ace.config.setModuleUrl("ace/keyboard/emacs",r("lvzBkeUR")),ace.config.setModuleUrl("ace/keyboard/sublime",r("0Gzsppij")),ace.config.setModuleUrl("ace/keyboard/vim",r("uNzvEcgn")),ace.config.setModuleUrl("ace/keyboard/vscode",r("1EJU+aWM")),ace.config.setModuleUrl("ace/mode/abap",r("kyP98VJA")),ace.config.setModuleUrl("ace/mode/abc",r("VtIdNxE0")),ace.config.setModuleUrl("ace/mode/actionscript",r("ZAQ5JPiM")),ace.config.setModuleUrl("ace/mode/ada",r("Uex2Npxn")),ace.config.setModuleUrl("ace/mode/alda",r("mfm8REIr")),ace.config.setModuleUrl("ace/mode/apache_conf",r("DW73ZNdX")),ace.config.setModuleUrl("ace/mode/apex",r("aWpClGTF")),ace.config.setModuleUrl("ace/mode/applescript",r("z/N6o/OP")),ace.config.setModuleUrl("ace/mode/aql",r("Jnb+VSy8")),ace.config.setModuleUrl("ace/mode/asciidoc",r("tdceLf9+")),ace.config.setModuleUrl("ace/mode/asl",r("Yc9h+Bj1")),ace.config.setModuleUrl("ace/mode/assembly_x86",r("UoEzaO8G")),ace.config.setModuleUrl("ace/mode/astro",r("FnUhhsp9")),ace.config.setModuleUrl("ace/mode/autohotkey",r("vdBj+UTT")),ace.config.setModuleUrl("ace/mode/batchfile",r("+XDBpGjx")),ace.config.setModuleUrl("ace/mode/bibtex",r("0OHzFWx2")),ace.config.setModuleUrl("ace/mode/c9search",r("r0LjiMd4")),ace.config.setModuleUrl("ace/mode/c_cpp",r("oa2CL7Ty")),ace.config.setModuleUrl("ace/mode/cirru",r("4zAnOYXu")),ace.config.setModuleUrl("ace/mode/clojure",r("B6zYianu")),ace.config.setModuleUrl("ace/mode/cobol",r("38cpf7DQ")),ace.config.setModuleUrl("ace/mode/coffee",r("BxGqFC3q")),ace.config.setModuleUrl("ace/mode/coldfusion",r("7LI4Ts32")),ace.config.setModuleUrl("ace/mode/crystal",r("8nhSMbAb")),ace.config.setModuleUrl("ace/mode/csharp",r("6dUgM1Zr")),ace.config.setModuleUrl("ace/mode/csound_document",r("a7veoO1N")),ace.config.setModuleUrl("ace/mode/csound_orchestra",r("xnYUyxhA")),ace.config.setModuleUrl("ace/mode/csound_score",r("U88v/a4N")),ace.config.setModuleUrl("ace/mode/csp",r("nBtLFPwQ")),ace.config.setModuleUrl("ace/mode/css",r("3ZpVQmPU")),ace.config.setModuleUrl("ace/mode/curly",r("c3NLRni+")),ace.config.setModuleUrl("ace/mode/cuttlefish",r("A7FPrLQM")),ace.config.setModuleUrl("ace/mode/d",r("+pplBdld")),ace.config.setModuleUrl("ace/mode/dart",r("Jx9XORFF")),ace.config.setModuleUrl("ace/mode/diff",r("2NzWh1T8")),ace.config.setModuleUrl("ace/mode/django",r("IKLzNteM")),ace.config.setModuleUrl("ace/mode/dockerfile",r("6LBV4Skd")),ace.config.setModuleUrl("ace/mode/dot",r("tjrvC5HF")),ace.config.setModuleUrl("ace/mode/drools",r("ifzbWc3b")),ace.config.setModuleUrl("ace/mode/edifact",r("T43HcH5Q")),ace.config.setModuleUrl("ace/mode/eiffel",r("jO7owCBw")),ace.config.setModuleUrl("ace/mode/ejs",r("A7XLjkIa")),ace.config.setModuleUrl("ace/mode/elixir",r("qfpkJFLL")),ace.config.setModuleUrl("ace/mode/elm",r("dbSRdcXH")),ace.config.setModuleUrl("ace/mode/erlang",r("hB0aVo9q")),ace.config.setModuleUrl("ace/mode/forth",r("f251TZgC")),ace.config.setModuleUrl("ace/mode/fortran",r("85DDbFxQ")),ace.config.setModuleUrl("ace/mode/fsharp",r("xjxQRLWK")),ace.config.setModuleUrl("ace/mode/fsl",r("4XtUYbX+")),ace.config.setModuleUrl("ace/mode/ftl",r("GqSk43mx")),ace.config.setModuleUrl("ace/mode/gcode",r("og2fk0HU")),ace.config.setModuleUrl("ace/mode/gherkin",r("k+3NOldZ")),ace.config.setModuleUrl("ace/mode/gitignore",r("1uKS6iXV")),ace.config.setModuleUrl("ace/mode/glsl",r("iEIY3Hru")),ace.config.setModuleUrl("ace/mode/gobstones",r("qFeemwx0")),ace.config.setModuleUrl("ace/mode/golang",r("Kjx8ge4B")),ace.config.setModuleUrl("ace/mode/graphqlschema",r("Kx9yIxRu")),ace.config.setModuleUrl("ace/mode/groovy",r("DOCGquBd")),ace.config.setModuleUrl("ace/mode/haml",r("ER9u9b1M")),ace.config.setModuleUrl("ace/mode/handlebars",r("acW7ylXD")),ace.config.setModuleUrl("ace/mode/haskell",r("rMJRKCui")),ace.config.setModuleUrl("ace/mode/haskell_cabal",r("LXNr3Rjr")),ace.config.setModuleUrl("ace/mode/haxe",r("uQ2o7+AP")),ace.config.setModuleUrl("ace/mode/hjson",r("hB2bTHpF")),ace.config.setModuleUrl("ace/mode/html",r("6I/9hgGm")),ace.config.setModuleUrl("ace/mode/html_elixir",r("3I1pYtSo")),ace.config.setModuleUrl("ace/mode/html_ruby",r("zFWXND5/")),ace.config.setModuleUrl("ace/mode/ini",r("f0sWJNAw")),ace.config.setModuleUrl("ace/mode/io",r("jBYKElg0")),ace.config.setModuleUrl("ace/mode/ion",r("k8ReY/GC")),ace.config.setModuleUrl("ace/mode/jack",r("S+W0LMzv")),ace.config.setModuleUrl("ace/mode/jade",r("YN7npnVi")),ace.config.setModuleUrl("ace/mode/java",r("g9/Fy7Qb")),ace.config.setModuleUrl("ace/mode/javascript",r("q8HCvlDT")),ace.config.setModuleUrl("ace/mode/jexl",r("e9gLv2fF")),ace.config.setModuleUrl("ace/mode/json",r("O99hiH2L")),ace.config.setModuleUrl("ace/mode/json5",r("zerxBhGm")),ace.config.setModuleUrl("ace/mode/jsoniq",r("zBB71ZlG")),ace.config.setModuleUrl("ace/mode/jsp",r("tqDefkqZ")),ace.config.setModuleUrl("ace/mode/jssm",r("0CQ07K5/")),ace.config.setModuleUrl("ace/mode/jsx",r("aTn4BCgz")),ace.config.setModuleUrl("ace/mode/julia",r("gVfBnSbK")),ace.config.setModuleUrl("ace/mode/kotlin",r("ksyDRdYK")),ace.config.setModuleUrl("ace/mode/latex",r("jzFQeChN")),ace.config.setModuleUrl("ace/mode/latte",r("fbLPufsB")),ace.config.setModuleUrl("ace/mode/less",r("t97H6vN0")),ace.config.setModuleUrl("ace/mode/liquid",r("r9xVqG9j")),ace.config.setModuleUrl("ace/mode/lisp",r("tWQ3v6q8")),ace.config.setModuleUrl("ace/mode/livescript",r("L62dV+xS")),ace.config.setModuleUrl("ace/mode/logiql",r("AHpcHqoy")),ace.config.setModuleUrl("ace/mode/logtalk",r("HwaXRGP4")),ace.config.setModuleUrl("ace/mode/lsl",r("ICC29/RS")),ace.config.setModuleUrl("ace/mode/lua",r("UrZJJSDg")),ace.config.setModuleUrl("ace/mode/luapage",r("ra9wWmmn")),ace.config.setModuleUrl("ace/mode/lucene",r("ZxJhBjOE")),ace.config.setModuleUrl("ace/mode/makefile",r("a5kAgMv5")),ace.config.setModuleUrl("ace/mode/markdown",r("xMLYp565")),ace.config.setModuleUrl("ace/mode/mask",r("ZbMmDHaA")),ace.config.setModuleUrl("ace/mode/matlab",r("Cc8Oh7q/")),ace.config.setModuleUrl("ace/mode/maze",r("aXLkCv/t")),ace.config.setModuleUrl("ace/mode/mediawiki",r("Ido1tuI3")),ace.config.setModuleUrl("ace/mode/mel",r("3Sj3NUyV")),ace.config.setModuleUrl("ace/mode/mips",r("DZ5i5f1U")),ace.config.setModuleUrl("ace/mode/mixal",r("renkNgmt")),ace.config.setModuleUrl("ace/mode/mushcode",r("35YlXIKK")),ace.config.setModuleUrl("ace/mode/mysql",r("1ha1POeq")),ace.config.setModuleUrl("ace/mode/nginx",r("JUBbqfD6")),ace.config.setModuleUrl("ace/mode/nim",r("7Ei7UP9S")),ace.config.setModuleUrl("ace/mode/nix",r("1hXgZ2KH")),ace.config.setModuleUrl("ace/mode/nsis",r("JeTRnR2x")),ace.config.setModuleUrl("ace/mode/nunjucks",r("18Y+1jMM")),ace.config.setModuleUrl("ace/mode/objectivec",r("qXL54Iih")),ace.config.setModuleUrl("ace/mode/ocaml",r("9iQIMWNB")),ace.config.setModuleUrl("ace/mode/odin",r("zUo0neL4")),ace.config.setModuleUrl("ace/mode/partiql",r("/e1vSPF2")),ace.config.setModuleUrl("ace/mode/pascal",r("6/aZnvyA")),ace.config.setModuleUrl("ace/mode/perl",r("fkRJMx2A")),ace.config.setModuleUrl("ace/mode/pgsql",r("1lmljRhv")),ace.config.setModuleUrl("ace/mode/php",r("Swf1kidR")),ace.config.setModuleUrl("ace/mode/php_laravel_blade",r("LK5UGzlO")),ace.config.setModuleUrl("ace/mode/pig",r("70o87fuP")),ace.config.setModuleUrl("ace/mode/plain_text",r("PhchXZJ4")),ace.config.setModuleUrl("ace/mode/plsql",r("Ox/8YB8e")),ace.config.setModuleUrl("ace/mode/powershell",r("ViwVuVD4")),ace.config.setModuleUrl("ace/mode/praat",r("JyXSqxaH")),ace.config.setModuleUrl("ace/mode/prisma",r("Qnp8xlCa")),ace.config.setModuleUrl("ace/mode/prolog",r("MFeE8Ubg")),ace.config.setModuleUrl("ace/mode/properties",r("qPfkj+G6")),ace.config.setModuleUrl("ace/mode/protobuf",r("YwSn71ZN")),ace.config.setModuleUrl("ace/mode/prql",r("FvrvaAlT")),ace.config.setModuleUrl("ace/mode/puppet",r("MrpGrgv/")),ace.config.setModuleUrl("ace/mode/python",r("ODERIoXn")),ace.config.setModuleUrl("ace/mode/qml",r("LQvOb6rD")),ace.config.setModuleUrl("ace/mode/r",r("oo8TAhFW")),ace.config.setModuleUrl("ace/mode/raku",r("9QDNpDz+")),ace.config.setModuleUrl("ace/mode/razor",r("JGqJsmds")),ace.config.setModuleUrl("ace/mode/rdoc",r("GfIQ/6f2")),ace.config.setModuleUrl("ace/mode/red",r("2JE4sLFy")),ace.config.setModuleUrl("ace/mode/redshift",r("JDH3SgM4")),ace.config.setModuleUrl("ace/mode/rhtml",r("pIPxAxAd")),ace.config.setModuleUrl("ace/mode/robot",r("ckZCfyAO")),ace.config.setModuleUrl("ace/mode/rst",r("QUcezvII")),ace.config.setModuleUrl("ace/mode/ruby",r("YlddMges")),ace.config.setModuleUrl("ace/mode/rust",r("dPWwJt46")),ace.config.setModuleUrl("ace/mode/sac",r("3h+SEN24")),ace.config.setModuleUrl("ace/mode/sass",r("gb++0Fc+")),ace.config.setModuleUrl("ace/mode/scad",r("aNyjj5gM")),ace.config.setModuleUrl("ace/mode/scala",r("tYsmGWov")),ace.config.setModuleUrl("ace/mode/scheme",r("GbSTcx19")),ace.config.setModuleUrl("ace/mode/scrypt",r("NBhZaVlm")),ace.config.setModuleUrl("ace/mode/scss",r("zzmxbjKP")),ace.config.setModuleUrl("ace/mode/sh",r("Bnmy+nCP")),ace.config.setModuleUrl("ace/mode/sjs",r("Jxa/iNoA")),ace.config.setModuleUrl("ace/mode/slim",r("Tv6bNEE4")),ace.config.setModuleUrl("ace/mode/smarty",r("6Y3683Z0")),ace.config.setModuleUrl("ace/mode/smithy",r("TjgDivzz")),ace.config.setModuleUrl("ace/mode/snippets",r("RXu749jF")),ace.config.setModuleUrl("ace/mode/soy_template",r("+cVymqkx")),ace.config.setModuleUrl("ace/mode/space",r("fFK5+NEN")),ace.config.setModuleUrl("ace/mode/sparql",r("FxB/2+JT")),ace.config.setModuleUrl("ace/mode/sql",r("fAHwajrR")),ace.config.setModuleUrl("ace/mode/sqlserver",r("6oB+mmDg")),ace.config.setModuleUrl("ace/mode/stylus",r("g3lpFnIz")),ace.config.setModuleUrl("ace/mode/svg",r("ucQEFSoR")),ace.config.setModuleUrl("ace/mode/swift",r("4D/i9pGI")),ace.config.setModuleUrl("ace/mode/tcl",r("32q0cxGW")),ace.config.setModuleUrl("ace/mode/terraform",r("WJaCTWPp")),ace.config.setModuleUrl("ace/mode/tex",r("sEl/1uBl")),ace.config.setModuleUrl("ace/mode/text",r("+wrvkhXU")),ace.config.setModuleUrl("ace/mode/textile",r("ERc4vKV+")),ace.config.setModuleUrl("ace/mode/toml",r("EdqEeZmT")),ace.config.setModuleUrl("ace/mode/tsx",r("I8KfN2+S")),ace.config.setModuleUrl("ace/mode/turtle",r("uOv77sKS")),ace.config.setModuleUrl("ace/mode/twig",r("uvMcaCd5")),ace.config.setModuleUrl("ace/mode/typescript",r("Re9BkAD8")),ace.config.setModuleUrl("ace/mode/vala",r("Uu6IooP2")),ace.config.setModuleUrl("ace/mode/vbscript",r("6iGNLhXk")),ace.config.setModuleUrl("ace/mode/velocity",r("/M/zAlk8")),ace.config.setModuleUrl("ace/mode/verilog",r("WTtc/gcF")),ace.config.setModuleUrl("ace/mode/vhdl",r("j0WuOmtE")),ace.config.setModuleUrl("ace/mode/visualforce",r("Ug9cCIUN")),ace.config.setModuleUrl("ace/mode/wollok",r("x5TxmCGK")),ace.config.setModuleUrl("ace/mode/xml",r("N8ZNXkxN")),ace.config.setModuleUrl("ace/mode/xquery",r("pfae/Eei")),ace.config.setModuleUrl("ace/mode/yaml",r("daeSfRSS")),ace.config.setModuleUrl("ace/mode/zeek",r("fH60Iz78")),ace.config.setModuleUrl("ace/theme/ambiance",r("+BTHcvgl")),ace.config.setModuleUrl("ace/theme/chaos",r("xmSxIYqH")),ace.config.setModuleUrl("ace/theme/chrome",r("yoZaq5uj")),ace.config.setModuleUrl("ace/theme/cloud9_day",r("tmhJoAAK")),ace.config.setModuleUrl("ace/theme/cloud9_night",r("P0rO7dFF")),ace.config.setModuleUrl("ace/theme/cloud9_night_low_color",r("WKq0JVTV")),ace.config.setModuleUrl("ace/theme/clouds",r("gebro2ae")),ace.config.setModuleUrl("ace/theme/clouds_midnight",r("B79XD7BN")),ace.config.setModuleUrl("ace/theme/cobalt",r("eerP0c9R")),ace.config.setModuleUrl("ace/theme/crimson_editor",r("fX2CCpgB")),ace.config.setModuleUrl("ace/theme/dawn",r("Aq/ZgnTZ")),ace.config.setModuleUrl("ace/theme/dracula",r("/XtRmhWK")),ace.config.setModuleUrl("ace/theme/dreamweaver",r("TFzPRioG")),ace.config.setModuleUrl("ace/theme/eclipse",r("SVJYoKL8")),ace.config.setModuleUrl("ace/theme/github",r("nXOQeV4Z")),ace.config.setModuleUrl("ace/theme/github_dark",r("BJQCDW1R")),ace.config.setModuleUrl("ace/theme/gob",r("EJoBxNsy")),ace.config.setModuleUrl("ace/theme/gruvbox",r("EwaiLkEa")),ace.config.setModuleUrl("ace/theme/gruvbox_dark_hard",r("eEeRjWa/")),ace.config.setModuleUrl("ace/theme/gruvbox_light_hard",r("sYODkuO0")),ace.config.setModuleUrl("ace/theme/idle_fingers",r("vZAEjrJT")),ace.config.setModuleUrl("ace/theme/iplastic",r("cF6TgmNW")),ace.config.setModuleUrl("ace/theme/katzenmilch",r("Giwik73q")),ace.config.setModuleUrl("ace/theme/kr_theme",r("aV5DfSVM")),ace.config.setModuleUrl("ace/theme/kuroir",r("jYitPRcW")),ace.config.setModuleUrl("ace/theme/merbivore",r("imOooRGd")),ace.config.setModuleUrl("ace/theme/merbivore_soft",r("lAmtsMtR")),ace.config.setModuleUrl("ace/theme/mono_industrial",r("pPTZJEyo")),ace.config.setModuleUrl("ace/theme/monokai",r("hkfqmcAE")),ace.config.setModuleUrl("ace/theme/nord_dark",r("KymL/b/P")),ace.config.setModuleUrl("ace/theme/one_dark",r("ImGU7Dwg")),ace.config.setModuleUrl("ace/theme/pastel_on_dark",r("qqYq0T6o")),ace.config.setModuleUrl("ace/theme/solarized_dark",r("fi19NwwW")),ace.config.setModuleUrl("ace/theme/solarized_light",r("mVS2+Ljt")),ace.config.setModuleUrl("ace/theme/sqlserver",r("3Rg56MLJ")),ace.config.setModuleUrl("ace/theme/terminal",r("gBc1U5bM")),ace.config.setModuleUrl("ace/theme/textmate",r("h88GZDrT")),ace.config.setModuleUrl("ace/theme/tomorrow",r("16x1tHha")),ace.config.setModuleUrl("ace/theme/tomorrow_night",r("o8LJyLyl")),ace.config.setModuleUrl("ace/theme/tomorrow_night_blue",r("Q6GAibrw")),ace.config.setModuleUrl("ace/theme/tomorrow_night_bright",r("4p0wNy7i")),ace.config.setModuleUrl("ace/theme/tomorrow_night_eighties",r("IZ70iZ0u")),ace.config.setModuleUrl("ace/theme/twilight",r("Vb3XmqvT")),ace.config.setModuleUrl("ace/theme/vibrant_ink",r("ayYeMdgY")),ace.config.setModuleUrl("ace/theme/xcode",r("xyO5YCED")),ace.config.setModuleUrl("ace/mode/base_worker",r("TlRWyvXi")),ace.config.setModuleUrl("ace/mode/coffee_worker",r("AgNSGgUO")),ace.config.setModuleUrl("ace/mode/css_worker",r("p6z1qn/X")),ace.config.setModuleUrl("ace/mode/html_worker",r("o5o1SmPz")),ace.config.setModuleUrl("ace/mode/javascript_worker",r("d/0fwyfJ")),ace.config.setModuleUrl("ace/mode/json_worker",r("O2yNmyhK")),ace.config.setModuleUrl("ace/mode/lua_worker",r("+ddR406Z")),ace.config.setModuleUrl("ace/mode/php_worker",r("TN72gHNo")),ace.config.setModuleUrl("ace/mode/xml_worker",r("7VOegq9A")),ace.config.setModuleUrl("ace/mode/xquery_worker",r("0yBpymYr")),ace.config.setModuleUrl("ace/mode/yaml_worker",r("FMgyeogS")),ace.config.setModuleUrl("ace/snippets/abap",r("avzMH6DY")),ace.config.setModuleUrl("ace/snippets/abc",r("R8poopDF")),ace.config.setModuleUrl("ace/snippets/actionscript",r("KoO7SC79")),ace.config.setModuleUrl("ace/snippets/ada",r("mkK3zLI/")),ace.config.setModuleUrl("ace/snippets/alda",r("wL3zL9v1")),ace.config.setModuleUrl("ace/snippets/apache_conf",r("rwkzKgyk")),ace.config.setModuleUrl("ace/snippets/apex",r("9ttzY+gz")),ace.config.setModuleUrl("ace/snippets/applescript",r("l1ocPyk4")),ace.config.setModuleUrl("ace/snippets/aql",r("9tW4ETiD")),ace.config.setModuleUrl("ace/snippets/asciidoc",r("VPmXlAtC")),ace.config.setModuleUrl("ace/snippets/asl",r("+22IkjtS")),ace.config.setModuleUrl("ace/snippets/assembly_x86",r("Ix16RfsA")),ace.config.setModuleUrl("ace/snippets/astro",r("TwYo5Hl8")),ace.config.setModuleUrl("ace/snippets/autohotkey",r("ZM0a57+x")),ace.config.setModuleUrl("ace/snippets/batchfile",r("FFZN8ltK")),ace.config.setModuleUrl("ace/snippets/bibtex",r("bUuKjha0")),ace.config.setModuleUrl("ace/snippets/c9search",r("aHnAO1KC")),ace.config.setModuleUrl("ace/snippets/c_cpp",r("62H+cJhB")),ace.config.setModuleUrl("ace/snippets/cirru",r("HQZ5RQfO")),ace.config.setModuleUrl("ace/snippets/clojure",r("GNpKOw2C")),ace.config.setModuleUrl("ace/snippets/cobol",r("CHGUK+rS")),ace.config.setModuleUrl("ace/snippets/coffee",r("9DXjooQo")),ace.config.setModuleUrl("ace/snippets/coldfusion",r("f7ar0i9a")),ace.config.setModuleUrl("ace/snippets/crystal",r("quN0toIM")),ace.config.setModuleUrl("ace/snippets/csharp",r("4Jq7zhZI")),ace.config.setModuleUrl("ace/snippets/csound_document",r("a0QecoSi")),ace.config.setModuleUrl("ace/snippets/csound_orchestra",r("HqICChlB")),ace.config.setModuleUrl("ace/snippets/csound_score",r("eRXSCXdv")),ace.config.setModuleUrl("ace/snippets/csp",r("f6/PBDje")),ace.config.setModuleUrl("ace/snippets/css",r("FHoga4ib")),ace.config.setModuleUrl("ace/snippets/curly",r("5cYnbnRf")),ace.config.setModuleUrl("ace/snippets/cuttlefish",r("jzm7IBMN")),ace.config.setModuleUrl("ace/snippets/d",r("mweojbV+")),ace.config.setModuleUrl("ace/snippets/dart",r("q0rTpdcE")),ace.config.setModuleUrl("ace/snippets/diff",r("vxflMTE1")),ace.config.setModuleUrl("ace/snippets/django",r("sXxDtq/3")),ace.config.setModuleUrl("ace/snippets/dockerfile",r("2YX7UNCp")),ace.config.setModuleUrl("ace/snippets/dot",r("tL1Djyxq")),ace.config.setModuleUrl("ace/snippets/drools",r("mpJbAHco")),ace.config.setModuleUrl("ace/snippets/edifact",r("n9LKP9/E")),ace.config.setModuleUrl("ace/snippets/eiffel",r("1m2sEfoo")),ace.config.setModuleUrl("ace/snippets/ejs",r("iwlqyzCK")),ace.config.setModuleUrl("ace/snippets/elixir",r("fVPrdEsl")),ace.config.setModuleUrl("ace/snippets/elm",r("DVUpjBO+")),ace.config.setModuleUrl("ace/snippets/erlang",r("F+4y5Fgn")),ace.config.setModuleUrl("ace/snippets/forth",r("5EHgXuiC")),ace.config.setModuleUrl("ace/snippets/fortran",r("Q+GZV7jA")),ace.config.setModuleUrl("ace/snippets/fsharp",r("Znyl7VhH")),ace.config.setModuleUrl("ace/snippets/fsl",r("kBQOhgaS")),ace.config.setModuleUrl("ace/snippets/ftl",r("Y+6GI768")),ace.config.setModuleUrl("ace/snippets/gcode",r("yWVRn4+E")),ace.config.setModuleUrl("ace/snippets/gherkin",r("NsL/wTZs")),ace.config.setModuleUrl("ace/snippets/gitignore",r("w864l1Pb")),ace.config.setModuleUrl("ace/snippets/glsl",r("4RUm0Btw")),ace.config.setModuleUrl("ace/snippets/gobstones",r("80N6biu0")),ace.config.setModuleUrl("ace/snippets/golang",r("Pt9z2KI0")),ace.config.setModuleUrl("ace/snippets/graphqlschema",r("YBt5w227")),ace.config.setModuleUrl("ace/snippets/groovy",r("d2vnfSTC")),ace.config.setModuleUrl("ace/snippets/haml",r("EbA+6fiI")),ace.config.setModuleUrl("ace/snippets/handlebars",r("lb7Zta99")),ace.config.setModuleUrl("ace/snippets/haskell",r("U7ttnZ+y")),ace.config.setModuleUrl("ace/snippets/haskell_cabal",r("bpU+S8ds")),ace.config.setModuleUrl("ace/snippets/haxe",r("geHDKTrS")),ace.config.setModuleUrl("ace/snippets/hjson",r("mYYTEGsO")),ace.config.setModuleUrl("ace/snippets/html",r("TyFfbAI6")),ace.config.setModuleUrl("ace/snippets/html_elixir",r("hdn5+28R")),ace.config.setModuleUrl("ace/snippets/html_ruby",r("MQtivsQd")),ace.config.setModuleUrl("ace/snippets/ini",r("D5Oq7iSw")),ace.config.setModuleUrl("ace/snippets/io",r("2pG9WKud")),ace.config.setModuleUrl("ace/snippets/ion",r("Fp/uWagf")),ace.config.setModuleUrl("ace/snippets/jack",r("6PSy53hx")),ace.config.setModuleUrl("ace/snippets/jade",r("QOy6BMUE")),ace.config.setModuleUrl("ace/snippets/java",r("MJ+l2//h")),ace.config.setModuleUrl("ace/snippets/javascript",r("oF3ktmsD")),ace.config.setModuleUrl("ace/snippets/jexl",r("rsSyJ3Bb")),ace.config.setModuleUrl("ace/snippets/json",r("LJwNGwvY")),ace.config.setModuleUrl("ace/snippets/json5",r("HZcVkJaj")),ace.config.setModuleUrl("ace/snippets/jsoniq",r("UhYuLL++")),ace.config.setModuleUrl("ace/snippets/jsp",r("ym2WA4Q2")),ace.config.setModuleUrl("ace/snippets/jssm",r("z1KVGe9l")),ace.config.setModuleUrl("ace/snippets/jsx",r("OJ+kzoaG")),ace.config.setModuleUrl("ace/snippets/julia",r("0pvmR+m4")),ace.config.setModuleUrl("ace/snippets/kotlin",r("lsiLNG3s")),ace.config.setModuleUrl("ace/snippets/latex",r("oZGPduw5")),ace.config.setModuleUrl("ace/snippets/latte",r("4Z/R/BWQ")),ace.config.setModuleUrl("ace/snippets/less",r("+vFBB9YF")),ace.config.setModuleUrl("ace/snippets/liquid",r("VRU95B7q")),ace.config.setModuleUrl("ace/snippets/lisp",r("TJSM1X0u")),ace.config.setModuleUrl("ace/snippets/livescript",r("kk77QZAG")),ace.config.setModuleUrl("ace/snippets/logiql",r("1qkcMKNL")),ace.config.setModuleUrl("ace/snippets/logtalk",r("bGk/KJ/4")),ace.config.setModuleUrl("ace/snippets/lsl",r("J/w0U7md")),ace.config.setModuleUrl("ace/snippets/lua",r("SLF9kC6o")),ace.config.setModuleUrl("ace/snippets/luapage",r("8rVYTGy+")),ace.config.setModuleUrl("ace/snippets/lucene",r("jFvgXyKm")),ace.config.setModuleUrl("ace/snippets/makefile",r("1UaaHBzV")),ace.config.setModuleUrl("ace/snippets/markdown",r("TF7B40dr")),ace.config.setModuleUrl("ace/snippets/mask",r("zMo9kLF+")),ace.config.setModuleUrl("ace/snippets/matlab",r("oln2q6Ci")),ace.config.setModuleUrl("ace/snippets/maze",r("vDzPjaoq")),ace.config.setModuleUrl("ace/snippets/mediawiki",r("RB3OEA7U")),ace.config.setModuleUrl("ace/snippets/mel",r("KYWm6Ntl")),ace.config.setModuleUrl("ace/snippets/mips",r("KBzCcSD0")),ace.config.setModuleUrl("ace/snippets/mixal",r("AejA2zVF")),ace.config.setModuleUrl("ace/snippets/mushcode",r("75Oz1BzI")),ace.config.setModuleUrl("ace/snippets/mysql",r("kB3MnFIw")),ace.config.setModuleUrl("ace/snippets/nginx",r("JsrUKB33")),ace.config.setModuleUrl("ace/snippets/nim",r("XjNmBj3f")),ace.config.setModuleUrl("ace/snippets/nix",r("Z6gpH3+b")),ace.config.setModuleUrl("ace/snippets/nsis",r("4Swr0PXn")),ace.config.setModuleUrl("ace/snippets/nunjucks",r("kOPWUEtO")),ace.config.setModuleUrl("ace/snippets/objectivec",r("BbdH3SFn")),ace.config.setModuleUrl("ace/snippets/ocaml",r("3x8Lh6Bx")),ace.config.setModuleUrl("ace/snippets/odin",r("jNBVVg6+")),ace.config.setModuleUrl("ace/snippets/partiql",r("UjheMlIg")),ace.config.setModuleUrl("ace/snippets/pascal",r("mP3BBUBm")),ace.config.setModuleUrl("ace/snippets/perl",r("UwWnJwVN")),ace.config.setModuleUrl("ace/snippets/pgsql",r("CfKkLhJG")),ace.config.setModuleUrl("ace/snippets/php",r("Cnnt4Qzs")),ace.config.setModuleUrl("ace/snippets/php_laravel_blade",r("CvTSp0Ea")),ace.config.setModuleUrl("ace/snippets/pig",r("tM11O7gM")),ace.config.setModuleUrl("ace/snippets/plain_text",r("5AIwnxVo")),ace.config.setModuleUrl("ace/snippets/plsql",r("m77Sr6w9")),ace.config.setModuleUrl("ace/snippets/powershell",r("IFeh4wAE")),ace.config.setModuleUrl("ace/snippets/praat",r("QfCqoDim")),ace.config.setModuleUrl("ace/snippets/prisma",r("MCqmcN23")),ace.config.setModuleUrl("ace/snippets/prolog",r("I9u0rsIN")),ace.config.setModuleUrl("ace/snippets/properties",r("SVhT70YV")),ace.config.setModuleUrl("ace/snippets/protobuf",r("jv+kSmqh")),ace.config.setModuleUrl("ace/snippets/prql",r("eXFV86Yu")),ace.config.setModuleUrl("ace/snippets/puppet",r("0z527LnQ")),ace.config.setModuleUrl("ace/snippets/python",r("h2pNVQt/")),ace.config.setModuleUrl("ace/snippets/qml",r("fek/LWKN")),ace.config.setModuleUrl("ace/snippets/r",r("gF8eoj6y")),ace.config.setModuleUrl("ace/snippets/raku",r("1QfXsMiP")),ace.config.setModuleUrl("ace/snippets/razor",r("UV+E1cv/")),ace.config.setModuleUrl("ace/snippets/rdoc",r("O6p7aU4W")),ace.config.setModuleUrl("ace/snippets/red",r("bRUnAF/a")),ace.config.setModuleUrl("ace/snippets/redshift",r("6Iwmwzcm")),ace.config.setModuleUrl("ace/snippets/rhtml",r("D52lSU9q")),ace.config.setModuleUrl("ace/snippets/robot",r("QP/yWmcM")),ace.config.setModuleUrl("ace/snippets/rst",r("aU0zTjW+")),ace.config.setModuleUrl("ace/snippets/ruby",r("z+sG+m9R")),ace.config.setModuleUrl("ace/snippets/rust",r("ZqZC7z1w")),ace.config.setModuleUrl("ace/snippets/sac",r("YmKoDjGb")),ace.config.setModuleUrl("ace/snippets/sass",r("3Envl7e5")),ace.config.setModuleUrl("ace/snippets/scad",r("uAwHhJA0")),ace.config.setModuleUrl("ace/snippets/scala",r("rm6KlgYn")),ace.config.setModuleUrl("ace/snippets/scheme",r("jF7/ZxWj")),ace.config.setModuleUrl("ace/snippets/scrypt",r("+pcpY34R")),ace.config.setModuleUrl("ace/snippets/scss",r("+Sh2jr7a")),ace.config.setModuleUrl("ace/snippets/sh",r("ScJRDELP")),ace.config.setModuleUrl("ace/snippets/sjs",r("mSTUYor1")),ace.config.setModuleUrl("ace/snippets/slim",r("v7rSSl9w")),ace.config.setModuleUrl("ace/snippets/smarty",r("LxddSaE/")),ace.config.setModuleUrl("ace/snippets/smithy",r("kQtSEHci")),ace.config.setModuleUrl("ace/snippets/snippets",r("J35dLvJS")),ace.config.setModuleUrl("ace/snippets/soy_template",r("Bktld38o")),ace.config.setModuleUrl("ace/snippets/space",r("1eR3yPY9")),ace.config.setModuleUrl("ace/snippets/sparql",r("ETD6YXbz")),ace.config.setModuleUrl("ace/snippets/sql",r("qulDqPVm")),ace.config.setModuleUrl("ace/snippets/sqlserver",r("lU3lB3wM")),ace.config.setModuleUrl("ace/snippets/stylus",r("GpgPF75P")),ace.config.setModuleUrl("ace/snippets/svg",r("YLJRKGC4")),ace.config.setModuleUrl("ace/snippets/swift",r("lKjzvxeB")),ace.config.setModuleUrl("ace/snippets/tcl",r("RHqzr0C5")),ace.config.setModuleUrl("ace/snippets/terraform",r("gb0wGXRJ")),ace.config.setModuleUrl("ace/snippets/tex",r("UGhpNUV7")),ace.config.setModuleUrl("ace/snippets/text",r("tEDOir3w")),ace.config.setModuleUrl("ace/snippets/textile",r("IaEbG2fr")),ace.config.setModuleUrl("ace/snippets/toml",r("MYgphJSY")),ace.config.setModuleUrl("ace/snippets/tsx",r("LcpOkFT0")),ace.config.setModuleUrl("ace/snippets/turtle",r("cfKVxEYA")),ace.config.setModuleUrl("ace/snippets/twig",r("VwotmSiH")),ace.config.setModuleUrl("ace/snippets/typescript",r("UrJcLpIP")),ace.config.setModuleUrl("ace/snippets/vala",r("U3DmOV7V")),ace.config.setModuleUrl("ace/snippets/vbscript",r("ILy0aeUd")),ace.config.setModuleUrl("ace/snippets/velocity",r("dkLyTquH")),ace.config.setModuleUrl("ace/snippets/verilog",r("FEbWfF1p")),ace.config.setModuleUrl("ace/snippets/vhdl",r("/d8TsqnF")),ace.config.setModuleUrl("ace/snippets/visualforce",r("iAXyYMup")),ace.config.setModuleUrl("ace/snippets/wollok",r("Ok5IuIq0")),ace.config.setModuleUrl("ace/snippets/xml",r("emj+QL9a")),ace.config.setModuleUrl("ace/snippets/xquery",r("elwTtddw")),ace.config.setModuleUrl("ace/snippets/yaml",r("OXv0shTU")),ace.config.setModuleUrl("ace/snippets/zeek",r("4wnvWGf6"))},vlKMHcvz:u=>{var k=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},r=-1,I=1,T=0;k.Diff=function(_,b){return[_,b]},k.prototype.diff_main=function(_,b,C,y){typeof y>"u"&&(this.Diff_Timeout<=0?y=Number.MAX_VALUE:y=new Date().getTime()+this.Diff_Timeout*1e3);var a=y;if(_==null||b==null)throw new Error("Null input. (diff_main)");if(_==b)return _?[new k.Diff(T,_)]:[];typeof C>"u"&&(C=!0);var c=C,s=this.diff_commonPrefix(_,b),i=_.substring(0,s);_=_.substring(s),b=b.substring(s),s=this.diff_commonSuffix(_,b);var n=_.substring(_.length-s);_=_.substring(0,_.length-s),b=b.substring(0,b.length-s);var e=this.diff_compute_(_,b,c,a);return i&&e.unshift(new k.Diff(T,i)),n&&e.push(new k.Diff(T,n)),this.diff_cleanupMerge(e),e},k.prototype.diff_compute_=function(_,b,C,y){var a;if(!_)return[new k.Diff(I,b)];if(!b)return[new k.Diff(r,_)];var c=_.length>b.length?_:b,s=_.length>b.length?b:_,i=c.indexOf(s);if(i!=-1)return a=[new k.Diff(I,c.substring(0,i)),new k.Diff(T,s),new k.Diff(I,c.substring(i+s.length))],_.length>b.length&&(a[0][0]=a[2][0]=r),a;if(s.length==1)return[new k.Diff(r,_),new k.Diff(I,b)];var n=this.diff_halfMatch_(_,b);if(n){var e=n[0],t=n[1],o=n[2],l=n[3],h=n[4],f=this.diff_main(e,o,C,y),$=this.diff_main(t,l,C,y);return f.concat([new k.Diff(T,h)],$)}return C&&_.length>100&&b.length>100?this.diff_lineMode_(_,b,y):this.diff_bisect_(_,b,y)},k.prototype.diff_lineMode_=function(_,b,C){var y=this.diff_linesToChars_(_,b);_=y.chars1,b=y.chars2;var a=y.lineArray,c=this.diff_main(_,b,!1,C);this.diff_charsToLines_(c,a),this.diff_cleanupSemantic(c),c.push(new k.Diff(T,""));for(var s=0,i=0,n=0,e="",t="";s=1&&n>=1){c.splice(s-i-n,i+n),s=s-i-n;for(var o=this.diff_main(e,t,!1,C),l=o.length-1;l>=0;l--)c.splice(s,0,o[l]);s=s+o.length}n=0,i=0,e="",t="";break}s++}return c.pop(),c},k.prototype.diff_bisect_=function(_,b,C){for(var y=_.length,a=b.length,c=Math.ceil((y+a)/2),s=c,i=2*c,n=new Array(i),e=new Array(i),t=0;tC);M++){for(var S=-M+h;S<=M-f;S+=2){var p=s+S,v;S==-M||S!=M&&n[p-1]y)f+=2;else if(A>a)h+=2;else if(l){var R=s+o-S;if(R>=0&&R=w)return this.diff_bisectSplit_(_,b,v,A,C)}}}for(var x=-M+$;x<=M-m;x+=2){var R=s+x,w;x==-M||x!=M&&e[R-1]y)m+=2;else if(g>a)$+=2;else if(!l){var p=s+o-x;if(p>=0&&p=w)return this.diff_bisectSplit_(_,b,v,A,C)}}}}return[new k.Diff(r,_),new k.Diff(I,b)]},k.prototype.diff_bisectSplit_=function(_,b,C,y,a){var c=_.substring(0,C),s=b.substring(0,y),i=_.substring(C),n=b.substring(y),e=this.diff_main(c,s,!1,a),t=this.diff_main(i,n,!1,a);return e.concat(t)},k.prototype.diff_linesToChars_=function(_,b){var C=[],y={};C[0]="";function a(n){for(var e="",t=0,o=-1,l=C.length;oy?_=_.substring(C-y):Cb.length?_:b,y=_.length>b.length?b:_;if(C.length<4||y.length*2=f.length?[v,A,R,w,p]:null}var s=c(C,y,Math.ceil(C.length/4)),i=c(C,y,Math.ceil(C.length/2)),n;if(!s&&!i)return null;i?s?n=s[4].length>i[4].length?s:i:n=i:n=s;var e,t,o,l;_.length>b.length?(e=n[0],t=n[1],o=n[2],l=n[3]):(o=n[0],l=n[1],e=n[2],t=n[3]);var h=n[4];return[e,t,o,l,h]},k.prototype.diff_cleanupSemantic=function(_){for(var b=!1,C=[],y=0,a=null,c=0,s=0,i=0,n=0,e=0;c<_.length;)_[c][0]==T?(C[y++]=c,s=n,i=e,n=0,e=0,a=_[c][1]):(_[c][0]==I?n+=_[c][1].length:e+=_[c][1].length,a&&a.length<=Math.max(s,i)&&a.length<=Math.max(n,e)&&(_.splice(C[y-1],0,new k.Diff(r,a)),_[C[y-1]+1][0]=I,y--,y--,c=y>0?C[y-1]:-1,s=0,i=0,n=0,e=0,a=null,b=!0)),c++;for(b&&this.diff_cleanupMerge(_),this.diff_cleanupSemanticLossless(_),c=1;c<_.length;){if(_[c-1][0]==r&&_[c][0]==I){var t=_[c-1][1],o=_[c][1],l=this.diff_commonOverlap_(t,o),h=this.diff_commonOverlap_(o,t);l>=h?(l>=t.length/2||l>=o.length/2)&&(_.splice(c,0,new k.Diff(T,o.substring(0,l))),_[c-1][1]=t.substring(0,t.length-l),_[c+1][1]=o.substring(l),c++):(h>=t.length/2||h>=o.length/2)&&(_.splice(c,0,new k.Diff(T,t.substring(0,h))),_[c-1][0]=I,_[c-1][1]=o.substring(0,o.length-h),_[c+1][0]=r,_[c+1][1]=t.substring(h),c++),c++}c++}},k.prototype.diff_cleanupSemanticLossless=function(_){function b(h,f){if(!h||!f)return 6;var $=h.charAt(h.length-1),m=f.charAt(0),M=$.match(k.nonAlphaNumericRegex_),S=m.match(k.nonAlphaNumericRegex_),p=M&&$.match(k.whitespaceRegex_),v=S&&m.match(k.whitespaceRegex_),A=p&&$.match(k.linebreakRegex_),R=v&&m.match(k.linebreakRegex_),w=A&&h.match(k.blanklineEndRegex_),x=R&&f.match(k.blanklineStartRegex_);return w||x?5:A||R?4:M&&!p&&v?3:p||v?2:M||S?1:0}for(var C=1;C<_.length-1;){if(_[C-1][0]==T&&_[C+1][0]==T){var y=_[C-1][1],a=_[C][1],c=_[C+1][1],s=this.diff_commonSuffix(y,a);if(s){var i=a.substring(a.length-s);y=y.substring(0,y.length-s),a=i+a.substring(0,a.length-s),c=i+c}for(var n=y,e=a,t=c,o=b(y,a)+b(a,c);a.charAt(0)===c.charAt(0);){y+=a.charAt(0),a=a.substring(1)+c.charAt(0),c=c.substring(1);var l=b(y,a)+b(a,c);l>=o&&(o=l,n=y,e=a,t=c)}_[C-1][1]!=n&&(n?_[C-1][1]=n:(_.splice(C-1,1),C--),_[C][1]=e,t?_[C+1][1]=t:(_.splice(C+1,1),C--))}C++}},k.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,k.whitespaceRegex_=/\s/,k.linebreakRegex_=/[\r\n]/,k.blanklineEndRegex_=/\n\r?\n$/,k.blanklineStartRegex_=/^\r?\n\r?\n/,k.prototype.diff_cleanupEfficiency=function(_){for(var b=!1,C=[],y=0,a=null,c=0,s=!1,i=!1,n=!1,e=!1;c<_.length;)_[c][0]==T?(_[c][1].length0?C[y-1]:-1,n=e=!1),b=!0)),c++;b&&this.diff_cleanupMerge(_)},k.prototype.diff_cleanupMerge=function(_){_.push(new k.Diff(T,""));for(var b=0,C=0,y=0,a="",c="",s;b<_.length;)switch(_[b][0]){case I:y++,c+=_[b][1],b++;break;case r:C++,a+=_[b][1],b++;break;case T:C+y>1?(C!==0&&y!==0&&(s=this.diff_commonPrefix(c,a),s!==0&&(b-C-y>0&&_[b-C-y-1][0]==T?_[b-C-y-1][1]+=c.substring(0,s):(_.splice(0,0,new k.Diff(T,c.substring(0,s))),b++),c=c.substring(s),a=a.substring(s)),s=this.diff_commonSuffix(c,a),s!==0&&(_[b][1]=c.substring(c.length-s)+_[b][1],c=c.substring(0,c.length-s),a=a.substring(0,a.length-s))),b-=C+y,_.splice(b,C+y),a.length&&(_.splice(b,0,new k.Diff(r,a)),b++),c.length&&(_.splice(b,0,new k.Diff(I,c)),b++),b++):b!==0&&_[b-1][0]==T?(_[b-1][1]+=_[b][1],_.splice(b,1)):b++,y=0,C=0,a="",c="";break}_[_.length-1][1]===""&&_.pop();var i=!1;for(b=1;b<_.length-1;)_[b-1][0]==T&&_[b+1][0]==T&&(_[b][1].substring(_[b][1].length-_[b-1][1].length)==_[b-1][1]?(_[b][1]=_[b-1][1]+_[b][1].substring(0,_[b][1].length-_[b-1][1].length),_[b+1][1]=_[b-1][1]+_[b+1][1],_.splice(b-1,1),i=!0):_[b][1].substring(0,_[b+1][1].length)==_[b+1][1]&&(_[b-1][1]+=_[b+1][1],_[b][1]=_[b][1].substring(_[b+1][1].length)+_[b+1][1],_.splice(b+1,1),i=!0)),b++;i&&this.diff_cleanupMerge(_)},k.prototype.diff_xIndex=function(_,b){var C=0,y=0,a=0,c=0,s;for(s=0;s<_.length&&(_[s][0]!==I&&(C+=_[s][1].length),_[s][0]!==r&&(y+=_[s][1].length),!(C>b));s++)a=C,c=y;return _.length!=s&&_[s][0]===r?c:c+(b-a)},k.prototype.diff_prettyHtml=function(_){for(var b=[],C=/&/g,y=//g,c=/\n/g,s=0;s<_.length;s++){var i=_[s][0],n=_[s][1],e=n.replace(C,"&").replace(y,"<").replace(a,">").replace(c,"¶
");switch(i){case I:b[s]=''+e+"";break;case r:b[s]=''+e+"";break;case T:b[s]=""+e+"";break}}return b.join("")},k.prototype.diff_text1=function(_){for(var b=[],C=0;C<_.length;C++)_[C][0]!==I&&(b[C]=_[C][1]);return b.join("")},k.prototype.diff_text2=function(_){for(var b=[],C=0;C<_.length;C++)_[C][0]!==r&&(b[C]=_[C][1]);return b.join("")},k.prototype.diff_levenshtein=function(_){for(var b=0,C=0,y=0,a=0;a<_.length;a++){var c=_[a][0],s=_[a][1];switch(c){case I:C+=s.length;break;case r:y+=s.length;break;case T:b+=Math.max(C,y),C=0,y=0;break}}return b+=Math.max(C,y),b},k.prototype.diff_toDelta=function(_){for(var b=[],C=0;C<_.length;C++)switch(_[C][0]){case I:b[C]="+"+encodeURI(_[C][1]);break;case r:b[C]="-"+_[C][1].length;break;case T:b[C]="="+_[C][1].length;break}return b.join(" ").replace(/%20/g," ")},k.prototype.diff_fromDelta=function(_,b){for(var C=[],y=0,a=0,c=b.split(/\t/g),s=0;sthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var y=this.match_alphabet_(b),a=this;function c(v,A){var R=v/b.length,w=Math.abs(C-A);return a.Match_Distance?R+w/a.Match_Distance:w?1:R}var s=this.Match_Threshold,i=_.indexOf(b,C);i!=-1&&(s=Math.min(c(0,i),s),i=_.lastIndexOf(b,C+b.length),i!=-1&&(s=Math.min(c(0,i),s)));var n=1<=f;M--){var S=y[_.charAt(M-1)];if(h===0?m[M]=(m[M+1]<<1|1)&S:m[M]=(m[M+1]<<1|1)&S|((l[M+1]|l[M])<<1|1)|l[M+1],m[M]&n){var p=c(h,M-1);if(p<=s)if(s=p,i=M-1,i>C)f=Math.max(1,2*C-i);else break}}if(c(h+1,C)>s)break;l=m}return i},k.prototype.match_alphabet_=function(_){for(var b={},C=0;C<_.length;C++)b[_.charAt(C)]=0;for(var C=0;C<_.length;C++)b[_.charAt(C)]|=1<<_.length-C-1;return b},k.prototype.patch_addContext_=function(_,b){if(b.length!=0){if(_.start2===null)throw Error("patch not initialized");for(var C=b.substring(_.start2,_.start2+_.length1),y=0;b.indexOf(C)!=b.lastIndexOf(C)&&C.length"u")y=_,a=this.diff_main(y,b,!0),a.length>2&&(this.diff_cleanupSemantic(a),this.diff_cleanupEfficiency(a));else if(_&&typeof _=="object"&&typeof b>"u"&&typeof C>"u")a=_,y=this.diff_text1(a);else if(typeof _=="string"&&b&&typeof b=="object"&&typeof C>"u")y=_,a=b;else if(typeof _=="string"&&typeof b=="string"&&C&&typeof C=="object")y=_,a=C;else throw new Error("Unknown call format to patch_make.");if(a.length===0)return[];for(var c=[],s=new k.patch_obj,i=0,n=0,e=0,t=y,o=y,l=0;l=2*this.Patch_Margin&&i&&(this.patch_addContext_(s,t),c.push(s),s=new k.patch_obj,i=0,t=o,n=e);break}h!==I&&(n+=f.length),h!==r&&(e+=f.length)}return i&&(this.patch_addContext_(s,t),c.push(s)),c},k.prototype.patch_deepCopy=function(_){for(var b=[],C=0;C<_.length;C++){var y=_[C],a=new k.patch_obj;a.diffs=[];for(var c=0;cthis.Match_MaxBits?(n=this.match_main(b,i.substring(0,this.Match_MaxBits),s),n!=-1&&(e=this.match_main(b,i.substring(i.length-this.Match_MaxBits),s+i.length-this.Match_MaxBits),(e==-1||n>=e)&&(n=-1))):n=this.match_main(b,i,s),n==-1)a[c]=!1,y-=_[c].length2-_[c].length1;else{a[c]=!0,y=n-s;var t;if(e==-1?t=b.substring(n,n+i.length):t=b.substring(n,e+this.Match_MaxBits),i==t)b=b.substring(0,n)+this.diff_text2(_[c].diffs)+b.substring(n+i.length);else{var o=this.diff_main(i,t,!1);if(i.length>this.Match_MaxBits&&this.diff_levenshtein(o)/i.length>this.Patch_DeleteThreshold)a[c]=!1;else{this.diff_cleanupSemanticLossless(o);for(var l=0,h,f=0;f<_[c].diffs.length;f++){var $=_[c].diffs[f];$[0]!==T&&(h=this.diff_xIndex(o,l)),$[0]===I?b=b.substring(0,n+h)+$[1]+b.substring(n+h):$[0]===r&&(b=b.substring(0,n+h)+b.substring(n+this.diff_xIndex(o,l+$[1].length))),$[0]!==r&&(l+=$[1].length)}}}}}return b=b.substring(C.length,b.length-C.length),[b,a]},k.prototype.patch_addPadding=function(_){for(var b=this.Patch_Margin,C="",y=1;y<=b;y++)C+=String.fromCharCode(y);for(var y=0;y<_.length;y++)_[y].start1+=b,_[y].start2+=b;var a=_[0],c=a.diffs;if(c.length==0||c[0][0]!=T)c.unshift(new k.Diff(T,C)),a.start1-=b,a.start2-=b,a.length1+=b,a.length2+=b;else if(b>c[0][1].length){var s=b-c[0][1].length;c[0][1]=C.substring(c[0][1].length)+c[0][1],a.start1-=s,a.start2-=s,a.length1+=s,a.length2+=s}if(a=_[_.length-1],c=a.diffs,c.length==0||c[c.length-1][0]!=T)c.push(new k.Diff(T,C)),a.length1+=b,a.length2+=b;else if(b>c[c.length-1][1].length){var s=b-c[c.length-1][1].length;c[c.length-1][1]+=C.substring(0,s),a.length1+=s,a.length2+=s}return C},k.prototype.patch_splitMax=function(_){for(var b=this.Match_MaxBits,C=0;C<_.length;C++)if(!(_[C].length1<=b)){var y=_[C];_.splice(C--,1);for(var a=y.start1,c=y.start2,s="";y.diffs.length!==0;){var i=new k.patch_obj,n=!0;for(i.start1=a-s.length,i.start2=c-s.length,s!==""&&(i.length1=i.length2=s.length,i.diffs.push(new k.Diff(T,s)));y.diffs.length!==0&&i.length12*b?(i.length1+=t.length,a+=t.length,n=!1,i.diffs.push(new k.Diff(e,t)),y.diffs.shift()):(t=t.substring(0,b-i.length1-this.Patch_Margin),i.length1+=t.length,a+=t.length,e===T?(i.length2+=t.length,c+=t.length):n=!1,i.diffs.push(new k.Diff(e,t)),t==y.diffs[0][1]?y.diffs.shift():y.diffs[0][1]=y.diffs[0][1].substring(t.length))}s=this.diff_text2(i.diffs),s=s.substring(s.length-this.Patch_Margin);var o=this.diff_text1(y.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]===T?i.diffs[i.diffs.length-1][1]+=o:i.diffs.push(new k.Diff(T,o))),n||_.splice(++C,0,i)}}},k.prototype.patch_toText=function(_){for(var b=[],C=0;C<_.length;C++)b[C]=_[C];return b.join("")},k.prototype.patch_fromText=function(_){var b=[];if(!_)return b;for(var C=_.split(`
`),y=0,a=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;y{u.exports=r.p+"852f0ecd7b17e3bfd700a821ff438f7e.js"},d5DInCCs:(u,k,r)=>{u.exports=r.p+"7d64980faff5b041a461fd0ba3e2f3f5.js"},ZxljQyAn:(u,k,r)=>{u.exports=r.p+"89db460731cfbe5b4f0f8bd43d726c20.js"},RDQjmDWb:(u,k,r)=>{u.exports=r.p+"8b8336037f074d9dcbd20eab535b803f.js"},BV9P4L46:(u,k,r)=>{u.exports=r.p+"40f569ded183c3f2843af478d001fbe5.js"},MJeWgd6c:(u,k,r)=>{u.exports=r.p+"c530988d2b1966fd10a4d99fa3877e1b.js"},BKtAhKI8:(u,k,r)=>{u.exports=r.p+"2fe2904fc024afaf81732563cb83e547.js"},ZIOzB1Uo:(u,k,r)=>{u.exports=r.p+"f43f03d6c661cee33151e6ca5740082e.js"},j3BhWVns:(u,k,r)=>{u.exports=r.p+"cfe1a9dd61dd943a574fc6c7157372f7.js"},TCw1rQBy:(u,k,r)=>{u.exports=r.p+"30932b403d8f2dd7c9032ee3b8760479.js"},JSYh1Q26:(u,k,r)=>{u.exports=r.p+"fec23c6964d6cf25681d1f3e24b076a4.js"},TOxD74io:(u,k,r)=>{u.exports=r.p+"e8908741bdbf52b446ba96d5bb6be669.js"},nqxuvGGK:(u,k,r)=>{u.exports=r.p+"5128409ba275918b6bc8ea8687acc7a9.js"},xJbGM3ij:(u,k,r)=>{u.exports=r.p+"3a63e353521a34152fc2861ce1368f58.js"},x33dly1X:(u,k,r)=>{u.exports=r.p+"07567125b93045706d81f17f7d04e262.js"},"8pZlAnyf":(u,k,r)=>{u.exports=r.p+"c796f1a712970e26814f7a4e5a94e6b7.js"},hwk0pWr2:(u,k,r)=>{u.exports=r.p+"35ee6515324e2b28264896ee4d2b1f5d.js"},"2U4kZlpN":(u,k,r)=>{u.exports=r.p+"f15362a7feef894b2e7f706252e6c510.js"},mjlcqYnD:(u,k,r)=>{u.exports=r.p+"2f55cddc8eb85b63ee5b4ce0e5488230.js"},rn6e7pBE:(u,k,r)=>{u.exports=r.p+"6f77d1c97d1c6937d21c4a1034be62b6.js"},"AJjf6W/g":(u,k,r)=>{u.exports=r.p+"25ea006d99bc75af0595c7b95df5ff37.js"},UCccCLnU:(u,k,r)=>{u.exports=r.p+"d0415105402964718010284fcfa8b2ea.js"},rhpP8EVh:(u,k,r)=>{u.exports=r.p+"5aa42cf05a60ed97761d3d82d6cef1d4.js"},"L+cGqZ1V":(u,k,r)=>{u.exports=r.p+"951ec8b90b81f007478a03f6f8337d29.js"},"nwPmu/td":(u,k,r)=>{u.exports=r.p+"2f25a4dc442bc9aebc58cae30c50c3e2.js"},lvzBkeUR:(u,k,r)=>{u.exports=r.p+"93b5186e225380c3e006a764ad08c7f6.js"},"0Gzsppij":(u,k,r)=>{u.exports=r.p+"3b02cca9e95276a74f3ed2bbc7a64ce6.js"},uNzvEcgn:(u,k,r)=>{u.exports=r.p+"bfaea4527da3bca61fb24aac3e553ac2.js"},"1EJU+aWM":(u,k,r)=>{u.exports=r.p+"8fa2dead80e1f4956c4c5c868ebb0b81.js"},kyP98VJA:(u,k,r)=>{u.exports=r.p+"fb08407a1b7ad7f9a2da2a7845f596c5.js"},VtIdNxE0:(u,k,r)=>{u.exports=r.p+"bf37de323316c6ae5745fc11fd576b1c.js"},ZAQ5JPiM:(u,k,r)=>{u.exports=r.p+"875ae58e8015a6d08dbc9d0c04e24638.js"},Uex2Npxn:(u,k,r)=>{u.exports=r.p+"392e4c8d74cb1c9267a14eb0270ba2d6.js"},mfm8REIr:(u,k,r)=>{u.exports=r.p+"d4f1a314cb3668f8e17f24bccf0229b6.js"},DW73ZNdX:(u,k,r)=>{u.exports=r.p+"39fea85ed7dd99d7c6c9e59b7040523f.js"},aWpClGTF:(u,k,r)=>{u.exports=r.p+"f2b310d90ac13b96c0ccb2db1f846dfd.js"},"z/N6o/OP":(u,k,r)=>{u.exports=r.p+"2611b2dc99534665bf6734ddfa6b8de4.js"},"Jnb+VSy8":(u,k,r)=>{u.exports=r.p+"cd29b6e52c3ebcbaee8c7bb709fd1d8e.js"},"tdceLf9+":(u,k,r)=>{u.exports=r.p+"0b06cbc7edf78b6f2810187262e7630b.js"},"Yc9h+Bj1":(u,k,r)=>{u.exports=r.p+"1efd17765f6c83da640fd16882fcc641.js"},UoEzaO8G:(u,k,r)=>{u.exports=r.p+"a6b8f5b8c9ce7808c5ca6baccdf1ad1e.js"},FnUhhsp9:(u,k,r)=>{u.exports=r.p+"333f5d97600469fd6c31342576009d3d.js"},"vdBj+UTT":(u,k,r)=>{u.exports=r.p+"fa0c561bb37040fc8145e5c70ea64912.js"},"+XDBpGjx":(u,k,r)=>{u.exports=r.p+"4b692785a8a6340a89e6067274a7583c.js"},"0OHzFWx2":(u,k,r)=>{u.exports=r.p+"5cab33610b8d9c1aee4db4672811cb5f.js"},r0LjiMd4:(u,k,r)=>{u.exports=r.p+"02b97d3c4a7e895228beec69fb63e420.js"},oa2CL7Ty:(u,k,r)=>{u.exports=r.p+"b1196ffa54f7b5de65e8bf68d16d915c.js"},"4zAnOYXu":(u,k,r)=>{u.exports=r.p+"92164e5d714ab4cda2b91eede29bc191.js"},B6zYianu:(u,k,r)=>{u.exports=r.p+"297aa4b0e3bca17d1e97dae92886a563.js"},"38cpf7DQ":(u,k,r)=>{u.exports=r.p+"a72ec8ab4a5bdfd6695dfa5fa86ef30d.js"},BxGqFC3q:(u,k,r)=>{u.exports=r.p+"3a3b2fef963d6c2c49c5b11b74a9ea81.js"},"7LI4Ts32":(u,k,r)=>{u.exports=r.p+"72bd55e59390d2c881f8f0d664a63e4e.js"},"8nhSMbAb":(u,k,r)=>{u.exports=r.p+"32184b16d585b5aa9536a2dddbc0563e.js"},"6dUgM1Zr":(u,k,r)=>{u.exports=r.p+"476a9395afecb6d7621d82196d29fabc.js"},a7veoO1N:(u,k,r)=>{u.exports=r.p+"9baea0d748ad2aaf25426d29e5c59450.js"},xnYUyxhA:(u,k,r)=>{u.exports=r.p+"2184bcd361a0e38d249bc49439d994cb.js"},"U88v/a4N":(u,k,r)=>{u.exports=r.p+"b992b348ffb6453e4a02a60e71c5304e.js"},nBtLFPwQ:(u,k,r)=>{u.exports=r.p+"9b80d1a12acd18c90e41ca92073122a7.js"},"3ZpVQmPU":(u,k,r)=>{u.exports=r.p+"3564e45dfb2ed064007f910db434889f.js"},"c3NLRni+":(u,k,r)=>{u.exports=r.p+"6be4a891ed749e90b31a64323297b1da.js"},A7FPrLQM:(u,k,r)=>{u.exports=r.p+"880ae94877022f7fb0458ced0825eb4c.js"},"+pplBdld":(u,k,r)=>{u.exports=r.p+"66683af3dcbdb4c22d269ea63899eb62.js"},Jx9XORFF:(u,k,r)=>{u.exports=r.p+"d6cbf7b96a23ac12616f666928ac7b07.js"},"2NzWh1T8":(u,k,r)=>{u.exports=r.p+"43139bfbcbce9de597b4985dc1e6a03b.js"},IKLzNteM:(u,k,r)=>{u.exports=r.p+"9f8309eadbf9ea7e8f65733480b71653.js"},"6LBV4Skd":(u,k,r)=>{u.exports=r.p+"4d2f57c77de95601a5e05343949e7d4b.js"},tjrvC5HF:(u,k,r)=>{u.exports=r.p+"8575dad893a0f6989fc39d6ecd712bdc.js"},ifzbWc3b:(u,k,r)=>{u.exports=r.p+"9a288b9a75234de6d962f2be79de3c43.js"},T43HcH5Q:(u,k,r)=>{u.exports=r.p+"18324d75a4d39f26b07a6e810f60287b.js"},jO7owCBw:(u,k,r)=>{u.exports=r.p+"2adc6bc4a8a2bf35636e8fc7fe0df2dd.js"},A7XLjkIa:(u,k,r)=>{u.exports=r.p+"3a993318ab66a4ef79df04ec6d2f28ab.js"},qfpkJFLL:(u,k,r)=>{u.exports=r.p+"277128dcbc226dfeb8fde9391fb24787.js"},dbSRdcXH:(u,k,r)=>{u.exports=r.p+"e0fa6a4fe8bff90d50ce812e666957ca.js"},hB0aVo9q:(u,k,r)=>{u.exports=r.p+"262f489eb59166e1215642b60446d123.js"},f251TZgC:(u,k,r)=>{u.exports=r.p+"10c464f3f882bfeeefbc0934c2ee9fbe.js"},"85DDbFxQ":(u,k,r)=>{u.exports=r.p+"19017707f34649cae551ee9d5ea1edbf.js"},xjxQRLWK:(u,k,r)=>{u.exports=r.p+"135747176621bcc94e9edd0323a81d3c.js"},"4XtUYbX+":(u,k,r)=>{u.exports=r.p+"111d9fdb9864abba36298d1a0807fe6d.js"},GqSk43mx:(u,k,r)=>{u.exports=r.p+"e604b5361c9f05dc5e715b4891af8280.js"},og2fk0HU:(u,k,r)=>{u.exports=r.p+"ac12519ccf3cc323b28f70e35f922e3f.js"},"k+3NOldZ":(u,k,r)=>{u.exports=r.p+"410ecb602443afbd5908a14f39b40eb2.js"},"1uKS6iXV":(u,k,r)=>{u.exports=r.p+"73cdbb2580cd6a02d989c86e56bb83f3.js"},iEIY3Hru:(u,k,r)=>{u.exports=r.p+"69697d4beebb76e1010b2a03260ae459.js"},qFeemwx0:(u,k,r)=>{u.exports=r.p+"0ff2dae163122c3711541819e09abea6.js"},Kjx8ge4B:(u,k,r)=>{u.exports=r.p+"a237067d2cf1a9f38281f7e715498f9e.js"},Kx9yIxRu:(u,k,r)=>{u.exports=r.p+"363d3bac8dcd9a83332c3758185ce080.js"},DOCGquBd:(u,k,r)=>{u.exports=r.p+"e33ebc3402294baa03338cbb08b30256.js"},ER9u9b1M:(u,k,r)=>{u.exports=r.p+"e9ddd2a8bbb6e05a4509f70f3086ff48.js"},acW7ylXD:(u,k,r)=>{u.exports=r.p+"18055fbaa718f70f163a11625f6e963b.js"},rMJRKCui:(u,k,r)=>{u.exports=r.p+"5df362c9904925cdf574d9506e4be76d.js"},LXNr3Rjr:(u,k,r)=>{u.exports=r.p+"5f8e9f09349e37425d6ef96bf1bf7a2d.js"},"uQ2o7+AP":(u,k,r)=>{u.exports=r.p+"b979e956b3e1542de6440aabd516b7d9.js"},hB2bTHpF:(u,k,r)=>{u.exports=r.p+"83bd353f98aa901411c82b8af58d1296.js"},"6I/9hgGm":(u,k,r)=>{u.exports=r.p+"1f8bab21ba835bddace75b9aeaf47b3d.js"},"3I1pYtSo":(u,k,r)=>{u.exports=r.p+"89984b16de05b3c8ef098797d7e782f7.js"},"zFWXND5/":(u,k,r)=>{u.exports=r.p+"1393bee9ab303eb5c9bc527509ae08f7.js"},f0sWJNAw:(u,k,r)=>{u.exports=r.p+"4d156ee0485ab4b40b090a3cd7b995a9.js"},jBYKElg0:(u,k,r)=>{u.exports=r.p+"3a6ca6958d003ae67bb7fefc8713ee93.js"},"k8ReY/GC":(u,k,r)=>{u.exports=r.p+"0078b630bed2938ce03f618c2bcd1363.js"},"S+W0LMzv":(u,k,r)=>{u.exports=r.p+"f842f60b3527dcbad3174ee39e73e6d6.js"},YN7npnVi:(u,k,r)=>{u.exports=r.p+"6e439dc81330fe0f7a822f37d4c8e1ef.js"},"g9/Fy7Qb":(u,k,r)=>{u.exports=r.p+"8e75ec0a09ca3d5615b9e4774a11aacf.js"},q8HCvlDT:(u,k,r)=>{u.exports=r.p+"f2bc6a0128525fa24a0af853b64e67ed.js"},e9gLv2fF:(u,k,r)=>{u.exports=r.p+"92aed4ffd41d68e81a525377561b168e.js"},O99hiH2L:(u,k,r)=>{u.exports=r.p+"109a021cf363699a5ca21699ebfc9ccb.js"},zerxBhGm:(u,k,r)=>{u.exports=r.p+"7bc22fd00da2d41f3843160e78464ea6.js"},zBB71ZlG:(u,k,r)=>{u.exports=r.p+"d8f7ecdd496f3caf14f5afbedfff1937.js"},tqDefkqZ:(u,k,r)=>{u.exports=r.p+"60b80bb346e2aced0aeaf00a0c0a8378.js"},"0CQ07K5/":(u,k,r)=>{u.exports=r.p+"a4e021a4b5d5d65cc87fee17c1886c3f.js"},aTn4BCgz:(u,k,r)=>{u.exports=r.p+"9279b41aaa11e4e04c3a0d1c51dd0b02.js"},gVfBnSbK:(u,k,r)=>{u.exports=r.p+"349237ad9565dc823ce7bcb7527ba7ee.js"},ksyDRdYK:(u,k,r)=>{u.exports=r.p+"622e27eec5f26148f51ccc30315a3deb.js"},jzFQeChN:(u,k,r)=>{u.exports=r.p+"a223748cd69094dd12b486353b22f479.js"},fbLPufsB:(u,k,r)=>{u.exports=r.p+"f5ee304793a3790745d63a8ae39c46cc.js"},t97H6vN0:(u,k,r)=>{u.exports=r.p+"bba393726b199f66d8b4314385c1f2f0.js"},r9xVqG9j:(u,k,r)=>{u.exports=r.p+"994847a09f1fae4b1edeae703f884bfe.js"},tWQ3v6q8:(u,k,r)=>{u.exports=r.p+"c3174a46927bbec0fbd8946f97bd7170.js"},"L62dV+xS":(u,k,r)=>{u.exports=r.p+"2ad349208b3a727abb3c9f943865a27c.js"},AHpcHqoy:(u,k,r)=>{u.exports=r.p+"d67dee4f61289dd758757e9532bd3fde.js"},HwaXRGP4:(u,k,r)=>{u.exports=r.p+"d1f0ad8ca2a550bc292669b06a614f79.js"},"ICC29/RS":(u,k,r)=>{u.exports=r.p+"c1a1f4ba29aa2d9a0b1a1abe5cfee0c6.js"},UrZJJSDg:(u,k,r)=>{u.exports=r.p+"e45a0dfd102b67ad7cdefe10500bf0d7.js"},ra9wWmmn:(u,k,r)=>{u.exports=r.p+"88f088b16e5037282d513b69c91b6c06.js"},ZxJhBjOE:(u,k,r)=>{u.exports=r.p+"de73b4d2a9ed4bcb851f9141e303636d.js"},a5kAgMv5:(u,k,r)=>{u.exports=r.p+"08d12eee2127dc573b757f69752c6704.js"},xMLYp565:(u,k,r)=>{u.exports=r.p+"674805f9ee8f8c474b4e9e6aa1412db9.js"},ZbMmDHaA:(u,k,r)=>{u.exports=r.p+"f18efe15d9a60e833596690ea0c9b0eb.js"},"Cc8Oh7q/":(u,k,r)=>{u.exports=r.p+"b943c561d9e064f79f938275bad6e597.js"},"aXLkCv/t":(u,k,r)=>{u.exports=r.p+"52fd09d1713345d9ee64dc7daea9fd6f.js"},Ido1tuI3:(u,k,r)=>{u.exports=r.p+"d1db2c4677dd2ee7a0c690c58798a013.js"},"3Sj3NUyV":(u,k,r)=>{u.exports=r.p+"6a851f05f1f4a974e02fe23eac2bad4e.js"},DZ5i5f1U:(u,k,r)=>{u.exports=r.p+"55a1830305eaf8f525aad4c04c138483.js"},renkNgmt:(u,k,r)=>{u.exports=r.p+"4f683c6881e9f8740f5516a85b9eb9da.js"},"35YlXIKK":(u,k,r)=>{u.exports=r.p+"6231f0100394f756aac18e8d972d8f2b.js"},"1ha1POeq":(u,k,r)=>{u.exports=r.p+"6fc246ab91f874961e685849ccd54ce1.js"},JUBbqfD6:(u,k,r)=>{u.exports=r.p+"4d6d9020e7e5c8d8dee7a5e374355f05.js"},"7Ei7UP9S":(u,k,r)=>{u.exports=r.p+"4430c55f023b72fb5e389cee9351b38c.js"},"1hXgZ2KH":(u,k,r)=>{u.exports=r.p+"e2cf1d3cc9aca5d1755da081660b2ea6.js"},JeTRnR2x:(u,k,r)=>{u.exports=r.p+"a496f663a8cf2dc047e12d8a80d76510.js"},"18Y+1jMM":(u,k,r)=>{u.exports=r.p+"aaf82e0e74150c537c9469d3fbdface1.js"},qXL54Iih:(u,k,r)=>{u.exports=r.p+"e92e5385dc61f177b5b0897aebea7b34.js"},"9iQIMWNB":(u,k,r)=>{u.exports=r.p+"8de1f09307a99c5a8bb0a53d32fbaaa9.js"},zUo0neL4:(u,k,r)=>{u.exports=r.p+"0a2372b159f27a54f18565b93c97e3c2.js"},"/e1vSPF2":(u,k,r)=>{u.exports=r.p+"e9382a0e67b22188c75e9418de1c9295.js"},"6/aZnvyA":(u,k,r)=>{u.exports=r.p+"df350f726187b69bcededaaed6cf5f31.js"},fkRJMx2A:(u,k,r)=>{u.exports=r.p+"b8cb123e6c753c6031ab9c6a4acbbcd6.js"},"1lmljRhv":(u,k,r)=>{u.exports=r.p+"a491785609f5c6ad3cfeca254a22b967.js"},Swf1kidR:(u,k,r)=>{u.exports=r.p+"ef5259a3bbc548bdd1bae45651c83d50.js"},LK5UGzlO:(u,k,r)=>{u.exports=r.p+"0434496fdaef6855d0d4772f52889df6.js"},"70o87fuP":(u,k,r)=>{u.exports=r.p+"764b59bdd3a89e14f88c9d63020551a1.js"},PhchXZJ4:(u,k,r)=>{u.exports=r.p+"843c762c24f7fac628d8c62519a7b308.js"},"Ox/8YB8e":(u,k,r)=>{u.exports=r.p+"0d9ac3f6468082360311da967190e45f.js"},ViwVuVD4:(u,k,r)=>{u.exports=r.p+"d566c484a79632bd0ad05f6c899bea9a.js"},JyXSqxaH:(u,k,r)=>{u.exports=r.p+"7f9a9efc9ab681fcbf6400e2adb368a9.js"},Qnp8xlCa:(u,k,r)=>{u.exports=r.p+"23602ad4c88f0f19e7a0a12454ebf556.js"},MFeE8Ubg:(u,k,r)=>{u.exports=r.p+"7f79d4bde67c8013b187889b63e25bce.js"},"qPfkj+G6":(u,k,r)=>{u.exports=r.p+"0144de97a3c256f81447e7e7135780e5.js"},YwSn71ZN:(u,k,r)=>{u.exports=r.p+"029bc2135f5e5fb160ebea8a34c99020.js"},FvrvaAlT:(u,k,r)=>{u.exports=r.p+"0f1f0f87ad7afd258956f34329de8643.js"},"MrpGrgv/":(u,k,r)=>{u.exports=r.p+"269732f4c5f6e82ea3246548a9631b47.js"},ODERIoXn:(u,k,r)=>{u.exports=r.p+"3feee6e20769581f2314934a02076628.js"},LQvOb6rD:(u,k,r)=>{u.exports=r.p+"250c230f9465d8affc02c67d41d7e067.js"},oo8TAhFW:(u,k,r)=>{u.exports=r.p+"ff9176b28afa428194276840d85679ef.js"},"9QDNpDz+":(u,k,r)=>{u.exports=r.p+"a0af54d58f59bc55427f1ca5be406875.js"},JGqJsmds:(u,k,r)=>{u.exports=r.p+"1f84401e3b920138b4fa66a038686a94.js"},"GfIQ/6f2":(u,k,r)=>{u.exports=r.p+"f59696ab0f6f26c339d7e6bb1d73a5c3.js"},"2JE4sLFy":(u,k,r)=>{u.exports=r.p+"5cd4e1282f4409600b942819b7aa4f21.js"},JDH3SgM4:(u,k,r)=>{u.exports=r.p+"0326f2213408b563877262b32f5b2568.js"},pIPxAxAd:(u,k,r)=>{u.exports=r.p+"6f7d57ab53d610b4691b0333a487e5dc.js"},ckZCfyAO:(u,k,r)=>{u.exports=r.p+"11e3a2a8fb5bcb9d19298a80cafd3f5a.js"},QUcezvII:(u,k,r)=>{u.exports=r.p+"0973bb38b2e3efd2a879fd8e81d50fce.js"},YlddMges:(u,k,r)=>{u.exports=r.p+"883d69772fb787a872f1033aa1147250.js"},dPWwJt46:(u,k,r)=>{u.exports=r.p+"c1f1988a4d4fbe58c7adba90b4303b24.js"},"3h+SEN24":(u,k,r)=>{u.exports=r.p+"4587fb1277553c9351f6f0d9e0c6f474.js"},"gb++0Fc+":(u,k,r)=>{u.exports=r.p+"19df93bf1797b4caf8232cc4b544f865.js"},aNyjj5gM:(u,k,r)=>{u.exports=r.p+"7e9ad0e666f3c158bc6d0040b6882ea6.js"},tYsmGWov:(u,k,r)=>{u.exports=r.p+"78520d1d670b05135a389d065e392695.js"},GbSTcx19:(u,k,r)=>{u.exports=r.p+"951a8cbe4efaab1b1451ffd8904fc9dd.js"},NBhZaVlm:(u,k,r)=>{u.exports=r.p+"97a433685c8b906a0e09f0b976cf044c.js"},zzmxbjKP:(u,k,r)=>{u.exports=r.p+"a58f90f6c8db84024327b4d9059c991e.js"},"Bnmy+nCP":(u,k,r)=>{u.exports=r.p+"415b219139e8fd026bcf877eaa99e3ee.js"},"Jxa/iNoA":(u,k,r)=>{u.exports=r.p+"4b0fad2cb7dae2be69865c8e74fc083a.js"},Tv6bNEE4:(u,k,r)=>{u.exports=r.p+"5e2fd3b4c0d92b8a0941397b8c387e38.js"},"6Y3683Z0":(u,k,r)=>{u.exports=r.p+"aaaa8d747cb2549e5b3a7eb239fdb13d.js"},TjgDivzz:(u,k,r)=>{u.exports=r.p+"5d312b184c1f4565f51247d3c6dbba90.js"},RXu749jF:(u,k,r)=>{u.exports=r.p+"40f9100a898e3396df73051eb7c44cb8.js"},"+cVymqkx":(u,k,r)=>{u.exports=r.p+"f08292cb173d22d289fc6d1b40fd6965.js"},"fFK5+NEN":(u,k,r)=>{u.exports=r.p+"77c629df0ebf40b066d0ffeb34b7711b.js"},"FxB/2+JT":(u,k,r)=>{u.exports=r.p+"069a0d6b093e73e820f6a60a91fa614b.js"},fAHwajrR:(u,k,r)=>{u.exports=r.p+"ff653582fa50c51a8b5f2858c2f4f66e.js"},"6oB+mmDg":(u,k,r)=>{u.exports=r.p+"fb7eb7827fa43e61a09d93f053fa818f.js"},g3lpFnIz:(u,k,r)=>{u.exports=r.p+"8db9f93698f3eea94f936fcb5986f1a3.js"},ucQEFSoR:(u,k,r)=>{u.exports=r.p+"6b884774ded27c93d9ddca7fdb365221.js"},"4D/i9pGI":(u,k,r)=>{u.exports=r.p+"4d5c4488db9b5decda2d56ccd07802bd.js"},"32q0cxGW":(u,k,r)=>{u.exports=r.p+"aefed4953ced506e20b934606ac083f3.js"},WJaCTWPp:(u,k,r)=>{u.exports=r.p+"1c24a68cb472146022d0806ea2505cfb.js"},"sEl/1uBl":(u,k,r)=>{u.exports=r.p+"0c1e757d25446799bcab87a8607dee60.js"},"+wrvkhXU":(u,k,r)=>{u.exports=r.p+"25718a469574ade47e23567d8c543169.js"},"ERc4vKV+":(u,k,r)=>{u.exports=r.p+"b934b22e8f8a8b1ba81dbc2cf058b0cd.js"},EdqEeZmT:(u,k,r)=>{u.exports=r.p+"9fd3f255cfd09016ec7f4896bc51864c.js"},"I8KfN2+S":(u,k,r)=>{u.exports=r.p+"68383037e12af078cce5420b79199ad9.js"},uOv77sKS:(u,k,r)=>{u.exports=r.p+"84abf03cc94d264bb38020b4ac5f76e1.js"},uvMcaCd5:(u,k,r)=>{u.exports=r.p+"812885b0786a1da6a2f30c2c7cb08d25.js"},Re9BkAD8:(u,k,r)=>{u.exports=r.p+"e73a9a8ff6c4f1bf50ef1a1a6c8dfabd.js"},Uu6IooP2:(u,k,r)=>{u.exports=r.p+"57e14488b13e50ebdb5fdfc7880da683.js"},"6iGNLhXk":(u,k,r)=>{u.exports=r.p+"ab237eed5fd16ab99c06f0d28d465edb.js"},"/M/zAlk8":(u,k,r)=>{u.exports=r.p+"14b15581d7409ac6e24e50cb8acfc503.js"},"WTtc/gcF":(u,k,r)=>{u.exports=r.p+"41469950e6a0ef73a57342235b44c55a.js"},j0WuOmtE:(u,k,r)=>{u.exports=r.p+"71f39fefd16025c224fe31cdb352ae01.js"},Ug9cCIUN:(u,k,r)=>{u.exports=r.p+"3f8e51a6764513f93e0483020fb0ee82.js"},x5TxmCGK:(u,k,r)=>{u.exports=r.p+"c2cf4b40917e62280f333d286b395894.js"},N8ZNXkxN:(u,k,r)=>{u.exports=r.p+"e13fc7d468ab9b5797f2a44412ca2f00.js"},"pfae/Eei":(u,k,r)=>{u.exports=r.p+"03452373324e7ceaf58e3830eafd1a28.js"},daeSfRSS:(u,k,r)=>{u.exports=r.p+"1ab96c77da77918d9160c787732c68a6.js"},fH60Iz78:(u,k,r)=>{u.exports=r.p+"da3a9dc1f8b62f2221f1040e8d207d0e.js"},avzMH6DY:(u,k,r)=>{u.exports=r.p+"b02d982ccb1011197a5a24800b178a0a.js"},R8poopDF:(u,k,r)=>{u.exports=r.p+"879d6bc1ca1dde95a9a98dc7a2ab0d06.js"},KoO7SC79:(u,k,r)=>{u.exports=r.p+"b8b6bd460e7da0ba8f3b2218327966ee.js"},"mkK3zLI/":(u,k,r)=>{u.exports=r.p+"2f055ac4066041b9008dd6aebf9df34b.js"},wL3zL9v1:(u,k,r)=>{u.exports=r.p+"d542dda7308361c34af2afb9b70d755a.js"},rwkzKgyk:(u,k,r)=>{u.exports=r.p+"a4bedde07e392f8ebf64341b61f75df2.js"},"9ttzY+gz":(u,k,r)=>{u.exports=r.p+"77aaca51c1c32acaf32656d45f4dc017.js"},l1ocPyk4:(u,k,r)=>{u.exports=r.p+"725da29f1643c2263a437c08a1454aea.js"},"9tW4ETiD":(u,k,r)=>{u.exports=r.p+"efc14cdf19554635e477781704353ec2.js"},VPmXlAtC:(u,k,r)=>{u.exports=r.p+"eaa55a522fb2cb2f0287711f42344984.js"},"+22IkjtS":(u,k,r)=>{u.exports=r.p+"b808fb222140a85b23ebbe0fffa906d9.js"},Ix16RfsA:(u,k,r)=>{u.exports=r.p+"e874d975c9128dc6eb9a513d088bed9f.js"},TwYo5Hl8:(u,k,r)=>{u.exports=r.p+"b3f1431b9e6d9e6632a93c2cd89f945b.js"},"ZM0a57+x":(u,k,r)=>{u.exports=r.p+"e7e1a807af3160b342e0a3550cf8f7c5.js"},FFZN8ltK:(u,k,r)=>{u.exports=r.p+"48e9351c5623d4da657ce7d5d0267ea6.js"},bUuKjha0:(u,k,r)=>{u.exports=r.p+"9827973b533de05b338533a0211d97d9.js"},aHnAO1KC:(u,k,r)=>{u.exports=r.p+"bb5bab7a675544fe31ddb7f4a77dffb9.js"},"62H+cJhB":(u,k,r)=>{u.exports=r.p+"a2746fc96d535b19c120d4b87dc86ef1.js"},HQZ5RQfO:(u,k,r)=>{u.exports=r.p+"23bb1a9f279e7a732bfd405350aab114.js"},GNpKOw2C:(u,k,r)=>{u.exports=r.p+"b1e349371cb9c226905c846706ad8b93.js"},"CHGUK+rS":(u,k,r)=>{u.exports=r.p+"1c57b3481f295105588972ffa1305521.js"},"9DXjooQo":(u,k,r)=>{u.exports=r.p+"87bce6f50196688852142c679227b1b9.js"},f7ar0i9a:(u,k,r)=>{u.exports=r.p+"6c67587c2093ac3a19da9f2196e040b7.js"},quN0toIM:(u,k,r)=>{u.exports=r.p+"5a496ae20cc576bef1d35972548207cf.js"},"4Jq7zhZI":(u,k,r)=>{u.exports=r.p+"5e55b301888460bd06c8e26d1011e01a.js"},a0QecoSi:(u,k,r)=>{u.exports=r.p+"003671ee2a876e7614cd94390e2255b3.js"},HqICChlB:(u,k,r)=>{u.exports=r.p+"3ea020c57c2bbf457a8497df313b2e5c.js"},eRXSCXdv:(u,k,r)=>{u.exports=r.p+"64d6924350bd7706850cdc0dcc76ccf6.js"},"f6/PBDje":(u,k,r)=>{u.exports=r.p+"b1f3f77a9279cdb38846ebe13c3438bc.js"},FHoga4ib:(u,k,r)=>{u.exports=r.p+"d5999827bd3af6b813a871de344b109a.js"},"5cYnbnRf":(u,k,r)=>{u.exports=r.p+"58598705e7012f4ca1eb1dd21d3c59a5.js"},jzm7IBMN:(u,k,r)=>{u.exports=r.p+"6a1c347ab79a93f3ac01b08c8ccfc827.js"},"mweojbV+":(u,k,r)=>{u.exports=r.p+"70074e0c785c9a808dea76c7c7d17af3.js"},q0rTpdcE:(u,k,r)=>{u.exports=r.p+"1875ecdf54e78b5f07ff1bd944cf794b.js"},vxflMTE1:(u,k,r)=>{u.exports=r.p+"8eede17ae9e4d25c3c17b8a8a7fc3c3d.js"},"sXxDtq/3":(u,k,r)=>{u.exports=r.p+"eff4371180dfac54de25ed3a0105d82f.js"},"2YX7UNCp":(u,k,r)=>{u.exports=r.p+"06d958315fc6cdbb28576b03e43203aa.js"},tL1Djyxq:(u,k,r)=>{u.exports=r.p+"c51840077c684be0e7e13339f85cd4a9.js"},mpJbAHco:(u,k,r)=>{u.exports=r.p+"c3f345c994392d97785925e790513a9f.js"},"n9LKP9/E":(u,k,r)=>{u.exports=r.p+"1495a3d68b15b8622c53f6688b64809f.js"},"1m2sEfoo":(u,k,r)=>{u.exports=r.p+"7e4099fc2d04c7c1cf96892b962ba4ec.js"},iwlqyzCK:(u,k,r)=>{u.exports=r.p+"6c0a75dc5671c3f237a79f6e45b9891c.js"},fVPrdEsl:(u,k,r)=>{u.exports=r.p+"aa5623ec68d23fedb9c9c115c7d99063.js"},"DVUpjBO+":(u,k,r)=>{u.exports=r.p+"4ef80ee74467e0297eec3cc03092da01.js"},"F+4y5Fgn":(u,k,r)=>{u.exports=r.p+"f6d7091e70dee6c74956acfef2464d08.js"},"5EHgXuiC":(u,k,r)=>{u.exports=r.p+"4bf3bc1fbdd26ac698fef1bdf26e3ff4.js"},"Q+GZV7jA":(u,k,r)=>{u.exports=r.p+"70286c33cab463fd576766adecd2d5d9.js"},Znyl7VhH:(u,k,r)=>{u.exports=r.p+"1533058f0ce13acdaa8d5bdc7d147bef.js"},kBQOhgaS:(u,k,r)=>{u.exports=r.p+"724a16861717b5b4f786d24b56b62614.js"},"Y+6GI768":(u,k,r)=>{u.exports=r.p+"03aae8272914723a7bf85b984385032c.js"},"yWVRn4+E":(u,k,r)=>{u.exports=r.p+"029ed9161a8d24a9c2ba97124020989d.js"},"NsL/wTZs":(u,k,r)=>{u.exports=r.p+"cb652f200fc3dd740b2e7f678a9272ea.js"},w864l1Pb:(u,k,r)=>{u.exports=r.p+"d43ad5f9bad9a042b49b2592c7639c28.js"},"4RUm0Btw":(u,k,r)=>{u.exports=r.p+"d78d3b050ea95b068380d975fd413fd7.js"},"80N6biu0":(u,k,r)=>{u.exports=r.p+"4d0ebf4c528cee9b0cdd3e076e06570b.js"},Pt9z2KI0:(u,k,r)=>{u.exports=r.p+"28785bea435918d49b290d27bf660baa.js"},YBt5w227:(u,k,r)=>{u.exports=r.p+"38b1d18836e38ee7b4deaeba0c35f7b8.js"},d2vnfSTC:(u,k,r)=>{u.exports=r.p+"2dd82c65030101b60dffccedd8741c6e.js"},"EbA+6fiI":(u,k,r)=>{u.exports=r.p+"47e5776dff3b80ed69ab5947dba33c76.js"},lb7Zta99:(u,k,r)=>{u.exports=r.p+"e61779df91186b23e7adf2d1968b2708.js"},"U7ttnZ+y":(u,k,r)=>{u.exports=r.p+"839e3594798c1942d3c92f9acfaa5f0b.js"},"bpU+S8ds":(u,k,r)=>{u.exports=r.p+"3567d1ea443427e944a6f189a0898819.js"},geHDKTrS:(u,k,r)=>{u.exports=r.p+"c80e89199aef31e48addb2b35ea96365.js"},mYYTEGsO:(u,k,r)=>{u.exports=r.p+"5b6a626249d0bc43e412fffa6a9ee177.js"},TyFfbAI6:(u,k,r)=>{u.exports=r.p+"fd9645aaf1f70c8abc562be41bee25fc.js"},"hdn5+28R":(u,k,r)=>{u.exports=r.p+"57f4109bd1f06be4dc2bcb8ff7eaf1e5.js"},MQtivsQd:(u,k,r)=>{u.exports=r.p+"cd9a17f94a922c7c88000b1b3cdd67df.js"},D5Oq7iSw:(u,k,r)=>{u.exports=r.p+"755114145e5b97e5571a160a39e716db.js"},"2pG9WKud":(u,k,r)=>{u.exports=r.p+"5e8a4f4320a07ae4bb1d8a5cd621d955.js"},"Fp/uWagf":(u,k,r)=>{u.exports=r.p+"e9c8f7e13e00284ce126890bf7ac46fd.js"},"6PSy53hx":(u,k,r)=>{u.exports=r.p+"e0adad8a8579bf99f3e22f7c214a5c64.js"},QOy6BMUE:(u,k,r)=>{u.exports=r.p+"3b190e5159c72fb7e27271956772bcba.js"},"MJ+l2//h":(u,k,r)=>{u.exports=r.p+"62a96977e725e8bc809dc80afe0fedf1.js"},oF3ktmsD:(u,k,r)=>{u.exports=r.p+"8a31266178067a316bb2503147cdb5cb.js"},rsSyJ3Bb:(u,k,r)=>{u.exports=r.p+"a9cb92db2399f7ac97ad55fe79fe5c20.js"},LJwNGwvY:(u,k,r)=>{u.exports=r.p+"6d38cef4a006e6cfe54a6117aba7b600.js"},HZcVkJaj:(u,k,r)=>{u.exports=r.p+"8d9bb1799d9b98db107e84f10132e17f.js"},"UhYuLL++":(u,k,r)=>{u.exports=r.p+"432aff60ba31a74d2120031fdc894775.js"},ym2WA4Q2:(u,k,r)=>{u.exports=r.p+"e2fe8f0d4fd950b20b30fabaea96b3f8.js"},z1KVGe9l:(u,k,r)=>{u.exports=r.p+"b881dca9d9a80f61d87374b4bd5a2dd5.js"},"OJ+kzoaG":(u,k,r)=>{u.exports=r.p+"ffd3b83e8b5878f4785591ff54b1dfff.js"},"0pvmR+m4":(u,k,r)=>{u.exports=r.p+"88e2feda80ac8cfb28f1dc0ec833b40d.js"},lsiLNG3s:(u,k,r)=>{u.exports=r.p+"64a5f4d62507d032038dcd76d15188e1.js"},oZGPduw5:(u,k,r)=>{u.exports=r.p+"aa0eee504d52a12d3a30bbd523afcc34.js"},"4Z/R/BWQ":(u,k,r)=>{u.exports=r.p+"cf26dd07f19bcb5b7efbf057a6cfeb8f.js"},"+vFBB9YF":(u,k,r)=>{u.exports=r.p+"cbdbd623038183a8c068dd24ecd90682.js"},VRU95B7q:(u,k,r)=>{u.exports=r.p+"0972f21af3e75388ef55435c0b3b831d.js"},TJSM1X0u:(u,k,r)=>{u.exports=r.p+"4d8cb7033879cb7fcc7a43798e2bde22.js"},kk77QZAG:(u,k,r)=>{u.exports=r.p+"58aab872dbdb5e1607076e1935130e03.js"},"1qkcMKNL":(u,k,r)=>{u.exports=r.p+"ecdb4966f685f3e44b1f28fae46827a3.js"},"bGk/KJ/4":(u,k,r)=>{u.exports=r.p+"5d3314103b00c8ea165c6f9f6757f794.js"},"J/w0U7md":(u,k,r)=>{u.exports=r.p+"9b5a6ec07bb0a2daade10189696fc399.js"},SLF9kC6o:(u,k,r)=>{u.exports=r.p+"e0c565aadda4787ba4ef4456c0a7ee29.js"},"8rVYTGy+":(u,k,r)=>{u.exports=r.p+"d5f79987405c2169278f8de37bcc9d05.js"},jFvgXyKm:(u,k,r)=>{u.exports=r.p+"de0fd4fd7c2d7a4887cbc99eed91f797.js"},"1UaaHBzV":(u,k,r)=>{u.exports=r.p+"17632e1e19e438f431784dfd77e01773.js"},TF7B40dr:(u,k,r)=>{u.exports=r.p+"663ffb67b9683a2126410325d1a5a152.js"},"zMo9kLF+":(u,k,r)=>{u.exports=r.p+"e2b38a8393be2cf23f3894ace3efb1c3.js"},oln2q6Ci:(u,k,r)=>{u.exports=r.p+"27730a0bdc6f430cc85049a46a73a029.js"},vDzPjaoq:(u,k,r)=>{u.exports=r.p+"0f147528a6f36ca40c8b3ec796429f58.js"},RB3OEA7U:(u,k,r)=>{u.exports=r.p+"15f3800d33b854ba476c9daf1b9e0326.js"},KYWm6Ntl:(u,k,r)=>{u.exports=r.p+"211511e7b374f57ad31acaf49dbdccb1.js"},KBzCcSD0:(u,k,r)=>{u.exports=r.p+"54560f13b36626237959e93b7771a484.js"},AejA2zVF:(u,k,r)=>{u.exports=r.p+"582e24f5ba929e358fadfc7be4c18025.js"},"75Oz1BzI":(u,k,r)=>{u.exports=r.p+"37ee3b5201ae2e2dc5dc8b1b20ad900e.js"},kB3MnFIw:(u,k,r)=>{u.exports=r.p+"cf3f6b1c74c72cb5d02870022dbc9f94.js"},JsrUKB33:(u,k,r)=>{u.exports=r.p+"9696a4229fb787eeb25b26f1274b75ee.js"},XjNmBj3f:(u,k,r)=>{u.exports=r.p+"cf188b3f83735389d47bb12fc9f7069a.js"},"Z6gpH3+b":(u,k,r)=>{u.exports=r.p+"ba6b8b3e06cd9d0aee9c69278ee84647.js"},"4Swr0PXn":(u,k,r)=>{u.exports=r.p+"130340e2c62b9e858f186dab5f491e55.js"},kOPWUEtO:(u,k,r)=>{u.exports=r.p+"6faa9e5f2a0122d2333fa450337a09b0.js"},BbdH3SFn:(u,k,r)=>{u.exports=r.p+"2fc0239242a898632ca8aa451cb930c2.js"},"3x8Lh6Bx":(u,k,r)=>{u.exports=r.p+"92f4aab5c66f6269c7054c8fbcb3de13.js"},"jNBVVg6+":(u,k,r)=>{u.exports=r.p+"a569591af2f834ec4b58f43ab7742186.js"},UjheMlIg:(u,k,r)=>{u.exports=r.p+"63596b4896732fb322ab0496b4be1e74.js"},mP3BBUBm:(u,k,r)=>{u.exports=r.p+"5352ecd8e5f1a2637b48e18cc406edb1.js"},UwWnJwVN:(u,k,r)=>{u.exports=r.p+"07397bd479cbc34bc04576b4f15bdf18.js"},CfKkLhJG:(u,k,r)=>{u.exports=r.p+"5fedbf948ed123687f77167fac1faf8b.js"},Cnnt4Qzs:(u,k,r)=>{u.exports=r.p+"a709bba98acec5da3ea6258e245514cb.js"},CvTSp0Ea:(u,k,r)=>{u.exports=r.p+"25eda4bb98e40a82cfd5b4bf9fbc06ec.js"},tM11O7gM:(u,k,r)=>{u.exports=r.p+"3b6e7dc98c47eeafd851ca5072db4be6.js"},"5AIwnxVo":(u,k,r)=>{u.exports=r.p+"cbdc4ca43a8c940a6c3f59a8b6f17df5.js"},m77Sr6w9:(u,k,r)=>{u.exports=r.p+"432a5982ba3ddf958381d780e1e9a8e2.js"},IFeh4wAE:(u,k,r)=>{u.exports=r.p+"3c5b59a666c5d39d9ba9cc054d36a410.js"},QfCqoDim:(u,k,r)=>{u.exports=r.p+"13eda3507db9cbfb400f46b9b3ff6553.js"},MCqmcN23:(u,k,r)=>{u.exports=r.p+"894edcaf39c3c95818e3949d737ed459.js"},I9u0rsIN:(u,k,r)=>{u.exports=r.p+"0a1d9862d917663419ac2dd2e8193267.js"},SVhT70YV:(u,k,r)=>{u.exports=r.p+"51f903c5ce5284a63196247cffb5ca40.js"},"jv+kSmqh":(u,k,r)=>{u.exports=r.p+"e4917fa7632b01d28e99304d32d989f7.js"},eXFV86Yu:(u,k,r)=>{u.exports=r.p+"2e841e8b77c2a2c00fd71940632bc1e1.js"},"0z527LnQ":(u,k,r)=>{u.exports=r.p+"805cb6232d7a9fa46025d48a43622ecf.js"},"h2pNVQt/":(u,k,r)=>{u.exports=r.p+"283970c76db99e2d0d90f0e7c45494f9.js"},"fek/LWKN":(u,k,r)=>{u.exports=r.p+"10132993df2cf9c9423b53a8a44379ab.js"},gF8eoj6y:(u,k,r)=>{u.exports=r.p+"1736cea368ae85240f34289307fdf67f.js"},"1QfXsMiP":(u,k,r)=>{u.exports=r.p+"cf9c7cbfc2b609b9ae59daeab82719c4.js"},"UV+E1cv/":(u,k,r)=>{u.exports=r.p+"119f6c45ea400e3c27e1ce172e4c881d.js"},O6p7aU4W:(u,k,r)=>{u.exports=r.p+"d5a6140d581e5c4eb200259ce372f40b.js"},"bRUnAF/a":(u,k,r)=>{u.exports=r.p+"a533e643002830be2da76c9527265860.js"},"6Iwmwzcm":(u,k,r)=>{u.exports=r.p+"83387cb17a7680f59240e7b399e3ac2b.js"},D52lSU9q:(u,k,r)=>{u.exports=r.p+"37172facd8a534a38f378ca2a9c7c11b.js"},"QP/yWmcM":(u,k,r)=>{u.exports=r.p+"02174460fe8ff6a6bc19db86543b9600.js"},"aU0zTjW+":(u,k,r)=>{u.exports=r.p+"c64d6e1e72024bb5d3d3e9bfc19d183d.js"},"z+sG+m9R":(u,k,r)=>{u.exports=r.p+"54a10f3bddad1e6da452fee7124fe846.js"},ZqZC7z1w:(u,k,r)=>{u.exports=r.p+"24a3ff38afde257888d755ece9bfd704.js"},YmKoDjGb:(u,k,r)=>{u.exports=r.p+"078dd0bd08c93b1512e3d1b777591b21.js"},"3Envl7e5":(u,k,r)=>{u.exports=r.p+"170487867de05784a96608617bdd544d.js"},uAwHhJA0:(u,k,r)=>{u.exports=r.p+"5861dfe4f2c7823623e82d0619c5bf06.js"},rm6KlgYn:(u,k,r)=>{u.exports=r.p+"2272c6632c52c3e402ab27b8045ab8f1.js"},"jF7/ZxWj":(u,k,r)=>{u.exports=r.p+"03980cb12dacd26148c22bb61fce440f.js"},"+pcpY34R":(u,k,r)=>{u.exports=r.p+"58c35e5c73bbc1664bbd67c570342aa0.js"},"+Sh2jr7a":(u,k,r)=>{u.exports=r.p+"fd5bc50b18c9f46380cbe5ec1ac2127b.js"},ScJRDELP:(u,k,r)=>{u.exports=r.p+"714763ddd9bd466c95df7b042900bb87.js"},mSTUYor1:(u,k,r)=>{u.exports=r.p+"4e389cce6fb8f78845fab249bce43c0b.js"},v7rSSl9w:(u,k,r)=>{u.exports=r.p+"17dc98279d24649d3ca77cbce8c44e83.js"},"LxddSaE/":(u,k,r)=>{u.exports=r.p+"a1c8660c5bcc6b6a43a7fb3c351174d9.js"},kQtSEHci:(u,k,r)=>{u.exports=r.p+"a4d638b976f02f35740be031f996e088.js"},J35dLvJS:(u,k,r)=>{u.exports=r.p+"b306285dfd802d091e788de0f96b8cb2.js"},Bktld38o:(u,k,r)=>{u.exports=r.p+"ddbc961769cd2ff4d4a7a136168ebf4c.js"},"1eR3yPY9":(u,k,r)=>{u.exports=r.p+"3b544bb2c5a4e7b225a4b50235a0fd6d.js"},ETD6YXbz:(u,k,r)=>{u.exports=r.p+"1034e3807d1bcf55cb564491950237ab.js"},qulDqPVm:(u,k,r)=>{u.exports=r.p+"d83cda12aee0c87c8b381a1234bf7798.js"},lU3lB3wM:(u,k,r)=>{u.exports=r.p+"9ed8c3550b5c3c1e878d0692f0338cb7.js"},GpgPF75P:(u,k,r)=>{u.exports=r.p+"5f3ce6efab3c679ec1ad25ab0b3f6b2f.js"},YLJRKGC4:(u,k,r)=>{u.exports=r.p+"db8ca5cfb6fe4aaef215f116f6991784.js"},lKjzvxeB:(u,k,r)=>{u.exports=r.p+"53e3600928916423671f3388e2d67844.js"},RHqzr0C5:(u,k,r)=>{u.exports=r.p+"dc8240db39815020378555a4d80571c3.js"},gb0wGXRJ:(u,k,r)=>{u.exports=r.p+"1b15b9f88acaf59b96e59c6b5f32da12.js"},UGhpNUV7:(u,k,r)=>{u.exports=r.p+"894052ca1f8f35cc1cf7cfb29ef75027.js"},tEDOir3w:(u,k,r)=>{u.exports=r.p+"191feb6103c36b202bc01ba262916cdf.js"},IaEbG2fr:(u,k,r)=>{u.exports=r.p+"33b4e371d4983ab56f4db08627119f0b.js"},MYgphJSY:(u,k,r)=>{u.exports=r.p+"b1170472ae4b50e3b0070eb991e502fe.js"},LcpOkFT0:(u,k,r)=>{u.exports=r.p+"9807cf1e443a7440371904b6525f37eb.js"},cfKVxEYA:(u,k,r)=>{u.exports=r.p+"9b1fd9cf4206cc32e84150c49707d811.js"},VwotmSiH:(u,k,r)=>{u.exports=r.p+"d7d616d4aa8fd3f51d681242853dcde9.js"},UrJcLpIP:(u,k,r)=>{u.exports=r.p+"e6ad50b520736b595970c9e07029c3f1.js"},U3DmOV7V:(u,k,r)=>{u.exports=r.p+"49582665262ff6179b9f3a98adf7ed5c.js"},ILy0aeUd:(u,k,r)=>{u.exports=r.p+"7080d2a1db1608264a6d9d9fbaf2cce8.js"},dkLyTquH:(u,k,r)=>{u.exports=r.p+"ef87482c92662e8b69a21f47588474ea.js"},FEbWfF1p:(u,k,r)=>{u.exports=r.p+"f326f2f263b1498fedbe1d07d7254d10.js"},"/d8TsqnF":(u,k,r)=>{u.exports=r.p+"962969a46fefcace3305abd4d6e14a2e.js"},iAXyYMup:(u,k,r)=>{u.exports=r.p+"b33ef9b4202539d3690251cb8213a034.js"},Ok5IuIq0:(u,k,r)=>{u.exports=r.p+"80ddbf4f0fdde4ddba57130e61043017.js"},"emj+QL9a":(u,k,r)=>{u.exports=r.p+"8ed58ed9c7e1cb1ae1f2830d29011ffb.js"},elwTtddw:(u,k,r)=>{u.exports=r.p+"c4e58637b4d14c303e29d3ce4b4a210f.js"},OXv0shTU:(u,k,r)=>{u.exports=r.p+"59cc05504a1c823b6d4796bf6b430822.js"},"4wnvWGf6":(u,k,r)=>{u.exports=r.p+"b20cd9acf45420fcacfd923754185663.js"},"+BTHcvgl":(u,k,r)=>{u.exports=r.p+"cb4bb785934eeca9b408e892ae6b73b7.js"},xmSxIYqH:(u,k,r)=>{u.exports=r.p+"8ed5aba33ead1f94e97d5c35a5e93434.js"},yoZaq5uj:(u,k,r)=>{u.exports=r.p+"019e34e85139cfc611bf23efa096c980.js"},tmhJoAAK:(u,k,r)=>{u.exports=r.p+"0bd45b2d490c48c31619072a4fb0eaea.js"},P0rO7dFF:(u,k,r)=>{u.exports=r.p+"6b4b87a54f673cfbb82be45329441bef.js"},WKq0JVTV:(u,k,r)=>{u.exports=r.p+"328cbf598e9711b0a87c19437b02f80d.js"},gebro2ae:(u,k,r)=>{u.exports=r.p+"be75b76e74c78535966ec8aaa7d46bec.js"},B79XD7BN:(u,k,r)=>{u.exports=r.p+"9920e03a65566d728a73c7bf18bc5741.js"},eerP0c9R:(u,k,r)=>{u.exports=r.p+"ee5d36473f84db2af26d82efd69a38ec.js"},fX2CCpgB:(u,k,r)=>{u.exports=r.p+"d4f5981ee5a73d8a6e19112f2ffcb72c.js"},"Aq/ZgnTZ":(u,k,r)=>{u.exports=r.p+"cf909ad6e321c2f98750f5c3581556f8.js"},"/XtRmhWK":(u,k,r)=>{u.exports=r.p+"a52f9ac0e3d582ed7e488aa1dfc33eda.js"},TFzPRioG:(u,k,r)=>{u.exports=r.p+"1ff1389501159e4846a5133e3b8992d8.js"},SVJYoKL8:(u,k,r)=>{u.exports=r.p+"6250c7594cd66ca91184b5beca293e06.js"},nXOQeV4Z:(u,k,r)=>{u.exports=r.p+"0fa30731c46fe8b6a54f9752ad0ed7e0.js"},BJQCDW1R:(u,k,r)=>{u.exports=r.p+"ecff3d4bbf59ef41230960af46098e74.js"},EJoBxNsy:(u,k,r)=>{u.exports=r.p+"983fccb9f00748c487e889f6c83aa367.js"},EwaiLkEa:(u,k,r)=>{u.exports=r.p+"8a5127228870aafabfff6111d29313d6.js"},"eEeRjWa/":(u,k,r)=>{u.exports=r.p+"91beb08737a1bbf071f351fb0acdbf3c.js"},sYODkuO0:(u,k,r)=>{u.exports=r.p+"bd309bb3f23f2bfbcf914f2e71474ab5.js"},vZAEjrJT:(u,k,r)=>{u.exports=r.p+"9b4de1346c73ba258736f1a3f00fdc14.js"},cF6TgmNW:(u,k,r)=>{u.exports=r.p+"fe9499c0a5444f7f42843fa00fb355cb.js"},Giwik73q:(u,k,r)=>{u.exports=r.p+"3eefbe1c009cfd730b2ca6f834367c45.js"},aV5DfSVM:(u,k,r)=>{u.exports=r.p+"4bee3a46b8378a7b4ef84492f08abd22.js"},jYitPRcW:(u,k,r)=>{u.exports=r.p+"ab0128ab12bcb8729032421b40f5f8dd.js"},imOooRGd:(u,k,r)=>{u.exports=r.p+"5cebfc2c3495b6294dcb2a99e5174872.js"},lAmtsMtR:(u,k,r)=>{u.exports=r.p+"6490772da5aecc6cb9e4c625abc74a96.js"},pPTZJEyo:(u,k,r)=>{u.exports=r.p+"3ac8c7749734990e2d9f81eeca219886.js"},hkfqmcAE:(u,k,r)=>{u.exports=r.p+"cc65d108f0e7cfb200de1d0bcf115005.js"},"KymL/b/P":(u,k,r)=>{u.exports=r.p+"2d2a75e3d01a74b93d07db04df8abe5e.js"},ImGU7Dwg:(u,k,r)=>{u.exports=r.p+"90f3dc3c18d447104b63c156cb7fddb5.js"},qqYq0T6o:(u,k,r)=>{u.exports=r.p+"fd3859a700b456e06c65c0cf6b0af05c.js"},fi19NwwW:(u,k,r)=>{u.exports=r.p+"fc8cc8286fcd92801f75600fd4e56386.js"},"mVS2+Ljt":(u,k,r)=>{u.exports=r.p+"eb0b62e1895dcf7491419aa728f00c38.js"},"3Rg56MLJ":(u,k,r)=>{u.exports=r.p+"79241f85b016a7332f85bb66667459c2.js"},gBc1U5bM:(u,k,r)=>{u.exports=r.p+"8f9ce72eeabbf31f2d51f4bcfc66d3b0.js"},h88GZDrT:(u,k,r)=>{u.exports=r.p+"da740c1b29a85b999a6874b59a1baeef.js"},"16x1tHha":(u,k,r)=>{u.exports=r.p+"2a8394955e047270a2a965ec67843989.js"},o8LJyLyl:(u,k,r)=>{u.exports=r.p+"6bed1b724e74e6bc80688f42bc824d70.js"},Q6GAibrw:(u,k,r)=>{u.exports=r.p+"1ce14f2cad9f3c122cb5ccfcd485ffb4.js"},"4p0wNy7i":(u,k,r)=>{u.exports=r.p+"42e0ea6351d45d342caab13cb12f9ea4.js"},IZ70iZ0u:(u,k,r)=>{u.exports=r.p+"ee41eb1fd1d1c87c45e818b5a8a65cf8.js"},Vb3XmqvT:(u,k,r)=>{u.exports=r.p+"dc932cde2fbfca8e2901fb693968b131.js"},ayYeMdgY:(u,k,r)=>{u.exports=r.p+"1d3796180f854b5d8ab435ab0a1c2c11.js"},xyO5YCED:(u,k,r)=>{u.exports=r.p+"678f5201c1917429f334b88078ca4174.js"},TlRWyvXi:(u,k,r)=>{u.exports=r.p+"b6d824665e9951e20f93c672f25c6158.js"},AgNSGgUO:(u,k,r)=>{u.exports=r.p+"9081e7011816127d89e667e132700c7b.js"},"p6z1qn/X":(u,k,r)=>{u.exports=r.p+"5455bc3c74e053ffe3a7730e257d56a9.js"},o5o1SmPz:(u,k,r)=>{u.exports=r.p+"105e660d58520543e6f823ad79a30b02.js"},"d/0fwyfJ":(u,k,r)=>{u.exports=r.p+"2bfd6c341295dc99307994c3158dd60c.js"},O2yNmyhK:(u,k,r)=>{u.exports=r.p+"d204a2341f384191e26189fd722874e8.js"},"+ddR406Z":(u,k,r)=>{u.exports=r.p+"c224886a075dcbcf9433ec9416f08206.js"},TN72gHNo:(u,k,r)=>{u.exports=r.p+"172942aab07ba5abf09dc49028a259d0.js"},"7VOegq9A":(u,k,r)=>{u.exports=r.p+"657d0a0c1e239d521abb0a46512d7de0.js"},"0yBpymYr":(u,k,r)=>{u.exports=r.p+"a8f6085c334236b91aae071920b2f0e4.js"},FMgyeogS:(u,k,r)=>{u.exports=r.p+"4ec6860a76652083d0888330d5581148.js"},bwRPCuF2:(u,k,r)=>{var I="Expected a function",T="__lodash_hash_undefined__",_=1/0,b="[object Function]",C="[object GeneratorFunction]",y="[object Symbol]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,s=/^\./,i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/[\\^$.*+?()[\]{}|]/g,e=/\\(\\)?/g,t=/^\[object .+?Constructor\]$/,o=typeof r.g=="object"&&r.g&&r.g.Object===Object&&r.g,l=typeof self=="object"&&self&&self.Object===Object&&self,h=o||l||Function("return this")();function f(G,X){return G==null?void 0:G[X]}function $(G){var X=!1;if(G!=null&&typeof G.toString!="function")try{X=!!(G+"")}catch{}return X}var m=Array.prototype,M=Function.prototype,S=Object.prototype,p=h["__core-js_shared__"],v=function(){var G=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||"");return G?"Symbol(src)_1."+G:""}(),A=M.toString,R=S.hasOwnProperty,w=S.toString,x=RegExp("^"+A.call(R).replace(n,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),g=h.Symbol,d=m.splice,L=Ie(h,"Map"),E=Ie(Object,"create"),O=g?g.prototype:void 0,D=O?O.toString:void 0;function U(G){var X=-1,se=G?G.length:0;for(this.clear();++X-1}function ee(G,X){var se=this.__data__,ve=pe(se,G);return ve<0?se.push([G,X]):se[ve][1]=X,this}W.prototype.clear=Y,W.prototype.delete=Z,W.prototype.get=q,W.prototype.has=Q,W.prototype.set=ee;function te(G){var X=-1,se=G?G.length:0;for(this.clear();++X{u=r.nmd(u);var I=200,T="__lodash_hash_undefined__",_=1,b=2,C=9007199254740991,y="[object Arguments]",a="[object Array]",c="[object AsyncFunction]",s="[object Boolean]",i="[object Date]",n="[object Error]",e="[object Function]",t="[object GeneratorFunction]",o="[object Map]",l="[object Number]",h="[object Null]",f="[object Object]",$="[object Promise]",m="[object Proxy]",M="[object RegExp]",S="[object Set]",p="[object String]",v="[object Symbol]",A="[object Undefined]",R="[object WeakMap]",w="[object ArrayBuffer]",x="[object DataView]",g="[object Float32Array]",d="[object Float64Array]",L="[object Int8Array]",E="[object Int16Array]",O="[object Int32Array]",D="[object Uint8Array]",U="[object Uint8ClampedArray]",B="[object Uint16Array]",j="[object Uint32Array]",P=/[\\^$.*+?()[\]{}|]/g,H=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,W={};W[g]=W[d]=W[L]=W[E]=W[O]=W[D]=W[U]=W[B]=W[j]=!0,W[y]=W[a]=W[w]=W[s]=W[x]=W[i]=W[n]=W[e]=W[o]=W[l]=W[f]=W[M]=W[S]=W[p]=W[R]=!1;var Y=typeof r.g=="object"&&r.g&&r.g.Object===Object&&r.g,Z=typeof self=="object"&&self&&self.Object===Object&&self,q=Y||Z||Function("return this")(),Q=k&&!k.nodeType&&k,ee=Q&&!0&&u&&!u.nodeType&&u,te=ee&&ee.exports===Q,J=te&&Y.process,le=function(){try{return J&&J.binding&&J.binding("util")}catch{}}(),ue=le&&le.isTypedArray;function fe(F,N){for(var K=-1,ne=F==null?0:F.length,xe=0,ce=[];++K-1}function jt(F,N){var K=this.__data__,ne=rt(K,F);return ne<0?(++this.size,K.push([F,N])):K[ne][1]=N,this}Ne.prototype.clear=Ot,Ne.prototype.delete=Dt,Ne.prototype.get=Ut,Ne.prototype.has=Ft,Ne.prototype.set=jt;function Ke(F){var N=-1,K=F==null?0:F.length;for(this.clear();++NAe))return!1;var Se=ce.get(F);if(Se&&ce.get(N))return Se==N;var Re=-1,je=!0,ke=K&b?new it:void 0;for(ce.set(F,N),ce.set(N,F);++Re-1&&F%1==0&&F-1&&F%1==0&&F<=C}function xt(F){var N=typeof F;return F!=null&&(N=="object"||N=="function")}function nt(F){return F!=null&&typeof F=="object"}var St=ue?_e(ue):tn;function mn(F){return pn(F)?Qt(F):nn(F)}function vn(){return[]}function bn(){return!1}u.exports=gn},"zp7/X3rr":function(u,k,r){"use strict";var I=this&&this.__extends||function(){var i=function(n,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(t[l]=o[l])},i(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),T=this&&this.__assign||function(){return T=Object.assign||function(i){for(var n,e=1,t=arguments.length;e0&&this.handleMarkers(O);var j=this.editor.$options;a.editorOptions.forEach(function(P){j.hasOwnProperty(P)?e.editor.setOption(P,e.props[P]):e.props[P]&&console.warn("ReactAce: editor option ".concat(P," 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(L)&&L.forEach(function(P){typeof P.exec=="string"?e.editor.commands.bindKey(P.bindKey,P.exec):e.editor.commands.addCommand(P)}),g&&this.editor.setKeyboardHandler("ace/keyboard/"+g),o&&(this.refEditor.className+=" "+o),d&&d(this.editor),this.editor.resize(),$&&this.editor.focus()},n.prototype.componentDidUpdate=function(e){for(var t=e,o=this.props,l=0;l{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.getAceInstance=k.debounce=k.editorEvents=k.editorOptions=void 0;var I=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];k.editorOptions=I;var T=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];k.editorEvents=T;var _=function(){var C;return typeof window>"u"?(r.g.window={},C=r("DcW8hC3D"),delete r.g.window):window.ace?(C=window.ace,C.acequire=window.ace.require||window.ace.acequire):C=r("DcW8hC3D"),C};k.getAceInstance=_;var b=function(C,y){var a=null;return function(){var c=this,s=arguments;clearTimeout(a),a=setTimeout(function(){C.apply(c,s)},y)}};k.debounce=b},M41Hih61:(u,k,r)=>{"use strict";var I;I={value:!0},I=I=void 0;var T=r("zp7/X3rr"),_=r("/RP92CQA");I=_.default;var b=r("zJCIirni");I=b.default,k.ZP=T.default},zJCIirni:function(u,k,r){"use strict";var I=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)Object.prototype.hasOwnProperty.call(h,f)&&(l[f]=h[f])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function l(){this.constructor=t}t.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}}(),T=this&&this.__assign||function(){return T=Object.assign||function(e){for(var t,o=1,l=arguments.length;o0&&o.handleMarkers(te,W);for(var Z=0;Z<_.editorOptions.length;Z++){var J=_.editorOptions[Z];H.hasOwnProperty(J)?W.setOption(J,o.props[J]):o.props[J]&&console.warn("ReaceAce: editor option ".concat(J," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}o.handleOptions(o.props,W),Array.isArray(O)&&O.forEach(function(le){typeof le.exec=="string"?W.commands.bindKey(le.bindKey,le.exec):W.commands.addCommand(le)}),L&&W.setKeyboardHandler("ace/keyboard/"+L)}),h&&(this.refEditor.className+=" "+h),m&&this.splitEditor.focus();var z=this.editor.env.split;z.setOrientation(this.props.orientation==="below"?z.BELOW:z.BESIDE),z.resize(!0),E&&E(z)},t.prototype.componentDidUpdate=function(o){var l=this,h=o,f=this.props,$=this.editor.env.split;if(f.splits!==h.splits&&$.setSplits(f.splits),f.orientation!==h.orientation&&$.setOrientation(f.orientation==="below"?$.BELOW:$.BESIDE),$.forEach(function(p,v){f.mode!==h.mode&&p.getSession().setMode("ace/mode/"+f.mode),f.keyboardHandler!==h.keyboardHandler&&(f.keyboardHandler?p.setKeyboardHandler("ace/keyboard/"+f.keyboardHandler):p.setKeyboardHandler(null)),f.fontSize!==h.fontSize&&p.setFontSize(f.fontSize),f.wrapEnabled!==h.wrapEnabled&&p.getSession().setUseWrapMode(f.wrapEnabled),f.showPrintMargin!==h.showPrintMargin&&p.setShowPrintMargin(f.showPrintMargin),f.showGutter!==h.showGutter&&p.renderer.setShowGutter(f.showGutter);for(var A=0;A<_.editorOptions.length;A++){var R=_.editorOptions[A];f[R]!==h[R]&&p.setOption(R,f[R])}s(f.setOptions,h.setOptions)||l.handleOptions(f,p);var w=i(f.value,v,"");if(p.getValue()!==w){l.silent=!0;var x=p.session.selection.toJSON();p.setValue(w,f.cursorStart),p.session.selection.fromJSON(x),l.silent=!1}var g=i(f.annotations,v,[]),d=i(h.annotations,v,[]);s(g,d)||p.getSession().setAnnotations(g);var L=i(f.markers,v,[]),E=i(h.markers,v,[]);!s(L,E)&&Array.isArray(L)&&l.handleMarkers(L,p)}),f.className!==h.className){var m=this.refEditor.className,M=m.trim().split(" "),S=h.className.trim().split(" ");S.forEach(function(p){var v=M.indexOf(p);M.splice(v,1)}),this.refEditor.className=" "+f.className+" "+M.join(" ")}f.theme!==h.theme&&$.setTheme("ace/theme/"+f.theme),f.focus&&!h.focus&&this.splitEditor.focus(),(f.height!==this.props.height||f.width!==this.props.width)&&this.editor.resize()},t.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},t.prototype.onChange=function(o){if(this.props.onChange&&!this.silent){var l=[];this.editor.env.split.forEach(function(h){l.push(h.getValue())}),this.props.onChange(l,o)}},t.prototype.onSelectionChange=function(o){if(this.props.onSelectionChange){var l=[];this.editor.env.split.forEach(function(h){l.push(h.getSelection())}),this.props.onSelectionChange(l,o)}},t.prototype.onCursorChange=function(o){if(this.props.onCursorChange){var l=[];this.editor.env.split.forEach(function(h){l.push(h.getSelection())}),this.props.onCursorChange(l,o)}},t.prototype.onFocus=function(o){this.props.onFocus&&this.props.onFocus(o)},t.prototype.onInput=function(o){this.props.onInput&&this.props.onInput(o)},t.prototype.onBlur=function(o){this.props.onBlur&&this.props.onBlur(o)},t.prototype.onCopy=function(o){this.props.onCopy&&this.props.onCopy(o)},t.prototype.onPaste=function(o){this.props.onPaste&&this.props.onPaste(o)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(o,l){for(var h=Object.keys(o.setOptions),f=0;f