import{_ as Pt,o as ze,c as ot,h as Oe,bA as Ht,e as Ot,f as ft,dG as Zt,$ as kt,a as ve,w as _e,i as nt,j as ke,k as Rt,b as gt,bu as it,cI as wt,F as $t,l as Lt,d as Gt,m as pt,dH as Dt,cN as Kt,cH as jt,dj as zt,dI as Xt,y as Jt,z as Yt,dJ as Ut,s as Qt,v as qt,x as en,N as tn,B as nn,bD as on,bE as rn}from"./index.3790e358.js";import{g as sn}from"./_commonjsHelpers.b273fa3f.js";import{_ as ct}from"./Input.aa2d04f5.js";import{a as an,b as ln,_ as cn}from"./DataTable.02edda7e.js";import{_ as hn}from"./Scrollbar.281825c6.js";import"./Suffix.40f5c87a.js";import"./Checkbox.0be9cd10.js";import"./FocusDetector.b4ab226b.js";import"./Select.0304b98d.js";import"./Forward.a833504f.js";var Ft={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-2023 Jos de Jong, http://jsoneditoronline.org * * @author Jos de Jong, * @version 9.10.2 * @date 2023-05-15 */(function(Xe,Qe){(function(De,st){Xe.exports=st()})(self,function(){return st={897:function(le,g,Z){Z.d(g,{x:function(){return z}});var U=Z(2602),S=Z(9791),M=Z(7907);function K(P){return(K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(P)}function j(P,N){for(var A=0;Ac.top&&(f=!1),y?0:h.top-a.top);f?(y=m.offsetHeight,this.dom.menu.style.left="0",this.dom.menu.style.top=r+y+"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&&(a=f?c.bottom-h.bottom-10:h.top-c.top-10,this.dom.list.style.maxHeight=a+"px",this.dom.list.style.overflowY="auto"),this.dom.absoluteAnchor.appendChild(this.dom.root),this.selection=(0,S.getSelection)(),this.anchor=m,setTimeout(function(){t.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(m){var T,y=this,f=m===this.expandedItem,h=this.expandedItem;h&&(h.ul.style.height="0",h.ul.style.padding="",setTimeout(function(){y.expandedItem!==h&&(h.ul.style.display="",S.removeClassName)(h.ul.parentNode,"jsoneditor-selected")},300),this.expandedItem=void 0),f||((T=m.ul).style.display="block",T.clientHeight,setTimeout(function(){if(y.expandedItem===m){for(var a=0,c=0;c/gi,` `))),c.appendChild(t),a.appendChild(c)),a.onclick=function(){T.onFocusLine(h)},A.appendChild(a)}),this.dom.validationErrors=y,this.dom.validationErrorsContainer.appendChild(y),this.dom.additionalErrorsIndication.title=P.length+" errors total",this.dom.validationErrorsContainer.clientHeightU[0].length)||(U=S,M=z,this.options.flex));z++);return U?((K=U[0].match(/\n.*/g))&&(this.yylineno+=K.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:K?K[K.length-1].length-1:this.yylloc.last_column+U[0].length},this.yytext+=U[0],this.match+=U[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(U[0].length),this.matched+=U[0],K=this.performAction.call(this,this.yy,this,j[M],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),K||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 U=this.next();return U!==void 0?U:this.lex()},begin:function(U){this.conditionStack.push(U)},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(U){this.begin(U)},options:{},performAction:function(U,S,M,K){switch(M){case 0:break;case 1:return 6;case 2:return S.yytext=S.yytext.substr(1,S.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 Z;g.parser=Z,g.parse=Z.parse.bind(Z)},3879:function(le){function g(){}g.prototype={on:function(N,A){this._events=this._events||{},this._events[N]=this._events[N]||[],this._events[N].push(A)},off:function(N,A){this._events=this._events||{},N in this._events&&this._events[N].splice(this._events[N].indexOf(A),1)},emit:function(N){if(this._events=this._events||{},N in this._events)for(var A=0;A"+s.label+""}),Z.each(s.children,function(o,i){i.idx=r,t.appendChild(K.call(this,i,t)),r++},this)):(s.idx=r,K.call(this,s),r++)},this),this.config.data&&Array.isArray(this.config.data)&&(h=!(this.data=[]),t=!1,r=0,Z.each(this.config.data,function(n,s){U(s,"children")?(h=Z.createElement("optgroup",{label:s.text}),t=Z.createElement("ul",{class:"selectr-optgroup",role:"group",html:"
  • "+s.text+"
  • "}),Z.each(s.children,function(o,i){(a=new Option(i.text,i.value,!1,i.hasOwnProperty("selected")&&i.selected===!0)).disabled=U(i,"disabled"),this.options.push(a),h.appendChild(a),a.idx=r,t.appendChild(K.call(this,a,i)),this.data[r]=i,r++},this),this.el.appendChild(h)):((a=new Option(s.text,s.value,!1,s.hasOwnProperty("selected")&&s.selected===!0)).disabled=U(s,"disabled"),this.options.push(a),a.idx=r,K.call(this,a,s),this.data[r]=s,r++)},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&&j.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)),y&&Z.removeClass(y,"active"),Z.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===A.el&&A.toggle()},!!this.supportsEventPassiveOption&&{passive:!0}),this.container.addEventListener("click",function(m){m.target===A.el&&A.toggle()}),this.el.addEventListener("change",function(m){m.__selfTriggered||(A.el.multiple?(m=A.getSelectedProperties("idx"),m=function(T,y){for(var f,h=[],a=T.slice(0),c=0;cm?(Z.addClass(this.container,"inverted"),this.isInverted=!0):(Z.removeClass(this.container,"inverted"),this.isInverted=!1),this.optsRect=Z.rect(this.tree)},P.prototype.getOptionByIndex=function(N){return this.options[N]},P.prototype.getOptionByValue=function(N){for(var A=!1,m=0,T=this.options.length;mthis.limit&&1S.EX?((0,f.addClassName)((e=this).frame,"busy"),e.dom.busyContent.innerText=r,setTimeout(function(){t(),(0,f.removeClassName)(e.frame,"busy"),e.dom.busyContent.innerText=""},100)):t()},a.validate=h.validate,a._renderErrors=h._renderErrors,[{mode:"preview",mixin:a,data:"json"}])},6210:function(le,U,Z){Z.r(U),Z.d(U,{showSortModal:function(){return j}});var U=Z(483),S=Z.n(U),M=Z(7907),K=Z(9791);function j(z,f,N,A){var m=Array.isArray(f)?(0,K.getChildPaths)(f):[""],T=A&&A.path&&(0,K.contains)(m,A.path)?A.path:m[0],y=A&&A.direction||"asc",f='
    '+(0,M.Iu)("sort")+"
    "+(0,M.Iu)("sortFieldLabel")+'
    '+(0,M.Iu)("sortDirectionLabel")+'
    ';S()({parent:z,content:f,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-sort"}).afterCreate(function(h){var a=h.modalElem().querySelector("form"),c=h.modalElem().querySelector("#ok"),t=h.modalElem().querySelector("#field"),r=h.modalElem().querySelector("#direction");function e(n){r.value=n,r.className="jsoneditor-button-group jsoneditor-button-group-value-"+r.value}m.forEach(function(n){var s,o=document.createElement("option");o.text=(s=n)===""?"@":s[0]==="."?s.slice(1):s,o.value=n,t.appendChild(o)}),t.value=T||m[0],e(y||"asc"),r.onclick=function(n){e(n.target.getAttribute("data-value"))},c.onclick=function(n){n.preventDefault(),n.stopPropagation(),h.close(),N({path:t.value,direction:r.value})},a&&(a.onsubmit=c.onclick)}).afterClose(function(h){h.destroy()}).show()}},2558:function(le,S,Z){Z.r(S),Z.d(S,{showTransformModal:function(){return T}});var S=Z(483),U=Z.n(S),S=Z(3879),M=Z.n(S),K=Z(7907);function j(y){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(y)}function z(y,f,h,a){if(typeof y=="boolean"||y instanceof Boolean||y===null||typeof y=="number"||y instanceof Number||typeof y=="string"||y instanceof String||y instanceof Date)return JSON.stringify(y);if(Array.isArray(y)){for(var c=y,t=f,r=h,e=a,n=t?r+t:void 0,s=t?`[ `:"[",o=0;oe)return s+"..."}return s+=t?` `+r+"]":"]"}if(y&&j(y)==="object"){var l,d=y,C=f,r=h,p=a,w=C?r+C:void 0,x=!0,$=C?`{ `:"{";if(typeof d.toJSON=="function")return z(d.toJSON(),C,r,p);for(l in d)if(function(O,u){return Object.prototype.hasOwnProperty.call(O,u)}(d,l)){var H=d[l];if(x?x=!1:$+=C?`, `:",",($=($+=C?w+'"'+l+'": ':'"'+l+'":')+z(H,C,w,p)).length>p)return $+"..."}return $+=C?` `+r+"}":"}"}}function P(y,f){for(var h="";0JMESPath query to filter, sort, or transform the JSON data.
    To learn JMESPath, go to the interactive tutorial.';function T(n){var f=n.container,h=n.json,a=n.queryDescription,a=a===void 0?m:a,c=n.createQuery,t=n.executeQuery,r=n.onTransform,e=h,n='