import{_ as Mt,o as Ze,c as it,h as Pe,bA as Pt,e as Zt,f as mt,dN as Ot,$ as St,a as me,w as be,i as qe,j as ye,k as Tt,b as dt,bu as tt,cN as bt,F as $t,l as Lt,d as Ft,m as ut,dO as Dt,cS as Kt,cM as jt,dp as zt,dP as Xt,y as Yt,z as Jt,cH as Ut,s as Qt,v as qt,x as ei,N as ti,B as ii,bD as ni,bE as oi}from"./index.3c4f55c3.js";import{g as ri}from"./_commonjsHelpers.b273fa3f.js";import{_ as at}from"./Input.55d24dc2.js";import{a as si,b as ai,_ as li}from"./DataTable.2c2d13a1.js";import{_ as ci}from"./Scrollbar.8f14e661.js";import"./Suffix.a0cffb13.js";import"./Checkbox.ab3986eb.js";import"./FocusDetector.c9a22081.js";import"./Select.de1bebee.js";import"./Forward.2564511a.js";var Ht={exports:{}};/*! * jsoneditor.js * * @brief * JSONEditor is a web-based tool to view, edit, format, and validate JSON. * It has various modes such as a tree editor, a code editor, and a plain text * editor. * * Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+ * * @license * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. * * Copyright (c) 2011-2022 Jos de Jong, http://jsoneditoronline.org * * @author Jos de Jong, * @version 9.9.2 * @date 2022-09-20 */(function(je,Xe){(function(He,ot){je.exports=ot()})(self,function(){return ot={897:function(ie,g,H){H.d(g,{x:function(){return D}});var X=H(2602),x=H(9791),N=H(7907);function O(P,V){for(var L=0;Ls.top&&(S=!1),A?0:p.top-c.top);S?(A=C.offsetHeight,this.dom.menu.style.left="0",this.dom.menu.style.top=i+A+"px",this.dom.menu.style.bottom=""):(this.dom.menu.style.left="0",this.dom.menu.style.top="",this.dom.menu.style.bottom="0px"),this.limitHeight&&(c=S?s.bottom-p.bottom-10:p.top-s.top-10,this.dom.list.style.maxHeight=c+"px",this.dom.list.style.overflowY="auto"),this.dom.absoluteAnchor.appendChild(this.dom.root),this.selection=(0,x.getSelection)(),this.anchor=C,setTimeout(function(){n.dom.focusButton.focus()},0),P.visibleMenu&&P.visibleMenu.hide(),P.visibleMenu=this}},{key:"hide",value:function(){this.dom.absoluteAnchor&&(this.dom.absoluteAnchor.destroy(),delete this.dom.absoluteAnchor),this.dom.root.parentNode&&(this.dom.root.parentNode.removeChild(this.dom.root),this.onClose&&this.onClose()),P.visibleMenu===this&&(P.visibleMenu=void 0)}},{key:"_onExpandItem",value:function(C){var m,A=this,S=C===this.expandedItem,p=this.expandedItem;p&&(p.ul.style.height="0",p.ul.style.padding="",setTimeout(function(){A.expandedItem!==p&&(p.ul.style.display="",x.removeClassName)(p.ul.parentNode,"jsoneditor-selected")},300),this.expandedItem=void 0),S||((m=C.ul).style.display="block",m.clientHeight,setTimeout(function(){if(A.expandedItem===C){for(var c=0,s=0;s/gi,` `))),s.appendChild(n),c.appendChild(s)),c.onclick=function(){m.onFocusLine(p)},L.appendChild(c)}),this.dom.validationErrors=A,this.dom.validationErrorsContainer.appendChild(A),this.dom.additionalErrorsIndication.title=P.length+" errors total",this.dom.validationErrorsContainer.clientHeightX[0].length)||(X=x,N=P,this.options.flex));P++);return X?((O=X[0].match(/\n.*/g))&&(this.yylineno+=O.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:O?O[O.length-1].length-1:this.yylloc.last_column+X[0].length},this.yytext+=X[0],this.match+=X[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(X[0].length),this.matched+=X[0],O=this.performAction.call(this,this.yy,this,D[N],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),O||void 0):this._input===""?this.EOF:void this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var X=this.next();return X!==void 0?X:this.lex()},begin:function(X){this.conditionStack.push(X)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(X){this.begin(X)},options:{},performAction:function(X,x,N,O){switch(N){case 0:break;case 1:return 6;case 2:return x.yytext=x.yytext.substr(1,x.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};var H;g.parser=H,g.parse=H.parse.bind(H)},3879:function(ie){function g(){}g.prototype={on:function(L,C){this._events=this._events||{},this._events[L]=this._events[L]||[],this._events[L].push(C)},off:function(L,C){this._events=this._events||{},L in this._events&&this._events[L].splice(this._events[L].indexOf(C),1)},emit:function(L){if(this._events=this._events||{},L in this._events)for(var C=0;C"+a.label+""}),H.each(a.children,function(o,l){l.idx=t,i.appendChild(O.call(this,l,i)),t++},this)):(a.idx=t,O.call(this,a),t++)},this),this.config.data&&Array.isArray(this.config.data)&&(c=!(this.data=[]),i=!1,t=0,H.each(this.config.data,function(r,a){X(a,"children")?(c=H.createElement("optgroup",{label:a.text}),i=H.createElement("ul",{class:"selectr-optgroup",role:"group",html:"
  • "+a.text+"
  • "}),H.each(a.children,function(o,l){(s=new Option(l.text,l.value,!1,l.hasOwnProperty("selected")&&l.selected===!0)).disabled=X(l,"disabled"),this.options.push(s),c.appendChild(s),s.idx=t,i.appendChild(O.call(this,s,l)),this.data[t]=l,t++},this),this.el.appendChild(c)):((s=new Option(a.text,a.value,!1,a.hasOwnProperty("selected")&&a.selected===!0)).disabled=X(a,"disabled"),this.options.push(s),s.idx=t,O.call(this,s,a),this.data[t]=a,t++)},this)),this.setSelected(!0);for(var e=this.navIndex=0;ethis.tree.lastElementChild.idx){this.navIndex=this.tree.lastElementChild.idx;break}if(this.navIndexthis.optsRect.top+this.optsRect.height&&(this.tree.scrollTop=this.tree.scrollTop+(m.top+m.height-(this.optsRect.top+this.optsRect.height))),this.navIndex===this.tree.childElementCount-1&&this.requiresPagination&&D.call(this)):this.navIndex===0?this.tree.scrollTop=0:m.top-this.optsRect.top<0&&(this.tree.scrollTop=this.tree.scrollTop+(m.top-this.optsRect.top)),S&&H.removeClass(S,"active"),H.addClass(this.items[this.navIndex],"active")}else this.navigating=!1}.bind(this),this.events.reset=this.reset.bind(this),(this.config.nativeDropdown||this.mobileDevice)&&(this.container.addEventListener("touchstart",function(m){m.changedTouches[0].target===C.el&&C.toggle()},!!this.supportsEventPassiveOption&&{passive:!0}),this.container.addEventListener("click",function(m){m.target===C.el&&C.toggle()}),this.el.addEventListener("change",function(m){m.__selfTriggered||(C.el.multiple?(m=C.getSelectedProperties("idx"),m=function(A,S){for(var p,c=[],s=A.slice(0),n=0;nm?(H.addClass(this.container,"inverted"),this.isInverted=!0):(H.removeClass(this.container,"inverted"),this.isInverted=!1),this.optsRect=H.rect(this.tree)},V.prototype.getOptionByIndex=function(L){return this.options[L]},V.prototype.getOptionByValue=function(L){for(var C=!1,m=0,A=this.options.length;mthis.limit&&1x.EX?((0,S.addClassName)((t=this).frame,"busy"),t.dom.busyContent.innerText=i,setTimeout(function(){n(),(0,S.removeClassName)(t.frame,"busy"),t.dom.busyContent.innerText=""},100)):n()},c.validate=p.validate,c._renderErrors=p._renderErrors,[{mode:"preview",mixin:c,data:"json"}])},6210:function(ie,X,H){H.r(X),H.d(X,{showSortModal:function(){return D}});var X=H(483),x=H.n(X),N=H(7907),O=H(9791);function D(P,p,L,C){var m=Array.isArray(p)?(0,O.getChildPaths)(p):[""],A=C&&C.path&&(0,O.contains)(m,C.path)?C.path:m[0],S=C&&C.direction||"asc",p='
    '+(0,N.Iu)("sort")+"
    "+(0,N.Iu)("sortFieldLabel")+'
    '+(0,N.Iu)("sortDirectionLabel")+'
    ';x()({parent:P,content:p,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-sort"}).afterCreate(function(c){var s=c.modalElem().querySelector("form"),n=c.modalElem().querySelector("#ok"),i=c.modalElem().querySelector("#field"),t=c.modalElem().querySelector("#direction");function e(r){t.value=r,t.className="jsoneditor-button-group jsoneditor-button-group-value-"+t.value}m.forEach(function(r){var a,o=document.createElement("option");o.text=(a=r)===""?"@":a[0]==="."?a.slice(1):a,o.value=r,i.appendChild(o)}),i.value=A||m[0],e(S||"asc"),t.onclick=function(r){e(r.target.getAttribute("data-value"))},n.onclick=function(r){r.preventDefault(),r.stopPropagation(),c.close(),L({path:i.value,direction:t.value})},s&&(s.onsubmit=n.onclick)}).afterClose(function(c){c.destroy()}).show()}},2558:function(ie,x,H){H.r(x),H.d(x,{showTransformModal:function(){return A}});var x=H(483),X=H.n(x),x=H(3879),N=H.n(x),O=H(7907);function D(S){return(D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(S)}function P(S,p,c,s){if(typeof S=="boolean"||S instanceof Boolean||S===null||typeof S=="number"||S instanceof Number||typeof S=="string"||S instanceof String||S instanceof Date)return JSON.stringify(S);if(Array.isArray(S)){for(var n=S,i=p,t=c,e=s,r=i?t+i:void 0,a=i?`[ `:"[",o=0;oe)return a+"..."}return a+=i?` `+t+"]":"]"}if(S&&D(S)==="object"){var d,y=S,I=p,t=c,h=s,u=I?t+I:void 0,b=!0,w=I?`{ `:"{";if(typeof y.toJSON=="function")return P(y.toJSON(),I,t,h);for(d in y)if(function(B,E){return Object.prototype.hasOwnProperty.call(B,E)}(y,d)){var v=y[d];if(b?b=!1:w+=I?`, `:",",(w=(w+=I?u+'"'+d+'": ':'"'+d+'":')+P(v,I,u,h)).length>h)return w+"..."}return w+=I?` `+t+"}":"}"}}function V(S,p){for(var c="";0JMESPath query to filter, sort, or transform the JSON data.
    To learn JMESPath, go to the interactive tutorial.';function A(r){var p=r.container,c=r.json,s=r.queryDescription,s=s===void 0?m:s,n=r.createQuery,i=r.executeQuery,t=r.onTransform,e=c,r='