/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of Ajax.org B.V. nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * ***** END LICENSE BLOCK ***** */
!function(){function e(e){var t=n;e&&(n||(n={}),t=n),t.define&&t.define.packaged||(i.original=t.define,t.define=i,t.define.packaged=!0),t.require&&t.require.packaged||(r.original=t.require,t.require=r,t.require.packaged=!0)}var t=“ace”,n=function(){return this}();if(n||“undefined”==typeof window||(n=window),t||“undefined”==typeof requirejs){var i=function(e,t,n){“string”==typeof e?(2==arguments.length&&(n=t),i.modules||(i.payloads=n,i.modules=null)):i.original?i.original.apply(this,arguments):(console.error(“dropping module because define wasn’t a string.”),console.trace())};i.modules={},i.payloads={};var o=function(e,t,n){if(“string”==typeof t){var i=a(e,t);if(null!=i)return n&&n(),i}else if(“[object Array]”===Object.prototype.toString.call(t)){for(var o=[],s=0,l=t.length;s<l;++s){var c=a(e,t);if(null==c&&r.original)return;o.push©}return n&&n.apply(null,o)||!0}},r=function(e,t){var n=o(“”,e,t);return null==n&&r.original?r.original.apply(this,arguments):n},s=function(e,t){if(-1!==t.indexOf(“!”)){var n=t.split(“!”);return s(e,n)+“!”+s(e,n)}if(“.”==t.charAt(0))for(t=e.split(“/”).slice(0,-1).join(“/”)+“/”+t;-1!==t.indexOf(“.”)&&i!=t;){var i=t;t=t.replace(//.//,“/”).replace(/+/..//,“”)}return t},a=function(e,t){t=s(e,t);var n=i.modules;if(!n){if(“function”==typeof(n=i.payloads)){var r={},a={id:t,uri:“”,exports:r,packaged:!0},l=function(e,n){return o(t,e,n)};r=n(l,r,a)||a.exports,i.modules=r,delete i.payloads}n=i.modules=r||n}return n};e(t)}}(),ace.define(“ace/lib/es6-shim”,,(function(){function e(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||e(String.prototype,“startsWith”,(function(e,t){return t=t||0,this.lastIndexOf(e,t)===t})),String.prototype.endsWith||e(String.prototype,“endsWith”,(function(e,t){var n=this;(void 0===t||t>n.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return-1!==i&&i===t})),String.prototype.repeat||e(String.prototype,“repeat”,(function(e){for(var t=“”,n=this;e>0;)1&e&&(t+=n),(e>>=1)&&(n+=n);return t})),String.prototype.includes||e(String.prototype,“includes”,(function(e,t){return-1!=this.indexOf(e,t)})),Object.assign||(Object.assign=function(e){if(null==e)throw new TypeError(“Cannot convert undefined or null to object”);for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments;null!=i&&Object.keys(i).forEach((function(e){t=i}))}return t}),Object.values||(Object.values=function(e){return Object.keys(e).map((function(t){return e}))}),Array.prototype.find||e(Array.prototype,“find”,(function(e){for(var t=this.length,n=arguments,i=0;i<t;i++){var o=this;if(e.call(n,o,i,this))return o}})),Array.prototype.findIndex||e(Array.prototype,“findIndex”,(function(e){for(var t=this.length,n=arguments,i=0;i<t;i++){var o=this;if(e.call(n,o,i,this))return i}})),Array.prototype.includes||e(Array.prototype,“includes”,(function(e,t){return-1!=this.indexOf(e,t)})),Array.prototype.fill||e(Array.prototype,“fill”,(function(e){for(var t=this,n=t.length>>>0,i=arguments|0,o=i<0?Math.max(n+i,0):Math.min(i,n),r=arguments,s=void 0===r?n:r|0,a=s<0?Math.max(n+s,0):Math.min(s,n);o<a;)t=e,o++;return t})),Array.of||e(Array,“of”,(function(){return Array.prototype.slice.call(arguments)}))})),ace.define(“ace/lib/fixoldbrowsers”,,(function(e){“use strict”;e(“./es6-shim”)})),ace.define(“ace/lib/deep_copy”,,(function(e,t){t.deepCopy=function e(t){if(“object”!=typeof t||!t)return t;var n;if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n=e(t);return n}if(“[object Object]”!==Object.prototype.toString.call(t))return t;for(var i in n={},t)n=e(t);return n}})),ace.define(“ace/lib/lang”,,(function(e,t){“use strict”;t.last=function(e){return e},t.stringReverse=function(e){return e.split(“”).reverse().join(“”)},t.stringRepeat=function(e,t){for(var n=“”;t>0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var n=/^ss*/,i=/ss*$/;t.stringTrimLeft=function(e){return e.replace(n,“”)},t.stringTrimRight=function(e){return e.replace(i,“”)},t.copyObject=function(e){var t={};for(var n in e)t=e;return t},t.copyArray=function(e){for(var t=[],n=0,i=e.length;n<i;n++)e&&“object”==typeof e?t=this.copyObject(e):t=e;return t},t.deepCopy=e(“./deep_copy”).deepCopy,t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t=e;return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|/\])/g,“\$1”)},t.escapeHTML=function(e){return(“”+e).replace(/&/g,“&”).replace(/“/g,”"“).replace(/‘/g,”'“).replace(/</g,”<“)},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,(function(e){n.push({offset:arguments,length:e.length})})),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},i=function(e){return i.cancel(),t=setTimeout(n,e||0),i};return i.schedule=i,i.call=function(){return this.cancel(),e(),i},i.cancel=function(){return clearTimeout(t),t=null,i},i.isPending=function(){return t},i},t.delayedCall=function(e,t){var n=null,i=function(){n=null,e()},o=function(e){null==n&&(n=setTimeout(i,e||t))};return o.delay=function(e){n&&clearTimeout(n),n=setTimeout(i,e||t)},o.schedule=o,o.call=function(){this.cancel(),e()},o.cancel=function(){n&&clearTimeout(n),n=null},o.isPending=function(){return n},o},t.supportsLookbehind=function(){try{new RegExp(”(?<=.)“)}catch(e){return!1}return!0},t.skipEmptyMatch=function(e,t,n){return n&&e.codePointAt(t)>65535?2:1}})),ace.define(”ace/lib/useragent“,,(function(e,t){”use strict“;t.OS={LINUX:”LINUX“,MAC:”MAC“,WINDOWS:”WINDOWS“},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS};var n=”object“==typeof navigator?navigator:{},i=(/mac|win|linux/i.exec(n.platform)||)[0].toLowerCase(),o=n.userAgent||”“,r=n.appName||”“;t.isWin=”win“==i,t.isMac=”mac“==i,t.isLinux=”linux“==i,t.isIE=”Microsoft Internet Explorer“==r||r.indexOf(”MSAppHost“)>=0?parseFloat((o.match(/(?:MSIE |Trident/+[.0-9]+;.*rv:)(+[.0-9]+)/)||[])):parseFloat((o.match(/(?:Trident/+[.0-9]+;.*rv:)(+[.0-9]+)/)||[])),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=o.match(/ Gecko/d+/),t.isOpera=”object“==typeof opera&&”[object Opera]“==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(o.split(”WebKit/“))||void 0,t.isChrome=parseFloat(o.split(” Chrome/“))||void 0,t.isSafari=parseFloat(o.split(” Safari/“))&&!t.isChrome||void 0,t.isEdge=parseFloat(o.split(” Edge/“))||void 0,t.isAIR=o.indexOf(”AdobeAIR“)>=0,t.isAndroid=o.indexOf(”Android“)>=0,t.isChromeOS=o.indexOf(” CrOS “)>=0,t.isIOS=/iPad|iPhone|iPod/.test(o)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid})),ace.define(”ace/lib/dom“,,(function(e,t){”use strict“;function n(){var e=a;a=null,e&&e.forEach((function(e){i(e,e)}))}function i(e,i,r){if(”undefined“!=typeof document){if(a)if®n();else if(!1===r)return a.push();if(!o){var s=r;r&&r.getRootNode&&(s=r.getRootNode())&&s!=r||(s=document);var l=s.ownerDocument||s;if(i&&t.hasCssString(i,s))return null;i&&(e+=”n/*# sourceURL=ace/css/“i
” */“);var c=t.createElement(”style“);c.appendChild(l.createTextNode(e)),i&&(c.id=i),s==l&&(s=t.getDocumentHead(l)),s.insertBefore(c,s.firstChild)}}}var o,r=e(”./useragent“),s=”www.w3.org/1999/xhtml“;t.buildDom=function e(t,n,i){if(”string“==typeof t&&t){var o=document.createTextNode(t);return n&&n.appendChild(o),o}if(!Array.isArray(t))return t&&t.appendChild&&n&&n.appendChild(t),t;if(”string“!=typeof t||!t){for(var r=[],s=0;s<t.length;s++){var a=e(t,n,i);a&&r.push(a)}return r}var l=document.createElement(t),c=t,h=1;c&&”object“==typeof c&&!Array.isArray©&&(h=2);for(s=h;s<t.length;s++)e(t,l,i);return 2==h&&Object.keys©.forEach((function(e){var t=c;”class“===e?l.className=Array.isArray(t)?t.join(” “):t:”function“==typeof t||”value“==e||”$“==e?l=t:”ref“===e?i&&(i=l):”style“===e?”string“==typeof t&&(l.style.cssText=t):null!=t&&l.setAttribute(e,t)})),n&&n.appendChild(l),l},t.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName(”head“)||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||s,e):document.createElement(e)},t.removeChildren=function(e){e.innerHTML=”“},t.createTextNode=function(e,t){return(t?t.ownerDocument:document).createTextNode(e)},t.createFragment=function(e){return(e?e.ownerDocument:document).createDocumentFragment()},t.hasCssClass=function(e,t){return-1!==(e.className+”“).split(/s+/g).indexOf(t)},t.addCssClass=function(e,n){t.hasCssClass(e,n)||(e.className+=” “+n)},t.removeCssClass=function(e,t){for(var n=e.className.split(/s+/g);;){var i=n.indexOf(t);if(-1==i)break;n.splice(i,1)}e.className=n.join(” “)},t.toggleCssClass=function(e,t){for(var n=e.className.split(/s+/g),i=!0;;){var o=n.indexOf(t);if(-1==o)break;i=!1,n.splice(o,1)}return i&&n.push(t),e.className=n.join(” “),i},t.setCssClass=function(e,n,i){i?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n,i=0;if(n=(t=t||document).querySelectorAll(”style“))for(;i<n.length;)if(n.id===e)return!0},t.removeElementById=function(e,t){(t=t||document).getElementById(e)&&t.getElementById(e).remove()};var a=[];if(t.useStrictCSP=function(e){o=e,0==e?n():a||(a=)},t.importCssString=i,t.importCssStylsheet=function(e,n){t.buildDom(,t.getDocumentHead(n))},t.scrollbarWidth=function(e){var n=t.createElement(”ace_inner“);n.style.width=”100%“,n.style.minWidth=”0px“,n.style.height=”200px“,n.style.display=”block“;var i=t.createElement(”ace_outer“),o=i.style;o.position=”absolute“,o.left=”-10000px“,o.overflow=”hidden“,o.width=”200px“,o.minWidth=”0px“,o.height=”150px“,o.display=”block“,i.appendChild(n);var r=e&&e.documentElement||document&&document.documentElement;if(!r)return 0;r.appendChild(i);var s=n.offsetWidth;o.overflow=”scroll“;var a=n.offsetWidth;return s===a&&(a=i.clientWidth),r.removeChild(i),s-a},t.computedStyle=function(e){return window.getComputedStyle(e,”“)||{}},t.setStyle=function(e,t,n){e!==n&&(e=n)},t.HAS_CSS_ANIMATION=!1,t.HAS_CSS_TRANSFORMS=!1,t.HI_DPI=!r.isWin||”undefined“!=typeof window&&window.devicePixelRatio>=1.5,r.isChromeOS&&(t.HI_DPI=!1),”undefined“!=typeof document){var l=document.createElement(”div“);t.HI_DPI&&void 0!==l.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),r.isEdge||void 0===l.style.animationName||(t.HAS_CSS_ANIMATION=!0),l=null}t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,n){e.style.transform=”translate(“+Math.round(t)+”px, “+Math.round(n)+”px)“}:t.translate=function(e,t,n){e.style.top=Math.round(n)+”px“,e.style.left=Math.round(t)+”px“}})),ace.define(”ace/lib/net“,,(function(e,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 n=e(“./dom”);t.get=function(e,t){var n=new XMLHttpRequest;n.open(“GET”,e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var i=n.getDocumentHead(),o=document.createElement(“script”);o.src=e,i.appendChild(o),o.onload=o.onreadystatechange=function(e,n){!n&&o.readyState&&“loaded”!=o.readyState&&“complete”!=o.readyState||(o=o.onload=o.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement(“a”);return t.href=e,t.href}})),ace.define(“ace/lib/oop”,,(function(e,t){“use strict”;t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e=t;return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define(“ace/lib/event_emitter”,,(function(e,t){“use strict”;var n={},i=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry||[],r=this._defaultHandlers;if(n.length||r){“object”==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=o),n=n.slice();for(var s=0;s<n.length&&(n(t,this),!t.propagationStopped);s++);return r&&!t.defaultPrevented?r(t,this):void 0}},n._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var i=0;i<n.length;i++)n(t,this)}},n.once=function(e,t){var n=this;if(this.on(e,(function i(){n.off(e,i),t.apply(null,arguments)})),!t)return new Promise((function(e){t=e}))},n.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={disabled:{}}),n){var i=n,o=n.disabled[e];o||(n.disabled[e]=o=[]),o.push(i);var r=o.indexOf(t);-1!=r&&o.splice(r,1)}n=t},n.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var i=n.disabled[e];if(n==t)i&&this.setDefaultHandler(e,i.pop());else if(i){var o=i.indexOf(t);-1!=o&&i.splice(o,1)}}},n.on=n.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry;return i||(i=this._eventRegistry=[]),-1==i.indexOf(t)&&i(t),t},n.off=n.removeListener=n.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry;if(n){var i=n.indexOf(t);-1!==i&&n.splice(i,1)}},n.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry=void 0),this._defaultHandlers&&(this._defaultHandlers=void 0)},t.EventEmitter=n})),ace.define(“ace/lib/report_error”,,(function(e,t){t.reportError=function(e,t){var n=new Error(e);n.data=t,“object”==typeof console&&console.error&&console.error(n),setTimeout((function(){throw n}))}})),ace.define(“ace/lib/default_english_messages”,,(function(e,t){var n={“autocomplete.popup.aria-roledescription”:“Autocomplete suggestions”,“autocomplete.popup.aria-label”:“Autocomplete suggestions”,“autocomplete.popup.item.aria-roledescription”:“item”,“autocomplete.loading”:“Loading…”,“editor.scroller.aria-roledescription”:“editor”,“editor.scroller.aria-label”:“Editor content, press Enter to start editing, press Escape to exit”,“editor.gutter.aria-roledescription”:“editor”,“editor.gutter.aria-label”:“Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit”,“error-marker.good-state”:“Looks good!”,“prompt.recently-used”:“Recently used”,“prompt.other-commands”:“Other commands”,“prompt.no-matching-commands”:“No matching commands”,“search-box.find.placeholder”:“Search for”,“search-box.find-all.text”:“All”,“search-box.replace.placeholder”:“Replace with”,“search-box.replace-next.text”:“Replace”,“search-box.replace-all.text”:“All”,“search-box.toggle-replace.title”:“Toggle Replace mode”,“search-box.toggle-regexp.title”:“RegExp Search”,“search-box.toggle-case.title”:“CaseSensitive Search”,“search-box.toggle-whole-word.title”:“Whole Word Search”,“search-box.toggle-in-selection.title”:“Search In Selection”,“search-box.search-counter”:“$0 of $1”,“text-input.aria-roledescription”:“editor”,“text-input.aria-label”:“Cursor at row $0”,“gutter.code-folding.range.aria-label”:“Toggle code folding, rows $0 through $1”,“gutter.code-folding.closed.aria-label”:“Toggle code folding, rows $0 through $1”,“gutter.code-folding.open.aria-label”:“Toggle code folding, row $0”,“gutter.code-folding.closed.title”:“Unfold code”,“gutter.code-folding.open.title”:“Fold code”,“gutter.annotation.aria-label.error”:“Error, read annotations row $0”,“gutter.annotation.aria-label.warning”:“Warning, read annotations row $0”,“gutter.annotation.aria-label.info”:“Info, read annotations row $0”,“inline-fold.closed.title”:“Unfold code”,“gutter-tooltip.aria-label.error.singular”:“error”,“gutter-tooltip.aria-label.error.plural”:“errors”,“gutter-tooltip.aria-label.warning.singular”:“warning”,“gutter-tooltip.aria-label.warning.plural”:“warnings”,“gutter-tooltip.aria-label.info.singular”:“information message”,“gutter-tooltip.aria-label.info.plural”:“information messages”};t.defaultEnglishMessages=n})),ace.define(“ace/lib/app_config”,,(function(e,t){function n(e){“undefined”!=typeof console&&console.warn&&console.warn.apply(console,arguments)}var i,o=e(“./oop”),r=e(“./event_emitter”).EventEmitter,s=e(“./report_error”).reportError,a=e(“./default_english_messages”).defaultEnglishMessages,l={setOptions:function(e){Object.keys(e).forEach((function(t){this.setOption(t,e)}),this)},getOptions:function(e){var t={};if(e)Array.isArray(e)||(t=e,e=Object.keys(t));else{var n=this.$options;e=Object.keys(n).filter((function(e){return!n.hidden}))}return e.forEach((function(e){t=this.getOption(e)}),this),t},setOption:function(e,t){if(this!==t){var i=this.$options;if(!i)return n(‘misspelled option “’e
‘”’);if(i.forwardTo)return this&&this.setOption(e,t);i.handlesSet||(this=t),i&&i.set&&i.set.call(this,t)}},getOption:function(e){var t=this.$options;return t?t.forwardTo?this&&this.getOption(e):t&&t.get?t.get.call(this):this:n(‘misspelled option “’e
‘”’)}},c=function(){function e(){this.$defaultOptions={},i=a}return e.prototype.defineOptions=function(e,t,n){return e.$options||(this.$defaultOptions=e.$options={}),Object.keys(n).forEach((function(t){var i=n;“string”==typeof i&&(i={forwardTo:i}),i.name||(i.name=t),e.$options=i,“initialValue”in i&&(e=i.initialValue)})),o.implement(e,l),this},e.prototype.resetOptions=function(e){Object.keys(e.$options).forEach((function(t){var n=e.$options;“value”in n&&e.setOption(t,n.value)}))},e.prototype.setDefaultValue=function(e,t,n){if(!e){for(e in this.$defaultOptions)if(this.$defaultOptions[t])break;if(!this.$defaultOptions[t])return!1}var i=this.$defaultOptions||(this.$defaultOptions={});i&&(i.forwardTo?this.setDefaultValue(i.forwardTo,t,n):i.value=n)},e.prototype.setDefaultValues=function(e,t){Object.keys(t).forEach((function(n){this.setDefaultValue(e,n,t)}),this)},e.prototype.setMessages=function(e){i=e},e.prototype.nls=function(e,t,o){i||(n(“No message found for the key ‘”e
“’ in the provided messages, trying to find a translation for the default string ‘”t
“’.”),i||n(“No message found for the default string ‘”t
“’ in the provided messages. Falling back to the default English message.”));var r=i||i||t;return o&&(r=r.replace(/$($|+)/g,(function(e,t){return“$”==t?“$”:o}))),r},e}();c.prototype.warn=n,c.prototype.reportError=s,o.implement(c.prototype,r),t.AppConfig=c})),ace.define(“ace/theme/textmate-css”,,(function(e,t,n){n.exports=‘.ace-tm .ace_gutter {n background: f0f0f0;n color: #333;n}nn.ace-tm .ace_print-margin {n width: 1px;n background: e8e8e8;n}nn.ace-tm .ace_fold {n background-color: #6B72E6;n}nn.ace-tm {n background-color: FFFFFF;n color: black;n}nn.ace-tm .ace_cursor {n color: black;n}n n.ace-tm .ace_invisible {n color: rgb(191, 191, 191);n}nn.ace-tm .ace_storage,n.ace-tm .ace_keyword {n color: blue;n}nn.ace-tm .ace_constant {n color: rgb(197, 6, 11);n}nn.ace-tm .ace_constant.ace_buildin {n color: rgb(88, 72, 246);n}nn.ace-tm .ace_constant.ace_language {n color: rgb(88, 92, 246);n}nn.ace-tm .ace_constant.ace_library {n color: rgb(6, 150, 14);n}nn.ace-tm .ace_invalid {n background-color: rgba(255, 0, 0, 0.1);n color: red;n}nn.ace-tm .ace_support.ace_function {n color: rgb(60, 76, 114);n}nn.ace-tm .ace_support.ace_constant {n color: rgb(6, 150, 14);n}nn.ace-tm .ace_support.ace_type,n.ace-tm .ace_support.ace_class {n color: rgb(109, 121, 222);n}nn.ace-tm .ace_keyword.ace_operator {n color: rgb(104, 118, 135);n}nn.ace-tm .ace_string {n color: rgb(3, 106, 7);n}nn.ace-tm .ace_comment {n color: rgb(76, 136, 107);n}nn.ace-tm .ace_comment.ace_doc {n color: rgb(0, 102, 255);n}nn.ace-tm .ace_comment.ace_doc.ace_tag {n color: rgb(128, 159, 191);n}nn.ace-tm .ace_constant.ace_numeric {n color: rgb(0, 0, 205);n}nn.ace-tm .ace_variable {n color: rgb(49, 132, 149);n}nn.ace-tm .ace_xml-pe {n color: rgb(104, 104, 91);n}nn.ace-tm .ace_entity.ace_name.ace_function {n color: #0000A2;n}nnn.ace-tm .ace_heading {n color: rgb(12, 7, 255);n}nn.ace-tm .ace_list {n color:rgb(185, 6, 144);n}nn.ace-tm .ace_meta.ace_tag {n color:rgb(0, 22, 142);n}nn.ace-tm .ace_string.ace_regex {n color: rgb(255, 0, 0)n}nn.ace-tm .ace_marker-layer .ace_selection {n background: rgb(181, 213, 255);n}n.ace-tm.ace_multiselect .ace_selection.ace_start {n box-shadow: 0 0 3px 0px white;n}n.ace-tm .ace_marker-layer .ace_step {n background: rgb(252, 255, 0);n}nn.ace-tm .ace_marker-layer .ace_stack {n background: rgb(164, 229, 101);n}nn.ace-tm .ace_marker-layer .ace_bracket {n margin: -1px 0 0 -1px;n border: 1px solid rgb(192, 192, 192);n}nn.ace-tm .ace_marker-layer .ace_active-line {n background: rgba(0, 0, 0, 0.07);n}nn.ace-tm .ace_gutter-active-line {n background-color : dcdcdc;n}nn.ace-tm .ace_marker-layer .ace_selected-word {n background: rgb(250, 250, 255);n border: 1px solid rgb(200, 200, 250);n}nn.ace-tm .ace_indent-guide {n background: url(“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==”) right repeat-y;n}nn.ace-tm .ace_indent-guide-active {n background: url(“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC”) right repeat-y;n}n’})),ace.define(“ace/theme/textmate”,,(function(e,t){“use strict”;t.isDark=!1,t.cssClass=“ace-tm”,t.cssText=e(“./textmate-css”),t.$id=“ace/theme/textmate”,e(“../lib/dom”).importCssString(t.cssText,t.cssClass,!1)})),ace.define(“ace/config”,,(function(e,t,n){var i=e(“./lib/lang”),o=e(“./lib/net”),r=e(“./lib/dom”),s=e(“./lib/app_config”).AppConfig;n.exports=t=new s;var a={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:“”,suffix:“.js”,$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};t.get=function(e){if(!a.hasOwnProperty(e))throw new Error(“Unknown config key: ”+e);return a},t.set=function(e,t){if(a.hasOwnProperty(e))a=t;else if(0==this.setDefaultValue(“”,e,t))throw new Error(“Unknown config key: ”+e);“useStrictCSP”==e&&r.useStrictCSP(t)},t.all=function(){return i.copyObject(a)},t.$modes={},t.moduleUrl=function(e,t){if(a.$moduleUrls)return a.$moduleUrls;var n=e.split(“/”),i=“snippets”==(t=t||n||“”)?“/”:“-”,o=n;if(“worker”==t&&“-”==i){var r=new RegExp(“^”t
“|[\-_]”t
“$”,“g”);o=o.replace(r,“”)}(!o||o==t)&&n.length>1&&(o=n);var s=a;return null==s?s=a.basePath:“/”==i&&(t=i=“”),s&&“/”!=s.slice(-1)&&(s+=“/”),s+t+i+o+this.get(“suffix”)},t.setModuleUrl=function(e,t){return a.$moduleUrls=t};var l,c=function(t,n){return“ace/theme/textmate”===t||“./theme/textmate”===t?n(null,e(“./theme/textmate”)):l?l(t,n):void console.error(“loader is not configured”)};t.setLoader=function(e){l=e},t.dynamicModules=Object.create(null),t.$loading={},t.$loaded={},t.loadModule=function(e,n){var i;if(Array.isArray(e))var r=e,s=e;else if(“string”==typeof e)s=e;var a=function(e){if(e&&!t.$loading)return n&&n(e);if(t.$loading||(t.$loading=[]),t.$loading.push(n),!(t.$loading.length>1)){var i=function(){c(s,(function(e,n){n&&(t.$loaded=n),t._emit(“load.module”,{name:s,module:n});var i=t.$loading;t.$loading=null,i.forEach((function(e){e&&e(n)}))}))};if(!t.get(“packaged”))return i();o.loadScript(t.moduleUrl(s,r),i),h()}};if(t.dynamicModules)t.dynamicModules().then((function(e){e.default?a(e.default):a(e)}));else{try{i=this.$require(s)}catch(e){}a(i||t.$loaded)}},t.$require=function(e){if(“function”==typeof n.require)return n(e)},t.setModuleLoader=function(e,n){t.dynamicModules=n};var h=function(){a.basePath||a.workerPath||a.modePath||a.themePath||Object.keys(a.$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”),h=function(){})};t.version=“1.33.0”})),ace.define(“ace/loader_build”,,(function(e,t,n){“use strict”;function i(t){if(s&&s.document){r.set(“packaged”,t||e.packaged||n.packaged||s.define&&define.packaged);var i={},a=“”,l=document.currentScript||document._currentScript,c=l&&l.ownerDocument||document;l&&l.src&&(a=l.src.split(//)[0].split(“/”).slice(0,-1).join(“/”)||“”);for(var h=c.getElementsByTagName(“script”),u=0;u<h.length;u++){var d=h,p=d.src||d.getAttribute(“src”);if(p){for(var g=d.attributes,m=0,f=g.length;m<f;m++){var v=g;0===v.name.indexOf(“data-ace-”)&&(i=v.value)}var y=p.match(/^(.*)/ace(w+)?.js(?|$)/);y&&(a=y)}}for(var b in a&&(i.base=i.base||a,i.packaged=!0),i.basePath=i.base,i.workerPath=i.workerPath||i.base,i.modePath=i.modePath||i.base,i.themePath=i.themePath||i.base,delete i.base,i)void 0!==i&&r.set(b,i)}}function o(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}e(“./lib/fixoldbrowsers”);var r=e(“./config”);r.setLoader((function(t,n){e(,(function(e){n(null,e)}))}));var s=function(){return this||“undefined”!=typeof window&&window}();n.exports=function(t){r.init=i,r.$require=e,t.require=e,“function”==typeof define&&(t.define=define)},i(!0)})),ace.define(“ace/range”,,(function(e,t){“use strict”;var n=function(){function e(e,t,n,i){this.start={row:e,column:t},this.end={row:n,column:i}}return e.prototype.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},e.prototype.toString=function(){return“Range: [”this.start.row
“/”this.start.column
“] -> [”this.end.row
“/”this.end.column
“]”},e.prototype.contains=function(e,t){return 0==this.compare(e,t)},e.prototype.compareRange=function(e){var t,n=e.end,i=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(i.row,i.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(i.row,i.column))?-1:1==t?42:0},e.prototype.comparePoint=function(e){return this.compare(e.row,e.column)},e.prototype.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},e.prototype.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},e.prototype.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},e.prototype.isStart=function(e,t){return this.start.row==e&&this.start.column==t},e.prototype.setStart=function(e,t){“object”==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},e.prototype.setEnd=function(e,t){“object”==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},e.prototype.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},e.prototype.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},e.prototype.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},e.prototype.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},e.prototype.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},e.prototype.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},e.prototype.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},e.prototype.clipRows=function(t,n){if(this.end.row>n)var i={row:n+1,column:0};else if(this.end.row<t)i={row:t,column:0};if(this.start.row>n)var o={row:n+1,column:0};else if(this.start.row<t)o={row:t,column:0};return e.fromPoints(o||this.start,i||this.end)},e.prototype.extend=function(t,n){var i=this.compare(t,n);if(0==i)return this;if(-1==i)var o={row:t,column:n};else var r={row:t,column:n};return e.fromPoints(o||this.start,r||this.end)},e.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},e.prototype.isMultiLine=function(){return this.start.row!==this.end.row},e.prototype.clone=function(){return e.fromPoints(this.start,this.end)},e.prototype.collapseRows=function(){return 0==this.end.column?new e(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new e(this.start.row,0,this.end.row,0)},e.prototype.toScreenRange=function(t){var n=t.documentToScreenPosition(this.start),i=t.documentToScreenPosition(this.end);return new e(n.row,n.column,i.row,i.column)},e.prototype.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t},e}();n.fromPoints=function(e,t){return new n(e.row,e.column,t.row,t.column)},n.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=n})),ace.define(“ace/lib/keys”,,(function(e,t){ /*! @license
¶ ↑
SproutCore – JavaScript Application Framework copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
For more information about SproutCore, visit www.sproutcore.com
¶ ↑
@license */ “use strict”;var n=e(“./oop”),i=function(){var e,t,i={MODIFIER_KEYS:{16:“Shift”,17:“Ctrl”,18:“Alt”,224:“Meta”,91:“MetaLeft”,92:“MetaRight”,93:“ContextMenu”},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:“Backspace”,9:“Tab”,13:“Return”,19:“Pause”,27:“Esc”,32:“Space”,33:“PageUp”,34:“PageDown”,35:“End”,36:“Home”,37:“Left”,38:“Up”,39:“Right”,40:“Down”,44:“Print”,45:“Insert”,46:“Delete”,96:“Numpad0”,97:“Numpad1”,98:“Numpad2”,99:“Numpad3”,100:“Numpad4”,101:“Numpad5”,102:“Numpad6”,103:“Numpad7”,104:“Numpad8”,105:“Numpad9”,“-13”:“NumpadEnter”,112:“F1”,113:“F2”,114:“F3”,115:“F4”,116:“F5”,117:“F6”,118:“F7”,119:“F8”,120:“F9”,121:“F10”,122:“F11”,123:“F12”,144:“Numlock”,145:“Scrolllock”},PRINTABLE_KEYS:{32:“ ”,48:“0”,49:“1”,50:“2”,51:“3”,52:“4”,53:“5”,54:“6”,55:“7”,56:“8”,57:“9”,59:“;”,61:“=”,65:“a”,66:“b”,67:“c”,68:“d”,69:“e”,70:“f”,71:“g”,72:“h”,73:“i”,74:“j”,75:“k”,76:“l”,77:“m”,78:“n”,79:“o”,80:“p”,81:“q”,82:“r”,83:“s”,84:“t”,85:“u”,86:“v”,87:“w”,88:“x”,89:“y”,90:“z”,107:“+”,109:“-”,110:“.”,186:“;”,187:“=”,188:“,”,189:“-”,190:“.”,191:“/”,192:“‘”,219:“”,222:“’”,111:“/”,106:“*”}};for(t in i.PRINTABLE_KEYS=“-”,i.FUNCTION_KEYS)e=i.FUNCTION_KEYS.toLowerCase(),i=parseInt(t,10);for(t in i.PRINTABLE_KEYS)e=i.PRINTABLE_KEYS.toLowerCase(),i=parseInt(t,10);return n.mixin(i,i.MODIFIER_KEYS),n.mixin(i,i.PRINTABLE_KEYS),n.mixin(i,i.FUNCTION_KEYS),i.enter=i.return,i.escape=i.esc,i.del=i.delete,function(){for(var e=,t=Math.pow(2,e.length);t–;)i.KEY_MODS=e.filter((function(e){return t&i.KEY_MODS})).join(“-”)+“-”}(),i.KEY_MODS=“”,i.KEY_MODS=“input-”,i}();n.mixin(t,i),t.default=t,t.keyCodeToString=function(e){var t=i;return“string”!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define(“ace/lib/event”,,(function(e,t){“use strict”;function n(){l=!1;try{document.createComment(“”).addEventListener(“test”,(function(){}),{get passive(){return l={passive:!1},!0}})}catch(e){}}function i(){return null==l&&n(),l}function o(e,t,n){this.elem=e,this.type=t,this.callback=n}function r(e){return(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)}function s(e,t,n){var i=r(t);if(!h.isMac&&u){if(t.getModifierState&&(t.getModifierState(“OS”)||t.getModifierState(“Win”))&&(i|=8),u.altGr){if(!(3&~i))return;u.altGr=0}if(18===n||17===n){var o=t.location;if(17===n&&1===o)1==u&&(d=t.timeStamp);else if(18===n&&3===i&&2===o){t.timeStamp-d<50&&(u.altGr=!0)}}}if(n in c.MODIFIER_KEYS&&(n=-1),i||13!==n||3!==t.location||(e(t,i,-n),!t.defaultPrevented)){if(h.isChromeOS&&8&i){if(e(t,i,n),t.defaultPrevented)return;i&=-9}return!!(i||n in c.FUNCTION_KEYS||n in c.PRINTABLE_KEYS)&&e(t,i,n)}}function a(){u=Object.create(null)}var l,c=e(“./keys”),h=e(“./useragent”),u=null,d=0;o.prototype.destroy=function(){g(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var p=t.addListener=function(e,t,n,r){e.addEventListener(t,n,i()),r&&r.$toDestroy.push(new o(e,t,n))},g=t.removeListener=function(e,t,n){e.removeEventListener(t,n,i())};if(t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return“dblclick”==e.type?0:“contextmenu”==e.type||h.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,n){function i(e){t&&t(e),n&&n(e),g(o,“mousemove”,t),g(o,“mouseup”,i),g(o,“dragstart”,i)}var o=e&&e.ownerDocument||document;return p(o,“mousemove”,t),p(o,“mouseup”,i),p(o,“dragstart”,i),i},t.addMouseWheelListener=function(e,t,n){p(e,“wheel”,(function(e){var n=.15,i=e.deltaX||0,o=e.deltaY||0;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=i*n,e.wheelY=o*n;break;case e.DOM_DELTA_LINE:var r=15;e.wheelX=i*r,e.wheelY=o*r;break;case e.DOM_DELTA_PAGE:var s=150;e.wheelX=i*s,e.wheelY=o*s}t(e)}),n)},t.addMultiMouseDownListener=function(e,n,i,o,r){function s(e){if(0!==t.getButton(e)?u=0:e.detail>1?++u>4&&(u=1):u=1,h.isIE){var r=Math.abs(e.clientX-a)>5||Math.abs(e.clientY-l)>5;c&&!r||(u=1),c&&clearTimeout©,c=setTimeout((function(){c=null}),n||600),1==u&&(a=e.clientX,l=e.clientY)}if(e._clicks=u,i(“mousedown”,e),u>4)u=0;else if(u>1)return i(d,e)}var a,l,c,u=0,d={2:“dblclick”,3:“tripleclick”,4:“quadclick”};Array.isArray(e)||(e=),e.forEach((function(e){p(e,“mousedown”,s,r)}))},t.getModifierString=function(e){return c.KEY_MODS},t.addCommandKeyListener=function(e,n,i){var o=null;p(e,“keydown”,(function(e){u=(u||0)+1;var t=s(n,e,e.keyCode);return o=e.defaultPrevented,t}),i),p(e,“keypress”,(function(e){o&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),o=null)}),i),p(e,“keyup”,(function(e){u=null}),i),u||(a(),p(window,“focus”,a))},“object”==typeof window&&window.postMessage&&!h.isOldIE){var m=1;t.nextTick=function(e,n){n=n||window;var i=“zero-timeout-message-”m+
,o=function®{r.data==i&&(t.stopPropagation®,g(n,“message”,o),e())};p(n,“message”,o),n.postMessage(i,“*”)}}t.$idleBlocked=!1,t.onIdle=function(e,n){return setTimeout((function n(){t.$idleBlocked?setTimeout(n,100):e()}),n)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout((function(){t.$idleBlocked=!1}),e||100)},t.nextFrame=“object”==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define(“ace/clipboard”,,(function(e,t,n){“use strict”;var i;n.exports={lineMode:!1,pasteCancelled:function(){return!!(i&&i>Date.now()-50)||(i=!1)},cancel:function(){i=Date.now()}}})),ace.define(“ace/keyboard/textinput”,,(function(e,t){“use strict”;var n,i=e(“../lib/event”),o=e(“../config”).nls,r=e(“../lib/useragent”),s=e(“../lib/dom”),a=e(“../lib/lang”),l=e(“../clipboard”),c=r.isChrome<18,h=r.isIE,u=r.isChrome>63,d=400,p=e(“../lib/keys”),g=p.KEY_MODS,m=r.isIOS,f=m?/s/:/n/,v=r.isMobile;n=function(e,t){function n(){M=!0,x.blur(),x.focus(),M=!1}function y(e){27==e.keyCode&&x.value.length<x.selectionStart&&($||(_=x.value),T=R=-1,H()),ee()}function b(){clearTimeout(Q),Q=setTimeout((function(){A&&(x.style.cssText=A,A=“”),t.renderer.$isMousePressed=!1,t.renderer.$keepTextAreaAtCursor&&t.renderer.$moveTextAreaToCursor()}),0)}function w(e,t,n){var i=null,o=!1;n.addEventListener(“keydown”,(function(){i&&clearTimeout(i),o=!0}),!0),n.addEventListener(“keyup”,(function(){i=setTimeout((function(){o=!1}),100)}),!0);var r=function(){if(document.activeElement===n&&!(o||$||t.$mouseHandler.isMousePressed||k)){var e=n.selectionStart,i=n.selectionEnd,r=null,s=0;if(0==e?r=p.up:1==e?r=p.home:i>R&&“n”==_?r=p.end:e<T&&“ ”==_?(r=p.left,s=g.option):e<T||e==T&&R!=T&&e==i?r=p.left:i>R&&_.slice(0,i).split(“n”).length>2?r=p.down:i>R&&“ ”==_?(r=p.right,s=g.option):(i>R||i==R&&R!=T&&e==i)&&(r=p.right),e!==i&&(s|=g.shift),r){if(!t.onCommandKey({},s,r)&&t.commands){r=p.keyCodeToString®;var a=t.commands.findKeyCommand(s,r);a&&t.execCommand(a)}T=e,R=i,H(“”)}}};document.addEventListener(“selectionchange”,r),t.on(“destroy”,(function(){document.removeEventListener(“selectionchange”,r)}))}var x=s.createElement(“textarea”);x.className=“ace_text-input”,x.setAttribute(“wrap”,“off”),x.setAttribute(“autocorrect”,“off”),x.setAttribute(“autocapitalize”,“off”),x.setAttribute(“spellcheck”,“false”),x.style.opacity=“0”,e.insertBefore(x,e.firstChild);var k=!1,C=!1,$=!1,S=!1,A=“”;v||(x.style.fontSize=“1px”);var L=!1,M=!1,_=“”,T=0,R=0,E=0,I=Number.MAX_SAFE_INTEGER,O=Number.MIN_SAFE_INTEGER,N=0;try{var F=document.activeElement===x}catch(e){}this.setNumberOfExtraLines=function(e){I=Number.MAX_SAFE_INTEGER,O=Number.MIN_SAFE_INTEGER,N=e<0?0:e},this.setAriaOptions=function(e){if(e.activeDescendant?(x.setAttribute(“aria-haspopup”,“true”),x.setAttribute(“aria-autocomplete”,e.inline?“both”:“list”),x.setAttribute(“aria-activedescendant”,e.activeDescendant)):(x.setAttribute(“aria-haspopup”,“false”),x.setAttribute(“aria-autocomplete”,“both”),x.removeAttribute(“aria-activedescendant”)),e.role&&x.setAttribute(“role”,e.role),e.setLabel&&(x.setAttribute(“aria-roledescription”,o(“text-input.aria-roledescription”,“editor”)),t.session)){var n=t.session.selection.cursor.row;x.setAttribute(“aria-label”,o(“text-input.aria-label”,“Cursor at row $0”,))}},this.setAriaOptions({role:“textbox”}),i.addListener(x,“blur”,(function(e){M||(t.onBlur(e),F=!1)}),t),i.addListener(x,“focus”,(function(e){if(!M){if(F=!0,r.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),r.isEdge?setTimeout(H):H()}}),t),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:t.renderer.enableKeyboardAccessibility}),A||u||“browser”==this.$focusScroll)return x.focus({preventScroll:!0});var e=x.style.top;x.style.position=“fixed”,x.style.top=“0px”;try{var n=0!=x.getBoundingClientRect().top}catch(e){return}var i=[];if(n)for(var o=x.parentElement;o&&1==o.nodeType;)i.push(o),o.setAttribute(“ace_nocontext”,“true”),o=!o.parentElement&&o.getRootNode?o.getRootNode().host:o.parentElement;x.focus({preventScroll:!0}),n&&i.forEach((function(e){e.removeAttribute(“ace_nocontext”)})),setTimeout((function(){x.style.position=“”,“0px”==x.style.top&&(x.style.top=e)}),0)},this.blur=function(){x.blur()},this.isFocused=function(){return F},t.on(“beforeEndOperation”,(function(){var e=t.curOp,n=e&&e.command&&e.command.name;if(“insertstring”!=n){var i=n&&(e.docChanged||e.selectionChanged);$&&i&&(_=x.value=“”,J()),H()}}));var D=function(e,n){for(var i=n,o=1;o<=e-I&&o<2*N+1;o++)i+=t.session.getLine(e-o).length+1;return i},H=m?function(e){if(F&&(!k||e)&&!S){e||(e=“”);var n=“n ab”e
“cde fgn”;n!=x.value&&(x.value=_=n);var i=4,o=4+(e.length||(t.selection.isEmpty()?0:1));T==i&&R==o||x.setSelectionRange(i,o),T=i,R=o}}:function(){if(!$&&!S&&(F||z)){$=!0;var e=0,n=0,i=“”;if(t.session){var o=t.selection,r=o.getRange(),s=o.cursor.row;s===O+1?O=(I=O+1)+2*N:s===I-1?I=(O=I-1)-2*N:(s<I-1||s>O+1)&&(I=s>N?s-N:0,O=s>N?s+N:2*N);for(var a=[],l=I;l<=O;l++)a.push(t.session.getLine(l));if(i=a.join(“n”),e=D(r.start.row,r.start.column),n=D(r.end.row,r.end.column),r.start.row<I){var c=t.session.getLine(I-1);e=r.start.row<I-1?0:e,n+=c.length+1,i=c+“n”+i}else if(r.end.row>O){var h=t.session.getLine(O+1);n=r.end.row>O+1?h.length:r.end.column,n+=i.length+1,i=i+“n”+h}else v&&s>0&&(i=“n”+i,n+=1,e+=1);i.length>d&&(e<d&&n<d?i=i.slice(0,d):(i=“n”,e==n?e=n=0:(e=0,n=1)));var u=i+“nn”;u!=_&&(x.value=_=u,T=R=u.length)}if(z&&(T=x.selectionStart,R=x.selectionEnd),R!=n||T!=e||x.selectionEnd!=R)try{x.setSelectionRange(e,n),T=e,R=n}catch(e){}$=!1}};this.resetSelection=H,F&&t.onFocus();var B=function(e){return 0===e.selectionStart&&e.selectionEnd>=_.length&&e.value===_&&_&&e.selectionEnd!==R},P=function(){$||(k?k=!1:B(x)?(t.selectAll(),H()):v&&x.selectionStart!=T&&H())},W=null;this.setInputHandler=function(e){W=e},this.getInputHandler=function(){return W};var z=!1,j=function(e,n){if(z&&(z=!1),C)return H(),e&&t.onPaste(e),C=!1,“”;for(var i=x.selectionStart,o=x.selectionEnd,s=T,a=_.length-R,l=e,c=e.length-i,h=e.length-o,u=0;s>0&&_==e;)u++,s–;for(l=l.slice(u),u=1;a>0&&_.length-u>T-1&&[.length-u]==e;)u++,a–;c-=u-1,h-=u-1;var d=l.length-u+1;if(d<0&&(s=-d,d=0),l=l.slice(0,d),!(n||l||c||s||a||h))return“”;S=!0;var p=!1;return r.isAndroid&&“. ”==l&&(l=“ ”,p=!0),l&&!s&&!a&&!c&&!h||L?t.onTextInput(l):t.onTextInput(l,{extendLeft:s,extendRight:a,restoreStart:c,restoreEnd:h}),S=!1,_=e,T=i,R=o,E=h,p?“n”:l},G=function(e){if($)return Z();if(e&&e.inputType){if(“historyUndo”==e.inputType)return t.execCommand(“undo”);if(“historyRedo”==e.inputType)return t.execCommand(“redo”)}var n=x.value,i=j(n,!0);(n.length>d+100||f.test(i)||v&&T<1&&T==R)&&H()},V=function(e,t,n){var i=e.clipboardData||window.clipboardData;if(i&&!c){var o=h||n?“Text”:“text/plain”;try{return t?!1!==i.setData(o,t):i.getData(o)}catch(e){if(!n)return V(e,t,!0)}}},K=function(e,n){var o=t.getCopyText();if(!o)return i.preventDefault(e);V(e,o)?(m&&(H(o),k=o,setTimeout((function(){k=!1}),10)),n?t.onCut():t.onCopy(),i.preventDefault(e)):(k=!0,x.value=o,x.select(),setTimeout((function(){k=!1,H(),n?t.onCut():t.onCopy()})))},U=function(e){K(e,!0)},q=function(e){K(e,!1)},Y=function(e){var n=V(e);l.pasteCancelled()||(“string”==typeof n?(n&&t.onPaste(n,e),r.isIE&&setTimeout(H),i.preventDefault(e)):(x.value=“”,C=!0))};i.addCommandKeyListener(x,(function(e,n,i){if(!$)return t.onCommandKey(e,n,i)}),t),i.addListener(x,“select”,P,t),i.addListener(x,“input”,G,t),i.addListener(x,“cut”,U,t),i.addListener(x,“copy”,q,t),i.addListener(x,“paste”,Y,t),“oncut”in x&&“oncopy”in x&&“onpaste”in x||i.addListener(e,“keydown”,(function(e){if((!r.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:q(e);break;case 86:Y(e);break;case 88:U(e)}}),t);var Q,X=function(e){if(!$&&t.onCompositionStart&&!t.$readOnly&&($={},!L)){e.data&&($.useTextareaForIME=!1),setTimeout(Z,0),t._signal(“compositionStart”),t.on(“mousedown”,n);var i=t.getSelectionRange();i.end.row=i.start.row,i.end.column=i.start.column,$.markerRange=i,$.selectionStart=T,t.onCompositionStart($),$.useTextareaForIME?(_=x.value=“”,T=0,R=0):(x.msGetInputContext&&($.context=x.msGetInputContext()),x.getInputContext&&($.context=x.getInputContext()))}},Z=function(){if($&&t.onCompositionUpdate&&!t.$readOnly){if(L)return n();if($.useTextareaForIME)t.onCompositionUpdate(x.value);else{var e=x.value;j(e),$.markerRange&&($.context&&($.markerRange.start.column=$.selectionStart=$.context.compositionStartOffset),$.markerRange.end.column=$.markerRange.start.column+R-$.selectionStart+E)}}},J=function(e){t.onCompositionEnd&&!t.$readOnly&&($=!1,t.onCompositionEnd(),t.off(“mousedown”,n),e&&G())},ee=a.delayedCall(Z,50).schedule.bind(null,null);i.addListener(x,“compositionstart”,X,t),i.addListener(x,“compositionupdate”,Z,t),i.addListener(x,“keyup”,y,t),i.addListener(x,“keydown”,ee,t),i.addListener(x,“compositionend”,J,t),this.getElement=function(){return x},this.setCommandMode=function(e){L=e,x.readOnly=!1},this.setReadOnly=function(e){L||(x.readOnly=e)},this.setCopyWithEmptySelection=function(){},this.onContextMenu=function(e){z=!0,H(),t._emit(“nativecontextmenu”,{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,n){A||(A=x.style.cssText),x.style.cssText=(n?“z-index:100000;”:“”)+(r.isIE?“opacity:0.1;”:“”)+“text-indent: -”+(T+R)t.renderer.characterWidth.5+“px;”;var o=t.container.getBoundingClientRect(),a=s.computedStyle(t.container),l=o.top+(parseInt(a.borderTopWidth)||0),c=o.left+(parseInt(o.borderLeftWidth)||0),h=o.bottom-l-x.clientHeight-2,u=function(e){s.translate(x,e.clientX-c-2,Math.min(e.clientY-l-2,h))};u(e),“mousedown”==e.type&&(t.renderer.$isMousePressed=!0,clearTimeout(Q),r.isWin&&i.capture(t.container,u,b))},this.onContextMenuClose=b;var te=function(e){t.textInput.onContextMenu(e),b()};i.addListener(x,“mouseup”,te,t),i.addListener(x,“mousedown”,(function(e){e.preventDefault(),b()}),t),i.addListener(t.renderer.scroller,“contextmenu”,te,t),i.addListener(x,“contextmenu”,te,t),m&&w(e,t,x),this.destroy=function(){x.parentElement&&x.parentElement.removeChild(x)}},t.TextInput=n,t.$setUserAgentForTests=function(e,t){v=e,m=t}})),ace.define(“ace/mouse/default_handlers”,,(function(e,t){“use strict”;function n(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}function i(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}var o=e(“../lib/useragent”),r=0,s=550,a=function(){function e(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler(“mousedown”,this.onMouseDown.bind(e)),t.setDefaultHandler(“dblclick”,this.onDoubleClick.bind(e)),t.setDefaultHandler(“tripleclick”,this.onTripleClick.bind(e)),t.setDefaultHandler(“quadclick”,this.onQuadClick.bind(e)),t.setDefaultHandler(“mousewheel”,this.onMouseWheel.bind(e)),.forEach((function(t){e=this}),this),e.selectByLines=this.extendSelectionBy.bind(e,“getLineRange”),e.selectByWords=this.extendSelectionBy.bind(e,“getWordRange”)}return e.prototype.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var i=this.editor,r=e.getButton();return 0!==r?((i.getSelectionRange().isEmpty()||1==r)&&i.selection.moveToPosition(n),void(2==r&&(i.textInput.onContextMenu(e.domEvent),o.isMozilla||e.preventDefault()))):(this.mousedownEvent.time=Date.now(),!t||i.isFocused()||(i.focus(),!this.$focusTimeout||this.$clickSelection||i.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState(“focusWait”),void this.captureMouse(e)))},e.prototype.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.setStyle(“ace_selecting”),this.setState(“select”))},e.prototype.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var o=this.$clickSelection.comparePoint(n);if(-1==o)e=this.$clickSelection.end;else if(1==o)e=this.$clickSelection.start;else{var r=i(this.$clickSelection,n);n=r.cursor,e=r.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},e.prototype.extendSelectionBy=function(e){var t,n=this.editor,o=n.renderer.screenToTextCoordinates(this.x,this.y),r=n.selection(o.row,o.column);if(this.$clickSelection){var s=this.$clickSelection.comparePoint(r.start),a=this.$clickSelection.comparePoint(r.end);if(-1==s&&a<=0)t=this.$clickSelection.end,r.end.row==o.row&&r.end.column==o.column||(o=r.start);else if(1==a&&s>=0)t=this.$clickSelection.start,r.start.row==o.row&&r.start.column==o.column||(o=r.end);else if(-1==s&&1==a)o=r.end,t=r.start;else{var l=i(this.$clickSelection,o);o=l.cursor,t=l.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(o),n.renderer.scrollCursorIntoView()},e.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle(“ace_selecting”)},e.prototype.focusWait=function(){var e=n(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();(e>r||t-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},e.prototype.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,i=n.session.getBracketRange(t);i?(i.isEmpty()&&(i.start.column–,i.end.column++),this.setState(“select”)):(i=n.selection.getWordRange(t.row,t.column),this.setState(“selectByWords”)),this.$clickSelection=i,this.select()},e.prototype.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState(“selectByLines”);var i=n.getSelectionRange();i.isMultiLine()&&i.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(i.start.row),this.$clickSelection.end=n.selection.getLineRange(i.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},e.prototype.onQuadClick=function(){var e=this.editor;e.selectAll(),this.$clickSelection=e.getSelectionRange(),this.setState(“selectAll”)},e.prototype.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,i=e.domEvent.timeStamp,o=i-n.t,r=o?e.wheelX/o:n.vx,a=o?e.wheelY/o:n.vy;o<s&&(r=(r+n.vx)/2,a=(a+n.vy)/2);var l=Math.abs(r/a),c=!1;if(l>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(c=!0),l<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(c=!0),c)n.allowed=i;else if(i-n.allowed<s){Math.abs®<=1.5*Math.abs(n.vx)&&Math.abs(a)<=1.5*Math.abs(n.vy)?(c=!0,n.allowed=i):n.allowed=0}return n.t=i,n.vx=r,n.vy=a,c?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}},e}();a.prototype.selectEnd=a.prototype.selectByLinesEnd,a.prototype.selectAllEnd=a.prototype.selectByLinesEnd,a.prototype.selectByWordsEnd=a.prototype.selectByLinesEnd,t.DefaultHandlers=a})),ace.define(“ace/lib/scroll”,,(function(e,t){t.preventParentScroll=function(e){e.stopPropagation();var t=e.currentTarget;t.scrollHeight>t.clientHeight||e.preventDefault()}})),ace.define(“ace/tooltip”,,(function(e,t){“use strict”;var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e=t)},n(e,t)},function(e,t){function i(){this.constructor=e}if(“function”!=typeof t&&null!==t)throw new TypeError(“Class extends value ”+String(t)+“ is not a constructor or null”);n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__values||function(e){var t=“function”==typeof Symbol&&Symbol.iterator,n=t&&e,i=0;if(n)return n.call(e);if(e&&“number”==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e,done:!e}}};throw new TypeError(t?“Object is not iterable.”:“Symbol.iterator is not defined.”)},r=e(“./lib/dom”),s=(e(“./lib/event”),e(“./range”).Range),a=e(“./lib/scroll”).preventParentScroll,l=“ace_tooltip”,c=function(){function e(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}return e.prototype.$init=function(){return this.$element=r.createElement(“div”),this.$element.className=l,this.$element.style.display=“none”,this.$parentNode.appendChild(this.$element),this.$element},e.prototype.getElement=function(){return this.$element||this.$init()},e.prototype.setText=function(e){this.getElement().textContent=e},e.prototype.setHtml=function(e){this.getElement().innerHTML=e},e.prototype.setPosition=function(e,t){this.getElement().style.left=e+“px”,this.getElement().style.top=t+“px”},e.prototype.setClassName=function(e){r.addCssClass(this.getElement(),e)},e.prototype.setTheme=function(e){this.$element.className=l+“ ”+(e.isDark?“ace_dark ”:“”)+(e.cssClass||“”)},e.prototype.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display=“block”,this.isOpen=!0)},e.prototype.hide=function(){this.isOpen&&(this.getElement().style.display=“none”,this.getElement().className=l,this.isOpen=!1)},e.prototype.getHeight=function(){return this.getElement().offsetHeight},e.prototype.getWidth=function(){return this.getElement().offsetWidth},e.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},e}(),h=new(function(){function e(){this.popups=[]}return e.prototype.addPopup=function(e){this.popups.push(e),this.updatePopups()},e.prototype.removePopup=function(e){var t=this.popups.indexOf(e);-1!==t&&(this.popups.splice(t,1),this.updatePopups())},e.prototype.updatePopups=function(){var e,t,n,i;this.popups.sort((function(e,t){return t.priority-e.priority}));var r=[];try{for(var s=o(this.popups),a=s.next();!a.done;a=s.next()){var l=a.value,c=!0;try{for(var h=(n=void 0,o®),u=h.next();!u.done;u=h.next()){var d=u.value;if(this.doPopupsOverlap(d,l)){c=!1;break}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}c?r.push(l):l.hide()}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}},e.prototype.doPopupsOverlap=function(e,t){var n=e.getElement().getBoundingClientRect(),i=t.getElement().getBoundingClientRect();return n.left<i.right&&n.right>i.left&&n.top<i.bottom&&n.bottom>i.top},e}());t.popupManager=h,t.Tooltip=c;var u=function(e){function t(t){void 0===t&&(t=document.body);var n=e.call(this,t)||this;n.timeout=void 0,n.lastT=0,n.idleTime=350,n.lastEvent=void 0,n.onMouseOut=n.onMouseOut.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.waitForHover=n.waitForHover.bind(n),n.hide=n.hide.bind(n);var i=n.getElement();return i.style.whiteSpace=“pre-wrap”,i.style.pointerEvents=“auto”,i.addEventListener(“mouseout”,n.onMouseOut),i.tabIndex=-1,i.addEventListener(“blur”,function(){i.contains(document.activeElement)||this.hide()}.bind(n)),i.addEventListener(“wheel”,a),n}return i(t,e),t.prototype.addToEditor=function(e){e.on(“mousemove”,this.onMouseMove),e.on(“mousedown”,this.hide),e.renderer.getMouseEventTarget().addEventListener(“mouseout”,this.onMouseOut,!0)},t.prototype.removeFromEditor=function(e){e.off(“mousemove”,this.onMouseMove),e.off(“mousedown”,this.hide),e.renderer.getMouseEventTarget().removeEventListener(“mouseout”,this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},t.prototype.onMouseMove=function(e,t){this.lastEvent=e,this.lastT=Date.now();var n=t.$mouseHandler.isMousePressed;if(this.isOpen){var i=this.lastEvent&&this.lastEvent.getDocumentPosition();this.range&&this.range.contains(i.row,i.column)&&!n&&!this.isOutsideOfText(this.lastEvent)||this.hide()}this.timeout||n||(this.lastEvent=e,this.timeout=setTimeout(this.waitForHover,this.idleTime))},t.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var e=Date.now()-this.lastT;this.idleTime-e>10?this.timeout=setTimeout(this.waitForHover,this.idleTime-e):(this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor))},t.prototype.isOutsideOfText=function(e){var t=e.editor,n=e.getDocumentPosition(),i=t.session.getLine(n.row);if(n.column==i.length){var o=t.renderer.pixelToScreenCoordinates(e.clientX,e.clientY),r=t.session.documentToScreenPosition(n.row,n.column);if(r.column!=o.column||r.row!=o.row)return!0}return!1},t.prototype.setDataProvider=function(e){this.$gatherData=e},t.prototype.showForRange=function(e,t,n,i){var o=10;if(!(i&&i!=this.lastEvent||this.isOpen&&document.activeElement==this.getElement())){var r=e.renderer;this.isOpen||(h.addPopup(this),this.$registerCloseEvents(),this.setTheme(r.theme)),this.isOpen=!0,this.addMarker(t,e.session),this.range=s.fromPoints(t.start,t.end);var a=r.textToScreenCoordinates(t.start.row,t.start.column),l=r.scroller.getBoundingClientRect();a.pageX<l.left&&(a.pageX=l.left);var c=this.getElement();c.innerHTML=“”,c.appendChild(n),c.style.maxHeight=“”,c.style.display=“block”;var u=c.clientHeight,d=c.clientWidth,p=window.innerHeight-a.pageY-r.lineHeight,g=!0;a.pageY-u<0&&a.pageY<p&&(g=!1),c.style.maxHeight=(g?a.pageY:p)-o+“px”,c.style.top=g?“”:a.pageY+r.lineHeight+“px”,c.style.bottom=g?window.innerHeight-a.pageY+“px”:“”,c.style.left=Math.min(a.pageX,window.innerWidth-d-o)+“px”}},t.prototype.addMarker=function(e,t){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=t,this.marker=t&&t.addMarker(e,“ace_highlight-marker”,“text”)},t.prototype.hide=function(e){(e||document.activeElement!=this.getElement())&&(e&&e.target&&(“keydown”!=e.type||e.ctrlKey||e.metaKey)&&this.$element.contains(e.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,h.removePopup(this))))},t.prototype.$registerCloseEvents=function(){window.addEventListener(“keydown”,this.hide,!0),window.addEventListener(“wheel”,this.hide,!0),window.addEventListener(“mousedown”,this.hide,!0)},t.prototype.$removeCloseEvents=function(){window.removeEventListener(“keydown”,this.hide,!0),window.removeEventListener(“wheel”,this.hide,!0),window.removeEventListener(“mousedown”,this.hide,!0)},t.prototype.onMouseOut=function(e){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&e.relatedTarget&&!this.getElement().contains(e.relatedTarget)&&(e&&e.currentTarget.contains(e.relatedTarget)||e.relatedTarget.classList.contains(“ace_content”)||this.hide())},t}©;t.HoverTooltip=u})),ace.define(“ace/mouse/default_gutter_handler”,,(function(e,t){“use strict”;function n(e){function t(){var t=r.getDocumentPosition().row;if(t==l.session.getLength()){var o=l.renderer.pixelToScreenCoordinates(0,r.y).row,s=r.$pos;if(o>l.session.documentToScreenRow(s.row,s.column))return n()}if(u.showTooltip(t),u.isOpen)if(l.on(“mousewheel”,n),e.$tooltipFollowsMouse)i®;else{var a=r.getGutterRow(),h=c.$lines.get(a);if(h){var d=h.element.querySelector(“.ace_gutter_annotation”).getBoundingClientRect(),p=u.getElement().style;p.left=d.right+“px”,p.top=d.bottom+“px”}else i®}}function n(){o&&(o=clearTimeout(o)),u.isOpen&&(u.hideTooltip(),l.off(“mousewheel”,n))}function i(e){u.setPosition(e.x,e.y)}var o,r,l=e.editor,c=l.renderer.$gutterLayer,u=new h(l);e.editor.setDefaultHandler(“guttermousedown”,(function(t){if(l.isFocused()&&0==t.getButton()&&“foldWidgets”!=c.getRegion(t)){var n=t.getDocumentPosition().row,i=l.session.selection;if(t.getShiftKey())i.selectTo(n,0);else{if(2==t.domEvent.detail)return l.selectAll(),t.preventDefault();e.$clickSelection=l.selection.getLineRange(n)}return e.setState(“selectByLines”),e.captureMouse(t),t.preventDefault()}})),e.editor.setDefaultHandler(“guttermousemove”,(function(a){var l=a.domEvent.target||a.domEvent.srcElement;if(s.hasCssClass(l,“ace_fold-widget”))return n();u.isOpen&&e.$tooltipFollowsMouse&&i(a),r=a,o||(o=setTimeout((function(){o=null,r&&!e.isMousePressed?t():n()}),50))})),a.addListener(l.renderer.$gutter,“mouseout”,(function(){r=null,u.isOpen&&!o&&(o=setTimeout((function(){o=null,n()}),50))}),l),l.on(“changeSession”,n),l.on(“input”,n)}var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e=t)},i(e,t)},function(e,t){function n(){this.constructor=e}if(“function”!=typeof t&&null!==t)throw new TypeError(“Class extends value ”+String(t)+“ is not a constructor or null”);i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__values||function(e){var t=“function”==typeof Symbol&&Symbol.iterator,n=t&&e,i=0;if(n)return n.call(e);if(e&&“number”==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e,done:!e}}};throw new TypeError(t?“Object is not iterable.”:“Symbol.iterator is not defined.”)},s=e(“../lib/dom”),a=e(“../lib/event”),l=e(“../tooltip”).Tooltip,c=e(“../config”).nls;t.GutterHandler=n;var h=function(e){function t(t){var n=e.call(this,t.container)||this;return n.editor=t,n}return o(t,e),t.prototype.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,o=this.getWidth(),r=this.getHeight();(e+=15)+o>n&&(e-=e+o-n),(t+=15)+r>i&&(t-=20+r),l.prototype.setPosition.call(this,e,t)},Object.defineProperty(t,“annotationLabels”,{get:function(){return{error:{singular:c(“gutter-tooltip.aria-label.error.singular”,“error”),plural:c(“gutter-tooltip.aria-label.error.plural”,“errors”)},warning:{singular:c(“gutter-tooltip.aria-label.warning.singular”,“warning”),plural:c(“gutter-tooltip.aria-label.warning.plural”,“warnings”)},info:{singular:c(“gutter-tooltip.aria-label.info.singular”,“information message”),plural:c(“gutter-tooltip.aria-label.info.plural”,“information messages”)}}},enumerable:!1,configurable:!0}),t.prototype.showTooltip=function(e){var n,i=this.editor.renderer.$gutterLayer,o=i.$annotations;n=o?{text:Array.from(o.text),type:Array.from(o.type)}:{text:[],type:};var r=i.session.getFoldLine(e);if(r&&i.$showFoldedAnnotations){for(var s,a={error:[],warning:,info:[]},l=e+1;l<=r.end.row;l++)if(i.$annotations)for(var c=0;c<i.$annotations.text.length;c++){var h=i.$annotations.type;a.push(i.$annotations.text),“error”!==h?“warning”!==h||(s=“warning_fold”):s=“error_fold”}if(“error_fold”===s||“warning_fold”===s){ var u=“”.concat(t.annotationsToSummaryString(a),“ in folded code.”);n.text.push(u),n.type.push(s)}}if(0===n.text.length)return this.hide();var d={error:[],warning:,info:[]},p=i.$useSvgGutterIcons?“ace_icon_svg”:“ace_icon”;for(l=0;l<n.text.length;l++){var g=“<span class=‘ace_”.concat(n.type,“ ”).concat(p,“’ aria-label=‘”).concat(t.annotationLabels[n.type.replace(“_fold”,“”)].singular,“’ role=img> </span> ”).concat(n.text);d[n.type.replace(“_fold”,“”)].push(g)}var m=[].concat(d.error,d.warning,d.info).join(“
”);this.setHtml(m),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(e){var n,i,o=[],s=;try{for(var a=r(s),l=a.next();!l.done;l=a.next()){var c=l.value;if(e.length){var h=1===e.length?t.annotationLabels.singular:t.annotationLabels.plural;o.push(“”.concat(e.length,“ ”).concat(h))}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o.join(“, ”)},t}(l);t.GutterTooltip=h})),ace.define(“ace/mouse/mouse_event”,,(function(e,t){“use strict”;var n=e(“../lib/event”),i=e(“../lib/useragent”),o=function(){function e(e,t){this.speed,this.wheelX,this.wheelY,this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return e.prototype.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},e.prototype.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},e.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},e.prototype.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},e.prototype.getGutterRow=function(){var e=this.getDocumentPosition().row;return this.editor.session.documentToScreenRow(e,0)-this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0)},e.prototype.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},e.prototype.getButton=function(){return n.getButton(this.domEvent)},e.prototype.getShiftKey=function(){return this.domEvent.shiftKey},e.prototype.getAccelKey=function(){return i.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},e}();t.MouseEvent=o})),ace.define(“ace/mouse/dragdrop_handler”,,(function(e,t){“use strict”;function n(e){function t(e,t){var n=Date.now(),o=!t||e.row!=t.row,r=!t||e.column!=t.column;!L||o||r?(f.moveCursorToPosition(e),L=n,M={x:b,y:w}):i(M.x,M.y,b,w)>c?L=null:n-L>=l&&(f.renderer.scrollCursorIntoView(),L=null)}function n(e,t){var n=Date.now(),i=f.renderer.layerConfig.lineHeight,o=f.renderer.layerConfig.characterWidth,r=f.renderer.scroller.getBoundingClientRect(),s={x:{left:b-r.left,right:r.right-b},y:{top:w-r.top,bottom:r.bottom-w}},l=Math.min(s.x.left,s.x.right),c=Math.min(s.y.top,s.y.bottom),h={row:e.row,column:e.column};l/o<=2&&(h.column+=s.x.left<s.x.right?-3:2),c/i<=1&&(h.row+=s.y.top<s.y.bottom?-1:1);var u=e.row!=h.row,d=e.column!=h.column,p=!t||e.row!=t.row;u||d&&!p?A?n-A>=a&&f.renderer.scrollCursorIntoView(h):A=n:A=null}function h(){var e=C;t(C=f.renderer.screenToTextCoordinates(b,w),e),n(C,e)}function u(){k=f.selection.toOrientedRange(),y=f.session.addMarker(k,“ace_selection”,f.getSelectionStyle()),f.clearSelection(),f.isFocused()&&f.renderer.$cursorLayer.setBlinking(!1),clearInterval(x),h(),x=setInterval(h,20),T=0,r.addListener(document,“mousemove”,p)}function d(){clearInterval(x),f.session.removeMarker(y),y=null,f.selection.fromOrientedRange(k),f.isFocused()&&!S&&f.$resetCursorStyle(),k=null,C=null,T=0,A=null,L=null,r.removeListener(document,“mousemove”,p)}function p(){null==R&&(R=setTimeout((function(){null!=R&&y&&d()}),20))}function g(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return“text/plain”==e||“Text”==e}))}function m(e){var t=,n=,i=s.isMac?e.altKey:e.ctrlKey,o=“uninitialized”;try{o=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var r=“none”;return i&&t.indexOf(o)>=0?r=“copy”:n.indexOf(o)>=0?r=“move”:t.indexOf(o)>=0&&(r=“copy”),r}var f=e.editor,v=o.createElement(“div”);v.style.cssText=“top:-100px;position:absolute;z-index:2147483647;opacity:0.5”,v.textContent=“xa0”,.forEach((function(t){e=this}),this),f.on(“mousedown”,this.onMouseDown.bind(e));var y,b,w,x,k,C,$,S,A,L,M,_=f.container,T=0;this.onDragStart=function(e){if(this.cancelDrag||!_.draggable){var t=this;return setTimeout((function(){t.startSelect(),t.captureMouse(e)}),0),e.preventDefault()}k=f.getSelectionRange();var n=e.dataTransfer;n.effectAllowed=f.getReadOnly()?“copy”:“copyMove”,f.container.appendChild(v),n.setDragImage&&n.setDragImage(v,0,0),setTimeout((function(){f.container.removeChild(v)})),n.clearData(),n.setData(“Text”,f.session.getTextRange()),S=!0,this.setState(“drag”)},this.onDragEnd=function(e){if(_.draggable=!1,S=!1,this.setState(null),!f.getReadOnly()){var t=e.dataTransfer.dropEffect;$||“move”!=t||f.session.remove(f.getSelectionRange()),f.$resetCursorStyle()}this.editor.unsetStyle(“ace_dragging”),this.editor.renderer.setCursorStyle(“”)},this.onDragEnter=function(e){if(!f.getReadOnly()&&g(e.dataTransfer))return b=e.clientX,w=e.clientY,y||u(),T++,e.dataTransfer.dropEffect=$=m(e),r.preventDefault(e)},this.onDragOver=function(e){if(!f.getReadOnly()&&g(e.dataTransfer))return b=e.clientX,w=e.clientY,y||(u(),T++),null!==R&&(R=null),e.dataTransfer.dropEffect=$=m(e),r.preventDefault(e)},this.onDragLeave=function(e){if(–T<=0&&y)return d(),$=null,r.preventDefault(e)},this.onDrop=function(e){if©{var t=e.dataTransfer;if(S)switch($){case“move”:k=k.contains(C.row,C.column)?{start:C,end:C}:f.moveText(k,C);break;case“copy”:k=f.moveText(k,C,!0)}else{var n=t.getData(“Text”);k={start:C,end:f.session.insert(C,n)},f.focus(),$=null}return d(),r.preventDefault(e)}},r.addListener(_,“dragstart”,this.onDragStart.bind(e),f),r.addListener(_,“dragend”,this.onDragEnd.bind(e),f),r.addListener(_,“dragenter”,this.onDragEnter.bind(e),f),r.addListener(_,“dragover”,this.onDragOver.bind(e),f),r.addListener(_,“dragleave”,this.onDragLeave.bind(e),f),r.addListener(_,“drop”,this.onDrop.bind(e),f);var R=null}function i(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}var o=e(“../lib/dom”),r=e(“../lib/event”),s=e(“../lib/useragent”),a=200,l=200,c=5;(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(){this.editor.$resetCursorStyle(),this.editor.unsetStyle(“ace_dragging”),this.editor.renderer.setCursorStyle(“”),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle(“ace_dragging”);var t=s.isWin?“default”:“move”;e.renderer.setCursorStyle(t),this.setState(“dragReady”)},this.onMouseDrag=function(){var e=this.editor.container;s.isIE&&“dragReady”==this.state&&(i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&e.dragDrop());“dragWait”===this.state&&(i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),i=e.getButton();if(1===(e.domEvent.detail||1)&&0===i&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var o=e.domEvent.target||e.domEvent.srcElement;if(“unselectable”in o&&(o.unselectable=“on”),t.getDragDelay()){if(s.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState(“dragWait”)}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(n.prototype),t.DragdropHandler=n})),ace.define(“ace/mouse/touch_handler”,,(function(e,t){“use strict”;var n=e(“./mouse_event”).MouseEvent,i=e(“../lib/event”),o=e(“../lib/dom”);t.addTouchListeners=function(e,t){function r(){var e=window.navigator&&window.navigator.clipboard,n=!1,i=function(){var i=t.getCopyText(),r=t.session.getUndoManager().hasUndo();b.replaceChild(o.buildDom(n?[“span”,!i&&[“span”,{class:“ace_mobile-button”,action:“selectall”},“Select All”],i&&,i&&,e&&,r&&,[“span”,{class:“ace_mobile-button”,action:“find”},“Find”],]:[“span”]),b.firstChild)},r=function(o){var r=o.target.getAttribute(“action”);if(“more”==r||!n)return n=!n,i();“paste”==r?e.readText().then((function(e){t.execCommand(r,e)})):r&&(“cut”!=r&&“copy”!=r||(e?e.writeText(t.getCopyText()):document.execCommand(“copy”)),t.execCommand®),b.firstChild.style.display=“none”,n=!1,“openCommandPalette”!=r&&t.focus()};b=o.buildDom([“div”,{class:“ace_mobile-menu”,ontouchstart:function(e){w=“menu”,e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),r(e)},onclick:r},,[“span”,{class:“ace_mobile-button”,action:“more”},“…”]],t.container)}function s(){b||r();var e=t.selection.cursor,n=t.renderer.textToScreenCoordinates(e.row,e.column),i=t.renderer.textToScreenCoordinates(0,0).pageX,o=t.renderer.scrollLeft,s=t.container.getBoundingClientRect();b.style.top=n.pageY-s.top-3+“px”,n.pageX-s.left<s.width-70?(b.style.left=“”,b.style.right=“10px”):(b.style.right=“”,b.style.left=i+o-s.left+“px”),b.style.display=“”,b.firstChild.style.display=“none”,t.on(“input”,a)}function a(){b&&(b.style.display=“none”),t.off(“input”,a)}function l(){m=null,clearTimeout(m);var e=t.selection.getRange(),n=e.contains(v.row,v.column);!e.isEmpty()&&n||(t.selection.moveToPosition(v),t.selection.selectWord()),w=“wait”,s()}function c(){m=null,clearTimeout(m),t.selection.moveToPosition(v);var e=k>=2?t.selection.getLineRange(v.row):t.session.getBracketRange(v);e&&!e.isEmpty()?t.selection.setRange(e):t.selection.selectWord(),w=“wait”}function h(){x+=60,f=setInterval((function(){x–<=0&&(clearInterval(f),f=null),Math.abs©<.01&&(C=0),Math.abs($)<.01&&($=0),x<20&&(C*=.9),x<20&&($*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*C,10*$),e==t.session.getScrollTop()&&(x=0)}),10)}var u,d,p,g,m,f,v,y,b,w=“scroll”,x=0,k=0,C=0,$=0;i.addListener(e,“contextmenu”,(function(){y&&t.textInput.getElement().focus()}),t),i.addListener(e,“touchstart”,(function(e){var i=e.touches;if(m||i.length>1)return clearTimeout(m),m=null,p=-1,void(w=“zoom”);y=t.$mouseHandler.isMousePressed=!0;var o=t.renderer.layerConfig.lineHeight,r=t.renderer.layerConfig.lineHeight,s=e.timeStamp;g=s;var a=i,h=a.clientX,f=a.clientY;Math.abs(u-h)+Math.abs(d-f)>o&&(p=-1),u=e.clientX=h,d=e.clientY=f,C=$=0;var b=new n(e,t);if(v=b.getDocumentPosition(),s-p<500&&1==i.length&&!x)k++,e.preventDefault(),e.button=0,c();else{k=0;var S=t.selection.cursor,A=t.selection.isEmpty()?S:t.selection.anchor,L=t.renderer.$cursorLayer.getPixelPosition(S,!0),M=t.renderer.$cursorLayer.getPixelPosition(A,!0),_=t.renderer.scroller.getBoundingClientRect(),T=t.renderer.layerConfig.offset,R=t.renderer.scrollLeft,E=function(e,t){return(e/=r)*e+(t=t/o-.75)*t};if(e.clientX<_.left)return void(w=“zoom”);var I=E(e.clientX-_.left-L.left+R,e.clientY-_.top-L.top+T),O=E(e.clientX-_.left-M.left+R,e.clientY-_.top-M.top+T);I<3.5&&O<3.5&&(w=I>O?“cursor”:“anchor”),w=O<3.5?“anchor”:I<3.5?“cursor”:“scroll”,m=setTimeout(l,450)}p=s}),t),i.addListener(e,“touchend”,(function(){y=t.$mouseHandler.isMousePressed=!1,f&&clearInterval(f),“zoom”==w?(w=“”,x=0):m?(t.selection.moveToPosition(v),x=0,s()):“scroll”==w?(h(),a()):s(),clearTimeout(m),m=null}),t),i.addListener(e,“touchmove”,(function(e){m&&(clearTimeout(m),m=null);var i=e.touches;if(!(i.length>1||“zoom”==w)){var o=i,r=u-o.clientX,s=d-o.clientY;if(“wait”==w){if(!(r*r+s*s>4))return e.preventDefault();w=“cursor”}u=o.clientX,d=o.clientY,e.clientX=o.clientX,e.clientY=o.clientY;var a=e.timeStamp,l=a-g;if(g=a,“scroll”==w){var c=new n(e,t);c.speed=1,c.wheelX=r,c.wheelY=s,10*Math.abs®<Math.abs(s)&&(r=0),10*Math.abs(s)<Math.abs®&&(s=0),0!=l&&(C=r/l,$=s/l),t._emit(“mousewheel”,c),c.propagationStopped||(C=$=0)}else{var h=new n(e,t).getDocumentPosition();“cursor”==w?t.selection.moveCursorToPosition(h):“anchor”==w&&t.selection.setSelectionAnchor(h.row,h.column),t.renderer.scrollCursorIntoView(h),e.preventDefault()}}}),t)}})),ace.define(“ace/mouse/mouse_handler”,,(function(e,t){“use strict”;var n=e(“../lib/event”),i=e(“../lib/useragent”),o=e(“./default_handlers”).DefaultHandlers,r=e(“./default_gutter_handler”).GutterHandler,s=e(“./mouse_event”).MouseEvent,a=e(“./dragdrop_handler”).DragdropHandler,l=e(“./touch_handler”).addTouchListeners,c=e(“../config”),h=function(){function e(e){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var t=this;this.editor=e,new o(this),new r(this),new a(this);var s=function(){(!document.hasFocus||!document.hasFocus()||!e.isFocused()&&document.activeElement==(e.textInput&&e.textInput.getElement()))&&window.focus(),e.focus(),setTimeout((function(){e.isFocused()||e.focus()}))},c=e.renderer.getMouseEventTarget();n.addListener(c,“click”,this.onMouseEvent.bind(this,“click”),e),n.addListener(c,“mousemove”,this.onMouseMove.bind(this,“mousemove”),e),n.addMultiMouseDownListener(.filter(Boolean),,this,“onMouseEvent”,e),n.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,“mousewheel”),e),l(e.container,e);var h=e.renderer.$gutter;n.addListener(h,“mousedown”,this.onMouseEvent.bind(this,“guttermousedown”),e),n.addListener(h,“click”,this.onMouseEvent.bind(this,“gutterclick”),e),n.addListener(h,“dblclick”,this.onMouseEvent.bind(this,“gutterdblclick”),e),n.addListener(h,“mousemove”,this.onMouseEvent.bind(this,“guttermousemove”),e),n.addListener(c,“mousedown”,s,e),n.addListener(h,“mousedown”,s,e),i.isIE&&e.renderer.scrollBarV&&(n.addListener(e.renderer.scrollBarV.element,“mousedown”,s,e),n.addListener(e.renderer.scrollBarH.element,“mousedown”,s,e)),e.on(“mousemove”,(function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var i=e.renderer.screenToTextCoordinates(n.x,n.y),o=e.session.selection.getRange(),r=e.renderer;!o.isEmpty()&&o.insideStart(i.row,i.column)?r.setCursorStyle(“default”):r.setCursorStyle(“”)}}),e)}return e.prototype.onMouseEvent=function(e,t){this.editor.session&&this.editor._emit(e,new s(t,this.editor))},e.prototype.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new s(t,this.editor))},e.prototype.onMouseWheel=function(e,t){var n=new s(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},e.prototype.setState=function(e){this.state=e},e.prototype.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var o=this.editor,r=this.editor.renderer;r.$isMousePressed=!0;var a=this,l=function(e){if(e){if(i.isWebKit&&!e.which&&a.releaseMouse)return a.releaseMouse();a.x=e.clientX,a.y=e.clientY,t&&t(e),a.mouseEvent=new s(e,a.editor),a.$mouseMoved=!0}},c=function(e){o.off(“beforeEndOperation”,u),clearInterval(d),o.session&&h(),a&&a(e),a.state=“”,a.isMousePressed=r.$isMousePressed=!1,r.$keepTextAreaAtCursor&&r.$moveTextAreaToCursor(),a.$onCaptureMouseMove=a.releaseMouse=null,e&&a.onMouseEvent(“mouseup”,e),o.endOperation()},h=function(){a&&a(),a.$mouseMoved=!1};if(i.isOldIE&&“dblclick”==e.domEvent.type)return setTimeout((function(){c(e)}));var u=function(){a.releaseMouse&&o.curOp.command.name&&o.curOp.selectionChanged&&(a&&a(),a.state=“”,a.releaseMouse())};o.on(“beforeEndOperation”,u),o.startOperation({command:{name:“mouse”}}),a.$onCaptureMouseMove=l,a.releaseMouse=n.capture(this.editor.container,l,c);var d=setInterval(h,20)},e.prototype.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&“contextmenu”!=t.domEvent.type||(this.editor.off(“nativecontextmenu”,e),t&&t.domEvent&&n.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on(“nativecontextmenu”,e)},e.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},e}();h.prototype.releaseMouse=null,c.defineOptions(h.prototype,“mouseHandler”,{scrollSpeed:{initialValue:2},dragDelay:{initialValue:i.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=h})),ace.define(“ace/mouse/fold_handler”,,(function(e,t){“use strict”;var n=e(“../lib/dom”),i=function(){function e(e){e.on(“click”,(function(t){var i=t.getDocumentPosition(),o=e.session,r=o.getFoldAt(i.row,i.column,1);r&&(t.getAccelKey()?o.removeFold®:o.expandFold®,t.stop());var s=t.domEvent&&t.domEvent.target;s&&n.hasCssClass(s,“ace_inline_button”)&&n.hasCssClass(s,“ace_toggle_wrap”)&&(o.setOption(“wrap”,!o.getUseWrapMode()),e.renderer.scrollCursorIntoView())})),e.on(“gutterclick”,(function(t){if(“foldWidgets”==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,i=e.session;i.foldWidgets&&i.foldWidgets&&e.session.onFoldWidgetClick(n,t),e.isFocused()||e.focus(),t.stop()}})),e.on(“gutterdblclick”,(function(t){if(“foldWidgets”==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,i=e.session,o=i.getParentFoldRangeData(n,!0),r=o.range||o.firstRange;if®{n=r.start.row;var s=i.getFoldAt(n,i.getLine(n).length,1);s?i.removeFold(s):(i.addFold(“…”,r),e.renderer.scrollCursorIntoView({row:r.start.row,column:0}))}t.stop()}}))}return e}();t.FoldHandler=i})),ace.define(“ace/keyboard/keybinding”,,(function(e,t){“use strict”;var n=e(“../lib/keys”),i=e(“../lib/event”),o=function(){function e(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)}return e.prototype.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},e.prototype.setKeyboardHandler=function(e){var t=this.$handlers;if(t!=e){for(;t&&t!=this.$defaultHandler;)this.removeKeyboardHandler(t);this.addKeyboardHandler(e,1)}},e.prototype.addKeyboardHandler=function(e,t){if(e){“function”!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),null==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},e.prototype.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},e.prototype.getKeyboardHandler=function(){return this.$handlers},e.prototype.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map((function(n){return n.getStatusText&&n.getStatusText(t,e)||“”})).filter(Boolean).join(“ ”)},e.prototype.$callKeyboardHandlers=function(e,t,n,o){for(var r,s=!1,a=this.$editor.commands,l=this.$handlers.length;l–&&!((r=this.$handlers.handleKeyboard(this.$data,e,t,n,o))&&r.command&&((s=“null”==r.command||a.exec(r.command,this.$editor,r.args,o))&&o&&-1!=e&&1!=r.passEvent&&1!=r.command.passEvent&&i.stopEvent(o),s)););return s||-1!=e||(r={command:“insertstring”},s=a.exec(“insertstring”,this.$editor,t)),s&&this.$editor._signal&&this.$editor._signal(“keyboardActivity”,r),s},e.prototype.onCommandKey=function(e,t,i){var o=n.keyCodeToString(i);return this.$callKeyboardHandlers(t,o,i,e)},e.prototype.onTextInput=function(e){return this.$callKeyboardHandlers(-1,e)},e}();t.KeyBinding=o})),ace.define(“ace/lib/bidiutil”,,(function(e,t){“use strict”;function n(e,t,n,i){var p=s?d:u,g=null,m=null,f=null,v=0,y=null,b=-1,k=null,$=null,S=[];if(!i)for(k=0,i=;k<n;k++)i=r(e);for(a=s,l=!1,!1,c=!1,h=!1,$=0;$<n;$++){if(g=v,S=m=o(e,i,S,$),y=240&(v=p[m]),v&=15,t=f=p[5],y>0)if(16==y){for(k=b;k<$;k++)t=1;b=-1}else b=-1;if(p[6])-1==b&&(b=$);else if(b>-1){for(k=b;k<$;k++)t=f;b=-1}i==w&&(t=0),a|=f}if(h)for(k=0;k<n;k++)if(i==x){t=s;for(var A=k-1;A>=0&&i==C;A–)t=s}}function i(e,t,n){if(!(a<e))if(1!=e||s!=g||c)for(var i,o,r,l,h=n.length,u=0;u<h;){if(t>=e){for(i=u+1;i<h&&t>=e;)i++;for(o=u,r=i-1;o<r;o++,r–)l=n,n=n,n=l;u=i}u++}else n.reverse()}function o(e,t,n,i){var o,r,a,u,d=t;switch(d){case m:case f:l=!1;case b:case y:return d;case v:return l?y:v;case k:return l=!0,!0,f;case C:return b;case $:return i<1||i+1>=t.length||(o=n)!=v&&o!=y||(r=t)!=v&&r!=y?b:(l&&(r=y),r==o?r:b);case S:return(o=i>0?n:w)==v&&i+1<t.length&&t==v?v:b;case A:if(i>0&&n==v)return v;if(l)return b;for(u=i+1,a=t.length;u<a&&t==A;)u++;return u<a&&t==v?v:b;case L:for(a=t.length,u=i+1;u<a&&t==L;)u++;if(u<a){var p=e,g=p>=1425&&p<=2303||64286==p;if(o=t,g&&(o==f||o==k))return f}return i<1||(o=t)==w?b:n;case w:return l=!1,c=!0,s;case x:return h=!0,b;case M:case _:case R:case E:case T:l=!1;case I:return b}}function r(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?m:O:5==n?//.test(e)?f:m:6==n?//.test(e)?L://.test(e)?y:1642==t?A://.test(e)?v:k:32==n&&t<=8287?N:254==n&&t>=65136?k:b}var s=0,a=0,l=!1,c=!1,h=!1,u=[,[0,3,0,1,2,2,0],,[0,3,5,5,4,1,0],,[0,3,5,5,4,2,0]],d=[,[2,0,1,1,0,2,0],,[2,0,2,33,3,1,1]],p=0,g=1,m=0,f=1,v=2,y=3,b=4,w=5,x=6,k=7,C=8,$=9,S=10,A=11,L=12,M=13,_=14,T=15,R=16,E=17,I=18,O=,N=;t.L=m,t.R=f,t.EN=v,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT=“xb7”,t.doBidiReorder=function(e,o,r){if(e.length<2)return{};var a=e.split(“”),l=new Array(a.length),c=new Array(a.length),h=[];s=r?g:p,n(a,h,a.length,o);for(var u=0;u<l.length;l=u,u++);i(2,h,l),i(1,h,l);for(u=0;u<l.length-1;u++)o===y?h=t.AN:h===f&&(o>k&&o<M||o===b||o===I)?h=t.ON_R:u>0&&“u0644”===a&&/u0622|u0623|u0625|u0627/.test(a)&&(h=h=t.R_H,u++);a===t.DOT&&(h=t.B),“u202b”===a&&(h=t.RLE);for(u=0;u<l.length;u++)c=h[l];return{logicalFromVisual:l,bidiLevels:c}},t.hasBidiCharacters=function(e,t){for(var n=!1,i=0;i<e.length;i++)t=r(e.charAt(i)),n||t!=f&&t!=k&&t!=y||(n=!0);return n},t.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual==e)return n;return 0}})),ace.define(“ace/bidihandler”,,(function(e,t){“use strict”;var n=e(“./lib/bidiutil”),i=e(“./lib/lang”),o=//,r=function(){function e(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=n,this.charWidths=[],this.EOL=“xac”,this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line=“”,this.wrapIndent=0,this.EOF=“xb6”,this.RLE=“u202b”,this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=o.test(e.getValue())}return e.prototype.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},e.prototype.onChange=function(e){this.seenBidi?this.currentRow=null:“insert”==e.action&&o.test(e.lines.join(“n”))&&(this.seenBidi=!0,this.currentRow=null)},e.prototype.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);n>=0&&(e=this.session.$docRowCache)}return e},e.prototype.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,i=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-e>0&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===i;)i=n,e++;else e=this.currentRow;return e},e.prototype.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var o=e===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var r=this.session.$wrapData;r&&(void 0===t&&(t=this.getSplitIndex()),t>0&&r.length?(this.wrapIndent=r.indent,this.wrapOffset=this.wrapIndent*this.charWidths,this.line=t<r.length?this.line.substring(r,r):this.line.substring(r)):this.line=this.line.substring(0,r),t==r.length&&(this.line+=this.showInvisibles?o:n.DOT))}else this.line+=this.showInvisibles?o:n.DOT;var s,a=this.session,l=0;this.line=this.line.replace(/t|[u1100-u2029, u202F-uFFE6]/g,(function(e,t){return“t”===e||a.isFullWidth(e.charCodeAt(0))?(s=“t”===e?a.getScreenTabSize(t+l):2,l+=s-1,i.stringRepeat(n.DOT,s)):e})),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==n.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},e.prototype.updateBidiMap=function(){var e=[];n.hasBidiCharacters(this.line,e)||this.isRtlDir?this.bidiMap=n.doBidiReorder(this.line,e,this.isRtlDir):this.bidiMap={}},e.prototype.markAsDirty=function(){this.currentRow=null},e.prototype.updateCharacterWidths=function(e){if(this.characterWidth!==e.$characterSize.width){this.fontMetrics=e;var t=this.characterWidth=e.$characterSize.width,i=e.$measureCharWidth(“u05d4”);this.charWidths=this.charWidths=this.charWidths=t,this.charWidths=this.charWidths=i,this.charWidths=.45*i,this.charWidths=this.charWidths=0,this.currentRow=null}},e.prototype.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},e.prototype.setEolChar=function(e){this.EOL=e},e.prototype.setContentWidth=function(e){this.contentWidth=e},e.prototype.isRtlLine=function(e){return!!this.$isRtl||(null!=e?this.session.getLine(e).charAt(0)==this.RLE:this.isRtlDir)},e.prototype.setRtlDirection=function(e,t){for(var n=e.getCursorPosition(),i=e.selection.getSelectionAnchor().row;i<=n.row;i++)t||e.session.getLine(i).charAt(0)!==e.session.$bidiHandler.RLE?t&&e.session.getLine(i).charAt(0)!==e.session.$bidiHandler.RLE&&e.session.doc.insert({column:0,row:i},e.session.$bidiHandler.RLE):e.session.doc.removeInLine(i,0,1)},e.prototype.getPosLeft=function(e){e-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,i=e>t?this.session.getOverwrite()?e:e-1:t,o=n.getVisualFromLogicalIdx(i,this.bidiMap),r=this.bidiMap.bidiLevels,s=0;!this.session.getOverwrite()&&e<=t&&r%2!=0&&o++;for(var a=0;a<o;a++)s+=this.charWidths[r];return!this.session.getOverwrite()&&e>t&&r%2==0&&(s+=this.charWidths[r]),this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(s+=this.rtlLineOffset),s},e.prototype.getSelections=function(e,t){var n,i=this.bidiMap,o=i.bidiLevels,r=[],s=0,a=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,h=!1,u=0;this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var d,p=0;p<o.length;p++)d=i.logicalFromVisual,n=o,(c=d>=a&&d<l)&&!h?u=s:!c&&h&&r.push({left:u,width:s-u}),s+=this.charWidths,h=c;if(c&&p===o.length&&r.push({left:u,width:s-u}),this.isRtlDir)for(var g=0;g<r.length;g++)r.left+=this.rtlLineOffset;return r},e.prototype.offsetToCol=function(e){this.isRtlDir&&(e-=this.rtlLineOffset);var t=0,n=(e=Math.max(e,0),0),i=0,o=this.bidiMap.bidiLevels,r=this.charWidths[o];for(this.wrapIndent&&(e-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);e>n+r/2;){if(n+=r,i===o.length-1){r=0;break}r=this.charWidths[o]}return i>0&&o%2!=0&&o%2==0?(e<n&&i–,t=this.bidiMap.logicalFromVisual):i>0&&o%2==0&&o%2!=0?t=1+(e>n?this.bidiMap.logicalFromVisual:this.bidiMap.logicalFromVisual):this.isRtlDir&&i===o.length-1&&0===r&&o%2==0||!this.isRtlDir&&0===i&&o%2!=0?t=1+this.bidiMap.logicalFromVisual:(i>0&&o%2!=0&&0!==r&&i–,t=this.bidiMap.logicalFromVisual),0===t&&this.isRtlDir&&t++,t+this.wrapIndent},e}();t.BidiHandler=r})),ace.define(“ace/selection”,,(function(e,t){“use strict”;var n=e(“./lib/oop”),i=e(“./lib/lang”),o=e(“./lib/event_emitter”).EventEmitter,r=e(“./range”).Range,s=function(){function e(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on(“change”,(function(e){t.$cursorChanged=!0,t.$silent||t._emit(“changeCursor”),t.$isEmpty||t.$silent||t._emit(“changeSelection”),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.anchor.on(“change”,(function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit(“changeSelection”)}))}return e.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},e.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},e.prototype.getCursor=function(){return this.lead.getPosition()},e.prototype.setAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},e.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},e.prototype.getSelectionLead=function(){return this.lead.getPosition()},e.prototype.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},e.prototype.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?r.fromPoints(t,t):this.isBackwards()?r.fromPoints(t,e):r.fromPoints(e,t)},e.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit(“changeSelection”))},e.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},e.prototype.setRange=function(e,t){var n=t?e.end:e.start,i=t?e.start:e.end;this.$setSelection(n.row,n.column,i.row,i.column)},e.prototype.$setSelection=function(e,t,n,i){if(!this.$silent){var o=this.$isEmpty,s=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,i),this.$isEmpty=!r.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit(“changeCursor”),(this.$cursorChanged||this.$anchorChanged||o!=this.$isEmpty||s)&&this._emit(“changeSelection”)}},e.prototype.$moveSelection=function(e){var t=this.lead ;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},e.prototype.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},e.prototype.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},e.prototype.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},e.prototype.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},e.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},e.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},e.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},e.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},e.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},e.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},e.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},e.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},e.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},e.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},e.prototype.getWordRange=function(e,t){if(void 0===t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},e.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},e.prototype.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},e.prototype.getLineRange=function(e,t){var n,i=“number”==typeof e?e:this.lead.row,o=this.session.getFoldLine(i);return o?(i=o.start.row,n=o.end.row):n=i,!0===t?new r(i,0,n,this.session.getLine(n).length):new r(i,0,n+1,0)},e.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},e.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},e.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},e.prototype.wouldMoveIntoSoftTab=function(e,t,n){var i=e.column,o=e.column+t;return n<0&&(i=e.column-t,o=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(i,o).split(“ ”).length-1==t},e.prototype.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},e.prototype.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize();t=this.lead;this.wouldMoveIntoSoftTab(t,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},e.prototype.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),i=this.session.screenToDocumentPosition(n,0),o=this.session.getDisplayLine(e,null,i.row,i.column).match(/^s*/);o.length==t||this.session.$useEmacsStyleLineStart||(i.column+=o.length),this.moveCursorToPosition(i)},e.prototype.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var i=n.search(/s+$/);i>0&&(t.column=i)}}this.moveCursorTo(t.row,t.column)},e.prototype.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},e.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},e.prototype.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var o=this.session.getFoldAt(e,t,1);if(o)this.moveCursorTo(o.end.row,o.end.column);else{if(this.session.nonTokenRe.exec(i)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(i)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},e.prototype.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var o=this.session.getFoldStringAt(t,n,-1);null==o&&(o=this.doc.getLine(t).substring(0,n));var r=i.stringReverse(o);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec®&&(n-=this.session.nonTokenRe.lastIndex,r=r.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(t>0&&this.moveCursorWordLeft());this.session.tokenRe.exec®&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},e.prototype.$shortWordEndIndex=function(e){var t,n=0,i=/s/,o=this.session.tokenRe;if(o.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e)&&i.test(t);)n++;if(n<1)for(o.lastIndex=0;(t=e)&&!o.test(t);)if(o.lastIndex=0,n++,i.test(t)){if(n>2){n–;break}for(;(t=e)&&i.test(t);)n++;if(n>2)break}}return o.lastIndex=0,n},e.prototype.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t),o=this.session.getFoldAt(e,t,1);if(o)return this.moveCursorTo(o.end.row,o.end.column);if(t==n.length){var r=this.doc.getLength();do{e++,i=this.doc.getLine(e)}while(e<r&&/^s*$/.test(i));/^s+/.test(i)||(i=“”),t=0}var s=this.$shortWordEndIndex(i);this.moveCursorTo(e,t+s)},e.prototype.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var o=this.session.getLine(t).substring(0,n);if(0===n){do{t–,o=this.doc.getLine(t)}while(t>0&&/^s*$/.test(o));n=o.length,/s+$/.test(o)||(o=“”)}var r=i.stringReverse(o),s=this.$shortWordEndIndex®;return this.moveCursorTo(t,n-s)},e.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},e.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},e.prototype.moveCursorBy=function(e,t){var n,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(n/this.session.$bidiHandler.charWidths)):n=i.column*this.session.$bidiHandler.charWidths),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets){var o=this.session.lineWidgets;e<0?e-=o.rowsAbove||0:e>0&&(e+=o.rowCount-(o.rowsAbove||0))}var r=this.session.screenToDocumentPosition(i.row+e,i.column,n);0!==e&&0===t&&r.row===this.lead.row&&(r.column,this.lead.column),this.moveCursorTo(r.row,r.column+t,0===t)},e.prototype.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},e.prototype.moveCursorTo=function(e,t,n){var i=this.session.getFoldAt(e,t,1);i&&(e=i.start.row,t=i.start.column),this.$keepDesiredColumnOnChange=!0;var o=this.session.getLine(e);//.test(o.charAt(t))&&o.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},e.prototype.moveCursorToScreen=function(e,t,n){var i=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(i.row,i.column,n)},e.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},e.prototype.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},e.prototype.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},e.prototype.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return r.fromPoints(t,n)}catch(e){return r.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},e.prototype.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else(e=this.getRange()).isBackwards=this.isBackwards();return e},e.prototype.fromJSON=function(e){if(null==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e);for(var t=e.length;t–;){var n=r.fromPoints(e.start,e.end);e.isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},e.prototype.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t–;)if(!this.ranges.isEqual(e))return!1;return!0},e}();s.prototype.setSelectionAnchor=s.prototype.setAnchor,s.prototype.getSelectionAnchor=s.prototype.getAnchor,s.prototype.setSelectionRange=s.prototype.setRange,n.implement(s.prototype,o),t.Selection=s})),ace.define(“ace/tokenizer”,,(function(e,t){“use strict”;var n=e(“./lib/report_error”).reportError,i=2e3,o=function(){function e(e){for(var t in this.splitRegex,this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states,i=[],o=0,r=this.matchMappings={defaultToken:“text”},s=“g”,a=[],l=0;l<n.length;l++){var c=n;if(c.defaultToken&&(r.defaultToken=c.defaultToken),c.caseInsensitive&&-1===s.indexOf(“i”)&&(s+=“i”),c.unicode&&-1===s.indexOf(“u”)&&(s+=“u”),null!=c.regex){c.regex instanceof RegExp&&(c.regex=c.regex.toString().slice(1,-1));var h=c.regex,u=new RegExp(“(?:(”h
“)|(.))”).exec(“a”).length-2;Array.isArray(c.token)?1==c.token.length||1==u?c.token=c.token:u-1!=c.token.length?(this.reportError(“number of classes and regexp groups doesn’t match”,{rule:c,groupCount:u-1}),c.token=c.token):(c.tokenArray=c.token,c.token=null,c.onMatch=this.$arrayTokens):“function”!=typeof c.token||c.onMatch||(c.onMatch=u>1?this.$applyToken:c.token),u>1&&(/\d/.test(c.regex)?h=c.regex.replace(/\(+)/g,(function(e,t){return“\”+(parseInt(t,10)+o+1)})):(u=1,h=this.removeCapturingGroups(c.regex)),c.splitRegex||“string”==typeof c.token||a.push©),r=l,o+=u,i.push(h),c.onMatch||(c.onMatch=null)}}i.length||(r=0,i.push(“$”)),a.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,s)}),this),this.regExps=new RegExp(“(”+i.join(“)|(”)+“)|($)”,s)}}return e.prototype.$setMaxTokenCount=function(e){i=0|e},e.prototype.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if(“string”==typeof n)return;for(var i=[],o=0,r=n.length;o<r;o++)t&&(i={type:n,value:t});return i},e.prototype.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return“text”;for(var n=[],i=this.tokenArray,o=0,r=i.length;o<r;o++)t&&(n={type:i,value:t});return n},e.prototype.removeCapturingGroups=function(e){return e.replace(/\.|[(?:\.|])*|(?[:=!<]|(()/g,(function(e,t){return t?“(?:”:e}))},e.prototype.createSplitterRegexp=function(e,t){if(-1!=e.indexOf(“(?=”)){var n=0,i=!1,o={};e.replace(/(\.)|(((?:?)?)|())|([[]])/g,(function(e,t,r,s,a,l){return i?i=“]”!=a:a?i=!0:s?(n==o.stack&&(o.end=l+1,o.stack=-1),n–):r&&(n++,1!=r.length&&(o.stack=n,o.start=l)),e})),null!=o.end&&/^)*$/.test(e.substr(o.end))&&(e=e.substring(0,o.start)+e.substr(o.end))}return“^”!=e.charAt(0)&&(e=“^”+e),“$”!=e.charAt(e.length-1)&&(e+=“$”),new RegExp(e,(t||“”).replace(“g”,“”))},e.prototype.getLineTokens=function(e,t){if(t&&“string”!=typeof t){var n=t.slice(0);“#tmp”===(t=n)&&(n.shift(),t=n.shift())}else n=[];var o=t||“start”,r=this.states;r||(o=“start”,r=this.states);var s=this.matchMappings,a=this.regExps;a.lastIndex=0;for(var l,c=[],h=0,u=0,d={type:null,value:“”};l=a.exec(e);){var p=s.defaultToken,g=null,m=l,f=a.lastIndex;if(f-m.length>h){var v=e.substring(h,f-m.length);d.type==p?d.value+=v:(d.type&&c.push(d),d={type:p,value:v})}for(var y=0;y<l.length-2;y++)if(void 0!==l){p=(g=r[s]).onMatch?g.onMatch(m,o,n,e):g.token,g.next&&(o=“string”==typeof g.next?g.next:g.next(o,n),(r=this.states)||(this.reportError(“state doesn’t exist”,o),o=“start”,r=this.states),s=this.matchMappings,h=f,(a=this.regExps).lastIndex=f),g.consumeLineEnd&&(h=f);break}if(m)if(“string”==typeof p)g&&!1===g.merge||d.type!==p?(d.type&&c.push(d),d={type:p,value:m}):d.value+=m;else if(p){d.type&&c.push(d),d={type:null,value:“”};for(y=0;y<p.length;y++)c.push(p)}if(h==e.length)break;if(h=f,u++>i){for(u>2*e.length&&this.reportError(“infinite loop with in ace tokenizer”,{startState:t,line:e});h<e.length;)d.type&&c.push(d),d={value:e.substring(h,h+=500),type:“overflow”};o=“start”,n=[];break}}return d.type&&c.push(d),n.length>1&&n!==o&&n.unshift(“#tmp”,o),{tokens:c,state:n.length?n:o}},e}();o.prototype.reportError=n,t.Tokenizer=o})),ace.define(“ace/mode/text_highlight_rules”,,(function(e,t){“use strict”;var n,i=e(“../lib/deep_copy”).deepCopy;n=function(){this.$rules={start:}},function(){this.addRules=function(e,t){if(t)for(var n in e){for(var i=e,o=0;o<i.length;o++){var r=i;(r.next||r.onMatch)&&(“string”==typeof r.next&&0!==r.next.indexOf(t)&&(r.next=t+r.next),r.nextState&&0!==r.nextState.indexOf(t)&&(r.nextState=t+r.nextState))}this.$rules=i}else for(var n in e)this.$rules=e},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,o,r){var s=“function”==typeof e?(new e).getRules():e;if(o)for(var a=0;a<o.length;a++)o=t+o;else for(var l in o=[],s)o.push(t+l);if(this.addRules(s,t),n){var c=Array.prototype;for(a=0;a<o.length;a++)c.apply(this.$rules[o],i(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var e=function(e,t){return(“start”!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){return t.shift(),t.shift()||“start”};this.normalizeRules=function(){function n®{var s=o;s.processed=!0;for(var a=0;a<s.length;a++){var l=s,c=null;Array.isArray(l)&&(c=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+“.end”,regex:l.end||l.start,next:“pop”}),l.token=l.token+“.start”,l.push=!0);var h=l.next||l.push;if(h&&Array.isArray(h)){var u=l.stateName;u||(“string”!=typeof(u=l.token)&&(u=u||“”),o&&(u+=i++)),o=h,l.next=u,n(u)}else“pop”==h&&(l.next=t);if(l.push&&(l.nextState=l.next||l.push,l.next=e,delete l.push),l.rules)for(var d in l.rules)o?o.push&&o.push.apply(o,l.rules):o=l.rules;var p=“string”==typeof l?l:l.include;if(p&&(“$self”===p&&(p=“start”),c=Array.isArray(p)?p.map((function(e){return o})):o),c){var g=.concat©;l.noEscape&&(g=g.filter((function(e){return!e.next}))),s.splice.apply(s,g),a–}l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||“text”,l.caseInsensitive),delete l.defaultToken)}}var i=0,o=this.$rules;Object.keys(o).forEach(n,this)},this.createKeywordMapper=function(e,t,n,i){var o=Object.create(null);return this.$keywordList=[],Object.keys(e).forEach((function(t){for(var r=e.split(i||“|”),s=r.length;s–;){var a=r;this.$keywordList.push(a),n&&(a=a.toLowerCase()),o=t}}),this),e=null,n?function(e){return o||t}:function(e){return o||t}},this.getKeywords=function(){return this.$keywords}}.call(n.prototype),t.TextHighlightRules=n})),ace.define(“ace/mode/behaviour”,,(function(e,t){“use strict”;var n;n=function(){this.$behaviours={}},function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours:this.$behaviours={}}this.$behaviours[t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e)this.add(t,n,e[n])},this.remove=function(e){this.$behaviours&&this.$behaviours&&delete this.$behaviours},this.inherit=function(e,t){if(“function”==typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e]&&(t[e]=this.$behaviours[e]);return t}return this.$behaviours}}.call(n.prototype),t.Behaviour=n})),ace.define(“ace/token_iterator”,,(function(e,t){“use strict”;var n=e(“./range”).Range,i=function(){function e(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var i=e.getTokenAt(t,n);this.$tokenIndex=i?i.index:-1}return e.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens},e.prototype.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens},e.prototype.getCurrentToken=function(){return this.$rowTokens},e.prototype.getCurrentTokenRow=function(){return this.$row},e.prototype.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e.start;if(void 0!==n)return n;for(n=0;t>0;)n+=e.value.length;return n},e.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},e.prototype.getCurrentTokenRange=function(){var e=this.$rowTokens,t=this.getCurrentTokenColumn();return new n(this.$row,t,this.$row,t+e.value.length)},e}();t.TokenIterator=i})),ace.define(“ace/mode/behaviour/cstyle”,,(function(e,t){“use strict”;var n,i,o=e(“../../lib/oop”),r=e(“../behaviour”).Behaviour,s=e(“../../token_iterator”).TokenIterator,a=e(“../../lib/lang”),l=,c=,h={},u={‘“’:‘”’,“‘”:“’”},d=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,h.rangeCount!=e.multiSelect.rangeCount&&(h={rangeCount:e.multiSelect.rangeCount})),h)return n=h;n=h={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:“”,maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:“”,maybeInsertedLineEnd:“”}},p=function(e,t,n,i){var o=e.end.row-e.start.row;return{text:n+t+i,selection:}};(i=function(e){e=e||{},this.add(“braces”,“insertion”,(function(t,o,r,s,l){var c=r.getCursorPosition(),h=s.doc.getLine(c.row);if(“{”==l){d®;var u=r.getSelectionRange(),g=s.doc.getTextRange(u);if(“”!==g&&“{”!==g&&r.getWrapBehavioursEnabled())return p(u,g,“{”,“}”);if(i.isSaneInsertion(r,s))return/})]/.test(h)||r.inMultiSelectMode||e.braces?(i.recordAutoInsert(r,s,“}”),{text:“{}”,selection:}):(i.recordMaybeInsert(r,s,“{”),{text:“{”,selection:})}else if(“}”==l){if(d®,“}”==h.substring(c.column,c.column+1))if(null!==s.$findOpeningBracket(“}”,{column:c.column+1,row:c.row})&&i.isAutoInsertedClosing(c,h,l))return i.popAutoInsertedClosing(),{text:“”,selection:}}else{if(“n”==l||“rn”==l){d®;var m=“”;if(i.isMaybeInsertedClosing(c,h)&&(m=a.stringRepeat(“}”,n.maybeInsertedBrackets),i.clearMaybeInsertedClosing()),“}”===h.substring(c.column,c.column+1)){var f=s.findMatchingBracket({row:c.row,column:c.column+1},“}”);if(!f)return null;var v=this.$getIndent(s.getLine(f.row))}else{if(!m)return void i.clearMaybeInsertedClosing();v=this.$getIndent(h)}var y=v+s.getTabString();return{text:“n”y
“n”+v+m,selection:}}i.clearMaybeInsertedClosing()}})),this.add(“braces”,“deletion”,(function(e,t,i,o,r){var s=o.doc.getTextRange®;if(!r.isMultiLine()&&“{”==s){if(d(i),“}”==o.doc.getLine(r.start.row).substring(r.end.column,r.end.column+1))return r.end.column++,r;n.maybeInsertedBrackets–}})),this.add(“parens”,“insertion”,(function(e,t,n,o,r){if(“(”==r){d(n);var s=n.getSelectionRange(),a=o.doc.getTextRange(s);if(“”!==a&&n.getWrapBehavioursEnabled())return p(s,a,“(”,“)”);if(i.isSaneInsertion(n,o))return i.recordAutoInsert(n,o,“)”),{text:“()”,selection:}}else if(“)”==r){d(n);var l=n.getCursorPosition(),c=o.doc.getLine(l.row);if(“)”==c.substring(l.column,l.column+1))if(null!==o.$findOpeningBracket(“)”,{column:l.column+1,row:l.row})&&i.isAutoInsertedClosing(l,c,r))return i.popAutoInsertedClosing(),{text:“”,selection:}}})),this.add(“parens”,“deletion”,(function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&“(”==r&&(d(n),“)”==i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o})),this.add(“brackets”,“insertion”,(function(e,t,n,o,r){if(“[”==r){d(n);var s=n.getSelectionRange(),a=o.doc.getTextRange(s);if(“”!==a&&n.getWrapBehavioursEnabled())return p(s,a,“”);if(i.isSaneInsertion(n,o))return i.recordAutoInsert(n,o,“]”),{text:“[]”,selection:}}else if(“]”==r){d(n);var l=n.getCursorPosition(),c=o.doc.getLine(l.row);if(“]”==c.substring(l.column,l.column+1))if(null!==o.$findOpeningBracket(“]”,{column:l.column+1,row:l.row})&&i.isAutoInsertedClosing(l,c,r))return i.popAutoInsertedClosing(),{text:“”,selection:}}})),this.add(“brackets”,“deletion”,(function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&“”==i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o})),this.add(“string_dquotes”,“insertion”,(function(e,t,n,i,o){var r=i.$mode.$quotes||u;if(1==o.length&&r){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(o))return;d(n);var s=o,a=n.getSelectionRange(),l=i.doc.getTextRange(a);if(!(“”===l||1==l.length&&r)&&n.getWrapBehavioursEnabled())return p(a,l,s,s);if(!l){var c=n.getCursorPosition(),h=i.doc.getLine(c.row),g=h.substring(c.column-1,c.column),m=h.substring(c.column,c.column+1),f=i.getTokenAt(c.row,c.column),v=i.getTokenAt(c.row,c.column+1);if(“\”==g&&f&&/escape/.test(f.type))return null;var y,b=f&&/string|escape/.test(f.type),w=!v||/string|escape/.test(v.type);if(m==s)(y=b!==w)&&/string.end/.test(v.type)&&(y=!1);else{if(b&&!w)return null;if(b&&w)return null;var x=i.$mode.tokenRe;x.lastIndex=0;var k=x.test(g);x.lastIndex=0;var C=x.test(m),$=i.$mode.$pairQuotesAfter;if(!($&&$&&$[s].test(g))&&k||C)return null;if(m&&!/\]/.test(m))return null;var S=h;if(g==s&&(S==s||x.test(S)))return null;y=!0}return{text:y?s+s:“”,selection:}}}})),this.add(“string_dquotes”,“deletion”,(function(e,t,n,i,o){var r=i.$mode.$quotes||u,s=i.doc.getTextRange(o);if(!o.isMultiLine()&&r.hasOwnProperty(s)&&(d(n),i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)==s))return o.end.column++,o})),!1!==e.closeDocComment&&this.add(“doc comment end”,“insertion”,(function(e,t,n,i,o){if(“doc-start”===e&&(“n”===o||“rn”===o)&&n.selection.isEmpty()){var r=n.getCursorPosition(),s=i.doc.getLine(r.row),a=i.doc.getLine(r.row+1),l=this.$getIndent(s);if(/s**/.test(a))return/^s**/.test(s)?{text:o+l+“* ”,selection:}:{text:o+l+“ * ”,selection:};if(//**/.test(s.substring(0,r.column)))return{text:o+l+“ * ”o
“ ”l
“*/”,selection:}}}))}).isSaneInsertion=function(e,t){var n=e.getCursorPosition(),i=new s(t,n.row,n.column);if(!this.$matchTokenType(i.getCurrentToken()||“text”,l)){if(/]/.test(e.session.getLine(n.row)))return!0;var o=new s(t,n.row,n.column+1);if(!this.$matchTokenType(o.getCurrentToken()||“text”,l))return!1}return i.stepForward(),i.getCurrentTokenRow()!==n.row||this.$matchTokenType(i.getCurrentToken()||“text”,c)},i.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},i.recordAutoInsert=function(e,t,i){var o=e.getCursorPosition(),r=t.doc.getLine(o.row);this.isAutoInsertedClosing(o,r,n.autoInsertedLineEnd)||(n.autoInsertedBrackets=0),n.autoInsertedRow=o.row,n.autoInsertedLineEnd=i+r.substr(o.column),n.autoInsertedBrackets++},i.recordMaybeInsert=function(e,t,i){var o=e.getCursorPosition(),r=t.doc.getLine(o.row);this.isMaybeInsertedClosing(o,r)||(n.maybeInsertedBrackets=0),n.maybeInsertedRow=o.row,n.maybeInsertedLineStart=r.substr(0,o.column)+i,n.maybeInsertedLineEnd=r.substr(o.column),n.maybeInsertedBrackets++},i.isAutoInsertedClosing=function(e,t,i){return n.autoInsertedBrackets>0&&e.row===n.autoInsertedRow&&i===n.autoInsertedLineEnd&&t.substr(e.column)===n.autoInsertedLineEnd},i.isMaybeInsertedClosing=function(e,t){return n.maybeInsertedBrackets>0&&e.row===n.maybeInsertedRow&&t.substr(e.column)===n.maybeInsertedLineEnd&&t.substr(0,e.column)==n.maybeInsertedLineStart},i.popAutoInsertedClosing=function(){n.autoInsertedLineEnd=n.autoInsertedLineEnd.substr(1),n.autoInsertedBrackets–},i.clearMaybeInsertedClosing=function(){n&&(n.maybeInsertedBrackets=0,n.maybeInsertedRow=-1)},o.inherits(i,r),t.CstyleBehaviour=i})),ace.define(“ace/unicode”,,(function(e,t){“use strict”;for(var n=,i=0,o=[],r=0;r<n.length;r+=2)o.push(i+=n),n&&o.push(45,i+=n);t.wordChars=String.fromCharCode.apply(null,o)})),ace.define(“ace/mode/text”,,(function(e,t){“use strict”;var n,i=e(“../config”),o=e(“../tokenizer”).Tokenizer,r=e(“./text_highlight_rules”).TextHighlightRules,s=e(“./behaviour/cstyle”).CstyleBehaviour,a=e(“../unicode”),l=e(“../lib/lang”),c=e(“../token_iterator”).TokenIterator,h=e(“../range”).Range;n=function(){this.HighlightRules=r},function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp(“^[”a.wordChars
“\$_]+”,“g”),this.nonTokenRe=new RegExp(“^(?:[^”a.wordChars
“\$_]|\s])+”,“g”),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new o(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart=“”,this.blockComment=“”,this.toggleCommentLines=function(e,t,n,i){function o(e){for(var t=n;t<=i;t++)e(r.getLine(t),t)}var r=t.doc,s=!0,a=!0,c=1/0,h=t.getTabSize(),u=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))f=this.lineCommentStart.map(l.escapeRegExp).join(“|”),g=this.lineCommentStart;else f=l.escapeRegExp(this.lineCommentStart),g=this.lineCommentStart;f=new RegExp(“^(\s*)(?:”f
“) ?”),u=t.getUseSoftTabs();b=function(e,t){var n=e.match(f);if(n){var i=n.length,o=n.length;p(e,i,o)||“ ”!=n[o-1]||o–,r.removeInLine(t,i,o)}};var d=g+“ ”,p=(y=function(e,t){s&&!/S/.test(e)||(p(e,c,c)?r.insertInLine({row:t,column:c},d):r.insertInLine({row:t,column:c},g))},w=function(e){return f.test(e)},function(e,t,n){for(var i=0;t–&&“ ”==e.charAt(t);)i++;if(i%h!=0)return!1;for(i=0;“ ”==e.charAt(n++);)i++;return h>2?i%h!=h-1:i%h==0})}else{if(!this.blockComment)return!1;var g=this.blockComment.start,m=this.blockComment.end,f=new RegExp(“^(\s*)(?:”+l.escapeRegExp(g)+“)”),v=new RegExp(“(?:”+l.escapeRegExp(m)+“)\s*$”),y=function(e,t){w(e,t)||s&&!/S/.test(e)||(r.insertInLine({row:t,column:e.length},m),r.insertInLine({row:t,column:c},g))},b=function(e,t){var n;(n=e.match(v))&&r.removeInLine(t,e.length-n.length,e.length),(n=e.match(f))&&r.removeInLine(t,n.length,n.length)},w=function(e,n){if(f.test(e))return!0;for(var i=t.getTokens(n),o=0;o<i.length;o++)if(“comment”===i.type)return!0}}var x=1/0;o((function(e,t){var n=e.search(/S/);-1!==n?(n<c&&(c=n),a&&!w(e,t)&&(a=!1)):x>e.length&&(x=e.length)})),c==1/0&&(c=x,s=!1,a=!1),u&&c%h!=0&&(c=Math.floor(c/h)*h),o(a?b:y)},this.toggleBlockComment=function(e,t,n,i){var o=this.blockComment;if(o){!o.start&&o&&(o=o);var r,s,a=(m=new c(t,i.row,i.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(var u,d;a&&/comment/.test(a.type);){if(-1!=(f=a.value.indexOf(o.start))){var p=m.getCurrentTokenRow(),g=m.getCurrentTokenColumn()+f;u=new h(p,g,p,g+o.start.length);break}a=m.stepBackward()}var m;for(a=(m=new c(t,i.row,i.column)).getCurrentToken();a&&/comment/.test(a.type);){var f;if(-1!=(f=a.value.indexOf(o.end))){p=m.getCurrentTokenRow(),g=m.getCurrentTokenColumn()+f;d=new h(p,g,p,g+o.end.length);break}a=m.stepForward()}d&&t.remove(d),u&&(t.remove(u),r=u.start.row,s=-o.start.length)}else s=o.start.length,r=n.start.row,t.insert(n.end,o.end),t.insert(n.start,o.start);l.start.row==r&&(l.start.column+=s),l.end.row==r&&(l.end.column+=s),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t){return this.$getIndent(t)},this.checkOutdent=function(){return!1},this.autoOutdent=function(){},this.$getIndent=function(e){return e.match(/^s*/)},this.createWorker=function(){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e){var n=e,o=n.prototype.$id,r=i.$modes;r||(i.$modes=r=new n),i.$modes||(i.$modes=r),this.$embeds.push(t),this.$modes=r}var s=,a=function(e){var t,n,i;t=l,n=s,i=t,t[s]=function(){return this.$delegator(n,arguments,i)}},l=this;for(t=0;t<s.length;t++)a(t)},this.$delegator=function(e,t,n){var i=t||“start”;if(“string”!=typeof i){if(Array.isArray(i)){var o=i[i.length-1];if(s=this.$modes)return s.apply(s,[i].concat([].slice.call(t,1)))}i=i||“start”}for(var r=0;r<this.$embeds.length;r++)if(this.$modes[this.$embeds]){var s,a=i.split(this.$embeds);if(!a&&a)return t=a, (s=this.$modes[this.$embeds])[e].apply(s,t)}var l=n.apply(this,t);return n?l:void 0},this.transformAction=function(e,t,n,i,o){if(this.$behaviour){var r=this.$behaviour.getBehaviours();for(var s in r)if(r[t]){var a=r[t].apply(this,arguments);if(a)return a}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var i in t)for(var o=t,r=0,s=o.length;r<s;r++)if(“string”==typeof o.token)/keyword|support|storage/.test(o.token)&&n.push(o.regex);else if(“object”==typeof o.token)for(var a=0,l=o.token.length;a<l;a++)if(/keyword|support|storage/.test(o.token)){i=o.regex.match(/(.+?)/g);n.push(i.substr(1,i.length-2))}this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{name:e,value:e,score:0,meta:“keyword”}}))},this.$id=“ace/mode/text”}.call(n.prototype),t.Mode=n})),ace.define(“ace/apply_delta”,,(function(e,t){“use strict”;t.applyDelta=function(e,t){var n=t.start.row,i=t.start.column,o=e||“”;switch(t.action){case“insert”:if(1===t.lines.length)e=o.substring(0,i)+t.lines+o.substring(i);else{var r=.concat(t.lines);e.splice.apply(e,r),e=o.substring(0,i)+e,e+=o.substring(i)}break;case“remove”:var s=t.end.column,a=t.end.row;n===a?e=o.substring(0,i)+o.substring(s):e.splice(n,a-n+1,o.substring(0,i)+e.substring(s))}}})),ace.define(“ace/anchor”,,(function(e,t){“use strict”;function n(e,t,n){var i=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&i}function i(e,t,i){var o=“insert”==e.action,r=(o?1:-1)*(e.end.row-e.start.row),s=(o?1:-1)*(e.end.column-e.start.column),a=e.start,l=o?a:e.end;return n(t,a,i)?{row:t.row,column:t.column}:n(l,t,!i)?{row:t.row+r,column:t.column+(t.row==l.row?s:0)}:{row:a.row,column:a.column}}var o=e(“./lib/oop”),r=e(“./lib/event_emitter”).EventEmitter,s=function(){function e(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),“number”!=typeof t?this.setPosition(t.row,t.column):this.setPosition(t,n)}return e.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},e.prototype.getDocument=function(){return this.document},e.prototype.onChange=function(e){if(!(e.start.row==e.end.row&&e.start.row!=this.row||e.start.row>this.row)){var t=i(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(t.row,t.column,!0)}},e.prototype.setPosition=function(e,t,n){var i;if(i=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=i.row||this.column!=i.column){var o={row:this.row,column:this.column};this.row=i.row,this.column=i.column,this._signal(“change”,{old:o,value:i})}},e.prototype.detach=function(){this.document.off(“change”,this.$onChange)},e.prototype.attach=function(e){this.document=e||this.document,this.document.on(“change”,this.$onChange)},e.prototype.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n},e}();s.prototype.$insertRight=!1,o.implement(s.prototype,r),t.Anchor=s})),ace.define(“ace/document”,,(function(e,t){“use strict”;var n=e(“./lib/oop”),i=e(“./apply_delta”).applyDelta,o=e(“./lib/event_emitter”).EventEmitter,r=e(“./range”).Range,s=e(“./anchor”).Anchor,a=function(){function e(e){this.$lines=,0===e.length?this.$lines=:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)}return e.prototype.setValue=function(e){var t=this.getLength()-1;this.remove(new r(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e||“”)},e.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},e.prototype.createAnchor=function(e,t){return new s(this,e,t)},e.prototype.$detectNewLine=function(e){var t=e.match(/^.*?(rn|r|n)/m);this.$autoNewLine=t?t:“n”,this._signal(“changeNewLineMode”)},e.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case“windows”:return“rn”;case“unix”:return“n”;default:return this.$autoNewLine||“n”}},e.prototype.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal(“changeNewLineMode”))},e.prototype.getNewLineMode=function(){return this.$newLineMode},e.prototype.isNewLine=function(e){return“rn”==e||“r”==e||“n”==e},e.prototype.getLine=function(e){return this.$lines||“”},e.prototype.getLines=function(e,t){return this.$lines.slice(e,t+1)},e.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},e.prototype.getLength=function(){return this.$lines.length},e.prototype.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},e.prototype.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=;else{(t=this.getLines(e.start.row,e.end.row))=(t||“”).substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t=t.substring(0,e.end.column))}return t},e.prototype.insertLines=function(e,t){return console.warn(“Use of document.insertLines is deprecated. Use the insertFullLines method instead.”),this.insertFullLines(e,t)},e.prototype.removeLines=function(e,t){return console.warn(“Use of document.removeLines is deprecated. Use the removeFullLines method instead.”),this.removeFullLines(e,t)},e.prototype.insertNewLine=function(e){return console.warn(“Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [”, ”]) instead.”),this.insertMergedLines(e,)},e.prototype.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},e.prototype.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),i=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:i,action:“insert”,lines:},!0),this.clonePos(i)},e.prototype.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var i=this.getLine(e);return null==t&&(t=i.length),{row:e,column:t=Math.min(Math.max(t,0),i.length)}},e.prototype.clonePos=function(e){return{row:e.row,column:e.column}},e.prototype.pos=function(e,t){return{row:e,column:t}},e.prototype.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},e.prototype.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat(),n=0):(t=.concat(t),e–,n=this.$lines.length),this.insertMergedLines({row:e,column:n},t)},e.prototype.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),i={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t.length};return this.applyDelta({start:n,end:i,action:“insert”,lines:t}),this.clonePos(i)},e.prototype.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:“remove”,lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},e.prototype.removeInLine=function(e,t,n){var i=this.clippedPos(e,t),o=this.clippedPos(e,n);return this.applyDelta({start:i,end:o,action:“remove”,lines:this.getLinesForRange({start:i,end:o})},!0),this.clonePos(i)},e.prototype.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var n=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&e>0,i=t<this.getLength()-1,o=n?e-1:e,s=n?this.getLine(o).length:0,a=i?t+1:t,l=i?0:this.getLine(a).length,c=new r(o,s,a,l),h=this.$lines.slice(e,t+1);return this.applyDelta({start:c.start,end:c.end,action:“remove”,lines:this.getLinesForRange©}),h},e.prototype.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:“remove”,lines:})},e.prototype.replace=function(e,t){return e instanceof r||(e=r.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},e.prototype.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e)},e.prototype.revertDeltas=function(e){for(var t=e.length-1;t>=0;t–)this.revertDelta(e)},e.prototype.applyDelta=function(e,t){var n=“insert”==e.action;(n?e.lines.length<=1&&!e.lines:!r.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal(“change”,e)))},e.prototype.$safeApplyDelta=function(e){var t=this.$lines.length;(“remove”==e.action&&e.start.row<t&&e.end.row<t||“insert”==e.action&&e.start.row<=t)&&this.applyDelta(e)},e.prototype.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,i=n.length-t+1,o=e.start.row,r=e.start.column,s=0,a=0;s<i;s=a){a+=t-1;var l=n.slice(s,a);l.push(“”),this.applyDelta({start:this.pos(o+s,r),end:this.pos(o+a,r=0),action:e.action,lines:l},!0)}e.lines=n.slice(s),e.start.row=o+s,e.start.column=r,this.applyDelta(e,!0)},e.prototype.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:“insert”==e.action?“remove”:“insert”,lines:e.lines.slice()})},e.prototype.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,o=t||0,r=n.length;o<r;o++)if((e-=n.length+i)<0)return{row:o,column:e+n.length+i};return{row:r-1,column:e+n.length+i}},e.prototype.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,o=0,r=Math.min(e.row,n.length),s=t||0;s<r;++s)o+=n.length+i;return o+e.column},e.prototype.$split=function(e){return e.split(/rn|r|n/)},e}();a.prototype.$autoNewLine=“”,a.prototype.$newLineMode=“auto”,n.implement(a.prototype,o),t.Document=a})),ace.define(“ace/background_tokenizer”,,(function(e,t){“use strict”;var n=e(“./lib/oop”),i=e(“./lib/event_emitter”).EventEmitter,o=function(){function e(e){this.running=!1,this.lines=[],this.states=,this.currentLine=0,this.tokenizer=e;var t=this;this.$worker=function(){if(t.running){for(var e=new Date,n=t.currentLine,i=-1,o=t.doc,r=n;t.lines;)n++;var s=o.getLength(),a=0;for(t.running=!1;n<s;){t.$tokenizeRow(n),i=n;do{n++}while(t.lines);if(++a%5==0&&new Date-e>20){t.running=setTimeout(t.$worker,20);break}}t.currentLine=n,-1==i&&(i=n),r<=i&&t.fireUpdateEvent(r,i)}}}return e.prototype.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=,this.start(0)},e.prototype.setDocument=function(e){this.doc=e,this.lines=[],this.states=,this.stop()},e.prototype.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal(“update”,{data:n})},e.prototype.start=function(e){this.currentLine=Math.min(e||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)},e.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},e.prototype.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines=null;else if(“remove”==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.lines.splice.apply(this.lines,i),this.states.splice.apply(this.states,i)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},e.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},e.prototype.getTokens=function(e){return this.lines||this.$tokenizeRow(e)},e.prototype.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states||“start”},e.prototype.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states,i=this.tokenizer.getLineTokens(t,n,e);return this.states+“”!=i.state+“”?(this.states=i.state,this.lines=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines=i.tokens},e.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=,this.currentLine=0,this.removeAllListeners()},e}();n.implement(o.prototype,i),t.BackgroundTokenizer=o})),ace.define(“ace/search_highlight”,,(function(e,t){“use strict”;var n=e(“./lib/lang”),i=e(“./range”).Range,o=function(){function e(e,t,n){void 0===n&&(n=“text”),this.setRegexp(e),this.clazz=t,this.type=n}return e.prototype.setRegexp=function(e){this.regExp+“”!=e+“”&&(this.regExp=e,this.cache=[])},e.prototype.update=function(e,t,o,r){if(this.regExp)for(var s=r.firstRow,a=r.lastRow,l={},c=s;c<=a;c++){var h=this.cache;null==h&&((h=n.getMatchOffsets(o.getLine©,this.regExp)).length>this.MAX_RANGES&&(h=h.slice(0,this.MAX_RANGES)),h=h.map((function(e){return new i(c,e.offset,c,e.offset+e.length)})),this.cache=h.length?h:“”);for(var u=h.length;u–;){var d=h.toScreenRange(o),p=d.toString();l||(l=!0,t.drawSingleLineMarker(e,d,this.clazz,r))}}},e}();o.prototype.MAX_RANGES=500,t.SearchHighlight=o})),ace.define(“ace/undomanager”,,(function(e,t){“use strict”;function n(e,t){for(var n=t;n–;){var i=e;if(i&&!i.ignore){for(;n<t-1;){var o=l(e,e);e=o,e=o,n++}return!0}}}function i(e){return{row:e.row,column:e.column}}function o(e){return{start:i(e.start),end:i(e.end),action:e.action,lines:e.lines.slice()}}function r(e){if(e=e||this,Array.isArray(e))return e.map®.join(“n”);var t=“”;return e.action?(t=“insert”==e.action?“+”:“-”,t+=“[”e.lines
“]”):e.value&&(t=Array.isArray(e.value)?e.value.map(s).join(“n”):s(e.value)),e.start&&(t+=s(e)),(e.id||e.rev)&&(t+=“t(”+(e.id||e.rev)+“)”),t}function s(e){return e.start.row+“:”e.start.column
“=>”e.end.row
“:”+e.end.column}function a(e,t){var n=“insert”==e.action,i=“insert”==t.action;if(n&&i)if(v(t.start,e.end)>=0)h(t,e,-1);else{if(!(v(t.start,e.start)<=0))return null;h(e,t,1)}else if(n&&!i)if(v(t.start,e.end)>=0)h(t,e,-1);else{if(!(v(t.end,e.start)<=0))return null;h(e,t,-1)}else if(!n&&i)if(v(t.start,e.start)>=0)h(t,e,1);else{if(!(v(t.start,e.start)<=0))return null;h(e,t,1)}else if(!n&&!i)if(v(t.start,e.start)>=0)h(t,e,1);else{if(!(v(t.end,e.start)<=0))return null;h(e,t,-1)}return}function l(e,t){for(var n=e.length;n–;)for(var i=0;i<t.length;i++)if(!a(e,t)){for(;n<e.length;){for(;i–;)a(t,e);i=t.length,n++}return}return e.selectionBefore=t.selectionBefore=e.selectionAfter=t.selectionAfter=null,}function c(e,t){var n=“insert”==e.action,i=“insert”==t.action;if(n&&i)v(e.start,t.start)<0?h(t,e,1):h(e,t,1);else if(n&&!i)v(e.start,t.end)>=0?h(e,t,-1):(v(e.start,t.start)<=0||h(e,f.fromPoints(t.start,e.start),-1),h(t,e,1));else if(!n&&i)v(t.start,e.end)>=0?h(t,e,-1):(v(t.start,e.start)<=0||h(t,f.fromPoints(e.start,t.start),-1),h(e,t,1));else if(!n&&!i)if(v(t.start,e.end)>=0)h(t,e,-1);else{var o,r;if(!(v(t.end,e.start)<=0))return v(e.start,t.start)<0&&(o=e,e=d(e,t.start)),v(e.end,t.end)>0&&(r=d(e,t.end)),u(t.end,e.start,e.end,-1),r&&!o&&(e.lines=r.lines,e.start=r.start,e.end=r.end,r=e),.filter(Boolean);h(e,t,-1)}return}function h(e,t,n){u(e.start,t.start,t.end,n),u(e.end,t.start,t.end,n)}function u(e,t,n,i){e.row==(1==i?t:n).row&&(e.column+=i*(n.column-t.column)),e.row+=i*(n.row-t.row)}function d(e,t){var n=e.lines,o=e.end;e.end=i(t);var r=e.end.row-e.start.row,s=n.splice(r,n.length),a=r?t.column:t.column-e.start.column;return n.push(s.substring(0,a)),s=s.substr(a),{start:i(t),end:o,lines:s,action:e.action}}function p(e,t){t=o(t);for(var n=e.length;n–;){for(var i=e,r=0;r<i.length;r++){var s=c(i,t);t=s,2!=s.length&&(s?(i.splice(r+1,1,s,s),r++):s||(i.splice(r,1),r–))}i.length||e.splice(n,1)}return e}function g(e,t){for(var n=0;n<t.length;n++)for(var i=t,o=0;o<i.length;o++)p(e,i)}var m=function(){function e(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return e.prototype.addSession=function(e){this.$session=e},e.prototype.add=function(e,t){if(!this.$fromUndo&&e!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),!1===t||!this.lastDeltas){this.lastDeltas=[];var n=this.$undoStack.length;n>this.$undoDepth-1&&this.$undoStack.splice(0,n-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev}“remove”!=e.action&&“insert”!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e)}},e.prototype.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},e.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},e.prototype.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,i=n.length;i–;){var o=n[0];if(o.id<=e)break;o.id<t&&(o.ignore=!0)}this.lastDeltas=null},e.prototype.getSelection=function(e,t){for(var n=this.selections,i=n.length;i–;){var o=n;if(o.rev<e)return t&&(o=n),o}},e.prototype.getRevision=function(){return this.$rev},e.prototype.getDeltas=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,i=null,o=0,r=n.length;r–;){var s=n[0];if(s.id<t&&!i&&(i=r+1),s.id<=e){o=r+1;break}}return n.slice(o,i)},e.prototype.getChangedRanges=function(e,t){null==t&&(t=this.$rev+1)},e.prototype.getChangedLines=function(e,t){null==t&&(t=this.$rev+1)},e.prototype.undo=function(e,t){this.lastDeltas=null;var i=this.$undoStack;if(n(i,i.length)){e||(e=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var o=i.pop(),r=null;return o&&(r=e.undoChanges(o,t),this.$redoStack.push(o),this.$syncRev()),this.$fromUndo=!1,r}},e.prototype.redo=function(e,t){if(this.lastDeltas=null,e||(e=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var n=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);g(this.$redoStack,n),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach((function(e){e.id=++this.$maxRev}),this)}var i=this.$redoStack.pop(),o=null;return i&&(o=e.redoChanges(i,t),this.$undoStack.push(i),this.$syncRev()),this.$fromUndo=!1,o},e.prototype.$syncRev=function(){var e=this.$undoStack,t=e,n=t&&t.id||0;this.$redoStackBaseRev=n,this.$rev=n},e.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=,this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},e.prototype.canUndo=function(){return this.$undoStack.length>0},e.prototype.canRedo=function(){return this.$redoStack.length>0},e.prototype.bookmark=function(e){null==e&&(e=this.$rev),this.mark=e},e.prototype.isAtBookmark=function(){return this.$rev===this.mark},e.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},e.prototype.fromJSON=function(e){this.reset(),this.$undoStack=e.$undoStack,this.$redoStack=e.$redoStack},e.prototype.$prettyPrint=function(e){return e?r(e):r(this.$undoStack)+“n—n”+r(this.$redoStack)},e}();m.prototype.hasUndo=m.prototype.canUndo,m.prototype.hasRedo=m.prototype.canRedo,m.prototype.isClean=m.prototype.isAtBookmark,m.prototype.markClean=m.prototype.bookmark;var f=e(“./range”).Range,v=f.comparePoints;f.comparePoints;t.UndoManager=m})),ace.define(“ace/edit_session/fold_line”,,(function(e,t){“use strict”;var n=e(“../range”).Range,i=function(){function e(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=;var i=t;this.range=new n(t.start.row,t.start.column,i.end.row,i.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}return e.prototype.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},e.prototype.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error(“Can’t add a fold to this FoldLine as it has no connection”);this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error(“Trying to add fold to FoldRow that doesn’t have a matching row”);this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},e.prototype.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},e.prototype.walk=function(e,t,n){var i,o,r=0,s=this.folds,a=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l<s.length;l++){if(-1==(o=(i=s).range.compareStart(t,n)))return void e(null,t,n,r,a);if(!e(null,i.start.row,i.start.column,r,a)&&e(i.placeholder,i.start.row,i.start.column,r)||0===o)return;a=!i.sameRow,r=i.end.column}e(null,t,n,r,a)},e.prototype.getNextFoldTo=function(e,t){for(var n,i,o=0;o<this.folds.length;o++){if(-1==(i=(n=this.folds).range.compareEnd(e,t)))return{fold:n,kind:“after”};if(0===i)return{fold:n,kind:“inside”}}return null},e.prototype.addRemoveChars=function(e,t,n){var i,o,r=this.getNextFoldTo(e,t);if®if(i=r.fold,“inside”==r.kind&&i.start.column!=t&&i.start.row!=e)window.console&&window.console.log(e,t,i);else if(i.start.row==e){var s=(o=this.folds).indexOf(i);for(0===s&&(this.start.column+=n);s<o.length;s++){if((i=o).start.column+=n,!i.sameRow)return;i.end.column+=n}this.end.column+=n}},e.prototype.split=function(t,n){var i=this.getNextFoldTo(t,n);if(!i||“inside”==i.kind)return null;var o=i.fold,r=this.folds,s=this.foldData,a=r.indexOf(o),l=r;this.end.row=l.end.row,this.end.column=l.end.column;var c=new e(s,r=r.splice(a,r.length-a));return s.splice(s.indexOf(this)+1,0,c),c},e.prototype.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t);var i=this.foldData;i.splice(i.indexOf(e),1)},e.prototype.toString=function(){var e=[this.range.toString()+“: [”];return this.folds.forEach((function(t){e.push(“ ”+t.toString())})),e.push(“]”),e.join(“n”)},e.prototype.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var i=this.folds;if((e-=i.start.column-t)<0)return{row:i.start.row,column:i.start.column+e};if((e-=i.placeholder.length)<0)return i.start;t=i.end.column}return{row:this.end.row,column:this.end.column+e}},e}();t.FoldLine=i})),ace.define(“ace/range_list”,,(function(e,t){“use strict”;var n=e(“./range”).Range.comparePoints,i=function(){function e(){this.ranges=[],this.$bias=1}return e.prototype.pointIndex=function(e,t,i){for(var o=this.ranges,r=i||0;r<o.length;r++){var s=o,a=n(e,s.end);if(!(a>0)){var l=n(e,s.start);return 0===a?t&&0!==l?-r-2:r:l>0||0===l&&!t?r:-r-1}}return-r-1},e.prototype.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var i=this.pointIndex(e.end,t,n);return i<0?i=-i-1:i++,this.ranges.splice(n,i-n,e)},e.prototype.addList=function(e){for(var t=[],n=e.length;n–;)t.push.apply(t,this.add(e));return t},e.prototype.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},e.prototype.merge=function(){for(var e,t=[],i=this.ranges,o=(i=i.sort((function(e,t){return n(e.start,t.start)})))[0],r=1;r<i.length;r++){e=o,o=i;var s=n(e.end,o.start);s<0||(0!=s||e.isEmpty()||o.isEmpty())&&(n(e.end,o.end)<0&&(e.end.row=o.end.row,e.end.column=o.end.column),i.splice(r,1),t.push(o),o=e,r–)}return this.ranges=i,t},e.prototype.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},e.prototype.containsPoint=function(e){return this.pointIndex(e)>=0},e.prototype.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges},e.prototype.clipRows=function(e,t){var n=this.ranges;if(n.start.row>t||n.start.row<e)return[];var i=this.pointIndex({row:e,column:0});i<0&&(i=-i-1);var o=this.pointIndex({row:t,column:0},i);o<0&&(o=-o-1);for(var r=[],s=i;s<o;s++)r.push(n);return r},e.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},e.prototype.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on(“change”,this.onChange)},e.prototype.detach=function(){this.session&&(this.session.removeListener(“change”,this.onChange),this.session=null)},e.prototype.$onChange=function(e){for(var t=e.start,n=e.end,i=t.row,o=n.row,r=this.ranges,s=0,a=r.length;s<a;s++){if((h=r).end.row>=i)break}if(“insert”==e.action)for(var l=o-i,c=-t.column+n.column;s<a;s++){if((h=r).start.row>i)break;if(h.start.row==i&&h.start.column>=t.column&&(h.start.column==t.column&&this.$bias<=0||(h.start.column+=c,h.start.row+=l)),h.end.row==i&&h.end.column>=t.column){if(h.end.column==t.column&&this.$bias<0)continue;h.end.column==t.column&&c>0&&s<a-1&&h.end.column>h.start.column&&h.end.column==r.start.column&&(h.end.column-=c),h.end.column+=c,h.end.row+=l}}else for(l=i-o,c=t.column-n.column;s<a;s++){if((h=r).start.row>o)break;h.end.row<o&&(i<h.end.row||i==h.end.row&&t.column<h.end.column)?(h.end.row=i,h.end.column=t.column):h.end.row==o?h.end.column<=n.column?(l||h.end.column>t.column)&&(h.end.column=t.column,h.end.row=t.row):(h.end.column+=c,h.end.row+=l):h.end.row>o&&(h.end.row+=l),h.start.row<o&&(i<h.start.row||i==h.start.row&&t.column<h.start.column)?(h.start.row=i,h.start.column=t.column):h.start.row==o?h.start.column<=n.column?(l||h.start.column>t.column)&&(h.start.column=t.column,h.start.row=t.row):(h.start.column+=c,h.start.row+=l):h.start.row>o&&(h.start.row+=l)}if(0!=l&&s<a)for(;s<a;s++){var h;(h=r).start.row+=l,h.end.row+=l}},e}();i.prototype.comparePoints=n,t.RangeList=i})),ace.define(“ace/edit_session/fold”,,(function(e,t){“use strict”;function n(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function i(e,t){n(e.start,t),n(e.end,t)}function o(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}function r(e,t){o(e.start,t),o(e.end,t)}var s,a=this&&this.__extends||(s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e=t)},s(e,t)},function(e,t){function n(){this.constructor=e}if(“function”!=typeof t&&null!==t)throw new TypeError(“Class extends value ”+String(t)+“ is not a constructor or null”);s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t,n){var i=e.call(this)||this;return i.foldLine=null,i.placeholder=n,i.range=t,i.start=t.start,i.end=t.end,i.sameRow=t.start.row==t.end.row,i.subFolds=i.ranges=[],i}return a(t,e),t.prototype.toString=function(){return’“‘this.placeholder
’” ‘+this.range.toString()},t.prototype.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach((function(t){t.setFoldLine(e)}))},t.prototype.clone=function(){var e=new t(this.range.clone(),this.placeholder);return this.subFolds.forEach((function(t){e.subFolds.push(t.clone())})),e.collapseChildren=this.collapseChildren,e},t.prototype.addSubFold=function(e){if(!this.range.isEqual(e)){i(e,this.start);for(var t=e.start.row,n=e.start.column,o=0,r=-1;o<this.subFolds.length&&1==(r=this.subFolds.range.compare(t,n));o++);var s=this.subFolds,a=0;if(0==r){if(s.range.containsRange(e))return s.addSubFold(e);a=1}t=e.range.end.row,n=e.range.end.column;var l=o;for(r=-1;l<this.subFolds.length&&1==(r=this.subFolds.range.compare(t,n));l++);0==r&&l++;for(var c=this.subFolds.splice(o,l-o,e),h=0==r?c.length-1:c.length,u=a;u<h;u++)e.addSubFold(c);return e.setFoldLine(this.foldLine),e}},t.prototype.restoreRange=function(e){return r(e,this.start)},t}(e(“../range_list”).RangeList);t.Fold=l})),ace.define(“ace/edit_session/folding”,,(function(e,t){“use strict”;function n(){this.getFoldAt=function(e,t,n){var i=this.getFoldLine(e);if(!i)return null;for(var o=i.folds,r=0;r<o.length;r++){var s=o.range;if(s.contains(e,t)){if(1==n&&s.isEnd(e,t)&&!s.isEmpty())continue;if(-1==n&&s.isStart(e,t)&&!s.isEmpty())continue;return o}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,i=this.$foldData,o=[];t.column+=1,n.column-=1;for(var r=0;r<i.length;r++){var s=i.range.compareRange(e);if(2!=s){if(-2==s)break;for(var a=i.folds,l=0;l<a.length;l++){var c=a;if(-2==(s=c.range.compareRange(e)))break;if(2!=s){if(42==s)break;o.push©}}}}return t.column-=1,n.column+=1,o},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach((function(e){t=t.concat(this.getFoldsInRange(e))}),this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var i=0;i<t.folds.length;i++)e.push(t.folds);return e},this.getFoldStringAt=function(e,t,n,i){if(!(i=i||this.getFoldLine(e)))return null;for(var o,r,s={end:{column:0}},a=0;a<i.folds.length;a++){var l=(r=i.folds).range.compareEnd(e,t);if(-1==l){o=this.getLine(r.start.row).substring(s.end.column,r.start.column);break}if(0===l)return null;s=r}return o||(o=this.getLine(r.start.row).substring(s.end.column)),-1==n?o.substring(0,t-s.end.column):1==n?o.substring(t-s.end.column):o},this.getFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0);i<n.length;i++){var o=n;if(o.start.row<=e&&o.end.row>=e)return o;if(o.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0);i<n.length;i++){var o=n;if(o.end.row>=e)return o}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,i=t-e+1,o=0;o<n.length;o++){var r=n,s=r.end.row,a=r.start.row;if(s>=t){a<t&&(a>=e?i-=t-a:i=0);break}s>=e&&(i-=a>=e?s-a:s-e+1)}return i},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,i=this.$foldData,s=!1;e instanceof r?n=e:(n=new r(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range);var a=n.start.row,l=n.start.column,c=n.end.row,h=n.end.column,u=this.getFoldAt(a,l,1),d=this.getFoldAt(c,h,-1);if(u&&d==u)return u.addSubFold(n);u&&!u.range.isStart(a,l)&&this.removeFold(u),d&&!d.range.isEnd(c,h)&&this.removeFold(d);var p=this.getFoldsInRange(n.range);p.length>0&&(this.removeFolds(p),n.collapseChildren||p.forEach((function(e){n.addSubFold(e)})));for(var g=0;g<i.length;g++){var m=i;if(c==m.start.row){m.addFold(n),s=!0;break}if(a==m.end.row){if(m.addFold(n),s=!0,!n.sameRow){var f=i;if(f&&f.start.row==c){m.merge(f);break}}break}if(c<=m.start.row)break}return s||(m=this.$addFoldLine(new o(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(m.start.row,m.start.row):this.$updateRowLengthCache(m.start.row,m.start.row),this.$modified=!0,this._signal(“changeFold”,{data:n,action:“add”}),n},this.addFolds=function(e){e.forEach((function(e){this.addFold(e)}),this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,i=t.end.row,o=this.$foldData,r=t.folds;if(1==r.length)o.splice(o.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))r.pop(),t.end.row=r.end.row,t.end.column=r.end.column;else if(t.range.isStart(e.start.row,e.start.column))r.shift(),t.start.row=r.start.row,t.start.column=r.start.column;else if(e.sameRow)r.splice(r.indexOf(e),1);else{var s=t.split(e.start.row,e.start.column);(r=s.folds).shift(),s.start.row=r.start.row,s.start.column=r.start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,i):this.$updateRowLengthCache(n,i)),this.$modified=!0,this._signal(“changeFold”,{data:e,action:“remove”})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e);t.forEach((function(e){this.removeFold(e)}),this), this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach((function(t){e.restoreRange(t),this.addFold(t)}),this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,o;if(null==e)n=new i(0,0,this.getLength(),0),null==t&&(t=!0);else if(“number”==typeof e)n=new i(e,0,e,this.getLine(e).length);else if(“row”in e)n=i.fromPoints(e,e);else{if(Array.isArray(e))return o=[],e.forEach((function(e){o=o.concat(this.unfold(e))}),this),o;n=e}for(var r=o=this.getFoldsInRangeList(n);1==o.length&&i.comparePoints(o.start,n.start)<0&&i.comparePoints(o.end,n.end)>0;)this.expandFolds(o),o=this.getFoldsInRangeList(n);if(0!=t?this.removeFolds(o):this.expandFolds(o),r.length)return r},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,i,o){null==i&&(i=e.start.row),null==o&&(o=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var r=this.doc,s=“”;return e.walk((function(e,t,n,a){if(!(t<i)){if(t==i){if(n<o)return;a=Math.max(o,a)}s+=null!=e?e:r.getLine(t).substring(a,n)}}),t,n),s},this.getDisplayLine=function(e,t,n,i){var o,r=this.getFoldLine(e);return r?this.getFoldDisplayLine(r,e,t,n,i):(o=this.doc.getLine(e)).substring(i||0,t||o.length)},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map((function(t){var n=t.folds.map((function(e){return e.clone()}));return new o(e,n)}))},this.toggleFold=function(e){var t,n,i=this.selection.getRange();if(i.isEmpty()){var o=i.start;if(t=this.getFoldAt(o.row,o.column))return void this.expandFold(t);(n=this.findMatchingBracket(o))?1==i.comparePoint(n)?i.end=n:(i.start=n,i.start.column++,i.end.column–):(n=this.findMatchingBracket({row:o.row,column:o.column+1}))?(1==i.comparePoint(n)?i.end=n:i.start=n,i.start.column++):i=this.getCommentFoldRange(o.row,o.column)||i}else{var r=this.getFoldsInRange(i);if(e&&r.length)return void this.expandFolds®;1==r.length&&(t=r)}if(t||(t=this.getFoldAt(i.start.row,i.start.column)),t&&t.range.toString()==i.toString())this.expandFold(t);else{var s=“…”;if(!i.isMultiLine()){if((s=this.getTextRange(i)).length<4)return;s=s.trim().substring(0,2)+“..”}this.addFold(s,i)}},this.getCommentFoldRange=function(e,t,n){var o=new s(this,e,t),r=o.getCurrentToken(),a=r&&r.type;if(r&&/^comment|string/.test(a)){“comment”==(a=a.match(/comment|string/))&&(a+=“|doc-start|\.doc”);var l=new RegExp(a),c=new i;if(1!=n){do{r=o.stepBackward()}while(r&&l.test(r.type)&&!/^comment.end/.test(r.type));r=o.stepForward()}if(c.start.row=o.getCurrentTokenRow(),c.start.column=o.getCurrentTokenColumn()+(/^comment.start/.test(r.type)?r.value.length:2),o=new s(this,e,t),-1!=n){var h=-1;do{if(r=o.stepForward(),-1==h){var u=this.getState(o.$row);l.test(u)||(h=o.$row)}else if(o.$row>h)break}while(r&&l.test(r.type)&&!/^comment.start/.test(r.type));r=o.stepBackward()}else r=o.getCurrentToken();return c.end.row=o.getCurrentTokenRow(),c.end.column=o.getCurrentTokenColumn(),/^comment.end/.test(r.type)||(c.end.column+=r.value.length-2),c}},this.foldAll=function(e,t,n,i){null==n&&(n=1e5);var o=this.foldWidgets;if(o){t=t||this.getLength();for(var r=e=e||0;r<t;r++)if(null==o&&(o=this.getFoldWidget®),“start”==o&&(!i||i®)){var s=this.getFoldWidgetRange®;s&&s.isMultiLine()&&s.end.row<=t&&s.start.row>=e&&(r=s.end.row,s.collapseChildren=n,this.addFold(“…”,s))}}},this.foldToLevel=function(e){for(this.foldAll();e– >0;)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,(function(t){for(var n=e.getTokens(t),i=0;i<n.length;i++){var o=n;if(“text”!=o.type||!/^s+$/.test(o.value))return!!/comment/.test(o.type)}}))},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle=“markbegin”,this.setFoldStyle=function(e){if(!this.$foldStyles)throw new Error(“invalid fold style: ”e
“[”+Object.keys(this.$foldStyles).join(“, ”)+“]”);if(this.$foldStyle!=e){this.$foldStyle=e,“manual”==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off(“change”,this.$updateFoldWidgets),this.off(“tokenizerUpdate”,this.$tokenizerUpdateFoldWidgets),this._signal(“changeAnnotation”),e&&“manual”!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on(“change”,this.$updateFoldWidgets),this.on(“tokenizerUpdate”,this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n)return{};for(var i,o=e-1;o>=0;){var r=n;if(null==r&&(r=n=this.getFoldWidget(o)),“start”==r){var s=this.getFoldWidgetRange(o);if(i||(i=s),s&&s.end.row>=e)break}o–}return{range:-1!==o&&s,firstRange:i}},this.onFoldWidgetClick=function(e,t){t instanceof a&&(t=t.domEvent);var n={children:t.shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var i=t.target||t.srcElement;i&&/ace_fold-widget/.test(i.className)&&(i.className+=“ ace_invalid”)}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),i=this.getLine(e),o=“end”===n?-1:1,r=this.getFoldAt(e,-1===o?0:i.length,o);if®return t.children||t.all?this.removeFold®:this.expandFold®,r;var s=this.getFoldWidgetRange(e,!0);if(s&&!s.isMultiLine()&&(r=this.getFoldAt(s.start.row,s.start.column,1))&&s.isEqual(r.range))return this.removeFold®,r;if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var l=a.range.start.row+1,c=a.range.end.row;this.foldAll(l,c,t.all?1e4:0)}else t.children?(c=s?s.end.row:this.getLength(),this.foldAll(e+1,c,t.all?1e4:0)):s&&(t.all&&(s.collapseChildren=1e4),this.addFold(“…”,s));return s}},this.toggleFoldWidget=function(){var e=this.selection.getCursor().row;e=this.getRowFoldStart(e);var t=this.$toggleFoldWidget(e,{});if(!t){var n=this.getParentFoldRangeData(e,!0);if(t=n.range||n.firstRange){e=t.start.row;var i=this.getFoldAt(e,this.getLine(e).length,1);i?this.removeFold(i):this.addFold(“…”,t)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets=null;else if(“remove”==e.action)this.foldWidgets.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}var i=e(“../range”).Range,o=e(“./fold_line”).FoldLine,r=e(“./fold”).Fold,s=e(“../token_iterator”).TokenIterator,a=e(“../mouse/mouse_event”).MouseEvent;t.Folding=n})),ace.define(“ace/edit_session/bracket_match”,,(function(e,t){“use strict”;function n(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(“”==n)return null;var i=n.match(/([()|([)]}])/);return i?i?this.$findClosingBracket(i,e):this.$findOpeningBracket(i,e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),i=!0,r=n.charAt(e.column-1),s=r&&r.match(/([()|([)]}])/);if(s||(r=n.charAt(e.column),e={row:e.row,column:e.column+1},s=r&&r.match(/([()|([)]}])/),i=!1),!s)return null;if(s){if(!(a=this.$findClosingBracket(s,e)))return null;t=o.fromPoints(e,a),i||(t.end.column++,t.start.column–),t.cursor=t.end}else{var a;if(!(a=this.$findOpeningBracket(s,e)))return null;t=o.fromPoints(a,e),i||(t.start.column++,t.end.column–),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e,t){var n=this.getLine(e.row),i=/([()|([)]}])/,r=!t&&n.charAt(e.column-1),s=r&&r.match(i);if(s||(r=(void 0===t||t)&&n.charAt(e.column),e={row:e.row,column:e.column+1},s=r&&r.match(i)),!s)return null;var a=new o(e.row,e.column-1,e.row,e.column),l=s?this.$findClosingBracket(s,e):this.$findOpeningBracket(s,e);return l?[a,new o(l.row,l.column,l.row,l.column+1)]:},this.$brackets={“)”:“(”,“(”:“)”,“]”:“[”,“[”:“]”,“{”:“}”,“}”:“{”,“<”:“>”,“>”:“<”},this.$findOpeningBracket=function(e,t,n){var o=this.$brackets,r=1,s=new i(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp(“(\.?”+a.type.replace(“.”,“\.”).replace(“rparen”,“.paren”).replace(/b(?:end)b/,“(?:start|begin|end)”).replace(/-closeb/,“-(close|open)”)+“)+”));for(var l=t.column-s.getCurrentTokenColumn()-2,c=a.value;;){for(;l>=0;){var h=c.charAt(l);if(h==o){if(0==(r-=1))return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else h==e&&(r+=1);l-=1}do{a=s.stepBackward()}while(a&&!n.test(a.type));if(null==a)break;l=(c=a.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var o=this.$brackets,r=1,s=new i(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp(“(\.?”+a.type.replace(“.”,“\.”).replace(“lparen”,“.paren”).replace(/b(?:start|begin)b/,“(?:start|begin|end)”).replace(/-openb/,“-(close|open)”)+“)+”));for(var l=t.column-s.getCurrentTokenColumn();;){for(var c=a.value,h=c.length;l<h;){var u=c.charAt(l);if(u==o){if(0==(r-=1))return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else u==e&&(r+=1);l+=1}do{a=s.stepForward()}while(a&&!n.test(a.type));if(null==a)break;l=0}return null}},this.getMatchingTags=function(e){var t=new i(this,e.row,e.column),n=this.$findTagName(t);if(n)return“<”===t.stepBackward().value?this.$findClosingTag(t,n):this.$findOpeningTag(t,n)},this.$findTagName=function(e){var t=e.getCurrentToken(),n=!1,i=!1;if(t&&-1===t.type.indexOf(“tag-name”))do{(t=i?e.stepBackward():e.stepForward())&&(“/>”===t.value?i=!0:-1!==t.type.indexOf(“tag-name”)&&(n=!0))}while(t&&!n);return t},this.$findClosingTag=function(e,t){var n,i=t.value,r=t.value,s=0,a=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);t=e.stepForward();var l=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length),c=!1;do{if(n=t,t=e.stepForward()){if(“>”===t.value&&!c){var h=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);c=!0}if(-1!==t.type.indexOf(“tag-name”)){if(r===(i=t.value))if(“<”===n.value)s++;else if(“</”===n.value&&–s<0){e.stepBackward();var u=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2);t=e.stepForward();var d=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length);if(!(t=e.stepForward())||“>”!==t.value)return;var p=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else if(r===i&&“/>”===t.value&&–s<0)p=d=u=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2),h=new o(l.end.row,l.end.column,l.end.row,l.end.column+1)}}while(t&&s>=0);if(a&&h&&u&&p&&l&&d)return{openTag:new o(a.start.row,a.start.column,h.end.row,h.end.column),closeTag:new o(u.start.row,u.start.column,p.end.row,p.end.column),openTagName:l,closeTagName:d}},this.$findOpeningTag=function(e,t){var n=e.getCurrentToken(),i=t.value,r=0,s=e.getCurrentTokenRow(),a=e.getCurrentTokenColumn(),l=a+2,c=new o(s,a,s,l);e.stepForward();var h=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length);if((t=e.stepForward())&&“>”===t.value){var u=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);e.stepBackward(),e.stepBackward();do{if(t=n,s=e.getCurrentTokenRow(),l=(a=e.getCurrentTokenColumn())+t.value.length,n=e.stepBackward(),t)if(-1!==t.type.indexOf(“tag-name”)){if(i===t.value)if(“<”===n.value){if(++r>0){var d=new o(s,a,s,l),p=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);do{t=e.stepForward()}while(t&&“>”!==t.value);var g=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else“</”===n.value&&r–}else if(“/>”===t.value){for(var m=0,f=n;f;){if(-1!==f.type.indexOf(“tag-name”)&&f.value===i){r–;break}if(“<”===f.value)break;f=e.stepBackward(),m++}for(var v=0;v<m;v++)e.stepForward()}}while(n&&r<=0);return p&&g&&c&&u&&d&&h?{openTag:new o(p.start.row,p.start.column,g.end.row,g.end.column),closeTag:new o(c.start.row,c.start.column,u.end.row,u.end.column),openTagName:d,closeTagName:h}:void 0}}}var i=e(“../token_iterator”).TokenIterator,o=e(“../range”).Range;t.BracketMatch=n})),ace.define(“ace/edit_session”,,(function(e,t){“use strict”;function n(e){return!(e<4352)&&(e>=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}var i=e(“./lib/oop”),o=e(“./lib/lang”),r=e(“./bidihandler”).BidiHandler,s=e(“./config”),a=e(“./lib/event_emitter”).EventEmitter,l=e(“./selection”).Selection,c=e(“./mode/text”).Mode,h=e(“./range”).Range,u=e(“./document”).Document,d=e(“./background_tokenizer”).BackgroundTokenizer,p=e(“./search_highlight”).SearchHighlight,g=e(“./undomanager”).UndoManager,m=function(){function e(t,n){this.doc,this.$breakpoints=[],this.$decorations=,this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id=“session”+ ++e.$uid,this.$foldData.toString=function(){return this.join(“n”)},this.bgTokenizer=new d((new c).getTokenizer(),this);var i=this;this.bgTokenizer.on(“update”,(function(e){i._signal(“tokenizerUpdate”,e)})),this.on(“changeFold”,this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),“object”==typeof t&&t.getLine||(t=new u(t)),this.setDocument(t),this.selection=new l(this),this.$bidiHandler=new r(this),s.resetOptions(this),this.setMode(n),s._signal(“session”,this),this.destroyed=!1}return e.prototype.setDocument=function(e){this.doc&&this.doc.off(“change”,this.$onChange),this.doc=e,e.on(“change”,this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},e.prototype.getDocument=function(){return this.doc},e.prototype.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},e.prototype.$getRowCacheIndex=function(e,t){for(var n=0,i=e.length-1;n<=i;){var o=n+i>>1,r=e;if(t>r)n=o+1;else{if(!(t<r))return o;i=o-1}}return n-1},e.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=,this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},e.prototype.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},e.prototype.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&(t&&t.length&&(this.$undoManager.add({action:“removeFolds”,folds:t},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(e,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(e),this._signal(“change”,e)},e.prototype.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},e.fromJSON=function(t){“string”==typeof t&&(t=JSON.parse(t));var n=new g;n.$undoStack=t.history.undo,n.$redoStack=t.history.redo,n.mark=t.history.mark,n.$rev=t.history.rev;var i=new e(t.value);return t.folds.forEach((function(e){i.addFold(“…”,h.fromPoints(e.start,e.end))})),i.setAnnotations(t.annotations),i.setBreakpoints(t.breakpoints),i.setMode(t.mode),i.setScrollLeft(t.scrollLeft),i.setScrollTop(t.scrollTop),i.setUndoManager(n),i.selection.fromJSON(t.selection),i},e.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map((function(e){return e.range})),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},e.prototype.toString=function(){return this.doc.getValue()},e.prototype.getSelection=function(){return this.selection},e.prototype.getState=function(e){return this.bgTokenizer.getState(e)},e.prototype.getTokens=function(e){return this.bgTokenizer.getTokens(e)},e.prototype.getTokenAt=function(e,t){var n,i=this.bgTokenizer.getTokens(e),o=0;if(null==t){var r=i.length-1;o=this.getLine(e).length}else for(r=0;r<i.length&&!((o+=i.value.length)>=t);r++);return(n=i)?(n.index=r,n.start=o-n.value.length,n):null},e.prototype.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=o.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},e.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},e.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},e.prototype.getTabString=function(){return this.getUseSoftTabs()?o.stringRepeat(“ ”,this.getTabSize()):“t”},e.prototype.setUseSoftTabs=function(e){this.setOption(“useSoftTabs”,e)},e.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},e.prototype.setTabSize=function(e){this.setOption(“tabSize”,e)},e.prototype.getTabSize=function(){return this.$tabSize},e.prototype.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},e.prototype.setNavigateWithinSoftTabs=function(e){this.setOption(“navigateWithinSoftTabs”,e)},e.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},e.prototype.setOverwrite=function(e){this.setOption(“overwrite”,e)},e.prototype.getOverwrite=function(){return this.$overwrite},e.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},e.prototype.addGutterDecoration=function(e,t){this.$decorations||(this.$decorations=“”),this.$decorations+=“ ”+t,this._signal(“changeBreakpoint”,{})},e.prototype.removeGutterDecoration=function(e,t){this.$decorations=(this.$decorations||“”).replace(“ ”+t,“”),this._signal(“changeBreakpoint”,{})},e.prototype.getBreakpoints=function(){return this.$breakpoints},e.prototype.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e]=“ace_breakpoint”;this._signal(“changeBreakpoint”,{})},e.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal(“changeBreakpoint”,{})},e.prototype.setBreakpoint=function(e,t){void 0===t&&(t=“ace_breakpoint”),t?this.$breakpoints=t:delete this.$breakpoints,this._signal(“changeBreakpoint”,{})},e.prototype.clearBreakpoint=function(e){delete this.$breakpoints,this._signal(“changeBreakpoint”,{})},e.prototype.addMarker=function(e,t,n,i){var o=this.$markerId++,r={range:e,type:n||“line”,renderer:“function”==typeof n?n:null,clazz:t,inFront:!!i,id:o};return i?(this.$frontMarkers=r,this._signal(“changeFrontMarker”)):(this.$backMarkers=r,this._signal(“changeBackMarker”)),o},e.prototype.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers=e,this._signal(“changeFrontMarker”)):(this.$backMarkers=e,this._signal(“changeBackMarker”)),e}},e.prototype.removeMarker=function(e){var t=this.$frontMarkers||this.$backMarkers;t&&(delete(t.inFront?this.$frontMarkers:this.$backMarkers),this._signal(t.inFront?“changeFrontMarker”:“changeBackMarker”))},e.prototype.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},e.prototype.highlight=function(e){if(!this.$searchHighlight){var t=new p(null,“ace_selected-word”,“text”);this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},e.prototype.highlightLines=function(e,t,n,i){“number”!=typeof t&&(n=t,t=e),n||(n=“ace_step”);var o=new h(e,0,t,1/0);return o.id=this.addMarker(o,n,“fullLine”,i),o},e.prototype.setAnnotations=function(e){this.$annotations=e,this._signal(“changeAnnotation”,{})},e.prototype.getAnnotations=function(){return this.$annotations||[]},e.prototype.clearAnnotations=function(){this.setAnnotations()},e.prototype.$detectNewLine=function(e){var t=e.match(/^.*?(r?n)/m);this.$autoNewLine=t?t:“n”},e.prototype.getWordRange=function(e,t){var n=this.getLine(e),i=!1;if(t>0&&(i=!!n.charAt(t-1).match(this.tokenRe)),i||(i=!!n.charAt(t).match(this.tokenRe)),i)var o=this.tokenRe;else if(/^s+$/.test(n.slice(t-1,t+1)))o=/s/;else o=this.nonTokenRe;var r=t;if(r>0){do{r–}while(r>=0&&n.charAt®.match(o));r++}for(var s=t;s<n.length&&n.charAt(s).match(o);)s++;return new h(e,r,e,s)},e.prototype.getAWordRange=function(e,t){for(var n=this.getWordRange(e,t),i=this.getLine(n.end.row);i.charAt(n.end.column).match(/[ t]/);)n.end.column+=1;return n},e.prototype.setNewLineMode=function(e){this.doc.setNewLineMode(e)},e.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},e.prototype.setUseWorker=function(e){this.setOption(“useWorker”,e)},e.prototype.getUseWorker=function(){return this.$useWorker},e.prototype.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal(“tokenizerUpdate”,e)},e.prototype.setMode=function(e,t){if(e&&“object”==typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,i=n.path}else i=e||“ace/mode/text”;if(this.$modes||(this.$modes=new c),this.$modes&&!n)return this.$onChangeMode(this.$modes),void(t&&t());this.$modeId=i,s.loadModule(,function(e){if(this.$modeId!==i)return t&&t();this.$modes&&!n?this.$onChangeMode(this.$modes):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes=e,e.$id=i),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes,!0)},e.prototype.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){var n=this.$mode;this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var i=e.getTokenizer();if(void 0!==i.on){var o=this.onReloadTokenizer.bind(this);i.on(“update”,o)}this.bgTokenizer.setTokenizer(i),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit(“changeMode”,{oldMode:n,mode:e}))}},e.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},e.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){s.warn(“Could not load worker”,e),this.$worker=null}},e.prototype.getMode=function(){return this.$mode},e.prototype.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal(“changeScrollTop”,e))},e.prototype.getScrollTop=function(){return this.$scrollTop},e.prototype.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal(“changeScrollLeft”,e))},e.prototype.getScrollLeft=function(){return this.$scrollLeft},e.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},e.prototype.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach((function(t){t&&t.screenWidth>e&&(e=t.screenWidth)})),this.lineWidgetWidth=e},e.prototype.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,i=0,o=0,r=this.$foldData,s=r?r.start.row:1/0,a=t.length,l=0;l<a;l++){if(l>s){if((l=r.end.row+1)>=a)break;s=(r=this.$foldData)?r.start.row:1/0}null==n&&(n=this.$getStringScreenWidth(t)[0]),n>i&&(i=n)}this.screenWidth=i}},e.prototype.getLine=function(e){return this.doc.getLine(e)},e.prototype.getLines=function(e,t){return this.doc.getLines(e,t)},e.prototype.getLength=function(){return this.doc.getLength()},e.prototype.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},e.prototype.insert=function(e,t){return this.doc.insert(e,t)},e.prototype.remove=function(e){return this.doc.remove(e)},e.prototype.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},e.prototype.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n–){var i=e;“insert”==i.action||“remove”==i.action?this.doc.revertDelta(i):i.folds&&this.addFolds(i.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},e.prototype.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;n<e.length;n++){var i=e;“insert”!=i.action&&“remove”!=i.action||this.doc.$safeApplyDelta(i)}!t&&this.$undoSelect&&(e.selectionAfter?this.selection.fromJSON(e.selectionAfter):this.selection.setRange(this.$getUndoSelection(e,!1))),this.$fromUndo=!1}},e.prototype.setUndoSelect=function(e){this.$undoSelect=e},e.prototype.$getUndoSelection=function(e,t){function n(e){return t?“insert”!==e.action:“insert”===e.action}for(var i,o,r=0;r<e.length;r++){var s=e;s.start&&(i?n(s)?(o=s.start,-1==i.compare(o.row,o.column)&&i.setStart(o),o=s.end,1==i.compare(o.row,o.column)&&i.setEnd(o)):(o=s.start,-1==i.compare(o.row,o.column)&&(i=h.fromPoints(s.start,s.start))):i=n(s)?h.fromPoints(s.start,s.end):h.fromPoints(s.start,s.start))}return i},e.prototype.replace=function(e,t){return this.doc.replace(e,t)},e.prototype.moveText=function(e,t,n){var i=this.getTextRange(e),o=this.getFoldsInRange(e),r=h.fromPoints(t,t);if(!n){this.remove(e);var s=e.start.row-e.end.row;(c=s?-e.end.column:e.start.column-e.end.column)&&(r.start.row==e.end.row&&r.start.column>e.end.column&&(r.start.column+=c),r.end.row==e.end.row&&r.end.column>e.end.column&&(r.end.column+=c)),s&&r.start.row>=e.end.row&&(r.start.row+=s,r.end.row+=s)}if(r.end=this.insert(r.start,i),o.length){var a=e.start,l=r.start,c=(s=l.row-a.row,l.column-a.column);this.addFolds(o.map((function(e){return(e=e.clone()).start.row==a.row&&(e.start.column+=c),e.end.row==a.row&&(e.end.column+=c),e.start.row+=s,e.end.row+=s,e})))}return r},e.prototype.indentRows=function(e,t,n){n=n.replace(/t/g,this.getTabString());for(var i=e;i<=t;i++)this.doc.insertInLine({row:i,column:0},n)},e.prototype.outdentRows=function(e){for(var t=e.collapseRows(),n=new h(0,0,0,0),i=this.getTabSize(),o=t.start.row;o<=t.end.row;++o){var r=this.getLine(o);n.start.row=o,n.end.row=o;for(var s=0;s<i&&“ ”==r.charAt(s);++s);s<i&&“t”==r.charAt(s)?(n.start.column=s,n.end.column=s+1):(n.start.column=0,n.end.column=s),this.remove(n)}},e.prototype.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){if((o=this.getRowFoldStart(e+n))<0)return 0;var i=o-e}else if(n>0){var o;if((o=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;i=o-t}else{e=this.$clipRowToDocument(e);i=(t=this.$clipRowToDocument(t))-e+1}var r=new h(e,0,t,Number.MAX_VALUE),s=this.getFoldsInRange®.map((function(e){return(e=e.clone()).start.row+=i,e.end.row+=i,e})),a=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+i,a),s.length&&this.addFolds(s),i},e.prototype.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},e.prototype.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},e.prototype.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},e.prototype.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},e.prototype.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},e.prototype.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},e.prototype.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},e.prototype.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal(“changeWrapMode”)}},e.prototype.getUseWrapMode=function(){return this.$useWrapMode},e.prototype.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal(“changeWrapMode”))},e.prototype.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var i=this.$constrainWrapLimit(e,n.min,n.max);return i!=this.$wrapLimit&&i>1&&(this.$wrapLimit=i,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal(“changeWrapLimit”)),!0)},e.prototype.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},e.prototype.getWrapLimit=function(){return this.$wrapLimit},e.prototype.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},e.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},e.prototype.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,i=e.start,o=e.end,r=i.row,s=o.row,a=s-r,l=null;if(this.$updating=!0,0!=a)if(“remove”===n){this.splice(r,a);var c=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var h=0;if(m=this.getFoldLine(o.row)){m.addRemoveChars(o.row,o.column,i.column-o.column),m.shiftRow(-a);var u=this.getFoldLine®;u&&u!==m&&(u.merge(m),m=u),h=c.indexOf(m)+1}for(;h<c.length;h++){(m=c).start.row>=o.row&&m.shiftRow(-a)}s=r}else{var d=Array(a);d.unshift(r,0);var p=t?this.$wrapData:this.$rowLengthCache;p.splice.apply(p,d);c=this.$foldData,h=0;if(m=this.getFoldLine®){var g=m.range.compareInside(i.row,i.column);0==g?(m=m.split(i.row,i.column))&&(m.shiftRow(a),m.addRemoveChars(s,0,o.column-i.column)):-1==g&&(m.addRemoveChars(r,0,o.column-i.column),m.shiftRow(a)),h=c.indexOf(m)+1}for(;h<c.length;h++){var m;(m=c).start.row>=r&&m.shiftRow(a)}}else a=Math.abs(e.start.column-e.end.column),“remove”===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),a=-a),(m=this.getFoldLine®)&&m.addRemoveChars(r,i.column,a);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error(“doc.getLength() and $wrapData.length have to be the same!”),this.$updating=!1,t?this.$updateWrapData(r,s):this.$updateRowLengthCache(r,s),l},e.prototype.$updateRowLengthCache=function(e,t){this.$rowLengthCache=null,this.$rowLengthCache=null},e.prototype.$updateWrapData=function(e,t){var n,i,o=this.doc.getAllLines(),r=this.getTabSize(),s=this.$wrapData,a=this.$wrapLimit,l=e;for(t=Math.min(t,o.length-1);l<=t;)(i=this.getFoldLine(l,i))?(n=[],i.walk(function(e,t,i,r){ var s;if(null!=e){(s=this.$getDisplayTokens(e,n.length))=y;for(var a=1;a<s.length;a++)s=b}else s=this.$getDisplayTokens(o.substring(r,i),n.length);n=n.concat(s)}.bind(this),i.end.row,o.length+1),s=this.$computeWrapSplits(n,a,r),l=i.end.row+1):(n=this.$getDisplayTokens(o),s=this.$computeWrapSplits(n,a,r),l++)},e.prototype.$computeWrapSplits=function(e,t,n){function i(){var t=0;if(0===u)return t;if(h)for(var i=0;i<e.length;i++){var o=e;if(o==x)t+=1;else{if(o!=k){if(o==C)continue;break}t+=n}}return c&&!1!==h&&(t+=n),Math.min(t,u)}function o(t){for(var n=t-a,o=a;o<t;o++){var s=e;12!==s&&2!==s||(n-=1)}r.length||(d=i(),r.indent=d),l+=n,r.push(l),a=t}if(0==e.length)return[];for(var r=[],s=e.length,a=0,l=0,c=this.$wrapAsCode,h=this.$indentedSoftWrap,u=t<=Math.max(2*n,8)||!1===h?0:Math.floor(t/2),d=0;s-a>t-d;){var p=a+t-d;if(e>=x&&e>=x)o(p);else if(e!=y&&e!=b){for(var g=Math.max(p-(t-(t>>2)),a-1);p>g&&e<y;)p–;if©{for(;p>g&&e<y;)p–;for(;p>g&&e==w;)p–}else for(;p>g&&e<x;)p–;p>g?o(++p):(e==v&&p–,o(p-d))}else{for(;p!=a-1&&e!=y;p–);if(p>a){o(p);continue}for(p=a+t;p<e.length&&e==b;p++);if(p==e.length)break;o(p)}}return r},e.prototype.$getDisplayTokens=function(e,t){var i,o=[];t=t||0;for(var r=0;r<e.length;r++){var s=e.charCodeAt®;if(9==s){i=this.getScreenTabSize(o.length+t),o.push(k);for(var a=1;a<i;a++)o.push©}else 32==s?o.push(x):s>39&&s<48||s>57&&s<64?o.push(w):s>=4352&&n(s)?o.push(f,v):o.push(f)}return o},e.prototype.$getStringScreenWidth=function(e,t,i){if(0==t)return;var o,r;for(null==t&&(t=1/0),i=i||0,r=0;r<e.length&&(9==(o=e.charCodeAt®)?i+=this.getScreenTabSize(i):o>=4352&&n(o)?i+=2:i+=1,!(i>t));r++);return},e.prototype.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets&&this.lineWidgets.rowCount||0),this.$useWrapMode&&this.$wrapData?this.$wrapData.length+t:t},e.prototype.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData?this.$wrapData.length+1:1},e.prototype.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData;return n.length&&n<t.column?n.indent:0}return 0},e.prototype.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},e.prototype.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},e.prototype.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},e.prototype.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData:void 0},e.prototype.getScreenTabSize=function(e){return this.$tabSize-(e%this.$tabSize|0)},e.prototype.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},e.prototype.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},e.prototype.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var i,o,r=0,s=0,a=0,l=0,c=this.$screenRowCache,h=this.$getRowCacheIndex(c,e),u=c.length;if(u&&h>=0){a=c,r=this.$docRowCache;var d=e>c}else d=!u;for(var p=this.getLength()-1,g=this.getNextFoldLine®,m=g?g.start.row:1/0;a<=e&&!(a+(l=this.getRowLength®)>e||r>=p);)a+=l,++r>m&&(r=g.end.row+1,m=(g=this.getNextFoldLine(r,g))?g.start.row:1/0),d&&(this.$docRowCache.push®,this.$screenRowCache.push(a));if(g&&g.start.row<=r)i=this.getFoldDisplayLine(g),r=g.start.row;else{if(a+l<=e||r>p)return{row:p,column:this.getLine(p).length};i=this.getLine®,g=null}var f=0,v=Math.floor(e-a);if(this.$useWrapMode){var y=this.$wrapData;y&&(o=y,v>0&&y.length&&(f=y.indent,s=y||y,i=i.substring(s)))}return void 0!==n&&this.$bidiHandler.isBidiRow(a+v,r,v)&&(t=this.$bidiHandler.offsetToCol(n)),s+=this.$getStringScreenWidth(i,t-f),this.$useWrapMode&&s>=o&&(s=o-1),g?g.idxToPosition(s):{row:r,column:s}},e.prototype.documentToScreenPosition=function(e,t){if(void 0===t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var i=0,o=null,r=null;(r=this.getFoldAt(e,t,1))&&(e=r.start.row,t=r.start.column);var s,a=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,e),h=l.length;if(h&&c>=0){a=l,i=this.$screenRowCache;var u=e>l}else u=!h;for(var d=this.getNextFoldLine(a),p=d?d.start.row:1/0;a<e;){if(a>=p){if((s=d.end.row+1)>e)break;p=(d=this.getNextFoldLine(s,d))?d.start.row:1/0}else s=a+1;i+=this.getRowLength(a),a=s,u&&(this.$docRowCache.push(a),this.$screenRowCache.push(i))}var g=“”;d&&a>=p?(g=this.getFoldDisplayLine(d,e,t),o=d.start.row):(g=this.getLine(e).substring(0,t),o=e);var m=0;if(this.$useWrapMode){var f=this.$wrapData;if(f){for(var v=0;g.length>=f;)i++,v++;g=g.substring(f||0,g.length),m=v>0?f.indent:0}}return this.lineWidgets&&this.lineWidgets&&this.lineWidgets.rowsAbove&&(i+=this.lineWidgets.rowsAbove),{row:i,column:m+this.$getStringScreenWidth(g)}},e.prototype.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},e.prototype.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},e.prototype.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,i=0,o=(a=0,(t=this.$foldData)?t.start.row:1/0);i<n;){var r=this.$wrapData;e+=r?r.length+1:1,++i>o&&(i=t.end.row+1,o=(t=this.$foldData)?t.start.row:1/0)}else{e=this.getLength();for(var s=this.$foldData,a=0;a<s.length;a++)e-=(t=s).end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},e.prototype.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,i){if(0===n)return;var o,r;for(n||(n=1/0),i=i||0,r=0;r<t.length&&!((i+=“t”===(o=t.charAt®)?this.getScreenTabSize(i):e.getCharacterWidth(o))>n);r++);return})},e.prototype.getPrecedingCharacter=function(){var e=this.selection.getCursor();return 0===e.column?0===e.row?“”:this.doc.getNewLineCharacter():this.getLine(e.row)},e.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()},e}();m.$uid=0,m.prototype.$modes=s.$modes,m.prototype.getValue=m.prototype.toString,m.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},m.prototype.$overwrite=!1,m.prototype.$mode=null,m.prototype.$modeId=null,m.prototype.$scrollTop=0,m.prototype.$scrollLeft=0,m.prototype.$wrapLimit=80,m.prototype.$useWrapMode=!1,m.prototype.$wrapLimitRange={min:null,max:null},m.prototype.lineWidgets=null,m.prototype.isFullWidth=n,i.implement(m.prototype,a);var f=1,v=2,y=3,b=4,w=9,x=10,k=11,C=12;e(“./edit_session/folding”).Folding.call(m.prototype),e(“./edit_session/bracket_match”).BracketMatch.call(m.prototype),s.defineOptions(m.prototype,“session”,{wrap:{set:function(e){if(e&&“off”!=e?“free”==e?e=!0:“printMargin”==e?e=-1:“string”==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t=“number”==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?“printMargin”:this.getWrapLimitRange().min?this.$wrap:“free”:“off”},handlesSet:!0},wrapMethod:{set:function(e){(e=“auto”==e?“text”!=this.$mode.type:“text”!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,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(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){(e=parseInt(e))>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal(“changeTabSize”))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(){this._signal(“changeOverwrite”)},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=m})),ace.define(“ace/search”,,(function(e,t){“use strict”;function n(e,t){function n(e,n){return void 0===n&&(n=!0),(o&&t.$supportsUnicodeFlag?new RegExp(“”,“u”):new RegExp(“\w”)).test(e)||t.regExp?o&&t.$supportsUnicodeFlag?n?“(?<=^|)”:“(?=[^\p{L}\p{N}_]|$)”:“\b”:“”}var o=i.supportsLookbehind(),r=Array.from(e),s=r,a=r;return n(s)+e+n(a,!1)}var i=e(“./lib/lang”),o=e(“./lib/oop”),r=e(“./range”).Range,s=function(){function e(){this.$options={}}return e.prototype.set=function(e){return o.mixin(this.$options,e),this},e.prototype.getOptions=function(){return i.copyObject(this.$options)},e.prototype.setOptions=function(e){this.$options=e},e.prototype.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var i=null;return n.forEach((function(e,n,o,s){return i=new r(e,n,o,s),!(n==s&&t.start&&t.start.start&&0!=t.skipCurrent&&i.isEqual(t.start))||(i=null,!1)})),i},e.prototype.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,o=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),s=[],a=t.re;if(t.$isMultiLine){var l,c=a.length,h=o.length-c;e:for(var u=a.offset||0;u<=h;u++){for(var d=0;d<c;d++)if(-1==o.search(a))continue e;var p=o,g=o,m=p.length-p.match(a)[0].length,f=g.match(a)[0].length;l&&l.end.row===u&&l.end.column>m||(s.push(l=new r(u,m,u+c-1,f)),c>2&&(u=u+c-2))}}else for(var v=0;v<o.length;v++){var y=i.getMatchOffsets(o,a);for(d=0;d<y.length;d++){var b=y;s.push(new r(v,b.offset,v,b.offset+b.length))}}if(n){var w=n.start.column,x=n.end.column;for(v=0,d=s.length-1;v<d&&s.start.column<w&&0==s.start.row;)v++;for(var k=n.end.row-n.start.row;v<d&&s.end.column>x&&s.end.row==k;)d–;for(s=s.slice(v,d+1),v=0,d=s.length;v<d;v++)s.start.row+=n.start.row,s.end.row+=n.start.row}return s},e.prototype.replace=function(e,t){var n=this.$options,i=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(i){var o=i.exec(e);if(!o||o.length!=e.length)return null;if(n.regExp||(t=t.replace(/$/g,“$$$$”)),t=e.replace(i,t),n.preserveCase){t=t.split(“”);for(var r=Math.min(e.length,e.length);r–;){var s=e;s&&s.toLowerCase()!=s?t=t.toUpperCase():t=t.toLowerCase()}t=t.join(“”)}return t}},e.prototype.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var o=e.needle;if(!e.needle)return e.re=!1;e.regExp||(o=i.escapeRegExp(o));var r=e.caseSensitive?“gm”:“gmi”;try{new RegExp(o,“u”),e.$supportsUnicodeFlag=!0,r+=“u”}catch(t){e.$supportsUnicodeFlag=!1}if(e.wholeWord&&(o=n(o,e)),e.$isMultiLine=!t&&//.test(o),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(o,r);try{var s=new RegExp(o,r)}catch(e){s=!1}return e.re=s},e.prototype.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/rn|r|n/g,“$n^”).split(“n”),i=[],o=0;o<n.length;o++)try{i.push(new RegExp(n,t))}catch(e){return!1}return i},e.prototype.$matchIterator=function(e,t){var n=this.$assembleRegExp(t);if(!n)return!1;var o=1==t.backwards,r=0!=t.skipCurrent,s=n.unicode,a=t.range,l=t.start;l||(l=a?a:e.selection.getRange()),l.start&&(l=l);var c=a?a.start.row:0,h=a?a.end.row:e.getLength()-1;if(o)var u=function(e){var n=l.row;if(!p(n,l.column,e)){for(n–;n>=c;n–)if(p(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=h,c=l.row;n>=c;n–)if(p(n,Number.MAX_VALUE,e))return}};else u=function(e){var n=l.row;if(!p(n,l.column,e)){for(n+=1;n<=h;n++)if(p(n,0,e))return;if(0!=t.wrap)for(n=c,h=l.row;n<=h;n++)if(p(n,0,e))return}};if(t.$isMultiLine)var d=n.length,p=function(t,i,r){var s=o?t-d+1:t;if(!(s<0||s+d>e.getLength())){var a=e.getLine(s),l=a.search(n);if(!(!o&&l<i||-1===l)){for(var c=1;c<d;c++)if(-1==(a=e.getLine(s+c)).search(n))return;var h=a.match(n)[0].length;if(!(o&&h>i))return!!r(s,l,s+d-1,h)||void 0}}};else if(o)p=function(t,o,r){var a,l=e.getLine(t),c=[],h=0;for(n.lastIndex=0;a=n.exec(l);){var u=a.length;if(h=a.index,!u){if(h>=l.length)break;n.lastIndex=h+=i.skipEmptyMatch(l,h,s)}if(a.index+u>o)break;c.push(a.index,u)}for(var d=c.length-1;d>=0;d-=2){var p=c;if(r(t,p,t,p+(u=c)))return!0}};else p=function(t,o,r){var a,l,c=e.getLine(t);for(n.lastIndex=o;l=n.exec©;){var h=l.length;if(r(t,a=l.index,t,a+h))return!0;if(!h&&(n.lastIndex=a+=i.skipEmptyMatch(c,a,s),a>=c.length))return!1}};return{forEach:u}},e}();t.Search=s})),ace.define(“ace/keyboard/hash_handler”,,(function(e,t){“use strict”;function n(e){return“object”==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e=t)},i(e,t)},function(e,t){function n(){this.constructor=e}if(“function”!=typeof t&&null!==t)throw new TypeError(“Class extends value ”+String(t)+“ is not a constructor or null”);i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=e(“../lib/keys”),s=e(“../lib/useragent”),a=r.KEY_MODS,l=function(){function e(e,t){this.$init(e,t,!1)}return e.prototype.$init=function(e,t,n){this.platform=t||(s.isMac?“mac”:“win”),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=n},e.prototype.addCommand=function(e){this.commands&&this.removeCommand(e),this.commands=e,e.bindKey&&this._buildKeyHash(e)},e.prototype.removeCommand=function(e,t){var n=e&&(“string”==typeof e?e:e.name);e=this.commands,t||delete this.commands;var i=this.commandKeyBinding;for(var o in i){var r=i;if(r==e)delete i;else if(Array.isArray®){var s=r.indexOf(e);-1!=s&&(r.splice(s,1),1==r.length&&(i=r))}}},e.prototype.bindKey=function(e,t,n){if(“object”==typeof e&&e&&(null==n&&(n=e.position),e=e),e)return“function”==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split(“|”).forEach((function(e){var i=“”;if(-1!=e.indexOf(“ ”)){var o=e.split(/s+/);e=o.pop(),o.forEach((function(e){var t=this.parseKeys(e),n=a+t.key;i+=(i?“ ”:“”)+n,this._addCommandToBinding(i,“chainKeys”)}),this),i+=“ ”}var r=this.parseKeys(e),s=a+r.key;this._addCommandToBinding(i+s,t,n)}),this)},e.prototype._addCommandToBinding=function(e,t,i){var o,r=this.commandKeyBinding;if(t)if(!r||this.$singleCommand)r=t;else{Array.isArray(r)?-1!=(o=r.indexOf(t))&&r.splice(o,1):r=[r],“number”!=typeof i&&(i=n(t));var s=r;for(o=0;o<s.length;o++){if(n(s)>i)break}s.splice(o,0,t)}else delete r},e.prototype.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e;if(n){if(“string”==typeof n)return this.bindKey(n,t);“function”==typeof n&&(n={exec:n}),“object”==typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},e.prototype.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e)}),this)},e.prototype.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e)}),this)},e.prototype._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},e.prototype.parseKeys=function(e){var t=e.toLowerCase().split(/([-+])?/).filter((function(e){return e})),n=t.pop(),i=r;if(r.FUNCTION_KEYS)n=r.FUNCTION_KEYS.toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&“shift”==t)return{key:n.toUpperCase(),hashId:-1}}for(var o=0,s=t.length;s–;){var a=r.KEY_MODS[t];if(null==a)return“undefined”!=typeof console&&console.error(“invalid modifier ”t[s]
“ in ”+e),!1;o|=a}return{key:n,hashId:o}},e.prototype.findKeyCommand=function(e,t){var n=a+t;return this.commandKeyBinding},e.prototype.handleKeyboard=function(e,t,n,i){if(!(i<0)){var o=a+n,r=this.commandKeyBinding;return e.$keyChain&&(e.$keyChain+=“ ”+o,r=this.commandKeyBinding||r),!r||“chainKeys”!=r&&“chainKeys”!=r?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||i>0)&&(e.$keyChain=“”):e.$keyChain=e.$keyChain.slice(0,-o.length-1)),{command:r}):(e.$keyChain=e.$keyChain||o,{command:“null”})}},e.prototype.getStatusText=function(e,t){return t.$keyChain||“”},e}(),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.$singleCommand=!0,i}return o(t,e),t}(l);c.call=function(e,t,n){l.prototype.$init.call(e,t,n,!0)},l.call=function(e,t,n){l.prototype.$init.call(e,t,n,!1)},t.HashHandler=c,t.MultiHashHandler=l})),ace.define(“ace/commands/command_manager”,,(function(e,t){“use strict”;var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e=t)},n(e,t)},function(e,t){function i(){this.constructor=e}if(“function”!=typeof t&&null!==t)throw new TypeError(“Class extends value ”+String(t)+“ is not a constructor or null”);n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=e(“../lib/oop”),r=e(“../keyboard/hash_handler”).MultiHashHandler,s=e(“../lib/event_emitter”).EventEmitter,a=function(e){function t(t,n){var i=e.call(this,n,t)||this;return i.byName=i.commands,i.setDefaultHandler(“exec”,(function(e){return e.args?e.command.exec(e.editor,e.args,e.event,!1):e.command.exec(e.editor,{},e.event,!0)})),i}return i(t,e),t.prototype.exec=function(e,t,n){if(Array.isArray(e)){for(var i=e.length;i–;)if(this.exec(e,t,n))return!0;return!1}if(“string”==typeof e&&(e=this.commands),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var o={editor:t,command:e,args:n};return o.returnValue=this._emit(“exec”,o),this._signal(“afterExec”,o),!1!==o.returnValue},t.prototype.toggleRecording=function(e){if(!this.$inReplay)return e&&e._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()}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on(“exec”,this.$addCommandToMacro),this.recording=!0)},t.prototype.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){“string”==typeof t?this.exec(t,e):this.exec(t,e,t)}),this)}finally{this.$inReplay=!1}}},t.prototype.trimMacro=function(e){return e.map((function(e){return“string”!=typeof e&&(e=e.name),e||(e=e),e}))},t}®;o.implement(a.prototype,s),t.CommandManager=a})),ace.define(“ace/commands/default_commands”,,(function(e,t){“use strict”;function n(e,t){return{win:e,mac:t}}var i=e(“../lib/lang”),o=e(“../config”),r=e(“../range”).Range;t.commands=[{name:“showSettingsMenu”,description:“Show settings menu”,bindKey:n(“Ctrl-,”,“Command-,”),exec:function(e){o.loadModule(“ace/ext/settings_menu”,(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:“goToNextError”,description:“Go to next error”,bindKey:n(“Alt-E”,“F4”),exec:function(e){o.loadModule(“ace/ext/error_marker”,(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:“animate”,readOnly:!0},{name:“goToPreviousError”,description:“Go to previous error”,bindKey:n(“Alt-Shift-E”,“Shift-F4”),exec:function(e){o.loadModule(“ace/ext/error_marker”,(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:“animate”,readOnly:!0},{name:“selectall”,description:“Select all”,bindKey:n(“Ctrl-A”,“Command-A”),exec:function(e){e.selectAll()},readOnly:!0},{name:“centerselection”,description:“Center selection”,bindKey:n(null,“Ctrl-L”),exec:function(e){e.centerSelection()},readOnly:!0},{name:“gotoline”,description:“Go to line…”,bindKey:n(“Ctrl-L”,“Command-L”),exec:function(e,t){“number”!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:“gotoLine”})},readOnly:!0},{name:“fold”,bindKey:n(“Alt-L|Ctrl-F1”,“Command-Alt-L|Command-F1”),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:“forEach”,scrollIntoView:“center”,readOnly:!0},{name:“unfold”,bindKey:n(“Alt-Shift-L|Ctrl-Shift-F1”,“Command-Alt-Shift-L|Command-Shift-F1”),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:“forEach”,scrollIntoView:“center”,readOnly:!0},{name:“toggleFoldWidget”,description:“Toggle fold widget”,bindKey:n(“F2”,“F2”),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:“forEach”,scrollIntoView:“center”,readOnly:!0},{name:“toggleParentFoldWidget”,description:“Toggle parent fold widget”,bindKey:n(“Alt-F2”,“Alt-F2”),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:“forEach”,scrollIntoView:“center”,readOnly:!0},{name:“foldall”,description:“Fold all”,bindKey:n(null,“Ctrl-Command-Option-0”),exec:function(e){e.session.foldAll()},scrollIntoView:“center”,readOnly:!0},{name:“foldAllComments”,description:“Fold all comments”,bindKey:n(null,“Ctrl-Command-Option-0”),exec:function(e){e.session.foldAllComments()},scrollIntoView:“center”,readOnly:!0},{name:“foldOther”,description:“Fold other”,bindKey:n(“Alt-0”,“Command-Option-0”),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:“center”,readOnly:!0},{name:“unfoldall”,description:“Unfold all”,bindKey:n(“Alt-Shift-0”,“Command-Option-Shift-0”),exec:function(e){e.session.unfold()},scrollIntoView:“center”,readOnly:!0},{name:“findnext”,description:“Find next”,bindKey:n(“Ctrl-K”,“Command-G”),exec:function(e){e.findNext()},multiSelectAction:“forEach”,scrollIntoView:“center”,readOnly:!0},{name:“findprevious”,description:“Find previous”,bindKey:n(“Ctrl-Shift-K”,“Command-Shift-G”),exec:function(e){e.findPrevious()},multiSelectAction:“forEach”,scrollIntoView:“center”,readOnly:!0},{name:“selectOrFindNext”,description:“Select or find next”,bindKey:n(“Alt-K”,“Ctrl-G”),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:“selectOrFindPrevious”,description:“Select or find previous”,bindKey:n(“Alt-Shift-K”,“Ctrl-Shift-G”),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:“find”,description:“Find”,bindKey:n(“Ctrl-F”,“Command-F”),exec:function(e){o.loadModule(“ace/ext/searchbox”,(function(t){t.Search(e)}))},readOnly:!0},{name:“overwrite”,description:“Overwrite”,bindKey:“Insert”,exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:“selecttostart”,description:“Select to start”,bindKey:n(“Ctrl-Shift-Home”,“Command-Shift-Home|Command-Shift-Up”),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:“forEach”,readOnly:!0,scrollIntoView:“animate”,aceCommandGroup:“fileJump”},{name:“gotostart”,description:“Go to start”,bindKey:n(“Ctrl-Home”,“Command-Home|Command-Up”),exec:function(e){e.navigateFileStart()},multiSelectAction:“forEach”,readOnly:!0,scrollIntoView:“animate”,aceCommandGroup:“fileJump”},{name:“selectup”,description:“Select up”,bindKey:n(“Shift-Up”,“Shift-Up|Ctrl-Shift-P”),exec:function(e){e.getSelection().selectUp()},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“golineup”,description:“Go line up”,bindKey:n(“Up”,“Up|Ctrl-P”),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“selecttoend”,description:“Select to end”,bindKey:n(“Ctrl-Shift-End”,“Command-Shift-End|Command-Shift-Down”),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:“forEach”,readOnly:!0,scrollIntoView:“animate”,aceCommandGroup:“fileJump”},{name:“gotoend”,description:“Go to end”,bindKey:n(“Ctrl-End”,“Command-End|Command-Down”),exec:function(e){e.navigateFileEnd()},multiSelectAction:“forEach”,readOnly:!0,scrollIntoView:“animate”,aceCommandGroup:“fileJump”},{name:“selectdown”,description:“Select down”,bindKey:n(“Shift-Down”,“Shift-Down|Ctrl-Shift-N”),exec:function(e){e.getSelection().selectDown()},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“golinedown”,description:“Go line down”,bindKey:n(“Down”,“Down|Ctrl-N”),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“selectwordleft”,description:“Select word left”,bindKey:n(“Ctrl-Shift-Left”,“Option-Shift-Left”),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“gotowordleft”,description:“Go to word left”,bindKey:n(“Ctrl-Left”,“Option-Left”),exec:function(e){e.navigateWordLeft()},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“selecttolinestart”,description:“Select to line start”,bindKey:n(“Alt-Shift-Left”,“Command-Shift-Left|Ctrl-Shift-A”),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“gotolinestart”,description:“Go to line start”,bindKey:n(“Alt-Left|Home”,“Command-Left|Home|Ctrl-A”),exec:function(e){e.navigateLineStart()},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“selectleft”,description:“Select left”,bindKey:n(“Shift-Left”,“Shift-Left|Ctrl-Shift-B”),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“gotoleft”,description:“Go to left”,bindKey:n(“Left”,“Left|Ctrl-B”),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“selectwordright”,description:“Select word right”,bindKey:n(“Ctrl-Shift-Right”,“Option-Shift-Right”),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“gotowordright”,description:“Go to word right”,bindKey:n(“Ctrl-Right”,“Option-Right”),exec:function(e){e.navigateWordRight()},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“selecttolineend”,description:“Select to line end”,bindKey:n(“Alt-Shift-Right”,“Command-Shift-Right|Shift-End|Ctrl-Shift-E”),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“gotolineend”,description:“Go to line end”,bindKey:n(“Alt-Right|End”,“Command-Right|End|Ctrl-E”),exec:function(e){e.navigateLineEnd()},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“selectright”,description:“Select right”,bindKey:n(“Shift-Right”,“Shift-Right”),exec:function(e){e.getSelection().selectRight()},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“gotoright”,description:“Go to right”,bindKey:n(“Right”,“Right|Ctrl-F”),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“selectpagedown”,description:“Select page down”,bindKey:“Shift-PageDown”,exec:function(e){e.selectPageDown()},readOnly:!0},{name:“pagedown”,description:“Page down”,bindKey:n(null,“Option-PageDown”),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:“gotopagedown”,description:“Go to page down”,bindKey:n(“PageDown”,“PageDown|Ctrl-V”),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:“selectpageup”,description:“Select page up”,bindKey:“Shift-PageUp”,exec:function(e){e.selectPageUp()},readOnly:!0},{name:“pageup”,description:“Page up”,bindKey:n(null,“Option-PageUp”),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:“gotopageup”,description:“Go to page up”,bindKey:“PageUp”,exec:function(e){e.gotoPageUp()},readOnly:!0},{name:“scrollup”,description:“Scroll up”,bindKey:n(“Ctrl-Up”,null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:“scrolldown”,description:“Scroll down”,bindKey:n(“Ctrl-Down”,null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:“selectlinestart”,description:“Select line start”,bindKey:“Shift-Home”,exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“selectlineend”,description:“Select line end”,bindKey:“Shift-End”,exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“togglerecording”,description:“Toggle recording”,bindKey:n(“Ctrl-Alt-E”,“Command-Option-E”),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:“replaymacro”,description:“Replay macro”,bindKey:n(“Ctrl-Shift-E”,“Command-Shift-E”),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:“jumptomatching”,description:“Jump to matching”,bindKey:n(“Ctrl-\|Ctrl-P”,“Command-\”),exec:function(e){e.jumpToMatching()},multiSelectAction:“forEach”,scrollIntoView:“animate”,readOnly:!0},{name:“selecttomatching”,description:“Select to matching”,bindKey:n(“Ctrl-Shift-\|Ctrl-Shift-P”,“Command-Shift-\”),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:“forEach”,scrollIntoView:“animate”,readOnly:!0},{name:“expandToMatching”,description:“Expand to matching”,bindKey:n(“Ctrl-Shift-M”,“Ctrl-Shift-M”),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:“forEach”,scrollIntoView:“animate”,readOnly:!0},{name:“passKeysToBrowser”,description:“Pass keys to browser”,bindKey:n(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:“copy”,description:“Copy”,exec:function(){},readOnly:!0},{name:“cut”,description:“Cut”,exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit(“cut”,t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:“cursor”,multiSelectAction:“forEach”},{name:“paste”,description:“Paste”,exec:function(e,t){e.$handlePaste(t)},scrollIntoView:“cursor”},{name:“removeline”,description:“Remove line”,bindKey:n(“Ctrl-D”,“Command-D”),exec:function(e){e.removeLines()},scrollIntoView:“cursor”,multiSelectAction:“forEachLine”},{name:“duplicateSelection”,description:“Duplicate selection”,bindKey:n(“Ctrl-Shift-D”,“Command-Shift-D”),exec:function(e){e.duplicateSelection()},scrollIntoView:“cursor”,multiSelectAction:“forEach”},{name:“sortlines”,description:“Sort lines”,bindKey:n(“Ctrl-Alt-S”,“Command-Alt-S”),exec:function(e){e.sortLines()},scrollIntoView:“selection”,multiSelectAction:“forEachLine”},{name:“togglecomment”,description:“Toggle comment”,bindKey:n(“Ctrl-/”,“Command-/”),exec:function(e){e.toggleCommentLines()},multiSelectAction:“forEachLine”,scrollIntoView:“selectionPart”},{name:“toggleBlockComment”,description:“Toggle block comment”,bindKey:n(“Ctrl-Shift-/”,“Command-Shift-/”),exec:function(e){e.toggleBlockComment()},multiSelectAction:“forEach”,scrollIntoView:“selectionPart”},{name:“modifyNumberUp”,description:“Modify number up”,bindKey:n(“Ctrl-Shift-Up”,“Alt-Shift-Up”),exec:function(e){e.modifyNumber(1)},scrollIntoView:“cursor”,multiSelectAction:“forEach”},{name:“modifyNumberDown”,description:“Modify number down”,bindKey:n(“Ctrl-Shift-Down”,“Alt-Shift-Down”),exec:function(e){e.modifyNumber(-1)},scrollIntoView:“cursor”,multiSelectAction:“forEach”},{name:“replace”,description:“Replace”,bindKey:n(“Ctrl-H”,“Command-Option-F”),exec:function(e){o.loadModule(“ace/ext/searchbox”,(function(t){t.Search(e,!0)}))}},{name:“undo”,description:“Undo”,bindKey:n(“Ctrl-Z”,“Command-Z”),exec:function(e){e.undo()}},{name:“redo”,description:“Redo”,bindKey:n(“Ctrl-Shift-Z|Ctrl-Y”,“Command-Shift-Z|Command-Y”),exec:function(e){e.redo()}},{name:“copylinesup”,description:“Copy lines up”,bindKey:n(“Alt-Shift-Up”,“Command-Option-Up”),exec:function(e){e.copyLinesUp()},scrollIntoView:“cursor”},{name:“movelinesup”,description:“Move lines up”,bindKey:n(“Alt-Up”,“Option-Up”),exec:function(e){e.moveLinesUp()},scrollIntoView:“cursor”},{name:“copylinesdown”,description:“Copy lines down”,bindKey:n(“Alt-Shift-Down”,“Command-Option-Down”),exec:function(e){e.copyLinesDown()},scrollIntoView:“cursor” },{name:“movelinesdown”,description:“Move lines down”,bindKey:n(“Alt-Down”,“Option-Down”),exec:function(e){e.moveLinesDown()},scrollIntoView:“cursor”},{name:“del”,description:“Delete”,bindKey:n(“Delete”,“Delete|Ctrl-D|Shift-Delete”),exec:function(e){e.remove(“right”)},multiSelectAction:“forEach”,scrollIntoView:“cursor”},{name:“backspace”,description:“Backspace”,bindKey:n(“Shift-Backspace|Backspace”,“Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H”),exec:function(e){e.remove(“left”)},multiSelectAction:“forEach”,scrollIntoView:“cursor”},{name:“cut_or_delete”,description:“Cut or delete”,bindKey:n(“Shift-Delete”,null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove(“left”)},multiSelectAction:“forEach”,scrollIntoView:“cursor”},{name:“removetolinestart”,description:“Remove to line start”,bindKey:n(“Alt-Backspace”,“Command-Backspace”),exec:function(e){e.removeToLineStart()},multiSelectAction:“forEach”,scrollIntoView:“cursor”},{name:“removetolineend”,description:“Remove to line end”,bindKey:n(“Alt-Delete”,“Ctrl-K|Command-Delete”),exec:function(e){e.removeToLineEnd()},multiSelectAction:“forEach”,scrollIntoView:“cursor”},{name:“removetolinestarthard”,description:“Remove to line start hard”,bindKey:n(“Ctrl-Shift-Backspace”,null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:“forEach”,scrollIntoView:“cursor”},{name:“removetolineendhard”,description:“Remove to line end hard”,bindKey:n(“Ctrl-Shift-Delete”,null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:“forEach”,scrollIntoView:“cursor”},{name:“removewordleft”,description:“Remove word left”,bindKey:n(“Ctrl-Backspace”,“Alt-Backspace|Ctrl-Alt-Backspace”),exec:function(e){e.removeWordLeft()},multiSelectAction:“forEach”,scrollIntoView:“cursor”},{name:“removewordright”,description:“Remove word right”,bindKey:n(“Ctrl-Delete”,“Alt-Delete”),exec:function(e){e.removeWordRight()},multiSelectAction:“forEach”,scrollIntoView:“cursor”},{name:“outdent”,description:“Outdent”,bindKey:n(“Shift-Tab”,“Shift-Tab”),exec:function(e){e.blockOutdent()},multiSelectAction:“forEach”,scrollIntoView:“selectionPart”},{name:“indent”,description:“Indent”,bindKey:n(“Tab”,“Tab”),exec:function(e){e.indent()},multiSelectAction:“forEach”,scrollIntoView:“selectionPart”},{name:“blockoutdent”,description:“Block outdent”,bindKey:n(“Ctrl-[”,“Ctrl-[”),exec:function(e){e.blockOutdent()},multiSelectAction:“forEachLine”,scrollIntoView:“selectionPart”},{name:“blockindent”,description:“Block indent”,bindKey:n(“Ctrl-]”,“Ctrl-]”),exec:function(e){e.blockIndent()},multiSelectAction:“forEachLine”,scrollIntoView:“selectionPart”},{name:“insertstring”,description:“Insert string”,exec:function(e,t){e.insert(t)},multiSelectAction:“forEach”,scrollIntoView:“cursor”},{name:“inserttext”,description:“Insert text”,exec:function(e,t){e.insert(i.stringRepeat(t.text||“”,t.times||1))},multiSelectAction:“forEach”,scrollIntoView:“cursor”},{name:“splitline”,description:“Split line”,bindKey:n(null,“Ctrl-O”),exec:function(e){e.splitLine()},multiSelectAction:“forEach”,scrollIntoView:“cursor”},{name:“transposeletters”,description:“Transpose letters”,bindKey:n(“Alt-Shift-X”,“Ctrl-T”),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:“cursor”},{name:“touppercase”,description:“To uppercase”,bindKey:n(“Ctrl-U”,“Ctrl-U”),exec:function(e){e.toUpperCase()},multiSelectAction:“forEach”,scrollIntoView:“cursor”},{name:“tolowercase”,description:“To lowercase”,bindKey:n(“Ctrl-Shift-U”,“Ctrl-Shift-U”),exec:function(e){e.toLowerCase()},multiSelectAction:“forEach”,scrollIntoView:“cursor”},{name:“autoindent”,description:“Auto Indent”,bindKey:n(null,null),exec:function(e){e.autoIndent()},scrollIntoView:“animate”},{name:“expandtoline”,description:“Expand to line”,bindKey:n(“Ctrl-Shift-L”,“Command-Shift-L”),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:“forEach”,scrollIntoView:“cursor”,readOnly:!0},{name:“openlink”,bindKey:n(“Ctrl+F3”,“F3”),exec:function(e){e.openLink()}},{name:“joinlines”,description:“Join lines”,bindKey:n(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),o=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),s=e.session.doc.getLine(n.row).length,a=e.session.doc.getTextRange(e.selection.getRange()).replace(/ns*/,“ ”).length,l=e.session.doc.getLine(n.row),c=n.row+1;c<=o.row+1;c++){var h=i.stringTrimLeft(i.stringTrimRight(e.session.doc.getLine©));0!==h.length&&(h=“ ”+h),l+=h}o.row+1<e.session.doc.getLength()-1&&(l+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new r(n.row,0,o.row+2,0),l),a>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+a)):(s=e.session.doc.getLine(n.row).length>s?s+1:s,e.selection.moveCursorTo(n.row,s))},multiSelectAction:“forEach”,readOnly:!0},{name:“invertSelection”,description:“Invert selection”,bindKey:n(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,i=e.selection.rangeList.ranges,o=[];i.length<1&&(i=);for(var s=0;s<i.length;s++)s==i.length-1&&(i.end.row===t&&i.end.column===n||o.push(new r(i.end.row,i.end.column,t,n))),0===s?0===i.start.row&&0===i.start.column||o.push(new r(0,0,i.start.row,i.start.column)):o.push(new r(i.end.row,i.end.column,i.start.row,i.start.column));e.exitMultiSelectMode(),e.clearSelection();for(s=0;s<o.length;s++)e.selection.addRange(o,!1)},readOnly:!0,scrollIntoView:“none”},{name:“addLineAfter”,description:“Add new line after the current line”,exec:function(e){e.selection.clearSelection(),e.navigateLineEnd(),e.insert(“n”)},multiSelectAction:“forEach”,scrollIntoView:“cursor”},{name:“addLineBefore”,description:“Add new line before the current line”,exec:function(e){e.selection.clearSelection();var t=e.getCursorPosition();e.selection.moveTo(t.row-1,Number.MAX_VALUE),e.insert(“n”),0===t.row&&e.navigateUp()},multiSelectAction:“forEach”,scrollIntoView:“cursor”},{name:“openCommandPallete”,exec:function(e){console.warn(“This is an obsolete command. Please use `openCommandPalette` instead.”),e.prompt({$type:“commands”})},readOnly:!0},{name:“openCommandPalette”,description:“Open command palette”,bindKey:n(“F1”,“F1”),exec:function(e){e.prompt({$type:“commands”})},readOnly:!0},{name:“modeSelect”,description:“Change language mode…”,bindKey:n(null,null),exec:function(e){e.prompt({$type:“modes”})},readOnly:!0}];for(var s=1;s<9;s++)t.commands.push({name:“foldToLevel”+s,description:“Fold To Level ”+s,level:s,exec:function(e){e.session.foldToLevel(this.level)},scrollIntoView:“center”,readOnly:!0})})),ace.define(“ace/line_widgets”,,(function(e,t){“use strict”;var n=e(“./lib/dom”),i=function(){function e(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on(“change”,this.updateOnChange),this.session.on(“changeFold”,this.updateOnFold),this.session.on(“changeEditor”,this.$onChangeEditor)}return e.prototype.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets&&this.lineWidgets.rowCount||0,this.$useWrapMode&&this.$wrapData?this.$wrapData.length+1+t:1+t},e.prototype.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},e.prototype.$onChangeEditor=function(e){this.attach(e.editor)},e.prototype.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on(“beforeRender”,this.measureWidgets),e.renderer.on(“afterRender”,this.renderWidgets)))},e.prototype.detach=function(){var e=this.editor;if(e){this.editor=null,e.widgetManager=null,e.renderer.off(“beforeRender”,this.measureWidgets),e.renderer.off(“afterRender”,this.renderWidgets);var t=this.session.lineWidgets;t&&t.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},e.prototype.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var i=e.data,o=i.start.row,r=i.end.row,s=“add”==e.action,a=o+1;a<r;a++)n&&(n.hidden=s);n&&(s?n?n.hidden=s:n=n:(n==n&&(n=void 0),n.hidden=s))}},e.prototype.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,i=e.end.row-n;if(0===i);else if(“remove”==e.action){var o=t.splice(n+1,i);!t&&o&&(t=o.pop()),o.forEach((function(e){e&&this.removeLineWidget(e)}),this),this.$updateRows()}else{var r=new Array(i);t&&null!=t.column&&e.start.column>t.column&&n++,r.unshift(n,0),t.splice.apply(t,r),this.$updateRows()}}},e.prototype.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,n){if(e)for(t=!1,e.row=n;e.$oldWidget;)e.$oldWidget.row=n,e=e.$oldWidget})),t&&(this.session.lineWidgets=null)}},e.prototype.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets;return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets=e,e},e.prototype.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=n.createElement(“div”),e.el.innerHTML=e.html),e.text&&!e.el&&(e.el=n.createElement(“div”),e.el.textContent=e.text),e.el&&(n.addCssClass(e.el,“ace_lineWidgetContainer”),e.className&&n.addCssClass(e.el,e.className),e.el.style.position=“absolute”,e.el.style.zIndex=“5”,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=“3”),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var i=this.session.getFoldAt(e.row,0);if(e.$fold=i,i){var o=this.session.lineWidgets;e.row!=i.end.row||o?e.hidden=!0:o=e}return this.session._emit(“changeFold”,{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},e.prototype.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets;if(t==e)this.session.lineWidgets=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit(“changeFold”,{data:{start:{row:e.row}}}),this.$updateRows()},e.prototype.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t,i=[];n;)i.push(n),n=n.$oldWidget;return i},e.prototype.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},e.prototype.measureWidgets=function(e,t){var n=this.session._changedWidgets,i=t.layerConfig;if(n&&n.length){for(var o=1/0,r=0;r<n.length;r++){var s=n;if(s&&s.el&&s.session==this.session){if(!s._inDocument){if(this.session.lineWidgets!=s)continue;s._inDocument=!0,t.container.appendChild(s.el)}s.h=s.el.offsetHeight,s.fixedWidth||(s.w=s.el.offsetWidth,s.screenWidth=Math.ceil(s.w/i.characterWidth));var a=s.h/i.lineHeight;s.coverLine&&(a-=this.session.getRowLineCount(s.row))<0&&(a=0),s.rowCount!=a&&(s.rowCount=a,s.row<o&&(o=s.row))}}o!=1/0&&(this.session._emit(“changeFold”,{data:{start:{row:o}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},e.prototype.renderWidgets=function(e,t){var n=t.layerConfig,i=this.session.lineWidgets;if(i){for(var o=Math.min(this.firstRow,n.firstRow),r=Math.max(this.lastRow,n.lastRow,i.length);o>0&&!i;)o–;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var s=o;s<=r;s++){var a=i;if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+“px”;else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var l=t.$cursorLayer.getPixelPosition({row:s,column:0},!0).top;a.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=l-n.offset+“px”;var c=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(c-=t.scrollLeft),a.el.style.left=c+“px”,a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=n.width+2*n.padding+“px”),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+“px”:a.el.style.right=“”}}}},e}();t.LineWidgets=i})),ace.define(“ace/keyboard/gutter_handler”,,(function(e,t){“use strict”;var n=e(“../lib/keys”),i=e(“../mouse/default_gutter_handler”).GutterTooltip,o=function(){function e(e){this.editor=e,this.gutterLayer=e.renderer.$gutterLayer,this.element=e.renderer.$gutter,this.lines=e.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new i(this.editor)}return e.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))},e.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))},e.prototype.$onGutterKeyDown=function(e){if(this.annotationTooltip.isOpen)return e.preventDefault(),void(e.keyCode===n.escape&&this.annotationTooltip.hideTooltip());if(e.target===this.element){if(e.keyCode!=n.enter)return;e.preventDefault();var t=this.editor.getCursorPosition().row;return this.editor.isRowVisible(t)||this.editor.scrollToLine(t,!0,!0),void setTimeout(function(){var e=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),t=this.$findNearestFoldWidget(e),n=this.$findNearestAnnotation(e);if(null!==t||null!==n)return null===t&&null!==n?(this.activeRowIndex=n,this.activeLane=“annotation”,void this.$focusAnnotation(this.activeRowIndex)):null!==t&&null===n?(this.activeRowIndex=t,this.activeLane=“fold”,void this.$focusFoldWidget(this.activeRowIndex)):Math.abs(n-e)<Math.abs(t-e)?(this.activeRowIndex=n,this.activeLane=“annotation”,void this.$focusAnnotation(this.activeRowIndex)):(this.activeRowIndex=t,this.activeLane=“fold”,void this.$focusFoldWidget(this.activeRowIndex))}.bind(this),10)}this.$handleGutterKeyboardInteraction(e),setTimeout(function(){this.editor._signal(“gutterkeydown”,new r(e,this))}.bind(this),10)},e.prototype.$handleGutterKeyboardInteraction=function(e){if(e.keyCode!==n.tab){if(e.keyCode===n.escape)return e.preventDefault(),this.$blurGutter(),this.element.focus(),void(this.lane=null);if(e.keyCode!==n.up)if(e.keyCode!==n.down){if(e.keyCode===n.left)return e.preventDefault(),void this.$switchLane(“annotation”);if(e.keyCode===n.right)return e.preventDefault(),void this.$switchLane(“fold”);if(e.keyCode!==n.enter&&e.keyCode!==n.space);else switch(e.preventDefault(),this.activeLane){case“fold”:if(“start”===this.gutterLayer.session.foldWidgets){var t=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),e),setTimeout(function(){this.$rowIndexToRow(this.activeRowIndex)!==t&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(t),this.$focusFoldWidget(this.activeRowIndex))}.bind(this),10);break}if(“end”===this.gutterLayer.session.foldWidgets)break;return;case“annotation”:var i=this.lines.cells.element.childNodes.getBoundingClientRect(),o=this.annotationTooltip.getElement().style;o.left=i.right+“px”,o.top=i.bottom+“px”,this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex))}}else switch(e.preventDefault(),this.activeLane){case“fold”:this.$moveFoldWidgetDown();break;case“annotation”:this.$moveAnnotationDown()}else switch(e.preventDefault(),this.activeLane){case“fold”:this.$moveFoldWidgetUp();break;case“annotation”:this.$moveAnnotationUp()}}else e.preventDefault()},e.prototype.$blurGutter=function(){if(null!==this.activeRowIndex)switch(this.activeLane){case“fold”:this.$blurFoldWidget(this.activeRowIndex);break;case“annotation”:this.$blurAnnotation(this.activeRowIndex)}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},e.prototype.$isFoldWidgetVisible=function(e){var t=this.editor.isRowFullyVisible(this.$rowIndexToRow(e)),n=“none”!==this.$getFoldWidget(e).style.display;return t&&n},e.prototype.$isAnnotationVisible=function(e){var t=this.editor.isRowFullyVisible(this.$rowIndexToRow(e)),n=“none”!==this.$getAnnotation(e).style.display;return t&&n},e.prototype.$getFoldWidget=function(e){return this.lines.get(e).element.childNodes},e.prototype.$getAnnotation=function(e){return this.lines.get(e).element.childNodes},e.prototype.$findNearestFoldWidget=function(e){if(this.$isFoldWidgetVisible(e))return e;for(var t=0;e-t>0||e+t<this.lines.getLength()-1;){if(e-++t>=0&&this.$isFoldWidgetVisible(e-t))return e-t;if(e+t<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(e+t))return e+t}return null},e.prototype.$findNearestAnnotation=function(e){if(this.$isAnnotationVisible(e))return e;for(var t=0;e-t>0||e+t<this.lines.getLength()-1;){if(e-++t>=0&&this.$isAnnotationVisible(e-t))return e-t;if(e+t<=this.lines.getLength()-1&&this.$isAnnotationVisible(e+t))return e+t}return null},e.prototype.$focusFoldWidget=function(e){if(null!=e){var t=this.$getFoldWidget(e);t.classList.add(this.editor.renderer.keyboardFocusClassName),t.focus()}},e.prototype.$focusAnnotation=function(e){if(null!=e){var t=this.$getAnnotation(e);t.classList.add(this.editor.renderer.keyboardFocusClassName),t.focus()}},e.prototype.$blurFoldWidget=function(e){var t=this.$getFoldWidget(e);t.classList.remove(this.editor.renderer.keyboardFocusClassName),t.blur()},e.prototype.$blurAnnotation=function(e){var t=this.$getAnnotation(e);t.classList.remove(this.editor.renderer.keyboardFocusClassName),t.blur()},e.prototype.$moveFoldWidgetUp=function(){for(var e=this.activeRowIndex;e>0;)if(e–,this.$isFoldWidgetVisible(e))return this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=e,void this.$focusFoldWidget(this.activeRowIndex)},e.prototype.$moveFoldWidgetDown=function(){for(var e=this.activeRowIndex;e<this.lines.getLength()-1;)if(e++,this.$isFoldWidgetVisible(e))return this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=e,void this.$focusFoldWidget(this.activeRowIndex)},e.prototype.$moveAnnotationUp=function(){for(var e=this.activeRowIndex;e>0;)if(e–,this.$isAnnotationVisible(e))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=e,void this.$focusAnnotation(this.activeRowIndex)},e.prototype.$moveAnnotationDown=function(){for(var e=this.activeRowIndex;e<this.lines.getLength()-1;)if(e++,this.$isAnnotationVisible(e))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=e,void this.$focusAnnotation(this.activeRowIndex)},e.prototype.$switchLane=function(e){switch(e){case“annotation”:if(“annotation”===this.activeLane)break;var t=this.$findNearestAnnotation(this.activeRowIndex);if(null==t)break;this.activeLane=“annotation”,this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=t,this.$focusAnnotation(this.activeRowIndex);break;case“fold”:if(“fold”===this.activeLane)break;var n=this.$findNearestFoldWidget(this.activeRowIndex);if(null==n)break;this.activeLane=“fold”,this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=n,this.$focusFoldWidget(this.activeRowIndex)}},e.prototype.$rowIndexToRow=function(e){var t=this.lines.get(e);return t?t.row:null},e.prototype.$rowToRowIndex=function(e){for(var t=0;t<this.lines.getLength();t++){if(this.lines.get(t).row==e)return t}return null},e}();t.GutterKeyboardHandler=o;var r=function(){function e(e,t){this.gutterKeyboardHandler=t,this.domEvent=e}return e.prototype.getKey=function(){return n.keyCodeToString(this.domEvent.keyCode)},e.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},e.prototype.isInAnnotationLane=function(){return“annotation”===this.gutterKeyboardHandler.activeLane},e.prototype.isInFoldLane=function(){return“fold”===this.gutterKeyboardHandler.activeLane},e}();t.GutterKeyboardEvent=r})),ace.define(“ace/editor”,,(function(e,t){“use strict”;var n=this&&this.__values||function(e){var t=“function”==typeof Symbol&&Symbol.iterator,n=t&&e,i=0;if(n)return n.call(e);if(e&&“number”==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e,done:!e}}};throw new TypeError(t?“Object is not iterable.”:“Symbol.iterator is not defined.”)},i=e(“./lib/oop”),o=e(“./lib/dom”),r=e(“./lib/lang”),s=e(“./lib/useragent”),a=e(“./keyboard/textinput”).TextInput,l=e(“./mouse/mouse_handler”).MouseHandler,c=e(“./mouse/fold_handler”).FoldHandler,h=e(“./keyboard/keybinding”).KeyBinding,u=e(“./edit_session”).EditSession,d=e(“./search”).Search,p=e(“./range”).Range,g=e(“./lib/event_emitter”).EventEmitter,m=e(“./commands/command_manager”).CommandManager,f=e(“./commands/default_commands”).commands,v=e(“./config”),y=e(“./token_iterator”).TokenIterator,b=e(“./line_widgets”).LineWidgets,w=e(“./keyboard/gutter_handler”).GutterKeyboardHandler,x=e(“./config”).nls,k=e(“./clipboard”),C=e(“./lib/keys”),$=function(){function e(t,n,i){this.session,this.$toDestroy=[];var o=t.getContainerElement();this.container=o,this.renderer=t,this.id=“editor”+ ++e.$uid,this.commands=new m(s.isMac?“mac”:“win”,f),“object”==typeof document&&(this.textInput=new a(t.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new c(this)),this.keyBinding=new h(this),this.$search=(new d).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on(“exec”,this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=r.delayedCall(function(){this._signal(“input”,{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on(“change”,(function(e,t){t._$emitInputEvent.schedule(31)})),this.setSession(n||i&&i.session||new u(“”)),v.resetOptions(this),i&&this.setOptions(i),v._signal(“editor”,this)}return e.prototype.$initOperationListeners=function(){this.commands.on(“exec”,this.startOperation.bind(this),!0),this.commands.on(“afterExec”,this.endOperation.bind(this),!0),this.$opResetTimer=r.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)},e.prototype.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},e.prototype.endOperation=function(e){if(this.curOp&&this.session){if(e&&!1===e.returnValue||!this.session)return this.curOp=null;if(1==e&&this.curOp.command&&“mouse”==this.curOp.command.name)return;if(this._signal(“beforeEndOperation”),!this.curOp)return;var t=this.curOp.command,n=t&&t.scrollIntoView;if(n){switch(n){case“center-animate”:n=“animate”;case“center”:this.renderer.scrollCursorIntoView(null,.5);break;case“animate”:case“cursor”:this.renderer.scrollCursorIntoView();break;case“selectionPart”:var i=this.selection.getRange(),o=this.renderer.layerConfig;(i.start.row>=o.lastRow||i.end.row<=o.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}“animate”==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var r=this.selection.toJSON();this.curOp.selectionAfter=r,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection®,this.prevOp=this.curOp,this.curOp=null}},e.prototype.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,i=t.command&&e.command.name==t.command.name;if(“insertstring”==e.command.name){var o=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),i=i&&this.mergeNextCommand&&(!/s/.test(o)||/s/.test(t.args)),this.mergeNextCommand=!0}else i=i&&-1!==n.indexOf(e.command.name);“always”!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(i=!1),i?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},e.prototype.setKeyboardHandler=function(e,t){if(e&&“string”==typeof e&&“ace”!=e){this.$keybindingId=e;var n=this;v.loadModule(,(function(i){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(i&&i.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},e.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},e.prototype.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){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 n=this.session.getSelection();n.off(“changeCursor”,this.$onCursorChange),n.off(“changeSelection”,this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on(“change”,this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on(“changeMode”,this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on(“tokenizerUpdate”,this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on(“changeTabSize”,this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on(“changeWrapLimit”,this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on(“changeWrapMode”,this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.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=e.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(e)),this._signal(“changeSession”,{session:e,oldSession:t}),this.curOp=null,t&&t._signal(“changeEditor”,{oldEditor:this}),e&&e._signal(“changeEditor”,{editor:this}),e&&!e.destroyed&&e.bgTokenizer.scheduleStart()}},e.prototype.getSession=function(){return this.session},e.prototype.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},e.prototype.getValue=function(){return this.session.getValue()},e.prototype.getSelection=function(){return this.selection},e.prototype.resize=function(e){this.renderer.onResize(e)},e.prototype.setTheme=function(e,t){this.renderer.setTheme(e,t)},e.prototype.getTheme=function(){return this.renderer.getTheme()},e.prototype.setStyle=function(e){this.renderer.setStyle(e)},e.prototype.unsetStyle=function(e){this.renderer.unsetStyle(e)},e.prototype.getFontSize=function(){return this.getOption(“fontSize”)||o.computedStyle(this.container).fontSize},e.prototype.setFontSize=function(e){this.setOption(“fontSize”,e)},e.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&!t.destroyed){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach((function(e){t.removeMarker(e)})),t.$bracketHighlight=null);var n=e.getCursorPosition(),i=e.getKeyboardHandler(),o=i&&i.$getDirectionForHighlight&&i.$getDirectionForHighlight(e),r=t.getMatchingBracketRanges(n,o);if(!r){var s=new y(t,n.row,n.column).getCurrentToken();if(s&&/b(?:tag-open|tag-name)/.test(s.type)){var a=t.getMatchingTags(n);a&&(r=)}}if(!r&&t.$mode.getMatching&&(r=t.$mode.getMatching(e.session)),r){var l=“ace_bracket”;Array.isArray®?1==r.length&&(l=“ace_error_bracket”):r=,2==r.length&&(0==p.comparePoints(r.end,r.start)?r=[p.fromPoints(r.start,r.end)]:0==p.comparePoints(r.start,r.end)&&(r=[p.fromPoints(r.start,r.end)])),t.$bracketHighlight={ranges:r,markerIds:r.map((function(e){return t.addMarker(e,l,“text”)}))},e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}else e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}}),50)}},e.prototype.focus=function(){this.textInput.focus()},e.prototype.isFocused=function(){return this.textInput.isFocused()},e.prototype.blur=function(){this.textInput.blur()},e.prototype.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit(“focus”,e))},e.prototype.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit(“blur”,e))},e.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},e.prototype.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal(“change”,e),this.$cursorChange()},e.prototype.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},e.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},e.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},e.prototype.onCursorChange=function(){this.$cursorChange(), this._signal(“changeSelection”)},e.prototype.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&(“line”==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new p(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,“ace_active-line”,“screenLine”),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal(“changeBackMarker”))},e.prototype.onSelectionChange=function(){var e=this.session;if(e.$selectionMarker&&e.removeMarker(e.$selectionMarker),e.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var t=this.selection.getRange(),n=this.getSelectionStyle();e.$selectionMarker=e.addMarker(t,“ace_selection”,n)}var i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(i),this._signal(“changeSelection”)},e.prototype.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,i=t.end.column,o=e.getLine(t.start.row),r=o.substring(n,i);if(!(r.length>5e3)&&//.test®){var s=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:r}),a=o.substring(n-1,i+1);if(s.test(a))return s}}},e.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},e.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},e.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},e.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},e.prototype.onChangeMode=function(e){this.renderer.updateText(),this._emit(“changeMode”,e)},e.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},e.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},e.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},e.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},e.prototype.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var i=this.selection.getAllRanges(),o=0;o<i.length;o++){var r=i;o&&i.start.row==r.start.row||(e+=this.session.getLine(r.start.row)+t)}}var s={text:e};return this._signal(“copy”,s),k.lineMode=!!n&&s.text,s.text},e.prototype.onCopy=function(){this.commands.exec(“copy”,this)},e.prototype.onCut=function(){this.commands.exec(“cut”,this)},e.prototype.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec(“paste”,this,n)},e.prototype.$handlePaste=function(e){“string”==typeof e&&(e={text:e}),this._signal(“paste”,e);var t=e.text,n=t===k.lineMode,i=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)n?i.insert({row:this.selection.lead.row,column:0},t):this.insert(t);else if(n)this.selection.rangeList.ranges.forEach((function(e){i.insert({row:e.start.row,column:0},t)}));else{var o=t.split(/rn|r|n/),r=this.selection.rangeList.ranges,s=!(2!=o.length||o&&o);if(o.length!=r.length||s)return this.commands.exec(“insertstring”,this,t);for(var a=r.length;a–;){var l=r;l.isEmpty()||i.remove(l),i.insert(l.start,o)}}},e.prototype.execCommand=function(e,t){return this.commands.exec(e,this,t)},e.prototype.insert=function(e,t){var n=this.session,i=n.getMode(),o=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var r=i.transformAction(n.getState(o.row),“insertion”,this,n,e);r&&(e!==r.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),e=r.text)}if(“t”==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf(“n”)){(s=p.fromPoints(o,o)).end.column+=e.length,this.session.remove(s)}}else{var s=this.getSelectionRange();o=this.session.remove(s),this.clearSelection()}if(“n”==e||“rn”==e){var a=n.getLine(o.row);if(o.column>a.search(/S|$/)){var l=a.substr(o.column).search(/S|$/);n.doc.removeInLine(o.row,o.column,o.column+l)}}this.clearSelection();var c=o.column,h=n.getState(o.row),u=(a=n.getLine(o.row),i.checkOutdent(h,a,e));if(n.insert(o,e),r&&r.selection&&(2==r.selection.length?this.selection.setSelectionRange(new p(o.row,c+r.selection,o.row,c+r.selection)):this.selection.setSelectionRange(new p(o.row+r.selection,r.selection,o.row+r.selection,r.selection))),this.$enableAutoIndent){if(n.getDocument().isNewLine(e)){var d=i.getNextLineIndent(h,a.slice(0,o.column),n.getTabString());n.insert({row:o.row+1,column:0},d)}u&&i.autoOutdent(h,n,o.row)}},e.prototype.autoIndent=function(){for(var e=this.session,t=e.getMode(),n=this.selection.isEmpty()?[new p(0,0,e.doc.getLength()-1,0)]:this.selection.getAllRanges(),i=“”,o=“”,r=“”,s=e.getTabString(),a=0;a<n.length;a++)for(var l=n.start.row,c=n.end.row,h=l;h<=c;h++){h>0&&(i=e.getState(h-1),o=e.getLine(h-1),r=t.getNextLineIndent(i,o,s));var u=e.getLine(h),d=t.$getIndent(u);if(r!==d){if(d.length>0){var g=new p(h,0,h,d.length);e.remove(g)}r.length>0&&e.insert({row:h,column:0},r)}t.autoOutdent(i,e,h)}},e.prototype.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:“insertstring”}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},e.prototype.applyComposition=function(e,t){var n;(t.extendLeft||t.extendRight)&&((n=this.selection.getRange()).start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row–,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove());(!e&&this.selection.isEmpty()||this.insert(e,!0),t.restoreStart||t.restoreEnd)&&((n=this.selection.getRange()).start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n))},e.prototype.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},e.prototype.setOverwrite=function(e){this.session.setOverwrite(e)},e.prototype.getOverwrite=function(){return this.session.getOverwrite()},e.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},e.prototype.setScrollSpeed=function(e){this.setOption(“scrollSpeed”,e)},e.prototype.getScrollSpeed=function(){return this.getOption(“scrollSpeed”)},e.prototype.setDragDelay=function(e){this.setOption(“dragDelay”,e)},e.prototype.getDragDelay=function(){return this.getOption(“dragDelay”)},e.prototype.setSelectionStyle=function(e){this.setOption(“selectionStyle”,e)},e.prototype.getSelectionStyle=function(){return this.getOption(“selectionStyle”)},e.prototype.setHighlightActiveLine=function(e){this.setOption(“highlightActiveLine”,e)},e.prototype.getHighlightActiveLine=function(){return this.getOption(“highlightActiveLine”)},e.prototype.setHighlightGutterLine=function(e){this.setOption(“highlightGutterLine”,e)},e.prototype.getHighlightGutterLine=function(){return this.getOption(“highlightGutterLine”)},e.prototype.setHighlightSelectedWord=function(e){this.setOption(“highlightSelectedWord”,e)},e.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},e.prototype.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},e.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},e.prototype.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},e.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},e.prototype.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},e.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},e.prototype.setHighlightIndentGuides=function(e){this.renderer.setHighlightIndentGuides(e)},e.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},e.prototype.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},e.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},e.prototype.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},e.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},e.prototype.setReadOnly=function(e){this.setOption(“readOnly”,e)},e.prototype.getReadOnly=function(){return this.getOption(“readOnly”)},e.prototype.setBehavioursEnabled=function(e){this.setOption(“behavioursEnabled”,e)},e.prototype.getBehavioursEnabled=function(){return this.getOption(“behavioursEnabled”)},e.prototype.setWrapBehavioursEnabled=function(e){this.setOption(“wrapBehavioursEnabled”,e)},e.prototype.getWrapBehavioursEnabled=function(){return this.getOption(“wrapBehavioursEnabled”)},e.prototype.setShowFoldWidgets=function(e){this.setOption(“showFoldWidgets”,e)},e.prototype.getShowFoldWidgets=function(){return this.getOption(“showFoldWidgets”)},e.prototype.setFadeFoldWidgets=function(e){this.setOption(“fadeFoldWidgets”,e)},e.prototype.getFadeFoldWidgets=function(){return this.getOption(“fadeFoldWidgets”)},e.prototype.remove=function(e){this.selection.isEmpty()&&(“left”==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,i=n.getState(t.start.row),o=n.getMode().transformAction(i,“deletion”,this,n,t);if(0===t.end.column){var r=n.getTextRange(t);if(“n”==r){var s=n.getLine(t.end.row);/^s+$/.test(s)&&(t.end.column=s.length)}}o&&(t=o)}this.session.remove(t),this.clearSelection()},e.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},e.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert(“n”),this.moveCursorToPosition(e)},e.prototype.setGhostText=function(e,t){this.session.widgetManager||(this.session.widgetManager=new b(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(e,t)},e.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},e.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,i,o=this.session.getLine(e.row);t<o.length?(n=o.charAt(t)+o.charAt(t-1),i=new p(e.row,t-1,e.row,t+1)):(n=o.charAt(t-1)+o.charAt(t-2),i=new p(e.row,t-2,e.row,t)),this.session.replace(i,n),this.session.selection.moveToPosition(i.end)}}},e.prototype.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},e.prototype.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},e.prototype.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^s+$/.test(n)){h=this.$getSelectedRows();return void e.indentRows(h.first,h.last,“t”)}}var i=e.getLine(t.start.row),o=t.start,s=e.getTabSize(),a=e.documentToScreenColumn(o.row,o.column);if(this.session.getUseSoftTabs())var l=s-a%s,c=r.stringRepeat(“ ”,l);else{for(l=a%s;“ ”==i&&l;)t.start.column–,l–;this.selection.setSelectionRange(t),c=“t”}return this.insert©}var h=this.$getSelectedRows();e.indentRows(h.first,h.last,“t”)},e.prototype.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,“t”)},e.prototype.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},e.prototype.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],i=e.first;i<=e.last;i++)n.push(t.getLine(i));n.sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0}));var o=new p(0,0,0,0);for(i=e.first;i<=e.last;i++){var r=t.getLine(i);o.start.row=i,o.end.row=i,o.end.column=r.length,t.replace(o,n)}},e.prototype.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},e.prototype.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},e.prototype.getNumberAt=function(e,t){var n=/?[0-9]+(?:.+)?/g;n.lastIndex=0;for(var i=this.session.getLine(e);n.lastIndex<t;){var o=n.exec(i);if(o.index<=t&&o.index+o.length>=t)return{value:o,start:o.index,end:o.index+o.length}}return null},e.prototype.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,i=new p(t,n-1,t,n),o=this.session.getTextRange(i);if(!isNaN(parseFloat(o))&&isFinite(o)){var r=this.getNumberAt(t,n);if®{var s=r.value.indexOf(“.”)>=0?r.start+r.value.indexOf(“.”)+1:r.end,a=r.start+r.value.length-s,l=parseFloat(r.value);l*=Math.pow(10,a),s!==r.end&&n<s?e*=Math.pow(10,r.end-n-1):e*=Math.pow(10,r.end-n),l+=e;var c=(l/=Math.pow(10,a)).toFixed(a),h=new p(t,r.start,t,r.end);this.session.replace(h,c),this.moveCursorTo(t,Math.max(r.start+1,n+c.length-r.value.length))}}else this.toggleWord()},e.prototype.toggleWord=function(){var e=this.selection.getCursor().row,t=this.selection.getCursor().column;this.selection.selectWord();var n=this.getSelectedText(),i=this.selection.getWordRange().start.column,o=n.replace(/(+|[A-Z]+)(?=|$)/g,“$1 ”).split(/s/),s=t-i-1;s<0&&(s=0);var a=0,l=0,c=this;n.match(/+/)&&o.forEach((function(t){l=a+t.length,s>=a&&s<=l&&(n=t,c.selection.clearSelection(),c.moveCursorTo(e,a+i),c.selection.selectTo(e,l+i)),a=l}));for(var h,u=this.$toggleWordPairs,d=0;d<u.length;d++)for(var p=u,g=0;g<=1;g++){var m=+!g,f=n.match(new RegExp(“^\s?_?(”+r.escapeRegExp(p)+“)\s?$”,“i”));if(f)n.match(new RegExp(“(|^|\s)(”+r.escapeRegExp(f)+“)($|\s)”,“g”))&&(h=n.replace(new RegExp(r.escapeRegExp(p),“i”),(function(e){var t=p;return e.toUpperCase()==e?t=t.toUpperCase():e.charAt(0).toUpperCase()==e.charAt(0)&&(t=t.substr(0,0)+p.charAt(0).toUpperCase()+t.substr(1)),t})),this.insert(h),h=“”)}},e.prototype.findLinkAt=function(e,t){var i,o,r=this.session.getLine(e).split(/((?:https?|ftp)://+)/),s=t;s<0&&(s=0);var a,l=0,c=0;try{for(var h=n®,u=h.next();!u.done;u=h.next()){var d=u.value;if(c=l+d.length,s>=l&&s<=c&&d.match(/((?:https?|ftp)://+)/)){a=d.replace(/]+$/,“”);break}l=c}}catch(e){i={error:e}}finally{try{u&&!u.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}return a},e.prototype.openLink=function(){var e=this.selection.getCursor(),t=this.findLinkAt(e.row,e.column);return t&&window.open(t,“_blank”),null!=t},e.prototype.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},e.prototype.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),i=e.isBackwards();if(n.isEmpty()){var o=n.start.row;t.duplicateLines(o,o)}else{var r=i?n.start:n.end,s=t.insert(r,t.getTextRange(n));n.start=r,n.end=s,e.setSelectionRange(n,i)}},e.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},e.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},e.prototype.moveText=function(e,t,n){return this.session.moveText(e,t,n)},e.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},e.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},e.prototype.$moveLines=function(e,t){var n,i,o=this.selection;if(!o.inMultiSelectMode||this.inVirtualSelectionMode){var r=o.toOrientedRange();n=this.$getSelectedRows®,i=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(i=0),r.moveBy(i,0),o.fromOrientedRange®}else{var s=o.rangeList.ranges;o.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,l=0,c=s.length,h=0;h<c;h++){var u=h;s.moveBy(a,0);for(var d=(n=this.$getSelectedRows(s)).first,p=n.last;++h<c;){l&&s.moveBy(l,0);var g=this.$getSelectedRows(s);if(t&&g.first!=p)break;if(!t&&g.first>p+1)break;p=g.last}for(h–,a=this.session.$moveLines(d,p,t?0:e),t&&-1==e&&(u=h+1);u<=h;)s.moveBy(a,0),u++;t||(a=0),l+=a}o.fromOrientedRange(o.ranges),o.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},e.prototype.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},e.prototype.onCompositionStart=function(e){this.renderer.showComposition(e)},e.prototype.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},e.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},e.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},e.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},e.prototype.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},e.prototype.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},e.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},e.prototype.$moveByPage=function(e,t){var n=this.renderer,i=this.renderer.layerConfig,o=e*Math.floor(i.height/i.lineHeight);!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(o,0)})):!1===t&&(this.selection.moveCursorBy(o,0),this.selection.clearSelection());var r=n.scrollTop;n.scrollBy(0,o*i.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling®},e.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},e.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},e.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},e.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},e.prototype.scrollPageDown=function(){this.$moveByPage(1)},e.prototype.scrollPageUp=function(){this.$moveByPage(-1)},e.prototype.scrollToRow=function(e){this.renderer.scrollToRow(e)},e.prototype.scrollToLine=function(e,t,n,i){this.renderer.scrollToLine(e,t,n,i)},e.prototype.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},e.prototype.getCursorPosition=function(){return this.selection.getCursor()},e.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},e.prototype.getSelectionRange=function(){return this.selection.getRange()},e.prototype.selectAll=function(){this.selection.selectAll()},e.prototype.clearSelection=function(){this.selection.clearSelection()},e.prototype.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},e.prototype.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},e.prototype.jumpToMatching=function(e,t){var n=this.getCursorPosition(),i=new y(this.session,n.row,n.column),o=i.getCurrentToken(),r=0;o&&-1!==o.type.indexOf(“tag-name”)&&(o=i.stepBackward());var s=o||i.stepForward();if(s){var a,l,c=!1,h={},u=n.column-s.start,d={“)”:“(”,“(”:“(”,“]”:“[”,“[”:“[”,“{”:“{”,“}”:“{”};do{if(s.value.match(/[{}()]/g)){for(;u<s.value.length&&!c;u++)if(d[s.value])switch(l=d[s.value]+“.”+s.type.replace(“rparen”,“lparen”),isNaN(h)&&(h=0),s.value){case“(”:case“[”:case“{”:h++;break;case“)”:case“]”:case“}”:h–,-1===h&&(a=“bracket”,c=!0)}}else-1!==s.type.indexOf(“tag-name”)&&(isNaN(h)&&(h=0),“<”===o.value&&r>1?h++:“</”===o.value&&h–,-1===h&&(a=“tag”,c=!0));c||(o=s,r++,s=i.stepForward(),u=0)}while(s&&!c);if(a){var g,m;if(“bracket”===a)(g=this.session.getBracketRange(n))||(m=(g=new p(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+u-1,i.getCurrentTokenRow(),i.getCurrentTokenColumn()+u-1)).start,(t||m.row===n.row&&Math.abs(m.column-n.column)<2)&&(g=this.session.getBracketRange(m)));else if(“tag”===a){if(!s||-1===s.type.indexOf(“tag-name”))return;if(0===(g=new p(i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2,i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2)).compare(n.row,n.column)){var f=this.session.getMatchingTags(n);f&&(f.openTag.contains(n.row,n.column)?m=(g=f.closeTag).start:(g=f.openTag,m=f.closeTag.start.row===n.row&&f.closeTag.start.column===n.column?g.end:g.start))}m=m||g.start}(m=g&&g.cursor||m)&&(e?g&&t?this.selection.setRange(g):g&&g.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(m.row,m.column):this.selection.moveTo(m.row,m.column))}}},e.prototype.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},e.prototype.navigateTo=function(e,t){this.selection.moveTo(e,t)},e.prototype.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},e.prototype.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},e.prototype.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e–;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},e.prototype.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e–;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},e.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},e.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},e.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},e.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},e.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},e.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},e.prototype.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),i=0;return n?(this.$tryReplace(n,e)&&(i=1),this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end),i):i},e.prototype.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),i=0;if(!n.length)return i;var o=this.getSelectionRange();this.selection.moveTo(0,0);for(var r=n.length-1;r>=0;–r)this.$tryReplace(n,e)&&i++;return this.selection.setSelectionRange(o),i},e.prototype.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},e.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},e.prototype.find=function(e,t,n){t||(t={}),“string”==typeof e||e instanceof RegExp?t.needle=e:“object”==typeof e&&i.mixin(t,e);var o=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(o)||this.$search.$options.needle)||(o=this.session.getWordRange(o.start.row,o.start.column),e=this.session.getTextRange(o)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:o});var r=this.$search.find(this.session);return t.preventScroll?r:r?(this.revealRange(r,n),r):(t.backwards?o.start=o.end:o.end=o.start,void this.selection.setRange(o))},e.prototype.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},e.prototype.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},e.prototype.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},e.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},e.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},e.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(e){e.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()},e.prototype.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,i=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement(“div”));var o=this.$scrollAnchor;o.style.cssText=“position:absolute”,this.container.insertBefore(o,this.container.firstChild);var r=this.on(“changeSelection”,(function(){i=!0})),s=this.renderer.on(“beforeRender”,(function(){i&&(t=n.renderer.container.getBoundingClientRect())})),a=this.renderer.on(“afterRender”,(function(){if(i&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,r=e.$cursorLayer.$pixelPos,s=e.layerConfig,a=r.top-s.offset;null!=(i=r.top>=0&&a+t.top<0||!(r.top<s.height&&r.top+t.top+s.lineHeight>window.innerHeight)&&null)&&(o.style.top=a+“px”,o.style.left=r.left+“px”,o.style.height=s.lineHeight+“px”,o.scrollIntoView(i)),i=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off(“changeSelection”,r),this.renderer.off(“afterRender”,a),this.renderer.off(“beforeRender”,s))}}},e.prototype.$resetCursorStyle=function(){var e=this.$cursorStyle||“ace”,t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&“wide”!=e,o.setCssClass(t.element,“ace_slim-cursors”,/slim/.test(e)))},e.prototype.prompt=function(e,t,n){var i=this;v.loadModule(“ace/ext/prompt”,(function(o){o.prompt(i,e,t,n)}))},e}();$.$uid=0,$.prototype.curOp=null,$.prototype.prevOp={},$.prototype.$mergeableCommands=,$.prototype.$toggleWordPairs=[,[“true”,“false”],,[“width”,“height”],,[“right”,“left”],,[“x”,“y”],,[“max”,“min”],,[“show”,“hide”],,[“up”,“down”],,[“even”,“odd”],,[“inside”,“outside”],,[“increase”,“decrease”],,[“&&”,“||”],[“==”,“!=”]],i.implement($.prototype,g),v.defineOptions($.prototype,“editor”,{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal(“changeSelectionStyle”,{data:e})},initialValue:“line”},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(){this.$resetCursorStyle()},values:,initialValue:“ace”},mergeUndoDeltas:{values:,initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?S.attach(this):S.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?S.attach(this):S.detach(this)}},placeholder:{set:function(){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(e&&this.renderer.placeholderNode)this.renderer.off(“afterRender”,this.$updatePlaceholder),o.removeCssClass(this.container,“ace_hasPlaceholder”),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||“”);else{this.renderer.on(“afterRender”,this.$updatePlaceholder),o.addCssClass(this.container,“ace_hasPlaceholder”);var t=o.createElement(“div”);t.className=“ace_placeholder”,t.textContent=this.$placeholder||“”,this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on(“input”,this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(e){var t,n={name:“blurTextInput”,description:“Set focus to the editor content div to allow tabbing through the page”,bindKey:“Esc”,exec:function(e){e.blur(),e.renderer.scroller.focus()},readOnly:!0},i=function(e){if(e.target==this.renderer.scroller&&e.keyCode===C.enter){e.preventDefault();var t=this.getCursorPosition().row;this.isRowVisible(t)||this.scrollToLine(t,!0,!0),this.focus()}};e?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName=“ace_keyboard-focus”,this.textInput.getElement().setAttribute(“tabindex”,-1),this.textInput.setNumberOfExtraLines(s.isWin?3:0),this.renderer.scroller.setAttribute(“tabindex”,0),this.renderer.scroller.setAttribute(“role”,“group”),this.renderer.scroller.setAttribute(“aria-roledescription”,x(“editor.scroller.aria-roledescription”,“editor”)),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute(“aria-label”,x(“editor.scroller.aria-label”,“Editor content, press Enter to start editing, press Escape to exit”)),this.renderer.scroller.addEventListener(“keyup”,i.bind(this)),this.commands.addCommand(n),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”,x(“editor.gutter.aria-roledescription”,“editor”)),this.renderer.$gutter.setAttribute(“aria-label”,x(“editor.gutter.aria-label”,“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),t||(t=new w(this)),t.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”,i.bind(this)), this.commands.removeCommand(n),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),t&&t.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 S={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?“xb7”:“”))+“”},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on(“changeSelection”,this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off(“changeSelection”,this.update),this.update(null,e)}};t.Editor=$})),ace.define(“ace/layer/lines”,,(function(e,t){“use strict”;var n=e(“../lib/dom”),i=function(){function e(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+“px”,this.cells=[],this.cellCache=,this.$offsetCoefficient=0}return e.prototype.moveContainer=function(e){n.translate(this.element,0,-e.firstRowScreen*e.lineHeight%this.canvasHeight-e.offset*this.$offsetCoefficient)},e.prototype.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},e.prototype.computeLineTop=function(e,t,n){var i=t.firstRowScreen*t.lineHeight,o=Math.floor(i/this.canvasHeight);return n.documentToScreenRow(e,0)*t.lineHeight-o*this.canvasHeight},e.prototype.computeLineHeight=function(e,t,n){return t.lineHeight*n.getRowLineCount(e)},e.prototype.getLength=function(){return this.cells.length},e.prototype.get=function(e){return this.cells},e.prototype.shift=function(){this.$cacheCell(this.cells.shift())},e.prototype.pop=function(){this.$cacheCell(this.cells.pop())},e.prototype.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=n.createFragment(this.element),i=0;i<e.length;i++)t.appendChild(e.element);this.element.appendChild(t)}else this.cells.push(e),this.element.appendChild(e.element)},e.prototype.unshift=function(e){if(Array.isArray(e)){this.cells.unshift.apply(this.cells,e);for(var t=n.createFragment(this.element),i=0;i<e.length;i++)t.appendChild(e.element);this.element.firstChild?this.element.insertBefore(t,this.element.firstChild):this.element.appendChild(t)}else this.cells.unshift(e),this.element.insertAdjacentElement(“afterbegin”,e.element)},e.prototype.last=function(){return this.cells.length?this.cells:null},e.prototype.$cacheCell=function(e){e&&(e.element.remove(),this.cellCache.push(e))},e.prototype.createCell=function(e,t,i,o){var r=this.cellCache.pop();if(!r){var s=n.createElement(“div”);o&&o(s),this.element.appendChild(s),r={element:s,text:“”,row:e}}return r.row=e,r},e}();t.Lines=i})),ace.define(“ace/layer/gutter”,,(function(e,t){“use strict”;function n(e){var t=document.createTextNode(“”);e.appendChild(t);var n=i.createElement(“span”);e.appendChild(n);var o=i.createElement(“span”);e.appendChild(o);var r=i.createElement(“span”);return o.appendChild®,e}var i=e(“../lib/dom”),o=e(“../lib/oop”),r=e(“../lib/lang”),s=e(“../lib/event_emitter”).EventEmitter,a=e(“./lines”).Lines,l=e(“../config”).nls,c=function(){function e(e){this.element=i.createElement(“div”),this.element.className=“ace_layer ace_gutter-layer”,e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new a(this.element),this.$lines.$offsetCoefficient=1}return e.prototype.setSession=function(e){this.session&&this.session.off(“change”,this.$updateAnnotations),this.session=e,e&&e.on(“change”,this.$updateAnnotations)},e.prototype.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn(“deprecated use session.addGutterDecoration”),this.session.addGutterDecoration(e,t)},e.prototype.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn(“deprecated use session.removeGutterDecoration”),this.session.removeGutterDecoration(e,t)},e.prototype.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e,i=n.row,o=this.$annotations;o||(o=this.$annotations={text:[],type:});var s=n.text,a=n.type;s=s?r.escapeHTML(s):n.html||“”,-1===o.text.indexOf(s)&&(o.text.push(s),o.type.push(a));var l=n.className;l?o.className=l:“error”==a?o.className=“ ace_error”:“warning”==a&&“ ace_error”!=o.className?o.className=“ ace_warning”:“info”!=a||o.className||(o.className=“ ace_info”)}},e.prototype.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0===n);else if(“remove”==e.action)this.$annotations.splice(t,n+1,null);else{var i=new Array(n+1);i.unshift(t,1),this.$annotations.splice.apply(this.$annotations,i)}}},e.prototype.update=function(e){this.config=e;var t=this.session,i=e.firstRow,o=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1);this.oldLastRow=o,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow();for(var r=t.getNextFoldLine(i),s=r?r.start.row:1/0,a=null,l=-1,c=i;;){if(c>s&&(c=r.end.row+1,s=(r=t.getNextFoldLine(c,r))?r.start.row:1/0),c>o){for(;this.$lines.getLength()>l+1;)this.$lines.pop();break}(a=this.$lines.get(++l))?a.row=c:(a=this.$lines.createCell(c,e,this.session,n),this.$lines.push(a)),this.$renderCell(a,e,r,c),c++}this._signal(“afterRender”),this.$updateGutterWidth(e)},e.prototype.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,i=t.$firstLineNumber,o=this.$lines.last()?this.$lines.last().text:“”;(this.$fixedWidth||t.$useWrapMode)&&(o=t.getLength()+i-1);var r=n?n.getWidth(t,o,e):o.toString().length*e.characterWidth,s=this.$padding||this.$computePadding();(r+=s.left+s.right)===this.gutterWidth||isNaN®||(this.gutterWidth=r,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+“px”,this._signal(“changeGutterWidth”,r))},e.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},e.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace(“ace_gutter-active-line ”,“”));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n<t.length;n++){var i=t;if(i.row>=this.$cursorRow){if(i.row>this.$cursorRow){var o=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&o&&o.start.row==t.row))break;i=t}i.element.className=“ace_gutter-active-line ”+i.element.className,this.$cursorCell=i;break}}}}},e.prototype.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),i=this.oldLastRow;if(this.oldLastRow=n,!t||i<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);o>0;o–)this.$lines.shift();if(i>n)for(o=this.session.getFoldedRowCount(n+1,i);o>0;o–)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,t.firstRow-1)),n>i&&this.$lines.push(this.$renderLines(e,i+1,n)),this.updateLineHighlight(),this._signal(“afterRender”),this.$updateGutterWidth(e)},e.prototype.$renderLines=function(e,t,i){for(var o=[],r=t,s=this.session.getNextFoldLine®,a=s?s.start.row:1/0;r>a&&(r=s.end.row+1,a=(s=this.session.getNextFoldLine(r,s))?s.start.row:1/0),!(r>i);){var l=this.$lines.createCell(r,e,this.session,n);this.$renderCell(l,e,s,r),o.push(l),r++}return o},e.prototype.$renderCell=function(e,t,n,o){var r=e.element,s=this.session,a=r.childNodes,c=r.childNodes,h=r.childNodes,u=h.firstChild,d=s.$firstLineNumber,p=s.$breakpoints,g=s.$decorations,m=s.gutterRenderer||this.$renderer,f=this.$showFoldWidgets&&s.foldWidgets,v=n?n.start.row:Number.MAX_VALUE,y=t.lineHeight+“px”,b=this.$useSvgGutterIcons?“ace_gutter-cell_svg-icons ”:“ace_gutter-cell ”,w=this.$useSvgGutterIcons?“ace_icon_svg”:“ace_icon”,x=(m?m.getText(s,o):o+d).toString();if(this.$highlightGutterLine&&(o==this.$cursorRow||n&&o<this.$cursorRow&&o>=v&&this.$cursorRow<=n.end.row)&&(b+=“ace_gutter-active-line ”,this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace(“ace_gutter-active-line ”,“”)),this.$cursorCell=e)),p&&(b+=p),g&&(b+=g),this.$annotations&&o!==v&&(b+=this.$annotations.className),f){var k=f;null==k&&(k=f=s.getFoldWidget(o))}if(k){var C=“ace_fold-widget ace_”+k,$=“start”==k&&o==v&&o<n.end.row;if($){C+=“ ace_closed”;for(var S=“”,A=!1,L=o+1;L<=n.end.row;L++)if(this.$annotations){if(“ ace_error”===this.$annotations.className){A=!0,S=“ ace_error_fold”;break}“ ace_warning”!==this.$annotations.className||(A=!0,S=“ ace_warning_fold”)}b+=S}else C+=“ ace_open”;c.className!=C&&(c.className=C),i.setStyle(c.style,“height”,y),i.setStyle(c.style,“display”,“inline-block”),c.setAttribute(“role”,“button”),c.setAttribute(“tabindex”,“-1”);var M=s.getFoldWidgetRange(o);M?c.setAttribute(“aria-label”,l(“gutter.code-folding.range.aria-label”,“Toggle code folding, rows $0 through $1”,)):n?c.setAttribute(“aria-label”,l(“gutter.code-folding.closed.aria-label”,“Toggle code folding, rows $0 through $1”,)):c.setAttribute(“aria-label”,l(“gutter.code-folding.open.aria-label”,“Toggle code folding, row $0”,)),$?(c.setAttribute(“aria-expanded”,“false”),c.setAttribute(“title”,l(“gutter.code-folding.closed.title”,“Unfold code”))):(c.setAttribute(“aria-expanded”,“true”),c.setAttribute(“title”,l(“gutter.code-folding.open.title”,“Fold code”)))}else c&&(i.setStyle(c.style,“display”,“none”),c.setAttribute(“tabindex”,“0”),c.removeAttribute(“role”),c.removeAttribute(“aria-label”));if(A&&this.$showFoldedAnnotations){switch(h.className=“ace_gutter_annotation”,u.className=w,u.className+=S,i.setStyle(u.style,“height”,y),i.setStyle(h.style,“display”,“block”),i.setStyle(h.style,“height”,y),S){case“ ace_error_fold”:_=l(“gutter.annotation.aria-label.error”,“Read annotations row $0”,);break;case“ ace_warning_fold”:_=l(“gutter.annotation.aria-label.warning”,“Read annotations row $0”,)}h.setAttribute(“aria-label”,_),h.setAttribute(“tabindex”,“-1”),h.setAttribute(“role”,“button”)}else if(this.$annotations){var _;switch(h.className=“ace_gutter_annotation”,u.className=w,this.$useSvgGutterIcons?u.className+=this.$annotations.className:r.classList.add(this.$annotations.className.replace(“ ”,“”)),i.setStyle(u.style,“height”,y),i.setStyle(h.style,“display”,“block”),i.setStyle(h.style,“height”,y),this.$annotations.className){case“ ace_error”:_=l(“gutter.annotation.aria-label.error”,“Read annotations row $0”,);break;case“ ace_warning”:_=l(“gutter.annotation.aria-label.warning”,“Read annotations row $0”,);break;case“ ace_info”:_=l(“gutter.annotation.aria-label.info”,“Read annotations row $0”,)}h.setAttribute(“aria-label”,_),h.setAttribute(“tabindex”,“-1”),h.setAttribute(“role”,“button”)}else i.setStyle(h.style,“display”,“none”),h.removeAttribute(“aria-label”),h.removeAttribute(“role”),h.setAttribute(“tabindex”,“0”);return x!==a.data&&(a.data=x),r.className!=b&&(r.className=b),i.setStyle(e.element.style,“height”,this.$lines.computeLineHeight(o,t,s)+“px”),i.setStyle(e.element.style,“top”,this.$lines.computeLineTop(o,t,s)+“px”),e.text=x,“none”===h.style.display&&“none”===c.style.display?e.element.setAttribute(“aria-hidden”,!0):e.element.setAttribute(“aria-hidden”,!1),e},e.prototype.setHighlightGutterLine=function(e){this.$highlightGutterLine=e},e.prototype.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return“”}}},e.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},e.prototype.setShowFoldWidgets=function(e){e?i.addCssClass(this.element,“ace_folding-enabled”):i.removeCssClass(this.element,“ace_folding-enabled”),this.$showFoldWidgets=e,this.$padding=null},e.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},e.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=i.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding},e.prototype.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?“markers”:this.$showFoldWidgets&&e.x>n.right-t.right?“foldWidgets”:void 0},e}();c.prototype.$fixedWidth=!1,c.prototype.$highlightGutterLine=!0,c.prototype.$renderer=“”,c.prototype.$showLineNumbers=!0,c.prototype.$showFoldWidgets=!0,o.implement(c.prototype,s),t.Gutter=c})),ace.define(“ace/layer/marker”,,(function(e,t){“use strict”;function n(e,t,n,i){return(e?1:0)|(t?2:0)|(n?4:0)|(i?8:0)}var i=e(“../range”).Range,o=e(“../lib/dom”),r=function(){function e(e){this.element=o.createElement(“div”),this.element.className=“ace_layer ace_marker-layer”,e.appendChild(this.element)}return e.prototype.setPadding=function(e){this.$padding=e},e.prototype.setSession=function(e){this.session=e},e.prototype.setMarkers=function(e){this.markers=e},e.prototype.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes;n?this.i++:(n=document.createElement(“div”),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},e.prototype.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var i=this.markers;if(i.range){var o=i.range.clipRows(e.firstRow,e.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),i.renderer){var r=this.$getTop(o.start.row,e),s=this.$padding+o.start.column*e.characterWidth;i.renderer(t,o,s,r,e)}else“fullLine”==i.type?this.drawFullLineMarker(t,o,i.clazz,e):“screenLine”==i.type?this.drawScreenLineMarker(t,o,i.clazz,e):o.isMultiLine()?“text”==i.type?this.drawTextMarker(t,o,i.clazz,e):this.drawMultiLineMarker(t,o,i.clazz,e):this.drawSingleLineMarker(t,o,i.clazz+“ ace_start ace_br15”,e)}else i.update(t,this,this.session,e)}if(-1!=this.i)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},e.prototype.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},e.prototype.drawTextMarker=function(e,t,o,r,s){for(var a=this.session,l=t.start.row,c=t.end.row,h=l,u=0,d=0,p=a.getScreenLastRowColumn(h),g=new i(h,t.start.column,h,d);h<=c;h++)g.start.row=g.end.row=h,g.start.column=h==l?t.start.column:a.getRowWrapIndent(h),g.end.column=p,u=d,d=p,p=h+1<c?a.getScreenLastRowColumn(h+1):h==c?0:t.end.column,this.drawSingleLineMarker(e,g,o+(h==l?“ ace_start”:“”)+“ ace_br”+n(h==l||h==l+1&&t.start.column,u<d,d>p,h==c),r,h==c?0:1,s)},e.prototype.drawMultiLineMarker=function(e,t,n,i,o){var r=this.$padding,s=i.lineHeight,a=this.$getTop(t.start.row,i),l=r+t.start.column*i.characterWidth;(o=o||“”,this.session.$bidiHandler.isBidiRow(t.start.row))?((c=t.clone()).end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(e,c,n+“ ace_br1 ace_start”,i,null,o)):this.elt(n+“ ace_br1 ace_start”,“height:”s
“px;right:0;top:”a
“px;left:”l
“px;”+(o||“”));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var c;(c=t.clone()).start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(e,c,n+“ ace_br12”,i,null,o)}else{a=this.$getTop(t.end.row,i);var h=t.end.column*i.characterWidth;this.elt(n+“ ace_br12”,“height:”s
“px;width:”h
“px;top:”a
“px;left:”r
“px;”+(o||“”))}if(!((s=(t.end.row-t.start.row-1)*i.lineHeight)<=0)){a=this.$getTop(t.start.row+1,i);var u=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(u?“ ace_br”+u:“”),“height:”s
“px;right:0;top:”a
“px;left:”r
“px;”+(o||“”))}},e.prototype.drawSingleLineMarker=function(e,t,n,i,o,r){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,i,o,r);var s=i.lineHeight,a=(t.end.column+(o||0)-t.start.column)*i.characterWidth,l=this.$getTop(t.start.row,i),c=this.$padding+t.start.column*i.characterWidth;this.elt(n,“height:”s
“px;width:”a
“px;top:”l
“px;left:”c
“px;”+(r||“”))},e.prototype.drawBidiSingleLineMarker=function(e,t,n,i,o,r){var s=i.lineHeight,a=this.$getTop(t.start.row,i),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach((function(e){this.elt(n,“height:”s
“px;width:”+(e.width+(o||0))+“px;top:”a
“px;left:”+(l+e.left)+“px;”+(r||“”))}),this)},e.prototype.drawFullLineMarker=function(e,t,n,i,o){var r=this.$getTop(t.start.row,i),s=i.lineHeight;t.start.row!=t.end.row&&(s+=this.$getTop(t.end.row,i)-r),this.elt(n,“height:”s
“px;top:”r
“px;left:0;right:0;”+(o||“”))},e.prototype.drawScreenLineMarker=function(e,t,n,i,o){var r=this.$getTop(t.start.row,i),s=i.lineHeight;this.elt(n,“height:”s
“px;top:”r
“px;left:0;right:0;”+(o||“”))},e}();r.prototype.$padding=0,t.Marker=r})),ace.define(“ace/layer/text_util”,,(function(e,t){var n=new Set();t.isTextToken=function(e){return n.has(e)}})),ace.define(“ace/layer/text”,,(function(e,t){“use strict”;var n=e(“../lib/oop”),i=e(“../lib/dom”),o=e(“../lib/lang”),r=e(“./lines”).Lines,s=e(“../lib/event_emitter”).EventEmitter,a=e(“../config”).nls,l=e(“./text_util”).isTextToken,c=function(){function e(e){this.dom=i,this.element=this.dom.createElement(“div”),this.element.className=“ace_layer ace_text-layer”,e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new r(this.element)}return e.prototype.$updateEolChar=function(){var e=this.session.doc,t=“n”==e.getNewLineCharacter()&&“windows”!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},e.prototype.setPadding=function(e){this.$padding=e,this.element.style.margin=“0 ”e
“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(e){this.$fontMetrics=e,this.$fontMetrics.on(“changeCharacterSize”,function(e){this._signal(“changeCharacterSize”,e)}.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(e){this.session=e,e&&this.$computeTabString()},e.prototype.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,“string”==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},e.prototype.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},e.prototype.setHighlightIndentGuides=function(e){return this.$highlightIndentGuides!==e&&(this.$highlightIndentGuides=e,e)},e.prototype.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=,n=1;n<e+1;n++){if(this.showTabs)(i=this.dom.createElement(“span”)).className=“ace_invisible ace_invisible_tab”,i.textContent=o.stringRepeat(this.TAB_CHAR,n),t.push(i);else t.push(this.dom.createTextNode(o.stringRepeat(“ ”,n),this.element))}if(this.displayIndentGuides){this.$indentGuideRe=/sS| t|t |s$/;var i,r=“ace_indent-guide”,s=this.showSpaces?“ ace_invisible ace_invisible_space”:“”,a=this.showSpaces?o.stringRepeat(this.SPACE_CHAR,this.tabSize):o.stringRepeat(“ ”,this.tabSize),l=this.showTabs?“ ace_invisible ace_invisible_tab”:“”,c=this.showTabs?o.stringRepeat(this.TAB_CHAR,this.tabSize):a;(i=this.dom.createElement(“span”)).className=r+s,i.textContent=a,this.$tabStrings[“ ”]=i,(i=this.dom.createElement(“span”)).className=r+l,i.textContent=c,this.$tabStrings=i}},e.prototype.updateLines=function(e,t,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var i=Math.max(t,e.firstRow),o=Math.min(n,e.lastRow),r=this.element.childNodes,s=0,a=e.firstRow;a<i;a++){if(l=this.session.getFoldLine(a)){if(l.containsRow(i)){i=l.start.row;break}a=l.end.row}s++}for(var l,c=!1,h=(a=i,(l=this.session.getNextFoldLine(a))?l.start.row:1/0);a>h&&(a=l.end.row+1,h=(l=this.session.getNextFoldLine(a,l))?l.start.row:1/0),!(a>o);){var u=r;if(u){this.dom.removeChildren(u),this.$renderLine(u,a,a==h&&l),c&&(u.style.top=this.$lines.computeLineTop(a,e,this.session)+“px”);var d=e.lineHeight*this.session.getRowLength(a)+“px”;u.style.height!=d&&(c=!0,u.style.height=d)}a++}if©for(;s<this.$lines.cells.length;){var p=this.$lines.cells;p.element.style.top=this.$lines.computeLineTop(p.row,e,this.session)+“px”}},e.prototype.scrollLines=function(e){var t=this.config;if(this.config=e,this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=e.lastRow,i=t?t.lastRow:-1;if(!t||i<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);o>0;o–)this.$lines.shift();if(t.lastRow>e.lastRow)for(o=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);o>0;o–)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,t.firstRow-1)),e.lastRow>t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow)),this.$highlightIndentGuide()},e.prototype.$renderLinesFragment=function(e,t,n){for(var o=[],r=t,s=this.session.getNextFoldLine®,a=s?s.start.row:1/0;r>a&&(r=s.end.row+1,a=(s=this.session.getNextFoldLine(r,s))?s.start.row:1/0),!(r>n);){var l=this.$lines.createCell(r,e,this.session),c=l.element;this.dom.removeChildren©,i.setStyle(c.style,“height”,this.$lines.computeLineHeight(r,e,this.session)+“px”),i.setStyle(c.style,“top”,this.$lines.computeLineTop(r,e,this.session)+“px”),this.$renderLine(c,r,r==a&&s),this.$useLineGroups()?c.className=“ace_line_group”:c.className=“ace_line”,o.push(l),r++}return o},e.prototype.update=function(e){this.$lines.moveContainer(e),this.config=e;for(var t=e.firstRow,n=e.lastRow,i=this.$lines;i.getLength();)i.pop();i.push(this.$renderLinesFragment(e,t,n))},e.prototype.$renderToken=function(e,t,n,i){for(var r,s=this,c=/(t)|( +)|([x00-x1fx80-xa0xadu1680u180Eu2000-u200fu2028u2029u202Fu205FuFEFFuFFF9-uFFFCu2066u2067u2068u202Au202Bu202Du202Eu202Cu2069]+)|(u3000)|(|[uD800-uDBFF])/g,h=this.dom.createFragment(this.element),u=0;r=c.exec(i);){var d=r,p=r,g=r,m=r,f=r;if(s.showSpaces||!p){var v=u!=r.index?i.slice(u,r.index):“”;if(u=r.index+r.length,v&&h.appendChild(this.dom.createTextNode(v,this.element)),d){var y=s.session.getScreenTabSize(t+r.index);h.appendChild(s.$tabStrings.cloneNode(!0)),t+=y-1}else if(p){if(s.showSpaces)(w=this.dom.createElement(“span”)).className=“ace_invisible ace_invisible_space”,w.textContent=o.stringRepeat(s.SPACE_CHAR,p.length),h.appendChild(w);else h.appendChild(this.dom.createTextNode(p,this.element))}else if(g){(w=this.dom.createElement(“span”)).className=“ace_invisible ace_invisible_space ace_invalid”,w.textContent=o.stringRepeat(s.SPACE_CHAR,g.length),h.appendChild(w)}else if(m){t+=1,(w=this.dom.createElement(“span”)).style.width=2*s.config.characterWidth+“px”,w.className=s.showSpaces?“ace_cjk ace_invisible ace_invisible_space”:“ace_cjk”,w.textContent=s.showSpaces?s.SPACE_CHAR:m,h.appendChild(w)}else if(f){t+=1,(w=this.dom.createElement(“span”)).style.width=2*s.config.characterWidth+“px”,w.className=“ace_cjk”,w.textContent=f,h.appendChild(w)}}}if(h.appendChild(this.dom.createTextNode(u?i.slice(u):i,this.element)),l(n.type))e.appendChild(h);else{var b=“ace_”+n.type.replace(/./g,“ ace_”),w=this.dom.createElement(“span”);“fold”==n.type&&(w.style.width=n.value.length*this.config.characterWidth+“px”,w.setAttribute(“title”,a(“inline-fold.closed.title”,“Unfold code”))),w.className=b,w.appendChild(h),e.appendChild(w)}return t+i.length},e.prototype.renderIndentGuide=function(e,t,n){var i=t.search(this.$indentGuideRe);if(i<=0||i>=n)return t;if(“ ”==t){for(var o=(i-=i%this.tabSize)/this.tabSize,r=0;r<o;r++)e.appendChild(this.$tabStrings[“ ”].cloneNode(!0));return this.$highlightIndentGuide(),t.substr(i)}if(“t”==t){for(r=0;r<i;r++)e.appendChild(this.$tabStrings.cloneNode(!0));return this.$highlightIndentGuide(),t.substr(i)}return this.$highlightIndentGuide(),t},e.prototype.$highlightIndentGuide=function(){if(this.$highlightIndentGuides&&this.displayIndentGuides){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var e=this.session.doc.$lines;if(e){var t=this.session.selection.getCursor(),n=/^s*/.exec(this.session.doc.getLine(t.row)).length,i=Math.floor(n/this.tabSize);if(this.$highlightIndentGuideMarker={indentLevel:i,start:t.row},this.session.$bracketHighlight)for(var o=this.session.$bracketHighlight.ranges,r=0;r<o.length;r++)if(t.row!==o.start.row){this.$highlightIndentGuideMarker.end=o.start.row,t.row>o.start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}if(!this.$highlightIndentGuideMarker.end&&“”!==e&&t.column===e.length){this.$highlightIndentGuideMarker.dir=1;for(r=t.row+1;r<e.length;r++){var s=e,a=/^s*/.exec(s).length;if(“”!==s&&(this.$highlightIndentGuideMarker.end=r,a<=n))break}}this.$renderHighlightIndentGuide()}}},e.prototype.$clearActiveIndentGuide=function(){for(var e=this.$lines.cells,t=0;t<e.length;t++){var n=e.element.childNodes;if(n.length>0)for(var i=0;i<n.length;i++)if(n.classList&&n.classList.contains(“ace_indent-guide-active”)){n.classList.remove(“ace_indent-guide-active”);break}}},e.prototype.$setIndentGuideActive=function(e,t){if(“”!==this.session.doc.getLine(e.row)){var n=e.element.childNodes;if(n){var i=n;i&&i.classList&&i.classList.contains(“ace_indent-guide”)&&i.classList.add(“ace_indent-guide-active”)}}},e.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var e=this.$lines.cells;this.$clearActiveIndentGuide();var t=this.$highlightIndentGuideMarker.indentLevel;if(0!==t)if(1===this.$highlightIndentGuideMarker.dir)for(var n=0;n<e.length;n++){var i=e;if(this.$highlightIndentGuideMarker.end&&i.row>=this.$highlightIndentGuideMarker.start+1){if(i.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(i,t)}}else for(n=e.length-1;n>=0;n–){i=e;if(this.$highlightIndentGuideMarker.end&&i.row<this.$highlightIndentGuideMarker.start){if(i.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(i,t)}}}},e.prototype.$createLineElement=function(){var e=this.dom.createElement(“div”);return e.className=“ace_line”,e.style.height=this.config.lineHeight+“px”,e},e.prototype.$renderWrappedLine=function(e,t,n){var i=0,r=0,s=n,a=0,l=this.$createLineElement();e.appendChild(l);for(var c=0;c<t.length;c++){var h=t,u=h.value;if(0==c&&this.displayIndentGuides){if(i=u.length,!(u=this.renderIndentGuide(l,u,s)))continue;i-=u.length}if(i+u.length<s)a=this.$renderToken(l,a,h,u),i+=u.length;else{for(;i+u.length>=s;)a=this.$renderToken(l,a,h,u.substring(0,s-i)),u=u.substring(s-i),i=s,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(o.stringRepeat(“xa0”,n.indent),this.element)),a=0,s=n||Number.MAX_VALUE;0!=u.length&&(i+=u.length,a=this.$renderToken(l,a,h,u))}}n>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,a,null,“”,!0)},e.prototype.$renderSimpleLine=function(e,t){for(var n=0,i=0;i<t.length;i++){var o=t,r=o.value;if(0!=i||!this.displayIndentGuides||(r=this.renderIndentGuide(e,r))){if(n+r.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,o,r);n=this.$renderToken(e,n,o,r)}}},e.prototype.$renderOverflowMessage=function(e,t,n,i,o){n&&this.$renderToken(e,t,n,i.slice(0,this.MAX_LINE_LENGTH-t));var r=this.dom.createElement(“span”);r.className=“ace_inline_button ace_keyword ace_toggle_wrap”,r.textContent=o?“<hide>”:“<click to see more…>”,e.appendChild®},e.prototype.$renderLine=function(e,t,n){if(n||0==n||(n=this.session.getFoldLine(t)),n)var i=this.$getFoldLineTokens(t,n);else i=this.session.getTokens(t);var o=e;if(i.length){var r=this.session.getRowSplitData(t);if(r&&r.length){this.$renderWrappedLine(e,i,r);o=e.lastChild}else{o=e;this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.$renderSimpleLine(o,i)}}else this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o));if(this.showEOL&&o){n&&(t=n.end.row);var s=this.dom.createElement(“span”);s.className=“ace_invisible ace_invisible_eol”,s.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,o.appendChild(s)}},e.prototype.$getFoldLineTokens=function(e,t){function n(e,t,n){for(var i=0,r=0;r+e.value.length<t;)if(r+=e.value.length,++i==e.length)return;r!=t&&((s=e.value.substring(t-r)).length>n-t&&(s=s.substring(0,n-t)),o.push({type:e.type,value:s}),r=t+s.length,i+=1);for(;r<n&&i<e.length;){var s;(s=e.value).length+r>n?o.push({type:e.type,value:s.substring(0,n-r)}):o.push(e),r+=s.length,i+=1}}var i=this.session,o=[],r=i.getTokens(e);return t.walk((function(e,t,s,a,l){null!=e?o.push({type:“fold”,value:e}):(l&&(r=i.getTokens(t)),r.length&&n(r,a,s))}),t.end.row,this.session.getLine(t.end.row).length),o},e.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},e}();c.prototype.EOF_CHAR=“xb6”,c.prototype.EOL_CHAR_LF=“xac”,c.prototype.EOL_CHAR_CRLF=“xa4”,c.prototype.EOL_CHAR=c.prototype.EOL_CHAR_LF,c.prototype.TAB_CHAR=“u2014”,c.prototype.SPACE_CHAR=“xb7”,c.prototype.$padding=0,c.prototype.MAX_LINE_LENGTH=1e4,c.prototype.showInvisibles=!1,c.prototype.showSpaces=!1,c.prototype.showTabs=!1,c.prototype.showEOL=!1,c.prototype.displayIndentGuides=!0,c.prototype.$highlightIndentGuides=!0,c.prototype.$tabStrings=[],c.prototype.destroy={},c.prototype.onChangeTabSize=c.prototype.$computeTabString, n.implement(c.prototype,s),t.Text=c})),ace.define(“ace/layer/cursor”,,(function(e,t){“use strict”;var n=e(“../lib/dom”),i=function(){function e(e){this.element=n.createElement(“div”),this.element.className=“ace_layer ace_cursor-layer”,e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),n.addCssClass(this.element,“ace_hidden-cursors”),this.$updateCursors=this.$updateOpacity.bind(this)}return e.prototype.$updateOpacity=function(e){for(var t=this.cursors,i=t.length;i–;)n.setStyle(t.style,“opacity”,e?“”:“0”)},e.prototype.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t–;)e.style.animationDuration=this.blinkInterval+“ms”;this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&n.addCssClass(this.element,“ace_animate-blinking”)}.bind(this))},e.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,n.removeCssClass(this.element,“ace_animate-blinking”)},e.prototype.setPadding=function(e){this.$padding=e},e.prototype.setSession=function(e){this.session=e},e.prototype.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},e.prototype.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},e.prototype.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,n.setCssClass(this.element,“ace_smooth-blinking”,e),this.$updateCursors(!0),this.restartTimer())},e.prototype.addCursor=function(){var e=n.createElement(“div”);return e.className=“ace_cursor”,this.element.appendChild(e),this.cursors.push(e),e},e.prototype.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},e.prototype.hideCursor=function(){this.isVisible=!1,n.addCssClass(this.element,“ace_hidden-cursors”),this.restartTimer()},e.prototype.showCursor=function(){this.isVisible=!0,n.removeCssClass(this.element,“ace_hidden-cursors”),this.restartTimer()},e.prototype.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,n.removeCssClass(this.element,“ace_smooth-blinking”)),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&n.addCssClass(this.element,“ace_smooth-blinking”)}.bind(this))),n.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}else this.$stopCssAnimation()},e.prototype.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},e.prototype.isCursorInView=function(e,t){return e.top>=0&&e.top<t.maxHeight},e.prototype.update=function(e){this.config=e;var t=this.session.$selectionMarkers,i=0,o=0;void 0!==t&&0!==t.length||(t=);i=0;for(var r=t.length;i<r;i++){var s=this.getPixelPosition(t.cursor,!0);if(!((s.top>e.height+e.offset||s.top<0)&&i>1)){var a=this.cursors||this.addCursor(),l=a.style;this.drawCursor?this.drawCursor(a,s,e,t,this.session):this.isCursorInView(s,e)?(n.setStyle(l,“display”,“block”),n.translate(a,s.left,s.top),n.setStyle(l,“width”,Math.round(e.characterWidth)+“px”),n.setStyle(l,“height”,e.lineHeight+“px”)):n.setStyle(l,“display”,“none”)}}for(;this.cursors.length>o;)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite©,this.$pixelPos=s,this.restartTimer()},e.prototype.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?n.addCssClass(this.element,“ace_overwrite-cursors”):n.removeCssClass(this.element,“ace_overwrite-cursors”))},e.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},e}();i.prototype.$padding=0,i.prototype.drawCursor=null,t.Cursor=i})),ace.define(“ace/scrollbar”,,(function(e,t){“use strict”;var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e=t)},n(e,t)},function(e,t){function i(){this.constructor=e}if(“function”!=typeof t&&null!==t)throw new TypeError(“Class extends value ”+String(t)+“ is not a constructor or null”);n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=e(“./lib/oop”),r=e(“./lib/dom”),s=e(“./lib/event”),a=e(“./lib/event_emitter”).EventEmitter,l=32768,c=function(){function e(e,t){this.element=r.createElement(“div”),this.element.className=“ace_scrollbar ace_scrollbar”+t,this.inner=r.createElement(“div”),this.inner.className=“ace_scrollbar-inner”,this.inner.textContent=“xa0”,this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,“scroll”,this.onScroll.bind(this)),s.addListener(this.element,“mousedown”,s.preventDefault)}return e.prototype.setVisible=function(e){this.element.style.display=e?“”:“none”,this.isVisible=e,this.coeff=1},e}();o.implement(c.prototype,a);var h=function(e){function t(t,n){var i=e.call(this,t,“-v”)||this;return i.scrollTop=0,i.scrollHeight=0,n.$scrollbarWidth=i.width=r.scrollbarWidth(t.ownerDocument),i.inner.style.width=i.element.style.width=(i.width||15)5
“px”,i.$minWidth=0,i}return i(t,e),t.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit(“scroll”,{data:this.scrollTop})}this.skipEvent=!1},t.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},t.prototype.setHeight=function(e){this.element.style.height=e+“px”},t.prototype.setScrollHeight=function(e){this.scrollHeight=e,e>l?(this.coeff=l/e,e=l):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+“px”},t.prototype.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)},t}©;h.prototype.setInnerHeight=h.prototype.setScrollHeight;var u=function(e){function t(t,n){var i=e.call(this,t,“-h”)||this;return i.scrollLeft=0,i.height=n.$scrollbarWidth,i.inner.style.height=i.element.style.height=(i.height||15)5
“px”,i}return i(t,e),t.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit(“scroll”,{data:this.scrollLeft})),this.skipEvent=!1},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.setWidth=function(e){this.element.style.width=e+“px”},t.prototype.setInnerWidth=function(e){this.inner.style.width=e+“px”},t.prototype.setScrollWidth=function(e){this.inner.style.width=e+“px”},t.prototype.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)},t}©;t.ScrollBar=h,t.ScrollBarV=h,t.ScrollBarH=u,t.VScrollBar=h,t.HScrollBar=u})),ace.define(“ace/scrollbar_custom”,,(function(e,t){“use strict”;var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e=t)},n(e,t)},function(e,t){function i(){this.constructor=e}if(“function”!=typeof t&&null!==t)throw new TypeError(“Class extends value ”+String(t)+“ is not a constructor or null”);n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=e(“./lib/oop”),r=e(“./lib/dom”),s=e(“./lib/event”),a=e(“./lib/event_emitter”).EventEmitter;r.importCssString(“.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{n position: absolute;n background: rgba(128, 128, 128, 0.6);n -moz-box-sizing: border-box;n box-sizing: border-box;n border: 1px solid bbb;n border-radius: 2px;n z-index: 8;n}n.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {n position: absolute;n z-index: 6;n background: none;n overflow: hidden!important;n}n.ace_editor>.ace_sb-v {n z-index: 6;n right: 0;n top: 0;n width: 12px;n}n.ace_editor>.ace_sb-v div {n z-index: 8;n right: 0;n width: 100%;n}n.ace_editor>.ace_sb-h {n bottom: 0;n left: 0;n height: 12px;n}n.ace_editor>.ace_sb-h div {n bottom: 0;n height: 100%;n}n.ace_editor>.ace_sb_grabbed {n z-index: 8;n background: #000;n}”,“ace_scrollbar.css”,!1);var l=function(){function e(e,t){this.element=r.createElement(“div”),this.element.className=“ace_sb”+t,this.inner=r.createElement(“div”),this.inner.className=“”,this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addMultiMouseDownListener(this.element,,this,“onMouseDown”)}return e.prototype.setVisible=function(e){this.element.style.display=e?“”:“none”,this.isVisible=e,this.coeff=1},e}();o.implement(l.prototype,a);var c=function(e){function t(t,n){var i=e.call(this,t,“-v”)||this;return i.scrollTop=0,i.scrollHeight=0,i.parent=t,i.width=i.VScrollWidth,i.renderer=n,i.inner.style.width=i.element.style.width=(i.width||15)+“px”,i.$minWidth=0,i}return i(t,e),t.prototype.onMouseDown=function(e,t){if(“mousedown”===e&&0===s.getButton(t)&&2!==t.detail){if(t.target===this.inner){var n=this,i=t.clientY,o=function(e){i=e.clientY},r=function(){clearInterval(h)},a=t.clientY,l=this.thumbTop,c=function(){if(void 0!==i){var e=n.scrollTopFromThumbTop(l+i-a);e!==n.scrollTop&&n._emit(“scroll”,{data:e})}};s.capture(this.inner,o,r);var h=setInterval(c,20);return s.preventDefault(t)}var u=t.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit(“scroll”,{data:this.scrollTopFromThumbTop(u)}),s.preventDefault(t)}},t.prototype.getHeight=function(){return this.height},t.prototype.scrollTopFromThumbTop=function(e){var t=e*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return(t|=0)<0?t=0:t>this.pageHeight-this.viewHeight&&(t=this.pageHeight-this.viewHeight),t},t.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},t.prototype.setHeight=function(e){this.height=Math.max(0,e),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},t.prototype.setScrollHeight=function(e,t){(this.pageHeight!==e||t)&&(this.pageHeight=e,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(e){this.scrollTop=e,e<0&&(e=0),this.thumbTop=e*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+“px”},t}(l);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var h=function(e){function t(t,n){var i=e.call(this,t,“-h”)||this;return i.scrollLeft=0,i.scrollWidth=0,i.height=i.HScrollHeight,i.inner.style.height=i.element.style.height=(i.height||12)+“px”,i.renderer=n,i}return i(t,e),t.prototype.onMouseDown=function(e,t){if(“mousedown”===e&&0===s.getButton(t)&&2!==t.detail){if(t.target===this.inner){var n=this,i=t.clientX,o=function(e){i=e.clientX},r=function(){clearInterval(h)},a=t.clientX,l=this.thumbLeft,c=function(){if(void 0!==i){var e=n.scrollLeftFromThumbLeft(l+i-a);e!==n.scrollLeft&&n._emit(“scroll”,{data:e})}};s.capture(this.inner,o,r);var h=setInterval(c,20);return s.preventDefault(t)}var u=t.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit(“scroll”,{data:this.scrollLeftFromThumbLeft(u)}),s.preventDefault(t)}},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.scrollLeftFromThumbLeft=function(e){var t=e*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return(t|=0)<0?t=0:t>this.pageWidth-this.viewWidth&&(t=this.pageWidth-this.viewWidth),t},t.prototype.setWidth=function(e){this.width=Math.max(0,e),this.element.style.width=this.width+“px”,this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},t.prototype.setScrollWidth=function(e,t){(this.pageWidth!==e||t)&&(this.pageWidth=e,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(e){this.scrollLeft=e,e<0&&(e=0),this.thumbLeft=e*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+“px”},t}(l);h.prototype.setInnerWidth=h.prototype.setScrollWidth,t.ScrollBar=c,t.ScrollBarV=c,t.ScrollBarH=h,t.VScrollBar=c,t.HScrollBar=h})),ace.define(“ace/renderloop”,,(function(e,t){“use strict”;var n=e(“./lib/event”),i=function(){function e(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var i=this;this._flush=function(){i.pending=!1;var e=i.changes;if(e&&(n.blockIdle(100),i.changes=0,i.onRender(e)),i.changes){if(i.$recursionLimit–<0)return;i.schedule()}else i.$recursionLimit=2}}return e.prototype.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(n.nextFrame(this._flush),this.pending=!0)},e.prototype.clear=function(){var e=this.changes;return this.changes=0,e},e}();t.RenderLoop=i})),ace.define(“ace/layer/font_metrics”,,(function(e,t){var n=e(“../lib/oop”),i=e(“../lib/dom”),o=e(“../lib/lang”),r=e(“../lib/event”),s=e(“../lib/useragent”),a=e(“../lib/event_emitter”).EventEmitter,l=512,c=“function”==typeof ResizeObserver,h=200,u=function(){function e(e){this.el=i.createElement(“div”),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=i.createElement(“div”),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=i.createElement(“div”),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=o.stringRepeat(“X”,l),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()}return e.prototype.$setMeasureNodeStyles=function(e,t){e.width=e.height=“auto”,e.left=e.top=“0px”,e.visibility=“hidden”,e.position=“absolute”,e.whiteSpace=“pre”,s.isIE<8?e=“inherit”:e.font=“inherit”,e.overflow=t?“hidden”:“visible”},e.prototype.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight=“bold”;var t=this.$measureSizes();this.$measureNode.style.fontWeight=“”,this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit(“changeCharacterSize”,{data:e})}},e.prototype.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver((function(){e.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},e.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=r.onIdle((function t(){e.checkForSizeChanges(),r.onIdle(t,500)}),500)},e.prototype.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},e.prototype.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/l};return 0===t.width||0===t.height?null:t},e.prototype.$measureCharWidth=function(e){return this.$main.textContent=o.stringRepeat(e,l),this.$main.getBoundingClientRect().width/l},e.prototype.getCharacterWidth=function(e){var t=this.charSizes;return void 0===t&&(t=this.charSizes=this.$measureCharWidth(e)/this.$characterSize.width),t},e.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},e.prototype.$getZoom=function(e){return e&&e.parentElement?(window.getComputedStyle(e).zoom||1)*this.$getZoom(e.parentElement):1},e.prototype.$initTransformMeasureNodes=function(){var e=function(e,t){return[“div”,{style:“position: absolute;top:”e
“px;left:”t
“px;”}]};this.els=i.buildDom(,this.el)},e.prototype.transformCoordinates=function(e,t){function n(e,t,n){var i=e*t-e*t;return[(-t*n+t*n)/i,(+e*n-e*n)/i]}function i(e,t){return[e-t,e-t]}function o(e,t){return[e+t,e+t]}function r(e,t){return[e*t,e*t]}function s(e){var t=e.getBoundingClientRect();return}e&&(e=r(1/this.$getZoom(this.el),e));this.els||this.$initTransformMeasureNodes();var a=s(this.els),l=s(this.els),c=s(this.els),u=s(this.els),d=n(i(u,l),i(u,c),i(o(l,c),o(u,a))),p=r(1+d,i(l,a)),g=r(1+d,i(c,a));if(t){var m=t,f=d*m/h+d*m/h+1,v=o(r(m,p),r(m,g));return o(r(1/f/h,v),a)}var y=i(e,a),b=n(i(p,r(d,y)),i(g,r(d,y)),y);return r(h,b)},e}();u.prototype.$characterSize={width:0,height:0},n.implement(u.prototype,a),t.FontMetrics=u})),ace.define(“ace/css/editor-css”,,(function(e,t,n){ n.exports=’n.ace_br1 {border-top-left-radius : 3px;}n.ace_br2 {border-top-right-radius : 3px;}n.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}n.ace_br4 {border-bottom-right-radius: 3px;}n.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}n.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}n.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}n.ace_br8 {border-bottom-left-radius : 3px;}n.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}n.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}n.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}n.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}n.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}n.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}n.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}nnn.ace_editor {n position: relative;n overflow: hidden;n padding: 0;n font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;n direction: ltr;n text-align: left;n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);n}nn.ace_scroller {n position: absolute;n overflow: hidden;n top: 0;n bottom: 0;n background-color: inherit;n -ms-user-select: none;n -moz-user-select: none;n -webkit-user-select: none;n user-select: none;n cursor: text;n}nn.ace_content {n position: absolute;n box-sizing: border-box;n min-width: 100%;n contain: style size layout;n font-variant-ligatures: no-common-ligatures;n}nn.ace_keyboard-focus:focus {n box-shadow: inset 0 0 0 2px #5E9ED6;n outline: none;n}nn.ace_dragging .ace_scroller:before{n position: absolute;n top: 0;n left: 0;n right: 0;n bottom: 0;n content: '';n background: rgba(250, 250, 250, 0.01);n z-index: 1000;n}n.ace_dragging.ace_dark .ace_scroller:before{n background: rgba(0, 0, 0, 0.01);n}nn.ace_gutter {n position: absolute;n overflow : hidden;n width: auto;n top: 0;n bottom: 0;n left: 0;n cursor: default;n z-index: 4;n -ms-user-select: none;n -moz-user-select: none;n -webkit-user-select: none;n user-select: none;n contain: style size layout;n}nn.ace_gutter-active-line {n position: absolute;n left: 0;n right: 0;n}nn.ace_scroller.ace_scroll-left:after {n content: “”;n position: absolute;n top: 0;n right: 0;n bottom: 0;n left: 0;n box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;n pointer-events: none;n}nn.ace_gutter-cell, .ace_gutter-cell_svg-icons {n position: absolute;n top: 0;n left: 0;n right: 0;n padding-left: 19px;n padding-right: 6px;n background-repeat: no-repeat;n}nn.ace_gutter-cell_svg-icons .ace_gutter_annotation {n margin-left: -14px;n float: left;n}nn.ace_gutter-cell .ace_gutter_annotation {n margin-left: -19px;n float: left;n}nn.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {n 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==”);n background-repeat: no-repeat;n background-position: 2px center;n}nn.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {n 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==”);n background-repeat: no-repeat;n background-position: 2px center;n}nn.ace_gutter-cell.ace_info, .ace_icon.ace_info {n background-image: url(“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=”);n background-repeat: no-repeat;n background-position: 2px center;n}n.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {n background-image: url(“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC”);n}nn.ace_icon_svg.ace_error {n -webkit-mask-image: url(“data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+”);n background-color: crimson;n}n.ace_icon_svg.ace_warning {n -webkit-mask-image: url(“data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==”);n background-color: darkorange;n}n.ace_icon_svg.ace_info {n -webkit-mask-image: url(“data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==”);n background-color: royalblue;n}nn.ace_icon_svg.ace_error_fold {n -webkit-mask-image: url(“data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=”);n background-color: crimson;n}n.ace_icon_svg.ace_warning_fold {n -webkit-mask-image: url(“data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=”);n background-color: darkorange;n}nn.ace_scrollbar {n contain: strict;n position: absolute;n right: 0;n bottom: 0;n z-index: 6;n}nn.ace_scrollbar-inner {n position: absolute;n cursor: text;n left: 0;n top: 0;n}nn.ace_scrollbar-v{n overflow-x: hidden;n overflow-y: scroll;n top: 0;n}nn.ace_scrollbar-h {n overflow-x: scroll;n overflow-y: hidden;n left: 0;n}nn.ace_print-margin {n position: absolute;n height: 100%;n}nn.ace_text-input {n position: absolute;n z-index: 0;n width: 0.5em;n height: 1em;n opacity: 0;n background: transparent;n -moz-appearance: none;n appearance: none;n border: none;n resize: none;n outline: none;n overflow: hidden;n font: inherit;n padding: 0 1px;n margin: 0 -1px;n contain: strict;n -ms-user-select: text;n -moz-user-select: text;n -webkit-user-select: text;n user-select: text;n /*with ‘pre-line` chrome inserts instead of space*/n white-space: pre!important;n}n.ace_text-input.ace_composition {n background: transparent;n color: inherit;n z-index: 1000;n opacity: 1;n}n.ace_composition_placeholder { color: transparent }n.ace_composition_marker { n border-bottom: 1px solid;n position: absolute;n border-radius: 0;n margin-top: 1px;n}nn {n transform: none!important;n filter: none!important;n clip-path: none!important;n mask : none!important;n contain: none!important;n perspective: none!important;n mix-blend-mode: initial!important;n z-index: auto;n}nn.ace_layer {n z-index: 1;n position: absolute;n overflow: hidden;n /* workaround for chrome bug github.com/ajaxorg/ace/issues/2312*/n word-wrap: normal;n white-space: pre;n height: 100%;n width: 100%;n box-sizing: border-box;n /* setting pointer-events: auto; on node under the mouse, which changesn during scroll, will break mouse wheel scrolling in Safari */n pointer-events: none;n}nn.ace_gutter-layer {n position: relative;n width: auto;n text-align: right;n pointer-events: auto;n height: 1000000px;n contain: style size layout;n}nn.ace_text-layer {n font: inherit !important;n position: absolute;n height: 1000000px;n width: 1000000px;n contain: style size layout;n}nn.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {n contain: style size layout;n position: absolute;n top: 0;n left: 0;n right: 0;n}nn.ace_hidpi .ace_text-layer,n.ace_hidpi .ace_gutter-layer,n.ace_hidpi .ace_content,n.ace_hidpi .ace_gutter {n contain: strict;n}n.ace_hidpi .ace_text-layer > .ace_line, n.ace_hidpi .ace_text-layer > .ace_line_group {n contain: strict;n}nn.ace_cjk {n display: inline-block;n text-align: center;n}nn.ace_cursor-layer {n z-index: 4;n}nn.ace_cursor {n z-index: 4;n position: absolute;n box-sizing: border-box;n border-left: 2px solid;n /* workaround for smooth cursor repaintng whole screen in chrome */n transform: translatez(0);n}nn.ace_multiselect .ace_cursor {n border-left-width: 1px;n}nn.ace_slim-cursors .ace_cursor {n border-left-width: 1px;n}nn.ace_overwrite-cursors .ace_cursor {n border-left-width: 0;n border-bottom: 1px solid;n}nn.ace_hidden-cursors .ace_cursor {n opacity: 0.2;n}nn.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {n opacity: 0;n}nn.ace_smooth-blinking .ace_cursor {n transition: opacity 0.18s;n}nn.ace_animate-blinking .ace_cursor {n animation-duration: 1000ms;n animation-timing-function: step-end;n animation-name: blink-ace-animate;n animation-iteration-count: infinite;n}nn.ace_animate-blinking.ace_smooth-blinking .ace_cursor {n animation-duration: 1000ms;n animation-timing-function: ease-in-out;n animation-name: blink-ace-animate-smooth;n}n n blink-ace-animate {n from, to { opacity: 1; }n 60% { opacity: 0; }n}nn@keyframes blink-ace-animate-smooth {n from, to { opacity: 1; }n 45% { opacity: 1; }n 60% { opacity: 0; }n 85% { opacity: 0; }n}nn.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {n position: absolute;n z-index: 3;n}nn.ace_marker-layer .ace_selection {n position: absolute;n z-index: 5;n}nn.ace_marker-layer .ace_bracket {n position: absolute;n z-index: 6;n}nn.ace_marker-layer .ace_error_bracket {n position: absolute;n border-bottom: 1px solid DE5555;n border-radius: 0;n}nn.ace_marker-layer .ace_active-line {n position: absolute;n z-index: 2;n}nn.ace_marker-layer .ace_selected-word {n position: absolute;n z-index: 4;n box-sizing: border-box;n}nn.ace_line .ace_fold {n box-sizing: border-box;nn display: inline-block;n height: 11px;n margin-top: -2px;n vertical-align: middle;nn background-image:n url(“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII=”),n url(“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=”);n background-repeat: no-repeat, repeat-x;n background-position: center center, top left;n color: transparent;nn border: 1px solid black;n border-radius: 2px;nn cursor: pointer;n pointer-events: auto;n}nn.ace_dark .ace_fold {n}nn.ace_fold:hover{n background-image:n url(“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII=”),n url(“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC”);n}nn.ace_tooltip {n background-color: f5f5f5;n border: 1px solid gray;n border-radius: 1px;n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);n color: black;n max-width: 100%;n padding: 3px 4px;n position: fixed;n z-index: 999999;n box-sizing: border-box;n cursor: default;n white-space: pre-wrap;n word-wrap: break-word;n line-height: normal;n font-style: normal;n font-weight: normal;n letter-spacing: normal;n pointer-events: none;n overflow: auto;n max-width: min(60em, 66vw);n overscroll-behavior: contain;n}n.ace_tooltip pre {n white-space: pre-wrap;n}nn.ace_tooltip.ace_dark {n background-color: #636363;n color: fff;n}nn.ace_tooltip:focus {n outline: 1px solid #5E9ED6;n}nn.ace_icon {n display: inline-block;n width: 18px;n vertical-align: top;n}nn.ace_icon_svg {n display: inline-block;n width: 12px;n vertical-align: top;n -webkit-mask-repeat: no-repeat;n -webkit-mask-size: 12px;n -webkit-mask-position: center;n}nn.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {n padding-right: 13px;n}nn.ace_fold-widget {n box-sizing: border-box;nn margin: 0 -12px 0 1px;n display: none;n width: 11px;n vertical-align: top;nn background-image: url(“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==”);n background-repeat: no-repeat;n background-position: center;nn border-radius: 3px;n n border: 1px solid transparent;n cursor: pointer;n}nn.ace_folding-enabled .ace_fold-widget {n display: inline-block; n}nn.ace_fold-widget.ace_end {n background-image: url(“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==”);n}nn.ace_fold-widget.ace_closed {n background-image: url(“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==”);n}nn.ace_fold-widget:hover {n border: 1px solid rgba(0, 0, 0, 0.3);n background-color: rgba(255, 255, 255, 0.2);n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);n}nn.ace_fold-widget:active {n border: 1px solid rgba(0, 0, 0, 0.4);n background-color: rgba(0, 0, 0, 0.05);n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);n}n/**n * Dark version for fold widgetsn */n.ace_dark .ace_fold-widget {n background-image: url(“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC”);n}n.ace_dark .ace_fold-widget.ace_end {n background-image: url(“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==”);n}n.ace_dark .ace_fold-widget.ace_closed {n background-image: url(“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==”);n}n.ace_dark .ace_fold-widget:hover {n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);n background-color: rgba(255, 255, 255, 0.1);n}n.ace_dark .ace_fold-widget:active {n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);n}nn.ace_inline_button {n border: 1px solid lightgray;n display: inline-block;n margin: -1px 8px;n padding: 0 5px;n pointer-events: auto;n cursor: pointer;n}n.ace_inline_button:hover {n border-color: gray;n background: rgba(200,200,200,0.2);n display: inline-block;n pointer-events: auto;n}nn.ace_fold-widget.ace_invalid {n background-color: FFB4B4;n border-color: DE5555;n}nn.ace_fade-fold-widgets .ace_fold-widget {n transition: opacity 0.4s ease 0.05s;n opacity: 0;n}nn.ace_fade-fold-widgets:hover .ace_fold-widget {n transition: opacity 0.05s ease 0.05s;n opacity:1;n}nn.ace_underline {n text-decoration: underline;n}nn.ace_bold {n font-weight: bold;n}nn.ace_nobold .ace_bold {n font-weight: normal;n}nn.ace_italic {n font-style: italic;n}nnn.ace_error-marker {n background-color: rgba(255, 0, 0,0.2);n position: absolute;n z-index: 9;n}nn.ace_highlight-marker {n background-color: rgba(255, 255, 0,0.2);n position: absolute;n z-index: 8;n}nn.ace_mobile-menu {n position: absolute;n line-height: 1.5;n border-radius: 4px;n -ms-user-select: none;n -moz-user-select: none;n -webkit-user-select: none;n user-select: none;n background: white;n box-shadow: 1px 3px 2px grey;n border: 1px solid dcdcdc;n color: black;n}n.ace_dark > .ace_mobile-menu {n background: #333;n color: ccc;n box-shadow: 1px 3px 2px grey;n border: 1px solid #444;nn}n.ace_mobile-button {n padding: 2px;n cursor: pointer;n overflow: hidden;n}n.ace_mobile-button:hover {n background-color: eee;n opacity:1;n}n.ace_mobile-button:active {n background-color: ddd;n}nn.ace_placeholder {n font-family: arial;n transform: scale(0.9);n transform-origin: left;n white-space: pre;n opacity: 0.7;n margin: 0 10px;n}nn.ace_ghost_text {n opacity: 0.5;n font-style: italic;n white-space: pre;n}nn.ace_screenreader-only {n position:absolute;n left:-10000px;n top:auto;n width:1px;n height:1px;n overflow:hidden;n}’})),ace.define(“ace/layer/decorators”,,(function(e,t){“use strict”;var n=e(“../lib/dom”),i=e(“../lib/oop”),o=e(“../lib/event_emitter”).EventEmitter,r=function(){function e(e,t){this.canvas=n.createElement(“canvas”),this.renderer=t,this.pixelRatio=1,this.maxHeight=t.layerConfig.maxHeight,this.lineHeight=t.layerConfig.lineHeight,this.canvasHeight=e.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=e.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top=“0px”,this.canvas.style.right=“0px”,this.canvas.style.zIndex=“7px”,this.canvas.style.position=“absolute”,this.colors={},this.colors.dark={error:“rgba(255, 18, 18, 1)”,warning:“rgba(18, 136, 18, 1)”,info:“rgba(18, 18, 136, 1)”},this.colors.light={error:“rgb(255,51,51)”,warning:“rgb(32,133,72)”,info:“rgb(35,68,138)”},e.element.appendChild(this.canvas)}return e.prototype.$updateDecorators=function(e){function t(e,t){return e.priority<t.priority?-1:e.priority>t.priority?1:0}var n=!0===this.renderer.theme.isDark?this.colors.dark:this.colors.light;e&&(this.maxHeight=e.maxHeight,this.lineHeight=e.lineHeight,this.canvasHeight=e.height,(e.lastRow+1)*this.lineHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight);var i=this.canvas.getContext(“2d”),o=this.renderer.session.$annotations;if(i.clearRect(0,0,this.canvas.width,this.canvas.height),o){var r={info:1,warning:2,error:3};o.forEach((function(e){e.priority=r||null})),o=o.sort(t);for(var s=this.renderer.session.$foldData,a=0;a<o.length;a++){var l=o.row,c=this.compensateFoldRows(l,s),h=Math.round((l-c)*this.lineHeight*this.heightRatio),u=Math.round((l-c)*this.lineHeight*this.heightRatio),d=Math.round(((l-c)*this.lineHeight+this.lineHeight)*this.heightRatio);if(d-u<this.minDecorationHeight){var p=(u+d)/2|0;p<this.halfMinDecorationHeight?p=this.halfMinDecorationHeight:p+this.halfMinDecorationHeight>this.canvasHeight&&(p=this.canvasHeight-this.halfMinDecorationHeight),u=Math.round(p-this.halfMinDecorationHeight),d=Math.round(p+this.halfMinDecorationHeight)}i.fillStyle=n[o.type]||null,i.fillRect(0,h,this.canvasWidth,d-u)}}var g=this.renderer.session.selection.getCursor();if(g){c=this.compensateFoldRows(g.row,s),h=Math.round((g.row-c)*this.lineHeight*this.heightRatio);i.fillStyle=“rgba(0, 0, 0, 0.5)”,i.fillRect(0,h,this.canvasWidth,2)}},e.prototype.compensateFoldRows=function(e,t){var n=0;if(t&&t.length>0)for(var i=0;i<t.length;i++)e>t.start.row&&e<t.end.row?n+=e-t.start.row:e>=t.end.row&&(n+=t.end.row-t.start.row);return n},e}();i.implement(r.prototype,o),t.Decorator=r})),ace.define(“ace/virtual_renderer”,,(function(e,t){“use strict”;var n=e(“./lib/oop”),i=e(“./lib/dom”),o=e(“./lib/lang”),r=e(“./config”),s=e(“./layer/gutter”).Gutter,a=e(“./layer/marker”).Marker,l=e(“./layer/text”).Text,c=e(“./layer/cursor”).Cursor,h=e(“./scrollbar”).HScrollBar,u=e(“./scrollbar”).VScrollBar,d=e(“./scrollbar_custom”).HScrollBar,p=e(“./scrollbar_custom”).VScrollBar,g=e(“./renderloop”).RenderLoop,m=e(“./layer/font_metrics”).FontMetrics,f=e(“./lib/event_emitter”).EventEmitter,v=e(“./css/editor-css”),y=e(“./layer/decorators”).Decorator,b=e(“./lib/useragent”);i.importCssString(v,“ace_editor.css”,!1);var w=function(){function e(e,t){var n=this;this.container=e||i.createElement(“div”),i.addCssClass(this.container,“ace_editor”),i.HI_DPI&&i.addCssClass(this.container,“ace_hidpi”),this.setTheme(t),null==r.get(“useStrictCSP”)&&r.set(“useStrictCSP”,!1),this.$gutter=i.createElement(“div”),this.$gutter.className=“ace_gutter”,this.container.appendChild(this.$gutter),this.$gutter.setAttribute(“aria-hidden”,“true”),this.scroller=i.createElement(“div”),this.scroller.className=“ace_scroller”,this.container.appendChild(this.scroller),this.content=i.createElement(“div”),this.content.className=“ace_content”,this.scroller.appendChild(this.content),this.$gutterLayer=new s(this.$gutter),this.$gutterLayer.on(“changeGutterWidth”,this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var o=this.$textLayer=new l(this.content);this.canvas=o.element,this.$markerFront=new a(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new u(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.on(“scroll”,(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.on(“scroll”,(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new m(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on(“changeCharacterSize”,(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal(“changeCharacterSize”,e)})),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=!b.isIOS,this.$loop=new g(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),r.resetOptions(this),r._signal(“renderer”,this)}return e.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(),i.setStyle(this.scroller.style,“line-height”,this.lineHeight+“px”)},e.prototype.setSession=function(e){this.session&&this.session.doc.off(“changeNewLineMode”,this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(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))},e.prototype.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},e.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},e.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},e.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},e.prototype.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},e.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},e.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},e.prototype.onResize=function(e,t,n,i){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var o=this.container;i||(i=o.clientHeight||o.scrollHeight),n||(n=o.clientWidth||o.scrollWidth);var r=this.$updateCachedSize(e,t,n,i);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!n&&!i)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(r|this.$changes,!0):this.$loop.schedule(r|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},e.prototype.$updateCachedSize=function(e,t,n,o){o-=this.$extraHeight||0;var r=0,s=this.$size,a={width:s.width,height:s.height,scrollerHeight:s.scrollerHeight,scrollerWidth:s.scrollerWidth};if(o&&(e||s.height!=o)&&(s.height=o,r|=this.CHANGE_SIZE,s.scrollerHeight=s.height,this.$horizScroll&&(s.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(s.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+“px”,r|=this.CHANGE_SCROLL),n&&(e||s.width!=n)){r|=this.CHANGE_SIZE,s.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,i.setStyle(this.scrollBarH.element.style,“left”,t+“px”),i.setStyle(this.scroller.style,“left”,t+this.margin.left+“px”),s.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h), i.setStyle(this.$gutter.style,“left”,this.margin.left+“px”);var l=this.scrollBarV.getWidth()+“px”;i.setStyle(this.scrollBarH.element.style,“right”,l),i.setStyle(this.scroller.style,“right”,l),i.setStyle(this.scroller.style,“bottom”,this.scrollBarH.getHeight()),this.scrollBarH.setWidth(s.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(r|=this.CHANGE_FULL)}return s.$dirty=!n||!o,r&&this._signal(“resize”,a),r},e.prototype.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},e.prototype.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},e.prototype.setAnimatedScroll=function(e){this.setOption(“animatedScroll”,e)},e.prototype.getAnimatedScroll=function(){return this.$animatedScroll},e.prototype.setShowInvisibles=function(e){this.setOption(“showInvisibles”,e),this.session.$bidiHandler.setShowInvisibles(e)},e.prototype.getShowInvisibles=function(){return this.getOption(“showInvisibles”)},e.prototype.getDisplayIndentGuides=function(){return this.getOption(“displayIndentGuides”)},e.prototype.setDisplayIndentGuides=function(e){this.setOption(“displayIndentGuides”,e)},e.prototype.getHighlightIndentGuides=function(){return this.getOption(“highlightIndentGuides”)},e.prototype.setHighlightIndentGuides=function(e){this.setOption(“highlightIndentGuides”,e)},e.prototype.setShowPrintMargin=function(e){this.setOption(“showPrintMargin”,e)},e.prototype.getShowPrintMargin=function(){return this.getOption(“showPrintMargin”)},e.prototype.setPrintMarginColumn=function(e){this.setOption(“printMarginColumn”,e)},e.prototype.getPrintMarginColumn=function(){return this.getOption(“printMarginColumn”)},e.prototype.getShowGutter=function(){return this.getOption(“showGutter”)},e.prototype.setShowGutter=function(e){return this.setOption(“showGutter”,e)},e.prototype.getFadeFoldWidgets=function(){return this.getOption(“fadeFoldWidgets”)},e.prototype.setFadeFoldWidgets=function(e){this.setOption(“fadeFoldWidgets”,e)},e.prototype.setHighlightGutterLine=function(e){this.setOption(“highlightGutterLine”,e)},e.prototype.getHighlightGutterLine=function(){return this.getOption(“highlightGutterLine”)},e.prototype.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=i.createElement(“div”);e.className=“ace_layer ace_print-margin-layer”,this.$printMarginEl=i.createElement(“div”),this.$printMarginEl.className=“ace_print-margin”,e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+“px”,t.visibility=this.$showPrintMargin?“visible”:“hidden”,this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},e.prototype.getContainerElement=function(){return this.container},e.prototype.getMouseEventTarget=function(){return this.scroller},e.prototype.getTextAreaContainer=function(){return this.container},e.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var n=this.$cursorLayer.$pixelPos;if(n){t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var o=this.layerConfig,r=n.top,s=n.left;r-=o.offset;var a=t&&t.useTextareaForIME||b.isMobile?this.lineHeight:1;if(r<0||r>o.height-a)i.translate(this.textarea,0,0);else{var l=1,c=this.$size.height-a;if(t)if(t.useTextareaForIME){var h=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(h)}else r+=this.lineHeight+2;else r+=this.lineHeight;(s-=this.scrollLeft)>this.$size.scrollerWidth-l&&(s=this.$size.scrollerWidth-l),s+=this.gutterWidth+this.margin.left,i.setStyle(e,“height”,a+“px”),i.setStyle(e,“width”,l+“px”),i.translate(this.textarea,Math.min(s,this.$size.scrollerWidth-l),Math.min(r,c))}}}else i.translate(this.textarea,-100,0)}},e.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},e.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},e.prototype.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},e.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},e.prototype.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},e.prototype.setScrollMargin=function(e,t,n,i){var o=this.scrollMargin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,o.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-o.top),this.updateFull()},e.prototype.setMargin=function(e,t,n,i){var o=this.margin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},e.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},e.prototype.setHScrollBarAlwaysVisible=function(e){this.setOption(“hScrollBarAlwaysVisible”,e)},e.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},e.prototype.setVScrollBarAlwaysVisible=function(e){this.setOption(“vScrollBarAlwaysVisible”,e)},e.prototype.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},e.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},e.prototype.freeze=function(){this.$frozen=!0},e.prototype.unfreeze=function(){this.$frozen=!1},e.prototype.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal(“beforeRender”,e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var o=this.scrollTop+(n.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;o>0&&(this.scrollTop=o,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),i.translate(this.content,-this.scrollLeft,-n.offset);var r=n.width+2*this.$padding+“px”,s=n.minHeight+“px”;i.setStyle(this.content.style,“width”,r),i.setStyle(this.content.style,“height”,s)}if(e&this.CHANGE_H_SCROLL&&(i.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?“ace_scroller ”:“ace_scroller ace_scroll-left ”,this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal(“afterRender”,e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal(“afterRender”,e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_LINES?((this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal(“afterRender”,e)}else this.$changes|=e},e.prototype.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))this.scrollMargin.v
(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var i=!(n<=2*this.lineHeight)&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||i!=this.$vScroll){i!=this.$vScroll&&(this.$vScroll=i,this.scrollBarV.setVisible(i));var o=this.container.clientWidth;this.container.style.height=n+“px”,this.$updateCachedSize(!0,this.$gutterWidth,o,n),this.desiredHeight=n,this._signal(“autosize”)}},e.prototype.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,i=this.session.getScreenLength()*this.lineHeight,o=this.$getLongestLine(),r=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-o-2*this.$padding<0),s=this.$horizScroll!==r;s&&(this.$horizScroll=r,this.scrollBarH.setVisible®);var a=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var l=t.scrollerHeight+this.lineHeight,c=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;i+=c;var h=this.scrollMargin;this.session.setScrollTop(Math.max(-h.top,Math.min(this.scrollTop,i-t.scrollerHeight+h.bottom))),this.session.setScrollLeft(Math.max(-h.left,Math.min(this.scrollLeft,o+2*this.$padding-t.scrollerWidth+h.right)));var u=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-i+c<0||this.scrollTop>h.top),d=a!==u;d&&(this.$vScroll=u,this.scrollBarV.setVisible(u));var p,g,m=this.scrollTop%this.lineHeight,f=Math.ceil(l/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-m)/this.lineHeight)),y=v+f,b=this.lineHeight;v=e.screenToDocumentRow(v,0);var w=e.getFoldLine(v);w&&(v=w.start.row),p=e.documentToScreenRow(v,0),g=e.getRowLength(v)*b,y=Math.min(e.screenToDocumentRow(y,0),e.getLength()-1),l=t.scrollerHeight+e.getRowLength(y)*b+g,m=this.scrollTop-p*b;var x=0;return(this.layerConfig.width!=o||s)&&(x=this.CHANGE_H_SCROLL),(s||d)&&(x|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal(“scrollbarVisibilityChanged”),d&&(o=this.$getLongestLine())),this.layerConfig={width:o,padding:this.$padding,firstRow:v,firstRowScreen:p,lastRow:y,lineHeight:b,characterWidth:this.characterWidth,minHeight:l,maxHeight:i,offset:m,gutterOffset:b?Math.max(0,Math.ceil((m+t.height-t.scrollerHeight)/b)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(o-this.$padding),x},e.prototype.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1||t<n.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},e.prototype.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),this.$textLayer&&e>this.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},e.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},e.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},e.prototype.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},e.prototype.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},e.prototype.updateBreakpoints=function(e){this._rows=e,this.$loop.schedule(this.CHANGE_GUTTER)},e.prototype.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},e.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},e.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},e.prototype.showCursor=function(){this.$cursorLayer.showCursor()},e.prototype.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},e.prototype.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var i=this.$cursorLayer.getPixelPosition(e),o=i.left,r=i.top,s=n&&n.top||0,a=n&&n.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+s>r?(t&&l+s>r+this.lineHeight&&(r-=t*this.$size.scrollerHeight),0===r&&(r=-this.scrollMargin.top),this.session.setScrollTop®):l+this.$size.scrollerHeight-a<r+this.lineHeight&&(t&&l+this.$size.scrollerHeight-a<r-this.lineHeight&&(r+=t*this.$size.scrollerHeight),this.session.setScrollTop(r+this.lineHeight+a-this.$size.scrollerHeight));var c=this.scrollLeft,h=2*this.layerConfig.characterWidth;o-h<c?((o-=h)<this.$padding+h&&(o=-this.scrollMargin.left),this.session.setScrollLeft(o)):(o+=h,c+this.$size.scrollerWidth<o+this.characterWidth?this.session.setScrollLeft(Math.round(o+this.characterWidth-this.$size.scrollerWidth)):c<=this.$padding&&o-c<this.characterWidth&&this.session.setScrollLeft(0))}},e.prototype.getScrollTop=function(){return this.session.getScrollTop()},e.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},e.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},e.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},e.prototype.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},e.prototype.alignCursor=function(e,t){“number”==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),i=this.$size.scrollerHeight-this.lineHeight,o=n.top-i*(t||0);return this.session.setScrollTop(o),o},e.prototype.$calcSteps=function(e,t){var n=0,i=this.STEPS,o=[],r=function(e,t,n){return n*(Math.pow(e-1,3)+1)+t};for(n=0;n<i;++n)o.push(r(n/this.STEPS,e,t-e));return o},e.prototype.scrollToLine=function(e,t,n,i){var o=this.$cursorLayer.getPixelPosition({row:e,column:0}).top;t&&(o-=this.$size.scrollerHeight/2);var r=this.scrollTop;this.session.setScrollTop(o),!1!==n&&this.animateScrolling(r,i)},e.prototype.animateScrolling=function(e,t){function n(){o.$timer=clearInterval(o.$timer),o.$scrollAnimation=null,o.$stopAnimation=!1,t&&t()}var i=this.scrollTop;if(this.$animatedScroll){var o=this;if(e!=i){if(this.$scrollAnimation){var r=this.$scrollAnimation.steps;if(r.length&&(e=r)==i)return}var s=o.$calcSteps(e,i);this.$scrollAnimation={from:e,to:i,steps:s},clearInterval(this.$timer),o.session.setScrollTop(s.shift()),o.session.$scrollTop=i,this.$timer=setInterval((function(){if(!o.$stopAnimation)return o.session?void(s.length?(o.session.setScrollTop(s.shift()),o.session.$scrollTop=i):null!=i?(o.session.$scrollTop=-1,o.session.setScrollTop(i),i=null):n()):clearInterval(o.$timer);n()}),10)}}},e.prototype.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},e.prototype.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},e.prototype.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(e)},e.prototype.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},e.prototype.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},e.prototype.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var i=this.$fontMetrics.transformCoordinates();e=i-this.gutterWidth-this.margin.left,t=i}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,r=o/this.characterWidth,s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),a=this.$blockCursor?Math.floor®:Math.round®;return{row:s,column:a,side:r-a>0?1:-1,offsetX:o}},e.prototype.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var i=this.$fontMetrics.transformCoordinates();e=i-this.gutterWidth-this.margin.left,t=i}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,r=o/this.characterWidth,s=this.$blockCursor?Math.floor®:Math.round®,a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(a,Math.max(s,0),o)},e.prototype.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=this.session.documentToScreenPosition(e,t),o=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e)?this.session.$bidiHandler.getPosLeft(i.column):Math.round(i.column*this.characterWidth)),r=i.row*this.lineHeight;return{pageX:n.left+o-this.scrollLeft,pageY:n.top+r-this.scrollTop}},e.prototype.visualizeFocus=function(){i.addCssClass(this.container,“ace_focus”)},e.prototype.visualizeBlur=function(){i.removeCssClass(this.container,“ace_focus”)},e.prototype.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),null==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(i.addCssClass(this.textarea,“ace_composition”),this.textarea.style.cssText=“”,this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display=“none”):e.markerId=this.session.addMarker(e.markerRange,“ace_composition_marker”,“text”)},e.prototype.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,“composition_placeholder”,t.row,t.column),this.$moveTextAreaToCursor()},e.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),i.removeCssClass(this.textarea,“ace_composition”),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=“”}},e.prototype.setGhostText=function(e,t){var n=this.session.selection.cursor,i=t||{row:n.row,column:n.column};this.removeGhostText();var o=e.split(“n”);if(this.addToken(o,“ghost_text”,i.row,i.column),this.$ghostText={text:e,position:{row:i.row,column:i.column}},o.length>1){this.$ghostTextWidget={text:o.slice(1).join(“n”),row:i.row,column:i.column,className:“ace_ghost_text”},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var r=this.$cursorLayer.getPixelPosition(i,!0),s=this.container.getBoundingClientRect().height,a=o.length*this.lineHeight;if(a<s-r.top)return;a<s?this.scrollBy(0,(o.length-1)*this.lineHeight):this.scrollToRow(i.row)}},e.prototype.removeGhostText=function(){if(this.$ghostText){var e=this.$ghostText.position;this.removeExtraToken(e.row,e.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},e.prototype.addToken=function(e,t,n,i){var o=this.session;o.bgTokenizer.lines=null;var r={type:t,value:e},s=o.getTokens(n);if(null!=i&&s.length)for(var a=0,l=0;l<s.length;l++){var c=s;if(i<=(a+=c.value.length)){var h=c.value.length-(a-i),u=c.value.slice(0,h),d=c.value.slice(h);s.splice(l,1,{type:c.type,value:u},r,{type:c.type,value:d});break}}else s.push®;this.updateLines(n,n)},e.prototype.removeExtraToken=function(e){this.session.bgTokenizer.lines=null,this.updateLines(e,e)},e.prototype.setTheme=function(e,t){function n(n){if(o.$themeId!=e)return t&&t();if(!n||!n.cssClass)throw new Error(“couldn’t load module ”e
“ or it didn’t call define”);n.$id&&(o.$themeId=n.$id),i.importCssString(n.cssText,n.cssClass,o.container),o.theme&&i.removeCssClass(o.container,o.theme.cssClass);var r=“padding”in n?n.padding:“padding”in(o.theme||{})?4:o.$padding;o.$padding&&r!=o.$padding&&o.setPadding®,o.$theme=n.cssClass,o.theme=n,i.addCssClass(o.container,n.cssClass),i.setCssClass(o.container,“ace_dark”,n.isDark),o.$size&&(o.$size.width=0,o.$updateSizeAsync()),o._dispatchEvent(“themeLoaded”,{theme:n}),t&&t()}var o=this;if(this.$themeId=e,o._dispatchEvent(“themeChange”,{theme:e}),e&&“string”!=typeof e)n(e);else{var s=e||this.$options.theme.initialValue;r.loadModule(,n)}},e.prototype.getTheme=function(){return this.$themeId},e.prototype.setStyle=function(e,t){i.setCssClass(this.container,e,!1!==t)},e.prototype.unsetStyle=function(e){i.removeCssClass(this.container,e)},e.prototype.setCursorStyle=function(e){i.setStyle(this.scroller.style,“cursor”,e)},e.prototype.setMouseCursor=function(e){i.setStyle(this.scroller.style,“cursor”,e)},e.prototype.attachToShadowRoot=function(){i.importCssString(v,“ace_editor.css”,this.container)},e.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent=“”,this.setOption(“useResizeObserver”,!1)},e.prototype.$updateCustomScrollbar=function(e){var t=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,!0===e?(this.scrollBarV=new p(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener(“scroll”,(function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)})),this.scrollBarH.addEventListener(“scroll”,(function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)})),this.$scrollDecorator=new y(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new u(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.addEventListener(“scroll”,(function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)})),this.scrollBarH.addEventListener(“scroll”,(function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)})))},e.prototype.$addResizeObserver=function(){if(window.ResizeObserver&&!this.$resizeObserver){var e=this;this.$resizeTimer=o.delayedCall((function(){e.destroyed||e.onResize()}),50),this.$resizeObserver=new window.ResizeObserver((function(t){var n=t.contentRect.width,i=t.contentRect.height;Math.abs(e.$size.width-n)>1||Math.abs(e.$size.height-i)>1?e.$resizeTimer.delay():e.$resizeTimer.cancel()})),this.$resizeObserver.observe(this.container)}},e}();w.prototype.CHANGE_CURSOR=1,w.prototype.CHANGE_MARKER=2,w.prototype.CHANGE_GUTTER=4,w.prototype.CHANGE_SCROLL=8,w.prototype.CHANGE_LINES=16,w.prototype.CHANGE_TEXT=32,w.prototype.CHANGE_SIZE=64,w.prototype.CHANGE_MARKER_BACK=128,w.prototype.CHANGE_MARKER_FRONT=256,w.prototype.CHANGE_FULL=512,w.prototype.CHANGE_H_SCROLL=1024,w.prototype.$changes=0,w.prototype.$padding=null,w.prototype.$frozen=!1,w.prototype.STEPS=8,n.implement(w.prototype,f),r.defineOptions(w.prototype,“renderer”,{useResizeObserver:{set:function(e){!e&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):e&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&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(e){“number”==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?“block”:“none”,this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(e){this.$gutterLayer.$useSvgGutterIcons=e},initialValue:!1},showFoldedAnnotations:{set:function(e){this.$gutterLayer.$showFoldedAnnotations=e},initialValue:!1},fadeFoldWidgets:{set:function(e){i.setCssClass(this.$gutter,“ace_fade-fold-widgets”,e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(e){1==this.$textLayer.setHighlightIndentGuides(e)?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){“number”==typeof e&&(e+=“px”),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(){this.updateFull()}},minLines:{set:function(){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(e){this.$updateCustomScrollbar(e)},initialValue:!1},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:“./theme/textmate”,handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),t.VirtualRenderer=w})),ace.define(“ace/worker/worker_client”,,(function(e,t){“use strict”;function n(e){var t=“importScripts(‘”+r.qualifyURL(e)+“’);”;try{return new Blob(,{type:“application/javascript”})}catch(e){var n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return n.append(t),n.getBlob(“application/javascript”)}}function i(e){if(“undefined”==typeof Worker)return{postMessage:function(){},terminate:function(){}};if(a.get(“loadWorkerFromBlob”)){var t=n(e),i=(window.URL||window.webkitURL).createObjectURL(t);return new Worker(i)}return new Worker(e)}var o=e(“../lib/oop”),r=e(“../lib/net”),s=e(“../lib/event_emitter”).EventEmitter,a=e(“../config”),l=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(){o.implement(this,s),this.$createWorkerFromOldConfig=function(t,n,o,r,s){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),a.get(“packaged”)||!e.toUrl)r=r||a.moduleUrl(n,“worker”);else{var l=this.$normalizePath;r=r||l(e.toUrl(“ace/worker/worker.js”,null,“_”));var c={};t.forEach((function(t){c=l(e.toUrl(t,null,“_”).replace(/(.js)?(?.*)?$/,“”))}))}return this.$worker=i®,s&&this.send(“importScripts”,s),this.$worker.postMessage({init:!0,tlns:c,module:n,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 n=this.callbacks;n&&(n(t.data),delete this.callbacks);break;case“error”:this.reportError(t.data);break;case“log”:window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return r.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,n){if(n){var i=this.callbackId++;this.callbacks=n,t.push(i)}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(e){console.error(e.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call(“setValue”,),e.on(“change”,this.changeListener,!0)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),“insert”==e.action?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.emit(“change”,{data:e}))}}).call(l.prototype);var c=function(e,t,n){var i=null,o=!1,r=Object.create(s),c=[],h=new l({messageBuffer:c,terminate:function(){},postMessage:function(e){c.push(e),i&&(o?setTimeout(u):u())}});h.setEmitSync=function(e){o=e};var u=function(){var e=c.shift();e.command?i.apply(i,e.args):e.event&&r._signal(e.event,e.data)};return r.postMessage=function(e){h.onMessage({data:e})},r.callback=function(e,t){this.postMessage({type:“call”,id:t,data:e})},r.emit=function(e,t){this.postMessage({type:“event”,name:e,data:t})},a.loadModule(,(function(e){for(i=new e®;c.length;)u()})),h};t.UIWorkerClient=c,t.WorkerClient=l,t.createWorker=i})),ace.define(“ace/placeholder”,,(function(e,t){“use strict”;var n=e(“./range”).Range,i=e(“./lib/event_emitter”).EventEmitter,o=e(“./lib/oop”),r=function(){function e(e,t,n,i,o,r){var s=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=o,this.othersClass=r,this.$onUpdate=this.onUpdate.bind(this),this.doc.on(“change”,this.$onUpdate,!0),this.$others=i,this.$onCursorChange=function(){setTimeout((function(){s.onCursorChange()}))},this.$pos=n;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(), e.selection.on(“changeCursor”,this.$onCursorChange)}return e.prototype.setup=function(){var e=this,t=this.doc,i=this.session;this.selectionBefore=i.selection.toJSON(),i.selection.inMultiSelectMode&&i.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var o=this.pos;o.$insertRight=!0,o.detach(),o.markerId=i.addMarker(new n(o.row,o.column,o.row,o.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var i=t.createAnchor(n.row,n.column);i.$insertRight=!0,i.detach(),e.others.push(i)})),i.setUndoSelect(!1)},e.prototype.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(i){i.markerId=e.addMarker(new n(i.row,i.column,i.row,i.column+t.length),t.othersClass,null,!1)}))}},e.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others.markerId)}},e.prototype.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var i=“insert”===e.action?t.end.column-t.start.column:t.start.column-t.end.column,o=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,r=t.start.column-this.pos.column;if(this.updateAnchors(e),o&&(this.length+=i),o&&!this.session.$fromUndo)if(“insert”===e.action)for(var s=this.others.length-1;s>=0;s–){var a={row:(l=this.others).row,column:l.column+r};this.doc.insertMergedLines(a,e.lines)}else if(“remove”===e.action)for(s=this.others.length-1;s>=0;s–){var l;a={row:(l=this.others).row,column:l.column+r};this.doc.remove(new n(a.row,a.column,a.row,a.column-i))}this.$updating=!1,this.updateMarkers()}},e.prototype.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t–;)this.others.onChange(e);this.updateMarkers()},e.prototype.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,i=function(i,o){t.removeMarker(i.markerId),i.markerId=t.addMarker(new n(i.row,i.column,i.row,i.column+e.length),o,null,!1)};i(this.pos,this.mainClass);for(var o=this.others.length;o–;)i(this.others,this.othersClass)}},e.prototype.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit(“cursorEnter”,e)):(this.hideOtherMarkers(),this._emit(“cursorLeave”,e))}},e.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},e.prototype.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},e}();o.implement(r.prototype,i),t.PlaceHolder=r})),ace.define(“ace/mouse/multi_select_handler”,,(function(e,t){function n(e,t){return e.row==t.row&&e.column==t.column}function i(e){var t=e.domEvent,i=t.altKey,s=t.shiftKey,a=t.ctrlKey,l=e.getAccelKey(),c=e.getButton();if(a&&r.isMac&&(c=t.button),e.editor.inMultiSelectMode&&2==c)e.editor.textInput.onContextMenu(e.domEvent);else if(a||i||l){if(0===c){var h,u=e.editor,d=u.selection,p=u.inMultiSelectMode,g=e.getDocumentPosition(),m=d.getCursor(),f=e.inSelection()||d.isEmpty()&&n(g,m),v=e.x,y=e.y,b=function(e){v=e.clientX,y=e.clientY},w=u.session,x=u.renderer.pixelToScreenCoordinates(v,y),k=x;if(u.$mouseHandler.$enableJumpToDef)a&&i||l&&i?h=s?“block”:“add”:i&&u.$blockSelectEnabled&&(h=“block”);else if(l&&!i){if(h=“add”,!p&&s)return}else i&&u.$blockSelectEnabled&&(h=“block”);if(h&&r.isMac&&t.ctrlKey&&u.$mouseHandler.cancelContextMenu(),“add”==h){if(!p&&f)return;if(!p){var C=d.toOrientedRange();u.addSelectionMarker©}var $=d.rangeList.rangeAtPoint(g);u.inVirtualSelectionMode=!0,s&&($=null,C=d.ranges||C,u.removeSelectionMarker©),u.once(“mouseup”,(function(){var e=d.toOrientedRange();$&&e.isEmpty()&&n($.cursor,e.cursor)?d.substractPoint(e.cursor):(s?d.substractPoint(C.cursor):C&&(u.removeSelectionMarker©,d.addRange©),d.addRange(e)),u.inVirtualSelectionMode=!1}))}else if(“block”==h){var S;e.stop(),u.inVirtualSelectionMode=!0;var A=[],L=function(){var e=u.renderer.pixelToScreenCoordinates(v,y),t=w.screenToDocumentPosition(e.row,e.column,e.offsetX);n(k,e)&&n(t,d.lead)||(k=e,u.selection.moveToPosition(t),u.renderer.scrollCursorIntoView(),u.removeSelectionMarkers(A),A=d.rectangularRangeBlock(k,x),u.$mouseHandler.$clickSelection&&1==A.length&&A.isEmpty()&&(A=u.$mouseHandler.$clickSelection.clone()),A.forEach(u.addSelectionMarker,u),u.updateSelectionMarkers())};p&&!l?d.toSingleRange():!p&&l&&(S=d.toOrientedRange(),u.addSelectionMarker(S)),s?x=w.documentToScreenPosition(d.lead):d.moveToPosition(g),k={row:-1,column:-1};var M=function(){L(),clearInterval(T),u.removeSelectionMarkers(A),A.length||(A=),S&&(u.removeSelectionMarker(S),d.toSingleRange(S));for(var e=0;e<A.length;e++)d.addRange(A);u.inVirtualSelectionMode=!1,u.$mouseHandler.$clickSelection=null},_=L;o.capture(u.container,b,M);var T=setInterval((function(){_()}),20);return e.preventDefault()}}}else 0===c&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}var o=e(“../lib/event”),r=e(“../lib/useragent”);t.onMouseDown=i})),ace.define(“ace/commands/multi_select_commands”,,(function(e,t){t.defaultCommands=[{name:“addCursorAbove”,description:“Add cursor above”,exec:function(e){e.selectMoreLines(-1)},bindKey:{win:“Ctrl-Alt-Up”,mac:“Ctrl-Alt-Up”},scrollIntoView:“cursor”,readOnly:!0},{name:“addCursorBelow”,description:“Add cursor below”,exec:function(e){e.selectMoreLines(1)},bindKey:{win:“Ctrl-Alt-Down”,mac:“Ctrl-Alt-Down”},scrollIntoView:“cursor”,readOnly:!0},{name:“addCursorAboveSkipCurrent”,description:“Add cursor above (skip current)”,exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:“Ctrl-Alt-Shift-Up”,mac:“Ctrl-Alt-Shift-Up”},scrollIntoView:“cursor”,readOnly:!0},{name:“addCursorBelowSkipCurrent”,description:“Add cursor below (skip current)”,exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:“Ctrl-Alt-Shift-Down”,mac:“Ctrl-Alt-Shift-Down”},scrollIntoView:“cursor”,readOnly:!0},{name:“selectMoreBefore”,description:“Select more before”,exec:function(e){e.selectMore(-1)},bindKey:{win:“Ctrl-Alt-Left”,mac:“Ctrl-Alt-Left”},scrollIntoView:“cursor”,readOnly:!0},{name:“selectMoreAfter”,description:“Select more after”,exec:function(e){e.selectMore(1)},bindKey:{win:“Ctrl-Alt-Right”,mac:“Ctrl-Alt-Right”},scrollIntoView:“cursor”,readOnly:!0},{name:“selectNextBefore”,description:“Select next before”,exec:function(e){e.selectMore(-1,!0)},bindKey:{win:“Ctrl-Alt-Shift-Left”,mac:“Ctrl-Alt-Shift-Left”},scrollIntoView:“cursor”,readOnly:!0},{name:“selectNextAfter”,description:“Select next after”,exec:function(e){e.selectMore(1,!0)},bindKey:{win:“Ctrl-Alt-Shift-Right”,mac:“Ctrl-Alt-Shift-Right”},scrollIntoView:“cursor”,readOnly:!0},{name:“toggleSplitSelectionIntoLines”,description:“Split selection into lines”,exec:function(e){e.multiSelect.rangeCount>1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:“Ctrl-Alt-L”,mac:“Ctrl-Alt-L”},readOnly:!0},{name:“splitSelectionIntoLines”,description:“Split into lines”,exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:“alignCursors”,description:“Align cursors”,exec:function(e){e.alignCursors()},bindKey:{win:“Ctrl-Alt-A”,mac:“Ctrl-Alt-A”},scrollIntoView:“cursor”},{name:“findAll”,description:“Find all”,exec:function(e){e.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(e){e.exitMultiSelectMode()},scrollIntoView:“cursor”,readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var n=e(“../keyboard/hash_handler”).HashHandler;t.keyboardHandler=new n(t.multiSelectCommands)})),ace.define(“ace/multi_select”,,(function(e,t){function n(e,t,n){return p.$options.wrap=!0,p.$options.needle=t,p.$options.backwards=-1==n,p.find(e)}function i(e,t){return e.row==t.row&&e.column==t.column}function o(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on(“changeSession”,e.$multiselectOnSessionChange),e.on(“mousedown”,c),e.commands.addCommands(d.defaultCommands),r(e))}function r(e){function t(){i&&(e.renderer.setMouseCursor(“”),i=!1)}if(e.textInput){var n=e.textInput.getElement(),i=!1;h.addListener(n,“keydown”,(function(n){var o=18==n.keyCode&&!(n.ctrlKey||n.shiftKey||n.metaKey);e.$blockSelectEnabled&&o?i||(e.renderer.setMouseCursor(“crosshair”),i=!0):i&&t()}),e),h.addListener(n,“keyup”,t,e),h.addListener(n,“blur”,t,e)}}var s=e(“./range_list”).RangeList,a=e(“./range”).Range,l=e(“./selection”).Selection,c=e(“./mouse/multi_select_handler”).onMouseDown,h=e(“./lib/event”),u=e(“./lib/lang”),d=e(“./commands/multi_select_commands”);t.commands=d.defaultCommands.concat(d.multiSelectCommands);var p=new(0,e(“./search”).Search),g=e(“./edit_session”).EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(g.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var i=this.rangeList.add(e);return this.$onAddRange(e),i.length&&this.$onRemoveRange(i),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal(“multiSelect”),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges;var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal(“addRange”,{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n–;){var i=this.ranges.indexOf(e);this.ranges.splice(i,1)}this._signal(“removeRange”,{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal(“singleSelect”),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges)&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new s,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:,t=[],n=0;n<e.length;n++){var i=e,o=i.start.row,r=i.end.row;if(o===r)t.push(i.clone());else{for(t.push(new a(o,i.start.column,o,this.session.getLine(o).length));++o<r;)t.push(this.getLineRange(o,!0));t.push(new a(r,0,r,i.end.column))}0!=n||this.isBackwards()||(t=t.reverse())}this.toSingleRange();for(n=t.length;n–;)this.addRange(t)},this.joinSelections=function(){var e=this.rangeList.ranges,t=e,n=a.fromPoints(e.start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e,n=a.fromPoints(e.start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var i=this.session.documentToScreenPosition(this.cursor),o=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(i,o).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var o=[],r=e.column<t.column;if®var s=e.column,l=t.column,c=e.offsetX,h=t.offsetX;else s=t.column,l=e.column,c=t.offsetX,h=e.offsetX;var u,d=e.row<t.row;if(d)var p=e.row,g=t.row;else p=t.row,g=e.row;s<0&&(s=0),p<0&&(p=0),p==g&&(n=!0);for(var m=p;m<=g;m++){var f=a.fromPoints(this.session.screenToDocumentPosition(m,s,c),this.session.screenToDocumentPosition(m,l,h));if(f.isEmpty()){if(u&&i(f.end,u))break;u=f.end}f.cursor=r?f.start:f.end,o.push(f)}if(d&&o.reverse(),!n){for(var v=o.length-1;o.isEmpty()&&v>0;)v–;if(v>0)for(var y=0;o.isEmpty();)y++;for(var b=v;b>=y;b–)o.isEmpty()&&o.splice(b,1)}return o}}.call(l.prototype);var m=e(“./editor”).Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,“ace_selection”,t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n–;){var i=e;if(i.marker){this.session.removeMarker(i.marker);var o=t.indexOf(i);-1!=o&&t.splice(o,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle(“ace_multiselect”),this.keyBinding.addKeyboardHandler(d.keyboardHandler),this.commands.setDefaultHandler(“exec”,this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle(“ace_multiselect”),this.keyBinding.removeKeyboardHandler(d.keyboardHandler),this.commands.removeDefaultHandler(“exec”,this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit(“changeSelection”))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)“forEach”==t.multiSelectAction?i=n.forEachSelection(t,e.args):“forEachLine”==t.multiSelectAction?i=n.forEachSelection(t,e.args,!0):“single”==t.multiSelectAction?(n.exitMultiSelectMode(),i=t.exec(n,e.args||{})):i=t.multiSelectAction(n,e.args||{});else{var i=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return i}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var i,o=n&&n.keepOrder,r=1==n||n&&n.$byLines,s=this.session,a=this.selection,c=a.rangeList,h=(o?a:c).ranges;if(!h.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var u=a._eventRegistry;a._eventRegistry={};var d=new l(s);this.inVirtualSelectionMode=!0;for(var p=h.length;p–;){if®for(;p>0&&h.start.row==h.end.row;)p–;d.fromOrientedRange(h),d.index=p,this.selection=s.selection=d;var g=e.exec?e.exec(this,t||{}):e(this,t||{});i||void 0===g||(i=g),d.toOrientedRange(h)}d.detach(),this.selection=s.selection=a,this.inVirtualSelectionMode=!1,a._eventRegistry=u,a.mergeOverlappingRanges(),a.ranges&&a.fromOrientedRange(a.ranges);var m=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),m&&m.from==m.to&&this.renderer.animateScrolling(m.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e=“”;if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],i=0;i<t.length;i++)n.push(this.session.getTextRange(t));var o=this.session.getDocument().getNewLineCharacter();(e=n.join(o)).length==(n.length-1)*o.length&&(e=“”)}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges;if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var i=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;i.row!=t.row||this.session.$clipPositionToDocument(i.row,i.column).column!=t.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(e,t,n){if((t=t||{}).needle=e||t.needle,null==t.needle){var i=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(i)}this.$search.set(t);var o=this.$search.findAll(this.session);if(!o.length)return 0;var r=this.multiSelect;n||r.toSingleRange(o);for(var s=o.length;s–;)r.addRange(o,!0);return i&&r.rangeList.rangeAtPoint(i.start)&&r.addRange(i,!0),o.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),i=n.cursor==n.end,o=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(o.column=this.selection.$desiredColumn);var r,s=this.session.screenToDocumentPosition(o.row+e,o.column);if(n.isEmpty())c=s;else var l=this.session.documentToScreenPosition(i?n.end:n.start),c=this.session.screenToDocumentPosition(l.row+e,l.column);i?(r=a.fromPoints(s,c)).cursor=r.start:(r=a.fromPoints(c,s)).cursor=r.end;if(r.desiredColumn=o.column,this.selection.inMultiSelectMode){if(t)var h=n.cursor}else this.selection.addRange(n);this.selection.addRange®,h&&this.selection.substractPoint(h)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,i=n.ranges,o=i.length;o–;){if((a=i).isEmpty()){var r=t.getWordRange(a.start.row,a.start.column);a.start.row=r.start.row,a.start.column=r.start.column,a.end.row=r.end.row,a.end.column=r.end.column}}n.mergeOverlappingRanges();var s=[];for(o=i.length;o–;){var a=i;s.unshift(t.getTextRange(a))}e<0?s.unshift(s.pop()):s.push(s.shift());for(o=i.length;o–;){var l=(a=i).clone();t.replace(a,s),a.start.row=l.start.row,a.start.column=l.start.column}n.fromOrientedRange(n.ranges)},this.selectMore=function(e,t,i){var o=this.session,r=o.multiSelect.toOrientedRange();if(!r.isEmpty()||((r=o.getWordRange(r.start.row,r.start.column)).cursor=-1==e?r.start:r.end,this.multiSelect.addRange®,!i)){var s=o.getTextRange®,a=n(o,s,e);a&&(a.cursor=-1==e?a.start:a.end,this.session.unfold(a),this.multiSelect.addRange(a),this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(r.cursor)}},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,i=-1,o=n.filter((function(e){if(e.cursor.row==i)return!0;i=e.cursor.row}));if(n.length&&o.length!=n.length-1){o.forEach((function(e){t.substractPoint(e.cursor)}));var r=0,s=1/0,l=n.map((function(t){var n=t.cursor,i=e.getLine(n.row).substr(n.column).search(/S/g);return-1==i&&(i=0),n.column>r&&(r=n.column),i<s&&(s=i),i}));n.forEach((function(t,n){var i=t.cursor,o=r-i.column,c=l-s;o>c?e.insert(i,u.stringRepeat(“ ”,o-c)):e.remove(new a(i.row,i.column,i.row,i.column-o+c)),t.start.column=t.end.column=r,t.start.row=t.end.row=i.row,t.cursor=t.end})),t.fromOrientedRange(n),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var c=this.selection.getRange(),h=c.start.row,d=c.end.row,p=h==d;if(p){var g,m=this.session.getLength();do{g=this.session.getLine(d)}while(//.test(g)&&++d<m);do{g=this.session.getLine(h)}while(//.test(g)&&–h>0);h<0&&(h=0),d>=m&&(d=m-1)}var f=this.session.removeFullLines(h,d);f=this.$reAlignText(f,p),this.session.insert({row:h,column:0},f.join(“n”)+“n”),p||(c.start.column=0,c.end.column=f.length),this.selection.setRange©}},this.$reAlignText=function(e,t){function n(e){return u.stringRepeat(“ ”,e)}function i(e){return e?n(s)+e+n(a-e.length+l)+e.replace(/^()s+/,“$1 ”):e}function o(e){return e?n(s+a-e.length)+e+n(l)+e.replace(/^()s+/,“$1 ”):e}function r(e){return e?n(s)+e+n(l)+e.replace(/^()s+/,“$1 ”):e}var s,a,l,c=!0,h=!0;return e.map((function(e){var t=e.match(/(s*)(.*?)(s*)(.*)/);return t?null==s?(s=t.length,a=t.length,l=t.length,t):(s+a+l!=t.length+t.length+t.length&&(h=!1),s!=t.length&&(c=!1),s>t.length&&(s=t.length),a<t.length&&(a=t.length),l>t.length&&(l=t.length),t):})).map(t?i:c?h?o:i:r)}}).call(m.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off(“addRange”,this.$onAddRange),n.multiSelect.off(“removeRange”,this.$onRemoveRange),n.multiSelect.off(“multiSelect”,this.$onMultiSelect),n.multiSelect.off(“singleSelect”,this.$onSingleSelect),n.multiSelect.lead.off(“change”,this.$checkMultiselectChange),n.multiSelect.anchor.off(“change”,this.$checkMultiselectChange)),t&&(t.multiSelect.on(“addRange”,this.$onAddRange),t.multiSelect.on(“removeRange”,this.$onRemoveRange),t.multiSelect.on(“multiSelect”,this.$onMultiSelect),t.multiSelect.on(“singleSelect”,this.$onSingleSelect),t.multiSelect.lead.on(“change”,this.$checkMultiselectChange),t.multiSelect.anchor.on(“change”,this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=o,e(“./config”).defineOptions(m.prototype,“editor”,{enableMultiselect:{set:function(e){o(this),e?this.on(“mousedown”,c):this.off(“mousedown”,c)},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define(“ace/mode/folding/fold_mode”,,(function(e,t){“use strict”;var n=e(“../../range”).Range,i=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?“start”:“markbeginend”==t&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?“end”:“”},this.getFoldWidgetRange=function(){return null},this.indentationBlock=function(e,t,i){var o=/S/,r=e.getLine(t),s=r.search(o);if(-1!=s){for(var a=i||r.length,l=e.getLength(),c=t,h=t;++t<l;){var u=e.getLine(t).search(o);if(-1!=u){if(u<=s){var d=e.getTokenAt(t,0);if(!d||“string”!==d.type)break}h=t}}if(h>c){var p=e.getLine(h).length;return new n(c,a,h,p)}}},this.openingBracketBlock=function(e,t,i,o,r){var s={row:i,column:o+1},a=e.$findClosingBracket(t,s,r);if(a){var l=e.foldWidgets;return null==l&&(l=e.getFoldWidget(a.row)),“start”==l&&a.row>s.row&&(a.row–,a.column=e.getLine(a.row).length),n.fromPoints(s,a)}},this.closingBracketBlock=function(e,t,i,o){var r={row:i,column:o},s=e.$findOpeningBracket(t,r);if(s)return s.column++,r.column–,n.fromPoints(s,r)}}).call(i.prototype)})),ace.define(“ace/ext/error_marker”,,(function(e,t){“use strict”;function n(e,t,n){for(var i=0,o=e.length-1;i<=o;){var r=i+o>>1,s=n(t,e);if(s>0)i=r+1;else{if(!(s<0))return r;o=r-1}}return-(i+1)}function i(e,t,i){var o=e.getAnnotations().sort(s.comparePoints);if(o.length){var r=n(o,{row:t,column:-1},s.comparePoints);r<0&&(r=-r-1),r>=o.length?r=i>0?0:o.length-1:0===r&&i<0&&(r=o.length-1);var a=o;if(a&&i){if(a.row===t){do{a=o}while(a&&a.row===t);if(!a)return o.slice()}var l=[];t=a.row;do{l(a),a=o}while(a&&a.row==t);return l.length&&l}}}var o=e(“../line_widgets”).LineWidgets,r=e(“../lib/dom”),s=e(“../range”).Range,a=e(“../config”).nls;t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new o(n),n.widgetManager.attach(e));var s=e.getCursorPosition(),l=s.row,c=n.widgetManager.getWidgetsAtRow(l).filter((function(e){return“errorMarker”==e.type}))[0];c?c.destroy():l-=t;var h,u=i(n,l,t);if(u){var d=u;s.column=(d.pos&&“number”!=typeof d.column?d.pos.sc:d.column)||0,s.row=d.row,h=e.renderer.$gutterLayer.$annotations}else{if©return;h={text:[a(“error-marker.good-state”,“Looks good!”)],className:“ace_ok”}}e.session.unfold(s.row),e.selection.moveToPosition(s);var p={row:s.row,fixedWidth:!0,coverGutter:!0,el:r.createElement(“div”),type:“errorMarker”},g=p.el.appendChild(r.createElement(“div”)),m=p.el.appendChild(r.createElement(“div”));m.className=“error_widget_arrow ”+h.className;var f=e.renderer.$cursorLayer.getPixelPosition(s).left;m.style.left=f+e.renderer.gutterWidth-5+“px”,p.el.className=“error_widget_wrapper”,g.className=“error_widget ”+h.className,g.innerHTML=h.text.join(“
”),g.appendChild(r.createElement(“div”));var v=function(e,t,n){if(0===t&&(“esc”===n||“return”===n))return p.destroy(),{command:“null”}};p.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(v),n.widgetManager.removeLineWidget(p),e.off(“changeSelection”,p.destroy),e.off(“changeSession”,p.destroy),e.off(“mouseup”,p.destroy),e.off(“change”,p.destroy))},e.keyBinding.addKeyboardHandler(v),e.on(“changeSelection”,p.destroy),e.on(“changeSession”,p.destroy),e.on(“mouseup”,p.destroy),e.on(“change”,p.destroy),e.session.widgetManager.addLineWidget(p),p.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:p.el.offsetHeight})},r.importCssString(“n .error_widget_wrapper {n background: inherit;n color: inherit;n border:nonen }n .error_widget {n border-top: solid 2px;n border-bottom: solid 2px;n margin: 5px 0;n padding: 10px 40px;n white-space: pre-wrap;n }n .error_widget.ace_error, .error_widget_arrow.ace_error{n border-color: ff5a5an }n .error_widget.ace_warning, .error_widget_arrow.ace_warning{n border-color: F1D817n }n .error_widget.ace_info, .error_widget_arrow.ace_info{n border-color: #5a5a5an }n .error_widget.ace_ok, .error_widget_arrow.ace_ok{n border-color: #5aaa5an }n .error_widget_arrow {n position: absolute;n border: solid 5px;n border-top-color: transparent!important;n border-right-color: transparent!important;n border-left-color: transparent!important;n top: -5px;n }n”,“error_marker.css”,!1)})),ace.define(“ace/ace”,,(function(e,t){“use strict”;e(“./loader_build”)(t);var n=e(“./lib/dom”),i=e(“./range”).Range,o=e(“./editor”).Editor,r=e(“./edit_session”).EditSession,s=e(“./undomanager”).UndoManager,a=e(“./virtual_renderer”).VirtualRenderer;e(“./worker/worker_client”),e(“./keyboard/hash_handler”),e(“./placeholder”),e(“./multi_select”),e(“./mode/folding/fold_mode”),e(“./theme/textmate”),e(“./ext/error_marker”),t.config=e(“./config”),t.edit=function(e,i){if(“string”==typeof e){var r=e;if(!(e=document.getElementById®))throw new Error(“ace.edit can’t find div #”+r)}if(e&&e.env&&e.env.editor instanceof o)return e.env.editor;var s=“”;if(e&&/input|textarea/i.test(e.tagName)){var l=e;s=l.value,e=n.createElement(“pre”),l.parentNode.replaceChild(e,l)}else e&&(s=e.textContent,e.innerHTML=“”);var c=t.createEditSession(s),h=new o(new a(e),c,i),u={document:c,editor:h,onResize:h.resize.bind(h,null)};return l&&(u.textarea=l),h.on(“destroy”,(function(){u.editor.container.env=null})),h.container.env=h.env=u,h},t.createEditSession=function(e,t){var n=new r(e,t);return n.setUndoManager(new s),n},t.Range=i,t.Editor=o,t.EditSession=r,t.UndoManager=s,t.VirtualRenderer=a,t.version=t.config.version})),ace.require(,(function(e){e&&(e.config.init(!0),e.define=ace.define);var t=function(){return this}();for(var n in t||“undefined”==typeof window||(t=window),t||“undefined”==typeof self||(t=self),t.ace||(t.ace=e),e)e.hasOwnProperty(n)&&(t.ace=e);t.ace.default=t.ace,“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=t.ace)})),ace.define(“ace/mode/css_highlight_rules”,,(function(e,t){“use strict”;var n=e(“../lib/oop”),i=(e(“../lib/lang”), e(“./text_highlight_rules”).TextHighlightRules),o=t.supportType=“align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index”,r=t.supportFunction=“rgb|rgba|url|attr|counter|counters”,s=t.supportConstant=“absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom”,a=t.supportConstantColor=“aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen”,l=t.supportConstantFonts=“arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace”,c=t.numRe=“\-?(?:(?:+(?:\.[0-9]+)?)|(?:\.+))”,h=t.pseudoElements=“(\:+)\b(after|before|first-letter|first-line|moz-selection|selection)\b”,u=t.pseudoClasses=“(:)\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\b”,d=function(){var e=this.createKeywordMapper({“support.function”:r,“support.constant”:s,“support.type”:o,“support.constant.color”:a,“support.constant.fonts”:l},“text”,!0);this.$rules={start:[{include:},{token:“paren.lparen”,regex:“\{”,next:“ruleset”},{token:“paren.rparen”,regex:“\}”},{token:“string”,regex:“@(?!viewport)”,next:“media”},{token:“keyword”,regex:“#+”},{token:“keyword”,regex:“%”},{token:“variable”,regex:“\.+”},{token:“string”,regex:“:+”},{token:“constant.numeric”,regex:c},{token:“constant”,regex:“+”},{caseInsensitive:!0}],media:[{include:},{token:“paren.lparen”,regex:“\{”,next:“start”},{token:“paren.rparen”,regex:“\}”,next:“start”},{token:“string”,regex:“;”,next:“start”},{token:“keyword”,regex:“(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)”}],comments:[{token:“comment”,regex:“\/*”,push:}],ruleset:[{regex:“-(webkit|ms|moz|o)-”,token:“text”},{token:“punctuation.operator”,regex:“”},{token:“paren.rparen”,regex:“\}”,next:“start”},{include:},{token:,regex:“(”c
“)(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)”},{token:“constant.numeric”,regex:c},{token:“constant.numeric”,regex:“#{6}”},{token:“constant.numeric”,regex:“#{3}”},{token:,regex:h},{token:,regex:u},{include:“url”},{token:e,regex:“\-?[a-zA-Z0-9_\-]*”},{caseInsensitive:!0}],url:[{token:“support.function”,regex:“(?:url(:?-prefix)?|domain|regexp)\(”,push:}],strings:[{token:“string.start”,regex:“‘”,push:},{“string.start”,regex:’“‘,push:}],escapes:[{token:”constant.language.escape“,regex:/\({1,6}|[^a-fA-Fd])/}]},this.normalizeRules()};n.inherits(d,i),t.CssHighlightRules=d})),ace.define(”ace/mode/jsdoc_comment_highlight_rules“,,(function(e,t){”use strict“;var n=e(”../lib/oop“),i=e(”./text_highlight_rules“).TextHighlightRules,o=function(){this.$rules={start:[{token:,regex:”(@(?:param|member|typedef|property|namespace|var|const|callback))(\s*)({)“,push:[{token:”lparen.doc“,regex:”{“,push:},{token:,regex:/(})(s*)(?:([w=:/.]+)|(?:([)([w=:/.]+)(])))/,next:”pop“},{token:”rparen.doc“,regex:”}|(?=$)“,next:”pop“},{include:”doc-syntax“},{defaultToken:”text.doc“}]},{token:,regex:”(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\s*)({)“,push:[{token:”lparen.doc“,regex:”{“,push:},{token:”rparen.doc“,regex:”}|(?=$)“,next:”pop“},{include:”doc-syntax“},{defaultToken:”text.doc“}]},{token:,regex:’(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\s+)(\w*)?‘},{token:,regex:”(@method)(\s+)(\w*)“},{token:”comment.doc.tag“,regex:”@access\s+(?:private|public|protected)“},{token:”comment.doc.tag“,regex:”@kind\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)“},{token:”comment.doc.tag“,regex:”@\w+(?=\s|$)“},o.getTagRule(),{defaultToken:”comment.doc“,caseInsensitive:!0}],”doc-syntax“:[{token:”operator.doc“,regex://},{token:”paren.doc“,regex:/[]/}]},this.normalizeRules()};n.inherits(o,i),o.getTagRule=function(){return{token:”comment.doc.tag.storage.type“,regex:”\b(?:TODO|FIXME|XXX|HACK)\b“}},o.getStartRule=function(e){return{token:”comment.doc“,regex:”\/*(?=*)“,next:e}},o.getEndRule=function(e){return{token:”comment.doc“,regex:”*\/“,next:e}},t.JsDocCommentHighlightRules=o})),ace.define(”ace/mode/javascript_highlight_rules“,,(function(e,t){”use strict“;function n(){var e=a.replace(”\d“,”\d\-“),t={onMatch:function(e,t,n){var i=”/“==e.charAt(1)?2:1;return 1==i?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n++):2==i&&t==this.nextState&&(n–,(!n||n<0)&&(n.shift(),n.shift())),},regex:”</?“+e,next:”jsxAttributes“,nextState:”jsx“};this.$rules.start.unshift(t);var n={regex:”{“,token:”paren.quasi.start“,push:”start“};this.$rules.jsx=,this.$rules.jsxAttributes=[{token:”meta.tag.punctuation.tag-close.xml“,regex:”/?>“,onMatch:function(e,t,n){return t==n&&n.shift(),2==e.length&&(n==this.nextState&&n–,(!n||n<0)&&n.splice(0,2)),this.next=n||”start“,},nextState:”jsx“},n,i(”jsxAttributes“),{token:”entity.other.attribute-name.xml“,regex:e},{token:”keyword.operator.attribute-equals.xml“,regex:”=“},{token:”text.tag-whitespace.xml“,regex:”\s+“},{”string.attribute-value.xml“,regex:”’“,stateName:”jsx_attr_q“,push:},{”string.attribute-value.xml“,regex:‘”’,stateName:“jsx_attr_qq”,push:},t],this.$rules.reference=[{token:“constant.language.escape.reference.xml”,regex:“(?:&#+;)|(?:&#x+;)|(?:&[a-zA-Z0-9_:\.-]+;)”}]}function i(e){return[{token:“comment”,regex://*/,next:},{“comment”,regex:“\/\/”,next:}]}var o=e(“../lib/oop”),r=e(“./jsdoc_comment_highlight_rules”).JsDocCommentHighlightRules,s=e(“./text_highlight_rules”).TextHighlightRules,a=“[a-zA-Z\d\$_xa1-uffff]*”,l=function(e){var t=this.createKeywordMapper({“variable.language”:“Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document”,keyword:“const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor”,“storage.type”:“const|let|var|function”,“constant.language”:“null|Infinity|NaN|undefined”,“support.function”:“alert”,“constant.language.boolean”:“true|false”},“identifier”),o=“case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void”,s=“\\(?:x{2}|u{4}|u{[0-9a-fA-F]{1,6}}|[0-2]{0,2}|3[0-7]?|[0-7]?|.)”;this.$rules={no_regex:[r.getStartRule(“doc-start”),i(“no_regex”),{token:“string”,regex:“‘(?=.)”,next:“qstring”},{token:“string”,regex:’“(?=.)‘,next:”qqstring“},{token:”constant.numeric“,regex:/0(?:[0-9a-fA-F]+|[0-7]+|[01]+)b/},{token:”constant.numeric“,regex:/(?:dd*(?:.d*)?|.d+)(?:[+-]?d+b)?/},{token:,regex:”(“a
”)(\.)(prototype)(\.)(“a
”)(\s*)(=)“,next:”function_arguments“},{token:,regex:”(“a
”)(\.)(“a
”)(\s*)(=)(\s*)(function*?)(\s*)(\()“,next:”function_arguments“},{token:,regex:”(“a
”)(\s*)(=)(\s*)(function*?)(\s*)(\()“,next:”function_arguments“},{token:,regex:”(“a
”)(\.)(“a
”)(\s*)(=)(\s*)(function*?)(\s+)(\w+)(\s*)(\()“,next:”function_arguments“},{token:,regex:”(function*?)(\s+)(“a
”)(\s*)(\()“,next:”function_arguments“},{token:,regex:”(“a
”)(\s*)(:)(\s*)(function*?)(\s*)(\()“,next:”function_arguments“},{token:,regex:”(:)(\s*)(function*?)(\s*)(\()“,next:”function_arguments“},{token:”keyword“,regex:”from(?=\s*(’|"))“},{token:”keyword“,regex:”(?:“o
”)\b“,next:”start“},{token:”support.constant“,regex:/thatb/},{token:,regex:/(console)(.)(warn|info|log|error|debug|time|trace|timeEnd|assert)b/},{token:t,regex:a},{token:”punctuation.operator“,regex:/(?![.])/,next:”property“},{token:”storage.type“,regex:/=>/,next:”start“},{token:”keyword.operator“,regex:/–|++|.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&||||?:|[!$%&*+-~/^]=?/,next:”start“},{token:”punctuation.operator“,regex://,next:”start“},{token:”paren.lparen“,regex:/[/,next:”start“},{token:”paren.rparen“,regex:/)}]/},{token:”comment“,regex:/^#!.*$/}],property:[{token:”text“,regex:”\s+“},{token:,regex:”(“a
”)(\.)(“a
”)(\s*)(=)(\s*)(function*?)(?:(\s+)(\w+))?(\s*)(\()“,next:”function_arguments“},{token:”punctuation.operator“,regex:/(?![.])/},{token:”support.function“,regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))b(?=()/},{token:”support.function.dom“,regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)b(?=()/},{token:”support.constant“,regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))b/},{token:”identifier“,regex:a},{regex:”“,token:”empty“,next:”no_regex“}],start:,regex:[{token:”regexp.keyword.operator“,regex:”\\(?:u{4}|x{2}|.)“},{token:”string.regexp“,regex:”/*“,next:”no_regex“},{token:”invalid“,regex:/d+b,?d*|[+*$^?][+*]|[$^][?]|?{3,}/},{token:”constant.language.escape“,regex:/(?|)|{d+b,?d*}|[+*]?|[()$^+*?.]/},{token:”constant.language.delimiter“,regex:/|/},{token:”constant.language.escape“,regex:/,regex_character_class:[{token:”regexp.charclass.keyword.operator“,regex:”\\(?:u{4}|x{2}|.)“},{token:”constant.language.escape“,regex:”]“,next:”regex“},{token:”constant.language.escape“,regex:”-“},{token:”empty“,regex:”$“,next:”no_regex“},{defaultToken:”string.regexp.charachterclass“}],default_parameter:[{token:”string“,regex:”‘(?=.)“,push:},{”string“,regex:’”(?=.)‘,push:},{token:“constant.language”,regex:“null|Infinity|NaN|undefined”},{token:“constant.numeric”,regex:/0(?:[0-9a-fA-F]+|[0-7]+|[01]+)b/},{token:“constant.numeric”,regex:/(?:dd*(?:.d*)?|.d+)(?:[+-]?d+b)?/},{token:“punctuation.operator”,regex:“,”,next:“function_arguments”},{token:“text”,regex:“\s+”},{token:“punctuation.operator”,regex:“$”},{token:“empty”,regex:“”,next:“no_regex”}],function_arguments:,qqstring:,qstring:},e&&e.noES6||(this.$rules.no_regex.unshift({regex:“”,onMatch:function(e,t,n){if(this.next=“{”==e?this.nextState:“”,“{”==e&&n.length)n.unshift(“start”,t);else if(“}”==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf(“string”)||-1!=this.next.indexOf(“jsx”)))return“paren.quasi.end”;return“{”==e?“paren.lparen”:“paren.rparen”},nextState:“start”},{“string.quasi.start”,regex:/`/,push:},{token:,regex:“(”a
“)(\s*)(?=\=>)”},{token:“paren.lparen”,regex:“(\()(?=.+\s*=>)”,next:“function_arguments”},{token:“variable.language”,regex:“(?:(?:(?:Weak)?(?:Set|Map))|Promise)\b”}),this.$rules.function_arguments.unshift({token:“keyword.operator”,regex:“=”,next:“default_parameter”},{token:“keyword.operator”,regex:“\.{3}”}),this.$rules.property.unshift({token:“support.function”,regex:“(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\b(?=\()”},{token:“constant.language”,regex:“(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\b”}),e&&0==e.jsx||n.call(this)),this.embedRules(r,“doc-”,),this.normalizeRules()};o.inherits(l,s),t.JavaScriptHighlightRules=l})),ace.define(“ace/mode/xml_highlight_rules”,,(function(e,t){“use strict”;var n=e(“../lib/oop”),i=e(“./text_highlight_rules”).TextHighlightRules,o=function(){var e=“[-_:.a-zA-Z0-9xc0-uffff]*”;this.$rules={start:[{token:“string.cdata.xml”,regex:“<\!\[CDATA\[”,next:“cdata”},{token:,regex:“(<\?)(”e
“)”,next:“processing_instruction”},{token:“comment.start.xml”,regex:“<\!–”,next:“comment”},{token:,regex:“(<\!)(DOCTYPE)(?=)”,next:“doctype”,caseInsensitive:!0},{include:“tag”},{token:“text.end-tag-open.xml”,regex:“</”},{token:“text.tag-open.xml”,regex:“<”},{include:“reference”},{defaultToken:“text.xml”}],processing_instruction:,doctype:[{include:“whitespace”},{include:“string”},{token:“xml-pe.doctype.xml”,regex:“>”,next:“start”},{token:“xml-pe.xml”,regex:“+”},{token:“punctuation.int-subset”,regex:“\,int_subset:”,next:“pop”},{token:,regex:“(<\\!)("e
”)“,push:}],cdata:\]>”,next:“start”},{token:“text.xml”,regex:“\s+”},{token:“text.xml”,regex:“(?:]|\](?!\]>))+”}],comment:,reference:[{token:“constant.language.escape.reference.xml”,regex:“(?:&#+;)|(?:&#x+;)|(?:&[a-zA-Z0-9_:\.-]+;)”}],attr_reference:[{token:“constant.language.escape.reference.attribute-value.xml”,regex:“(?:&#+;)|(?:&#x+;)|(?:&[a-zA-Z0-9_:\.-]+;)”}],tag:[{token:,regex:“(?:(<)|())((?:"e
”:)?“e
”)“,next:}],tag_whitespace:,whitespace:,string:[{token:”string.xml“,regex:”’“,push:},{”string.xml“,regex:‘”’,push:}],attributes:,attribute_value:[{token:“string.attribute-value.xml”,regex:“‘”,push:},{“string.attribute-value.xml”,regex:’“‘,push:}]},this.constructor===o&&this.normalizeRules()};(function(){this.embedTagRules=function(e,t,n){this.$rules.tag.unshift({token:[”meta.tag.punctuation.tag-open.xml“,”meta.tag.“n
”.tag-name.xml“],regex:”(<)("n
“(?=\s|>|$))”,next:}),this.$rules=[{include:“attributes”},{token:“meta.tag.punctuation.tag-close.xml”,regex:“/?>”,next:“start”,onMatch:function(e,t,n){return n.splice(0),this.token}}],this.embedRules(e,t,[{token:[“meta.tag.punctuation.end-tag-open.xml”,“meta.tag.”n
“.tag-name.xml”],regex:“(</)(”n
“(?=\s|>|$))”,next:n+“-end”},{“string.cdata.xml”,regex:“<\!\[CDATA\\]>”}])}}).call(i.prototype),n.inherits(o,i),t.XmlHighlightRules=o})),ace.define(“ace/mode/html_highlight_rules”,,(function(e,t){“use strict”;var n=e(“../lib/oop”),i=e(“../lib/lang”),o=e(“./css_highlight_rules”).CssHighlightRules,r=e(“./javascript_highlight_rules”).JavaScriptHighlightRules,s=e(“./xml_highlight_rules”).XmlHighlightRules,a=i.createMap({a:“anchor”,button:“form”,form:“form”,img:“image”,input:“form”,label:“form”,option:“form”,script:“script”,select:“form”,textarea:“form”,style:“style”,table:“table”,tbody:“table”,td:“table”,tfoot:“table”,th:“table”,tr:“table”}),l=function(){s.call(this),this.addRules({attributes:[{include:“tag_whitespace”},{token:“entity.other.attribute-name.xml”,regex:“+”},{token:“keyword.operator.attribute-equals.xml”,regex:“=”,push:[{include:“tag_whitespace”},{token:“string.unquoted.attribute-value.html”,regex:“+”,next:“pop”},{token:“empty”,regex:“”,next:“pop”}]},{include:“attribute_value”}],tag:[{token:function(e,t){var n=a;return},regex:“(</?)(+)”,next:“tag_stuff”}],tag_stuff:}),this.embedTagRules(o,“css-”,“style”),this.embedTagRules(new r({jsx:!1}).getRules(),“js-”,“script”),this.constructor===l&&this.normalizeRules()};n.inherits(l,s),t.HtmlHighlightRules=l})),ace.define(“ace/mode/markdown_highlight_rules”,,(function(e,t){“use strict”;var n=e(“../config”).$modes,i=e(“../lib/oop”),o=e(“../lib/lang”),r=e(“./text_highlight_rules”).TextHighlightRules,s=e(“./html_highlight_rules”).HtmlHighlightRules,a=function(e){return“(?:|\\.)*”},l=function(){s.call(this);var e={token:“support.function”,regex:/^s*(“`+*|~~~+[^~]*)$/,onMatch:function(e,t,i){var o=e.match(/^(s*)(+)(.*)/),r=/+|$/.exec(o)[0];return n||(r=“”),i.unshift(“githubblock”,[],[o,o,r],t),this.token},next:“githubblock”},t=[{token:“support.function”,regex:“.*”,onMatch:function(e,t,i){ var o=i,r=i[0],s=i[1],a=i[2],l=/^(s*)(`+|~+)s*$/.exec(e);if(l&&l.length<r.length+3&&l.length>=s.length&&l[0]==s)return i.splice(0,3),this.next=i.shift(),this.token;if(this.next=“”,a&&n){var c=n.getTokenizer().getLineTokens(e,o.slice(0));return i=c.state,c.tokens}return this.token}}];this.$rules.start.unshift({token:“empty_line”,regex:“^$”,next:“allowBlock”},{token:“markup.heading.1”,regex:“^=+(?=\s*$)”},{token:“markup.heading.2”,regex:“^\-+(?=\s*$)”},{token:function(e){return“markup.heading.”+e.length},regex:/^#{1,6}(?=s|$)/,next:“header”},e,{token:“string.blockquote”,regex:“^\s*>\s*(?:|\d+\.)?\s+”,next:“blockquote”},{token:“constant”,regex:“^ {0,3}(?:(?:* ?){3,}|(?:\- ?){3,}|(?:_ ?){3,})\s*$”,next:“allowBlock”},{token:“markup.list”,regex:“^\s{0,3}(?:[*+-]|\d+\.)\s+”,next:“listblock-start”},{include:“basic”}),this.addRules({basic:[{token:“constant.language.escape”,regex:/\[\`*_{}()+-.!]/},{token:“support.function”,regex:“(`+)(.*?)(\1)”},{token:,regex:’^([ ]{0,3}\[)([^\]]+)(\]:\s*)([^ ]+)(\s*(?:[“][^”]+[“])?(\s*))$‘},{token:,regex:”(\“)+”)(\]\s*\“)+”)(\])“},{token:,regex:”(\!?\“)+’)(\]\()((?:[^\)\s\\]|\\.|\s(?=[^”]))*)(\s*“‘+a(’”‘)+’“\s*)?(\))‘},{token:”string.strong“,regex:”({2}|[_]{2}(?=\S))(.*?\S[_])(\1)“},{token:”string.emphasis“,regex:”(|[_](?=\S))(.*?\S[_])(\1)“},{token:,regex:”(<)((?:https?|ftp|dict):+|(?:mailto:)?+\@[-a-z0-9]+(?:\.+)*\.[a-z]+)(>)“}],allowBlock:[{token:”support.function“,regex:”^ {4}.+“,next:”allowBlock“},{token:”empty_line“,regex:”^$“,next:”allowBlock“},{token:”empty“,regex:”“,next:”start“}],header:,”listblock-start“:[{token:”support.variable“,regex:/(?:[[ x]])?/,next:”listblock“}],listblock:[{token:”empty_line“,regex:”^$“,next:”start“},{token:”markup.list“,regex:”^\s{0,3}(?:|\d+\.)\s+“,next:”listblock-start“},{include:”basic“,noEscape:!0},e,{defaultToken:”list“}],blockquote:[{token:”empty_line“,regex:”^\s*$“,next:”start“},{token:”string.blockquote“,regex:”^\s*>\s*(?:|\d+\.)?\s+“,next:”blockquote“},{include:”basic“,noEscape:!0},{defaultToken:”string.blockquote“}],githubblock:t}),this.normalizeRules()};i.inherits(l,r),t.MarkdownHighlightRules=l})),ace.define(”ace/mode/folding/markdown“,,(function(e,t){”use strict“;var n=e(”../../lib/oop“),i=e(”./fold_mode“).FoldMode,o=e(”../../range“).Range,r=t.FoldMode=function(){};n.inherits(r,i),function(){this.foldingStartMarker=/^(?:+s*$|#{1,6} |`{3})/,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?”`“==i&&”start“==e.bgTokenizer.getState(n)?”end“:”start“:”“},this.getFoldWidgetRange=function(e,t,n){function i(t){return(u=e.getTokens(t))&&0===u.type.lastIndexOf(d,0)}function r(){var e=u.value;return”=“==e?6:”-“==e?5:7-u.value.search(/|$/)}var s=e.getLine(n),a=s.length,l=e.getLength(),c=n,h=n;if(s.match(this.foldingStartMarker)){if(”`“==s){if(”start“!==e.bgTokenizer.getState(n)){for(;++n<l&&!(”`“==(s=e.getLine(n))&”“`“==s.substring(0,3)););return new o(c,a,n,0)}for(;n– >0&&!(”`“==(s=e.getLine(n))&”“`“==s.substring(0,3)););return new o(n,s.length,c,0)}var u,d=”markup.heading“;if(i(n)){for(var p=r();++n<l;){if(i(n))if(r()>=p)break}if((h=n-(u&&-1!=.indexOf(u.value)?2:1))>c)for(;h>c&&/^s*$/.test(e.getLine(h));)h–;if(h>c){var g=e.getLine(h).length;return new o(c,a,h,g)}}}}}.call(r.prototype)})),ace.define(”ace/mode/matching_brace_outdent“,,(function(e,t){”use strict“;var n=e(”../range“).Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^s+$/.test(e)&&/^s*}/.test(t)},this.autoOutdent=function(e,t){var i=e.getLine(t).match(/^(s*})/);if(!i)return 0;var o=i.length,r=e.findMatchingBracket({row:t,column:o});if(!r||r.row==t)return 0;var s=this.$getIndent(e.getLine(r.row));e.replace(new n(t,0,t,o-1),s)},this.$getIndent=function(e){return e.match(/^s*/)}}).call(i.prototype),t.MatchingBraceOutdent=i})),ace.define(”ace/mode/folding/cstyle“,,(function(e,t){”use strict“;var n=e(”../../lib/oop“),i=e(”../../range“).Range,o=e(”./fold_mode“).FoldMode,r=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/|*?$/,”|“+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/|*?$/,”|“+e.end)))};n.inherits(r,o),function(){this.foldingStartMarker=/([{)[^}])]*$|^s*(/*)/,this.foldingStopMarker=/^[^*([}])])|^[s*]*(*/)/,this.singleLineBlockCommentRe=/^s*(/*).**/s*$/,this.tripleStarBlockCommentRe=/^s*(/***).**/s*$/,this.startRegionRe=/^s*(/*|//)#?regionb/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return”“;var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?”start“:o},this.getFoldWidgetRange=function(e,t,n,i){var o,r=e.getLine(n);if(this.startRegionRe.test®)return this.getCommentRegionBlock(e,r,n);if(o=r.match(this.foldingStartMarker)){var s=o.index;if(o)return this.openingBracketBlock(e,o,n,s);var a=e.getCommentFoldRange(n,s+o.length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):”all“!=t&&(a=null)),a}if(”markbegin“!==t&&(o=r.match(this.foldingStopMarker))){s=o.index+o.length;return o?this.closingBracketBlock(e,o,n,s):e.getCommentFoldRange(n,s,-1)}},this.getSectionRange=function(e,t){for(var n=e.getLine(t),o=n.search(/S/),r=t,s=n.length,a=t+=1,l=e.getLength();++t<l;){var c=(n=e.getLine(t)).search(/S/);if(-1!==c){if(o>c)break;var h=this.getFoldWidgetRange(e,”all“,t);if(h){if(h.start.row<=r)break;if(h.isMultiLine())t=h.end.row;else if(o==c)break}a=t}}return new i(r,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var o=t.search(/s*$/),r=e.getLength(),s=n,a=/^s*(?:/*|//|–)#?(end)?regionb/,l=1;++n<r;){t=e.getLine(n);var c=a.exec(t);if(c&&(c?l–:l++,!l))break}if(n>s)return new i(s,o,n,t.length)}}.call(r.prototype)})),ace.define(”ace/mode/javascript“,,(function(e,t){”use strict“;var n=e(”../lib/oop“),i=e(”./text“).Mode,o=e(”./javascript_highlight_rules“).JavaScriptHighlightRules,r=e(”./matching_brace_outdent“).MatchingBraceOutdent,s=e(”../worker/worker_client“).WorkerClient,a=e(”./behaviour/cstyle“).CstyleBehaviour,l=e(”./folding/cstyle“).FoldMode,c=function(){this.HighlightRules=o,this.$outdent=new r,this.$behaviour=new a,this.foldingRules=new l};n.inherits(c,i),function(){this.lineCommentStart=”//“,this.blockComment={start:”/*“,end:”*/“},this.$quotes={’”‘:’“‘,”’“:”‘“,”`“:”`“},this.$pairQuotesAfter={”`“:/w/},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e),r=o.tokens,s=o.state;if(r.length&&”comment“==r.type)return i;if(”start“==e||”no_regex“==e)(a=t.match(/^.*(?:bcaseb.*:|[{()s*$/))&&(i+=n);else if(”doc-start“==e){if(”start“==s||”no_regex“==s)return”“;var a;(a=t.match(/^s*(/?)*/))&&(a&&(i+=” “),i+=”* “)}return i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new s(,”ace/mode/javascript_worker“,”JavaScriptWorker“);return t.attachToDocument(e.getDocument()),t.on(”annotate“,(function(t){e.setAnnotations(t.data)})),t.on(”terminate“,(function(){e.clearAnnotations()})),t},this.$id=”ace/mode/javascript“,this.snippetFileId=”ace/snippets/javascript“}.call(c.prototype),t.Mode=c})),ace.define(”ace/mode/css_completions“,,(function(e,t){”use strict“;var n={background:{”#$0“:1},”background-color“:{”#$0“:1,transparent:1,fixed:1},”background-image“:{”url(’/$0’)“:1},”background-repeat“:{repeat:1,”repeat-x“:1,”repeat-y“:1,”no-repeat“:1,inherit:1},”background-position“:{bottom:2,center:2,left:2,right:2,top:2,inherit:2},”background-attachment“:{scroll:1,fixed:1},”background-size“:{cover:1,contain:1},”background-clip“:{”border-box“:1,”padding-box“:1,”content-box“:1},”background-origin“:{”border-box“:1,”padding-box“:1,”content-box“:1},border:{”solid $0“:1,”dashed $0“:1,”dotted $0“:1,”#$0“:1},”border-color“:{”#$0“:1},”border-style“:{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},”border-collapse“:{collapse:1,separate:1},bottom:{px:1,em:1,”%“:1},clear:{left:1,right:1,both:1,none:1},color:{”#$0“:1,”rgb(#$00,0,0)“:1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,”n-resize“:1,”ne-resize“:1,”e-resize“:1,”se-resize“:1,”s-resize“:1,”sw-resize“:1,”w-resize“:1,”nw-resize“:1},display:{none:1,block:1,inline:1,”inline-block“:1,”table-cell“:1},”empty-cells“:{show:1,hide:1},float:{left:1,right:1,none:1},”font-family“:{Arial:2,”Comic Sans MS“:2,Consolas:2,”Courier New“:2,Courier:2,Georgia:2,Monospace:2,”Sans-Serif“:2,”Segoe UI“:2,Tahoma:2,”Times New Roman“:2,”Trebuchet MS“:2,Verdana:1},”font-size“:{px:1,em:1,”%“:1},”font-weight“:{bold:1,normal:1},”font-style“:{italic:1,normal:1},”font-variant“:{normal:1,”small-caps“:1},height:{px:1,em:1,”%“:1},left:{px:1,em:1,”%“:1},”letter-spacing“:{normal:1},”line-height“:{normal:1},”list-style-type“:{none:1,disc:1,circle:1,square:1,decimal:1,”decimal-leading-zero“:1,”lower-roman“:1,”upper-roman“:1,”lower-greek“:1,”lower-latin“:1,”upper-latin“:1,georgian:1,”lower-alpha“:1,”upper-alpha“:1},margin:{px:1,em:1,”%“:1},”margin-right“:{px:1,em:1,”%“:1},”margin-left“:{px:1,em:1,”%“:1},”margin-top“:{px:1,em:1,”%“:1},”margin-bottom“:{px:1,em:1,”%“:1},”max-height“:{px:1,em:1,”%“:1},”max-width“:{px:1,em:1,”%“:1},”min-height“:{px:1,em:1,”%“:1},”min-width“:{px:1,em:1,”%“:1},overflow:{hidden:1,visible:1,auto:1,scroll:1},”overflow-x“:{hidden:1,visible:1,auto:1,scroll:1},”overflow-y“:{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,”%“:1},”padding-top“:{px:1,em:1,”%“:1},”padding-right“:{px:1,em:1,”%“:1},”padding-bottom“:{px:1,em:1,”%“:1},”padding-left“:{px:1,em:1,”%“:1},”page-break-after“:{auto:1,always:1,avoid:1,left:1,right:1},”page-break-before“:{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,”%“:1},”table-layout“:{fixed:1,auto:1},”text-decoration“:{none:1,underline:1,”line-through“:1,blink:1},”text-align“:{left:1,right:1,center:1,justify:1},”text-transform“:{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,”%“:1},”vertical-align“:{top:1,bottom:1},visibility:{hidden:1,visible:1},”white-space“:{nowrap:1,normal:1,pre:1,”pre-line“:1,”pre-wrap“:1},width:{px:1,em:1,”%“:1},”word-spacing“:{normal:1},filter:{”alpha(opacity=$0100)“:1},”text-shadow“:{”$02px 2px 2px #777“:1},”text-overflow“:{”ellipsis-word“:1,clip:1,ellipsis:1},”-moz-border-radius“:1,”-moz-border-radius-topright“:1,”-moz-border-radius-bottomright“:1,”-moz-border-radius-topleft“:1,”-moz-border-radius-bottomleft“:1,”-webkit-border-radius“:1,”-webkit-border-top-right-radius“:1,”-webkit-border-top-left-radius“:1,”-webkit-border-bottom-right-radius“:1,”-webkit-border-bottom-left-radius“:1,”-moz-box-shadow“:1,”-webkit-box-shadow“:1,transform:{”rotate($00deg)“:1,”skew($00deg)“:1},”-moz-transform“:{”rotate($00deg)“:1,”skew($00deg)“:1},”-webkit-transform“:{”rotate($00deg)“:1,”skew($00deg)“:1}},i=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement(”c“).style;for(var t in e)if(”string“==typeof e){var i=t.replace(//g,(function(e){return”-“+e.toLowerCase()}));n.hasOwnProperty(i)||(n=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,i){if(this.completionsDefined||this.defineCompletions(),”ruleset“===e||”ace/mode/scss“==t.$mode.$id){var o=t.getLine(n.row).substr(0,n.column),r=/(*$/.test(o);return r&&(o=o.substr(o.lastIndexOf(”(“)+1)),/:+$/.test(o)?(/(+):[^:]*$/.test(o),this.getPropertyValueCompletions(e,t,n,i)):this.getPropertyCompletions(e,t,n,i,r)}return[]},this.getPropertyCompletions=function(e,t,i,o,r){return r=r||!1,Object.keys(n).map((function(e){return{caption:e,snippet:e+”: $0“+(r?”“:”;“),meta:”property“,score:1e6}}))},this.getPropertyValueCompletions=function(e,t,i){var o=t.getLine(i.row).substr(0,i.column),r=(/(+):[^:]*$/.exec(o)||{})[1];if(!r)return[];var s=[];return r in n&&”object“==typeof n&&(s=Object.keys(n)),s.map((function(e){return{caption:e,snippet:e,meta:”property value“,score:1e6}}))}}).call(i.prototype),t.CssCompletions=i})),ace.define(”ace/mode/behaviour/css“,,(function(e,t){”use strict“;var n=e(”../../lib/oop“),i=(e(”../behaviour“).Behaviour,e(”./cstyle“).CstyleBehaviour),o=e(”../../token_iterator“).TokenIterator,r=function(){this.inherit(i),this.add(”colon“,”insertion“,(function(e,t,n,i,r){if(”:“===r&&n.selection.isEmpty()){var s=n.getCursorPosition(),a=new o(i,s.row,s.column),l=a.getCurrentToken();if(l&&l.value.match(/s+/)&&(l=a.stepBackward()),l&&”support.type“===l.type){var c=i.doc.getLine(s.row);if(”:“===c.substring(s.column,s.column+1))return{text:”“,selection:};if(/^(s+|s*$)/.test(c.substring(s.column)))return{text:”:;“,selection:}}}})),this.add(”colon“,”deletion“,(function(e,t,n,i,r){var s=i.doc.getTextRange®;if(!r.isMultiLine()&&”:“===s){var a=n.getCursorPosition(),l=new o(i,a.row,a.column),c=l.getCurrentToken();if(c&&c.value.match(/s+/)&&(c=l.stepBackward()),c&&”support.type“===c.type)if(”;“===i.doc.getLine(r.start.row).substring(r.end.column,r.end.column+1))return r.end.column++,r}})),this.add(”semicolon“,”insertion“,(function(e,t,n,i,o){if(”;“===o&&n.selection.isEmpty()){var r=n.getCursorPosition();if(”;“===i.doc.getLine(r.row).substring(r.column,r.column+1))return{text:”“,selection:}}})),this.add(”!important“,”insertion“,(function(e,t,n,i,o){if(”!“===o&&n.selection.isEmpty()){var r=n.getCursorPosition(),s=i.doc.getLine(r.row);if(/^s*(;|}|$)/.test(s.substring(r.column)))return{text:”!important“,selection:}}}))};n.inherits(r,i),t.CssBehaviour=r})),ace.define(”ace/mode/css“,,(function(e,t){”use strict“;var n=e(”../lib/oop“),i=e(”./text“).Mode,o=e(”./css_highlight_rules“).CssHighlightRules,r=e(”./matching_brace_outdent“).MatchingBraceOutdent,s=e(”../worker/worker_client“).WorkerClient,a=e(”./css_completions“).CssCompletions,l=e(”./behaviour/css“).CssBehaviour,c=e(”./folding/cstyle“).FoldMode,h=function(){this.HighlightRules=o,this.$outdent=new r,this.$behaviour=new l,this.$completer=new a,this.foldingRules=new c};n.inherits(h,i),function(){this.foldingRules=”cStyle“,this.blockComment={start:”/*“,end:”*/“},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e).tokens;return o.length&&”comment“==o.type||t.match(/^.*{s*$/)&&(i+=n),i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,i){return this.$completer.getCompletions(e,t,n,i)},this.createWorker=function(e){var t=new s(,”ace/mode/css_worker“,”Worker“);return t.attachToDocument(e.getDocument()),t.on(”annotate“,(function(t){e.setAnnotations(t.data)})),t.on(”terminate“,(function(){e.clearAnnotations()})),t},this.$id=”ace/mode/css“,this.snippetFileId=”ace/snippets/css“}.call(h.prototype),t.Mode=h})),ace.define(”ace/mode/behaviour/xml“,,(function(e,t){”use strict“;function n(e,t){return e&&e.type.lastIndexOf(t+”.xml“)>-1}var i=e(”../../lib/oop“),o=e(”../behaviour“).Behaviour,r=e(”../../token_iterator“).TokenIterator,s=(e(”../../lib/lang“),function(){this.add(”string_dquotes“,”insertion“,(function(e,t,i,o,s){if(‘”’==s||“‘”==s){var a=s,l=o.doc.getTextRange(i.getSelectionRange());if(“”!==l&&“’”!==l&&‘“’!=l&&i.getWrapBehavioursEnabled())return{text:a+l+a,selection:!1};var c=i.getCursorPosition(),h=o.doc.getLine(c.row).substring(c.column,c.column+1),u=new r(o,c.row,c.column),d=u.getCurrentToken();if(h==a&&(n(d,”attribute-value“)||n(d,”string“)))return{text:”“,selection:};if(d||(d=u.stepBackward()),!d)return;for(;n(d,”tag-whitespace“)||n(d,”whitespace“);)d=u.stepBackward();var p=!h||h.match(/s/);if(n(d,”attribute-equals“)&&(p||”>“==h)||n(d,”decl-attribute-equals“)&&(p||”?“==h))return{text:a+a,selection:}}})),this.add(”string_dquotes“,”deletion“,(function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&(‘”’==r||“‘”==r)&&i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)==r)return o.end.column++,o})),this.add(“autoclosing”,“insertion”,(function(e,t,i,o,s){if(“>”==s){var a=i.getSelectionRange().start,l=new r(o,a.row,a.column),c=l.getCurrentToken()||l.stepBackward();if(!c||!(n(c,“tag-name”)||n(c,“tag-whitespace”)||n(c,“attribute-name”)||n(c,“attribute-equals”)||n(c,“attribute-value”)))return;if(n(c,“reference.attribute-value”))return;if(n(c,“attribute-value”)){var h=l.getCurrentTokenColumn()+c.value.length;if(a.column<h)return;if(a.column==h){var u=l.stepForward();if(u&&n(u,“attribute-value”))return;l.stepBackward()}}if(/^s*>/.test(o.getLine(a.row).slice(a.column)))return;for(;!n(c,“tag-name”);)if(“<”==(c=l.stepBackward()).value){c=l.stepForward();break}var d=l.getCurrentTokenRow(),p=l.getCurrentTokenColumn();if(n(l.stepBackward(),“end-tag-open”))return;var g=c.value;if(d==a.row&&(g=g.substring(0,a.column-p)),this.voidElements.hasOwnProperty(g.toLowerCase()))return;return{text:“>"g
”>“,selection:}}})),this.add(”autoindent“,”insertion“,(function(e,t,n,i,o){if(”n“==o){var s=n.getCursorPosition(),a=i.getLine(s.row),l=new r(i,s.row,s.column),c=l.getCurrentToken();if(c&&-1!==c.type.indexOf(”tag-close“)){if(”/>“==c.value)return;for(;c&&-1===c.type.indexOf(”tag-name“);)c=l.stepBackward();if(!c)return;var h=c.value,u=l.getCurrentTokenRow();if(!(c=l.stepBackward())||-1!==c.type.indexOf(”end-tag“))return;if(this.voidElements&&!this.voidElements){var d=i.getTokenAt(s.row,s.column+1),p=(a=i.getLine(u),this.$getIndent(a)),g=p+i.getTabString();return d&&”</“===d.value?{text:”n“g
”n“+p,selection:}:{text:”n“+g}}}}}))});i.inherits(s,o),t.XmlBehaviour=s})),ace.define(”ace/mode/folding/mixed“,,(function(e,t){”use strict“;var n=e(”../../lib/oop“),i=e(”./fold_mode“).FoldMode,o=t.FoldMode=function(e,t){this.defaultMode=e,this.subModes=t};n.inherits(o,i),function(){this.$getMode=function(e){for(var t in”string“!=typeof e&&(e=e),this.subModes)if(0===e.indexOf(t))return this.subModes;return null},this.$tryMode=function(e,t,n,i){var o=this.$getMode(e);return o?o.getFoldWidget(t,n,i):”“},this.getFoldWidget=function(e,t,n){return this.$tryMode(e.getState(n-1),e,t,n)||this.$tryMode(e.getState(n),e,t,n)||this.defaultMode.getFoldWidget(e,t,n)},this.getFoldWidgetRange=function(e,t,n){var i=this.$getMode(e.getState(n-1));return i&&i.getFoldWidget(e,t,n)||(i=this.$getMode(e.getState(n))),i&&i.getFoldWidget(e,t,n)||(i=this.defaultMode),i.getFoldWidgetRange(e,t,n)}}.call(o.prototype)})),ace.define(”ace/mode/folding/xml“,,(function(e,t){”use strict“;function n(e,t){return e.type.lastIndexOf(t+”.xml“)>-1}var i=e(”../../lib/oop“),o=e(”../../range“).Range,r=e(”./fold_mode“).FoldMode,s=t.FoldMode=function(e,t){r.call(this),this.voidElements=e||{},this.optionalEndTags=i.mixin({},this.voidElements),t&&i.mixin(this.optionalEndTags,t)};i.inherits(s,r);var a=function(){this.tagName=”“,this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(e,t,n){var i=this._getFirstTagInLine(e,n);return i?i.closing||!i.tagName&&i.selfClosing?”markbeginend“===t?”end“:”“:!i.tagName||i.selfClosing||this.voidElements.hasOwnProperty(i.tagName.toLowerCase())||this._findEndTagInLine(e,n,i.tagName,i.end.column)?”“:”start“:this.getCommentFoldWidget(e,n)},this.getCommentFoldWidget=function(e,t){return/comment/.test(e.getState(t))&&/<!-/.test(e.getLine(t))?”start“:”“},this._getFirstTagInLine=function(e,t){for(var i=e.getTokens(t),o=new a,r=0;r<i.length;r++){var s=i;if(n(s,”tag-open“)){if(o.end.column=o.start.column+s.value.length,o.closing=n(s,”end-tag-open“),!(s=i))return null;for(o.tagName=s.value,o.end.column+=s.value.length,r++;r<i.length;r++)if(s=i,o.end.column+=s.value.length,n(s,”tag-close“)){o.selfClosing=”/>“==s.value;break}return o}if(n(s,”tag-close“))return o.selfClosing=”/>“==s.value,o;o.start.column+=s.value.length}return null},this._findEndTagInLine=function(e,t,i,o){for(var r=e.getTokens(t),s=0,a=0;a<r.length;a++){var l=r;if(!((s+=l.value.length)<o)&&n(l,”end-tag-open“)&&(l=r)&&l.value==i)return!0}return!1},this.getFoldWidgetRange=function(e,t,n){var i=e.getMatchingTags({row:n,column:0});return i?new o(i.openTag.end.row,i.openTag.end.column,i.closeTag.start.row,i.closeTag.start.column):this.getCommentFoldWidget(e,n)&&e.getCommentFoldRange(n,e.getLine(n).length)}}).call(s.prototype)})),ace.define(”ace/mode/folding/html“,,(function(e,t){”use strict“;var n=e(”../../lib/oop“),i=e(”./mixed“).FoldMode,o=e(”./xml“).FoldMode,r=e(”./cstyle“).FoldMode,s=t.FoldMode=function(e,t){i.call(this,new o(e,t),{”js-“:new r,”css-“:new r})};n.inherits(s,i)})),ace.define(”ace/mode/html_completions“,,(function(e,t){”use strict“;function n(e,t){return e.type.lastIndexOf(t+”.xml“)>-1}function i(e,t){for(var i=new r(e,t.row,t.column),o=i.getCurrentToken();o&&!n(o,”tag-name“);)o=i.stepBackward();if(o)return o.value}function o(e,t){for(var i=new r(e,t.row,t.column),o=i.getCurrentToken();o&&!n(o,”attribute-name“);)o=i.stepBackward();if(o)return o.value}var r=e(”../token_iterator“).TokenIterator,s=,a=.concat(s),l={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{”accept-charset“:1,action:1,autocomplete:1,enctype:{”multipart/form-data“:1,”application/x-www-form-urlencoded“:1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{”allow-same-origin“:1,”allow-top-navigation“:1,”allow-forms“:1,”allow-scripts“:1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,”datetime-local“:1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{”application/x-www-form-urlencoded“:1,”multipart/form-data“:1,”text/plain“:1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{”text/css“:1,”image/png“:1,”image/jpeg“:1,”image/gif“:1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{”http-equiv“:{”content-type“:1},name:{description:1,keywords:1},content:{”text/html; charset=UTF-8“:1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{”text/javascript“:1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},c=Object.keys(l),h=function(){};(function(){this.getCompletions=function(e,t,i,o){var r=t.getTokenAt(i.row,i.column);if(!r)return[];if(n(r,”tag-name“)||n(r,”tag-open“)||n(r,”end-tag-open“))return this.getTagCompletions(e,t,i,o);if(n(r,”tag-whitespace“)||n(r,”attribute-name“))return this.getAttributeCompletions(e,t,i,o);if(n(r,”attribute-value“))return this.getAttributeValueCompletions(e,t,i,o);var s=t.getLine(i.row).substr(0,i.column);return/&*$/i.test(s)?this.getHTMLEntityCompletions(e,t,i,o):[]},this.getTagCompletions=function(){return c.map((function(e){return{value:e,meta:”tag“,score:1e6}}))},this.getAttributeCompletions=function(e,t,n){var o=i(t,n);if(!o)return[];var r=a;return o in l&&(r=r.concat(Object.keys(l))),r.map((function(e){return{caption:e,snippet:e+’=”$0“‘,meta:”attribute“,score:1e6}}))},this.getAttributeValueCompletions=function(e,t,n){var r=i(t,n),s=o(t,n);if(!r)return[];var a=[];return r in l&&s in l&&”object“==typeof l[s]&&(a=Object.keys(l[s])),a.map((function(e){return{caption:e,snippet:e,meta:”attribute value“,score:1e6}}))},this.getHTMLEntityCompletions=function(){return.map((function(e){return{caption:e,snippet:e,meta:”html entity“,score:1e6}}))}}).call(h.prototype),t.HtmlCompletions=h})),ace.define(”ace/mode/html“,,(function(e,t){”use strict“;var n=e(”../lib/oop“),i=e(”../lib/lang“),o=e(”./text“).Mode,r=e(”./javascript“).Mode,s=e(”./css“).Mode,a=e(”./html_highlight_rules“).HtmlHighlightRules,l=e(”./behaviour/xml“).XmlBehaviour,c=e(”./folding/html“).FoldMode,h=e(”./html_completions“).HtmlCompletions,u=e(”../worker/worker_client“).WorkerClient,d=,p=,g=function(e){this.fragmentContext=e&&e.fragmentContext,this.HighlightRules=a,this.$behaviour=new l,this.$completer=new h,this.createModeDelegates({”js-“:r,”css-“:s}),this.foldingRules=new c(this.voidElements,i.arrayToMap(p))};n.inherits(g,o),function(){this.blockComment={start:”<!–“,end:”–>“},this.voidElements=i.arrayToMap(d),this.getNextLineIndent=function(e,t){return this.$getIndent(t)}, this.checkOutdent=function(){return!1},this.getCompletions=function(e,t,n,i){return this.$completer.getCompletions(e,t,n,i)},this.createWorker=function(e){if(this.constructor==g){var t=new u(,”ace/mode/html_worker“,”Worker“);return t.attachToDocument(e.getDocument()),this.fragmentContext&&t.call(”setOptions“,),t.on(”error“,(function(t){e.setAnnotations(t.data)})),t.on(”terminate“,(function(){e.clearAnnotations()})),t}},this.$id=”ace/mode/html“,this.snippetFileId=”ace/snippets/html“}.call(g.prototype),t.Mode=g})),ace.define(”ace/mode/sh_highlight_rules“,,(function(e,t){”use strict“;var n=e(”../lib/oop“),i=e(”./text_highlight_rules“).TextHighlightRules,o=t.reservedKeywords=”!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly“,r=t.languageConstructs=”|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait“,s=function(){var e=this.createKeywordMapper({keyword:o,”support.function.builtin“:r,”invalid.deprecated“:”debugger“},”identifier“),t=”(?:(?:\d*)|(?:0))“,n=”(?:\d+)“,i=”(?:(?:“n
”?“+”(?:\.\d+)“+”)|(?:“n
”\.))“,s=”(?:“+(”(?:(?:“i
”|“n
”))“)+”|“i
”)“,a=”(?:&“n
”)“,l=”[a-zA-Z0-9_]*“,c=”(?:“l
”(?==))“,h=”(?:\$(?:SHLVL|\$|\!|\?))“,u=”(?:“l
”\s*\(\))“;this.$rules={start:[{token:”constant“,regex:/\./},{token:,regex:/(^|s)(#.*)$/},{token:”string.start“,regex:’”‘,push:[{token:“constant.language.escape”,regex:/\(?:|$)/},{include:“variables”},{token:“keyword.operator”,regex:/`/},{token:“string.end”,regex:’“‘,next:”pop“},{defaultToken:”string“}]},{token:”string“,regex:”\$’“,push:[{token:”constant.language.escape“,regex:/\(?:|x{1,2}|u{4}([a-fA-Fd]{4})?|c.|d{1,3})/},{token:”string“,regex:”‘“,next:”pop“},{defaultToken:”string“}]},{regex:”<<<“,token:”keyword.operator“},{stateName:”heredoc“,regex:”(<<-?)(\s*)(?)([\w\-]+)(?)“,onMatch:function(e,t,n){var i=”-“==e?”indentedHeredoc“:”heredoc“,o=e.split(this.splitRegex);return n.push(i,o),[{type:”constant“,value:o},{type:”text“,value:o},{type:”string“,value:o},{type:”support.class“,value:o},{type:”string“,value:o}]},rules:{heredoc:[{onMatch:function(e,t,n){return e===n?(n.shift(),n.shift(),this.next=n||”start“,”support.class“):(this.next=”“,”string“)},regex:”.*$“,next:”start“}],indentedHeredoc:[{token:”string“,regex:”^t+“},{onMatch:function(e,t,n){return e===n?(n.shift(),n.shift(),this.next=n||”start“,”support.class“):(this.next=”“,”string“)},regex:”.*$“,next:”start“}]}},{regex:”$“,token:”empty“,next:function(e,t){return”heredoc“===t||”indentedHeredoc“===t?t:e}},{token:,regex:/(declare|local|readonly)(s+)(?:(-+)(s+))?([a-zA-Z_][a-zA-Z0-9_]*b)/},{token:”variable.language“,regex:h},{token:”variable“,regex:c},{include:”variables“},{token:”support.function“,regex:u},{token:”support.function“,regex:a},{token:”string“,start:”’“,end:”‘“},{token:”constant.numeric“,regex:s},{token:”constant.numeric“,regex:t+”\b“},{token:e,regex:”[a-zA-Z0-9_]*\b“},{token:”keyword.operator“,regex:”+|\-|*|**|\/|\/\/|~|<|>|<=|=>|=|!=|“},{token:”punctuation.operator“,regex:”;“},{token:”paren.lparen“,regex:”[\“},{token:”paren.rparen“,regex:”]“},{token:”paren.rparen“,regex:”“,next:”pop“}],variables:[{token:”variable“,regex:/($)(w+)/},{token:,regex:/($)(()/,push:”start“},{token:,regex:/($)({)([#!]?)(w+|[*)(:[?+-=]?|##?|%%?|,,?/|^^?)?/,push:”start“},{token:”variable“,regex:/$/},{token:,regex:/($)({)/,push:”start“}]},this.normalizeRules()};n.inherits(s,i),t.ShHighlightRules=s})),ace.define(”ace/mode/sh“,,(function(e,t){”use strict“;var n=e(”../lib/oop“),i=e(”./text“).Mode,o=e(”./sh_highlight_rules“).ShHighlightRules,r=e(”../range“).Range,s=e(”./folding/cstyle“).FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new s,this.$behaviour=this.$defaultBehaviour};n.inherits(a,i),function(){this.lineCommentStart=”#“,this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e).tokens;if(o.length&&”comment“==o.type)return i;”start“==e&&(t.match(/^.*[{(s*$/)&&(i+=n));return i};var e={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(t,n,i){if(”rn“!==i&&”r“!==i&&”n“!==i)return!1;var o=this.getTokenizer().getLineTokens(n.trim(),t).tokens;if(!o)return!1;do{var r=o.pop()}while(r&&(”comment“==r.type||”text“==r.type&&r.value.match(/^s+$/)));return!!r&&(”keyword“==r.type&&e)},this.autoOutdent=function(e,t,n){n+=1;var i=this.$getIndent(t.getLine(n)),o=t.getTabString();i.slice(-o.length)==o&&t.remove(new r(n,i.length-o.length,n,i.length))},this.$id=”ace/mode/sh“,this.snippetFileId=”ace/snippets/sh“}.call(a.prototype),t.Mode=a})),ace.define(”ace/mode/xml“,,(function(e,t){”use strict“;var n=e(”../lib/oop“),i=e(”../lib/lang“),o=e(”./text“).Mode,r=e(”./xml_highlight_rules“).XmlHighlightRules,s=e(”./behaviour/xml“).XmlBehaviour,a=e(”./folding/xml“).FoldMode,l=e(”../worker/worker_client“).WorkerClient,c=function(){this.HighlightRules=r,this.$behaviour=new s,this.foldingRules=new a};n.inherits(c,o),function(){this.voidElements=i.arrayToMap([]),this.blockComment={start:”<!–“,end:”–>“},this.createWorker=function(e){var t=new l(,”ace/mode/xml_worker“,”Worker“);return t.attachToDocument(e.getDocument()),t.on(”error“,(function(t){e.setAnnotations(t.data)})),t.on(”terminate“,(function(){e.clearAnnotations()})),t},this.$id=”ace/mode/xml“}.call(c.prototype),t.Mode=c})),ace.define(”ace/mode/markdown“,,(function(e,t){”use strict“;var n=e(”../lib/oop“),i=e(”./behaviour/cstyle“).CstyleBehaviour,o=e(”./text“).Mode,r=e(”./markdown_highlight_rules“).MarkdownHighlightRules,s=e(”./folding/markdown“).FoldMode,a=function(){this.HighlightRules=r,this.createModeDelegates({javascript:e(”./javascript“).Mode,html:e(”./html“).Mode,bash:e(”./sh“).Mode,sh:e(”./sh“).Mode,xml:e(”./xml“).Mode,css:e(”./css“).Mode}),this.foldingRules=new s,this.$behaviour=new i({braces:!0})};n.inherits(a,o),function(){this.type=”text“,this.blockComment={start:”<!–“,end:”–>“},this.$quotes={’”‘:’“‘,”`“:”`“},this.getNextLineIndent=function(e,t){if(”listblock“==e){var n=/^(s*)(?:()|(d+).)(s+)/.exec(t);if(!n)return”“;var i=n;return i||(i=parseInt(n,10)1
”.“),n+i+n}return this.$getIndent(t)},this.$id=”ace/mode/markdown“,this.snippetFileId=”ace/snippets/markdown“}.call(a.prototype),t.Mode=a})),ace.require(,(function(e){”object“==typeof module&&”object“==typeof exports&&module&&(module.exports=e)})),ace.define(”ace/mode/asciidoc_highlight_rules“,,(function(e,t){”use strict“;var n=e(”../lib/oop“),i=e(”./text_highlight_rules“).TextHighlightRules,o=function(){function e(e){return(/w/.test(e)?”\b“:”(?:\B|^)“)e
”[^“e
”].*?“e
”(?!)“}var t=”+\b“;this.$rules={start:,dissallowDelimitedBlock:,paragraphEnd:[{token:”doc.comment“,regex:/^/{4,}s*$/,next:”commentBlock“},{token:”tableBlock“,regex:/^s*=+s*$/,next:”tableBlock“},{token:”keyword“,regex:/^(?:–|”’)s*$/,next:”start“},{token:”option“,regex:/^s*$/,next:”start“},{token:”pageBreak“,regex:/^>{3,}$/,next:”start“},{token:”literal“,regex:/^.{4,}s*$/,next:”listingBlock“},{token:”titleUnderline“,regex:/^(?:={2,}|-{2,}|~{2,}|^{2,}|+{2,})s*$/,next:”start“},{token:”singleLineTitle“,regex:/^={1,5}s+S.*$/,next:”start“},{token:”otherBlock“,regex:/^(?:*{2,}|_{2,})s*$/,next:”start“},{token:”optionalTitle“,regex:/^..+$/,next:”start“}],listStart:[{token:”keyword“,regex:/^s*(?:d+.|.|[ixvmIXVM]+)|*{1,5}|-|.{1,5})s/,next:”listText“},{token:”meta.tag“,regex:/^.+(?::{2,4}|;;)(?: |$)/,next:”listText“},{token:”support.function.list.callout“,regex:/^(?:<d+>|d+>|>) /,next:”text“},{token:”keyword“,regex:/^+s*$/,next:”start“}],text:[{token:,regex:/((?:https?://|ftp://|file://|mailto:|callto:)[^s+)([.*?])/},{token:”link“,regex:/(?:https?://|ftp://|file://|mailto:|callto:)[^s+/},{token:”link“,regex:/b+@[w./-]+b/},{include:”macros“},{include:”paragraphEnd“},{token:”literal“,regex:/+{3,}/,next:”smallPassthrough“},{token:”escape“,regex:/((?:C|TM|R))|.{3}|->|<-|=>|<=|&#(?:d+|x+);|(?: |^)–(?=s+S)/},{token:”escape“,regex:/\|\2{2}/},{token:”keyword“,regex:/s+$/},{token:”text“,regex:t},{token:,regex:/(<<+,)(.*?)(>>|$)/},{token:”keyword“,regex:/<<+,?|>>/},{token:”constant.character“,regex:/({2,3}.*?){2,3}/},{token:”keyword“,regex:/[]/},{token:”support“,regex:/^[{3}[wd =-]+]{3}/},{include:”quotes“},{token:”empty“,regex:/^s*$/,next:”start“}],listText:,indentedBlock:[{token:”literal“,regex:/^.+$/,next:”indentedBlock“},{token:”literal“,regex:”“,next:”start“}],listingBlock:[{token:”literal“,regex:/^.{4,}s*$/,next:”dissallowDelimitedBlock“},{token:”constant.numeric“,regex:”<\d+>“},{token:”literal“,regex:”+“},{token:”literal“,regex:”<“}],literalBlock:[{token:”literal“,regex:/^-{4,}s*$/,next:”dissallowDelimitedBlock“},{token:”constant.numeric“,regex:”<\d+>“},{token:”literal“,regex:”+“},{token:”literal“,regex:”<“}],passthroughBlock:,smallPassthrough:[{token:”literal“,regex:/{3,}/,next:”dissallowDelimitedBlock“},{token:”literal“,regex:/^s*$/,next:”dissallowDelimitedBlock“},{token:”literal“,regex:t+”|\d+“},{include:”macros“}],commentBlock:,tableBlock:,innerTableBlock:,macros:[{token:”macro“,regex:/{+}/},{token:,regex:/({)([w-$]+)(:)?(.+)?(})/},{token:,regex:/(w+)(footnote(?:ref)?::?)([^s+)?([.*?])?/},{token:,regex:/([w./-]*::?)([^s+)([.*?])?/},{token:,regex:/([w./-]+::?)()/},{token:“keyword”,regex:/^:.+?:(?= |$)/}],quotes:[{token:“string.italic”,regex:/_[^s].*?__/},{token:“string.italic”,regex:e(“_”)},{token:“keyword.bold”,regex:/*[^s].*?**/},{token:“keyword.bold”,regex:e(“*”)},{token:“literal”,regex:e(“+”)},{token:“literal”,regex:/+[^
s].*?++/},{token:“literal”,regex:/$$.+?$$/},{token:“literal”,regex:e(“‘”)},{token:“keyword”,regex:e(“^”)},{token:“keyword”,regex:e(“~”)},{token:“keyword”,regex:/##?/},{token:“keyword”,regex:/(?:B|^)“|b”/}]};var n={macro:“constant.character”,tableBlock:“doc.comment”,titleUnderline:“markup.heading”,singleLineTitle:“markup.heading”,pageBreak:“string”,option:“string.regexp”,otherBlock:“markup.list”,literal:“support.function”,optionalTitle:“constant.numeric”,escape:“constant.language.escape”,link:“markup.underline.list”};for(var i in this.$rules)for(var o=this.$rules,r=o.length;r–;){var s=o;if(s.include||“string”==typeof s){var a=.concat(this.$rules);s.noEscape&&(a=a.filter((function(e){return!e.next}))),o.splice.apply(o,a)}else s.token in n&&(s.token=n)}};n.inherits(o,i),t.AsciidocHighlightRules=o})),ace.define(“ace/mode/folding/asciidoc”,,(function(e,t){“use strict”;var n=e(“../../lib/oop”),i=e(“./fold_mode”).FoldMode,o=e(“../../range”).Range,r=t.FoldMode=function(){};n.inherits(r,i),function(){this.foldingStartMarker=/^(?:|={10,}|[./=-~^+]{4,}s*$|={1,5} )/,this.singleLineHeadingRe=/^={1,5}(?=s+S)/,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?“=”==i?this.singleLineHeadingRe.test(i)?“start”:e.getLine(n-1).length!=e.getLine(n).length?“”:“start”:“dissallowDelimitedBlock”==e.bgTokenizer.getState(n)?“end”:“start”:“”},this.getFoldWidgetRange=function(e,t,n){function i(t){return(u=e.getTokens(t))&&u.type}function r(){var t=u.value.match(g);if(t)return t.length;var i=d.indexOf(u.value)+1;return 1==i&&e.getLine(n-1).length!=e.getLine(n).length?1/0:i}var s=e.getLine(n),a=s.length,l=e.getLength(),c=n,h=n;if(s.match(this.foldingStartMarker)){var u,d=,p=“markup.heading”,g=this.singleLineHeadingRe;if(i(n)==p){for(var m=r();++n<l;){if(i(n)==p)if(r()<=m)break}if((h=u&&u.value.match(this.singleLineHeadingRe)?n-1:n-2)>c)for(;h>c&&(!i(h)||“[”==u.value);)h–;if(h>c){var f=e.getLine(h).length;return new o(c,a,h,f)}}else{if(“dissallowDelimitedBlock”==e.bgTokenizer.getState(n)){for(;n– >0&&-1!=e.bgTokenizer.getState(n).lastIndexOf(“Block”););if((h=n+1)<c){f=e.getLine(n).length;return new o(h,5,c,a-5)}}else{for(;++n<l&&“dissallowDelimitedBlock”!=e.bgTokenizer.getState(n););if((h=n)>c){f=e.getLine(n).length;return new o(c,5,h,f-5)}}}}}}.call(r.prototype)})),ace.define(“ace/mode/asciidoc”,,(function(e,t){“use strict”;var n=e(“../lib/oop”),i=e(“./text”).Mode,o=e(“./asciidoc_highlight_rules”).AsciidocHighlightRules,r=e(“./folding/asciidoc”).FoldMode,s=function(){this.HighlightRules=o,this.foldingRules=new r};n.inherits(s,i),function(){this.type=“text”,this.getNextLineIndent=function(e,t){if(“listblock”==e){var n=/^((?:.+)?)([ ]+)/.exec(t);return n?new Array(n.length+1).join(“ ”)+n:“”}return this.$getIndent(t)},this.$id=“ace/mode/asciidoc”}.call(s.prototype),t.Mode=s})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/mode/latex_highlight_rules”,,(function(e,t){“use strict”;var n=e(“../lib/oop”),i=e(“./text_highlight_rules”).TextHighlightRules,o=function(){this.$rules={start:[{token:“comment”,regex:“%.*$”},{token:,regex:“(\\(?:documentclass|usepackage|input))(?:(\[)(]*)(\]))?({)([^}]*)(})”},{token:,regex:“(\\(?:label|v?ref|cite(?:*)))(?:({)([^}]*)(}))?”},{token:,regex:“(\\begin)({)(verbatim)(})”,next:“verbatim”},{token:,regex:“(\\begin)({)(lstlisting)(})”,next:“lstlisting”},{token:,regex:“(\\(?:begin|end))({)([\w*]*)(})”},{token:“storage.type”,regex:/\verbb*?/,next:[{token:,regex:“(.)(.*?)(\1|$)|”,next:“start”}]},{token:“storage.type”,regex:“\\+”},{token:“lparen”,regex:“[”},{token:“rparen”,regex:“)}]”},{token:“constant.character.escape”,regex:“\\?”},{token:“string”,regex:“\${1,2}”,next:“equation”}],equation:[{token:“comment”,regex:“%.*$”},{token:“string”,regex:“\${1,2}”,next:“start”},{token:“constant.character.escape”,regex:“\\(?:|[a-zA-Z]+)”},{token:“error”,regex:“^\s*$”,next:“start”},{defaultToken:“string”}],verbatim:[{token:,regex:“(\\end)({)(verbatim)(})”,next:“start”},{defaultToken:“text”}],lstlisting:[{token:,regex:“(\\end)({)(lstlisting)(})”,next:“start”},{defaultToken:“text”}]},this.normalizeRules()};n.inherits(o,i),t.LatexHighlightRules=o})),ace.define(“ace/mode/rdoc_highlight_rules”,,(function(e,t){ /*
* rdoc_highlight_rules.js * * Copyright (C) 2009-11 by RStudio, Inc. * * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of Ajax.org B.V. nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * */
“use strict”;var n=e(“../lib/oop”),i=(e(“../lib/lang”),e(“./text_highlight_rules”).TextHighlightRules),o=(e(“./latex_highlight_rules”),function(){this.$rules={start:[{token:“comment”,regex:“%.*$”},{token:“text”,regex:“\\”},{token:“keyword”,regex:“\\(?:name|alias|method|S3method|S4method|item|code|preformatted|kbd|pkg|var|env|option|command|author|email|url|source|cite|acronym|href|code|preformatted|link|eqn|deqn|keyword|usage|examples|dontrun|dontshow|figure|if|ifelse|Sexpr|RdOpts|inputencoding|usepackage)\b”,next:“nospell”},{token:“keyword”,regex:“\\(?:+|[^a-zA-Z0-9])”},{token:“paren.keyword.operator”,regex:“[”},{token:“paren.keyword.operator”,regex:“)}]”},{token:“text”,regex:“\s+”}],nospell:[{token:“comment”,regex:“%.*$”,next:“start”},{token:“nospell.text”,regex:“\\”},{token:“keyword”,regex:“\\(?:name|alias|method|S3method|S4method|item|code|preformatted|kbd|pkg|var|env|option|command|author|email|url|source|cite|acronym|href|code|preformatted|link|eqn|deqn|keyword|usage|examples|dontrun|dontshow|figure|if|ifelse|Sexpr|RdOpts|inputencoding|usepackage)\b”},{token:“keyword”,regex:“\\(?:+|[^a-zA-Z0-9])”,next:“start”},{token:“paren.keyword.operator”,regex:“[”},{token:“paren.keyword.operator”,regex:“)]”},{token:“paren.keyword.operator”,regex:“}”,next:“start”},{token:“nospell.text”,regex:“\s+”},{token:“nospell.text”,regex:“\w+”}]}});n.inherits(o,i),t.RDocHighlightRules=o})),ace.define(“ace/mode/matching_brace_outdent”,,(function(e,t){“use strict”;var n=e(“../range”).Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^s+$/.test(e)&&/^s*}/.test(t)},this.autoOutdent=function(e,t){var i=e.getLine(t).match(/^(s*})/);if(!i)return 0;var o=i.length,r=e.findMatchingBracket({row:t,column:o});if(!r||r.row==t)return 0;var s=this.$getIndent(e.getLine(r.row));e.replace(new n(t,0,t,o-1),s)},this.$getIndent=function(e){return e.match(/^s*/)}}).call(i.prototype),t.MatchingBraceOutdent=i})),ace.define(“ace/mode/rdoc”,,(function(e,t){ /*
* rdoc.js * * Copyright (C) 2009-11 by RStudio, Inc. * * The Initial Developer of the Original Code is * Ajax.org B.V. * Portions created by the Initial Developer are Copyright (C) 2010 * the Initial Developer. All Rights Reserved. * * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of Ajax.org B.V. nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * */
“use strict”;var n=e(“../lib/oop”),i=e(“./text”).Mode,o=e(“./rdoc_highlight_rules”).RDocHighlightRules,r=e(“./matching_brace_outdent”).MatchingBraceOutdent,s=function(){this.HighlightRules=o,this.$outdent=new r,this.$behaviour=this.$defaultBehaviour};n.inherits(s,i),function(){this.getNextLineIndent=function(e,t){return this.$getIndent(t)},this.$id=“ace/mode/rdoc”}.call(s.prototype),t.Mode=s})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/mode/textile_highlight_rules”,,(function(e,t){“use strict”;var n=e(“../lib/oop”),i=e(“./text_highlight_rules”).TextHighlightRules,o=function(){this.$rules={start:[{token:function(e){return“h”==e.charAt(0)?“markup.heading.”+e.charAt(1):“markup.heading”},regex:“h1|h2|h3|h4|h5|h6|bq|p|bc|pre”,next:“blocktag”},{token:“keyword”,regex:“+|[#]+”},{token:“text”,regex:“.+”}],blocktag:[{token:“keyword”,regex:“\. ”,next:“start”},{token:“keyword”,regex:“\(”,next:“blocktagproperties”}],blocktagproperties:[{token:“keyword”,regex:“\)”,next:“blocktag”},{token:“string”,regex:“+”},{token:“keyword”,regex:“#”}]}};n.inherits(o,i),t.TextileHighlightRules=o})),ace.define(“ace/mode/matching_brace_outdent”,,(function(e,t){“use strict”;var n=e(“../range”).Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^s+$/.test(e)&&/^s*}/.test(t)},this.autoOutdent=function(e,t){var i=e.getLine(t).match(/^(s*})/);if(!i)return 0;var o=i.length,r=e.findMatchingBracket({row:t,column:o});if(!r||r.row==t)return 0;var s=this.$getIndent(e.getLine(r.row));e.replace(new n(t,0,t,o-1),s)},this.$getIndent=function(e){return e.match(/^s*/)}}).call(i.prototype),t.MatchingBraceOutdent=i})),ace.define(“ace/mode/textile”,,(function(e,t){“use strict”;var n=e(“../lib/oop”),i=e(“./text”).Mode,o=e(“./textile_highlight_rules”).TextileHighlightRules,r=e(“./matching_brace_outdent”).MatchingBraceOutdent,s=function(){this.HighlightRules=o,this.$outdent=new r,this.$behaviour=this.$defaultBehaviour};n.inherits(s,i),function(){this.type=“text”,this.getNextLineIndent=function(e,t,n){return“intag”==e?n:“”},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.$id=“ace/mode/textile”,this.snippetFileId=“ace/snippets/textile”}.call(s.prototype),t.Mode=s})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/mode/rst_highlight_rules”,,(function(e,t){“use strict”;var n=e(“../lib/oop”),i=(e(“../lib/lang”),e(“./text_highlight_rules”).TextHighlightRules),o=function(){var e={title:“markup.heading”,list:“markup.heading”,table:“constant”,directive:“keyword.operator”,entity:“string”,link:“markup.underline.list”,bold:“markup.bold”,italic:“markup.italic”,literal:“support.function”,comment:“comment”},t=“(^|\s|["‘(<\)”,n=“(?:$|(?=\s|}]))”;this.$rules={start:[{token:e.title,regex:“(^)()(\2{2,}\s*$)”},{token:,regex:“(^\s*\.\. )([^: ]+::)(.*$)”,next:“codeblock”},{token:e.directive,regex:“::$”,next:“codeblock”},{token:,regex:“(^\.\. _+:)(.*$)”},{token:,regex:“(^__ )(https?://.*$)”},{token:e.entity,regex:“^\.\. \[[^\]]+\] ”},{token:e.comment,regex:“^\.\. .*$”,next:“comment”},{token:e.list,regex:“^\s* ”},{token:e.list,regex:“^\s*(?:|[0-9]+|+)\. ”},{token:e.list,regex:“^\s*\(?(?:|[0-9]+|+)\) ”},{token:e.table,regex:“^={2,}(?: +={2,})+$”},{token:e.table,regex:“^+-{2,}(?:+-{2,})++$”},{token:e.table,regex:“^+={2,}(?:+={2,})++$”},{token:,regex:t+“(“)(?=\S)”,next:“code”},{token:,regex:t+“(**)(?=\S)”,next:“bold”},{token:,regex:t+“(*)(?=\S)”,next:“italic”},{token:e.entity,regex:“\|+?\|”},{token:e.entity,regex:“:+:`\S”,next:“entity”},{token:,regex:t+“(_`)(?=\S)”,next:“entity”},{token:e.entity,regex:“_+?”},{token:,regex:t+“(`)(?=\S)”,next:“link”},{token:e.link,regex:“+?__?”},{token:e.link,regex:“\[]+?\]_”},{token:e.link,regex:“https?://\S+”},{token:e.table,regex:“\|”}],codeblock:[{token:e.literal,regex:“^ .
$”,next:“codeblock”},{token:e.literal,regex:“^$”,next:“codeblock”},{token:“empty”,regex:“”,next:“start”}],code:,bold:,italic:,entity:,link:,comment:[{token:e.comment,regex:“^ .
$”,next:“comment”},{token:e.comment,regex:“^$”,next:“comment”},{token:“empty”,regex:“”,next:“start”}]}};n.inherits(o,i),t.RSTHighlightRules=o})),ace.define(“ace/mode/rst”,,(function(e,t){“use strict”;var n=e(“../lib/oop”),i=e(“./text”).Mode,o=e(“./rst_highlight_rules”).RSTHighlightRules,r=function(){this.HighlightRules=o};n.inherits(r,i),function(){this.type=“text”,this.$id=“ace/mode/rst”,this.snippetFileId=“ace/snippets/rst”}.call(r.prototype),t.Mode=r})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/mode/latex_highlight_rules”,,(function(e,t){“use strict”;var n=e(“../lib/oop”),i=e(“./text_highlight_rules”).TextHighlightRules,o=function(){this.$rules={start:[{token:“comment”,regex:“%.*$”},{token:,regex:“(\\(?:documentclass|usepackage|input))(?:(\[)(]*)(\]))?({)([^}]*)(})”},{token:,regex:“(\\(?:label|v?ref|cite(?:*)))(?:({)([^}]*)(}))?”},{token:,regex:“(\\begin)({)(verbatim)(})”,next:“verbatim”},{token:,regex:“(\\begin)({)(lstlisting)(})”,next:“lstlisting”},{token:,regex:“(\\(?:begin|end))({)([\w*]*)(})”},{token:“storage.type”,regex:/\verbb*?/,next:[{token:,regex:“(.)(.*?)(\1|$)|”,next:“start”}]},{token:“storage.type”,regex:“\\+”},{token:“lparen”,regex:“[”},{token:“rparen”,regex:“)}]”},{token:“constant.character.escape”,regex:“\\?”},{token:“string”,regex:“\${1,2}”,next:“equation”}],equation:[{token:“comment”,regex:“%.*$”},{token:“string”,regex:“\${1,2}”,next:“start”},{token:“constant.character.escape”,regex:“\\(?:|[a-zA-Z]+)”},{token:“error”,regex:“^\s*$”,next:“start”},{defaultToken:“string”}],verbatim:[{token:,regex:“(\\end)({)(verbatim)(})”,next:“start”},{defaultToken:“text”}],lstlisting:[{token:,regex:“(\\end)({)(lstlisting)(})”,next:“start”},{defaultToken:“text”}]},this.normalizeRules()};n.inherits(o,i),t.LatexHighlightRules=o})),ace.define(“ace/mode/folding/latex”,,(function(e,t){“use strict”;var n=e(“../../lib/oop”),i=e(“./fold_mode”).FoldMode,o=e(“../../range”).Range,r=e(“../../token_iterator”).TokenIterator,s={“\subparagraph”:1,“\paragraph”:2,“\subsubsubsection”:3,“\subsubsection”:4,“\subsection”:5,“\section”:6,“\chapter”:7,“\part”:8,“\begin”:9,“\end”:10},a=t.FoldMode=function(){};n.inherits(a,i),function(){this.foldingStartMarker=/^s*\(begin)|s*\(part|chapter|(?:sub)*(?:section|paragraph))b|{s*$/,this.foldingStopMarker=/^s*\(end)b|^s*}/,this.getFoldWidgetRange=function(e,t,n){var i,o=e.doc.getLine(n);return(i=this.foldingStartMarker.exec(o))?i?this.latexBlock(e,n,i.length-1):i?this.latexSection(e,n,i.length-1):this.openingBracketBlock(e,“{”,n,i.index):(i=this.foldingStopMarker.exec(o))?i?this.latexBlock(e,n,i.length-1):this.closingBracketBlock(e,“}”,n,i.index+i.length):void 0},this.latexBlock=function(e,t,n,i){var s={“\begin”:1,“\end”:-1},a=new r(e,t,n),l=a.getCurrentToken();if(l&&(“storage.type”==l.type||“constant.character.escape”==l.type)){var c=s,h=function(){var e=a.stepForward(),t=e&&“lparen”==e.type?a.stepForward().value:“”;return-1===c&&(a.stepBackward(),t&&a.stepBackward()),t},u=,d=-1===c?a.getCurrentTokenColumn():e.getLine(t).length,p=t;for(a.step=-1===c?a.stepBackward:a.stepForward;l=a.step();)if(l&&(“storage.type”==l.type||“constant.character.escape”==l.type)){var g=s;if(g){var m=h();if(g===c)u.unshift(m);else if(u.shift()!==m||!u.length)break}}if(!u.length){if(1==c&&(a.stepBackward(),a.stepBackward()),i)return a.getCurrentTokenRange();t=a.getCurrentTokenRow();return-1===c?new o(t,e.getLine(t).length,p,d):new o(p,d,t,a.getCurrentTokenColumn())}}},this.latexSection=function(e,t,n){var i=new r(e,t,n),a=i.getCurrentToken();if(a&&“storage.type”==a.type){for(var l=s||0,c=0,h=t;a=i.stepForward();)if(“storage.type”===a.type){var u=s||0;if(u>=9){if(c||(h=i.getCurrentTokenRow()-1),(c+=9==u?1:-1)<0)break}else if(u>=l)break}for(c||(h=i.getCurrentTokenRow()-1);h>t&&!/S/.test(e.getLine(h));)h–;return new o(t,e.getLine(t).length,h,e.getLine(h).length)}}}.call(a.prototype)})),ace.define(“ace/mode/latex”,,(function(e,t){“use strict”;var n=e(“../lib/oop”),i=e(“./text”).Mode,o=e(“./latex_highlight_rules”).LatexHighlightRules,r=e(“./behaviour/cstyle”).CstyleBehaviour,s=e(“./folding/latex”).FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new s,this.$behaviour=new r({braces:!0})};n.inherits(a,i),function(){this.type=“text”,this.lineCommentStart=“%”,this.$id=“ace/mode/latex”,this.getMatching=function(e,t,n){null==t&&(t=e.selection.lead),“object”==typeof t&&(n=t.column,t=t.row);var i=e.getTokenAt(t,n);if(i)return“\begin”==i.value||“\end”==i.value?this.foldingRules.latexBlock(e,t,n,!0):void 0}}.call(a.prototype),t.Mode=a})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/theme/tomorrow-css”,,(function(e,t,n){n.exports=’.ace-tomorrow .ace_gutter {n background: f6f6f6;n color: #4D4D4Cn}nn.ace-tomorrow .ace_print-margin {n width: 1px;n background: f6f6f6n}nn.ace-tomorrow {n background-color: FFFFFF;n color: #4D4D4Cn}nn.ace-tomorrow .ace_cursor {n color: AEAFADn}nn.ace-tomorrow .ace_marker-layer .ace_selection {n background: D6D6D6n}nn.ace-tomorrow.ace_multiselect .ace_selection.ace_start {n box-shadow: 0 0 3px 0px FFFFFF;n}nn.ace-tomorrow .ace_marker-layer .ace_step {n background: rgb(255, 255, 0)n}nn.ace-tomorrow .ace_marker-layer .ace_bracket {n margin: -1px 0 0 -1px;n border: 1px solid D1D1D1n}nn.ace-tomorrow .ace_marker-layer .ace_active-line {n background: EFEFEFn}nn.ace-tomorrow .ace_gutter-active-line {n background-color : dcdcdcn}nn.ace-tomorrow .ace_marker-layer .ace_selected-word {n border: 1px solid D6D6D6n}nn.ace-tomorrow .ace_invisible {n color: D1D1D1n}nn.ace-tomorrow .ace_keyword,n.ace-tomorrow .ace_meta,n.ace-tomorrow .ace_storage,n.ace-tomorrow .ace_storage.ace_type,n.ace-tomorrow .ace_support.ace_type {n color: #8959A8n}nn.ace-tomorrow .ace_keyword.ace_operator {n color: #3E999Fn}nn.ace-tomorrow .ace_constant.ace_character,n.ace-tomorrow .ace_constant.ace_language,n.ace-tomorrow .ace_constant.ace_numeric,n.ace-tomorrow .ace_keyword.ace_other.ace_unit,n.ace-tomorrow .ace_support.ace_constant,n.ace-tomorrow .ace_variable.ace_parameter {n color: F5871Fn}nn.ace-tomorrow .ace_constant.ace_other {n color: #666969n}nn.ace-tomorrow .ace_invalid {n color: FFFFFF;n background-color: C82829n}nn.ace-tomorrow .ace_invalid.ace_deprecated {n color: FFFFFF;n background-color: #8959A8n}nn.ace-tomorrow .ace_fold {n background-color: #4271AE;n border-color: #4D4D4Cn}nn.ace-tomorrow .ace_entity.ace_name.ace_function,n.ace-tomorrow .ace_support.ace_function,n.ace-tomorrow .ace_variable {n color: #4271AEn}nn.ace-tomorrow .ace_support.ace_class,n.ace-tomorrow .ace_support.ace_type {n color: C99E00n}nn.ace-tomorrow .ace_heading,n.ace-tomorrow .ace_markup.ace_heading,n.ace-tomorrow .ace_string {n color: #718C00n}nn.ace-tomorrow .ace_entity.ace_name.ace_tag,n.ace-tomorrow .ace_entity.ace_other.ace_attribute-name,n.ace-tomorrow .ace_meta.ace_tag,n.ace-tomorrow .ace_string.ace_regexp,n.ace-tomorrow .ace_variable {n color: C82829n}nn.ace-tomorrow .ace_comment {n color: #8E908Cn}nn.ace-tomorrow .ace_indent-guide {n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bdu3f/BwAlfgctduB85QAAAABJRU5ErkJggg==) right repeat-yn}nn.ace-tomorrow .ace_indent-guide-active {n background: url(“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC”) right repeat-y;n} n‘})),ace.define(“ace/theme/tomorrow”,,(function(e,t){t.isDark=!1,t.cssClass=“ace-tomorrow”,t.cssText=e(“./tomorrow-css”),e(“../lib/dom”).importCssString(t.cssText,t.cssClass,!1)})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/ext/hardwrap”,,(function(e,t){“use strict”;function n(e,t){function n(e,t,n){if(!(e.length<t)){var i=e.slice(0,t),o=e.slice(t),r=/^(?:(s+)|(S+)(s+))/.exec(o),s=/(?:(s+)|(s+)(S+))$/.exec(i),a=0,l=0;return s&&!s&&(a=t-s.length,l=t),r&&!r&&(a||(a=t),l=t+r.length),a?{start:a,end:l}:s&&s&&s.index>n?{start:s.index,end:s.index+s.length}:r&&r?{start:a=t+r.length,end:a+r.length}:void 0}}for(var i=t.column||e.getOption(“printMarginColumn”),r=0!=t.allowMerge,s=Math.min(t.startRow,t.endRow),a=Math.max(t.startRow,t.endRow),l=e.session;s<=a;){var c=l.getLine(s);if(c.length>i){if(d=n(c,i,5)){var h=/^s*/.exec©;l.replace(new o(s,d.start,s,d.end),“n”+h)}a++}else if(r&&/S/.test©&&s!=a){var u=l.getLine(s+1);if(u&&/S/.test(u)){var d,p=c.replace(/s+$/,“”),g=u.replace(/^s+/,“”),m=p+“ ”+g;if((d=n(m,i,5))&&d.start>p.length||m.length<i){var f=new o(s,p.length,s+1,u.length-g.length);l.replace(f,“ ”),s–,a–}else p.length<c.length&&l.remove(new o(s,p.length,s,c.length))}}s++}}function i(e){if(“insertstring”==e.command.name&&/S/.test(e.args)){var t=e.editor,i=t.selection.cursor;if(i.column<=t.renderer.$printMarginColumn)return;var o=t.session.$undoManager.$lastDelta;n(t,{startRow:i.row,endRow:i.row,allowMerge:!1}),o!=t.session.$undoManager.$lastDelta&&t.session.markUndoGroup()}}var o=e(“../range”).Range,r=e(“../editor”).Editor;e(“../config”).defineOptions(r.prototype,“editor”,{hardWrap:{set:function(e){e?this.commands.on(“afterExec”,i):this.commands.off(“afterExec”,i)},value:!1}}),t.hardWrap=n})),ace.define(“ace/keyboard/vim”,,(function(e,t){// CodeMirror, copyright © by Marijn Haverbeke and others “use strict”;function n(e){return{row:e.line,column:e.ch}}function i(e){return new Ft(e.row,e.column)}function o(e,t,n){if(t.line===n.line&&t.ch>=n.ch-1){var i=e.getLine(t.line).charCodeAt(t.ch);55296<=i&&i<=55551&&(n.ch+=1)}return{start:t,end:n}}function r(e){e.setOption(“disableInput”,!0),e.setOption(“showCursorWhenSelecting”,!1),Ot.signal(e,“vim-mode-change”,{mode:“normal”}),e.on(“cursorActivity”,ut),w(e),Ot.on(e.getInputField(),“paste”,a(e))}function s(e){e.setOption(“disableInput”,!1),e.off(“cursorActivity”,ut),Ot.off(e.getInputField(),“paste”,a(e)),e.state.vim=null,gn&&clearTimeout(gn)}function a(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(P(e.getCursor(),0,1)),cn.enterInsertMode(e,{},t))}),t.onPasteFn}function l(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function c(e){return/^$/.test(e)}function h(e){return-1!=“()[]{}”.indexOf(e)}function u(e){return Wt.test(e)}function d(e){return Nt.test(e)}function p(e){return/^s*$/.test(e)}function g(e){return-1!=“.?!”.indexOf(e)}function m(e,t){for(var n=0;n<t.length;n++)if(t==e)return!0;return!1}function f(e,t,n,i,o){if(void 0===t&&!o)throw Error(“defaultValue is required unless callback is provided”);if(n||(n=“string”),Ut={type:n,defaultValue:t,callback:o},i)for(var r=0;r<i.length;r++)Ut[i]=Ut;t&&v(e,t)}function v(e,t,n,i){var o=Ut,r=(i=i||{}).scope;if(!o)return new Error(“Unknown option: ”+e);if(“boolean”==o.type){if(t&&!0!==t)return new Error(“Invalid argument: ”e
“=”+t);!1!==t&&(t=!0)}o.callback?(“local”!==r&&o.callback(t,void 0),“global”!==r&&n&&o.callback(t,n)):(“local”!==r&&(o.value=“boolean”==o.type?!!t:t),“global”!==r&&n&&(n.state.vim.options={value:t}))}function y(e,t,n){var i=Ut,o=(n=n||{}).scope;if(!i)return new Error(“Unknown option: ”+e);if(i.callback){var r=t&&i.callback(void 0,t);return“global”!==o&&void 0!==r?r:“local”!==o?i.callback():void 0}return((r=“global”!==o&&t&&t.state.vim.options)||“local”!==o&&i||{}).value}function b(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=Xt()}function w(e){return e.state.vim||(e.state.vim={inputState:new L,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeReturn:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{},expectLiteralNext:!1}),e.state.vim}function x(){for(var e in qt={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:Qt(),macroModeState:new b,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:“”},registerController:new E({}),searchHistoryController:new I,exCommandHistoryController:new I},Ut){var t=Ut;t.value=t.defaultValue}}function k(e){function t(e){“string”==typeof e?Zt.value=e:Zt=null}if(“<”==e){var n=e.toLowerCase().slice(1,-1),i=n.split(“-”);if(“lt”==(n=i.pop()||“”))e=“<”;else if(“space”==n)e=“ ”;else if(“cr”==n)e=“n”;else if(rn){var o=Zt.value,r={key:rn,target:{value:o,selectionEnd:o.length,selectionStart:o.length}};return Zt.onKeyDown&&Zt.onKeyDown(r,Zt.value,t),void(Zt&&Zt.onKeyUp&&Zt.onKeyUp(r,Zt.value,t))}}if(“n”==e){var s=Zt;Zt=null,s.onClose&&s.onClose(s.value)}else Zt.value=(Zt.value||“”)+e}function C(e,t,n){var i=tn;if(n){if(-1!=en.indexOf(n))return;en.push(n),tn=0!=n.noremap}try{for(var o,r=w(e),s=/<(?:-)*w+>|./gi;o=s.exec(t);){var a=o,l=r.insertMode;if(Zt)k(a);else if(!Jt.handleKey(e,a,“mapping”)&&l&&r.insertMode){if(“<”==a){var c=a.toLowerCase().slice(1,-1),h=c.split(“-”);if(“lt”==(c=h.pop()||“”))a=“<”;else if(“space”==c)a=“ ”;else if(“cr”==c)a=“n”;else{if(rn.hasOwnProperty©){ft(e,a=rn);continue}a=a,s.lastIndex=o.index+1}}e.replaceSelection(a)}}}finally{if(en.pop(),tn=!!en.length&&i,!en.length&&Zt){var u=Zt;Zt=null,Ge(e,u)}}}function $(e,t){var n=e.key;if(!on){n.length>1&&“n”==n&&(n=n.replace(“Numpad”,“”)),n=nn||n;var i=“”;if(e.ctrlKey&&(i+=“C-”),e.altKey&&(i+=“A-”),e.metaKey&&(i+=“M-”),Ot.isMac&&e.altKey&&!e.metaKey&&!e.ctrlKey&&(i=i.slice(2)),(i||n.length>1)&&e.shiftKey&&(i+=“S-”),t&&!t.expectLiteralNext&&1==n.length)if(Pt.keymap&&n in Pt.keymap)0==Pt.remapCtrl&&i||(n=Pt.keymap);else if(n.charCodeAt(0)>255){var o=e.code&&e.code.slice(-1)||“”;e.shiftKey||(o=o.toLowerCase()),o&&(n=o)}return(i+=n).length>1&&(i=“<”i
“>”),i}}function S(e,t){Pt.string!==e&&(Pt=A(e)),Pt.remapCtrl=t}function A(e){function t(e){return e.split(/\?(.)/).filter(Boolean)}var n={};return e?(e.split(/((?:|\.)+),/).map((function(e){if(e){var i=e.split(/((?:|\.)+);/);if(3==i.length){var o=t(i),r=t(i);if(o.length!==r.length)return;for(var s=0;s<o.length;++s)n[o]=r}else if(1==i.length){var a=t(e);if(a.length%2!=0)return;for(s=0;s<a.length;s+=2)n[a]=a}}})),{keymap:n,string:e}):{keymap:n,string:“”}}function L(){this.prefixRepeat=[],this.motionRepeat=,this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null,this.changeQueue=null}function M(e,t){e.state.vim.inputState=new L,e.state.vim.expectLiteralNext=!1,Ot.signal(e,“vim-command-done”,t)}function _(){this.removed=[],this.inserted=“”}function T(e,t,n){this.clear(),this.keyBuffer=,this.insertModeChanges=[],this.searchQueries=,this.linewise=!!t,this.blockwise=!!n}function R(e,t){var n=qt.registerController.registers;if(!e||1!=e.length)throw Error(“Register name must be 1 character”);n=t,Vt.push(e)}function E(e){this.registers=e,this.unnamedRegister=e=new T,e=new T,e=new T,e=new T,e=new T}function I(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}function O(e,t){an=t}function N(e,t){for(var n=[],i=0;i<t;i++)n.push(e);return n}function F(e,t){ln=t}function D(e,t){cn=t}function H(e,t,n){var i=e.state.vim,o=i.insertMode||i.visualMode,r=Math.min(Math.max(e.firstLine(),t.line),e.lastLine()),s=e.getLine®,a=s.length-1+Number(!!o),l=Math.min(Math.max(0,t.ch),a),c=s.charCodeAt(l);if(56320<=c&&c<=57343){var h=1;n&&n.line==r&&n.ch>l&&(h=-1),(l+=h)>a&&(l-=2)}return new Ft(r,l)}function B(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t=e);return t}function P(e,t,n){return“object”==typeof t&&(n=t.ch,t=t.line),new Ft(e.line+t,e.ch+n)}function W(e,t,n,i){i.operator&&(n=“operatorPending”);for(var o,r=[],s=,a=tn?t.length-Ht:0;a<t.length;a++){var l=t;“insert”==n&&“insert”!=l.context||l.context&&l.context!=n||i.operator&&“action”==l.type||!(o=z(e,l.keys))||(“partial”==o&&r.push(l),“full”==o&&s.push(l))}return{partial:r.length&&r,full:s.length&&s}}function z(e,t){var n=“<character>”==t.slice(-11),i=“<register>”==t.slice(-10);if(n||i){var o=t.length-(n?11:10),r=e.slice(0,o),s=t.slice(0,o);return r==s&&e.length>o?“full”:0==s.indexOf®&&“partial”}return e==t?“full”:0==t.indexOf(e)&&“partial”}function j(e){var t=/^.*(<+>)$/.exec(e),n=t?t:e.slice(-1);if(n.length>1)switch(n){case“<CR>”:n=“n”;break;case“<Space>”:n=“ ”;break;default:n=“”}return n}function G(e,t,n){return function(){for(var i=0;i<n;i++)t(e)}}function V(e){return new Ft(e.line,e.ch)}function K(e,t){return e.ch==t.ch&&e.line==t.line}function U(e,t){return e.line<t.line||e.line==t.line&&e.ch<t.ch}function q(e,t){return arguments.length>2&&(t=q.apply(void 0,Array.prototype.slice.call(arguments,1))),U(e,t)?e:t}function Y(e,t){return arguments.length>2&&(t=Y.apply(void 0,Array.prototype.slice.call(arguments,1))),U(e,t)?t:e}function Q(e,t,n){var i=U(e,t),o=U(t,n);return i&&o}function X(e,t){return e.getLine(t).length}function Z(e){return e.trim?e.trim():e.replace(/^s+|s+$/g,“”)}function J(e){return e.replace(/([.?*+$/\(){}|-])/g,“\$1”)}function ee(e,t,n){var i=X(e,t),o=new Array(n-i+1).join(“ ”);e.setCursor(new Ft(t,i)),e.replaceRange(o,e.getCursor())}function te(e,t){var n=[],i=e.listSelections(),o=V(e.clipPos(t)),r=!K(t,o),s=ie(i,e.getCursor(“head”)),a=K(i.head,i.anchor),l=i.length-1,c=l-s>s?l:0,h=i.anchor,u=Math.min(h.line,o.line),d=Math.max(h.line,o.line),p=h.ch,g=o.ch,m=i.head.ch-p,f=g-p;m>0&&f<=0?(p++,r||g–):m<0&&f>=0?(p–,a||g++):m<0&&-1==f&&(p–,g++);for(var v=u;v<=d;v++){var y={anchor:new Ft(v,p),head:new Ft(v,g)};n.push(y)}return e.setSelections(n),t.ch=g,h.ch=p,h}function ne(e,t,n){for(var i=[],o=0;o<n;o++){var r=P(t,o,0);i.push({anchor:r,head:r})}e.setSelections(i,0)}function ie(e,t,n){for(var i=0;i<e.length;i++){var o=“head”!=n&&K(e.anchor,t),r=“anchor”!=n&&K(e.head,t);if(o||r)return i}return-1}function oe(e,t){var n=t.lastSelection,i=function(){var t=e.listSelections(),n=t,i=t;return},o=function(){var t=e.getCursor(),i=e.getCursor(),o=n.visualBlock;if(o){var r=o.width,s=o.height;i=new Ft(t.line+s,t.ch+r);for(var a=[],l=t.line;l<i.line;l++){var c={anchor:new Ft(l,t.ch),head:new Ft(l,i.ch)};a.push©}e.setSelections(a)}else{var h=n.anchorMark.find(),u=n.headMark.find(),d=u.line-h.line,p=u.ch-h.ch;i={line:i.line+d,ch:d?i.ch:p+i.ch},n.visualLine&&(t=new Ft(t.line,0),i=new Ft(i.line,X(e,i.line))),e.setSelection(t,i)}return};return t.visualMode?i():o()}function re(e,t){var n=t.sel.anchor,i=t.sel.head;t.lastPastedText&&(i=e.posFromIndex(e.indexFromPos(n)+t.lastPastedText.length),t.lastPastedText=null),t.lastSelection={anchorMark:e.setBookmark(n),headMark:e.setBookmark(i),anchor:V(n),head:V(i),visualMode:t.visualMode,visualLine:t.visualLine,visualBlock:t.visualBlock}}function se(e,t,n,i){var o,r=e.state.vim.sel,s=i?t:r.head,a=i?t:r.anchor;return U(n,t)&&(o=n,n=t,t=o),U(s,a)?(s=q(t,s),a=Y(a,n)):(a=q(t,a),-1==(s=P(s=Y(s,n),0,-1)).ch&&s.line!=e.firstLine()&&(s=new Ft(s.line-1,X(e,s.line-1)))),}function ae(e,t,n){var i=e.state.vim,o=le(e,t=t||i.sel,n=n||i.visualLine?“line”:i.visualBlock?“block”:“char”);e.setSelections(o.ranges,o.primary)}function le(e,t,n,i){var o=V(t.head),r=V(t.anchor);if(“char”==n){var s=i||U(t.head,t.anchor)?0:1,a=U(t.head,t.anchor)?1:0;return o=P(t.head,0,s),{ranges:,primary:0}}if(“line”==n){if(U(t.head,t.anchor))o.ch=0,r.ch=X(e,r.line);else{r.ch=0;var l=e.lastLine();o.line>l&&(o.line=l),o.ch=X(e,o.line)}return{ranges:,primary:0}}if(“block”==n){var c=Math.min(r.line,o.line),h=r.ch,u=Math.max(r.line,o.line),d=o.ch;h<d?d+=1:h+=1;for(var p=u-c+1,g=o.line==c?0:p-1,m=[],f=0;f<p;f++)m.push({anchor:new Ft(c+f,h),head:new Ft(c+f,d)});return{ranges:m,primary:g}}}function ce(e){var t=e.getCursor(“head”);return 1==e.getSelection().length&&(t=q(t,e.getCursor(“anchor”))),t}function he(e,t){var n=e.state.vim;!1!==t&&e.setCursor(H(e,n.sel.head)),re(e,n),n.visualMode=!1,n.visualLine=!1,n.visualBlock=!1,n.insertMode||Ot.signal(e,“vim-mode-change”,{mode:“normal”})}function ue(e,t,n){var i=e.getRange(t,n);if(/ns*$/.test(i)){var o=i.split(“n”);o.pop();for(var r=o.pop();o.length>0&&r&&p®;r=o.pop())n.line–,n.ch=0;r?(n.line–,n.ch=X(e,n.line)):n.ch=0}}function de(e,t,n){t.ch=0,n.ch=0,n.line++}function pe(e){if(!e)return 0;var t=e.search(/S/);return-1==t?e.length:t}function ge(e,t,n){var i,o=t.inclusive,r=t.innerWord,s=t.bigWord,a=t.noSymbol,l=t.multiline,c=n||ce(e),h=e.getLine(c.line),u=h,d=c.line,p=d,g=c.ch,m=a?zt:jt;if(r&&/s/.test(h.charAt(g)))m=function(e){return/s/.test(e)};else{for(;!m(h.charAt(g));)if(++g>=h.length){if(!l)return null;g–,i=be(e,c,!0,s,!0);break}s?m=jt:(m=zt)(h.charAt(g))||(m=zt)}for(var f=g,v=g;m(h.charAt(v))&&v>=0;)v–;if(v++,i)f=i.to,p=i.line,(u=e.getLine(p))||0!=f||f++;else for(;m(h.charAt(f))&&f<h.length;)f++;if(o){var y=f,b=c.ch<=v&&/s/.test(h.charAt(c.ch));if(!b)for(;/s/.test(u.charAt(f))&&f<u.length;)f++;if(y==f||b){for(var w=v;/s/.test(h.charAt(v-1))&&v>0;)v–;v||b||(v=w)}}return{start:new Ft(d,v),end:new Ft(p,f)}}function me(e,t,n){var i=t;if(!Ot.findMatchingTag||!Ot.findEnclosingTag)return{start:i,end:i};var o=Ot.findMatchingTag(e,t)||Ot.findEnclosingTag(e,t);return o&&o.open&&o.close?n?{start:o.open.from,end:o.close.to}:{start:o.open.to,end:o.close.from}:{start:i,end:i}}function fe(e,t,n){K(t,n)||qt.jumpList.add(e,t,n)}function ve(e,t){qt.lastCharacterSearch.increment=e,qt.lastCharacterSearch.forward=t.forward,qt.lastCharacterSearch.selectedCharacter=t.selectedCharacter}function ye(e,t,n,i){var o=V(e.getCursor()),r=n?1:-1,s=n?e.lineCount():-1,a=o.ch,l=o.line,c=e.getLine(l),h={lineText:c,nextCh:c.charAt(a),lastCh:null,index:a,symb:i,reverseSymb:(n?{“)”:“(”,“}”:“{”}:{“(”:“)”,“{”:“}”})[i],forward:n,depth:0,curMoveThrough:!1},u=hn;if(!u)return o;var d=un.init,p=un.isComplete;for(d&&d(h);l!==s&&t;){if(h.index+=r,h.nextCh=h.lineText.charAt(h.index),!h.nextCh){if(l+=r,h.lineText=e.getLine(l)||“”,r>0)h.index=0;else{var g=h.lineText.length;h.index=g>0?g-1:0}h.nextCh=h.lineText.charAt(h.index)}p(h)&&(o.line=l,o.ch=h.index,t–)}return h.nextCh||h.curMoveThrough?new Ft(l,h.index):o}function be(e,t,n,i,o){var r=t.line,s=t.ch,a=e.getLine®,c=n?1:-1,h=i?jt:zt;if(o&&“”==a){if(r+=c,a=e.getLine®,!l(e,r))return null;s=n?0:a.length}for(;;){if(o&&“”==a)return{from:0,to:0,line:r};for(var u=c>0?a.length:-1,d=u,p=u;s!=u;){for(var g=!1,m=0;m<h.length&&!g;++m)if(h(a.charAt(s))){for(d=s;s!=u&&h(a.charAt(s));)s+=c;if(g=d!=(p=s),d==t.ch&&r==t.line&&p==d+c)continue;return{from:Math.min(d,p+1),to:Math.max(d,p),line:r}}g||(s+=c)}if(!l(e,r+=c))return null;a=e.getLine®,s=c>0?0:a.length}}function we(e,t,n,i,o,r){var s=V(t),a=[];(i&&!o||!i&&o)&&n++;for(var l=!(i&&o),c=0;c<n;c++){var h=be(e,t,i,r,l);if(!h){var u=X(e,e.lastLine());a.push(i?{line:e.lastLine(),from:u,to:u}:{line:0,from:0,to:0});break}a.push(h),t=new Ft(h.line,i?h.to-1:h.from)}var d=a.length!=n,p=a,g=a.pop();return i&&!o?(d||p.from==s.ch&&p.line==s.line||(g=a.pop()),new Ft(g.line,g.from)):i&&o?new Ft(g.line,g.to-1):!i&&o?(d||p.to==s.ch&&p.line==s.line||(g=a.pop()),new Ft(g.line,g.to)):new Ft(g.line,g.from)}function xe(e,t,n,i,o){var r=new Ft(t.line+n.repeat-1,1/0),s=e.clipPos®;return s.ch–,o||(i.lastHPos=1/0,i.lastHSPos=e.charCoords(s,“div”).left),r}function ke(e,t,n,i,o){for(var r,s=o||e.getCursor(),a=s.ch,l=0;l<t;l++){if(-1==(r=Se(a,e.getLine(s.line),i,n,!0)))return null;a=r}return new Ft(e.getCursor().line,r)}function Ce(e,t){var n=e.getCursor().line;return H(e,new Ft(n,t-1))}function $e(e,t,n,i){(m(n,Gt)||Kt.test(n))&&(t.marks&&t.marks.clear(),t.marks=e.setBookmark(i))}function Se(e,t,n,i,o){var r;return i?-1==(r=t.indexOf(n,e+1))||o||(r-=1):-1==(r=t.lastIndexOf(n,e-1))||o||(r+=1),r}function Ae(e,t,n,i,o){function r(t){return!/S/.test(e.getLine(t))}function s(e,t,n){return n?r(e)!=r(e+t):!r(e)&&r(e+t)}function a(t){i=i>0?1:-1;var n=e.ace.session.getFoldLine(t);n&&t+i>n.start.row&&t+i<n.end.row&&(i=(i>0?n.end.row:n.start.row)-t)}var l,c=t.line,h=e.firstLine(),u=e.lastLine(),d=c;if(i){for(;h<=d&&d<=u&&n>0;)a(d),s(d,i)&&n–,d+=i;return new Ft(d,0)}var p=e.state.vim;if(p.visualLine&&s(c,1,!0)){var g=p.sel.anchor;s(g.line,-1,!0)&&(o&&g.line==c||(c+=1))}var m=r©;for(d=c;d<=u&&n;d++)s(d,1,!0)&&(o&&r(d)==m||n–);for(l=new Ft(d,0),d>u&&!m?m=!0:o=!1,d=c;d>h&&(o&&r(d)!=m&&d!=c||!s(d,-1,!0));d–);return{start:new Ft(d,0),end:l}}function Le(e,t,n,i,o){function r(e){e.pos+e.dir<0||e.pos+e.dir>=e.line.length?e.line=null:e.pos+=e.dir}function s(e,t,n,i){var s={line:e.getLine(t),ln:t,pos:n,dir:i};if(“”===s.line)return{ln:s.ln,pos:s.pos};var a=s.pos;for(r(s);null!==s.line;){if(a=s.pos,g(s.line)){if(o){for(r(s);null!==s.line&&p(s.line);)a=s.pos,r(s);return{ln:s.ln,pos:a+1}}return{ln:s.ln,pos:s.pos+1}}r(s)}return{ln:s.ln,pos:a+1}}function a(e,t,n,i){var s=e.getLine(t),a={line:s,ln:t,pos:n,dir:i};if(“”===a.line)return{ln:a.ln,pos:a.pos};var l=a.pos;for(r(a);null!==a.line;){if(p(a.line)||g(a.line)){if(g(a.line))return o&&p(a.line)?{ln:a.ln,pos:a.pos+1}:{ln:a.ln,pos:l}}else l=a.pos;r(a)}return a.line=s,o&&p(a.line)?{ln:a.ln,pos:a.pos}:{ln:a.ln,pos:l}}for(var l={ln:t.line,pos:t.ch};n>0;)l=i<0?a(e,l.ln,l.pos,i):s(e,l.ln,l.pos,i),n–;return new Ft(l.ln,l.pos)}function Me(e,t,n,i){function o(e,t){if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){if(t.ln+=t.dir,!l(e,t.ln))return t.line=null,t.ln=null,void(t.pos=null);t.line=e.getLine(t.ln),t.pos=t.dir>0?0:t.line.length-1}else t.pos+=t.dir}function r(e,t,n,i){var r=“”===(c=e.getLine(t)),s={line:c,ln:t,pos:n,dir:i},a={ln:s.ln,pos:s.pos},l=“”===s.line;for(o(e,s);null!==s.line;){if(a.ln=s.ln,a.pos=s.pos,“”===s.line&&!l)return{ln:s.ln,pos:s.pos};if(r&&“”!==s.line&&!p(s.line))return{ln:s.ln,pos:s.pos};!g(s.line)||r||s.pos!==s.line.length-1&&!p(s.line)||(r=!0),o(e,s)}var c=e.getLine(a.ln);a.pos=0;for(var h=c.length-1;h>=0;–h)if(!p(c)){a.pos=h;break}return a}function s(e,t,n,i){var r={line:l=e.getLine(t),ln:t,pos:n,dir:i},s={ln:r.ln,pos:null},a=“”===r.line;for(o(e,r);null!==r.line;){if(“”===r.line&&!a)return null!==s.pos?s:{ln:r.ln,pos:r.pos};if(g(r.line)&&null!==s.pos&&(r.ln!==s.ln||r.pos+1!==s.pos))return s;“”===r.line||p(r.line)||(a=!1,s={ln:r.ln,pos:r.pos}),o(e,r)}var l=e.getLine(s.ln);s.pos=0;for(var c=0;c<l.length;++c)if(!p(l)){s.pos=c;break}return s}for(var a={ln:t.line,pos:t.ch};n>0;)a=i<0?s(e,a.ln,a.pos,i):r(e,a.ln,a.pos,i),n–;return new Ft(a.ln,a.pos)}function _e(e,t,n,i){var o,r,s=t,a={“(”:/[()]/,“)”:/[()]/,“[”:/[[]]/,“]”:/[[]]/,“{”:/[{}]/,“}”:/[{}]/,“<”:/[<>]/,“>”:/[<>]/}[n],l={“(”:“(”,“)”:“(”,“[”:“[”,“]”:“[”,“{”:“{”,“}”:“”,“<”:“<”,“>”:“<”,c=e.getLine(s.line).charAt(s.ch)===l?1:0;if(o=e.scanForBracket(new Ft(s.line,s.ch+c),-1,void 0,{bracketRegex:a}),r=e.scanForBracket(new Ft(s.line,s.ch+c),1,void 0,{bracketRegex:a}),!o||!r)return null;if(o=o.pos,r=r.pos,o.line==r.line&&o.ch>r.ch||o.line>r.line){var h=o;o=r,r=h}return i?r.ch+=1:o.ch+=1,{start:o,end:r}}function Te(e,t,n,i){var o,r,s,a,l=V(t),c=e.getLine(l.line).split(“”),h=c.indexOf(n);if(l.ch<h)l.ch=h;else if(h<l.ch&&c==n){var u=/string/.test(e.getTokenTypeAt(P(t,0,1))),d=/string/.test(e.getTokenTypeAt(t));u&&!d||(r=l.ch,–l.ch)}if(c!=n||r)for(s=l.ch;s>-1&&!o;s–)c==n&&(o=s+1);else o=l.ch+1;if(o&&!r)for(s=o,a=c.length;s<a&&!r;s++)c==n&&(r=s);return o&&r?(i&&(–o,++r),{start:new Ft(l.line,o),end:new Ft(l.line,r)}):{start:l,end:l}}function Re(){}function Ee(e){var t=e.state.vim;return t.searchState_||(t.searchState_=new Re)}function Ie(e){return Ne(e,“/”)}function Oe(e){return Fe(e,“/”)}function Ne(e,t){var n=Fe(e,t)||[];if(!n.length)return;var i=[];if(0===n){for(var o=0;o<n.length;o++)“number”==typeof n&&i.push(e.substring(n+1,n));return i}}function Fe(e,t){t||(t=“/”);for(var n=!1,i=[],o=0;o<e.length;o++){var r=e.charAt(o);n||r!=t||i.push(o),n=!n&&“\”==r}return i}function De(e){for(var t=“|(){”,n=“}”,i=!1,o=[],r=-1;r<e.length;r++){var s=e.charAt®||“”,a=e.charAt(r+1)||“”,l=a&&-1!=t.indexOf(a);i?(“\”===s&&l||o.push(s),i=!1):“\”===s?(i=!0,a&&-1!=n.indexOf(a)&&(l=!0),l&&“\”!==a||o.push(s)):(o.push(s),l&&“\”!==a&&o.push(“\”))}return o.join(“”)}function He(e){for(var t=!1,n=[],i=-1;i<e.length;i++){var o=e.charAt(i)||“”,r=e.charAt(i+1)||“”;dn?(n.push(dn),i++):t?(n.push(o),t=!1):“\”===o?(t=!0,u®||“$”===r?n.push(“$”):“/”!==r&&“\”!==r&&n.push(“\”)):(“$”===o&&n.push(“$”),n.push(o),“/”===r&&n.push(“\”))}return n.join(“”)}function Be(e){for(var t=new Ot.StringStream(e),n=[];!t.eol();){for(;t.peek()&&“\”!=t.peek();)n.push(t.next());var i=!1;for(var o in pn)if(t.match(o,!0)){i=!0,n.push(pn);break}i||n.push(t.next())}return n.join(“”)}function Pe(e,t,n){if(qt.registerController.getRegister(“/”).setText(e),e instanceof RegExp)return e;var i,o,r=Oe(e);r.length?(i=e.substring(0,r),o=-1!=e.substring(r).indexOf(“i”)):i=e;return i?(y(“pcre”)||(i=De(i)),n&&(t=/^*$/.test(i)),new RegExp(i,t||o?“im”:“m”)):null}function We(e){“string”==typeof e&&(e=document.createElement(e));for(var t,n=1;n<arguments.length;n++)if(t=arguments)if(“object”!=typeof t&&(t=document.createTextNode(t)),t.nodeType)e.appendChild(t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(“$”===i?e.style=t:e.setAttribute(i,t));return e}function ze(e,t){var n=We(“div”,{$color:“red”,$whiteSpace:“pre”,class:“cm-vim-message”},t);e.openNotification?e.openNotification(n,{bottom:!0,duration:5e3}):alert(n.innerText)}function je(e,t){return We(“div”,{$display:“flex”},We(“span”,{$fontFamily:“monospace”,$whiteSpace:“pre”,$flex:1},e,We(“input”,{type:“text”,autocorrect:“off”,autocapitalize:“off”,spellcheck:“false”,$width:“100%”})),t&&We(“span”,{$color:“#888”},t))}function Ge(e,t){if(en.length)return t.value||(t.value=“”),void(Zt=t);var n=je(t.prefix,t.desc);if(e.openDialog)e.openDialog(n,t.onClose,{onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:t.value});else{var i=“”;“string”!=typeof t.prefix&&t.prefix&&(i+=t.prefix.textContent),t.desc&&(i+=“ ”+t.desc),t.onClose(prompt(i,“”))}}function Ve(e,t){if(e instanceof RegExp&&t instanceof RegExp){for(var n=,i=0;i<n.length;i++){var o=n;if(e!==t)return!1}return!0}return!1}function Ke(e,t,n,i){if(t){var o=Ee(e),r=Pe(t,!!n,!!i);if®return qe(e,r),Ve(r,o.getQuery())||o.setQuery®,r}}function Ue(e){if(“^”==e.source.charAt(0))var t=!0;return{token:function(n){if(!t||n.sol()){var i=n.match(e,!1);if(i)return 0==i.length?(n.next(),“searching”):n.sol()||(n.backUp(1),e.exec(n.next()+i))?(n.match(e),“searching”):(n.next(),null);for(;!n.eol()&&(n.next(),!n.match(e,!1)););}else n.skipToEnd()},query:e}}function qe(e,t){clearTimeout(gn),Ee(e).highlightTimeout=gn,gn=setTimeout((function(){if(e.state.vim){var n=Ee(e);n.highlightTimeout=null;var i=n.getOverlay();i&&t==i.query||(i&&e.removeOverlay(i),i=Ue(t),e.addOverlay(i),e.showMatchesOnScrollbar&&(n.getScrollbarAnnotate()&&n.getScrollbarAnnotate().clear(),n.setScrollbarAnnotate(e.showMatchesOnScrollbar(t))),n.setOverlay(i))}}),50)}function Ye(e,t,n,i){return void 0===i&&(i=1),e.operation((function(){for(var o=e.getCursor(),r=e.getSearchCursor(n,o),s=0;s<i;s++){var a=r.find(t);if(0==s&&a&&K(r.from(),o)){var l=t?r.from():r.to();(a=r.find(t))&&!a&&K(r.from(),l)&&e.getLine(l.line).length==l.ch&&(a=r.find(t))}if(!a&&!(r=e.getSearchCursor(n,t?new Ft(e.lastLine()):new Ft(e.firstLine(),0))).find(t))return}return r.from()}))}function Qe(e,t,n,i,o){return void 0===i&&(i=1),e.operation((function(){var r=e.getCursor(),s=e.getSearchCursor(n,r),a=s.find(!t);!o.visualMode&&a&&K(s.from(),r)&&s.find(!t);for(var l=0;l<i;l++)if(!(a=s.find(t))&&!(s=e.getSearchCursor(n,t?new Ft(e.lastLine()):new Ft(e.firstLine(),0))).find(t))return;return}))}function Xe(e){var t=Ee(e);t.highlightTimeout&&(clearTimeout(t.highlightTimeout),t.highlightTimeout=null),e.removeOverlay(Ee(e).getOverlay()),t.setOverlay(null),t.getScrollbarAnnotate()&&(t.getScrollbarAnnotate().clear(),t.setScrollbarAnnotate(null))}function Ze(e,t,n){return“number”!=typeof e&&(e=e.line),t instanceof Array?m(e,t):“number”==typeof n?e>=t&&e<=n:e==t}function Je(e){var t=e.ace.renderer;return{top:t.getFirstFullyVisibleRow(),bottom:t.getLastFullyVisibleRow()}}function et(e,t,n){if(“’”==n||“‘”==n)return qt.jumpList.find(e,-1)||new Ft(0,0);if(“.”==n)return tt(e);var i=t.marks;return i&&i.find()}function tt(e){if(e.getLastEditEnd)return e.getLastEditEnd();for(var t=e.doc.history.done,n=t.length;n–;)if(t.changes)return V(t.changes.to)}function nt(e,t,n,i,o,r,s,a,l){function c(){e.operation((function(){for(;!y;)h(),d();p()}))}function h(){var t=e.getRange(r.from(),r.to()).replace(s,a),n=r.to().line;r.replace(t),f=r.to().line,o+=f-n,v=f<n}function u(){var e=m&&V(r.to()),t=r.findNext();return t&&!t&&e&&K(r.from(),e)&&(t=r.findNext()),t}function d(){for(;u()&&Ze(r.from(),i,o);)if(n||r.from().line!=f||v)return e.scrollIntoView(r.from(),30),e.setSelection(r.from(),r.to()),m=r.from(),void(y=!1);y=!0}function p(t){if(t&&t(),e.focus(),m){e.setCursor(m);var n=e.state.vim;n.exMode=!1,n.lastHPos=n.lastHSPos=m.ch}l&&l()}function g(t,n,i){switch(Ot.e_stop(t),$(t)){case“y”:h(),d();break;case“n”:d();break;case“a”:var o=l;l=void 0,e.operation©,l=o;break;case“l”:h();case“q”:case“<Esc>”:case“<C-c>”:case“<C-[>”:p(i)}return y&&p(i),!0}e.state.vim.exMode=!0;var m,f,v,y=!1;if(d(),!y)return t?void Ge(e,{prefix:We(“span”,“replace with ”,We(“strong”,a),“ (y/n/a/q/l)”),onKeyDown:g}):(c(),void(l&&l()));ze(e,“No matches for ”+s.source)}function it(e,t){var n=e.state.vim,i=qt.macroModeState,o=qt.registerController.getRegister(“.”),r=i.isPlaying,s=i.lastInsertModeChanges;r||(e.off(“change”,ht),n.insertEnd&&n.insertEnd.clear(),n.insertEnd=null,Ot.off(e.getInputField(),“keydown”,gt)),!r&&n.insertModeRepeat>1&&(mt(e,n,n.insertModeRepeat-1,!0),n.lastEditInputState.repeatOverride=n.insertModeRepeat),delete n.insertModeRepeat,n.insertMode=!1,t||e.setCursor(e.getCursor().line,e.getCursor().ch-1),e.setOption(“keyMap”,“vim”),e.setOption(“disableInput”,!0),e.toggleOverwrite(!1),o.setText(s.changes.join(“”)),Ot.signal(e,“vim-mode-change”,{mode:“normal”}),i.isRecording&<(i)}function ot(e){Dt.unshift(e)}function rt(e,t,n,i,o){var r={keys:e,type:t};for(var s in r=n,r=i,o)r=o;ot®}function st(e,t,n,i){var o=qt.registerController.getRegister(i);if(“:”==i)return o.keyBuffer&&vn.processCommand(e,o.keyBuffer),void(n.isPlaying=!1);var r=o.keyBuffer,s=0;n.isPlaying=!0,n.replaySearchQueries=o.searchQueries.slice(0);for(var a=0;a<r.length;a++)for(var l,c,h=r;h;)if(c=(l=/<w+-.+?>|<w+>|./.exec(h)),h=h.substring(l.index+c.length),Jt.handleKey(e,c,“macro”),t.insertMode){var u=o.insertModeChanges.changes;qt.macroModeState.lastInsertModeChanges.changes=u,vt(e,u,1),it(e)}n.isPlaying=!1}function at(e,t){if(!e.isPlaying){var n=e.latestRegister,i=qt.registerController.getRegister(n);i&&i.pushText(t)}}function lt(e){if(!e.isPlaying){var t=e.latestRegister,n=qt.registerController.getRegister(t);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(e.lastInsertModeChanges)}}function ct(e,t){if(!e.isPlaying){var n=e.latestRegister,i=qt.registerController.getRegister(n);i&&i.pushSearchQuery&&i.pushSearchQuery(t)}}function ht(e,t){var n=qt.macroModeState,i=n.lastInsertModeChanges;if(!n.isPlaying)for(var o=e.state.vim;t;){if(i.expectCursorActivityForChange=!0,i.ignoreCount>1)i.ignoreCount–;else if(“+input”==t.origin||“paste”==t.origin||void 0===t.origin){var r=e.listSelections().length;r>1&&(i.ignoreCount=r);var s=t.text.join(“n”);if(i.maybeReset&&(i.changes=[],i.maybeReset=!1),s)if(e.state.overwrite&&!/n/.test(s))i.changes.push();else{if(s.length>1){var a=o&&o.insertEnd&&o.insertEnd.find(),l=e.getCursor();if(a&&a.line==l.line){var c=a.ch-l.ch;c>0&&c<s.length&&(i.changes.push(),s=“”)}}s&&i.changes.push(s)}}t=t.next}}function ut(e){var t=e.state.vim;if(t.insertMode){var n=qt.macroModeState;if(n.isPlaying)return;var i=n.lastInsertModeChanges;i.expectCursorActivityForChange?i.expectCursorActivityForChange=!1:(i.maybeReset=!0,t.insertEnd&&t.insertEnd.clear(),t.insertEnd=e.setBookmark(e.getCursor(),{insertLeft:!0}))}else e.curOp.isVimOp||dt(e,t)}function dt(e,t,n){var i=e.getCursor(“anchor”),o=e.getCursor(“head”);if(t.visualMode&&!e.somethingSelected()?he(e,!1):t.visualMode||t.insertMode||!e.somethingSelected()||(t.visualMode=!0,t.visualLine=!1,Ot.signal(e,“vim-mode-change”,{mode:“visual”})),t.visualMode){var r=U(o,i)?0:-1,s=U(o,i)?-1:0;o=P(o,0,r),i=P(i,0,s),t.sel={anchor:i,head:o},$e(e,t,“<”,q(o,i)),$e(e,t,“>”,Y(o,i))}else t.insertMode||n||(t.lastHPos=e.getCursor().ch)}function pt(e,t){this.keyName=e,this.key=t.key,this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.shiftKey=t.shiftKey}function gt(e){var t=qt.macroModeState.lastInsertModeChanges,n=Ot.keyName?Ot.keyName(e):e.key;n&&(-1==n.indexOf(“Delete”)&&-1==n.indexOf(“Backspace”)||(t.maybeReset&&(t.changes=[],t.maybeReset=!1),t.changes.push(new pt(n,e))))}function mt(e,t,n,i){function o(){a?sn.processAction(e,t,t.lastEditActionCommand):sn.evalInput(e,t)}function r(n){if(s.lastInsertModeChanges.changes.length>0){n=t.lastEditActionCommand?n:1;var i=s.lastInsertModeChanges;vt(e,i.changes,n)}}var s=qt.macroModeState;s.isPlaying=!0;var a=!!t.lastEditActionCommand,l=t.inputState;if(t.inputState=t.lastEditInputState,a&&t.lastEditActionCommand.interlaceInsertRepeat)for(var c=0;c<n;c++)o(),r(1);else i||o(),r(n);t.inputState=l,t.insertMode&&!i&&it(e),s.isPlaying=!1}function ft(e,t){Ot.lookupKey(t,“vim-insert”,(function(t){return“string”==typeof t?Ot.commands(e):t(e),!0}))}function vt(e,t,n){var i=e.getCursor(“head”),o=qt.macroModeState.lastInsertModeChanges.visualBlock;o&&(ne(e,i,o+1),n=e.listSelections().length,e.setCursor(i));for(var r=0;r<n;r++){o&&e.setCursor(P(i,r,0));for(var s=0;s<t.length;s++){var a=t;if(a instanceof pt)ft(e,a.keyName,a);else if(“string”==typeof a)e.replaceSelection(a);else{var l=e.getCursor(),c=P(l,0,a.length-(a||0));e.replaceRange(a,l,a?l:c),e.setCursor©}}}o&&e.setCursor(P(i,0,1))}function yt(e,t,n,i){t.length>1&&“n”==t&&(t=t.replace(“numpad”,“”)),t=yn||t;var o=“”;if(n.ctrlKey&&(o+=“C-”),n.altKey&&(o+=“A-”),(o||t.length>1)&&n.shiftKey&&(o+=“S-”),i&&!i.expectLiteralNext&&1==t.length)if(Pt.keymap&&t in Pt.keymap)!1===Pt.remapCtrl&&o||(t=Pt.keymap);else if(t.charCodeAt(0)>255){var r=n.code&&n.code.slice(-1)||“”;n.shiftKey||(r=r.toLowerCase()),r&&(t=r)}return(o+=t).length>1&&(o=“<”o
“>”),o}function bt(e){var t=new e.constructor;return Object.keys(e).forEach((function(n){if(“insertEnd”!=n){var i=e;Array.isArray(i)?i=i.slice():i&&“object”==typeof i&&i.constructor!=Object&&(i=bt(i)),t=i}})),e.sel&&(t.sel={head:e.sel.head&&V(e.sel.head),anchor:e.sel.anchor&&V(e.sel.anchor)}),t}function wt(e,t,n){var i=!1,o=Jt.maybeInitVimState_(e),r=o.visualBlock||o.wasInVisualBlock,s=e.ace.inMultiSelectMode;if(o.wasInVisualBlock&&!s?o.wasInVisualBlock=!1:s&&o.visualBlock&&(o.wasInVisualBlock=!0),“<Esc>”!=t||o.insertMode||o.visualMode||!s)if(r||!s||e.ace.inVirtualSelectionMode)i=Jt.handleKey(e,t,n);else{var a=bt(o),l=o.inputState.changeQueueList||[];e.operation((function(){e.curOp.isVimOp=!0;var r=0;e.ace.forEachSelection((function(){var o=e.ace.selection;e.state.vim.lastHPos=null==o.$desiredColumn?o.lead.column:o.$desiredColumn,e.state.vim.inputState.changeQueue=l;var s=e.getCursor(“head”),c=e.getCursor(“anchor”),h=U(s,c)?0:-1,u=U(s,c)?-1:0;s=P(s,0,h),c=P(c,0,u),e.state.vim.sel.head=s,e.state.vim.sel.anchor=c,i=bn(e,t,n),o.$desiredColumn=-1==e.state.vim.lastHPos?null:e.state.vim.lastHPos,e.ace.inVirtualSelectionMode&&(l=e.state.vim.inputState.changeQueue),e.virtualSelectionMode()&&(e.state.vim=bt(a)),r++})),e.curOp.cursorActivity&&!i&&(e.curOp.cursorActivity=!1),o.status=e.state.vim.status,e.state.vim=o,o.inputState.changeQueueList=l,o.inputState.changeQueue=null}),!0)}else e.ace.exitMultiSelectMode();return!i||o.visualMode||o.insert||o.visualMode==e.somethingSelected()||dt(e,o,!0),i}function xt(e,t){t.off(“beforeEndOperation”,xt);var n=t.state.cm.vimCmd;n&&t.execCommand(n.exec?n:n.name,n.args),t.curOp=t.prevOp}var kt=e(“../range”).Range,Ct=e(“../lib/event_emitter”).EventEmitter,$t=e(“../lib/dom”),St=e(“../lib/oop”),At=e(“../lib/keys”),Lt=e(“../lib/event”),Mt=e(“../search”).Search,_t=e(“../lib/useragent”),Tt=e(“../search_highlight”).SearchHighlight,Rt=e(“../commands/multi_select_commands”),Et=e(“../mode/text”).Mode.prototype.tokenRe,It=e(“../ext/hardwrap”).hardWrap;e(“../multi_select”);var Ot=function(e){this.ace=e,this.state={},this.marks={},this.options={},this.$uid=0,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this),this.onBeforeEndOperation=this.onBeforeEndOperation.bind(this),this.ace.on(“change”,this.onChange),this.ace.on(“changeSelection”,this.onSelectionChange),this.ace.on(“beforeEndOperation”,this.onBeforeEndOperation)};Ot.Pos=function(e,t){if(!(this instanceof Ft))return new Ft(e,t);this.line=e,this.ch=t},Ot.defineOption=function(){},Ot.commands={redo:function(e){e.ace.redo()},undo:function(e){e.ace.undo()},newlineAndIndent:function(e){e.ace.insert(“n”)},goLineLeft:function(e){e.ace.selection.moveCursorLineStart()},goLineRight:function(e){e.ace.selection.moveCursorLineEnd()}},Ot.keyMap={},Ot.addClass=Ot.rmClass=function(){},Ot.e_stop=Ot.e_preventDefault=Lt.stopEvent,Ot.keyName=function(e){var t=At||e.key||“”;return 1==t.length&&(t=t.toUpperCase()),t=Lt.getModifierString(e).replace(/(^|-)w/g,(function(e){return e.toUpperCase()}))+t},Ot.keyMap.default=function(e){return function(t){var n=t.ace.commands.commandKeyBinding;return n&&!1!==t.ace.execCommand(n)}},Ot.lookupKey=function e(t,n,i){n||(n=“default”),“string”==typeof n&&(n=Ot.keyMap||Ot.keyMap.default);var o=“function”==typeof n?n(t):n;if(!1===o)return“nothing”;if(“…”===o)return“multi” ;if(null!=o&&i(o))return“handled”;if(n.fallthrough){if(!Array.isArray(n.fallthrough))return e(t,n.fallthrough,i);for(var r=0;r<n.fallthrough.length;r++){var s=e(t,n.fallthrough,i);if(s)return s}}},Ot.findMatchingTag=function(e,t){return e.findMatchingTag(t)},Ot.findEnclosingTag=function(){},Ot.signal=function(e,t,n){return e._signal(t,n)},Ot.on=Lt.addListener,Ot.off=Lt.removeListener,Ot.isWordChar=function(e){return e<“x7f”?/^w$/.test(e):(Et.lastIndex=0,Et.test(e))},function(){St.implement(Ot.prototype,Ct),this.destroy=function(){this.ace.off(“change”,this.onChange),this.ace.off(“changeSelection”,this.onSelectionChange),this.ace.off(“beforeEndOperation”,this.onBeforeEndOperation),this.removeOverlay()},this.virtualSelectionMode=function(){return this.ace.inVirtualSelectionMode&&this.ace.selection.index},this.onChange=function(e){this.$lineHandleChanges&&this.$lineHandleChanges.push(e);var t={text:“i”==e.action?e.lines:[]},n=this.curOp=this.curOp||{};n.changeHandlers||(n.changeHandlers=this._eventRegistry.change&&this._eventRegistry.change.slice()),n.lastChange?n.lastChange.next=n.lastChange=t:n.lastChange=n.change=t,this.$updateMarkers(e)},this.onSelectionChange=function(){var e=this.curOp=this.curOp||{};e.cursorActivityHandlers||(e.cursorActivityHandlers=this._eventRegistry.cursorActivity&&this._eventRegistry.cursorActivity.slice()),this.curOp.cursorActivity=!0,this.ace.inMultiSelectMode&&this.ace.keyBinding.removeKeyboardHandler(Rt.keyboardHandler)},this.operation=function(e,t){if(!t&&this.curOp||t&&this.curOp&&this.curOp.force)return e();if(!t&&this.ace.curOp||this.curOp&&this.onBeforeEndOperation(),!this.ace.curOp){var n=this.ace.prevOp;this.ace.startOperation({command:{name:“vim”,scrollIntoView:“cursor”}})}var i=this.curOp=this.curOp||{};this.curOp.force=t;var o=e();return this.ace.curOp&&“vim”==this.ace.curOp.command.name&&(this.state.dialog&&(this.ace.curOp.command.scrollIntoView=this.ace.curOp.vimDialogScroll),this.ace.endOperation(),i.cursorActivity||i.lastChange||!n||(this.ace.prevOp=n)),!t&&this.ace.curOp||this.curOp&&this.onBeforeEndOperation(),o},this.onBeforeEndOperation=function(){var e=this.curOp;e&&(e.change&&this.signal(“change”,e.change,e),e&&e.cursorActivity&&this.signal(“cursorActivity”,null,e),this.curOp=null)},this.signal=function(e,t,n){var i=n?n:(this._eventRegistry||{})[e];if(i){i=i.slice();for(var o=0;o<i.length;o++)i(this,t)}},this.firstLine=function(){return 0},this.lastLine=function(){return this.ace.session.getLength()-1},this.lineCount=function(){return this.ace.session.getLength()},this.setCursor=function(e,t){“object”==typeof e&&(t=e.ch,e=e.line);var n=!this.curOp&&!this.ace.inVirtualSelectionMode;this.ace.inVirtualSelectionMode||this.ace.exitMultiSelectMode(),this.ace.session.unfold({row:e,column:t}),this.ace.selection.moveTo(e,t),n&&(this.ace.renderer.scrollCursorIntoView(),this.ace.endOperation())},this.getCursor=function(e){var t=this.ace.selection;return i(“anchor”==e?t.isEmpty()?t.lead:t.anchor:“head”!=e&&e?t.getRange():t.lead)},this.listSelections=function(){var e=this.ace.multiSelect.rangeList.ranges;return!e.length||this.ace.inVirtualSelectionMode?:e.map((function(e){return{anchor:this.clipPos(i(e.cursor==e.end?e.start:e.end)),head:this.clipPos(i(e.cursor))}}),this)},this.setSelections=function(e,t){var i=this.ace.multiSelect,o=e.map((function(e){var t=n(e.anchor),i=n(e.head),o=kt.comparePoints(t,i)<0?new kt.fromPoints(t,i):new kt.fromPoints(i,t);return o.cursor=kt.comparePoints(o.start,i)?o.end:o.start,o}));if(this.ace.inVirtualSelectionMode)this.ace.selection.fromOrientedRange(o);else{t?o&&o.push(o.splice(t,1)):o=o.reverse(),i.toSingleRange(o.clone());for(var r=this.ace.session,s=0;s<o.length;s++){var a=r.$clipRangeToDocument(o);i.addRange(a)}}},this.setSelection=function(e,t,n){var i=this.ace.selection;i.moveTo(e.line,e.ch),i.selectTo(t.line,t.ch),n&&“*mouse”==n.origin&&this.onBeforeEndOperation()},this.somethingSelected=function(){return!this.ace.selection.isEmpty()},this.clipPos=function(e){return i(this.ace.session.$clipPositionToDocument(e.line,e.ch))},this.foldCode=function(e){this.ace.session.$toggleFoldWidget(e.line,{})},this.markText=function(){return{clear:function(){},find:function(){}}},this.$updateMarkers=function(e){var t=“insert”==e.action,n=e.start,i=e.end,o=(i.row-n.row)*(t?1:-1),r=(i.column-n.column)*(t?1:-1);for(var s in t&&(i=n),this.marks){var a=this.marks,l=kt.comparePoints(a,n);if(!(l<0)){if(0===l&&t)if(a.$insertRight){if(1!=a.bias){a.bias=-1;continue}l=1}else l=1;var c=t?l:kt.comparePoints(a,i);c>0?(a.row+=o,a.column+=a.row==i.row?r:0):!t&&c<=0&&(a.row=n.row,a.column=n.column,0===c&&(a.bias=1))}}};var e=function(e,t,n,i){this.cm=e,this.id=t,this.row=n,this.column=i,e.marks=this};e.prototype.clear=function(){delete this.cm.marks},e.prototype.find=function(){return i(this)},this.setBookmark=function(t,n){var i=new e(this,this.$uid++,t.line,t.ch);return n&&n.insertLeft||(i.$insertRight=!0),this.marks=i,i},this.moveH=function(e,t){if(“char”==t){var n=this.ace.selection;n.clearSelection(),n.moveCursorBy(0,e)}},this.findPosV=function(e,t,n,o){if(“page”==n){var r=this.ace.renderer.layerConfig;t*=Math.floor(r.height/r.lineHeight),n=“line”}if(“line”==n){var s=this.ace.session.documentToScreenPosition(e.line,e.ch);return null!=o&&(s.column=o),s.row+=t,s.row=Math.min(Math.max(0,s.row),this.ace.session.getScreenLength()-1),i(this.ace.session.screenToDocumentPosition(s.row,s.column))}},this.charCoords=function(e,t){if(“div”==t||!t)return{left:(i=this.ace.session.documentToScreenPosition(e.line,e.ch)).column,top:i.row};if(“local”==t){var n=this.ace.renderer,i=this.ace.session.documentToScreenPosition(e.line,e.ch),o=n.layerConfig.lineHeight,r=n.layerConfig.characterWidth,s=o*i.row;return{left:i.column*r,top:s,bottom:s+o}}},this.coordsChar=function(e,t){var n=this.ace.renderer;if(“local”==t){var o=Math.max(0,Math.floor(e.top/n.lineHeight)),r=Math.max(0,Math.floor(e.left/n.characterWidth));return i(n.session.screenToDocumentPosition(o,r))}if(“div”==t)throw“not implemented”},this.getSearchCursor=function(e,t){var n=!1,o=!1;e instanceof RegExp&&!e.global&&(n=!e.ignoreCase,e=e.source,o=!0),“\n”==e&&(e=“n”,o=!1);var r=new Mt;null==t.ch&&(t.ch=Number.MAX_VALUE);var s={row:t.line,column:t.ch},a=this,l=null;return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){r.setOptions({needle:e,caseSensitive:n,wrap:!1,backwards:t,regExp:o,start:l||s});var i=r.find(a.ace.session);return(l=i)&&},from:function(){return l&&i(l.start)},to:function(){return l&&i(l.end)},replace:function(e){l&&(l.end=a.ace.session.doc.replace(l,e))}}},this.scrollTo=function(e,t){var n=this.ace.renderer,i=n.layerConfig,o=i.maxHeight;o-=(n.$size.scrollerHeight-n.lineHeight)*n.$scrollPastEnd,null!=t&&this.ace.session.setScrollTop(Math.max(0,Math.min(t,o))),null!=e&&this.ace.session.setScrollLeft(Math.max(0,Math.min(e,i.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(e,t){if(e){var i=this.ace.renderer,o={top:0,bottom:t};i.scrollCursorIntoView(n(e),2*i.lineHeight/i.$size.scrollerHeight,o)}},this.getLine=function(e){return this.ace.session.getLine(e)},this.getRange=function(e,t){return this.ace.session.getTextRange(new kt(e.line,e.ch,t.line,t.ch))},this.replaceRange=function(e,t,n){n||(n=t);var i=new kt(t.line,t.ch,n.line,n.ch);return this.ace.session.$clipRangeToDocument(i),this.ace.session.replace(i,e)},this.replaceSelection=this.replaceSelections=function(e){var t=Array.isArray(e)&&e,n=this.ace.selection;if(this.ace.inVirtualSelectionMode)this.ace.session.replace(n.getRange(),t?e||“”:e);else{n.inVirtualSelectionMode=!0;var i=n.rangeList.ranges;i.length||(i=);for(var o=i.length;o–;)this.ace.session.replace(i,t?e||“”:e);n.inVirtualSelectionMode=!1}},this.getSelection=function(){return this.ace.getSelectedText()},this.getSelections=function(){return this.listSelections().map((function(e){return this.getRange(e.anchor,e.head)}),this)},this.getInputField=function(){return this.ace.textInput.getElement()},this.getWrapperElement=function(){return this.ace.container};var t={indentWithTabs:“useSoftTabs”,indentUnit:“tabSize”,tabSize:“tabSize”,firstLineNumber:“firstLineNumber”,readOnly:“readOnly”};this.setOption=function(e,n){switch(this.state=n,e){case“indentWithTabs”:e=t,n=!n;break;case“keyMap”:return void(this.state.$keyMap=n);default:e=t}e&&this.ace.setOption(e,n)},this.getOption=function(e){var n,i=t;switch(i&&(n=this.ace.getOption(i)),e){case“indentWithTabs”:return e=t,!n;case“keyMap”:return this.state.$keyMap||“vim”}return i?n:this.state},this.toggleOverwrite=function(e){return this.state.overwrite=e,this.ace.setOverwrite(e)},this.addOverlay=function(e){if(!this.$searchHighlight||!this.$searchHighlight.session){var t=new Tt(null,“ace_highlight-marker”,“text”),n=this.ace.session.addDynamicMarker(t);t.id=n.id,t.session=this.ace.session,t.destroy=function(){t.session.off(“change”,t.updateOnChange),t.session.off(“changeEditor”,t.destroy),t.session.removeMarker(t.id),t.session=null},t.updateOnChange=function(e){var n=e.start.row;n==e.end.row?t.cache=void 0:t.cache.splice(n,t.cache.length)},t.session.on(“changeEditor”,t.destroy),t.session.on(“change”,t.updateOnChange)}var i=new RegExp(e.query.source,“gmi”);this.$searchHighlight=e.highlight=t,this.$searchHighlight.setRegexp(i),this.ace.renderer.updateBackMarkers()},this.removeOverlay=function(){this.$searchHighlight&&this.$searchHighlight.session&&this.$searchHighlight.destroy()},this.getScrollInfo=function(){var e=this.ace.renderer,t=e.layerConfig;return{left:e.scrollLeft,top:e.scrollTop,height:t.maxHeight,width:t.width,clientHeight:t.height,clientWidth:t.width}},this.getValue=function(){return this.ace.getValue()},this.setValue=function(e){return this.ace.setValue(e,-1)},this.getTokenTypeAt=function(e){var t=this.ace.session.getTokenAt(e.line,e.ch);return t&&/comment|string/.test(t.type)?“string”:“”},this.findMatchingBracket=function(e){var t=this.ace.session.findMatchingBracket(n(e));return{to:t&&i(t)}},this.findMatchingTag=function(e){var t=this.ace.session.getMatchingTags(n(e));if(t)return{open:{from:i(t.openTag.start),to:i(t.openTag.end)},close:{from:i(t.closeTag.start),to:i(t.closeTag.end)}}},this.indentLine=function(e,t){!0===t?this.ace.session.indentRows(e,e,“t”):!1===t&&this.ace.session.outdentRows(new kt(e,0,e,0))},this.indexFromPos=function(e){return this.ace.session.doc.positionToIndex(n(e))},this.posFromIndex=function(e){return i(this.ace.session.doc.indexToPosition(e))},this.focus=function(){return this.ace.textInput.focus()},this.blur=function(){return this.ace.blur()},this.defaultTextHeight=function(){return this.ace.renderer.layerConfig.lineHeight},this.scanForBracket=function(e,t,o,r){var s=r.bracketRegex.source,a=/paren|text|operator|tag/;if(1==t)var l=this.ace.session.$findClosingBracket(s.slice(1,2),n(e),a);else!(l=this.ace.session.$findOpeningBracket(s.slice(-2,-1),{row:e.line,column:e.ch+1},a))&&r.bracketRegex&&r.bracketRegex.test(this.getLine(e.line))&&(l={row:e.line,column:e.ch-1});return l&&{pos:i(l)}},this.refresh=function(){return this.ace.resize(!0)},this.getMode=function(){return{name:this.getOption(“mode”)}},this.execCommand=function(e){return Ot.commands.hasOwnProperty(e)?Ot.commands(this):“indentAuto”==e?this.ace.execCommand(“autoindent”):void console.log(e+“ is not implemented”)},this.getLineNumber=function(e){var t=this.$lineHandleChanges;if(!t)return null;for(var n=e.row,i=0;i<t.length;i++){var o=t;if(o.start.row!=o.end.row)if(“i”==o.action)o.start.row<n&&(n+=o.end.row-o.start.row);else if(o.start.row<n){if(n<o.end.row||n==o.end.row&&o.start.column>0)return null;n-=o.end.row-o.start.row}}return n},this.getLineHandle=function(e){return this.$lineHandleChanges||(this.$lineHandleChanges=[]),{text:this.ace.session.getLine(e),row:e}},this.releaseLineHandles=function(){this.$lineHandleChanges=void 0},this.getLastEditEnd=function(){var e=this.ace.session.$undoManager;if(e&&e.$lastDelta)return i(e.$lastDelta.end)}}.call(Ot.prototype),(Ot.StringStream=function(e,t){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0}).prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(e){var t=this.string.charAt(this.pos);if(“string”==typeof e)var n=t==e;else n=t&&(e.test?e.test(t):e(t));if(n)return++this.pos,t},eatWhile:function(e){for(var t=this.pos;this.eat(e););return this.pos>t},eatSpace:function(){for(var e=this.pos;//.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},backUp:function(e){this.pos-=e},column:function(){throw“not implemented”},indentation:function(){throw“not implemented”},match:function(e,t,n){if(“string”!=typeof e){var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&!1!==t&&(this.pos+=i.length),i)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}},Ot.defineExtension=function(e,t){Ot.prototype=t},$t.importCssString(“.normal-mode .ace_cursor{n border: none;n background-color: rgba(255,0,0,0.5);n}n.normal-mode .ace_hidden-cursors .ace_cursor{n background-color: transparent;n border: 1px solid red;n opacity: 0.7n}n.ace_dialog {n position: absolute;n left: 0; right: 0;n background: inherit;n z-index: 15;n padding: .1em .8em;n overflow: hidden;n color: inherit;n}n.ace_dialog-top {n border-bottom: 1px solid #444;n top: 0;n}n.ace_dialog-bottom {n border-top: 1px solid #444;n bottom: 0;n}n.ace_dialog input {n border: none;n outline: none;n background: transparent;n width: 20em;n color: inherit;n font-family: monospace;n}”,“vimMode”,!1),function(){function e(e,t,n){var i;return(i=e.ace.container.appendChild(document.createElement(“div”))).className=n?“ace_dialog ace_dialog-bottom”:“ace_dialog ace_dialog-top”,“string”==typeof t?i.innerHTML=t:i.appendChild(t),i}function t(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}Ot.defineExtension(“openDialog”,(function(n,i,o){function r(e){if(“string”==typeof e)h.value=e;else{if(a)return;if(e&&“blur”==e.type&&document.activeElement===h)return;l.state.dialog==s&&(l.state.dialog=null,l.focus()),a=!0,s.remove(),o.onClose&&o.onClose(s);var t=l;t.state.vim&&(t.state.vim.status=null,t.ace._signal(“changeStatus”),t.ace.renderer.$loop.schedule(t.ace.renderer.CHANGE_CURSOR))}}if(!this.virtualSelectionMode()){o||(o={}),t(this,null);var s=e(this,n,o.bottom),a=!1,l=this;this.state.dialog=s;var c,h=s.getElementsByTagName(“input”);return h?(o.value&&(h.value=o.value,!1!==o.selectValueOnOpen&&h.select()),o.onInput&&Ot.on(h,“input”,(function(e){o.onInput(e,h.value,r)})),o.onKeyUp&&Ot.on(h,“keyup”,(function(e){o.onKeyUp(e,h.value,r)})),Ot.on(h,“keydown”,(function(e){o&&o.onKeyDown&&o.onKeyDown(e,h.value,r)||(13==e.keyCode&&i(h.value),(27==e.keyCode||!1!==o.closeOnEnter&&13==e.keyCode)&&(Ot.e_stop(e),r()))})),!1!==o.closeOnBlur&&Ot.on(h,“blur”,r),h.focus()):(c=s.getElementsByTagName(“button”))&&(Ot.on(c,“click”,(function(){r(),l.focus()})),!1!==o.closeOnBlur&&Ot.on(c,“blur”,r),c.focus()),r}})),Ot.defineExtension(“openNotification”,(function(n,i){function o(){a||(a=!0,clearTimeout®,s.remove())}if(!this.virtualSelectionMode()){t(this,o);var r,s=e(this,n,i&&i.bottom),a=!1,l=i&&void 0!==i.duration?i.duration:5e3;return Ot.on(s,“click”,(function(e){Ot.e_preventDefault(e),o()})),l&&(r=setTimeout(o,l)),o}}))}();var Nt,Ft=Ot.Pos,Dt=[{keys:“<Left>”,type:“keyToKey”,toKeys:“h”},{keys:“<Right>”,type:“keyToKey”,toKeys:“l”},{keys:“<Up>”,type:“keyToKey”,toKeys:“k”},{keys:“<Down>”,type:“keyToKey”,toKeys:“j”},{keys:“g<Up>”,type:“keyToKey”,toKeys:“gk”},{keys:“g<Down>”,type:“keyToKey”,toKeys:“gj”},{keys:“<Space>”,type:“keyToKey”,toKeys:“l”},{keys:“<BS>”,type:“keyToKey”,toKeys:“h”},{keys:“<Del>”,type:“keyToKey”,toKeys:“x”},{keys:“<C-Space>”,type:“keyToKey”,toKeys:“W”},{keys:“<C-BS>”,type:“keyToKey”,toKeys:“B”},{keys:“<S-Space>”,type:“keyToKey”,toKeys:“w”},{keys:“<S-BS>”,type:“keyToKey”,toKeys:“b”},{keys:“<C-n>”,type:“keyToKey”,toKeys:“j”},{keys:“<C-p>”,type:“keyToKey”,toKeys:“k”},{keys:“<C-[>”,type:“keyToKey”,toKeys:“<Esc>”},{keys:“<C-c>”,type:“keyToKey”,toKeys:“<Esc>”},{keys:“<C-`”,type:“motion”,motion:“jumpToMark”,motionArgs:{forward:!0}},{keys:“’”,type:“motion”,motion:“jumpToMark”,motionArgs:{forward:!0,linewise:!0}},{keys:“p”,type:“action”,action:“paste”,isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:“<character>”,type:“motion”,motion:“moveToSymbol”,motionArgs:{forward:!0,toJumplist:!0}},{keys:“,Ht=Dt.length,Bt=,Pt=A(”“),Wt=//,zt=[Ot.isWordChar,function(e){return e&&!Ot.isWordChar(e)&&!/s/.test(e)}],jt=,Gt=,Vt=,Kt=/^w$/;try{Nt=new RegExp(”^$“,”u“)}catch(e){Nt=/^$/}var Ut={};f(”filetype“,void 0,”string“,,(function(e,t){if(void 0!==t){if(void 0===e)return”null“==(n=t.getOption(”mode“))?”“:n;var n=”“==e?”null“:e;t.setOption(”mode“,n)}})),f(”textwidth“,80,”number“,,(function(e,t){if(void 0!==t){if(void 0===e)return t.getOption(”textwidth“);var n=Math.round(e);n>1&&t.setOption(”textwidth“,n)}}));var qt,Yt,Qt=function(){function e(e,t,n){function l(t){var n=++o%i,r=a;r&&r.clear(),a=e.setBookmark(t)}var c=a;if©{var h=c.find();h&&!K(h,t)&&l(t)}else l(t);l(n),r=o,(s=o-i+1)<0&&(s=0)}function t(e,t){(o+=t)>r?o=r:o<s&&(o=s);var n=a;if(n&&!n.find()){var l,c=t>0?1:-1,h=e.getCursor();do{if((n=a)&&(l=n.find())&&!K(h,l))break}while(o<r&&o>s)}return n}function n(e,n){var i=o,r=t(e,n);return o=i,r&&r.find()}var i=100,o=-1,r=0,s=0,a=new Array(i);return{cachedCursor:void 0,add:e,find:n,move:t}},Xt=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};b.prototype={exitMacroRecordMode:function(){var e=qt.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=void 0,e.isRecording=!1},enterMacroRecordMode:function(e,t){var n=qt.registerController.getRegister(t);if(n){if(n.clear(),this.latestRegister=t,e.openDialog){var i=We(”span“,{class:”cm-vim-message“},”recording @“+t);this.onRecordingDone=e.openDialog(i,null,{bottom:!0})}this.isRecording=!0}}};var Zt,Jt={enterVimMode:r, leaveVimMode:s,buildKeyMap:function(){},getRegisterController:function(){return qt.registerController},resetVimGlobalState_:x,getVimGlobalState_:function(){return qt},maybeInitVimState_:w,suppressErrorLogging:!1,InsertModeKey:pt,map:function(e,t,n){vn.map(e,t,n)},unmap:function(e,t){return vn.unmap(e,t)},noremap:function(e,t,n){vn.map(e,t,n,!0)},mapclear:function(e){var t=Dt.length,n=Ht,i=Dt.slice(0,t-n);if(Dt=Dt.slice(t-n),e)for(var o=i.length-1;o>=0;o–){var r=i;if(e!==r.context)if(r.context)this._mapCommand®;else{var s=;for(var a in s)if(s!==e){var l={};for(var c in r)l=r;l.context=s,this._mapCommand(l)}}}},langmap:S,vimKeyFromEvent:$,setOption:v,getOption:y,defineOption:f,defineEx:function(e,t,n){if(t){if(0!==e.indexOf(t))throw new Error(‘(Vim.defineEx) ”’t
‘“ is not a prefix of ”’e
‘“, command not registered’)}else t=e;fn=n,vn.commandMap_={name:e,shortName:t,type:”api“}},handleKey:function(e,t,n){var i=this.findKey(e,t,n);if(”function“==typeof i)return i()},multiSelectHandleKey:wt,findKey:function(e,t,n){function i(){var i=qt.macroModeState;if(i.isRecording){if(”q“==t)return i.exitMacroRecordMode(),M(e),!0;”mapping“!=n&&at(i,t)}}function o(){if(”<Esc>“==t){if(l.visualMode)he(e);else{if(!l.insertMode)return;it(e)}return M(e),!0}}function r(){if(o())return!0;l.inputState.keyBuffer.push(t);var n=l.inputState.keyBuffer.join(”“),i=1==t.length,r=sn.matchCommand(n,Dt,l.inputState,”insert“),s=l.inputState.changeQueue;if(”none“==r.type)return M(e),!1;if(”partial“==r.type){if(r.expectLiteralNext&&(l.expectLiteralNext=!0),Yt&&window.clearTimeout(Yt),Yt=i&&window.setTimeout((function(){l.insertMode&&l.inputState.keyBuffer.length&&M(e)}),y(”insertModeEscKeysTimeout“)),i){var a=e.listSelections();s&&s.removed.length==a.length||(s=l.inputState.changeQueue=new _),s.inserted+=t;for(var c=0;c<a.length;c++){var h=q(a.anchor,a.head),u=Y(a.anchor,a.head),d=e.getRange(h,e.state.overwrite?P(u,0,1):u);s.removed=(s.removed||”“)+d}}return!i}if(l.expectLiteralNext=!1,Yt&&window.clearTimeout(Yt),r.command&&s){for(a=e.listSelections(),c=0;c<a.length;c++){var p=a.head;e.replaceRange(s.removed||”“,P(p,0,-s.inserted.length),p,”+input“)}qt.macroModeState.lastInsertModeChanges.changes.pop()}return r.command||M(e),r.command}function s(){if(i()||o())return!0;l.inputState.keyBuffer.push(t);var n=l.inputState.keyBuffer.join(”“);if(/^d*$/.test(n))return!0;var r=/^(d*)(.*)$/.exec(n);if(!r)return M(e),!1;var s=l.visualMode?”visual“:”normal“,a=r||r;l.inputState.operatorShortcut&&l.inputState.operatorShortcut.slice(-1)==a&&(a=l.inputState.operatorShortcut);var c=sn.matchCommand(a,Dt,l.inputState,s);return”none“==c.type?(M(e),!1):”partial“==c.type?(c.expectLiteralNext&&(l.expectLiteralNext=!0),!0):”clear“==c.type?(M(e),!0):(l.expectLiteralNext=!1,l.inputState.keyBuffer.length=0,(r=/^(d*)(.*)$/.exec(n))&&”0“!=r&&l.inputState.pushRepeatDigit(r),c.command)}var a,l=w(e);return!1===(a=l.insertMode?r():s())?l.insertMode||1!==t.length?void 0:function(){return!0}:!0===a?function(){return!0}:function(){if(!a.operator&&!a.isEdit||!e.getOption(”readOnly“))return e.operation((function(){e.curOp.isVimOp=!0;try{”keyToKey“==a.type?C(e,a.toKeys,a):sn.processCommand(e,l,a)}catch(t){throw e.state.vim=void 0,w(e),Jt.suppressErrorLogging||console.log(t),t}return!0}))}},handleEx:function(e,t){vn.processCommand(e,t)},defineMotion:O,defineAction:D,defineOperator:F,mapCommand:rt,_mapCommand:ot,defineRegister:R,exitVisualMode:he,exitInsertMode:it},en=[],tn=!1,nn={Return:”CR“,Backspace:”BS“,Delete:”Del“,Escape:”Esc“,Insert:”Ins“,ArrowLeft:”Left“,ArrowRight:”Right“,ArrowUp:”Up“,ArrowDown:”Down“,Enter:”CR“,” “:”Space“},on={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},rn={};”Left|Right|Up|Down|End|Home“.split(”|“).concat(Object.keys(nn)).forEach((function(e){rn[(nn||”“).toLowerCase()]=rn=e})),f(”langmap“,void 0,”string“,,(function(e){if(void 0===e)return Pt.string;S(e)})),L.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},L.prototype.getRepeat=function(){var e=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(”“),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(”“),10))),e},T.prototype={setText:function(e,t,n){this.keyBuffer=,this.linewise=!!t,this.blockwise=!!n},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push(”n“),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push(Xt(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=,this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join(”“)}},E.prototype={pushText:function(e,t,n,i,o){if(”_“!==e){i&&”n“!==n.charAt(n.length-1)&&(n+=”n“);var r=this.isValidRegister(e)?this.getRegister(e):null;if®{d(e)?r.pushText(n,i):r.setText(n,i,o),”+“===e&&”undefined“!=typeof navigator&&void 0!==navigator.clipboard&&”function“==typeof navigator.clipboard.readText&&navigator.clipboard.writeText(n),this.unnamedRegister.setText(r.toString(),i)}else{switch(t){case”yank“:this.registers=new T(n,i,o);break;case”delete“:case”change“:-1==n.indexOf(”n“)?this.registers=new T(n,i):(this.shiftNumericRegisters_(),this.registers=new T(n,i))}this.unnamedRegister.setText(n,i,o)}}},getRegister:function(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers||(this.registers=new T),this.registers):this.unnamedRegister},isValidRegister:function(e){return e&&(m(e,Vt)||Kt.test(e))},shiftNumericRegisters_:function(){for(var e=9;e>=2;e–)this.registers=this.getRegister(”“+(e-1))}},I.prototype={nextMatch:function(e,t){var n=this.historyBuffer,i=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var o=this.iterator+i;t?o>=0:o<n.length;o+=i)for(var r=n,s=0;s<=r.length;s++)if(this.initialPrefix==r.substring(0,s))return this.iterator=o,r;return o>=n.length?(this.iterator=n.length,this.initialPrefix):o<0?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);t>-1&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var sn={matchCommand:function(e,t,n,i){var o,r=W(e,t,i,n);if(!r.full&&!r.partial)return{type:”none“};if(!r.full&&r.partial)return{type:”partial“,expectLiteralNext:1==r.partial.length&&”<character>“==r.partial.keys.slice(-11)};for(var s=0;s<r.full.length;s++){var a=r.full;o||(o=a)}if(”<character>“==o.keys.slice(-11)||”<register>“==o.keys.slice(-10)){var l=j(e);if(!l||l.length>1)return{type:”clear“};n.selectedCharacter=l}return{type:”full“,command:o}},processCommand:function(e,t,n){switch(t.inputState.repeatOverride=n.repeatOverride,n.type){case”motion“:this.processMotion(e,t,n);break;case”operator“:this.processOperator(e,t,n);break;case”operatorMotion“:this.processOperatorMotion(e,t,n);break;case”action“:this.processAction(e,t,n);break;case”search“:this.processSearch(e,t,n);break;case”ex“:case”keyToEx“:this.processEx(e,t,n)}},processMotion:function(e,t,n){t.inputState.motion=n.motion,t.inputState.motionArgs=B(n.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,n){var i=t.inputState;if(i.operator){if(i.operator==n.operator)return i.motion=”expandToLine“,i.motionArgs={linewise:!0},void this.evalInput(e,t);M(e)}i.operator=n.operator,i.operatorArgs=B(n.operatorArgs),n.keys.length>1&&(i.operatorShortcut=n.keys),n.exitVisualBlock&&(t.visualBlock=!1,ae(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,n){var i=t.visualMode,o=B(n.operatorMotionArgs);o&&i&&o.visualLine&&(t.visualLine=!0),this.processOperator(e,t,n),i||this.processMotion(e,t,n)},processAction:function(e,t,n){var i=t.inputState,o=i.getRepeat(),r=!!o,s=B(n.actionArgs)||{};i.selectedCharacter&&(s.selectedCharacter=i.selectedCharacter),n.operator&&this.processOperator(e,t,n),n.motion&&this.processMotion(e,t,n),(n.motion||n.operator)&&this.evalInput(e,t),s.repeat=o||1,s.repeatIsExplicit=r,s.registerName=i.registerName,M(e),t.lastMotion=null,n.isEdit&&this.recordLastEdit(t,i,n),cn(e,s,t)},processSearch:function(e,t,n){function i(i,o,r){qt.searchHistoryController.pushInput(i),qt.searchHistoryController.reset();try{Ke(e,i,o,r)}catch(t){return ze(e,”Invalid regex: “+i),void M(e)}sn.processMotion(e,t,{type:”motion“,motion:”findNext“,motionArgs:{forward:!0,toJumplist:n.searchArgs.toJumplist}})}function o(e){i(e,!0,!0);var t=qt.macroModeState;t.isRecording&&ct(t,e)}function r(t,n,i){var o,r,s,l=$(t);”<Up>“==l||”<Down>“==l?(o=”<Up>“==l,r=t.target?t.target.selectionEnd:0,i(n=qt.searchHistoryController.nextMatch(n,o)||”“),r&&t.target&&(t.target.selectionEnd=t.target.selectionStart=Math.min(r,t.target.value.length))):l&&”<Left>“!=l&&”<Right>“!=l&&qt.searchHistoryController.reset();try{s=Ke(e,n,!0,!0)}catch(t){}s?e.scrollIntoView(Ye(e,!a,s),30):(Xe(e),e.scrollTo(u.left,u.top))}function s(t,n,i){var o=$(t);”<Esc>“==o||”<C-c>“==o||”<C-[>“==o||”<BS>“==o&&”“==n?(qt.searchHistoryController.pushInput(n),qt.searchHistoryController.reset(),Ke(e,h),Xe(e),e.scrollTo(u.left,u.top),Ot.e_stop(t),M(e),i(),e.focus()):”<Up>“==o||”<Down>“==o?Ot.e_stop(t):”<C-u>“==o&&(Ot.e_stop(t),i(”“))}if(e.getSearchCursor){var a=n.searchArgs.forward,l=n.searchArgs.wholeWordOnly;Ee(e).setReversed(!a);var c=a?”/“:”?“,h=Ee(e).getQuery(),u=e.getScrollInfo();switch(n.searchArgs.querySrc){case”prompt“:var d=qt.macroModeState;if(d.isPlaying)i(m=d.replaySearchQueries.shift(),!0,!1);else Ge(e,{onClose:o,prefix:c,desc:”(JavaScript regexp)“,onKeyUp:r,onKeyDown:s});break;case”wordUnderCursor“:var p=ge(e,{noSymbol:!0}),g=!0;if(p||(p=ge(e,{noSymbol:!1}),g=!1),!p)return ze(e,”No word under cursor“),void M(e);var m=e.getLine(p.start.line).substring(p.start.ch,p.end.ch);m=g&&l?”\b“m
”\b“:J(m),qt.jumpList.cachedCursor=e.getCursor(),e.setCursor(p.start),i(m,!0,!1)}}},processEx:function(e,t,n){function i(t){qt.exCommandHistoryController.pushInput(t),qt.exCommandHistoryController.reset(),vn.processCommand(e,t),e.state.vim&&M(e)}function o(t,n,i){var o,r,s=$(t);(”<Esc>“==s||”<C-c>“==s||”<C-[>“==s||”<BS>“==s&&”“==n)&&(qt.exCommandHistoryController.pushInput(n),qt.exCommandHistoryController.reset(),Ot.e_stop(t),M(e),i(),e.focus()),”<Up>“==s||”<Down>“==s?(Ot.e_stop(t),o=”<Up>“==s,r=t.target?t.target.selectionEnd:0,i(n=qt.exCommandHistoryController.nextMatch(n,o)||”“),r&&t.target&&(t.target.selectionEnd=t.target.selectionStart=Math.min(r,t.target.value.length))):”<C-u>“==s?(Ot.e_stop(t),i(”“)):s&&”<Left>“!=s&&”<Right>“!=s&&qt.exCommandHistoryController.reset()}”keyToEx“==n.type?vn.processCommand(e,n.exArgs.input):t.visualMode?Ge(e,{onClose:i,prefix:”:“,value:”‘<,’>“,onKeyDown:o,selectValueOnOpen:!1}):Ge(e,{onClose:i,prefix:”:“,onKeyDown:o})},evalInput:function(e,t){var n,i,r,s=t.inputState,a=s.motion,l=s.motionArgs||{},c=s.operator,h=s.operatorArgs||{},u=s.registerName,d=t.sel,p=V(t.visualMode?H(e,d.head):e.getCursor(”head“)),g=V(t.visualMode?H(e,d.anchor):e.getCursor(”anchor“)),m=V(p),f=V(g);if(c&&this.recordLastEdit(t,s),(r=void 0!==s.repeatOverride?s.repeatOverride:s.getRepeat())>0&&l.explicitRepeat?l.repeatIsExplicit=!0:(l.noRepeat||!l.explicitRepeat&&0===r)&&(r=1,l.repeatIsExplicit=!1),s.selectedCharacter&&(l.selectedCharacter=h.selectedCharacter=s.selectedCharacter),l.repeat=r,M(e),a){var v=an(e,p,l,t,s);if(t.lastMotion=an,!v)return;if(l.toJumplist){c||null==e.ace.curOp||(e.ace.curOp.command.scrollIntoView=”center-animate“);var y=qt.jumpList,b=y.cachedCursor;b?(fe(e,b,v),delete y.cachedCursor):fe(e,p,v)}v instanceof Array?(i=v,n=v):n=v,n||(n=V(p)),t.visualMode?(t.visualBlock&&n.ch===1/0||(n=H(e,n,m)),i&&(i=H(e,i)),i=i||f,d.anchor=i,d.head=n,ae(e),$e(e,t,”<“,U(i,n)?i:n),$e(e,t,”>“,U(i,n)?n:i)):c||(e.ace.curOp&&(e.ace.curOp.vimDialogScroll=”center-animate“),n=H(e,n,m),e.setCursor(n.line,n.ch))}if©{if(h.lastSel){i=f;var w=h.lastSel,x=Math.abs(w.head.line-w.anchor.line),k=Math.abs(w.head.ch-w.anchor.ch);n=w.visualLine?new Ft(f.line+x,f.ch):w.visualBlock?new Ft(f.line+x,f.ch+k):w.head.line==w.anchor.line?new Ft(f.line,f.ch+k):new Ft(f.line+x,f.ch),t.visualMode=!0,t.visualLine=w.visualLine,t.visualBlock=w.visualBlock,d=t.sel={anchor:i,head:n},ae(e)}else t.visualMode&&(h.lastSel={anchor:V(d.anchor),head:V(d.head),visualBlock:t.visualBlock,visualLine:t.visualLine});var C,$,S,A,L;if(t.visualMode){if(C=q(d.head,d.anchor),$=Y(d.head,d.anchor),S=t.visualLine||h.linewise,A=t.visualBlock?”block“:S?”line“:”char“,L=le(e,{anchor:(E=o(e,C,$)).start,head:E.end},A),S){var _=L.ranges;if(”block“==A)for(var T=0;T<_.length;T++)_.head.ch=X(e,_.head.line);else”line“==A&&(_.head=new Ft(_.head.line+1,0))}}else{if(C=V(i||f),U($=V(n||m),C)){var R=C;C=$,$=R}(S=l.linewise||h.linewise)?de(e,C,$):l.forward&&ue(e,C,$),A=”char“;var E,I=!l.inclusive||S;L=le(e,{anchor:(E=o(e,C,$)).start,head:E.end},A,I)}e.setSelections(L.ranges,L.primary),t.lastMotion=null,h.repeat=r,h.registerName=u,h.linewise=S;var O=ln(e,h,L.ranges,f,n);t.visualMode&&he(e,null!=O),O&&e.setCursor(O)}},recordLastEdit:function(e,t,n){var i=qt.macroModeState;i.isPlaying||(e.lastEditInputState=t,e.lastEditActionCommand=n,i.lastInsertModeChanges.changes=[],i.lastInsertModeChanges.expectCursorActivityForChange=!1,i.lastInsertModeChanges.visualBlock=e.visualBlock?e.sel.head.line-e.sel.anchor.line:0)}},an={moveToTopLine:function(e,t,n){var i=Je(e).top+n.repeat-1;return new Ft(i,pe(e.getLine(i)))},moveToMiddleLine:function(e){var t=Je(e),n=Math.floor(.5*(t.top+t.bottom));return new Ft(n,pe(e.getLine(n)))},moveToBottomLine:function(e,t,n){var i=Je(e).bottom-n.repeat+1;return new Ft(i,pe(e.getLine(i)))},expandToLine:function(e,t,n){return new Ft(t.line+n.repeat-1,1/0)},findNext:function(e,t,n){var i=Ee(e),o=i.getQuery();if(o){var r=!n.forward;return r=i.isReversed()?!r:r,qe(e,o),Ye(e,r,o,n.repeat)}},findAndSelectNextInclusive:function(e,t,n,i,o){var r=Ee(e),s=r.getQuery();if(s){var a=!n.forward,l=Qe(e,a=r.isReversed()?!a:a,s,n.repeat,i);if(l){if(o.operator)return l;var c=l,h=new Ft(l.line,l.ch-1);if(i.visualMode){(i.visualLine||i.visualBlock)&&(i.visualLine=!1,i.visualBlock=!1,Ot.signal(e,”vim-mode-change“,{mode:”visual“,subMode:”“}));var u=i.sel.anchor;if(u)return r.isReversed()?n.forward?:[u,h]:n.forward?:[u,c]}else i.visualMode=!0,i.visualLine=!1,i.visualBlock=!1,Ot.signal(e,”vim-mode-change“,{mode:”visual“,subMode:”“});return a?:[c,h]}}},goToMark:function(e,t,n,i){var o=et(e,i,n.selectedCharacter);return o?n.linewise?{line:o.line,ch:pe(e.getLine(o.line))}:o:null},moveToOtherHighlightedEnd:function(e,t,n,i){if(i.visualBlock&&n.sameLine){var o=i.sel;return[H(e,new Ft(o.anchor.line,o.head.ch)),H(e,new Ft(o.head.line,o.anchor.ch))]}return},jumpToMark:function(e,t,n,i){for(var o=t,r=0;r<n.repeat;r++){var s=o;for(var a in i.marks)if(c(a)){var l=i.marks.find();if(!((n.forward?U(l,s):U(s,l))||n.linewise&&l.line==s.line)){var h=K(s,o),u=n.forward?Q(s,l,o):Q(o,l,s);(h||u)&&(o=l)}}}return n.linewise&&(o=new Ft(o.line,pe(e.getLine(o.line)))),o},moveByCharacters:function(e,t,n){var i=t,o=n.repeat,r=n.forward?i.ch+o:i.ch-o;return new Ft(i.line,r)},moveByLines:function(e,t,n,i){var o=t,r=o.ch;switch(i.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:r=i.lastHPos;break;default:i.lastHPos=r}var s=n.repeat+(n.repeatOffset||0),a=n.forward?o.line+s:o.line-s,l=e.firstLine(),c=e.lastLine();if(a<l&&o.line==l)return this.moveToStartOfLine(e,t,n,i);if(a>c&&o.line==c)return xe(e,t,n,i,!0);var h=e.ace.session.getFoldLine(a);return h&&(n.forward?a>h.start.row&&(a=h.end.row+1):a=h.start.row),n.toFirstChar&&(r=pe(e.getLine(a)),i.lastHPos=r),i.lastHSPos=e.charCoords(new Ft(a,r),”div“).left,new Ft(a,r)},moveByDisplayLines:function(e,t,n,i){var o=t;switch(i.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:i.lastHSPos=e.charCoords(o,”div“).left}var r=n.repeat;if((a=e.findPosV(o,n.forward?r:-r,”line“,i.lastHSPos)).hitSide)if(n.forward)var s={top:e.charCoords(a,”div“).top+8,left:i.lastHSPos},a=e.coordsChar(s,”div“);else{var l=e.charCoords(new Ft(e.firstLine(),0),”div“);l.left=i.lastHSPos,a=e.coordsChar(l,”div“)}return i.lastHPos=a.ch,a},moveByPage:function(e,t,n){var i=t,o=n.repeat;return e.findPosV(i,n.forward?o:-o,”page“)},moveByParagraph:function(e,t,n){var i=n.forward?1:-1;return Ae(e,t,n.repeat,i)},moveBySentence:function(e,t,n){var i=n.forward?1:-1;return Me(e,t,n.repeat,i)},moveByScroll:function(e,t,n,i){var o=e.getScrollInfo(),r=null,s=n.repeat;s||(s=o.clientHeight/(2*e.defaultTextHeight()));var a=e.charCoords(t,”local“);if(n.repeat=s,!(r=an.moveByDisplayLines(e,t,n,i)))return null;var l=e.charCoords(r,”local“);return e.scrollTo(null,o.top+l.top-a.top),r},moveByWords:function(e,t,n){return we(e,t,n.repeat,!!n.forward,!!n.wordEnd,!!n.bigWord)},moveTillCharacter:function(e,t,n){var i=ke(e,n.repeat,n.forward,n.selectedCharacter,t),o=n.forward?-1:1;return ve(o,n),i?(i.ch+=o,i):null},moveToCharacter:function(e,t,n){var i=n.repeat;return ve(0,n),ke(e,i,n.forward,n.selectedCharacter,t)||t},moveToSymbol:function(e,t,n){return ye(e,n.repeat,n.forward,n.selectedCharacter)||t},moveToColumn:function(e,t,n,i){var o=n.repeat;return i.lastHPos=o-1,i.lastHSPos=e.charCoords(t,”div“).left,Ce(e,o)},moveToEol:function(e,t,n,i){return xe(e,t,n,i,!1)},moveToFirstNonWhiteSpaceCharacter:function(e,t){var n=t;return new Ft(n.line,pe(e.getLine(n.line)))},moveToMatchedSymbol:function(e,t){for(var n,i=t,o=i.line,r=i.ch,s=e.getLine(o);r<s.length;r++)if((n=s.charAt®)&&h(n)){var a=e.getTokenTypeAt(new Ft(o,r+1));if(”string“!==a&&”comment“!==a)break}if(r<s.length){var l=//.test(s)?/[()<>]/:/[()]/;return e.findMatchingBracket(new Ft(o,r+1),{bracketRegex:l}).to}return i},moveToStartOfLine:function(e,t){return new Ft(t.line,0)},moveToLineOrEdgeOfDocument:function(e,t,n){var i=n.forward?e.lastLine():e.firstLine();return n.repeatIsExplicit&&(i=n.repeat-e.getOption(”firstLineNumber“)),new Ft(i,pe(e.getLine(i)))},moveToStartOfDisplayLine:function(e){return e.execCommand(”goLineLeft“),e.getCursor()},moveToEndOfDisplayLine:function(e){e.execCommand(”goLineRight“);var t=e.getCursor();return”before“==t.sticky&&t.ch–,t},textObjectManipulation:function(e,t,n,i){var o={”(“:”)“,”)“:”(“,”{“:”}“,”}“:”{“,”[“:”]“,”]“:”[“,”<“:”>“,”>“:”<“},r={”‘“:!0,’”‘:!0,“`”:!0},s=n.selectedCharacter;“b”==s?s=“(”:“B”==s&&(s=“{”);var a,l,c=!n.textObjectInner;if(o){if(l=!0,!(a=_e(e,t,s,c))){var h=e.getSearchCursor(new RegExp(“\”+s,“g”),t);h.find()&&(a=_e(e,h.from(),s,c))}}else if(r)l=!0,a=Te(e,t,s,c);else if(“W”===s||“w”===s)for(var u=n.repeat||1;u– >0;){var d=ge(e,{inclusive:c,innerWord:!c,bigWord:“W”===s,noSymbol:“W”===s,multiline:!0},a&&a.end);d&&(a||(a=d),a.end=d.end)}else if(“p”===s)if(a=Ae(e,t,n.repeat,0,c),n.linewise=!0,i.visualMode)i.visualLine||(i.visualLine=!0);else{var m=i.inputState.operatorArgs;m&&(m.linewise=!0),a.end.line–}else if(“t”===s)a=me(e,t,c);else if(“s”===s){var f=e.getLine(t.line);t.ch>0&&g(f)&&(t.ch-=1);var v=Le(e,t,n.repeat,1,c),y=Le(e,t,n.repeat,-1,c);p(e.getLine(y.line))&&p(e.getLine(v.line))&&(y={line:y.line,ch:y.ch+1}),a={start:y,end:v}}return a?e.state.vim.visualMode?se(e,a.start,a.end,l)::null},repeatLastCharacterSearch:function(e,t,n){var i=qt.lastCharacterSearch,o=n.repeat,r=n.forward===i.forward,s=(i.increment?1:0)*(r?-1:1);e.moveH(-s,“char”),n.inclusive=!!r;var a=ke(e,o,r,i.selectedCharacter);return a?(a.ch+=s,a):(e.moveH(s,“char”),t)}},ln={change:function(e,t,n){var i,o,r=e.state.vim,s=n.anchor,a=n.head;if(r.visualMode)if(t.fullLine)a.ch=Number.MAX_VALUE,a.line–,e.setSelection(s,a),o=e.getSelection(),e.replaceSelection(“”),i=s;else{o=e.getSelection();var l=N(“”,n.length);e.replaceSelections(l),i=q(n.head,n.anchor)}else{o=e.getRange(s,a);var c=r.lastEditInputState||{};if(“moveByWords”==c.motion&&!p(o)){var h=/s+$/.exec(o);h&&c.motionArgs&&c.motionArgs.forward&&(a=P(a,0,-h.length),o=o.slice(0,-h.length))}t.linewise&&(s=new Ft(s.line,pe(e.getLine(s.line))),a.line>s.line&&(a=new Ft(a.line-1,Number.MAX_VALUE))),e.replaceRange(“”,s,a),i=s}qt.registerController.pushText(t.registerName,“change”,o,t.linewise,n.length>1),cn.enterInsertMode(e,{head:i},e.state.vim)},delete:function(e,t,n){var i,o,r=e.state.vim;if(r.visualBlock){o=e.getSelection();var s=N(“”,n.length);e.replaceSelections(s),i=q(n.head,n.anchor)}else{var a=n.anchor,l=n.head;t.linewise&&l.line!=e.firstLine()&&a.line==e.lastLine()&&a.line==l.line-1&&(a.line==e.firstLine()?a.ch=0:a=new Ft(a.line-1,X(e,a.line-1))),o=e.getRange(a,l),e.replaceRange(“”,a,l),i=a,t.linewise&&(i=an.moveToFirstNonWhiteSpaceCharacter(e,a))}return qt.registerController.pushText(t.registerName,“delete”,o,t.linewise,r.visualBlock),H(e,i)},indent:function(e,t,n){var i=e.state.vim;if(e.indentMore)for(var o=i.visualMode?t.repeat:1,r=0;r<o;r++)t.indentRight?e.indentMore():e.indentLess();else{var s=n.anchor.line,a=i.visualBlock?n.anchor.line:n.head.line;o=i.visualMode?t.repeat:1;t.linewise&&a–;for(var l=s;l<=a;l++)for(r=0;r<o;r++)e.indentLine(l,t.indentRight)}return an.moveToFirstNonWhiteSpaceCharacter(e,n.anchor)},indentAuto:function(e,t,n){return e.execCommand(“indentAuto”),an.moveToFirstNonWhiteSpaceCharacter(e,n.anchor)},hardWrap:function(e,t,n,i){if(e.hardWrap){var o=n.anchor.line,r=n.head.line;t.linewise&&r–;var s=e.hardWrap({from:o,to:r});return s>o&&t.linewise&&s–,t.keepCursor?i:new Ft(s,0)}},changeCase:function(e,t,n,i,o){for(var r=e.getSelections(),s=[],a=t.toLower,l=0;l<r.length;l++){var c=r,h=“”;if(!0===a)h=c.toLowerCase();else if(!1===a)h=c.toUpperCase();else for(var u=0;u<c.length;u++){var p=c.charAt(u);h+=d(p)?p.toLowerCase():p.toUpperCase()}s.push(h)}return e.replaceSelections(s),t.shouldMoveCursor?o:!e.state.vim.visualMode&&t.linewise&&n.anchor.line+1==n.head.line?an.moveToFirstNonWhiteSpaceCharacter(e,i):t.linewise?i:q(n.anchor,n.head)},yank:function(e,t,n,i){var o=e.state.vim,r=e.getSelection(),s=o.visualMode?q(o.sel.anchor,o.sel.head,n.head,n.anchor):i;return qt.registerController.pushText(t.registerName,“yank”,r,t.linewise,o.visualBlock),s}},cn={jumpListWalk:function(e,t,n){if(!n.visualMode){var i=t.repeat,o=t.forward,r=qt.jumpList.move(e,o?i:-i),s=r?r.find():void 0;s=s||e.getCursor(),e.setCursor(s),e.ace.curOp.command.scrollIntoView=“center-animate”}},scroll:function(e,t,n){if(!n.visualMode){var i=t.repeat||1,o=e.defaultTextHeight(),r=e.getScrollInfo().top,s=o*i,a=t.forward?r+s:r-s,l=V(e.getCursor()),c=e.charCoords(l,“local”);if(t.forward)a>c.top?(l.line+=(a-c.top)/o,l.line=Math.ceil(l.line),e.setCursor(l),c=e.charCoords(l,“local”),e.scrollTo(null,c.top)):e.scrollTo(null,a);else{var h=a+e.getScrollInfo().clientHeight;h<c.bottom?(l.line-=(c.bottom-h)/o,l.line=Math.floor(l.line),e.setCursor(l),c=e.charCoords(l,“local”),e.scrollTo(null,c.bottom-e.getScrollInfo().clientHeight)):e.scrollTo(null,a)}}},scrollToCursor:function(e,t){var n=e.getCursor().line,i=e.charCoords(new Ft(n,0),“local”),o=e.getScrollInfo().clientHeight,r=i.top;switch(t.position){case“center”:r=i.bottom-o/2;break;case“bottom”:var s=new Ft(n,e.getLine(n).length-1);r=r-o+(e.charCoords(s,“local”).bottom-r)}e.scrollTo(null,r)},replayMacro:function(e,t,n){var i=t.selectedCharacter,o=t.repeat,r=qt.macroModeState;for(“@”==i?i=r.latestRegister:r.latestRegister=i;o–;)st(e,n,r,i)},enterMacroRecordMode:function(e,t){var n=qt.macroModeState,i=t.selectedCharacter;qt.registerController.isValidRegister(i)&&n.enterMacroRecordMode(e,i)},toggleOverwrite:function(e){e.state.overwrite?(e.toggleOverwrite(!1),e.setOption(“keyMap”,“vim-insert”),Ot.signal(e,“vim-mode-change”,{mode:“insert”})):(e.toggleOverwrite(!0),e.setOption(“keyMap”,“vim-replace”),Ot.signal(e,“vim-mode-change”,{mode:“replace”}))},enterInsertMode:function(e,t,n){if(!e.getOption(“readOnly”)){n.insertMode=!0,n.insertModeRepeat=t&&t.repeat||1;var i=t?t.insertAt:null,r=n.sel,s=t.head||e.getCursor(“head”),a=e.listSelections().length;if(“eol”==i)s=new Ft(s.line,X(e,s.line));else if(“bol”==i)s=new Ft(s.line,0);else if(“charAfter”==i){s=o(e,s,P(s,0,1)).end}else if(“firstNonBlank”==i){s=o(e,s,an.moveToFirstNonWhiteSpaceCharacter(e,s)).end}else if(“startOfSelectedArea”==i){if(!n.visualMode)return;n.visualBlock?(s=new Ft(Math.min(r.head.line,r.anchor.line),Math.min(r.head.ch,r.anchor.ch)),a=Math.abs(r.head.line-r.anchor.line)+1):s=r.head.line<r.anchor.line?r.head:new Ft(r.anchor.line,0)}else if(“endOfSelectedArea”==i){if(!n.visualMode)return;n.visualBlock?(s=new Ft(Math.min(r.head.line,r.anchor.line),Math.max(r.head.ch,r.anchor.ch)+1),a=Math.abs(r.head.line-r.anchor.line)+1):s=r.head.line>=r.anchor.line?P(r.head,0,1):new Ft(r.anchor.line,0)}else if(“inplace”==i){if(n.visualMode)return}else“lastEdit”==i&&(s=tt(e)||s);e.setOption(“disableInput”,!1),t&&t.replace?(e.toggleOverwrite(!0),e.setOption(“keyMap”,“vim-replace”),Ot.signal(e,“vim-mode-change”,{mode:“replace”})):(e.toggleOverwrite(!1),e.setOption(“keyMap”,“vim-insert”),Ot.signal(e,“vim-mode-change”,{mode:“insert”})),qt.macroModeState.isPlaying||(e.on(“change”,ht),n.insertEnd&&n.insertEnd.clear(),n.insertEnd=e.setBookmark(s,{insertLeft:!0}),Ot.on(e.getInputField(),“keydown”,gt)),n.visualMode&&he(e),ne(e,s,a)}},toggleVisualMode:function(e,t,n){var i,r=t.repeat,s=e.getCursor();if(n.visualMode)n.visualLine^t.linewise||n.visualBlock^t.blockwise?(n.visualLine=!!t.linewise,n.visualBlock=!!t.blockwise,Ot.signal(e,“vim-mode-change”,{mode:“visual”,subMode:n.visualLine?“linewise”:n.visualBlock?“blockwise”:“”}),ae(e)):he(e);else{n.visualMode=!0,n.visualLine=!!t.linewise,n.visualBlock=!!t.blockwise;var a=o(e,s,i=H(e,new Ft(s.line,s.ch+r-1)));n.sel={anchor:a.start,head:a.end},Ot.signal(e,“vim-mode-change”,{mode:“visual”,subMode:n.visualLine?“linewise”:n.visualBlock?“blockwise”:“”}),ae(e),$e(e,n,“<”,q(s,i)),$e(e,n,“>”,Y(s,i))}},reselectLastSelection:function(e,t,n){var i=n.lastSelection;if(n.visualMode&&re(e,n),i){var o=i.anchorMark.find(),r=i.headMark.find();if(!o||!r)return;n.sel={anchor:o,head:r},n.visualMode=!0,n.visualLine=i.visualLine,n.visualBlock=i.visualBlock,ae(e),$e(e,n,“<”,q(o,r)),$e(e,n,“>”,Y(o,r)),Ot.signal(e,“vim-mode-change”,{mode:“visual”,subMode:n.visualLine?“linewise”:n.visualBlock?“blockwise”:“”})}},joinLines:function(e,t,n){var i,o;if(n.visualMode){if(i=e.getCursor(“anchor”),U(o=e.getCursor(“head”),i)){var r=o;o=i,i=r}o.ch=X(e,o.line)-1}else{var s=Math.max(t.repeat,2);i=e.getCursor(),o=H(e,new Ft(i.line+s-1,1/0))}for(var a=0,l=i.line;l<o.line;l++){a=X(e,i.line);var c=“”,h=0;if(!t.keepSpaces){var u=e.getLine(i.line+1);-1==(h=u.search(/S/))?h=u.length:c=“ ”}e.replaceRange(c,new Ft(i.line,a),new Ft(i.line+1,h))}var d=H(e,new Ft(i.line,a));n.visualMode&&he(e,!1),e.setCursor(d)},newLineAndEnterInsertMode:function(e,t,n){n.insertMode=!0;var i=V(e.getCursor());i.line!==e.firstLine()||t.after?(i.line=t.after?i.line:i.line-1,i.ch=X(e,i.line),e.setCursor(i),(Ot.commands.newlineAndIndentContinueComment||Ot.commands.newlineAndIndent)(e)):(e.replaceRange(“n”,new Ft(e.firstLine(),0)),e.setCursor(e.firstLine(),0));this.enterInsertMode(e,{repeat:t.repeat},n)},paste:function(e,t,n){var i=this,o=qt.registerController.getRegister(t.registerName),r=function(){var r=o.toString();i.continuePaste(e,t,n,r,o)};“+”===t.registerName&&“undefined”!=typeof navigator&&void 0!==navigator.clipboard&&“function”==typeof navigator.clipboard.readText?navigator.clipboard.readText().then((function®{i.continuePaste(e,t,n,r,o)}),(function(){r()})):r()},continuePaste:function(e,t,n,i,o){var r=V(e.getCursor());if(i){if(t.matchIndent){var s=e.getOption(“tabSize”),a=function(e){var t=e.split(“t”).length-1,n=e.split(“ ”).length-1;return t*s+1*n},l=e.getLine(e.getCursor().line),c=a(l.match(/^s*/)),h=i.replace(/n$/,“”),u=i!==h,d=a(i.match(/^s*/));i=h.replace(/^s*/gm,(function(t){var n=c+(a(t)-d);if(n<0)return“”;if(e.getOption(“indentWithTabs”)){var i=Math.floor(n/s);return Array(i+1).join(“t”)}return Array(n+1).join(“ ”)}));i+=u?“n”:“”}if(t.repeat>1)i=Array(t.repeat+1).join(i);var p,g=o.linewise,m=o.blockwise;if(m){i=i.split(“n”),g&&i.pop();for(var f=0;f<i.length;f++)i=“”==i?“ ”:i;r.ch+=t.after?1:0,r.ch=Math.min(X(e,r.line),r.ch)}else g?n.visualMode?i=n.visualLine?i.slice(0,-1):“n”+i.slice(0,i.length-1)+“n”:t.after?(i=“n”+i.slice(0,i.length-1),r.ch=X(e,r.line)):r.ch=0:r.ch+=t.after?1:0;if(n.visualMode){var v;n.lastPastedText=i;var y=oe(e,n),b=y,w=y,x=e.getSelection(),k=e.listSelections(),C=new Array(k.length).join(“1”).split(“1”);n.lastSelection&&(v=n.lastSelection.headMark.find()),qt.registerController.unnamedRegister.setText(x),m?(e.replaceSelections©,w=new Ft(b.line+i.length-1,b.ch),e.setCursor(b),te(e,w),e.replaceSelections(i),p=b):n.visualBlock?(e.replaceSelections©,e.setCursor(b),e.replaceRange(i,b,b),p=b):(e.replaceRange(i,b,w),p=e.posFromIndex(e.indexFromPos(b)+i.length-1)),v&&(n.lastSelection.headMark=e.setBookmark(v)),g&&(p.ch=0)}else if(m){e.setCursor®;for(f=0;f<i.length;f++){($=r.line+f)>e.lastLine()&&e.replaceRange(“n”,new Ft($,0)),X(e,$)<r.ch&&ee(e,$,r.ch)}e.setCursor®,te(e,new Ft(r.line+i.length-1,r.ch)),e.replaceSelections(i),p=r}else if(e.replaceRange(i,r),g){var $=t.after?r.line+1:r.line;p=new Ft($,pe(e.getLine($)))}else p=V®,/n/.test(i)||(p.ch+=i.length-(t.after?1:0));n.visualMode&&he(e,!1),e.setCursor(p)}},undo:function(e,t){e.operation((function(){G(e,Ot.commands.undo,t.repeat)(),e.setCursor(H(e,e.getCursor(“start”)))}))},redo:function(e,t){G(e,Ot.commands.redo,t.repeat)()},setRegister:function(e,t,n){n.inputState.registerName=t.selectedCharacter},insertRegister:function(e,t){var n=t.selectedCharacter,i=qt.registerController.getRegister(n),o=i&&i.toString();o&&e.replaceSelection(o)},oneNormalCommand:function(e,t,n){it(e,!0),n.insertModeReturn=!0,Ot.on(e,“vim-command-done”,(function t(){n.visualMode||(n.insertModeReturn&&(n.insertModeReturn=!1,n.insertMode||cn.enterInsertMode(e,{},n)),Ot.off(e,“vim-command-done”,t))}))},setMark:function(e,t,n){$e(e,n,t.selectedCharacter,e.getCursor())},replace:function(e,t,n){var i,r,s=t.selectedCharacter,a=e.getCursor(),l=e.listSelections();if(n.visualMode)a=e.getCursor(“start”),r=e.getCursor(“end”);else{var c=e.getLine(a.line);(i=a.ch+t.repeat)>c.length&&(i=c.length),r=new Ft(a.line,i)}var h=o(e,a,r);if(a=h.start,r=h.end,“n”==s)n.visualMode||e.replaceRange(“”,a,r),(Ot.commands.newlineAndIndentContinueComment||Ot.commands.newlineAndIndent)(e);else{var u=e.getRange(a,r);if(u=(u=u.replace(/[uDC00-uDFFF]/g,s)).replace(//g,s),n.visualBlock){var d=new Array(e.getOption(“tabSize”)+1).join(“ ”);u=(u=(u=e.getSelection()).replace(/[uDC00-uDFFF]/g,s)).replace(/t/g,d).replace(//g,s).split(“n”),e.replaceSelections(u)}else e.replaceRange(u,a,r);n.visualMode?(a=U(l.anchor,l.head)?l.anchor:l.head,e.setCursor(a),he(e,!1)):e.setCursor(P(r,0,-1))}},incrementNumberToken:function(e,t){for(var n,i,o,r,s=e.getCursor(),a=e.getLine(s.line),l=/(-?)(?:(0x)(+)|(0b|0|)(d+))/gi;null!==(n=l.exec(a))&&(o=(i=n.index)+n.length,!(s.ch<o)););if((t.backtrack||!(o<=s.ch))&&n){var c=n||n,h=n||n,u=t.increase?1:-1,d=“0b”:2,0:8,“”:10,“0x”:16;r=(parseInt(n+h,d)+u*t.repeat).toString(d);var p=c?new Array(h.length-r.length+1+n.length).join(“0”):“”;r=“-”===r.charAt(0)?“-”+c+p+r.substr(1):c+p+r;var g=new Ft(s.line,i),m=new Ft(s.line,o);e.replaceRange(r,g,m),e.setCursor(new Ft(s.line,i+r.length-1))}},repeatLastEdit:function(e,t,n){if(n.lastEditInputState){var i=t.repeat;i&&t.repeatIsExplicit?n.lastEditInputState.repeatOverride=i:i=n.lastEditInputState.repeatOverride||i,mt(e,n,i,!1)}},indent:function(e,t){e.indentLine(e.getCursor().line,t.indentRight)},exitInsertMode:it},hn={“(”:“bracket”,“)”:“bracket”,“{”:“bracket”,“}”:“bracket”,“”:“section”,“*”:“comment”,“/”:“comment”,m:“method”,M:“method”,“#”:“preprocess”},un={bracket:{isComplete:function(e){if(e.nextCh===e.symb){if(e.depth++,e.depth>=1)return!0}else e.nextCh===e.reverseSymb&&e.depth–;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?“]”:“[”)===e.symb?“{”:“}”},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t=“*”===e.lastCh&&“/”===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb=“m”===e.symb?“{”:“}”, e.reverseSymb=“{”===e.symb?“}”:“{”},isComplete:function(e){return e.nextCh===e.symb}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if(“#”===e.nextCh){var t=e.lineText.match(/^#(w+)/);if(“endif”===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if(“if”===t){if(!e.forward&&0===e.depth)return!0;e.depth–}if(“else”===t&&0===e.depth)return!0}return!1}}};f(“pcre”,!0,“boolean”),Re.prototype={getQuery:function(){return qt.query},setQuery:function(e){qt.query=e},getOverlay:function(){return this.searchOverlay},setOverlay:function(e){this.searchOverlay=e},isReversed:function(){return qt.isReversed},setReversed:function(e){qt.isReversed=e},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(e){this.annotate=e}};var dn={“\n”:“n”,“\r”:“r”,“\t”:“t”},pn={“\/”:“/”,“\\”:“\”,“\n”:“n”,“\r”:“r”,“\t”:“t”,“\&”:“&”},gn=0,mn=function(){this.buildCommandMap_()};mn.prototype={processCommand:function(e,t,n){var i=this;e.operation((function(){e.curOp.isVimOp=!0,i._processCommand(e,t,n)}))},_processCommand:function(e,t,n){var i=e.state.vim,o=qt.registerController.getRegister(“:”),r=o.toString(),s=new Ot.StringStream(t);o.setText(t);var a,l,c=n||{};c.input=t;try{this.parseInput_(e,s,c)}catch(t){throw ze(e,t.toString()),t}if(i.visualMode&&he(e),c.commandName){if(a=this.matchCommand_(c.commandName)){if(l=a.name,a.excludeFromCommandHistory&&o.setText®,this.parseCommandArgs_(s,c,a),“exToKey”==a.type)return void C(e,a.toKeys,a);if(“exToEx”==a.type)return void this.processCommand(e,a.toInput)}}else void 0!==c.line&&(l=“move”);if(l)try{fn(e,c),a&&a.possiblyAsync||!c.callback||c.callback()}catch(t){throw ze(e,t.toString()),t}else ze(e,’Not an editor command “:‘t
’”‘)},parseInput_:function(e,t,n){if(t.eatWhile(“:”),t.eat(“%”)?(n.line=e.firstLine(),n.lineEnd=e.lastLine()):(n.line=this.parseLineSpec_(e,t),void 0!==n.line&&t.eat(“,”)&&(n.lineEnd=this.parseLineSpec_(e,t))),null==n.line)if(e.state.vim.visualMode){var i=et(e,e.state.vim,“<”);n.selectionLine=i&&i.line,i=et(e,e.state.vim,“>”),n.selectionLineEnd=i&&i.line}else n.selectionLine=e.getCursor().line;else n.selectionLine=n.line,n.selectionLineEnd=n.lineEnd;var o=t.match(/^(w+|!!|@@|)/);return n.commandName=o?o:t.match(/.*/),n},parseLineSpec_:function(e,t){var n=t.match(/^(d+)/);if(n)return parseInt(n,10)-1;switch(t.next()){case“.”:return this.parseLineSpecOffset_(t,e.getCursor().line);case“$”:return this.parseLineSpecOffset_(t,e.lastLine());case“’”:var i=t.next(),o=et(e,e.state.vim,i);if(!o)throw new Error(“Mark not set”);return this.parseLineSpecOffset_(t,o.line);case“-”:case“+”:return t.backUp(1),this.parseLineSpecOffset_(t,e.getCursor().line);default:return void t.backUp(1)}},parseLineSpecOffset_:function(e,t){var n=e.match(/^()?(d+)/);if(n){var i=parseInt(n,10);“-”==n?t-=i:t+=i}return t},parseCommandArgs_:function(e,t,n){if(!e.eol()){t.argString=e.match(/.*/);var i=n.argDelimiter||/s+/,o=Z(t.argString).split(i);o.length&&o&&(t.args=o)}},matchCommand_:function(e){for(var t=e.length;t>0;t–){var n=e.substring(0,t);if(this.commandMap_){var i=this.commandMap_;if(0===i.name.indexOf(e))return i}}return null},buildCommandMap_:function(){this.commandMap_={};for(var e=0;e<Bt.length;e++){var t=Bt,n=t.shortName||t.name;this.commandMap_=t}},map:function(e,t,n,i){if(“:”!=e&&“:”==e.charAt(0)){if(n)throw Error(“Mode not supported for ex mappings”);var o=e.substring(1);“:”!=t&&“:”==t.charAt(0)?this.commandMap_={name:o,type:“exToEx”,toInput:t.substring(1),user:!0}:this.commandMap_={name:o,type:“exToKey”,toKeys:t,user:!0}}else{var r={keys:e,type:“keyToKey”,toKeys:t,noremap:!!i};n&&(r.context=n),Dt.unshift®}},unmap:function(e,t){if(“:”!=e&&“:”==e.charAt(0)){if(t)throw Error(“Mode not supported for ex mappings”);var n=e.substring(1);if(this.commandMap_&&this.commandMap_.user)return delete this.commandMap_,!0}else for(var i=e,o=0;o<Dt.length;o++)if(i==Dt.keys&&Dt.context===t)return Dt.splice(o,1),!0}};var fn={colorscheme:function(e,t){!t.args||t.args.length<1?ze(e,e.getOption(“theme”)):e.setOption(“theme”,t.args)},map:function(e,t,n,i){var o=t.args;!o||o.length<2?e&&ze(e,“Invalid mapping: ”+t.input):vn.map(o,o,n,i)},imap:function(e,t){this.map(e,t,“insert”)},nmap:function(e,t){this.map(e,t,“normal”)},vmap:function(e,t){this.map(e,t,“visual”)},omap:function(e,t){this.map(e,t,“operatorPending”)},noremap:function(e,t){this.map(e,t,void 0,!0)},inoremap:function(e,t){this.map(e,t,“insert”,!0)},nnoremap:function(e,t){this.map(e,t,“normal”,!0)},vnoremap:function(e,t){this.map(e,t,“visual”,!0)},onoremap:function(e,t){this.map(e,t,“operatorPending”,!0)},unmap:function(e,t,n){var i=t.args;(!i||i.length<1||!vn.unmap(i,n))&&e&&ze(e,“No such mapping: ”+t.input)},mapclear:function(){Jt.mapclear()},imapclear:function(){Jt.mapclear(“insert”)},nmapclear:function(){Jt.mapclear(“normal”)},vmapclear:function(){Jt.mapclear(“visual”)},omapclear:function(){Jt.mapclear(“operatorPending”)},move:function(e,t){sn.processCommand(e,e.state.vim,{type:“motion”,motion:“moveToLineOrEdgeOfDocument”,motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:t.line+1})},set:function(e,t){var n=t.args,i=t.setCfg||{};if(!n||n.length<1)e&&ze(e,“Invalid mapping: ”+t.input);else{var o=n.split(“=”),r=o,s=o,a=!1,l=!1;if(“?”==r.charAt(r.length-1)){if(s)throw Error(“Trailing characters: ”+t.argString);r=r.substring(0,r.length-1),a=!0}else“!”==r.charAt(r.length-1)&&(r=r.substring(0,r.length-1),l=!0);void 0===s&&“no”==r.substring(0,2)&&(r=r.substring(2),s=!1);var c=Ut&&“boolean”==Ut.type;if(c&&(l?s=!y(r,e,i):null==s&&(s=!0)),!c&&void 0===s||a){var h=y(r,e,i);h instanceof Error?ze(e,h.message):ze(e,!0===h||!1===h?“ ”+(h?“”:“no”)+r:“ ”r
“=”+h)}else{var u=v(r,s,e,i);u instanceof Error&&ze(e,u.message)}}},setlocal:function(e,t){t.setCfg={scope:“local”},this.set(e,t)},setglobal:function(e,t){t.setCfg={scope:“global”},this.set(e,t)},registers:function(e,t){var n=t.args,i=qt.registerController.registers,o=“———-Registers———-nn”;if(n){n=n.join(“”);for(var r=0;r<n.length;r++){if(s=n.charAt®,qt.registerController.isValidRegister(s))o+=‘“’s
” “+(i||new T).toString()+”n“}}else for(var s in i){var a=i.toString();a.length&&(o+=‘”’s
“ ”a
“n”)}ze(e,o)},sort:function(e,t){function n(){if(t.argString){var e=new Ot.StringStream(t.argString);if(e.eat(“!”)&&(r=!0),e.eol())return;if(!e.eatSpace())return“Invalid arguments”;var n=e.match(/(+)?s*(/.+/)?s*/);if(!n&&!e.eol())return“Invalid arguments”;if(n){s=-1!=n.indexOf(“i”),a=-1!=n.indexOf(“u”);var i=-1!=n.indexOf(“d”)||-1!=n.indexOf(“n”)&&1,o=-1!=n.indexOf(“x”)&&1,h=-1!=n.indexOf(“o”)&&1;if(i+o+h>1)return“Invalid arguments”;l=(i?“decimal”:o&&“hex”)||h&&“octal”}n&&(c=new RegExp(n.substr(1,n.length-2),s?“i”:“”))}}function i(e,t){var n;r&&(n=e,e=t,t=n);s&&(e=e.toLowerCase(),t=t.toLowerCase());var i=l&&f.exec(e),o=l&&f.exec(t);return i?(i=parseInt((i+i).toLowerCase(),v))-(o=parseInt((o+o).toLowerCase(),v)):e<t?-1:1}function o(e,t){var n;r&&(n=e,e=t,t=n);return s&&(e=e.toLowerCase(),t=t.toLowerCase()),e<t?-1:1}var r,s,a,l,c,h=n();if(h)ze(e,h+“: ”+t.argString);else{var u=t.line||e.firstLine(),d=t.lineEnd||t.line||e.lastLine();if(u!=d){var p=new Ft(u,0),g=new Ft(d,X(e,d)),m=e.getRange(p,g).split(“n”),f=c||(“decimal”==l?/(-?)(+)/:“hex”==l?/(-?)(?:0x)?(+)/i:“octal”==l?/(+)/:null),v=“decimal”==l?10:“hex”==l?16:“octal”==l?8:null,y=[],b=;if(l||c)for(var w=0;w<m.length;w++){var x=c?m.match©:null;x&&“”!=x?y.push(x):!c&&f.exec(m)?y.push(m):b.push(m)}else b=m;if(y.sort(c?o:i),c)for(w=0;w<y.length;w++)y=y.input;else l||b.sort(i);if(m=r?y.concat(b):b.concat(y),a){var k,C=m;m=[];for(w=0;w<C.length;w++)C!=k&&m.push(C),k=C}e.replaceRange(m.join(“n”),p,g)}}},vglobal:function(e,t){this.global(e,t)},normal:function(e,t){var n=t.argString;if(n&&“!”==n&&(n=n.slice(1),tn=!0),n=n.trimStart()){var i=t.line;if(“number”==typeof i)for(var o=isNaN(t.lineEnd)?i:t.lineEnd,r=i;r<=o;r++)e.setCursor(r,0),C(e,t.argString.trimStart()),e.state.vim.insertMode&&it(e,!0);else C(e,t.argString.trimStart()),e.state.vim.insertMode&&it(e,!0)}else ze(e,“Argument is required.”)},global:function(e,t){var n=t.argString;if(n){var i=“v”===t.commandName;“!”===n&&“g”===t.commandName&&(i=!0,n=n.slice(1));var o,r=void 0!==t.line?t.line:e.firstLine(),s=t.lineEnd||t.line||e.lastLine(),a=Ie(n),l=n;if(a.length&&(l=a,o=a.slice(1,a.length).join(“/”)),l)try{Ke(e,l,!0,!0)}catch(t){return void ze(e,“Invalid regex: ”+l)}for(var c=Ee(e).getQuery(),h=[],u=r;u<=s;u++){var d=e.getLine(u);c.test(d)!==i&&h.push(o?e.getLineHandle(u):d)}if(o){var p=0,g=function(){if(p<h.length){var t=h,n=e.getLineNumber(t);if(null==n)return void g();var i=n+1+o;vn.processCommand(e,i,{callback:g})}else e.releaseLineHandles&&e.releaseLineHandles()};g()}else ze(e,h.join(“n”))}else ze(e,“Regular Expression missing from global”)},substitute:function(e,t){if(!e.getSearchCursor)throw new Error(“Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.”);var n,i,o,r,s=t.argString,a=s?Ne(s,s):[],l=“”,c=!1,h=!1;if(a.length)n=a,y(“pcre”)&&“”!==n&&(n=new RegExp(n).source),void 0!==(l=a)&&(l=y(“pcre”)?Be(l.replace(/()&/g,“$1$$&”)):He(l),qt.lastSubstituteReplacePart=l),i=a?a.split(“ ”):[];else if(s&&s.length)return void ze(e,“Substitutions should be of the form :s/pattern/replace/”);if(i&&(o=i,r=parseInt(i),o&&(-1!=o.indexOf(“c”)&&(c=!0),-1!=o.indexOf(“g”)&&(h=!0),n=y(“pcre”)?n+“/”+o:n.replace(///g,“\/”)+“/”+o)),n)try{Ke(e,n,!0,!0)}catch(t){return void ze(e,“Invalid regex: ”+n)}if(void 0!==(l=l||qt.lastSubstituteReplacePart)){var u=Ee(e).getQuery(),d=void 0!==t.line?t.line:e.getCursor().line,p=t.lineEnd||d;d==e.firstLine()&&p==e.lastLine()&&(p=1/0),r&&(p=(d=p)+r-1);var g=H(e,new Ft(d,0)),m=e.getSearchCursor(u,g);nt(e,c,h,d,p,m,u,l,t.callback)}else ze(e,“No previous substitute regular expression”)},startinsert:function(e,t){C(e,“!”==t.argString?“A”:“i”,{})},redo:Ot.commands.redo,undo:Ot.commands.undo,write:function(e){Ot.commands.save?Ot.commands.save(e):e.save&&e.save()},nohlsearch:function(e){Xe(e)},yank:function(e){var t=V(e.getCursor()).line,n=e.getLine(t);qt.registerController.pushText(“0”,“yank”,n,!0,!0)},delete:function(e,t){var n=t.selectionLine,i=isNaN(t.selectionLineEnd)?n:t.selectionLineEnd;ln.delete(e,{linewise:!0},[{anchor:new Ft(n,0),head:new Ft(i+1,0)}])},join:function(e,t){var n=t.selectionLine,i=isNaN(t.selectionLineEnd)?n:t.selectionLineEnd;e.setCursor(new Ft(n,0)),cn.joinLines(e,{repeat:i-n},e.state.vim)},delmarks:function(e,t){if(t.argString&&Z(t.argString))for(var n=e.state.vim,i=new Ot.StringStream(Z(t.argString));!i.eol();){i.eatSpace();var o=i.pos;if(!i.match(//,!1))return void ze(e,“Invalid argument: ”+t.argString.substring(o));var r=i.next();if(i.match(“-”,!0)){if(!i.match(//,!1))return void ze(e,“Invalid argument: ”+t.argString.substring(o));var s=r,a=i.next();if(!(c(s)&&c(a)||d(s)&&d(a)))return void ze(e,“Invalid argument: ”s
“-”);var l=s.charCodeAt(0),h=a.charCodeAt(0);if(l>=h)return void ze(e,“Invalid argument: ”+t.argString.substring(o));for(var u=0;u<=h-l;u++){var p=String.fromCharCode(l+u);delete n.marks}}else delete n.marks}else ze(e,“Argument required”)}},vn=new mn;f(“insertModeEscKeysTimeout”,200,“number”),Ot.Vim=Jt;var yn={return:“CR”,backspace:“BS”,delete:“Del”,esc:“Esc”,left:“Left”,right:“Right”,up:“Up”,down:“Down”,space:“Space”,insert:“Ins”,home:“Home”,end:“End”,pageup:“PageUp”,pagedown:“PageDown”,enter:“CR”},bn=Jt.handleKey.bind(Jt);Jt.handleKey=function(e,t,n){return e.operation((function(){return bn(e,t,n)}),!0)},x(),t.CodeMirror=Ot;var wn=Jt.maybeInitVimState_;t.handler={$id:“ace/keyboard/vim”,drawCursor:function(e,t,n,i,o){var r=this.state.vim||{},s=n.characterWidth,a=n.lineHeight,l=t.top,c=t.left;r.insertMode||!(i.cursor?kt.comparePoints(i.cursor,i.start)<=0:o.selection.isBackwards()||o.selection.isEmpty())&&c>s&&(c-=s);!r.insertMode&&r.status&&(l+=a/=2),$t.translate(e,c,l),$t.setStyle(e.style,“width”,s+“px”),$t.setStyle(e.style,“height”,a+“px”)},$getDirectionForHighlight:function(e){var t=e.state.cm;if(!wn(t).insertMode)return e.session.selection.isBackwards()||e.session.selection.isEmpty()},handleKeyboard:function(e,t,n,i,o){var r=e.editor,s=r.state.cm,a=wn(s);if(-1!=i){if(a.insertMode||(-1==t?(n.charCodeAt(0)>255&&e.inputKey&&(n=e.inputKey)&&4==e.inputHash&&(n=n.toUpperCase()),e.inputChar=n):4==t||0==t?e.inputKey==n&&e.inputHash==t&&e.inputChar?(n=e.inputChar,t=-1):(e.inputChar=null,e.inputKey=n,e.inputHash=t):e.inputChar=e.inputKey=null),s.state.overwrite&&a.insertMode&&“backspace”==n&&0==t)return{command:“gotoleft”};if(“c”==n&&1==t&&!_t.isMac&&r.getCopyText())return r.once(“copy”,(function(){a.insertMode?r.selection.clearSelection():s.operation((function(){he(s)}))})),{command:“null”,passEvent:!0};if(“esc”==n&&!a.insertMode&&!a.visualMode&&!s.ace.inMultiSelectMode){var l=Ee(s).getOverlay();l&&s.removeOverlay(l)}if(-1==t||1&t||0===t&&n.length>1){var c=a.insertMode,h=yt(t,n,o||{},a);null==a.status&&(a.status=“”);var u=wt(s,h,“user”);if(a=wn(s),u&&null!=a.status?a.status+=h:null==a.status&&(a.status=“”),s._signal(“changeStatus”),!u&&(-1!=t||c))return;return{command:“null”,passEvent:!u}}}},attach:function(e){function t(){var t=wn(n).insertMode;n.ace.renderer.setStyle(“normal-mode”,!t),e.textInput.setCommandMode(!t),e.renderer.$keepTextAreaAtCursor=t,e.renderer.$blockCursor=!t}e.state||(e.state={});var n=new Ot(e);e.state.cm=n,e.$vimModeHandler=this,r(n),wn(n).status=null,n.on(“vim-command-done”,(function(){n.virtualSelectionMode()||(wn(n).status=null,n.ace._signal(“changeStatus”),n.ace.session.markUndoGroup())})),n.on(“changeStatus”,(function(){n.ace.renderer.updateCursor(),n.ace._signal(“changeStatus”)})),n.on(“vim-mode-change”,(function(){n.virtualSelectionMode()||(t(),n._signal(“changeStatus”))})),t(),e.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(n)},detach:function(e){var t=e.state.cm;s(t),t.destroy(),e.state.cm=null,e.$vimModeHandler=null,e.renderer.$cursorLayer.drawCursor=null,e.renderer.setStyle(“normal-mode”,!1),e.textInput.setCommandMode(!1),e.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(e){var t=e.state.cm,n=wn(t);if(n.insertMode)return“INSERT”;var i=“”;return n.visualMode&&(i+=“VISUAL”,n.visualLine&&(i+=“ LINE”),n.visualBlock&&(i+=“ BLOCK”)),n.status&&(i+=(i?“ ”:“”)+n.status),i}},Jt.defineOption({name:“wrap”,set:function(e,t){t&&t.ace.setOption(“wrap”,e)},type:“boolean”},!1),Jt.defineEx(“write”,“w”,(function(){console.log(“:write is not implemented”)})),Dt.push({keys:“zc”,type:“action”,action:“fold”,actionArgs:{open:!1}},{keys:“zC”,type:“action”,action:“fold”,actionArgs:{open:!1,all:!0}},{keys:“zo”,type:“action”,action:“fold”,actionArgs:{open:!0}},{keys:“zO”,type:“action”,action:“fold”,actionArgs:{open:!0,all:!0}},{keys:“za”,type:“action”,action:“fold”,actionArgs:{toggle:!0}},{keys:“zA”,type:“action”,action:“fold”,actionArgs:{toggle:!0,all:!0}},{keys:“zf”,type:“action”,action:“fold”,actionArgs:{open:!0,all:!0}},{keys:“zd”,type:“action”,action:“fold”,actionArgs:{open:!0,all:!0}},{keys:“<C-A-k>”,type:“action”,action:“aceCommand”,actionArgs:{name:“addCursorAbove”}},{keys:“<C-A-j>”,type:“action”,action:“aceCommand”,actionArgs:{name:“addCursorBelow”}},{keys:“<C-A-S-k>”,type:“action”,action:“aceCommand”,actionArgs:{name:“addCursorAboveSkipCurrent”}},{keys:“<C-A-S-j>”,type:“action”,action:“aceCommand”,actionArgs:{name:“addCursorBelowSkipCurrent”}},{keys:“<C-A-h>”,type:“action”,action:“aceCommand”,actionArgs:{name:“selectMoreBefore”}},{keys:“<C-A-l>”,type:“action”,action:“aceCommand”,actionArgs:{name:“selectMoreAfter”}},{keys:“<C-A-S-h>”,type:“action”,action:“aceCommand”,actionArgs:{name:“selectNextBefore”}},{keys:“<C-A-S-l>”,type:“action”,action:“aceCommand”,actionArgs:{name:“selectNextAfter”}}),Dt.push({keys:“gq”,type:“operator”,operator:“hardWrap”}),Jt.defineOperator(“hardWrap”,(function(e,t,n){var i=n.anchor.line,o=n.head.line;return t.linewise&&o–,It(e.ace,{startRow:i,endRow:o}),Ft(o,0)})),f(“textwidth”,void 0,“number”,,(function(e,t){if(void 0!==t){if(void 0===e)return t.ace.getOption(“printMarginColumn”);var n=Math.round(e);n>1&&t.ace.setOption(“printMarginColumn”,n)}})),cn.aceCommand=function(e,t){e.vimCmd=t,e.ace.inVirtualSelectionMode?e.ace.on(“beforeEndOperation”,xt):xt(null,e.ace)},cn.fold=function(e,t){e.ace.execCommand([(t.all?2:0)+(t.open?1:0)])},Ht=Dt.length,t.handler.defaultKeymap=Dt,t.handler.actions=cn,t.Vim=Jt})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/occur”,,(function(e,t){“use strict”;var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e=t)},n(e,t)},function(e,t){function i(){this.constructor=e}if(“function”!=typeof t&&null!==t)throw new TypeError(“Class extends value ”+String(t)+“ is not a constructor or null”);n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=e(“./lib/oop”),r=e(“./search”).Search,s=e(“./edit_session”).EditSession,a=e(“./search_highlight”).SearchHighlight,l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.enter=function(e,t){if(!t.needle)return!1;var n=e.getCursorPosition();this.displayOccurContent(e,t);var i=this.originalToOccurPosition(e.session,n);return e.moveCursorToPosition(i),!0},t.prototype.exit=function(e,t){var n=t.translatePosition&&e.getCursorPosition(),i=n&&this.occurToOriginalPosition(e.session,n);return this.displayOriginalContent(e),i&&e.moveCursorToPosition(i),!0},t.prototype.highlight=function(e,t){(e.$occurHighlight=e.$occurHighlight||e.addDynamicMarker(new a(null,“ace_occur-highlight”,“text”))).setRegexp(t),e._emit(“changeBackMarker”)},t.prototype.displayOccurContent=function(e,t){this.$originalSession=e.session;var n=this.matchingLines(e.session,t),i=n.map((function(e){return e.content})),o=new s(i.join(“n”));o.$occur=this,o.$occurMatchingLines=n,e.setSession(o),this.$useEmacsStyleLineStart=this.$originalSession.$useEmacsStyleLineStart,o.$useEmacsStyleLineStart=this.$useEmacsStyleLineStart,this.highlight(o,t.re),o._emit(“changeBackMarker”)},t.prototype.displayOriginalContent=function(e){e.setSession(this.$originalSession),this.$originalSession.$useEmacsStyleLineStart=this.$useEmacsStyleLineStart},t.prototype.originalToOccurPosition=function(e,t){var n=e.$occurMatchingLines,i={row:0,column:0};if(!n)return i;for(var o=0;o<n.length;o++)if(n.row===t.row)return{row:o,column:t.column};return i},t.prototype.occurToOriginalPosition=function(e,t){var n=e.$occurMatchingLines;return n&&n?{row:n.row,column:t.column}:t},t.prototype.matchingLines=function(e,t){if(t=o.mixin({},t),!e||!t.needle)return[];var n=new r;return n.set(t),n.findAll(e).reduce((function(t,n){var i=n.start.row,o=t;return o&&o.row===i?t:t.concat({row:i,content:e.getLine(i)})}),[])},t}®;e(“./lib/dom”).importCssString(“.ace_occur-highlight {n border-radius: 4px;n background-color: rgba(87, 255, 8, 0.25);n position: absolute;n z-index: 4;n box-sizing: border-box;n box-shadow: 0 0 4px rgb(91, 255, 50);n}n.ace_dark .ace_occur-highlight {n background-color: rgb(80, 140, 85);n box-shadow: 0 0 4px rgb(60, 120, 70);n}n”,“incremental-occur-highlighting”,!1),t.Occur=l})),ace.define(“ace/commands/occur_commands”,,(function(e,t){function n(){}e(“../config”);var i=e(“../occur”).Occur,o={name:“occur”,exec:function(e,t){var o=!!e.session.$occur;(new i).enter(e,t)&&!o&&n.installIn(e)},readOnly:!0},r=[{name:“occurexit”,bindKey:“esc|Ctrl-G”,exec:function(e){var t=e.session.$occur;t&&(t.exit(e,{}),e.session.$occur||n.uninstallFrom(e))},readOnly:!0},{name:“occuraccept”,bindKey:“enter”,exec:function(e){var t=e.session.$occur;t&&(t.exit(e,{translatePosition:!0}),e.session.$occur||n.uninstallFrom(e))},readOnly:!0}],s=e(“../keyboard/hash_handler”).HashHandler;e(“../lib/oop”).inherits(n,s),function(){this.isOccurHandler=!0,this.attach=function(e){s.call(this,r,e.commands.platform),this.$editor=e};var e=this.handleKeyboard;this.handleKeyboard=function(t,n,i,o){var r=e.call(this,t,n,i,o);return r&&r.command?r:void 0}}.call(n.prototype),n.installIn=function(e){var t=new this;e.keyBinding.addKeyboardHandler(t),e.commands.addCommands®},n.uninstallFrom=function(e){e.commands.removeCommands®;var t=e.getKeyboardHandler();t.isOccurHandler&&e.keyBinding.removeKeyboardHandler(t)},t.occurStartCommand=o})),ace.define(“ace/commands/incremental_search_commands”,,(function(e,t){function n(e){this.$iSearch=e}var i=e(“../config”),o=e(“../lib/oop”),r=e(“../keyboard/hash_handler”).HashHandler,s=e(“./occur_commands”).occurStartCommand;t.iSearchStartCommands=[{name:“iSearch”,bindKey:{win:“Ctrl-F”,mac:“Command-F”},exec:function(e,t){i.loadModule(,(function(n){var i=n.iSearch=n.iSearch||new n.IncrementalSearch;i.activate(e,t.backwards),t.jumpToFirstMatch&&i.next(t)}))},readOnly:!0},{name:“iSearchBackwards”,exec:function(e){e.execCommand(“iSearch”,{backwards:!0})},readOnly:!0},{name:“iSearchAndGo”,bindKey:{win:“Ctrl-K”,mac:“Command-G”},exec:function(e){e.execCommand(“iSearch”,{jumpToFirstMatch:!0,useCurrentOrPrevSearch:!0})},readOnly:!0},{name:“iSearchBackwardsAndGo”,bindKey:{win:“Ctrl-Shift-K”,mac:“Command-Shift-G”},exec:function(e){e.execCommand(“iSearch”,{jumpToFirstMatch:!0,backwards:!0,useCurrentOrPrevSearch:!0})},readOnly:!0}],t.iSearchCommands=[{name:“restartSearch”,bindKey:{win:“Ctrl-F”,mac:“Command-F”},exec:function(e){e.cancelSearch(!0)}},{name:“searchForward”,bindKey:{win:“Ctrl-S|Ctrl-K”,mac:“Ctrl-S|Command-G”},exec:function(e,t){t.useCurrentOrPrevSearch=!0,e.next(t)}},{name:“searchBackward”,bindKey:{win:“Ctrl-R|Ctrl-Shift-K”,mac:“Ctrl-R|Command-Shift-G”},exec:function(e,t){t.useCurrentOrPrevSearch=!0,t.backwards=!0,e.next(t)}},{name:“extendSearchTerm”,exec:function(e,t){e.addString(t)}},{name:“extendSearchTermSpace”,bindKey:“space”,exec:function(e){e.addString(“ ”)}},{name:“shrinkSearchTerm”,bindKey:“backspace”,exec:function(e){e.removeChar()}},{name:“confirmSearch”,bindKey:“return”,exec:function(e){e.deactivate()}},{name:“cancelSearch”,bindKey:“esc|Ctrl-G”,exec:function(e){e.deactivate(!0)}},{name:“occurisearch”,bindKey:“Ctrl-O”,exec:function(e){var t=o.mixin({},e.$options);e.deactivate(),s.exec(e.$editor,t)}},{name:“yankNextWord”,bindKey:“Ctrl-w”,exec:function(e){var t=e.$editor,n=t.selection.getRangeOfMovements((function(e){e.moveCursorWordRight()})),i=t.session.getTextRange(n);e.addString(i)}},{name:“yankNextChar”,bindKey:“Ctrl-Alt-y”,exec:function(e){var t=e.$editor,n=t.selection.getRangeOfMovements((function(e){e.moveCursorRight()})),i=t.session.getTextRange(n);e.addString(i)}},{name:“recenterTopBottom”,bindKey:“Ctrl-l”,exec:function(e){e.$editor.execCommand(“recenterTopBottom”)}},{name:“selectAllMatches”,bindKey:“Ctrl-space”,exec:function(e){var t=e.$editor,n=t.session.$isearchHighlight,i=n&&n.cache?n.cache.reduce((function(e,t){return e.concat(t||[])}),):[];e.deactivate(!1),i.forEach(t.selection.addRange.bind(t.selection))}},{name:“searchAsRegExp”,bindKey:“Alt-r”,exec:function(e){e.convertNeedleToRegExp()}}].map((function(e){return e.readOnly=!0,e.isIncrementalSearchCommand=!0,e.scrollIntoView=“animate-cursor”,e})),o.inherits(n,r),function(){this.attach=function(e){var n=this.$iSearch;r.call(this,t.iSearchCommands,e.commands.platform),this.$commandExecHandler=e.commands.on(“exec”,(function(t){if(!t.command.isIncrementalSearchCommand)return n.deactivate();t.stopPropagation(),t.preventDefault();var i=e.session.getScrollTop(),o=t.command.exec(n,t.args||{});return e.renderer.scrollCursorIntoView(null,.5),e.renderer.animateScrolling(i),o}))},this.detach=function(e){this.$commandExecHandler&&(e.commands.off(“exec”,this.$commandExecHandler),delete this.$commandExecHandler)};var e=this.handleKeyboard;this.handleKeyboard=function(t,n,i,o){if((1===n||8===n)&&“v”===i||1===n&&“y”===i)return null;var r=e.call(this,t,n,i,o);if(r&&r.command)return r;if(-1==n){var s=this.commands.extendSearchTerm;if(s)return{command:s,args:i}}return!1}}.call(n.prototype),t.IncrementalSearchKeyboardHandler=n})),ace.define(“ace/incremental_search”,,(function(e,t){“use strict”;function n(e){return e instanceof RegExp}function i(e){var t=String(e),n=t.indexOf(“/”),i=t.lastIndexOf(“/”);return{expression:t.slice(n+1,i),flags:t.slice(i+1)}}function o(e,t){try{return new RegExp(e,t)}catch(t){return e}}function r(e){return o(e.expression,e.flags)}var s,a=this&&this.__extends||(s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e=t)},s(e,t)},function(e,t){function n(){this.constructor=e}if(“function”!=typeof t&&null!==t)throw new TypeError(“Class extends value ”+String(t)+“ is not a constructor or null”);s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=e(“./range”).Range,c=e(“./search”).Search,h=e(“./search_highlight”).SearchHighlight,u=e(“./commands/incremental_search_commands”),d=u.IncrementalSearchKeyboardHandler,p=function(e){function t(){var t=e.call(this)||this;return t.$options={wrap:!1,skipCurrent:!1},t.$keyboardHandler=new d(t),t}return a(t,e),t.prototype.activate=function(e,t){this.$editor=e,this.$startPos=this.$currentPos=e.getCursorPosition(),this.$options.needle=“”,this.$options.backwards=t,e.keyBinding.addKeyboardHandler(this.$keyboardHandler),this.$originalEditorOnPaste=e.onPaste,e.onPaste=this.onPaste.bind(this),this.$mousedownHandler=e.on(“mousedown”,this.onMouseDown.bind(this)),this.selectionFix(e),this.statusMessage(!0)},t.prototype.deactivate=function(e){this.cancelSearch(e);var t=this.$editor;t.keyBinding.removeKeyboardHandler(this.$keyboardHandler),this.$mousedownHandler&&(t.off(“mousedown”,this.$mousedownHandler),delete this.$mousedownHandler),t.onPaste=this.$originalEditorOnPaste,this.message(“”)},t.prototype.selectionFix=function(e){e.selection.isEmpty()&&!e.session.$emacsMark&&e.clearSelection()},t.prototype.highlight=function(e){var t=this.$editor.session;(t.$isearchHighlight=t.$isearchHighlight||t.addDynamicMarker(new h(null,“ace_isearch-result”,“text”))).setRegexp(e),t._emit(“changeBackMarker”)},t.prototype.cancelSearch=function(e){var t=this.$editor;return this.$prevNeedle=this.$options.needle,this.$options.needle=“”,e?(t.moveCursorToPosition(this.$startPos),this.$currentPos=this.$startPos):t.pushEmacsMark&&t.pushEmacsMark(this.$startPos,!1),this.highlight(null),l.fromPoints(this.$currentPos,this.$currentPos)},t.prototype.highlightAndFindWithNeedle=function(e,t){if(!this.$editor)return null;var n=this.$options;if(t&&(n.needle=t.call(this,n.needle||“”)||“”),0===n.needle.length)return this.statusMessage(!0),this.cancelSearch(!0);n.start=this.$currentPos;var i=this.$editor.session,o=this.find(i),r=this.$editor.emacsMark?!!this.$editor.emacsMark():!this.$editor.selection.isEmpty();return o&&(n.backwards&&(o=l.fromPoints(o.end,o.start)),this.$editor.selection.setRange(l.fromPoints(r?this.$startPos:o.end,o.end)),e&&(this.$currentPos=o.end),this.highlight(n.re)),this.statusMessage(o),o},t.prototype.addString=function(e){return this.highlightAndFindWithNeedle(!1,(function(t){if(!n(t))return t+e;var o=i(t);return o.expression+=e,r(o)}))},t.prototype.removeChar=function(){return this.highlightAndFindWithNeedle(!1,(function(e){if(!n(e))return e.substring(0,e.length-1);var t=i(e);return t.expression=t.expression.substring(0,t.expression.length-1),r(t)}))},t.prototype.next=function(e){return e=e||{},this.$options.backwards=!!e.backwards,this.$currentPos=this.$editor.getCursorPosition(),this.highlightAndFindWithNeedle(!0,(function(t){return e.useCurrentOrPrevSearch&&0===t.length?this.$prevNeedle||“”:t}))},t.prototype.onMouseDown=function(){return this.deactivate(),!0},t.prototype.onPaste=function(e){this.addString(e)},t.prototype.convertNeedleToRegExp=function(){return this.highlightAndFindWithNeedle(!1,(function(e){return n(e)?e:o(e,“ig”)}))},t.prototype.convertNeedleToString=function(){return this.highlightAndFindWithNeedle(!1,(function(e){return n(e)?i(e).expression:e}))},t.prototype.statusMessage=function(e){var t=this.$options,n=“”;n+=t.backwards?“reverse-”:“”,n+=“isearch: ”+t.needle,n+=e?“”:“ (not found)”,this.message(n)},t.prototype.message=function(e){this.$editor.showCommandLine&&(this.$editor.showCommandLine(e),this.$editor.focus())},t}©;t.IncrementalSearch=p,e(“./lib/dom”).importCssString(“n.ace_marker-layer .ace_isearch-result {n position: absolute;n z-index: 6;n box-sizing: border-box;n}ndiv.ace_isearch-result {n border-radius: 4px;n background-color: rgba(255, 200, 0, 0.5);n box-shadow: 0 0 4px rgb(255, 200, 0);n}n.ace_dark div.ace_isearch-result {n background-color: rgb(100, 110, 160);n box-shadow: 0 0 4px rgb(80, 90, 140);n}”,“incremental-search-highlighting”,!1);var g=e(“./commands/command_manager”);(function(){this.setupIncrementalSearch=function(e,t){if(this.usesIncrementalSearch!=t){this.usesIncrementalSearch=t;var n=u.iSearchStartCommands;this(n)}}}).call(g.CommandManager.prototype);var m=e(“./editor”).Editor;e(“./config”).defineOptions(m.prototype,“editor”,{useIncrementalSearch:{set:function(e){this.keyBinding.$handlers.forEach((function(t){t.setupIncrementalSearch&&t.setupIncrementalSearch(this,e)})),this._emit(“incrementalSearchSettingChanged”,{isEnabled:e})}}})})),ace.define(“ace/keyboard/emacs”,,(function(e,t){“use strict”;var n=e(“../lib/dom”);e(“../incremental_search”);var i,o,r=e(“../commands/incremental_search_commands”),s=e(“./hash_handler”).HashHandler;t.handler=new s,t.handler.isEmacs=!0,t.handler.$id=“ace/keyboard/emacs”,n.importCssString(“n.emacs-mode .ace_cursor{n border: 1px rgba(50,250,50,0.8) solid!important;n box-sizing: border-box!important;n background-color: rgba(0,250,0,0.9);n opacity: 0.5;n}n.emacs-mode .ace_hidden-cursors .ace_cursor{n opacity: 1;n background-color: transparent;n}n.emacs-mode .ace_overwrite-cursors .ace_cursor {n opacity: 1;n background-color: transparent;n border-width: 0 0 2px 2px !important;n}n.emacs-mode .ace_text-layer {n z-index: 4n}n.emacs-mode .ace_cursor-layer {n z-index: 2n}”,“emacsMode”),t.handler.attach=function(e){i=e.session.$selectLongWords,e.session.$selectLongWords=!0,o=e.session.$useEmacsStyleLineStart,e.session.$useEmacsStyleLineStart=!0,e.session.$emacsMark=null,e.session.$emacsMarkRing=e.session.$emacsMarkRing||[],e.emacsMark=function(){return this.session.$emacsMark},e.setEmacsMark=function(e){this.session.$emacsMark=e},e.pushEmacsMark=function(e,t){var n=this.session.$emacsMark;n&&this.session.$emacsMarkRing.push(n),!e||t?this.setEmacsMark(e):this.session.$emacsMarkRing.push(e)},e.popEmacsMark=function(){var e=this.emacsMark();return e?(this.setEmacsMark(null),e):this.session.$emacsMarkRing.pop()},e.getLastEmacsMark=function(){return this.session.$emacsMark||this.session.$emacsMarkRing.slice(-1)},e.emacsMarkForSelection=function(e){var t=this.selection,n=this.multiSelect?this.multiSelect.getAllRanges().length:1,i=t.index||0,o=this.session.$emacsMarkRing,r=o.length-(n-i),s=o||t.anchor;return e&&o.splice(r,1,“row”in e&&“column”in e?e:void 0),s},e.on(“click”,l),e.on(“changeSession”,a),e.renderer.$blockCursor=!0,e.setStyle(“emacs-mode”),e.commands.addCommands(u),t.handler.platform=e.commands.platform,e.$emacsModeHandler=this,e.on(“copy”,this.onCopy),e.on(“paste”,this.onPaste)},t.handler.detach=function(e){e.renderer.$blockCursor=!1,e.session.$selectLongWords=i,e.session.$useEmacsStyleLineStart=o,e.off(“click”,l), e.off(“changeSession”,a),e.unsetStyle(“emacs-mode”),e.commands.removeCommands(u),e.off(“copy”,this.onCopy),e.off(“paste”,this.onPaste),e.$emacsModeHandler=null};var a=function(e){e.oldSession&&(e.oldSession.$selectLongWords=i,e.oldSession.$useEmacsStyleLineStart=o),i=e.session.$selectLongWords,e.session.$selectLongWords=!0,o=e.session.$useEmacsStyleLineStart,e.session.$useEmacsStyleLineStart=!0,e.session.hasOwnProperty(“$emacsMark”)||(e.session.$emacsMark=null),e.session.hasOwnProperty(“$emacsMarkRing”)||(e.session.$emacsMarkRing=[])},l=function(e){e.editor.session.$emacsMark=null},c=e(“../lib/keys”).KEY_MODS,h={C:“ctrl”,S:“shift”,M:“alt”,CMD:“command”};.forEach((function(e){var t=0;e.split(“-”).forEach((function(e){t|=c[h]})),h=e.toLowerCase()+“-”})),t.handler.onCopy=function(e,n){n.$handlesEmacsOnCopy||(n.$handlesEmacsOnCopy=!0,t.handler.commands.killRingSave.exec(n),n.$handlesEmacsOnCopy=!1)},t.handler.onPaste=function(e,t){t.pushEmacsMark(t.getCursorPosition())},t.handler.bindKey=function(e,t){if(“object”==typeof e&&(e=e),e){var n=this.commandKeyBinding;e.split(“|”).forEach((function(e){e=e.toLowerCase(),n=t,e.split(“ ”).slice(0,-1).reduce((function(e,t,n){var i=e?e+“ ”:“”;return e.concat()}),[]).forEach((function(e){n||(n=“null”)}))}),this)}},t.handler.getStatusText=function(e,t){var n=“”;return t.count&&(n+=t.count),t.keyChain&&(n+=“ ”+t.keyChain),n},t.handler.handleKeyboard=function(e,t,n,i){if(-1!==i){var o=e.editor;if(o._signal(“changeStatus”),-1==t&&(o.pushEmacsMark(),e.count)){var r=new Array(e.count+1).join(n);return e.count=null,{command:“insertstring”,args:r}}var s=h;if(“c-”==s||e.count)if(“number”==typeof(c=parseInt(n))&&!isNaN©)return e.count=Math.max(e.count,0)||0,e.count=10*e.count+c,{command:“null”};s&&(n=s+n),e.keyChain&&(n=e.keyChain+=“ ”+n);var a=this.commandKeyBinding;if(e.keyChain=“null”==a?n:“”,a){if(“null”===a)return{command:“null”};if(“universalArgument”===a)return e.count=-4,{command:“null”};var l;if(“string”!=typeof a&&(l=a.args,a.command&&(a=a.command),“goorselect”===a&&(a=o.emacsMark()?l:l,l=null)),“string”!=typeof a||(“insertstring”!==a&&“splitline”!==a&&“togglecomment”!==a||o.pushEmacsMark(),a=this.commands||o.commands.commands)){if(a.readOnly||a.isYank||(e.lastCommand=null),!a.readOnly&&o.emacsMark()&&o.setEmacsMark(null),e.count){var c=e.count;if(e.count=0,!a||!a.handlesCount)return{args:l,command:{exec:function(e,t){for(var n=0;n<c;n++)a.exec(e,t)},multiSelectAction:a.multiSelectAction}};l||(l={}),“object”==typeof l&&(l.count=c)}return{command:a,args:l}}}}},t.emacsKeys={“Up|C-p”:{command:“goorselect”,args:},“Down|C-n”:{command:“goorselect”,args:},“Left|C-b”:{command:“goorselect”,args:},“Right|C-f”:{command:“goorselect”,args:},“C-Left|M-b”:{command:“goorselect”,args:},“C-Right|M-f”:{command:“goorselect”,args:},“Home|C-a”:{command:“goorselect”,args:},“End|C-e”:{command:“goorselect”,args:},“C-Home|S-M-,”:{command:“goorselect”,args:},“C-End|S-M-.”:{command:“goorselect”,args:},“S-Up|S-C-p”:“selectup”,“S-Down|S-C-n”:“selectdown”,“S-Left|S-C-b”:“selectleft”,“S-Right|S-C-f”:“selectright”,“S-C-Left|S-M-b”:“selectwordleft”,“S-C-Right|S-M-f”:“selectwordright”,“S-Home|S-C-a”:“selecttolinestart”,“S-End|S-C-e”:“selecttolineend”,“S-C-Home”:“selecttostart”,“S-C-End”:“selecttoend”,“C-l”:“recenterTopBottom”,“M-s”:“centerselection”,“M-g”:“gotoline”,“C-x C-p”:“selectall”,“C-Down”:{command:“goorselect”,args:},“C-Up”:{command:“goorselect”,args:},“PageDown|C-v”:{command:“goorselect”,args:},“PageUp|M-v”:{command:“goorselect”,args:},“S-C-Down”:“selectpagedown”,“S-C-Up”:“selectpageup”,“C-s”:“iSearch”,“C-r”:“iSearchBackwards”,“M-C-s”:“findnext”,“M-C-r”:“findprevious”,“S-M-5”:“replace”,Backspace:“backspace”,“Delete|C-d”:“del”,“Return|C-m”:{command:“insertstring”,args:“n”},“C-o”:“splitline”,“M-d|C-Delete”:{command:“killWord”,args:“right”},“C-Backspace|M-Backspace|M-Delete”:{command:“killWord”,args:“left”},“C-k”:“killLine”,“C-y|S-Delete”:“yank”,“M-y”:“yankRotate”,“C-g”:“keyboardQuit”,“C-w|C-S-W”:“killRegion”,“M-w”:“killRingSave”,“C-Space”:“setMark”,“C-x C-x”:“exchangePointAndMark”,“C-t”:“transposeletters”,“M-u”:“touppercase”,“M-l”:“tolowercase”,“M-/”:“autocomplete”,“C-u”:“universalArgument”,“M-;”:“togglecomment”,“C-/|C-x u|S-C–|C-z”:“undo”,“S-C-/|S-C-x u|C–|S-C-z”:“redo”,“C-x r”:“selectRectangularRegion”,“M-x”:{command:“focusCommandLine”,args:“M-x ”}},t.handler.bindKeys(t.emacsKeys),t.handler.addCommands({recenterTopBottom:function(e){var t=e.renderer,n=t.$cursorLayer.getPixelPosition(),i=t.$size.scrollerHeight-t.lineHeight,o=t.scrollTop;o=Math.abs(n.top-o)<2?n.top-i:Math.abs(n.top-o-.5*i)<2?n.top:n.top-.5*i,e.session.setScrollTop(o)},selectRectangularRegion:function(e){e.multiSelect.toggleBlockSelection()},setMark:{exec:function(e,t){function n(){var t=e.popEmacsMark();t&&e.moveCursorToPosition(t)}if(t&&t.count)return e.inMultiSelectMode?e.forEachSelection(n):n(),void n();var i=e.emacsMark(),o=e.selection.getAllRanges(),r=o.map((function(e){return{row:e.start.row,column:e.start.column}})),s=!0,a=o.every((function(e){return e.isEmpty()}));return!s||!i&&a?i?void 0:(r.forEach((function(t){e.pushEmacsMark(t)})),void e.setEmacsMark(r)):(e.inMultiSelectMode?e.forEachSelection({exec:e.clearSelection.bind(e)}):e.clearSelection(),void(i&&e.pushEmacsMark(null)))},readOnly:!0,handlesCount:!0},exchangePointAndMark:{exec:function(e,t){var n=e.selection;if(t.count||n.isEmpty())if(t.count){var i={row:n.lead.row,column:n.lead.column};n.clearSelection(),n.moveCursorToPosition(e.emacsMarkForSelection(i))}else n.selectToPosition(e.emacsMarkForSelection());else n.setSelectionRange(n.getRange(),!n.isBackwards())},readOnly:!0,handlesCount:!0,multiSelectAction:“forEach”},killWord:{exec:function(e,n){e.clearSelection(),“left”==n?e.selection.selectWordLeft():e.selection.selectWordRight();var i=e.getSelectionRange(),o=e.session.getTextRange(i);t.killRing.add(o),e.session.remove(i),e.clearSelection()},multiSelectAction:“forEach”},killLine:function(e){e.pushEmacsMark(null),e.clearSelection();var n=e.getSelectionRange(),i=e.session.getLine(n.start.row);n.end.column=i.length,i=i.substr(n.start.column);var o=e.session.getFoldLine(n.start.row);o&&n.end.row!=o.end.row&&(n.end.row=o.end.row,i=“x”),/^s*$/.test(i)&&(n.end.row++,i=e.session.getLine(n.end.row),n.end.column=/^s*$/.test(i)?i.length:0);var r=e.session.getTextRange(n);e.prevOp.command==this?t.killRing.append®:t.killRing.add®,e.session.remove(n),e.clearSelection()},yank:function(e){e.onPaste(t.killRing.get()||“”),e.keyBinding.$data.lastCommand=“yank”},yankRotate:function(e){“yank”==e.keyBinding.$data.lastCommand&&(e.undo(),e.session.$emacsMarkRing.pop(),e.onPaste(t.killRing.rotate()),e.keyBinding.$data.lastCommand=“yank”)},killRegion:{exec:function(e){t.killRing.add(e.getCopyText()),e.commands.byName.cut.exec(e),e.setEmacsMark(null)},readOnly:!0,multiSelectAction:“forEach”},killRingSave:{exec:function(e){e.$handlesEmacsOnCopy=!0;var n=e.session.$emacsMarkRing.slice(),i=[];t.killRing.add(e.getCopyText()),setTimeout((function(){function t(){var t=e.selection,n=t.getRange(),o=t.isBackwards()?n.end:n.start;i.push({row:o.row,column:o.column}),t.clearSelection()}e.$handlesEmacsOnCopy=!1,e.inMultiSelectMode?e.forEachSelection({exec:t}):t(),e.setEmacsMark(null),e.session.$emacsMarkRing=n.concat(i.reverse())}),0)},readOnly:!0},keyboardQuit:function(e){e.selection.clearSelection(),e.setEmacsMark(null),e.keyBinding.$data.count=null},focusCommandLine:function(e,t){e.showCommandLine&&e.showCommandLine(t)}}),t.handler.addCommands(r.iSearchStartCommands);var u=t.handler.commands;u.yank.isYank=!0,u.yankRotate.isYank=!0,t.killRing={$data:[],add:function(e){e&&this.$data.push(e),this.$data.length>30&&this.$data.shift()},append:function(e){var t=this.$data.length-1,n=this.$data||“”;e&&(n+=e),n&&(this.$data=n)},get:function(e){return e=e||1,this.$data.slice(this.$data.length-e,this.$data.length).reverse().join(“n”)},pop:function(){return this.$data.length>1&&this.$data.pop(),this.get()},rotate:function(){return this.$data.unshift(this.$data.pop()),this.get()}}})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/ext/elastic_tabstops_lite”,,(function(e,t){“use strict”;var n=function(){function e(e){this.$editor=e;var t=this,n=[],i=!1;this.onAfterExec=function(){i=!1,t.processRows(n),n=},this.onExec=function(){i=!0},this.onChange=function(e){i&&(-1==n.indexOf(e.start.row)&&n.push(e.start.row),e.end.row!=e.start.row&&n.push(e.end.row))}}return e.prototype.processRows=function(e){this.$inChange=!0;for(var t=[],n=0,i=e.length;n<i;n++){var o=e;if(!(t.indexOf(o)>-1))for(var r=this.$findCellWidthsForBlock(o),s=this.$setBlockCellWidthsToMax(r.cellWidths),a=r.firstRow,l=0,c=s.length;l<c;l++){var h=s;t.push(a),this.$adjustRow(a,h),a++}}this.$inChange=!1},e.prototype.$findCellWidthsForBlock=function(e){for(var t,n=[],i=e;i>=0&&0!=(t=this.$cellWidthsForRow(i)).length;)n.unshift(t),i–;var o=i+1;i=e;for(var r=this.$editor.session.getLength();i<r-1&&(i++,0!=(t=this.$cellWidthsForRow(i)).length);)n.push(t);return{cellWidths:n,firstRow:o}},e.prototype.$cellWidthsForRow=function(e){for(var t=this.$selectionColumnsForRow(e),n=.concat(this.$tabsForRow(e)),i=n.map((function(){return 0})).slice(1),o=this.$editor.session.getLine(e),r=0,s=n.length-1;r<s;r++){var a=n+1,l=n,c=this.$rightmostSelectionInCell(t,l),h=o.substring(a,l);i=Math.max(h.replace(/s+$/g,“”).length,c-a)}return i},e.prototype.$selectionColumnsForRow=function(e){var t=[],n=this.$editor.getCursorPosition();return this.$editor.session.getSelection().isEmpty()&&e==n.row&&t.push(n.column),t},e.prototype.$setBlockCellWidthsToMax=function(e){for(var t,n,i,o=!0,r=this.$izip_longest(e),s=0,a=r.length;s<a;s++){var l=r;if(l.push){l.push(NaN);for(var c=0,h=l.length;c<h;c++){var u=l;if(o&&(t=c,i=0,o=!1),isNaN(u)){n=c;for(var d=t;d<n;d++)e[s]=i;o=!0}i=Math.max(i,u)}}else console.error(l)}return e},e.prototype.$rightmostSelectionInCell=function(e,t){var n=0;if(e.length){for(var i=[],o=0,r=e.length;o<r;o++)e<=t?i.push(o):i.push(0);n=Math.max.apply(Math,i)}return n},e.prototype.$tabsForRow=function(e){for(var t,n=[],i=this.$editor.session.getLine(e),o=/t/g;null!=(t=o.exec(i));)n.push(t.index);return n},e.prototype.$adjustRow=function(e,t){var n=this.$tabsForRow(e);if(0!=n.length)for(var i=0,o=-1,r=this.$izip(t,n),s=0,a=r.length;s<a;s++){var l=r[0],c=r[1],h=(o+=1+l)-(c+=i);if(0!=h){var u=this.$editor.session.getLine(e).substr(0,c),d=u.replace(/s*$/g,“”),p=u.length-d.length;h>0&&(this.$editor.session.getDocument().insertInLine({row:e,column:c+1},Array(h+1).join(“ ”)+“t”),this.$editor.session.getDocument().removeInLine(e,c,c+1),i+=h),h<0&&p>=-h&&(this.$editor.session.getDocument().removeInLine(e,c+h,c),i+=h)}}},e.prototype.$izip_longest=function(e){if(!e)return[];for(var t=e.length,n=e.length,i=1;i<n;i++){var o=e.length;o>t&&(t=o)}for(var r=[],s=0;s<t;s++){var a=[];for(i=0;i<n;i++)“”===e[s]?a.push(NaN):a.push(e[s]);r.push(a)}return r},e.prototype.$izip=function(e,t){for(var n=e.length>=t.length?t.length:e.length,i=[],o=0;o<n;o++){var r=[e,t];i.push®}return i},e}();t.ElasticTabstopsLite=n;var i=e(“../editor”).Editor;e(“../config”).defineOptions(i.prototype,“editor”,{useElasticTabstops:{set:function(e){e?(this.elasticTabstops||(this.elasticTabstops=new n(this)),this.commands.on(“afterExec”,this.elasticTabstops.onAfterExec),this.commands.on(“exec”,this.elasticTabstops.onExec),this.on(“change”,this.elasticTabstops.onChange)):this.elasticTabstops&&(this.commands.removeListener(“afterExec”,this.elasticTabstops.onAfterExec),this.commands.removeListener(“exec”,this.elasticTabstops.onExec),this.removeListener(“change”,this.elasticTabstops.onChange))}}})})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/ext/menu_tools/settings_menu.css”,,(function(e,t,n){n.exports=“#ace_settingsmenu, kbshortcutmenu {n background-color: F7F7F7;n color: black;n box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);n padding: 1em 0.5em 2em 1em;n overflow: auto;n position: absolute;n margin: 0;n bottom: 0;n right: 0;n top: 0;n z-index: 9991;n cursor: default;n}nn.ace_dark ace_settingsmenu, .ace_dark kbshortcutmenu {n box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);n background-color: rgba(255, 255, 255, 0.6);n color: black;n}nn.ace_optionsMenuEntry:hover {n background-color: rgba(100, 100, 100, 0.1);n transition: all 0.3sn}nn.ace_closeButton {n background: rgba(245, 146, 146, 0.5);n border: 1px solid F48A8A;n border-radius: 50%;n padding: 7px;n position: absolute;n right: -8px;n top: -8px;n z-index: 100000;n}n.ace_closeButton{n background: rgba(245, 146, 146, 0.9);n}n.ace_optionsMenuKey {n color: darkslateblue;n font-weight: bold;n}n.ace_optionsMenuCommand {n color: darkcyan;n font-weight: normal;n}n.ace_optionsMenuEntry input, .ace_optionsMenuEntry button {n vertical-align: middle;n}nn.ace_optionsMenuEntry button {n background: e7e7e7;n box-shadow: 1px 0px 2px 0px adadad inset;n border-color: adadad;n}n.ace_optionsMenuEntry button {n background: white;n border: 1px solid lightgray;n margin: 0px;n}n.ace_optionsMenuEntry button:hover{n background: f0f0f0;n}”})),ace.define(“ace/ext/menu_tools/overlay_page”,,(function(e,t,n){“use strict”;var i=e(“../../lib/dom”),o=e(“./settings_menu.css”);i.importCssString(o,“settings_menu.css”,!1),n.exports.overlayPage=function(e,t,n){function i(e){27===e.keyCode&&o()}function o(){s&&(document.removeEventListener(“keydown”,i),s.parentNode.removeChild(s),e&&e.focus(),s=null,n&&n())}function r(e){a=e,e&&(s.style.pointerEvents=“none”,t.style.pointerEvents=“auto”)}var s=document.createElement(“div”),a=!1;return s.style.cssText=“margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; ”+(e?“background-color: rgba(0, 0, 0, 0.3);”:“”),s.addEventListener(“click”,(function(){a||o()})),document.addEventListener(“keydown”,i),t.addEventListener(“click”,(function(e){e.stopPropagation()})),s.appendChild(t),document.body.appendChild(s),e&&e.blur(),{close:o,setIgnoreFocusOut:r}}})),ace.define(“ace/ext/menu_tools/get_editor_keyboard_shortcuts”,,(function(e,t,n){“use strict”;var i=e(“../../lib/keys”);n.exports.getEditorKeybordShortcuts=function(e){i.KEY_MODS;var t=[],n={};return e.keyBinding.$handlers.forEach((function(e){var i=e.commandKeyBinding;for(var o in i){var r=o.replace(/(^|-)w/g,(function(e){return e.toUpperCase()})),s=i;Array.isArray(s)||(s=),s.forEach((function(e){“string”!=typeof e&&(e=e.name),n?n.key+=“|”+r:(n={key:r,command:e},t.push(n))}))}})),t}})),ace.define(“ace/ext/keybinding_menu”,,(function(e,t,n){“use strict”;function i(t){if(!document.getElementById(“kbshortcutmenu”)){var n=e(“./menu_tools/overlay_page”).overlayPage,i=(0,e(“./menu_tools/get_editor_keyboard_shortcuts”).getEditorKeybordShortcuts)(t),o=document.createElement(“div”),r=i.reduce((function(e,t){return e+‘<div class=“ace_optionsMenuEntry”><span class=“ace_optionsMenuCommand”>’t.command
‘</span> : <span class=“ace_optionsMenuKey”>’t.key
“</span></div>”}),“”);o.id=“kbshortcutmenu”,o.innerHTML=“<h1>Keyboard Shortcuts</h1>”r
“</div>”,n(t,o)}}var o=e(“../editor”).Editor;n.exports.init=function(e){o.prototype.showKeyboardShortcuts=function(){i(this)},e.commands.addCommands()}})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/snippets”,,(function(e,t){“use strict”;function n(e){var t=(new Date).toLocaleString(“en-us”,e);return 1==t.length?“0”+t:t}var i=e(“./lib/dom”),o=e(“./lib/oop”),r=e(“./lib/event_emitter”).EventEmitter,s=e(“./lib/lang”),a=e(“./range”).Range,l=e(“./range_list”).RangeList,c=e(“./keyboard/hash_handler”).HashHandler,h=e(“./tokenizer”).Tokenizer,u=e(“./clipboard”),d={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var i=e.session.getTextRange();return n?i.replace(/nr?([ t]*S)/g,“n”n
“$1”):i},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?“YES”:“NO”},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(){return u.getText&&u.getText()},FILENAME:function(e){return/*$/.exec(this.FILEPATH(e))},FILENAME_BASE:function(e){return/*$/.exec(this.FILEPATH(e)).replace(/.*$/,“”)},DIRECTORY:function(e){return this.FILEPATH(e).replace(/*$/,“”)},FILEPATH:function(){return“/not implemented.txt”},WORKSPACE_NAME:function(){return“Unknown”},FULLNAME:function(){return“Unknown”},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||“”},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||“”},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||“”},CURRENT_YEAR:n.bind(null,{year:“numeric”}),CURRENT_YEAR_SHORT:n.bind(null,{year:“2-digit”}),CURRENT_MONTH:n.bind(null,{month:“numeric”}),CURRENT_MONTH_NAME:n.bind(null,{month:“long”}),CURRENT_MONTH_NAME_SHORT:n.bind(null,{month:“short”}),CURRENT_DATE:n.bind(null,{day:“2-digit”}),CURRENT_DAY_NAME:n.bind(null,{weekday:“long”}),CURRENT_DAY_NAME_SHORT:n.bind(null,{weekday:“short”}),CURRENT_HOUR:n.bind(null,{hour:“2-digit”,hour12:!1}),CURRENT_MINUTE:n.bind(null,{minute:“2-digit”}),CURRENT_SECOND:n.bind(null,{second:“2-digit”})};d.SELECTED_TEXT=d.SELECTION;var p=function(){function e(){this.snippetMap={},this.snippetNameMap={},this.variables=d}return e.prototype.getTokenizer=function(){return e.$tokenizer||this.createTokenizer()},e.prototype.createTokenizer=function(){function t(e){return e=e.substr(1),/^d+$/.test(e)?:[{text:e}]}function n(e){return“(?:[^\\”e
“]|\\.)”}var i={regex:“/(”+n(“/”)+“+)/”,onMatch:function(e,t,n){var i=n;return i.fmtString=!0,i.guard=e.slice(1,-1),i.flag=“”,“”},next:“formatString”};return e.$tokenizer=new h({start:[{regex:/\./,onMatch:function(e,t,n){var i=e;return(“}”==i&&n.length||-1!=“‘$\”.indexOf(i))&&(e=i),}},{regex:/}/,onMatch:function(e,t,n){return}},{regex:/$(?:d+|w+)/,onMatch:t},{regex:/${[dA-Z_a-z]+/,onMatch:function(e,n,i){var o=t(e.substr(1));return i.unshift(o),o},next:“snippetVar”},{regex:/n/,token:“newline”,merge:!1}],snippetVar:[{regex:“\|”+n(“\|”)+“*\|”,onMatch:function(e,t,n){var i=e.slice(1,-1).replace(/\|,/g,(function(e){return 2==e.length?e:“0”})).split(“0”).map((function(e){return{value:e}}));return n.choices=i,[i]},next:“start”},i,{regex:“(|\\.)*:?”,token:“”,next:“start”}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n.expectElse?(n.expectElse=!1,n.ifEnd={elseEnd:n},[n.ifEnd]):“:”}},{regex:/\./,onMatch:function(e,t,n){var i=e;return“}”==i&&n.length||-1!=“`$\”.indexOf(i)?e=i:“n”==i?e=“n”:“t”==i?e=“t”:-1!=“ulULE”.indexOf(i)&&(e={changeCase:i,local:i>“a”}),[e]}},{regex:“/\w*}”,onMatch:function(e,t,n){var i=n.shift();return i&&(i.flag=e.slice(1,-1)),this.next=i&&i.tabstopId?“start”:“”,},next:“start”},{regex:/$(?:d+|w+)/,onMatch:function(e){return}},{regex:/${w+/,onMatch:function(e,t,n){var i={text:e.slice(2)};return n.unshift(i),},next:“formatStringVar”},{regex:/n/,token:“newline”,merge:!1},{regex:/}/,onMatch:function(e,t,n){var i=n.shift();return this.next=i&&i.tabstopId?“start”:“”,},next:“start”}],formatStringVar:[{regex:/:/w+}/,onMatch:function(e,t,n){return n.formatFunction=e.slice(2,-1),},next:“formatString”},i,{regex:/:?/,onMatch:function(e,t,n){“+”==e&&(n.ifEnd=n),“?”==e&&(n.expectElse=!0)},next:“formatString”},{regex:“(|\\.)*:?”,token:“”,next:“formatString”}]}),e.$tokenizer},e.prototype.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},e.prototype.getVariableValue=function(e,t,n){if(/^d+$/.test(t))return(this.variables.__||{})[t]||“”;if(/^d+$/.test(t))return(this.variables[t+“__”]||{})[t.substr(1)]||“”;if(t=t.replace(/^TM_/,“”),!this.variables.hasOwnProperty(t))return“”;var i=this.variables;return“function”==typeof i&&(i=this.variables(e,t,n)),null==i?“”:i},e.prototype.tmStrFormat=function(e,t,n){if(!t.fmt)return e;var i=t.flag||“”,o=t.guard;o=new RegExp(o,i.replace(//g,“”));var r=“string”==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,“formatString”):t.fmt,s=this,a=e.replace(o,(function(){var e=s.variables.__;s.variables.__=[].slice.call(arguments);for(var t=s.resolveVariables(r,n),i=“E”,o=0;o<t.length;o++){var a=t;if(“object”==typeof a)if(t=“”,a.changeCase&&a.local){var l=t;l&&“string”==typeof l&&(“u”==a.changeCase?t=l.toUpperCase():t=l.toLowerCase(),t=l.substr(1))}else a.changeCase&&(i=a.changeCase);else“U”==i?t=a.toUpperCase():“L”==i&&(t=a.toLowerCase())}return s.variables.__=e,t.join(“”)}));return a},e.prototype.tmFormatFunction=function(e,t){return“upcase”==t.formatFunction?e.toUpperCase():“downcase”==t.formatFunction?e.toLowerCase():e},e.prototype.resolveVariables=function(e,t){function n(t){var n=e.indexOf(t,s+1);-1!=n&&(s=n)}for(var i=[],o=“”,r=!0,s=0;s<e.length;s++){var a=e;if(“string”!=typeof a){if(a){if(r=!1,a.fmtString){var l=e.indexOf(a,s+1);-1==l&&(l=e.length),a.fmt=e.slice(s+1,l),s=l}if(a.text){var c=this.getVariableValue(t,a.text,o)+“”;a.fmtString&&(c=this.tmStrFormat(c,a,t)),a.formatFunction&&(c=this.tmFormatFunction(c,a,t)),c&&!a.ifEnd?(i.push©,n(a)):!c&&a.ifEnd&&n(a.ifEnd)}else a.elseEnd?n(a.elseEnd):(null!=a.tabstopId||null!=a.changeCase)&&i.push(a)}}else i.push(a),“n”==a?(r=!0,o=“”):r&&(o=/^t*/.exec(a),r=/S/.test(a))}return i},e.prototype.getDisplayTextForSnippet=function(e,t){return g.call(this,e,t).text},e.prototype.insertSnippetForSelection=function(e,t,n){void 0===n&&(n={});var i=g.call(this,e,t,n),o=e.getSelectionRange(),r=e.session.replace(o,i.text),s=new m(e),a=e.inVirtualSelectionMode&&e.selection.index;s.addTabstops(i.tabstops,o.start,r,a)},e.prototype.insertSnippet=function(e,t,n){void 0===n&&(n={});var i=this;if(e.inVirtualSelectionMode)return i.insertSnippetForSelection(e,t,n);e.forEachSelection((function(){i.insertSnippetForSelection(e,t,n)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},e.prototype.$getScope=function(e){var t=e.session.$mode.$id||“”;if(“html”===(t=t.split(“/”).pop())||“php”===t){“php”!==t||e.session.$mode.inlinePhp||(t=“html”);var n=e.getCursorPosition(),i=e.session.getState(n.row);“object”==typeof i&&(i=i),i.substring&&(“js-”==i.substring(0,3)?t=“javascript”:“css-”==i.substring(0,4)?t=“css”:“php-”==i.substring(0,4)&&(t=“php”))}return t},e.prototype.getActiveScopes=function(e){var t=this.$getScope(e),n=,i=this.snippetMap;return i&&i.includeScopes&&n.push.apply(n,i.includeScopes),n.push(“_”),n},e.prototype.expandWithTab=function(e,t){var n=this,i=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return i&&e.tabstopManager&&e.tabstopManager.tabNext(),i},e.prototype.expandSnippetForSelection=function(e,t){var n,i=e.getCursorPosition(),o=e.session.getLine(i.row),r=o.substring(0,i.column),s=o.substr(i.column),a=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=a;return t&&(n=this.findMatchingSnippet(t,r,s)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(i.row,i.column-n.replaceBefore.length,i.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},e.prototype.findMatchingSnippet=function(e,t,n){for(var i=e.length;i–;){var o=e;if((!o.startRe||o.startRe.test(t))&&((!o.endRe||o.endRe.test(n))&&(o.startRe||o.endRe)))return o.matchBefore=o.startRe?o.startRe.exec(t):,o.matchAfter=o.endRe?o.endRe.exec(n):,o.replaceBefore=o.triggerRe?o.triggerRe.exec(t):“”,o.replaceAfter=o.endTriggerRe?o.endTriggerRe.exec(n):“”,o}},e.prototype.register=function(e,t){function n(e){return e&&!/^^?(.*)$?$|^\b$/.test(e)&&(e=“(?:”e
“)”),e||“”}function i(e,t,i){return e=n(e),t=n(t),i?(e=t+e)&&“$”!=e&&(e+=“$”):(e+=t)&&“^”!=e&&(e=“^”+e),new RegExp(e)}function o(e){e.scope||(e.scope=t||“_”),t=e.scope,r||(r=[],a={});var n=a;if(e.name){var o=n;o&&l.unregister(o),n=e}r.push(e),e.prefix&&(e.tabTrigger=e.prefix),!e.content&&e.body&&(e.content=Array.isArray(e.body)?e.body.join(“n”):e.body),e.tabTrigger&&!e.trigger&&(!e.guard&&/^w/.test(e.tabTrigger)&&(e.guard=“\b”),e.trigger=s.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=i(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=i(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger))}var r=this.snippetMap,a=this.snippetNameMap,l=this;e||(e=[]),Array.isArray(e)?e.forEach(o):Object.keys(e).forEach((function(t){o(e)})),this._signal(“registerSnippets”,{scope:t})},e.prototype.unregister=function(e,t){function n(e){var n=o;if(n&&n){delete n;var r=i,s=r&&r.indexOf(e);s>=0&&r.splice(s,1)}}var i=this.snippetMap,o=this.snippetNameMap;e.content?n(e):Array.isArray(e)&&e.forEach(n)},e.prototype.parseSnippetFile=function(e){e=e.replace(/r/g,“”);for(var t,n=[],i={},o=/^#.*|^({*})s*$|^(S+) (.*)$|^((?:n*t.*)+)/gm;t=o.exec(e);){if(t)try{i=JSON.parse(t),n.push(i)}catch(e){}if(t)i.content=t.replace(/^t/gm,“”),n.push(i),i={};else{var r=t,s=t;if(“regex”==r){var a=//((?:|\.)*)|$/g;i.guard=a.exec(s),i.trigger=a.exec(s),i.endTrigger=a.exec(s),i.endGuard=a.exec(s)}else“snippet”==r?(i.tabTrigger=s.match(/^S*/),i.name||(i.name=s)):r&&(i=s)}}return n},e.prototype.getSnippetByName=function(e,t){var n,i=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var o=i;return o&&(n=o),!!n}),this),n},e}();o.implement(p.prototype,r);var g=function(e,t,n){function i(e){for(var t=[],n=0;n<e.length;n++){var i=e;if(“object”==typeof i){if(h)continue;i=t||{tabstopId:i.tabstopId}}t=i}return t}void 0===n&&(n={});var o=e.getCursorPosition(),r=e.session.getLine(o.row),s=e.session.getTabString(),a=r.match(/^s*/);o.column<a.length&&(a=a.slice(0,o.column)),t=t.replace(/r/g,“”);var l=this.tokenizeTmSnippet(t);l=(l=this.resolveVariables(l,e)).map((function(e){return“n”!=e||n.excludeExtraIndent?“string”==typeof e?e.replace(/t/g,s):e:e+a}));var c=[];l.forEach((function(e,t){if(“object”==typeof e){var n=e.tabstopId,i=c;if(i||((i=c=[]).index=n,i.value=“”,i.parents={}),-1===i.indexOf(e)){e.choices&&!i.choices&&(i.choices=e.choices),i.push(e);var o=l.indexOf(e,t+1);if(-1!==o){var r=l.slice(t+1,o);r.some((function(e){return“object”==typeof e}))&&!i.value?i.value=r:!r.length||i.value&&“string”==typeof i.value||(i.value=r.join(“”))}}}})),c.forEach((function(e){e.length=0}));for(var h={},u=0;u<l.length;u++){var d=l;if(“object”==typeof d){var p=d.tabstopId,g=c,m=l.indexOf(d,u+1);if(h)h===d&&(delete h,Object.keys(h).forEach((function(e){g.parents=!0})));else{h=d;var f=g.value;“string”!=typeof f?f=i(f):d.fmt&&(f=this.tmStrFormat(f,d,e)),l.splice.apply(l,.concat(f,d)),-1===g.indexOf(d)&&g.push(d)}}}var v=0,y=0,b=“”;return l.forEach((function(e){if(“string”==typeof e){var t=e.split(“n”);t.length>1?(y=t.length,v+=t.length-1):y+=e.length,b+=e}else e&&(e.start?e.end={row:v,column:y}:e.start={row:v,column:y})})),{text:b,tabstops:c,tokens:l}},m=function(){function e(e){if(this.index=0,this.ranges=[],this.tabstops=,e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)}return e.prototype.attach=function(e){this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.session=e.session,this.editor.on(“change”,this.$onChange),this.editor.on(“changeSelection”,this.$onChangeSelection),this.editor.on(“changeSession”,this.$onChangeSession),this.editor.commands.on(“afterExec”,this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},e.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off(“change”,this.$onChange),this.editor.off(“changeSelection”,this.$onChangeSelection),this.editor.off(“changeSession”,this.$onChangeSession),this.editor.commands.off(“afterExec”,this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},e.prototype.onChange=function(e){for(var t=“r”==e.action,n=this.selectedTabstop||{},i=n.parents||{},o=this.tabstops.slice(),r=0;r<o.length;r++){var s=o,a=s==n||i;if(s.rangeList.$bias=a?0:1,“remove”==e.action&&s!==n){var l=s.parents&&s.parents,c=s.rangeList.pointIndex(e.start,l);c=c<0?-c-1:c+1;var h=s.rangeList.pointIndex(e.end,l);h=h<0?-h-1:h-1;for(var u=s.rangeList.ranges.slice(c,h),d=0;d<u.length;d++)this.removeRange(u)}s.rangeList.$onChange(e)}var p=this.session;this.$inChange||!t||1!=p.getLength()||p.getValue()||this.detach()},e.prototype.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges&&e.firstNonLinked){this.$inChange=!0;for(var n=this.session,i=n.getTextRange(e.firstNonLinked),o=0;o<e.length;o++){var r=e;if(r.linked){var s=r.original,a=t.snippetManager.tmStrFormat(i,s,this.editor);n.replace(r,a)}}this.$inChange=!1}},e.prototype.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},e.prototype.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),i=0;i<this.ranges.length;i++)if(!this.ranges.linked){var o=this.ranges.contains(e.row,e.column),r=n||this.ranges.contains(t.row,t.column);if(o&&r)return}this.detach()}},e.prototype.onChangeSession=function(){this.detach()},e.prototype.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);(n=Math.min(Math.max(n,1),t))==t&&(n=0),this.selectTabstop(n),this.updateTabstopMarkers(),0===n&&this.detach()},e.prototype.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops;if(t&&this.addTabstopMarkers(t),this.index=e,(t=this.tabstops)&&t.length){this.selectedTabstop=t;var n=t.firstNonLinked||t;if(t.choices&&(n.cursor=n.start), this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(n);else{var i=this.editor.multiSelect;i.toSingleRange(n);for(var o=0;o<t.length;o++)t.hasLinkedRanges&&t.linked||i.addRange(t.clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand(“startAutocomplete”,{matches:this.selectedTabstop.choices})}},e.prototype.addTabstops=function(e,t,n){var i=this.useLink||!this.editor.getOption(“enableMultiselect”);if(this.$openTabstops||(this.$openTabstops=[]),!e){var o=a.fromPoints(n,n);v(o.start,t),v(o.end,t),e=[o],e.index=0}var r=,s=this.ranges,c=this.snippetId=(this.snippetId||0)+1;e.forEach((function(e,n){var o=this.$openTabstops||e;o.snippetId=c;for(var h=0;h<e.length;h++){var u=e,d=a.fromPoints(u.start,u.end||u.start);f(d.start,t),f(d.end,t),d.original=u,d.tabstop=o,s.push(d),o!=e?o.unshift(d):o=d,u.fmtString||o.firstNonLinked&&i?(d.linked=!0,o.hasLinkedRanges=!0):o.firstNonLinked||(o.firstNonLinked=d)}o.firstNonLinked||(o.hasLinkedRanges=!1),o===e&&(r.push(o),this.$openTabstops=o),this.addTabstopMarkers(o),o.rangeList=o.rangeList||new l,o.rangeList.$bias=0,o.rangeList.addList(o)}),this),r.length>2&&(this.tabstops.length&&r.push(r.splice(2,1)),this.tabstops.splice.apply(this.tabstops,r))},e.prototype.addTabstopMarkers=function(e){var t=this.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,“ace_snippet-marker”,“text”))}))},e.prototype.removeTabstopMarkers=function(e){var t=this.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},e.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var e=this.selectedTabstop.snippetId;0===this.selectedTabstop.index&&e–,this.tabstops.forEach((function(t){t.snippetId===e?this.addTabstopMarkers(t):this.removeTabstopMarkers(t)}),this)}},e.prototype.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),-1!=(t=this.ranges.indexOf(e))&&this.ranges.splice(t,1),-1!=(t=e.tabstop.rangeList.ranges.indexOf(e))&&e.tabstop.splice(t,1),this.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},e}();m.prototype.keyboardHandler=new c,m.prototype.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||(e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView())},“Shift-Tab”:function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}});var f=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},v=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};i.importCssString(“n.ace_snippet-marker {n -moz-box-sizing: border-box;n box-sizing: border-box;n background: rgba(194, 193, 208, 0.09);n border: 1px dotted rgba(211, 208, 235, 0.62);n position: absolute;n}”,“snippets.css”,!1),t.snippetManager=new p;var y=e(“./editor”).Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(y.prototype)})),ace.define(“ace/autocomplete/popup”,,(function(e,t){“use strict”;var n=e(“../virtual_renderer”).VirtualRenderer,i=e(“../editor”).Editor,o=e(“../range”).Range,r=e(“../lib/event”),s=e(“../lib/lang”),a=e(“../lib/dom”),l=e(“../config”).nls,c=e(“./../lib/useragent”),h=function(e){return“suggest-aria-id:”.concat(e)},u=c.isSafari?“menu”:“listbox”,d=c.isSafari?“menuitem”:“option”,p=c.isSafari?“aria-current”:“aria-selected”,g=function(e){var t=new n(e);t.$maxLines=4;var o=new i(t);return o.setHighlightActiveLine(!1),o.setShowPrintMargin(!1),o.renderer.setShowGutter(!1),o.renderer.setHighlightGutterLine(!1),o.$mouseHandler.$focusTimeout=0,o.$highlightTagPending=!0,o},m=function(){function e(e){var t=a.createElement(“div”),n=g(t);e&&e.appendChild(t),t.style.display=“none”,n.renderer.content.style.cursor=“default”,n.renderer.setStyle(“ace_autocomplete”),n.renderer.$textLayer.element.setAttribute(“role”,u),n.renderer.$textLayer.element.setAttribute(“aria-roledescription”,l(“autocomplete.popup.aria-roledescription”,“Autocomplete suggestions”)),n.renderer.$textLayer.element.setAttribute(“aria-label”,l(“autocomplete.popup.aria-label”,“Autocomplete suggestions”)),n.renderer.textarea.setAttribute(“aria-hidden”,“true”),n.setOption(“displayIndentGuides”,!1),n.setOption(“dragDelay”,150);var i,c=function(){};n.focus=c,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=c,n.renderer.$cursorLayer.element.style.opacity=“0”,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(“”),n.session.$searchHighlight.clazz=“ace_highlight-marker”,n.on(“mousedown”,(function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),f.start.row=f.end.row=t.row,e.stop()}));var m=new o(-1,0,-1,1/0),f=new o(-1,0,-1,1/0);f.id=n.session.addMarker(f,“ace_active-line”,“fullLine”),n.setSelectOnHover=function(e){e?m.id&&(n.session.removeMarker(m.id),m.id=null):m.id=n.session.addMarker(m,“ace_line-hover”,“fullLine”)},n.setSelectOnHover(!1),n.on(“mousemove”,(function(e){if(i){if(i.x!=e.x||i.y!=e.y){(i=e).scrollTop=n.renderer.scrollTop,n.isMouseOver=!0;var t=i.getDocumentPosition().row;m.start.row!=t&&(m.id||n.setRow(t),y(t))}}else i=e})),n.renderer.on(“beforeRender”,(function(){if(i&&-1!=m.start.row){i.$pos=null;var e=i.getDocumentPosition().row;m.id||n.setRow(e),y(e,!0)}})),n.renderer.on(“afterRender”,(function(){var e=n.getRow(),t=n.renderer.$textLayer,i=t.element.childNodes,o=document.activeElement;if(i!==n.selectedNode&&n.selectedNode&&(a.removeCssClass(n.selectedNode,“ace_selected”),o.removeAttribute(“aria-activedescendant”),n.selectedNode.removeAttribute(p),n.selectedNode.removeAttribute(“id”)),n.selectedNode=i,i){a.addCssClass(i,“ace_selected”);var r=h(e);i.id=r,t.element.setAttribute(“aria-activedescendant”,r),o.setAttribute(“aria-activedescendant”,r),i.setAttribute(“role”,d),i.setAttribute(“aria-roledescription”,l(“autocomplete.popup.item.aria-roledescription”,“item”)),i.setAttribute(“aria-label”,n.getData(e).caption||n.getData(e).value),i.setAttribute(“aria-setsize”,n.data.length),i.setAttribute(“aria-posinset”,e+1),i.setAttribute(“aria-describedby”,“doc-tooltip”),i.setAttribute(p,“true”)}}));var v=function(){y(-1)},y=function(e,t){e!==m.start.row&&(m.start.row=m.end.row=e,t||n.session._emit(“changeBackMarker”),n._emit(“changeHoverMarker”))};n.getHoveredRow=function(){return m.start.row},r.addListener(n.container,“mouseout”,(function(){n.isMouseOver=!1,v()})),n.on(“hide”,v),n.on(“changeSelection”,v),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data;return“string”==typeof t?t:t&&t.value||“”};var b=n.session.bgTokenizer;return b.$tokenizeRow=function(e){function t(e,t){e&&o.push({type:(i.className||“”)+(t||“”),value:e})}var i=n.data,o=[];if(!i)return o;“string”==typeof i&&(i={value:i});for(var r=i.caption||i.value||i.name,s=r.toLowerCase(),a=(n.filterText||“”).toLowerCase(),l=0,c=0,h=0;h<=a.length;h++)if(h!=c&&(i.matchMask&1<<h||h==a.length)){var u=a.slice(c,h);c=h;var d=s.indexOf(u,l);if(-1==d)continue;t(r.slice(l,d),“”),l=d+u.length,t(r.slice(d,l),“completion-highlight”)}return t(r.slice(l,r.length),“”),o.push({type:“completion-spacer”,value:“ ”}),i.meta&&o.push({type:“completion-meta”,value:i.meta}),i.message&&o.push({type:“completion-message”,value:i.message}),o},b.$updateOnChange=c,b.start=c,n.session.$computeWidth=function(){return this.screenWidth=0},n.isOpen=!1,n.isTopdown=!1,n.autoSelect=!0,n.filterText=“”,n.isMouseOver=!1,n.data=[],n.setData=function(e,t){n.filterText=t||“”,n.setValue(s.stringRepeat(“n”,e.length),-1),n.data=e||,n.setRow(0)},n.getData=function(e){return n.data},n.getRow=function(){return f.start.row},n.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,e)),f.start.row!=e&&(n.selection.clearSelection(),f.start.row=f.end.row=e||0,n.session._emit(“changeBackMarker”),n.moveCursorTo(e||0,0),n.isOpen&&n._signal(“select”))},n.on(“changeSelection”,(function(){n.isOpen&&n.setRow(n.selection.lead.row),n.renderer.scrollCursorIntoView()})),n.hide=function(){this.container.style.display=“none”,n.anchorPos=null,n.anchor=null,n.isOpen&&(n.isOpen=!1,this._signal(“hide”))},n.tryShow=function(e,t,o,r){if(!r&&n.isOpen&&n.anchorPos&&n.anchor&&n.anchorPos.top===e.top&&n.anchorPos.left===e.left&&n.anchor===o)return!0;var s=this.container,a=window.innerHeight,l=window.innerWidth,c=this.renderer,h=c.$maxLines*t*1.4,u={top:0,bottom:0,left:0},d=a-e.top-3*this.$borderSize-t,p=e.top-3*this.$borderSize;o||(o=p<=d||d>=h?“bottom”:“top”),“top”===o?(u.bottom=e.top-this.$borderSize,u.top=u.bottom-h):“bottom”===o&&(u.top=e.top+t+this.$borderSize,u.bottom=u.top+h);var g=u.top>=0&&u.bottom<=a;if(!r&&!g)return!1;c.$maxPixelHeight=g?null:“top”===o?p:d,“top”===o?(s.style.top=“”,s.style.bottom=a-u.bottom+“px”,n.isTopdown=!1):(s.style.top=u.top+“px”,s.style.bottom=“”,n.isTopdown=!0),s.style.display=“”;var m=e.left;return m+s.offsetWidth>l&&(m=l-s.offsetWidth),s.style.left=m+“px”,s.style.right=“”,n.isOpen||(n.isOpen=!0,this._signal(“show”),i=null),n.anchorPos=e,n.anchor=o,!0},n.show=function(e,t,n){this.tryShow(e,t,n?“bottom”:void 0,!0)},n.goTo=function(e){var t=this.getRow(),n=this.session.getLength()-1;switch(e){case“up”:t=t<=0?n:t-1;break;case“down”:t=t>=n?-1:t+1;break;case“start”:t=0;break;case“end”:t=n}this.setRow(t)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n}return e}();a.importCssString(’n.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {n background-color: CAD6FA;n z-index: 1;n}n.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {n background-color: #3a674e;n}n.ace_editor.ace_autocomplete .ace_line-hover {n border: 1px solid abbffe;n margin-top: -1px;n background: rgba(233,233,253,0.4);n position: absolute;n z-index: 2;n}n.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {n border: 1px solid rgba(109, 150, 13, 0.8);n background: rgba(58, 103, 78, 0.62);n}n.ace_completion-meta {n opacity: 0.5;n margin-left: 0.9em;n}n.ace_completion-message {n margin-left: 0.9em;n color: blue;n}n.ace_editor.ace_autocomplete .ace_completion-highlight{n color: #2d69c7;n}n.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{n color: #93ca12;n}n.ace_editor.ace_autocomplete {n width: 300px;n z-index: 200000;n border: 1px lightgray solid;n position: fixed;n box-shadow: 2px 3px 5px rgba(0,0,0,.2);n line-height: 1.4;n background: fefefe;n color: #111;n}n.ace_dark.ace_editor.ace_autocomplete {n border: 1px #484747 solid;n box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);n line-height: 1.4;n background: #25282c;n color: c1c1c1;n}n.ace_autocomplete .ace_text-layer {n width: calc(100% - 8px);n}n.ace_autocomplete .ace_line {n display: flex;n align-items: center;n}n.ace_autocomplete .ace_line > * {n min-width: 0;n flex: 0 0 auto;n}n.ace_autocomplete .ace_line .ace_ {n flex: 0 1 auto;n overflow: hidden;n white-space: nowrap;n text-overflow: ellipsis;n}n.ace_autocomplete .ace_completion-spacer {n flex: 1;n}n.ace_autocomplete.ace_loading:after {n content: “”;n position: absolute;n top: 0px;n height: 2px;n width: 8%;n background: blue;n z-index: 100;n animation: ace_progress 3s infinite linear;n animation-delay: 300ms;n transform: translateX(-100%) scaleX(1);n}n@keyframes ace_progress {n 0% { transform: translateX(-100%) scaleX(1) }n 50% { transform: translateX(625%) scaleX(2) } n 100% { transform: translateX(1500%) scaleX(3) } n}n@media (prefers-reduced-motion) {n .ace_autocomplete.ace_loading:after {n transform: translateX(625%) scaleX(2);n animation: none;n }n}n‘,“autocompletion.css”,!1),t.AcePopup=m,t.$singleLineEditor=g,t.getAriaId=h})),ace.define(“ace/autocomplete/inline_screenreader”,,(function(e,t){“use strict”;var n=function(){function e(e){this.editor=e,this.screenReaderDiv=document.createElement(“div”),this.screenReaderDiv.classList.add(“ace_screenreader-only”),this.editor.container.appendChild(this.screenReaderDiv)}return e.prototype.setScreenReaderContent=function(e){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on(“afterRender”,function(){var e=this.popup.getRow(),t=this.popup.renderer.$textLayer,n=t.element.childNodes;if(n){for(var i=“doc-tooltip ”,o=0;o<this._lines.length;o++)i+=“ace-inline-screenreader-line-”.concat(o,“ ”);n.setAttribute(“aria-describedby”,i)}}.bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=e.split(/rn|r|n/);var t=this.createCodeBlock();this.screenReaderDiv.appendChild(t)},e.prototype.destroy=function(){this.screenReaderDiv.remove()},e.prototype.createCodeBlock=function(){var e=document.createElement(“pre”);e.setAttribute(“id”,“ace-inline-screenreader”);for(var t=0;t<this._lines.length;t++){var n=document.createElement(“code”);n.setAttribute(“id”,“ace-inline-screenreader-line-”.concat(t));var i=document.createTextNode(this._lines);n.appendChild(i),e.appendChild(n)}return e},e}();t.AceInlineScreenReader=n})),ace.define(“ace/autocomplete/inline”,,(function(e,t){“use strict”;var n=e(“../snippets”).snippetManager,i=e(“./inline_screenreader”).AceInlineScreenReader,o=function(){function e(){this.editor=null}return e.prototype.show=function(e,t,o){if(o=o||“”,e&&this.editor&&this.editor!==e&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!e||!t)return!1;this.inlineScreenReader||(this.inlineScreenReader=new i(e));var r=t.snippet?n.getDisplayTextForSnippet(e,t.snippet):t.value;return!(t.hideInlinePreview||!r||!r.startsWith(o))&&(this.editor=e,this.inlineScreenReader.setScreenReaderContent®,“”===(r=r.slice(o.length))?e.removeGhostText():e.setGhostText®,!0)},e.prototype.isOpen=function(){return!!this.editor&&!!this.editor.renderer.$ghostText},e.prototype.hide=function(){return!!this.editor&&(this.editor.removeGhostText(),!0)},e.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},e}();t.AceInline=o})),ace.define(“ace/autocomplete/util”,,(function(e,t){“use strict”;t.parForEach=function(e,t,n){var i=0,o=e.length;0===o&&n();for(var r=0;r<o;r++)t(e,(function(e,t){++i===o&&n(e,t)}))};var n=//;t.retrievePrecedingIdentifier=function(e,t,i){i=i||n;for(var o=[],r=t-1;r>=0&&i.test(e);r–)o.push(e);return o.reverse().join(“”)},t.retrieveFollowingIdentifier=function(e,t,i){i=i||n;for(var o=[],r=t;r<e.length&&i.test(e);r++)o.push(e);return o},t.getCompletionPrefix=function(e){var t,n=e.getCursorPosition(),i=e.session.getLine(n.row);return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!t&&e&&(t=this.retrievePrecedingIdentifier(i,n.column,e))}.bind(this))}.bind(this)),t||this.retrievePrecedingIdentifier(i,n.column)},t.triggerAutocomplete=function(e,t){t=null==t?e.session.getPrecedingCharacter():t;return e.completers.some((function(e){if(e.triggerCharacters&&Array.isArray(e.triggerCharacters))return e.triggerCharacters.includes(t)}))}})),ace.define(“ace/autocomplete”,,(function(e,t){“use strict”;var n=e(“./keyboard/hash_handler”).HashHandler,i=e(“./autocomplete/popup”).AcePopup,o=e(“./autocomplete/inline”).AceInline,r=e(“./autocomplete/popup”).getAriaId,s=e(“./autocomplete/util”),a=e(“./lib/lang”),l=e(“./lib/dom”),c=e(“./snippets”).snippetManager,h=e(“./config”),u=e(“./lib/event”),d=e(“./lib/scroll”).preventParentScroll,p=function(e,t){t.completer&&t.completer.destroy()},g=function(){function e(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new n,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=a.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=a.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=a.delayedCall(function(){this.stickySelection=!0}.bind(this),this.stickySelectionDelay),this.$firstOpenTimer=a.delayedCall(function(){var t=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!t||0===this.editor.completers.length||(this.completions=new f(e.completionsForLoading),this.openPopup(this.editor,t.prefix,!1),this.popup.renderer.setStyle(“ace_loading”,!0))}.bind(this),this.stickySelectionDelay)}return Object.defineProperty(e,“completionsForLoading”,{get:function(){return},enumerable:!1,configurable:!0}),e.prototype.$init=function(){return this.popup=new i(this.parentNode||document.body||document.documentElement),this.popup.on(“click”,function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on(“show”,this.$onPopupShow.bind(this)),this.popup.on(“hide”,this.$onHidePopup.bind(this)),this.popup.on(“select”,this.$onPopupChange.bind(this)),u.addListener(this.popup.container,“mouseout”,this.mouseOutListener.bind(this)),this.popup.on(“changeHoverMarker”,this.tooltipTimer.bind(null,null)),this.popup.renderer.on(“afterRender”,this.$onPopupRender.bind(this)),this.popup},e.prototype.$initInline=function(){if(this.inlineEnabled&&!this.inlineRenderer)return this.inlineRenderer=new o,this.inlineRenderer},e.prototype.getPopup=function(){return this.popup||this.$init()},e.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},e.prototype.$seen=function(e){!this.hasSeen.has(e)&&e&&e.completer&&e.completer.onSeen&&“function”==typeof e.completer.onSeen&&(e.completer.onSeen(this.editor,e),this.hasSeen.add(e))},e.prototype.$onPopupChange=function(e){if(this.inlineRenderer&&this.inlineEnabled){var t=e?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(t),this.popup.isMouseOver&&this.setSelectOnHover)return void this.tooltipTimer.call(null,null);this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},e.prototype.$updateGhostText=function(e){var t=this.base.row,n=this.base.column,i=this.editor.getCursorPosition().column,o=this.editor.session.getLine(t).slice(n,i);this.inlineRenderer.show(this.editor,e,o)?this.$seen(e):this.inlineRenderer.hide()},e.prototype.$onPopupRender=function(){var e=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var t=this.popup.getFirstVisibleRow();t<=this.popup.getLastVisibleRow();t++){var n=this.popup.getData(t);!n||e&&!n.hideInlinePreview||this.$seen(n)}},e.prototype.$onPopupShow=function(e){this.$onPopupChange(e),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},e.prototype.observeLayoutChanges=function(){if(!this.$elements&&this.editor){window.addEventListener(“resize”,this.onLayoutChange,{passive:!0}),window.addEventListener(“wheel”,this.mousewheelListener);for(var e=this.editor.container.parentNode,t=[];e;)t.push(e),e.addEventListener(“scroll”,this.onLayoutChange,{passive:!0}),e=e.parentNode;this.$elements=t}},e.prototype.unObserveLayoutChanges=function(){var e=this;window.removeEventListener(“resize”,this.onLayoutChange,{passive:!0}),window.removeEventListener(“wheel”,this.mousewheelListener),this.$elements&&this.$elements.forEach((function(t){t.removeEventListener(“scroll”,e.onLayoutChange,{passive:!0})})),this.$elements=null},e.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},e.prototype.$updatePopupPosition=function(){var e=this.editor,t=e.renderer,n=t.layerConfig.lineHeight,i=t.$cursorLayer.getPixelPosition(this.base,!0);i.left-=this.popup.getTextLeftOffset();var o=e.container.getBoundingClientRect();i.top+=o.top-t.layerConfig.offset,i.left+=o.left-e.renderer.scrollLeft,i.left+=t.gutterWidth;var r={top:i.top,left:i.left};t.$ghostText&&t.$ghostTextWidget&&this.base.row===t.$ghostText.position.row&&(r.top+=t.$ghostTextWidget.el.offsetHeight);var s=e.container.getBoundingClientRect().bottom-n,a=s<r.top?{top:s,left:r.left}:r;this.popup.tryShow(a,n,“bottom”)||this.popup.tryShow(i,n,“top”)||this.popup.show(i,n)},e.prototype.openPopup=function(e,t,n){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var i,o=this.popup.getRow(),s=this.popup.data;this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:r(this.popup.getRow()),inline:this.inlineEnabled}),e.keyBinding.addKeyboardHandler(this.keyboardHandler),this.stickySelection&&(i=this.popup.data.indexOf(s)),i&&-1!==i||(i=0),this.popup.setRow(this.autoSelect?i:-1),i===o&&s!==this.completions.filtered&&this.$onPopupChange();var a=this.inlineRenderer&&this.inlineEnabled;if(i===o&&a){var l=this.popup.getData(this.popup.getRow());this.$updateGhostText(l)}n||(this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},e.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off(“changeSelection”,this.changeListener),this.editor.off(“blur”,this.blurListener),this.editor.off(“mousedown”,this.mousedownListener),this.editor.off(“mousewheel”,this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off(“afterRender”,this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},e.prototype.changeListener=function(){var e=this.editor.selection.lead;(e.row!=this.base.row||e.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},e.prototype.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),i=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),o=this.popup&&this.popup.container;t==n||t.parentNode==o||i||t==this.tooltipNode||e.relatedTarget==n||this.detach()},e.prototype.mousedownListener=function(){this.detach()},e.prototype.mousewheelListener=function(){this.popup.isMouseOver||this.detach()},e.prototype.mouseOutListener=function(){this.popup.isOpen&&this.$updatePopupPosition()},e.prototype.goTo=function(e){this.popup.goTo(e)},e.prototype.insertMatch=function(e,t){if(e||(e=this.popup.getData(this.popup.getRow())),!e)return!1;if(“”===e.value)return this.detach();var n=this.completions,i=this.getCompletionProvider().insertMatch(this.editor,e,n.filterText,t);return this.completions==n&&this.detach(),i},e.prototype.showPopup=function(e,t){this.editor&&this.detach(),this.activated=!0,this.editor=e,e.completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on(“changeSelection”,this.changeListener),e.on(“blur”,this.blurListener),e.on(“mousedown”,this.mousedownListener),e.on(“mousewheel”,this.mousewheelListener),this.updateCompletions(!1,t)},e.prototype.getCompletionProvider=function(e){return this.completionProvider||(this.completionProvider=new m(e)),this.completionProvider},e.prototype.gatherCompletions=function(e,t){return this.getCompletionProvider().gatherCompletions(e,t)},e.prototype.updateCompletions=function(t,n){if(t&&this.base&&this.completions){var i=this.editor.getCursorPosition();if((r=this.editor.session.getTextRange({start:this.base,end:i}))==this.completions.filterText)return;return this.completions.setFilter®,this.completions.filtered.length?1!=this.completions.filtered.length||this.completions.filtered.value!=r||this.completions.filtered.snippet?void this.openPopup(this.editor,r,t):this.detach():this.detach()}if(n&&n.matches){i=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(i.row,i.column),this.base.$insertRight=!0,this.completions=new f(n.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,“”,t)}var o=this.editor.getSession(),r=(i=this.editor.getCursorPosition(),s.getCompletionPrefix(this.editor));this.base=o.doc.createAnchor(i.row,i.column-r.length),this.base.$insertRight=!0;var a={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:r,pos:i}).provideCompletions(this.editor,a,function(n,i,o){var r=i.filtered,a=s.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),o){if(!r.length){var l=!this.autoShown&&this.emptyMessage;if(“function”==typeof l&&(l=this.emptyMessage(a)),l){var c=;return this.completions=new f©,this.openPopup(this.editor,a,t),this.popup.renderer.setStyle(“ace_loading”,!1),void this.popup.renderer.setStyle(“ace_empty-message”,!0)}return this.detach()}if(1==r.length&&r.value==a&&!r.snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&1==r.length)return this.insertMatch(r)}this.completions=!o&&this.showLoadingState?new f(e.completionsForLoading.concat®,i.filterText):i,this.openPopup(this.editor,a,t),this.popup.renderer.setStyle(“ace_empty-message”,!1),this.popup.renderer.setStyle(“ace_loading”,!o)}.bind(this)),!this.showLoadingState||this.autoShown||this.popup&&this.popup.isOpen||this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},e.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},e.prototype.updateDocTooltip=function(){var e=this.popup,t=this.completions.filtered,n=t&&(t||t),i=null;if(!n||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var o=this.editor.completers.length,r=0;r<o;r++){var s=this.editor.completers;if(s.getDocTooltip&&n.completerId===s.id){i=s.getDocTooltip(n);break}}if(i||“string”==typeof n||(i=n),“string”==typeof i&&(i={docText:i}),!i||!i.docHTML&&!i.docText)return this.hideDocTooltip();this.showDocTooltip(i)},e.prototype.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=l.createElement(“div”),this.tooltipNode.style.margin=“0”,this.tooltipNode.style.pointerEvents=“auto”,this.tooltipNode.style.overscrollBehavior=“contain”,this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id=“doc-tooltip”,this.tooltipNode.setAttribute(“role”,“tooltip”),this.tooltipNode.addEventListener(“wheel”,d));var t=this.editor.renderer.theme;this.tooltipNode.className=“ace_tooltip ace_doc-tooltip ”+(t.isDark?“ace_dark ”:“”)+(t.cssClass||“”);var n=this.tooltipNode;e.docHTML?n.innerHTML=e.docHTML:e.docText&&(n.textContent=e.docText),n.parentNode||this.popup.container.appendChild(this.tooltipNode);var i=this.popup,o=i.container.getBoundingClientRect();n.style.top=i.container.style.top,n.style.bottom=i.container.style.bottom,n.style.display=“block”,window.innerWidth-o.right<320?o.left<320?i.isTopdown?(n.style.top=o.bottom+“px”,n.style.left=o.left+“px”,n.style.right=“”,n.style.bottom=“”):(n.style.top=i.container.offsetTop-n.offsetHeight+“px”,n.style.left=o.left+“px”,n.style.right=“”,n.style.bottom=“”):(n.style.right=window.innerWidth-o.left+“px”,n.style.left=“”):(n.style.left=o.right+1+“px”,n.style.right=“”)},e.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),this.tooltipNode){var e=this.tooltipNode;this.editor.isFocused()||document.activeElement!=e||this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)}},e.prototype.onTooltipClick=function(e){for(var t=e.target;t&&t!=this.tooltipNode;){if(“A”==t.nodeName&&t.href){t.rel=“noreferrer”,t.target=“_blank”;break}t=t.parentNode}},e.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var e=this.popup.container;e&&e.parentNode&&e.parentNode.removeChild(e)}this.editor&&this.editor.completer==this&&(this.editor.off(“destroy”,p),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},e}();g.prototype.commands={Up:function(e){e.completer.goTo(“up”)},Down:function(e){e.completer.goTo(“down”)},“Ctrl-Up|Ctrl-Home”:function(e){e.completer.goTo(“start”)},“Ctrl-Down|Ctrl-End”:function(e){e.completer.goTo(“end”)},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},“Shift-Return”:function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(t||e.tabstopManager)return t;e.completer.goTo(“down”)},Backspace:function(e){e.execCommand(“backspace”),!s.getCompletionPrefix(e)&&e.completer&&e.completer.detach()},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},g.for=function(e){return e.completer instanceof g||(e.completer&&(e.completer.destroy(),e.completer=null),h.get(“sharedPopups”)?(g.$sharedInstance||(g.$sharedInstance=new g),e.completer=g.$sharedInstance):(e.completer=new g,e.once(“destroy”,p))),e.completer},g.startCommand={name:“startAutocomplete”,exec:function(e,t){var n=g.for(e);n.autoInsert=!1,n.autoSelect=!0,n.autoShown=!1,n.showPopup(e,t),n.cancelContextMenu()},bindKey:“Ctrl-Space|Ctrl-Shift-Space|Alt-Space”};var m=function(){function e(e){this.initialPosition=e,this.active=!0}return e.prototype.insertByIndex=function(e,t,n){return!(!this.completions||!this.completions.filtered)&&this.insertMatch(e,this.completions.filtered,n)},e.prototype.insertMatch=function(e,t){if(!t)return!1;if(e.startOperation({command:{name:“insertMatch”}}),t.completer&&t.completer.insertMatch)t.completer.insertMatch(e,t);else{if(!this.completions)return!1;var n=this.completions.filterText.length,i=0;if(t.range&&t.range.start.row===t.range.end.row&&(n-=this.initialPosition.prefix.length,n+=this.initialPosition.pos.column-t.range.start.column,i+=t.range.end.column-this.initialPosition.pos.column),n||i){var o;o=e.selection.getAllRanges?e.selection.getAllRanges():;for(var r,s=0;r=o;s++)r.start.column-=n,r.end.column+=i,e.session.remove®}t.snippet?c.insertSnippet(e,t.snippet):this.$insertString(e,t),t.completer&&t.completer.onInsert&&“function”==typeof t.completer.onInsert&&t.completer.onInsert(e,t),t.command&&“startAutocomplete”===t.command&&e.execCommand(t.command)}return e.endOperation(),!0},e.prototype.$insertString=function(e,t){var n=t.value||t;e.execCommand(“insertstring”,n)},e.prototype.gatherCompletions=function(e,t){var n=e.getSession(),i=e.getCursorPosition(),o=s.getCompletionPrefix(e),r=[];this.completers=e.completers;var a=e.completers.length;return e.completers.forEach((function(l){l.getCompletions(e,n,i,o,(function(n,i){l.hideInlinePreview&&(i=i.map((function(e){ return Object.assign(e,{hideInlinePreview:l.hideInlinePreview})}))),!n&&i&&(r=r.concat(i)),t(null,{prefix:s.getCompletionPrefix(e),matches:r,finished:0==–a})}))})),!0},e.prototype.provideCompletions=function(e,t,n){var i=function(e){var i=e.prefix,o=e.matches;this.completions=new f(o),t.exactMatch&&(this.completions.exactMatch=!0),t.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(i),(e.finished||this.completions.filtered.length)&&n(null,this.completions,e.finished)}.bind(this),o=!0,r=null;if(this.gatherCompletions(e,function(e,t){this.active&&(e&&(n(e,[],!0),this.detach()),0===t.prefix.indexOf(t.prefix)&&(o?r=t:i(t)))}.bind(this)),o=!1,r){var s=r;r=null,i(s)}},e.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach((function(e){“function”==typeof e.cancel&&e.cancel()}))},e}(),f=function(){function e(e,t){this.all=e,this.filtered=e,this.filterText=t||“”,this.exactMatch=!1,this.ignoreCaption=!1}return e.prototype.setFilter=function(e){if(e.length>this.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else t=this.all;this.filterText=e,t=(t=this.filterCompletions(t,this.filterText)).sort((function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)}));var n=null;t=t.filter((function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)})),this.filtered=t},e.prototype.filterCompletions=function(e,t){var n=[],i=t.toUpperCase(),o=t.toLowerCase();e:for(var r,s=0;r=e;s++){var a=!this.ignoreCaption&&r.caption||r.value||r.snippet;if(a){var l,c,h=-1,u=0,d=0;if(this.exactMatch){if(t!==a.substr(0,t.length))continue e}else{var p=a.toLowerCase().indexOf(o);if(p>-1)d=p;else for(var g=0;g<t.length;g++){var m=a.indexOf(o,h+1),f=a.indexOf(i,h+1);if((l=m>=0&&(f<0||m<f)?m:f)<0)continue e;(c=l-h-1)>0&&(-1===h&&(d+=10),d+=c,u|=1<<g),h=l}}r.matchMask=u,r.exactMatch=d?0:1,r.$score=(r.score||0)-d,n.push®}}return n},e}();t.Autocomplete=g,t.CompletionProvider=m,t.FilteredList=f})),ace.define(“ace/autocomplete/text_completer”,,(function(e,t){function n(e,t){return e.getTextRange(o.fromPoints({row:0,column:0},t)).split®.length-1}function i(e,t){var i=n(e,t),o=e.getValue().split®,s=Object.create(null),a=o;return o.forEach((function(e,t){if(e&&e!==a){var n=Math.abs(i-t),r=o.length-n;s?s=Math.max(r,s):s=r}})),s}var o=e(“../range”).Range,r=/+/;t.getCompletions=function(e,t,n,o,r){var s=i(t,n);r(null,Object.keys(s).map((function(e){return{caption:e,value:e,score:s,meta:“local”}})))}})),ace.define(“ace/ext/language_tools”,,(function(e,t){“use strict”;var n=e(“../snippets”).snippetManager,i=e(“../autocomplete”).Autocomplete,o=e(“../config”),r=e(“../lib/lang”),s=e(“../autocomplete/util”),a=e(“../autocomplete/text_completer”),l={getCompletions:function(e,t,n,i,o){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,i,o);var r=e.session.getState(n.row),s=t.$mode.getCompletions(r,t,n,i);o(null,s=s.map((function(e){return e.completerId=l.id,e})))},id:“keywordCompleter”},c=function(e){var t={};return e.replace(/${(d+)(:(.*?))?}/g,(function(e,n,i,o){return t=o||“”})).replace(/$(d+?)/g,(function(e,n){return t}))},h={getCompletions:function(e,t,i,o,r){var s=[],a=t.getTokenAt(i.row,i.column);a&&a.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value).xml$/)?s.push(“html-tag”):s=n.getActiveScopes(e);var l=n.snippetMap,c=[];s.forEach((function(e){for(var t=l||[],n=t.length;n–;){var i=t,o=i.name||i.tabTrigger;o&&c.push({caption:o,snippet:i.content,meta:i.tabTrigger&&!i.name?i.tabTrigger+“u21e5 ”:“snippet”,completerId:h.id})}}),this),r(null,c)},getDocTooltip:function(e){e.snippet&&!e.docHTML&&(e.docHTML=[“”,r.escapeHTML(e.caption),“”,“
”,r.escapeHTML(c(e.snippet))].join(“”))},id:“snippetCompleter”},u=;t.setCompleters=function(e){u.length=0,e&&u.push.apply(u,e)},t.addCompleter=function(e){u.push(e)},t.textCompleter=a,t.keyWordCompleter=l,t.snippetCompleter=h;var d,p={name:“expandSnippet”,exec:function(e){return n.expandWithTab(e)},bindKey:“Tab”},g=function(e,t){m(t.session.$mode)},m=function(e){“string”==typeof e&&(e=o.$modes),e&&(n.files||(n.files={}),f(e.$id,e.snippetFileId),e.modes&&e.modes.forEach(m))},f=function(e,t){t&&e&&!n.files&&(n.files={},o.loadModule(t,(function(t){t&&(n.files=t,!t.snippets&&t.snippetText&&(t.snippets=n.parseSnippetFile(t.snippetText)),n.register(t.snippets||[],t.scope),t.includeScopes&&(n.snippetMap.includeScopes=t.includeScopes,t.includeScopes.forEach((function(e){m(“ace/mode/”+e)}))))})))},v=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if(“backspace”===e.command.name)n&&!s.getCompletionPrefix(t)&&t.completer.detach();else if(“insertstring”===e.command.name&&!n){d=e;var i=e.editor.$liveAutocompletionDelay;i?y.delay(i):b(e)}},y=r.delayedCall((function(){b(d)}),0),b=function(e){var t=e.editor,n=s.getCompletionPrefix(t),o=e.args,r=s.triggerAutocomplete(t,o);if(n&&n.length>=t.$liveAutocompletionThreshold||r){var a=i.for(t);a.autoShown=!0,a.showPopup(t)}},w=e(“../editor”).Editor;e(“../config”).defineOptions(w.prototype,“editor”,{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:u),this.commands.addCommand(i.startCommand)):this.commands.removeCommand(i.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:u),this.commands.on(“afterExec”,v)):this.commands.off(“afterExec”,v)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(e){e?(this.commands.addCommand(p),this.on(“changeMode”,g),g(null,this)):(this.commands.removeCommand(p),this.off(“changeMode”,g))},value:!1}})})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/ext/linking”,,(function(e,t){function n(e){var n=e.editor;if(e.getAccelKey()){n=e.editor;var i=e.getDocumentPosition(),o=n.session.getTokenAt(i.row,i.column);t.previousLinkingHover&&t.previousLinkingHover!=o&&n._emit(“linkHoverOut”),n._emit(“linkHover”,{position:i,token:o}),t.previousLinkingHover=o}else t.previousLinkingHover&&(n._emit(“linkHoverOut”),t.previousLinkingHover=!1)}function i(e){var t=e.getAccelKey();if(0==e.getButton()&&t){var n=e.editor,i=e.getDocumentPosition(),o=n.session.getTokenAt(i.row,i.column);n._emit(“linkClick”,{position:i,token:o})}}var o=e(“../editor”).Editor;e(“../config”).defineOptions(o.prototype,“editor”,{enableLinking:{set:function(e){e?(this.on(“click”,i),this.on(“mousemove”,n)):(this.off(“click”,i),this.off(“mousemove”,n))},value:!1}}),t.previousLinkingHover=!1})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/ext/rtl”,,(function(e){“use strict”;function t(e,t){var n=t.getSelection().lead;t.session.$bidiHandler.isRtlLine(n.row)&&0===n.column&&(t.session.$bidiHandler.isMoveLeftOperation&&n.row>0?t.getSelection().moveCursorTo(n.row-1,t.session.getLine(n.row-1).length):t.getSelection().isEmpty()?n.column+=1:n.setPosition(n.row,n.column+1))}function n(e){e.editor.session.$bidiHandler.isMoveLeftOperation=/gotoleft|selectleft|backspace|removewordleft/.test(e.command.name)}function i(e,t){var n=t.session;if(n.$bidiHandler.currentRow=null,n.$bidiHandler.isRtlLine(e.start.row)&&“insert”===e.action&&e.lines.length>1)for(var i=e.start.row;i<e.end.row;i++)n.getLine(i+1).charAt(0)!==n.$bidiHandler.RLE&&(n.doc.$lines=n.$bidiHandler.RLE+n.getLine(i+1))}function o(e,t){var n=t.session.$bidiHandler,i=t.$textLayer.$lines.cells,o=t.layerConfig.width-t.layerConfig.padding+“px”;i.forEach((function(e){var t=e.element.style;n&&n.isRtlLine(e.row)?(t.direction=“rtl”,t.textAlign=“right”,t.width=o):(t.direction=“”,t.textAlign=“”,t.width=“”)}))}function r(e){function t(e){var t=e.element.style;t.direction=t.textAlign=t.width=“”}var n=e.$textLayer.$lines;n.cells.forEach(t),n.cellCache.forEach(t)}var s=,a=e(“../editor”).Editor;e(“../config”).defineOptions(a.prototype,“editor”,{rtlText:{set:function(e){e?(this.on(“change”,i),this.on(“changeSelection”,t),this.renderer.on(“afterRender”,o),this.commands.on(“exec”,n),this.commands.addCommands(s)):(this.off(“change”,i),this.off(“changeSelection”,t),this.renderer.off(“afterRender”,o),this.commands.off(“exec”,n),this.commands.removeCommands(s),r(this.renderer)),this.renderer.updateFull()}},rtl:{set:function(e){this.session.$bidiHandler.$isRtl=e,e?(this.setOption(“rtlText”,!1),this.renderer.on(“afterRender”,o),this.session.$bidiHandler.seenBidi=!0):(this.renderer.off(“afterRender”,o),r(this.renderer)),this.renderer.updateFull()}}})})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/ext/searchbox-css”,,(function(e,t,n){n.exports=’nn/* ——————————————————————————————n * Editor Search Formn * ————————————————————————————— */n.ace_search {n background-color: ddd;n color: #666;n border: 1px solid cbcbcb;n border-top: 0 none;n overflow: hidden;n margin: 0;n padding: 4px 6px 0 4px;n position: absolute;n top: 0;n z-index: 99;n white-space: normal;n}n.ace_search.left {n border-left: 0 none;n border-radius: 0px 0px 5px 0px;n left: 0;n}n.ace_search.right {n border-radius: 0px 0px 0px 5px;n border-right: 0 none;n right: 0;n}nn.ace_search_form, .ace_replace_form {n margin: 0 20px 4px 0;n overflow: hidden;n line-height: 1.9;n}n.ace_replace_form {n margin-right: 0;n}n.ace_search_form.ace_nomatch {n outline: 1px solid red;n}nn.ace_search_field {n border-radius: 3px 0 0 3px;n background-color: white;n color: black;n border: 1px solid cbcbcb;n border-right: 0 none;n outline: 0;n padding: 0;n font-size: inherit;n margin: 0;n line-height: inherit;n padding: 0 6px;n min-width: 17em;n vertical-align: top;n min-height: 1.8em;n box-sizing: content-box;n}n.ace_searchbtn {n border: 1px solid cbcbcb;n line-height: inherit;n display: inline-block;n padding: 0 6px;n background: fff;n border-right: 0 none;n border-left: 1px solid dcdcdc;n cursor: pointer;n margin: 0;n position: relative;n color: #666;n}n.ace_searchbtn:last-child {n border-radius: 0 3px 3px 0;n border-right: 1px solid cbcbcb;n}n.ace_searchbtn:disabled {n background: none;n cursor: default;n}n.ace_searchbtn:hover {n background-color: eef1f6;n}n.ace_searchbtn.prev, .ace_searchbtn.next {n padding: 0px 0.7emn}n.ace_searchbtn.prev:after, .ace_searchbtn.next:after {n content: “”;n border: solid 2px #888;n width: 0.5em;n height: 0.5em;n border-width: 2px 0 0 2px;n display:inline-block;n transform: rotate(-45deg);n}n.ace_searchbtn.next:after {n border-width: 0 2px 2px 0 ;n}n.ace_searchbtn_close {n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;n border-radius: 50%;n border: 0 none;n color: #656565;n cursor: pointer;n font: 16px/16px Arial;n padding: 0;n height: 14px;n width: 14px;n top: 9px;n right: 7px;n position: absolute;n}n.ace_searchbtn_close:hover {n background-color: #656565;n background-position: 50% 100%;n color: white;n}nn.ace_button {n margin-left: 2px;n cursor: pointer;n -webkit-user-select: none;n -moz-user-select: none;n -o-user-select: none;n -ms-user-select: none;n user-select: none;n overflow: hidden;n opacity: 0.7;n border: 1px solid rgba(100,100,100,0.23);n padding: 1px;n box-sizing: border-box!important;n color: black;n}nn.ace_button:hover {n background-color: eee;n opacity:1;n}n.ace_button:active {n background-color: ddd;n}nn.ace_button.checked {n border-color: #3399ff;n opacity:1;n}nn.ace_search_options{n margin-bottom: 3px;n text-align: right;n -webkit-user-select: none;n -moz-user-select: none;n -o-user-select: none;n -ms-user-select: none;n user-select: none;n clear: both;n}nn.ace_search_counter {n float: left;n font-family: arial;n padding: 0 8px;n}‘})),ace.define(“ace/ext/searchbox”,,(function(e,t){“use strict”;var n=e(“../lib/dom”),i=e(“../lib/lang”),o=e(“../lib/event”),r=e(“./searchbox-css”),s=e(“../keyboard/hash_handler”).HashHandler,a=e(“../lib/keys”),l=e(“../config”).nls,c=999;n.importCssString(r,“ace_searchbox”,!1);var h=function(){function e(e){this.activeInput;var t=n.createElement(“div”);n.buildDom([“div”,{class:“ace_search right”},[“span”,{action:“hide”,class:“ace_searchbtn_close”}],[“div”,{class:“ace_search_form”},[“input”,{class:“ace_search_field”,placeholder:l(“search-box.find.placeholder”,“Search for”),spellcheck:“false”}],[“span”,{action:“findPrev”,class:“ace_searchbtn prev”},“u200b”],[“span”,{action:“findNext”,class:“ace_searchbtn next”},“u200b”],],[“div”,{class:“ace_replace_form”},[“input”,{class:“ace_search_field”,placeholder:l(“search-box.replace.placeholder”,“Replace with”),spellcheck:“false”}],[“span”,{action:“replaceAndFindNext”,class:“ace_searchbtn”},l(“search-box.replace-next.text”,“Replace”)],],[“div”,{class:“ace_search_options”},[“span”,{action:“toggleReplace”,class:“ace_button”,title:l(“search-box.toggle-replace.title”,“Toggle Replace mode”),style:“float:left;margin-top:-2px;padding:0 5px;”},“+”],[“span”,{class:“ace_search_counter”}],[“span”,{action:“toggleRegexpMode”,class:“ace_button”,title:l(“search-box.toggle-regexp.title”,“RegExp Search”)},“.*”],[“span”,{action:“toggleCaseSensitive”,class:“ace_button”,title:l(“search-box.toggle-case.title”,“CaseSensitive Search”)},“Aa”],[“span”,{action:“toggleWholeWords”,class:“ace_button”,title:l(“search-box.toggle-whole-word.title”,“Whole Word Search”)},“\b”],[“span”,{action:“searchInSelection”,class:“ace_button”,title:l(“search-box.toggle-in-selection.title”,“Search In Selection”)},“S”]]],t),this.element=t.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(e),n.importCssString(r,“ace_searchbox”,e.container)}return e.prototype.setEditor=function(e){e.searchBox=this,e.renderer.scroller.appendChild(this.element),this.editor=e},e.prototype.setSession=function(){this.searchRange=null,this.$syncOptions(!0)},e.prototype.$initElements=function(e){this.searchBox=e.querySelector(“.ace_search_form”),this.replaceBox=e.querySelector(“.ace_replace_form”),this.searchOption=e.querySelector(“”),this.replaceOption=e.querySelector(“”),this.regExpOption=e.querySelector(“”),this.caseSensitiveOption=e.querySelector(“”),this.wholeWordOption=e.querySelector(“”),this.searchInput=this.searchBox.querySelector(“.ace_search_field”),this.replaceInput=this.replaceBox.querySelector(“.ace_search_field”),this.searchCounter=e.querySelector(“.ace_search_counter”)},e.prototype.$init=function(){var e=this.element;this.$initElements(e);var t=this;o.addListener(e,“mousedown”,(function(e){setTimeout((function(){t.activeInput.focus()}),0),o.stopPropagation(e)})),o.addListener(e,“click”,(function(e){var n=(e.target||e.srcElement).getAttribute(“action”);n&&t?t():t.$searchBarKb.commands&&t.$searchBarKb.commands.exec(t),o.stopPropagation(e)})),o.addCommandKeyListener(e,(function(e,n,i){var r=a.keyCodeToString(i),s=t.$searchBarKb.findKeyCommand(n,r);s&&s.exec&&(s.exec(t),o.stopEvent(e))})),this.$onChange=i.delayedCall((function(){t.find(!1,!1)})),o.addListener(this.searchInput,“input”,(function(){t.$onChange.schedule(20)})),o.addListener(this.searchInput,“focus”,(function(){t.activeInput=t.searchInput,t.searchInput.value&&t.highlight()})),o.addListener(this.replaceInput,“focus”,(function(){t.activeInput=t.replaceInput,t.searchInput.value&&t.highlight()}))},e.prototype.setSearchRange=function(e){this.searchRange=e,e?this.searchRangeMarker=this.editor.session.addMarker(e,“ace_active-line”):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},e.prototype.$syncOptions=function(e){n.setCssClass(this.replaceOption,“checked”,this.searchRange),n.setCssClass(this.searchOption,“checked”,this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?“-”:“+”,n.setCssClass(this.regExpOption,“checked”,this.regExpOption.checked),n.setCssClass(this.wholeWordOption,“checked”,this.wholeWordOption.checked),n.setCssClass(this.caseSensitiveOption,“checked”,this.caseSensitiveOption.checked);var t=this.editor.getReadOnly();this.replaceOption.style.display=t?“none”:“”,this.replaceBox.style.display=this.replaceOption.checked&&!t?“”:“none”,this.find(!1,!1,e)},e.prototype.highlight=function(e){this.editor.session.highlight(e||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},e.prototype.find=function(e,t,i){var o=!this.editor.find(this.searchInput.value,{skipCurrent:e,backwards:t,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:i,range:this.searchRange})&&this.searchInput.value;n.setCssClass(this.searchBox,“ace_nomatch”,o),this.editor._emit(“findSearchBox”,{match:!o}),this.highlight(),this.updateCounter()},e.prototype.updateCounter=function(){var e=this.editor,t=e.$search.$options.re,n=t.unicode,o=0,r=0;if(t){var s=this.searchRange?e.session.getTextRange(this.searchRange):e.getValue(),a=e.session.doc.positionToIndex(e.selection.anchor);this.searchRange&&(a-=e.session.doc.positionToIndex(this.searchRange.start));for(var h,u=t.lastIndex=0;(h=t.exec(s))&&(o++,(u=h.index)<=a&&r++,!(o>c))&&(h||(t.lastIndex=u+=i.skipEmptyMatch(s,u,n),!(u>=s.length))););}this.searchCounter.textContent=l(“search-box.search-counter”,“$0 of $1”,)},e.prototype.findNext=function(){this.find(!0,!1)},e.prototype.findPrev=function(){this.find(!0,!0)},e.prototype.findAll=function(){var e=!this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked})&&this.searchInput.value;n.setCssClass(this.searchBox,“ace_nomatch”,e),this.editor._emit(“findSearchBox”,{match:!e}),this.highlight(),this.hide()},e.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},e.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},e.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},e.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off(“changeSession”,this.setSession),this.element.style.display=“none”,this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},e.prototype.show=function(e,t){this.active=!0,this.editor.on(“changeSession”,this.setSession),this.element.style.display=“”,this.replaceOption.checked=t,e&&(this.searchInput.value=e),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},e.prototype.isFocused=function(){var e=document.activeElement;return e==this.searchInput||e==this.replaceInput},e}(),u=new s;u.bindKeys({“Ctrl-f|Command-f”:function(e){var t=e.isReplace=!e.isReplace;e.replaceBox.style.display=t?“”:“none”,e.replaceOption.checked=!1,e.$syncOptions(),e.searchInput.focus()},“Ctrl-H|Command-Option-F”:function(e){e.editor.getReadOnly()||(e.replaceOption.checked=!0,e.$syncOptions(),e.replaceInput.focus())},“Ctrl-G|Command-G”:function(e){e.findNext()},“Ctrl-Shift-G|Command-Shift-G”:function(e){e.findPrev()},esc:function(e){setTimeout((function(){e.hide()}))},Return:function(e){e.activeInput==e.replaceInput&&e.replace(),e.findNext()},“Shift-Return”:function(e){e.activeInput==e.replaceInput&&e.replace(),e.findPrev()},“Alt-Return”:function(e){e.activeInput==e.replaceInput&&e.replaceAll(),e.findAll()},Tab:function(e){(e.activeInput==e.replaceInput?e.searchInput:e.replaceInput).focus()}}),u.addCommands();var d=new s();h.prototype.$searchBarKb=u,h.prototype.$closeSearchBarKb=d,t.SearchBox=h,t.Search=function(e,t){(e.searchBox||new h(e)).show(e.session.getTextRange(),t)}})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/ext/menu_tools/settings_menu.css”,,(function(e,t,n){n.exports=“#ace_settingsmenu, kbshortcutmenu {n background-color: F7F7F7;n color: black;n box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);n padding: 1em 0.5em 2em 1em;n overflow: auto;n position: absolute;n margin: 0;n bottom: 0;n right: 0;n top: 0;n z-index: 9991;n cursor: default;n}nn.ace_dark ace_settingsmenu, .ace_dark kbshortcutmenu {n box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);n background-color: rgba(255, 255, 255, 0.6);n color: black;n}nn.ace_optionsMenuEntry:hover {n background-color: rgba(100, 100, 100, 0.1);n transition: all 0.3sn}nn.ace_closeButton {n background: rgba(245, 146, 146, 0.5);n border: 1px solid F48A8A;n border-radius: 50%;n padding: 7px;n position: absolute;n right: -8px;n top: -8px;n z-index: 100000;n}n.ace_closeButton{n background: rgba(245, 146, 146, 0.9);n}n.ace_optionsMenuKey {n color: darkslateblue;n font-weight: bold;n}n.ace_optionsMenuCommand {n color: darkcyan;n font-weight: normal;n}n.ace_optionsMenuEntry input, .ace_optionsMenuEntry button {n vertical-align: middle;n}nn.ace_optionsMenuEntry button {n background: e7e7e7;n box-shadow: 1px 0px 2px 0px adadad inset;n border-color: adadad;n}n.ace_optionsMenuEntry button {n background: white;n border: 1px solid lightgray;n margin: 0px;n}n.ace_optionsMenuEntry button:hover{n background: f0f0f0;n}”})),ace.define(“ace/ext/menu_tools/overlay_page”,,(function(e,t,n){“use strict”;var i=e(“../../lib/dom”),o=e(“./settings_menu.css”);i.importCssString(o,“settings_menu.css”,!1),n.exports.overlayPage=function(e,t,n){function i(e){27===e.keyCode&&o()}function o(){s&&(document.removeEventListener(“keydown”,i),s.parentNode.removeChild(s),e&&e.focus(),s=null,n&&n())}function r(e){a=e,e&&(s.style.pointerEvents=“none”,t.style.pointerEvents=“auto”)}var s=document.createElement(“div”),a=!1;return s.style.cssText=“margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; ”+(e?“background-color: rgba(0, 0, 0, 0.3);”:“”),s.addEventListener(“click”,(function(){a||o()})),document.addEventListener(“keydown”,i),t.addEventListener(“click”,(function(e){e.stopPropagation()})),s.appendChild(t),document.body.appendChild(s),e&&e.blur(),{close:o,setIgnoreFocusOut:r}}})),ace.define(“ace/ext/modelist”,,(function(e,t,n){“use strict”;function i(e){for(var t=l.text,n=e.split(//).pop(),i=0;i<o.length;i++)if(o.supportsFile(n)){t=o;break}return t}var o=[],r=function(){function e(e,t,n){var i;this.name=e,this.caption=t,this.mode=“ace/mode/”+e,this.extensions=n,i=/^/.test(n)?n.replace(/|(^)?/g,(function(e,t){return“$|”+(t?“^”:“^.*\.”)}))+“$”:“^.*\.(”
n
“)$”,this.extRe=new RegExp(i,“gi”)}return e.prototype.supportsFile=function(e){return e.match(this.extRe)},e}(),s={ABAP:,ABC:,ActionScript:,ADA:,Alda:,Apache_Conf:,Apex:,AQL:,AsciiDoc:,ASL:,Assembly_ARM32:,Assembly_x86:,Astro:,AutoHotKey:,BatchFile:,BibTeX:,C_Cpp:,C9Search:,Cirru:,Clojure:,Cobol:,coffee:,ColdFusion:,Crystal:,CSharp:,Csound_Document:,Csound_Orchestra:,Csound_Score:,CSS:,Curly:,Cuttlefish:,D:,Dart:,Diff:,Django:,Dockerfile:,Dot:,Drools:,Edifact:,Eiffel:,EJS:,Elixir:,Elm:,Erlang:,Flix:,Forth:,Fortran:,FSharp:,FSL:,FTL:,Gcode:,Gherkin:,Gitignore:,Glsl:,Gobstones:,golang:,GraphQLSchema:,Groovy:,HAML:,Handlebars:,Haskell:,Haskell_Cabal:,haXe:,Hjson:,HTML:,HTML_Elixir:,HTML_Ruby:,INI:,Io:,Ion:,Jack:,Jade:,Java:,JavaScript:,JEXL:,JSON:,JSON5:,JSONiq:,JSP:,JSSM:,JSX:,Julia:,Kotlin:,LaTeX:,Latte:,LESS:,Liquid:,Lisp:,LiveScript:,Log:,LogiQL:,Logtalk:,LSL:,Lua:,LuaPage:,Lucene:,Makefile:,Markdown:,Mask:,MATLAB:,Maze:,MediaWiki:,MEL:,MIPS:,MIXAL:,MUSHCode:,MySQL:,Nasal:,Nginx:,Nim:,Nix:,NSIS:,Nunjucks:,ObjectiveC:,OCaml:,Odin:,PartiQL:,Pascal:,Perl:,pgSQL:,PHP:,PHP_Laravel_blade:,Pig:,PLSQL:,Powershell:,Praat:,Prisma:,Prolog:,Properties:,Protobuf:,PRQL:,Puppet:,Python:,QML:,R:,Raku:,Razor:,RDoc:,Red:,RHTML:,Robot:,RST:,Ruby:,Rust:,SaC:,SASS:,SCAD:,Scala:,Scheme:,Scrypt:,SCSS:,SH:,SJS:,Slim:,Smarty:,Smithy:,snippets:,Soy_Template:,Space:,SPARQL:,SQL:,SQLServer:,Stylus:,SVG:,Swift:,Tcl:,Terraform:,Tex:,Text:,Textile:,Toml:,TSX:,Turtle:,Twig:,Typescript:,Vala:,VBScript:,Velocity:,Verilog:,VHDL:,Visualforce:,Vue:,Wollok:,XML:,XQuery:,YAML:,Zeek:,Zig:},a={ObjectiveC:“Objective-C”,CSharp:“C#”,golang:“Go”,C_Cpp:“C and C++”,Csound_Document:“Csound Document”,Csound_Orchestra:“Csound”,Csound_Score:“Csound Score”,coffee:“CoffeeScript”,HTML_Ruby:“HTML (Ruby)”,HTML_Elixir:“HTML (Elixir)”,FTL:“FreeMarker”,PHP_Laravel_blade:“PHP (Blade Template)”,Perl6:“Perl 6”,AutoHotKey:“AutoHotkey / AutoIt”},l={};for(var c in s){var h=s,u=(a||c).replace(/_/g,“ ”),d=c.toLowerCase(),p=new r(d,u,h);l=p,o.push(p)}n.exports={getModeForPath:i,modes:o,modesByName:l}})),ace.define(“ace/ext/themelist”,,(function(e,t){“use strict”;var n=[,[“Clouds”],[“Crimson Editor”],,[“Dreamweaver”],,[“GitHub”],,[“Solarized Light”],,[“Tomorrow”],,[“Kuroir”],,[“SQL Server”,“sqlserver”,“light”],,[“Ambiance”,“ambiance”,“dark”],,[“Clouds Midnight”,“clouds_midnight”,“dark”],,[“Cobalt”,“cobalt”,“dark”],,[“Green on Black”,“gob”,“dark”],[“idle Fingers”,“idle_fingers”,“dark”],,[“Merbivore”,“merbivore”,“dark”],[“Merbivore Soft”,“merbivore_soft”,“dark”],[“Mono Industrial”,“mono_industrial”,“dark”],,[“Nord Dark”,“nord_dark”,“dark”],[“One Dark”,“one_dark”,“dark”],[“Pastel on dark”,“pastel_on_dark”,“dark”],[“Solarized Dark”,“solarized_dark”,“dark”],,[“Tomorrow Night”,“tomorrow_night”,“dark”],[“Tomorrow Night Blue”,“tomorrow_night_blue”,“dark”],[“Tomorrow Night Bright”,“tomorrow_night_bright”,“dark”],[“Tomorrow Night 80s”,“tomorrow_night_eighties”,“dark”],,[“Vibrant Ink”,“vibrant_ink”,“dark”],[“GitHub Dark”,“github_dark”,“dark”],[“CloudEditor Dark”,“cloud_editor_dark”,“dark”]];t.themesByName={},t.themes=n.map((function(e){var n=e||e.replace(/ /g,“_”).toLowerCase(),i={caption:e,theme:“ace/theme/”+n,isDark:“dark”==e,name:n};return t.themesByName=i,i}))})),ace.define(“ace/ext/options”,,(function(e,t){“use strict”;e(“./menu_tools/overlay_page”);var n=e(“../lib/dom”),i=e(“../lib/oop”),o=e(“../config”),r=e(“../lib/event_emitter”).EventEmitter,s=n.buildDom,a=e(“./modelist”),l=e(“./themelist”),c={Bright:[],Dark:};l.themes.forEach((function(e){c.push({caption:e.caption,value:e.theme})}));var h={Main:{Mode:{path:“mode”,type:“select”,items:a.modes.map((function(e){return{caption:e.caption,value:e.mode}}))},Theme:{path:“theme”,type:“select”,items:c},Keybinding:{type:“buttonBar”,path:“keyboardHandler”,items:[{caption:“Ace”,value:null},{caption:“Vim”,value:“ace/keyboard/vim”},{caption:“Emacs”, value:“ace/keyboard/emacs”},{caption:“Sublime”,value:“ace/keyboard/sublime”},{caption:“VSCode”,value:“ace/keyboard/vscode”}]},“Font Size”:{path:“fontSize”,type:“number”,defaultValue:12,defaults:},“Soft Wrap”:{type:“buttonBar”,path:“wrap”,items:},“Cursor Style”:{path:“cursorStyle”,items:[{caption:“Ace”,value:“ace”},{caption:“Slim”,value:“slim”},{caption:“Smooth”,value:“smooth”},{caption:“Smooth And Slim”,value:“smooth slim”},{caption:“Wide”,value:“wide”}]},Folding:{path:“foldStyle”,items:[{caption:“Manual”,value:“manual”},{caption:“Mark begin”,value:“markbegin”},{caption:“Mark begin and end”,value:“markbeginend”}]},“Soft Tabs”:[{path:“useSoftTabs”},{ariaLabel:“Tab Size”,path:“tabSize”,type:“number”,values:}],Overscroll:{type:“buttonBar”,path:“scrollPastEnd”,items:}},More:{“Atomic soft tabs”:{path:“navigateWithinSoftTabs”},“Enable Behaviours”:{path:“behavioursEnabled”},“Wrap with quotes”:{path:“wrapBehavioursEnabled”},“Enable Auto Indent”:{path:“enableAutoIndent”},“Full Line Selection”:{type:“checkbox”,values:“text|line”,path:“selectionStyle”},“Highlight Active Line”:{path:“highlightActiveLine”},“Show Invisibles”:{path:“showInvisibles”},“Show Indent Guides”:{path:“displayIndentGuides”},“Highlight Indent Guides”:{path:“highlightIndentGuides”},“Persistent HScrollbar”:{path:“hScrollBarAlwaysVisible”},“Persistent VScrollbar”:{path:“vScrollBarAlwaysVisible”},“Animate scrolling”:{path:“animatedScroll”},“Show Gutter”:{path:“showGutter”},“Show Line Numbers”:{path:“showLineNumbers”},“Relative Line Numbers”:{path:“relativeLineNumbers”},“Fixed Gutter Width”:{path:“fixedWidthGutter”},“Show Print Margin”:[{path:“showPrintMargin”},{ariaLabel:“Print Margin”,type:“number”,path:“printMarginColumn”}],“Indented Soft Wrap”:{path:“indentedSoftWrap”},“Highlight selected word”:{path:“highlightSelectedWord”},“Fade Fold Widgets”:{path:“fadeFoldWidgets”},“Use textarea for IME”:{path:“useTextareaForIME”},“Merge Undo Deltas”:{path:“mergeUndoDeltas”,items:},“Elastic Tabstops”:{path:“useElasticTabstops”},“Incremental Search”:{path:“useIncrementalSearch”},“Read-only”:{path:“readOnly”},“Copy without selection”:{path:“copyWithEmptySelection”},“Live Autocompletion”:{path:“enableLiveAutocompletion”},“Custom scrollbar”:{path:“customScrollbar”},“Use SVG gutter icons”:{path:“useSvgGutterIcons”},“Annotations for folded lines”:{path:“showFoldedAnnotations”},“Keyboard Accessibility Mode”:{path:“enableKeyboardAccessibility”},“Gutter tooltip follows mouse”:{path:“tooltipFollowsMouse”,defaultValue:!0}}},u=function(){function e(e,t){this.editor=e,this.container=t||document.createElement(“div”),this.groups=[],this.options={}}return e.prototype.add=function(e){e.Main&&i.mixin(h.Main,e.Main),e.More&&i.mixin(h.More,e.More)},e.prototype.render=function(){this.container.innerHTML=“”,s([“table”,{role:“presentation”,id:“controls”},this.renderOptionGroup(h.Main),[“tr”,null,[“td”,{colspan:2},]],[“tr”,null,[“td”,{colspan:2},“version ”+o.version]]],this.container)},e.prototype.renderOptionGroup=function(e){return Object.keys(e).map((function(t,n){var i=e;return i.position||(i.position=n/1e4),i.label||(i.label=t),i})).sort((function(e,t){return e.position-t.position})).map((function(e){return this.renderOption(e.label,e)}),this)},e.prototype.renderOptionControl=function(e,t){var n,i=this;if(Array.isArray(t))return t.map((function(t){return i.renderOptionControl(e,t)}));var o=i.getOption(t);if(t.values&&“checkbox”!=t.type&&(“string”==typeof t.values&&(t.values=t.values.split(“|”)),t.items=t.values.map((function(e){return{value:e,name:e}}))),“buttonBar”==t.type)n=[“div”,{role:“group”,“aria-labelledby”:t.path+“-label”},t.items.map((function(e){return[“button”,{value:e.value,ace_selected_button:o==e.value,“aria-pressed”:o==e.value,onclick:function(){i.setOption(t,e.value);for(var n=this.parentNode.querySelectorAll(“”),o=0;o<n.length;o++)n.removeAttribute(“ace_selected_button”),n.setAttribute(“aria-pressed”,!1);this.setAttribute(“ace_selected_button”,!0),this.setAttribute(“aria-pressed”,!0)}},e.desc||e.caption||e.name]}))];else if(“number”==t.type)n=,t.ariaLabel?n[“aria-label”]=t.ariaLabel:n.id=e,t.defaults&&(n=[n,t.defaults.map((function(e){return[“button”,{onclick:function(){var t=this.parentNode.firstChild;t.value=e.value,t.oninput()}},e.caption]}))]);else if(t.items){var r=function(e){return e.map((function(e){return}))},s=Array.isArray(t.items)?r(t.items):Object.keys(t.items).map((function(e){return[“optgroup”,{label:e},r(t.items)]}));n=}else“string”==typeof t.values&&(t.values=t.values.split(“|”)),t.values&&(o=o==t.values),n=[“input”,{type:“checkbox”,id:e,checked:o||null,onchange:function(){var e=this.checked;t.values&&(e=t.values),i.setOption(t,e)}}],“checkedNumber”==t.type&&(n=[n,]);return n},e.prototype.renderOption=function(e,t){if(!t.path||t.onchange||this.editor.$options){var n=Array.isArray(t)?t.path:t.path;this.options=t;var i=“-”+n;return[“tr”,{class:“ace_optionsMenuEntry”},[“td”,],[“td”,this.renderOptionControl(i,t)]]}},e.prototype.setOption=function(e,t){“string”==typeof e&&(e=this.options),“false”==t&&(t=!1),“true”==t&&(t=!0),“null”==t&&(t=null),“undefined”==t&&(t=void 0),“string”==typeof t&&parseFloat(t).toString()==t&&(t=parseFloat(t)),e.onchange?e.onchange(t):e.path&&this.editor.setOption(e.path,t),this._signal(“setOption”,{name:e.path,value:t})},e.prototype.getOption=function(e){return e.getValue?e.getValue():this.editor.getOption(e.path)},e}();i.implement(u.prototype,r),t.OptionPanel=u})),ace.define(“ace/ext/settings_menu”,,(function(e,t,n){“use strict”;function i(e){if(!document.getElementById(“ace_settingsmenu”)){var t=new o(e);t.render(),t.container.id=“ace_settingsmenu”,r(e,t.container),t.container.querySelector(“select,input,button,checkbox”).focus()}}var o=e(“./options”).OptionPanel,r=e(“./menu_tools/overlay_page”).overlayPage;n.exports.init=function(){e(“../editor”).Editor.prototype.showSettingsMenu=function(){i(this)}}})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/ext/spellcheck”,,(function(e,t){“use strict”;var n=e(“../lib/event”);t.contextMenuHandler=function(e){var t=e.target,i=t.textInput.getElement();if(t.selection.isEmpty()){var o=t.getCursorPosition(),r=t.session.getWordRange(o.row,o.column),s=t.session.getTextRange®;if(t.session.tokenRe.lastIndex=0,t.session.tokenRe.test(s)){var a=“x01x01”,l=s+“ ”+a;i.value=l,i.setSelectionRange(s.length,s.length+1),i.setSelectionRange(0,0),i.setSelectionRange(0,s.length);var c=!1;n.addListener(i,“keydown”,(function e(){n.removeListener(i,“keydown”,e),c=!0})),t.textInput.setInputHandler((function(e){if(e==l)return“”;if(0===e.lastIndexOf(l,0))return e.slice(l.length);if(e.substr(i.selectionEnd)==l)return e.slice(0,-l.length);if(e.slice(-2)==a){var n=e.slice(0,-2);if(“ ”==n.slice(-1))return c?n.substring(0,i.selectionEnd):(n=n.slice(0,-1),t.session.replace(r,n),“”)}return e}))}}};var i=e(“../editor”).Editor;e(“../config”).defineOptions(i.prototype,“editor”,{spellcheck:{set:function(e){this.textInput.getElement().spellcheck=!!e,e?this.on(“nativecontextmenu”,t.contextMenuHandler):this.removeListener(“nativecontextmenu”,t.contextMenuHandler)},value:!0}})})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/split”,,(function(e,t){“use strict”;var n,i=e(“./lib/oop”),o=(e(“./lib/lang”),e(“./lib/event_emitter”).EventEmitter),r=e(“./editor”).Editor,s=e(“./virtual_renderer”).VirtualRenderer,a=e(“./edit_session”).EditSession;n=function(e,t,n){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS=“”,this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(n||1),this.$cEditor=this.$editors,this.on(“focus”,function(e){this.$cEditor=e}.bind(this))},function(){i.implement(this,o),this.$createEditor=function(){var e=document.createElement(“div”);e.className=this.$editorCSS,e.style.cssText=“position: absolute; top:0px; bottom:0px”,this.$container.appendChild(e);var t=new r(new s(e,this.$theme));return t.on(“focus”,function(){this._emit(“focus”,t)}.bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw“The number of splits have to be > 0!”;if(e!=this.$splits){if(e>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<e;)t=this.$editors,this.$container.appendChild(t.container),t.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<e;)this.$createEditor(),this.$splits++}else for(;this.$splits>e;)t=this.$editors,this.$container.removeChild(t.container),this.$splits–;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach((function(t){t.setTheme(e)}))},this.setKeyboardHandler=function(e){this.$editors.forEach((function(t){t.setKeyboardHandler(e)}))},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize=“”,this.setFontSize=function(e){this.$fontSize=e,this.forEach((function(t){t.setFontSize(e)}))},this.$cloneSession=function(e){var t=new a(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;n=null==t?this.$cEditor:this.$editors;var i=this.$editors.some((function(t){return t.session===e}));return i&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var i=t/this.$splits,o=0;o<this.$splits;o++)(e=this.$editors).container.style.width=i+“px”,e.container.style.top=“0px”,e.container.style.left=o*i+“px”,e.container.style.height=n+“px”,e.resize();else{var r=n/this.$splits;for(o=0;o<this.$splits;o++)(e=this.$editors).container.style.width=t+“px”,e.container.style.top=o*r+“px”,e.container.style.left=“0px”,e.container.style.height=r+“px”,e.resize()}}}.call(n.prototype),t.Split=n})),ace.define(“ace/ext/split”,,(function(e,t,n){“use strict”;n.exports=e(“../split”)})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/ext/static-css”,,(function(e,t,n){n.exports=“.ace_static_highlight {n font-family: ’Monaco’, ‘Menlo’, ‘Ubuntu Mono’, ‘Consolas’, ‘Source Code Pro’, ‘source-code-pro’, ‘Droid Sans Mono’, monospace;n font-size: 12px;n white-space: pre-wrapn}nn.ace_static_highlight .ace_gutter {n width: 2em;n text-align: right;n padding: 0 3px 0 0;n margin-right: 3px;n contain: none;n}nn.ace_static_highlight.ace_show_gutter .ace_line {n padding-left: 2.6em;n}nn.ace_static_highlight .ace_line { position: relative; }nn.ace_static_highlight .ace_gutter-cell {n -moz-user-select: -moz-none;n -khtml-user-select: none;n -webkit-user-select: none;n user-select: none;n top: 0;n bottom: 0;n left: 0;n position: absolute;n}nnn.ace_static_highlight .ace_gutter-cell:before {n content: counter(ace_line, decimal);n counter-increment: ace_line;n}n.ace_static_highlight {n counter-reset: ace_line;n}n”})),ace.define(“ace/ext/static_highlight”,,(function(e,t,n){“use strict”;var i=e(“../edit_session”).EditSession,o=e(“../layer/text”).Text,r=e(“./static-css”),s=e(“../config”),a=e(“../lib/dom”),l=e(“../lib/lang”).escapeHTML,c=function(){function e(e){this.className,this.type=e,this.style={},this.textContent=“”}return e.prototype.cloneNode=function(){return this},e.prototype.appendChild=function(e){this.textContent+=e.toString()},e.prototype.toString=function(){var e=[];if(“fragment”!=this.type){e.push(“<”,this.type),this.className&&e.push(“ class=‘”,this.className,“’”);var t=[];for(var n in this.style)t.push(n,“:”,this.style);t.length&&e.push(“ style=‘”,t.join(“”),“’”),e.push(“>”)}return this.textContent&&e.push(this.textContent),“fragment”!=this.type&&e.push(“</”,this.type,“>”),e.join(“”)},e}(),h={createTextNode:function(e){return l(e)},createElement:function(e){return new c(e)},createFragment:function(){return new c(“fragment”)}},u=function(){this.config={},this.dom=h};u.prototype=o.prototype;var d=function(e,t,n){var i=e.className.match(/lang-(w+)/),o=t.mode||i&&“ace/mode/”+i;if(!o)return!1;var r=t.theme||“ace/theme/textmate”,s=“”,l=[];if(e.firstElementChild)for(var c=0,h=0;h<e.childNodes.length;h++){var u=e.childNodes;3==u.nodeType?(c+=u.data.length,s+=u.data):l.push(c,u)}else s=e.textContent,t.trim&&(s=s.trim());d.render(s,o,r,t.firstLineNumber,!t.showGutter,(function(t){a.importCssString(t.css,“ace_highlight”,!0),e.innerHTML=t.html;for(var i=e.firstChild.firstChild,o=0;o<l.length;o+=2){var r=t.session.doc.indexToPosition(l),s=l,c=i.children;c&&c.appendChild(s)}n&&n()}))};d.render=function(e,t,n,o,r,a){function l(){var i=d.renderSync(e,t,n,o,r);return a?a(i):i}var c,h=1,u=i.prototype.$modes;return“string”==typeof n&&(h++,s.loadModule(,(function(e){n=e,–h||l()}))),t&&“object”==typeof t&&!t.getTokenizer&&(t=(c=t).path),“string”==typeof t&&(h++,s.loadModule(,(function(e){u&&!c||(u=new e.Mode©),t=u,–h||l()}))),–h||l()},d.renderSync=function(e,t,n,o,s){o=parseInt(o||1,10);var a=new i(“”);a.setUseWorker(!1),a.setMode(t);var l=new u;l.setSession(a),Object.keys(l.$tabStrings).forEach((function(e){if(“string”==typeof l.$tabStrings){var t=h.createFragment();t.textContent=l.$tabStrings,l.$tabStrings=t}})),a.setValue(e);var c=a.getLength(),d=h.createElement(“div”);d.className=n.cssClass;var p=h.createElement(“div”);p.className=“ace_static_highlight”+(s?“”:“ ace_show_gutter”),p.style=“ace_line ”+(o-1);for(var g=0;g<c;g++){var m=h.createElement(“div”);if(m.className=“ace_line”,!s){var f=h.createElement(“span”);f.className=“ace_gutter ace_gutter-cell”,f.textContent=“”,m.appendChild(f)}l.$renderLine(m,g,!1),m.textContent+=“n”,p.appendChild(m)}return d.appendChild(p),{css:r+n.cssText,html:d.toString(),session:a}},n.exports=d,n.exports.highlight=d})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/ext/statusbar”,,(function(e,t){“use strict”;var n=e(“../lib/dom”),i=e(“../lib/lang”),o=function(){function e(e,t){this.element=n.createElement(“div”),this.element.className=“ace_status-indicator”,this.element.style.cssText=“display: inline-block;”,t.appendChild(this.element);var o=i.delayedCall(function(){this.updateStatus(e)}.bind(this)).schedule.bind(null,100);e.on(“changeStatus”,o),e.on(“changeSelection”,o),e.on(“keyboardActivity”,o)}return e.prototype.updateStatus=function(e){function t(e,t){e&&n.push(e,t||“|”)}var n=[];t(e.keyBinding.getStatusText(e)),e.commands.recording&&t(“REC”);var i=e.selection,o=i.lead;if(!i.isEmpty()){var r=e.getSelectionRange();t(“(”+(r.end.row-r.start.row)+“:”+(r.end.column-r.start.column)+“)”,“ ”)}t(o.row+“:”+o.column,“ ”),i.rangeCount&&t(“[”i.rangeCount
“]”,“ ”),n.pop(),this.element.textContent=n.join(“”)},e}();t.StatusBar=o})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/ext/textarea”,,(function(e,t,n){“use strict”;function i(e,t){for(var n in t)e.style=t}function o(e,t){if(“textarea”!=e.type)throw new Error(“Textarea required!”);var n=e.parentNode,i=document.createElement(“div”),o=function(){var t=“position:relative;”;.forEach((function(n){t+=n+“:”+h(e,i,n)+“;”}));var n=h(e,i,“width”)||e.clientWidth+“px”,o=h(e,i,“height”)||e.clientHeight+“px”;t+=“height:”o
“;width:”n
“;”,t+=“display:inline-block;”,i.style.cssText=t};for(a.addListener(window,“resize”,o),o(),n.insertBefore(i,e.nextSibling);n!==document;){if(“FORM”===n.tagName.toUpperCase()){var r=n.onsubmit;n.onsubmit=function(n){e.value=t(),r&&r.call(this,n)};break}n=n.parentNode}return i}function r(e,t,n,i,o){function r(e){return“true”===e||1==e}return e.setDisplaySettings=function(t){null==t&&(t=“none”==n.style.display),t?(n.style.display=“block”,n.hideButton.focus(),e.on(“focus”,(function t(){e.removeListener(“focus”,t),n.style.display=“none”}))):e.focus()},e.$setOption=e.setOption,e.$getOption=e.getOption,e.setOption=function(t,n){switch(t){case“mode”:e.$setOption(“mode”,“ace/mode/”+n);break;case“theme”:e.$setOption(“theme”,“ace/theme/”+n);break;case“keybindings”:switch(n){case“vim”:e.setKeyboardHandler(“ace/keyboard/vim”);break;case“emacs”:e.setKeyboardHandler(“ace/keyboard/emacs”);break;default:e.setKeyboardHandler(null)}break;case“wrap”:case“fontSize”:e.$setOption(t,n);break;default:e.$setOption(t,r(n))}},e.getOption=function(t){switch(t){case“mode”:return e.$getOption(“mode”).substr(9);case“theme”:return e.$getOption(“theme”).substr(10);case“keybindings”:var n=e.getKeyboardHandler();switch(n&&n.$id){case“ace/keyboard/vim”:return“vim”;case“ace/keyboard/emacs”:return“emacs”;default:return“ace”}break;default:return e.$getOption(t)}},e.setOptions(o),e}function s(e,n,i){function o(e,t,n,i){if(n){for(var o in e.push(“<select title=‘”t
“’>”),n)e.push(“<option value=‘”o
“’ ”),i==o&&e.push(“ selected ”),e.push(“>”,n,“</option>”);e.push(“</select>”)}else e.push(“<input type=‘checkbox’ title=‘”,t,“’ ”,i+“”==“true”?“checked=‘true’”:“”,“‘></input>”)}var r=null,s={mode:“Mode:”,wrap:“Soft Wrap:”,theme:“Theme:”,fontSize:“Font Size:”,showGutter:“Display Gutter:”,keybindings:“Keyboard”,showPrintMargin:“Show Print Margin:”,useSoftTabs:“Use Soft Tabs:”,showInvisibles:“Show Invisibles”},l={mode:{text:“Plain”,javascript:“JavaScript”,xml:“XML”,html:“HTML”,css:“CSS”,scss:“SCSS”,python:“Python”,php:“PHP”,java:“Java”,ruby:“Ruby”,c_cpp:“C/C++”,coffee:“CoffeeScript”,json:“json”,perl:“Perl”,clojure:“Clojure”,ocaml:“OCaml”,csharp:“C#”,haxe:“haXe”,svg:“SVG”,textile:“Textile”,groovy:“Groovy”,liquid:“Liquid”,Scala:“Scala”},theme:{clouds:“Clouds”,clouds_midnight:“Clouds Midnight”,cobalt:“Cobalt”,crimson_editor:“Crimson Editor”,dawn:“Dawn”,gob:“Green on Black”,eclipse:“Eclipse”,idle_fingers:“Idle Fingers”,kr_theme:“Kr Theme”,merbivore:“Merbivore”,merbivore_soft:“Merbivore Soft”,mono_industrial:“Mono Industrial”,monokai:“Monokai”,pastel_on_dark:“Pastel On Dark”,solarized_dark:“Solarized Dark”,solarized_light:“Solarized Light”,textmate:“Textmate”,twilight:“Twilight”,vibrant_ink:“Vibrant Ink”},showGutter:r,fontSize:{“10px”:“10px”,“11px”:“11px”,“12px”:“12px”,“14px”:“14px”,“16px”:“16px”},wrap:{off:“Off”,40:“40”,80:“80”,free:“Free”},keybindings:{ace:“ace”,vim:“vim”,emacs:“emacs”},showPrintMargin:r,useSoftTabs:r,showInvisibles:r},c=[];for(var h in c.push(“<table><tr><th>Setting</th><th>Value</th></tr>”),t.defaultOptions)c.push(“<tr><td>”,s,“</td>”),c.push(“<td>”),o(c,h,l,i.getOption(h)),c.push(“</td></tr>”);c.push(“</table>”),e.innerHTML=c.join(“”);for(var u=function(e){var t=e.currentTarget;i.setOption(t.title,t.value)},d=function(e){var t=e.currentTarget;i.setOption(t.title,t.checked)},p=e.getElementsByTagName(“select”),g=0;g<p.length;g++)p.onchange=u;var m=e.getElementsByTagName(“input”);for(g=0;g<m.length;g++)m.onclick=d;var f=document.createElement(“input”);f.type=“button”,f.value=“Hide”,a.addListener(f,“click”,(function(){i.setDisplaySettings(!1)})),e.appendChild(f),e.hideButton=f}var a=e(“../lib/event”),l=e(“../lib/useragent”),c=e(“../ace”);n.exports=t=c;var h=function(e,t,n){var i=e.style;return i||(i=window.getComputedStyle?window.getComputedStyle(e,“”).getPropertyValue(n):e.currentStyle),i&&“auto”!=i&&“intrinsic”!=i||(i=t.style),i};t.transformTextarea=function(e,n){var h,u=e.autofocus||document.activeElement==e,d=o(e,(function(){return h.getValue()}));e.style.display=“none”,d.style.background=“white”;var p=document.createElement(“div”);i(p,{top:“0px”,left:“0px”,right:“0px”,bottom:“0px”,border:“1px solid gray”,position:“absolute”}),d.appendChild(p);var g=document.createElement(“div”);i(g,{position:“absolute”,right:“0px”,bottom:“0px”,cursor:“nw-resize”,border:“solid 9px”,borderColor:“lightblue gray gray ceade6”,zIndex:101});var m=document.createElement(“div”),f={top:“0px”,left:“20%”,right:“0px”,bottom:“0px”,position:“absolute”,padding:“5px”,zIndex:100,color:“white”,display:“none”,overflow:“auto”,fontSize:“14px”,boxShadow:“-5px 2px 3px gray”};l.isOldIE?f.backgroundColor=“#333”:f.backgroundColor=“rgba(0, 0, 0, 0.6)”,i(m,f),d.appendChild(m),n=n||t.defaultOptions;var v=c.edit(p);(h=v.getSession()).setValue(e.value||e.innerHTML),u&&v.focus(),d.appendChild(g),r(v,p,m,c,n),s(m,g,v);var y=“”;return a.addListener(g,“mousemove”,(function(e){var t=this.getBoundingClientRect();e.clientX-t.left+(e.clientY-t.top)<(t.width+t.height)/2?(this.style.cursor=“pointer”,y=“toggle”):(y=“resize”,this.style.cursor=“nw-resize”)})),a.addListener(g,“mousedown”,(function(e){if(e.preventDefault(),“toggle”!=y){d.style.zIndex=“100000”;var t=d.getBoundingClientRect(),n=t.width+t.left-e.clientX,i=t.height+t.top-e.clientY;a.capture(g,(function(e){d.style.width=e.clientX-t.left+n+“px”,d.style.height=e.clientY-t.top+i+“px”,v.resize()}),(function(){}))}else v.setDisplaySettings()})),v},t.defaultOptions={mode:“javascript”,theme:“textmate”,wrap:“off”,fontSize:“12px”,showGutter:“false”,keybindings:“ace”,showPrintMargin:“false”,useSoftTabs:“true”,showInvisibles:“false”}})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/ext/themelist”,,(function(e,t){“use strict”;var n=[,[“Clouds”],[“Crimson Editor”],,[“Dreamweaver”],,[“GitHub”],,[“Solarized Light”],,[“Tomorrow”],,[“Kuroir”],,[“SQL Server”,“sqlserver”,“light”],,[“Ambiance”,“ambiance”,“dark”],,[“Clouds Midnight”,“clouds_midnight”,“dark”],,[“Cobalt”,“cobalt”,“dark”],,[“Green on Black”,“gob”,“dark”],[“idle Fingers”,“idle_fingers”,“dark”],,[“Merbivore”,“merbivore”,“dark”],[“Merbivore Soft”,“merbivore_soft”,“dark”],[“Mono Industrial”,“mono_industrial”,“dark”],,[“Nord Dark”,“nord_dark”,“dark”],[“One Dark”,“one_dark”,“dark”],[“Pastel on dark”,“pastel_on_dark”,“dark”],[“Solarized Dark”,“solarized_dark”,“dark”],,[“Tomorrow Night”,“tomorrow_night”,“dark”],[“Tomorrow Night Blue”,“tomorrow_night_blue”,“dark”],[“Tomorrow Night Bright”,“tomorrow_night_bright”,“dark”],[“Tomorrow Night 80s”,“tomorrow_night_eighties”,“dark”],,[“Vibrant Ink”,“vibrant_ink”,“dark”],[“GitHub Dark”,“github_dark”,“dark”],[“CloudEditor Dark”,“cloud_editor_dark”,“dark”]];t.themesByName={},t.themes=n.map((function(e){var n=e||e.replace(/ /g,“_”).toLowerCase(),i={caption:e,theme:“ace/theme/”+n,isDark:“dark”==e,name:n};return t.themesByName=i,i}))})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)})),ace.define(“ace/ext/whitespace”,,(function(e,t){“use strict”;var n=e(“../lib/lang”);t.$detectIndentation=function(e){function t(e){for(var t=0,i=e;i<n.length;i+=e)t+=n||0;return t}for(var n=[],i=,o=0,r=0,s=Math.min(e.length,1e3),a=0;a<s;a++){var l=e;if(/^s*/.test(l)){if(“t”==l)o++,r=-Number.MAX_VALUE;else{var c=l.match(/^ */)[0].length;if(c&&“t”!=l){var h=c-r;!(h>0)||r%h||c%h||(i=(i||0)+1),n=(n||0)+1}r=c}for(;a<s&&“\”==l;)l=e}}var u=i.reduce((function(e,t){return e+t}),0),d={score:0,length:0},p=0;for(a=1;a<12;a++){var g=t(a);1==a?(p=g,g=n?.9:.8,n.length||(g=0)):g/=p,i&&(g+=i/u),g>d.score&&(d={score:g,length:a})}if(d.score&&d.score>1.4)var m=d.length;return o>p+1?((1==m||p<o/4||d.score<1.8)&&(m=void 0),{ch:“t”,length:m}):p>o+1?{ch:“ ”,length:m}:void 0},t.detectIndentation=function(e){var n=e.getLines(0,1e3),i=t.$detectIndentation(n)||{};return i.ch&&e.setUseSoftTabs(“ ”==i.ch),i.length&&e.setTabSize(i.length),i},t.trimTrailingSpace=function(e,t){var n=e.getDocument(),i=n.getAllLines(),o=t&&t.trimEmpty?-1:0,r=[],s=-1;t&&t.keepCursorPosition&&(e.selection.rangeCount?e.selection.rangeList.ranges.forEach((function(e,t,n){var i=n;i&&i.cursor.row==e.cursor.row||r.push(e.cursor)})):r.push(e.selection.getCursor()),s=0);for(var a=r&&r.row,l=0,c=i.length;l<c;l++){var h=i,u=h.search(/s+$/);l==a&&(u<r.column&&u>o&&(u=r.column),s++,a=r?r.row:-1),u>o&&n.removeInLine(l,u,h.length)}},t.convertIndentation=function(e,t,i){var o=e.getTabString(),r=e.getTabSize();i||(i=r),t||(t=o);for(var s=“t”==t?t:n.stringRepeat(t,i),a=e.doc,l=a.getAllLines(),c={},h={},u=0,d=l.length;u<d;u++){var p=l.match(/^s*/);if(p){var g=e.$getStringScreenWidth(p),m=Math.floor(g/r),f=g%r,v=c||(c=n.stringRepeat(s,m));(v+=h||(h=n.stringRepeat(“ ”,f)))!=p&&(a.removeInLine(u,0,p.length),a.insertInLine({row:u,column:0},v))}}e.setTabSize(i),e.setUseSoftTabs(“ ”==t)},t.$parseStringArg=function(e){var t={};/t/.test(e)?t.ch=“t”:/s/.test(e)&&(t.ch=“ ”);var n=e.match(/d+/);return n&&(t.length=parseInt(n,10)),t},t.$parseArg=function(e){return e?“string”==typeof e?t.$parseStringArg(e):“string”==typeof e.text?t.$parseStringArg(e.text):e:{}},t.commands=[{name:“detectIndentation”,description:“Detect indentation from content”,exec:function(e){t.detectIndentation(e.session)}},{name:“trimTrailingSpace”,description:“Trim trailing whitespace”,exec:function(e,n){t.trimTrailingSpace(e.session,n)}},{name:“convertIndentation”,description:“Convert indentation to …”,exec:function(e,n){var i=t.$parseArg(n);t.convertIndentation(e.session,i.ch,i.length)}},{name:“setIndentation”,description:“Set indentation”,exec:function(e,n){var i=t.$parseArg(n);i.length&&e.session.setTabSize(i.length),i.ch&&e.session.setUseSoftTabs(“ ”==i.ch)}}]})),ace.require(,(function(e){“object”==typeof module&&“object”==typeof exports&&module&&(module.exports=e)}));var GollumTagStart={token:“support.function”,regex:“\[\[]*\]\]”,next:“start”},UMLBlock=,UMLStart={token:“support.function”,regex:“^(?:[ \t]*)\$”,next:“umlblock”},GithubCodeBlock=[{token:“support.function”,regex:“.*”,onMatch:function(e,t,n){var i=n[0],o=n[1],r=/^( {0,3})(~~[~]+|“`)s*$/.exec(e);return r&&r.length>=i&&r.charAt(0)==o?(n.splice(0,3),this.next=n.shift(),this.token):(this.next=“”,this.token)}},{defaultToken:“support.function”}],startCodeBlockMatch=function(e,t,n){var i=new RegExp(this.regex).exec(e);return n.unshift(“githubblock”,[],[i.length,i.charAt(0)],t),this.token},GollumCodeStart={token:“support.function”,regex:“^( {0,3})(“`)[^`]*$”,onMatch:startCodeBlockMatch,next:“githubblock”},MarkdownCodeStart={token:“support.function”,regex:“^( {0,3})(~~[~]+)[^`~]*$”,onMatch:startCodeBlockMatch,next:“githubblock”};ace.define(“GollumRstHighlightRules”,[],(function(e,t){“use strict”;var n=e(“ace/lib/oop”),i=e(“ace/mode/rst_highlight_rules”).RSTHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter((function(e){return!(“githubblock”==e.next)})),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o})),ace.define(“GollumAsciidocHighlightRules”,[],(function(e,t){“use strict”;var n=e(“ace/lib/oop”),i=e(“ace/mode/asciidoc_highlight_rules”).AsciidocHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter((function(e){return!(“githubblock”==e.next)})),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o})),ace.define(“GollumTextileHighlightRules”,[],(function(e,t){“use strict”;var n=e(“ace/lib/oop”),i=e(“ace/mode/textile_highlight_rules”).TextileHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter((function(e){return!(“githubblock”==e.next)})),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o})),ace.define(“GollumTextHighlightRules”,[],(function(e,t){“use strict”;var n=e(“ace/lib/oop”),i=e(“ace/mode/text_highlight_rules”).TextHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter((function(e){return!(“githubblock”==e.next)})),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o})),ace.define(“GollumRdocHighlightRules”,[],(function(e,t){“use strict”;var n=e(“ace/lib/oop”),i=e(“ace/mode/rdoc_highlight_rules”).RDocHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter((function(e){return!(“githubblock”==e.next)})),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o})),ace.define(“GollumMarkdownHighlightRules”,[],(function(e,t){“use strict” ;var n=e(“ace/lib/oop”),i=e(“ace/mode/markdown_highlight_rules”).MarkdownHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter((function(e){return!(“githubblock”==e.next)})),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.$rules.start.unshift(MarkdownCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o})),function(e){var t={asciidoc:{mode:“asciidoc”,highlighter:“GollumAsciidocHighlightRules”},creole:{mode:“text”,highlighter:“GollumTextHighlightRules”},markdown:{mode:“markdown”,highlighter:“GollumMarkdownHighlightRules”},mediawiki:{mode:“text”,highlighter:“GollumTextHighlightRules”},bib:{mode:“latex”},org:{mode:“text”,highlighter:“GollumTextHighlightRules”},rst:{mode:“rst”,highlighter:“GollumRstHighlightRules”},txt:{mode:“text”},pod:{mode:“text”,highlighter:“GollumTextHighlightRules”},rdoc:{mode:“rdoc”,highlighter:“GollumRdocHighlightRules”},textile:{mode:“textile”,highlighter:“GollumTextileHighlightRules”}};e.getEditorMode=function(e){var n=null;if(n=t){var i=n.mode,o=n.highlighter;if(o){var r=new(0,ace.require(“ace/mode/”+i).Mode);return r.HighlightRules=ace.require(o).GollumHighlightRules,r}return“ace/mode/”+i}return null}}(jQuery),function(e){function t(e){return new RegExp(“^*[”+“u0591-u07ffufb1d-ufdfdufe70-ufefc”+“]”).test(e)}function n(e){window.ace_editor.session.$bidiHandler.$isRtl=e,window.ace_editor.session.$bidiHandler.updateBidiMap(),window.ace_editor.renderer.updateFull()}function i(){a&&clearTimeout(a),e(“#gollum-saved-msg”).text(“Saving…”),a=setTimeout((function(){localStorage.setItem(l,window.ace_editor.getSession().getValue()),e(“#gollum-editor-header, gollum-editor-footer, gollum-editor-sidebar”).each((function(e,t){var n=l+t.id.replace(“gollum-editor-”,“_”);localStorage.setItem(n,t.value)})),e(“#gollum-saved-msg”).text(“Saved recovery text”)}),2e3)}function o(e){var t=window.ace_editor;window.localStorage.setItem(“gollum-kbm”,e),“default”==e?t.setKeyboardHandler():“vim”==e||“emacs”==e?t.setKeyboardHandler(“ace/keyboard/”+e):t.setKeyboardHandler(),t.focus()}var r={MarkupType:“markdown”,EditorMode:“code”,NewFile:!1,HasFunctionBar:!0,Debug:!1,NoDefinitionsFor:[]},s={},a=null,l=“gollum_autorecover_”+window.location;e.GollumEditor=function(a){if(s=e.extend(r,a),e(’textarea’).each((function(){var r=e(this),a=r.attr(“data-markup-lang”)?r.attr(“data-markup-lang”):“markdown”,c=e(“<div>”,{position:“absolute”,height:r.height(),class:r.attr(“class”),id:“gollum-editor-body-ace”}).insertAfter®;r.css(“display”,“none”);var h=ace.edit(c,{rtlText:!0});window.ace_editor=h;var u=localStorage.getItem(l);u&&(e(“#gollum-autorecover-button”).click((function(t){h.getSession().setValue(u),.forEach((function(t){var n=localStorage.getItem(l+“_”+t);n&&e(“#gollum-editor-”+t).val(n)})),e(“#gollum-autorecover-msg”).hidden=!0,t.preventDefault()})),e(“#gollum-autorecover-msg”).hidden=!1);var d=window.localStorage.getItem(“gollum-kbm”);d&&(default_keybinding=d),basicSelectSetSelection(e(“#keybinding”),default_keybinding),h.setTheme(“ace/theme/tomorrow”),o(default_keybinding),h.renderer.setShowGutter(!1),h.getSession().setUseWrapMode(!0),h.getSession().setValue(r.val()),h.getSession().setMode(e.getEditorMode(a)),h.getSession().on(“change”,(function(){r.val(h.getSession().getValue()),i()})),e(“#gollum-editor-header, gollum-editor-footer, gollum-editor-sidebar”).on(“change keyup paste”,i),t(h.getSession().getLine(0))&&n(!0),h.commands.addCommand({name:“showKeyboardShortcuts”,bindKey:{win:“Ctrl-Alt-h”,mac:“Command-Alt-h”},exec:function(e){ace.config.loadModule(“ace/ext/keybinding_menu”,(function(t){t.init(e),e.showKeyboardShortcuts()}))}}),s.commands&&e.each(s.commands,(function(e,t){h.commands.addCommand(t)}))})),e(“#gollum-editor-body-ace”).resize((function(){window.ace_editor.resize()})),e(“#wiki_format”).on(“change”,(function(t,n){e(“#format”).attr(“value”,n);var i=n,o=window.ace_editor;window.ace_editor.getSession().setMode(e.getEditorMode(i)),p.updateCommitMessage(i),o.focus()})),e(“#keybinding”).on(“change”,(function(e,t){o(t)})),e(“#gollum-editor-submit, gollum-editor-cancel”).click((function(){var e=“gollum_autorecover_”+window.location;localStorage.removeItem(e),.forEach((function(t){localStorage.removeItem(e+“_”+t)}))})),c(“GollumEditor loading”),u.baseEditorMarkup()){if(u.titleDisplayed()&&e(“#gollum-editor-title-field”).addClass(“active”),u.editSummaryMarkup()&&(e.GollumEditor.Placeholder.add(e(“#gollum-editor-edit-summary input”)),e(‘#gollum-editor form’).submit((function(t){t.preventDefault(),c(“submitting”),e(this).unbind(“submit”),e(this).submit()}))),u.collapsibleInputs()&&e(“#gollum-editor .collapsed button.collapsable, gollum-editor .expanded button.collapsable”).click((function(t){t.preventDefault(),e(this).parent().toggleClass(“expanded”),e(this).parent().toggleClass(“collapsed”),buttons=e(this).parent().children(“button”),hidden_button=buttons.filter(“:hidden”),shown_button=buttons.not(“:hidden”),hidden_button.hidden=!1,shown_button.hidden=!0})),u.previewButton())e(“#gollum-editor gollum-editor-preview”).click((function(){var t=e(“#gollum-editor form”).attr(“action”),n=e(e(“#gollum-editor form”).get(0));n.attr(“action”,this.href||routePath(“preview”)),n.attr(“target”,“_blank”);var i=window.location.pathname.split(“/”);return n.attr(“page”,decodeURIComponent(i)||“”),n.submit(),n.attr(“action”,t),n.removeAttr(“target”),!1}));if(u.functionBar()){var d=e(“#gollum-editor-body”).attr(“data-markup-lang”);d&&(s.MarkupType=d),h.setActiveLanguage(s.MarkupType),u.formatSelector()&&p.init(e(“#wiki_format”)),u.dir()&&e(“#function-text-direction”).click((function(e){e.preventDefault(),n(!window.ace_editor.session.$bidiHandler.$isRtl)})),u.help()&&(e(“#gollum-editor-help”).hide(),e(“#gollum-editor-help”).removeClass(“jaws”))}if(s.section&&e.markupSupportsEditableSections(s.MarkupType)){var g=e.findSection(s.section,h.getDefinitionFor(“gollum-helpers”));g&&(window.ace_editor.gotoLine(g+1,0,animate=!1),window.ace_editor.scrollToLine(g,center=!1,animate=!1),window.ace_editor.focus())}if(u.dragDropUpload()){var m=e(“#gollum-editor-body-ace”),f=e(“#gollum-editor-body-ace”);f.ondragover=function(){return m.addClass(“dragging”),!1},f.ondragleave=function(){return m.removeClass(“dragging”),!1},f.ondrop=function(t){c(“dropped file”),t.preventDefault(),m.removeClass(“dragging”).addClass(“uploading”);var n=t.dataTransfer.files,i=new FormData;if(i.append(“file”,n),“[object File]”==Object.prototype.toString.call(n))return e.ajax({url:routePath(“upload_file”),data:i,cache:!1,contentType:!1,processData:!1,type:“POST”,success:function(){m.removeClass(“uploading”);var e=n.name.split(“.”).pop().toLowerCase(),t=;if(uploadDest=uploadDest.replace(/%20/g,“ ”),t.indexOf(e)>-1)var i=“[[/”uploadDest
“/”n.name
“]]”;else i=“[[”n.name
“|/”uploadDest
“/”n.name
“]]”;window.ace_editor.insert(i)},error:function(e,t,n){409==e.status?alert(“This file already exists.”):alert(“Error uploading file: ”t
“ ”+n),m.removeClass(“uploading”)}}),!1;m.removeClass(“uploading”)}}}},e.GollumEditor.defineLanguage=function(e,t){“object”==typeof t?h.define(e,t):c(“GollumEditor.defineLanguage: definition for ”e
“ is not an object”)};var c=function(e){s.Debug&&“undefined”!=typeof console&&console.log(e)},h={_ACTIVE_LANG:“”,_LOADED_LANGS:[],_LANG:{},define:function(t,n){if(h._ACTIVE_LANG=t,h._LOADED_LANGS.push(t),“object”==typeof e.GollumEditor.WikiLanguage){var i={};e.extend(i,e.GollumEditor.WikiLanguage,n),h._LANG=i}else h._LANG=n},getActiveLanguage:function(){return h._ACTIVE_LANG},setActiveLanguage:function(e){function t(e){return function(){var t=h.getDefinitionFor(e);“object”==typeof t&&d.executeAction(t)}}null!=h._ACTIVE_LANG&&h._ACTIVE_LANG.length<=0&&p.updateCommitMessage(e),h.getHookFunctionFor(“deactivate”)&&h.getHookFunctionFor(“deactivate”)(),h.isLoadedFor(e)?(h._ACTIVE_LANG=e,d.refresh(),h.getHookFunctionFor(“activate”)&&h.getHookFunctionFor(“activate”)()):(h._ACTIVE_LANG=null,u.functionBar()&&d.refresh(),h.isValid()&&u.formatSelector()&&p.updateSelected(),h.getHookFunctionFor(“activate”)&&h.getHookFunctionFor(“activate”)()),window.ace_editor.commands.addCommand({name:“header-1”,bindKey:{win:“Ctrl-1”,mac:“Command-1”},exec:t(“function-h1”)}),window.ace_editor.commands.addCommand({name:“header-2”,bindKey:{win:“Ctrl-2”,mac:“Command-2”},exec:t(“function-h2”)}),window.ace_editor.commands.addCommand({name:“header-3”,bindKey:{win:“Ctrl-3”,mac:“Command-3”},exec:t(“function-h3”)}),window.ace_editor.commands.addCommand({name:“bold-text”,bindKey:{win:“Ctrl-b”,mac:“Command-b”},exec:t(“function-bold”)}),window.ace_editor.commands.addCommand({name:“italic-text”,bindKey:{win:“Ctrl-i”,mac:“Command-i”},exec:t(“function-italic”)})},getHookFunctionFor:function(e,t){return t||(t=h._ACTIVE_LANG),h.isLoadedFor(t)&&h._LANG[e]&&“function”==typeof h._LANG[e]?h._LANG[e]:null},getDefinitionFor:function(e,t){return t||(t=h._ACTIVE_LANG),h.isLoadedFor(t)&&h._LANG[e]&&“object”==typeof h._LANG[e]?h._LANG[e]:null},isLoadedFor:function(e){if(0===h._LOADED_LANGS.length)return!1;for(var t=0;t<h._LOADED_LANGS.length;t++)if(h._LOADED_LANGS==e)return!0;return!1},isValid:function(){return h._ACTIVE_LANG&&“object”==typeof h._LANG}},u={baseEditorMarkup:function(){return e(“#gollum-editor”).length&&e(“#gollum-editor-body”).length},collapsibleInputs:function(){return e(“#gollum-editor .collapsed, gollum-editor .expanded”).length},formatSelector:function(){return e(“#wiki_format”).length},functionBar:function(){return s.HasFunctionBar&&e(“#gollum-editor-function-bar”).length},ff4Environment:function(){return new RegExp(/Firefox/4.0b/).test(navigator.userAgent)},editSummaryMarkup:function(){return e(“input#gollum-editor-message-field”).length>0},help:function(){return e(“#gollum-editor gollum-editor-help”).length&&e(“#gollum-editor function-help”).length},dir:function(){return e(“#gollum-editor function-text-direction”).length},previewButton:function(){return e(“#gollum-editor gollum-editor-preview”).length},titleDisplayed:function(){return s.NewFile},dragDropUpload:function(){return e(“#gollum-editor.uploads-allowed”).length}},d={isActive:!1,activate:function(){c(“Activating function bar”),e(“#gollum-editor-function-bar button.function-button”).each((function(){h.getDefinitionFor(e(this).attr(“id”))?(e(this).click(d.evtFunctionButtonClick),e(this).attr(“disabled”,!1)):.includes(e(this).attr(“id”))||e(this).attr(“disabled”,!0)})),e(“#gollum-editor-function-bar”).addClass(“active”),d.isActive=!0},deactivate:function(){e(“#gollum-editor-function-bar button.function-button”).not(“#function-text-direction”).unbind(“click”),e(“#gollum-editor-function-bar”).removeClass(“active”),d.isActive=!1},evtFunctionButtonClick:function(t){t.preventDefault();var n=h.getDefinitionFor(e(this).attr(“id”));“object”==typeof n&&d.executeAction(n)},executeAction:function(t){var n=window.ace_editor,i=n.getValue(),o=!1,r=!1,s=n.getSelectionRange(),a=n.getSelectedText(),l=a.length,h=!1;if(“”==a)if(t.whole_line&&1==t.whole_line){h=!0;var u=s.start.row;a=n.session.getLine(u),s=new(0,ace.require(“ace/range”).Range)(u,0,u,a.length)}else t.break_line&&1==t.break_line&&(o=!0,r=!0);else t.break_line&&1==t.break_line&&(o=!0,r=!0);var d=a;if(t.exec&&“function”==typeof t.exec)t.exec(i,a,e(“#gollum-editor-body”),s);else{var p=/(+)/gi;if(t.search&&“object”==typeof t.search&&(c(“Replacing search Regex”),p=null,p=new RegExp(t.search),c(p)),c(‘repText is “’d
‘”’),t.replace&&“string”==typeof t.replace){c(“Running replacement - using ”+t.replace);var g=t.replace;d=(d=(d=escape(d)).replace(p,g)).replace(/$/g,“”),“”===(d=unescape(d))&&(c(“Search string is empty”),d=g.replace(/$/g,“”));var m=void 0;if(0==h){repPosition=g.indexOf(“$1”),-1==repPosition&&(repPosition=Math.floor(g.length/2));var f=g.substring(0,repPosition),v=f.split(“n”).length-1,y=repPosition;v>0&&(y-=f.lastIndexOf(“n”)),m=}}t.append&&“string”==typeof t.append&&(d+=t.append),d&&e.GollumEditor.replaceSelection(d,o,r,s,m)}},isShown:function(){return e(“#gollum-editor-function-bar”).is(“:visible”)},refresh:function(){u.functionBar()&&(c(“Refreshing function bar”),h.isValid()?(d.deactivate(),d.activate(),g&&g.setActiveHelp(h.getActiveLanguage())):(c(“Language definition is invalid.”),d.isShown()&&d.deactivate(),g.isShown()&&g.hide()))}},p={$_SELECTOR:null,evtChangeFormat:function(e,t){var n=t;p.updateCommitMessage(n),h.setActiveLanguage(n)},updateCommitMessage:function(e){var t=document.getElementById(“gollum-editor-message-field”),n=t.value;/^(?:created|updated)/i.test(n)&&(t.value=n.replace(/(*)$/,“(”e
“)”))},init:function(e){c(“Initializing format selector”),p.$_SELECTOR&&“object”==typeof p.$_SELECTOR&&p.$_SELECTOR.unbind(“change”),p.$_SELECTOR=e,p.updateSelected(),p.$_SELECTOR.change(p.evtChangeFormat)},updateSelected:function(){var e=h.getActiveLanguage();p.$_SELECTOR.val(e)}},g={_ACTIVE_HELP:“”,_LOADED_HELP_LANGS:[],_HELP:{},define:function(t,n){g.isValidHelpFormat(n)?(c(“help is a valid format”),g._ACTIVE_HELP_LANG=t,g._LOADED_HELP_LANGS.push(t),g._HELP=n,e(“#function-help”).length&&(e(“#function-help”).attr(“disabled”)&&e(“#function-help”).attr(“disabled”,!1),e(“#function-help”).unbind(“click”),e(“#function-help”).click(g.evtHelpButtonClick),g.generateHelpMenuFor(t),e(“#gollum-editor-help”).length&&void 0!==e(“#gollum-editor-help”).attr(“data-autodisplay”)&&“true”===e(“#gollum-editor-help”).attr(“data-autodisplay”)&&g.show())):e(“#function-help”).length&&e(“#function-help”).attr(“disabled”,!0)},generateHelpMenuFor:function(t){if(!g._HELP)return c(“Help is not defined for ”+t.toString()),!1;var n=g._HELP;e(“#gollum-editor-help-parent”).html(“”),e(“#gollum-editor-help-list”).html(“”),e(“#gollum-editor-help-content”).html(“”);for(var i=0;i<n.length&&“object”==typeof n;i++){var o=e(‘<li><a href=“#” rel=“’i
‘”>’n[i].menuName
“</a></li>”);e(“#gollum-editor-help-parent”).append(o),0===i&&o.children(“a”).addClass(“selected”),o.children(“a”).click(g.evtParentMenuClick)}g.generateSubMenu(n,0),e(e(“#gollum-editor-help-list li a”).get(0)).click()},generateSubMenu:function(t,n){e(“#gollum-editor-help-list”).html(“”),e(“#gollum-editor-help-content”).html(“”);for(var i=0;i<t.content.length&&“object”==typeof t.content;i++){var o=e(‘<li><a href=“#” rel=“’n
”:“i
‘”>’t.content[i].menuName
“</a></li>”);e(“#gollum-editor-help-list”).append(o),o.children(“a”).click(g.evtSubMenuClick)}},hide:function(){e(“#gollum-editor-help”).animate({opacity:0},200,(function(){e(“#gollum-editor-help”).animate({height:“hide”},200)}))},show:function(){e(“#gollum-editor-help”).animate({height:“show”},200,(function(){e(“#gollum-editor-help”).animate({opacity:1},300)}))},showHelpFor:function(t,n){var i=g._HELP[t].content.data;e(“#gollum-editor-help-content”).html(i)},isLoadedFor:function(e){for(var t=0;t<g._LOADED_HELP_LANGS.length;t++)if(e==g._LOADED_HELP_LANGS)return!0;return!1},isShown:function(){return e(“#gollum-editor-help”).is(“:visible”)},isValidHelpFormat:function(e){return“object”==typeof e&&e.length&&“string”==typeof e.menuName&&“object”==typeof e.content&&e.content.length},setActiveHelp:function(t){g.isLoadedFor(t)?(g._ACTIVE_HELP_LANG=t,e(“#function-help”).length&&(e(“#function-help”).attr(“disabled”)&&e(“#function-help”).attr(“disabled”,!1),e(“#function-help”).unbind(“click”),e(“#function-help”).click(g.evtHelpButtonClick),g.generateHelpMenuFor(t))):(e(“#function-help”).length&&e(“#function-help”).attr(“disabled”,!0),g.isShown()&&g.hide())},evtHelpButtonClick:function(t){t.preventDefault(),g.isShown()?(e(“#gollum-editor-help”).length&&“undefined”!==e(“#gollum-editor-help”).attr(“data-autodisplay”)&&“true”===e(“#gollum-editor-help”).attr(“data-autodisplay”)&&(e.post(“/wiki/help?_method=delete”),e(“#gollum-editor-help”).attr(“data-autodisplay”,“”)),g.hide()):g.show()},evtParentMenuClick:function(t){if(t.preventDefault(),!e(this).hasClass(“selected”)){var n=e(this).attr(“rel”),i=g._HELP[n];e(“#gollum-editor-help-parent li a”).removeClass(“selected”),e(this).addClass(“selected”),g.generateSubMenu(i,n),e(e(“#gollum-editor-help-list li a”).get(0)).click()}},evtSubMenuClick:function(t){if(t.preventDefault(),!e(this).hasClass(“selected”)){var n=e(this).attr(“rel”).split(“:”);e(“#gollum-editor-help-list li a”).removeClass(“selected”),e(this).addClass(“selected”),g.showHelpFor(n,n)}}};e.GollumEditor.defineHelp=g.define,e.GollumEditor.Dialog=e.GollumDialog,e.GollumEditor.replaceSelection=function(e,t,n,i,o){var r=window.ace_editor,s=0;if(null==i)i=r.selection.getRange();if(1==t){var a=r.session.doc.getLine(i.start.row-1);i.start.column>0?(e=“nn”+e,s=2):“”!=a&&(e=“n”+e,s=1)}if(1==n){var l=r.session.doc.getLine(i.end.row+1);i.end.column<r.session.doc.getLine(i.end.row).length?e+=“nn”:“”!=l&&(e+=“n”)}r.session.replace(i,e),null!=o&&(totalVerticalOffset=o+s+i.start.row,totalHorizontalOffset=o+i.start.column,r.navigateTo(totalVerticalOffset,totalHorizontalOffset)),r.focus()},e.GollumEditor.Placeholder=e.GollumPlaceholder}(jQuery),function(e){e.constructLanguageDefinition=function(t){var n=e.extend(!0,{},e.DefaultLang,t);return Object.keys(t).forEach((function(e){void 0===t&&delete n})),n};var t=function(t,n,i){e.GollumEditor.Dialog.init({title:t,fields:n,OK:function(t){e.GollumEditor.replaceSelection(i(t))}})};e.DefaultLang={“function-bold”:{search:/(+)([ns]*)/g,replace:“**$1**$2”},“function-italic”:{search:/(+)([ns]*)/g,replace:“_$1_$2”},“function-code”:{search:/(+)([ns]*)/g,replace:“‘$1`$2”},“function-hr”:{append:“n***n”},“function-ul”:{exec:function(t,n){for(var i=“”,o=n.split(“n”),r=0;r<o.length;r++)i+=“* ”o[r]
“n”;i=i.substring(0,i.length-1),e.GollumEditor.replaceSelection(i,!0,!0)}},“function-ol”:{line:function(e,t){return e.toString()+“. ”t
“n”},exec:function(t,n){for(var i=“”,o=n.split(“n”),r=0;r<o.length;r++)i+=this.line(r+1,o);i=i.substring(0,i.length-1),e.GollumEditor.replaceSelection(i,!0,!0)}},“function-blockquote”:{search:/(.+)(?)/g,replace:“> $1$2”,break_line:!0},“function-h1”:{search:/(.+)(?)/g,replace:“# $1$2”,break_line:!0,whole_line:!0},“function-h2”:{search:/(.+)(?)/g,replace:“## $1$2”,break_line:!0,whole_line:!0},“function-h3”:{search:/(.+)(?)/g,replace:“### $1$2”,break_line:!0,whole_line:!0},“function-link”:{replace:function(e){var t=“”;return e.text&&e.href&&(t=“[”e.text
“](”e.href
“)”),t},exec:function(e,n){t(“Insert Link”,[{id:“text”,name:“Link Text”,type:“text”,defaultValue:n},{id:“href”,name:“URL”,type:“text”}],this.replace)}},“function-image”:{replace:function(e){var t=“”;return e.url&&e.alt&&(t=“”),t},exec:function(e,n){t(“Insert Image”,[{id:“url”,name:“Image Url”,type:“text”,defaultValue:n},{id:“alt”,name:“Alt Text”,type:“text”}],this.replace)}},“function-critic-accept”:{exec:function(t,n){var i=n.replace(/{++(.*?)++[ t]*([(.*?)])?[ t]*}/gm,“$1”).replace(/{–(.*?)–[ t]*([(.*?)])?[ t]*}/gm,“”).replace(/{~~(.*?)~>(.*?)~~}/gm,“$2”).replace(/{==(.*?)[ t]*([(.*?)])?[ t]*==}{>>(.*?)<<}/gm,“$1”).replace(/{>>(.*?)<<}/gm,“”);e.GollumEditor.replaceSelection(i)}},“function-critic-reject”:{exec:function(t,n){var i=n.replace(/{++(.*?)++[ t]*([(.*?)])?[ t]*}/gm,“”).replace(/{–(.*?)–[ t]*([(.*?)])?[ t]*}/gm,“$1”).replace(/{~~(.*?)~>(.*?)~~}/gm,“$1”).replace(/{==(.*?)[ t]*([(.*?)])?[ t]*==}{>>(.*?)<<}/gm,“$1”).replace(/{>>(.*?)<<}/gm,“”);e.GollumEditor.replaceSelection(i)}}}}(jQuery),function(e){var t={“function-bold”:{replace:“*$1*$2”},“function-hr”:void 0,“function-blockquote”:{replace:“—-n$1$2n—-”},“function-h1”:{replace:“= $1$2”},“function-h2”:{replace:“== $1$2”},“function-h3”:{replace:“=== $1$2”},“function-link”:{replace:function(e){var t=“”;return e.text&&e.href&&(t=e.href+“[”e.text
“]”),t}},“function-image”:{replace:function(e){var t=“”;return e.url&&e.alt&&(t=“image::”e.url
“[”e.alt
“]”),t}}};e.GollumEditor.defineLanguage(“asciidoc”,e.constructLanguageDefinition(t));var n=[{menuName:“Text Formatting”,content:[{menuName:“Headers”,data:“<p>AsciiDoc headers can be written in two ways: with differing underlines or with different indentation using =
(equals sign). AsciiDoc supports headings 1-4. The editor will automatically use the =
notation. To create a level one header, prefix your line with one =
. Level two headers are created with ==
and so on.</p>”},{menuName:“Bold / Italic”,data:“<p>To display text as <strong>bold</strong>, wrap the text in *
(asterisks). To display text as italic, wrap the text in _
(underscores). To create monospace
text, wrap the text in `
(backtick).”},{menuName:“Scripts”,data:“<p>Superscript and subscript is created the same way as other inline formats. To create superscript text, wrap your text in ^
(carats). To create subscript text, wrap your text in ~
(tildes).</p>”},{menuName:“Special Characters”,data:“<p>AsciiDoc will automatically convert textual representations of commonly-used special characters. For example, (R)
becomes ®, (C)
becomes © and (TM)
becomes ™.</p>”}]},{menuName:“Blocks”,content:[{menuName:“Paragraphs”,data:“<p>AsciiDoc allows paragraphs to have optional titles or icons to denote special sections. To make a normal paragraph, simply add a line between blocks and a new paragraph will start. If you want to title your paragraphs, adda line prefixed by .
(full stop). An example paragraph with optional title is displayed below:.Optional Title<br><br>This is my paragraph. It is two sentences long.
</p>”},{menuName:“Source Blocks”,data:“<p>To create source blocks (long blocks of code), follow the same syntax as above but with an extra line denoting the inline source and lines of four dashes (----
) delimiting the source block.. An example of Python source is below:.python.py<br>[source,python]<br>----<br># i just wrote a comment in python<br># and maybe one more<br>----
</p>”},{menuName:“Comment Blocks”,data:“<p>Comment blocks are useful if you want to keep notes for yourself inline but do not want them displayed to the public. To create a comment block, simply wrap the paragraph in dividers with four slashes (////
). An example comment block is below:////<br>My comment block is here now<br><br>It can be multiple paragraphs. Really.<br>////</p>"},{menuName:"Quote Blocks",data:"<p>Quote blocks work much like comment blocks — simply create dividers using four underscores (<code>__
) around your quote. An example quote block is displayed below:__<br>This is my quote block. Quote something nice here, otherwise there is no point in quoting.<br>__
</p>”}]},{menuName:“Macros”,content:[{menuName:“Links”,data:’<p>To create links to external pages, you can simply write the URI
if you want the URI
to link to itself. (i.e., http://github.com/
will automatically be parsed to <a href=“javascript:void(0);”>github.com/</a>. If you want different text to be displayed, simply append it to the end of the URI
in between [
(brackets.) For example, http://github.com/[GitHub]
will be parsed as <a href=“javascript:void(0);”>GitHub</a>, with the URI
pointing to http://github.com
.</p>‘},{menuName:“Images”,data:“<p>Images in AsciiDoc work much like hyperlinks, but image URLs are prefixed with image:
. For example, to link to an image at images/icons/home.png
, write image:images/icons/home.png
. Alt text can be added by appending the text to the URI
in [
(brackets).</p>”}]}];e.GollumEditor.defineHelp(“asciidoc”,n)}(jQuery),jQuery.GollumEditor.defineLanguage(“bib”,{}),function(e){var t={“function-italic”:{replace:“//$1//$2”},“function-code”:{replace:“{{{$1}}}$2”},“function-hr”:{append:“nn—-nn”},“function-blockquote”:void 0,“function-ol”:{line:function(e,t){return“# ”t
“n”}},“function-h1”:{replace:“== $1$2”},“function-h2”:{replace:“=== $1$2”},“function-h3”:{replace:“==== $1$2”},“function-link”:{replace:function(e){var t=“”;return e.text&&e.href&&(t=“[[”e.href
“|”e.text
“]]”),t}},“function-image”:{replace:function(e){var t=“”;return e.url&&e.alt&&(t=“{{”+e.url,“”!=e.alt&&(t+=“|”+e.alt),t+=“}}”),t}}};e.GollumEditor.defineLanguage(“creole”,e.constructLanguageDefinition(t))}(jQuery),function(e){var t={“gollum-helpers”:{“find-header-line”:function(e,t){if(t.match(/(^+$)/)||t.match(/(^+$)/)){var n=e-1,i=window.ace_editor.getSession().getLine(n);return n>=0&&!/^s+$/.test(i)?:null}return null}}};e.GollumEditor.defineLanguage(“markdown”,e.constructLanguageDefinition(t));var n=[{menuName:“Block Elements”,content:[{menuName:“Paragraphs & Breaks”,data:“<p>To create a paragraph, simply create a block of text that is not separated by one or more blank lines. Blocks of text separated by one or more blank lines will be parsed as paragraphs.</p><p>If you want to create a line break, end a line with two or more spaces, then hit Return/Enter.</p>”},{menuName:“Headers”,data:“<p>Markdown supports two header formats. The wiki editor uses the “atx’-style headers. Simply prefix your header text with the number of #
characters to specify heading depth. For example: # Header 1
, ## Header 2
and ### Header 3
will be progressively smaller headers. You may end your headers with any number of hashes.</p>”},{menuName:“Blockquotes”,data:“<p>Markdown creates blockquotes email-style by prefixing each line with the >
. This looks best if you decide to hard-wrap text and prefix each line with a >
character, but Markdown supports just putting >
before your paragraph.</p>”},{menuName:“Lists”,data:“<p>Markdown supports both ordered and unordered lists. To create an ordered list, simply prefix each line with a number (any number will do — this is why the editor only uses one number.) To create an unordered list, you can prefix each line with *
, +
or -
.</p> List items can contain multiple paragraphs, however each paragraph must be indented by at least 4 spaces or a tab.”},{menuName:“Code Blocks”,data:“<p>Markdown wraps code blocks in pre-formatted tags to preserve indentation in your code blocks. To create a code block, indent the entire block by at least 4 spaces or one tab. Markdown will strip the extra indentation you’ve added to the code block.</p>”},{menuName:“Horizontal Rules”,data:“Horizontal rules are created by placing three or more hyphens, asterisks or underscores on a line by themselves. Spaces are allowed between the hyphens, asterisks or underscores.”}]},{menuName:“Span Elements”,content:[{menuName:“Links”,data:“<p>Markdown has two types of links: <strong>inline</strong> and <strong>reference</strong>. For both types of links, the text you want to display to the user is placed in square brackets. For example, if you want your link to display the text “GitHub”, you write [GitHub]
.</p><p>To create an inline link, create a set of parentheses immediately after the brackets and write your URL within the parentheses. (e.g., [GitHub](http://github.com/)
). Relative paths are allowed in inline links.</p><p>To create a reference link, use two sets of square brackets. [my internal link][internal-ref]
will link to the internal reference internal-ref
.</p>”},{menuName:“Emphasis”,data:“<p>Asterisks (*
) and underscores (_
) are treated as emphasis and are wrapped with an <em>
tag, which usually displays as italics in most browsers. Double asterisks (**
) or double underscores (__
) are treated as bold using the <strong>
tag. To create italic or bold text, simply wrap your words in single/double asterisks/underscores. For example, **My double emphasis text**
becomes <strong>My double emphasis text</strong>, and *My single emphasis text*
becomes My single emphasis text.</p>”},{menuName:“Code”,data:“<p>To create inline spans of code, simply wrap the code in backticks (`
). Markdown will turn `myFunction`
into myFunction
.</p>”},{menuName:“Images”,data:“<p>Markdown image syntax looks a lot like the syntax for links; it is essentially the same syntax preceded by an exclamation point (!
). For example, if you want to link to an image at http://github.com/unicorn.png
with the alternate text My Unicorn
, you would write 
.</p>”}]},{menuName:“Miscellaneous”,content:[{menuName:“Automatic Links”,data:’<p>If you want to create a link that displays the actual URL, markdown allows you to quickly wrap the URL in <
and >
to do so. For example, the link <a href=“javascript:void(0);”>github.com/</a> is easily produced by writing <http://github.com/>
.</p>‘},{menuName:“Escaping”,data:“<p>If you want to use a special Markdown character in your document (such as displaying literal asterisks), you can escape the character with the backslash (\
). Markdown will ignore the character directly after a backslash.”},{menuName:“Emoji”,data:’<p>Gollum uses <a href=“joypixels.com/emoji/v4” target=“_blank”>JoyPixels 4</a> for its emoji. To include one, wrap the emoji name in colons and use underscores instead of spaces (e.g. :heart: or :point_up:).</p>‘}]}];e.GollumEditor.defineHelp(“markdown”,n)}(jQuery),function(e){var t={“function-bold”:{replace:“”’$1”‘$2”},“function-italic”:{replace:“”$1”$2”},“function-hr”:{append:“n—n”},“function-code”:{replace:“$1
$2”},“function-ol”:{function(e,t){return“# ”t
“n”}},“function-blockquote”:{replace:“<blockquote>n$1$2n</blockquote>”},“function-h1”:{replace:“= $1$2 =”},“function-h2”:{replace:“== $1$2 ==”},“function-h3”:{replace:“=== $1$2 ===”},“function-link”:{replace:function(e){var t=“”;return e.text&&e.href&&(t=“[”e.href
“ | ”e.text
“]”),t}}};e.GollumEditor.defineLanguage(“mediawiki”,e.constructLanguageDefinition(t));var n=[{menuName:“Text Formatting”,content:[{menuName:“Headers”,data:“<p>MediaWiki headers are written with different indentation using = Title =
(equals sign). MediaWiki supports headings 1-6.</p>”},{menuName:“Bold / Italic”,data:“<p>To display text as <strong>bold</strong>, wrap the text in '''
. To display text as italic, wrap the text in ''
. To create monospace
text, wrap the text in <code></code>
.”},{menuName:“Special Characters”,data:“<p>Use HTML special characters, e.g. ©
or €
</p>”}]},{menuName:“Blocks”,content:[{menuName:“Paragraphs”,data:“<p>MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <br />
.</p>”},{menuName:“Tables”,
- data:‘<p>Tables may be authored in wiki pages using either XHTML table elements directly, or using wikicode formatting to define the table. Wikitable syntax overview: <table cellpadding=“5” cellspacing=“0” border=“1”><tr><td><pre>
{|
</pre></td><td>table start</td></tr><tr><td><pre>|+
</pre></td><td>table caption, optional; only between table start and first table row</td></tr><tr><td><pre>|-
</pre></td><td>table row, optional on first row – wiki engine assumes the first row</td></tr><tr><td><pre>!
</pre></td><td>table header cell, optional. Consecutive table header cells may be added on same line separated by double marks (!!
) or start on new lines, each with its own single mark (!
).</td></tr><tr><td><pre>|
</pre></td><td>table data cell, required! Consecutive table data cells may be added on same line separated by double marks (||
) or start on new lines, each with its own single mark (|
).</td></tr><tr><td><pre>|}
</pre></td><td>table end</td></tr></table></p>’}]},{menuName:“Macros”,content:[{menuName:“Links”,data:“<p>To create links to external pages, use single brackets, e.g.[https://mediawiki.org MediaWiki]
. Internal links use double brackets:[[Main Page]]
. To define the link text, use[[Main Page | this is displayed]]
(note: the order of the URL/Page Name and the link text is reversed compared toGollum
pages in other markups).</p>”},{menuName:“Images”,data:“<p>UseGollum
internal links, e.g.[[sauron.jpg]]<code>, to insert images."}]}];e.GollumEditor.defineHelp("mediawiki",n)}(jQuery),function(e){var t={"function-bold":{replace:"*$1*$2"},"function-italic":{replace:"/$1/$2"},"function-code":{replace:"=$1=$2"},"function-hr":void 0,"function-blockquote":{replace:"#+BEGIN_QUOTE\n$1$2\n#+END_QUOTE"},"function-h1":{replace:"* $1$2"},"function-h2":{replace:"** $1$2"},"function-h3":{replace:"*** $1$2"},"function-link":{replace:function(e){var t="";return e.text&&e.href?t="[["e.href"]["e.text"]]":e.href&&(t="[["e.href"]]"),t}},"function-image":{replace:function(e){var t="";return e.url&&(t="[["e.url"]]"),t}}};e.GollumEditor.defineLanguage("org",e.constructLanguageDefinition(t));var n=[{menuName:"Block Elements",content:[{menuName:"Paragraphs & Breaks",data:"<p>To create a paragraph, simply create a block of text that is not separated by one or more blank lines. Blocks of text separated by one or more blank lines will be parsed as paragraphs.</p>"},{menuName:"Headers",data:"<p>Simply prefix your header text with the number of <code>*
characters to specify heading depth. For example:* Header 1
,** Header 2
and*** Header 3
will be progressively smaller headers.</p>”},{menuName:“Blockquotes”,data:“<p>To create a blockquote, simple embed the text between#+BEGIN_QUOTE
and#+END_QUOTE
. An example quote block is displayed below:#+BEGIN_QUOTE<br>This is my quote block. Quote something nice here, otherwise there is no point in quoting.<br>#+END_QUOTE
</p>”},{menuName:“Lists”,data:“<p>Org-mode supports both ordered and unordered lists. To create an ordered list, simply prefix each line with a number (any number will do — this is why the editor only uses one number.) To create an unordered list, you can prefix each line with+
or-
.</p>”},{menuName:“Code Blocks”,data:“<p>Code Blocks are similar to blockquote, except that#+BEGIN_EXAMPLE
and#+END_EXAMPLE
are used.</p>”},{menuName:“Tables”,data:“<p>Org-mode supports simple tables (tables with equal number of cells in each row). To create a simple table, just separate the contents of each cell with a|
character. For example,|one|two|three|<br>|four|five|six|
will appear as a table with two rows and three columns. Additionally,|one|two|three|<br>|-----------|<br>|four|five|six|
will also appear as a table, but the first row will be interpreted as a header row and the<th>
tag will be used to render it. </p>”}]},{menuName:“Span Elements”,content:[{menuName:“Links”,data:‘<p>To create links to external pages, you need to enclose theURI
in double square brackets. (i.e.,[[http://github.com/]]
will automatically be parsed to <a href=“javascript:void(0);”>github.com/</a>)If you want to add text, to be displayed to the user, you write theURI
and the text next to each other, both enclosed in square brackets and both of them together enclosed in another pair of square brackets. For example, if you want your link to display the text “GitHub”, you write[[http://github.com][GitHub]]
.</p>’},{menuName:“Emphasis”,data:“<p>Forward slashes (/
) are treated as emphasis and are wrapped with an<i>
tag. Asterisks (*
) are treated as bold using the<b>
tag.</p>”},{menuName:“Code”,data:“<p>To create inline spans of code, simply wrap the code in equal signs (=
). Orgmode will turn=myFunction=
intomyFunction
.</p>”},{menuName:“Images”,data:“<p>Org-mode image syntax is exactly same as the syntax that you would use for aURI
to link to itself. The imageURI
is enclosed in double square brackets. Alt text on images is not currently supported by Gollum’s Org-mode parser.</p>”}]}];e.GollumEditor.defineHelp(“org”,n)}(jQuery),jQuery.GollumEditor.defineLanguage(“txt”,{}),function(e){var t={“function-bold”:{replace:“B<$1>$2”},“function-italic”:{replace:“I<$1>$2”},“function-hr”:void 0,“function-code”:{replace:“C<$1>$2”},“function-h1”:{replace:“=head1 $1$2”},“function-h2”:{replace:“=head2 $1$2”},“function-h3”:{replace:“=head3 $1$2”},“function-link”:{replace:function(e){var t=“”;return e.text&&e.href&&(t=“L<”e.text
“|”e.href
“>”),t}},“function-image”:void 0,“function-ul”:void 0,“function-ol”:void 0,“function-blockquote”:void 0};e.GollumEditor.defineLanguage(“pod”,e.constructLanguageDefinition(t));var n=[{menuName:“Command Paragraphs”,content:[{menuName:“Headings”,data:“<p>All command paragraphs start with=
(equals sign).</p><p>To create headings 1 through 4, begin your command paragraph with=headN
, whereN
is the number of the heading 1 through 4. For example, to make a first-order heading (the largest possible,) write=head1
, then on the next line begin your paragraph that you want under the heading.</p>”},{menuName:“Beginning & Ending”,data:“<p>Perl pod blocks should begin with=pod
and end with=cut
, signifying to Pod parsers that the pod block has begun and ended. These command paragraphs only signal the beginning and end of a pod block.</p>”},{menuName:“Other Formats”,data:“<p>pod also allows blocks in other formats, such as HTML or plain text. To create one of these blocks, use the=format SYNTAX
command paragraph, whereSYNTAX
is the syntax of the block (e.g.html
ortxt
). At the end of your block, use the=end SYNTAX
block.</p>”},{menuName:“Encoding”,data:“<p>If you are having encoding troubles, use the=encoding ENC_TYPE
command, whereENC_TYPE
is the encoding type (e.g.utf8
,koi8-r
). This will affect the entire document, not just the block below the command.</p>”}]},{menuName:“Formatting”,content:[{menuName:“Text”,data:“<p>Formatting text as <strong>bold</strong>, italic orcode
works in theS<word>
syntax, whereS
is an abbreviation for the type of text you are trying to create. For example,B<my bold text>
becomes <strong>my bold text</strong>,I<italic text>
becomes italic text andC<code here()>
becomescode here()
.</p>”},{menuName:“Hyperlinks”,data:“<p>Writing hyperlinks in pod is much like formatting text, using the sameS<>
syntax. Instead ofB
,I
orC
, useL
to begin a hyperlink.</p><p>pod allows you to hyperlink to aman
page, a Perl documentation page, or another web page. To link to aman
or Perl documentation page, simply include the page name in the link (e.g.L<perl(1)>
orL<Net::Ping>
). If you want to link to a web page, separate the URL and the link text with a pipe (e.g. to link to github.com, writeL<GitHub|http://github.com/>
).”}]}];e.GollumEditor.defineHelp(“pod”,n)}(jQuery),function(e){var t={“function-code”:void 0,“function-h1”:void 0,“function-h2”:void 0,“function-h3”:void 0,“function-link”:void 0,“function-image”:void 0,“function-hr”:void 0,“function-blockquote”:void 0};e.GollumEditor.defineLanguage(“rdoc”,e.constructLanguageDefinition(t))}(jQuery),function(e){var t=function(t,n,i){var o=“”;o=t.length?t:“Title here”,adornment=i.repeat(o.length),o=o+“n”adornment
“n”,e.GollumEditor.replaceSelection(o,!1,!1,n)},n={“function-bold”:{replace:“**$1**$2”},“function-italic”:{replace:“*$1*$2”},“function-code”:{replace:““$1“$2”},“function-hr”:{append:“nn—-nn”},“function-blockquote”:{exec:function(t,n){for(var i=“ ”,o=n.split(“n”),r=0;r<o.length;r++)o=i+o;var s=o.join(“n”);e.GollumEditor.replaceSelection(s)}},“function-h1”:{symbol:“=”,exec:function(e,n,i,o){t(n,o,this.symbol)}},“function-h2”:{symbol:“-”,exec:function(e,n,i,o){t(n,o,this.symbol)}},“function-h3”:{symbol:“~”,exec:function(e,n,i,o){t(n,o,this.symbol)}},“function-link”:{replace:function(e){var t=“”;return e.text&&e.href&&(t=“‘”e.text
“ <”e.href
“>`_”),t}},“function-image”:{replace:function(e){var t=“”;return e.url&&e.alt&&(t=“.. image - “
e.url
”n :alt: “+e.alt),t}},”gollum-helpers“:{”find-header-line“:function(e){var t=e-1,n=window.ace_editor.getSession().getLine(t);return t>=0&&!/^s+$/.test(n)?:null}}};e.GollumEditor.defineLanguage(”rst“,e.constructLanguageDefinition(n));var i=[{menuName:”Block Elements“,content:[{menuName:”Paragraphs & Breaks“,data:”<p>To create a paragraph, simply create a block of text that is not separated by one or more blank lines. Blocks of text separated by one or more blank lines will be parsed as paragraphs.</p>“},{menuName:”Headers“,data:”<p>Rest uses overline/underline adornments to indicate headers. To create a header, underline your header text with adornment characters such as the=, ~, +, ^
characters. Make sure that the adornment is of the same length (or longer) as the header text. Use a different adornment character to specify a different heading depth.</p>“},{menuName:”Blockquotes“,data:”<p>Rest creates blockquotes using indentation. This looks best if you use four spaces per level of indentation.</p>“},{menuName:”Lists“,data:”<p>Rest supports both ordered and unordered lists. To create an ordered list, simply prefix each line with a number, or use#
for auto enumeration. To create an unordered list, you can prefix each line with*
,+
or-
.</p>“},{menuName:”Code Blocks“,data:”<p>Rest wraps code blocks in pre-formatted tags to preserve indentation in your code blocks. To create a code block, indent the entire block by at least 4 spaces or one tab. Rest will strip the extra indentation you’ve added to the code block.</p>“},{menuName:”Horizontal Rules“,data:”<p>Horizontal rules are created by placing four or more hyphens, asterisks or underscores on a line by themselves.</p>“}]},{menuName:”Span Elements“,content:[{menuName:”Links“,data:”<p>To create an inline link, create a set of backticks, include the link title first, followed by the url in angled brackets (e.g.,`Python <http://www.python.org/>`_
).</p>“},{menuName:”Emphasis“,data:”<p>Asterisks (*
) are treated as emphasis and are wrapped with an<em>
tag, which usually displays as italics in most browsers. Double asterisks (**
) are treated as bold using the<strong>
tag. To create italic or bold text, simply wrap your words in single/double asterisks. For example,**My double emphasis text**
becomes <strong>My double emphasis text</strong>, and*My single emphasis text*
becomes My single emphasis text.</p>“},{menuName:”Code“,data:”<p>To create inline spans of code, simply wrap the code in backticks (`
). Rest will turn`myFunction`
intomyFunction
.</p>“},{menuName:”Images“,data:‘<p>Rest image syntax is two dots, followed by a space, the word ”image“, two colons, another space, and the url: <code>.. image -
</code>.</p>‘}]},{menuName:“Miscellaneous”,content:[{menuName:“Escaping”,data:“<p>If you want to use a special Rest character in your document (such as displaying literal asterisks), you can escape the character with the backslash (
\
). Rest will ignore the character directly after a backslash.”}]}];e.GollumEditor.defineHelp(“rst”,i)}(jQuery),function(e){var t={“function-hr”:void 0,“function-code”:{replace:“bc. $1$2”,whole_line:!0},“function-ol”:{line:function(e,t){return“# ”t
“n”}},“function-blockquote”:{replace:“bq. $1$2”},“function-h1”:{replace:“h1. $1$2”},“function-h2”:{replace:“h2. $1$2”},“function-h3”:{replace:“h3. $1$2”},“function-link”:{replace:function(e){var t=“”;return e.text&&e.href&&(t=’“‘e.text
’”:‘+e.href),t}},“function-image”:{replace:function(e){var t=“”;if(e.url){t=“!”+e.url;return“”!=e.alt&&(t+=“(”e.alt
“)”),t+=“!”}}}};e.GollumEditor.defineLanguage(“textile”,e.constructLanguageDefinition(t));var n=[{menuName:“Phrase Modifiers”,content:[{menuName:“Emphasis / Strength”,data:“<p>To place emphasis or strength on inline text, simply place_
(underscores) around the text for emphasis or*
(asterisks) around the text for strength. In most browsers,mytext
will appear as italics andmytext
will appear as bold.</p><p>To force italics or bold, simply double the characters:__mytext__
will appear italic andmytext
will appear as bold text.</p>”},{menuName:“Citations / Editing”,data:’<p>To display citations, wrap your text in??
(two question marks).</p><p>To display edit marks such as deleted text (strikethrough) or inserted text (underlined text), wrap your text in-
(minuses) or+
(pluses). For example-mytext-
will be rendered as <span style=“text-decoration: line-through;”>mytext</span> andmytext
will be rendered as <span style=“text-decoration: underline;”>mytext</span></p>‘},{menuName:“Superscript / Subscript”,data:“<p>To display superscript, wrap your text in^
(carets). To display subscript, wrap your text in~
(tildes).</p>”},{menuName:“Code”,data:“<p>To display monospace code, wrap your text in@
(at symbol). For example,@mytext@
will appear asmytext
.</p>”},{menuName:“Acronyms”,data:’<p>To create an acronym, suffix the acronym with the definition in parentheses. For example,JS(JavaScript)
will be displayed as <abbr title=“JavaScript”>JS</abbr>.</p>‘}]},{menuName:“Block Modifiers”,content:[{menuName:“Headings”,data:“<p>To display a heading in Textile, prefix your line of text withhn.
, wheren
equals the heading size you want (1 is largest, 6 is smallest).</p>”},{menuName:“Paragraphs / Quotes”,data:“<p>To create a new paragraph, prefix your first line of a block of text withp.
.</p><p>To create a blockquote, make sure at least one blank line exists between your text and any surrounding text, and then prefix that block withbq.
If you need to extend a blockquote to more than one text block, writebq..
(note the two periods) and prefix your next normal paragraph withp.
</p>”},{menuName:“Code Blocks”,data:“<p>Code blocks in textile are simply prefixed like any other block. To create a code block, place the beginning of the block on a separate line and prefix it withbc.
</p><p>To display a preformatted block, prefix the block withpre.
</p>”},{menuName:“Lists”,data:“<p>To create ordered lists, prefix each line with#
. To create unordered lists, prefix each line with*
.</p>”}]},{menuName:“Links / Images”,content:[{menuName:“Links”,data:’<p>To display a link, put the text you want to display in quotes, then a colon (:
), then the URL after the colon. For example"GitHub":http://github.com/
will appear as <a href=“javascript:void(0);”>GitHub</a>.</p>‘},{menuName:“Images”,data:“<p>To display an image, simply wrap the image’s URL in!
(exclamation points). If you want to link the image to a URL, you can blend the image and link syntax: place your image URL in the exclamation points and suffix that with a colon and your URL. For example, an image athttp://myurl/image.png
that should link tohttp://myurl/
should be written as!http://myurl/image.png!:http://myurl/
.</p>”}]}];e.GollumEditor.defineHelp(“textile”,n)}(jQuery);
- “