@infinilabs/ui-web-cli 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -239,7 +239,7 @@ Please check the server is up and running`),o.rejectWith({},[l,s,c])}),o}functi
239
239
  `?k+b:typeof k=="string"?k.replace(/\t/g,g):k});var S=[];C.forEach(function(k,G){if(typeof k=="object"){var Z=k.tabstopId,q=S[Z];if(q||(q=S[Z]=[],q.index=Z,q.value=""),q.indexOf(k)===-1){q.push(k);var V=C.indexOf(k,G+1);if(V!==-1){var Y=C.slice(G+1,V),re=Y.some(function(se){return typeof se=="object"});re&&!q.value?q.value=Y:Y.length&&(!q.value||typeof q.value!="string")&&(q.value=Y.join(""))}}}}),S.forEach(function(k){k.length=0});var w={};function O(k){for(var G=[],Z=0;Z<k.length;Z++){var q=k[Z];if(typeof q=="object"){if(w[q.tabstopId])continue;var V=k.lastIndexOf(q,Z-1);q=G[V]||{tabstopId:q.tabstopId}}G[Z]=q}return G}for(var R=0;R<C.length;R++){var N=C[R];if(typeof N=="object"){var P=N.tabstopId,L=C.indexOf(N,R+1);if(w[P]){w[P]===N&&(w[P]=null);continue}var z=S[P],J=typeof z.value=="string"?[z.value]:O(z.value);J.unshift(R+1,Math.max(0,L-R)),J.push(N),w[P]=N,C.splice.apply(C,J),z.indexOf(N)===-1&&z.push(N)}}var X=0,j=0,H="";C.forEach(function(k){if(typeof k=="string"){var G=k.split(`
240
240
  `);G.length>1?(j=G[G.length-1].length,X+=G.length-1):j+=k.length,H+=k}else k.start?k.end={row:X,column:j}:k.start={row:X,column:j}});var U=h.getSelectionRange(),D=h.session.replace(U,H),W=new d(h),A=h.inVirtualSelectionMode&&h.selection.index;W.addTabstops(S,U.start,D,A)},this.insertSnippet=function(h,_){var p=this;if(h.inVirtualSelectionMode)return p.insertSnippetForSelection(h,_);h.forEachSelection(function(){p.insertSnippetForSelection(h,_)},null,{keepOrder:!0}),h.tabstopManager&&h.tabstopManager.tabNext()},this.$getScope=function(h){var _=h.session.$mode.$id||"";if(_=_.split("/").pop(),_==="html"||_==="php"){_==="php"&&!h.session.$mode.inlinePhp&&(_="html");var p=h.getCursorPosition(),m=h.session.getState(p.row);typeof m=="object"&&(m=m[0]),m.substring&&(m.substring(0,3)=="js-"?_="javascript":m.substring(0,4)=="css-"?_="css":m.substring(0,4)=="php-"&&(_="php"))}return _},this.getActiveScopes=function(h){var _=this.$getScope(h),p=[_],m=this.snippetMap;return m[_]&&m[_].includeScopes&&p.push.apply(p,m[_].includeScopes),p.push("_"),p},this.expandWithTab=function(h,_){var p=this,m=h.forEachSelection(function(){return p.expandSnippetForSelection(h,_)},null,{keepOrder:!0});return m&&h.tabstopManager&&h.tabstopManager.tabNext(),m},this.expandSnippetForSelection=function(h,_){var p=h.getCursorPosition(),m=h.session.getLine(p.row),g=m.substring(0,p.column),b=m.substr(p.column),C=this.snippetMap,S;return this.getActiveScopes(h).some(function(w){var O=C[w];return O&&(S=this.findMatchingSnippet(O,g,b)),!!S},this),S?(_&&_.dryRun||(h.session.doc.removeInLine(p.row,p.column-S.replaceBefore.length,p.column+S.replaceAfter.length),this.variables.M__=S.matchBefore,this.variables.T__=S.matchAfter,this.insertSnippetForSelection(h,S.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(h,_,p){for(var m=h.length;m--;){var g=h[m];if(!(g.startRe&&!g.startRe.test(_))&&!(g.endRe&&!g.endRe.test(p))&&!(!g.startRe&&!g.endRe))return g.matchBefore=g.startRe?g.startRe.exec(_):[""],g.matchAfter=g.endRe?g.endRe.exec(p):[""],g.replaceBefore=g.triggerRe?g.triggerRe.exec(_)[0]:"",g.replaceAfter=g.endTriggerRe?g.endTriggerRe.exec(p)[0]:"",g}},this.snippetMap={},this.snippetNameMap={},this.register=function(h,_){var p=this.snippetMap,m=this.snippetNameMap,g=this;h||(h=[]);function b(w){return w&&!/^\^?\(.*\)\$?$|^\\b$/.test(w)&&(w="(?:"+w+")"),w||""}function C(w,O,R){return w=b(w),O=b(O),w=O+w,w&&w[w.length-1]!="$"&&(w=w+"$"),new RegExp(w)}function S(w){w.scope||(w.scope=_||"_"),_=w.scope,p[_]||(p[_]=[],m[_]={});var O=m[_];if(w.name){var R=O[w.name];R&&g.unregister(R),O[w.name]=w}p[_].push(w),w.tabTrigger&&!w.trigger&&(!w.guard&&/^\w/.test(w.tabTrigger)&&(w.guard="\\b"),w.trigger=i.escapeRegExp(w.tabTrigger)),!(!w.trigger&&!w.guard&&!w.endTrigger&&!w.endGuard)&&(w.startRe=C(w.trigger,w.guard),w.triggerRe=new RegExp(w.trigger,"",!0),w.endRe=C(w.endTrigger,w.endGuard),w.endTriggerRe=new RegExp(w.endTrigger,"",!0))}h&&h.content?S(h):Array.isArray(h)&&h.forEach(S),this._signal("registerSnippets",{scope:_})},this.unregister=function(h,_){var p=this.snippetMap,m=this.snippetNameMap;function g(b){var C=m[b.scope||_];if(C&&C[b.name]){delete C[b.name];var S=p[b.scope||_],w=S&&S.indexOf(b);w>=0&&S.splice(w,1)}}h.content?g(h):Array.isArray(h)&&h.forEach(g)},this.parseSnippetFile=function(h){h=h.replace(/\r/g,"");for(var _=[],p={},m=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,g;g=m.exec(h);){if(g[1])try{p=JSON.parse(g[1]),_.push(p)}catch{}if(g[4])p.content=g[4].replace(/^\t/gm,""),_.push(p),p={};else{var b=g[2],C=g[3];if(b=="regex"){var S=/\/((?:[^\/\\]|\\.)*)|$/g;p.guard=S.exec(C)[1],p.trigger=S.exec(C)[1],p.endTrigger=S.exec(C)[1],p.endGuard=S.exec(C)[1]}else b=="snippet"?(p.tabTrigger=C.match(/^\S*/)[0],p.name||(p.name=C)):p[b]=C}}return _},this.getSnippetByName=function(h,_){var p=this.snippetNameMap,m;return this.getActiveScopes(_).some(function(g){var b=p[g];return b&&(m=b[h]),!!m},this),m}}).call(f.prototype);var d=function(h){if(h.tabstopManager)return h.tabstopManager;h.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=i.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(h)};(function(){this.attach=function(h){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=h,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(h){var _=h.action[0]=="r",p=h.start,m=h.end,g=p.row,b=m.row,C=b-g,S=m.column-p.column;if(_&&(C=-C,S=-S),!this.$inChange&&_){var w=this.selectedTabstop,O=w&&!w.some(function(L){return u(L.start,p)<=0&&u(L.end,m)>=0});if(O)return this.detach()}for(var R=this.ranges,N=0;N<R.length;N++){var P=R[N];if(!(P.end.row<p.row)){if(_&&u(p,P.start)<0&&u(m,P.end)>0){this.removeRange(P),N--;continue}P.start.row==g&&P.start.column>p.column&&(P.start.column+=S),P.end.row==g&&P.end.column>=p.column&&(P.end.column+=S),P.start.row>=g&&(P.start.row+=C),P.end.row>=g&&(P.end.row+=C),u(P.start,P.end)>0&&this.removeRange(P)}}R.length||this.detach()},this.updateLinkedFields=function(){var h=this.selectedTabstop;if(!(!h||!h.hasLinkedRanges)){this.$inChange=!0;for(var _=this.editor.session,p=_.getTextRange(h.firstNonLinked),m=h.length;m--;){var g=h[m];if(g.linked){var b=t.snippetManager.tmStrFormat(p,g.original);_.replace(g,b)}}this.$inChange=!1}},this.onAfterExec=function(h){h.command&&!h.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var h=this.editor.selection.lead,_=this.editor.selection.anchor,p=this.editor.selection.isEmpty(),m=this.ranges.length;m--;)if(!this.ranges[m].linked){var g=this.ranges[m].contains(h.row,h.column),b=p||this.ranges[m].contains(_.row,_.column);if(g&&b)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(h){var _=this.tabstops.length,p=this.index+(h||1);p=Math.min(Math.max(p,1),_),p==_&&(p=0),this.selectTabstop(p),p===0&&this.detach()},this.selectTabstop=function(h){this.$openTabstops=null;var _=this.tabstops[this.index];if(_&&this.addTabstopMarkers(_),this.index=h,_=this.tabstops[this.index],!(!_||!_.length)){if(this.selectedTabstop=_,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(_.firstNonLinked);else{var p=this.editor.multiSelect;p.toSingleRange(_.firstNonLinked.clone());for(var m=_.length;m--;)_.hasLinkedRanges&&_[m].linked||p.addRange(_[m].clone(),!0);p.ranges[0]&&p.addRange(p.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(h,_,p){if(this.$openTabstops||(this.$openTabstops=[]),!h[0]){var m=a.fromPoints(p,p);x(m.start,_),x(m.end,_),h[0]=[m],h[0].index=0}var g=this.index,b=[g+1,0],C=this.ranges;h.forEach(function(S,w){for(var O=this.$openTabstops[w]||S,R=S.length;R--;){var N=S[R],P=a.fromPoints(N.start,N.end||N.start);y(P.start,_),y(P.end,_),P.original=N,P.tabstop=O,C.push(P),O!=S?O.unshift(P):O[R]=P,N.fmtString?(P.linked=!0,O.hasLinkedRanges=!0):O.firstNonLinked||(O.firstNonLinked=P)}O.firstNonLinked||(O.hasLinkedRanges=!1),O===S&&(b.push(O),this.$openTabstops[w]=O),this.addTabstopMarkers(O)},this),b.length>2&&(this.tabstops.length&&b.push(b.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,b))},this.addTabstopMarkers=function(h){var _=this.editor.session;h.forEach(function(p){p.markerId||(p.markerId=_.addMarker(p,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(h){var _=this.editor.session;h.forEach(function(p){_.removeMarker(p.markerId),p.markerId=null})},this.removeRange=function(h){var _=h.tabstop.indexOf(h);h.tabstop.splice(_,1),_=this.ranges.indexOf(h),this.ranges.splice(_,1),this.editor.session.removeMarker(h.markerId),h.tabstop.length||(_=this.tabstops.indexOf(h.tabstop),_!=-1&&this.tabstops.splice(_,1),this.tabstops.length||this.detach())},this.keyboardHandler=new s,this.keyboardHandler.bindKeys({Tab:function(h){t.snippetManager&&t.snippetManager.expandWithTab(h)||h.tabstopManager.tabNext(1)},"Shift-Tab":function(h){h.tabstopManager.tabNext(-1)},Esc:function(h){h.tabstopManager.detach()},Return:function(h){return!1}})}).call(d.prototype),l.prototype.onChange;var y=function(h,_){h.row==0&&(h.column+=_.column),h.row+=_.row},x=function(h,_){h.row==_.row&&(h.column-=_.column),h.row-=_.row};e("./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;}"),t.snippetManager=new f;var E=e("./editor").Editor;(function(){this.insertSnippet=function(h,_){return t.snippetManager.insertSnippet(this,h,_)},this.expandSnippet=function(h){return t.snippetManager.expandWithTab(this,h)}}).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){var r=e("../virtual_renderer").VirtualRenderer,o=e("../editor").Editor,i=e("../range").Range,a=e("../lib/event"),l=e("../lib/lang"),s=e("../lib/dom"),c=function(f){var d=new r(f);d.$maxLines=4;var y=new o(d);return y.setHighlightActiveLine(!1),y.setShowPrintMargin(!1),y.renderer.setShowGutter(!1),y.renderer.setHighlightGutterLine(!1),y.$mouseHandler.$focusWaitTimout=0,y.$highlightTagPending=!0,y},u=function(f){var d=s.createElement("div"),y=new c(d);f&&f.appendChild(d),d.style.display="none",y.renderer.content.style.cursor="default",y.renderer.setStyle("ace_autocomplete"),y.setOption("displayIndentGuides",!1),y.setOption("dragDelay",150);var x=function(){};y.focus=x,y.$isFocused=!0,y.renderer.$cursorLayer.restartTimer=x,y.renderer.$cursorLayer.element.style.opacity=0,y.renderer.$maxLines=8,y.renderer.$keepTextAreaAtCursor=!1,y.setHighlightActiveLine(!1),y.session.highlight(""),y.session.$searchHighlight.clazz="ace_highlight-marker",y.on("mousedown",function(b){var C=b.getDocumentPosition();y.selection.moveToPosition(C),_.start.row=_.end.row=C.row,b.stop()});var E,h=new i(-1,0,-1,1/0),_=new i(-1,0,-1,1/0);_.id=y.session.addMarker(_,"ace_active-line","fullLine"),y.setSelectOnHover=function(b){b?h.id&&(y.session.removeMarker(h.id),h.id=null):h.id=y.session.addMarker(h,"ace_line-hover","fullLine")},y.setSelectOnHover(!1),y.on("mousemove",function(b){if(!E){E=b;return}if(!(E.x==b.x&&E.y==b.y)){E=b,E.scrollTop=y.renderer.scrollTop;var C=E.getDocumentPosition().row;h.start.row!=C&&(h.id||y.setRow(C),m(C))}}),y.renderer.on("beforeRender",function(){if(E&&h.start.row!=-1){E.$pos=null;var b=E.getDocumentPosition().row;h.id||y.setRow(b),m(b,!0)}}),y.renderer.on("afterRender",function(){var b=y.getRow(),C=y.renderer.$textLayer,S=C.element.childNodes[b-C.config.firstRow];S!=C.selectedNode&&(C.selectedNode&&s.removeCssClass(C.selectedNode,"ace_selected"),C.selectedNode=S,S&&s.addCssClass(S,"ace_selected"))});var p=function(){m(-1)},m=function(b,C){b!==h.start.row&&(h.start.row=h.end.row=b,C||y.session._emit("changeBackMarker"),y._emit("changeHoverMarker"))};y.getHoveredRow=function(){return h.start.row},a.addListener(y.container,"mouseout",p),y.on("hide",p),y.on("changeSelection",p),y.session.doc.getLength=function(){return y.data.length},y.session.doc.getLine=function(b){var C=y.data[b];return typeof C=="string"?C:C&&C.value||""};var g=y.session.bgTokenizer;return g.$tokenizeRow=function(b){var C=y.data[b],S=[];if(!C)return S;typeof C=="string"&&(C={value:C}),C.caption||(C.caption=C.value||C.name);for(var w=-1,O,R,N=0;N<C.caption.length;N++)R=C.caption[N],O=C.matchMask&1<<N?1:0,w!==O?(S.push({type:C.className||(O?"completion-highlight":""),value:R}),w=O):S[S.length-1].value+=R;if(C.meta){var P=y.renderer.$size.scrollerWidth/y.renderer.layerConfig.characterWidth,L=C.meta;L.length+C.caption.length>P-2&&(L=L.substr(0,P-C.caption.length-3)+"…"),S.push({type:"rightAlignedText",value:L})}return S},g.$updateOnChange=x,g.start=x,y.session.$computeWidth=function(){return this.screenWidth=0},y.$blockScrolling=1/0,y.isOpen=!1,y.isTopdown=!1,y.autoSelect=!0,y.data=[],y.setData=function(b){y.setValue(l.stringRepeat(`
241
241
  `,b.length),-1),y.data=b||[],y.setRow(0)},y.getData=function(b){return y.data[b]},y.getRow=function(){return _.start.row},y.setRow=function(b){b=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,b)),_.start.row!=b&&(y.selection.clearSelection(),_.start.row=_.end.row=b||0,y.session._emit("changeBackMarker"),y.moveCursorTo(b||0,0),y.isOpen&&y._signal("select"))},y.on("changeSelection",function(){y.isOpen&&y.setRow(y.selection.lead.row),y.renderer.scrollCursorIntoView()}),y.hide=function(){this.container.style.display="none",this._signal("hide"),y.isOpen=!1},y.show=function(b,C,S){var w=this.container,O=window.innerHeight,R=window.innerWidth,N=this.renderer,P=N.$maxLines*C*1.4,L=b.top+this.$borderSize,z=L>O/2&&!S;z&&L+C+P>O?(N.$maxPixelHeight=L-2*this.$borderSize,w.style.top="",w.style.bottom=O-L+"px",y.isTopdown=!1):(L+=C,N.$maxPixelHeight=O-L-.2*C,w.style.top=L+"px",w.style.bottom="",y.isTopdown=!0),w.style.display="",this.renderer.$textLayer.checkForSizeChanges();var J=b.left;J+w.offsetWidth>R&&(J=R-w.offsetWidth),w.style.left=J+"px",this._signal("show"),E=null,y.isOpen=!0},y.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},y.$imageSize=0,y.$borderSize=1,y};s.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=u}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,t,n){t.parForEach=function(o,i,a){var l=0,s=o.length;s===0&&a();for(var c=0;c<s;c++)i(o[c],function(u,f){l++,l===s&&a(u,f)})};var r=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;t.retrievePrecedingIdentifier=function(o,i,a){a=a||r;for(var l=[],s=i-1;s>=0&&a.test(o[s]);s--)l.push(o[s]);return l.reverse().join("")},t.retrieveFollowingIdentifier=function(o,i,a){a=a||r;for(var l=[],s=i;s<o.length&&a.test(o[s]);s++)l.push(o[s]);return l},t.getCompletionPrefix=function(o){var i=o.getCursorPosition(),a=o.session.getLine(i.row),l;return o.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(c){!l&&c&&(l=this.retrievePrecedingIdentifier(a,i.column,c))}).bind(this))}).bind(this)),l||this.retrievePrecedingIdentifier(a,i.column)}}),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){var r=e("./keyboard/hash_handler").HashHandler,o=e("./autocomplete/popup").AcePopup,i=e("./autocomplete/util");e("./lib/event");var a=e("./lib/lang"),l=e("./lib/dom"),s=e("./snippets").snippetManager,c=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 o(document.body||document.documentElement),this.popup.on("click",(function(f){this.insertMatch(),f.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(f,d,y){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered),f.keyBinding.addKeyboardHandler(this.keyboardHandler);var x=f.renderer;if(this.popup.setRow(this.autoSelect?0:-1),y)y&&!d&&this.detach();else{this.popup.setTheme(f.getTheme()),this.popup.setFontSize(f.getFontSize());var E=x.layerConfig.lineHeight,h=x.$cursorLayer.getPixelPosition(this.base,!0);h.left-=this.popup.getTextLeftOffset();var _=f.container.getBoundingClientRect();h.top+=_.top-x.layerConfig.offset,h.left+=_.left-f.renderer.scrollLeft,h.left+=x.gutterWidth,this.popup.show(h,E)}},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(f){var d=this.editor.selection.lead;(d.row!=this.base.row||d.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(f){var d=document.activeElement,y=this.editor.textInput.getElement(),x=f.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(f.relatedTarget),E=this.popup&&this.popup.container;d!=y&&d.parentNode!=E&&!x&&d!=this.tooltipNode&&f.relatedTarget!=y&&this.detach()},this.mousedownListener=function(f){this.detach()},this.mousewheelListener=function(f){this.detach()},this.goTo=function(f){var d=this.popup.getRow(),y=this.popup.session.getLength()-1;switch(f){case"up":d=d<=0?y:d-1;break;case"down":d=d>=y?-1:d+1;break;case"start":d=0;break;case"end":d=y;break}this.popup.setRow(d)},this.insertMatch=function(f,d){if(f||(f=this.popup.getData(this.popup.getRow())),!f)return!1;if(f.completer&&f.completer.insertMatch)f.completer.insertMatch(this.editor,f);else{if(this.completions.filterText)for(var y=this.editor.selection.getAllRanges(),x=0,E;E=y[x];x++)E.start.column-=this.completions.filterText.length,this.editor.session.remove(E);f.snippet?s.insertSnippet(this.editor,f.snippet):this.editor.execCommand("insertstring",f.value||f)}this.detach()},this.commands={Up:function(f){f.completer.goTo("up")},Down:function(f){f.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(f){f.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(f){f.completer.goTo("end")},Esc:function(f){f.completer.detach()},Return:function(f){return f.completer.insertMatch()},"Shift-Return":function(f){f.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(f){var d=f.completer.insertMatch();if(!d&&!f.tabstopManager)f.completer.goTo("down");else return d},PageUp:function(f){f.completer.popup.gotoPageUp()},PageDown:function(f){f.completer.popup.gotoPageDown()}},this.gatherCompletions=function(f,d){var y=f.getSession(),x=f.getCursorPosition(),E=i.getCompletionPrefix(f);this.base=y.doc.createAnchor(x.row,x.column-E.length),this.base.$insertRight=!0;var h=[],_=f.completers.length;return f.completers.forEach(function(p,m){p.getCompletions(f,y,x,E,function(g,b){!g&&b&&(h=h.concat(b)),d(null,{prefix:i.getCompletionPrefix(f),matches:h,finished:--_===0})})}),!0},this.showPopup=function(f){this.editor&&this.detach(),this.activated=!0,this.editor=f,f.completer!=this&&(f.completer&&f.completer.detach(),f.completer=this),f.on("changeSelection",this.changeListener),f.on("blur",this.blurListener),f.on("mousedown",this.mousedownListener),f.on("mousewheel",this.mousewheelListener),this.updateCompletions()},this.updateCompletions=function(f){if(f&&this.base&&this.completions){var d=this.editor.getCursorPosition(),y=this.editor.session.getTextRange({start:this.base,end:d});if(y==this.completions.filterText)return;if(this.completions.setFilter(y),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==y&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,y,f);return}var x=this.gatherCompletionsId;this.gatherCompletions(this.editor,(function(E,h){var _=(function(){if(h.finished)return this.detach()}).bind(this),p=h.prefix,m=h&&h.matches;if(!m||!m.length)return _();if(!(p.indexOf(h.prefix)!==0||x!=this.gatherCompletionsId)){this.completions=new u(m),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(p);var g=this.completions.filtered;if(!g.length||g.length==1&&g[0].value==p&&!g[0].snippet)return _();if(this.autoInsert&&g.length==1&&h.finished)return this.insertMatch(g[0]);this.openPopup(this.editor,p,f)}}).bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var f=this.popup,d=f.data,y=d&&(d[f.getHoveredRow()]||d[f.getRow()]),x=null;if(!y||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();if(this.editor.completers.some(function(E){return E.getDocTooltip&&(x=E.getDocTooltip(y)),x}),x||(x=y),typeof x=="string"&&(x={docText:x}),!x||!(x.docHTML||x.docText))return this.hideDocTooltip();this.showDocTooltip(x)},this.showDocTooltip=function(f){this.tooltipNode||(this.tooltipNode=l.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var d=this.tooltipNode;f.docHTML?d.innerHTML=f.docHTML:f.docText&&(d.textContent=f.docText),d.parentNode||document.body.appendChild(d);var y=this.popup,x=y.container.getBoundingClientRect();d.style.top=y.container.style.top,d.style.bottom=y.container.style.bottom,window.innerWidth-x.right<320?(d.style.right=window.innerWidth-x.left+"px",d.style.left=""):(d.style.left=x.right+1+"px",d.style.right=""),d.style.display="block"},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var f=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==f&&this.editor.focus(),this.tooltipNode=null,f.parentNode&&f.parentNode.removeChild(f)}},this.onTooltipClick=function(f){for(var d=f.target;d&&d!=this.tooltipNode;){if(d.nodeName=="A"&&d.href){d.rel="noreferrer",d.target="_blank";break}d=d.parentNode}}}).call(c.prototype),c.startCommand={name:"startAutocomplete",exec:function(f){f.completer||(f.completer=new c),f.completer.autoInsert=!1,f.completer.autoSelect=!0,f.completer.showPopup(f),f.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var u=function(f,d){this.all=f,this.filtered=f,this.filterText=d||"",this.exactMatch=!1};(function(){this.setFilter=function(f){if(f.length>this.filterText&&f.lastIndexOf(this.filterText,0)===0)var d=this.filtered;else var d=this.all;this.filterText=f,d=this.filterCompletions(d,this.filterText),d=d.sort(function(x,E){return E.exactMatch-x.exactMatch||E.score-x.score});var y=null;d=d.filter(function(x){var E=x.snippet||x.caption||x.value;return E===y?!1:(y=E,!0)}),this.filtered=d},this.filterCompletions=function(f,d){var y=[],x=d.toUpperCase(),E=d.toLowerCase();e:for(var h=0,_;_=f[h];h++){var p=_.value||_.caption||_.snippet;if(p){var m=-1,g=0,b=0,C,S;if(this.exactMatch){if(d!==p.substr(0,d.length))continue e}else for(var w=0;w<d.length;w++){var O=p.indexOf(E[w],m+1),R=p.indexOf(x[w],m+1);if(C=O>=0&&(R<0||O<R)?O:R,C<0)continue e;S=C-m-1,S>0&&(m===-1&&(b+=10),b+=S),g=g|1<<C,m=C}_.matchMask=g,_.exactMatch=b?0:1,_.score=(_.score||0)-b,y.push(_)}}return y}}).call(u.prototype),t.Autocomplete=c,t.FilteredList=u}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function i(l,s){var c=l.getTextRange(r.fromPoints({row:0,column:0},s));return c.split(o).length-1}function a(l,s){var c=i(l,s),u=l.getValue().split(o),f=Object.create(null),d=u[c];return u.forEach(function(y,x){if(!(!y||y===d)){var E=Math.abs(c-x),h=u.length-E;f[y]?f[y]=Math.max(h,f[y]):f[y]=h}}),f}t.getCompletions=function(l,s,c,u,f){var d=a(s,c),y=Object.keys(d);f(null,y.map(function(x){return{caption:x,value:x,score:d[x],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){var r=e("../snippets").snippetManager,o=e("../autocomplete").Autocomplete,i=e("../config"),a=e("../lib/lang"),l=e("../autocomplete/util"),s=e("../autocomplete/text_completer"),c={getCompletions:function(p,m,g,b,C){if(m.$mode.completer)return m.$mode.completer.getCompletions(p,m,g,b,C);var S=p.session.getState(g.row),w=m.$mode.getCompletions(S,m,g,b);C(null,w)}},u={getCompletions:function(p,m,g,b,C){var S=r.snippetMap,w=[];r.getActiveScopes(p).forEach(function(O){for(var R=S[O]||[],N=R.length;N--;){var P=R[N],L=P.name||P.tabTrigger;L&&w.push({caption:L,snippet:P.content,meta:P.tabTrigger&&!P.name?P.tabTrigger+"⇥ ":"snippet",type:"snippet"})}},this),C(null,w)},getDocTooltip:function(p){p.type=="snippet"&&!p.docHTML&&(p.docHTML=["<b>",a.escapeHTML(p.caption),"</b>","<hr></hr>",a.escapeHTML(p.snippet)].join(""))}},f=[u,s,c];t.setCompleters=function(p){f.length=0,p&&f.push.apply(f,p)},t.addCompleter=function(p){f.push(p)},t.textCompleter=s,t.keyWordCompleter=c,t.snippetCompleter=u;var d={name:"expandSnippet",exec:function(p){return r.expandWithTab(p)},bindKey:"Tab"},y=function(p,m){x(m.session.$mode)},x=function(p){var m=p.$id;r.files||(r.files={}),E(m),p.modes&&p.modes.forEach(x)},E=function(p){if(!(!p||r.files[p])){var m=p.replace("mode","snippets");r.files[p]={},i.loadModule(m,function(g){g&&(r.files[p]=g,!g.snippets&&g.snippetText&&(g.snippets=r.parseSnippetFile(g.snippetText)),r.register(g.snippets||[],g.scope),g.includeScopes&&(r.snippetMap[g.scope].includeScopes=g.includeScopes,g.includeScopes.forEach(function(b){E("ace/mode/"+b)})))})}},h=function(p){var m=p.editor,g=m.completer&&m.completer.activated;if(p.command.name==="backspace")g&&!l.getCompletionPrefix(m)&&m.completer.detach();else if(p.command.name==="insertstring"){var b=l.getCompletionPrefix(m);b&&!g&&(m.completer||(m.completer=new o),m.completer.autoInsert=!1,m.completer.showPopup(m))}},_=e("../editor").Editor;e("../config").defineOptions(_.prototype,"editor",{enableBasicAutocompletion:{set:function(p){p?(this.completers||(this.completers=Array.isArray(p)?p:f),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(p){p?(this.completers||(this.completers=Array.isArray(p)?p:f),this.commands.on("afterExec",h)):this.commands.removeListener("afterExec",h)},value:!1},enableSnippets:{set:function(p){p?(this.commands.addCommand(d),this.on("changeMode",y),y(null,this)):(this.commands.removeCommand(d),this.off("changeMode",y))},value:!1}})}),function(){ace.acequire(["ace/ext/language_tools"],function(){})}(),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){var r=e("../lib/dom"),o=e("../lib/lang"),i=e("../lib/event"),a='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;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 {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;box-sizing: border-box!important;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;box-sizing: content-box!important;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.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;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.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;box-sizing: border-box!important;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;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',l=e("../keyboard/hash_handler").HashHandler,s=e("../lib/keys"),c=999;r.importCssString(a,"ace_searchbox");var u='<div class="ace_search right"> <span action="hide" class="ace_searchbtn_close"></span> <div class="ace_search_form"> <input class="ace_search_field" placeholder="Search for" spellcheck="false"></input> <span action="findPrev" class="ace_searchbtn prev"></span> <span action="findNext" class="ace_searchbtn next"></span> <span action="findAll" class="ace_searchbtn" title="Alt-Enter">All</span> </div> <div class="ace_replace_form"> <input class="ace_search_field" placeholder="Replace with" spellcheck="false"></input> <span action="replaceAndFindNext" class="ace_searchbtn">Replace</span> <span action="replaceAll" class="ace_searchbtn">All</span> </div> <div class="ace_search_options"> <span action="toggleReplace" class="ace_button" title="Toggel Replace mode" style="float:left;margin-top:-2px;padding:0 5px;">+</span> <span class="ace_search_counter"></span> <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> <span action="searchInSelection" class="ace_button" title="Search In Selection">S</span> </div></div>'.replace(/> +/g,">"),f=function(d,y,x){var E=r.createElement("div");E.innerHTML=u,this.element=E.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(d)};(function(){this.setEditor=function(d){d.searchBox=this,d.renderer.scroller.appendChild(this.element),this.editor=d},this.setSession=function(d){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(d){this.searchBox=d.querySelector(".ace_search_form"),this.replaceBox=d.querySelector(".ace_replace_form"),this.searchOption=d.querySelector("[action=searchInSelection]"),this.replaceOption=d.querySelector("[action=toggleReplace]"),this.regExpOption=d.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=d.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=d.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=d.querySelector(".ace_search_counter")},this.$init=function(){var d=this.element;this.$initElements(d);var y=this;i.addListener(d,"mousedown",function(x){setTimeout(function(){y.activeInput.focus()},0),i.stopPropagation(x)}),i.addListener(d,"click",function(x){var E=x.target||x.srcElement,h=E.getAttribute("action");h&&y[h]?y[h]():y.$searchBarKb.commands[h]&&y.$searchBarKb.commands[h].exec(y),i.stopPropagation(x)}),i.addCommandKeyListener(d,function(x,E,h){var _=s.keyCodeToString(h),p=y.$searchBarKb.findKeyCommand(E,_);p&&p.exec&&(p.exec(y),i.stopEvent(x))}),this.$onChange=o.delayedCall(function(){y.find(!1,!1)}),i.addListener(this.searchInput,"input",function(){y.$onChange.schedule(20)}),i.addListener(this.searchInput,"focus",function(){y.activeInput=y.searchInput,y.searchInput.value&&y.highlight()}),i.addListener(this.replaceInput,"focus",function(){y.activeInput=y.replaceInput,y.searchInput.value&&y.highlight()})},this.$closeSearchBarKb=new l([{bindKey:"Esc",name:"closeSearchBar",exec:function(d){d.searchBox.hide()}}]),this.$searchBarKb=new l,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(d){var y=d.isReplace=!d.isReplace;d.replaceBox.style.display=y?"":"none",d.replaceOption.checked=!1,d.$syncOptions(),d.searchInput.focus()},"Ctrl-H|Command-Option-F":function(d){d.replaceOption.checked=!0,d.$syncOptions(),d.replaceInput.focus()},"Ctrl-G|Command-G":function(d){d.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(d){d.findPrev()},esc:function(d){setTimeout(function(){d.hide()})},Return:function(d){d.activeInput==d.replaceInput&&d.replace(),d.findNext()},"Shift-Return":function(d){d.activeInput==d.replaceInput&&d.replace(),d.findPrev()},"Alt-Return":function(d){d.activeInput==d.replaceInput&&d.replaceAll(),d.findAll()},Tab:function(d){(d.activeInput==d.replaceInput?d.searchInput:d.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(d){d.regExpOption.checked=!d.regExpOption.checked,d.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(d){d.caseSensitiveOption.checked=!d.caseSensitiveOption.checked,d.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(d){d.wholeWordOption.checked=!d.wholeWordOption.checked,d.$syncOptions()}},{name:"toggleReplace",exec:function(d){d.replaceOption.checked=!d.replaceOption.checked,d.$syncOptions()}},{name:"searchInSelection",exec:function(d){d.searchOption.checked=!d.searchRange,d.setSearchRange(d.searchOption.checked&&d.editor.getSelectionRange()),d.$syncOptions()}}]),this.setSearchRange=function(d){this.searchRange=d,d?this.searchRangeMarker=this.editor.session.addMarker(d,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(d){r.setCssClass(this.replaceOption,"checked",this.searchRange),r.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",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.replaceBox.style.display=this.replaceOption.checked?"":"none",this.find(!1,!1,d)},this.highlight=function(d){this.editor.session.highlight(d||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(d,y,x){var E=this.editor.find(this.searchInput.value,{skipCurrent:d,backwards:y,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:x,range:this.searchRange}),h=!E&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",h),this.editor._emit("findSearchBox",{match:!h}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var d=this.editor,y=d.$search.$options.re,x=0,E=0;if(y){var h=this.searchRange?d.session.getTextRange(this.searchRange):d.getValue(),_=d.session.doc.positionToIndex(d.selection.anchor);this.searchRange&&(_-=d.session.doc.positionToIndex(this.searchRange.start));for(var p=y.lastIndex=0,m;(m=y.exec(h))&&(x++,p=m.index,p<=_&&E++,!(x>c||!m[0]&&(y.lastIndex=p+=1,p>=h.length))););}this.searchCounter.textContent=E+" of "+(x>c?c+"+":x)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var d=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),y=!d&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",y),this.editor._emit("findSearchBox",{match:!y}),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.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(d,y){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=y,d&&(this.searchInput.value=d),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var d=document.activeElement;return d==this.searchInput||d==this.replaceInput}}).call(f.prototype),t.SearchBox=f,t.Search=function(d,y){var x=d.searchBox||new f(d);x.show(d.session.getTextRange(),y)}}),function(){ace.acequire(["ace/ext/searchbox"],function(){})}();var ul={},eb;function cN(){return eb||(eb=1,ul.id="ace/mode/json_worker",ul.src=`"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||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 Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.column<point2.column;return point1.row<point2.row||point1.row==point2.row&&bColIsAfter}function $getTransformedPoint(delta,point,moveIfEqual){var deltaIsInsert="insert"==delta.action,deltaRowShift=(deltaIsInsert?1:-1)*(delta.end.row-delta.start.row),deltaColShift=(deltaIsInsert?1:-1)*(delta.end.column-delta.start.column),deltaStart=delta.start,deltaEnd=deltaIsInsert?deltaStart:delta.end;return $pointsInOrder(point,deltaStart,moveIfEqual)?{row:point.row,column:point.column}:$pointsInOrder(deltaEnd,point,!moveIfEqual)?{row:point.row+deltaRowShift,column:point.column+(point.row==deltaEnd.row?deltaColShift:0)}:{row:deltaStart.row,column:deltaStart.column}}oop.implement(this,EventEmitter),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(delta){if(!(delta.start.row==delta.end.row&&delta.start.row!=this.row||delta.start.row>this.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[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(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^\${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},exports.getMatchOffsets=function(string,regExp){var matches=[];return string.replace(regExp,function(str){matches.push({offset:arguments[arguments.length-2],length:str.length})}),matches},exports.deferredCall=function(fcn){var timer=null,callback=function(){timer=null,fcn()},deferred=function(timeout){return deferred.cancel(),timer=setTimeout(callback,timeout||0),deferred};return deferred.schedule=deferred,deferred.call=function(){return this.cancel(),fcn(),deferred},deferred.cancel=function(){return clearTimeout(timer),timer=null,deferred},deferred.isPending=function(){return timer},deferred},exports.delayedCall=function(fcn,defaultTimeout){var timer=null,callback=function(){timer=null,fcn()},_self=function(timeout){null==timer&&(timer=setTimeout(callback,timeout||defaultTimeout))};return _self.delay=function(timeout){timer&&clearTimeout(timer),timer=setTimeout(callback,timeout||defaultTimeout)},_self.schedule=_self,_self.call=function(){this.cancel(),fcn()},_self.cancel=function(){timer&&clearTimeout(timer),timer=null},_self.isPending=function(){return timer},_self}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(acequire,exports){"use strict";acequire("../range").Range;var Document=acequire("../document").Document,lang=acequire("../lib/lang"),Mirror=exports.Mirror=function(sender){this.sender=sender;var doc=this.doc=new Document(""),deferredUpdate=this.deferredUpdate=lang.delayedCall(this.onUpdate.bind(this)),_self=this;sender.on("change",function(e){var data=e.data;if(data[0].start)doc.applyDeltas(data);else for(var i=0;data.length>i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){"use strict";var at,ch,text,value,escapee={'"':'"',"\\\\":"\\\\","/":"/",b:"\\b",f:"\\f",n:"\\n",r:"\\r",t:" "},error=function(m){throw{name:"SyntaxError",message:m,at:at,text:text}},next=function(c){return c&&c!==ch&&error("Expected '"+c+"' instead of '"+ch+"'"),ch=text.charAt(at),at+=1,ch},number=function(){var number,string="";for("-"===ch&&(string="-",next("-"));ch>="0"&&"9">=ch;)string+=ch,next();if("."===ch)for(string+=".";next()&&ch>="0"&&"9">=ch;)string+=ch;if("e"===ch||"E"===ch)for(string+=ch,next(),("-"===ch||"+"===ch)&&(string+=ch,next());ch>="0"&&"9">=ch;)string+=ch,next();return number=+string,isNaN(number)?(error("Bad number"),void 0):number},string=function(){var hex,i,uffff,string="";if('"'===ch)for(;next();){if('"'===ch)return next(),string;if("\\\\"===ch)if(next(),"u"===ch){for(uffff=0,i=0;4>i&&(hex=parseInt(next(),16),isFinite(hex));i+=1)uffff=16*uffff+hex;string+=String.fromCharCode(uffff)}else{if("string"!=typeof escapee[ch])break;string+=escapee[ch]}else string+=ch}error("Bad string")},white=function(){for(;ch&&" ">=ch;)next()},word=function(){switch(ch){case"t":return next("t"),next("r"),next("u"),next("e"),!0;case"f":return next("f"),next("a"),next("l"),next("s"),next("e"),!1;case"n":return next("n"),next("u"),next("l"),next("l"),null}error("Unexpected '"+ch+"'")},array=function(){var array=[];if("["===ch){if(next("["),white(),"]"===ch)return next("]"),array;for(;ch;){if(array.push(value()),white(),"]"===ch)return next("]"),array;next(","),white()}}error("Bad array")},object=function(){var key,object={};if("{"===ch){if(next("{"),white(),"}"===ch)return next("}"),object;for(;ch;){if(key=string(),white(),next(":"),Object.hasOwnProperty.call(object,key)&&error('Duplicate key "'+key+'"'),object[key]=value(),white(),"}"===ch)return next("}"),object;next(","),white()}}error("Bad object")};return value=function(){switch(white(),ch){case"{":return object();case"[":return array();case'"':return string();case"-":return number();default:return ch>="0"&&"9">=ch?number():word()}},function(source,reviver){var result;return text=source,at=0,ch=" ",result=value(),white(),ch&&error("Syntax error"),"function"==typeof reviver?function walk(holder,key){var k,v,value=holder[key];if(value&&"object"==typeof value)for(k in value)Object.hasOwnProperty.call(value,k)&&(v=walk(value,k),void 0!==v?value[k]=v:delete value[k]);return reviver.call(holder,key,value)}({"":result},""):result}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(acequire,exports){"use strict";var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,parse=acequire("./json/json_parse"),JsonWorker=exports.JsonWorker=function(sender){Mirror.call(this,sender),this.setTimeout(200)};oop.inherits(JsonWorker,Mirror),function(){this.onUpdate=function(){var value=this.doc.getValue(),errors=[];try{value&&parse(value)}catch(e){var pos=this.doc.indexToPosition(e.at-1);errors.push({row:pos.row,column:pos.column,text:e.message,type:"error"})}this.sender.emit("annotate",errors)}}.call(JsonWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0
242
- }()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r   ᠎              \\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`),ul}ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(i,o),t.JsonHighlightRules=i}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var l=i.getLine(a),s=l.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var f=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),f)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),o=e("../../range").Range,i=e("./fold_mode").FoldMode,a=t.FoldMode=function(l){l&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+l.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+l.end)))};r.inherits(a,i),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(l,s,c){var u=l.getLine(c);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var f=this._getFoldWidgetBase(l,s,c);return!f&&this.startRegionRe.test(u)?"start":f},this.getFoldWidgetRange=function(l,s,c,u){var f=l.getLine(c);if(this.startRegionRe.test(f))return this.getCommentRegionBlock(l,f,c);var x=f.match(this.foldingStartMarker);if(x){var d=x.index;if(x[1])return this.openingBracketBlock(l,x[1],c,d);var y=l.getCommentFoldRange(c,d+x[0].length,1);return y&&!y.isMultiLine()&&(u?y=this.getSectionRange(l,c):s!="all"&&(y=null)),y}if(s!=="markbegin"){var x=f.match(this.foldingStopMarker);if(x){var d=x.index+x[0].length;return x[1]?this.closingBracketBlock(l,x[1],c,d):l.getCommentFoldRange(c,d,-1)}}},this.getSectionRange=function(l,s){var c=l.getLine(s),u=c.search(/\S/),f=s,d=c.length;s=s+1;for(var y=s,x=l.getLength();++s<x;){c=l.getLine(s);var E=c.search(/\S/);if(E!==-1){if(u>E)break;var h=this.getFoldWidgetRange(l,"all",s);if(h){if(h.start.row<=f)break;if(h.isMultiLine())s=h.end.row;else if(u==E)break}y=s}}return new o(f,d,y,l.getLine(y).length)},this.getCommentRegionBlock=function(l,s,c){for(var u=s.search(/\s*$/),f=l.getLength(),d=c,y=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,x=1;++c<f;){s=l.getLine(c);var E=y.exec(s);if(E&&(E[1]?x--:x++,!x))break}var h=c;if(h>d)return new o(d,u,h,s.length)}}).call(a.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,l=e("./behaviour/cstyle").CstyleBehaviour,s=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=i,this.$outdent=new a,this.$behaviour=new l,this.foldingRules=new s};r.inherits(u,o),(function(){this.getNextLineIndent=function(f,d,y){var x=this.$getIndent(d);if(f=="start"){var E=d.match(/^.*[\{\(\[]\s*$/);E&&(x+=y)}return x},this.checkOutdent=function(f,d,y){return this.$outdent.checkOutdent(d,y)},this.autoOutdent=function(f,d,y){this.$outdent.autoOutdent(d,y)},this.createWorker=function(f){var d=new c(["ace"],cN(),"JsonWorker");return d.attachToDocument(f.getDocument()),d.on("annotate",function(y){f.setAnnotations(y.data)}),d.on("terminate",function(){f.clearAnnotations()}),d},this.$id="ace/mode/json"}).call(u.prototype),t.Mode=u});const tb=(e,t,n)=>({type:n.type,value:n.value,position:{lineNumber:e,column:t}}),uN=(e,t)=>{let n="";return t.map(r=>{const o=n.length+1;return n+=r.value,tb(e,o,r)})},dN=(e,t,n)=>{let r="";for(const o of n){const i=r.length+1;r+=o.value;const a=r.length;if(!(t<i)&&!(t>a+1))return tb(e,i,o)}return null};class fN{constructor(t){this.session=t}getTokens(t){var o;if(t<1)return null;const n=this.session.getLength();if(t>n)return null;const r=(o=this.session)==null?void 0:o.getTokens(t-1);return!r||!r.length?[]:uN(t,r)}getTokenAt(t){const n=this.session.getTokens(t.lineNumber-1);return n?dN(t.lineNumber,t.column,n):null}}function pN(e){return e.match(/^\s*?curl\s+(-X[A-Z]+)?\s*['"]?.*?['"]?(\s*$|\s+?-d\s*?['"])/)}function hN(e){if(!e)return!1;for(const t of e.split(`
242
+ }()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r   ᠎              \\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`),ul}ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(i,o),t.JsonHighlightRules=i}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var l=i.getLine(a),s=l.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var f=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),f)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),o=e("../../range").Range,i=e("./fold_mode").FoldMode,a=t.FoldMode=function(l){l&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+l.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+l.end)))};r.inherits(a,i),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(l,s,c){var u=l.getLine(c);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var f=this._getFoldWidgetBase(l,s,c);return!f&&this.startRegionRe.test(u)?"start":f},this.getFoldWidgetRange=function(l,s,c,u){var f=l.getLine(c);if(this.startRegionRe.test(f))return this.getCommentRegionBlock(l,f,c);var x=f.match(this.foldingStartMarker);if(x){var d=x.index;if(x[1])return this.openingBracketBlock(l,x[1],c,d);var y=l.getCommentFoldRange(c,d+x[0].length,1);return y&&!y.isMultiLine()&&(u?y=this.getSectionRange(l,c):s!="all"&&(y=null)),y}if(s!=="markbegin"){var x=f.match(this.foldingStopMarker);if(x){var d=x.index+x[0].length;return x[1]?this.closingBracketBlock(l,x[1],c,d):l.getCommentFoldRange(c,d,-1)}}},this.getSectionRange=function(l,s){var c=l.getLine(s),u=c.search(/\S/),f=s,d=c.length;s=s+1;for(var y=s,x=l.getLength();++s<x;){c=l.getLine(s);var E=c.search(/\S/);if(E!==-1){if(u>E)break;var h=this.getFoldWidgetRange(l,"all",s);if(h){if(h.start.row<=f)break;if(h.isMultiLine())s=h.end.row;else if(u==E)break}y=s}}return new o(f,d,y,l.getLine(y).length)},this.getCommentRegionBlock=function(l,s,c){for(var u=s.search(/\s*$/),f=l.getLength(),d=c,y=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,x=1;++c<f;){s=l.getLine(c);var E=y.exec(s);if(E&&(E[1]?x--:x++,!x))break}var h=c;if(h>d)return new o(d,u,h,s.length)}}).call(a.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,l=e("./behaviour/cstyle").CstyleBehaviour,s=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=i,this.$outdent=new a,this.$behaviour=new l,this.foldingRules=new s};r.inherits(u,o),(function(){this.getNextLineIndent=function(f,d,y){var x=this.$getIndent(d);if(f=="start"){var E=d.match(/^.*[\{\(\[]\s*$/);E&&(x+=y)}return x},this.checkOutdent=function(f,d,y){return this.$outdent.checkOutdent(d,y)},this.autoOutdent=function(f,d,y){this.$outdent.autoOutdent(d,y)},this.createWorker=function(f){var d=new c(["ace"],cN(),"JsonWorker");return d.attachToDocument(f.getDocument()),d.on("annotate",function(y){f.setAnnotations(y.data)}),d.on("terminate",function(){f.clearAnnotations()}),d},this.$id="ace/mode/json"}).call(u.prototype),t.Mode=u});const tb=(e,t,n)=>({type:n.type,value:n.value,position:{lineNumber:e,column:t}}),uN=(e,t)=>{let n="";return t.map(r=>{const o=n.length+1;return n+=r.value,tb(e,o,r)})},dN=(e,t,n)=>{let r="";for(const o of n){const i=r.length+1;r+=o.value;const a=r.length;if(!(t<i)&&!(t>a+1))return tb(e,i,o)}return null};class fN{constructor(t){this.session=t}getTokens(t){var o;if(t<1)return null;const n=this.session.getLength();if(t>n)return null;const r=(o=this.session)==null?void 0:o.getTokens(t-1);return!r||!r.length?[]:uN(t,r)}getTokenAt(t){var r;const n=(r=this.session)==null?void 0:r.getTokens(t.lineNumber-1);return n?dN(t.lineNumber,t.column,n):null}}function pN(e){return e.match(/^\s*?curl\s+(-X[A-Z]+)?\s*['"]?.*?['"]?(\s*$|\s+?-d\s*?['"])/)}function hN(e){if(!e)return!1;for(const t of e.split(`
243
243
  `))if(pN(t))return!0;return!1}function mN(e){let t="NONE";const n=[];let r=[],o="";const i=e.trim().split(`
244
244
  `);let a;const l=/^\s*$/,s=/^\s*(?:#|\/{2,})(.*)\n?$/,c=/^\s*#!/,u=/^([^']*)'/,f=/^((?:[^\\"]|\\.)*)"/,d=/^((?:[^\\"']|\\.)+)/,y=/^\s*curl\s+/,x=/-X ?(GET|HEAD|POST|PUT|DELETE)/,E=/[\s"']https?:\/\//,h=/[\s"']https?:\/\/[^\/ ]+\/+([^\s"']+)/,_=/[\s"'][^\/ ]+\/+([^\s"']+)/,p=/^.+\s(--data|-d)\s*/,m=/^\s*(GET|HEAD|POST|PUT|DELETE)\s+\/?(.+)/;i.length>0&&c.test(i[0])&&i.shift();function g(){return o.length>0?!0:i.length===0?!1:(o=i.shift().replace(/[\r\n]+/g,`
245
245
  `)+`
@@ -267,12 +267,12 @@ Please check the server is up and running`),o.rejectWith({},[l,s,c])}),o}functi
267
267
  `+t.prev+t.base;return n+ur.call(e,","+n)+`
268
268
  `+t.prev}function kl(e,t){var n=Wf(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Ur(e,o)?t(e[o],e):""}var i=typeof qf=="function"?qf(e):[],a;if(yi){a={};for(var l=0;l<i.length;l++)a["$"+i[l]]=i[l]}for(var s in e)Ur(e,s)&&(n&&String(Number(s))===s&&s<e.length||yi&&a["$"+s]instanceof Symbol||(R0.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if(typeof qf=="function")for(var c=0;c<i.length;c++)I0.call(e,i[c])&&r.push("["+t(i[c])+"]: "+t(e[i[c]],e));return r}var H0=mi,bi=uf,JL=ML,QL=Ta,Ll=H0("%WeakMap%",!0),Fl=H0("%Map%",!0),ZL=bi("WeakMap.prototype.get",!0),eF=bi("WeakMap.prototype.set",!0),tF=bi("WeakMap.prototype.has",!0),nF=bi("Map.prototype.get",!0),rF=bi("Map.prototype.set",!0),oF=bi("Map.prototype.has",!0),Kf=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},iF=function(e,t){var n=Kf(e,t);return n&&n.value},aF=function(e,t,n){var r=Kf(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},sF=function(e,t){return!!Kf(e,t)},lF=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new QL("Side channel does not contain "+JL(i))},get:function(i){if(Ll&&i&&(typeof i=="object"||typeof i=="function")){if(t)return ZL(t,i)}else if(Fl){if(n)return nF(n,i)}else if(r)return iF(r,i)},has:function(i){if(Ll&&i&&(typeof i=="object"||typeof i=="function")){if(t)return tF(t,i)}else if(Fl){if(n)return oF(n,i)}else if(r)return sF(r,i);return!1},set:function(i,a){Ll&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new Ll),eF(t,i,a)):Fl?(n||(n=new Fl),rF(n,i,a)):(r||(r={key:{},next:null}),aF(r,i,a))}};return o},cF=String.prototype.replace,uF=/%20/g,Xf={RFC1738:"RFC1738",RFC3986:"RFC3986"},Yf={default:Xf.RFC3986,formatters:{RFC1738:function(e){return cF.call(e,uF,"+")},RFC3986:function(e){return String(e)}},RFC1738:Xf.RFC1738,RFC3986:Xf.RFC3986},dF=Yf,Jf=Object.prototype.hasOwnProperty,jo=Array.isArray,dr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),fF=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(jo(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},W0=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},pF=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(jo(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Jf.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return jo(t)&&!jo(n)&&(o=W0(t,r)),jo(t)&&jo(n)?(n.forEach(function(i,a){if(Jf.call(t,a)){var l=t[a];l&&typeof l=="object"&&i&&typeof i=="object"?t[a]=e(l,i,r):t.push(i)}else t[a]=i}),t):Object.keys(n).reduce(function(i,a){var l=n[a];return Jf.call(i,a)?i[a]=e(i[a],l,r):i[a]=l,i},o)},hF=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},mF=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},Qf=1024,gF=function(t,n,r,o,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var l="",s=0;s<a.length;s+=Qf){for(var c=a.length>=Qf?a.slice(s,s+Qf):a,u=[],f=0;f<c.length;++f){var d=c.charCodeAt(f);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===dF.RFC1738&&(d===40||d===41)){u[u.length]=c.charAt(f);continue}if(d<128){u[u.length]=dr[d];continue}if(d<2048){u[u.length]=dr[192|d>>6]+dr[128|d&63];continue}if(d<55296||d>=57344){u[u.length]=dr[224|d>>12]+dr[128|d>>6&63]+dr[128|d&63];continue}f+=1,d=65536+((d&1023)<<10|c.charCodeAt(f)&1023),u[u.length]=dr[240|d>>18]+dr[128|d>>12&63]+dr[128|d>>6&63]+dr[128|d&63]}l+=u.join("")}return l},vF=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],a=i.obj[i.prop],l=Object.keys(a),s=0;s<l.length;++s){var c=l[s],u=a[c];typeof u=="object"&&u!==null&&r.indexOf(u)===-1&&(n.push({obj:a,prop:c}),r.push(u))}return fF(n),t},_F=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},yF=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},bF=function(t,n){return[].concat(t,n)},wF=function(t,n){if(jo(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},U0={arrayToObject:W0,assign:hF,combine:bF,compact:vF,decode:mF,encode:gF,isBuffer:yF,isRegExp:_F,maybeMap:wF,merge:pF},G0=lF,Dl=U0,Aa=Yf,xF=Object.prototype.hasOwnProperty,K0={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},fr=Array.isArray,SF=Array.prototype.push,X0=function(e,t){SF.apply(e,fr(t)?t:[t])},CF=Date.prototype.toISOString,Y0=Aa.default,Yt={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Dl.encode,encodeValuesOnly:!1,format:Y0,formatter:Aa.formatters[Y0],indices:!1,serializeDate:function(t){return CF.call(t)},skipNulls:!1,strictNullHandling:!1},EF=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Zf={},OF=function e(t,n,r,o,i,a,l,s,c,u,f,d,y,x,E,h,_,p){for(var m=t,g=p,b=0,C=!1;(g=g.get(Zf))!==void 0&&!C;){var S=g.get(t);if(b+=1,typeof S<"u"){if(S===b)throw new RangeError("Cyclic object value");C=!0}typeof g.get(Zf)>"u"&&(b=0)}if(typeof u=="function"?m=u(n,m):m instanceof Date?m=y(m):r==="comma"&&fr(m)&&(m=Dl.maybeMap(m,function(D){return D instanceof Date?y(D):D})),m===null){if(a)return c&&!h?c(n,Yt.encoder,_,"key",x):n;m=""}if(EF(m)||Dl.isBuffer(m)){if(c){var w=h?n:c(n,Yt.encoder,_,"key",x);return[E(w)+"="+E(c(m,Yt.encoder,_,"value",x))]}return[E(n)+"="+E(String(m))]}var O=[];if(typeof m>"u")return O;var R;if(r==="comma"&&fr(m))h&&c&&(m=Dl.maybeMap(m,c)),R=[{value:m.length>0?m.join(",")||null:void 0}];else if(fr(u))R=u;else{var N=Object.keys(m);R=f?N.sort(f):N}var P=s?n.replace(/\./g,"%2E"):n,L=o&&fr(m)&&m.length===1?P+"[]":P;if(i&&fr(m)&&m.length===0)return L+"[]";for(var z=0;z<R.length;++z){var J=R[z],X=typeof J=="object"&&typeof J.value<"u"?J.value:m[J];if(!(l&&X===null)){var j=d&&s?J.replace(/\./g,"%2E"):J,H=fr(m)?typeof r=="function"?r(L,j):L:L+(d?"."+j:"["+j+"]");p.set(t,b);var U=G0();U.set(Zf,p),X0(O,e(X,H,r,o,i,a,l,s,r==="comma"&&h&&fr(m)?null:c,u,f,d,y,x,E,h,_,U))}}return O},$F=function(t){if(!t)return Yt;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||Yt.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Aa.default;if(typeof t.format<"u"){if(!xF.call(Aa.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=Aa.formatters[r],i=Yt.filter;(typeof t.filter=="function"||fr(t.filter))&&(i=t.filter);var a;if(t.arrayFormat in K0?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=Yt.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Yt.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Yt.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Yt.allowEmptyArrays,arrayFormat:a,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Yt.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Yt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Yt.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Yt.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Yt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Yt.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Yt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Yt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Yt.strictNullHandling}},TF=function(e,t){var n=e,r=$F(t),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):fr(r.filter)&&(i=r.filter,o=i);var a=[];if(typeof n!="object"||n===null)return"";var l=K0[r.arrayFormat],s=l==="comma"&&r.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var c=G0(),u=0;u<o.length;++u){var f=o[u];r.skipNulls&&n[f]===null||X0(a,OF(n[f],f,l,s,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}var d=a.join(r.delimiter),y=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),d.length>0?y+d:""},wi=U0,ep=Object.prototype.hasOwnProperty,PF=Array.isArray,Ft={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:wi.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},RF=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},J0=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},jF="utf8=%26%2310003%3B",MF="utf8=%E2%9C%93",IF=function(t,n){var r={__proto__:null},o=n.ignoreQueryPrefix?t.replace(/^\?/,""):t;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=n.parameterLimit===1/0?void 0:n.parameterLimit,a=o.split(n.delimiter,i),l=-1,s,c=n.charset;if(n.charsetSentinel)for(s=0;s<a.length;++s)a[s].indexOf("utf8=")===0&&(a[s]===MF?c="utf-8":a[s]===jF&&(c="iso-8859-1"),l=s,s=a.length);for(s=0;s<a.length;++s)if(s!==l){var u=a[s],f=u.indexOf("]="),d=f===-1?u.indexOf("="):f+1,y,x;d===-1?(y=n.decoder(u,Ft.decoder,c,"key"),x=n.strictNullHandling?null:""):(y=n.decoder(u.slice(0,d),Ft.decoder,c,"key"),x=wi.maybeMap(J0(u.slice(d+1),n),function(h){return n.decoder(h,Ft.decoder,c,"value")})),x&&n.interpretNumericEntities&&c==="iso-8859-1"&&(x=RF(x)),u.indexOf("[]=")>-1&&(x=PF(x)?[x]:x);var E=ep.call(r,y);E&&n.duplicates==="combine"?r[y]=wi.combine(r[y],x):(!E||n.duplicates==="last")&&(r[y]=x)}return r},AF=function(e,t,n,r){for(var o=r?t:J0(t,n),i=e.length-1;i>=0;--i){var a,l=e[i];if(l==="[]"&&n.parseArrays)a=n.allowEmptyArrays&&(o===""||n.strictNullHandling&&o===null)?[]:[].concat(o);else{a=n.plainObjects?Object.create(null):{};var s=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,c=n.decodeDotInKeys?s.replace(/%2E/g,"."):s,u=parseInt(c,10);!n.parseArrays&&c===""?a={0:o}:!isNaN(u)&&l!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[],a[u]=o):c!=="__proto__"&&(a[c]=o)}o=a}return o},NF=function(t,n,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=r.depth>0&&a.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!r.plainObjects&&ep.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var f=0;r.depth>0&&(s=l.exec(i))!==null&&f<r.depth;){if(f+=1,!r.plainObjects&&ep.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(s[1])}if(s){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+i.slice(s.index)+"]")}return AF(u,n,r,o)}},kF=function(t){if(!t)return Ft;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?Ft.charset:t.charset,r=typeof t.duplicates>"u"?Ft.duplicates:t.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:Ft.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Ft.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ft.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ft.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ft.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ft.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ft.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Ft.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Ft.decoder,delimiter:typeof t.delimiter=="string"||wi.isRegExp(t.delimiter)?t.delimiter:Ft.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ft.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ft.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ft.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ft.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Ft.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ft.strictNullHandling}},LF=function(e,t){var n=kF(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?IF(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),a=0;a<i.length;++a){var l=i[a],s=NF(l,r[l],n,typeof e=="string");o=wi.merge(o,s,n)}return n.allowSparse===!0?o:wi.compact(o)},FF=TF,DF=LF,BF=Yf,zF={formats:BF,parse:DF,stringify:FF};const qF=ec(zF);var VF=wL;function Fn(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var HF=/^([a-z0-9.+-]+:)/i,WF=/:[0-9]*$/,UF=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,GF=["<",">",'"',"`"," ","\r",`
269
269
  `," "],KF=["{","}","|","\\","^","`"].concat(GF),tp=["'"].concat(KF),Q0=["%","/","?",";","#"].concat(tp),Z0=["/","?","#"],XF=255,ew=/^[+a-z0-9A-Z_-]{0,63}$/,YF=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,JF={javascript:!0,"javascript:":!0},np={javascript:!0,"javascript:":!0},xi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},rp=qF;function Na(e,t,n){if(e&&typeof e=="object"&&e instanceof Fn)return e;var r=new Fn;return r.parse(e,t,n),r}Fn.prototype.parse=function(e,t,n){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=r!==-1&&r<e.indexOf("#")?"?":"#",i=e.split(o),a=/\\/g;i[0]=i[0].replace(a,"/"),e=i.join(o);var l=e;if(l=l.trim(),!n&&e.split("#").length===1){var s=UF.exec(l);if(s)return this.path=l,this.href=l,this.pathname=s[1],s[2]?(this.search=s[2],t?this.query=rp.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var c=HF.exec(l);if(c){c=c[0];var u=c.toLowerCase();this.protocol=u,l=l.substr(c.length)}if(n||c||l.match(/^\/\/[^@/]+@[^@/]+/)){var f=l.substr(0,2)==="//";f&&!(c&&np[c])&&(l=l.substr(2),this.slashes=!0)}if(!np[c]&&(f||c&&!xi[c])){for(var d=-1,y=0;y<Z0.length;y++){var x=l.indexOf(Z0[y]);x!==-1&&(d===-1||x<d)&&(d=x)}var E,h;d===-1?h=l.lastIndexOf("@"):h=l.lastIndexOf("@",d),h!==-1&&(E=l.slice(0,h),l=l.slice(h+1),this.auth=decodeURIComponent(E)),d=-1;for(var y=0;y<Q0.length;y++){var x=l.indexOf(Q0[y]);x!==-1&&(d===-1||x<d)&&(d=x)}d===-1&&(d=l.length),this.host=l.slice(0,d),l=l.slice(d),this.parseHost(),this.hostname=this.hostname||"";var _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_)for(var p=this.hostname.split(/\./),y=0,m=p.length;y<m;y++){var g=p[y];if(g&&!g.match(ew)){for(var b="",C=0,S=g.length;C<S;C++)g.charCodeAt(C)>127?b+="x":b+=g[C];if(!b.match(ew)){var w=p.slice(0,y),O=p.slice(y+1),R=g.match(YF);R&&(w.push(R[1]),O.unshift(R[2])),O.length&&(l="/"+O.join(".")+l),this.hostname=w.join(".");break}}}this.hostname.length>XF?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=VF.toASCII(this.hostname));var N=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+N,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!JF[u])for(var y=0,m=tp.length;y<m;y++){var L=tp[y];if(l.indexOf(L)!==-1){var z=encodeURIComponent(L);z===L&&(z=escape(L)),l=l.split(L).join(z)}}var J=l.indexOf("#");J!==-1&&(this.hash=l.substr(J),l=l.slice(0,J));var X=l.indexOf("?");if(X!==-1?(this.search=l.substr(X),this.query=l.substr(X+1),t&&(this.query=rp.parse(this.query)),l=l.slice(0,X)):t&&(this.search="",this.query={}),l&&(this.pathname=l),xi[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var N=this.pathname||"",j=this.search||"";this.path=N+j}return this.href=this.format(),this};function QF(e){return typeof e=="string"&&(e=Na(e)),e instanceof Fn?e.format():Fn.prototype.format.call(e)}Fn.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(i=rp.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||i&&"?"+i||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||xi[t])&&o!==!1?(o="//"+(o||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):o||(o=""),r&&r.charAt(0)!=="#"&&(r="#"+r),a&&a.charAt(0)!=="?"&&(a="?"+a),n=n.replace(/[?#]/g,function(l){return encodeURIComponent(l)}),a=a.replace("#","%23"),t+o+n+a+r};function ZF(e,t){return Na(e,!1,!0).resolve(t)}Fn.prototype.resolve=function(e){return this.resolveObject(Na(e,!1,!0)).format()};function eD(e,t){return e?Na(e,!1,!0).resolveObject(t):t}Fn.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new Fn;t.parse(e,!1,!0),e=t}for(var n=new Fn,r=Object.keys(this),o=0;o<r.length;o++){var i=r[o];n[i]=this[i]}if(n.hash=e.hash,e.href==="")return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),l=0;l<a.length;l++){var s=a[l];s!=="protocol"&&(n[s]=e[s])}return xi[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!xi[e.protocol]){for(var c=Object.keys(e),u=0;u<c.length;u++){var f=c[u];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,!e.host&&!np[e.protocol]){for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),m[0]!==""&&m.unshift(""),m.length<2&&m.unshift(""),n.pathname=m.join("/")}else n.pathname=e.pathname;if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var d=n.pathname||"",y=n.search||"";n.path=d+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var x=n.pathname&&n.pathname.charAt(0)==="/",E=e.host||e.pathname&&e.pathname.charAt(0)==="/",h=E||x||n.host&&e.pathname,_=h,p=n.pathname&&n.pathname.split("/")||[],m=e.pathname&&e.pathname.split("/")||[],g=n.protocol&&!xi[n.protocol];if(g&&(n.hostname="",n.port=null,n.host&&(p[0]===""?p[0]=n.host:p.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(m[0]===""?m[0]=e.host:m.unshift(e.host)),e.host=null),h=h&&(m[0]===""||p[0]==="")),E)n.host=e.host||e.host===""?e.host:n.host,n.hostname=e.hostname||e.hostname===""?e.hostname:n.hostname,n.search=e.search,n.query=e.query,p=m;else if(m.length)p||(p=[]),p.pop(),p=p.concat(m),n.search=e.search,n.query=e.query;else if(e.search!=null){if(g){n.host=p.shift(),n.hostname=n.host;var b=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;b&&(n.auth=b.shift(),n.hostname=b.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!p.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=p.slice(-1)[0],S=(n.host||e.host||p.length>1)&&(C==="."||C==="..")||C==="",w=0,O=p.length;O>=0;O--)C=p[O],C==="."?p.splice(O,1):C===".."?(p.splice(O,1),w++):w&&(p.splice(O,1),w--);if(!h&&!_)for(;w--;w)p.unshift("..");h&&p[0]!==""&&(!p[0]||p[0].charAt(0)!=="/")&&p.unshift(""),S&&p.join("/").substr(-1)!=="/"&&p.push("");var R=p[0]===""||p[0]&&p[0].charAt(0)==="/";if(g){n.hostname=R?"":p.length?p.shift():"",n.host=n.hostname;var b=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;b&&(n.auth=b.shift(),n.hostname=b.shift(),n.host=n.hostname)}return h=h||n.host&&p.length,h&&!R&&p.unshift(""),p.length>0?n.pathname=p.join("/"):(n.pathname=null,n.path=null),(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},Fn.prototype.parseHost=function(){var e=this.host,t=WF.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var tD=Na,nD=ZF,tw=eD,rD=QF,oD=Fn;function iD(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];o==="."?e.splice(r,1):o===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function aD(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!r)continue;e=r+"/"+e,t=r.charAt(0)==="/"}return e=iD(sD(e.split("/"),function(o){return!!o}),!t).join("/"),(t?"/":"")+e||"."}function sD(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var nw=function(e){function t(){var r=this||self;return delete e.prototype.__magic__,r}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var n=__magic__;return n}(Object),lD=rD,rw=tD,ow=nD,iw=oD,Kr=nw.URL,aw=nw.URLSearchParams,cD=/%/g,uD=/\\/g,dD=/\n/g,fD=/\r/g,pD=/\t/g,hD=47;function mD(e){var t=e??null;return!!(t!==null&&(t!=null&&t.href)&&(t!=null&&t.origin))}function gD(e){if(e.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var t=e.pathname,n=0;n<t.length;n++)if(t[n]==="%"){var r=t.codePointAt(n+2)|32;if(t[n+1]==="2"&&r===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(t)}function vD(e){return e.includes("%")&&(e=e.replace(cD,"%25")),e.includes("\\")&&(e=e.replace(uD,"%5C")),e.includes(`
270
- `)&&(e=e.replace(dD,"%0A")),e.includes("\r")&&(e=e.replace(fD,"%0D")),e.includes(" ")&&(e=e.replace(pD,"%09")),e}var sw=function(t){if(typeof t>"u")throw new TypeError('The "domain" argument must be specified');return new Kr("http://"+t).hostname},lw=function(t){if(typeof t>"u")throw new TypeError('The "domain" argument must be specified');return new Kr("http://"+t).hostname},cw=function(t){var n=new Kr("file://"),r=aD(t),o=t.charCodeAt(t.length-1);return o===hD&&r[r.length-1]!=="/"&&(r+="/"),n.pathname=vD(r),n},uw=function(t){if(!mD(t)&&typeof t!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof t+" ("+t+")");var n=new Kr(t);if(n.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return gD(n)},dw=function(t,n){var r,o,i,a;if(n===void 0&&(n={}),!(t instanceof Kr))return lD(t);if(typeof n!="object"||n===null)throw new TypeError('The "options" argument must be of type object.');var l=(r=n.auth)!=null?r:!0,s=(o=n.fragment)!=null?o:!0,c=(i=n.search)!=null?i:!0;(a=n.unicode)!=null;var u=new Kr(t.toString());return l||(u.username="",u.password=""),s||(u.hash=""),c||(u.search=""),u.toString()},_D={format:dw,parse:rw,resolve:ow,resolveObject:tw,Url:iw,URL:Kr,URLSearchParams:aw,domainToASCII:sw,domainToUnicode:lw,pathToFileURL:cw,fileURLToPath:uw};const fw=jp(Object.freeze(Object.defineProperty({__proto__:null,URL:Kr,URLSearchParams:aw,Url:iw,default:_D,domainToASCII:sw,domainToUnicode:lw,fileURLToPath:uw,format:dw,parse:rw,pathToFileURL:cw,resolve:ow,resolveObject:tw},Symbol.toStringTag,{value:"Module"})));(function(e){var t=mL,n=gl,r=gL,o=yL,i=fw,a=e;a.request=function(l,s){typeof l=="string"?l=i.parse(l):l=r(l);var c=vt.location.protocol.search(/^https?:$/)===-1?"http:":"",u=l.protocol||c,f=l.hostname||l.host,d=l.port,y=l.path||"/";f&&f.indexOf(":")!==-1&&(f="["+f+"]"),l.url=(f?u+"//"+f:"")+(d?":"+d:"")+y,l.method=(l.method||"GET").toUpperCase(),l.headers=l.headers||{};var x=new t(l);return s&&x.on("response",s),x},a.get=function(s,c){var u=a.request(s,c);return u.end(),u},a.ClientRequest=t,a.IncomingMessage=n.IncomingMessage,a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.globalAgent=new a.Agent,a.STATUS_CODES=o,a.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(db),function(e){var t=db,n=fw,r=e.exports;for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.request=function(a,l){return a=i(a),t.request.call(this,a,l)},r.get=function(a,l){return a=i(a),t.get.call(this,a,l)};function i(a){if(typeof a=="string"&&(a=n.parse(a)),a.protocol||(a.protocol="https:"),a.protocol!=="https:")throw new Error('Protocol "'+a.protocol+'" not supported. Expected "https:"');return a}}(VN);const pw={__template:{field:""},field:"{field}",size:10,shard_size:10,shard_min_doc_count:10,min_doc_count:10,include:{__one_of:["*",{pattern:"",flags:""}]},exclude:{__one_of:["*",{pattern:"",flags:""}]},execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash"]},background_filter:{__scope_link:"GLOBAL.filter"},mutual_information:{include_negatives:{__one_of:[!0,!1]}},chi_square:{include_negatives:{__one_of:[!0,!1]},background_is_superset:{__one_of:[!0,!1]}},percentage:{},gnd:{background_is_superset:{__one_of:[!0,!1]}},script_heuristic:{__template:{script:"_subset_freq/(_superset_freq - _subset_freq + 1)"},script:{}}},Si={__template:{field:""},field:"{field}",missing:0,script:{}},yD={__template:{field:""},field:"{field}"},Ci={__one_of:["skip","insert_zeros"]},Xr={__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Ci},op={"*":{aggs:{__template:{NAME:{AGG_TYPE:{}}}},adjacency_matrix:{filters:{}},diversified_sampler:{shard_size:"",field:""},min:Si,max:Si,avg:Si,sum:Si,stats:Si,extended_stats:Si,value_count:{__template:{field:""},field:"{field}",script:{}},global:{},filter:{},filters:{__template:{filters:{NAME:{}}},filters:{"*":{__scope_link:"GLOBAL.filter"}},other_bucket:{__one_of:[!0,!1]},other_bucket_key:""},missing:yD,nested:{__template:{path:""},path:""},reverse_nested:{__template:{path:""},path:""},terms:{__template:{field:"",size:10},field:"{field}",size:10,shard_size:10,order:{__template:{_key:"asc"},_term:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},min_doc_count:10,script:{},include:".*",exclude:".*",execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]},show_term_doc_count_error:{__one_of:[!0,!1]},collect_mode:{__one_of:["depth_first","breadth_first"]},missing:""},significant_text:{...pw,filter_duplicate_text:"__flag__"},significant_terms:pw,range:{__template:{field:"",ranges:[{from:50,to:100}]},field:"{field}",ranges:[{to:50,from:100,key:""}],keyed:{__one_of:[!0,!1]},script:{}},date_range:{__template:{field:"",ranges:[{from:"now-10d/d",to:"now"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:""}],keyed:{__one_of:[!0,!1]},script:{}},ip_range:{__template:{field:"",ranges:[{from:"10.0.0.5",to:"10.0.0.10"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:"",mask:"10.0.0.127/25"}],keyed:{__one_of:[!0,!1]},script:{}},histogram:{__template:{field:"price",interval:50},field:"{field}",interval:50,extended_bounds:{__template:{min:0,max:50},min:0,max:50},min_doc_count:0,order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},missing:0},date_histogram:{__template:{field:"date",interval:"month"},field:"{field}",interval:{__one_of:["year","quarter","week","day","hour","minute","second"]},min_doc_count:0,extended_bounds:{__template:{min:"now/d",max:"now/d"},min:"now/d",max:"now/d"},order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},pre_zone:"-01:00",post_zone:"-01:00",pre_zone_adjust_large_interval:{__one_of:[!0,!1]},factor:1e3,pre_offset:"1d",post_offset:"1d",format:"yyyy-MM-dd",time_zone:"00:00",missing:""},geo_distance:{__template:{field:"location",origin:{lat:52.376,lon:4.894},ranges:[{from:100,to:300}]},field:"{field}",origin:{lat:0,lon:0},unit:{__one_of:["mi","km","in","yd","m","cm","mm"]},ranges:[{from:50,to:100}],distance_type:{__one_of:["arc","sloppy_arc","plane"]}},geohash_grid:{__template:{field:"",precision:3},field:"{field}",precision:{__one_of:[1,2,3,4,5,6,7,8,9,10,11,12]},size:10,shard_size:10},composite:{__template:{sources:[{NAME:{AGG_TYPE:{}}}]},sources:[{__scope_link:".",__template:{NAME:{AGG_TYPE:{}}}}],size:10,after:{}},percentiles:{__template:{field:"",percents:[1,5,25,50,75,95,99]},field:"{field}",percents:{__template:[1,5,25,50,75,95,99],__any_of:[]},script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},cardinality:{__template:{field:""},precision_threshold:100,rehash:!0,script:{},missing:""},cumulative_cardinality:{__template:{buckets_path:""},buckets_path:"",format:""},scripted_metric:{__template:{init_script:"",map_script:"",combine_script:"",reduce_script:""},init_script:{__scope_link:"GLOBAL.script"},map_script:{__scope_link:"GLOBAL.script"},combine_script:{__scope_link:"GLOBAL.script"},reduce_script:{__scope_link:"GLOBAL.script"},lang:"groovy",params:{},reduce_params:{}},geo_bounds:{__template:{field:""},field:"{field}",wrap_longitude:{__one_of:[!0,!1]}},top_hits:{__template:{size:10},from:0,size:10,sort:{__template:[],__scope_link:"search.sort"},highlight:{},explain:{__one_of:[!0,!1]},_source:{__template:"",__scope_link:"search._source"},script_fields:{__scope_link:"search.script_fields"},docvalue_fields:["{field}"],version:{__one_of:[!0,!1]}},percentile_ranks:{__template:{field:"",values:[10,15]},field:"{field}",values:[],script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},sampler:{__template:{},field:"{field}",script:{},shard_size:100,max_docs_per_value:3,execution_hint:{__one_of:["map","global_ordinals","bytes_hash"]}},children:{__template:{type:""},type:""},derivative:Xr,avg_bucket:Xr,max_bucket:Xr,min_bucket:Xr,stats_bucket:Xr,extended_stats_bucket:{...Xr,sigma:""},percentiles_bucket:{...Xr,percents:[]},sum_bucket:Xr,moving_avg:{__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Ci,window:5,model:{__one_of:["simple","linear","ewma","holt","holt_winters"]},settings:{type:{__one_of:["add","mult"]},alpha:.5,beta:.5,gamma:.5,period:7}},cumulative_sum:{__template:{buckets_path:""},buckets_path:"",format:""},serial_diff:{__template:{buckets_path:"",lag:7},lag:7,gap_policy:Ci,buckets_path:"",format:""},bucket_script:{__template:{buckets_path:{},script:""},buckets_path:{},format:"",gap_policy:Ci,script:""},bucket_selector:{__template:{buckets_path:{},script:""},buckets_path:{},gap_policy:Ci,script:""},bucket_sort:{__template:{sort:[]},sort:["{field}"],from:0,size:0,gap_policy:Ci},matrix_stats:{__template:{fields:[]},fields:["{field}"]}}},{terms:bD,histogram:wD,date_histogram:xD}=op["*"],SD=e=>{e.addGlobalAutocompleteRules("aggregations",op),e.addGlobalAutocompleteRules("aggs",op),e.addGlobalAutocompleteRules("groupByAggs",{"*":{terms:bD,histogram:wD,date_histogram:xD}})},CD=e=>{const t={filter:{},routing:"1",search_routing:"1,2",index_routing:"1"};e.addGlobalAutocompleteRules("aliases",{"*":t})},ED=e=>{e.addEndpointDescription("update",{data_autocomplete_rules:{script:{},doc:{},upsert:{},scripted_upsert:{__one_of:[!0,!1]}}}),e.addEndpointDescription("put_script",{methods:["POST","PUT"],patterns:["_scripts/{lang}/{id}","_scripts/{lang}/{id}/_create"],url_components:{lang:["groovy","expressions"]},data_autocomplete_rules:{script:""}}),e.addEndpointDescription("termvectors",{data_autocomplete_rules:{fields:["{field}"],offsets:{__one_of:[!1,!0]},payloads:{__one_of:[!1,!0]},positions:{__one_of:[!1,!0]},term_statistics:{__one_of:[!0,!1]},field_statistics:{__one_of:[!1,!0]},per_field_analyzer:{__template:{FIELD:""},"{field}":""},routing:"",version:1,version_type:["external","external_gt","external_gte","force","internal"],doc:{},filter:{max_num_terms:1,min_term_freq:1,max_term_freq:1,min_doc_freq:1,max_doc_freq:1,min_word_length:1,max_word_length:1}}})},It={};It.and={__template:{filters:[{}]},filters:[{__scope_link:"."}]},It.bool={__scope_link:"GLOBAL.query"},It.exists={__template:{field:"FIELD_NAME"},field:"{field}"},It.ids={__template:{values:["ID"]},type:"{type}",values:[""]},It.limit={__template:{value:100},value:100},It.geo_bounding_box={__template:{FIELD:{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.717,lon:-73.99}}},"{field}":{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.73,lon:-74.1}},type:{__one_of:["memory","indexed"]}},It.geo_distance={__template:{distance:100,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},distance:100,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},optimize_bbox:{__one_of:["memory","indexed","none"]},"{field}":{lat:40.73,lon:-74.1}},It.geo_distance_range={__template:{from:100,to:200,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},from:100,to:200,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},include_lower:{__one_of:[!0,!1]},include_upper:{__one_of:[!0,!1]},"{field}":{lat:40.73,lon:-74.1}},It.geo_polygon={__template:{FIELD:{points:[{lat:40.73,lon:-74.1},{lat:40.83,lon:-75.1}]}},"{field}":{points:[{lat:40.73,lon:-74.1}]}},It.geo_shape={__template:{FIELD:{shape:{type:"envelope",coordinates:[[-45,45],[45,-45]]},relation:"within"}},"{field}":{shape:{type:"",coordinates:[]},indexed_shape:{id:"",index:"{index}",type:"{type}",shape_field_name:"shape"},relation:{__one_of:["within","intersects","disjoint"]}}},It.has_child={__template:{type:"TYPE",filter:{}},type:"{type}",query:{},filter:{},_scope:"",min_children:1,max_children:10},It.has_parent={__template:{parent_type:"TYPE",filter:{}},parent_type:"{type}",query:{},filter:{},_scope:""},It.m=It.missing={__template:{field:"FIELD"},existence:{__one_of:[!0,!1]},null_value:{__one_of:[!0,!1]},field:"{field}"},It.not={__template:{filter:{}},filter:{}},It.range={__template:{FIELD:{gte:10,lte:20}},"{field}":{gte:1,gt:1,lte:20,lt:20,time_zone:"+01:00",format:"dd/MM/yyyy||yyyy",execution:{__one_of:["index","fielddata"]}}},It.or={__template:{filters:[{}]},filters:[{__scope_link:"."}]},It.prefix={__template:{FIELD:"VALUE"},"{field}":""},It.query={},It.script={__template:{script:{}},script:{}},It.term={__template:{FIELD:"VALUE"},"{field}":""},It.terms={__template:{FIELD:["VALUE1","VALUE2"]},field:["{field}"],execution:{__one_of:["plain","bool","and","or","bool_nocache","and_nocache","or_nocache"]}},It.nested={__template:{path:"path_to_nested_doc",query:{}},query:{},path:"",_name:""};const OD=e=>{e.addGlobalAutocompleteRules("filter",It)},hw={boundary_chars:{},boundary_max_scan:20,boundary_scanner:{__one_of:["chars","sentence","word"]},boundary_scanner_locale:{},encoder:{__one_of:["default","html"]},force_source:{__one_of:["false","true"]},fragmenter:{__one_of:["simple","span"]},highlight_query:{__scope_link:"GLOBAL.query"},matched_fields:["FIELD"],order:{},no_match_size:0,number_of_fragments:5,phrase_limit:256,pre_tags:{},post_tags:{},require_field_match:{__one_of:["true","false"]},tags_schema:{}},$D=e=>{e.addGlobalAutocompleteRules("highlight",{...hw,fields:{"{field}":{fragment_size:20,...hw}}}),e.addGlobalAutocompleteRules("script",{__template:{source:"SCRIPT"},source:"SCRIPT",file:"FILE_SCRIPT_NAME",id:"SCRIPT_ID",lang:"",params:{}})},ht={on_failure:[],ignore_failure:{__one_of:[!1,!0]},if:"",tag:""},TD={append:{__template:{field:"",value:[]},field:"",value:[],...ht}},PD={bytes:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},RD={circle:{__template:{field:"",error_distance:"",shape_type:""},field:"",target_field:"",error_distance:"",shape_type:{__one_of:["geo_shape","shape"]},ignore_missing:{__one_of:[!1,!0]},...ht}},jD={csv:{__template:{field:"",target_fields:[""]},field:"",target_fields:[""],separator:"",quote:"",empty_value:"",trim:{__one_of:[!0,!1]},ignore_missing:{__one_of:[!1,!0]},...ht}},MD={convert:{__template:{field:"",type:""},field:"",type:{__one_of:["integer","float","string","boolean","auto"]},target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},ID={date:{__template:{field:"",formats:[]},field:"",target_field:"@timestamp",formats:[],timezone:"UTC",locale:"ENGLISH",...ht}},AD={date_index_name:{__template:{field:"",date_rounding:""},field:"",date_rounding:{__one_of:["y","M","w","d","h","m","s"]},date_formats:[],timezone:"UTC",locale:"ENGLISH",index_name_format:"yyyy-MM-dd",...ht}},ND={dissect:{__template:{field:"",pattern:""},field:"",pattern:"",append_separator:"",ignore_missing:{__one_of:[!1,!0]},...ht}},kD={dot_expander:{__template:{field:""},field:"",path:"",...ht}},LD={drop:{__template:{},...ht}},FD={fail:{__template:{message:""},message:"",...ht}},DD={foreach:{__template:{field:"",processor:{}},field:"",processor:{__scope_link:"_processor"},...ht}},BD={geoip:{__template:{field:""},field:"",target_field:"",database_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]},first_only:{__one_of:[!1,!0]}}},zD={grok:{__template:{field:"",patterns:[]},field:"",patterns:[],pattern_definitions:{},trace_match:{__one_of:[!1,!0]},ignore_missing:{__one_of:[!1,!0]},...ht}},qD={gsub:{__template:{field:"",pattern:"",replacement:""},field:"",pattern:"",replacement:"",...ht}},VD={html_strip:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},HD={inference:{__template:{model_id:"",field_map:{},inference_config:{}},model_id:"",field_map:{},inference_config:{},target_field:"",...ht}},WD={join:{__template:{field:"",separator:""},field:"",separator:"",...ht}},UD={json:{__template:{field:""},field:"",target_field:"",add_to_root:{__one_of:[!1,!0]},...ht}},GD={kv:{__template:{field:"",field_split:"",value_split:""},field:"",field_split:"",value_split:"",target_field:"",include_keys:[],ignore_missing:{__one_of:[!1,!0]},...ht}},KD={lowercase:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},XD={pipeline:{__template:{name:""},name:"",...ht}},YD={remove:{__template:{field:""},field:"",...ht}},JD={rename:{__template:{field:"",target_field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},QD={script:{__template:{},lang:"painless",file:"",id:"",source:"",params:{},...ht}},ZD={set:{__template:{field:"",value:""},field:"",value:"",override:{__one_of:[!0,!1]},...ht}},eB={set_security_user:{__template:{field:""},field:"",properties:[""],...ht}},tB={split:{__template:{field:"",separator:""},field:"",separator:"",ignore_missing:{__one_of:[!1,!0]},...ht}},nB={sort:{__template:{field:""},field:"",order:"asc",...ht}},rB={trim:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},oB={uppercase:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},iB={urldecode:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},mw={__one_of:[TD,PD,jD,RD,MD,ID,AD,ND,kD,LD,FD,DD,BD,zD,qD,VD,HD,WD,UD,GD,KD,XD,YD,JD,QD,ZD,eB,tB,nB,rB,oB,iB,{user_agent:{__template:{field:""},field:"",target_field:"",regex_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]}}}]},gw={description:"",processors:[mw],version:123},aB=e=>{e.addEndpointDescription("_processor",{data_autocomplete_rules:mw}),e.addEndpointDescription("ingest.put_pipeline",{methods:["PUT"],patterns:["_ingest/pipeline/{id}"],data_autocomplete_rules:gw}),e.addEndpointDescription("ingest.simulate",{data_autocomplete_rules:{pipeline:gw,docs:[]}})},$t=Object.freeze({__one_of:[!0,!1]}),sB=e=>{e.addEndpointDescription("put_mapping",{priority:10,data_autocomplete_rules:{__template:{properties:{FIELD:{}}},_source:{enabled:$t},_all:{enabled:$t},_field_names:{index:$t},_routing:{required:$t},_index:{enabled:$t},_parent:{__template:{type:""},type:"{type}"},_timestamp:{enabled:$t,format:"YYYY-MM-dd",default:""},dynamic_date_formats:["yyyy-MM-dd"],date_detection:$t,numeric_detection:$t,properties:{"*":{type:{__one_of:["text","keyword","float","half_float","scaled_float","double","byte","short","integer","long","date","boolean","binary","object","nested","geo_point","geo_shape"]},store:$t,index:$t,term_vector:{__one_of:["no","yes","with_offsets","with_positions","with_positions_offsets"]},boost:1,null_value:"",doc_values:$t,eager_global_ordinals:$t,norms:$t,coerce:$t,index_options:{__one_of:["docs","freqs","positions"]},analyzer:"standard",search_analyzer:"standard",include_in_all:{__one_of:[!1,!0]},ignore_above:10,position_increment_gap:0,precision_step:4,ignore_malformed:$t,scaling_factor:100,lat_lon:{__one_of:[!0,!1]},geohash:{__one_of:[!0,!1]},geohash_precision:"1m",geohash_prefix:{__one_of:[!0,!1]},validate:{__one_of:[!0,!1]},validate_lat:{__one_of:[!0,!1]},validate_lon:{__one_of:[!0,!1]},normalize:{__one_of:[!0,!1]},normalize_lat:{__one_of:[!0,!1]},normalize_lon:{__one_of:[!0,!1]},tree:{__one_of:["geohash","quadtree"]},precision:"5km",tree_levels:12,distance_error_pct:.025,orientation:"ccw",format:{__one_of:[[...["date","date_time","date_time_no_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","week_date_time_no_millis"].flatMap(function(t){return["basic_"+t,"strict_"+t]}),"date","date_hour","date_hour_minute","date_hour_minute_second","date_hour_minute_second_fraction","date_hour_minute_second_millis","date_optional_time","date_time","date_time_no_millis","hour","hour_minute","hour_minute_second","hour_minute_second_fraction","hour_minute_second_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","weekDateTimeNoMillis","weekyear","strict_weekyear","weekyear_week","strict_weekyear_week","strict_date_optional_time_nanos","weekyear_week_day","strict_weekyear_week_day","year","year_month","year_month_day","epoch_millis","epoch_second"].sort()]},fielddata:{filter:{regex:"",frequency:{min:.001,max:.1,min_segment_size:500}}},similarity:{__one_of:["default","BM25"]},properties:{__scope_link:"put_mapping.{type}.properties"},fields:{"*":{__scope_link:"put_mapping.type.properties.field"}},copy_to:{__one_of:["{field}",["{field}"]]},include_in_parent:$t,include_in_root:$t}}}})},lB=e=>{e.addEndpointDescription("put_settings",{data_autocomplete_rules:{refresh_interval:"1s",number_of_shards:1,number_of_replicas:1,"blocks.read_only":$t,"blocks.read":$t,"blocks.write":$t,"blocks.metadata":$t,term_index_interval:32,term_index_divisor:1,"translog.flush_threshold_ops":5e3,"translog.flush_threshold_size":"200mb","translog.flush_threshold_period":"30m","translog.disable_flush":$t,"cache.filter.max_size":"2gb","cache.filter.expire":"2h","gateway.snapshot_interval":"10s","translog.durability":{__one_of:["request","async"]},routing:{allocation:{include:{tag:""},exclude:{tag:""},require:{tag:""},total_shards_per_node:-1}},"recovery.initial_shards":{__one_of:["quorum","quorum-1","half","full","full-1"]},"ttl.disable_purge":$t,analysis:{analyzer:{},tokenizer:{},filter:{},char_filter:{}},"cache.query.enable":$t,shadow_replicas:$t,shared_filesystem:$t,data_path:"path",codec:{__one_of:["default","best_compression","lucene_default"]}}})},vw={FIELD:"REGEXP"},_w={FIELD:{}},yw={FIELD:{value:""}},bw={FIELD:{gte:10,lte:20}},ww={match:{span_term:{FIELD:"VALUE"}},end:3},xw={clauses:[{span_term:{FIELD:{value:"VALUE"}}}],slop:12,in_order:!1},Sw={FIELD:{value:"VALUE"}},Cw={include:{span_term:{FIELD:{value:"VALUE"}}},exclude:{span_term:{FIELD:{value:"VALUE"}}}},Ew={clauses:[{span_term:{FIELD:{value:"VALUE"}}}]},Ow={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},$w={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},Tw={FIELD:{value:"VALUE"}},Pw={cutoff_frequency:.001,query:"",operator:{__one_of:["and","or"]},zero_terms_query:{__one_of:["none","all"]},max_expansions:10,analyzer:"",boost:1,lenient:{__one_of:["true","false"]},fuzzy_transpositions:{__one_of:["true","false"]},auto_generate_synonyms_phrase_query:{__one_of:["true","false"]},fuzziness:1,prefix_length:1,minimum_should_match:1},Rw={docvalue_fields:["FIELD"],from:{},size:{},sort:{},name:{},highlight:{},_source:{__one_of:["true","false"]},explain:{__one_of:["true","false"]},script_fields:{__template:{FIELD:{script:{}}},"{field}":{script:{}}},version:{__one_of:["true","false"]}},jw={span_first:{__template:ww,__scope_link:".span_first"},span_near:{__template:xw,__scope_link:".span_near"},span_or:{__template:Ew,__scope_link:".span_or"},span_not:{__template:Cw,__scope_link:".span_not"},span_term:{__template:Sw,__scope_link:".span_term"},span_containing:{__template:Ow,__scope_link:".span_containing"},span_within:{__template:$w,__scope_link:".span_within"}},Or={...jw,field_masking_span:{__template:{query:{SPAN_QUERY:{}}},query:jw,field:""}},cB={wildcard:{__template:Tw,__scope_link:".wildcard"},fuzzy:{__template:_w,__scope_link:".fuzzy"},prefix:{__template:yw,__scope_link:".prefix"},range:{__template:bw,__scope_link:".range"},regexp:{__template:vw,__scope_link:".regexp"}},ip={__template:{FIELD:{origin:"",scale:""}},"{field}":{origin:"",scale:"",offset:"",decay:.5}},Mw={script_score:{__template:{script:"_score * doc['f'].value"},script:{}},boost_factor:2,random_score:{seed:314159265359},linear:ip,exp:ip,gauss:ip,field_value_factor:{__template:{field:""},field:"{field}",factor:1.2,modifier:{__one_of:["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]}}},uB=[SD,CD,ED,OD,$D,aB,sB,lB,e=>{e.addGlobalAutocompleteRules("query",{match:{__template:{FIELD:"TEXT"},"{field}":{type:{__one_of:["phrase","phrase_prefix","boolean"]},...Pw}},match_phrase:{__template:{FIELD:"PHRASE"},"{field}":{query:"",analyzer:"",slop:1}},match_phrase_prefix:{__template:{FIELD:"PREFIX"},"{field}":{query:"",analyzer:"",max_expansions:10,prefix_length:1,fuzziness:.1}},regexp:{__template:vw,"{field}":{value:"",flags:{__one_of:["ALL","ANYSTRING","COMPLEMENT","EMPTY","INTERSECTION","INTERVAL","NONE"]},max_determinized_states:1e4}},multi_match:{__template:{query:"",fields:[]},...Pw,fields:["{field}"],use_dis_max:{__template:!0,__one_of:[!0,!1]},tie_breaker:0,type:{__one_of:["best_fields","most_fields","cross_fields","phrase","phrase_prefix"]}},bool:{must:[{__scope_link:"."}],must_not:[{__scope_link:"."}],should:[{__scope_link:"."}],filter:[{__scope_link:"GLOBAL.filter"}],minimum_should_match:1,boost:1},boosting:{positive:{__scope_link:"."},negative:{__scope_link:"."},negative_boost:.2},ids:{type:"",values:[]},constant_score:{__template:{filter:{},boost:1.2},query:{},filter:{},boost:1.2},dis_max:{__template:{tie_breaker:.7,boost:1.2,queries:[]},tie_breaker:.7,boost:1.2,queries:[{__scope_link:"."}]},distance_feature:{__template:{field:"",origin:"",pivot:""},field:"{field}",origin:"",pivot:""},exists:{field:""},field:{"{field}":{query:"",boost:2,enable_position_increments:{__template:!1,__one_of:[!0,!1]}}},fuzzy:{__template:_w,"{field}":{value:"",boost:1,fuzziness:.5,prefix_length:0}},has_child:{__template:{type:"TYPE",query:{}},inner_hits:{...Rw},type:"{type}",score_mode:{__one_of:["none","max","sum","avg"]},_scope:"",query:{},min_children:1,max_children:10},has_parent:{__template:{parent_type:"TYPE",query:{}},parent_type:"{type}",score_mode:{__one_of:["none","score"]},_scope:"",query:{}},match_all:{boost:1},more_like_this:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},fields:["{field}"],like:"",percent_terms_to_match:.3,min_term_freq:2,max_query_terms:25,stop_words:[""],min_doc_freq:5,max_doc_freq:100,min_word_len:0,max_word_len:0,boost_terms:1,boost:1,analyzer:"",docs:[{_index:"{index}",_type:"{type}",_id:""}],ids:[""]},mlt:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},__scope_link:".more_like_this"},prefix:{__template:yw,"{field}":{value:"",boost:1}},query_string:{__template:{default_field:"FIELD",query:"this AND that OR thus"},query:"",default_field:"{field}",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",allow_leading_wildcard:{__one_of:[!0,!1]},enable_position_increments:{__one_of:[!0,!1]},fuzzy_max_expansions:50,fuzziness:.5,fuzzy_prefix_length:0,phrase_slop:0,boost:1,analyze_wildcard:{__one_of:[!1,!0]},auto_generate_phrase_queries:{__one_of:[!1,!0]},minimum_should_match:"20%",lenient:{__one_of:[!1,!0]},use_dis_max:{__one_of:[!0,!1]},tie_breaker:0,time_zone:"+01:00"},simple_query_string:{__template:{query:"",fields:[]},query:"",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",flags:"OR|AND|PREFIX",locale:"ROOT",lenient:{__one_of:[!0,!1]}},range:{__template:bw,"{field}":{__template:{gte:10,lte:20},gte:10,gt:10,lte:20,lt:20,time_zone:"+01:00",boost:1,format:"dd/MM/yyyy||yyyy"}},span_first:{__template:ww,match:Or},span_multi:{__template:{match:{MULTI_TERM_QUERY:{}}},match:cB},span_near:{__template:xw,clauses:[Or],slop:12,in_order:{__one_of:[!1,!0]},collect_payloads:{__one_of:[!1,!0]}},span_term:{__template:Sw,"{field}":{value:"",boost:2}},span_not:{__template:Cw,include:Or,exclude:Or},span_or:{__template:Ew,clauses:[Or]},span_containing:{__template:Ow,little:Or,big:Or},span_within:{__template:$w,little:Or,big:Or},term:{__template:{FIELD:{value:"VALUE"}},"{field}":{value:"",boost:2}},terms:{__template:{FIELD:["VALUE1","VALUE2"]},"{field}":[""]},wildcard:{__template:Tw,"{field}":{value:"",boost:2}},nested:{__template:{path:"path_to_nested_doc",query:{}},inner_hits:{...Rw},path:"",query:{},score_mode:{__one_of:["avg","total","max","none"]}},percolate:{__template:{field:"",document:{}},field:"",document:{},name:"",documents:[{}],document_type:"",index:"",type:"",id:"",routing:"",preference:""},common:{__template:{FIELD:{query:{}}},"{field}":{query:{},cutoff_frequency:.001,minimum_should_match:{low_freq:{},high_freq:{}}}},custom_filters_score:{__template:{query:{},filters:[{filter:{}}]},query:{},filters:[{filter:{},boost:2,script:{}}],score_mode:{__one_of:["first","min","max","total","avg","multiply"]},max_boost:2,params:{},lang:""},indices:{__template:{indices:["INDEX1","INDEX2"],query:{}},indices:["{index}"],query:{},no_match_query:{__scope_link:"."}},geo_shape:{__template:{location:{},relation:"within"},__scope_link:".filter.geo_shape"},function_score:ye.defaults({__template:{query:{},functions:[{}]},query:{},functions:[ye.defaults({filter:{},weight:1},Mw)],boost:1,boost_mode:{__one_of:["multiply","replace","sum","avg","max","min"]},score_mode:{__one_of:["multiply","sum","first","avg","max","min"]},max_boost:10,min_score:1},Mw),script:{__template:{script:"_score * doc['f'].value"},script:{}},wrapper:{__template:{query:"QUERY_BASE64_ENCODED"},query:""}})},e=>{e.addEndpointDescription("reindex",{methods:["POST"],patterns:["_reindex"],data_autocomplete_rules:{__template:{source:{},dest:{}},source:{index:"",type:"",query:{__scope_link:"GLOBAL.query"},sort:{__template:{FIELD:"desc"},FIELD:{__one_of:["asc","desc"]}},size:1e3,remote:{__template:{host:""},host:"",username:"",password:"",socket_timeout:"30s",connect_timeout:"30s"}},dest:{index:"",version_type:{__one_of:["internal","external"]},op_type:"create",routing:{__one_of:["keep","discard","=SOME TEXT"]},pipeline:""},conflicts:"proceed",size:10,script:{__scope_link:"GLOBAL.script"}}})},e=>{e.addEndpointDescription("search",{priority:10,data_autocomplete_rules:{query:{},profile:{__one_of:["true","false"]},aggs:{__template:{NAME:{AGG_TYPE:{}}}},post_filter:{__scope_link:"GLOBAL.filter"},size:{__template:20},from:0,sort:{__template:[{FIELD:{order:"desc"}}],__any_of:[{"{field}":{order:{__one_of:["desc","asc"]},missing:{__one_of:["_last","_first"]},mode:{__one_of:["min","max","avg","sum"]},nested_path:"",nested_filter:{__scope_link:"GLOBAL.filter"}}},"{field}","_score",{_geo_distance:{__template:{FIELD:{lat:40,lon:-70},order:"asc"},"{field}":{__one_of:[{__template:{lat:40,lon:-70},lat:40,lon:-70},[{__template:{lat:40,lon:-70},lat:40,lon:-70}],[""],""]},distance_type:{__one_of:["sloppy_arc","arc","plane"]},sort_mode:{__one_of:["min","max","avg"]},order:{__one_of:["asc","desc"]},unit:"km"}}]},stored_fields:["{field}"],suggest:{__template:{YOUR_SUGGESTION:{text:"YOUR TEXT",term:{FIELD:"MESSAGE"}}},"*":{include:[],exclude:[]}},docvalue_fields:["{field}"],collapse:{__template:{field:"FIELD"}},indices_boost:{__template:[{INDEX:1}]},rescore:{__template:{query:{},window_size:50}},script_fields:{__template:{FIELD:{script:{}}},"*":{__scope_link:"GLOBAL.script"}},partial_fields:{__template:{NAME:{include:[]}},"*":{include:[],exclude:[]}},highlight:{},_source:{__one_of:["{field}",["{field}"],{includes:{__one_of:["{field}",["{field}"]]},excludes:{__one_of:["{field}",["{field}"]]}}]},explain:{__one_of:[!0,!1]},stats:[""],timeout:"1s",version:{__one_of:[!0,!1]},track_total_hits:{__one_of:[!0,!1]}}}),e.addEndpointDescription("search_template",{data_autocomplete_rules:{template:{__one_of:[{__scope_link:"search"},{__scope_link:"GLOBAL.script"}]},params:{}}}),e.addEndpointDescription("render_search_template",{data_autocomplete_rules:{__one_of:[{source:{__scope_link:"search"}},{__scope_link:"GLOBAL.script"}],params:{}}}),e.addEndpointDescription("_search/template/{id}",{data_autocomplete_rules:{template:{__scope_link:"search"}}})}];class dB{constructor(){this.name="es",this.globalRules={},this.endpoints={},this.extensionSpecFilePaths=[],this.hasLoadedSpec=!1}addGlobalAutocompleteRules(t,n){this.globalRules[t]=n}addEndpointDescription(t,n={}){let r={};this.endpoints[t]&&(r={...this.endpoints[t]});let o;ye.each(n.patterns||[],function(i){i.indexOf("{indices}")>=0&&(o=o||{},o.ignore_unavailable="__flag__",o.allow_no_indices="__flag__",o.expand_wildcards=["open","closed"])}),o&&(n.url_params=ye.assign(n.url_params||{},r.url_params),ye.defaults(n.url_params,o)),ye.assign(r,n),ye.defaults(r,{id:t,patterns:[t],methods:["GET"]}),this.endpoints[t]=r}asJson(){return{name:this.name,globals:this.globalRules,endpoints:this.endpoints}}addExtensionSpecFilePath(t){this.extensionSpecFilePaths.push(t)}addProcessorDefinition(t){if(!this.hasLoadedSpec)throw new Error("Cannot add a processor definition because spec definitions have not loaded!");this.endpoints._processor.data_autocomplete_rules.__one_of.push(t)}setup(){return{addExtensionSpecFilePath:this.addExtensionSpecFilePath.bind(this)}}start(){if(this.hasLoadedSpec)throw new Error("Service has already started!");return this.loadJsonSpec(),this.loadJSSpec(),this.hasLoadedSpec=!0,{addProcessorDefinition:this.addProcessorDefinition.bind(this)}}async loadJSONSpecInDir(){const t=Object.assign({"../lib/spec_definitions/json/generated/_common.json":()=>Promise.resolve().then(()=>w4),"../lib/spec_definitions/json/generated/bulk.json":()=>Promise.resolve().then(()=>x4),"../lib/spec_definitions/json/generated/cat.aliases.json":()=>Promise.resolve().then(()=>S4),"../lib/spec_definitions/json/generated/cat.allocation.json":()=>Promise.resolve().then(()=>C4),"../lib/spec_definitions/json/generated/cat.count.json":()=>Promise.resolve().then(()=>E4),"../lib/spec_definitions/json/generated/cat.fielddata.json":()=>Promise.resolve().then(()=>O4),"../lib/spec_definitions/json/generated/cat.health.json":()=>Promise.resolve().then(()=>$4),"../lib/spec_definitions/json/generated/cat.help.json":()=>Promise.resolve().then(()=>T4),"../lib/spec_definitions/json/generated/cat.indices.json":()=>Promise.resolve().then(()=>P4),"../lib/spec_definitions/json/generated/cat.master.json":()=>Promise.resolve().then(()=>R4),"../lib/spec_definitions/json/generated/cat.nodeattrs.json":()=>Promise.resolve().then(()=>j4),"../lib/spec_definitions/json/generated/cat.nodes.json":()=>Promise.resolve().then(()=>M4),"../lib/spec_definitions/json/generated/cat.pending_tasks.json":()=>Promise.resolve().then(()=>I4),"../lib/spec_definitions/json/generated/cat.plugins.json":()=>Promise.resolve().then(()=>A4),"../lib/spec_definitions/json/generated/cat.recovery.json":()=>Promise.resolve().then(()=>N4),"../lib/spec_definitions/json/generated/cat.repositories.json":()=>Promise.resolve().then(()=>k4),"../lib/spec_definitions/json/generated/cat.segments.json":()=>Promise.resolve().then(()=>L4),"../lib/spec_definitions/json/generated/cat.shards.json":()=>Promise.resolve().then(()=>F4),"../lib/spec_definitions/json/generated/cat.snapshots.json":()=>Promise.resolve().then(()=>D4),"../lib/spec_definitions/json/generated/cat.tasks.json":()=>Promise.resolve().then(()=>B4),"../lib/spec_definitions/json/generated/cat.templates.json":()=>Promise.resolve().then(()=>z4),"../lib/spec_definitions/json/generated/cat.thread_pool.json":()=>Promise.resolve().then(()=>q4),"../lib/spec_definitions/json/generated/clear_scroll.json":()=>Promise.resolve().then(()=>V4),"../lib/spec_definitions/json/generated/cluster.allocation_explain.json":()=>Promise.resolve().then(()=>H4),"../lib/spec_definitions/json/generated/cluster.delete_component_template.json":()=>Promise.resolve().then(()=>W4),"../lib/spec_definitions/json/generated/cluster.get_component_template.json":()=>Promise.resolve().then(()=>U4),"../lib/spec_definitions/json/generated/cluster.get_settings.json":()=>Promise.resolve().then(()=>G4),"../lib/spec_definitions/json/generated/cluster.health.json":()=>Promise.resolve().then(()=>K4),"../lib/spec_definitions/json/generated/cluster.pending_tasks.json":()=>Promise.resolve().then(()=>X4),"../lib/spec_definitions/json/generated/cluster.put_component_template.json":()=>Promise.resolve().then(()=>Y4),"../lib/spec_definitions/json/generated/cluster.put_settings.json":()=>Promise.resolve().then(()=>J4),"../lib/spec_definitions/json/generated/cluster.remote_info.json":()=>Promise.resolve().then(()=>Q4),"../lib/spec_definitions/json/generated/cluster.reroute.json":()=>Promise.resolve().then(()=>Z4),"../lib/spec_definitions/json/generated/cluster.state.json":()=>Promise.resolve().then(()=>e8),"../lib/spec_definitions/json/generated/cluster.stats.json":()=>Promise.resolve().then(()=>t8),"../lib/spec_definitions/json/generated/count.json":()=>Promise.resolve().then(()=>n8),"../lib/spec_definitions/json/generated/create.json":()=>Promise.resolve().then(()=>r8),"../lib/spec_definitions/json/generated/delete.json":()=>Promise.resolve().then(()=>o8),"../lib/spec_definitions/json/generated/delete_by_query.json":()=>Promise.resolve().then(()=>i8),"../lib/spec_definitions/json/generated/delete_by_query_rethrottle.json":()=>Promise.resolve().then(()=>a8),"../lib/spec_definitions/json/generated/delete_script.json":()=>Promise.resolve().then(()=>s8),"../lib/spec_definitions/json/generated/exists.json":()=>Promise.resolve().then(()=>l8),"../lib/spec_definitions/json/generated/exists_source.json":()=>Promise.resolve().then(()=>c8),"../lib/spec_definitions/json/generated/explain.json":()=>Promise.resolve().then(()=>u8),"../lib/spec_definitions/json/generated/field_caps.json":()=>Promise.resolve().then(()=>d8),"../lib/spec_definitions/json/generated/get.json":()=>Promise.resolve().then(()=>f8),"../lib/spec_definitions/json/generated/get_script.json":()=>Promise.resolve().then(()=>p8),"../lib/spec_definitions/json/generated/get_script_context.json":()=>Promise.resolve().then(()=>h8),"../lib/spec_definitions/json/generated/get_script_languages.json":()=>Promise.resolve().then(()=>m8),"../lib/spec_definitions/json/generated/get_source.json":()=>Promise.resolve().then(()=>g8),"../lib/spec_definitions/json/generated/index.json":()=>Promise.resolve().then(()=>v8),"../lib/spec_definitions/json/generated/indices.analyze.json":()=>Promise.resolve().then(()=>_8),"../lib/spec_definitions/json/generated/indices.clear_cache.json":()=>Promise.resolve().then(()=>y8),"../lib/spec_definitions/json/generated/indices.clone.json":()=>Promise.resolve().then(()=>b8),"../lib/spec_definitions/json/generated/indices.close.json":()=>Promise.resolve().then(()=>w8),"../lib/spec_definitions/json/generated/indices.create.json":()=>Promise.resolve().then(()=>x8),"../lib/spec_definitions/json/generated/indices.delete.json":()=>Promise.resolve().then(()=>S8),"../lib/spec_definitions/json/generated/indices.delete_alias.json":()=>Promise.resolve().then(()=>C8),"../lib/spec_definitions/json/generated/indices.delete_template.json":()=>Promise.resolve().then(()=>E8),"../lib/spec_definitions/json/generated/indices.exists.json":()=>Promise.resolve().then(()=>O8),"../lib/spec_definitions/json/generated/indices.exists_alias.json":()=>Promise.resolve().then(()=>$8),"../lib/spec_definitions/json/generated/indices.exists_template.json":()=>Promise.resolve().then(()=>T8),"../lib/spec_definitions/json/generated/indices.exists_type.json":()=>Promise.resolve().then(()=>P8),"../lib/spec_definitions/json/generated/indices.flush.json":()=>Promise.resolve().then(()=>R8),"../lib/spec_definitions/json/generated/indices.flush_synced.json":()=>Promise.resolve().then(()=>j8),"../lib/spec_definitions/json/generated/indices.forcemerge.json":()=>Promise.resolve().then(()=>M8),"../lib/spec_definitions/json/generated/indices.get.json":()=>Promise.resolve().then(()=>I8),"../lib/spec_definitions/json/generated/indices.get_alias.json":()=>Promise.resolve().then(()=>A8),"../lib/spec_definitions/json/generated/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>N8),"../lib/spec_definitions/json/generated/indices.get_mapping.json":()=>Promise.resolve().then(()=>k8),"../lib/spec_definitions/json/generated/indices.get_settings.json":()=>Promise.resolve().then(()=>L8),"../lib/spec_definitions/json/generated/indices.get_template.json":()=>Promise.resolve().then(()=>F8),"../lib/spec_definitions/json/generated/indices.get_upgrade.json":()=>Promise.resolve().then(()=>D8),"../lib/spec_definitions/json/generated/indices.open.json":()=>Promise.resolve().then(()=>B8),"../lib/spec_definitions/json/generated/indices.put_alias.json":()=>Promise.resolve().then(()=>z8),"../lib/spec_definitions/json/generated/indices.put_mapping.json":()=>Promise.resolve().then(()=>q8),"../lib/spec_definitions/json/generated/indices.put_settings.json":()=>Promise.resolve().then(()=>V8),"../lib/spec_definitions/json/generated/indices.put_template.json":()=>Promise.resolve().then(()=>H8),"../lib/spec_definitions/json/generated/indices.recovery.json":()=>Promise.resolve().then(()=>W8),"../lib/spec_definitions/json/generated/indices.refresh.json":()=>Promise.resolve().then(()=>U8),"../lib/spec_definitions/json/generated/indices.rollover.json":()=>Promise.resolve().then(()=>G8),"../lib/spec_definitions/json/generated/indices.segments.json":()=>Promise.resolve().then(()=>K8),"../lib/spec_definitions/json/generated/indices.shard_stores.json":()=>Promise.resolve().then(()=>X8),"../lib/spec_definitions/json/generated/indices.shrink.json":()=>Promise.resolve().then(()=>Y8),"../lib/spec_definitions/json/generated/indices.split.json":()=>Promise.resolve().then(()=>J8),"../lib/spec_definitions/json/generated/indices.stats.json":()=>Promise.resolve().then(()=>Q8),"../lib/spec_definitions/json/generated/indices.update_aliases.json":()=>Promise.resolve().then(()=>Z8),"../lib/spec_definitions/json/generated/indices.upgrade.json":()=>Promise.resolve().then(()=>e3),"../lib/spec_definitions/json/generated/indices.validate_query.json":()=>Promise.resolve().then(()=>t3),"../lib/spec_definitions/json/generated/info.json":()=>Promise.resolve().then(()=>n3),"../lib/spec_definitions/json/generated/ingest.delete_pipeline.json":()=>Promise.resolve().then(()=>r3),"../lib/spec_definitions/json/generated/ingest.get_pipeline.json":()=>Promise.resolve().then(()=>o3),"../lib/spec_definitions/json/generated/ingest.processor_grok.json":()=>Promise.resolve().then(()=>i3),"../lib/spec_definitions/json/generated/ingest.put_pipeline.json":()=>Promise.resolve().then(()=>a3),"../lib/spec_definitions/json/generated/ingest.simulate.json":()=>Promise.resolve().then(()=>s3),"../lib/spec_definitions/json/generated/mget.json":()=>Promise.resolve().then(()=>l3),"../lib/spec_definitions/json/generated/msearch.json":()=>Promise.resolve().then(()=>c3),"../lib/spec_definitions/json/generated/msearch_template.json":()=>Promise.resolve().then(()=>u3),"../lib/spec_definitions/json/generated/mtermvectors.json":()=>Promise.resolve().then(()=>d3),"../lib/spec_definitions/json/generated/nodes.hot_threads.json":()=>Promise.resolve().then(()=>f3),"../lib/spec_definitions/json/generated/nodes.info.json":()=>Promise.resolve().then(()=>p3),"../lib/spec_definitions/json/generated/nodes.reload_secure_settings.json":()=>Promise.resolve().then(()=>h3),"../lib/spec_definitions/json/generated/nodes.stats.json":()=>Promise.resolve().then(()=>m3),"../lib/spec_definitions/json/generated/nodes.usage.json":()=>Promise.resolve().then(()=>g3),"../lib/spec_definitions/json/generated/ping.json":()=>Promise.resolve().then(()=>v3),"../lib/spec_definitions/json/generated/put_script.json":()=>Promise.resolve().then(()=>_3),"../lib/spec_definitions/json/generated/rank_eval.json":()=>Promise.resolve().then(()=>y3),"../lib/spec_definitions/json/generated/reindex.json":()=>Promise.resolve().then(()=>b3),"../lib/spec_definitions/json/generated/reindex_rethrottle.json":()=>Promise.resolve().then(()=>w3),"../lib/spec_definitions/json/generated/render_search_template.json":()=>Promise.resolve().then(()=>x3),"../lib/spec_definitions/json/generated/scripts_painless_execute.json":()=>Promise.resolve().then(()=>S3),"../lib/spec_definitions/json/generated/scroll.json":()=>Promise.resolve().then(()=>C3),"../lib/spec_definitions/json/generated/search.json":()=>Promise.resolve().then(()=>E3),"../lib/spec_definitions/json/generated/search_shards.json":()=>Promise.resolve().then(()=>O3),"../lib/spec_definitions/json/generated/search_template.json":()=>Promise.resolve().then(()=>$3),"../lib/spec_definitions/json/generated/snapshot.cleanup_repository.json":()=>Promise.resolve().then(()=>T3),"../lib/spec_definitions/json/generated/snapshot.create.json":()=>Promise.resolve().then(()=>P3),"../lib/spec_definitions/json/generated/snapshot.create_repository.json":()=>Promise.resolve().then(()=>R3),"../lib/spec_definitions/json/generated/snapshot.delete.json":()=>Promise.resolve().then(()=>j3),"../lib/spec_definitions/json/generated/snapshot.delete_repository.json":()=>Promise.resolve().then(()=>M3),"../lib/spec_definitions/json/generated/snapshot.get.json":()=>Promise.resolve().then(()=>I3),"../lib/spec_definitions/json/generated/snapshot.get_repository.json":()=>Promise.resolve().then(()=>A3),"../lib/spec_definitions/json/generated/snapshot.restore.json":()=>Promise.resolve().then(()=>N3),"../lib/spec_definitions/json/generated/snapshot.status.json":()=>Promise.resolve().then(()=>k3),"../lib/spec_definitions/json/generated/snapshot.verify_repository.json":()=>Promise.resolve().then(()=>L3),"../lib/spec_definitions/json/generated/tasks.cancel.json":()=>Promise.resolve().then(()=>F3),"../lib/spec_definitions/json/generated/tasks.get.json":()=>Promise.resolve().then(()=>D3),"../lib/spec_definitions/json/generated/tasks.list.json":()=>Promise.resolve().then(()=>B3),"../lib/spec_definitions/json/generated/termvectors.json":()=>Promise.resolve().then(()=>z3),"../lib/spec_definitions/json/generated/update.json":()=>Promise.resolve().then(()=>q3),"../lib/spec_definitions/json/generated/update_by_query.json":()=>Promise.resolve().then(()=>V3),"../lib/spec_definitions/json/generated/update_by_query_rethrottle.json":()=>Promise.resolve().then(()=>H3)}),n=await this.loadAllSpecFromModules(t),r=Object.assign({"../lib/spec_definitions/json/overrides/clear_scroll.json":()=>Promise.resolve().then(()=>W3),"../lib/spec_definitions/json/overrides/cluster.health.json":()=>Promise.resolve().then(()=>U3),"../lib/spec_definitions/json/overrides/cluster.put_component_template.json":()=>Promise.resolve().then(()=>G3),"../lib/spec_definitions/json/overrides/cluster.put_settings.json":()=>Promise.resolve().then(()=>K3),"../lib/spec_definitions/json/overrides/cluster.reroute.json":()=>Promise.resolve().then(()=>X3),"../lib/spec_definitions/json/overrides/count.json":()=>Promise.resolve().then(()=>Y3),"../lib/spec_definitions/json/overrides/indices.analyze.json":()=>Promise.resolve().then(()=>J3),"../lib/spec_definitions/json/overrides/indices.clone.json":()=>Promise.resolve().then(()=>Q3),"../lib/spec_definitions/json/overrides/indices.create.json":()=>Promise.resolve().then(()=>Z3),"../lib/spec_definitions/json/overrides/indices.delete_template.json":()=>Promise.resolve().then(()=>e6),"../lib/spec_definitions/json/overrides/indices.exists_template.json":()=>Promise.resolve().then(()=>t6),"../lib/spec_definitions/json/overrides/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>n6),"../lib/spec_definitions/json/overrides/indices.get_mapping.json":()=>Promise.resolve().then(()=>r6),"../lib/spec_definitions/json/overrides/indices.get_template.json":()=>Promise.resolve().then(()=>o6),"../lib/spec_definitions/json/overrides/indices.put_alias.json":()=>Promise.resolve().then(()=>i6),"../lib/spec_definitions/json/overrides/indices.put_settings.json":()=>Promise.resolve().then(()=>a6),"../lib/spec_definitions/json/overrides/indices.put_template.json":()=>Promise.resolve().then(()=>s6),"../lib/spec_definitions/json/overrides/indices.rollover.json":()=>Promise.resolve().then(()=>l6),"../lib/spec_definitions/json/overrides/indices.update_aliases.json":()=>Promise.resolve().then(()=>c6),"../lib/spec_definitions/json/overrides/indices.validate_query.json":()=>Promise.resolve().then(()=>u6),"../lib/spec_definitions/json/overrides/snapshot.create.json":()=>Promise.resolve().then(()=>d6),"../lib/spec_definitions/json/overrides/snapshot.create_repository.json":()=>Promise.resolve().then(()=>f6),"../lib/spec_definitions/json/overrides/snapshot.restore.json":()=>Promise.resolve().then(()=>p6),"../lib/spec_definitions/json/overrides/update_by_query.json":()=>Promise.resolve().then(()=>h6)}),o=await this.loadAllSpecFromModules(r);return ye.merge(n,o)}async loadAllSpecFromModules(t){const n=Object.keys(t).map(async o=>(await t[o]()).default);return(await Promise.all(n)).reduce((o,i)=>ye.merge(o,i),{})}loadJsonSpec(){const t=this.loadJSONSpecInDir();Object.keys(t).forEach(n=>{this.addEndpointDescription(n,t[n])})}loadJSSpec(){uB.forEach(t=>t(this))}}class fB extends Eo{constructor(t,n,r){super(t,n),this.description=r}getTerms(){const t={name:this.name};return this.description==="__flag__"?t.meta="flag":(t.meta="param",t.insertValue=this.name+"="),[t]}}class pB{constructor(t,n){this.rootComponent=new $n("ROOT"),ye.isUndefined(n)&&(n={pretty:"__flag__",format:["json","yaml"],filter_path:""}),t=ye.clone(t||{}),ye.defaults(t,n),ye.each(t,(r,o)=>{const i=new fB(o,this.rootComponent,r);Array.isArray(r)?new kn(o,r,i):r==="__flag__"&&new kn(o,["true","false"],i)})}getTopLevelComponents(){return this.rootComponent.next}}function hB(e,t){const n=e.getTerms;return e.getTerms=function(r,o){let i=n.call(e,r,o);return i&&(i=ye.map(i,a=>(ye.isObject(a)||(a={name:a}),ye.defaults(a,t))),i)},e}function Iw(e,t){function n(){}n.prototype=e;const r=new n;return t&&(t.unshift(r),ye.assign.apply(ye,t),t.shift()),r}function Bl(e,t,n,r,o){this.parentName=e,this.components=t,this.contextExtensionList=n,this.depth=r||0,this.priority=o}function ap(e,t,n,r){if(!e||e.length===0)return t;const o=e[0],i=[];return ye.each(t,function(a){const l=Iw(n,a.contextExtensionList);ye.each(a.components,function(s){const c=s.match(o,l,r);if(c&&!ye.isEmpty(c)){let u,f;c.next&&!Array.isArray(c.next)?u=[c.next]:u=c.next,c.context_values?(f=[],[].push.apply(f,a.contextExtensionList),f.push(c.context_values)):f=a.contextExtensionList;let d=a.priority;ye.isNumber(c.priority)&&(ye.isNumber(d)?d=Math.min(d,c.priority):d=c.priority),i.push(new Bl(s.name,u,f,a.depth+1,d))}})}),i.length===0?ye.map(t,function(a){return new Bl(a.name,[],a.contextExtensionList)}):ap(e.slice(1),i,n,r)}function Ei(e,t,n,r,o){let i=ap(e,[new Bl("ROOT",o,[])],t,n);if(r){let a=[];ye.each(i,function(l){const s=Iw(t,l.contextExtensionList);ye.each(l.components,function(c){ye.each(c.getTerms(s,n),function(u){ye.isObject(u)||(u={name:u}),a.push(u)})})}),a=ye.uniq(a),t.autoCompleteSet=a}if(i.length!==0){let a;i=ye.sortBy(i,function(l){return ye.isNumber(l.priority)?l.priority:Number.MAX_VALUE}),a=ye.find(i,function(l){return ye.isEmpty(l.components)}),!a&&i.length>1&&!r&&console.info("more then one context active for current path, but autocomplete isn't requested",i),a||(a=i[0]),ye.each(a.contextExtensionList,function(l){ye.assign(t,l)})}}function mB(e,t){this.parametrizedComponentFactories=t,this.endpointId=e}function gB(e,t,n,r){const o=ap(e,[new Bl("ROOT",r,[])],t,n);return[].concat.apply([],ye.map(o,"components"))}class vB extends $n{constructor(t,n){super("__scope_link"),ye.isString(t)&&t[0]==="."&&(t==="."?t=n.endpointId:t=n.endpointId+t),this.link=t,this.compilingContext=n}resolveLinkToComponents(t,n){if(ye.isFunction(this.link)){const a=this.link(t,n);return ka(a,this.compilingContext)}if(!ye.isString(this.link))throw new Error("unsupported link format",this.link);let r=this.link.replace(/\./g,"{").split(/(\{)/);const o=r[0];let i;try{if(o==="GLOBAL"){if(r.length<3)throw new Error("missing term in global link: "+this.link);const a=r[2];i=t.globalComponentResolver(a),r=r.slice(3)}else r=r.slice(1),i=t.endpointComponentResolver(o)}catch(a){throw new Error("failed to resolve link ["+this.link+"]: "+a)}return gB(r,t,n,i)}getTerms(t,n){const r=[],o=this.resolveLinkToComponents(t,n);return ye.each(o,function(i){r.push.apply(r,i.getTerms(t,n))}),r}match(t,n,r){const o={next:[]},i=this.resolveLinkToComponents(n,r);return ye.each(i,function(a){const l=a.match(t,n,r);l&&l.next&&o.next.push.apply(o.next,l.next)}),o}}function sp(e){if(e.__template)return e.__raw&&ye.isString(e.__template)?{__raw:!0,value:e.__template}:e.__template;if(e.__one_of)return sp(e.__one_of[0]);if(e.__any_of)return[];if(e.__scope_link)return{};if(Array.isArray(e)){if(e.length===1&&ye.isObject(e[0])){const t=sp(e[0]);return t!=null?[t]:[]}return[]}else return ye.isObject(e)?{}:(ye.isString(e)&&!/^\{.*\}$/.test(e),e)}function _B(e){const t={},n=sp(e);return ye.isUndefined(n)||(t.template=n),t}function ka(e,t){if(Array.isArray(e))return[Nw(e,t)];if(ye.isObject(e)){if(e.__scope_link)return[new vB(e.__scope_link,t)];if(e.__any_of)return[Nw(e.__any_of,t)];if(e.__one_of)return ye.flatten(ye.map(e.__one_of,function(r){return ka(r,t)}));const n=yB(e,t);return e.__condition?[bB(e.__condition,n)]:[n]}else return ye.isString(e)&&/^\{.*\}$/.test(e)?[Aw(e,t)]:[new Eo(e)]}function Aw(e,t,n){e=e.substr(1,e.length-2).toLowerCase();let r=t.parametrizedComponentFactories.getComponent(e,!0);if(!r)throw new Error("no factory found for '"+e+"'");return r=r(e,null,n),ye.isUndefined(n)||(r=hB(r,{template:n})),r}function yB(e,t){const n=new Eo("{"),r=[],o=[];return ye.each(e,function(i,a){if(a.indexOf("__")===0)return;const l=_B(i);let s;/^\{.*\}$/.test(a)?(s=Aw(a,t,l.template),o.push(s)):a==="*"?(s=new $n(a),o.push(s)):(l.name=a,s=new Eo(a,null,[l]),r.push(s)),ye.map(ka(i,t),function(c){s.addComponent(c)})}),n.addComponent(new bN("inner",r,o)),n}function Nw(e,t){const n=new Eo("[");return ye.each(e,function(r){ye.each(ka(r,t),function(o){n.addComponent(o)})}),n}function bB(e,t){if(e.lines_regex)return new _N(function(n,r){const o=r.getLines(n.requestStartRow,r.getCurrentPosition().lineNumber).join(`
270
+ `)&&(e=e.replace(dD,"%0A")),e.includes("\r")&&(e=e.replace(fD,"%0D")),e.includes(" ")&&(e=e.replace(pD,"%09")),e}var sw=function(t){if(typeof t>"u")throw new TypeError('The "domain" argument must be specified');return new Kr("http://"+t).hostname},lw=function(t){if(typeof t>"u")throw new TypeError('The "domain" argument must be specified');return new Kr("http://"+t).hostname},cw=function(t){var n=new Kr("file://"),r=aD(t),o=t.charCodeAt(t.length-1);return o===hD&&r[r.length-1]!=="/"&&(r+="/"),n.pathname=vD(r),n},uw=function(t){if(!mD(t)&&typeof t!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof t+" ("+t+")");var n=new Kr(t);if(n.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return gD(n)},dw=function(t,n){var r,o,i,a;if(n===void 0&&(n={}),!(t instanceof Kr))return lD(t);if(typeof n!="object"||n===null)throw new TypeError('The "options" argument must be of type object.');var l=(r=n.auth)!=null?r:!0,s=(o=n.fragment)!=null?o:!0,c=(i=n.search)!=null?i:!0;(a=n.unicode)!=null;var u=new Kr(t.toString());return l||(u.username="",u.password=""),s||(u.hash=""),c||(u.search=""),u.toString()},_D={format:dw,parse:rw,resolve:ow,resolveObject:tw,Url:iw,URL:Kr,URLSearchParams:aw,domainToASCII:sw,domainToUnicode:lw,pathToFileURL:cw,fileURLToPath:uw};const fw=jp(Object.freeze(Object.defineProperty({__proto__:null,URL:Kr,URLSearchParams:aw,Url:iw,default:_D,domainToASCII:sw,domainToUnicode:lw,fileURLToPath:uw,format:dw,parse:rw,pathToFileURL:cw,resolve:ow,resolveObject:tw},Symbol.toStringTag,{value:"Module"})));(function(e){var t=mL,n=gl,r=gL,o=yL,i=fw,a=e;a.request=function(l,s){typeof l=="string"?l=i.parse(l):l=r(l);var c=vt.location.protocol.search(/^https?:$/)===-1?"http:":"",u=l.protocol||c,f=l.hostname||l.host,d=l.port,y=l.path||"/";f&&f.indexOf(":")!==-1&&(f="["+f+"]"),l.url=(f?u+"//"+f:"")+(d?":"+d:"")+y,l.method=(l.method||"GET").toUpperCase(),l.headers=l.headers||{};var x=new t(l);return s&&x.on("response",s),x},a.get=function(s,c){var u=a.request(s,c);return u.end(),u},a.ClientRequest=t,a.IncomingMessage=n.IncomingMessage,a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.globalAgent=new a.Agent,a.STATUS_CODES=o,a.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(db),function(e){var t=db,n=fw,r=e.exports;for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.request=function(a,l){return a=i(a),t.request.call(this,a,l)},r.get=function(a,l){return a=i(a),t.get.call(this,a,l)};function i(a){if(typeof a=="string"&&(a=n.parse(a)),a.protocol||(a.protocol="https:"),a.protocol!=="https:")throw new Error('Protocol "'+a.protocol+'" not supported. Expected "https:"');return a}}(VN);const pw={__template:{field:""},field:"{field}",size:10,shard_size:10,shard_min_doc_count:10,min_doc_count:10,include:{__one_of:["*",{pattern:"",flags:""}]},exclude:{__one_of:["*",{pattern:"",flags:""}]},execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash"]},background_filter:{__scope_link:"GLOBAL.filter"},mutual_information:{include_negatives:{__one_of:[!0,!1]}},chi_square:{include_negatives:{__one_of:[!0,!1]},background_is_superset:{__one_of:[!0,!1]}},percentage:{},gnd:{background_is_superset:{__one_of:[!0,!1]}},script_heuristic:{__template:{script:"_subset_freq/(_superset_freq - _subset_freq + 1)"},script:{}}},Si={__template:{field:""},field:"{field}",missing:0,script:{}},yD={__template:{field:""},field:"{field}"},Ci={__one_of:["skip","insert_zeros"]},Xr={__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Ci},op={"*":{aggs:{__template:{NAME:{AGG_TYPE:{}}}},adjacency_matrix:{filters:{}},diversified_sampler:{shard_size:"",field:""},min:Si,max:Si,avg:Si,sum:Si,stats:Si,extended_stats:Si,value_count:{__template:{field:""},field:"{field}",script:{}},global:{},filter:{},filters:{__template:{filters:{NAME:{}}},filters:{"*":{__scope_link:"GLOBAL.filter"}},other_bucket:{__one_of:[!0,!1]},other_bucket_key:""},missing:yD,nested:{__template:{path:""},path:""},reverse_nested:{__template:{path:""},path:""},terms:{__template:{field:"",size:10},field:"{field}",size:10,shard_size:10,order:{__template:{_key:"asc"},_term:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},min_doc_count:10,script:{},include:".*",exclude:".*",execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]},show_term_doc_count_error:{__one_of:[!0,!1]},collect_mode:{__one_of:["depth_first","breadth_first"]},missing:""},significant_text:{...pw,filter_duplicate_text:"__flag__"},significant_terms:pw,range:{__template:{field:"",ranges:[{from:50,to:100}]},field:"{field}",ranges:[{to:50,from:100,key:""}],keyed:{__one_of:[!0,!1]},script:{}},date_range:{__template:{field:"",ranges:[{from:"now-10d/d",to:"now"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:""}],keyed:{__one_of:[!0,!1]},script:{}},ip_range:{__template:{field:"",ranges:[{from:"10.0.0.5",to:"10.0.0.10"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:"",mask:"10.0.0.127/25"}],keyed:{__one_of:[!0,!1]},script:{}},histogram:{__template:{field:"price",interval:50},field:"{field}",interval:50,extended_bounds:{__template:{min:0,max:50},min:0,max:50},min_doc_count:0,order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},missing:0},date_histogram:{__template:{field:"date",interval:"month"},field:"{field}",interval:{__one_of:["year","quarter","week","day","hour","minute","second"]},min_doc_count:0,extended_bounds:{__template:{min:"now/d",max:"now/d"},min:"now/d",max:"now/d"},order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},pre_zone:"-01:00",post_zone:"-01:00",pre_zone_adjust_large_interval:{__one_of:[!0,!1]},factor:1e3,pre_offset:"1d",post_offset:"1d",format:"yyyy-MM-dd",time_zone:"00:00",missing:""},geo_distance:{__template:{field:"location",origin:{lat:52.376,lon:4.894},ranges:[{from:100,to:300}]},field:"{field}",origin:{lat:0,lon:0},unit:{__one_of:["mi","km","in","yd","m","cm","mm"]},ranges:[{from:50,to:100}],distance_type:{__one_of:["arc","sloppy_arc","plane"]}},geohash_grid:{__template:{field:"",precision:3},field:"{field}",precision:{__one_of:[1,2,3,4,5,6,7,8,9,10,11,12]},size:10,shard_size:10},composite:{__template:{sources:[{NAME:{AGG_TYPE:{}}}]},sources:[{__scope_link:".",__template:{NAME:{AGG_TYPE:{}}}}],size:10,after:{}},percentiles:{__template:{field:"",percents:[1,5,25,50,75,95,99]},field:"{field}",percents:{__template:[1,5,25,50,75,95,99],__any_of:[]},script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},cardinality:{__template:{field:""},precision_threshold:100,rehash:!0,script:{},missing:""},cumulative_cardinality:{__template:{buckets_path:""},buckets_path:"",format:""},scripted_metric:{__template:{init_script:"",map_script:"",combine_script:"",reduce_script:""},init_script:{__scope_link:"GLOBAL.script"},map_script:{__scope_link:"GLOBAL.script"},combine_script:{__scope_link:"GLOBAL.script"},reduce_script:{__scope_link:"GLOBAL.script"},lang:"groovy",params:{},reduce_params:{}},geo_bounds:{__template:{field:""},field:"{field}",wrap_longitude:{__one_of:[!0,!1]}},top_hits:{__template:{size:10},from:0,size:10,sort:{__template:[],__scope_link:"search.sort"},highlight:{},explain:{__one_of:[!0,!1]},_source:{__template:"",__scope_link:"search._source"},script_fields:{__scope_link:"search.script_fields"},docvalue_fields:["{field}"],version:{__one_of:[!0,!1]}},percentile_ranks:{__template:{field:"",values:[10,15]},field:"{field}",values:[],script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},sampler:{__template:{},field:"{field}",script:{},shard_size:100,max_docs_per_value:3,execution_hint:{__one_of:["map","global_ordinals","bytes_hash"]}},children:{__template:{type:""},type:""},derivative:Xr,avg_bucket:Xr,max_bucket:Xr,min_bucket:Xr,stats_bucket:Xr,extended_stats_bucket:{...Xr,sigma:""},percentiles_bucket:{...Xr,percents:[]},sum_bucket:Xr,moving_avg:{__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Ci,window:5,model:{__one_of:["simple","linear","ewma","holt","holt_winters"]},settings:{type:{__one_of:["add","mult"]},alpha:.5,beta:.5,gamma:.5,period:7}},cumulative_sum:{__template:{buckets_path:""},buckets_path:"",format:""},serial_diff:{__template:{buckets_path:"",lag:7},lag:7,gap_policy:Ci,buckets_path:"",format:""},bucket_script:{__template:{buckets_path:{},script:""},buckets_path:{},format:"",gap_policy:Ci,script:""},bucket_selector:{__template:{buckets_path:{},script:""},buckets_path:{},gap_policy:Ci,script:""},bucket_sort:{__template:{sort:[]},sort:["{field}"],from:0,size:0,gap_policy:Ci},matrix_stats:{__template:{fields:[]},fields:["{field}"]}}},{terms:bD,histogram:wD,date_histogram:xD}=op["*"],SD=e=>{e.addGlobalAutocompleteRules("aggregations",op),e.addGlobalAutocompleteRules("aggs",op),e.addGlobalAutocompleteRules("groupByAggs",{"*":{terms:bD,histogram:wD,date_histogram:xD}})},CD=e=>{const t={filter:{},routing:"1",search_routing:"1,2",index_routing:"1"};e.addGlobalAutocompleteRules("aliases",{"*":t})},ED=e=>{e.addEndpointDescription("update",{data_autocomplete_rules:{script:{},doc:{},upsert:{},scripted_upsert:{__one_of:[!0,!1]}}}),e.addEndpointDescription("put_script",{methods:["POST","PUT"],patterns:["_scripts/{lang}/{id}","_scripts/{lang}/{id}/_create"],url_components:{lang:["groovy","expressions"]},data_autocomplete_rules:{script:""}}),e.addEndpointDescription("termvectors",{data_autocomplete_rules:{fields:["{field}"],offsets:{__one_of:[!1,!0]},payloads:{__one_of:[!1,!0]},positions:{__one_of:[!1,!0]},term_statistics:{__one_of:[!0,!1]},field_statistics:{__one_of:[!1,!0]},per_field_analyzer:{__template:{FIELD:""},"{field}":""},routing:"",version:1,version_type:["external","external_gt","external_gte","force","internal"],doc:{},filter:{max_num_terms:1,min_term_freq:1,max_term_freq:1,min_doc_freq:1,max_doc_freq:1,min_word_length:1,max_word_length:1}}})},It={};It.and={__template:{filters:[{}]},filters:[{__scope_link:"."}]},It.bool={__scope_link:"GLOBAL.query"},It.exists={__template:{field:"FIELD_NAME"},field:"{field}"},It.ids={__template:{values:["ID"]},type:"{type}",values:[""]},It.limit={__template:{value:100},value:100},It.geo_bounding_box={__template:{FIELD:{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.717,lon:-73.99}}},"{field}":{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.73,lon:-74.1}},type:{__one_of:["memory","indexed"]}},It.geo_distance={__template:{distance:100,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},distance:100,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},optimize_bbox:{__one_of:["memory","indexed","none"]},"{field}":{lat:40.73,lon:-74.1}},It.geo_distance_range={__template:{from:100,to:200,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},from:100,to:200,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},include_lower:{__one_of:[!0,!1]},include_upper:{__one_of:[!0,!1]},"{field}":{lat:40.73,lon:-74.1}},It.geo_polygon={__template:{FIELD:{points:[{lat:40.73,lon:-74.1},{lat:40.83,lon:-75.1}]}},"{field}":{points:[{lat:40.73,lon:-74.1}]}},It.geo_shape={__template:{FIELD:{shape:{type:"envelope",coordinates:[[-45,45],[45,-45]]},relation:"within"}},"{field}":{shape:{type:"",coordinates:[]},indexed_shape:{id:"",index:"{index}",type:"{type}",shape_field_name:"shape"},relation:{__one_of:["within","intersects","disjoint"]}}},It.has_child={__template:{type:"TYPE",filter:{}},type:"{type}",query:{},filter:{},_scope:"",min_children:1,max_children:10},It.has_parent={__template:{parent_type:"TYPE",filter:{}},parent_type:"{type}",query:{},filter:{},_scope:""},It.m=It.missing={__template:{field:"FIELD"},existence:{__one_of:[!0,!1]},null_value:{__one_of:[!0,!1]},field:"{field}"},It.not={__template:{filter:{}},filter:{}},It.range={__template:{FIELD:{gte:10,lte:20}},"{field}":{gte:1,gt:1,lte:20,lt:20,time_zone:"+01:00",format:"dd/MM/yyyy||yyyy",execution:{__one_of:["index","fielddata"]}}},It.or={__template:{filters:[{}]},filters:[{__scope_link:"."}]},It.prefix={__template:{FIELD:"VALUE"},"{field}":""},It.query={},It.script={__template:{script:{}},script:{}},It.term={__template:{FIELD:"VALUE"},"{field}":""},It.terms={__template:{FIELD:["VALUE1","VALUE2"]},field:["{field}"],execution:{__one_of:["plain","bool","and","or","bool_nocache","and_nocache","or_nocache"]}},It.nested={__template:{path:"path_to_nested_doc",query:{}},query:{},path:"",_name:""};const OD=e=>{e.addGlobalAutocompleteRules("filter",It)},hw={boundary_chars:{},boundary_max_scan:20,boundary_scanner:{__one_of:["chars","sentence","word"]},boundary_scanner_locale:{},encoder:{__one_of:["default","html"]},force_source:{__one_of:["false","true"]},fragmenter:{__one_of:["simple","span"]},highlight_query:{__scope_link:"GLOBAL.query"},matched_fields:["FIELD"],order:{},no_match_size:0,number_of_fragments:5,phrase_limit:256,pre_tags:{},post_tags:{},require_field_match:{__one_of:["true","false"]},tags_schema:{}},$D=e=>{e.addGlobalAutocompleteRules("highlight",{...hw,fields:{"{field}":{fragment_size:20,...hw}}}),e.addGlobalAutocompleteRules("script",{__template:{source:"SCRIPT"},source:"SCRIPT",file:"FILE_SCRIPT_NAME",id:"SCRIPT_ID",lang:"",params:{}})},ht={on_failure:[],ignore_failure:{__one_of:[!1,!0]},if:"",tag:""},TD={append:{__template:{field:"",value:[]},field:"",value:[],...ht}},PD={bytes:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},RD={circle:{__template:{field:"",error_distance:"",shape_type:""},field:"",target_field:"",error_distance:"",shape_type:{__one_of:["geo_shape","shape"]},ignore_missing:{__one_of:[!1,!0]},...ht}},jD={csv:{__template:{field:"",target_fields:[""]},field:"",target_fields:[""],separator:"",quote:"",empty_value:"",trim:{__one_of:[!0,!1]},ignore_missing:{__one_of:[!1,!0]},...ht}},MD={convert:{__template:{field:"",type:""},field:"",type:{__one_of:["integer","float","string","boolean","auto"]},target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},ID={date:{__template:{field:"",formats:[]},field:"",target_field:"@timestamp",formats:[],timezone:"UTC",locale:"ENGLISH",...ht}},AD={date_index_name:{__template:{field:"",date_rounding:""},field:"",date_rounding:{__one_of:["y","M","w","d","h","m","s"]},date_formats:[],timezone:"UTC",locale:"ENGLISH",index_name_format:"yyyy-MM-dd",...ht}},ND={dissect:{__template:{field:"",pattern:""},field:"",pattern:"",append_separator:"",ignore_missing:{__one_of:[!1,!0]},...ht}},kD={dot_expander:{__template:{field:""},field:"",path:"",...ht}},LD={drop:{__template:{},...ht}},FD={fail:{__template:{message:""},message:"",...ht}},DD={foreach:{__template:{field:"",processor:{}},field:"",processor:{__scope_link:"_processor"},...ht}},BD={geoip:{__template:{field:""},field:"",target_field:"",database_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]},first_only:{__one_of:[!1,!0]}}},zD={grok:{__template:{field:"",patterns:[]},field:"",patterns:[],pattern_definitions:{},trace_match:{__one_of:[!1,!0]},ignore_missing:{__one_of:[!1,!0]},...ht}},qD={gsub:{__template:{field:"",pattern:"",replacement:""},field:"",pattern:"",replacement:"",...ht}},VD={html_strip:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},HD={inference:{__template:{model_id:"",field_map:{},inference_config:{}},model_id:"",field_map:{},inference_config:{},target_field:"",...ht}},WD={join:{__template:{field:"",separator:""},field:"",separator:"",...ht}},UD={json:{__template:{field:""},field:"",target_field:"",add_to_root:{__one_of:[!1,!0]},...ht}},GD={kv:{__template:{field:"",field_split:"",value_split:""},field:"",field_split:"",value_split:"",target_field:"",include_keys:[],ignore_missing:{__one_of:[!1,!0]},...ht}},KD={lowercase:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},XD={pipeline:{__template:{name:""},name:"",...ht}},YD={remove:{__template:{field:""},field:"",...ht}},JD={rename:{__template:{field:"",target_field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},QD={script:{__template:{},lang:"painless",file:"",id:"",source:"",params:{},...ht}},ZD={set:{__template:{field:"",value:""},field:"",value:"",override:{__one_of:[!0,!1]},...ht}},eB={set_security_user:{__template:{field:""},field:"",properties:[""],...ht}},tB={split:{__template:{field:"",separator:""},field:"",separator:"",ignore_missing:{__one_of:[!1,!0]},...ht}},nB={sort:{__template:{field:""},field:"",order:"asc",...ht}},rB={trim:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},oB={uppercase:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},iB={urldecode:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},mw={__one_of:[TD,PD,jD,RD,MD,ID,AD,ND,kD,LD,FD,DD,BD,zD,qD,VD,HD,WD,UD,GD,KD,XD,YD,JD,QD,ZD,eB,tB,nB,rB,oB,iB,{user_agent:{__template:{field:""},field:"",target_field:"",regex_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]}}}]},gw={description:"",processors:[mw],version:123},aB=e=>{e.addEndpointDescription("_processor",{data_autocomplete_rules:mw}),e.addEndpointDescription("ingest.put_pipeline",{methods:["PUT"],patterns:["_ingest/pipeline/{id}"],data_autocomplete_rules:gw}),e.addEndpointDescription("ingest.simulate",{data_autocomplete_rules:{pipeline:gw,docs:[]}})},$t=Object.freeze({__one_of:[!0,!1]}),sB=e=>{e.addEndpointDescription("put_mapping",{priority:10,data_autocomplete_rules:{__template:{properties:{FIELD:{}}},_source:{enabled:$t},_all:{enabled:$t},_field_names:{index:$t},_routing:{required:$t},_index:{enabled:$t},_parent:{__template:{type:""},type:"{type}"},_timestamp:{enabled:$t,format:"YYYY-MM-dd",default:""},dynamic_date_formats:["yyyy-MM-dd"],date_detection:$t,numeric_detection:$t,properties:{"*":{type:{__one_of:["text","keyword","float","half_float","scaled_float","double","byte","short","integer","long","date","boolean","binary","object","nested","geo_point","geo_shape"]},store:$t,index:$t,term_vector:{__one_of:["no","yes","with_offsets","with_positions","with_positions_offsets"]},boost:1,null_value:"",doc_values:$t,eager_global_ordinals:$t,norms:$t,coerce:$t,index_options:{__one_of:["docs","freqs","positions"]},analyzer:"standard",search_analyzer:"standard",include_in_all:{__one_of:[!1,!0]},ignore_above:10,position_increment_gap:0,precision_step:4,ignore_malformed:$t,scaling_factor:100,lat_lon:{__one_of:[!0,!1]},geohash:{__one_of:[!0,!1]},geohash_precision:"1m",geohash_prefix:{__one_of:[!0,!1]},validate:{__one_of:[!0,!1]},validate_lat:{__one_of:[!0,!1]},validate_lon:{__one_of:[!0,!1]},normalize:{__one_of:[!0,!1]},normalize_lat:{__one_of:[!0,!1]},normalize_lon:{__one_of:[!0,!1]},tree:{__one_of:["geohash","quadtree"]},precision:"5km",tree_levels:12,distance_error_pct:.025,orientation:"ccw",format:{__one_of:[[...["date","date_time","date_time_no_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","week_date_time_no_millis"].flatMap(function(t){return["basic_"+t,"strict_"+t]}),"date","date_hour","date_hour_minute","date_hour_minute_second","date_hour_minute_second_fraction","date_hour_minute_second_millis","date_optional_time","date_time","date_time_no_millis","hour","hour_minute","hour_minute_second","hour_minute_second_fraction","hour_minute_second_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","weekDateTimeNoMillis","weekyear","strict_weekyear","weekyear_week","strict_weekyear_week","strict_date_optional_time_nanos","weekyear_week_day","strict_weekyear_week_day","year","year_month","year_month_day","epoch_millis","epoch_second"].sort()]},fielddata:{filter:{regex:"",frequency:{min:.001,max:.1,min_segment_size:500}}},similarity:{__one_of:["default","BM25"]},properties:{__scope_link:"put_mapping.{type}.properties"},fields:{"*":{__scope_link:"put_mapping.type.properties.field"}},copy_to:{__one_of:["{field}",["{field}"]]},include_in_parent:$t,include_in_root:$t}}}})},lB=e=>{e.addEndpointDescription("put_settings",{data_autocomplete_rules:{refresh_interval:"1s",number_of_shards:1,number_of_replicas:1,"blocks.read_only":$t,"blocks.read":$t,"blocks.write":$t,"blocks.metadata":$t,term_index_interval:32,term_index_divisor:1,"translog.flush_threshold_ops":5e3,"translog.flush_threshold_size":"200mb","translog.flush_threshold_period":"30m","translog.disable_flush":$t,"cache.filter.max_size":"2gb","cache.filter.expire":"2h","gateway.snapshot_interval":"10s","translog.durability":{__one_of:["request","async"]},routing:{allocation:{include:{tag:""},exclude:{tag:""},require:{tag:""},total_shards_per_node:-1}},"recovery.initial_shards":{__one_of:["quorum","quorum-1","half","full","full-1"]},"ttl.disable_purge":$t,analysis:{analyzer:{},tokenizer:{},filter:{},char_filter:{}},"cache.query.enable":$t,shadow_replicas:$t,shared_filesystem:$t,data_path:"path",codec:{__one_of:["default","best_compression","lucene_default"]}}})},vw={FIELD:"REGEXP"},_w={FIELD:{}},yw={FIELD:{value:""}},bw={FIELD:{gte:10,lte:20}},ww={match:{span_term:{FIELD:"VALUE"}},end:3},xw={clauses:[{span_term:{FIELD:{value:"VALUE"}}}],slop:12,in_order:!1},Sw={FIELD:{value:"VALUE"}},Cw={include:{span_term:{FIELD:{value:"VALUE"}}},exclude:{span_term:{FIELD:{value:"VALUE"}}}},Ew={clauses:[{span_term:{FIELD:{value:"VALUE"}}}]},Ow={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},$w={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},Tw={FIELD:{value:"VALUE"}},Pw={cutoff_frequency:.001,query:"",operator:{__one_of:["and","or"]},zero_terms_query:{__one_of:["none","all"]},max_expansions:10,analyzer:"",boost:1,lenient:{__one_of:["true","false"]},fuzzy_transpositions:{__one_of:["true","false"]},auto_generate_synonyms_phrase_query:{__one_of:["true","false"]},fuzziness:1,prefix_length:1,minimum_should_match:1},Rw={docvalue_fields:["FIELD"],from:{},size:{},sort:{},name:{},highlight:{},_source:{__one_of:["true","false"]},explain:{__one_of:["true","false"]},script_fields:{__template:{FIELD:{script:{}}},"{field}":{script:{}}},version:{__one_of:["true","false"]}},jw={span_first:{__template:ww,__scope_link:".span_first"},span_near:{__template:xw,__scope_link:".span_near"},span_or:{__template:Ew,__scope_link:".span_or"},span_not:{__template:Cw,__scope_link:".span_not"},span_term:{__template:Sw,__scope_link:".span_term"},span_containing:{__template:Ow,__scope_link:".span_containing"},span_within:{__template:$w,__scope_link:".span_within"}},Or={...jw,field_masking_span:{__template:{query:{SPAN_QUERY:{}}},query:jw,field:""}},cB={wildcard:{__template:Tw,__scope_link:".wildcard"},fuzzy:{__template:_w,__scope_link:".fuzzy"},prefix:{__template:yw,__scope_link:".prefix"},range:{__template:bw,__scope_link:".range"},regexp:{__template:vw,__scope_link:".regexp"}},ip={__template:{FIELD:{origin:"",scale:""}},"{field}":{origin:"",scale:"",offset:"",decay:.5}},Mw={script_score:{__template:{script:"_score * doc['f'].value"},script:{}},boost_factor:2,random_score:{seed:314159265359},linear:ip,exp:ip,gauss:ip,field_value_factor:{__template:{field:""},field:"{field}",factor:1.2,modifier:{__one_of:["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]}}},uB=[SD,CD,ED,OD,$D,aB,sB,lB,e=>{e.addGlobalAutocompleteRules("query",{match:{__template:{FIELD:"TEXT"},"{field}":{type:{__one_of:["phrase","phrase_prefix","boolean"]},...Pw}},match_phrase:{__template:{FIELD:"PHRASE"},"{field}":{query:"",analyzer:"",slop:1}},match_phrase_prefix:{__template:{FIELD:"PREFIX"},"{field}":{query:"",analyzer:"",max_expansions:10,prefix_length:1,fuzziness:.1}},regexp:{__template:vw,"{field}":{value:"",flags:{__one_of:["ALL","ANYSTRING","COMPLEMENT","EMPTY","INTERSECTION","INTERVAL","NONE"]},max_determinized_states:1e4}},multi_match:{__template:{query:"",fields:[]},...Pw,fields:["{field}"],use_dis_max:{__template:!0,__one_of:[!0,!1]},tie_breaker:0,type:{__one_of:["best_fields","most_fields","cross_fields","phrase","phrase_prefix"]}},bool:{must:[{__scope_link:"."}],must_not:[{__scope_link:"."}],should:[{__scope_link:"."}],filter:[{__scope_link:"GLOBAL.filter"}],minimum_should_match:1,boost:1},boosting:{positive:{__scope_link:"."},negative:{__scope_link:"."},negative_boost:.2},ids:{type:"",values:[]},constant_score:{__template:{filter:{},boost:1.2},query:{},filter:{},boost:1.2},dis_max:{__template:{tie_breaker:.7,boost:1.2,queries:[]},tie_breaker:.7,boost:1.2,queries:[{__scope_link:"."}]},distance_feature:{__template:{field:"",origin:"",pivot:""},field:"{field}",origin:"",pivot:""},exists:{field:""},field:{"{field}":{query:"",boost:2,enable_position_increments:{__template:!1,__one_of:[!0,!1]}}},fuzzy:{__template:_w,"{field}":{value:"",boost:1,fuzziness:.5,prefix_length:0}},has_child:{__template:{type:"TYPE",query:{}},inner_hits:{...Rw},type:"{type}",score_mode:{__one_of:["none","max","sum","avg"]},_scope:"",query:{},min_children:1,max_children:10},has_parent:{__template:{parent_type:"TYPE",query:{}},parent_type:"{type}",score_mode:{__one_of:["none","score"]},_scope:"",query:{}},match_all:{boost:1},more_like_this:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},fields:["{field}"],like:"",percent_terms_to_match:.3,min_term_freq:2,max_query_terms:25,stop_words:[""],min_doc_freq:5,max_doc_freq:100,min_word_len:0,max_word_len:0,boost_terms:1,boost:1,analyzer:"",docs:[{_index:"{index}",_type:"{type}",_id:""}],ids:[""]},mlt:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},__scope_link:".more_like_this"},prefix:{__template:yw,"{field}":{value:"",boost:1}},query_string:{__template:{default_field:"FIELD",query:"this AND that OR thus"},query:"",default_field:"{field}",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",allow_leading_wildcard:{__one_of:[!0,!1]},enable_position_increments:{__one_of:[!0,!1]},fuzzy_max_expansions:50,fuzziness:.5,fuzzy_prefix_length:0,phrase_slop:0,boost:1,analyze_wildcard:{__one_of:[!1,!0]},auto_generate_phrase_queries:{__one_of:[!1,!0]},minimum_should_match:"20%",lenient:{__one_of:[!1,!0]},use_dis_max:{__one_of:[!0,!1]},tie_breaker:0,time_zone:"+01:00"},simple_query_string:{__template:{query:"",fields:[]},query:"",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",flags:"OR|AND|PREFIX",locale:"ROOT",lenient:{__one_of:[!0,!1]}},range:{__template:bw,"{field}":{__template:{gte:10,lte:20},gte:10,gt:10,lte:20,lt:20,time_zone:"+01:00",boost:1,format:"dd/MM/yyyy||yyyy"}},span_first:{__template:ww,match:Or},span_multi:{__template:{match:{MULTI_TERM_QUERY:{}}},match:cB},span_near:{__template:xw,clauses:[Or],slop:12,in_order:{__one_of:[!1,!0]},collect_payloads:{__one_of:[!1,!0]}},span_term:{__template:Sw,"{field}":{value:"",boost:2}},span_not:{__template:Cw,include:Or,exclude:Or},span_or:{__template:Ew,clauses:[Or]},span_containing:{__template:Ow,little:Or,big:Or},span_within:{__template:$w,little:Or,big:Or},term:{__template:{FIELD:{value:"VALUE"}},"{field}":{value:"",boost:2}},terms:{__template:{FIELD:["VALUE1","VALUE2"]},"{field}":[""]},wildcard:{__template:Tw,"{field}":{value:"",boost:2}},nested:{__template:{path:"path_to_nested_doc",query:{}},inner_hits:{...Rw},path:"",query:{},score_mode:{__one_of:["avg","total","max","none"]}},percolate:{__template:{field:"",document:{}},field:"",document:{},name:"",documents:[{}],document_type:"",index:"",type:"",id:"",routing:"",preference:""},common:{__template:{FIELD:{query:{}}},"{field}":{query:{},cutoff_frequency:.001,minimum_should_match:{low_freq:{},high_freq:{}}}},custom_filters_score:{__template:{query:{},filters:[{filter:{}}]},query:{},filters:[{filter:{},boost:2,script:{}}],score_mode:{__one_of:["first","min","max","total","avg","multiply"]},max_boost:2,params:{},lang:""},indices:{__template:{indices:["INDEX1","INDEX2"],query:{}},indices:["{index}"],query:{},no_match_query:{__scope_link:"."}},geo_shape:{__template:{location:{},relation:"within"},__scope_link:".filter.geo_shape"},function_score:ye.defaults({__template:{query:{},functions:[{}]},query:{},functions:[ye.defaults({filter:{},weight:1},Mw)],boost:1,boost_mode:{__one_of:["multiply","replace","sum","avg","max","min"]},score_mode:{__one_of:["multiply","sum","first","avg","max","min"]},max_boost:10,min_score:1},Mw),script:{__template:{script:"_score * doc['f'].value"},script:{}},wrapper:{__template:{query:"QUERY_BASE64_ENCODED"},query:""}})},e=>{e.addEndpointDescription("reindex",{methods:["POST"],patterns:["_reindex"],data_autocomplete_rules:{__template:{source:{},dest:{}},source:{index:"",type:"",query:{__scope_link:"GLOBAL.query"},sort:{__template:{FIELD:"desc"},FIELD:{__one_of:["asc","desc"]}},size:1e3,remote:{__template:{host:""},host:"",username:"",password:"",socket_timeout:"30s",connect_timeout:"30s"}},dest:{index:"",version_type:{__one_of:["internal","external"]},op_type:"create",routing:{__one_of:["keep","discard","=SOME TEXT"]},pipeline:""},conflicts:"proceed",size:10,script:{__scope_link:"GLOBAL.script"}}})},e=>{e.addEndpointDescription("search",{priority:10,data_autocomplete_rules:{query:{},profile:{__one_of:["true","false"]},aggs:{__template:{NAME:{AGG_TYPE:{}}}},post_filter:{__scope_link:"GLOBAL.filter"},size:{__template:20},from:0,sort:{__template:[{FIELD:{order:"desc"}}],__any_of:[{"{field}":{order:{__one_of:["desc","asc"]},missing:{__one_of:["_last","_first"]},mode:{__one_of:["min","max","avg","sum"]},nested_path:"",nested_filter:{__scope_link:"GLOBAL.filter"}}},"{field}","_score",{_geo_distance:{__template:{FIELD:{lat:40,lon:-70},order:"asc"},"{field}":{__one_of:[{__template:{lat:40,lon:-70},lat:40,lon:-70},[{__template:{lat:40,lon:-70},lat:40,lon:-70}],[""],""]},distance_type:{__one_of:["sloppy_arc","arc","plane"]},sort_mode:{__one_of:["min","max","avg"]},order:{__one_of:["asc","desc"]},unit:"km"}}]},stored_fields:["{field}"],suggest:{__template:{YOUR_SUGGESTION:{text:"YOUR TEXT",term:{FIELD:"MESSAGE"}}},"*":{include:[],exclude:[]}},docvalue_fields:["{field}"],collapse:{__template:{field:"FIELD"}},indices_boost:{__template:[{INDEX:1}]},rescore:{__template:{query:{},window_size:50}},script_fields:{__template:{FIELD:{script:{}}},"*":{__scope_link:"GLOBAL.script"}},partial_fields:{__template:{NAME:{include:[]}},"*":{include:[],exclude:[]}},highlight:{},_source:{__one_of:["{field}",["{field}"],{includes:{__one_of:["{field}",["{field}"]]},excludes:{__one_of:["{field}",["{field}"]]}}]},explain:{__one_of:[!0,!1]},stats:[""],timeout:"1s",version:{__one_of:[!0,!1]},track_total_hits:{__one_of:[!0,!1]}}}),e.addEndpointDescription("search_template",{data_autocomplete_rules:{template:{__one_of:[{__scope_link:"search"},{__scope_link:"GLOBAL.script"}]},params:{}}}),e.addEndpointDescription("render_search_template",{data_autocomplete_rules:{__one_of:[{source:{__scope_link:"search"}},{__scope_link:"GLOBAL.script"}],params:{}}}),e.addEndpointDescription("_search/template/{id}",{data_autocomplete_rules:{template:{__scope_link:"search"}}})}];class dB{constructor(){this.name="es",this.globalRules={},this.endpoints={},this.extensionSpecFilePaths=[],this.hasLoadedSpec=!1}addGlobalAutocompleteRules(t,n){this.globalRules[t]=n}addEndpointDescription(t,n={}){let r={};this.endpoints[t]&&(r={...this.endpoints[t]});let o;ye.each(n.patterns||[],function(i){i.indexOf("{indices}")>=0&&(o=o||{},o.ignore_unavailable="__flag__",o.allow_no_indices="__flag__",o.expand_wildcards=["open","closed"])}),o&&(n.url_params=ye.assign(n.url_params||{},r.url_params),ye.defaults(n.url_params,o)),ye.assign(r,n),ye.defaults(r,{id:t,patterns:[t],methods:["GET"]}),this.endpoints[t]=r}asJson(){return{name:this.name,globals:this.globalRules,endpoints:this.endpoints}}addExtensionSpecFilePath(t){this.extensionSpecFilePaths.push(t)}addProcessorDefinition(t){if(!this.hasLoadedSpec)throw new Error("Cannot add a processor definition because spec definitions have not loaded!");this.endpoints._processor.data_autocomplete_rules.__one_of.push(t)}setup(){return{addExtensionSpecFilePath:this.addExtensionSpecFilePath.bind(this)}}start(){if(this.hasLoadedSpec)throw new Error("Service has already started!");return this.loadJsonSpec(),this.loadJSSpec(),this.hasLoadedSpec=!0,{addProcessorDefinition:this.addProcessorDefinition.bind(this)}}async loadJSONSpecInDir(){const t=Object.assign({"../lib/spec_definitions/json/generated/_common.json":()=>Promise.resolve().then(()=>w4),"../lib/spec_definitions/json/generated/bulk.json":()=>Promise.resolve().then(()=>x4),"../lib/spec_definitions/json/generated/cat.aliases.json":()=>Promise.resolve().then(()=>S4),"../lib/spec_definitions/json/generated/cat.allocation.json":()=>Promise.resolve().then(()=>C4),"../lib/spec_definitions/json/generated/cat.count.json":()=>Promise.resolve().then(()=>E4),"../lib/spec_definitions/json/generated/cat.fielddata.json":()=>Promise.resolve().then(()=>O4),"../lib/spec_definitions/json/generated/cat.health.json":()=>Promise.resolve().then(()=>$4),"../lib/spec_definitions/json/generated/cat.help.json":()=>Promise.resolve().then(()=>T4),"../lib/spec_definitions/json/generated/cat.indices.json":()=>Promise.resolve().then(()=>P4),"../lib/spec_definitions/json/generated/cat.master.json":()=>Promise.resolve().then(()=>R4),"../lib/spec_definitions/json/generated/cat.nodeattrs.json":()=>Promise.resolve().then(()=>j4),"../lib/spec_definitions/json/generated/cat.nodes.json":()=>Promise.resolve().then(()=>M4),"../lib/spec_definitions/json/generated/cat.pending_tasks.json":()=>Promise.resolve().then(()=>I4),"../lib/spec_definitions/json/generated/cat.plugins.json":()=>Promise.resolve().then(()=>A4),"../lib/spec_definitions/json/generated/cat.recovery.json":()=>Promise.resolve().then(()=>N4),"../lib/spec_definitions/json/generated/cat.repositories.json":()=>Promise.resolve().then(()=>k4),"../lib/spec_definitions/json/generated/cat.segments.json":()=>Promise.resolve().then(()=>L4),"../lib/spec_definitions/json/generated/cat.shards.json":()=>Promise.resolve().then(()=>F4),"../lib/spec_definitions/json/generated/cat.snapshots.json":()=>Promise.resolve().then(()=>D4),"../lib/spec_definitions/json/generated/cat.tasks.json":()=>Promise.resolve().then(()=>B4),"../lib/spec_definitions/json/generated/cat.templates.json":()=>Promise.resolve().then(()=>z4),"../lib/spec_definitions/json/generated/cat.thread_pool.json":()=>Promise.resolve().then(()=>q4),"../lib/spec_definitions/json/generated/clear_scroll.json":()=>Promise.resolve().then(()=>V4),"../lib/spec_definitions/json/generated/cluster.allocation_explain.json":()=>Promise.resolve().then(()=>H4),"../lib/spec_definitions/json/generated/cluster.delete_component_template.json":()=>Promise.resolve().then(()=>W4),"../lib/spec_definitions/json/generated/cluster.get_component_template.json":()=>Promise.resolve().then(()=>U4),"../lib/spec_definitions/json/generated/cluster.get_settings.json":()=>Promise.resolve().then(()=>G4),"../lib/spec_definitions/json/generated/cluster.health.json":()=>Promise.resolve().then(()=>K4),"../lib/spec_definitions/json/generated/cluster.pending_tasks.json":()=>Promise.resolve().then(()=>X4),"../lib/spec_definitions/json/generated/cluster.put_component_template.json":()=>Promise.resolve().then(()=>Y4),"../lib/spec_definitions/json/generated/cluster.put_settings.json":()=>Promise.resolve().then(()=>J4),"../lib/spec_definitions/json/generated/cluster.remote_info.json":()=>Promise.resolve().then(()=>Q4),"../lib/spec_definitions/json/generated/cluster.reroute.json":()=>Promise.resolve().then(()=>Z4),"../lib/spec_definitions/json/generated/cluster.state.json":()=>Promise.resolve().then(()=>e3),"../lib/spec_definitions/json/generated/cluster.stats.json":()=>Promise.resolve().then(()=>t3),"../lib/spec_definitions/json/generated/count.json":()=>Promise.resolve().then(()=>n3),"../lib/spec_definitions/json/generated/create.json":()=>Promise.resolve().then(()=>r3),"../lib/spec_definitions/json/generated/delete.json":()=>Promise.resolve().then(()=>o3),"../lib/spec_definitions/json/generated/delete_by_query.json":()=>Promise.resolve().then(()=>i3),"../lib/spec_definitions/json/generated/delete_by_query_rethrottle.json":()=>Promise.resolve().then(()=>a3),"../lib/spec_definitions/json/generated/delete_script.json":()=>Promise.resolve().then(()=>s3),"../lib/spec_definitions/json/generated/exists.json":()=>Promise.resolve().then(()=>l3),"../lib/spec_definitions/json/generated/exists_source.json":()=>Promise.resolve().then(()=>c3),"../lib/spec_definitions/json/generated/explain.json":()=>Promise.resolve().then(()=>u3),"../lib/spec_definitions/json/generated/field_caps.json":()=>Promise.resolve().then(()=>d3),"../lib/spec_definitions/json/generated/get.json":()=>Promise.resolve().then(()=>f3),"../lib/spec_definitions/json/generated/get_script.json":()=>Promise.resolve().then(()=>p3),"../lib/spec_definitions/json/generated/get_script_context.json":()=>Promise.resolve().then(()=>h3),"../lib/spec_definitions/json/generated/get_script_languages.json":()=>Promise.resolve().then(()=>m3),"../lib/spec_definitions/json/generated/get_source.json":()=>Promise.resolve().then(()=>g3),"../lib/spec_definitions/json/generated/index.json":()=>Promise.resolve().then(()=>v3),"../lib/spec_definitions/json/generated/indices.analyze.json":()=>Promise.resolve().then(()=>_3),"../lib/spec_definitions/json/generated/indices.clear_cache.json":()=>Promise.resolve().then(()=>y3),"../lib/spec_definitions/json/generated/indices.clone.json":()=>Promise.resolve().then(()=>b3),"../lib/spec_definitions/json/generated/indices.close.json":()=>Promise.resolve().then(()=>w3),"../lib/spec_definitions/json/generated/indices.create.json":()=>Promise.resolve().then(()=>x3),"../lib/spec_definitions/json/generated/indices.delete.json":()=>Promise.resolve().then(()=>S3),"../lib/spec_definitions/json/generated/indices.delete_alias.json":()=>Promise.resolve().then(()=>C3),"../lib/spec_definitions/json/generated/indices.delete_template.json":()=>Promise.resolve().then(()=>E3),"../lib/spec_definitions/json/generated/indices.exists.json":()=>Promise.resolve().then(()=>O3),"../lib/spec_definitions/json/generated/indices.exists_alias.json":()=>Promise.resolve().then(()=>$3),"../lib/spec_definitions/json/generated/indices.exists_template.json":()=>Promise.resolve().then(()=>T3),"../lib/spec_definitions/json/generated/indices.exists_type.json":()=>Promise.resolve().then(()=>P3),"../lib/spec_definitions/json/generated/indices.flush.json":()=>Promise.resolve().then(()=>R3),"../lib/spec_definitions/json/generated/indices.flush_synced.json":()=>Promise.resolve().then(()=>j3),"../lib/spec_definitions/json/generated/indices.forcemerge.json":()=>Promise.resolve().then(()=>M3),"../lib/spec_definitions/json/generated/indices.get.json":()=>Promise.resolve().then(()=>I3),"../lib/spec_definitions/json/generated/indices.get_alias.json":()=>Promise.resolve().then(()=>A3),"../lib/spec_definitions/json/generated/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>N3),"../lib/spec_definitions/json/generated/indices.get_mapping.json":()=>Promise.resolve().then(()=>k3),"../lib/spec_definitions/json/generated/indices.get_settings.json":()=>Promise.resolve().then(()=>L3),"../lib/spec_definitions/json/generated/indices.get_template.json":()=>Promise.resolve().then(()=>F3),"../lib/spec_definitions/json/generated/indices.get_upgrade.json":()=>Promise.resolve().then(()=>D3),"../lib/spec_definitions/json/generated/indices.open.json":()=>Promise.resolve().then(()=>B3),"../lib/spec_definitions/json/generated/indices.put_alias.json":()=>Promise.resolve().then(()=>z3),"../lib/spec_definitions/json/generated/indices.put_mapping.json":()=>Promise.resolve().then(()=>q3),"../lib/spec_definitions/json/generated/indices.put_settings.json":()=>Promise.resolve().then(()=>V3),"../lib/spec_definitions/json/generated/indices.put_template.json":()=>Promise.resolve().then(()=>H3),"../lib/spec_definitions/json/generated/indices.recovery.json":()=>Promise.resolve().then(()=>W3),"../lib/spec_definitions/json/generated/indices.refresh.json":()=>Promise.resolve().then(()=>U3),"../lib/spec_definitions/json/generated/indices.rollover.json":()=>Promise.resolve().then(()=>G3),"../lib/spec_definitions/json/generated/indices.segments.json":()=>Promise.resolve().then(()=>K3),"../lib/spec_definitions/json/generated/indices.shard_stores.json":()=>Promise.resolve().then(()=>X3),"../lib/spec_definitions/json/generated/indices.shrink.json":()=>Promise.resolve().then(()=>Y3),"../lib/spec_definitions/json/generated/indices.split.json":()=>Promise.resolve().then(()=>J3),"../lib/spec_definitions/json/generated/indices.stats.json":()=>Promise.resolve().then(()=>Q3),"../lib/spec_definitions/json/generated/indices.update_aliases.json":()=>Promise.resolve().then(()=>Z3),"../lib/spec_definitions/json/generated/indices.upgrade.json":()=>Promise.resolve().then(()=>e6),"../lib/spec_definitions/json/generated/indices.validate_query.json":()=>Promise.resolve().then(()=>t6),"../lib/spec_definitions/json/generated/info.json":()=>Promise.resolve().then(()=>n6),"../lib/spec_definitions/json/generated/ingest.delete_pipeline.json":()=>Promise.resolve().then(()=>r6),"../lib/spec_definitions/json/generated/ingest.get_pipeline.json":()=>Promise.resolve().then(()=>o6),"../lib/spec_definitions/json/generated/ingest.processor_grok.json":()=>Promise.resolve().then(()=>i6),"../lib/spec_definitions/json/generated/ingest.put_pipeline.json":()=>Promise.resolve().then(()=>a6),"../lib/spec_definitions/json/generated/ingest.simulate.json":()=>Promise.resolve().then(()=>s6),"../lib/spec_definitions/json/generated/mget.json":()=>Promise.resolve().then(()=>l6),"../lib/spec_definitions/json/generated/msearch.json":()=>Promise.resolve().then(()=>c6),"../lib/spec_definitions/json/generated/msearch_template.json":()=>Promise.resolve().then(()=>u6),"../lib/spec_definitions/json/generated/mtermvectors.json":()=>Promise.resolve().then(()=>d6),"../lib/spec_definitions/json/generated/nodes.hot_threads.json":()=>Promise.resolve().then(()=>f6),"../lib/spec_definitions/json/generated/nodes.info.json":()=>Promise.resolve().then(()=>p6),"../lib/spec_definitions/json/generated/nodes.reload_secure_settings.json":()=>Promise.resolve().then(()=>h6),"../lib/spec_definitions/json/generated/nodes.stats.json":()=>Promise.resolve().then(()=>m6),"../lib/spec_definitions/json/generated/nodes.usage.json":()=>Promise.resolve().then(()=>g6),"../lib/spec_definitions/json/generated/ping.json":()=>Promise.resolve().then(()=>v6),"../lib/spec_definitions/json/generated/put_script.json":()=>Promise.resolve().then(()=>_6),"../lib/spec_definitions/json/generated/rank_eval.json":()=>Promise.resolve().then(()=>y6),"../lib/spec_definitions/json/generated/reindex.json":()=>Promise.resolve().then(()=>b6),"../lib/spec_definitions/json/generated/reindex_rethrottle.json":()=>Promise.resolve().then(()=>w6),"../lib/spec_definitions/json/generated/render_search_template.json":()=>Promise.resolve().then(()=>x6),"../lib/spec_definitions/json/generated/scripts_painless_execute.json":()=>Promise.resolve().then(()=>S6),"../lib/spec_definitions/json/generated/scroll.json":()=>Promise.resolve().then(()=>C6),"../lib/spec_definitions/json/generated/search.json":()=>Promise.resolve().then(()=>E6),"../lib/spec_definitions/json/generated/search_shards.json":()=>Promise.resolve().then(()=>O6),"../lib/spec_definitions/json/generated/search_template.json":()=>Promise.resolve().then(()=>$6),"../lib/spec_definitions/json/generated/snapshot.cleanup_repository.json":()=>Promise.resolve().then(()=>T6),"../lib/spec_definitions/json/generated/snapshot.create.json":()=>Promise.resolve().then(()=>P6),"../lib/spec_definitions/json/generated/snapshot.create_repository.json":()=>Promise.resolve().then(()=>R6),"../lib/spec_definitions/json/generated/snapshot.delete.json":()=>Promise.resolve().then(()=>j6),"../lib/spec_definitions/json/generated/snapshot.delete_repository.json":()=>Promise.resolve().then(()=>M6),"../lib/spec_definitions/json/generated/snapshot.get.json":()=>Promise.resolve().then(()=>I6),"../lib/spec_definitions/json/generated/snapshot.get_repository.json":()=>Promise.resolve().then(()=>A6),"../lib/spec_definitions/json/generated/snapshot.restore.json":()=>Promise.resolve().then(()=>N6),"../lib/spec_definitions/json/generated/snapshot.status.json":()=>Promise.resolve().then(()=>k6),"../lib/spec_definitions/json/generated/snapshot.verify_repository.json":()=>Promise.resolve().then(()=>L6),"../lib/spec_definitions/json/generated/tasks.cancel.json":()=>Promise.resolve().then(()=>F6),"../lib/spec_definitions/json/generated/tasks.get.json":()=>Promise.resolve().then(()=>D6),"../lib/spec_definitions/json/generated/tasks.list.json":()=>Promise.resolve().then(()=>B6),"../lib/spec_definitions/json/generated/termvectors.json":()=>Promise.resolve().then(()=>z6),"../lib/spec_definitions/json/generated/update.json":()=>Promise.resolve().then(()=>q6),"../lib/spec_definitions/json/generated/update_by_query.json":()=>Promise.resolve().then(()=>V6),"../lib/spec_definitions/json/generated/update_by_query_rethrottle.json":()=>Promise.resolve().then(()=>H6)}),n=await this.loadAllSpecFromModules(t),r=Object.assign({"../lib/spec_definitions/json/overrides/clear_scroll.json":()=>Promise.resolve().then(()=>W6),"../lib/spec_definitions/json/overrides/cluster.health.json":()=>Promise.resolve().then(()=>U6),"../lib/spec_definitions/json/overrides/cluster.put_component_template.json":()=>Promise.resolve().then(()=>G6),"../lib/spec_definitions/json/overrides/cluster.put_settings.json":()=>Promise.resolve().then(()=>K6),"../lib/spec_definitions/json/overrides/cluster.reroute.json":()=>Promise.resolve().then(()=>X6),"../lib/spec_definitions/json/overrides/count.json":()=>Promise.resolve().then(()=>Y6),"../lib/spec_definitions/json/overrides/indices.analyze.json":()=>Promise.resolve().then(()=>J6),"../lib/spec_definitions/json/overrides/indices.clone.json":()=>Promise.resolve().then(()=>Q6),"../lib/spec_definitions/json/overrides/indices.create.json":()=>Promise.resolve().then(()=>Z6),"../lib/spec_definitions/json/overrides/indices.delete_template.json":()=>Promise.resolve().then(()=>e8),"../lib/spec_definitions/json/overrides/indices.exists_template.json":()=>Promise.resolve().then(()=>t8),"../lib/spec_definitions/json/overrides/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>n8),"../lib/spec_definitions/json/overrides/indices.get_mapping.json":()=>Promise.resolve().then(()=>r8),"../lib/spec_definitions/json/overrides/indices.get_template.json":()=>Promise.resolve().then(()=>o8),"../lib/spec_definitions/json/overrides/indices.put_alias.json":()=>Promise.resolve().then(()=>i8),"../lib/spec_definitions/json/overrides/indices.put_settings.json":()=>Promise.resolve().then(()=>a8),"../lib/spec_definitions/json/overrides/indices.put_template.json":()=>Promise.resolve().then(()=>s8),"../lib/spec_definitions/json/overrides/indices.rollover.json":()=>Promise.resolve().then(()=>l8),"../lib/spec_definitions/json/overrides/indices.update_aliases.json":()=>Promise.resolve().then(()=>c8),"../lib/spec_definitions/json/overrides/indices.validate_query.json":()=>Promise.resolve().then(()=>u8),"../lib/spec_definitions/json/overrides/snapshot.create.json":()=>Promise.resolve().then(()=>d8),"../lib/spec_definitions/json/overrides/snapshot.create_repository.json":()=>Promise.resolve().then(()=>f8),"../lib/spec_definitions/json/overrides/snapshot.restore.json":()=>Promise.resolve().then(()=>p8),"../lib/spec_definitions/json/overrides/update_by_query.json":()=>Promise.resolve().then(()=>h8)}),o=await this.loadAllSpecFromModules(r);return ye.merge(n,o)}async loadAllSpecFromModules(t){const n=Object.keys(t).map(async o=>(await t[o]()).default);return(await Promise.all(n)).reduce((o,i)=>ye.merge(o,i),{})}loadJsonSpec(){const t=this.loadJSONSpecInDir();Object.keys(t).forEach(n=>{this.addEndpointDescription(n,t[n])})}loadJSSpec(){uB.forEach(t=>t(this))}}class fB extends Eo{constructor(t,n,r){super(t,n),this.description=r}getTerms(){const t={name:this.name};return this.description==="__flag__"?t.meta="flag":(t.meta="param",t.insertValue=this.name+"="),[t]}}class pB{constructor(t,n){this.rootComponent=new $n("ROOT"),ye.isUndefined(n)&&(n={pretty:"__flag__",format:["json","yaml"],filter_path:""}),t=ye.clone(t||{}),ye.defaults(t,n),ye.each(t,(r,o)=>{const i=new fB(o,this.rootComponent,r);Array.isArray(r)?new kn(o,r,i):r==="__flag__"&&new kn(o,["true","false"],i)})}getTopLevelComponents(){return this.rootComponent.next}}function hB(e,t){const n=e.getTerms;return e.getTerms=function(r,o){let i=n.call(e,r,o);return i&&(i=ye.map(i,a=>(ye.isObject(a)||(a={name:a}),ye.defaults(a,t))),i)},e}function Iw(e,t){function n(){}n.prototype=e;const r=new n;return t&&(t.unshift(r),ye.assign.apply(ye,t),t.shift()),r}function Bl(e,t,n,r,o){this.parentName=e,this.components=t,this.contextExtensionList=n,this.depth=r||0,this.priority=o}function ap(e,t,n,r){if(!e||e.length===0)return t;const o=e[0],i=[];return ye.each(t,function(a){const l=Iw(n,a.contextExtensionList);ye.each(a.components,function(s){const c=s.match(o,l,r);if(c&&!ye.isEmpty(c)){let u,f;c.next&&!Array.isArray(c.next)?u=[c.next]:u=c.next,c.context_values?(f=[],[].push.apply(f,a.contextExtensionList),f.push(c.context_values)):f=a.contextExtensionList;let d=a.priority;ye.isNumber(c.priority)&&(ye.isNumber(d)?d=Math.min(d,c.priority):d=c.priority),i.push(new Bl(s.name,u,f,a.depth+1,d))}})}),i.length===0?ye.map(t,function(a){return new Bl(a.name,[],a.contextExtensionList)}):ap(e.slice(1),i,n,r)}function Ei(e,t,n,r,o){let i=ap(e,[new Bl("ROOT",o,[])],t,n);if(r){let a=[];ye.each(i,function(l){const s=Iw(t,l.contextExtensionList);ye.each(l.components,function(c){ye.each(c.getTerms(s,n),function(u){ye.isObject(u)||(u={name:u}),a.push(u)})})}),a=ye.uniq(a),t.autoCompleteSet=a}if(i.length!==0){let a;i=ye.sortBy(i,function(l){return ye.isNumber(l.priority)?l.priority:Number.MAX_VALUE}),a=ye.find(i,function(l){return ye.isEmpty(l.components)}),!a&&i.length>1&&!r&&console.info("more then one context active for current path, but autocomplete isn't requested",i),a||(a=i[0]),ye.each(a.contextExtensionList,function(l){ye.assign(t,l)})}}function mB(e,t){this.parametrizedComponentFactories=t,this.endpointId=e}function gB(e,t,n,r){const o=ap(e,[new Bl("ROOT",r,[])],t,n);return[].concat.apply([],ye.map(o,"components"))}class vB extends $n{constructor(t,n){super("__scope_link"),ye.isString(t)&&t[0]==="."&&(t==="."?t=n.endpointId:t=n.endpointId+t),this.link=t,this.compilingContext=n}resolveLinkToComponents(t,n){if(ye.isFunction(this.link)){const a=this.link(t,n);return ka(a,this.compilingContext)}if(!ye.isString(this.link))throw new Error("unsupported link format",this.link);let r=this.link.replace(/\./g,"{").split(/(\{)/);const o=r[0];let i;try{if(o==="GLOBAL"){if(r.length<3)throw new Error("missing term in global link: "+this.link);const a=r[2];i=t.globalComponentResolver(a),r=r.slice(3)}else r=r.slice(1),i=t.endpointComponentResolver(o)}catch(a){throw new Error("failed to resolve link ["+this.link+"]: "+a)}return gB(r,t,n,i)}getTerms(t,n){const r=[],o=this.resolveLinkToComponents(t,n);return ye.each(o,function(i){r.push.apply(r,i.getTerms(t,n))}),r}match(t,n,r){const o={next:[]},i=this.resolveLinkToComponents(n,r);return ye.each(i,function(a){const l=a.match(t,n,r);l&&l.next&&o.next.push.apply(o.next,l.next)}),o}}function sp(e){if(e.__template)return e.__raw&&ye.isString(e.__template)?{__raw:!0,value:e.__template}:e.__template;if(e.__one_of)return sp(e.__one_of[0]);if(e.__any_of)return[];if(e.__scope_link)return{};if(Array.isArray(e)){if(e.length===1&&ye.isObject(e[0])){const t=sp(e[0]);return t!=null?[t]:[]}return[]}else return ye.isObject(e)?{}:(ye.isString(e)&&!/^\{.*\}$/.test(e),e)}function _B(e){const t={},n=sp(e);return ye.isUndefined(n)||(t.template=n),t}function ka(e,t){if(Array.isArray(e))return[Nw(e,t)];if(ye.isObject(e)){if(e.__scope_link)return[new vB(e.__scope_link,t)];if(e.__any_of)return[Nw(e.__any_of,t)];if(e.__one_of)return ye.flatten(ye.map(e.__one_of,function(r){return ka(r,t)}));const n=yB(e,t);return e.__condition?[bB(e.__condition,n)]:[n]}else return ye.isString(e)&&/^\{.*\}$/.test(e)?[Aw(e,t)]:[new Eo(e)]}function Aw(e,t,n){e=e.substr(1,e.length-2).toLowerCase();let r=t.parametrizedComponentFactories.getComponent(e,!0);if(!r)throw new Error("no factory found for '"+e+"'");return r=r(e,null,n),ye.isUndefined(n)||(r=hB(r,{template:n})),r}function yB(e,t){const n=new Eo("{"),r=[],o=[];return ye.each(e,function(i,a){if(a.indexOf("__")===0)return;const l=_B(i);let s;/^\{.*\}$/.test(a)?(s=Aw(a,t,l.template),o.push(s)):a==="*"?(s=new $n(a),o.push(s)):(l.name=a,s=new Eo(a,null,[l]),r.push(s)),ye.map(ka(i,t),function(c){s.addComponent(c)})}),n.addComponent(new bN("inner",r,o)),n}function Nw(e,t){const n=new Eo("[");return ye.each(e,function(r){ye.each(ka(r,t),function(o){n.addComponent(o)})}),n}function bB(e,t){if(e.lines_regex)return new _N(function(n,r){const o=r.getLines(n.requestStartRow,r.getCurrentPosition().lineNumber).join(`
271
271
  `);return new RegExp(e.lines_regex,"m").test(o)},t);throw"unknown condition type - got: "+JSON.stringify(e)}function wB(){return[new yN("__global__")]}function kw(e,t,n){return ka(t,new mB(e,n))}function lp(e,t){this.globalRules=Object.create(null),this.endpoints=Object.create(null),this.urlPatternMatcher=new SN(e),this.globalBodyComponentFactories=t,this.name=""}(function(e){e.addGlobalAutocompleteRules=function(t,n){this.globalRules[t]=kw("GLOBAL."+t,n,this.globalBodyComponentFactories)},e.getGlobalAutocompleteComponents=function(t,n){const r=this.globalRules[t];if(ye.isUndefined(r)&&(n||ye.isUndefined(n)))throw new Error("failed to resolve global components for ['"+t+"']");return r},e.addEndpointDescription=function(t,n){const r={};ye.assign(r,n||{}),ye.defaults(r,{id:t,patterns:[t],methods:["GET"]}),ye.each(r.patterns,o=>{this.urlPatternMatcher.addEndpoint(o,r)}),r.paramsAutocomplete=new pB(r.url_params),r.bodyAutocompleteRootComponents=kw(r.id,r.data_autocomplete_rules,this.globalBodyComponentFactories),this.endpoints[t]=r},e.getEndpointDescriptionByEndpoint=function(t){return this.endpoints[t]},e.getTopLevelUrlCompleteComponents=function(t){return this.urlPatternMatcher.getTopLevelComponents(t)},e.getUnmatchedEndpointComponents=function(){return wB()},e.clear=function(){this.endpoints={},this.globalRules={}}})(lp.prototype);let La=new lp;const Lw=e=>e[0]==="_"&&e!=="_all",Fa=(e,t)=>new BN(e,t),xB={getComponent:function(e,t,n){if(this[e])return this[e];if(n)return Fa},index:function(e,t){if(!Lw(e))return new ml(e,t,!1)},indices:function(e,t){if(!Lw(e))return new ml(e,t,!0)},type:function(e,t){return new cb(e,t,!1)},types:function(e,t){return new cb(e,t,!0)},id:function(e,t){return Fa(e,t)},transform_id:function(e,t){return Fa(e,t)},username:function(e,t){return new ub(e,t)},user:function(e,t){return new ub(e,t)},template:function(e,t){return new zN(e,t)},task_id:function(e,t){return Fa(e,t)},ids:function(e,t){return Fa(e,t)},fields:function(e,t){return new lb(e,t,!0)},field:function(e,t){return new lb(e,t,!1)},nodes:function(e,t){return new kn(e,["_local","_master","data:true","data:false","master:true","master:false"],t)},node:function(e,t){return new kn(e,[],t,!1)}};function SB(){return La.getUnmatchedEndpointComponents()}function CB(e){return La.getEndpointDescriptionByEndpoint(e)}function EB(e){const t=CB(e);if(!t)throw new Error("failed to resolve endpoint ['"+e+"']");return t.bodyAutocompleteRootComponents}function zl(e){return La.getTopLevelUrlCompleteComponents(e)}function OB(e,t){return La.getGlobalAutocompleteComponents(e,t)}function $B(e,t,n){t=t||xB,n=n||t;const r=new lp(t,n),o=[];return ye.each(e,function(i,a){o.unshift(a),ye.each(i.globals||{},function(l,s){r.addGlobalAutocompleteRules(s,l)}),ye.each(i.endpoints||{},function(l,s){r.addEndpointDescription(s,l)})}),r.name=o.join(","),r}const Fw=new dB;Fw.start();const TB=Fw.asJson();La=$B({es:TB});const Vt={REQUEST_START:2,IN_REQUEST:4,MULTI_DOC_CUR_DOC_END:8,REQUEST_END:16,BETWEEN_REQUESTS:32};class Dw{constructor(t){this.editor=t,this.MODE=Vt}getRowParseMode(t=this.editor.getCurrentPosition().lineNumber){const n=this.editor.getLineCount();if(t>n||t<1)return Vt.BETWEEN_REQUESTS;const r=this.editor.getLineState(t);if(!r)return Vt.BETWEEN_REQUESTS;if(r!=="start"&&r!=="start-sql")return Vt.IN_REQUEST;let o=(this.editor.getLineValue(t)||"").trim();return!o||o[0]==="#"?Vt.BETWEEN_REQUESTS:o.indexOf("}",o.length-1)>=0?(t++,t<n+1&&(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")===0)?Vt.MULTI_DOC_CUR_DOC_END|Vt.IN_REQUEST:Vt.REQUEST_END|Vt.MULTI_DOC_CUR_DOC_END):(t++,t>=n+1||(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")!==0)?Vt.REQUEST_START|Vt.REQUEST_END:Vt.REQUEST_START)}rowPredicate(t,n,r){return(this.getRowParseMode(t)&r)>0}isEndRequestRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Vt.REQUEST_END)}isRequestEdge(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Vt.REQUEST_END|Vt.REQUEST_START)}isStartRequestRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Vt.REQUEST_START)}isInBetweenRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Vt.BETWEEN_REQUESTS)}isInRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Vt.IN_REQUEST)}isMultiDocDocEndRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Vt.MULTI_DOC_CUR_DOC_END)}isEmptyToken(t){const n=t&&t.getCurrentToken?t.getCurrentToken():t;return!n||n.type==="whitespace"}isUrlOrMethodToken(t){const n=(t==null?void 0:t.getCurrentToken())||t;return n&&n.type&&(n.type==="method"||n.type.indexOf("url")===0)}nextNonEmptyToken(t){let n=t.stepForward();for(;n&&this.isEmptyToken(n);)n=t.stepForward();return n}prevNonEmptyToken(t){let n=t.stepBackward();for(;(n||t.getCurrentPosition().lineNumber>1)&&this.isEmptyToken(n);)n=t.stepBackward();return n}}function PB(e){return!(e==="_all"||e[0]!=="_")}class RB extends kn{constructor(t,n,r){super(t,IN,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!ye.find(t,PB)}getDefaultTermMeta(){return"command"}getContextKey(){return"command"}}function jB(){return[new RB("command",null,!0)]}let pr=null;function cp(e){switch((e||{}).type){case"url.param":case"url.equal":case"url.value":case"url.questionmark":case"url.amp":return!0;default:return!1}}function ql(e,t,n,r){const o=Co({editor:e,position:t}),i=t;let a=[];const l={};l.tokensLineCache=o.tokensLineCache;const s={looking_for_key:0,looking_for_scope_start:1,start:3};let c=s.start,u=o.getCurrentToken();l.token=u,u?i.column===1&&(u=o.stepBackward(),c=s.looking_for_scope_start):i.column===1&&(u=o.stepBackward(),c=s.start);let f=!1;for(;u&&u.type.indexOf("url")===-1&&u.type!=="method";u=o.stepBackward())switch(u.type!=="whitespace"&&(f=!0),u.type){case"variable":c===s.looking_for_key&&a.unshift(u.value.trim().replace(/"/g,"")),c=s.looking_for_scope_start;break;case"paren.lparen":a.unshift(u.value),c===s.looking_for_scope_start&&(c=s.looking_for_key);break;case"paren.rparen":c=s.looking_for_scope_start;let y=1;for(u=o.stepBackward();u&&y>0;){switch(u.type){case"paren.lparen":y--;break;case"paren.rparen":y++;break}y>0&&(u=o.stepBackward())}if(!u)return{};continue;case"punctuation.end_triple_quote":for(c=s.looking_for_scope_start,u=o.stepBackward();u;u=o.stepBackward())if(u.type==="punctuation.start_triple_quote"){u=o.stepBackward();break}if(!u)return{};continue;case"punctuation.start_triple_quote":c===s.start?c=s.looking_for_key:c===s.looking_for_key&&(c=s.looking_for_scope_start),a.unshift('"""');continue;case"string":case"constant.numeric":case"constant.language.boolean":case"text":c===s.start?c=s.looking_for_key:c===s.looking_for_key&&(c=s.looking_for_scope_start);break;case"punctuation.comma":c===s.start&&(c=s.looking_for_scope_start);break;case"punctuation.colon":case"whitespace":c===s.start&&(c=s.looking_for_key);break}if(f&&(!a||a.length===0)&&!r)return{};if(l.urlTokenPath=[],o.getCurrentPosition().lineNumber===i.lineNumber){if(u&&(u.type==="url.part"||u.type==="url.param"||u.type==="url.value")||u.type==="url.select_keyword")if(r&&(u.type==="url.part"||u.type==="url.select_keyword")&&(l.urlTokenPath.push(u.value),l.urlTokenPath.push(zd)),u=o.stepBackward(),u.type==="whitespace")for(;u.type==="whitespace";)u=o.stepBackward();else for(;u.value.trim()==="";)u=o.stepBackward();a=null}l.bodyTokenPath=a,l.urlParamsTokenPath=null,l.requestStartRow=o.getCurrentPosition().lineNumber;let d;for(;u&&cp(u);){switch(u.type){case"url.value":Array.isArray(d)?d.unshift(u.value):d?d=[u.value,d]:d=u.value;break;case"url.comma":d?Array.isArray(d)||(d=[d]):d=[];break;case"url.param":const y=d;d={},d[u.value]=y;break;case"url.amp":case"url.questionmark":l.urlParamsTokenPath||(l.urlParamsTokenPath=[]),l.urlParamsTokenPath.unshift(d||{}),d=null;break}u=o.stepBackward()}for(d=null;u&&u.type.indexOf("url")!==-1;){switch(u.type){case"url.select_keyword":case"url.part":Array.isArray(d)?d.unshift(u.value):d?d=[u.value,d]:d=u.value;break;case"url.comma":d?Array.isArray(d)||(d=[d]):d=[];break;case"url.slash":d&&(l.urlTokenPath.unshift(d),d=null);break}for(u=n.prevNonEmptyToken(o);u.value.trim()==="";)u=n.prevNonEmptyToken(o)}return d&&l.urlTokenPath.unshift(d),!l.bodyTokenPath&&!l.urlParamsTokenPath?l.urlTokenPath.length>0&&(l.otherTokenValues=l.urlTokenPath[0]):l.urlTokenPath.push(zd),u&&u.type==="method"&&(l.method=u.value),l}function Bw(e){switch((e||{}).type){case"url.slash":case"url.comma":case"url.part":return!0;default:return!1}}function Vl(e,t,n){return ye.map(e,function(r){return typeof r!="object"&&(r={name:r}),ye.defaults(r,{meta:t,template:n})})}function MB({coreEditor:e}){const t=new Dw(e);function n(p){const m=p.context;i(m,e.getCurrentPosition(),p.insertValue);let g;m.autoCompleteType==="body"?(g=typeof p.insertValue=="string"?'"'+p.insertValue+'"':p.insertValue+"",(p.insertValue==="["||p.insertValue==="{")&&(g="")):g=p.insertValue+"";let b=g,C=!1;if(m.addTemplate&&!ye.isUndefined(p.template)&&!ye.isNull(p.template)){let O;p.template.__raw&&p.template.value?O=p.template.value.split(`
272
272
  `):O=Jy(p.template,!0).split(`
273
273
  `);let R=e.getLineValue(m.rangeToReplace.start.lineNumber);R=R.match(/^\s*/)[0];for(let N=1;N<O.length;N++)O[N]=R+O[N];b+=": "+O.join(`
274
- `),C=!0}else C=!0,p.value==="["?b+="[]":p.value==="{"?b+="{}":C=!1;b=m.prefixToAdd+b+m.suffixToAdd,e.off("changeSelection",h),m.rangeToReplace.start.column!==m.rangeToReplace.end.column?e.replace(m.rangeToReplace,b):e.insert(b),e.clearSelection();let S={lineNumber:m.rangeToReplace.start.lineNumber,column:m.rangeToReplace.start.column+g.length+m.prefixToAdd.length+(C?0:m.suffixToAdd.length)};const w=Co({editor:e,position:S});if(m.autoCompleteType==="body"){let O=t.nextNonEmptyToken(w);switch(O?O.type:"NOTOKEN"){case"paren.rparen":S=w.getCurrentPosition();break;case"punctuation.colon":O=t.nextNonEmptyToken(w),(O||{}).type==="paren.lparen"&&(O=t.nextNonEmptyToken(w),S=w.getCurrentPosition(),O&&O.value.indexOf('"')===0&&S.column++);break;case"paren.lparen":case"punctuation.comma":w.stepForward(),S=w.getCurrentPosition();break}e.moveCursorToPosition(S)}e.on("changeSelection",h)}function r(p,m){const g={autoCompleteSet:null,endpoint:null,urlPath:null,method:null,activeScheme:null,editor:p};switch(g.autoCompleteType=o(m),g.autoCompleteType){case"path":d(g,m);break;case"url_params":y(g,m);break;case"method":f(g);break;case"body":x(g,m);break;default:return null}return g.autoCompleteSet?(i(g,m),g.createdWithToken=ye.clone(g.updatedForToken),g):null}function o(p){let m=t.getRowParseMode();if(m&t.MODE.IN_REQUEST)return"body";if(m&t.MODE.REQUEST_START){const g=Co({editor:e,position:p});let b=g.getCurrentToken();for(;b.type==="url.comma";)b=g.stepBackward();switch(b.type){case"method":return"method";case"whitespace":switch(b=t.prevNonEmptyToken(g),(b||{}).type){case"method":return"path";default:return Bw(b)?"path":cp(b)?"url_params":null}default:return Bw(b)?"path":cp(b)?"url_params":null}}return m&t.MODE.REQUEST_END?"body":e.getLineValue(p.lineNumber).trim()===""?(m=t.getRowParseMode(p.lineNumber-1),m&t.MODE.REQUEST_START&&m&t.MODE.REQUEST_END?"body":"method"):null}function i(p,m,g){p.updatedForToken=ye.clone(e.getTokenAt({lineNumber:m.lineNumber,column:m.column})),p.updatedForToken||(p.updatedForToken={value:"",type:"",position:{column:m.column,lineNumber:m.lineNumber}});let b=p.createdWithToken;switch(b||(b=p.updatedForToken),p.updatedForToken.type){case"variable":case"string":case"text":case"constant.numeric":case"constant.language.boolean":case"method":case"url.index":case"url.type":case"url.id":case"url.method":case"url.endpoint":case"url.part":case"url.param":case"url.value":p.rangeToReplace={start:{lineNumber:m.lineNumber,column:b.position.column},end:{lineNumber:m.lineNumber,column:p.updatedForToken.position.column+p.updatedForToken.value.length}},p.replacingToken=!0;break;default:g&&p.updatedForToken.value===g?(p.rangeToReplace={start:{lineNumber:m.lineNumber,column:b.position.column},end:{lineNumber:m.lineNumber,column:p.updatedForToken.position.column+p.updatedForToken.value.length}},p.replacingToken=!0):(p.rangeToReplace={start:{lineNumber:m.lineNumber,column:m.column},end:{lineNumber:m.lineNumber,column:m.column}},p.replacingToken=!1);break}switch(p.textBoxPosition={lineNumber:p.rangeToReplace.start.lineNumber,column:p.rangeToReplace.start.column},p.autoCompleteType){case"path":c(p);break;case"url_params":l(p);break;case"method":s(p);break;case"body":a(p);break}}function a(p){p.prefixToAdd="",p.suffixToAdd="";let m=Co({editor:e,position:e.getCurrentPosition()}),g=t.nextNonEmptyToken(m);switch(g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"paren.rparen":case"punctuation.comma":p.addTemplate=!0;break;case"punctuation.colon":if(p.addTemplate=!1,g=t.nextNonEmptyToken(m),!(g&&g.value==="{")||(g=t.nextNonEmptyToken(m),!(g&&g.value==="}")))break;switch(p.addTemplate=!0,p.rangeToReplace.end.lineNumber=m.getCurrentTokenLineNumber(),p.rangeToReplace.end.column=m.getCurrentTokenColumn()+g.value.length,g=t.nextNonEmptyToken(m),g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.rparen":case"punctuation.comma":case"punctuation.colon":break;default:p.suffixToAdd=", "}break;default:p.addTemplate=!0,p.suffixToAdd=", ";break}m=Co({editor:e,position:e.getCurrentPosition()}),g=m.getCurrentToken();let b;if(p.replacingToken)b=0;else{const C=e.getCurrentPosition();C.column===p.updatedForToken.position.column?b=-1:C.column<p.updatedForToken.position.column+p.updatedForToken.value.length?b=0:b=1}switch((t.isEmptyToken(g)||b<=0)&&(g=t.prevNonEmptyToken(m)),g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"punctuation.comma":case"punctuation.colon":case"method":break;default:g&&g.type.indexOf("url")<0&&(p.prefixToAdd=", ")}return p}function l(p){p.prefixToAdd="",p.suffixToAdd=""}function s(p){p.prefixToAdd="",p.suffixToAdd="";const m=Co({editor:e,position:e.getCurrentPosition()}),g=m.getCurrentPosition().lineNumber,b=t.nextNonEmptyToken(m);(m.getCurrentPosition().lineNumber!==g||!b)&&(p.suffixToAdd=" ")}function c(p){p.prefixToAdd="",p.suffixToAdd=""}function u(p,m){const g=[];let b=-1;return(p||[]).forEach((C,S)=>{const w=C.value.toUpperCase();if(["FROM","JOIN"].includes(w)&&p.length>S+2&&S+2!=m){let O=p[S+2].value;O.includes("(")||(O=O.replace(/^"+/,"").replace(/"+$/,""),g.push(O),b=S)}}),{indices:g.join(","),idx:b}}function f(p){p.autoCompleteSet=["GET","PUT","POST","DELETE","HEAD","LOAD","SELECT","FROM"].map((m,g)=>({name:m,score:-g,meta:"method"}))}function d(p,m){var C,S;const g=ql(e,m,t);p.method=g.method,p.token=g.token,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath;let b;if(g.method==="LOAD")b=jB();else if(g.method==="SELECT"){const w=(g.tokensLineCache||[]).findIndex(P=>P.value===g.token.value);let{indices:O,idx:R}=u(g.tokensLineCache,w);if(R>-1&&w<R){const P=$a(O);p.autoCompleteSet=Vl(P,"field");return}const N=((C=g.otherTokenValues)==null?void 0:C.length)||0;if(N>0)switch(g.otherTokenValues[N-1].toUpperCase()){case"FROM":!g.token.value.endsWith('"')&&g.token.value!='"'&&(p.otherTokenValues=null,p.urlTokenPath=[],b=[new ml("indices",null,!0)]);break;case"WHERE":case"AND":case"BY":if(N>1&&!g.token.value.includes("=")){O===""&&(O=g.otherTokenValues[N-2],O=O.replace(/^"+/,"").replace(/"+$/,""));const P=$a(O);p.autoCompleteSet=Vl(P,"field");return}}}else if(g.method=="FROM"){const w=(g.tokensLineCache||[]).findIndex(O=>O.value===g.token.value);if(g.tokensLineCache[w-2].value=="FROM")!g.token.value.endsWith('"')&&g.token.value!='"'&&(p.otherTokenValues=null,p.urlTokenPath=[],b=[new ml("indices",null,!0)]);else{let O=g.otherTokenValues[0];O=O.replace(/^"+/,"").replace(/"+$/,"");const R=((S=g.otherTokenValues)==null?void 0:S.length)||0;let N=!0,P=null;for(let L=w-1;L>=0;L--){const z=g.tokensLineCache[L];if(P===null&&z.value.trim()!=""&&(P=z),z.type=="url.select_keyword"&&z.value.toUpperCase()!="SELECT"){N=!1;break}}switch(N&&P.value!=","&&P.value.toUpperCase()!="SELECT"&&(N=!1),g.otherTokenValues[R-1].toUpperCase()){case"SELECT":case"WHERE":case"AND":case"BY":N=!0}if(N&&!g.token.value.includes("=")){const L=$a(O);p.autoCompleteSet=Vl(L,"field");return}}}else b=zl(p.method);Ei(p.urlTokenPath,p,e,!0,b),p.autoCompleteSet=Vl(p.autoCompleteSet,"endpoint")}function y(p,m){const g=ql(e,m,t);if(p.method=g.method,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath,!g.urlTokenPath||(Ei(g.urlTokenPath,p,e,!1,zl(p.method)),!p.endpoint)||!g.urlParamsTokenPath)return p;let b=[];const C=g.urlParamsTokenPath.pop();return C&&(b=Object.keys(C),p.otherTokenValues=C[b[0]]),Ei(b,p,e,!0,p.endpoint.paramsAutocomplete.getTopLevelComponents(p.method)),p}function x(p,m){const g=ql(e,m,t);if(p.method=g.method,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath,p.requestStartRow=g.requestStartRow,!g.urlTokenPath||(Ei(g.urlTokenPath,p,e,!1,zl(p.method)),p.bodyTokenPath=g.bodyTokenPath,!g.bodyTokenPath))return p;p.endpointComponentResolver=EB,p.globalComponentResolver=OB;let b;return p.endpoint?b=p.endpoint.bodyAutocompleteRootComponents:b=SB(),Ei(g.bodyTokenPath,p,e,!0,b),p}const E=ye.debounce(function(m){let g=null;try{g=e.getTokenAt(m)}catch{}if(!g){if(m.lineNumber===1){pr=null;return}g={position:{column:0,lineNumber:0},value:"",type:""}}if(g.position.lineNumber=m.lineNumber,t.isEmptyToken(g)){const b=e.getTokenAt({...m,column:m.column+1});t.isEmptyToken(b)?(g.position.column=m.column,pr=g):(b.position.lineNumber=m.lineNumber,pr=b);return}if(!pr){pr=g;return}if(pr.position.column!==g.position.column||pr.position.lineNumber!==g.position.lineNumber||pr.value===g.value){pr=g;return}switch(g.type||"UNKNOWN"){case"paren.lparen":case"paren.rparen":case"punctuation.colon":case"punctuation.comma":case"UNKNOWN":return}pr=g,e.execCommand("startAutocomplete")},100);function h(){const p=e.getCurrentPosition();p&&!e.isCompleterActive()&&E(p)}function _(p,m,g){try{const b=r(e,p);if(!b)g(null,[]);else{const C=ye.map(b.autoCompleteSet.filter(S=>!!S&&S.name!=null),function(S){typeof S!="object"?S={name:S}:S=ye.clone(S);const w={value:S.name,meta:"API",score:0,context:b};return b.method==="LOAD"&&b.autoCompleteType==="path"&&(w.completer={insertMatch(){n(S),e.execCommand("exec_request")}}),b.autoCompleteType==="body"&&(w.completer={insertMatch(){return n(S)}}),ye.defaults(S,w)});C.sort(function(S,w){return S.score>w.score?-1:S.score<w.score?1:S.name<w.name?-1:S.name===w.name?0:1}),g(null,ye.map(C,function(S,w){return S.insertValue=S.insertValue||S.value,S.value=""+S.value,S.score=-w,S}))}}catch(b){console.error(b),g(b,null)}}return e.on("changeSelection",h),{getCompletions:_}}async function IB(){return(await Promise.resolve().then(()=>z6)).someFunction()}const AB={id:"sense_editor/mode/worker",src:IB},{TextHighlightRules:NB}=Ze.acequire("ace/mode/text_highlight_rules"),kB=Ze.acequire("ace/lib/oop"),up=function(){const o=this.createKeywordMapper({keyword:["describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is","avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score","true|false","null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape"].join("|")},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"constant",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"entity.name.function",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:o,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()};kB.inherits(up,NB);const LB=Ze.acequire("ace/lib/oop"),{TextHighlightRules:FB}=Ze.acequire("ace/mode/text_highlight_rules"),DB="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function dp(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:DB},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}LB.inherits(dp,FB);const{JsonHighlightRules:BB}=Ze.acequire("ace/mode/json_highlight_rules"),zB=Ze.acequire("ace/lib/oop"),zw=function(e){e=e||"json";const t={},n=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("(?:[^"]*_)?script"|"inline"|"source")(\\s*?)(:)(\\s*?)(""")',next:"script-start",merge:!1,push:!0},{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"punctuation.start_triple_quote",regex:'"""',next:"string_literal",merge:!1,push:!0},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{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",merge:!1,regex:"{",next:e,push:!0},{token:"paren.lparen",merge:!1,regex:"[[(]"},{token:"paren.rparen",merge:!1,regex:"[\\])]"},{token:"paren.rparen",regex:"}",merge:!1,next:"pop"},{token:"punctuation.comma",regex:","},{token:"punctuation.colon",regex:":"},{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}];return t[e]=n,t[e+"-sql"]=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("query")(\\s*?)(:)(\\s*?)(""")',next:"sql-start",merge:!1,push:!0}].concat(n),t.string_literal=[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"},{token:"multi_string",regex:"."}],t};function qw(){const e=zw("start");this.$rules={...e},this.embedRules(dp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),this.embedRules(up,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}zB.inherits(qw,BB);function Vw(e,t){e.$rules=ye.defaultsDeep(e.$rules,zw(t)),e.embedRules(dp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),e.embedRules(up,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}async function qB(){return(await Promise.resolve().then(()=>mq)).someFunction()}const VB={id:"ace/mode/json_worker",src:qB},{WorkerClient:HB}=Ze.acequire("ace/worker/worker_client"),WB=Ze.acequire("ace/lib/oop"),{Mode:UB}=Ze.acequire("ace/mode/json"),{Tokenizer:GB}=Ze.acequire("ace/tokenizer"),{MatchingBraceOutdent:KB}=Ze.acequire("ace/mode/matching_brace_outdent"),{CstyleBehaviour:XB}=Ze.acequire("ace/mode/behaviour/cstyle"),{FoldMode:YB}=Ze.acequire("ace/mode/folding/cstyle"),Hw=function(){const t=new qw;t.normalizeRules(),this.$tokenizer=new GB(t.getRules()),this.$outdent=new KB,this.$behaviour=new XB,this.foldingRules=new YB};WB.inherits(Hw,UB),Hw.prototype.createWorker=function(e){const t=new HB(["ace"],VB,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(n){e.setAnnotations(n.data)}),t.on("terminate",function(){e.clearAnnotations()}),t};function Gt(e,t,n,r){return typeof t=="object"&&(t=t.source),[{token:e.concat(["whitespace"]),regex:t+"(\\s*)$",next:n},{token:e,regex:t,next:r}]}function Oi(){return[].concat.apply([],arguments)}const JB=Ze.acequire("ace/lib/oop"),{TextHighlightRules:QB}=Ze.acequire("ace/mode/text_highlight_rules");function fp(){const e="describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is",t="true|false",n="avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score",r="null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape";this.createKeywordMapper({keyword:[e,n,t,r].join("|")},"identifier",!0);const o=[e,n,t,r].join("|").split("|");let i=Gt(["url.part"],/([^?\/,\s]+)/,"start");i=i.map(a=>(a.onMatch=(l,s,c)=>o.includes(l==null?void 0:l.toLowerCase())?"url.select_keyword":a.token,a)),this.$rules={"start-sql":[{token:"whitespace",regex:"\\s+"},{token:"paren.lparen",regex:"{",next:"json-sql",push:!0},{regex:"",next:"start"}],start:Oi([{token:"warning",regex:"#!.*$"},{token:"comment",regex:/^#.*$/},{token:"paren.lparen",regex:"{",next:"json",push:!0}],Gt(["method"],/([a-zA-Z]+)/,"start","method_sep"),[{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}]),method_sep:Oi(Gt(["whitespace","url.protocol_host","url.slash"],/(\s+)(https?:\/\/[^?\/,]+)(\/)/,"start","url"),Gt(["whitespace","url.protocol_host"],/(\s+)(https?:\/\/[^?\/,]+)/,"start","url"),Gt(["whitespace","url.slash"],/(\s+)(\/)/,"start","url"),Gt(["whitespace"],/(\s+)/,"start","url")),url:Oi(Gt(["url.part"],/(_sql)/,"start-sql","url-sql"),i,Gt(["url.comma"],/(,)/,"start"),Gt(["url.slash"],/(\/)/,"start"),Gt(["url.questionmark"],/(\?)/,"start","urlParams")),urlParams:Oi(Gt(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start"),Gt(["url.param"],/([^&=]+)/,"start"),Gt(["url.amp"],/(&)/,"start")),"url-sql":Oi(Gt(["url.part"],/([^?\/,\s]+)/,"start-sql"),Gt(["url.comma"],/(,)/,"start-sql"),Gt(["url.slash"],/(\/)/,"start-sql"),Gt(["url.questionmark"],/(\?)/,"start-sql","urlParams-sql")),"urlParams-sql":Oi(Gt(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start-sql"),Gt(["url.param"],/([^&=]+)/,"start-sql"),Gt(["url.amp"],/(&)/,"start-sql"))},Vw(this),this.constructor===fp&&this.normalizeRules()}JB.inherits(fp,QB);const ZB=Ze.acequire("ace/lib/oop"),{TextHighlightRules:ez}=Ze.acequire("ace/mode/text_highlight_rules"),tz="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function Ww(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:tz},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}ZB.inherits(Ww,ez);const nz=Ze.acequire("ace/lib/oop"),rz=Ze.acequire("ace/mode/text").Mode;Ze.acequire("ace/tokenizer");function pp(){}nz.inherits(pp,rz),(function(){this.HighlightRules=Ww,this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return 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)}}).call(pp.prototype);const oz=Ze.acequire("ace/lib/oop"),iz=Ze.acequire("ace/mode/text").Mode,az=Ze.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,sz=Ze.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,lz=Ze.acequire("ace/mode/folding/cstyle").FoldMode,cz=Ze.acequire("ace/worker/worker_client").WorkerClient,uz=Ze.acequire("ace/tokenizer").Tokenizer;function hp(){this.$tokenizer=new uz(new fp().getRules()),this.$outdent=new az,this.$behaviour=new sz,this.foldingRules=new lz,this.createModeDelegates({"script-":pp})}oz.inherits(hp,iz),(function(){this.getCompletions=function(){return[]},this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return e!=="string_literal"&&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.createWorker=function(e){const t=new cz(["ace","sense_editor"],AB,"SenseWorker");return t.attachToDocument(e.getDocument()),t.on("error",function(n){e.setAnnotations([n.data])}),t.on("ok",function(n){e.setAnnotations(n.data)}),t}}).call(hp.prototype);var Da={exports:{}};(function(){Ze.define("ace/autocomplete/text_completer",["require","exports","module"],function(n,r){r.getCompletions=function(o,i,a,l,s){s(null,[])}}),Ze.acequire("ace/ext/language_tools").setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o,i)=>{const{coreEditor:a}=n,l={lineNumber:r.row+1,column:r.column+1};a.autocompleter(l,o,i)}}])})();const dz=Ze.acequire("ace/range").Range,Hl=({start:e,end:t})=>new dz(e.lineNumber-1,e.column-1,t.lineNumber-1,t.column-1);class fz{constructor(t,n){this.editor=t,this.setActionsBar=(i,a="top")=>{i===null?this.$actions.css("visibility","hidden"):a==="top"?this.$actions.css({bottom:"auto",top:i,visibility:"visible"}):this.$actions.css({top:"auto",bottom:i,visibility:"visible"})},this.hideActionsBar=()=>{this.setActionsBar(null)},this.$actions=Ot(n),this.editor.setShowPrintMargin(!1),this.parser=new Dw(this),this.autocompleter=MB({coreEditor:this}).getCompletions;const r=this.editor.getSession();r.setMode(new hp);const o=localStorage.getItem("editor:MaxTokenCount");o&&this.setMaxTokenCount(o),r.setFoldStyle("markbeginend"),r.setTabSize(2),r.setUseWrapMode(!0),this.resize=nb(this.editor),this._aceOnPaste=this.editor.onPaste,this.editor.onPaste=this.DO_NOT_USE_onPaste.bind(this),this.editor.setOptions({enableBasicAutocompletion:!0}),this.editor.$blockScrolling=1/0,this.hideActionsBar(),this.editor.focus(),t.coreEditor=this}setMaxTokenCount(t){var r;(r=this.editor.getSession().getMode().getTokenizer())==null||r.$setMaxTokenCount(t)}getParser(){return this.parser}getAutocompleter(){return this.autocompleter}waitForLatestTokens(){return new Promise(t=>{const n=this.editor.getSession(),r=25,o=()=>{n.bgTokenizer&&(n.bgTokenizer.running?setTimeout(o,r):t())};setTimeout(o,0)})}getLineState(t){return this.editor.getSession().getState(t-1)}getValueInRange(t){return this.editor.getSession().getTextRange(Hl(t))}getTokenProvider(){return new fN(this.editor.getSession())}getValue(){return this.editor.getValue()}async setValue(t,n){this.editor.getSession().setValue(t),n&&await this.forceRetokenize()}getLineValue(t){return this.editor.getSession().getLine(t-1)}getCurrentPosition(){const t=this.editor.getCursorPosition();return{lineNumber:t.row+1,column:t.column+1}}clearSelection(){this.editor.clearSelection()}getTokenAt(t){return this.getTokenProvider().getTokenAt(t)}insert(t,n){if(typeof t=="string"){this.editor.insert(t);return}this.editor.getSession().getDocument().insert({column:t.column-1,row:t.lineNumber-1},n||"")}moveCursorToPosition(t){this.editor.moveCursorToPosition({row:t.lineNumber-1,column:t.column-1})}replace(t,n){this.editor.getSession().replace(Hl(t),n)}getLines(t,n){return this.editor.getSession().getLines(t-1,n-1)}replaceRange(t,n){const r=this.editor.getCursorPosition();this.editor.getSession().replace(Hl(t),n);const o=Math.max(t.start.lineNumber-1+n.split(`
275
- `).length-1,1);r.row=Math.min(r.row,o),this.editor.moveCursorToPosition(r),this.editor.clearSelection()}getSelectionRange(){const t=this.editor.getSelectionRange();return{start:{lineNumber:t.start.row+1,column:t.start.column+1},end:{lineNumber:t.end.row+1,column:t.end.column+1}}}getLineCount(){return this.editor.getSession().getLength()}addMarker(t){return this.editor.getSession().addMarker(Hl(t),"ace_snippet-marker","fullLine",!1)}removeMarker(t){this.editor.getSession().removeMarker(t)}getWrapLimit(){return this.editor.getSession().getWrapLimit()}on(t,n){t==="changeCursor"?this.editor.getSession().selection.on(t,n):t==="changeSelection"?this.editor.on(t,n):this.editor.getSession().on(t,n)}off(t,n){t==="changeSelection"&&this.editor.off(t,n)}isCompleterActive(){return!!(this.editor.completer&&this.editor.completer.activated)}forceRetokenize(){const t=this.editor.getSession();return new Promise(n=>{setTimeout(function(){let r;for(r=0;r<t.getLength();r++)t.getTokens(r);n()})})}DO_NOT_USE_onPaste(t){if(t&&hN(t)){const n=mN(t);this.editor.insert(n);return}this._aceOnPaste.call(this.editor,t)}execCommand(t){this.editor.execCommand(t)}getContainer(){return this.editor.container}setStyles(t){this.editor.getSession().setUseWrapMode(t.wrapLines),this.editor.container.style.fontSize=t.fontSize}registerKeyboardShortcut(t){this.editor.commands.addCommand({exec:t.fn,name:t.name,bindKey:t.keys})}legacyUpdateUI(t){if(this.$actions&&t){const n=Ot(this.editor.container).offset().top,r=t.start.lineNumber,o=t.start.column,i=this.getLineValue(r),a=this.getWrapLimit()-5,l=i.length>a,s=n-(window.pageYOffset||0),c=d=>this.editor.renderer.textToScreenCoordinates(d-1,o).pageY-s,u=c(r);if(u>=0){const{bottom:d}=this.editor.container.getBoundingClientRect();if(u>d-s){this.setActionsBar(0,"bottom");return}let y=0;if(l){const x=Ot(this.editor.container.querySelector("textArea")),E=this.getLineValue(r).length<a;if(x&&E)y+=this.getLineValue(r).length*x.height();else{if(r>1){this.setActionsBar(c(r-1));return}this.setActionsBar(c(r+1));return}}this.setActionsBar(u+y);return}if(this.editor.renderer.textToScreenCoordinates(t.end.lineNumber,t.end.column).pageY-n>=0){this.setActionsBar(0);return}}}registerAutocompleter(t){langTools.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o)=>{const i={lineNumber:n.row+1,column:n.column+1};t(i,r,o)}}])}destroy(){this.editor.destroy()}}(Da.exports==null?{}:Da.exports).default||Da.exports,(Da.exports==null?{}:Da.exports).getCompletions;const pz=Ze.acequire("ace/lib/oop"),hz=Ze.acequire("ace/mode/json_highlight_rules").JsonHighlightRules;function mp(){this.$rules={},Vw(this,"start"),this.$rules.start.unshift({token:"warning",regex:"#!.*$"},{token:"comment",regex:"#.*$"}),this.constructor===mp&&this.normalizeRules()}pz.inherits(mp,hz);const mz=Ze.acequire("ace/lib/oop"),gz=Ze.acequire("ace/mode/json").Mode,vz=Ze.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,_z=Ze.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,yz=Ze.acequire("ace/mode/folding/cstyle").FoldMode;Ze.acequire("ace/worker/worker_client");const bz=Ze.acequire("ace/tokenizer").Tokenizer;function gp(){this.$tokenizer=new bz(new mp().getRules()),this.$outdent=new vz,this.$behaviour=new _z,this.foldingRules=new yz}mz.inherits(gp,gz),(function(){this.createWorker=function(){return null},this.$id="sense/mode/input"}).call(gp.prototype);function wz(e){const t=Ze.acequire("ace/ace").edit(e),n=new gp;return t.$blockScrolling=1/0,t.resize=nb(t),t.update=(r,o,i)=>{typeof o=="function"&&(i=o,o=void 0);const a=t.getSession();a.setMode(r?o||n:"ace/mode/text"),a.setValue(r),typeof i=="function"&&setTimeout(i)},t.append=(r,o,i)=>{typeof o=="function"&&(i=o,o=!0),ye.isUndefined(o)&&(o=!0);const a=t.getSession(),l=a.getLength();o&&t.moveCursorTo(Math.max(0,l-1),0),a.insert({row:l,column:0},`
274
+ `),C=!0}else C=!0,p.value==="["?b+="[]":p.value==="{"?b+="{}":C=!1;b=m.prefixToAdd+b+m.suffixToAdd,e.off("changeSelection",h),m.rangeToReplace.start.column!==m.rangeToReplace.end.column?e.replace(m.rangeToReplace,b):e.insert(b),e.clearSelection();let S={lineNumber:m.rangeToReplace.start.lineNumber,column:m.rangeToReplace.start.column+g.length+m.prefixToAdd.length+(C?0:m.suffixToAdd.length)};const w=Co({editor:e,position:S});if(m.autoCompleteType==="body"){let O=t.nextNonEmptyToken(w);switch(O?O.type:"NOTOKEN"){case"paren.rparen":S=w.getCurrentPosition();break;case"punctuation.colon":O=t.nextNonEmptyToken(w),(O||{}).type==="paren.lparen"&&(O=t.nextNonEmptyToken(w),S=w.getCurrentPosition(),O&&O.value.indexOf('"')===0&&S.column++);break;case"paren.lparen":case"punctuation.comma":w.stepForward(),S=w.getCurrentPosition();break}e.moveCursorToPosition(S)}e.on("changeSelection",h)}function r(p,m){const g={autoCompleteSet:null,endpoint:null,urlPath:null,method:null,activeScheme:null,editor:p};switch(g.autoCompleteType=o(m),g.autoCompleteType){case"path":d(g,m);break;case"url_params":y(g,m);break;case"method":f(g);break;case"body":x(g,m);break;default:return null}return g.autoCompleteSet?(i(g,m),g.createdWithToken=ye.clone(g.updatedForToken),g):null}function o(p){let m=t.getRowParseMode();if(m&t.MODE.IN_REQUEST)return"body";if(m&t.MODE.REQUEST_START){const g=Co({editor:e,position:p});let b=g.getCurrentToken();for(;b.type==="url.comma";)b=g.stepBackward();switch(b.type){case"method":return"method";case"whitespace":switch(b=t.prevNonEmptyToken(g),(b||{}).type){case"method":return"path";default:return Bw(b)?"path":cp(b)?"url_params":null}default:return Bw(b)?"path":cp(b)?"url_params":null}}return m&t.MODE.REQUEST_END?"body":e.getLineValue(p.lineNumber).trim()===""?(m=t.getRowParseMode(p.lineNumber-1),m&t.MODE.REQUEST_START&&m&t.MODE.REQUEST_END?"body":"method"):null}function i(p,m,g){p.updatedForToken=ye.clone(e.getTokenAt({lineNumber:m.lineNumber,column:m.column})),p.updatedForToken||(p.updatedForToken={value:"",type:"",position:{column:m.column,lineNumber:m.lineNumber}});let b=p.createdWithToken;switch(b||(b=p.updatedForToken),p.updatedForToken.type){case"variable":case"string":case"text":case"constant.numeric":case"constant.language.boolean":case"method":case"url.index":case"url.type":case"url.id":case"url.method":case"url.endpoint":case"url.part":case"url.param":case"url.value":p.rangeToReplace={start:{lineNumber:m.lineNumber,column:b.position.column},end:{lineNumber:m.lineNumber,column:p.updatedForToken.position.column+p.updatedForToken.value.length}},p.replacingToken=!0;break;default:g&&p.updatedForToken.value===g?(p.rangeToReplace={start:{lineNumber:m.lineNumber,column:b.position.column},end:{lineNumber:m.lineNumber,column:p.updatedForToken.position.column+p.updatedForToken.value.length}},p.replacingToken=!0):(p.rangeToReplace={start:{lineNumber:m.lineNumber,column:m.column},end:{lineNumber:m.lineNumber,column:m.column}},p.replacingToken=!1);break}switch(p.textBoxPosition={lineNumber:p.rangeToReplace.start.lineNumber,column:p.rangeToReplace.start.column},p.autoCompleteType){case"path":c(p);break;case"url_params":l(p);break;case"method":s(p);break;case"body":a(p);break}}function a(p){p.prefixToAdd="",p.suffixToAdd="";let m=Co({editor:e,position:e.getCurrentPosition()}),g=t.nextNonEmptyToken(m);switch(g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"paren.rparen":case"punctuation.comma":p.addTemplate=!0;break;case"punctuation.colon":if(p.addTemplate=!1,g=t.nextNonEmptyToken(m),!(g&&g.value==="{")||(g=t.nextNonEmptyToken(m),!(g&&g.value==="}")))break;switch(p.addTemplate=!0,p.rangeToReplace.end.lineNumber=m.getCurrentTokenLineNumber(),p.rangeToReplace.end.column=m.getCurrentTokenColumn()+g.value.length,g=t.nextNonEmptyToken(m),g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.rparen":case"punctuation.comma":case"punctuation.colon":break;default:p.suffixToAdd=", "}break;default:p.addTemplate=!0,p.suffixToAdd=", ";break}m=Co({editor:e,position:e.getCurrentPosition()}),g=m.getCurrentToken();let b;if(p.replacingToken)b=0;else{const C=e.getCurrentPosition();C.column===p.updatedForToken.position.column?b=-1:C.column<p.updatedForToken.position.column+p.updatedForToken.value.length?b=0:b=1}switch((t.isEmptyToken(g)||b<=0)&&(g=t.prevNonEmptyToken(m)),g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"punctuation.comma":case"punctuation.colon":case"method":break;default:g&&g.type.indexOf("url")<0&&(p.prefixToAdd=", ")}return p}function l(p){p.prefixToAdd="",p.suffixToAdd=""}function s(p){p.prefixToAdd="",p.suffixToAdd="";const m=Co({editor:e,position:e.getCurrentPosition()}),g=m.getCurrentPosition().lineNumber,b=t.nextNonEmptyToken(m);(m.getCurrentPosition().lineNumber!==g||!b)&&(p.suffixToAdd=" ")}function c(p){p.prefixToAdd="",p.suffixToAdd=""}function u(p,m){const g=[];let b=-1;return(p||[]).forEach((C,S)=>{const w=C.value.toUpperCase();if(["FROM","JOIN"].includes(w)&&p.length>S+2&&S+2!=m){let O=p[S+2].value;O.includes("(")||(O=O.replace(/^"+/,"").replace(/"+$/,""),g.push(O),b=S)}}),{indices:g.join(","),idx:b}}function f(p){p.autoCompleteSet=["GET","PUT","POST","DELETE","HEAD","LOAD","SELECT","FROM"].map((m,g)=>({name:m,score:-g,meta:"method"}))}function d(p,m){var C,S;const g=ql(e,m,t);p.method=g.method,p.token=g.token,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath;let b;if(g.method==="LOAD")b=jB();else if(g.method==="SELECT"){const w=(g.tokensLineCache||[]).findIndex(P=>P.value===g.token.value);let{indices:O,idx:R}=u(g.tokensLineCache,w);if(R>-1&&w<R){const P=$a(O);p.autoCompleteSet=Vl(P,"field");return}const N=((C=g.otherTokenValues)==null?void 0:C.length)||0;if(N>0)switch(g.otherTokenValues[N-1].toUpperCase()){case"FROM":!g.token.value.endsWith('"')&&g.token.value!='"'&&(p.otherTokenValues=null,p.urlTokenPath=[],b=[new ml("indices",null,!0)]);break;case"WHERE":case"AND":case"BY":if(N>1&&!g.token.value.includes("=")){O===""&&(O=g.otherTokenValues[N-2],O=O.replace(/^"+/,"").replace(/"+$/,""));const P=$a(O);p.autoCompleteSet=Vl(P,"field");return}}}else if(g.method=="FROM"){const w=(g.tokensLineCache||[]).findIndex(O=>O.value===g.token.value);if(g.tokensLineCache[w-2].value=="FROM")!g.token.value.endsWith('"')&&g.token.value!='"'&&(p.otherTokenValues=null,p.urlTokenPath=[],b=[new ml("indices",null,!0)]);else{let O=g.otherTokenValues[0];O=O.replace(/^"+/,"").replace(/"+$/,"");const R=((S=g.otherTokenValues)==null?void 0:S.length)||0;let N=!0,P=null;for(let L=w-1;L>=0;L--){const z=g.tokensLineCache[L];if(P===null&&z.value.trim()!=""&&(P=z),z.type=="url.select_keyword"&&z.value.toUpperCase()!="SELECT"){N=!1;break}}switch(N&&P.value!=","&&P.value.toUpperCase()!="SELECT"&&(N=!1),g.otherTokenValues[R-1].toUpperCase()){case"SELECT":case"WHERE":case"AND":case"BY":N=!0}if(N&&!g.token.value.includes("=")){const L=$a(O);p.autoCompleteSet=Vl(L,"field");return}}}else b=zl(p.method);Ei(p.urlTokenPath,p,e,!0,b),p.autoCompleteSet=Vl(p.autoCompleteSet,"endpoint")}function y(p,m){const g=ql(e,m,t);if(p.method=g.method,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath,!g.urlTokenPath||(Ei(g.urlTokenPath,p,e,!1,zl(p.method)),!p.endpoint)||!g.urlParamsTokenPath)return p;let b=[];const C=g.urlParamsTokenPath.pop();return C&&(b=Object.keys(C),p.otherTokenValues=C[b[0]]),Ei(b,p,e,!0,p.endpoint.paramsAutocomplete.getTopLevelComponents(p.method)),p}function x(p,m){const g=ql(e,m,t);if(p.method=g.method,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath,p.requestStartRow=g.requestStartRow,!g.urlTokenPath||(Ei(g.urlTokenPath,p,e,!1,zl(p.method)),p.bodyTokenPath=g.bodyTokenPath,!g.bodyTokenPath))return p;p.endpointComponentResolver=EB,p.globalComponentResolver=OB;let b;return p.endpoint?b=p.endpoint.bodyAutocompleteRootComponents:b=SB(),Ei(g.bodyTokenPath,p,e,!0,b),p}const E=ye.debounce(function(m){let g=null;try{g=e.getTokenAt(m)}catch{}if(!g){if(m.lineNumber===1){pr=null;return}g={position:{column:0,lineNumber:0},value:"",type:""}}if(g.position.lineNumber=m.lineNumber,t.isEmptyToken(g)){const b=e.getTokenAt({...m,column:m.column+1});t.isEmptyToken(b)?(g.position.column=m.column,pr=g):(b.position.lineNumber=m.lineNumber,pr=b);return}if(!pr){pr=g;return}if(pr.position.column!==g.position.column||pr.position.lineNumber!==g.position.lineNumber||pr.value===g.value){pr=g;return}switch(g.type||"UNKNOWN"){case"paren.lparen":case"paren.rparen":case"punctuation.colon":case"punctuation.comma":case"UNKNOWN":return}pr=g,e.execCommand("startAutocomplete")},100);function h(){const p=e.getCurrentPosition();p&&!e.isCompleterActive()&&E(p)}function _(p,m,g){try{const b=r(e,p);if(!b)g(null,[]);else{const C=ye.map(b.autoCompleteSet.filter(S=>!!S&&S.name!=null),function(S){typeof S!="object"?S={name:S}:S=ye.clone(S);const w={value:S.name,meta:"API",score:0,context:b};return b.method==="LOAD"&&b.autoCompleteType==="path"&&(w.completer={insertMatch(){n(S),e.execCommand("exec_request")}}),b.autoCompleteType==="body"&&(w.completer={insertMatch(){return n(S)}}),ye.defaults(S,w)});C.sort(function(S,w){return S.score>w.score?-1:S.score<w.score?1:S.name<w.name?-1:S.name===w.name?0:1}),g(null,ye.map(C,function(S,w){return S.insertValue=S.insertValue||S.value,S.value=""+S.value,S.score=-w,S}))}}catch(b){console.error(b),g(b,null)}}return e.on("changeSelection",h),{getCompletions:_}}async function IB(){return(await Promise.resolve().then(()=>z8)).someFunction()}const AB={id:"sense_editor/mode/worker",src:IB},{TextHighlightRules:NB}=Ze.acequire("ace/mode/text_highlight_rules"),kB=Ze.acequire("ace/lib/oop"),up=function(){const o=this.createKeywordMapper({keyword:["describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is","avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score","true|false","null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape"].join("|")},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"constant",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"entity.name.function",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:o,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()};kB.inherits(up,NB);const LB=Ze.acequire("ace/lib/oop"),{TextHighlightRules:FB}=Ze.acequire("ace/mode/text_highlight_rules"),DB="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function dp(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:DB},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}LB.inherits(dp,FB);const{JsonHighlightRules:BB}=Ze.acequire("ace/mode/json_highlight_rules"),zB=Ze.acequire("ace/lib/oop"),zw=function(e){e=e||"json";const t={},n=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("(?:[^"]*_)?script"|"inline"|"source")(\\s*?)(:)(\\s*?)(""")',next:"script-start",merge:!1,push:!0},{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"punctuation.start_triple_quote",regex:'"""',next:"string_literal",merge:!1,push:!0},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{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",merge:!1,regex:"{",next:e,push:!0},{token:"paren.lparen",merge:!1,regex:"[[(]"},{token:"paren.rparen",merge:!1,regex:"[\\])]"},{token:"paren.rparen",regex:"}",merge:!1,next:"pop"},{token:"punctuation.comma",regex:","},{token:"punctuation.colon",regex:":"},{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}];return t[e]=n,t[e+"-sql"]=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("query")(\\s*?)(:)(\\s*?)(""")',next:"sql-start",merge:!1,push:!0}].concat(n),t.string_literal=[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"},{token:"multi_string",regex:"."}],t};function qw(){const e=zw("start");this.$rules={...e},this.embedRules(dp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),this.embedRules(up,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}zB.inherits(qw,BB);function Vw(e,t){e.$rules=ye.defaultsDeep(e.$rules,zw(t)),e.embedRules(dp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),e.embedRules(up,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}async function qB(){return(await Promise.resolve().then(()=>mq)).someFunction()}const VB={id:"ace/mode/json_worker",src:qB},{WorkerClient:HB}=Ze.acequire("ace/worker/worker_client"),WB=Ze.acequire("ace/lib/oop"),{Mode:UB}=Ze.acequire("ace/mode/json"),{Tokenizer:GB}=Ze.acequire("ace/tokenizer"),{MatchingBraceOutdent:KB}=Ze.acequire("ace/mode/matching_brace_outdent"),{CstyleBehaviour:XB}=Ze.acequire("ace/mode/behaviour/cstyle"),{FoldMode:YB}=Ze.acequire("ace/mode/folding/cstyle"),Hw=function(){const t=new qw;t.normalizeRules(),this.$tokenizer=new GB(t.getRules()),this.$outdent=new KB,this.$behaviour=new XB,this.foldingRules=new YB};WB.inherits(Hw,UB),Hw.prototype.createWorker=function(e){const t=new HB(["ace"],VB,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(n){e.setAnnotations(n.data)}),t.on("terminate",function(){e.clearAnnotations()}),t};function Gt(e,t,n,r){return typeof t=="object"&&(t=t.source),[{token:e.concat(["whitespace"]),regex:t+"(\\s*)$",next:n},{token:e,regex:t,next:r}]}function Oi(){return[].concat.apply([],arguments)}const JB=Ze.acequire("ace/lib/oop"),{TextHighlightRules:QB}=Ze.acequire("ace/mode/text_highlight_rules");function fp(){const e="describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is",t="true|false",n="avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score",r="null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape";this.createKeywordMapper({keyword:[e,n,t,r].join("|")},"identifier",!0);const o=[e,n,t,r].join("|").split("|");let i=Gt(["url.part"],/([^?\/,\s]+)/,"start");i=i.map(a=>(a.onMatch=(l,s,c)=>o.includes(l==null?void 0:l.toLowerCase())?"url.select_keyword":a.token,a)),this.$rules={"start-sql":[{token:"whitespace",regex:"\\s+"},{token:"paren.lparen",regex:"{",next:"json-sql",push:!0},{regex:"",next:"start"}],start:Oi([{token:"warning",regex:"#!.*$"},{token:"comment",regex:/^#.*$/},{token:"paren.lparen",regex:"{",next:"json",push:!0}],Gt(["method"],/([a-zA-Z]+)/,"start","method_sep"),[{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}]),method_sep:Oi(Gt(["whitespace","url.protocol_host","url.slash"],/(\s+)(https?:\/\/[^?\/,]+)(\/)/,"start","url"),Gt(["whitespace","url.protocol_host"],/(\s+)(https?:\/\/[^?\/,]+)/,"start","url"),Gt(["whitespace","url.slash"],/(\s+)(\/)/,"start","url"),Gt(["whitespace"],/(\s+)/,"start","url")),url:Oi(Gt(["url.part"],/(_sql)/,"start-sql","url-sql"),i,Gt(["url.comma"],/(,)/,"start"),Gt(["url.slash"],/(\/)/,"start"),Gt(["url.questionmark"],/(\?)/,"start","urlParams")),urlParams:Oi(Gt(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start"),Gt(["url.param"],/([^&=]+)/,"start"),Gt(["url.amp"],/(&)/,"start")),"url-sql":Oi(Gt(["url.part"],/([^?\/,\s]+)/,"start-sql"),Gt(["url.comma"],/(,)/,"start-sql"),Gt(["url.slash"],/(\/)/,"start-sql"),Gt(["url.questionmark"],/(\?)/,"start-sql","urlParams-sql")),"urlParams-sql":Oi(Gt(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start-sql"),Gt(["url.param"],/([^&=]+)/,"start-sql"),Gt(["url.amp"],/(&)/,"start-sql"))},Vw(this),this.constructor===fp&&this.normalizeRules()}JB.inherits(fp,QB);const ZB=Ze.acequire("ace/lib/oop"),{TextHighlightRules:ez}=Ze.acequire("ace/mode/text_highlight_rules"),tz="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function Ww(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:tz},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}ZB.inherits(Ww,ez);const nz=Ze.acequire("ace/lib/oop"),rz=Ze.acequire("ace/mode/text").Mode;Ze.acequire("ace/tokenizer");function pp(){}nz.inherits(pp,rz),(function(){this.HighlightRules=Ww,this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return 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)}}).call(pp.prototype);const oz=Ze.acequire("ace/lib/oop"),iz=Ze.acequire("ace/mode/text").Mode,az=Ze.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,sz=Ze.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,lz=Ze.acequire("ace/mode/folding/cstyle").FoldMode,cz=Ze.acequire("ace/worker/worker_client").WorkerClient,uz=Ze.acequire("ace/tokenizer").Tokenizer;function hp(){this.$tokenizer=new uz(new fp().getRules()),this.$outdent=new az,this.$behaviour=new sz,this.foldingRules=new lz,this.createModeDelegates({"script-":pp})}oz.inherits(hp,iz),(function(){this.getCompletions=function(){return[]},this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return e!=="string_literal"&&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.createWorker=function(e){const t=new cz(["ace","sense_editor"],AB,"SenseWorker");return t.attachToDocument(e.getDocument()),t.on("error",function(n){e.setAnnotations([n.data])}),t.on("ok",function(n){e.setAnnotations(n.data)}),t}}).call(hp.prototype);var Da={exports:{}};(function(){Ze.define("ace/autocomplete/text_completer",["require","exports","module"],function(n,r){r.getCompletions=function(o,i,a,l,s){s(null,[])}}),Ze.acequire("ace/ext/language_tools").setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o,i)=>{const{coreEditor:a}=n,l={lineNumber:r.row+1,column:r.column+1};a.autocompleter(l,o,i)}}])})();const dz=Ze.acequire("ace/range").Range,Hl=({start:e,end:t})=>new dz(e.lineNumber-1,e.column-1,t.lineNumber-1,t.column-1);class fz{constructor(t,n){this.editor=t,this.setActionsBar=(i,a="top")=>{i===null?this.$actions.css("visibility","hidden"):a==="top"?this.$actions.css({bottom:"auto",top:i,visibility:"visible"}):this.$actions.css({top:"auto",bottom:i,visibility:"visible"})},this.hideActionsBar=()=>{this.setActionsBar(null)},this.$actions=Ot(n),this.editor.setShowPrintMargin(!1),this.parser=new Dw(this),this.autocompleter=MB({coreEditor:this}).getCompletions;const r=this.editor.getSession();r.setMode(new hp);const o=localStorage.getItem("editor:MaxTokenCount");o&&this.setMaxTokenCount(o),r.setFoldStyle("markbeginend"),r.setTabSize(2),r.setUseWrapMode(!0),this.resize=nb(this.editor),this._aceOnPaste=this.editor.onPaste,this.editor.onPaste=this.DO_NOT_USE_onPaste.bind(this),this.editor.setOptions({enableBasicAutocompletion:!0}),this.editor.$blockScrolling=1/0,this.hideActionsBar(),this.editor.focus(),t.coreEditor=this}setMaxTokenCount(t){var r;(r=this.editor.getSession().getMode().getTokenizer())==null||r.$setMaxTokenCount(t)}getParser(){return this.parser}getAutocompleter(){return this.autocompleter}waitForLatestTokens(){return new Promise(t=>{const n=this.editor.getSession(),r=25,o=()=>{n.bgTokenizer&&(n.bgTokenizer.running?setTimeout(o,r):t())};setTimeout(o,0)})}getLineState(t){return this.editor.getSession().getState(t-1)}getValueInRange(t){return this.editor.getSession().getTextRange(Hl(t))}getTokenProvider(){return new fN(this.editor.getSession())}getValue(){return this.editor.getValue()}async setValue(t,n){this.editor.getSession().setValue(t),n&&await this.forceRetokenize()}getLineValue(t){return this.editor.getSession().getLine(t-1)}getCurrentPosition(){const t=this.editor.getCursorPosition();return{lineNumber:t.row+1,column:t.column+1}}clearSelection(){this.editor.clearSelection()}getTokenAt(t){return this.getTokenProvider().getTokenAt(t)}insert(t,n){if(typeof t=="string"){this.editor.insert(t);return}this.editor.getSession().getDocument().insert({column:t.column-1,row:t.lineNumber-1},n||"")}moveCursorToPosition(t){this.editor.moveCursorToPosition({row:t.lineNumber-1,column:t.column-1})}replace(t,n){this.editor.getSession().replace(Hl(t),n)}getLines(t,n){return this.editor.getSession().getLines(t-1,n-1)}replaceRange(t,n){const r=this.editor.getCursorPosition();this.editor.getSession().replace(Hl(t),n);const o=Math.max(t.start.lineNumber-1+n.split(`
275
+ `).length-1,1);r.row=Math.min(r.row,o),this.editor.moveCursorToPosition(r),this.editor.clearSelection()}getSelectionRange(){const t=this.editor.getSelectionRange();return{start:{lineNumber:t.start.row+1,column:t.start.column+1},end:{lineNumber:t.end.row+1,column:t.end.column+1}}}getLineCount(){return this.editor.getSession().getLength()}addMarker(t){return this.editor.getSession().addMarker(Hl(t),"ace_snippet-marker","fullLine",!1)}removeMarker(t){this.editor.getSession().removeMarker(t)}getWrapLimit(){return this.editor.getSession().getWrapLimit()}on(t,n){t==="changeCursor"?this.editor.getSession().selection.on(t,n):t==="changeSelection"?this.editor.on(t,n):this.editor.getSession().on(t,n)}off(t,n){t==="changeSelection"&&this.editor.off(t,n)}isCompleterActive(){return!!(this.editor.completer&&this.editor.completer.activated)}forceRetokenize(){const t=this.editor.getSession();return console.log(333333,t,this.editor),new Promise(n=>{setTimeout(function(){let r;for(r=0;r<t.getLength();r++)console.log(4444444,r,t.getTokens),t.getTokens(r);n()})})}DO_NOT_USE_onPaste(t){if(t&&hN(t)){const n=mN(t);this.editor.insert(n);return}this._aceOnPaste.call(this.editor,t)}execCommand(t){this.editor.execCommand(t)}getContainer(){return this.editor.container}setStyles(t){this.editor.getSession().setUseWrapMode(t.wrapLines),this.editor.container.style.fontSize=t.fontSize}registerKeyboardShortcut(t){this.editor.commands.addCommand({exec:t.fn,name:t.name,bindKey:t.keys})}legacyUpdateUI(t){if(this.$actions&&t){const n=Ot(this.editor.container).offset().top,r=t.start.lineNumber,o=t.start.column,i=this.getLineValue(r),a=this.getWrapLimit()-5,l=i.length>a,s=n-(window.pageYOffset||0),c=d=>this.editor.renderer.textToScreenCoordinates(d-1,o).pageY-s,u=c(r);if(u>=0){const{bottom:d}=this.editor.container.getBoundingClientRect();if(u>d-s){this.setActionsBar(0,"bottom");return}let y=0;if(l){const x=Ot(this.editor.container.querySelector("textArea")),E=this.getLineValue(r).length<a;if(x&&E)y+=this.getLineValue(r).length*x.height();else{if(r>1){this.setActionsBar(c(r-1));return}this.setActionsBar(c(r+1));return}}this.setActionsBar(u+y);return}if(this.editor.renderer.textToScreenCoordinates(t.end.lineNumber,t.end.column).pageY-n>=0){this.setActionsBar(0);return}}}registerAutocompleter(t){langTools.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o)=>{const i={lineNumber:n.row+1,column:n.column+1};t(i,r,o)}}])}destroy(){this.editor.destroy()}}(Da.exports==null?{}:Da.exports).default||Da.exports,(Da.exports==null?{}:Da.exports).getCompletions;const pz=Ze.acequire("ace/lib/oop"),hz=Ze.acequire("ace/mode/json_highlight_rules").JsonHighlightRules;function mp(){this.$rules={},Vw(this,"start"),this.$rules.start.unshift({token:"warning",regex:"#!.*$"},{token:"comment",regex:"#.*$"}),this.constructor===mp&&this.normalizeRules()}pz.inherits(mp,hz);const mz=Ze.acequire("ace/lib/oop"),gz=Ze.acequire("ace/mode/json").Mode,vz=Ze.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,_z=Ze.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,yz=Ze.acequire("ace/mode/folding/cstyle").FoldMode;Ze.acequire("ace/worker/worker_client");const bz=Ze.acequire("ace/tokenizer").Tokenizer;function gp(){this.$tokenizer=new bz(new mp().getRules()),this.$outdent=new vz,this.$behaviour=new _z,this.foldingRules=new yz}mz.inherits(gp,gz),(function(){this.createWorker=function(){return null},this.$id="sense/mode/input"}).call(gp.prototype);function wz(e){const t=Ze.acequire("ace/ace").edit(e),n=new gp;return t.$blockScrolling=1/0,t.resize=nb(t),t.update=(r,o,i)=>{typeof o=="function"&&(i=o,o=void 0);const a=t.getSession();a.setMode(r?o||n:"ace/mode/text"),a.setValue(r),typeof i=="function"&&setTimeout(i)},t.append=(r,o,i)=>{typeof o=="function"&&(i=o,o=!0),ye.isUndefined(o)&&(o=!0);const a=t.getSession(),l=a.getLength();o&&t.moveCursorTo(Math.max(0,l-1),0),a.insert({row:l,column:0},`
276
276
  `+r),t.moveCursorTo(l+1,0),typeof i=="function"&&setTimeout(i)},function(o){o.setMode("ace/mode/text"),o.setFoldStyle("markbeginend"),o.setTabSize(2),o.setUseWrapMode(!0)}(t.getSession()),t.setShowPrintMargin(!1),t.setReadOnly(!0),t}const xz=({value:e=[],onChange:t})=>{const[n,r]=M.useState(!1),[o,i]=M.useState(""),a=u=>{i(u.target.value)},l=()=>{r(!0)},s=M.useCallback(u=>{if(u.target.value.length==0)return Vy.warning(fe.jsx(nn.FormattedMessage,{id:"command.message.invalid.tag"}));t&&t([...e||[],u.target.value]),r(!1),i("")},[e,t]),c=M.useCallback(u=>{const f=[...e];f.splice(u,1),t&&t(f)},[e,t]);return fe.jsxs("div",{children:[e.map((u,f)=>fe.jsx(cl,{closable:!0,style:{padding:"0 5px",fontSize:14,margin:"5px 10px 5px 0"},onClose:()=>c(f),children:u},f)),n&&fe.jsx(xo,{value:o,onChange:a,style:{width:100},onBlur:s,onPressEnter:s}),!n&&fe.jsxs(cl,{onClick:l,style:{padding:"0 5px",fontSize:14},children:[fe.jsx(gn.PlusOutlined,{})," ",fe.jsx(nn.FormattedMessage,{id:"command.btn.newtag"})]})]})},Sz=e=>{const[t]=In.useForm(),n=async()=>{try{const r=await t.validateFields();e.onConfirm(r)}catch(r){console.error(r)}};return fe.jsx(Nn,{title:fe.jsx(nn.FormattedMessage,{id:"command.manage.save.title"}),open:!0,onCancel:e.onClose,onOk:n,zIndex:1003,cancelText:fe.jsx(nn.FormattedMessage,{id:"form.button.cancel"}),okText:fe.jsx(nn.FormattedMessage,{id:"form.button.save"}),children:fe.jsxs(In,{layout:"vertical",children:[fe.jsx(In.Item,{name:"title",label:fe.jsx(nn.FormattedMessage,{id:"command.table.field.name"}),rules:[{required:!0,message:"请输入标题"}],children:fe.jsx(xo,{})}),fe.jsx(In.Item,{name:"tag",label:fe.jsx(nn.FormattedMessage,{id:"command.table.field.tag"}),children:fe.jsx(xz,{})})]})})};class Cz extends M.Component{constructor(t){super(t),this.mouseEnter=()=>{this.state.isPopoverOpen||this.props.getCurl().then(n=>{this.setState({curlCode:n})})},this.onButtonClick=()=>{this.setState(n=>({isPopoverOpen:!n.isPopoverOpen}))},this.closePopover=()=>{this.setState({isPopoverOpen:!1})},this.openDocs=async()=>{this.closePopover();const n=await this.props.getDocumentation();n&&window.open(n,"_blank")},this.autoIndent=n=>{this.closePopover(),this.props.autoIndent(n)},this.saveAsCommonCommand=()=>{this.setState({isPopoverOpen:!1,modalVisible:!0})},this.handleClose=()=>{this.setState({modalVisible:!1})},this.handleConfirm=async n=>{var a,l;const r=await this.props.saveAsCommonCommand(),o={...n,requests:r},i=await((a=await sN(o))==null?void 0:a.json());i.error?Oa.error({message:((l=i.error)==null?void 0:l.reason)||i.error}):(this.handleClose(),Oa.success({message:fe.jsx(nn.FormattedMessage,{id:"app.message.save.success"})}),MN(i))},this.state={curlCode:"",isPopoverOpen:!1,modalVisible:!1}}async copyAsCurl(){try{await this.copyText(this.state.curlCode),Oa.open({message:"Request copied as cURL",placement:"bottomRight"})}catch(t){console.error(t),Oa.error({message:"Could not copy request as cURL",placement:"bottomRight"})}}async copyText(t){var n;if((n=window.navigator)!=null&&n.clipboard){await window.navigator.clipboard.writeText(t);return}throw new Error("Could not copy to clipboard!")}render(){var t,n;return fe.jsxs("span",{onMouseEnter:this.mouseEnter,children:[fe.jsx(dd,{id:"contextMenu",open:this.state.isPopoverOpen,placement:"bottomLeft",content:fe.jsxs("div",{children:[(t=window.navigator)!=null&&t.clipboard?fe.jsx("div",{children:fe.jsx(cr,{type:"text",id:"ConCopyAsCurl",disabled:!((n=window.navigator)!=null&&n.clipboard),onClick:()=>{this.closePopover(),this.copyAsCurl()},children:fe.jsx(nn.FormattedMessage,{id:"console.menu.copy_as_curl"})},"Copy as cURL")}):null,fe.jsx("div",{children:fe.jsx(cr,{type:"text",onClick:this.autoIndent,children:fe.jsx(nn.FormattedMessage,{id:"console.menu.auto_indent"})},"Auto indent")}),fe.jsx("div",{children:fe.jsx(cr,{type:"text",onClick:this.saveAsCommonCommand,children:fe.jsx(nn.FormattedMessage,{id:"console.menu.save_as_command"})},"Save as common command")})]}),children:fe.jsx("button",{className:"euiButtonIcon--primary",style:{color:"#0061a6",border:"none"},onClick:this.onButtonClick,children:fe.jsx(gn.SettingOutlined,{})})}),this.state.modalVisible&&fe.jsx(Sz,{onClose:this.handleClose,onConfirm:this.handleConfirm})]})}}function Ez(e,t,n){const r=e.getLineValue(t.lineNumber),o={...ql(e,{column:r.length+1,lineNumber:t.lineNumber},n,!0)},i=zl(o.method);return Ei(o.urlTokenPath,o,e,!0,i),o.endpoint}async function Oz(e,t){t.preventDefault(),await e.autoIndent(),e.getCoreEditor().getContainer().focus()}function $z(e,t){return e.getRequestsInRange().then(n=>{if(!n||n.length===0)return null;const r=n[0].range.end;r.column=r.column-1;const o=Ez(e.getCoreEditor(),r,e.parser);return o&&o.documentation&&o.documentation.indexOf("http")!==-1?o.documentation.replace("/master/",`/${t}/`).replace("/current/",`/${t}/`):null})}const Wl=(e,t)=>()=>{const n=M.useContext(e);if(!n)throw new Error(`${t} should be used inside of ${t}Provider!`);return n};var vp={};(function(e){var t=vt&&vt.__spreadArray||function(S,w,O){if(O||arguments.length===2)for(var R=0,N=w.length,P;R<N;R++)(P||!(R in w))&&(P||(P=Array.prototype.slice.call(w,0,R)),P[R]=w[R]);return S.concat(P||Array.prototype.slice.call(w))};Object.defineProperty(e,"__esModule",{value:!0}),e.dual=e.getEndomorphismMonoid=e.SK=e.hole=e.constVoid=e.constUndefined=e.constNull=e.constFalse=e.constTrue=e.unsafeCoerce=e.apply=e.getRing=e.getSemiring=e.getMonoid=e.getSemigroup=e.getBooleanAlgebra=void 0,e.identity=s,e.constant=c,e.flip=u,e.flow=f,e.tuple=d,e.increment=y,e.decrement=x,e.absurd=E,e.tupled=h,e.untupled=_,e.pipe=p,e.not=g;var n=function(S){return function(){return{meet:function(w,O){return function(R){return S.meet(w(R),O(R))}},join:function(w,O){return function(R){return S.join(w(R),O(R))}},zero:function(){return S.zero},one:function(){return S.one},implies:function(w,O){return function(R){return S.implies(w(R),O(R))}},not:function(w){return function(O){return S.not(w(O))}}}}};e.getBooleanAlgebra=n;var r=function(S){return function(){return{concat:function(w,O){return function(R){return S.concat(w(R),O(R))}}}}};e.getSemigroup=r;var o=function(S){var w=(0,e.getSemigroup)(S);return function(){return{concat:w().concat,empty:function(){return S.empty}}}};e.getMonoid=o;var i=function(S){return{add:function(w,O){return function(R){return S.add(w(R),O(R))}},zero:function(){return S.zero},mul:function(w,O){return function(R){return S.mul(w(R),O(R))}},one:function(){return S.one}}};e.getSemiring=i;var a=function(S){var w=(0,e.getSemiring)(S);return{add:w.add,mul:w.mul,one:w.one,zero:w.zero,sub:function(O,R){return function(N){return S.sub(O(N),R(N))}}}};e.getRing=a;var l=function(S){return function(w){return w(S)}};e.apply=l;function s(S){return S}e.unsafeCoerce=s;function c(S){return function(){return S}}e.constTrue=c(!0),e.constFalse=c(!1),e.constNull=c(null),e.constUndefined=c(void 0),e.constVoid=e.constUndefined;function u(S){return function(){for(var w=[],O=0;O<arguments.length;O++)w[O]=arguments[O];return w.length>1?S(w[1],w[0]):function(R){return S(R)(w[0])}}}function f(S,w,O,R,N,P,L,z,J){switch(arguments.length){case 1:return S;case 2:return function(){return w(S.apply(this,arguments))};case 3:return function(){return O(w(S.apply(this,arguments)))};case 4:return function(){return R(O(w(S.apply(this,arguments))))};case 5:return function(){return N(R(O(w(S.apply(this,arguments)))))};case 6:return function(){return P(N(R(O(w(S.apply(this,arguments))))))};case 7:return function(){return L(P(N(R(O(w(S.apply(this,arguments)))))))};case 8:return function(){return z(L(P(N(R(O(w(S.apply(this,arguments))))))))};case 9:return function(){return J(z(L(P(N(R(O(w(S.apply(this,arguments)))))))))}}}function d(){for(var S=[],w=0;w<arguments.length;w++)S[w]=arguments[w];return S}function y(S){return S+1}function x(S){return S-1}function E(S){throw new Error("Called `absurd` function which should be uncallable")}function h(S){return function(w){return S.apply(void 0,w)}}function _(S){return function(){for(var w=[],O=0;O<arguments.length;O++)w[O]=arguments[O];return S(w)}}function p(S,w,O,R,N,P,L,z,J){switch(arguments.length){case 1:return S;case 2:return w(S);case 3:return O(w(S));case 4:return R(O(w(S)));case 5:return N(R(O(w(S))));case 6:return P(N(R(O(w(S)))));case 7:return L(P(N(R(O(w(S))))));case 8:return z(L(P(N(R(O(w(S)))))));case 9:return J(z(L(P(N(R(O(w(S))))))));default:{for(var X=arguments[0],j=1;j<arguments.length;j++)X=arguments[j](X);return X}}}e.hole=E;var m=function(S,w){return w};e.SK=m;function g(S){return function(w){return!S(w)}}var b=function(){return{concat:function(S,w){return f(S,w)},empty:s}};e.getEndomorphismMonoid=b;var C=function(S,w){var O=typeof S=="number"?function(R){return R.length>=S}:S;return function(){var R=Array.from(arguments);return O(arguments)?w.apply(this,R):function(N){return w.apply(void 0,t([N],R,!1))}}};e.dual=C})(vp);const _p={data:null,type:"unknown"},Uw=Wa.produce({requestInFlight:!1,lastResult:_p},vp.identity),Tz=(e,t)=>Wa.produce(e,n=>{if(t.type==="sendRequest"){n.requestInFlight=!0,n.lastResult=_p;return}if(t.type==="requestSuccess"){n.requestInFlight=!1,n.lastResult=t.payload;return}if(t.type==="requestFail"){n.requestInFlight=!1,n.lastResult={..._p,error:t.payload};return}}),Gw=M.createContext(Uw),Kw=M.createContext(()=>{});function Pz({children:e}){const[t,n]=M.useReducer(Tz,Uw);return fe.jsx(Gw.Provider,{value:t,children:fe.jsx(Kw.Provider,{value:n,children:e})})}const Xw=Wl(Gw,"RequestReadContext"),Rz=Wl(Kw,"RequestActionContext"),Yw=M.createContext(null);function jz({children:e,value:t}){return fe.jsx(Yw.Provider,{value:t,children:e})}const yp=()=>{const e=M.useContext(Yw);if(e==null)throw new Error("useServicesContext must be used inside the ServicesContextProvider.");return e},Jw=Wa.produce({ready:!1,currentTextObject:null,sensorEditor:null},vp.identity),Mz=(e,t)=>Wa.produce(e,n=>{if(t.type==="setInputEditor"){t.payload&&(n.ready=!0,n.sensorEditor=t.payload);return}if(t.type==="setCurrentTextObject"){n.currentTextObject=t.payload;return}return n}),Qw=M.createContext(Jw),Zw=M.createContext(()=>{});function Iz({children:e}){const[t,n]=M.useReducer(Mz,Jw,r=>({...r}));return fe.jsx(Qw.Provider,{value:t,children:fe.jsx(Zw.Provider,{value:n,children:e})})}const ex=Wl(Qw,"EditorReadContext"),Az=Wl(Zw,"EditorActionContext");function Nz(e){const{requests:t}=e._source;return t.map(r=>{const{method:o,path:i,body:a}=r;return["LOAD","FROM","SELECT"].includes((o||"").toUpperCase())?a:`${o} ${i}
277
277
  ${a}`}).join(`
278
278
  `)}const tx=e=>{const t=Rz(),{clusterID:n}=yp(),{sensorEditor:r}=ex();return M.useCallback(async()=>{let o="";try{if(!r)return;const i=await r.getRequestsInRange();if(!i.length){console.info("No request selected. Select a request by placing the cursor inside it.");return}for(let l=0;l<i.length;l++){const{url:s,method:c,data:u}=i[l];switch(c==null?void 0:c.toUpperCase()){case"LOAD":o="LOAD";const f=u[0]?u[0].slice(4).trim():s,d=AN(f),y=r.getCoreEditor().getCurrentPosition().lineNumber,x=await r.getRequestRange(y),E=Nz(d);await r.getCoreEditor().replaceRange(x,E);continue;case"CONFIG":const h=s;let _=0;if(u&&u.length>0){const O=u[0].split(" ");if(O.length>=3&&(_=parseInt(O[2]),isNaN(_))){t({type:"requestSuccess",payload:{data:{success:!1,error:"wrong config value: "+O[2]}}});continue}}h=="MaxTokenCount"&&localStorage.setItem("editor:"+h,_+""),t({type:"requestSuccess",payload:{data:{success:!0}}});continue;case"FROM":i[l].url="_sql",i[l].method="POST",i[l].rawRequest=i[l].data[0];let p=i[l].data[0]||"";const m=p.search(/\s+(select)\s+/i);if(m==-1){const w=Error("invalid FROM request");throw w.name="FRONT_ERROR",w}const g=p.slice(0,m);p=p.slice(m);const b=p.search(/\s+(order|where|limit)\s+/i);b>-1?p=p.slice(0,b)+" "+g+p.slice(b):p=p+" "+g;let C={query:p.trim()};i[l].data[0]=JSON.stringify(C);break;case"SELECT":i[l].url="_sql",i[l].method="POST",i[l].rawRequest=i[l].data[0];let S={query:i[l].data[0]};i[l].data[0]=JSON.stringify(S);break}}t({type:"sendRequest",payload:void 0});const a=await e({requests:i,clusterID:n});t({type:"requestSuccess",payload:{data:a}})}catch(i){if(o==="LOAD")return;if(i){let a={data:[i]};i.name==="FRONT_ERROR"&&(a={data:[{response:{value:(i==null?void 0:i.message)||i,contentType:"plain/text"}}]}),t({type:"requestSuccess",payload:a})}else t({type:"requestFail",payload:void 0})}},[t,n,r])},kz=()=>{const e=Az();return M.useCallback(t=>{e({type:"setInputEditor",payload:t})},[e])},Lz=500,Fz=()=>{const e=M.useRef(Promise.resolve()),{services:{objectStorageClient:t}}=yp(),{currentTextObject:n}=ex();return M.useCallback(ye.throttle(r=>{const{current:o}=e;n&&o.finally(()=>t.text.update({...n,text:r,updatedAt:Date.now()}))},Lz,{trailing:!0}),[t,n])};function nx(e,t){e.setStyles?e.setStyles({wrapLines:t.wrapMode,fontSize:t.fontSize+"px"}):(e.getSession().setUseWrapMode(t.wrapMode),e.container.style.fontSize=t.fontSize+"px")}function bp(e){return[e.clientWidth,e.clientHeight]}class Dz extends Qd.EventEmitter{constructor(t,n={}){super(),this.destroyed=!1,this.expectedSize=null,this.el=t,this.observer=new Op(()=>{if(this.expectedSize){const r=ye.isEqual(bp(t),this.expectedSize);if(this.expectedSize=null,r)return}this.emit("resize")}),n.disabled||this.enable()}enable(){this.destroyed||(this.expectedSize=bp(this.el),this.observer.observe(this.el))}modifySizeWithoutTriggeringResize(t){try{t()}finally{this.el&&(this.expectedSize=bp(this.el))}}destroy(){this.destroyed||(this.destroyed=!0,this.observer.disconnect(),this.observer=null,this.expectedSize=null,this.el=null,this.removeAllListeners())}}function rx(e,...t){const n=new Dz(e);return n.on("resize",()=>t.forEach(r=>{r.getCoreEditor?r.getCoreEditor().resize():r.resize(),r.updateActionsBar&&r.updateActionsBar()})),()=>n.destroy()}const Bz={position:"absolute",top:"0",left:"0",bottom:"0",right:"0"},zz=e=>{const t=Fz(),{saveCurrentTextObjectRef:n,sendRequestToES:r}=e,o=tx(r);return M.useEffect(()=>{n.current=t},[n,t]),fe.jsx(Vr,{title:fe.jsx(nn.FormattedMessage,{id:"console.SendRequestButton.ToolTip"}),children:fe.jsx("button",{"data-test-subj":"sendRequestButton","aria-label":"Click to send request",className:"conApp__editorActionButton conApp__editorActionButton--success",onClick:o,children:fe.jsx(gn.PlayCircleOutlined,{})})})},qz=`GET _search
@@ -280,11 +280,11 @@ ${a}`}).join(`
280
280
  "query": {
281
281
  "match_all": {}
282
282
  }
283
- }`,Vz=({selectedCluster:e,initialText:t,saveEditorContent:n,paneKey:r,sendRequestToES:o})=>{var _;const{id:i,endpoint:a}=e,l=M.useRef(null),s=M.useRef(null),c=M.useRef(null),u=kz(),f=M.useRef(null),d=M.useRef(null),y=M.useRef(()=>{}),x=M.useRef(()=>{});y.current=tx(o);const{services:{settings:E}}=yp();M.useEffect(()=>{const p=Ze.edit(l.current);d.current=p;const m=new fz(p,s.current);p.commands.addCommand({name:"exec_request",bindKey:{win:"Ctrl-enter",mac:"Command-enter|Ctrl-enter"},exec:()=>{y.current(),p.execCommand("iSearch")}});const g=new lN(m);c.current=g,u(g),g.paneKey=r,g.update(t||qz),nx(g.getCoreEditor(),{fontSize:12,wrapMode:!0,autocomplete:{fields:!1,indices:!1,templates:!1},polling:!1,tripleQuotes:!1});function b(){let w;g.getCoreEditor().on("change",()=>{w&&clearTimeout(w),w=window.setTimeout(C,500)})}function C(){try{const w=g.getCoreEditor().getValue();n(w)}catch(w){console.error(w)}}const S=rx(l.current,g);return b(),()=>{S(),c.current&&c.current.getCoreEditor().destroy()}},[t,r,n,u]),M.useEffect(()=>{i&&(sb(E,E.getAutocomplete(),i),d.current&&(d.current.clusterID=i)&&(d.current.clusterInfo=e))},[i]);const h=async()=>{const p=c.current;if(p==null){console.warn("editor is null");return}const m=await p.getRequestsInRange();return m==null?void 0:m.map(b=>({method:b.method,path:b.url,body:(b.data||[]).join(`
283
+ }`,Vz=({selectedCluster:e,initialText:t,saveEditorContent:n,paneKey:r,sendRequestToES:o})=>{var _;const{id:i,endpoint:a}=e,l=M.useRef(null),s=M.useRef(null),c=M.useRef(null),u=kz(),f=M.useRef(null),d=M.useRef(null),y=M.useRef(()=>{}),x=M.useRef(()=>{});y.current=tx(o);const{services:{settings:E}}=yp();M.useEffect(()=>{console.log(55555,l.current,l.current,Ze);const p=Ze.edit(l.current);console.log(666666,p),d.current=p;const m=new fz(p,s.current);p.commands.addCommand({name:"exec_request",bindKey:{win:"Ctrl-enter",mac:"Command-enter|Ctrl-enter"},exec:()=>{y.current(),p.execCommand("iSearch")}});const g=new lN(m);c.current=g,u(g),g.paneKey=r,g.update(t||qz),nx(g.getCoreEditor(),{fontSize:12,wrapMode:!0,autocomplete:{fields:!1,indices:!1,templates:!1},polling:!1,tripleQuotes:!1});function b(){let w;g.getCoreEditor().on("change",()=>{w&&clearTimeout(w),w=window.setTimeout(C,500)})}function C(){try{const w=g.getCoreEditor().getValue();console.log(121212,w),n(w)}catch(w){console.error(w)}}const S=rx(l.current,g);return b(),()=>{S(),c.current&&c.current.getCoreEditor().destroy()}},[t,r,n,u]),M.useEffect(()=>{i&&(sb(E,E.getAutocomplete(),i),d.current&&(d.current.clusterID=i)&&(d.current.clusterInfo=e))},[i]);const h=async()=>{const p=c.current;if(p==null){console.warn("editor is null");return}const m=await p.getRequestsInRange();return m==null?void 0:m.map(b=>({method:b.method,path:b.url,body:(b.data||[]).join(`
284
284
  `)}))};return fe.jsx("div",{style:{...Bz,height:"100%"},"data-test-subj":"console-application",className:"conApp",children:fe.jsxs("div",{className:"conApp__editor",children:[fe.jsx("ul",{className:"conApp__autoComplete",id:"autocomplete"}),fe.jsxs("div",{className:"conApp__editorActions",id:"ConAppEditorActions",ref:s,children:[fe.jsx(zz,{saveCurrentTextObjectRef:x,sendRequestToES:o}),fe.jsx(Cz,{getCurl:()=>c.current.getRequestsAsCURL(a),getDocumentation:()=>$z(c.current,""),autoIndent:p=>{Oz(c.current,p)},saveAsCommonCommand:h,ref:f})]}),fe.jsx("div",{ref:l,id:`Editor_${(_=c.current)==null?void 0:_.paneKey}`,className:"conApp__editorContent","data-test-subj":"request-editor",onClick:()=>{var p,m;(p=f.current)==null||p.closePopover(),(m=d.current)==null||m.focus()}})]})})};ace.define("ace/mode/yaml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"list.markup",regex:/^(?:-{3}|\.{3})\s*(?=#|$)/},{token:"list.markup",regex:/^\s*[\-?](?:$|\s)/},{token:"constant",regex:"!![\\w//]+"},{token:"constant.language",regex:"[&\\*][a-zA-Z0-9-_]+"},{token:["meta.tag","keyword"],regex:/^(\s*\w.*?)(:(?=\s|$))/},{token:["meta.tag","keyword"],regex:/(\w+?)(\s*:(?=\s|$))/},{token:"keyword.operator",regex:"<<\\w*:\\w*"},{token:"keyword.operator",regex:"-\\s*(?=[{])"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:/[|>][-+\d\s]*$/,onMatch:function(a,l,s,c){var u=/^\s*/.exec(c)[0];return s.length<1?s.push(this.next):s[0]="mlString",s.length<2?s.push(u.length):s[1]=u.length,this.token},next:"mlString"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"constant.numeric",regex:/(\b|[+\-\.])[\d_]+(?:(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)(?=[^\d-\w]|$)/},{token:"constant.numeric",regex:/[+\-]?\.inf\b|NaN\b|0x[\dA-Fa-f_]+|0b[10_]+/},{token:"constant.language.boolean",regex:"\\b(?:true|false|TRUE|FALSE|True|False|yes|no)\\b"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:/[^\s,:\[\]\{\}]+/}],mlString:[{token:"indent",regex:/^\s*$/},{token:"indent",regex:/^\s*/,onMatch:function(a,l,s){var c=s[1];return c>=a.length?(this.next="start",s.splice(0)):this.next="mlString",this.token},next:"mlString"},{token:"string",regex:".+"}]},this.normalizeRules()};r.inherits(i,o),t.YamlHighlightRules=i}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var l=i.getLine(a),s=l.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var f=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),f)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){var r=e("../../lib/oop"),o=e("./fold_mode").FoldMode,i=e("../../range").Range,a=t.FoldMode=function(){};r.inherits(a,o),(function(){this.getFoldWidgetRange=function(l,s,c){var u=this.indentationBlock(l,c);if(u)return u;var f=/\S/,d=l.getLine(c),y=d.search(f);if(!(y==-1||d[y]!="#")){for(var x=d.length,E=l.getLength(),h=c,_=c;++c<E;){d=l.getLine(c);var p=d.search(f);if(p!=-1){if(d[p]!="#")break;_=c}}if(_>h){var m=l.getLine(_).length;return new i(h,x,_,m)}}},this.getFoldWidget=function(l,s,c){var u=l.getLine(c),f=u.search(/\S/),d=l.getLine(c+1),y=l.getLine(c-1),x=y.search(/\S/),E=d.search(/\S/);if(f==-1)return l.foldWidgets[c-1]=x!=-1&&x<E?"start":"","";if(x==-1){if(f==E&&u[f]=="#"&&d[f]=="#")return l.foldWidgets[c-1]="",l.foldWidgets[c+1]="","start"}else if(x==f&&u[f]=="#"&&y[f]=="#"&&l.getLine(c-2).search(/\S/)==-1)return l.foldWidgets[c-1]="start",l.foldWidgets[c+1]="","";return x!=-1&&x<f?l.foldWidgets[c-1]="start":l.foldWidgets[c-1]="",f<E?"start":""}}).call(a.prototype)}),ace.define("ace/mode/yaml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/yaml_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/coffee"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./yaml_highlight_rules").YamlHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,l=e("./folding/coffee").FoldMode,s=function(){this.HighlightRules=i,this.$outdent=new a,this.foldingRules=new l,this.$behaviour=this.$defaultBehaviour};r.inherits(s,o),(function(){this.lineCommentStart=["#","//"],this.getNextLineIndent=function(c,u,f){var d=this.$getIndent(u);if(c=="start"){var y=u.match(/^.*[\{\(\[]\s*$/);y&&(d+=f)}return d},this.checkOutdent=function(c,u,f){return this.$outdent.checkOutdent(u,f)},this.autoOutdent=function(c,u,f){this.$outdent.autoOutdent(u,f)},this.$id="ace/mode/yaml"}).call(s.prototype),t.Mode=s});const ox=e=>!!(e&&e.indexOf("application/json")>=0);function Hz(e){return e?ox(e)?"ace/mode/json":e.indexOf("application/yaml")>=0?"ace/mode/yaml":"ace/mode/text":"ace/mode/text"}function Wz({clusterID:e}){const t=M.useRef(null),n=M.useRef(null),r="ConAppOutputTextarea",{lastResult:{data:o,error:i}}=Xw();return M.useEffect(()=>{var a;(a=n.current)==null||a.setValue("")},[e]),M.useEffect(()=>{n.current=wz(t.current);const a=t.current.querySelector("textarea");a.setAttribute("id",r),a.setAttribute("readonly","true"),nx(n.current,{fontSize:12,wrapMode:!0});const l=rx(t.current,n.current);return()=>{l(),n.current.destroy()}},[]),M.useEffect(()=>{var l;const a=n.current;if(o){if(!o.length){a.update(JSON.stringify(o,null,2),"ace/mode/json");return}a.update(o.map(s=>{const{value:c,contentType:u}=s.response;if(ox(u)){let f="",d=c;if(d=="")return"";try{let y="";if(d[0]=="#"){const x=d.indexOf(`
285
285
  `);f=d.slice(0,x),d=d.slice(x),y=f+`
286
286
  `+JSON.stringify(JSON.parse(d),null,2)}else y=JSON.stringify(JSON.parse(d),null,2);return y}catch(y){console.error(y)}}return c}).join(`
287
- `))}else if(i){const s=Hz((l=i.response)==null?void 0:l.contentType);if(s=="ace/mode/json"){a.update(JSON.stringify(JSON.parse(i.response.value),null,2),s);return}a.update(i.response.value,s)}else a.update("")},[o,i]),fe.jsx("div",{ref:t,className:"conApp__outputContent","data-test-subj":"response-editor",children:fe.jsx("div",{id:"ConAppOutput"})})}class wp{constructor(){this.panels=[]}registerPanel(t){this.panels.push(t)}getPanels(){return this.panels}}const ix=M.createContext({registry:new wp});function ax({children:e,registry:t}){return fe.jsx(ix.Provider,{value:{registry:t},children:e})}const Uz=()=>{const e=M.useContext(ix);if(e===void 0)throw new Error("usePanelContext must be used within a <PanelContextProvider />");return e};function sx({children:e,className:t,initialWidth:n=100,style:r={}}){const[o,i]=M.useState(`${n}%`),{registry:a}=Uz(),l=M.useRef(null);return M.useEffect(()=>{a.registerPanel({width:n,setWidth(s){i(s+"%"),this.width=s},getWidth(){return l.current.getBoundingClientRect().width}})},[n,a]),fe.jsx("div",{className:t,ref:l,style:{...r,width:o,display:"flex"},children:e})}function Gz(e){return fe.jsx("button",{...e,children:fe.jsx(gn.PauseOutlined,{})})}const lx={isDragging:!1,currentResizerPos:-1},cx=(e,t)=>e/t*100,Kz=({children:e,className:t,onPanelWidthChange:n,resizerClassName:r})=>{const o=M.Children.toArray(e),[i,a]=o,l=M.useRef(new wp),s=M.useRef(null),[c,u]=M.useState(lx),f=()=>s.current.getBoundingClientRect().width,d=M.useCallback(E=>{u({...c,isDragging:!0,currentResizerPos:E.clientX})},[c]),y=M.useCallback(E=>{const{key:h}=E;if(h==="ArrowLeft"||h==="ArrowRight"){E.preventDefault();const{current:_}=l,[p,m]=_.getPanels(),g=p.width-(h==="ArrowLeft"?1:-1),b=m.width-(h==="ArrowRight"?1:-1);p.setWidth(g),m.setWidth(b),n&&n([g,b])}},[n]);M.useEffect(()=>{var E;((E=ne==null?void 0:ne.env)==null?void 0:E.NODE_ENV)!=="production"&&o.length>2&&console.warn("[Split Panels Container] Detected more than two children; ignoring additional children.")},[o.length]);const x=[i,fe.jsx(Gz,{className:r,onKeyDown:y,onMouseDown:d},"resizer"),a];return fe.jsx(ax,{registry:l.current,children:fe.jsx("div",{className:t,ref:s,style:{display:"flex",height:"100%",width:"100%"},onMouseMove:E=>{if(c.isDragging){const{clientX:h}=E,{current:_}=l,[p,m]=_.getPanels(),g=h-c.currentResizerPos,b=f(),C=cx(p.getWidth()+g,b),S=cx(m.getWidth()-g,b);p.setWidth(C),m.setWidth(S),n&&n([C,S]),u({...c,currentResizerPos:h})}},onMouseUp:()=>{u(lx)},children:x})})},Xz=100;class Yz{constructor(t){this.storage=t,this.changeEmitter=new cS.BehaviorSubject(this.getHistory()||[])}getHistoryKeys(){return this.storage.keys().filter(t=>t.indexOf("hist_elem")===0).sort().reverse()}getHistory(){return this.getHistoryKeys().map(t=>this.storage.get(t))}change(t){const n=this.changeEmitter.subscribe(t);return()=>n.unsubscribe()}addToHistory(t,n,r){const o=this.getHistoryKeys();o.splice(0,Xz),o.forEach(l=>{this.storage.delete(l)});const i=new Date().getTime(),a="hist_elem_"+i;this.storage.set(a,{time:i,endpoint:t,method:n,data:r}),this.changeEmitter.next(this.getHistory())}updateCurrentState(t){const n=new Date().getTime();this.storage.set("editor_state",{time:n,content:t})}getLegacySavedEditorState(){const t=this.storage.get("editor_state");if(!t)return;const{time:n,content:r}=t;return{time:n,content:r}}deleteLegacySavedEditorState(){this.storage.delete("editor_state")}clearHistory(){this.getHistoryKeys().forEach(t=>this.storage.delete(t))}}function Jz(e){return new Yz(e.storage)}class Qz{constructor(t,n){this.engine=t,this.prefix=n}encode(t){return JSON.stringify(t)}decode(t){if(typeof t=="string")return JSON.parse(t)}encodeKey(t){return`${this.prefix}${t}`}decodeKey(t){if(ye.startsWith(t,this.prefix))return`${t.slice(this.prefix.length)}`}set(t,n){return this.engine.setItem(this.encodeKey(t),this.encode(n)),n}has(t){return this.engine.getItem(this.encodeKey(t))!=null}get(t,n){return this.has(t)?this.decode(this.engine.getItem(this.encodeKey(t))):n}delete(t){return this.engine.removeItem(this.encodeKey(t))}keys(){return ye.transform(ye.keys(this.engine),(t,n)=>{const r=this.decodeKey(n);r!=null&&t.push(r)})}}function Zz(e){return new Qz(e.engine,e.prefix)}class e4{constructor(t){this.storage=t}getFontSize(){return this.storage.get("font_size",12)}setFontSize(t){return this.storage.set("font_size",t),!0}getWrapMode(){return this.storage.get("wrap_mode",!0)}setWrapMode(t){return this.storage.set("wrap_mode",t),!0}setTripleQuotes(t){return this.storage.set("triple_quotes",t),!0}getTripleQuotes(){return this.storage.get("triple_quotes",!0)}getAutocomplete(){return this.storage.get("autocomplete_settings",{fields:!0,indices:!0,templates:!0,commands:!0})}setAutocomplete(t){return this.storage.set("autocomplete_settings",t),!0}getPolling(){return this.storage.get("console_polling",!0)}setPolling(t){return this.storage.set("console_polling",t),!0}toJSON(){return{autocomplete:this.getAutocomplete(),wrapMode:this.getWrapMode(),tripleQuotes:this.getTripleQuotes(),fontSize:parseFloat(this.getFontSize()),polling:!!this.getPolling()}}updateSettings({fontSize:t,wrapMode:n,tripleQuotes:r,autocomplete:o,polling:i}){this.setFontSize(t),this.setWrapMode(n),this.setTripleQuotes(r),this.setAutocomplete(o),this.setPolling(i)}}function t4({storage:e}){return new e4(e)}const n4="text-object";class r4{constructor(t,n){this.client=t,this.prefix=`console_local_${n}`}async create(t){const n=fS.v4(),r={id:n,...t};return this.client.set(`${this.prefix}_${n}`,r),r}async update(t){this.client.set(`${this.prefix}_${t.id}`,t)}async findAll(){const t=this.client.keys().filter(r=>r.includes(this.prefix)),n=[];for(const r of t)n.push(this.client.get(r));return n}}const o4=e=>({text:new r4(e,n4)}),Ba="#00bb1b",ux="#fcca00",dx="#ff4d4f",i4="#bbbbbb",xp="#d8d8d8",fx={green:Ba,yellow:ux,red:dx,available:Ba,unavailable:xp,online:Ba,offline:xp,active:ux,normal:Ba,acknowledged:Ba,error:dx,gray:i4};function a4(e){return fx[e]}const s4=({status:e,size:t=14})=>{if(e=="unavailable"||!fx[e])return fe.jsx("span",{children:fe.jsx(gn.CloseCircleOutlined,{style:{fontSize:14,color:xp}})});const n=a4(e);return fe.jsx("div",{style:{background:n,height:t,width:t,borderRadius:t,display:"inline-block",verticalAlign:"text-bottom"}})},l4=e=>e<=199?"default":e<=299?"secondary":e<=399?"primary":e<=499?"warning":"danger",px=({requestInProgress:e,requestResult:t,selectedCluster:n,left:r})=>{var a;let o=null;const i=fe.jsxs("div",{className:"base-info",children:[fe.jsxs("div",{className:"info-item health",children:[fe.jsxs("span",{children:[" ",fe.jsx(nn.FormattedMessage,{id:"console.cluster.status"}),":"]}),fe.jsx("i",{style:{position:"absolute",top:1,right:0},children:fe.jsx(s4,{status:(a=n==null?void 0:n.labels)==null?void 0:a.health_status})})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(nn.FormattedMessage,{id:"console.cluster.endpoint"}),":"]}),fe.jsx(bo,{color:"default",children:n==null?void 0:n.host})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(nn.FormattedMessage,{id:"console.cluster.version"}),":"]}),fe.jsx(bo,{color:"default",children:n==null?void 0:n.version})]})]});if(e)o=fe.jsx(bo,{color:"hollow",children:"Request in progress"});else if(t){const{endpoint:l,method:s,statusCode:c,statusText:u,timeElapsedMs:f}=t;o=fe.jsx(fe.Fragment,{children:fe.jsxs("div",{className:"status_info",children:[fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(nn.FormattedMessage,{id:"console.response.status"}),":"]}),fe.jsx(Vr,{placement:"top",title:fe.jsx("span",{children:`${s} ${l.startsWith("/")?l:"/"+l}`}),children:fe.jsx("span",{children:fe.jsxs(bo,{color:l4(c),children:[c," - ",u]})})})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(nn.FormattedMessage,{id:"console.response.time_elapsed"}),":"]}),fe.jsx(Vr,{placement:"top",title:fe.jsx("span",{children:"Time Elapsed"}),children:fe.jsx("span",{children:fe.jsxs(bo,{color:"default",children:[f," ","ms"]})})})]})]})})}return fe.jsx("div",{className:"request-status-bar",children:r?fe.jsx("div",{className:"bar-item",children:i}):fe.jsx("div",{className:"bar-item",children:o})})},hx=50,mx="0px",c4=({selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i})=>{var u,f,d,y,x,E,h,_,p,m,g;const{requestInFlight:a,lastResult:{data:l,error:s}}=Xw(),c=(l==null?void 0:l[l.length-1])??s;return fe.jsx("div",{className:"Console",style:{height:"100%"},children:fe.jsxs(Kz,{resizerClassName:"resizer",children:[fe.jsxs(sx,{style:{height:"calc(100%)",position:"relative",minWidth:mx,paddingBottom:26},initialWidth:hx,children:[fe.jsx(Vz,{selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i}),fe.jsx("div",{style:{background:"#fff",position:"absolute",left:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:fe.jsx(px,{requestInProgress:a,selectedCluster:e,left:!0,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(u=c.response)==null?void 0:u.statusCode,statusText:(f=c.response)==null?void 0:f.statusText,timeElapsedMs:(d=c.response)==null?void 0:d.timeMs,requestHeader:(y=c.request)==null?void 0:y.header,responseHeader:(x=c.response)==null?void 0:x.header}:void 0})})]}),fe.jsxs(sx,{style:{height:"calc(100%)",position:"relative",minWidth:mx,paddingBottom:26},initialWidth:hx,children:[fe.jsx(ba,{tabPosition:"right",style:{height:"100%",width:"100%"},size:"small",items:[{key:"result",label:"Result",children:fe.jsx("div",{style:{height:"100%"},children:fe.jsx(Wz,{clusterID:e==null?void 0:e.id})})},{key:"headers",label:"Headers",children:fe.jsx(ba,{animated:!1,items:[{key:"1",label:"Request",children:fe.jsx(Ky,{code:(E=c==null?void 0:c.request)==null?void 0:E.header})},{key:"2",label:"Response",children:fe.jsx(Ky,{code:(h=c==null?void 0:c.response)==null?void 0:h.header})}]})}]}),fe.jsx("div",{style:{background:"#fff",position:"absolute",right:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:fe.jsx(px,{requestInProgress:a,selectedCluster:e,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(_=c.response)==null?void 0:_.statusCode,statusText:(p=c.response)==null?void 0:p.statusText,timeElapsedMs:(m=c.response)==null?void 0:m.timeMs,requestHeader:c.request.header,responseHeader:(g=c.response)==null?void 0:g.header}:void 0})})]})]})})},gx=e=>{var a;const t=M.useRef(new wp),{storage:n,history:r,objectStorageClient:o,settings:i}=M.useMemo(()=>{const l=Zz({engine:window.localStorage,prefix:"sense:"}),s=Jz({storage:l}),c=o4(l),u=t4({storage:l});return{storage:l,history:s,objectStorageClient:c,settings:u}},[]);return fe.jsx(ax,{registry:t.current,children:fe.jsx(Pz,{children:fe.jsx(Iz,{children:fe.jsx(jz,{value:{services:{history:r,storage:n,objectStorageClient:o,settings:i},clusterID:(a=e.selectedCluster)==null?void 0:a.id},children:fe.jsx(c4,{...e})})})})})},u4=({id:e,index:t,moveTabNode:n,children:r})=>{const o=M.useRef(null),[,i]=Yl.useDrop({accept:"DND_NODE",hover:s=>{const c=s.index,u=t;c!==u&&(n(c,u),s.index=u)}}),[{isDragging:a},l]=Yl.useDrag({type:"DND_NODE",item:{id:e,index:t},collect:s=>({isDragging:s.isDragging()})});return l(i(o)),fe.jsx("div",{ref:o,style:{opacity:a?.5:1},children:r})},d4=({id:e,index:t,moveTabNode:n,children:r})=>fe.jsx(u4,{id:e,index:t,moveTabNode:n,children:r}),f4=({children:e,onTabNodeMoved:t,tabData:n,editorHeight:r,tabBarExtraContent:o,renderTabBarItemIcon:i,addTab:a,updateTableData:l,sendRequestToES:s,...c})=>{const[u,f]=M.useState(n),[d,y]=M.useState(n.activeKey),[x,E]=M.useState([]),h=M.useCallback(w=>{E(O=>O.map(R=>R.key===d?{...R,content:w}:R)),f(O=>{const R={...O};return R.panes=R.panes.map(N=>N.key===d?{...N,content:w}:N),R}),l(u)},[d]);M.useEffect(()=>{var O;const w=(O=n==null?void 0:n.panes)==null?void 0:O.map(R=>({label:R.title,children:fe.jsx(gx,{height:r-35,selectedCluster:R.cluster,paneKey:R.key,saveEditorContent:h,initialText:R.content,isActive:R.key==d,sendRequestToES:s}),key:R.key,closable:R.closable,icon:i&&i(R)}));E(w)},[]);const[_,p]=M.useState(n.order||[]),m=(w,O)=>{const R=[..._];M.Children.forEach(e,L=>{R.indexOf(L.key)===-1&&R.push(L.key)});const N=R.indexOf(w),P=R.indexOf(O);R.splice(N,1),R.splice(P,0,w),p(R),typeof t=="function"&&t(R)},g=(w,O)=>fe.jsx("div",{children:fe.jsx(O,{...w,children:R=>fe.jsx(d4,{id:R.key,index:R.key,moveTabNode:m,children:R},R.key)})}),b=w=>{y(w);const O={...u,activeKey:w};f(O),l(O)};M.useEffect(()=>{var R;if(!a)return;const w=[...x];w.unshift({label:a.title,children:fe.jsx(gx,{height:r-35,selectedCluster:a.cluster,paneKey:a.key,saveEditorContent:h,initialText:a.content,isActive:a.key==d,sendRequestToES:s}),key:a.key,closable:a.closable,icon:i&&i(a)}),E(w),y(a.key);const O={...u};(R=O.panes)==null||R.unshift(a),f(O),l(O)},[a]);const C=w=>{var L;let O=d,R=-1;x==null||x.forEach((z,J)=>{z.key===w&&(R=J-1)});const N=x.filter(z=>z.key!==w);N.length&&O===w&&(R>=0?O=N[R].key:O=N[0].key),E(N),y(O);let P={...u};P.panes=(L=P.panes)==null?void 0:L.filter(z=>z.key!==w),f(P),l(P)},S=(w,O)=>{O==="add"||C(w)};return fe.jsx(Yl.DndProvider,{backend:sS.HTML5Backend,children:fe.jsx(ba,{...c,type:"editable-card",hideAdd:!0,renderTabBar:g,tabBarExtraContent:o,activeKey:d,items:x,onChange:b,onEdit:S})})},p4=()=>fe.jsx("div",{className:"resize-bar",children:fe.jsxs("div",{children:[fe.jsx("div",{className:"dash"}),fe.jsx("div",{className:"dash"})]})}),h4="data:image/svg+xml,%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2ZM20,20H4V10H20ZM20,8H4V4H20Z'/%3e%3c/svg%3e",m4="data:image/svg+xml,%3csvg%20width='512px'%20height='512px'%20viewBox='0%200%20512%20512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M352,153H40.247a24.028,24.028,0,0,0-24,24V458a24.028,24.028,0,0,0,24,24H352a24.028,24.028,0,0,0,24-24V177A24.028,24.028,0,0,0,352,153Zm-8,32v45.22H48.247V185ZM48.247,450V262.22H344V450Z'%20class='ci-primary'/%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M472,32H152a24.028,24.028,0,0,0-24,24v65h32V64H464V339.143H408v32h64a24.028,24.028,0,0,0,24-24V56A24.028,24.028,0,0,0,472,32Z'%20class='ci-primary'/%3e%3c/svg%3e",g4=e=>{const[t,n]=M.useState(e.data||[]);M.useEffect(()=>{o(t)},[t,e.panes]);const r=l=>{const{onItemClick:s}=e;s&&typeof s=="function"&&s(l)},o=(l={})=>{var s,c,u;((s=l.data)==null?void 0:s.length)>0&&((c=e.panes)==null?void 0:c.length)===0&&r((u=l.data[0])==null?void 0:u._source)},{children:i,DataSourceSelector:a}=e;return fe.jsx("div",{children:a?fe.jsx(a,{width:34,dropdownWidth:400,onChange:l=>r(l),getClusterList:o,children:i}):null})},v4=(e={})=>fe.jsx("img",{height:"14px",width:"14px",...e,src:h4}),_4=(e={})=>fe.jsx("img",{height:"14px",width:"14px",...e,src:m4});function y4(e){const t=parseInt(e);return e.endsWith("vh")?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)*t/100:t}const b4=({minimize:e=!1,resizeable:t=!1,height:n="50vh",DataSourceSelector:r,tabData:o={activeKey:"cqhngq82sdb12fth1d3g:1721989243672",panes:[{key:"cqhngq82sdb12fth1d3g:1721989243672",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!0,content:`GET _search
287
+ `))}else if(i){const s=Hz((l=i.response)==null?void 0:l.contentType);if(s=="ace/mode/json"){a.update(JSON.stringify(JSON.parse(i.response.value),null,2),s);return}a.update(i.response.value,s)}else a.update("")},[o,i]),fe.jsx("div",{ref:t,className:"conApp__outputContent","data-test-subj":"response-editor",children:fe.jsx("div",{id:"ConAppOutput"})})}class wp{constructor(){this.panels=[]}registerPanel(t){this.panels.push(t)}getPanels(){return this.panels}}const ix=M.createContext({registry:new wp});function ax({children:e,registry:t}){return fe.jsx(ix.Provider,{value:{registry:t},children:e})}const Uz=()=>{const e=M.useContext(ix);if(e===void 0)throw new Error("usePanelContext must be used within a <PanelContextProvider />");return e};function sx({children:e,className:t,initialWidth:n=100,style:r={}}){const[o,i]=M.useState(`${n}%`),{registry:a}=Uz(),l=M.useRef(null);return M.useEffect(()=>{a.registerPanel({width:n,setWidth(s){i(s+"%"),this.width=s},getWidth(){return l.current.getBoundingClientRect().width}})},[n,a]),fe.jsx("div",{className:t,ref:l,style:{...r,width:o,display:"flex"},children:e})}function Gz(e){return fe.jsx("button",{...e,children:fe.jsx(gn.PauseOutlined,{})})}const lx={isDragging:!1,currentResizerPos:-1},cx=(e,t)=>e/t*100,Kz=({children:e,className:t,onPanelWidthChange:n,resizerClassName:r})=>{const o=M.Children.toArray(e),[i,a]=o,l=M.useRef(new wp),s=M.useRef(null),[c,u]=M.useState(lx),f=()=>s.current.getBoundingClientRect().width,d=M.useCallback(E=>{u({...c,isDragging:!0,currentResizerPos:E.clientX})},[c]),y=M.useCallback(E=>{const{key:h}=E;if(h==="ArrowLeft"||h==="ArrowRight"){E.preventDefault();const{current:_}=l,[p,m]=_.getPanels(),g=p.width-(h==="ArrowLeft"?1:-1),b=m.width-(h==="ArrowRight"?1:-1);p.setWidth(g),m.setWidth(b),n&&n([g,b])}},[n]);M.useEffect(()=>{var E;((E=ne==null?void 0:ne.env)==null?void 0:E.NODE_ENV)!=="production"&&o.length>2&&console.warn("[Split Panels Container] Detected more than two children; ignoring additional children.")},[o.length]);const x=[i,fe.jsx(Gz,{className:r,onKeyDown:y,onMouseDown:d},"resizer"),a];return fe.jsx(ax,{registry:l.current,children:fe.jsx("div",{className:t,ref:s,style:{display:"flex",height:"100%",width:"100%"},onMouseMove:E=>{if(c.isDragging){const{clientX:h}=E,{current:_}=l,[p,m]=_.getPanels(),g=h-c.currentResizerPos,b=f(),C=cx(p.getWidth()+g,b),S=cx(m.getWidth()-g,b);p.setWidth(C),m.setWidth(S),n&&n([C,S]),u({...c,currentResizerPos:h})}},onMouseUp:()=>{u(lx)},children:x})})},Xz=100;class Yz{constructor(t){this.storage=t,this.changeEmitter=new cS.BehaviorSubject(this.getHistory()||[])}getHistoryKeys(){return this.storage.keys().filter(t=>t.indexOf("hist_elem")===0).sort().reverse()}getHistory(){return this.getHistoryKeys().map(t=>this.storage.get(t))}change(t){const n=this.changeEmitter.subscribe(t);return()=>n.unsubscribe()}addToHistory(t,n,r){const o=this.getHistoryKeys();o.splice(0,Xz),o.forEach(l=>{this.storage.delete(l)});const i=new Date().getTime(),a="hist_elem_"+i;this.storage.set(a,{time:i,endpoint:t,method:n,data:r}),this.changeEmitter.next(this.getHistory())}updateCurrentState(t){const n=new Date().getTime();this.storage.set("editor_state",{time:n,content:t})}getLegacySavedEditorState(){const t=this.storage.get("editor_state");if(!t)return;const{time:n,content:r}=t;return{time:n,content:r}}deleteLegacySavedEditorState(){this.storage.delete("editor_state")}clearHistory(){this.getHistoryKeys().forEach(t=>this.storage.delete(t))}}function Jz(e){return new Yz(e.storage)}class Qz{constructor(t,n){this.engine=t,this.prefix=n}encode(t){return JSON.stringify(t)}decode(t){if(typeof t=="string")return JSON.parse(t)}encodeKey(t){return`${this.prefix}${t}`}decodeKey(t){if(ye.startsWith(t,this.prefix))return`${t.slice(this.prefix.length)}`}set(t,n){return this.engine.setItem(this.encodeKey(t),this.encode(n)),n}has(t){return this.engine.getItem(this.encodeKey(t))!=null}get(t,n){return this.has(t)?this.decode(this.engine.getItem(this.encodeKey(t))):n}delete(t){return this.engine.removeItem(this.encodeKey(t))}keys(){return ye.transform(ye.keys(this.engine),(t,n)=>{const r=this.decodeKey(n);r!=null&&t.push(r)})}}function Zz(e){return new Qz(e.engine,e.prefix)}class e4{constructor(t){this.storage=t}getFontSize(){return this.storage.get("font_size",12)}setFontSize(t){return this.storage.set("font_size",t),!0}getWrapMode(){return this.storage.get("wrap_mode",!0)}setWrapMode(t){return this.storage.set("wrap_mode",t),!0}setTripleQuotes(t){return this.storage.set("triple_quotes",t),!0}getTripleQuotes(){return this.storage.get("triple_quotes",!0)}getAutocomplete(){return this.storage.get("autocomplete_settings",{fields:!0,indices:!0,templates:!0,commands:!0})}setAutocomplete(t){return this.storage.set("autocomplete_settings",t),!0}getPolling(){return this.storage.get("console_polling",!0)}setPolling(t){return this.storage.set("console_polling",t),!0}toJSON(){return{autocomplete:this.getAutocomplete(),wrapMode:this.getWrapMode(),tripleQuotes:this.getTripleQuotes(),fontSize:parseFloat(this.getFontSize()),polling:!!this.getPolling()}}updateSettings({fontSize:t,wrapMode:n,tripleQuotes:r,autocomplete:o,polling:i}){this.setFontSize(t),this.setWrapMode(n),this.setTripleQuotes(r),this.setAutocomplete(o),this.setPolling(i)}}function t4({storage:e}){return new e4(e)}const n4="text-object";class r4{constructor(t,n){this.client=t,this.prefix=`console_local_${n}`}async create(t){const n=fS.v4(),r={id:n,...t};return this.client.set(`${this.prefix}_${n}`,r),r}async update(t){this.client.set(`${this.prefix}_${t.id}`,t)}async findAll(){const t=this.client.keys().filter(r=>r.includes(this.prefix)),n=[];for(const r of t)n.push(this.client.get(r));return n}}const o4=e=>({text:new r4(e,n4)}),Ba="#00bb1b",ux="#fcca00",dx="#ff4d4f",i4="#bbbbbb",xp="#d8d8d8",fx={green:Ba,yellow:ux,red:dx,available:Ba,unavailable:xp,online:Ba,offline:xp,active:ux,normal:Ba,acknowledged:Ba,error:dx,gray:i4};function a4(e){return fx[e]}const s4=({status:e,size:t=14})=>{if(e=="unavailable"||!fx[e])return fe.jsx("span",{children:fe.jsx(gn.CloseCircleOutlined,{style:{fontSize:14,color:xp}})});const n=a4(e);return fe.jsx("div",{style:{background:n,height:t,width:t,borderRadius:t,display:"inline-block",verticalAlign:"text-bottom"}})},l4=e=>e<=199?"default":e<=299?"secondary":e<=399?"primary":e<=499?"warning":"danger",px=({requestInProgress:e,requestResult:t,selectedCluster:n,left:r})=>{var a;let o=null;const i=fe.jsxs("div",{className:"base-info",children:[fe.jsxs("div",{className:"info-item health",children:[fe.jsxs("span",{children:[" ",fe.jsx(nn.FormattedMessage,{id:"console.cluster.status"}),":"]}),fe.jsx("i",{style:{position:"absolute",top:1,right:0},children:fe.jsx(s4,{status:(a=n==null?void 0:n.labels)==null?void 0:a.health_status})})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(nn.FormattedMessage,{id:"console.cluster.endpoint"}),":"]}),fe.jsx(bo,{color:"default",children:n==null?void 0:n.host})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(nn.FormattedMessage,{id:"console.cluster.version"}),":"]}),fe.jsx(bo,{color:"default",children:n==null?void 0:n.version})]})]});if(e)o=fe.jsx(bo,{color:"hollow",children:"Request in progress"});else if(t){const{endpoint:l,method:s,statusCode:c,statusText:u,timeElapsedMs:f}=t;o=fe.jsx(fe.Fragment,{children:fe.jsxs("div",{className:"status_info",children:[fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(nn.FormattedMessage,{id:"console.response.status"}),":"]}),fe.jsx(Vr,{placement:"top",title:fe.jsx("span",{children:`${s} ${l.startsWith("/")?l:"/"+l}`}),children:fe.jsx("span",{children:fe.jsxs(bo,{color:l4(c),children:[c," - ",u]})})})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(nn.FormattedMessage,{id:"console.response.time_elapsed"}),":"]}),fe.jsx(Vr,{placement:"top",title:fe.jsx("span",{children:"Time Elapsed"}),children:fe.jsx("span",{children:fe.jsxs(bo,{color:"default",children:[f," ","ms"]})})})]})]})})}return fe.jsx("div",{className:"request-status-bar",children:r?fe.jsx("div",{className:"bar-item",children:i}):fe.jsx("div",{className:"bar-item",children:o})})},hx=50,mx="0px",c4=({selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i})=>{var u,f,d,y,x,E,h,_,p,m,g;const{requestInFlight:a,lastResult:{data:l,error:s}}=Xw(),c=(l==null?void 0:l[l.length-1])??s;return fe.jsx("div",{className:"Console",style:{height:"100%"},children:fe.jsxs(Kz,{resizerClassName:"resizer",children:[fe.jsxs(sx,{style:{height:"calc(100%)",position:"relative",minWidth:mx,paddingBottom:26},initialWidth:hx,children:[fe.jsx(Vz,{selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i}),fe.jsx("div",{style:{background:"#fff",position:"absolute",left:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:fe.jsx(px,{requestInProgress:a,selectedCluster:e,left:!0,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(u=c.response)==null?void 0:u.statusCode,statusText:(f=c.response)==null?void 0:f.statusText,timeElapsedMs:(d=c.response)==null?void 0:d.timeMs,requestHeader:(y=c.request)==null?void 0:y.header,responseHeader:(x=c.response)==null?void 0:x.header}:void 0})})]}),fe.jsxs(sx,{style:{height:"calc(100%)",position:"relative",minWidth:mx,paddingBottom:26},initialWidth:hx,children:[fe.jsx(ba,{tabPosition:"right",style:{height:"100%",width:"100%"},size:"small",items:[{key:"result",label:"Result",children:fe.jsx("div",{style:{height:"100%"},children:fe.jsx(Wz,{clusterID:e==null?void 0:e.id})})},{key:"headers",label:"Headers",children:fe.jsx(ba,{animated:!1,items:[{key:"1",label:"Request",children:fe.jsx(Ky,{code:(E=c==null?void 0:c.request)==null?void 0:E.header})},{key:"2",label:"Response",children:fe.jsx(Ky,{code:(h=c==null?void 0:c.response)==null?void 0:h.header})}]})}]}),fe.jsx("div",{style:{background:"#fff",position:"absolute",right:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:fe.jsx(px,{requestInProgress:a,selectedCluster:e,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(_=c.response)==null?void 0:_.statusCode,statusText:(p=c.response)==null?void 0:p.statusText,timeElapsedMs:(m=c.response)==null?void 0:m.timeMs,requestHeader:c.request.header,responseHeader:(g=c.response)==null?void 0:g.header}:void 0})})]})]})})},gx=e=>{var a;const t=M.useRef(new wp),{storage:n,history:r,objectStorageClient:o,settings:i}=M.useMemo(()=>{const l=Zz({engine:window.localStorage,prefix:"sense:"}),s=Jz({storage:l}),c=o4(l),u=t4({storage:l});return{storage:l,history:s,objectStorageClient:c,settings:u}},[]);return fe.jsx(ax,{registry:t.current,children:fe.jsx(Pz,{children:fe.jsx(Iz,{children:fe.jsx(jz,{value:{services:{history:r,storage:n,objectStorageClient:o,settings:i},clusterID:(a=e.selectedCluster)==null?void 0:a.id},children:fe.jsx(c4,{...e})})})})})},u4=({id:e,index:t,moveTabNode:n,children:r})=>{const o=M.useRef(null),[,i]=Yl.useDrop({accept:"DND_NODE",hover:s=>{const c=s.index,u=t;c!==u&&(n(c,u),s.index=u)}}),[{isDragging:a},l]=Yl.useDrag({type:"DND_NODE",item:{id:e,index:t},collect:s=>({isDragging:s.isDragging()})});return l(i(o)),fe.jsx("div",{ref:o,style:{opacity:a?.5:1},children:r})},d4=({id:e,index:t,moveTabNode:n,children:r})=>fe.jsx(u4,{id:e,index:t,moveTabNode:n,children:r}),f4=({children:e,onTabNodeMoved:t,tabData:n,editorHeight:r,tabBarExtraContent:o,renderTabBarItemIcon:i,addTab:a,updateTabData:l,sendRequestToES:s,...c})=>{const[u,f]=M.useState(n),[d,y]=M.useState(n.activeKey),[x,E]=M.useState([]),h=M.useCallback(w=>{E(O=>O.map(R=>R.key===d?{...R,content:w}:R)),f(O=>{const R={...O};return R.panes=R.panes.map(N=>N.key===d?{...N,content:w}:N),R}),l(u)},[d]);M.useEffect(()=>{var O;const w=(O=n==null?void 0:n.panes)==null?void 0:O.map(R=>({label:R.title,children:fe.jsx(gx,{height:r-35,selectedCluster:R.cluster,paneKey:R.key,saveEditorContent:h,initialText:R.content,isActive:R.key==d,sendRequestToES:s}),key:R.key,closable:R.closable,icon:i&&i(R)}));E(w)},[]);const[_,p]=M.useState(n.order||[]),m=(w,O)=>{const R=[..._];M.Children.forEach(e,L=>{R.indexOf(L.key)===-1&&R.push(L.key)});const N=R.indexOf(w),P=R.indexOf(O);R.splice(N,1),R.splice(P,0,w),p(R),typeof t=="function"&&t(R)},g=(w,O)=>fe.jsx("div",{children:fe.jsx(O,{...w,children:R=>fe.jsx(d4,{id:R.key,index:R.key,moveTabNode:m,children:R},R.key)})}),b=w=>{y(w);const O={...u,activeKey:w};f(O),l(O)};M.useEffect(()=>{var R;if(!a)return;const w=[...x];w.unshift({label:a.title,children:fe.jsx(gx,{height:r-35,selectedCluster:a.cluster,paneKey:a.key,saveEditorContent:h,initialText:a.content,isActive:a.key==d,sendRequestToES:s}),key:a.key,closable:a.closable,icon:i&&i(a)}),E(w),y(a.key);const O={...u};(R=O.panes)==null||R.unshift(a),f(O),l(O)},[a]);const C=w=>{var L;let O=d,R=-1;x==null||x.forEach((z,J)=>{z.key===w&&(R=J-1)});const N=x.filter(z=>z.key!==w);N.length&&O===w&&(R>=0?O=N[R].key:O=N[0].key),E(N),y(O);let P={...u};P.panes=(L=P.panes)==null?void 0:L.filter(z=>z.key!==w),f(P),l(P)},S=(w,O)=>{O==="add"||C(w)};return fe.jsx(Yl.DndProvider,{backend:sS.HTML5Backend,children:fe.jsx(ba,{...c,type:"editable-card",hideAdd:!0,renderTabBar:g,tabBarExtraContent:o,activeKey:d,items:x,onChange:b,onEdit:S})})},p4=()=>fe.jsx("div",{className:"resize-bar",children:fe.jsxs("div",{children:[fe.jsx("div",{className:"dash"}),fe.jsx("div",{className:"dash"})]})}),h4="data:image/svg+xml,%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2ZM20,20H4V10H20ZM20,8H4V4H20Z'/%3e%3c/svg%3e",m4="data:image/svg+xml,%3csvg%20width='512px'%20height='512px'%20viewBox='0%200%20512%20512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M352,153H40.247a24.028,24.028,0,0,0-24,24V458a24.028,24.028,0,0,0,24,24H352a24.028,24.028,0,0,0,24-24V177A24.028,24.028,0,0,0,352,153Zm-8,32v45.22H48.247V185ZM48.247,450V262.22H344V450Z'%20class='ci-primary'/%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M472,32H152a24.028,24.028,0,0,0-24,24v65h32V64H464V339.143H408v32h64a24.028,24.028,0,0,0,24-24V56A24.028,24.028,0,0,0,472,32Z'%20class='ci-primary'/%3e%3c/svg%3e",g4=e=>{const[t,n]=M.useState(e.data||[]);M.useEffect(()=>{o(t)},[t,e.panes]);const r=l=>{const{onItemClick:s}=e;s&&typeof s=="function"&&s(l)},o=(l={})=>{var s,c,u;((s=l.data)==null?void 0:s.length)>0&&((c=e.panes)==null?void 0:c.length)===0&&r((u=l.data[0])==null?void 0:u._source)},{children:i,DataSourceSelector:a}=e;return fe.jsx("div",{children:a?fe.jsx(a,{width:34,dropdownWidth:400,onChange:l=>r(l),getClusterList:o,children:i}):null})},v4=(e={})=>fe.jsx("img",{height:"14px",width:"14px",...e,src:h4}),_4=(e={})=>fe.jsx("img",{height:"14px",width:"14px",...e,src:m4});function y4(e){const t=parseInt(e);return e.endsWith("vh")?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)*t/100:t}const b4=({minimize:e=!1,resizeable:t=!1,height:n="50vh",DataSourceSelector:r,tabData:o={activeKey:"cqhngq82sdb12fth1d3g:1721989243672",panes:[{key:"cqhngq82sdb12fth1d3g:1721989243672",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!0,content:`GET _search
288
288
  {
289
289
  "query": {
290
290
  "match_all": {}
@@ -300,7 +300,7 @@ GET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g
300
300
  }
301
301
 
302
302
  GET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g
303
- `}]},renderTabBarItemIcon:i,addTab:a,onMinimizeClick:l=()=>{console.warn("onMinimizeClick function is null")},newTabClick:s=()=>{console.warn("newTabClick function is null")},updateTableData:c=()=>{console.warn("updateTableData function is null")},sendRequestToES:u=()=>{console.warn("sendRequestToES function is null")}})=>{var C;const f=M.useRef(null),[d,y]=M.useState(!1),[x,E]=M.useState(y4(n));M.useEffect(()=>{const S=()=>{d&&E(f.current.offsetHeight)};return window.addEventListener("resize",S),()=>{window.removeEventListener("resize",S)}},[d]);const h=()=>{f.current!=null&&(d?(f.current.className=f.current.className.replace(" fullscreen",""),b()):f.current.className=f.current.className+" fullscreen"),E(f.current.clientHeight),y(!d)},_=M.useCallback(S=>{l(S),b()},[l]);NN((C=o.activeKey)==null?void 0:C.split(":")[0]);const p={left:fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{className:"tabbar-icon",onClick:_,children:fe.jsx(gn.CodeOutlined,{})}),fe.jsx(g4,{onItemClick:s,width:"300px",panes:o.panes,DataSourceSelector:r,children:fe.jsx("div",{className:"tabbar-icon",children:fe.jsx(gn.PlusOutlined,{})})})]}),right:fe.jsxs(fe.Fragment,{children:[e?fe.jsx("div",{className:"tabbar-icon",onClick:_,children:fe.jsx(gn.MinusOutlined,{})}):null,fe.jsx("div",{className:"tabbar-icon",onClick:h,children:d?fe.jsx(_4,{}):fe.jsx(v4,{})})]})},m=M.useMemo(()=>["left","right"].reduce((S,w)=>({...S,[w]:p[w]}),{}),[]),g=()=>{document.body.style.overflow="hidden"},b=()=>{document.body.style.overflow=""};return fe.jsx(aS.Resizable,{defaultSize:{height:x},minHeight:70,maxHeight:"100vh",handleComponent:{top:fe.jsx(p4,{})},onResizeStop:(S,w,O,R)=>{E(x+R.height)},enable:{top:t,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},children:fe.jsx("div",{style:{background:"#fff",height:"100%"},onMouseOver:g,onMouseOut:b,id:"console",ref:f,children:fe.jsx(f4,{editorHeight:x,type:"editable-card",tabBarExtraContent:m,tabData:o,renderTabBarItemIcon:i,addTab:a,updateTableData:c,sendRequestToES:u})})})},vx={methods:[]},w4=Object.freeze(Object.defineProperty({__proto__:null,default:{documentation:vx},documentation:vx},Symbol.toStringTag,{value:"Module"})),_x={url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",type:"",_source:[],_source_excludes:[],_source_includes:[],pipeline:""},methods:["POST","PUT"],patterns:["_bulk","{indices}/_bulk","{indices}/{type}/_bulk"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html"},x4=Object.freeze(Object.defineProperty({__proto__:null,bulk:_x,default:{bulk:_x}},Symbol.toStringTag,{value:"Module"})),S4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.aliases":{url_params:{format:"",local:"__flag__",h:[],help:"__flag__",s:[],v:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cat/aliases","_cat/aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html"}}},Symbol.toStringTag,{value:"Module"})),C4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.allocation":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/allocation","_cat/allocation/{nodes}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html"}}},Symbol.toStringTag,{value:"Module"})),E4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.count":{url_params:{format:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/count","_cat/count/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html"}}},Symbol.toStringTag,{value:"Module"})),O4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.fielddata":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],h:[],help:"__flag__",s:[],v:"__flag__",fields:[]},methods:["GET"],patterns:["_cat/fielddata","_cat/fielddata/{fields}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html"}}},Symbol.toStringTag,{value:"Module"})),$4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.health":{url_params:{format:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],ts:"__flag__",v:"__flag__"},methods:["GET"],patterns:["_cat/health"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html"}}},Symbol.toStringTag,{value:"Module"})),T4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.help":{url_params:{help:"__flag__",s:[]},methods:["GET"],patterns:["_cat"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html"}}},Symbol.toStringTag,{value:"Module"})),P4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.indices":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],health:["green","yellow","red"],help:"__flag__",pri:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__",include_unloaded_segments:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cat/indices","_cat/indices/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html"}}},Symbol.toStringTag,{value:"Module"})),R4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.master":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/master"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html"}}},Symbol.toStringTag,{value:"Module"})),j4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.nodeattrs":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/nodeattrs"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html"}}},Symbol.toStringTag,{value:"Module"})),M4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.nodes":{url_params:{bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],format:"",full_id:"__flag__",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/nodes"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html"}}},Symbol.toStringTag,{value:"Module"})),I4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.pending_tasks":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/pending_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html"}}},Symbol.toStringTag,{value:"Module"})),A4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.plugins":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/plugins"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html"}}},Symbol.toStringTag,{value:"Module"})),N4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.recovery":{url_params:{format:"",active_only:"__flag__",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],detailed:"__flag__",h:[],help:"__flag__",index:[],s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/recovery","_cat/recovery/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html"}}},Symbol.toStringTag,{value:"Module"})),k4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.repositories":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/repositories"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html"}}},Symbol.toStringTag,{value:"Module"})),L4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.segments":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/segments","_cat/segments/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html"}}},Symbol.toStringTag,{value:"Module"})),F4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.shards":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/shards","_cat/shards/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html"}}},Symbol.toStringTag,{value:"Module"})),D4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.snapshots":{url_params:{format:"",ignore_unavailable:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/snapshots","_cat/snapshots/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),B4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.tasks":{url_params:{format:"",node_id:[],actions:[],detailed:"__flag__",parent_task:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),z4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.templates":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/templates","_cat/templates/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html"}}},Symbol.toStringTag,{value:"Module"})),q4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.thread_pool":{url_params:{format:"",size:["","k","m","g","t","p"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/thread_pool","_cat/thread_pool/{thread_pool_patterns}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html"}}},Symbol.toStringTag,{value:"Module"})),yx={methods:["DELETE"],patterns:["_search/scroll"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#_clear_scroll_api"},V4=Object.freeze(Object.defineProperty({__proto__:null,clear_scroll:yx,default:{clear_scroll:yx}},Symbol.toStringTag,{value:"Module"})),H4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.allocation_explain":{url_params:{include_yes_decisions:"__flag__",include_disk_info:"__flag__"},methods:["GET","POST"],patterns:["_cluster/allocation/explain"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html"}}},Symbol.toStringTag,{value:"Module"})),W4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.delete_component_template":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-templates.html"}}},Symbol.toStringTag,{value:"Module"})),U4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.get_component_template":{url_params:{flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_component_template","_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/getting-component-templates.html"}}},Symbol.toStringTag,{value:"Module"})),G4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.get_settings":{url_params:{flat_settings:"__flag__",master_timeout:"",timeout:"",include_defaults:"__flag__"},methods:["GET"],patterns:["_cluster/settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),K4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.health":{url_params:{expand_wildcards:["open","closed","hidden","none","all"],level:["cluster","indices","shards"],local:"__flag__",master_timeout:"",timeout:"",wait_for_active_shards:"",wait_for_nodes:"",wait_for_events:["immediate","urgent","high","normal","low","languid"],wait_for_no_relocating_shards:"__flag__",wait_for_no_initializing_shards:"__flag__",wait_for_status:["green","yellow","red"]},methods:["GET"],patterns:["_cluster/health","_cluster/health/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html"}}},Symbol.toStringTag,{value:"Module"})),X4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.pending_tasks":{url_params:{local:"__flag__",master_timeout:""},methods:["GET"],patterns:["_cluster/pending_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html"}}},Symbol.toStringTag,{value:"Module"})),Y4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_component_template":{url_params:{create:"__flag__",master_timeout:""},methods:["PUT"],patterns:["_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html"}}},Symbol.toStringTag,{value:"Module"})),J4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_settings":{url_params:{flat_settings:"__flag__",master_timeout:"",timeout:""},methods:["PUT"],patterns:["_cluster/settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),Q4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.remote_info":{methods:["GET"],patterns:["_remote/info"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html"}}},Symbol.toStringTag,{value:"Module"})),Z4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.reroute":{url_params:{dry_run:"__flag__",explain:"__flag__",retry_failed:"__flag__",metric:[],master_timeout:"",timeout:""},methods:["POST"],patterns:["_cluster/reroute"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html"}}},Symbol.toStringTag,{value:"Module"})),e8=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.state":{url_params:{local:"__flag__",master_timeout:"",flat_settings:"__flag__",wait_for_metadata_version:"",wait_for_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cluster/state","_cluster/state/{metrics}","_cluster/state/{metrics}/{indices}"],url_components:{metrics:["_all","blocks","master_node","metadata","nodes","routing_nodes","routing_table","version"],indices:null},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html"}}},Symbol.toStringTag,{value:"Module"})),t8=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.stats":{url_params:{flat_settings:"__flag__",timeout:""},methods:["GET"],patterns:["_cluster/stats","_cluster/stats/nodes/{nodes}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html"}}},Symbol.toStringTag,{value:"Module"})),bx={url_params:{ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],min_score:"",preference:"random",routing:[],q:"",analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",lenient:"__flag__",terminate_after:""},methods:["POST","GET"],patterns:["_count","{indices}/_count"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html"},n8=Object.freeze(Object.defineProperty({__proto__:null,count:bx,default:{count:bx}},Symbol.toStringTag,{value:"Module"})),wx={url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",version:"",version_type:["internal","external","external_gte"],pipeline:""},methods:["PUT","POST"],patterns:["{indices}/_create/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"},r8=Object.freeze(Object.defineProperty({__proto__:null,create:wx,default:{create:wx}},Symbol.toStringTag,{value:"Module"})),o8=Object.freeze(Object.defineProperty({__proto__:null,default:{delete:{url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",if_seq_no:"",if_primary_term:"",version:"",version_type:["internal","external","external_gte","force"]},methods:["DELETE"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html"}}},Symbol.toStringTag,{value:"Module"})),xx={url_params:{analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",from:"0",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",conflicts:["abort","proceed"],expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],search_timeout:"",size:"",max_docs:"all documents",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],version:"__flag__",request_cache:"__flag__",refresh:"__flag__",timeout:"",wait_for_active_shards:"",scroll_size:"",wait_for_completion:"__flag__",requests_per_second:"",slices:""},methods:["POST"],patterns:["{indices}/_delete_by_query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html"},i8=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_by_query:xx},delete_by_query:xx},Symbol.toStringTag,{value:"Module"})),Sx={url_params:{requests_per_second:""},methods:["POST"],patterns:["_delete_by_query/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html"},a8=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_by_query_rethrottle:Sx},delete_by_query_rethrottle:Sx},Symbol.toStringTag,{value:"Module"})),Cx={url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_scripts/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},s8=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_script:Cx},delete_script:Cx},Symbol.toStringTag,{value:"Module"})),Ex={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["HEAD"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},l8=Object.freeze(Object.defineProperty({__proto__:null,default:{exists:Ex},exists:Ex},Symbol.toStringTag,{value:"Module"})),Ox={url_params:{preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["HEAD"],patterns:["{indices}/_source/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},c8=Object.freeze(Object.defineProperty({__proto__:null,default:{exists_source:Ox},exists_source:Ox},Symbol.toStringTag,{value:"Module"})),$x={url_params:{analyze_wildcard:"__flag__",analyzer:"",default_operator:["AND","OR"],df:"_all",stored_fields:[],lenient:"__flag__",preference:"random",q:"",routing:"",_source:[],_source_excludes:[],_source_includes:[]},methods:["GET","POST"],patterns:["{indices}/_explain/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html"},u8=Object.freeze(Object.defineProperty({__proto__:null,default:{explain:$x},explain:$x},Symbol.toStringTag,{value:"Module"})),Tx={url_params:{fields:[],ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],include_unmapped:"__flag__"},methods:["GET","POST"],patterns:["_field_caps","{indices}/_field_caps"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html"},d8=Object.freeze(Object.defineProperty({__proto__:null,default:{field_caps:Tx},field_caps:Tx},Symbol.toStringTag,{value:"Module"})),Px={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["GET"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},f8=Object.freeze(Object.defineProperty({__proto__:null,default:{get:Px},get:Px},Symbol.toStringTag,{value:"Module"})),Rx={url_params:{master_timeout:""},methods:["GET"],patterns:["_scripts/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},p8=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script:Rx},get_script:Rx},Symbol.toStringTag,{value:"Module"})),jx={methods:["GET"],patterns:["_script_context"]},h8=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script_context:jx},get_script_context:jx},Symbol.toStringTag,{value:"Module"})),Mx={methods:["GET"],patterns:["_script_language"]},m8=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script_languages:Mx},get_script_languages:Mx},Symbol.toStringTag,{value:"Module"})),Ix={url_params:{preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["GET"],patterns:["{indices}/_source/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},g8=Object.freeze(Object.defineProperty({__proto__:null,default:{get_source:Ix},get_source:Ix},Symbol.toStringTag,{value:"Module"})),Ax={url_params:{wait_for_active_shards:"",op_type:["index","create"],refresh:["true","false","wait_for"],routing:"",timeout:"",version:"",version_type:["internal","external","external_gte"],if_seq_no:"",if_primary_term:"",pipeline:""},methods:["PUT","POST"],patterns:["{indices}/_doc/{id}","{indices}/_doc"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"},v8=Object.freeze(Object.defineProperty({__proto__:null,default:{index:Ax},index:Ax},Symbol.toStringTag,{value:"Module"})),_8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.analyze":{url_params:{index:""},methods:["GET","POST"],patterns:["_analyze","{indices}/_analyze"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html"}}},Symbol.toStringTag,{value:"Module"})),y8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clear_cache":{url_params:{fielddata:"__flag__",fields:[],query:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],index:[],request:"__flag__"},methods:["POST"],patterns:["_cache/clear","{indices}/_cache/clear"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html"}}},Symbol.toStringTag,{value:"Module"})),b8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clone":{url_params:{timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_clone/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html"}}},Symbol.toStringTag,{value:"Module"})),w8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.close":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],wait_for_active_shards:""},methods:["POST"],patterns:["{indices}/_close"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}},Symbol.toStringTag,{value:"Module"})),x8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.create":{url_params:{include_type_name:"__flag__",wait_for_active_shards:"",timeout:"",master_timeout:""},methods:["PUT"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html"}}},Symbol.toStringTag,{value:"Module"})),S8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["DELETE"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html"}}},Symbol.toStringTag,{value:"Module"})),C8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_alias":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["{indices}/_alias/{name}","{indices}/_aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),E8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_template":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),O8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists":{url_params:{local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",include_defaults:"__flag__"},methods:["HEAD"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html"}}},Symbol.toStringTag,{value:"Module"})),$8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_alias":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["HEAD"],patterns:["_alias/{name}","{indices}/_alias/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),T8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_template":{url_params:{flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["HEAD"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),P8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_type":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["HEAD"],patterns:["{indices}/_mapping/{type}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html"}}},Symbol.toStringTag,{value:"Module"})),R8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.flush":{url_params:{force:"__flag__",wait_if_ongoing:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["POST","GET"],patterns:["_flush","{indices}/_flush"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html"}}},Symbol.toStringTag,{value:"Module"})),j8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.flush_synced":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","none","all"]},methods:["POST","GET"],patterns:["_flush/synced","{indices}/_flush/synced"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush-api.html"}}},Symbol.toStringTag,{value:"Module"})),M8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.forcemerge":{url_params:{flush:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],max_num_segments:"dynamic",only_expunge_deletes:"__flag__"},methods:["POST"],patterns:["_forcemerge","{indices}/_forcemerge"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html"}}},Symbol.toStringTag,{value:"Module"})),I8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get":{url_params:{include_type_name:"__flag__",local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",include_defaults:"__flag__",master_timeout:""},methods:["GET"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html"}}},Symbol.toStringTag,{value:"Module"})),A8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_alias":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["GET"],patterns:["_alias","_alias/{name}","{indices}/_alias/{name}","{indices}/_alias"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),N8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_field_mapping":{url_params:{include_type_name:"__flag__",include_defaults:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["GET"],patterns:["_mapping/field/{fields}","{indices}/_mapping/field/{fields}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),k8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_mapping":{url_params:{include_type_name:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_mapping","{indices}/_mapping"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),L8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_settings":{url_params:{master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",local:"__flag__",include_defaults:"__flag__"},methods:["GET"],patterns:["_settings","{indices}/_settings","{indices}/_settings/{name}","_settings/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html"}}},Symbol.toStringTag,{value:"Module"})),F8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_template":{url_params:{include_type_name:"__flag__",flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_template","_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),D8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_upgrade":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_upgrade","{indices}/_upgrade"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}},Symbol.toStringTag,{value:"Module"})),B8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.open":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],wait_for_active_shards:""},methods:["POST"],patterns:["{indices}/_open"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}},Symbol.toStringTag,{value:"Module"})),z8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_alias":{url_params:{timeout:"",master_timeout:""},methods:["PUT","POST"],patterns:["{indices}/_alias/{name}","{indices}/_aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),q8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_mapping":{url_params:{include_type_name:"__flag__",timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["PUT","POST"],patterns:["{indices}/_mapping"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),V8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_settings":{url_params:{master_timeout:"",timeout:"",preserve_existing:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__"},methods:["PUT"],patterns:["_settings","{indices}/_settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),H8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_template":{url_params:{include_type_name:"__flag__",order:"",create:"__flag__",master_timeout:"",flat_settings:"__flag__"},methods:["PUT","POST"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),W8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.recovery":{url_params:{detailed:"__flag__",active_only:"__flag__"},methods:["GET"],patterns:["_recovery","{indices}/_recovery"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html"}}},Symbol.toStringTag,{value:"Module"})),U8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.refresh":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["POST","GET"],patterns:["_refresh","{indices}/_refresh"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html"}}},Symbol.toStringTag,{value:"Module"})),G8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.rollover":{url_params:{include_type_name:"__flag__",timeout:"",dry_run:"__flag__",master_timeout:"",wait_for_active_shards:""},methods:["POST"],patterns:["{alias}/_rollover","{alias}/_rollover/{new_index}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html"}}},Symbol.toStringTag,{value:"Module"})),K8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.segments":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],verbose:"__flag__"},methods:["GET"],patterns:["_segments","{indices}/_segments"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html"}}},Symbol.toStringTag,{value:"Module"})),X8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.shard_stores":{url_params:{status:[],ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_shard_stores","{indices}/_shard_stores"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html"}}},Symbol.toStringTag,{value:"Module"})),Y8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.shrink":{url_params:{copy_settings:"__flag__",timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_shrink/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html"}}},Symbol.toStringTag,{value:"Module"})),J8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.split":{url_params:{copy_settings:"__flag__",timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_split/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html"}}},Symbol.toStringTag,{value:"Module"})),Q8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.stats":{url_params:{completion_fields:[],fielddata_fields:[],fields:[],groups:[],level:["cluster","indices","shards"],types:[],include_segment_file_sizes:"__flag__",include_unloaded_segments:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],forbid_closed_indices:"__flag__"},methods:["GET"],patterns:["_stats","_stats/{metrics}","{indices}/_stats","{indices}/_stats/{metrics}"],url_components:{metrics:["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"],indices:null},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html"}}},Symbol.toStringTag,{value:"Module"})),Z8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.update_aliases":{url_params:{timeout:"",master_timeout:""},methods:["POST"],patterns:["_aliases"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),e3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.upgrade":{url_params:{allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],ignore_unavailable:"__flag__",wait_for_completion:"__flag__",only_ancient_segments:"__flag__"},methods:["POST"],patterns:["_upgrade","{indices}/_upgrade"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}},Symbol.toStringTag,{value:"Module"})),t3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.validate_query":{url_params:{explain:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],q:"",analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",lenient:"__flag__",rewrite:"__flag__",all_shards:"__flag__"},methods:["GET","POST"],patterns:["_validate/query","{indices}/_validate/query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html"}}},Symbol.toStringTag,{value:"Module"})),Nx={methods:["GET"],patterns:[""],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"},n3=Object.freeze(Object.defineProperty({__proto__:null,default:{info:Nx},info:Nx},Symbol.toStringTag,{value:"Module"})),r3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.delete_pipeline":{url_params:{master_timeout:"",timeout:""},methods:["DELETE"],patterns:["_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),o3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.get_pipeline":{url_params:{master_timeout:""},methods:["GET"],patterns:["_ingest/pipeline","_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),i3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.processor_grok":{methods:["GET"],patterns:["_ingest/processor/grok"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get"}}},Symbol.toStringTag,{value:"Module"})),a3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.put_pipeline":{url_params:{master_timeout:"",timeout:""},methods:["PUT"],patterns:["_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),s3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.simulate":{url_params:{verbose:"__flag__"},methods:["GET","POST"],patterns:["_ingest/pipeline/_simulate","_ingest/pipeline/{id}/_simulate"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),kx={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[]},methods:["GET","POST"],patterns:["_mget","{indices}/_mget"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html"},l3=Object.freeze(Object.defineProperty({__proto__:null,default:{mget:kx},mget:kx},Symbol.toStringTag,{value:"Module"})),Lx={url_params:{search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],max_concurrent_searches:"",typed_keys:"__flag__",pre_filter_shard_size:"",max_concurrent_shard_requests:"",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_msearch","{indices}/_msearch"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html"},c3=Object.freeze(Object.defineProperty({__proto__:null,default:{msearch:Lx},msearch:Lx},Symbol.toStringTag,{value:"Module"})),Fx={url_params:{search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],typed_keys:"__flag__",max_concurrent_searches:"",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_msearch/template","{indices}/_msearch/template"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html"},u3=Object.freeze(Object.defineProperty({__proto__:null,default:{msearch_template:Fx},msearch_template:Fx},Symbol.toStringTag,{value:"Module"})),Dx={url_params:{ids:[],term_statistics:"__flag__",field_statistics:"__flag__",fields:[],offsets:"__flag__",positions:"__flag__",payloads:"__flag__",preference:"random",routing:"",realtime:"__flag__",version:"",version_type:["internal","external","external_gte","force"]},methods:["GET","POST"],patterns:["_mtermvectors","{indices}/_mtermvectors"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html"},d3=Object.freeze(Object.defineProperty({__proto__:null,default:{mtermvectors:Dx},mtermvectors:Dx},Symbol.toStringTag,{value:"Module"})),f3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.hot_threads":{url_params:{interval:"",snapshots:"10",threads:"3",ignore_idle_threads:"__flag__",type:["cpu","wait","block"],timeout:""},methods:["GET"],patterns:["_nodes/hot_threads","_nodes/{nodes}/hot_threads"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html"}}},Symbol.toStringTag,{value:"Module"})),p3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.info":{url_params:{flat_settings:"__flag__",timeout:""},methods:["GET"],patterns:["_nodes","_nodes/{nodes}","_nodes/{metrics}","_nodes/{nodes}/{metrics}"],url_components:{nodes:null,metrics:["http","ingest","jvm","os","plugins","process","settings","thread_pool","transport"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html"}}},Symbol.toStringTag,{value:"Module"})),h3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.reload_secure_settings":{url_params:{timeout:""},methods:["POST"],patterns:["_nodes/reload_secure_settings","_nodes/{nodes}/reload_secure_settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/secure-settings.html#reloadable-secure-settings"}}},Symbol.toStringTag,{value:"Module"})),m3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.stats":{url_params:{completion_fields:[],fielddata_fields:[],fields:[],groups:"__flag__",level:["indices","node","shards"],types:[],timeout:"",include_segment_file_sizes:"__flag__"},methods:["GET"],patterns:["_nodes/stats","_nodes/{nodes}/stats","_nodes/stats/{metrics}","_nodes/{nodes}/stats/{metrics}","_nodes/stats/{metrics}/{index_metric}","_nodes/{nodes}/stats/{metrics}/{index_metric}"],url_components:{nodes:null,metrics:["_all","breaker","discovery","fs","http","indices","jvm","os","process","thread_pool","transport"],index_metric:["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html"}}},Symbol.toStringTag,{value:"Module"})),g3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.usage":{url_params:{timeout:""},methods:["GET"],patterns:["_nodes/usage","_nodes/{nodes}/usage","_nodes/usage/{metrics}","_nodes/{nodes}/usage/{metrics}"],url_components:{nodes:null,metrics:["_all","rest_actions"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html"}}},Symbol.toStringTag,{value:"Module"})),Bx={methods:["HEAD"],patterns:[""],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"},v3=Object.freeze(Object.defineProperty({__proto__:null,default:{ping:Bx},ping:Bx},Symbol.toStringTag,{value:"Module"})),zx={url_params:{timeout:"",master_timeout:"",context:""},methods:["PUT","POST"],patterns:["_scripts/{id}","_scripts/{id}/{context}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},_3=Object.freeze(Object.defineProperty({__proto__:null,default:{put_script:zx},put_script:zx},Symbol.toStringTag,{value:"Module"})),qx={url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],search_type:["query_then_fetch","dfs_query_then_fetch"]},methods:["GET","POST"],patterns:["_rank_eval","{indices}/_rank_eval"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html"},y3=Object.freeze(Object.defineProperty({__proto__:null,default:{rank_eval:qx},rank_eval:qx},Symbol.toStringTag,{value:"Module"})),Vx={url_params:{refresh:"__flag__",timeout:"",wait_for_active_shards:"",wait_for_completion:"__flag__",requests_per_second:"",scroll:"",slices:"",max_docs:"all documents"},methods:["POST"],patterns:["_reindex"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"},b3=Object.freeze(Object.defineProperty({__proto__:null,default:{reindex:Vx},reindex:Vx},Symbol.toStringTag,{value:"Module"})),Hx={url_params:{requests_per_second:""},methods:["POST"],patterns:["_reindex/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"},w3=Object.freeze(Object.defineProperty({__proto__:null,default:{reindex_rethrottle:Hx},reindex_rethrottle:Hx},Symbol.toStringTag,{value:"Module"})),Wx={methods:["GET","POST"],patterns:["_render/template","_render/template/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html#_validating_templates"},x3=Object.freeze(Object.defineProperty({__proto__:null,default:{render_search_template:Wx},render_search_template:Wx},Symbol.toStringTag,{value:"Module"})),Ux={methods:["GET","POST"],patterns:["_scripts/painless/_execute"],documentation:"https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html"},S3=Object.freeze(Object.defineProperty({__proto__:null,default:{scripts_painless_execute:Ux},scripts_painless_execute:Ux},Symbol.toStringTag,{value:"Module"})),Gx={url_params:{scroll:"",scroll_id:"",rest_total_hits_as_int:"__flag__"},methods:["GET","POST"],patterns:["_search/scroll"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll"},C3=Object.freeze(Object.defineProperty({__proto__:null,default:{scroll:Gx},scroll:Gx},Symbol.toStringTag,{value:"Module"})),Kx={url_params:{analyzer:"",analyze_wildcard:"__flag__",ccs_minimize_roundtrips:"__flag__",default_operator:["AND","OR"],df:"",explain:"__flag__",stored_fields:[],docvalue_fields:[],from:"0",ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],size:"10",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],suggest_field:"",suggest_mode:["missing","popular","always"],suggest_size:"",suggest_text:"",timeout:"",track_scores:"__flag__",track_total_hits:"__flag__",allow_partial_search_results:"__flag__",typed_keys:"__flag__",version:"__flag__",seq_no_primary_term:"__flag__",request_cache:"__flag__",batched_reduce_size:"",max_concurrent_shard_requests:"",pre_filter_shard_size:"",rest_total_hits_as_int:"__flag__"},methods:["GET","POST"],patterns:["_search","{indices}/_search"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html"},E3=Object.freeze(Object.defineProperty({__proto__:null,default:{search:Kx},search:Kx},Symbol.toStringTag,{value:"Module"})),Xx={url_params:{preference:"random",routing:"",local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET","POST"],patterns:["_search_shards","{indices}/_search_shards"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html"},O3=Object.freeze(Object.defineProperty({__proto__:null,default:{search_shards:Xx},search_shards:Xx},Symbol.toStringTag,{value:"Module"})),Yx={url_params:{ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],preference:"random",routing:[],scroll:"",search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],explain:"__flag__",profile:"__flag__",typed_keys:"__flag__",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_search/template","{indices}/_search/template"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html"},$3=Object.freeze(Object.defineProperty({__proto__:null,default:{search_template:Yx},search_template:Yx},Symbol.toStringTag,{value:"Module"})),T3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.cleanup_repository":{url_params:{master_timeout:"",timeout:""},methods:["POST"],patterns:["_snapshot/{repository}/_cleanup"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),P3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create":{url_params:{master_timeout:"",wait_for_completion:"__flag__"},methods:["PUT","POST"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),R3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create_repository":{url_params:{master_timeout:"",timeout:"",verify:"__flag__"},methods:["PUT","POST"],patterns:["_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),j3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.delete":{url_params:{master_timeout:""},methods:["DELETE"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),M3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.delete_repository":{url_params:{master_timeout:"",timeout:""},methods:["DELETE"],patterns:["_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),I3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.get":{url_params:{master_timeout:"",ignore_unavailable:"__flag__",verbose:"__flag__"},methods:["GET"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),A3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.get_repository":{url_params:{master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_snapshot","_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),N3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.restore":{url_params:{master_timeout:"",wait_for_completion:"__flag__"},methods:["POST"],patterns:["_snapshot/{repository}/{snapshot}/_restore"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),k3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.status":{url_params:{master_timeout:"",ignore_unavailable:"__flag__"},methods:["GET"],patterns:["_snapshot/_status","_snapshot/{repository}/_status","_snapshot/{repository}/{snapshot}/_status"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),L3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.verify_repository":{url_params:{master_timeout:"",timeout:""},methods:["POST"],patterns:["_snapshot/{repository}/_verify"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),F3=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.cancel":{url_params:{nodes:[],actions:[],parent_task_id:""},methods:["POST"],patterns:["_tasks/_cancel","_tasks/{task_id}/_cancel"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),D3=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.get":{url_params:{wait_for_completion:"__flag__",timeout:""},methods:["GET"],patterns:["_tasks/{task_id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),B3=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.list":{url_params:{nodes:[],actions:[],detailed:"__flag__",parent_task_id:"",wait_for_completion:"__flag__",group_by:["nodes","parents","none"],timeout:""},methods:["GET"],patterns:["_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),Jx={url_params:{term_statistics:"__flag__",field_statistics:"__flag__",fields:[],offsets:"__flag__",positions:"__flag__",payloads:"__flag__",preference:"random",routing:"",realtime:"__flag__",version:"",version_type:["internal","external","external_gte","force"]},methods:["GET","POST"],patterns:["{indices}/_termvectors/{id}","{indices}/_termvectors"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html"},z3=Object.freeze(Object.defineProperty({__proto__:null,default:{termvectors:Jx},termvectors:Jx},Symbol.toStringTag,{value:"Module"})),Qx={url_params:{wait_for_active_shards:"",_source:[],_source_excludes:[],_source_includes:[],lang:"painless",refresh:["true","false","wait_for"],retry_on_conflict:"0",routing:"",timeout:"",if_seq_no:"",if_primary_term:""},methods:["POST"],patterns:["{indices}/_update/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html"},q3=Object.freeze(Object.defineProperty({__proto__:null,default:{update:Qx},update:Qx},Symbol.toStringTag,{value:"Module"})),Zx={url_params:{analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",from:"0",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",conflicts:["abort","proceed"],expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",pipeline:"none",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],search_timeout:"",size:"",max_docs:"all documents",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],version:"__flag__",version_type:"__flag__",request_cache:"__flag__",refresh:"__flag__",timeout:"",wait_for_active_shards:"",scroll_size:"",wait_for_completion:"__flag__",requests_per_second:"",slices:""},methods:["POST"],patterns:["{indices}/_update_by_query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html"},V3=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query:Zx},update_by_query:Zx},Symbol.toStringTag,{value:"Module"})),eS={url_params:{requests_per_second:""},methods:["POST"],patterns:["_update_by_query/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html"},H3=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query_rethrottle:eS},update_by_query_rethrottle:eS},Symbol.toStringTag,{value:"Module"})),tS={data_autocomplete_rules:{scroll_id:""}},W3=Object.freeze(Object.defineProperty({__proto__:null,clear_scroll:tS,default:{clear_scroll:tS}},Symbol.toStringTag,{value:"Module"})),U3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.health":{url_params:{expand_wildcards:["open","closed","hidden","none","all"],level:["cluster","indices","shards"],local:"__flag__",master_timeout:"",timeout:"",wait_for_active_shards:"",wait_for_nodes:"",wait_for_events:["immediate","urgent","high","normal","low","languid"],wait_for_no_relocating_shards:"__flag__",wait_for_no_initializing_shards:"__flag__",wait_for_status:["green","yellow","red"]}}}},Symbol.toStringTag,{value:"Module"})),G3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_component_template":{data_autocomplete_rules:{template:{settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}},mappings:{__scope_link:"put_mapping"}},_meta:{},version:0,allow_auto_create:!1}}}},Symbol.toStringTag,{value:"Module"})),K3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_settings":{data_autocomplete_rules:{persistent:{cluster:{routing:{"allocation.enable":{__one_of:["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{__one_of:[!1,!0]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{_ip:"",_name:"",_host:"",_id:""},"allocation.include":{_ip:"",_name:"",_host:"",_id:""},"allocation.require":{_ip:"",_name:"",_host:"",_id:""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{values:[]}},"allocation.allow_rebalance":{__one_of:["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{__one_of:[!1,!0]}}},indices:{breaker:{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}},transient:{cluster:{routing:{"allocation.enable":{__one_of:["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{__one_of:[!1,!0]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{_ip:"",_name:"",_host:"",_id:""},"allocation.include":{_ip:"",_name:"",_host:"",_id:""},"allocation.require":{_ip:"",_name:"",_host:"",_id:""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{values:[]}},"allocation.allow_rebalance":{__one_of:["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{__one_of:[!1,!0]}}},indices:{breaker:{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}}}}}},Symbol.toStringTag,{value:"Module"})),X3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.reroute":{data_autocomplete_rules:{commands:[{move:{__template:{index:"",shard:0,from_node:"",to_node:""},index:"{index}",shard:0,from_node:"{node}",to_node:"{node}"},cancel:{__template:{index:"",shard:0,node:""},index:"{index}",shard:0,node:"{node}",allow_primary:{__one_of:[!0,!1]}},allocate:{__template:{index:"",shard:0,node:""},index:"{index}",shard:0,node:"{node}",allow_primary:{__one_of:[!0,!1]}}}],dry_run:{__one_of:[!0,!1]}}}}},Symbol.toStringTag,{value:"Module"})),nS={priority:10,data_autocomplete_rules:{query:{}}},Y3=Object.freeze(Object.defineProperty({__proto__:null,count:nS,default:{count:nS}},Symbol.toStringTag,{value:"Module"})),J3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.analyze":{data_autocomplete_rules:{text:[],field:"{field}",analyzer:"",tokenizer:"",char_filter:[],filter:[],explain:{__one_of:[!1,!0]},attributes:[]}}}},Symbol.toStringTag,{value:"Module"})),Q3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clone":{data_autocomplete_rules:{settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),Z3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.create":{data_autocomplete_rules:{mappings:{__scope_link:"put_mapping"},settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),e6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_template":{patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),t6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_template":{patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),n6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_field_mapping":{priority:10}}},Symbol.toStringTag,{value:"Module"})),r6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_mapping":{priority:10}}},Symbol.toStringTag,{value:"Module"})),o6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_template":{patterns:["_template","_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),i6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_alias":{data_autocomplete_rules:{filter:{},routing:"1",search_routing:"1,2",index_routing:"1"}}}},Symbol.toStringTag,{value:"Module"})),a6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_settings":{data_autocomplete_rules:{__scope_link:"put_settings"}}}},Symbol.toStringTag,{value:"Module"})),s6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_template":{data_autocomplete_rules:{index_patterns:[],mappings:{__scope_link:"put_mapping"},settings:{__scope_link:"put_settings"},version:0,order:0,aliases:{__template:{NAME:{}}}},patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),l6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.rollover":{data_autocomplete_rules:{conditions:{max_age:"7d",max_docs:1e3,max_size:"5gb"},settings:{__scope_link:"put_settings"},mappings:{__scope_link:"put_mapping"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),c6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.update_aliases":{data_autocomplete_rules:{actions:{__template:[{add:{index:"test1",alias:"alias1"}}],__any_of:[{add:{index:"{index}",alias:"",filter:{},routing:"1",search_routing:"1,2",index_routing:"1"},remove:{index:"",alias:""}}]}}}}},Symbol.toStringTag,{value:"Module"})),u6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.validate_query":{data_autocomplete_rules:{query:{}}}}},Symbol.toStringTag,{value:"Module"})),d6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create":{data_autocomplete_rules:{indices:"*",ignore_unavailable:{__one_of:[!0,!1]},include_global_state:{__one_of:[!0,!1]},partial:{__one_of:[!0,!1]}}}}},Symbol.toStringTag,{value:"Module"})),f6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create_repository":{data_autocomplete_rules:{__template:{type:""},type:{__one_of:["fs","url","s3","hdfs","azure"]},settings:{__one_of:[{__condition:{lines_regex:`type["']\\s*:\\s*["']fs\``},__template:{location:"path"},location:"path",compress:{__one_of:[!0,!1]},concurrent_streams:5,chunk_size:"10m",max_restore_bytes_per_sec:"20mb",max_snapshot_bytes_per_sec:"20mb"},{__condition:{lines_regex:`type["']\\s*:\\s*["']url`},__template:{url:""},url:"",concurrent_streams:5},{__condition:{lines_regex:`type["']\\s*:\\s*["']s3`},__template:{bucket:""},bucket:"",region:"",base_path:"",concurrent_streams:5,chunk_size:"10m",compress:{__one_of:[!0,!1]}},{__condition:{lines_regex:`type["']\\s*:\\s*["']hdfs`},__template:{path:""},uri:"",path:"some/path",load_defaults:{__one_of:[!0,!1]},conf_location:"cfg.xml",concurrent_streams:5,compress:{__one_of:[!0,!1]},chunk_size:"10m"},{__condition:{lines_regex:`type["']\\s*:\\s*["']azure`},__template:{path:""},container:"",base_path:"",client:"default",location_mode:{__one_of:["primary_only","secondary_only"]},readonly:{__one_of:[!0,!1]},compress:{__one_of:[!0,!1]},chunk_size:"10m"}]}}}}},Symbol.toStringTag,{value:"Module"})),p6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.restore":{data_autocomplete_rules:{indices:"*",ignore_unavailable:{__one_of:[!0,!1]},include_global_state:!1,rename_pattern:"index_(.+)",rename_replacement:"restored_index_$1"}}}},Symbol.toStringTag,{value:"Module"})),rS={data_autocomplete_rules:{conflicts:"",query:{__scope_link:"GLOBAL.query"},script:{__template:{source:"",lang:"painless"},__scope_link:"GLOBAL.script"}}},h6=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query:rS},update_by_query:rS},Symbol.toStringTag,{value:"Module"}));var Ve={exports:{}};(function(e){function t(n,r){for(let o=n,i="";o;){let a=r[o];if(typeof a=="string")return a+i;if(a)return a.location.replace(/\/*$/,"/")+(i||a.main||a.name);if(a===!1)return"";let l=o.lastIndexOf("/");if(l===-1)break;i=o.substr(l)+i,o=o.slice(0,l)}return n}if(!(e.window!==void 0&&e.document||e.acequire&&e.define)){e.console||(e.console=function(){let o=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:o})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(o,i,a,l,s){postMessage({type:"error",data:{message:o,data:s.data,file:i,line:a,col:l,stack:s.stack}})},e.normalizeModule=function(o,i){if(i.indexOf("!")!==-1){let l=i.split("!");return e.normalizeModule(o,l[0])+"!"+e.normalizeModule(o,l[1])}if(i.charAt(0)=="."){let l=o.split("/").slice(0,-1).join("/");for(i=(l?l+"/":"")+i;i.indexOf(".")!==-1&&a!=i;){var a=i;i=i.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},e.acequire=function(i,a){if(a||(a=i,i=null),!a.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");a=e.normalizeModule(i,a);let l=e.acequire.modules[a];if(l)return l.initialized||(l.initialized=!0,l.exports=l.factory().exports),l.exports;if(!e.acequire.tlns)return console.log("unable to load "+a);let s=t(a,e.acequire.tlns);return s.slice(-3)!=".js"&&(s+=".js"),e.acequire.id=a,e.acequire.modules[a]={},importScripts(s),e.acequire(i,a)},e.acequire.modules={},e.acequire.tlns={},e.define=function(o,i,a){if(arguments.length==2?(a=i,typeof o!="string"&&(i=o,o=e.acequire.id)):arguments.length==1&&(a=o,i=[],o=e.acequire.id),typeof a!="function")return e.acequire.modules[o]={exports:a,initialized:!0},void 0;i.length||(i=["require","exports","module"]);let l=function(s){return e.acequire(o,s)};e.acequire.modules[o]={exports:{},factory:function(){let s=this,c=a.apply(this,i.map(function(u){switch(u){case"require":return l;case"exports":return s.exports;case"module":return s;default:return l(u)}}));return c&&(s.exports=c),s}}},e.define.amd={},acequire.tlns={},e.initBaseUrls=function(o){for(let i in o)acequire.tlns[i]=o[i]},e.initSender=function(){let o=e.acequire("ace/lib/event_emitter").EventEmitter,i=e.acequire("ace/lib/oop"),a=function(){};return(function(){i.implement(this,o),this.callback=function(l,s){postMessage({type:"call",id:s,data:l})},this.emit=function(l,s){postMessage({type:"event",name:l,data:s})}}).call(a.prototype),new a};let n=e.main=null,r=e.sender=null;e.onmessage=function(o){let i=o.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),acequire("ace/lib/es5-shim"),r=e.sender=e.initSender();let a=acequire(i.module)[i.classname];n=e.main=new a(r)}}}})(void 0),ace.define("ace/lib/oop",["require","exports","module"],function(e,t){t.inherits=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(n,r){for(let o in r)n[o]=r[o];return n},t.implement=function(n,r){t.mixin(n,r)}}),ace.define("ace/range",["require","exports","module"],function(e,t){let n=function(o,i){return o.row-i.row||o.column-i.column},r=function(o,i,a,l){this.start={row:o,column:i},this.end={row:a,column:l}};(function(){this.isEqual=function(o){return this.start.row===o.start.row&&this.end.row===o.end.row&&this.start.column===o.start.column&&this.end.column===o.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(o,i){return this.compare(o,i)==0},this.compareRange=function(o){let i,a=o.end,l=o.start;return i=this.compare(a.row,a.column),i==1?(i=this.compare(l.row,l.column),i==1?2:i==0?1:0):i==-1?-2:(i=this.compare(l.row,l.column),i==-1?-1:i==1?42:0)},this.comparePoint=function(o){return this.compare(o.row,o.column)},this.containsRange=function(o){return this.comparePoint(o.start)==0&&this.comparePoint(o.end)==0},this.intersects=function(o){let i=this.compareRange(o);return i==-1||i==0||i==1},this.isEnd=function(o,i){return this.end.row==o&&this.end.column==i},this.isStart=function(o,i){return this.start.row==o&&this.start.column==i},this.setStart=function(o,i){typeof o=="object"?(this.start.column=o.column,this.start.row=o.row):(this.start.row=o,this.start.column=i)},this.setEnd=function(o,i){typeof o=="object"?(this.end.column=o.column,this.end.row=o.row):(this.end.row=o,this.end.column=i)},this.inside=function(o,i){return this.compare(o,i)==0?!(this.isEnd(o,i)||this.isStart(o,i)):!1},this.insideStart=function(o,i){return this.compare(o,i)==0?!this.isEnd(o,i):!1},this.insideEnd=function(o,i){return this.compare(o,i)==0?!this.isStart(o,i):!1},this.compare=function(o,i){return this.isMultiLine()||o!==this.start.row?this.start.row>o?-1:o>this.end.row?1:this.start.row===o?i>=this.start.column?0:-1:this.end.row===o?this.end.column>=i?0:1:0:this.start.column>i?-1:i>this.end.column?1:0},this.compareStart=function(o,i){return this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.compareEnd=function(o,i){return this.end.row==o&&this.end.column==i?1:this.compare(o,i)},this.compareInside=function(o,i){return this.end.row==o&&this.end.column==i?1:this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.clipRows=function(o,i){if(this.end.row>i)var a={row:i+1,column:0};else if(o>this.end.row)var a={row:o,column:0};if(this.start.row>i)var l={row:i+1,column:0};else if(o>this.start.row)var l={row:o,column:0};return r.fromPoints(l||this.start,a||this.end)},this.extend=function(o,i){let a=this.compare(o,i);if(a==0)return this;if(a==-1)var l={row:o,column:i};else var s={row:o,column:i};return r.fromPoints(l||this.start,s||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 r.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(o){let i=o.documentToScreenPosition(this.start),a=o.documentToScreenPosition(this.end);return new r(i.row,i.column,a.row,a.column)},this.moveBy=function(o,i){this.start.row+=o,this.start.column+=i,this.end.row+=o,this.end.column+=i}}).call(r.prototype),r.fromPoints=function(o,i){return new r(o.row,o.column,i.row,i.column)},r.comparePoints=n,r.comparePoints=function(o,i){return o.row-i.row||o.column-i.column},t.Range=r}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t){t.applyDelta=function(n,r){let o=r.start.row,i=r.start.column,a=n[o]||"";switch(r.action){case"insert":var l=r.lines;if(l.length===1)n[o]=a.substring(0,i)+r.lines[0]+a.substring(i);else{let u=[o,1].concat(r.lines);n.splice.apply(n,u),n[o]=a.substring(0,i)+n[o],n[o+r.lines.length-1]+=a.substring(i)}break;case"remove":var s=r.end.column,c=r.end.row;o===c?n[o]=a.substring(0,i)+a.substring(s):n.splice(o,c-o+1,a.substring(0,i)+n[c].substring(s))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t){let n={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(i,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});let l=this._eventRegistry[i]||[],s=this._defaultHandlers[i];if(l.length||s){typeof a=="object"&&a||(a={}),a.type||(a.type=i),a.stopPropagation||(a.stopPropagation=r),a.preventDefault||(a.preventDefault=o),l=l.slice();for(let c=0;l.length>c&&(l[c](a,this),!a.propagationStopped);c++);return s&&!a.defaultPrevented?s(a,this):void 0}},n._signal=function(i,a){let l=(this._eventRegistry||{})[i];if(l){l=l.slice();for(let s=0;l.length>s;s++)l[s](a,this)}},n.once=function(i,a){let l=this;a&&this.addEventListener(i,function s(){l.removeEventListener(i,s),a.apply(null,arguments)})},n.setDefaultHandler=function(i,a){let l=this._defaultHandlers;if(l||(l=this._defaultHandlers={_disabled_:{}}),l[i]){let s=l[i],c=l._disabled_[i];c||(l._disabled_[i]=c=[]),c.push(s);let u=c.indexOf(a);u!=-1&&c.splice(u,1)}l[i]=a},n.removeDefaultHandler=function(i,a){let l=this._defaultHandlers;if(l){let s=l._disabled_[i];if(l[i]==a)l[i],s&&this.setDefaultHandler(i,s.pop());else if(s){let c=s.indexOf(a);c!=-1&&s.splice(c,1)}}},n.on=n.addEventListener=function(i,a,l){this._eventRegistry=this._eventRegistry||{};let s=this._eventRegistry[i];return s||(s=this._eventRegistry[i]=[]),s.indexOf(a)==-1&&s[l?"unshift":"push"](a),a},n.off=n.removeListener=n.removeEventListener=function(i,a){this._eventRegistry=this._eventRegistry||{};let l=this._eventRegistry[i];if(l){let s=l.indexOf(a);s!==-1&&l.splice(s,1)}},n.removeAllListeners=function(i){this._eventRegistry&&(this._eventRegistry[i]=[])},t.EventEmitter=n}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){let n=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(i,a,l){this.$onChange=this.onChange.bind(this),this.attach(i),l===void 0?this.setPosition(a.row,a.column):this.setPosition(a,l)};(function(){function i(l,s,c){let u=c?l.column<=s.column:l.column<s.column;return l.row<s.row||l.row==s.row&&u}function a(l,s,c){let u=l.action=="insert",f=(u?1:-1)*(l.end.row-l.start.row),d=(u?1:-1)*(l.end.column-l.start.column),y=l.start,x=u?y:l.end;return i(s,y,c)?{row:s.row,column:s.column}:i(x,s,!c)?{row:s.row+f,column:s.column+(s.row==x.row?d:0)}:{row:y.row,column:y.column}}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row||l.start.row>this.row)){let s=a(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},this.setPosition=function(l,s,c){let u;if(u=c?{row:l,column:s}:this.$clipPositionToDocument(l,s),this.row!=u.row||this.column!=u.column){let f={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:f,value:u})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(l,s){let c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):0>l?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,s))),0>s&&(c.column=0),c}}).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){let n=e("./lib/oop"),r=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,i=e("./range").Range,a=e("./anchor").Anchor,l=function(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){n.implement(this,o),this.setValue=function(s){let c=this.getLength()-1;this.remove(new i(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,c){return new a(this,s,c)},this.$split="aaa".split(/a/).length===0?function(s){return s.replace(/\r\n|\r/g,`
303
+ `}]},renderTabBarItemIcon:i,addTab:a,onMinimizeClick:l=()=>{console.warn("onMinimizeClick function is null")},newTabClick:s=()=>{console.warn("newTabClick function is null")},updateTabData:c=()=>{console.warn("updateTabData function is null")},sendRequestToES:u=()=>{console.warn("sendRequestToES function is null")}})=>{var C;const f=M.useRef(null),[d,y]=M.useState(!1),[x,E]=M.useState(y4(n));M.useEffect(()=>{const S=()=>{d&&E(f.current.offsetHeight)};return window.addEventListener("resize",S),()=>{window.removeEventListener("resize",S)}},[d]);const h=()=>{f.current!=null&&(d?(f.current.className=f.current.className.replace(" fullscreen",""),b()):f.current.className=f.current.className+" fullscreen"),E(f.current.clientHeight),y(!d)},_=M.useCallback(S=>{l(S),b()},[l]);NN((C=o.activeKey)==null?void 0:C.split(":")[0]);const p={left:fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{className:"tabbar-icon",onClick:_,children:fe.jsx(gn.CodeOutlined,{})}),fe.jsx(g4,{onItemClick:s,width:"300px",panes:o.panes,DataSourceSelector:r,children:fe.jsx("div",{className:"tabbar-icon",children:fe.jsx(gn.PlusOutlined,{})})})]}),right:fe.jsxs(fe.Fragment,{children:[e?fe.jsx("div",{className:"tabbar-icon",onClick:_,children:fe.jsx(gn.MinusOutlined,{})}):null,fe.jsx("div",{className:"tabbar-icon",onClick:h,children:d?fe.jsx(_4,{}):fe.jsx(v4,{})})]})},m=M.useMemo(()=>["left","right"].reduce((S,w)=>({...S,[w]:p[w]}),{}),[]),g=()=>{document.body.style.overflow="hidden"},b=()=>{document.body.style.overflow=""};return fe.jsx(aS.Resizable,{defaultSize:{height:x},minHeight:70,maxHeight:"100vh",handleComponent:{top:fe.jsx(p4,{})},onResizeStop:(S,w,O,R)=>{E(x+R.height)},enable:{top:t,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},children:fe.jsx("div",{style:{background:"#fff",height:"100%"},onMouseOver:g,onMouseOut:b,id:"console",ref:f,children:fe.jsx(f4,{editorHeight:x,type:"editable-card",tabBarExtraContent:m,tabData:o,renderTabBarItemIcon:i,addTab:a,updateTabData:c,sendRequestToES:u})})})},vx={methods:[]},w4=Object.freeze(Object.defineProperty({__proto__:null,default:{documentation:vx},documentation:vx},Symbol.toStringTag,{value:"Module"})),_x={url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",type:"",_source:[],_source_excludes:[],_source_includes:[],pipeline:""},methods:["POST","PUT"],patterns:["_bulk","{indices}/_bulk","{indices}/{type}/_bulk"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html"},x4=Object.freeze(Object.defineProperty({__proto__:null,bulk:_x,default:{bulk:_x}},Symbol.toStringTag,{value:"Module"})),S4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.aliases":{url_params:{format:"",local:"__flag__",h:[],help:"__flag__",s:[],v:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cat/aliases","_cat/aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html"}}},Symbol.toStringTag,{value:"Module"})),C4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.allocation":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/allocation","_cat/allocation/{nodes}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html"}}},Symbol.toStringTag,{value:"Module"})),E4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.count":{url_params:{format:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/count","_cat/count/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html"}}},Symbol.toStringTag,{value:"Module"})),O4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.fielddata":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],h:[],help:"__flag__",s:[],v:"__flag__",fields:[]},methods:["GET"],patterns:["_cat/fielddata","_cat/fielddata/{fields}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html"}}},Symbol.toStringTag,{value:"Module"})),$4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.health":{url_params:{format:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],ts:"__flag__",v:"__flag__"},methods:["GET"],patterns:["_cat/health"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html"}}},Symbol.toStringTag,{value:"Module"})),T4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.help":{url_params:{help:"__flag__",s:[]},methods:["GET"],patterns:["_cat"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html"}}},Symbol.toStringTag,{value:"Module"})),P4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.indices":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],health:["green","yellow","red"],help:"__flag__",pri:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__",include_unloaded_segments:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cat/indices","_cat/indices/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html"}}},Symbol.toStringTag,{value:"Module"})),R4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.master":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/master"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html"}}},Symbol.toStringTag,{value:"Module"})),j4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.nodeattrs":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/nodeattrs"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html"}}},Symbol.toStringTag,{value:"Module"})),M4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.nodes":{url_params:{bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],format:"",full_id:"__flag__",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/nodes"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html"}}},Symbol.toStringTag,{value:"Module"})),I4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.pending_tasks":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/pending_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html"}}},Symbol.toStringTag,{value:"Module"})),A4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.plugins":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/plugins"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html"}}},Symbol.toStringTag,{value:"Module"})),N4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.recovery":{url_params:{format:"",active_only:"__flag__",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],detailed:"__flag__",h:[],help:"__flag__",index:[],s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/recovery","_cat/recovery/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html"}}},Symbol.toStringTag,{value:"Module"})),k4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.repositories":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/repositories"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html"}}},Symbol.toStringTag,{value:"Module"})),L4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.segments":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/segments","_cat/segments/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html"}}},Symbol.toStringTag,{value:"Module"})),F4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.shards":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/shards","_cat/shards/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html"}}},Symbol.toStringTag,{value:"Module"})),D4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.snapshots":{url_params:{format:"",ignore_unavailable:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/snapshots","_cat/snapshots/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),B4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.tasks":{url_params:{format:"",node_id:[],actions:[],detailed:"__flag__",parent_task:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),z4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.templates":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/templates","_cat/templates/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html"}}},Symbol.toStringTag,{value:"Module"})),q4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.thread_pool":{url_params:{format:"",size:["","k","m","g","t","p"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/thread_pool","_cat/thread_pool/{thread_pool_patterns}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html"}}},Symbol.toStringTag,{value:"Module"})),yx={methods:["DELETE"],patterns:["_search/scroll"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#_clear_scroll_api"},V4=Object.freeze(Object.defineProperty({__proto__:null,clear_scroll:yx,default:{clear_scroll:yx}},Symbol.toStringTag,{value:"Module"})),H4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.allocation_explain":{url_params:{include_yes_decisions:"__flag__",include_disk_info:"__flag__"},methods:["GET","POST"],patterns:["_cluster/allocation/explain"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html"}}},Symbol.toStringTag,{value:"Module"})),W4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.delete_component_template":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-templates.html"}}},Symbol.toStringTag,{value:"Module"})),U4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.get_component_template":{url_params:{flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_component_template","_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/getting-component-templates.html"}}},Symbol.toStringTag,{value:"Module"})),G4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.get_settings":{url_params:{flat_settings:"__flag__",master_timeout:"",timeout:"",include_defaults:"__flag__"},methods:["GET"],patterns:["_cluster/settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),K4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.health":{url_params:{expand_wildcards:["open","closed","hidden","none","all"],level:["cluster","indices","shards"],local:"__flag__",master_timeout:"",timeout:"",wait_for_active_shards:"",wait_for_nodes:"",wait_for_events:["immediate","urgent","high","normal","low","languid"],wait_for_no_relocating_shards:"__flag__",wait_for_no_initializing_shards:"__flag__",wait_for_status:["green","yellow","red"]},methods:["GET"],patterns:["_cluster/health","_cluster/health/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html"}}},Symbol.toStringTag,{value:"Module"})),X4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.pending_tasks":{url_params:{local:"__flag__",master_timeout:""},methods:["GET"],patterns:["_cluster/pending_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html"}}},Symbol.toStringTag,{value:"Module"})),Y4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_component_template":{url_params:{create:"__flag__",master_timeout:""},methods:["PUT"],patterns:["_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html"}}},Symbol.toStringTag,{value:"Module"})),J4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_settings":{url_params:{flat_settings:"__flag__",master_timeout:"",timeout:""},methods:["PUT"],patterns:["_cluster/settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),Q4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.remote_info":{methods:["GET"],patterns:["_remote/info"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html"}}},Symbol.toStringTag,{value:"Module"})),Z4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.reroute":{url_params:{dry_run:"__flag__",explain:"__flag__",retry_failed:"__flag__",metric:[],master_timeout:"",timeout:""},methods:["POST"],patterns:["_cluster/reroute"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html"}}},Symbol.toStringTag,{value:"Module"})),e3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.state":{url_params:{local:"__flag__",master_timeout:"",flat_settings:"__flag__",wait_for_metadata_version:"",wait_for_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cluster/state","_cluster/state/{metrics}","_cluster/state/{metrics}/{indices}"],url_components:{metrics:["_all","blocks","master_node","metadata","nodes","routing_nodes","routing_table","version"],indices:null},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html"}}},Symbol.toStringTag,{value:"Module"})),t3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.stats":{url_params:{flat_settings:"__flag__",timeout:""},methods:["GET"],patterns:["_cluster/stats","_cluster/stats/nodes/{nodes}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html"}}},Symbol.toStringTag,{value:"Module"})),bx={url_params:{ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],min_score:"",preference:"random",routing:[],q:"",analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",lenient:"__flag__",terminate_after:""},methods:["POST","GET"],patterns:["_count","{indices}/_count"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html"},n3=Object.freeze(Object.defineProperty({__proto__:null,count:bx,default:{count:bx}},Symbol.toStringTag,{value:"Module"})),wx={url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",version:"",version_type:["internal","external","external_gte"],pipeline:""},methods:["PUT","POST"],patterns:["{indices}/_create/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"},r3=Object.freeze(Object.defineProperty({__proto__:null,create:wx,default:{create:wx}},Symbol.toStringTag,{value:"Module"})),o3=Object.freeze(Object.defineProperty({__proto__:null,default:{delete:{url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",if_seq_no:"",if_primary_term:"",version:"",version_type:["internal","external","external_gte","force"]},methods:["DELETE"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html"}}},Symbol.toStringTag,{value:"Module"})),xx={url_params:{analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",from:"0",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",conflicts:["abort","proceed"],expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],search_timeout:"",size:"",max_docs:"all documents",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],version:"__flag__",request_cache:"__flag__",refresh:"__flag__",timeout:"",wait_for_active_shards:"",scroll_size:"",wait_for_completion:"__flag__",requests_per_second:"",slices:""},methods:["POST"],patterns:["{indices}/_delete_by_query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html"},i3=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_by_query:xx},delete_by_query:xx},Symbol.toStringTag,{value:"Module"})),Sx={url_params:{requests_per_second:""},methods:["POST"],patterns:["_delete_by_query/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html"},a3=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_by_query_rethrottle:Sx},delete_by_query_rethrottle:Sx},Symbol.toStringTag,{value:"Module"})),Cx={url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_scripts/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},s3=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_script:Cx},delete_script:Cx},Symbol.toStringTag,{value:"Module"})),Ex={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["HEAD"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},l3=Object.freeze(Object.defineProperty({__proto__:null,default:{exists:Ex},exists:Ex},Symbol.toStringTag,{value:"Module"})),Ox={url_params:{preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["HEAD"],patterns:["{indices}/_source/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},c3=Object.freeze(Object.defineProperty({__proto__:null,default:{exists_source:Ox},exists_source:Ox},Symbol.toStringTag,{value:"Module"})),$x={url_params:{analyze_wildcard:"__flag__",analyzer:"",default_operator:["AND","OR"],df:"_all",stored_fields:[],lenient:"__flag__",preference:"random",q:"",routing:"",_source:[],_source_excludes:[],_source_includes:[]},methods:["GET","POST"],patterns:["{indices}/_explain/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html"},u3=Object.freeze(Object.defineProperty({__proto__:null,default:{explain:$x},explain:$x},Symbol.toStringTag,{value:"Module"})),Tx={url_params:{fields:[],ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],include_unmapped:"__flag__"},methods:["GET","POST"],patterns:["_field_caps","{indices}/_field_caps"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html"},d3=Object.freeze(Object.defineProperty({__proto__:null,default:{field_caps:Tx},field_caps:Tx},Symbol.toStringTag,{value:"Module"})),Px={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["GET"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},f3=Object.freeze(Object.defineProperty({__proto__:null,default:{get:Px},get:Px},Symbol.toStringTag,{value:"Module"})),Rx={url_params:{master_timeout:""},methods:["GET"],patterns:["_scripts/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},p3=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script:Rx},get_script:Rx},Symbol.toStringTag,{value:"Module"})),jx={methods:["GET"],patterns:["_script_context"]},h3=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script_context:jx},get_script_context:jx},Symbol.toStringTag,{value:"Module"})),Mx={methods:["GET"],patterns:["_script_language"]},m3=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script_languages:Mx},get_script_languages:Mx},Symbol.toStringTag,{value:"Module"})),Ix={url_params:{preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["GET"],patterns:["{indices}/_source/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},g3=Object.freeze(Object.defineProperty({__proto__:null,default:{get_source:Ix},get_source:Ix},Symbol.toStringTag,{value:"Module"})),Ax={url_params:{wait_for_active_shards:"",op_type:["index","create"],refresh:["true","false","wait_for"],routing:"",timeout:"",version:"",version_type:["internal","external","external_gte"],if_seq_no:"",if_primary_term:"",pipeline:""},methods:["PUT","POST"],patterns:["{indices}/_doc/{id}","{indices}/_doc"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"},v3=Object.freeze(Object.defineProperty({__proto__:null,default:{index:Ax},index:Ax},Symbol.toStringTag,{value:"Module"})),_3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.analyze":{url_params:{index:""},methods:["GET","POST"],patterns:["_analyze","{indices}/_analyze"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html"}}},Symbol.toStringTag,{value:"Module"})),y3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clear_cache":{url_params:{fielddata:"__flag__",fields:[],query:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],index:[],request:"__flag__"},methods:["POST"],patterns:["_cache/clear","{indices}/_cache/clear"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html"}}},Symbol.toStringTag,{value:"Module"})),b3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clone":{url_params:{timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_clone/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html"}}},Symbol.toStringTag,{value:"Module"})),w3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.close":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],wait_for_active_shards:""},methods:["POST"],patterns:["{indices}/_close"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}},Symbol.toStringTag,{value:"Module"})),x3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.create":{url_params:{include_type_name:"__flag__",wait_for_active_shards:"",timeout:"",master_timeout:""},methods:["PUT"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html"}}},Symbol.toStringTag,{value:"Module"})),S3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["DELETE"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html"}}},Symbol.toStringTag,{value:"Module"})),C3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_alias":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["{indices}/_alias/{name}","{indices}/_aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),E3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_template":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),O3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists":{url_params:{local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",include_defaults:"__flag__"},methods:["HEAD"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html"}}},Symbol.toStringTag,{value:"Module"})),$3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_alias":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["HEAD"],patterns:["_alias/{name}","{indices}/_alias/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),T3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_template":{url_params:{flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["HEAD"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),P3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_type":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["HEAD"],patterns:["{indices}/_mapping/{type}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html"}}},Symbol.toStringTag,{value:"Module"})),R3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.flush":{url_params:{force:"__flag__",wait_if_ongoing:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["POST","GET"],patterns:["_flush","{indices}/_flush"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html"}}},Symbol.toStringTag,{value:"Module"})),j3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.flush_synced":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","none","all"]},methods:["POST","GET"],patterns:["_flush/synced","{indices}/_flush/synced"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush-api.html"}}},Symbol.toStringTag,{value:"Module"})),M3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.forcemerge":{url_params:{flush:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],max_num_segments:"dynamic",only_expunge_deletes:"__flag__"},methods:["POST"],patterns:["_forcemerge","{indices}/_forcemerge"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html"}}},Symbol.toStringTag,{value:"Module"})),I3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get":{url_params:{include_type_name:"__flag__",local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",include_defaults:"__flag__",master_timeout:""},methods:["GET"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html"}}},Symbol.toStringTag,{value:"Module"})),A3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_alias":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["GET"],patterns:["_alias","_alias/{name}","{indices}/_alias/{name}","{indices}/_alias"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),N3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_field_mapping":{url_params:{include_type_name:"__flag__",include_defaults:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["GET"],patterns:["_mapping/field/{fields}","{indices}/_mapping/field/{fields}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),k3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_mapping":{url_params:{include_type_name:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_mapping","{indices}/_mapping"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),L3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_settings":{url_params:{master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",local:"__flag__",include_defaults:"__flag__"},methods:["GET"],patterns:["_settings","{indices}/_settings","{indices}/_settings/{name}","_settings/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html"}}},Symbol.toStringTag,{value:"Module"})),F3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_template":{url_params:{include_type_name:"__flag__",flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_template","_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),D3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_upgrade":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_upgrade","{indices}/_upgrade"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}},Symbol.toStringTag,{value:"Module"})),B3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.open":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],wait_for_active_shards:""},methods:["POST"],patterns:["{indices}/_open"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}},Symbol.toStringTag,{value:"Module"})),z3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_alias":{url_params:{timeout:"",master_timeout:""},methods:["PUT","POST"],patterns:["{indices}/_alias/{name}","{indices}/_aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),q3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_mapping":{url_params:{include_type_name:"__flag__",timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["PUT","POST"],patterns:["{indices}/_mapping"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),V3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_settings":{url_params:{master_timeout:"",timeout:"",preserve_existing:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__"},methods:["PUT"],patterns:["_settings","{indices}/_settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),H3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_template":{url_params:{include_type_name:"__flag__",order:"",create:"__flag__",master_timeout:"",flat_settings:"__flag__"},methods:["PUT","POST"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),W3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.recovery":{url_params:{detailed:"__flag__",active_only:"__flag__"},methods:["GET"],patterns:["_recovery","{indices}/_recovery"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html"}}},Symbol.toStringTag,{value:"Module"})),U3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.refresh":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["POST","GET"],patterns:["_refresh","{indices}/_refresh"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html"}}},Symbol.toStringTag,{value:"Module"})),G3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.rollover":{url_params:{include_type_name:"__flag__",timeout:"",dry_run:"__flag__",master_timeout:"",wait_for_active_shards:""},methods:["POST"],patterns:["{alias}/_rollover","{alias}/_rollover/{new_index}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html"}}},Symbol.toStringTag,{value:"Module"})),K3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.segments":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],verbose:"__flag__"},methods:["GET"],patterns:["_segments","{indices}/_segments"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html"}}},Symbol.toStringTag,{value:"Module"})),X3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.shard_stores":{url_params:{status:[],ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_shard_stores","{indices}/_shard_stores"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html"}}},Symbol.toStringTag,{value:"Module"})),Y3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.shrink":{url_params:{copy_settings:"__flag__",timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_shrink/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html"}}},Symbol.toStringTag,{value:"Module"})),J3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.split":{url_params:{copy_settings:"__flag__",timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_split/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html"}}},Symbol.toStringTag,{value:"Module"})),Q3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.stats":{url_params:{completion_fields:[],fielddata_fields:[],fields:[],groups:[],level:["cluster","indices","shards"],types:[],include_segment_file_sizes:"__flag__",include_unloaded_segments:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],forbid_closed_indices:"__flag__"},methods:["GET"],patterns:["_stats","_stats/{metrics}","{indices}/_stats","{indices}/_stats/{metrics}"],url_components:{metrics:["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"],indices:null},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html"}}},Symbol.toStringTag,{value:"Module"})),Z3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.update_aliases":{url_params:{timeout:"",master_timeout:""},methods:["POST"],patterns:["_aliases"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),e6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.upgrade":{url_params:{allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],ignore_unavailable:"__flag__",wait_for_completion:"__flag__",only_ancient_segments:"__flag__"},methods:["POST"],patterns:["_upgrade","{indices}/_upgrade"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}},Symbol.toStringTag,{value:"Module"})),t6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.validate_query":{url_params:{explain:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],q:"",analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",lenient:"__flag__",rewrite:"__flag__",all_shards:"__flag__"},methods:["GET","POST"],patterns:["_validate/query","{indices}/_validate/query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html"}}},Symbol.toStringTag,{value:"Module"})),Nx={methods:["GET"],patterns:[""],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"},n6=Object.freeze(Object.defineProperty({__proto__:null,default:{info:Nx},info:Nx},Symbol.toStringTag,{value:"Module"})),r6=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.delete_pipeline":{url_params:{master_timeout:"",timeout:""},methods:["DELETE"],patterns:["_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),o6=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.get_pipeline":{url_params:{master_timeout:""},methods:["GET"],patterns:["_ingest/pipeline","_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),i6=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.processor_grok":{methods:["GET"],patterns:["_ingest/processor/grok"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get"}}},Symbol.toStringTag,{value:"Module"})),a6=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.put_pipeline":{url_params:{master_timeout:"",timeout:""},methods:["PUT"],patterns:["_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),s6=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.simulate":{url_params:{verbose:"__flag__"},methods:["GET","POST"],patterns:["_ingest/pipeline/_simulate","_ingest/pipeline/{id}/_simulate"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),kx={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[]},methods:["GET","POST"],patterns:["_mget","{indices}/_mget"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html"},l6=Object.freeze(Object.defineProperty({__proto__:null,default:{mget:kx},mget:kx},Symbol.toStringTag,{value:"Module"})),Lx={url_params:{search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],max_concurrent_searches:"",typed_keys:"__flag__",pre_filter_shard_size:"",max_concurrent_shard_requests:"",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_msearch","{indices}/_msearch"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html"},c6=Object.freeze(Object.defineProperty({__proto__:null,default:{msearch:Lx},msearch:Lx},Symbol.toStringTag,{value:"Module"})),Fx={url_params:{search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],typed_keys:"__flag__",max_concurrent_searches:"",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_msearch/template","{indices}/_msearch/template"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html"},u6=Object.freeze(Object.defineProperty({__proto__:null,default:{msearch_template:Fx},msearch_template:Fx},Symbol.toStringTag,{value:"Module"})),Dx={url_params:{ids:[],term_statistics:"__flag__",field_statistics:"__flag__",fields:[],offsets:"__flag__",positions:"__flag__",payloads:"__flag__",preference:"random",routing:"",realtime:"__flag__",version:"",version_type:["internal","external","external_gte","force"]},methods:["GET","POST"],patterns:["_mtermvectors","{indices}/_mtermvectors"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html"},d6=Object.freeze(Object.defineProperty({__proto__:null,default:{mtermvectors:Dx},mtermvectors:Dx},Symbol.toStringTag,{value:"Module"})),f6=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.hot_threads":{url_params:{interval:"",snapshots:"10",threads:"3",ignore_idle_threads:"__flag__",type:["cpu","wait","block"],timeout:""},methods:["GET"],patterns:["_nodes/hot_threads","_nodes/{nodes}/hot_threads"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html"}}},Symbol.toStringTag,{value:"Module"})),p6=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.info":{url_params:{flat_settings:"__flag__",timeout:""},methods:["GET"],patterns:["_nodes","_nodes/{nodes}","_nodes/{metrics}","_nodes/{nodes}/{metrics}"],url_components:{nodes:null,metrics:["http","ingest","jvm","os","plugins","process","settings","thread_pool","transport"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html"}}},Symbol.toStringTag,{value:"Module"})),h6=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.reload_secure_settings":{url_params:{timeout:""},methods:["POST"],patterns:["_nodes/reload_secure_settings","_nodes/{nodes}/reload_secure_settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/secure-settings.html#reloadable-secure-settings"}}},Symbol.toStringTag,{value:"Module"})),m6=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.stats":{url_params:{completion_fields:[],fielddata_fields:[],fields:[],groups:"__flag__",level:["indices","node","shards"],types:[],timeout:"",include_segment_file_sizes:"__flag__"},methods:["GET"],patterns:["_nodes/stats","_nodes/{nodes}/stats","_nodes/stats/{metrics}","_nodes/{nodes}/stats/{metrics}","_nodes/stats/{metrics}/{index_metric}","_nodes/{nodes}/stats/{metrics}/{index_metric}"],url_components:{nodes:null,metrics:["_all","breaker","discovery","fs","http","indices","jvm","os","process","thread_pool","transport"],index_metric:["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html"}}},Symbol.toStringTag,{value:"Module"})),g6=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.usage":{url_params:{timeout:""},methods:["GET"],patterns:["_nodes/usage","_nodes/{nodes}/usage","_nodes/usage/{metrics}","_nodes/{nodes}/usage/{metrics}"],url_components:{nodes:null,metrics:["_all","rest_actions"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html"}}},Symbol.toStringTag,{value:"Module"})),Bx={methods:["HEAD"],patterns:[""],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"},v6=Object.freeze(Object.defineProperty({__proto__:null,default:{ping:Bx},ping:Bx},Symbol.toStringTag,{value:"Module"})),zx={url_params:{timeout:"",master_timeout:"",context:""},methods:["PUT","POST"],patterns:["_scripts/{id}","_scripts/{id}/{context}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},_6=Object.freeze(Object.defineProperty({__proto__:null,default:{put_script:zx},put_script:zx},Symbol.toStringTag,{value:"Module"})),qx={url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],search_type:["query_then_fetch","dfs_query_then_fetch"]},methods:["GET","POST"],patterns:["_rank_eval","{indices}/_rank_eval"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html"},y6=Object.freeze(Object.defineProperty({__proto__:null,default:{rank_eval:qx},rank_eval:qx},Symbol.toStringTag,{value:"Module"})),Vx={url_params:{refresh:"__flag__",timeout:"",wait_for_active_shards:"",wait_for_completion:"__flag__",requests_per_second:"",scroll:"",slices:"",max_docs:"all documents"},methods:["POST"],patterns:["_reindex"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"},b6=Object.freeze(Object.defineProperty({__proto__:null,default:{reindex:Vx},reindex:Vx},Symbol.toStringTag,{value:"Module"})),Hx={url_params:{requests_per_second:""},methods:["POST"],patterns:["_reindex/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"},w6=Object.freeze(Object.defineProperty({__proto__:null,default:{reindex_rethrottle:Hx},reindex_rethrottle:Hx},Symbol.toStringTag,{value:"Module"})),Wx={methods:["GET","POST"],patterns:["_render/template","_render/template/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html#_validating_templates"},x6=Object.freeze(Object.defineProperty({__proto__:null,default:{render_search_template:Wx},render_search_template:Wx},Symbol.toStringTag,{value:"Module"})),Ux={methods:["GET","POST"],patterns:["_scripts/painless/_execute"],documentation:"https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html"},S6=Object.freeze(Object.defineProperty({__proto__:null,default:{scripts_painless_execute:Ux},scripts_painless_execute:Ux},Symbol.toStringTag,{value:"Module"})),Gx={url_params:{scroll:"",scroll_id:"",rest_total_hits_as_int:"__flag__"},methods:["GET","POST"],patterns:["_search/scroll"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll"},C6=Object.freeze(Object.defineProperty({__proto__:null,default:{scroll:Gx},scroll:Gx},Symbol.toStringTag,{value:"Module"})),Kx={url_params:{analyzer:"",analyze_wildcard:"__flag__",ccs_minimize_roundtrips:"__flag__",default_operator:["AND","OR"],df:"",explain:"__flag__",stored_fields:[],docvalue_fields:[],from:"0",ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],size:"10",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],suggest_field:"",suggest_mode:["missing","popular","always"],suggest_size:"",suggest_text:"",timeout:"",track_scores:"__flag__",track_total_hits:"__flag__",allow_partial_search_results:"__flag__",typed_keys:"__flag__",version:"__flag__",seq_no_primary_term:"__flag__",request_cache:"__flag__",batched_reduce_size:"",max_concurrent_shard_requests:"",pre_filter_shard_size:"",rest_total_hits_as_int:"__flag__"},methods:["GET","POST"],patterns:["_search","{indices}/_search"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html"},E6=Object.freeze(Object.defineProperty({__proto__:null,default:{search:Kx},search:Kx},Symbol.toStringTag,{value:"Module"})),Xx={url_params:{preference:"random",routing:"",local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET","POST"],patterns:["_search_shards","{indices}/_search_shards"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html"},O6=Object.freeze(Object.defineProperty({__proto__:null,default:{search_shards:Xx},search_shards:Xx},Symbol.toStringTag,{value:"Module"})),Yx={url_params:{ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],preference:"random",routing:[],scroll:"",search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],explain:"__flag__",profile:"__flag__",typed_keys:"__flag__",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_search/template","{indices}/_search/template"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html"},$6=Object.freeze(Object.defineProperty({__proto__:null,default:{search_template:Yx},search_template:Yx},Symbol.toStringTag,{value:"Module"})),T6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.cleanup_repository":{url_params:{master_timeout:"",timeout:""},methods:["POST"],patterns:["_snapshot/{repository}/_cleanup"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),P6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create":{url_params:{master_timeout:"",wait_for_completion:"__flag__"},methods:["PUT","POST"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),R6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create_repository":{url_params:{master_timeout:"",timeout:"",verify:"__flag__"},methods:["PUT","POST"],patterns:["_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),j6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.delete":{url_params:{master_timeout:""},methods:["DELETE"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),M6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.delete_repository":{url_params:{master_timeout:"",timeout:""},methods:["DELETE"],patterns:["_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),I6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.get":{url_params:{master_timeout:"",ignore_unavailable:"__flag__",verbose:"__flag__"},methods:["GET"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),A6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.get_repository":{url_params:{master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_snapshot","_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),N6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.restore":{url_params:{master_timeout:"",wait_for_completion:"__flag__"},methods:["POST"],patterns:["_snapshot/{repository}/{snapshot}/_restore"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),k6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.status":{url_params:{master_timeout:"",ignore_unavailable:"__flag__"},methods:["GET"],patterns:["_snapshot/_status","_snapshot/{repository}/_status","_snapshot/{repository}/{snapshot}/_status"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),L6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.verify_repository":{url_params:{master_timeout:"",timeout:""},methods:["POST"],patterns:["_snapshot/{repository}/_verify"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),F6=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.cancel":{url_params:{nodes:[],actions:[],parent_task_id:""},methods:["POST"],patterns:["_tasks/_cancel","_tasks/{task_id}/_cancel"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),D6=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.get":{url_params:{wait_for_completion:"__flag__",timeout:""},methods:["GET"],patterns:["_tasks/{task_id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),B6=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.list":{url_params:{nodes:[],actions:[],detailed:"__flag__",parent_task_id:"",wait_for_completion:"__flag__",group_by:["nodes","parents","none"],timeout:""},methods:["GET"],patterns:["_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),Jx={url_params:{term_statistics:"__flag__",field_statistics:"__flag__",fields:[],offsets:"__flag__",positions:"__flag__",payloads:"__flag__",preference:"random",routing:"",realtime:"__flag__",version:"",version_type:["internal","external","external_gte","force"]},methods:["GET","POST"],patterns:["{indices}/_termvectors/{id}","{indices}/_termvectors"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html"},z6=Object.freeze(Object.defineProperty({__proto__:null,default:{termvectors:Jx},termvectors:Jx},Symbol.toStringTag,{value:"Module"})),Qx={url_params:{wait_for_active_shards:"",_source:[],_source_excludes:[],_source_includes:[],lang:"painless",refresh:["true","false","wait_for"],retry_on_conflict:"0",routing:"",timeout:"",if_seq_no:"",if_primary_term:""},methods:["POST"],patterns:["{indices}/_update/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html"},q6=Object.freeze(Object.defineProperty({__proto__:null,default:{update:Qx},update:Qx},Symbol.toStringTag,{value:"Module"})),Zx={url_params:{analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",from:"0",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",conflicts:["abort","proceed"],expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",pipeline:"none",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],search_timeout:"",size:"",max_docs:"all documents",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],version:"__flag__",version_type:"__flag__",request_cache:"__flag__",refresh:"__flag__",timeout:"",wait_for_active_shards:"",scroll_size:"",wait_for_completion:"__flag__",requests_per_second:"",slices:""},methods:["POST"],patterns:["{indices}/_update_by_query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html"},V6=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query:Zx},update_by_query:Zx},Symbol.toStringTag,{value:"Module"})),eS={url_params:{requests_per_second:""},methods:["POST"],patterns:["_update_by_query/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html"},H6=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query_rethrottle:eS},update_by_query_rethrottle:eS},Symbol.toStringTag,{value:"Module"})),tS={data_autocomplete_rules:{scroll_id:""}},W6=Object.freeze(Object.defineProperty({__proto__:null,clear_scroll:tS,default:{clear_scroll:tS}},Symbol.toStringTag,{value:"Module"})),U6=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.health":{url_params:{expand_wildcards:["open","closed","hidden","none","all"],level:["cluster","indices","shards"],local:"__flag__",master_timeout:"",timeout:"",wait_for_active_shards:"",wait_for_nodes:"",wait_for_events:["immediate","urgent","high","normal","low","languid"],wait_for_no_relocating_shards:"__flag__",wait_for_no_initializing_shards:"__flag__",wait_for_status:["green","yellow","red"]}}}},Symbol.toStringTag,{value:"Module"})),G6=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_component_template":{data_autocomplete_rules:{template:{settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}},mappings:{__scope_link:"put_mapping"}},_meta:{},version:0,allow_auto_create:!1}}}},Symbol.toStringTag,{value:"Module"})),K6=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_settings":{data_autocomplete_rules:{persistent:{cluster:{routing:{"allocation.enable":{__one_of:["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{__one_of:[!1,!0]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{_ip:"",_name:"",_host:"",_id:""},"allocation.include":{_ip:"",_name:"",_host:"",_id:""},"allocation.require":{_ip:"",_name:"",_host:"",_id:""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{values:[]}},"allocation.allow_rebalance":{__one_of:["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{__one_of:[!1,!0]}}},indices:{breaker:{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}},transient:{cluster:{routing:{"allocation.enable":{__one_of:["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{__one_of:[!1,!0]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{_ip:"",_name:"",_host:"",_id:""},"allocation.include":{_ip:"",_name:"",_host:"",_id:""},"allocation.require":{_ip:"",_name:"",_host:"",_id:""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{values:[]}},"allocation.allow_rebalance":{__one_of:["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{__one_of:[!1,!0]}}},indices:{breaker:{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}}}}}},Symbol.toStringTag,{value:"Module"})),X6=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.reroute":{data_autocomplete_rules:{commands:[{move:{__template:{index:"",shard:0,from_node:"",to_node:""},index:"{index}",shard:0,from_node:"{node}",to_node:"{node}"},cancel:{__template:{index:"",shard:0,node:""},index:"{index}",shard:0,node:"{node}",allow_primary:{__one_of:[!0,!1]}},allocate:{__template:{index:"",shard:0,node:""},index:"{index}",shard:0,node:"{node}",allow_primary:{__one_of:[!0,!1]}}}],dry_run:{__one_of:[!0,!1]}}}}},Symbol.toStringTag,{value:"Module"})),nS={priority:10,data_autocomplete_rules:{query:{}}},Y6=Object.freeze(Object.defineProperty({__proto__:null,count:nS,default:{count:nS}},Symbol.toStringTag,{value:"Module"})),J6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.analyze":{data_autocomplete_rules:{text:[],field:"{field}",analyzer:"",tokenizer:"",char_filter:[],filter:[],explain:{__one_of:[!1,!0]},attributes:[]}}}},Symbol.toStringTag,{value:"Module"})),Q6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clone":{data_autocomplete_rules:{settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),Z6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.create":{data_autocomplete_rules:{mappings:{__scope_link:"put_mapping"},settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),e8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_template":{patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),t8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_template":{patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),n8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_field_mapping":{priority:10}}},Symbol.toStringTag,{value:"Module"})),r8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_mapping":{priority:10}}},Symbol.toStringTag,{value:"Module"})),o8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_template":{patterns:["_template","_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),i8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_alias":{data_autocomplete_rules:{filter:{},routing:"1",search_routing:"1,2",index_routing:"1"}}}},Symbol.toStringTag,{value:"Module"})),a8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_settings":{data_autocomplete_rules:{__scope_link:"put_settings"}}}},Symbol.toStringTag,{value:"Module"})),s8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_template":{data_autocomplete_rules:{index_patterns:[],mappings:{__scope_link:"put_mapping"},settings:{__scope_link:"put_settings"},version:0,order:0,aliases:{__template:{NAME:{}}}},patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),l8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.rollover":{data_autocomplete_rules:{conditions:{max_age:"7d",max_docs:1e3,max_size:"5gb"},settings:{__scope_link:"put_settings"},mappings:{__scope_link:"put_mapping"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),c8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.update_aliases":{data_autocomplete_rules:{actions:{__template:[{add:{index:"test1",alias:"alias1"}}],__any_of:[{add:{index:"{index}",alias:"",filter:{},routing:"1",search_routing:"1,2",index_routing:"1"},remove:{index:"",alias:""}}]}}}}},Symbol.toStringTag,{value:"Module"})),u8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.validate_query":{data_autocomplete_rules:{query:{}}}}},Symbol.toStringTag,{value:"Module"})),d8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create":{data_autocomplete_rules:{indices:"*",ignore_unavailable:{__one_of:[!0,!1]},include_global_state:{__one_of:[!0,!1]},partial:{__one_of:[!0,!1]}}}}},Symbol.toStringTag,{value:"Module"})),f8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create_repository":{data_autocomplete_rules:{__template:{type:""},type:{__one_of:["fs","url","s3","hdfs","azure"]},settings:{__one_of:[{__condition:{lines_regex:`type["']\\s*:\\s*["']fs\``},__template:{location:"path"},location:"path",compress:{__one_of:[!0,!1]},concurrent_streams:5,chunk_size:"10m",max_restore_bytes_per_sec:"20mb",max_snapshot_bytes_per_sec:"20mb"},{__condition:{lines_regex:`type["']\\s*:\\s*["']url`},__template:{url:""},url:"",concurrent_streams:5},{__condition:{lines_regex:`type["']\\s*:\\s*["']s3`},__template:{bucket:""},bucket:"",region:"",base_path:"",concurrent_streams:5,chunk_size:"10m",compress:{__one_of:[!0,!1]}},{__condition:{lines_regex:`type["']\\s*:\\s*["']hdfs`},__template:{path:""},uri:"",path:"some/path",load_defaults:{__one_of:[!0,!1]},conf_location:"cfg.xml",concurrent_streams:5,compress:{__one_of:[!0,!1]},chunk_size:"10m"},{__condition:{lines_regex:`type["']\\s*:\\s*["']azure`},__template:{path:""},container:"",base_path:"",client:"default",location_mode:{__one_of:["primary_only","secondary_only"]},readonly:{__one_of:[!0,!1]},compress:{__one_of:[!0,!1]},chunk_size:"10m"}]}}}}},Symbol.toStringTag,{value:"Module"})),p8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.restore":{data_autocomplete_rules:{indices:"*",ignore_unavailable:{__one_of:[!0,!1]},include_global_state:!1,rename_pattern:"index_(.+)",rename_replacement:"restored_index_$1"}}}},Symbol.toStringTag,{value:"Module"})),rS={data_autocomplete_rules:{conflicts:"",query:{__scope_link:"GLOBAL.query"},script:{__template:{source:"",lang:"painless"},__scope_link:"GLOBAL.script"}}},h8=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query:rS},update_by_query:rS},Symbol.toStringTag,{value:"Module"}));var Ve={exports:{}};(function(e){function t(n,r){for(let o=n,i="";o;){let a=r[o];if(typeof a=="string")return a+i;if(a)return a.location.replace(/\/*$/,"/")+(i||a.main||a.name);if(a===!1)return"";let l=o.lastIndexOf("/");if(l===-1)break;i=o.substr(l)+i,o=o.slice(0,l)}return n}if(!(e.window!==void 0&&e.document||e.acequire&&e.define)){e.console||(e.console=function(){let o=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:o})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(o,i,a,l,s){postMessage({type:"error",data:{message:o,data:s.data,file:i,line:a,col:l,stack:s.stack}})},e.normalizeModule=function(o,i){if(i.indexOf("!")!==-1){let l=i.split("!");return e.normalizeModule(o,l[0])+"!"+e.normalizeModule(o,l[1])}if(i.charAt(0)=="."){let l=o.split("/").slice(0,-1).join("/");for(i=(l?l+"/":"")+i;i.indexOf(".")!==-1&&a!=i;){var a=i;i=i.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},e.acequire=function(i,a){if(a||(a=i,i=null),!a.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");a=e.normalizeModule(i,a);let l=e.acequire.modules[a];if(l)return l.initialized||(l.initialized=!0,l.exports=l.factory().exports),l.exports;if(!e.acequire.tlns)return console.log("unable to load "+a);let s=t(a,e.acequire.tlns);return s.slice(-3)!=".js"&&(s+=".js"),e.acequire.id=a,e.acequire.modules[a]={},importScripts(s),e.acequire(i,a)},e.acequire.modules={},e.acequire.tlns={},e.define=function(o,i,a){if(arguments.length==2?(a=i,typeof o!="string"&&(i=o,o=e.acequire.id)):arguments.length==1&&(a=o,i=[],o=e.acequire.id),typeof a!="function")return e.acequire.modules[o]={exports:a,initialized:!0},void 0;i.length||(i=["require","exports","module"]);let l=function(s){return e.acequire(o,s)};e.acequire.modules[o]={exports:{},factory:function(){let s=this,c=a.apply(this,i.map(function(u){switch(u){case"require":return l;case"exports":return s.exports;case"module":return s;default:return l(u)}}));return c&&(s.exports=c),s}}},e.define.amd={},acequire.tlns={},e.initBaseUrls=function(o){for(let i in o)acequire.tlns[i]=o[i]},e.initSender=function(){let o=e.acequire("ace/lib/event_emitter").EventEmitter,i=e.acequire("ace/lib/oop"),a=function(){};return(function(){i.implement(this,o),this.callback=function(l,s){postMessage({type:"call",id:s,data:l})},this.emit=function(l,s){postMessage({type:"event",name:l,data:s})}}).call(a.prototype),new a};let n=e.main=null,r=e.sender=null;e.onmessage=function(o){let i=o.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),acequire("ace/lib/es5-shim"),r=e.sender=e.initSender();let a=acequire(i.module)[i.classname];n=e.main=new a(r)}}}})(void 0),ace.define("ace/lib/oop",["require","exports","module"],function(e,t){t.inherits=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(n,r){for(let o in r)n[o]=r[o];return n},t.implement=function(n,r){t.mixin(n,r)}}),ace.define("ace/range",["require","exports","module"],function(e,t){let n=function(o,i){return o.row-i.row||o.column-i.column},r=function(o,i,a,l){this.start={row:o,column:i},this.end={row:a,column:l}};(function(){this.isEqual=function(o){return this.start.row===o.start.row&&this.end.row===o.end.row&&this.start.column===o.start.column&&this.end.column===o.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(o,i){return this.compare(o,i)==0},this.compareRange=function(o){let i,a=o.end,l=o.start;return i=this.compare(a.row,a.column),i==1?(i=this.compare(l.row,l.column),i==1?2:i==0?1:0):i==-1?-2:(i=this.compare(l.row,l.column),i==-1?-1:i==1?42:0)},this.comparePoint=function(o){return this.compare(o.row,o.column)},this.containsRange=function(o){return this.comparePoint(o.start)==0&&this.comparePoint(o.end)==0},this.intersects=function(o){let i=this.compareRange(o);return i==-1||i==0||i==1},this.isEnd=function(o,i){return this.end.row==o&&this.end.column==i},this.isStart=function(o,i){return this.start.row==o&&this.start.column==i},this.setStart=function(o,i){typeof o=="object"?(this.start.column=o.column,this.start.row=o.row):(this.start.row=o,this.start.column=i)},this.setEnd=function(o,i){typeof o=="object"?(this.end.column=o.column,this.end.row=o.row):(this.end.row=o,this.end.column=i)},this.inside=function(o,i){return this.compare(o,i)==0?!(this.isEnd(o,i)||this.isStart(o,i)):!1},this.insideStart=function(o,i){return this.compare(o,i)==0?!this.isEnd(o,i):!1},this.insideEnd=function(o,i){return this.compare(o,i)==0?!this.isStart(o,i):!1},this.compare=function(o,i){return this.isMultiLine()||o!==this.start.row?this.start.row>o?-1:o>this.end.row?1:this.start.row===o?i>=this.start.column?0:-1:this.end.row===o?this.end.column>=i?0:1:0:this.start.column>i?-1:i>this.end.column?1:0},this.compareStart=function(o,i){return this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.compareEnd=function(o,i){return this.end.row==o&&this.end.column==i?1:this.compare(o,i)},this.compareInside=function(o,i){return this.end.row==o&&this.end.column==i?1:this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.clipRows=function(o,i){if(this.end.row>i)var a={row:i+1,column:0};else if(o>this.end.row)var a={row:o,column:0};if(this.start.row>i)var l={row:i+1,column:0};else if(o>this.start.row)var l={row:o,column:0};return r.fromPoints(l||this.start,a||this.end)},this.extend=function(o,i){let a=this.compare(o,i);if(a==0)return this;if(a==-1)var l={row:o,column:i};else var s={row:o,column:i};return r.fromPoints(l||this.start,s||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 r.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(o){let i=o.documentToScreenPosition(this.start),a=o.documentToScreenPosition(this.end);return new r(i.row,i.column,a.row,a.column)},this.moveBy=function(o,i){this.start.row+=o,this.start.column+=i,this.end.row+=o,this.end.column+=i}}).call(r.prototype),r.fromPoints=function(o,i){return new r(o.row,o.column,i.row,i.column)},r.comparePoints=n,r.comparePoints=function(o,i){return o.row-i.row||o.column-i.column},t.Range=r}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t){t.applyDelta=function(n,r){let o=r.start.row,i=r.start.column,a=n[o]||"";switch(r.action){case"insert":var l=r.lines;if(l.length===1)n[o]=a.substring(0,i)+r.lines[0]+a.substring(i);else{let u=[o,1].concat(r.lines);n.splice.apply(n,u),n[o]=a.substring(0,i)+n[o],n[o+r.lines.length-1]+=a.substring(i)}break;case"remove":var s=r.end.column,c=r.end.row;o===c?n[o]=a.substring(0,i)+a.substring(s):n.splice(o,c-o+1,a.substring(0,i)+n[c].substring(s))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t){let n={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(i,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});let l=this._eventRegistry[i]||[],s=this._defaultHandlers[i];if(l.length||s){typeof a=="object"&&a||(a={}),a.type||(a.type=i),a.stopPropagation||(a.stopPropagation=r),a.preventDefault||(a.preventDefault=o),l=l.slice();for(let c=0;l.length>c&&(l[c](a,this),!a.propagationStopped);c++);return s&&!a.defaultPrevented?s(a,this):void 0}},n._signal=function(i,a){let l=(this._eventRegistry||{})[i];if(l){l=l.slice();for(let s=0;l.length>s;s++)l[s](a,this)}},n.once=function(i,a){let l=this;a&&this.addEventListener(i,function s(){l.removeEventListener(i,s),a.apply(null,arguments)})},n.setDefaultHandler=function(i,a){let l=this._defaultHandlers;if(l||(l=this._defaultHandlers={_disabled_:{}}),l[i]){let s=l[i],c=l._disabled_[i];c||(l._disabled_[i]=c=[]),c.push(s);let u=c.indexOf(a);u!=-1&&c.splice(u,1)}l[i]=a},n.removeDefaultHandler=function(i,a){let l=this._defaultHandlers;if(l){let s=l._disabled_[i];if(l[i]==a)l[i],s&&this.setDefaultHandler(i,s.pop());else if(s){let c=s.indexOf(a);c!=-1&&s.splice(c,1)}}},n.on=n.addEventListener=function(i,a,l){this._eventRegistry=this._eventRegistry||{};let s=this._eventRegistry[i];return s||(s=this._eventRegistry[i]=[]),s.indexOf(a)==-1&&s[l?"unshift":"push"](a),a},n.off=n.removeListener=n.removeEventListener=function(i,a){this._eventRegistry=this._eventRegistry||{};let l=this._eventRegistry[i];if(l){let s=l.indexOf(a);s!==-1&&l.splice(s,1)}},n.removeAllListeners=function(i){this._eventRegistry&&(this._eventRegistry[i]=[])},t.EventEmitter=n}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){let n=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(i,a,l){this.$onChange=this.onChange.bind(this),this.attach(i),l===void 0?this.setPosition(a.row,a.column):this.setPosition(a,l)};(function(){function i(l,s,c){let u=c?l.column<=s.column:l.column<s.column;return l.row<s.row||l.row==s.row&&u}function a(l,s,c){let u=l.action=="insert",f=(u?1:-1)*(l.end.row-l.start.row),d=(u?1:-1)*(l.end.column-l.start.column),y=l.start,x=u?y:l.end;return i(s,y,c)?{row:s.row,column:s.column}:i(x,s,!c)?{row:s.row+f,column:s.column+(s.row==x.row?d:0)}:{row:y.row,column:y.column}}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row||l.start.row>this.row)){let s=a(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},this.setPosition=function(l,s,c){let u;if(u=c?{row:l,column:s}:this.$clipPositionToDocument(l,s),this.row!=u.row||this.column!=u.column){let f={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:f,value:u})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(l,s){let c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):0>l?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,s))),0>s&&(c.column=0),c}}).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){let n=e("./lib/oop"),r=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,i=e("./range").Range,a=e("./anchor").Anchor,l=function(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){n.implement(this,o),this.setValue=function(s){let c=this.getLength()-1;this.remove(new i(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,c){return new a(this,s,c)},this.$split="aaa".split(/a/).length===0?function(s){return s.replace(/\r\n|\r/g,`
304
304
  `).split(`
305
305
  `)}:function(s){return s.split(/\r\n|\r|\n/)},this.$detectNewLine=function(s){let c=s.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
306
306
  `,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
@@ -309,7 +309,7 @@ GET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g
309
309
  `}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(s){this.$newLineMode!==s&&(this.$newLineMode=s,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(s){return s==`\r
310
310
  `||s=="\r"||s==`
311
311
  `},this.getLine=function(s){return this.$lines[s]||""},this.getLines=function(s,c){return this.$lines.slice(s,c+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(s){return this.getLinesForRange(s).join(this.getNewLineCharacter())},this.getLinesForRange=function(s){let c;if(s.start.row===s.end.row)c=[this.getLine(s.start.row).substring(s.start.column,s.end.column)];else{c=this.getLines(s.start.row,s.end.row),c[0]=(c[0]||"").substring(s.start.column);let u=c.length-1;s.end.row-s.start.row==u&&(c[u]=c[u].substring(0,s.end.column))}return c},this.insertLines=function(s,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(s,c)},this.removeLines=function(s,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(s,c)},this.insertNewLine=function(s){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(s,["",""])},this.insert=function(s,c){return 1>=this.getLength()&&this.$detectNewLine(c),this.insertMergedLines(s,this.$split(c))},this.insertInLine=function(s,c){let u=this.clippedPos(s.row,s.column),f=this.pos(s.row,s.column+c.length);return this.applyDelta({start:u,end:f,action:"insert",lines:[c]},!0),this.clonePos(f)},this.clippedPos=function(s,c){let u=this.getLength();s===void 0?s=u:0>s?s=0:s>=u&&(s=u-1,c=void 0);let f=this.getLine(s);return c==null&&(c=f.length),c=Math.min(Math.max(c,0),f.length),{row:s,column:c}},this.clonePos=function(s){return{row:s.row,column:s.column}},this.pos=function(s,c){return{row:s,column:c}},this.$clipPosition=function(s){let c=this.getLength();return s.row>=c?(s.row=Math.max(0,c-1),s.column=this.getLine(c-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},this.insertFullLines=function(s,c){s=Math.min(Math.max(s,0),this.getLength());let u=0;this.getLength()>s?(c=c.concat([""]),u=0):(c=[""].concat(c),s--,u=this.$lines[s].length),this.insertMergedLines({row:s,column:u},c)},this.insertMergedLines=function(s,c){let u=this.clippedPos(s.row,s.column),f={row:u.row+c.length-1,column:(c.length==1?u.column:0)+c[c.length-1].length};return this.applyDelta({start:u,end:f,action:"insert",lines:c}),this.clonePos(f)},this.remove=function(s){let c=this.clippedPos(s.start.row,s.start.column),u=this.clippedPos(s.end.row,s.end.column);return this.applyDelta({start:c,end:u,action:"remove",lines:this.getLinesForRange({start:c,end:u})}),this.clonePos(c)},this.removeInLine=function(s,c,u){let f=this.clippedPos(s,c),d=this.clippedPos(s,u);return this.applyDelta({start:f,end:d,action:"remove",lines:this.getLinesForRange({start:f,end:d})},!0),this.clonePos(f)},this.removeFullLines=function(s,c){s=Math.min(Math.max(0,s),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);let u=c==this.getLength()-1&&s>0,f=this.getLength()-1>c,d=u?s-1:s,y=u?this.getLine(d).length:0,x=f?c+1:c,E=f?0:this.getLine(x).length,h=new i(d,y,x,E),_=this.$lines.slice(s,c+1);return this.applyDelta({start:h.start,end:h.end,action:"remove",lines:this.getLinesForRange(h)}),_},this.removeNewLine=function(s){this.getLength()-1>s&&s>=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},this.replace=function(s,c){return s instanceof i||(s=i.fromPoints(s.start,s.end)),c.length===0&&s.isEmpty()?s.start:c==this.getTextRange(s)?s.end:(this.remove(s),c?this.insert(s.start,c):s.start)},this.applyDeltas=function(s){for(let c=0;s.length>c;c++)this.applyDelta(s[c])},this.revertDeltas=function(s){for(let c=s.length-1;c>=0;c--)this.revertDelta(s[c])},this.applyDelta=function(s,c){let u=s.action=="insert";(u?1>=s.lines.length&&!s.lines[0]:!i.comparePoints(s.start,s.end))||(u&&s.lines.length>2e4&&this.$splitAndapplyLargeDelta(s,2e4),r(this.$lines,s,c),this._signal("change",s))},this.$splitAndapplyLargeDelta=function(s,c){for(let u=s.lines,f=u.length,d=s.start.row,y=s.start.column,x=0,E=0;;){x=E,E+=c-1;let h=u.slice(x,E);if(E>f){s.lines=h,s.start.row=d+x,s.start.column=y;break}h.push(""),this.applyDelta({start:this.pos(d+x,y),end:this.pos(d+E,y=0),action:s.action,lines:h},!0)}},this.revertDelta=function(s){this.applyDelta({start:this.clonePos(s.start),end:this.clonePos(s.end),action:s.action=="insert"?"remove":"insert",lines:s.lines.slice()})},this.indexToPosition=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=c||0,y=u.length;y>d;d++)if(s-=u[d].length+f,0>s)return{row:d,column:s+u[d].length+f};return{row:y-1,column:u[y-1].length}},this.positionToIndex=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=0,y=Math.min(s.row,u.length),x=c||0;y>x;++x)d+=u[x].length+f;return d+s.column}}).call(l.prototype),t.Document=l}),ace.define("ace/lib/lang",["require","exports","module"],function(e,t){t.last=function(o){return o[o.length-1]},t.stringReverse=function(o){return o.split("").reverse().join("")},t.stringRepeat=function(o,i){for(var a="";i>0;)1&i&&(a+=o),(i>>=1)&&(o+=o);return a};let n=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(o){return o.replace(n,"")},t.stringTrimRight=function(o){return o.replace(r,"")},t.copyObject=function(o){let i={};for(let a in o)i[a]=o[a];return i},t.copyArray=function(o){for(var i=[],a=0,l=o.length;l>a;a++)i[a]=o[a]&&typeof o[a]=="object"?this.copyObject(o[a]):o[a];return i},t.deepCopy=function o(i){if(typeof i!="object"||!i)return i;let a;if(Array.isArray(i)){a=[];for(var l=0;i.length>l;l++)a[l]=o(i[l]);return a}if(Object.prototype.toString.call(i)!=="[object Object]")return i;a={};for(var l in i)a[l]=o(i[l]);return a},t.arrayToMap=function(o){for(var i={},a=0;o.length>a;a++)i[o[a]]=1;return i},t.createMap=function(o){let i=Object.create(null);for(let a in o)i[a]=o[a];return i},t.arrayRemove=function(o,i){for(let a=0;o.length>=a;a++)i===o[a]&&o.splice(a,1)},t.escapeRegExp=function(o){return o.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(o){return o.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(o,i){let a=[];return o.replace(i,function(l){a.push({offset:arguments[arguments.length-2],length:l.length})}),a},t.deferredCall=function(o){var i=null,a=function(){i=null,o()},l=function(s){return l.cancel(),i=setTimeout(a,s||0),l};return l.schedule=l,l.call=function(){return this.cancel(),o(),l},l.cancel=function(){return clearTimeout(i),i=null,l},l.isPending=function(){return i},l},t.delayedCall=function(o,i){let a=null,l=function(){a=null,o()},s=function(c){a==null&&(a=setTimeout(l,c||i))};return s.delay=function(c){a&&clearTimeout(a),a=setTimeout(l,c||i)},s.schedule=s,s.call=function(){this.cancel(),o()},s.cancel=function(){a&&clearTimeout(a),a=null},s.isPending=function(){return a},s}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(e,t){e("../range").Range;let n=e("../document").Document,r=e("../lib/lang"),o=t.Mirror=function(i){this.sender=i;let a=this.doc=new n(""),l=this.deferredUpdate=r.delayedCall(this.onUpdate.bind(this)),s=this;i.on("change",function(c){let u=c.data;if(u[0].start)a.applyDeltas(u);else for(var f=0;u.length>f;f+=2){if(Array.isArray(u[f+1]))var d={action:"insert",start:u[f],lines:u[f+1]};else var d={action:"remove",start:u[f],end:u[f+1]};a.applyDelta(d,!0)}return s.$timeout?l.schedule(s.$timeout):(s.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(i){this.$timeout=i},this.setValue=function(i){this.doc.setValue(i),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(i){this.sender.callback(this.doc.getValue(),i)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function e(){}function t(g){try{return Object.defineProperty(g,"sentinel",{}),"sentinel"in g}catch{}}function n(g){return g=+g,g!==g?g=0:g!==0&&g!==1/0&&g!==-1/0&&(g=(g>0||-1)*Math.floor(Math.abs(g))),g}Function.prototype.bind||(Function.prototype.bind=function(g){let b=this;if(typeof b!="function")throw new TypeError("Function.prototype.bind called on incompatible "+b);var C=f.call(arguments,1),S=function(){if(this instanceof S){let w=b.apply(this,C.concat(f.call(arguments)));return Object(w)===w?w:this}return b.apply(g,C.concat(f.call(arguments)))};return b.prototype&&(e.prototype=b.prototype,S.prototype=new e,e.prototype=null),S});var r,o,i,a,l,s=Function.prototype.call,c=Array.prototype,u=Object.prototype,f=c.slice,d=s.bind(u.toString),y=s.bind(u.hasOwnProperty);if((l=y(u,"__defineGetter__"))&&(r=s.bind(u.__defineGetter__),o=s.bind(u.__defineSetter__),i=s.bind(u.__lookupGetter__),a=s.bind(u.__lookupSetter__)),[1,2].splice(0).length!=2)if(function(){function g(S){var w=Array(S+2);return w[0]=w[1]=0,w}var b,C=[];return C.splice.apply(C,g(20)),C.splice.apply(C,g(26)),b=C.length,C.splice(5,0,"XXX"),b+1==C.length?!0:void 0}()){var x=Array.prototype.splice;Array.prototype.splice=function(g,b){return arguments.length?x.apply(this,[g===void 0?0:g,b===void 0?this.length-g:b].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(g,b){var C=this.length;g>0?g>C&&(g=C):g==null?g=0:0>g&&(g=Math.max(C+g,0)),C>g+b||(b=C-g);var S=this.slice(g,g+b),w=f.call(arguments,2),O=w.length;if(g===C)O&&this.push.apply(this,w);else{var R=Math.min(b,C-g),N=g+R,P=N+O-R,L=C-N,z=C-R;if(N>P)for(var J=0;L>J;++J)this[P+J]=this[N+J];else if(P>N)for(J=L;J--;)this[P+J]=this[N+J];if(O&&g===z)this.length=z,this.push.apply(this,w);else for(this.length=z+O,J=0;O>J;++J)this[g+J]=w[J]}return S};Array.isArray||(Array.isArray=function(g){return d(g)=="[object Array]"});let E=Object("a"),h=E[0]!="a"||!(0 in E);if(Array.prototype.forEach||(Array.prototype.forEach=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,S=arguments[1],w=-1,O=C.length>>>0;if(d(g)!="[object Function]")throw new TypeError;for(;O>++w;)w in C&&g.call(S,C[w],w,b)}),Array.prototype.map||(Array.prototype.map=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,S=C.length>>>0,w=Array(S),O=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let R=0;S>R;R++)R in C&&(w[R]=g.call(O,C[R],R,b));return w}),Array.prototype.filter||(Array.prototype.filter=function(g){let b,C=m(this),S=h&&d(this)=="[object String]"?this.split(""):C,w=S.length>>>0,O=[],R=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let N=0;w>N;N++)N in S&&(b=S[N],g.call(R,b,N,C)&&O.push(b));return O}),Array.prototype.every||(Array.prototype.every=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,S=C.length>>>0,w=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let O=0;S>O;O++)if(O in C&&!g.call(w,C[O],O,b))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,S=C.length>>>0,w=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let O=0;S>O;O++)if(O in C&&g.call(w,C[O],O,b))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,S=C.length>>>0;if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");if(!S&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");let w,O=0;if(arguments.length>=2)w=arguments[1];else for(;;){if(O in C){w=C[O++];break}if(++O>=S)throw new TypeError("reduce of empty array with no initial value")}for(;S>O;O++)O in C&&(w=g.call(void 0,w,C[O],O,b));return w}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,S=C.length>>>0;if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");if(!S&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");let w,O=S-1;if(arguments.length>=2)w=arguments[1];else for(;;){if(O in C){w=C[O--];break}if(0>--O)throw new TypeError("reduceRight of empty array with no initial value")}do O in this&&(w=g.call(void 0,w,C[O],O,b));while(O--);return w}),Array.prototype.indexOf&&[0,1].indexOf(1,2)==-1||(Array.prototype.indexOf=function(g){let b=h&&d(this)=="[object String]"?this.split(""):m(this),C=b.length>>>0;if(!C)return-1;let S=0;for(arguments.length>1&&(S=n(arguments[1])),S=S>=0?S:Math.max(0,C+S);C>S;S++)if(S in b&&b[S]===g)return S;return-1}),Array.prototype.lastIndexOf&&[0,1].lastIndexOf(0,-3)==-1||(Array.prototype.lastIndexOf=function(g){let b=h&&d(this)=="[object String]"?this.split(""):m(this),C=b.length>>>0;if(!C)return-1;let S=C-1;for(arguments.length>1&&(S=Math.min(S,n(arguments[1]))),S=S>=0?S:C-Math.abs(S);S>=0;S--)if(S in b&&g===b[S])return S;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(g){return g.__proto__||(g.constructor?g.constructor.prototype:u)}),!Object.getOwnPropertyDescriptor){let g="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(b,C){if(typeof b!="object"&&typeof b!="function"||b===null)throw new TypeError(g+b);if(y(b,C)){var S,w,O;if(S={enumerable:!0,configurable:!0},l){let R=b.__proto__;b.__proto__=u;var w=i(b,C),O=a(b,C);if(b.__proto__=R,w||O)return w&&(S.get=w),O&&(S.set=O),S}return S.value=b[C],S}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(g){return Object.keys(g)}),!Object.create){let g;g=Object.prototype.__proto__===null?function(){return{__proto__:null}}:function(){let b={};for(let C in b)b[C]=null;return b.constructor=b.hasOwnProperty=b.propertyIsEnumerable=b.isPrototypeOf=b.toLocaleString=b.toString=b.valueOf=b.__proto__=null,b},Object.create=function(b,C){let S;if(b===null)S=g();else{if(typeof b!="object")throw new TypeError("typeof prototype["+typeof b+"] != 'object'");let w=function(){};w.prototype=b,S=new w,S.__proto__=b}return C!==void 0&&Object.defineProperties(S,C),S}}if(Object.defineProperty){let g=t({}),b=typeof document>"u"||t(document.createElement("div"));if(!g||!b)var _=Object.defineProperty}if(!Object.defineProperty||_){let g="Property description must be an object: ",b="Object.defineProperty called on non-object: ",C="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(S,w,O){if(typeof S!="object"&&typeof S!="function"||S===null)throw new TypeError(b+S);if(typeof O!="object"&&typeof O!="function"||O===null)throw new TypeError(g+O);if(_)try{return _.call(Object,S,w,O)}catch{}if(y(O,"value"))if(l&&(i(S,w)||a(S,w))){var R=S.__proto__;S.__proto__=u,delete S[w],S[w]=O.value,S.__proto__=R}else S[w]=O.value;else{if(!l)throw new TypeError(C);y(O,"get")&&r(S,w,O.get),y(O,"set")&&o(S,w,O.set)}return S}}Object.defineProperties||(Object.defineProperties=function(g,b){for(let C in b)y(b,C)&&Object.defineProperty(g,C,b[C]);return g}),Object.seal||(Object.seal=function(g){return g}),Object.freeze||(Object.freeze=function(g){return g});try{Object.freeze(function(){})}catch{Object.freeze=function(b){return function(C){return typeof C=="function"?C:b(C)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(g){return g}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(g){if(Object(g)===g)throw new TypeError;for(var b="";y(g,b);)b+="?";g[b]=!0;let C=y(g,b);return delete g[b],C}),!Object.keys){let g=!0,b=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],C=b.length;for(let S in{toString:null})g=!1;Object.keys=function(S){if(typeof S!="object"&&typeof S!="function"||S===null)throw new TypeError("Object.keys called on a non-object");let w=[];for(let P in S)y(S,P)&&w.push(P);if(g)for(var O=0,R=C;R>O;O++){var N=b[O];y(S,N)&&w.push(N)}return w}}Date.now||(Date.now=function(){return new Date().getTime()});let p=`
312
- v\f\r   ᠎              \u2028\u2029\uFEFF`;if(!String.prototype.trim||p.trim()){p="["+p+"]";let g=RegExp("^"+p+p+"*"),b=RegExp(p+p+"*$");String.prototype.trim=function(){return(this+"").replace(g,"").replace(b,"")}}var m=function(g){if(g==null)throw new TypeError("can't convert "+g+" to object");return Object(g)}});const m6=(Ve.exports==null?{}:Ve.exports).default||Ve.exports,g6=(Ve.exports==null?{}:Ve.exports).inherits,v6=(Ve.exports==null?{}:Ve.exports).mixin,_6=(Ve.exports==null?{}:Ve.exports).implement,y6=(Ve.exports==null?{}:Ve.exports).Range,b6=(Ve.exports==null?{}:Ve.exports).applyDelta,w6=(Ve.exports==null?{}:Ve.exports).EventEmitter,x6=(Ve.exports==null?{}:Ve.exports).Anchor,S6=(Ve.exports==null?{}:Ve.exports).Document,C6=(Ve.exports==null?{}:Ve.exports).last,E6=(Ve.exports==null?{}:Ve.exports).stringReverse,O6=(Ve.exports==null?{}:Ve.exports).stringRepeat,$6=(Ve.exports==null?{}:Ve.exports).stringTrimLeft,T6=(Ve.exports==null?{}:Ve.exports).stringTrimRight,P6=(Ve.exports==null?{}:Ve.exports).copyObject,R6=(Ve.exports==null?{}:Ve.exports).copyArray,j6=(Ve.exports==null?{}:Ve.exports).deepCopy,M6=(Ve.exports==null?{}:Ve.exports).arrayToMap,I6=(Ve.exports==null?{}:Ve.exports).createMap,A6=(Ve.exports==null?{}:Ve.exports).arrayRemove,N6=(Ve.exports==null?{}:Ve.exports).escapeRegExp,k6=(Ve.exports==null?{}:Ve.exports).escapeHTML,L6=(Ve.exports==null?{}:Ve.exports).getMatchOffsets,F6=(Ve.exports==null?{}:Ve.exports).deferredCall,D6=(Ve.exports==null?{}:Ve.exports).delayedCall,B6=(Ve.exports==null?{}:Ve.exports).Mirror,z6=Object.freeze(Object.defineProperty({__proto__:null,Anchor:x6,Document:S6,EventEmitter:w6,Mirror:B6,Range:y6,applyDelta:b6,arrayRemove:A6,arrayToMap:M6,copyArray:R6,copyObject:P6,createMap:I6,deepCopy:j6,default:m6,deferredCall:F6,delayedCall:D6,escapeHTML:k6,escapeRegExp:N6,getMatchOffsets:L6,implement:_6,inherits:g6,last:C6,mixin:v6,stringRepeat:O6,stringReverse:E6,stringTrimLeft:$6,stringTrimRight:T6},Symbol.toStringTag,{value:"Module"}));var ze={exports:{}};(function(e){function t(o,i){for(var a=o,l="";a;){var s=i[a];if(typeof s=="string")return s+l;if(s)return s.location.replace(/\/*$/,"/")+(l||s.main||s.name);if(s===!1)return"";var c=a.lastIndexOf("/");if(c===-1)break;l=a.substr(c)+l,a=a.slice(0,c)}return o}if(!(e.window!==void 0&&e.document||e.acequire&&e.define)){e.console||(e.console=function(){var o=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:o})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(o,i,a,l,s){postMessage({type:"error",data:{message:o,data:s.data,file:i,line:a,col:l,stack:s.stack}})},e.normalizeModule=function(o,i){if(i.indexOf("!")!==-1){var a=i.split("!");return e.normalizeModule(o,a[0])+"!"+e.normalizeModule(o,a[1])}if(i.charAt(0)=="."){var l=o.split("/").slice(0,-1).join("/");for(i=(l?l+"/":"")+i;i.indexOf(".")!==-1&&s!=i;){var s=i;i=i.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},e.acequire=function(i,a){if(a||(a=i,i=null),!a.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");a=e.normalizeModule(i,a);var l=e.acequire.modules[a];if(l)return l.initialized||(l.initialized=!0,l.exports=l.factory().exports),l.exports;if(!e.acequire.tlns)return console.log("unable to load "+a);var s=t(a,e.acequire.tlns);return s.slice(-3)!=".js"&&(s+=".js"),e.acequire.id=a,e.acequire.modules[a]={},importScripts(s),e.acequire(i,a)},e.acequire.modules={},e.acequire.tlns={},e.define=function(o,i,a){if(arguments.length==2?(a=i,typeof o!="string"&&(i=o,o=e.acequire.id)):arguments.length==1&&(a=o,i=[],o=e.acequire.id),typeof a!="function")return e.acequire.modules[o]={exports:a,initialized:!0},void 0;i.length||(i=["require","exports","module"]);var l=function(s){return e.acequire(o,s)};e.acequire.modules[o]={exports:{},factory:function(){var s=this,c=a.apply(this,i.map(function(u){switch(u){case"require":return l;case"exports":return s.exports;case"module":return s;default:return l(u)}}));return c&&(s.exports=c),s}}},e.define.amd={},acequire.tlns={},e.initBaseUrls=function(o){for(var i in o)acequire.tlns[i]=o[i]},e.initSender=function(){var o=e.acequire("ace/lib/event_emitter").EventEmitter,i=e.acequire("ace/lib/oop"),a=function(){};return(function(){i.implement(this,o),this.callback=function(l,s){postMessage({type:"call",id:s,data:l})},this.emit=function(l,s){postMessage({type:"event",name:l,data:s})}}).call(a.prototype),new a};var n=e.main=null,r=e.sender=null;e.onmessage=function(o){var i=o.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),acequire("ace/lib/es5-shim"),r=e.sender=e.initSender();var a=acequire(i.module)[i.classname];n=e.main=new a(r)}}}})(void 0),ace.define("ace/lib/oop",["require","exports","module"],function(e,t){t.inherits=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(n,r){for(var o in r)n[o]=r[o];return n},t.implement=function(n,r){t.mixin(n,r)}}),ace.define("ace/range",["require","exports","module"],function(e,t){var n=function(o,i){return o.row-i.row||o.column-i.column},r=function(o,i,a,l){this.start={row:o,column:i},this.end={row:a,column:l}};(function(){this.isEqual=function(o){return this.start.row===o.start.row&&this.end.row===o.end.row&&this.start.column===o.start.column&&this.end.column===o.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(o,i){return this.compare(o,i)==0},this.compareRange=function(o){var i,a=o.end,l=o.start;return i=this.compare(a.row,a.column),i==1?(i=this.compare(l.row,l.column),i==1?2:i==0?1:0):i==-1?-2:(i=this.compare(l.row,l.column),i==-1?-1:i==1?42:0)},this.comparePoint=function(o){return this.compare(o.row,o.column)},this.containsRange=function(o){return this.comparePoint(o.start)==0&&this.comparePoint(o.end)==0},this.intersects=function(o){var i=this.compareRange(o);return i==-1||i==0||i==1},this.isEnd=function(o,i){return this.end.row==o&&this.end.column==i},this.isStart=function(o,i){return this.start.row==o&&this.start.column==i},this.setStart=function(o,i){typeof o=="object"?(this.start.column=o.column,this.start.row=o.row):(this.start.row=o,this.start.column=i)},this.setEnd=function(o,i){typeof o=="object"?(this.end.column=o.column,this.end.row=o.row):(this.end.row=o,this.end.column=i)},this.inside=function(o,i){return this.compare(o,i)==0?!(this.isEnd(o,i)||this.isStart(o,i)):!1},this.insideStart=function(o,i){return this.compare(o,i)==0?!this.isEnd(o,i):!1},this.insideEnd=function(o,i){return this.compare(o,i)==0?!this.isStart(o,i):!1},this.compare=function(o,i){return this.isMultiLine()||o!==this.start.row?this.start.row>o?-1:o>this.end.row?1:this.start.row===o?i>=this.start.column?0:-1:this.end.row===o?this.end.column>=i?0:1:0:this.start.column>i?-1:i>this.end.column?1:0},this.compareStart=function(o,i){return this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.compareEnd=function(o,i){return this.end.row==o&&this.end.column==i?1:this.compare(o,i)},this.compareInside=function(o,i){return this.end.row==o&&this.end.column==i?1:this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.clipRows=function(o,i){if(this.end.row>i)var a={row:i+1,column:0};else if(o>this.end.row)var a={row:o,column:0};if(this.start.row>i)var l={row:i+1,column:0};else if(o>this.start.row)var l={row:o,column:0};return r.fromPoints(l||this.start,a||this.end)},this.extend=function(o,i){var a=this.compare(o,i);if(a==0)return this;if(a==-1)var l={row:o,column:i};else var s={row:o,column:i};return r.fromPoints(l||this.start,s||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 r.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(o){var i=o.documentToScreenPosition(this.start),a=o.documentToScreenPosition(this.end);return new r(i.row,i.column,a.row,a.column)},this.moveBy=function(o,i){this.start.row+=o,this.start.column+=i,this.end.row+=o,this.end.column+=i}}).call(r.prototype),r.fromPoints=function(o,i){return new r(o.row,o.column,i.row,i.column)},r.comparePoints=n,r.comparePoints=function(o,i){return o.row-i.row||o.column-i.column},t.Range=r}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t){t.applyDelta=function(n,r){var o=r.start.row,i=r.start.column,a=n[o]||"";switch(r.action){case"insert":var l=r.lines;if(l.length===1)n[o]=a.substring(0,i)+r.lines[0]+a.substring(i);else{var s=[o,1].concat(r.lines);n.splice.apply(n,s),n[o]=a.substring(0,i)+n[o],n[o+r.lines.length-1]+=a.substring(i)}break;case"remove":var c=r.end.column,u=r.end.row;o===u?n[o]=a.substring(0,i)+a.substring(c):n.splice(o,u-o+1,a.substring(0,i)+n[u].substring(c))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t){var n={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(i,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var l=this._eventRegistry[i]||[],s=this._defaultHandlers[i];if(l.length||s){typeof a=="object"&&a||(a={}),a.type||(a.type=i),a.stopPropagation||(a.stopPropagation=r),a.preventDefault||(a.preventDefault=o),l=l.slice();for(var c=0;l.length>c&&(l[c](a,this),!a.propagationStopped);c++);return s&&!a.defaultPrevented?s(a,this):void 0}},n._signal=function(i,a){var l=(this._eventRegistry||{})[i];if(l){l=l.slice();for(var s=0;l.length>s;s++)l[s](a,this)}},n.once=function(i,a){var l=this;a&&this.addEventListener(i,function s(){l.removeEventListener(i,s),a.apply(null,arguments)})},n.setDefaultHandler=function(i,a){var l=this._defaultHandlers;if(l||(l=this._defaultHandlers={_disabled_:{}}),l[i]){var s=l[i],c=l._disabled_[i];c||(l._disabled_[i]=c=[]),c.push(s);var u=c.indexOf(a);u!=-1&&c.splice(u,1)}l[i]=a},n.removeDefaultHandler=function(i,a){var l=this._defaultHandlers;if(l){var s=l._disabled_[i];if(l[i]==a)l[i],s&&this.setDefaultHandler(i,s.pop());else if(s){var c=s.indexOf(a);c!=-1&&s.splice(c,1)}}},n.on=n.addEventListener=function(i,a,l){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[i];return s||(s=this._eventRegistry[i]=[]),s.indexOf(a)==-1&&s[l?"unshift":"push"](a),a},n.off=n.removeListener=n.removeEventListener=function(i,a){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[i];if(l){var s=l.indexOf(a);s!==-1&&l.splice(s,1)}},n.removeAllListeners=function(i){this._eventRegistry&&(this._eventRegistry[i]=[])},t.EventEmitter=n}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){var n=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(i,a,l){this.$onChange=this.onChange.bind(this),this.attach(i),l===void 0?this.setPosition(a.row,a.column):this.setPosition(a,l)};(function(){function i(l,s,c){var u=c?l.column<=s.column:l.column<s.column;return l.row<s.row||l.row==s.row&&u}function a(l,s,c){var u=l.action=="insert",f=(u?1:-1)*(l.end.row-l.start.row),d=(u?1:-1)*(l.end.column-l.start.column),y=l.start,x=u?y:l.end;return i(s,y,c)?{row:s.row,column:s.column}:i(x,s,!c)?{row:s.row+f,column:s.column+(s.row==x.row?d:0)}:{row:y.row,column:y.column}}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row||l.start.row>this.row)){var s=a(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},this.setPosition=function(l,s,c){var u;if(u=c?{row:l,column:s}:this.$clipPositionToDocument(l,s),this.row!=u.row||this.column!=u.column){var f={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:f,value:u})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(l,s){var c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):0>l?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,s))),0>s&&(c.column=0),c}}).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){var n=e("./lib/oop"),r=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,i=e("./range").Range,a=e("./anchor").Anchor,l=function(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){n.implement(this,o),this.setValue=function(s){var c=this.getLength()-1;this.remove(new i(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,c){return new a(this,s,c)},this.$split="aaa".split(/a/).length===0?function(s){return s.replace(/\r\n|\r/g,`
312
+ v\f\r   ᠎              \u2028\u2029\uFEFF`;if(!String.prototype.trim||p.trim()){p="["+p+"]";let g=RegExp("^"+p+p+"*"),b=RegExp(p+p+"*$");String.prototype.trim=function(){return(this+"").replace(g,"").replace(b,"")}}var m=function(g){if(g==null)throw new TypeError("can't convert "+g+" to object");return Object(g)}});const m8=(Ve.exports==null?{}:Ve.exports).default||Ve.exports,g8=(Ve.exports==null?{}:Ve.exports).inherits,v8=(Ve.exports==null?{}:Ve.exports).mixin,_8=(Ve.exports==null?{}:Ve.exports).implement,y8=(Ve.exports==null?{}:Ve.exports).Range,b8=(Ve.exports==null?{}:Ve.exports).applyDelta,w8=(Ve.exports==null?{}:Ve.exports).EventEmitter,x8=(Ve.exports==null?{}:Ve.exports).Anchor,S8=(Ve.exports==null?{}:Ve.exports).Document,C8=(Ve.exports==null?{}:Ve.exports).last,E8=(Ve.exports==null?{}:Ve.exports).stringReverse,O8=(Ve.exports==null?{}:Ve.exports).stringRepeat,$8=(Ve.exports==null?{}:Ve.exports).stringTrimLeft,T8=(Ve.exports==null?{}:Ve.exports).stringTrimRight,P8=(Ve.exports==null?{}:Ve.exports).copyObject,R8=(Ve.exports==null?{}:Ve.exports).copyArray,j8=(Ve.exports==null?{}:Ve.exports).deepCopy,M8=(Ve.exports==null?{}:Ve.exports).arrayToMap,I8=(Ve.exports==null?{}:Ve.exports).createMap,A8=(Ve.exports==null?{}:Ve.exports).arrayRemove,N8=(Ve.exports==null?{}:Ve.exports).escapeRegExp,k8=(Ve.exports==null?{}:Ve.exports).escapeHTML,L8=(Ve.exports==null?{}:Ve.exports).getMatchOffsets,F8=(Ve.exports==null?{}:Ve.exports).deferredCall,D8=(Ve.exports==null?{}:Ve.exports).delayedCall,B8=(Ve.exports==null?{}:Ve.exports).Mirror,z8=Object.freeze(Object.defineProperty({__proto__:null,Anchor:x8,Document:S8,EventEmitter:w8,Mirror:B8,Range:y8,applyDelta:b8,arrayRemove:A8,arrayToMap:M8,copyArray:R8,copyObject:P8,createMap:I8,deepCopy:j8,default:m8,deferredCall:F8,delayedCall:D8,escapeHTML:k8,escapeRegExp:N8,getMatchOffsets:L8,implement:_8,inherits:g8,last:C8,mixin:v8,stringRepeat:O8,stringReverse:E8,stringTrimLeft:$8,stringTrimRight:T8},Symbol.toStringTag,{value:"Module"}));var ze={exports:{}};(function(e){function t(o,i){for(var a=o,l="";a;){var s=i[a];if(typeof s=="string")return s+l;if(s)return s.location.replace(/\/*$/,"/")+(l||s.main||s.name);if(s===!1)return"";var c=a.lastIndexOf("/");if(c===-1)break;l=a.substr(c)+l,a=a.slice(0,c)}return o}if(!(e.window!==void 0&&e.document||e.acequire&&e.define)){e.console||(e.console=function(){var o=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:o})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(o,i,a,l,s){postMessage({type:"error",data:{message:o,data:s.data,file:i,line:a,col:l,stack:s.stack}})},e.normalizeModule=function(o,i){if(i.indexOf("!")!==-1){var a=i.split("!");return e.normalizeModule(o,a[0])+"!"+e.normalizeModule(o,a[1])}if(i.charAt(0)=="."){var l=o.split("/").slice(0,-1).join("/");for(i=(l?l+"/":"")+i;i.indexOf(".")!==-1&&s!=i;){var s=i;i=i.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},e.acequire=function(i,a){if(a||(a=i,i=null),!a.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");a=e.normalizeModule(i,a);var l=e.acequire.modules[a];if(l)return l.initialized||(l.initialized=!0,l.exports=l.factory().exports),l.exports;if(!e.acequire.tlns)return console.log("unable to load "+a);var s=t(a,e.acequire.tlns);return s.slice(-3)!=".js"&&(s+=".js"),e.acequire.id=a,e.acequire.modules[a]={},importScripts(s),e.acequire(i,a)},e.acequire.modules={},e.acequire.tlns={},e.define=function(o,i,a){if(arguments.length==2?(a=i,typeof o!="string"&&(i=o,o=e.acequire.id)):arguments.length==1&&(a=o,i=[],o=e.acequire.id),typeof a!="function")return e.acequire.modules[o]={exports:a,initialized:!0},void 0;i.length||(i=["require","exports","module"]);var l=function(s){return e.acequire(o,s)};e.acequire.modules[o]={exports:{},factory:function(){var s=this,c=a.apply(this,i.map(function(u){switch(u){case"require":return l;case"exports":return s.exports;case"module":return s;default:return l(u)}}));return c&&(s.exports=c),s}}},e.define.amd={},acequire.tlns={},e.initBaseUrls=function(o){for(var i in o)acequire.tlns[i]=o[i]},e.initSender=function(){var o=e.acequire("ace/lib/event_emitter").EventEmitter,i=e.acequire("ace/lib/oop"),a=function(){};return(function(){i.implement(this,o),this.callback=function(l,s){postMessage({type:"call",id:s,data:l})},this.emit=function(l,s){postMessage({type:"event",name:l,data:s})}}).call(a.prototype),new a};var n=e.main=null,r=e.sender=null;e.onmessage=function(o){var i=o.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),acequire("ace/lib/es5-shim"),r=e.sender=e.initSender();var a=acequire(i.module)[i.classname];n=e.main=new a(r)}}}})(void 0),ace.define("ace/lib/oop",["require","exports","module"],function(e,t){t.inherits=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(n,r){for(var o in r)n[o]=r[o];return n},t.implement=function(n,r){t.mixin(n,r)}}),ace.define("ace/range",["require","exports","module"],function(e,t){var n=function(o,i){return o.row-i.row||o.column-i.column},r=function(o,i,a,l){this.start={row:o,column:i},this.end={row:a,column:l}};(function(){this.isEqual=function(o){return this.start.row===o.start.row&&this.end.row===o.end.row&&this.start.column===o.start.column&&this.end.column===o.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(o,i){return this.compare(o,i)==0},this.compareRange=function(o){var i,a=o.end,l=o.start;return i=this.compare(a.row,a.column),i==1?(i=this.compare(l.row,l.column),i==1?2:i==0?1:0):i==-1?-2:(i=this.compare(l.row,l.column),i==-1?-1:i==1?42:0)},this.comparePoint=function(o){return this.compare(o.row,o.column)},this.containsRange=function(o){return this.comparePoint(o.start)==0&&this.comparePoint(o.end)==0},this.intersects=function(o){var i=this.compareRange(o);return i==-1||i==0||i==1},this.isEnd=function(o,i){return this.end.row==o&&this.end.column==i},this.isStart=function(o,i){return this.start.row==o&&this.start.column==i},this.setStart=function(o,i){typeof o=="object"?(this.start.column=o.column,this.start.row=o.row):(this.start.row=o,this.start.column=i)},this.setEnd=function(o,i){typeof o=="object"?(this.end.column=o.column,this.end.row=o.row):(this.end.row=o,this.end.column=i)},this.inside=function(o,i){return this.compare(o,i)==0?!(this.isEnd(o,i)||this.isStart(o,i)):!1},this.insideStart=function(o,i){return this.compare(o,i)==0?!this.isEnd(o,i):!1},this.insideEnd=function(o,i){return this.compare(o,i)==0?!this.isStart(o,i):!1},this.compare=function(o,i){return this.isMultiLine()||o!==this.start.row?this.start.row>o?-1:o>this.end.row?1:this.start.row===o?i>=this.start.column?0:-1:this.end.row===o?this.end.column>=i?0:1:0:this.start.column>i?-1:i>this.end.column?1:0},this.compareStart=function(o,i){return this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.compareEnd=function(o,i){return this.end.row==o&&this.end.column==i?1:this.compare(o,i)},this.compareInside=function(o,i){return this.end.row==o&&this.end.column==i?1:this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.clipRows=function(o,i){if(this.end.row>i)var a={row:i+1,column:0};else if(o>this.end.row)var a={row:o,column:0};if(this.start.row>i)var l={row:i+1,column:0};else if(o>this.start.row)var l={row:o,column:0};return r.fromPoints(l||this.start,a||this.end)},this.extend=function(o,i){var a=this.compare(o,i);if(a==0)return this;if(a==-1)var l={row:o,column:i};else var s={row:o,column:i};return r.fromPoints(l||this.start,s||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 r.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(o){var i=o.documentToScreenPosition(this.start),a=o.documentToScreenPosition(this.end);return new r(i.row,i.column,a.row,a.column)},this.moveBy=function(o,i){this.start.row+=o,this.start.column+=i,this.end.row+=o,this.end.column+=i}}).call(r.prototype),r.fromPoints=function(o,i){return new r(o.row,o.column,i.row,i.column)},r.comparePoints=n,r.comparePoints=function(o,i){return o.row-i.row||o.column-i.column},t.Range=r}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t){t.applyDelta=function(n,r){var o=r.start.row,i=r.start.column,a=n[o]||"";switch(r.action){case"insert":var l=r.lines;if(l.length===1)n[o]=a.substring(0,i)+r.lines[0]+a.substring(i);else{var s=[o,1].concat(r.lines);n.splice.apply(n,s),n[o]=a.substring(0,i)+n[o],n[o+r.lines.length-1]+=a.substring(i)}break;case"remove":var c=r.end.column,u=r.end.row;o===u?n[o]=a.substring(0,i)+a.substring(c):n.splice(o,u-o+1,a.substring(0,i)+n[u].substring(c))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t){var n={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(i,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var l=this._eventRegistry[i]||[],s=this._defaultHandlers[i];if(l.length||s){typeof a=="object"&&a||(a={}),a.type||(a.type=i),a.stopPropagation||(a.stopPropagation=r),a.preventDefault||(a.preventDefault=o),l=l.slice();for(var c=0;l.length>c&&(l[c](a,this),!a.propagationStopped);c++);return s&&!a.defaultPrevented?s(a,this):void 0}},n._signal=function(i,a){var l=(this._eventRegistry||{})[i];if(l){l=l.slice();for(var s=0;l.length>s;s++)l[s](a,this)}},n.once=function(i,a){var l=this;a&&this.addEventListener(i,function s(){l.removeEventListener(i,s),a.apply(null,arguments)})},n.setDefaultHandler=function(i,a){var l=this._defaultHandlers;if(l||(l=this._defaultHandlers={_disabled_:{}}),l[i]){var s=l[i],c=l._disabled_[i];c||(l._disabled_[i]=c=[]),c.push(s);var u=c.indexOf(a);u!=-1&&c.splice(u,1)}l[i]=a},n.removeDefaultHandler=function(i,a){var l=this._defaultHandlers;if(l){var s=l._disabled_[i];if(l[i]==a)l[i],s&&this.setDefaultHandler(i,s.pop());else if(s){var c=s.indexOf(a);c!=-1&&s.splice(c,1)}}},n.on=n.addEventListener=function(i,a,l){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[i];return s||(s=this._eventRegistry[i]=[]),s.indexOf(a)==-1&&s[l?"unshift":"push"](a),a},n.off=n.removeListener=n.removeEventListener=function(i,a){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[i];if(l){var s=l.indexOf(a);s!==-1&&l.splice(s,1)}},n.removeAllListeners=function(i){this._eventRegistry&&(this._eventRegistry[i]=[])},t.EventEmitter=n}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){var n=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(i,a,l){this.$onChange=this.onChange.bind(this),this.attach(i),l===void 0?this.setPosition(a.row,a.column):this.setPosition(a,l)};(function(){function i(l,s,c){var u=c?l.column<=s.column:l.column<s.column;return l.row<s.row||l.row==s.row&&u}function a(l,s,c){var u=l.action=="insert",f=(u?1:-1)*(l.end.row-l.start.row),d=(u?1:-1)*(l.end.column-l.start.column),y=l.start,x=u?y:l.end;return i(s,y,c)?{row:s.row,column:s.column}:i(x,s,!c)?{row:s.row+f,column:s.column+(s.row==x.row?d:0)}:{row:y.row,column:y.column}}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row||l.start.row>this.row)){var s=a(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},this.setPosition=function(l,s,c){var u;if(u=c?{row:l,column:s}:this.$clipPositionToDocument(l,s),this.row!=u.row||this.column!=u.column){var f={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:f,value:u})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(l,s){var c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):0>l?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,s))),0>s&&(c.column=0),c}}).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){var n=e("./lib/oop"),r=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,i=e("./range").Range,a=e("./anchor").Anchor,l=function(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){n.implement(this,o),this.setValue=function(s){var c=this.getLength()-1;this.remove(new i(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,c){return new a(this,s,c)},this.$split="aaa".split(/a/).length===0?function(s){return s.replace(/\r\n|\r/g,`
313
313
  `).split(`
314
314
  `)}:function(s){return s.split(/\r\n|\r|\n/)},this.$detectNewLine=function(s){var c=s.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
315
315
  `,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
@@ -319,4 +319,4 @@ v\f\r   ᠎              \u2028\u2029\uFEFF`;if(!
319
319
  `||s=="\r"||s==`
320
320
  `},this.getLine=function(s){return this.$lines[s]||""},this.getLines=function(s,c){return this.$lines.slice(s,c+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(s){return this.getLinesForRange(s).join(this.getNewLineCharacter())},this.getLinesForRange=function(s){var c;if(s.start.row===s.end.row)c=[this.getLine(s.start.row).substring(s.start.column,s.end.column)];else{c=this.getLines(s.start.row,s.end.row),c[0]=(c[0]||"").substring(s.start.column);var u=c.length-1;s.end.row-s.start.row==u&&(c[u]=c[u].substring(0,s.end.column))}return c},this.insertLines=function(s,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(s,c)},this.removeLines=function(s,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(s,c)},this.insertNewLine=function(s){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(s,["",""])},this.insert=function(s,c){return 1>=this.getLength()&&this.$detectNewLine(c),this.insertMergedLines(s,this.$split(c))},this.insertInLine=function(s,c){var u=this.clippedPos(s.row,s.column),f=this.pos(s.row,s.column+c.length);return this.applyDelta({start:u,end:f,action:"insert",lines:[c]},!0),this.clonePos(f)},this.clippedPos=function(s,c){var u=this.getLength();s===void 0?s=u:0>s?s=0:s>=u&&(s=u-1,c=void 0);var f=this.getLine(s);return c==null&&(c=f.length),c=Math.min(Math.max(c,0),f.length),{row:s,column:c}},this.clonePos=function(s){return{row:s.row,column:s.column}},this.pos=function(s,c){return{row:s,column:c}},this.$clipPosition=function(s){var c=this.getLength();return s.row>=c?(s.row=Math.max(0,c-1),s.column=this.getLine(c-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},this.insertFullLines=function(s,c){s=Math.min(Math.max(s,0),this.getLength());var u=0;this.getLength()>s?(c=c.concat([""]),u=0):(c=[""].concat(c),s--,u=this.$lines[s].length),this.insertMergedLines({row:s,column:u},c)},this.insertMergedLines=function(s,c){var u=this.clippedPos(s.row,s.column),f={row:u.row+c.length-1,column:(c.length==1?u.column:0)+c[c.length-1].length};return this.applyDelta({start:u,end:f,action:"insert",lines:c}),this.clonePos(f)},this.remove=function(s){var c=this.clippedPos(s.start.row,s.start.column),u=this.clippedPos(s.end.row,s.end.column);return this.applyDelta({start:c,end:u,action:"remove",lines:this.getLinesForRange({start:c,end:u})}),this.clonePos(c)},this.removeInLine=function(s,c,u){var f=this.clippedPos(s,c),d=this.clippedPos(s,u);return this.applyDelta({start:f,end:d,action:"remove",lines:this.getLinesForRange({start:f,end:d})},!0),this.clonePos(f)},this.removeFullLines=function(s,c){s=Math.min(Math.max(0,s),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var u=c==this.getLength()-1&&s>0,f=this.getLength()-1>c,d=u?s-1:s,y=u?this.getLine(d).length:0,x=f?c+1:c,E=f?0:this.getLine(x).length,h=new i(d,y,x,E),_=this.$lines.slice(s,c+1);return this.applyDelta({start:h.start,end:h.end,action:"remove",lines:this.getLinesForRange(h)}),_},this.removeNewLine=function(s){this.getLength()-1>s&&s>=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},this.replace=function(s,c){return s instanceof i||(s=i.fromPoints(s.start,s.end)),c.length===0&&s.isEmpty()?s.start:c==this.getTextRange(s)?s.end:(this.remove(s),c?this.insert(s.start,c):s.start)},this.applyDeltas=function(s){for(var c=0;s.length>c;c++)this.applyDelta(s[c])},this.revertDeltas=function(s){for(var c=s.length-1;c>=0;c--)this.revertDelta(s[c])},this.applyDelta=function(s,c){var u=s.action=="insert";(u?1>=s.lines.length&&!s.lines[0]:!i.comparePoints(s.start,s.end))||(u&&s.lines.length>2e4&&this.$splitAndapplyLargeDelta(s,2e4),r(this.$lines,s,c),this._signal("change",s))},this.$splitAndapplyLargeDelta=function(s,c){for(var u=s.lines,f=u.length,d=s.start.row,y=s.start.column,x=0,E=0;;){x=E,E+=c-1;var h=u.slice(x,E);if(E>f){s.lines=h,s.start.row=d+x,s.start.column=y;break}h.push(""),this.applyDelta({start:this.pos(d+x,y),end:this.pos(d+E,y=0),action:s.action,lines:h},!0)}},this.revertDelta=function(s){this.applyDelta({start:this.clonePos(s.start),end:this.clonePos(s.end),action:s.action=="insert"?"remove":"insert",lines:s.lines.slice()})},this.indexToPosition=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=c||0,y=u.length;y>d;d++)if(s-=u[d].length+f,0>s)return{row:d,column:s+u[d].length+f};return{row:y-1,column:u[y-1].length}},this.positionToIndex=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=0,y=Math.min(s.row,u.length),x=c||0;y>x;++x)d+=u[x].length+f;return d+s.column}}).call(l.prototype),t.Document=l}),ace.define("ace/lib/lang",["require","exports","module"],function(e,t){t.last=function(o){return o[o.length-1]},t.stringReverse=function(o){return o.split("").reverse().join("")},t.stringRepeat=function(o,i){for(var a="";i>0;)1&i&&(a+=o),(i>>=1)&&(o+=o);return a};var n=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(o){return o.replace(n,"")},t.stringTrimRight=function(o){return o.replace(r,"")},t.copyObject=function(o){var i={};for(var a in o)i[a]=o[a];return i},t.copyArray=function(o){for(var i=[],a=0,l=o.length;l>a;a++)i[a]=o[a]&&typeof o[a]=="object"?this.copyObject(o[a]):o[a];return i},t.deepCopy=function o(i){if(typeof i!="object"||!i)return i;var a;if(Array.isArray(i)){a=[];for(var l=0;i.length>l;l++)a[l]=o(i[l]);return a}if(Object.prototype.toString.call(i)!=="[object Object]")return i;a={};for(var l in i)a[l]=o(i[l]);return a},t.arrayToMap=function(o){for(var i={},a=0;o.length>a;a++)i[o[a]]=1;return i},t.createMap=function(o){var i=Object.create(null);for(var a in o)i[a]=o[a];return i},t.arrayRemove=function(o,i){for(var a=0;o.length>=a;a++)i===o[a]&&o.splice(a,1)},t.escapeRegExp=function(o){return o.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(o){return o.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(o,i){var a=[];return o.replace(i,function(l){a.push({offset:arguments[arguments.length-2],length:l.length})}),a},t.deferredCall=function(o){var i=null,a=function(){i=null,o()},l=function(s){return l.cancel(),i=setTimeout(a,s||0),l};return l.schedule=l,l.call=function(){return this.cancel(),o(),l},l.cancel=function(){return clearTimeout(i),i=null,l},l.isPending=function(){return i},l},t.delayedCall=function(o,i){var a=null,l=function(){a=null,o()},s=function(c){a==null&&(a=setTimeout(l,c||i))};return s.delay=function(c){a&&clearTimeout(a),a=setTimeout(l,c||i)},s.schedule=s,s.call=function(){this.cancel(),o()},s.cancel=function(){a&&clearTimeout(a),a=null},s.isPending=function(){return a},s}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(e,t){e("../range").Range;var n=e("../document").Document,r=e("../lib/lang"),o=t.Mirror=function(i){this.sender=i;var a=this.doc=new n(""),l=this.deferredUpdate=r.delayedCall(this.onUpdate.bind(this)),s=this;i.on("change",function(c){var u=c.data;if(u[0].start)a.applyDeltas(u);else for(var f=0;u.length>f;f+=2){if(Array.isArray(u[f+1]))var d={action:"insert",start:u[f],lines:u[f+1]};else var d={action:"remove",start:u[f],end:u[f+1]};a.applyDelta(d,!0)}return s.$timeout?l.schedule(s.$timeout):(s.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(i){this.$timeout=i},this.setValue=function(i){this.doc.setValue(i),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(i){this.sender.callback(this.doc.getValue(),i)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){var e,t,n,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
321
321
  `,r:"\r",t:" "},i=function(h){throw{name:"SyntaxError",message:h,at:e,text:n}},a=function(h){t=n.charAt(h),e=h+1},l=function(h){return h&&h!==t&&i("Expected '"+h+"' instead of '"+t+"'"),t=n.charAt(e),e+=1,t},s=function(h,_){let p=e,m=n.indexOf(h,p);return m<0&&i(_),a(m+h.length),n.substring(p,m)},c=function(h){return n.substr(e,h.length)===h},u=function(){var h,_="";for(t==="-"&&(_="-",l("-"));t>="0"&&"9">=t;)_+=t,l();if(t===".")for(_+=".";l()&&t>="0"&&"9">=t;)_+=t;if(t==="e"||t==="E")for(_+=t,l(),(t==="-"||t==="+")&&(_+=t,l());t>="0"&&"9">=t;)_+=t,l();return h=+_,isNaN(h)?(i("Bad number"),void 0):h},f=function(){var h,_,p,m="";if(t==='"'){if(c('""'))return l('"'),l('"'),s('"""',`failed to find closing '"""'`);for(;l();){if(t==='"')return l(),m;if(t==="\\")if(l(),t==="u"){for(p=0,_=0;4>_&&(h=parseInt(l(),16),isFinite(h));_+=1)p=16*p+h;m+=String.fromCharCode(p)}else{if(typeof o[t]!="string")break;m+=o[t]}else m+=t}}i("Bad string")},d=function(){for(;t&&" ">=t;)l()},y=function(){switch(t){case"t":return l("t"),l("r"),l("u"),l("e"),!0;case"f":return l("f"),l("a"),l("l"),l("s"),l("e"),!1;case"n":return l("n"),l("u"),l("l"),l("l"),null}i("Unexpected '"+t+"'")},x=function(){var h=[];if(t==="["){if(l("["),d(),t==="]")return l("]"),h;for(;t;){if(h.push(r()),d(),t==="]")return l("]"),h;l(","),d()}}i("Bad array")},E=function(){var h,_={};if(t==="{"){if(l("{"),d(),t==="}")return l("}"),_;for(;t;){if(h=f(),d(),l(":"),Object.hasOwnProperty.call(_,h)&&i('Duplicate key "'+h+'"'),_[h]=r(),d(),t==="}")return l("}"),_;l(","),d()}}i("Bad object")};return r=function(){switch(d(),t){case"{":return E();case"[":return x();case'"':return f();case"-":return u();default:return t>="0"&&"9">=t?u():y()}},function(h,_){var p;return n=h,e=0,t=" ",p=r(),d(),t&&i("Syntax error"),typeof _=="function"?function m(g,b){var C,S,w=g[b];if(w&&typeof w=="object")for(C in w)Object.hasOwnProperty.call(w,C)&&(S=m(w,C),S!==void 0?w[C]=S:delete w[C]);return _.call(g,b,w)}({"":p},""):p}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(e,t){var n=e("../lib/oop"),r=e("../worker/mirror").Mirror,o=e("./json/json_parse"),i=t.JsonWorker=function(a){r.call(this,a),this.setTimeout(200)};n.inherits(i,r),(function(){this.onUpdate=function(){var a=this.doc.getValue(),l=[];try{a&&o(a)}catch(c){var s=this.doc.indexToPosition(c.at-1);l.push({row:s.row,column:s.column,text:c.message,type:"error"})}this.sender.emit("annotate",l)}}).call(i.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function e(){}function t(j){try{return Object.defineProperty(j,"sentinel",{}),"sentinel"in j}catch{}}function n(j){return j=+j,j!==j?j=0:j!==0&&j!==1/0&&j!==-1/0&&(j=(j>0||-1)*Math.floor(Math.abs(j))),j}Function.prototype.bind||(Function.prototype.bind=function(j){var H=this;if(typeof H!="function")throw new TypeError("Function.prototype.bind called on incompatible "+H);var U=f.call(arguments,1),D=function(){if(this instanceof D){var W=H.apply(this,U.concat(f.call(arguments)));return Object(W)===W?W:this}return H.apply(j,U.concat(f.call(arguments)))};return H.prototype&&(e.prototype=H.prototype,D.prototype=new e,e.prototype=null),D});var r,o,i,a,l,s=Function.prototype.call,c=Array.prototype,u=Object.prototype,f=c.slice,d=s.bind(u.toString),y=s.bind(u.hasOwnProperty);if((l=y(u,"__defineGetter__"))&&(r=s.bind(u.__defineGetter__),o=s.bind(u.__defineSetter__),i=s.bind(u.__lookupGetter__),a=s.bind(u.__lookupSetter__)),[1,2].splice(0).length!=2)if(function(){function j(D){var W=Array(D+2);return W[0]=W[1]=0,W}var H,U=[];return U.splice.apply(U,j(20)),U.splice.apply(U,j(26)),H=U.length,U.splice(5,0,"XXX"),H+1==U.length?!0:void 0}()){var x=Array.prototype.splice;Array.prototype.splice=function(j,H){return arguments.length?x.apply(this,[j===void 0?0:j,H===void 0?this.length-j:H].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(j,H){var U=this.length;j>0?j>U&&(j=U):j==null?j=0:0>j&&(j=Math.max(U+j,0)),U>j+H||(H=U-j);var D=this.slice(j,j+H),W=f.call(arguments,2),A=W.length;if(j===U)A&&this.push.apply(this,W);else{var k=Math.min(H,U-j),G=j+k,Z=G+A-k,q=U-G,V=U-k;if(G>Z)for(var Y=0;q>Y;++Y)this[Z+Y]=this[G+Y];else if(Z>G)for(Y=q;Y--;)this[Z+Y]=this[G+Y];if(A&&j===V)this.length=V,this.push.apply(this,W);else for(this.length=V+A,Y=0;A>Y;++Y)this[j+Y]=W[Y]}return D};Array.isArray||(Array.isArray=function(j){return d(j)=="[object Array]"});var E=Object("a"),h=E[0]!="a"||!(0 in E);if(Array.prototype.forEach||(Array.prototype.forEach=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=arguments[1],W=-1,A=U.length>>>0;if(d(j)!="[object Function]")throw new TypeError;for(;A>++W;)W in U&&j.call(D,U[W],W,H)}),Array.prototype.map||(Array.prototype.map=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=U.length>>>0,W=Array(D),A=arguments[1];if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");for(var k=0;D>k;k++)k in U&&(W[k]=j.call(A,U[k],k,H));return W}),Array.prototype.filter||(Array.prototype.filter=function(j){var H,U=X(this),D=h&&d(this)=="[object String]"?this.split(""):U,W=D.length>>>0,A=[],k=arguments[1];if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");for(var G=0;W>G;G++)G in D&&(H=D[G],j.call(k,H,G,U)&&A.push(H));return A}),Array.prototype.every||(Array.prototype.every=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=U.length>>>0,W=arguments[1];if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");for(var A=0;D>A;A++)if(A in U&&!j.call(W,U[A],A,H))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=U.length>>>0,W=arguments[1];if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");for(var A=0;D>A;A++)if(A in U&&j.call(W,U[A],A,H))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=U.length>>>0;if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");if(!D&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");var W,A=0;if(arguments.length>=2)W=arguments[1];else for(;;){if(A in U){W=U[A++];break}if(++A>=D)throw new TypeError("reduce of empty array with no initial value")}for(;D>A;A++)A in U&&(W=j.call(void 0,W,U[A],A,H));return W}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=U.length>>>0;if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");if(!D&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");var W,A=D-1;if(arguments.length>=2)W=arguments[1];else for(;;){if(A in U){W=U[A--];break}if(0>--A)throw new TypeError("reduceRight of empty array with no initial value")}do A in this&&(W=j.call(void 0,W,U[A],A,H));while(A--);return W}),Array.prototype.indexOf&&[0,1].indexOf(1,2)==-1||(Array.prototype.indexOf=function(j){var H=h&&d(this)=="[object String]"?this.split(""):X(this),U=H.length>>>0;if(!U)return-1;var D=0;for(arguments.length>1&&(D=n(arguments[1])),D=D>=0?D:Math.max(0,U+D);U>D;D++)if(D in H&&H[D]===j)return D;return-1}),Array.prototype.lastIndexOf&&[0,1].lastIndexOf(0,-3)==-1||(Array.prototype.lastIndexOf=function(j){var H=h&&d(this)=="[object String]"?this.split(""):X(this),U=H.length>>>0;if(!U)return-1;var D=U-1;for(arguments.length>1&&(D=Math.min(D,n(arguments[1]))),D=D>=0?D:U-Math.abs(D);D>=0;D--)if(D in H&&j===H[D])return D;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(j){return j.__proto__||(j.constructor?j.constructor.prototype:u)}),!Object.getOwnPropertyDescriptor){var _="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(j,H){if(typeof j!="object"&&typeof j!="function"||j===null)throw new TypeError(_+j);if(y(j,H)){var U,D,W;if(U={enumerable:!0,configurable:!0},l){var A=j.__proto__;j.__proto__=u;var D=i(j,H),W=a(j,H);if(j.__proto__=A,D||W)return D&&(U.get=D),W&&(U.set=W),U}return U.value=j[H],U}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(j){return Object.keys(j)}),!Object.create){var p;p=Object.prototype.__proto__===null?function(){return{__proto__:null}}:function(){var j={};for(var H in j)j[H]=null;return j.constructor=j.hasOwnProperty=j.propertyIsEnumerable=j.isPrototypeOf=j.toLocaleString=j.toString=j.valueOf=j.__proto__=null,j},Object.create=function(j,H){var U;if(j===null)U=p();else{if(typeof j!="object")throw new TypeError("typeof prototype["+typeof j+"] != 'object'");var D=function(){};D.prototype=j,U=new D,U.__proto__=j}return H!==void 0&&Object.defineProperties(U,H),U}}if(Object.defineProperty){var m=t({}),g=typeof document>"u"||t(document.createElement("div"));if(!m||!g)var b=Object.defineProperty}if(!Object.defineProperty||b){var C="Property description must be an object: ",S="Object.defineProperty called on non-object: ",w="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(j,H,U){if(typeof j!="object"&&typeof j!="function"||j===null)throw new TypeError(S+j);if(typeof U!="object"&&typeof U!="function"||U===null)throw new TypeError(C+U);if(b)try{return b.call(Object,j,H,U)}catch{}if(y(U,"value"))if(l&&(i(j,H)||a(j,H))){var D=j.__proto__;j.__proto__=u,delete j[H],j[H]=U.value,j.__proto__=D}else j[H]=U.value;else{if(!l)throw new TypeError(w);y(U,"get")&&r(j,H,U.get),y(U,"set")&&o(j,H,U.set)}return j}}Object.defineProperties||(Object.defineProperties=function(j,H){for(var U in H)y(H,U)&&Object.defineProperty(j,U,H[U]);return j}),Object.seal||(Object.seal=function(j){return j}),Object.freeze||(Object.freeze=function(j){return j});try{Object.freeze(function(){})}catch{Object.freeze=function(H){return function(U){return typeof U=="function"?U:H(U)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(j){return j}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(j){if(Object(j)===j)throw new TypeError;for(var H="";y(j,H);)H+="?";j[H]=!0;var U=y(j,H);return delete j[H],U}),!Object.keys){var O=!0,R=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],N=R.length;for(var P in{toString:null})O=!1;Object.keys=function(j){if(typeof j!="object"&&typeof j!="function"||j===null)throw new TypeError("Object.keys called on a non-object");var H=[];for(var U in j)y(j,U)&&H.push(U);if(O)for(var D=0,W=N;W>D;D++){var A=R[D];y(j,A)&&H.push(A)}return H}}Date.now||(Date.now=function(){return new Date().getTime()});var L=`
322
- \v\f\r   ᠎              \u2028\u2029\uFEFF`;if(!String.prototype.trim||L.trim()){L="["+L+"]";var z=RegExp("^"+L+L+"*"),J=RegExp(L+L+"*$");String.prototype.trim=function(){return(this+"").replace(z,"").replace(J,"")}}var X=function(j){if(j==null)throw new TypeError("can't convert "+j+" to object");return Object(j)}});const q6=(ze.exports==null?{}:ze.exports).default||ze.exports,V6=(ze.exports==null?{}:ze.exports).inherits,H6=(ze.exports==null?{}:ze.exports).mixin,W6=(ze.exports==null?{}:ze.exports).implement,U6=(ze.exports==null?{}:ze.exports).Range,G6=(ze.exports==null?{}:ze.exports).applyDelta,K6=(ze.exports==null?{}:ze.exports).EventEmitter,X6=(ze.exports==null?{}:ze.exports).Anchor,Y6=(ze.exports==null?{}:ze.exports).Document,J6=(ze.exports==null?{}:ze.exports).last,Q6=(ze.exports==null?{}:ze.exports).stringReverse,Z6=(ze.exports==null?{}:ze.exports).stringRepeat,eq=(ze.exports==null?{}:ze.exports).stringTrimLeft,tq=(ze.exports==null?{}:ze.exports).stringTrimRight,nq=(ze.exports==null?{}:ze.exports).copyObject,rq=(ze.exports==null?{}:ze.exports).copyArray,oq=(ze.exports==null?{}:ze.exports).deepCopy,iq=(ze.exports==null?{}:ze.exports).arrayToMap,aq=(ze.exports==null?{}:ze.exports).createMap,sq=(ze.exports==null?{}:ze.exports).arrayRemove,lq=(ze.exports==null?{}:ze.exports).escapeRegExp,cq=(ze.exports==null?{}:ze.exports).escapeHTML,uq=(ze.exports==null?{}:ze.exports).getMatchOffsets,dq=(ze.exports==null?{}:ze.exports).deferredCall,fq=(ze.exports==null?{}:ze.exports).delayedCall,pq=(ze.exports==null?{}:ze.exports).Mirror,hq=(ze.exports==null?{}:ze.exports).JsonWorker,mq=Object.freeze(Object.defineProperty({__proto__:null,Anchor:X6,Document:Y6,EventEmitter:K6,JsonWorker:hq,Mirror:pq,Range:U6,applyDelta:G6,arrayRemove:sq,arrayToMap:iq,copyArray:rq,copyObject:nq,createMap:aq,deepCopy:oq,default:q6,deferredCall:dq,delayedCall:fq,escapeHTML:cq,escapeRegExp:lq,getMatchOffsets:uq,implement:W6,inherits:V6,last:J6,mixin:H6,stringRepeat:Z6,stringReverse:Q6,stringTrimLeft:eq,stringTrimRight:tq},Symbol.toStringTag,{value:"Module"}));return b4});
322
+ \v\f\r   ᠎              \u2028\u2029\uFEFF`;if(!String.prototype.trim||L.trim()){L="["+L+"]";var z=RegExp("^"+L+L+"*"),J=RegExp(L+L+"*$");String.prototype.trim=function(){return(this+"").replace(z,"").replace(J,"")}}var X=function(j){if(j==null)throw new TypeError("can't convert "+j+" to object");return Object(j)}});const q8=(ze.exports==null?{}:ze.exports).default||ze.exports,V8=(ze.exports==null?{}:ze.exports).inherits,H8=(ze.exports==null?{}:ze.exports).mixin,W8=(ze.exports==null?{}:ze.exports).implement,U8=(ze.exports==null?{}:ze.exports).Range,G8=(ze.exports==null?{}:ze.exports).applyDelta,K8=(ze.exports==null?{}:ze.exports).EventEmitter,X8=(ze.exports==null?{}:ze.exports).Anchor,Y8=(ze.exports==null?{}:ze.exports).Document,J8=(ze.exports==null?{}:ze.exports).last,Q8=(ze.exports==null?{}:ze.exports).stringReverse,Z8=(ze.exports==null?{}:ze.exports).stringRepeat,eq=(ze.exports==null?{}:ze.exports).stringTrimLeft,tq=(ze.exports==null?{}:ze.exports).stringTrimRight,nq=(ze.exports==null?{}:ze.exports).copyObject,rq=(ze.exports==null?{}:ze.exports).copyArray,oq=(ze.exports==null?{}:ze.exports).deepCopy,iq=(ze.exports==null?{}:ze.exports).arrayToMap,aq=(ze.exports==null?{}:ze.exports).createMap,sq=(ze.exports==null?{}:ze.exports).arrayRemove,lq=(ze.exports==null?{}:ze.exports).escapeRegExp,cq=(ze.exports==null?{}:ze.exports).escapeHTML,uq=(ze.exports==null?{}:ze.exports).getMatchOffsets,dq=(ze.exports==null?{}:ze.exports).deferredCall,fq=(ze.exports==null?{}:ze.exports).delayedCall,pq=(ze.exports==null?{}:ze.exports).Mirror,hq=(ze.exports==null?{}:ze.exports).JsonWorker,mq=Object.freeze(Object.defineProperty({__proto__:null,Anchor:X8,Document:Y8,EventEmitter:K8,JsonWorker:hq,Mirror:pq,Range:U8,applyDelta:G8,arrayRemove:sq,arrayToMap:iq,copyArray:rq,copyObject:nq,createMap:aq,deepCopy:oq,default:q8,deferredCall:dq,delayedCall:fq,escapeHTML:cq,escapeRegExp:lq,getMatchOffsets:uq,implement:W8,inherits:V8,last:J8,mixin:H8,stringRepeat:Z8,stringReverse:Q8,stringTrimLeft:eq,stringTrimRight:tq},Symbol.toStringTag,{value:"Module"}));return b4});