import{p as Ke,c as Ze,e as De,d as oe,k as le,r as We,o as Ce,q as Ie,x as Oe,a as Xe,f as o,w as Le,y as Qe,n as D,_ as et,U as $,V as Y,W as ae,a8 as M,af as tt,E as C,a4 as A,a3 as Ee,Z as nt,$ as ie,u as l,Y as rt,a0 as f,F as de,a7 as be}from"./vue-18ee037d.js";import{d as ot}from"./global-d75169a8.js";import{u as he,aV as Se,i as K,d as F,b as _e,j as Te,a as at,P as te,t as Ne,a$ as it,bF as lt,q as st,R as ut,aj as ct,a3 as Z,J as W}from"./index-fb7a0cf7.js";import{d as ft}from"./dayjs-4778c158.js";import{_ as xe}from"./index.vue_vue_type_script_setup_true_lang-6f6a42cc.js";import{S as ke,H as dt}from"./state-afceff69.js";import{A as pt}from"./index-b8b170d9.js";import{g as vt,s as ht}from"./scrollTo-d2a6c94e.js";import{a as ne,D as S}from"./index-cae8898b.js";import{C as X}from"./Card-b9d373df.js";import{D as gt}from"./index-18c77c93.js";import"./mockjs-890b569b.js";import"./useFlexGapSupport-334cdc90.js";function pe(){}var Pe=Symbol("anchorContextKey"),mt=function(e){Ke(Pe,e)},yt=function(){return Ze(Pe,{registerLink:pe,unregisterLink:pe,scrollTo:pe,activeLink:De(function(){return""}),handleClick:pe})};const bt=mt;function _t(){return window}function we(s,e){if(!s.getClientRects().length)return 0;var r=s.getBoundingClientRect();return r.width||r.height?e===window?(e=s.ownerDocument.documentElement,r.top-e.clientTop):r.top-e.getBoundingClientRect().top:r.top}var Ae=/#([\S ]+)$/,xt=function(){return{prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,onChange:Function,onClick:Function}};const ee=oe({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:xt(),setup:function(e,r){var c=r.emit,y=r.attrs,i=r.slots,h=r.expose,a=he("anchor",e),d=a.prefixCls,p=a.getTargetContainer,t=a.direction,n=le(),_=le(),u=We({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),g=le(null),T=De(function(){var I=e.getContainer;return I||p.value||_t}),x=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,B=[],P=T.value();if(u.links.forEach(function(R){var N=Ae.exec(R.toString());if(N){var z=document.getElementById(N[1]);if(z){var U=we(z,P);UR.top?N:R});return G.link}return""},L=function(w){var O=e.getCurrentAnchor;g.value!==w&&(g.value=typeof O=="function"?O():w,c("change",w))},q=function(w){var O=e.offsetTop,B=e.targetOffset;L(w);var P=T.value(),G=vt(P,!0),R=Ae.exec(w);if(R){var N=document.getElementById(R[1]);if(N){var z=we(N,P),U=G+z;U-=B!==void 0?B:O||0,u.animating=!0,ht(U,{callback:function(){u.animating=!1},getContainer:T.value})}}};h({scrollTo:q});var V=function(){if(!u.animating){var w=e.offsetTop,O=e.bounds,B=e.targetOffset,P=x(B!==void 0?B:w||0,O);L(P)}},H=function(){var w=_.value.getElementsByClassName("".concat(d.value,"-link-title-active"))[0];w&&(n.value.style.top="".concat(w.offsetTop+w.clientHeight/2-4.5,"px"))};return bt({registerLink:function(w){u.links.includes(w)||u.links.push(w)},unregisterLink:function(w){var O=u.links.indexOf(w);O!==-1&&u.links.splice(O,1)},activeLink:g,scrollTo:q,handleClick:function(w,O){c("click",w,O)}}),Ce(function(){Ie(function(){var I=T.value();u.scrollContainer=I,u.scrollEvent=Se(u.scrollContainer,"scroll",V),V()})}),Oe(function(){u.scrollEvent&&u.scrollEvent.remove()}),Xe(function(){if(u.scrollEvent){var I=T.value();u.scrollContainer!==I&&(u.scrollContainer=I,u.scrollEvent.remove(),u.scrollEvent=Se(u.scrollContainer,"scroll",V),V())}H()}),function(){var I,w=e.offsetTop,O=e.affix,B=e.showInkInFixed,P=d.value,G=K("".concat(P,"-ink-ball"),{visible:g.value}),R=K(e.wrapperClass,"".concat(P,"-wrapper"),F({},"".concat(P,"-rtl"),t.value==="rtl")),N=K(P,F({},"".concat(P,"-fixed"),!O&&!B)),z=_e({maxHeight:w?"calc(100vh - ".concat(w,"px)"):"100vh"},e.wrapperStyle),U=o("div",{class:R,style:z,ref:_},[o("div",{class:N},[o("div",{class:"".concat(P,"-ink")},[o("span",{class:G,ref:n},null)]),(I=i.default)===null||I===void 0?void 0:I.call(i)])]);return O?o(pt,_e(_e({},y),{},{offsetTop:w,target:T.value}),{default:function(){return[U]}}):U}}});var Ct=function(){return{prefixCls:String,href:String,title:te.any,target:String}};const Q=oe({compatConfig:{MODE:3},name:"AAnchorLink",props:Te(Ct(),{href:"#"}),slots:["title"],setup:function(e,r){var c=r.slots,y=null,i=yt(),h=i.handleClick,a=i.scrollTo,d=i.unregisterLink,p=i.registerLink,t=i.activeLink,n=he("anchor",e),_=n.prefixCls,u=function(T){var x=e.href;h(T,{title:y,href:x}),a(x)};return Le(function(){return e.href},function(g,T){Ie(function(){d(T),p(g)})}),Ce(function(){p(e.href)}),Oe(function(){d(e.href)}),function(){var g,T=e.href,x=e.target,L=_.value,q=at(c,e,"title");y=q;var V=t.value===T,H=K("".concat(L,"-link"),F({},"".concat(L,"-link-active"),V)),I=K("".concat(L,"-link-title"),F({},"".concat(L,"-link-title-active"),V));return o("div",{class:H},[o("a",{class:I,href:T,title:typeof q=="string"?q:"",target:x,onClick:u},[q]),(g=c.default)===null||g===void 0?void 0:g.call(c)])}}});ee.Link=Q;ee.install=function(s){return s.component(ee.name,ee),s.component(ee.Link.name,ee.Link),s};var Tt=function(){return{prefixCls:String,color:String,dot:te.any,pending:{type:Boolean,default:void 0},position:te.oneOf(Ne("left","right","")).def(""),label:te.any}};const ue=oe({compatConfig:{MODE:3},name:"ATimelineItem",props:Te(Tt(),{color:"blue",pending:!1}),slots:["dot","label"],setup:function(e,r){var c=r.slots,y=he("timeline",e),i=y.prefixCls;return function(){var h,a,d,p,t,n=e.color,_=n===void 0?"":n,u=e.pending,g=e.label,T=g===void 0?(h=c.label)===null||h===void 0?void 0:h.call(c):g,x=e.dot,L=x===void 0?(a=c.dot)===null||a===void 0?void 0:a.call(c):x,q=K((d={},F(d,"".concat(i.value,"-item"),!0),F(d,"".concat(i.value,"-item-pending"),u),d)),V=K((p={},F(p,"".concat(i.value,"-item-head"),!0),F(p,"".concat(i.value,"-item-head-custom"),L),F(p,"".concat(i.value,"-item-head-").concat(_),!0),p)),H=/blue|red|green|gray/.test(_||"")?void 0:_;return o("li",{class:q},[T&&o("div",{class:"".concat(i.value,"-item-label")},[T]),o("div",{class:"".concat(i.value,"-item-tail")},null),o("div",{class:V,style:{borderColor:H,color:H}},[L]),o("div",{class:"".concat(i.value,"-item-content")},[(t=c.default)===null||t===void 0?void 0:t.call(c)])])}}});var jt=function(){return{prefixCls:String,pending:te.any,pendingDot:te.any,reverse:{type:Boolean,default:void 0},mode:te.oneOf(Ne("left","alternate","right",""))}};const se=oe({compatConfig:{MODE:3},name:"ATimeline",props:Te(jt(),{reverse:!1,mode:""}),slots:["pending","pendingDot"],setup:function(e,r){var c=r.slots,y=he("timeline",e),i=y.prefixCls,h=y.direction,a=function(p,t){var n=p.props||{};return e.mode==="alternate"?n.position==="right"?"".concat(i.value,"-item-right"):n.position==="left"||t%2===0?"".concat(i.value,"-item-left"):"".concat(i.value,"-item-right"):e.mode==="left"?"".concat(i.value,"-item-left"):e.mode==="right"||n.position==="right"?"".concat(i.value,"-item-right"):""};return function(){var d,p,t,n,_=e.pending,u=_===void 0?(d=c.pending)===null||d===void 0?void 0:d.call(c):_,g=e.pendingDot,T=g===void 0?(p=c.pendingDot)===null||p===void 0?void 0:p.call(c):g,x=e.reverse,L=e.mode,q=typeof u=="boolean"?null:u,V=it((t=c.default)===null||t===void 0?void 0:t.call(c)),H=u?o(ue,{pending:!!u,dot:T||o(lt,null,null)},{default:function(){return[q]}}):null;H&&V.push(H);var I=x?V.reverse():V,w=I.length,O="".concat(i.value,"-item-last"),B=I.map(function(R,N){var z=N===w-2?O:"",U=N===w-1?O:"";return Qe(R,{class:K([!x&&u?z:U,a(R,N)])})}),P=I.some(function(R){var N,z;return!!((N=R.props)!==null&&N!==void 0&&N.label||(z=R.children)!==null&&z!==void 0&&z.label)}),G=K(i.value,(n={},F(n,"".concat(i.value,"-pending"),!!u),F(n,"".concat(i.value,"-reverse"),!!x),F(n,"".concat(i.value,"-").concat(L),!!L&&!P),F(n,"".concat(i.value,"-label"),P),F(n,"".concat(i.value,"-rtl"),h.value==="rtl"),n));return o("ul",{class:G},[B])}}});se.Item=ue;se.install=function(s){return s.component(se.name,se),s.component(ue.name,ue),s};function ve(s){"@babel/helpers - typeof";return ve=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},ve(s)}var Et=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,Re={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=Et.test(e),c;return this.expand?(c={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},r?(e='').concat(e,""),c.innerHTML='"'.concat(e.toString(),'"')):c.innerText='"'.concat(e.toString(),'"')):c={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},D("span",{},[this.canExtend&&D("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),D("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),D("span",c)])}};Re.__file="src/Components/types/json-string.vue";var Ve={name:"JsonUndefined",functional:!0,props:{jsonValue:{type:Object,default:null}},render:function(){return D("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:this.jsonValue===null?"null":"undefined"})}};Ve.__file="src/Components/types/json-undefined.vue";var Me={name:"JsonNumber",functional:!0,props:{jsonValue:{type:Number,required:!0}},render:function(){var e=Number.isInteger(this.jsonValue);return D("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":e,"jv-number-float":!e},innerText:this.jsonValue.toString()})}};Me.__file="src/Components/types/json-number.vue";var Be={name:"JsonBoolean",functional:!0,props:{jsonValue:Boolean},render:function(){return D("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:this.jsonValue.toString()})}};Be.__file="src/Components/types/json-boolean.vue";var $e={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(c){r[c]=e.value[c]}),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(D("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(D("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"})),this.expand){for(var r in this.ordered)if(this.ordered.hasOwnProperty(r)){var c=this.ordered[r];e.push(D(ge,{key:r,style:{display:this.expand?void 0:"none"},sort:this.sort,keyName:r,depth:this.depth+1,value:c,previewMode:this.previewMode}))}}return!this.expand&&Object.keys(this.value).length&&e.push(D("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(D("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),D("span",e)}};$e.__file="src/Components/types/json-object.vue";var He={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,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;c===0&&(this.value=[]),setTimeout(function(){e.length>c&&(r.value.push(e[c]),r.setValue(e,c+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(D("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),r.push(D("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["})),this.expand&&this.value.forEach(function(c,y){r.push(D(ge,{key:y,style:{display:e.expand?void 0:"none"},sort:e.sort,depth:e.depth+1,value:c,previewMode:e.previewMode}))}),!this.expand&&this.value.length&&r.push(D("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(D("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),D("span",r)}};He.__file="src/Components/types/json-array.vue";var ze={name:"JsonFunction",functional:!0,props:{jsonValue:{type:Function,required:!0}},render:function(){return D("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:this.jsonValue.toString()},innerHTML:"<function>"})}};ze.__file="src/Components/types/json-function.vue";var Fe={name:"JsonDate",inject:["timeformat"],functional:!0,props:{jsonValue:{type:Date,required:!0}},render:function(){var e=this.jsonValue,r=this.timeformat;return D("span",{class:{"jv-item":!0,"jv-string":!0},innerText:'"'.concat(r(e),'"')})}};Fe.__file="src/Components/types/json-date.vue";var St=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,qe={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=St.test(e),c;return this.expand?(c={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},r?(e='').concat(e,""),c.innerHTML="".concat(e.toString())):c.innerText="".concat(e.toString())):c={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},D("span",{},[this.canExtend&&D("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),D("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),D("span",c)])}};qe.__file="src/Components/types/json-regexp.vue";var ge={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=[],c;this.value===null||this.value===void 0?c=Ve:Array.isArray(this.value)?c=He:Object.prototype.toString.call(this.value)==="[object Date]"?c=Fe:this.value.constructor===RegExp?c=qe:ve(this.value)==="object"?c=$e:typeof this.value=="number"?c=Me:typeof this.value=="string"?c=Re:typeof this.value=="boolean"?c=Be:typeof this.value=="function"&&(c=ze);var y=this.keyName&&this.value&&(Array.isArray(this.value)||ve(this.value)==="object"&&Object.prototype.toString.call(this.value)!=="[object Date]");return!this.previewMode&&y&&r.push(D("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),this.keyName&&r.push(D("span",{class:{"jv-key":!0},onClick:function(){e.keyClick(e.keyName)},innerText:"".concat(this.keyName,":")})),r.push(D(c,{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(h){e.expand=h}})),D("div",{class:{"jv-node":!0,"jv-key-node":!!this.keyName&&!y,toggle:!this.previewMode&&y}},r)}};ge.__file="src/Components/json-box.vue";var kt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wt(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Ue={exports:{}};(function(s,e){(function(c,y){s.exports=y()})(kt,function(){return function(){var r={686:function(i,h,a){a.d(h,{default:function(){return Ge}});var d=a(279),p=a.n(d),t=a(370),n=a.n(t),_=a(817),u=a.n(_);function g(j){try{return document.execCommand(j)}catch{return!1}}var T=function(m){var v=u()(m);return g("cut"),v},x=T;function L(j){var m=document.documentElement.getAttribute("dir")==="rtl",v=document.createElement("textarea");v.style.fontSize="12pt",v.style.border="0",v.style.padding="0",v.style.margin="0",v.style.position="absolute",v.style[m?"right":"left"]="-9999px";var E=window.pageYOffset||document.documentElement.scrollTop;return v.style.top="".concat(E,"px"),v.setAttribute("readonly",""),v.value=j,v}var q=function(m){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},E="";if(typeof m=="string"){var b=L(m);v.container.appendChild(b),E=u()(b),g("copy"),b.remove()}else E=u()(m),g("copy");return E},V=q;function H(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?H=function(v){return typeof v}:H=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},H(j)}var I=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v=m.action,E=v===void 0?"copy":v,b=m.container,k=m.target,J=m.text;if(E!=="copy"&&E!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(k!==void 0)if(k&&H(k)==="object"&&k.nodeType===1){if(E==="copy"&&k.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(E==="cut"&&(k.hasAttribute("readonly")||k.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(J)return V(J,{container:b});if(k)return E==="cut"?x(k):V(k,{container:b})},w=I;function O(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(v){return typeof v}:O=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},O(j)}function B(j,m){if(!(j instanceof m))throw new TypeError("Cannot call a class as a function")}function P(j,m){for(var v=0;v"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 ce(j){return ce=Object.setPrototypeOf?Object.getPrototypeOf:function(v){return v.__proto__||Object.getPrototypeOf(v)},ce(j)}function ye(j,m){var v="data-clipboard-".concat(j);if(m.hasAttribute(v))return m.getAttribute(v)}var Ye=function(j){R(v,j);var m=z(v);function v(E,b){var k;return B(this,v),k=m.call(this),k.resolveOptions(b),k.listenClick(E),k}return G(v,[{key:"resolveOptions",value:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof b.action=="function"?b.action:this.defaultAction,this.target=typeof b.target=="function"?b.target:this.defaultTarget,this.text=typeof b.text=="function"?b.text:this.defaultText,this.container=O(b.container)==="object"?b.container:document.body}},{key:"listenClick",value:function(b){var k=this;this.listener=n()(b,"click",function(J){return k.onClick(J)})}},{key:"onClick",value:function(b){var k=b.delegateTarget||b.currentTarget,J=this.action(k)||"copy",fe=w({action:J,container:this.container,target:this.target(k),text:this.text(k)});this.emit(fe?"success":"error",{action:J,text:fe,trigger:k,clearSelection:function(){k&&k.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(b){return ye("action",b)}},{key:"defaultTarget",value:function(b){var k=ye("target",b);if(k)return document.querySelector(k)}},{key:"defaultText",value:function(b){return ye("text",b)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(b){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return V(b,k)}},{key:"cut",value:function(b){return x(b)}},{key:"isSupported",value:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],k=typeof b=="string"?[b]:b,J=!!document.queryCommandSupported;return k.forEach(function(fe){J=J&&!!document.queryCommandSupported(fe)}),J}}]),v}(p()),Ge=Ye},828:function(i){var h=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 d(p,t){for(;p&&p.nodeType!==h;){if(typeof p.matches=="function"&&p.matches(t))return p;p=p.parentNode}}i.exports=d},438:function(i,h,a){var d=a(828);function p(_,u,g,T,x){var L=n.apply(this,arguments);return _.addEventListener(g,L,x),{destroy:function(){_.removeEventListener(g,L,x)}}}function t(_,u,g,T,x){return typeof _.addEventListener=="function"?p.apply(null,arguments):typeof g=="function"?p.bind(null,document).apply(null,arguments):(typeof _=="string"&&(_=document.querySelectorAll(_)),Array.prototype.map.call(_,function(L){return p(L,u,g,T,x)}))}function n(_,u,g,T){return function(x){x.delegateTarget=d(x.target,u),x.delegateTarget&&T.call(_,x)}}i.exports=t},879:function(i,h){h.node=function(a){return a!==void 0&&a instanceof HTMLElement&&a.nodeType===1},h.nodeList=function(a){var d=Object.prototype.toString.call(a);return a!==void 0&&(d==="[object NodeList]"||d==="[object HTMLCollection]")&&"length"in a&&(a.length===0||h.node(a[0]))},h.string=function(a){return typeof a=="string"||a instanceof String},h.fn=function(a){var d=Object.prototype.toString.call(a);return d==="[object Function]"}},370:function(i,h,a){var d=a(879),p=a(438);function t(g,T,x){if(!g&&!T&&!x)throw new Error("Missing required arguments");if(!d.string(T))throw new TypeError("Second argument must be a String");if(!d.fn(x))throw new TypeError("Third argument must be a Function");if(d.node(g))return n(g,T,x);if(d.nodeList(g))return _(g,T,x);if(d.string(g))return u(g,T,x);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function n(g,T,x){return g.addEventListener(T,x),{destroy:function(){g.removeEventListener(T,x)}}}function _(g,T,x){return Array.prototype.forEach.call(g,function(L){L.addEventListener(T,x)}),{destroy:function(){Array.prototype.forEach.call(g,function(L){L.removeEventListener(T,x)})}}}function u(g,T,x){return p(document.body,g,T,x)}i.exports=t},817:function(i){function h(a){var d;if(a.nodeName==="SELECT")a.focus(),d=a.value;else if(a.nodeName==="INPUT"||a.nodeName==="TEXTAREA"){var p=a.hasAttribute("readonly");p||a.setAttribute("readonly",""),a.select(),a.setSelectionRange(0,a.value.length),p||a.removeAttribute("readonly"),d=a.value}else{a.hasAttribute("contenteditable")&&a.focus();var t=window.getSelection(),n=document.createRange();n.selectNodeContents(a),t.removeAllRanges(),t.addRange(n),d=t.toString()}return d}i.exports=h},279:function(i){function h(){}h.prototype={on:function(a,d,p){var t=this.e||(this.e={});return(t[a]||(t[a]=[])).push({fn:d,ctx:p}),this},once:function(a,d,p){var t=this;function n(){t.off(a,n),d.apply(p,arguments)}return n._=d,this.on(a,n,p)},emit:function(a){var d=[].slice.call(arguments,1),p=((this.e||(this.e={}))[a]||[]).slice(),t=0,n=p.length;for(t;t=250?e.expandableCode=!0:e.expandableCode=!1)})},keyClick:function(e){this.$emit("onKeyClick",e)},onCopied:function(e){var r=this;this.copied||(this.copied=!0,setTimeout(function(){r.copied=!1},this.copyText.timeout),this.$emit("copied",e))},toggleExpandCode:function(){this.expandCode=!this.expandCode}}};function It(s,e,r,c,y,i){var h=et("json-box");return $(),Y("div",{class:ae(i.jvClass)},[r.copyable?($(),Y("div",{key:0,class:ae("jv-tooltip ".concat(i.copyText.align||"right"))},[M("span",{ref:"clip",class:ae(["jv-button",{copied:y.copied}])},[tt(s.$slots,"copy",{copied:y.copied},function(){return[C(A(y.copied?i.copyText.copiedText:i.copyText.copyText),1)]})],2)],2)):Ee("v-if",!0),M("div",{class:ae(["jv-code",{open:y.expandCode,boxed:r.boxed}])},[o(h,{ref:"jsonBox",value:r.value,sort:r.sort,"preview-mode":r.previewMode},null,8,["value","sort","preview-mode"])],2),y.expandableCode&&r.boxed?($(),Y("div",{key:1,class:"jv-more",onClick:e[0]||(e[0]=function(){return i.toggleExpandCode&&i.toggleExpandCode.apply(i,arguments)})},[M("span",{class:ae(["jv-toggle",{open:!!y.expandCode}])},null,2)])):Ee("v-if",!0)],2)}je.render=It;je.__file="src/Components/json-viewer.vue";const re=oe({__name:"index",props:{jsonData:{type:Object,default:()=>({})}},setup(s){const e=st(),{getDarkMode:r}=nt(e);return(c,y)=>($(),ie(l(je),{boxed:"",sort:"",value:s.jsonData,copyable:{copyText:"复制",copiedText:"已复制"},class:"w-full",expanded:!0,theme:l(r)},null,8,["value","theme"]))}});const Ot={class:"flex"},Lt={class:"flex-1"},Nt={key:0},Pt={key:1},Rt=M("div",{id:"轨道集合",class:"font-size-16px font-bold"},"轨道集合",-1),Vt={class:"w-140px ml-8px",style:{height:"100%"}},Xt=oe({__name:"detail",setup(s){const e=rt(),r=le({});Le(()=>e.params.path,d=>{d&&c()},{immediate:!0});function c(){if(e.params.path){const d=decodeURIComponent(e.params.path);ot({streamPath:d}).then(p=>{r.value=p||{}})}}const{httpRefreshTime:y}=ut({VITE_PORT:"3000",VITE_GLOB_APP_TITLE:"SagooMedia",VITE_GLOB_APP_SHORT_NAME:"SagooMedia",VITE_M7S_SERVER:"/media",VITE_USE_MOCK:"true",VITE_PUBLIC_PATH:"/plugin/media",VITE_DROP_CONSOLE:"true",VITE_BUILD_COMPRESS:"none",VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE:"false",VITE_GLOB_HTTP_REFRESH_TIME:"5000",VITE_USE_IMAGEMIN:"true",VITE_LEGACY:"false",BASE_URL:"/plugin/media",MODE:"production",DEV:!1,PROD:!0,SSR:!1});ct(()=>{c()},y);const i=(d,p="YYYY-MM-DD HH:ss:mm")=>ft(d).format(p),h=le(void 0);Ce(()=>{h.value=window.innerHeight/2});const a=(d,p)=>{d.preventDefault();var t=document.getElementById(p.href);t==null||t.scrollIntoView({block:"start",behavior:"smooth"})};return(d,p)=>($(),Y("div",Ot,[M("div",Lt,[o(l(X),{bordered:!1},{default:f(()=>[o(l(ne),{title:"基础信息",id:"基础信息",column:3},{default:f(()=>[o(l(S),{label:"流标识"},{default:f(()=>{var t;return[C(A((t=r.value)==null?void 0:t.Path),1)]}),_:1}),o(l(S),null,{label:f(()=>[M("span",null,[C(" 应用名 "),o(l(Z),{title:"为流路径的第一级"},{default:f(()=>[o(l(W),{icon:"ant-design:question-circle-filled",class:"v-text-bottom cursor-pointer"})]),_:1})])]),default:f(()=>{var t;return[C(" "+A((t=r.value)==null?void 0:t.AppName),1)]}),_:1}),o(l(S),null,{label:f(()=>[M("span",null,[C(" 流名称 "),o(l(Z),{title:"为流路径的最后一级"},{default:f(()=>[o(l(W),{icon:"ant-design:question-circle-filled",class:"v-text-bottom cursor-pointer"})]),_:1})])]),default:f(()=>{var t;return[C(" "+A((t=r.value)==null?void 0:t.StreamName),1)]}),_:1}),o(l(S),{label:"流状态"},{default:f(()=>{var t;return[o(l(ke),{state:(t=r.value)==null?void 0:t.State},null,8,["state"])]}),_:1}),o(l(S),{label:"创建时间"},{default:f(()=>{var t,n;return[C(" ["),o(l(xe),{value:i((t=r.value)==null?void 0:t.StartTime),class:"text-primary"},null,8,["value"]),C("] "+A(i((n=r.value)==null?void 0:n.StartTime)),1)]}),_:1}),o(l(S),null,{label:f(()=>[M("span",null,[C(" 发布超时时间 "),o(l(Z),{title:"如果长时间收不到发布者的数据则判定为超时,关闭流"},{default:f(()=>[o(l(W),{icon:"ant-design:question-circle-filled",class:"v-text-bottom cursor-pointer"})]),_:1})])]),default:f(()=>{var t;return[C(" "+A((t=r.value)==null?void 0:t.PublishTimeout),1)]}),_:1}),o(l(S),null,{label:f(()=>[M("span",null,[C(" 延迟关闭时间 "),o(l(Z),{title:"非 0 情况下代表当最后一个订阅者离开后多久关闭流"},{default:f(()=>[o(l(W),{icon:"ant-design:question-circle-filled",class:"v-text-bottom cursor-pointer"})]),_:1})])]),default:f(()=>{var t;return[C(" "+A((t=r.value)==null?void 0:t.DelayCloseTimeout),1)]}),_:1}),o(l(S),null,{label:f(()=>[M("span",null,[C(" 空闲超时 "),o(l(Z),{title:"当发布者发布后超过一定时间都没有订阅的话判定超时,关闭流"},{default:f(()=>[o(l(W),{icon:"ant-design:question-circle-filled",class:"v-text-bottom cursor-pointer"})]),_:1})])]),default:f(()=>{var t;return[C(" "+A((t=r.value)==null?void 0:t.IdleTimeout),1)]}),_:1}),o(l(S),null,{label:f(()=>[M("span",null,[C(" 暂停超时 "),o(l(Z),{title:"当流处于暂停状态时,超过一定时间判定超时"},{default:f(()=>[o(l(W),{icon:"ant-design:question-circle-filled",class:"v-text-bottom cursor-pointer"})]),_:1})])]),default:f(()=>{var t;return[C(" "+A((t=r.value)==null?void 0:t.PauseTimeout),1)]}),_:1}),o(l(S),null,{label:f(()=>[M("span",null,[C(" 永不超时 "),o(l(Z),{title:"不判断超时,此时流一直存在"},{default:f(()=>[o(l(W),{icon:"ant-design:question-circle-filled",class:"v-text-bottom cursor-pointer"})]),_:1})])]),default:f(()=>{var t;return[C(" "+A((t=r.value)==null?void 0:t.NeverTimeout),1)]}),_:1})]),_:1})]),_:1}),o(l(X),{bordered:!1,class:"mt-10px"},{default:f(()=>[o(l(ne),{title:"发布者信息",id:"发布者信息",column:3},{default:f(()=>[o(l(S),{label:"ID"},{default:f(()=>{var t,n;return[C(A(((n=(t=r.value)==null?void 0:t.Publisher)==null?void 0:n.ID)||"--"),1)]}),_:1}),o(l(S),{label:"StreamID"},{default:f(()=>{var t,n;return[C(A(((n=(t=r.value)==null?void 0:t.Publisher)==null?void 0:n.StreamID)||"--"),1)]}),_:1}),o(l(S),{label:"类型"},{default:f(()=>{var t,n;return[C(A((n=(t=r.value)==null?void 0:t.Publisher)==null?void 0:n.Type),1)]}),_:1}),o(l(S),{label:"开始时间"},{default:f(()=>{var t,n,_,u;return[C(" ["),o(l(xe),{value:i((n=(t=r.value)==null?void 0:t.Publisher)==null?void 0:n.StartTime),class:"text-primary"},null,8,["value"]),C("] "+A(i((u=(_=r.value)==null?void 0:_.Publisher)==null?void 0:u.StartTime)),1)]}),_:1}),o(l(S),{label:"远端地址",span:2},{default:f(()=>{var t,n;return[C(A(((n=(t=r.value)==null?void 0:t.Publisher)==null?void 0:n.RemoteAddr)||"--"),1)]}),_:1}),o(l(S),{label:"参数",span:3},{default:f(()=>{var t,n;return[o(re,{jsonData:(n=(t=r.value)==null?void 0:t.Publisher)==null?void 0:n.Args},null,8,["jsonData"])]}),_:1}),o(l(S),{label:"配置",span:3},{default:f(()=>{var t,n;return[o(re,{jsonData:(n=(t=r.value)==null?void 0:t.Publisher)==null?void 0:n.Config},null,8,["jsonData"])]}),_:1})]),_:1})]),_:1}),o(l(X),{bordered:!1,class:"mt-10px"},{default:f(()=>[o(l(ne),{title:"订阅者信息",id:"订阅者信息"},{default:f(()=>{var t,n,_;return[(n=(t=r.value)==null?void 0:t.Subscribers)!=null&&n.length?($(),Y("div",Nt,[($(!0),Y(de,null,be((_=r.value)==null?void 0:_.Subscribers,(u,g)=>($(),Y(de,{key:g},[o(l(S),{label:"ID"},{default:f(()=>[C(A(u==null?void 0:u.ID),1)]),_:2},1024),o(l(S),{label:"类型"},{default:f(()=>[C(A(u==null?void 0:u.Type),1)]),_:2},1024),o(l(S),{label:"开始时间"},{default:f(()=>[C(" ["),o(l(xe),{value:i(u==null?void 0:u.StartTime),class:"text-primary"},null,8,["value"]),C("] "+A(i(u==null?void 0:u.StartTime)),1)]),_:2},1024),o(l(S),{label:"远端地址",span:3},{default:f(()=>[C(A((u==null?void 0:u.RemoteAddr)||"--"),1)]),_:2},1024),o(l(S),{label:"参数",span:3},{default:f(()=>[o(re,{jsonData:u==null?void 0:u.Args},null,8,["jsonData"])]),_:2},1024),o(l(S),{label:"配置",span:3},{default:f(()=>[o(re,{jsonData:u==null?void 0:u.Config},null,8,["jsonData"])]),_:2},1024)],64))),128))])):($(),ie(l(S),{key:1},{default:f(()=>[C(" 暂无信息 ")]),_:1}))]}),_:1})]),_:1}),o(l(X),{bordered:!1,class:"mt-10px"},{default:f(()=>[o(l(ne),{title:"状态历史信息",id:"状态历史信息"},{default:f(()=>[o(l(S),null,{default:f(()=>{var t,n;return[(n=(t=r.value)==null?void 0:t.SEHistory)!=null&&n.length?($(),ie(l(se),{key:0},{default:f(()=>{var _;return[($(!0),Y(de,null,be((_=r.value)==null?void 0:_.SEHistory,(u,g)=>($(),ie(l(ue),{key:g},{default:f(()=>[M("p",null," 时间: "+A(i(u.Time,"YYYY-MM-DD HH:ss:mm:SSS")),1),M("p",null,"动作: "+A(l(dt)[u==null?void 0:u.Action]),1),M("p",null,[C("状态: "),o(l(ke),{state:u==null?void 0:u.From},null,8,["state"])])]),_:2},1024))),128))]}),_:1})):($(),Y("span",Pt,"暂无信息"))]}),_:1})]),_:1})]),_:1}),o(l(X),{bordered:!1,class:"mt-10px"},{default:f(()=>{var t;return[Rt,M("div",null,[($(!0),Y(de,null,be((t=r.value)==null?void 0:t.Tracks,n=>($(),ie(l(ne),{key:n==null?void 0:n.Name,column:3},{default:f(()=>[o(l(S),{span:3},{default:f(()=>[o(l(gt))]),_:1}),o(l(S),{label:"轨道名称"},{default:f(()=>[C(A(n==null?void 0:n.Name),1)]),_:2},1024),o(l(S),{label:"码率"},{default:f(()=>[C(A(n==null?void 0:n.BPS),1)]),_:2},1024),o(l(S),{label:"帧率"},{default:f(()=>[C(A(n==null?void 0:n.FPS),1)]),_:2},1024),o(l(S),{label:"丢包数"},{default:f(()=>[C(A(n==null?void 0:n.Drops),1)]),_:2},1024),o(l(S),{label:"裸数据大小"},{default:f(()=>[C(A(n==null?void 0:n.RawSize),1)]),_:2},1024),o(l(S),{label:"裸数据"},{default:f(()=>[C(A(n==null?void 0:n.RawPart),1)]),_:2},1024),o(l(S),{label:"采样率"},{default:f(()=>[C(A(n==null?void 0:n.SampleRate),1)]),_:2},1024),o(l(S),{label:"序列头序号"},{default:f(()=>[C(A(n==null?void 0:n.SequenceHeadSeq),1)]),_:2},1024),o(l(S),{label:"声道数"},{default:f(()=>[C(A(n==null?void 0:n.Channels),1)]),_:2},1024),o(l(S),{label:"轨道原数据",span:3},{default:f(()=>[o(re,{jsonData:n},null,8,["jsonData"])]),_:2},1024)]),_:2},1024))),128))])]}),_:1}),o(l(X),{bordered:!1,class:"mt-10px"},{default:f(()=>[o(l(ne),{layout:"vertical",column:1,title:"原始数据",id:"原始数据"},{default:f(()=>[o(l(S),null,{default:f(()=>[o(re,{jsonData:r.value},null,8,["jsonData"])]),_:1})]),_:1})]),_:1})]),M("div",Vt,[o(l(X),{bordered:!1,class:"h-full fixed w-full",bodyStyle:{padding:"24px 0 0 2px",height:"100%"}},{default:f(()=>[o(l(ee),{onClick:a,"target-offset":h.value},{default:f(()=>[o(l(Q),{href:"基础信息",title:"基础信息"}),o(l(Q),{href:"发布者信息",title:"发布者信息"}),o(l(Q),{href:"订阅者信息",title:"订阅者信息"}),o(l(Q),{href:"状态历史信息",title:"状态历史信息"}),o(l(Q),{href:"轨道集合",title:"轨道集合"}),o(l(Q),{href:"原始数据",title:"原始数据"})]),_:1},8,["target-offset"])]),_:1})])]))}});export{Xt as default};