QueryEditorWebComponents.js 1.5 MB

123
  1. /*! For license information please see QueryEditorWebComponents.js.LICENSE.txt */
  2. !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.QueryEditorWebComponents=t():e.QueryEditorWebComponents=t()}(self,(function(){return(()=>{var e,t,n={664:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}!function(){var e=function(){return this}();e||"undefined"==typeof window||(e=window);var t=function e(t,n,r){"string"==typeof t?(2==arguments.length&&(r=n),e.modules[t]||(e.payloads[t]=r,e.modules[t]=null)):e.original?e.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};t.modules={},t.payloads={};var n,r=function(e,t,n){if("string"==typeof t){var r=a(e,t);if(null!=r)return n&&n(),r}else if("[object Array]"===Object.prototype.toString.call(t)){for(var o=[],s=0,c=t.length;s<c;++s){var l=a(e,t[s]);if(null==l&&i.original)return;o.push(l)}return n&&n.apply(null,o)||!0}},i=function e(t,n){var i=r("",t,n);return null==i&&e.original?e.original.apply(this,arguments):i},o=function e(t,n){if(-1!==n.indexOf("!")){var r=n.split("!");return e(t,r[0])+"!"+e(t,r[1])}if("."==n.charAt(0))for(n=t.split("/").slice(0,-1).join("/")+"/"+n;-1!==n.indexOf(".")&&i!=n;){var i=n;n=n.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return n},a=function(e,n){n=o(e,n);var i=t.modules[n];if(!i){if("function"==typeof(i=t.payloads[n])){var a={},s={id:n,uri:"",exports:a,packaged:!0};a=i((function(e,t){return r(n,e,t)}),a,s)||s.exports,t.modules[n]=a,delete t.payloads[n]}i=t.modules[n]=a||i}return i};n=e,"ace"&&(e.ace||(e.ace={}),n=e.ace),n.define&&n.define.packaged||(t.original=n.define,n.define=t,n.define.packaged=!0),n.require&&n.require.packaged||(i.original=n.require,n.require=i,n.require.packaged=!0)}(),ace.define("ace/lib/regexp",["require","exports","module"],(function(e,t,n){"use strict";var r,i={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},o=void 0===i.exec.call(/()??/,"")[1],a=(r=/^/g,i.test.call(r,""),!r.lastIndex);function s(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":"")}function c(e,t,n){if(Array.prototype.indexOf)return e.indexOf(t,n);for(var r=n||0;r<e.length;r++)if(e[r]===t)return r;return-1}a&&o||(RegExp.prototype.exec=function(e){var t,n,r=i.exec.apply(this,arguments);if("string"==typeof e&&r){if(!o&&r.length>1&&c(r,"")>-1&&(n=RegExp(this.source,i.replace.call(s(this),"g","")),i.replace.call(e.slice(r.index),n,(function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(r[e]=void 0)}))),this._xregexp&&this._xregexp.captureNames)for(var l=1;l<r.length;l++)(t=this._xregexp.captureNames[l-1])&&(r[t]=r[l]);!a&&this.global&&!r[0].length&&this.lastIndex>r.index&&this.lastIndex--}return r},a||(RegExp.prototype.test=function(e){var t=i.exec.call(this,e);return t&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--,!!t}))})),ace.define("ace/lib/es5-shim",["require","exports","module"],(function(e,t,n){function i(){}Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError("Function.prototype.bind called on incompatible "+t);var n=f.call(arguments,1),r=function r(){if(this instanceof r){var i=t.apply(this,n.concat(f.call(arguments)));return Object(i)===i?i:this}return t.apply(e,n.concat(f.call(arguments)))};return t.prototype&&(i.prototype=t.prototype,r.prototype=new i,i.prototype=null),r});var o,a,s,c,l,u=Function.prototype.call,h=Array.prototype,d=Object.prototype,f=h.slice,p=u.bind(d.toString),g=u.bind(d.hasOwnProperty);if((l=g(d,"__defineGetter__"))&&(o=u.bind(d.__defineGetter__),a=u.bind(d.__defineSetter__),s=u.bind(d.__lookupGetter__),c=u.bind(d.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t,n=[];if(n.splice.apply(n,e(20)),n.splice.apply(n,e(26)),t=n.length,n.splice(5,0,"XXX"),n.length,t+1==n.length)return!0}()){var m=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?m.apply(this,[void 0===e?0:e,void 0===t?this.length-e:t].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):null==e?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var r=this.slice(e,e+t),i=f.call(arguments,2),o=i.length;if(e===n)o&&this.push.apply(this,i);else{var a=Math.min(t,n-e),s=e+a,c=s+o-a,l=n-s,u=n-a;if(c<s)for(var h=0;h<l;++h)this[c+h]=this[s+h];else if(c>s)for(h=l;h--;)this[c+h]=this[s+h];if(o&&e===u)this.length=u,this.push.apply(this,i);else for(this.length=u+o,h=0;h<o;++h)this[e+h]=i[h]}return r};Array.isArray||(Array.isArray=function(e){return"[object Array]"==p(e)});var E,v,y=Object("a"),b="a"!=y[0]||!(0 in y);function A(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(e){}}if(Array.prototype.forEach||(Array.prototype.forEach=function(e){var t=L(this),n=b&&"[object String]"==p(this)?this.split(""):t,r=arguments[1],i=-1,o=n.length>>>0;if("[object Function]"!=p(e))throw new TypeError;for(;++i<o;)i in n&&e.call(r,n[i],i,t)}),Array.prototype.map||(Array.prototype.map=function(e){var t=L(this),n=b&&"[object String]"==p(this)?this.split(""):t,r=n.length>>>0,i=Array(r),o=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var a=0;a<r;a++)a in n&&(i[a]=e.call(o,n[a],a,t));return i}),Array.prototype.filter||(Array.prototype.filter=function(e){var t,n=L(this),r=b&&"[object String]"==p(this)?this.split(""):n,i=r.length>>>0,o=[],a=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var s=0;s<i;s++)s in r&&(t=r[s],e.call(a,t,s,n)&&o.push(t));return o}),Array.prototype.every||(Array.prototype.every=function(e){var t=L(this),n=b&&"[object String]"==p(this)?this.split(""):t,r=n.length>>>0,i=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var o=0;o<r;o++)if(o in n&&!e.call(i,n[o],o,t))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(e){var t=L(this),n=b&&"[object String]"==p(this)?this.split(""):t,r=n.length>>>0,i=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var o=0;o<r;o++)if(o in n&&e.call(i,n[o],o,t))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(e){var t=L(this),n=b&&"[object String]"==p(this)?this.split(""):t,r=n.length>>>0;if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var i,o=0;if(arguments.length>=2)i=arguments[1];else for(;;){if(o in n){i=n[o++];break}if(++o>=r)throw new TypeError("reduce of empty array with no initial value")}for(;o<r;o++)o in n&&(i=e.call(void 0,i,n[o],o,t));return i}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(e){var t=L(this),n=b&&"[object String]"==p(this)?this.split(""):t,r=n.length>>>0;if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var i,o=r-1;if(arguments.length>=2)i=arguments[1];else for(;;){if(o in n){i=n[o--];break}if(--o<0)throw new TypeError("reduceRight of empty array with no initial value")}do{o in this&&(i=e.call(void 0,i,n[o],o,t))}while(o--);return i}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(e){var t=b&&"[object String]"==p(this)?this.split(""):L(this),n=t.length>>>0;if(!n)return-1;var r=0;for(arguments.length>1&&(r=k(arguments[1])),r=r>=0?r:Math.max(0,n+r);r<n;r++)if(r in t&&t[r]===e)return r;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(e){var t=b&&"[object String]"==p(this)?this.split(""):L(this),n=t.length>>>0;if(!n)return-1;var r=n-1;for(arguments.length>1&&(r=Math.min(r,k(arguments[1]))),r=r>=0?r:n-Math.abs(r);r>=0;r--)if(r in t&&e===t[r])return r;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__||(e.constructor?e.constructor.prototype:d)}),Object.getOwnPropertyDescriptor||(Object.getOwnPropertyDescriptor=function(e,t){if("object"!=r(e)&&"function"!=typeof e||null===e)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+e);if(g(e,t)){var n;if(n={enumerable:!0,configurable:!0},l){var i=e.__proto__;e.__proto__=d;var o=s(e,t),a=c(e,t);if(e.__proto__=i,o||a)return o&&(n.get=o),a&&(n.set=a),n}return n.value=e[t],n}}),Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),Object.create||(E=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(e,t){var n;if(null===e)n=E();else{if("object"!=r(e))throw new TypeError("typeof prototype["+r(e)+"] != 'object'");var i=function(){};i.prototype=e,(n=new i).__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n}),Object.defineProperty){var T=A({}),C="undefined"==typeof document||A(document.createElement("div"));if(!T||!C)var R=Object.defineProperty}Object.defineProperty&&!R||(Object.defineProperty=function(e,t,n){if("object"!=r(e)&&"function"!=typeof e||null===e)throw new TypeError("Object.defineProperty called on non-object: "+e);if("object"!=r(n)&&"function"!=typeof n||null===n)throw new TypeError("Property description must be an object: "+n);if(R)try{return R.call(Object,e,t,n)}catch(e){}if(g(n,"value"))if(l&&(s(e,t)||c(e,t))){var i=e.__proto__;e.__proto__=d,delete e[t],e[t]=n.value,e.__proto__=i}else e[t]=n.value;else{if(!l)throw new TypeError("getters & setters can not be defined on this javascript engine");g(n,"get")&&o(e,t,n.get),g(n,"set")&&a(e,t,n.set)}return e}),Object.defineProperties||(Object.defineProperties=function(e,t){for(var n in t)g(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.seal||(Object.seal=function(e){return e}),Object.freeze||(Object.freeze=function(e){return e});try{Object.freeze((function(){}))}catch(e){Object.freeze=(v=Object.freeze,function(e){return"function"==typeof e?e:v(e)})}if(Object.preventExtensions||(Object.preventExtensions=function(e){return e}),Object.isSealed||(Object.isSealed=function(e){return!1}),Object.isFrozen||(Object.isFrozen=function(e){return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)===e)throw new TypeError;for(var t="";g(e,t);)t+="?";e[t]=!0;var n=g(e,t);return delete e[t],n}),!Object.keys){var S=!0,_=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],x=_.length;for(var w in{toString:null})S=!1;Object.keys=function(e){if("object"!=r(e)&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on a non-object");var t=[];for(var n in e)g(e,n)&&t.push(n);if(S)for(var i=0,o=x;i<o;i++){var a=_[i];g(e,a)&&t.push(a)}return t}}Date.now||(Date.now=function(){return(new Date).getTime()});var I="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff";if(!String.prototype.trim||I.trim()){I="["+I+"]";var N=new RegExp("^"+I+I+"*"),O=new RegExp(I+I+"*$");String.prototype.trim=function(){return String(this).replace(N,"").replace(O,"")}}function k(e){return(e=+e)!=e?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}var L=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)}})),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],(function(e,t,n){"use strict";e("./regexp"),e("./es5-shim")})),ace.define("ace/lib/dom",["require","exports","module"],(function(e,t,n){"use strict";t.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||"http://www.w3.org/1999/xhtml",e):document.createElement(e)},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 r=n.indexOf(t);if(-1==r)break;n.splice(r,1)}e.className=n.join(" ")},t.toggleCssClass=function(e,t){for(var n=e.className.split(/\s+/g),r=!0;;){var i=n.indexOf(t);if(-1==i)break;r=!1,n.splice(i,1)}return r&&n.push(t),e.className=n.join(" "),r},t.setCssClass=function(e,n,r){r?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n,r=0;if((t=t||document).createStyleSheet&&(n=t.styleSheets)){for(;r<n.length;)if(n[r++].owningElement.id===e)return!0}else if(n=t.getElementsByTagName("style"))for(;r<n.length;)if(n[r++].id===e)return!0;return!1},t.importCssString=function(e,n,r){if(r=r||document,n&&t.hasCssString(n,r))return null;var i;n&&(e+="\n/*# sourceURL=ace/css/"+n+" */"),r.createStyleSheet?((i=r.createStyleSheet()).cssText=e,n&&(i.owningElement.id=n)):((i=t.createElement("style")).appendChild(r.createTextNode(e)),n&&(i.id=n),t.getDocumentHead(r).appendChild(i))},t.importCssStylsheet=function(e,n){if(n.createStyleSheet)n.createStyleSheet(e);else{var r=t.createElement("link");r.rel="stylesheet",r.href=e,t.getDocumentHead(n).appendChild(r)}},t.getInnerWidth=function(e){return parseInt(t.computedStyle(e,"paddingLeft"),10)+parseInt(t.computedStyle(e,"paddingRight"),10)+e.clientWidth},t.getInnerHeight=function(e){return parseInt(t.computedStyle(e,"paddingTop"),10)+parseInt(t.computedStyle(e,"paddingBottom"),10)+e.clientHeight},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 r=t.createElement("ace_outer"),i=r.style;i.position="absolute",i.left="-10000px",i.overflow="hidden",i.width="200px",i.minWidth="0px",i.height="150px",i.display="block",r.appendChild(n);var o=e.documentElement;o.appendChild(r);var a=n.offsetWidth;i.overflow="scroll";var s=n.offsetWidth;return a==s&&(s=r.clientWidth),o.removeChild(r),a-s},"undefined"!=typeof document?(void 0!==window.pageYOffset?(t.getPageScrollTop=function(){return window.pageYOffset},t.getPageScrollLeft=function(){return window.pageXOffset}):(t.getPageScrollTop=function(){return document.body.scrollTop},t.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?t.computedStyle=function(e,t){return t?(window.getComputedStyle(e,"")||{})[t]||"":window.getComputedStyle(e,"")||{}}:t.computedStyle=function(e,t){return t?e.currentStyle[t]:e.currentStyle},t.setInnerHtml=function(e,t){var n=e.cloneNode(!1);return n.innerHTML=t,e.parentNode.replaceChild(n,e),n},"textContent"in document.documentElement?(t.setInnerText=function(e,t){e.textContent=t},t.getInnerText=function(e){return e.textContent}):(t.setInnerText=function(e,t){e.innerText=t},t.getInnerText=function(e){return e.innerText}),t.getParentWindow=function(e){return e.defaultView||e.parentWindow}):t.importCssString=function(){}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,n){"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[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],(function(e,t,n){"use strict";e("./fixoldbrowsers");var r=e("./oop"),i=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},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:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return r.mixin(n,n.MODIFIER_KEYS),r.mixin(n,n.PRINTABLE_KEYS),r.mixin(n,n.FUNCTION_KEYS),n.enter=n.return,n.escape=n.esc,n.del=n.delete,n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter((function(e){return t&n.KEY_MODS[e]})).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();r.mixin(t,i),t.keyCodeToString=function(e){var t=i[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/useragent",["require","exports","module"],(function(e,t,n){"use strict";if(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},"object"==("undefined"==typeof navigator?"undefined":r(navigator))){var i=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),o=navigator.userAgent;t.isWin="win"==i,t.isMac="mac"==i,t.isLinux="linux"==i,t.isIE="Microsoft Internet Explorer"==navigator.appName||navigator.appName.indexOf("MSAppHost")>=0?parseFloat((o.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((o.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=(window.Controllers||window.controllers)&&"Gecko"===window.navigator.product,t.isOldGecko=t.isGecko&&parseInt((o.match(/rv\:(\d+)/)||[])[1],10)<4,t.isOpera=window.opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(o.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(o.split(" Chrome/")[1])||void 0,t.isAIR=o.indexOf("AdobeAIR")>=0,t.isIPad=o.indexOf("iPad")>=0,t.isTouchPad=o.indexOf("TouchPad")>=0,t.isChromeOS=o.indexOf(" CrOS ")>=0}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("./keys"),o=e("./useragent"),a=null,s=0;t.addListener=function(e,t,n){if(e.addEventListener)return e.addEventListener(t,n,!1);if(e.attachEvent){var r=function(){n.call(e,window.event)};n._wrapper=r,e.attachEvent("on"+t,r)}},t.removeListener=function(e,t,n){if(e.removeEventListener)return e.removeEventListener(t,n,!1);e.detachEvent&&e.detachEvent("on"+t,n._wrapper||n)},t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||o.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.preventDefault?e.button:{1:0,2:2,4:1}[e.button]},t.capture=function(e,n,r){function i(e){n&&n(e),r&&r(e),t.removeListener(document,"mousemove",n,!0),t.removeListener(document,"mouseup",i,!0),t.removeListener(document,"dragstart",i,!0)}return t.addListener(document,"mousemove",n,!0),t.addListener(document,"mouseup",i,!0),t.addListener(document,"dragstart",i,!0),i},t.addTouchMoveListener=function(e,n){var r,i;"ontouchmove"in e&&(t.addListener(e,"touchstart",(function(e){var t=e.changedTouches[0];r=t.clientX,i=t.clientY})),t.addListener(e,"touchmove",(function(e){var t=e.changedTouches[0];e.wheelX=-(t.clientX-r)/1,e.wheelY=-(t.clientY-i)/1,r=t.clientX,i=t.clientY,n(e)})))},t.addMouseWheelListener=function(e,n){"onmousewheel"in e?t.addListener(e,"mousewheel",(function(e){void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/8,e.wheelY=-e.wheelDeltaY/8):(e.wheelX=0,e.wheelY=-e.wheelDelta/8),n(e)})):"onwheel"in e?t.addListener(e,"wheel",(function(e){switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.35*e.deltaX||0,e.wheelY=.35*e.deltaY||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}n(e)})):t.addListener(e,"DOMMouseScroll",(function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),n(e)}))},t.addMultiMouseDownListener=function(e,n,r,i){var a,s,c,l=0,u={2:"dblclick",3:"tripleclick",4:"quadclick"};t.addListener(e,"mousedown",(function(e){if(0!==t.getButton(e)?l=0:e.detail>1?++l>4&&(l=1):l=1,o.isIE){var h=Math.abs(e.clientX-a)>5||Math.abs(e.clientY-s)>5;c&&!h||(l=1),c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[l-1]||600),1==l&&(a=e.clientX,s=e.clientY)}if(e._clicks=l,r[i]("mousedown",e),l>4)l=0;else if(l>1)return r[i](u[l],e)})),o.isOldIE&&t.addListener(e,"dblclick",(function(e){l=2,c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[l-1]||600),r[i]("mousedown",e),r[i](u[l],e)}))};var c=o.isMac&&o.isOpera&&!("KeyboardEvent"in window)?function(e){return 0|(e.metaKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.ctrlKey?8:0)}:function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function l(e,t,n){var r=c(t);if(!o.isMac&&a){if(a.OSKey&&(r|=8),a.altGr){if(3==(3&r))return;a.altGr=0}if(18===n||17===n){var l="location"in t?t.location:t.keyLocation;17===n&&1===l?1==a[n]&&(s=t.timeStamp):18===n&&3===r&&2===l&&t.timeStamp-s<50&&(a.altGr=!0)}}if(n in i.MODIFIER_KEYS&&(n=-1),8&r&&n>=91&&n<=93&&(n=-1),r||13!==n||3!==(l="location"in t?t.location:t.keyLocation)||(e(t,r,-n),!t.defaultPrevented)){if(o.isChromeOS&&8&r){if(e(t,r,n),t.defaultPrevented)return;r&=-9}return!!(r||n in i.FUNCTION_KEYS||n in i.PRINTABLE_KEYS)&&e(t,r,n)}}function u(){(a=Object.create(null)).count=0,a.lastT=0}t.getModifierString=function(e){return i.KEY_MODS[c(e)]},t.addCommandKeyListener=function(e,n){var r=t.addListener;if(o.isOldGecko||o.isOpera&&!("KeyboardEvent"in window)){var i=null;r(e,"keydown",(function(e){i=e.keyCode})),r(e,"keypress",(function(e){return l(n,e,i)}))}else{var s=null;r(e,"keydown",(function(e){var t=e.keyCode;a[t]=(a[t]||0)+1,91==t||92==t?a.OSKey=!0:a.OSKey&&e.timeStamp-a.lastT>200&&1==a.count&&u(),1==a[t]&&a.count++,a.lastT=e.timeStamp;var r=l(n,e,t);return s=e.defaultPrevented,r})),r(e,"keypress",(function(e){s&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),s=null)})),r(e,"keyup",(function(e){var t=e.keyCode;a[t]?a.count=Math.max(a.count-1,0):u(),91!=t&&92!=t||(a.OSKey=!1),a[t]=null})),a||(u(),r(window,"focus",u))}},"object"==("undefined"==typeof window?"undefined":r(window))&&window.postMessage&&!o.isOldIE&&(t.nextTick=function(e,n){n=n||window;var r="zero-timeout-message-1";t.addListener(n,"message",(function i(o){o.data==r&&(t.stopPropagation(o),t.removeListener(n,"message",i),e())})),n.postMessage(r,"*")}),t.nextFrame="object"==("undefined"==typeof window?"undefined":r(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/lib/lang",["require","exports","module"],(function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},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 i=/^\s\s*/,o=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(i,"")},t.stringTrimRight=function(e){return e.replace(o,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&"object"==r(e[n])?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function e(t){if("object"!==r(t)||!t)return t;var n;if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n[i]=e(t[i]);return n}var o=t.constructor;if(o===RegExp)return t;for(var i in n=o(),t)n[i]=e(t[i]);return n},t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return e.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,(function(e){n.push({offset:arguments[arguments.length-2],length:e.length})})),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function e(r){return e.cancel(),t=setTimeout(n,r||0),e};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){null==n&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=e("../lib/dom"),a=e("../lib/lang"),s=i.isChrome<18,c=i.isIE;t.TextInput=function(e,t){var n=o.createElement("textarea");n.className="ace_text-input",i.isTouchPad&&n.setAttribute("x-palm-disable-auto-cap",!0),n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",i.isOldIE&&(n.style.top="-1000px"),e.insertBefore(n,e.firstChild);var l="\u2028\u2028",u=!1,h=!1,d=!1,f="",p=!0;try{var g=document.activeElement===n}catch(e){}r.addListener(n,"blur",(function(e){t.onBlur(e),g=!1})),r.addListener(n,"focus",(function(e){g=!0,t.onFocus(e),v()})),this.focus=function(){if(f)return n.focus();var e=n.style.top;n.style.position="fixed",n.style.top="-1000px",n.focus(),setTimeout((function(){n.style.position="","-1000px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return g};var m=a.delayedCall((function(){g&&v(p)})),E=a.delayedCall((function(){d||(n.value=l,g&&v())}));function v(e){if(!d){if(d=!0,S)t=0,r=e?0:n.value.length-1;else var t=e?2:1,r=2;try{n.setSelectionRange(t,r)}catch(e){}d=!1}}function y(){d||(n.value=l,i.isWebKit&&E.schedule())}i.isWebKit||t.addEventListener("changeSelection",(function(){t.selection.isEmpty()!=p&&(p=!p,m.schedule())})),y(),g&&t.onFocus();var b=function(e){return 0===e.selectionStart&&e.selectionEnd===e.value.length};if(!n.setSelectionRange&&n.createTextRange&&(n.setSelectionRange=function(e,t){var n=this.createTextRange();n.collapse(!0),n.moveStart("character",e),n.moveEnd("character",t),n.select()},b=function(e){try{var t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&t.text==e.value}),i.isOldIE){var A=!1,T=function(e){if(!A){var t=n.value;if(!d&&t&&t!=l){if(e&&t==l[0])return C.schedule();x(t),A=!0,y(),A=!1}}},C=a.delayedCall(T);r.addListener(n,"propertychange",T);var R={13:1,27:1};r.addListener(n,"keyup",(function(e){if(!d||n.value&&!R[e.keyCode]||setTimeout(P,0),(n.value.charCodeAt(0)||0)<129)return C.call();d?M():F()})),r.addListener(n,"keydown",(function(e){C.schedule(50)}))}var S=null;this.setInputHandler=function(e){S=e},this.getInputHandler=function(){return S};var _=!1,x=function(e){S&&(e=S(e),S=null),h?(v(),e&&t.onPaste(e),h=!1):e==l.charAt(0)?_?t.execCommand("del",{source:"ace"}):t.execCommand("backspace",{source:"ace"}):(e.substring(0,2)==l?e=e.substr(2):e.charAt(0)==l.charAt(0)?e=e.substr(1):e.charAt(e.length-1)==l.charAt(0)&&(e=e.slice(0,-1)),e.charAt(e.length-1)==l.charAt(0)&&(e=e.slice(0,-1)),e&&t.onTextInput(e)),_&&(_=!1)},w=function(e){if(!d){var t=n.value;x(t),y()}},I=function(e,n){if(void 0!==t.middleClick&&t.middleClick)return t.getSelectedText()||" ";var r=e.clipboardData||window.clipboardData;if(r&&!s){var i=c?"Text":"text/plain";return n?!1!==r.setData(i,n):r.getData(i)}},N=function(e,i){var o=t.getCopyText();if(!o)return r.preventDefault(e);I(e,o)?(i?t.onCut():t.onCopy(),r.preventDefault(e)):(u=!0,n.value=o,n.select(),setTimeout((function(){u=!1,y(),v(),i?t.onCut():t.onCopy()})))},O=function(e){N(e,!0)},k=function(e){N(e,!1)},L=function(e){var o=I(e);"string"==typeof o?(o&&t.onPaste(o,e),i.isIE&&setTimeout(v),r.preventDefault(e)):(n.value="",h=!0)};r.addCommandKeyListener(n,t.onCommandKey.bind(t)),r.addListener(n,"select",(function(e){u?u=!1:b(n)?(t.selectAll(),v()):S&&v(t.selection.isEmpty())})),r.addListener(n,"input",w),r.addListener(n,"cut",O),r.addListener(n,"copy",k),r.addListener(n,"paste",L),"oncut"in n&&"oncopy"in n&&"onpaste"in n||r.addListener(e,"keydown",(function(e){if((!i.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:k(e);break;case 86:L(e);break;case 88:O(e)}}));var D,F=function(e){d||!t.onCompositionStart||t.$readOnly||(d={},t.onCompositionStart(),setTimeout(M,0),t.on("mousedown",P),t.selection.isEmpty()||(t.insert(""),t.session.markUndoGroup(),t.selection.clearSelection()),t.session.markUndoGroup())},M=function(){if(d&&t.onCompositionUpdate&&!t.$readOnly){var e=n.value.replace(/\u2028/g,"");if(d.lastValue!==e&&(t.onCompositionUpdate(e),d.lastValue&&t.undo(),d.lastValue=e,d.lastValue)){var r=t.selection.getRange();t.insert(d.lastValue),t.session.markUndoGroup(),d.range=t.selection.getRange(),t.selection.setRange(r),t.selection.clearSelection()}}},P=function e(r){if(t.onCompositionEnd&&!t.$readOnly){var o=d;d=!1;var a=setTimeout((function(){a=null;var e=n.value.replace(/\u2028/g,"");d||(e==o.lastValue?y():!o.lastValue&&e&&(y(),x(e)))}));S=function(e){return a&&clearTimeout(a),(e=e.replace(/\u2028/g,""))==o.lastValue?"":(o.lastValue&&a&&t.undo(),e)},t.onCompositionEnd(),t.removeListener("mousedown",e),"compositionend"==r.type&&o.range&&t.selection.setRange(o.range),(i.isChrome&&i.isChrome>=53||i.isWebKit&&i.isWebKit>=603)&&w()}},B=a.delayedCall(M,50);function U(){clearTimeout(D),D=setTimeout((function(){f&&(n.style.cssText=f,f=""),null==t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=!0,t.renderer.$moveTextAreaToCursor())}),i.isOldIE?200:0)}r.addListener(n,"compositionstart",F),i.isGecko?r.addListener(n,"text",(function(){B.schedule()})):(r.addListener(n,"keyup",(function(){B.schedule()})),r.addListener(n,"keydown",(function(){B.schedule()}))),r.addListener(n,"compositionend",P),this.getElement=function(){return n},this.setReadOnly=function(e){n.readOnly=e},this.onContextMenu=function(e){_=!0,v(t.selection.isEmpty()),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,a){if(a||!i.isOldIE){f||(f=n.style.cssText),n.style.cssText=(a?"z-index:100000;":"")+"height:"+n.style.height+";"+(i.isIE?"opacity:0.1;":"");var s=t.container.getBoundingClientRect(),c=o.computedStyle(t.container),l=s.top+(parseInt(c.borderTopWidth)||0),u=s.left+(parseInt(s.borderLeftWidth)||0),h=s.bottom-l-n.clientHeight-2,d=function(e){n.style.left=e.clientX-u-2+"px",n.style.top=Math.min(e.clientY-l-2,h)+"px"};d(e),"mousedown"==e.type&&(t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=null),i.isWin&&!i.isOldIE&&r.capture(t.container,d,U))}},this.onContextMenuClose=U;var $=function(e){t.textInput.onContextMenu(e),U()};r.addListener(t.renderer.scroller,"contextmenu",$),r.addListener(n,"contextmenu",$)}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";e("../lib/dom"),e("../lib/event");var r=e("../lib/useragent");function i(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)),t.setDefaultHandler("touchmove",this.onTouchMove.bind(e)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function o(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 n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var i=this.editor,o=e.getButton();if(0!==o){var a=i.getSelectionRange().isEmpty();return i.$blockScrolling++,(a||1==o)&&i.selection.moveToPosition(n),i.$blockScrolling--,void(2==o&&(i.textInput.onContextMenu(e.domEvent),r.isMozilla||e.preventDefault()))}return this.mousedownEvent.time=Date.now(),!t||i.isFocused()||(i.focus(),!this.$focusTimout||this.$clickSelection||i.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;n.$blockScrolling++,this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"),n.$blockScrolling--},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(t.$blockScrolling++,this.$clickSelection){var r=this.$clickSelection.comparePoint(n);if(-1==r)e=this.$clickSelection.end;else if(1==r)e=this.$clickSelection.start;else{var i=o(this.$clickSelection,n);n=i.cursor,e=i.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.$blockScrolling--,t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,r=n.renderer.screenToTextCoordinates(this.x,this.y),i=n.selection[e](r.row,r.column);if(n.$blockScrolling++,this.$clickSelection){var a=this.$clickSelection.comparePoint(i.start),s=this.$clickSelection.comparePoint(i.end);if(-1==a&&s<=0)t=this.$clickSelection.end,i.end.row==r.row&&i.end.column==r.column||(r=i.start);else if(1==s&&a>=0)t=this.$clickSelection.start,i.start.row==r.row&&i.start.column==r.column||(r=i.end);else if(-1==a&&1==s)r=i.end,t=i.start;else{var c=o(this.$clickSelection,r);r=c.cursor,t=c.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(r),n.$blockScrolling--,n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e,t,n,r,i=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,n=this.x,r=this.y,Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))),o=Date.now();(i>0||o-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,r=n.session.getBracketRange(t);r?(r.isEmpty()&&(r.start.column--,r.end.column++),this.setState("select")):(r=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=r,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var r=n.getSelectionRange();r.isMultiLine()&&r.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(r.start.row),this.$clickSelection.end=n.selection.getLineRange(r.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=e.domEvent.timeStamp,n=t-(this.$lastScrollTime||0),r=this.editor;return r.renderer.isScrollableBy(e.wheelX*e.speed,e.wheelY*e.speed)||n<200?(this.$lastScrollTime=t,r.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}},this.onTouchMove=function(e){var t=e.domEvent.timeStamp,n=t-(this.$lastScrollTime||0),r=this.editor;if(r.renderer.isScrollableBy(e.wheelX*e.speed,e.wheelY*e.speed)||n<200)return this.$lastScrollTime=t,r.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()}}).call(i.prototype),t.DefaultHandlers=i})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,n){"use strict";e("./lib/oop");var r=e("./lib/dom");function i(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=r.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){r.setInnerText(this.getElement(),e)},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){r.addCssClass(this.getElement(),e)},this.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)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth}}).call(i.prototype),t.Tooltip=i})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/oop"),o=e("../lib/event"),a=e("../tooltip").Tooltip;function s(e){a.call(this,e)}i.inherits(s,a),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,i=this.getWidth(),o=this.getHeight();(e+=15)+i>n&&(e-=e+i-n),(t+=15)+o>r&&(t-=20+o),a.prototype.setPosition.call(this,e,t)}}.call(s.prototype),t.GutterHandler=function(e){var t,n,i,a=e.editor,c=a.renderer.$gutterLayer,l=new s(a.container);function u(){t&&(t=clearTimeout(t)),i&&(l.hide(),i=null,a.removeEventListener("mousewheel",u))}function h(e){l.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(a.isFocused()&&0==t.getButton()&&"foldWidgets"!=c.getRegion(t)){var n=t.getDocumentPosition().row,r=a.session.selection;if(t.getShiftKey())r.selectTo(n,0);else{if(2==t.domEvent.detail)return a.selectAll(),t.preventDefault();e.$clickSelection=a.selection.getLineRange(n)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}})),e.editor.setDefaultHandler("guttermousemove",(function(o){var s=o.domEvent.target||o.domEvent.srcElement;if(r.hasCssClass(s,"ace_fold-widget"))return u();i&&e.$tooltipFollowsMouse&&h(o),n=o,t||(t=setTimeout((function(){t=null,n&&!e.isMousePressed?function(){var t=n.getDocumentPosition().row,r=c.$annotations[t];if(!r)return u();if(t==a.session.getLength()){var o=a.renderer.pixelToScreenCoordinates(0,n.y).row,s=n.$pos;if(o>a.session.documentToScreenRow(s.row,s.column))return u()}if(i!=r)if(i=r.text.join("<br/>"),l.setHtml(i),l.show(),a.on("mousewheel",u),e.$tooltipFollowsMouse)h(n);else{var d=n.domEvent.target.getBoundingClientRect(),f=l.getElement().style;f.left=d.right+"px",f.top=d.bottom+"px"}}():u()}),50))})),o.addListener(a.renderer.$gutter,"mouseout",(function(e){n=null,i&&!t&&(t=setTimeout((function(){t=null,u()}),50))})),a.on("changeSession",u)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){r.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){r.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return r.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=i.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/event"),o=e("../lib/useragent");function a(e){var t=e.editor,n=r.createElement("img");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",o.isOpera&&(n.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;"),["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(t){e[t]=this[t]}),this),t.addEventListener("mousedown",this.onMouseDown.bind(e));var a,c,l,u,h,d,f,p,g,m,E,v=t.container,y=0;function b(){var e=d;(function(e,n){var r=Date.now(),i=!n||e.row!=n.row,o=!n||e.column!=n.column;!m||i||o?(t.$blockScrolling+=1,t.moveCursorToPosition(e),t.$blockScrolling-=1,m=r,E={x:c,y:l}):s(E.x,E.y,c,l)>5?m=null:r-m>=200&&(t.renderer.scrollCursorIntoView(),m=null)})(d=t.renderer.screenToTextCoordinates(c,l),e),function(e,n){var r=Date.now(),i=t.renderer.layerConfig.lineHeight,o=t.renderer.layerConfig.characterWidth,a=t.renderer.scroller.getBoundingClientRect(),s={x:{left:c-a.left,right:a.right-c},y:{top:l-a.top,bottom:a.bottom-l}},u=Math.min(s.x.left,s.x.right),h=Math.min(s.y.top,s.y.bottom),d={row:e.row,column:e.column};u/o<=2&&(d.column+=s.x.left<s.x.right?-3:2),h/i<=1&&(d.row+=s.y.top<s.y.bottom?-1:1);var f=e.row!=d.row,p=e.column!=d.column,m=!n||e.row!=n.row;f||p&&!m?g?r-g>=200&&t.renderer.scrollCursorIntoView(d):g=r:g=null}(d,e)}function A(){h=t.selection.toOrientedRange(),a=t.session.addMarker(h,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(u),b(),u=setInterval(b,20),y=0,i.addListener(document,"mousemove",R)}function T(){clearInterval(u),t.session.removeMarker(a),a=null,t.$blockScrolling+=1,t.selection.fromOrientedRange(h),t.$blockScrolling-=1,t.isFocused()&&!p&&t.renderer.$cursorLayer.setBlinking(!t.getReadOnly()),h=null,d=null,y=0,g=null,m=null,i.removeListener(document,"mousemove",R)}this.onDragStart=function(e){if(this.cancelDrag||!v.draggable){var r=this;return setTimeout((function(){r.startSelect(),r.captureMouse(e)}),0),e.preventDefault()}h=t.getSelectionRange();var i=e.dataTransfer;i.effectAllowed=t.getReadOnly()?"copy":"copyMove",o.isOpera&&(t.container.appendChild(n),n.scrollTop=0),i.setDragImage&&i.setDragImage(n,0,0),o.isOpera&&t.container.removeChild(n),i.clearData(),i.setData("Text",t.session.getTextRange()),p=!0,this.setState("drag")},this.onDragEnd=function(e){if(v.draggable=!1,p=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;f||"move"!=n||t.session.remove(t.getSelectionRange()),t.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&S(e.dataTransfer))return c=e.clientX,l=e.clientY,a||A(),y++,e.dataTransfer.dropEffect=f=_(e),i.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&S(e.dataTransfer))return c=e.clientX,l=e.clientY,a||(A(),y++),null!==C&&(C=null),e.dataTransfer.dropEffect=f=_(e),i.preventDefault(e)},this.onDragLeave=function(e){if(--y<=0&&a)return T(),f=null,i.preventDefault(e)},this.onDrop=function(e){if(d){var n=e.dataTransfer;if(p)switch(f){case"move":h=h.contains(d.row,d.column)?{start:d,end:d}:t.moveText(h,d);break;case"copy":h=t.moveText(h,d,!0)}else{var r=n.getData("Text");h={start:d,end:t.session.insert(d,r)},t.focus(),f=null}return T(),i.preventDefault(e)}},i.addListener(v,"dragstart",this.onDragStart.bind(e)),i.addListener(v,"dragend",this.onDragEnd.bind(e)),i.addListener(v,"dragenter",this.onDragEnter.bind(e)),i.addListener(v,"dragover",this.onDragOver.bind(e)),i.addListener(v,"dragleave",this.onDragLeave.bind(e)),i.addListener(v,"drop",this.onDrop.bind(e));var C=null;function R(){null==C&&(C=setTimeout((function(){null!=C&&a&&T()}),20))}function S(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function _(e){var t=["copy","copymove","all","uninitialized"],n=o.isMac?e.altKey:e.ctrlKey,r="uninitialized";try{r=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var i="none";return n&&t.indexOf(r)>=0?i="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(r)>=0?i="move":t.indexOf(r)>=0&&(i="copy"),i}}function s(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}(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(e){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),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=o.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;o.isIE&&"dragReady"==this.state&&s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&t.dragDrop(),"dragWait"===this.state&&s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),r=e.getButton();if(1===(e.domEvent.detail||1)&&0===r&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var i=e.domEvent.target||e.domEvent.srcElement;"unselectable"in i&&(i.unselectable="on"),t.getDragDelay()?(o.isWebKit&&(this.cancelDrag=!0,t.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(a.prototype),t.DragdropHandler=a})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=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 n=r.getDocumentHead(),i=document.createElement("script");i.src=e,n.appendChild(i),i.onload=i.onreadystatechange=function(e,n){!n&&i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(i=i.onload=i.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(e,t,n){"use strict";var i={},o=function(){this.propagationStopped=!0},a=function(){this.defaultPrevented=!0};i._emit=i._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],i=this._defaultHandlers[e];if(n.length||i){"object"==r(t)&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=o),t.preventDefault||(t.preventDefault=a),n=n.slice();for(var s=0;s<n.length&&(n[s](t,this),!t.propagationStopped);s++);return i&&!t.defaultPrevented?i(t,this):void 0}},i._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)}},i.once=function(e,t){var n=this;t&&this.addEventListener(e,(function r(){n.removeEventListener(e,r),t.apply(null,arguments)}))},i.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var o=i.indexOf(t);-1!=o&&i.splice(o,1)}n[e]=t},i.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var r=n._disabled_[e];if(n[e]==t)n[e],r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);-1!=i&&r.splice(i,1)}}},i.on=i.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),-1==r.indexOf(t)&&r[n?"unshift":"push"](t),t},i.off=i.removeListener=i.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}},i.removeAllListeners=function(e){this._eventRegistry&&(this._eventRegistry[e]=[])},t.EventEmitter=i})),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){var i=e("./oop"),o=e("./event_emitter").EventEmitter,a={setOptions:function(e){Object.keys(e).forEach((function(t){this.setOption(t,e[t])}),this)},getOptions:function(e){var t={};return e?Array.isArray(e)||(t=e,e=Object.keys(t)):e=Object.keys(this.$options),e.forEach((function(e){t[e]=this.getOption(e)}),this),t},setOption:function(e,t){if(this["$"+e]!==t){var n=this.$options[e];if(!n)return s('misspelled option "'+e+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(e,t);n.handlesSet||(this["$"+e]=t),n&&n.set&&n.set.call(this,t)}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:s('misspelled option "'+e+'"')}};function s(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function c(e,t){var n=new Error(e);n.data=t,"object"==("undefined"==typeof console?"undefined":r(console))&&console.error&&console.error(n),setTimeout((function(){throw n}))}var l=function(){this.$defaultOptions={}};(function(){i.implement(this,o),this.defineOptions=function(e,t,n){return e.$options||(this.$defaultOptions[t]=e.$options={}),Object.keys(n).forEach((function(t){var r=n[t];"string"==typeof r&&(r={forwardTo:r}),r.name||(r.name=t),e.$options[r.name]=r,"initialValue"in r&&(e["$"+r.name]=r.initialValue)})),i.implement(e,a),this},this.resetOptions=function(e){Object.keys(e.$options).forEach((function(t){var n=e.$options[t];"value"in n&&e.setOption(t,n.value)}))},this.setDefaultValue=function(e,t,n){var r=this.$defaultOptions[e]||(this.$defaultOptions[e]={});r[t]&&(r.forwardTo?this.setDefaultValue(r.forwardTo,t,n):r[t].value=n)},this.setDefaultValues=function(e,t){Object.keys(t).forEach((function(n){this.setDefaultValue(e,n,t[n])}),this)},this.warn=s,this.reportError=c}).call(l.prototype),t.AppConfig=l})),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/app_config"],(function(e,t,r){var i=e("./lib/lang"),o=(e("./lib/oop"),e("./lib/net")),a=e("./lib/app_config").AppConfig;r.exports=t=new a;var s=function(){return this||"undefined"!=typeof window&&window}(),c={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{}};function l(i){if(s&&s.document){c.packaged=i||e.packaged||r.packaged||s.define&&n.amdD.packaged;for(var o,a={},l="",u=document.currentScript||document._currentScript,h=(u&&u.ownerDocument||document).getElementsByTagName("script"),d=0;d<h.length;d++){var f=h[d],p=f.src||f.getAttribute("src");if(p){for(var g=f.attributes,m=0,E=g.length;m<E;m++){var v=g[m];0===v.name.indexOf("data-ace-")&&(a[(o=v.name.replace(/^data-ace-/,""),o.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=v.value)}var y=p.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);y&&(l=y[1])}}for(var b in l&&(a.base=a.base||l,a.packaged=!0),a.basePath=a.base,a.workerPath=a.workerPath||a.base,a.modePath=a.modePath||a.base,a.themePath=a.themePath||a.base,delete a.base,a)void 0!==a[b]&&t.set(b,a[b])}}t.get=function(e){if(!c.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return c[e]},t.set=function(e,t){if(!c.hasOwnProperty(e))throw new Error("Unknown config key: "+e);c[e]=t},t.all=function(){return i.copyObject(c)},t.moduleUrl=function(e,t){if(c.$moduleUrls[e])return c.$moduleUrls[e];var n=e.split("/"),r="snippets"==(t=t||n[n.length-2]||"")?"/":"-",i=n[n.length-1];if("worker"==t&&"-"==r){var o=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");i=i.replace(o,"")}(!i||i==t)&&n.length>1&&(i=n[n.length-2]);var a=c[t+"Path"];return null==a?a=c.basePath:"/"==r&&(t=r=""),a&&"/"!=a.slice(-1)&&(a+="/"),a+t+r+i+this.get("suffix")},t.setModuleUrl=function(e,t){return c.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,r){var i,a;Array.isArray(n)&&(a=n[0],n=n[1]);try{i=e(n)}catch(e){}if(i&&!t.$loading[n])return r&&r(i);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(r),!(t.$loading[n].length>1)){var s=function(){e([n],(function(e){t._emit("load.module",{name:n,module:e});var r=t.$loading[n];t.$loading[n]=null,r.forEach((function(t){t&&t(e)}))}))};if(!t.get("packaged"))return s();o.loadScript(t.moduleUrl(n,a),s)}},l(!0),t.init=l})),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=e("./default_handlers").DefaultHandlers,a=e("./default_gutter_handler").GutterHandler,s=e("./mouse_event").MouseEvent,c=e("./dragdrop_handler").DragdropHandler,l=e("../config"),u=function(e){var t=this;this.editor=e,new o(this),new a(this),new c(this);var n=function(t){document.hasFocus&&document.hasFocus()||window.focus(),e.focus(),e.isFocused()||window.focus()},s=e.renderer.getMouseEventTarget();r.addListener(s,"click",this.onMouseEvent.bind(this,"click")),r.addListener(s,"mousemove",this.onMouseMove.bind(this,"mousemove")),r.addMultiMouseDownListener(s,[400,300,250],this,"onMouseEvent"),e.renderer.scrollBarV&&(r.addMultiMouseDownListener(e.renderer.scrollBarV.inner,[400,300,250],this,"onMouseEvent"),r.addMultiMouseDownListener(e.renderer.scrollBarH.inner,[400,300,250],this,"onMouseEvent"),i.isIE&&(r.addListener(e.renderer.scrollBarV.element,"mousedown",n),r.addListener(e.renderer.scrollBarH.element,"mousedown",n))),r.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel")),r.addTouchMoveListener(e.container,this.onTouchMove.bind(this,"touchmove"));var l=e.renderer.$gutter;r.addListener(l,"mousedown",this.onMouseEvent.bind(this,"guttermousedown")),r.addListener(l,"click",this.onMouseEvent.bind(this,"gutterclick")),r.addListener(l,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick")),r.addListener(l,"mousemove",this.onMouseEvent.bind(this,"guttermousemove")),r.addListener(s,"mousedown",n),r.addListener(l,"mousedown",(function(t){return e.focus(),r.preventDefault(t)})),e.on("mousemove",(function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var r=e.renderer.screenToTextCoordinates(n.x,n.y),i=e.session.selection.getRange(),o=e.renderer;!i.isEmpty()&&i.insideStart(r.row,r.column)?o.setCursorStyle("default"):o.setCursorStyle("")}}))};(function(){this.onMouseEvent=function(e,t){this.editor._emit(e,new s(t,this.editor))},this.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))},this.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)},this.onTouchMove=function(e,t){var n=new s(t,this.editor);n.speed=1,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor.renderer;n.$keepTextAreaAtCursor&&(n.$keepTextAreaAtCursor=null);var o=this,a=function(e){if(e){if(i.isWebKit&&!e.which&&o.releaseMouse)return o.releaseMouse();o.x=e.clientX,o.y=e.clientY,t&&t(e),o.mouseEvent=new s(e,o.editor),o.$mouseMoved=!0}},c=function(e){clearInterval(u),l(),o[o.state+"End"]&&o[o.state+"End"](e),o.state="",null==n.$keepTextAreaAtCursor&&(n.$keepTextAreaAtCursor=!0,n.$moveTextAreaToCursor()),o.isMousePressed=!1,o.$onCaptureMouseMove=o.releaseMouse=null,e&&o.onMouseEvent("mouseup",e)},l=function(){o[o.state]&&o[o.state](),o.$mouseMoved=!1};if(i.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout((function(){c(e)}));o.$onCaptureMouseMove=a,o.releaseMouse=r.capture(this.editor.container,a,c);var u=setInterval(l,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&r.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)}}).call(u.prototype),l.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:i.isMac?150:0},dragEnabled:{initialValue:!0},focusTimout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=u})),ace.define("ace/mouse/fold_handler",["require","exports","module"],(function(e,t,n){"use strict";t.FoldHandler=function(e){e.on("click",(function(t){var n=t.getDocumentPosition(),r=e.session,i=r.getFoldAt(n.row,n.column,1);i&&(t.getAccelKey()?r.removeFold(i):r.expandFold(i),t.stop())})),e.on("gutterclick",(function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,r=e.session;r.foldWidgets&&r.foldWidgets[n]&&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,r=e.session,i=r.getParentFoldRangeData(n,!0),o=i.range||i.firstRange;if(o){n=o.start.row;var a=r.getFoldAt(n,r.getLine(n).length,1);a?r.removeFold(a):(r.addFold("...",o),e.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}t.stop()}}))}})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(e,t,n){"use strict";var r=e("../lib/keys"),i=e("../lib/event"),o=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.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)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.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(" ")},this.$callKeyboardHandlers=function(e,t,n,r){for(var o,a=!1,s=this.$editor.commands,c=this.$handlers.length;c--&&!((o=this.$handlers[c].handleKeyboard(this.$data,e,t,n,r))&&o.command&&((a="null"==o.command||s.exec(o.command,this.$editor,o.args,r))&&r&&-1!=e&&1!=o.passEvent&&1!=o.command.passEvent&&i.stopEvent(r),a)););return a||-1!=e||(o={command:"insertstring"},a=s.exec("insertstring",this.$editor,t)),a&&this.$editor._signal("keyboardActivity",o),a},this.onCommandKey=function(e,t,n){var i=r.keyCodeToString(n);this.$callKeyboardHandlers(t,i,n,e)},this.onTextInput=function(e){this.$callKeyboardHandlers(-1,e)}}).call(o.prototype),t.KeyBinding=o})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){"use strict";var i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.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},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,r=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(r.row,r.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(r.row,r.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==r(e)?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==r(e)?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)&&!this.isStart(e,t)},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?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},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else this.end.row<e&&(n={row:e,column:0});if(this.start.row>t)var r={row:t+1,column:0};else this.start.row<e&&(r={row:e,column:0});return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(0==n)return this;if(-1==n)var r={row:e,column:t};else var o={row:e,column:t};return i.fromPoints(r||this.start,o||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/lang"),o=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.lead=this.selectionLead=this.doc.createAnchor(0,0),this.anchor=this.selectionAnchor=this.doc.createAnchor(0,0);var t=this;this.lead.on("change",(function(e){t._emit("changeCursor"),t.$isEmpty||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.selectionAnchor.on("change",(function(){t.$isEmpty||t._emit("changeSelection")}))};(function(){r.implement(this,o),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.isEmpty()&&this.getRange().isMultiLine()},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.anchor.setPosition(e,t),this.$isEmpty&&(this.$isEmpty=!1,this._emit("changeSelection"))},this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.shiftSelection=function(e){if(this.$isEmpty)this.moveCursorTo(this.lead.row,this.lead.column+e);else{var t=this.getSelectionAnchor(),n=this.getSelectionLead(),r=this.isBackwards();r&&0===t.column||this.setSelectionAnchor(t.row,t.column+e),(r||0!==n.column)&&this.$moveSelection((function(){this.moveCursorTo(n.row,n.column+e)}))}},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.isEmpty()?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var e=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(e,this.doc.getLine(e).length)},this.setRange=this.setSelectionRange=function(e,t){t?(this.setSelectionAnchor(e.end.row,e.end.column),this.selectTo(e.start.row,e.start.column)):(this.setSelectionAnchor(e.start.row,e.start.column),this.selectTo(e.end.row,e.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,r="number"==typeof e?e:this.lead.row,i=this.session.getFoldLine(r);return i?(r=i.start.row,n=i.end.row):n=r,!0===t?new a(r,0,n,this.session.getLine(n).length):new a(r,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.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.session.isTabStop(t)&&this.doc.getLine(t.row).slice(t.column-n,t.column).split(" ").length-1==n?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.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.session.isTabStop(t)&&this.doc.getLine(t.row).slice(t.column,t.column+n).split(" ").length-1==n?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),r=this.session.screenToDocumentPosition(n,0),i=this.session.getDisplayLine(e,null,r.row,r.column).match(/^\s*/);i[0].length==t||this.session.$useEmacsStyleLineStart||(r.column+=i[0].length),this.moveCursorToPosition(r)},this.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 r=n.search(/\s+$/);r>0&&(t.column=r)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var i=this.session.getFoldAt(e,t,1);if(i)this.moveCursorTo(i.end.row,i.end.column);else{if(this.session.nonTokenRe.exec(r)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,r=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(r)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.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 r=this.session.getFoldStringAt(t,n,-1);null==r&&(r=this.doc.getLine(t).substring(0,n));var o=i.stringReverse(r);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(o)&&(n-=this.session.nonTokenRe.lastIndex,o=o.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(o)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,r=/\s/,i=this.session.tokenRe;if(i.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&r.test(t);)n++;if(n<1)for(i.lastIndex=0;(t=e[n])&&!i.test(t);)if(i.lastIndex=0,n++,r.test(t)){if(n>2){n--;break}for(;(t=e[n])&&r.test(t);)n++;if(n>2)break}}return i.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t),i=this.session.getFoldAt(e,t,1);if(i)return this.moveCursorTo(i.end.row,i.end.column);if(t==n.length){var o=this.doc.getLength();do{e++,r=this.doc.getLine(e)}while(e<o&&/^\s*$/.test(r));/^\s+/.test(r)||(r=""),t=0}var a=this.$shortWordEndIndex(r);this.moveCursorTo(e,t+a)},this.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 r=this.session.getLine(t).substring(0,n);if(0===n){do{t--,r=this.doc.getLine(t)}while(t>0&&/^\s*$/.test(r));n=r.length,/\s+$/.test(r)||(r="")}var o=i.stringReverse(r),a=this.$shortWordEndIndex(o);return this.moveCursorTo(t,n-a)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n=this.session.documentToScreenPosition(this.lead.row,this.lead.column);0===t&&(this.$desiredColumn?n.column=this.$desiredColumn:this.$desiredColumn=n.column);var r=this.session.screenToDocumentPosition(n.row+e,n.column);0!==e&&0===t&&r.row===this.lead.row&&r.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[r.row]&&(r.row>0||e>0)&&r.row++,this.moveCursorTo(r.row,r.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var r=this.session.getFoldAt(e,t,1);r&&(e=r.start.row,t=r.start.column),this.$keepDesiredColumnOnChange=!0,this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var r=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(r.row,r.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.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},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e.call(null,this);var n=this.getCursor();return a.fromPoints(t,n)}catch(e){return a.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.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},this.fromJSON=function(e){if(null==e.start){if(this.rangeList){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=a.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(s.prototype),t.Selection=s})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,n){"use strict";var r=e("./config"),i=2e3,o=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],r=[],i=0,o=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],c=0;c<n.length;c++){var l=n[c];if(l.defaultToken&&(o.defaultToken=l.defaultToken),l.caseInsensitive&&(a="gi"),null!=l.regex){l.regex instanceof RegExp&&(l.regex=l.regex.toString().slice(1,-1));var u=l.regex,h=new RegExp("(?:("+u+")|(.))").exec("a").length-2;Array.isArray(l.token)?1==l.token.length||1==h?l.token=l.token[0]:h-1!=l.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:l,groupCount:h-1}),l.token=l.token[0]):(l.tokenArray=l.token,l.token=null,l.onMatch=this.$arrayTokens):"function"!=typeof l.token||l.onMatch||(l.onMatch=h>1?this.$applyToken:l.token),h>1&&(/\\\d/.test(l.regex)?u=l.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+i+1)})):(h=1,u=this.removeCapturingGroups(l.regex)),l.splitRegex||"string"==typeof l.token||s.push(l)),o[i]=c,i+=h,r.push(u),l.onMatch||(l.onMatch=null)}}r.length||(o[0]=0,r.push("$")),s.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)}),this),this.regExps[t]=new RegExp("("+r.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){i=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var r=[],i=0,o=n.length;i<o;i++)t[i]&&(r[r.length]={type:n[i],value:t[i]});return r},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],r=this.tokenArray,i=0,o=r.length;i<o;i++)t[i+1]&&(n[n.length]={type:r[i],value:t[i+1]});return n},this.removeCapturingGroups=function(e){return e.replace(/\[(?:\\.|[^\]])*?\]|\\.|\(\?[:=!]|(\()/g,(function(e,t){return t?"(?:":e}))},this.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var n=0,r=!1,i={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(e,t,o,a,s,c){return r?r="]"!=s:s?r=!0:a?(n==i.stack&&(i.end=c+1,i.stack=-1),n--):o&&(n++,1!=o.length&&(i.stack=n,i.start=c)),e})),null!=i.end&&/^\)*$/.test(e.substr(i.end))&&(e=e.substring(0,i.start)+e.substr(i.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){if(t&&"string"!=typeof t){var n=t.slice(0);"#tmp"===(t=n[0])&&(n.shift(),t=n.shift())}else n=[];var r=t||"start",o=this.states[r];o||(r="start",o=this.states[r]);var a=this.matchMappings[r],s=this.regExps[r];s.lastIndex=0;for(var c,l=[],u=0,h=0,d={type:null,value:""};c=s.exec(e);){var f=a.defaultToken,p=null,g=c[0],m=s.lastIndex;if(m-g.length>u){var E=e.substring(u,m-g.length);d.type==f?d.value+=E:(d.type&&l.push(d),d={type:f,value:E})}for(var v=0;v<c.length-2;v++)if(void 0!==c[v+1]){f=(p=o[a[v]]).onMatch?p.onMatch(g,r,n):p.token,p.next&&(r="string"==typeof p.next?p.next:p.next(r,n),(o=this.states[r])||(this.reportError("state doesn't exist",r),r="start",o=this.states[r]),a=this.matchMappings[r],u=m,(s=this.regExps[r]).lastIndex=m);break}if(g)if("string"==typeof f)p&&!1===p.merge||d.type!==f?(d.type&&l.push(d),d={type:f,value:g}):d.value+=g;else if(f)for(d.type&&l.push(d),d={type:null,value:""},v=0;v<f.length;v++)l.push(f[v]);if(u==e.length)break;if(u=m,h++>i){for(h>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});u<e.length;)d.type&&l.push(d),d={value:e.substring(u,u+=2e3),type:"overflow"};r="start",n=[];break}}return d.type&&l.push(d),n.length>1&&n[0]!==r&&n.unshift("#tmp",r),{tokens:l,state:n.length?n:r}},this.reportError=r.reportError}).call(o.prototype),t.Tokenizer=o})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("../lib/lang"),i=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var r=e[n],i=0;i<r.length;i++){var o=r[i];(o.next||o.onMatch)&&("string"==typeof o.next&&0!==o.next.indexOf(t)&&(o.next=t+o.next),o.nextState&&0!==o.nextState.indexOf(t)&&(o.nextState=t+o.nextState))}this.$rules[t+n]=r}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,i,o){var a="function"==typeof e?(new e).getRules():e;if(i)for(var s=0;s<i.length;s++)i[s]=t+i[s];else for(var c in i=[],a)i.push(t+c);if(this.addRules(a,t),n){var l=Array.prototype[o?"push":"unshift"];for(s=0;s<i.length;s++)l.apply(this.$rules[i[s]],r.deepCopy(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(){var n=0,r=this.$rules;Object.keys(r).forEach((function i(o){var a=r[o];a.processed=!0;for(var s=0;s<a.length;s++){var c=a[s];!c.regex&&c.start&&(c.regex=c.start,c.next||(c.next=[]),c.next.push({defaultToken:c.token},{token:c.token+".end",regex:c.end||c.start,next:"pop"}),c.token=c.token+".start",c.push=!0);var l=c.next||c.push;if(l&&Array.isArray(l)){var u=c.stateName;u||("string"!=typeof(u=c.token)&&(u=u[0]||""),r[u]&&(u+=n++)),r[u]=l,c.next=u,i(u)}else"pop"==l&&(c.next=t);if(c.push&&(c.nextState=c.next||c.push,c.next=e,delete c.push),c.rules)for(var h in c.rules)r[h]?r[h].push&&r[h].push.apply(r[h],c.rules[h]):r[h]=c.rules[h];if(c.include||"string"==typeof c)var d=c.include||c,f=r[d];else Array.isArray(c)&&(f=c);if(f){var p=[s,1].concat(f);c.noEscape&&(p=p.filter((function(e){return!e.next}))),a.splice.apply(a,p),s--,f=null}c.keywordMap&&(c.token=this.createKeywordMapper(c.keywordMap,c.defaultToken||"text",c.caseInsensitive),delete c.defaultToken)}}),this)},this.createKeywordMapper=function(e,t,n,r){var i=Object.create(null);return Object.keys(e).forEach((function(t){var o=e[t];n&&(o=o.toLowerCase());for(var a=o.split(r||"|"),s=a.length;s--;)i[a[s]]=t})),Object.getPrototypeOf(i)&&(i.__proto__=null),this.$keywordList=Object.keys(i),e=null,n?function(e){return i[e.toLowerCase()]||t}:function(e){return i[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(i.prototype),t.TextHighlightRules=i})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(e,t,n){"use strict";var r=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},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[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call(r.prototype),t.Behaviour=r})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){"use strict";t.packages={},function(e){var n=/\w{4}/g;for(var r in e)t.packages[r]=e[r].replace(n,"\\u$&")}({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"})})),ace.define("ace/token_iterator",["require","exports","module"],(function(e,t,n){"use strict";var r=function(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var r=e.getTokenAt(t,n);this.$tokenIndex=r?r.index:-1};(function(){this.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[this.$tokenIndex]},this.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[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;for(n=0;t>0;)n+=e[t-=1].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}}}).call(r.prototype),t.TokenIterator=r})),ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var i=e("../tokenizer").Tokenizer,o=e("./text_highlight_rules").TextHighlightRules,a=e("./behaviour").Behaviour,s=e("../unicode"),c=e("../lib/lang"),l=e("../token_iterator").TokenIterator,u=e("../range").Range,h=function(){this.HighlightRules=o,this.$behaviour=new a};(function(){this.tokenRe=new RegExp("^["+s.packages.L+s.packages.Mn+s.packages.Mc+s.packages.Nd+s.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+s.packages.L+s.packages.Mn+s.packages.Mc+s.packages.Nd+s.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules,this.$tokenizer=new i(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,r){var i=t.doc,o=!0,a=!0,s=1/0,l=t.getTabSize(),u=!1;if(this.lineCommentStart){Array.isArray(this.lineCommentStart)?(g=this.lineCommentStart.map(c.escapeRegExp).join("|"),f=this.lineCommentStart[0]):(g=c.escapeRegExp(this.lineCommentStart),f=this.lineCommentStart),g=new RegExp("^(\\s*)(?:"+g+") ?"),u=t.getUseSoftTabs(),v=function(e,t){var n=e.match(g);if(n){var r=n[1].length,o=n[0].length;d(e,r,o)||" "!=n[0][o-1]||o--,i.removeInLine(t,r,o)}};var h=f+" ",d=(E=function(e,t){o&&!/\S/.test(e)||(d(e,s,s)?i.insertInLine({row:t,column:s},h):i.insertInLine({row:t,column:s},f))},y=function(e,t){return g.test(e)},function(e,t,n){for(var r=0;t--&&" "==e.charAt(t);)r++;if(r%l!=0)return!1;for(r=0;" "==e.charAt(n++);)r++;return l>2?r%l!=l-1:r%l==0})}else{if(!this.blockComment)return!1;var f=this.blockComment.start,p=this.blockComment.end,g=new RegExp("^(\\s*)(?:"+c.escapeRegExp(f)+")"),m=new RegExp("(?:"+c.escapeRegExp(p)+")\\s*$"),E=function(e,t){y(e,t)||o&&!/\S/.test(e)||(i.insertInLine({row:t,column:e.length},p),i.insertInLine({row:t,column:s},f))},v=function(e,t){var n;(n=e.match(m))&&i.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(g))&&i.removeInLine(t,n[1].length,n[0].length)},y=function(e,n){if(g.test(e))return!0;for(var r=t.getTokens(n),i=0;i<r.length;i++)if("comment"===r[i].type)return!0}}function b(e){for(var t=n;t<=r;t++)e(i.getLine(t),t)}var A=1/0;b((function(e,t){var n=e.search(/\S/);-1!==n?(n<s&&(s=n),a&&!y(e,t)&&(a=!1)):A>e.length&&(A=e.length)})),s==1/0&&(s=A,o=!1,a=!1),u&&s%l!=0&&(s=Math.floor(s/l)*l),b(a?v:E)},this.toggleBlockComment=function(e,t,n,r){var i=this.blockComment;if(i){!i.start&&i[0]&&(i=i[0]);var o,a,s=(g=new l(t,r.row,r.column)).getCurrentToken(),c=(t.selection,t.selection.toOrientedRange());if(s&&/comment/.test(s.type)){for(var h,d;s&&/comment/.test(s.type);){if(-1!=(m=s.value.indexOf(i.start))){var f=g.getCurrentTokenRow(),p=g.getCurrentTokenColumn()+m;h=new u(f,p,f,p+i.start.length);break}s=g.stepBackward()}var g;for(s=(g=new l(t,r.row,r.column)).getCurrentToken();s&&/comment/.test(s.type);){var m;if(-1!=(m=s.value.indexOf(i.end))){f=g.getCurrentTokenRow(),p=g.getCurrentTokenColumn()+m,d=new u(f,p,f,p+i.end.length);break}s=g.stepForward()}d&&t.remove(d),h&&(t.remove(h),o=h.start.row,a=-i.start.length)}else a=i.start.length,o=n.start.row,t.insert(n.end,i.end),t.insert(n.start,i.start);c.start.row==o&&(c.start.column+=a),c.end.row==o&&(c.end.column+=a),t.selection.fromOrientedRange(c)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)e[t]&&(this.$embeds.push(t),this.$modes[t]=new e[t]);var n=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;t<n.length;t++)!function(e){var r=n[t],i=e[r];e[n[t]]=function(){return this.$delegator(r,arguments,i)}}(this)},this.$delegator=function(e,t,n){var r=t[0];"string"!=typeof r&&(r=r[0]);for(var i=0;i<this.$embeds.length;i++)if(this.$modes[this.$embeds[i]]){var o=r.split(this.$embeds[i]);if(!o[0]&&o[1]){t[0]=o[1];var a=this.$modes[this.$embeds[i]];return a[e].apply(a,t)}}var s=n.apply(this,t);return n?s:void 0},this.transformAction=function(e,t,n,r,i){if(this.$behaviour){var o=this.$behaviour.getBehaviours();for(var a in o)if(o[a][t]){var s=o[a][t].apply(this,arguments);if(s)return s}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var i in t)for(var o=t[i],a=0,s=o.length;a<s;a++)if("string"==typeof o[a].token)/keyword|support|storage/.test(o[a].token)&&n.push(o[a].regex);else if("object"===r(o[a].token))for(var c=0,l=o[a].token.length;c<l;c++)/keyword|support|storage/.test(o[a].token[c])&&(i=o[a].regex.match(/\(.+?\)/g)[c],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(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{name:e,value:e,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call(h.prototype),t.Mode=h})),ace.define("ace/apply_delta",["require","exports","module"],(function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,o=e[r]||"";switch(t.action){case"insert":if(1===t.lines.length)e[r]=o.substring(0,i)+t.lines[0]+o.substring(i);else{var a=[r,1].concat(t.lines);e.splice.apply(e,a),e[r]=o.substring(0,i)+e[r],e[r+t.lines.length-1]+=o.substring(i)}break;case"remove":var s=t.end.column,c=t.end.row;r===c?e[r]=o.substring(0,i)+o.substring(s):e.splice(r,c-r+1,o.substring(0,i)+e[c].substring(s))}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),void 0===n?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(t){if(!(t.start.row==t.end.row&&t.start.row!=this.row||t.start.row>this.row)){var n=function(t,n,r){var i="insert"==t.action,o=(i?1:-1)*(t.end.row-t.start.row),a=(i?1:-1)*(t.end.column-t.start.column),s=t.start,c=i?s:t.end;return e(n,s,r)?{row:n.row,column:n.column}:e(c,n,!r)?{row:n.row+o,column:n.column+(n.row==c.row?a:0)}:{row:s.row,column:s.column}}(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(o.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=e("./anchor").Anchor,c=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,o),this.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new s(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return null==t&&(t=r.length),{row:e,column:t=Math.min(Math.max(t,0),r.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:"insert",lines:t}),this.clonePos(r)},this.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)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:"remove",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.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,r=t<this.getLength()-1,i=n?e-1:e,o=n?this.getLine(i).length:0,s=r?t+1:t,c=r?0:this.getLine(s).length,l=new a(i,o,s,c),u=this.$lines.slice(e,t+1);return this.applyDelta({start:l.start,end:l.end,action:"remove",lines:this.getLinesForRange(l)}),u},this.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:["",""]})},this.replace=function(e,t){return e instanceof a||(e=a.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!a.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4&&this.$splitAndapplyLargeDelta(e,2e4),i(this.$lines,e,t),this._signal("change",e))},this.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,r=n.length,i=e.start.row,o=e.start.column,a=0,s=0;;){a=s,s+=t-1;var c=n.slice(a,s);if(s>r){e.lines=c,e.start.row=i+a,e.start.column=o;break}c.push(""),this.applyDelta({start:this.pos(i+a,o),end:this.pos(i+s,o=0),action:e.action,lines:c},!0)}},this.revertDelta=function(e){this.applyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=t||0,o=n.length;i<o;i++)if((e-=n[i].length+r)<0)return{row:i,column:e+n[i].length+r};return{row:o-1,column:n[o-1].length}},this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,o=Math.min(e.row,n.length),a=t||0;a<o;++a)i+=n[a].length+r;return i+e.column}}).call(c.prototype),t.Document=c})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(n.running){for(var e=new Date,t=n.currentLine,r=-1,i=n.doc,o=t;n.lines[t];)t++;var a=i.getLength(),s=0;for(n.running=!1;t<a;){n.$tokenizeRow(t),r=t;do{t++}while(n.lines[t]);if(++s%5==0&&new Date-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,o<=r&&n.fireUpdateEvent(o,r)}}};(function(){r.implement(this,i),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.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)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],r=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=r.state+""?(this.states[e]=r.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=r.tokens}}).call(o.prototype),t.BackgroundTokenizer=o})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),i=(e("./lib/oop"),e("./range").Range),o=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,o){if(this.regExp)for(var a=o.firstRow,s=o.lastRow,c=a;c<=s;c++){var l=this.cache[c];null==l&&((l=r.getMatchOffsets(n.getLine(c),this.regExp)).length>this.MAX_RANGES&&(l=l.slice(0,this.MAX_RANGES)),l=l.map((function(e){return new i(c,e.offset,c,e.offset+e.length)})),this.cache[c]=l.length?l:"");for(var u=l.length;u--;)t.drawSingleLineMarker(e,l[u].toScreenRange(n),this.clazz,o)}}}).call(o.prototype),t.SearchHighlight=o})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range;function i(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new r(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.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},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var r,i,o=0,a=this.folds,s=!0;null==t&&(t=this.end.row,n=this.end.column);for(var c=0;c<a.length;c++){if(-1==(i=(r=a[c]).range.compareStart(t,n)))return void e(null,t,n,o,s);if(!e(null,r.start.row,r.start.column,o,s)&&e(r.placeholder,r.start.row,r.start.column,o)||0===i)return;s=!r.sameRow,o=r.end.column}e(null,t,n,o,s)},this.getNextFoldTo=function(e,t){for(var n,r,i=0;i<this.folds.length;i++){if(-1==(r=(n=this.folds[i]).range.compareEnd(e,t)))return{fold:n,kind:"after"};if(0===r)return{fold:n,kind:"inside"}}return null},this.addRemoveChars=function(e,t,n){var r,i,o=this.getNextFoldTo(e,t);if(o)if(r=o.fold,"inside"==o.kind&&r.start.column!=t&&r.start.row!=e)window.console&&window.console.log(e,t,r);else if(r.start.row==e){var a=(i=this.folds).indexOf(r);for(0===a&&(this.start.column+=n);a<i.length;a++){if((r=i[a]).start.column+=n,!r.sameRow)return;r.end.column+=n}this.end.column+=n}},this.split=function(e,t){var n=this.getNextFoldTo(e,t);if(!n||"inside"==n.kind)return null;var r=n.fold,o=this.folds,a=this.foldData,s=o.indexOf(r),c=o[s-1];this.end.row=c.end.row,this.end.column=c.end.column;var l=new i(a,o=o.splice(s,o.length-s));return a.splice(a.indexOf(this)+1,0,l),l},this.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var r=this.foldData;r.splice(r.indexOf(e),1)},this.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach((function(t){e.push(" "+t.toString())})),e.push("]"),e.join("\n")},this.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var r=this.folds[n];if((e-=r.start.column-t)<0)return{row:r.start.row,column:r.start.column+e};if((e-=r.placeholder.length)<0)return r.start;t=r.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(i.prototype),t.FoldLine=i})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("./range").Range.comparePoints,i=function(){this.ranges=[]};(function(){this.comparePoints=r,this.pointIndex=function(e,t,n){for(var i=this.ranges,o=n||0;o<i.length;o++){var a=i[o],s=r(e,a.end);if(!(s>0)){var c=r(e,a.start);return 0===s?t&&0!==c?-o-2:o:c>0||0===c&&!t?o:-o-1}}return-o-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var r=this.pointIndex(e.end,t,n);return r<0?r=-r-1:r++,this.ranges.splice(n,r-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.call(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],n=this.ranges,i=(n=n.sort((function(e,t){return r(e.start,t.start)})))[0],o=1;o<n.length;o++){e=i,i=n[o];var a=r(e.end,i.start);a<0||(0!=a||e.isEmpty()||i.isEmpty())&&(r(e.end,i.end)<0&&(e.end.row=i.end.row,e.end.column=i.end.column),n.splice(o,1),t.push(i),i=e,o--)}return this.ranges=n,t},this.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var r=this.pointIndex({row:e,column:0});r<0&&(r=-r-1);var i=this.pointIndex({row:t,column:0},r);i<0&&(i=-i-1);for(var o=[],a=r;a<i;a++)o.push(n[a]);return o},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){if("insert"==e.action)var t=e.start,n=e.end;else n=e.start,t=e.end;for(var r=t.row,i=n.row-r,o=-t.column+n.column,a=this.ranges,s=0,c=a.length;s<c;s++)if(!((l=a[s]).end.row<r)){if(l.start.row>r)break;if(l.start.row==r&&l.start.column>=t.column&&(l.start.column==t.column&&this.$insertRight||(l.start.column+=o,l.start.row+=i)),l.end.row==r&&l.end.column>=t.column){if(l.end.column==t.column&&this.$insertRight)continue;l.end.column==t.column&&o>0&&s<c-1&&l.end.column>l.start.column&&l.end.column==a[s+1].start.column&&(l.end.column-=o),l.end.column+=o,l.end.row+=i}}if(0!=i&&s<c)for(;s<c;s++){var l;(l=a[s]).start.row+=i,l.end.row+=i}}}).call(i.prototype),t.RangeList=i})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range","ace/range_list","ace/lib/oop"],(function(e,t,n){"use strict";e("../range").Range;var r=e("../range_list").RangeList,i=e("../lib/oop"),o=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};function a(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function s(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}i.inherits(o,r),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach((function(t){t.setFoldLine(e)}))},this.clone=function(){var e=this.range.clone(),t=new o(e,this.placeholder);return this.subFolds.forEach((function(e){t.subFolds.push(e.clone())})),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){if(!this.range.containsRange(e))throw new Error("A fold can't intersect already existing fold"+e.range+this.range);var t,n;t=e,n=this.start,a(t.start,n),a(t.end,n);for(var r=e.start.row,i=e.start.column,o=0,s=-1;o<this.subFolds.length&&1==(s=this.subFolds[o].range.compare(r,i));o++);var c=this.subFolds[o];if(0==s)return c.addSubFold(e);r=e.range.end.row,i=e.range.end.column;var l=o;for(s=-1;l<this.subFolds.length&&1==(s=this.subFolds[l].range.compare(r,i));l++);if(this.subFolds[l],0==s)throw new Error("A fold can't intersect already existing fold"+e.range+this.range);return this.subFolds.splice(o,l-o,e),e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return function(e,t){s(e.start,t),s(e.end,t)}(e,this.start)}}.call(o.prototype)})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../range").Range,i=e("./fold_line").FoldLine,o=e("./fold").Fold,a=e("../token_iterator").TokenIterator;t.Folding=function(){this.getFoldAt=function(e,t,n){var r=this.getFoldLine(e);if(!r)return null;for(var i=r.folds,o=0;o<i.length;o++){var a=i[o];if(a.range.contains(e,t)){if(1==n&&a.range.isEnd(e,t))continue;if(-1==n&&a.range.isStart(e,t))continue;return a}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,r=this.$foldData,i=[];t.column+=1,n.column-=1;for(var o=0;o<r.length;o++){var a=r[o].range.compareRange(e);if(2!=a){if(-2==a)break;for(var s=r[o].folds,c=0;c<s.length;c++){var l=s[c];if(-2==(a=l.range.compareRange(e)))break;if(2!=a){if(42==a)break;i.push(l)}}}}return t.column-=1,n.column+=1,i},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 r=0;r<t[n].folds.length;r++)e.push(t[n].folds[r]);return e},this.getFoldStringAt=function(e,t,n,r){if(!(r=r||this.getFoldLine(e)))return null;for(var i,o,a={end:{column:0}},s=0;s<r.folds.length;s++){var c=(o=r.folds[s]).range.compareEnd(e,t);if(-1==c){i=this.getLine(o.start.row).substring(a.end.column,o.start.column);break}if(0===c)return null;a=o}return i||(i=this.getLine(o.start.row).substring(a.end.column)),-1==n?i.substring(0,t-a.end.column):1==n?i.substring(t-a.end.column):i},this.getFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0);r<n.length;r++){var i=n[r];if(i.start.row<=e&&i.end.row>=e)return i;if(i.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0);r<n.length;r++){var i=n[r];if(i.end.row>=e)return i}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,r=t-e+1,i=0;i<n.length;i++){var o=n[i],a=o.end.row,s=o.start.row;if(a>=t){s<t&&(s>=e?r-=t-s:r=0);break}a>=e&&(r-=s>=e?a-s:a-e+1)}return r},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,r=this.$foldData,a=!1;e instanceof o?n=e:(n=new o(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range);var s=n.start.row,c=n.start.column,l=n.end.row,u=n.end.column;if(!(s<l||s==l&&c<=u-2))throw new Error("The range has to be at least 2 characters width");var h=this.getFoldAt(s,c,1),d=this.getFoldAt(l,u,-1);if(h&&d==h)return h.addSubFold(n);h&&!h.range.isStart(s,c)&&this.removeFold(h),d&&!d.range.isEnd(l,u)&&this.removeFold(d);var f=this.getFoldsInRange(n.range);f.length>0&&(this.removeFolds(f),f.forEach((function(e){n.addSubFold(e)})));for(var p=0;p<r.length;p++){var g=r[p];if(l==g.start.row){g.addFold(n),a=!0;break}if(s==g.end.row){if(g.addFold(n),a=!0,!n.sameRow){var m=r[p+1];if(m&&m.start.row==l){g.merge(m);break}}break}if(l<=g.start.row)break}return a||(g=this.$addFoldLine(new i(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.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,r=t.end.row,i=this.$foldData,o=t.folds;if(1==o.length)i.splice(i.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))o.pop(),t.end.row=o[o.length-1].end.row,t.end.column=o[o.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))o.shift(),t.start.row=o[0].start.row,t.start.column=o[0].start.column;else if(e.sameRow)o.splice(o.indexOf(e),1);else{var a=t.split(e.start.row,e.start.column);(o=a.folds).shift(),a.start.row=o[0].start.row,a.start.column=o[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,r):this.$updateRowLengthCache(n,r)),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[n]);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,i;if(null==e?(n=new r(0,0,this.getLength(),0),t=!0):n="number"==typeof e?new r(e,0,e,this.getLine(e).length):"row"in e?r.fromPoints(e,e):e,i=this.getFoldsInRangeList(n),t)this.removeFolds(i);else for(var o=i;o.length;)this.expandFolds(o),o=this.getFoldsInRangeList(n);if(i.length)return i},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,r,i){null==r&&(r=e.start.row),null==i&&(i=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var o=this.doc,a="";return e.walk((function(e,t,n,s){if(!(t<r)){if(t==r){if(n<i)return;s=Math.max(i,s)}a+=null!=e?e:o.getLine(t).substring(s,n)}}),t,n),a},this.getDisplayLine=function(e,t,n,r){var i,o=this.getFoldLine(e);return o?this.getFoldDisplayLine(o,e,t,n,r):(i=this.doc.getLine(e)).substring(r||0,t||i.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 i(e,n)}))},this.toggleFold=function(e){var t,n,r=this.selection.getRange();if(r.isEmpty()){var i=r.start;if(t=this.getFoldAt(i.row,i.column))return void this.expandFold(t);(n=this.findMatchingBracket(i))?1==r.comparePoint(n)?r.end=n:(r.start=n,r.start.column++,r.end.column--):(n=this.findMatchingBracket({row:i.row,column:i.column+1}))?(1==r.comparePoint(n)?r.end=n:r.start=n,r.start.column++):r=this.getCommentFoldRange(i.row,i.column)||r}else{var o=this.getFoldsInRange(r);if(e&&o.length)return void this.expandFolds(o);1==o.length&&(t=o[0])}if(t||(t=this.getFoldAt(r.start.row,r.start.column)),t&&t.range.toString()==r.toString())this.expandFold(t);else{var a="...";if(!r.isMultiLine()){if((a=this.getTextRange(r)).length<4)return;a=a.trim().substring(0,2)+".."}this.addFold(a,r)}},this.getCommentFoldRange=function(e,t,n){var i=new a(this,e,t),o=i.getCurrentToken();if(o&&/^comment|string/.test(o.type)){var s=new r,c=new RegExp(o.type.replace(/\..*/,"\\."));if(1!=n){do{o=i.stepBackward()}while(o&&c.test(o.type));i.stepForward()}if(s.start.row=i.getCurrentTokenRow(),s.start.column=i.getCurrentTokenColumn()+2,i=new a(this,e,t),-1!=n){do{o=i.stepForward()}while(o&&c.test(o.type));o=i.stepBackward()}else o=i.getCurrentToken();return s.end.row=i.getCurrentTokenRow(),s.end.column=i.getCurrentTokenColumn()+o.value.length-2,s}},this.foldAll=function(e,t,n){null==n&&(n=1e5);var r=this.foldWidgets;if(r){t=t||this.getLength();for(var i=e=e||0;i<t;i++)if(null==r[i]&&(r[i]=this.getFoldWidget(i)),"start"==r[i]){var o=this.getFoldWidgetRange(i);if(o&&o.isMultiLine()&&o.end.row<=t&&o.start.row>=e){i=o.end.row;try{var a=this.addFold("...",o);a&&(a.collapseChildren=n)}catch(e){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])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[e])return{};for(var r,i=e-1;i>=0;){var o=n[i];if(null==o&&(o=n[i]=this.getFoldWidget(i)),"start"==o){var a=this.getFoldWidgetRange(i);if(r||(r=a),a&&a.end.row>=e)break}i--}return{range:-1!==i&&a,firstRange:r}},this.onFoldWidgetClick=function(e,t){var n={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var r=t.target||t.srcElement;r&&/ace_fold-widget/.test(r.className)&&(r.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),r=this.getLine(e),i="end"===n?-1:1,o=this.getFoldAt(e,-1===i?0:r.length,i);if(o)t.children||t.all?this.removeFold(o):this.expandFold(o);else{var a=this.getFoldWidgetRange(e,!0);if(!a||a.isMultiLine()||!(o=this.getFoldAt(a.start.row,a.start.column,1))||!a.isEqual(o.range)){if(t.siblings){var s=this.getParentFoldRangeData(e);if(s.range)var c=s.range.start.row+1,l=s.range.end.row;this.foldAll(c,l,t.all?1e4:0)}else t.children?(l=a?a.end.row:this.getLength(),this.foldAll(e+1,l,t.all?1e4:0)):a&&(t.all&&(a.collapseChildren=1e4),this.addFold("...",a));return a}this.removeFold(o)}}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var r=this.getParentFoldRangeData(t,!0);if(n=r.range||r.firstRange){t=n.start.row;var i=this.getFoldAt(t,this.getLine(t).length,1);i?this.removeFold(i):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,r)}},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)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var r=e("../token_iterator").TokenIterator,i=e("../range").Range;t.BracketMatch=function(){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 r=n.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),r=!0,o=n.charAt(e.column-1),a=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(a||(o=n.charAt(e.column),e={row:e.row,column:e.column+1},a=o&&o.match(/([\(\[\{])|([\)\]\}])/),r=!1),!a)return null;if(a[1]){if(!(s=this.$findClosingBracket(a[1],e)))return null;t=i.fromPoints(e,s),r||(t.end.column++,t.start.column--),t.cursor=t.end}else{var s;if(!(s=this.$findOpeningBracket(a[2],e)))return null;t=i.fromPoints(s,e),r||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(e,t,n){var i=this.$brackets[e],o=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var c=t.column-a.getCurrentTokenColumn()-2,l=s.value;;){for(;c>=0;){var u=l.charAt(c);if(u==i){if(0==(o-=1))return{row:a.getCurrentTokenRow(),column:c+a.getCurrentTokenColumn()}}else u==e&&(o+=1);c-=1}do{s=a.stepBackward()}while(s&&!n.test(s.type));if(null==s)break;c=(l=s.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var i=this.$brackets[e],o=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var c=t.column-a.getCurrentTokenColumn();;){for(var l=s.value,u=l.length;c<u;){var h=l.charAt(c);if(h==i){if(0==(o-=1))return{row:a.getCurrentTokenRow(),column:c+a.getCurrentTokenColumn()}}else h==e&&(o+=1);c+=1}do{s=a.stepForward()}while(s&&!n.test(s.type));if(null==s)break;c=0}return null}}}})),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/lang"),a=e("./config"),s=e("./lib/event_emitter").EventEmitter,c=e("./selection").Selection,l=e("./mode/text").Mode,u=e("./range").Range,h=e("./document").Document,d=e("./background_tokenizer").BackgroundTokenizer,f=e("./search_highlight").SearchHighlight,p=function(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==r(e)&&e.getLine||(e=new h(e)),this.setDocument(e),this.selection=new c(this),a.resetOptions(this),this.setMode(t),a._signal("session",this)};(function(){i.implement(this,s),this.setDocument=function(e){this.doc&&this.doc.removeListener("change",this.$onChange),this.doc=e,e.on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$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))},this.$getRowCacheIndex=function(e,t){for(var n=0,r=e.length-1;n<=r;){var i=n+r>>1,o=e[i];if(t>o)n=i+1;else{if(!(t<o))return i;r=i-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);this.$fromUndo||!this.$undoManager||e.ignore||(this.$deltasDoc.push(e),t&&0!=t.length&&this.$deltasFold.push({action:"removeFolds",folds:t}),this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var n,r=this.bgTokenizer.getTokens(e),i=0;if(null==t)o=r.length-1,i=this.getLine(e).length;else for(var o=0;o<r.length&&!((i+=r[o].value.length)>=t);o++);return(n=r[o])?(n.index=o,n.start=i-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.$deltasFold.length&&(t.$deltas.push({group:"fold",deltas:t.$deltasFold}),t.$deltasFold=[]),t.$deltasDoc.length&&(t.$deltas.push({group:"doc",deltas:t.$deltasDoc}),t.$deltasDoc=[]),t.$deltas.length>0&&e.execute({action:"aceupdate",args:[t.$deltas,t],merge:t.mergeUndoDeltas}),t.mergeUndoDeltas=!1,t.$deltas=[]},this.$informUndoManager=o.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?o.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,n,r){var i=this.$markerId++,o={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!r,id:i};return r?(this.$frontMarkers[i]=o,this._signal("changeFrontMarker")):(this.$backMarkers[i]=o,this._signal("changeBackMarker")),i},this.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];if(t){var n=t.inFront?this.$frontMarkers:this.$backMarkers;t&&(delete n[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))}},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,n,r){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var i=new u(e,0,t,1/0);return i.id=this.addMarker(i,n,"fullLine",r),i},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},this.getWordRange=function(e,t){var n=this.getLine(e),r=!1;if(t>0&&(r=!!n.charAt(t-1).match(this.tokenRe)),r||(r=!!n.charAt(t).match(this.tokenRe)),r)var i=this.tokenRe;else i=/^\s+$/.test(n.slice(t-1,t+1))?/\s/:this.nonTokenRe;var o=t;if(o>0){do{o--}while(o>=0&&n.charAt(o).match(i));o++}for(var a=t;a<n.length&&n.charAt(a).match(i);)a++;return new u(e,o,e,a)},this.getAWordRange=function(e,t){for(var n=this.getWordRange(e,t),r=this.getLine(n.end.row);r.charAt(n.end.column).match(/[ \t]/);)n.end.column+=1;return n},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes={},this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"===r(e)){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,i=n.path}else i=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[i]&&!n)return this.$onChangeMode(this.$modes[i]),void(t&&t());this.$modeId=i,a.loadModule(["mode",i],function(e){if(this.$modeId!==i)return t&&t();this.$modes[i]&&!n?this.$onChangeMode(this.$modes[i]):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes[i]=e,e.$id=i),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var n=e.getTokenizer();if(void 0!==n.addEventListener){var r=this.onReloadTokenizer.bind(this);n.addEventListener("update",r)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(n);else{this.bgTokenizer=new d(n);var i=this;this.bgTokenizer.addEventListener("update",(function(e){i._signal("tokenizerUpdate",e)}))}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"))}},this.$completers=[],this.setCompleters=function(e){this.$completers=e},this.getCompleters=function(){return this.$completers},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){a.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.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},this.$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,r=0,i=0,o=this.$foldData[i],a=o?o.start.row:1/0,s=t.length,c=0;c<s;c++){if(c>a){if((c=o.end.row+1)>=s)break;a=(o=this.$foldData[i++])?o.start.row:1/0}null==n[c]&&(n[c]=this.$getStringScreenWidth(t[c])[0]),n[c]>r&&(r=n[c])}this.screenWidth=r}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=null,r=e.length-1;-1!=r;r--){var i=e[r];"doc"==i.group?(this.doc.revertDeltas(i.deltas),n=this.$getUndoSelection(i.deltas,!0,n)):i.deltas.forEach((function(e){this.addFolds(e.folds)}),this)}return this.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=null,r=0;r<e.length;r++){var i=e[r];"doc"==i.group&&(this.doc.applyDeltas(i.deltas),n=this.$getUndoSelection(i.deltas,!1,n))}return this.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t,n){function r(e){return t?"insert"!==e.action:"insert"===e.action}var i,o,a=e[0];i=r(a)?u.fromPoints(a.start,a.end):u.fromPoints(a.start,a.start);for(var s=1;s<e.length;s++)r(a=e[s])?(o=a.start,-1==i.compare(o.row,o.column)&&i.setStart(o),o=a.end,1==i.compare(o.row,o.column)&&i.setEnd(o)):(o=a.start,-1==i.compare(o.row,o.column)&&(i=u.fromPoints(a.start,a.start)));if(null!=n){0===u.comparePoints(n.start,i.start)&&(n.start.column+=i.end.column-i.start.column,n.end.column+=i.end.column-i.start.column);var c=n.compareRange(i);1==c?i.setStart(n.start):-1==c&&i.setEnd(n.end)}return i},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,n){var r=this.getTextRange(e),i=this.getFoldsInRange(e),o=u.fromPoints(t,t);if(!n){this.remove(e);var a=e.start.row-e.end.row;(l=a?-e.end.column:e.start.column-e.end.column)&&(o.start.row==e.end.row&&o.start.column>e.end.column&&(o.start.column+=l),o.end.row==e.end.row&&o.end.column>e.end.column&&(o.end.column+=l)),a&&o.start.row>=e.end.row&&(o.start.row+=a,o.end.row+=a)}if(o.end=this.insert(o.start,r),i.length){var s=e.start,c=o.start,l=(a=c.row-s.row,c.column-s.column);this.addFolds(i.map((function(e){return(e=e.clone()).start.row==s.row&&(e.start.column+=l),e.end.row==s.row&&(e.end.column+=l),e.start.row+=a,e.end.row+=a,e})))}return o},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var r=e;r<=t;r++)this.doc.insertInLine({row:r,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new u(0,0,0,0),r=this.getTabSize(),i=t.start.row;i<=t.end.row;++i){var o=this.getLine(i);n.start.row=i,n.end.row=i;for(var a=0;a<r&&" "==o.charAt(a);++a);a<r&&"\t"==o.charAt(a)?(n.start.column=a,n.end.column=a+1):(n.start.column=0,n.end.column=a),this.remove(n)}},this.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){if((i=this.getRowFoldStart(e+n))<0)return 0;var r=i-e}else if(n>0){var i;if((i=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;r=i-t}else e=this.$clipRowToDocument(e),r=(t=this.$clipRowToDocument(t))-e+1;var o=new u(e,0,t,Number.MAX_VALUE),a=this.getFoldsInRange(o).map((function(e){return(e=e.clone()).start.row+=r,e.end.row+=r,e})),s=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+r,s),a.length&&this.addFolds(a),r},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$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}},this.$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},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.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")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var r=this.$constrainWrapLimit(e,n.min,n.max);return r!=this.$wrapLimit&&r>1&&(this.$wrapLimit=r,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,r=e.start,i=e.end,o=r.row,a=i.row,s=a-o,c=null;if(this.$updating=!0,0!=s)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(o,s);var l=this.$foldData;c=this.getFoldsInRange(e),this.removeFolds(c);var u=0;if(g=this.getFoldLine(i.row)){g.addRemoveChars(i.row,i.column,r.column-i.column),g.shiftRow(-s);var h=this.getFoldLine(o);h&&h!==g&&(h.merge(g),g=h),u=l.indexOf(g)+1}for(;u<l.length;u++)(g=l[u]).start.row>=i.row&&g.shiftRow(-s);a=o}else{var d=Array(s);d.unshift(o,0);var f=t?this.$wrapData:this.$rowLengthCache;if(f.splice.apply(f,d),l=this.$foldData,u=0,g=this.getFoldLine(o)){var p=g.range.compareInside(r.row,r.column);0==p?(g=g.split(r.row,r.column))&&(g.shiftRow(s),g.addRemoveChars(a,0,i.column-r.column)):-1==p&&(g.addRemoveChars(o,0,i.column-r.column),g.shiftRow(s)),u=l.indexOf(g)+1}for(;u<l.length;u++){var g;(g=l[u]).start.row>=o&&g.shiftRow(s)}}else s=Math.abs(e.start.column-e.end.column),"remove"===n&&(c=this.getFoldsInRange(e),this.removeFolds(c),s=-s),(g=this.getFoldLine(o))&&g.addRemoveChars(o,r.column,s);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(o,a):this.$updateRowLengthCache(o,a),c},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(n,r){var i,o,a=this.doc.getAllLines(),s=this.getTabSize(),c=this.$wrapData,l=this.$wrapLimit,u=n;for(r=Math.min(r,a.length-1);u<=r;)(o=this.getFoldLine(u,o))?(i=[],o.walk(function(n,r,o,s){var c;if(null!=n){(c=this.$getDisplayTokens(n,i.length))[0]=e;for(var l=1;l<c.length;l++)c[l]=t}else c=this.$getDisplayTokens(a[r].substring(s,o),i.length);i=i.concat(c)}.bind(this),o.end.row,a[o.end.row].length+1),c[o.start.row]=this.$computeWrapSplits(i,l,s),u=o.end.row+1):(i=this.$getDisplayTokens(a[u]),c[u]=this.$computeWrapSplits(i,l,s),u++)};var e=3,t=4;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)}this.$computeWrapSplits=function(n,r,i){if(0==n.length)return[];var o=[],a=n.length,s=0,c=0,l=this.$wrapAsCode,u=this.$indentedSoftWrap,h=r<=Math.max(2*i,8)||!1===u?0:Math.floor(r/2);function d(e){var t=n.slice(s,e),r=t.length;t.join("").replace(/12/g,(function(){r-=1})).replace(/2/g,(function(){r-=1})),o.length||(f=function(){var e=0;if(0===h)return e;if(u)for(var t=0;t<n.length;t++){var r=n[t];if(10==r)e+=1;else{if(11!=r){if(12==r)continue;break}e+=i}}return l&&!1!==u&&(e+=i),Math.min(e,h)}(),o.indent=f),c+=r,o.push(c),s=e}for(var f=0;a-s>r-f;){var p=s+r-f;if(n[p-1]>=10&&n[p]>=10)d(p);else if(n[p]!=e&&n[p]!=t){for(var g=Math.max(p-(r-(r>>2)),s-1);p>g&&n[p]<e;)p--;if(l){for(;p>g&&n[p]<e;)p--;for(;p>g&&9==n[p];)p--}else for(;p>g&&n[p]<10;)p--;p>g?d(++p):(2==n[p=s+r]&&p--,d(p-f))}else{for(;p!=s-1&&n[p]!=e;p--);if(p>s){d(p);continue}for(p=s+r;p<n.length&&n[p]==t;p++);if(p==n.length)break;d(p)}}return o},this.$getDisplayTokens=function(e,t){var r,i=[];t=t||0;for(var o=0;o<e.length;o++){var a=e.charCodeAt(o);if(9==a){r=this.getScreenTabSize(i.length+t),i.push(11);for(var s=1;s<r;s++)i.push(12)}else 32==a?i.push(10):a>39&&a<48||a>57&&a<64?i.push(9):a>=4352&&n(a)?i.push(1,2):i.push(1)}return i},this.$getStringScreenWidth=function(e,t,r){if(0==t)return[0,0];var i,o;for(null==t&&(t=1/0),r=r||0,o=0;o<e.length&&(9==(i=e.charCodeAt(o))?r+=this.getScreenTabSize(r):i>=4352&&n(i)?r+=2:r+=1,!(r>t));o++);return[r,o]},this.lineWidgets=null,this.getRowLength=function(e){if(this.lineWidgets)var t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},this.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},this.getScreenTabSize=function(e){return this.$tabSize-e%this.$tabSize},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t){if(e<0)return{row:0,column:0};var n,r,i=0,o=0,a=0,s=0,c=this.$screenRowCache,l=this.$getRowCacheIndex(c,e),u=c.length;if(u&&l>=0){a=c[l],i=this.$docRowCache[l];var h=e>c[u-1]}else h=!u;for(var d=this.getLength()-1,f=this.getNextFoldLine(i),p=f?f.start.row:1/0;a<=e&&!(a+(s=this.getRowLength(i))>e||i>=d);)a+=s,++i>p&&(i=f.end.row+1,p=(f=this.getNextFoldLine(i,f))?f.start.row:1/0),h&&(this.$docRowCache.push(i),this.$screenRowCache.push(a));if(f&&f.start.row<=i)n=this.getFoldDisplayLine(f),i=f.start.row;else{if(a+s<=e||i>d)return{row:d,column:this.getLine(d).length};n=this.getLine(i),f=null}var g=0;if(this.$useWrapMode){var m=this.$wrapData[i];if(m){var E=Math.floor(e-a);r=m[E],E>0&&m.length&&(g=m.indent,o=m[E-1]||m[m.length-1],n=n.substring(o))}}return o+=this.$getStringScreenWidth(n,t-g)[1],this.$useWrapMode&&o>=r&&(o=r-1),f?f.idxToPosition(o):{row:i,column:o}},this.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 r,i=0,o=null;(r=this.getFoldAt(e,t,1))&&(e=r.start.row,t=r.start.column);var a,s=0,c=this.$docRowCache,l=this.$getRowCacheIndex(c,e),u=c.length;if(u&&l>=0){s=c[l],i=this.$screenRowCache[l];var h=e>c[u-1]}else h=!u;for(var d=this.getNextFoldLine(s),f=d?d.start.row:1/0;s<e;){if(s>=f){if((a=d.end.row+1)>e)break;f=(d=this.getNextFoldLine(a,d))?d.start.row:1/0}else a=s+1;i+=this.getRowLength(s),s=a,h&&(this.$docRowCache.push(s),this.$screenRowCache.push(i))}var p="";d&&s>=f?(p=this.getFoldDisplayLine(d,e,t),o=d.start.row):(p=this.getLine(e).substring(0,t),o=e);var g=0;if(this.$useWrapMode){var m=this.$wrapData[o];if(m){for(var E=0;p.length>=m[E];)i++,E++;p=p.substring(m[E-1]||0,p.length),g=E>0?m.indent:0}}return{row:i,column:g+this.$getStringScreenWidth(p)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,r=0,i=(s=0,(t=this.$foldData[s++])?t.start.row:1/0);r<n;){var o=this.$wrapData[r];e+=o?o.length+1:1,++r>i&&(r=t.end.row+1,i=(t=this.$foldData[s++])?t.start.row:1/0)}else{e=this.getLength();for(var a=this.$foldData,s=0;s<a.length;s++)e-=(t=a[s]).end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,r){if(0===n)return[0,0];var i,o;for(n||(n=1/0),r=r||0,o=0;o<t.length&&!((r+="\t"===(i=t.charAt(o))?this.getScreenTabSize(r):e.getCharacterWidth(i))>n);o++);return[r,o]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()}}).call(p.prototype),e("./edit_session/folding").Folding.call(p.prototype),e("./edit_session/bracket_match").BracketMatch.call(p.prototype),a.defineOptions(p.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.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{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){isNaN(e)||this.$tabSize===e||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},overwrite:{set:function(e){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}}}),t.EditSession=p})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),i=e("./lib/oop"),o=e("./range").Range,a=function(){this.$options={}};(function(){this.set=function(e){return i.mixin(this.$options,e),this},this.getOptions=function(){return r.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var r=null;return n.forEach((function(e,n,i){if(e.start)r=e;else{var a=e.offset+(i||0);if(r=new o(n,a,n,a+e.length),!e.length&&t.start&&t.start.start&&0!=t.skipCurrent&&r.isEqual(t.start))return r=null,!1}return!0})),r},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,i=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),a=[],s=t.re;if(t.$isMultiLine){var c,l=s.length,u=i.length-l;e:for(var h=s.offset||0;h<=u;h++){for(var d=0;d<l;d++)if(-1==i[h+d].search(s[d]))continue e;var f=i[h],p=i[h+l-1],g=f.length-f.match(s[0])[0].length,m=p.match(s[l-1])[0].length;c&&c.end.row===h&&c.end.column>g||(a.push(c=new o(h,g,h+l-1,m)),l>2&&(h=h+l-2))}}else for(var E=0;E<i.length;E++){var v=r.getMatchOffsets(i[E],s);for(d=0;d<v.length;d++){var y=v[d];a.push(new o(E,y.offset,E,y.offset+y.length))}}if(n){var b=n.start.column,A=n.start.column;for(E=0,d=a.length-1;E<d&&a[E].start.column<b&&a[E].start.row==n.start.row;)E++;for(;E<d&&a[d].end.column>A&&a[d].end.row==n.end.row;)d--;for(a=a.slice(E,d+1),E=0,d=a.length;E<d;E++)a[E].start.row+=n.start.row,a[E].end.row+=n.start.row}return a},this.replace=function(e,t){var n=this.$options,r=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(r){var i=r.exec(e);if(!i||i[0].length!=e.length)return null;if(t=e.replace(r,t),n.preserveCase){t=t.split("");for(var o=Math.min(e.length,e.length);o--;){var a=e[o];a&&a.toLowerCase()!=a?t[o]=t[o].toUpperCase():t[o]=t[o].toLowerCase()}t=t.join("")}return t}},this.$matchIterator=function(e,t){var n,i=this.$assembleRegExp(t);if(!i)return!1;if(t.$isMultiLine)var a=i.length,s=function(t,r,s){var c=t.search(i[0]);if(-1!=c){for(var l=1;l<a;l++)if(-1==(t=e.getLine(r+l)).search(i[l]))return;var u=t.match(i[a-1])[0].length,h=new o(r,c,r+a-1,u);return 1==i.offset?(h.start.row--,h.start.column=Number.MAX_VALUE):s&&(h.start.column+=s),!!n(h)||void 0}};else s=t.backwards?function(e,t,o){for(var a=r.getMatchOffsets(e,i),s=a.length-1;s>=0;s--)if(n(a[s],t,o))return!0}:function(e,t,o){for(var a=r.getMatchOffsets(e,i),s=0;s<a.length;s++)if(n(a[s],t,o))return!0};var c=this.$lineIterator(e,t);return{forEach:function(e){n=e,c.forEach(s)}}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=r.escapeRegExp(n)),e.wholeWord&&(n="\\b"+n+"\\b");var i=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,i);try{var o=new RegExp(n,i)}catch(e){o=!1}return e.re=o},this.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),r=[],i=0;i<n.length;i++)try{r.push(new RegExp(n[i],t))}catch(e){return!1}return""==n[0]?(r.shift(),r.offset=1):r.offset=0,r},this.$lineIterator=function(e,t){var n=1==t.backwards,r=0!=t.skipCurrent,i=t.range,o=t.start;o||(o=i?i[n?"end":"start"]:e.selection.getRange()),o.start&&(o=o[r!=n?"end":"start"]);var a=i?i.start.row:0,s=i?i.end.row:e.getLength()-1;return{forEach:n?function(n){var r=o.row;if(!n(e.getLine(r).substring(0,o.column),r)){for(r--;r>=a;r--)if(n(e.getLine(r),r))return;if(0!=t.wrap)for(r=s,a=o.row;r>=a;r--)if(n(e.getLine(r),r))return}}:function(n){var r=o.row;if(!n(e.getLine(r).substr(o.column),r,o.column)){for(r+=1;r<=s;r++)if(n(e.getLine(r),r))return;if(0!=t.wrap)for(r=a,s=o.row;r<=s;r++)if(n(e.getLine(r),r))return}}}}}).call(a.prototype),t.Search=a})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/keys"),o=e("../lib/useragent"),a=i.KEY_MODS;function s(e,t){this.platform=t||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function c(e,t){s.call(this,e,t),this.$singleCommand=!1}c.prototype=s.prototype,function(){function e(e){return"object"==r(e)&&e.bindKey&&e.bindKey.position||0}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"==typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var r=this.commandKeyBinding;for(var i in r){var o=r[i];if(o==e)delete r[i];else if(Array.isArray(o)){var a=o.indexOf(e);-1!=a&&(o.splice(a,1),1==o.length&&(r[i]=o[0]))}}},this.bindKey=function(e,t,n){if("object"==r(e)&&e&&(null==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var r="";if(-1!=e.indexOf(" ")){var i=e.split(/\s+/);e=i.pop(),i.forEach((function(e){var t=this.parseKeys(e),n=a[t.hashId]+t.key;r+=(r?" ":"")+n,this._addCommandToBinding(r,"chainKeys")}),this),r+=" "}var o=this.parseKeys(e),s=a[o.hashId]+o.key;this._addCommandToBinding(r+s,t,n)}),this)},this._addCommandToBinding=function(t,n,r){var i,o=this.commandKeyBinding;if(n)if(!o[t]||this.$singleCommand)o[t]=n;else{Array.isArray(o[t])?-1!=(i=o[t].indexOf(n))&&o[t].splice(i,1):o[t]=[o[t]],"number"!=typeof r&&(r=r||n.isDefault?-100:e(n));var a=o[t];for(i=0;i<a.length&&!(e(a[i])>r);i++);a.splice(i,0,n)}else delete o[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"==typeof n)return this.bindKey(n,t);"function"==typeof n&&(n={exec:n}),"object"===r(n)&&(n.name||(n.name=t),this.addCommand(n))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),r=i[n];if(i.FUNCTION_KEYS[r])n=i.FUNCTION_KEYS[r].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var o=0,a=t.length;a--;){var s=i.KEY_MODS[t[a]];if(null==s)return"undefined"!=typeof console&&console.error("invalid modifier "+t[a]+" in "+e),!1;o|=s}return{key:n,hashId:o}},this.findKeyCommand=function(e,t){var n=a[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,r){if(!(r<0)){var i=a[t]+n,o=this.commandKeyBinding[i];return e.$keyChain&&(e.$keyChain+=" "+i,o=this.commandKeyBinding[e.$keyChain]||o),!o||"chainKeys"!=o&&"chainKeys"!=o[o.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||r>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-i.length-1)),{command:o}):(e.$keyChain=e.$keyChain||i,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(s.prototype),t.HashHandler=s,t.MultiHashHandler=c})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../keyboard/hash_handler").MultiHashHandler,o=e("../lib/event_emitter").EventEmitter,a=function(e,t){i.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.command.exec(e.editor,e.args||{})}))};r.inherits(a,i),function(){r.implement(this,o),this.exec=function(e,t,n){if(Array.isArray(e)){for(var r=e.length;r--;)if(this.exec(e[r],t,n))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;var i={editor:t,command:e,args:n};return i.returnValue=this._emit("exec",i),this._signal("afterExec",i),!1!==i.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.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[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(a.prototype),t.CommandManager=a})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";var r=e("../lib/lang"),i=e("../config"),o=e("../range").Range;function a(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",bindKey:a("Ctrl-,","Command-,"),exec:function(e){i.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:a("Alt-E","Ctrl-E"),exec:function(e){i.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:a("Alt-Shift-E","Ctrl-Shift-E"),exec:function(e){i.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:a("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",bindKey:a(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:a("Ctrl-L","Command-L"),exec:function(e){var t=parseInt(prompt("Enter line number:"),10);isNaN(t)||e.gotoLine(t)},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:a("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:a("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:a("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:a("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:a("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",bindKey:a("Ctrl-F","Command-F"),exec:function(e){i.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:a("Ctrl-Shift-Home","Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:a("Shift-Up","Shift-Up"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:a("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:a("Ctrl-Shift-End","Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:a("Shift-Down","Shift-Down"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:a("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:a("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:a("Alt-Shift-Left","Command-Shift-Left"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:a("Shift-Left","Shift-Left"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:a("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:a("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:a("Alt-Shift-Right","Command-Shift-Right"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:a("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:a("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:a(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:a(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:a("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:a("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",bindKey:a("Ctrl-P","Ctrl-P"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:a("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(e){},readOnly:!0},{name:"cut",exec:function(e){var t=e.getSelectionRange();e._emit("cut",t),e.selection.isEmpty()||(e.session.remove(t),e.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",bindKey:a("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:a("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(e){i.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:a("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:a("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:a("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:a("Alt-Delete","Ctrl-K"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:a("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(e,t){e.insert(r.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:a(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:a("Ctrl-T","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:a("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:"joinlines",bindKey:a(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),i=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),a=e.session.doc.getLine(n.row).length,s=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,c=e.session.doc.getLine(n.row),l=n.row+1;l<=i.row+1;l++){var u=r.stringTrimLeft(r.stringTrimRight(e.session.doc.getLine(l)));0!==u.length&&(u=" "+u),c+=u}i.row+1<e.session.doc.getLength()-1&&(c+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new o(n.row,0,i.row+2,0),c),s>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+s)):(a=e.session.doc.getLine(n.row).length>a?a+1:a,e.selection.moveCursorTo(n.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:a(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,i=[];r.length<1&&(r=[e.selection.getRange()]);for(var a=0;a<r.length;a++)a==r.length-1&&(r[a].end.row===t&&r[a].end.column===n||i.push(new o(r[a].end.row,r[a].end.column,t,n))),0===a?0===r[a].start.row&&0===r[a].start.column||i.push(new o(0,0,r[a].start.row,r[a].start.column)):i.push(new o(r[a-1].end.row,r[a-1].end.column,r[a].start.row,r[a].start.column));for(e.exitMultiSelectMode(),e.clearSelection(),a=0;a<i.length;a++)e.selection.addRange(i[a],!1)},readOnly:!0,scrollIntoView:"none"}]})),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator"],(function(e,t,n){"use strict";e("./lib/fixoldbrowsers");var i=e("./lib/oop"),o=e("./lib/dom"),a=e("./lib/lang"),s=e("./lib/useragent"),c=e("./keyboard/textinput").TextInput,l=e("./mouse/mouse_handler").MouseHandler,u=e("./mouse/fold_handler").FoldHandler,h=e("./keyboard/keybinding").KeyBinding,d=e("./edit_session").EditSession,f=e("./search").Search,p=e("./range").Range,g=e("./lib/event_emitter").EventEmitter,m=e("./commands/command_manager").CommandManager,E=e("./commands/default_commands").commands,v=e("./config"),y=e("./token_iterator").TokenIterator,b=function(e,t){var n=e.getContainerElement();this.container=n,this.renderer=e,this.commands=new m(s.isMac?"mac":"win",E),this.textInput=new c(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.keyBinding=new h(this),this.$mouseHandler=new l(this),new u(this),this.$blockScrolling=0,this.$search=(new f).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=a.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(e,t){t._$emitInputEvent.schedule(31)})),this.setSession(t||new d("")),v.resetOptions(this),v._signal("editor",this)};(function(){i.implement(this,g),this.$initOperationListeners=function(){this.selections=[],this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=a.delayedCall(this.endOperation.bind(this)),this.on("change",function(){this.curOp||this.startOperation(),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||this.startOperation(),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.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={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.command.name&&void 0!==this.curOp.command.scrollIntoView&&this.$blockScrolling++},this.endOperation=function(e){if(this.curOp){if(e&&!1===e.returnValue)return this.curOp=null;this._signal("beforeEndOperation");var t=this.curOp.command;t.name&&this.$blockScrolling>0&&this.$blockScrolling--;var 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 r=this.selection.getRange(),i=this.renderer.layerConfig;(r.start.row>=i.lastRow||r.end.row<=i.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,r=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var i=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),r=r&&this.mergeNextCommand&&(!/\s/.test(i)||/\s/.test(t.args)),this.mergeNextCommand=!0}else r=r&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(r=!1),r?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e){this.$keybindingId=e;var n=this;v.loadModule(["keybinding",e],(function(r){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(r&&r.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.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.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,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})}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||o.computedStyle(this.container,"fontSize")},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=t.findMatchingBracket(e.getCursorPosition());if(n)var r=new p(n.row,n.column,n.row,n.column+1);else t.$mode.getMatching&&(r=t.$mode.getMatching(e.session));r&&(t.$bracketHighlight=t.addMarker(r,"ace_bracket","text"))}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout((function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),r=new y(e.session,n.row,n.column),i=r.getCurrentToken();if(!i||!/\b(?:tag-open|tag-name)/.test(i.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1==i.type.indexOf("tag-open")||(i=r.stepForward())){var o=i.value,a=0,s=r.stepBackward();if("<"==s.value)do{s=i,(i=r.stepForward())&&i.value===o&&-1!==i.type.indexOf("tag-name")&&("<"===s.value?a++:"</"===s.value&&a--)}while(i&&a>=0);else{do{i=s,s=r.stepBackward(),i&&i.value===o&&-1!==i.type.indexOf("tag-name")&&("<"===s.value?a++:"</"===s.value&&a--)}while(s&&a<=0);r.stepForward()}if(!i)return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);var c=r.getCurrentTokenRow(),l=r.getCurrentTokenColumn(),u=new p(c,l,c,l+i.value.length);t.$tagHighlight&&0!==u.compareRange(t.$backMarkers[t.$tagHighlight].range)&&(t.removeMarker(t.$tagHighlight),t.$tagHighlight=null),u&&!t.$tagHighlight&&(t.$tagHighlight=t.addMarker(u,"ace_bracket","text"))}}}),50)}},this.focus=function(){var e=this;setTimeout((function(){e.textInput.focus()})),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor()},this.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(),this.$updateHighlightActiveLine()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this.$blockScrolling||(v.warn("Automatically scrolling cursor into view after selection change","this will be disabled in the next version","set editor.$blockScrolling = Infinity to disable this message"),this.renderer.scrollCursorIntoView()),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),!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"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),r=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",r)}var i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(i),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column-1,r=t.end.column+1,i=e.getLine(t.start.row),o=i.length,a=i.substring(Math.max(n,0),Math.min(r,o));if(!(n>=0&&/^[\w\d]/.test(a)||r<=o&&/[\w\d]$/.test(a))&&(a=i.substring(t.start.column,t.end.column),/^[\w\d]+$/.test(a)))return this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:a})}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText();return this._signal("copy",e),e},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(t);else{var n=t.split(/\r\n|\r|\n/),r=this.selection.rangeList.ranges;if(n.length>r.length||n.length<2||!n[1])return this.commands.exec("insertstring",this,t);for(var i=r.length;i--;){var o=r[i];o.isEmpty()||this.session.remove(o),this.session.insert(o.start,n[i])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,r=n.getMode(),i=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var o=r.transformAction(n.getState(i.row),"insertion",this,n,e);o&&(e!==o.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),e=o.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty())this.session.getOverwrite()&&((a=new p.fromPoints(i,i)).end.column+=e.length,this.session.remove(a));else{var a=this.getSelectionRange();i=this.session.remove(a),this.clearSelection()}if("\n"==e||"\r\n"==e){var s=n.getLine(i.row);if(i.column>s.search(/\S|$/)){var c=s.substr(i.column).search(/\S|$/);n.doc.removeInLine(i.row,i.column,i.column+c)}}this.clearSelection();var l=i.column,u=n.getState(i.row),h=(s=n.getLine(i.row),r.checkOutdent(u,s,e));if(n.insert(i,e),o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new p(i.row,l+o.selection[0],i.row,l+o.selection[1])):this.selection.setSelectionRange(new p(i.row+o.selection[0],o.selection[1],i.row+o.selection[2],o.selection[3]))),n.getDocument().isNewLine(e)){var d=r.getNextLineIndent(u,s.slice(0,i.column),n.getTabString());n.insert({row:i.row+1,column:0},d)}h&&r.autoOutdent(u,n,i.row)},this.onTextInput=function(e){this.keyBinding.onTextInput(e)},this.onCommandKey=function(e,t,n){this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.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,r=n.getState(t.start.row),i=n.getMode().transformAction(r,"deletion",this,n,t);if(0===t.end.column){var o=n.getTextRange(t);if("\n"==o[o.length-1]){var a=n.getLine(t.end.row);/^\s+$/.test(a)&&(t.end.column=a.length)}}i&&(t=i)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.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()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,r,i=this.session.getLine(e.row);t<i.length?(n=i.charAt(t)+i.charAt(t-1),r=new p(e.row,t-1,e.row,t+1)):(n=i.charAt(t-1)+i.charAt(t-2),r=new p(e.row,t-2,e.row,t)),this.session.replace(r,n)}}},this.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)},this.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)},this.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))return u=this.$getSelectedRows(),void e.indentRows(u.first,u.last,"\t")}var r=e.getLine(t.start.row),i=t.start,o=e.getTabSize(),s=e.documentToScreenColumn(i.row,i.column);if(this.session.getUseSoftTabs())var c=o-s%o,l=a.stringRepeat(" ",c);else{for(c=s%o;" "==r[t.start.column]&&c;)t.start.column--,c--;this.selection.setSelectionRange(t),l="\t"}return this.insert(l)}var u=this.$getSelectedRows();e.indentRows(u.first,u.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){var e=this.$getSelectedRows(),t=this.session,n=[];for(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}));for(var r=new p(0,0,0,0),i=e.first;i<=e.last;i++){var o=t.getLine(i);r.start.row=i,r.end.row=i,r.end.column=o.length,t.replace(r,n[i-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var r=this.session.getLine(e);n.lastIndex<t;){var i=n.exec(r);if(i.index<=t&&i.index+i[0].length>=t)return{value:i[0],start:i.index,end:i.index+i[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,r=new p(t,n-1,t,n),i=this.session.getTextRange(r);if(!isNaN(parseFloat(i))&&isFinite(i)){var o=this.getNumberAt(t,n);if(o){var a=o.value.indexOf(".")>=0?o.start+o.value.indexOf(".")+1:o.end,s=o.start+o.value.length-a,c=parseFloat(o.value);c*=Math.pow(10,s),a!==o.end&&n<a?e*=Math.pow(10,o.end-n-1):e*=Math.pow(10,o.end-n),c+=e;var l=(c/=Math.pow(10,s)).toFixed(s),u=new p(t,o.start,t,o.end);this.session.replace(u,l),this.moveCursorTo(t,Math.max(o.start+1,n+l.length-o.value.length))}}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),r=e.isBackwards();if(n.isEmpty()){var i=n.start.row;t.duplicateLines(i,i)}else{var o=r?n.start:n.end,a=t.insert(o,t.getTextRange(n),!1);n.start=o,n.end=a,e.setSelectionRange(n,r)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,n){return this.session.moveText(e,t,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var n,r,i=this.selection;if(!i.inMultiSelectMode||this.inVirtualSelectionMode){var o=i.toOrientedRange();n=this.$getSelectedRows(o),r=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(r=0),o.moveBy(r,0),i.fromOrientedRange(o)}else{var a=i.rangeList.ranges;i.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var s=0,c=0,l=a.length,u=0;u<l;u++){var h=u;a[u].moveBy(s,0);for(var d=(n=this.$getSelectedRows(a[u])).first,f=n.last;++u<l;){c&&a[u].moveBy(c,0);var p=this.$getSelectedRows(a[u]);if(t&&p.first!=f)break;if(!t&&p.first>f+1)break;f=p.last}for(u--,s=this.session.$moveLines(d,f,t?0:e),t&&-1==e&&(h=u+1);h<=u;)a[h].moveBy(s,0),h++;t||(s=0),c+=s}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,r=this.renderer.layerConfig,i=e*Math.floor(r.height/r.lineHeight);this.$blockScrolling++,!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(i,0)})):!1===t&&(this.selection.moveCursorBy(i,0),this.selection.clearSelection()),this.$blockScrolling--;var o=n.scrollTop;n.scrollBy(0,i*r.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(o)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,r){this.renderer.scrollToLine(e,t,n,r)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),r=new y(this.session,n.row,n.column),i=r.getCurrentToken(),o=i||r.stepForward();if(o){var a,s,c=!1,l={},u=n.column-o.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;u<o.value.length&&!c;u++)if(h[o.value[u]])switch(s=h[o.value[u]]+"."+o.type.replace("rparen","lparen"),isNaN(l[s])&&(l[s]=0),o.value[u]){case"(":case"[":case"{":l[s]++;break;case")":case"]":case"}":l[s]--,-1===l[s]&&(a="bracket",c=!0)}}else o&&-1!==o.type.indexOf("tag-name")&&(isNaN(l[o.value])&&(l[o.value]=0),"<"===i.value?l[o.value]++:"</"===i.value&&l[o.value]--,-1===l[o.value]&&(a="tag",c=!0));c||(i=o,o=r.stepForward(),u=0)}while(o&&!c);if(a){var d,f;if("bracket"===a)(d=this.session.getBracketRange(n))||(f=(d=new p(r.getCurrentTokenRow(),r.getCurrentTokenColumn()+u-1,r.getCurrentTokenRow(),r.getCurrentTokenColumn()+u-1)).start,(t||f.row===n.row&&Math.abs(f.column-n.column)<2)&&(d=this.session.getBracketRange(f)));else if("tag"===a){if(!o||-1===o.type.indexOf("tag-name"))return;var g=o.value;if(0===(d=new p(r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2,r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2)).compare(n.row,n.column)){c=!1;do{o=i,(i=r.stepBackward())&&(-1!==i.type.indexOf("tag-close")&&d.setEnd(r.getCurrentTokenRow(),r.getCurrentTokenColumn()+1),o.value===g&&-1!==o.type.indexOf("tag-name")&&("<"===i.value?l[g]++:"</"===i.value&&l[g]--,0===l[g]&&(c=!0)))}while(i&&!c)}o&&o.type.indexOf("tag-name")&&(f=d.start).row==n.row&&Math.abs(f.column-n.column)<2&&(f=d.end)}(f=d&&d.cursor||f)&&(e?d&&t?this.selection.setRange(d):d&&d.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(f.row,f.column):this.selection.moveTo(f.row,f.column))}}},this.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.$blockScrolling+=1,this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.$blockScrolling-=1,this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.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)},this.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)},this.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()},this.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()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),r=0;return n?(this.$tryReplace(n,e)&&(r=1),null!==n&&(this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end)),r):r},this.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),r=0;if(!n.length)return r;this.$blockScrolling+=1;var i=this.getSelectionRange();this.selection.moveTo(0,0);for(var o=n.length-1;o>=0;--o)this.$tryReplace(n[o],e)&&r++;return this.selection.setSelectionRange(i),this.$blockScrolling-=1,r},this.$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},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==r(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 a=this.$search.find(this.session);return t.preventScroll?a:a?(this.revealRange(a,n),a):(t.backwards?o.start=o.end:o.end=o.start,void this.selection.setRange(o))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.$blockScrolling+=1,this.session.unfold(e),this.selection.setSelectionRange(e),this.$blockScrolling-=1;var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,r=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var i=this.$scrollAnchor;i.style.cssText="position:absolute",this.container.insertBefore(i,this.container.firstChild);var o=this.on("changeSelection",(function(){r=!0})),a=this.renderer.on("beforeRender",(function(){r&&(t=n.renderer.container.getBoundingClientRect())})),s=this.renderer.on("afterRender",(function(){if(r&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,o=e.$cursorLayer.$pixelPos,a=e.layerConfig,s=o.top-a.offset;null!=(r=o.top>=0&&s+t.top<0||!(o.top<a.height&&o.top+t.top+a.lineHeight>window.innerHeight)&&null)&&(i.style.top=s+"px",i.style.left=o.left+"px",i.style.height=a.lineHeight+"px",i.scrollIntoView(r)),r=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",s),this.renderer.off("beforeRender",a))}}},this.$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)))}}).call(b.prototype),v.defineOptions(b.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(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),t.Editor=b})),ace.define("ace/undomanager",["require","exports","module"],(function(e,t,n){"use strict";var r=function(){this.reset()};(function(){function e(e){return{action:e.action,start:e.start,end:e.end,lines:1==e.lines.length?null:e.lines,text:1==e.lines.length?e.lines[0]:null}}function t(e){return{action:e.action,start:e.start,end:e.end,lines:e.lines||[e.text]}}function n(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++){for(var i=e[r],o={group:i.group,deltas:new Array(i.length)},a=0;a<i.deltas.length;a++){var s=i.deltas[a];o.deltas[a]=t(s)}n[r]=o}return n}this.execute=function(e){var t=e.args[0];this.$doc=e.args[1],e.merge&&this.hasUndo()&&(this.dirtyCounter--,t=this.$undoStack.pop().concat(t)),this.$undoStack.push(t),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(e){var t=this.$undoStack.pop(),n=null;return t&&(n=this.$doc.undoChanges(t,e),this.$redoStack.push(t),this.dirtyCounter--),n},this.redo=function(e){var t=this.$redoStack.pop(),n=null;return t&&(n=this.$doc.redoChanges(this.$deserializeDeltas(t),e),this.$undoStack.push(t),this.dirtyCounter++),n},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return this.$undoStack.length>0},this.hasRedo=function(){return this.$redoStack.length>0},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return 0===this.dirtyCounter},this.$serializeDeltas=function(t){return n(t,e)},this.$deserializeDeltas=function(e){return n(e,t)}}).call(r.prototype),t.UndoManager=r})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/oop"),o=e("../lib/lang"),a=e("../lib/event_emitter").EventEmitter,s=function(e){this.element=r.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.$cells=[]};(function(){i.implement(this,a),this.setSession=function(e){this.session&&this.session.removeEventListener("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],r=n.row,i=this.$annotations[r];i||(i=this.$annotations[r]={text:[]});var a=n.text;a=a?o.escapeHTML(a):n.html||"",-1===i.text.indexOf(a)&&i.text.push(a);var s=n.type;"error"==s?i.className=" ace_error":"warning"==s&&" ace_error"!=i.className?i.className=" ace_warning":"info"!=s||i.className||(i.className=" ace_info")}},this.$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 r=new Array(n+1);r.unshift(t,1),this.$annotations.splice.apply(this.$annotations,r)}}},this.update=function(e){for(var t=this.session,n=e.firstRow,i=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1),o=t.getNextFoldLine(n),a=o?o.start.row:1/0,s=this.$showFoldWidgets&&t.foldWidgets,c=t.$breakpoints,l=t.$decorations,u=t.$firstLineNumber,h=0,d=t.gutterRenderer||this.$renderer,f=null,p=-1,g=n;;){if(g>a&&(g=o.end.row+1,a=(o=t.getNextFoldLine(g,o))?o.start.row:1/0),g>i){for(;this.$cells.length>p+1;)f=this.$cells.pop(),this.element.removeChild(f.element);break}(f=this.$cells[++p])||((f={element:null,textNode:null,foldWidget:null}).element=r.createElement("div"),f.textNode=document.createTextNode(""),f.element.appendChild(f.textNode),this.element.appendChild(f.element),this.$cells[p]=f);var m="ace_gutter-cell ";if(c[g]&&(m+=c[g]),l[g]&&(m+=l[g]),this.$annotations[g]&&(m+=this.$annotations[g].className),f.element.className!=m&&(f.element.className=m),(v=t.getRowLength(g)*e.lineHeight+"px")!=f.element.style.height&&(f.element.style.height=v),s){var E=s[g];null==E&&(E=s[g]=t.getFoldWidget(g))}if(E){f.foldWidget||(f.foldWidget=r.createElement("span"),f.element.appendChild(f.foldWidget)),m="ace_fold-widget ace_"+E,"start"==E&&g==a&&g<o.end.row?m+=" ace_closed":m+=" ace_open",f.foldWidget.className!=m&&(f.foldWidget.className=m);var v=e.lineHeight+"px";f.foldWidget.style.height!=v&&(f.foldWidget.style.height=v)}else f.foldWidget&&(f.element.removeChild(f.foldWidget),f.foldWidget=null);var y=h=d?d.getText(t,g):g+u;y!=f.textNode.data&&(f.textNode.data=y),g++}this.element.style.height=e.minHeight+"px",(this.$fixedWidth||t.$useWrapMode)&&(h=t.getLength()+u);var b=d?d.getWidth(t,h,e):h.toString().length*e.characterWidth;b+=6,this.gutterWidth=b,this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._emit("changeGutterWidth",b)},this.$fixedWidth=!1,this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return""},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?r.addCssClass(this.element,"ace_folding-enabled"):r.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=r.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=parseInt(e.paddingLeft)+1||0,this.$padding.right=parseInt(e.paddingRight)||0,this.$padding},this.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}}).call(s.prototype),t.Gutter=s})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../range").Range,i=e("../lib/dom"),o=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.update=function(e){if(e=e||this.config){this.config=e;var t=[];for(var n in this.markers){var r=this.markers[n];if(r.range){var i=r.range.clipRows(e.firstRow,e.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),r.renderer){var o=this.$getTop(i.start.row,e),a=this.$padding+i.start.column*e.characterWidth;r.renderer(t,i,a,o,e)}else"fullLine"==r.type?this.drawFullLineMarker(t,i,r.clazz,e):"screenLine"==r.type?this.drawScreenLineMarker(t,i,r.clazz,e):i.isMultiLine()?"text"==r.type?this.drawTextMarker(t,i,r.clazz,e):this.drawMultiLineMarker(t,i,r.clazz,e):this.drawSingleLineMarker(t,i,r.clazz+" ace_start ace_br15",e)}else r.update(t,this,this.session,e)}this.element.innerHTML=t.join("")}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(e,t,n,i,o){for(var a=this.session,s=t.start.row,c=t.end.row,l=s,u=0,h=0,d=a.getScreenLastRowColumn(l),f=new r(l,t.start.column,l,h);l<=c;l++)f.start.row=f.end.row=l,f.start.column=l==s?t.start.column:a.getRowWrapIndent(l),f.end.column=d,u=h,h=d,d=l+1<c?a.getScreenLastRowColumn(l+1):l==c?0:t.end.column,this.drawSingleLineMarker(e,f,n+(l==s?" ace_start":"")+" ace_br"+((l==s||l==s+1&&t.start.column?1:0)|(u<h?2:0)|(h>d?4:0)|(l==c?8:0)),i,l==c?0:1,o)},this.drawMultiLineMarker=function(e,t,n,r,i){var o=this.$padding,a=r.lineHeight,s=this.$getTop(t.start.row,r),c=o+t.start.column*r.characterWidth;i=i||"",e.push("<div class='",n," ace_br1 ace_start' style='","height:",a,"px;","right:0;","top:",s,"px;","left:",c,"px;",i,"'></div>"),s=this.$getTop(t.end.row,r);var l=t.end.column*r.characterWidth;if(e.push("<div class='",n," ace_br12' style='","height:",a,"px;","width:",l,"px;","top:",s,"px;","left:",o,"px;",i,"'></div>"),!((a=(t.end.row-t.start.row-1)*r.lineHeight)<=0)){s=this.$getTop(t.start.row+1,r);var u=(t.start.column?1:0)|(t.end.column?0:8);e.push("<div class='",n,u?" ace_br"+u:"","' style='","height:",a,"px;","right:0;","top:",s,"px;","left:",o,"px;",i,"'></div>")}},this.drawSingleLineMarker=function(e,t,n,r,i,o){var a=r.lineHeight,s=(t.end.column+(i||0)-t.start.column)*r.characterWidth,c=this.$getTop(t.start.row,r),l=this.$padding+t.start.column*r.characterWidth;e.push("<div class='",n,"' style='","height:",a,"px;","width:",s,"px;","top:",c,"px;","left:",l,"px;",o||"","'></div>")},this.drawFullLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),a=r.lineHeight;t.start.row!=t.end.row&&(a+=this.$getTop(t.end.row,r)-o),e.push("<div class='",n,"' style='","height:",a,"px;","top:",o,"px;","left:0;right:0;",i||"","'></div>")},this.drawScreenLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),a=r.lineHeight;e.push("<div class='",n,"' style='","height:",a,"px;","top:",o,"px;","left:0;right:0;",i||"","'></div>")}}).call(o.prototype),t.Marker=o})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),a=(e("../lib/useragent"),e("../lib/event_emitter").EventEmitter),s=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){r.implement(this,a),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.$updateEolChar=function(){var e="\n"==this.session.doc.getNewLineCharacter()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},this.setPadding=function(e){this.$padding=e,this.element.style.padding="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++)this.showInvisibles?t.push("<span class='ace_invisible ace_invisible_tab'>"+o.stringRepeat(this.TAB_CHAR,n)+"</span>"):t.push(o.stringRepeat(" ",n));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var r="ace_indent-guide",i="",a="";if(this.showInvisibles){r+=" ace_invisible",i=" ace_invisible_space",a=" ace_invisible_tab";var s=o.stringRepeat(this.SPACE_CHAR,this.tabSize),c=o.stringRepeat(this.TAB_CHAR,this.tabSize)}else c=s=o.stringRepeat(" ",this.tabSize);this.$tabStrings[" "]="<span class='"+r+i+"'>"+s+"</span>",this.$tabStrings["\t"]="<span class='"+r+a+"'>"+c+"</span>"}},this.updateLines=function(e,t,n){this.config.lastRow==e.lastRow&&this.config.firstRow==e.firstRow||this.scrollLines(e),this.config=e;for(var r=Math.max(t,e.firstRow),i=Math.min(n,e.lastRow),o=this.element.childNodes,a=0,s=e.firstRow;s<r;s++){if(c=this.session.getFoldLine(s)){if(c.containsRow(r)){r=c.start.row;break}s=c.end.row}a++}s=r;for(var c,l=(c=this.session.getNextFoldLine(s))?c.start.row:1/0;s>l&&(s=c.end.row+1,l=(c=this.session.getNextFoldLine(s,c))?c.start.row:1/0),!(s>i);){var u=o[a++];if(u){var h=[];this.$renderLine(h,s,!this.$useLineGroups(),s==l&&c),u.style.height=e.lineHeight*this.session.getRowLength(s)+"px",u.innerHTML=h.join("")}s++}},this.scrollLines=function(e){var t=this.config;if(this.config=e,!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);var n=this.element;if(t.firstRow<e.firstRow)for(var r=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);r>0;r--)n.removeChild(n.firstChild);if(t.lastRow>e.lastRow)for(r=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);r>0;r--)n.removeChild(n.lastChild);if(e.firstRow<t.firstRow){var i=this.$renderLinesFragment(e,e.firstRow,t.firstRow-1);n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i)}e.lastRow>t.lastRow&&(i=this.$renderLinesFragment(e,t.lastRow+1,e.lastRow),n.appendChild(i))},this.$renderLinesFragment=function(e,t,n){for(var r=this.element.ownerDocument.createDocumentFragment(),o=t,a=this.session.getNextFoldLine(o),s=a?a.start.row:1/0;o>s&&(o=a.end.row+1,s=(a=this.session.getNextFoldLine(o,a))?a.start.row:1/0),!(o>n);){var c=i.createElement("div"),l=[];if(this.$renderLine(l,o,!1,o==s&&a),c.innerHTML=l.join(""),this.$useLineGroups())c.className="ace_line_group",r.appendChild(c),c.style.height=e.lineHeight*this.session.getRowLength(o)+"px";else for(;c.firstChild;)r.appendChild(c.firstChild);o++}return r},this.update=function(e){this.config=e;for(var t=[],n=e.firstRow,r=e.lastRow,i=n,o=this.session.getNextFoldLine(i),a=o?o.start.row:1/0;i>a&&(i=o.end.row+1,a=(o=this.session.getNextFoldLine(i,o))?o.start.row:1/0),!(i>r);)this.$useLineGroups()&&t.push("<div class='ace_line_group' style='height:",e.lineHeight*this.session.getRowLength(i),"px'>"),this.$renderLine(t,i,!1,i==a&&o),this.$useLineGroups()&&t.push("</div>"),i++;this.element.innerHTML=t.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,r){var i=this,a=r.replace(/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]/g,(function(e,n,r,a,s){if(n)return i.showInvisibles?"<span class='ace_invisible ace_invisible_space'>"+o.stringRepeat(i.SPACE_CHAR,e.length)+"</span>":e;if("&"==e)return"&#38;";if("<"==e)return"&#60;";if(">"==e)return"&#62;";if("\t"==e){if(void 0!==i.session){var c=i.session.getScreenTabSize(t+a);return t+=c-1,i.$tabStrings[c]}return"<span class='ace_invisible ace_invisible_tab'>&#9;</span>"}if(" "==e){var l=i.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",u=i.showInvisibles?i.SPACE_CHAR:"";return t+=1,"<span class='"+l+"' style='width:"+2*i.config.characterWidth+"px'>"+u+"</span>"}return r?"<span class='ace_invisible ace_invisible_space ace_invalid'>"+i.SPACE_CHAR+"</span>":(t+=1,"<span class='ace_cjk' style='width:"+2*i.config.characterWidth+"px'>"+e+"</span>")}));if(this.$textToken[n.type])e.push(a);else{var s="ace_"+n.type.replace(/\./g," ace_"),c="";"fold"==n.type&&(c=" style='width:"+n.value.length*this.config.characterWidth+"px;' "),e.push("<span class='",s,"'",c,">",a,"</span>")}return t+r.length},this.renderIndentGuide=function(e,t,n){var r=t.search(this.$indentGuideRe);return r<=0||r>=n?t:" "==t[0]?(r-=r%this.tabSize,e.push(o.stringRepeat(this.$tabStrings[" "],r/this.tabSize)),t.substr(r)):"\t"==t[0]?(e.push(o.stringRepeat(this.$tabStrings["\t"],r)),t.substr(r)):t},this.$renderWrappedLine=function(e,t,n,r){for(var i=0,a=0,s=n[0],c=0,l=0;l<t.length;l++){var u=t[l],h=u.value;if(0==l&&this.displayIndentGuides){if(i=h.length,!(h=this.renderIndentGuide(e,h,s)))continue;i-=h.length}if(i+h.length<s)c=this.$renderToken(e,c,u,h),i+=h.length;else{for(;i+h.length>=s;)c=this.$renderToken(e,c,u,h.substring(0,s-i)),h=h.substring(s-i),i=s,r||e.push("</div>","<div class='ace_line' style='height:",this.config.lineHeight,"px'>"),e.push(o.stringRepeat(" ",n.indent)),c=0,s=n[++a]||Number.MAX_VALUE;0!=h.length&&(i+=h.length,c=this.$renderToken(e,c,u,h))}}},this.$renderSimpleLine=function(e,t){var n=0,r=t[0],i=r.value;this.displayIndentGuides&&(i=this.renderIndentGuide(e,i)),i&&(n=this.$renderToken(e,n,r,i));for(var o=1;o<t.length;o++)i=(r=t[o]).value,n=this.$renderToken(e,n,r,i)},this.$renderLine=function(e,t,n,r){if(r||0==r||(r=this.session.getFoldLine(t)),r)var i=this.$getFoldLineTokens(t,r);else i=this.session.getTokens(t);if(n||e.push("<div class='ace_line' style='height:",this.config.lineHeight*(this.$useLineGroups()?1:this.session.getRowLength(t)),"px'>"),i.length){var o=this.session.getRowSplitData(t);o&&o.length?this.$renderWrappedLine(e,i,o,n):this.$renderSimpleLine(e,i)}this.showInvisibles&&(r&&(t=r.end.row),e.push("<span class='ace_invisible ace_invisible_eol'>",t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"</span>")),n||e.push("</div>")},this.$getFoldLineTokens=function(e,t){var n=this.session,r=[],i=n.getTokens(e);return t.walk((function(e,t,o,a,s){null!=e?r.push({type:"fold",value:e}):(s&&(i=n.getTokens(t)),i.length&&function(e,t,n){for(var i=0,o=0;o+e[i].value.length<t;)if(o+=e[i].value.length,++i==e.length)return;for(o!=t&&((a=e[i].value.substring(t-o)).length>n-t&&(a=a.substring(0,n-t)),r.push({type:e[i].type,value:a}),o=t+a.length,i+=1);o<n&&i<e.length;){var a;(a=e[i].value).length+o>n?r.push({type:e[i].type,value:a.substring(0,n-o)}):r.push(e[i]),o+=a.length,i+=1}}(i,a,o))}),t.end.row,this.session.getLine(t.end.row).length),r},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(s.prototype),t.Text=s})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r,i=e("../lib/dom"),o=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),void 0===r&&(r=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),i.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(r?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.visibility=e?"":"hidden"},this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.opacity=e?"":"0"},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e==this.smoothBlinking||r||(this.smoothBlinking=e,i.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var e=i.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,i.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,i.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&i.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible){this.smoothBlinking&&setTimeout(function(){i.addCssClass(this.element,"ace_smooth-blinking")}.bind(this));var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}},this.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+n.column*this.config.characterWidth,top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,r=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]),n=0;for(var i=t.length;n<i;n++){var o=this.getPixelPosition(t[n].cursor,!0);if(!((o.top>e.height+e.offset||o.top<0)&&n>1)){var a=(this.cursors[r++]||this.addCursor()).style;this.drawCursor?this.drawCursor(a,o,e,t[n],this.session):(a.left=o.left+"px",a.top=o.top+"px",a.width=e.characterWidth+"px",a.height=e.lineHeight+"px")}}for(;this.cursors.length>r;)this.removeCursor();var s=this.session.getOverwrite();this.$setOverwrite(s),this.$pixelPos=o,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?i.addCssClass(this.element,"ace_overwrite-cursors"):i.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(o.prototype),t.Cursor=o})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./lib/event"),a=e("./lib/event_emitter").EventEmitter,s=function(e){this.element=i.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=i.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)};(function(){r.implement(this,a),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e}}).call(s.prototype);var c=function(e,t){s.call(this,e),this.scrollTop=0,t.$scrollbarWidth=this.width=i.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px"};r.inherits(c,s),function(){this.classSuffix="-v",this.onScroll=function(){this.skipEvent||(this.scrollTop=this.element.scrollTop,this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},this.getWidth=function(){return this.isVisible?this.width:0},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=function(e){this.inner.style.height=e+"px"},this.setScrollHeight=function(e){this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=this.element.scrollTop=e)}}.call(c.prototype);var l=function(e,t){s.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};r.inherits(l,s),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(l.prototype),t.ScrollBar=c,t.ScrollBarV=c,t.ScrollBarH=l,t.VScrollBar=c,t.HScrollBar=l})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var r=e("./lib/event"),i=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.window=t||window};(function(){this.schedule=function(e){if(this.changes=this.changes|e,!this.pending&&this.changes){this.pending=!0;var t=this;r.nextFrame((function(){var e;for(t.pending=!1;e=t.changes;)t.changes=0,t.onRender(e)}),this.window)}}}).call(i.prototype),t.RenderLoop=i})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),a=e("../lib/useragent"),s=e("../lib/event_emitter").EventEmitter,c=0,l=t.FontMetrics=function(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),c||this.$testFractionalRect(),this.$measureNode.innerHTML=o.stringRepeat("X",c),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){r.implement(this,s),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var e=i.createElement("div");this.$setMeasureNodeStyles(e.style),e.style.width="0.2px",document.documentElement.appendChild(e);var t=e.getBoundingClientRect().width;c=t>0&&t<1?50:100,e.parentNode.removeChild(e)},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(){var e=this.$measureSizes();if(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})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=setInterval((function(){e.checkForSizeChanges()}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(50===c){var e=null;try{e=this.$measureNode.getBoundingClientRect()}catch(t){e={width:0,height:0}}var t={height:e.height,width:e.width/c}}else t={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/c};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){return this.$main.innerHTML=o.stringRepeat(e,c),this.$main.getBoundingClientRect().width/c},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(l.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./config"),a=e("./lib/useragent"),s=e("./layer/gutter").Gutter,c=e("./layer/marker").Marker,l=e("./layer/text").Text,u=e("./layer/cursor").Cursor,h=e("./scrollbar").HScrollBar,d=e("./scrollbar").VScrollBar,f=e("./renderloop").RenderLoop,p=e("./layer/font_metrics").FontMetrics,g=e("./lib/event_emitter").EventEmitter;i.importCssString('.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_editor.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}',"ace_editor.css");var m=function(e,t){var n=this;this.container=e||i.createElement("div"),this.$keepTextAreaAtCursor=!a.isOldIE,i.addCssClass(this.container,"ace_editor"),this.setTheme(t),this.$gutter=i.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),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 c(this.content);var r=this.$textLayer=new l(this.content);this.canvas=r.element,this.$markerFront=new c(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new d(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.addEventListener("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 p(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("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.$loop=new f(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,r.implement(this,g),this.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()},this.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.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.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)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar()},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,r){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var i=this.container;r||(r=i.clientHeight||i.scrollHeight),n||(n=i.clientWidth||i.scrollWidth);var o=this.$updateCachedSize(e,t,n,r);if(!this.$size.scrollerHeight||!n&&!r)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,r){r-=this.$extraHeight||0;var i=0,o=this.$size,a={width:o.width,height:o.height,scrollerHeight:o.scrollerHeight,scrollerWidth:o.scrollerWidth};return r&&(e||o.height!=r)&&(o.height=r,i|=this.CHANGE_SIZE,o.scrollerHeight=o.height,this.$horizScroll&&(o.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",i|=this.CHANGE_SCROLL),n&&(e||o.width!=n)&&(i|=this.CHANGE_SIZE,o.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,this.scrollBarH.element.style.left=this.scroller.style.left=t+"px",o.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(i|=this.CHANGE_FULL)),o.$dirty=!n||!r,i&&this._signal("resize",a),i},this.onGutterResize=function(){var e=this.$showGutter?this.$gutter.offsetWidth:0;e!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.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)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var e=this.$cursorLayer.$pixelPos,t=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var n=this.session.selection.getCursor();n.column=0,e=this.$cursorLayer.getPixelPosition(n,!0),t*=this.session.getRowLength(n.row)}this.$gutterLineHighlight.style.top=e.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=t+"px"},this.$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=this.characterWidth*this.$printMarginColumn+this.$padding+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var e=this.layerConfig,t=this.$cursorLayer.$pixelPos.top,n=this.$cursorLayer.$pixelPos.left;t-=e.offset;var r=this.textarea.style,i=this.lineHeight;if(t<0||t>e.height-i)r.top=r.left="0";else{var o=this.characterWidth;if(this.$composition){var a=this.textarea.value.replace(/^\x01+/,"");o*=this.session.$getStringScreenWidth(a)[0]+2,i+=2}(n-=this.scrollLeft)>this.$size.scrollerWidth-o&&(n=this.$size.scrollerWidth-o),n+=this.gutterWidth,r.height=i+"px",r.width=o+"px",r.left=Math.min(n,this.$size.scrollerWidth-o)+"px",r.top=Math.min(t,this.$size.height-i)+"px"}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.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},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.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()},this.setScrollMargin=function(e,t,n,r){var i=this.scrollMargin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,i.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-i.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$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)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$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");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(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var r=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;r>0&&(this.scrollTop=r,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-n.offset+"px",this.content.style.marginTop=-n.offset+"px",this.content.style.width=n.width+2*this.$padding+"px",this.content.style.height=n.minHeight+"px"}if(e&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),void this._signal("afterRender");if(e&this.CHANGE_SCROLL)return e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),void this._signal("afterRender");e&this.CHANGE_TEXT?(this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):(e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),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")}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.max((this.$minLines||1)*this.lineHeight,Math.min(t,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight());var r=e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||r!=this.$vScroll){r!=this.$vScroll&&(this.$vScroll=r,this.scrollBarV.setVisible(r));var i=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,i,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,r=this.session.getScreenLength()*this.lineHeight,i=this.$getLongestLine(),o=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-i-2*this.$padding<0),a=this.$horizScroll!==o;a&&(this.$horizScroll=o,this.scrollBarH.setVisible(o));var s=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var c=this.scrollTop%this.lineHeight,l=t.scrollerHeight+this.lineHeight,u=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;r+=u;var h=this.scrollMargin;this.session.setScrollTop(Math.max(-h.top,Math.min(this.scrollTop,r-t.scrollerHeight+h.bottom))),this.session.setScrollLeft(Math.max(-h.left,Math.min(this.scrollLeft,i+2*this.$padding-t.scrollerWidth+h.right)));var d=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-r+u<0||this.scrollTop>h.top),f=s!==d;f&&(this.$vScroll=d,this.scrollBarV.setVisible(d));var p,g,m=Math.ceil(l/this.lineHeight)-1,E=Math.max(0,Math.round((this.scrollTop-c)/this.lineHeight)),v=E+m,y=this.lineHeight;E=e.screenToDocumentRow(E,0);var b=e.getFoldLine(E);b&&(E=b.start.row),p=e.documentToScreenRow(E,0),g=e.getRowLength(E)*y,v=Math.min(e.screenToDocumentRow(v,0),e.getLength()-1),l=t.scrollerHeight+e.getRowLength(v)*y+g,c=this.scrollTop-p*y;var A=0;return this.layerConfig.width!=i&&(A=this.CHANGE_H_SCROLL),(a||f)&&(A=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),f&&(i=this.$getLongestLine())),this.layerConfig={width:i,padding:this.$padding,firstRow:E,firstRowScreen:p,lastRow:v,lineHeight:y,characterWidth:this.characterWidth,minHeight:l,maxHeight:r,offset:c,gutterOffset:Math.max(0,Math.ceil((c+t.height-t.scrollerHeight)/y)),height:this.$size.scrollerHeight},A},this.$updateLines=function(){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)},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var r=this.$cursorLayer.getPixelPosition(e),i=r.left,o=r.top,a=n&&n.top||0,s=n&&n.bottom||0,c=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;c+a>o?(t&&c+a>o+this.lineHeight&&(o-=t*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):c+this.$size.scrollerHeight-s<o+this.lineHeight&&(t&&c+this.$size.scrollerHeight-s<o-this.lineHeight&&(o+=t*this.$size.scrollerHeight),this.session.setScrollTop(o+this.lineHeight-this.$size.scrollerHeight));var l=this.scrollLeft;l>i?(i<this.$padding+2*this.layerConfig.characterWidth&&(i=-this.scrollMargin.left),this.session.setScrollLeft(i)):l+this.$size.scrollerWidth<i+this.characterWidth?this.session.setScrollLeft(Math.round(i+this.characterWidth-this.$size.scrollerWidth)):l<=this.$padding&&i-l<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),r=this.$size.scrollerHeight-this.lineHeight,i=n.top-r*(t||0);return this.session.setScrollTop(i),i},this.STEPS=8,this.$calcSteps=function(e,t){var n,r,i=0,o=this.STEPS,a=[];for(i=0;i<o;++i)a.push((n=i/this.STEPS,r=e,(t-e)*(Math.pow(n-1,3)+1)+r));return a},this.scrollToLine=function(e,t,n,r){var i=this.$cursorLayer.getPixelPosition({row:e,column:0}).top;t&&(i-=this.$size.scrollerHeight/2);var o=this.scrollTop;this.session.setScrollTop(i),!1!==n&&this.animateScrolling(o,r)},this.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var r=this;if(e!=n){if(this.$scrollAnimation){var i=this.$scrollAnimation.steps;if(i.length&&(e=i[0])==n)return}var o=r.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:o},clearInterval(this.$timer),r.session.setScrollTop(o.shift()),r.session.$scrollTop=n,this.$timer=setInterval((function(){o.length?(r.session.setScrollTop(o.shift()),r.session.$scrollTop=n):null!=n?(r.session.$scrollTop=-1,r.session.setScrollTop(n),n=null):(r.$timer=clearInterval(r.$timer),r.$scrollAnimation=null,t&&t())}),10)}}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(t)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.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},this.pixelToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=(e+this.scrollLeft-n.left-this.$padding)/this.characterWidth,i=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),o=Math.round(r);return{row:i,column:o,side:r-o>0?1:-1}},this.screenToTextCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=Math.round((e+this.scrollLeft-n.left-this.$padding)/this.characterWidth),i=(t+this.scrollTop-n.top)/this.lineHeight;return this.session.screenToDocumentPosition(i,Math.max(r,0))},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=this.session.documentToScreenPosition(e,t),i=this.$padding+Math.round(r.column*this.characterWidth),o=r.row*this.lineHeight;return{pageX:n.left+i-this.scrollLeft,pageY:n.top+o-this.scrollTop}},this.visualizeFocus=function(){i.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){i.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,i.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(e){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(i.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)a(e);else{var r=e||this.$options.theme.initialValue;o.loadModule(["theme",r],a)}function a(r){if(n.$themeId!=e)return t&&t();if(r.cssClass){i.importCssString(r.cssText,r.cssClass,n.container.ownerDocument),n.theme&&i.removeCssClass(n.container,n.theme.cssClass);var o="padding"in r?r.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&o!=n.$padding&&n.setPadding(o),n.$theme=r.cssClass,n.theme=r,i.addCssClass(n.container,r.cssClass),i.setCssClass(n.container,"ace_dark",r.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:r}),t&&t()}}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){i.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){i.removeCssClass(this.container,e)},this.setCursorStyle=function(e){this.scroller.style.cursor!=e&&(this.scroller.style.cursor=e)},this.setMouseCursor=function(e){this.scroller.style.cursor=e},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(m.prototype),o.defineOptions(m.prototype,"renderer",{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},fadeFoldWidgets:{set:function(e){i.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e)},initialValue:!0},showLineNumbers:{set:function(e){this.$gutterLayer.setShowLineNumbers(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},highlightGutterLine:{set:function(e){if(!this.$gutterLineHighlight)return this.$gutterLineHighlight=i.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",void this.$gutter.appendChild(this.$gutterLineHighlight);this.$gutterLineHighlight.style.display=e?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){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(e){this.updateFull()}},minLines:{set:function(e){this.updateFull()}},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)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),t.VirtualRenderer=m})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/net"),o=e("../lib/event_emitter").EventEmitter,a=e("../config"),s=function(t,n,r,i){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),a.get("packaged")||!e.toUrl)i=i||a.moduleUrl(n,"worker");else{var o=this.$normalizePath;i=i||o(e.toUrl("ace/worker/worker.js",null,"_"));var s={};t.forEach((function(t){s[t]=o(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}try{this.$worker=new Worker(i)}catch(e){if(!(e instanceof window.DOMException))throw e;var c=this.$workerBlob(i),l=window.URL||window.webkitURL,u=l.createObjectURL(c);this.$worker=new Worker(u),l.revokeObjectURL(u)}this.$worker.postMessage({init:!0,tlns:s,module:n,classname:r}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){r.implement(this,o),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[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return i.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var r=this.callbackId++;this.callbacks[r]=n,t.push(r)}this.send(e,t)},this.emit=function(e,t){try{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.getValue()]),e.on("change",this.changeListener)},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.$doc.getValue()]):this.emit("change",{data:e}))},this.$workerBlob=function(e){var t="importScripts('"+i.qualifyURL(e)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(e){var n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return n.append(t),n.getBlob("application/javascript")}}}).call(s.prototype);var c=function(e,t,n){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var r=null,i=!1,s=Object.create(o),c=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(e){c.messageBuffer.push(e),r&&(i?setTimeout(l):l())},this.setEmitSync=function(e){i=e};var l=function(){var e=c.messageBuffer.shift();e.command?r[e.command].apply(r,e.args):e.event&&s._signal(e.event,e.data)};s.postMessage=function(e){c.onMessage({data:e})},s.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},s.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},a.loadModule(["worker",t],(function(e){for(r=new e[n](s);c.messageBuffer.length;)l()}))};c.prototype=s.prototype,t.UIWorkerClient=c,t.WorkerClient=s})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("./range").Range,i=e("./lib/event_emitter").EventEmitter,o=e("./lib/oop"),a=function(e,t,n,r,i,o){var a=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=i,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=r,this.$onCursorChange=function(){setTimeout((function(){a.onCursorChange()}))},this.$pos=n;var s=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=s.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){o.implement(this,i),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=n.addMarker(new r(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var r=t.createAnchor(n.row,n.column);r.$insertRight=!0,r.detach(),e.others.push(r)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new r(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.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 n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,i=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,o=t.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=n),i&&!this.session.$fromUndo)if("insert"===e.action)for(var a=this.others.length-1;a>=0;a--){var s={row:(c=this.others[a]).row,column:c.column+o};this.doc.insertMergedLines(s,e.lines)}else if("remove"===e.action)for(a=this.others.length-1;a>=0;a--){var c;s={row:(c=this.others[a]).row,column:c.column+o},this.doc.remove(new r(s.row,s.column,s.row,s.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,i){t.removeMarker(n.markerId),n.markerId=t.addMarker(new r(n.row,n.column,n.row,n.column+e.length),i,null,!1)};n(this.pos,this.mainClass);for(var i=this.others.length;i--;)n(this.others[i],this.othersClass)}},this.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))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.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(!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(a.prototype),t.PlaceHolder=a})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var r=e("../lib/event"),i=e("../lib/useragent");function o(e,t){return e.row==t.row&&e.column==t.column}t.onMouseDown=function(e){var t=e.domEvent,n=t.altKey,a=t.shiftKey,s=t.ctrlKey,c=e.getAccelKey(),l=e.getButton();if(s&&i.isMac&&(l=t.button),e.editor.inMultiSelectMode&&2==l)e.editor.textInput.onContextMenu(e.domEvent);else if(s||n||c){if(0===l){var u,h=e.editor,d=h.selection,f=h.inMultiSelectMode,p=e.getDocumentPosition(),g=d.getCursor(),m=e.inSelection()||d.isEmpty()&&o(p,g),E=e.x,v=e.y,y=h.session,b=h.renderer.pixelToScreenCoordinates(E,v),A=b;if(h.$mouseHandler.$enableJumpToDef)s&&n||c&&n?u=a?"block":"add":n&&h.$blockSelectEnabled&&(u="block");else if(c&&!n){if(u="add",!f&&a)return}else n&&h.$blockSelectEnabled&&(u="block");if(u&&i.isMac&&t.ctrlKey&&h.$mouseHandler.cancelContextMenu(),"add"==u){if(!f&&m)return;if(!f){var T=d.toOrientedRange();h.addSelectionMarker(T)}var C=d.rangeList.rangeAtPoint(p);h.$blockScrolling++,h.inVirtualSelectionMode=!0,a&&(C=null,T=d.ranges[0]||T,h.removeSelectionMarker(T)),h.once("mouseup",(function(){var e=d.toOrientedRange();C&&e.isEmpty()&&o(C.cursor,e.cursor)?d.substractPoint(e.cursor):(a?d.substractPoint(T.cursor):T&&(h.removeSelectionMarker(T),d.addRange(T)),d.addRange(e)),h.$blockScrolling--,h.inVirtualSelectionMode=!1}))}else if("block"==u){var R;e.stop(),h.inVirtualSelectionMode=!0;var S=[];h.$blockScrolling++,f&&!c?d.toSingleRange():!f&&c&&(R=d.toOrientedRange(),h.addSelectionMarker(R)),a?b=y.documentToScreenPosition(d.lead):d.moveToPosition(p),h.$blockScrolling--,A={row:-1,column:-1};r.capture(h.container,(function(e){E=e.clientX,v=e.clientY}),(function(e){clearInterval(_),h.removeSelectionMarkers(S),S.length||(S=[d.toOrientedRange()]),h.$blockScrolling++,R&&(h.removeSelectionMarker(R),d.toSingleRange(R));for(var t=0;t<S.length;t++)d.addRange(S[t]);h.inVirtualSelectionMode=!1,h.$mouseHandler.$clickSelection=null,h.$blockScrolling--}));var _=setInterval((function(){!function(){var e=h.renderer.pixelToScreenCoordinates(E,v),t=y.screenToDocumentPosition(e.row,e.column);o(A,e)&&o(t,d.lead)||(A=e,h.$blockScrolling++,h.selection.moveToPosition(t),h.renderer.scrollCursorIntoView(),h.removeSelectionMarkers(S),S=d.rectangularRangeBlock(A,b),h.$mouseHandler.$clickSelection&&1==S.length&&S[0].isEmpty()&&(S[0]=h.$mouseHandler.$clickSelection.clone()),S.forEach(h.addSelectionMarker,h),h.updateSelectionMarkers(),h.$blockScrolling--)}()}),20);return e.preventDefault()}}}else 0===l&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"splitIntoLines",exec:function(e){e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"alignCursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var r=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new r(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,n){var r=e("./range_list").RangeList,i=e("./range").Range,o=e("./selection").Selection,a=e("./mouse/multi_select_handler").onMouseDown,s=e("./lib/event"),c=e("./lib/lang"),l=e("./commands/multi_select_commands");t.commands=l.defaultCommands.concat(l.multiSelectCommands);var u=new(0,e("./search").Search),h=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(h.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 r=this.rangeList.add(e);return this.$onAddRange(e),r.length&&this.$onRemoveRange(r),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[0];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[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length?this.$onRemoveRange(e):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},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 r=this.ranges.indexOf(e[n]);this.ranges.splice(r,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[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new r,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{n=this.getRange();var r=this.isBackwards(),o=n.start.row,a=n.end.row;if(o==a){if(r)var s=n.end,c=n.start;else s=n.start,c=n.end;return this.addRange(i.fromPoints(c,c)),void this.addRange(i.fromPoints(s,s))}var l=[],u=this.getLineRange(o,!0);u.start.column=n.start.column,l.push(u);for(var h=o+1;h<a;h++)l.push(this.getLineRange(h,!0));(u=this.getLineRange(a,!0)).end.column=n.end.column,l.push(u),l.forEach(this.addRange,this)}},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var r=this.session.documentToScreenPosition(this.selectionLead),o=this.session.documentToScreenPosition(this.selectionAnchor);this.rectangularRangeBlock(r,o).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var r=[],o=e.column<t.column;if(o)var a=e.column,s=t.column;else a=t.column,s=e.column;var c,l,u=e.row<t.row;if(u)var h=e.row,d=t.row;else h=t.row,d=e.row;a<0&&(a=0),h<0&&(h=0),h==d&&(n=!0);for(var f=h;f<=d;f++){var p=i.fromPoints(this.session.screenToDocumentPosition(f,a),this.session.screenToDocumentPosition(f,s));if(p.isEmpty()){if(g&&(l=g,(c=p.end).row==l.row&&c.column==l.column))break;var g=p.end}p.cursor=o?p.start:p.end,r.push(p)}if(u&&r.reverse(),!n){for(var m=r.length-1;r[m].isEmpty()&&m>0;)m--;if(m>0)for(var E=0;r[E].isEmpty();)E++;for(var v=m;v>=E;v--)r[v].isEmpty()&&r.splice(v,1)}return r}}.call(o.prototype);var d=e("./editor").Editor;function f(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",a),e.commands.addCommands(l.defaultCommands),function(e){var t=e.textInput.getElement(),n=!1;function r(t){n&&(e.renderer.setMouseCursor(""),n=!1)}s.addListener(t,"keydown",(function(t){var i=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&i?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&r()})),s.addListener(t,"keyup",r),s.addListener(t,"blur",r)}(e))}(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 r=e[n];if(r.marker){this.session.removeMarker(r.marker);var i=t.indexOf(r);-1!=i&&t.splice(i,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(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.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?r=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?r=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),r=t.exec(n,e.args||{})):r=t.multiSelectAction(n,e.args||{});else{var r=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return r}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var r,i=n&&n.keepOrder,a=1==n||n&&n.$byLines,s=this.session,c=this.selection,l=c.rangeList,u=(i?c:l).ranges;if(!u.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var h=c._eventRegistry;c._eventRegistry={};var d=new o(s);this.inVirtualSelectionMode=!0;for(var f=u.length;f--;){if(a)for(;f>0&&u[f].start.row==u[f-1].end.row;)f--;d.fromOrientedRange(u[f]),d.index=f,this.selection=s.selection=d;var p=e.exec?e.exec(this,t||{}):e(this,t||{});r||void 0===p||(r=p),d.toOrientedRange(u[f])}d.detach(),this.selection=s.selection=c,this.inVirtualSelectionMode=!1,c._eventRegistry=h,c.mergeOverlappingRanges();var g=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),g&&g.from==g.to&&this.renderer.animateScrolling(g.from),r}},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=[],r=0;r<t.length;r++)n.push(this.session.getTextRange(t[r]));var i=this.session.getDocument().getNewLineCharacter();(e=n.join(i)).length==(n.length-1)*i.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[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var r=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;r.row==t.row&&this.session.$clipPositionToDocument(r.row,r.column).column==t.column||this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange())}},this.findAll=function(e,t,n){if((t=t||{}).needle=e||t.needle,null==t.needle){var r=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(r)}this.$search.set(t);var i=this.$search.findAll(this.session);if(!i.length)return 0;this.$blockScrolling+=1;var o=this.multiSelect;n||o.toSingleRange(i[0]);for(var a=i.length;a--;)o.addRange(i[a],!0);return r&&o.rangeList.rangeAtPoint(r.start)&&o.addRange(r,!0),this.$blockScrolling-=1,i.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),r=n.cursor==n.end,o=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(o.column=this.selection.$desiredColumn);var a,s=this.session.screenToDocumentPosition(o.row+e,o.column);if(n.isEmpty())l=s;else var c=this.session.documentToScreenPosition(r?n.end:n.start),l=this.session.screenToDocumentPosition(c.row+e,c.column);if(r?(a=i.fromPoints(s,l)).cursor=a.start:(a=i.fromPoints(l,s)).cursor=a.end,a.desiredColumn=o.column,this.selection.inMultiSelectMode){if(t)var u=n.cursor}else this.selection.addRange(n);this.selection.addRange(a),u&&this.selection.substractPoint(u)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,r=n.ranges,i=r.length;i--;)if((s=r[i]).isEmpty()){var o=t.getWordRange(s.start.row,s.start.column);s.start.row=o.start.row,s.start.column=o.start.column,s.end.row=o.end.row,s.end.column=o.end.column}n.mergeOverlappingRanges();var a=[];for(i=r.length;i--;){var s=r[i];a.unshift(t.getTextRange(s))}for(e<0?a.unshift(a.pop()):a.push(a.shift()),i=r.length;i--;)o=(s=r[i]).clone(),t.replace(s,a[i]),s.start.row=o.start.row,s.start.column=o.start.column},this.selectMore=function(e,t,n){var r=this.session,i=r.multiSelect.toOrientedRange();if(!i.isEmpty()||((i=r.getWordRange(i.start.row,i.start.column)).cursor=-1==e?i.start:i.end,this.multiSelect.addRange(i),!n)){var o=r.getTextRange(i),a=function(e,t,n){return u.$options.wrap=!0,u.$options.needle=t,u.$options.backwards=-1==n,u.find(e)}(r,o,e);a&&(a.cursor=-1==e?a.start:a.end,this.$blockScrolling+=1,this.session.unfold(a),this.multiSelect.addRange(a),this.$blockScrolling-=1,this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(i.cursor)}},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,r=-1,o=n.filter((function(e){if(e.cursor.row==r)return!0;r=e.cursor.row}));if(n.length&&o.length!=n.length-1){o.forEach((function(e){t.substractPoint(e.cursor)}));var a=0,s=1/0,l=n.map((function(t){var n=t.cursor,r=e.getLine(n.row).substr(n.column).search(/\S/g);return-1==r&&(r=0),n.column>a&&(a=n.column),r<s&&(s=r),r}));n.forEach((function(t,n){var r=t.cursor,o=a-r.column,u=l[n]-s;o>u?e.insert(r,c.stringRepeat(" ",o-u)):e.remove(new i(r.row,r.column,r.row,r.column-o+u)),t.start.column=t.end.column=a,t.start.row=t.end.row=r.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var u=this.selection.getRange(),h=u.start.row,d=u.end.row,f=h==d;if(f){var p,g=this.session.getLength();do{p=this.session.getLine(d)}while(/[=:]/.test(p)&&++d<g);do{p=this.session.getLine(h)}while(/[=:]/.test(p)&&--h>0);h<0&&(h=0),d>=g&&(d=g-1)}var m=this.session.removeFullLines(h,d);m=this.$reAlignText(m,f),this.session.insert({row:h,column:0},m.join("\n")+"\n"),f||(u.start.column=0,u.end.column=m[m.length-1].length),this.selection.setRange(u)}},this.$reAlignText=function(e,t){var n,r,i,o=!0,a=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,r=t[2].length,i=t[3].length,t):(n+r+i!=t[1].length+t[2].length+t[3].length&&(a=!1),n!=t[1].length&&(o=!1),n>t[1].length&&(n=t[1].length),r<t[2].length&&(r=t[2].length),i>t[3].length&&(i=t[3].length),t):[e]})).map(t?l:o?a?function(e){return e[2]?s(n+r-e[2].length)+e[2]+s(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:l:function(e){return e[2]?s(n)+e[2]+s(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function s(e){return c.stringRepeat(" ",e)}function l(e){return e[2]?s(n)+e[2]+s(r-e[2].length+i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(d.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=f,e("./config").defineOptions(d.prototype,"editor",{enableMultiselect:{set:function(e){f(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../../range").Range,i=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);return this.foldingStartMarker.test(r)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var i=/\S/,o=e.getLine(t),a=o.search(i);if(-1!=a){for(var s=n||o.length,c=e.getLength(),l=t,u=t;++t<c;){var h=e.getLine(t).search(i);if(-1!=h){if(h<=a)break;u=t}}if(u>l){var d=e.getLine(u).length;return new r(l,s,u,d)}}},this.openingBracketBlock=function(e,t,n,i,o){var a={row:n,column:i+1},s=e.$findClosingBracket(t,a,o);if(s){var c=e.foldWidgets[s.row];return null==c&&(c=e.getFoldWidget(s.row)),"start"==c&&s.row>a.row&&(s.row--,s.column=e.getLine(s.row).length),r.fromPoints(a,s)}},this.closingBracketBlock=function(e,t,n,i,o){var a={row:n,column:i},s=e.$findOpeningBracket(t,a);if(s)return s.column++,a.column--,r.fromPoints(s,a)}}).call(i.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',e("../lib/dom").importCssString(t.cssText,t.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";e("./lib/oop");var r=e("./lib/dom");function i(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)}e("./range").Range,function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.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)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var r=e.data,i=r.start.row,o=r.end.row,a="add"==e.action,s=i+1;s<o;s++)n[s]&&(n[s].hidden=a);n[o]&&(a?n[i]?n[o].hidden=a:n[i]=n[o]:(n[i]==n[o]&&(n[i]=void 0),n[o].hidden=a))}},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,r=e.end.row-n;if(0===r);else if("remove"==e.action)t.splice(n+1,r).forEach((function(e){e&&this.removeLineWidget(e)}),this),this.$updateRows();else{var i=new Array(r);i.unshift(n,0),t.splice.apply(t,i),this.$updateRows()}}},this.$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)}},this.addLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e.session=this.session;var n=this.editor.renderer;e.html&&!e.el&&(e.el=r.createElement("div"),e.el.innerHTML=e.html),e.el&&(r.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,n.container.appendChild(e.el),e._inDocument=!0),e.coverGutter||(e.el.style.zIndex=3),e.pixelHeight||(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/n.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[i.start.row]?e.hidden=!0:o[i.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,n),this.onWidgetChanged(e),e},this.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[e.row];if(t==e)this.session.lineWidgets[e.row]=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()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t[e],r=[];n;)r.push(n),n=n.$oldWidget;return r},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,r=t.layerConfig;if(n&&n.length){for(var i=1/0,o=0;o<n.length;o++){var a=n[o];if(a&&a.el&&a.session==this.session){if(!a._inDocument){if(this.session.lineWidgets[a.row]!=a)continue;a._inDocument=!0,t.container.appendChild(a.el)}a.h=a.el.offsetHeight,a.fixedWidth||(a.w=a.el.offsetWidth,a.screenWidth=Math.ceil(a.w/r.characterWidth));var s=a.h/r.lineHeight;a.coverLine&&(s-=this.session.getRowLineCount(a.row))<0&&(s=0),a.rowCount!=s&&(a.rowCount=s,a.row<i&&(i=a.row))}}i!=1/0&&(this.session._emit("changeFold",{data:{start:{row:i}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var n=t.layerConfig,r=this.session.lineWidgets;if(r){for(var i=Math.min(this.firstRow,n.firstRow),o=Math.max(this.lastRow,n.lastRow,r.length);i>0&&!r[i];)i--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var a=i;a<=o;a++){var s=r[a];if(s&&s.el)if(s.hidden)s.el.style.top=-100-(s.pixelHeight||0)+"px";else{s._inDocument||(s._inDocument=!0,t.container.appendChild(s.el));var c=t.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;s.coverLine||(c+=n.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=c-n.offset+"px";var l=s.coverGutter?0:t.gutterWidth;s.fixedWidth||(l-=t.scrollLeft),s.el.style.left=l+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=n.width+2*n.padding+"px"),s.fixedWidth?s.el.style.right=t.scrollBar.getWidth()+"px":s.el.style.right=""}}}}}.call(i.prototype),t.LineWidgets=i})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";var r=e("../line_widgets").LineWidgets,i=e("../lib/dom"),o=e("../range").Range;t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new r(n),n.widgetManager.attach(e));var a=e.getCursorPosition(),s=a.row,c=n.widgetManager.getWidgetsAtRow(s).filter((function(e){return"errorMarker"==e.type}))[0];c?c.destroy():s-=t;var l,u=function(e,t,n){var r=e.getAnnotations().sort(o.comparePoints);if(r.length){var i=function(e,t,n){for(var r=0,i=e.length-1;r<=i;){var o=r+i>>1,a=n(t,e[o]);if(a>0)r=o+1;else{if(!(a<0))return o;i=o-1}}return-(r+1)}(r,{row:t,column:-1},o.comparePoints);i<0&&(i=-i-1),i>=r.length?i=n>0?0:r.length-1:0===i&&n<0&&(i=r.length-1);var a=r[i];if(a&&n){if(a.row===t){do{a=r[i+=n]}while(a&&a.row===t);if(!a)return r.slice()}var s=[];t=a.row;do{s[n<0?"unshift":"push"](a),a=r[i+=n]}while(a&&a.row==t);return s.length&&s}}}(n,s,t);if(u){var h=u[0];a.column=(h.pos&&"number"!=typeof h.column?h.pos.sc:h.column)||0,a.row=h.row,l=e.renderer.$gutterLayer.$annotations[a.row]}else{if(c)return;l={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(a.row),e.selection.moveToPosition(a);var d={row:a.row,fixedWidth:!0,coverGutter:!0,el:i.createElement("div"),type:"errorMarker"},f=d.el.appendChild(i.createElement("div")),p=d.el.appendChild(i.createElement("div"));p.className="error_widget_arrow "+l.className;var g=e.renderer.$cursorLayer.getPixelPosition(a).left;p.style.left=g+e.renderer.gutterWidth-5+"px",d.el.className="error_widget_wrapper",f.className="error_widget "+l.className,f.innerHTML=l.text.join("<br>"),f.appendChild(i.createElement("div"));var m=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return d.destroy(),{command:"null"}};d.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(m),n.widgetManager.removeLineWidget(d),e.off("changeSelection",d.destroy),e.off("changeSession",d.destroy),e.off("mouseup",d.destroy),e.off("change",d.destroy))},e.keyBinding.addKeyboardHandler(m),e.on("changeSelection",d.destroy),e.on("changeSession",d.destroy),e.on("mouseup",d.destroy),e.on("change",d.destroy),e.session.widgetManager.addLineWidget(d),d.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:d.el.offsetHeight})},i.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,n){"use strict";e("./lib/fixoldbrowsers");var r=e("./lib/dom"),i=e("./lib/event"),o=e("./editor").Editor,a=e("./edit_session").EditSession,s=e("./undomanager").UndoManager,c=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.require=e,t.edit=function(e){if("string"==typeof e){var n=e;if(!(e=document.getElementById(n)))throw new Error("ace.edit can't find div #"+n)}if(e&&e.env&&e.env.editor instanceof o)return e.env.editor;var a="";if(e&&/input|textarea/i.test(e.tagName)){var s=e;a=s.value,e=r.createElement("pre"),s.parentNode.replaceChild(e,s)}else e&&(a=r.getInnerText(e),e.innerHTML="");var l=t.createEditSession(a),u=new o(new c(e));u.setSession(l);var h={document:l,editor:u,onResize:u.resize.bind(u,null)};return s&&(h.textarea=s),i.addListener(window,"resize",h.onResize),u.on("destroy",(function(){i.removeListener(window,"resize",h.onResize),h.editor.container.env=null})),u.container.env=u.env=h,u},t.createEditSession=function(e,t){var n=new a(e,t);return n.setUndoManager(new s),n},t.EditSession=a,t.UndoManager=s,t.version="1.2.2"})),ace.require(["ace/ace"],(function(e){for(var t in e&&e.config.init(!0),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t])}))},5466:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],(function(t,n,r){"use strict";var i=t("./lib/oop"),o=t("./lib/event_emitter").EventEmitter,a=t("./lib/lang"),s=t("./range").Range,c=t("./anchor").Anchor,l=t("./keyboard/hash_handler").HashHandler,u=t("./tokenizer").Tokenizer,h=s.comparePoints,d=function(){this.snippetMap={},this.snippetNameMap={}};(function(){i.implement(this,o),this.getTokenizer=function(){function e(e,t,n){return e=e.substr(1),/^\d+$/.test(e)&&!n.inFormatString?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}return d.$tokenizer=new u({start:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectIf?(n[0].expectIf=!1,n[0].elseBranch=n[0],[n[0]]):":"}},{regex:/\\./,onMatch:function(e,t,n){var r=e[1];return"}"==r&&n.length||-1!="`$\\".indexOf(r)?e=r:n.inFormatString&&("n"==r||"t"==r?e="\n":-1!="ulULE".indexOf(r)&&(e={changeCase:r,local:r>"a"})),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,r){var i=e(t.substr(1),0,r);return r.unshift(i[0]),i},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){n[0].choices=e.slice(1,-1).split(",")},next:"start"},{regex:"/("+t("/")+"+)/(?:("+t("/")+"*)/)(\\w*):?",onMatch:function(e,t,n){var r=n[0];return r.fmtString=e,e=this.splitRegex.exec(e),r.guard=e[1],r.fmt=e[2],r.flag=e[3],""},next:"start"},{regex:"`"+t("`")+"*`",onMatch:function(e,t,n){return n[0].code=e.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(e,t,n){n[0]&&(n[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+t("/")+"+)/",token:"regex"},{regex:"",onMatch:function(e,t,n){n.inFormatString=!0},next:"start"}]}),d.prototype.getTokenizer=function(){return d.$tokenizer},d.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},this.$getDefaultValue=function(e,t){if(/^[A-Z]\d+$/.test(t)){var n=t.substr(1);return(this.variables[t[0]+"__"]||{})[n]}if(/^\d+$/.test(t))return(this.variables.__||{})[t];if(t=t.replace(/^TM_/,""),e){var r=e.session;switch(t){case"CURRENT_WORD":var i=r.getWordRange();case"SELECTION":case"SELECTED_TEXT":return r.getTextRange(i);case"CURRENT_LINE":return r.getLine(e.getCursorPosition().row);case"PREV_LINE":return r.getLine(e.getCursorPosition().row-1);case"LINE_INDEX":return e.getCursorPosition().column;case"LINE_NUMBER":return e.getCursorPosition().row+1;case"SOFT_TABS":return r.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return r.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(e,t){return this.variables.hasOwnProperty(t)?this.variables[t](e,t)||"":this.$getDefaultValue(e,t)||""},this.tmStrFormat=function(t,n,r){var i=n.flag||"",o=n.guard;o=new RegExp(o,i.replace(/[^gi]/,""));var a=this.tokenizeTmSnippet(n.fmt,"formatString"),s=this,c=t.replace(o,(function(){s.variables.__=arguments;for(var t=s.resolveVariables(a,r),n="E",i=0;i<t.length;i++){var o=t[i];if("object"==e(o))if(t[i]="",o.changeCase&&o.local){var c=t[i+1];c&&"string"==typeof c&&("u"==o.changeCase?t[i]=c[0].toUpperCase():t[i]=c[0].toLowerCase(),t[i+1]=c.substr(1))}else o.changeCase&&(n=o.changeCase);else"U"==n?t[i]=o.toUpperCase():"L"==n&&(t[i]=o.toLowerCase())}return t.join("")}));return this.variables.__=null,c},this.resolveVariables=function(t,n){for(var r=[],i=0;i<t.length;i++){var o=t[i];if("string"==typeof o)r.push(o);else{if("object"!=e(o))continue;if(o.skip)s(o);else{if(o.processed<i)continue;if(o.text){var a=this.getVariableValue(n,o.text);a&&o.fmtString&&(a=this.tmStrFormat(a,o)),o.processed=i,null==o.expectIf?a&&(r.push(a),s(o)):a?o.skip=o.elseBranch:s(o)}else(null!=o.tabstopId||null!=o.changeCase)&&r.push(o)}}}function s(e){var n=t.indexOf(e,i+1);-1!=n&&(i=n)}return r},this.insertSnippetForSelection=function(t,n){var r=t.getCursorPosition(),i=t.session.getLine(r.row),o=t.session.getTabString(),a=i.match(/^\s*/)[0];r.column<a.length&&(a=a.slice(0,r.column));var s=this.tokenizeTmSnippet(n);s=(s=this.resolveVariables(s,t)).map((function(e){return"\n"==e?e+a:"string"==typeof e?e.replace(/\t/g,o):e}));var c=[];s.forEach((function(t,n){if("object"==e(t)){var r=t.tabstopId,i=c[r];if(i||((i=c[r]=[]).index=r,i.value=""),-1===i.indexOf(t)){i.push(t);var o=s.indexOf(t,n+1);if(-1!==o){var a=s.slice(n+1,o);a.some((function(t){return"object"===e(t)}))&&!i.value?i.value=a:!a.length||i.value&&"string"==typeof i.value||(i.value=a.join(""))}}}})),c.forEach((function(e){e.length=0}));var l={};function u(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if("object"==e(i)){if(l[i.tabstopId])continue;i=n[t.lastIndexOf(i,r-1)]||{tabstopId:i.tabstopId}}n[r]=i}return n}for(var h=0;h<s.length;h++){var d=s[h];if("object"==e(d)){var p=d.tabstopId,g=s.indexOf(d,h+1);if(l[p])l[p]===d&&(l[p]=null);else{var m=c[p],E="string"==typeof m.value?[m.value]:u(m.value);E.unshift(h+1,Math.max(0,g-h)),E.push(d),l[p]=d,s.splice.apply(s,E),-1===m.indexOf(d)&&m.push(d)}}}var v=0,y=0,b="";s.forEach((function(e){"string"==typeof e?("\n"===e[0]?(y=e.length-1,v++):y+=e.length,b+=e):e.start?e.end={row:v,column:y}:e.start={row:v,column:y}}));var A=t.getSelectionRange(),T=t.session.replace(A,b),C=new f(t),R=t.inVirtualSelectionMode&&t.selection.index;C.addTabstops(c,A.start,T,R)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection((function(){n.insertSnippetForSelection(e,t)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(t){var n=t.session.$mode.$id||"";if("html"===(n=n.split("/").pop())||"php"===n){"php"!==n||t.session.$mode.inlinePhp||(n="html");var r=t.getCursorPosition(),i=t.session.getState(r.row);"object"===e(i)&&(i=i[0]),i.substring&&("js-"==i.substring(0,3)?n="javascript":"css-"==i.substring(0,4)?n="css":"php-"==i.substring(0,4)&&(n="php"))}return n},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],r=this.snippetMap;return r[t]&&r[t].includeScopes&&n.push.apply(n,r[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,r=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return r&&e.tabstopManager&&e.tabstopManager.tabNext(),r},this.expandSnippetForSelection=function(e,t){var n,r=e.getCursorPosition(),i=e.session.getLine(r.row),o=i.substring(0,r.column),a=i.substr(r.column),s=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=s[e];return t&&(n=this.findMatchingSnippet(t,o,a)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(r.row,r.column-n.replaceBefore.length,r.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)},this.findMatchingSnippet=function(e,t,n){for(var r=e.length;r--;){var i=e[r];if((!i.startRe||i.startRe.test(t))&&(!i.endRe||i.endRe.test(n))&&(i.startRe||i.endRe))return i.matchBefore=i.startRe?i.startRe.exec(t):[""],i.matchAfter=i.endRe?i.endRe.exec(n):[""],i.replaceBefore=i.triggerRe?i.triggerRe.exec(t)[0]:"",i.replaceAfter=i.endTriggerRe?i.endTriggerRe.exec(n)[0]:"",i}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){var n=this.snippetMap,r=this.snippetNameMap,i=this;function o(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function s(e,t,n){return e=o(e),t=o(t),n?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function c(e){e.scope||(e.scope=t||"_"),t=e.scope,n[t]||(n[t]=[],r[t]={});var o=r[t];if(e.name){var c=o[e.name];c&&i.unregister(c),o[e.name]=e}n[t].push(e),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=a.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=s(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger,"",!0),e.endRe=s(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger,"",!0))}e||(e=[]),e&&e.content?c(e):Array.isArray(e)&&e.forEach(c),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){var n=this.snippetMap,r=this.snippetNameMap;function i(e){var i=r[e.scope||t];if(i&&i[e.name]){delete i[e.name];var o=n[e.scope||t],a=o&&o.indexOf(e);a>=0&&o.splice(a,1)}}e.content?i(e):Array.isArray(e)&&e.forEach(i)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,n=[],r={},i=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=i.exec(e);){if(t[1])try{r=JSON.parse(t[1]),n.push(r)}catch(e){}if(t[4])r.content=t[4].replace(/^\t/gm,""),n.push(r),r={};else{var o=t[2],a=t[3];if("regex"==o){var s=/\/((?:[^\/\\]|\\.)*)|$/g;r.guard=s.exec(a)[1],r.trigger=s.exec(a)[1],r.endTrigger=s.exec(a)[1],r.endGuard=s.exec(a)[1]}else"snippet"==o?(r.tabTrigger=a.match(/^\S*/)[0],r.name||(r.name=a)):r[o]=a}}return n},this.getSnippetByName=function(e,t){var n,r=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var i=r[t];return i&&(n=i[e]),!!n}),this),n}}).call(d.prototype);var f=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=a.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,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)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){var t="r"==e.action[0],n=e.start,r=e.end,i=n.row,o=r.row-i,a=r.column-n.column;if(t&&(o=-o,a=-a),!this.$inChange&&t){var s=this.selectedTabstop,c=s&&!s.some((function(e){return h(e.start,n)<=0&&h(e.end,r)>=0}));if(c)return this.detach()}for(var l=this.ranges,u=0;u<l.length;u++){var d=l[u];d.end.row<n.row||(t&&h(n,d.start)<0&&h(r,d.end)>0?(this.removeRange(d),u--):(d.start.row==i&&d.start.column>n.column&&(d.start.column+=a),d.end.row==i&&d.end.column>=n.column&&(d.end.column+=a),d.start.row>=i&&(d.start.row+=o),d.end.row>=i&&(d.end.row+=o),h(d.start,d.end)>0&&this.removeRange(d)))}l.length||this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges){this.$inChange=!0;for(var t=this.editor.session,r=t.getTextRange(e.firstNonLinked),i=e.length;i--;){var o=e[i];if(o.linked){var a=n.snippetManager.tmStrFormat(r,o.original);t.replace(o,a)}}this.$inChange=!1}},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),r=this.ranges.length;r--;)if(!this.ranges[r].linked){var i=this.ranges[r].contains(e.row,e.column),o=n||this.ranges[r].contains(t.row,t.column);if(i&&o)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.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),0===n&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,(t=this.tabstops[this.index])&&t.length){if(this.selectedTabstop=t,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(t.firstNonLinked);else{var n=this.editor.multiSelect;n.toSingleRange(t.firstNonLinked.clone());for(var r=t.length;r--;)t.hasLinkedRanges&&t[r].linked||n.addRange(t[r].clone(),!0);n.ranges[0]&&n.addRange(n.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(e,t,n){if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var r=s.fromPoints(n,n);m(r.start,t),m(r.end,t),e[0]=[r],e[0].index=0}var i=[this.index+1,0],o=this.ranges;e.forEach((function(e,n){for(var r=this.$openTabstops[n]||e,a=e.length;a--;){var c=e[a],l=s.fromPoints(c.start,c.end||c.start);g(l.start,t),g(l.end,t),l.original=c,l.tabstop=r,o.push(l),r!=e?r.unshift(l):r[a]=l,c.fmtString?(l.linked=!0,r.hasLinkedRanges=!0):r.firstNonLinked||(r.firstNonLinked=l)}r.firstNonLinked||(r.hasLinkedRanges=!1),r===e&&(i.push(r),this.$openTabstops[n]=r),this.addTabstopMarkers(r)}),this),i.length>2&&(this.tabstops.length&&i.push(i.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,i))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},this.removeRange=function(e){var t=e.tabstop.indexOf(e);e.tabstop.splice(t,1),t=this.ranges.indexOf(e),this.ranges.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new l,this.keyboardHandler.bindKeys({Tab:function(e){n.snippetManager&&n.snippetManager.expandWithTab(e)||e.tabstopManager.tabNext(1)},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1)},Esc:function(e){e.tabstopManager.detach()},Return:function(e){return!1}})}).call(f.prototype);var p={};p.onChange=c.prototype.onChange,p.setPosition=function(e,t){this.pos.row=e,this.pos.column=t},p.update=function(e,t,n){this.$insertRight=n,this.pos=e,this.onChange(t)};var g=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},m=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};t("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),n.snippetManager=new d;var E=t("./editor").Editor;(function(){this.insertSnippet=function(e,t){return n.snippetManager.insertSnippet(this,e,t)},this.expandSnippet=function(e){return n.snippetManager.expandWithTab(this,e)}}).call(E.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../virtual_renderer").VirtualRenderer,i=e("../editor").Editor,o=e("../range").Range,a=e("../lib/event"),s=e("../lib/lang"),c=e("../lib/dom"),l=function(e){var t=new r(e);t.$maxLines=4;var n=new i(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusWaitTimout=0,n.$highlightTagPending=!0,n};c.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4);}.ace_editor.ace_autocomplete .ace_line-hover { position: absolute; z-index: 2;}.ace_editor.ace_autocomplete .ace_scroller { background: none; border: none; box-shadow: none;}.ace_rightAlignedText { color: gray; display: inline-block; position: absolute; right: 4px; text-align: right; z-index: -1;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #000; text-shadow: 0 0 0.01em;}.ace_editor.ace_autocomplete { width: 280px; z-index: 200000; background: #fbfbfb; color: #444; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4;}"),t.AcePopup=function(e){var t=c.createElement("div"),n=new l(t);e&&e.appendChild(t),t.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var r,i=function(){};n.focus=i,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=i,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),h.start.row=h.end.row=t.row,e.stop()}));var u=new o(-1,0,-1,1/0),h=new o(-1,0,-1,1/0);h.id=n.session.addMarker(h,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?u.id&&(n.session.removeMarker(u.id),u.id=null):u.id=n.session.addMarker(u,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",(function(e){if(r){if(r.x!=e.x||r.y!=e.y){(r=e).scrollTop=n.renderer.scrollTop;var t=r.getDocumentPosition().row;u.start.row!=t&&(u.id||n.setRow(t),f(t))}}else r=e})),n.renderer.on("beforeRender",(function(){if(r&&-1!=u.start.row){r.$pos=null;var e=r.getDocumentPosition().row;u.id||n.setRow(e),f(e,!0)}})),n.renderer.on("afterRender",(function(){var e=n.getRow(),t=n.renderer.$textLayer,r=t.element.childNodes[e-t.config.firstRow];r!=t.selectedNode&&(t.selectedNode&&c.removeCssClass(t.selectedNode,"ace_selected"),t.selectedNode=r,r&&c.addCssClass(r,"ace_selected"))}));var d=function(){f(-1)},f=function(e,t){e!==u.start.row&&(u.start.row=u.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return u.start.row},a.addListener(n.container,"mouseout",d),n.on("hide",d),n.on("changeSelection",d),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var p=n.session.bgTokenizer;return p.$tokenizeRow=function(e){var t=n.data[e],r=[];if(!t)return r;"string"==typeof t&&(t={value:t}),t.caption||(t.caption=t.value||t.name);for(var i,o,a=-1,s=0;s<t.caption.length;s++)o=t.caption[s],a!==(i=t.matchMask&1<<s?1:0)?(r.push({type:t.className||(i?"completion-highlight":""),value:o}),a=i):r[r.length-1].value+=o;if(t.meta){var c=n.renderer.$size.scrollerWidth/n.renderer.layerConfig.characterWidth,l=t.meta;l.length+t.caption.length>c-2&&(l=l.substr(0,c-t.caption.length-3)+"…"),r.push({type:"rightAlignedText",value:l})}return r},p.$updateOnChange=i,p.start=i,n.session.$computeWidth=function(){return this.screenWidth=0},n.$blockScrolling=1/0,n.isOpen=!1,n.isTopdown=!1,n.data=[],n.setData=function(e){n.setValue(s.stringRepeat("\n",e.length),-1),n.data=e||[],n.setRow(0)},n.getData=function(e){return n.data[e]},n.getRow=function(){return h.start.row},n.setRow=function(e){e=Math.max(0,Math.min(this.data.length,e)),h.start.row!=e&&(n.selection.clearSelection(),h.start.row=h.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",this._signal("hide"),n.isOpen=!1},n.show=function(e,t,i){var o=this.container,a=window.innerHeight,s=window.innerWidth,c=this.renderer.$maxLines*t*1.4,l=e.top+this.$borderSize;l+c>a-t&&!i?(o.style.top="",o.style.bottom=a-l+"px",n.isTopdown=!1):(l+=t,o.style.top=l+"px",o.style.bottom="",n.isTopdown=!0),o.style.display="",this.renderer.$textLayer.checkForSizeChanges();var u=e.left;u+o.offsetWidth>s&&(u=s-o.offsetWidth),o.style.left=u+"px",this._signal("show"),r=null,n.isOpen=!0},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n}})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(e,t,n){"use strict";t.parForEach=function(e,t,n){var r=0,i=e.length;0===i&&n();for(var o=0;o<i;o++)t(e[o],(function(e,t){++r===i&&n(e,t)}))};var r=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||r;for(var i=[],o=t-1;o>=0&&n.test(e[o]);o--)i.push(e[o]);return i.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||r;for(var i=[],o=t;o<e.length&&n.test(e[o]);o++)i.push(e[o]);return i}})),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/snippets"],(function(e,t,n){"use strict";var r=e("./keyboard/hash_handler").HashHandler,i=e("./autocomplete/popup").AcePopup,o=e("./autocomplete/util"),a=(e("./lib/event"),e("./lib/lang")),s=e("./lib/dom"),c=e("./snippets").snippetManager,l=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new r,this.keyboardHandler.bindKeys(this.commands),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.changeTimer=a.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new i(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.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(e,t,n){this.popup||this.$init(),this.popup.setData(this.completions.filtered),e.keyBinding.addKeyboardHandler(this.keyboardHandler);var r=e.renderer;if(this.popup.setRow(this.autoSelect?0:-1),n)n&&!t&&this.detach();else{this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize());var i=r.layerConfig.lineHeight,o=r.$cursorLayer.getPixelPosition(this.base,!0);o.left-=this.popup.getTextLeftOffset();var a=e.container.getBoundingClientRect();o.top+=a.top-r.layerConfig.offset,o.left+=a.left-e.renderer.scrollLeft,o.left+=r.gutterWidth,this.popup.show(o,i)}},this.detach=function(){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.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(e){var t=this.editor.selection.lead;(t.row!=this.base.row||t.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),r=e.relatedTarget&&e.relatedTarget==this.tooltipNode,i=this.popup&&this.popup.container;t==n||t.parentNode==i||r||t==this.tooltipNode||e.relatedTarget==n||this.detach()},this.mousedownListener=function(e){this.detach()},this.mousewheelListener=function(e){this.detach()},this.goTo=function(e){var t=this.popup.getRow(),n=this.popup.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.popup.setRow(t)},this.insertMatch=function(e,t){if(e||(e=this.popup.getData(this.popup.getRow())),!e)return!1;if(e.completer&&e.completer.insertMatch)e.completer.insertMatch(this.editor,e);else{if(this.completions.filterText)for(var n,r=this.editor.selection.getAllRanges(),i=0;n=r[i];i++)n.start.column-=this.completions.filterText.length,this.editor.session.remove(n);e.snippet?c.insertSnippet(this.editor,e.snippet):e.upperCaseMatch?this.editor.execCommand("insertstring",e.upperCaseValue):this.editor.execCommand("insertstring",e.value||e),this.editor.renderer.scrollCursorIntoView()}this.detach()},this.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")},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},this.gatherCompletions=function(e,t){var n=e.getSession(),r=e.getCursorPosition(),i=n.getLine(r.row),a=o.retrievePrecedingIdentifier(i,r.column);this.base=n.doc.createAnchor(r.row,r.column-a.length),this.base.$insertRight=!0;var s=[],c=e.completers.length+n.getCompleters().length;return e.completers.concat(n.getCompleters()).forEach((function(i,l){i.getCompletions(e,n,r,a,(function(r,i){r||(s=s.concat(i));var a=e.getCursorPosition(),l=n.getLine(a.row);t(null,{prefix:o.retrievePrecedingIdentifier(l,a.column,i[0]&&i[0].identifierRegex),matches:s,finished:0==--c})}))})),!0},this.showPopup=function(e){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()},this.updateCompletions=function(e){if(e&&this.base&&this.completions){var t=this.editor.getCursorPosition(),n=this.editor.session.getTextRange({start:this.base,end:t});if(n==this.completions.filterText)return;return this.completions.setFilter(n),this.completions.filtered.length&&(1!=this.completions.filtered.length||this.completions.filtered[0].value!=n||this.completions.filtered[0].snippet)?void this.openPopup(this.editor,n,e):this.detach()}var r=this.gatherCompletionsId;this.gatherCompletions(this.editor,function(t,n){var i=function(){if(n.finished)return this.detach()}.bind(this),o=n.prefix,a=n&&n.matches;if(!a||!a.length)return i();if(0===o.indexOf(n.prefix)&&r==this.gatherCompletionsId){this.completions=new u(a),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(o);var s=this.completions.filtered;return s.length&&(1!=s.length||s[0].value!=o||s[0].snippet)?this.autoInsert&&1==s.length&&n.finished?this.insertMatch(s[0]):void this.openPopup(this.editor,o,e):i()}}.bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var e=this.popup,t=e.data,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),r=null;return n&&this.editor&&this.popup.isOpen?(this.editor.completers.some((function(e){return e.getDocTooltip&&(r=e.getDocTooltip(n)),r})),r||(r=n),"string"==typeof r&&(r={docText:r}),r&&(r.docHTML||r.docText)?void this.showDocTooltip(r):this.hideDocTooltip()):this.hideDocTooltip()},this.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=s.createElement("div"),this.tooltipNode.className="autocomplete-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this));var t=this.tooltipNode;e.docHTML?t.innerHTML=e.docHTML:e.docText&&(t.textContent=e.docText),t.parentNode||document.body.appendChild(t);var n=this.popup,r=n.container.getBoundingClientRect();t.style.top=n.container.style.top,t.style.bottom=n.container.style.bottom,window.innerWidth-r.right<320?(t.style.right=window.innerWidth-r.left+"px",t.style.left=""):(t.style.left=r.right+1+"px",t.style.right=""),t.style.display="block"},this.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)}}}).call(l.prototype),l.startCommand={name:"startAutocomplete",exec:function(e){if(e.useHueAutocompleter){var t=e.renderer,n=t.layerConfig.lineHeight,r=t.$cursorLayer.getPixelPosition(this.base,!0),i=e.container.getBoundingClientRect();return r.top+=i.top-t.layerConfig.offset,r.left+=i.left-e.renderer.scrollLeft,r.left+=t.gutterWidth,void e._signal("showAutocomplete",{position:r,lineHeight:n})}e.completer||(e.completer=new l),e.completer.autoInsert=!1,e.completer.autoSelect=!0,e.completer.showPopup(e),e.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var u=function(e,t){this.all=e,this.filtered=e,this.filterText=t||"",this.exactMatch=!1};(function(){this.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){if(e.completeMatch&&!t.completeMatch)return-1;if(!e.completeMatch&&t.completeMatch)return 1;if(e.completeMatch&&t.completeMatch&&e.weight&&t.weight&&t.weight!==e.weight)return t.weight-e.weight;if(e.completeMatch&&t.completeMatch&&e.startsWith&&!t.startsWith)return-1;if(e.completeMatch&&t.completeMatch&&!e.startsWith&&t.startsWith)return 1;if(e.prioritizeScore&&t.prioritizeScore)return t.score-e.score;if(e.prioritizeScore)return-1;if(t.prioritizeScore)return 1;var n=0;return e.caption>t.caption&&(n=1),e.caption<t.caption&&(n=-1),n+t.exactMatch-e.exactMatch||n+t.score-e.score}));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},this.filterCompletions=function(e,t){var n=[],r=t.toUpperCase(),i=t.toLowerCase();e:for(var o,a=0;o=e[a];a++){var s=o.value||o.caption||o.snippet;if(s){var c,l,u=-1,h=0,d=0,f=0;if(this.exactMatch&&o.ignoreCase){if(r!==o.upperCaseValue.substr(0,t.length))continue e;o.upperCaseMatch=t===r,o.caption=o.upperCaseMatch?o.upperCaseValue:o.value}else{if(this.exactMatch&&t!==s.substr(0,t.length))continue e;(f=s.toUpperCase().indexOf(r))>-1&&(u=f-1);for(var p=0;p<t.length;p++){var g=s.indexOf(i[p],u+1),m=s.indexOf(r[p],u+1);if((c=g>=0&&(m<0||g<m)?g:m)<0)continue e;(l=c-u-1)>0&&(d+=l),h|=1<<c,u=c}}o.matchMask=h,o.exactMatch=d?0:1,o.score=(o.score||0)-d,o.startsWith=0===f,o.completeMatch=f>-1,n.push(o)}}return n}}).call(u.prototype),t.Autocomplete=l,t.FilteredList=u})),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],(function(e,t,n){var r=e("../range").Range,i=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/,o=!1;function a(e){return o?e.replace(/(--.*$|\/\*[\s\S]*?\*\/)/gm," "):e}t.setSqlMode=function(e){o=e},t.getCompletions=function(e,t,n,o,s){var c=function(e,t){var n=function(e,t){return a(e.getTextRange(r.fromPoints({row:0,column:0},t))).split(i).length-1}(e,t),o=a(e.getValue()).split(i),s=Object.create(null),c=o[n];return o.forEach((function(e,t){if(e&&e!==c){var r=Math.abs(n-t),i=o.length-r;s[e]?s[e]=Math.max(i,s[e]):s[e]=i}})),s}(t,n);s(null,Object.keys(c).map((function(e){return{caption:e,value:e,score:c[e],meta:"local"}})))}})),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],(function(e,t,n){"use strict";var r=e("../snippets").snippetManager,i=e("../autocomplete").Autocomplete,o=e("../config"),a=e("../lib/lang"),s=e("../autocomplete/util"),c=e("../autocomplete/text_completer"),l={getCompletions:function(e,t,n,r,i){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,r,i);var o=e.session.getState(n.row);i(null,t.$mode.getCompletions(o,t,n,r))}},u={getCompletions:function(e,t,n,i,o){var a=r.snippetMap,s=[];r.getActiveScopes(e).forEach((function(e){for(var t=a[e]||[],n=t.length;n--;){var r=t[n],i=r.name||r.tabTrigger;i&&s.push({caption:i,snippet:r.content,meta:r.tabTrigger&&!r.name?r.tabTrigger+"⇥ ":"snippet",type:"snippet"})}}),this),o(null,s)},getDocTooltip:function(e){"snippet"!=e.type||e.docHTML||(e.docHTML=["<b>",a.escapeHTML(e.caption),"</b>","<hr></hr>",a.escapeHTML(e.snippet)].join(""))}},h=[u,c,l];t.setCompleters=function(e){h=e||[]},t.addCompleter=function(e){h.push(e)},t.textCompleter=c,t.keyWordCompleter=l,t.snippetCompleter=u;var d={name:"expandSnippet",exec:function(e){return r.expandWithTab(e)},bindKey:"Tab"},f=function(e,t){p(t.session.$mode)},p=function e(t){var n=t.$id;r.files||(r.files={}),g(n),t.modes&&t.modes.forEach(e)},g=function e(t){if(t&&!r.files[t]){var n=t.replace("mode","snippets");r.files[t]={},o.loadModule(n,(function(n){n&&(r.files[t]=n,!n.snippets&&n.snippetText&&(n.snippets=r.parseSnippetFile(n.snippetText)),r.register(n.snippets||[],n.scope),n.includeScopes&&(r.snippetMap[n.scope].includeScopes=n.includeScopes,n.includeScopes.forEach((function(t){e("ace/mode/"+t)}))))}))}},m=function(e){var t=e.editor,n=function(e){var t,n=e.getCursorPosition(),r=e.session.getLine(n.row);return e.completers.forEach((function(e){e.identifierRegexps&&e.identifierRegexps.forEach((function(e){!t&&e&&(t=s.retrievePrecedingIdentifier(r,n.column,e))}))})),t||s.retrievePrecedingIdentifier(r,n.column)}(t);if(t.useHueAutocompleter)if(n&&"insertstring"===e.command.name){var r=t.renderer,o=r.layerConfig.lineHeight,a=r.$cursorLayer.getPixelPosition(this.base,!0),c=t.container.getBoundingClientRect();a.top+=c.top-r.layerConfig.offset,a.left+=c.left-t.renderer.scrollLeft,a.left+=r.gutterWidth,t._signal("showAutocomplete",{position:a,lineHeight:o})}else"backspace"!==e.command.name||n||t._signal("hideAutocomplete");else{var l=t.completer&&t.completer.activated;"backspace"===e.command.name?l&&!n&&t.completer.detach():"insertstring"===e.command.name&&n&&!l&&(t.completer||(t.completer=new i),t.completer.autoInsert=!1,t.completer.showPopup(t))}},E=e("../editor").Editor;e("../config").defineOptions(E.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:h),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:h),this.commands.on("afterExec",m)):this.commands.removeListener("afterExec",m)},value:!1},enableSnippets:{set:function(e){e?(this.commands.addCommand(d),this.on("changeMode",f),f(0,this)):(this.commands.removeCommand(d),this.off("changeMode",f))},value:!1}})})),ace.require(["ace/ext/language_tools"],(function(){}))},4469:()=>{ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/lang"),o=e("../lib/event"),a=e("../keyboard/hash_handler").HashHandler,s=e("../lib/keys");r.importCssString(".ace_search {background-color: #ddd;border: 1px solid #cbcbcb;border-top: 0 none;max-width: 325px;overflow: hidden;margin: 0;padding: 4px;padding-right: 6px;padding-bottom: 0;position: absolute;top: 0px;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {border-radius: 3px;border: 1px solid #cbcbcb;float: left;margin-bottom: 4px;overflow: hidden;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {background-color: white;border-right: 1px solid #cbcbcb;border: 0 none;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;float: left;height: 22px;outline: 0;padding: 0 7px;width: 214px;margin: 0;}.ace_searchbtn,.ace_replacebtn {background: #fff;border: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;float: left;height: 22px;margin: 0;position: relative;}.ace_searchbtn:last-child,.ace_replacebtn:last-child {border-top-right-radius: 3px;border-bottom-right-radius: 3px;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn {background-position: 50% 50%;background-repeat: no-repeat;width: 27px;}.ace_searchbtn.prev {background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiSU1NZUAC/6E0I0yACYskCpsJiySKIiY0SUZk40FyTEgCjGgKwTRAgAEAQJUIPCE+qfkAAAAASUVORK5CYII=); }.ace_searchbtn.next {background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNpiTE1NZQCC/0DMyIAKwGJMUAYDEo3M/s+EpvM/mkKwCQxYjIeLMaELoLMBAgwAU7UJObTKsvAAAAAASUVORK5CYII=); }.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;float: right;font: 16px/16px Arial;height: 14px;margin: 5px 1px 9px 5px;padding: 0;text-align: center;width: 14px;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_replacebtn.prev {width: 54px}.ace_replacebtn.next {width: 27px}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;-moz-box-sizing: border-box;box-sizing: border-box;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;}","ace_searchbox");var c='<div class="ace_search right"> <button type="button" action="hide" class="ace_searchbtn_close"></button> <div class="ace_search_form"> <input class="ace_search_field" placeholder="Search for" spellcheck="false"></input> <button type="button" action="findNext" class="ace_searchbtn next"></button> <button type="button" action="findPrev" class="ace_searchbtn prev"></button> <button type="button" action="findAll" class="ace_searchbtn" title="Alt-Enter">All</button> </div> <div class="ace_replace_form"> <input class="ace_search_field" placeholder="Replace with" spellcheck="false"></input> <button type="button" action="replaceAndFindNext" class="ace_replacebtn">Replace</button> <button type="button" action="replaceAll" class="ace_replacebtn">All</button> </div> <div class="ace_search_options"> <span action="toggleRegexpMode" class="ace_button" title="RegExp Search">.*</span> <span action="toggleCaseSensitive" class="ace_button" title="CaseSensitive Search">Aa</span> <span action="toggleWholeWords" class="ace_button" title="Whole Word Search">\\b</span> </div></div>'.replace(/>\s+/g,">"),l=function(e,t,n){var i=r.createElement("div");i.innerHTML=c,this.element=i.firstChild,this.$init(),this.setEditor(e)};(function(){this.setEditor=function(e){e.searchBox=this,e.container.appendChild(this.element),this.editor=e},this.$initElements=function(e){this.searchBox=e.querySelector(".ace_search_form"),this.replaceBox=e.querySelector(".ace_replace_form"),this.searchOptions=e.querySelector(".ace_search_options"),this.regExpOption=e.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=e.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=e.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field")},this.$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[n]?t[n]():t.$searchBarKb.commands[n]&&t.$searchBarKb.commands[n].exec(t),o.stopPropagation(e)})),o.addCommandKeyListener(e,(function(e,n,r){var i=s.keyCodeToString(r),a=t.$searchBarKb.findKeyCommand(n,i);a&&a.exec&&(a.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()}))},this.$closeSearchBarKb=new a([{bindKey:"Esc",name:"closeSearchBar",exec:function(e){e.searchBox.hide()}}]),this.$searchBarKb=new a,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(e){var t=e.isReplace=!e.isReplace;e.replaceBox.style.display=t?"":"none",e.searchInput.focus()},"Ctrl-H|Command-Option-F":function(e){e.replaceBox.style.display="",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()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(e){e.regExpOption.checked=!e.regExpOption.checked,e.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(e){e.caseSensitiveOption.checked=!e.caseSensitiveOption.checked,e.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(e){e.wholeWordOption.checked=!e.wholeWordOption.checked,e.$syncOptions()}}]),this.$syncOptions=function(){r.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),r.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),r.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),this.find(!1,!1)},this.highlight=function(e){this.editor.session.highlight(e||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(e,t,n){var i=!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:n})&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",i),this.editor._emit("findSearchBox",{match:!i}),this.highlight()},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.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;r.setCssClass(this.searchBox,"ace_nomatch",e),this.editor._emit("findSearchBox",{match:!e}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(e,t){this.element.style.display="",this.replaceBox.style.display=t?"":"none",this.isReplace=t,e&&(this.searchInput.value=e),this.find(!1,!1,!0),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb)},this.isFocused=function(){var e=document.activeElement;return e==this.searchInput||e==this.replaceInput}}).call(l.prototype),t.SearchBox=l,t.Search=function(e,t){(e.searchBox||new l(e)).show(e.session.getTextRange(),t)}})),ace.require(["ace/ext/searchbox"],(function(){}))},1557:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}ace.define("ace/ext/menu_tools/element_generator",["require","exports","module"],(function(e,t,n){"use strict";n.exports.createOption=function(e){var t,n=document.createElement("option");for(t in e)e.hasOwnProperty(t)&&("selected"===t?n.setAttribute(t,e[t]):n[t]=e[t]);return n},n.exports.createCheckbox=function(e,t,n){var r=document.createElement("input");return r.setAttribute("type","checkbox"),r.setAttribute("id",e),r.setAttribute("name",e),r.setAttribute("value",t),r.setAttribute("class",n),t&&r.setAttribute("checked","checked"),r},n.exports.createInput=function(e,t,n){var r=document.createElement("input");return r.setAttribute("type","text"),r.setAttribute("id",e),r.setAttribute("name",e),r.setAttribute("value",t),r.setAttribute("class",n),r},n.exports.createLabel=function(e,t){var n=document.createElement("label");return n.setAttribute("for",t),n.textContent=e,n},n.exports.createSelection=function(e,t,r){var i=document.createElement("select");return i.setAttribute("id",e),i.setAttribute("name",e),i.setAttribute("class",r),t.forEach((function(e){i.appendChild(n.exports.createOption(e))})),i}})),ace.define("ace/ext/modelist",["require","exports","module"],(function(e,t,n){"use strict";var r=[],i=function(e,t,n){var r;this.name=e,this.caption=t,this.mode="ace/mode/"+e,this.extensions=n,r=/\^/.test(n)?n.replace(/\|(\^)?/g,(function(e,t){return"$|"+(t?"^":"^.*\\.")}))+"$":"^.*\\.("+n+")$",this.extRe=new RegExp(r,"gi")};i.prototype.supportsFile=function(e){return e.match(this.extRe)};var o={ABAP:["abap"],ABC:["abc"],ActionScript:["as"],ADA:["ada|adb"],Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],AsciiDoc:["asciidoc|adoc"],Assembly_x86:["asm|a"],AutoHotKey:["ahk"],BatchFile:["bat|cmd"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],C9Search:["c9search_results"],Cirru:["cirru|cr"],Clojure:["clj|cljs"],Cobol:["CBL|COB"],coffee:["coffee|cf|cson|^Cakefile"],ColdFusion:["cfm"],CSharp:["cs"],CSS:["css"],Curly:["curly"],D:["d|di"],Dart:["dart"],Diff:["diff|patch"],Dockerfile:["^Dockerfile"],Dot:["dot"],Dummy:["dummy"],DummySyntax:["dummy"],Eiffel:["e|ge"],EJS:["ejs"],Elixir:["ex|exs"],Elm:["elm"],Erlang:["erl|hrl"],Forth:["frt|fs|ldr"],FTL:["ftl"],Gcode:["gcode"],Gherkin:["feature"],Gitignore:["^.gitignore"],Glsl:["glsl|frag|vert"],golang:["go"],Groovy:["groovy"],HAML:["haml"],Handlebars:["hbs|handlebars|tpl|mustache"],Haskell:["hs"],haXe:["hx"],Hive:["hql|q|ql"],HTML:["html|htm|xhtml"],HTML_Ruby:["erb|rhtml|html.erb"],HTML_Elixir:["eex|html.eex"],INI:["ini|conf|cfg|prefs"],Io:["io"],Jack:["jack"],Jade:["jade"],Java:["java"],JavaScript:["js|jsm|jsx"],JSON:["json"],JSONiq:["jq"],JSP:["jsp"],JSX:["jsx"],Julia:["jl"],LaTeX:["tex|latex|ltx|bib"],Lean:["lean|hlean"],LESS:["less"],Liquid:["liquid"],Lisp:["lisp"],LiveScript:["ls"],LogiQL:["logic|lql"],LSL:["lsl"],Lua:["lua"],LuaPage:["lp"],Lucene:["lucene"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],Mask:["mask"],MATLAB:["matlab"],Maze:["mz"],MEL:["mel"],MUSHCode:["mc|mush"],MySQL:["mysql"],Nix:["nix"],ObjectiveC:["m|mm"],OCaml:["ml|mli"],Pascal:["pas|p"],Perl:["pl|pm"],pgSQL:["pgsql"],PHP:["php|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp"],PigLatin:["pig"],Powershell:["ps1"],Praat:["praat|praatscript|psc|proc"],Prolog:["plg|prolog"],Properties:["properties"],Protobuf:["proto"],Python:["py"],R:["r"],RDoc:["Rd"],RHTML:["Rhtml"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SASS:["sass"],SCAD:["scad"],Scala:["scala"],Scheme:["scm|sm|rkt|oak|scheme"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SJS:["sjs"],Smarty:["smarty|tpl"],snippets:["snippets"],Soy_Template:["soy"],Space:["space"],SQL:["sql"],SQLServer:["sqlserver"],Stylus:["styl|stylus"],SVG:["svg"],Swift:["swift"],Tcl:["tcl"],Tex:["tex"],Text:["txt"],Textile:["textile"],Toml:["toml"],Twig:["twig|swig"],Typescript:["ts|typescript|str"],Vala:["vala"],VBScript:["vbs|vb"],Velocity:["vm"],Verilog:["v|vh|sv|svh"],VHDL:["vhd|vhdl"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml"],XQuery:["xq"],YAML:["yaml|yml"],Django:["html"]},a={ObjectiveC:"Objective-C",CSharp:"C#",golang:"Go",C_Cpp:"C and C++",coffee:"CoffeeScript",HTML_Ruby:"HTML (Ruby)",HTML_Elixir:"HTML (Elixir)",FTL:"FreeMarker"},s={};for(var c in o){var l=o[c],u=(a[c]||c).replace(/_/g," "),h=c.toLowerCase(),d=new i(h,u,l[0]);s[h]=d,r.push(d)}n.exports={getModeForPath:function(e){for(var t=s.text,n=e.split(/[\/\\]/).pop(),i=0;i<r.length;i++)if(r[i].supportsFile(n)){t=r[i];break}return t},modes:r,modesByName:s}})),ace.define("ace/ext/themelist",["require","exports","module","ace/lib/fixoldbrowsers"],(function(e,t,n){"use strict";e("ace/lib/fixoldbrowsers"),t.themesByName={},t.themes=[["Chrome"],["Clouds"],["Crimson Editor"],["Dawn"],["Dreamweaver"],["Eclipse"],["GitHub"],["IPlastic"],["Solarized Light"],["TextMate"],["Tomorrow"],["XCode"],["Kuroir"],["KatzenMilch"],["SQL Server","sqlserver","light"],["Ambiance","ambiance","dark"],["Chaos","chaos","dark"],["Clouds Midnight","clouds_midnight","dark"],["Cobalt","cobalt","dark"],["idle Fingers","idle_fingers","dark"],["krTheme","kr_theme","dark"],["Merbivore","merbivore","dark"],["Merbivore Soft","merbivore_soft","dark"],["Mono Industrial","mono_industrial","dark"],["Monokai","monokai","dark"],["Pastel on dark","pastel_on_dark","dark"],["Solarized Dark","solarized_dark","dark"],["Terminal","terminal","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"],["Twilight","twilight","dark"],["Vibrant Ink","vibrant_ink","dark"]].map((function(e){var n=e[1]||e[0].replace(/ /g,"_").toLowerCase(),r={caption:e[0],theme:"ace/theme/"+n,isDark:"dark"==e[2],name:n};return t.themesByName[n]=r,r}))})),ace.define("ace/ext/menu_tools/add_editor_menu_options",["require","exports","module","ace/ext/modelist","ace/ext/themelist"],(function(e,t,n){"use strict";n.exports.addEditorMenuOptions=function(t){var n=e("../modelist"),r=e("../themelist");t.menuOptions={setNewLineMode:[{textContent:"unix",value:"unix"},{textContent:"windows",value:"windows"},{textContent:"auto",value:"auto"}],setTheme:[],setMode:[],setKeyboardHandler:[{textContent:"ace",value:""},{textContent:"vim",value:"ace/keyboard/vim"},{textContent:"emacs",value:"ace/keyboard/emacs"},{textContent:"textarea",value:"ace/keyboard/textarea"},{textContent:"sublime",value:"ace/keyboard/sublime"}]},t.menuOptions.setTheme=r.themes.map((function(e){return{textContent:e.caption,value:e.theme}})),t.menuOptions.setMode=n.modes.map((function(e){return{textContent:e.name,value:e.mode}}))}})),ace.define("ace/ext/menu_tools/get_set_functions",["require","exports","module"],(function(e,t,n){"use strict";n.exports.getSetFunctions=function(e){var t=[],n={editor:e,session:e.session,renderer:e.renderer},r=[],i=["setOption","setUndoManager","setDocument","setValue","setBreakpoints","setScrollTop","setScrollLeft","setSelectionStyle","setWrapLimitRange"];return["renderer","session","editor"].forEach((function(e){var o=n[e],a=e;for(var s in o)-1===i.indexOf(s)&&/^set/.test(s)&&-1===r.indexOf(s)&&(r.push(s),t.push({functionName:s,parentObj:o,parentName:a}))})),t}})),ace.define("ace/ext/menu_tools/generate_settings_menu",["require","exports","module","ace/ext/menu_tools/element_generator","ace/ext/menu_tools/add_editor_menu_options","ace/ext/menu_tools/get_set_functions"],(function(t,n,r){"use strict";var i=t("./element_generator"),o=t("./add_editor_menu_options").addEditorMenuOptions,a=t("./get_set_functions").getSetFunctions;r.exports.generateSettingsMenu=function(t){var n,r=[];function s(e,n,r,o){var a,s=document.createElement("div");return s.setAttribute("contains",r),s.setAttribute("class","ace_optionsMenuEntry"),s.setAttribute("style","clear: both;"),s.appendChild(i.createLabel(r.replace(/^set/,"").replace(/([A-Z])/g," $1").trim(),r)),Array.isArray(o)?(a=i.createSelection(r,o,n)).addEventListener("change",(function(n){try{t.menuOptions[n.target.id].forEach((function(e){e.textContent!==n.target.textContent&&delete e.selected})),e[n.target.id](n.target.value)}catch(e){throw new Error(e)}})):"boolean"==typeof o?(a=i.createCheckbox(r,o,n)).addEventListener("change",(function(t){try{e[t.target.id](!!t.target.checked)}catch(e){throw new Error(e)}})):(a=i.createInput(r,o,n)).addEventListener("change",(function(t){try{"true"===t.target.value?e[t.target.id](!0):"false"===t.target.value?e[t.target.id](!1):e[t.target.id](t.target.value)}catch(e){throw new Error(e)}})),a.style.cssText="float:right;",s.appendChild(a),s}function c(n){var i,o=n.functionName,a=n.parentObj,c=n.parentName,l=o.replace(/^set/,"get");if(void 0!==t.menuOptions[o])r.push(function(n,r,i,o){var a=t.menuOptions[n],c=r[o]();return"object"==e(c)&&(c=c.$id),a.forEach((function(e){e.value===c&&(e.selected="selected")})),s(r,i,n,a)}(o,a,c,l));else if("function"==typeof a[l])try{"object"===e(i=a[l]())&&(i=i.$id),r.push(s(a,c,o,i))}catch(e){}}return o(t),a(t).forEach((function(e){t.enabledMenuOptions&&!t.enabledMenuOptions[e.functionName]||c(e)})),t.customMenuOptions&&a(t.customMenuOptions).forEach((function(e){c(e)})),r.sort((function(e,t){var n=e.getAttribute("contains"),r=t.getAttribute("contains");return n.localeCompare(r)})),(n=document.createElement("div")).setAttribute("id","ace_settingsmenu"),r.forEach((function(e){n.appendChild(e)})),n}})),ace.define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../../lib/dom");r.importCssString("#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);-webkit-transition: all 0.5s;transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 1000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}"),n.exports.overlayPage=function(e,t,n,i,o,a){n=n?"top: "+n+";":"",o=o?"bottom: "+o+";":"",i=i?"right: "+i+";":"",a=a?"left: "+a+";":"";var s=document.createElement("div"),c=document.createElement("div");function l(e){27===e.keyCode&&s.click()}s.style.cssText="margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; background-color: rgba(0, 0, 0, 0.3);",s.addEventListener("click",(function(){document.removeEventListener("keydown",l),s.parentNode.removeChild(s),e.focus(),s=null})),document.addEventListener("keydown",l),c.style.cssText=n+i+o+a,c.addEventListener("click",(function(e){e.stopPropagation()}));var u=r.createElement("div");u.style.position="relative";var h=r.createElement("div");h.className="ace_closeButton",h.addEventListener("click",(function(){s.click()})),u.appendChild(h),c.appendChild(u),c.appendChild(t),s.appendChild(c),document.body.appendChild(s),e.blur()}})),ace.define("ace/ext/settings_menu",["require","exports","module","ace/ext/menu_tools/generate_settings_menu","ace/ext/menu_tools/overlay_page","ace/editor"],(function(e,t,n){"use strict";var r=e("./menu_tools/generate_settings_menu").generateSettingsMenu,i=e("./menu_tools/overlay_page").overlayPage;n.exports.init=function(t){e("ace/editor").Editor.prototype.showSettingsMenu=function(){!function(e){document.getElementById("ace_settingsmenu")||i(e,r(e),"0","0","0")}(this)}}})),ace.require(["ace/ext/settings_menu"],(function(){}))},1986:()=>{ace.define("ace/mode/bigquery_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ARRAY|ARRAY_CONTAINS|ASCII|ASIN|ATAN|AVG|BASE64|BIN|BINARY|BROUND|CAST|CBRT|CEIL|CEILING|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT|CONCAT_WS|CONTEXT_NGRAMS|CONV|CORR|COS|COVAR_POP|COVAR_SAMP|COUNT|CRC32|CREATE_UNION|CUME_DIST|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE_ADD|DATE_FORMAT|DATE_SUB|DATEDIFF|DAY|DAYOFMONTH|DECODE|DEGREES|DENSE_RANK|E|ENCODE|EXP|EXPLODE|FACTORIAL|FIND_IN_SET|FIRST_VALUE|FLOOR|FORMAT_NUMBER|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GREATEST|HASH|HEX|HISTOGRAM_NUMERIC|HOUR|IF|IN_FILE|INLINE|INSTR|INITCAP|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_TUPLE|LAG|LAST_DAY|LAST_VALUE|LEAD|LEAST|LENGTH|LEVENSHTEIN|LCASE|LN|LOCATE|LOG|LOG10|LOG2|LOWER|LPAD|LTRIM|MAP|MAP_KEYS|MAP_VALUES|MAX|MD5|MIN|MINUTE|MONTH|MONTHS_BETWEEN|NAMED_STRUCT|NEGATIVE|NEXT_DAY|NGRAMS|NTILE|NVL|PARSE_URL|PARSE_URL_TUPLE|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSITIVE|POW|POWER|PRINTF|QUARTER|RADIANS|RAND|RANK|REFLECT|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SECOND|SHA|SHA1|SHA2|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SIGN|SIN|SIZE|SORT_ARRAY|SQRT|STACK|STDDEV_POP|STDDEV_SAMP|STRUCT|SENTENCES|SOUNDEX|SPACE|SPLIT|STR_TO_MAP|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|UCASE|UNBASE64|UNHEX|UNIX_TIMESTAMP|UPPER|VAR_POP|VAR_SAMP|VARIANCE|WEEKOFYEAR|XPATH|XPATH_BOOLEAN|XPATH_DOUBLE|XPATH_FLOAT|XPATH_INT|XPATH_LONG|XPATH_NUMBER|XPATH_SHORT|XPATH_STRING|YEAR",keyword:"ADD|ADMIN|AFTER|ALL|ALTER|ANALYZE|AND|ARCHIVE|AS|ASC|AUTHORIZATION|BEFORE|BETWEEN|BOTH|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CAST|CHANGE|CLUSTER|CLUSTERED|CLUSTERSTATUS|COLLECTION|COLUMN|COLUMNS|COMMENT|COMMIT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONF|CONSTRAINT|CONTINUE|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_TIMESTAMP|CURSOR|DATA|DATABASE|DATABASES|DATETIME|DAY|DAYOFWEEK|DBPROPERTIES|DEFERRED|DEFINED|DELETE|DEPENDENCY|DESC|DESCRIBE|DIRECTORIES|DIRECTORY|DISABLE|DISTINCT|DISTRIBUTE|DROP|ELEM_TYPE|ELSE|ENABLE|END|ESCAPED|EXCHANGE|EXCLUSIVE|EXISTS|EXPLAIN|EXPORT|EXTENDED|EXTERNAL|EXTRACT|FETCH|FIELDS|FILE|FILEFORMAT|FIRST|FLOOR|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GRANT|GROUP|GROUPING|HAVING|HOLD_DDLTIME|HOUR|IDXPROPERTIES|IF|IGNORE|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTDRIVER|INPUTFORMAT|INSERT|INTERSECT|INTERVAL|INTO|IS|ITEMS|JAR|JOIN|KEY|KEYS|KEY_TYPE|LATERAL|LEFT|LESS|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCATION|LOCK|LOCKS|LOGICAL|LONG|MACRO|MAPJOIN|MATERIALIZED|MINUS|MINUTE|MONTH|MORE|MSCK|NONE|NOSCAN|NOVALIDATE|NOT|NO_DROP|OF|OFFLINE|ON|ONLY|OPTION|OR|ORDER|OUT|OUTER|OUTPUTDRIVER|OUTPUTFORMAT|OVER|OVERWRITE|OWNER|PARTIALSCAN|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PLUS|PRECEDING|PRECISION|PRESERVE|PRETTY|PRIMARY|PRINCIPALS|PROCEDURE|PROTECTION|PURGE|RANGE|READ|READONLY|READS|REBUILD|RECORDREADER|RECORDWRITER|REDUCE|REFERENCES|REGEXP|RELOAD|RENAME|REPAIR|REPLACE|RESTRICT|REVOKE|REWRITE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SECOND|SELECT|SEMI|SERDEPROPERTIES|SERVER|SET|SETS|SHARED|SHOW|SHOW_DATABASE|SKEWED|SORT|SORTED|SSL|START|STATISTICS|STORED|STREAMTABLE|SYNC|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMPORARY|TERMINATED|THEN|TO|TOUCH|TRANSACTIONAL|TRANSACTIONS|TRANSFORM|TRIGGER|TRUNCATE|UNARCHIVE|UNBOUNDED|UNDO|UNION|UNIQUEJOIN|UNLOCK|UNSET|UNSIGNED|UTC_TIMESTAMP|UPDATE|URI|USE|USER|USING|UTC|UTCTIMESTAMP|VALUES|VALUE_TYPE|VIEW|VIEWS|WHEN|WHERE|WHILE|WINDOW|WITH|YEAR","constant.language":"FALSE|NULL|TRUE","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|CHAR|DATE|DECIMAL|DELIMITED|DOUBLE|FLOAT|INT|INTEGER|JSONFILE|MAP|NUMERIC|PRECISION|RCFILE|SEQUENCEFILE|SERDE|SMALLINT|STRING|STRUCT|TEXTFILE|TIME|TIMESTAMP|TINYINT|UNIONTYPE|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["bql","bq"],name:"BigQuery",scopeName:"source.bigquery"},r.inherits(o,i),t.BigQueryHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var a=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,a);var s=e.getCommentFoldRange(n,a+i[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(a=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,a):e.getCommentFoldRange(n,a,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length,s=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>a)return new i(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,a=t.FoldMode=function(){};r.inherits(a,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.getBeginEndBlock(e,n,a,o[1]);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}},this.getBeginEndBlock=function(e,t,n,r){for(var o,a={row:t,column:n+r.length},s=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<s;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>a.row)return new i(a.row,a.column,t,o.length)}}.call(a.prototype)})),ace.define("ace/mode/bigquery",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/bigquery_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./bigquery_highlight_rules").BigQueryHighlightRules,a=e("./folding/sqlserver").FoldMode,s=function(){this.HighlightRules=o,this.foldingRules=new a};r.inherits(s,i),function(){this.lineCommentStart="--",this.$id="ace/mode/bigquery",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(s.prototype),t.Mode=s}))},9930:()=>{ace.define("ace/mode/dasksql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ARRAY|ARRAY_CONTAINS|ASCII|ASIN|ATAN|AVG|BASE64|BIN|BINARY|BROUND|CAST|CBRT|CEIL|CEILING|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT|CONCAT_WS|CONTEXT_NGRAMS|CONV|CORR|COS|COVAR_POP|COVAR_SAMP|COUNT|CRC32|CREATE_UNION|CUME_DIST|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE_ADD|DATE_FORMAT|DATE_SUB|DATEDIFF|DAY|DAYOFMONTH|DECODE|DEGREES|DENSE_RANK|E|ENCODE|EXP|EXPLODE|FACTORIAL|FIND_IN_SET|FIRST_VALUE|FLOOR|FORMAT_NUMBER|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GREATEST|HASH|HEX|HISTOGRAM_NUMERIC|HOUR|IF|IN_FILE|INLINE|INSTR|INITCAP|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_TUPLE|LAG|LAST_DAY|LAST_VALUE|LEAD|LEAST|LENGTH|LEVENSHTEIN|LCASE|LN|LOCATE|LOG|LOG10|LOG2|LOWER|LPAD|LTRIM|MAP|MAP_KEYS|MAP_VALUES|MAX|MD5|MIN|MINUTE|MONTH|MONTHS_BETWEEN|NAMED_STRUCT|NEGATIVE|NEXT_DAY|NGRAMS|NTILE|NVL|PARSE_URL|PARSE_URL_TUPLE|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSITIVE|POW|POWER|PRINTF|QUARTER|RADIANS|RAND|RANK|REFLECT|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SECOND|SHA|SHA1|SHA2|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SIGN|SIN|SIZE|SORT_ARRAY|SQRT|STACK|STDDEV_POP|STDDEV_SAMP|STRUCT|SENTENCES|SOUNDEX|SPACE|SPLIT|STR_TO_MAP|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|UCASE|UNBASE64|UNHEX|UNIX_TIMESTAMP|UPPER|VAR_POP|VAR_SAMP|VARIANCE|WEEKOFYEAR|XPATH|XPATH_BOOLEAN|XPATH_DOUBLE|XPATH_FLOAT|XPATH_INT|XPATH_LONG|XPATH_NUMBER|XPATH_SHORT|XPATH_STRING|YEAR",keyword:"ADD|ADMIN|AFTER|ALL|ALTER|ANALYZE|AND|ARCHIVE|AS|ASC|AUTHORIZATION|BEFORE|BETWEEN|BOTH|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CAST|CHANGE|CLUSTER|CLUSTERED|CLUSTERSTATUS|COLLECTION|COLUMN|COLUMNS|COMMENT|COMMIT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONF|CONSTRAINT|CONTINUE|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_TIMESTAMP|CURSOR|DATA|DATABASE|DATABASES|DATETIME|DAY|DAYOFWEEK|DBPROPERTIES|DEFERRED|DEFINED|DELETE|DEPENDENCY|DESC|DESCRIBE|DIRECTORIES|DIRECTORY|DISABLE|DISTINCT|DISTRIBUTE|DROP|ELEM_TYPE|ELSE|ENABLE|END|ESCAPED|EXCHANGE|EXCLUSIVE|EXISTS|EXPLAIN|EXPORT|EXTENDED|EXTERNAL|EXTRACT|FETCH|FIELDS|FILE|FILEFORMAT|FIRST|FLOOR|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GRANT|GROUP|GROUPING|HAVING|HOLD_DDLTIME|HOUR|IDXPROPERTIES|IF|IGNORE|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTDRIVER|INPUTFORMAT|INSERT|INTERSECT|INTERVAL|INTO|IS|ITEMS|JAR|JOIN|KEY|KEYS|KEY_TYPE|LATERAL|LEFT|LESS|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCATION|LOCK|LOCKS|LOGICAL|LONG|MACRO|MAPJOIN|MATERIALIZED|MINUS|MINUTE|MONTH|MORE|MSCK|NONE|NOSCAN|NOVALIDATE|NOT|NO_DROP|OF|OFFLINE|ON|ONLY|OPTION|OR|ORDER|OUT|OUTER|OUTPUTDRIVER|OUTPUTFORMAT|OVER|OVERWRITE|OWNER|PARTIALSCAN|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PLUS|PRECEDING|PRECISION|PRESERVE|PRETTY|PRIMARY|PRINCIPALS|PROCEDURE|PROTECTION|PURGE|RANGE|READ|READONLY|READS|REBUILD|RECORDREADER|RECORDWRITER|REDUCE|REFERENCES|REGEXP|RELOAD|RENAME|REPAIR|REPLACE|RESTRICT|REVOKE|REWRITE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SECOND|SELECT|SEMI|SERDEPROPERTIES|SERVER|SET|SETS|SHARED|SHOW|SHOW_DATABASE|SKEWED|SORT|SORTED|SSL|START|STATISTICS|STORED|STREAMTABLE|SYNC|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMPORARY|TERMINATED|THEN|TO|TOUCH|TRANSACTIONAL|TRANSACTIONS|TRANSFORM|TRIGGER|TRUNCATE|UNARCHIVE|UNBOUNDED|UNDO|UNION|UNIQUEJOIN|UNLOCK|UNSET|UNSIGNED|UTC_TIMESTAMP|UPDATE|URI|USE|USER|USING|UTC|UTCTIMESTAMP|VALUES|VALUE_TYPE|VIEW|VIEWS|WHEN|WHERE|WHILE|WINDOW|WITH|YEAR","constant.language":"FALSE|NULL|TRUE","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|CHAR|DATE|DECIMAL|DELIMITED|DOUBLE|FLOAT|INT|INTEGER|JSONFILE|MAP|NUMERIC|PRECISION|RCFILE|SEQUENCEFILE|SERDE|SMALLINT|STRING|STRUCT|TEXTFILE|TIME|TIMESTAMP|TINYINT|UNIONTYPE|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["hql","q","ql"],name:"Dasksql",scopeName:"source.dasksql"},r.inherits(o,i),t.DasksqlHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var a=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,a);var s=e.getCommentFoldRange(n,a+i[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(a=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,a):e.getCommentFoldRange(n,a,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length,s=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>a)return new i(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,a=t.FoldMode=function(){};r.inherits(a,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.getBeginEndBlock(e,n,a,o[1]);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}},this.getBeginEndBlock=function(e,t,n,r){for(var o,a={row:t,column:n+r.length},s=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<s;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>a.row)return new i(a.row,a.column,t,o.length)}}.call(a.prototype)})),ace.define("ace/mode/dasksql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/dasksql_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./dasksql_highlight_rules").DasksqlHighlightRules,a=e("./folding/sqlserver").FoldMode,s=function(){this.HighlightRules=o,this.foldingRules=new a};r.inherits(s,i),function(){this.lineCommentStart="--",this.$id="ace/mode/dasksql",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(s.prototype),t.Mode=s}))},4157:()=>{ace.define("ace/mode/druid_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ARRAY|ARRAY_CONTAINS|ASCII|ASIN|ATAN|AVG|BASE64|BIN|BINARY|BROUND|CAST|CBRT|CEIL|CEILING|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT|CONCAT_WS|CONTEXT_NGRAMS|CONV|CORR|COS|COVAR_POP|COVAR_SAMP|COUNT|CRC32|CREATE_UNION|CUME_DIST|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE_ADD|DATE_FORMAT|DATE_SUB|DATEDIFF|DAY|DAYOFMONTH|DECODE|DEGREES|DENSE_RANK|E|ENCODE|EXP|EXPLODE|FACTORIAL|FIND_IN_SET|FIRST_VALUE|FLOOR|FORMAT_NUMBER|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GREATEST|HASH|HEX|HISTOGRAM_NUMERIC|HOUR|IF|IN_FILE|INLINE|INSTR|INITCAP|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_TUPLE|LAG|LAST_DAY|LAST_VALUE|LEAD|LEAST|LENGTH|LEVENSHTEIN|LCASE|LN|LOCATE|LOG|LOG10|LOG2|LOWER|LPAD|LTRIM|MAP|MAP_KEYS|MAP_VALUES|MAX|MD5|MIN|MINUTE|MONTH|MONTHS_BETWEEN|NAMED_STRUCT|NEGATIVE|NEXT_DAY|NGRAMS|NTILE|NVL|PARSE_URL|PARSE_URL_TUPLE|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSITIVE|POW|POWER|PRINTF|QUARTER|RADIANS|RAND|RANK|REFLECT|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SECOND|SHA|SHA1|SHA2|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SIGN|SIN|SIZE|SORT_ARRAY|SQRT|STACK|STDDEV_POP|STDDEV_SAMP|STRUCT|SENTENCES|SOUNDEX|SPACE|SPLIT|STR_TO_MAP|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|UCASE|UNBASE64|UNHEX|UNIX_TIMESTAMP|UPPER|VAR_POP|VAR_SAMP|VARIANCE|WEEKOFYEAR|XPATH|XPATH_BOOLEAN|XPATH_DOUBLE|XPATH_FLOAT|XPATH_INT|XPATH_LONG|XPATH_NUMBER|XPATH_SHORT|XPATH_STRING|YEAR",keyword:"ADD|ADMIN|AFTER|ALL|ALTER|ANALYZE|AND|ARCHIVE|AS|ASC|AUTHORIZATION|BEFORE|BETWEEN|BOTH|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CAST|CHANGE|CLUSTER|CLUSTERED|CLUSTERSTATUS|COLLECTION|COLUMN|COLUMNS|COMMENT|COMMIT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONF|CONSTRAINT|CONTINUE|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_TIMESTAMP|CURSOR|DATA|DATABASE|DATABASES|DATETIME|DAY|DAYOFWEEK|DBPROPERTIES|DEFERRED|DEFINED|DELETE|DEPENDENCY|DESC|DESCRIBE|DIRECTORIES|DIRECTORY|DISABLE|DISTINCT|DISTRIBUTE|DROP|ELEM_TYPE|ELSE|ENABLE|END|ESCAPED|EXCHANGE|EXCLUSIVE|EXISTS|EXPLAIN|EXPORT|EXTENDED|EXTERNAL|EXTRACT|FETCH|FIELDS|FILE|FILEFORMAT|FIRST|FLOOR|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GRANT|GROUP|GROUPING|HAVING|HOLD_DDLTIME|HOUR|IDXPROPERTIES|IF|IGNORE|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTDRIVER|INPUTFORMAT|INSERT|INTERSECT|INTERVAL|INTO|IS|ITEMS|JAR|JOIN|KEY|KEYS|KEY_TYPE|LATERAL|LEFT|LESS|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCATION|LOCK|LOCKS|LOGICAL|LONG|MACRO|MAPJOIN|MATERIALIZED|MINUS|MINUTE|MONTH|MORE|MSCK|NONE|NOSCAN|NOVALIDATE|NOT|NO_DROP|OF|OFFLINE|ON|ONLY|OPTION|OR|ORDER|OUT|OUTER|OUTPUTDRIVER|OUTPUTFORMAT|OVER|OVERWRITE|OWNER|PARTIALSCAN|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PLUS|PRECEDING|PRECISION|PRESERVE|PRETTY|PRIMARY|PRINCIPALS|PROCEDURE|PROTECTION|PURGE|RANGE|READ|READONLY|READS|REBUILD|RECORDREADER|RECORDWRITER|REDUCE|REFERENCES|REGEXP|RELOAD|RENAME|REPAIR|REPLACE|RESTRICT|REVOKE|REWRITE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SECOND|SELECT|SEMI|SERDEPROPERTIES|SERVER|SET|SETS|SHARED|SHOW|SHOW_DATABASE|SKEWED|SORT|SORTED|SSL|START|STATISTICS|STORED|STREAMTABLE|SYNC|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMPORARY|TERMINATED|THEN|TO|TOUCH|TRANSACTIONAL|TRANSACTIONS|TRANSFORM|TRIGGER|TRUNCATE|UNARCHIVE|UNBOUNDED|UNDO|UNION|UNIQUEJOIN|UNLOCK|UNSET|UNSIGNED|UTC_TIMESTAMP|UPDATE|URI|USE|USER|USING|UTC|UTCTIMESTAMP|VALUES|VALUE_TYPE|VIEW|VIEWS|WHEN|WHERE|WHILE|WINDOW|WITH|YEAR","constant.language":"FALSE|NULL|TRUE","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|CHAR|DATE|DECIMAL|DELIMITED|DOUBLE|FLOAT|INT|INTEGER|JSONFILE|MAP|NUMERIC|PRECISION|RCFILE|SEQUENCEFILE|SERDE|SMALLINT|STRING|STRUCT|TEXTFILE|TIME|TIMESTAMP|TINYINT|UNIONTYPE|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["druid","ql"],name:"Druid",scopeName:"source.druid"},r.inherits(o,i),t.DruidHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var a=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,a);var s=e.getCommentFoldRange(n,a+i[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(a=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,a):e.getCommentFoldRange(n,a,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length,s=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>a)return new i(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,a=t.FoldMode=function(){};r.inherits(a,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.getBeginEndBlock(e,n,a,o[1]);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}},this.getBeginEndBlock=function(e,t,n,r){for(var o,a={row:t,column:n+r.length},s=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<s;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>a.row)return new i(a.row,a.column,t,o.length)}}.call(a.prototype)})),ace.define("ace/mode/druid",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/druid_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./druid_highlight_rules").DruidHighlightRules,a=e("./folding/sqlserver").FoldMode,s=function(){this.HighlightRules=o,this.foldingRules=new a};r.inherits(s,i),function(){this.lineCommentStart="--",this.$id="ace/mode/druid",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(s.prototype),t.Mode=s}))},2049:()=>{ace.define("ace/mode/elasticsearch_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ARRAY|ARRAY_CONTAINS|ASCII|ASIN|ATAN|AVG|BASE64|BIN|BINARY|BROUND|CAST|CBRT|CEIL|CEILING|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT|CONCAT_WS|CONTEXT_NGRAMS|CONV|CORR|COS|COVAR_POP|COVAR_SAMP|COUNT|CRC32|CREATE_UNION|CUME_DIST|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE_ADD|DATE_FORMAT|DATE_SUB|DATEDIFF|DAY|DAYOFMONTH|DECODE|DEGREES|DENSE_RANK|E|ENCODE|EXP|EXPLODE|FACTORIAL|FIND_IN_SET|FIRST_VALUE|FLOOR|FORMAT_NUMBER|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GREATEST|HASH|HEX|HISTOGRAM_NUMERIC|HOUR|IF|IN_FILE|INLINE|INSTR|INITCAP|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_TUPLE|LAG|LAST_DAY|LAST_VALUE|LEAD|LEAST|LENGTH|LEVENSHTEIN|LCASE|LN|LOCATE|LOG|LOG10|LOG2|LOWER|LPAD|LTRIM|MAP|MAP_KEYS|MAP_VALUES|MAX|MD5|MIN|MINUTE|MONTH|MONTHS_BETWEEN|NAMED_STRUCT|NEGATIVE|NEXT_DAY|NGRAMS|NTILE|NVL|PARSE_URL|PARSE_URL_TUPLE|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSITIVE|POW|POWER|PRINTF|QUARTER|RADIANS|RAND|RANK|REFLECT|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SECOND|SHA|SHA1|SHA2|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SIGN|SIN|SIZE|SORT_ARRAY|SQRT|STACK|STDDEV_POP|STDDEV_SAMP|STRUCT|SENTENCES|SOUNDEX|SPACE|SPLIT|STR_TO_MAP|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|UCASE|UNBASE64|UNHEX|UNIX_TIMESTAMP|UPPER|VAR_POP|VAR_SAMP|VARIANCE|WEEKOFYEAR|XPATH|XPATH_BOOLEAN|XPATH_DOUBLE|XPATH_FLOAT|XPATH_INT|XPATH_LONG|XPATH_NUMBER|XPATH_SHORT|XPATH_STRING|YEAR",keyword:"ADD|ADMIN|AFTER|ALL|ALTER|ANALYZE|AND|ARCHIVE|AS|ASC|AUTHORIZATION|BEFORE|BETWEEN|BOTH|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CAST|CHANGE|CLUSTER|CLUSTERED|CLUSTERSTATUS|COLLECTION|COLUMN|COLUMNS|COMMENT|COMMIT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONF|CONSTRAINT|CONTINUE|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_TIMESTAMP|CURSOR|DATA|DATABASE|DATABASES|DATETIME|DAY|DAYOFWEEK|DBPROPERTIES|DEFERRED|DEFINED|DELETE|DEPENDENCY|DESC|DESCRIBE|DIRECTORIES|DIRECTORY|DISABLE|DISTINCT|DISTRIBUTE|DROP|ELEM_TYPE|ELSE|ENABLE|END|ESCAPED|EXCHANGE|EXCLUSIVE|EXISTS|EXPLAIN|EXPORT|EXTENDED|EXTERNAL|EXTRACT|FETCH|FIELDS|FILE|FILEFORMAT|FIRST|FLOOR|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GRANT|GROUP|GROUPING|HAVING|HOLD_DDLTIME|HOUR|IDXPROPERTIES|IF|IGNORE|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTDRIVER|INPUTFORMAT|INSERT|INTERSECT|INTERVAL|INTO|IS|ITEMS|JAR|JOIN|KEY|KEYS|KEY_TYPE|LATERAL|LEFT|LESS|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCATION|LOCK|LOCKS|LOGICAL|LONG|MACRO|MAPJOIN|MATERIALIZED|MINUS|MINUTE|MONTH|MORE|MSCK|NONE|NOSCAN|NOVALIDATE|NOT|NO_DROP|OF|OFFLINE|ON|ONLY|OPTION|OR|ORDER|OUT|OUTER|OUTPUTDRIVER|OUTPUTFORMAT|OVER|OVERWRITE|OWNER|PARTIALSCAN|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PLUS|PRECEDING|PRECISION|PRESERVE|PRETTY|PRIMARY|PRINCIPALS|PROCEDURE|PROTECTION|PURGE|RANGE|READ|READONLY|READS|REBUILD|RECORDREADER|RECORDWRITER|REDUCE|REFERENCES|REGEXP|RELOAD|RENAME|REPAIR|REPLACE|RESTRICT|REVOKE|REWRITE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SECOND|SELECT|SEMI|SERDEPROPERTIES|SERVER|SET|SETS|SHARED|SHOW|SHOW_DATABASE|SKEWED|SORT|SORTED|SSL|START|STATISTICS|STORED|STREAMTABLE|SYNC|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMPORARY|TERMINATED|THEN|TO|TOUCH|TRANSACTIONAL|TRANSACTIONS|TRANSFORM|TRIGGER|TRUNCATE|UNARCHIVE|UNBOUNDED|UNDO|UNION|UNIQUEJOIN|UNLOCK|UNSET|UNSIGNED|UTC_TIMESTAMP|UPDATE|URI|USE|USER|USING|UTC|UTCTIMESTAMP|VALUES|VALUE_TYPE|VIEW|VIEWS|WHEN|WHERE|WHILE|WINDOW|WITH|YEAR","constant.language":"FALSE|NULL|TRUE","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|CHAR|DATE|DECIMAL|DELIMITED|DOUBLE|FLOAT|INT|INTEGER|JSONFILE|MAP|NUMERIC|PRECISION|RCFILE|SEQUENCEFILE|SERDE|SMALLINT|STRING|STRUCT|TEXTFILE|TIME|TIMESTAMP|TINYINT|UNIONTYPE|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["esql","es"],name:"ElasticSearch",scopeName:"source.elasticsearch"},r.inherits(o,i),t.ElasticSearchHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var a=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,a);var s=e.getCommentFoldRange(n,a+i[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(a=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,a):e.getCommentFoldRange(n,a,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length,s=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>a)return new i(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,a=t.FoldMode=function(){};r.inherits(a,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.getBeginEndBlock(e,n,a,o[1]);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}},this.getBeginEndBlock=function(e,t,n,r){for(var o,a={row:t,column:n+r.length},s=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<s;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>a.row)return new i(a.row,a.column,t,o.length)}}.call(a.prototype)})),ace.define("ace/mode/elasticsearch",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/elasticsearch_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./elasticsearch_highlight_rules").ElasticSearchHighlightRules,a=e("./folding/sqlserver").FoldMode,s=function(){this.HighlightRules=o,this.foldingRules=new a};r.inherits(s,i),function(){this.lineCommentStart="--",this.$id="ace/mode/elasticsearch",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(s.prototype),t.Mode=s}))},6515:()=>{ace.define("ace/mode/flink_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ARRAY|ARRAY_CONTAINS|ASCII|ASIN|ATAN|AVG|BASE64|BIN|BINARY|BROUND|CAST|CBRT|CEIL|CEILING|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT|CONCAT_WS|CONTEXT_NGRAMS|CONV|CORR|COS|COUNT|COVAR_POP|COVAR_SAMP|CRC32|CREATE_UNION|CUME_DIST|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE_ADD|DATE_FORMAT|DATE_SUB|DATEDIFF|DAY|DAYOFMONTH|DECODE|DEGREES|DENSE_RANK|E|ENCODE|EXP|EXPLODE|FACTORIAL|FIND_IN_SET|FIRST_VALUE|FLOOR|FORMAT_NUMBER|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GREATEST|HASH|HEX|HISTOGRAM_NUMERIC|HOP_END|HOP_PROCTIME|HOP_ROWTIME|HOP_START|HOUR|IF|IN_FILE|INITCAP|INLINE|INSTR|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_TUPLE|LAG|LAST_DAY|LAST_VALUE|LCASE|LEAD|LEAST|LENGTH|LEVENSHTEIN|LISTAGG|LN|LOCATE|LOG|LOG2|LOG10|LOWER|LPAD|LTRIM|MAP|MAP_KEYS|MAP_VALUES|MAX|MD5|MIN|MINUTE|MONTH|MONTHS_BETWEEN|NAMED_STRUCT|NEGATIVE|NEXT_DAY|NGRAMS|NTILE|NVL|PARSE_URL|PARSE_URL_TUPLE|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSITIVE|POW|POWER|PRINTF|PROCTIME|QUARTER|RADIANS|RAND|RANK|REFLECT|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SECOND|SENTENCES|SESSION_END|SESSION_PROCTIME|SESSION_ROWTIME|SESSION_START|SHA|SHA1|SHA2|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SIGN|SIN|SIZE|SORT_ARRAY|SOUNDEX|SPACE|SPLIT|SQRT|STACK|STDDEV_POP|STDDEV_SAMP|STR_TO_MAP|STRUCT|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|TUMBLE_END|TUMBLE_PROCTIME|TUMBLE_ROWTIME|TUMBLE_START|UCASE|UNBASE64|UNHEX|UNIX_TIMESTAMP|UPPER|VAR_POP|VAR_SAMP|VARIANCE|WEEKOFYEAR|XPATH|XPATH_BOOLEAN|XPATH_DOUBLE|XPATH_FLOAT|XPATH_INT|XPATH_LONG|XPATH_NUMBER|XPATH_SHORT|XPATH_STRING|YEAR",keyword:"ADD|ADMIN|AFTER|ALL|ALTER|ANALYZE|AND|ARCHIVE|AS|ASC|AUTHORIZATION|BEFORE|BETWEEN|BOTH|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CAST|CHANGE|CLUSTER|CLUSTERED|CLUSTERSTATUS|COLLECTION|COLUMN|COLUMNS|COMMENT|COMMIT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONF|CONSTRAINT|CONTINUE|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_TIMESTAMP|CURSOR|DATA|DATABASE|DATABASES|DATETIME|DAY|DAYOFWEEK|DBPROPERTIES|DEFERRED|DEFINED|DELETE|DEPENDENCY|DESC|DESCRIBE|DIRECTORIES|DIRECTORY|DISABLE|DISTINCT|DISTRIBUTE|DROP|ELEM_TYPE|ELSE|ENABLE|END|ESCAPED|EXCHANGE|EXCLUSIVE|EXISTS|EXPLAIN|EXPORT|EXTENDED|EXTERNAL|EXTRACT|FETCH|FIELDS|FILE|FILEFORMAT|FIRST|FLOOR|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GRANT|GROUP|GROUPING|HAVING|HOLD_DDLTIME|HOP|HOUR|IDXPROPERTIES|IF|IGNORE|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTDRIVER|INPUTFORMAT|INSERT|INTERSECT|INTERVAL|INTO|IS|ITEMS|JAR|JOIN|KEY|KEYS|KEY_TYPE|LATERAL|LEFT|LESS|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCATION|LOCK|LOCKS|LOGICAL|LONG|MACRO|MAPJOIN|MATERIALIZED|MINUS|MINUTE|MONTH|MORE|MSCK|NONE|NOSCAN|NOVALIDATE|NOT|NO_DROP|OF|OFFLINE|ON|ONLY|OPTION|OR|ORDER|OUT|OUTER|OUTPUTDRIVER|OUTPUTFORMAT|OVER|OVERWRITE|OWNER|PARTIALSCAN|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PLUS|PRECEDING|PRECISION|PRESERVE|PRETTY|PRIMARY|PRINCIPALS|PROCEDURE|PROTECTION|PURGE|RANGE|READ|READONLY|READS|REBUILD|RECORDREADER|RECORDWRITER|REDUCE|REFERENCES|REGEXP|RELOAD|RENAME|REPAIR|REPLACE|RESTRICT|REVOKE|REWRITE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SECOND|SELECT|SEMI|SERDEPROPERTIES|SERVER|SESSION|SET|SETS|SHARED|SHOW|SHOW_DATABASE|SKEWED|SORT|SORTED|SSL|START|STATISTICS|STORED|STREAMTABLE|SYNC|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMPORARY|TERMINATED|THEN|TO|TOUCH|TRANSACTIONAL|TRANSACTIONS|TRANSFORM|TRIGGER|TRUNCATE|TUMBLE|UNARCHIVE|UNBOUNDED|UNDO|UNION|UNIQUEJOIN|UNLOCK|UNSET|UNSIGNED|UTC_TIMESTAMP|UPDATE|URI|USE|USER|USING|UTC|UTCTIMESTAMP|VALUES|VALUE_TYPE|VIEW|VIEWS|WHEN|WHERE|WHILE|WINDOW|WITH|YEAR","constant.language":"FALSE|NULL|TRUE","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|CHAR|DATE|DECIMAL|DELIMITED|DOUBLE|FLOAT|INT|INTEGER|JSONFILE|MAP|NUMERIC|PRECISION|RCFILE|SEQUENCEFILE|SERDE|SMALLINT|STRING|STRUCT|TEXTFILE|TIME|TIMESTAMP|TINYINT|UNIONTYPE|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["flink","ql"],name:"Flink",scopeName:"source.flink"},r.inherits(o,i),t.FlinkHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var a=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,a);var s=e.getCommentFoldRange(n,a+i[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(a=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,a):e.getCommentFoldRange(n,a,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length,s=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>a)return new i(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,a=t.FoldMode=function(){};r.inherits(a,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.getBeginEndBlock(e,n,a,o[1]);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}},this.getBeginEndBlock=function(e,t,n,r){for(var o,a={row:t,column:n+r.length},s=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<s;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>a.row)return new i(a.row,a.column,t,o.length)}}.call(a.prototype)})),ace.define("ace/mode/flink",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/flink_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./flink_highlight_rules").FlinkHighlightRules,a=e("./folding/sqlserver").FoldMode,s=function(){this.HighlightRules=o,this.foldingRules=new a};r.inherits(s,i),function(){this.lineCommentStart="--",this.$id="ace/mode/flink",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(s.prototype),t.Mode=s}))},3605:()=>{ace.define("ace/mode/hive_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ARRAY|ARRAY_CONTAINS|ASCII|ASIN|ATAN|AVG|BASE64|BIN|BINARY|BROUND|CAST|CBRT|CEIL|CEILING|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT|CONCAT_WS|CONTEXT_NGRAMS|CONV|CORR|COS|COVAR_POP|COVAR_SAMP|COUNT|CRC32|CREATE_UNION|CUME_DIST|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE_ADD|DATE_FORMAT|DATE_SUB|DATEDIFF|DAY|DAYOFMONTH|DAYOFWEEK|DECODE|DEGREES|DENSE_RANK|E|ENCODE|EXP|EXPLODE|FACTORIAL|FIND_IN_SET|FIRST_VALUE|FLOOR|FORMAT_NUMBER|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GREATEST|HASH|HEX|HISTOGRAM_NUMERIC|HOUR|IF|IN_FILE|INLINE|INSTR|INITCAP|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_TUPLE|LAG|LAST_DAY|LAST_VALUE|LEAD|LEAST|LENGTH|LEVENSHTEIN|LCASE|LN|LOCATE|LOG|LOG10|LOG2|LOWER|LPAD|LTRIM|MAP|MAP_KEYS|MAP_VALUES|MAX|MD5|MIN|MINUTE|MONTH|MONTHS_BETWEEN|NAMED_STRUCT|NEGATIVE|NEXT_DAY|NGRAMS|NTILE|NVL|PARSE_URL|PARSE_URL_TUPLE|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSITIVE|POW|POWER|PRINTF|QUARTER|RADIANS|RAND|RANK|REFLECT|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SECOND|SHA|SHA1|SHA2|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SIGN|SIN|SIZE|SORT_ARRAY|SQRT|STACK|STDDEV_POP|STDDEV_SAMP|STRUCT|SENTENCES|SOUNDEX|SPACE|SPLIT|STR_TO_MAP|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|UCASE|UNBASE64|UNHEX|UNIX_TIMESTAMP|UPPER|VAR_POP|VAR_SAMP|VARIANCE|WEEK|WEEKOFYEAR|XPATH|XPATH_BOOLEAN|XPATH_DOUBLE|XPATH_FLOAT|XPATH_INT|XPATH_LONG|XPATH_NUMBER|XPATH_SHORT|XPATH_STRING|YEAR",keyword:"ABORT|ADD|ADMIN|AFTER|ALL|ALTER|ANALYZE|AND|ARCHIVE|AS|ASC|AST|AUTHORIZATION|BETWEEN|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CBO|CHANGE|CHECK|CLUSTER|CLUSTERED|COLLECTION|COLUMN|COLUMNS|COMMENT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONF|CONNECTOR|CONNECTORS|CONSTRAINT|COST|CREATE|CROSS|CUBE|CURRENT|DATA|DATABASE|DATABASES|DBPROPERTIES|DCPROPERTIES|DEFAULT|DEFERRED|DEFINED|DELETE|DEPENDENCY|DESC|DESCRIBE|DETAIL|DIRECTORY|DISABLE|DISTINCT|DISTRIBUTE|DISTRIBUTED|DIV|DROP|ELSE|ENABLE|END|ESCAPED|EXCHANGE|EXISTS|EXPLAIN|EXPORT|EXPRESSION|EXTENDED|EXTERNAL|FIELDS|FILE|FILEFORMAT|FIRST|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GRANT|GROUP|GROUPING|HAVING|IDXPROPERTIES|IF|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTFORMAT|INSERT|INTO|IS|ITEMS|JAR|JOIN|JOINCOST|KEY|KEYS|LAST|LATERAL|LEFT|LIKE|LIMIT|LINES|LITERAL|LOAD|LOCAL|LOCATION|LOCK|LOCKS|MACRO|MATCHED|MATERIALIZED|MERGE|METADATA|MSCK|NO_DROP|NONE|NORELY|NOSCAN|NOT|NOVALIDATE|NULLS|OF|OFFLINE|ON|ONLY|OPERATOR|OPTION|OR|ORDER|OUT|OUTER|OUTPUTFORMAT|OVER|OVERWRITE|OWNER|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PRECEDING|PRIMARY|PRIVILEGES|PURGE|QUARTER|RANGE|REBUILD|RECOVER|REFERENCES|REGEXP|RELOAD|RELY|REMOTE|RENAME|REPAIR|REPLACE|REPLICATION|RESTRICT|REVOKE|REWRITE|RIGHT|RLIKE|ROLE|ROLES|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SELECT|SEMI|SERDEPROPERTIES|SET|SETS|SHOW|SHOW_DATABASE|SKEWED|SORT|SORTED|SPEC|STATISTICS|STORED|SUMMARY|SYNC|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMPORARY|TERMINATED|THEN|TO|TOUCH|TRANSACTIONAL|TRANSACTIONS|TRUNCATE|TYPE|UNARCHIVE|UNBOUNDED|UNION|UNIQUE|UPDATE|URL|USE|USER|USING|VALUES|VECTORIZATION|VIEW|VIEWS|WAIT|WHEN|WHERE|WINDOW|WITH","constant.language":"AVRO|DELIMITED|FALSE|ICEBERG|JSONFILE|NULL|ORC|PARQUET|RCFILE|SEQUENCEFILE|SERDE|TEXTFILE|TRUE","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|CHAR|DATE|DECIMAL|DOUBLE|FLOAT|INT|INTEGER|MAP|PRECISION|SMALLINT|STRING|STRUCT|TIMESTAMP|TINYINT|UNIONTYPE|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["hql","q","ql"],name:"Hive",scopeName:"source.hive"},r.inherits(o,i),t.HiveHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var a=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,a);var s=e.getCommentFoldRange(n,a+i[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(a=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,a):e.getCommentFoldRange(n,a,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length,s=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>a)return new i(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,a=t.FoldMode=function(){};r.inherits(a,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.getBeginEndBlock(e,n,a,o[1]);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}},this.getBeginEndBlock=function(e,t,n,r){for(var o,a={row:t,column:n+r.length},s=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<s;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>a.row)return new i(a.row,a.column,t,o.length)}}.call(a.prototype)})),ace.define("ace/mode/hive",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/hive_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./hive_highlight_rules").HiveHighlightRules,a=e("./folding/sqlserver").FoldMode,s=function(){this.HighlightRules=o,this.foldingRules=new a};r.inherits(s,i),function(){this.lineCommentStart="--",this.$id="ace/mode/hive",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(s.prototype),t.Mode=s}))},2821:()=>{ace.define("ace/mode/hplsql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"CAST|CHAR|COALESCE|CONCAT|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE|DBMS_OUTPUT|PUT_LINE|DECODE|FROM_UNIXTIME|INSTR|LEN|LENGTH|LOWER|MAX_PART_DATE|MAX_PART_INT|MAX_PART_STRING|MIN_PART_DATE|MIN_PART_INT|MIN_PART_STRING|NOW|NVL|NVL2|PART_COUNT|PART_COUNT_BY|PART_LOC|REPLACE|SUBSTR|SUBSTRING|SYSDATE|TIMESTAMP_ISO|TO_CHAR|TO_TIMESTAMP|TRIM|UNIX_TIMESTAMP|UPPER",keyword:"ALLOCATE|ASSOCIATE|BREAK|CALL|CLOSE|CMP|CONDITION|COPY|CREATE|CURSOR|DATABASE|DECLARE|DESCRIBE|DIAGNOSTICS|DIRECTORY|DROP|EXEC|EXECUTE|EXIT|FETCH|FOR|FROM|FTP|FUNCTION|GET|HANDLER|HIVE|HOST|IF|IMMEDIATE|INCLUDE|INSERT|INTO|LEAVE|LOCAL|LOCATOR|LOOP|MAP|NULL|OBJECT|OPEN|PACKAGE|PRINT|PROCEDURE|RESIGNAL|RESULT|RETURN|SELECT|SET|SIGNAL|SUMMARY|TABLE|TEMPORARY|TRUNCATE|UPDATE|USE|VALUES|VOLATILE|WHEN|WHILE|.IF|.QUIT","constant.language":"FALSE|NULL|TRUE","storage.type":"BIGINT|BINARY_DOUBLE|BINARY_FLOAT|BINARY_INTEGER|BIT|BOOL|BOOLEAN|CHAR|CHARACTER|DATE|DATETIME|DECIMAL|DOUBLE|FLOAT|INT|INT2|INT8|INTEGER|NCHAR|NUMBER|NUMERIC|NVARCHAR|PLS_INTEGER|PRECISION|REAL|RECORD|SIMPLE_DOUBLE|SIMPLE_FLOAT|SIMPLE_INTEGER|SMALLINT|SYS_REFCURSOR|TIMESTAMP|TINYINT|VARCHAR|VARCHAR2|UTL_FILE|FILE_TYPE"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["hplsql"],name:"Hplsql",scopeName:"source.hplsql"},r.inherits(o,i),t.HplsqlHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var a=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,a);var s=e.getCommentFoldRange(n,a+i[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(a=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,a):e.getCommentFoldRange(n,a,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length,s=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>a)return new i(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,a=t.FoldMode=function(){};r.inherits(a,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.getBeginEndBlock(e,n,a,o[1]);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}},this.getBeginEndBlock=function(e,t,n,r){for(var o,a={row:t,column:n+r.length},s=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<s;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>a.row)return new i(a.row,a.column,t,o.length)}}.call(a.prototype)})),ace.define("ace/mode/hplsql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/hplsql_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./hplsql_highlight_rules").HplsqlHighlightRules,a=e("./folding/sqlserver").FoldMode,s=function(){this.HighlightRules=o,this.foldingRules=new a};r.inherits(s,i),function(){this.lineCommentStart="--",this.$id="ace/mode/hplsql",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(s.prototype),t.Mode=s}))},7527:()=>{ace.define("ace/mode/impala_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|ADDDATE|APPX_MEDIAN|ASCII|ASIN|ATAN|AVG|BIN|BYTES|CAST|CEIL|CEILING|CHAR_LENGTH|CHARACTER_LENGTH|COALESCE|CONCAT|CONCAT_WS|CONV|COS|COUNT|CURRENT_DATABASE|CURRENT_TIMESTAMP|DATE_ADD|DATE_PART|DATE_SUB|DATEDIFF|DAY|DAYNAME|DAYOFMONTH|DAYOFWEEK|DAYOFYEAR|DAYS_ADD|DAYS_SUB|DECODE|DEGREES|DENSE_RANK|E|EXP|EXTRACT|FIND_IN_SET|FIRST_VALUE|FLOOR|FMOD|FNV_HASH|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GREATEST|GROUP_CONCAT|HEX|HOUR|HOURS_ADD|HOURS_SUB|IF|IFNULL|INITCAP|INSTR|IS_INF|IS_NAN|ISNULL|LAG|LAST_VALUE|LCASE|LEAD|LEAST|LENGTH|LN|LOCATE|LOG|LOG10|LOG2|LOWER|LPAD|LTRIM|MAX|MAX_BIGINT|MAX_INT|MAX_SMALLINT|MAX_TINYINT|MICROSECONDS_ADD|MICROSECONDS_SUB|MILLISECONDS_ADD|MILLISECONDS_SUB|MIN|MIN_BIGINT|MIN_INT|MIN_SMALLINT|MIN_TINYINT|MINUTE|MINUTES_ADD|MINUTES_SUB|MONTH|MONTHS_ADD|MONTHS_SUB|NANOSECONDS_ADD|NANOSECONDS_SUB|NDV|NEGATIVE|NOW|NULLIF|NULLIFZERO|NVL|PARSE_URL|PI|PID|PMOD|POSITIVE|POW|POWER|PRECISION|QUOTIENT|RADIANS|RAND|RANK|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SCALE|SECOND|SECONDS_ADD|SECONDS_SUB|SIGN|SIN|SPACE|SQRT|STDDEV|STDDEV_POP|STDDEV_SAMP|STRLEFT|STRRIGHT|SUBDATE|SUBSTR|SUBSTRING|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|UCASE|UNHEX|UNIX_TIMESTAMP|UPPER|USER|VAR_POP|VAR_SAMP|VARIANCE|VARIANCE_POP|VARIANCE_SAMP|VERSION|WEEKOFYEAR|WEEKS_ADD|WEEKS_SUB|YEAR|YEARS_ADD|YEARS_SUB|ZEROIFNULL",keyword:"ADD|AGGREGATE|ALL|ALLOCATE|ALTER|ANALYTIC|AND|ANTI|ANY|API_VERSION|ARE|ARRAY_AGG|ARRAY_MAX_CARDINALITY|AS|ASC|ASENSITIVE|ASYMMETRIC|AT|ATOMIC|AUTHORIZATION|BEGIN_FRAME|BEGIN_PARTITION|BETWEEN|BINARY|BLOB|BLOCK_SIZE|BOTH|BY|CACHED|CALLED|CARDINALITY|CASCADE|CASCADED|CASE|CAST|CHANGE|CHARACTER|CLASS|CLOB|CLOSE_FN|COLLATE|COLLECT|COLUMN|COLUMNS|COMMENT|COMMIT|COMPRESSION|COMPUTE|CONDITION|CONNECT|CONSTRAINT|CONTAINS|CONVERT|COPY|CORR|CORRESPONDING|COVAR_POP|COVAR_SAMP|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_DEFAULT_TRANSFORM_GROUP|CURRENT_PATH|CURRENT_ROLE|CURRENT_ROW|CURRENT_SCHEMA|CURRENT_TIME|CURRENT_TRANSFORM_GROUP_FOR_TYPE|CURSOR|CYCLE|DATA|DATABASE|DATABASES|DATE|DATETIME|DEALLOCATE|DEC|DECFLOAT|DECLARE|DEFAULT|DEFINE|DELETE|DELIMITED|DEREF|DESC|DESCRIBE|DETERMINISTIC|DISCONNECT|DISTINCT|DIV|DROP|DYNAMIC|EACH|ELEMENT|ELSE|EMPTY|ENCODING|END|END_FRAME|END_PARTITION|EQUALS|ESCAPE|ESCAPED|EVERY|EXCEPT|EXEC|EXECUTE|EXISTS|EXPLAIN|EXTENDED|EXTERNAL|FETCH|FIELDS|FILEFORMAT|FILES|FILTER|FINALIZE_FN|FIRST|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FRAME_ROW|FREE|FROM|FULL|FUNCTION|FUNCTIONS|FUSION|GET|GLOBAL|GRANT|GROUP|GROUPING|GROUPS|HASH|HAVING|HISTORY|HOLD|IF|IGNORE|ILIKE|IN|INCREMENTAL|INDICATOR|INIT_FN|INITIAL|INNER|INOUT|INPATH|INSENSITIVE|INSERT|INTEGER|INTERMEDIATE|INTERSECT|INTERSECTION|INTERVAL|INTO|INVALIDATE|IREGEXP|IS|JOIN|JSON_ARRAY|JSON_ARRAYAGG|JSON_EXISTS|JSON_OBJECT|JSON_OBJECTAGG|JSON_QUERY|JSON_TABLE|JSON_TABLE_PRIMITIVE|JSON_VALUE|KEY|LARGE|LAST|LATERAL|LEADING|LEFT|LIKE|LIKE_REGEX|LIMIT|LINES|LISTAGG|LOAD|LOCAL|LOCALTIMESTAMP|LOCATION|MATCH|MATCH_NUMBER|MATCH_RECOGNIZE|MATCHES|MERGE|MERGE_FN|METADATA|METHOD|MODIFIES|MULTISET|NATIONAL|NATURAL|NCHAR|NCLOB|NO|NONE|NORMALIZE|NOT|NTH_VALUE|NULLS|NUMERIC|OCCURRENCES_REGEX|OCTET_LENGTH|OF|OFFSET|OMIT|ON|ONE|ONLY|OR|ORDER|OUT|OUTER|OVER|OVERLAPS|OVERLAY|OVERWRITE|PARTITION|PARTITIONED|PARTITIONS|PATTERN|PER|PERCENT|PERCENTILE_CONT|PERCENTILE_DISC|PORTION|POSITION|POSITION_REGEX|PRECEDES|PRECEDING|PREPARE|PREPARE_FN|PRIMARY|PROCEDURE|PRODUCED|PTF|PURGE|RANGE|READS|RECOVER|RECURSIVE|REF|REFERENCES|REFERENCING|REFRESH|REGEXP|REGR_AVGX|REGR_AVGY|REGR_COUNT|REGR_INTERCEPT|REGR_R2REGR_SLOPE|REGR_SXX|REGR_SXY|REGR_SYY|RELEASE|RENAME|REPEATABLE|REPLACE|REPLICATION|RESTRICT|RETURNS|REVOKE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|RUNNING|SAVEPOINT|SCHEMA|SCHEMAS|SCOPE|SCROLL|SEARCH|SEEK|SELECT|SEMI|SENSITIVE|SERDEPROPERTIES|SERIALIZE_FN|SET|SHOW|SIMILAR|SKIP|SOME|SORT|SPECS|PECIFIC|SPECIFICTYPE|SQLEXCEPTION|SQLSTATE|SQLWARNING|STATIC|STATS|STORED|STRAIGHT_JOIN|SUBMULTISET|SUBSET|SUBSTRING_REGEX|SUCCEEDS|SYMBOL|SYMMETRIC|SYSTEM_TIME|SYSTEM_USER|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TERMINATED|THEN|TIMEZONE_HOUR|TIMEZONE_MINUTE|TO|TRAILING|TRANSLATE_REGEX|TRANSLATION|TREAT|TRIGGER|TRIM_ARRAY|TRUNCATE|UESCAPE|UNBOUNDED|UNCACHED|UNION|UNIQUE|UNNEST|UNSET|UPDATE|UPDATE_FN|UPSERT|USE|USING|VALUE_OF|VALUES|VARBINARY|VARYING|VERSIONING|VIEW|WHEN|WHENEVER|WHERE|WIDTH_BUCKET|WINDOW|WITH|WITHIN|WITHOUT","constant.language":"AVRO|DAY|DAYS|FALSE|HOUR|HOURS|ICEBERG|KUDU|MINUTE|MINUTES|MICROSECOND|MICROSECONDS|MILLISECOND|MILLISECONDS|MONTH|MONTHS|NANOSECOND|NANOSECONDS|NULL|ORC|PARQUET|PARQUETFILE|RCFILE|SECOND|SECONDS|SEQUENCEFILE|SYSTEM_TIME|SYSTEM_VERSION|TEXTFILE|TRUE|UNKNOWN|WEEK|WEEKS|YEAR|YEARS","storage.type":"ARRAY|BIGINT|BOOLEAN|CHAR|DECIMAL|DOUBLE|FLOAT|INT|MAP|REAL|SMALLINT|STRING|STRUCT|TIMESTAMP|TINYINT|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["iql"],name:"Impala",scopeName:"source.impala"},r.inherits(o,i),t.ImpalaHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var a=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,a);var s=e.getCommentFoldRange(n,a+i[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(a=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,a):e.getCommentFoldRange(n,a,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length,s=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>a)return new i(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,a=t.FoldMode=function(){};r.inherits(a,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.getBeginEndBlock(e,n,a,o[1]);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}},this.getBeginEndBlock=function(e,t,n,r){for(var o,a={row:t,column:n+r.length},s=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<s;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>a.row)return new i(a.row,a.column,t,o.length)}}.call(a.prototype)})),ace.define("ace/mode/impala",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/impala_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./impala_highlight_rules").ImpalaHighlightRules,a=e("./folding/sqlserver").FoldMode,s=function(){this.HighlightRules=o,this.foldingRules=new a};r.inherits(s,i),function(){this.lineCommentStart="--",this.$id="ace/mode/impala",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(s.prototype),t.Mode=s}))},8336:()=>{ace.define("ace/mode/ksql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ARRAYCONTAINS|CEIL|CONCAT|DATETOSTRING|ELT|EXTRACTJSONFIELD|FIELD|FLOOR|GEO_DISTANCE|IFNULL|LCASE|LEN|MASK|MASK_KEEP_LEFT|MASK_KEEP_RIGHT|MASK_LEFT|MASK_RIGHT|RANDOM|ROUND|SPLIT|STRINGTODATE|STRINGTOTIMESTAMP|SUBSTRING|TIMESTAMPTOSTRING|TRIM|UCASE|URL_DECODE_PARAM|URL_ENCODE_PARAM|URL_EXTRACT_FRAGMENT|URL_EXTRACT_HOST|URL_EXTRACT_PARAMETER|URL_EXTRACT_PATH|URL_EXTRACT_PORT|URL_EXTRACT_PROTOCOL|URL_EXTRACT_QUERY|COLLECT_LIST|COLLECT_SET|COUNT|HISTOGRAM|MAX|MIN|SUM|TOPK|TOPKDISTINCT|WindowStart|WindowEnd",keyword:"EMIT|CHANGES|SELECT|FROM|AS|DISTINCT|WHERE|WITHIN|WINDOW|GROUP|BY|HAVING|LIMIT|AT|OR|AND|IN|NOT|EXISTS|BETWEEN|LIKE|IS|INTEGER|DATE|TIME|TIMESTAMP|INTERVAL|YEAR|MONTH|DAY|HOUR|MINUTE|SECOND|MILLISECOND|YEARS|MONTHS|DAYS|HOURS|MINUTES|SECONDS|MILLISECONDS|ZONE|TUMBLING|HOPPING|SIZE|ADVANCE|CASE|WHEN|THEN|ELSE|END|JOIN|FULL|OUTER|INNER|LEFT|RIGHT|ON|PARTITION|STRUCT|WITH|VALUES|CREATE|TABLE|TOPIC|STREAM|STREAMS|INSERT|DELETE|INTO|DESCRIBE|EXTENDED|PRINT|EXPLAIN|ANALYZE|TYPE|TYPES|CAST|SHOW|LIST|TABLES|TOPICS|QUERY|QUERIES|TERMINATE|LOAD|COLUMNS|COLUMN|PARTITIONS|FUNCTIONS|FUNCTION|DROP|TO|RENAME|ARRAY|MAP|SET|RESET|SESSION|SAMPLE|EXPORT|CATALOG|PROPERTIES|BEGINNING|UNSET|RUN|SCRIPT|DECIMAL|KEY|CONNECTOR|CONNECTORS|SINK|SOURCE|IF","constant.language":"FALSE|NULL|TRUE","storage.type":"BOOLEAN|INTEGER|INT|BIGINT|DOUBLE|VARCHAR|STRING|ARRAY|MAP|STRUCT"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["ksql"],name:"ksql",scopeName:"source.ksql"},r.inherits(o,i),t.KsqlHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var a=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,a);var s=e.getCommentFoldRange(n,a+i[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(a=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,a):e.getCommentFoldRange(n,a,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length,s=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>a)return new i(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,a=t.FoldMode=function(){};r.inherits(a,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.getBeginEndBlock(e,n,a,o[1]);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}},this.getBeginEndBlock=function(e,t,n,r){for(var o,a={row:t,column:n+r.length},s=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<s;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>a.row)return new i(a.row,a.column,t,o.length)}}.call(a.prototype)})),ace.define("ace/mode/ksql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ksql_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./ksql_highlight_rules").KsqlHighlightRules,a=e("./folding/sqlserver").FoldMode,s=function(){this.HighlightRules=o,this.foldingRules=new a};r.inherits(s,i),function(){this.lineCommentStart="--",this.$id="ace/mode/ksql",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(s.prototype),t.Mode=s}))},5517:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function e(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},e.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};r.inherits(o,i),o.getTagRule=function(e){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.DocCommentHighlightRules=o})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./doc_comment_highlight_rules").DocCommentHighlightRules,o=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*\\b",s=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|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|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|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","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[i.getStartRule("doc-start"),l("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/[+-]?\d[\d_]*(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+a+")(\\.)(prototype)(\\.)("+a+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"(?:case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void)\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?\:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+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|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|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:[i.getStartRule("doc-start"),l("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){return this.next="{"==e?this.nextState:"","{"==e&&n.length?(n.unshift("start",t),"paren"):"}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx"))?"paren.quasi.end":"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:n},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),e&&e.noJSX||c.call(this)),this.embedRules(i,"doc-",[i.getEndRule("no_regex")]),this.normalizeRules()};function c(){var e=a.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var r="/"==e.charAt(1)?2:1;return 1==r?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==r&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==r?"":"end-")+"tag-open.xml",value:e.slice(0,r)},{type:"meta.tag.tag-name.xml",value:e.substr(r)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,l("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},n,{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[n,{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]}],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function l(e){return[{token:"comment",regex:/\/\*/,next:[i.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[i.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.inherits(s,o),t.JavaScriptHighlightRules=s})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var i=n[1].length,o=e.findMatchingBracket({row:t,column:i});if(!o||o.row==t)return 0;var a=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,i-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var r,i=e("../../lib/oop"),o=e("../behaviour").Behaviour,a=e("../../token_iterator").TokenIterator,s=e("../../lib/lang"),c=["text","paren.rparen","punctuation.operator"],l=["text","paren.rparen","punctuation.operator","comment"],u={},h=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,u.rangeCount!=e.multiSelect.rangeCount&&(u={rangeCount:e.multiSelect.rangeCount})),u[t])return r=u[t];r=u[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},d=function(e,t,n,r){var i=e.end.row-e.start.row;return{text:n+t+r,selection:[0,e.start.column+1,i,e.end.column+(i?0:1)]}},f=function e(){this.add("braces","insertion",(function(t,n,i,o,a){var c=i.getCursorPosition(),l=o.doc.getLine(c.row);if("{"==a){h(i);var u=i.getSelectionRange(),f=o.doc.getTextRange(u);if(""!==f&&"{"!==f&&i.getWrapBehavioursEnabled())return d(u,f,"{","}");if(e.isSaneInsertion(i,o))return/[\]\}\)]/.test(l[c.column])||i.inMultiSelectMode?(e.recordAutoInsert(i,o,"}"),{text:"{}",selection:[1,1]}):(e.recordMaybeInsert(i,o,"{"),{text:"{",selection:[1,1]})}else if("}"==a){if(h(i),"}"==l.substring(c.column,c.column+1)&&null!==o.$findOpeningBracket("}",{column:c.column+1,row:c.row})&&e.isAutoInsertedClosing(c,l,a))return e.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==a||"\r\n"==a){h(i);var p="";if(e.isMaybeInsertedClosing(c,l)&&(p=s.stringRepeat("}",r.maybeInsertedBrackets),e.clearMaybeInsertedClosing()),"}"===l.substring(c.column,c.column+1)){var g=o.findMatchingBracket({row:c.row,column:c.column+1},"}");if(!g)return null;var m=this.$getIndent(o.getLine(g.row))}else{if(!p)return void e.clearMaybeInsertedClosing();m=this.$getIndent(l)}var E=m+o.getTabString();return{text:"\n"+E+"\n"+m+p,selection:[1,E.length,1,E.length]}}e.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,i,o){var a=i.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==a){if(h(n),"}"==i.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o;r.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(t,n,r,i,o){if("("==o){h(r);var a=r.getSelectionRange(),s=i.doc.getTextRange(a);if(""!==s&&r.getWrapBehavioursEnabled())return d(a,s,"(",")");if(e.isSaneInsertion(r,i))return e.recordAutoInsert(r,i,")"),{text:"()",selection:[1,1]}}else if(")"==o){h(r);var c=r.getCursorPosition(),l=i.doc.getLine(c.row);if(")"==l.substring(c.column,c.column+1)&&null!==i.$findOpeningBracket(")",{column:c.column+1,row:c.row})&&e.isAutoInsertedClosing(c,l,o))return e.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"("==o&&(h(n),")"==r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)))return i.end.column++,i})),this.add("brackets","insertion",(function(t,n,r,i,o){if("["==o){h(r);var a=r.getSelectionRange(),s=i.doc.getTextRange(a);if(""!==s&&r.getWrapBehavioursEnabled())return d(a,s,"[","]");if(e.isSaneInsertion(r,i))return e.recordAutoInsert(r,i,"]"),{text:"[]",selection:[1,1]}}else if("]"==o){h(r);var c=r.getCursorPosition(),l=i.doc.getLine(c.row);if("]"==l.substring(c.column,c.column+1)&&null!==i.$findOpeningBracket("]",{column:c.column+1,row:c.row})&&e.isAutoInsertedClosing(c,l,o))return e.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"["==o&&(h(n),"]"==r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)))return i.end.column++,i})),this.add("string_dquotes","insertion",(function(e,t,n,r,i){if('"'==i||"'"==i){h(n);var o=i,a=n.getSelectionRange(),s=r.doc.getTextRange(a);if(""!==s&&"'"!==s&&'"'!=s&&n.getWrapBehavioursEnabled())return d(a,s,o,o);if(!s){var c=n.getCursorPosition(),l=r.doc.getLine(c.row),u=l.substring(c.column-1,c.column),f=l.substring(c.column,c.column+1),p=r.getTokenAt(c.row,c.column),g=r.getTokenAt(c.row,c.column+1);if("\\"==u&&p&&/escape/.test(p.type))return null;var m,E=p&&/string|escape/.test(p.type),v=!g||/string|escape/.test(g.type);if(f==o)m=E!==v;else{if(E&&!v)return null;if(E&&v)return null;var y=r.$mode.tokenRe;y.lastIndex=0;var b=y.test(u);y.lastIndex=0;var A=y.test(u);if(b||A)return null;if(f&&!/[\s;,.})\]\\]/.test(f))return null;m=!0}return{text:m?o+o:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&('"'==o||"'"==o)&&(h(n),r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)==o))return i.end.column++,i}))};f.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),r=new a(t,n.row,n.column);if(!this.$matchTokenType(r.getCurrentToken()||"text",c)){var i=new a(t,n.row,n.column+1);if(!this.$matchTokenType(i.getCurrentToken()||"text",c))return!1}return r.stepForward(),r.getCurrentTokenRow()!==n.row||this.$matchTokenType(r.getCurrentToken()||"text",l)},f.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},f.recordAutoInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isAutoInsertedClosing(i,o,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=i.row,r.autoInsertedLineEnd=n+o.substr(i.column),r.autoInsertedBrackets++},f.recordMaybeInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isMaybeInsertedClosing(i,o)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=i.row,r.maybeInsertedLineStart=o.substr(0,i.column)+n,r.maybeInsertedLineEnd=o.substr(i.column),r.maybeInsertedBrackets++},f.isAutoInsertedClosing=function(e,t,n){return r.autoInsertedBrackets>0&&e.row===r.autoInsertedRow&&n===r.autoInsertedLineEnd[0]&&t.substr(e.column)===r.autoInsertedLineEnd},f.isMaybeInsertedClosing=function(e,t){return r.maybeInsertedBrackets>0&&e.row===r.maybeInsertedRow&&t.substr(e.column)===r.maybeInsertedLineEnd&&t.substr(0,e.column)==r.maybeInsertedLineStart},f.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},f.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},i.inherits(f,o),t.CstyleBehaviour=f})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var a=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,a);var s=e.getCommentFoldRange(n,a+i[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(a=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,a):e.getCommentFoldRange(n,a,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length,s=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>a)return new i(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./javascript_highlight_rules").JavaScriptHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=(e("../range").Range,e("../worker/worker_client").WorkerClient),c=e("./behaviour/cstyle").CstyleBehaviour,l=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=o,this.$outdent=new a,this.$behaviour=new c,this.foldingRules=new l};r.inherits(u,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e),o=i.tokens,a=i.state;if(o.length&&"comment"==o[o.length-1].type)return r;if("start"==e||"no_regex"==e)(s=t.match(/^.*(?:\bcase\b.*\:|[\{\(\[])\s*$/))&&(r+=n);else if("doc-start"==e){if("start"==a||"no_regex"==a)return"";var s;(s=t.match(/^\s*(\/?)\*/))&&(s[1]&&(r+=" "),r+="* ")}return r},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"],"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"}.call(u.prototype),t.Mode=u})),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function e(t){var n="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.xml-decl.xml","keyword.xml-decl.xml"],regex:"(<\\?)(xml)(?=[\\s])",next:"xml_decl",caseInsensitive:!0},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+n+")",next:"processing_instruction"},{token:"comment.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],xml_decl:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:"(?:"+n+":)?"+n},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],processing_instruction:[{token:"punctuation.instruction.xml",regex:"\\?>",next:"start"},{defaultToken:"instruction.xml"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+n+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.xml",regex:"--\x3e",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+n+":)?"+n+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:"(?:"+n+":)?"+n},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===e&&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:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:t+"start"}]}),this.$rules[n+"-end"]=[{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"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(i.prototype),r.inherits(o,i),t.XmlHighlightRules=o})),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../behaviour").Behaviour,o=e("../../token_iterator").TokenIterator;function a(e,t){return e.type.lastIndexOf(t+".xml")>-1}e("../../lib/lang");var s=function(){this.add("string_dquotes","insertion",(function(e,t,n,r,i){if('"'==i||"'"==i){var s=i,c=r.doc.getTextRange(n.getSelectionRange());if(""!==c&&"'"!==c&&'"'!=c&&n.getWrapBehavioursEnabled())return{text:s+c+s,selection:!1};var l=n.getCursorPosition(),u=r.doc.getLine(l.row).substring(l.column,l.column+1),h=new o(r,l.row,l.column),d=h.getCurrentToken();if(u==s&&(a(d,"attribute-value")||a(d,"string")))return{text:"",selection:[1,1]};if(d||(d=h.stepBackward()),!d)return;for(;a(d,"tag-whitespace")||a(d,"whitespace");)d=h.stepBackward();var f=!u||u.match(/\s/);if(a(d,"attribute-equals")&&(f||">"==u)||a(d,"decl-attribute-equals")&&(f||"?"==u))return{text:s+s,selection:[1,1]}}})),this.add("string_dquotes","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&('"'==o||"'"==o)&&r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)==o)return i.end.column++,i})),this.add("autoclosing","insertion",(function(e,t,n,r,i){if(">"==i){var s=n.getCursorPosition(),c=new o(r,s.row,s.column),l=c.getCurrentToken()||c.stepBackward();if(!l||!(a(l,"tag-name")||a(l,"tag-whitespace")||a(l,"attribute-name")||a(l,"attribute-equals")||a(l,"attribute-value")))return;if(a(l,"reference.attribute-value"))return;if(a(l,"attribute-value")){var u=l.value.charAt(0);if('"'==u||"'"==u){var h=l.value.charAt(l.value.length-1),d=c.getCurrentTokenColumn()+l.value.length;if(d>s.column||d==s.column&&u!=h)return}}for(;!a(l,"tag-name");)l=c.stepBackward();var f=c.getCurrentTokenRow(),p=c.getCurrentTokenColumn();if(a(c.stepBackward(),"end-tag-open"))return;var g=l.value;if(f==s.row&&(g=g.substring(0,s.column-p)),this.voidElements.hasOwnProperty(g.toLowerCase()))return;return{text:"></"+g+">",selection:[1,1]}}})),this.add("autoindent","insertion",(function(e,t,n,r,i){if("\n"==i){var a=n.getCursorPosition(),s=r.getLine(a.row),c=new o(r,a.row,a.column),l=c.getCurrentToken();if(l&&-1!==l.type.indexOf("tag-close")){if("/>"==l.value)return;for(;l&&-1===l.type.indexOf("tag-name");)l=c.stepBackward();if(!l)return;var u=l.value,h=c.getCurrentTokenRow();if(!(l=c.stepBackward())||-1!==l.type.indexOf("end-tag"))return;if(this.voidElements&&!this.voidElements[u]){var d=r.getTokenAt(a.row,a.column+1),f=(s=r.getLine(h),this.$getIndent(s)),p=f+r.getTabString();return d&&"</"===d.value?{text:"\n"+p+"\n"+f,selection:[1,p.length,1,p.length]}:{text:"\n"+p}}}}}))};r.inherits(s,i),t.XmlBehaviour=s})),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=(e("../../lib/lang"),e("../../range").Range),o=e("./fold_mode").FoldMode,a=e("../../token_iterator").TokenIterator,s=t.FoldMode=function(e,t){o.call(this),this.voidElements=e||{},this.optionalEndTags=r.mixin({},this.voidElements),t&&r.mixin(this.optionalEndTags,t)};r.inherits(s,o);var c=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function l(e,t){return e.type.lastIndexOf(t+".xml")>-1}(function(){this.getFoldWidget=function(e,t,n){var r=this._getFirstTagInLine(e,n);return r?r.closing||!r.tagName&&r.selfClosing?"markbeginend"==t?"end":"":!r.tagName||r.selfClosing||this.voidElements.hasOwnProperty(r.tagName.toLowerCase())||this._findEndTagInLine(e,n,r.tagName,r.end.column)?"":"start":""},this._getFirstTagInLine=function(e,t){for(var n=e.getTokens(t),r=new c,i=0;i<n.length;i++){var o=n[i];if(l(o,"tag-open")){if(r.end.column=r.start.column+o.value.length,r.closing=l(o,"end-tag-open"),!(o=n[++i]))return null;for(r.tagName=o.value,r.end.column+=o.value.length,i++;i<n.length;i++)if(o=n[i],r.end.column+=o.value.length,l(o,"tag-close")){r.selfClosing="/>"==o.value;break}return r}if(l(o,"tag-close"))return r.selfClosing="/>"==o.value,r;r.start.column+=o.value.length}return null},this._findEndTagInLine=function(e,t,n,r){for(var i=e.getTokens(t),o=0,a=0;a<i.length;a++){var s=i[a];if(!((o+=s.value.length)<r)&&l(s,"end-tag-open")&&(s=i[a+1])&&s.value==n)return!0}return!1},this._readTagForward=function(e){var t=e.getCurrentToken();if(!t)return null;var n=new c;do{if(l(t,"tag-open"))n.closing=l(t,"end-tag-open"),n.start.row=e.getCurrentTokenRow(),n.start.column=e.getCurrentTokenColumn();else if(l(t,"tag-name"))n.tagName=t.value;else if(l(t,"tag-close"))return n.selfClosing="/>"==t.value,n.end.row=e.getCurrentTokenRow(),n.end.column=e.getCurrentTokenColumn()+t.value.length,e.stepForward(),n}while(t=e.stepForward());return null},this._readTagBackward=function(e){var t=e.getCurrentToken();if(!t)return null;var n=new c;do{if(l(t,"tag-open"))return n.closing=l(t,"end-tag-open"),n.start.row=e.getCurrentTokenRow(),n.start.column=e.getCurrentTokenColumn(),e.stepBackward(),n;l(t,"tag-name")?n.tagName=t.value:l(t,"tag-close")&&(n.selfClosing="/>"==t.value,n.end.row=e.getCurrentTokenRow(),n.end.column=e.getCurrentTokenColumn()+t.value.length)}while(t=e.stepBackward());return null},this._pop=function(e,t){for(;e.length;){var n=e[e.length-1];if(t&&n.tagName!=t.tagName){if(this.optionalEndTags.hasOwnProperty(n.tagName)){e.pop();continue}return null}return e.pop()}},this.getFoldWidgetRange=function(e,t,n){var r=this._getFirstTagInLine(e,n);if(!r)return null;var o,s=[];if(r.closing||r.selfClosing){l=new a(e,n,r.end.column);for(var c={row:n,column:r.start.column};o=this._readTagBackward(l);){if(o.selfClosing){if(s.length)continue;return o.start.column+=o.tagName.length+2,o.end.column-=2,i.fromPoints(o.start,o.end)}if(o.closing)s.push(o);else if(this._pop(s,o),0==s.length)return o.start.column+=o.tagName.length+2,o.start.row==o.end.row&&o.start.column<o.end.column&&(o.start.column=o.end.column),i.fromPoints(o.start,c)}}else{var l=new a(e,n,r.start.column),u={row:n,column:r.start.column+r.tagName.length+2};for(r.start.row==r.end.row&&(u.column=r.end.column);o=this._readTagForward(l);){if(o.selfClosing){if(s.length)continue;return o.start.column+=o.tagName.length+2,o.end.column-=2,i.fromPoints(o.start,o.end)}if(o.closing){if(this._pop(s,o),0==s.length)return i.fromPoints(u,o.start)}else s.push(o)}}}}).call(s.prototype)})),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/lang"),o=e("./text").Mode,a=e("./xml_highlight_rules").XmlHighlightRules,s=e("./behaviour/xml").XmlBehaviour,c=e("./folding/xml").FoldMode,l=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=a,this.$behaviour=new s,this.foldingRules=new c};r.inherits(u,o),function(){this.voidElements=i.arrayToMap([]),this.blockComment={start:"\x3c!--",end:"--\x3e"},this.createWorker=function(e){var t=new l(["ace"],"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(u.prototype),t.Mode=u})),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=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|min-height|min-width|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|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",a=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|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",c=t.supportConstantColor="aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow",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",u=t.numRe="\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))",h=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",d=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",f=function(){var e=this.createKeywordMapper({"support.function":a,"support.constant":s,"support.type":o,"support.constant.color":c,"support.constant.fonts":l},"text",!0);this.$rules={start:[{token:"comment",regex:"\\/\\*",push:"comment"},{token:"paren.lparen",regex:"\\{",push:"ruleset"},{token:"string",regex:"@.*?{",push:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{token:"comment",regex:"\\/\\*",push:"comment"},{token:"paren.lparen",regex:"\\{",push:"ruleset"},{token:"string",regex:"\\}",next:"pop"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],comment:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}],ruleset:[{token:"paren.rparen",regex:"\\}",next:"pop"},{token:"comment",regex:"\\/\\*",push:"comment"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:["constant.numeric","keyword"],regex:"("+u+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"},{token:"constant.numeric",regex:u},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:h},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:d},{token:["support.function","string","support.function"],regex:"(url\\()(.*)(\\))"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}]},this.normalizeRules()};r.inherits(f,i),t.CssHighlightRules=f})),ace.define("ace/mode/css_completions",["require","exports","module"],(function(t,n,r){"use strict";var i={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}},o=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[t]){var n=t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));i.hasOwnProperty(n)||(i[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,r){if(this.completionsDefined||this.defineCompletions(),!t.getTokenAt(n.row,n.column))return[];if("ruleset"===e){var i=t.getLine(n.row).substr(0,n.column);return/:[^;]+$/.test(i)?(/([\w\-]+):[^:]*$/.test(i),this.getPropertyValueCompletions(e,t,n,r)):this.getPropertyCompletions(e,t,n,r)}return[]},this.getPropertyCompletions=function(e,t,n,r){return Object.keys(i).map((function(e){return{caption:e,snippet:e+": $0",meta:"property",score:Number.MAX_VALUE}}))},this.getPropertyValueCompletions=function(t,n,r,o){var a=n.getLine(r.row).substr(0,r.column),s=(/([\w\-]+):[^:]*$/.exec(a)||{})[1];if(!s)return[];var c=[];return s in i&&"object"===e(i[s])&&(c=Object.keys(i[s])),c.map((function(e){return{caption:e,snippet:e,meta:"property value",score:Number.MAX_VALUE}}))}}).call(o.prototype),n.CssCompletions=o})),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),o=e("../../token_iterator").TokenIterator,a=function(){this.inherit(i),this.add("colon","insertion",(function(e,t,n,r,i){if(":"===i){var a=n.getCursorPosition(),s=new o(r,a.row,a.column),c=s.getCurrentToken();if(c&&c.value.match(/\s+/)&&(c=s.stepBackward()),c&&"support.type"===c.type){var l=r.doc.getLine(a.row);if(":"===l.substring(a.column,a.column+1))return{text:"",selection:[1,1]};if(!l.substring(a.column).match(/^\s*;/))return{text:":;",selection:[1,1]}}}})),this.add("colon","deletion",(function(e,t,n,r,i){var a=r.doc.getTextRange(i);if(!i.isMultiLine()&&":"===a){var s=n.getCursorPosition(),c=new o(r,s.row,s.column),l=c.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=c.stepBackward()),l&&"support.type"===l.type&&";"===r.doc.getLine(i.start.row).substring(i.end.column,i.end.column+1))return i.end.column++,i}})),this.add("semicolon","insertion",(function(e,t,n,r,i){if(";"===i){var o=n.getCursorPosition();if(";"===r.doc.getLine(o.row).substring(o.column,o.column+1))return{text:"",selection:[1,1]}}}))};r.inherits(a,i),t.CssBehaviour=a})),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./css_highlight_rules").CssHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("../worker/worker_client").WorkerClient,c=e("./css_completions").CssCompletions,l=e("./behaviour/css").CssBehaviour,u=e("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=o,this.$outdent=new a,this.$behaviour=new l,this.$completer=new c,this.foldingRules=new u};r.inherits(h,i),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e).tokens;return i.length&&"comment"==i[i.length-1].type||t.match(/^.*\{\s*$/)&&(r+=n),r},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,r){return this.$completer.getCompletions(e,t,n,r)},this.createWorker=function(e){var t=new s(["ace"],"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"}.call(h.prototype),t.Mode=h})),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/lang"),o=e("./css_highlight_rules").CssHighlightRules,a=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./xml_highlight_rules").XmlHighlightRules,c=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 e(){s.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(e,t){var n=c[t];return["meta.tag.punctuation."+("<"==e?"":"end-")+"tag-open.xml","meta.tag"+(n?"."+n:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(o,"css-","style"),this.embedTagRules(new a({noJSX:!0}).getRules(),"js-","script"),this.constructor===e&&this.normalizeRules()};r.inherits(l,s),t.HtmlHighlightRules=l})),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,o=t.FoldMode=function(e,t){this.defaultMode=e,this.subModes=t};r.inherits(o,i),function(){this.$getMode=function(e){for(var t in"string"!=typeof e&&(e=e[0]),this.subModes)if(0===e.indexOf(t))return this.subModes[t];return null},this.$tryMode=function(e,t,n,r){var i=this.$getMode(e);return i?i.getFoldWidget(t,n,r):""},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 r=this.$getMode(e.getState(n-1));return r&&r.getFoldWidget(e,t,n)||(r=this.$getMode(e.getState(n))),r&&r.getFoldWidget(e,t,n)||(r=this.defaultMode),r.getFoldWidgetRange(e,t,n)}}.call(o.prototype)})),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("./mixed").FoldMode,o=e("./xml").FoldMode,a=e("./cstyle").FoldMode,s=t.FoldMode=function(e,t){i.call(this,new o(e,t),{"js-":new a,"css-":new a})};r.inherits(s,i)})),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],(function(t,n,r){"use strict";var i=t("../token_iterator").TokenIterator,o=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"].concat(["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"]),a={html:{manifest:1},head:{},title:{},base:{href:1,target: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},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},noscript:{href: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},section:{},nav:{},article:{pubdate:1},aside:{},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},header:{},footer:{},address:{},main:{},p:{},hr:{},pre:{},blockquote:{cite:1},ol:{start:1,reversed:1},ul:{},li:{value:1},dl:{},dt:{},dd:{},figure:{},figcaption:{},div:{},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},em:{},strong:{},small:{},s:{},cite:{},q:{cite:1},dfn:{},abbr:{},data:{},time:{datetime:1},code:{},var:{},samp:{},kbd:{},sub:{},sup:{},i:{},b:{},u:{},mark:{},ruby:{},rt:{},rp:{},bdi:{},bdo:{},span:{},br:{},wbr:{},ins:{cite:1,datetime:1},del:{cite:1,datetime:1},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},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}},embed:{src:1,height:1,width:1,type:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},param:{name:1,value:1},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}},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},source:{src:1,type:1,media:1},track:{kind:1,src:1,srclang:1,label:1,default:1},canvas:{width:1,height:1},map:{name:1},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},svg:{},math:{},table:{summary:1},caption:{},colgroup:{span:1},col:{span:1},tbody:{},thead:{},tfoot:{},tr:{},td:{headers:1,rowspan:1,colspan:1},th:{headers:1,rowspan:1,colspan:1,scope:1},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}},fieldset:{disabled:1,form:1,name:1},legend:{},label:{form:1,for: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},pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},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}},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},datalist:{},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value: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}},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},output:{for:1,form:1,name:1},progress:{value:1,max:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},details:{open:1},summary:{},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},menu:{type:1,label:1},dialog:{open:1}},s=Object.keys(a);function c(e,t){return e.type.lastIndexOf(t+".xml")>-1}function l(e,t){for(var n=new i(e,t.row,t.column),r=n.getCurrentToken();r&&!c(r,"tag-name");)r=n.stepBackward();if(r)return r.value}var u=function(){};(function(){this.getCompletions=function(e,t,n,r){var i=t.getTokenAt(n.row,n.column);if(!i)return[];if(c(i,"tag-name")||c(i,"tag-open")||c(i,"end-tag-open"))return this.getTagCompletions(e,t,n,r);if(c(i,"tag-whitespace")||c(i,"attribute-name"))return this.getAttributeCompletions(e,t,n,r);if(c(i,"attribute-value"))return this.getAttributeValueCompletions(e,t,n,r);var o=t.getLine(n.row).substr(0,n.column);return/&[A-z]*$/i.test(o)?this.getHTMLEntityCompletions(e,t,n,r):[]},this.getTagCompletions=function(e,t,n,r){return s.map((function(e){return{value:e,meta:"tag",score:Number.MAX_VALUE}}))},this.getAttributeCompletions=function(e,t,n,r){var i=l(t,n);if(!i)return[];var s=o;return i in a&&(s=s.concat(Object.keys(a[i]))),s.map((function(e){return{caption:e,snippet:e+'="$0"',meta:"attribute",score:Number.MAX_VALUE}}))},this.getAttributeValueCompletions=function(t,n,r,o){var s=l(n,r),u=function(e,t){for(var n=new i(e,t.row,t.column),r=n.getCurrentToken();r&&!c(r,"attribute-name");)r=n.stepBackward();if(r)return r.value}(n,r);if(!s)return[];var h=[];return s in a&&u in a[s]&&"object"===e(a[s][u])&&(h=Object.keys(a[s][u])),h.map((function(e){return{caption:e,snippet:e,meta:"attribute value",score:Number.MAX_VALUE}}))},this.getHTMLEntityCompletions=function(e,t,n,r){return["&Aacute;","&aacute;","&Acirc;","&acirc;","&acute;","&AElig;","&aelig;","&Agrave;","&agrave;","&alefsym;","&Alpha;","&alpha;","&amp;","&and;","&ang;","&Aring;","&aring;","&asymp;","&Atilde;","&atilde;","&Auml;","&auml;","&bdquo;","&Beta;","&beta;","&brvbar;","&bull;","&cap;","&Ccedil;","&ccedil;","&cedil;","&cent;","&Chi;","&chi;","&circ;","&clubs;","&cong;","&copy;","&crarr;","&cup;","&curren;","&Dagger;","&dagger;","&dArr;","&darr;","&deg;","&Delta;","&delta;","&diams;","&divide;","&Eacute;","&eacute;","&Ecirc;","&ecirc;","&Egrave;","&egrave;","&empty;","&emsp;","&ensp;","&Epsilon;","&epsilon;","&equiv;","&Eta;","&eta;","&ETH;","&eth;","&Euml;","&euml;","&euro;","&exist;","&fnof;","&forall;","&frac12;","&frac14;","&frac34;","&frasl;","&Gamma;","&gamma;","&ge;","&gt;","&hArr;","&harr;","&hearts;","&hellip;","&Iacute;","&iacute;","&Icirc;","&icirc;","&iexcl;","&Igrave;","&igrave;","&image;","&infin;","&int;","&Iota;","&iota;","&iquest;","&isin;","&Iuml;","&iuml;","&Kappa;","&kappa;","&Lambda;","&lambda;","&lang;","&laquo;","&lArr;","&larr;","&lceil;","&ldquo;","&le;","&lfloor;","&lowast;","&loz;","&lrm;","&lsaquo;","&lsquo;","&lt;","&macr;","&mdash;","&micro;","&middot;","&minus;","&Mu;","&mu;","&nabla;","&nbsp;","&ndash;","&ne;","&ni;","&not;","&notin;","&nsub;","&Ntilde;","&ntilde;","&Nu;","&nu;","&Oacute;","&oacute;","&Ocirc;","&ocirc;","&OElig;","&oelig;","&Ograve;","&ograve;","&oline;","&Omega;","&omega;","&Omicron;","&omicron;","&oplus;","&or;","&ordf;","&ordm;","&Oslash;","&oslash;","&Otilde;","&otilde;","&otimes;","&Ouml;","&ouml;","&para;","&part;","&permil;","&perp;","&Phi;","&phi;","&Pi;","&pi;","&piv;","&plusmn;","&pound;","&Prime;","&prime;","&prod;","&prop;","&Psi;","&psi;","&quot;","&radic;","&rang;","&raquo;","&rArr;","&rarr;","&rceil;","&rdquo;","&real;","&reg;","&rfloor;","&Rho;","&rho;","&rlm;","&rsaquo;","&rsquo;","&sbquo;","&Scaron;","&scaron;","&sdot;","&sect;","&shy;","&Sigma;","&sigma;","&sigmaf;","&sim;","&spades;","&sub;","&sube;","&sum;","&sup;","&sup1;","&sup2;","&sup3;","&supe;","&szlig;","&Tau;","&tau;","&there4;","&Theta;","&theta;","&thetasym;","&thinsp;","&THORN;","&thorn;","&tilde;","&times;","&trade;","&Uacute;","&uacute;","&uArr;","&uarr;","&Ucirc;","&ucirc;","&Ugrave;","&ugrave;","&uml;","&upsih;","&Upsilon;","&upsilon;","&Uuml;","&uuml;","&weierp;","&Xi;","&xi;","&Yacute;","&yacute;","&yen;","&Yuml;","&yuml;","&Zeta;","&zeta;","&zwj;","&zwnj;"].map((function(e){return{caption:e,snippet:e.substr(1),meta:"html entity",score:Number.MAX_VALUE}}))}}).call(u.prototype),n.HtmlCompletions=u})),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/lang"),o=e("./text").Mode,a=e("./javascript").Mode,s=e("./css").Mode,c=e("./html_highlight_rules").HtmlHighlightRules,l=e("./behaviour/xml").XmlBehaviour,u=e("./folding/html").FoldMode,h=e("./html_completions").HtmlCompletions,d=e("../worker/worker_client").WorkerClient,f=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],p=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],g=function(e){this.fragmentContext=e&&e.fragmentContext,this.HighlightRules=c,this.$behaviour=new l,this.$completer=new h,this.createModeDelegates({"js-":a,"css-":s}),this.foldingRules=new u(this.voidElements,i.arrayToMap(p))};r.inherits(g,o),function(){this.blockComment={start:"\x3c!--",end:"--\x3e"},this.voidElements=i.arrayToMap(f),this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.getCompletions=function(e,t,n,r){return this.$completer.getCompletions(e,t,n,r)},this.createWorker=function(e){if(this.constructor==g){var t=new d(["ace"],"ace/mode/html_worker","Worker");return t.attachToDocument(e.getDocument()),this.fragmentContext&&t.call("setOptions",[{context:this.fragmentContext}]),t.on("error",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t}},this.$id="ace/mode/html"}.call(g.prototype),t.Mode=g})),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules","ace/mode/html_highlight_rules","ace/mode/css_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/lang"),o=e("./text_highlight_rules").TextHighlightRules,a=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./xml_highlight_rules").XmlHighlightRules,c=e("./html_highlight_rules").HtmlHighlightRules,l=e("./css_highlight_rules").CssHighlightRules,u=function(e){return"(?:[^"+i.escapeRegExp(e)+"\\\\]|\\\\.)*"};function h(e,t){return{token:"support.function",regex:"^\\s*```"+e+"\\s*$",push:t+"start"}}var d=function(){c.call(this),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*[^ #]|\s+#.)/,next:"header"},h("(?:javascript|js)","jscode-"),h("xml","xmlcode-"),h("html","htmlcode-"),h("css","csscode-"),{token:"support.function",regex:"^\\s*```\\s*\\S*(?:{.*?\\})?\\s*$",next:"githubblock"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,2}(?:(?: ?\\* ?){3,}|(?: ?\\- ?){3,}|(?: ?\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+u("]")+")(\\]s*\\[)("+u("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\[)("+u("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+u('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:"(<)((?:https?|ftp|dict):[^'\">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)"}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},{token:"support.function",regex:"^\\s*```\\s*[a-zA-Z]*(?:{.*?\\})?\\s*$",next:"githubblock"},{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:[{token:"support.function",regex:"^\\s*```",next:"start"},{token:"support.function",regex:".+"}]}),this.embedRules(a,"jscode-",[{token:"support.function",regex:"^\\s*```",next:"pop"}]),this.embedRules(c,"htmlcode-",[{token:"support.function",regex:"^\\s*```",next:"pop"}]),this.embedRules(l,"csscode-",[{token:"support.function",regex:"^\\s*```",next:"pop"}]),this.embedRules(s,"xmlcode-",[{token:"support.function",regex:"^\\s*```",next:"pop"}]),this.normalizeRules()};r.inherits(d,o),t.MarkdownHighlightRules=d})),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,o=e("../../range").Range,a=t.FoldMode=function(){};r.inherits(a,i),function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);return this.foldingStartMarker.test(r)?"`"==r[0]&&"start"==e.bgTokenizer.getState(n)?"end":"start":""},this.getFoldWidgetRange=function(e,t,n){var r=e.getLine(n),i=r.length,a=e.getLength(),s=n,c=n;if(r.match(this.foldingStartMarker)){if("`"==r[0]){if("start"!==e.bgTokenizer.getState(n)){for(;++n<a&&!("`"==(r=e.getLine(n))[0]&"```"==r.substring(0,3)););return new o(s,i,n,0)}for(;n-- >0&&!("`"==(r=e.getLine(n))[0]&"```"==r.substring(0,3)););return new o(n,r.length,s,0)}var l,u="markup.heading";if(f(n)){for(var h=p();++n<a&&!(f(n)&&p()>=h););if((c=n-(l&&-1!=["=","-"].indexOf(l.value[0])?2:1))>s)for(;c>s&&/^\s*$/.test(e.getLine(c));)c--;if(c>s){var d=e.getLine(c).length;return new o(s,i,c,d)}}}function f(t){return(l=e.getTokens(t)[0])&&0===l.type.lastIndexOf(u,0)}function p(){var e=l.value[0];return"="==e?6:"-"==e?5:7-l.value.search(/[^#]/)}}}.call(a.prototype)})),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript","ace/mode/xml","ace/mode/html","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./javascript").Mode,a=e("./xml").Mode,s=e("./html").Mode,c=e("./markdown_highlight_rules").MarkdownHighlightRules,l=e("./folding/markdown").FoldMode,u=function(){this.HighlightRules=c,this.createModeDelegates({"js-":o,"xml-":a,"html-":s}),this.foldingRules=new l};r.inherits(u,i),function(){this.type="text",this.blockComment={start:"\x3c!--",end:"--\x3e"},this.getNextLineIndent=function(e,t,n){if("listblock"==e){var r=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(t);if(!r)return"";var i=r[2];return i||(i=parseInt(r[3],10)+1+"."),r[1]+i+r[4]}return this.$getIndent(t)},this.$id="ace/mode/markdown"}.call(u.prototype),t.Mode=u}))},2092:()=>{ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function e(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},e.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};r.inherits(o,i),o.getTagRule=function(e){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.DocCommentHighlightRules=o})),ace.define("ace/mode/mysql_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){var r=e("../lib/oop"),i=(e("../lib/lang"),e("./doc_comment_highlight_rules").DocCommentHighlightRules),o=e("./text_highlight_rules").TextHighlightRules,a=function(){var e=this.createKeywordMapper({"support.function":"by|bool|boolean|bit|blob|decimal|double|enum|float|long|longblob|longtext|medium|mediumblob|mediumint|mediumtext|time|timestamp|tinyblob|tinyint|tinytext|text|bigint|int|int1|int2|int3|int4|int8|integer|float|float4|float8|double|char|varbinary|varchar|varcharacter|precision|date|datetime|year|unsigned|signed|numeric|ucase|lcase|mid|len|round|rank|now|format|coalesce|ifnull|isnull|nvl",keyword:"alter|and|as|asc|between|count|create|delete|desc|distinct|drop|from|having|in|insert|into|is|join|like|not|on|or|order|select|set|table|union|update|values|where|accessible|action|add|after|algorithm|all|analyze|asensitive|at|authors|auto_increment|autocommit|avg|avg_row_length|before|binary|binlog|both|btree|cache|call|cascade|cascaded|case|catalog_name|chain|change|changed|character|check|checkpoint|checksum|class_origin|client_statistics|close|coalesce|code|collate|collation|collations|column|columns|comment|commit|committed|completion|concurrent|condition|connection|consistent|constraint|contains|continue|contributors|convert|cross|current_date|current_time|current_timestamp|current_user|cursor|data|database|databases|day_hour|day_microsecond|day_minute|day_second|deallocate|dec|declare|default|delay_key_write|delayed|delimiter|des_key_file|describe|deterministic|dev_pop|dev_samp|deviance|directory|disable|discard|distinctrow|div|dual|dumpfile|each|elseif|enable|enclosed|end|ends|engine|engines|enum|errors|escape|escaped|even|event|events|every|execute|exists|exit|explain|extended|fast|fetch|field|fields|first|flush|for|force|foreign|found_rows|full|fulltext|function|general|global|grant|grants|group|groupby_concat|handler|hash|help|high_priority|hosts|hour_microsecond|hour_minute|hour_second|if|ignore|ignore_server_ids|import|index|index_statistics|infile|inner|innodb|inout|insensitive|insert_method|install|interval|invoker|isolation|iterate|key|keys|kill|language|last|leading|leave|left|level|limit|linear|lines|list|load|local|localtime|localtimestamp|lock|logs|low_priority|master|master_heartbeat_period|master_ssl_verify_server_cert|masters|match|max|max_rows|maxvalue|message_text|middleint|migrate|min|min_rows|minute_microsecond|minute_second|mod|mode|modifies|modify|mutex|mysql_errno|natural|next|no|no_write_to_binlog|offline|offset|one|online|open|optimize|option|optionally|out|outer|outfile|pack_keys|parser|partition|partitions|password|phase|plugin|plugins|prepare|preserve|prev|primary|privileges|procedure|processlist|profile|profiles|purge|query|quick|range|read|read_write|reads|real|rebuild|recover|references|regexp|relaylog|release|remove|rename|reorganize|repair|repeatable|replace|require|resignal|restrict|resume|return|returns|revoke|right|rlike|rollback|rollup|row|row_format|rtree|savepoint|schedule|schema|schema_name|schemas|second_microsecond|security|sensitive|separator|serializable|server|session|share|show|signal|slave|slow|smallint|snapshot|soname|spatial|specific|sql|sql_big_result|sql_buffer_result|sql_cache|sql_calc_found_rows|sql_no_cache|sql_small_result|sqlexception|sqlstate|sqlwarning|ssl|start|starting|starts|status|std|stddev|stddev_pop|stddev_samp|storage|straight_join|subclass_origin|sum|suspend|table_name|table_statistics|tables|tablespace|temporary|terminated|to|trailing|transaction|trigger|triggers|truncate|uncommitted|undo|uninstall|unique|unlock|upgrade|usage|use|use_frm|user|user_resources|user_statistics|using|utc_date|utc_time|utc_timestamp|value|variables|varying|view|views|warnings|when|while|with|work|write|xa|xor|year_month|zerofill|begin|do|then|else|loop|repeat",constant:"false|true|null|unknown|date|time|timestamp|ODBCdotTable|zerolessFloat","variable.language":"charset|clear|connect|edit|ego|exit|go|help|nopager|notee|nowarning|pager|print|prompt|quit|rehash|source|status|system|tee"},"identifier",!0);function t(e){var t=e.start;return{token:"string.start",regex:t,next:[{token:"constant.language.escape",regex:e.escape},{token:"string.end",next:"start",regex:t},{defaultToken:"string"}]}}this.$rules={start:[{token:"comment",regex:"(?:-- |#).*$"},t({start:'"',escape:/\\[0'"bnrtZ\\%_]?/}),t({start:"'",escape:/\\[0'"bnrtZ\\%_]?/}),i.getStartRule("doc-start"),{token:"comment",regex:/\/\*/,next:"comment"},{token:"constant.numeric",regex:/0[xX][0-9a-fA-F]+|[xX]'[0-9a-fA-F]+'|0[bB][01]+|[bB]'[01]+'/},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"constant.class",regex:"@@?[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"constant.buildin",regex:"`[^`]*`"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}],comment:[{token:"comment",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]},this.embedRules(i,"doc-",[i.getEndRule("start")]),this.normalizeRules()};r.inherits(a,o),t.MysqlHighlightRules=a})),ace.define("ace/mode/mysql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/mysql_highlight_rules","ace/range"],(function(e,t,n){var r=e("../lib/oop"),i=e("../mode/text").Mode,o=e("./mysql_highlight_rules").MysqlHighlightRules,a=(e("../range").Range,function(){this.HighlightRules=o});r.inherits(a,i),function(){this.lineCommentStart=["--","#"],this.blockComment={start:"/*",end:"*/"},this.$id="ace/mode/mysql"}.call(a.prototype),t.Mode=a}))},262:()=>{ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function e(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},e.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};r.inherits(o,i),o.getTagRule=function(e){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.DocCommentHighlightRules=o})),ace.define("ace/mode/perl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({keyword:"base|constant|continue|else|elsif|for|foreach|format|goto|if|last|local|my|next|no|package|parent|redo|require|scalar|sub|unless|until|while|use|vars","constant.language":"ARGV|ENV|INC|SIG","support.function":"getprotobynumber|getprotobyname|getservbyname|gethostbyaddr|gethostbyname|getservbyport|getnetbyaddr|getnetbyname|getsockname|getpeername|setpriority|getprotoent|setprotoent|getpriority|endprotoent|getservent|setservent|endservent|sethostent|socketpair|getsockopt|gethostent|endhostent|setsockopt|setnetent|quotemeta|localtime|prototype|getnetent|endnetent|rewinddir|wantarray|getpwuid|closedir|getlogin|readlink|endgrent|getgrgid|getgrnam|shmwrite|shutdown|readline|endpwent|setgrent|readpipe|formline|truncate|dbmclose|syswrite|setpwent|getpwnam|getgrent|getpwent|ucfirst|sysread|setpgrp|shmread|sysseek|sysopen|telldir|defined|opendir|connect|lcfirst|getppid|binmode|syscall|sprintf|getpgrp|readdir|seekdir|waitpid|reverse|unshift|symlink|dbmopen|semget|msgrcv|rename|listen|chroot|msgsnd|shmctl|accept|unpack|exists|fileno|shmget|system|unlink|printf|gmtime|msgctl|semctl|values|rindex|substr|splice|length|msgget|select|socket|return|caller|delete|alarm|ioctl|index|undef|lstat|times|srand|chown|fcntl|close|write|umask|rmdir|study|sleep|chomp|untie|print|utime|mkdir|atan2|split|crypt|flock|chmod|BEGIN|bless|chdir|semop|shift|reset|link|stat|chop|grep|fork|dump|join|open|tell|pipe|exit|glob|warn|each|bind|sort|pack|eval|push|keys|getc|kill|seek|sqrt|send|wait|rand|tied|read|time|exec|recv|eof|chr|int|ord|exp|pos|pop|sin|log|abs|oct|hex|tie|cos|vec|END|ref|map|die|uc|lc|do"},"identifier");this.$rules={start:[{token:"comment.doc",regex:"^=(?:begin|item)\\b",next:"block_comment"},{token:"string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:'["].*\\\\$',next:"qqstring"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"string",regex:"['].*\\\\$",next:"qstring"},{token:"constant.numeric",regex:"0x[0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"%#|\\$#|\\.\\.\\.|\\|\\|=|>>=|<<=|<=>|&&=|=>|!~|\\^=|&=|\\|=|\\.=|x=|%=|\\/=|\\*=|\\-=|\\+=|=~|\\*\\*|\\-\\-|\\.\\.|\\|\\||&&|\\+\\+|\\->|!=|==|>=|<=|>>|<<|,|=|\\?\\:|\\^|\\||x|%|\\/|\\*|<|&|\\\\|~|!|>|\\.|\\-|\\+|\\-C|\\-b|\\-S|\\-u|\\-t|\\-p|\\-l|\\-d|\\-f|\\-g|\\-s|\\-z|\\-k|\\-e|\\-O|\\-T|\\-B|\\-M|\\-A|\\-X|\\-W|\\-c|\\-R|\\-o|\\-x|\\-w|\\-r|\\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)"},{token:"comment",regex:"#.*$"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],qqstring:[{token:"string",regex:'(?:(?:\\\\.)|(?:[^"\\\\]))*?"',next:"start"},{token:"string",regex:".+"}],qstring:[{token:"string",regex:"(?:(?:\\\\.)|(?:[^'\\\\]))*?'",next:"start"},{token:"string",regex:".+"}],block_comment:[{token:"comment.doc",regex:"^=cut\\b",next:"start"},{defaultToken:"comment.doc"}]}};r.inherits(o,i),t.PerlHighlightRules=o})),ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":"abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|set|apply|delattr|help|next|setattr|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern","constant.language":"True|False|None|NotImplemented|Ellipsis|__debug__",keyword:"and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield"},"identifier"),t="(?:r|u|ur|R|U|UR|Ur|uR)?",n="(?:(?:(?:[1-9]\\d*)|(?:0))|(?:0[oO]?[0-7]+)|(?:0[xX][\\dA-Fa-f]+)|(?:0[bB][01]+))",r="(?:(?:(?:(?:(?:(?:\\d+)?(?:\\.\\d+))|(?:(?:\\d+)\\.))|(?:\\d+))(?:[eE][+-]?\\d+))|(?:(?:(?:\\d+)?(?:\\.\\d+))|(?:(?:\\d+)\\.)))",i="\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'\"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})";this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:t+'"{3}',next:"qqstring3"},{token:"string",regex:t+'"(?=.)',next:"qqstring"},{token:"string",regex:t+"'{3}",next:"qstring3"},{token:"string",regex:t+"'(?=.)",next:"qstring"},{token:"constant.numeric",regex:"(?:"+r+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:r},{token:"constant.numeric",regex:n+"[lL]\\b"},{token:"constant.numeric",regex:n+"\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:"text",regex:"\\s+"}],qqstring3:[{token:"constant.language.escape",regex:i},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:i},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:i},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:i},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}]}};r.inherits(o,i),t.PythonHighlightRules=o})),ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"invalid.illegal",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"invalid.illegal",regex:"\\/\\/.*$"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'[^"\\\\]+'},{token:"string",regex:'"',next:"start"},{token:"string",regex:"",next:"start"}]}};r.inherits(o,i),t.JsonHighlightRules=o})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./doc_comment_highlight_rules").DocCommentHighlightRules,o=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*\\b",s=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|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|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|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","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[i.getStartRule("doc-start"),l("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/[+-]?\d[\d_]*(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+a+")(\\.)(prototype)(\\.)("+a+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"(?:case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void)\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?\:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+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|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|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:[i.getStartRule("doc-start"),l("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){return this.next="{"==e?this.nextState:"","{"==e&&n.length?(n.unshift("start",t),"paren"):"}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx"))?"paren.quasi.end":"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:n},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),e&&e.noJSX||c.call(this)),this.embedRules(i,"doc-",[i.getEndRule("no_regex")]),this.normalizeRules()};function c(){var e=a.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var r="/"==e.charAt(1)?2:1;return 1==r?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==r&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==r?"":"end-")+"tag-open.xml",value:e.slice(0,r)},{type:"meta.tag.tag-name.xml",value:e.substr(r)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,l("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},n,{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[n,{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]}],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function l(e){return[{token:"comment",regex:/\/\*/,next:[i.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[i.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.inherits(s,o),t.JavaScriptHighlightRules=s})),ace.define("ace/mode/pgsql_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules","ace/mode/perl_highlight_rules","ace/mode/python_highlight_rules","ace/mode/json_highlight_rules","ace/mode/javascript_highlight_rules"],(function(e,t,n){var r=e("../lib/oop"),i=(e("../lib/lang"),e("./doc_comment_highlight_rules").DocCommentHighlightRules),o=e("./text_highlight_rules").TextHighlightRules,a=e("./perl_highlight_rules").PerlHighlightRules,s=e("./python_highlight_rules").PythonHighlightRules,c=e("./json_highlight_rules").JsonHighlightRules,l=e("./javascript_highlight_rules").JavaScriptHighlightRules,u=function(){var e=[{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"variable.language",regex:'".*?"'},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:this.createKeywordMapper({"support.function":"RI_FKey_cascade_del|RI_FKey_cascade_upd|RI_FKey_check_ins|RI_FKey_check_upd|RI_FKey_noaction_del|RI_FKey_noaction_upd|RI_FKey_restrict_del|RI_FKey_restrict_upd|RI_FKey_setdefault_del|RI_FKey_setdefault_upd|RI_FKey_setnull_del|RI_FKey_setnull_upd|abbrev|abs|abstime|abstimeeq|abstimege|abstimegt|abstimein|abstimele|abstimelt|abstimene|abstimeout|abstimerecv|abstimesend|aclcontains|acldefault|aclexplode|aclinsert|aclitemeq|aclitemin|aclitemout|aclremove|acos|age|any_in|any_out|anyarray_in|anyarray_out|anyarray_recv|anyarray_send|anyelement_in|anyelement_out|anyenum_in|anyenum_out|anynonarray_in|anynonarray_out|anyrange_in|anyrange_out|anytextcat|area|areajoinsel|areasel|array_agg|array_agg_finalfn|array_agg_transfn|array_append|array_cat|array_dims|array_eq|array_fill|array_ge|array_gt|array_in|array_larger|array_le|array_length|array_lower|array_lt|array_ndims|array_ne|array_out|array_prepend|array_recv|array_remove|array_replace|array_send|array_smaller|array_to_json|array_to_string|array_typanalyze|array_upper|arraycontained|arraycontains|arraycontjoinsel|arraycontsel|arrayoverlap|ascii|ascii_to_mic|ascii_to_utf8|asin|atan|atan2|avg|big5_to_euc_tw|big5_to_mic|big5_to_utf8|bit_and|bit_in|bit_length|bit_or|bit_out|bit_recv|bit_send|bitand|bitcat|bitcmp|biteq|bitge|bitgt|bitle|bitlt|bitne|bitnot|bitor|bitshiftleft|bitshiftright|bittypmodin|bittypmodout|bitxor|bool|bool_and|bool_or|booland_statefunc|booleq|boolge|boolgt|boolin|boolle|boollt|boolne|boolor_statefunc|boolout|boolrecv|boolsend|box|box_above|box_above_eq|box_add|box_below|box_below_eq|box_center|box_contain|box_contain_pt|box_contained|box_distance|box_div|box_eq|box_ge|box_gt|box_in|box_intersect|box_le|box_left|box_lt|box_mul|box_out|box_overabove|box_overbelow|box_overlap|box_overleft|box_overright|box_recv|box_right|box_same|box_send|box_sub|bpchar_larger|bpchar_pattern_ge|bpchar_pattern_gt|bpchar_pattern_le|bpchar_pattern_lt|bpchar_smaller|bpcharcmp|bpchareq|bpcharge|bpchargt|bpchariclike|bpcharicnlike|bpcharicregexeq|bpcharicregexne|bpcharin|bpcharle|bpcharlike|bpcharlt|bpcharne|bpcharnlike|bpcharout|bpcharrecv|bpcharregexeq|bpcharregexne|bpcharsend|bpchartypmodin|bpchartypmodout|broadcast|btabstimecmp|btarraycmp|btbeginscan|btboolcmp|btbpchar_pattern_cmp|btbuild|btbuildempty|btbulkdelete|btcanreturn|btcharcmp|btcostestimate|btendscan|btfloat48cmp|btfloat4cmp|btfloat4sortsupport|btfloat84cmp|btfloat8cmp|btfloat8sortsupport|btgetbitmap|btgettuple|btinsert|btint24cmp|btint28cmp|btint2cmp|btint2sortsupport|btint42cmp|btint48cmp|btint4cmp|btint4sortsupport|btint82cmp|btint84cmp|btint8cmp|btint8sortsupport|btmarkpos|btnamecmp|btnamesortsupport|btoidcmp|btoidsortsupport|btoidvectorcmp|btoptions|btrecordcmp|btreltimecmp|btrescan|btrestrpos|btrim|bttext_pattern_cmp|bttextcmp|bttidcmp|bttintervalcmp|btvacuumcleanup|bytea_string_agg_finalfn|bytea_string_agg_transfn|byteacat|byteacmp|byteaeq|byteage|byteagt|byteain|byteale|bytealike|bytealt|byteane|byteanlike|byteaout|bytearecv|byteasend|cash_cmp|cash_div_cash|cash_div_flt4|cash_div_flt8|cash_div_int2|cash_div_int4|cash_eq|cash_ge|cash_gt|cash_in|cash_le|cash_lt|cash_mi|cash_mul_flt4|cash_mul_flt8|cash_mul_int2|cash_mul_int4|cash_ne|cash_out|cash_pl|cash_recv|cash_send|cash_words|cashlarger|cashsmaller|cbrt|ceil|ceiling|center|char|char_length|character_length|chareq|charge|chargt|charin|charle|charlt|charne|charout|charrecv|charsend|chr|cideq|cidin|cidout|cidr|cidr_in|cidr_out|cidr_recv|cidr_send|cidrecv|cidsend|circle|circle_above|circle_add_pt|circle_below|circle_center|circle_contain|circle_contain_pt|circle_contained|circle_distance|circle_div_pt|circle_eq|circle_ge|circle_gt|circle_in|circle_le|circle_left|circle_lt|circle_mul_pt|circle_ne|circle_out|circle_overabove|circle_overbelow|circle_overlap|circle_overleft|circle_overright|circle_recv|circle_right|circle_same|circle_send|circle_sub_pt|clock_timestamp|close_lb|close_ls|close_lseg|close_pb|close_pl|close_ps|close_sb|close_sl|col_description|concat|concat_ws|contjoinsel|contsel|convert|convert_from|convert_to|corr|cos|cot|count|covar_pop|covar_samp|cstring_in|cstring_out|cstring_recv|cstring_send|cume_dist|current_database|current_query|current_schema|current_schemas|current_setting|current_user|currtid|currtid2|currval|cursor_to_xml|cursor_to_xmlschema|database_to_xml|database_to_xml_and_xmlschema|database_to_xmlschema|date|date_cmp|date_cmp_timestamp|date_cmp_timestamptz|date_eq|date_eq_timestamp|date_eq_timestamptz|date_ge|date_ge_timestamp|date_ge_timestamptz|date_gt|date_gt_timestamp|date_gt_timestamptz|date_in|date_larger|date_le|date_le_timestamp|date_le_timestamptz|date_lt|date_lt_timestamp|date_lt_timestamptz|date_mi|date_mi_interval|date_mii|date_ne|date_ne_timestamp|date_ne_timestamptz|date_out|date_part|date_pl_interval|date_pli|date_recv|date_send|date_smaller|date_sortsupport|date_trunc|daterange|daterange_canonical|daterange_subdiff|datetime_pl|datetimetz_pl|dcbrt|decode|degrees|dense_rank|dexp|diagonal|diameter|dispell_init|dispell_lexize|dist_cpoly|dist_lb|dist_pb|dist_pc|dist_pl|dist_ppath|dist_ps|dist_sb|dist_sl|div|dlog1|dlog10|domain_in|domain_recv|dpow|dround|dsimple_init|dsimple_lexize|dsnowball_init|dsnowball_lexize|dsqrt|dsynonym_init|dsynonym_lexize|dtrunc|elem_contained_by_range|encode|enum_cmp|enum_eq|enum_first|enum_ge|enum_gt|enum_in|enum_larger|enum_last|enum_le|enum_lt|enum_ne|enum_out|enum_range|enum_recv|enum_send|enum_smaller|eqjoinsel|eqsel|euc_cn_to_mic|euc_cn_to_utf8|euc_jis_2004_to_shift_jis_2004|euc_jis_2004_to_utf8|euc_jp_to_mic|euc_jp_to_sjis|euc_jp_to_utf8|euc_kr_to_mic|euc_kr_to_utf8|euc_tw_to_big5|euc_tw_to_mic|euc_tw_to_utf8|event_trigger_in|event_trigger_out|every|exp|factorial|family|fdw_handler_in|fdw_handler_out|first_value|float4|float48div|float48eq|float48ge|float48gt|float48le|float48lt|float48mi|float48mul|float48ne|float48pl|float4_accum|float4abs|float4div|float4eq|float4ge|float4gt|float4in|float4larger|float4le|float4lt|float4mi|float4mul|float4ne|float4out|float4pl|float4recv|float4send|float4smaller|float4um|float4up|float8|float84div|float84eq|float84ge|float84gt|float84le|float84lt|float84mi|float84mul|float84ne|float84pl|float8_accum|float8_avg|float8_corr|float8_covar_pop|float8_covar_samp|float8_regr_accum|float8_regr_avgx|float8_regr_avgy|float8_regr_intercept|float8_regr_r2|float8_regr_slope|float8_regr_sxx|float8_regr_sxy|float8_regr_syy|float8_stddev_pop|float8_stddev_samp|float8_var_pop|float8_var_samp|float8abs|float8div|float8eq|float8ge|float8gt|float8in|float8larger|float8le|float8lt|float8mi|float8mul|float8ne|float8out|float8pl|float8recv|float8send|float8smaller|float8um|float8up|floor|flt4_mul_cash|flt8_mul_cash|fmgr_c_validator|fmgr_internal_validator|fmgr_sql_validator|format|format_type|gb18030_to_utf8|gbk_to_utf8|generate_series|generate_subscripts|get_bit|get_byte|get_current_ts_config|getdatabaseencoding|getpgusername|gin_cmp_prefix|gin_cmp_tslexeme|gin_extract_tsquery|gin_extract_tsvector|gin_tsquery_consistent|ginarrayconsistent|ginarrayextract|ginbeginscan|ginbuild|ginbuildempty|ginbulkdelete|gincostestimate|ginendscan|gingetbitmap|gininsert|ginmarkpos|ginoptions|ginqueryarrayextract|ginrescan|ginrestrpos|ginvacuumcleanup|gist_box_compress|gist_box_consistent|gist_box_decompress|gist_box_penalty|gist_box_picksplit|gist_box_same|gist_box_union|gist_circle_compress|gist_circle_consistent|gist_point_compress|gist_point_consistent|gist_point_distance|gist_poly_compress|gist_poly_consistent|gistbeginscan|gistbuild|gistbuildempty|gistbulkdelete|gistcostestimate|gistendscan|gistgetbitmap|gistgettuple|gistinsert|gistmarkpos|gistoptions|gistrescan|gistrestrpos|gistvacuumcleanup|gtsquery_compress|gtsquery_consistent|gtsquery_decompress|gtsquery_penalty|gtsquery_picksplit|gtsquery_same|gtsquery_union|gtsvector_compress|gtsvector_consistent|gtsvector_decompress|gtsvector_penalty|gtsvector_picksplit|gtsvector_same|gtsvector_union|gtsvectorin|gtsvectorout|has_any_column_privilege|has_column_privilege|has_database_privilege|has_foreign_data_wrapper_privilege|has_function_privilege|has_language_privilege|has_schema_privilege|has_sequence_privilege|has_server_privilege|has_table_privilege|has_tablespace_privilege|has_type_privilege|hash_aclitem|hash_array|hash_numeric|hash_range|hashbeginscan|hashbpchar|hashbuild|hashbuildempty|hashbulkdelete|hashchar|hashcostestimate|hashendscan|hashenum|hashfloat4|hashfloat8|hashgetbitmap|hashgettuple|hashinet|hashinsert|hashint2|hashint2vector|hashint4|hashint8|hashmacaddr|hashmarkpos|hashname|hashoid|hashoidvector|hashoptions|hashrescan|hashrestrpos|hashtext|hashvacuumcleanup|hashvarlena|height|host|hostmask|iclikejoinsel|iclikesel|icnlikejoinsel|icnlikesel|icregexeqjoinsel|icregexeqsel|icregexnejoinsel|icregexnesel|inet_client_addr|inet_client_port|inet_in|inet_out|inet_recv|inet_send|inet_server_addr|inet_server_port|inetand|inetmi|inetmi_int8|inetnot|inetor|inetpl|initcap|int2|int24div|int24eq|int24ge|int24gt|int24le|int24lt|int24mi|int24mul|int24ne|int24pl|int28div|int28eq|int28ge|int28gt|int28le|int28lt|int28mi|int28mul|int28ne|int28pl|int2_accum|int2_avg_accum|int2_mul_cash|int2_sum|int2abs|int2and|int2div|int2eq|int2ge|int2gt|int2in|int2larger|int2le|int2lt|int2mi|int2mod|int2mul|int2ne|int2not|int2or|int2out|int2pl|int2recv|int2send|int2shl|int2shr|int2smaller|int2um|int2up|int2vectoreq|int2vectorin|int2vectorout|int2vectorrecv|int2vectorsend|int2xor|int4|int42div|int42eq|int42ge|int42gt|int42le|int42lt|int42mi|int42mul|int42ne|int42pl|int48div|int48eq|int48ge|int48gt|int48le|int48lt|int48mi|int48mul|int48ne|int48pl|int4_accum|int4_avg_accum|int4_mul_cash|int4_sum|int4abs|int4and|int4div|int4eq|int4ge|int4gt|int4in|int4inc|int4larger|int4le|int4lt|int4mi|int4mod|int4mul|int4ne|int4not|int4or|int4out|int4pl|int4range|int4range_canonical|int4range_subdiff|int4recv|int4send|int4shl|int4shr|int4smaller|int4um|int4up|int4xor|int8|int82div|int82eq|int82ge|int82gt|int82le|int82lt|int82mi|int82mul|int82ne|int82pl|int84div|int84eq|int84ge|int84gt|int84le|int84lt|int84mi|int84mul|int84ne|int84pl|int8_accum|int8_avg|int8_avg_accum|int8_sum|int8abs|int8and|int8div|int8eq|int8ge|int8gt|int8in|int8inc|int8inc_any|int8inc_float8_float8|int8larger|int8le|int8lt|int8mi|int8mod|int8mul|int8ne|int8not|int8or|int8out|int8pl|int8pl_inet|int8range|int8range_canonical|int8range_subdiff|int8recv|int8send|int8shl|int8shr|int8smaller|int8um|int8up|int8xor|integer_pl_date|inter_lb|inter_sb|inter_sl|internal_in|internal_out|interval_accum|interval_avg|interval_cmp|interval_div|interval_eq|interval_ge|interval_gt|interval_hash|interval_in|interval_larger|interval_le|interval_lt|interval_mi|interval_mul|interval_ne|interval_out|interval_pl|interval_pl_date|interval_pl_time|interval_pl_timestamp|interval_pl_timestamptz|interval_pl_timetz|interval_recv|interval_send|interval_smaller|interval_transform|interval_um|intervaltypmodin|intervaltypmodout|intinterval|isclosed|isempty|isfinite|ishorizontal|iso8859_1_to_utf8|iso8859_to_utf8|iso_to_koi8r|iso_to_mic|iso_to_win1251|iso_to_win866|isopen|isparallel|isperp|isvertical|johab_to_utf8|json_agg|json_agg_finalfn|json_agg_transfn|json_array_element|json_array_element_text|json_array_elements|json_array_length|json_each|json_each_text|json_extract_path|json_extract_path_op|json_extract_path_text|json_extract_path_text_op|json_in|json_object_field|json_object_field_text|json_object_keys|json_out|json_populate_record|json_populate_recordset|json_recv|json_send|justify_days|justify_hours|justify_interval|koi8r_to_iso|koi8r_to_mic|koi8r_to_utf8|koi8r_to_win1251|koi8r_to_win866|koi8u_to_utf8|lag|language_handler_in|language_handler_out|last_value|lastval|latin1_to_mic|latin2_to_mic|latin2_to_win1250|latin3_to_mic|latin4_to_mic|lead|left|length|like|like_escape|likejoinsel|likesel|line|line_distance|line_eq|line_horizontal|line_in|line_interpt|line_intersect|line_out|line_parallel|line_perp|line_recv|line_send|line_vertical|ln|lo_close|lo_creat|lo_create|lo_export|lo_import|lo_lseek|lo_lseek64|lo_open|lo_tell|lo_tell64|lo_truncate|lo_truncate64|lo_unlink|log|loread|lower|lower_inc|lower_inf|lowrite|lpad|lseg|lseg_center|lseg_distance|lseg_eq|lseg_ge|lseg_gt|lseg_horizontal|lseg_in|lseg_interpt|lseg_intersect|lseg_le|lseg_length|lseg_lt|lseg_ne|lseg_out|lseg_parallel|lseg_perp|lseg_recv|lseg_send|lseg_vertical|ltrim|macaddr_and|macaddr_cmp|macaddr_eq|macaddr_ge|macaddr_gt|macaddr_in|macaddr_le|macaddr_lt|macaddr_ne|macaddr_not|macaddr_or|macaddr_out|macaddr_recv|macaddr_send|makeaclitem|masklen|max|md5|mic_to_ascii|mic_to_big5|mic_to_euc_cn|mic_to_euc_jp|mic_to_euc_kr|mic_to_euc_tw|mic_to_iso|mic_to_koi8r|mic_to_latin1|mic_to_latin2|mic_to_latin3|mic_to_latin4|mic_to_sjis|mic_to_win1250|mic_to_win1251|mic_to_win866|min|mktinterval|mod|money|mul_d_interval|name|nameeq|namege|namegt|nameiclike|nameicnlike|nameicregexeq|nameicregexne|namein|namele|namelike|namelt|namene|namenlike|nameout|namerecv|nameregexeq|nameregexne|namesend|neqjoinsel|neqsel|netmask|network|network_cmp|network_eq|network_ge|network_gt|network_le|network_lt|network_ne|network_sub|network_subeq|network_sup|network_supeq|nextval|nlikejoinsel|nlikesel|notlike|now|npoints|nth_value|ntile|numeric_abs|numeric_accum|numeric_add|numeric_avg|numeric_avg_accum|numeric_cmp|numeric_div|numeric_div_trunc|numeric_eq|numeric_exp|numeric_fac|numeric_ge|numeric_gt|numeric_in|numeric_inc|numeric_larger|numeric_le|numeric_ln|numeric_log|numeric_lt|numeric_mod|numeric_mul|numeric_ne|numeric_out|numeric_power|numeric_recv|numeric_send|numeric_smaller|numeric_sqrt|numeric_stddev_pop|numeric_stddev_samp|numeric_sub|numeric_transform|numeric_uminus|numeric_uplus|numeric_var_pop|numeric_var_samp|numerictypmodin|numerictypmodout|numnode|numrange|numrange_subdiff|obj_description|octet_length|oid|oideq|oidge|oidgt|oidin|oidlarger|oidle|oidlt|oidne|oidout|oidrecv|oidsend|oidsmaller|oidvectoreq|oidvectorge|oidvectorgt|oidvectorin|oidvectorle|oidvectorlt|oidvectorne|oidvectorout|oidvectorrecv|oidvectorsend|oidvectortypes|on_pb|on_pl|on_ppath|on_ps|on_sb|on_sl|opaque_in|opaque_out|overlaps|overlay|path|path_add|path_add_pt|path_center|path_contain_pt|path_distance|path_div_pt|path_in|path_inter|path_length|path_mul_pt|path_n_eq|path_n_ge|path_n_gt|path_n_le|path_n_lt|path_npoints|path_out|path_recv|path_send|path_sub_pt|pclose|percent_rank|pg_advisory_lock|pg_advisory_lock_shared|pg_advisory_unlock|pg_advisory_unlock_all|pg_advisory_unlock_shared|pg_advisory_xact_lock|pg_advisory_xact_lock_shared|pg_available_extension_versions|pg_available_extensions|pg_backend_pid|pg_backup_start_time|pg_cancel_backend|pg_char_to_encoding|pg_client_encoding|pg_collation_for|pg_collation_is_visible|pg_column_is_updatable|pg_column_size|pg_conf_load_time|pg_conversion_is_visible|pg_create_restore_point|pg_current_xlog_insert_location|pg_current_xlog_location|pg_cursor|pg_database_size|pg_describe_object|pg_encoding_max_length|pg_encoding_to_char|pg_event_trigger_dropped_objects|pg_export_snapshot|pg_extension_config_dump|pg_extension_update_paths|pg_function_is_visible|pg_get_constraintdef|pg_get_expr|pg_get_function_arguments|pg_get_function_identity_arguments|pg_get_function_result|pg_get_functiondef|pg_get_indexdef|pg_get_keywords|pg_get_multixact_members|pg_get_ruledef|pg_get_serial_sequence|pg_get_triggerdef|pg_get_userbyid|pg_get_viewdef|pg_has_role|pg_identify_object|pg_indexes_size|pg_is_in_backup|pg_is_in_recovery|pg_is_other_temp_schema|pg_is_xlog_replay_paused|pg_last_xact_replay_timestamp|pg_last_xlog_receive_location|pg_last_xlog_replay_location|pg_listening_channels|pg_lock_status|pg_ls_dir|pg_my_temp_schema|pg_node_tree_in|pg_node_tree_out|pg_node_tree_recv|pg_node_tree_send|pg_notify|pg_opclass_is_visible|pg_operator_is_visible|pg_opfamily_is_visible|pg_options_to_table|pg_postmaster_start_time|pg_prepared_statement|pg_prepared_xact|pg_read_binary_file|pg_read_file|pg_relation_filenode|pg_relation_filepath|pg_relation_is_updatable|pg_relation_size|pg_reload_conf|pg_rotate_logfile|pg_sequence_parameters|pg_show_all_settings|pg_size_pretty|pg_sleep|pg_start_backup|pg_stat_clear_snapshot|pg_stat_file|pg_stat_get_activity|pg_stat_get_analyze_count|pg_stat_get_autoanalyze_count|pg_stat_get_autovacuum_count|pg_stat_get_backend_activity|pg_stat_get_backend_activity_start|pg_stat_get_backend_client_addr|pg_stat_get_backend_client_port|pg_stat_get_backend_dbid|pg_stat_get_backend_idset|pg_stat_get_backend_pid|pg_stat_get_backend_start|pg_stat_get_backend_userid|pg_stat_get_backend_waiting|pg_stat_get_backend_xact_start|pg_stat_get_bgwriter_buf_written_checkpoints|pg_stat_get_bgwriter_buf_written_clean|pg_stat_get_bgwriter_maxwritten_clean|pg_stat_get_bgwriter_requested_checkpoints|pg_stat_get_bgwriter_stat_reset_time|pg_stat_get_bgwriter_timed_checkpoints|pg_stat_get_blocks_fetched|pg_stat_get_blocks_hit|pg_stat_get_buf_alloc|pg_stat_get_buf_fsync_backend|pg_stat_get_buf_written_backend|pg_stat_get_checkpoint_sync_time|pg_stat_get_checkpoint_write_time|pg_stat_get_db_blk_read_time|pg_stat_get_db_blk_write_time|pg_stat_get_db_blocks_fetched|pg_stat_get_db_blocks_hit|pg_stat_get_db_conflict_all|pg_stat_get_db_conflict_bufferpin|pg_stat_get_db_conflict_lock|pg_stat_get_db_conflict_snapshot|pg_stat_get_db_conflict_startup_deadlock|pg_stat_get_db_conflict_tablespace|pg_stat_get_db_deadlocks|pg_stat_get_db_numbackends|pg_stat_get_db_stat_reset_time|pg_stat_get_db_temp_bytes|pg_stat_get_db_temp_files|pg_stat_get_db_tuples_deleted|pg_stat_get_db_tuples_fetched|pg_stat_get_db_tuples_inserted|pg_stat_get_db_tuples_returned|pg_stat_get_db_tuples_updated|pg_stat_get_db_xact_commit|pg_stat_get_db_xact_rollback|pg_stat_get_dead_tuples|pg_stat_get_function_calls|pg_stat_get_function_self_time|pg_stat_get_function_total_time|pg_stat_get_last_analyze_time|pg_stat_get_last_autoanalyze_time|pg_stat_get_last_autovacuum_time|pg_stat_get_last_vacuum_time|pg_stat_get_live_tuples|pg_stat_get_numscans|pg_stat_get_tuples_deleted|pg_stat_get_tuples_fetched|pg_stat_get_tuples_hot_updated|pg_stat_get_tuples_inserted|pg_stat_get_tuples_returned|pg_stat_get_tuples_updated|pg_stat_get_vacuum_count|pg_stat_get_wal_senders|pg_stat_get_xact_blocks_fetched|pg_stat_get_xact_blocks_hit|pg_stat_get_xact_function_calls|pg_stat_get_xact_function_self_time|pg_stat_get_xact_function_total_time|pg_stat_get_xact_numscans|pg_stat_get_xact_tuples_deleted|pg_stat_get_xact_tuples_fetched|pg_stat_get_xact_tuples_hot_updated|pg_stat_get_xact_tuples_inserted|pg_stat_get_xact_tuples_returned|pg_stat_get_xact_tuples_updated|pg_stat_reset|pg_stat_reset_shared|pg_stat_reset_single_function_counters|pg_stat_reset_single_table_counters|pg_stop_backup|pg_switch_xlog|pg_table_is_visible|pg_table_size|pg_tablespace_databases|pg_tablespace_location|pg_tablespace_size|pg_terminate_backend|pg_timezone_abbrevs|pg_timezone_names|pg_total_relation_size|pg_trigger_depth|pg_try_advisory_lock|pg_try_advisory_lock_shared|pg_try_advisory_xact_lock|pg_try_advisory_xact_lock_shared|pg_ts_config_is_visible|pg_ts_dict_is_visible|pg_ts_parser_is_visible|pg_ts_template_is_visible|pg_type_is_visible|pg_typeof|pg_xlog_location_diff|pg_xlog_replay_pause|pg_xlog_replay_resume|pg_xlogfile_name|pg_xlogfile_name_offset|pi|plainto_tsquery|plpgsql_call_handler|plpgsql_inline_handler|plpgsql_validator|point|point_above|point_add|point_below|point_distance|point_div|point_eq|point_horiz|point_in|point_left|point_mul|point_ne|point_out|point_recv|point_right|point_send|point_sub|point_vert|poly_above|poly_below|poly_center|poly_contain|poly_contain_pt|poly_contained|poly_distance|poly_in|poly_left|poly_npoints|poly_out|poly_overabove|poly_overbelow|poly_overlap|poly_overleft|poly_overright|poly_recv|poly_right|poly_same|poly_send|polygon|popen|position|positionjoinsel|positionsel|postgresql_fdw_validator|pow|power|prsd_end|prsd_headline|prsd_lextype|prsd_nexttoken|prsd_start|pt_contained_circle|pt_contained_poly|query_to_xml|query_to_xml_and_xmlschema|query_to_xmlschema|querytree|quote_ident|quote_literal|quote_nullable|radians|radius|random|range_adjacent|range_after|range_before|range_cmp|range_contained_by|range_contains|range_contains_elem|range_eq|range_ge|range_gist_compress|range_gist_consistent|range_gist_decompress|range_gist_penalty|range_gist_picksplit|range_gist_same|range_gist_union|range_gt|range_in|range_intersect|range_le|range_lt|range_minus|range_ne|range_out|range_overlaps|range_overleft|range_overright|range_recv|range_send|range_typanalyze|range_union|rangesel|rank|record_eq|record_ge|record_gt|record_in|record_le|record_lt|record_ne|record_out|record_recv|record_send|regclass|regclassin|regclassout|regclassrecv|regclasssend|regconfigin|regconfigout|regconfigrecv|regconfigsend|regdictionaryin|regdictionaryout|regdictionaryrecv|regdictionarysend|regexeqjoinsel|regexeqsel|regexnejoinsel|regexnesel|regexp_matches|regexp_replace|regexp_split_to_array|regexp_split_to_table|regoperatorin|regoperatorout|regoperatorrecv|regoperatorsend|regoperin|regoperout|regoperrecv|regopersend|regprocedurein|regprocedureout|regprocedurerecv|regproceduresend|regprocin|regprocout|regprocrecv|regprocsend|regr_avgx|regr_avgy|regr_count|regr_intercept|regr_r2|regr_slope|regr_sxx|regr_sxy|regr_syy|regtypein|regtypeout|regtyperecv|regtypesend|reltime|reltimeeq|reltimege|reltimegt|reltimein|reltimele|reltimelt|reltimene|reltimeout|reltimerecv|reltimesend|repeat|replace|reverse|right|round|row_number|row_to_json|rpad|rtrim|scalargtjoinsel|scalargtsel|scalarltjoinsel|scalarltsel|schema_to_xml|schema_to_xml_and_xmlschema|schema_to_xmlschema|session_user|set_bit|set_byte|set_config|set_masklen|setseed|setval|setweight|shell_in|shell_out|shift_jis_2004_to_euc_jis_2004|shift_jis_2004_to_utf8|shobj_description|sign|similar_escape|sin|sjis_to_euc_jp|sjis_to_mic|sjis_to_utf8|slope|smgreq|smgrin|smgrne|smgrout|spg_kd_choose|spg_kd_config|spg_kd_inner_consistent|spg_kd_picksplit|spg_quad_choose|spg_quad_config|spg_quad_inner_consistent|spg_quad_leaf_consistent|spg_quad_picksplit|spg_range_quad_choose|spg_range_quad_config|spg_range_quad_inner_consistent|spg_range_quad_leaf_consistent|spg_range_quad_picksplit|spg_text_choose|spg_text_config|spg_text_inner_consistent|spg_text_leaf_consistent|spg_text_picksplit|spgbeginscan|spgbuild|spgbuildempty|spgbulkdelete|spgcanreturn|spgcostestimate|spgendscan|spggetbitmap|spggettuple|spginsert|spgmarkpos|spgoptions|spgrescan|spgrestrpos|spgvacuumcleanup|split_part|sqrt|statement_timestamp|stddev|stddev_pop|stddev_samp|string_agg|string_agg_finalfn|string_agg_transfn|string_to_array|strip|strpos|substr|substring|sum|suppress_redundant_updates_trigger|table_to_xml|table_to_xml_and_xmlschema|table_to_xmlschema|tan|text|text_ge|text_gt|text_larger|text_le|text_lt|text_pattern_ge|text_pattern_gt|text_pattern_le|text_pattern_lt|text_smaller|textanycat|textcat|texteq|texticlike|texticnlike|texticregexeq|texticregexne|textin|textlen|textlike|textne|textnlike|textout|textrecv|textregexeq|textregexne|textsend|thesaurus_init|thesaurus_lexize|tideq|tidge|tidgt|tidin|tidlarger|tidle|tidlt|tidne|tidout|tidrecv|tidsend|tidsmaller|time_cmp|time_eq|time_ge|time_gt|time_hash|time_in|time_larger|time_le|time_lt|time_mi_interval|time_mi_time|time_ne|time_out|time_pl_interval|time_recv|time_send|time_smaller|time_transform|timedate_pl|timemi|timenow|timeofday|timepl|timestamp_cmp|timestamp_cmp_date|timestamp_cmp_timestamptz|timestamp_eq|timestamp_eq_date|timestamp_eq_timestamptz|timestamp_ge|timestamp_ge_date|timestamp_ge_timestamptz|timestamp_gt|timestamp_gt_date|timestamp_gt_timestamptz|timestamp_hash|timestamp_in|timestamp_larger|timestamp_le|timestamp_le_date|timestamp_le_timestamptz|timestamp_lt|timestamp_lt_date|timestamp_lt_timestamptz|timestamp_mi|timestamp_mi_interval|timestamp_ne|timestamp_ne_date|timestamp_ne_timestamptz|timestamp_out|timestamp_pl_interval|timestamp_recv|timestamp_send|timestamp_smaller|timestamp_sortsupport|timestamp_transform|timestamptypmodin|timestamptypmodout|timestamptz_cmp|timestamptz_cmp_date|timestamptz_cmp_timestamp|timestamptz_eq|timestamptz_eq_date|timestamptz_eq_timestamp|timestamptz_ge|timestamptz_ge_date|timestamptz_ge_timestamp|timestamptz_gt|timestamptz_gt_date|timestamptz_gt_timestamp|timestamptz_in|timestamptz_larger|timestamptz_le|timestamptz_le_date|timestamptz_le_timestamp|timestamptz_lt|timestamptz_lt_date|timestamptz_lt_timestamp|timestamptz_mi|timestamptz_mi_interval|timestamptz_ne|timestamptz_ne_date|timestamptz_ne_timestamp|timestamptz_out|timestamptz_pl_interval|timestamptz_recv|timestamptz_send|timestamptz_smaller|timestamptztypmodin|timestamptztypmodout|timetypmodin|timetypmodout|timetz_cmp|timetz_eq|timetz_ge|timetz_gt|timetz_hash|timetz_in|timetz_larger|timetz_le|timetz_lt|timetz_mi_interval|timetz_ne|timetz_out|timetz_pl_interval|timetz_recv|timetz_send|timetz_smaller|timetzdate_pl|timetztypmodin|timetztypmodout|timezone|tinterval|tintervalct|tintervalend|tintervaleq|tintervalge|tintervalgt|tintervalin|tintervalle|tintervalleneq|tintervallenge|tintervallengt|tintervallenle|tintervallenlt|tintervallenne|tintervallt|tintervalne|tintervalout|tintervalov|tintervalrecv|tintervalrel|tintervalsame|tintervalsend|tintervalstart|to_ascii|to_char|to_date|to_hex|to_json|to_number|to_timestamp|to_tsquery|to_tsvector|transaction_timestamp|translate|trigger_in|trigger_out|trunc|ts_debug|ts_headline|ts_lexize|ts_match_qv|ts_match_tq|ts_match_tt|ts_match_vq|ts_parse|ts_rank|ts_rank_cd|ts_rewrite|ts_stat|ts_token_type|ts_typanalyze|tsmatchjoinsel|tsmatchsel|tsq_mcontained|tsq_mcontains|tsquery_and|tsquery_cmp|tsquery_eq|tsquery_ge|tsquery_gt|tsquery_le|tsquery_lt|tsquery_ne|tsquery_not|tsquery_or|tsqueryin|tsqueryout|tsqueryrecv|tsquerysend|tsrange|tsrange_subdiff|tstzrange|tstzrange_subdiff|tsvector_cmp|tsvector_concat|tsvector_eq|tsvector_ge|tsvector_gt|tsvector_le|tsvector_lt|tsvector_ne|tsvector_update_trigger|tsvector_update_trigger_column|tsvectorin|tsvectorout|tsvectorrecv|tsvectorsend|txid_current|txid_current_snapshot|txid_snapshot_in|txid_snapshot_out|txid_snapshot_recv|txid_snapshot_send|txid_snapshot_xip|txid_snapshot_xmax|txid_snapshot_xmin|txid_visible_in_snapshot|uhc_to_utf8|unique_key_recheck|unknownin|unknownout|unknownrecv|unknownsend|unnest|upper|upper_inc|upper_inf|utf8_to_ascii|utf8_to_big5|utf8_to_euc_cn|utf8_to_euc_jis_2004|utf8_to_euc_jp|utf8_to_euc_kr|utf8_to_euc_tw|utf8_to_gb18030|utf8_to_gbk|utf8_to_iso8859|utf8_to_iso8859_1|utf8_to_johab|utf8_to_koi8r|utf8_to_koi8u|utf8_to_shift_jis_2004|utf8_to_sjis|utf8_to_uhc|utf8_to_win|uuid_cmp|uuid_eq|uuid_ge|uuid_gt|uuid_hash|uuid_in|uuid_le|uuid_lt|uuid_ne|uuid_out|uuid_recv|uuid_send|var_pop|var_samp|varbit_in|varbit_out|varbit_recv|varbit_send|varbit_transform|varbitcmp|varbiteq|varbitge|varbitgt|varbitle|varbitlt|varbitne|varbittypmodin|varbittypmodout|varchar_transform|varcharin|varcharout|varcharrecv|varcharsend|varchartypmodin|varchartypmodout|variance|version|void_in|void_out|void_recv|void_send|width|width_bucket|win1250_to_latin2|win1250_to_mic|win1251_to_iso|win1251_to_koi8r|win1251_to_mic|win1251_to_win866|win866_to_iso|win866_to_koi8r|win866_to_mic|win866_to_win1251|win_to_utf8|xideq|xideqint4|xidin|xidout|xidrecv|xidsend|xml|xml_in|xml_is_well_formed|xml_is_well_formed_content|xml_is_well_formed_document|xml_out|xml_recv|xml_send|xmlagg|xmlcomment|xmlconcat2|xmlexists|xmlvalidate|xpath|xpath_exists",keyword:"abort|absolute|abstime|access|aclitem|action|add|admin|after|aggregate|all|also|alter|always|analyse|analyze|and|any|anyarray|anyelement|anyenum|anynonarray|anyrange|array|as|asc|assertion|assignment|asymmetric|at|attribute|authorization|backward|before|begin|between|bigint|binary|bit|bool|boolean|both|box|bpchar|by|bytea|cache|called|cascade|cascaded|case|cast|catalog|chain|char|character|characteristics|check|checkpoint|cid|cidr|circle|class|close|cluster|coalesce|collate|collation|column|comment|comments|commit|committed|concurrently|configuration|connection|constraint|constraints|content|continue|conversion|copy|cost|create|cross|cstring|csv|current|current_catalog|current_date|current_role|current_schema|current_time|current_timestamp|current_user|cursor|cycle|data|database|date|daterange|day|deallocate|dec|decimal|declare|default|defaults|deferrable|deferred|definer|delete|delimiter|delimiters|desc|dictionary|disable|discard|distinct|do|document|domain|double|drop|each|else|enable|encoding|encrypted|end|enum|escape|event|event_trigger|except|exclude|excluding|exclusive|execute|exists|explain|extension|external|extract|false|family|fdw_handler|fetch|first|float|float4|float8|following|for|force|foreign|forward|freeze|from|full|function|functions|global|grant|granted|greatest|group|gtsvector|handler|having|header|hold|hour|identity|if|ilike|immediate|immutable|implicit|in|including|increment|index|indexes|inet|inherit|inherits|initially|inline|inner|inout|input|insensitive|insert|instead|int|int2|int2vector|int4|int4range|int8|int8range|integer|internal|intersect|interval|into|invoker|is|isnull|isolation|join|json|key|label|language|language_handler|large|last|lateral|lc_collate|lc_ctype|leading|leakproof|least|left|level|like|limit|line|listen|load|local|localtime|localtimestamp|location|lock|lseg|macaddr|mapping|match|materialized|maxvalue|minute|minvalue|mode|money|month|move|name|names|national|natural|nchar|next|no|none|not|nothing|notify|notnull|nowait|null|nullif|nulls|numeric|numrange|object|of|off|offset|oid|oids|oidvector|on|only|opaque|operator|option|options|or|order|out|outer|over|overlaps|overlay|owned|owner|parser|partial|partition|passing|password|path|pg_attribute|pg_auth_members|pg_authid|pg_class|pg_database|pg_node_tree|pg_proc|pg_type|placing|plans|point|polygon|position|preceding|precision|prepare|prepared|preserve|primary|prior|privileges|procedural|procedure|program|quote|range|read|real|reassign|recheck|record|recursive|ref|refcursor|references|refresh|regclass|regconfig|regdictionary|regoper|regoperator|regproc|regprocedure|regtype|reindex|relative|release|reltime|rename|repeatable|replace|replica|reset|restart|restrict|returning|returns|revoke|right|role|rollback|row|rows|rule|savepoint|schema|scroll|search|second|security|select|sequence|sequences|serializable|server|session|session_user|set|setof|share|show|similar|simple|smallint|smgr|snapshot|some|stable|standalone|start|statement|statistics|stdin|stdout|storage|strict|strip|substring|symmetric|sysid|system|table|tables|tablespace|temp|template|temporary|text|then|tid|time|timestamp|timestamptz|timetz|tinterval|to|trailing|transaction|treat|trigger|trim|true|truncate|trusted|tsquery|tsrange|tstzrange|tsvector|txid_snapshot|type|types|unbounded|uncommitted|unencrypted|union|unique|unknown|unlisten|unlogged|until|update|user|using|uuid|vacuum|valid|validate|validator|value|values|varbit|varchar|variadic|varying|verbose|version|view|void|volatile|when|where|whitespace|window|with|without|work|wrapper|write|xid|xml|xmlattributes|xmlconcat|xmlelement|xmlexists|xmlforest|xmlparse|xmlpi|xmlroot|xmlserialize|year|yes|zone"},"identifier",!0),regex:"[a-zA-Z_][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"!|!!|!~|!~\\*|!~~|!~~\\*|#|##|#<|#<=|#<>|#=|#>|#>=|%|\\&|\\&\\&|\\&<|\\&<\\||\\&>|\\*|\\+|\\-|/|<|<#>|<\\->|<<|<<=|<<\\||<=|<>|<\\?>|<@|<\\^|=|>|>=|>>|>>=|>\\^|\\?#|\\?\\-|\\?\\-\\||\\?\\||\\?\\|\\||@|@\\-@|@>|@@|@@@|\\^|\\||\\|\\&>|\\|/|\\|>>|\\|\\||\\|\\|/|~|~\\*|~<=~|~<~|~=|~>=~|~>~|~~|~~\\*"},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}];this.$rules={start:[{token:"comment",regex:"--.*$"},i.getStartRule("doc-start"),{token:"comment",regex:"\\/\\*",next:"comment"},{token:"keyword.statementBegin",regex:"^[a-zA-Z]+",next:"statement"},{token:"support.buildin",regex:"^\\\\[\\S]+.*$"}],statement:[{token:"comment",regex:"--.*$"},{token:"comment",regex:"\\/\\*",next:"commentStatement"},{token:"statementEnd",regex:";",next:"start"},{token:"string",regex:"\\$perl\\$",next:"perl-start"},{token:"string",regex:"\\$python\\$",next:"python-start"},{token:"string",regex:"\\$json\\$",next:"json-start"},{token:"string",regex:"\\$(js|javascript)\\$",next:"javascript-start"},{token:"string",regex:"\\$[\\w_0-9]*\\$$",next:"dollarSql"},{token:"string",regex:"\\$[\\w_0-9]*\\$",next:"dollarStatementString"}].concat(e),dollarSql:[{token:"comment",regex:"--.*$"},{token:"comment",regex:"\\/\\*",next:"commentDollarSql"},{token:"string",regex:"^\\$[\\w_0-9]*\\$",next:"statement"},{token:"string",regex:"\\$[\\w_0-9]*\\$",next:"dollarSqlString"}].concat(e),comment:[{token:"comment",regex:".*?\\*\\/",next:"start"},{token:"comment",regex:".+"}],commentStatement:[{token:"comment",regex:".*?\\*\\/",next:"statement"},{token:"comment",regex:".+"}],commentDollarSql:[{token:"comment",regex:".*?\\*\\/",next:"dollarSql"},{token:"comment",regex:".+"}],dollarStatementString:[{token:"string",regex:".*?\\$[\\w_0-9]*\\$",next:"statement"},{token:"string",regex:".+"}],dollarSqlString:[{token:"string",regex:".*?\\$[\\w_0-9]*\\$",next:"dollarSql"},{token:"string",regex:".+"}]},this.embedRules(i,"doc-",[i.getEndRule("start")]),this.embedRules(a,"perl-",[{token:"string",regex:"\\$perl\\$",next:"statement"}]),this.embedRules(s,"python-",[{token:"string",regex:"\\$python\\$",next:"statement"}]),this.embedRules(c,"json-",[{token:"string",regex:"\\$json\\$",next:"statement"}]),this.embedRules(l,"javascript-",[{token:"string",regex:"\\$(js|javascript)\\$",next:"statement"}])};r.inherits(u,o),t.PgsqlHighlightRules=u})),ace.define("ace/mode/pgsql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/pgsql_highlight_rules","ace/range"],(function(e,t,n){var r=e("../lib/oop"),i=e("../mode/text").Mode,o=e("./pgsql_highlight_rules").PgsqlHighlightRules,a=(e("../range").Range,function(){this.HighlightRules=o});r.inherits(a,i),function(){this.lineCommentStart="--",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){return"start"==e||"keyword.statementEnd"==e?"":this.$getIndent(t)},this.$id="ace/mode/pgsql"}.call(a.prototype),t.Mode=a}))},8128:()=>{ace.define("ace/mode/phoenix_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ARRAY|ARRAY_CONTAINS|ASCII|ASIN|ATAN|AVG|BASE64|BIN|BINARY|BROUND|CAST|CBRT|CEIL|CEILING|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT|CONCAT_WS|CONTEXT_NGRAMS|CONV|CORR|COS|COVAR_POP|COVAR_SAMP|COUNT|CRC32|CREATE_UNION|CUME_DIST|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE_ADD|DATE_FORMAT|DATE_SUB|DATEDIFF|DAY|DAYOFMONTH|DECODE|DEGREES|DENSE_RANK|E|ENCODE|EXP|EXPLODE|FACTORIAL|FIND_IN_SET|FIRST_VALUE|FLOOR|FORMAT_NUMBER|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GREATEST|HASH|HEX|HISTOGRAM_NUMERIC|HOUR|IF|IN_FILE|INLINE|INSTR|INITCAP|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_TUPLE|LAG|LAST_DAY|LAST_VALUE|LEAD|LEAST|LENGTH|LEVENSHTEIN|LCASE|LN|LOCATE|LOG|LOG10|LOG2|LOWER|LPAD|LTRIM|MAP|MAP_KEYS|MAP_VALUES|MAX|MD5|MIN|MINUTE|MONTH|MONTHS_BETWEEN|NAMED_STRUCT|NEGATIVE|NEXT_DAY|NGRAMS|NTILE|NVL|PARSE_URL|PARSE_URL_TUPLE|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSITIVE|POW|POWER|PRINTF|QUARTER|RADIANS|RAND|RANK|REFLECT|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SECOND|SHA|SHA1|SHA2|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SIGN|SIN|SIZE|SORT_ARRAY|SQRT|STACK|STDDEV_POP|STDDEV_SAMP|STRUCT|SENTENCES|SOUNDEX|SPACE|SPLIT|STR_TO_MAP|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|UCASE|UNBASE64|UNHEX|UNIX_TIMESTAMP|UPPER|VAR_POP|VAR_SAMP|VARIANCE|WEEKOFYEAR|XPATH|XPATH_BOOLEAN|XPATH_DOUBLE|XPATH_FLOAT|XPATH_INT|XPATH_LONG|XPATH_NUMBER|XPATH_SHORT|XPATH_STRING|YEAR",keyword:"ADD|ADMIN|AFTER|ALL|ALTER|ANALYZE|AND|ARCHIVE|AS|ASC|AUTHORIZATION|BEFORE|BETWEEN|BOTH|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CAST|CHANGE|CLUSTER|CLUSTERED|CLUSTERSTATUS|COLLECTION|COLUMN|COLUMNS|COMMENT|COMMIT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONF|CONSTRAINT|CONTINUE|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_TIMESTAMP|CURSOR|DATA|DATABASE|DATABASES|DATETIME|DAY|DAYOFWEEK|DBPROPERTIES|DEFERRED|DEFINED|DELETE|DEPENDENCY|DESC|DESCRIBE|DIRECTORIES|DIRECTORY|DISABLE|DISTINCT|DISTRIBUTE|DROP|ELEM_TYPE|ELSE|ENABLE|END|ESCAPED|EXCHANGE|EXCLUSIVE|EXISTS|EXPLAIN|EXPORT|EXTENDED|EXTERNAL|EXTRACT|FETCH|FIELDS|FILE|FILEFORMAT|FIRST|FLOOR|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GRANT|GROUP|GROUPING|HAVING|HOLD_DDLTIME|HOUR|IDXPROPERTIES|IF|IGNORE|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTDRIVER|INPUTFORMAT|INSERT|INTERSECT|INTERVAL|INTO|IS|ITEMS|JAR|JOIN|KEY|KEYS|KEY_TYPE|LATERAL|LEFT|LESS|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCATION|LOCK|LOCKS|LOGICAL|LONG|MACRO|MAPJOIN|MATERIALIZED|MINUS|MINUTE|MONTH|MORE|MSCK|NONE|NOSCAN|NOVALIDATE|NOT|NO_DROP|OF|OFFLINE|ON|ONLY|OPTION|OR|ORDER|OUT|OUTER|OUTPUTDRIVER|OUTPUTFORMAT|OVER|OVERWRITE|OWNER|PARTIALSCAN|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PLUS|PRECEDING|PRECISION|PRESERVE|PRETTY|PRIMARY|PRINCIPALS|PROCEDURE|PROTECTION|PURGE|RANGE|READ|READONLY|READS|REBUILD|RECORDREADER|RECORDWRITER|REDUCE|REFERENCES|REGEXP|RELOAD|RENAME|REPAIR|REPLACE|RESTRICT|REVOKE|REWRITE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SECOND|SELECT|SEMI|SERDEPROPERTIES|SERVER|SET|SETS|SHARED|SHOW|SHOW_DATABASE|SKEWED|SORT|SORTED|SSL|START|STATISTICS|STORED|STREAMTABLE|SYNC|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMPORARY|TERMINATED|THEN|TO|TOUCH|TRANSACTIONAL|TRANSACTIONS|TRANSFORM|TRIGGER|TRUNCATE|UNARCHIVE|UNBOUNDED|UNDO|UNION|UNIQUEJOIN|UNLOCK|UNSET|UNSIGNED|UTC_TIMESTAMP|UPDATE|URI|USE|USER|USING|UTC|UTCTIMESTAMP|VALUES|VALUE_TYPE|VIEW|VIEWS|WHEN|WHERE|WHILE|WINDOW|WITH|YEAR","constant.language":"FALSE|NULL|TRUE","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|CHAR|DATE|DECIMAL|DELIMITED|DOUBLE|FLOAT|INT|INTEGER|JSONFILE|MAP|NUMERIC|PRECISION|RCFILE|SEQUENCEFILE|SERDE|SMALLINT|STRING|STRUCT|TEXTFILE|TIME|TIMESTAMP|TINYINT|UNIONTYPE|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["pql"],name:"Phoenix",scopeName:"source.phoenix"},r.inherits(o,i),t.PhoenixHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var a=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,a);var s=e.getCommentFoldRange(n,a+i[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(a=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,a):e.getCommentFoldRange(n,a,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length,s=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>a)return new i(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,a=t.FoldMode=function(){};r.inherits(a,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.getBeginEndBlock(e,n,a,o[1]);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}},this.getBeginEndBlock=function(e,t,n,r){for(var o,a={row:t,column:n+r.length},s=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<s;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>a.row)return new i(a.row,a.column,t,o.length)}}.call(a.prototype)})),ace.define("ace/mode/phoenix",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/phoenix_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./phoenix_highlight_rules").PhoenixHighlightRules,a=e("./folding/sqlserver").FoldMode,s=function(){this.HighlightRules=o,this.foldingRules=new a};r.inherits(s,i),function(){this.lineCommentStart="--",this.$id="ace/mode/phoenix",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(s.prototype),t.Mode=s}))},7911:()=>{ace.define("ace/mode/presto_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ARRAY|ARRAY_CONTAINS|ASCII|ASIN|ATAN|AVG|BASE64|BIN|BINARY|BROUND|CAST|CBRT|CEIL|CEILING|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT|CONCAT_WS|CONTEXT_NGRAMS|CONV|CORR|COS|COVAR_POP|COVAR_SAMP|COUNT|CRC32|CREATE_UNION|CUME_DIST|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE_ADD|DATE_FORMAT|DATE_SUB|DATEDIFF|DAY|DAYOFMONTH|DECODE|DEGREES|DENSE_RANK|E|ENCODE|EXP|EXPLODE|FACTORIAL|FIND_IN_SET|FIRST_VALUE|FLOOR|FORMAT_NUMBER|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GREATEST|HASH|HEX|HISTOGRAM_NUMERIC|HOUR|IF|IN_FILE|INLINE|INSTR|INITCAP|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_TUPLE|LAG|LAST_DAY|LAST_VALUE|LEAD|LEAST|LENGTH|LEVENSHTEIN|LCASE|LN|LOCATE|LOG|LOG10|LOG2|LOWER|LPAD|LTRIM|MAP|MAP_KEYS|MAP_VALUES|MAX|MD5|MIN|MINUTE|MONTH|MONTHS_BETWEEN|NAMED_STRUCT|NEGATIVE|NEXT_DAY|NGRAMS|NTILE|NVL|PARSE_URL|PARSE_URL_TUPLE|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSITIVE|POW|POWER|PRINTF|QUARTER|RADIANS|RAND|RANK|REFLECT|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SECOND|SHA|SHA1|SHA2|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SIGN|SIN|SIZE|SORT_ARRAY|SQRT|STACK|STDDEV_POP|STDDEV_SAMP|STRUCT|SENTENCES|SOUNDEX|SPACE|SPLIT|STR_TO_MAP|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|UCASE|UNBASE64|UNHEX|UNIX_TIMESTAMP|UPPER|VAR_POP|VAR_SAMP|VARIANCE|WEEKOFYEAR|XPATH|XPATH_BOOLEAN|XPATH_DOUBLE|XPATH_FLOAT|XPATH_INT|XPATH_LONG|XPATH_NUMBER|XPATH_SHORT|XPATH_STRING|YEAR",keyword:"ADD|ADMIN|AFTER|ALL|ALTER|ANALYZE|AND|ARCHIVE|AS|ASC|AUTHORIZATION|BEFORE|BETWEEN|BOTH|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CAST|CHANGE|CLUSTER|CLUSTERED|CLUSTERSTATUS|COLLECTION|COLUMN|COLUMNS|COMMENT|COMMIT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONF|CONSTRAINT|CONTINUE|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_TIMESTAMP|CURSOR|DATA|DATABASE|DATABASES|DATETIME|DAY|DAYOFWEEK|DBPROPERTIES|DEFERRED|DEFINED|DELETE|DEPENDENCY|DESC|DESCRIBE|DIRECTORIES|DIRECTORY|DISABLE|DISTINCT|DISTRIBUTE|DROP|ELEM_TYPE|ELSE|ENABLE|END|ESCAPED|EXCHANGE|EXCLUSIVE|EXISTS|EXPLAIN|EXPORT|EXTENDED|EXTERNAL|EXTRACT|FETCH|FIELDS|FILE|FILEFORMAT|FIRST|FLOOR|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GRANT|GROUP|GROUPING|HAVING|HOLD_DDLTIME|HOUR|IDXPROPERTIES|IF|IGNORE|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTDRIVER|INPUTFORMAT|INSERT|INTERSECT|INTERVAL|INTO|IS|ITEMS|JAR|JOIN|KEY|KEYS|KEY_TYPE|LATERAL|LEFT|LESS|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCATION|LOCK|LOCKS|LOGICAL|LONG|MACRO|MAPJOIN|MATERIALIZED|MINUS|MINUTE|MONTH|MORE|MSCK|NONE|NOSCAN|NOVALIDATE|NOT|NO_DROP|OF|OFFLINE|ON|ONLY|OPTION|OR|ORDER|OUT|OUTER|OUTPUTDRIVER|OUTPUTFORMAT|OVER|OVERWRITE|OWNER|PARTIALSCAN|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PLUS|PRECEDING|PRECISION|PRESERVE|PRETTY|PRIMARY|PRINCIPALS|PROCEDURE|PROTECTION|PURGE|RANGE|READ|READONLY|READS|REBUILD|RECORDREADER|RECORDWRITER|REDUCE|REFERENCES|REGEXP|RELOAD|RENAME|REPAIR|REPLACE|RESTRICT|REVOKE|REWRITE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SECOND|SELECT|SEMI|SERDEPROPERTIES|SERVER|SET|SETS|SHARED|SHOW|SHOW_DATABASE|SKEWED|SORT|SORTED|SSL|START|STATISTICS|STORED|STREAMTABLE|SYNC|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMPORARY|TERMINATED|THEN|TO|TOUCH|TRANSACTIONAL|TRANSACTIONS|TRANSFORM|TRIGGER|TRUNCATE|UNARCHIVE|UNBOUNDED|UNDO|UNION|UNIQUEJOIN|UNLOCK|UNSET|UNSIGNED|UTC_TIMESTAMP|UPDATE|URI|USE|USER|USING|UTC|UTCTIMESTAMP|VALUES|VALUE_TYPE|VIEW|VIEWS|WHEN|WHERE|WHILE|WINDOW|WITH|YEAR","constant.language":"FALSE|NULL|TRUE","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|CHAR|DATE|DECIMAL|DELIMITED|DOUBLE|FLOAT|INT|INTEGER|JSONFILE|MAP|NUMERIC|PRECISION|RCFILE|SEQUENCEFILE|SERDE|SMALLINT|STRING|STRUCT|TEXTFILE|TIME|TIMESTAMP|TINYINT|UNIONTYPE|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["hql","q","ql"],name:"Presto",scopeName:"source.presto"},r.inherits(o,i),t.PrestoHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var a=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,a);var s=e.getCommentFoldRange(n,a+i[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(a=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,a):e.getCommentFoldRange(n,a,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length,s=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>a)return new i(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,a=t.FoldMode=function(){};r.inherits(a,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.getBeginEndBlock(e,n,a,o[1]);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}},this.getBeginEndBlock=function(e,t,n,r){for(var o,a={row:t,column:n+r.length},s=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<s;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>a.row)return new i(a.row,a.column,t,o.length)}}.call(a.prototype)})),ace.define("ace/mode/presto",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/presto_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./presto_highlight_rules").PrestoHighlightRules,a=e("./folding/sqlserver").FoldMode,s=function(){this.HighlightRules=o,this.foldingRules=new a};r.inherits(s,i),function(){this.lineCommentStart="--",this.$id="ace/mode/presto",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(s.prototype),t.Mode=s}))},5366:()=>{ace.define("ace/mode/solr_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|AVG|CHILDFIELD|DEF|DIST|DIV|DOCFREQ|EQ|EXISTS|FIELD|GT|GTE|HLL|HSIN|IDF|IF|LINEAR|LOG|LT|LTE|MAP|MAX|MAX|MAXDOC|MIN|MIN|MS|MUL|NORM|NUMDOCS|ORD|PAYLOAD|PERCENTILE|POW|PRODUCT|QUERY|RECIP|RORD|SCALE|SQEDIST|SQRT|STDDEV|STRDIST|SUB|SUM|SUM|SUMSQ|SUMTOTALTERMFREQ|TERMFREQ|TF|TOP|TOTALTERMFREQ|UNIQUE|VARIANCE|XOR",keyword:"AND|OR|NOT|TO|NOW|HOUR|HOURS|DAY|DAYS|MONTH|MONTHS|YEAR|YEARS"},"identifier",!0);this.$rules={start:[{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:'\\+|\\-|\\/|\\?|&|\\^|~|:|\\*|\\||!|"|\\[|\\]'},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["solr"],name:"Solr",scopeName:"source.solr"},r.inherits(o,i),t.SolrHighlightRules=o})),ace.define("ace/mode/solr",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/solr_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./solr_highlight_rules").SolrHighlightRules,a=function(){this.HighlightRules=o};r.inherits(a,i),function(){this.$id="ace/mode/solr",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!1,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(a.prototype),t.Mode=a}))},7060:()=>{ace.define("ace/mode/sparksql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ACOSH|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ANY|APPROX_COUNT_DISTINCT|APPROX_PERCENTILE|ARRAY|ARRAY_AGG|ARRAY_CONTAINS|ARRAY_DISTINCT|ARRAY_EXCEPT|ARRAY_INTERSECT|ARRAY_JOIN|ARRAY_MAX|ARRAY_MIN|ARRAY_POSITION|ARRAY_REMOVE|ARRAY_REPEAT|ARRAY_UNION|ARRAYS_OVERLAP|ARRAYS_ZIP|ASCII|ASIN|ASINH|ASSERT_TRUE|ATAN|ATAN2|ATANH|AVG|BASE64|BIGINT|BIN|BINARY|BIT_AND|BIT_COUNT|BIT_GET|BIT_LENGTH|BIT_OR|BIT_XOR|BOOL_AND|BOOL_OR|BOOLEAN|BROUND|BTRIM|CAST|CBRT|CEIL|CEILING|CHAR|CHAR_LENGTH|CHARACTER_LENGTH|CHR|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT_WS|CONTAINS|CONV|CORR|COS|COSH|COT|COUNT|COUNT_MIN_SKETCH|COVAR_POP|COVAR_SAMP|CSC|CUME_DIST|CURRENT_CATALOG|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_TIMEZONE|CURRENT_USER|DATE|DATE_ADD|DATE_FORMAT|DATE_FROM_UNIX_DATE|DATE_PART|DATE_SUB|DATE_TRUNC|DATEDIFF|DAY|DAYOFMONTH|DAYOFWEEK|DAYOFYEAR|DECIMAL|DECODE|DEGREES|DENSE_RANK|DOUBLE|E|ELEMENT_AT|ELT|ENCODE|ENDSWITH|EVERY|EXP|EXPLODE|EXPLODE_OUTER|EXPM1|EXPR1|EXTRACT|FACTORIAL|FIND_IN_SET|FIRST|FIRST_VALUE|FLATTEN|FLOAT|FLOOR|FORMAT_NUMBER|FORMAT_STRING|FROM_JSON|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GETBIT|GREATEST|GROUPING|GROUPING_ID|HEX|HISTOGRAM_NUMERIC|HOUR|HYPOT|IF|IFNULL|INITCAP|INLINE|INLINE_OUTER|INPUT_FILE_BLOCK_LENGTH|INPUT_FILE_BLOCK_START|INPUT_FILE_NAME|INSTR|INT|ISNAN|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_ARRAY_LENGTH|JSON_OBJECT_KEYS|JSON_TUPLE|KURTOSIS|LAG|LAST|LAST_DAY|LAST_VALUE|LCASE|LEAD|LEAST|LEFT|LENGTH|LEVENSHTEIN|LN|LOCATE|LOG|LOG10|LOG1P|LOG2|LOWER|LPAD|LTRIM|MAKE_DATE|MAKE_DT_INTERVAL|MAKE_INTERVAL|MAKE_TIMESTAMP|MAKE_YM_INTERVAL|MAP|MAP_CONCAT|MAP_CONTAINS_KEY|MAP_ENTRIES|MAP_FROM_ARRAYS|MAP_FROM_ENTRIES|MAP_KEYS|MAP_VALUES|MAX|MAX_BY|MEAN|MIN|MIN_BY|MINUTE|MONOTONICALLY_INCREASING_ID|MONTH|MONTHS_BETWEEN|NANVL|NEGATIVE|NEXT_DAY|NOW|NTH_VALUE|NTILE|NULLIF|NVL|NVL2|OCTET_LENGTH|OVERLAY|PARSE_URL|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSEXPLODE_OUTER|POSITION|POSITIVE|POW|POWER|PRINTF|QUARTER|RADIANS|RAND|RANDN|RANDOM|RANK|REFLECT|REGEXP|REGEXP_EXTRACT|REGEXP_EXTRACT_ALL|REGEXP_LIKE|REGEXP_REPLACE|REGR_AVGX|REGR_AVGY|REGR_COUNT|REGR_R2|REPEAT|REPLACE|RIGHT|RINT|RLIKE|ROUND|ROW_NUMBER|RPAD|RTRIM|SCHEMA_OF_JSON|SEC|SECOND|SENTENCES|SEQUENCE|SESSION_WINDOW|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SHUFFLE|SIGN|SIGNUM|SIN|SINH|SKEWNESS|SLICE|SMALLINT|SOME|SORT_ARRAY|SOUNDEX|SPACE|SPARK_PARTITION_ID|SPLIT|SPLIT_PART|SQRT|STACK|STARTSWITH|STD|STDDEV|STDDEV_POP|STDDEV_SAMP|STR_TO_MAP|STRING|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TANH|TIMESTAMP|TIMESTAMP_MICROS|TIMESTAMP_MILLIS|TIMESTAMP_SECONDS|TINYINT|TO_BINARY|TO_DATE|TO_JSON|TO_NUMBER|TO_TIMESTAMP|TO_UNIX_TIMESTAMP|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|TRY_ADD|TRY_AVG|TRY_DIVIDE|TRY_ELEMENT_AT|TRY_MULTIPLY|TRY_SUBTRACT|TRY_SUM|TRY_TO_BINARY|TRY_TO_NUMBER|TYPEOF|UCASE|UNBASE64|UNHEX|UNIX_DATE|UNIX_MICROS|UNIX_MILLIS|UNIX_SECONDS|UNIX_TIMESTAMP|UPPER|UUID|VAR_POP|VAR_SAMP|VARIANCE|VERSION|WEEKDAY|WEEKOFYEAR|WIDTH_BUCKET|WINDOW|YEAR",keyword:"ADD|AFTER|ALL|ALTER|ANALYZE|AND|ANTI|ANY|ARCHIVE|AS|ASC|AT|AUTHORIZATION|BETWEEN|BOTH|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CAST|CATALOG|CATALOGS|CHANGE|CHECK|CLEAR|CLUSTER|CLUSTERED|CODEGEN|COLLATE|COLLECTION|COLUMN|COLUMNS|COMMENT|COMMIT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONSTRAINT|COST|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_TIME|CURRENT_TIMESTAMP|CURRENT_USER|DATA|DATABASE|DATABASES|DATEADD|DATEDIFF|DAYOFYEAR|DBPROPERTIES|DEFINED|DELETE|DELIMITED|DESC|DESCRIBE|DFS|DIRECTORIES|DIRECTORY|DISTINCT|DISTRIBUTE|DIV|DROP|ELSE|END|ESCAPE|ESCAPED|EXCEPT|EXCHANGE|EXISTS|EXPLAIN|EXPORT|EXTENDED|EXTERNAL|EXTRACT|FETCH|FIELDS|FILEFORMAT|FILTER|FIRST|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GLOBAL|GRANT|GROUP|GROUPING|HAVING|IF|IGNORE|ILIKE|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTFORMAT|INSERT|INTERSECT|INTERVAL|INTO|IS|ITEMS|JOIN|KEYS|LAST|LATERAL|LAZY|LEADING|LEFT|LIKE|LIMIT|LINES|LIST|LOAD|LOCAL|LOCATION|LOCK|LOCKS|LOGICAL|MACRO|MATCHED|MERGE|MICROSECOND|MILLISECOND|MINUS|MSCK|NAMESPACE|NAMESPACES|NATURAL|NO|NOT|NULLS|OF|ON|ONLY|OPTION|OPTIONS|OR|ORDER|OUT|OUTER|OUTPUTFORMAT|OVER|OVERLAPS|OVERLAY|OVERWRITE|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PERCENTILE_CONT|PERCENTILE_DISC|PIVOT|PLACING|POSITION|PRECEDING|PRIMARY|PRINCIPALS|PROPERTIES|PURGE|QUARTER|QUERY|RANGE|RECORDREADER|RECORDWRITER|RECOVER|REDUCE|REFERENCES|REFRESH|REGEXP|RENAME|REPAIR|REPEATABLE|REPLACE|RESET|RESPECT|RESTRICT|REVOKE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SELECT|SEMI|SEPARATED|SERDE|SERDEPROPERTIES|SESSION_USER|SET|SETS|SHOW|SKEWED|SOME|SORT|SORTED|START|STATISTICS|STORED|STRATIFY|SUBSTR|SUBSTRING|SYNC|SYSTEM_TIME|SYSTEM_VERSION|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMP|TEMPORARY|TERMINATED|THEN|TIME|TIMESTAMPADD|TIMESTAMPDIFF|TO|TOUCH|TRAILING|TRANSACTION|TRANSACTIONS|TRANSFORM|TRIM|TRUNCATE|TRY_CAST|TYPE|UNARCHIVE|UNBOUNDED|UNCACHE|UNION|UNIQUE|UNKNOWN|UNLOCK|UNSET|UPDATE|USE|USER|USING|VALUES|VERSION|VIEW|VIEWS|WEEK|WHEN|WHERE|WINDOW|WITH|WITHIN|ZONE","constant.language":"AVRO|DAY|FALSE|HOUR|KUDU|MINUTE|MONTH|NULL|ORC|PARQUET|RCFILE|SECOND|SEQUENCEFILE|TEXTFILE|TRUE|YEAR","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|BYTE|DATE|DEC|DECIMAL|DOUBLE|FLOAT|INT|INTEGER|LONG|MAP|NUMERIC|REAL|SHORT|SMALLINT|STRING|STRUCT|TIMESTAMP|TINYINT"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["hql","q","ql"],name:"Sparksql",scopeName:"source.sparksql"},r.inherits(o,i),t.SparksqlHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var a=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,a);var s=e.getCommentFoldRange(n,a+i[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(a=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,a):e.getCommentFoldRange(n,a,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length,s=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>a)return new i(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,a=t.FoldMode=function(){};r.inherits(a,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.getBeginEndBlock(e,n,a,o[1]);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}},this.getBeginEndBlock=function(e,t,n,r){for(var o,a={row:t,column:n+r.length},s=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<s;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>a.row)return new i(a.row,a.column,t,o.length)}}.call(a.prototype)})),ace.define("ace/mode/sparksql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sparksql_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./sparksql_highlight_rules").SparksqlHighlightRules,a=e("./folding/sqlserver").FoldMode,s=function(){this.HighlightRules=o,this.foldingRules=new a};r.inherits(s,i),function(){this.lineCommentStart="--",this.$id="ace/mode/sparksql",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(s.prototype),t.Mode=s}))},2448:()=>{ace.define("ace/mode/sql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"avg|count|first|last|max|min|sum|ucase|lcase|mid|len|round|rank|now|format|coalesce|ifnull|isnull|nvl",keyword:"select|insert|update|delete|from|where|and|or|group|by|order|limit|offset|having|as|case|when|else|end|type|left|right|join|on|outer|desc|asc|union|create|table|primary|key|if|foreign|not|references|default|null|inner|cross|natural|database|drop|grant","constant.language":"true|false","storage.type":"int|numeric|decimal|date|varchar|char|bigint|float|double|bit|binary|text|set|timestamp|money|real|number|integer"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};r.inherits(o,i),t.SqlHighlightRules=o})),ace.define("ace/mode/sql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sql_highlight_rules","ace/range"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./sql_highlight_rules").SqlHighlightRules,a=(e("../range").Range,function(){this.HighlightRules=o});r.inherits(a,i),function(){this.lineCommentStart="--",this.$id="ace/mode/sql"}.call(a.prototype),t.Mode=a}))},2224:()=>{ace.define("ace/snippets/bigquery",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="bigquery"}))},5394:()=>{ace.define("ace/snippets/dasksql",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="dasksql"}))},4762:()=>{ace.define("ace/snippets/druid",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="druid"}))},267:()=>{ace.define("ace/snippets/elasticsearch",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="elasticsearch"}))},4998:()=>{ace.define("ace/snippets/flink",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="flink"}))},4689:()=>{ace.define("ace/snippets/hive",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText="snippet tbl\n\tcreate table ${1:table_name} (\n\t\t${2:columns}\n\t);\nsnippet s*\n\tselect * from ${1:table_name}\nsnippet showcolumns\n\tSHOW COLUMNS (FROM|IN) table_name [(FROM|IN) db_name];\nsnippet showcompactions\n\tSHOW COMPACTIONS;\nsnippet showconf\n\tSHOW CONF <configuration_name>;\nsnippet showcreate\n\tSHOW CREATE TABLE ([db_name.]table_name|view_name);\nsnippet showcurrentroles\n\tSHOW CURRENT ROLES;\nsnippet showdatabases\n\tSHOW (DATABASES|SCHEMAS) [LIKE 'identifier_with_wildcards'];\nsnippet showdblocks\n\tSHOW LOCKS (DATABASE|SCHEMA) database_name;\nsnippet showfunctions\n\tSHOW FUNCTIONS \"a.*\";\nsnippet showgrant\n\tSHOW GRANT;\nsnippet showindex\n\tSHOW [FORMATTED] (INDEX|INDEXES) ON ${1:table_with_index} [(FROM|IN) ${2:db_name}];\nsnippet showlocks\n\tSHOW LOCKS ${1:table_name} PARTITION (${2:partition_spec}) EXTENDED;\nsnippet showpartitions\n\tSHOW PARTITIONS ${1:table_name} PARTITION(ds='2010-03-03', hr='12');\nsnippet showprincipals\n\tSHOW PRINCIPALS;\nsnippet showrolegrant\n\tSHOW ROLE GRANT;\nsnippet showroles\n\tSHOW ROLES;\nsnippet showtableextended\n\tSHOW TABLE EXTENDED [IN|FROM ${1:database_name}] LIKE 'identifier_with_wildcards' [PARTITION(${2:partition_spec})];\nsnippet showtables\n\tSHOW TABLES [IN ${1:database_name}] ['identifier_with_wildcards'];\nsnippet showtblproperties\n\tSHOW TBLPROPERTIES ${1:table_name};\nsnippet showtransactions\n\tSHOW TRANSACTIONS;\n",t.scope="hive"}))},4042:()=>{ace.define("ace/snippets/hplsql",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="hplsql"}))},5258:()=>{ace.define("ace/snippets/impala",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText="snippet tbl\n\tcreate table ${1:table} (\n\t\t${2:columns}\n\t);\nsnippet s*\n\tselect * from ${1:table}\n",t.scope="impala"}))},5409:()=>{ace.define("ace/snippets/ksql",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="ksql"}))},1489:()=>{ace.define("ace/snippets/markdown",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText='# Markdown\n\n# Includes octopress (http://octopress.org/) snippets\n\nsnippet [\n\t[${1:text}](http://${2:address} "${3:title}")\nsnippet [*\n\t[${1:link}](${2:`@*`} "${3:title}")${4}\n\nsnippet [:\n\t[${1:id}]: http://${2:url} "${3:title}"\nsnippet [:*\n\t[${1:id}]: ${2:`@*`} "${3:title}"\n\nsnippet ![\n\t![${1:alttext}](${2:/images/image.jpg} "${3:title}")\nsnippet ![*\n\t![${1:alt}](${2:`@*`} "${3:title}")${4}\n\nsnippet ![:\n\t![${1:id}]: ${2:url} "${3:title}"\nsnippet ![:*\n\t![${1:id}]: ${2:`@*`} "${3:title}"\n\nsnippet ===\nregex /^/=+/=*//\n\t${PREV_LINE/./=/g}\n\t\n\t${0}\nsnippet ---\nregex /^/-+/-*//\n\t${PREV_LINE/./-/g}\n\t\n\t${0}\nsnippet blockquote\n\t{% blockquote %}\n\t${1:quote}\n\t{% endblockquote %}\n\nsnippet blockquote-author\n\t{% blockquote ${1:author}, ${2:title} %}\n\t${3:quote}\n\t{% endblockquote %}\n\nsnippet blockquote-link\n\t{% blockquote ${1:author} ${2:URL} ${3:link_text} %}\n\t${4:quote}\n\t{% endblockquote %}\n\nsnippet bt-codeblock-short\n\t```\n\t${1:code_snippet}\n\t```\n\nsnippet bt-codeblock-full\n\t``` ${1:language} ${2:title} ${3:URL} ${4:link_text}\n\t${5:code_snippet}\n\t```\n\nsnippet codeblock-short\n\t{% codeblock %}\n\t${1:code_snippet}\n\t{% endcodeblock %}\n\nsnippet codeblock-full\n\t{% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}\n\t${5:code_snippet}\n\t{% endcodeblock %}\n\nsnippet gist-full\n\t{% gist ${1:gist_id} ${2:filename} %}\n\nsnippet gist-short\n\t{% gist ${1:gist_id} %}\n\nsnippet img\n\t{% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${6:alt_text} %}\n\nsnippet youtube\n\t{% youtube ${1:video_id} %}\n\n# The quote should appear only once in the text. It is inherently part of it.\n# See http://octopress.org/docs/plugins/pullquote/ for more info.\n\nsnippet pullquote\n\t{% pullquote %}\n\t${1:text} {" ${2:quote} "} ${3:text}\n\t{% endpullquote %}\n',t.scope="markdown"}))},708:()=>{ace.define("ace/snippets/mysql",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="mysql"}))},2426:()=>{ace.define("ace/snippets/pgsql",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="pgsql"}))},7586:()=>{ace.define("ace/snippets/phoenix",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="phoenix"}))},9783:()=>{ace.define("ace/snippets/presto",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="presto"}))},6282:()=>{ace.define("ace/snippets/solr",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="solr"}))},1802:()=>{ace.define("ace/snippets/sql",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText="snippet tbl\n\tcreate table ${1:table} (\n\t\t${2:columns}\n\t);\nsnippet col\n\t${1:name}\t${2:type}\t${3:default ''}\t${4:not null}\nsnippet ccol\n\t${1:name}\tvarchar2(${2:size})\t${3:default ''}\t${4:not null}\nsnippet ncol\n\t${1:name}\tnumber\t${3:default 0}\t${4:not null}\nsnippet dcol\n\t${1:name}\tdate\t${3:default sysdate}\t${4:not null}\nsnippet ind\n\tcreate index ${3:$1_$2} on ${1:table}(${2:column});\nsnippet uind\n\tcreate unique index ${1:name} on ${2:table}(${3:column});\nsnippet tblcom\n\tcomment on table ${1:table} is '${2:comment}';\nsnippet colcom\n\tcomment on column ${1:table}.${2:column} is '${3:comment}';\nsnippet addcol\n\talter table ${1:table} add (${2:column} ${3:type});\nsnippet seq\n\tcreate sequence ${1:name} start with ${2:1} increment by ${3:1} minvalue ${4:1};\nsnippet s*\n\tselect * from ${1:table}\n",t.scope="sql"}))},1220:()=>{ace.define("ace/snippets/text",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="text"}))},3492:()=>{ace.define("ace/theme/hue",["require","exports","module","ace/lib/dom"],(function(e,t,n){t.isDark=!1,t.cssClass="ace-hue",t.cssText=".ace_hidden-cursors .ace_cursor {opacity: 0;}.ace-hue .ace_print-margin {width: 1px;background: #f6f6f6}.ace-hue {background-color: #FFFFFF;color: #4D4D4C}.ace-hue .ace_cursor {color: #AEAFAD}.ace-hue .ace_marker-layer .ace_selection {background: #D6D6D6}.ace-hue.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #FFFFFF;}.ace-hue .ace_marker-layer .ace_step {background: rgb(255, 255, 0)}.ace-hue .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #D1D1D1}.ace-hue .ace_marker-layer .ace_selected-word {border: 1px solid #D6D6D6}.ace-hue .ace_marker-layer .ace_error-line {position: absolute;background-color: #f2dede;width: 100% !important;margin-left: -3px;}.ace-hue .ace_marker-layer .ace_warning-line {position: absolute;background-color: #fcf8e3;width: 100% !important;margin-left: -3px;}.ace-hue .ace_invisible {color: #BBB}.ace-hue .ace_keyword,.ace-hue .ace_meta,.ace-hue .ace_storage,.ace-hue .ace_storage.ace_type,.ace-hue .ace_support.ace_type {color: #8959A8}.ace-hue .ace_keyword.ace_operator {color: #3E999F}.ace_gutter {background: #F1F1F1;}.ace_gutter > .ace_layer {border-left: 1px solid #DBE8F1;color: #737373;}.ace_gutter-cell.ace_error {background-color: #f2dede;border-left:1px solid #d6616b;background-image: none !important;}.ace_gutter-cell.ace_warning {background-color: #fcf8e3;border-left:1px solid #f0c36d;background-image: none !important;}.ace_gutter-cell {padding-left: 0 !important;padding-right: 3px !important;}.ace-hue .ace_constant.ace_character,.ace-hue .ace_constant.ace_language,.ace-hue .ace_constant.ace_numeric,.ace-hue .ace_keyword.ace_other.ace_unit,.ace-hue .ace_support.ace_constant,.ace-hue .ace_variable.ace_parameter {color: #F5871F}.ace-hue .ace_constant.ace_other {color: #666969}.ace-hue .ace_invalid {color: #FFFFFF;background-color: #C82829}.ace-hue .ace_invalid.ace_deprecated {color: #FFFFFF;background-color: #8959A8}.ace-hue .ace_fold {background-color: #4271AE;border-color: #4D4D4C}.ace-hue .ace_entity.ace_name.ace_function,.ace-hue .ace_support.ace_function,.ace-hue .ace_variable {color: #4271AE}.ace-hue .ace_support.ace_class,.ace-hue .ace_support.ace_type {color: #C99E00}.ace-hue .ace_heading,.ace-hue .ace_markup.ace_heading,.ace-hue .ace_string {color: #718C00}.ace-hue .ace_entity.ace_name.ace_tag,.ace-hue .ace_entity.ace_other.ace_attribute-name,.ace-hue .ace_meta.ace_tag,.ace-hue .ace_string.ace_regexp,.ace-hue .ace_variable {color: #C82829}.ace-hue .ace_comment {color: #8E908C}.ace-hue .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bdu3f/BwAlfgctduB85QAAAABJRU5ErkJggg==) right repeat-y}.ace-spinner, .ace-inline-button {position: absolute;z-index: 1030;}.ace-inline-button {opacity: 0.7;}.ace-inline-button:hover {opacity: 1;}.ace_tooltip {background: #F7F7F7 !important;border: none !important;color: #333;padding: 3px !important;}.ace_tooltip hr {margin: 3px !important;}.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line, .ace_editor.ace_autocomplete .ace_marker-layer .ace_line-hover {background-color: #DBE8F1;z-index: 1;}",e("../lib/dom").importCssString(t.cssText,t.cssClass)}))},9180:()=>{ace.define("ace/theme/hue_dark",["require","exports","module","ace/lib/dom"],(function(e,t,n){t.isDark=!0,t.cssClass="ace-hue-dark",t.cssText=".ace-hue-dark .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace-hue-dark .ace_print-margin {width: 1px;background: #232323;}.ace-hue-dark {background-color: #141414;color: #E7E7E7;}.ace-hue-dark .ace_cursor {color: #A7A7A7;}.ace-hue-dark .ace_marker-layer .ace_selection {background: rgba(221, 240, 255, 0.20);}.ace-hue-dark.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0 #141414;}.ace-hue-dark .ace_marker-layer .ace_step {background: rgb(102, 82, 0);}.ace-hue-dark .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(255, 255, 255, 0.25);}.ace-hue-dark .ace_marker-layer .ace_selected-word {border: 1px solid rgba(221, 240, 255, 0.20);}.ace-hue-dark .ace_marker-layer .ace_error-line {position: absolute;background-color: #FFB2B2;width: 100% !important;margin-left: -3px;border-radius: 0 !important;}.ace-hue-dark .ace_marker-layer .ace_warning-line {position: absolute;background-color: #fcf8e3;width: 100% !important;margin-left: -3px;border-radius: 0 !important;}.ace-hue-dark .ace_invisible {color: rgba(255, 255, 255, 0.25);}.ace-hue-dark .ace_keyword,.ace-hue-dark .ace_meta,.ace-hue-dark .ace_storage,.ace-hue-dark .ace_storage.ace_type,.ace-hue-dark .ace_support.ace_type {color: #B294BB;}.ace-hue .ace_keyword.ace_operator {color: #8ABEB7;}.ace-hue-dark .ace_gutter {background: #232323;color: #E2E2E2;}.ace-hue-dark .ace_gutter > .ace_layer {border-left: 1px solid #DBE8F1;color: #737373;}.ace-hue-dark .ace_gutter-cell.ace_error {background-color: #916062;border-left:1px solid #916062;background-image: none !important;}.ace-hue-dark .ace_gutter-cell.ace_warning {background-color: #fcf8e3;border-left:1px solid #f0c36d;background-image: none !important;}.ace-hue-dark .ace_gutter-cell {padding-left: 0 !important;padding-right: 3px !important;}.ace-hue-dark .ace_constant.ace_character,.ace-hue-dark .ace_constant.ace_language,.ace-hue-dark .ace_constant.ace_numeric,.ace-hue-dark .ace_keyword.ace_other.ace_unit,.ace-hue-dark .ace_support.ace_constant,.ace-hue-dark .ace_variable.ace_parameter {color: #7ECAEB;}.ace-hue-dark .ace_constant.ace_other {color: #666969;}.ace-hue-dark .ace_invalid {color: #E7E7E7;background-color: rgba(86, 45, 86, 0.75);}.ace-hue-dark .ace_invalid.ace_deprecated {color: #E7E7E7;background-color: rgba(86, 45, 86, 0.75);}.ace-hue-dark .ace_fold {background-color: #AC885B;border-color: #E7E7E7;}.ace-hue-dark .ace_entity.ace_name.ace_function,.ace-hue-dark .ace_support.ace_function,.ace-hue-dark .ace_variable {color: #81A2BE;}.ace-hue-dark .ace_support.ace_class,.ace-hue-dark .ace_support.ace_type {color: #9B859D;}.ace-hue-dark .ace_heading,.ace-hue-dark .ace_markup.ace_heading,.ace-hue-dark .ace_string {color: #8F9D6A;}.ace-hue-dark .ace_entity.ace_name.ace_tag,.ace-hue-dark .ace_entity.ace_other.ace_attribute-name,.ace-hue-dark .ace_meta.ace_tag,.ace-hue-dark .ace_string.ace_regexp,.ace-hue-dark .ace_variable {color: #AC885B;}.ace-hue-dark .ace_comment {color: #5F5A60;}.ace-hue-dark .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y;}.ace-hue-dark .ace-spinner, .ace-inline-button {position: absolute;z-index: 1030;}.ace-hue-dark .ace-inline-button {opacity: 0.7;}.ace-hue-dark .ace-inline-button:hover {opacity: 1;}.ace-hue-dark .ace_tooltip {background: #DCDCDC !important;border: none !important;color: #333;padding: 3px !important;}.ace-hue-dark .ace_tooltip hr {margin: 3px !important;}.ace-hue-dark .ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line,.ace-hue-dark .ace_editor.ace_autocomplete .ace_marker-layer .ace_line-hover {background-color: #DBE8F1;z-index: 1;}",e("../lib/dom").importCssString(t.cssText,t.cssClass)}))},841:()=>{try{ace.originalEdit=ace.edit;var e=ace.require("ace/range").Range;ace.edit=function(t){var n=ace.originalEdit(t);return n.enableAutocomplete=function(){n.setOptions({enableBasicAutocompletion:!0,enableLiveAutocompletion:!0})},n.disableAutocomplete=function(){n.setOptions({enableBasicAutocompletion:!1,enableLiveAutocompletion:!1})},n.removeTextBeforeCursor=function(t){var r=new e(this.getCursorPosition().row,this.getCursorPosition().column-t,this.getCursorPosition().row,this.getCursorPosition().column);n.getSession().getDocument().remove(r)},n.getTextBeforeCursor=function(t){var n=new e(0,0,this.getCursorPosition().row,this.getCursorPosition().column);return t?this.session.getTextRange(n).split(t).pop():this.session.getTextRange(n)},n.removeTextAfterCursor=function(t){var r=new e(this.getCursorPosition().row,this.getCursorPosition().column,this.getCursorPosition().row,this.getCursorPosition().column+t);n.getSession().getDocument().remove(r)},n.getTextAfterCursor=function(t){var n=new e(this.getCursorPosition().row,this.getCursorPosition().column,this.session.getLength(),this.session.getRowLength(this.session.getLength()));return t?this.session.getTextRange(n).split(t).shift():this.session.getTextRange(n)},n.getCursorScreenPosition=function(){return this.renderer.textToScreenCoordinates(this.getCursorPosition())},n.showSpinner=function(){var e=this.getCursorScreenPosition();0==$(".ace-spinner").length&&$("<i class='fa fa-spinner fa-spin ace-spinner'></i>").appendTo("body"),$(".ace-spinner").css("top",e.pageY+"px").css("left",e.pageX-4+"px").show()},n.hideSpinner=function(){$(".ace-spinner").hide()},n.showFileButton=function(){var e=this.getCursorScreenPosition();return 0==$(".ace-inline-button").length&&$("<a class='btn btn-mini ace-inline-button'><i class='fa fa-ellipsis-h'></i></a>").appendTo("body"),$(".ace-inline-button").css("top",e.pageY+"px").css("left",e.pageX+4+"px").show(),$(".ace-inline-button").off("click"),$(".ace-inline-button")},n.hideFileButton=function(){$(".ace-inline-button").hide()},n.clearAnnotations=function(e){"error"===e?this.session.setAnnotations(this.session.getAnnotations().filter((function(e){return"warning"===e.type}))):"warning"===e?this.session.setAnnotations(this.session.getAnnotations().filter((function(e){return"error"===e.type}))):this.session.clearAnnotations()},n.clearErrorsAndWarnings=function(e){for(var t in this.session.getMarkers()){var r=this.session.getMarkers()[t],i="ace_error-line"==r.clazz||"ace_warning-line"==r.clazz;"error"===e&&(i="ace_error-line"==r.clazz),"warning"===e&&(i="ace_warning-line"==r.clazz),i&&this.session.removeMarker(r.id)}n.clearAnnotations(e)},n.clearErrors=function(){n.clearErrorsAndWarnings("error")},n.clearWarnings=function(){n.clearErrorsAndWarnings("warning")},n.addError=function(t,n){var r=new e(n,0,n,this.session.getLine(n).length);this.session.addMarker(r,"ace_error-line");var i=this.session.getAnnotations();i.push({row:r.start.row,column:r.start.column,raw:t,text:t,type:"error"}),this.session.setAnnotations(i)},n.addWarning=function(t,n){var r=new e(n,0,n,this.session.getLine(n).length);this.session.addMarker(r,"ace_warning-line");var i=this.session.getAnnotations();i.push({row:r.start.row,column:r.start.column,raw:t,text:t,type:"warning"}),this.session.setAnnotations(i)},n}}catch(e){console.error("You need to include ace.js before including this snippet.")}},3780:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){window.DJANGO_DEBUG_MODE&&!window.HUE_I18n[e]&&(window.missing_I18n||(window.missing_I18n=[]),window.missing_I18n.push("'".concat(e,"': '${ _('").concat(e,"') }',")));for(var t=window.HUE_I18n&&window.HUE_I18n[e]||e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach((function(e){t=t.replace("%s",e)})),t}},8070:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}JSON.bigdataParse=function(){"use strict";var t,n,r,i,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},a=function(e){throw{name:"SyntaxError",message:e,at:t,text:r}},s=function(e){e&&e!==n&&a("Expected '"+e+"' instead of '"+n+"'");try{return n=r.charAt(t),t+=1,n}catch(e){return""}},c=function(){var e,t="";for("-"===n&&(t="-",s("-"));n>="0"&&n<="9";)t+=n,s();if("."===n)for(t+=".";s()&&n>="0"&&n<="9";)t+=n;if("e"===n||"E"===n)for(t+=n,s(),"-"!==n&&"+"!==n||(t+=n,s());n>="0"&&n<="9";)t+=n,s();if(e=+t,isFinite(e))return t.length>15?t:e;a("Bad number")},l=function(){var e,t,r,i="";if('"'===n)for(;s();){if('"'===n)return s(),i;if("\\"===n)if(s(),"u"===n){for(r=0,t=0;t<4&&(e=parseInt(s(),16),isFinite(e));t+=1)r=16*r+e;i+=String.fromCharCode(r)}else{if("string"!=typeof o[n])break;i+=o[n]}else i+=n}a("Bad string")},u=function(){for(;n&&n<=" ";)s()};return i=function(){switch(u(),n){case"{":return function(){var e,t={};if("{"===n){if(s("{"),u(),"}"===n)return s("}"),t;for(;n;){if(e=l(),u(),s(":"),Object.hasOwnProperty.call(t,e)&&a('Duplicate key "'+e+'"'),t[e]=i(),u(),"}"===n)return s("}"),t;s(","),u()}}a("Bad object")}();case"[":return function(){var e=[];if("["===n){if(s("["),u(),"]"===n)return s("]"),e;for(;n;){if(e.push(i()),u(),"]"===n)return s("]"),e;s(","),u()}}a("Bad array")}();case'"':return l();case"-":return c();default:return n>="0"&&n<="9"?c():function(){switch(n){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}a("Unexpected '"+n+"'")}()}},function(o,s){var c;return r=o,t=0,n=" ",c=i(),u(),n&&a("Syntax error"),"function"==typeof s?function t(n,r){var i,o,a=n[r];if(a&&"object"===e(a))for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(void 0!==(o=t(a,i))?a[i]=o:delete a[i]);return s.call(n,r,a)}({"":c},""):c}}()},8892:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".no-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box-shadow-top{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:-2px 0 8px rgba(0,0,0,.18);box-shadow:-2px 0 8px rgba(0,0,0,.18)}.box-shadow-right{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 2px 8px rgba(0,0,0,.18);box-shadow:0 2px 8px rgba(0,0,0,.18)}.box-shadow-bottom{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18)}.box-shadow-left{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 -2px 8px rgba(0,0,0,.18);box-shadow:0 -2px 8px rgba(0,0,0,.18)}.inset-box-shadow{-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important}.no-box-shadow{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}@-webkit-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-moz-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-ms-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-o-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@keyframes fade-in-frames{from{opacity:0}to{opacity:1}}.query-history-table{display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:-ms-flex;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;width:100%;height:100%}.query-history-table .query-history-top-bar{-ms-flex:0 0 auto;-webkit-flex:0 0 auto;flex:0 0 auto;padding:10px 5px}.query-history-table .query-history-top-bar .query-history-filter{float:left}.query-history-table .query-history-top-bar .query-history-actions{float:right}.query-history-table .query-history-top-bar .query-history-actions button{margin-left:5px}.query-history-table .query-history-table-container{-ms-flex:0 1 100%;-webkit-flex:0 1 100%;flex:0 1 100%;position:relative;overflow:hidden}.query-history-table .query-history-table-container .query-history-table-scrollable{position:relative;width:100%;height:100%;overflow:auto}.query-history-table .query-history-table-container .no-history-entries{padding-left:10px;font-style:italic;font-size:14px}.query-history-table .query-history-table-container table td:nth-child(1){width:100px}.query-history-table .query-history-table-container table td:nth-child(2),.query-history-table .query-history-table-container table td:nth-child(3){width:25px}.query-history-table .query-history-table-container table td:nth-child(4){width:100%}.query-history-table .query-history-table-container table td .query-history-last-executed,.query-history-table .query-history-table-container table td .query-history-status{color:#838b92}",""]);const o=i},911:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".ace-syntax-dropdown-container{position:fixed;z-index:10000}.ace-syntax-dropdown-container .hue-dropdown-drawer-inner{max-height:200px;overflow-y:auto}.ace-syntax-dropdown-container .hue-dropdown-drawer-inner li button{font-size:13px}",""]);const o=i},6696:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".result-grid{position:relative;height:100%;width:100%}.result-grid.grayed-out{opacity:.5}.result-grid.grayed-out ::v-deep(.hue-table-container){overflow:hidden !important}",""]);const o=i},2281:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".hue-btn{height:32px;border-radius:3px;border:solid 1px #d6d8db;background-color:#fff;color:#008cff;padding:0 12px}.hue-btn.hue-btn-small{font-size:12px;height:24px;padding:0 8px}.hue-btn.hue-btn-large{font-size:16px;height:40px;padding:0 20px}.hue-btn:hover{border:solid 1px #005ba6}.hue-btn:active{border:solid 1px #004379}.hue-btn[disabled]{cursor:default;color:#adb2b6;border:solid 1px #eaebec}.hue-btn:focus{outline:none}.hue-btn:focus-visible{border:solid 1px #004379;outline:#bee2ff auto 4px}.hue-btn.hue-btn-primary:not([disabled]){color:#fff;background-color:#008cff;border:solid 1px #008cff}.hue-btn.hue-btn-primary:not([disabled]):hover{background-color:#005ba6;border:solid 1px #005ba6}.hue-btn.hue-btn-primary:not([disabled]).active{background-color:#004379;border:solid 1px #004379}.hue-btn.hue-btn-primary:not([disabled]):focus-visible{border:solid 1px #1b2329}.hue-btn.hue-btn-alert:not([disabled]){color:#fff;background-color:#fe3f3f;border:solid 1px #fe3f3f}.hue-btn.hue-btn-alert:not([disabled]):hover{background-color:#9e1414;border:solid 1px #9e1414}.hue-btn.hue-btn-alert:not([disabled]):active{background-color:#6e0707;border:solid 1px #6e0707}.hue-btn.hue-btn-alert:not([disabled]):focus-visible{border:solid 1px #6e0707;outline-color:#ffc9c9;outline-width:4px}.hue-btn.hue-btn-borderless:not([disabled]){border:solid 1px transparent}.hue-btn.hue-btn-borderless:not([disabled]):hover{border:solid 1px #d6d8db}.hue-btn.hue-btn-borderless:not([disabled]):active{border:solid 1px #adb2b6}.hue-btn.hue-btn-borderless[disabled]{border:solid 1px transparent;color:#adb2b6}.hue-btn.hue-btn-alert[disabled],.hue-btn.hue-btn-primary[disabled]{background-color:#eaebec;border:solid 1px #eaebec}",""]);const o=i},5301:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".no-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box-shadow-top{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:-2px 0 8px rgba(0,0,0,.18);box-shadow:-2px 0 8px rgba(0,0,0,.18)}.box-shadow-right{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 2px 8px rgba(0,0,0,.18);box-shadow:0 2px 8px rgba(0,0,0,.18)}.box-shadow-bottom{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18)}.box-shadow-left{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 -2px 8px rgba(0,0,0,.18);box-shadow:0 -2px 8px rgba(0,0,0,.18)}.inset-box-shadow{-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important}.no-box-shadow{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}@-webkit-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-moz-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-ms-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-o-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@keyframes fade-in-frames{from{opacity:0}to{opacity:1}}.hue-table-container{overflow-x:auto;width:100%;margin:0 0 15px 0}.hue-table-container .hue-table{line-height:14px;table-layout:auto;border-collapse:separate}.hue-table-container .hue-table.header-less{border-collapse:collapse}.hue-table-container .hue-table.header-less tbody>tr:first-child{border-top:1px solid #d6d8db}.hue-table-container .hue-table thead tr,.hue-table-container .hue-table tbody tr{height:40px}.hue-table-container .hue-table thead tr th,.hue-table-container .hue-table thead tr td,.hue-table-container .hue-table tbody tr th,.hue-table-container .hue-table tbody tr td{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;height:16px;max-width:300px;padding:12px;border-bottom:1px solid #d6d8db;text-align:left}.hue-table-container .hue-table thead tr th.column-flush,.hue-table-container .hue-table thead tr td.column-flush,.hue-table-container .hue-table tbody tr th.column-flush,.hue-table-container .hue-table tbody tr td.column-flush{width:100%}.hue-table-container .hue-table thead tr th{background-color:#fff;color:#5a656d;font-size:13px;font-weight:500;white-space:nowrap}.hue-table-container .hue-table thead tr th.sticky-first-col{background-color:#fff;position:sticky;position:-webkit-sticky;left:0;z-index:102}.hue-table-container .hue-table thead tr th .sort-header{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}.hue-table-container .hue-table tbody tr td{color:#1b2329;font-size:14px}.hue-table-container .hue-table tbody tr td.sticky-first-col{position:sticky;position:-webkit-sticky;background-color:#fff;left:0;z-index:100}.hue-table-container .hue-table tbody tr td:last-of-type{padding-right:8px}.hue-table-container .hue-table tbody.clickable-rows tr{cursor:pointer}.hue-table-container .hue-table tbody.clickable-rows tr:hover{background-color:#edf7ff}.hue-table-container .hue-table.sticky-header thead th{position:sticky;position:-webkit-sticky;top:0;z-index:101}.hue-table-container .hue-table.sticky-header thead th.sticky-first-col{position:sticky;position:-webkit-sticky;top:0}",""]);const o=i},6758:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".no-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box-shadow-top{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:-2px 0 8px rgba(0,0,0,.18);box-shadow:-2px 0 8px rgba(0,0,0,.18)}.box-shadow-right{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 2px 8px rgba(0,0,0,.18);box-shadow:0 2px 8px rgba(0,0,0,.18)}.box-shadow-bottom{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18)}.box-shadow-left{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 -2px 8px rgba(0,0,0,.18);box-shadow:0 -2px 8px rgba(0,0,0,.18)}.inset-box-shadow{-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important}.no-box-shadow{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}@-webkit-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-moz-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-ms-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-o-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@keyframes fade-in-frames{from{opacity:0}to{opacity:1}}.hue-modal-mask{-webkit-transition:opacity .3s ease;-moz-transition:opacity .3s ease;-ms-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;position:fixed;z-index:9998;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);display:table}.hue-modal-enter{opacity:0}.hue-modal-leave-active{opacity:0}.hue-modal-enter .modal-container,.hue-modal-leave-active .modal-container{-webkit-transform:scale(1.1);-moz-transform:scale(1.1);-ms-transform:scale(1.1);-o-transform:scale(1.1)}.hue-modal-wrapper{display:table-cell;vertical-align:middle;opacity:1}.hue-modal-wrapper .hue-modal-container{display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:-ms-flex;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.33);-moz-box-shadow:0 2px 8px rgba(0,0,0,.33);box-shadow:0 2px 8px rgba(0,0,0,.33);-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease;width:500px;margin:0 auto;background-color:#fff;border-radius:3px}.hue-modal-wrapper .hue-modal-container .hue-modal-header{-ms-flex:0 1 auto;-webkit-flex:0 1 auto;flex:0 1 auto;padding:15px}.hue-modal-wrapper .hue-modal-container .hue-modal-header h3{float:left;margin-top:0;color:#0b7fad}.hue-modal-wrapper .hue-modal-container .hue-modal-header .hue-modal-close-button{float:right;padding:4px;font-size:28px;font-weight:bold;line-height:20px;opacity:.2;border:none;background-color:transparent}.hue-modal-wrapper .hue-modal-container .hue-modal-header .hue-modal-close-button:active,.hue-modal-wrapper .hue-modal-container .hue-modal-header .hue-modal-close-button:focus,.hue-modal-wrapper .hue-modal-container .hue-modal-header .hue-modal-close-button:focus-visible,.hue-modal-wrapper .hue-modal-container .hue-modal-header .hue-modal-close-button:hover{border:none;outline:none}.hue-modal-wrapper .hue-modal-container .hue-modal-header .hue-modal-close-button:hover{opacity:.7}.hue-modal-wrapper .hue-modal-container .hue-modal-body{-ms-flex:1 1 100%;-webkit-flex:1 1 100%;flex:1 1 100%;padding:5px 15px}.hue-modal-wrapper .hue-modal-container .hue-modal-footer{-ms-flex:0 1 auto;-webkit-flex:0 1 auto;flex:0 1 auto;padding:15px;text-align:right}.hue-modal-wrapper .hue-modal-container .hue-modal-footer button{margin-left:5px}",""]);const o=i},2616:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".hue-paginator{width:100%;height:25px;text-align:right;padding:10px 0}.hue-paginator .page-status{display:inline-block;margin-right:15px}.hue-paginator .navigation-actions{font-size:23px;margin-left:15px;margin-right:20px;display:inline-block}.hue-paginator .navigation-actions a{color:#5a656d}.hue-paginator .navigation-actions a.disabled{cursor:default;color:#eaebec}.hue-paginator .navigation-actions a:hover:not(.disabled){color:#005ba6}",""]);const o=i},2774:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".no-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box-shadow-top{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:-2px 0 8px rgba(0,0,0,.18);box-shadow:-2px 0 8px rgba(0,0,0,.18)}.box-shadow-right{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 2px 8px rgba(0,0,0,.18);box-shadow:0 2px 8px rgba(0,0,0,.18)}.box-shadow-bottom{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18)}.box-shadow-left{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 -2px 8px rgba(0,0,0,.18);box-shadow:0 -2px 8px rgba(0,0,0,.18)}.inset-box-shadow{-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important}.no-box-shadow{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}@-webkit-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-moz-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-ms-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-o-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@keyframes fade-in-frames{from{opacity:0}to{opacity:1}}.hue-search-input{display:inline-block;vertical-align:middle;position:relative;border-radius:3px;border:1px solid #d6d8db;background-color:#fff;height:30px;width:250px}.hue-search-input.search-input-small{height:24px;width:180px}.hue-search-input.search-input-small>div{height:24px}.hue-search-input.search-input-small>div .magnify-icon{top:4px;left:6px;font-size:14px}.hue-search-input.search-input-small>div input{line-height:14px}.hue-search-input.search-input-small>div input.magnify-icon-input{padding-left:30px}.hue-search-input>div{position:absolute;left:0;right:0;height:30px}.hue-search-input>div form{margin:0}.hue-search-input>div .magnify-icon{position:absolute;left:10px;top:6px;font-size:16px;color:#5a656d}.hue-search-input>div input{display:block;position:absolute;border:none;box-shadow:none;margin:0;line-height:15px;background-color:transparent;width:100%;height:100%;box-sizing:border-box}.hue-search-input>div input.magnify-icon-input{padding-left:35px}.hue-search-input>div input.hue-search-input-el{z-index:2}.hue-search-input>div input.hue-search-input-overlay{color:#989ea4;outline:none;z-index:1}",""]);const o=i},4801:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".no-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box-shadow-top{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:-2px 0 8px rgba(0,0,0,.18);box-shadow:-2px 0 8px rgba(0,0,0,.18)}.box-shadow-right{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 2px 8px rgba(0,0,0,.18);box-shadow:0 2px 8px rgba(0,0,0,.18)}.box-shadow-bottom{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18)}.box-shadow-left{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 -2px 8px rgba(0,0,0,.18);box-shadow:0 -2px 8px rgba(0,0,0,.18)}.inset-box-shadow{-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important}.no-box-shadow{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}@-webkit-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-moz-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-ms-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-o-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@keyframes fade-in-frames{from{opacity:0}to{opacity:1}}.spinner-container{-webkit-animation:fade-in-frames 0.5s;-moz-animation:fade-in-frames 0.5s;-ms-animation:fade-in-frames 0.5s;-o-animation:fade-in-frames 0.5s;animation:fade-in-frames 0.5s;position:relative;z-index:10000}.spinner-container.spinner{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto 0;vertical-align:center}.spinner-container.spinner-overlay{position:absolute;top:0;bottom:0;left:0;right:0;-webkit-animation:fade-in-frames 0.5s;-moz-animation:fade-in-frames 0.5s;-ms-animation:fade-in-frames 0.5s;-o-animation:fade-in-frames 0.5s;animation:fade-in-frames 0.5s;z-index:10000;background:rgba(255,255,255,.5)}.spinner-container.spinner-inline{-webkit-animation:fade-in-frames 0.5s;-moz-animation:fade-in-frames 0.5s;-ms-animation:fade-in-frames 0.5s;-o-animation:fade-in-frames 0.5s;animation:fade-in-frames 0.5s;display:inline-block;position:relative}.spinner-container.spinner-blackout{z-index:999;background-color:#fff}.spinner-container .spinner-inner{white-space:nowrap}.spinner-container .spinner-inner .hi{margin-bottom:0}.spinner-container .spinner-inner .spinner-spin{-webkit-animation:spin-frames 0.8s linear infinite;-moz-animation:spin-frames 0.8s linear infinite;-ms-animation:spin-frames 0.8s linear infinite;-o-animation:spin-frames 0.8s linear infinite;animation:spin-frames 0.8s linear infinite;color:#0b7fad}@-webkit-keyframes spin-frames{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}@-moz-keyframes spin-frames{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}@-ms-keyframes spin-frames{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}@-o-keyframes spin-frames{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}@keyframes spin-frames{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.spinner-container .spinner-inner span{margin-left:5px;color:#989ea4}.spinner-container .spinner-inner.spinner-center{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.spinner-container .spinner-inner.spinner-large{font-size:25px}.spinner-container .spinner-inner.spinner-large .spinner-spin{font-size:25px}.spinner-container .spinner-inner.spinner-large span{line-height:25px}.spinner-container .spinner-inner.spinner-xlarge{font-size:50px}.spinner-container .spinner-inner.spinner-xlarge .spinner-spin{font-size:50px}.spinner-container .spinner-inner.spinner-xlarge span{line-height:50px}.spinner-container .spinner-inner.spinner-large span,.spinner-container .spinner-inner.spinner-xlarge span{font-size:.6666666667em;vertical-align:top}",""]);const o=i},1974:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".no-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box-shadow-top{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:-2px 0 8px rgba(0,0,0,.18);box-shadow:-2px 0 8px rgba(0,0,0,.18)}.box-shadow-right{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 2px 8px rgba(0,0,0,.18);box-shadow:0 2px 8px rgba(0,0,0,.18)}.box-shadow-bottom{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18)}.box-shadow-left{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 -2px 8px rgba(0,0,0,.18);box-shadow:0 -2px 8px rgba(0,0,0,.18)}.inset-box-shadow{-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important}.no-box-shadow{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}@-webkit-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-moz-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-ms-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-o-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@keyframes fade-in-frames{from{opacity:0}to{opacity:1}}.hue-dropdown-drawer{position:fixed;z-index:10610}.hue-dropdown-drawer.open .hue-dropdown-drawer-inner{display:block}.hue-dropdown-drawer .hue-dropdown-drawer-inner{display:none;position:absolute;z-index:1000;margin:2px 0 0;padding:0;background-color:#fff;border:1px solid #d6d8db;border-radius:3px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2)}.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul{overflow-x:hidden;margin:0 !important;padding:0;list-style:none;font-size:13px}.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li.dropdown-divider{height:1px;background-color:#d6d8db}.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li{color:#333e47}.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li button,.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li a{display:block;width:100%;padding:6px 16px;clear:both;font-weight:400;text-align:inherit;white-space:nowrap;background-color:transparent;border:0;position:relative;outline:0}.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li button:hover,.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li button.active,.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li button.focus,.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li a:hover,.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li a.active,.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li a.focus{background-color:#dbe8f1}.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li.selected button,.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li.selected a{background-color:#dbe8f1}",""]);const o=i},633:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".hue-dropdown-menu .hue-dropdown-menu-inner{min-width:160px;max-width:250px;min-height:34px;max-height:200px;overflow-x:hidden;overflow-y:auto}",""]);const o=i},9369:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".hue-dropdown-panel{display:inline-block}",""]);const o=i},8345:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".hi{vertical-align:middle;display:inline-block !important;width:1em !important;height:1em !important;fill:currentColor;margin-bottom:.2em}.hi.hi-fw{width:1.28571429em !important}.hi.hi-bigger{height:1.1em !important}",""]);const o=i},172:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".no-select[data-v-5ccb4105]{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box-shadow-top[data-v-5ccb4105]{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:-2px 0 8px rgba(0,0,0,.18);box-shadow:-2px 0 8px rgba(0,0,0,.18)}.box-shadow-right[data-v-5ccb4105]{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 2px 8px rgba(0,0,0,.18);box-shadow:0 2px 8px rgba(0,0,0,.18)}.box-shadow-bottom[data-v-5ccb4105]{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18)}.box-shadow-left[data-v-5ccb4105]{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 -2px 8px rgba(0,0,0,.18);box-shadow:0 -2px 8px rgba(0,0,0,.18)}.inset-box-shadow[data-v-5ccb4105]{-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important}.no-box-shadow[data-v-5ccb4105]{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}@-webkit-keyframes fade-in-frames-5ccb4105{from{opacity:0}to{opacity:1}}@-moz-keyframes fade-in-frames-5ccb4105{from{opacity:0}to{opacity:1}}@-ms-keyframes fade-in-frames-5ccb4105{from{opacity:0}to{opacity:1}}@-o-keyframes fade-in-frames-5ccb4105{from{opacity:0}to{opacity:1}}@keyframes fade-in-frames-5ccb4105{from{opacity:0}to{opacity:1}}.executable-progress-container[data-v-5ccb4105]{height:3px;overflow:hidden;margin-bottom:2px;padding:0 5px}.executable-progress-container .executable-progress[data-v-5ccb4105]{width:100%;height:100%;position:relative}.executable-progress-container .executable-progress .executable-progress-bar[data-v-5ccb4105]{background-color:#fff;-webkit-transition:height .2s ease;-moz-transition:height .2s ease;-ms-transition:height .2s ease;-o-transition:height .2s ease;transition:height .2s ease}@-webkit-keyframes pulsate-5ccb4105{0%{margin-left:0}50%{margin-left:30px}100%{margin-left:0}}@-moz-keyframes pulsate-5ccb4105{0%{margin-left:0}50%{margin-left:30px}100%{margin-left:0}}@-ms-keyframes pulsate-5ccb4105{0%{margin-left:0}50%{margin-left:30px}100%{margin-left:0}}@-o-keyframes pulsate-5ccb4105{0%{margin-left:0}50%{margin-left:30px}100%{margin-left:0}}@keyframes pulsate-5ccb4105{0%{margin-left:0}50%{margin-left:30px}100%{margin-left:0}}.executable-progress-container .executable-progress .executable-progress-bar.progress-starting[data-v-5ccb4105]{background-color:#0b7fad;-webkit-animation:pulsate-5ccb4105 1s infinite;-moz-animation:pulsate-5ccb4105 1s infinite;-ms-animation:pulsate-5ccb4105 1s infinite;-o-animation:pulsate-5ccb4105 1s infinite;animation:pulsate-5ccb4105 1s infinite}.executable-progress-container .executable-progress .executable-progress-bar.progress-running[data-v-5ccb4105]{background-color:#0b7fad}.executable-progress-container .executable-progress .executable-progress-bar.progress-success[data-v-5ccb4105]{background-color:#6be36b}.executable-progress-container .executable-progress .executable-progress-bar.progress-failed[data-v-5ccb4105]{background-color:#fe6161}",""]);const o=i},9824:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,"input.limit-input[data-v-0a455a57]{-moz-appearance:textfield;border-radius:2px;height:13px;width:50px;margin:0 5px;padding:5px 6px}input.limit-input[data-v-0a455a57]::-webkit-outer-spin-button,input.limit-input[data-v-0a455a57]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}",""]);const o=i},1795:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,'.no-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box-shadow-top{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:-2px 0 8px rgba(0,0,0,.18);box-shadow:-2px 0 8px rgba(0,0,0,.18)}.box-shadow-right{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 2px 8px rgba(0,0,0,.18);box-shadow:0 2px 8px rgba(0,0,0,.18)}.box-shadow-bottom{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18)}.box-shadow-left{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 -2px 8px rgba(0,0,0,.18);box-shadow:0 -2px 8px rgba(0,0,0,.18)}.inset-box-shadow{-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important}.no-box-shadow{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}@-webkit-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-moz-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-ms-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-o-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@keyframes fade-in-frames{from{opacity:0}to{opacity:1}}.ace-editor-component{height:100%;width:100%;text-align:left;color:#000}.ace-editor-component .ace-editor{height:100%}.ace-editor-component .hue-ace-syntax-error{position:absolute;border-bottom:1px dotted #fe3f3f;border-radius:0 !important}.ace-editor-component .hue-ace-syntax-warning{position:absolute;border-bottom:1px dotted #ff8400;border-radius:0 !important}.ace-editor-component .ace-hue .ace_gutter-cell{border-right:1px solid transparent}.ace-editor-component .ace-hue .ace_gutter-cell.ace-active-gutter-decoration{background-color:#dbe8f1;border-right:1px solid #0b7fad}.ace-editor-component .ace-hue .ace_gutter-cell.ace-executing-gutter-decoration{background-color:#dbe8f1;border-right:1px solid #0b7fad;-webkit-animation:execute-pulse 2s infinite ease-in-out;-moz-animation:execute-pulse 2s infinite ease-in-out;-ms-animation:execute-pulse 2s infinite ease-in-out;-o-animation:execute-pulse 2s infinite ease-in-out;animation:execute-pulse 2s infinite ease-in-out}@-webkit-keyframes execute-pulse{0%{background-color:rgba(0,140,255,.1)}50%{background-color:rgba(0,140,255,.4);color:#5a656d}100%{background-color:rgba(0,140,255,.1)}}@-moz-keyframes execute-pulse{0%{background-color:rgba(0,140,255,.1)}50%{background-color:rgba(0,140,255,.4);color:#5a656d}100%{background-color:rgba(0,140,255,.1)}}@-ms-keyframes execute-pulse{0%{background-color:rgba(0,140,255,.1)}50%{background-color:rgba(0,140,255,.4);color:#5a656d}100%{background-color:rgba(0,140,255,.1)}}@-o-keyframes execute-pulse{0%{background-color:rgba(0,140,255,.1)}50%{background-color:rgba(0,140,255,.4);color:#5a656d}100%{background-color:rgba(0,140,255,.1)}}@keyframes execute-pulse{0%{background-color:rgba(0,140,255,.1)}50%{background-color:rgba(0,140,255,.4);color:#5a656d}100%{background-color:rgba(0,140,255,.1)}}.ace-editor-component .ace-hue .ace_gutter-cell.ace-failed-gutter-decoration{background-color:#ffecec;border-right:1px solid #9e1414}.ace-editor-component .ace-hue .ace_gutter-cell.ace-completed-gutter-decoration{background-color:#e5ffe5;border-right:1px solid #6be36b}.ace-editor-component .ace-hue .ace_gutter-cell.ace_error{background-color:#ffecec;border-right:1px solid #9e1414;border-left:none}.ace-editor-component .ace-hue .hue-ace-location{position:absolute;background-color:#dbe8f1;border:1px solid #dbe8f1;border-radius:1px;margin-left:-1px;margin-top:-1px}.ace-editor-component .ace-hue .ace_marker-layer .ace-failed-marker{position:absolute;width:100% !important;margin-left:-3px}.ace-editor-component .ace-hue .ace_marker-layer .ace-failed-marker,.ace-editor-component .ace-hue .ace_marker-layer .ace_error-line{background-color:#ffecec !important;opacity:.5;z-index:6}.ace-editor-component .ace-hue-dark .ace_gutter-cell{border-right:1px solid transparent}.ace-editor-component .ace-hue-dark .ace_gutter-cell.ace-active-gutter-decoration{background-color:#19323c;color:#cbdae0;border-right:1px solid #224452}.ace-editor-component .ace-hue-dark .ace_gutter-cell.ace_error{background-color:#ffecec;border-right:1px solid #9e1414;border-left:none}.ace-editor-component .ace-hue-dark .hue-ace-location{position:absolute;background-color:#19323c;border:1px solid #19323c;border-radius:1px;margin-left:-1px;margin-top:-1px}.ace-editor-component .ace-hue-dark .ace_marker-layer .ace-failed-marker{position:absolute;width:100% !important;margin-left:-3px}.ace-editor-component .ace-hue-dark .ace_marker-layer .ace-failed-marker,.ace-editor-component .ace-hue-dark .ace_marker-layer .ace_error-line{background-color:#ffecec !important;opacity:.5;z-index:6}.ace-editor-component .hue-ace-autocompleter{display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:-ms-flex;display:flex;position:fixed;z-index:999;max-height:250px;align-items:flex-start}.ace-editor-component .autocompleter-suggestions,.ace-editor-component .autocompleter-details{display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:-ms-flex;display:flex;-ms-flex:0 0 300px;-webkit-flex:0 0 300px;flex:0 0 300px;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18);width:300px;max-height:250px;overflow:hidden;border:1px solid #d6d8db;border-radius:2px;background-color:#fff}.ace-editor-component .autocompleter-suggestions{z-index:1002}.ace-editor-component .autocompleter-details{z-index:1001;margin-left:5px}.ace-editor-component .autocompleter-header{-ms-flex:0 0 20px;-webkit-flex:0 0 20px;flex:0 0 20px;position:relative;padding:5px;background-color:#fafbfc;line-height:20px;font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ace-editor-component .autocompleter-header .popular{color:#ffa139;margin-top:3px;float:right}.ace-editor-component .autocompleter-header-popularity{position:absolute;top:5px;right:5px;width:19px;height:19px}.ace-editor-component .autocompleter-spinner{position:relative;float:right;width:15px;margin-top:1px}.ace-editor-component .autocompleter-categories{display:inline-block;float:left}.ace-editor-component .autocompleter-categories>div{display:inline-block;border-bottom:2px solid transparent;cursor:pointer;padding:0 5px}.ace-editor-component .autocompleter-categories>div.active{display:inline-block;border-bottom:2px solid #31a2ff;cursor:default}.ace-editor-component .autocompleter-entries{max-height:225px;position:relative;overflow-y:auto}.ace-editor-component .autocompleter-suggestion{height:19px;clear:both;background-color:#fff;padding:3px;cursor:pointer;position:relative;font:12px normal Roboto Mono,Menlo,Monaco,Consolas,"Courier New",monospace;direction:ltr;line-height:18px}.ace-editor-component .autocompleter-suggestion:hover{background-color:#eaebec}.ace-editor-component .autocompleter-suggestion.selected{background-color:#d6d8db}.ace-editor-component .autocompleter-suggestion-value{width:85%;margin-left:3px;margin-right:6px;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.ace-editor-component .autocompleter-suggestion-value b{font-weight:bolder}.ace-editor-component .autocompleter-suggestion-meta{position:absolute;background-color:inherit;z-index:1;right:0;top:3px;padding-right:3px;color:#5a656d;max-width:65px;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden}.ace-editor-component .autocompleter-dot{display:inline-block;margin-top:5px;margin-right:5px;width:8px;height:8px;border-radius:4px}.ace-editor-component .autocompleter-details-contents{max-height:225px;position:relative;overflow-y:auto}.ace-editor-component .autocompleter-details-contents-inner{padding:7px}.ace-editor-component .autocompleter-details-contents .details-attribute,.ace-editor-component .autocompleter-details-contents .details-popularity{color:#5a656d;display:inline-block}.ace-editor-component .autocompleter-details-contents .details-popularity .progress{display:inline-block;border-radius:2px;height:10px;width:80px}.ace-editor-component .autocompleter-details-contents .details-popularity .progress .bar{background-color:#31a2ff}.ace-editor-component .autocompleter-details-contents .details-comment,.ace-editor-component .autocompleter-details-contents .details-description{font-size:14px;margin-top:5px;margin-bottom:5px;color:#5a656d}.ace-editor-component .autocompleter-details-contents .details-header{font-size:14px;font-weight:bold;margin:2px 0}.ace-editor-component .autocompleter-details-contents .details-no-comment{margin-top:5px;margin-bottom:5px;font-size:13px;color:#5a656d;font-style:italic}.ace-editor-component .autocompleter-details-contents .details-comment *{font-size:13px !important;line-height:14px !important;white-space:pre}.ace-editor-component .autocompleter-details-contents .details-code{background-color:#fafbfc;padding:3px;color:#5a656d;font:12px normal Roboto Mono,Menlo,Monaco,Consolas,"Courier New",monospace;direction:ltr}.ace-editor-component .fn-details{max-width:600px;white-space:normal;overflow-y:auto;height:100%;padding:8px}.ace-editor-component .fn-sig{white-space:pre;font-family:monospace}',""]);const o=i},1519:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,"button .hue-icon[data-v-67701e3a]{font-size:16px}.hue-icon[data-v-67701e3a]{vertical-align:middle;display:inline-block !important;width:1em !important;height:1em !important;fill:currentColor;margin-bottom:.2em}.hue-icon.hue-icon-fw[data-v-67701e3a]{width:1.28571429em !important}.hue-icon.hue-icon-bigger[data-v-67701e3a]{height:1.1em !important}",""]);const o=i},7169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(6907)),i=l(n(3467)),o=l(n(3184)),a=l(n(3859)),s=n(8690),c=n(6963);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cfg=t,this.indentation=new i.default(this.cfg.indent),this.inlineBlock=new o.default,this.params=new a.default(this.cfg.params),this.previousReservedToken={},this.tokens=[],this.index=0}var t,n;return t=e,n=[{key:"tokenizer",value:function(){throw new Error("tokenizer() not implemented by subclass")}},{key:"tokenOverride",value:function(e){return e}},{key:"format",value:function(e){return this.tokens=this.tokenizer().tokenize(e),this.getFormattedQueryFromTokens().trim()}},{key:"getFormattedQueryFromTokens",value:function(){var e=this,t="";return this.tokens.forEach((function(n,i){e.index=i,(n=e.tokenOverride(n)).type===r.default.LINE_COMMENT?t=e.formatLineComment(n,t):n.type===r.default.BLOCK_COMMENT?t=e.formatBlockComment(n,t):n.type===r.default.RESERVED_TOP_LEVEL?(t=e.formatTopLevelReservedWord(n,t),e.previousReservedToken=n):n.type===r.default.RESERVED_TOP_LEVEL_NO_INDENT?(t=e.formatTopLevelReservedWordNoIndent(n,t),e.previousReservedToken=n):n.type===r.default.RESERVED_NEWLINE?(t=e.formatNewlineReservedWord(n,t),e.previousReservedToken=n):n.type===r.default.RESERVED?(t=e.formatWithSpaces(n,t),e.previousReservedToken=n):t=n.type===r.default.OPEN_PAREN?e.formatOpeningParentheses(n,t):n.type===r.default.CLOSE_PAREN?e.formatClosingParentheses(n,t):n.type===r.default.PLACEHOLDER?e.formatPlaceholder(n,t):","===n.value?e.formatComma(n,t):":"===n.value?e.formatWithSpaceAfter(n,t):"."===n.value?e.formatWithoutSpaces(n,t):";"===n.value?e.formatQuerySeparator(n,t):e.formatWithSpaces(n,t)})),t}},{key:"formatLineComment",value:function(e,t){return this.addNewline(t+this.show(e))}},{key:"formatBlockComment",value:function(e,t){return this.addNewline(this.addNewline(t)+this.indentComment(e.value))}},{key:"indentComment",value:function(e){return e.replace(/\n[\t ]*/g,"\n"+this.indentation.getIndent()+" ")}},{key:"formatTopLevelReservedWordNoIndent",value:function(e,t){return this.indentation.decreaseTopLevel(),t=this.addNewline(t)+this.equalizeWhitespace(this.show(e)),this.addNewline(t)}},{key:"formatTopLevelReservedWord",value:function(e,t){return this.indentation.decreaseTopLevel(),t=this.addNewline(t),this.indentation.increaseTopLevel(),t+=this.equalizeWhitespace(this.show(e)),this.addNewline(t)}},{key:"formatNewlineReservedWord",value:function(e,t){return(0,c.isAnd)(e)&&(0,c.isBetween)(this.tokenLookBehind(2))?this.formatWithSpaces(e,t):this.addNewline(t)+this.equalizeWhitespace(this.show(e))+" "}},{key:"equalizeWhitespace",value:function(e){return e.replace(/[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+/g," ")}},{key:"formatOpeningParentheses",value:function(e,t){var n,i,o=(u(n={},r.default.OPEN_PAREN,!0),u(n,r.default.LINE_COMMENT,!0),u(n,r.default.OPERATOR,!0),n);return 0!==e.whitespaceBefore.length||o[null===(i=this.tokenLookBehind())||void 0===i?void 0:i.type]||(t=(0,s.trimSpacesEnd)(t)),t+=this.show(e),this.inlineBlock.beginIfPossible(this.tokens,this.index),this.inlineBlock.isActive()||(this.indentation.increaseBlockLevel(),t=this.addNewline(t)),t}},{key:"formatClosingParentheses",value:function(e,t){return this.inlineBlock.isActive()?(this.inlineBlock.end(),this.formatWithSpaceAfter(e,t)):(this.indentation.decreaseBlockLevel(),this.formatWithSpaces(e,this.addNewline(t)))}},{key:"formatPlaceholder",value:function(e,t){return t+this.params.get(e)+" "}},{key:"formatComma",value:function(e,t){return t=(0,s.trimSpacesEnd)(t)+this.show(e)+" ",this.inlineBlock.isActive()||(0,c.isLimit)(this.previousReservedToken)?t:this.addNewline(t)}},{key:"formatWithSpaceAfter",value:function(e,t){return(0,s.trimSpacesEnd)(t)+this.show(e)+" "}},{key:"formatWithoutSpaces",value:function(e,t){return(0,s.trimSpacesEnd)(t)+this.show(e)}},{key:"formatWithSpaces",value:function(e,t){return t+this.show(e)+" "}},{key:"formatQuerySeparator",value:function(e,t){return this.indentation.resetIndentation(),(0,s.trimSpacesEnd)(t)+(this.cfg.indentQuerySeparator?"\n":"")+this.show(e)+"\n".repeat(this.cfg.linesBetweenQueries||1)}},{key:"show",value:function(e){var t=e.type,n=e.value;return!this.cfg.uppercase||t!==r.default.RESERVED&&t!==r.default.RESERVED_TOP_LEVEL&&t!==r.default.RESERVED_TOP_LEVEL_NO_INDENT&&t!==r.default.RESERVED_NEWLINE&&t!==r.default.OPEN_PAREN&&t!==r.default.CLOSE_PAREN?n:n.toUpperCase()}},{key:"addNewline",value:function(e){return(e=(0,s.trimSpacesEnd)(e)).endsWith("\n")||(e+="\n"),e+this.indentation.getIndent()}},{key:"tokenLookBehind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.tokens[this.index-e]}},{key:"tokenLookAhead",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.tokens[this.index+e]}}],n&&h(t.prototype,n),e}();t.default=d,e.exports=t.default},3467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(8690);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o="top-level",a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.indent=t||" ",this.indentTypes=[]}var t,n;return t=e,(n=[{key:"getIndent",value:function(){return this.indent.repeat(this.indentTypes.length)}},{key:"increaseTopLevel",value:function(){this.indentTypes.push(o)}},{key:"increaseBlockLevel",value:function(){this.indentTypes.push("block-level")}},{key:"decreaseTopLevel",value:function(){this.indentTypes.length>0&&(0,r.last)(this.indentTypes)===o&&this.indentTypes.pop()}},{key:"decreaseBlockLevel",value:function(){for(;this.indentTypes.length>0&&this.indentTypes.pop()===o;);}},{key:"resetIndentation",value:function(){this.indentTypes=[]}}])&&i(t.prototype,n),e}();t.default=a,e.exports=t.default},3184:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(6907))&&r.__esModule?r:{default:r};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.level=0}var t,n;return t=e,(n=[{key:"beginIfPossible",value:function(e,t){0===this.level&&this.isInlineBlock(e,t)?this.level=1:this.level>0?this.level++:this.level=0}},{key:"end",value:function(){this.level--}},{key:"isActive",value:function(){return this.level>0}},{key:"isInlineBlock",value:function(e,t){for(var n=0,r=0,o=t;o<e.length;o++){var a=e[o];if((n+=a.value.length)>50)return!1;if(a.type===i.default.OPEN_PAREN)r++;else if(a.type===i.default.CLOSE_PAREN&&0==--r)return!0;if(this.isForbiddenToken(a))return!1}return!1}},{key:"isForbiddenToken",value:function(e){var t=e.type,n=e.value;return t===i.default.RESERVED_TOP_LEVEL||t===i.default.RESERVED_NEWLINE||t===i.default.COMMENT||t===i.default.BLOCK_COMMENT||";"===n}}])&&o(t.prototype,n),e}();t.default=a,e.exports=t.default},3859:(e,t)=>{"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.params=t,this.index=0}var t,r;return t=e,(r=[{key:"get",value:function(e){var t=e.key,n=e.value;return this.params?t?this.params[t]:this.params[this.index++]:n}}])&&n(t.prototype,r),e}();t.default=r,e.exports=t.default},5828:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(6907))&&i.__esModule?i:{default:i},a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}(n(8214)),s=n(8690);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var p=function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.WHITESPACE_REGEX=/^([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+)/,this.NUMBER_REGEX=/^((\x2D[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)?[0-9]+(\.[0-9]+)?([Ee]\x2D?[0-9]+(\.[0-9]+)?)?|0x[0-9A-Fa-f]+|0b[01]+)\b/,this.OPERATOR_REGEX=a.createOperatorRegex(["<>","<=",">="].concat(function(e){if(Array.isArray(e))return d(e)}(n=t.operators||[])||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),this.BLOCK_COMMENT_REGEX=/^(\/\*(?:(?![])[\s\S])*?(?:\*\/|$))/,this.LINE_COMMENT_REGEX=a.createLineCommentRegex(t.lineCommentTypes),this.RESERVED_TOP_LEVEL_REGEX=a.createReservedWordRegex(t.reservedTopLevelWords),this.RESERVED_TOP_LEVEL_NO_INDENT_REGEX=a.createReservedWordRegex(t.reservedTopLevelWordsNoIndent),this.RESERVED_NEWLINE_REGEX=a.createReservedWordRegex(t.reservedNewlineWords),this.RESERVED_PLAIN_REGEX=a.createReservedWordRegex(t.reservedWords),this.WORD_REGEX=a.createWordRegex(t.specialWordChars),this.STRING_REGEX=a.createStringRegex(t.stringTypes),this.OPEN_PAREN_REGEX=a.createParenRegex(t.openParens),this.CLOSE_PAREN_REGEX=a.createParenRegex(t.closeParens),this.INDEXED_PLACEHOLDER_REGEX=a.createPlaceholderRegex(t.indexedPlaceholderTypes,"[0-9]*"),this.IDENT_NAMED_PLACEHOLDER_REGEX=a.createPlaceholderRegex(t.namedPlaceholderTypes,"[a-zA-Z0-9._$]+"),this.STRING_NAMED_PLACEHOLDER_REGEX=a.createPlaceholderRegex(t.namedPlaceholderTypes,a.createStringPattern(t.stringTypes))}var t,n;return t=e,(n=[{key:"tokenize",value:function(e){for(var t,n=[];e.length;){var r=this.getWhitespace(e);(e=e.substring(r.length)).length&&(t=this.getNextToken(e,t),e=e.substring(t.value.length),n.push(u(u({},t),{},{whitespaceBefore:r})))}return n}},{key:"getWhitespace",value:function(e){var t=e.match(this.WHITESPACE_REGEX);return t?t[1]:""}},{key:"getNextToken",value:function(e,t){return this.getCommentToken(e)||this.getStringToken(e)||this.getOpenParenToken(e)||this.getCloseParenToken(e)||this.getPlaceholderToken(e)||this.getNumberToken(e)||this.getReservedWordToken(e,t)||this.getWordToken(e)||this.getOperatorToken(e)}},{key:"getCommentToken",value:function(e){return this.getLineCommentToken(e)||this.getBlockCommentToken(e)}},{key:"getLineCommentToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.LINE_COMMENT,regex:this.LINE_COMMENT_REGEX})}},{key:"getBlockCommentToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.BLOCK_COMMENT,regex:this.BLOCK_COMMENT_REGEX})}},{key:"getStringToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.STRING,regex:this.STRING_REGEX})}},{key:"getOpenParenToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.OPEN_PAREN,regex:this.OPEN_PAREN_REGEX})}},{key:"getCloseParenToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.CLOSE_PAREN,regex:this.CLOSE_PAREN_REGEX})}},{key:"getPlaceholderToken",value:function(e){return this.getIdentNamedPlaceholderToken(e)||this.getStringNamedPlaceholderToken(e)||this.getIndexedPlaceholderToken(e)}},{key:"getIdentNamedPlaceholderToken",value:function(e){return this.getPlaceholderTokenWithKey({input:e,regex:this.IDENT_NAMED_PLACEHOLDER_REGEX,parseKey:function(e){return e.slice(1)}})}},{key:"getStringNamedPlaceholderToken",value:function(e){var t=this;return this.getPlaceholderTokenWithKey({input:e,regex:this.STRING_NAMED_PLACEHOLDER_REGEX,parseKey:function(e){return t.getEscapedPlaceholderKey({key:e.slice(2,-1),quoteChar:e.slice(-1)})}})}},{key:"getIndexedPlaceholderToken",value:function(e){return this.getPlaceholderTokenWithKey({input:e,regex:this.INDEXED_PLACEHOLDER_REGEX,parseKey:function(e){return e.slice(1)}})}},{key:"getPlaceholderTokenWithKey",value:function(e){var t=e.input,n=e.regex,r=e.parseKey,i=this.getTokenOnFirstMatch({input:t,regex:n,type:o.default.PLACEHOLDER});return i&&(i.key=r(i.value)),i}},{key:"getEscapedPlaceholderKey",value:function(e){var t=e.key,n=e.quoteChar;return t.replace(new RegExp((0,s.escapeRegExp)("\\"+n),"gu"),n)}},{key:"getNumberToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.NUMBER,regex:this.NUMBER_REGEX})}},{key:"getOperatorToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.OPERATOR,regex:this.OPERATOR_REGEX})}},{key:"getReservedWordToken",value:function(e,t){if(!t||!t.value||"."!==t.value)return this.getTopLevelReservedToken(e)||this.getNewlineReservedToken(e)||this.getTopLevelReservedTokenNoIndent(e)||this.getPlainReservedToken(e)}},{key:"getTopLevelReservedToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.RESERVED_TOP_LEVEL,regex:this.RESERVED_TOP_LEVEL_REGEX})}},{key:"getNewlineReservedToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.RESERVED_NEWLINE,regex:this.RESERVED_NEWLINE_REGEX})}},{key:"getTopLevelReservedTokenNoIndent",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.RESERVED_TOP_LEVEL_NO_INDENT,regex:this.RESERVED_TOP_LEVEL_NO_INDENT_REGEX})}},{key:"getPlainReservedToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.RESERVED,regex:this.RESERVED_PLAIN_REGEX})}},{key:"getWordToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.WORD,regex:this.WORD_REGEX})}},{key:"getTokenOnFirstMatch",value:function(e){var t=e.input,n=e.type,r=e.regex,i=t.match(r);return i?{type:n,value:i[1]}:void 0}}])&&f(t.prototype,n),e}();t.default=p,e.exports=t.default},8214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createOperatorRegex=function(e){return new RegExp("^(".concat((0,r.sortByLengthDesc)(e).map(r.escapeRegExp).join("|"),"|.)"),"u")},t.createLineCommentRegex=function(e){return new RegExp("^((?:".concat(e.map((function(e){return(0,r.escapeRegExp)(e)})).join("|"),").*?)(?:\r\n|\r|\n|$)"),"u")},t.createReservedWordRegex=function(e){if(0===e.length)return new RegExp("^\b$","u");var t=(0,r.sortByLengthDesc)(e).join("|").replace(/ /g,"\\s+");return new RegExp("^(".concat(t,")\\b"),"iu")},t.createWordRegex=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new RegExp("^([\\p{Alphabetic}\\p{Mark}\\p{Decimal_Number}\\p{Connector_Punctuation}\\p{Join_Control}".concat(e.join(""),"]+)"),"u")},t.createStringRegex=function(e){return new RegExp("^("+i(e)+")","u")},t.createStringPattern=i,t.createParenRegex=function(e){return new RegExp("^("+e.map(o).join("|")+")","iu")},t.createPlaceholderRegex=function(e,t){if((0,r.isEmpty)(e))return!1;var n=e.map(r.escapeRegExp).join("|");return new RegExp("^((?:".concat(n,")(?:").concat(t,"))"),"u")};var r=n(8690);function i(e){var t={"``":"((`[^`]*($|`))+)","{}":"((\\{[^\\}]*($|\\}))+)","[]":"((\\[[^\\]]*($|\\]))(\\][^\\]]*($|\\]))*)",'""':'(("[^"\\\\]*(?:\\\\.[^"\\\\]*)*("|$))+)',"''":"(('[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)","N''":"((N'[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)","U&''":"((U&'[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)",'U&""':'((U&"[^"\\\\]*(?:\\\\.[^"\\\\]*)*("|$))+)',$$:"((?<tag>\\$\\w*\\$)[\\s\\S]*?(?:\\k<tag>|$))"};return e.map((function(e){return t[e]})).join("|")}function o(e){return 1===e.length?(0,r.escapeRegExp)(e):"\\b"+e+"\\b"}},6963:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEnd=t.isWindow=t.isBy=t.isSet=t.isLimit=t.isBetween=t.isAnd=void 0;var r,i=(r=n(6907))&&r.__esModule?r:{default:r},o=function(e,t){return function(n){return(null==n?void 0:n.type)===e&&t.test(null==n?void 0:n.value)}},a=o(i.default.RESERVED_NEWLINE,/^AND$/i);t.isAnd=a;var s=o(i.default.RESERVED,/^BETWEEN$/i);t.isBetween=s;var c=o(i.default.RESERVED_TOP_LEVEL,/^LIMIT$/i);t.isLimit=c;var l=o(i.default.RESERVED_TOP_LEVEL,/^[S\u017F]ET$/i);t.isSet=l;var u=o(i.default.RESERVED,/^BY$/i);t.isBy=u;var h=o(i.default.RESERVED_TOP_LEVEL,/^WINDOW$/i);t.isWindow=h;var d=o(i.default.CLOSE_PAREN,/^END$/i);t.isEnd=d},6907:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={WORD:"word",STRING:"string",RESERVED:"reserved",RESERVED_TOP_LEVEL:"reserved-top-level",RESERVED_TOP_LEVEL_NO_INDENT:"reserved-top-level-no-indent",RESERVED_NEWLINE:"reserved-newline",OPERATOR:"operator",OPEN_PAREN:"open-paren",CLOSE_PAREN:"close-paren",LINE_COMMENT:"line-comment",BLOCK_COMMENT:"block-comment",NUMBER:"number",PLACEHOLDER:"placeholder"},e.exports=t.default},3358:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(7169)),o=a(n(5828));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=["ABS","ACTIVATE","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","ANY","ARE","ARRAY","AS","ASC","ASENSITIVE","ASSOCIATE","ASUTIME","ASYMMETRIC","AT","ATOMIC","ATTRIBUTES","AUDIT","AUTHORIZATION","AUX","AUXILIARY","AVG","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BUFFERPOOL","BY","CACHE","CALL","CALLED","CAPTURE","CARDINALITY","CASCADED","CASE","CAST","CCSID","CEIL","CEILING","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CLOB","CLONE","CLOSE","CLUSTER","COALESCE","COLLATE","COLLECT","COLLECTION","COLLID","COLUMN","COMMENT","COMMIT","CONCAT","CONDITION","CONNECT","CONNECTION","CONSTRAINT","CONTAINS","CONTINUE","CONVERT","CORR","CORRESPONDING","COUNT","COUNT_BIG","COVAR_POP","COVAR_SAMP","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DATE","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFINITION","DELETE","DENSERANK","DENSE_RANK","DEREF","DESCRIBE","DESCRIPTOR","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DOUBLE","DROP","DSSIZE","DYNAMIC","EACH","EDITPROC","ELEMENT","ELSE","ELSEIF","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ERASE","ESCAPE","EVERY","EXCEPTION","EXCLUDING","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXP","EXPLAIN","EXTENDED","EXTERNAL","EXTRACT","FALSE","FENCED","FETCH","FIELDPROC","FILE","FILTER","FINAL","FIRST","FLOAT","FLOOR","FOR","FOREIGN","FREE","FULL","FUNCTION","FUSION","GENERAL","GENERATED","GET","GLOBAL","GOTO","GRANT","GRAPHIC","GROUP","GROUPING","HANDLER","HASH","HASHED_VALUE","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IMMEDIATE","IN","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDICATOR","INDICATORS","INF","INFINITY","INHERIT","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTEGRITY","INTERSECTION","INTERVAL","INTO","IS","ISOBID","ISOLATION","ITERATE","JAR","JAVA","KEEP","KEY","LABEL","LANGUAGE","LARGE","LATERAL","LC_CTYPE","LEADING","LEAVE","LEFT","LIKE","LINKTYPE","LN","LOCAL","LOCALDATE","LOCALE","LOCALTIME","LOCALTIMESTAMP","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LONG","LOOP","LOWER","MAINTAINED","MATCH","MATERIALIZED","MAX","MAXVALUE","MEMBER","MERGE","METHOD","MICROSECOND","MICROSECONDS","MIN","MINUTE","MINUTES","MINVALUE","MOD","MODE","MODIFIES","MODULE","MONTH","MONTHS","MULTISET","NAN","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZE","NORMALIZED","NOT","NULL","NULLIF","NULLS","NUMERIC","NUMPARTS","OBID","OCTET_LENGTH","OF","OFFSET","OLD","OLD_TABLE","ON","ONLY","OPEN","OPTIMIZATION","OPTIMIZE","OPTION","ORDER","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","PACKAGE","PADDED","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSWORD","PATH","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","PIECESIZE","PLAN","POSITION","POWER","PRECISION","PREPARE","PREVVAL","PRIMARY","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","RANGE","RANK","READ","READS","REAL","RECOVERY","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROUTINE","ROW","ROWNUMBER","ROWS","ROWSET","ROW_NUMBER","RRN","RUN","SAVEPOINT","SCHEMA","SCOPE","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURITY","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SIGNAL","SIMILAR","SIMPLE","SMALLINT","SNAN","SOME","SOURCE","SPECIFIC","SPECIFICTYPE","SQL","SQLEXCEPTION","SQLID","SQLSTATE","SQLWARNING","SQRT","STACKED","STANDARD","START","STARTING","STATEMENT","STATIC","STATMENT","STAY","STDDEV_POP","STDDEV_SAMP","STOGROUP","STORES","STYLE","SUBMULTISET","SUBSTRING","SUM","SUMMARY","SYMMETRIC","SYNONYM","SYSFUN","SYSIBM","SYSPROC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","TABLESPACE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSACTION","TRANSLATE","TRANSLATION","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TYPE","UESCAPE","UNDO","UNIQUE","UNKNOWN","UNNEST","UNTIL","UPPER","USAGE","USER","USING","VALIDPROC","VALUE","VARCHAR","VARIABLE","VARIANT","VARYING","VAR_POP","VAR_SAMP","VCAT","VERSION","VIEW","VOLATILE","VOLUMES","WHEN","WHENEVER","WHILE","WIDTH_BUCKET","WINDOW","WITH","WITHIN","WITHOUT","WLM","WRITE","XMLELEMENT","XMLEXISTS","XMLNAMESPACES","YEAR","YEARS"],f=["ADD","AFTER","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FETCH FIRST","FROM","GROUP BY","GO","HAVING","INSERT INTO","INTERSECT","LIMIT","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UPDATE","VALUES","WHERE"],p=["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],g=["AND","OR","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(m,e);var t,n,r,i,a=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function m(){return s(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:f,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:p,stringTypes:['""',"''","``","[]"],openParens:["("],closeParens:[")"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],specialWordChars:["#","@"],operators:["**","!=","!>","!>","||"]})}}])&&c(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},3700:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(7169)),o=a(n(5828));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BIGINT","BINARY","BLOB","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHAR","CHARACTER","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEC","DECIMAL","DECLARE","DEFAULT","DELAYED","DELETE","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DO_DOMAIN_IDS","DOUBLE","DROP","DUAL","EACH","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FLOAT","FLOAT4","FLOAT8","FOR","FORCE","FOREIGN","FROM","FULLTEXT","GENERAL","GRANT","GROUP","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IGNORE_DOMAIN_IDS","IGNORE_SERVER_IDS","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERSECT","INTERVAL","INTO","IS","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER_HEARTBEAT_PERIOD","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NULL","NUMERIC","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PAGE_CHECKSUM","PARSE_VCOL_EXPR","PARTITION","POSITION","PRECISION","PRIMARY","PROCEDURE","PURGE","RANGE","READ","READS","READ_WRITE","REAL","RECURSIVE","REF_SYSTEM_ID","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","RETURNING","REVOKE","RIGHT","RLIKE","ROWS","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SLOW","SMALLINT","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STRAIGHT_JOIN","TABLE","TERMINATED","THEN","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARYING","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],f=["ADD","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","ORDER BY","SELECT","SET","UPDATE","VALUES","WHERE"],p=["INTERSECT","INTERSECT ALL","UNION","UNION ALL"],g=["AND","ELSE","OR","WHEN","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","CROSS JOIN","NATURAL JOIN","STRAIGHT_JOIN","NATURAL LEFT JOIN","NATURAL LEFT OUTER JOIN","NATURAL RIGHT JOIN","NATURAL RIGHT OUTER JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(m,e);var t,n,r,i,a=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function m(){return s(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:f,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:p,stringTypes:["``","''",'""'],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[],lineCommentTypes:["--","#"],specialWordChars:["@"],operators:[":=","<<",">>","!=","<>","<=>","&&","||"]})}}])&&c(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},5727:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(7169)),o=a(n(5828));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BIGINT","BINARY","BLOB","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHAR","CHARACTER","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CUBE","CUME_DIST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEC","DECIMAL","DECLARE","DEFAULT","DELAYED","DELETE","DENSE_RANK","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DOUBLE","DROP","DUAL","EACH","ELSE","ELSEIF","EMPTY","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FIRST_VALUE","FLOAT","FLOAT4","FLOAT8","FOR","FORCE","FOREIGN","FROM","FULLTEXT","FUNCTION","GENERATED","GET","GRANT","GROUP","GROUPING","GROUPS","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INTO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IS","ITERATE","JOIN","JSON_TABLE","KEY","KEYS","KILL","LAG","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER_BIND","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","NUMERIC","OF","ON","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PERCENT_RANK","PRECISION","PRIMARY","PROCEDURE","PURGE","RANGE","RANK","READ","READS","READ_WRITE","REAL","RECURSIVE","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","REVOKE","RIGHT","RLIKE","ROW","ROWS","ROW_NUMBER","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SMALLINT","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STORED","STRAIGHT_JOIN","SYSTEM","TABLE","TERMINATED","THEN","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARYING","VIRTUAL","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],f=["ADD","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","ORDER BY","SELECT","SET","UPDATE","VALUES","WHERE"],p=["INTERSECT","INTERSECT ALL","UNION","UNION ALL"],g=["AND","ELSE","OR","WHEN","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","CROSS JOIN","NATURAL JOIN","STRAIGHT_JOIN","NATURAL LEFT JOIN","NATURAL LEFT OUTER JOIN","NATURAL RIGHT JOIN","NATURAL RIGHT OUTER JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(m,e);var t,n,r,i,a=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function m(){return s(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:f,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:p,stringTypes:["``","''",'""'],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[],lineCommentTypes:["--","#"],specialWordChars:["@"],operators:[":=","<<",">>","!=","<>","<=>","&&","||","->","->>"]})}}])&&c(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},4601:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(7169)),o=a(n(5828));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=["ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","CONNECT","CONTINUE","CORRELATE","COVER","CREATE","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FIRST","FLATTEN","FOR","FORCE","FROM","FUNCTION","GRANT","GROUP","GSI","HAVING","IF","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LAST","LEFT","LET","LETTING","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MISSING","NAMESPACE","NEST","NOT","NULL","NUMBER","OBJECT","OFFSET","ON","OPTION","OR","ORDER","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROCEDURE","PUBLIC","RAW","REALM","REDUCE","RENAME","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","SATISFIES","SCHEMA","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TO","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WITH","WITHIN","WORK","XOR"],f=["DELETE FROM","EXCEPT ALL","EXCEPT","EXPLAIN DELETE FROM","EXPLAIN UPDATE","EXPLAIN UPSERT","FROM","GROUP BY","HAVING","INFER","INSERT INTO","LET","LIMIT","MERGE","NEST","ORDER BY","PREPARE","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UNNEST","UPDATE","UPSERT","USE KEYS","VALUES","WHERE"],p=["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],g=["AND","OR","XOR","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(m,e);var t,n,r,i,a=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function m(){return s(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:f,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:p,stringTypes:['""',"''","``"],openParens:["(","[","{"],closeParens:[")","]","}"],namedPlaceholderTypes:["$"],lineCommentTypes:["#","--"],operators:["==","!="]})}}])&&c(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},7265:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=c(n(7169)),o=n(6963),a=c(n(5828)),s=c(n(6907));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function d(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=["A","ACCESSIBLE","AGENT","AGGREGATE","ALL","ALTER","ANY","ARRAY","AS","ASC","AT","ATTRIBUTE","AUTHID","AVG","BETWEEN","BFILE_BASE","BINARY_INTEGER","BINARY","BLOB_BASE","BLOCK","BODY","BOOLEAN","BOTH","BOUND","BREADTH","BULK","BY","BYTE","C","CALL","CALLING","CASCADE","CASE","CHAR_BASE","CHAR","CHARACTER","CHARSET","CHARSETFORM","CHARSETID","CHECK","CLOB_BASE","CLONE","CLOSE","CLUSTER","CLUSTERS","COALESCE","COLAUTH","COLLECT","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPILED","COMPRESS","CONNECT","CONSTANT","CONSTRUCTOR","CONTEXT","CONTINUE","CONVERT","COUNT","CRASH","CREATE","CREDENTIAL","CURRENT","CURRVAL","CURSOR","CUSTOMDATUM","DANGLING","DATA","DATE_BASE","DATE","DAY","DECIMAL","DEFAULT","DEFINE","DELETE","DEPTH","DESC","DETERMINISTIC","DIRECTORY","DISTINCT","DO","DOUBLE","DROP","DURATION","ELEMENT","ELSIF","EMPTY","END","ESCAPE","EXCEPTIONS","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTENDS","EXTERNAL","EXTRACT","FALSE","FETCH","FINAL","FIRST","FIXED","FLOAT","FOR","FORALL","FORCE","FROM","FUNCTION","GENERAL","GOTO","GRANT","GROUP","HASH","HEAP","HIDDEN","HOUR","IDENTIFIED","IF","IMMEDIATE","IN","INCLUDING","INDEX","INDEXES","INDICATOR","INDICES","INFINITE","INSTANTIABLE","INT","INTEGER","INTERFACE","INTERVAL","INTO","INVALIDATE","IS","ISOLATION","JAVA","LANGUAGE","LARGE","LEADING","LENGTH","LEVEL","LIBRARY","LIKE","LIKE2","LIKE4","LIKEC","LIMITED","LOCAL","LOCK","LONG","MAP","MAX","MAXLEN","MEMBER","MERGE","MIN","MINUTE","MLSLABEL","MOD","MODE","MONTH","MULTISET","NAME","NAN","NATIONAL","NATIVE","NATURAL","NATURALN","NCHAR","NEW","NEXTVAL","NOCOMPRESS","NOCOPY","NOT","NOWAIT","NULL","NULLIF","NUMBER_BASE","NUMBER","OBJECT","OCICOLL","OCIDATE","OCIDATETIME","OCIDURATION","OCIINTERVAL","OCILOBLOCATOR","OCINUMBER","OCIRAW","OCIREF","OCIREFCURSOR","OCIROWID","OCISTRING","OCITYPE","OF","OLD","ON","ONLY","OPAQUE","OPEN","OPERATOR","OPTION","ORACLE","ORADATA","ORDER","ORGANIZATION","ORLANY","ORLVARY","OTHERS","OUT","OVERLAPS","OVERRIDING","PACKAGE","PARALLEL_ENABLE","PARAMETER","PARAMETERS","PARENT","PARTITION","PASCAL","PCTFREE","PIPE","PIPELINED","PLS_INTEGER","PLUGGABLE","POSITIVE","POSITIVEN","PRAGMA","PRECISION","PRIOR","PRIVATE","PROCEDURE","PUBLIC","RAISE","RANGE","RAW","READ","REAL","RECORD","REF","REFERENCE","RELEASE","RELIES_ON","REM","REMAINDER","RENAME","RESOURCE","RESULT_CACHE","RESULT","RETURN","RETURNING","REVERSE","REVOKE","ROLLBACK","ROW","ROWID","ROWNUM","ROWTYPE","SAMPLE","SAVE","SAVEPOINT","SB1","SB2","SB4","SEARCH","SECOND","SEGMENT","SELF","SEPARATE","SEQUENCE","SERIALIZABLE","SHARE","SHORT","SIZE_T","SIZE","SMALLINT","SOME","SPACE","SPARSE","SQL","SQLCODE","SQLDATA","SQLERRM","SQLNAME","SQLSTATE","STANDARD","START","STATIC","STDDEV","STORED","STRING","STRUCT","STYLE","SUBMULTISET","SUBPARTITION","SUBSTITUTABLE","SUBTYPE","SUCCESSFUL","SUM","SYNONYM","SYSDATE","TABAUTH","TABLE","TDO","THE","THEN","TIME","TIMESTAMP","TIMEZONE_ABBR","TIMEZONE_HOUR","TIMEZONE_MINUTE","TIMEZONE_REGION","TO","TRAILING","TRANSACTION","TRANSACTIONAL","TRIGGER","TRUE","TRUSTED","TYPE","UB1","UB2","UB4","UID","UNDER","UNIQUE","UNPLUG","UNSIGNED","UNTRUSTED","USE","USER","USING","VALIDATE","VALIST","VALUE","VARCHAR","VARCHAR2","VARIABLE","VARIANCE","VARRAY","VARYING","VIEW","VIEWS","VOID","WHENEVER","WHILE","WITH","WORK","WRAPPED","WRITE","YEAR","ZONE"],g=["ADD","ALTER COLUMN","ALTER TABLE","BEGIN","CONNECT BY","DECLARE","DELETE FROM","DELETE","END","EXCEPT","EXCEPTION","FETCH FIRST","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","LOOP","MODIFY","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","START WITH","UPDATE","VALUES","WHERE"],m=["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],E=["AND","CROSS APPLY","ELSE","END","OR","OUTER APPLY","WHEN","XOR","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN"],v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(v,e);var t,n,r,i,c=(r=v,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(i){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function v(){return l(this,v),c.apply(this,arguments)}return t=v,(n=[{key:"tokenizer",value:function(){return new a.default({reservedWords:p,reservedTopLevelWords:g,reservedNewlineWords:E,reservedTopLevelWordsNoIndent:m,stringTypes:['""',"N''","''","``"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],specialWordChars:["_","$","#",".","@"],operators:["||","**","!=",":="]})}},{key:"tokenOverride",value:function(e){return(0,o.isSet)(e)&&(0,o.isBy)(this.previousReservedToken)?{type:s.default.RESERVED,value:e.value}:e}}])&&u(t.prototype,n),v}(i.default);t.default=v,e.exports=t.default},8758:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(7169)),o=a(n(5828));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=["ABORT","ABSOLUTE","ACCESS","ACTION","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATTACH","ATTRIBUTE","AUTHORIZATION","BACKWARD","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BIT","BOOLEAN","BOTH","BY","CACHE","CALL","CALLED","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAIN","CHAR","CHARACTER","CHARACTERISTICS","CHECK","CHECKPOINT","CLASS","CLOSE","CLUSTER","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMENTS","COMMIT","COMMITTED","CONCURRENTLY","CONFIGURATION","CONFLICT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTENT","CONTINUE","CONVERSION","COPY","COST","CREATE","CROSS","CSV","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINER","DELETE","DELIMITER","DELIMITERS","DEPENDS","DESC","DETACH","DICTIONARY","DISABLE","DISCARD","DISTINCT","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","EACH","ELSE","ENABLE","ENCODING","ENCRYPTED","END","ENUM","ESCAPE","EVENT","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FORCE","FOREIGN","FORWARD","FREEZE","FROM","FULL","FUNCTION","FUNCTIONS","GENERATED","GLOBAL","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HOLD","HOUR","IDENTITY","IF","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDE","INCLUDING","INCREMENT","INDEX","INDEXES","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","KEY","LABEL","LANGUAGE","LARGE","LAST","LATERAL","LEADING","LEAKPROOF","LEAST","LEFT","LEVEL","LIKE","LIMIT","LISTEN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LOCKED","LOGGED","MAPPING","MATCH","MATERIALIZED","MAXVALUE","METHOD","MINUTE","MINVALUE","MODE","MONTH","MOVE","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NEW","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NULL","NULLIF","NULLS","NUMERIC","OBJECT","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","PARALLEL","PARSER","PARTIAL","PARTITION","PASSING","PASSWORD","PLACING","PLANS","POLICY","POSITION","PRECEDING","PRECISION","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROGRAM","PUBLICATION","QUOTE","RANGE","READ","REAL","REASSIGN","RECHECK","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REINDEX","RELATIVE","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","RESET","RESTART","RESTRICT","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINES","ROW","ROWS","RULE","SAVEPOINT","SCHEMA","SCHEMAS","SCROLL","SEARCH","SECOND","SECURITY","SELECT","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SKIP","SMALLINT","SNAPSHOT","SOME","SQL","STABLE","STANDALONE","START","STATEMENT","STATISTICS","STDIN","STDOUT","STORAGE","STORED","STRICT","STRIP","SUBSCRIPTION","SUBSTRING","SUPPORT","SYMMETRIC","SYSID","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TEMP","TEMPLATE","TEMPORARY","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRANSFORM","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TRUSTED","TYPE","TYPES","UESCAPE","UNBOUNDED","UNCOMMITTED","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLISTEN","UNLOGGED","UNTIL","UPDATE","USER","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARCHAR","VARIADIC","VARYING","VERBOSE","VERSION","VIEW","VIEWS","VOLATILE","WHEN","WHERE","WHITESPACE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XML","XMLATTRIBUTES","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","YEAR","YES","ZONE"],f=["ADD","AFTER","ALTER COLUMN","ALTER TABLE","CASE","DELETE FROM","END","EXCEPT","FETCH FIRST","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UPDATE","VALUES","WHERE"],p=["INTERSECT","INTERSECT ALL","UNION","UNION ALL"],g=["AND","ELSE","OR","WHEN","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(m,e);var t,n,r,i,a=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function m(){return s(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:f,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:p,stringTypes:['""',"''","U&''",'U&""',"$$"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["$"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],operators:["!=","<<",">>","||/","|/","::","->>","->","~~*","~~","!~~*","!~~","~*","!~*","!~","!!"]})}}])&&c(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},6810:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(7169)),o=a(n(5828));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=["AES128","AES256","ALLOWOVERWRITE","ANALYSE","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BINARY","BLANKSASNULL","BOTH","BYTEDICT","BZIP2","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GZIP","IDENTITY","IGNORE","ILIKE","INITIALLY","INTO","LEADING","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY13","MOSTLY32","MOSTLY8","NATURAL","NEW","NULLS","OFF","OFFLINE","OFFSET","OLD","ON","ONLY","OPEN","ORDER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","REJECTLOG","RESORT","RESTORE","SESSION_USER","SIMILAR","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WITH","WITHOUT","PREDICATE","COLUMNS","COMPROWS","COMPRESSION","COPY","FORMAT","DELIMITER","FIXEDWIDTH","AVRO","JSON","ENCRYPTED","BZIP2","GZIP","LZOP","PARQUET","ORC","ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","NULL AS","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS","COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE","MANIFEST","REGION","IAM_ROLE","MASTER_SYMMETRIC_KEY","SSH","ACCEPTANYDATE","ACCEPTINVCHARS","ACCESS_KEY_ID","SECRET_ACCESS_KEY","AVRO","BLANKSASNULL","BZIP2","COMPROWS","COMPUPDATE","CREDENTIALS","DATEFORMAT","DELIMITER","EMPTYASNULL","ENCODING","ENCRYPTED","ESCAPE","EXPLICIT_IDS","FILLRECORD","FIXEDWIDTH","FORMAT","IAM_ROLE","GZIP","IGNOREBLANKLINES","IGNOREHEADER","JSON","LZOP","MANIFEST","MASTER_SYMMETRIC_KEY","MAXERROR","NOLOAD","NULL AS","READRATIO","REGION","REMOVEQUOTES","ROUNDEC","SSH","STATUPDATE","TIMEFORMAT","SESSION_TOKEN","TRIMBLANKS","TRUNCATECOLUMNS","EXTERNAL","DATA CATALOG","HIVE METASTORE","CATALOG_ROLE","VACUUM","COPY","UNLOAD","EVEN","ALL"],f=["ADD","AFTER","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","INTERSECT","TOP","LIMIT","MODIFY","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UNION ALL","UNION","UPDATE","VALUES","WHERE","VACUUM","COPY","UNLOAD","ANALYZE","ANALYSE","DISTKEY","SORTKEY","COMPOUND","INTERLEAVED","FORMAT","DELIMITER","FIXEDWIDTH","AVRO","JSON","ENCRYPTED","BZIP2","GZIP","LZOP","PARQUET","ORC","ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","NULL AS","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS","COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE","MANIFEST","REGION","IAM_ROLE","MASTER_SYMMETRIC_KEY","SSH","ACCEPTANYDATE","ACCEPTINVCHARS","ACCESS_KEY_ID","SECRET_ACCESS_KEY","AVRO","BLANKSASNULL","BZIP2","COMPROWS","COMPUPDATE","CREDENTIALS","DATEFORMAT","DELIMITER","EMPTYASNULL","ENCODING","ENCRYPTED","ESCAPE","EXPLICIT_IDS","FILLRECORD","FIXEDWIDTH","FORMAT","IAM_ROLE","GZIP","IGNOREBLANKLINES","IGNOREHEADER","JSON","LZOP","MANIFEST","MASTER_SYMMETRIC_KEY","MAXERROR","NOLOAD","NULL AS","READRATIO","REGION","REMOVEQUOTES","ROUNDEC","SSH","STATUPDATE","TIMEFORMAT","SESSION_TOKEN","TRIMBLANKS","TRUNCATECOLUMNS","EXTERNAL","DATA CATALOG","HIVE METASTORE","CATALOG_ROLE"],p=[],g=["AND","ELSE","OR","OUTER APPLY","WHEN","VACUUM","COPY","UNLOAD","ANALYZE","ANALYSE","DISTKEY","SORTKEY","COMPOUND","INTERLEAVED","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(m,e);var t,n,r,i,a=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function m(){return s(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:f,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:p,stringTypes:['""',"''","``"],openParens:["("],closeParens:[")"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:["@","#","$"],lineCommentTypes:["--"],operators:["|/","||/","<<",">>","!=","||"]})}}])&&c(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},7257:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=c(n(7169)),o=n(6963),a=c(n(5828)),s=c(n(6907));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function d(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=["ALL","ALTER","ANALYSE","ANALYZE","ARRAY_ZIP","ARRAY","AS","ASC","AVG","BETWEEN","CASCADE","CASE","CAST","COALESCE","COLLECT_LIST","COLLECT_SET","COLUMN","COLUMNS","COMMENT","CONSTRAINT","CONTAINS","CONVERT","COUNT","CUME_DIST","CURRENT ROW","CURRENT_DATE","CURRENT_TIMESTAMP","DATABASE","DATABASES","DATE_ADD","DATE_SUB","DATE_TRUNC","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DAY","DAYS","DECODE","DEFAULT","DELETE","DENSE_RANK","DESC","DESCRIBE","DISTINCT","DISTINCTROW","DIV","DROP","ELSE","ENCODE","END","EXISTS","EXPLAIN","EXPLODE_OUTER","EXPLODE","FILTER","FIRST_VALUE","FIRST","FIXED","FLATTEN","FOLLOWING","FROM_UNIXTIME","FULL","GREATEST","GROUP_CONCAT","HOUR_MINUTE","HOUR_SECOND","HOUR","HOURS","IF","IFNULL","IN","INSERT","INTERVAL","INTO","IS","LAG","LAST_VALUE","LAST","LEAD","LEADING","LEAST","LEVEL","LIKE","MAX","MERGE","MIN","MINUTE_SECOND","MINUTE","MONTH","NATURAL","NOT","NOW()","NTILE","NULL","NULLIF","OFFSET","ON DELETE","ON UPDATE","ON","ONLY","OPTIMIZE","OVER","PERCENT_RANK","PRECEDING","RANGE","RANK","REGEXP","RENAME","RLIKE","ROW","ROWS","SECOND","SEPARATOR","SEQUENCE","SIZE","STRING","STRUCT","SUM","TABLE","TABLES","TEMPORARY","THEN","TO_DATE","TO_JSON","TO","TRAILING","TRANSFORM","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNIQUE","UNIX_TIMESTAMP","UNLOCK","UNSIGNED","USING","VARIABLES","VIEW","WHEN","WITH","YEAR_MONTH"],g=["ADD","AFTER","ALTER COLUMN","ALTER DATABASE","ALTER SCHEMA","ALTER TABLE","CLUSTER BY","CLUSTERED BY","DELETE FROM","DISTRIBUTE BY","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","OPTIONS","ORDER BY","PARTITION BY","PARTITIONED BY","RANGE","ROWS","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","TBLPROPERTIES","UPDATE","USING","VALUES","WHERE","WINDOW"],m=["EXCEPT ALL","EXCEPT","INTERSECT ALL","INTERSECT","UNION ALL","UNION"],E=["AND","CREATE OR","CREATE","ELSE","LATERAL VIEW","OR","OUTER APPLY","WHEN","XOR","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN","ANTI JOIN","SEMI JOIN","LEFT ANTI JOIN","LEFT SEMI JOIN","RIGHT OUTER JOIN","RIGHT SEMI JOIN","NATURAL ANTI JOIN","NATURAL FULL OUTER JOIN","NATURAL INNER JOIN","NATURAL LEFT ANTI JOIN","NATURAL LEFT OUTER JOIN","NATURAL LEFT SEMI JOIN","NATURAL OUTER JOIN","NATURAL RIGHT OUTER JOIN","NATURAL RIGHT SEMI JOIN","NATURAL SEMI JOIN"],v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(v,e);var t,n,r,i,c=(r=v,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(i){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function v(){return l(this,v),c.apply(this,arguments)}return t=v,(n=[{key:"tokenizer",value:function(){return new a.default({reservedWords:p,reservedTopLevelWords:g,reservedNewlineWords:E,reservedTopLevelWordsNoIndent:m,stringTypes:['""',"''","``","{}"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:["$"],lineCommentTypes:["--"],operators:["!=","<=>","&&","||","=="]})}},{key:"tokenOverride",value:function(e){if((0,o.isWindow)(e)){var t=this.tokenLookAhead();if(t&&t.type===s.default.OPEN_PAREN)return{type:s.default.RESERVED,value:e.value}}if((0,o.isEnd)(e)){var n=this.tokenLookBehind();if(n&&n.type===s.default.OPERATOR&&"."===n.value)return{type:s.default.WORD,value:e.value}}return e}}])&&u(t.prototype,n),v}(i.default);t.default=v,e.exports=t.default},1423:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(7169)),o=a(n(5828));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=["ABS","ALL","ALLOCATE","ALTER","AND","ANY","ARE","ARRAY","AS","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","AVG","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BY","CALL","CALLED","CARDINALITY","CASCADED","CASE","CAST","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER","CHARACTER_LENGTH","CHECK","CLOB","CLOSE","COALESCE","COLLATE","COLLECT","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CONVERT","CORR","CORRESPONDING","COUNT","COVAR_POP","COVAR_SAMP","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DELETE","DENSE_RANK","DEREF","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DOUBLE","DROP","DYNAMIC","EACH","ELEMENT","ELSE","END","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXP","EXTERNAL","EXTRACT","FALSE","FETCH","FILTER","FLOAT","FLOOR","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","FUSION","GET","GLOBAL","GRANT","GROUP","GROUPING","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERSECTION","INTERVAL","INTO","IS","JOIN","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LN","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOWER","MATCH","MAX","MEMBER","MERGE","METHOD","MIN","MINUTE","MOD","MODIFIES","MODULE","MONTH","MULTISET","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NO","NONE","NORMALIZE","NOT","NULL","NULLIF","NUMERIC","OCTET_LENGTH","OCCURRENCES_REGEX","OF","OLD","ON","ONLY","OPEN","OR","ORDER","OUT","OUTER","OVER","OVERLAPS","OVERLAY","PARAMETER","PARTITION","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","POSITION","POSITION_REGEX","POWER","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","RANK","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROW_NUMBER","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SMALLINT","SOME","SPECIFIC","SPECIFICTYPE","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQRT","START","STATIC","STDDEV_POP","STDDEV_SAMP","SUBMULTISET","SUBSTRING","SUBSTRING_REGEX","SUM","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATE","TRANSLATE_REGEX","TRANSLATION","TREAT","TRIGGER","TRIM","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","UPPER","USER","USING","VALUE","VALUES","VAR_POP","VAR_SAMP","VARBINARY","VARCHAR","VARYING","WHEN","WHENEVER","WHERE","WIDTH_BUCKET","WINDOW","WITH","WITHIN","WITHOUT","YEAR"],f=["ADD","ALTER COLUMN","ALTER TABLE","CASE","DELETE FROM","END","FETCH FIRST","FETCH NEXT","FETCH PRIOR","FETCH LAST","FETCH ABSOLUTE","FETCH RELATIVE","FROM","GROUP BY","HAVING","INSERT INTO","LIMIT","ORDER BY","SELECT","SET SCHEMA","SET","UPDATE","VALUES","WHERE"],p=["INTERSECT","INTERSECT ALL","INTERSECT DISTINCT","UNION","UNION ALL","UNION DISTINCT","EXCEPT","EXCEPT ALL","EXCEPT DISTINCT"],g=["AND","ELSE","OR","WHEN","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(m,e);var t,n,r,i,a=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function m(){return s(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:f,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:p,stringTypes:['""',"''"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[],lineCommentTypes:["--"]})}}])&&c(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},6383:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(7169)),o=a(n(5828));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=["ADD","EXTERNAL","PROCEDURE","ALL","FETCH","PUBLIC","ALTER","FILE","RAISERROR","AND","FILLFACTOR","READ","ANY","FOR","READTEXT","AS","FOREIGN","RECONFIGURE","ASC","FREETEXT","REFERENCES","AUTHORIZATION","FREETEXTTABLE","REPLICATION","BACKUP","FROM","RESTORE","BEGIN","FULL","RESTRICT","BETWEEN","FUNCTION","RETURN","BREAK","GOTO","REVERT","BROWSE","GRANT","REVOKE","BULK","GROUP","RIGHT","BY","HAVING","ROLLBACK","CASCADE","HOLDLOCK","ROWCOUNT","CASE","IDENTITY","ROWGUIDCOL","CHECK","IDENTITY_INSERT","RULE","CHECKPOINT","IDENTITYCOL","SAVE","CLOSE","IF","SCHEMA","CLUSTERED","IN","SECURITYAUDIT","COALESCE","INDEX","SELECT","COLLATE","INNER","SEMANTICKEYPHRASETABLE","COLUMN","INSERT","SEMANTICSIMILARITYDETAILSTABLE","COMMIT","INTERSECT","SEMANTICSIMILARITYTABLE","COMPUTE","INTO","SESSION_USER","CONSTRAINT","IS","SET","CONTAINS","JOIN","SETUSER","CONTAINSTABLE","KEY","SHUTDOWN","CONTINUE","KILL","SOME","CONVERT","LEFT","STATISTICS","CREATE","LIKE","SYSTEM_USER","CROSS","LINENO","TABLE","CURRENT","LOAD","TABLESAMPLE","CURRENT_DATE","MERGE","TEXTSIZE","CURRENT_TIME","NATIONAL","THEN","CURRENT_TIMESTAMP","NOCHECK","TO","CURRENT_USER","NONCLUSTERED","TOP","CURSOR","NOT","TRAN","DATABASE","NULL","TRANSACTION","DBCC","NULLIF","TRIGGER","DEALLOCATE","OF","TRUNCATE","DECLARE","OFF","TRY_CONVERT","DEFAULT","OFFSETS","TSEQUAL","DELETE","ON","UNION","DENY","OPEN","UNIQUE","DESC","OPENDATASOURCE","UNPIVOT","DISK","OPENQUERY","UPDATE","DISTINCT","OPENROWSET","UPDATETEXT","DISTRIBUTED","OPENXML","USE","DOUBLE","OPTION","USER","DROP","OR","VALUES","DUMP","ORDER","VARYING","ELSE","OUTER","VIEW","END","OVER","WAITFOR","ERRLVL","PERCENT","WHEN","ESCAPE","PIVOT","WHERE","EXCEPT","PLAN","WHILE","EXEC","PRECISION","WITH","EXECUTE","PRIMARY","WITHIN GROUP","EXISTS","PRINT","WRITETEXT","EXIT","PROC"],f=["ADD","ALTER COLUMN","ALTER TABLE","CASE","DELETE FROM","END","EXCEPT","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UPDATE","VALUES","WHERE"],p=["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],g=["AND","ELSE","OR","WHEN","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(m,e);var t,n,r,i,a=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function m(){return s(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:f,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:p,stringTypes:['""',"N''","''","[]"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:[],namedPlaceholderTypes:["@"],lineCommentTypes:["--"],specialWordChars:["#","@"],operators:[">=","<=","<>","!=","!<","!>","+=","-=","*=","/=","%=","|=","&=","^=","::"]})}}])&&c(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},4175:(e,t,n)=>{"use strict";t.WU=void 0;var r=f(n(3358)),i=f(n(3700)),o=f(n(5727)),a=f(n(4601)),s=f(n(7265)),c=f(n(8758)),l=f(n(6810)),u=f(n(7257)),h=f(n(1423)),d=f(n(6383));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}var g={db2:r.default,mariadb:i.default,mysql:o.default,n1ql:a.default,plsql:s.default,postgresql:c.default,redshift:l.default,spark:u.default,sql:h.default,tsql:d.default};t.WU=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new Error("Invalid query argument. Extected string, instead got "+p(e));var n=h.default;if(void 0!==t.language&&(n=g[t.language]),void 0===n)throw Error("Unsupported SQL dialect: ".concat(t.language));return new n(t).format(e)},Object.keys(g)},8690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortByLengthDesc=t.escapeRegExp=t.isEmpty=t.last=t.trimSpacesEnd=void 0,t.trimSpacesEnd=function(e){return e.replace(/[\t ]+$/,"")},t.last=function(e){return e[e.length-1]},t.isEmpty=function(e){return!Array.isArray(e)||0===e.length},t.escapeRegExp=function(e){return e.replace(/[\$\(-\+\.\?\[-\^\{-\}]/g,"\\$&")},t.sortByLengthDesc=function(e){return e.sort((function(e,t){return t.length-e.length||e.localeCompare(t)}))}},2868:(e,t,n)=>{e.exports=n(1867)},3155:(e,t,n)=>{"use strict";var r=n(4030),i=n(8079),o=n(4687),a=n(7512),s=n(9791),c=n(924),l=n(5903),u=n(5971),h=n(457),d=n(6266);e.exports=function(e){return new Promise((function(t,n){var f,p=e.data,g=e.headers,m=e.responseType;function E(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}r.isFormData(p)&&delete g["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(y+":"+b)}var A=s(e.baseURL,e.url);function T(){if(v){var r="getAllResponseHeaders"in v?c(v.getAllResponseHeaders()):null,o={data:m&&"text"!==m&&"json"!==m?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:e,request:v};i((function(e){t(e),E()}),(function(e){n(e),E()}),o),v=null}}if(v.open(e.method.toUpperCase(),a(A,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=T:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(T)},v.onabort=function(){v&&(n(u("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){n(u("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||h.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},r.isStandardBrowserEnv()){var C=(e.withCredentials||l(A))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;C&&(g[e.xsrfHeaderName]=C)}"setRequestHeader"in v&&r.forEach(g,(function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete g[t]:v.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),m&&"json"!==m&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){v&&(n(!e||e&&e.type?new d("canceled"):e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),p||(p=null),v.send(p)}))}},1867:(e,t,n)=>{"use strict";var r=n(4030),i=n(3843),o=n(5891),a=n(3316),s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(457));s.Axios=o,s.Cancel=n(6266),s.CancelToken=n(9747),s.isCancel=n(9416),s.VERSION=n(6578).version,s.all=function(e){return Promise.all(e)},s.spread=n(1545),s.isAxiosError=n(232),e.exports=s,e.exports.default=s},6266:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},9747:(e,t,n)=>{"use strict";var r=n(6266);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},9416:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5891:(e,t,n)=>{"use strict";var r=n(4030),i=n(7512),o=n(8036),a=n(884),s=n(3316),c=n(9084),l=c.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var u=[a,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),i=Promise.resolve(e);u.length;)i=i.then(u.shift(),u.shift());return i}for(var h=e;n.length;){var d=n.shift(),f=n.shift();try{h=d(h)}catch(e){f(e);break}}try{i=a(h)}catch(e){return Promise.reject(e)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},8036:(e,t,n)=>{"use strict";var r=n(4030);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},9791:(e,t,n)=>{"use strict";var r=n(957),i=n(7050);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},5971:(e,t,n)=>{"use strict";var r=n(3136);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},884:(e,t,n)=>{"use strict";var r=n(4030),i=n(8630),o=n(9416),a=n(457),s=n(6266);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(c(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},3136:e=>{"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},3316:(e,t,n)=>{"use strict";var r=n(4030);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function c(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||o,i=t(e);r.isUndefined(i)&&t!==c||(n[e]=i)})),n}},8079:(e,t,n)=>{"use strict";var r=n(5971);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8630:(e,t,n)=>{"use strict";var r=n(4030),i=n(457);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},457:(e,t,n)=>{"use strict";var r=n(4030),i=n(7122),o=n(3136),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(3155)),c),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(a)})),e.exports=l},6578:e=>{e.exports={version:"0.24.0"}},3843:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},7512:(e,t,n)=>{"use strict";var r=n(4030);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7050:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4687:(e,t,n)=>{"use strict";var r=n(4030);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},957:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},232:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},5903:(e,t,n)=>{"use strict";var r=n(4030);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},7122:(e,t,n)=>{"use strict";var r=n(4030);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},924:(e,t,n)=>{"use strict";var r=n(4030),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},1545:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},9084:(e,t,n)=>{"use strict";var r=n(6578).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(i(r," has been removed"+(t?" in "+t:"")));return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var s=e[o],c=void 0===s||a(s,o,e);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},4030:(e,t,n)=>{"use strict";var r=n(3843),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},352:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},1271:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,c=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},l=o.push,u=o.indexOf,h={},d=h.toString,f=h.hasOwnProperty,p=f.toString,g=p.call(Object),m={},E=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},v=function(e){return null!=e&&e===e.window},y=r.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function A(e,t,n){var r,i,o=(n=n||y).createElement("script");if(o.text=e,t)for(r in b)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function T(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?h[d.call(e)]||"object":typeof e}var C="3.5.1",R=function(e,t){return new R.fn.init(e,t)};function S(e){var t=!!e&&"length"in e&&e.length,n=T(e);return!E(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}R.fn=R.prototype={jquery:C,constructor:R,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=R.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return R.each(this,e)},map:function(e){return this.pushStack(R.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(R.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(R.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:o.sort,splice:o.splice},R.extend=R.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,c=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||E(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(R.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||R.isPlainObject(n)?n:{},i=!1,a[t]=R.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},R.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==d.call(e)||(t=a(e))&&("function"!=typeof(n=f.call(t,"constructor")&&t.constructor)||p.call(n)!==g))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){A(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(S(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?R.merge(n,"string"==typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(S(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return c(a)},guid:1,support:m}),"function"==typeof Symbol&&(R.fn[Symbol.iterator]=o[Symbol.iterator]),R.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){h["[object "+t+"]"]=t.toLowerCase()}));var _=function(e){var t,n,r,i,o,a,s,c,l,u,h,d,f,p,g,m,E,v,y,b="sizzle"+1*new Date,A=e.document,T=0,C=0,R=ce(),S=ce(),_=ce(),x=ce(),w=function(e,t){return e===t&&(h=!0),0},I={}.hasOwnProperty,N=[],O=N.pop,k=N.push,L=N.push,D=N.slice,F=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",B="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\[[\\x20\\t\\r\\n\\f]*("+B+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+P+"*\\]",$=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",H=new RegExp(P+"+","g"),G=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),W=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),V=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),j=new RegExp(P+"|>"),q=new RegExp($),z=new RegExp("^"+B+"$"),Y={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){d()},ae=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{L.apply(N=D.call(A.childNodes),A.childNodes),N[A.childNodes.length].nodeType}catch(e){L={apply:N.length?function(e,t){k.apply(e,D.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,l,u,h,p,E,v=t&&t.ownerDocument,A=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==A&&9!==A&&11!==A)return r;if(!i&&(d(t),t=t||f,g)){if(11!==A&&(h=Q.exec(e)))if(o=h[1]){if(9===A){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(v&&(l=v.getElementById(o))&&y(t,l)&&l.id===o)return r.push(l),r}else{if(h[2])return L.apply(r,t.getElementsByTagName(e)),r;if((o=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!x[e+" "]&&(!m||!m.test(e))&&(1!==A||"object"!==t.nodeName.toLowerCase())){if(E=e,v=t,1===A&&(j.test(e)||V.test(e))){for((v=ee.test(e)&&Ee(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ie):t.setAttribute("id",u=b)),s=(p=a(e)).length;s--;)p[s]=(u?"#"+u:":scope")+" "+ye(p[s]);E=p.join(",")}try{return L.apply(r,v.querySelectorAll(E)),r}catch(t){x(e,!0)}finally{u===b&&t.removeAttribute("id")}}}return c(e.replace(G,"$1"),t,r,i)}function ce(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function le(e){return e[b]=!0,e}function ue(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return le((function(t){return t=+t,le((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function Ee(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!K.test(t||n&&n.nodeName||"HTML")},d=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:A;return a!=f&&9===a.nodeType&&a.documentElement?(p=(f=a).documentElement,g=!o(f),A!=f&&(i=f.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ue((function(e){return p.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(f.getElementsByClassName),n.getById=ue((function(e){return p.appendChild(e).id=b,!f.getElementsByName||!f.getElementsByName(b).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},E=[],m=[],(n.qsa=Z.test(f.querySelectorAll))&&(ue((function(e){var t;p.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+M+")"),e.querySelectorAll("[id~="+b+"-]").length||m.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=Z.test(v=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),E.push("!=",$)})),m=m.length&&new RegExp(m.join("|")),E=E.length&&new RegExp(E.join("|")),t=Z.test(p.compareDocumentPosition),y=t||Z.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},w=t?function(e,t){if(e===t)return h=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==f||e.ownerDocument==A&&y(A,e)?-1:t==f||t.ownerDocument==A&&y(A,t)?1:u?F(u,e)-F(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==f?-1:t==f?1:i?-1:o?1:u?F(u,e)-F(u,t):0;if(i===o)return de(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?de(a[r],s[r]):a[r]==A?-1:s[r]==A?1:0},f):f},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&g&&!x[t+" "]&&(!E||!E.test(t))&&(!m||!m.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){x(t,!0)}return se(t,f,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=f&&d(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=f&&d(e);var i=r.attrHandle[t.toLowerCase()],o=i&&I.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(h=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(w),h){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return u=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},r=se.selectors={cacheLength:50,createPseudo:le,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=R[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+P+"|$)"))&&R(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,c){var l,u,h,d,f,p,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,E=s&&t.nodeName.toLowerCase(),v=!c&&!s,y=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===E:1===d.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&v){for(y=(f=(l=(u=(h=(d=m)[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],d=f&&m.childNodes[f];d=++f&&d&&d[g]||(y=f=0)||p.pop();)if(1===d.nodeType&&++y&&d===t){u[e]=[T,f,y];break}}else if(v&&(y=f=(l=(u=(h=(d=t)[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===y)for(;(d=++f&&d&&d[g]||(y=f=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==E:1!==d.nodeType)||!++y||(v&&((u=(h=d[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]=[T,y]),d!==t)););return(y-=i)===r||y%r==0&&y/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=F(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:le((function(e){var t=[],n=[],r=s(e.replace(G,"$1"));return r[b]?le((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return se(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:le((function(e){return z.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,n){return[n<0?n+t:n]})),even:me((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:me((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:me((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:me((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ve(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,c){var l,u,h,d=[T,s];if(c){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=(h=t[b]||(t[b]={}))[t.uniqueID]||(h[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=u[o])&&l[0]===T&&l[1]===s)return d[2]=l[2];if(u[o]=d,d[2]=e(t,n,c))return!0}return!1}}function Ae(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,c=e.length,l=null!=t;s<c;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(e,t,n,r,i,o){return r&&!r[b]&&(r=Ce(r)),i&&!i[b]&&(i=Ce(i,o)),le((function(o,a,s,c){var l,u,h,d=[],f=[],p=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:Te(g,d,e,s,c),E=n?i||(o?e:p||r)?[]:a:m;if(n&&n(m,E,s,c),r)for(l=Te(E,f),r(l,[],s,c),u=l.length;u--;)(h=l[u])&&(E[f[u]]=!(m[f[u]]=h));if(o){if(i||e){if(i){for(l=[],u=E.length;u--;)(h=E[u])&&l.push(m[u]=h);i(null,E=[],l,c)}for(u=E.length;u--;)(h=E[u])&&(l=i?F(o,h):d[u])>-1&&(o[l]=!(a[l]=h))}}else E=Te(E===a?E.splice(p,E.length):E),i?i(null,a,E,c):L.apply(a,E)}))}function Re(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],c=a?1:0,u=be((function(e){return e===t}),s,!0),h=be((function(e){return F(t,e)>-1}),s,!0),d=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?u(e,n,r):h(e,n,r));return t=null,i}];c<o;c++)if(n=r.relative[e[c].type])d=[be(Ae(d),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[b]){for(i=++c;i<o&&!r.relative[e[i].type];i++);return Ce(c>1&&Ae(d),c>1&&ye(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(G,"$1"),n,c<i&&Re(e.slice(c,i)),i<o&&Re(e=e.slice(i)),i<o&&ye(e))}d.push(n)}return Ae(d)}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,a=se.tokenize=function(e,t){var n,i,o,a,s,c,l,u=S[e+" "];if(u)return t?0:u.slice(0);for(s=e,c=[],l=r.preFilter;s;){for(a in n&&!(i=W.exec(s))||(i&&(s=s.slice(i[0].length)||s),c.push(o=[])),n=!1,(i=V.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(G," ")}),s=s.slice(n.length)),r.filter)!(i=Y[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):S(e,c).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=_[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Re(t[n]))[b]?i.push(s):o.push(s);s=_(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,c,u){var h,p,m,E=0,v="0",y=o&&[],b=[],A=l,C=o||i&&r.find.TAG("*",u),R=T+=null==A?1:Math.random()||.1,S=C.length;for(u&&(l=a==f||a||u);v!==S&&null!=(h=C[v]);v++){if(i&&h){for(p=0,a||h.ownerDocument==f||(d(h),s=!g);m=e[p++];)if(m(h,a||f,s)){c.push(h);break}u&&(T=R)}n&&((h=!m&&h)&&E--,o&&y.push(h))}if(E+=v,n&&v!==E){for(p=0;m=t[p++];)m(y,b,a,s);if(o){if(E>0)for(;v--;)y[v]||b[v]||(b[v]=O.call(c));b=Te(b)}L.apply(c,b),u&&!o&&b.length>0&&E+t.length>1&&se.uniqueSort(c)}return u&&(T=R,l=A),y};return n?le(o):o}(o,i)),s.selector=e}return s},c=se.select=function(e,t,n,i){var o,c,l,u,h,d="function"==typeof e&&e,f=!i&&a(e=d.selector||e);if(n=n||[],1===f.length){if((c=f[0]=f[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&9===t.nodeType&&g&&r.relative[c[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(o=Y.needsContext.test(e)?0:c.length;o--&&(l=c[o],!r.relative[u=l.type]);)if((h=r.find[u])&&(i=h(l.matches[0].replace(te,ne),ee.test(c[0].type)&&Ee(t.parentNode)||t))){if(c.splice(o,1),!(e=i.length&&ye(c)))return L.apply(n,i),n;break}}return(d||s(e,f))(i,t,!g,n,!t||ee.test(e)&&Ee(t.parentNode)||t),n},n.sortStable=b.split("").sort(w).join("")===b,n.detectDuplicates=!!h,d(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||he("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||he("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||he(M,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(r);R.find=_,R.expr=_.selectors,R.expr[":"]=R.expr.pseudos,R.uniqueSort=R.unique=_.uniqueSort,R.text=_.getText,R.isXMLDoc=_.isXML,R.contains=_.contains,R.escapeSelector=_.escape;var x=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&R(e).is(n))break;r.push(e)}return r},w=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},I=R.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function k(e,t,n){return E(t)?R.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?R.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?R.grep(e,(function(e){return u.call(t,e)>-1!==n})):R.filter(t,e,n)}R.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?R.find.matchesSelector(r,e)?[r]:[]:R.find.matches(e,R.grep(t,(function(e){return 1===e.nodeType})))},R.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(R(e).filter((function(){for(t=0;t<r;t++)if(R.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)R.find(e,i[t],n);return r>1?R.uniqueSort(n):n},filter:function(e){return this.pushStack(k(this,e||[],!1))},not:function(e){return this.pushStack(k(this,e||[],!0))},is:function(e){return!!k(this,"string"==typeof e&&I.test(e)?R(e):e||[],!1).length}});var L,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(R.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||L,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:D.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof R?t[0]:t,R.merge(this,R.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),O.test(r[1])&&R.isPlainObject(t))for(r in t)E(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=y.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):E(e)?void 0!==n.ready?n.ready(e):e(R):R.makeArray(e,this)}).prototype=R.fn,L=R(y);var F=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}R.fn.extend({has:function(e){var t=R(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(R.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&R(e);if(!I.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&R.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?R.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(R(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(R.uniqueSort(R.merge(this.get(),R(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),R.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x(e,"parentNode")},parentsUntil:function(e,t,n){return x(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return x(e,"nextSibling")},prevAll:function(e){return x(e,"previousSibling")},nextUntil:function(e,t,n){return x(e,"nextSibling",n)},prevUntil:function(e,t,n){return x(e,"previousSibling",n)},siblings:function(e){return w((e.parentNode||{}).firstChild,e)},children:function(e){return w(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(N(e,"template")&&(e=e.content||e),R.merge([],e.childNodes))}},(function(e,t){R.fn[e]=function(n,r){var i=R.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=R.filter(r,i)),this.length>1&&(M[e]||R.uniqueSort(i),F.test(e)&&i.reverse()),this.pushStack(i)}}));var B=/[^\x20\t\r\n\f]+/g;function U(e){return e}function $(e){throw e}function H(e,t,n,r){var i;try{e&&E(i=e.promise)?i.call(e).done(t).fail(n):e&&E(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}R.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return R.each(e.match(B)||[],(function(e,n){t[n]=!0})),t}(e):R.extend({},e);var t,n,r,i,o=[],a=[],s=-1,c=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){R.each(n,(function(n,r){E(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==T(r)&&t(r)}))}(arguments),n&&!t&&c()),this},remove:function(){return R.each(arguments,(function(e,t){for(var n;(n=R.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?R.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},R.extend({Deferred:function(e){var t=[["notify","progress",R.Callbacks("memory"),R.Callbacks("memory"),2],["resolve","done",R.Callbacks("once memory"),R.Callbacks("once memory"),0,"resolved"],["reject","fail",R.Callbacks("once memory"),R.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return R.Deferred((function(n){R.each(t,(function(t,r){var i=E(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&E(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,i){var o=0;function a(e,t,n,i){return function(){var s=this,c=arguments,l=function(){var r,l;if(!(e<o)){if((r=n.apply(s,c))===t.promise())throw new TypeError("Thenable self-resolution");l=r&&("object"==typeof r||"function"==typeof r)&&r.then,E(l)?i?l.call(r,a(o,t,U,i),a(o,t,$,i)):(o++,l.call(r,a(o,t,U,i),a(o,t,$,i),a(o,t,U,t.notifyWith))):(n!==U&&(s=void 0,c=[r]),(i||t.resolveWith)(s,c))}},u=i?l:function(){try{l()}catch(r){R.Deferred.exceptionHook&&R.Deferred.exceptionHook(r,u.stackTrace),e+1>=o&&(n!==$&&(s=void 0,c=[r]),t.rejectWith(s,c))}};e?u():(R.Deferred.getStackHook&&(u.stackTrace=R.Deferred.getStackHook()),r.setTimeout(u))}}return R.Deferred((function(r){t[0][3].add(a(0,r,E(i)?i:U,r.notifyWith)),t[1][3].add(a(0,r,E(e)?e:U)),t[2][3].add(a(0,r,E(n)?n:$))})).promise()},promise:function(e){return null!=e?R.extend(e,i):i}},o={};return R.each(t,(function(e,r){var a=r[2],s=r[5];i[r[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=R.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(H(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||E(i[n]&&i[n].then)))return o.then();for(;n--;)H(i[n],a(n),o.reject);return o.promise()}});var G=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;R.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&G.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},R.readyException=function(e){r.setTimeout((function(){throw e}))};var W=R.Deferred();function V(){y.removeEventListener("DOMContentLoaded",V),r.removeEventListener("load",V),R.ready()}R.fn.ready=function(e){return W.then(e).catch((function(e){R.readyException(e)})),this},R.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--R.readyWait:R.isReady)||(R.isReady=!0,!0!==e&&--R.readyWait>0||W.resolveWith(y,[R]))}}),R.ready.then=W.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?r.setTimeout(R.ready):(y.addEventListener("DOMContentLoaded",V),r.addEventListener("load",V));var j=function(e,t,n,r,i,o,a){var s=0,c=e.length,l=null==n;if("object"===T(n))for(s in i=!0,n)j(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,E(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(R(e),n)})),t))for(;s<c;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):c?t(e[0],n):o},q=/^-ms-/,z=/-([a-z])/g;function Y(e,t){return t.toUpperCase()}function K(e){return e.replace(q,"ms-").replace(z,Y)}var X=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function J(){this.expando=R.expando+J.uid++}J.uid=1,J.prototype={cache:function(e){var t=e[this.expando];return t||(t={},X(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[K(t)]=n;else for(r in t)i[K(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(K):(t=K(t))in r?[t]:t.match(B)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||R.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!R.isEmptyObject(t)}};var Z=new J,Q=new J,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}R.extend({hasData:function(e){return Q.hasData(e)||Z.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Z.access(e,t,n)},_removeData:function(e,t){Z.remove(e,t)}}),R.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Z.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=K(r.slice(5)),ne(o,r,i[r]));Z.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Q.set(this,e)})):j(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=Q.get(o,e))||void 0!==(n=ne(o,e))?n:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),R.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),n&&(!r||Array.isArray(n)?r=Z.access(e,t,R.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=R.queue(e,t),r=n.length,i=n.shift(),o=R._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){R.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:R.Callbacks("once memory").add((function(){Z.remove(e,[t+"queue",n])}))})}}),R.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?R.queue(this[0],e):void 0===t?this:this.each((function(){var n=R.queue(this,e,t);R._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&R.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){R.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=R.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Z.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),oe=["Top","Right","Bottom","Left"],ae=y.documentElement,se=function(e){return R.contains(e.ownerDocument,e)},ce={composed:!0};ae.getRootNode&&(se=function(e){return R.contains(e.ownerDocument,e)||e.getRootNode(ce)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===R.css(e,"display")};function ue(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return R.css(e,t,"")},c=s(),l=n&&n[3]||(R.cssNumber[t]?"":"px"),u=e.nodeType&&(R.cssNumber[t]||"px"!==l&&+c)&&ie.exec(R.css(e,t));if(u&&u[3]!==l){for(c/=2,l=l||u[3],u=+c||1;a--;)R.style(e,t,u+l),(1-o)*(1-(o=s()/c||.5))<=0&&(a=0),u/=o;u*=2,R.style(e,t,u+l),n=n||[]}return n&&(u=+u||+c||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=u,r.end=i)),i}var he={};function de(e){var t,n=e.ownerDocument,r=e.nodeName,i=he[r];return i||(t=n.body.appendChild(n.createElement(r)),i=R.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),he[r]=i,i)}function fe(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Z.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&le(r)&&(i[o]=de(r))):"none"!==n&&(i[o]="none",Z.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}R.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?R(this).show():R(this).hide()}))}});var pe,ge,me=/^(?:checkbox|radio)$/i,Ee=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i;pe=y.createDocumentFragment().appendChild(y.createElement("div")),(ge=y.createElement("input")).setAttribute("type","radio"),ge.setAttribute("checked","checked"),ge.setAttribute("name","t"),pe.appendChild(ge),m.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",m.option=!!pe.lastChild;var ye={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&N(e,t)?R.merge([e],n):n}function Ae(e,t){for(var n=0,r=e.length;n<r;n++)Z.set(e[n],"globalEval",!t||Z.get(t[n],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,m.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var Te=/<|&#?\w+;/;function Ce(e,t,n,r,i){for(var o,a,s,c,l,u,h=t.createDocumentFragment(),d=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===T(o))R.merge(d,o.nodeType?[o]:o);else if(Te.test(o)){for(a=a||h.appendChild(t.createElement("div")),s=(Ee.exec(o)||["",""])[1].toLowerCase(),c=ye[s]||ye._default,a.innerHTML=c[1]+R.htmlPrefilter(o)+c[2],u=c[0];u--;)a=a.lastChild;R.merge(d,a.childNodes),(a=h.firstChild).textContent=""}else d.push(t.createTextNode(o));for(h.textContent="",f=0;o=d[f++];)if(r&&R.inArray(o,r)>-1)i&&i.push(o);else if(l=se(o),a=be(h.appendChild(o),"script"),l&&Ae(a),n)for(u=0;o=a[u++];)ve.test(o.type||"")&&n.push(o);return h}var Re=/^key/,Se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_e=/^([^.]*)(?:\.(.+)|)/;function xe(){return!0}function we(){return!1}function Ie(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function Ne(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ne(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=we;else if(!i)return e;return 1===o&&(a=i,i=function(e){return R().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=R.guid++)),e.each((function(){R.event.add(this,t,i,r,n)}))}function Oe(e,t,n){n?(Z.set(e,t,!1),R.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(R.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),Z.set(this,t,o),r=n(this,t),this[t](),o!==(i=Z.get(this,t))||r?Z.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(Z.set(this,t,{value:R.event.trigger(R.extend(o[0],R.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&R.event.add(e,t,xe)}R.event={global:{},add:function(e,t,n,r,i){var o,a,s,c,l,u,h,d,f,p,g,m=Z.get(e);if(X(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&R.find.matchesSelector(ae,i),n.guid||(n.guid=R.guid++),(c=m.events)||(c=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==R&&R.event.triggered!==t.type?R.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(B)||[""]).length;l--;)f=g=(s=_e.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),f&&(h=R.event.special[f]||{},f=(i?h.delegateType:h.bindType)||f,h=R.event.special[f]||{},u=R.extend({type:f,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&R.expr.match.needsContext.test(i),namespace:p.join(".")},o),(d=c[f])||((d=c[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(f,a)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,u):d.push(u),R.event.global[f]=!0)},remove:function(e,t,n,r,i){var o,a,s,c,l,u,h,d,f,p,g,m=Z.hasData(e)&&Z.get(e);if(m&&(c=m.events)){for(l=(t=(t||"").match(B)||[""]).length;l--;)if(f=g=(s=_e.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),f){for(h=R.event.special[f]||{},d=c[f=(r?h.delegateType:h.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)u=d[o],!i&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));a&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,p,m.handle)||R.removeEvent(e,f,m.handle),delete c[f])}else for(f in c)R.event.remove(e,f+t[l],n,r,!0);R.isEmptyObject(c)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),c=R.event.fix(e),l=(Z.get(this,"events")||Object.create(null))[c.type]||[],u=R.event.special[c.type]||{};for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];if(c.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,c)){for(a=R.event.handlers.call(this,c,l),t=0;(i=a[t++])&&!c.isPropagationStopped();)for(c.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==o.namespace&&!c.rnamespace.test(o.namespace)||(c.handleObj=o,c.data=o.data,void 0!==(r=((R.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,i,o,a,s=[],c=t.delegateCount,l=e.target;if(c&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<c;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?R(i,this).index(l)>-1:R.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,c<t.length&&s.push({elem:l,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(R.Event.prototype,e,{enumerable:!0,configurable:!0,get:E(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[R.expando]?e:new R.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&N(t,"input")&&Oe(t,"click",xe),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&N(t,"input")&&Oe(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&N(t,"input")&&Z.get(t,"click")||N(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},R.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},R.Event=function(e,t){if(!(this instanceof R.Event))return new R.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?xe:we,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&R.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[R.expando]=!0},R.Event.prototype={constructor:R.Event,isDefaultPrevented:we,isPropagationStopped:we,isImmediatePropagationStopped:we,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=xe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=xe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=xe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},R.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Re.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Se.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},R.event.addProp),R.each({focus:"focusin",blur:"focusout"},(function(e,t){R.event.special[e]={setup:function(){return Oe(this,e,Ie),!1},trigger:function(){return Oe(this,e),!0},delegateType:t}})),R.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){R.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||R.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),R.fn.extend({on:function(e,t,n,r){return Ne(this,e,t,n,r)},one:function(e,t,n,r){return Ne(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,R(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=we),this.each((function(){R.event.remove(this,e,n,t)}))}});var ke=/<script|<style|<link/i,Le=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Fe(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")&&R(e).children("tbody")[0]||e}function Me(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Pe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Be(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Z.hasData(e)&&(s=Z.get(e).events))for(i in Z.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)R.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=R.extend({},o),Q.set(t,a))}}function Ue(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function $e(e,t,n,r){t=c(t);var i,o,a,s,l,u,h=0,d=e.length,f=d-1,p=t[0],g=E(p);if(g||d>1&&"string"==typeof p&&!m.checkClone&&Le.test(p))return e.each((function(i){var o=e.eq(i);g&&(t[0]=p.call(this,i,o.html())),$e(o,t,n,r)}));if(d&&(o=(i=Ce(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=R.map(be(i,"script"),Me)).length;h<d;h++)l=i,h!==f&&(l=R.clone(l,!0,!0),s&&R.merge(a,be(l,"script"))),n.call(e[h],l,h);if(s)for(u=a[a.length-1].ownerDocument,R.map(a,Pe),h=0;h<s;h++)l=a[h],ve.test(l.type||"")&&!Z.access(l,"globalEval")&&R.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?R._evalUrl&&!l.noModule&&R._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):A(l.textContent.replace(De,""),l,u))}return e}function He(e,t,n){for(var r,i=t?R.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||R.cleanData(be(r)),r.parentNode&&(n&&se(r)&&Ae(be(r,"script")),r.parentNode.removeChild(r));return e}R.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),c=se(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||R.isXMLDoc(e)))for(a=be(s),r=0,i=(o=be(e)).length;r<i;r++)Ue(o[r],a[r]);if(t)if(n)for(o=o||be(e),a=a||be(s),r=0,i=o.length;r<i;r++)Be(o[r],a[r]);else Be(e,s);return(a=be(s,"script")).length>0&&Ae(a,!c&&be(e,"script")),s},cleanData:function(e){for(var t,n,r,i=R.event.special,o=0;void 0!==(n=e[o]);o++)if(X(n)){if(t=n[Z.expando]){if(t.events)for(r in t.events)i[r]?R.event.remove(n,r):R.removeEvent(n,r,t.handle);n[Z.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),R.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return j(this,(function(e){return void 0===e?R.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return $e(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,e).appendChild(e)}))},prepend:function(){return $e(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Fe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return $e(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return $e(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(R.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return R.clone(this,e,t)}))},html:function(e){return j(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ke.test(e)&&!ye[(Ee.exec(e)||["",""])[1].toLowerCase()]){e=R.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(R.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return $e(this,arguments,(function(t){var n=this.parentNode;R.inArray(this,e)<0&&(R.cleanData(be(this)),n&&n.replaceChild(t,this))}),e)}}),R.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){R.fn[e]=function(e){for(var n,r=[],i=R(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),R(i[a])[t](n),l.apply(r,n.get());return this.pushStack(r)}}));var Ge=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),We=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Ve=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},je=new RegExp(oe.join("|"),"i");function qe(e,t,n){var r,i,o,a,s=e.style;return(n=n||We(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||se(e)||(a=R.style(e,t)),!m.pixelBoxStyles()&&Ge.test(a)&&je.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function ze(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ae.appendChild(l).appendChild(u);var e=r.getComputedStyle(u);n="1%"!==e.top,c=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),i=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),ae.removeChild(l),u=null}}function t(e){return Math.round(parseFloat(e))}var n,i,o,a,s,c,l=y.createElement("div"),u=y.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,R.extend(m,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),c},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=y.createElement("table"),t=y.createElement("tr"),n=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",ae.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),s=parseInt(i.height)>3,ae.removeChild(e)),s}}))}();var Ye=["Webkit","Moz","ms"],Ke=y.createElement("div").style,Xe={};function Je(e){return R.cssProps[e]||Xe[e]||(e in Ke?e:Xe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ye.length;n--;)if((e=Ye[n]+t)in Ke)return e}(e)||e)}var Ze=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function rt(e,t,n,r,i,o){var a="width"===t?1:0,s=0,c=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=R.css(e,n+oe[a],!0,i)),r?("content"===n&&(c-=R.css(e,"padding"+oe[a],!0,i)),"margin"!==n&&(c-=R.css(e,"border"+oe[a]+"Width",!0,i))):(c+=R.css(e,"padding"+oe[a],!0,i),"padding"!==n?c+=R.css(e,"border"+oe[a]+"Width",!0,i):s+=R.css(e,"border"+oe[a]+"Width",!0,i));return!r&&o>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-c-s-.5))||0),c}function it(e,t,n){var r=We(e),i=(!m.boxSizingReliable()||n)&&"border-box"===R.css(e,"boxSizing",!1,r),o=i,a=qe(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ge.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&N(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===R.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===R.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+rt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function ot(e,t,n,r,i){return new ot.prototype.init(e,t,n,r,i)}R.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=K(t),c=Qe.test(t),l=e.style;if(c||(t=Je(s)),a=R.cssHooks[t]||R.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"==(o=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||c||(n+=i&&i[3]||(R.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(c?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=K(t);return Qe.test(t)||(t=Je(s)),(a=R.cssHooks[t]||R.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=qe(e,t,r)),"normal"===i&&t in tt&&(i=tt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),R.each(["height","width"],(function(e,t){R.cssHooks[t]={get:function(e,n,r){if(n)return!Ze.test(R.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?it(e,t,r):Ve(e,et,(function(){return it(e,t,r)}))},set:function(e,n,r){var i,o=We(e),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===R.css(e,"boxSizing",!1,o),c=r?rt(e,t,r,s,o):0;return s&&a&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-rt(e,t,"border",!1,o)-.5)),c&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=R.css(e,t)),nt(0,n,c)}}})),R.cssHooks.marginLeft=ze(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ve(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),R.each({margin:"",padding:"",border:"Width"},(function(e,t){R.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(R.cssHooks[e+t].set=nt)})),R.fn.extend({css:function(e,t){return j(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=We(e),i=t.length;a<i;a++)o[t[a]]=R.css(e,t[a],!1,r);return o}return void 0!==n?R.style(e,t,n):R.css(e,t)}),e,t,arguments.length>1)}}),R.Tween=ot,ot.prototype={constructor:ot,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||R.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(R.cssNumber[n]?"":"px")},cur:function(){var e=ot.propHooks[this.prop];return e&&e.get?e.get(this):ot.propHooks._default.get(this)},run:function(e){var t,n=ot.propHooks[this.prop];return this.options.duration?this.pos=t=R.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ot.propHooks._default.set(this),this}},ot.prototype.init.prototype=ot.prototype,ot.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=R.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){R.fx.step[e.prop]?R.fx.step[e.prop](e):1!==e.elem.nodeType||!R.cssHooks[e.prop]&&null==e.elem.style[Je(e.prop)]?e.elem[e.prop]=e.now:R.style(e.elem,e.prop,e.now+e.unit)}}},ot.propHooks.scrollTop=ot.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},R.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},R.fx=ot.prototype.init,R.fx.step={};var at,st,ct=/^(?:toggle|show|hide)$/,lt=/queueHooks$/;function ut(){st&&(!1===y.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ut):r.setTimeout(ut,R.fx.interval),R.fx.tick())}function ht(){return r.setTimeout((function(){at=void 0})),at=Date.now()}function dt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=oe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ft(e,t,n){for(var r,i=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function pt(e,t,n){var r,i,o=0,a=pt.prefilters.length,s=R.Deferred().always((function(){delete c.elem})),c=function(){if(i)return!1;for(var t=at||ht(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:R.extend({},t),opts:R.extend(!0,{specialEasing:{},easing:R.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||ht(),duration:n.duration,tweens:[],createTween:function(t,n){var r=R.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),u=l.props;for(function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=K(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=R.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(u,l.opts.specialEasing);o<a;o++)if(r=pt.prefilters[o].call(l,e,u,l.opts))return E(r.stop)&&(R._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return R.map(u,ft,l),E(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),R.fx.timer(R.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}R.Animation=R.extend(pt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){E(e)?(t=e,e=["*"]):e=e.match(B);for(var n,r=0,i=e.length;r<i;r++)n=e[r],pt.tweeners[n]=pt.tweeners[n]||[],pt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,c,l,u,h="width"in t||"height"in t,d=this,f={},p=e.style,g=e.nodeType&&le(e),m=Z.get(e,"fxshow");for(r in n.queue||(null==(a=R._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always((function(){d.always((function(){a.unqueued--,R.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],ct.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}f[r]=m&&m[r]||R.style(e,r)}if((c=!R.isEmptyObject(t))||!R.isEmptyObject(f))for(r in h&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=m&&m.display)&&(l=Z.get(e,"display")),"none"===(u=R.css(e,"display"))&&(l?u=l:(fe([e],!0),l=e.style.display||l,u=R.css(e,"display"),fe([e]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===R.css(e,"float")&&(c||(d.done((function(){p.display=l})),null==l&&(u=p.display,l="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),c=!1,f)c||(m?"hidden"in m&&(g=m.hidden):m=Z.access(e,"fxshow",{display:l}),o&&(m.hidden=!g),g&&fe([e],!0),d.done((function(){for(r in g||fe([e]),Z.remove(e,"fxshow"),f)R.style(e,r,f[r])}))),c=ft(g?m[r]:0,r,d),r in m||(m[r]=c.start,g&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?pt.prefilters.unshift(e):pt.prefilters.push(e)}}),R.speed=function(e,t,n){var r=e&&"object"==typeof e?R.extend({},e):{complete:n||!n&&t||E(e)&&e,duration:e,easing:n&&t||t&&!E(t)&&t};return R.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in R.fx.speeds?r.duration=R.fx.speeds[r.duration]:r.duration=R.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){E(r.old)&&r.old.call(this),r.queue&&R.dequeue(this,r.queue)},r},R.fn.extend({fadeTo:function(e,t,n,r){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=R.isEmptyObject(e),o=R.speed(t,n,r),a=function(){var t=pt(this,R.extend({},e),o);(i||Z.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=R.timers,a=Z.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&lt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||R.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Z.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=R.timers,a=r?r.length:0;for(n.finish=!0,R.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),R.each(["toggle","show","hide"],(function(e,t){var n=R.fn[t];R.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(dt(t,!0),e,r,i)}})),R.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){R.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),R.timers=[],R.fx.tick=function(){var e,t=0,n=R.timers;for(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||R.fx.stop(),at=void 0},R.fx.timer=function(e){R.timers.push(e),R.fx.start()},R.fx.interval=13,R.fx.start=function(){st||(st=!0,ut())},R.fx.stop=function(){st=null},R.fx.speeds={slow:600,fast:200,_default:400},R.fn.delay=function(e,t){return e=R.fx&&R.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var gt,mt=R.expr.attrHandle;R.fn.extend({attr:function(e,t){return j(this,R.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){R.removeAttr(this,e)}))}}),R.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?R.prop(e,t,n):(1===o&&R.isXMLDoc(e)||(i=R.attrHooks[t.toLowerCase()]||(R.expr.match.bool.test(t)?gt:void 0)),void 0!==n?null===n?void R.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=R.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&N(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(B);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),gt={set:function(e,t,n){return!1===t?R.removeAttr(e,n):e.setAttribute(n,n),n}},R.each(R.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||R.find.attr;mt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=mt[a],mt[a]=i,i=null!=n(e,t,r)?a:null,mt[a]=o),i}}));var Et=/^(?:input|select|textarea|button)$/i,vt=/^(?:a|area)$/i;function yt(e){return(e.match(B)||[]).join(" ")}function bt(e){return e.getAttribute&&e.getAttribute("class")||""}function At(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(B)||[]}R.fn.extend({prop:function(e,t){return j(this,R.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[R.propFix[e]||e]}))}}),R.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&R.isXMLDoc(e)||(t=R.propFix[t]||t,i=R.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=R.find.attr(e,"tabindex");return t?parseInt(t,10):Et.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(R.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),R.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){R.propFix[this.toLowerCase()]=this})),R.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,c=0;if(E(e))return this.each((function(t){R(this).addClass(e.call(this,t,bt(this)))}));if((t=At(e)).length)for(;n=this[c++];)if(i=bt(n),r=1===n.nodeType&&" "+yt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=yt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,c=0;if(E(e))return this.each((function(t){R(this).removeClass(e.call(this,t,bt(this)))}));if(!arguments.length)return this.attr("class","");if((t=At(e)).length)for(;n=this[c++];)if(i=bt(n),r=1===n.nodeType&&" "+yt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=yt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):E(e)?this.each((function(n){R(this).toggleClass(e.call(this,n,bt(this),t),t)})):this.each((function(){var t,i,o,a;if(r)for(i=0,o=R(this),a=At(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=bt(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Z.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+yt(bt(n))+" ").indexOf(t)>-1)return!0;return!1}});var Tt=/\r/g;R.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=E(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,R(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=R.map(i,(function(e){return null==e?"":e+""}))),(t=R.valHooks[this.type]||R.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=R.valHooks[i.type]||R.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Tt,""):null==n?"":n:void 0}}),R.extend({valHooks:{option:{get:function(e){var t=R.find.attr(e,"value");return null!=t?t:yt(R.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],c=a?o+1:i.length;for(r=o<0?c:a?o:0;r<c;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!N(n.parentNode,"optgroup"))){if(t=R(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=R.makeArray(t),a=i.length;a--;)((r=i[a]).selected=R.inArray(R.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),R.each(["radio","checkbox"],(function(){R.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=R.inArray(R(e).val(),t)>-1}},m.checkOn||(R.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),m.focusin="onfocusin"in r;var Ct=/^(?:focusinfocus|focusoutblur)$/,Rt=function(e){e.stopPropagation()};R.extend(R.event,{trigger:function(e,t,n,i){var o,a,s,c,l,u,h,d,p=[n||y],g=f.call(e,"type")?e.type:e,m=f.call(e,"namespace")?e.namespace.split("."):[];if(a=d=s=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!Ct.test(g+R.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),l=g.indexOf(":")<0&&"on"+g,(e=e[R.expando]?e:new R.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:R.makeArray(t,[e]),h=R.event.special[g]||{},i||!h.trigger||!1!==h.trigger.apply(n,t))){if(!i&&!h.noBubble&&!v(n)){for(c=h.delegateType||g,Ct.test(c+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||y)&&p.push(s.defaultView||s.parentWindow||r)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)d=a,e.type=o>1?c:h.bindType||g,(u=(Z.get(a,"events")||Object.create(null))[e.type]&&Z.get(a,"handle"))&&u.apply(a,t),(u=l&&a[l])&&u.apply&&X(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),t)||!X(n)||l&&E(n[g])&&!v(n)&&((s=n[l])&&(n[l]=null),R.event.triggered=g,e.isPropagationStopped()&&d.addEventListener(g,Rt),n[g](),e.isPropagationStopped()&&d.removeEventListener(g,Rt),R.event.triggered=void 0,s&&(n[l]=s)),e.result}},simulate:function(e,t,n){var r=R.extend(new R.Event,n,{type:e,isSimulated:!0});R.event.trigger(r,null,t)}}),R.fn.extend({trigger:function(e,t){return this.each((function(){R.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return R.event.trigger(e,t,n,!0)}}),m.focusin||R.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){R.event.simulate(t,e.target,R.event.fix(e))};R.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=Z.access(r,t);i||r.addEventListener(e,n,!0),Z.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Z.access(r,t)-1;i?Z.access(r,t,i):(r.removeEventListener(e,n,!0),Z.remove(r,t))}}}));var St=r.location,_t={guid:Date.now()},xt=/\?/;R.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||R.error("Invalid XML: "+e),t};var wt=/\[\]$/,It=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function kt(e,t,n,r){var i;if(Array.isArray(t))R.each(t,(function(t,i){n||wt.test(e)?r(e,i):kt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==T(t))r(e,t);else for(i in t)kt(e+"["+i+"]",t[i],n,r)}R.param=function(e,t){var n,r=[],i=function(e,t){var n=E(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!R.isPlainObject(e))R.each(e,(function(){i(this.name,this.value)}));else for(n in e)kt(n,e[n],t,i);return r.join("&")},R.fn.extend({serialize:function(){return R.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=R.prop(this,"elements");return e?R.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!R(this).is(":disabled")&&Ot.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=R(this).val();return null==n?null:Array.isArray(n)?R.map(n,(function(e){return{name:t.name,value:e.replace(It,"\r\n")}})):{name:t.name,value:n.replace(It,"\r\n")}})).get()}});var Lt=/%20/g,Dt=/#.*$/,Ft=/([?&])_=[^&]*/,Mt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:GET|HEAD)$/,Bt=/^\/\//,Ut={},$t={},Ht="*/".concat("*"),Gt=y.createElement("a");function Wt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(B)||[];if(E(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Vt(e,t,n,r){var i={},o=e===$t;function a(s){var c;return i[s]=!0,R.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(c=l):void 0:(t.dataTypes.unshift(l),a(l),!1)})),c}return a(t.dataTypes[0])||!i["*"]&&a("*")}function jt(e,t){var n,r,i=R.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&R.extend(!0,e,r),e}Gt.href=St.href,R.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ht,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":R.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?jt(jt(e,R.ajaxSettings),t):jt(R.ajaxSettings,e)},ajaxPrefilter:Wt(Ut),ajaxTransport:Wt($t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,a,s,c,l,u,h,d,f=R.ajaxSetup({},t),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?R(p):R.event,m=R.Deferred(),E=R.Callbacks("once memory"),v=f.statusCode||{},b={},A={},T="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=Mt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(e,t){return null==l&&(e=A[e.toLowerCase()]=A[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)C.always(e[C.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||T;return n&&n.abort(t),S(0,t),this}};if(m.promise(C),f.url=((e||f.url||St.href)+"").replace(Bt,St.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(B)||[""],null==f.crossDomain){c=y.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=Gt.protocol+"//"+Gt.host!=c.protocol+"//"+c.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=R.param(f.data,f.traditional)),Vt(Ut,f,t,C),l)return C;for(h in(u=R.event&&f.global)&&0==R.active++&&R.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Pt.test(f.type),i=f.url.replace(Dt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Lt,"+")):(d=f.url.slice(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(xt.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(Ft,"$1"),d=(xt.test(i)?"&":"?")+"_="+_t.guid+++d),f.url=i+d),f.ifModified&&(R.lastModified[i]&&C.setRequestHeader("If-Modified-Since",R.lastModified[i]),R.etag[i]&&C.setRequestHeader("If-None-Match",R.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ht+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(p,C,f)||l))return C.abort();if(T="abort",E.add(f.complete),C.done(f.success),C.fail(f.error),n=Vt($t,f,t,C)){if(C.readyState=1,u&&g.trigger("ajaxSend",[C,f]),l)return C;f.async&&f.timeout>0&&(s=r.setTimeout((function(){C.abort("timeout")}),f.timeout));try{l=!1,n.send(b,S)}catch(e){if(l)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,a,c){var h,d,y,b,A,T=t;l||(l=!0,s&&r.clearTimeout(s),n=void 0,o=c||"",C.readyState=e>0?4:0,h=e>=200&&e<300||304===e,a&&(b=function(e,t,n){for(var r,i,o,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}if(c[0]in n)o=c[0];else{for(i in n){if(!c[0]||e.converters[i+" "+c[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),n[o]}(f,C,a)),!h&&R.inArray("script",f.dataTypes)>-1&&(f.converters["text script"]=function(){}),b=function(e,t,n,r){var i,o,a,s,c,l={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=o,o=u.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=l[c+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[c+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+c+" to "+o}}}return{state:"success",data:t}}(f,b,C,h),h?(f.ifModified&&((A=C.getResponseHeader("Last-Modified"))&&(R.lastModified[i]=A),(A=C.getResponseHeader("etag"))&&(R.etag[i]=A)),204===e||"HEAD"===f.type?T="nocontent":304===e?T="notmodified":(T=b.state,d=b.data,h=!(y=b.error))):(y=T,!e&&T||(T="error",e<0&&(e=0))),C.status=e,C.statusText=(t||T)+"",h?m.resolveWith(p,[d,T,C]):m.rejectWith(p,[C,T,y]),C.statusCode(v),v=void 0,u&&g.trigger(h?"ajaxSuccess":"ajaxError",[C,f,h?d:y]),E.fireWith(p,[C,T]),u&&(g.trigger("ajaxComplete",[C,f]),--R.active||R.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return R.get(e,t,n,"json")},getScript:function(e,t){return R.get(e,void 0,t,"script")}}),R.each(["get","post"],(function(e,t){R[t]=function(e,n,r,i){return E(n)&&(i=i||r,r=n,n=void 0),R.ajax(R.extend({url:e,type:t,dataType:i,data:n,success:r},R.isPlainObject(e)&&e))}})),R.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),R._evalUrl=function(e,t,n){return R.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){R.globalEval(e,t,n)}})},R.fn.extend({wrapAll:function(e){var t;return this[0]&&(E(e)&&(e=e.call(this[0])),t=R(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return E(e)?this.each((function(t){R(this).wrapInner(e.call(this,t))})):this.each((function(){var t=R(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=E(e);return this.each((function(n){R(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){R(this).replaceWith(this.childNodes)})),this}}),R.expr.pseudos.hidden=function(e){return!R.expr.pseudos.visible(e)},R.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},R.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var qt={0:200,1223:204},zt=R.ajaxSettings.xhr();m.cors=!!zt&&"withCredentials"in zt,m.ajax=zt=!!zt,R.ajaxTransport((function(e){var t,n;if(m.cors||zt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(qt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),R.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),R.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return R.globalEval(e),e}}}),R.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),R.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=R("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Yt,Kt=[],Xt=/(=)\?(?=&|$)|\?\?/;R.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||R.expando+"_"+_t.guid++;return this[e]=!0,e}}),R.ajaxPrefilter("json jsonp",(function(e,t,n){var i,o,a,s=!1!==e.jsonp&&(Xt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=E(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Xt,"$1"+i):!1!==e.jsonp&&(e.url+=(xt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||R.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},n.always((function(){void 0===o?R(r).removeProp(i):r[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(i)),a&&E(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=((Yt=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Yt.childNodes.length),R.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(r)):t=y),o=!n&&[],(i=O.exec(e))?[t.createElement(i[1])]:(i=Ce([e],t,o),o&&o.length&&R(o).remove(),R.merge([],i.childNodes)));var r,i,o},R.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=yt(e.slice(s)),e=e.slice(0,s)),E(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&R.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?R("<div>").append(R.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},R.expr.pseudos.animated=function(e){return R.grep(R.timers,(function(t){return e===t.elem})).length},R.offset={setOffset:function(e,t,n){var r,i,o,a,s,c,l=R.css(e,"position"),u=R(e),h={};"static"===l&&(e.style.position="relative"),s=u.offset(),o=R.css(e,"top"),c=R.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+c).indexOf("auto")>-1?(a=(r=u.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(c)||0),E(t)&&(t=t.call(e,n,R.extend({},s))),null!=t.top&&(h.top=t.top-s.top+a),null!=t.left&&(h.left=t.left-s.left+i),"using"in t?t.using.call(e,h):("number"==typeof h.top&&(h.top+="px"),"number"==typeof h.left&&(h.left+="px"),u.css(h))}},R.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){R.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===R.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===R.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=R(e).offset()).top+=R.css(e,"borderTopWidth",!0),i.left+=R.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-R.css(r,"marginTop",!0),left:t.left-i.left-R.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===R.css(e,"position");)e=e.offsetParent;return e||ae}))}}),R.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;R.fn[e]=function(r){return j(this,(function(e,r,i){var o;if(v(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),R.each(["top","left"],(function(e,t){R.cssHooks[t]=ze(m.pixelPosition,(function(e,n){if(n)return n=qe(e,t),Ge.test(n)?R(e).position()[t]+"px":n}))})),R.each({Height:"height",Width:"width"},(function(e,t){R.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){R.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return j(this,(function(t,n,i){var o;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?R.css(t,n,s):R.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),R.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){R.fn[t]=function(e){return this.on(t,e)}})),R.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),R.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){R.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Jt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;R.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),E(e))return r=s.call(arguments,2),i=function(){return e.apply(t||this,r.concat(s.call(arguments)))},i.guid=e.guid=e.guid||R.guid++,i},R.holdReady=function(e){e?R.readyWait++:R.ready(!0)},R.isArray=Array.isArray,R.parseJSON=JSON.parse,R.nodeName=N,R.isFunction=E,R.isWindow=v,R.camelCase=K,R.type=T,R.now=Date.now,R.isNumeric=function(e){var t=R.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},R.trim=function(e){return null==e?"":(e+"").replace(Jt,"")},void 0===(n=function(){return R}.apply(t,[]))||(e.exports=n);var Zt=r.jQuery,Qt=r.$;return R.noConflict=function(e){return r.$===R&&(r.$=Qt),e&&r.jQuery===R&&(r.jQuery=Zt),R},void 0===i&&(r.jQuery=r.$=R),R}))},5526:(e,t,n)=>{var r,i,o;!function(a){var s=this||(0,eval)("this"),c=s.document,l=s.navigator,u=s.jQuery,h=s.JSON;u||"undefined"==typeof jQuery||(u=jQuery),function(a){i=[t,n],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)}((function(e,t){function n(e,t){return(null===e||typeof e in A)&&e===t}function r(e,t){var n;return function(){n||(n=b.a.setTimeout((function(){n=a,e()}),t))}}function i(e,t){var n;return function(){clearTimeout(n),n=b.a.setTimeout(e,t)}}function o(e,t){t&&"change"!==t?"beforeChange"===t?this.pc(e):this.gb(e,t):this.qc(e)}function d(e,t){null!==t&&t.s&&t.s()}function f(e,t){var n=this.qd,r=n[_];r.ra||(this.Qb&&this.mb[t]?(n.uc(t,e,this.mb[t]),this.mb[t]=null,--this.Qb):r.I[t]||n.uc(t,e,r.J?{da:e}:n.$c(e)),e.Ja&&e.gd())}var p,g,m,E,v,y,b=void 0!==e?e:{};b.b=function(e,t){for(var n=e.split("."),r=b,i=0;i<n.length-1;i++)r=r[n[i]];r[n[n.length-1]]=t},b.L=function(e,t,n){e[t]=n},b.version="3.5.1",b.b("version",b.version),b.options={deferUpdates:!1,useOnlyNativeEvents:!1,foreachHidesDestroyed:!1},b.a=function(){function e(e,t){for(var n in e)i.call(e,n)&&t(n,e[n])}function t(e,t){if(t)for(var n in t)i.call(t,n)&&(e[n]=t[n]);return e}function n(e,t){return e.__proto__=t,e}function r(e,t,n,r){var i=e[t].match(v)||[];b.a.D(n.match(v),(function(e){b.a.Na(i,e,r)})),e[t]=i.join(" ")}var i=Object.prototype.hasOwnProperty,o={__proto__:[]}instanceof Array,d="function"==typeof Symbol,f={},p={};f[l&&/Firefox\/2/i.test(l.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],f.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),e(f,(function(e,t){if(t.length)for(var n=0,r=t.length;n<r;n++)p[t[n]]=e}));var g,m={propertychange:!0},E=c&&function(){for(var e=3,t=c.createElement("div"),n=t.getElementsByTagName("i");t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e",n[0];);return 4<e?e:a}(),v=/\S+/g;return{Jc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],D:function(e,t,n){for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},A:"function"==typeof Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t)}:function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Lb:function(e,t,n){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r];return a},Pa:function(e,t){var n=b.a.A(e,t);0<n?e.splice(n,1):0===n&&e.shift()},wc:function(e){var t=[];return e&&b.a.D(e,(function(e){0>b.a.A(t,e)&&t.push(e)})),t},Mb:function(e,t,n){var r=[];if(e)for(var i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i));return r},jb:function(e,t,n){var r=[];if(e)for(var i=0,o=e.length;i<o;i++)t.call(n,e[i],i)&&r.push(e[i]);return r},Nb:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var n=0,r=t.length;n<r;n++)e.push(t[n]);return e},Na:function(e,t,n){var r=b.a.A(b.a.bc(e),t);0>r?n&&e.push(t):n||e.splice(r,1)},Ba:o,extend:t,setPrototypeOf:n,Ab:o?n:t,P:e,Ga:function(e,t,n){if(!e)return e;var r,o={};for(r in e)i.call(e,r)&&(o[r]=t.call(n,e[r],r,e));return o},Tb:function(e){for(;e.firstChild;)b.removeNode(e.firstChild)},Yb:function(e){for(var t=((e=b.a.la(e))[0]&&e[0].ownerDocument||c).createElement("div"),n=0,r=e.length;n<r;n++)t.appendChild(b.oa(e[n]));return t},Ca:function(e,t){for(var n=0,r=e.length,i=[];n<r;n++){var o=e[n].cloneNode(!0);i.push(t?b.oa(o):o)}return i},va:function(e,t){if(b.a.Tb(e),t)for(var n=0,r=t.length;n<r;n++)e.appendChild(t[n])},Xc:function(e,t){var n=e.nodeType?[e]:e;if(0<n.length){for(var r=n[0],i=r.parentNode,o=0,a=t.length;o<a;o++)i.insertBefore(t[o],r);for(o=0,a=n.length;o<a;o++)b.removeNode(n[o])}},Ua:function(e,t){if(e.length){for(t=8===t.nodeType&&t.parentNode||t;e.length&&e[0].parentNode!==t;)e.splice(0,1);for(;1<e.length&&e[e.length-1].parentNode!==t;)e.length--;if(1<e.length){var n=e[0],r=e[e.length-1];for(e.length=0;n!==r;)e.push(n),n=n.nextSibling;e.push(r)}}return e},Zc:function(e,t){7>E?e.setAttribute("selected",t):e.selected=t},Db:function(e){return null===e||e===a?"":e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ud:function(e,t){return e=e||"",!(t.length>e.length)&&e.substring(0,t.length)===t},vd:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(1!==e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},Sb:function(e){return b.a.vd(e,e.ownerDocument.documentElement)},kd:function(e){return!!b.a.Lb(e,b.a.Sb)},R:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},Ac:function(e){return b.onError?function(){try{return e.apply(this,arguments)}catch(e){throw b.onError&&b.onError(e),e}}:e},setTimeout:function(e,t){return setTimeout(b.a.Ac(e),t)},Gc:function(e){setTimeout((function(){throw b.onError&&b.onError(e),e}),0)},B:function(e,t,n){var r=b.a.Ac(n);if(n=m[t],b.options.useOnlyNativeEvents||n||!u)if(n||"function"!=typeof e.addEventListener){if(void 0===e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var i=function(t){r.call(e,t)},o="on"+t;e.attachEvent(o,i),b.a.K.za(e,(function(){e.detachEvent(o,i)}))}else e.addEventListener(t,r,!1);else g||(g="function"==typeof u(e).on?"on":"bind"),u(e)[g](t,r)},Fb:function(e,t){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var n;if(n=!("input"!==b.a.R(e)||!e.type||"click"!=t.toLowerCase()||"checkbox"!=(n=e.type)&&"radio"!=n),b.options.useOnlyNativeEvents||!u||n)if("function"==typeof c.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(n=c.createEvent(p[t]||"HTMLEvents")).initEvent(t,!0,!0,s,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(n)}else if(n&&e.click)e.click();else{if(void 0===e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+t)}else u(e).trigger(t)},f:function(e){return b.O(e)?e():e},bc:function(e){return b.O(e)?e.v():e},Eb:function(e,t,n){var i;t&&("object"==typeof e.classList?(i=e.classList[n?"add":"remove"],b.a.D(t.match(v),(function(t){i.call(e.classList,t)}))):"string"==typeof e.className.baseVal?r(e.className,"baseVal",t,n):r(e,"className",t,n))},Bb:function(e,t){var n=b.a.f(t);null!==n&&n!==a||(n="");var r=b.h.firstChild(e);!r||3!=r.nodeType||b.h.nextSibling(r)?b.h.va(e,[e.ownerDocument.createTextNode(n)]):r.data=n,b.a.Ad(e)},Yc:function(e,t){if(e.name=t,7>=E)try{var n=e.name.replace(/[&<>'"]/g,(function(e){return"&#"+e.charCodeAt(0)+";"}));e.mergeAttributes(c.createElement("<input name='"+n+"'/>"),!1)}catch(e){}},Ad:function(e){9<=E&&(e=1==e.nodeType?e:e.parentNode).style&&(e.style.zoom=e.style.zoom)},wd:function(e){if(E){var t=e.style.width;e.style.width=0,e.style.width=t}},Pd:function(e,t){e=b.a.f(e),t=b.a.f(t);for(var n=[],r=e;r<=t;r++)n.push(r);return n},la:function(e){for(var t=[],n=0,r=e.length;n<r;n++)t.push(e[n]);return t},Da:function(e){return d?Symbol(e):e},Zd:6===E,$d:7===E,W:E,Lc:function(e,t){for(var n=b.a.la(e.getElementsByTagName("input")).concat(b.a.la(e.getElementsByTagName("textarea"))),r="string"==typeof t?function(e){return e.name===t}:function(e){return t.test(e.name)},i=[],o=n.length-1;0<=o;o--)r(n[o])&&i.push(n[o]);return i},Nd:function(e){return"string"==typeof e&&(e=b.a.Db(e))?h&&h.parse?h.parse(e):new Function("return "+e)():null},hc:function(e,t,n){if(!h||!h.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return h.stringify(b.a.f(e),t,n)},Od:function(t,n,r){var i=(r=r||{}).params||{},o=r.includeFields||this.Jc,a=t;if("object"==typeof t&&"form"===b.a.R(t)){a=t.action;for(var s=o.length-1;0<=s;s--)for(var l=b.a.Lc(t,o[s]),u=l.length-1;0<=u;u--)i[l[u].name]=l[u].value}n=b.a.f(n);var h=c.createElement("form");for(var d in h.style.display="none",h.action=a,h.method="post",n)(t=c.createElement("input")).type="hidden",t.name=d,t.value=b.a.hc(b.a.f(n[d])),h.appendChild(t);e(i,(function(e,t){var n=c.createElement("input");n.type="hidden",n.name=e,n.value=t,h.appendChild(n)})),c.body.appendChild(h),r.submitter?r.submitter(h):h.submit(),setTimeout((function(){h.parentNode.removeChild(h)}),0)}}}(),b.b("utils",b.a),b.b("utils.arrayForEach",b.a.D),b.b("utils.arrayFirst",b.a.Lb),b.b("utils.arrayFilter",b.a.jb),b.b("utils.arrayGetDistinctValues",b.a.wc),b.b("utils.arrayIndexOf",b.a.A),b.b("utils.arrayMap",b.a.Mb),b.b("utils.arrayPushAll",b.a.Nb),b.b("utils.arrayRemoveItem",b.a.Pa),b.b("utils.cloneNodes",b.a.Ca),b.b("utils.createSymbolOrString",b.a.Da),b.b("utils.extend",b.a.extend),b.b("utils.fieldsIncludedWithJsonPost",b.a.Jc),b.b("utils.getFormFields",b.a.Lc),b.b("utils.objectMap",b.a.Ga),b.b("utils.peekObservable",b.a.bc),b.b("utils.postJson",b.a.Od),b.b("utils.parseJson",b.a.Nd),b.b("utils.registerEventHandler",b.a.B),b.b("utils.stringifyJson",b.a.hc),b.b("utils.range",b.a.Pd),b.b("utils.toggleDomNodeCssClass",b.a.Eb),b.b("utils.triggerEvent",b.a.Fb),b.b("utils.unwrapObservable",b.a.f),b.b("utils.objectForEach",b.a.P),b.b("utils.addOrRemoveItem",b.a.Na),b.b("utils.setTextContent",b.a.Bb),b.b("unwrap",b.a.f),Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if(1===arguments.length)return function(){return t.apply(e,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){var r=n.slice(0);return r.push.apply(r,arguments),t.apply(e,r)}}),b.a.g=new function(){var e,t,n=0,r="__ko__"+(new Date).getTime(),i={};return b.a.W?(e=function(e,t){var o=e[r];if(!o||"null"===o||!i[o]){if(!t)return a;o=e[r]="ko"+n++,i[o]={}}return i[o]},t=function(e){var t=e[r];return!!t&&(delete i[t],e[r]=null,!0)}):(e=function(e,t){var n=e[r];return!n&&t&&(n=e[r]={}),n},t=function(e){return!!e[r]&&(delete e[r],!0)}),{get:function(t,n){var r=e(t,!1);return r&&r[n]},set:function(t,n,r){(t=e(t,r!==a))&&(t[n]=r)},Ub:function(t,n,r){return(t=e(t,!0))[n]||(t[n]=r)},clear:t,Z:function(){return n+++r}}},b.b("utils.domData",b.a.g),b.b("utils.domData.clear",b.a.g.clear),b.a.K=new function(){function e(e,t){var n=b.a.g.get(e,r);return n===a&&t&&(n=[],b.a.g.set(e,r,n)),n}function t(t){if(r=e(t,!1))for(var r=r.slice(0),i=0;i<r.length;i++)r[i](t);b.a.g.clear(t),b.a.K.cleanExternalData(t),o[t.nodeType]&&n(t.childNodes,!0)}function n(e,n){for(var r,i=[],o=0;o<e.length;o++)if((!n||8===e[o].nodeType)&&(t(i[i.length]=r=e[o]),e[o]!==r))for(;o--&&-1==b.a.A(i,e[o]););}var r=b.a.g.Z(),i={1:!0,8:!0,9:!0},o={1:!0,9:!0};return{za:function(t,n){if("function"!=typeof n)throw Error("Callback must be a function");e(t,!0).push(n)},yb:function(t,n){var i=e(t,!1);i&&(b.a.Pa(i,n),0==i.length&&b.a.g.set(t,r,a))},oa:function(e){return b.u.G((function(){i[e.nodeType]&&(t(e),o[e.nodeType]&&n(e.getElementsByTagName("*")))})),e},removeNode:function(e){b.oa(e),e.parentNode&&e.parentNode.removeChild(e)},cleanExternalData:function(e){u&&"function"==typeof u.cleanData&&u.cleanData([e])}}},b.oa=b.a.K.oa,b.removeNode=b.a.K.removeNode,b.b("cleanNode",b.oa),b.b("removeNode",b.removeNode),b.b("utils.domNodeDisposal",b.a.K),b.b("utils.domNodeDisposal.addDisposeCallback",b.a.K.za),b.b("utils.domNodeDisposal.removeDisposeCallback",b.a.K.yb),p=[0,"",""],v={thead:g=[1,"<table>","</table>"],tbody:g,tfoot:g,tr:[2,"<table><tbody>","</tbody></table>"],td:m=[3,"<table><tbody><tr>","</tr></tbody></table>"],th:m,option:E=[1,"<select multiple='multiple'>","</select>"],optgroup:E},y=8>=b.a.W,b.a.ua=function(e,t){var n;if(u){if(u.parseHTML)n=u.parseHTML(e,t)||[];else if((n=u.clean([e],t))&&n[0]){for(var r=n[0];r.parentNode&&11!==r.parentNode.nodeType;)r=r.parentNode;r.parentNode&&r.parentNode.removeChild(r)}}else{(n=t)||(n=c),r=n.parentWindow||n.defaultView||s;var i,o=b.a.Db(e).toLowerCase(),a=n.createElement("div");for(i=(o=o.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&v[o[1]]||p,o=i[0],i="ignored<div>"+i[1]+e+i[2]+"</div>","function"==typeof r.innerShiv?a.appendChild(r.innerShiv(i)):(y&&n.body.appendChild(a),a.innerHTML=i,y&&a.parentNode.removeChild(a));o--;)a=a.lastChild;n=b.a.la(a.lastChild.childNodes)}return n},b.a.Md=function(e,t){var n=b.a.ua(e,t);return n.length&&n[0].parentElement||b.a.Yb(n)},b.a.fc=function(e,t){if(b.a.Tb(e),null!==(t=b.a.f(t))&&t!==a)if("string"!=typeof t&&(t=t.toString()),u)u(e).html(t);else for(var n=b.a.ua(t,e.ownerDocument),r=0;r<n.length;r++)e.appendChild(n[r])},b.b("utils.parseHtmlFragment",b.a.ua),b.b("utils.setHtml",b.a.fc),b.aa=function(){function e(t,n){if(t)if(8==t.nodeType)null!=(r=b.aa.Uc(t.nodeValue))&&n.push({ud:t,Kd:r});else if(1==t.nodeType)for(var r=0,i=t.childNodes,o=i.length;r<o;r++)e(i[r],n)}var t={};return{Xb:function(e){if("function"!=typeof e)throw Error("You can only pass a function to ko.memoization.memoize()");var n=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return t[n]=e,"\x3c!--[ko_memo:"+n+"]--\x3e"},bd:function(e,n){var r=t[e];if(r===a)throw Error("Couldn't find any memo with ID "+e+". Perhaps it's already been unmemoized.");try{return r.apply(null,n||[]),!0}finally{delete t[e]}},cd:function(t,n){var r=[];e(t,r);for(var i=0,o=r.length;i<o;i++){var a=r[i].ud,s=[a];n&&b.a.Nb(s,n),b.aa.bd(r[i].Kd,s),a.nodeValue="",a.parentNode&&a.parentNode.removeChild(a)}},Uc:function(e){return(e=e.match(/^\[ko_memo\:(.*?)\]$/))?e[1]:null}}}(),b.b("memoization",b.aa),b.b("memoization.memoize",b.aa.Xb),b.b("memoization.unmemoize",b.aa.bd),b.b("memoization.parseMemoText",b.aa.Uc),b.b("memoization.unmemoizeDomNodeAndDescendants",b.aa.cd),b.na=function(){function e(){if(i)for(var e,t=i,n=0;a<i;)if(e=r[a++]){if(a>t){if(5e3<=++n){a=i,b.a.Gc(Error("'Too much recursion' after processing "+n+" task groups."));break}t=i}try{e()}catch(e){b.a.Gc(e)}}}function t(){e(),a=i=r.length=0}var n,r=[],i=0,o=1,a=0;return n=s.MutationObserver?function(e){var t=c.createElement("div");return new MutationObserver(e).observe(t,{attributes:!0}),function(){t.classList.toggle("foo")}}(t):c&&"onreadystatechange"in c.createElement("script")?function(e){var t=c.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null,c.documentElement.removeChild(t),t=null,e()},c.documentElement.appendChild(t)}:function(e){setTimeout(e,0)},{scheduler:n,zb:function(e){return i||b.na.scheduler(t),r[i++]=e,o++},cancel:function(e){(e-=o-i)>=a&&e<i&&(r[e]=null)},resetForTesting:function(){var e=i-a;return a=i=r.length=0,e},Sd:e}}(),b.b("tasks",b.na),b.b("tasks.schedule",b.na.zb),b.b("tasks.runEarly",b.na.Sd),b.Ta={throttle:function(e,t){e.throttleEvaluation=t;var n=null;return b.$({read:e,write:function(r){clearTimeout(n),n=b.a.setTimeout((function(){e(r)}),t)}})},rateLimit:function(e,t){var n,o,a;"number"==typeof t?n=t:(n=t.timeout,o=t.method),e.Hb=!1,a="function"==typeof o?o:"notifyWhenChangesStop"==o?i:r,e.ub((function(e){return a(e,n,t)}))},deferred:function(e,t){if(!0!==t)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");e.Hb||(e.Hb=!0,e.ub((function(t){var n,r=!1;return function(){if(!r){b.na.cancel(n),n=b.na.zb(t);try{r=!0,e.notifySubscribers(a,"dirty")}finally{r=!1}}}})))},notify:function(e,t){e.equalityComparer="always"==t?null:n}};var A={undefined:1,boolean:1,number:1,string:1};b.b("extenders",b.Ta),b.ic=function(e,t,n){this.da=e,this.lc=t,this.mc=n,this.Ib=!1,this.fb=this.Jb=null,b.L(this,"dispose",this.s),b.L(this,"disposeWhenNodeIsRemoved",this.l)},b.ic.prototype.s=function(){this.Ib||(this.fb&&b.a.K.yb(this.Jb,this.fb),this.Ib=!0,this.mc(),this.da=this.lc=this.mc=this.Jb=this.fb=null)},b.ic.prototype.l=function(e){this.Jb=e,b.a.K.za(e,this.fb=this.s.bind(this))},b.T=function(){b.a.Ab(this,T),T.qb(this)};var T={qb:function(e){e.U={change:[]},e.sc=1},subscribe:function(e,t,n){var r=this;n=n||"change";var i=new b.ic(r,t?e.bind(t):e,(function(){b.a.Pa(r.U[n],i),r.hb&&r.hb(n)}));return r.Qa&&r.Qa(n),r.U[n]||(r.U[n]=[]),r.U[n].push(i),i},notifySubscribers:function(e,t){if("change"===(t=t||"change")&&this.Gb(),this.Wa(t)){var n="change"===t&&this.ed||this.U[t].slice(0);try{b.u.xc();for(var r,i=0;r=n[i];++i)r.Ib||r.lc(e)}finally{b.u.end()}}},ob:function(){return this.sc},Dd:function(e){return this.ob()!==e},Gb:function(){++this.sc},ub:function(e){var t,n,r,i,a,s=this,c=b.O(s);s.gb||(s.gb=s.notifySubscribers,s.notifySubscribers=o);var l=e((function(){s.Ja=!1,c&&i===s&&(i=s.nc?s.nc():s());var e=n||a&&s.sb(r,i);a=n=t=!1,e&&s.gb(r=i)}));s.qc=function(e,n){n&&s.Ja||(a=!n),s.ed=s.U.change.slice(0),s.Ja=t=!0,i=e,l()},s.pc=function(e){t||(r=e,s.gb(e,"beforeChange"))},s.rc=function(){a=!0},s.gd=function(){s.sb(r,s.v(!0))&&(n=!0)}},Wa:function(e){return this.U[e]&&this.U[e].length},Bd:function(e){if(e)return this.U[e]&&this.U[e].length||0;var t=0;return b.a.P(this.U,(function(e,n){"dirty"!==e&&(t+=n.length)})),t},sb:function(e,t){return!this.equalityComparer||!this.equalityComparer(e,t)},toString:function(){return"[object Object]"},extend:function(e){var t=this;return e&&b.a.P(e,(function(e,n){var r=b.Ta[e];"function"==typeof r&&(t=r(t,n)||t)})),t}};b.L(T,"init",T.qb),b.L(T,"subscribe",T.subscribe),b.L(T,"extend",T.extend),b.L(T,"getSubscriptionsCount",T.Bd),b.a.Ba&&b.a.setPrototypeOf(T,Function.prototype),b.T.fn=T,b.Qc=function(e){return null!=e&&"function"==typeof e.subscribe&&"function"==typeof e.notifySubscribers},b.b("subscribable",b.T),b.b("isSubscribable",b.Qc),b.S=b.u=function(){function e(e){r.push(n),n=e}function t(){n=r.pop()}var n,r=[],i=0;return{xc:e,end:t,cc:function(e){if(n){if(!b.Qc(e))throw Error("Only subscribable things can act as dependencies");n.od.call(n.pd,e,e.fd||(e.fd=++i))}},G:function(n,r,i){try{return e(),n.apply(r,i||[])}finally{t()}},qa:function(){if(n)return n.o.qa()},Va:function(){if(n)return n.o.Va()},Ya:function(){if(n)return n.Ya},o:function(){if(n)return n.o}}}(),b.b("computedContext",b.S),b.b("computedContext.getDependenciesCount",b.S.qa),b.b("computedContext.getDependencies",b.S.Va),b.b("computedContext.isInitial",b.S.Ya),b.b("computedContext.registerDependency",b.S.cc),b.b("ignoreDependencies",b.Yd=b.u.G);var C=b.a.Da("_latestValue");b.ta=function(e){function t(){return 0<arguments.length?(t.sb(t[C],arguments[0])&&(t.ya(),t[C]=arguments[0],t.xa()),this):(b.u.cc(t),t[C])}return t[C]=e,b.a.Ba||b.a.extend(t,b.T.fn),b.T.fn.qb(t),b.a.Ab(t,R),b.options.deferUpdates&&b.Ta.deferred(t,!0),t};var R={equalityComparer:n,v:function(){return this[C]},xa:function(){this.notifySubscribers(this[C],"spectate"),this.notifySubscribers(this[C])},ya:function(){this.notifySubscribers(this[C],"beforeChange")}};b.a.Ba&&b.a.setPrototypeOf(R,b.T.fn);var S=b.ta.Ma="__ko_proto__";R[S]=b.ta,b.O=function(e){if((e="function"==typeof e&&e[S])&&e!==R[S]&&e!==b.o.fn[S])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!e},b.Za=function(e){return"function"==typeof e&&(e[S]===R[S]||e[S]===b.o.fn[S]&&e.Nc)},b.b("observable",b.ta),b.b("isObservable",b.O),b.b("isWriteableObservable",b.Za),b.b("isWritableObservable",b.Za),b.b("observable.fn",R),b.L(R,"peek",R.v),b.L(R,"valueHasMutated",R.xa),b.L(R,"valueWillMutate",R.ya),b.Ha=function(e){if("object"!=typeof(e=e||[])||!("length"in e))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return e=b.ta(e),b.a.Ab(e,b.Ha.fn),e.extend({trackArrayChanges:!0})},b.Ha.fn={remove:function(e){for(var t=this.v(),n=[],r="function"!=typeof e||b.O(e)?function(t){return t===e}:e,i=0;i<t.length;i++){var o=t[i];if(r(o)){if(0===n.length&&this.ya(),t[i]!==o)throw Error("Array modified during remove; cannot remove item");n.push(o),t.splice(i,1),i--}}return n.length&&this.xa(),n},removeAll:function(e){if(e===a){var t=this.v(),n=t.slice(0);return this.ya(),t.splice(0,t.length),this.xa(),n}return e?this.remove((function(t){return 0<=b.a.A(e,t)})):[]},destroy:function(e){var t=this.v(),n="function"!=typeof e||b.O(e)?function(t){return t===e}:e;this.ya();for(var r=t.length-1;0<=r;r--){var i=t[r];n(i)&&(i._destroy=!0)}this.xa()},destroyAll:function(e){return e===a?this.destroy((function(){return!0})):e?this.destroy((function(t){return 0<=b.a.A(e,t)})):[]},indexOf:function(e){var t=this();return b.a.A(t,e)},replace:function(e,t){var n=this.indexOf(e);0<=n&&(this.ya(),this.v()[n]=t,this.xa())},sorted:function(e){var t=this().slice(0);return e?t.sort(e):t.sort()},reversed:function(){return this().slice(0).reverse()}},b.a.Ba&&b.a.setPrototypeOf(b.Ha.fn,b.ta.fn),b.a.D("pop push reverse shift sort splice unshift".split(" "),(function(e){b.Ha.fn[e]=function(){var t=this.v();this.ya(),this.zc(t,e,arguments);var n=t[e].apply(t,arguments);return this.xa(),n===t?this:n}})),b.a.D(["slice"],(function(e){b.Ha.fn[e]=function(){var t=this();return t[e].apply(t,arguments)}})),b.Pc=function(e){return b.O(e)&&"function"==typeof e.remove&&"function"==typeof e.push},b.b("observableArray",b.Ha),b.b("isObservableArray",b.Pc),b.Ta.trackArrayChanges=function(e,t){function n(){function t(){if(l){var t,n=[].concat(e.v()||[]);e.Wa("arrayChange")&&((!c||1<l)&&(c=b.a.Pb(o,n,e.Ob)),t=c),o=n,c=null,l=0,t&&t.length&&e.notifySubscribers(t,"arrayChange")}}s?t():(s=!0,i=e.subscribe((function(){++l}),null,"spectate"),o=[].concat(e.v()||[]),c=null,r=e.subscribe(t))}if(e.Ob={},t&&"object"==typeof t&&b.a.extend(e.Ob,t),e.Ob.sparse=!0,!e.zc){var r,i,o,s=!1,c=null,l=0,u=e.Qa,h=e.hb;e.Qa=function(t){u&&u.call(e,t),"arrayChange"===t&&n()},e.hb=function(t){h&&h.call(e,t),"arrayChange"!==t||e.Wa("arrayChange")||(r&&r.s(),i&&i.s(),i=r=null,s=!1,o=a)},e.zc=function(e,t,n){function r(e,t,n){return i[i.length]={status:e,value:t,index:n}}if(s&&!l){var i=[],o=e.length,a=n.length,u=0;switch(t){case"push":u=o;case"unshift":for(t=0;t<a;t++)r("added",n[t],u+t);break;case"pop":u=o-1;case"shift":o&&r("deleted",e[u],u);break;case"splice":t=Math.min(Math.max(0,0>n[0]?o+n[0]:n[0]),o),o=1===a?o:Math.min(t+(n[1]||0),o),a=t+a-2,u=Math.max(o,a);for(var h=[],d=[],f=2;t<u;++t,++f)t<o&&d.push(r("deleted",e[t],t)),t<a&&h.push(r("added",n[f],t));b.a.Kc(d,h);break;default:return}c=i}}}};var _=b.a.Da("_state");b.o=b.$=function(e,t,n){function r(){if(0<arguments.length){if("function"!=typeof i)throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return i.apply(o.nb,arguments),this}return o.ra||b.u.cc(r),(o.ka||o.J&&r.Xa())&&r.ha(),o.X}if("object"==typeof e?n=e:(n=n||{},e&&(n.read=e)),"function"!=typeof n.read)throw Error("Pass a function that returns the value of the ko.computed");var i=n.write,o={X:a,sa:!0,ka:!0,rb:!1,jc:!1,ra:!1,wb:!1,J:!1,Wc:n.read,nb:t||n.owner,l:n.disposeWhenNodeIsRemoved||n.l||null,Sa:n.disposeWhen||n.Sa,Rb:null,I:{},V:0,Ic:null};return r[_]=o,r.Nc="function"==typeof i,b.a.Ba||b.a.extend(r,b.T.fn),b.T.fn.qb(r),b.a.Ab(r,x),n.pure?(o.wb=!0,o.J=!0,b.a.extend(r,w)):n.deferEvaluation&&b.a.extend(r,I),b.options.deferUpdates&&b.Ta.deferred(r,!0),o.l&&(o.jc=!0,o.l.nodeType||(o.l=null)),o.J||n.deferEvaluation||r.ha(),o.l&&r.ja()&&b.a.K.za(o.l,o.Rb=function(){r.s()}),r};var x={equalityComparer:n,qa:function(){return this[_].V},Va:function(){var e=[];return b.a.P(this[_].I,(function(t,n){e[n.Ka]=n.da})),e},Vb:function(e){if(!this[_].V)return!1;var t=this.Va();return-1!==b.a.A(t,e)||!!b.a.Lb(t,(function(t){return t.Vb&&t.Vb(e)}))},uc:function(e,t,n){if(this[_].wb&&t===this)throw Error("A 'pure' computed must not be called recursively");this[_].I[e]=n,n.Ka=this[_].V++,n.La=t.ob()},Xa:function(){var e,t,n=this[_].I;for(e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&(t=n[e],this.Ia&&t.da.Ja||t.da.Dd(t.La)))return!0},Jd:function(){this.Ia&&!this[_].rb&&this.Ia(!1)},ja:function(){var e=this[_];return e.ka||0<e.V},Rd:function(){this.Ja?this[_].ka&&(this[_].sa=!0):this.Hc()},$c:function(e){if(e.Hb){var t=e.subscribe(this.Jd,this,"dirty"),n=e.subscribe(this.Rd,this);return{da:e,s:function(){t.s(),n.s()}}}return e.subscribe(this.Hc,this)},Hc:function(){var e=this,t=e.throttleEvaluation;t&&0<=t?(clearTimeout(this[_].Ic),this[_].Ic=b.a.setTimeout((function(){e.ha(!0)}),t)):e.Ia?e.Ia(!0):e.ha(!0)},ha:function(e){var t=this[_],n=t.Sa,r=!1;if(!t.rb&&!t.ra){if(t.l&&!b.a.Sb(t.l)||n&&n()){if(!t.jc)return void this.s()}else t.jc=!1;t.rb=!0;try{r=this.zd(e)}finally{t.rb=!1}return r}},zd:function(e){var t=this[_],n=!1,r=t.wb?a:!t.V;n={qd:this,mb:t.I,Qb:t.V},b.u.xc({pd:n,od:f,o:this,Ya:r}),t.I={},t.V=0;var i=this.yd(t,n);return t.V?n=this.sb(t.X,i):(this.s(),n=!0),n&&(t.J?this.Gb():this.notifySubscribers(t.X,"beforeChange"),t.X=i,this.notifySubscribers(t.X,"spectate"),!t.J&&e&&this.notifySubscribers(t.X),this.rc&&this.rc()),r&&this.notifySubscribers(t.X,"awake"),n},yd:function(e,t){try{var n=e.Wc;return e.nb?n.call(e.nb):n()}finally{b.u.end(),t.Qb&&!e.J&&b.a.P(t.mb,d),e.sa=e.ka=!1}},v:function(e){var t=this[_];return(t.ka&&(e||!t.V)||t.J&&this.Xa())&&this.ha(),t.X},ub:function(e){b.T.fn.ub.call(this,e),this.nc=function(){return this[_].J||(this[_].sa?this.ha():this[_].ka=!1),this[_].X},this.Ia=function(e){this.pc(this[_].X),this[_].ka=!0,e&&(this[_].sa=!0),this.qc(this,!e)}},s:function(){var e=this[_];!e.J&&e.I&&b.a.P(e.I,(function(e,t){t.s&&t.s()})),e.l&&e.Rb&&b.a.K.yb(e.l,e.Rb),e.I=a,e.V=0,e.ra=!0,e.sa=!1,e.ka=!1,e.J=!1,e.l=a,e.Sa=a,e.Wc=a,this.Nc||(e.nb=a)}},w={Qa:function(e){var t=this,n=t[_];if(!n.ra&&n.J&&"change"==e){if(n.J=!1,n.sa||t.Xa())n.I=null,n.V=0,t.ha()&&t.Gb();else{var r=[];b.a.P(n.I,(function(e,t){r[t.Ka]=e})),b.a.D(r,(function(e,r){var i=n.I[e],o=t.$c(i.da);o.Ka=r,o.La=i.La,n.I[e]=o})),t.Xa()&&t.ha()&&t.Gb()}n.ra||t.notifySubscribers(n.X,"awake")}},hb:function(e){var t=this[_];t.ra||"change"!=e||this.Wa("change")||(b.a.P(t.I,(function(e,n){n.s&&(t.I[e]={da:n.da,Ka:n.Ka,La:n.La},n.s())})),t.J=!0,this.notifySubscribers(a,"asleep"))},ob:function(){var e=this[_];return e.J&&(e.sa||this.Xa())&&this.ha(),b.T.fn.ob.call(this)}},I={Qa:function(e){"change"!=e&&"beforeChange"!=e||this.v()}};b.a.Ba&&b.a.setPrototypeOf(x,b.T.fn);var N=b.ta.Ma;x[N]=b.o,b.Oc=function(e){return"function"==typeof e&&e[N]===x[N]},b.Fd=function(e){return b.Oc(e)&&e[_]&&e[_].wb},b.b("computed",b.o),b.b("dependentObservable",b.o),b.b("isComputed",b.Oc),b.b("isPureComputed",b.Fd),b.b("computed.fn",x),b.L(x,"peek",x.v),b.L(x,"dispose",x.s),b.L(x,"isActive",x.ja),b.L(x,"getDependenciesCount",x.qa),b.L(x,"getDependencies",x.Va),b.xb=function(e,t){return"function"==typeof e?b.o(e,t,{pure:!0}):((e=b.a.extend({},e)).pure=!0,b.o(e,t))},b.b("pureComputed",b.xb),function(){function e(n,r,i){if(i=i||new t,"object"!=typeof(n=r(n))||null===n||n===a||n instanceof RegExp||n instanceof Date||n instanceof String||n instanceof Number||n instanceof Boolean)return n;var o=n instanceof Array?[]:{};return i.save(n,o),function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)t(n);"function"==typeof e.toJSON&&t("toJSON")}else for(n in e)t(n)}(n,(function(t){var s=r(n[t]);switch(typeof s){case"boolean":case"number":case"string":case"function":o[t]=s;break;case"object":case"undefined":var c=i.get(s);o[t]=c!==a?c:e(s,r,i)}})),o}function t(){this.keys=[],this.values=[]}b.ad=function(t){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return e(t,(function(e){for(var t=0;b.O(e)&&10>t;t++)e=e();return e}))},b.toJSON=function(e,t,n){return e=b.ad(e),b.a.hc(e,t,n)},t.prototype={constructor:t,save:function(e,t){var n=b.a.A(this.keys,e);0<=n?this.values[n]=t:(this.keys.push(e),this.values.push(t))},get:function(e){return 0<=(e=b.a.A(this.keys,e))?this.values[e]:a}}}(),b.b("toJS",b.ad),b.b("toJSON",b.toJSON),b.Wd=function(e,t,n){function r(t){var r=b.xb(e,n).extend({ma:"always"}),i=r.subscribe((function(e){e&&(i.s(),t(e))}));return r.notifySubscribers(r.v()),i}return"function"!=typeof Promise||t?r(t.bind(n)):new Promise(r)},b.b("when",b.Wd),b.w={M:function(e){switch(b.a.R(e)){case"option":return!0===e.__ko__hasDomDataOptionValue__?b.a.g.get(e,b.c.options.$b):7>=b.a.W?e.getAttributeNode("value")&&e.getAttributeNode("value").specified?e.value:e.text:e.value;case"select":return 0<=e.selectedIndex?b.w.M(e.options[e.selectedIndex]):a;default:return e.value}},cb:function(e,t,n){switch(b.a.R(e)){case"option":"string"==typeof t?(b.a.g.set(e,b.c.options.$b,a),"__ko__hasDomDataOptionValue__"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=t):(b.a.g.set(e,b.c.options.$b,t),e.__ko__hasDomDataOptionValue__=!0,e.value="number"==typeof t?t:"");break;case"select":""!==t&&null!==t||(t=a);for(var r,i=-1,o=0,s=e.options.length;o<s;++o)if((r=b.w.M(e.options[o]))==t||""===r&&t===a){i=o;break}(n||0<=i||t===a&&1<e.size)&&(e.selectedIndex=i,6===b.a.W&&b.a.setTimeout((function(){e.selectedIndex=i}),0));break;default:null!==t&&t!==a||(t=""),e.value=t}}},b.b("selectExtensions",b.w),b.b("selectExtensions.readValue",b.w.M),b.b("selectExtensions.writeValue",b.w.cb),b.m=function(){function e(e){123===(e=b.a.Db(e)).charCodeAt(0)&&(e=e.slice(1,-1));var t,n=[],a=(e+="\n,").match(r),s=[],c=0;if(1<a.length){for(var l,u=0;l=a[u];++u){var h=l.charCodeAt(0);if(44===h){if(0>=c){n.push(t&&s.length?{key:t,value:s.join("")}:{unknown:t||s.join("")}),t=c=0,s=[];continue}}else if(58===h){if(!c&&!t&&1===s.length){t=s.pop();continue}}else{if(47===h&&1<l.length&&(47===l.charCodeAt(1)||42===l.charCodeAt(1)))continue;47===h&&u&&1<l.length?(h=a[u-1].match(i))&&!o[h[0]]&&(a=(e=e.substr(e.indexOf(l)+1)).match(r),u=-1,l="/"):40===h||123===h||91===h?++c:41===h||125===h||93===h?--c:t||s.length||34!==h&&39!==h||(l=l.slice(1,-1))}s.push(l)}if(0<c)throw Error("Unbalanced parentheses, braces, or brackets")}return n}var t=["true","false","null","undefined"],n=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,r=RegExp("\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'|`(?:\\\\.|[^`])*`|/\\*(?:[^*]|\\*+[^*/])*\\*+/|//.*\n|/(?:\\\\.|[^/])+/w*|[^\\s:,/][^,\"'`{}()/:[\\]]*[^\\s,\"'`{}()/:[\\]]|[^\\s]","g"),i=/[\])"'A-Za-z0-9_$]+$/,o={in:1,return:1,typeof:1},a={};return{Ra:[],wa:a,ac:e,vb:function(r,i){function o(e,r){var i;if(!u){var h=b.getBindingHandler(e);if(h&&h.preprocess&&!(r=h.preprocess(r,e,o)))return;(h=a[e])&&(i=r,0<=b.a.A(t,i)?i=!1:(h=i.match(n),i=null!==h&&(h[1]?"Object("+h[1]+")"+h[2]:i)),h=i),h&&c.push("'"+("string"==typeof a[e]?a[e]:e)+"':function(_z){"+i+"=_z}")}l&&(r="function(){return "+r+" }"),s.push("'"+e+"':"+r)}var s=[],c=[],l=(i=i||{}).valueAccessors,u=i.bindingParams,h="string"==typeof r?e(r):r;return b.a.D(h,(function(e){o(e.key||e.unknown,e.value)})),c.length&&o("_ko_property_writers","{"+c.join(",")+" }"),s.join(",")},Id:function(e,t){for(var n=0;n<e.length;n++)if(e[n].key==t)return!0;return!1},eb:function(e,t,n,r,i){e&&b.O(e)?!b.Za(e)||i&&e.v()===r||e(r):(e=t.get("_ko_property_writers"))&&e[n]&&e[n](r)}}}(),b.b("expressionRewriting",b.m),b.b("expressionRewriting.bindingRewriteValidators",b.m.Ra),b.b("expressionRewriting.parseObjectLiteral",b.m.ac),b.b("expressionRewriting.preProcessBindings",b.m.vb),b.b("expressionRewriting._twoWayBindings",b.m.wa),b.b("jsonExpressionRewriting",b.m),b.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",b.m.vb),function(){function e(e){return 8==e.nodeType&&o.test(i?e.text:e.nodeValue)}function t(e){return 8==e.nodeType&&a.test(i?e.text:e.nodeValue)}function n(n,r){for(var i=n,o=1,a=[];i=i.nextSibling;){if(t(i)&&(b.a.g.set(i,l,!0),0==--o))return a;a.push(i),e(i)&&o++}if(!r)throw Error("Cannot find closing comment tag to match: "+n.nodeValue);return null}function r(e,t){var r=n(e,t);return r?0<r.length?r[r.length-1].nextSibling:e.nextSibling:null}var i=c&&"\x3c!--test--\x3e"===c.createComment("test").text,o=i?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,a=i?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,s={ul:!0,ol:!0},l="__ko_matchedEndComment__";b.h={ea:{},childNodes:function(t){return e(t)?n(t):t.childNodes},Ea:function(t){if(e(t))for(var n=0,r=(t=b.h.childNodes(t)).length;n<r;n++)b.removeNode(t[n]);else b.a.Tb(t)},va:function(t,n){if(e(t)){b.h.Ea(t);for(var r=t.nextSibling,i=0,o=n.length;i<o;i++)r.parentNode.insertBefore(n[i],r)}else b.a.va(t,n)},Vc:function(t,n){var r;e(t)?(r=t.nextSibling,t=t.parentNode):r=t.firstChild,r?n!==r&&t.insertBefore(n,r):t.appendChild(n)},Wb:function(t,n,r){r?(r=r.nextSibling,e(t)&&(t=t.parentNode),r?n!==r&&t.insertBefore(n,r):t.appendChild(n)):b.h.Vc(t,n)},firstChild:function(n){if(e(n))return!n.nextSibling||t(n.nextSibling)?null:n.nextSibling;if(n.firstChild&&t(n.firstChild))throw Error("Found invalid end comment, as the first child of "+n);return n.firstChild},nextSibling:function(n){if(e(n)&&(n=r(n)),n.nextSibling&&t(n.nextSibling)){var i=n.nextSibling;if(t(i)&&!b.a.g.get(i,l))throw Error("Found end comment without a matching opening comment, as child of "+n);return null}return n.nextSibling},Cd:e,Vd:function(e){return(e=(i?e.text:e.nodeValue).match(o))?e[1]:null},Sc:function(n){if(s[b.a.R(n)]){var i=n.firstChild;if(i)do{if(1===i.nodeType){var o,a=null;if(o=i.firstChild)do{if(a)a.push(o);else if(e(o)){var c=r(o,!0);c?o=c:a=[o]}else t(o)&&(a=[o])}while(o=o.nextSibling);if(o=a)for(a=i.nextSibling,c=0;c<o.length;c++)a?n.insertBefore(o[c],a):n.appendChild(o[c])}}while(i=i.nextSibling)}}}}(),b.b("virtualElements",b.h),b.b("virtualElements.allowedBindings",b.h.ea),b.b("virtualElements.emptyNode",b.h.Ea),b.b("virtualElements.insertAfter",b.h.Wb),b.b("virtualElements.prepend",b.h.Vc),b.b("virtualElements.setDomNodeChildren",b.h.va),b.ga=function(){this.nd={}},b.a.extend(b.ga.prototype,{nodeHasBindings:function(e){switch(e.nodeType){case 1:return null!=e.getAttribute("data-bind")||b.j.getComponentNameForNode(e);case 8:return b.h.Cd(e);default:return!1}},getBindings:function(e,t){var n=(n=this.getBindingsString(e,t))?this.parseBindingsString(n,t,e):null;return b.j.tc(n,e,t,!1)},getBindingAccessors:function(e,t){var n=(n=this.getBindingsString(e,t))?this.parseBindingsString(n,t,e,{valueAccessors:!0}):null;return b.j.tc(n,e,t,!0)},getBindingsString:function(e){switch(e.nodeType){case 1:return e.getAttribute("data-bind");case 8:return b.h.Vd(e);default:return null}},parseBindingsString:function(e,t,n,r){try{var i,o=this.nd,a=e+(r&&r.valueAccessors||"");if(!(i=o[a])){var s,c="with($context){with($data||{}){return{"+b.m.vb(e,r)+"}}}";s=new Function("$context","$element",c),i=o[a]=s}return i(t,n)}catch(t){throw t.message="Unable to parse bindings.\nBindings value: "+e+"\nMessage: "+t.message,t}}}),b.ga.instance=new b.ga,b.b("bindingProvider",b.ga),function(){function e(e){var t=(e=b.a.g.get(e,A))&&e.N;t&&(e.N=null,t.Tc())}function t(t,n,r){this.node=t,this.yc=n,this.kb=[],this.H=!1,n.N||b.a.K.za(t,e),r&&r.N&&(r.N.kb.push(t),this.Kb=r)}function n(e){return function(){return e}}function r(e){return e()}function i(e){return b.a.Ga(b.u.G(e),(function(t,n){return function(){return e()[n]}}))}function o(e,t,r){return"function"==typeof e?i(e.bind(null,t,r)):b.a.Ga(e,n)}function l(e,t){return i(this.getBindings.bind(this,e,t))}function h(e,t){var n=b.h.firstChild(t);if(n){var r,i=b.ga.instance,o=i.preprocessNode;if(o){for(;r=n;)n=b.h.nextSibling(r),o.call(i,r);n=b.h.firstChild(t)}for(;r=n;)n=b.h.nextSibling(r),d(e,r)}b.i.ma(t,b.i.H)}function d(e,t){var n=e,r=1===t.nodeType;r&&b.h.Sc(t),(r||b.ga.instance.nodeHasBindings(t))&&(n=f(t,null,e).bindingContextForDescendants),n&&!v[b.a.R(t)]&&h(n,t)}function f(e,t,n){var i,o=b.a.g.Ub(e,A,{}),s=o.hd;if(!t){if(s)throw Error("You cannot apply bindings multiple times to the same element.");o.hd=!0}if(s||(o.context=n),o.Zb||(o.Zb={}),t&&"function"!=typeof t)i=t;else{var c=b.ga.instance,u=c.getBindingAccessors||l,h=b.$((function(){return(i=t?t(n,e):u.call(c,e,n))&&(n[g]&&n[g](),n[E]&&n[E]()),i}),null,{l:e});i&&h.ja()||(h=null)}var d,f=n;if(i){var p=function(){return b.a.Ga(h?h():i,r)},m=h?function(e){return function(){return r(h()[e])}}:function(e){return i[e]};p.get=function(e){return i[e]&&r(m(e))},p.has=function(e){return e in i},b.i.H in i&&b.i.subscribe(e,b.i.H,(function(){var t=(0,i[b.i.H])();if(t){var n=b.h.childNodes(e);n.length&&t(n,b.Ec(n[0]))}})),b.i.pa in i&&(f=b.i.Cb(e,n),b.i.subscribe(e,b.i.pa,(function(){var t=(0,i[b.i.pa])();t&&b.h.firstChild(e)&&t(e)}))),o=function(e){var t=[],n={},r=[];return b.a.P(e,(function i(o){if(!n[o]){var a=b.getBindingHandler(o);a&&(a.after&&(r.push(o),b.a.D(a.after,(function(t){if(e[t]){if(-1!==b.a.A(r,t))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+r.join(", "));i(t)}})),r.length--),t.push({key:o,Mc:a})),n[o]=!0}})),t}(i),b.a.D(o,(function(t){var n=t.Mc.init,r=t.Mc.update,o=t.key;if(8===e.nodeType&&!b.h.ea[o])throw Error("The binding '"+o+"' cannot be used with virtual elements");try{"function"==typeof n&&b.u.G((function(){var t=n(e,m(o),p,f.$data,f);if(t&&t.controlsDescendantBindings){if(d!==a)throw Error("Multiple bindings ("+d+" and "+o+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");d=o}})),"function"==typeof r&&b.$((function(){r(e,m(o),p,f.$data,f)}),null,{l:e})}catch(e){throw e.message='Unable to process binding "'+o+": "+i[o]+'"\nMessage: '+e.message,e}}))}return{shouldBindDescendants:o=d===a,bindingContextForDescendants:o&&f}}function p(e,t){return e&&e instanceof b.fa?e:new b.fa(e,a,a,t)}var g=b.a.Da("_subscribable"),m=b.a.Da("_ancestorBindingInfo"),E=b.a.Da("_dataDependency");b.c={};var v={script:!0,textarea:!0,template:!0};b.getBindingHandler=function(e){return b.c[e]};var y={};b.fa=function(e,t,n,r,i){function o(){var e=h?u():u,i=b.a.f(e);return t?(b.a.extend(c,t),m in t&&(c[m]=t[m])):(c.$parents=[],c.$root=i,c.ko=b),c[g]=s,l?i=c.$data:(c.$rawData=e,c.$data=i),n&&(c[n]=i),r&&r(c,t,i),t&&t[g]&&!b.S.o().Vb(t[g])&&t[g](),d&&(c[E]=d),c.$data}var s,c=this,l=e===y,u=l?a:e,h="function"==typeof u&&!b.O(u),d=i&&i.dataDependency;i&&i.exportDependencies?o():((s=b.xb(o)).v(),s.ja()?s.equalityComparer=null:c[g]=a)},b.fa.prototype.createChildContext=function(e,t,n,r){if(!r&&t&&"object"==typeof t&&(t=(r=t).as,n=r.extend),t&&r&&r.noChildContext){var i="function"==typeof e&&!b.O(e);return new b.fa(y,this,null,(function(r){n&&n(r),r[t]=i?e():e}),r)}return new b.fa(e,this,t,(function(e,t){e.$parentContext=t,e.$parent=t.$data,e.$parents=(t.$parents||[]).slice(0),e.$parents.unshift(e.$parent),n&&n(e)}),r)},b.fa.prototype.extend=function(e,t){return new b.fa(y,this,null,(function(t){b.a.extend(t,"function"==typeof e?e(t):e)}),t)};var A=b.a.g.Z();t.prototype.Tc=function(){this.Kb&&this.Kb.N&&this.Kb.N.sd(this.node)},t.prototype.sd=function(e){b.a.Pa(this.kb,e),!this.kb.length&&this.H&&this.Cc()},t.prototype.Cc=function(){this.H=!0,this.yc.N&&!this.kb.length&&(this.yc.N=null,b.a.K.yb(this.node,e),b.i.ma(this.node,b.i.pa),this.Tc())},b.i={H:"childrenComplete",pa:"descendantsComplete",subscribe:function(e,t,n,r,i){var o=b.a.g.Ub(e,A,{});return o.Fa||(o.Fa=new b.T),i&&i.notifyImmediately&&o.Zb[t]&&b.u.G(n,r,[e]),o.Fa.subscribe(n,r,t)},ma:function(e,t){var n=b.a.g.get(e,A);if(n&&(n.Zb[t]=!0,n.Fa&&n.Fa.notifySubscribers(e,t),t==b.i.H))if(n.N)n.N.Cc();else if(n.N===a&&n.Fa&&n.Fa.Wa(b.i.pa))throw Error("descendantsComplete event not supported for bindings on this node")},Cb:function(e,n){var r=b.a.g.Ub(e,A,{});return r.N||(r.N=new t(e,r,n[m])),n[m]==r?n:n.extend((function(e){e[m]=r}))}},b.Td=function(e){return(e=b.a.g.get(e,A))&&e.context},b.ib=function(e,t,n){return 1===e.nodeType&&b.h.Sc(e),f(e,t,p(n))},b.ld=function(e,t,n){return n=p(n),b.ib(e,o(t,n,e),n)},b.Oa=function(e,t){1!==t.nodeType&&8!==t.nodeType||h(p(e),t)},b.vc=function(e,t,n){if(!u&&s.jQuery&&(u=s.jQuery),2>arguments.length){if(!(t=c.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!t||1!==t.nodeType&&8!==t.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");d(p(e,n),t)},b.Dc=function(e){return!e||1!==e.nodeType&&8!==e.nodeType?a:b.Td(e)},b.Ec=function(e){return(e=b.Dc(e))?e.$data:a},b.b("bindingHandlers",b.c),b.b("bindingEvent",b.i),b.b("bindingEvent.subscribe",b.i.subscribe),b.b("bindingEvent.startPossiblyAsyncContentBinding",b.i.Cb),b.b("applyBindings",b.vc),b.b("applyBindingsToDescendants",b.Oa),b.b("applyBindingAccessorsToNode",b.ib),b.b("applyBindingsToNode",b.ld),b.b("contextFor",b.Dc),b.b("dataFor",b.Ec)}(),function(e){function t(t,r){var a,s=Object.prototype.hasOwnProperty.call(i,t)?i[t]:e;s?s.subscribe(r):((s=i[t]=new b.T).subscribe(r),n(t,(function(e,n){var r=!(!n||!n.synchronous);o[t]={definition:e,Gd:r},delete i[t],a||r?s.notifySubscribers(e):b.na.zb((function(){s.notifySubscribers(e)}))})),a=!0)}function n(e,t){r("getConfig",[e],(function(n){n?r("loadComponent",[e,n],(function(e){t(e,n)})):t(null,null)}))}function r(t,n,i,o){o||(o=b.j.loaders.slice(0));var a=o.shift();if(a){var s=a[t];if(s){var c=!1;if(s.apply(a,n.concat((function(e){c?i(null):null!==e?i(e):r(t,n,i,o)})))!==e&&(c=!0,!a.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else r(t,n,i,o)}else i(null)}var i={},o={};b.j={get:function(n,r){var i=Object.prototype.hasOwnProperty.call(o,n)?o[n]:e;i?i.Gd?b.u.G((function(){r(i.definition)})):b.na.zb((function(){r(i.definition)})):t(n,r)},Bc:function(e){delete o[e]},oc:r},b.j.loaders=[],b.b("components",b.j),b.b("components.get",b.j.get),b.b("components.clearCachedDefinition",b.j.Bc)}(),function(){function e(e,t,n,r){function i(){0==--s&&r(a)}var a={},s=2,c=n.template;n=n.viewModel,c?o(t,c,(function(t){b.j.oc("loadTemplate",[e,t],(function(e){a.template=e,i()}))})):i(),n?o(t,n,(function(t){b.j.oc("loadViewModel",[e,t],(function(e){a[u]=e,i()}))})):i()}function n(e,t,r){if("function"==typeof t)r((function(e){return new t(e)}));else if("function"==typeof t[u])r(t[u]);else if("instance"in t){var i=t.instance;r((function(){return i}))}else"viewModel"in t?n(e,t.viewModel,r):e("Unknown viewModel value: "+t)}function r(e){switch(b.a.R(e)){case"script":return b.a.ua(e.text);case"textarea":return b.a.ua(e.value);case"template":if(i(e.content))return b.a.Ca(e.content.childNodes)}return b.a.Ca(e.childNodes)}function i(e){return s.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function o(e,n,r){"string"==typeof n.require?t||s.require?(t||s.require)([n.require],(function(e){e&&"object"==typeof e&&e.Xd&&e.default&&(e=e.default),r(e)})):e("Uses require, but no AMD loader is present"):r(n)}function a(e){return function(t){throw Error("Component '"+e+"': "+t)}}var l={};b.j.register=function(e,t){if(!t)throw Error("Invalid configuration for "+e);if(b.j.tb(e))throw Error("Component "+e+" is already registered");l[e]=t},b.j.tb=function(e){return Object.prototype.hasOwnProperty.call(l,e)},b.j.unregister=function(e){delete l[e],b.j.Bc(e)},b.j.Fc={getConfig:function(e,t){t(b.j.tb(e)?l[e]:null)},loadComponent:function(t,n,r){var i=a(t);o(i,n,(function(n){e(t,i,n,r)}))},loadTemplate:function(e,t,n){if(e=a(e),"string"==typeof t)n(b.a.ua(t));else if(t instanceof Array)n(t);else if(i(t))n(b.a.la(t.childNodes));else if(t.element)if(t=t.element,s.HTMLElement?t instanceof HTMLElement:t&&t.tagName&&1===t.nodeType)n(r(t));else if("string"==typeof t){var o=c.getElementById(t);o?n(r(o)):e("Cannot find element with ID "+t)}else e("Unknown element type: "+t);else e("Unknown template value: "+t)},loadViewModel:function(e,t,r){n(a(e),t,r)}};var u="createViewModel";b.b("components.register",b.j.register),b.b("components.isRegistered",b.j.tb),b.b("components.unregister",b.j.unregister),b.b("components.defaultLoader",b.j.Fc),b.j.loaders.push(b.j.Fc),b.j.dd=l}(),function(){function e(e,n){if(r=e.getAttribute("params")){var r=t.parseBindingsString(r,n,e,{valueAccessors:!0,bindingParams:!0}),i=(r=b.a.Ga(r,(function(t){return b.o(t,null,{l:e})})),b.a.Ga(r,(function(t){var n=t.v();return t.ja()?b.o({read:function(){return b.a.f(t())},write:b.Za(n)&&function(e){t()(e)},l:e}):n})));return Object.prototype.hasOwnProperty.call(i,"$raw")||(i.$raw=r),i}return{$raw:{}}}b.j.getComponentNameForNode=function(e){var t=b.a.R(e);if(b.j.tb(t)&&(-1!=t.indexOf("-")||"[object HTMLUnknownElement]"==""+e||8>=b.a.W&&e.tagName===t))return t},b.j.tc=function(t,n,r,i){if(1===n.nodeType){var o=b.j.getComponentNameForNode(n);if(o){if((t=t||{}).component)throw Error('Cannot use the "component" binding on a custom element matching a component');var a={name:o,params:e(n,r)};t.component=i?function(){return a}:a}}return t};var t=new b.ga;9>b.a.W&&(b.j.register=function(e){return function(t){return e.apply(this,arguments)}}(b.j.register),c.createDocumentFragment=function(e){return function(){var t,n=e(),r=b.j.dd;for(t in r);return n}}(c.createDocumentFragment))}(),function(){var e=0;b.c.component={init:function(t,n,r,i,o){function a(){var e=s&&s.dispose;"function"==typeof e&&e.call(s),l&&l.s(),c=s=l=null}var s,c,l,u=b.a.la(b.h.childNodes(t));return b.h.Ea(t),b.a.K.za(t,a),b.o((function(){var r,i,h=b.a.f(n());if("string"==typeof h?r=h:(r=b.a.f(h.name),i=b.a.f(h.params)),!r)throw Error("No component name specified");var d=b.i.Cb(t,o),f=c=++e;b.j.get(r,(function(e){if(c===f){if(a(),!e)throw Error("Unknown component '"+r+"'");!function(e,t,n){if(!(t=t.template))throw Error("Component '"+e+"' has no template");e=b.a.Ca(t),b.h.va(n,e)}(r,e,t);var n=function(e,t,n){var r=e.createViewModel;return r?r.call(e,t,n):t}(e,i,{element:t,templateNodes:u});e=d.createChildContext(n,{extend:function(e){e.$component=n,e.$componentTemplateNodes=u}}),n&&n.koDescendantsComplete&&(l=b.i.subscribe(t,b.i.pa,n.koDescendantsComplete,n)),s=n,b.Oa(e,t)}}))}),null,{l:t}),{controlsDescendantBindings:!0}}},b.h.ea.component=!0}();var O={class:"className",for:"htmlFor"};b.c.attr={update:function(e,t){var n=b.a.f(t())||{};b.a.P(n,(function(t,n){n=b.a.f(n);var r=t.indexOf(":"),i=(r="lookupNamespaceURI"in e&&0<r&&e.lookupNamespaceURI(t.substr(0,r)),!1===n||null===n||n===a);i?r?e.removeAttributeNS(r,t):e.removeAttribute(t):n=n.toString(),8>=b.a.W&&t in O?(t=O[t],i?e.removeAttribute(t):e[t]=n):i||(r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)),"name"===t&&b.a.Yc(e,i?"":n)}))}},b.c.checked={after:["value","attr"],init:function(e,t,n){function r(){var r=e.checked,c=i();if(!b.S.Ya()&&(r||!s&&!b.S.qa())){var h=b.u.G(t);if(l){var f=u?h.v():h,p=d;d=c,p!==c?r&&(b.a.Na(f,c,!0),b.a.Na(f,p,!1)):b.a.Na(f,c,r),u&&b.Za(h)&&h(f)}else o&&(c===a?c=r:r||(c=a)),b.m.eb(h,n,"checked",c,!0)}}var i=b.xb((function(){return n.has("checkedValue")?b.a.f(n.get("checkedValue")):h?n.has("value")?b.a.f(n.get("value")):e.value:void 0})),o="checkbox"==e.type,s="radio"==e.type;if(o||s){var c=t(),l=o&&b.a.f(c)instanceof Array,u=!(l&&c.push&&c.splice),h=s||l,d=l?i():a;s&&!e.name&&b.c.uniqueName.init(e,(function(){return!0})),b.o(r,null,{l:e}),b.a.B(e,"click",r),b.o((function(){var n=b.a.f(t()),r=i();l?(e.checked=0<=b.a.A(n,r),d=r):e.checked=o&&r===a?!!n:i()===n}),null,{l:e}),c=a}}},b.m.wa.checked=!0,b.c.checkedValue={update:function(e,t){e.value=b.a.f(t())}},b.c.class={update:function(e,t){var n=b.a.Db(b.a.f(t()));b.a.Eb(e,e.__ko__cssValue,!1),e.__ko__cssValue=n,b.a.Eb(e,n,!0)}},b.c.css={update:function(e,t){var n=b.a.f(t());null!==n&&"object"==typeof n?b.a.P(n,(function(t,n){n=b.a.f(n),b.a.Eb(e,t,n)})):b.c.class.update(e,t)}},b.c.enable={update:function(e,t){var n=b.a.f(t());n&&e.disabled?e.removeAttribute("disabled"):n||e.disabled||(e.disabled=!0)}},b.c.disable={update:function(e,t){b.c.enable.update(e,(function(){return!b.a.f(t())}))}},b.c.event={init:function(e,t,n,r,i){var o=t()||{};b.a.P(o,(function(o){"string"==typeof o&&b.a.B(e,o,(function(e){var a,s=t()[o];if(s){try{var c=b.a.la(arguments);r=i.$data,c.unshift(r),a=s.apply(r,c)}finally{!0!==a&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===n.get(o+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}}))}))}},b.c.foreach={Rc:function(e){return function(){var t=e(),n=b.a.bc(t);return n&&"number"!=typeof n.length?(b.a.f(t),{foreach:n.data,as:n.as,noChildContext:n.noChildContext,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:b.ba.Ma}):{foreach:t,templateEngine:b.ba.Ma}}},init:function(e,t){return b.c.template.init(e,b.c.foreach.Rc(t))},update:function(e,t,n,r,i){return b.c.template.update(e,b.c.foreach.Rc(t),n,r,i)}},b.m.Ra.foreach=!1,b.h.ea.foreach=!0,b.c.hasfocus={init:function(e,t,n){function r(r){e.__ko_hasfocusUpdating=!0;var i=e.ownerDocument;if("activeElement"in i){var o;try{o=i.activeElement}catch(e){o=i.body}r=o===e}i=t(),b.m.eb(i,n,"hasfocus",r,!0),e.__ko_hasfocusLastValue=r,e.__ko_hasfocusUpdating=!1}var i=r.bind(null,!0),o=r.bind(null,!1);b.a.B(e,"focus",i),b.a.B(e,"focusin",i),b.a.B(e,"blur",o),b.a.B(e,"focusout",o),e.__ko_hasfocusLastValue=!1},update:function(e,t){var n=!!b.a.f(t());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===n||(n?e.focus():e.blur(),!n&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),b.u.G(b.a.Fb,null,[e,n?"focusin":"focusout"]))}},b.m.wa.hasfocus=!0,b.c.hasFocus=b.c.hasfocus,b.m.wa.hasFocus="hasfocus",b.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){b.a.fc(e,t())}},function(){function e(e,t,n){b.c[e]={init:function(e,r,i,o,a){var s,c,l,u,h,d={};if(t){o=i.get("as");var f=i.get("noChildContext");d={as:o,noChildContext:f,exportDependencies:h=!(o&&f)}}return u=(l="render"==i.get("completeOn"))||i.has(b.i.pa),b.o((function(){var i,o=b.a.f(r()),f=!n!=!o,p=!c;(h||f!==s)&&(u&&(a=b.i.Cb(e,a)),f&&(t&&!h||(d.dataDependency=b.S.o()),i=t?a.createChildContext("function"==typeof o?o:r,d):b.S.qa()?a.extend(null,d):a),p&&b.S.qa()&&(c=b.a.Ca(b.h.childNodes(e),!0)),f?(p||b.h.va(e,b.a.Ca(c)),b.Oa(i,e)):(b.h.Ea(e),l||b.i.ma(e,b.i.H)),s=f)}),null,{l:e}),{controlsDescendantBindings:!0}}},b.m.Ra[e]=!1,b.h.ea[e]=!0}e("if"),e("ifnot",!1,!0),e("with",!0)}(),b.c.let={init:function(e,t,n,r,i){return t=i.extend(t),b.Oa(t,e),{controlsDescendantBindings:!0}}},b.h.ea.let=!0;var k={};b.c.options={init:function(e){if("select"!==b.a.R(e))throw Error("options binding applies only to SELECT elements");for(;0<e.length;)e.remove(0);return{controlsDescendantBindings:!0}},update:function(e,t,n){function r(){return b.a.jb(e.options,(function(e){return e.selected}))}function i(e,t,n){var r=typeof t;return"function"==r?t(e):"string"==r?e[t]:n}function o(t,n){if(p&&u)b.i.ma(e,b.i.H);else if(f.length){var r=0<=b.a.A(f,b.w.M(n[0]));b.a.Zc(n[0],r),p&&!r&&b.u.G(b.a.Fb,null,[e,"change"])}}var s=e.multiple,c=0!=e.length&&s?e.scrollTop:null,l=b.a.f(t()),u=n.get("valueAllowUnset")&&n.has("value"),h=n.get("optionsIncludeDestroyed");t={};var d,f=[];u||(s?f=b.a.Mb(r(),b.w.M):0<=e.selectedIndex&&f.push(b.w.M(e.options[e.selectedIndex]))),l&&(void 0===l.length&&(l=[l]),d=b.a.jb(l,(function(e){return h||e===a||null===e||!b.a.f(e._destroy)})),n.has("optionsCaption")&&null!==(l=b.a.f(n.get("optionsCaption")))&&l!==a&&d.unshift(k));var p=!1;t.beforeRemove=function(t){e.removeChild(t)},l=o,n.has("optionsAfterRender")&&"function"==typeof n.get("optionsAfterRender")&&(l=function(e,t){o(0,t),b.u.G(n.get("optionsAfterRender"),null,[t[0],e!==k?e:a])}),b.a.ec(e,d,(function(t,r,o){return o.length&&(f=!u&&o[0].selected?[b.w.M(o[0])]:[],p=!0),r=e.ownerDocument.createElement("option"),t===k?(b.a.Bb(r,n.get("optionsCaption")),b.w.cb(r,a)):(o=i(t,n.get("optionsValue"),t),b.w.cb(r,b.a.f(o)),t=i(t,n.get("optionsText"),o),b.a.Bb(r,t)),[r]}),t,l),u||(s?f.length&&r().length<f.length:f.length&&0<=e.selectedIndex?b.w.M(e.options[e.selectedIndex])!==f[0]:f.length||0<=e.selectedIndex)&&b.u.G(b.a.Fb,null,[e,"change"]),(u||b.S.Ya())&&b.i.ma(e,b.i.H),b.a.wd(e),c&&20<Math.abs(c-e.scrollTop)&&(e.scrollTop=c)}},b.c.options.$b=b.a.g.Z(),b.c.selectedOptions={init:function(e,t,n){function r(){var r=t(),i=[];b.a.D(e.getElementsByTagName("option"),(function(e){e.selected&&i.push(b.w.M(e))})),b.m.eb(r,n,"selectedOptions",i)}function i(){var n=b.a.f(t()),r=e.scrollTop;n&&"number"==typeof n.length&&b.a.D(e.getElementsByTagName("option"),(function(e){var t=0<=b.a.A(n,b.w.M(e));e.selected!=t&&b.a.Zc(e,t)})),e.scrollTop=r}if("select"!=b.a.R(e))throw Error("selectedOptions binding applies only to SELECT elements");var o;b.i.subscribe(e,b.i.H,(function(){o?r():(b.a.B(e,"change",r),o=b.o(i,null,{l:e}))}),null,{notifyImmediately:!0})},update:function(){}},b.m.wa.selectedOptions=!0,b.c.style={update:function(e,t){var n=b.a.f(t()||{});b.a.P(n,(function(t,n){if(null!==(n=b.a.f(n))&&n!==a&&!1!==n||(n=""),u)u(e).css(t,n);else if(/^--/.test(t))e.style.setProperty(t,n);else{t=t.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}));var r=e.style[t];e.style[t]=n,n===r||e.style[t]!=r||isNaN(n)||(e.style[t]=n+"px")}}))}},b.c.submit={init:function(e,t,n,r,i){if("function"!=typeof t())throw Error("The value for a submit binding must be a function");b.a.B(e,"submit",(function(n){var r,o=t();try{r=o.call(i.$data,e)}finally{!0!==r&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}}))}},b.c.text={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){b.a.Bb(e,t())}},b.h.ea.text=!0,function(){if(s&&s.navigator){var e,t,n,r,i,o=function(e){if(e)return parseFloat(e[1])},c=s.navigator.userAgent;(e=s.opera&&s.opera.version&&parseInt(s.opera.version()))||(i=o(c.match(/Edge\/([^ ]+)$/)))||o(c.match(/Chrome\/([^ ]+)/))||(t=o(c.match(/Version\/([^ ]+) Safari/)))||(n=o(c.match(/Firefox\/([^ ]+)/)))||(r=b.a.W||o(c.match(/MSIE ([^ ]+)/)))||(r=o(c.match(/rv:([^ )]+)/)))}if(8<=r&&10>r)var l=b.a.g.Z(),u=b.a.g.Z(),h=function(e){var t=this.activeElement;(t=t&&b.a.g.get(t,u))&&t(e)},d=function(e,t){var n=e.ownerDocument;b.a.g.get(n,l)||(b.a.g.set(n,l,!0),b.a.B(n,"selectionchange",h)),b.a.g.set(e,u,t)};b.c.textInput={init:function(o,s,c){function l(e,t){b.a.B(o,e,t)}function u(){f||(p=o.value,f=b.a.setTimeout(h,4))}function h(){clearTimeout(f),p=f=a;var e=o.value;g!==e&&(g=e,b.m.eb(s(),c,"textInput",e))}var f,p,g=o.value,m=9==b.a.W?u:h,E=!1;r&&l("keypress",h),11>r&&l("propertychange",(function(e){E||"value"!==e.propertyName||m(e)})),8==r&&(l("keyup",h),l("keydown",h)),d&&(d(o,m),l("dragend",u)),(!r||9<=r)&&l("input",m),5>t&&"textarea"===b.a.R(o)?(l("keydown",u),l("paste",u),l("cut",u)):11>e?l("keydown",u):4>n?(l("DOMAutoComplete",h),l("dragdrop",h),l("drop",h)):i&&"number"===o.type&&l("keydown",u),l("change",h),l("blur",h),b.o((function e(){var t=b.a.f(s());null!==t&&t!==a||(t=""),p!==a&&t===p?b.a.setTimeout(e,4):o.value!==t&&(E=!0,o.value=t,E=!1,g=o.value)}),null,{l:o})}},b.m.wa.textInput=!0,b.c.textinput={preprocess:function(e,t,n){n("textInput",e)}}}(),b.c.uniqueName={init:function(e,t){if(t()){var n="ko_unique_"+ ++b.c.uniqueName.rd;b.a.Yc(e,n)}}},b.c.uniqueName.rd=0,b.c.using={init:function(e,t,n,r,i){var o;return n.has("as")&&(o={as:n.get("as"),noChildContext:n.get("noChildContext")}),t=i.createChildContext(t,o),b.Oa(t,e),{controlsDescendantBindings:!0}}},b.h.ea.using=!0,b.c.value={init:function(e,t,n){var r=b.a.R(e),i="input"==r;if(!i||"checkbox"!=e.type&&"radio"!=e.type){var o=[],s=n.get("valueUpdate"),c=!1,l=null;s&&(o="string"==typeof s?[s]:b.a.wc(s),b.a.Pa(o,"change"));var u,h,d=function(){l=null,c=!1;var r=t(),i=b.w.M(e);b.m.eb(r,n,"value",i)};!b.a.W||!i||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=b.a.A(o,"propertychange")||(b.a.B(e,"propertychange",(function(){c=!0})),b.a.B(e,"focus",(function(){c=!1})),b.a.B(e,"blur",(function(){c&&d()}))),b.a.D(o,(function(t){var n=d;b.a.Ud(t,"after")&&(n=function(){l=b.w.M(e),b.a.setTimeout(d,0)},t=t.substring(5)),b.a.B(e,t,n)})),u=i&&"file"==e.type?function(){var n=b.a.f(t());null===n||n===a||""===n?e.value="":b.u.G(d)}:function(){var i=b.a.f(t()),o=b.w.M(e);null!==l&&i===l?b.a.setTimeout(u,0):i===o&&o!==a||("select"===r?(o=n.get("valueAllowUnset"),b.w.cb(e,i,o),o||i===b.w.M(e)||b.u.G(d)):b.w.cb(e,i))},"select"===r?b.i.subscribe(e,b.i.H,(function(){h?n.get("valueAllowUnset")?u():d():(b.a.B(e,"change",d),h=b.o(u,null,{l:e}))}),null,{notifyImmediately:!0}):(b.a.B(e,"change",d),b.o(u,null,{l:e}))}else b.ib(e,{checkedValue:t})},update:function(){}},b.m.wa.value=!0,b.c.visible={update:function(e,t){var n=b.a.f(t()),r="none"!=e.style.display;n&&!r?e.style.display="":!n&&r&&(e.style.display="none")}},b.c.hidden={update:function(e,t){b.c.visible.update(e,(function(){return!b.a.f(t())}))}},function(e){b.c[e]={init:function(t,n,r,i,o){return b.c.event.init.call(this,t,(function(){var t={};return t[e]=n(),t}),r,i,o)}}}("click"),b.ca=function(){},b.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},b.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},b.ca.prototype.makeTemplateSource=function(e,t){if("string"==typeof e){var n=(t=t||c).getElementById(e);if(!n)throw Error("Cannot find template with ID "+e);return new b.C.F(n)}if(1==e.nodeType||8==e.nodeType)return new b.C.ia(e);throw Error("Unknown template type: "+e)},b.ca.prototype.renderTemplate=function(e,t,n,r){return e=this.makeTemplateSource(e,r),this.renderTemplateSource(e,t,n,r)},b.ca.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,t).data("isRewritten")},b.ca.prototype.rewriteTemplate=function(e,t,n){t=t((e=this.makeTemplateSource(e,n)).text()),e.text(t),e.data("isRewritten",!0)},b.b("templateEngine",b.ca),b.kc=function(){function e(e,t,n,r){e=b.m.ac(e);for(var i=b.m.Ra,o=0;o<e.length;o++){var a=e[o].key;if(Object.prototype.hasOwnProperty.call(i,a)){var s=i[a];if("function"==typeof s){if(a=s(e[o].value))throw Error(a)}else if(!s)throw Error("This template engine does not support the '"+a+"' binding within its templates")}}return n="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+b.m.vb(e,{valueAccessors:!0})+" } })()},'"+n.toLowerCase()+"')",r.createJavaScriptEvaluatorBlock(n)+t}var t=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,n=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{xd:function(e,t,n){t.isTemplateRewritten(e,n)||t.rewriteTemplate(e,(function(e){return b.kc.Ld(e,t)}),n)},Ld:function(r,i){return r.replace(t,(function(t,n,r,o,a){return e(a,n,r,i)})).replace(n,(function(t,n){return e(n,"\x3c!-- ko --\x3e","#comment",i)}))},md:function(e,t){return b.aa.Xb((function(n,r){var i=n.nextSibling;i&&i.nodeName.toLowerCase()===t&&b.ib(i,e,r)}))}}}(),b.b("__tr_ambtns",b.kc.md),function(){b.C={},b.C.F=function(e){if(this.F=e){var t=b.a.R(e);this.ab="script"===t?1:"textarea"===t?2:"template"==t&&e.content&&11===e.content.nodeType?3:4}},b.C.F.prototype.text=function(){var e=1===this.ab?"text":2===this.ab?"value":"innerHTML";if(0==arguments.length)return this.F[e];var t=arguments[0];"innerHTML"===e?b.a.fc(this.F,t):this.F[e]=t};var e=b.a.g.Z()+"_";b.C.F.prototype.data=function(t){if(1===arguments.length)return b.a.g.get(this.F,e+t);b.a.g.set(this.F,e+t,arguments[1])};var t=b.a.g.Z();b.C.F.prototype.nodes=function(){var e=this.F;if(0==arguments.length){var n=b.a.g.get(e,t)||{},r=n.lb||(3===this.ab?e.content:4===this.ab?e:a);if(!r||n.jd){var i=this.text();i&&i!==n.bb&&(r=b.a.Md(i,e.ownerDocument),b.a.g.set(e,t,{lb:r,bb:i,jd:!0}))}return r}n=arguments[0],this.ab!==a&&this.text(""),b.a.g.set(e,t,{lb:n})},b.C.ia=function(e){this.F=e},b.C.ia.prototype=new b.C.F,b.C.ia.prototype.constructor=b.C.ia,b.C.ia.prototype.text=function(){if(0==arguments.length){var e=b.a.g.get(this.F,t)||{};return e.bb===a&&e.lb&&(e.bb=e.lb.innerHTML),e.bb}b.a.g.set(this.F,t,{bb:arguments[0]})},b.b("templateSources",b.C),b.b("templateSources.domElement",b.C.F),b.b("templateSources.anonymousTemplate",b.C.ia)}(),function(){function e(e,t,n){var r;for(t=b.h.nextSibling(t);e&&(r=e)!==t;)n(r,e=b.h.nextSibling(r))}function t(t,n){if(t.length){var r=t[0],i=t[t.length-1],o=r.parentNode,a=b.ga.instance,s=a.preprocessNode;if(s){if(e(r,i,(function(e,t){var n=e.previousSibling,o=s.call(a,e);o&&(e===r&&(r=o[0]||t),e===i&&(i=o[o.length-1]||n))})),t.length=0,!r)return;r===i?t.push(r):(t.push(r,i),b.a.Ua(t,o))}e(r,i,(function(e){1!==e.nodeType&&8!==e.nodeType||b.vc(n,e)})),e(r,i,(function(e){1!==e.nodeType&&8!==e.nodeType||b.aa.cd(e,[n])})),b.a.Ua(t,o)}}function n(e){return e.nodeType?e:0<e.length?e[0]:null}function r(e,r,i,a,s){s=s||{};var c=(e&&n(e)||i||{}).ownerDocument,l=s.templateEngine||o;if(b.kc.xd(i,l,c),"number"!=typeof(i=l.renderTemplate(i,a,s,c)).length||0<i.length&&"number"!=typeof i[0].nodeType)throw Error("Template engine must return an array of DOM nodes");switch(c=!1,r){case"replaceChildren":b.h.va(e,i),c=!0;break;case"replaceNode":b.a.Xc(e,i),c=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+r)}return c&&(t(i,a),s.afterRender&&b.u.G(s.afterRender,null,[i,a[s.as||"$data"]]),"replaceChildren"==r&&b.i.ma(e,b.i.H)),i}function i(e,t,n){return b.O(e)?e():"function"==typeof e?e(t,n):e}var o;b.gc=function(e){if(e!=a&&!(e instanceof b.ca))throw Error("templateEngine must inherit from ko.templateEngine");o=e},b.dc=function(e,t,s,c,l){if(((s=s||{}).templateEngine||o)==a)throw Error("Set a template engine before calling renderTemplate");if(l=l||"replaceChildren",c){var u=n(c);return b.$((function(){var o=t&&t instanceof b.fa?t:new b.fa(t,null,null,null,{exportDependencies:!0}),a=i(e,o.$data,o);o=r(c,l,a,o,s),"replaceNode"==l&&(u=n(c=o))}),null,{Sa:function(){return!u||!b.a.Sb(u)},l:u&&"replaceNode"==l?u.parentNode:u})}return b.aa.Xb((function(n){b.dc(e,t,s,n,"replaceNode")}))},b.Qd=function(e,n,o,s,c){function l(e,t){b.u.G(b.a.ec,null,[s,e,h,o,u,t]),b.i.ma(s,b.i.H)}function u(e,n){t(n,d),o.afterRender&&o.afterRender(n,e),d=null}function h(t,n){d=c.createChildContext(t,{as:f,noChildContext:o.noChildContext,extend:function(e){e.$index=n,f&&(e[f+"Index"]=n)}});var a=i(e,t,d);return r(s,"ignoreTargetNode",a,d,o)}var d,f=o.as,p=!1===o.includeDestroyed||b.options.foreachHidesDestroyed&&!o.includeDestroyed;if(p||o.beforeRemove||!b.Pc(n))return b.$((function(){var e=b.a.f(n)||[];void 0===e.length&&(e=[e]),p&&(e=b.a.jb(e,(function(e){return e===a||null===e||!b.a.f(e._destroy)}))),l(e)}),null,{l:s});l(n.v());var g=n.subscribe((function(e){l(n(),e)}),null,"arrayChange");return g.l(s),g};var s=b.a.g.Z(),c=b.a.g.Z();b.c.template={init:function(e,t){var n=b.a.f(t());if("string"==typeof n||"name"in n)b.h.Ea(e);else if("nodes"in n){if(n=n.nodes||[],b.O(n))throw Error('The "nodes" option must be a plain, non-observable array.');var r=n[0]&&n[0].parentNode;r&&b.a.g.get(r,c)||(r=b.a.Yb(n),b.a.g.set(r,c,!0)),new b.C.ia(e).nodes(r)}else{if(!(0<(n=b.h.childNodes(e)).length))throw Error("Anonymous template defined, but no template content was provided");r=b.a.Yb(n),new b.C.ia(e).nodes(r)}return{controlsDescendantBindings:!0}},update:function(e,t,n,r,i){var o=t();n=!0,r=null,"string"==typeof(t=b.a.f(o))?t={}:(o="name"in t?t.name:e,"if"in t&&(n=b.a.f(t.if)),n&&"ifnot"in t&&(n=!b.a.f(t.ifnot)),n&&!o&&(n=!1)),"foreach"in t?r=b.Qd(o,n&&t.foreach||[],t,e,i):n?(n=i,"data"in t&&(n=i.createChildContext(t.data,{as:t.as,noChildContext:t.noChildContext,exportDependencies:!0})),r=b.dc(o,n,t,e)):b.h.Ea(e),i=r,(t=b.a.g.get(e,s))&&"function"==typeof t.s&&t.s(),b.a.g.set(e,s,!i||i.ja&&!i.ja()?a:i)}},b.m.Ra.template=function(e){return 1==(e=b.m.ac(e)).length&&e[0].unknown||b.m.Id(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"},b.h.ea.template=!0}(),b.b("setTemplateEngine",b.gc),b.b("renderTemplate",b.dc),b.a.Kc=function(e,t,n){var r,i,o,a,s;if(e.length&&t.length)for(r=i=0;(!n||r<n)&&(a=e[i]);++i){for(o=0;s=t[o];++o)if(a.value===s.value){a.moved=s.index,s.moved=a.index,t.splice(o,1),r=o=0;break}r+=o}},b.a.Pb=function(){function e(e,t,n,r,i){var o,a,s,c,l,u=Math.min,h=Math.max,d=[],f=e.length,p=t.length,g=p-f||1,m=f+p+1;for(o=0;o<=f;o++)for(c=s,d.push(s=[]),l=u(p,o+g),a=h(0,o-1);a<=l;a++)s[a]=a?o?e[o-1]===t[a-1]?c[a-1]:u(c[a]||m,s[a-1]||m)+1:a+1:o+1;for(u=[],h=[],g=[],o=f,a=p;o||a;)p=d[o][a]-1,a&&p===d[o][a-1]?h.push(u[u.length]={status:n,value:t[--a],index:a}):o&&p===d[o-1][a]?g.push(u[u.length]={status:r,value:e[--o],index:o}):(--a,--o,i.sparse||u.push({status:"retained",value:t[a]}));return b.a.Kc(g,h,!i.dontLimitMoves&&10*f),u.reverse()}return function(t,n,r){return r="boolean"==typeof r?{dontLimitMoves:r}:r||{},n=n||[],(t=t||[]).length<n.length?e(t,n,"added","deleted",r):e(n,t,"deleted","added",r)}}(),b.b("utils.compareArrays",b.a.Pb),function(){function e(e,t,n,r,i){var o=[],s=b.$((function(){var a=t(n,i,b.a.Ua(o,e))||[];0<o.length&&(b.a.Xc(o,a),r&&b.u.G(r,null,[n,a,i])),o.length=0,b.a.Nb(o,a)}),null,{l:e,Sa:function(){return!b.a.kd(o)}});return{Y:o,$:s.ja()?s:a}}var t=b.a.g.Z(),n=b.a.g.Z();b.a.ec=function(r,i,o,s,c,l){function u(e){f={Aa:e,pb:b.ta(T++)},y.push(f),v||x.push(f)}function h(e){f=E[e],T!==f.pb.v()&&_.push(f),f.pb(T++),b.a.Ua(f.Y,r),y.push(f)}function d(e,t){if(e)for(var n=0,r=t.length;n<r;n++)b.a.D(t[n].Y,(function(r){e(r,n,t[n].Aa)}))}void 0===(i=i||[]).length&&(i=[i]),s=s||{};var f,p,g,m,E=b.a.g.get(r,t),v=!E,y=[],A=0,T=0,C=[],R=[],S=[],_=[],x=[],w=0;if(v)b.a.D(i,u);else{if(!l||E&&E._countWaitingForRemove){var I=b.a.Mb(E,(function(e){return e.Aa}));l=b.a.Pb(I,i,{dontLimitMoves:s.dontLimitMoves,sparse:!0})}var N,O,k;for(I=0;N=l[I];I++)switch(O=N.moved,k=N.index,N.status){case"deleted":for(;A<k;)h(A++);O===a&&((f=E[A]).$&&(f.$.s(),f.$=a),b.a.Ua(f.Y,r).length&&(s.beforeRemove&&(y.push(f),w++,f.Aa===n?f=null:S.push(f)),f&&C.push.apply(C,f.Y))),A++;break;case"added":for(;T<k;)h(A++);O!==a?(R.push(y.length),h(O)):u(N.value)}for(;T<i.length;)h(A++);y._countWaitingForRemove=w}b.a.g.set(r,t,y),d(s.beforeMove,_),b.a.D(C,s.beforeRemove?b.oa:b.removeNode);try{m=r.ownerDocument.activeElement}catch(e){}if(R.length)for(;(I=R.shift())!=a;){for(f=y[I],p=a;I;)if((g=y[--I].Y)&&g.length){p=g[g.length-1];break}for(i=0;A=f.Y[i];p=A,i++)b.h.Wb(r,A,p)}for(I=0;f=y[I];I++){for(f.Y||b.a.extend(f,e(r,o,f.Aa,c,f.pb)),i=0;A=f.Y[i];p=A,i++)b.h.Wb(r,A,p);!f.Ed&&c&&(c(f.Aa,f.Y,f.pb),f.Ed=!0,p=f.Y[f.Y.length-1])}for(m&&r.ownerDocument.activeElement!=m&&m.focus(),d(s.beforeRemove,S),I=0;I<S.length;++I)S[I].Aa=n;d(s.afterMove,_),d(s.afterAdd,x)}}(),b.b("utils.setDomNodeChildrenFromArrayMapping",b.a.ec),b.ba=function(){this.allowTemplateRewriting=!1},b.ba.prototype=new b.ca,b.ba.prototype.constructor=b.ba,b.ba.prototype.renderTemplateSource=function(e,t,n,r){return(t=9>b.a.W||!e.nodes?null:e.nodes())?b.a.la(t.cloneNode(!0).childNodes):(e=e.text(),b.a.ua(e,r))},b.ba.Ma=new b.ba,b.gc(b.ba.Ma),b.b("nativeTemplateEngine",b.ba),function(){b.$a=function(){var e=this.Hd=function(){if(!u||!u.tmpl)return 0;try{if(0<=u.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(t,n,r,i){if(i=i||c,r=r||{},2>e)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var o=t.data("precompiled");return o||(o=t.text()||"",o=u.template(null,"{{ko_with $item.koBindingContext}}"+o+"{{/ko_with}}"),t.data("precompiled",o)),t=[n.$data],n=u.extend({koBindingContext:n},r.templateOptions),(n=u.tmpl(o,t,n)).appendTo(i.createElement("div")),u.fragments={},n},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,t){c.write("<script type='text/html' id='"+e+"'>"+t+"<\/script>")},0<e&&(u.tmpl.tag.ko_code={open:"__.push($1 || '');"},u.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},b.$a.prototype=new b.ca,b.$a.prototype.constructor=b.$a;var e=new b.$a;0<e.Hd&&b.gc(e),b.b("jqueryTmplTemplateEngine",b.$a)}()}))}()},1466:(e,t,n)=>{e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){return i(t[a][1][e]||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,r){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}t.exports=function(e){1!==l.push(e)||r||n()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(e,t,n){r((function(){var r;try{r=t(n)}catch(t){return o.reject(e,t)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)}))}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var a=p((function(){t(i,r)}));"error"===a.status&&r(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}t.exports=l,l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==c?h(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(d,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)f(e,r);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return o.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){t.resolve(e).then((function(e){a[i]=e,++s!==n||r||(r=!0,o.resolve(l,a))}),(function(e){r||(r=!0,o.reject(l,e))}))}},l.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n,r=e.length,a=!1;if(!r)return this.resolve([]);for(var s=-1,c=new this(i);++s<r;)n=e[s],t.resolve(n).then((function(e){a||(a=!0,o.resolve(c,e))}),(function(e){a||(a=!0,o.reject(c,e))}));return c}},{1:1}],3:[function(e,t,r){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function o(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(i){if("TypeError"!==i.name)throw i;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var a=Promise;function s(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function c(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function l(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function u(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var h="local-forage-detect-blob-support",d=void 0,f={},p=Object.prototype.toString,g="readonly",m="readwrite";function E(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i<t;i++)r[i]=e.charCodeAt(i);return n}function v(e){return"boolean"==typeof d?a.resolve(d):function(e){return new a((function(t){var n=e.transaction(h,m),r=o([""]);n.objectStore(h).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}(e).then((function(e){return d=e}))}function y(e){var t=f[e.name],n={};n.promise=new a((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function b(e){var t=f[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function A(e,t){var n=f[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function T(e,t){return new a((function(n,r){if(f[e.name]=f[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);y(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var a=i.open.apply(i,o);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(h)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){n(a.result),b(e)}}))}function C(e){return T(e,!1)}function R(e){return T(e,!0)}function S(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,i=e.version>e.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function _(e){return o([E(atob(e.data))],{type:e.type})}function x(e){return e&&e.__local_forage_encoded_blob}function w(e){var t=this,n=t._initReady().then((function(){var e=f[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return c(n,e,e),n}function I(e,t,n,r){void 0===r&&(r=1);try{var i=e.db.transaction(e.storeName,t);n(null,i)}catch(i){if(r>0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return a.resolve().then((function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),R(e)})).then((function(){return function(e){y(e);for(var t=f[e.name],n=t.forages,r=0;r<n.length;r++){var i=n[r];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return e.db=null,C(e).then((function(t){return e.db=t,S(e)?R(e):t})).then((function(r){e.db=t.db=r;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=r})).catch((function(t){throw A(e,t),t}))}(e).then((function(){I(e,t,n,r-1)}))})).catch(n);n(i)}}var N={_driver:"asyncStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=f[n.name];i||(i={forages:[],db:null,dbReady:null,deferredOperations:[]},f[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=w);var o=[];function s(){return a.resolve()}for(var c=0;c<i.forages.length;c++){var l=i.forages[c];l!==t&&o.push(l._initReady().catch(s))}var u=i.forages.slice(0);return a.all(o).then((function(){return n.db=i.db,C(n)})).then((function(e){return n.db=e,S(n,t._defaultConfig.version)?R(n):e})).then((function(e){n.db=i.db=e,t._dbInfo=n;for(var r=0;r<u.length;r++){var o=u[r];o!==t&&(o._dbInfo.db=n.db,o._dbInfo.version=n.version)}}))},_support:function(){try{if(!i)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){I(n._dbInfo,g,(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var n=a.result;if(n){var r=n.value;x(r)&&(r=_(r));var i=e(r,n.key,s++);void 0!==i?t(i):n.continue()}else t()},a.onerror=function(){r(a.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},getItem:function(e,t){var n=this;e=l(e);var r=new a((function(t,r){n.ready().then((function(){I(n._dbInfo,g,(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),x(e)&&(e=_(e)),t(e)},a.onerror=function(){r(a.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},setItem:function(e,t,n){var r=this;e=l(e);var i=new a((function(n,i){var o;r.ready().then((function(){return o=r._dbInfo,"[object Blob]"===p.call(t)?v(o.db).then((function(e){return e?t:(n=t,new a((function(e,t){var r=new FileReader;r.onerror=t,r.onloadend=function(t){var r=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:n.type})},r.readAsBinaryString(n)})));var n})):t})).then((function(t){I(r._dbInfo,m,(function(o,a){if(o)return i(o);try{var s=a.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var c=s.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),n(t)},a.onabort=a.onerror=function(){var e=c.error?c.error:c.transaction.error;i(e)}}catch(e){i(e)}}))})).catch(i)}));return s(i,n),i},removeItem:function(e,t){var n=this;e=l(e);var r=new a((function(t,r){n.ready().then((function(){I(n._dbInfo,m,(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).delete(e);o.oncomplete=function(){t()},o.onerror=function(){r(a.error)},o.onabort=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},clear:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){I(t._dbInfo,m,(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){var e=o.error?o.error:o.transaction.error;n(e)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},length:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){I(t._dbInfo,g,(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){n(o.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},key:function(e,t){var n=this,r=new a((function(t,r){e<0?t(null):n.ready().then((function(){I(n._dbInfo,g,(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName),s=!1,c=a.openCursor();c.onsuccess=function(){var n=c.result;n?0===e||s?t(n.key):(s=!0,n.advance(e)):t(null)},c.onerror=function(){r(c.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},keys:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){I(t._dbInfo,g,(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).openCursor(),a=[];o.onsuccess=function(){var t=o.result;t?(a.push(t.key),t.continue()):e(a)},o.onerror=function(){n(o.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},dropInstance:function(e,t){t=u.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,o=this;if(e.name){var c=e.name===n.name&&o._dbInfo.db?a.resolve(o._dbInfo.db):C(e).then((function(t){var n=f[e.name],r=n.forages;n.db=t;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=t;return t}));r=e.storeName?c.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;y(e);var r=f[e.name],o=r.forages;t.close();for(var s=0;s<o.length;s++){var c=o[s];c._dbInfo.db=null,c._dbInfo.version=n}var l=new a((function(t,r){var o=i.open(e.name,n);o.onerror=function(e){o.result.close(),r(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}}));return l.then((function(e){r.db=e;for(var t=0;t<o.length;t++){var n=o[t];n._dbInfo.db=e,b(n._dbInfo)}})).catch((function(t){throw(A(e,t)||a.resolve()).catch((function(){})),t}))}})):c.then((function(t){y(e);var n=f[e.name],r=n.forages;t.close();for(var o=0;o<r.length;o++)r[o]._dbInfo.db=null;var s=new a((function(t,n){var r=i.deleteDatabase(e.name);r.onerror=r.onblocked=function(e){var t=r.result;t&&t.close(),n(e)},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}}));return s.then((function(e){n.db=e;for(var t=0;t<r.length;t++)b(r[t]._dbInfo)})).catch((function(t){throw(A(e,t)||a.resolve()).catch((function(){})),t}))}))}else r=a.reject("Invalid arguments");return s(r,t),r}};var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k=/^~~local_forage_type~([^~]+)~/,L="__lfsc__:",D=L.length,F="arbf",M="blob",P="si08",B="ui08",U="uic8",$="si16",H="si32",G="ur16",W="ui32",V="fl32",j="fl64",q=D+F.length,z=Object.prototype.toString;function Y(e){var t,n,r,i,o,a=.75*e.length,s=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var l=new ArrayBuffer(a),u=new Uint8Array(l);for(t=0;t<s;t+=4)n=O.indexOf(e[t]),r=O.indexOf(e[t+1]),i=O.indexOf(e[t+2]),o=O.indexOf(e[t+3]),u[c++]=n<<2|r>>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&o;return l}function K(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=O[n[t]>>2],r+=O[(3&n[t])<<4|n[t+1]>>4],r+=O[(15&n[t+1])<<2|n[t+2]>>6],r+=O[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var X={serialize:function(e,t){var n="";if(e&&(n=z.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===z.call(e.buffer))){var r,i=L;e instanceof ArrayBuffer?(r=e,i+=F):(r=e.buffer,"[object Int8Array]"===n?i+=P:"[object Uint8Array]"===n?i+=B:"[object Uint8ClampedArray]"===n?i+=U:"[object Int16Array]"===n?i+=$:"[object Uint16Array]"===n?i+=G:"[object Int32Array]"===n?i+=H:"[object Uint32Array]"===n?i+=W:"[object Float32Array]"===n?i+=V:"[object Float64Array]"===n?i+=j:t(new Error("Failed to get type for BinaryArray"))),t(i+K(r))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n="~~local_forage_type~"+e.type+"~"+K(this.result);t("__lfsc__:blob"+n)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if(e.substring(0,D)!==L)return JSON.parse(e);var t,n=e.substring(q),r=e.substring(D,q);if(r===M&&k.test(n)){var i=n.match(k);t=i[1],n=n.substring(i[0].length)}var a=Y(n);switch(r){case F:return a;case M:return o([a],{type:t});case P:return new Int8Array(a);case B:return new Uint8Array(a);case U:return new Uint8ClampedArray(a);case $:return new Int16Array(a);case G:return new Uint16Array(a);case H:return new Int32Array(a);case W:return new Uint32Array(a);case V:return new Float32Array(a);case j:return new Float64Array(a);default:throw new Error("Unkown type: "+r)}},stringToBuffer:Y,bufferToString:K};function J(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function Z(e,t,n,r,i,o){e.executeSql(n,r,i,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?o(e,a):J(e,t,(function(){e.executeSql(n,r,i,o)}),o)}),o):o(e,a)}),o)}function Q(e,t,n,r){var i=this;e=l(e);var o=new a((function(o,a){i.ready().then((function(){void 0===t&&(t=null);var s=t,c=i._dbInfo;c.serializer.serialize(t,(function(t,l){l?a(l):c.db.transaction((function(n){Z(n,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){o(s)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void o(Q.apply(i,[e,s,n,r-1]));a(t)}}))}))})).catch(a)}));return s(o,n),o}function ee(e){return new a((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var i=[],o=0;o<r.rows.length;o++)i.push(r.rows.item(o).name);t({db:e,storeNames:i})}),(function(e,t){n(t)}))}),(function(e){n(e)}))}))}var te={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var i=new a((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction((function(i){J(i,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=X,i},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){Z(n,i,"SELECT * FROM "+i.storeName,[],(function(n,r){for(var o=r.rows,a=o.length,s=0;s<a;s++){var c=o.item(s),l=c.value;if(l&&(l=i.serializer.deserialize(l)),void 0!==(l=e(l,c.key,s+1)))return void t(l)}t()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},getItem:function(e,t){var n=this;e=l(e);var r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){Z(n,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},setItem:function(e,t,n){return Q.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=l(e);var r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){Z(n,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},clear:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Z(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},length:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Z(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},key:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){Z(n,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},keys:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Z(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},dropInstance:function(e,t){t=u.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;return s(r=e.name?new a((function(t){var r;r=e.name===n.name?i._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(ee(r))})).then((function(e){return new a((function(t,n){e.db.transaction((function(r){function i(e){return new a((function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){n(t)}))}))}for(var o=[],s=0,c=e.storeNames.length;s<c;s++)o.push(i(e.storeNames[s]));a.all(o).then((function(){t()})).catch((function(e){n(e)}))}),(function(e){n(e)}))}))})):a.reject("Invalid arguments"),t),r}};function ne(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function re(){return!function(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}()||localStorage.length>0}var ie={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=ne(e,this._defaultConfig),re()?(this._dbInfo=t,t.serializer=X,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,o=localStorage.length,a=1,s=0;s<o;s++){var c=localStorage.key(s);if(0===c.indexOf(r)){var l=localStorage.getItem(c);if(l&&(l=t.serializer.deserialize(l)),void 0!==(l=e(l,c.substring(i),a++)))return l}}}));return s(r,t),r},getItem:function(e,t){var n=this;e=l(e);var r=n.ready().then((function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r}));return s(r,t),r},setItem:function(e,t,n){var r=this;e=l(e);var i=r.ready().then((function(){void 0===t&&(t=null);var n=t;return new a((function(i,o){var a=r._dbInfo;a.serializer.serialize(t,(function(t,r){if(r)o(r);else try{localStorage.setItem(a.keyPrefix+e,t),i(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||o(e),o(e)}}))}))}));return s(i,n),i},removeItem:function(e,t){var n=this;e=l(e);var r=n.ready().then((function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return s(r,t),r},clear:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return s(n,e),n},length:function(e){var t=this.keys().then((function(e){return e.length}));return s(t,e),t},key:function(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return s(r,t),r},keys:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var o=localStorage.key(i);0===o.indexOf(e.keyPrefix)&&r.push(o.substring(e.keyPrefix.length))}return r}));return s(n,e),n},dropInstance:function(e,t){if(t=u.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,i=this;return r=e.name?new a((function(t){e.storeName?t(ne(e,i._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):a.reject("Invalid arguments"),s(r,t),r}},oe=function(e,t){for(var n=e.length,r=0;r<n;){if((i=e[r])===(o=t)||"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))return!0;r++}var i,o;return!1},ae=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},se={},ce={},le={INDEXEDDB:N,WEBSQL:te,LOCALSTORAGE:ie},ue=[le.INDEXEDDB._driver,le.WEBSQL._driver,le.LOCALSTORAGE._driver],he=["dropInstance"],de=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(he),fe={description:"",driver:ue.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function pe(e,t){e[t]=function(){var n=arguments;return e.ready().then((function(){return e[t].apply(e,n)}))}}function ge(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(ae(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var me=function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),le)if(le.hasOwnProperty(n)){var r=le[n],i=r._driver;this[n]=i,se[i]||this.defineDriver(r)}this._defaultConfig=ge({},fe),this._config=ge({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new a((function(t,n){try{var r=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(i);for(var o=de.concat("_initStorage"),c=0,l=o.length;c<l;c++){var u=o[c];if((!oe(he,u)||e[u])&&"function"!=typeof e[u])return void n(i)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=a.reject(t);return s(n,arguments[arguments.length-1]),n}},n=0,r=he.length;n<r;n++){var i=he[n];e[i]||(e[i]=t(i))}}();var h=function(n){se[r]&&console.info("Redefining LocalForage driver: "+r),se[r]=e,ce[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(h,n):h(!!e._support):h(!0)}catch(e){n(e)}}));return c(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=se[e]?a.resolve(se[e]):a.reject(new Error("Driver not found."));return c(r,t,n),r},e.prototype.getSerializer=function(e){var t=a.resolve(X);return c(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return c(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;ae(e)||(e=[e]);var i=this._getSupportedDrivers(e);function o(){r._config.driver=r.driver()}function s(e){return r._extend(e),o(),r._ready=r._initStorage(r._config),r._ready}var l=null!==this._driverSet?this._driverSet.catch((function(){return a.resolve()})):a.resolve();return this._driverSet=l.then((function(){var e=i[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then((function(e){r._driver=e._driver,o(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e){return function(){var t=0;return function n(){for(;t<e.length;){var i=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(s).catch(n)}o();var c=new Error("No available storage method found.");return r._driverSet=a.reject(c),r._driverSet}()}}(i)}))})).catch((function(){o();var e=new Error("No available storage method found.");return r._driverSet=a.reject(e),r._driverSet})),c(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!ce[e]},e.prototype._extend=function(e){ge(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=de.length;e<t;e++)pe(this,de[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),Ee=new me;t.exports=Ee},{3:3}]},{},[4])(4)},3059:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",c=32,l=128,u=1/0,h=9007199254740991,d=NaN,f=4294967295,p=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",E="[object Boolean]",v="[object Date]",y="[object Error]",b="[object Function]",A="[object GeneratorFunction]",T="[object Map]",C="[object Number]",R="[object Object]",S="[object Promise]",_="[object RegExp]",x="[object Set]",w="[object String]",I="[object Symbol]",N="[object WeakMap]",O="[object ArrayBuffer]",k="[object DataView]",L="[object Float32Array]",D="[object Float64Array]",F="[object Int8Array]",M="[object Int16Array]",P="[object Int32Array]",B="[object Uint8Array]",U="[object Uint8ClampedArray]",$="[object Uint16Array]",H="[object Uint32Array]",G=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,z=RegExp(j.source),Y=RegExp(q.source),K=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,Ee=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,be=/['\n\r\u2028\u2029\\]/g,Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Te="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Se="["+Re+"]",_e="["+Ae+"]",xe="\\d+",we="["+Te+"]",Ie="[^\\ud800-\\udfff"+Re+xe+"\\u2700-\\u27bf"+Te+Ce+"]",Ne="\\ud83c[\\udffb-\\udfff]",Oe="[^\\ud800-\\udfff]",ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",De="["+Ce+"]",Fe="(?:"+we+"|"+Ie+")",Me="(?:"+De+"|"+Ie+")",Pe="(?:['’](?:d|ll|m|re|s|t|ve))?",Be="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ue="(?:"+_e+"|"+Ne+")?",$e="[\\ufe0e\\ufe0f]?",He=$e+Ue+"(?:\\u200d(?:"+[Oe,ke,Le].join("|")+")"+$e+Ue+")*",Ge="(?:"+["[\\u2700-\\u27bf]",ke,Le].join("|")+")"+He,We="(?:"+[Oe+_e+"?",_e,ke,Le,"[\\ud800-\\udfff]"].join("|")+")",Ve=RegExp("['’]","g"),je=RegExp(_e,"g"),qe=RegExp(Ne+"(?="+Ne+")|"+We+He,"g"),ze=RegExp([De+"?"+we+"+"+Pe+"(?="+[Se,De,"$"].join("|")+")",Me+"+"+Be+"(?="+[Se,De+Fe,"$"].join("|")+")",De+"?"+Fe+"+"+Pe,De+"+"+Be,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xe,Ge].join("|"),"g"),Ye=RegExp("[\\u200d\\ud800-\\udfff"+Ae+"\\ufe0e\\ufe0f]"),Ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Je=-1,Ze={};Ze[L]=Ze[D]=Ze[F]=Ze[M]=Ze[P]=Ze[B]=Ze[U]=Ze[$]=Ze[H]=!0,Ze[g]=Ze[m]=Ze[O]=Ze[E]=Ze[k]=Ze[v]=Ze[y]=Ze[b]=Ze[T]=Ze[C]=Ze[R]=Ze[_]=Ze[x]=Ze[w]=Ze[N]=!1;var Qe={};Qe[g]=Qe[m]=Qe[O]=Qe[k]=Qe[E]=Qe[v]=Qe[L]=Qe[D]=Qe[F]=Qe[M]=Qe[P]=Qe[T]=Qe[C]=Qe[R]=Qe[_]=Qe[x]=Qe[w]=Qe[I]=Qe[B]=Qe[U]=Qe[$]=Qe[H]=!0,Qe[y]=Qe[b]=Qe[N]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,it="object"==typeof self&&self&&self.Object===Object&&self,ot=rt||it||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,ct=st&&st.exports===at,lt=ct&&rt.process,ut=function(){try{return st&&st.require&&st.require("util").types||lt&&lt.binding&&lt.binding("util")}catch(e){}}(),ht=ut&&ut.isArrayBuffer,dt=ut&&ut.isDate,ft=ut&&ut.isMap,pt=ut&&ut.isRegExp,gt=ut&&ut.isSet,mt=ut&&ut.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function vt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function yt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function bt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Ct(e,t){return!(null==e||!e.length)&&Lt(e,t,0)>-1}function Rt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function St(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function _t(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function xt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function wt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function It(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Nt=Pt("length");function Ot(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function kt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Lt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):kt(e,Ft,n)}function Dt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Ft(e){return e!=e}function Mt(e,t){var n=null==e?0:e.length;return n?$t(e,t)/n:d}function Pt(e){return function(t){return null==t?i:t[e]}}function Bt(e){return function(t){return null==e?i:e[t]}}function Ut(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function $t(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Ht(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Gt(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function Wt(e){return function(t){return e(t)}}function Vt(e,t){return St(t,(function(t){return e[t]}))}function jt(e,t){return e.has(t)}function qt(e,t){for(var n=-1,r=e.length;++n<r&&Lt(t,e[n],0)>-1;);return n}function zt(e,t){for(var n=e.length;n--&&Lt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Kt=Bt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Xt=Bt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Jt(e){return"\\"+et[e]}function Zt(e){return Ye.test(e)}function Qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Zt(e)?function(e){for(var t=qe.lastIndex=0;qe.test(e);)++t;return t}(e):Nt(e)}function an(e){return Zt(e)?function(e){return e.match(qe)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var cn=Bt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),ln=function e(t){var n,r=(t=null==t?ot:ln.defaults(ot.Object(),t,ln.pick(ot,Xe))).Array,ie=t.Date,Ae=t.Error,Te=t.Function,Ce=t.Math,Re=t.Object,Se=t.RegExp,_e=t.String,xe=t.TypeError,we=r.prototype,Ie=Te.prototype,Ne=Re.prototype,Oe=t["__core-js_shared__"],ke=Ie.toString,Le=Ne.hasOwnProperty,De=0,Fe=(n=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Me=Ne.toString,Pe=ke.call(Re),Be=ot._,Ue=Se("^"+ke.call(Le).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=ct?t.Buffer:i,He=t.Symbol,Ge=t.Uint8Array,We=$e?$e.allocUnsafe:i,qe=en(Re.getPrototypeOf,Re),Ye=Re.create,et=Ne.propertyIsEnumerable,rt=we.splice,it=He?He.isConcatSpreadable:i,at=He?He.iterator:i,st=He?He.toStringTag:i,lt=function(){try{var e=lo(Re,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,Nt=ie&&ie.now!==ot.Date.now&&ie.now,Bt=t.setTimeout!==ot.setTimeout&&t.setTimeout,un=Ce.ceil,hn=Ce.floor,dn=Re.getOwnPropertySymbols,fn=$e?$e.isBuffer:i,pn=t.isFinite,gn=we.join,mn=en(Re.keys,Re),En=Ce.max,vn=Ce.min,yn=ie.now,bn=t.parseInt,An=Ce.random,Tn=we.reverse,Cn=lo(t,"DataView"),Rn=lo(t,"Map"),Sn=lo(t,"Promise"),_n=lo(t,"Set"),xn=lo(t,"WeakMap"),wn=lo(Re,"create"),In=xn&&new xn,Nn={},On=Uo(Cn),kn=Uo(Rn),Ln=Uo(Sn),Dn=Uo(_n),Fn=Uo(xn),Mn=He?He.prototype:i,Pn=Mn?Mn.valueOf:i,Bn=Mn?Mn.toString:i;function Un(e){if(ns(e)&&!ja(e)&&!(e instanceof Wn)){if(e instanceof Gn)return e;if(Le.call(e,"__wrapped__"))return $o(e)}return new Gn(e)}var $n=function(){function e(){}return function(t){if(!ts(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Hn(){}function Gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new jn(e);this.size=t.size}function Kn(e,t){var n=ja(e),r=!n&&Va(e),i=!n&&!r&&Ka(e),o=!n&&!r&&!i&&us(e),a=n||r||i||o,s=a?Ht(e.length,_e):[],c=s.length;for(var l in e)!t&&!Le.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Eo(l,c))||s.push(l);return s}function Xn(e){var t=e.length;return t?e[qr(0,t-1)]:i}function Jn(e,t){return Do(xi(e),ar(t,0,e.length))}function Zn(e){return Do(xi(e))}function Qn(e,t,n){(n!==i&&!Ha(e[t],n)||n===i&&!(t in e))&&ir(e,t,n)}function er(e,t,n){var r=e[t];Le.call(e,t)&&Ha(r,n)&&(n!==i||t in e)||ir(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Ha(e[n][0],t))return n;return-1}function nr(e,t,n,r){return hr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function rr(e,t){return e&&wi(t,ks(t),e)}function ir(e,t,n){"__proto__"==t&&lt?lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:xs(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function sr(e,t,n,r,o,a){var s,c=1&t,l=2&t,u=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!ts(e))return e;var h=ja(e);if(h){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return xi(e,s)}else{var d=fo(e),f=d==b||d==A;if(Ka(e))return Ai(e,c);if(d==R||d==g||f&&!o){if(s=l||f?{}:go(e),!c)return l?function(e,t){return wi(e,ho(e),t)}(e,function(e,t){return e&&wi(t,Ls(t),e)}(s,e)):function(e,t){return wi(e,uo(e),t)}(e,rr(s,e))}else{if(!Qe[d])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case O:return Ti(e);case E:case v:return new i(+e);case k:return function(e,t){var n=t?Ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case D:case F:case M:case P:case B:case U:case $:case H:return Ci(e,n);case T:return new i;case C:case w:return new i(e);case _:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case x:return new i;case I:return r=e,Pn?Re(Pn.call(r)):{}}}(e,d,c)}}a||(a=new Yn);var p=a.get(e);if(p)return p;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,i){s.set(i,sr(r,t,n,i,e,a))}));var m=h?i:(u?l?no:to:l?Ls:ks)(e);return yt(m||e,(function(r,i){m&&(r=e[i=r]),er(s,i,sr(r,t,n,i,e,a))})),s}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Re(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new xe(o);return No((function(){e.apply(i,n)}),t)}function ur(e,t,n,r){var i=-1,o=Ct,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=St(t,Wt(n))),r?(o=Rt,a=!1):t.length>=200&&(o=jt,a=!1,t=new zn(t));e:for(;++i<s;){var u=e[i],h=null==n?u:n(u);if(u=r||0!==u?u:0,a&&h==h){for(var d=l;d--;)if(t[d]===h)continue e;c.push(u)}else o(t,h,r)||c.push(u)}return c}Un.templateSettings={escape:K,evaluate:X,interpolate:J,variable:"",imports:{_:Un}},Un.prototype=Hn.prototype,Un.prototype.constructor=Un,Gn.prototype=$n(Hn.prototype),Gn.prototype.constructor=Gn,Wn.prototype=$n(Hn.prototype),Wn.prototype.constructor=Wn,Vn.prototype.clear=function(){this.__data__=wn?wn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(wn){var n=t[e];return n===a?i:n}return Le.call(t,e)?t[e]:i},Vn.prototype.has=function(e){var t=this.__data__;return wn?t[e]!==i:Le.call(t,e)},Vn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=wn&&t===i?a:t,this},jn.prototype.clear=function(){this.__data__=[],this.size=0},jn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},jn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?i:t[n][1]},jn.prototype.has=function(e){return tr(this.__data__,e)>-1},jn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(Rn||jn),string:new Vn}},qn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return so(this,e).get(e)},qn.prototype.has=function(e){return so(this,e).has(e)},qn.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},zn.prototype.add=zn.prototype.push=function(e){return this.__data__.set(e,a),this},zn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new jn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof jn){var r=n.__data__;if(!Rn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var hr=Oi(yr),dr=Oi(br,!0);function fr(e,t){var n=!0;return hr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function pr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(c===i?s==s&&!ls(s):n(s,c)))var c=s,l=a}return l}function gr(e,t){var n=[];return hr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function mr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=mo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?mr(s,t-1,n,r,i):_t(i,s):r||(i[i.length]=s)}return i}var Er=ki(),vr=ki(!0);function yr(e,t){return e&&Er(e,t,ks)}function br(e,t){return e&&vr(e,t,ks)}function Ar(e,t){return Tt(t,(function(t){return Za(e[t])}))}function Tr(e,t){for(var n=0,r=(t=Ei(t,e)).length;null!=e&&n<r;)e=e[Bo(t[n++])];return n&&n==r?e:i}function Cr(e,t,n){var r=t(e);return ja(e)?r:_t(r,n(e))}function Rr(e){return null==e?e===i?"[object Undefined]":"[object Null]":st&&st in Re(e)?function(e){var t=Le.call(e,st),n=e[st];try{e[st]=i;var r=!0}catch(e){}var o=Me.call(e);return r&&(t?e[st]=n:delete e[st]),o}(e):function(e){return Me.call(e)}(e)}function Sr(e,t){return e>t}function _r(e,t){return null!=e&&Le.call(e,t)}function xr(e,t){return null!=e&&t in Re(e)}function wr(e,t,n){for(var o=n?Rt:Ct,a=e[0].length,s=e.length,c=s,l=r(s),u=1/0,h=[];c--;){var d=e[c];c&&t&&(d=St(d,Wt(t))),u=vn(d.length,u),l[c]=!n&&(t||a>=120&&d.length>=120)?new zn(c&&d):i}d=e[0];var f=-1,p=l[0];e:for(;++f<a&&h.length<u;){var g=d[f],m=t?t(g):g;if(g=n||0!==g?g:0,!(p?jt(p,m):o(h,m,n))){for(c=s;--c;){var E=l[c];if(!(E?jt(E,m):o(e[c],m,n)))continue e}p&&p.push(m),h.push(g)}}return h}function Ir(e,t,n){var r=null==(e=_o(e,t=Ei(t,e)))?e:e[Bo(Jo(t))];return null==r?i:Et(r,e,n)}function Nr(e){return ns(e)&&Rr(e)==g}function Or(e,t,n,r,o){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=ja(e),c=ja(t),l=s?m:fo(e),u=c?m:fo(t),h=(l=l==g?R:l)==R,d=(u=u==g?R:u)==R,f=l==u;if(f&&Ka(e)){if(!Ka(t))return!1;s=!0,h=!1}if(f&&!h)return a||(a=new Yn),s||us(e)?Qi(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!o(new Ge(e),new Ge(t)));case E:case v:case C:return Ha(+e,+t);case y:return e.name==t.name&&e.message==t.message;case _:case w:return e==t+"";case T:var s=Qt;case x:var c=1&r;if(s||(s=nn),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var u=Qi(s(e),s(t),r,i,o,a);return a.delete(e),u;case I:if(Pn)return Pn.call(e)==Pn.call(t)}return!1}(e,t,l,n,r,o,a);if(!(1&n)){var p=h&&Le.call(e,"__wrapped__"),b=d&&Le.call(t,"__wrapped__");if(p||b){var A=p?e.value():e,S=b?t.value():t;return a||(a=new Yn),o(A,S,n,r,a)}}return!!f&&(a||(a=new Yn),function(e,t,n,r,o,a){var s=1&n,c=to(e),l=c.length;if(l!=to(t).length&&!s)return!1;for(var u=l;u--;){var h=c[u];if(!(s?h in t:Le.call(t,h)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=s;++u<l;){var m=e[h=c[u]],E=t[h];if(r)var v=s?r(E,m,h,t,e,a):r(m,E,h,e,t,a);if(!(v===i?m===E||o(m,E,n,r,a):v)){p=!1;break}g||(g="constructor"==h)}if(p&&!g){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,r,o,a))}(e,t,n,r,Or,o))}function kr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Re(e);o--;){var c=n[o];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<a;){var l=(c=n[o])[0],u=e[l],h=c[1];if(s&&c[2]){if(u===i&&!(l in e))return!1}else{var d=new Yn;if(r)var f=r(u,h,l,e,t,d);if(!(f===i?Or(h,u,3,r,d):f))return!1}}return!0}function Lr(e){return!(!ts(e)||(t=e,Fe&&Fe in t))&&(Za(e)?Ue:ge).test(Uo(e));var t}function Dr(e){return"function"==typeof e?e:null==e?ic:"object"==typeof e?ja(e)?Ur(e[0],e[1]):Br(e):fc(e)}function Fr(e){if(!To(e))return mn(e);var t=[];for(var n in Re(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Mr(e,t){return e<t}function Pr(e,t){var n=-1,i=za(e)?r(e.length):[];return hr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Br(e){var t=co(e);return 1==t.length&&t[0][2]?Ro(t[0][0],t[0][1]):function(n){return n===e||kr(n,e,t)}}function Ur(e,t){return yo(e)&&Co(t)?Ro(Bo(e),t):function(n){var r=xs(n,e);return r===i&&r===t?ws(n,e):Or(t,r,3)}}function $r(e,t,n,r,o){e!==t&&Er(t,(function(a,s){if(o||(o=new Yn),ts(a))!function(e,t,n,r,o,a,s){var c=wo(e,n),l=wo(t,n),u=s.get(l);if(u)Qn(e,n,u);else{var h=a?a(c,l,n+"",e,t,s):i,d=h===i;if(d){var f=ja(l),p=!f&&Ka(l),g=!f&&!p&&us(l);h=l,f||p||g?ja(c)?h=c:Ya(c)?h=xi(c):p?(d=!1,h=Ai(l,!0)):g?(d=!1,h=Ci(l,!0)):h=[]:os(l)||Va(l)?(h=c,Va(c)?h=vs(c):ts(c)&&!Za(c)||(h=go(l))):d=!1}d&&(s.set(l,h),o(h,l,r,a,s),s.delete(l)),Qn(e,n,h)}}(e,t,s,n,$r,r,o);else{var c=r?r(wo(e,s),a,s+"",e,t,o):i;c===i&&(c=a),Qn(e,s,c)}}),Ls)}function Hr(e,t){var n=e.length;if(n)return Eo(t+=t<0?n:0,n)?e[t]:i}function Gr(e,t,n){t=t.length?St(t,(function(e){return ja(e)?function(t){return Tr(t,1===e.length?e[0]:e)}:e})):[ic];var r=-1;t=St(t,Wt(ao()));var i=Pr(e,(function(e,n,i){var o=St(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var c=Ri(i[r],o[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(i)}function Wr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Tr(e,a);n(s,a)&&Jr(o,Ei(a,e),s)}return o}function Vr(e,t,n,r){var i=r?Dt:Lt,o=-1,a=t.length,s=e;for(e===t&&(t=xi(t)),n&&(s=St(e,Wt(n)));++o<a;)for(var c=0,l=t[o],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&rt.call(s,c,1),rt.call(e,c,1);return e}function jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Eo(i)?rt.call(e,i,1):li(e,i)}}return e}function qr(e,t){return e+hn(An()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=hn(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return Oo(So(e,t,ic),e+"")}function Kr(e){return Xn(Hs(e))}function Xr(e,t){var n=Hs(e);return Do(n,ar(t,0,n.length))}function Jr(e,t,n,r){if(!ts(e))return e;for(var o=-1,a=(t=Ei(t,e)).length,s=a-1,c=e;null!=c&&++o<a;){var l=Bo(t[o]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=s){var h=c[l];(u=r?r(h,l,c):i)===i&&(u=ts(h)?h:Eo(t[o+1])?[]:{})}er(c,l,u),c=c[l]}return e}var Zr=In?function(e,t){return In.set(e,t),e}:ic,Qr=lt?function(e,t){return lt(e,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:ic;function ei(e){return Do(Hs(e))}function ti(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ni(e,t){var n;return hr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!ls(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ii(e,t,ic,n)}function ii(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,c=null===t,l=ls(t),u=t===i;o<a;){var h=hn((o+a)/2),d=n(e[h]),f=d!==i,p=null===d,g=d==d,m=ls(d);if(s)var E=r||g;else E=u?g&&(r||f):c?g&&f&&(r||!p):l?g&&f&&!p&&(r||!m):!p&&!m&&(r?d<=t:d<t);E?o=h+1:a=h}return vn(a,4294967294)}function oi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ha(s,c)){var c=s;o[i++]=0===a?0:a}}return o}function ai(e){return"number"==typeof e?e:ls(e)?d:+e}function si(e){if("string"==typeof e)return e;if(ja(e))return St(e,si)+"";if(ls(e))return Bn?Bn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ci(e,t,n){var r=-1,i=Ct,o=e.length,a=!0,s=[],c=s;if(n)a=!1,i=Rt;else if(o>=200){var l=t?null:zi(e);if(l)return nn(l);a=!1,i=jt,c=new zn}else c=t?[]:s;e:for(;++r<o;){var u=e[r],h=t?t(u):u;if(u=n||0!==u?u:0,a&&h==h){for(var d=c.length;d--;)if(c[d]===h)continue e;t&&c.push(h),s.push(u)}else i(c,h,n)||(c!==s&&c.push(h),s.push(u))}return s}function li(e,t){return null==(e=_o(e,t=Ei(t,e)))||delete e[Bo(Jo(t))]}function ui(e,t,n,r){return Jr(e,t,n(Tr(e,t)),r)}function hi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ti(e,r?0:o,r?o+1:i):ti(e,r?o+1:0,r?i:o)}function di(e,t){var n=e;return n instanceof Wn&&(n=n.value()),xt(t,(function(e,t){return t.func.apply(t.thisArg,_t([e],t.args))}),n)}function fi(e,t,n){var i=e.length;if(i<2)return i?ci(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],c=-1;++c<i;)c!=o&&(a[o]=ur(a[o]||s,e[c],t,n));return ci(mr(a,1),t,n)}function pi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var c=r<a?t[r]:i;n(s,e[r],c)}return s}function gi(e){return Ya(e)?e:[]}function mi(e){return"function"==typeof e?e:ic}function Ei(e,t){return ja(e)?e:yo(e,t)?[e]:Po(ys(e))}var vi=Yr;function yi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ti(e,t,n)}var bi=ut||function(e){return ot.clearTimeout(e)};function Ai(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function Ti(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function Ci(e,t){var n=t?Ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ri(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=ls(e),s=t!==i,c=null===t,l=t==t,u=ls(t);if(!c&&!u&&!a&&e>t||a&&s&&l&&!c&&!u||r&&s&&l||!n&&l||!o)return 1;if(!r&&!a&&!u&&e<t||u&&n&&o&&!r&&!a||c&&n&&o||!s&&o||!l)return-1}return 0}function Si(e,t,n,i){for(var o=-1,a=e.length,s=n.length,c=-1,l=t.length,u=En(a-s,0),h=r(l+u),d=!i;++c<l;)h[c]=t[c];for(;++o<s;)(d||o<a)&&(h[n[o]]=e[o]);for(;u--;)h[c++]=e[o++];return h}function _i(e,t,n,i){for(var o=-1,a=e.length,s=-1,c=n.length,l=-1,u=t.length,h=En(a-c,0),d=r(h+u),f=!i;++o<h;)d[o]=e[o];for(var p=o;++l<u;)d[p+l]=t[l];for(;++s<c;)(f||o<a)&&(d[p+n[s]]=e[o++]);return d}function xi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function wi(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var c=t[a],l=r?r(n[c],e[c],c,n,e):i;l===i&&(l=e[c]),o?ir(n,c,l):er(n,c,l)}return n}function Ii(e,t){return function(n,r){var i=ja(n)?vt:nr,o=t?t():{};return i(n,e,ao(r,2),o)}}function Ni(e){return Yr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&vo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Re(t);++r<o;){var c=n[r];c&&e(t,c,r,a)}return t}))}function Oi(e,t){return function(n,r){if(null==n)return n;if(!za(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Re(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function ki(e){return function(t,n,r){for(var i=-1,o=Re(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}function Li(e){return function(t){var n=Zt(t=ys(t))?an(t):i,r=n?n[0]:t.charAt(0),o=n?yi(n,1).join(""):t.slice(1);return r[e]()+o}}function Di(e){return function(t){return xt(Zs(Vs(t).replace(Ve,"")),e,"")}}function Fi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=$n(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Mi(e){return function(t,n,r){var o=Re(t);if(!za(t)){var a=ao(n,3);t=ks(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Pi(e){return eo((function(t){var n=t.length,r=n,a=Gn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new xe(o);if(a&&!c&&"wrapper"==io(s))var c=new Gn([],!0)}for(r=c?r:n;++r<n;){var l=io(s=t[r]),u="wrapper"==l?ro(s):i;c=u&&bo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[io(u[0])].apply(c,u[3]):1==s.length&&bo(s)?c[l]():c.thru(s)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&ja(r))return c.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Bi(e,t,n,o,a,s,c,u,h,d){var f=t&l,p=1&t,g=2&t,m=24&t,E=512&t,v=g?i:Fi(e);return function i(){for(var l=arguments.length,y=r(l),b=l;b--;)y[b]=arguments[b];if(m)var A=oo(i),T=Yt(y,A);if(o&&(y=Si(y,o,a,m)),s&&(y=_i(y,s,c,m)),l-=T,m&&l<d){var C=tn(y,A);return ji(e,t,Bi,i.placeholder,n,y,C,u,h,d-l)}var R=p?n:this,S=g?R[e]:e;return l=y.length,u?y=xo(y,u):E&&l>1&&y.reverse(),f&&h<l&&(y.length=h),this&&this!==ot&&this instanceof i&&(S=v||Fi(S)),S.apply(R,y)}}function Ui(e,t){return function(n,r){return function(e,t,n,r){return yr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function $i(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=si(n),r=si(r)):(n=ai(n),r=ai(r)),o=e(n,r)}return o}}function Hi(e){return eo((function(t){return t=St(t,Wt(ao())),Yr((function(n){var r=this;return e(t,(function(e){return Et(e,r,n)}))}))}))}function Gi(e,t){var n=(t=t===i?" ":si(t)).length;if(n<2)return n?zr(t,e):t;var r=zr(t,un(e/on(t)));return Zt(t)?yi(an(r),0,e).join(""):r.slice(0,e)}function Wi(e){return function(t,n,o){return o&&"number"!=typeof o&&vo(t,n,o)&&(n=o=i),t=ps(t),n===i?(n=t,t=0):n=ps(n),function(e,t,n,i){for(var o=-1,a=En(un((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:ps(o),e)}}function Vi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Es(t),n=Es(n)),e(t,n)}}function ji(e,t,n,r,o,a,s,l,u,h){var d=8&t;t|=d?c:64,4&(t&=~(d?64:c))||(t&=-4);var f=[e,t,o,d?a:i,d?s:i,d?i:a,d?i:s,l,u,h],p=n.apply(i,f);return bo(e)&&Io(p,f),p.placeholder=r,ko(p,e,t)}function qi(e){var t=Ce[e];return function(e,n){if(e=Es(e),(n=null==n?0:vn(gs(n),292))&&pn(e)){var r=(ys(e)+"e").split("e");return+((r=(ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var zi=_n&&1/nn(new _n([,-0]))[1]==u?function(e){return new _n(e)}:lc;function Yi(e){return function(t){var n=fo(t);return n==T?Qt(t):n==x?rn(t):function(e,t){return St(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ki(e,t,n,a,u,h,d,f){var p=2&t;if(!p&&"function"!=typeof e)throw new xe(o);var g=a?a.length:0;if(g||(t&=-97,a=u=i),d=d===i?d:En(gs(d),0),f=f===i?f:gs(f),g-=u?u.length:0,64&t){var m=a,E=u;a=u=i}var v=p?i:ro(e),y=[e,t,n,a,u,m,E,h,d,f];if(v&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==l&&8==n||r==l&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var c=t[3];if(c){var u=e[3];e[3]=u?Si(u,c,t[4]):c,e[4]=u?tn(e[3],s):t[4]}(c=t[5])&&(u=e[5],e[5]=u?_i(u,c,t[6]):c,e[6]=u?tn(e[5],s):t[6]),(c=t[7])&&(e[7]=c),r&l&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(y,v),e=y[0],t=y[1],n=y[2],a=y[3],u=y[4],!(f=y[9]=y[9]===i?p?0:e.length:En(y[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)b=8==t||16==t?function(e,t,n){var o=Fi(e);return function a(){for(var s=arguments.length,c=r(s),l=s,u=oo(a);l--;)c[l]=arguments[l];var h=s<3&&c[0]!==u&&c[s-1]!==u?[]:tn(c,u);return(s-=h.length)<n?ji(e,t,Bi,a.placeholder,i,c,h,i,i,n-s):Et(this&&this!==ot&&this instanceof a?o:e,this,c)}}(e,t,f):t!=c&&33!=t||u.length?Bi.apply(i,y):function(e,t,n,i){var o=1&t,a=Fi(e);return function t(){for(var s=-1,c=arguments.length,l=-1,u=i.length,h=r(u+c),d=this&&this!==ot&&this instanceof t?a:e;++l<u;)h[l]=i[l];for(;c--;)h[l++]=arguments[++s];return Et(d,o?n:this,h)}}(e,t,n,a);else var b=function(e,t,n){var r=1&t,i=Fi(e);return function t(){return(this&&this!==ot&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return ko((v?Zr:Io)(b,y),e,t)}function Xi(e,t,n,r){return e===i||Ha(e,Ne[n])&&!Le.call(r,n)?t:e}function Ji(e,t,n,r,o,a){return ts(e)&&ts(t)&&(a.set(t,e),$r(e,t,i,Ji,a),a.delete(t)),e}function Zi(e){return os(e)?i:e}function Qi(e,t,n,r,o,a){var s=1&n,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=a.get(e),h=a.get(t);if(u&&h)return u==t&&h==e;var d=-1,f=!0,p=2&n?new zn:i;for(a.set(e,t),a.set(t,e);++d<c;){var g=e[d],m=t[d];if(r)var E=s?r(m,g,d,t,e,a):r(g,m,d,e,t,a);if(E!==i){if(E)continue;f=!1;break}if(p){if(!It(t,(function(e,t){if(!jt(p,t)&&(g===e||o(g,e,n,r,a)))return p.push(t)}))){f=!1;break}}else if(g!==m&&!o(g,m,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function eo(e){return Oo(So(e,i,qo),e+"")}function to(e){return Cr(e,ks,uo)}function no(e){return Cr(e,Ls,ho)}var ro=In?function(e){return In.get(e)}:lc;function io(e){for(var t=e.name+"",n=Nn[t],r=Le.call(Nn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function oo(e){return(Le.call(Un,"placeholder")?Un:e).placeholder}function ao(){var e=Un.iteratee||oc;return e=e===oc?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function co(e){for(var t=ks(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Co(i)]}return t}function lo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Lr(n)?n:i}var uo=dn?function(e){return null==e?[]:(e=Re(e),Tt(dn(e),(function(t){return et.call(e,t)})))}:mc,ho=dn?function(e){for(var t=[];e;)_t(t,uo(e)),e=qe(e);return t}:mc,fo=Rr;function po(e,t,n){for(var r=-1,i=(t=Ei(t,e)).length,o=!1;++r<i;){var a=Bo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&es(i)&&Eo(a,i)&&(ja(e)||Va(e))}function go(e){return"function"!=typeof e.constructor||To(e)?{}:$n(qe(e))}function mo(e){return ja(e)||Va(e)||!!(it&&e&&e[it])}function Eo(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&Ee.test(e))&&e>-1&&e%1==0&&e<t}function vo(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?za(n)&&Eo(t,n.length):"string"==r&&t in n)&&Ha(n[t],e)}function yo(e,t){if(ja(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ls(e))||Q.test(e)||!Z.test(e)||null!=t&&e in Re(t)}function bo(e){var t=io(e),n=Un[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=ro(n);return!!r&&e===r[0]}(Cn&&fo(new Cn(new ArrayBuffer(1)))!=k||Rn&&fo(new Rn)!=T||Sn&&fo(Sn.resolve())!=S||_n&&fo(new _n)!=x||xn&&fo(new xn)!=N)&&(fo=function(e){var t=Rr(e),n=t==R?e.constructor:i,r=n?Uo(n):"";if(r)switch(r){case On:return k;case kn:return T;case Ln:return S;case Dn:return x;case Fn:return N}return t});var Ao=Oe?Za:Ec;function To(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ne)}function Co(e){return e==e&&!ts(e)}function Ro(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Re(n))}}function So(e,t,n){return t=En(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=En(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var c=r(t+1);++o<t;)c[o]=i[o];return c[t]=n(s),Et(e,this,c)}}function _o(e,t){return t.length<2?e:Tr(e,ti(t,0,-1))}function xo(e,t){for(var n=e.length,r=vn(t.length,n),o=xi(e);r--;){var a=t[r];e[r]=Eo(a,n)?o[a]:i}return e}function wo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Io=Lo(Zr),No=Bt||function(e,t){return ot.setTimeout(e,t)},Oo=Lo(Qr);function ko(e,t,n){var r=t+"";return Oo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return yt(p,(function(n){var r="_."+n[0];t&n[1]&&!Ct(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Lo(e){var t=0,n=0;return function(){var r=yn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Do(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=qr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Fo,Mo,Po=(Fo=Fa((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(ue,"$1"):n||e)})),t}),(function(e){return 500===Mo.size&&Mo.clear(),e})),Mo=Fo.cache,Fo);function Bo(e){if("string"==typeof e||ls(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Uo(e){if(null!=e){try{return ke.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $o(e){if(e instanceof Wn)return e.clone();var t=new Gn(e.__wrapped__,e.__chain__);return t.__actions__=xi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ho=Yr((function(e,t){return Ya(e)?ur(e,mr(t,1,Ya,!0)):[]})),Go=Yr((function(e,t){var n=Jo(t);return Ya(n)&&(n=i),Ya(e)?ur(e,mr(t,1,Ya,!0),ao(n,2)):[]})),Wo=Yr((function(e,t){var n=Jo(t);return Ya(n)&&(n=i),Ya(e)?ur(e,mr(t,1,Ya,!0),i,n):[]}));function Vo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=En(r+i,0)),kt(e,ao(t,3),i)}function jo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=gs(n),o=n<0?En(r+o,0):vn(o,r-1)),kt(e,ao(t,3),o,!0)}function qo(e){return null!=e&&e.length?mr(e,1):[]}function zo(e){return e&&e.length?e[0]:i}var Yo=Yr((function(e){var t=St(e,gi);return t.length&&t[0]===e[0]?wr(t):[]})),Ko=Yr((function(e){var t=Jo(e),n=St(e,gi);return t===Jo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?wr(n,ao(t,2)):[]})),Xo=Yr((function(e){var t=Jo(e),n=St(e,gi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?wr(n,i,t):[]}));function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Zo=Yr(Qo);function Qo(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}var ea=eo((function(e,t){var n=null==e?0:e.length,r=or(e,t);return jr(e,St(t,(function(e){return Eo(e,n)?+e:e})).sort(Ri)),r}));function ta(e){return null==e?e:Tn.call(e)}var na=Yr((function(e){return ci(mr(e,1,Ya,!0))})),ra=Yr((function(e){var t=Jo(e);return Ya(t)&&(t=i),ci(mr(e,1,Ya,!0),ao(t,2))})),ia=Yr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,ci(mr(e,1,Ya,!0),i,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(Ya(e))return t=En(e.length,t),!0})),Ht(t,(function(t){return St(e,Pt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=oa(e);return null==t?n:St(n,(function(e){return Et(t,i,e)}))}var sa=Yr((function(e,t){return Ya(e)?ur(e,t):[]})),ca=Yr((function(e){return fi(Tt(e,Ya))})),la=Yr((function(e){var t=Jo(e);return Ya(t)&&(t=i),fi(Tt(e,Ya),ao(t,2))})),ua=Yr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,fi(Tt(e,Ya),i,t)})),ha=Yr(oa),da=Yr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,aa(e,n)}));function fa(e){var t=Un(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var ga=eo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&Eo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[o],thisArg:i}),new Gn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ma=Ii((function(e,t,n){Le.call(e,n)?++e[n]:ir(e,n,1)})),Ea=Mi(Vo),va=Mi(jo);function ya(e,t){return(ja(e)?yt:hr)(e,ao(t,3))}function ba(e,t){return(ja(e)?bt:dr)(e,ao(t,3))}var Aa=Ii((function(e,t,n){Le.call(e,n)?e[n].push(t):ir(e,n,[t])})),Ta=Yr((function(e,t,n){var i=-1,o="function"==typeof t,a=za(e)?r(e.length):[];return hr(e,(function(e){a[++i]=o?Et(t,e,n):Ir(e,t,n)})),a})),Ca=Ii((function(e,t,n){ir(e,n,t)}));function Ra(e,t){return(ja(e)?St:Pr)(e,ao(t,3))}var Sa=Ii((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),_a=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vo(e,t[0],t[1])?t=[]:n>2&&vo(t[0],t[1],t[2])&&(t=[t[0]]),Gr(e,mr(t,1),[])})),xa=Nt||function(){return ot.Date.now()};function wa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,l,i,i,i,i,t)}function Ia(e,t){var n;if("function"!=typeof t)throw new xe(o);return e=gs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Na=Yr((function(e,t,n){var r=1;if(n.length){var i=tn(n,oo(Na));r|=c}return Ki(e,r,t,n,i)})),Oa=Yr((function(e,t,n){var r=3;if(n.length){var i=tn(n,oo(Oa));r|=c}return Ki(t,r,e,n,i)}));function ka(e,t,n){var r,a,s,c,l,u,h=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new xe(o);function g(t){var n=r,o=a;return r=a=i,h=t,c=e.apply(o,n)}function m(e){return h=e,l=No(v,t),d?g(e):c}function E(e){var n=e-u;return u===i||n>=t||n<0||f&&e-h>=s}function v(){var e=xa();if(E(e))return y(e);l=No(v,function(e){var n=t-(e-u);return f?vn(n,s-(e-h)):n}(e))}function y(e){return l=i,p&&r?g(e):(r=a=i,c)}function b(){var e=xa(),n=E(e);if(r=arguments,a=this,u=e,n){if(l===i)return m(u);if(f)return bi(l),l=No(v,t),g(u)}return l===i&&(l=No(v,t)),c}return t=Es(t)||0,ts(n)&&(d=!!n.leading,s=(f="maxWait"in n)?En(Es(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),b.cancel=function(){l!==i&&bi(l),h=0,r=u=a=l=i},b.flush=function(){return l===i?c:y(xa())},b}var La=Yr((function(e,t){return lr(e,1,t)})),Da=Yr((function(e,t,n){return lr(e,Es(t)||0,n)}));function Fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new xe(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fa.Cache||qn),n}function Ma(e){if("function"!=typeof e)throw new xe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fa.Cache=qn;var Pa=vi((function(e,t){var n=(t=1==t.length&&ja(t[0])?St(t[0],Wt(ao())):St(mr(t,1),Wt(ao()))).length;return Yr((function(r){for(var i=-1,o=vn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Et(e,this,r)}))})),Ba=Yr((function(e,t){var n=tn(t,oo(Ba));return Ki(e,c,i,t,n)})),Ua=Yr((function(e,t){var n=tn(t,oo(Ua));return Ki(e,64,i,t,n)})),$a=eo((function(e,t){return Ki(e,256,i,i,i,t)}));function Ha(e,t){return e===t||e!=e&&t!=t}var Ga=Vi(Sr),Wa=Vi((function(e,t){return e>=t})),Va=Nr(function(){return arguments}())?Nr:function(e){return ns(e)&&Le.call(e,"callee")&&!et.call(e,"callee")},ja=r.isArray,qa=ht?Wt(ht):function(e){return ns(e)&&Rr(e)==O};function za(e){return null!=e&&es(e.length)&&!Za(e)}function Ya(e){return ns(e)&&za(e)}var Ka=fn||Ec,Xa=dt?Wt(dt):function(e){return ns(e)&&Rr(e)==v};function Ja(e){if(!ns(e))return!1;var t=Rr(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Za(e){if(!ts(e))return!1;var t=Rr(e);return t==b||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==gs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=ft?Wt(ft):function(e){return ns(e)&&fo(e)==T};function is(e){return"number"==typeof e||ns(e)&&Rr(e)==C}function os(e){if(!ns(e)||Rr(e)!=R)return!1;var t=qe(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==Pe}var as=pt?Wt(pt):function(e){return ns(e)&&Rr(e)==_},ss=gt?Wt(gt):function(e){return ns(e)&&fo(e)==x};function cs(e){return"string"==typeof e||!ja(e)&&ns(e)&&Rr(e)==w}function ls(e){return"symbol"==typeof e||ns(e)&&Rr(e)==I}var us=mt?Wt(mt):function(e){return ns(e)&&es(e.length)&&!!Ze[Rr(e)]},hs=Vi(Mr),ds=Vi((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(za(e))return cs(e)?an(e):xi(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=fo(e);return(t==T?Qt:t==x?nn:Hs)(e)}function ps(e){return e?(e=Es(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gs(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function ms(e){return e?ar(gs(e),0,f):0}function Es(e){if("number"==typeof e)return e;if(ls(e))return d;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gt(e);var n=pe.test(e);return n||me.test(e)?nt(e.slice(2),n?2:8):fe.test(e)?d:+e}function vs(e){return wi(e,Ls(e))}function ys(e){return null==e?"":si(e)}var bs=Ni((function(e,t){if(To(t)||za(t))wi(t,ks(t),e);else for(var n in t)Le.call(t,n)&&er(e,n,t[n])})),As=Ni((function(e,t){wi(t,Ls(t),e)})),Ts=Ni((function(e,t,n,r){wi(t,Ls(t),e,r)})),Cs=Ni((function(e,t,n,r){wi(t,ks(t),e,r)})),Rs=eo(or),Ss=Yr((function(e,t){e=Re(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&vo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Ls(a),c=-1,l=s.length;++c<l;){var u=s[c],h=e[u];(h===i||Ha(h,Ne[u])&&!Le.call(e,u))&&(e[u]=a[u])}return e})),_s=Yr((function(e){return e.push(i,Ji),Et(Fs,i,e)}));function xs(e,t,n){var r=null==e?i:Tr(e,t);return r===i?n:r}function ws(e,t){return null!=e&&po(e,t,xr)}var Is=Ui((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),e[t]=n}),tc(ic)),Ns=Ui((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]}),ao),Os=Yr(Ir);function ks(e){return za(e)?Kn(e):Fr(e)}function Ls(e){return za(e)?Kn(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Re(e))t.push(n);return t}(e);var t=To(e),n=[];for(var r in e)("constructor"!=r||!t&&Le.call(e,r))&&n.push(r);return n}(e)}var Ds=Ni((function(e,t,n){$r(e,t,n)})),Fs=Ni((function(e,t,n,r){$r(e,t,n,r)})),Ms=eo((function(e,t){var n={};if(null==e)return n;var r=!1;t=St(t,(function(t){return t=Ei(t,e),r||(r=t.length>1),t})),wi(e,no(e),n),r&&(n=sr(n,7,Zi));for(var i=t.length;i--;)li(n,t[i]);return n})),Ps=eo((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return ws(e,n)}))}(e,t)}));function Bs(e,t){if(null==e)return{};var n=St(no(e),(function(e){return[e]}));return t=ao(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Us=Yi(ks),$s=Yi(Ls);function Hs(e){return null==e?[]:Vt(e,ks(e))}var Gs=Di((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Js(ys(e).toLowerCase())}function Vs(e){return(e=ys(e))&&e.replace(ve,Kt).replace(je,"")}var js=Di((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),qs=Di((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),zs=Li("toLowerCase"),Ys=Di((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ks=Di((function(e,t,n){return e+(n?" ":"")+Js(t)})),Xs=Di((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Li("toUpperCase");function Zs(e,t,n){return e=ys(e),(t=n?i:t)===i?function(e){return Ke.test(e)}(e)?function(e){return e.match(ze)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Qs=Yr((function(e,t){try{return Et(e,i,t)}catch(e){return Ja(e)?e:new Ae(e)}})),ec=eo((function(e,t){return yt(t,(function(t){t=Bo(t),ir(e,t,Na(e[t],e))})),e}));function tc(e){return function(){return e}}var nc=Pi(),rc=Pi(!0);function ic(e){return e}function oc(e){return Dr("function"==typeof e?e:sr(e,1))}var ac=Yr((function(e,t){return function(n){return Ir(n,e,t)}})),sc=Yr((function(e,t){return function(n){return Ir(e,n,t)}}));function cc(e,t,n){var r=ks(t),i=Ar(t,r);null!=n||ts(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Ar(t,ks(t)));var o=!(ts(n)&&"chain"in n&&!n.chain),a=Za(e);return yt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=xi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,_t([this.value()],arguments))})})),e}function lc(){}var uc=Hi(St),hc=Hi(At),dc=Hi(It);function fc(e){return yo(e)?Pt(Bo(e)):function(e){return function(t){return Tr(t,e)}}(e)}var pc=Wi(),gc=Wi(!0);function mc(){return[]}function Ec(){return!1}var vc,yc=$i((function(e,t){return e+t}),0),bc=qi("ceil"),Ac=$i((function(e,t){return e/t}),1),Tc=qi("floor"),Cc=$i((function(e,t){return e*t}),1),Rc=qi("round"),Sc=$i((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new xe(o);return e=gs(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=wa,Un.assign=bs,Un.assignIn=As,Un.assignInWith=Ts,Un.assignWith=Cs,Un.at=Rs,Un.before=Ia,Un.bind=Na,Un.bindAll=ec,Un.bindKey=Oa,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ja(e)?e:[e]},Un.chain=fa,Un.chunk=function(e,t,n){t=(n?vo(e,t,n):t===i)?1:En(gs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,c=r(un(o/t));a<o;)c[s++]=ti(e,a,a+=t);return c},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return _t(ja(n)?xi(n):[n],mr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=ao();return e=t?St(e,(function(e){if("function"!=typeof e[1])throw new xe(o);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Et(i[0],this,n))return Et(i[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=ks(e);return function(n){return cr(n,e,t)}}(sr(e,1))},Un.constant=tc,Un.countBy=ma,Un.create=function(e,t){var n=$n(e);return null==t?n:rr(n,t)},Un.curry=function e(t,n,r){var o=Ki(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Un.curryRight=function e(t,n,r){var o=Ki(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Un.debounce=ka,Un.defaults=Ss,Un.defaultsDeep=_s,Un.defer=La,Un.delay=Da,Un.difference=Ho,Un.differenceBy=Go,Un.differenceWith=Wo,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=n||t===i?1:gs(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,0,(t=r-(t=n||t===i?1:gs(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?hi(e,ao(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?hi(e,ao(t,3),!0):[]},Un.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&vo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=gs(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:gs(r))<0&&(r+=o),r=n>r?0:ms(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return(ja(e)?Tt:gr)(e,ao(t,3))},Un.flatMap=function(e,t){return mr(Ra(e,t),1)},Un.flatMapDeep=function(e,t){return mr(Ra(e,t),u)},Un.flatMapDepth=function(e,t,n){return n=n===i?1:gs(n),mr(Ra(e,t),n)},Un.flatten=qo,Un.flattenDeep=function(e){return null!=e&&e.length?mr(e,u):[]},Un.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===i?1:gs(t)):[]},Un.flip=function(e){return Ki(e,512)},Un.flow=nc,Un.flowRight=rc,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Un.functions=function(e){return null==e?[]:Ar(e,ks(e))},Un.functionsIn=function(e){return null==e?[]:Ar(e,Ls(e))},Un.groupBy=Aa,Un.initial=function(e){return null!=e&&e.length?ti(e,0,-1):[]},Un.intersection=Yo,Un.intersectionBy=Ko,Un.intersectionWith=Xo,Un.invert=Is,Un.invertBy=Ns,Un.invokeMap=Ta,Un.iteratee=oc,Un.keyBy=Ca,Un.keys=ks,Un.keysIn=Ls,Un.map=Ra,Un.mapKeys=function(e,t){var n={};return t=ao(t,3),yr(e,(function(e,r,i){ir(n,t(e,r,i),e)})),n},Un.mapValues=function(e,t){var n={};return t=ao(t,3),yr(e,(function(e,r,i){ir(n,r,t(e,r,i))})),n},Un.matches=function(e){return Br(sr(e,1))},Un.matchesProperty=function(e,t){return Ur(e,sr(t,1))},Un.memoize=Fa,Un.merge=Ds,Un.mergeWith=Fs,Un.method=ac,Un.methodOf=sc,Un.mixin=cc,Un.negate=Ma,Un.nthArg=function(e){return e=gs(e),Yr((function(t){return Hr(t,e)}))},Un.omit=Ms,Un.omitBy=function(e,t){return Bs(e,Ma(ao(t)))},Un.once=function(e){return Ia(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:(ja(t)||(t=null==t?[]:[t]),ja(n=r?i:n)||(n=null==n?[]:[n]),Gr(e,t,n))},Un.over=uc,Un.overArgs=Pa,Un.overEvery=hc,Un.overSome=dc,Un.partial=Ba,Un.partialRight=Ua,Un.partition=Sa,Un.pick=Ps,Un.pickBy=Bs,Un.property=fc,Un.propertyOf=function(e){return function(t){return null==e?i:Tr(e,t)}},Un.pull=Zo,Un.pullAll=Qo,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,ao(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,i,n):e},Un.pullAt=ea,Un.range=pc,Un.rangeRight=gc,Un.rearg=$a,Un.reject=function(e,t){return(ja(e)?Tt:gr)(e,Ma(ao(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=ao(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return jr(e,i),n},Un.rest=function(e,t){if("function"!=typeof e)throw new xe(o);return Yr(e,t=t===i?t:gs(t))},Un.reverse=ta,Un.sampleSize=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:gs(t),(ja(e)?Jn:Xr)(e,t)},Un.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Un.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},Un.shuffle=function(e){return(ja(e)?Zn:ei)(e)},Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&vo(e,t,n)?(t=0,n=r):(t=null==t?0:gs(t),n=n===i?r:gs(n)),ti(e,t,n)):[]},Un.sortBy=_a,Un.sortedUniq=function(e){return e&&e.length?oi(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?oi(e,ao(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&vo(e,t,n)&&(t=n=i),(n=n===i?f:n>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=si(t))&&Zt(e)?yi(an(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new xe(o);return t=null==t?0:En(gs(t),0),Yr((function(n){var r=n[t],i=yi(n,0,t);return r&&_t(i,r),Et(e,this,i)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ti(e,0,(t=n||t===i?1:gs(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=r-(t=n||t===i?1:gs(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?hi(e,ao(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?hi(e,ao(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new xe(o);return ts(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ka(e,t,{leading:r,maxWait:t,trailing:i})},Un.thru=pa,Un.toArray=fs,Un.toPairs=Us,Un.toPairsIn=$s,Un.toPath=function(e){return ja(e)?St(e,Bo):ls(e)?[e]:xi(Po(ys(e)))},Un.toPlainObject=vs,Un.transform=function(e,t,n){var r=ja(e),i=r||Ka(e)||us(e);if(t=ao(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ts(e)&&Za(o)?$n(qe(e)):{}}return(i?yt:yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Un.unary=function(e){return wa(e,1)},Un.union=na,Un.unionBy=ra,Un.unionWith=ia,Un.uniq=function(e){return e&&e.length?ci(e):[]},Un.uniqBy=function(e,t){return e&&e.length?ci(e,ao(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ci(e,i,t):[]},Un.unset=function(e,t){return null==e||li(e,t)},Un.unzip=oa,Un.unzipWith=aa,Un.update=function(e,t,n){return null==e?e:ui(e,t,mi(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ui(e,t,mi(n),r)},Un.values=Hs,Un.valuesIn=function(e){return null==e?[]:Vt(e,Ls(e))},Un.without=sa,Un.words=Zs,Un.wrap=function(e,t){return Ba(mi(t),e)},Un.xor=ca,Un.xorBy=la,Un.xorWith=ua,Un.zip=ha,Un.zipObject=function(e,t){return pi(e||[],t||[],er)},Un.zipObjectDeep=function(e,t){return pi(e||[],t||[],Jr)},Un.zipWith=da,Un.entries=Us,Un.entriesIn=$s,Un.extend=As,Un.extendWith=Ts,cc(Un,Un),Un.add=yc,Un.attempt=Qs,Un.camelCase=Gs,Un.capitalize=Ws,Un.ceil=bc,Un.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Es(n))==n?n:0),t!==i&&(t=(t=Es(t))==t?t:0),ar(Es(e),t,n)},Un.clone=function(e){return sr(e,4)},Un.cloneDeep=function(e){return sr(e,5)},Un.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},Un.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},Un.conformsTo=function(e,t){return null==t||cr(e,t,ks(t))},Un.deburr=Vs,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=Ac,Un.endsWith=function(e,t,n){e=ys(e),t=si(t);var r=e.length,o=n=n===i?r:ar(gs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Un.eq=Ha,Un.escape=function(e){return(e=ys(e))&&Y.test(e)?e.replace(q,Xt):e},Un.escapeRegExp=function(e){return(e=ys(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Un.every=function(e,t,n){var r=ja(e)?At:fr;return n&&vo(e,t,n)&&(t=i),r(e,ao(t,3))},Un.find=Ea,Un.findIndex=Vo,Un.findKey=function(e,t){return Ot(e,ao(t,3),yr)},Un.findLast=va,Un.findLastIndex=jo,Un.findLastKey=function(e,t){return Ot(e,ao(t,3),br)},Un.floor=Tc,Un.forEach=ya,Un.forEachRight=ba,Un.forIn=function(e,t){return null==e?e:Er(e,ao(t,3),Ls)},Un.forInRight=function(e,t){return null==e?e:vr(e,ao(t,3),Ls)},Un.forOwn=function(e,t){return e&&yr(e,ao(t,3))},Un.forOwnRight=function(e,t){return e&&br(e,ao(t,3))},Un.get=xs,Un.gt=Ga,Un.gte=Wa,Un.has=function(e,t){return null!=e&&po(e,t,_r)},Un.hasIn=ws,Un.head=zo,Un.identity=ic,Un.includes=function(e,t,n,r){e=za(e)?e:Hs(e),n=n&&!r?gs(n):0;var i=e.length;return n<0&&(n=En(i+n,0)),cs(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Lt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=En(r+i,0)),Lt(e,t,i)},Un.inRange=function(e,t,n){return t=ps(t),n===i?(n=t,t=0):n=ps(n),function(e,t,n){return e>=vn(t,n)&&e<En(t,n)}(e=Es(e),t,n)},Un.invoke=Os,Un.isArguments=Va,Un.isArray=ja,Un.isArrayBuffer=qa,Un.isArrayLike=za,Un.isArrayLikeObject=Ya,Un.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Rr(e)==E},Un.isBuffer=Ka,Un.isDate=Xa,Un.isElement=function(e){return ns(e)&&1===e.nodeType&&!os(e)},Un.isEmpty=function(e){if(null==e)return!0;if(za(e)&&(ja(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||us(e)||Va(e)))return!e.length;var t=fo(e);if(t==T||t==x)return!e.size;if(To(e))return!Fr(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Or(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Or(e,t,i,n):!!r},Un.isError=Ja,Un.isFinite=function(e){return"number"==typeof e&&pn(e)},Un.isFunction=Za,Un.isInteger=Qa,Un.isLength=es,Un.isMap=rs,Un.isMatch=function(e,t){return e===t||kr(e,t,co(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,kr(e,t,co(t),n)},Un.isNaN=function(e){return is(e)&&e!=+e},Un.isNative=function(e){if(Ao(e))throw new Ae("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=is,Un.isObject=ts,Un.isObjectLike=ns,Un.isPlainObject=os,Un.isRegExp=as,Un.isSafeInteger=function(e){return Qa(e)&&e>=-9007199254740991&&e<=h},Un.isSet=ss,Un.isString=cs,Un.isSymbol=ls,Un.isTypedArray=us,Un.isUndefined=function(e){return e===i},Un.isWeakMap=function(e){return ns(e)&&fo(e)==N},Un.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Rr(e)},Un.join=function(e,t){return null==e?"":gn.call(e,t)},Un.kebabCase=js,Un.last=Jo,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=gs(n))<0?En(r+o,0):vn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):kt(e,Ft,o,!0)},Un.lowerCase=qs,Un.lowerFirst=zs,Un.lt=hs,Un.lte=ds,Un.max=function(e){return e&&e.length?pr(e,ic,Sr):i},Un.maxBy=function(e,t){return e&&e.length?pr(e,ao(t,2),Sr):i},Un.mean=function(e){return Mt(e,ic)},Un.meanBy=function(e,t){return Mt(e,ao(t,2))},Un.min=function(e){return e&&e.length?pr(e,ic,Mr):i},Un.minBy=function(e,t){return e&&e.length?pr(e,ao(t,2),Mr):i},Un.stubArray=mc,Un.stubFalse=Ec,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=Cc,Un.nth=function(e,t){return e&&e.length?Hr(e,gs(t)):i},Un.noConflict=function(){return ot._===this&&(ot._=Be),this},Un.noop=lc,Un.now=xa,Un.pad=function(e,t,n){e=ys(e);var r=(t=gs(t))?on(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Gi(hn(i),n)+e+Gi(un(i),n)},Un.padEnd=function(e,t,n){e=ys(e);var r=(t=gs(t))?on(e):0;return t&&r<t?e+Gi(t-r,n):e},Un.padStart=function(e,t,n){e=ys(e);var r=(t=gs(t))?on(e):0;return t&&r<t?Gi(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(ys(e).replace(re,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ps(e),t===i?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=An();return vn(e+o*(t-e+tt("1e-"+((o+"").length-1))),t)}return qr(e,t)},Un.reduce=function(e,t,n){var r=ja(e)?xt:Ut,i=arguments.length<3;return r(e,ao(t,4),n,i,hr)},Un.reduceRight=function(e,t,n){var r=ja(e)?wt:Ut,i=arguments.length<3;return r(e,ao(t,4),n,i,dr)},Un.repeat=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:gs(t),zr(ys(e),t)},Un.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,o=(t=Ei(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Bo(t[r])];a===i&&(r=o,a=n),e=Za(a)?a.call(e):a}return e},Un.round=Rc,Un.runInContext=e,Un.sample=function(e){return(ja(e)?Xn:Kr)(e)},Un.size=function(e){if(null==e)return 0;if(za(e))return cs(e)?on(e):e.length;var t=fo(e);return t==T||t==x?e.size:Fr(e).length},Un.snakeCase=Ys,Un.some=function(e,t,n){var r=ja(e)?It:ni;return n&&vo(e,t,n)&&(t=i),r(e,ao(t,3))},Un.sortedIndex=function(e,t){return ri(e,t)},Un.sortedIndexBy=function(e,t,n){return ii(e,t,ao(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ri(e,t);if(r<n&&Ha(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return ri(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return ii(e,t,ao(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ri(e,t,!0)-1;if(Ha(e[n],t))return n}return-1},Un.startCase=Ks,Un.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:ar(gs(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},Un.subtract=Sc,Un.sum=function(e){return e&&e.length?$t(e,ic):0},Un.sumBy=function(e,t){return e&&e.length?$t(e,ao(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&vo(e,t,n)&&(t=i),e=ys(e),t=Ts({},t,r,Xi);var o,a,s=Ts({},t.imports,r.imports,Xi),c=ks(s),l=Vt(s,c),u=0,h=t.interpolate||ye,d="__p += '",f=Se((t.escape||ye).source+"|"+h.source+"|"+(h===J?he:ye).source+"|"+(t.evaluate||ye).source+"|$","g"),p="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Je+"]")+"\n";e.replace(f,(function(t,n,r,i,s,c){return r||(r=i),d+=e.slice(u,c).replace(be,Jt),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),d+="';\n";var g=Le.call(t,"variable")&&t.variable;if(g){if(le.test(g))throw new Ae("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(G,""):d).replace(W,"$1").replace(V,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Qs((function(){return Te(c,p+"return "+d).apply(i,l)}));if(m.source=d,Ja(m))throw m;return m},Un.times=function(e,t){if((e=gs(e))<1||e>h)return[];var n=f,r=vn(e,f);t=ao(t),e-=f;for(var i=Ht(r,t);++n<e;)t(n);return i},Un.toFinite=ps,Un.toInteger=gs,Un.toLength=ms,Un.toLower=function(e){return ys(e).toLowerCase()},Un.toNumber=Es,Un.toSafeInteger=function(e){return e?ar(gs(e),-9007199254740991,h):0===e?e:0},Un.toString=ys,Un.toUpper=function(e){return ys(e).toUpperCase()},Un.trim=function(e,t,n){if((e=ys(e))&&(n||t===i))return Gt(e);if(!e||!(t=si(t)))return e;var r=an(e),o=an(t);return yi(r,qt(r,o),zt(r,o)+1).join("")},Un.trimEnd=function(e,t,n){if((e=ys(e))&&(n||t===i))return e.slice(0,sn(e)+1);if(!e||!(t=si(t)))return e;var r=an(e);return yi(r,0,zt(r,an(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=ys(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=si(t)))return e;var r=an(e);return yi(r,qt(r,an(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(ts(t)){var o="separator"in t?t.separator:o;n="length"in t?gs(t.length):n,r="omission"in t?si(t.omission):r}var a=(e=ys(e)).length;if(Zt(e)){var s=an(e);a=s.length}if(n>=a)return e;var c=n-on(r);if(c<1)return r;var l=s?yi(s,0,c).join(""):e.slice(0,c);if(o===i)return l+r;if(s&&(c+=l.length-c),as(o)){if(e.slice(c).search(o)){var u,h=l;for(o.global||(o=Se(o.source,ys(de.exec(o))+"g")),o.lastIndex=0;u=o.exec(h);)var d=u.index;l=l.slice(0,d===i?c:d)}}else if(e.indexOf(si(o),c)!=c){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+r},Un.unescape=function(e){return(e=ys(e))&&z.test(e)?e.replace(j,cn):e},Un.uniqueId=function(e){var t=++De;return ys(e)+t},Un.upperCase=Xs,Un.upperFirst=Js,Un.each=ya,Un.eachRight=ba,Un.first=zo,cc(Un,(vc={},yr(Un,(function(e,t){Le.call(Un.prototype,t)||(vc[t]=e)})),vc),{chain:!1}),Un.VERSION="4.17.21",yt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),yt(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===i?1:En(gs(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,f),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),yt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ao(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),yt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),yt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ic)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Ir(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Ma(ao(e)))},Wn.prototype.slice=function(e,t){e=gs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=gs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(f)},yr(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Un[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Un.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof Wn,l=s[0],u=c||ja(t),h=function(e){var t=o.apply(Un,_t([e],s));return r&&d?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var d=this.__chain__,f=!!this.__actions__.length,p=a&&!d,g=c&&!f;if(!a&&u){t=g?t:new Wn(this);var m=e.apply(t,s);return m.__actions__.push({func:pa,args:[h],thisArg:i}),new Gn(m,d)}return p&&g?e.apply(this,s):(m=this.thru(h),p?r?m.value()[0]:m.value():m)})})),yt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=we[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(ja(i)?i:[],e)}return this[n]((function(n){return t.apply(ja(n)?n:[],e)}))}})),yr(Wn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Le.call(Nn,r)||(Nn[r]=[]),Nn[r].push({name:t,func:n})}})),Nn[Bi(i,2).name]=[{name:"wrapper",func:i}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=xi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=xi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=xi(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ja(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=vn(t,e+a);break;case"takeRight":e=En(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,c=s-a,l=r?s:a-1,u=this.__iteratees__,h=u.length,d=0,f=vn(c,this.__takeCount__);if(!n||!r&&i==c&&f==c)return di(e,this.__actions__);var p=[];e:for(;c--&&d<f;){for(var g=-1,m=e[l+=t];++g<h;){var E=u[g],v=E.iteratee,y=E.type,b=v(m);if(2==y)m=b;else if(!b){if(1==y)continue e;break e}}p[d++]=m}return p},Un.prototype.at=ga,Un.prototype.chain=function(){return fa(this)},Un.prototype.commit=function(){return new Gn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===i&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=$o(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[ta],thisArg:i}),new Gn(t,this.__chain__)}return this.thru(ta)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,at&&(Un.prototype[at]=function(){return this}),Un}();ot._=ln,(r=function(){return ln}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},4663:(e,t,n)=>{"use strict";var r=String.prototype.replace,i=/%20/g,o=n(3304),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}}},a)},5907:(e,t,n)=>{"use strict";var r=n(38),i=n(6186),o=n(4663);e.exports={formats:o,parse:i,stringify:r}},6186:(e,t,n)=>{"use strict";var r=n(3304),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=s?o.slice(0,s.index):o,u=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var h=0;n.depth>0&&null!==(s=a.exec(o))&&h<n.depth;){if(h+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+o.slice(s.index)+"]"),function(e,t,n,r){for(var i=r?t:c(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=i:a[l]=i:a={0:i}}i=a}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,h),f=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?p="utf-8":"utf8=%26%2310003%3B"===d[n]&&(p="iso-8859-1"),f=n,n=d.length);for(n=0;n<d.length;++n)if(n!==f){var g,m,E=d[n],v=E.indexOf("]="),y=-1===v?E.indexOf("="):v+1;-1===y?(g=t.decoder(E,a.decoder,p,"key"),m=t.strictNullHandling?null:""):(g=t.decoder(E.slice(0,y),a.decoder,p,"key"),m=r.maybeMap(c(E.slice(y+1),t),(function(e){return t.decoder(e,a.decoder,p,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===p&&(m=s(m)),E.indexOf("[]=")>-1&&(m=o(m)?[m]:m),i.call(l,g)?l[g]=r.combine(l[g],m):l[g]=m}return l}(e,n):e,h=n.plainObjects?Object.create(null):{},d=Object.keys(u),f=0;f<d.length;++f){var p=d[f],g=l(p,u[p],n,"string"==typeof e);h=r.merge(h,g,n)}return r.compact(h)}},38:(e,t,n)=>{"use strict";var r=n(3304),i=n(4663),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,h=i.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,a,c,u,h,f,p,g,m,E){var v,y=t;if("function"==typeof u?y=u(n,y):y instanceof Date?y=p(y):"comma"===i&&s(y)&&(y=r.maybeMap(y,(function(e){return e instanceof Date?p(e):e})).join(",")),null===y){if(o)return c&&!m?c(n,d.encoder,E,"key"):n;y=""}if("string"==typeof(v=y)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(y))return c?[g(m?n:c(n,d.encoder,E,"key"))+"="+g(c(y,d.encoder,E,"value"))]:[g(n)+"="+g(String(y))];var b,A=[];if(void 0===y)return A;if(s(u))b=u;else{var T=Object.keys(y);b=h?T.sort(h):T}for(var C=0;C<b.length;++C){var R=b[C],S=y[R];if(!a||null!==S){var _=s(y)?"function"==typeof i?i(n,R):n:n+(f?"."+R:"["+R+"]");l(A,e(S,_,i,o,a,c,u,h,f,p,g,m,E))}}return A};e.exports=function(e,t){var n,r=e,c=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],a=d.filter;return("function"==typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof c.filter?r=(0,c.filter)("",r):s(c.filter)&&(n=c.filter);var u,h=[];if("object"!=typeof r||null===r)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=a[u];n||(n=Object.keys(r)),c.sort&&n.sort(c.sort);for(var g=0;g<n.length;++g){var m=n[g];c.skipNulls&&null===r[m]||l(h,f(r[m],m,p,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var E=h.join(c.delimiter),v=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),E.length>0?v+E:""}},3304:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:i,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],i=0;i<t.length;++i)for(var o=t[i],a=o.obj[o.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:a,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var i=[],o=0;o<r.length;++o)void 0!==r[o]&&i.push(r[o]);t.obj[t.prop]=i}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<i.length;++a){var s=i.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=i.charAt(a):s<128?o+=r[s]:s<2048?o+=r[192|s>>6]+r[128|63&s]:s<55296||s>=57344?o+=r[224|s>>12]+r[128|s>>6&63]+r[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&i.charCodeAt(a)),o+=r[240|s>>18]+r[128|s>>12&63]+r[128|s>>6&63]+r[128|63&s])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(n(e)){for(var r=[],i=0;i<e.length;i+=1)r.push(t(e[i]));return r}return t(e)},merge:function e(r,o,a){if(!o)return r;if("object"!=typeof o){if(n(r))r.push(o);else{if(!r||"object"!=typeof r)return[r,o];(a&&(a.plainObjects||a.allowPrototypes)||!t.call(Object.prototype,o))&&(r[o]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(o);var s=r;return n(r)&&!n(o)&&(s=i(r,a)),n(r)&&n(o)?(o.forEach((function(n,i){if(t.call(r,i)){var o=r[i];o&&"object"==typeof o&&n&&"object"==typeof n?r[i]=e(o,n,a):r.push(n)}else r[i]=n})),r):Object.keys(o).reduce((function(n,r){var i=o[r];return t.call(n,r)?n[r]=e(n[r],i,a):n[r]=i,n}),s)}}},2390:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new w(r||[]);return o._invoke=function(e,t,n){var r=h;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return N()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var c=u(e,t,n);if("normal"===c.type){if(r=n.done?p:d,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",g={};function m(){}function E(){}function v(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,A=b&&b(b(I([])));A&&A!==n&&r.call(A,o)&&(y=A);var T=v.prototype=m.prototype=Object.create(y);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==typeof h&&r.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(h).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function I(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:N}}function N(){return{value:t,done:!0}}return E.prototype=T.constructor=v,v.constructor=E,E.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(T),e},e.awrap=function(e){return{__await:e}},C(R.prototype),R.prototype[a]=function(){return this},e.AsyncIterator=R,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new R(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(T),c(T,s,"Generator"),T[o]=function(){return this},T.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=I,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(x),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},5701:(e,t,n)=>{"use strict";var r,i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function a(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],i=0;i<e.length;i++){var s=e[i],c=t.base?s[0]+t.base:s[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var h=a(u),d={css:s[1],media:s[2],sourceMap:s[3]};-1!==h?(o[h].references++,o[h].updater(d)):o.push({identifier:u,updater:g(d,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,u=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function h(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=u(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function d(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var f=null,p=0;function g(e,t){var n,r,i;if(t.singleton){var o=p++;n=f||(f=c(t)),r=h.bind(null,n,o,!1),i=h.bind(null,n,o,!0)}else n=c(t),r=d.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=a(n[r]);o[i].references--}for(var c=s(e,t),l=0;l<n.length;l++){var u=a(n[l]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=c}}}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.m=n,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>({22:"generic-ref",121:"pig-ref",138:"impala-ref",498:"hive-ref",522:"flink-ref",534:"sparksql-ref",832:"calcite-ref"}[e]+".js"),i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="[name]:",i.l=(n,r,o,a)=>{if(e[n])e[n].push(r);else{var s,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var h=l[u];if(h.getAttribute("src")==n||h.getAttribute("data-webpack")==t+o){s=h;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",t+o),s.src=n),e[n]=[r];var d=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);var i=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(r))),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),c&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e={632:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=o);var a=i.p+i.u(t),s=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,s,c]=n,l=0;for(r in s)i.o(s,r)&&(i.m[r]=s[r]);for(c&&c(i),t&&t(n);l<a.length;l++)o=a[l],i.o(e,o)&&e[o]&&e[o][0](),e[a[l]]=0},n=self.webpackChunk_name_=self.webpackChunk_name_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o={};return(()=>{"use strict";function e(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}i.d(o,{default:()=>QT}),i(2390);const t=e("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"),n=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function r(e){if(I(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],o=D(i)?c(i):r(i);if(o)for(const e in o)t[e]=o[e]}return t}return D(e)||M(e)?e:void 0}const a=/;(?![^(]*\))/g,s=/:(.+)/;function c(e){const t={};return e.split(a).forEach((e=>{if(e){const n=e.split(s);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function l(e){let t="";if(D(e))t=e;else if(I(e))for(let n=0;n<e.length;n++){const r=l(e[n]);r&&(t+=r+" ")}else if(M(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function u(e){if(!e)return null;let{class:t,style:n}=e;return t&&!D(t)&&(e.class=l(t)),n&&(e.style=r(n)),e}const h=e("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),d=e("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),f=e("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr");function p(e,t){if(e===t)return!0;let n=k(e),r=k(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=I(e),r=I(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=p(e[r],t[r]);return n}(e,t);if(n=M(e),r=M(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!p(e[n],t[n]))return!1}}return String(e)===String(t)}function g(e,t){return e.findIndex((e=>p(e,t)))}const m=e=>null==e?"":I(e)||M(e)&&e.toString===B?JSON.stringify(e,E,2):String(e),E=(e,t)=>t&&t.__v_isRef?E(e,t.value):N(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:O(t)?{[`Set(${t.size})`]:[...t.values()]}:!M(t)||I(t)||H(t)?t:String(t),v={},y=[],b=()=>{},A=()=>!1,T=/^on[^a-z]/,C=e=>T.test(e),R=e=>e.startsWith("onUpdate:"),S=Object.assign,_=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},x=Object.prototype.hasOwnProperty,w=(e,t)=>x.call(e,t),I=Array.isArray,N=e=>"[object Map]"===U(e),O=e=>"[object Set]"===U(e),k=e=>e instanceof Date,L=e=>"function"==typeof e,D=e=>"string"==typeof e,F=e=>"symbol"==typeof e,M=e=>null!==e&&"object"==typeof e,P=e=>M(e)&&L(e.then)&&L(e.catch),B=Object.prototype.toString,U=e=>B.call(e),H=e=>"[object Object]"===U(e),G=e=>D(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,W=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),V=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},j=/-(\w)/g,q=V((e=>e.replace(j,((e,t)=>t?t.toUpperCase():"")))),z=/\B([A-Z])/g,Y=V((e=>e.replace(z,"-$1").toLowerCase())),K=V((e=>e.charAt(0).toUpperCase()+e.slice(1))),X=V((e=>e?`on${K(e)}`:"")),J=(e,t)=>!Object.is(e,t),Z=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Q=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ee=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let te;const ne=[];class re{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&te&&(this.parent=te,this.index=(te.scopes||(te.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(ne.push(this),te=this)}off(){this.active&&(ne.pop(),te=ne[ne.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function ie(e,t){(t=t||te)&&t.active&&t.effects.push(e)}const oe=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ae=e=>(e.w&ue)>0,se=e=>(e.n&ue)>0,ce=new WeakMap;let le=0,ue=1;const he=[];let de;const fe=Symbol(""),pe=Symbol("");class ge{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],ie(this,n)}run(){if(!this.active)return this.fn();if(!he.includes(this))try{return he.push(de=this),ve.push(Ee),Ee=!0,ue=1<<++le,le<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ue})(this):me(this),this.fn()}finally{le<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];ae(i)&&!se(i)?i.delete(e):t[n++]=i,i.w&=~ue,i.n&=~ue}t.length=n}})(this),ue=1<<--le,be(),he.pop();const e=he.length;de=e>0?he[e-1]:void 0}}stop(){this.active&&(me(this),this.onStop&&this.onStop(),this.active=!1)}}function me(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ee=!0;const ve=[];function ye(){ve.push(Ee),Ee=!1}function be(){const e=ve.pop();Ee=void 0===e||e}function Ae(e,t,n){if(!Te())return;let r=ce.get(e);r||ce.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=oe()),Ce(i)}function Te(){return Ee&&void 0!==de}function Ce(e,t){let n=!1;le<=30?se(e)||(e.n|=ue,n=!ae(e)):n=!e.has(de),n&&(e.add(de),de.deps.push(e))}function Re(e,t,n,r,i,o){const a=ce.get(e);if(!a)return;let s=[];if("clear"===t)s=[...a.values()];else if("length"===n&&I(e))a.forEach(((e,t)=>{("length"===t||t>=r)&&s.push(e)}));else switch(void 0!==n&&s.push(a.get(n)),t){case"add":I(e)?G(n)&&s.push(a.get("length")):(s.push(a.get(fe)),N(e)&&s.push(a.get(pe)));break;case"delete":I(e)||(s.push(a.get(fe)),N(e)&&s.push(a.get(pe)));break;case"set":N(e)&&s.push(a.get(fe))}if(1===s.length)s[0]&&Se(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Se(oe(e))}}function Se(e,t){for(const t of I(e)?e:[...e])(t!==de||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const _e=e("__proto__,__v_isRef,__isVue"),xe=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(F)),we=Le(),Ie=Le(!1,!0),Ne=Le(!0),Oe=Le(!0,!0),ke=function(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=yt(this);for(let e=0,t=this.length;e<t;e++)Ae(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(yt)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){ye();const n=yt(this)[t].apply(this,e);return be(),n}})),e}();function Le(e=!1,t=!1){return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&i===(e?t?ht:ut:t?lt:ct).get(n))return n;const o=I(n);if(!e&&o&&w(ke,r))return Reflect.get(ke,r,i);const a=Reflect.get(n,r,i);return(F(r)?xe.has(r):_e(r))?a:(e||Ae(n,0,r),t?a:Rt(a)?o&&G(r)?a:a.value:M(a)?e?pt(a):dt(a):a)}}function De(e=!1){return function(t,n,r,i){let o=t[n];if(!e&&(r=yt(r),o=yt(o),!I(t)&&Rt(o)&&!Rt(r)))return o.value=r,!0;const a=I(t)&&G(n)?Number(n)<t.length:w(t,n),s=Reflect.set(t,n,r,i);return t===yt(i)&&(a?J(r,o)&&Re(t,"set",n,r):Re(t,"add",n,r)),s}}const Fe={get:we,set:De(),deleteProperty:function(e,t){const n=w(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Re(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return F(t)&&xe.has(t)||Ae(e,0,t),n},ownKeys:function(e){return Ae(e,0,I(e)?"length":fe),Reflect.ownKeys(e)}},Me={get:Ne,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Pe=S({},Fe,{get:Ie,set:De(!0)}),Be=S({},Me,{get:Oe}),Ue=e=>M(e)?dt(e):e,$e=e=>M(e)?pt(e):e,He=e=>e,Ge=e=>Reflect.getPrototypeOf(e);function We(e,t,n=!1,r=!1){const i=yt(e=e.__v_raw),o=yt(t);t!==o&&!n&&Ae(i,0,t),!n&&Ae(i,0,o);const{has:a}=Ge(i),s=r?He:n?$e:Ue;return a.call(i,t)?s(e.get(t)):a.call(i,o)?s(e.get(o)):void(e!==i&&e.get(t))}function Ve(e,t=!1){const n=this.__v_raw,r=yt(n),i=yt(e);return e!==i&&!t&&Ae(r,0,e),!t&&Ae(r,0,i),e===i?n.has(e):n.has(e)||n.has(i)}function je(e,t=!1){return e=e.__v_raw,!t&&Ae(yt(e),0,fe),Reflect.get(e,"size",e)}function qe(e){e=yt(e);const t=yt(this);return Ge(t).has.call(t,e)||(t.add(e),Re(t,"add",e,e)),this}function ze(e,t){t=yt(t);const n=yt(this),{has:r,get:i}=Ge(n);let o=r.call(n,e);o||(e=yt(e),o=r.call(n,e));const a=i.call(n,e);return n.set(e,t),o?J(t,a)&&Re(n,"set",e,t):Re(n,"add",e,t),this}function Ye(e){const t=yt(this),{has:n,get:r}=Ge(t);let i=n.call(t,e);i||(e=yt(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&Re(t,"delete",e,void 0),o}function Ke(){const e=yt(this),t=0!==e.size,n=e.clear();return t&&Re(e,"clear",void 0,void 0),n}function Xe(e,t){return function(n,r){const i=this,o=i.__v_raw,a=yt(o),s=t?He:e?$e:Ue;return!e&&Ae(a,0,fe),o.forEach(((e,t)=>n.call(r,s(e),s(t),i)))}}function Je(e,t,n){return function(...r){const i=this.__v_raw,o=yt(i),a=N(o),s="entries"===e||e===Symbol.iterator&&a,c="keys"===e&&a,l=i[e](...r),u=n?He:t?$e:Ue;return!t&&Ae(o,0,c?pe:fe),{next(){const{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Ze(e){return function(...t){return"delete"!==e&&this}}const[Qe,et,tt,nt]=function(){const e={get(e){return We(this,e)},get size(){return je(this)},has:Ve,add:qe,set:ze,delete:Ye,clear:Ke,forEach:Xe(!1,!1)},t={get(e){return We(this,e,!1,!0)},get size(){return je(this)},has:Ve,add:qe,set:ze,delete:Ye,clear:Ke,forEach:Xe(!1,!0)},n={get(e){return We(this,e,!0)},get size(){return je(this,!0)},has(e){return Ve.call(this,e,!0)},add:Ze("add"),set:Ze("set"),delete:Ze("delete"),clear:Ze("clear"),forEach:Xe(!0,!1)},r={get(e){return We(this,e,!0,!0)},get size(){return je(this,!0)},has(e){return Ve.call(this,e,!0)},add:Ze("add"),set:Ze("set"),delete:Ze("delete"),clear:Ze("clear"),forEach:Xe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=Je(i,!1,!1),n[i]=Je(i,!0,!1),t[i]=Je(i,!1,!0),r[i]=Je(i,!0,!0)})),[e,n,t,r]}();function rt(e,t){const n=t?e?nt:tt:e?et:Qe;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(w(n,r)&&r in t?n:t,r,i)}const it={get:rt(!1,!1)},ot={get:rt(!1,!0)},at={get:rt(!0,!1)},st={get:rt(!0,!0)},ct=new WeakMap,lt=new WeakMap,ut=new WeakMap,ht=new WeakMap;function dt(e){return e&&e.__v_isReadonly?e:gt(e,!1,Fe,it,ct)}function ft(e){return gt(e,!1,Pe,ot,lt)}function pt(e){return gt(e,!0,Me,at,ut)}function gt(e,t,n,r,i){if(!M(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=function(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>U(e).slice(8,-1))(e))}(e);if(0===a)return e;const s=new Proxy(e,2===a?r:n);return i.set(e,s),s}function mt(e){return Et(e)?mt(e.__v_raw):!(!e||!e.__v_isReactive)}function Et(e){return!(!e||!e.__v_isReadonly)}function vt(e){return mt(e)||Et(e)}function yt(e){const t=e&&e.__v_raw;return t?yt(t):e}function bt(e){return Q(e,"__v_skip",!0),e}function At(e){Te()&&((e=yt(e)).dep||(e.dep=oe()),Ce(e.dep))}function Tt(e,t){(e=yt(e)).dep&&Se(e.dep)}const Ct=e=>M(e)?dt(e):e;function Rt(e){return Boolean(e&&!0===e.__v_isRef)}function St(e){return xt(e)}class _t{constructor(e,t=!1){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:yt(e),this._value=t?e:Ct(e)}get value(){return At(this),this._value}set value(e){e=this._shallow?e:yt(e),J(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:Ct(e),Tt(this))}}function xt(e,t=!1){return Rt(e)?e:new _t(e,t)}function wt(e){return Rt(e)?e.value:e}const It={get:(e,t,n)=>wt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Rt(i)&&!Rt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Nt(e){return mt(e)?e:new Proxy(e,It)}class Ot{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>At(this)),(()=>Tt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function kt(e){const t=I(e)?new Array(e.length):{};for(const n in e)t[n]=Dt(e,n);return t}class Lt{constructor(e,t){this._object=e,this._key=t,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(e){this._object[this._key]=e}}function Dt(e,t){return Rt(e[t])?e[t]:new Lt(e,t)}class Ft{constructor(e,t,n){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new ge(e,(()=>{this._dirty||(this._dirty=!0,Tt(this))})),this.__v_isReadonly=n}get value(){const e=yt(this);return At(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Mt(e,t){let n,r;return L(e)?(n=e,r=b):(n=e.get,r=e.set),new Ft(n,r,L(e)||!e.set)}let Pt;function Bt(e,t,...n){const r=e.vnode.props||v;let i=n;const o=t.startsWith("update:"),a=o&&t.slice(7);if(a&&a in r){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:o}=r[e]||v;o?i=n.map((e=>e.trim())):t&&(i=n.map(ee))}let s,c=r[s=X(t)]||r[s=X(q(t))];!c&&o&&(c=r[s=X(Y(t))]),c&&Ui(c,e,6,i);const l=r[s+"Once"];if(l){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,Ui(l,e,6,i)}}function Ut(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const o=e.emits;let a={},s=!1;if(!L(e)){const r=e=>{const n=Ut(e,t,!0);n&&(s=!0,S(a,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return o||s?(I(o)?o.forEach((e=>a[e]=null)):S(a,o),r.set(e,a),a):(r.set(e,null),null)}function $t(e,t){return!(!e||!C(t))&&(t=t.slice(2).replace(/Once$/,""),w(e,t[0].toLowerCase()+t.slice(1))||w(e,Y(t))||w(e,t))}let Ht=null,Gt=null;function Wt(e){const t=Ht;return Ht=e,Gt=e&&e.type.__scopeId||null,t}function Vt(e){Gt=e}function jt(){Gt=null}function qt(e,t=Ht,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Vr(-1);const i=Wt(t),o=e(...n);return Wt(i),r._d&&Vr(1),o};return r._n=!0,r._c=!0,r._d=!0,r}function zt(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:h,data:d,setupState:f,ctx:p,inheritAttrs:g}=e;let m;const E=Wt(e);try{let e;if(4&n.shapeFlag){const t=i||r;m=oi(u.call(t,t,h,o,f,d,p)),e=c}else m=oi(t(o,t.length>1?{attrs:c,slots:s,emit:l}:null)),e=t.props?c:Yt(c);let E=m;if(e&&!1!==g){const t=Object.keys(e),{shapeFlag:n}=E;t.length&&(1&n||6&n)&&(a&&t.some(R)&&(e=Kt(e,a)),E=ni(E,e))}n.dirs&&(E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),m=E}catch(t){Ur.length=0,$i(t,e,1),m=ei(Pr)}return Wt(E),m}const Yt=e=>{let t;for(const n in e)("class"===n||"style"===n||C(n))&&((t||(t={}))[n]=e[n]);return t},Kt=(e,t)=>{const n={};for(const r in e)R(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Xt(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!$t(n,o))return!0}return!1}function Jt({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Zt={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,a,s,c,l){null==e?function(e,t,n,r,i,o,a,s,c){const{p:l,o:{createElement:u}}=c,h=u("div"),d=e.suspense=en(e,i,r,t,h,n,o,a,s,c);l(null,d.pendingBranch=e.ssContent,h,null,r,d,o,a),d.deps>0?(Qt(e,"onPending"),Qt(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,o,a),rn(d,e.ssFallback)):d.resolve()}(t,n,r,i,o,a,s,c,l):function(e,t,n,r,i,o,a,s,{p:c,um:l,o:{createElement:u}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const d=t.ssContent,f=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:m,isHydrating:E}=h;if(g)h.pendingBranch=d,Kr(d,g)?(c(g,d,h.hiddenContainer,null,i,h,o,a,s),h.deps<=0?h.resolve():m&&(c(p,f,n,r,i,null,o,a,s),rn(h,f))):(h.pendingId++,E?(h.isHydrating=!1,h.activeBranch=g):l(g,i,h),h.deps=0,h.effects.length=0,h.hiddenContainer=u("div"),m?(c(null,d,h.hiddenContainer,null,i,h,o,a,s),h.deps<=0?h.resolve():(c(p,f,n,r,i,null,o,a,s),rn(h,f))):p&&Kr(d,p)?(c(p,d,n,r,i,h,o,a,s),h.resolve(!0)):(c(null,d,h.hiddenContainer,null,i,h,o,a,s),h.deps<=0&&h.resolve()));else if(p&&Kr(d,p))c(p,d,n,r,i,h,o,a,s),rn(h,d);else if(Qt(t,"onPending"),h.pendingBranch=d,h.pendingId++,c(null,d,h.hiddenContainer,null,i,h,o,a,s),h.deps<=0)h.resolve();else{const{timeout:e,pendingId:t}=h;e>0?setTimeout((()=>{h.pendingId===t&&h.fallback(f)}),e):0===e&&h.fallback(f)}}(e,t,n,r,i,a,s,c,l)},hydrate:function(e,t,n,r,i,o,a,s,c){const l=t.suspense=en(t,r,n,e.parentNode,document.createElement("div"),null,i,o,a,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,o,a);return 0===l.deps&&l.resolve(),u},create:en,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=tn(r?n.default:n),e.ssFallback=r?tn(n.fallback):ei(Comment)}};function Qt(e,t){const n=e.props&&e.props[t];L(n)&&n()}function en(e,t,n,r,i,o,a,s,c,l,u=!1){const{p:h,m:d,um:f,n:p,o:{parentNode:g,remove:m}}=l,E=ee(e.props&&e.props.timeout),v={vnode:e,parent:t,parentComponent:n,isSVG:a,container:r,hiddenContainer:i,anchor:o,deps:0,pendingId:0,timeout:"number"==typeof E?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:r,pendingId:i,effects:o,parentComponent:a,container:s}=v;if(v.isHydrating)v.isHydrating=!1;else if(!e){const e=n&&r.transition&&"out-in"===r.transition.mode;e&&(n.transition.afterLeave=()=>{i===v.pendingId&&d(r,s,t,0)});let{anchor:t}=v;n&&(t=p(n),f(n,a,v,!0)),e||d(r,s,t,0)}rn(v,r),v.pendingBranch=null,v.isInFallback=!1;let c=v.parent,l=!1;for(;c;){if(c.pendingBranch){c.effects.push(...o),l=!0;break}c=c.parent}l||io(o),v.effects=[],Qt(t,"onResolve")},fallback(e){if(!v.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:i,isSVG:o}=v;Qt(t,"onFallback");const a=p(n),l=()=>{v.isInFallback&&(h(null,e,i,a,r,null,o,s,c),rn(v,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=l),v.isInFallback=!0,f(n,r,null,!0),u||l()},move(e,t,n){v.activeBranch&&d(v.activeBranch,e,t,n),v.container=e},next:()=>v.activeBranch&&p(v.activeBranch),registerDep(e,t){const n=!!v.pendingBranch;n&&v.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{$i(t,e,0)})).then((i=>{if(e.isUnmounted||v.isUnmounted||v.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:o}=e;_i(e,i),r&&(o.el=r);const s=!r&&e.subTree.el;t(e,o,g(r||e.subTree.el),r?null:p(e.subTree),v,a,c),s&&m(s),Jt(e,o.el),n&&0==--v.deps&&v.resolve()}))},unmount(e,t){v.isUnmounted=!0,v.activeBranch&&f(v.activeBranch,n,e,t),v.pendingBranch&&f(v.pendingBranch,n,e,t)}};return v}function tn(e){let t;if(L(e)){const n=e._c;n&&(e._d=!1,Hr()),e=e(),n&&(e._d=!0,t=$r,Gr())}if(I(e)){const t=function(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(!Yr(r))return;if(r.type!==Pr||"v-if"===r.children){if(t)return;t=r}}return t}(e);e=t}return e=oi(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function nn(e,t){t&&t.pendingBranch?I(e)?t.effects.push(...e):t.effects.push(e):io(e)}function rn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,Jt(r,i))}function on(e,t){if(vi){let n=vi.provides;const r=vi.parent&&vi.parent.provides;r===n&&(n=vi.provides=Object.create(r)),n[e]=t}}function an(e,t,n=!1){const r=vi||Ht;if(r){const i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&L(t)?t.call(r.proxy):t}}function sn(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return On((()=>{e.isMounted=!0})),Dn((()=>{e.isUnmounting=!0})),e}const cn=[Function,Array],ln={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:cn,onEnter:cn,onAfterEnter:cn,onEnterCancelled:cn,onBeforeLeave:cn,onLeave:cn,onAfterLeave:cn,onLeaveCancelled:cn,onBeforeAppear:cn,onAppear:cn,onAfterAppear:cn,onAppearCancelled:cn},setup(e,{slots:t}){const n=yi(),r=sn();let i;return()=>{const o=t.default&&gn(t.default(),!0);if(!o||!o.length)return;const a=yt(e),{mode:s}=a,c=o[0];if(r.isLeaving)return dn(c);const l=fn(c);if(!l)return dn(c);const u=hn(l,a,r,n);pn(l,u);const h=n.subTree,d=h&&fn(h);let f=!1;const{getTransitionKey:p}=l.type;if(p){const e=p();void 0===i?i=e:e!==i&&(i=e,f=!0)}if(d&&d.type!==Pr&&(!Kr(l,d)||f)){const e=hn(d,a,r,n);if(pn(d,e),"out-in"===s)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},dn(c);"in-out"===s&&l.type!==Pr&&(e.delayLeave=(e,t,n)=>{un(r,d)[String(d.key)]=d,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return c}}};function un(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function hn(e,t,n,r){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:h,onLeave:d,onAfterLeave:f,onLeaveCancelled:p,onBeforeAppear:g,onAppear:m,onAfterAppear:E,onAppearCancelled:v}=t,y=String(e.key),b=un(n,e),A=(e,t)=>{e&&Ui(e,r,9,t)},T={mode:o,persisted:a,beforeEnter(t){let r=s;if(!n.isMounted){if(!i)return;r=g||s}t._leaveCb&&t._leaveCb(!0);const o=b[y];o&&Kr(e,o)&&o.el._leaveCb&&o.el._leaveCb(),A(r,[t])},enter(e){let t=c,r=l,o=u;if(!n.isMounted){if(!i)return;t=m||c,r=E||l,o=v||u}let a=!1;const s=e._enterCb=t=>{a||(a=!0,A(t?o:r,[e]),T.delayedLeave&&T.delayedLeave(),e._enterCb=void 0)};t?(t(e,s),t.length<=1&&s()):s()},leave(t,r){const i=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();A(h,[t]);let o=!1;const a=t._leaveCb=n=>{o||(o=!0,r(),A(n?p:f,[t]),t._leaveCb=void 0,b[i]===e&&delete b[i])};b[i]=e,d?(d(t,a),d.length<=1&&a()):a()},clone:e=>hn(e,t,n,r)};return T}function dn(e){if(yn(e))return(e=ni(e)).children=null,e}function fn(e){return yn(e)?e.children?e.children[0]:void 0:e}function pn(e,t){6&e.shapeFlag&&e.component?pn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gn(e,t=!1){let n=[],r=0;for(let i=0;i<e.length;i++){const o=e[i];o.type===Fr?(128&o.patchFlag&&r++,n=n.concat(gn(o.children,t))):(t||o.type!==Pr)&&n.push(o)}if(r>1)for(let e=0;e<n.length;e++)n[e].patchFlag=-2;return n}function mn(e){return L(e)?{setup:e,name:e.name}:e}const En=e=>!!e.type.__asyncLoader;function vn(e,{vnode:{ref:t,props:n,children:r}}){const i=ei(e,n,r);return i.ref=t,i}const yn=e=>e.type.__isKeepAlive,bn={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=yi(),r=n.ctx;if(!r.renderer)return t.default;const i=new Map,o=new Set;let a=null;const s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:h}}}=r,d=h("div");function f(e){_n(e),u(e,n,s)}function p(e){i.forEach(((t,n)=>{const r=ki(t.type);!r||e&&e(r)||g(n)}))}function g(e){const t=i.get(e);a&&t.type===a.type?a&&_n(a):f(t),i.delete(e),o.delete(e)}r.activate=(e,t,n,r,i)=>{const o=e.component;l(e,t,n,0,s),c(o.vnode,e,t,n,o,s,r,e.slotScopeIds,i),Er((()=>{o.isDeactivated=!1,o.a&&Z(o.a);const t=e.props&&e.props.onVnodeMounted;t&&Tr(t,o.parent,e)}),s)},r.deactivate=e=>{const t=e.component;l(e,d,null,1,s),Er((()=>{t.da&&Z(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&Tr(n,t.parent,e),t.isDeactivated=!0}),s)},ho((()=>[e.include,e.exclude]),(([e,t])=>{e&&p((t=>An(e,t))),t&&p((e=>!An(t,e)))}),{flush:"post",deep:!0});let m=null;const E=()=>{null!=m&&i.set(m,xn(n.subTree))};return On(E),Ln(E),Dn((()=>{i.forEach((e=>{const{subTree:t,suspense:r}=n,i=xn(t);if(e.type!==i.type)f(e);else{_n(i);const e=i.component.da;e&&Er(e,r)}}))})),()=>{if(m=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return a=null,n;if(!Yr(r)||!(4&r.shapeFlag||128&r.shapeFlag))return a=null,r;let s=xn(r);const c=s.type,l=ki(En(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:h,max:d}=e;if(u&&(!l||!An(u,l))||h&&l&&An(h,l))return a=s,r;const f=null==s.key?c:s.key,p=i.get(f);return s.el&&(s=ni(s),128&r.shapeFlag&&(r.ssContent=s)),m=f,p?(s.el=p.el,s.component=p.component,s.transition&&pn(s,s.transition),s.shapeFlag|=512,o.delete(f),o.add(f)):(o.add(f),d&&o.size>parseInt(d,10)&&g(o.values().next().value)),s.shapeFlag|=256,a=s,r}}};function An(e,t){return I(e)?e.some((e=>An(e,t))):D(e)?e.split(",").indexOf(t)>-1:!!e.test&&e.test(t)}function Tn(e,t){Rn(e,"a",t)}function Cn(e,t){Rn(e,"da",t)}function Rn(e,t,n=vi){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}e()});if(wn(t,r,n),n){let e=n.parent;for(;e&&e.parent;)yn(e.parent.vnode)&&Sn(r,t,n,e),e=e.parent}}function Sn(e,t,n,r){const i=wn(t,e,r,!0);Fn((()=>{_(r[t],i)}),n)}function _n(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function xn(e){return 128&e.shapeFlag?e.ssContent:e}function wn(e,t,n=vi,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;ye(),bi(n);const i=Ui(t,n,e,r);return Ai(),be(),i});return r?i.unshift(o):i.push(o),o}}const In=e=>(t,n=vi)=>(!Si||"sp"===e)&&wn(e,t,n),Nn=In("bm"),On=In("m"),kn=In("bu"),Ln=In("u"),Dn=In("bum"),Fn=In("um"),Mn=In("sp"),Pn=In("rtg"),Bn=In("rtc");function Un(e,t=vi){wn("ec",e,t)}let $n=!0;function Hn(e,t,n){Ui(I(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Gn(e,t,n,r){const i=r.includes(".")?go(n,r):()=>n[r];if(D(e)){const n=t[e];L(n)&&ho(i,n)}else if(L(e))ho(i,e.bind(n));else if(M(e))if(I(e))e.forEach((e=>Gn(e,t,n,r)));else{const r=L(e.handler)?e.handler.bind(n):t[e.handler];L(r)&&ho(i,r,e)}}function Wn(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let c;return s?c=s:i.length||n||r?(c={},i.length&&i.forEach((e=>Vn(c,e,a,!0))),Vn(c,t,a)):c=t,o.set(t,c),c}function Vn(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&Vn(e,o,n,!0),i&&i.forEach((t=>Vn(e,t,n,!0)));for(const i in t)if(r&&"expose"===i);else{const r=jn[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const jn={data:qn,props:Kn,emits:Kn,methods:Kn,computed:Kn,beforeCreate:Yn,created:Yn,beforeMount:Yn,mounted:Yn,beforeUpdate:Yn,updated:Yn,beforeDestroy:Yn,destroyed:Yn,activated:Yn,deactivated:Yn,errorCaptured:Yn,serverPrefetch:Yn,components:Kn,directives:Kn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=S(Object.create(null),e);for(const r in t)n[r]=Yn(e[r],t[r]);return n},provide:qn,inject:function(e,t){return Kn(zn(e),zn(t))}};function qn(e,t){return t?e?function(){return S(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function zn(e){if(I(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Yn(e,t){return e?[...new Set([].concat(e,t))]:t}function Kn(e,t){return e?S(S(Object.create(null),e),t):t}function Xn(e,t,n,r){const[i,o]=e.propsOptions;let a,s=!1;if(t)for(let c in t){if(W(c))continue;const l=t[c];let u;i&&w(i,u=q(c))?o&&o.includes(u)?(a||(a={}))[u]=l:n[u]=l:$t(e.emitsOptions,c)||l!==r[c]&&(r[c]=l,s=!0)}if(o){const t=yt(n),r=a||v;for(let a=0;a<o.length;a++){const s=o[a];n[s]=Jn(i,t,s,r[s],e,!w(r,s))}}return s}function Jn(e,t,n,r,i,o){const a=e[n];if(null!=a){const e=w(a,"default");if(e&&void 0===r){const e=a.default;if(a.type!==Function&&L(e)){const{propsDefaults:o}=i;n in o?r=o[n]:(bi(i),r=o[n]=e.call(null,t),Ai())}else r=e}a[0]&&(o&&!e?r=!1:!a[1]||""!==r&&r!==Y(n)||(r=!0))}return r}function Zn(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const o=e.props,a={},s=[];let c=!1;if(!L(e)){const r=e=>{c=!0;const[n,r]=Zn(e,t,!0);S(a,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!o&&!c)return r.set(e,y),y;if(I(o))for(let e=0;e<o.length;e++){const t=q(o[e]);Qn(t)&&(a[t]=v)}else if(o)for(const e in o){const t=q(e);if(Qn(t)){const n=o[e],r=a[t]=I(n)||L(n)?{type:n}:n;if(r){const e=nr(Boolean,r.type),n=nr(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||w(r,"default"))&&s.push(t)}}}const l=[a,s];return r.set(e,l),l}function Qn(e){return"$"!==e[0]}function er(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function tr(e,t){return er(e)===er(t)}function nr(e,t){return I(t)?t.findIndex((t=>tr(t,e))):L(t)&&tr(t,e)?0:-1}const rr=e=>"_"===e[0]||"$stable"===e,ir=e=>I(e)?e.map(oi):[oi(e)],or=(e,t,n)=>{const r=qt((e=>ir(t(e))),n);return r._c=!1,r},ar=(e,t,n)=>{const r=e._ctx;for(const n in e){if(rr(n))continue;const i=e[n];if(L(i))t[n]=or(0,i,r);else if(null!=i){const e=ir(i);t[n]=()=>e}}},sr=(e,t)=>{const n=ir(t);e.slots.default=()=>n};function cr(e,t){if(null===Ht)return e;const n=Ht.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[i,o,a,s=v]=t[e];L(i)&&(i={mounted:i,updated:i}),i.deep&&mo(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:s})}return e}function lr(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);let c=s.dir[r];c&&(ye(),Ui(c,n,8,[e.el,s,e,t]),be())}}function ur(){return{app:null,config:{isNativeTag:A,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let hr=0;function dr(e,t){return function(n,r=null){null==r||M(r)||(r=null);const i=ur(),o=new Set;let a=!1;const s=i.app={_uid:hr++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Ao,get config(){return i.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&L(e.install)?(o.add(e),e.install(s,...t)):L(e)&&(o.add(e),e(s,...t))),s),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),s),component:(e,t)=>t?(i.components[e]=t,s):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,s):i.directives[e],mount(o,c,l){if(!a){const u=ei(n,r);return u.appContext=i,c&&t?t(u,o):e(u,o,l),a=!0,s._container=o,o.__vue_app__=s,u.component.proxy}},unmount(){a&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,s)};return s}}let fr=!1;const pr=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,gr=e=>8===e.nodeType;function mr(e){const{mt:t,p:n,o:{patchProp:r,nextSibling:i,parentNode:o,remove:a,insert:s,createComment:c}}=e,l=(n,r,a,s,c,g=!1)=>{const m=gr(n)&&"["===n.data,E=()=>f(n,r,a,s,c,m),{type:v,ref:y,shapeFlag:b}=r,A=n.nodeType;r.el=n;let T=null;switch(v){case Mr:3!==A?T=E():(n.data!==r.children&&(fr=!0,n.data=r.children),T=i(n));break;case Pr:T=8!==A||m?E():i(n);break;case Br:if(1===A){T=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=T.outerHTML),t===r.staticCount-1&&(r.anchor=T),T=i(T);return T}T=E();break;case Fr:T=m?d(n,r,a,s,c,g):E();break;default:if(1&b)T=1!==A||r.type.toLowerCase()!==n.tagName.toLowerCase()?E():u(n,r,a,s,c,g);else if(6&b){r.slotScopeIds=c;const e=o(n);if(t(r,e,null,a,s,pr(e),g),T=m?p(n):i(n),En(r)){let t;m?(t=ei(Fr),t.anchor=T?T.previousSibling:e.lastChild):t=3===n.nodeType?ri(""):ei("div"),t.el=n,r.component.subTree=t}}else 64&b?T=8!==A?E():r.type.hydrate(n,r,a,s,c,g,e,h):128&b&&(T=r.type.hydrate(n,r,a,s,pr(o(n)),c,g,e,l))}return null!=y&&Ar(y,null,s,r),T},u=(e,t,n,i,o,s)=>{s=s||!!t.dynamicChildren;const{type:c,props:l,patchFlag:u,shapeFlag:d,dirs:f}=t,p="input"===c&&f||"option"===c;if(p||-1!==u){if(f&&lr(t,null,n,"created"),l)if(p||!s||16&u||32&u)for(const t in l)(p&&t.endsWith("value")||C(t)&&!W(t))&&r(e,t,null,l[t]);else l.onClick&&r(e,"onClick",null,l.onClick);let c;if((c=l&&l.onVnodeBeforeMount)&&Tr(c,n,t),f&&lr(t,null,n,"beforeMount"),((c=l&&l.onVnodeMounted)||f)&&nn((()=>{c&&Tr(c,n,t),f&&lr(t,null,n,"mounted")}),i),16&d&&(!l||!l.innerHTML&&!l.textContent)){let r=h(e.firstChild,t,e,n,i,o,s);for(;r;){fr=!0;const e=r;r=r.nextSibling,a(e)}}else 8&d&&e.textContent!==t.children&&(fr=!0,e.textContent=t.children)}return e.nextSibling},h=(e,t,r,i,o,a,s)=>{s=s||!!t.dynamicChildren;const c=t.children,u=c.length;for(let t=0;t<u;t++){const u=s?c[t]:c[t]=oi(c[t]);if(e)e=l(e,u,i,o,a,s);else{if(u.type===Mr&&!u.children)continue;fr=!0,n(null,u,r,null,i,o,pr(r),a)}}return e},d=(e,t,n,r,a,l)=>{const{slotScopeIds:u}=t;u&&(a=a?a.concat(u):u);const d=o(e),f=h(i(e),t,d,n,r,a,l);return f&&gr(f)&&"]"===f.data?i(t.anchor=f):(fr=!0,s(t.anchor=c("]"),d,f),f)},f=(e,t,r,s,c,l)=>{if(fr=!0,t.el=null,l){const t=p(e);for(;;){const n=i(e);if(!n||n===t)break;a(n)}}const u=i(e),h=o(e);return a(e),n(null,t,h,u,r,s,pr(h),c),u},p=e=>{let t=0;for(;e;)if((e=i(e))&&gr(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return i(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),void ao();fr=!1,l(t.firstChild,e,null,null,null),ao(),fr&&console.error("Hydration completed but contains mismatches.")},l]}const Er=nn;function vr(e){return br(e)}function yr(e){return br(e,mr)}function br(e,t){const{insert:n,remove:r,patchProp:i,createElement:o,createText:a,createComment:s,setText:c,setElementText:l,parentNode:u,nextSibling:h,setScopeId:d=b,cloneNode:f,insertStaticContent:p}=e,g=(e,t,n,r=null,i=null,o=null,a=!1,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Kr(e,t)&&(r=X(e),G(e,i,o,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:h}=t;switch(l){case Mr:m(e,t,n,r);break;case Pr:E(e,t,n,r);break;case Br:null==e&&A(t,n,r,a);break;case Fr:O(e,t,n,r,i,o,a,s,c);break;default:1&h?T(e,t,n,r,i,o,a,s,c):6&h?k(e,t,n,r,i,o,a,s,c):(64&h||128&h)&&l.process(e,t,n,r,i,o,a,s,c,ee)}null!=u&&i&&Ar(u,e&&e.ref,o,t||e,!t)},m=(e,t,r,i)=>{if(null==e)n(t.el=a(t.children),r,i);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},E=(e,t,r,i)=>{null==e?n(t.el=s(t.children||""),r,i):t.el=e.el},A=(e,t,n,r)=>{[e.el,e.anchor]=p(e.children,t,n,r)},T=(e,t,n,r,i,o,a,s,c)=>{a=a||"svg"===t.type,null==e?C(t,n,r,i,o,a,s,c):x(e,t,i,o,a,s,c)},C=(e,t,r,a,s,c,u,h)=>{let d,p;const{type:g,props:m,shapeFlag:E,transition:v,patchFlag:y,dirs:b}=e;if(e.el&&void 0!==f&&-1===y)d=e.el=f(e.el);else{if(d=e.el=o(e.type,c,m&&m.is,m),8&E?l(d,e.children):16&E&&_(e.children,d,null,a,s,c&&"foreignObject"!==g,u,h),b&&lr(e,null,a,"created"),m){for(const t in m)"value"===t||W(t)||i(d,t,null,m[t],c,e.children,a,s,K);"value"in m&&i(d,"value",null,m.value),(p=m.onVnodeBeforeMount)&&Tr(p,a,e)}R(d,e,e.scopeId,u,a)}b&&lr(e,null,a,"beforeMount");const A=(!s||s&&!s.pendingBranch)&&v&&!v.persisted;A&&v.beforeEnter(d),n(d,t,r),((p=m&&m.onVnodeMounted)||A||b)&&Er((()=>{p&&Tr(p,a,e),A&&v.enter(d),b&&lr(e,null,a,"mounted")}),s)},R=(e,t,n,r,i)=>{if(n&&d(e,n),r)for(let t=0;t<r.length;t++)d(e,r[t]);if(i&&t===i.subTree){const t=i.vnode;R(e,t,t.scopeId,t.slotScopeIds,i.parent)}},_=(e,t,n,r,i,o,a,s,c=0)=>{for(let l=c;l<e.length;l++){const c=e[l]=s?ai(e[l]):oi(e[l]);g(null,c,t,n,r,i,o,a,s)}},x=(e,t,n,r,o,a,s)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:h,dirs:d}=t;u|=16&e.patchFlag;const f=e.props||v,p=t.props||v;let g;if((g=p.onVnodeBeforeUpdate)&&Tr(g,n,t,e),d&&lr(t,e,n,"beforeUpdate"),u>0){if(16&u)N(c,t,f,p,n,r,o);else if(2&u&&f.class!==p.class&&i(c,"class",null,p.class,o),4&u&&i(c,"style",f.style,p.style,o),8&u){const a=t.dynamicProps;for(let t=0;t<a.length;t++){const s=a[t],l=f[s],u=p[s];u===l&&"value"!==s||i(c,s,l,u,o,e.children,n,r,K)}}1&u&&e.children!==t.children&&l(c,t.children)}else s||null!=h||N(c,t,f,p,n,r,o);const m=o&&"foreignObject"!==t.type;h?I(e.dynamicChildren,h,c,n,r,m,a):s||B(e,t,c,null,n,r,m,a,!1),((g=p.onVnodeUpdated)||d)&&Er((()=>{g&&Tr(g,n,t,e),d&&lr(t,e,n,"updated")}),r)},I=(e,t,n,r,i,o,a)=>{for(let s=0;s<t.length;s++){const c=e[s],l=t[s],h=c.el&&(c.type===Fr||!Kr(c,l)||6&c.shapeFlag||64&c.shapeFlag)?u(c.el):n;g(c,l,h,null,r,i,o,a,!0)}},N=(e,t,n,r,o,a,s)=>{if(n!==r){for(const c in r){if(W(c))continue;const l=r[c],u=n[c];l!==u&&"value"!==c&&i(e,c,u,l,s,t.children,o,a,K)}if(n!==v)for(const c in n)W(c)||c in r||i(e,c,n[c],null,s,t.children,o,a,K);"value"in r&&i(e,"value",n.value,r.value)}},O=(e,t,r,i,o,s,c,l,u)=>{const h=t.el=e?e.el:a(""),d=t.anchor=e?e.anchor:a("");let{patchFlag:f,dynamicChildren:p,slotScopeIds:g}=t;g&&(l=l?l.concat(g):g),null==e?(n(h,r,i),n(d,r,i),_(t.children,r,d,o,s,c,l,u)):f>0&&64&f&&p&&e.dynamicChildren?(I(e.dynamicChildren,p,r,o,s,c,l),(null!=t.key||o&&t===o.subTree)&&Cr(e,t,!0)):B(e,t,r,d,o,s,c,l,u)},k=(e,t,n,r,i,o,a,s,c)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,a,c):L(t,n,r,i,o,a,c):D(e,t,c)},L=(e,t,n,r,i,o,a)=>{const s=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||mi,o={uid:Ei++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,update:null,scope:new re(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Zn(r,i),emitsOptions:Ut(r,i),emit:null,emitted:null,propsDefaults:v,inheritAttrs:r.inheritAttrs,ctx:v,data:v,props:v,attrs:v,slots:v,refs:v,setupState:v,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Bt.bind(null,o),e.ce&&e.ce(o),o}(e,r,i);if(yn(e)&&(s.ctx.renderer=ee),function(e,t=!1){Si=t;const{props:n,children:r}=e.vnode,i=Ti(e);(function(e,t,n,r=!1){const i={},o={};Q(o,Xr,1),e.propsDefaults=Object.create(null),Xn(e,t,i,o);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:ft(i):e.type.props?i:o,e.attrs=o})(e,n,i,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=yt(t),Q(t,"_",n)):ar(t,e.slots={})}else e.slots={},t&&sr(e,t);Q(e.slots,Xr,1)})(e,r),i&&function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=bt(new Proxy(e.ctx,pi));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?Ii(e):null;bi(e),ye();const i=Bi(r,e,0,[e.props,n]);if(be(),Ai(),P(i)){if(i.then(Ai,Ai),t)return i.then((t=>{_i(e,t)})).catch((t=>{$i(t,e,0)}));e.asyncDep=i}else _i(e,i)}else wi(e)}(e,t),Si=!1}(s),s.asyncDep){if(i&&i.registerDep(s,F),!e.el){const e=s.subTree=ei(Pr);E(null,e,t,n)}}else F(s,e,t,n,i,o,a)},D=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:c}=t,l=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!i&&!s||s&&s.$stable)||r!==a&&(r?!a||Xt(r,a,l):!!a);if(1024&c)return!0;if(16&c)return r?Xt(r,a,l):!!a;if(8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==r[n]&&!$t(l,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void M(r,t,n);r.next=t,function(e){const t=Wi.indexOf(e);t>Vi&&Wi.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},F=(e,t,n,r,i,o,a)=>{const s=new ge((()=>{if(e.isMounted){let t,{next:n,bu:r,u:c,parent:l,vnode:h}=e,d=n;n?(n.el=h.el,M(e,n,a)):n=h,s.allowRecurse=!1,r&&Z(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Tr(t,l,n,h),s.allowRecurse=!0;const f=zt(e),p=e.subTree;e.subTree=f,g(p,f,u(p.el),X(p),e,i,o),n.el=f.el,null===d&&Jt(e,f.el),c&&Er(c,i),(t=n.props&&n.props.onVnodeUpdated)&&Er((()=>Tr(t,l,n,h)),i)}else{let a;const{el:c,props:l}=t,{bm:u,m:h,parent:d}=e;if(s.allowRecurse=!1,u&&Z(u),(a=l&&l.onVnodeBeforeMount)&&Tr(a,d,t),s.allowRecurse=!0,c&&ne){const n=()=>{e.subTree=zt(e),ne(c,e.subTree,e,i,null)};En(t)?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const a=e.subTree=zt(e);g(null,a,n,r,e,i,o),t.el=a.el}if(h&&Er(h,i),a=l&&l.onVnodeMounted){const e=t;Er((()=>Tr(a,d,e)),i)}256&t.shapeFlag&&e.a&&Er(e.a,i),e.isMounted=!0,t=n=r=null}}),(()=>to(e.update)),e.scope),c=e.update=s.run.bind(s);c.id=e.uid,s.allowRecurse=c.allowRecurse=!0,c()},M=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=yt(i),[c]=e.propsOptions;let l=!1;if(!(r||a>0)||16&a){let r;Xn(e,t,i,o)&&(l=!0);for(const o in s)t&&(w(t,o)||(r=Y(o))!==o&&w(t,r))||(c?!n||void 0===n[o]&&void 0===n[r]||(i[o]=Jn(c,s,o,void 0,e,!0)):delete i[o]);if(o!==s)for(const e in o)t&&w(t,e)||(delete o[e],l=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let a=n[r];const u=t[a];if(c)if(w(o,a))u!==o[a]&&(o[a]=u,l=!0);else{const t=q(a);i[t]=Jn(c,s,t,u,e,!1)}else u!==o[a]&&(o[a]=u,l=!0)}}l&&Re(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=v;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:(S(i,t),n||1!==e||delete i._):(o=!t.$stable,ar(t,i)),a=t}else t&&(sr(e,t),a={default:1});if(o)for(const e in i)rr(e)||e in a||delete i[e]})(e,t.children,n),ye(),oo(void 0,e.update),be()},B=(e,t,n,r,i,o,a,s,c=!1)=>{const u=e&&e.children,h=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:p}=t;if(f>0){if(128&f)return void $(u,d,n,r,i,o,a,s,c);if(256&f)return void U(u,d,n,r,i,o,a,s,c)}8&p?(16&h&&K(u,i,o),d!==u&&l(n,d)):16&h?16&p?$(u,d,n,r,i,o,a,s,c):K(u,i,o,!0):(8&h&&l(n,""),16&p&&_(d,n,r,i,o,a,s,c))},U=(e,t,n,r,i,o,a,s,c)=>{const l=(e=e||y).length,u=(t=t||y).length,h=Math.min(l,u);let d;for(d=0;d<h;d++){const r=t[d]=c?ai(t[d]):oi(t[d]);g(e[d],r,n,null,i,o,a,s,c)}l>u?K(e,i,o,!0,!1,h):_(t,n,r,i,o,a,s,c,h)},$=(e,t,n,r,i,o,a,s,c)=>{let l=0;const u=t.length;let h=e.length-1,d=u-1;for(;l<=h&&l<=d;){const r=e[l],u=t[l]=c?ai(t[l]):oi(t[l]);if(!Kr(r,u))break;g(r,u,n,null,i,o,a,s,c),l++}for(;l<=h&&l<=d;){const r=e[h],l=t[d]=c?ai(t[d]):oi(t[d]);if(!Kr(r,l))break;g(r,l,n,null,i,o,a,s,c),h--,d--}if(l>h){if(l<=d){const e=d+1,h=e<u?t[e].el:r;for(;l<=d;)g(null,t[l]=c?ai(t[l]):oi(t[l]),n,h,i,o,a,s,c),l++}}else if(l>d)for(;l<=h;)G(e[l],i,o,!0),l++;else{const f=l,p=l,m=new Map;for(l=p;l<=d;l++){const e=t[l]=c?ai(t[l]):oi(t[l]);null!=e.key&&m.set(e.key,l)}let E,v=0;const b=d-p+1;let A=!1,T=0;const C=new Array(b);for(l=0;l<b;l++)C[l]=0;for(l=f;l<=h;l++){const r=e[l];if(v>=b){G(r,i,o,!0);continue}let u;if(null!=r.key)u=m.get(r.key);else for(E=p;E<=d;E++)if(0===C[E-p]&&Kr(r,t[E])){u=E;break}void 0===u?G(r,i,o,!0):(C[u-p]=l+1,u>=T?T=u:A=!0,g(r,t[u],n,null,i,o,a,s,c),v++)}const R=A?function(e){const t=e.slice(),n=[0];let r,i,o,a,s;const c=e.length;for(r=0;r<c;r++){const c=e[r];if(0!==c){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,e[n[s]]<c?o=s+1:a=s;c<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}(C):y;for(E=R.length-1,l=b-1;l>=0;l--){const e=p+l,h=t[e],d=e+1<u?t[e+1].el:r;0===C[l]?g(null,h,n,d,i,o,a,s,c):A&&(E<0||l!==R[E]?H(h,n,d,2):E--)}}},H=(e,t,r,i,o=null)=>{const{el:a,type:s,transition:c,children:l,shapeFlag:u}=e;if(6&u)H(e.component.subTree,t,r,i);else if(128&u)e.suspense.move(t,r,i);else if(64&u)s.move(e,t,r,ee);else if(s!==Fr)if(s!==Br)if(2!==i&&1&u&&c)if(0===i)c.beforeEnter(a),n(a,t,r),Er((()=>c.enter(a)),o);else{const{leave:e,delayLeave:i,afterLeave:o}=c,s=()=>n(a,t,r),l=()=>{e(a,(()=>{s(),o&&o()}))};i?i(a,s,l):l()}else n(a,t,r);else(({el:e,anchor:t},r,i)=>{let o;for(;e&&e!==t;)o=h(e),n(e,r,i),e=o;n(t,r,i)})(e,t,r);else{n(a,t,r);for(let e=0;e<l.length;e++)H(l[e],t,r,i);n(e.anchor,t,r)}},G=(e,t,n,r=!1,i=!1)=>{const{type:o,props:a,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:h,dirs:d}=e;if(null!=s&&Ar(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const f=1&u&&d;let p;if((p=a&&a.onVnodeBeforeUnmount)&&Tr(p,t,e),6&u)z(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);f&&lr(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,i,ee,r):l&&(o!==Fr||h>0&&64&h)?K(l,t,n,!1,!0):(o===Fr&&(128&h||256&h)||!i&&16&u)&&K(c,t,n),r&&V(e)}((p=a&&a.onVnodeUnmounted)||f)&&Er((()=>{p&&Tr(p,t,e),f&&lr(e,null,t,"unmounted")}),n)},V=e=>{const{type:t,el:n,anchor:i,transition:o}=e;if(t===Fr)return void j(n,i);if(t===Br)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),r(e),e=n;r(t)})(e);const a=()=>{r(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,a);r?r(e.el,a,i):i()}else a()},j=(e,t)=>{let n;for(;e!==t;)n=h(e),r(e),e=n;r(t)},z=(e,t,n)=>{const{bum:r,scope:i,update:o,subTree:a,um:s}=e;r&&Z(r),i.stop(),o&&(o.active=!1,G(a,e,t,n)),s&&Er(s,t),Er((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},K=(e,t,n,r=!1,i=!1,o=0)=>{for(let a=o;a<e.length;a++)G(e[a],t,n,r,i)},X=e=>6&e.shapeFlag?X(e.component.subTree):128&e.shapeFlag?e.suspense.next():h(e.anchor||e.el),J=(e,t,n)=>{null==e?t._vnode&&G(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),ao(),t._vnode=e},ee={p:g,um:G,m:H,r:V,mt:L,mc:_,pc:B,pbc:I,n:X,o:e};let te,ne;return t&&([te,ne]=t(ee)),{render:J,hydrate:te,createApp:dr(J,te)}}function Ar(e,t,n,r,i=!1){if(I(e))return void e.forEach(((e,o)=>Ar(e,t&&(I(t)?t[o]:t),n,r,i)));if(En(r)&&!i)return;const o=4&r.shapeFlag?Ni(r.component)||r.component.proxy:r.el,a=i?null:o,{i:s,r:c}=e,l=t&&t.r,u=s.refs===v?s.refs={}:s.refs,h=s.setupState;if(null!=l&&l!==c&&(D(l)?(u[l]=null,w(h,l)&&(h[l]=null)):Rt(l)&&(l.value=null)),D(c)){const e=()=>{u[c]=a,w(h,c)&&(h[c]=a)};a?(e.id=-1,Er(e,n)):e()}else if(Rt(c)){const e=()=>{c.value=a};a?(e.id=-1,Er(e,n)):e()}else L(c)&&Bi(c,s,12,[a,u])}function Tr(e,t,n,r=null){Ui(e,t,7,[n,r])}function Cr(e,t,n=!1){const r=e.children,i=t.children;if(I(r)&&I(i))for(let e=0;e<r.length;e++){const t=r[e];let o=i[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=i[e]=ai(i[e]),o.el=t.el),n||Cr(t,o))}}const Rr=e=>e&&(e.disabled||""===e.disabled),Sr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,_r=(e,t)=>{const n=e&&e.to;return D(n)?t?t(n):null:n};function xr(e,t,n,{o:{insert:r},m:i},o=2){0===o&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:c,children:l,props:u}=e,h=2===o;if(h&&r(a,t,n),(!h||Rr(u))&&16&c)for(let e=0;e<l.length;e++)i(l[e],t,n,2);h&&r(s,t,n)}const wr={__isTeleport:!0,process(e,t,n,r,i,o,a,s,c,l){const{mc:u,pc:h,pbc:d,o:{insert:f,querySelector:p,createText:g}}=l,m=Rr(t.props);let{shapeFlag:E,children:v,dynamicChildren:y}=t;if(null==e){const e=t.el=g(""),l=t.anchor=g("");f(e,n,r),f(l,n,r);const h=t.target=_r(t.props,p),d=t.targetAnchor=g("");h&&(f(d,h),a=a||Sr(h));const y=(e,t)=>{16&E&&u(v,e,t,i,o,a,s,c)};m?y(n,l):h&&y(h,d)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,f=t.targetAnchor=e.targetAnchor,g=Rr(e.props),E=g?n:u,v=g?r:f;if(a=a||Sr(u),y?(d(e.dynamicChildren,y,E,i,o,a,s),Cr(e,t,!0)):c||h(e,t,E,v,i,o,a,s,!1),m)g||xr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=_r(t.props,p);e&&xr(t,e,null,l,0)}else g&&xr(t,u,f,l,1)}},remove(e,t,n,r,{um:i,o:{remove:o}},a){const{shapeFlag:s,children:c,anchor:l,targetAnchor:u,target:h,props:d}=e;if(h&&o(u),(a||!Rr(d))&&(o(l),16&s))for(let e=0;e<c.length;e++){const r=c[e];i(r,t,n,!0,!!r.dynamicChildren)}},move:xr,hydrate:function(e,t,n,r,i,o,{o:{nextSibling:a,parentNode:s,querySelector:c}},l){const u=t.target=_r(t.props,c);if(u){const c=u._lpa||u.firstChild;16&t.shapeFlag&&(Rr(t.props)?(t.anchor=l(a(e),t,s(e),n,r,i,o),t.targetAnchor=c):(t.anchor=a(e),t.targetAnchor=l(c,t,u,n,r,i,o)),u._lpa=t.targetAnchor&&a(t.targetAnchor))}return t.anchor&&a(t.anchor)}};function Ir(e,t){return Lr("components",e,!0,t)||e}const Nr=Symbol();function Or(e){return D(e)?Lr("components",e,!1)||e:e||Nr}function kr(e){return Lr("directives",e)}function Lr(e,t,n=!0,r=!1){const i=Ht||vi;if(i){const n=i.type;if("components"===e){const e=ki(n);if(e&&(e===t||e===q(t)||e===K(q(t))))return n}const o=Dr(i[e]||n[e],t)||Dr(i.appContext[e],t);return!o&&r?n:o}}function Dr(e,t){return e&&(e[t]||e[q(t)]||e[K(q(t))])}const Fr=Symbol(void 0),Mr=Symbol(void 0),Pr=Symbol(void 0),Br=Symbol(void 0),Ur=[];let $r=null;function Hr(e=!1){Ur.push($r=e?null:[])}function Gr(){Ur.pop(),$r=Ur[Ur.length-1]||null}let Wr=1;function Vr(e){Wr+=e}function jr(e){return e.dynamicChildren=Wr>0?$r||y:null,Gr(),Wr>0&&$r&&$r.push(e),e}function qr(e,t,n,r,i,o){return jr(Qr(e,t,n,r,i,o,!0))}function zr(e,t,n,r,i){return jr(ei(e,t,n,r,i,!0))}function Yr(e){return!!e&&!0===e.__v_isVNode}function Kr(e,t){return e.type===t.type&&e.key===t.key}const Xr="__vInternal",Jr=({key:e})=>null!=e?e:null,Zr=({ref:e})=>null!=e?D(e)||Rt(e)||L(e)?{i:Ht,r:e}:e:null;function Qr(e,t=null,n=null,r=0,i=null,o=(e===Fr?0:1),a=!1,s=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Jr(t),ref:t&&Zr(t),scopeId:Gt,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return s?(si(c,n),128&o&&e.normalize(c)):n&&(c.shapeFlag|=D(n)?8:16),Wr>0&&!a&&$r&&(c.patchFlag>0||6&o)&&32!==c.patchFlag&&$r.push(c),c}const ei=function(e,t=null,n=null,i=0,o=null,a=!1){if(e&&e!==Nr||(e=Pr),Yr(e)){const r=ni(e,t,!0);return n&&si(r,n),r}var s;if(L(s=e)&&"__vccOpts"in s&&(e=e.__vccOpts),t){t=ti(t);let{class:e,style:n}=t;e&&!D(e)&&(t.class=l(e)),M(n)&&(vt(n)&&!I(n)&&(n=S({},n)),t.style=r(n))}return Qr(e,t,n,i,o,D(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:M(e)?4:L(e)?2:0,a,!0)};function ti(e){return e?vt(e)||Xr in e?S({},e):e:null}function ni(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:a}=e,s=t?ci(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Jr(s),ref:t&&t.ref?n&&i?I(i)?i.concat(Zr(t)):[i,Zr(t)]:Zr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fr?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ni(e.ssContent),ssFallback:e.ssFallback&&ni(e.ssFallback),el:e.el,anchor:e.anchor}}function ri(e=" ",t=0){return ei(Mr,null,e,t)}function ii(e="",t=!1){return t?(Hr(),zr(Pr,null,e)):ei(Pr,null,e)}function oi(e){return null==e||"boolean"==typeof e?ei(Pr):I(e)?ei(Fr,null,e.slice()):"object"==typeof e?ai(e):ei(Mr,null,String(e))}function ai(e){return null===e.el||e.memo?e:ni(e)}function si(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(I(t))n=16;else if("object"==typeof t){if(1&r||64&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),si(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Xr in t?3===r&&Ht&&(1===Ht.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Ht}}else L(t)?(t={default:t,_ctx:Ht},n=32):(t=String(t),64&r?(n=16,t=[ri(t)]):n=8);e.children=t,e.shapeFlag|=n}function ci(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const e in i)if("class"===e)t.class!==i.class&&(t.class=l([t.class,i.class]));else if("style"===e)t.style=r([t.style,i.style]);else if(C(e)){const n=t[e],r=i[e];n!==r&&(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=i[e])}return t}function li(e,t,n,r){let i;const o=n&&n[r];if(I(e)||D(e)){i=new Array(e.length);for(let n=0,r=e.length;n<r;n++)i[n]=t(e[n],n,void 0,o&&o[n])}else if("number"==typeof e){i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,o&&o[n])}else if(M(e))if(e[Symbol.iterator])i=Array.from(e,((e,n)=>t(e,n,void 0,o&&o[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,a=n.length;r<a;r++){const a=n[r];i[r]=t(e[a],a,r,o&&o[r])}}else i=[];return n&&(n[r]=i),i}function ui(e,t,n={},r,i){if(Ht.isCE)return ei("slot","default"===t?null:{name:t},r&&r());let o=e[t];o&&o._c&&(o._d=!1),Hr();const a=o&&hi(o(n)),s=zr(Fr,{key:n.key||`_${t}`},a||(r?r():[]),a&&1===e._?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function hi(e){return e.some((e=>!Yr(e)||e.type!==Pr&&!(e.type===Fr&&!hi(e.children))))?e:null}const di=e=>e?Ti(e)?Ni(e)||e.proxy:di(e.parent):null,fi=S(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>di(e.parent),$root:e=>di(e.root),$emit:e=>e.emit,$options:e=>Wn(e),$forceUpdate:e=>()=>to(e.update),$nextTick:e=>eo.bind(e.proxy),$watch:e=>po.bind(e)}),pi={get({_:e},t){const{ctx:n,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:c}=e;let l;if("$"!==t[0]){const s=a[t];if(void 0!==s)switch(s){case 0:return r[t];case 1:return i[t];case 3:return n[t];case 2:return o[t]}else{if(r!==v&&w(r,t))return a[t]=0,r[t];if(i!==v&&w(i,t))return a[t]=1,i[t];if((l=e.propsOptions[0])&&w(l,t))return a[t]=2,o[t];if(n!==v&&w(n,t))return a[t]=3,n[t];$n&&(a[t]=4)}}const u=fi[t];let h,d;return u?("$attrs"===t&&Ae(e,0,t),u(e)):(h=s.__cssModules)&&(h=h[t])?h:n!==v&&w(n,t)?(a[t]=3,n[t]):(d=c.config.globalProperties,w(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;if(i!==v&&w(i,t))i[t]=n;else if(r!==v&&w(r,t))r[t]=n;else if(w(e.props,t))return!1;return!("$"===t[0]&&t.slice(1)in e||(o[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},a){let s;return void 0!==n[a]||e!==v&&w(e,a)||t!==v&&w(t,a)||(s=o[0])&&w(s,a)||w(r,a)||w(fi,a)||w(i.config.globalProperties,a)}},gi=S({},pi,{get(e,t){if(t!==Symbol.unscopables)return pi.get(e,t,e)},has:(e,n)=>"_"!==n[0]&&!t(n)}),mi=ur();let Ei=0,vi=null;const yi=()=>vi||Ht,bi=e=>{vi=e,e.scope.on()},Ai=()=>{vi&&vi.scope.off(),vi=null};function Ti(e){return 4&e.vnode.shapeFlag}let Ci,Ri,Si=!1;function _i(e,t,n){L(t)?e.render=t:M(t)&&(e.setupState=Nt(t)),wi(e)}function xi(e){Ci=e,Ri=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,gi))}}function wi(e,t,n){const r=e.type;if(!e.render){if(Ci&&!r.render){const t=r.template;if(t){const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,s=S(S({isCustomElement:n,delimiters:o},i),a);r.render=Ci(t,s)}}e.render=r.render||b,Ri&&Ri(e)}bi(e),ye(),function(e){const t=Wn(e),n=e.proxy,r=e.ctx;$n=!1,t.beforeCreate&&Hn(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:c,inject:l,created:u,beforeMount:h,mounted:d,beforeUpdate:f,updated:p,activated:g,deactivated:m,beforeUnmount:E,unmounted:v,render:y,renderTracked:A,renderTriggered:T,errorCaptured:C,serverPrefetch:R,expose:S,inheritAttrs:_,components:x,directives:w}=t;if(l&&function(e,t,n=b,r=!1){I(e)&&(e=zn(e));for(const n in e){const i=e[n];let o;o=M(i)?"default"in i?an(i.from||n,i.default,!0):an(i.from||n):an(i),Rt(o)&&r?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):t[n]=o}}(l,r,null,e.appContext.config.unwrapInjectedRef),a)for(const e in a){const t=a[e];L(t)&&(r[e]=t.bind(n))}if(i){const t=i.call(n,n);M(t)&&(e.data=dt(t))}if($n=!0,o)for(const e in o){const t=o[e],i=Mt({get:L(t)?t.bind(n,n):L(t.get)?t.get.bind(n,n):b,set:!L(t)&&L(t.set)?t.set.bind(n):b});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(const e in s)Gn(s[e],r,n,e);if(c){const e=L(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{on(t,e[t])}))}function N(e,t){I(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&Hn(u,e,"c"),N(Nn,h),N(On,d),N(kn,f),N(Ln,p),N(Tn,g),N(Cn,m),N(Un,C),N(Bn,A),N(Pn,T),N(Dn,E),N(Fn,v),N(Mn,R),I(S))if(S.length){const t=e.exposed||(e.exposed={});S.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});y&&e.render===b&&(e.render=y),null!=_&&(e.inheritAttrs=_),x&&(e.components=x),w&&(e.directives=w)}(e),be(),Ai()}function Ii(e){let t;return{get attrs(){return t||(t=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Ae(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ni(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Nt(bt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in fi?fi[n](e):void 0}))}const Oi=/(?:^|[-_])(\w)/g;function ki(e){return L(e)&&e.displayName||e.name}function Li(e,t,n=!1){let r=ki(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?r.replace(Oi,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}const Di=[];function Fi(e,...t){ye();const n=Di.length?Di[Di.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=function(){let e=Di[Di.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(r)Bi(r,n,11,[e+t.join(""),n&&n.proxy,i.map((({vnode:e})=>`at <${Li(n,e.type)}>`)).join("\n"),i]);else{const n=[`[Vue warn]: ${e}`,...t];i.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=` at <${Li(e.component,e.type,!!e.component&&null==e.component.parent)}`,i=">"+n;return e.props?[r,...Mi(e.props),i]:[r+i]}(e))})),t}(i)),console.warn(...n)}be()}function Mi(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Pi(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Pi(e,t,n){return D(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:Rt(t)?(t=Pi(e,yt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):L(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=yt(t),n?t:[`${e}=`,t])}function Bi(e,t,n,r){let i;try{i=r?e(...r):e()}catch(e){$i(e,t,n)}return i}function Ui(e,t,n,r){if(L(e)){const i=Bi(e,t,n,r);return i&&P(i)&&i.catch((e=>{$i(e,t,n)})),i}const i=[];for(let o=0;o<e.length;o++)i.push(Ui(e[o],t,n,r));return i}function $i(e,t,n,r=!0){if(t){let r=t.parent;const i=t.proxy,o=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,o))return;r=r.parent}const a=t.appContext.config.errorHandler;if(a)return void Bi(a,null,10,[e,i,o])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let Hi=!1,Gi=!1;const Wi=[];let Vi=0;const ji=[];let qi=null,zi=0;const Yi=[];let Ki=null,Xi=0;const Ji=Promise.resolve();let Zi=null,Qi=null;function eo(e){const t=Zi||Ji;return e?t.then(this?e.bind(this):e):t}function to(e){Wi.length&&Wi.includes(e,Hi&&e.allowRecurse?Vi+1:Vi)||e===Qi||(null==e.id?Wi.push(e):Wi.splice(function(e){let t=Vi+1,n=Wi.length;for(;t<n;){const r=t+n>>>1;so(Wi[r])<e?t=r+1:n=r}return t}(e.id),0,e),no())}function no(){Hi||Gi||(Gi=!0,Zi=Ji.then(co))}function ro(e,t,n,r){I(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),no()}function io(e){ro(e,Ki,Yi,Xi)}function oo(e,t=null){if(ji.length){for(Qi=t,qi=[...new Set(ji)],ji.length=0,zi=0;zi<qi.length;zi++)qi[zi]();qi=null,zi=0,Qi=null,oo(e,t)}}function ao(e){if(Yi.length){const e=[...new Set(Yi)];if(Yi.length=0,Ki)return void Ki.push(...e);for(Ki=e,Ki.sort(((e,t)=>so(e)-so(t))),Xi=0;Xi<Ki.length;Xi++)Ki[Xi]();Ki=null,Xi=0}}const so=e=>null==e.id?1/0:e.id;function co(e){Gi=!1,Hi=!0,oo(e),Wi.sort(((e,t)=>so(e)-so(t)));try{for(Vi=0;Vi<Wi.length;Vi++){const e=Wi[Vi];e&&!1!==e.active&&Bi(e,null,14)}}finally{Vi=0,Wi.length=0,ao(),Hi=!1,Zi=null,(Wi.length||ji.length||Yi.length)&&co(e)}}function lo(e,t){return fo(e,null,{flush:"post"})}const uo={};function ho(e,t,n){return fo(e,t,n)}function fo(e,t,{immediate:n,deep:r,flush:i}=v){const o=vi;let a,s,c=!1,l=!1;if(Rt(e)?(a=()=>e.value,c=!!e._shallow):mt(e)?(a=()=>e,r=!0):I(e)?(l=!0,c=e.some(mt),a=()=>e.map((e=>Rt(e)?e.value:mt(e)?mo(e):L(e)?Bi(e,o,2):void 0))):a=L(e)?t?()=>Bi(e,o,2):()=>{if(!o||!o.isUnmounted)return s&&s(),Ui(e,o,3,[u])}:b,t&&r){const e=a;a=()=>mo(e())}let u=e=>{s=p.onStop=()=>{Bi(e,o,4)}},h=l?[]:uo;const d=()=>{if(p.active)if(t){const e=p.run();(r||c||(l?e.some(((e,t)=>J(e,h[t]))):J(e,h)))&&(s&&s(),Ui(t,o,3,[e,h===uo?void 0:h,u]),h=e)}else p.run()};let f;d.allowRecurse=!!t,f="sync"===i?d:"post"===i?()=>Er(d,o&&o.suspense):()=>{!o||o.isMounted?function(e){ro(e,qi,ji,zi)}(d):d()};const p=new ge(a,f);return t?n?d():h=p.run():"post"===i?Er(p.run.bind(p),o&&o.suspense):p.run(),()=>{p.stop(),o&&o.scope&&_(o.scope.effects,p)}}function po(e,t,n){const r=this.proxy,i=D(e)?e.includes(".")?go(r,e):()=>r[e]:e.bind(r,r);let o;L(t)?o=t:(o=t.handler,n=t);const a=vi;bi(this);const s=fo(i,o.bind(r),n);return a?bi(a):Ai(),s}function go(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function mo(e,t=new Set){if(!M(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Rt(e))mo(e.value,t);else if(I(e))for(let n=0;n<e.length;n++)mo(e[n],t);else if(O(e)||N(e))e.forEach((e=>{mo(e,t)}));else if(H(e))for(const n in e)mo(e[n],t);return e}function Eo(){const e=yi();return e.setupContext||(e.setupContext=Ii(e))}function vo(e,t,n){const r=arguments.length;return 2===r?M(t)&&!I(t)?Yr(t)?ei(e,null,[t]):ei(e,t):ei(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Yr(n)&&(n=[n]),ei(e,t,n))}const yo=Symbol("");function bo(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(n[e]!==t[e])return!1;return Wr>0&&$r&&$r.push(e),!0}const Ao="3.2.0",To="undefined"!=typeof document?document:null,Co=new Map,Ro={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?To.createElementNS("http://www.w3.org/2000/svg",e):To.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>To.createTextNode(e),createComment:e=>To.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>To.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r){const i=n?n.previousSibling:t.lastChild;let o=Co.get(e);if(!o){const t=To.createElement("template");if(t.innerHTML=r?`<svg>${e}</svg>`:e,o=t.content,r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}Co.set(e,o)}return t.insertBefore(o.cloneNode(!0),n),[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},So=/\s*!important$/;function _o(e,t,n){if(I(n))n.forEach((n=>_o(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=wo[t];if(n)return n;let r=q(t);if("filter"!==r&&r in e)return wo[t]=r;r=K(r);for(let n=0;n<xo.length;n++){const i=xo[n]+r;if(i in e)return wo[t]=i}return t}(e,t);So.test(n)?e.setProperty(Y(r),n.replace(So,""),"important"):e[r]=n}}const xo=["Webkit","Moz","ms"],wo={},Io="http://www.w3.org/1999/xlink";let No=Date.now,Oo=!1;if("undefined"!=typeof window){No()>document.createEvent("Event").timeStamp&&(No=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Oo=!!(e&&Number(e[1])<=53)}let ko=0;const Lo=Promise.resolve(),Do=()=>{ko=0};function Fo(e,t,n,r){e.addEventListener(t,n,r)}const Mo=/(?:Once|Passive|Capture)$/,Po=/^on[a-z]/;function Bo(e,t){const n=mn(e);class r extends $o{constructor(e){super(n,e,t)}}return r.def=n,r}const Uo="undefined"!=typeof HTMLElement?HTMLElement:class{};class $o extends Uo{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"});for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0})}connectedCallback(){this._connected=!0,this._instance||(this._resolveDef(),Ma(this._createVNode(),this.shadowRoot))}disconnectedCallback(){this._connected=!1,eo((()=>{this._connected||(Ma(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;const e=e=>{this._resolved=!0;for(const e of Object.keys(this))"_"!==e[0]&&this._setProp(e,this[e]);const{props:t,styles:n}=e,r=t?I(t)?t:Object.keys(t):[];for(const e of r.map(q))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}});this._applyStyles(n)},t=this._def.__asyncLoader;t?t().then(e):e(this._def)}_setAttr(e){this._setProp(q(e),ee(this.getAttribute(e)),!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0){t!==this._props[e]&&(this._props[e]=t,this._instance&&Ma(this._createVNode(),this.shadowRoot),n&&(!0===t?this.setAttribute(Y(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(Y(e),t+""):t||this.removeAttribute(Y(e))))}_createVNode(){const e=ei(this._def,S({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(e,...t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof $o){e.parent=t._instance;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Ho(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Ho(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Go(e.el,t);else if(e.type===Fr)e.children.forEach((e=>Ho(e,t)));else if(e.type===Br){let{el:n,anchor:r}=e;for(;n&&(Go(n,t),n!==r);)n=n.nextSibling}}function Go(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const Wo=(e,{slots:t})=>vo(ln,Yo(e),t);Wo.displayName="Transition";const Vo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},jo=Wo.props=S({},ln.props,Vo),qo=(e,t=[])=>{I(e)?e.forEach((e=>e(...t))):e&&e(...t)},zo=e=>!!e&&(I(e)?e.some((e=>e.length>1)):e.length>1);function Yo(e){const t={};for(const n in e)n in Vo||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:l=a,appearToClass:u=s,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,p=function(e){if(null==e)return null;if(M(e))return[Ko(e.enter),Ko(e.leave)];{const t=Ko(e);return[t,t]}}(i),g=p&&p[0],m=p&&p[1],{onBeforeEnter:E,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:A,onBeforeAppear:T=E,onAppear:C=v,onAppearCancelled:R=y}=t,_=(e,t,n)=>{Jo(e,t?u:s),Jo(e,t?l:a),n&&n()},x=(e,t)=>{Jo(e,f),Jo(e,d),t&&t()},w=e=>(t,n)=>{const i=e?C:v,a=()=>_(t,e,n);qo(i,[t,a]),Zo((()=>{Jo(t,e?c:o),Xo(t,e?u:s),zo(i)||ea(t,r,g,a)}))};return S(t,{onBeforeEnter(e){qo(E,[e]),Xo(e,o),Xo(e,a)},onBeforeAppear(e){qo(T,[e]),Xo(e,c),Xo(e,l)},onEnter:w(!1),onAppear:w(!0),onLeave(e,t){const n=()=>x(e,t);Xo(e,h),ia(),Xo(e,d),Zo((()=>{Jo(e,h),Xo(e,f),zo(b)||ea(e,r,m,n)})),qo(b,[e,n])},onEnterCancelled(e){_(e,!1),qo(y,[e])},onAppearCancelled(e){_(e,!0),qo(R,[e])},onLeaveCancelled(e){x(e),qo(A,[e])}})}function Ko(e){return ee(e)}function Xo(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Jo(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Zo(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Qo=0;function ea(e,t,n,r){const i=e._endId=++Qo,o=()=>{i===e._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:c}=ta(e,t);if(!a)return r();const l=a+"end";let u=0;const h=()=>{e.removeEventListener(l,d),o()},d=t=>{t.target===e&&++u>=c&&h()};setTimeout((()=>{u<c&&h()}),s+1),e.addEventListener(l,d)}function ta(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),i=r("transitionDelay"),o=r("transitionDuration"),a=na(i,o),s=r("animationDelay"),c=r("animationDuration"),l=na(s,c);let u=null,h=0,d=0;return"transition"===t?a>0&&(u="transition",h=a,d=o.length):"animation"===t?l>0&&(u="animation",h=l,d=c.length):(h=Math.max(a,l),u=h>0?a>l?"transition":"animation":null,d=u?"transition"===u?o.length:c.length:0),{type:u,timeout:h,propCount:d,hasTransform:"transition"===u&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}function na(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>ra(t)+ra(e[n]))))}function ra(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ia(){return document.body.offsetHeight}const oa=new WeakMap,aa=new WeakMap,sa={name:"TransitionGroup",props:S({},jo,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=yi(),r=sn();let i,o;return Ln((()=>{if(!i.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=ta(r);return i.removeChild(r),o}(i[0].el,n.vnode.el,t))return;i.forEach(ca),i.forEach(la);const r=i.filter(ua);ia(),r.forEach((e=>{const n=e.el,r=n.style;Xo(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const i=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",i),n._moveCb=null,Jo(n,t))};n.addEventListener("transitionend",i)}))})),()=>{const a=yt(e),s=Yo(a);let c=a.tag||Fr;i=o,o=t.default?gn(t.default()):[];for(let e=0;e<o.length;e++){const t=o[e];null!=t.key&&pn(t,hn(t,s,r,n))}if(i)for(let e=0;e<i.length;e++){const t=i[e];pn(t,hn(t,s,r,n)),oa.set(t,t.el.getBoundingClientRect())}return ei(c,null,o)}}};function ca(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function la(e){aa.set(e,e.el.getBoundingClientRect())}function ua(e){const t=oa.get(e),n=aa.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${i}px)`,t.transitionDuration="0s",e}}const ha=e=>{const t=e.props["onUpdate:modelValue"];return I(t)?e=>Z(t,e):t};function da(e){e.target.composing=!0}function fa(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent("input",!0,!0),e.dispatchEvent(n)}(t))}const pa={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=ha(i);const o=r||i.props&&"number"===i.props.type;Fo(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n?r=r.trim():o&&(r=ee(r)),e._assign(r)})),n&&Fo(e,"change",(()=>{e.value=e.value.trim()})),t||(Fo(e,"compositionstart",da),Fo(e,"compositionend",fa),Fo(e,"change",fa))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},o){if(e._assign=ha(o),e.composing)return;if(document.activeElement===e){if(n)return;if(r&&e.value.trim()===t)return;if((i||"number"===e.type)&&ee(e.value)===t)return}const a=null==t?"":t;e.value!==a&&(e.value=a)}},ga={deep:!0,created(e,t,n){e._assign=ha(n),Fo(e,"change",(()=>{const t=e._modelValue,n=ba(e),r=e.checked,i=e._assign;if(I(t)){const e=g(t,n),o=-1!==e;if(r&&!o)i(t.concat(n));else if(!r&&o){const n=[...t];n.splice(e,1),i(n)}}else if(O(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Aa(e,r))}))},mounted:ma,beforeUpdate(e,t,n){e._assign=ha(n),ma(e,t,n)}};function ma(e,{value:t,oldValue:n},r){e._modelValue=t,I(t)?e.checked=g(t,r.props.value)>-1:O(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=p(t,Aa(e,!0)))}const Ea={created(e,{value:t},n){e.checked=p(t,n.props.value),e._assign=ha(n),Fo(e,"change",(()=>{e._assign(ba(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=ha(r),t!==n&&(e.checked=p(t,r.props.value))}},va={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=O(t);Fo(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?ee(ba(e)):ba(e)));e._assign(e.multiple?i?new Set(t):t:t[0])})),e._assign=ha(r)},mounted(e,{value:t}){ya(e,t)},beforeUpdate(e,t,n){e._assign=ha(n)},updated(e,{value:t}){ya(e,t)}};function ya(e,t){const n=e.multiple;if(!n||I(t)||O(t)){for(let r=0,i=e.options.length;r<i;r++){const i=e.options[r],o=ba(i);if(n)i.selected=I(t)?g(t,o)>-1:t.has(o);else if(p(ba(i),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ba(e){return"_value"in e?e._value:e.value}function Aa(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ta={created(e,t,n){Ca(e,t,n,null,"created")},mounted(e,t,n){Ca(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Ca(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Ca(e,t,n,r,"updated")}};function Ca(e,t,n,r,i){let o;switch(e.tagName){case"SELECT":o=va;break;case"TEXTAREA":o=pa;break;default:switch(n.props&&n.props.type){case"checkbox":o=ga;break;case"radio":o=Ea;break;default:o=pa}}const a=o[i];a&&a(e,t,n,r)}const Ra=["ctrl","shift","alt","meta"],Sa={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Ra.some((n=>e[`${n}Key`]&&!t.includes(n)))},_a=(e,t)=>(n,...r)=>{for(let e=0;e<t.length;e++){const r=Sa[t[e]];if(r&&r(n,t))return}return e(n,...r)},xa={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},wa=(e,t)=>n=>{if(!("key"in n))return;const r=Y(n.key);return t.some((e=>e===r||xa[e]===r))?e(n):void 0},Ia={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Na(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Na(e,!0),r.enter(e)):r.leave(e,(()=>{Na(e,!1)})):Na(e,t))},beforeUnmount(e,{value:t}){Na(e,t)}};function Na(e,t){e.style.display=t?e._vod:"none"}const Oa=S({patchProp:(e,t,r,i,o=!1,a,s,c,l)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,i,o):"style"===t?function(e,t,n){const r=e.style;if(n)if(D(n)){if(t!==n){const t=r.display;r.cssText=n,"_vod"in e&&(r.display=t)}}else{for(const e in n)_o(r,e,n[e]);if(t&&!D(t))for(const e in t)null==n[e]&&_o(r,e,"")}else e.removeAttribute("style")}(e,r,i):C(t)?R(t)||function(e,t,n,r,i=null){const o=e._vei||(e._vei={}),a=o[t];if(r&&a)a.value=r;else{const[n,s]=function(e){let t;if(Mo.test(e)){let n;for(t={};n=e.match(Mo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Y(e.slice(2)),t]}(t);r?Fo(e,n,o[t]=function(e,t){const n=e=>{const r=e.timeStamp||No();(Oo||r>=n.attached-1)&&Ui(function(e,t){if(I(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=ko||(Lo.then(Do),ko=No()),n}(r,i),s):a&&(function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,a,s),o[t]=void 0)}}(e,t,0,i,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){return r?"innerHTML"===t||!!(t in e&&Po.test(t)&&L(n)):!("spellcheck"===t||"draggable"===t||"form"===t||"list"===t&&"INPUT"===e.tagName||"type"===t&&"TEXTAREA"===e.tagName||Po.test(t)&&D(n)||!(t in e))}(e,t,i,o))?function(e,t,n,r,i,o,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,i,o),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName){e._value=n;const r=null==n?"":n;return e.value!==r&&(e.value=r),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const r=typeof e[t];if(""===n&&"boolean"===r)return void(e[t]=!0);if(null==n&&"string"===r)return e[t]="",void e.removeAttribute(t);if("number"===r){try{e[t]=0}catch(e){}return void e.removeAttribute(t)}}try{e[t]=n}catch(e){}}(e,t,i,a,s,c,l):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),function(e,t,r,i,o){if(i&&t.startsWith("xlink:"))null==r?e.removeAttributeNS(Io,t.slice(6,t.length)):e.setAttributeNS(Io,t,r);else{const i=n(t);null==r||i&&!1===r?e.removeAttribute(t):e.setAttribute(t,i?"":r)}}(e,t,i,o))}},Ro);let ka,La=!1;function Da(){return ka||(ka=vr(Oa))}function Fa(){return ka=La?ka:yr(Oa),La=!0,ka}const Ma=(...e)=>{Da().render(...e)},Pa=(...e)=>{Fa().hydrate(...e)},Ba=(...e)=>{const t=Da().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=Ua(e);if(!r)return;const i=t._component;L(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function Ua(e){return D(e)?document.querySelector(e):e}var $a=Object.freeze({__proto__:null,render:Ma,hydrate:Pa,createApp:Ba,createSSRApp:(...e)=>{const t=Fa().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Ua(e);if(t)return n(t,!0,t instanceof SVGElement)},t},defineCustomElement:Bo,defineSSRCustomElement:e=>Bo(e,Pa),VueElement:$o,useCssModule:function(e="$style"){{const t=yi();if(!t)return v;const n=t.type.__cssModules;return n&&n[e]||v}},useCssVars:function(e){const t=yi();if(!t)return;const n=()=>Ho(t.subTree,e(t.proxy));lo(n),On((()=>{const e=new MutationObserver(n);e.observe(t.subTree.el.parentNode,{childList:!0}),Fn((()=>e.disconnect()))}))},Transition:Wo,TransitionGroup:sa,vModelText:pa,vModelCheckbox:ga,vModelRadio:Ea,vModelSelect:va,vModelDynamic:Ta,withModifiers:_a,withKeys:wa,vShow:Ia,computed:Mt,reactive:dt,ref:St,readonly:pt,unref:wt,proxyRefs:Nt,isRef:Rt,toRef:Dt,toRefs:kt,isProxy:vt,isReactive:mt,isReadonly:Et,customRef:function(e){return new Ot(e)},triggerRef:function(e){Tt(e)},shallowRef:function(e){return xt(e,!0)},shallowReactive:ft,shallowReadonly:function(e){return gt(e,!0,Be,st,ht)},markRaw:bt,toRaw:yt,effect:function(e,t){e.effect&&(e=e.effect.fn);const n=new ge(e);t&&(S(n,t),t.scope&&ie(n,t.scope)),t&&t.lazy||n.run();const r=n.run.bind(n);return r.effect=n,r},stop:function(e){e.effect.stop()},ReactiveEffect:ge,effectScope:function(e){return new re(e)},EffectScope:re,getCurrentScope:function(){return te},onScopeDispose:function(e){te&&te.cleanups.push(e)},watch:ho,watchEffect:function(e,t){return fo(e,null,t)},watchPostEffect:lo,watchSyncEffect:function(e,t){return fo(e,null,{flush:"sync"})},onBeforeMount:Nn,onMounted:On,onBeforeUpdate:kn,onUpdated:Ln,onBeforeUnmount:Dn,onUnmounted:Fn,onActivated:Tn,onDeactivated:Cn,onRenderTracked:Bn,onRenderTriggered:Pn,onErrorCaptured:Un,onServerPrefetch:Mn,provide:on,inject:an,nextTick:eo,defineComponent:mn,defineAsyncComponent:function(e){L(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:o,suspensible:a=!0,onError:s}=e;let c,l=null,u=0;const h=()=>{let e;return l||(e=l=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise(((t,n)=>{s(e,(()=>t((u++,l=null,h()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==l&&l?l:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return mn({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return c},setup(){const e=vi;if(c)return()=>vn(c,e);const t=t=>{l=null,$i(t,e,13,!r)};if(a&&e.suspense)return h().then((t=>()=>vn(t,e))).catch((e=>(t(e),()=>r?ei(r,{error:e}):null)));const s=St(!1),u=St(),d=St(!!i);return i&&setTimeout((()=>{d.value=!1}),i),null!=o&&setTimeout((()=>{if(!s.value&&!u.value){const e=new Error(`Async component timed out after ${o}ms.`);t(e),u.value=e}}),o),h().then((()=>{s.value=!0,e.parent&&yn(e.parent.vnode)&&to(e.parent.update)})).catch((e=>{t(e),u.value=e})),()=>s.value&&c?vn(c,e):u.value&&r?ei(r,{error:u.value}):n&&!d.value?ei(n):void 0}})},useAttrs:function(){return Eo().attrs},useSlots:function(){return Eo().slots},defineProps:function(){return null},defineEmits:function(){return null},defineExpose:function(e){},withDefaults:function(e,t){return null},mergeDefaults:function(e,t){for(const n in t){const r=e[n];r?r.default=t[n]:null===r&&(e[n]={default:t[n]})}return e},withAsyncContext:function(e){const t=yi();let n=e();return Ai(),P(n)&&(n=n.catch((e=>{throw bi(t),e}))),[n,()=>bi(t)]},getCurrentInstance:yi,h:vo,createVNode:ei,cloneVNode:ni,mergeProps:ci,isVNode:Yr,Fragment:Fr,Text:Mr,Comment:Pr,Static:Br,Teleport:wr,Suspense:Zt,KeepAlive:bn,BaseTransition:ln,withDirectives:cr,useSSRContext:()=>{{const e=an(yo);return e||Fi("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}},ssrContextKey:yo,createRenderer:vr,createHydrationRenderer:yr,queuePostFlushCb:io,warn:Fi,handleError:$i,callWithErrorHandling:Bi,callWithAsyncErrorHandling:Ui,resolveComponent:Ir,resolveDirective:kr,resolveDynamicComponent:Or,registerRuntimeCompiler:xi,isRuntimeOnly:()=>!Ci,useTransitionState:sn,resolveTransitionHooks:hn,setTransitionHooks:pn,getTransitionRawChildren:gn,initCustomFormatter:function(){},get devtools(){return Pt},setDevtoolsHook:function(e){Pt=e},withCtx:qt,pushScopeId:Vt,popScopeId:jt,withScopeId:e=>qt,renderList:li,toHandlers:function(e){const t={};for(const n in e)t[X(n)]=e[n];return t},renderSlot:ui,createSlots:function(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(I(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.fn)}return e},withMemo:function(e,t,n,r){const i=n[r];if(i&&bo(i,e))return i;const o=t();return o.memo=e.slice(),n[r]=o},isMemoSame:bo,openBlock:Hr,createBlock:zr,setBlockTracking:Vr,createTextVNode:ri,createCommentVNode:ii,createStaticVNode:function(e,t){const n=ei(Br,null,e);return n.staticCount=t,n},createElementVNode:Qr,createElementBlock:qr,guardReactiveProps:ti,toDisplayString:m,camelize:q,capitalize:K,toHandlerKey:X,normalizeProps:u,normalizeClass:l,normalizeStyle:r,transformVNodeArgs:function(e){},$ref:function(){},$computed:function(){},$raw:function(){return null},$fromRefs:function(){return null},version:Ao,ssrUtils:null,resolveFilter:null,compatUtils:null});function Ha(e){throw e}function Ga(e){}function Wa(e,t,n,r){const i=new SyntaxError(String(e));return i.code=e,i.loc=t,i}const Va=Symbol(""),ja=Symbol(""),qa=Symbol(""),za=Symbol(""),Ya=Symbol(""),Ka=Symbol(""),Xa=Symbol(""),Ja=Symbol(""),Za=Symbol(""),Qa=Symbol(""),es=Symbol(""),ts=Symbol(""),ns=Symbol(""),rs=Symbol(""),is=Symbol(""),os=Symbol(""),as=Symbol(""),ss=Symbol(""),cs=Symbol(""),ls=Symbol(""),us=Symbol(""),hs=Symbol(""),ds=Symbol(""),fs=Symbol(""),ps=Symbol(""),gs=Symbol(""),ms=Symbol(""),Es=Symbol(""),vs=Symbol(""),ys=Symbol(""),bs=Symbol(""),As=Symbol(""),Ts=Symbol(""),Cs=Symbol(""),Rs=Symbol(""),Ss=Symbol(""),_s=Symbol(""),xs=Symbol(""),ws=Symbol(""),Is=Symbol(""),Ns={[Va]:"Fragment",[ja]:"Teleport",[qa]:"Suspense",[za]:"KeepAlive",[Ya]:"BaseTransition",[Ka]:"openBlock",[Xa]:"createBlock",[Ja]:"createElementBlock",[Za]:"createVNode",[Qa]:"createElementVNode",[es]:"createCommentVNode",[ts]:"createTextVNode",[ns]:"createStaticVNode",[rs]:"resolveComponent",[is]:"resolveDynamicComponent",[os]:"resolveDirective",[as]:"resolveFilter",[ss]:"withDirectives",[cs]:"renderList",[ls]:"renderSlot",[us]:"createSlots",[hs]:"toDisplayString",[ds]:"mergeProps",[fs]:"normalizeClass",[ps]:"normalizeStyle",[gs]:"normalizeProps",[ms]:"guardReactiveProps",[Es]:"toHandlers",[vs]:"camelize",[ys]:"capitalize",[bs]:"toHandlerKey",[As]:"setBlockTracking",[Ts]:"pushScopeId",[Cs]:"popScopeId",[Rs]:"withScopeId",[Ss]:"withCtx",[_s]:"unref",[xs]:"isRef",[ws]:"withMemo",[Is]:"isMemoSame"},Os={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function ks(e,t,n,r,i,o,a,s=!1,c=!1,l=!1,u=Os){return e&&(s?(e.helper(Ka),e.helper(sc(e.inSSR,l))):e.helper(ac(e.inSSR,l)),a&&e.helper(ss)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:o,directives:a,isBlock:s,disableTracking:c,isComponent:l,loc:u}}function Ls(e,t=Os){return{type:17,loc:t,elements:e}}function Ds(e,t=Os){return{type:15,loc:t,properties:e}}function Fs(e,t){return{type:16,loc:Os,key:D(e)?Ms(e,!0):e,value:t}}function Ms(e,t=!1,n=Os,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Ps(e,t=Os){return{type:8,loc:t,children:e}}function Bs(e,t=[],n=Os){return{type:14,loc:n,callee:e,arguments:t}}function Us(e,t,n=!1,r=!1,i=Os){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function $s(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Os}}const Hs=e=>4===e.type&&e.isStatic,Gs=(e,t)=>e===t||e===Y(t);function Ws(e){return Gs(e,"Teleport")?ja:Gs(e,"Suspense")?qa:Gs(e,"KeepAlive")?za:Gs(e,"BaseTransition")?Ya:void 0}const Vs=/^\d|[^\$\w]/,js=e=>!Vs.test(e),qs=/[A-Za-z_$\xA0-\uFFFF]/,zs=/[\.\?\w$\xA0-\uFFFF]/,Ys=/\s+[.[]\s*|\s*[.[]\s+/g,Ks=e=>{e=e.trim().replace(Ys,(e=>e.trim()));let t=0,n=[],r=0,i=0,o=null;for(let a=0;a<e.length;a++){const s=e.charAt(a);switch(t){case 0:if("["===s)n.push(t),t=1,r++;else if("("===s)n.push(t),t=2,i++;else if(!(0===a?qs:zs).test(s))return!1;break;case 1:"'"===s||'"'===s||"`"===s?(n.push(t),t=3,o=s):"["===s?r++:"]"===s&&(--r||(t=n.pop()));break;case 2:if("'"===s||'"'===s||"`"===s)n.push(t),t=3,o=s;else if("("===s)i++;else if(")"===s){if(a===e.length-1)return!1;--i||(t=n.pop())}break;case 3:s===o&&(t=n.pop(),o=null)}}return!r&&!i};function Xs(e,t,n){const r={source:e.source.substr(t,n),start:Js(e.start,e.source,t),end:e.end};return null!=n&&(r.end=Js(e.start,e.source,t+n)),r}function Js(e,t,n=t.length){return Zs(S({},e),t,n)}function Zs(e,t,n=t.length){let r=0,i=-1;for(let e=0;e<n;e++)10===t.charCodeAt(e)&&(r++,i=e);return e.offset+=n,e.line+=r,e.column=-1===i?e.column+n:n-i,e}function Qs(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(7===i.type&&(n||i.exp)&&(D(t)?i.name===t:t.test(i.name)))return i}}function ec(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){const o=e.props[i];if(6===o.type){if(n)continue;if(o.name===t&&(o.value||r))return o}else if("bind"===o.name&&(o.exp||r)&&tc(o.arg,t))return o}}function tc(e,t){return!(!e||!Hs(e)||e.content!==t)}function nc(e){return 5===e.type||2===e.type}function rc(e){return 7===e.type&&"slot"===e.name}function ic(e){return 1===e.type&&3===e.tagType}function oc(e){return 1===e.type&&2===e.tagType}function ac(e,t){return e||t?Za:Qa}function sc(e,t){return e||t?Xa:Ja}const cc=new Set([gs,ms]);function lc(e,t=[]){if(e&&!D(e)&&14===e.type){const n=e.callee;if(!D(n)&&cc.has(n))return lc(e.arguments[0],t.concat(e))}return[e,t]}function uc(e,t,n){let r,i,o=13===e.type?e.props:e.arguments[2],a=[];if(o&&!D(o)&&14===o.type){const e=lc(o);o=e[0],a=e[1],i=a[a.length-1]}if(null==o||D(o))r=Ds([t]);else if(14===o.type){const e=o.arguments[0];D(e)||15!==e.type?o.callee===Es?r=Bs(n.helper(ds),[Ds([t]),o]):o.arguments.unshift(Ds([t])):e.properties.unshift(t),!r&&(r=o)}else if(15===o.type){let e=!1;if(4===t.key.type){const n=t.key.content;e=o.properties.some((e=>4===e.key.type&&e.key.content===n))}e||o.properties.unshift(t),r=o}else r=Bs(n.helper(ds),[Ds([t]),o]),i&&i.callee===ms&&(i=a[a.length-2]);13===e.type?i?i.arguments[0]=r:e.props=r:i?i.arguments[0]=r:e.arguments[2]=r}function hc(e,t){return`_${t}_${e.replace(/[^\w]/g,"_")}`}function dc(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(ac(r,e.isComponent)),t(Ka),t(sc(r,e.isComponent)))}const fc=/&(gt|lt|amp|apos|quot);/g,pc={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},gc={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:A,isPreTag:A,isCustomElement:A,decodeEntities:e=>e.replace(fc,((e,t)=>pc[t])),onError:Ha,onWarn:Ga,comments:!1};function mc(e,t,n){const r=Oc(n),i=r?r.ns:0,o=[];for(;!Mc(e,t,n);){const a=e.source;let s;if(0===t||1===t)if(!e.inVPre&&kc(a,e.options.delimiters[0]))s=_c(e,t);else if(0===t&&"<"===a[0])if(1===a.length);else if("!"===a[1])s=kc(a,"\x3c!--")?yc(e):kc(a,"<!DOCTYPE")?bc(e):kc(a,"<![CDATA[")&&0!==i?vc(e,n):bc(e);else if("/"===a[1])if(2===a.length);else{if(">"===a[2]){Lc(e,3);continue}if(/[a-z]/i.test(a[2])){Cc(e,1,r);continue}s=bc(e)}else/[a-z]/i.test(a[1])?s=Ac(e,n):"?"===a[1]&&(s=bc(e));if(s||(s=xc(e,t)),I(s))for(let e=0;e<s.length;e++)Ec(o,s[e]);else Ec(o,s)}let a=!1;if(2!==t&&1!==t){const t="preserve"!==e.options.whitespace;for(let n=0;n<o.length;n++){const r=o[n];if(e.inPre||2!==r.type)3!==r.type||e.options.comments||(a=!0,o[n]=null);else if(/[^\t\r\n\f ]/.test(r.content))t&&(r.content=r.content.replace(/[\t\r\n\f ]+/g," "));else{const e=o[n-1],i=o[n+1];!e||!i||t&&(3===e.type||3===i.type||1===e.type&&1===i.type&&/[\r\n]/.test(r.content))?(a=!0,o[n]=null):r.content=" "}}if(e.inPre&&r&&e.options.isPreTag(r.tag)){const e=o[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}}return a?o.filter(Boolean):o}function Ec(e,t){if(2===t.type){const n=Oc(e);if(n&&2===n.type&&n.loc.end.offset===t.loc.start.offset)return n.content+=t.content,n.loc.end=t.loc.end,void(n.loc.source+=t.loc.source)}e.push(t)}function vc(e,t){Lc(e,9);const n=mc(e,3,t);return 0===e.source.length||Lc(e,3),n}function yc(e){const t=Ic(e);let n;const r=/--(\!)?>/.exec(e.source);if(r){n=e.source.slice(4,r.index);const t=e.source.slice(0,r.index);let i=1,o=0;for(;-1!==(o=t.indexOf("\x3c!--",i));)Lc(e,o-i+1),i=o+1;Lc(e,r.index+r[0].length-i+1)}else n=e.source.slice(4),Lc(e,e.source.length);return{type:3,content:n,loc:Nc(e,t)}}function bc(e){const t=Ic(e),n="?"===e.source[1]?1:2;let r;const i=e.source.indexOf(">");return-1===i?(r=e.source.slice(n),Lc(e,e.source.length)):(r=e.source.slice(n,i),Lc(e,i+1)),{type:3,content:r,loc:Nc(e,t)}}function Ac(e,t){const n=e.inPre,r=e.inVPre,i=Oc(t),o=Cc(e,0,i),a=e.inPre&&!n,s=e.inVPre&&!r;if(o.isSelfClosing||e.options.isVoidTag(o.tag))return a&&(e.inPre=!1),s&&(e.inVPre=!1),o;t.push(o);const c=e.options.getTextMode(o,i),l=mc(e,c,t);if(t.pop(),o.children=l,Pc(e.source,o.tag))Cc(e,1,i);else if(0===e.source.length&&"script"===o.tag.toLowerCase()){const e=l[0];e&&kc(e.loc.source,"\x3c!--")}return o.loc=Nc(e,o.loc.start),a&&(e.inPre=!1),s&&(e.inVPre=!1),o}const Tc=e("if,else,else-if,for,slot");function Cc(e,t,n){const r=Ic(e),i=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),o=i[1],a=e.options.getNamespace(o,n);Lc(e,i[0].length),Dc(e);const s=Ic(e),c=e.source;e.options.isPreTag(o)&&(e.inPre=!0);let l=Rc(e,t);0===t&&!e.inVPre&&l.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,S(e,s),e.source=c,l=Rc(e,t).filter((e=>"v-pre"!==e.name)));let u=!1;if(0===e.source.length||(u=kc(e.source,"/>"),Lc(e,u?2:1)),1===t)return;let h=0;return e.inVPre||("slot"===o?h=2:"template"===o?l.some((e=>7===e.type&&Tc(e.name)))&&(h=3):function(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if("component"===e||/^[A-Z]/.test(e)||Ws(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let e=0;e<t.length;e++){const n=t[e];if(6===n.type){if("is"===n.name&&n.value&&n.value.content.startsWith("vue:"))return!0}else{if("is"===n.name)return!0;"bind"===n.name&&tc(n.arg,"is")}}}(o,l,e)&&(h=1)),{type:1,ns:a,tag:o,tagType:h,props:l,isSelfClosing:u,children:[],loc:Nc(e,r),codegenNode:void 0}}function Rc(e,t){const n=[],r=new Set;for(;e.source.length>0&&!kc(e.source,">")&&!kc(e.source,"/>");){if(kc(e.source,"/")){Lc(e,1),Dc(e);continue}const i=Sc(e,r);0===t&&n.push(i),/^[^\t\r\n\f />]/.test(e.source),Dc(e)}return n}function Sc(e,t){const n=Ic(e),r=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(r),t.add(r);{const e=/["'<]/g;let t;for(;t=e.exec(r););}let i;Lc(e,r.length),/^[\t\r\n\f ]*=/.test(e.source)&&(Dc(e),Lc(e,1),Dc(e),i=function(e){const t=Ic(e);let n;const r=e.source[0],i='"'===r||"'"===r;if(i){Lc(e,1);const t=e.source.indexOf(r);-1===t?n=wc(e,e.source.length,4):(n=wc(e,t,4),Lc(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const r=/["'<=`]/g;let i;for(;i=r.exec(t[0]););n=wc(e,t[0].length,4)}return{content:n,isQuoted:i,loc:Nc(e,t)}}(e));const o=Nc(e,n);if(!e.inVPre&&/^(v-|:|\.|@|#)/.test(r)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(r);let a,s=kc(r,"."),c=t[1]||(s||kc(r,":")?"bind":kc(r,"@")?"on":"slot");if(t[2]){const i="slot"===c,o=r.lastIndexOf(t[2]),s=Nc(e,Fc(e,n,o),Fc(e,n,o+t[2].length+(i&&t[3]||"").length));let l=t[2],u=!0;l.startsWith("[")?(u=!1,l.endsWith("]"),l=l.substr(1,l.length-2)):i&&(l+=t[3]||""),a={type:4,content:l,isStatic:u,constType:u?3:0,loc:s}}if(i&&i.isQuoted){const e=i.loc;e.start.offset++,e.start.column++,e.end=Js(e.start,i.content),e.source=e.source.slice(1,-1)}const l=t[3]?t[3].substr(1).split("."):[];return s&&l.push("prop"),{type:7,name:c,exp:i&&{type:4,content:i.content,isStatic:!1,constType:0,loc:i.loc},arg:a,modifiers:l,loc:o}}return{type:6,name:r,value:i&&{type:2,content:i.content,loc:i.loc},loc:o}}function _c(e,t){const[n,r]=e.options.delimiters,i=e.source.indexOf(r,n.length);if(-1===i)return;const o=Ic(e);Lc(e,n.length);const a=Ic(e),s=Ic(e),c=i-n.length,l=e.source.slice(0,c),u=wc(e,c,t),h=u.trim(),d=u.indexOf(h);return d>0&&Zs(a,l,d),Zs(s,l,c-(u.length-h.length-d)),Lc(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:h,loc:Nc(e,a,s)},loc:Nc(e,o)}}function xc(e,t){const n=["<",e.options.delimiters[0]];3===t&&n.push("]]>");let r=e.source.length;for(let t=0;t<n.length;t++){const i=e.source.indexOf(n[t],1);-1!==i&&r>i&&(r=i)}const i=Ic(e);return{type:2,content:wc(e,r,t),loc:Nc(e,i)}}function wc(e,t,n){const r=e.source.slice(0,t);return Lc(e,t),2===n||3===n||-1===r.indexOf("&")?r:e.options.decodeEntities(r,4===n)}function Ic(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function Nc(e,t,n){return{start:t,end:n=n||Ic(e),source:e.originalSource.slice(t.offset,n.offset)}}function Oc(e){return e[e.length-1]}function kc(e,t){return e.startsWith(t)}function Lc(e,t){const{source:n}=e;Zs(e,n,t),e.source=n.slice(t)}function Dc(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&Lc(e,t[0].length)}function Fc(e,t,n){return Js(t,e.originalSource.slice(t.offset,n),n)}function Mc(e,t,n){const r=e.source;switch(t){case 0:if(kc(r,"</"))for(let e=n.length-1;e>=0;--e)if(Pc(r,n[e].tag))return!0;break;case 1:case 2:{const e=Oc(n);if(e&&Pc(r,e.tag))return!0;break}case 3:if(kc(r,"]]>"))return!0}return!r}function Pc(e,t){return kc(e,"</")&&e.substr(2,t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function Bc(e,t){$c(e,t,Uc(e,e.children[0]))}function Uc(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!oc(t)}function $c(e,t,n=!1){let r=!0;const{children:i}=e,o=i.length;let a=0;for(let e=0;e<i.length;e++){const o=i[e];if(1===o.type&&0===o.tagType){const e=n?0:Hc(o,t);if(e>0){if(e<3&&(r=!1),e>=2){o.codegenNode.patchFlag="-1",o.codegenNode=t.hoist(o.codegenNode),a++;continue}}else{const e=o.codegenNode;if(13===e.type){const n=qc(e);if((!n||512===n||1===n)&&Vc(o,t)>=2){const n=jc(o);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}else if(12===o.type){const e=Hc(o.content,t);e>0&&(e<3&&(r=!1),e>=2&&(o.codegenNode=t.hoist(o.codegenNode),a++))}if(1===o.type){const e=1===o.tagType;e&&t.scopes.vSlot++,$c(o,t),e&&t.scopes.vSlot--}else if(11===o.type)$c(o,t,1===o.children.length);else if(9===o.type)for(let e=0;e<o.branches.length;e++)$c(o.branches[e],t,1===o.branches[e].children.length)}r&&a&&t.transformHoist&&t.transformHoist(i,t,e),a&&a===o&&1===e.type&&0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&I(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(Ls(e.codegenNode.children)))}function Hc(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const r=n.get(e);if(void 0!==r)return r;const i=e.codegenNode;if(13!==i.type)return 0;if(qc(i))return n.set(e,0),0;{let r=3;const o=Vc(e,t);if(0===o)return n.set(e,0),0;o<r&&(r=o);for(let i=0;i<e.children.length;i++){const o=Hc(e.children[i],t);if(0===o)return n.set(e,0),0;o<r&&(r=o)}if(r>1)for(let i=0;i<e.props.length;i++){const o=e.props[i];if(7===o.type&&"bind"===o.name&&o.exp){const i=Hc(o.exp,t);if(0===i)return n.set(e,0),0;i<r&&(r=i)}}return i.isBlock&&(t.removeHelper(Ka),t.removeHelper(sc(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(ac(t.inSSR,i.isComponent))),n.set(e,r),r}case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return Hc(e.content,t);case 4:return e.constType;case 8:let o=3;for(let n=0;n<e.children.length;n++){const r=e.children[n];if(D(r)||F(r))continue;const i=Hc(r,t);if(0===i)return 0;i<o&&(o=i)}return o}}const Gc=new Set([fs,ps,gs,ms]);function Wc(e,t){if(14===e.type&&!D(e.callee)&&Gc.has(e.callee)){const n=e.arguments[0];if(4===n.type)return Hc(n,t);if(14===n.type)return Wc(n,t)}return 0}function Vc(e,t){let n=3;const r=jc(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:i,value:o}=e[r],a=Hc(i,t);if(0===a)return a;if(a<n&&(n=a),4!==o.type)return 14===o.type?Wc(o,t):0;const s=Hc(o,t);if(0===s)return s;s<n&&(n=s)}}return n}function jc(e){const t=e.codegenNode;if(13===t.type)return t.props}function qc(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function zc(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){const o=n[i](e,t);if(o&&(I(o)?r.push(...o):r.push(o)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(es);break;case 5:t.ssr||t.helper(hs);break;case 9:for(let n=0;n<e.branches.length;n++)zc(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];D(i)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=r,zc(i,t))}}(e,t)}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function Yc(e,t){const n=D(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:i}=e;if(3===e.tagType&&i.some(rc))return;const o=[];for(let a=0;a<i.length;a++){const s=i[a];if(7===s.type&&n(s.name)){i.splice(a,1),a--;const n=t(e,s,r);n&&o.push(n)}}return o}}}function Kc(e,t,{helper:n,push:r,newline:i,isTS:o}){const a=n("component"===t?rs:os);for(let n=0;n<e.length;n++){let s=e[n];const c=s.endsWith("__self");c&&(s=s.slice(0,-6)),r(`const ${hc(s,t)} = ${a}(${JSON.stringify(s)}${c?", true":""})${o?"!":""}`),n<e.length-1&&i()}}function Xc(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Jc(e,t,n),n&&t.deindent(),t.push("]")}function Jc(e,t,n=!1,r=!0){const{push:i,newline:o}=t;for(let a=0;a<e.length;a++){const s=e[a];D(s)?i(s):I(s)?Xc(s,t):Zc(s,t),a<e.length-1&&(n?(r&&i(","),o()):r&&i(", "))}}function Zc(e,t){if(D(e))t.push(e);else if(F(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:Zc(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),e)}(e,t);break;case 4:Qc(e,t);break;case 5:!function(e,t){const{push:n,helper:r,pure:i}=t;i&&n("/*#__PURE__*/"),n(`${r(hs)}(`),Zc(e.content,t),n(")")}(e,t);break;case 8:el(e,t);break;case 3:!function(e,t){const{push:n,helper:r,pure:i}=t;i&&n("/*#__PURE__*/"),n(`${r(es)}(${JSON.stringify(e.content)})`,e)}(e,t);break;case 13:!function(e,t){const{push:n,helper:r,pure:i}=t,{tag:o,props:a,children:s,patchFlag:c,dynamicProps:l,directives:u,isBlock:h,disableTracking:d,isComponent:f}=e;u&&n(r(ss)+"("),h&&n(`(${r(Ka)}(${d?"true":""}), `),i&&n("/*#__PURE__*/"),n(r(h?sc(t.inSSR,f):ac(t.inSSR,f))+"(",e),Jc(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map((e=>e||"null"))}([o,a,s,c,l]),t),n(")"),h&&n(")"),u&&(n(", "),Zc(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:r,pure:i}=t,o=D(e.callee)?e.callee:r(e.callee);i&&n("/*#__PURE__*/"),n(o+"(",e),Jc(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:i,newline:o}=t,{properties:a}=e;if(!a.length)return void n("{}",e);const s=a.length>1||!1;n(s?"{":"{ "),s&&r();for(let e=0;e<a.length;e++){const{key:r,value:i}=a[e];tl(r,t),n(": "),Zc(i,t),e<a.length-1&&(n(","),o())}s&&i(),n(s?"}":" }")}(e,t);break;case 17:!function(e,t){Xc(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:r,deindent:i}=t,{params:o,returns:a,body:s,newline:c,isSlot:l}=e;l&&n(`_${Ns[Ss]}(`),n("(",e),I(o)?Jc(o,t):o&&Zc(o,t),n(") => "),(c||s)&&(n("{"),r()),a?(c&&n("return "),I(a)?Xc(a,t):Zc(a,t)):s&&Zc(s,t),(c||s)&&(i(),n("}")),l&&n(")")}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:i,newline:o}=e,{push:a,indent:s,deindent:c,newline:l}=t;if(4===n.type){const e=!js(n.content);e&&a("("),Qc(n,t),e&&a(")")}else a("("),Zc(n,t),a(")");o&&s(),t.indentLevel++,o||a(" "),a("? "),Zc(r,t),t.indentLevel--,o&&l(),o||a(" "),a(": ");const u=19===i.type;u||t.indentLevel++,Zc(i,t),u||t.indentLevel--,o&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:i,deindent:o,newline:a}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(i(),n(`${r(As)}(-1),`),a()),n(`_cache[${e.index}] = `),Zc(e.value,t),e.isVNode&&(n(","),a(),n(`${r(As)}(1),`),a(),n(`_cache[${e.index}]`),o()),n(")")}(e,t);break;case 21:Jc(e.body,t,!0,!1)}}function Qc(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function el(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];D(r)?t.push(r):Zc(r,t)}}function tl(e,t){const{push:n}=t;8===e.type?(n("["),el(e,t),n("]")):e.isStatic?n(js(e.content)?e.content:JSON.stringify(e.content),e):n(`[${e.content}]`,e)}const nl=Yc(/^(if|else|else-if)$/,((e,t,n)=>function(e,t,n,r){if("else"===t.name||t.exp&&t.exp.content.trim()||(t.exp=Ms("true",!1,t.exp?t.exp.loc:e.loc)),"if"===t.name){const i=rl(e,t),o={type:9,loc:e.loc,branches:[i]};if(n.replaceNode(o),r)return r(o,i,!0)}else{const i=n.parent.children;let o=i.indexOf(e);for(;o-- >=-1;){const a=i[o];if(!a||2!==a.type||a.content.trim().length){if(a&&9===a.type){n.removeNode();const i=rl(e,t);a.branches.push(i);const o=r&&r(a,i,!1);zc(i,n),o&&o(),n.currentNode=null}break}n.removeNode(a)}}}(e,t,n,((e,t,r)=>{const i=n.parent.children;let o=i.indexOf(e),a=0;for(;o-- >=0;){const e=i[o];e&&9===e.type&&(a+=e.branches.length)}return()=>{r?e.codegenNode=il(t,a,n):(function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode)).alternate=il(t,a+e.branches.length-1,n)}}))));function rl(e,t){return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:3!==e.tagType||Qs(e,"for")?[e]:e.children,userKey:ec(e,"key")}}function il(e,t,n){return e.condition?$s(e.condition,ol(e,t,n),Bs(n.helper(es),['""',"true"])):ol(e,t,n)}function ol(e,t,n){const{helper:r}=n,i=Fs("key",Ms(`${t}`,!1,Os,2)),{children:o}=e,a=o[0];if(1!==o.length||1!==a.type){if(1===o.length&&11===a.type){const e=a.codegenNode;return uc(e,i,n),e}{let t=64;return ks(n,r(Va),Ds([i]),o,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=a.codegenNode,t=14===(s=e).type&&s.callee===ws?s.arguments[1].returns:s;return 13===t.type&&dc(t,n),uc(t,i,n),e}var s}const al=Yc("for",((e,t,n)=>{const{helper:r,removeHelper:i}=n;return function(e,t,n,r){if(!t.exp)return;const i=ul(t.exp);if(!i)return;const{scopes:o}=n,{source:a,value:s,key:c,index:l}=i,u={type:11,loc:t.loc,source:a,valueAlias:s,keyAlias:c,objectIndexAlias:l,parseResult:i,children:ic(e)?e.children:[e]};n.replaceNode(u),o.vFor++;const h=r&&r(u);return()=>{o.vFor--,h&&h()}}(e,t,n,(t=>{const o=Bs(r(cs),[t.source]),a=Qs(e,"memo"),s=ec(e,"key"),c=s&&(6===s.type?Ms(s.value.content,!0):s.exp),l=s?Fs("key",c):null,u=4===t.source.type&&t.source.constType>0,h=u?64:s?128:256;return t.codegenNode=ks(n,r(Va),void 0,o,h+"",void 0,void 0,!0,!u,!1,e.loc),()=>{let s;const h=ic(e),{children:d}=t,f=1!==d.length||1!==d[0].type,p=oc(e)?e:h&&1===e.children.length&&oc(e.children[0])?e.children[0]:null;if(p?(s=p.codegenNode,h&&l&&uc(s,l,n)):f?s=ks(n,r(Va),l?Ds([l]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(s=d[0].codegenNode,h&&l&&uc(s,l,n),s.isBlock!==!u&&(s.isBlock?(i(Ka),i(sc(n.inSSR,s.isComponent))):i(ac(n.inSSR,s.isComponent))),s.isBlock=!u,s.isBlock?(r(Ka),r(sc(n.inSSR,s.isComponent))):r(ac(n.inSSR,s.isComponent))),a){const e=Us(dl(t.parseResult,[Ms("_cached")]));e.body={type:21,body:[Ps(["const _memo = (",a.exp,")"]),Ps(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(Is)}(_cached, _memo)) return _cached`]),Ps(["const _item = ",s]),Ms("_item.memo = _memo"),Ms("return _item")],loc:Os},o.arguments.push(e,Ms("_cache"),Ms(String(n.cached++)))}else o.arguments.push(Us(dl(t.parseResult),s,!0))}}))})),sl=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,cl=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,ll=/^\(|\)$/g;function ul(e,t){const n=e.loc,r=e.content,i=r.match(sl);if(!i)return;const[,o,a]=i,s={source:hl(n,a.trim(),r.indexOf(a,o.length)),value:void 0,key:void 0,index:void 0};let c=o.trim().replace(ll,"").trim();const l=o.indexOf(c),u=c.match(cl);if(u){c=c.replace(cl,"").trim();const e=u[1].trim();let t;if(e&&(t=r.indexOf(e,l+c.length),s.key=hl(n,e,t)),u[2]){const i=u[2].trim();i&&(s.index=hl(n,i,r.indexOf(i,s.key?t+e.length:l+c.length)))}}return c&&(s.value=hl(n,c,l)),s}function hl(e,t,n){return Ms(t,!1,Xs(e,n,t.length))}function dl({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Ms("_".repeat(t+1),!1)))}([e,t,n,...r])}const fl=Ms("undefined",!1),pl=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)&&Qs(e,"slot"))return t.scopes.vSlot++,()=>{t.scopes.vSlot--}},gl=(e,t,n)=>Us(e,t,!1,!0,t.length?t[0].loc:n);function ml(e,t,n=gl){t.helper(Ss);const{children:r,loc:i}=e,o=[],a=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const c=Qs(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!Hs(e)&&(s=!0),o.push(Fs(e||Ms("default",!0),n(t,r,i)))}let l=!1,u=!1;const h=[],d=new Set;for(let e=0;e<r.length;e++){const i=r[e];let f;if(!ic(i)||!(f=Qs(i,"slot",!0))){3!==i.type&&h.push(i);continue}if(c)break;l=!0;const{children:p,loc:g}=i,{arg:m=Ms("default",!0),exp:E}=f;let v;Hs(m)?v=m?m.content:"default":s=!0;const y=n(E,p,g);let b,A,T;if(b=Qs(i,"if"))s=!0,a.push($s(b.exp,El(m,y),fl));else if(A=Qs(i,/^else(-if)?$/,!0)){let t,n=e;for(;n--&&(t=r[n],3===t.type););if(t&&ic(t)&&Qs(t,"if")){r.splice(e,1),e--;let t=a[a.length-1];for(;19===t.alternate.type;)t=t.alternate;t.alternate=A.exp?$s(A.exp,El(m,y),fl):El(m,y)}}else if(T=Qs(i,"for")){s=!0;const e=T.parseResult||ul(T.exp);e&&a.push(Bs(t.helper(cs),[e.source,Us(dl(e),El(m,y),!0)]))}else{if(v){if(d.has(v))continue;d.add(v),"default"===v&&(u=!0)}o.push(Fs(m,y))}}if(!c){const e=(e,t)=>Fs("default",n(e,t,i));l?h.length&&h.some((e=>yl(e)))&&(u||o.push(e(void 0,h))):o.push(e(void 0,r))}const f=s?2:vl(e.children)?3:1;let p=Ds(o.concat(Fs("_",Ms(f+"",!1))),i);return a.length&&(p=Bs(t.helper(us),[p,Ls(a)])),{slots:p,hasDynamicSlots:s}}function El(e,t){return Ds([Fs("name",e),Fs("fn",t)])}function vl(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||vl(n.children))return!0;break;case 9:if(vl(n.branches))return!0;break;case 10:case 11:if(vl(n.children))return!0}}return!1}function yl(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():yl(e.content))}const bl=new WeakMap,Al=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,i=1===e.tagType;let o,a,s,c,l,u,h=i?function(e,t,n=!1){let{tag:r}=e;const i=Sl(r),o=ec(e,"is");if(o)if(i){const e=6===o.type?o.value&&Ms(o.value.content,!0):o.exp;if(e)return Bs(t.helper(is),[e])}else 6===o.type&&o.value.content.startsWith("vue:")&&(r=o.value.content.slice(4));const a=!i&&Qs(e,"is");if(a&&a.exp)return Bs(t.helper(is),[a.exp]);const s=Ws(r)||t.isBuiltInComponent(r);return s?(n||t.helper(s),s):(t.helper(rs),t.components.add(r),hc(r,"component"))}(e,t):`"${n}"`,d=0,f=M(h)&&h.callee===is||h===ja||h===qa||!i&&("svg"===n||"foreignObject"===n||ec(e,"key",!0));if(r.length>0){const n=Tl(e,t);o=n.props,d=n.patchFlag,l=n.dynamicPropNames;const r=n.directives;u=r&&r.length?Ls(r.map((e=>function(e,t){const n=[],r=bl.get(e);r?n.push(t.helperString(r)):(t.helper(os),t.directives.add(e.name),n.push(hc(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Ms("true",!1,i);n.push(Ds(e.modifiers.map((e=>Fs(e,t))),i))}return Ls(n,e.loc)}(e,t)))):void 0}if(e.children.length>0)if(h===za&&(f=!0,d|=1024),i&&h!==ja&&h!==za){const{slots:n,hasDynamicSlots:r}=ml(e,t);a=n,r&&(d|=1024)}else if(1===e.children.length&&h!==ja){const n=e.children[0],r=n.type,i=5===r||8===r;i&&0===Hc(n,t)&&(d|=1),a=i||2===r?n:e.children}else a=e.children;0!==d&&(s=String(d),l&&l.length&&(c=function(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}(l))),e.codegenNode=ks(t,h,o,a,s,c,u,!!f,!1,i,e.loc)};function Tl(e,t,n=e.props,r=!1){const{tag:i,loc:o}=e,a=1===e.tagType;let s=[];const c=[],l=[];let u=0,h=!1,d=!1,f=!1,p=!1,g=!1,m=!1;const E=[],v=({key:e,value:n})=>{if(Hs(e)){const r=e.content,i=C(r);if(a||!i||"onclick"===r.toLowerCase()||"onUpdate:modelValue"===r||W(r)||(p=!0),i&&W(r)&&(m=!0),20===n.type||(4===n.type||8===n.type)&&Hc(n,t)>0)return;"ref"===r?h=!0:"class"===r?d=!0:"style"===r?f=!0:"key"===r||E.includes(r)||E.push(r),!a||"class"!==r&&"style"!==r||E.includes(r)||E.push(r)}else g=!0};for(let a=0;a<n.length;a++){const u=n[a];if(6===u.type){const{loc:e,name:t,value:n}=u;let r=!0;if("ref"===t&&(h=!0),"is"===t&&(Sl(i)||n&&n.content.startsWith("vue:")))continue;s.push(Fs(Ms(t,!0,Xs(e,0,t.length)),Ms(n?n.content:"",r,n?n.loc:e)))}else{const{name:n,arg:a,exp:h,loc:d}=u,f="bind"===n,p="on"===n;if("slot"===n)continue;if("once"===n||"memo"===n)continue;if("is"===n||f&&tc(a,"is")&&Sl(i))continue;if(p&&r)continue;if(!a&&(f||p)){g=!0,h&&(s.length&&(c.push(Ds(Cl(s),o)),s=[]),c.push(f?h:{type:14,loc:d,callee:t.helper(Es),arguments:[h]}));continue}const m=t.directiveTransforms[n];if(m){const{props:n,needRuntime:i}=m(u,e,t);!r&&n.forEach(v),s.push(...n),i&&(l.push(u),F(i)&&bl.set(u,i))}else l.push(u)}}let y;if(c.length?(s.length&&c.push(Ds(Cl(s),o)),y=c.length>1?Bs(t.helper(ds),c,o):c[0]):s.length&&(y=Ds(Cl(s),o)),g?u|=16:(d&&!a&&(u|=2),f&&!a&&(u|=4),E.length&&(u|=8),p&&(u|=32)),0!==u&&32!==u||!(h||m||l.length>0)||(u|=512),!t.inSSR&&y)switch(y.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<y.properties.length;t++){const i=y.properties[t].key;Hs(i)?"class"===i.content?e=t:"style"===i.content&&(n=t):i.isHandlerKey||(r=!0)}const i=y.properties[e],o=y.properties[n];r?y=Bs(t.helper(gs),[y]):(i&&!Hs(i.value)&&(i.value=Bs(t.helper(fs),[i.value])),o&&!Hs(o.value)&&f&&(o.value=Bs(t.helper(ps),[o.value])));break;case 14:break;default:y=Bs(t.helper(gs),[Bs(t.helper(ms),[y])])}return{props:y,directives:l,patchFlag:u,dynamicPropNames:E}}function Cl(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(8===i.key.type||!i.key.isStatic){n.push(i);continue}const o=i.key.content,a=t.get(o);a?("style"===o||"class"===o||o.startsWith("on"))&&Rl(a,i):(t.set(o,i),n.push(i))}return n}function Rl(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=Ls([e.value,t.value],e.loc)}function Sl(e){return e[0].toLowerCase()+e.slice(1)==="component"}const _l=(e,t)=>{if(oc(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:o}=function(e,t){let n,r='"default"';const i=[];for(let t=0;t<e.props.length;t++){const n=e.props[t];6===n.type?n.value&&("name"===n.name?r=JSON.stringify(n.value.content):(n.name=q(n.name),i.push(n))):"bind"===n.name&&tc(n.arg,"name")?n.exp&&(r=n.exp):("bind"===n.name&&n.arg&&Hs(n.arg)&&(n.arg.content=q(n.arg.content)),i.push(n))}if(i.length>0){const{props:r,directives:o}=Tl(e,t,i);n=r}return{slotName:r,slotProps:n}}(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i];o&&a.push(o),n.length&&(o||a.push("{}"),a.push(Us([],n,!1,!1,r))),t.scopeId&&!t.slotted&&(o||a.push("{}"),n.length||a.push("undefined"),a.push("true")),e.codegenNode=Bs(t.helper(ls),a,r)}},xl=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^\s*function(?:\s+[\w$]+)?\s*\(/,wl=(e,t,n,r)=>{const{loc:i,modifiers:o,arg:a}=e;let s;4===a.type?s=a.isStatic?Ms(X(q(a.content)),!0,a.loc):Ps([`${n.helperString(bs)}(`,a,")"]):(s=a,s.children.unshift(`${n.helperString(bs)}(`),s.children.push(")"));let c=e.exp;c&&!c.content.trim()&&(c=void 0);let l=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const e=Ks(c.content),t=!(e||xl.test(c.content)),n=c.content.includes(";");(t||l&&e)&&(c=Ps([`${t?"$event":"(...args)"} => ${n?"{":"("}`,c,n?"}":")"]))}let u={props:[Fs(s,c||Ms("() => {}",!1,i))]};return r&&(u=r(u)),l&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Il=(e,t,n)=>{const{exp:r,modifiers:i,loc:o}=e,a=e.arg;return 4!==a.type?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=`${a.content} || ""`),i.includes("camel")&&(4===a.type?a.content=a.isStatic?q(a.content):`${n.helperString(vs)}(${a.content})`:(a.children.unshift(`${n.helperString(vs)}(`),a.children.push(")"))),n.inSSR||(i.includes("prop")&&Nl(a,"."),i.includes("attr")&&Nl(a,"^")),!r||4===r.type&&!r.content.trim()?{props:[Fs(a,Ms("",!0,o))]}:{props:[Fs(a,r)]}},Nl=(e,t)=>{4===e.type?e.content=e.isStatic?t+e.content:`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Ol=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,i=!1;for(let e=0;e<n.length;e++){const t=n[e];if(nc(t)){i=!0;for(let i=e+1;i<n.length;i++){const o=n[i];if(!nc(o)){r=void 0;break}r||(r=n[e]={type:8,loc:t.loc,children:[t]}),r.children.push(" + ",o),n.splice(i,1),i--}}}if(i&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find((e=>7===e.type&&!t.directiveTransforms[e.name])))))for(let e=0;e<n.length;e++){const r=n[e];if(nc(r)||8===r.type){const i=[];2===r.type&&" "===r.content||i.push(r),t.ssr||0!==Hc(r,t)||i.push("1"),n[e]={type:12,content:r,loc:r.loc,codegenNode:Bs(t.helper(ts),i)}}}}},kl=new WeakSet,Ll=(e,t)=>{if(1===e.type&&Qs(e,"once",!0)){if(kl.has(e)||t.inVOnce)return;return kl.add(e),t.inVOnce=!0,t.helper(As),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Dl=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return Fl();const o=r.loc.source,a=4===r.type?r.content:o;if(!a.trim()||!Ks(a))return Fl();const s=i||Ms("modelValue",!0),c=i?Hs(i)?`onUpdate:${i.content}`:Ps(['"onUpdate:" + ',i]):"onUpdate:modelValue";let l;l=Ps([(n.isTS?"($event: any)":"$event")+" => (",r," = $event)"]);const u=[Fs(s,e.exp),Fs(c,l)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(js(e)?e:JSON.stringify(e))+": true")).join(", "),n=i?Hs(i)?`${i.content}Modifiers`:Ps([i,' + "Modifiers"']):"modelModifiers";u.push(Fs(n,Ms(`{ ${t} }`,!1,e.loc,2)))}return Fl(u)};function Fl(e=[]){return{props:e}}const Ml=new WeakSet,Pl=(e,t)=>{if(1===e.type){const n=Qs(e,"memo");if(!n||Ml.has(e))return;return Ml.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&dc(r,t),e.codegenNode=Bs(t.helper(ws),[n.exp,Us(void 0,r),"_cache",String(t.cached++)]))}}};function Bl(e,t={}){const n=t.onError||Ha,r="module"===t.mode;!0===t.prefixIdentifiers?n(Wa(45)):r&&n(Wa(46)),t.cacheHandlers&&n(Wa(47)),t.scopeId&&!r&&n(Wa(48));const i=D(e)?function(e,t={}){const n=function(e,t){const n=S({},gc);let r;for(r in t)n[r]=void 0===t[r]?gc[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}(e,t),r=Ic(n);return function(e,t=Os){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}(mc(n,0,[]),Nc(n,r))}(e,t):e,[o,a]=[[Ll,nl,Pl,al,_l,Al,pl,Ol],{on:wl,bind:Il,model:Dl}];return function(e,t){const n=function(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:i=!1,nodeTransforms:o=[],directiveTransforms:a={},transformHoist:s=null,isBuiltInComponent:c=b,isCustomElement:l=b,expressionPlugins:u=[],scopeId:h=null,slotted:d=!0,ssr:f=!1,inSSR:p=!1,ssrCssVars:g="",bindingMetadata:m=v,inline:E=!1,isTS:y=!1,onError:A=Ha,onWarn:T=Ga,compatConfig:C}){const R=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),S={selfName:R&&K(q(R[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:i,nodeTransforms:o,directiveTransforms:a,transformHoist:s,isBuiltInComponent:c,isCustomElement:l,expressionPlugins:u,scopeId:h,slotted:d,ssr:f,inSSR:p,ssrCssVars:g,bindingMetadata:m,inline:E,isTS:y,onError:A,onWarn:T,compatConfig:C,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=S.helpers.get(e)||0;return S.helpers.set(e,t+1),e},removeHelper(e){const t=S.helpers.get(e);if(t){const n=t-1;n?S.helpers.set(e,n):S.helpers.delete(e)}},helperString:e=>`_${Ns[S.helper(e)]}`,replaceNode(e){S.parent.children[S.childIndex]=S.currentNode=e},removeNode(e){const t=e?S.parent.children.indexOf(e):S.currentNode?S.childIndex:-1;e&&e!==S.currentNode?S.childIndex>t&&(S.childIndex--,S.onNodeRemoved()):(S.currentNode=null,S.onNodeRemoved()),S.parent.children.splice(t,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){D(e)&&(e=Ms(e)),S.hoists.push(e);const t=Ms(`_hoisted_${S.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:Os}}(S.cached++,e,t)};return S}(e,t);zc(e,n),t.hoistStatic&&Bc(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=r[0];if(Uc(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&dc(r,t),e.codegenNode=r}else e.codegenNode=n}else if(r.length>1){let r=64;e.codegenNode=ks(t,n(Va),void 0,e.children,r+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=[...n.helpers.keys()],e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached}(i,S({},t,{prefixIdentifiers:!1,nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:S({},a,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:i="template.vue.html",scopeId:o=null,optimizeImports:a=!1,runtimeGlobalName:s="Vue",runtimeModuleName:c="vue",ssr:l=!1,isTS:u=!1,inSSR:h=!1}){const d={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:o,optimizeImports:a,runtimeGlobalName:s,runtimeModuleName:c,ssr:l,isTS:u,inSSR:h,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${Ns[e]}`,push(e,t){d.code+=e},indent(){f(++d.indentLevel)},deindent(e=!1){e?--d.indentLevel:f(--d.indentLevel)},newline(){f(d.indentLevel)}};function f(e){d.push("\n"+" ".repeat(e))}return d}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:o,indent:a,deindent:s,newline:c,ssr:l}=n,u=e.helpers.length>0,h=!o&&"module"!==r;if(function(e,t){const{push:n,newline:r,runtimeGlobalName:i}=t,o=i;e.helpers.length>0&&(n(`const _Vue = ${o}\n`),e.hoists.length)&&n(`const { ${[Za,Qa,es,ts,ns].filter((t=>e.helpers.includes(t))).map((e=>`${Ns[e]}: _${Ns[e]}`)).join(", ")} } = _Vue\n`),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r(),e.forEach(((e,i)=>{e&&(n(`const _hoisted_${i+1} = `),Zc(e,t),r())})),t.pure=!1}(e.hoists,t),r(),n("return ")}(e,n),i(`function ${l?"ssrRender":"render"}(${(l?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),a(),h&&(i("with (_ctx) {"),a(),u&&(i(`const { ${e.helpers.map((e=>`${Ns[e]}: _${Ns[e]}`)).join(", ")} } = _Vue`),i("\n"),c())),e.components.length&&(Kc(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(Kc(e.directives,"directive",n),e.temps>0&&c()),e.temps>0){i("let ");for(let t=0;t<e.temps;t++)i(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i("\n"),c()),l||i("return "),e.codegenNode?Zc(e.codegenNode,n):i("null"),h&&(s(),i("}")),s(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(i,S({},t,{prefixIdentifiers:!1}))}const Ul=Symbol(""),$l=Symbol(""),Hl=Symbol(""),Gl=Symbol(""),Wl=Symbol(""),Vl=Symbol(""),jl=Symbol(""),ql=Symbol(""),zl=Symbol(""),Yl=Symbol("");var Kl;let Xl;Kl={[Ul]:"vModelRadio",[$l]:"vModelCheckbox",[Hl]:"vModelText",[Gl]:"vModelSelect",[Wl]:"vModelDynamic",[Vl]:"withModifiers",[jl]:"withKeys",[ql]:"vShow",[zl]:"Transition",[Yl]:"TransitionGroup"},Object.getOwnPropertySymbols(Kl).forEach((e=>{Ns[e]=Kl[e]}));const Jl=e("style,iframe,script,noscript",!0),Zl={isVoidTag:f,isNativeTag:e=>h(e)||d(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return Xl||(Xl=document.createElement("div")),t?(Xl.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Xl.children[0].getAttribute("foo")):(Xl.innerHTML=e,Xl.textContent)},isBuiltInComponent:e=>Gs(e,"Transition")?zl:Gs(e,"TransitionGroup")?Yl:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(Jl(e))return 2}return 0}},Ql=(e,t)=>{const n=c(e);return Ms(JSON.stringify(n),!1,t,3)},eu=e("passive,once,capture"),tu=e("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),nu=e("left,right"),ru=e("onkeyup,onkeydown,onkeypress",!0),iu=(e,t)=>Hs(e)&&"onclick"===e.content.toLowerCase()?Ms(t,!0):4!==e.type?Ps(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,ou=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},au=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Ms("style",!0,t.loc),exp:Ql(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],su={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:r,loc:i}=e;return t.children.length&&(t.children.length=0),{props:[Fs(Ms("innerHTML",!0,i),r||Ms("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:i}=e;return t.children.length&&(t.children.length=0),{props:[Fs(Ms("textContent",!0),r?Bs(n.helperString(hs),[r],i):Ms("",!0))]}},model:(e,t,n)=>{const r=Dl(e,t,n);if(!r.props.length||1===t.tagType)return r;const{tag:i}=t,o=n.isCustomElement(i);if("input"===i||"textarea"===i||"select"===i||o){let e=Hl,a=!1;if("input"===i||o){const n=ec(t,"type");if(n){if(7===n.type)e=Wl;else if(n.value)switch(n.value.content){case"radio":e=Ul;break;case"checkbox":e=$l;break;case"file":a=!0}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(e=Wl)}else"select"===i&&(e=Gl);a||(r.needRuntime=n.helper(e))}return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},on:(e,t,n)=>wl(e,0,n,(t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:i,value:o}=t.props[0];const{keyModifiers:a,nonKeyModifiers:s,eventOptionModifiers:c}=((e,t,n,r)=>{const i=[],o=[],a=[];for(let n=0;n<t.length;n++){const r=t[n];eu(r)?a.push(r):nu(r)?Hs(e)?ru(e.content)?i.push(r):o.push(r):(i.push(r),o.push(r)):tu(r)?o.push(r):i.push(r)}return{keyModifiers:i,nonKeyModifiers:o,eventOptionModifiers:a}})(i,r);if(s.includes("right")&&(i=iu(i,"onContextmenu")),s.includes("middle")&&(i=iu(i,"onMouseup")),s.length&&(o=Bs(n.helper(Vl),[o,JSON.stringify(s)])),!a.length||Hs(i)&&!ru(i.content)||(o=Bs(n.helper(jl),[o,JSON.stringify(a)])),c.length){const e=c.map(K).join("");i=Hs(i)?Ms(`${i.content}${e}`,!0):Ps(["(",i,`) + "${e}"`])}return{props:[Fs(i,o)]}})),show:(e,t,n)=>({props:[],needRuntime:n.helper(ql)})},cu=Object.create(null);xi((function(e,t){if(!D(e)){if(!e.nodeType)return b;e=e.innerHTML}const n=e,r=cu[n];if(r)return r;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const{code:i}=function(e,t={}){return Bl(e,S({},Zl,t,{nodeTransforms:[ou,...au,...t.nodeTransforms||[]],directiveTransforms:S({},su,t.directiveTransforms||{}),transformHoist:null}))}(e,S({hoistStatic:!0,onError:void 0,onWarn:b},t)),o=new Function("Vue",i)($a);return o._rc=!0,cu[n]=o}));var lu=Qr("div",{id:"hueIconSprites"},[Qr("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",style:{display:"none"}},[Qr("defs",null,[Qr("symbol",{id:"hueChevronLeftSymbol",viewBox:"0 0 24 24"},[Qr("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})]),Qr("symbol",{id:"hueChevronLeftLimitSymbol",viewBox:"0 0 24 24"},[Qr("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})]),Qr("symbol",{id:"hueChevronRightSymbol",viewBox:"0 0 24 24"},[Qr("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})]),Qr("symbol",{id:"hueChevronRightLimitSymbol",viewBox:"0 0 24 24"},[Qr("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})]),Qr("symbol",{id:"hueColumnSymbol",viewBox:"0 0 24 24"},[ii(' "View Column" from Google Fonts, Apache 2.0 license '),Qr("path",{d:"M0 0h24v24H0V0z",fill:"none"}),Qr("path",{d:"M4 5v13h17V5H4zm10 2v9h-3V7h3zM6 7h3v9H6V7zm13 9h-3V7h3v9z"})]),Qr("symbol",{id:"hueConnectorSymbol",viewBox:"0 0 24 24"},[ii(' "Storage" from Google Fonts, Apache 2.0 license '),Qr("path",{d:"M0 0h24v24H0V0z",fill:"none"}),Qr("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"})]),Qr("symbol",{id:"hueDatabaseSymbol",viewBox:"0 0 24 24"},[Qr("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[Qr("g",{id:"system-icons/database",fill:"#000000"},[Qr("path",{id:"database",d:"M18.2129,9.4307 C15.2589,10.8937 8.7409,10.8937 5.7869,9.4307 L5.7869,6.3377 C7.4619,6.9907 9.7359,7.3067 11.9999,7.3067 C14.2639,7.3067 16.5379,6.9907 18.2129,6.3377 L18.2129,9.4307 Z M18.2129,14.3707 C15.2589,15.8337 8.7409,15.8337 5.7869,14.3707 L5.7869,11.0407 C7.4619,11.6837 9.7359,11.9997 11.9999,11.9997 C14.2639,11.9997 16.5379,11.6837 18.2129,11.0407 L18.2129,14.3707 Z M18.2129,18.9167 C18.2129,19.3227 16.1019,20.2807 11.9999,20.2807 C7.8989,20.2807 5.7869,19.3227 5.7869,18.9167 L5.7869,15.9827 C7.4619,16.6237 9.7359,16.9407 11.9999,16.9407 C14.2639,16.9407 16.5379,16.6237 18.2129,15.9827 L18.2129,18.9167 Z M11.9999,3.7197 C14.4439,3.7197 17.0759,4.0947 17.9999,4.8357 C15.0249,6.1697 8.9539,6.1697 5.9899,4.8267 C6.9239,4.0947 8.6399,3.7197 11.9999,3.7197 L11.9999,3.7197 Z M11.9999,1.9997 C10.6599,1.9997 3.9999,2.1487 3.9999,5.0827 L3.9999,18.9167 C3.9999,19.6977 4.4969,20.7547 6.8729,21.4167 C8.2339,21.7917 10.0609,21.9997 11.9999,21.9997 C13.3399,21.9997 19.9999,21.8517 19.9999,18.9167 L19.9999,5.0827 C19.9999,2.1487 13.3399,1.9997 11.9999,1.9997 L11.9999,1.9997 Z"})])])]),Qr("symbol",{id:"hueDropDownSymbol",viewBox:"0 0 24 24"},[Qr("polygon",{points:"6 9 12 15 18 9"})]),Qr("symbol",{id:"hueDropLeftSymbol",viewBox:"0 0 24 24"},[Qr("polygon",{points:"15 6 9 11.9988 15 18"})]),Qr("symbol",{id:"hueDropRightSymbol",viewBox:"0 0 24 24"},[Qr("polygon",{points:"9 6 9 18 15 11.9988"})]),Qr("symbol",{id:"hueDropUpSymbol",viewBox:"0 0 24 24"},[Qr("polygon",{points:"12.0001 9 6 15.0001 17.999 15.0001"})]),Qr("symbol",{id:"hueSpinnerLargeSymbol",viewBox:"0 0 64 64"},[Qr("path",{"stroke-width":"4",fill:"none",stroke:"currentColor","fill-rule":"evenodd",d:"M56,32 C56,45.256 45.256,56 32,56 C18.744,56 8,45.256 8,32 C8,18.744 18.744,8 32,8"})]),Qr("symbol",{id:"hueSpinnerSmallSymbol",viewBox:"0 0 24 24"},[Qr("path",{"stroke-width":"1",fill:"none",stroke:"currentColor","fill-rule":"evenodd",d:"M21,12 C21,16.971 16.971,21 12,21 C7.029,21 3,16.971 3,12 C3,7.029 7.029,3 12,3"})]),Qr("symbol",{id:"hueTableSymbol",viewBox:"0 0 16 16"},[Qr("g",{transform:"scale(0.875) translate(1,1)"},[Qr("path",{d:"M18.349 2H5.634C4.728 2 4 2.728 4 3.634v12.732C4 17.272 4.728 18 5.634 18h12.732c.906 0 1.634-.728 1.634-1.634V3.634C19.982 2.728 19.254 2 18.349 2zm-12.715.941h12.732c.373 0 .693.302.693.693V5.25H4.94V3.634c0-.39.302-.693.693-.693zM9.86 13.134v-3.036h4.12v3.036H9.86zm4.12.941v2.984H9.86v-2.984h4.12zm0-7.902v3.001H9.86v-3h4.12zM8.919 9.174H4.941v-3H8.92v3zm0 .924v3.036H4.941v-3.036H8.92zm5.984 0h4.138v3.036h-4.138v-3.036zm0-.924v-3h4.138v3h-4.138zM4.941 16.35v-2.274H8.92v2.984H5.634c-.39-.018-.693-.32-.693-.71zm13.408.692h-3.446v-2.966h4.138v2.291c0 .373-.302.675-.692.675z",transform:"translate(-57 -261) translate(0 31) translate(53 228)"})])]),Qr("symbol",{id:"hueViewSymbol",viewBox:"0 0 24 24"},[Qr("path",{d:"M12,5 C18,5 22,12.5 22,12.5 C22,12.5 17,20 12,20 C7,20 2,12.5 2,12.5 C2,12.5 6,5 12,5 Z M12,7 C8.496,7 5.633,10.59 4.408,12.41 C6.055,14.53 9.313,18 12,18 C14.688,18 17.948,14.526 19.596,12.406 C18.378,10.585 15.532,7 12,7 Z M12,8 C14.209,8 16,9.791 16,12 C16,14.209 14.209,16 12,16 C9.791,16 8,14.209 8,12 C8,10.984 8.391,10.068 9.014,9.363 C9.01,9.408 9,9.453 9,9.5 C9,10.328 9.671,11 10.5,11 C11.329,11 12,10.328 12,9.5 C12,8.877 11.62,8.344 11.08,8.116 C11.376,8.047 11.682,8 12,8 Z"})])])])],-1),uu=i(5701),hu=i.n(uu),du=i(8345);hu()(du.Z,{insert:"head",singleton:!1}),du.Z.locals;const fu=mn({name:"HueIcons",setup:function(){return{alreadyPresentInDom:!!document.getElementById("hueIconSprites")}}});fu.render=function(e,t,n,r,i,o){return e.alreadyPresentInDom?ii("v-if",!0):(Hr(),zr(wr,{key:0,to:"body"},[lu]))};const pu=fu;Object.assign,Object.prototype.hasOwnProperty,Array.isArray,Object.prototype.toString;const gu=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},mu=/-(\w)/g,Eu=(gu((e=>e.replace(mu,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),vu=(gu((e=>e.replace(Eu,"-$1").toLowerCase())),gu((e=>e.charAt(0).toUpperCase()+e.slice(1)))),yu=gu((e=>e?`on${vu(e)}`:""));var bu=/-(\w)/g,Au=function(e){return e.replace(bu,(function(e,t){return t?t.toUpperCase():""}))},Tu=/\B([A-Z])/g,Cu=function(e){return e.replace(Tu,"-$1").toLowerCase()};function Ru(e,t){return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:1===t.length?t[0]:t})}var Su=function(e){return/function Boolean/.test(String(e))},_u=function(e){return/function Number/.test(String(e))};function xu(e,t){if(3===e.nodeType)return e.data.trim()?e.data:null;if(1===e.nodeType){var n={attrs:wu(e),domProps:{innerHTML:e.innerHTML}};return n.attrs.slot&&(n.slot=n.attrs.slot,delete n.attrs.slot),t(e.tagName,n)}return null}function wu(e){for(var t={},n=0,r=e.attributes.length;n<r;n++){var i=e.attributes[n];t[i.nodeName]=i.nodeValue}return t}function Iu(e){return Iu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Iu(e)}function Nu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ou(e,t){return!t||"object"!==Iu(t)&&"function"!=typeof t?ku(e):t}function ku(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lu(e){var t="function"==typeof Map?new Map:void 0;return Lu=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Du(e,arguments,Pu(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Mu(n,e)},Lu(e)}function Du(e,t,n){return Du=Fu()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Mu(i,n.prototype),i},Du.apply(null,arguments)}function Fu(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Mu(e,t){return Mu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mu(e,t)}function Pu(e){return Pu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pu(e)}function Bu(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Uu(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Bu(o,r,i,a,s,"next",e)}function s(e){Bu(o,r,i,a,s,"throw",e)}a(void 0)}))}}var $u=function(e,t,n){if(!function(e){var t;return!(null===(t=window.customElements)||void 0===t||!t.get(e))}(e)&&window.customElements){var r=function(e,t,n,r){var i,o,a,s=e,c=!1,l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mu(e,t)}(f,e);var l,u,h,d=(l=f,u=Fu(),function(){var e,t=Pu(l);if(u){var n=Pu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Ou(this,e)});function f(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=d.call(this))._wrapper=void 0,e._component=void 0,e._props=void 0,e._slotChildren=void 0,e._mounted=!1,e._props={},e._slotChildren=[];var t=new MutationObserver((function(t){for(var n=0;n<t.length;n++){var r=t[n];!c||"attributes"!==r.type||r.target!==ku(e)||r.attributeName&&e.syncAttribute(r.attributeName)}}));return t.observe(ku(e),{childList:!0,subtree:!0,characterData:!0,attributes:!0}),e}return h=[{key:"createEventProxies",value:function(e){var t=this,n={};return e&&e.forEach((function(e){var r=yu(Au(e));n[r]=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.dispatchEvent(Ru(e,r))}})),n}},{key:"syncAttribute",value:function(e){var t,n=Au(e),r=void 0;this.hasOwnProperty(e)?r=this[e]:this.hasAttribute(e)&&(r=this.getAttribute(e)),this._props[n]=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).type;if(Su(n))return"true"===e||"false"===e?"true"===e:""===e||e===t||null!=e;if(_u(n)){var r=parseFloat(e);return isNaN(r)?e:r}return e}(r,e,a[n]),null===(t=this._component)||void 0===t||t.$forceUpdate()}},{key:"syncSlots",value:function(){var e;this._slotChildren=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++)n.push(xu(e[r],t));return n}(this.childNodes,n),null===(e=this._component)||void 0===e||e.$forceUpdate()}},{key:"syncInitialAttributes",value:function(){var e,t=this;this._props=(e={},o.forEach((function(t){e[t]=void 0})),e),i.forEach((function(e){t.syncAttribute(e)}))}},{key:"connectedCallback",value:function(){c&&this.syncInitialAttributes();var e=this.createEventProxies(s.emits),i=this;this._wrapper=t({render:function(){var t=Object.assign({},i._props,e);return delete t.dataVApp,n(s,t,(function(){return i._slotChildren}))},mounted:function(){i._mounted=!0},unmounted:function(){i._mounted=!1}}),this.syncSlots(),this._component=this._wrapper.mount(this),null!=r&&r.connectedCallback&&r.connectedCallback.bind(this)()}},{key:"disconnectedCallback",value:function(){var e;null===(e=this._wrapper)||void 0===e||e.unmount()}}],h&&Nu(f.prototype,h),f}(Lu(HTMLElement));return function(){if(!c){var e=Array.isArray(s.props)?s.props:Object.keys(s.props||{});i=e.map(Cu),o=e.map(Au);var t=Array.isArray(s.props)?{}:s.props||{};a=o.reduce((function(n,r,i){return n[r]=t[e[i]],n}),{}),c=!0}}(),l}(t,Ba,vo,n);window.customElements.define(e,r)}},Hu=function(){var e=Uu(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:new Promise(function(){var e=Uu(regeneratorRuntime.mark((function e(n,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return window.customElements||r("Web components are not supported!"),e.prev=1,e.next=4,window.customElements.whenDefined(t);case 4:e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(1),r(e.t0),e.abrupt("return");case 10:n();case 11:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t,n){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function Gu(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}var Wu="hue-icons";$u(Wu,pu);var Vu=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Gu(o,r,i,a,s,"next",e)}function s(e){Gu(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Hu(Wu);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const ju=Vu;var qu={class:"ace-editor-component"},zu=["id"];i(664),i(5466),i(4469),i(1557),i(1986),i(9930),i(4157),i(2049),i(6515),i(3605),i(2821),i(7527),i(8336),i(5517),i(2092),i(262),i(8128),i(7911),i(5366),i(7060),i(2448),i(2224),i(4762),i(267),i(4998),i(4689),i(4042),i(5258),i(5409),i(1489),i(708),i(2426),i(7586),i(9783),i(5394),i(6282),i(1802),i(1220),i(3492),i(9180),i(841);const Yu=window.ace;var Ku={bigquery:"ace/mode/bigquery",druid:"ace/mode/druid",elasticsearch:"ace/mode/elasticsearch",flink:"ace/mode/flink",dasksql:"ace/mode/dasksql",hive:"ace/mode/hive",hplsql:"ace/mode/hplsql",impala:"ace/mode/impala",ksql:"ace/mode/ksql",mysql:"ace/mode/mysql",pgsq:"ace/mode/pgsql",phoenix:"ace/mode/phoenix",presto:"ace/mode/presto",solr:"ace/mode/solr",sql:"ace/mode/sql"},Xu=function(e){return e&&Ku[e]||Ku.sql};function Ju(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}var Zu=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ju(o,r,i,a,s,"next",e)}function s(e){Ju(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return setTimeout(e,t)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();const Qu=Zu,eh=function(e){Qu(0).finally(e)},th=function(){};var nh=function(e,t,n){if(!n)return{dispose:th};var r,i,o,a=n.getSqlAnalyzer(t),s=function(){r&&(r.element.remove(),r=void 0)},c=function(){var t=e.getValue();try{t.length&&!r&&(i=a.predict({beforeCursor:e.getTextBeforeCursor(),afterCursor:e.getTextAfterCursor()})).then((function(t){var n,i=t.prediction;if(i!==o){var a=e.getTextBeforeCursor();i&&i.toLowerCase().startsWith(a.toLowerCase())?(n=a+i.slice(a.length),s(),r=function(t){var n=document.createElement("div");return n.innerText=t,n.style.marginLeft="4px",n.classList.add("ace_invisible"),n.classList.add("ace_emptyMessage"),e.renderer.scroller.append(n),{text:t,element:n}}(n)):s()}o=i})).catch(s)}catch(e){s()}};e.commands.addCommand({name:"applyPredict",bindKey:{win:"Tab",mac:"Tab"},exec:function(){r?(e.setValue(r.text,1),e.clearSelection()):e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"}),e.commands.addCommand({name:"forceIndent",bindKey:{win:"Shift-Tab",mac:"Shift-Tab"},exec:function(){s(),e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"}),e.commands.addCommand({name:"cancelPredict",bindKey:{win:"Escape",mac:"Escape"},exec:function(){s()}});var l=-1,u=function(){if(i)try{i.cancel(),i=void 0}catch(e){}eh((function(){window.clearTimeout(l);var t=e.getValue();!r||t.length&&r.text!==t&&0===r.text.indexOf(t)||s(),l=window.setTimeout(c,300)}))};return e.on("input",u),{dispose:function(){e.off("input",u)}}},rh=i(911);hu()(rh.Z,{insert:"head",singleton:!1}),rh.Z.locals;var ih="sql.syntax.dropdown.show",oh={class:"dropdown-divider"};const ah=mn({name:"DropdownDivider"});ah.render=function(e,t,n,r,i,o){return Hr(),qr("li",oh," ")};const sh=ah;var ch=i(1974);hu()(ch.Z,{insert:"head",singleton:!1}),ch.Z.locals;var lh=function(e){e.clickOutsideHandler&&(document.removeEventListener("click",e.clickOutsideHandler),e.clickOutsideHandler=void 0)},uh=function(e,t){return lh(e),e.clickOutsideHandler=function(n){document.contains(n.target)&&!e.contains(n.target)&&t(n)},document.addEventListener("click",e.clickOutsideHandler),function(){lh(e)}},hh={mounted:function(e,t){eh((function(){t.value&&"function"==typeof t.value&&uh(e,t.value)}))},unmounted:lh};function dh(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}const fh=mn({name:"DropdownDrawer",props:{open:{type:Boolean,required:!0},closeOnClick:{type:Boolean,default:!0},triggerElement:{type:Object,default:null},forceBottomPlacement:{type:Boolean,default:!1}},emits:["close"],data:function(){return{positionTop:!1,positionLeft:!1,position:{top:"100%",left:"0",right:"",bottom:""},parentPosition:{position:"fixed"}}},watch:{open:function(e){var t=this;return function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){dh(o,r,i,a,s,"next",e)}function s(e){dh(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function n(){var r,i,o,a,s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=3;break}return lh(t.$el),n.abrupt("return");case 3:return t.position={top:"100%",left:"0",right:"",bottom:""},t.parentPosition={position:"fixed"},n.next=7,eo();case 7:void 0,c=t.$refs.innerPanelElement.getBoundingClientRect(),r={bottom:c.bottom>window.innerHeight,right:c.right>window.innerWidth},i=r.right,r.bottom&&!t.forceBottomPlacement&&(a=(null===(o=t.triggerElement)||void 0===o?void 0:o.offsetHeight)||0,t.parentPosition={position:"relative"},t.position.top="",t.position.bottom="".concat(a,"px")),i&&(s=t.triggerElement?t.triggerElement.offsetWidth:0,t.position.left="",t.position.right="".concat(s,"px")),eh((function(){uh(t.$el,(function(e){t.triggerElement!==e.target&&t.$emit("close")}))})),t.$forceUpdate();case 12:case"end":return n.stop()}var c}),n)})))()}},methods:{closeDrawer:function(){this.open&&this.$emit("close")}}});fh.render=function(e,t,n,i,o,a){return Hr(),qr("div",{ref:"outerPanelElement",class:l(["hue-dropdown-drawer",{open:e.open}]),style:r(e.parentPosition),onClick:t[0]||(t[0]=function(t){return e.closeOnClick&&e.closeDrawer()})},[e.open?(Hr(),qr("div",{key:0,ref:"innerPanelElement",class:"hue-dropdown-drawer-inner",style:r(e.position)},[ui(e.$slots,"default")],4)):ii("v-if",!0)],6)};const ph=fh,gh=mn({name:"DropdownMenuButton",emits:["click"]});gh.render=function(e,t,n,r,i,o){return Hr(),qr("li",null,[Qr("button",{onClick:t[0]||(t[0]=_a((function(t){return e.$emit("click")}),["stop"]))},[ui(e.$slots,"default")])])};const mh=gh,Eh=mn({components:{DropdownDivider:sh,DropdownMenuButton:mh,DropdownDrawer:ph},props:{options:{type:Array,default:function(){return[]}},keydownElement:{type:Object,default:null},open:{type:Boolean,default:!1},forceBottomPlacement:{type:Boolean,default:!1}},emits:["close","option-active","option-selected"],data:function(){return{selectedIndex:0,keydownDispose:null}},watch:{keydownElement:function(e){var t=this;if(this.keydownDispose&&this.keydownDispose(),e){var n=function(e){switch(e.key){case"ArrowDown":t.selectedIndex=(t.selectedIndex+1)%t.options.length;break;case"ArrowUp":t.selectedIndex=0!==t.selectedIndex?t.selectedIndex-1:t.options.length-1;break;case"Enter":t.$emit("option-selected",t.options[t.selectedIndex])}};e.addEventListener("keydown",n),this.keydownDispose=function(){e.removeEventListener("keydown",n)}}},selectedIndex:function(e){this.options.length&&this.$emit("option-active",this.options[e])},options:function(){this.selectedIndex=0,this.options.length&&this.$emit("option-active",this.options[this.selectedIndex])}},beforeUnmount:function(){this.keydownDispose&&this.keydownDispose()},methods:{getLabel:function(e){return e.label||e},onOptionClick:function(e,t){this.selectedIndex=t,this.$emit("option-selected",e),this.$emit("close")}}});Eh.render=function(e,t,n,r,i,o){var a=Ir("DropdownMenuButton"),s=Ir("DropdownDivider"),c=Ir("DropdownDrawer");return Hr(),zr(c,{open:e.open&&e.options.length>0,"force-bottom-placement":e.forceBottomPlacement,"trigger-element":e.keydownElement,onClose:t[0]||(t[0]=function(t){return e.$emit("close")})},{default:qt((function(){return[Qr("ul",null,[(Hr(!0),qr(Fr,null,li(e.options,(function(t,n){return Hr(),qr(Fr,{key:t.value||t.label||t},[t.divider?(Hr(),zr(s,{key:1})):(Hr(),zr(a,{key:0,class:l({selected:n===e.selectedIndex}),onClick:function(r){return e.onOptionClick(t,n)}},{default:qt((function(){return[ri(m(e.getLabel(t)),1)]})),_:2},1032,["class","onClick"]))],64)})),128))])]})),_:1},8,["open","force-bottom-placement","trigger-element"])};const vh=Eh;var yh;!function(e){e[e.RUNNING=0]="RUNNING",e[e.PAUSED=1]="PAUSED"}(yh||(yh={}));var bh={},Ah=bh.hasOwnProperty,Th=function(e,t,n){Ah.call(bh,e)||(bh[e]=[]);var r=bh[e].push({listener:t,app:n,state:yh.RUNNING})-1;return{remove:function(){delete bh[e][r]}}};const Ch=function(e,t){Ah.call(bh,e)&&bh[e].forEach((function(e){e.state===yh.RUNNING&&e.listener(t)}))},Rh=Th;function Sh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _h=function(e){return void 0===e?null:e},xh=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.disposed=!1,this.disposals=[],Dn(this.dispose.bind(this))}var t,n;return t=e,(n=[{key:"addDisposable",value:function(e){this.disposals.push(e.dispose.bind(e))}},{key:"addEventListener",value:function(e,t,n){e.addEventListener(t,n),this.disposals.push((function(){e.removeEventListener(t,n)}))}},{key:"subscribe",value:function(e,t){if("string"==typeof e){var n=Rh(e,t);this.disposals.push((function(){n.remove()}))}else if(e.subscribe){var r=e.subscribe(t);this.disposals.push((function(){r.dispose()}))}}},{key:"trackObservable",value:function(e,t){var n=this;new Promise((function(t){var n=ho(e,(function(e){e&&(t(e),n())}),{immediate:!0})})).then((function(e){n.disposed||(t.value=_h(e()),n.subscribe(e,(function(e){t.value=_h(e)})))}))}},{key:"trackTimeout",value:function(e){this.disposals.push((function(){window.clearTimeout(e)}))}},{key:"dispose",value:function(){for(this.disposed=!0;this.disposals.length;)try{var e=this.disposals.pop();e&&e()}catch(e){console.warn(e)}}}])&&Sh(t.prototype,n),e}(),wh=i(3780),Ih=function(e,t){var n=void 0!==t?t:null;if(!window.localStorage||window.DISABLE_LOCAL_STORAGE)return n;var r=window.LOGGED_USERNAME?"".concat(window.LOGGED_USERNAME,".").concat(e):e,i=window.localStorage.getItem(r);if(null===i)return n;if(i&&i.length){try{return JSON.parse(i)}catch(e){}return i}return n},Nh=function(e,t){if(window.localStorage)if(window.DISABLE_LOCAL_STORAGE)window.localStorage.clear();else{var n=window.LOGGED_USERNAME?"".concat(window.LOGGED_USERNAME,".").concat(e):e;if(null==t)window.localStorage.removeItem(n);else{var r=void 0;try{r=JSON.stringify(t)}catch(e){}try{window.localStorage.setItem(n,r||String(t))}catch(e){}}}};const Oh=mn({name:"AceSyntaxDropdown",components:{DropdownMenuOptions:vh},props:{editor:{type:Object,required:!0},editorId:{type:String,required:!0}},emits:[],setup:function(e){var t=kt(e),n=t.editor,r=t.editorId,i=new xh,o=St(!1),a=St(),s=St([]),c=St(),l=function(){s.value=[],a.value=void 0,o.value=!1};return i.subscribe("sql.syntax.dropdown.hide",l),i.subscribe(ih,(function(e){if(e.editorId===r.value){var t=e.data.expected.map((function(e){return{label:e.text,value:e.text}}));e.data.ruleId&&(t.push({label:"-",value:"_divider_",divider:!0}),t.push({label:(0,wh.Z)("Ignore this type of error"),value:"_suppress_",suppress:e.data.ruleId+e.data.text.toLowerCase()})),c.value={top:"".concat(e.source.bottom,"px"),left:"".concat(e.source.left,"px")},a.value=e.range,s.value=t,o.value=!0}})),{closePanel:l,options:s,optionSelected:function(e){var t=e.suppress,i=e.value;if(t){var o=Ih("hue.syntax.checker.suppressedRules",{});o[t]=!0,Nh("hue.syntax.checker.suppressedRules",o),Ch("editor.refresh.statement.locations",r.value)}else a.value&&n.value.session.replace(a.value,i)},position:c,visible:o}}});Oh.render=function(e,t,n,i,o,a){var s=Ir("DropdownMenuOptions");return Hr(),qr("div",{class:"ace-syntax-dropdown-container",style:r(e.position)},[ei(s,{"force-bottom-placement":!0,open:e.visible,options:e.options,onClose:e.closePanel,onOptionSelected:e.optionSelected},null,8,["open","options","onClose","onOptionSelected"])],4)};const kh=Oh;var Lh={class:"autocompleter-suggestions"},Dh={key:0,class:"autocompleter-header"},Fh={key:0,class:"autocompleter-categories"},Mh=["onClick"],Ph={class:"autocompleter-spinner"},Bh={ref:"entriesScrollDiv",class:"autocompleter-entries"},Uh={ref:"entriesDiv"},$h=["onClick","onMouseover"],Hh={class:"autocompleter-suggestion-value"},Gh={key:0,class:"fa fa-key"},Wh={class:"autocompleter-suggestion-meta"},Vh={key:0,class:"fa fa-star-o popular-color"},jh={key:0,class:"autocompleter-details"};function qh(e){return qh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qh(e)}function zh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yh(e,t){return!t||"object"!==qh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Kh(e){var t="function"==typeof Map?new Map:void 0;return Kh=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Xh(e,arguments,Qh(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Zh(n,e)},Kh(e)}function Xh(e,t,n){return Xh=Jh()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Zh(i,n.prototype),i},Xh.apply(null,arguments)}function Jh(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Zh(e,t){return Zh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Zh(e,t)}function Qh(e){return Qh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Qh(e)}var ed=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zh(e,t)}(s,e);var t,n,r,i,o,a=(t=s,n=Jh(),function(){var e,r=Qh(t);if(n){var i=Qh(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return Yh(this,e)});function s(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var n=void 0,r=!1;return(t=a.call(this,(function(t,i){return e((function(e){r=!0,t(e)}),(function(e){r=!0,i(e)}),(function(e){return n=e}))}))).onCancel=void 0,t.cancelPrevented=void 0,t.completed=void 0,t.cancelled=void 0,t.onCancel=n,t.completed=function(){return r},t}return r=s,o=[{key:"reject",value:function(e){return new s((function(t,n){n(e)}))}},{key:"resolve",value:function(e){return new s((function(t){t(e)}))}}],(i=[{key:"cancel",value:function(){this.completed()||this.cancelled||this.cancelPrevented||(this.onCancel&&this.onCancel(),this.cancelled=!0)}},{key:"preventCancel",value:function(){this.cancelPrevented=!0}}])&&zh(r.prototype,i),o&&zh(r,o),s}(Kh(Promise));function td(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var nd,rd,id=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,(n=[{key:"analyzeCompatibility",value:function(e){return ed.reject("analyzeCompatibility is not Implemented")}},{key:"analyzeRisk",value:function(e){return ed.reject("analyzeRisk is not Implemented")}},{key:"analyzeSimilarity",value:function(e){return ed.reject("analyzeSimilarity is not Implemented")}},{key:"fetchSqlAnalyzerMeta",value:function(e){return ed.reject("fetchSqlAnalyzerMeta is not Implemented")}},{key:"fetchPopularity",value:function(e){return ed.reject("analyzeCompatibility is not Implemented")}},{key:"fetchTopAggs",value:function(e){return ed.reject("fetchTopAggs is not Implemented")}},{key:"fetchTopColumns",value:function(e){return ed.reject("fetchTopColumns is not Implemented")}},{key:"fetchTopFilters",value:function(e){return ed.reject("fetchTopFilters is not Implemented")}},{key:"fetchTopJoins",value:function(e){return ed.reject("fetchTopJoins is not Implemented")}},{key:"predict",value:function(e){return ed.reject("predict is not Implemented")}}])&&td(t.prototype,n),e}();function od(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e.Column="#2fae2f",e.Database="#517989",e.Files="#9e1414",e.IdentCteVar="#ca4f01",e.Keyword="#0074d2",e.Popular="#61bbff",e.Sample="#fea7a7",e.Table="#ffa139",e.UDF="#acfbac"}(nd||(nd={})),function(e){e.All="All",e.ColRefKeyword="ColRefKeyword",e.Column="Column",e.CTE="CTE",e.Database="Database",e.Files="Files",e.Identifier="Identifier",e.Keyword="Keyword",e.Option="Option",e.Popular="Popular",e.PopularActiveJoin="PopularActiveJoin",e.PopularAggregate="PopularAggregate",e.PopularFilter="PopularFilter",e.PopularGroupBy="PopularGroupBy",e.PopularJoin="PopularJoin",e.PopularJoinCondition="PopularJoinCondition",e.PopularOrderBy="PopularOrderBy",e.Sample="Sample",e.Table="Table",e.UDF="UDF",e.Variable="Variable",e.VirtualColumn="VirtualColumn"}(rd||(rd={}));var ad={All:{categoryId:rd.All,color:"#90ceff",label:(0,wh.Z)("All")},ColRefKeyword:{categoryId:rd.ColRefKeyword,color:nd.Keyword,label:(0,wh.Z)("Keywords"),weight:100},Column:{categoryId:rd.Column,color:nd.Column,label:(0,wh.Z)("Columns"),weight:1e3},CTE:{categoryId:rd.CTE,color:nd.IdentCteVar,label:(0,wh.Z)("CTEs"),weight:700},Database:{categoryId:rd.Database,color:nd.Database,label:(0,wh.Z)("Databases"),weight:500},Files:{categoryId:rd.Files,color:nd.Files,label:(0,wh.Z)("Files"),weight:300},Identifier:{categoryId:rd.Identifier,color:nd.IdentCteVar,label:(0,wh.Z)("Identifiers"),weight:800},Keyword:{categoryId:rd.Keyword,color:nd.Keyword,label:(0,wh.Z)("Keywords"),weight:0},Option:{categoryId:rd.Option,color:nd.UDF,detailsComponent:"OptionDetailsPanel",label:(0,wh.Z)("Options"),weight:400},Popular:{categoryId:rd.Popular,color:nd.Popular,label:(0,wh.Z)("Popular"),popular:!0},PopularAggregate:{categoryId:rd.PopularAggregate,color:nd.Popular,detailsComponent:"PopularAggregateUdfPanel",label:(0,wh.Z)("Popular"),popular:!0,weight:1500},PopularActiveJoin:{categoryId:rd.PopularActiveJoin,color:nd.Popular,label:(0,wh.Z)("Popular"),detailsComponent:"PopularDetailsPanel",popular:!0,weight:1500},PopularFilter:{categoryId:rd.PopularFilter,color:nd.Popular,label:(0,wh.Z)("Popular"),detailsComponent:"PopularDetailsPanel",popular:!0,weight:1400},PopularGroupBy:{categoryId:rd.PopularGroupBy,color:nd.Popular,detailsComponent:"PopularDetailsPanel",label:(0,wh.Z)("Popular"),popular:!0,weight:1300},PopularJoin:{categoryId:rd.PopularJoin,color:nd.Popular,detailsComponent:"PopularDetailsPanel",label:(0,wh.Z)("Popular"),weight:1500},PopularJoinCondition:{categoryId:rd.PopularJoinCondition,color:nd.Popular,detailsComponent:"PopularDetailsPanel",label:(0,wh.Z)("Popular"),popular:!0,weight:1500},PopularOrderBy:{categoryId:rd.PopularOrderBy,color:nd.Popular,detailsComponent:"PopularDetailsPanel",label:(0,wh.Z)("Popular"),popular:!0,weight:1200},Sample:{categoryId:rd.Sample,color:nd.Sample,label:(0,wh.Z)("Samples"),weight:900},Table:{categoryId:rd.Table,color:nd.Table,label:(0,wh.Z)("Tables"),weight:600},UDF:{categoryId:rd.UDF,detailsComponent:"UdfDetailsPanel",color:nd.UDF,label:(0,wh.Z)("UDFs"),weight:400},Variable:{categoryId:rd.Variable,color:nd.IdentCteVar,label:(0,wh.Z)("Variables"),weight:50},VirtualColumn:{categoryId:rd.VirtualColumn,color:nd.Column,label:(0,wh.Z)("Columns"),weight:200}},sd=i(1466),cd=i.n(sd),ld=function(e){return e||(e={}),void 0===e.silenceErrors&&(e.silenceErrors=!0),e},ud=function(e,t){return!e||!e.preventCancel||t&&t.cancellable||e.preventCancel(),e},hd=i(5526),dd=i(2868),fd=i.n(dd),pd=i(5907),gd=i.n(pd);const md=function(e){void 0!==window.console&&void 0!==window.console.error&&(void 0!==e&&console.error(e),console.error((new Error).stack))};function Ed(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bd,Ad=fd().create({withCredentials:!0}),Td=window.HUE_BASE_URL;Ad.interceptors.request.use((function(e){return Td&&(e.baseURL=Td),bd&&(e.headers.Authorization="Bearer ".concat(bd)),e})),Ad.interceptors.response.use((function(e){var t;return null!==(t=e.data)&&void 0!==t&&t.access&&(bd=e.data.access),e}));var Cd=function(e){Td=e},Rd=function(e){bd=e},Sd=function(e){return void 0!==e&&(void 0!==e.traceback||void 0!==e.status&&0!==e.status||503===e.code||500===e.code)},_d="Unknown error occurred",xd=function(e){if(!e)return _d;if("string"==typeof e)return e;var t=e;if(t.statusText&&"abort"!==t.statusText)return t.statusText;if(t.responseText){try{var n=JSON.parse(t.responseText);if(n.message)return n.message}catch(e){}return t.responseText}return e.message?e.message:t.statusText?t.statusText:t.error&&"string"==typeof t.error?t.error:_d},wd=function(e,t,n){n&&n.silenceErrors||(md(t),-1===e.indexOf("AuthorizationException")&&Ch("hue.error",e))},Id=function(e,t,n){var r=xd(e.response&&e.response.data);t(r),wd(r,e&&e.response||e,n)},Nd=function(e,t,n,r){if(r&&r.handleSuccess)r.handleSuccess(e.data,t,(function(t){n(t),wd(String(t),e.data,r)}));else if(r&&r.ignoreSuccessErrors||!Sd(e.data))t(e.data);else{var i=xd(e&&e.data);n(i),wd(i,e,r)}},Od=function(){var e=fd().CancelToken.source();return{cancelToken:e.token,cancel:e.cancel}},kd=function(e,t,n){return new ed((function(r,i,o){var a=Od(),s=a.cancelToken,c=a.cancel,l=!1;Ad.post(e,gd().stringify(t),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vd(Object(n),!0).forEach((function(t){yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({cancelToken:s},n)).then((function(e){Nd(e,r,i,n)})).catch((function(e){n&&n.handleError?n.handleError(e,r,(function(t){Id(e,i,n),wd(String(t),e,n)})):Id(e,i,n)})).finally((function(){l=!0})),o((function(){l||c()}))}))},Ld=function(e,t,n){return new ed((function(r,i,o){var a=Od(),s=a.cancelToken,c=a.cancel,l=!1;Ad.get(e,{cancelToken:s,params:t}).then((function(e){Nd(e,r,i,n)})).catch((function(e){Id(e,i,n)})).finally((function(){l=!0})),o((function(){l||c()}))}))},Dd=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ed(o,r,i,a,s,"next",e)}function s(e){Ed(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(t,n,r){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ad.post(t,n,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){r&&r(Math.round(100*e.loaded/e.total))}});case 2:return i=e.sent,e.abrupt("return",i.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),Fd="hue.executable.status.transitioned",Md="hue.executable.updated",Pd="hue.executable.logs.updated",Bd="hue.executable.result.updated";function Ud(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $d(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Hd(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){$d(o,r,i,a,s,"next",e)}function s(e){$d(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Gd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Wd,Vd={bigint:"sort-numeric",date:"sort-date",datetime:"sort-date",decimal:"sort-numeric",double:"sort-numeric",float:"sort-numeric",int:"sort-numeric",real:"sort-numeric",smallint:"sort-numeric",timestamp:"sort-date",tinyint:"sort-numeric"},jd={bigint:!0,decimal:!0,double:!0,float:!0,int:!0,real:!0,smallint:!0,tinyint:!0},qd={date:!0,datetime:!0,timestamp:!0},zd={array:!0,map:!0,struct:!0};!function(e){e.Table="table"}(Wd||(Wd={}));var Yd=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.executable=void 0,this.streaming=void 0,this.type=void 0,this.rows=[],this.meta=[],this.cleanedMeta=[],this.cleanedDateTimeMeta=[],this.cleanedStringMeta=[],this.cleanedNumericMeta=[],this.koEnrichedMeta=[],this.lastRows=[],this.images=[],this.hasMore=!0,this.isEscaped=!1,this.fetchedOnce=!1,this.executable=t,this.streaming=!!n}var t,n,r,i;return t=e,n=[{key:"fetchResultSize",value:(i=Hd(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.executable.status!==Pf.failed){e.next=2;break}return e.abrupt("return");case 2:return t=0,n=function(){var e=Hd(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(++t<10)){e.next=16;break}return e.next=4,hp({executable:r.executable,silenceErrors:!0});case 4:if(!(i=e.sent).rows){e.next=9;break}return e.abrupt("return",i);case 9:return e.next=11,Qu(1e3);case 11:return e.next=13,n();case 13:return e.abrupt("return",e.sent);case 14:e.next=17;break;case 16:return e.abrupt("return",Promise.reject());case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),e.next=6,n();case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"fetchRows",value:(r=Hd(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,up({executable:this.executable,rows:t&&t.rows||100,startOver:!(!t||!t.startOver)});case 2:(n=e.sent)&&this.handleResultResponse(n);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"handleResultResponse",value:function(e){var t,n,r=this,i=this.rows.length;e.data.forEach((function(e,t){e.unshift(i+t+1)})),(t=this.rows).push.apply(t,function(e){if(Array.isArray(e))return Ud(e)}(n=e.data)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return Ud(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ud(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),this.lastRows=e.data,this.meta.length||(this.meta=e.meta,this.meta.unshift({type:"INT_TYPE",name:"",comment:null}),this.meta.forEach((function(e,t){var n=e.type.replace(/_type/i,"").toLowerCase();t&&(r.cleanedMeta.push(e),jd[n]?r.cleanedNumericMeta.push(e):qd[n]?r.cleanedDateTimeMeta.push(e):zd[n]||r.cleanedStringMeta.push(e)),r.koEnrichedMeta.push({name:e.name,type:n,comment:e.comment,cssClass:Vd[n]||"sort-string",checked:hd.observable(!0),originalIndex:t})}))),this.hasMore=e.has_more,this.isEscaped=e.isEscaped,e.type&&(this.type=e.type),this.fetchedOnce=!0,this.notify()}},{key:"notify",value:function(){Ch(Bd,this)}}],n&&Gd(t.prototype,n),e}();function Kd(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Xd(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Kd(o,r,i,a,s,"next",e)}function s(e){Kd(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Jd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Zd=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.executable=void 0,this.fullLog="",this.logLines=0,this.jobs=[],this.errors=[],this.executable=t}var t,n,r;return t=e,n=[{key:"notify",value:function(){Ch(Pd,this)}},{key:"reset",value:function(){this.fullLog="",this.logLines=0,this.jobs=[],this.errors=[],this.notify()}},{key:"fetchLogs",value:(r=Xd(regeneratorRuntime.mark((function e(t){var n,r,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,dp({executable:this.executable,fullLog:this.fullLog,jobs:this.jobs});case 2:-1===(n=e.sent).logs.indexOf("Unable to locate")||n.isFullLogs?this.fullLog=n.logs:this.fullLog+="\n"+n.logs,this.logLines=this.fullLog.split(/\r\n|\r|\n/).length,n.jobs?(n.jobs.forEach((function(e){void 0===e.percentJob&&(e.percentJob=-1)})),this.jobs=n.jobs):this.jobs=[],Ch(Pd,this),t||(r=this.executable.getExecutionTime()>45e3?5e3:1e3,i=window.setTimeout(Xd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.fetchLogs(o.executable.status!==Pf.running&&o.executable.status!==Pf.starting&&o.executable.status!==Pf.waiting);case 2:case"end":return e.stop()}}),e)}))),r),this.executable.addCancellable({cancel:function(){window.clearTimeout(i)}}));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"toJs",value:function(){return{jobs:this.jobs,errors:this.errors.map((function(e){return e.message}))}}}],n&&Jd(t.prototype,n),e}();function Qd(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function ef(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Qd(o,r,i,a,s,"next",e)}function s(e){Qd(o,r,i,a,s,"throw",e)}a(void 0)}))}}function tf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var nf=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.knownSessionPromises={}}var t,n,r,i,o,a,s;return t=e,n=[{key:"getSession",value:(s=ef(regeneratorRuntime.mark((function e(t){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.knownSessionPromises[t.type]||(this.knownSessionPromises[t.type]=this.createDetachedSession(t),this.knownSessionPromises[t.type].catch((function(){delete n.knownSessionPromises[t.type]}))),e.abrupt("return",this.knownSessionPromises[t.type]);case 2:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"createDetachedSession",value:(a=ef(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=ef(regeneratorRuntime.mark((function e(n,r){var i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={type:t.type,properties:t.properties||[]},e.next=3,ip(i);case 3:"auth"in(o=e.sent)&&o.auth?(a=o,t.preventAuthModal?r(a):Ch("show.session.auth.modal",{message:a.message,session:i,resolve:n,reject:r})):n(o);case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"updateSession",value:function(e){this.knownSessionPromises[e.type]=Promise.resolve(e)}},{key:"getAllSessions",value:(o=ef(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object.keys(this.knownSessionPromises).map((function(e){return n.knownSessionPromises[e]})),e.abrupt("return",Promise.all(t));case 2:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"restartSession",value:(i=ef(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.closeSession(t);case 2:return e.abrupt("return",this.getSession(t));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"hasSession",value:function(e){return!!this.knownSessionPromises[e]}},{key:"closeSession",value:(r=ef(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.hasSession(t.type)&&delete this.knownSessionPromises[t.type],e.next=3,op({session:t,silenceErrors:!0});case 3:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}],n&&tf(t.prototype,n),e}();const rf=new nf;var of,af,sf,cf,lf="/api/editor/autocomplete/",uf="/desktop/api2/doc/",hf="/filebrowser/view="+encodeURIComponent("/"),df="/filebrowser/view="+encodeURIComponent("adl:/"),ff="/filebrowser/view="+encodeURIComponent("ABFS://"),pf="/filebrowser/view="+encodeURIComponent("s3a://"),gf="/desktop/api/configurations",mf="/desktop/api2/gist/",Ef="/api/metadata/search/entities_interactive",vf="cluster.config.set.config";function yf(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function bf(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){yf(o,r,i,a,s,"next",e)}function s(e){yf(o,r,i,a,s,"throw",e)}a(void 0)}))}}(cf=of||(of={})).browser="browser",cf.editor="editor",cf.dashboard="dashboard",cf.scheduler="scheduler",cf.sdkapps="sdkapps";var Af=function(){var e=bf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return af=new Promise(function(){var e=bf(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,kd("/api/get_config/",{},{silenceErrors:!0});case 3:0==(r=e.sent).status?t(sf=r):(Ch("hue.error",r.message),n()),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),n(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t,n){return e.apply(this,arguments)}}()),af.then((function(e){Ch(vf,e)})).catch((function(){Ch(vf)})),e.abrupt("return",af);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Tf=function(){return sf},Cf=function(){var e=bf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Tf()||Af());case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Rf=function(e){if(!sf||!sf.app_config)return[];var t=sf.app_config[e];return t?t.interpreters?t.interpreters:(console.warn("No interpreters configured for type ".concat(e)),[]):(console.warn("No app config for type ".concat(e)),[])},Sf=function(e,t){return Rf(e).find(t)},_f=function(e){return Sf(of.browser,e)},xf=function(e){return Sf(of.editor,e)},wf=/.*%3A%2F%2F(.+)$/,If=function(e){if(!e||"hdfs"===e.type)return"";var t=e.page.match(wf);return t?t[1]+"/":""};Rh("cluster.config.refresh.config",Af),Rh("cluster.config.get.config",(function(e){af&&e&&af.then(e).catch(e)}));var Nf=function(e,t){var n=window;return n.DEV&&n.hueDebugAnalytics&&("string"!=typeof e&&console.error('hueAnalytics parameter "area" must be a string'),"string"!=typeof t&&console.error('hueAnalytics parameter "action" must be a string')),"string"==typeof e&&"string"==typeof t};const Of={log:function(e,t,n){var r,i=Tf(),o=window;if(n&&this.convert(e,t),null!=i&&null!==(r=i.hue_config)&&void 0!==r&&r.collect_usage){if(!Nf(e,t))return;var a,s=function(e,t){return{type:"event",name:e,params:{action:t,version:window.HUE_VERSION||""}}}(e,t),c=s.type,l=s.name,u=s.params;o.DEV&&o.hueDebugAnalytics&&console.info("Analytics debug:",c,l,u),o.DEV||null===(a=o.gtag)||void 0===a||a.call(o,c,l,u)}},convert:function(e,t){Nf(e,t)&&kd("/desktop/log_analytics",{area:e,action:t})}};var kf=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};const Lf=function(){return kf()+kf()+"-"+kf()+"-"+kf()+"-"+kf()+"-"+kf()+kf()+kf()};function Df(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Ff(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Df(o,r,i,a,s,"next",e)}function s(e){Df(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Mf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Pf;!function(e){e.available="available",e.failed="failed",e.success="success",e.expired="expired",e.running="running",e.starting="starting",e.waiting="waiting",e.ready="ready",e.streaming="streaming",e.canceled="canceled",e.canceling="canceling",e.closed="closed"}(Pf||(Pf={}));var Bf=/ALTER|ANALYZE|WITH|REFRESH|CREATE|DELETE|DROP|GRANT|INSERT|INVALIDATE|LOAD|SET|TRUNCATE|UPDATE|FROM|UPSERT|USE/i,Uf=/([^;]*)([;]?[^;]*)/,$f=/line ([0-9]+)(:([0-9]+))?/i,Hf=/(?:CREATE|DROP)\s+(?:TABLE|VIEW)\s+(?:IF\s+(?:NOT\s+)?EXISTS\s+)?(?:`([^`]+)`|([^;\s]+))\..*/i,Gf=/(?:CREATE|DROP)\s+(?:DATABASE|SCHEMA)\s+(?:IF\s+(?:NOT\s+)?EXISTS\s+)?(?:`([^`]+)`|([^;\s]+))/i,Wf=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=Lf(),this.database=void 0,this.executor=void 0,this.handle=void 0,this.operationId=void 0,this.history=void 0,this.status=Pf.ready,this.progress=0,this.result=void 0,this.logs=void 0,this.cancellables=[],this.notifyThrottle=-1,this.executeStarted=0,this.executeEnded=0,this.previousExecutable=void 0,this.nextExecutable=void 0,this.observerState={},this.lost=!1,this.edited=!1,this.parsedStatement=void 0,this.logs=new Zd(this),this.executor=t.executor,this.database=t.database,this.parsedStatement=t.parsedStatement}var t,n,r,i,o,a,s,c,l,u,h;return t=e,n=[{key:"getLogs",value:function(){return this.logs}},{key:"getResult",value:function(){return this.result}},{key:"setStatus",value:function(e){var t=this.status;this.status=e,t!==e&&Ch(Fd,{executable:this,oldStatus:t,newStatus:e}),this.notify()}},{key:"setProgress",value:function(e){this.progress=e,this.notify()}},{key:"getExecutionStatus",value:function(){return this.status}},{key:"getExecutionTime",value:function(){return(this.executeEnded||Date.now())-this.executeStarted}},{key:"notify",value:function(e){var t=this;window.clearTimeout(this.notifyThrottle),e?Ch(Md,this):this.notifyThrottle=window.setTimeout((function(){Ch(Md,t)}),1)}},{key:"isReady",value:function(){return this.status===Pf.ready||this.status===Pf.closed||this.status===Pf.canceled}},{key:"isRunning",value:function(){return this.status===Pf.running||this.status===Pf.streaming}},{key:"isSuccess",value:function(){return this.status===Pf.success||this.status===Pf.available}},{key:"isFailed",value:function(){return this.status===Pf.failed}},{key:"isPartOfRunningExecution",value:function(){return!this.isReady()||!!this.previousExecutable&&this.previousExecutable.isPartOfRunningExecution()}},{key:"cancelBatchChain",value:(h=Ff(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.previousExecutable){e.next=7;break}if(this.previousExecutable.nextExecutable=void 0,n=this.previousExecutable.cancelBatchChain(t),!t){e.next=6;break}return e.next=6,n;case 6:this.previousExecutable=void 0;case 7:if(this.isReady()){e.next=14;break}if(!t){e.next=13;break}return e.next=11,this.cancel();case 11:e.next=14;break;case 13:this.cancel();case 14:if(!this.nextExecutable){e.next=21;break}if(this.nextExecutable.previousExecutable=void 0,r=this.nextExecutable.cancelBatchChain(t),!t){e.next=20;break}return e.next=20,r;case 20:this.nextExecutable=void 0;case 21:this.notify();case 22:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"execute",value:(u=Ff(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isReady()){e.next=2;break}return e.abrupt("return");case 2:return this.edited=!1,this.executeStarted=Date.now(),this.setStatus(Pf.running),this.setProgress(0),this.notify(!0),e.prev=7,Of.log("notebook","execute/"+(this.executor.connector()?this.executor.connector().dialect:"")),e.prev=9,e.next=12,this.internalExecute();case 12:t=e.sent,this.handle=t.handle,this.history=t.history,t.history&&(this.operationId=t.history.uuid),t.handle.session_id&&t.handle.session_type&&t.handle.session_guid&&rf.updateSession({type:t.handle.session_type,id:t.handle.session_id,session_id:t.handle.session_guid,properties:[]}),e.next=23;break;case 19:throw e.prev=19,e.t0=e.catch(9),e.t0&&(e.t0.message||"string"==typeof e.t0)&&(n=this.adaptError(e.t0.message&&e.t0.message||e.t0),this.logs.errors.push(n),this.logs.notify()),e.t0;case 23:this.handle&&this.handle.has_result_set&&this.handle.sync&&(this.result=new Yd(this),this.handle.result&&this.result.handleResultResponse(this.handle.result),this.result.fetchRows()),this.executor.isSqlAnalyzerEnabled&&this.history&&Ch("editor.upload.query",this.history.id),this.checkStatus(),this.logs.fetchLogs(),e.next=33;break;case 29:e.prev=29,e.t1=e.catch(7),console.warn(e.t1),this.setStatus(Pf.failed);case 33:case"end":return e.stop()}}),e,this,[[7,29],[9,19]])}))),function(){return u.apply(this,arguments)})},{key:"checkStatus",value:(l=Ff(regeneratorRuntime.mark((function e(t){var n,r,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.handle){e.next=2;break}return e.abrupt("return");case 2:return n=-1,r=t||0,t||this.addCancellable({cancel:function(){window.clearTimeout(n)}}),r++,e.next=8,lp({executable:this});case 8:i=e.sent,this.handle&&void 0!==i.has_result_set&&(this.handle.has_result_set=i.has_result_set),e.t0=i.status,e.next=e.t0===Pf.success?13:e.t0===Pf.available?17:e.t0===Pf.canceled||e.t0===Pf.expired?27:e.t0===Pf.streaming?30:e.t0===Pf.running||e.t0===Pf.starting||e.t0===Pf.waiting?33:e.t0===Pf.failed?36:40;break;case 13:return this.executeEnded=Date.now(),this.setStatus(i.status),this.setProgress(99),e.abrupt("break",43);case 17:if(this.executeEnded=Date.now(),this.setStatus(i.status),this.setProgress(100),!this.result&&this.handle&&this.handle.has_result_set&&(this.result=new Yd(this),this.result.fetchRows()),!this.nextExecutable){e.next=26;break}if(this.nextExecutable.isReady()){e.next=25;break}return e.next=25,this.nextExecutable.reset();case 25:this.nextExecutable.execute();case 26:return e.abrupt("break",43);case 27:return this.executeEnded=Date.now(),this.setStatus(i.status),e.abrupt("break",43);case 30:if(i.result){e.next=32;break}return e.abrupt("return");case 32:window.WEB_SOCKETS_ENABLED?Ch("editor.ws.query.fetch_result",i.result):(this.result||(this.result=new Yd(this,!0)),this.result.handleResultResponse(i.result));case 33:return this.setStatus(i.status),n=window.setTimeout((function(){o.checkStatus(t)}),r>45?5e3:1e3),e.abrupt("break",43);case 36:return this.executeEnded=Date.now(),this.setStatus(i.status),i.message&&Ch("hue.error",i.message),e.abrupt("break",43);case 40:this.executeEnded=Date.now(),this.setStatus(Pf.failed),console.warn("Got unknown status "+i.status);case 43:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"addCancellable",value:function(e){this.cancellables.push(e)}},{key:"internalExecute",value:(c=Ff(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.parsedStatement&&/CREATE|DROP/i.test(this.parsedStatement.firstToken)&&(t=this.parsedStatement.statement.match(Hf),n=[],t||(t=this.parsedStatement.statement.match(Gf))?n.push(t[1]||t[2]):this.database&&n.push(this.database),n.length&&window.setTimeout((function(){yg.getEntry({namespace:r.executor.namespace(),compute:r.executor.compute(),connector:r.executor.connector(),path:n}).then((function(e){e.clearCache({cascade:!0,silenceErrors:!0})})).catch()}),5e3)),e.next=3,ap({executable:this,silenceErrors:!0});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"adaptError",value:function(e){var t=$f.exec(e);if(t){var n=parseInt(t[1]);return{message:e,column:t[3]&&parseInt(t[3])||0,row:n}}return{message:e,column:0,row:this.parsedStatement.location.first_line}}},{key:"canExecuteInBatch",value:function(){return this.parsedStatement&&Bf.test(this.parsedStatement.firstToken)}},{key:"getKey",value:function(){return this.database+"_"+this.parsedStatement.statement}},{key:"getRawStatement",value:function(){return this.parsedStatement.statement}},{key:"getStatement",value:function(){var e=this.getRawStatement();if(this.parsedStatement.firstToken&&"select"===this.parsedStatement.firstToken.toLowerCase()&&this.executor.defaultLimit&&!isNaN(this.executor.defaultLimit())&&this.executor.defaultLimit()>0&&/\sfrom\s/i.test(e)&&!/\slimit\s[0-9]/i.test(e)){var t=e.match(Uf);t&&(e=t[1]+" LIMIT "+this.executor.defaultLimit(),t[2]&&(e+=t[2]))}return this.executor.variables&&(e=function(e,t){if(!Object.keys(t).length)return e;var n=Object.values(t).map((function(e){return e.name})).join("|");return e.replace(RegExp("([^\\\\])?\\${("+n+")(=[^}]*)?}","g"),(function(e,n,r){var i=t[r],o=i.value,a=i.type,s=i.meta,c="datetime-local"===a&&16===o.length?":00":"";return n+(("string"==typeof o?o:null!=o)?o+c:s.placeholder)}))}(e,this.executor.variables)),e}},{key:"toJson",value:function(){return JSON.stringify({id:this.id,parsedStatement:this.parsedStatement,statement:this.getStatement(),database:this.database})}},{key:"cancel",value:(s=Ff(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.cancellables.length||this.status!==Pf.running&&this.status!==Pf.streaming){e.next=11;break}Of.log("notebook","cancel/"+(this.executor.connector()?this.executor.connector().dialect:"")),this.setStatus(Pf.canceling);case 3:if(!this.cancellables.length){e.next=10;break}if(!(t=this.cancellables.pop())){e.next=8;break}return e.next=8,t.cancel();case 8:e.next=3;break;case 10:this.setStatus(Pf.canceled);case 11:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"reset",value:(a=Ff(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.result=void 0,this.logs.reset(),this.isReady()){e.next=10;break}return e.prev=3,e.next=6,this.close();case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(3);case 10:this.handle=void 0,this.setProgress(0),this.setStatus(Pf.ready);case 13:case"end":return e.stop()}}),e,this,[[3,8]])}))),function(){return a.apply(this,arguments)})},{key:"toJs",value:function(){var e=Object.assign({},this.observerState);return delete e.aceAnchor,{executeEnded:this.executeEnded,executeStarted:this.executeStarted,handle:this.handle,history:this.history,id:this.id,logs:this.logs.toJs(),lost:this.lost,observerState:e,progress:this.progress,status:this.status,type:"sqlExecutable",database:this.database,parsedStatement:this.parsedStatement}}},{key:"close",value:(o=Ff(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.cancellables.length){e.next=13;break}if(!(t=this.cancellables.pop())){e.next=11;break}return e.prev=3,e.next=6,t.cancel();case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(3),console.warn(e.t0);case 11:e.next=0;break;case 13:return e.prev=13,e.next=16,cp({executable:this,silenceErrors:!0});case 16:e.next=21;break;case 18:e.prev=18,e.t1=e.catch(13),console.warn("Failed closing statement");case 21:this.setStatus(Pf.closed);case 22:case"end":return e.stop()}}),e,this,[[3,8],[13,18]])}))),function(){return o.apply(this,arguments)})},{key:"toContext",value:(i=Ff(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rf.getSession({type:this.executor.connector().id});case 2:if(n=e.sent,!this.executor.snippet){e.next=12;break}return e.t0=this.operationId,e.t1=this.executor.snippet.toContextJson(this.getStatement()),e.t2=JSON,e.next=9,this.executor.snippet.parentNotebook.toJs();case 9:return e.t3=e.sent,e.t4=e.t2.stringify.call(e.t2,e.t3),e.abrupt("return",{operationId:e.t0,snippet:e.t1,notebook:e.t4});case 12:return r={type:this.executor.connector().id,result:{handle:this.handle},connector:this.executor.connector(),executor:this.executor.toJs(),defaultLimit:this.executor.defaultLimit&&this.executor.defaultLimit()||null,status:this.status,id:t||Lf(),statement_raw:this.getRawStatement(),statement:this.getStatement(),lastExecuted:this.executeStarted,variables:[],compute:this.executor.compute(),namespace:this.executor.namespace(),database:this.database,properties:{settings:[]}},i={type:"query-".concat(this.executor.connector().id),snippets:[r],uuid:Lf(),name:"",isSaved:!1,sessions:[n],editorWsChannel:window.WS_CHANNEL},e.abrupt("return",{operationId:this.operationId,snippet:JSON.stringify(r),notebook:JSON.stringify(i)});case 15:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})}],r=[{key:"fromJs",value:function(t,n){var r=new e({database:n.database,executor:t,parsedStatement:n.parsedStatement});return r.executeEnded=n.executeEnded,r.executeStarted=n.executeStarted,r.handle=n.handle,r.history=n.history,r.id=n.id,n.logs.errors&&(r.logs.errors=n.logs.errors.map((function(e){return r.adaptError(e)}))),r.logs.jobs=n.logs.jobs,r.lost=n.lost,r.observerState=n.observerState||{},r.operationId=n.history&&n.history.uuid,r.progress=n.progress,r.status=n.status,r}}],n&&Mf(t.prototype,n),r&&Mf(t,r),e}();function Vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vf(Object(n),!0).forEach((function(t){qf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zf(e){return function(e){if(Array.isArray(e))return Yf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Yf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yf(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Xf=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.connector=void 0,this.compute=void 0,this.namespace=void 0,this.database=void 0,this.defaultLimit=void 0,this.isSqlEngine=void 0,this.isSqlAnalyzerEnabled=void 0,this.executables=[],this.snippet=void 0,this.activeExecutable=void 0,this.variables={},this.connector=t.connector,this.compute=t.compute,this.namespace=t.namespace,this.database=t.database,this.isSqlEngine=t.isSqlEngine,this.isSqlAnalyzerEnabled=t.isSqlAnalyzerEnabled,this.executables=[],this.defaultLimit=t.defaultLimit,this.snippet=t.snippet}var t,n;return t=e,(n=[{key:"toJs",value:function(){return{executables:this.executables.map((function(e){return e.toJs()}))}}},{key:"cancelAll",value:function(){this.executables.forEach((function(e){return e.cancelBatchChain()}))}},{key:"setExecutables",value:function(e){this.cancelAll(),this.executables=e,this.executables.forEach((function(e){return e.notify()}))}},{key:"update",value:function(e,t){var n,r=function(e,t){var n=[].concat(zf(t.precedingStatements),[t.activeStatement],zf(t.followingStatements)),r=zf(e.executables),i={all:[],edited:[],lost:[],selected:[]},o=e.database(),a=0,s=0;return n.forEach((function(n,c){if(/USE/i.test(n.firstToken)){var l=n.statement.match(/use\s+([^;]+)/i);l&&(o=l[1])}var u=r[c];if(u){var h=u.database!==o||n.statement!==u.parsedStatement.statement;r[c]=void 0,u.database=o,u.parsedStatement=n,h&&(u.edited=!0,i.edited.push(u))}else(u=new Wf({parsedStatement:n,database:o,executor:e})).edited=!0;n===t.activeStatement&&(s=c),i.all.push(u),a<t.selectedStatements.length&&n===t.selectedStatements[a]&&(i.selected.push(u),a++)})),i.lost=r.filter((function(e){return void 0!==e})),jf(jf({},i),{},{active:i.all[s]})}(this,e);return r.lost.forEach((function(e){e.lost=!0,e.cancelBatchChain()})),t&&(r.selected.forEach((function(e){return e.cancelBatchChain()})),r.selected.forEach((function(e){n&&(e.previousExecutable=n,n.nextExecutable=e),n=e}))),this.activeExecutable=r.active,this.executables=r.all,this.executables.forEach((function(e){return e.notify()})),r.selected[0]}}])&&Kf(t.prototype,n),e}(),Jf=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,7],n=[1,6],r=[1,12],i=[5,9],o=[1,13],a=[5,8,9],s={trace:function(){},yy:{},symbols_:{error:2,HplsqlStatementsParser:3,Statements:4,EOF:5,OneOrMoreSeparators:6,StatementParts:7,PART_OF_STATEMENT:8,"/":9,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",8:"PART_OF_STATEMENT",9:"/"},productions_:[0,[3,2],[3,3],[3,4],[3,3],[3,2],[3,1],[4,1],[4,3],[7,1],[7,2],[6,1],[6,2]],performAction:function(e,t,n,r,i,o,a){var c=o.length-1;switch(i){case 1:return s.removeTrailingWhiteSpace(o[c-1]),o[c-1];case 2:return s.handleLeadingStatements(o[c-2],o[c-1]),s.removeTrailingWhiteSpace(o[c-1]),o[c-1];case 3:return s.handleLeadingStatements(o[c-3],o[c-2]),s.handleTrailingStatements(o[c-2],o[c-1]),s.removeTrailingWhiteSpace(o[c-2]),o[c-2];case 4:return s.handleTrailingStatements(o[c-2],o[c-1]),s.removeTrailingWhiteSpace(o[c-2]),o[c-2];case 5:var l=[];return s.handleLeadingStatements(o[c-1],l),l;case 6:return l=[],s.addEntry(l,"statement",o[c],a[c]),l;case 7:this.$=[],s.addEntry(this.$,"statement",o[c],a[c]);break;case 8:s.handleTrailingStatements(o[c-2],o[c-1]),s.addEntry(o[c-2],"statement",o[c],a[c]);break;case 10:this.$=o[c-1]+o[c];break;case 11:this.$=[a[c]];break;case 12:o[c-1].push(a[c])}},table:[{3:1,4:2,5:[1,4],6:3,7:5,8:t,9:n},{1:[3]},{5:[1,8],6:9,9:n},{4:10,5:[1,11],7:5,8:t,9:r},{1:[2,6]},e(i,[2,7],{8:o}),e(a,[2,11]),e(a,[2,9]),{1:[2,1]},{5:[1,14],7:15,8:t,9:r},{5:[1,16],6:17,9:n},{1:[2,5]},e(a,[2,12]),e(a,[2,10]),{1:[2,4]},e(i,[2,8],{8:o}),{1:[2,2]},{5:[1,18],7:15,8:t,9:r},{1:[2,3]}],defaultActions:{4:[2,6],8:[2,1],11:[2,5],14:[2,4],16:[2,2],18:[2,3]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],o=this.table,a="",s=0,c=0,l=0,u=2,h=1,d=i.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(e,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;i.push(m);var E=f.options&&f.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,y,b,A,T,C,R,S,_,x=function(){var e;return"number"!=typeof(e=f.lex()||h)&&(e=t.symbols_[e]||e),e},w={};;){if(b=n[n.length-1],this.defaultActions[b]?A=this.defaultActions[b]:(null==v&&(v=x()),A=o[b]&&o[b][v]),void 0===A||!A.length||!A[0]){var I="";for(C in _=[],o[b])this.terminals_[C]&&C>u&&_.push("'"+this.terminals_[C]+"'");I=f.showPosition?"Parse error on line "+(s+1)+":\n"+f.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(s+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(I,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:f.yylloc,ruleId:n.slice(n.length-2,n.length).join("_"),expected:_})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+v);switch(A[0]){case 1:n.push(v),r.push(f.yytext),i.push(f.yylloc),n.push(A[1]),v=null,y?(v=y,y=null):(c=f.yyleng,a=f.yytext,s=f.yylineno,m=f.yylloc,l>0&&l--);break;case 2:if(R=this.productions_[A[1]][1],w.$=r[r.length-R],w._$={first_line:i[i.length-(R||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(R||1)].first_column,last_column:i[i.length-1].last_column},E&&(w._$.range=[i[i.length-(R||1)].range[0],i[i.length-1].range[1]]),void 0!==(T=this.performAction.apply(w,[a,c,s,p.yy,A[1],r,i].concat(d))))return T;R&&(n=n.slice(0,-1*R*2),r=r.slice(0,-1*R),i=i.slice(0,-1*R)),n.push(this.productions_[A[1]][0]),r.push(w.$),i.push(w._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0},addEntry:function(e,t,n,r){s.yy.firstToken?(s.yy.useDatabase?(e.push({type:t,statement:n,location:r,firstToken:s.yy.firstToken,database:s.yy.useDatabase}),delete s.yy.useDatabase):e.push({type:t,statement:n,location:r,firstToken:s.yy.firstToken}),delete s.yy.firstToken):e.push({type:t,statement:n,location:r})},handleLeadingStatements:function(e,t){for(var n=e.length-1;n>=0;n--)t.unshift({type:"statement",statement:";",location:e[n]})},handleTrailingStatements:function(e,t){var n=e[e.length-1];if(n.statement+=";",n.location={first_line:n.location.first_line,first_column:n.location.first_column,last_line:t[0].last_line,last_column:t[0].last_column},t.length>1)for(var r=1;r<t.length;r++)e.push({type:"statement",statement:";",location:t[r]})},removeTrailingWhiteSpace:function(e){if(e.length>1){var t=e[e.length-1];/^\s+$/.test(t.statement)&&e.pop()}}},c=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{flex:!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("multiLineComment"),8;case 1:case 2:case 6:case 10:case 14:case 22:case 23:return 8;case 3:case 4:case 8:case 12:case 16:case 20:return this.popState(),8;case 5:return this.begin("inLineComment"),8;case 7:case 11:case 15:case 19:return this.popState(),5;case 9:return this.begin("doubleQuote"),8;case 13:return this.begin("singleQuote"),8;case 17:return this.begin("backTick"),8;case 18:return s.yy.usePreceding&&(s.yy.useDatabase=t.yytext,s.yy.usePreceding=!1),8;case 21:if(s.yy.firstToken)s.yy.usePreceding&&(s.yy.useDatabase=t.yytext,s.yy.usePreceding=!1);else{var i=t.yytext.match(/[a-zA-Z_]+/);i&&(s.yy.firstToken=i[0]);var o=t.yytext.match(/USE\s+(\S+)/i);o?s.yy.useDatabase=o[1]:s.yy.usePreceding=/USE/i.test(t.yytext)}return 8;case 24:return 9;case 25:return 5;case 26:break;case 27:console.log(t.yytext)}},rules:[/^(?:\/\*)/,/^(?:[^*]+)/,/^(?:[*][^/])/,/^(?:$)/,/^(?:\*\/)/,/^(?:--)/,/^(?:[^\n]+)/,/^(?:$)/,/^(?:[\n])/,/^(?:")/,/^(?:(?:\\\\|\\["]|[^"])+)/,/^(?:$)/,/^(?:")/,/^(?:')/,/^(?:(?:\\\\|\\[']|[^'])+)/,/^(?:$)/,/^(?:')/,/^(?:`)/,/^(?:[^`]+)/,/^(?:$)/,/^(?:`)/,/^(?:[^"\/;'`-]+)/,/^(?:[-][^-]?)/,/^(?:;)/,/^(?:\/)/,/^(?:$)/,/^(?:.)/,/^(?:.)/],conditions:{multiLineComment:{rules:[1,2,3,4],inclusive:!1},inLineComment:{rules:[6,7,8],inclusive:!1},singleQuote:{rules:[14,15,16],inclusive:!1},doubleQuote:{rules:[10,11,12],inclusive:!1},backTick:{rules:[18,19,20],inclusive:!1},INITIAL:{rules:[0,5,9,13,17,21,22,23,24,25,26,27],inclusive:!0}}};return e}();function l(){this.yy={}}return s.lexer=c,l.prototype=s,s.Parser=l,new l}();const Zf=Jf;var Qf=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,7],n=[1,6],r=[1,12],i=[5,9],o=[1,13],a=[5,8,9],s={trace:function(){},yy:{},symbols_:{error:2,SqlStatementsParser:3,Statements:4,EOF:5,OneOrMoreSeparators:6,StatementParts:7,PART_OF_STATEMENT:8,";":9,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",8:"PART_OF_STATEMENT",9:";"},productions_:[0,[3,2],[3,3],[3,4],[3,3],[3,2],[3,1],[4,1],[4,3],[7,1],[7,2],[6,1],[6,2]],performAction:function(e,t,n,r,i,o,a){var c=o.length-1;switch(i){case 1:return s.removeTrailingWhiteSpace(o[c-1]),o[c-1];case 2:return s.handleLeadingStatements(o[c-2],o[c-1]),s.removeTrailingWhiteSpace(o[c-1]),o[c-1];case 3:return s.handleLeadingStatements(o[c-3],o[c-2]),s.handleTrailingStatements(o[c-2],o[c-1]),s.removeTrailingWhiteSpace(o[c-2]),o[c-2];case 4:return s.handleTrailingStatements(o[c-2],o[c-1]),s.removeTrailingWhiteSpace(o[c-2]),o[c-2];case 5:var l=[];return s.handleLeadingStatements(o[c-1],l),l;case 6:return l=[],s.addEntry(l,"statement",o[c],a[c]),l;case 7:this.$=[],s.addEntry(this.$,"statement",o[c],a[c]);break;case 8:s.handleTrailingStatements(o[c-2],o[c-1]),s.addEntry(o[c-2],"statement",o[c],a[c]);break;case 10:this.$=o[c-1]+o[c];break;case 11:this.$=[a[c]];break;case 12:o[c-1].push(a[c])}},table:[{3:1,4:2,5:[1,4],6:3,7:5,8:t,9:n},{1:[3]},{5:[1,8],6:9,9:n},{4:10,5:[1,11],7:5,8:t,9:r},{1:[2,6]},e(i,[2,7],{8:o}),e(a,[2,11]),e(a,[2,9]),{1:[2,1]},{5:[1,14],7:15,8:t,9:r},{5:[1,16],6:17,9:n},{1:[2,5]},e(a,[2,12]),e(a,[2,10]),{1:[2,4]},e(i,[2,8],{8:o}),{1:[2,2]},{5:[1,18],7:15,8:t,9:r},{1:[2,3]}],defaultActions:{4:[2,6],8:[2,1],11:[2,5],14:[2,4],16:[2,2],18:[2,3]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],o=this.table,a="",s=0,c=0,l=0,u=2,h=1,d=i.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(e,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;i.push(m);var E=f.options&&f.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,y,b,A,T,C,R,S,_,x=function(){var e;return"number"!=typeof(e=f.lex()||h)&&(e=t.symbols_[e]||e),e},w={};;){if(b=n[n.length-1],this.defaultActions[b]?A=this.defaultActions[b]:(null==v&&(v=x()),A=o[b]&&o[b][v]),void 0===A||!A.length||!A[0]){var I="";for(C in _=[],o[b])this.terminals_[C]&&C>u&&_.push("'"+this.terminals_[C]+"'");I=f.showPosition?"Parse error on line "+(s+1)+":\n"+f.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(s+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(I,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:f.yylloc,ruleId:n.slice(n.length-2,n.length).join("_"),expected:_})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+v);switch(A[0]){case 1:n.push(v),r.push(f.yytext),i.push(f.yylloc),n.push(A[1]),v=null,y?(v=y,y=null):(c=f.yyleng,a=f.yytext,s=f.yylineno,m=f.yylloc,l>0&&l--);break;case 2:if(R=this.productions_[A[1]][1],w.$=r[r.length-R],w._$={first_line:i[i.length-(R||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(R||1)].first_column,last_column:i[i.length-1].last_column},E&&(w._$.range=[i[i.length-(R||1)].range[0],i[i.length-1].range[1]]),void 0!==(T=this.performAction.apply(w,[a,c,s,p.yy,A[1],r,i].concat(d))))return T;R&&(n=n.slice(0,-1*R*2),r=r.slice(0,-1*R),i=i.slice(0,-1*R)),n.push(this.productions_[A[1]][0]),r.push(w.$),i.push(w._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0},addEntry:function(e,t,n,r){s.yy.firstToken?(s.yy.useDatabase?(e.push({type:t,statement:n,location:r,firstToken:s.yy.firstToken,database:s.yy.useDatabase}),delete s.yy.useDatabase):e.push({type:t,statement:n,location:r,firstToken:s.yy.firstToken}),delete s.yy.firstToken):e.push({type:t,statement:n,location:r})},handleLeadingStatements:function(e,t){for(var n=e.length-1;n>=0;n--)t.unshift({type:"statement",statement:";",location:e[n]})},handleTrailingStatements:function(e,t){var n=e[e.length-1];if(n.statement+=";",n.location={first_line:n.location.first_line,first_column:n.location.first_column,last_line:t[0].last_line,last_column:t[0].last_column},t.length>1)for(var r=1;r<t.length;r++)e.push({type:"statement",statement:";",location:t[r]})},removeTrailingWhiteSpace:function(e){if(e.length>1){var t=e[e.length-1];/^\s+$/.test(t.statement)&&e.pop()}}},c=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{flex:!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("multiLineComment"),8;case 1:case 2:case 6:case 10:case 14:case 22:case 23:return 8;case 3:case 4:case 8:case 12:case 16:case 20:return this.popState(),8;case 5:return this.begin("inLineComment"),8;case 7:case 11:case 15:case 19:return this.popState(),5;case 9:return this.begin("doubleQuote"),8;case 13:return this.begin("singleQuote"),8;case 17:return this.begin("backTick"),8;case 18:return s.yy.usePreceding&&(s.yy.useDatabase=t.yytext,s.yy.usePreceding=!1),8;case 21:if(s.yy.firstToken)s.yy.usePreceding&&(s.yy.useDatabase=t.yytext,s.yy.usePreceding=!1);else{var i=t.yytext.match(/[a-zA-Z_]+/);i&&(s.yy.firstToken=i[0]);var o=t.yytext.match(/USE\s+(\S+)/i);o?s.yy.useDatabase=o[1]:s.yy.usePreceding=/USE/i.test(t.yytext)}return 8;case 24:return 9;case 25:return 5;case 26:break;case 27:console.log(t.yytext)}},rules:[/^(?:\/\*)/,/^(?:[^*]+)/,/^(?:[*][^/])/,/^(?:$)/,/^(?:\*\/)/,/^(?:--)/,/^(?:[^\n]+)/,/^(?:$)/,/^(?:[\n])/,/^(?:")/,/^(?:(?:\\\\|\\["]|[^"])+)/,/^(?:$)/,/^(?:")/,/^(?:')/,/^(?:(?:\\\\|\\[']|[^'])+)/,/^(?:$)/,/^(?:')/,/^(?:`)/,/^(?:[^`]+)/,/^(?:$)/,/^(?:`)/,/^(?:[^"\/;'`-]+)/,/^(?:[-][^;-]?)/,/^(?:[/][^;*]?)/,/^(?:;)/,/^(?:$)/,/^(?:.)/,/^(?:.)/],conditions:{multiLineComment:{rules:[1,2,3,4],inclusive:!1},inLineComment:{rules:[6,7,8],inclusive:!1},singleQuote:{rules:[14,15,16],inclusive:!1},doubleQuote:{rules:[10,11,12],inclusive:!1},backTick:{rules:[18,19,20],inclusive:!1},INITIAL:{rules:[0,5,9,13,17,21,22,23,24,25,26,27],inclusive:!0}}};return e}();function l(){this.yy={}}return s.lexer=c,l.prototype=s,s.Parser=l,new l}();const ep=Qf;var tp=function(e){return"hplsql"===e.dialect?Zf:ep};function np(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function rp(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){np(o,r,i,a,s,"next",e)}function s(e){np(o,r,i,a,s,"throw",e)}a(void 0)}))}}var ip=function(){var e=rp(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={session:JSON.stringify({type:t.type,properties:t.properties||[]})},r=kd("/api/editor/create_session",n,{silenceErrors:!!t.silenceErrors,ignoreSuccessErrors:!0}),e.next=4,r;case 4:if(401!==(i=e.sent).status){e.next=7;break}return e.abrupt("return",{auth:!0,message:i.message});case 7:if(!Sd(i)){e.next=9;break}throw new Error(xd(i));case 9:if(i.session){e.next=11;break}throw new Error("No session returned.");case 11:return e.abrupt("return",i.session);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),op=function(){var e=rp(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={session:JSON.stringify(t.session)},e.next=3,kd("/api/editor/close_session",n,{silenceErrors:!!t.silenceErrors});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ap=function(){var e=rp(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.executable,r="/api/editor/execute/"+n.executor.connector().dialect,e.next=4,n.toContext();case 4:return(i=e.sent).executable=n.toJson(),o=kd(r,i,{silenceErrors:!!t.silenceErrors}),n.addCancellable({cancel:function(){var e=rp(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.status!==Pf.running&&(n.status,Pf.streaming),e.prev=1,e.next=4,o;case 4:if(r=e.sent,t.executable.handle!==r.handle&&(t.executable.handle=r.handle),!r.handle){e.next=9;break}return e.next=9,sp(t);case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(1);case 13:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(){return e.apply(this,arguments)}}()}),e.next=10,o;case 10:if((a=e.sent).handle){e.next=13;break}throw new Error("No handle in execute response");case 13:return a.handle.result=a.result,s={handle:a.handle},void 0!==a.history_id&&(s.history={id:a.history_id,uuid:a.history_uuid,parentUuid:a.history_parent_uuid}),e.abrupt("return",s);case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),sp=function(){var e=rp(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.executable.toContext();case 2:return n=e.sent,e.next=5,kd("/api/editor/cancel_statement",n,{silenceErrors:!!t.silenceErrors});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),cp=function(){var e=rp(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.executable.operationId){e.next=2;break}return e.abrupt("return");case 2:return n={operationId:t.executable.operationId},e.next=5,kd("/api/editor/close_statement",n,{silenceErrors:!!t.silenceErrors});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),lp=function(){var e=rp(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.executable.operationId){e.next=2;break}throw new Error("No operationId given.");case 2:return n={operationId:t.executable.operationId},r=kd("/api/editor/check_status",n,{silenceErrors:!!t.silenceErrors}),t.executable.addCancellable(r),e.next=7,r;case 7:if(!(i=e.sent).query_status){e.next=10;break}return e.abrupt("return",i.query_status);case 10:if(-3!==i.status){e.next=12;break}return e.abrupt("return",{status:Pf.expired});case 12:return e.abrupt("return",{status:Pf.failed,message:i.message});case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),up=function(){var e=rp(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.executable.toContext();case 2:return(n=e.sent).rows=t.rows,n.startOver=t.startOver,r=function(e){return JSON.bigdataParse(e)},e.next=8,kd("/api/editor/fetch_result_data",n,{silenceErrors:!!t.silenceErrors,transformResponse:r});case 8:return i=e.sent,e.abrupt("return",i.result);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),hp=function(){var e=rp(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.executable.toContext();case 2:return n=e.sent,r=kd("/api/editor/fetch_result_size",n,{silenceErrors:!!t.silenceErrors}),t.executable.addCancellable(r),e.next=7,r;case 7:return i=e.sent,e.abrupt("return",i.result);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),dp=function(){var e=rp(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.executable.toContext();case 2:return(n=e.sent).full_log=t.fullLog,n.jobs=t.jobs&&JSON.stringify(t.jobs),n.from=t.from||0,r=kd("/api/editor/get_logs",n,{silenceErrors:!!t.silenceErrors}),t.executable.addCancellable(r),e.next=10,r;case 10:return i=e.sent,e.abrupt("return",{logs:1===i.status&&i.message||i.logs||"",jobs:i.jobs||[],isFullLogs:i.isFullLogs});case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function fp(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pp(e,t){if(e){if("string"==typeof e)return gp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gp(e,t):void 0}}function gp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mp(e){if(Array.isArray(e))return e}function Ep(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function vp(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ep(o,r,i,a,s,"next",e)}function s(e){Ep(o,r,i,a,s,"throw",e)}a(void 0)}))}}i(8070);var yp=function(e){return e.path.join("/")+(e.path.length?"/":"")},bp=function(e){var t=e.entry,n=e.silenceErrors;if(t.isDatabase())return ed.resolve();var r=!1,i=function(){var e=vp(regeneratorRuntime.mark((function e(t,o){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kd(t,void 0,{silenceErrors:n});case 2:if(a=e.sent,!r){e.next=5;break}throw new Error("Cancelled");case 5:if(a.isFailure||a.isSuccess){e.next=11;break}return e.next=8,Qu(o);case 8:return e.abrupt("return",i(t,1e3));case 11:return e.abrupt("return",a);case 12:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return new ed(function(){var e=vp(regeneratorRuntime.mark((function e(o,a,s){var c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s((function(){r=!0})),e.prev=1,e.next=4,kd("/api/".concat("hive"===t.getConnector().id?"beeswax":t.getConnector().id,"/analyze/").concat(yp(t)),void 0,{silenceErrors:n});case 4:if(c=e.sent,r||!c||0!==c.status||!c.watch_url){e.next=13;break}return e.t0=o,e.next=9,i(c.watch_url,500);case 9:e.t1=e.sent,(0,e.t0)(e.t1),e.next=14;break;case 13:a("Analyze failed");case 14:e.next=19;break;case 16:e.prev=16,e.t2=e.catch(1),a(e.t2||"Analyze failed");case 19:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(t,n,r){return e.apply(this,arguments)}}())},Ap=function(e){var t=e.entry,n=e.silenceErrors,r=e.refreshAnalysis;return new ed(function(){var e=vp(regeneratorRuntime.mark((function e(i,o,a){var s,c,l,u,h,d,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isSource()){e.next=3;break}return o("Describe is not possible on the source"),e.abrupt("return");case 3:if(!r){e.next=13;break}return s=bp({entry:t,silenceErrors:n}),a(s.cancel.bind(s)),e.prev=6,e.next=9,s;case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(6);case 13:return p=t.path,c=mp(p)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(p)||pp(p)||fp(),l=c[0],u=c[1],h=c.slice(2),d="".concat("/api/editor/describe/").concat(l),u&&h.length?d+="/".concat(u,"/stats/").concat(h.join("/")):u&&(d+="/".concat(u,"/")),f=kd(d,{format:"json",cluster:JSON.stringify(t.compute),source_type:_p(t),connector:JSON.stringify(t.getConnector())},{silenceErrors:n,handleSuccess:function(e,t,n){if(Sd(e))n(xd(e));else{var r=e;r.hueTimestamp=Date.now(),t(r)}}}),e.prev=17,e.t1=i,e.next=21,f;case 21:e.t2=e.sent,(0,e.t1)(e.t2),e.next=28;break;case 25:e.prev=25,e.t3=e.catch(17),o(e.t3||"Describe failed");case 28:case"end":return e.stop()}var p}),e,null,[[6,11],[17,25]])})));return function(t,n,r){return e.apply(this,arguments)}}())},Tp=function(e,t){return Ld("/api/get_namespaces/".concat(e.id),void 0,{silenceErrors:t})},Cp=function(e){var t=e.entry,n=e.silenceErrors,r=new URLSearchParams,i=function(e,t){return mp(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||pp(e,t)||fp()}(t.path,3),o=i[0],a=i[1],s=i[2];if(o&&a&&s)r.append("type","field"),r.append("database",o),r.append("table",a);else if(o&&a)r.append("type",t.isView()?"view":"table"),r.append("database",o);else{if(!o)return ed.reject("Navigator metadata is not possible on the source");r.append("type","database")}return r.append("name",t.name),kd("".concat("/metadata/api/catalog/find_entity","?").concat(r),{notebook:{},snippet:JSON.stringify({type:t.getConnector().id,source:"data"}),cluster:t.compute&&JSON.stringify(t.compute)||'""'},{silenceErrors:n,handleSuccess:function(e,t,n){if(Sd(e))n(xd(e));else{var r=e.entity||e;r.hueTimestamp=Date.now(),t(r)}}})},Rp=function e(t){return new ed(function(){var n=vp(regeneratorRuntime.mark((function n(r,i,o){var a,s,c,l,u,h;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s=!1,o((function(){s=!0,a&&a.cancel()})),c=kd("/api/editor/check_status",{notebook:t.notebookJson,snippet:t.snippetJson,cluster:t.entry.compute&&JSON.stringify(t.entry.compute)||'""'},{silenceErrors:t.silenceErrors}),n.prev=3,a=c,n.next=7,c;case 7:if(!((l=n.sent)&&l.query_status&&l.query_status.status)){n.next=34;break}if("available"!==(u=l.query_status.status)){n.next=14;break}r(l.query_status),n.next=31;break;case 14:if("running"!==u&&"starting"!==u&&"waiting"!==u){n.next=31;break}return n.next=17,Qu(500);case 17:if(n.prev=17,s){n.next=27;break}return h=e(t),a=h,n.t0=r,n.next=24,h;case 24:return n.t1=n.sent,(0,n.t0)(n.t1),n.abrupt("return");case 27:n.next=31;break;case 29:n.prev=29,n.t2=n.catch(17);case 31:i(l.query_status),n.next=35;break;case 34:i("Cancelled");case 35:n.next=40;break;case 37:n.prev=37,n.t3=n.catch(3),i(n.t3);case 40:case"end":return n.stop()}}),n,null,[[3,37],[17,29]])})));return function(e,t,r){return n.apply(this,arguments)}}())},Sp=function(e){var t=e.entry,n=e.silenceErrors,r=e.operation,i=e.sampleCount;return new ed(function(){var e=vp(regeneratorRuntime.mark((function e(o,a,s){var c,l,u,h,d,f,p,g,m,E,v,y,b,A,T;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=[],l=void 0,u=void 0,h=function(){var e=vp(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!l){e.next=8;break}return e.prev=1,e.next=4,kd("/api/editor/close_statement",{notebook:l,snippet:u},{silenceErrors:!0});case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=vp(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!l){e.next=8;break}return e.prev=1,e.next=4,kd("/api/editor/cancel_statement",{notebook:l,snippet:u,cluster:t.compute&&JSON.stringify(t.compute)||'""'},{silenceErrors:!0});case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(){return e.apply(this,arguments)}}(),s((function(){c.forEach((function(e){return e.cancel()}))})),c.push({cancel:function(){var e=vp(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}()}),f=kd("".concat("/api/editor/sample/").concat(yp(t)),{notebook:{},snippet:JSON.stringify({type:_p(t),compute:t.compute}),async:!0,operation:'"'.concat(r||"default",'"'),cluster:t.compute&&JSON.stringify(t.compute)||'""'},{silenceErrors:n}),e.prev=8,c.push(f),e.next=12,f;case 12:if(p=e.sent,c.pop(),(g={id:Lf(),type:p.result&&p.result.type||t.getConnector().id,compute:t.compute,status:"running",result:p.result||{}}).result.type="table",l=JSON.stringify({type:t.getConnector().id}),u=JSON.stringify(g),!p||!p.rows){e.next=23;break}o({type:"table",hueTimestamp:Date.now(),data:p.rows,meta:p.full_headers||[]}),h(),e.next=53;break;case 23:return E=Rp({notebookJson:l,snippetJson:u,entry:t,silenceErrors:n}),c.push(E),e.next=27,E;case 27:if(v=e.sent,c.pop(),"available"===v.status){e.next=33;break}return a(),h(),e.abrupt("return");case 33:return null!==(m=g.result)&&void 0!==m&&m.handle&&void 0!==v.has_result_set&&(g.result.handle.has_result_set=v.has_result_set),u=JSON.stringify(g),y=kd("/api/editor/fetch_result_data",{notebook:l,snippet:u,rows:i||100,startOver:"false"},{silenceErrors:n,transformResponse:function(e){return JSON.bigdataParse(e)}}),e.next=39,y;case 39:if(b=e.sent,A={hueTimestamp:Date.now(),type:"table",data:b.result&&b.result.data||[],meta:b.result&&b.result.meta||[]},o(A),h(),c.pop(),!((T=window.CLOSE_SESSIONS)&&T[t.getConnector().dialect||""]&&g.result.handle&&g.result.handle.session_id)){e.next=53;break}return e.prev=46,e.next=49,op({session:{id:g.result.handle.session_id,session_id:g.result.handle.session_guid||"",type:t.getConnector().id,properties:[]},silenceErrors:n});case 49:e.next=53;break;case 51:e.prev=51,e.t0=e.catch(46);case 53:e.next=59;break;case 55:e.prev=55,e.t1=e.catch(8),a(),h();case 59:case"end":return e.stop()}}),e,null,[[8,55],[46,51]])})));return function(t,n,r){return e.apply(this,arguments)}}())},_p=function(e){var t=e.getConnector();if("hplsql"===t.dialect){var n=xf((function(e){return"hive"===e.dialect}));if(n)return n.id}return t.id},xp=function(e){var t=e.limit,n=e.query,r=e.rawQuery,i=e.silenceErrors,o=e.sources;return kd("/desktop/api/search/entities",{query_s:JSON.stringify(n),limit:t||100,raw_query:!!r,sources:o&&JSON.stringify(o)||'["sql"]'},{silenceErrors:i})},wp=function(e){var t=e.deletedCustomMetadataKeys,n=e.identity,r=e.modifiedCustomMetadata,i=e.properties,o=e.silenceErrors,a={id:JSON.stringify(n)};return i&&(a.properties=JSON.stringify(i)),r&&(a.modifiedCustomMetadata=JSON.stringify(r)),t&&(a.deletedCustomMetadataKeys=JSON.stringify(t)),kd("/metadata/api/catalog/update_properties",a,{silenceErrors:o})},Ip=function(e,t){return kd("/metadata/api/catalog/add_tags",{id:JSON.stringify(e),tags:JSON.stringify(t)})},Np=function(e,t){return kd("/metadata/api/catalog/delete_tags",{id:JSON.stringify(e),tags:JSON.stringify(t)})};function Op(e){return Op="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Op(e)}function kp(e){return function(e){if(Array.isArray(e))return Lp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Lp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lp(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dp(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bp(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Up(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Bp(o,r,i,a,s,"next",e)}function s(e){Bp(o,r,i,a,s,"throw",e)}a(void 0)}))}}var $p=function(e){return!(!e||!e.cachedOnly)},Hp=function(e){return!(gg.cacheEnabled()&&(!e||!e.refreshCache&&!e.refreshAnalysis))},Gp=function(){var e=Up(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.isTableOrView()){e.next=2;break}return e.abrupt("return",Promise.reject());case 2:return e.abrupt("return",t.dataCatalog.getMultiTableEntry({namespace:t.namespace,compute:t.compute,paths:[t.path]}));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Wp=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.compute=void 0,this.dataCatalog=void 0,this.definition=void 0,this.isTemporary=void 0,this.name=void 0,this.namespace=void 0,this.path=void 0,this.saveTimeout=-1,this.commentObservable=void 0,this.analysis=void 0,this.analysisPromise=void 0,this.childrenPromise=void 0,this.navigatorMeta=void 0,this.navigatorMetaForChildrenPromise=void 0,this.navigatorMetaPromise=void 0,this.sqlAnalyzerMeta=void 0,this.sqlAnalyzerMetaPromise=void 0,this.sqlAnalyzerPopularity=void 0,this.sqlAnalyzerPopularityForChildrenPromise=void 0,this.partitions=void 0,this.partitionsPromise=void 0,this.sample=void 0,this.samplePromise=void 0,this.sourceMeta=void 0,this.sourceMetaPromise=void 0,!t.dataCatalog.connector)throw new Error("DataCatalogEntry created without connector");this.namespace=t.namespace,this.compute=t.compute,this.dataCatalog=t.dataCatalog,this.path="string"==typeof t.path?t.path.split("."):t.path||[],this.name=this.path.length?this.path[this.path.length-1]:this.getConnector().id,this.isTemporary=t.isTemporary,t.definition?this.definition=t.definition:0===this.path.length?this.definition={type:"source"}:1===this.path.length?this.definition={type:"database"}:2===this.path.length&&(this.definition={type:"table"}),this.reset()}var t,n,r,i,o,a,s,c;return t=e,n=[{key:"reset",value:function(){this.saveTimeout=-1,this.analysis=void 0,this.analysisPromise=void 0,this.childrenPromise=void 0,this.navigatorMeta=void 0,this.navigatorMetaForChildrenPromise=void 0,this.navigatorMetaPromise=void 0,this.sqlAnalyzerMeta=void 0,this.sqlAnalyzerMetaPromise=void 0,this.sqlAnalyzerPopularity=void 0,this.sqlAnalyzerPopularityForChildrenPromise=void 0,this.partitions=void 0,this.partitionsPromise=void 0,this.sample=void 0,this.samplePromise=void 0,this.sourceMeta=void 0,this.sourceMetaPromise=void 0,this.path.length&&this.dataCatalog.getKnownEntry({namespace:this.namespace,compute:this.compute,path:this.path.slice(0,this.path.length-1)}).then((function(e){e&&(e.navigatorMetaForChildrenPromise=void 0,e.sqlAnalyzerPopularityForChildrenPromise=void 0)})).catch((function(e){console.warn(e)}))}},{key:"clearCache",value:(c=Up(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t||(t={}),this.definition&&this.definition.sqlAnalyzerLoaded&&delete this.definition.sqlAnalyzerLoaded,this.reset(),e.prev=3,!t.cascade){e.next=9;break}return e.next=7,this.dataCatalog.clearStorageCascade(this.namespace,this.compute,this.path);case 7:e.next=11;break;case 9:return e.next=11,this.save();case 11:e.next=15;break;case 13:e.prev=13,e.t0=e.catch(3);case 15:Ch("data.catalog.entry.refreshed",{entry:this,cascade:!!t.cascade});case 16:case"end":return e.stop()}}),e,this,[[3,13]])}))),function(e){return c.apply(this,arguments)})},{key:"reloadAnalysis",value:function(e){var t=this;return this.analysisPromise=new ed(function(){var n=Up(regeneratorRuntime.mark((function n(r,i,o){var a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=Ap(Fp({entry:t},e)),o((function(){a.cancel()})),n.prev=2,n.next=5,a;case 5:t.analysis=n.sent,r(t.analysis),n.next=13;break;case 9:return n.prev=9,n.t0=n.catch(2),i(n.t0||"Fetch failed"),n.abrupt("return");case 13:t.saveLater();case 14:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(e,t,r){return n.apply(this,arguments)}}()),ud(this.analysisPromise,e)}},{key:"reloadNavigatorMeta",value:function(e){var t=this;return this.canHaveNavigatorMetadata()?this.navigatorMetaPromise=new ed(function(){var n=Up(regeneratorRuntime.mark((function n(r,i){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Cp(Fp(Fp({},e),{},{entry:t}));case 3:t.navigatorMeta=n.sent,r(t.navigatorMeta),n.next=11;break;case 7:return n.prev=7,n.t0=n.catch(0),i(n.t0||"Fetch failed"),n.abrupt("return");case 11:t.saveLater(),t.commentObservable&&t.commentObservable(t.getResolvedComment());case 13:case"end":return n.stop()}}),n,null,[[0,7]])})));return function(e,t){return n.apply(this,arguments)}}()):this.navigatorMetaPromise=ed.reject(),ud(this.navigatorMetaPromise)}},{key:"reloadSqlAnalyzerMeta",value:function(e){var t=this,n=e.cancellable,r=e.silenceErrors,i=e.sqlAnalyzer;return this.dataCatalog.canHaveSqlAnalyzerMeta()?this.sqlAnalyzerMetaPromise=new ed(function(){var e=Up(regeneratorRuntime.mark((function e(n,o,a){var s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=i.fetchSqlAnalyzerMeta({path:t.path,silenceErrors:r}),a((function(){s.cancel()})),e.prev=2,e.next=5,s;case 5:t.sqlAnalyzerMeta=e.sent,n(t.sqlAnalyzerMeta),e.next=13;break;case 9:return e.prev=9,e.t0=e.catch(2),o(e.t0||"Fetch failed"),e.abrupt("return");case 13:t.saveLater();case 14:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t,n,r){return e.apply(this,arguments)}}()):this.sqlAnalyzerMetaPromise=ed.reject(),ud(this.sqlAnalyzerMetaPromise,{cancellable:n})}},{key:"reloadPartitions",value:function(e){var t=this;return this.partitionsPromise=new ed(function(){var n=Up(regeneratorRuntime.mark((function n(r,i){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,void 0,void 0,a=(o=Fp(Fp({},e),{},{entry:t})).entry,s=o.silenceErrors,kd("".concat("/metastore/table/").concat(yp(a),"partitions"),{format:"json",cluster:a.compute&&JSON.stringify(a.compute)||'""'},{silenceErrors:s,handleSuccess:function(e,t,n){var r=e||{};r.hueTimestamp=Date.now(),Sd(e)?n("Partitions failed: ".concat(xd(e))):t(r)},handleError:function(e,t,n){e.response&&e.response.data&&-1!==e.response.data.indexOf("is not partitioned")?t({hueTimestamp:Date.now(),partition_keys_json:[],partition_values_json:[]}):n(e)}});case 3:t.partitions=n.sent,r(t.partitions),n.next=11;break;case 7:return n.prev=7,n.t0=n.catch(0),i(n.t0||"Fetch failed"),n.abrupt("return");case 11:t.saveLater();case 12:case"end":return n.stop()}var o,a,s}),n,null,[[0,7]])})));return function(e,t){return n.apply(this,arguments)}}()),ud(this.partitionsPromise,e)}},{key:"reloadSample",value:function(e){var t=this;return this.samplePromise=new ed(function(){var n=Up(regeneratorRuntime.mark((function n(r,i){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Sp(Fp(Fp({},e),{},{entry:t}));case 3:t.sample=n.sent,r(t.sample),n.next=11;break;case 7:return n.prev=7,n.t0=n.catch(0),i(n.t0||"Fetch failed"),n.abrupt("return");case 11:t.saveLater();case 12:case"end":return n.stop()}}),n,null,[[0,7]])})));return function(e,t){return n.apply(this,arguments)}}()),ud(this.samplePromise,e)}},{key:"reloadSourceMeta",value:function(e){var t=this;return this.sourceMetaPromise=new ed(function(){var n=Up(regeneratorRuntime.mark((function n(r,i){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.dataCatalog.invalidatePromise){n.next=8;break}return n.prev=1,n.next=4,t.dataCatalog.invalidatePromise;case 4:n.next=8;break;case 6:n.prev=6,n.t0=n.catch(1);case 8:return n.prev=8,n.next=11,a=void 0,void 0,a=(o=Fp(Fp({},e),{},{entry:t})).entry,s=o.silenceErrors,kd("".concat("/api/editor/autocomplete/").concat(yp(a)),{notebook:{},snippet:JSON.stringify({type:_p(a),source:"data"}),operation:a.isModel()?"model":"default",cluster:a.compute&&JSON.stringify(a.compute)||'""'},{silenceErrors:s,handleSuccess:function(e,t,n){var r=e.error||e.message||"",i=e||{};i.notFound=!!e&&0===e.status&&500===e.code&&(-1!==r.indexOf("Error 10001")||-1!==r.indexOf("AnalysisException")),i.hueTimestamp=Date.now(),!i.notFound&&Sd(e)?n(xd(e)):t(i)}});case 11:t.sourceMeta=n.sent,r(t.sourceMeta),n.next=19;break;case 15:return n.prev=15,n.t1=n.catch(8),i(n.t1||"Fetch failed"),n.abrupt("return");case 19:t.saveLater();case 20:case"end":return n.stop()}var o,a,s}),n,null,[[1,6],[8,15]])})));return function(e,t){return n.apply(this,arguments)}}()),ud(this.sourceMetaPromise,e)}},{key:"drop",value:function(e){var t=this;if(!this.isDatabase()&&!this.isTableOrView())return ed.reject("Drop is only possible for a database, table or view.");var n="DROP ".concat(this.isDatabase()?"DATABASE":this.isView()?"VIEW":"TABLE"," IF EXISTS `").concat(this.path.join("`.`"),"`").concat(this.isDatabase()&&e?" CASCADE;":";");return new ed((function(e,r,i){var o=function(e){var t=e.database,n=void 0===t?"default":t,r=e.connector,i=e.namespace,o=e.compute,a=e.statement,s=new xh,c=new ed((function(e,t,c){c((function(){return t("Cancelled")}));var l=new Xf({database:function(){return n},connector:function(){return r},namespace:function(){return i},compute:function(){return o}}),u=void 0;try{u=tp(r).parse(a)[0]}catch(e){}if(u){var h=new Wf({executor:l,database:n,parsedStatement:u});l.setExecutables([h]),s.subscribe(Fd,(function(n){var r=n.executable,i=n.newStatus;r.id===h.id&&i===Pf.failed?t("Execution failed."):r.isSuccess()&&r.handle&&!r.handle.has_result_set&&e()})),s.subscribe(Bd,(function(t){var n=t.executable,r=t.rows,i=t.meta;n.id===h.id&&r.length&&e({rows:r,meta:i})})),s.addDisposable({dispose:function(){h.cancel().catch()}}),h.execute().catch(t)}else t("Failed parsing statement")}));return c.finally((function(){s.dispose()})),c}({connector:t.getConnector(),namespace:t.namespace,compute:t.compute,statement:n});i((function(){o.cancel()})),o.then((function(){t.clearCache({cascade:!0}).catch(),e()})).catch(r)}))}},{key:"save",value:(s=Up(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return window.clearTimeout(this.saveTimeout),e.prev=1,e.next=4,this.dataCatalog.persistCatalogEntry(this);case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:case"end":return e.stop()}}),e,this,[[1,6]])}))),function(){return s.apply(this,arguments)})},{key:"saveLater",value:function(){var e,t=this;((null===(e=window.CACHEABLE_TTL)||void 0===e?void 0:e.default)||0)>0&&(window.clearTimeout(this.saveTimeout),this.saveTimeout=window.setTimeout(Up(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.save();case 2:case"end":return e.stop()}}),e)}))),1e3))}},{key:"getParent",value:function(){return this.path.length?this.dataCatalog.getEntry({namespace:this.namespace,compute:this.compute,path:this.path.slice(0,this.path.length-1)}):Promise.reject()}},{key:"getChildren",value:function(e){var t=this;return this.childrenPromise&&this.childrenPromise.cancelled&&(this.childrenPromise=void 0),!this.childrenPromise&&$p(e)?ed.reject():(this.childrenPromise&&!Hp(e)||(this.childrenPromise=new ed(function(){var n=Up(regeneratorRuntime.mark((function n(r,i,o){var a,s,c,l,u,h,d,f,p,g;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s=!1,o((function(){s=!0})),n.prev=2,n.next=5,t.getSourceMeta(e);case 5:a=n.sent,n.next=10;break;case 8:n.prev=8,n.t0=n.catch(2);case 10:if(!s){n.next=13;break}return i("Cancelled"),n.abrupt("return");case 13:if(a){n.next=16;break}return i("No source meta found"),n.abrupt("return");case 16:if(!a.notFound){n.next=19;break}return r([]),n.abrupt("return");case 19:c={},(l=a).partition_keys&&l.partition_keys.forEach((function(e){c[e.name]=!0})),u={},l.primary_keys&&l.primary_keys.forEach((function(e){u[e.name]=!0})),h={},l.foreign_keys&&l.foreign_keys.forEach((function(e){h[e.name]=e})),d=a.databases||a.tables_meta||a.extended_columns||a.fields||a.columns||[],f=[],p=0,d.forEach((function(e){if(!a.databases||"_impala_builtins"!==e){var n=e.name||e,r=t.dataCatalog.getEntry({namespace:t.namespace,compute:t.compute,path:[].concat(kp(t.path),[n])});r.then((function(r){if(!r.definition||void 0===r.definition.index){var i="object"===Op(e)?e:{name:e};i.type||(0===t.path.length?i.type="database":1===t.path.length?i.type="table":2===t.path.length&&(i.type="column")),a.partition_keys&&(i.partitionKey=c[n]),a.primary_keys&&(i.primaryKey=u[n]),a.foreign_keys&&(i.foreignKey=h[n]),i.index=p++,r.definition=i,r.saveLater()}})).catch((function(e){console.warn(e)})),f.push(r)}})),a&&("impala"===t.getDialect()||"hive"===t.getDialect())&&t.isComplex()&&("map"===(g=a).type?["key","value"]:["item"]).forEach((function(e){var n=g[e];if(n){var r=t.dataCatalog.getEntry({namespace:t.namespace,compute:t.compute,path:[].concat(kp(t.path),[e])});r.then((function(t){t.definition&&void 0!==t.definition.index||(n.index=p++,n.isMapValue="value"===e,t.definition=n,t.saveLater())})).catch((function(e){console.warn(e)})),f.push(r)}})),Promise.all(f).then(r).catch(i);case 32:case"end":return n.stop()}}),n,null,[[2,8]])})));return function(e,t,r){return n.apply(this,arguments)}}())),ud(this.childrenPromise,e))}},{key:"loadNavigatorMetaForChildren",value:function(e){var t=this;return this.navigatorMetaForChildrenPromise&&this.navigatorMetaForChildrenPromise.cancelled&&(this.navigatorMetaPromise=void 0),e=ld(e),!this.canHaveNavigatorMetadata()||this.isField()?ed.resolve([]):(this.navigatorMetaForChildrenPromise&&!Hp(e)||(this.navigatorMetaForChildrenPromise=new ed(function(){var n=Up(regeneratorRuntime.mark((function n(r,i,o){var a,s,c,l,u,h,d;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=[],o((function(){a.forEach((function(e){e.cancel()}))})),n.prev=2,c=t.getChildren(e),a.push(c),n.next=7,c;case 7:if(!(l=n.sent).some((function(e){return e.navigatorMeta}))||Hp(e)){n.next=12;break}return r(l),n.abrupt("return");case 12:u=t.path.length?'parentPath:"/'.concat(t.path.join("/"),'" AND type:(table view field)'):"type:database",h=function(){l.forEach((function(e){e.navigatorMeta||(e.navigatorMeta=void 0,e.navigatorMetaPromise=void 0)}))},d=xp({query:u,rawQuery:!0,limit:l.length,silenceErrors:null===(s=e)||void 0===s?void 0:s.silenceErrors}),a.push(d),d.then((function(e){if(e&&e.entities){var t={};l.forEach((function(e){t[e.name.toLowerCase()]=e})),e.entities.forEach((function(e){var n=t[(e.original_name||e.originalName).toLowerCase()];n&&(n.navigatorMeta=e,e.hueTimestamp=Date.now(),n.navigatorMetaPromise=ed.resolve(n.navigatorMeta),e&&n.commentObservable&&n.commentObservable(n.getResolvedComment()),n.saveLater())}))}})).catch((function(){return r([])})).finally((function(){h(),r(l)})),n.next=23;break;case 19:return n.prev=19,n.t0=n.catch(2),r([]),n.abrupt("return");case 23:case"end":return n.stop()}}),n,null,[[2,19]])})));return function(e,t,r){return n.apply(this,arguments)}}())),ud(this.navigatorMetaForChildrenPromise,e))}},{key:"applySqlAnalyzerResponseToChildren",value:function(e,t){var n=this;return this.definition||(this.definition={}),this.definition.sqlAnalyzerLoaded=!0,this.saveLater(),new ed(function(){var r=Up(regeneratorRuntime.mark((function r(i,o,a){var s,c,l,u,h,d;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s=n.getChildren(t),a((function(){s.cancel()})),r.prev=2,r.next=5,s;case 5:c=r.sent,l={},c.forEach((function(e){l[e.name.toLowerCase()]=e})),u={},n.isDatabase()&&e.top_tables?e.top_tables.forEach((function(e){if(e.name){var t=l[e.name.toLowerCase()];t&&(t.sqlAnalyzerPopularity=e,t.saveLater(),u[t.getQualifiedPath()]=t)}})):n.isTableOrView()&&e.values&&((h=function(e,t){e&&e.forEach((function(e){if(e.columnName){var n=l[e.columnName.toLowerCase()];n&&(n.sqlAnalyzerPopularity||(n.sqlAnalyzerPopularity={column_count:0,columnCount:0}),n.sqlAnalyzerPopularity[t]=e,n.saveLater(),u[n.getQualifiedPath()]=n)}}))})(e.values.filterColumns,"filterColumn"),h(e.values.groupbyColumns,"groupByColumn"),h(e.values.joinColumns,"joinColumn"),h(e.values.orderbyColumns,"orderByColumn"),h(e.values.selectColumns,"selectColumn")),d=[],Object.keys(u).forEach((function(e){d.push(u[e])})),i(d),r.next=18;break;case 15:r.prev=15,r.t0=r.catch(2),o(r.t0);case 18:case"end":return r.stop()}}),r,null,[[2,15]])})));return function(e,t,n){return r.apply(this,arguments)}}())}},{key:"loadSqlAnalyzerPopularityForChildren",value:function(e){var t=this;return this.sqlAnalyzerPopularityForChildrenPromise&&this.sqlAnalyzerPopularityForChildrenPromise.cancelled&&(this.sqlAnalyzerPopularityForChildrenPromise=void 0),e.silenceErrors=!0,this.dataCatalog.canHaveSqlAnalyzerMeta()?this.sqlAnalyzerPopularityForChildrenPromise&&!Hp(e)?ud(this.sqlAnalyzerPopularityForChildrenPromise,e):(this.definition&&this.definition.sqlAnalyzerLoaded&&!Hp(e)?this.sqlAnalyzerPopularityForChildrenPromise=new ed(function(){var n=Up(regeneratorRuntime.mark((function n(r,i,o){var a,s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=t.getChildren(e),o((function(){a.cancel()})),n.prev=2,n.next=5,a;case 5:s=n.sent,r(s.filter((function(e){return e.sqlAnalyzerPopularity}))),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),i(n.t0);case 12:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(e,t,r){return n.apply(this,arguments)}}()):this.isDatabase()||this.isTableOrView()?this.sqlAnalyzerPopularityForChildrenPromise=new ed(function(){var n=Up(regeneratorRuntime.mark((function n(r,i,o){var a,s,c,l,u;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=[],o((function(){a.forEach((function(e){return e.cancel()}))})),s=e.sqlAnalyzer.fetchPopularity(Fp(Fp({},e),{},{paths:[t.path]})),a.push(s),n.prev=4,n.next=7,s;case 7:return c=n.sent,l=t.applySqlAnalyzerResponseToChildren(c,e),a.push(l),n.next=12,l;case 12:u=n.sent,r(u),n.next=19;break;case 16:n.prev=16,n.t0=n.catch(4),r([]);case 19:case"end":return n.stop()}}),n,null,[[4,16]])})));return function(e,t,r){return n.apply(this,arguments)}}()):this.sqlAnalyzerPopularityForChildrenPromise=ed.resolve([]),ud(this.sqlAnalyzerPopularityForChildrenPromise)):ed.reject()}},{key:"canHaveNavigatorMetadata",value:function(){return!!window.HAS_CATALOG&&("hive"===this.getDialect()||"impala"===this.getDialect())&&(this.isDatabase()||this.isTableOrView()||this.isColumn())}},{key:"getResolvedComment",value:function(){if(this.navigatorMeta&&("hive"===this.getDialect()||"impala"===this.getDialect())){if(this.navigatorMeta.description)return this.navigatorMeta.description;if(this.navigatorMeta.originalDescription)return this.navigatorMeta.originalDescription}return this.definition&&this.definition.comment?this.definition.comment:this.sourceMeta&&this.sourceMeta.comment||""}},{key:"getCommentObservable",value:function(){return this.commentObservable||(this.commentObservable=hd.observable(this.getResolvedComment())),this.commentObservable}},{key:"hasResolvedComment",value:function(){return this.canHaveNavigatorMetadata()?void 0!==this.navigatorMeta:void 0!==this.sourceMeta}},{key:"getComment",value:function(e){var t=this,n=new ed(function(){var n=Up(regeneratorRuntime.mark((function n(r,i,o){var a,s,c,l,u;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=[],o((function(){a.forEach((function(e){return e.cancel()}))})),!t.canHaveNavigatorMetadata()){n.next=16;break}return s=t.getNavigatorMeta(e),a.push(s),n.prev=5,n.next=8,s;case 8:if(!(c=n.sent)){n.next=12;break}return r(c.description||c.originalDescription||""),n.abrupt("return");case 12:n.next=16;break;case 14:n.prev=14,n.t0=n.catch(5);case 16:if(!t.sourceMeta){n.next=20;break}r(t.sourceMeta.comment||""),n.next=35;break;case 20:if(!t.definition||!t.definition.comment){n.next=24;break}r(t.definition.comment),n.next=35;break;case 24:return l=t.getSourceMeta(e),n.prev=25,n.next=28,l;case 28:u=n.sent,r(u&&u.comment||""),n.next=35;break;case 32:n.prev=32,n.t1=n.catch(25),i(n.t1);case 35:case"end":return n.stop()}}),n,null,[[5,14],[25,32]])})));return function(e,t,r){return n.apply(this,arguments)}}());return ud(n)}},{key:"updateNavigatorCustomMetadata",value:(a=Up(regeneratorRuntime.mark((function e(t,n,r){var i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.canHaveNavigatorMetadata()){e.next=2;break}return e.abrupt("return",Promise.reject());case 2:return e.next=4,this.getNavigatorMeta(r);case 4:if(i=e.sent){e.next=7;break}throw new Error("Could not load navigator metadata.");case 7:return e.abrupt("return",new Promise((function(e,r){wp({identity:i.identity,modifiedCustomMetadata:t,deletedCustomMetadataKeys:n}).then((function(t){t?(o.navigatorMeta=t,o.navigatorMetaPromise=ed.resolve(t),o.saveLater(),e(t)):r()})).catch(r)})));case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return a.apply(this,arguments)})},{key:"setComment",value:(o=Up(regeneratorRuntime.mark((function e(t,n){var r,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.canHaveNavigatorMetadata()){e.next=7;break}return e.next=3,this.getNavigatorMeta(n);case 3:if(r=e.sent){e.next=6;break}throw new Error("Could not load navigator metadata.");case 6:return e.abrupt("return",new Promise((function(e,o){wp({identity:r.identity,properties:{description:t}}).then(function(){var t=Up(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r&&(i.navigatorMeta=r,i.navigatorMetaPromise=ed.resolve(r),i.saveLater()),i.getComment(n).then((function(t){i.commentObservable&&i.commentObservable(t),e(t)})).catch(o);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch(o)})));case 7:return e.abrupt("return",new Promise((function(e,r){var o,a,s,c,l,u;(o={entry:i,properties:{comment:t},silenceErrors:null==n?void 0:n.silenceErrors},s=o.entry,c=o.properties,l=o.silenceErrors,u={source_type:s.getConnector().id},1===s.path.length?(a="/metastore/databases/".concat(s.path[0],"/alter"),u.properties=JSON.stringify(c)):2===s.path.length?(a="/metastore/table/".concat(s.path[0],"/").concat(s.path[1],"/alter"),null!=c&&c.name&&(u.new_table_name=c.name)):s.path.length>2&&(a="/metastore/table/".concat(s.path[0],"/").concat(s.path[1],"/alter_column"),u.column=s.path.slice(2).join("."),null!=c&&c.name&&(u.new_column_name=c.name),null!=c&&c.type&&(u.new_column_type=c.type),null!=c&&c.partitions&&(u.partition_spec=JSON.stringify(c.partitions))),null!=c&&c.comment&&(u.comment=c.comment),a?kd(a,u,{silenceErrors:l}):ed.reject()).then(Up(regeneratorRuntime.mark((function t(){var o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.reloadSourceMeta(n);case 3:return t.next=5,i.getComment(n);case 5:o=t.sent,i.commentObservable&&i.commentObservable(o),e(o),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),r(t.t0);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})))).catch(r)})));case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"addNavigatorTags",value:(i=Up(regeneratorRuntime.mark((function e(t,n){var r,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.canHaveNavigatorMetadata()){e.next=2;break}return e.abrupt("return",Promise.reject());case 2:return e.next=4,this.getNavigatorMeta(n);case 4:return r=e.sent,e.abrupt("return",new Promise((function(e,n){Ip(r.identity,t).then((function(t){t?(i.navigatorMeta=t,i.navigatorMetaPromise=ed.resolve(t),i.saveLater(),e(t)):n()})).catch(n)})));case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"deleteNavigatorTags",value:(r=Up(regeneratorRuntime.mark((function e(t,n){var r,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.canHaveNavigatorMetadata()){e.next=2;break}return e.abrupt("return",Promise.reject());case 2:return e.next=4,this.getNavigatorMeta(n);case 4:return r=e.sent,e.abrupt("return",new Promise((function(e,n){Np(r.identity,t).then((function(t){t?(i.navigatorMeta=t,i.navigatorMetaPromise=ed.resolve(t),i.saveLater(),e(t)):n()})).catch(n)})));case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"hasPossibleChildren",value:function(){return this.path.length<3||!this.definition&&!this.sourceMeta||!!this.sourceMeta&&/^(?:struct|array|map)/i.test(this.sourceMeta.type)||!!this.definition&&!!this.definition.type&&/^(?:struct|array|map)/i.test(this.definition.type)}},{key:"getIndex",value:function(){return this.definition&&this.definition.index||0}},{key:"getDialect",value:function(){return this.getConnector().dialect||this.getConnector().id}},{key:"getConnector",value:function(){return this.dataCatalog.connector}},{key:"isSource",value:function(){return 0===this.path.length}},{key:"isDatabase",value:function(){return 1===this.path.length}},{key:"isTableOrView",value:function(){return 2===this.path.length}},{key:"getTitle",value:function(e){var t=this.getQualifiedPath();if(this.isField()){var n=this.getType();n&&(t+=" ("+n+")")}else this.definition&&this.definition.type&&"materialized_view"===this.definition.type.toLowerCase()&&(t+=" ("+(0,wh.Z)("Materialized")+")");return e&&this.hasResolvedComment()&&this.getResolvedComment()&&(t+=" - "+this.getResolvedComment()),t}},{key:"getQualifiedPath",value:function(){return this.path.join(".")}},{key:"getDisplayName",value:function(e){var t=e?this.getQualifiedPath():this.name;if(this.isField()){var n=this.getType();if(n)return"".concat(t," (").concat(n,")")}return t}},{key:"isPrimaryKey",value:function(){return!!(this.isColumn()&&this.definition&&this.definition.primaryKey)}},{key:"isPartitionKey",value:function(){return!(!this.definition||!this.definition.partitionKey)}},{key:"isForeignKey",value:function(){return!!this.definition&&!!this.definition.foreignKey}},{key:"isKey",value:function(){return this.isPartitionKey()||this.isPrimaryKey()||this.isForeignKey()}},{key:"isTable",value:function(){return!(2!==this.path.length||this.analysis&&this.analysis.details&&this.analysis.details.properties&&"VIRTUAL_VIEW"===this.analysis.details.properties.table_type||(this.sourceMeta?this.sourceMeta.is_view:this.definition&&this.definition.type&&"table"!==this.definition.type.toLowerCase()))}},{key:"getHdfsFilePath",value:function(){var e;return((null===(e=this.analysis)||void 0===e?void 0:e.hdfs_link)||"").replace("/filebrowser/view=","")}},{key:"isIcebergTable",value:function(){var e,t,n;return"ICEBERG"===(null===(e=this.analysis)||void 0===e||null===(t=e.details)||void 0===t||null===(n=t.stats)||void 0===n?void 0:n.table_type)}},{key:"isTransactionalTable",value:function(){var e,t,n;return"true"===(null===(e=this.analysis)||void 0===e||null===(t=e.details)||void 0===t||null===(n=t.stats)||void 0===n?void 0:n.transactional)}},{key:"isView",value:function(){if(2===this.path.length){if(this.sourceMeta&&this.sourceMeta.is_view)return!0;if(this.definition&&this.definition.type&&("view"===this.definition.type.toLowerCase()||"materialized_view"===this.definition.type.toLowerCase()))return!0;if(this.analysis&&this.analysis.details&&this.analysis.details.properties&&"VIRTUAL_VIEW"===this.analysis.details.properties.table_type)return!0}return!1}},{key:"isModel",value:function(){return 2===this.path.length&&!!this.definition&&!!this.definition.type&&"model"===this.definition.type.toLowerCase()}},{key:"isColumn",value:function(){return 3===this.path.length}},{key:"isComplex",value:function(){var e=this.sourceMeta;return!!(this.path.length>2&&(e&&/^(?:struct|array|map)/i.test(e.type)||this.definition&&this.definition.type&&/^(?:struct|array|map)/i.test(this.definition.type)))}},{key:"isField",value:function(){return this.path.length>2}},{key:"isArray",value:function(){return!!this.sourceMeta&&/^array/i.test(this.sourceMeta.type)||!!this.definition&&!!this.definition.type&&/^array/i.test(this.definition.type)}},{key:"isMap",value:function(){return!!this.sourceMeta&&/^map/i.test(this.sourceMeta.type)||!!this.definition&&!!this.definition.type&&/^map/i.test(this.definition.type)}},{key:"isMapValue",value:function(){return!!this.definition&&!!this.definition.isMapValue}},{key:"getType",value:function(){var e=this.getRawType();return-1!==e.indexOf("<")&&(e=e.substring(0,e.indexOf("<"))),e.toLowerCase()}},{key:"getRawType",value:function(){return this.sourceMeta&&this.sourceMeta.type||this.definition&&this.definition.type||""}},{key:"getSourceMeta",value:function(e){return this.sourceMetaPromise&&this.sourceMetaPromise.cancelled&&(this.sourceMetaPromise=void 0),!this.sourceMetaPromise&&$p(e)?ed.reject():!this.sourceMetaPromise||Hp(e)?this.reloadSourceMeta(e):ud(this.sourceMetaPromise,e)}},{key:"getAnalysis",value:function(e){return this.analysisPromise&&this.analysisPromise.cancelled&&(this.analysisPromise=void 0),!this.analysisPromise&&$p(e)?ed.reject():!this.analysisPromise||Hp(e)?this.reloadAnalysis(e):ud(this.analysisPromise,e)}},{key:"getPartitions",value:function(e){return this.partitionsPromise&&this.partitionsPromise.cancelled&&(this.partitionsPromise=void 0),!this.isTableOrView()||!this.partitionsPromise&&$p(e)?ed.reject():!this.partitionsPromise||Hp(e)?this.reloadPartitions(e):ud(this.partitionsPromise,e)}},{key:"getNavigatorMeta",value:function(e){return this.navigatorMetaPromise&&this.navigatorMetaPromise.cancelled&&(this.navigatorMetaPromise=void 0),e=ld(e),!this.canHaveNavigatorMetadata()||!this.navigatorMetaPromise&&$p(e)?ed.reject():!this.navigatorMetaPromise||Hp(e)?this.reloadNavigatorMeta(e):ud(this.navigatorMetaPromise,e)}},{key:"getSqlAnalyzerMeta",value:function(e){return this.sqlAnalyzerMetaPromise&&this.sqlAnalyzerMetaPromise.cancelled&&(this.sqlAnalyzerMetaPromise=void 0),e.silenceErrors=!0,this.dataCatalog.canHaveSqlAnalyzerMeta()&&this.isTableOrView()?!this.sqlAnalyzerMetaPromise&&$p(e)?ed.reject():!this.sqlAnalyzerMetaPromise||Hp(e)?this.reloadSqlAnalyzerMeta(e):ud(this.sqlAnalyzerMetaPromise,e):ed.reject()}},{key:"getSample",value:function(e){var t=this;if(this.samplePromise&&this.samplePromise.cancelled&&(this.samplePromise=void 0),e&&e.operation&&"default"!==e.operation){var n=e.operation,r=Sp({entry:this,operation:n,silenceErrors:e.silenceErrors});return ud(r,e)}return this.samplePromise||!this.isColumn()||Hp(e)?!this.samplePromise&&$p(e)?ed.reject():!this.samplePromise||Hp(e)?this.reloadSample(e):ud(this.samplePromise,e):(this.samplePromise=new ed(function(){var n=Up(regeneratorRuntime.mark((function n(r,i,o){var a,s,c,l;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=[],o((function(){a.forEach((function(e){return e.cancel()}))})),n.prev=2,n.next=5,t.dataCatalog.getEntry({namespace:t.namespace,compute:t.compute,path:t.path.slice(0,2),definition:{type:"table"}});case 5:if(!(s=n.sent)||!s.samplePromise){n.next=11;break}return n.delegateYield(regeneratorRuntime.mark((function n(){var i,o,c,l;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a.push(ud(s.samplePromise,e)),n.next=3,s.samplePromise;case 3:if(i=n.sent,o={hueTimestamp:i.hueTimestamp,has_more:i.has_more,type:i.type,data:[],meta:[]},!i.meta){n.next=15;break}c=function(e){if(i.meta[e].name.toLowerCase()===t.name.toLowerCase())return o.meta[0]=i.meta[e],i.data.forEach((function(t){o.data.push([t[e]])})),"break"},l=0;case 8:if(!(l<i.meta.length)){n.next=15;break}if("break"!==c(l)){n.next=12;break}return n.abrupt("break",15);case 12:l++,n.next=8;break;case 15:if(!o.meta.length){n.next=19;break}return t.sample=o,r(t.sample),n.abrupt("return",{v:void 0});case 19:case"end":return n.stop()}}),n)}))(),"t0",8);case 8:if("object"!==Op(c=n.t0)){n.next=11;break}return n.abrupt("return",c.v);case 11:n.next=15;break;case 13:n.prev=13,n.t1=n.catch(2);case 15:if(!$p(e)){n.next=19;break}i(),n.next=31;break;case 19:return l=t.reloadSample(e),n.prev=20,n.t2=r,n.next=24,l;case 24:n.t3=n.sent,(0,n.t2)(n.t3),n.next=31;break;case 28:n.prev=28,n.t4=n.catch(20),i();case 31:case"end":return n.stop()}}),n,null,[[2,13],[20,28]])})));return function(e,t,r){return n.apply(this,arguments)}}()),ud(this.samplePromise,e))}},{key:"getTopAggs",value:function(e){var t=this,n=new ed(function(){var n=Up(regeneratorRuntime.mark((function n(r,i,o){var a,s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Gp(t);case 2:a=n.sent,s=a.getTopAggs(e),o((function(){s.cancel()})),s.then(r).catch(i);case 6:case"end":return n.stop()}}),n)})));return function(e,t,r){return n.apply(this,arguments)}}());return ud(n)}},{key:"getTopFilters",value:function(e){var t=this,n=new ed(function(){var n=Up(regeneratorRuntime.mark((function n(r,i,o){var a,s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Gp(t);case 2:a=n.sent,s=a.getTopFilters(e),o((function(){s.cancel()})),s.then(r).catch(i);case 6:case"end":return n.stop()}}),n)})));return function(e,t,r){return n.apply(this,arguments)}}());return ud(n)}},{key:"getTopJoins",value:function(e){var t=this,n=new ed(function(){var n=Up(regeneratorRuntime.mark((function n(r,i,o){var a,s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Gp(t);case 2:a=n.sent,s=a.getTopJoins(e),o((function(){s.cancel()})),s.then(r).catch(i);case 6:case"end":return n.stop()}}),n)})));return function(e,t,r){return n.apply(this,arguments)}}());return ud(n)}}],n&&Pp(t.prototype,n),e}();function Vp(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function jp(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Vp(o,r,i,a,s,"next",e)}function s(e){Vp(o,r,i,a,s,"throw",e)}a(void 0)}))}}function qp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var zp=window.LOGGED_USERNAME,Yp="hue.dataCatalog.allNavTags",Kp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=void 0,this.allNavigatorTagsPromise=void 0,this.store=cd().createInstance({name:"HueDataCatalog_"+zp})}var t,n,r,i;return t=e,n=[{key:"getAllNavigatorTags",value:(i=jp(regeneratorRuntime.mark((function e(t){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.allNavigatorTagsPromise||!gg.cacheEnabled()||t&&t.refreshCache){e.next=2;break}return e.abrupt("return",this.allNavigatorTagsPromise);case 2:if(window.HAS_CATALOG){e.next=4;break}return e.abrupt("return",{});case 4:return n=window.CACHEABLE_TTL||{},this.allNavigatorTagsPromise=new Promise((function(e,i){var o=function(){var o,a;(o={silenceErrors:t&&t.silenceErrors},a=o.silenceErrors,kd("/metadata/api/catalog/list_tags",void 0,{silenceErrors:a,handleSuccess:function(e,t,n){Sd(e)?n(xd(e)):t(e.tags||{})}})).then((function(t){e(t),n.default&&n.default>0&&r.store.setItem(Yp,{allTags:t,hueTimestamp:Date.now(),version:5})})).catch(i)};!(n.default&&n.default>0&&gg.cacheEnabled())||t&&t.refreshCache?o():r.store.getItem(Yp).then((function(t){t&&5===t.version&&n.default&&(!t.hueTimestamp||Date.now()-t.hueTimestamp<n.default)?e(t.allTags):o()})).catch(o)})),e.abrupt("return",this.allNavigatorTagsPromise);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"updateAllNavigatorTags",value:(r=jp(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.allNavigatorTagsPromise){e.next=8;break}return e.next=3,this.allNavigatorTagsPromise;case 3:return r=e.sent,t.forEach((function(e){r[e]||(r[e]=0),r[e]++})),n.forEach((function(e){r[e]||(r[e]--,0===r[e]&&delete r[e])})),e.next=8,this.store.setItem(Yp,{allTags:r,hueTimestamp:Date.now(),version:5});case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})}],n&&qp(t.prototype,n),e}();function Xp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Jp=function(e,t,n,r,i,o){var a=r();return gg.cacheEnabled()&&t&&t.cachedOnly?a&&ud(a)||ed.reject():((!a||!gg.cacheEnabled()||t&&t.refreshCache)&&(a=function(e,t,n,r,i){var o=new ed((function(o,a,s){if(e.dataCatalog.canHaveSqlAnalyzerMeta()){var c=function(e,t,n,r){var i=e({paths:n.paths,silenceErrors:r&&r.silenceErrors});return i.then((function(e){t(e),n.saveLater()})).catch(th),i}(i,r,e,t);s((function(){c.cancel&&c.cancel()})),c.then(o).catch((function(e){c.cancelled&&n(void 0),a(e)}))}else a()}));return n(o),o}(e,t,n,i,o)),ud(a,t))},Zp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dataCatalog=void 0,this.identifier=void 0,this.paths=void 0,this.saveTimeout=-1,this.topAggs=void 0,this.topAggsPromise=void 0,this.topColumns=void 0,this.topColumnsPromise=void 0,this.topFilters=void 0,this.topFiltersPromise=void 0,this.topJoins=void 0,this.topJoinsPromise=void 0,this.identifier=t.identifier,this.dataCatalog=t.dataCatalog,this.paths=t.paths}var t,n;return t=e,n=[{key:"save",value:function(){return window.clearTimeout(this.saveTimeout),this.dataCatalog.persistMultiTableEntry(this)}},{key:"saveLater",value:function(){var e=this,t=window.CACHEABLE_TTL;t&&t.default&&t.default>0&&(window.clearTimeout(this.saveTimeout),this.saveTimeout=window.setTimeout((function(){e.save().catch()}),1e3))}},{key:"getDialect",value:function(){return this.getConnector().dialect||this.getConnector().id}},{key:"getConnector",value:function(){return this.dataCatalog.connector}},{key:"getTopAggs",value:function(e){var t=this;return Jp(this,e,(function(e){t.topAggsPromise=e}),(function(){return t.topAggsPromise}),(function(e){t.topAggs=e}),e.sqlAnalyzer.fetchTopAggs.bind(e.sqlAnalyzer))}},{key:"getTopColumns",value:function(e){var t=this;return Jp(this,e,(function(e){t.topColumnsPromise=e}),(function(){return t.topColumnsPromise}),(function(e){t.topColumns=e}),e.sqlAnalyzer.fetchTopColumns.bind(e.sqlAnalyzer))}},{key:"getTopFilters",value:function(e){var t=this;return Jp(this,e,(function(e){t.topFiltersPromise=e}),(function(){return t.topFiltersPromise}),(function(e){t.topFilters=e}),e.sqlAnalyzer.fetchTopFilters.bind(e.sqlAnalyzer))}},{key:"getTopJoins",value:function(e){var t=this;return Jp(this,e,(function(e){t.topJoinsPromise=e}),(function(){return t.topJoinsPromise}),(function(e){t.topJoins=e}),e.sqlAnalyzer.fetchTopJoins.bind(e.sqlAnalyzer))}}],n&&Xp(t.prototype,n),e}();const Qp=Zp;var eg;function tg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ng(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tg(Object(n),!0).forEach((function(t){rg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ig(e){return function(e){if(Array.isArray(e))return og(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return og(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?og(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function og(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ag(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function sg(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){ag(o,r,i,a,s,"next",e)}function s(e){ag(o,r,i,a,s,"throw",e)}a(void 0)}))}}function cg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}!function(e){e.local="local",e.api="api",e.off="off"}(eg||(eg={}));var lg=window.LOGGED_USERNAME||"",ug=!0,hg=function(e){var t=e.namespace.id;if(e.path)"string"==typeof e.path?t+="_"+e.path:e.path.length&&(t+="_"+e.path.join("."));else if(e.paths&&e.paths.length){var n={};e.paths.forEach((function(e){n[e.join(".")]=!0}));var r=Object.keys(n);r.sort(),t+="_"+r.join(",")}return t},dg=function(e,t){var n=window.CACHEABLE_TTL||{},r=void 0!==t?t:n.default;return!e.hueTimestamp||void 0===r||Date.now()-e.hueTimestamp<r},fg=function(e,t){if(5===t.version&&(t.definition&&dg(t.definition)&&(e.definition=t.definition),t.sourceMeta&&dg(t.sourceMeta)&&(e.sourceMeta=t.sourceMeta,e.sourceMetaPromise=ed.resolve(e.sourceMeta)),t.analysis&&dg(t.analysis)&&(e.analysis=t.analysis,e.analysisPromise=ed.resolve(e.analysis)),t.partitions&&dg(t.partitions)&&(e.partitions=t.partitions,e.partitionsPromise=ed.resolve(e.partitions)),t.sample&&dg(t.sample)&&(e.sample=t.sample,e.samplePromise=ed.resolve(e.sample)),t.navigatorMeta&&dg(t.navigatorMeta)&&(e.navigatorMeta=t.navigatorMeta,e.navigatorMetaPromise=ed.resolve(e.navigatorMeta)),e.getConnector().optimizer!==eg.local)){var n=window.CACHEABLE_TTL||{};t.sqlAnalyzerMeta&&dg(t.sqlAnalyzerMeta,n.sqlAnalyzer)&&(e.sqlAnalyzerMeta=t.sqlAnalyzerMeta,e.sqlAnalyzerMetaPromise=ed.resolve(e.sqlAnalyzerMeta)),t.sqlAnalyzerPopularity&&dg(t.sqlAnalyzerPopularity,n.sqlAnalyzer)&&(e.sqlAnalyzerPopularity=t.sqlAnalyzerPopularity)}},pg=function(e,t){if(e.getConnector().optimizer!==eg.local&&5===t.version){var n=window.CACHEABLE_TTL||{};t.topAggs&&dg(t.topAggs,n.sqlAnalyzer)&&(e.topAggs=t.topAggs,e.topAggsPromise=ed.resolve(e.topAggs)),t.topColumns&&dg(t.topColumns,n.sqlAnalyzer)&&(e.topColumns=t.topColumns,e.topColumnsPromise=ed.resolve(e.topColumns)),t.topFilters&&dg(t.topFilters,n.sqlAnalyzer)&&(e.topFilters=t.topFilters,e.topFiltersPromise=ed.resolve(e.topFilters)),t.topJoins&&dg(t.topJoins,n.sqlAnalyzer)&&(e.topJoins=t.topJoins,e.topJoinsPromise=ed.resolve(e.topJoins))}},gg=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.connector=void 0,this.entries={},this.temporaryEntries={},this.multiTableEntries={},this.store=void 0,this.multiTableStore=void 0,this.invalidatePromise=void 0,!t||!t.id)throw new Error("DataCatalog created without connector or id");this.connector=t,this.store=cd().createInstance({name:"HueDataCatalog_"+this.connector.id+"_"+lg}),this.multiTableStore=cd().createInstance({name:"HueDataCatalog_"+this.connector.id+"_multiTable_"+lg})}var t,n,r,i,o,a,s,c,l;return t=e,n=[{key:"canHaveSqlAnalyzerMeta",value:function(){return!!(window.HAS_SQL_ANALYZER&&this.connector&&this.connector.optimizer&&this.connector.optimizer!==eg.off)}},{key:"clearStorageCascade",value:(l=sg(regeneratorRuntime.mark((function e(t,n,r){var i,o,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&n){e.next=5;break}if(r&&0!==r.length){e.next=4;break}return this.entries={},e.abrupt("return",this.store.clear());case 4:return e.abrupt("return");case 5:return i=hg({namespace:t,path:r}),Object.keys(this.entries).forEach((function(e){0===e.indexOf(i)&&delete a.entries[e]})),o=[],e.prev=8,e.next=11,this.store.keys();case 11:return e.sent.forEach((function(e){0===e.indexOf(i)&&o.push(a.store.removeItem(e))})),e.next=15,Promise.all(o);case 15:e.next=19;break;case 17:e.prev=17,e.t0=e.catch(8);case 19:case"end":return e.stop()}}),e,this,[[8,17]])}))),function(e,t,n){return l.apply(this,arguments)})},{key:"persistCatalogEntry",value:(c=sg(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=window.CACHEABLE_TTL||{},ug&&n.default&&!(n.default<=0)){e.next=3;break}return e.abrupt("return");case 3:return r=hg(t),e.next=6,this.store.setItem(r,{version:5,definition:t.definition,sourceMeta:t.sourceMeta,analysis:t.analysis,partitions:t.partitions,sample:t.sample,navigatorMeta:t.navigatorMeta,sqlAnalyzerMeta:this.connector.optimizer!==eg.local?t.sqlAnalyzerMeta:void 0,sqlAnalyzerPopularity:this.connector.optimizer!==eg.local?t.sqlAnalyzerPopularity:void 0});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"loadSqlAnalyzerPopularityForTables",value:function(e){var t=this,n=[],r=[],i=[],o=[];e.paths.forEach((function(a){var s=new Promise(function(){var o=sg(regeneratorRuntime.mark((function o(s,c){var l,u,h;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,t.getEntry({namespace:e.namespace,compute:e.compute,path:a});case 3:if(!(l=o.sent).sqlAnalyzerPopularityForChildrenPromise){o.next=11;break}return o.next=7,l.sqlAnalyzerPopularityForChildrenPromise;case 7:u=o.sent,r.push.apply(r,ig(u)),o.next=21;break;case 11:if(!l.definition||!l.definition.sqlAnalyzerLoaded){o.next=20;break}return h=l.getChildren(ng(ng({},e),{},{silenceErrors:!0})),n.push(h),o.next=16,h;case 16:o.sent.forEach((function(e){e.sqlAnalyzerPopularity&&r.push(e)})),o.next=21;break;case 20:i.push(a);case 21:o.next=26;break;case 23:o.prev=23,o.t0=o.catch(0),c(o.t0);case 26:s();case 27:case"end":return o.stop()}}),o,null,[[0,23]])})));return function(e,t){return o.apply(this,arguments)}}());o.push(s)}));var a=new ed(function(){var a=sg(regeneratorRuntime.mark((function a(s,c,l){var u,h,d,f,p;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return l((function(){n.forEach((function(e){e.cancel()}))})),a.prev=1,a.next=4,Promise.all(o);case 4:a.next=8;break;case 6:a.prev=6,a.t0=a.catch(1);case 8:if(i.length){a.next=11;break}return s(r),a.abrupt("return");case 11:return u=e.sqlAnalyzer.fetchPopularity({silenceErrors:!0,paths:i}),n.push(u),a.prev=13,a.next=16,u;case 16:h=a.sent,d={},f=function(e){var t=h.values&&h.values[e];t&&t.forEach((function(t){var n=d[t.dbName+"."+t.tableName];if(n||(n={values:{}},d[t.dbName+"."+t.tableName]=n),n.values){var r=n.values[e];r||(r=[],n.values[e]=r),r.push(t)}}))},h.values&&(f("filterColumns"),f("groupbyColumns"),f("joinColumns"),f("orderbyColumns"),f("selectColumns")),p=Object.keys(d).map((function(i){return new Promise(function(){var o=sg(regeneratorRuntime.mark((function o(a){var s,c;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,t.getEntry({namespace:e.namespace,compute:e.compute,path:i});case 3:return s=o.sent,c=s.applySqlAnalyzerResponseToChildren(d[i],ng(ng({},e),{},{silenceErrors:!0})),n.push(c),o.t0=r.push,o.t1=r,o.t2=ig,o.next=11,c;case 11:o.t3=o.sent,o.t4=(0,o.t2)(o.t3),o.t0.apply.call(o.t0,o.t1,o.t4),o.next=18;break;case 16:o.prev=16,o.t5=o.catch(0);case 18:a();case 19:case"end":return o.stop()}}),o,null,[[0,16]])})));return function(e){return o.apply(this,arguments)}}())})),Promise.all(p).finally((function(){s(r)})),a.next=27;break;case 24:a.prev=24,a.t1=a.catch(13),s(r);case 27:case"end":return a.stop()}}),a,null,[[1,6],[13,24]])})));return function(e,t,n){return a.apply(this,arguments)}}());return ud(a)}},{key:"getKnownEntry",value:(s=sg(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.entries[hg(t)]);case 1:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"addTemporaryTable",value:function(e){var t=this,n=e.database||"default",r=[n,e.name],i=[],o=function(e,t){e.sourceMeta=t||e.definition,e.sourceMetaPromise=ed.resolve(e.sourceMeta)},a=hg({namespace:e.namespace,path:[]});if(!this.temporaryEntries[a]){var s=new Wp({isTemporary:!0,dataCatalog:this,namespace:e.namespace,compute:e.compute,path:[],definition:{index:0,sqlAnalyzerLoaded:!0,type:"source"}});o(s),i.push(a),s.childrenPromise=ed.resolve([]),this.temporaryEntries[a]=Promise.resolve(s)}return this.temporaryEntries[a].then(function(){var a=sg(regeneratorRuntime.mark((function a(s){var c,l,u,h,d,f,p,g,m,E,v;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,s.getChildren();case 2:return c=a.sent,l=hg({namespace:e.namespace,path:[n]}),t.temporaryEntries[l]||(u=new Wp({isTemporary:!0,dataCatalog:t,namespace:e.namespace,compute:e.compute,path:[n],definition:{index:0,sqlAnalyzerLoaded:!0,type:"database"}}),o(u),u.childrenPromise=ed.resolve([]),i.push(l),c.push(u),t.temporaryEntries[l]=Promise.resolve(u)),a.next=7,t.temporaryEntries[l];case 7:return h=a.sent,a.next=10,h.getChildren();case 10:if(d=a.sent,f=hg({namespace:e.namespace,path:r}),!t.temporaryEntries[f]){a.next=18;break}return a.next=15,t.temporaryEntries[f];case 15:p=a.sent,-1!==(g=d.indexOf(p))&&d.splice(g,1);case 18:m=new Wp({isTemporary:!0,dataCatalog:t,namespace:e.namespace,compute:e.compute,path:r,definition:{comment:"",index:d.length,name:e.name,sqlAnalyzerLoaded:!0,type:"table"}}),d.push(m),E={columns:(e.columns||[]).map((function(e){return e.name})),extended_columns:e.columns||[],comment:"",notFound:!1,is_view:!1},o(m,E),m.sample={data:e.sample,meta:e.columns,type:"table"},m.samplePromise=ed.resolve(m.sample),i.push(f),t.temporaryEntries[f]=Promise.resolve(m),v=[],m.childrenPromise=ed.resolve(v),e.columns.forEach((function(n,a){var s=[].concat(r,[n.name]),c=new Wp({isTemporary:!0,dataCatalog:t,namespace:e.namespace,compute:e.compute,path:s,definition:{comment:"",index:a,name:n.name,partitionKey:!1,type:n.type}});c.sample={data:e.sample.map((function(e){return[e[a]]})),meta:[n],type:"table"},c.samplePromise=ed.resolve(c.sample),E.columns.push(n.name),E.extended_columns.push(c.definition),o(c,{comment:"",name:n.name,notFound:!1,sample:c.sample.data,type:n.type});var l=hg({namespace:e.namespace,path:s});i.push(l),t.temporaryEntries[l]=ed.resolve(c)}));case 29:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()),{delete:function(){for(;i.length;){var e=i.pop();e&&delete t.temporaryEntries[e]}}}}},{key:"getEntry",value:(a=sg(regeneratorRuntime.mark((function e(t){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=hg(t),!t.temporaryOnly){e.next=3;break}return e.abrupt("return",this.temporaryEntries[n]||$.Deferred().reject().promise());case 3:if(!this.entries[n]){e.next=5;break}return e.abrupt("return",this.entries[n]);case 5:return this.entries[n]=new Promise((function(e){ug?r.store.getItem(n).then((function(n){var i=n?n.definition:t.definition,o=new Wp({dataCatalog:r,namespace:t.namespace,compute:t.compute,path:t.path,definition:i});n?fg(o,n):!t.cachedOnly&&t.definition&&o.saveLater(),e(o)})).catch((function(n){console.warn(n);var i=new Wp({dataCatalog:r,namespace:t.namespace,compute:t.compute,path:t.path,definition:t.definition});!t.cachedOnly&&t.definition&&i.saveLater(),e(i)})):e(new Wp({dataCatalog:r,namespace:t.namespace,compute:t.compute,path:t.path,definition:t.definition}))})),e.abrupt("return",this.entries[n]);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"getMultiTableEntry",value:(o=sg(regeneratorRuntime.mark((function e(t){var n,r,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=hg(t),!this.multiTableEntries[n]){e.next=3;break}return e.abrupt("return",this.multiTableEntries[n]);case 3:return r=new Qp({identifier:n,dataCatalog:this,paths:t.paths}),this.multiTableEntries[n]=new Promise(function(){var e=sg(regeneratorRuntime.mark((function e(t){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ug){e.next=3;break}return t(r),e.abrupt("return");case 3:return e.prev=3,e.next=6,i.multiTableStore.getItem(n);case 6:(o=e.sent)&&pg(r,o),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.warn(e.t0);case 13:t(r);case 14:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t){return e.apply(this,arguments)}}()),e.abrupt("return",this.multiTableEntries[n]);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"persistMultiTableEntry",value:(i=sg(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=window.CACHEABLE_TTL||{},!(!ug||n.default&&n.default<=0||n.sqlAnalyzer&&n.sqlAnalyzer<=0||t.getConnector().optimizer===eg.local)){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this.multiTableStore.setItem(t.identifier,{version:5,topAggs:t.topAggs,topColumns:t.topColumns,topFilters:t.topFilters,topJoins:t.topJoins});case 5:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})}],r=[{key:"disableCache",value:function(){ug=!1}},{key:"enableCache",value:function(){ug=!0}},{key:"cacheEnabled",value:function(){return ug}}],n&&cg(t.prototype,n),r&&cg(t,r),e}(),mg=new Kp,Eg={},vg=function(e){if(!e||!e.id)throw new Error("getCatalog called without connector with id");return Eg[e.id]||(Eg[e.id]=new gg(e))};const yg={addTemporaryTable:function(e){return vg(e.connector).addTemporaryTable(e)},getEntry:function(e){return vg(e.connector).getEntry(e)},getMultiTableEntry:function(e){return vg(e.connector).getMultiTableEntry(e)},getChildren:function(e){return new ed(function(){var t=sg(regeneratorRuntime.mark((function t(n,r,i){var o,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,vg(e.connector).getEntry(e);case 3:o=t.sent,a=o.getChildren(e),i((function(){a.cancel()})),n(ud(a,e)),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),r(t.t0);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(e,n,r){return t.apply(this,arguments)}}())},getCatalog:vg,getAllNavigatorTags:mg.getAllNavigatorTags.bind(mg),updateAllNavigatorTags:mg.updateAllNavigatorTags.bind(mg),enableCache:function(){ug=!0},disableCache:function(){ug=!1}};function bg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ag(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Tg(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ag(o,r,i,a,s,"next",e)}function s(e){Ag(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Cg,Rg,Sg,_g,xg,wg,Ig,Ng,Og,kg,Lg,Dg,Fg,Mg,Pg,Bg=new Set,Ug={calcite:(Ng=Tg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(832).then(i.bind(i,7609)));case 1:case"end":return e.stop()}}),e)}))),function(){return Ng.apply(this,arguments)}),flink:(Ig=Tg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(522).then(i.bind(i,8973)));case 1:case"end":return e.stop()}}),e)}))),function(){return Ig.apply(this,arguments)}),generic:(wg=Tg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(22).then(i.bind(i,7844)));case 1:case"end":return e.stop()}}),e)}))),function(){return wg.apply(this,arguments)}),hive:(xg=Tg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(498).then(i.bind(i,6295)));case 1:case"end":return e.stop()}}),e)}))),function(){return xg.apply(this,arguments)}),impala:(_g=Tg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(138).then(i.bind(i,5253)));case 1:case"end":return e.stop()}}),e)}))),function(){return _g.apply(this,arguments)}),postgresql:(Sg=Tg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(22).then(i.bind(i,3090)));case 1:case"end":return e.stop()}}),e)}))),function(){return Sg.apply(this,arguments)}),presto:(Rg=Tg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(22).then(i.bind(i,4035)));case 1:case"end":return e.stop()}}),e)}))),function(){return Rg.apply(this,arguments)}),sparksql:(Cg=Tg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(534).then(i.bind(i,104)));case 1:case"end":return e.stop()}}),e)}))),function(){return Cg.apply(this,arguments)})},$g={impala:(Og=Tg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(138).then(i.bind(i,8299)));case 1:case"end":return e.stop()}}),e)}))),function(){return Og.apply(this,arguments)})},Hg={flink:(Pg=Tg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(522).then(i.bind(i,2542)));case 1:case"end":return e.stop()}}),e)}))),function(){return Pg.apply(this,arguments)}),generic:(Mg=Tg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(22).then(i.bind(i,9843)));case 1:case"end":return e.stop()}}),e)}))),function(){return Mg.apply(this,arguments)}),hive:(Fg=Tg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(498).then(i.bind(i,65)));case 1:case"end":return e.stop()}}),e)}))),function(){return Fg.apply(this,arguments)}),impala:(Dg=Tg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(138).then(i.bind(i,865)));case 1:case"end":return e.stop()}}),e)}))),function(){return Dg.apply(this,arguments)}),pig:(Lg=Tg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(121).then(i.bind(i,7595)));case 1:case"end":return e.stop()}}),e)}))),function(){return Lg.apply(this,arguments)}),sparksql:(kg=Tg(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(534).then(i.bind(i,7545)));case 1:case"end":return e.stop()}}),e)}))),function(){return kg.apply(this,arguments)})},Gg=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r,i,o;return t=e,n=[{key:"getReservedKeywords",value:(o=Tg(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Ug[t]||Ug.generic,e.next=3,n();case 3:return r=e.sent,e.abrupt("return",r.RESERVED_WORDS||Bg);case 5:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"getSetOptions",value:(i=Tg(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!$g[t]){e.next=5;break}return e.next=3,$g[t]();case 3:return n=e.sent,e.abrupt("return",n.SET_OPTIONS||{});case 5:return e.abrupt("return",{});case 6:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"getUdfCategories",value:(r=Tg(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Hg[t]||Hg.generic,e.next=3,n();case 3:return r=e.sent,e.abrupt("return",r.UDF_CATEGORIES||[]);case 5:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"hasUdfCategories",value:function(e){return!!Hg[e]}}],n&&bg(t.prototype,n),e}();const Wg=new Gg;function Vg(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}const jg={autocompleteFilter:function(e,t){var n=e.toLowerCase();return t.filter((function(t){var r=t.value.toLowerCase().indexOf(n);return-1!==r?0===r||t.filterValue&&0===t.filterValue.toLowerCase().indexOf(n)?t.filterWeight=3:t.filterWeight=2:t.details&&t.details.comment&&-1===n.indexOf(" ")&&-1!==(r=t.details.comment.toLowerCase().indexOf(n))&&(t.filterWeight=1,t.matchComment=!0),-1!==r&&(t.matchIndex=r,t.matchLength=e.length,!0)}))},backTickIfNeeded:(qg=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Vg(o,r,i,a,s,"next",e)}function s(e){Vg(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(t,n,r,i){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i){e.next=2;break}return e.abrupt("return",n+"`");case 2:if(o=t.dialect_properties&&t.dialect_properties.sql_identifier_quote||"`",0!==n.indexOf(o)){e.next=5;break}return e.abrupt("return",n);case 5:return e.next=7,(r||Wg).getReservedKeywords(t.dialect||"generic");case 7:if(!e.sent.has(n.toUpperCase())){e.next=10;break}return e.abrupt("return",o+n+o);case 10:if(/^[A-Za-z][A-Za-z0-9_]*$/.test(n)){e.next=12;break}return e.abrupt("return",o+n+o);case 12:return e.abrupt("return",n);case 13:case"end":return e.stop()}}),e)}))),function(e,t,n,r){return qg.apply(this,arguments)}),locationEquals:function(e,t){return!!e&&!!t&&e.first_line===t.first_line&&e.first_column===t.first_column&&e.last_line===t.last_line&&e.last_column===t.last_column},identifierEquals:function(e,t){return!!e&&!!t&&e.replace(/^\s*`/,"").replace(/`\s*$/,"").toLowerCase()===t.replace(/^\s*`/,"").replace(/`\s*$/,"").toLowerCase()},sortSuggestions:function(e,t,n){e.sort((function(e,r){if(t){if(void 0!==e.filterWeight&&void 0!==r.filterWeight&&r.filterWeight!==e.filterWeight)return r.filterWeight-e.filterWeight;if(void 0!==e.filterWeight&&void 0===r.filterWeight)return-1;if(void 0===e.filterWeight&&void 0!==r.filterWeight)return 1}if(n&&n.partitionColumnsFirst){if(e.partitionKey&&!r.partitionKey)return-1;if(r.partitionKey&&!e.partitionKey)return 1}var i=(e.category.weight||0)+(e.weightAdjust||0),o=(r.category.weight||0)+(r.weightAdjust||0);return void 0!==i&&void 0!==o&&o!==i?o-i:void 0!==i&&void 0===o?-1:void 0===i&&void 0!==o?1:e.value.localeCompare(r.value)}))},identifierChainToPath:function(e){return e.map((function(e){return e.name}))}};var qg,zg=["innerHTML"];const Yg=mn({name:"MatchedText",props:{suggestion:{type:Object,required:!0},filter:{type:String,required:!0},isComment:{type:Boolean,required:!1,default:!1}},computed:{content:function(){var e=(this.isComment?this.suggestion.details.comment:this.suggestion.value)||"";if(this.filter&&void 0!==this.suggestion.matchIndex&&this.suggestion.matchIndex>-1&&void 0!==this.suggestion.matchLength&&(!this.isComment&&!this.suggestion.matchComment||this.isComment&&this.suggestion.matchComment)){var t=e.substring(0,this.suggestion.matchIndex),n=e.substring(this.suggestion.matchIndex,this.suggestion.matchIndex+this.suggestion.matchLength),r=e.substring(this.suggestion.matchIndex+this.suggestion.matchLength);return"".concat(t,"<b>").concat(n,"</b>").concat(r)}return e||""}}});Yg.render=function(e,t,n,r,i,o){return Hr(),qr("span",{innerHTML:e.content},null,8,zg)};const Kg=Yg;var Xg=i(1271),Jg=i.n(Xg),Zg=function(e){return void 0!==e&&(void 0!==e.traceback||void 0!==e.status&&0!==e.status||503===e.code||500===e.code)},Qg=function(e){return function(t){var n="Unknown error occurred";if(null!=t){if(void 0!==t.statusText&&"abort"===t.statusText)return;if(void 0!==t.responseText)try{var r=JSON.parse(t.responseText);n=void 0!==r.message?r.message:t.responseText}catch(e){n=t.responseText}else void 0!==t.message&&null!==t.message?n=t.message:void 0!==t.statusText&&null!==t.statusText?n=t.statusText:"undefined"!==t.error&&"[object String]"===Object.prototype.toString.call(t.error)?n=t.error:"[object String]"===Object.prototype.toString.call(t)&&(n=t)}return e&&e.silenceErrors||(md(t),n&&-1===n.indexOf("AuthorizationException")&&Jg()(document).trigger("error",n)),e&&e.errorCallback&&e.errorCallback(n),n}},em=function(e,t,n){return n||(n={}),Jg().get(e,t,(function(e){Zg(e)?Qg(n)(e):void 0!==n.successCallback&&n.successCallback(e)})).fail(Qg(n))},tm=function(e,t,n){var r=Jg().Deferred(),i=Jg().post({url:e,data:t,dataType:n&&n.dataType}).done((function(e){Zg(e)?r.reject(Qg(n)(e)):(n&&n.successCallback&&n.successCallback(e),r.resolve(e))})).fail(Qg(n));i.fail((function(e){r.reject(Qg(n)(e))}));var o=r.promise();return o.getReadyState=function(){return i.readyState},o.abort=function(){i.abort()},o.cancel=o.abort,o},nm=function(e){null!=e&&(e.getReadyState?e.getReadyState():e.readyState)<4&&e.abort()};function rm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}const im=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.callQueue={}}var t,n;return t=e,(n=[{key:"getQueued",value:function(e,t){return this.callQueue[e+(t||"")]}},{key:"addToQueue",value:function(e,t,n){var r=this;r.callQueue[t+(n||"")]=e,e.always((function(){delete r.callQueue[t+(n||"")]}))}}])&&rm(t.prototype,n),e}());function om(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var am=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cancelCallbacks=[],this.deferred=void 0,this.request=void 0,this.otherCancellables=void 0,this.cancelled=!1,this.cancelPrevented=!1,this.deferred=t,this.request=n,this.otherCancellables=r}var t,n;return t=e,n=[{key:"preventCancel",value:function(){return this.cancelPrevented=!0,this}},{key:"cancel",value:function(){if(this.cancelPrevented||this.cancelled||"pending"!==this.state())return Jg().Deferred().resolve().promise();this.cancelled=!0,this.request&&nm(this.request),this.state&&"pending"===this.state()&&this.deferred.reject&&this.deferred.reject();var e=[];for(this.otherCancellables&&this.otherCancellables.forEach((function(t){t.cancel&&e.push(t.cancel())}));this.cancelCallbacks.length;){var t=this.cancelCallbacks.pop();t&&t()}return Jg().when(e)}},{key:"onCancel",value:function(e){return this.cancelled?e():this.cancelCallbacks.push(e),this}},{key:"then",value:function(e){return this.deferred.then(e),this}},{key:"done",value:function(e){return this.deferred.done(e),this}},{key:"fail",value:function(e){return this.deferred.fail(e),this}},{key:"always",value:function(e){return this.deferred.always(e),this}},{key:"pipe",value:function(e){return this.deferred.pipe(e),this}},{key:"progress",value:function(e){return this.deferred.progress(e),this}},{key:"state",value:function(){return this.deferred.state&&this.deferred.state()}}],n&&om(t.prototype,n),e}();const sm={clearCaches:function(){var e=[],t=function(t){e.push(cd().createInstance({name:t+window.LOGGED_USERNAME}).clear())};t("HueContextCatalog_"),t("HueDataCatalog_"),t("HueDataCatalog_hive_"),t("HueDataCatalog_hive_multiTable_"),t("HueDataCatalog_impala_"),t("HueDataCatalog_impala_multiTable_"),Promise.all(e).then((function(){console.log("Done! Refresh the browser.")}))}};function cm(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function lm(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){cm(o,r,i,a,s,"next",e)}function s(e){cm(o,r,i,a,s,"throw",e)}a(void 0)}))}}function um(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var hm=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.queueManager=im,this.cancelActiveRequest=nm,Rh("assist.clear.git.cache",(function(){Nh(t.getAssistCacheIdentifier({sourceType:"git"}),{})})),Rh("assist.clear.collections.cache",(function(){Nh(t.getAssistCacheIdentifier({sourceType:"collections"}),{})})),Rh("assist.clear.hbase.cache",(function(){Nh(t.getAssistCacheIdentifier({sourceType:"hbase"}),{})})),Rh("assist.clear.document.cache",(function(){Nh(t.getAssistCacheIdentifier({sourceType:"document"}),{})}));var n=function(){t.clearDbCache({sourceType:"hive",clearAll:!0}),t.clearDbCache({sourceType:"impala",clearAll:!0}),Nh(t.getAssistCacheIdentifier({sourceType:"hdfs"}),{}),Nh(t.getAssistCacheIdentifier({sourceType:"adls"}),{}),Nh(t.getAssistCacheIdentifier({sourceType:"abfs"}),{}),Nh(t.getAssistCacheIdentifier({sourceType:"git"}),{}),Nh(t.getAssistCacheIdentifier({sourceType:"s3"}),{}),Nh(t.getAssistCacheIdentifier({sourceType:"collections"}),{}),Nh(t.getAssistCacheIdentifier({sourceType:"hbase"}),{}),Nh(t.getAssistCacheIdentifier({sourceType:"document"}),{})};Rh("assist.clear.all.caches",n),window.performance&&window.performance.navigation&&1===window.performance.navigation.type&&-1!==location.href.indexOf("/metastore")&&n()}var t,n,r,i,o,a,s,c,l,u,h,d,f,p;return t=e,n=[{key:"clearStorageCache",value:function(e){Nh(this.getAssistCacheIdentifier({sourceType:e}),{})}},{key:"hasExpired",value:function(e,t){return void 0!==sm&&void 0!==sm.cacheTimeout?(new Date).getTime()-e>sm.cacheTimeout:(new Date).getTime()-e>CACHEABLE_TTL[t]}},{key:"fetchCached",value:function(e){var t=this.getAssistCacheIdentifier(e),n=Ih(t)||{},r=e.hash?e.url+e.hash:e.url;if(e.refreshCache||void 0===n[r]||this.hasExpired(n[r].timestamp,e.cacheType||"default"))return void 0!==e.editor&&null!==e.editor&&e.editor.showSpinner(),e.fetchFunction((function(e){n[r]={timestamp:(new Date).getTime(),data:e};try{Nh(t,n)}catch(e){}}));e.promise&&e.promise.resolve(n[r].data),e.successCallback(n[r].data)}},{key:"getAssistCacheIdentifier",value:function(e){return"hue.assist."+(e.cacheType||"default")+"."+e.sourceType}},{key:"saveSnippetToFile",value:function(e,t){Jg().post("/filebrowser/save",e,(function(e){void 0!==t.successCallback&&t.successCallback(e)}),"json").fail(Qg(t))}},{key:"fetchUsersAndGroups",value:function(e){Jg().ajax({method:"GET",url:"/desktop/api/users/autocomplete",data:e.data||{},contentType:"application/json"}).done((function(t){e.successCallback(t)})).fail((function(t){e.errorCallback(t)}))}},{key:"fetchUsersByIds",value:function(e){Jg().ajax({method:"GET",url:"/desktop/api/users",data:{userids:e.userids},contentType:"application/json"}).done((function(t){e.successCallback(t)})).fail((function(t){e.errorCallback(t)}))}},{key:"fetchTopo",value:function(e){var t="/desktop/topo/"+e.location;return em(t,void 0,e)}},{key:"fetchStoragePreview",value:function(e){var t;t="s3"===e.type?pf:"adls"===e.type?df:"abfs"===e.type?ff:hf;var n=e.path.concat();n.length&&"/"===n[0]&&n.shift(),t+=n.join("/").replace(/#/g,"%23")+"?compression=none&mode=text",t+="&offset="+(e.offset||0),t+="&length="+(e.length||118784);var r=Jg().Deferred();return Jg().ajax({dataType:"json",url:t,success:function(t){Zg(t)?r.reject(Qg(e)(t)):r.resolve(t)},fail:r.reject}),r.promise()}},{key:"fetchHdfsPath",value:function(e){e.pathParts.length>0&&("/"===e.pathParts[0]||""===e.pathParts[0])&&e.pathParts.shift();var t=hf+encodeURI(e.pathParts.join("/"))+"?format=json&sortby=name&descending=false&pagesize="+(e.pageSize||500)+"&pagenum="+(e.page||1);return e.filter&&(t+="&filter="+e.filter),this.fetchCached(Jg().extend({},e,{sourceType:"hdfs",url:t,fetchFunction:function(n){if(0!==e.timeout)return Jg().ajax({dataType:"json",url:t,timeout:e.timeout,success:function(t){t.error||Zg(t)||void 0===t.files||null===t.files?Qg(e)(t):(t.files.length>2&&!e.filter&&n(t),e.successCallback(t))}}).fail(Qg(e)).always((function(){void 0!==e.editor&&null!==e.editor&&e.editor.hideSpinner()}));Qg(e)({status:-1})}}))}},{key:"fetchAdlsPath",value:function(e){e.pathParts.shift();var t=df+encodeURI(e.pathParts.join("/"))+"?format=json&sortby=name&descending=false&pagesize="+(e.pageSize||500)+"&pagenum="+(e.page||1);return e.filter&&(t+="&filter="+e.filter),this.fetchCached(Jg().extend({},e,{sourceType:"adls",url:t,fetchFunction:function(n){if(0!==e.timeout)return Jg().ajax({dataType:"json",url:t,timeout:e.timeout,success:function(t){t.error||Zg(t)||void 0===t.files||null===t.files?Qg(e)(t):(t.files.length>2&&!e.filter&&n(t),e.successCallback(t))}}).fail(Qg(e)).always((function(){void 0!==e.editor&&null!==e.editor&&e.editor.hideSpinner()}));Qg(e)({status:-1})}}))}},{key:"fetchAbfsPath",value:function(e){var t=ff+encodeURI(e.pathParts.join("/"))+"?format=json&sortby=name&descending=false&pagesize="+(e.pageSize||500)+"&pagenum="+(e.page||1);return e.filter&&(t+="&filter="+e.filter),this.fetchCached(Jg().extend({},e,{sourceType:"abfs",url:t,fetchFunction:function(n){if(0!==e.timeout)return Jg().ajax({dataType:"json",url:t,timeout:e.timeout,success:function(t){t.error||Zg(t)||void 0===t.files||null===t.files?Qg(e)(t):(t.files.length>2&&!e.filter&&n(t),e.successCallback(t))}}).fail(Qg(e)).always((function(){void 0!==e.editor&&null!==e.editor&&e.editor.hideSpinner()}));Qg(e)({status:-1})}}))}},{key:"fetchGitContents",value:function(e){var t="/desktop/api/vcs/contents/?path="+encodeURI(e.pathParts.join("/"))+"&fileType="+e.fileType;this.fetchCached(Jg().extend({},e,{sourceType:"git",url:t,fetchFunction:function(n){0!==e.timeout?Jg().ajax({dataType:"json",url:t,timeout:e.timeout,success:function(t){t.error||Zg(t)?Qg(e)(t):"dir"===t.fileType&&void 0!==t.files&&null!==t.files?(t.files.length>2&&n(t),e.successCallback(t)):"file"===t.fileType&&void 0!==t.content&&null!==t.content&&e.successCallback(t)}}).fail(Qg(e)):Qg(e)({status:-1})}}))}},{key:"fetchS3Path",value:function(e){e.pathParts.shift();var t=pf+encodeURI(e.pathParts.join("/"))+"?format=json&sortby=name&descending=false&pagesize="+(e.pageSize||500)+"&pagenum="+(e.page||1);e.filter&&(t+="&filter="+e.filter),this.fetchCached(Jg().extend({},e,{sourceType:"s3",url:t,fetchFunction:function(n){0!==e.timeout?Jg().ajax({dataType:"json",url:t,timeout:e.timeout,success:function(t){t.error||Zg(t)||void 0===t.files||null===t.files?Qg(e)(t):(t.files.length>2&&!e.filter&&n(t),e.successCallback(t))}}).fail(Qg(e)).always((function(){void 0!==e.editor&&null!==e.editor&&e.editor.hideSpinner()})):Qg(e)({status:-1})}}))}},{key:"fetchFavoriteApp",value:(p=lm(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,t){em("/desktop/api2/user_preferences/default_app").done(e).fail(t)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return p.apply(this,arguments)})},{key:"setFavoriteAppAsync",value:(f=lm(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){tm("/desktop/api2/user_preferences/default_app",t).done(e).fail(n)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return f.apply(this,arguments)})},{key:"fetchDashboardTerms",value:function(e){0!==e.timeout?Jg().ajax({dataType:"json",url:"/dashboard/get_terms",type:"POST",data:{collection:hd.mapping.toJSON({id:"",name:e.collectionName,engine:e.engine||"solr"}),analysis:hd.mapping.toJSON({name:e.fieldName,terms:{prefix:e.prefix||""}})},timeout:e.timeout,success:function(t){t.error||Zg(t)||0!==t.status?Qg(e)(t):e.successCallback(t)}}).fail(Qg(e)).always(e.alwaysCallback):Qg(e)({status:-1})}},{key:"fetchDashboardStats",value:function(e){0!==e.timeout?Jg().ajax({dataType:"json",url:"/dashboard/get_stats",type:"POST",data:{collection:hd.mapping.toJSON({id:"",name:e.collectionName,engine:e.engine||"solr"}),analysis:hd.mapping.toJSON({name:e.fieldName,stats:{facet:""}}),query:hd.mapping.toJSON({qs:[{q:""}],fqs:[]})},timeout:e.timeout,success:function(t){t.error||Zg(t)||0!==t.status?1===t.status?e.notSupportedCallback(t):Qg(e)(t):e.successCallback(t)}}).fail(Qg(e)).always(e.alwaysCallback):Qg(e)({status:-1})}},{key:"fetchHBase",value:function(e){var t="getClusters";""!==e.parent.name&&(t="getTableList/"+e.parent.name);var n="/hbase/api/"+t;this.fetchCached(Jg().extend({},e,{sourceType:"hbase",url:n,fetchFunction:function(t){0!==e.timeout?Jg().ajax({dataType:"json",url:n,timeout:e.timeout,success:function(n){n.error||Zg(n)?Qg(e)(n):(t(n),e.successCallback(n))}}).fail(Qg(e)).always((function(){void 0!==e.editor&&null!==e.editor&&e.editor.hideSpinner()})):Qg(e)({status:-1})}}))}},{key:"fetchResourceStats",value:function(e){var t=arguments,n=function(t){var n=Date.now();return tm("/metadata/api/prometheus/query",{query:hd.mapping.toJSON(t),start:Math.floor((n-e.pastMs)/1e3),end:Math.floor(n/1e3),step:e.stepMs/1e3})},r=Jg().Deferred();return Jg().when(n("round((go_memstats_alloc_bytes / go_memstats_sys_bytes) * 100)"),n("round((go_memstats_alloc_bytes / go_memstats_sys_bytes) * 100)"),n("round((go_memstats_alloc_bytes / go_memstats_sys_bytes) * 100)"),n('impala_queries_count{datawarehouse="'+e.clusterName+'"}'),n('impala_queries{datawarehouse="'+e.clusterName+'"}')).done((function(){for(var e={},n=0;n<t.length;n++){var i=t[n];if(i.data.result[0])for(var o=i.data.result[0].values,a=0;a<o.length;a++)e[o[a][0]]||(e[o[a][0]]=[1e3*o[a][0],0,0,0,0,0]),e[o[a][0]][n+1]=parseFloat(o[a][1])}var s=[];Object.keys(e).forEach((function(t){s.push(e[t])})),s.sort((function(e,t){return e[0]-t[0]})),r.resolve(s)})).fail(r.reject),r.promise()}},{key:"fetchConfigurations",value:function(e){em(gf,{},e)}},{key:"saveGlobalConfiguration",value:function(e){tm(gf,{configuration:hd.mapping.toJSON(e.configuration)},e)}},{key:"saveConfiguration",value:function(e){tm("/desktop/api/configurations/save/",{app:e.app,properties:hd.mapping.toJSON(e.properties),is_default:e.isDefault,group_id:e.groupId,user_id:e.userId},e)}},{key:"fetchDocuments",value:function(e){var t="";e.uuid&&(t+=e.uuid),e.type&&"all"!==e.type&&(t+=e.type);var n=this.queueManager.getQueued(uf,t),r=void 0===n;if(r&&(n=Jg().Deferred(),this.queueManager.addToQueue(n,uf,t)),n.done(e.successCallback).fail(Qg(e)),r){var i={uuid:e.uuid};e.type&&"all"!==e.type&&(i.type=["directory",e.type]),Jg().ajax({url:uf,data:i,traditional:!0,success:function(e){Zg(e)?n.reject(e):n.resolve(e)}}).fail(n.reject)}}},{key:"searchDocuments",value:function(e){return Jg().ajax({url:"/desktop/api2/docs/",data:{uuid:e.uuid,text:e.query,type:e.type,page:e.page,limit:e.limit,include_trashed:e.include_trashed},success:function(t){Zg(t)?Qg(e)(t):e.successCallback(t)}}).fail(Qg(e))}},{key:"fetchDocument",value:function(e){var t=Jg().Deferred(),n=Jg().ajax({url:uf,data:{uuid:e.uuid,data:!!e.fetchContents,dependencies:e.dependencies},success:function(n){Zg(n)?t.reject(Qg({silenceErrors:e.silenceErrors})):t.resolve(n)}}).fail(Qg({silenceErrors:e.silenceErrors,errorCallback:t.reject}));return new am(t,n)}},{key:"fetchDocumentAsync",value:(d=lm(regeneratorRuntime.mark((function e(t){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){n.fetchDocument(t).done(e).fail(r)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return d.apply(this,arguments)})},{key:"setLinkSharingPermsAsync",value:(h=lm(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){tm("/desktop/api2/doc/share/link",{uuid:JSON.stringify(t.uuid),perm:JSON.stringify(t.perm)}).done(e).fail(n)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return h.apply(this,arguments)})},{key:"createDocumentsFolder",value:function(e){tm(uf+"mkdir",{parent_uuid:hd.mapping.toJSON(e.parentUuid),name:hd.mapping.toJSON(e.name)},e)}},{key:"updateDocument",value:function(e){tm(uf+"update",{uuid:hd.mapping.toJSON(e.uuid),name:e.name},e)}},{key:"uploadDocument",value:function(e){Jg().ajax({url:uf+"import",type:"POST",success:function(t){Zg(t)?Qg(e)(t):e.successCallback(t)},xhr:function(){var t=Jg().ajaxSettings.xhr();return t.upload&&e.progressHandler&&t.upload.addEventListener("progress",e.progressHandler,!1),t},dataType:"json",data:e.formData,cache:!1,contentType:!1,processData:!1}).fail(Qg(e))}},{key:"moveDocument",value:function(e){tm(uf+"move",{source_doc_uuid:hd.mapping.toJSON(e.sourceId),destination_doc_uuid:hd.mapping.toJSON(e.destinationId)},e)}},{key:"deleteDocument",value:function(e){tm(uf+"delete",{uuid:hd.mapping.toJSON(e.uuid),skip_trash:hd.mapping.toJSON(e.skipTrash||!1)},e)}},{key:"copyDocument",value:function(e){tm(uf+"copy",{uuid:hd.mapping.toJSON(e.uuid)},e)}},{key:"restoreDocument",value:function(e){tm(uf+"restore",{uuids:hd.mapping.toJSON(e.uuids)},e)}},{key:"clearDbCache",value:function(e){var t=this.getAssistCacheIdentifier(e);if(e.clearAll)Nh(t,{});else{var n=lf;e.databaseName&&(n+=e.databaseName+"/"),e.tableName&&(n+=e.tableName+"/"),e.fields&&(n+=e.fields.length>0?"/"+e.fields.join("/"):"");var r=Ih(t)||{};delete r[n],Ih(t,r)}}},{key:"invalidateSourceMetadata",value:function(e){var t=Jg().Deferred();if("impala"===e.sourceType&&("invalidate"===e.invalidate||"invalidateAndFlush"===e.invalidate)){var n={flush_all:"invalidateAndFlush"===e.invalidate,cluster:JSON.stringify(e.compute)};e.path&&e.path.length>0&&(n.database=e.path[0]),e.path&&e.path.length>1&&(n.table=e.path[1]);var r=tm("/impala/api/invalidate",n,e).done(t.resolve).fail(t.reject);return new am(t,r)}return t.resolve().promise()}},{key:"fetchPartitions",value:function(e){var t=Jg().Deferred(),n=Jg().post("/metastore/table/"+e.path.join("/")+"/partitions",{format:"json",cluster:JSON.stringify(e.compute)}).done((function(n){Zg(n)?Qg({silenceErrors:e.silenceErrors,errorCallback:t.reject})(n):(n||(n={}),n.hueTimestamp=Date.now(),t.resolve(n))})).fail((function(n){n&&n.responseText&&-1!==n.responseText.indexOf("is not partitioned")?t.resolve({hueTimestamp:Date.now(),partition_keys_json:[],partition_values_json:[]}):Qg({silenceErrors:e.silenceErrors,errorCallback:t.reject})(n)}));return new am(t,n)}},{key:"clearNotebookHistory",value:function(e){var t={notebook:e.notebookJson,doc_type:e.docType,is_notification_manager:e.isNotificationManager};return tm("/notebook/api/clear_history",t)}},{key:"closeNotebook",value:function(e){var t={notebook:e.notebookJson,editorMode:e.editorMode};return tm("/notebook/api/notebook/close",t)}},{key:"checkStatus",value:(u=lm(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var r={notebook:t.notebookJson};Jg().post({url:"/notebook/api/check_status",data:r}).done((function(r){r&&void 0!==r.status?e(r):Zg(r)?n(Qg(t)(r)):n()})).fail(Qg(t))})));case 1:case"end":return e.stop()}}),e)}))),function(e){return u.apply(this,arguments)})},{key:"getExternalStatement",value:function(e){var t={notebook:e.notebookJson,snippet:e.snippetJson};return tm("/notebook/api/get_external_statement",t)}},{key:"fetchResultSize",value:function(e){var t={notebook:e.notebookJson,snippet:e.snippetJson};return tm("/notebook/api/fetch_result_size",t)}},{key:"getLogs",value:function(e){var t={notebook:e.notebookJson,snippet:e.snippetJson,from:e.from,jobs:e.jobsJson,full_log:e.fullLog,operationId:e.executable.operationId};return tm("/notebook/api/get_logs",t)}},{key:"saveNotebook",value:(l=lm(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={notebook:t.notebookJson,editorMode:t.editorMode},e.abrupt("return",new Promise((function(e,t){tm("/notebook/api/notebook/save",n).then(e).catch(t)})));case 2:case"end":return e.stop()}}),e)}))),function(e){return l.apply(this,arguments)})},{key:"getHistory",value:(c=lm(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){Jg().get("/api/editor/get_history",{doc_type:t.type,limit:t.limit||50,page:t.page||1,doc_text:t.docFilter,is_notification_manager:t.isNotificationManager}).done((function(r){Zg(r)?n(Qg(t)(r)):e(r)})).fail(n)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return c.apply(this,arguments)})},{key:"explainAsync",value:(s=lm(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.snippet.parentNotebook.toContextJson();case 2:return e.t0=e.sent,e.t1=t.snippet.toContextJson(),n={notebook:e.t0,snippet:e.t1},e.abrupt("return",new Promise((function(e,r){tm("/notebook/api/explain",n,t).done((function(t){e(t.explanation)})).fail(r)})));case 6:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"createGistAsync",value:(a=lm(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={statement:t.statement,doc_type:t.doc_type,name:t.name,description:t.description},e.abrupt("return",new Promise((function(e,r){tm(mf+"create",n,t).done((function(t){e(t.link)})).fail(r)})));case 2:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"sendSlackMessageAsync",value:(o=lm(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={channel:t.channel,message:t.message},e.abrupt("return",new Promise((function(e,r){tm("/desktop/slack/api/message/send",n,t).done(e).fail(r)})));case 2:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"getSlackChannelsAsync",value:(i=lm(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){em("/desktop/slack/api/channels/get",{},t).done((function(t){e(t.channels)})).fail(n)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"fetchQueryExecutionAnalysis",value:function(e){var t=Jg().Deferred(),n=0,r=[],i=new am(t,void 0,r);return function o(){10!==n?(n++,r.pop(),r.push(t,tm("/impala/api/query/alanize",{cluster:JSON.stringify(e.compute),query_id:'"'+e.queryId+'"'},e).done((function(e){if(e&&e.data)t.resolve(e.data);else{var r=window.setTimeout((function(){o()}),1e3+500*n);i.onCancel((function(){window.clearTimeout(r)}))}})).fail(t.reject))):t.reject()}(),i}},{key:"fixQueryExecutionAnalysis",value:function(e){var t=Jg().Deferred(),n=tm("/impala/api/query/alanize/fix",{cluster:JSON.stringify(e.compute),fix:JSON.stringify(e.fix),start_time:e.start_time},{silenceErrors:e.silenceErrors,successCallback:function(e){0===e.status?t.resolve(e.details):t.reject()},errorCallback:t.reject});return new am(t,n)}},{key:"fetchQueryExecutionStatistics",value:function(e){var t=Jg().Deferred(),n=tm("/impala/api/query/alanize/metrics",{cluster:JSON.stringify(e.cluster),query_id:'"'+e.queryId+'"'},{silenceErrors:e.silenceErrors,successCallback:function(e){0===e.status?t.resolve(e.data):t.reject()},errorCallback:t.reject});return new am(t,n)}},{key:"fetchHueConfigAsync",value:(r=lm(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,t){Jg().get("/desktop/api2/get_hue_config").done((function(n){n||-1!==n.status?e(n):t(n.message)})).fail(t)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"fetchHueDocsInteractive",value:function(e){var t=Jg().Deferred(),n=Jg().post(Ef,{query_s:hd.mapping.toJSON(e),limit:50,sources:'["documents"]'}).done((function(e){0===e.status?t.resolve(e):t.reject(e)})).fail(t.reject);return new am(t,n)}},{key:"fetchNavEntitiesInteractive",value:function(e){var t=Jg().Deferred(),n=Jg().post(Ef,{query_s:hd.mapping.toJSON(e.query),field_facets:hd.mapping.toJSON(e.facets||[]),limit:50,sources:'["sql", "hdfs", "s3"]'}).done((function(e){0===e.status?t.resolve(e):t.reject(e)})).fail(t.reject);return new am(t,n)}},{key:"formatSql",value:function(e){var t=Jg().Deferred(),n=tm("/notebook/api/format",{statements:e.statements},{silenceErrors:e.silenceErrors,successCallback:t.resolve,errorCallback:t.reject});return new am(t,n)}},{key:"createGist",value:function(e){var t=Jg().Deferred(),n=tm(mf+"create",{statement:e.statement,doc_type:e.doc_type,name:e.name,description:e.description},{silenceErrors:e.silenceErrors,successCallback:t.resolve,errorCallback:t.reject});return new am(t,n)}}],n&&um(t.prototype,n),e}();const dm=new hm;function fm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var pm={adls:{apiHelperFetchFunction:"fetchAdlsPath",dblClickPubSubId:"assist.dblClickAdlsItem"},abfs:{apiHelperFetchFunction:"fetchAbfsPath",dblClickPubSubId:"assist.dblClickAbfsItem"},hdfs:{apiHelperFetchFunction:"fetchHdfsPath",dblClickPubSubId:"assist.dblClickHdfsItem"},s3:{apiHelperFetchFunction:"fetchS3Path",dblClickPubSubId:"assist.dblClickS3Item"}},gm=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=this;n.source=t.source,n.originalType=t.originalType,n.definition=t.definition,n.parent=t.parent,n.rootPath=t.rootPath||"",n.path="",null!==n.parent&&(n.path=n.parent.path,"/"===n.parent.path||/\/$/.test(n.path)||(n.path+="/")),n.path+=n.definition.name,n.abfsPath=(/^\//.test(n.path)?"abfs:/":"abfs://")+n.path,n.currentPage=1,n.hasMorePages=!0,n.preview=hd.observable(),n.contextPopoverVisible=hd.observable(!1),n.filter=hd.observable("").extend({rateLimit:400}),n.filter.subscribe((function(){n.currentPage=1,n.hasMorePages=!0,n.loadEntries()})),n.entries=hd.observableArray([]),n.loaded=!1,n.loading=hd.observable(!1),n.loadingMore=hd.observable(!1),n.errorText=hd.observable(),n.hasErrors=hd.observable(!1),n.open=hd.observable(!1),n.open.subscribe((function(e){e&&0===n.entries().length&&("dir"===n.definition.type?n.loadEntries():n.loadPreview())})),n.hasEntries=hd.pureComputed((function(){return n.entries().length>0}))}var t,n,r;return t=e,r=[{key:"getEntry",value:function(t,n){var r=Jg().Deferred(),i=t.match(/^([^:]+):\/(\/.*)\/?/i);n=(n=(n=(n=i?i[1]:n||"hdfs").replace(/s3.*/i,"s3")).replace(/adl.*/i,"adls")).replace(/abfs.*/i,"abfs");var o=_f((function(e){return e.type===n}));if(o){var a=If(o),s=new e({source:o,rootPath:a,originalType:i&&i[1],definition:{name:a,type:"dir"},parent:null,apiHelper:dm});if("abfs"===n||"adls"===n){var c=t.match(/^([^:]+):\/(\/((\w+)@)?[\w]+([\-\.]{1}\w+)*\.[\w]*)?(\/.*)?\/?/i);t=(c?c[6]||"":t).replace(/(?:^\/)|(?:\/$)/g,"").split("/"),c&&c[4]&&t.unshift(c[4])}else t=(i?i[2]:t).replace(/(?:^\/)|(?:\/$)/g,"").split("/");s.loadDeep(t,r.resolve)}else r.reject();return r.promise()}}],(n=[{key:"dblClick",value:function(){Ch(pm[self.source.type].dblClickPubSubId,this)}},{key:"loadPreview",value:function(){var e=this;e.loading(!0),dm.fetchStoragePreview({path:e.getHierarchy(),type:e.source.type,silenceErrors:!0}).done((function(t){e.preview(t)})).fail((function(t){e.hasErrors(!0),e.errorText(t)})).always((function(){e.loading(!1)}))}},{key:"loadEntries",value:function(t){var n=this;n.loading()||(n.loading(!0),n.hasErrors(!1),dm[pm[n.source.type].apiHelperFetchFunction]({pageSize:100,page:n.currentPage,filter:n.filter().trim()?n.filter():void 0,pathParts:n.getHierarchy(),rootPath:n.rootPath,successCallback:function(r){n.hasMorePages=r.page.next_page_number>n.currentPage;var i=r.files.filter((function(e){return"."!==e.name&&".."!==e.name}));n.entries(i.map((function(t){return new e({originalType:n.originalType,rootPath:n.rootPath,source:n.source,definition:t,parent:n})}))),n.loaded=!0,n.loading(!1),n.hasErrors(!!r.s3_listing_not_allowed),n.errorText(r.s3_listing_not_allowed),t&&t()},errorCallback:function(e){n.hasErrors(!0),n.errorText(e),n.loading(!1),t&&t()}}))}},{key:"goHome",value:function(){Ch("assist.storage.go.home")}},{key:"loadDeep",value:function(e,t){var n=this;if(0!==e.length){if(this.rootPath){var r=e.join("/").replace(new RegExp("^"+this.rootPath,""),"");e=r.split("/")}var i=e.shift(),o=0,a=function r(){var a=n.entries().filter((function(e){return e.definition.name===i})),s=n.entries().length>0&&n.entries()[n.entries().length-1].definition.name.localeCompare(i)>0;1===a.length?a[0].loadDeep(e,t):!s&&n.hasMorePages&&o<50?(o++,n.fetchMore(r,(function(){t(n)}))):t(n)};n.loaded?a():n.loadEntries(a)}else t(n)}},{key:"getHierarchy",value:function(){for(var e=[],t=this;t;){if(!t.parent&&t.definition.name){var n=t.definition.name.split("/").filter(Boolean);n.reverse(),e=e.concat(n)}else t.definition.name&&e.push(t.definition.name);t=t.parent}return e.reverse(),e}},{key:"toggleOpen",value:function(e,t){var n=this;"file"!==n.definition.type?(n.open(!n.open()),".."===n.definition.name?n.parent.parent&&Ch("assist.selectStorageEntry",n.parent.parent):Ch("assist.selectStorageEntry",n)):t.ctrlKey||t.metaKey||2===t.which?window.open("/hue"+n.definition.url,"_blank"):Ch("open.link",n.definition.url)}},{key:"fetchMore",value:function(t,n){var r=this;r.hasMorePages&&!r.loadingMore()&&(r.currentPage++,r.loadingMore(!0),r.hasErrors(!1),dm[pm[r.source.type].apiHelperFetchFunction]({pageSize:100,page:r.currentPage,filter:r.filter().trim()?r.filter():void 0,pathParts:r.getHierarchy(),successCallback:function(n){r.hasMorePages=n.page.next_page_number>r.currentPage;var i=n.files.filter((function(e){return"."!==e.name&&".."!==e.name}));r.entries(r.entries().concat(i.map((function(t){return new e({originalType:r.originalType,rootPath:r.rootPath,source:r.source,definition:t,parent:r})})))),r.loadingMore(!1),t&&t()},errorCallback:function(){r.hasErrors(!0),n&&n()}}))}},{key:"showContextPopover",value:function(e,t,n){var r,i,o,a=Jg()(t.target),s=a.offset();e.contextPopoverVisible(!0),n&&(s.left+=n.left,s.top+=n.top),Ch("context.popover.show",{data:{type:"storageEntry",storageEntry:e},pinEnabled:!0,orientation:"right",source:{element:t.target,left:s.left,top:s.top-3,right:s.left+a.width()+3,bottom:s.top+a.height()-3}}),r=function(){e.contextPopoverVisible(!1)},o=Th("context.popover.hidden",(function(e){r(e),o.remove()}),i)}},{key:"openInImporter",value:function(){Ch("open.in.importer",this.definition.path)}}])&&fm(t.prototype,n),r&&fm(t,r),e}();const mm=gm,Em=function(e,t,n){n&&(e=e.toLowerCase(),t=t.toLowerCase());var r=e.length,i=t.length;if(0===r)return i;if(0===i)return r;for(var o,a,s,c,l,u=new Array(r),h=0;h<=r;h++){u[h]=new Array(i),u[h][0]=h;for(var d=1;d<=i;d++)h?(o=e[h-1]===t[d-1]?0:1,a=u[h-1][d]+1,s=u[h][d-1]+1,c=u[h-1][d-1]+o,u[h][d]=a<=s&&a<=c?a:s<=a&&s<=c?s:c,h>1&&d>1&&e[h]===t[d-1]&&e[h-1]===t[d]&&(l=u[h-2][d-2]+o)<u[h][d]&&(u[h][d]=l)):u[0][d]=d}return u[r][i]};function vm(e){return function(e){if(Array.isArray(e))return ym(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ym(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ym(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ym(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bm(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Am(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){bm(o,r,i,a,s,"next",e)}function s(e){bm(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Tm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Cm="editor.refresh.statement.locations",Rm="editor.active.statement.changed",Sm="get.active.editor.locations",_m="hive",xm="impala",wm="sparksql",Im=50,Nm=(0,wh.Z)("Right-click to expand with columns"),Om=(0,wh.Z)("Right-click for details"),km=function(e,t){var n=t.row+1,r=t.column;return e.first_line<n&&n<e.last_line||e.first_line===n&&n===e.last_line&&e.first_column<=r&&r<e.last_column||e.first_line===n&&n<e.last_line&&r>=e.first_column||e.first_line<n&&n===e.last_line&&r<e.last_column},Lm=function(e,t){return e.row===t.row&&e.column===t.column},Dm=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.editor=void 0,this.editorId=void 0,this.executor=void 0,this.activeLocationHighlighting=void 0,this.temporaryOnly=void 0,this.subTracker=new xh,this.availableDatabases=new Set,this.changeThrottle=-1,this.verifyThrottle=-1,this.updateTimeout=-1,this.cursorChangePaused=!1,this.sqlSyntaxWorkerSub=void 0,this.sqlReferenceProvider=void 0,this.activeStatement=void 0,this.lastKnownStatements={editorChangeTime:0,statements:[]},this.editor=t.editor,this.editorId=t.editorId,this.executor=t.executor,this.activeLocationHighlighting=t.activeLocationHighlighting||"all",this.temporaryOnly=!!t.temporaryOnly,this.sqlReferenceProvider=t.sqlReferenceProvider,this.attachStatementLocator(),this.attachSqlWorker(),this.attachMouseListeners(),this.subTracker.subscribe(this.executor.connector,this.updateAvailableDatabases.bind(this)),this.subTracker.trackTimeout(this.changeThrottle),this.subTracker.trackTimeout(this.verifyThrottle),this.subTracker.trackTimeout(this.updateTimeout),this.updateAvailableDatabases()}var t,n,r,i,o;return t=e,n=[{key:"updateAvailableDatabases",value:(o=Am(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.clearTimeout(this.updateTimeout),this.executor.namespace()&&this.executor.compute()){e.next=4;break}return this.updateTimeout=window.setTimeout(this.updateAvailableDatabases.bind(this),300),e.abrupt("return");case 4:return e.prev=4,e.next=7,yg.getChildren({connector:this.executor.connector(),namespace:this.executor.namespace(),compute:this.executor.compute(),path:[]});case 7:t=e.sent,this.availableDatabases.clear(),t.forEach((function(e){n.availableDatabases.add(e.name.toLowerCase())})),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(4);case 14:case"end":return e.stop()}}),e,this,[[4,12]])}))),function(){return o.apply(this,arguments)})},{key:"isSqlDialect",value:function(){return this.executor.connector().is_sql}},{key:"getDialect",value:function(){return this.executor.connector().dialect}},{key:"attachMouseListeners",value:function(){var e=this,t=Yu.require("ace/tooltip").Tooltip,n=Yu.require("ace/range").Range,r=new t(this.editor.container),i=-1,o=!1,a=null,s=[],c=!1,l=function(){clearTimeout(i),r.hide()},u=function(){for(l();s.length>(c?1:0);){var t=s.shift();void 0!==t&&e.editor.session.removeMarker(t)}},h=function(t){var r;return r="function"===t.type?new n(t.location.first_line-1,t.location.first_column-1,t.location.last_line-1,t.location.last_column):new n(t.location.first_line-1,t.location.first_column-1,t.location.last_line-1,t.location.last_column-1),s.push(e.editor.session.addMarker(r,"hue-ace-location")),r};this.subTracker.subscribe("context.popover.shown",(function(){l(),c=!0,o=!0})),this.subTracker.subscribe("context.popover.hidden",(function(){o=!1,u(),c=!1}));var d=this.editor.on("mousemove",(function(t){if(clearTimeout(i),e.editor.selection.getRange().isEmpty()){var n=e.editor.renderer.screenToTextCoordinates(t.clientX+5,t.clientY);if(e.editor.renderer.screenToTextCoordinates(t.clientX+15,t.clientY).column!==n.column){var s=e.editor.session.getTokenAt(n.row,n.column);"all"!==e.activeLocationHighlighting||null===s||s.notFound||!s.parseLocation||o||"alias"===s.parseLocation.type?null!==s&&s.notFound?i=window.setTimeout((function(){if(s.notFound&&s.syntaxError){var t;t=s.syntaxError.expected.length>0?(0,wh.Z)("Did you mean")+' "'+s.syntaxError.expected[0].text+'"?':(0,wh.Z)("Could not find")+' "'+(s.qualifiedIdentifier||s.value)+'"';var i=e.editor.renderer.textToScreenCoordinates(n.row,s.start||0);r.show(t,i.pageX,i.pageY+e.editor.renderer.lineHeight+3)}}),500):null!==s&&s.syntaxError?i=window.setTimeout((function(){var t;if(s.syntaxError&&(s.syntaxError.expected.length>0?t=(0,wh.Z)("Did you mean")+' "'+s.syntaxError.expected[0].text+'"?':s.syntaxError.expectedStatementEnd&&(t=(0,wh.Z)("Expected end of statement")),t)){var i=e.editor.renderer.textToScreenCoordinates(n.row,s.start||0);r.show(t,i.pageX,i.pageY+e.editor.renderer.lineHeight+3)}}),500):l():i=window.setTimeout((function(){if(s.parseLocation){var t,i=e.editor.renderer.textToScreenCoordinates(n.row,s.start||0),o="asterisk"===s.parseLocation.type?Nm:Om;if("column"===s.parseLocation.type){var a=vm(s.parseLocation.identifierChain||[]),c=a.pop();if(a.length>0&&c&&c.name){var l=c.name.toLowerCase();yg.getEntry({namespace:e.executor.namespace(),compute:e.executor.compute(),connector:e.executor.connector(),temporaryOnly:e.temporaryOnly,path:a.map((function(e){return e.name}))}).then((function(e){e.getSourceMeta({cachedOnly:!0,silenceErrors:!0}).then((function(e){e&&e.extended_columns&&e.extended_columns.every((function(e){return e.name.toLowerCase()!==l||(t=(e.type.match(/^[^<]*/g)||["T"])[0],!1)}))}))}))}}if(s.parseLocation.identifierChain){var u=s.parseLocation.identifierChain.map((function(e){return e.name})).join(".");t&&(u+=" ("+t+")"),o=u+" - "+o}else s.parseLocation.function&&(o=s.parseLocation.function+" - "+o);r.show(o,i.pageX,i.pageY+e.editor.renderer.lineHeight+3)}}),500),a!==s&&(u(),"all"===e.activeLocationHighlighting&&null!==s&&!s.notFound&&s.parseLocation&&-1===["alias","whereClause","limitClause","selectList"].indexOf(s.parseLocation.type)&&h(s.parseLocation),a=s)}else u(),a=null}}));this.subTracker.addDisposable({dispose:function(){return e.editor.off("mousemove",d)}});var f=this.editor.on("input",(function(){u(),a=null}));this.subTracker.addDisposable({dispose:function(){return e.editor.off("input",f)}});var p=function(){u(),clearTimeout(i),r.hide(),a=null};this.editor.container.addEventListener("mouseout",p),this.subTracker.addDisposable({dispose:function(){return e.editor.container.removeEventListener("mouseout",p)}});var g=function(t){var r=e.editor.selection.getRange();if(Ch("context.popover.hide"),Ch("sql.syntax.dropdown.hide"),r.isEmpty()){var i=e.editor.renderer.screenToTextCoordinates(t.clientX+5,t.clientY),o=e.editor.session.getTokenAt(i.row,i.column);if(o&&(o.parseLocation&&-1===["alias","whereClause","limitClause","selectList"].indexOf(o.parseLocation.type)||o.syntaxError)){var a=void 0;if(o.parseLocation&&("all"===e.activeLocationHighlighting||o.notFound)?a=h(o.parseLocation):o.syntaxError&&(a=new n(o.syntaxError.loc.first_line-1,o.syntaxError.loc.first_column,o.syntaxError.loc.last_line-1,o.syntaxError.loc.first_column+o.syntaxError.text.length)),!a)return;var s=e.editor.renderer.textToScreenCoordinates(a.start.row,a.start.column),c=e.editor.renderer.textToScreenCoordinates(a.end.row,a.end.column),l={left:s.pageX-3,top:s.pageY,right:c.pageX-3,bottom:c.pageY+e.editor.renderer.lineHeight};if(o.parseLocation&&o.parseLocation.identifierChain&&!o.notFound)o.parseLocation.resolveCatalogEntry({temporaryOnly:e.temporaryOnly}).then((function(t){Ch("context.popover.show",{data:{type:"catalogEntry",catalogEntry:t},pinEnabled:!0,connector:e.executor.connector(),source:l})})).catch((function(){o.notFound=!0}));else if(o.parseLocation&&!o.notFound){var u=o.parseLocation;"file"===u.type&&u.path?mm.getEntry(u.path).then((function(t){t.open(!0),Ch("context.popover.show",{data:{type:"storageEntry",storageEntry:t,editorLocation:u.location},connector:e.executor.connector(),pinEnabled:!0,source:l})})):Ch("context.popover.show",{data:u,connector:e.executor.connector(),sourceType:e.executor.connector().dialect,namespace:e.executor.namespace(),compute:e.executor.compute(),defaultDatabase:e.executor.database(),pinEnabled:!0,source:l})}else o.syntaxError&&Ch(ih,{editorId:e.editorId,data:o.syntaxError,editor:e.editor,range:a,sourceType:e.executor.connector().dialect,defaultDatabase:e.executor.database(),source:l});return t.preventDefault(),!1}}};this.editor.container.addEventListener("contextmenu",g),this.subTracker.addDisposable({dispose:function(){return e.editor.container.removeEventListener("contextmenu",g)}})}},{key:"attachStatementLocator",value:function(){var e,t,n,r=this;this.changeThrottle=window.setTimeout(this.parseForStatements.bind(this),0),window.setTimeout(this.updateActiveStatement.bind(this),0),this.cursorChangePaused=!1;var i=this.editor.on("changeSelection",(function(){r.cursorChangePaused||(window.clearTimeout(r.changeThrottle),r.changeThrottle=window.setTimeout((function(){var i=r.editor.getCursorPosition();n&&n.row===i.row&&n.column===i.column||(Ch("editor.cursor.position.changed",{editorId:r.editorId,position:i}),n=i);var o=r.editor.getSelectionRange().start,a=r.editor.getSelectionRange().end;!r.isSqlDialect()||e&&Lm(e,o)&&t&&Lm(t,a)||(r.updateActiveStatement(!0),e=o,t=a)}),100))}));this.subTracker.addDisposable({dispose:function(){return r.editor.off("changeSelection",i)}});var o=this.editor.on("change",(function(){r.isSqlDialect()&&(window.clearTimeout(r.changeThrottle),r.cursorChangePaused=!0,r.changeThrottle=window.setTimeout((function(){r.parseForStatements(),r.updateActiveStatement(),r.cursorChangePaused=!1}),500),r.editor.lastChangeTime=Date.now())}));this.subTracker.addDisposable({dispose:function(){return r.editor.off("change",o)}}),this.subTracker.subscribe(Cm,(function(e){e===r.editorId&&r.refreshStatementLocations()}))}},{key:"updateActiveStatement",value:function(e){var t=this;if(this.isSqlDialect()){var n=this.editor.getSelectionRange(),r=n.start;Lm(n.start,n.end);var i=[],o=[],a=[];this.activeStatement=void 0;var s,c,l=(s=n.start,c=n.end,s.row===c.row?s.column<=c.column?s:c:s.row<c.row?s:c),u=n.start===l?n.end:n.start,h=!1,d=0,f=!1;1===this.lastKnownStatements.statements.length?this.activeStatement=this.lastKnownStatements.statements[0]:(this.lastKnownStatements.statements.forEach((function(e){Lm(l,u)||(!f&&km(e.location,l)&&(f=!0),f&&(i.push(e),(km(e.location,u)||e.location.last_line===u.row+1&&e.location.last_column===u.column)&&(f=!1))),km(e.location,r)?(d++,h=!0,t.activeStatement=e):h?h&&a.length<10&&a.push(e):(d++,10===o.length&&o.shift(),o.push(e))})),h||(o.pop(),this.activeStatement=this.lastKnownStatements.statements[this.lastKnownStatements.statements.length-1])),!i.length&&this.activeStatement&&i.push(this.activeStatement),Ch(Rm,{id:this.editorId,editorChangeTime:this.lastKnownStatements.editorChangeTime,activeStatementIndex:d,totalStatementCount:this.lastKnownStatements.statements.length,precedingStatements:o,activeStatement:this.activeStatement,selectedStatements:i,followingStatements:a}),this.activeStatement&&this.checkForSyntaxErrors(this.activeStatement.location,l)}}},{key:"parseForStatements",value:function(){if(this.isSqlDialect())try{var e=this.editor.lastChangeTime;this.lastKnownStatements.statements=tp(this.executor.connector()).parse(this.editor.getValue()),this.lastKnownStatements.editorChangeTime=e;var t=window.hueDebug;t&&t.logStatementLocations&&console.log(this.lastKnownStatements)}catch(e){console.warn("Could not parse statements!"),console.warn(e)}}},{key:"refreshStatementLocations",value:function(){this.cursorChangePaused=!0,window.clearTimeout(this.changeThrottle),this.parseForStatements(),this.updateActiveStatement(),this.cursorChangePaused=!1}},{key:"clearMarkedErrors",value:function(e){var t=this.editor.getSession().$backMarkers;for(var n in t)0===t[n].clazz.indexOf("hue-ace-syntax-"+(e||""))&&t[n].dispose()}},{key:"checkForSyntaxErrors",value:function(e,t){if(this.sqlSyntaxWorkerSub&&(this.getDialect()===xm||this.getDialect()===_m||this.getDialect()===wm)){var n=Yu.require("ace/range").Range,r=this.editor.lastChangeTime,i=this.editor.getSession().getTextRange(new n(e.first_line-1,e.first_column,t.row,t.column)),o=this.editor.getSession().getTextRange(new n(t.row,t.column,e.last_line-1,e.last_column));Ch("ace.sql.syntax.worker.post",{id:this.editorId,editorChangeTime:r,beforeCursor:i,afterCursor:o,statementLocation:e,connector:this.executor.connector()})}}},{key:"addAnchoredMarker",value:function(e,t,n){var r=this;e.start=this.editor.getSession().doc.createAnchor(e.start),e.end=this.editor.getSession().doc.createAnchor(e.end);var i=this.editor.getSession().addMarker(e,n),o=this.editor.getSession().$backMarkers[i];o.token=t,o.dispose=function(){e.start.detach(),e.end.detach(),delete o.token.syntaxError,delete o.token.notFound,r.editor.getSession().removeMarker(i)}}},{key:"attachSqlSyntaxWorker",value:function(){var e=this;this.sqlSyntaxWorkerSub||(this.sqlSyntaxWorkerSub=Rh("ace.sql.syntax.worker.message",(function(t){if(t.data.id===e.editorId&&t.data.editorChangeTime===e.editor.lastChangeTime&&(e.clearMarkedErrors("error"),t.data.syntaxError&&t.data.syntaxError.expected&&0!==t.data.syntaxError.expected.length)){var n=Ih("hue.syntax.checker.suppressedRules",{});if(t.data.syntaxError&&t.data.syntaxError.ruleId&&!n[t.data.syntaxError.ruleId.toString()+t.data.syntaxError.text.toLowerCase()]){var r=window.hueDebug;r&&r.showSyntaxParseResult&&console.log(t.data.syntaxError);var i=e.editor.getSession().getTokenAt(t.data.syntaxError.loc.first_line-1,t.data.syntaxError.loc.first_column+1);if(/[a-z]$/i.test(e.editor.getTextBeforeCursor())&&!/^[a-z]/i.test(e.editor.getTextAfterCursor())){var o=e.editor.getCursorPosition();if(e.editor.getSession().getTokenAt(o.row,o.column)===i)return}if(i){i.syntaxError=t.data.syntaxError;var a=new(0,Yu.require("ace/range").Range)(t.data.syntaxError.loc.first_line-1,t.data.syntaxError.loc.first_column,t.data.syntaxError.loc.last_line-1,t.data.syntaxError.loc.first_column+t.data.syntaxError.text.length);e.addAnchoredMarker(a,i,"hue-ace-syntax-error")}}}})),Ch(Cm,this.editorId))}},{key:"detachSqlSyntaxWorker",value:function(){this.sqlSyntaxWorkerSub&&(this.sqlSyntaxWorkerSub.remove(),this.sqlSyntaxWorkerSub=void 0),this.clearMarkedErrors()}},{key:"fetchChildren",value:(i=Am(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",yg.getChildren({connector:this.executor.connector(),namespace:this.executor.namespace(),compute:this.executor.compute(),temporaryOnly:this.temporaryOnly,path:t.map((function(e){return e.name})),silenceErrors:!0,cachedOnly:!0}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"fetchPossibleValues",value:(r=Am(regeneratorRuntime.mark((function e(t){var n,r,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.parseLocation&&t.parseLocation.tables&&t.parseLocation.tables.length>0)){e.next=10;break}return n=[],t.parseLocation.tables.forEach((function(e){e.identifierChain&&n.push(o.fetchChildren(e.identifierChain))})),e.next=5,Promise.all(n);case 5:return r=e.sent,i=[],r.forEach((function(e){i.push.apply(i,vm(e))})),t.parseLocation&&"column"===t.parseLocation.type&&t.parseLocation.tables&&t.parseLocation.tables.forEach((function(e){e.alias||i.push(e.identifierChain[e.identifierChain.length-1])})),e.abrupt("return",i);case 10:if(!(t.parseLocation&&t.parseLocation.identifierChain&&t.parseLocation.identifierChain.length)){e.next=19;break}return e.prev=11,e.next=14,this.fetchChildren(t.parseLocation.identifierChain.slice(0,t.parseLocation.identifierChain.length-1));case 14:return e.abrupt("return",e.sent);case 17:e.prev=17,e.t0=e.catch(11);case 19:return e.abrupt("return",[]);case 20:case"end":return e.stop()}}),e,this,[[11,17]])}))),function(e){return r.apply(this,arguments)})},{key:"verifyExists",value:function(e,t){var n=this;if(window.clearTimeout(this.verifyThrottle),this.clearMarkedErrors("warning"),this.sqlSyntaxWorkerSub){var r=this.editor.getCursorPosition(),i=e.filter((function(e){return e&&e.parseLocation&&("table"===e.parseLocation.type||"column"===e.parseLocation.type)&&(e.parseLocation.identifierChain||e.parseLocation.tables)&&!(r.row+1===e.parseLocation.location.last_line&&r.column+1===e.parseLocation.location.first_column+e.value.length)})).slice(0,50);if(0!==i.length){var o={},a=[];t.forEach((function(e){"alias"!==e.type||!e.alias||"column"!==e.source&&"table"!==e.source&&"subquery"!==e.source&&"cte"!==e.source||(o[e.alias.toLowerCase()]=e,a.push({name:e.alias.toLowerCase()}))})),this.verifyThrottle=window.setTimeout((function e(){var t=i.shift();if(t){var r=t.parseLocation;if(r){if(("column"===r.type||"complex"===r.type)&&r.tables&&r.tables.some((function(e){return!!e.subQuery})))return void(n.verifyThrottle=window.setTimeout(e,Im));(function(e){return new Promise((function(t){"column"===e.type&&e.tables&&e.identifierChain&&1===e.identifierChain.length?e.tables.length>1?function r(i){var o=i.shift();o&&!o.subQuery?yg.getChildren({connector:n.executor.connector(),namespace:n.executor.namespace(),compute:n.executor.compute(),temporaryOnly:n.temporaryOnly,path:o.identifierChain.map((function(e){return e.name})),cachedOnly:!0,silenceErrors:!0}).then((function(n){n.some((function(t){return e.identifierChain&&jg.identifierEquals(t.name,e.identifierChain[0].name)}))?(e.identifierChain=[].concat(vm(o.identifierChain),vm(e.identifierChain||[])),delete e.tables,t()):i.length?r(i):t()})).catch((function(){return t()})):i.length>0?r(i):t()}(vm(e.tables)):1===e.tables.length&&e.tables[0].identifierChain&&(e.identifierChain=[].concat(vm(e.tables[0].identifierChain),vm(e.identifierChain)),delete e.tables,t()):t()}))})(r).then((function(){var i;"column"===r.type&&(r.tables&&r.identifierChain&&r.identifierChain.length>1&&t.parseLocation&&t.parseLocation.identifierChain?i=o[t.parseLocation.identifierChain[0].name.toLowerCase()]:r.tables&&r.tables.some((function(e){return!(!e.identifierChain||1!==e.identifierChain.length||!e.identifierChain[0].name)&&(i=o[e.identifierChain[0].name.toLowerCase()])})),i&&"cte"===i.source)?n.verifyThrottle=window.setTimeout(e,Im):n.fetchPossibleValues(t).then(function(){var r=Am(regeneratorRuntime.mark((function r(i){var o,s,c,l,u,h,d,f,p,g;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parseLocation){r.next=3;break}return n.verifyThrottle=window.setTimeout(e,Im),r.abrupt("return");case 3:("column"!==t.parseLocation.type&&"complex"!==t.parseLocation.type||!t.parseLocation.qualified)&&(i=i.concat(a)),o=t.actualValue.toLowerCase(),s=new Set,c=[],l=0;case 8:if(!(l<i.length)){r.next=21;break}return u=i[l],r.next=12,jg.backTickIfNeeded(n.executor.connector(),u.name,n.sqlReferenceProvider);case 12:if(u.name=r.sent,(h=u.name.toLowerCase())!==o&&(0!==o.indexOf("`")||o.replace(/`/g,"")!==h)){r.next=17;break}return n.verifyThrottle=window.setTimeout(e,Im),r.abrupt("return");case 17:s.has(h)||(c.push(u),s.add(h));case 18:l++,r.next=8;break;case 21:i=c,d=o===t.value,f=i.map((function(e){var n=e.name;return{text:d?n.toLowerCase():n,distance:Em(t.value,n)}})),f.sort((function(e,t){return e.distance===t.distance?e.text.localeCompare(t.text):e.distance-t.distance})),t.syntaxError={loc:t.parseLocation.location,text:t.value,expected:f.slice(0,50)},t.notFound=!0,t.parseLocation&&"table"===t.parseLocation.type&&t.parseLocation.identifierChain&&(t.qualifiedIdentifier=t.parseLocation.identifierChain.map((function(e){return e.name})).join(".")),t.parseLocation&&f.length>0&&(p=Yu.require("ace/range").Range,g=new p(t.parseLocation.location.first_line-1,t.parseLocation.location.first_column-1,t.parseLocation.location.last_line-1,t.parseLocation.location.last_column-1),n.addAnchoredMarker(g,t,"hue-ace-syntax-warning")),n.verifyThrottle=window.setTimeout(e,Im);case 30:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()).catch((function(){n.verifyThrottle=window.setTimeout(e,Im)}))})).catch((function(){n.verifyThrottle=window.setTimeout(e,Im)}))}}}),Im)}}}},{key:"isDatabase",value:function(e){if(!e)return!1;var t=e.replace(/^\s*`/,"").replace(/`\s*$/,"").toLowerCase();return this.availableDatabases.has(t)}},{key:"attachSqlWorker",value:function(){var e=this,t=[],n={};this.subTracker.subscribe(Sm,(function(e){e(n)})),this.subTracker.subscribe("ace.sql.location.worker.message",(function(r){if(r.data.id===e.editorId&&r.data.editorChangeTime===e.editor.lastChangeTime&&e.isSqlDialect()){for(n={id:e.editorId,connector:e.executor.connector(),namespace:e.executor.namespace(),compute:e.executor.compute(),defaultDatabase:e.executor.database(),locations:r.data.locations,editorChangeTime:r.data.editorChangeTime,activeStatementLocations:r.data.activeStatementLocations,totalStatementCount:r.data.totalStatementCount,activeStatementIndex:r.data.activeStatementIndex};t.length>0;){var i=t.pop();i&&delete i.parseLocation}var o=[];r.data.locations.forEach((function(n){if(("statementType"!==n.type||e.getDialect()===xm)&&-1===["statement","selectList","whereClause","limitClause"].indexOf(n.type)&&("table"!==n.type&&"column"!==n.type||void 0!==n.identifierChain)){n.identifierChain&&n.identifierChain.length&&n.identifierChain[0].name&&e.getDialect()===xm&&n.identifierChain.length>2&&("table"===n.type||"column"===n.type)&&e.isDatabase(n.identifierChain[0].name)&&(n.type="complex");var r=e.editor.getSession().getTokenAt(n.location.first_line-1,n.location.first_column),i=e.editor.getSession().getTokens(n.location.first_line-1);if("column"===n.type&&r&&i){var a=!1,s=!1;i.some((function(e){return(!a||!/\s+/.test(e.value))&&(a?(s="("===e.value,!0):void(e===r&&(a=!0)))})),s&&(n.type="function",delete n.identifierChain,n.function=r.value,r=null)}if(r&&r.value&&/`$/.test(r.value)&&(r=e.editor.getSession().getTokenAt(n.location.first_line-1,n.location.first_column+1)),r&&r.value&&/^\s*\${\s*$/.test(r.value)&&(r=null),r&&r.value){var c=Yu.require("ace/range").Range;r.actualValue=e.editor.getSession().getTextRange(new c(n.location.first_line-1,n.location.first_column-1,n.location.last_line-1,n.location.last_column-1))}null!==r&&(r.parseLocation=n,t.push(r),delete r.notFound,delete r.syntaxError,n.active&&o.push(r))}})),e.getDialect()!==xm&&e.getDialect()!==_m&&e.getDialect()!==wm||e.verifyExists(o,r.data.activeStatementLocations),Ch("editor.active.locations",n)}})),this.subTracker.subscribe("editor.active.statement.changed",(function(t){t.id===e.editorId&&e.isSqlDialect()&&Ch("ace.sql.location.worker.post",{id:e.editorId,statementDetails:t,connector:e.executor.connector(),namespace:e.executor.namespace(),compute:e.executor.compute(),defaultDatabase:e.executor.database()})}))}},{key:"dispose",value:function(){this.subTracker.dispose(),this.detachSqlSyntaxWorker()}}],n&&Tm(t.prototype,n),e}(),Fm={BOOLEAN:{BOOLEAN:!0,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},TIMESTAMP:{BOOLEAN:!1,TIMESTAMP:!0,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!1,VARCHAR:!1,STRING:!0,T:!0},TINYINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},SMALLINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},INT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},BIGINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},DOUBLE:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},REAL:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},DECIMAL:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},FLOAT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},NUMBER:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},CHAR:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!1,STRING:!1,T:!0},VARCHAR:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!0,STRING:!1,T:!0},STRING:{BOOLEAN:!1,TIMESTAMP:!0,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!1,STRING:!0,T:!0},T:{BOOLEAN:!0,TIMESTAMP:!0,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!0,VARCHAR:!0,STRING:!0,T:!0}},Mm={BOOLEAN:{BOOLEAN:!0,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!1,SMALLINT:!1,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!1,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},TIMESTAMP:{BOOLEAN:!1,TIMESTAMP:!0,DATE:!1,BINARY:!1,TINYINT:!1,SMALLINT:!1,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!1,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},DATE:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!0,BINARY:!1,TINYINT:!1,SMALLINT:!1,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!1,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},BINARY:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!0,TINYINT:!1,SMALLINT:!1,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!1,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},TINYINT:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!1,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!0,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},SMALLINT:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!0,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},INT:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!0,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},BIGINT:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!0,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},FLOAT:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!1,DECIMAL:!1,NUMBER:!0,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},DOUBLE:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!1,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},DECIMAL:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},NUMBER:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},STRING:{BOOLEAN:!1,TIMESTAMP:!0,DATE:!0,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},CHAR:{BOOLEAN:!1,TIMESTAMP:!0,DATE:!0,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},VARCHAR:{BOOLEAN:!1,TIMESTAMP:!0,DATE:!0,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},T:{BOOLEAN:!0,TIMESTAMP:!0,DATE:!0,BINARY:!0,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0}},Pm={BOOLEAN:{BOOLEAN:!0,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},TIMESTAMP:{BOOLEAN:!1,TIMESTAMP:!0,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!1,VARCHAR:!1,STRING:!0,T:!0},TINYINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},SMALLINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},INT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},BIGINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},DOUBLE:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},REAL:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},DECIMAL:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},FLOAT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},NUMBER:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},CHAR:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!1,STRING:!1,T:!0},VARCHAR:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!0,STRING:!1,T:!0},STRING:{BOOLEAN:!1,TIMESTAMP:!0,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!1,STRING:!0,T:!0},T:{BOOLEAN:!0,TIMESTAMP:!0,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!0,VARCHAR:!0,STRING:!0,T:!0}},Bm={BOOLEAN:{BOOLEAN:!0,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},TIMESTAMP:{BOOLEAN:!1,TIMESTAMP:!0,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!1,VARCHAR:!1,STRING:!0,T:!0},TINYINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},SMALLINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},INT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},BIGINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},DOUBLE:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},REAL:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},DECIMAL:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},FLOAT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},NUMBER:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},CHAR:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!1,STRING:!1,T:!0},VARCHAR:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!0,STRING:!1,T:!0},STRING:{BOOLEAN:!1,TIMESTAMP:!0,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!1,STRING:!0,T:!0},T:{BOOLEAN:!0,TIMESTAMP:!0,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!0,VARCHAR:!0,STRING:!0,T:!0}},Um=function(e,t,n){if(1===t.length&&"T"===t[0])return!0;var r,i=(r=[],n.forEach((function(e){e.indexOf("(")>-1?r.push(e.substring(0,e.indexOf("("))):r.push(e)})),r);if(-1!==i.indexOf("ARRAY")||-1!==i.indexOf("MAP")||-1!==i.indexOf("STRUCT"))return!0;for(var o=function(e){switch(e){case"hive":return Mm;case"impala":return Pm;case"sparksql":return Bm;default:return Fm}}(e),a=0;a<t.length;a++)for(var s=0;s<i.length;s++){if(void 0===o[t[a]]||void 0===o[t[a]][i[s]])return!0;if(o[t[a]]&&o[t[a]][i[s]])return!0}return!1};function $m(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Hm(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){$m(o,r,i,a,s,"next",e)}function s(e){$m(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Gm="HUE_GLOBAL_UDF_KEY",Wm=function(e){return cd().createInstance({name:"HueUdfCatalog_".concat("0","_").concat(e.id)})},Vm=function(){var e=Hm(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wm(t).clear();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),jm=function(){var e=Hm(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wm(t).getItem(n||Gm);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),qm=function(){var e=Hm(regeneratorRuntime.mark((function e(t,n,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wm(t).setItem(n||Gm,r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();function zm(e){return zm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zm(e)}function Ym(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Km(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ym(o,r,i,a,s,"next",e)}function s(e){Ym(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Xm(e){return function(e){if(Array.isArray(e))return Jm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Jm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jm(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zm(){Zm=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=new RegExp(e,r);return t.set(o,i||t.get(e)),eE(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){return t[n]=e[r[n]],t}),Object.create(null))}return Qm(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+o[t]})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!==zm(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},Zm.apply(this,arguments)}function Qm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&eE(e,t)}function eE(e,t){return eE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},eE(e,t)}var tE="function",nE="functions",rE=(0,wh.Z)("No description available."),iE=["T"],oE=[[{type:"T",multiple:!0}]],aE=/([a-z]+(?:\.{3})?)/gi,sE=Zm(/([a-z]+)(\.{3})?/i,{type:1,multiple:2}),cE=function(e){return e.replace(/\(\*(,\*)?\)/g,"")},lE=function(e){return e.return_type?[cE(e.return_type)]:iE},uE=function(e){if(e.signature){var t=cE(e.signature);if("()"===t)return[];var n=t.match(aE);if(n)return n.map((function(e){var t=e.match(sE);if(t&&t.groups){var n={type:t.groups.type};return t.groups.multiple&&(n.multiple=!0),[n]}return[]}))}return oE},hE=function(e){var t=[],n={};return e.forEach((function(e){if(n[e.name]){var r=n[e.name],i=uE(e);if(function(e,t){for(var n=0;n<e.length;n++){var r;if(n>=t.length)break;"T"!==e[n][0].type&&("T"!==t[n][0].type?(r=e[n]).push.apply(r,Xm(t[n])):e[n]=t[n])}}(r.arguments,i),"T"!==r.returnTypes[0]){var o,a=lE(e);"T"!==a[0]?(o=r.returnTypes).push.apply(o,Xm(a)):r.returnTypes=a}r.returnTypes=Xm(new Set(r.returnTypes))}else n[e.name]=function(e){var t=e.name+"()";return{name:e.name,returnTypes:lE(e),arguments:uE(e),signature:t,draggable:t,description:rE,described:!1}}(e),t.push(n[e.name])})),t},dE=function(e,t){return e&&t?"".concat(lf).concat(e,"/").concat(t.name):e?"".concat(lf).concat(e,"/"):t?"".concat(lf).concat(t.name):lf},fE=function(e,t){return{notebook:{},snippet:JSON.stringify({type:e.id}),operation:t}},pE=function(){var e=Km(regeneratorRuntime.mark((function e(t,n){var r,i,o,a,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!(s.length>2&&void 0!==s[2])||s[2],i=dE(n),o=fE(t,nE),e.prev=3,e.next=6,kd(i,o,{silenceErrors:r});case 6:if(null==(a=e.sent)||!a.functions){e.next=9;break}return e.abrupt("return",hE(a.functions));case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(3);case 13:return e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t,n){return e.apply(this,arguments)}}(),gE=function(){var e=Km(regeneratorRuntime.mark((function e(t,n,r){var i,o,a,s,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=!(c.length>3&&void 0!==c[3])||c[3],o=dE(r,n),a=fE(t,tE),e.prev=3,e.next=6,kd(o,a,{silenceErrors:i});case 6:if(null==(s=e.sent)||!s.function){e.next=9;break}return e.abrupt("return",s.function);case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(3);case 13:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t,n,r){return e.apply(this,arguments)}}();function mE(e){return function(e){if(Array.isArray(e))return EE(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return EE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?EE(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vE(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function yE(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){vE(o,r,i,a,s,"next",e)}function s(e){vE(o,r,i,a,s,"throw",e)}a(void 0)}))}}var bE=/^[!=$%&*+-/<>^|~]+$/,AE={},TE=function(e,t){var n=e.id;return t&&(n+="_"+t),n},CE=function(e,t){var n=new Set;t.forEach((function(e){Object.keys(e.functions).forEach((function(e){n.add(e.toUpperCase())}))}));var r={};return e.forEach((function(e){r[e.name]||n.has(e.name.toUpperCase())||bE.test(e.name)||(r[e.name]=e)})),r},RE=function(){var e=yE(regeneratorRuntime.mark((function e(t,n,r){var i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pE(n,r);case 2:(i=e.sent).length&&(o=CE(i,t),Object.keys(o).length&&(a={name:(0,wh.Z)("General"),functions:o},t.unshift(a)));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),SE=function(){var e=yE(regeneratorRuntime.mark((function e(t,n,r){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=TE(n,r),AE[i]||(AE[i]=new Promise(function(){var e=yE(regeneratorRuntime.mark((function e(i){var o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jm(n,r);case 2:if((o=e.sent)&&i(o),a=[],!n.dialect||!t.hasUdfCategories(n.dialect)){e.next=10;break}return e.next=8,t.getUdfCategories(n.dialect);case 8:(a=e.sent).forEach((function(e){Object.values(e.functions).forEach((function(e){e.described=!0}))}));case 10:return e.next=12,RE(a,n,r);case 12:return e.next=14,qm(n,r,a);case 14:i(a);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())),e.next=4,AE[i];case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),_E=function(){var e=yE(regeneratorRuntime.mark((function e(t,n,r){var i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,SE(t,n);case 2:return i=e.sent,o=[],i.forEach((function(e){e.functions[r]&&o.push(e.functions[r])})),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),xE=function(){var e=yE(regeneratorRuntime.mark((function e(t,n,r){var i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt("return",["T"]);case 2:return e.next=4,_E(t,n,r);case 4:if((i=e.sent).length){e.next=11;break}if(o=!1,a=new Set,i.forEach((function(e){e.returnTypes&&(o=!0,e.returnTypes.forEach((function(e){return a.add(e)})))})),!o){e.next=11;break}return e.abrupt("return",mE(a));case 11:return e.abrupt("return",["T"]);case 12:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),wE=function(){var e=yE(regeneratorRuntime.mark((function e(t,n,r,i,o){var a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,SE(t,n);case 2:return a=e.sent,s=[],a.forEach((function(e){(!e.isAnalytic&&!e.isAggregate||i&&e.isAggregate||o&&e.isAnalytic)&&Object.keys(e.functions).forEach((function(t){var i=e.functions[t];(!r||n.dialect&&Um(n.dialect,r,i.returnTypes))&&s.push(i)}))})),s.sort((function(e,t){return e.name.localeCompare(t.name)})),e.abrupt("return",s);case 7:case"end":return e.stop()}}),e)})));return function(t,n,r,i,o){return e.apply(this,arguments)}}(),IE=function(){var e=yE(regeneratorRuntime.mark((function e(t,n,r,i){var o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_E(t,n,r);case 2:if((o=e.sent).length){e.next=5;break}return e.abrupt("return",[{type:"T"}]);case 5:return a=[],o.forEach((function(e){var t=e.arguments;i>t.length?a.push.apply(a,mE(t[t.length-1].filter((function(e){return e.multiple})))):a.push.apply(a,mE(t[i-1]))})),e.abrupt("return",a);case 8:case"end":return e.stop()}}),e)})));return function(t,n,r,i){return e.apply(this,arguments)}}(),NE=function(e,t){var n=void 0;return e.some((function(e){return Object.values(e.functions).some((function(e){if(e.name===t)return n=e,!0}))})),n};Rh("hue.describe.udf",function(){var e=yE(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,SE(t.sqlReferenceProvider,t.connector,t.database);case 2:if(n=e.sent,!(r=NE(n,t.udfName))||r.described){e.next=15;break}return e.next=7,gE(t.connector,r,t.database);case 7:if(!(i=e.sent)){e.next=15;break}return i.description&&(r.description=i.description),i.signature&&(r.signature=i.signature),r.described=!0,e.next=14,qm(t.connector,t.database,n);case 14:Ch("hue.udf.described",{connector:t.connector,database:t.database,udf:r});case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),Rh("hue.clear.udf.cache",function(){var e=yE(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Vm(t.connector);case 2:Object.keys(AE).forEach((function(e){e!==t.connector.id&&0!==e.indexOf(t.connector.id+"_")||delete AE[e]})),t.callback&&t.callback();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());const OE=function(e,t){return!!e&&!!t&&e.toLowerCase()===t.toLowerCase()};function kE(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=FE(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function LE(e){return LE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LE(e)}function DE(e){return function(e){if(Array.isArray(e))return ME(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||FE(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function FE(e,t){if(e){if("string"==typeof e)return ME(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ME(e,t):void 0}}function ME(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function PE(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function BE(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){PE(o,r,i,a,s,"next",e)}function s(e){PE(o,r,i,a,s,"throw",e)}a(void 0)}))}}function UE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var $E={AggregateFunction:(0,wh.Z)("aggregate"),Alias:(0,wh.Z)("alias"),CTE:(0,wh.Z)("cte"),Database:(0,wh.Z)("database"),Dir:(0,wh.Z)("dir"),Filter:(0,wh.Z)("filter"),GroupBy:(0,wh.Z)("group by"),Join:(0,wh.Z)("join"),JoinCondition:(0,wh.Z)("condition"),Keyword:(0,wh.Z)("keyword"),OrderBy:(0,wh.Z)("order by"),Sample:(0,wh.Z)("sample"),Table:(0,wh.Z)("table"),Variable:(0,wh.Z)("variable"),View:(0,wh.Z)("view"),Virtual:(0,wh.Z)("virtual")},HE="hive",GE="impala",WE=["BLOCK__OFFSET__INSIDE__FILE","GROUPING__ID","RAW__DATA__SIZE","ROW__ID","ROW__IS__DELETED","ROW__OFFSET__INSIDE__BLOCK"],VE=function(e,t){if(e)return e.find((function(e){return OE(e.alias,t)}))},jE=function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.executor=void 0,this.editor=void 0,this.temporaryOnly=void 0,this.activeDatabase=void 0,this.sqlReferenceProvider=void 0,this.sqlAnalyzer=void 0,this.parseResult=void 0,this.subTracker=new xh,this.onCancelFunctions=[],this.lastKnownRequests=[],this.cancellablePromises=[],this.sqlReferenceProvider=t.sqlReferenceProvider,this.sqlAnalyzer=null===(n=t.sqlAnalyzerProvider)||void 0===n?void 0:n.getSqlAnalyzer(t.executor.connector()),this.executor=t.executor,this.editor=t.editor,this.temporaryOnly=t.temporaryOnly,this.activeDatabase=this.executor.database()}var t,n,r,i,o,a,s,c,l,u,h,d,f,p,g,m,E,v,y,b,A,T,C,R,S,_,x,w,I,N,O,k;return t=e,n=[{key:"dialect",value:function(){return this.executor.connector().dialect||this.executor.connector().type}},{key:"update",value:(k=BE(regeneratorRuntime.mark((function e(t,n){var r,i,o,a,s,c,l,u=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(;r=this.onCancelFunctions.pop();)r();if(this.activeDatabase=t.useDatabase||this.executor.database(),this.parseResult=t,!this.parseResult.udfArgument){e.next=6;break}return e.next=6,this.adjustForUdfArgument();case 6:return i=[],o=function(e){var t=new Promise((function(t){u.onCancelFunctions.push(t),e.then((function(e){e&&e.length&&n.push.apply(n,DE(e)),t()})).catch(t)}));return i.push(t),e},a=this.handleColumnReference(),s=this.loadDatabases(),o(this.handleKeywords()),o(this.handleColRefKeywords(a)),o(this.handleIdentifiers()),o(this.handleColumnAliases()),o(this.handleCommonTableExpressions()),o(this.handleOptions()),o(this.handleFunctions(a)),o(this.handleDatabases(s)),c=o(this.handleTables(s)),l=o(this.handleColumns(a,c)),o(this.handleValues(a)),o(this.handlePaths()),this.temporaryOnly||(o(this.handleJoins()),o(this.handleJoinConditions()),o(this.handleAggregateFunctions()),o(this.handleGroupBys(l)),o(this.handleOrderBys(l)),o(this.handleFilters()),o(this.handlePopularTables(c)),o(this.handlePopularColumns(l))),e.abrupt("return",Promise.all(i));case 24:case"end":return e.stop()}}),e,this)}))),function(e,t){return k.apply(this,arguments)})},{key:"adjustForUdfArgument",value:(O=BE(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,IE(this.sqlReferenceProvider,this.executor.connector(),this.parseResult.udfArgument.name,this.parseResult.udfArgument.position);case 2:if(e.t0=e.sent,e.t0){e.next=5;break}e.t0=[{type:"T"}];case 5:0===(t=e.t0).length&&this.parseResult.suggestColumns?(delete this.parseResult.suggestColumns,delete this.parseResult.suggestKeyValues,delete this.parseResult.suggestValues,delete this.parseResult.suggestFunctions,delete this.parseResult.suggestIdentifiers,delete this.parseResult.suggestKeywords):"BOOLEAN"!==t[0].type&&(this.parseResult.suggestFunctions&&!this.parseResult.suggestFunctions.types&&(this.parseResult.suggestFunctions.types=t.map((function(e){return e.type}))),this.parseResult.suggestColumns&&!this.parseResult.suggestColumns.types&&(this.parseResult.suggestColumns.types=t.map((function(e){return e.type})))),t.length&&(n=[],t.forEach((function(e){e.keywords&&n.push.apply(n,DE(e.keywords))})),n.length&&(this.parseResult.suggestKeywords||(this.parseResult.suggestKeywords=[]),(r=this.parseResult.suggestKeywords).push.apply(r,DE(n.map((function(e){return"object"===LE(e)?e:{value:e,weight:1e4}}))))));case 8:case"end":return e.stop()}}),e,this)}))),function(){return O.apply(this,arguments)})},{key:"handleColumnReference",value:(N=BE(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.parseResult.colRef){e.next=2;break}return e.abrupt("return",{type:"T"});case 2:if(this.parseResult.colRef.identifierChain.some((function(e){return void 0!==e.name&&0===e.name.indexOf("${")}))){e.next=18;break}return e.prev=4,e.next=7,this.fetchFieldForIdentifierChain(this.parseResult.colRef.identifierChain);case 7:if(!(t=e.sent)){e.next=14;break}return e.next=11,new Promise((function(e,n){r.onCancelFunctions.push(n);var i=t.getSourceMeta({silenceErrors:!0,cancellable:!0});r.cancellablePromises.push(i),i.then(e).catch(n)}));case 11:if(!(n=e.sent).type){e.next=14;break}return e.abrupt("return",{type:n.type,sample:n.sample});case 14:e.next=18;break;case 16:e.prev=16,e.t0=e.catch(4);case 18:return e.abrupt("return",{type:"T"});case 19:case"end":return e.stop()}}),e,this,[[4,16]])}))),function(){return N.apply(this,arguments)})},{key:"loadDatabases",value:(I=BE(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,new Promise((function(e,t){n.onCancelFunctions.push(t),yg.getEntry({namespace:n.executor.namespace(),compute:n.executor.compute(),connector:n.executor.connector(),path:[],temporaryOnly:n.temporaryOnly}).then(e).catch(t)}));case 3:return t=e.sent,e.next=6,new Promise((function(e,r){n.onCancelFunctions.push(r);var i=t.getChildren({silenceErrors:!0,cancellable:!0});n.cancellablePromises.push(i),i.then(e).catch(r)}));case 6:return e.abrupt("return",e.sent);case 9:return e.prev=9,e.t0=e.catch(0),e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,null,[[0,9]])}))),function(){return I.apply(this,arguments)})},{key:"handleKeywords",value:(w=BE(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestKeywords){e.next=3;break}return e.abrupt("return",[]);case 3:return e.abrupt("return",t.map((function(e){return{value:n.parseResult.lowerCase?e.value.toLowerCase():e.value,meta:$E.Keyword,category:ad.Keyword,weightAdjust:e.weight,popular:!1}})));case 4:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})},{key:"handleColRefKeywords",value:(x=BE(regeneratorRuntime.mark((function e(t){var n,r,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestColRefKeywords){e.next=3;break}return e.abrupt("return",[]);case 3:return e.next=5,t;case 5:return r=e.sent,i=[],Object.keys(n).forEach((function(e){Um(o.dialect(),[e],[r.type.toUpperCase()])&&n[e].forEach((function(e){i.push({value:o.parseResult.lowerCase?e.toLowerCase():e,meta:$E.Keyword,category:ad.ColRefKeyword,popular:!1,details:{type:r.type}})}))})),e.abrupt("return",i);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"handleIdentifiers",value:(_=BE(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestIdentifiers){e.next=3;break}return e.abrupt("return",[]);case 3:return e.abrupt("return",t.map((function(e){return{value:e.name,meta:e.type,category:ad.Identifier,popular:!1}})));case 4:case"end":return e.stop()}}),e,this)}))),function(){return _.apply(this,arguments)})},{key:"handleColumnAliases",value:(S=BE(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestColumnAliases){e.next=3;break}return e.abrupt("return",[]);case 3:n=[],r=kE(t),e.prev=5,r.s();case 7:if((i=r.n()).done){e.next=30;break}if(o=i.value,"COLREF"!==(a=o.types&&1===o.types.length?o.types[0]:"T")){e.next=14;break}n.push({value:o.name,meta:$E.Alias,category:ad.Column,popular:!1,details:o}),e.next=28;break;case 14:if("UDFREF"!==a||!o.udfRef){e.next=27;break}return e.prev=15,e.next=18,xE(this.sqlReferenceProvider,this.executor.connector(),o.udfRef);case 18:s=e.sent,c=1===s.length?s[0]:"T",n.push({value:o.name,meta:c,category:ad.Column,popular:!1,details:o}),e.next=25;break;case 23:e.prev=23,e.t0=e.catch(15);case 25:e.next=28;break;case 27:n.push({value:o.name,meta:a,category:ad.Column,popular:!1,details:o});case 28:e.next=7;break;case 30:e.next=35;break;case 32:e.prev=32,e.t1=e.catch(5),r.e(e.t1);case 35:return e.prev=35,r.f(),e.finish(35);case 38:return e.abrupt("return",n);case 39:case"end":return e.stop()}}),e,this,[[5,32,35,38],[15,23]])}))),function(){return S.apply(this,arguments)})},{key:"handleCommonTableExpressions",value:(R=BE(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestCommonTableExpressions){e.next=3;break}return e.abrupt("return",[]);case 3:return n=[],t.forEach((function(e){var t=e.prependQuestionMark?"? ":"";e.prependFrom&&(t+=r.parseResult.lowerCase?"from ":"FROM "),n.push({value:t+e.name,filterValue:e.name,meta:$E.CTE,category:ad.CTE,popular:!1})})),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)}))),function(){return R.apply(this,arguments)})},{key:"handleOptions",value:(C=BE(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.parseResult.suggestSetOptions){e.next=2;break}return e.abrupt("return",[]);case 2:return e.prev=2,e.next=5,this.sqlReferenceProvider.getSetOptions(this.executor.connector().dialect||"generic");case 5:return t=e.sent,e.abrupt("return",Object.keys(t).map((function(e){return{category:ad.Option,value:e,meta:"",popular:!1,weightAdjust:0,details:t[e]}})));case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return C.apply(this,arguments)})},{key:"handleFunctions",value:(T=BE(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s,c,l=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestFunctions){e.next=3;break}return e.abrupt("return",[]);case 3:if(r=[],!n.types||"COLREF"!==n.types[0]&&"UDFREF"!==n.types[0]){e.next=28;break}if(i=function(){var e=BE(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,wE(l.sqlReferenceProvider,l.executor.connector(),t,!!l.parseResult.suggestAggregateFunctions,!!l.parseResult.suggestAnalyticFunctions);case 3:return n=e.sent,r=t[0].toUpperCase(),i=[],n.map((function(e){return{category:ad.UDF,value:e.name+"()",meta:e.returnTypes.join("|"),weightAdjust:"T"!==r&&e.returnTypes.some((function(e){return e===r}))?1:0,popular:!1,details:e}})),e.abrupt("return",i);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",[]);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}(),o=["T"],e.prev=7,"COLREF"!==n.types[0]){e.next=15;break}return e.next=11,t;case 11:a=e.sent,o=[a.type.toUpperCase()],e.next=19;break;case 15:if(!n.udfRef){e.next=19;break}return e.next=18,xE(this.sqlReferenceProvider,this.executor.connector(),n.udfRef);case 18:o=e.sent;case 19:e.next=23;break;case 21:e.prev=21,e.t0=e.catch(7);case 23:return e.next=25,i(o);case 25:r=e.sent,e.next=38;break;case 28:return s=n.types||["T"],e.prev=29,e.next=32,wE(this.sqlReferenceProvider,this.executor.connector(),s,!!this.parseResult.suggestAggregateFunctions,!!this.parseResult.suggestAnalyticFunctions);case 32:c=e.sent,r=c.map((function(e){return{category:ad.UDF,value:e.name+"()",meta:e.returnTypes.join("|"),weightAdjust:"T"!==s[0].toUpperCase()&&e.returnTypes.some((function(e){return e===s[0].toUpperCase()}))?1:0,popular:!1,details:e}})),e.next=38;break;case 36:e.prev=36,e.t1=e.catch(29);case 38:return e.abrupt("return",r);case 39:case"end":return e.stop()}}),e,this,[[7,21],[29,36]])}))),function(e){return T.apply(this,arguments)})},{key:"handleDatabases",value:(A=BE(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s,c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestDatabases){e.next=3;break}return e.abrupt("return",[]);case 3:return r=[],e.prev=4,i=n.prependQuestionMark?"? ":"",n.prependFrom&&(i+=this.parseResult.lowerCase?"from ":"FROM "),e.next=9,t;case 9:o=e.sent,a=kE(o),e.prev=11,a.s();case 13:if((s=a.n()).done){e.next=33;break}if(c=s.value,""===(l=c.name)){e.next=31;break}return e.t0=r,e.t1=i,e.next=21,jg.backTickIfNeeded(this.executor.connector(),l,this.sqlReferenceProvider);case 21:e.t2=e.sent,e.t3=e.t1+e.t2,e.t4=n.appendDot?".":"",e.t5=e.t3+e.t4,e.t6=l,e.t7=$E.Database,e.t8=ad.Database,e.t9=c,e.t10={value:e.t5,filterValue:e.t6,meta:e.t7,category:e.t8,popular:!1,hasCatalogEntry:!0,details:e.t9},e.t0.push.call(e.t0,e.t10);case 31:e.next=13;break;case 33:e.next=38;break;case 35:e.prev=35,e.t11=e.catch(11),a.e(e.t11);case 38:return e.prev=38,a.f(),e.finish(38);case 41:e.next=45;break;case 43:e.prev=43,e.t12=e.catch(4);case 45:return e.abrupt("return",r);case 46:case"end":return e.stop()}}),e,this,[[4,43],[11,35,38,41]])}))),function(e){return A.apply(this,arguments)})},{key:"handleTables",value:(b=BE(regeneratorRuntime.mark((function e(t){var n,r,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestTables){e.next=3;break}return e.abrupt("return",[]);case 3:if(r=function(){var e=BE(regeneratorRuntime.mark((function e(){var t,r,i,a,s,c,l,u,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.prependQuestionMark?"? ":"",n.prependFrom&&(t+=o.parseResult.lowerCase?"from ":"FROM "),r=n.identifierChain&&1===n.identifierChain.length?n.identifierChain[0].name:o.activeDatabase,i=[],e.prev=4,e.next=7,new Promise((function(e,t){o.onCancelFunctions.push(t),yg.getEntry({namespace:o.executor.namespace(),compute:o.executor.compute(),connector:o.executor.connector(),path:[r],temporaryOnly:o.temporaryOnly}).then(e).catch(t)}));case 7:return a=e.sent,e.next=10,new Promise((function(e,t){o.onCancelFunctions.push(t);var n=a.getChildren({silenceErrors:!0,cancellable:!0});o.cancellablePromises.push(n),n.then(e).catch(t)}));case 10:s=e.sent,c=kE(s),e.prev=12,c.s();case 14:if((l=c.n()).done){e.next=34;break}if(u=l.value,!(n.onlyTables&&!u.isTable()||n.onlyViews&&!u.isView())){e.next=18;break}return e.abrupt("continue",32);case 18:return h=u.name,e.t0=i,e.t1=t,e.next=23,jg.backTickIfNeeded(o.executor.connector(),h,o.sqlReferenceProvider);case 23:e.t2=e.sent,e.t3=e.t1+e.t2,e.t4=h,e.t5=h,e.t6=u.isView()?$E.View:$E.Table,e.t7=ad.Table,e.t8=u,e.t9={value:e.t3,filterValue:e.t4,tableName:e.t5,meta:e.t6,category:e.t7,popular:!1,hasCatalogEntry:!0,details:e.t8},e.t0.push.call(e.t0,e.t9);case 32:e.next=14;break;case 34:e.next=39;break;case 36:e.prev=36,e.t10=e.catch(12),c.e(e.t10);case 39:return e.prev=39,c.f(),e.finish(39);case 42:e.next=46;break;case 44:e.prev=44,e.t11=e.catch(4);case 46:return e.abrupt("return",i);case 47:case"end":return e.stop()}}),e,null,[[4,44],[12,36,39,42]])})));return function(){return e.apply(this,arguments)}}(),i=[],this.dialect()!==GE||!n.identifierChain||1!==n.identifierChain.length){e.next=24;break}return e.prev=6,e.next=9,t;case 9:if(!e.sent.find((function(e){return OE(e.name,n.identifierChain[0].name)}))){e.next=17;break}return e.next=14,r();case 14:i=e.sent,e.next=18;break;case 17:this.parseResult.suggestColumns={tables:[{identifierChain:n.identifierChain}]};case 18:e.next=22;break;case 20:e.prev=20,e.t0=e.catch(6);case 22:e.next=31;break;case 24:if(!(this.dialect()===GE&&n.identifierChain&&n.identifierChain.length>1)){e.next=28;break}this.parseResult.suggestColumns={tables:[{identifierChain:n.identifierChain}]},e.next=31;break;case 28:return e.next=30,r();case 30:i=e.sent;case 31:return e.abrupt("return",i);case 32:case"end":return e.stop()}}),e,this,[[6,20]])}))),function(e){return b.apply(this,arguments)})},{key:"handleColumns",value:(y=BE(regeneratorRuntime.mark((function t(n,r){var i,o,a,s,c,l=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r;case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:if(i=this.parseResult.suggestColumns){t.next=10;break}return t.abrupt("return",[]);case 10:if(o=[],a=[],s=["T"],t.prev=13,!i.types||"COLREF"!==i.types[0]){t.next=21;break}return t.next=17,n;case 17:c=t.sent,s=[c.type.toUpperCase()],t.next=25;break;case 21:if(!i.types||"UDFREF"!==i.types[0]||!i.udfRef){t.next=25;break}return t.next=24,xE(this.sqlReferenceProvider,this.executor.connector(),i.udfRef);case 24:s=t.sent;case 25:t.next=29;break;case 27:t.prev=27,t.t1=t.catch(13);case 29:return i.tables.forEach((function(e){a.push(l.addColumns(e,s,o))})),t.prev=30,t.next=33,Promise.all(a);case 33:t.next=37;break;case 35:t.prev=35,t.t2=t.catch(30);case 37:return e.mergeColumns(o),this.dialect()===HE&&/[^.]$/.test(this.editor.getTextBeforeCursor())&&WE.forEach((function(e){o.push({value:e,meta:$E.Virtual,category:ad.VirtualColumn,popular:!1,details:{name:e}})})),t.abrupt("return",o);case 40:case"end":return t.stop()}}),t,this,[[0,5],[13,27],[30,35]])}))),function(e,t){return y.apply(this,arguments)})},{key:"addCteColumns",value:(v=BE(regeneratorRuntime.mark((function e(t,n){var r,i,o,a,s,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.parseResult.commonTableExpressions){e.next=3;break}return e.abrupt("return");case 3:if(i=r.find((function(e){return OE(e.alias,t.identifierChain[0].cte)}))){e.next=6;break}return e.abrupt("return");case 6:o=kE(i.columns),e.prev=7,o.s();case 9:if((a=o.n()).done){e.next=40;break}if(s=a.value,c=s.type&&"COLREF"!==s.type?s.type:"T",!s.alias){e.next=26;break}return e.t0=n,e.next=16,jg.backTickIfNeeded(this.executor.connector(),s.alias,this.sqlReferenceProvider);case 16:e.t1=e.sent,e.t2=s.alias,e.t3=c,e.t4=ad.Column,e.t5=t,e.t6=s,e.t7={value:e.t1,filterValue:e.t2,meta:e.t3,category:e.t4,table:e.t5,popular:!1,details:e.t6},e.t0.push.call(e.t0,e.t7),e.next=38;break;case 26:if(!(void 0!==s.identifierChain&&s.identifierChain.length>0&&void 0!==s.identifierChain[s.identifierChain.length-1].name)){e.next=38;break}return e.t8=n,e.next=30,jg.backTickIfNeeded(this.executor.connector(),s.identifierChain[s.identifierChain.length-1].name,this.sqlReferenceProvider);case 30:e.t9=e.sent,e.t10=s.identifierChain[s.identifierChain.length-1].name,e.t11=c,e.t12=ad.Column,e.t13=t,e.t14=s,e.t15={value:e.t9,filterValue:e.t10,meta:e.t11,category:e.t12,table:e.t13,popular:!1,details:e.t14},e.t8.push.call(e.t8,e.t15);case 38:e.next=9;break;case 40:e.next=45;break;case 42:e.prev=42,e.t16=e.catch(7),o.e(e.t16);case 45:return e.prev=45,o.f(),e.finish(45);case 48:case"end":return e.stop()}}),e,this,[[7,42,45,48]])}))),function(e,t){return v.apply(this,arguments)})},{key:"addSubQueryColumns",value:(E=BE(regeneratorRuntime.mark((function e(t,n){var r,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.identifierChain.length&&t.identifierChain[0].subQuery){e.next=2;break}return e.abrupt("return");case 2:if(r=VE(this.parseResult.subQueries,t.identifierChain[0].subQuery),i=function(){var e=BE(regeneratorRuntime.mark((function e(a){var s,c,l,u,h,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=o.executor.connector(),c=kE(a),e.prev=2,c.s();case 4:if((l=c.n()).done){e.next=43;break}if(!(u=l.value).alias&&!u.identifierChain){e.next=36;break}if(h=void 0!==u.type&&"COLREF"!==u.type?u.type:"T",!u.alias){e.next=22;break}return e.t0=n,e.next=12,jg.backTickIfNeeded(s,u.alias,o.sqlReferenceProvider);case 12:e.t1=e.sent,e.t2=u.alias,e.t3=h,e.t4=ad.Column,e.t5=t,e.t6=u,e.t7={value:e.t1,filterValue:e.t2,meta:e.t3,category:e.t4,table:e.t5,popular:!1,details:e.t6},e.t0.push.call(e.t0,e.t7),e.next=34;break;case 22:if(!(u.identifierChain&&u.identifierChain.length>0)){e.next=34;break}return e.t8=n,e.next=26,jg.backTickIfNeeded(s,u.identifierChain[u.identifierChain.length-1].name,o.sqlReferenceProvider);case 26:e.t9=e.sent,e.t10=u.identifierChain[u.identifierChain.length-1].name,e.t11=h,e.t12=ad.Column,e.t13=t,e.t14=u,e.t15={value:e.t9,filterValue:e.t10,meta:e.t11,category:e.t12,table:e.t13,popular:!1,details:e.t14},e.t8.push.call(e.t8,e.t15);case 34:e.next=41;break;case 36:if(!(r&&u.subQuery&&r.subQueries)){e.next=41;break}if(!(d=VE(r.subQueries,u.subQuery))){e.next=41;break}return e.next=41,i(d.columns);case 41:e.next=4;break;case 43:e.next=48;break;case 45:e.prev=45,e.t16=e.catch(2),c.e(e.t16);case 48:return e.prev=48,c.f(),e.finish(48);case 51:case"end":return e.stop()}}),e,null,[[2,45,48,51]])})));return function(t){return e.apply(this,arguments)}}(),!(r&&r.columns.length>0)){e.next=7;break}return e.next=7,i(r.columns);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return E.apply(this,arguments)})},{key:"addColumns",value:(m=BE(regeneratorRuntime.mark((function e(t,n,r){var i,o,a,s,c=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===t.identifierChain||1!==t.identifierChain.length||void 0===t.identifierChain[0].cte){e.next=6;break}if(!(void 0!==this.parseResult.commonTableExpressions&&this.parseResult.commonTableExpressions.length>0)){e.next=4;break}return e.next=4,this.addCteColumns(t,r);case 4:e.next=26;break;case 6:if(void 0===t.identifierChain||1!==t.identifierChain.length||void 0===t.identifierChain[0].subQuery){e.next=11;break}return e.next=9,this.addSubQueryColumns(t,r);case 9:e.next=26;break;case 11:if(void 0===t.identifierChain){e.next=26;break}return i=function(){var e=BE(regeneratorRuntime.mark((function e(i){var o,a,s,l,u,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e,t){c.onCancelFunctions.push(t);var n=i.getSourceMeta({silenceErrors:!0,cancellable:!0});c.cancellablePromises.push(n),n.then(e).catch(t)}));case 2:return o=e.sent,e.next=5,new Promise((function(e,t){c.onCancelFunctions.push(t);var n=i.getChildren({silenceErrors:!0,cancellable:!0});c.cancellablePromises.push(n),n.then(e).catch(t)}));case 5:a=e.sent,s=kE(a),e.prev=7,u=regeneratorRuntime.mark((function e(){var i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=l.value,e.next=3,jg.backTickIfNeeded(c.executor.connector(),i.name,c.sqlReferenceProvider);case 3:o=e.sent,c.dialect()===HE&&(i.isArray()||i.isMap())&&(o+="[]"),(Um(c.dialect(),n,[i.getType().toUpperCase()])||Um(c.dialect(),[i.getType().toUpperCase()],n)||"column"===i.getType()||i.isComplex())&&r.push({value:o,meta:i.getType(),table:t,category:ad.Column,popular:!1,weightAdjust:"T"!==n[0].toUpperCase()&&n.some((function(e){return OE(e,i.getType())}))?1:0,hasCatalogEntry:!0,details:i});case 6:case"end":return e.stop()}}),e)})),s.s();case 10:if((l=s.n()).done){e.next=14;break}return e.delegateYield(u(),"t0",12);case 12:e.next=10;break;case 14:e.next=19;break;case 16:e.prev=16,e.t1=e.catch(7),s.e(e.t1);case 19:return e.prev=19,s.f(),e.finish(19);case 22:c.dialect()===HE&&(i.isArray()||i.isMap())&&(r.pop(),i.isMap()&&r.pop()),h=o.value&&o.value.fields||o.item&&o.item.fields,c.dialect()!==GE&&c.dialect()!==HE||!h||h.forEach((function(e){var i=-1!==e.type.indexOf("<")?e.type.substring(0,e.type.indexOf("<")):e.type;r.push({value:e.name,meta:i,table:t,category:ad.Column,popular:!1,weightAdjust:"T"!==n[0].toUpperCase()&&n.some((function(e){return OE(e,i)}))?1:0,hasCatalogEntry:!1,details:e})}));case 25:case"end":return e.stop()}}),e,null,[[7,16,19,22]])})));return function(t){return e.apply(this,arguments)}}(),o=this.parseResult.suggestColumns,a=o&&o.identifierChain||t.identifierChain,e.prev=15,e.next=18,this.fetchFieldForIdentifierChain(a);case 18:if(!(s=e.sent)){e.next=22;break}return e.next=22,i(s);case 22:e.next=26;break;case 24:e.prev=24,e.t0=e.catch(15);case 26:case"end":return e.stop()}}),e,this,[[15,24]])}))),function(e,t,n){return m.apply(this,arguments)})},{key:"handleValues",value:(g=BE(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestValues){e.next=3;break}return e.abrupt("return",[]);case 3:return r=[],(i=this.parseResult.colRef)&&i.identifierChain&&r.push({value:"${"+i.identifierChain[i.identifierChain.length-1].name+"}",meta:$E.Variable,category:ad.Variable,popular:!1}),e.next=8,t;case 8:return(o=e.sent).sample&&(a="string"===o.type,s=n.partialQuote?"":"'",c=void 0===n.missingEndQuote||n.missingEndQuote?n.partialQuote||"'":"",o.sample.forEach((function(e){r.push({value:a?s+e[0]+c:String(e[0]),meta:$E.Sample,category:ad.Sample,popular:!1})}))),e.abrupt("return",r);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"handlePaths",value:(p=BE(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s,c=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestHdfs){e.next=3;break}return e.abrupt("return",[]);case 3:if(n=[],""===(r=t.path)&&n.push({value:"adl://",meta:$E.Keyword,category:ad.Keyword,weightAdjust:0,popular:!1},{value:"s3a://",meta:$E.Keyword,category:ad.Keyword,weightAdjust:0,popular:!1},{value:"hdfs://",meta:$E.Keyword,category:ad.Keyword,weightAdjust:0,popular:!1},{value:"abfs://",meta:$E.Keyword,category:ad.Keyword,weightAdjust:0,popular:!1},{value:"/",meta:$E.Dir,category:ad.Files,popular:!1}),i="fetchHdfsPath",!/^s3a:\/\//i.test(r)){e.next=12;break}i="fetchS3Path",r=r.substring(5),e.next=29;break;case 12:if(!/^adl:\/\//i.test(r)){e.next=17;break}i="fetchAdlsPath",r=r.substring(5),e.next=29;break;case 17:if(!/^abfs:\/\//i.test(r)){e.next=28;break}if(i="fetchAbfsPath","/"!==(r=r.substring(6))){e.next=26;break}if(o=_f((function(e){return"abfs"===e.type})),!(a=o&&If(o))){e.next=26;break}return n.push({value:a,meta:"abfs",category:ad.Files,weightAdjust:0,popular:!1}),e.abrupt("return",n);case 26:e.next=29;break;case 28:/^hdfs:\/\//i.test(r)&&(r=r.substring(6));case 29:return(s=r.split("/")).shift(),s.pop(),e.next=34,new Promise((function(e){var t=dm[i];c.lastKnownRequests.push(t.bind(dm)({pathParts:s,successCallback:function(t){t.error||t.files.forEach((function(e){if(".."!==e.name&&"."!==e.name){var t=""===r?"/"+e.name:e.name;"dir"===e.type&&(t+="/"),n.push({value:t,meta:e.type,category:ad.Files,popular:!1,details:e})}})),e()},silenceErrors:!0,errorCallback:e,timeout:window.AUTOCOMPLETE_TIMEOUT}))}));case 34:return e.abrupt("return",n);case 35:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"tableIdentifierChainsToPaths",value:function(e){var t=this,n=[];return e.forEach((function(e){if(e.identifierChain.every((function(e){return void 0!==e.name}))){var r=e.identifierChain.map((function(e){return e.name}));1===r.length&&r.unshift(t.activeDatabase),n.push(r)}})),n}},{key:"handleJoins",value:(f=BE(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestJoins,window.HAS_SQL_ANALYZER&&t&&this.sqlAnalyzer){e.next=3;break}return e.abrupt("return",[]);case 3:if((n=this.tableIdentifierChainsToPaths(t.tables)).length){e.next=6;break}return e.abrupt("return",[]);case 6:return r=[],e.prev=7,e.next=10,new Promise((function(e,t){s.onCancelFunctions.push(t),yg.getMultiTableEntry({namespace:s.executor.namespace(),compute:s.executor.compute(),connector:s.executor.connector(),paths:n}).then(e).catch(t)}));case 10:return i=e.sent,e.next=13,new Promise((function(e,t){s.onCancelFunctions.push(t);var n=i.getTopJoins({cancellable:!0,silenceErrors:!0,sqlAnalyzer:s.sqlAnalyzer});s.cancellablePromises.push(n),n.then(e).catch(t)}));case 13:o=e.sent,a=0,o.values&&(o.values.forEach((function(e){var n=e.joinType||"join";n+=" ";var i=t.prependJoin?s.parseResult.lowerCase?n.toLowerCase():n.toUpperCase():"",o=!0,c=new Set;t.tables.forEach((function(e){c.add(e.identifierChain[e.identifierChain.length-1].name)}));var l=!1,u=!1;e.tables.forEach((function(e){var n=e.split(".");if(!c.has(n[n.length-1])){u=!0;var r=s.convertSqlAnalyzerQualifiedIdentifier(e,t.tables);i+=l?(s.parseResult.lowerCase?" join ":" JOIN ")+r:r,l=!0}})),e.joinCols.length>0&&(!u&&t.prependJoin&&(i="",u=!0),i+=s.parseResult.lowerCase?" on ":" ON "),u&&(e.joinCols.forEach((function(e){o||(i+=s.parseResult.lowerCase?" and ":" AND "),i+=s.convertSqlAnalyzerQualifiedIdentifier(e.columns[0],t.tables)+" = "+s.convertSqlAnalyzerQualifiedIdentifier(e.columns[1],t.tables),o=!1})),a+=e.totalQueryCount,r.push({value:i,meta:$E.Join,category:t.prependJoin?ad.PopularJoin:ad.PopularActiveJoin,popular:!0,details:e}))})),r.forEach((function(e){var t=e.details;t.relativePopularity=0===a?t.totalQueryCount:Math.round(100*t.totalQueryCount/a),e.weightAdjust=t.relativePopularity+1}))),e.next=20;break;case 18:e.prev=18,e.t0=e.catch(7);case 20:return e.abrupt("return",r);case 21:case"end":return e.stop()}}),e,this,[[7,18]])}))),function(){return f.apply(this,arguments)})},{key:"handleJoinConditions",value:(d=BE(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestJoinConditions,window.HAS_SQL_ANALYZER&&t&&this.sqlAnalyzer){e.next=3;break}return e.abrupt("return",[]);case 3:if((n=this.tableIdentifierChainsToPaths(t.tables)).length){e.next=6;break}return e.abrupt("return",[]);case 6:return r=[],e.prev=7,e.next=10,new Promise((function(e,t){s.onCancelFunctions.push(t),yg.getMultiTableEntry({namespace:s.executor.namespace(),compute:s.executor.compute(),connector:s.executor.connector(),paths:n}).then(e).catch(t)}));case 10:return i=e.sent,e.next=13,new Promise((function(e,t){s.onCancelFunctions.push(t);var n=i.getTopJoins({cancellable:!0,silenceErrors:!0,sqlAnalyzer:s.sqlAnalyzer});s.cancellablePromises.push(n),n.then(e).catch(t)}));case 13:o=e.sent,a=0,o.values&&(o.values.forEach((function(e){if(e.joinCols.length>0){var n=t.prependOn?s.parseResult.lowerCase?"on ":"ON ":"",i=!0;e.joinCols.forEach((function(e){i||(n+=s.parseResult.lowerCase?" and ":" AND "),n+=s.convertSqlAnalyzerQualifiedIdentifier(e.columns[0],t.tables)+" = "+s.convertSqlAnalyzerQualifiedIdentifier(e.columns[1],t.tables),i=!1})),a+=e.totalQueryCount,r.push({value:n,meta:$E.JoinCondition,category:ad.PopularJoinCondition,popular:!0,details:e})}})),r.forEach((function(e){var t=e.details;t.relativePopularity=0===a?t.totalQueryCount:Math.round(100*t.totalQueryCount/a),e.weightAdjust=t.relativePopularity+1}))),e.next=20;break;case 18:e.prev=18,e.t0=e.catch(7);case 20:return e.abrupt("return",r);case 21:case"end":return e.stop()}}),e,this,[[7,18]])}))),function(){return d.apply(this,arguments)})},{key:"handleAggregateFunctions",value:(h=BE(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s,c,l,u=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestAggregateFunctions,window.HAS_SQL_ANALYZER&&t&&t.tables.length&&this.sqlAnalyzer){e.next=3;break}return e.abrupt("return",[]);case 3:if((n=this.tableIdentifierChainsToPaths(t.tables)).length){e.next=6;break}return e.abrupt("return",[]);case 6:return r=[],e.prev=7,e.next=10,new Promise((function(e,t){u.onCancelFunctions.push(t),yg.getMultiTableEntry({namespace:u.executor.namespace(),compute:u.executor.compute(),connector:u.executor.connector(),paths:n}).then(e).catch(t)}));case 10:return i=e.sent,e.next=13,new Promise((function(e,t){u.onCancelFunctions.push(t);var n=i.getTopAggs({cancellable:!0,silenceErrors:!0,sqlAnalyzer:u.sqlAnalyzer});u.cancellablePromises.push(n),n.then(e).catch(t)}));case 13:if((o=e.sent).values&&o.values.length){e.next=16;break}return e.abrupt("return",[]);case 16:o.values.forEach((function(e){e.aggregateInfo.forEach((function(t){e.aggregateClause=e.aggregateClause.replace(new RegExp("([^.])"+t.columnName,"gi"),"$1"+t.databaseName+"."+t.tableName+"."+t.columnName)}))})),a=[],t.tables.forEach((function(e){var n=e.alias?e.alias+".":t.tables.length>1?e.identifierChain[e.identifierChain.length-1].name+".":"";e.identifierChain.length>1?a.push({replace:new RegExp(e.identifierChain.map((function(e){return e.name})).join(".")+".","gi"),with:n}):1===e.identifierChain.length&&(a.push({replace:new RegExp(u.activeDatabase+"."+e.identifierChain[0].name+".","gi"),with:n}),a.push({replace:new RegExp(e.identifierChain[0].name+".","gi"),with:n}))})),s=0,c=regeneratorRuntime.mark((function e(t){var n,i,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.values[t],s+=n.totalQueryCount,i=n.aggregateClause,a.forEach((function(e){i=i.replace(e.replace,e.with)})),e.next=6,_E(u.sqlReferenceProvider,u.executor.connector(),n.aggregateFunction);case 6:c=e.sent,n.function=c.length?c[0]:void 0,r.push({value:i,meta:n.function&&n.function.returnTypes.join("|")||"",category:ad.PopularAggregate,weightAdjust:Math.min(n.totalQueryCount,99),popular:!0,details:n});case 9:case"end":return e.stop()}}),e)})),l=0;case 22:if(!(l<o.values.length)){e.next=27;break}return e.delegateYield(c(l),"t0",24);case 24:l++,e.next=22;break;case 27:r.forEach((function(e){var t=e.details;t.relativePopularity=0===s?t.totalQueryCount:Math.round(100*t.totalQueryCount/s),e.weightAdjust=t.relativePopularity+1})),e.next=32;break;case 30:e.prev=30,e.t1=e.catch(7);case 32:return e.abrupt("return",r);case 33:case"end":return e.stop()}}),e,this,[[7,30]])}))),function(){return h.apply(this,arguments)})},{key:"handlePopularGroupByOrOrderBy",value:(u=BE(regeneratorRuntime.mark((function e(t,n,r){var i,o,a,s,c,l,u,h,d=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.sqlAnalyzer){e.next=2;break}return e.abrupt("return",[]);case 2:return i=[],n.tables.forEach((function(e){e.identifierChain&&(1===e.identifierChain.length&&e.identifierChain[0].name?i.push([d.activeDatabase,e.identifierChain[0].name]):2===e.identifierChain.length&&e.identifierChain[0].name&&e.identifierChain[1].name&&i.push([e.identifierChain[0].name,e.identifierChain[1].name]))})),e.prev=4,e.next=7,new Promise((function(e,t){d.onCancelFunctions.push(t);var n=yg.getCatalog(d.executor.connector()).loadSqlAnalyzerPopularityForTables({namespace:d.executor.namespace(),compute:d.executor.compute(),paths:i,sqlAnalyzer:d.sqlAnalyzer,silenceErrors:!0,cancellable:!0});d.cancellablePromises.push(n),n.then(e).catch(t)}));case 7:if(o=e.sent,a=0,s=[],c=n.prefix?(this.parseResult.lowerCase?n.prefix.toLowerCase():n.prefix)+" ":"",o.forEach((function(e){if(e.sqlAnalyzerPopularity){var n=e.sqlAnalyzerPopularity[t];n&&(a+=n.columnCount,s.push(e))}})),!(a>0)){e.next=24;break}if(l=[],s.forEach((function(e){var r=e.sqlAnalyzerPopularity&&e.sqlAnalyzerPopularity[t];if(r){var i=d.createSqlAnalyzerIdentifierForColumn(r,n.tables);l.push({value:c+i,filterValue:i,meta:"groupByColumn"===t?$E.GroupBy:$E.OrderBy,category:"groupByColumn"===t?ad.PopularGroupBy:ad.PopularOrderBy,weightAdjust:Math.round(100*r.columnCount/a),popular:!0,hasCatalogEntry:!1,details:e})}})),""!==c||!l.length){e.next=23;break}return e.next=18,r;case 18:return u=e.sent,h={},l.forEach((function(e){h[e.value]=e})),u.forEach((function(e){var t=e.details;h[t.name]&&(e.category=h[t.name].category)})),e.abrupt("return",[]);case 23:return e.abrupt("return",l);case 24:e.next=28;break;case 26:e.prev=26,e.t0=e.catch(4);case 28:return e.abrupt("return",[]);case 29:case"end":return e.stop()}}),e,this,[[4,26]])}))),function(e,t,n){return u.apply(this,arguments)})},{key:"handleGroupBys",value:(l=BE(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestGroupBys,window.HAS_SQL_ANALYZER&&n){e.next=3;break}return e.abrupt("return",[]);case 3:return e.next=5,this.handlePopularGroupByOrOrderBy("groupByColumn",n,t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"handleOrderBys",value:(c=BE(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestOrderBys,window.HAS_SQL_ANALYZER&&n){e.next=3;break}return e.abrupt("return",[]);case 3:return e.next=5,this.handlePopularGroupByOrOrderBy("orderByColumn",n,t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"handleFilters",value:(s=BE(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestFilters,window.HAS_SQL_ANALYZER&&t&&this.sqlAnalyzer){e.next=3;break}return e.abrupt("return",[]);case 3:if((n=this.tableIdentifierChainsToPaths(t.tables)).length){e.next=6;break}return e.abrupt("return",[]);case 6:return r=[],e.prev=7,e.next=10,new Promise((function(e,t){s.onCancelFunctions.push(t),yg.getMultiTableEntry({namespace:s.executor.namespace(),compute:s.executor.compute(),connector:s.executor.connector(),paths:n}).then(e).catch(t)}));case 10:return i=e.sent,e.next=13,new Promise((function(e,t){s.onCancelFunctions.push(t);var n=i.getTopFilters({cancellable:!0,silenceErrors:!0,sqlAnalyzer:s.sqlAnalyzer});s.cancellablePromises.push(n),n.then(e).catch(t)}));case 13:o=e.sent,a=0,o.values&&o.values.forEach((function(e){e.popularValues&&e.popularValues.forEach((function(n){n.group&&n.group.forEach((function(i){var o=t.prefix?(s.parseResult.lowerCase?t.prefix.toLowerCase():t.prefix)+" ":"";o+=s.createSqlAnalyzerIdentifier(e.tableName,i.columnName,t.tables),/^ /.test(i.op)||(o+=" "),o+=s.parseResult.lowerCase?i.op.toLowerCase():i.op,/ $/.test(i.op)||(o+=" "),o+=i.literal,a+=n.count,r.push({value:o,meta:$E.Filter,category:ad.PopularFilter,popular:!1,details:n})}))}))})),r.forEach((function(e){var t=e.details;t.relativePopularity=0===a?t.count:Math.round(100*t.count/a),e.weightAdjust=t.relativePopularity+1})),e.next=21;break;case 19:e.prev=19,e.t0=e.catch(7);case 21:return e.abrupt("return",r);case 22:case"end":return e.stop()}}),e,this,[[7,19]])}))),function(){return s.apply(this,arguments)})},{key:"handlePopularTables",value:(a=BE(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s,c=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestTables,window.HAS_SQL_ANALYZER&&n&&this.sqlAnalyzer){e.next=3;break}return e.abrupt("return",[]);case 3:return r=n.identifierChain&&1===n.identifierChain.length&&n.identifierChain[0].name?n.identifierChain[0].name:this.activeDatabase,e.prev=4,e.next=7,new Promise((function(e,t){c.onCancelFunctions.push(t),yg.getEntry({namespace:c.executor.namespace(),compute:c.executor.compute(),connector:c.executor.connector(),path:[r],temporaryOnly:c.temporaryOnly}).then(e).catch(t)}));case 7:return i=e.sent,e.next=10,new Promise((function(e,t){c.onCancelFunctions.push(t);var n=i.loadSqlAnalyzerPopularityForChildren({cancellable:!0,silenceErrors:!0,sqlAnalyzer:c.sqlAnalyzer});c.cancellablePromises.push(n),n.then(e).catch(t)}));case 10:if(o=e.sent,a=0,s=new Set,o.forEach((function(e){e.sqlAnalyzerPopularity&&e.sqlAnalyzerPopularity.popularity&&(s.add(e.name),a+=e.sqlAnalyzerPopularity.popularity)})),!(a>0&&s.size>0)){e.next=19;break}return e.next=17,t;case 17:e.sent.forEach((function(e){var t=e.details;if(s.has(t.name)){var n=t.sqlAnalyzerPopularity&&t.sqlAnalyzerPopularity.popularity||0;e.relativePopularity=Math.round(100*n/a),e.relativePopularity>=5&&(e.popular=!0),e.weightAdjust=e.relativePopularity}}));case 19:e.next=23;break;case 21:e.prev=21,e.t0=e.catch(4);case 23:return e.abrupt("return",[]);case 24:case"end":return e.stop()}}),e,this,[[4,21]])}))),function(e){return a.apply(this,arguments)})},{key:"handlePopularColumns",value:(o=BE(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s,c,l,u=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestColumns,window.HAS_SQL_ANALYZER&&n&&n.source&&this.sqlAnalyzer){e.next=3;break}return e.abrupt("return",[]);case 3:return r=[],e.prev=4,e.next=7,t;case 7:r=e.sent,e.next=12;break;case 10:e.prev=10,e.t0=e.catch(4);case 12:if(r.length){e.next=14;break}return e.abrupt("return",[]);case 14:return e.prev=14,i=[],n.tables.forEach((function(e){e.identifierChain&&e.identifierChain.length>0&&(1===e.identifierChain.length&&e.identifierChain[0].name?i.push([u.activeDatabase,e.identifierChain[0].name]):2===e.identifierChain.length&&e.identifierChain[0].name&&e.identifierChain[1].name&&i.push([e.identifierChain[0].name,e.identifierChain[1].name]))})),e.next=19,new Promise((function(e,t){u.onCancelFunctions.push(t);var n=yg.getCatalog(u.executor.connector()).loadSqlAnalyzerPopularityForTables({namespace:u.executor.namespace(),compute:u.executor.compute(),paths:i,sqlAnalyzer:u.sqlAnalyzer,silenceErrors:!0,cancellable:!0});u.cancellablePromises.push(n),n.then(e).catch(t)}));case 19:o=e.sent,e.t1=n.source,e.next="select"===e.t1?23:"group by"===e.t1?25:"order by"===e.t1?27:28;break;case 23:return a="selectColumn",e.abrupt("break",28);case 25:return a="groupByColumn",e.abrupt("break",28);case 27:a="orderByColumn";case 28:if(s=new Set,o.forEach((function(e){a&&e.sqlAnalyzerPopularity&&e.sqlAnalyzerPopularity[a]&&s.add(e.getQualifiedPath())})),a&&0!==s.size){e.next=32;break}return e.abrupt("return",[]);case 32:c=0,l=[],r.forEach((function(e){var t=e.details;if(a){var n=t.sqlAnalyzerPopularity&&t.sqlAnalyzerPopularity[a];n&&e.hasCatalogEntry&&s.has(t.getQualifiedPath())&&(l.push(e),c+=n.columnCount)}})),c>0&&l.forEach((function(e){var t=e.details;if(t.sqlAnalyzerPopularity&&a){var n=t.sqlAnalyzerPopularity[a];n&&(e.relativePopularity=Math.round(100*n.columnCount/c),e.relativePopularity>=5&&(e.popular=!0),e.weightAdjust=e.relativePopularity)}})),e.next=40;break;case 38:e.prev=38,e.t2=e.catch(14);case 40:return e.abrupt("return",[]);case 41:case"end":return e.stop()}}),e,this,[[4,10],[14,38]])}))),function(e){return o.apply(this,arguments)})},{key:"createSqlAnalyzerIdentifier",value:function(e,t,n){for(var r=e+"."+t.split(".").pop(),i=0;i<n.length;i++){var o="";if(2===n[i].identifierChain.length?o=n[i].identifierChain.map((function(e){return e.name})).join("."):1===n[i].identifierChain.length&&(o=this.activeDatabase+"."+n[i].identifierChain[0].name),0===r.indexOf(o)){r=r.substring(o.length+1),n[i].alias?r=n[i].alias+"."+r:n.length>0&&(r=n[i].identifierChain[n[i].identifierChain.length-1].name+"."+r);break}}return r}},{key:"createSqlAnalyzerIdentifierForColumn",value:function(e,t){for(var n=0;n<t.length;n++)if((!e.dbName||e.dbName===this.activeDatabase&&e.dbName===t[n].identifierChain[0].name)&&e.tableName&&OE(e.tableName,t[n].identifierChain[t[n].identifierChain.length-1].name)&&t[n].alias)return t[n].alias+"."+e.columnName;return e.dbName&&e.dbName!==this.activeDatabase?e.dbName+"."+e.tableName+"."+e.columnName:t.length>1?e.tableName+"."+e.columnName:e.columnName||""}},{key:"convertSqlAnalyzerQualifiedIdentifier",value:function(e,t){var n=this,r=[],i=!1;t.forEach((function(e){i=i||OE(e.identifierChain[0].name.toLowerCase(),n.activeDatabase.toLowerCase()),e.alias&&r.push({qualifiedName:e.identifierChain.map((function(e){return e.name})).join(".").toLowerCase(),alias:e.alias})}));for(var o=0;o<r.length;o++){if(0===e.toLowerCase().indexOf(r[o].qualifiedName))return r[o].alias+e.substring(r[o].qualifiedName.length);if(0===e.toLowerCase().indexOf(this.activeDatabase.toLowerCase()+"."+r[o].qualifiedName))return r[o].alias+e.substring((this.activeDatabase+"."+r[o].qualifiedName).length)}if(0===e.toLowerCase().indexOf(this.activeDatabase.toLowerCase())&&!i)return e.substring(this.activeDatabase.length+1);if(this.dialect()===HE){var a=e.split(".");if(a.length>2)return a.slice(1).join(".")}return e}},{key:"fetchFieldForIdentifierChain",value:(i=BE(regeneratorRuntime.mark((function e(t){var n,r,i,o,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],r=0;case 2:if(!(r<t.length)){e.next=11;break}if(!t[r].name||t[r].subQuery){e.next=7;break}n.push(t[r].name),e.next=8;break;case 7:return e.abrupt("return");case 8:r++,e.next=2;break;case 11:if(i=function(){var e=BE(regeneratorRuntime.mark((function e(t,n){var r,o,s,c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=n||[],t.length>0&&(((r=t.shift())||"phoenix"===a.dialect()&&""===r)&&n.push(r),t.length>0&&("item"===t[0]||"value"===t[0].name)&&(r=t.shift())&&n.push(r)),e.next=4,new Promise((function(e,t){a.onCancelFunctions.push(t),yg.getEntry({namespace:a.executor.namespace(),compute:a.executor.compute(),connector:a.executor.connector(),path:n,temporaryOnly:a.temporaryOnly}).then(e).catch(t)}));case 4:return o=e.sent,e.next=7,new Promise((function(e,t){a.onCancelFunctions.push(t);var n=o.getSourceMeta({silenceErrors:!0,cancellable:!0});a.cancellablePromises.push(n),n.then(e).catch(t)}));case 7:if(s=e.sent,c=s.extended_columns,a.dialect()===HE&&c&&1===c.length&&/^(?:map|array|struct)/i.test(c[0].type)&&t.unshift(c[0].name),!t.length){e.next=17;break}return/value|item|key/i.test(t[0])?(l=t.shift())&&n.push(l):"array"===s.type?n.push("item"):"map"===s.type&&n.push("value"),e.next=14,i(t,n);case 14:return e.abrupt("return",e.sent);case 17:return e.abrupt("return",o);case 18:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),!(n.length>1)||this.dialect()!==GE&&this.dialect()!==HE){e.next=23;break}return e.next=15,new Promise((function(e,t){a.onCancelFunctions.push(t),yg.getEntry({namespace:a.executor.namespace(),compute:a.executor.compute(),connector:a.executor.connector(),path:[],temporaryOnly:a.temporaryOnly}).then(e).catch(t)}));case 15:return o=e.sent,e.next=18,new Promise((function(e,t){a.onCancelFunctions.push(t);var n=o.getChildren({silenceErrors:!0,cancellable:!0});a.cancellablePromises.push(n),n.then(e).catch(t)}));case 18:e.sent.some((function(e){return OE(e.name,n[0])}))||n.unshift(this.activeDatabase),e.next=24;break;case 23:n.length<=1&&n.unshift(this.activeDatabase);case 24:return e.next=26,i(n);case 26:return e.abrupt("return",e.sent);case 27:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"cancelRequests",value:function(){for(;this.lastKnownRequests.length;)nm(this.lastKnownRequests.pop());for(;this.cancellablePromises.length;){var e=this.cancellablePromises.pop();e&&e.cancel&&e.cancel()}}}],r=[{key:"mergeColumns",value:function(e){e.sort((function(e,t){return e.value.localeCompare(t.value)}));for(var t=0;t<e.length;t++){var n=e[t];n.isColumn=!0;for(var r=!1;t+1<e.length&&e[t+1].value===n.value;t++){var i=e[t+1].table;if(i&&i.alias)e[t+1].value=i.alias+"."+e[t+1].value;else if(i&&i.identifierChain&&i.identifierChain.length){var o=i.identifierChain[i.identifierChain.length-1];void 0!==o.name?e[t+1].value=o.name+"."+e[t+1].value:void 0!==o.subQuery&&(e[t+1].value=o.subQuery+"."+e[t+1].value)}r=!0}if(n.table&&n.table.alias)n.value=n.table.alias+"."+n.value;else if(r&&n.table&&n.table.identifierChain&&n.table.identifierChain.length){var a=n.table.identifierChain[n.table.identifierChain.length-1];void 0!==a.name?n.value=a.name+"."+n.value:void 0!==a.subQuery&&(n.value=a.subQuery+"."+n.value)}}}}],n&&UE(t.prototype,n),r&&UE(t,r),e}();const qE=jE;function zE(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function YE(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){zE(o,r,i,a,s,"next",e)}function s(e){zE(o,r,i,a,s,"throw",e)}a(void 0)}))}}function KE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var XE=function(){function e(t){var n=this,r=t.editorId,i=t.executor,o=t.temporaryOnly,a=void 0!==o&&o,s=t.editor,c=t.fixedPrefix,l=t.fixedPostfix,u=t.autocompleteParser,h=t.sqlReferenceProvider,d=t.sqlAnalyzerProvider;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.editor=void 0,this.executor=void 0,this.fixedPrefix=void 0,this.fixedPostfix=void 0,this.autocompleteParser=void 0,this.autocompleteResults=void 0,this.editorId=void 0,this.subTracker=new xh,this.activeStatement=null,this.onPartial=void 0,this.editorId=r,this.editor=s,this.executor=i,this.fixedPrefix=c||function(){return""},this.fixedPostfix=l||function(){return""},this.autocompleteParser=u,this.autocompleteResults=new qE({sqlReferenceProvider:h,sqlAnalyzerProvider:d,executor:i,editor:s,temporaryOnly:a}),this.subTracker.subscribe(Rm,(function(e){e.id===n.editorId&&(n.activeStatement=e.activeStatement)}))}var t,n,r,i,o;return t=e,n=[{key:"getDialect",value:function(){return this.executor.connector().dialect}},{key:"parseActiveStatement",value:(o=YE(regeneratorRuntime.mark((function e(){var t,n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.activeStatement){e.next=2;break}return e.abrupt("return");case 2:if(t=this.activeStatement.location,n=this.editor.getCursorPosition(),!(t.first_line-1<n.row||t.first_line-1===n.row&&t.first_column<=n.column)||!(t.last_line-1>n.row||t.last_line-1===n.row&&t.last_column>=n.column)){e.next=14;break}return r=this.fixedPrefix()+this.editor.session.getTextRange({start:{row:t.first_line-1,column:t.first_column},end:n}),i=this.editor.session.getTextRange({start:n,end:{row:t.last_line-1,column:t.last_column}})+this.fixedPostfix(),e.prev=7,e.abrupt("return",this.autocompleteParser.parseSql(r,i));case 11:e.prev=11,e.t0=e.catch(7),console.warn(e.t0);case 14:case"end":return e.stop()}}),e,this,[[7,11]])}))),function(){return o.apply(this,arguments)})},{key:"parseAll",value:(i=YE(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",this.autocompleteParser.parseSql(this.editor.getTextBeforeCursor(),this.editor.getTextAfterCursor()));case 4:e.prev=4,e.t0=e.catch(0),console.warn(e.t0);case 7:case"end":return e.stop()}}),e,this,[[0,4]])}))),function(){return i.apply(this,arguments)})},{key:"autocomplete",value:(r=YE(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Ch(Sm,(function(e){e.editorChangeTime!==n.editor.lastChangeTime&&Ch(Cm,n.editorId)})),e.next=4,this.parseActiveStatement();case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),void 0!==console.warn&&console.warn(e.t0);case 10:if(t){e.next=20;break}return e.prev=11,e.next=14,this.parseAll();case 14:t=e.sent,e.next=20;break;case 17:e.prev=17,e.t1=e.catch(11),void 0!==console.warn&&console.warn(e.t1);case 20:return e.abrupt("return",t);case 21:case"end":return e.stop()}}),e,this,[[0,7],[11,17]])}))),function(){return r.apply(this,arguments)})},{key:"dispose",value:function(){this.subTracker.dispose()}}],n&&KE(t.prototype,n),e}(),JE={class:"autocompleter-header"},ZE={key:4,class:"autocompleter-header-popularity"},QE=["title"],ev={class:"autocompleter-details-contents"},tv={class:"autocompleter-details-contents-inner"},nv={key:0},rv={class:"details-attribute"},iv=Qr("i",{class:"fa fa-table fa-fw"},null,-1),ov={key:1,class:"details-attribute"},av=Qr("i",{class:"fa fa-key fa-fw"},null,-1),sv={key:2,class:"details-attribute"},cv=Qr("i",{class:"fa fa-key fa-fw"},null,-1),lv={key:3,class:"details-attribute"},uv=Qr("i",{class:"fa fa-key fa-fw"},null,-1),hv={key:4,class:"details-comment"},dv={key:5,class:"details-comment"},fv={key:6,class:"details-no-comment"},pv={key:2},gv=i(4801);hu()(gv.Z,{insert:"head",singleton:!1}),gv.Z.locals;const mv=mn({name:"SpinnerLargeIcon",template:'<svg class="hi hi-fw"><use xlink:href="#hueSpinnerLargeSymbol" /></svg>'}),Ev=mn({name:"SpinnerSmallIcon",template:'<svg class="hi hi-fw"><use xlink:href="#hueSpinnerSmallSymbol" /></svg>'}),vv=mn({name:"Spinner",components:{SpinnerSmallIcon:Ev,SpinnerLargeIcon:mv},props:{spin:{type:Boolean,default:!0},size:{type:String,default:"default"},center:{type:Boolean,default:!1},overlay:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},label:{type:String,default:""},blackout:{type:Boolean,default:!1}}});vv.render=function(e,t,n,i,o,a){var s=Ir("SpinnerLargeIcon"),c=Ir("SpinnerSmallIcon");return e.spin?(Hr(),qr("div",{key:0,class:l(["spinner-container",{"spinner-overlay":e.overlay,"spinner-inline":e.inline,spinner:!e.overlay&&!e.inline,"spinner-blackout":e.blackout}])},[Qr("div",{class:l(["spinner-inner",{"spinner-center":e.center,"spinner-large":"large"===e.size,"spinner-xlarge":"xlarge"===e.size}]),style:r({width:e.center&&e.inline?"100%":null})},["large"===e.size||"xlarge"===e.size?(Hr(),zr(s,{key:0,class:"spinner-spin"})):(Hr(),zr(c,{key:1,class:"spinner-spin"})),e.label?(Hr(),qr("span",pv,m(e.label),1)):ii("v-if",!0)],6)],2)):ii("v-if",!0)};const yv=vv,bv=mn({name:"ColumnIcon",template:'<svg class="hi hi-fw"><use xlink:href="#hueColumnSymbol" /></svg>'}),Av=mn({name:"DatabaseIcon",template:'<svg class="hi hi-fw"><use xlink:href="#hueDatabaseSymbol" /></svg>'}),Tv=mn({name:"TableIcon",template:'<svg class="hi hi-fw"><use xlink:href="#hueTableSymbol" /></svg>'}),Cv=mn({name:"ViewIcon",template:'<svg class="hi hi-fw"><use xlink:href="#hueViewSymbol" /></svg>'}),Rv=mn({name:"CatalogEntryDetailsPanel",components:{ColumnIcon:bv,TableIcon:Tv,ViewIcon:Cv,DatabaseIcon:Av,Spinner:yv},props:{suggestion:{type:Object,required:!0}},data:function(){return{loading:!1,comment:null,loadTimeout:-1,commentPromise:null}},computed:{details:function(){return this.suggestion.details},popularityTitle:function(){return"".concat((0,wh.Z)("Popularity")," ").concat(this.suggestion.relativePopularity,"%")},showTitle:function(){return!1}},mounted:function(){var e=this;this.details.hasResolvedComment()?this.comment=this.details.getResolvedComment():(this.loading=!0,this.loadTimeout=window.setTimeout((function(){e.commentPromise=e.details.getComment({silenceErrors:!0,cancellable:!0}),e.commentPromise.then((function(t){e.comment=t})).finally((function(){e.loading=!1}))}),1500))},unmounted:function(){window.clearTimeout(this.loadTimeout),this.commentPromise&&this.commentPromise.cancel()},methods:{I18n:wh.Z}});Rv.render=function(e,t,n,r,i,o){var a=Ir("DatabaseIcon"),s=Ir("ViewIcon"),c=Ir("TableIcon"),l=Ir("ColumnIcon"),u=Ir("spinner");return Hr(),qr("div",null,[Qr("div",JE,[e.details.isDatabase()?(Hr(),zr(a,{key:0})):e.details.isView()?(Hr(),zr(s,{key:1})):e.details.isTable()?(Hr(),zr(c,{key:2})):e.details.isField()?(Hr(),zr(l,{key:3})):ii("v-if",!0),Qr("span",null,m(e.details.getTitle()),1),e.suggestion.popular&&e.suggestion.relativePopularity?(Hr(),qr("div",ZE,[Qr("i",{class:"fa fa-fw fa-star-o popular-color",title:e.popularityTitle},null,8,QE)])):ii("v-if",!0)]),Qr("div",ev,[Qr("div",tv,[e.details.isColumn()?(Hr(),qr("div",nv,[Qr("div",rv,[iv,Qr("span",null,m(e.details.path[0])+"."+m(e.details.path[1]),1)])])):ii("v-if",!0),e.details.isPartitionKey()?(Hr(),qr("div",ov,[av,ri(" "+m(e.I18n("Partition key")),1)])):e.details.isPrimaryKey()?(Hr(),qr("div",sv,[cv,ri(" "+m(e.I18n("Primary key")),1)])):e.details.isForeignKey()?(Hr(),qr("div",lv,[uv,ri(" "+m(e.I18n("Foreign key")),1)])):ii("v-if",!0),e.loading?(Hr(),qr("div",hv,[ei(u,{size:"small",inline:!0})])):e.comment?(Hr(),qr("div",dv,m(e.comment),1)):(Hr(),qr("div",fv,m(e.I18n("No description")),1))])])])};const Sv=Rv;var _v={class:"autocompleter-header"},xv={class:"autocompleter-details-contents"},wv={class:"autocompleter-details-contents-inner"},Iv={class:"details-code"},Nv={class:"details-code"},Ov={class:"details-description"};const kv=mn({name:"OptionDetailsPanel",props:{suggestion:{type:Object,required:!0}},computed:{details:function(){return this.suggestion.details}},methods:{I18n:wh.Z}});kv.render=function(e,t,n,r,i,o){return Hr(),qr("div",null,[Qr("div",_v,m(e.suggestion.value),1),Qr("div",xv,[Qr("div",wv,[Qr("div",Iv,[ri(m(e.I18n("Type:"))+" ",1),Qr("span",null,m(e.details.type),1)]),Qr("div",Nv,[ri(m(e.I18n("Default:"))+" ",1),Qr("span",null,m(e.details.default),1)]),Qr("div",Ov,m(e.details.description),1)])])])};const Lv=kv;var Dv={class:"autocompleter-header"},Fv=Qr("i",{class:"fa fa-fw fa-superscript"},null,-1),Mv=["title"],Pv={class:"autocompleter-details-contents"},Bv={class:"autocompleter-details-contents-inner"},Uv={class:"details-code"},$v={class:"details-comment","data-bind":"text: details.function.description"},Hv={class:"ace-highlight"},Gv=i(4175);function Wv(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}var Vv=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Wv(o,r,i,a,s,"next",e)}function s(e){Wv(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",(0,Gv.WU)(t.statements,{uppercase:!0,linesBetweenQueries:2,indentQuerySeparator:!0}));case 4:if(e.prev=4,e.t0=e.catch(0),t.silenceErrors){e.next=8;break}throw e.t0;case 8:return e.abrupt("return",t.statements);case 9:case"end":return e.stop()}}),e,null,[[0,4]])})));return function(t){return e.apply(this,arguments)}}(),jv=function(e){return Ld("/api/editor/get_history",{doc_type:e.type,limit:e.limit||50,page:e.page||1,doc_text:e.docFilter,is_notification_manager:e.isNotificationManager})};function qv(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function zv(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){qv(o,r,i,a,s,"next",e)}function s(e){qv(o,r,i,a,s,"throw",e)}a(void 0)}))}}const Yv=mn({name:"SqlText",props:{dialect:{type:String,default:"hive"},value:{type:String,default:""},format:{type:Boolean,default:!1},enableOverflow:{type:Boolean,default:!1},splitLines:{type:Boolean,default:!1}},watch:{value:function(){var e=this;return zv(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.renderAce();case 1:case"end":return t.stop()}}),t)})))()}},mounted:function(){this.renderAce()},methods:{renderAce:function(){var e=this;return zv(regeneratorRuntime.mark((function t(){var n,r,i,o,a,s,c,l,u,h,d,f,p,g,m;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.value){t.next=2;break}return t.abrupt("return");case 2:n=window.ace,r=n.require("ace/tokenizer"),i=n.require("ace/layer/text"),o=n.require("ace/config"),a=r.Tokenizer;try{s=n.require("".concat(Xu(e.dialect),"_highlight_rules"))}catch(e){}if(c=s&&1===Object.keys(s).length?s[Object.keys(s)[0]]:n.require("sql_highlight_rules").SqlHighlightRules,l=[],o.loadModule(["theme",(E="hue.ace.theme",void 0,Ih(E)||"ace/theme/hue")]),u=i.Text,h=new a((new c).getRules()),d=e.value,!e.format){t.next=18;break}return t.next=17,Vv({statements:e.value,silenceErrors:!0});case 17:d=t.sent;case 18:f=d.split("\n"),p=function(e,t,n){var r=0,i=n[0],o=i.value;if(o)try{r=e.$renderToken(t,r,i,o)}catch(e){console.warn(o,"Failed to get screen column due to some parsing errors, skip rendering.")}for(var a=1;a<n.length;a++){o=(i=n[a]).value;try{r=e.$renderToken(t,r,i,o)}catch(e){console&&console.warn&&console.warn(o,"This token has some parsing errors and it has been rendered without highlighting."),t.push(o),r+=o.length}}},g="pull-left",e.splitLines||e.format?e.format&&(g="ace-highlight-pre"):g="pull-left",f.forEach((function(e){var t=[],n=h.getLineTokens(e);n&&n.tokens.length&&p(new u(document.createElement("div")),t,n.tokens),l.push('<div class="ace_line '+g+'">'+t.join("")+"&nbsp;</div>")})),m=e.enableOverflow?" overflow: auto;":"",e.$el.innerHTML='\n <div class="ace_editor ace-hue" style="background-color: transparent; '.concat(m,'">\n <div class="ace_layer" style="position: static; ').concat(m,'">').concat(l.join(""),"</div>\n </div>\n "),e.enableOverflow&&(e.$el.style.overflow="auto"),e.$el.querySelectorAll(".ace_invisible_space").forEach((function(e){return e.remove()}));case 27:case"end":return t.stop()}var E}),t)})))()}}});Yv.render=function(e,t,n,r,i,o){return Hr(),qr("div",Hv)};const Kv=Yv,Xv=mn({name:"PopularAggregateUdfPanel",components:{SqlText:Kv},props:{suggestion:{type:Object,required:!0},connector:{type:Object,default:void 0}},computed:{details:function(){return this.suggestion.details},description:function(){return this.details.function&&this.details.function.description||""},dialect:function(){return this.connector&&this.connector.dialect},popularityTitle:function(){return"".concat((0,wh.Z)("Relative popularity"),": ").concat(this.details.relativePopularity||"?","%")}},methods:{I18n:wh.Z}});Xv.render=function(e,t,n,r,i,o){var a=Ir("sql-text");return Hr(),qr("div",null,[Qr("div",Dv,[Fv,Qr("span",null,m(e.I18n("Popular aggregate")),1),Qr("i",{class:"popular fa fa-fw fa-star-o",title:e.popularityTitle},null,8,Mv)]),Qr("div",Pv,[Qr("div",Bv,[Qr("div",Uv,[ei(a,{value:e.suggestion.value,dialect:e.dialect},null,8,["value","dialect"])]),Qr("div",$v,m(e.description),1)])])])};const Jv=Xv;var Zv={class:"autocompleter-header"},Qv=Qr("i",{class:"fa fa-fw fa-superscript"},null,-1),ey=["title"],ty={class:"autocompleter-details-contents"},ny={class:"autocompleter-details-contents-inner"};const ry=mn({name:"PopularDetailsPanel",components:{SqlText:Kv},props:{suggestion:{type:Object,required:!0},connector:{type:Object,default:void 0}},computed:{details:function(){return this.suggestion.details},dialect:function(){return this.connector&&this.connector.dialect},popularityTitle:function(){return this.suggestion.category.categoryId===rd.PopularGroupBy||this.suggestion.category.categoryId===rd.PopularOrderBy?"".concat((0,wh.Z)("Workload percent"),": ").concat(this.details.workloadPercent||"?","%"):"".concat((0,wh.Z)("Relative popularity"),": ").concat(this.details.relativePopularity||"?","%")},title:function(){switch(this.suggestion.category.categoryId){case rd.PopularFilter:return(0,wh.Z)("Popular filter");case rd.PopularGroupBy:return(0,wh.Z)("Popular group by");case rd.PopularOrderBy:return(0,wh.Z)("Popular order by");case rd.PopularActiveJoin:case rd.PopularJoin:return(0,wh.Z)("Popular join");case rd.PopularJoinCondition:return(0,wh.Z)("Popular join condition")}return(0,wh.Z)("Popular")}}});ry.render=function(e,t,n,r,i,o){var a=Ir("sql-text");return Hr(),qr("div",null,[Qr("div",Zv,[Qv,Qr("span",null,m(e.title),1),Qr("i",{class:"popular fa fa-fw fa-star-o",title:e.popularityTitle},null,8,ey)]),Qr("div",ty,[Qr("div",ny,[ei(a,{value:e.suggestion.value,dialect:e.dialect},null,8,["value","dialect"])])])])};const iy=ry;var oy={class:"autocompleter-header"},ay=Qr("i",{class:"fa fa-fw fa-superscript"},null,-1),sy={class:"autocompleter-details-contents"},cy={class:"autocompleter-details-contents-inner"},ly={class:"details-code"},uy={class:"details-description"};const hy=mn({name:"UdfDetailsPanel",props:{suggestion:{type:Object,required:!0}},computed:{details:function(){return this.suggestion.details},udfName:function(){return this.details.signature.substring(0,this.details.signature.indexOf("("))}}});hy.render=function(e,t,n,r,i,o){return Hr(),qr("div",null,[Qr("div",oy,[ay,Qr("span",null,m(e.udfName),1)]),Qr("div",sy,[Qr("div",cy,[Qr("div",ly,m(e.details.signature),1),Qr("div",uy,m(e.details.description),1)])])])};const dy=hy;function fy(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}var py=Yu.require("ace/autocomplete/util"),gy=Yu.require("ace/keyboard/hash_handler").HashHandler;const my=mn({name:"AceAutocomplete",components:{CatalogEntryDetailsPanel:Sv,MatchedText:Kg,OptionDetailsPanel:Lv,PopularAggregateUdfPanel:Jv,PopularDetailsPanel:iy,Spinner:yv,UdfDetailsPanel:dy},directives:{"click-outside":hh},props:{autocompleteParser:{type:Object,required:!0},sqlReferenceProvider:{type:Object,required:!0},sqlAnalyzerProvider:{type:Object,default:void 0},editor:{type:Object,required:!0},editorId:{type:String,required:!0},executor:{type:Object,required:!0},temporaryOnly:{type:Boolean,required:!1,default:!1}},setup:function(e){var t=kt(e),n=t.autocompleteParser,r=t.editor,i=t.editorId,o=t.executor,a=t.sqlAnalyzerProvider,s=t.sqlReferenceProvider,c=t.temporaryOnly,l=new xh,u=new XE({autocompleteParser:n.value,editor:r.value,editorId:i.value,executor:o.value,sqlAnalyzerProvider:a.value||{getSqlAnalyzer:function(){return new id}},sqlReferenceProvider:s.value,temporaryOnly:c.value}),h=u.autocompleteResults;return l.addDisposable(u),{subTracker:l,autocompleter:u,autocompleteResults:h}},data:function(e){return{startLayout:null,startPixelRatio:window.devicePixelRatio,left:0,top:0,loading:!1,active:!1,filter:"",activeCategory:ad.All,selectedIndex:null,hoveredIndex:null,base:null,sortOverride:null,suggestions:[],reTriggerTimeout:-1,changeTimeout:-1,positionInterval:-1,keyboardHandler:null,changeListener:null,mousedownListener:e.detach.bind(e),mousewheelListener:e.closeOnScroll.bind(e)}},computed:{connector:function(){if(this.executor)return this.executor.connector()},detailsComponent:function(){if(this.focusedEntry&&this.focusedEntry.details)return this.focusedEntry.hasCatalogEntry?"CatalogEntryDetailsPanel":this.focusedEntry.category.detailsComponent},availableCategories:function(){return function(e){var t=new Set;e.forEach((function(e){e.popular?t.add(ad.Popular):e.category.categoryId!==rd.Table&&e.category.categoryId!==rd.Column&&e.category.categoryId!==rd.UDF||t.add(ad[e.category.categoryId])}));var n,r=function(e){if(Array.isArray(e))return od(e)}(n=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return od(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?od(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return r.sort((function(e,t){return e.label.localeCompare(t.label)})),r.unshift(ad.All),r}(this.suggestions)},filtered:function(){if(!this.autocompleteResults)return[];var e=this.suggestions;this.filter&&(e=jg.autocompleteFilter(this.filter,e),Ch("hue.ace.autocompleter.match.updated"));var t=this.activeCategory,n=new Map;return e=e.filter((function(e){return n.set(e.category.categoryId,(n.get(e.category.categoryId)||0)+1),!(t!==ad.Popular&&(n.get(e.category.categoryId)||0)>=10&&e.category.popular)&&(t.categoryId===ad.All.categoryId||t.categoryId===e.category.categoryId||t.categoryId===ad.Popular.categoryId&&e.popular)})),jg.sortSuggestions(e,this.filter,this.sortOverride),this.sortOverride=null,e},focusedEntry:function(){if(this.filtered.length){if(null!==this.hoveredIndex)return this.filtered[this.hoveredIndex];if(null!==this.selectedIndex)return this.filtered[this.selectedIndex]}},visible:function(){return this.active&&(this.loading||!!this.filtered.length)}},watch:{filter:function(){if(null!==this.selectedIndex){this.selectedIndex=0;var e=this.$refs.entriesScrollDiv;e&&(e.scrollTop=0)}},availableCategories:function(e){-1===e.indexOf(this.activeCategory)&&(this.activeCategory=e[0])}},created:function(){var e=this;this.keyboardHandler=new gy,this.registerKeybindings(this.keyboardHandler),this.changeListener=function(){if(e.autocompleteResults){window.clearTimeout(e.changeTimeout);var t=e.editor.selection.lead;e.base&&(t.row!==e.base.row||t.column<e.base.column)?e.detach():e.changeTimeout=window.setTimeout((function(){if(e.autocompleteResults&&e.base){var t=e.editor.getCursorPosition();e.active&&e.autocompleter&&e.autocompleter.onPartial&&e.autocompleter.onPartial(py.retrievePrecedingIdentifier(e.editor.session.getLine(t.row),t.column)),e.updateFilter(),e.positionAutocompleteDropdown(),e.filtered.length||e.detach()}}),200)}}},mounted:function(){var e=this,t=function(){var t=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){fy(o,r,i,a,s,"next",e)}function s(e){fy(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function t(){var n,r,i,o,a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.active&&e.autocompleter){t.next=2;break}return t.abrupt("return");case 2:if(n=e.editor.getSession(),r=e.editor.getCursorPosition(),i=n.getLine(r.row),o=py.retrievePrecedingIdentifier(i,r.column),a=n.doc.createAnchor(r.row,r.column-o.length),e.base&&a.column===e.base.column&&a.row===e.base.row){t.next=22;break}return e.positionAutocompleteDropdown(),t.prev=9,e.loading=!0,t.next=13,e.autocompleter.autocomplete();case 13:s=t.sent,sm.showParseResult&&console.log(s),s&&e.autocompleteResults&&(e.suggestions=[],e.autocompleteResults.update(s,e.suggestions).finally((function(){e.loading=!1})),e.selectedIndex=0,a.$insertRight=!0,e.base=a,e.autocompleteResults&&(e.filter=o),e.active=!0,e.attach()),t.next=22;break;case 18:t.prev=18,t.t0=t.catch(9),void 0!==console.warn&&console.warn(t.t0),e.detach();case 22:case"end":return t.stop()}}),t,null,[[9,18]])})));return function(){return t.apply(this,arguments)}}();this.editor.on("showAutocomplete",t);var n=this.detach.bind(this);this.editor.on("hideAutocomplete",n),this.subTracker.subscribe("hue.ace.autocompleter.hide",n),this.subTracker.addDisposable({dispose:function(){e.editor.off("showAutocomplete",t),e.editor.off("hideAutocomplete",n)}}),this.subTracker.subscribe("editor.autocomplete.temporary.sort.override",(function(t){e.sortOverride=t}))},unmounted:function(){this.disposeEventHandlers(),this.subTracker.dispose()},methods:{I18n:wh.Z,clickCategory:function(e,t){this.autocompleteResults&&(this.activeCategory=e,t.stopPropagation(),this.editor.focus())},clickOutside:function(){this.active&&this.detach()},clickSuggestion:function(e){this.selectedIndex=e,this.insertSuggestion(),this.editor.focus()},updateFilter:function(){if(this.base){var e=this.editor.getCursorPosition();this.filter=this.editor.session.getTextRange({start:this.base,end:e})}},registerKeybindings:function(e){var t=this;e.bindKeys({Up:function(){t.filtered.length<=1?(t.detach(),t.editor.execCommand("golineup")):t.selectedIndex?(t.selectedIndex=t.selectedIndex-1,t.hoveredIndex=null,t.scrollSelectionIntoView()):(t.selectedIndex=t.filtered.length-1,t.hoveredIndex=null,t.scrollSelectionIntoView())},Down:function(){t.filtered.length<=1?(t.detach(),t.editor.execCommand("golinedown")):null!==t.selectedIndex&&t.selectedIndex<t.filtered.length-1?(t.selectedIndex=t.selectedIndex+1,t.hoveredIndex=null,t.scrollSelectionIntoView()):(t.selectedIndex=0,t.hoveredIndex=null,t.scrollSelectionIntoView())},"Ctrl-Up|Ctrl-Home":function(){t.filtered.length<=1?(t.detach(),t.editor.execCommand("gotostart")):(t.selectedIndex=0,t.hoveredIndex=null,t.scrollSelectionIntoView())},"Ctrl-Down|Ctrl-End":function(){t.filtered.length<=1?(t.detach(),t.editor.execCommand("gotoend")):t.filtered.length>0&&(t.selectedIndex=t.filtered.length-1,t.hoveredIndex=null,t.scrollSelectionIntoView())},Esc:function(){t.detach()},Return:function(){t.insertSuggestion((function(){t.editor.execCommand("insertstring","\n")}))},"Shift-Return":function(){t.insertSuggestion()},Tab:function(){t.insertSuggestion((function(){t.editor.execCommand("indent")}))}})},insertSuggestion:function(e){var t=this;if(null===this.selectedIndex||!this.filtered.length)return this.detach(),void(e&&e());var n=this.filtered[this.selectedIndex].value;if(n.toLowerCase()!==this.filter.toLowerCase()){if(this.filter&&this.editor.selection.getAllRanges().forEach((function(e){e.start.column-=t.filter.length,t.editor.session.remove(e)})),this.editor.execCommand("insertstring",n),this.editor.renderer.scrollCursorIntoView(),this.detach(),this.editor.getOption("enableLiveAutocompletion")){if(/\S+\(\)$/.test(n))return void this.editor.moveCursorTo(this.editor.getCursorPosition().row,this.editor.getCursorPosition().column-1);window.clearTimeout(this.reTriggerTimeout),this.reTriggerTimeout=window.setTimeout((function(){var e;t.active||(/(\? from \S+[^.]\s*$)/i.test(n)?(t.editor.moveCursorTo(t.editor.getCursorPosition().row,t.editor.getCursorPosition().column-(n.length-1)),t.editor.removeTextBeforeCursor(1),e=!0):e=/\.$/.test(n),e&&(Ch("editor.refresh.statement.locations",t.editorId),window.setTimeout((function(){t.editor.execCommand("startAutocomplete")}),1)))}),400)}}else this.detach()},positionAutocompleteDropdown:function(){var e=this.editor.renderer,t=e.$cursorLayer.getPixelPosition(void 0,!0),n=this.editor.container.getBoundingClientRect(),r=e.layerConfig.lineHeight;this.top=t.top+n.top-e.layerConfig.offset+r+3,this.left=t.left+n.left-e.scrollLeft+e.gutterWidth},scrollSelectionIntoView:function(){var e=this.$refs.entriesScrollDiv,t=this.$refs.entriesDiv;if(e&&t&&null!==this.selectedIndex&&!(t.clientHeight<e.clientHeight)){var n=t.clientHeight/t.childElementCount,r=Math.ceil(e.scrollTop/n),i=e.clientHeight/n,o=r+i-1;r<=this.selectedIndex&&this.selectedIndex<=o||(this.selectedIndex<r?e.scrollTop=this.selectedIndex*n:e.scrollTop=Math.round((this.selectedIndex-(i-1))*n))}},suggestionSelected:function(e){this.selectedIndex=e,this.insertSuggestion(),this.editor.focus()},closeOnScroll:function(){if(this.active&&this.startLayout){var e=this.editor.container.getBoundingClientRect(),t=e.top-this.startLayout.top,n=e.left-this.startLayout.left;this.startPixelRatio!==window.devicePixelRatio?this.startLayout=e:(Math.abs(t)>10||Math.abs(n)>10)&&this.detach()}},attach:function(){this.updateFilter(),this.disposeEventHandlers(),this.startLayout=this.editor.container.getBoundingClientRect(),this.startPixelRatio=window.devicePixelRatio,this.keyboardHandler&&this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.changeListener&&this.editor.on("changeSelection",this.changeListener),this.editor.on("mousedown",this.mousedownListener),this.editor.on("mousewheel",this.mousewheelListener),this.positionInterval=window.setInterval(this.closeOnScroll.bind(this),300)},detach:function(){this.autocompleteResults&&(this.autocompleteResults.cancelRequests(),this.disposeEventHandlers(),this.active&&(this.active=!1,this.base&&(this.base.detach(),this.base=null)))},disposeEventHandlers:function(){window.clearTimeout(this.changeTimeout),window.clearInterval(this.positionInterval),this.keyboardHandler&&this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.changeListener&&this.editor.off("changeSelection",this.changeListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)}}});my.render=function(e,t,n,i,o,a){var s=Ir("spinner"),c=Ir("matched-text"),u=kr("click-outside");return e.visible?cr((Hr(),qr("div",{key:0,class:"hue-ace-autocompleter",style:r({top:e.top+"px",left:e.left+"px"})},[Qr("div",Lh,[e.availableCategories.length>1||e.loading?(Hr(),qr("div",Dh,[ii(" ko if: suggestions.availableCategories().length > 1 "),e.availableCategories.length>1?(Hr(),qr("div",Fh,[(Hr(!0),qr(Fr,null,li(e.availableCategories,(function(t){return Hr(),qr("div",{key:t.label,style:r({"border-color":e.activeCategory.categoryId===t.categoryId?t.color:"transparent"}),class:l({active:e.activeCategory.categoryId===t.categoryId}),onClick:function(n){return e.clickCategory(t,n)}},m(t.label),15,Mh)})),128))])):ii("v-if",!0),Qr("div",Ph,[ei(s,{spin:e.loading,size:"small"},null,8,["spin"])])])):ii("v-if",!0),Qr("div",Bh,[Qr("div",Uh,[(Hr(!0),qr(Fr,null,li(e.filtered,(function(n,i){return Hr(),qr("div",{key:e.filter+e.activeCategory.categoryId+n.category.categoryId+n.value,class:l(["autocompleter-suggestion",{selected:i===e.selectedIndex}]),onClick:function(t){return e.clickSuggestion(i)},onMouseover:function(t){return e.hoveredIndex=i},onMouseout:t[0]||(t[0]=function(t){return e.hoveredIndex=null})},[Qr("div",Hh,[Qr("div",{class:"autocompleter-dot",style:r({"background-color":n.category.color})},null,4),ei(c,{suggestion:n,filter:e.filter},null,8,["suggestion","filter"]),n.details&&n.details.hasOwnProperty("primary_key")?(Hr(),qr("i",Gh)):ii("v-if",!0)]),Qr("div",Wh,[n.popular?(Hr(),qr("i",Vh)):ii("v-if",!0),Qr("span",null,m(n.meta),1)])],42,$h)})),128))],512)],512)]),e.detailsComponent?(Hr(),qr("div",jh,[(Hr(),zr(Or(e.detailsComponent),{suggestion:e.focusedEntry,connector:e.connector},null,8,["suggestion","connector"]))])):ii("v-if",!0)],4)),[[u,e.clickOutside]]):ii("v-if",!0)};const Ey=my;function vy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var yy=function(e,t,n,r){for(var i=n;i<=r;i++)t.removeGutterDecoration(i,e)},by=function(e,t,n,r){for(var i=n;i<=r;i++)t.addGutterDecoration(i,e)},Ay=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.editor=void 0,this.gutterStart=void 0,this.gutterEnd=void 0,this.rowStart=void 0,this.rowEnd=void 0,this.changed=!1,this.rowMarkerSpec=void 0,this.gutterSpec=void 0,this.refreshThrottle=-1,this.editor=t;var n=this.editor.getSession().doc;this.gutterStart=n.createAnchor(0,0),this.gutterEnd=n.createAnchor(0,0),this.rowStart=n.createAnchor(0,0),this.rowEnd=n.createAnchor(0,0),this.attachChangeHandler()}var t,n;return t=e,(n=[{key:"attachChangeHandler",value:function(){var e=this,t=function(){window.clearTimeout(e.refreshThrottle),e.refreshThrottle=window.setTimeout(e.refresh.bind(e),10)};this.gutterStart.on("change",t),this.gutterEnd.on("change",t),this.rowStart.on("change",t),this.rowEnd.on("change",t)}},{key:"refresh",value:function(){var e=this.editor.getSession(),t=this.gutterStart.getPosition(),n=this.gutterEnd.getPosition();if(this.gutterSpec){var r=this.gutterSpec.span;yy(this.gutterSpec.cssClass,e,r.start,r.end),r.start=t.row,r.end=n.row,by(this.gutterSpec.cssClass,e,r.start,r.end)}if(this.rowMarkerSpec){var i=this.rowMarkerSpec.rowOffset,o=this.rowMarkerSpec.cssClass;this.removeMarkerRowCss(),this.setMarkerRowCss(o,i)}}},{key:"move",value:function(e,t){var n=e.last_line-1,r=Math.min(n,e.first_line-1+(t||0)),i=t?0:e.first_column;this.gutterStart.setPosition(r,i),this.gutterEnd.setPosition(n,e.last_column),this.rowMarkerSpec&&this.refreshRowAnchors(this.rowMarkerSpec.rowOffset)}},{key:"setGutterCss",value:function(e){this.gutterSpec&&this.removeGutterCss();var t=this.editor.getSession(),n=this.gutterStart.getPosition().row,r=this.gutterEnd.getPosition().row;this.gutterSpec={cssClass:e,span:{start:n,end:r}},by(e,t,n,r)}},{key:"refreshRowAnchors",value:function(e){var t=this.gutterStart.row+e;this.rowStart.setPosition(t,0),this.rowEnd.setPosition(t,this.editor.getSession().getLine(t).length)}},{key:"setMarkerRowCss",value:function(e,t){this.rowMarkerSpec&&this.removeMarkerRowCss(),this.refreshRowAnchors(t);var n=new(0,Yu.require("ace/range").Range)(0,0,0,0);n.start=this.rowStart,n.end=this.rowEnd;var r=this.editor.getSession().addMarker(n,e);this.rowMarkerSpec={cssClass:e,rowOffset:t,marker:r},this.rowMarkerSpec.marker=r}},{key:"removeMarkerRowCss",value:function(){this.rowMarkerSpec&&(this.editor.getSession().removeMarker(this.rowMarkerSpec.marker),this.rowMarkerSpec=void 0)}},{key:"removeGutterCss",value:function(){if(this.gutterSpec){var e=this.editor.getSession(),t=this.gutterSpec.span;yy(this.gutterSpec.cssClass,e,t.start,t.end),this.gutterSpec=void 0}}},{key:"dispose",value:function(){window.clearTimeout(this.refreshThrottle),this.gutterStart.detach(),this.gutterEnd.detach(),this.rowStart.detach(),this.rowEnd.detach(),this.removeGutterCss(),this.removeMarkerRowCss()}}])&&vy(t.prototype,n),e}();function Ty(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Cy=/(\r\n)|(\n)|(\r)/g,Ry=/^\s+/,Sy=function(e){var t=0,n=e.statement.match(Ry);if(n){var r=n[0].match(Cy);r&&(t=r.length)}return t},_y=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.editor=void 0,this.editorId=void 0,this.executor=void 0,this.trackedAnchors=new Map,this.subTracker=new xh,this.editor=t.editor,this.editorId=t.editorId,this.executor=t.executor;var r=new Ay(this.editor);r.setGutterCss("ace-active-gutter-decoration"),this.subTracker.subscribe(Rm,(function(e){if(e.id===n.editorId&&e.activeStatement){var t=Sy(e.activeStatement);r.move(e.activeStatement.location,t)}})),this.subTracker.addDisposable(r),this.executor&&this.subTracker.subscribe(Md,(function(e){if(e.executor===n.executor){var t=n.trackedAnchors.get(e.id);if(t||(t=new Ay(n.editor),n.trackedAnchors.set(e.id,t)),e.lost)return t.dispose(),void n.trackedAnchors.delete(e.id);t.removeGutterCss(),t.removeMarkerRowCss();var r=e.parsedStatement,i=Sy(r);if(t.move(r.location,i),e.isRunning())t.setGutterCss("ace-executing-gutter-decoration");else if(!e.edited&&e.isSuccess())t.setGutterCss("ace-completed-gutter-decoration");else if(!e.edited&&e.isFailed()&&(t.setGutterCss("ace-failed-gutter-decoration"),e.logs&&e.logs.errors.length)){var o=e.logs.errors[0];t.setMarkerRowCss("ace-failed-marker",o.row-i-1)}}}))}var t,n;return t=e,(n=[{key:"dispose",value:function(){this.subTracker.dispose()}}])&&Ty(t.prototype,n),e}(),xy="execute.active.executable";function wy(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Iy(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){wy(o,r,i,a,s,"next",e)}function s(e){wy(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Ny(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ky=/[\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u200B\u202F\u205F\u3000\uFEFF]/gi,Ly=function(e){return e.replace(ky," ")};const Dy=mn({name:"AceEditor",components:{AceSyntaxDropdown:kh,AceAutocomplete:Ey},props:{initialValue:{type:String,required:!1,default:""},initialCursorPosition:{type:Object,default:void 0},id:{type:String,required:!0},executor:{type:Object,required:!0},activeLocationHighlighting:{type:String,required:!1,default:function(){return"all"}},aceOptions:{type:Object,required:!1,default:function(){return{}}},sqlAnalyzerProvider:{type:Object,default:void 0},sqlParserProvider:{type:Object,default:void 0},sqlReferenceProvider:{type:Object,default:void 0}},emits:["active-statement-changed","value-changed","create-new-doc","save-doc","toggle-presentation-mode","ace-created","cursor-changed"],setup:function(e,t){var n=t.emit,r=kt(e),i=r.id,o=r.sqlAnalyzerProvider,a=r.sqlReferenceProvider,s=r.executor,c=r.initialCursorPosition,l=r.activeLocationHighlighting,u=r.sqlParserProvider,h=r.initialValue,d=r.aceOptions,f=new xh,p=St(null),g=St(null),m=!1,E=St(null);return u.value&&u.value.getAutocompleteParser(s.value.connector().dialect||"generic").then((function(e){E.value=e})),On((function(){var e=p.value;if(e){e.textContent=h.value;var t=Yu.edit(e);(function(e){var t=Ih("hue.ace.enableBasicAutocompletion",!0),n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ny(Object(n),!0).forEach((function(t){Oy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ny(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({enableBasicAutocompletion:t,enableLiveAutocompletion:t&&Ih("hue.ace.enableLiveAutocompletion",!0),fontSize:Ih("hue.ace.fontSize",navigator.platform&&navigator.platform.toLowerCase().indexOf("linux")>-1?"14px":"12px"),enableSnippets:!0,showGutter:!0,showLineNumbers:!0,showPrintMargin:!1,scrollPastEnd:.1,minLines:3,maxLines:25,tabSize:2,useSoftTabs:!0},d.value);e.setOptions(n)})(t),function(e){var t=Ih("ace.dark.theme.enabled",!1);e.setTheme(t?"ace/theme/hue_dark":"ace/theme/hue"),e.enabledMenuOptions={setShowInvisibles:!0,setTabSize:!0,setShowGutter:!0},e.customMenuOptions={setEnableDarkTheme:function(n){Nh("ace.dark.theme.enabled",t=n),e.setTheme(t?"ace/theme/hue_dark":"ace/theme/hue")},getEnableDarkTheme:function(){return t},setEnableAutocompleter:function(t){e.setOption("enableBasicAutocompletion",t),Nh("hue.ace.enableBasicAutocompletion",t);var n=document.getElementById("setEnableLiveAutocompletion");n&&(t&&!n.checked||!t&&n.checked)&&n.click()},getEnableAutocompleter:function(){return e.getOption("enableBasicAutocompletion")},setEnableLiveAutocompletion:function(t){e.setOption("enableLiveAutocompletion",t),Nh("hue.ace.enableLiveAutocompletion",t);var n=document.getElementById("setEnableAutocompleter");n&&t&&!n.checked&&n.click()},getEnableLiveAutocompletion:function(){return e.getOption("enableLiveAutocompletion")},setFontSize:function(t){-1===t.toLowerCase().indexOf("px")&&-1===t.toLowerCase().indexOf("em")&&(t+="px"),e.setOption("fontSize",t),Nh("hue.ace.fontSize",t)},getFontSize:function(){var t=e.getOption("fontSize");return-1===t.toLowerCase().indexOf("px")&&-1===t.toLowerCase().indexOf("em")&&(t+="px"),t}}}(t);var r=new Dm({editor:t,editorId:i.value,executor:s.value,activeLocationHighlighting:l.value,sqlReferenceProvider:a.value});f.addDisposable(r),t.$blockScrolling=1/0;var u=new _y({editor:t,editorId:i.value,executor:s.value});if(f.addDisposable(u),t.session.setMode(Xu(s.value.connector().dialect)),window.ENABLE_SQL_SYNTAX_CHECK&&window.Worker){var E=Ih("hue.ace.errorHighlightingEnabled",!0);E&&r.attachSqlSyntaxWorker(),t.customMenuOptions.setErrorHighlighting=function(e){E=e,Nh("hue.ace.errorHighlightingEnabled",e),e?r.attachSqlSyntaxWorker():r.detachSqlSyntaxWorker()},t.customMenuOptions.getErrorHighlighting=function(){return E},t.customMenuOptions.setClearIgnoredSyntaxChecks=function(){Nh("hue.syntax.checker.suppressedRules",{});var e=document.getElementById("setClearIgnoredSyntaxChecks");if(e&&e.parentNode){e.style.display="none";var t=document.createElement("div");t.style.marginTop="5px",t.style.float="right",t.innerText="done",e.insertAdjacentElement("beforebegin",t)}},t.customMenuOptions.getClearIgnoredSyntaxChecks=function(){return!1}}var v=Yu.require("ace/autocomplete").Autocomplete;t.completer||(t.completer=new v);var y=s.value.connector().is_sql;t.completer.exactMatch=!y;var b=Yu.require("ace/ext/language_tools");b.textCompleter.setSqlMode(y),t.completers&&(t.completers.length=0,y?t.useHueAutocompleter=!0:(t.completers.push(b.snippetCompleter),t.completers.push(b.textCompleter),t.completers.push(b.keyWordCompleter)));var A=function(){if(Ch("ace.editor.focused",t),t.session.$backMarkers)for(var e in t.session.$backMarkers)"highlighted"===t.session.$backMarkers[e].clazz&&t.session.removeMarker(t.session.$backMarkers[e].id)},T=function(e){e.text=Ly(e.text)},C=s.value.connector();if(o.value&&"api"===C.optimizer)try{nh(t,C,o.value)}catch(e){console.warn("Failed attaching predict typeahead..."),console.error(e)}var R=!1,S=function(){var e=document.createElement("div");return"hplsql"===C.dialect?e.innerText=(0,wh.Z)("Example: CREATE PROCEDURE name AS SELECT * FROM tablename limit 10 GO"):e.innerText=(0,wh.Z)("Example: SELECT * FROM tablename, or press CTRL + space"),e.style.marginLeft="6px",e.classList.add("ace_invisible"),e.classList.add("ace_emptyMessage"),e}(),_=function(){R||t.getValue().length?R&&(S.remove(),R=!1):(t.renderer.scroller.append(S),R=!0)};_();var x=function(e){if(1===e.domEvent.button){var n=e.$pos;if(!n)return;var r=t.getSelectedText();t.session.insert(n,r),eh((function(){t.moveCursorTo(n.row,n.column+r.length)}))}},w=function(){n("value-changed",Ly(t.getValue()))};t.on("change",w),t.on("blur",w),t.on("focus",A),t.on("paste",T),t.on("input",_),t.on("mousedown",x),f.addDisposable({dispose:function(){t.off("change",w),t.off("blur",w),t.off("focus",A),t.off("paster",T),t.off("input",_),t.off("mousedown",x)}});var I=function(){eh((function(){try{t.resize(!0)}catch(e){}}))};f.subscribe("ace.editor.focused",(function(e){m=t===e})),f.subscribe("assist.set.manual.visibility",I),f.subscribe("split.panel.resized",I),f.subscribe("ace.replace",(function(e){var n=new(0,Yu.require("ace/range").Range)(e.location.first_line-1,e.location.first_column-1,e.location.last_line-1,e.location.last_column-1);t.getSession().getDocument().replace(n,e.text)})),c.value&&(t.moveCursorToPosition(c.value),t.renderer.scrollCursorIntoView()),function(e,t,r){var i,o;e.commands.addCommand({name:"execute",bindKey:{win:"Ctrl-Enter",mac:"Command-Enter|Ctrl-Enter"},exec:(i=Iy(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.refreshStatementLocations(),e&&s.value.activeExecutable&&(r(),Ch(xy,s.value.activeExecutable));case 2:case"end":return n.stop()}}),n)}))),function(){return i.apply(this,arguments)})}),e.commands.addCommand({name:"switchTheme",bindKey:{win:"Ctrl-Alt-t",mac:"Command-Alt-t"},exec:function(){if(e.customMenuOptions&&e.customMenuOptions.getEnableDarkTheme&&e.customMenuOptions.setEnableDarkTheme){var t=e.customMenuOptions.getEnableDarkTheme();e.customMenuOptions.setEnableDarkTheme(!t)}}}),e.commands.addCommand({name:"new",bindKey:{win:"Ctrl-e",mac:"Command-e"},exec:function(){n("create-new-doc")}}),e.commands.addCommand({name:"save",bindKey:{win:"Ctrl-s",mac:"Command-s|Ctrl-s"},exec:function(){n("save-doc")}}),e.commands.addCommand({name:"togglePresentationMode",bindKey:{win:"Ctrl-Shift-p",mac:"Ctrl-Shift-p|Command-Shift-p"},exec:function(){n("toggle-presentation-mode")}}),e.commands.addCommand({name:"format",bindKey:{win:"Ctrl-i|Ctrl-Shift-f|Ctrl-Alt-l",mac:"Command-i|Ctrl-i|Ctrl-Shift-f|Command-Shift-f|Ctrl-Shift-l|Cmd-Shift-l"},exec:(o=Iy(regeneratorRuntime.mark((function t(){var n,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.setReadOnly(!0),t.prev=1,!e.getSelectedText()){t.next=10;break}return n=e.getSelectionRange(),t.next=6,Vv({statements:e.getSelectedText(),silenceErrors:!0});case 6:i=t.sent,e.getSession().replace(n,i),t.next=14;break;case 10:return t.next=12,Vv({statements:e.getValue(),silenceErrors:!0});case 12:o=t.sent,e.setValue(o,1);case 14:r(),t.next=19;break;case 17:t.prev=17,t.t0=t.catch(1);case 19:e.setReadOnly(!1);case 20:case"end":return t.stop()}}),t,null,[[1,17]])}))),function(){return o.apply(this,arguments)})}),e.commands.bindKey("Ctrl-P","golineup"),e.commands.bindKey({win:"Ctrl-j",mac:"Command-j|Ctrl-j"},"gotoline")}(t,r,w),function(e){var t=function(){return/^\s*$/.test(e.getValue())||/^.*;\s*$/.test(e.getTextBeforeCursor())},n=function(t,n){var r=e.getTextBeforeCursor(),i=/\S+$/.test(r)?" "+t:t;if(e.session.insert(e.getCursorPosition(),i),n){var o=e.getCursorPosition();e.moveCursorToPosition({row:o.row,column:o.column+n})}e.clearSelection(),e.focus()};f.subscribe("editor.insert.at.cursor",(function(t){(t.targetEditor===e||m)&&n(t.text,t.cursorEndAdjust)})),f.subscribe("editor.insert.table.at.cursor",(function(e){if(m){var r=s.value.database()===e.database?e.name:"".concat(e.database,".").concat(e.name);t()?n("SELECT * FROM ".concat(r," LIMIT 100;"),-1):n("".concat(r," "))}})),f.subscribe("editor.insert.column.at.cursor",(function(e){if(m&&t()){var r=s.value.database()===e.database?e.table:e.database+"."+e.table;n("SELECT ".concat(e.name," FROM ").concat(r," LIMIT 100;"),-1)}})),f.subscribe("sample.error.insert.click",(function(e){if(m&&e.identifierChain.length){var t=e.identifierChain[e.identifierChain.length-1].name;n("SELECT * FROM ".concat(t," LIMIT 100;"),-1)}}))}(t),g.value=t,n("ace-created",t)}})),f.subscribe("editor.cursor.position.changed",(function(e){e.editorId===i.value&&n("cursor-changed",e.position)})),f.subscribe(Rm,(function(e){i.value===e.id&&n("active-statement-changed",e)})),{autocompleteParser:E,editorElement:p,subTracker:f,editor:g,I18n:wh.Z}}});var Fy=i(1795);function My(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}hu()(Fy.Z,{insert:"head",singleton:!1}),Fy.Z.locals,Dy.render=function(e,t,n,r,i,o){var a=Ir("ace-autocomplete"),s=Ir("ace-syntax-dropdown");return Hr(),qr("div",qu,[Qr("div",{id:e.id,ref:"editorElement",class:"ace-editor"},null,8,zu),e.editor&&e.autocompleteParser?(Hr(),zr(a,{key:0,"autocomplete-parser":e.autocompleteParser,"sql-reference-provider":e.sqlReferenceProvider,"sql-analyzer-provider":e.sqlAnalyzerProvider,editor:e.editor,"editor-id":e.id,executor:e.executor},null,8,["autocomplete-parser","sql-reference-provider","sql-analyzer-provider","editor","editor-id","executor"])):ii("v-if",!0),e.editor?(Hr(),zr(s,{key:1,editor:e.editor,"editor-id":e.id},null,8,["editor","editor-id"])):ii("v-if",!0)])};var Py="query-editor";$u(Py,Dy);var By=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){My(o,r,i,a,s,"next",e)}function s(e){My(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Hu(Py);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const Uy=By;var $y={class:"query-history-table"},Hy={class:"query-history-top-bar"},Gy={class:"query-history-filter"},Wy={class:"query-history-actions"},Vy=Qr("i",{class:"fa fa-fw fa-calendar-times-o"},null,-1),jy=Qr("i",{class:"fa fa-fw fa-upload"},null,-1),qy={class:"query-history-table-container"},zy={class:"query-history-table-scrollable"},Yy={key:0,class:"no-history-entries"},Ky={key:0},Xy={key:1},Jy=i(3059),Zy={key:0},Qy={key:1},eb={class:"hue-modal-mask"},tb={class:"hue-modal-wrapper"},nb={class:"hue-modal-container"},rb={class:"hue-modal-header"},ib=[Qr("span",{"aria-hidden":"true"},"×",-1)],ob={class:"hue-modal-body"},ab={class:"hue-modal-footer"},sb=i(6758);hu()(sb.Z,{insert:"head",singleton:!1}),sb.Z.locals;const cb=mn({name:"Modal",props:{header:{type:String,default:""}},emits:["close"],methods:{I18n:wh.Z}});cb.render=function(e,t,n,r,i,o){return Hr(),zr(Wo,{name:"hue-modal"},{default:qt((function(){return[Qr("div",eb,[Qr("div",tb,[Qr("div",nb,[Qr("div",rb,[Qr("h3",null,m(e.header),1),Qr("button",{class:"hue-modal-close-button",type:"button","aria-label":"{{ I18n('Close') }}",onClick:t[0]||(t[0]=function(t){return e.$emit("close")})},ib)]),Qr("div",ob,[ui(e.$slots,"body")]),Qr("div",ab,[ui(e.$slots,"footer",{},(function(){return[Qr("button",{class:"hue-modal-default-button",onClick:t[1]||(t[1]=function(t){return e.$emit("close")})},"CLOSE")]}))])])])])]})),_:3})};const lb=cb;var ub=["disabled"],hb=i(2281);hu()(hb.Z,{insert:"head",singleton:!1}),hb.Z.locals;const db=mn({name:"HueButton",props:{primary:{type:Boolean,required:!1},alert:{type:Boolean,required:!1},borderless:{type:Boolean,required:!1},small:{type:Boolean,required:!1},large:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1}},emits:["click"]});db.render=function(e,t,n,r,i,o){return Hr(),qr("button",ci(e.$attrs,{class:["hue-btn",{"hue-btn-primary":e.primary,"hue-btn-alert":e.alert,"hue-btn-borderless":e.borderless,"hue-btn-small":e.small,"hue-btn-large":e.large}],type:"button",disabled:e.disabled,onClick:t[0]||(t[0]=function(t){return e.$emit("click")})}),[ui(e.$slots,"default")],16,ub)};const fb=db;function pb(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}const gb=mn({name:"ClearQueryHistoryModal",components:{HueButton:fb,Modal:lb},props:{modelValue:{type:Boolean,default:!1},connector:{type:Object,default:void 0}},emits:["update:model-value","history-cleared"],setup:function(e,t){var n=t.emit,r=kt(e).connector,i=St(!1),o=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){pb(o,r,i,a,s,"next",e)}function s(e){pb(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.value){e.next=2;break}return e.abrupt("return");case 2:return i.value=!0,e.prev=3,e.next=6,kd("/notebook/api/clear_history",{doc_type:r.value.dialect});case 6:n("history-cleared"),Ch("query.history.cleared"),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(3);case 12:i.value=!1,n("update:model-value",!1);case 14:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(){return e.apply(this,arguments)}}();return{clearHistory:o,clearingHistory:i,I18n:wh.Z}}});gb.render=function(e,t,n,r,i,o){var a=Ir("HueButton"),s=Ir("Modal");return e.modelValue?(Hr(),zr(s,{key:0,header:e.I18n("Confirm History Clear"),onClose:t[1]||(t[1]=function(t){return e.$emit("update:model-value",!1)})},{body:qt((function(){return[Qr("p",null,m(e.I18n("Are you sure you want to clear the query history?")),1)]})),footer:qt((function(){return[ei(a,{disabled:e.clearingHistory,onClick:t[0]||(t[0]=function(t){return e.$emit("update:model-value",!1)})},{default:qt((function(){return[ri(m(e.I18n("No")),1)]})),_:1},8,["disabled"]),ei(a,{alert:!0,disabled:e.clearingHistory,onClick:e.clearHistory},{default:qt((function(){return[e.clearingHistory?(Hr(),qr("span",Qy,m(e.I18n("Clearing...")),1)):(Hr(),qr("span",Zy,m(e.I18n("Yes")),1))]})),_:1},8,["disabled","onClick"])]})),_:1},8,["header"])):ii("v-if",!0)};const mb=gb;var Eb=["title"];const vb=mn({name:"ExecutionStatusIcon",props:{status:{type:String,default:null}},setup:function(e){var t=kt(e).status;return{statusSpec:Mt((function(){switch(t.value){case Pf.expired:return{title:(0,wh.Z)("Expired"),faIcon:"fa-unlink"};case Pf.available:return{title:(0,wh.Z)("Available"),faIcon:"fa-check"};case Pf.failed:return{title:(0,wh.Z)("Failed"),faIcon:"fa-exclamation"};case Pf.streaming:return{title:(0,wh.Z)("Streaming"),faIcon:"fa-fighter-jet"};case Pf.running:return{title:(0,wh.Z)("Running"),faIcon:"fa-fighter-jet"}}return null}))}}});vb.render=function(e,t,n,r,i,o){return e.statusSpec?(Hr(),qr("div",{key:0,title:e.statusSpec.title},[Qr("i",{class:l(["fa fa-fw",e.statusSpec.faIcon])},null,2)],8,Eb)):ii("v-if",!0)};const yb=vb;var bb=i(8892);hu()(bb.Z,{insert:"head",singleton:!1}),bb.Z.locals;var Ab={key:0},Tb={class:"header-row"},Cb=Qr("th",{class:"column-flush",scope:"col"},null,-1),Rb=["onClick"],Sb=["innerHTML"],_b=Qr("td",{class:"column-flush"},null,-1),xb=i(5301);hu()(xb.Z,{insert:"head",singleton:!1}),xb.Z.locals;const wb=mn({name:"HueTable",props:{rows:{type:Array,required:!1,default:function(){return[]}},columns:{type:Array,required:!1,default:function(){return[]}},caption:{type:String,default:void 0},showHeader:{type:Boolean,required:!1,default:!0},stickyHeader:{type:Boolean,required:!1,default:!1},stickyFirstColumn:{type:Boolean,required:!1,default:!1},clickableRows:{type:Boolean,default:!1}},emits:["scroll-to-end","row-clicked"],methods:{hasCellSlot:function(e){return!!this.$slots[this.cellSlotName(e)]},cellSlotName:function(e){return"cell-"+e.key},onContainerScroll:function(){var e=this.$refs.tableContainer;e.scrollHeight===e.scrollTop+e.clientHeight&&this.$emit("scroll-to-end")},cellClass:function(e,t){return e&&this.stickyFirstColumn&&0===t?"".concat(e," sticky-first-col"):this.stickyFirstColumn&&0===t?"sticky-first-col":e||null},onRowClick:function(e){this.clickableRows&&this.$emit("row-clicked",e)}}});wb.render=function(e,t,n,r,i,o){return Hr(),qr("div",{ref:"tableContainer",class:"hue-table-container",onScroll:t[0]||(t[0]=function(){return e.onContainerScroll&&e.onContainerScroll.apply(e,arguments)})},[Qr("table",{class:l(["hue-table",{"sticky-header":e.stickyHeader&&e.showHeader,"header-less":!e.showHeader}])},[Qr("caption",null,[ii(" Because of Web:TableWithoutCaptionCheck "),ri(m(e.caption),1)]),e.showHeader?(Hr(),qr("thead",Ab,[Qr("tr",Tb,[(Hr(!0),qr(Fr,null,li(e.columns,(function(t,n){return Hr(),qr("th",{key:n,class:l(e.cellClass(t.headerCssClass,n)),scope:"col"},m(void 0!==t.label?t.label:t.key),3)})),128)),ii(" To fill the blank space to the right when table width is smaller than available horizontal space "),Cb])])):ii("v-if",!0),Qr("tbody",{class:l({"clickable-rows":e.clickableRows})},[(Hr(!0),qr(Fr,null,li(e.rows,(function(t,n){return Hr(),qr("tr",{key:n,onClick:function(n){return e.onRowClick(t)}},[(Hr(!0),qr(Fr,null,li(e.columns,(function(n,r){return Hr(),qr("td",{key:r,class:l(e.cellClass(n.cssClass,r))},[e.hasCellSlot(n)?ui(e.$slots,e.cellSlotName(n),u(ci({key:0},t))):n.htmlValue?(Hr(),qr("div",{key:1,innerHTML:t[n.key]},null,8,Sb)):(Hr(),qr(Fr,{key:2},[ri(m(n.adapter?n.adapter(n.key,t):t[n.key]),1)],2112))],2)})),128)),_b],8,Rb)})),128))],2)],2)],544)};const Ib=wb;var Nb={key:2},Ob={key:3},kb={enctype:"multipart/form-data",novalidate:""},Lb=["accept","disabled","multiple"];const Db=mn({name:"FileUpload",props:{modelValue:{type:Object,default:null},accept:{type:String,default:"*"},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:model-value"],setup:function(e,t){var n=t.emit;return{onFileInputChange:function(e){n("update:model-value",e.target.files)}}}});function Fb(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}Db.render=function(e,t,n,r,i,o){return Hr(),qr("form",kb,[Qr("input",{type:"file",accept:e.accept,disabled:e.disabled,multiple:e.multiple,onChange:t[0]||(t[0]=function(){return e.onFileInputChange&&e.onFileInputChange.apply(e,arguments)})},null,40,Lb)])};const Mb=mn({name:"ImportDocumentsModal",components:{Spinner:yv,FileUpload:Db,HueButton:fb,Modal:lb},props:{modelValue:{type:Boolean,default:!1},header:{type:String,default:""}},emits:["update:model-value","documents-imported"],setup:function(e,t){var n=t.emit,r=St(!1),i=St(!1),o=St(null),a=St(null),s=St(!1),c=Mt((function(){var e;return i.value||r.value||!(null!==(e=o.value)&&void 0!==e&&e.length)})),l=Mt((function(){return i.value||r.value})),u=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Fb(o,r,i,a,s,"next",e)}function s(e){Fb(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t=o.value)&&t.length){e.next=3;break}return e.abrupt("return");case 3:return r.value=!0,(i=new FormData).append("documents",t[0]),e.prev=6,e.next=9,Dd("/desktop/api2/doc/import",i);case 9:a.value=e.sent,n("documents-imported"),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),s.value=!0;case 16:r.value=!1;case 17:case"end":return e.stop()}}),e,null,[[6,13]])})));return function(){return e.apply(this,arguments)}}();return{I18n:wh.Z,fileSelectionDisabled:l,importDisabled:c,importingDocuments:r,onImport:u,onModalClose:function(){n("update:model-value",!1),o.value=null,a.value=null},selectedFiles:o,uploadStats:a}}});Mb.render=function(e,t,n,r,i,o){var a=Ir("FileUpload"),s=Ir("Spinner"),c=Ir("HueButton"),l=Ir("Modal");return e.modelValue?(Hr(),zr(l,{key:0,header:e.header||e.I18n("Import Hue Documents"),onClose:e.onModalClose},{body:qt((function(){return[e.uploadStats||e.importingDocuments?e.importingDocuments?(Hr(),zr(s,{key:1,inline:!0,label:e.I18n("Importing....")},null,8,["label"])):(Hr(),qr("div",Nb,[Qr("div",null,[ri(m(e.I18n("Imported: "))+" ",1),Qr("span",null,m(e.uploadStats.count),1)]),Qr("div",null,[ri(m(e.I18n("Created: "))+" ",1),Qr("span",null,m(e.uploadStats.created_count),1)]),Qr("div",null,[ri(m(e.I18n("Updated: "))+" ",1),Qr("span",null,m(e.uploadStats.updated_count),1)])])):(Hr(),zr(a,{key:0,modelValue:e.selectedFiles,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.selectedFiles=t}),accept:".json",disabled:e.fileSelectionDisabled},null,8,["modelValue","accept","disabled"])),e.failed?(Hr(),qr("div",Ob,m(e.I18n("Import failed!")),1)):ii("v-if",!0)]})),footer:qt((function(){return[ei(c,{disabled:e.importingDocuments,onClick:e.onModalClose},{default:qt((function(){return[ri(m(e.I18n("Close")),1)]})),_:1},8,["disabled","onClick"]),e.uploadStats?ii("v-if",!0):(Hr(),zr(c,{key:0,alert:!0,disabled:e.importDisabled,onClick:e.onImport},{default:qt((function(){return[ri(m(e.I18n("Import")),1)]})),_:1},8,["disabled","onClick"]))]})),_:1},8,["header","onClose"])):ii("v-if",!0)};const Pb=Mb;var Bb={class:"hue-paginator"},Ub={class:"page-status"},$b=ri(" Rows per page: "),Hb={class:"navigation-actions"},Gb=i(2616);hu()(Gb.Z,{insert:"head",singleton:!1}),Gb.Z.locals,Vt("data-v-67701e3a");var Wb={class:"hue-icon"},Vb=["xlink:href"];jt();const jb=mn({name:"HueIcon",props:{type:{type:String,required:!0}},computed:{xlinkAttr:function(){return"#"+this.type}}});var qb=i(1519);hu()(qb.Z,{insert:"head",singleton:!1}),qb.Z.locals,jb.render=function(e,t,n,r,i,o){return Hr(),qr("svg",Wb,[Qr("use",{"xlink:href":e.xlinkAttr},null,8,Vb)])},jb.__scopeId="data-v-67701e3a";const zb=jb;var Yb=i(633);hu()(Yb.Z,{insert:"head",singleton:!1}),Yb.Z.locals;var Kb={ref:"panelElement",class:"hue-dropdown-panel"},Xb=Qr("i",{class:"fa fa-caret-down"},null,-1),Jb=Qr("i",{class:"fa fa-caret-down"},null,-1),Zb=i(9369);hu()(Zb.Z,{insert:"head",singleton:!1}),Zb.Z.locals;const Qb=mn({name:"HueLink",props:{url:{type:String,required:!1,default:""}},emits:["click"],methods:{clicked:function(e){this.url&&this.$attrs.target?function(e,t,n){if(0===t.indexOf("http"))window.open(t,n);else{var r=window.HUE_BASE_URL+"/hue"+(0===t.indexOf("/")?"":"/");n?window.open(r+t,n):e.ctrlKey||e.metaKey||2===e.which?window.open(r+t,"_blank"):Ch("open.link",t)}}(e,this.url,this.$attrs.target):this.$emit("click")}}});Qb.render=function(e,t,n,r,i,o){return Hr(),qr("a",{href:"javascript:void(0);",onClick:t[0]||(t[0]=function(){return e.clicked&&e.clicked.apply(e,arguments)})},[ui(e.$slots,"default")])};const eA=mn({name:"DropdownPanel",components:{DropdownDrawer:ph,HueButton:fb,HueLink:Qb},props:{closeOnClick:{type:Boolean,default:!0},text:{type:String,default:""},link:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup:function(){var e=St(void 0),t=St(void 0),n=St(!1);return On((function(){var n;null!==(n=e.value)&&void 0!==n&&n.firstChild&&(t.value=e.value.firstChild)})),{closeDrawer:function(){n.value=!1},open:n,panelElement:e,toggleDrawer:function(){n.value=!n.value},triggerElement:t}}});eA.render=function(e,t,n,r,i,o){var a=Ir("HueLink"),s=Ir("HueButton"),c=Ir("DropdownDrawer");return Hr(),qr("div",Kb,[e.link?(Hr(),zr(a,{key:0,disabled:e.disabled,onClick:e.toggleDrawer},{default:qt((function(){return[ri(m(e.text)+" ",1),Xb]})),_:1},8,["disabled","onClick"])):(Hr(),zr(s,{key:1,disabled:e.disabled,onClick:e.toggleDrawer},{default:qt((function(){return[ri(m(e.text)+" ",1),Jb]})),_:1},8,["disabled","onClick"])),ei(c,{open:e.open,"trigger-element":e.triggerElement,"close-on-click":e.closeOnClick,onClose:e.closeDrawer},{default:qt((function(){return[ui(e.$slots,"default",{closePanel:e.closeDrawer})]})),_:3},8,["open","trigger-element","close-on-click","onClose"])],512)};const tA=mn({name:"DropdownMenu",components:{DropdownPanel:eA},props:{text:{type:String,required:!1,default:""},link:{type:Boolean,required:!1,default:!1}}});tA.render=function(e,t,n,r,i,o){var a=Ir("dropdown-panel");return Hr(),zr(a,{text:e.text,link:e.link},{default:qt((function(){return[Qr("ul",null,[ui(e.$slots,"default")])]})),_:3},8,["text","link"])};const nA=tA;var rA=[25,50,100];const iA=mn({name:"Paginator",components:{DropdownMenu:nA,DropdownMenuButton:mh,HueIcon:zb},props:{totalEntries:{type:Number,required:!0}},emits:["page-changed"],setup:function(e,t){var n=t.emit,r=St(1),i=St(25),o=Mt((function(){return(r.value-1)*i.value})),a=void 0;return{currentPage:r,limit:i,offset:o,notifyPageChanged:function(){var e;(null===(e=a)||void 0===e?void 0:e.offset)===o.value&&a.limit===i.value&&a.pageNumber===r.value||(a={pageNumber:r.value,offset:o.value,limit:i.value},n("page-changed",a))},presetLimits:rA}},computed:{lastDisplayedIndex:function(){return Math.min(this.offset+this.limit,this.totalEntries-1)},totalPages:function(){return Math.ceil(this.totalEntries/this.limit)||1}},watch:{currentPage:function(e,t){e!==t&&this.notifyPageChanged()}},mounted:function(){this.notifyPageChanged()},methods:{gotoFirstPage:function(){this.currentPage=1},gotoPreviousPage:function(){this.currentPage=Math.max(this.currentPage-1,1)},gotoNextPage:function(){this.currentPage=Math.min(this.currentPage+1,this.totalPages)},gotoLastPage:function(){this.currentPage=this.totalPages},setLimit:function(e){if(e!==this.limit){var t=e/this.limit;this.limit=e;var n=this.currentPage;this.currentPage=Math.floor((this.currentPage-1)/t)+1,n===this.currentPage&&this.notifyPageChanged()}}}});iA.render=function(e,t,n,r,i,o){var a=Ir("dropdown-menu-button"),s=Ir("dropdown-menu"),c=Ir("hue-icon");return Hr(),qr("div",Bb,[Qr("div",Ub,m(e.offset+1)+"-"+m(Math.min(e.offset+e.limit,e.totalEntries))+" of "+m(e.totalEntries),1),$b,ei(s,{link:!0,text:String(e.limit)},{default:qt((function(){return[(Hr(!0),qr(Fr,null,li(e.presetLimits,(function(t){return Hr(),zr(a,{key:t,onClick:function(n){return e.setLimit(t)}},{default:qt((function(){return[ri(m(t),1)]})),_:2},1032,["onClick"])})),128))]})),_:1},8,["text"]),Qr("div",Hb,[Qr("a",{href:"javascript: void(0);",class:l({disabled:1===e.currentPage}),onClick:t[0]||(t[0]=function(){return e.gotoFirstPage&&e.gotoFirstPage.apply(e,arguments)})},[ei(c,{type:"hi-chevron-left-limit"})],2),Qr("a",{href:"javascript: void(0);",class:l({disabled:1===e.currentPage}),onClick:t[1]||(t[1]=function(){return e.gotoPreviousPage&&e.gotoPreviousPage.apply(e,arguments)})},[ei(c,{type:"hi-chevron-left"})],2),Qr("a",{href:"javascript: void(0);",class:l({disabled:e.currentPage===e.totalPages}),onClick:t[2]||(t[2]=function(){return e.gotoNextPage&&e.gotoNextPage.apply(e,arguments)})},[ei(c,{type:"hi-chevron-right"})],2),Qr("a",{href:"javascript: void(0);",class:l({disabled:e.currentPage===e.totalPages}),onClick:t[3]||(t[3]=function(){return e.gotoLastPage&&e.gotoLastPage.apply(e,arguments)})},[ei(c,{type:"hi-chevron-right-limit"})],2)])])};const oA=iA;var aA={key:0,class:"magnify-icon fa fa-fw fa-search"},sA={key:1,class:"magnify-icon fa fa-fw fa-spinner fa-spin"},cA={autocomplete:"off"},lA=["value","placeholder"],uA=i(2774);hu()(uA.Z,{insert:"head",singleton:!1}),uA.Z.locals;const hA=mn({name:"SearchInput",props:{showMagnify:{type:Boolean,required:!1,default:!0},placeholder:{type:String,default:(0,wh.Z)("Search...")},modelValue:{type:String,default:""},small:{type:Boolean,default:!1}},emits:["input","search","update:model-value"],data:function(){return{spin:!1,autocomplete:"",throttle:-1,hasFocus:!1}}});hA.render=function(e,t,n,r,i,o){return Hr(),qr("div",{class:l(["hue-search-input",{"search-input-small":e.small}])},[Qr("div",null,[e.showMagnify&&!e.spin?(Hr(),qr("i",aA)):e.showMagnify&&e.spin?(Hr(),qr("i",sA)):ii("v-if",!0),Qr("form",cA,[Qr("input",{value:e.modelValue,class:l(["hue-search-input-el",{"magnify-icon-input":e.showMagnify}]),autocorrect:"off",autocomplete:"do-not-autocomplete",autocapitalize:"off",spellcheck:"false",type:"text",placeholder:!e.hasFocus&&e.placeholder||"",onInput:t[0]||(t[0]=function(t){e.$emit("input",t.target.value),e.$emit("update:model-value",t.target.value)}),onFocusin:t[1]||(t[1]=function(t){return e.hasFocus=!0}),onFocusout:t[2]||(t[2]=function(t){return e.hasFocus=!1}),onKeyup:t[3]||(t[3]=wa((function(t){return e.$emit("search",t.target.value)}),["enter"]))},null,42,lA),cr(Qr("input",{"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.autocomplete=t}),class:l(["hue-search-input-overlay",{"magnify-icon-input":e.showMagnify}]),disabled:"",type:"text",autocomplete:"do-not-autocomplete"},null,2),[[pa,e.autocomplete]])])])],2)};const dA=hA;function fA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var pA={val:1e3,text:"second"},gA={val:60*pA.val,text:"minute"},mA={val:60*gA.val,text:"hour"},EA={val:24*mA.val,text:"day"},vA=[{val:365*EA.val,text:"year"},{val:EA.val*(365/12),text:"month"},EA,mA,gA,pA];const yA=mn({name:"TimeAgo",props:{value:{type:Number,required:!0}},computed:{timeAgo:function(){return function(e){var t,n=Date.now()-e,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return fA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fA(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(vA);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(n>=i.val){var o=Math.round(n/i.val),a=(0,wh.Z)("".concat(i.text).concat(o>1?"s":""," ago"));return"".concat(o," ").concat(a)}}}catch(e){r.e(e)}finally{r.f()}return(0,wh.Z)("now")}(this.value)}}});function bA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AA(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function TA(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){AA(o,r,i,a,s,"next",e)}function s(e){AA(o,r,i,a,s,"throw",e)}a(void 0)}))}}yA.render=function(e,t,n,r,i,o){return Hr(),qr("span",null,m(e.timeAgo),1)};const CA=mn({name:"QueryHistoryTable",components:{ExecutionStatusIcon:yb,ClearQueryHistoryModal:mb,HueButton:fb,HueTable:Ib,ImportDocumentsModal:Pb,Paginator:oA,SearchInput:dA,Spinner:yv,SqlText:Kv,TimeAgo:yA},props:{connector:{type:Object,default:void 0}},emits:["history-entry-clicked"],setup:function(e){var t=kt(e).connector,n=new xh,r=St(!1),i=St(!1),o=St([]),a=St(!1),s=St(!0),c=St(""),l=St(0),u=void 0,h=function(){var e=TA(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u&&u.cancel(),!t.value||!t.value.dialect){e.next=16;break}return s.value=!0,u=jv({type:t.value.dialect,page:null==n?void 0:n.pageNumber,limit:null==n?void 0:n.limit,docFilter:c.value}),e.prev=4,e.next=7,u;case 7:r=e.sent,l.value=r.count,o.value=r.history.map((function(e){var t,n=e.name,r=e.data,i=e.uuid,o=e.absoluteUrl;return{name:n,query:(t=r.statement,"".concat(t.substring(0,1e3)).concat(t.length>1e3?"...":"")),lastExecuted:r.lastExecuted,status:r.status,uuid:i,absoluteUrl:o}})),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(4);case 14:u=void 0,s.value=!1;case 16:case"end":return e.stop()}}),e,null,[[4,12]])})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=TA(regeneratorRuntime.mark((function e(){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=null===(n=t.value)||void 0===n?void 0:n.dialect)&&!i.value){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,i.value=!0,e.next=7,jv({type:r,page:1,limit:500});case 7:o=e.sent,Ch("ignore.next.unload"),o&&o.history&&(window.location.href="".concat(window.HUE_BASE_URL,"/desktop/api2/doc/export?history=true&documents=[").concat(o.history.map((function(e){return e.id})).join(","),"]")),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(3);case 14:i.value=!1;case 15:case"end":return e.stop()}}),e,null,[[3,12]])})));return function(){return e.apply(this,arguments)}}(),f=(0,Jy.debounce)(h,300);return ho(t,(function(){return f()}),{immediate:!0}),ho(c,(function(){return f()})),n.subscribe(Fd,(function(e){var n,r,i,a=e.newStatus,s=e.executable;a!==Pf.available&&a!==Pf.failed&&a!==Pf.success||!s.history||!s.handle||s.executor.connector().id!==(null===(n=t.value)||void 0===n?void 0:n.id)||o.value.some((function(e){return e.uuid===s.history.uuid}))||(o.value=[{absoluteUrl:void 0,lastExecuted:s.executeStarted,name:(null===(r=s.executor.snippet)||void 0===r?void 0:r.name())||"",query:s.handle.statement,status:s.status,uuid:s.history.uuid}].concat(function(e){if(Array.isArray(e))return bA(e)}(i=o.value)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return bA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bA(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l.value++)})),{I18n:wh.Z,clearHistoryModalOpen:r,columns:[{key:"lastExecuted"},{key:"status"},{key:"name"},{key:"query"}],exportingHistory:i,history:o,importHistoryModalOpen:a,loadingHistory:s,onClearClick:function(){r.value=!0},onExportClick:d,onImportClick:function(){a.value=!0},onPageChange:h,refresh:f,searchFilter:c,totalCount:l}}});function RA(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}CA.render=function(e,t,n,r,i,o){var a=Ir("ClearQueryHistoryModal"),s=Ir("ImportDocumentsModal"),c=Ir("SearchInput"),u=Ir("HueButton"),h=Ir("Spinner"),d=Ir("TimeAgo"),f=Ir("ExecutionStatusIcon"),p=Ir("SqlText"),g=Ir("HueTable"),E=Ir("Paginator");return Hr(),qr("div",$y,[ei(a,{modelValue:e.clearHistoryModalOpen,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.clearHistoryModalOpen=t}),connector:e.connector,onHistoryCleared:e.refresh},null,8,["modelValue","connector","onHistoryCleared"]),ei(s,{modelValue:e.importHistoryModalOpen,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.importHistoryModalOpen=t}),connector:e.connector,header:e.I18n("Import Query History"),onDocumentsImported:e.refresh},null,8,["modelValue","connector","header","onDocumentsImported"]),Qr("div",Hy,[Qr("div",Gy,[ei(c,{modelValue:e.searchFilter,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.searchFilter=t}),"show-magnify":!1,small:!0},null,8,["modelValue"])]),Qr("div",Wy,[ei(u,{small:!0,disabled:!e.history.length,onClick:e.onClearClick},{default:qt((function(){return[Vy,ri(" "+m(e.I18n("Clear")),1)]})),_:1},8,["disabled","onClick"]),ei(u,{small:!0,disabled:!e.history.length,onClick:e.onExportClick},{default:qt((function(){return[Qr("i",{class:l(["fa fa-fw",{"fa-download":!e.exportingHistory,"fa-spinner fa-spin":e.exportingHistory}])},null,2),ri(" "+m(e.I18n("Export")),1)]})),_:1},8,["disabled","onClick"]),ei(u,{small:!0,onClick:e.onImportClick},{default:qt((function(){return[jy,ri(" "+m(e.I18n("import")),1)]})),_:1},8,["onClick"])])]),Qr("div",qy,[ei(h,{spin:e.loadingHistory,center:!0,size:"xlarge",overlay:!0},null,8,["spin"]),Qr("div",zy,[ei(g,{"clickable-rows":!0,columns:e.columns,rows:e.history,"show-header":!1,onRowClicked:t[3]||(t[3]=function(t){return e.$emit("history-entry-clicked",t)})},{"cell-lastExecuted":qt((function(e){return[ei(d,{class:"query-history-last-executed",value:e.lastExecuted},null,8,["value"])]})),"cell-status":qt((function(e){return[ei(f,{class:"query-history-status",status:e.status},null,8,["status"])]})),"cell-query":qt((function(t){var n;return[ei(p,{value:t.query,dialect:null===(n=e.connector)||void 0===n?void 0:n.dialect},null,8,["value","dialect"])]})),_:1},8,["columns","rows"]),e.loadingHistory||e.totalCount?ii("v-if",!0):(Hr(),qr("div",Yy,[e.searchFilter?(Hr(),qr("span",Xy,m(e.I18n("No queries found for: "))+m(e.searchFilter),1)):(Hr(),qr("span",Ky,m(e.I18n("Query History is empty")),1))])),cr(ei(E,{"total-entries":e.totalCount,onPageChanged:e.onPageChange},null,8,["total-entries","onPageChanged"]),[[Ia,!e.loadingHistory&&e.totalCount]])])])])};var SA="query-editor-history-table";$u(SA,CA);var _A=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){RA(o,r,i,a,s,"next",e)}function s(e){RA(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Hu(SA);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const xA=_A;var wA=Qr("i",{class:"fa fa-fw fa-spinner fa-spin"},null,-1),IA=Qr("i",{class:"fa fa-play fa-fw"},null,-1),NA=Qr("i",{class:"fa fa-stop fa-fw"},null,-1),OA={key:0},kA={key:1},LA=Qr("i",{class:"fa fa-fw fa-spinner fa-spin"},null,-1);function DA(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function FA(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){DA(o,r,i,a,s,"next",e)}function s(e){DA(o,r,i,a,s,"throw",e)}a(void 0)}))}}var MA=/^\s*$/;const PA=mn({name:"ExecuteButton",components:{HueButton:fb},props:{executable:{type:Object,default:void 0},beforeExecute:{type:Function,default:void 0}},emits:["execute-failed","execute-started","execute-successful","executable-updated","execute-stopping"],setup:function(e,t){var n=t.emit,r=kt(e),i=r.executable,o=r.beforeExecute,a=new xh,s=null,c=St(!1),l=St(!0),u=St(!1),h=St(Pf.ready),d=St(!1),f=function(){var e=FA(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ch("hue.ace.autocompleter.hide"),i.value){e.next=3;break}return e.abrupt("return");case 3:if(!o.value){e.next=6;break}return e.next=6,o.value(i.value);case 6:return e.next=8,i.value.reset();case 8:n("execute-started",i.value),i.value.execute();case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=FA(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.value&&i.value){e.next=2;break}return e.abrupt("return");case 2:return n("execute-stopping",i.value),c.value=!0,e.next=6,i.value.cancelBatchChain(!0);case 6:c.value=!1;case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(e){var t=!s||s.type!==e.executor.connector().type;h.value=e.status,d.value=!e.parsedStatement||!MA.test(e.parsedStatement.statement),u.value=e.isPartOfRunningExecution(),t&&(l.value=!0,s=null,rf.getSession({type:e.executor.connector().id}).then((function(e){s=e,l.value=!1})))};return ho(i,(function(e){e&&g(e)}),{immediate:!0}),a.subscribe(Md,(function(e){var t=i.value&&i.value.id===e.id;t&&g(e),n("executable-updated",{executable:e,active:t})})),a.subscribe(Fd,(function(e){var t;e.executable.id===(null===(t=i.value)||void 0===t?void 0:t.id)&&(e.newStatus===Pf.available||e.newStatus===Pf.streaming||e.newStatus===Pf.success?n("execute-successful",i.value):e.newStatus===Pf.failed&&n("execute-failed",i.value))})),a.subscribe(xy,function(){var e=FA(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.value||i.value.id!==t.id){e.next=3;break}return e.next=3,f();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),{execute:f,subTracker:a,stop:p,stopping:c,loadingSession:l,partOfRunningExecution:u,status:h,hasStatement:d,I18n:wh.Z}},computed:{waiting:function(){return!!(this.executable&&this.executable.isReady()&&this.partOfRunningExecution)},disabled:function(){return this.loadingSession||!this.executable||!this.hasStatement},showExecute:function(){return!!this.executable&&!this.waiting&&!this.loadingSession&&this.status!==Pf.running&&this.status!==Pf.streaming},showStop:function(){return this.status===Pf.running||this.status===Pf.streaming||this.waiting}}});function BA(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}PA.render=function(e,t,n,r,i,o){var a=Ir("HueButton");return Hr(),qr(Fr,null,[e.loadingSession?(Hr(),zr(a,{key:"loading-button",small:!0,disabled:e.disabled,title:e.I18n("Creating session")},{default:qt((function(){return[wA,ri(" "+m(e.I18n("Loading")),1)]})),_:1},8,["disabled","title"])):ii("v-if",!0),e.showExecute?(Hr(),zr(a,{key:"execute-button",small:!0,primary:!0,disabled:e.disabled,onClick:e.execute},{default:qt((function(){return[IA,ri(" "+m(e.I18n("Execute")),1)]})),_:1},8,["disabled","onClick"])):ii("v-if",!0),e.showStop&&!e.stopping?(Hr(),zr(a,{key:"stop-button",small:!0,alert:!0,onClick:e.stop},{default:qt((function(){return[NA,e.waiting?(Hr(),qr("span",OA,m(e.I18n("Stop batch")),1)):(Hr(),qr("span",kA,m(e.I18n("Stop")),1))]})),_:1},8,["onClick"])):ii("v-if",!0),e.showStop&&e.stopping?(Hr(),zr(a,{key:"stopping-button",small:!0,alert:!0},{default:qt((function(){return[LA,ri(" "+m(e.I18n("Stopping")),1)]})),_:1})):ii("v-if",!0)],64)};var UA="query-editor-execute-button";$u(UA,PA);var $A=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){BA(o,r,i,a,s,"next",e)}function s(e){BA(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Hu(UA);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const HA=$A;Vt("data-v-0a455a57");var GA={autocomplete:"off",class:"inline-block margin-left-10"},WA=["placeholder"];jt();const VA=mn({name:"ExecuteLimitInput",props:{executable:{type:Object,default:void 0}},emits:["limit-changed"],setup:function(e){var t=kt(e).executable,n=St(null),r=new xh,i=function(e){n.value=e.executor.defaultLimit&&e.executor.defaultLimit()||null};return r.subscribe(Md,(function(e){t.value&&t.value.id===e.id&&i(e)})),ho(t,(function(e){e&&i(e)}),{immediate:!0}),{limit:n,I18n:wh.Z}}});var jA=i(9824);function qA(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}hu()(jA.Z,{insert:"head",singleton:!1}),jA.Z.locals,VA.render=function(e,t,n,r,i,o){return Hr(),qr("form",GA,[cr(Qr("input",{"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.limit=t}),class:"input-small limit-input",type:"number",autocorrect:"off",autocomplete:"do-not-autocomplete",autocapitalize:"off",spellcheck:"false",placeholder:e.I18n("Limit"),onChange:t[1]||(t[1]=function(t){return e.$emit("limit-changed",e.limit)})},null,40,WA),[[pa,e.limit]])])},VA.__scopeId="data-v-0a455a57";var zA="query-editor-limit-input";$u(zA,VA);var YA=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){qA(o,r,i,a,s,"next",e)}function s(e){qA(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Hu(zA);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const KA=YA;var XA={key:1},JA={class:"empty"},ZA=Qr("i",{class:"fa fa-spinner fa-spin"},null,-1),QA={key:2},eT={class:"empty"},tT={key:3},nT={class:"empty"},rT={key:4},iT={class:"empty"},oT={key:5},aT={class:"empty"},sT={key:6},cT={class:"empty"},lT={key:7},uT={class:"empty"},hT=i(6696);function dT(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}hu()(hT.Z,{insert:"head",singleton:!1}),hT.Z.locals;const fT=mn({name:"ResultTable",components:{HueTable:Ib},props:{executable:{type:Object,default:void 0}},setup:function(e){var t=kt(e).executable,n=new xh,r=St(!1),i=St(!1),o=St(!1),a=St(!1),s=St(!1),c=St([]),l=St([]),u=St(null),h=St(null),d=St(Wd.Table),f=Mt((function(){return!c.value.length&&o.value&&h.value===Pf.available&&i.value})),p=Mt((function(){return!c.value.length&&!o.value&&h.value===Pf.available&&i.value})),g=Mt((function(){return h.value===Pf.running})),m=Mt((function(){return!c.value.length&&h.value===Pf.expired})),E=Mt((function(){return!c.value.length&&h.value===Pf.failed})),v=Mt((function(){return!c.value.length&&a.value&&h.value!==Pf.running})),y=function(){d.value=Wd.Table,i.value=!1,a.value=!1,s.value=!1,c.value=[],l.value=[]},b=function(){var e,n=null===(e=t.value)||void 0===e?void 0:e.result;n?(function(e,t){if(t&&y(),e){i.value=e.fetchedOnce,s.value=e.hasMore,d.value=e.type||Wd.Table,a.value=e.streaming,!l.value.length&&e.meta.length&&(l.value=e.meta.map((function(e,t){return{label:e.name,key:t,htmlValue:!0}})));var n=function(e,t){t.forEach((function(t){a.value?e.unshift(t):e.push(t)}))};if(t){var r=[];n(r,e.rows),c.value=r}else e.lastRows.length&&c.value.length!==e.rows.length&&n(c.value,e.lastRows)}}(n,u.value!==t.value.result),u.value=n):y()},A=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){dT(o,r,i,a,s,"next",e)}function s(e){dT(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.value){e.next=2;break}return e.abrupt("return");case 2:if(!s.value||r.value||null===(n=t.value)||void 0===n||!n.result){e.next=12;break}return r.value=!0,e.prev=4,e.next=7,t.value.result.fetchRows({rows:100});case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(4);case 11:eh((function(){r.value=!1}));case 12:case"end":return e.stop()}}),e,null,[[4,9]])})));return function(){return e.apply(this,arguments)}}();return ho(t,b),n.subscribe(Md,(function(e){var n;(null===(n=t.value)||void 0===n?void 0:n.id)===e.id&&function(e){h.value=e.status,o.value=!(!e.handle||!e.handle.has_result_set),o.value||y()}(e)})),n.subscribe(Bd,(function(e){var n;(null===(n=t.value)||void 0===n?void 0:n.id)===e.executable.id&&b()})),{I18n:wh.Z,columns:l,grayedOut:r,hasEmptyResult:f,hasEmptySuccessResult:p,isExecuting:g,isExpired:m,isFailed:E,isWaitingForStream:v,onScrollToEnd:A,rows:c,subTracker:n}}});function pT(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}fT.render=function(e,t,n,r,i,o){var a=Ir("HueTable");return Hr(),qr("div",{class:l(["result-grid",{"grayed-out":e.grayedOut}])},[e.rows.length?(Hr(),zr(a,{key:0,columns:e.columns,rows:e.rows,"sticky-header":!0,"sticky-first-column":!0,onScrollToEnd:e.onScrollToEnd},null,8,["columns","rows","onScrollToEnd"])):e.isExecuting?(Hr(),qr("div",XA,[Qr("h1",JA,[ZA,ri(" "+m(e.I18n("Executing...")),1)])])):e.hasEmptySuccessResult?(Hr(),qr("div",QA,[Qr("h1",eT,m(e.I18n("Success.")),1)])):e.isExpired?(Hr(),qr("div",tT,[Qr("h1",nT,m(e.I18n("Results have expired, rerun the query if needed.")),1)])):e.isFailed?(Hr(),qr("div",rT,[Qr("h1",iT,m(e.I18n("Execution failed!")),1)])):e.hasEmptyResult?(Hr(),qr("div",oT,[Qr("h1",aT,m(e.I18n("Empty result.")),1)])):e.isWaitingForStream?(Hr(),qr("div",sT,[Qr("h1",cT,m(e.I18n("Waiting for streaming data...")),1)])):e.rows.length||e.executable&&e.executable.result?ii("v-if",!0):(Hr(),qr("div",lT,[Qr("h1",uT,m(e.I18n("Select and execute a query to see the result.")),1)]))],2)};var gT="query-editor-result-table";$u(gT,fT);var mT=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){pT(o,r,i,a,s,"next",e)}function s(e){pT(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Hu(gT);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const ET=mT;Vt("data-v-5ccb4105");var vT={class:"executable-progress-container"},yT={key:0,class:"executable-progress"};jt();const bT=mn({name:"ExecutableProgressBar",props:{executable:{type:Object,default:void 0}},setup:function(e){var t=new xh,n=kt(e).executable,r=St(0),i=St(Pf.ready),o=St("100%"),a=-1,s=function(e){window.clearTimeout(a),r.value=e&&e.progress||0,i.value=e&&e.status||Pf.ready,100===r.value?a=window.setTimeout((function(){o.value="0"}),2e3):o.value="100%"};return ho(n,(function(e){s(e)}),{immediate:!0}),t.subscribe(Md,(function(e){n.value&&n.value.id===e.id&&s(e)})),{subTracker:t,progress:r,status:i,progressBarHeight:o}},computed:{visible:function(){return this.status!==Pf.canceled},progressBarWidth:function(){return this.status===Pf.failed?"100%":"".concat(Math.max(2,this.progress),"%")},progressClass:function(){return this.status===Pf.failed?"progress-failed":0!==this.progress||this.status!==Pf.running&&this.status!==Pf.streaming&&this.status!==Pf.starting?0<this.progress&&this.progress<100?"progress-running":100===this.progress?"progress-success":"":"progress-starting"}}});var AT=i(172);function TT(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}hu()(AT.Z,{insert:"head",singleton:!1}),AT.Z.locals,bT.render=function(e,t,n,i,o,a){return Hr(),qr("div",vT,[e.visible?(Hr(),qr("div",yT,[Qr("div",{class:l(["executable-progress-bar",e.progressClass]),style:r({width:e.progressBarWidth,height:e.progressBarHeight})},null,6)])):ii("v-if",!0)])},bT.__scopeId="data-v-5ccb4105";var CT="query-editor-progress-bar";$u(CT,bT);var RT=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){TT(o,r,i,a,s,"next",e)}function s(e){TT(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Hu(CT);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const ST=RT;var _T={key:0},xT=["onClick"];const wT=mn({name:"ConnectorIcon",template:'<svg class="hi hi-fw"><use xlink:href="#hueConnectorSymbol" /></svg>'});var IT,NT="context.catalog.namespaces.refreshed";function OT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kT(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function LT(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){kT(o,r,i,a,s,"next",e)}function s(e){kT(o,r,i,a,s,"throw",e)}a(void 0)}))}}!function(e){e.Namespace="namespace",e.Compute="compute",e.Cluster="cluster"}(IT||(IT={}));var DT=window.LOGGED_USERNAME,FT=cd().createInstance({name:"HueContextCatalog_".concat(DT)}),MT=new Map,PT=new Map,BT=new Map;Rh("context.catalog.refresh",LT(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=MT.keys(),t=function(e){if(Array.isArray(e))return OT(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return OT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?OT(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),MT.clear(),PT.clear(),BT.clear(),e.prev=4,e.next=7,FT.clear();case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(4);case 11:Ch("context.catalog.refreshed"),t.forEach((function(e){Ch(NT,e)}));case 13:case"end":return e.stop()}var n}),e,null,[[4,9]])}))));var UT=function(e,t,n){n&&window.setTimeout(LT(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,FT.setItem("".concat(e,"_").concat(t.id),{version:4,entry:n});case 3:r.next=7;break;case 5:r.prev=5,r.t0=r.catch(0);case 7:case"end":return r.stop()}}),r,null,[[0,5]])}))),1e3)},$T=function(){var e=LT(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,FT.removeItem("".concat(t,"_").concat(n.id));case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),HT=function(){var e=LT(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=12;break;case 4:if(!(r=e.sent)||4!==r.version){e.next=7;break}return e.abrupt("return",r.entry);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.warn(e.t0);case 12:return e.abrupt("return",void 0);case 13:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(t,n){return e.apply(this,arguments)}}(),GT=function(){var e=LT(regeneratorRuntime.mark((function e(t){var n,r,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.connector,r=t.clearCache,i=t.silenceErrors,o=MT.has(n.id)&&r,!r){e.next=6;break}return MT.delete(n.id),e.next=6,$T(IT.Namespace,n);case 6:return MT.has(n.id)||MT.set(n.id,new Promise(function(){var e=LT(regeneratorRuntime.mark((function e(t,r){var a,s,c,l,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,HT(IT.Namespace,n);case 3:if(!(a=e.sent)){e.next=7;break}return t(a),e.abrupt("return");case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:return e.next=13,Tp(n,i);case 13:s=e.sent,(c=s[n.id])?(l=s.dynamicClusters,c.forEach((function(e){e.computes.forEach((function(e){!e.id&&e.crn&&(e.id=e.crn),!e.name&&e.clusterName&&(e.name=e.clusterName)}))})),u={namespaces:c.filter((function(e){return e.name})),dynamic:l,hueTimestamp:Date.now()},t(u),o&&Ch(NT,n.id),u.namespaces.length?UT(IT.Namespace,n,u):$T(IT.Namespace,n).catch(th)):r();case 16:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}())),e.abrupt("return",MT.get(n.id));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function WT(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}const VT=mn({name:"SqlContextSelector",components:{ConnectorIcon:wT,DropdownMenuButton:mh,DropdownMenu:nA},props:{allowNull:{type:Boolean,default:!1},fixedDialect:{type:String,default:null},listView:{type:Boolean,default:!1},modelValue:{type:Object,default:null}},emits:["update:model-value"],setup:function(e,t){var n=t.emit,r=kt(e),i=r.modelValue,o=r.allowNull,a=r.fixedDialect,s=new xh,c=St([]),l=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){WT(o,r,i,a,s,"next",e)}function s(e){WT(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(t){var r,i,o,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=7;break}return e.next=3,GT({connector:t});case 3:r=e.sent,i=r.namespaces,o=i.filter((function(e){return e.computes.length})),o.length?(a=o[0],s=a.computes[0],n("update:model-value",{connector:t,namespace:a,compute:s})):console.warn("Couldn't find a namespace and/or compute for connector: ".concat(t.id));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e;c.value=(e=function(e){return e.is_sql&&(!a.value||e.dialect===a.value)},function(e,t){return Rf(e).filter(t)}(of.editor,e));var t=null;i.value&&(t=c.value.find((function(e){return e.id===i.value.connector.id}))||c.value.find((function(e){return e.dialect===i.value.connector.dialect}))),o.value||t||!c.value.length||(t=c.value[0]),t||1!==c.value.length||(t=c.value[0]),l(t||null)};return On((function(){Cf().then(u)})),s.subscribe(vf,u),{connectors:c,connectorSelected:l,I18n:wh.Z}}});function jT(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}VT.render=function(e,t,n,r,i,o){var a,s=Ir("ConnectorIcon"),c=Ir("DropdownMenuButton"),l=Ir("DropdownMenu");return Hr(),qr(Fr,null,[e.listView&&e.connectors.length>1?(Hr(),qr("ul",_T,[(Hr(!0),qr(Fr,null,li(e.connectors,(function(t){return Hr(),qr("li",{key:t.id},[Qr("div",{onClick:function(n){return e.connectorSelected(t)}},[ei(s),ri(" "+m(t.displayName),1)],8,xT)])})),128))])):ii("v-if",!0),!e.listView&&e.connectors.length>1?(Hr(),zr(l,{key:1,link:!0,text:(null===(a=e.modelValue)||void 0===a?void 0:a.connector.name)||e.I18n("Source")},{default:qt((function(){return[(Hr(!0),qr(Fr,null,li(e.connectors,(function(t){return Hr(),zr(c,{key:t.id,onClick:function(n){return e.connectorSelected(t)}},{default:qt((function(){return[ri(m(t.displayName),1)]})),_:2},1032,["onClick"])})),128))]})),_:1},8,["text"])):ii("v-if",!0)],64)};var qT="sql-context-selector";$u(qT,VT);var zT=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){jT(o,r,i,a,s,"next",e)}function s(e){jT(o,r,i,a,s,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Hu(qT);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const YT=zT;function KT(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function XT(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){KT(o,r,i,a,s,"next",e)}function s(e){KT(o,r,i,a,s,"throw",e)}a(void 0)}))}}var JT=function(){var e=XT(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GT({connector:t,clearCache:!0});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ZT=function(){var e=XT(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([ju(),Uy(),xA(),HA(),KA(),ET(),ST(),YT()]);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const QT={clearContextCatalogCache:JT,configure:function(e){var t=e.baseUrl,n=e.bearerToken;t&&Cd(t),n&&Rd(n)},createExecutor:function(e){return new Xf(e)},dataCatalog:yg,findEditorConnector:xf,getNamespaces:GT,isQueryEditorComponentsDefined:ZT,refreshConfig:Af,setBaseUrl:Cd,setBearerToken:Rd}})(),o.default})()}));
  3. //# sourceMappingURL=QueryEditorWebComponents.js.map