import{bV as C,au as st,Z as A,a1 as V,ay as z,a7 as D,aV as rt,a5 as T,a6 as k,a9 as be,n as u,d as Oe,S as Ve,Q as Ne,$ as ge,T as t,aC as it,f as U,b4 as ut,ap as lt,bw as O,b5 as ct,ac as dt,c as Y,h as pe,j as ft,dP as pt,dQ as vt,a0 as f,a8 as ht,b3 as ve,c6 as te,aP as $e,a2 as he,c5 as Re,a3 as mt,dR as De}from"./index-8a67e3df.js";import{d as me}from"./dayjs-919e6097.js";import{_ as Me}from"./index.vue_vue_type_script_setup_true_lang-d980f666.js";import{S as yt}from"./state-f52d1a34.js";import{_ as K}from"./index.vue_vue_type_script_setup_true_lang-fe30c327.js";import{b as Z,g as L}from"./utils-cec4b140.js";import{_ as ye,D as $}from"./index-a5661619.js";function xe(s){"@babel/helpers - typeof";return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xe(s)}var gt=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,ze={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data:function(){return{expand:!0,canExtend:!1}},mounted:function(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle:function(){this.expand=!this.expand}},render:function(){var e=this.jsonValue,r=gt.test(e),o;return this.expand?(o={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},r?(e='').concat(e,""),o.innerHTML='"'.concat(e.toString(),'"')):o.innerText='"'.concat(e.toString(),'"')):o={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},C("span",{},[this.canExtend&&C("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),C("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),C("span",o)])}};ze.__file="src/Components/types/json-string.vue";var Le={name:"JsonUndefined",functional:!0,props:{jsonValue:{type:Object,default:null}},render:function(){return C("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:this.jsonValue===null?"null":"undefined"})}};Le.__file="src/Components/types/json-undefined.vue";var He={name:"JsonNumber",functional:!0,props:{jsonValue:{type:Number,required:!0}},render:function(){var e=Number.isInteger(this.jsonValue);return C("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":e,"jv-number-float":!e},innerText:this.jsonValue.toString()})}};He.__file="src/Components/types/json-number.vue";var Ie={name:"JsonBoolean",functional:!0,props:{jsonValue:Boolean},render:function(){return C("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:this.jsonValue.toString()})}};Ie.__file="src/Components/types/json-boolean.vue";var Fe={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean,sort:Boolean,previewMode:Boolean},data:function(){return{value:{}}},computed:{ordered:function(){var e=this;if(!this.sort)return this.value;var r={};return Object.keys(this.value).sort().forEach(function(o){r[o]=e.value[o]}),r}},watch:{jsonValue:function(e){this.setValue(e)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(e){var r=this;setTimeout(function(){r.value=e},0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch{var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}}},render:function(){var e=[];if(!this.previewMode&&!this.keyName&&e.push(C("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(C("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"})),this.expand){for(var r in this.ordered)if(this.ordered.hasOwnProperty(r)){var o=this.ordered[r];e.push(C(_e,{key:r,style:{display:this.expand?void 0:"none"},sort:this.sort,keyName:r,depth:this.depth+1,value:o,previewMode:this.previewMode}))}}return!this.expand&&Object.keys(this.value).length&&e.push(C("span",{style:{display:this.expand?"none":void 0},class:{"jv-ellipsis":!0},onClick:this.toggle,title:"click to reveal object content (keys: ".concat(Object.keys(this.ordered).join(", "),")"),innerText:"..."})),e.push(C("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),C("span",e)}};Fe.__file="src/Components/types/json-object.vue";var Ue={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},sort:Boolean,expand:Boolean,previewMode:Boolean},data:function(){return{value:[]}},watch:{jsonValue:function(e){this.setValue(e)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(e){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;o===0&&(this.value=[]),setTimeout(function(){e.length>o&&(r.value.push(e[o]),r.setValue(e,o+1))},0)},toggle:function(){this.$emit("update:expand",!this.expand);try{this.$el.dispatchEvent(new Event("resized"))}catch{var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}}},render:function(){var e=this,r=[];return!this.previewMode&&!this.keyName&&r.push(C("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),r.push(C("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["})),this.expand&&this.value.forEach(function(o,x){r.push(C(_e,{key:x,style:{display:e.expand?void 0:"none"},sort:e.sort,depth:e.depth+1,value:o,previewMode:e.previewMode}))}),!this.expand&&this.value.length&&r.push(C("span",{style:{display:void 0},class:{"jv-ellipsis":!0},onClick:this.toggle,title:"click to reveal ".concat(this.value.length," hidden items"),innerText:"..."})),r.push(C("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),C("span",r)}};Ue.__file="src/Components/types/json-array.vue";var Je={name:"JsonFunction",functional:!0,props:{jsonValue:{type:Function,required:!0}},render:function(){return C("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:this.jsonValue.toString()},innerHTML:"<function>"})}};Je.__file="src/Components/types/json-function.vue";var qe={name:"JsonDate",inject:["timeformat"],functional:!0,props:{jsonValue:{type:Date,required:!0}},render:function(){var e=this.jsonValue,r=this.timeformat;return C("span",{class:{"jv-item":!0,"jv-string":!0},innerText:'"'.concat(r(e),'"')})}};qe.__file="src/Components/types/json-date.vue";var bt=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,Ge={name:"JsonString",props:{jsonValue:{type:RegExp,required:!0}},data:function(){return{expand:!0,canExtend:!1}},mounted:function(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle:function(){this.expand=!this.expand}},render:function(){var e=this.jsonValue,r=bt.test(e),o;return this.expand?(o={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},r?(e='').concat(e,""),o.innerHTML="".concat(e.toString())):o.innerText="".concat(e.toString())):o={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},C("span",{},[this.canExtend&&C("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),C("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),C("span",o)])}};Ge.__file="src/Components/types/json-regexp.vue";var _e={name:"JsonBox",inject:["expandDepth","keyClick"],props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},keyName:{type:String,default:""},sort:Boolean,depth:{type:Number,default:0},previewMode:Boolean},data:function(){return{expand:!0}},mounted:function(){this.expand=this.previewMode||!(this.depth>=this.expandDepth)},methods:{toggle:function(){this.expand=!this.expand;try{this.$el.dispatchEvent(new Event("resized"))}catch{var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}}},render:function(){var e=this,r=[],o;this.value===null||this.value===void 0?o=Le:Array.isArray(this.value)?o=Ue:Object.prototype.toString.call(this.value)==="[object Date]"?o=qe:this.value.constructor===RegExp?o=Ge:xe(this.value)==="object"?o=Fe:typeof this.value=="number"?o=He:typeof this.value=="string"?o=ze:typeof this.value=="boolean"?o=Ie:typeof this.value=="function"&&(o=Je);var x=this.keyName&&this.value&&(Array.isArray(this.value)||xe(this.value)==="object"&&Object.prototype.toString.call(this.value)!=="[object Date]");return!this.previewMode&&x&&r.push(C("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),this.keyName&&r.push(C("span",{class:{"jv-key":!0},onClick:function(){e.keyClick(e.keyName)},innerText:"".concat(this.keyName,":")})),r.push(C(o,{class:{"jv-push":!0},jsonValue:this.value,keyName:this.keyName,sort:this.sort,depth:this.depth,expand:this.expand,previewMode:this.previewMode,"onUpdate:expand":function(v){e.expand=v}})),C("div",{class:{"jv-node":!0,"jv-key-node":!!this.keyName&&!x,toggle:!this.previewMode&&x}},r)}};_e.__file="src/Components/json-box.vue";var xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _t(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Ye={exports:{}};(function(s,e){(function(o,x){s.exports=x()})(xt,function(){return function(){var r={686:function(n,v,a){a.d(v,{default:function(){return de}});var h=a(279),g=a.n(h),_=a(370),P=a.n(_),E=a(817),M=a.n(E);function j(c){try{return document.execCommand(c)}catch{return!1}}var R=function(l){var i=M()(l);return j("cut"),i},w=R;function B(c){var l=document.documentElement.getAttribute("dir")==="rtl",i=document.createElement("textarea");i.style.fontSize="12pt",i.style.border="0",i.style.padding="0",i.style.margin="0",i.style.position="absolute",i.style[l?"right":"left"]="-9999px";var m=window.pageYOffset||document.documentElement.scrollTop;return i.style.top="".concat(m,"px"),i.setAttribute("readonly",""),i.value=c,i}var ae=function(l){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},m="";if(typeof l=="string"){var d=B(l);i.container.appendChild(d),m=M()(d),j("copy"),d.remove()}else m=M()(l),j("copy");return m},Q=ae;function J(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?J=function(i){return typeof i}:J=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},J(c)}var oe=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=l.action,m=i===void 0?"copy":i,d=l.container,b=l.target,N=l.text;if(m!=="copy"&&m!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(b!==void 0)if(b&&J(b)==="object"&&b.nodeType===1){if(m==="copy"&&b.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(m==="cut"&&(b.hasAttribute("readonly")||b.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(N)return Q(N,{container:d});if(b)return m==="cut"?w(b):Q(b,{container:d})},se=oe;function H(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?H=function(i){return typeof i}:H=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},H(c)}function re(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}function q(c,l){for(var i=0;i"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function G(c){return G=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},G(c)}function X(c,l){var i="data-clipboard-".concat(c);if(l.hasAttribute(i))return l.getAttribute(i)}var ne=function(c){ie(i,c);var l=F(i);function i(m,d){var b;return re(this,i),b=l.call(this),b.resolveOptions(d),b.listenClick(m),b}return je(i,[{key:"resolveOptions",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof d.action=="function"?d.action:this.defaultAction,this.target=typeof d.target=="function"?d.target:this.defaultTarget,this.text=typeof d.text=="function"?d.text:this.defaultText,this.container=H(d.container)==="object"?d.container:document.body}},{key:"listenClick",value:function(d){var b=this;this.listener=P()(d,"click",function(N){return b.onClick(N)})}},{key:"onClick",value:function(d){var b=d.delegateTarget||d.currentTarget,N=this.action(b)||"copy",ee=se({action:N,container:this.container,target:this.target(b),text:this.text(b)});this.emit(ee?"success":"error",{action:N,text:ee,trigger:b,clearSelection:function(){b&&b.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(d){return X("action",d)}},{key:"defaultTarget",value:function(d){var b=X("target",d);if(b)return document.querySelector(b)}},{key:"defaultText",value:function(d){return X("text",d)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(d){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return Q(d,b)}},{key:"cut",value:function(d){return w(d)}},{key:"isSupported",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],b=typeof d=="string"?[d]:d,N=!!document.queryCommandSupported;return b.forEach(function(ee){N=N&&!!document.queryCommandSupported(ee)}),N}}]),i}(g()),de=ne},828:function(n){var v=9;if(typeof Element<"u"&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}function h(g,_){for(;g&&g.nodeType!==v;){if(typeof g.matches=="function"&&g.matches(_))return g;g=g.parentNode}}n.exports=h},438:function(n,v,a){var h=a(828);function g(E,M,j,R,w){var B=P.apply(this,arguments);return E.addEventListener(j,B,w),{destroy:function(){E.removeEventListener(j,B,w)}}}function _(E,M,j,R,w){return typeof E.addEventListener=="function"?g.apply(null,arguments):typeof j=="function"?g.bind(null,document).apply(null,arguments):(typeof E=="string"&&(E=document.querySelectorAll(E)),Array.prototype.map.call(E,function(B){return g(B,M,j,R,w)}))}function P(E,M,j,R){return function(w){w.delegateTarget=h(w.target,M),w.delegateTarget&&R.call(E,w)}}n.exports=_},879:function(n,v){v.node=function(a){return a!==void 0&&a instanceof HTMLElement&&a.nodeType===1},v.nodeList=function(a){var h=Object.prototype.toString.call(a);return a!==void 0&&(h==="[object NodeList]"||h==="[object HTMLCollection]")&&"length"in a&&(a.length===0||v.node(a[0]))},v.string=function(a){return typeof a=="string"||a instanceof String},v.fn=function(a){var h=Object.prototype.toString.call(a);return h==="[object Function]"}},370:function(n,v,a){var h=a(879),g=a(438);function _(j,R,w){if(!j&&!R&&!w)throw new Error("Missing required arguments");if(!h.string(R))throw new TypeError("Second argument must be a String");if(!h.fn(w))throw new TypeError("Third argument must be a Function");if(h.node(j))return P(j,R,w);if(h.nodeList(j))return E(j,R,w);if(h.string(j))return M(j,R,w);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function P(j,R,w){return j.addEventListener(R,w),{destroy:function(){j.removeEventListener(R,w)}}}function E(j,R,w){return Array.prototype.forEach.call(j,function(B){B.addEventListener(R,w)}),{destroy:function(){Array.prototype.forEach.call(j,function(B){B.removeEventListener(R,w)})}}}function M(j,R,w){return g(document.body,j,R,w)}n.exports=_},817:function(n){function v(a){var h;if(a.nodeName==="SELECT")a.focus(),h=a.value;else if(a.nodeName==="INPUT"||a.nodeName==="TEXTAREA"){var g=a.hasAttribute("readonly");g||a.setAttribute("readonly",""),a.select(),a.setSelectionRange(0,a.value.length),g||a.removeAttribute("readonly"),h=a.value}else{a.hasAttribute("contenteditable")&&a.focus();var _=window.getSelection(),P=document.createRange();P.selectNodeContents(a),_.removeAllRanges(),_.addRange(P),h=_.toString()}return h}n.exports=v},279:function(n){function v(){}v.prototype={on:function(a,h,g){var _=this.e||(this.e={});return(_[a]||(_[a]=[])).push({fn:h,ctx:g}),this},once:function(a,h,g){var _=this;function P(){_.off(a,P),h.apply(g,arguments)}return P._=h,this.on(a,P,g)},emit:function(a){var h=[].slice.call(arguments,1),g=((this.e||(this.e={}))[a]||[]).slice(),_=0,P=g.length;for(_;_