diff --git a/addons/dashboard/dist/assets/BaseBreadcrumb.vue_vue_type_style_index_0_lang-2b6e2e87.js b/addons/dashboard/dist/assets/BaseBreadcrumb.vue_vue_type_style_index_0_lang-79f7dd1a.js similarity index 93% rename from addons/dashboard/dist/assets/BaseBreadcrumb.vue_vue_type_style_index_0_lang-2b6e2e87.js rename to addons/dashboard/dist/assets/BaseBreadcrumb.vue_vue_type_style_index_0_lang-79f7dd1a.js index 4f8f096..cc41ba1 100644 --- a/addons/dashboard/dist/assets/BaseBreadcrumb.vue_vue_type_style_index_0_lang-2b6e2e87.js +++ b/addons/dashboard/dist/assets/BaseBreadcrumb.vue_vue_type_style_index_0_lang-79f7dd1a.js @@ -1 +1 @@ -import{x as i,o as l,c as _,w as s,a as e,f as a,J as m,V as r,b as t,t as u,ab as p,B as n,ac as o,j as f}from"./index-f71951bf.js";const b={class:"text-h3"},h={class:"d-flex align-center"},g={class:"d-flex align-center"},V=i({__name:"BaseBreadcrumb",props:{title:String,breadcrumbs:Array,icon:String},setup(d){const c=d;return(x,B)=>(l(),_(r,{class:"page-breadcrumb mb-1 mt-1"},{default:s(()=>[e(a,{cols:"12",md:"12"},{default:s(()=>[e(m,{variant:"outlined",elevation:"0",class:"px-4 py-3 withbg"},{default:s(()=>[e(r,{"no-gutters":"",class:"align-center"},{default:s(()=>[e(a,{md:"5"},{default:s(()=>[t("h3",b,u(c.title),1)]),_:1}),e(a,{md:"7",sm:"12",cols:"12"},{default:s(()=>[e(p,{items:c.breadcrumbs,class:"text-h5 justify-md-end pa-1"},{divider:s(()=>[t("div",h,[e(n(o),{size:"17"})])]),prepend:s(()=>[e(f,{size:"small",icon:"mdi-home",class:"text-secondary mr-2"}),t("div",g,[e(n(o),{size:"17"})])]),_:1},8,["items"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}});export{V as _}; +import{x as i,o as l,c as _,w as s,a as e,f as a,J as m,V as r,b as t,t as u,ab as p,B as n,ac as o,j as f}from"./index-70ea897e.js";const b={class:"text-h3"},h={class:"d-flex align-center"},g={class:"d-flex align-center"},V=i({__name:"BaseBreadcrumb",props:{title:String,breadcrumbs:Array,icon:String},setup(d){const c=d;return(x,B)=>(l(),_(r,{class:"page-breadcrumb mb-1 mt-1"},{default:s(()=>[e(a,{cols:"12",md:"12"},{default:s(()=>[e(m,{variant:"outlined",elevation:"0",class:"px-4 py-3 withbg"},{default:s(()=>[e(r,{"no-gutters":"",class:"align-center"},{default:s(()=>[e(a,{md:"5"},{default:s(()=>[t("h3",b,u(c.title),1)]),_:1}),e(a,{md:"7",sm:"12",cols:"12"},{default:s(()=>[e(p,{items:c.breadcrumbs,class:"text-h5 justify-md-end pa-1"},{divider:s(()=>[t("div",h,[e(n(o),{size:"17"})])]),prepend:s(()=>[e(f,{size:"small",icon:"mdi-home",class:"text-secondary mr-2"}),t("div",g,[e(n(o),{size:"17"})])]),_:1},8,["items"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}});export{V as _}; diff --git a/addons/dashboard/dist/assets/BlankLayout-f77415c8.js b/addons/dashboard/dist/assets/BlankLayout-4f378b43.js similarity index 70% rename from addons/dashboard/dist/assets/BlankLayout-f77415c8.js rename to addons/dashboard/dist/assets/BlankLayout-4f378b43.js index 806a18c..ce89118 100644 --- a/addons/dashboard/dist/assets/BlankLayout-f77415c8.js +++ b/addons/dashboard/dist/assets/BlankLayout-4f378b43.js @@ -1 +1 @@ -import{x as e,o as a,c as t,w as o,a as s,B as n,X as r,T as c}from"./index-f71951bf.js";const f=e({__name:"BlankLayout",setup(p){return(u,_)=>(a(),t(c,null,{default:o(()=>[s(n(r))]),_:1}))}});export{f as default}; +import{x as e,o as a,c as t,w as o,a as s,B as n,X as r,T as c}from"./index-70ea897e.js";const f=e({__name:"BlankLayout",setup(p){return(u,_)=>(a(),t(c,null,{default:o(()=>[s(n(r))]),_:1}))}});export{f as default}; diff --git a/addons/dashboard/dist/assets/ColorPage-a6d7e2e7.js b/addons/dashboard/dist/assets/ColorPage-8c6eccaf.js similarity index 83% rename from addons/dashboard/dist/assets/ColorPage-a6d7e2e7.js rename to addons/dashboard/dist/assets/ColorPage-8c6eccaf.js index c4f8961..997aa4c 100644 --- a/addons/dashboard/dist/assets/ColorPage-a6d7e2e7.js +++ b/addons/dashboard/dist/assets/ColorPage-8c6eccaf.js @@ -1 +1 @@ -import{_ as m}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-2b6e2e87.js";import{_}from"./UiParentCard.vue_vue_type_script_setup_true_lang-820f34f1.js";import{x as p,D as a,o as r,s,a as e,w as t,f as o,V as i,F as n,u as g,c as h,_ as b,e as x,t as y}from"./index-f71951bf.js";const P=p({__name:"ColorPage",setup(C){const c=a({title:"Colors Page"}),d=a([{title:"Utilities",disabled:!1,href:"#"},{title:"Colors",disabled:!0,href:"#"}]),u=a(["primary","lightprimary","secondary","lightsecondary","info","success","accent","warning","error","darkText","lightText","borderLight","inputBorder","containerBg"]);return(V,k)=>(r(),s(n,null,[e(m,{title:c.value.title,breadcrumbs:d.value},null,8,["title","breadcrumbs"]),e(i,null,{default:t(()=>[e(o,{cols:"12",md:"12"},{default:t(()=>[e(_,{title:"Color Palette"},{default:t(()=>[e(i,null,{default:t(()=>[(r(!0),s(n,null,g(u.value,(l,f)=>(r(),h(o,{md:"3",cols:"12",key:f},{default:t(()=>[e(b,{rounded:"md",class:"align-center justify-center d-flex",height:"100",width:"100%",color:l},{default:t(()=>[x("class: "+y(l),1)]),_:2},1032,["color"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})],64))}});export{P as default}; +import{_ as m}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-79f7dd1a.js";import{_}from"./UiParentCard.vue_vue_type_script_setup_true_lang-13601505.js";import{x as p,D as a,o as r,s,a as e,w as t,f as o,V as i,F as n,u as g,c as h,_ as b,e as x,t as y}from"./index-70ea897e.js";const P=p({__name:"ColorPage",setup(C){const c=a({title:"Colors Page"}),d=a([{title:"Utilities",disabled:!1,href:"#"},{title:"Colors",disabled:!0,href:"#"}]),u=a(["primary","lightprimary","secondary","lightsecondary","info","success","accent","warning","error","darkText","lightText","borderLight","inputBorder","containerBg"]);return(V,k)=>(r(),s(n,null,[e(m,{title:c.value.title,breadcrumbs:d.value},null,8,["title","breadcrumbs"]),e(i,null,{default:t(()=>[e(o,{cols:"12",md:"12"},{default:t(()=>[e(_,{title:"Color Palette"},{default:t(()=>[e(i,null,{default:t(()=>[(r(!0),s(n,null,g(u.value,(l,f)=>(r(),h(o,{md:"3",cols:"12",key:f},{default:t(()=>[e(b,{rounded:"md",class:"align-center justify-center d-flex",height:"100",width:"100%",color:l},{default:t(()=>[x("class: "+y(l),1)]),_:2},1032,["color"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})],64))}});export{P as default}; diff --git a/addons/dashboard/dist/assets/ConfigPage-0f8db50a.js b/addons/dashboard/dist/assets/ConfigPage-30efc2f6.js similarity index 95% rename from addons/dashboard/dist/assets/ConfigPage-0f8db50a.js rename to addons/dashboard/dist/assets/ConfigPage-30efc2f6.js index b2f683a..97dbfa7 100644 --- a/addons/dashboard/dist/assets/ConfigPage-0f8db50a.js +++ b/addons/dashboard/dist/assets/ConfigPage-30efc2f6.js @@ -1 +1 @@ -import{_ as h}from"./UiParentCard.vue_vue_type_script_setup_true_lang-820f34f1.js";import{o as a,s as t,a as n,w as i,f as b,F as d,u as g,V as C,d as U,e as x,t as c,a8 as B,R as _,c as r,a9 as w,O as v,b as V,aa as N,i as F,q as P,k as f,A as S}from"./index-f71951bf.js";const D={name:"ConfigPage",components:{UiParentCard:h},data(){return{config_data:{data:[]},save_message_snack:!1,save_message:"",save_message_success:""}},mounted(){this.getConfig()},methods:{getConfig(){_.get("/api/configs").then(o=>{this.config_data=o.data.data,console.log(this.config_data)})},updateConfig(){_.post("/api/configs",this.config_data).then(o=>{console.log(this.config_data),o.data.status==="success"?(this.save_message=o.data.message,this.save_message_snack=!0,this.save_message_success="success"):(this.save_message=o.data.message,this.save_message_snack=!0,this.save_message_success="error")})}}},$=Object.assign(D,{setup(o){return(s,m)=>(a(),t(d,null,[n(C,null,{default:i(()=>[n(b,{cols:"12",md:"12"},{default:i(()=>[(a(!0),t(d,null,g(s.config_data.data,u=>(a(),r(h,{key:u.name,title:u.name,style:{"margin-bottom":"16px"}},{default:i(()=>[(a(!0),t(d,null,g(u.body,e=>(a(),t(d,null,[e.config_type==="item"?(a(),t(d,{key:0},[e.val_type==="bool"?(a(),r(w,{key:0,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,label:e.name,hint:e.description,color:"primary",inset:""},null,8,["modelValue","onUpdate:modelValue","label","hint"])):e.val_type==="string"?(a(),r(v,{key:1,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,label:e.name,hint:e.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):e.val_type==="int"?(a(),r(v,{key:2,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,label:e.name,hint:e.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):e.val_type==="list"?(a(),t(d,{key:3},[V("span",null,c(e.name),1),n(N,{modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,chips:"",clearable:"",label:"请添加",multiple:"","prepend-icon":"mdi-tag-multiple-outline"},{selection:i(({attrs:l,item:p,select:k,selected:y})=>[n(F,P(l,{"model-value":y,closable:"",onClick:k,"onClick:close":O=>s.remove(p)}),{default:i(()=>[V("strong",null,c(p),1)]),_:2},1040,["model-value","onClick","onClick:close"])]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):f("",!0)],64)):e.config_type==="divider"?(a(),r(S,{key:1,style:{"margin-top":"8px","margin-bottom":"8px"}})):f("",!0)],64))),256))]),_:2},1032,["title"]))),128))]),_:1})]),_:1}),n(U,{icon:"mdi-content-save",size:"x-large",style:{position:"fixed",right:"52px",bottom:"52px"},color:"darkprimary",onClick:s.updateConfig},null,8,["onClick"]),n(B,{timeout:2e3,elevation:"24",color:s.save_message_success,modelValue:s.save_message_snack,"onUpdate:modelValue":m[0]||(m[0]=u=>s.save_message_snack=u)},{default:i(()=>[x(c(s.save_message),1)]),_:1},8,["color","modelValue"])],64))}});export{$ as default}; +import{_ as h}from"./UiParentCard.vue_vue_type_script_setup_true_lang-13601505.js";import{o as a,s as t,a as n,w as i,f as b,F as d,u as g,V as C,d as U,e as x,t as c,a8 as B,R as _,c as r,a9 as w,O as v,b as V,aa as N,i as F,q as P,k as f,A as S}from"./index-70ea897e.js";const D={name:"ConfigPage",components:{UiParentCard:h},data(){return{config_data:{data:[]},save_message_snack:!1,save_message:"",save_message_success:""}},mounted(){this.getConfig()},methods:{getConfig(){_.get("/api/configs").then(o=>{this.config_data=o.data.data,console.log(this.config_data)})},updateConfig(){_.post("/api/configs",this.config_data).then(o=>{console.log(this.config_data),o.data.status==="success"?(this.save_message=o.data.message,this.save_message_snack=!0,this.save_message_success="success"):(this.save_message=o.data.message,this.save_message_snack=!0,this.save_message_success="error")})}}},$=Object.assign(D,{setup(o){return(s,m)=>(a(),t(d,null,[n(C,null,{default:i(()=>[n(b,{cols:"12",md:"12"},{default:i(()=>[(a(!0),t(d,null,g(s.config_data.data,u=>(a(),r(h,{key:u.name,title:u.name,style:{"margin-bottom":"16px"}},{default:i(()=>[(a(!0),t(d,null,g(u.body,e=>(a(),t(d,null,[e.config_type==="item"?(a(),t(d,{key:0},[e.val_type==="bool"?(a(),r(w,{key:0,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,label:e.name,hint:e.description,color:"primary",inset:""},null,8,["modelValue","onUpdate:modelValue","label","hint"])):e.val_type==="string"?(a(),r(v,{key:1,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,label:e.name,hint:e.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):e.val_type==="int"?(a(),r(v,{key:2,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,label:e.name,hint:e.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):e.val_type==="list"?(a(),t(d,{key:3},[V("span",null,c(e.name),1),n(N,{modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,chips:"",clearable:"",label:"请添加",multiple:"","prepend-icon":"mdi-tag-multiple-outline"},{selection:i(({attrs:l,item:p,select:k,selected:y})=>[n(F,P(l,{"model-value":y,closable:"",onClick:k,"onClick:close":O=>s.remove(p)}),{default:i(()=>[V("strong",null,c(p),1)]),_:2},1040,["model-value","onClick","onClick:close"])]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):f("",!0)],64)):e.config_type==="divider"?(a(),r(S,{key:1,style:{"margin-top":"8px","margin-bottom":"8px"}})):f("",!0)],64))),256))]),_:2},1032,["title"]))),128))]),_:1})]),_:1}),n(U,{icon:"mdi-content-save",size:"x-large",style:{position:"fixed",right:"52px",bottom:"52px"},color:"darkprimary",onClick:s.updateConfig},null,8,["onClick"]),n(B,{timeout:2e3,elevation:"24",color:s.save_message_success,modelValue:s.save_message_snack,"onUpdate:modelValue":m[0]||(m[0]=u=>s.save_message_snack=u)},{default:i(()=>[x(c(s.save_message),1)]),_:1},8,["color","modelValue"])],64))}});export{$ as default}; diff --git a/addons/dashboard/dist/assets/ConsolePage-d9bd6c65.js b/addons/dashboard/dist/assets/ConsolePage-4039384d.js similarity index 99% rename from addons/dashboard/dist/assets/ConsolePage-d9bd6c65.js rename to addons/dashboard/dist/assets/ConsolePage-4039384d.js index b6878b6..a79cc60 100644 --- a/addons/dashboard/dist/assets/ConsolePage-d9bd6c65.js +++ b/addons/dashboard/dist/assets/ConsolePage-4039384d.js @@ -1,4 +1,4 @@ -import{o as Ce,s as be,b as he,t as ge,a as ye,w as we,e as Ee,d as ke,F as Le}from"./index-f71951bf.js";var pe={exports:{}};(function(Q,ne){(function(ce,oe){Q.exports=oe()})(self,()=>(()=>{var ce={4567:function(I,r,a){var l=this&&this.__decorate||function(i,o,c,v){var m,h=arguments.length,g=h<3?o:v===null?v=Object.getOwnPropertyDescriptor(o,c):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,o,c,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(g=(h<3?m(g):h>3?m(o,c,g):m(o,c))||g);return h>3&&g&&Object.defineProperty(o,c,g),g},u=this&&this.__param||function(i,o){return function(c,v){o(c,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const n=a(9042),d=a(6114),f=a(9924),p=a(844),_=a(5596),e=a(4725),s=a(3656);let t=r.AccessibilityManager=class extends p.Disposable{constructor(i,o){super(),this._terminal=i,this._renderService=o,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let c=0;cthis._handleBoundaryFocus(c,0),this._bottomBoundaryFocusListener=c=>this._handleBoundaryFocus(c,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(c=>this._handleResize(c.rows))),this.register(this._terminal.onRender(c=>this._refreshRows(c.start,c.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(c=>this._handleChar(c))),this.register(this._terminal.onLineFeed(()=>this._handleChar(` +import{o as Ce,s as be,b as he,t as ge,a as ye,w as we,e as Ee,d as ke,F as Le}from"./index-70ea897e.js";var pe={exports:{}};(function(Q,ne){(function(ce,oe){Q.exports=oe()})(self,()=>(()=>{var ce={4567:function(I,r,a){var l=this&&this.__decorate||function(i,o,c,v){var m,h=arguments.length,g=h<3?o:v===null?v=Object.getOwnPropertyDescriptor(o,c):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,o,c,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(g=(h<3?m(g):h>3?m(o,c,g):m(o,c))||g);return h>3&&g&&Object.defineProperty(o,c,g),g},u=this&&this.__param||function(i,o){return function(c,v){o(c,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const n=a(9042),d=a(6114),f=a(9924),p=a(844),_=a(5596),e=a(4725),s=a(3656);let t=r.AccessibilityManager=class extends p.Disposable{constructor(i,o){super(),this._terminal=i,this._renderService=o,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let c=0;cthis._handleBoundaryFocus(c,0),this._bottomBoundaryFocusListener=c=>this._handleBoundaryFocus(c,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(c=>this._handleResize(c.rows))),this.register(this._terminal.onRender(c=>this._refreshRows(c.start,c.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(c=>this._handleChar(c))),this.register(this._terminal.onLineFeed(()=>this._handleChar(` `))),this.register(this._terminal.onA11yTab(c=>this._handleTab(c))),this.register(this._terminal.onKey(c=>this._handleKey(c.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new _.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,s.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,p.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(i){for(let o=0;o0?this._charsToConsume.shift()!==i&&(this._charsToAnnounce+=i):this._charsToAnnounce+=i,i===` `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&this._liveRegion.remove()}_handleKey(i){this._clearLiveRegion(),/\p{Control}/u.test(i)||this._charsToConsume.push(i)}_refreshRows(i,o){this._liveRegionDebouncer.refresh(i,o,this._terminal.rows)}_renderRows(i,o){const c=this._terminal.buffer,v=c.lines.length.toString();for(let m=i;m<=o;m++){const h=c.translateBufferLineToString(c.ydisp+m,!0),g=(c.ydisp+m+1).toString(),b=this._rowElements[m];b&&(h.length===0?b.innerText=" ":b.textContent=h,b.setAttribute("aria-posinset",g),b.setAttribute("aria-setsize",v))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(i,o){const c=i.target,v=this._rowElements[o===0?1:this._rowElements.length-2];if(c.getAttribute("aria-posinset")===(o===0?"1":`${this._terminal.buffer.lines.length}`)||i.relatedTarget!==v)return;let m,h;if(o===0?(m=c,h=this._rowElements.pop(),this._rowContainer.removeChild(h)):(m=this._rowElements.shift(),h=c,this._rowContainer.removeChild(m)),m.removeEventListener("focus",this._topBoundaryFocusListener),h.removeEventListener("focus",this._bottomBoundaryFocusListener),o===0){const g=this._createAccessibilityTreeNode();this._rowElements.unshift(g),this._rowContainer.insertAdjacentElement("afterbegin",g)}else{const g=this._createAccessibilityTreeNode();this._rowElements.push(g),this._rowContainer.appendChild(g)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(o===0?-1:1),this._rowElements[o===0?1:this._rowElements.length-2].focus(),i.preventDefault(),i.stopImmediatePropagation()}_handleResize(i){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let o=this._rowContainer.children.length;oi;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const i=document.createElement("div");return i.setAttribute("role","listitem"),i.tabIndex=-1,this._refreshRowDimensions(i),i}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let i=0;i{function a(d){return d.replace(/\r?\n/g,"\r")}function l(d,f){return f?"\x1B[200~"+d+"\x1B[201~":d}function u(d,f,p,_){d=l(d=a(d),p.decPrivateModes.bracketedPasteMode&&_.rawOptions.ignoreBracketedPasteMode!==!0),p.triggerDataEvent(d,!0),f.value=""}function n(d,f,p){const _=p.getBoundingClientRect(),e=d.clientX-_.left-10,s=d.clientY-_.top-10;f.style.width="20px",f.style.height="20px",f.style.left=`${e}px`,f.style.top=`${s}px`,f.style.zIndex="1000",f.focus()}Object.defineProperty(r,"__esModule",{value:!0}),r.rightClickHandler=r.moveTextAreaUnderMouseCursor=r.paste=r.handlePasteEvent=r.copyHandler=r.bracketTextForPaste=r.prepareTextForTerminal=void 0,r.prepareTextForTerminal=a,r.bracketTextForPaste=l,r.copyHandler=function(d,f){d.clipboardData&&d.clipboardData.setData("text/plain",f.selectionText),d.preventDefault()},r.handlePasteEvent=function(d,f,p,_){d.stopPropagation(),d.clipboardData&&u(d.clipboardData.getData("text/plain"),f,p,_)},r.paste=u,r.moveTextAreaUnderMouseCursor=n,r.rightClickHandler=function(d,f,p,_,e){n(d,f,p),e&&_.rightClickSelect(d),f.value=_.selectionText,f.select()}},7239:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorContrastCache=void 0;const l=a(1505);r.ColorContrastCache=class{constructor(){this._color=new l.TwoKeyMap,this._css=new l.TwoKeyMap}setCss(u,n,d){this._css.set(u,n,d)}getCss(u,n){return this._css.get(u,n)}setColor(u,n,d){this._color.set(u,n,d)}getColor(u,n){return this._color.get(u,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.addDisposableDomListener=void 0,r.addDisposableDomListener=function(a,l,u,n){a.addEventListener(l,u,n);let d=!1;return{dispose:()=>{d||(d=!0,a.removeEventListener(l,u,n))}}}},6465:function(I,r,a){var l=this&&this.__decorate||function(e,s,t,i){var o,c=arguments.length,v=c<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,s,t,i);else for(var m=e.length-1;m>=0;m--)(o=e[m])&&(v=(c<3?o(v):c>3?o(s,t,v):o(s,t))||v);return c>3&&v&&Object.defineProperty(s,t,v),v},u=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Linkifier2=void 0;const n=a(3656),d=a(8460),f=a(844),p=a(2585);let _=r.Linkifier2=class extends f.Disposable{get currentLink(){return this._currentLink}constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new d.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new d.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,f.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,f.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{const s=this._linkProviders.indexOf(e);s!==-1&&this._linkProviders.splice(s,1)}}}attachToDom(e,s,t){this._element=e,this._mouseService=s,this._renderService=t,this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;const s=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!s)return;this._isMouseOut=!1;const t=e.composedPath();for(let i=0;i{c==null||c.forEach(v=>{v.link.dispose&&v.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let o=!1;for(const[c,v]of this._linkProviders.entries())s?!((i=this._activeProviderReplies)===null||i===void 0)&&i.get(c)&&(o=this._checkLinkProviderResult(c,e,o)):v.provideLinks(e.y,m=>{var h,g;if(this._isMouseOut)return;const b=m==null?void 0:m.map(L=>({link:L}));(h=this._activeProviderReplies)===null||h===void 0||h.set(c,b),o=this._checkLinkProviderResult(c,e,o),((g=this._activeProviderReplies)===null||g===void 0?void 0:g.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,s){const t=new Set;for(let i=0;ie?this._bufferService.cols:v.link.range.end.x;for(let g=m;g<=h;g++){if(t.has(g)){o.splice(c--,1);break}t.add(g)}}}}_checkLinkProviderResult(e,s,t){var i;if(!this._activeProviderReplies)return t;const o=this._activeProviderReplies.get(e);let c=!1;for(let v=0;vthis._linkAtPosition(m.link,s));v&&(t=!0,this._handleNewLink(v))}if(this._activeProviderReplies.size===this._linkProviders.length&&!t)for(let v=0;vthis._linkAtPosition(h.link,s));if(m){t=!0,this._handleNewLink(m);break}}return t}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;const s=this._positionFromMouseEvent(e,this._element,this._mouseService);s&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,s)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,s){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!s||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=s)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,f.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const s=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);s&&this._linkAtPosition(e.link,s)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var t,i;return(i=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.decorations.pointerCursor},set:t=>{var i,o;!((i=this._currentLink)===null||i===void 0)&&i.state&&this._currentLink.state.decorations.pointerCursor!==t&&(this._currentLink.state.decorations.pointerCursor=t,this._currentLink.state.isHovered&&((o=this._element)===null||o===void 0||o.classList.toggle("xterm-cursor-pointer",t)))}},underline:{get:()=>{var t,i;return(i=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.decorations.underline},set:t=>{var i,o,c;!((i=this._currentLink)===null||i===void 0)&&i.state&&((c=(o=this._currentLink)===null||o===void 0?void 0:o.state)===null||c===void 0?void 0:c.decorations.underline)!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(t=>{if(!this._currentLink)return;const i=t.start===0?0:t.start+1+this._bufferService.buffer.ydisp,o=this._bufferService.buffer.ydisp+1+t.end;if(this._currentLink.link.range.start.y>=i&&this._currentLink.link.range.end.y<=o&&(this._clearCurrentLink(i,o),this._lastMouseEvent&&this._element)){const c=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);c&&this._askForLink(c,!1)}})))}_linkHover(e,s,t){var i;!((i=this._currentLink)===null||i===void 0)&&i.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),s.hover&&s.hover(t,s.text)}_fireUnderlineEvent(e,s){const t=e.range,i=this._bufferService.buffer.ydisp,o=this._createLinkUnderlineEvent(t.start.x-1,t.start.y-i-1,t.end.x,t.end.y-i-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(o)}_linkLeave(e,s,t){var i;!((i=this._currentLink)===null||i===void 0)&&i.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),s.leave&&s.leave(t,s.text)}_linkAtPosition(e,s){const t=e.range.start.y*this._bufferService.cols+e.range.start.x,i=e.range.end.y*this._bufferService.cols+e.range.end.x,o=s.y*this._bufferService.cols+s.x;return t<=o&&o<=i}_positionFromMouseEvent(e,s,t){const i=t.getCoords(e,s,this._bufferService.cols,this._bufferService.rows);if(i)return{x:i[0],y:i[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,s,t,i,o){return{x1:e,y1:s,x2:t,y2:i,cols:this._bufferService.cols,fg:o}}};r.Linkifier2=_=l([u(0,p.IBufferService)],_)},9042:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.tooMuchOutput=r.promptLabel=void 0,r.promptLabel="Terminal input",r.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(I,r,a){var l=this&&this.__decorate||function(_,e,s,t){var i,o=arguments.length,c=o<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,s):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(_,e,s,t);else for(var v=_.length-1;v>=0;v--)(i=_[v])&&(c=(o<3?i(c):o>3?i(e,s,c):i(e,s))||c);return o>3&&c&&Object.defineProperty(e,s,c),c},u=this&&this.__param||function(_,e){return function(s,t){e(s,t,_)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkProvider=void 0;const n=a(511),d=a(2585);let f=r.OscLinkProvider=class{constructor(_,e,s){this._bufferService=_,this._optionsService=e,this._oscLinkService=s}provideLinks(_,e){var s;const t=this._bufferService.buffer.lines.get(_-1);if(!t)return void e(void 0);const i=[],o=this._optionsService.rawOptions.linkHandler,c=new n.CellData,v=t.getTrimmedLength();let m=-1,h=-1,g=!1;for(let b=0;bo?o.activate(x,T,y):p(0,T),hover:(x,T)=>{var O;return(O=o==null?void 0:o.hover)===null||O===void 0?void 0:O.call(o,x,T,y)},leave:(x,T)=>{var O;return(O=o==null?void 0:o.leave)===null||O===void 0?void 0:O.call(o,x,T,y)}})}g=!1,c.hasExtendedAttrs()&&c.extended.urlId?(h=b,m=c.extended.urlId):(h=-1,m=-1)}}e(i)}};function p(_,e){if(confirm(`Do you want to navigate to ${e}? @@ -6,6 +6,6 @@ WARNING: This link could potentially be dangerous`)){const s=window.open();if(s) `:` `)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(h){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),s.isLinux&&h&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(h){const g=this._getMouseBufferCoords(h),b=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!!(b&&L&&g)&&this._areCoordsInSelection(g,b,L)}isCellInSelection(h,g){const b=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!(!b||!L)&&this._areCoordsInSelection([h,g],b,L)}_areCoordsInSelection(h,g,b){return h[1]>g[1]&&h[1]=g[0]&&h[0]=g[0]}_selectWordAtCursor(h,g){var b,L;const y=(L=(b=this._linkifier.currentLink)===null||b===void 0?void 0:b.link)===null||L===void 0?void 0:L.range;if(y)return this._model.selectionStart=[y.start.x-1,y.start.y-1],this._model.selectionStartLength=(0,t.getRangeLength)(y,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const k=this._getMouseBufferCoords(h);return!!k&&(this._selectWordAt(k,g),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(h,g){this._model.clearSelection(),h=Math.max(h,0),g=Math.min(g,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,h],this._model.selectionEnd=[this._bufferService.cols,g],this.refresh(),this._onSelectionChange.fire()}_handleTrim(h){this._model.handleTrim(h)&&this.refresh()}_getMouseBufferCoords(h){const g=this._mouseService.getCoords(h,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(g)return g[0]--,g[1]--,g[1]+=this._bufferService.buffer.ydisp,g}_getMouseEventScrollAmount(h){let g=(0,n.getCoordsRelativeToElement)(this._coreBrowserService.window,h,this._screenElement)[1];const b=this._renderService.dimensions.css.canvas.height;return g>=0&&g<=b?0:(g>b&&(g-=b),g=Math.min(Math.max(g,-50),50),g/=50,g/Math.abs(g)+Math.round(14*g))}shouldForceSelection(h){return s.isMac?h.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:h.shiftKey}handleMouseDown(h){if(this._mouseDownTimeStamp=h.timeStamp,(h.button!==2||!this.hasSelection)&&h.button===0){if(!this._enabled){if(!this.shouldForceSelection(h))return;h.stopPropagation()}h.preventDefault(),this._dragScrollAmount=0,this._enabled&&h.shiftKey?this._handleIncrementalClick(h):h.detail===1?this._handleSingleClick(h):h.detail===2?this._handleDoubleClick(h):h.detail===3&&this._handleTripleClick(h),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(h){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(h))}_handleSingleClick(h){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(h)?3:0,this._model.selectionStart=this._getMouseBufferCoords(h),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const g=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);g&&g.length!==this._model.selectionStart[0]&&g.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(h){this._selectWordAtCursor(h,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(h){const g=this._getMouseBufferCoords(h);g&&(this._activeSelectionMode=2,this._selectLineAt(g[1]))}shouldColumnSelect(h){return h.altKey&&!(s.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(h){if(h.stopImmediatePropagation(),!this._model.selectionStart)return;const g=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(h),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const b=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(h.ydisp+this._bufferService.rows,h.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=h.ydisp),this.refresh()}}_handleMouseUp(h){const g=h.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&g<500&&h.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const b=this._mouseService.getCoords(h,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(b&&b[0]!==void 0&&b[1]!==void 0){const L=(0,d.moveToCellSequence)(b[0]-1,b[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(L,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const h=this._model.finalSelectionStart,g=this._model.finalSelectionEnd,b=!(!h||!g||h[0]===g[0]&&h[1]===g[1]);b?h&&g&&(this._oldSelectionStart&&this._oldSelectionEnd&&h[0]===this._oldSelectionStart[0]&&h[1]===this._oldSelectionStart[1]&&g[0]===this._oldSelectionEnd[0]&&g[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(h,g,b)):this._oldHasSelection&&this._fireOnSelectionChange(h,g,b)}_fireOnSelectionChange(h,g,b){this._oldSelectionStart=h,this._oldSelectionEnd=g,this._oldHasSelection=b,this._onSelectionChange.fire()}_handleBufferActivate(h){this.clearSelection(),this._trimListener.dispose(),this._trimListener=h.activeBuffer.lines.onTrim(g=>this._handleTrim(g))}_convertViewportColToCharacterIndex(h,g){let b=g;for(let L=0;g>=L;L++){const y=h.loadCell(L,this._workCell).getChars().length;this._workCell.getWidth()===0?b--:y>1&&g!==L&&(b+=y-1)}return b}setSelection(h,g,b){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[h,g],this._model.selectionStartLength=b,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(h){this._isClickInSelection(h)||(this._selectWordAtCursor(h,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(h,g,b=!0,L=!0){if(h[0]>=this._bufferService.cols)return;const y=this._bufferService.buffer,k=y.lines.get(h[1]);if(!k)return;const x=y.translateBufferLineToString(h[1],!1);let T=this._convertViewportColToCharacterIndex(k,h[0]),O=T;const M=h[0]-T;let C=0,w=0,E=0,D=0;if(x.charAt(T)===" "){for(;T>0&&x.charAt(T-1)===" ";)T--;for(;O1&&(D+=z-1,O+=z-1);U>0&&T>0&&!this._isCharWordSeparator(k.loadCell(U-1,this._workCell));){k.loadCell(U-1,this._workCell);const S=this._workCell.getChars().length;this._workCell.getWidth()===0?(C++,U--):S>1&&(E+=S-1,T-=S-1),T--,U--}for(;W1&&(D+=S-1,O+=S-1),O++,W++}}O++;let P=T+M-C+E,H=Math.min(this._bufferService.cols,O-T+C+w-E-D);if(g||x.slice(T,O).trim()!==""){if(b&&P===0&&k.getCodePoint(0)!==32){const U=y.lines.get(h[1]-1);if(U&&k.isWrapped&&U.getCodePoint(this._bufferService.cols-1)!==32){const W=this._getWordAt([this._bufferService.cols-1,h[1]-1],!1,!0,!1);if(W){const z=this._bufferService.cols-W.start;P-=z,H+=z}}}if(L&&P+H===this._bufferService.cols&&k.getCodePoint(this._bufferService.cols-1)!==32){const U=y.lines.get(h[1]+1);if(U!=null&&U.isWrapped&&U.getCodePoint(0)!==32){const W=this._getWordAt([0,h[1]+1],!1,!1,!0);W&&(H+=W.length)}}return{start:P,length:H}}}_selectWordAt(h,g){const b=this._getWordAt(h,g);if(b){for(;b.start<0;)b.start+=this._bufferService.cols,h[1]--;this._model.selectionStart=[b.start,h[1]],this._model.selectionStartLength=b.length}}_selectToWordAt(h){const g=this._getWordAt(h,!0);if(g){let b=h[1];for(;g.start<0;)g.start+=this._bufferService.cols,b--;if(!this._model.areSelectionValuesReversed())for(;g.start+g.length>this._bufferService.cols;)g.length-=this._bufferService.cols,b++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?g.start:g.start+g.length,b]}}_isCharWordSeparator(h){return h.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(h.getChars())>=0}_selectLineAt(h){const g=this._bufferService.buffer.getWrappedRangeForLine(h),b={start:{x:0,y:g.first},end:{x:this._bufferService.cols-1,y:g.last}};this._model.selectionStart=[0,g.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,t.getRangeLength)(b,this._bufferService.cols)}};r.SelectionService=m=l([u(3,o.IBufferService),u(4,o.ICoreService),u(5,p.IMouseService),u(6,o.IOptionsService),u(7,p.IRenderService),u(8,p.ICoreBrowserService)],m)},4725:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.IThemeService=r.ICharacterJoinerService=r.ISelectionService=r.IRenderService=r.IMouseService=r.ICoreBrowserService=r.ICharSizeService=void 0;const l=a(8343);r.ICharSizeService=(0,l.createDecorator)("CharSizeService"),r.ICoreBrowserService=(0,l.createDecorator)("CoreBrowserService"),r.IMouseService=(0,l.createDecorator)("MouseService"),r.IRenderService=(0,l.createDecorator)("RenderService"),r.ISelectionService=(0,l.createDecorator)("SelectionService"),r.ICharacterJoinerService=(0,l.createDecorator)("CharacterJoinerService"),r.IThemeService=(0,l.createDecorator)("ThemeService")},6731:function(I,r,a){var l=this&&this.__decorate||function(m,h,g,b){var L,y=arguments.length,k=y<3?h:b===null?b=Object.getOwnPropertyDescriptor(h,g):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(m,h,g,b);else for(var x=m.length-1;x>=0;x--)(L=m[x])&&(k=(y<3?L(k):y>3?L(h,g,k):L(h,g))||k);return y>3&&k&&Object.defineProperty(h,g,k),k},u=this&&this.__param||function(m,h){return function(g,b){h(g,b,m)}};Object.defineProperty(r,"__esModule",{value:!0}),r.ThemeService=r.DEFAULT_ANSI_COLORS=void 0;const n=a(7239),d=a(8055),f=a(8460),p=a(844),_=a(2585),e=d.css.toColor("#ffffff"),s=d.css.toColor("#000000"),t=d.css.toColor("#ffffff"),i=d.css.toColor("#000000"),o={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};r.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const m=[d.css.toColor("#2e3436"),d.css.toColor("#cc0000"),d.css.toColor("#4e9a06"),d.css.toColor("#c4a000"),d.css.toColor("#3465a4"),d.css.toColor("#75507b"),d.css.toColor("#06989a"),d.css.toColor("#d3d7cf"),d.css.toColor("#555753"),d.css.toColor("#ef2929"),d.css.toColor("#8ae234"),d.css.toColor("#fce94f"),d.css.toColor("#729fcf"),d.css.toColor("#ad7fa8"),d.css.toColor("#34e2e2"),d.css.toColor("#eeeeec")],h=[0,95,135,175,215,255];for(let g=0;g<216;g++){const b=h[g/36%6|0],L=h[g/6%6|0],y=h[g%6];m.push({css:d.channels.toCss(b,L,y),rgba:d.channels.toRgba(b,L,y)})}for(let g=0;g<24;g++){const b=8+10*g;m.push({css:d.channels.toCss(b,b,b),rgba:d.channels.toRgba(b,b,b)})}return m})());let c=r.ThemeService=class extends p.Disposable{get colors(){return this._colors}constructor(m){super(),this._optionsService=m,this._contrastCache=new n.ColorContrastCache,this._halfContrastCache=new n.ColorContrastCache,this._onChangeColors=this.register(new f.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:e,background:s,cursor:t,cursorAccent:i,selectionForeground:void 0,selectionBackgroundTransparent:o,selectionBackgroundOpaque:d.color.blend(s,o),selectionInactiveBackgroundTransparent:o,selectionInactiveBackgroundOpaque:d.color.blend(s,o),ansi:r.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",()=>this._contrastCache.clear())),this.register(this._optionsService.onSpecificOptionChange("theme",()=>this._setTheme(this._optionsService.rawOptions.theme)))}_setTheme(m={}){const h=this._colors;if(h.foreground=v(m.foreground,e),h.background=v(m.background,s),h.cursor=v(m.cursor,t),h.cursorAccent=v(m.cursorAccent,i),h.selectionBackgroundTransparent=v(m.selectionBackground,o),h.selectionBackgroundOpaque=d.color.blend(h.background,h.selectionBackgroundTransparent),h.selectionInactiveBackgroundTransparent=v(m.selectionInactiveBackground,h.selectionBackgroundTransparent),h.selectionInactiveBackgroundOpaque=d.color.blend(h.background,h.selectionInactiveBackgroundTransparent),h.selectionForeground=m.selectionForeground?v(m.selectionForeground,d.NULL_COLOR):void 0,h.selectionForeground===d.NULL_COLOR&&(h.selectionForeground=void 0),d.color.isOpaque(h.selectionBackgroundTransparent)&&(h.selectionBackgroundTransparent=d.color.opacity(h.selectionBackgroundTransparent,.3)),d.color.isOpaque(h.selectionInactiveBackgroundTransparent)&&(h.selectionInactiveBackgroundTransparent=d.color.opacity(h.selectionInactiveBackgroundTransparent,.3)),h.ansi=r.DEFAULT_ANSI_COLORS.slice(),h.ansi[0]=v(m.black,r.DEFAULT_ANSI_COLORS[0]),h.ansi[1]=v(m.red,r.DEFAULT_ANSI_COLORS[1]),h.ansi[2]=v(m.green,r.DEFAULT_ANSI_COLORS[2]),h.ansi[3]=v(m.yellow,r.DEFAULT_ANSI_COLORS[3]),h.ansi[4]=v(m.blue,r.DEFAULT_ANSI_COLORS[4]),h.ansi[5]=v(m.magenta,r.DEFAULT_ANSI_COLORS[5]),h.ansi[6]=v(m.cyan,r.DEFAULT_ANSI_COLORS[6]),h.ansi[7]=v(m.white,r.DEFAULT_ANSI_COLORS[7]),h.ansi[8]=v(m.brightBlack,r.DEFAULT_ANSI_COLORS[8]),h.ansi[9]=v(m.brightRed,r.DEFAULT_ANSI_COLORS[9]),h.ansi[10]=v(m.brightGreen,r.DEFAULT_ANSI_COLORS[10]),h.ansi[11]=v(m.brightYellow,r.DEFAULT_ANSI_COLORS[11]),h.ansi[12]=v(m.brightBlue,r.DEFAULT_ANSI_COLORS[12]),h.ansi[13]=v(m.brightMagenta,r.DEFAULT_ANSI_COLORS[13]),h.ansi[14]=v(m.brightCyan,r.DEFAULT_ANSI_COLORS[14]),h.ansi[15]=v(m.brightWhite,r.DEFAULT_ANSI_COLORS[15]),m.extendedAnsi){const g=Math.min(h.ansi.length-16,m.extendedAnsi.length);for(let b=0;b{Object.defineProperty(r,"__esModule",{value:!0}),r.CircularList=void 0;const l=a(8460),u=a(844);class n extends u.Disposable{constructor(f){super(),this._maxLength=f,this.onDeleteEmitter=this.register(new l.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new l.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new l.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(f){if(this._maxLength===f)return;const p=new Array(f);for(let _=0;_this._length)for(let p=this._length;p=f;e--)this._array[this._getCyclicIndex(e+_.length)]=this._array[this._getCyclicIndex(e)];for(let e=0;e<_.length;e++)this._array[this._getCyclicIndex(f+e)]=_[e];if(_.length&&this.onInsertEmitter.fire({index:f,amount:_.length}),this._length+_.length>this._maxLength){const e=this._length+_.length-this._maxLength;this._startIndex+=e,this._length=this._maxLength,this.onTrimEmitter.fire(e)}else this._length+=_.length}trimStart(f){f>this._length&&(f=this._length),this._startIndex+=f,this._length-=f,this.onTrimEmitter.fire(f)}shiftElements(f,p,_){if(!(p<=0)){if(f<0||f>=this._length)throw new Error("start argument out of range");if(f+_<0)throw new Error("Cannot shift elements in list beyond index 0");if(_>0){for(let s=p-1;s>=0;s--)this.set(f+s+_,this.get(f+s));const e=f+p+_-this._length;if(e>0)for(this._length+=e;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let e=0;e{Object.defineProperty(r,"__esModule",{value:!0}),r.clone=void 0,r.clone=function a(l,u=5){if(typeof l!="object")return l;const n=Array.isArray(l)?[]:{};for(const d in l)n[d]=u<=1?l[d]:l[d]&&a(l[d],u-1);return n}},8055:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.contrastRatio=r.toPaddedHex=r.rgba=r.rgb=r.css=r.color=r.channels=r.NULL_COLOR=void 0;const l=a(6114);let u=0,n=0,d=0,f=0;var p,_,e,s,t;function i(c){const v=c.toString(16);return v.length<2?"0"+v:v}function o(c,v){return c>>0}}(p||(r.channels=p={})),function(c){function v(m,h){return f=Math.round(255*h),[u,n,d]=t.toChannels(m.rgba),{css:p.toCss(u,n,d,f),rgba:p.toRgba(u,n,d,f)}}c.blend=function(m,h){if(f=(255&h.rgba)/255,f===1)return{css:h.css,rgba:h.rgba};const g=h.rgba>>24&255,b=h.rgba>>16&255,L=h.rgba>>8&255,y=m.rgba>>24&255,k=m.rgba>>16&255,x=m.rgba>>8&255;return u=y+Math.round((g-y)*f),n=k+Math.round((b-k)*f),d=x+Math.round((L-x)*f),{css:p.toCss(u,n,d),rgba:p.toRgba(u,n,d)}},c.isOpaque=function(m){return(255&m.rgba)==255},c.ensureContrastRatio=function(m,h,g){const b=t.ensureContrastRatio(m.rgba,h.rgba,g);if(b)return t.toColor(b>>24&255,b>>16&255,b>>8&255)},c.opaque=function(m){const h=(255|m.rgba)>>>0;return[u,n,d]=t.toChannels(h),{css:p.toCss(u,n,d),rgba:h}},c.opacity=v,c.multiplyOpacity=function(m,h){return f=255&m.rgba,v(m,f*h/255)},c.toColorRGB=function(m){return[m.rgba>>24&255,m.rgba>>16&255,m.rgba>>8&255]}}(_||(r.color=_={})),function(c){let v,m;if(!l.isNode){const h=document.createElement("canvas");h.width=1,h.height=1;const g=h.getContext("2d",{willReadFrequently:!0});g&&(v=g,v.globalCompositeOperation="copy",m=v.createLinearGradient(0,0,1,1))}c.toColor=function(h){if(h.match(/#[\da-f]{3,8}/i))switch(h.length){case 4:return u=parseInt(h.slice(1,2).repeat(2),16),n=parseInt(h.slice(2,3).repeat(2),16),d=parseInt(h.slice(3,4).repeat(2),16),t.toColor(u,n,d);case 5:return u=parseInt(h.slice(1,2).repeat(2),16),n=parseInt(h.slice(2,3).repeat(2),16),d=parseInt(h.slice(3,4).repeat(2),16),f=parseInt(h.slice(4,5).repeat(2),16),t.toColor(u,n,d,f);case 7:return{css:h,rgba:(parseInt(h.slice(1),16)<<8|255)>>>0};case 9:return{css:h,rgba:parseInt(h.slice(1),16)>>>0}}const g=h.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(g)return u=parseInt(g[1]),n=parseInt(g[2]),d=parseInt(g[3]),f=Math.round(255*(g[5]===void 0?1:parseFloat(g[5]))),t.toColor(u,n,d,f);if(!v||!m)throw new Error("css.toColor: Unsupported css format");if(v.fillStyle=m,v.fillStyle=h,typeof v.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(v.fillRect(0,0,1,1),[u,n,d,f]=v.getImageData(0,0,1,1).data,f!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:p.toRgba(u,n,d,f),css:h}}}(e||(r.css=e={})),function(c){function v(m,h,g){const b=m/255,L=h/255,y=g/255;return .2126*(b<=.03928?b/12.92:Math.pow((b+.055)/1.055,2.4))+.7152*(L<=.03928?L/12.92:Math.pow((L+.055)/1.055,2.4))+.0722*(y<=.03928?y/12.92:Math.pow((y+.055)/1.055,2.4))}c.relativeLuminance=function(m){return v(m>>16&255,m>>8&255,255&m)},c.relativeLuminance2=v}(s||(r.rgb=s={})),function(c){function v(h,g,b){const L=h>>24&255,y=h>>16&255,k=h>>8&255;let x=g>>24&255,T=g>>16&255,O=g>>8&255,M=o(s.relativeLuminance2(x,T,O),s.relativeLuminance2(L,y,k));for(;M0||T>0||O>0);)x-=Math.max(0,Math.ceil(.1*x)),T-=Math.max(0,Math.ceil(.1*T)),O-=Math.max(0,Math.ceil(.1*O)),M=o(s.relativeLuminance2(x,T,O),s.relativeLuminance2(L,y,k));return(x<<24|T<<16|O<<8|255)>>>0}function m(h,g,b){const L=h>>24&255,y=h>>16&255,k=h>>8&255;let x=g>>24&255,T=g>>16&255,O=g>>8&255,M=o(s.relativeLuminance2(x,T,O),s.relativeLuminance2(L,y,k));for(;M>>0}c.ensureContrastRatio=function(h,g,b){const L=s.relativeLuminance(h>>8),y=s.relativeLuminance(g>>8);if(o(L,y)>8));if(Oo(L,s.relativeLuminance(M>>8))?T:M}return T}const k=m(h,g,b),x=o(L,s.relativeLuminance(k>>8));if(xo(L,s.relativeLuminance(T>>8))?k:T}return k}},c.reduceLuminance=v,c.increaseLuminance=m,c.toChannels=function(h){return[h>>24&255,h>>16&255,h>>8&255,255&h]},c.toColor=function(h,g,b,L){return{css:p.toCss(h,g,b,L),rgba:p.toRgba(h,g,b,L)}}}(t||(r.rgba=t={})),r.toPaddedHex=i,r.contrastRatio=o},8969:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CoreTerminal=void 0;const l=a(844),u=a(2585),n=a(4348),d=a(7866),f=a(744),p=a(7302),_=a(6975),e=a(8460),s=a(1753),t=a(1480),i=a(7994),o=a(9282),c=a(5435),v=a(5981),m=a(2660);let h=!1;class g extends l.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new e.EventEmitter),this._onScroll.event(L=>{var y;(y=this._onScrollApi)===null||y===void 0||y.fire(L.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(L){for(const y in L)this.optionsService.options[y]=L[y]}constructor(L){super(),this._windowsWrappingHeuristics=this.register(new l.MutableDisposable),this._onBinary=this.register(new e.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new e.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new e.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new e.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new e.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new e.EventEmitter),this._instantiationService=new n.InstantiationService,this.optionsService=this.register(new p.OptionsService(L)),this._instantiationService.setService(u.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(f.BufferService)),this._instantiationService.setService(u.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(d.LogService)),this._instantiationService.setService(u.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(_.CoreService)),this._instantiationService.setService(u.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(s.CoreMouseService)),this._instantiationService.setService(u.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(t.UnicodeService)),this._instantiationService.setService(u.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(i.CharsetService),this._instantiationService.setService(u.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(m.OscLinkService),this._instantiationService.setService(u.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new c.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,e.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,e.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,e.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,e.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom())),this.register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this.register(this._bufferService.onScroll(y=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this.register(this._inputHandler.onScroll(y=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this.register(new v.WriteBuffer((y,k)=>this._inputHandler.parse(y,k))),this.register((0,e.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(L,y){this._writeBuffer.write(L,y)}writeSync(L,y){this._logService.logLevel<=u.LogLevelEnum.WARN&&!h&&(this._logService.warn("writeSync is unreliable and will be removed soon."),h=!0),this._writeBuffer.writeSync(L,y)}resize(L,y){isNaN(L)||isNaN(y)||(L=Math.max(L,f.MINIMUM_COLS),y=Math.max(y,f.MINIMUM_ROWS),this._bufferService.resize(L,y))}scroll(L,y=!1){this._bufferService.scroll(L,y)}scrollLines(L,y,k){this._bufferService.scrollLines(L,y,k)}scrollPages(L){this.scrollLines(L*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(L){const y=L-this._bufferService.buffer.ydisp;y!==0&&this.scrollLines(y)}registerEscHandler(L,y){return this._inputHandler.registerEscHandler(L,y)}registerDcsHandler(L,y){return this._inputHandler.registerDcsHandler(L,y)}registerCsiHandler(L,y){return this._inputHandler.registerCsiHandler(L,y)}registerOscHandler(L,y){return this._inputHandler.registerOscHandler(L,y)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let L=!1;const y=this.optionsService.rawOptions.windowsPty;y&&y.buildNumber!==void 0&&y.buildNumber!==void 0?L=y.backend==="conpty"&&y.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(L=!0),L?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const L=[];L.push(this.onLineFeed(o.updateWindowsModeWrappedState.bind(null,this._bufferService))),L.push(this.registerCsiHandler({final:"H"},()=>((0,o.updateWindowsModeWrappedState)(this._bufferService),!1))),this._windowsWrappingHeuristics.value=(0,l.toDisposable)(()=>{for(const y of L)y.dispose()})}}}r.CoreTerminal=g},8460:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.forwardEvent=r.EventEmitter=void 0,r.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=a=>(this._listeners.push(a),{dispose:()=>{if(!this._disposed){for(let l=0;ll.fire(u))}},5435:function(I,r,a){var l=this&&this.__decorate||function(M,C,w,E){var D,P=arguments.length,H=P<3?C:E===null?E=Object.getOwnPropertyDescriptor(C,w):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")H=Reflect.decorate(M,C,w,E);else for(var U=M.length-1;U>=0;U--)(D=M[U])&&(H=(P<3?D(H):P>3?D(C,w,H):D(C,w))||H);return P>3&&H&&Object.defineProperty(C,w,H),H},u=this&&this.__param||function(M,C){return function(w,E){C(w,E,M)}};Object.defineProperty(r,"__esModule",{value:!0}),r.InputHandler=r.WindowsOptionsReportType=void 0;const n=a(2584),d=a(7116),f=a(2015),p=a(844),_=a(482),e=a(8437),s=a(8460),t=a(643),i=a(511),o=a(3734),c=a(2585),v=a(6242),m=a(6351),h=a(5941),g={"(":0,")":1,"*":2,"+":3,"-":1,".":2},b=131072;function L(M,C){if(M>24)return C.setWinLines||!1;switch(M){case 1:return!!C.restoreWin;case 2:return!!C.minimizeWin;case 3:return!!C.setWinPosition;case 4:return!!C.setWinSizePixels;case 5:return!!C.raiseWin;case 6:return!!C.lowerWin;case 7:return!!C.refreshWin;case 8:return!!C.setWinSizeChars;case 9:return!!C.maximizeWin;case 10:return!!C.fullscreenWin;case 11:return!!C.getWinState;case 13:return!!C.getWinPosition;case 14:return!!C.getWinSizePixels;case 15:return!!C.getScreenSizePixels;case 16:return!!C.getCellSizePixels;case 18:return!!C.getWinSizeChars;case 19:return!!C.getScreenSizeChars;case 20:return!!C.getIconTitle;case 21:return!!C.getWinTitle;case 22:return!!C.pushTitle;case 23:return!!C.popTitle;case 24:return!!C.setWinLines}return!1}var y;(function(M){M[M.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",M[M.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(y||(r.WindowsOptionsReportType=y={}));let k=0;class x extends p.Disposable{getAttrData(){return this._curAttrData}constructor(C,w,E,D,P,H,U,W,z=new f.EscapeSequenceParser){super(),this._bufferService=C,this._charsetService=w,this._coreService=E,this._logService=D,this._optionsService=P,this._oscLinkService=H,this._coreMouseService=U,this._unicodeService=W,this._parser=z,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new _.StringToUtf32,this._utf8Decoder=new _.Utf8ToUtf32,this._workCell=new i.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new s.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new s.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new s.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new s.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new s.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new s.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new s.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new s.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new s.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new s.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new s.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new s.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new s.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new T(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(S=>this._activeBuffer=S.activeBuffer)),this._parser.setCsiHandlerFallback((S,R)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(S),params:R.toArray()})}),this._parser.setEscHandlerFallback(S=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(S)})}),this._parser.setExecuteHandlerFallback(S=>{this._logService.debug("Unknown EXECUTE code: ",{code:S})}),this._parser.setOscHandlerFallback((S,R,B)=>{this._logService.debug("Unknown OSC code: ",{identifier:S,action:R,data:B})}),this._parser.setDcsHandlerFallback((S,R,B)=>{R==="HOOK"&&(B=B.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(S),action:R,payload:B})}),this._parser.setPrintHandler((S,R,B)=>this.print(S,R,B)),this._parser.registerCsiHandler({final:"@"},S=>this.insertChars(S)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},S=>this.scrollLeft(S)),this._parser.registerCsiHandler({final:"A"},S=>this.cursorUp(S)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},S=>this.scrollRight(S)),this._parser.registerCsiHandler({final:"B"},S=>this.cursorDown(S)),this._parser.registerCsiHandler({final:"C"},S=>this.cursorForward(S)),this._parser.registerCsiHandler({final:"D"},S=>this.cursorBackward(S)),this._parser.registerCsiHandler({final:"E"},S=>this.cursorNextLine(S)),this._parser.registerCsiHandler({final:"F"},S=>this.cursorPrecedingLine(S)),this._parser.registerCsiHandler({final:"G"},S=>this.cursorCharAbsolute(S)),this._parser.registerCsiHandler({final:"H"},S=>this.cursorPosition(S)),this._parser.registerCsiHandler({final:"I"},S=>this.cursorForwardTab(S)),this._parser.registerCsiHandler({final:"J"},S=>this.eraseInDisplay(S,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},S=>this.eraseInDisplay(S,!0)),this._parser.registerCsiHandler({final:"K"},S=>this.eraseInLine(S,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},S=>this.eraseInLine(S,!0)),this._parser.registerCsiHandler({final:"L"},S=>this.insertLines(S)),this._parser.registerCsiHandler({final:"M"},S=>this.deleteLines(S)),this._parser.registerCsiHandler({final:"P"},S=>this.deleteChars(S)),this._parser.registerCsiHandler({final:"S"},S=>this.scrollUp(S)),this._parser.registerCsiHandler({final:"T"},S=>this.scrollDown(S)),this._parser.registerCsiHandler({final:"X"},S=>this.eraseChars(S)),this._parser.registerCsiHandler({final:"Z"},S=>this.cursorBackwardTab(S)),this._parser.registerCsiHandler({final:"`"},S=>this.charPosAbsolute(S)),this._parser.registerCsiHandler({final:"a"},S=>this.hPositionRelative(S)),this._parser.registerCsiHandler({final:"b"},S=>this.repeatPrecedingCharacter(S)),this._parser.registerCsiHandler({final:"c"},S=>this.sendDeviceAttributesPrimary(S)),this._parser.registerCsiHandler({prefix:">",final:"c"},S=>this.sendDeviceAttributesSecondary(S)),this._parser.registerCsiHandler({final:"d"},S=>this.linePosAbsolute(S)),this._parser.registerCsiHandler({final:"e"},S=>this.vPositionRelative(S)),this._parser.registerCsiHandler({final:"f"},S=>this.hVPosition(S)),this._parser.registerCsiHandler({final:"g"},S=>this.tabClear(S)),this._parser.registerCsiHandler({final:"h"},S=>this.setMode(S)),this._parser.registerCsiHandler({prefix:"?",final:"h"},S=>this.setModePrivate(S)),this._parser.registerCsiHandler({final:"l"},S=>this.resetMode(S)),this._parser.registerCsiHandler({prefix:"?",final:"l"},S=>this.resetModePrivate(S)),this._parser.registerCsiHandler({final:"m"},S=>this.charAttributes(S)),this._parser.registerCsiHandler({final:"n"},S=>this.deviceStatus(S)),this._parser.registerCsiHandler({prefix:"?",final:"n"},S=>this.deviceStatusPrivate(S)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},S=>this.softReset(S)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},S=>this.setCursorStyle(S)),this._parser.registerCsiHandler({final:"r"},S=>this.setScrollRegion(S)),this._parser.registerCsiHandler({final:"s"},S=>this.saveCursor(S)),this._parser.registerCsiHandler({final:"t"},S=>this.windowOptions(S)),this._parser.registerCsiHandler({final:"u"},S=>this.restoreCursor(S)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},S=>this.insertColumns(S)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},S=>this.deleteColumns(S)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},S=>this.selectProtected(S)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},S=>this.requestMode(S,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},S=>this.requestMode(S,!1)),this._parser.setExecuteHandler(n.C0.BEL,()=>this.bell()),this._parser.setExecuteHandler(n.C0.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(n.C0.BS,()=>this.backspace()),this._parser.setExecuteHandler(n.C0.HT,()=>this.tab()),this._parser.setExecuteHandler(n.C0.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(n.C0.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(n.C1.IND,()=>this.index()),this._parser.setExecuteHandler(n.C1.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(n.C1.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new v.OscHandler(S=>(this.setTitle(S),this.setIconName(S),!0))),this._parser.registerOscHandler(1,new v.OscHandler(S=>this.setIconName(S))),this._parser.registerOscHandler(2,new v.OscHandler(S=>this.setTitle(S))),this._parser.registerOscHandler(4,new v.OscHandler(S=>this.setOrReportIndexedColor(S))),this._parser.registerOscHandler(8,new v.OscHandler(S=>this.setHyperlink(S))),this._parser.registerOscHandler(10,new v.OscHandler(S=>this.setOrReportFgColor(S))),this._parser.registerOscHandler(11,new v.OscHandler(S=>this.setOrReportBgColor(S))),this._parser.registerOscHandler(12,new v.OscHandler(S=>this.setOrReportCursorColor(S))),this._parser.registerOscHandler(104,new v.OscHandler(S=>this.restoreIndexedColor(S))),this._parser.registerOscHandler(110,new v.OscHandler(S=>this.restoreFgColor(S))),this._parser.registerOscHandler(111,new v.OscHandler(S=>this.restoreBgColor(S))),this._parser.registerOscHandler(112,new v.OscHandler(S=>this.restoreCursorColor(S))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(const S in d.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:S},()=>this.selectCharset("("+S)),this._parser.registerEscHandler({intermediates:")",final:S},()=>this.selectCharset(")"+S)),this._parser.registerEscHandler({intermediates:"*",final:S},()=>this.selectCharset("*"+S)),this._parser.registerEscHandler({intermediates:"+",final:S},()=>this.selectCharset("+"+S)),this._parser.registerEscHandler({intermediates:"-",final:S},()=>this.selectCharset("-"+S)),this._parser.registerEscHandler({intermediates:".",final:S},()=>this.selectCharset("."+S)),this._parser.registerEscHandler({intermediates:"/",final:S},()=>this.selectCharset("/"+S));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(S=>(this._logService.error("Parsing error: ",S),S)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new m.DcsHandler((S,R)=>this.requestStatusString(S,R)))}_preserveStack(C,w,E,D){this._parseStack.paused=!0,this._parseStack.cursorStartX=C,this._parseStack.cursorStartY=w,this._parseStack.decodedLength=E,this._parseStack.position=D}_logSlowResolvingAsync(C){this._logService.logLevel<=c.LogLevelEnum.WARN&&Promise.race([C,new Promise((w,E)=>setTimeout(()=>E("#SLOW_TIMEOUT"),5e3))]).catch(w=>{if(w!=="#SLOW_TIMEOUT")throw w;console.warn("async parser handler taking longer than 5000 ms")})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(C,w){let E,D=this._activeBuffer.x,P=this._activeBuffer.y,H=0;const U=this._parseStack.paused;if(U){if(E=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,w))return this._logSlowResolvingAsync(E),E;D=this._parseStack.cursorStartX,P=this._parseStack.cursorStartY,this._parseStack.paused=!1,C.length>b&&(H=this._parseStack.position+b)}if(this._logService.logLevel<=c.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof C=="string"?` "${C}"`:` "${Array.prototype.map.call(C,W=>String.fromCharCode(W)).join("")}"`),typeof C=="string"?C.split("").map(W=>W.charCodeAt(0)):C),this._parseBuffer.lengthb)for(let W=H;W0&&B.getWidth(this._activeBuffer.x-1)===2&&B.setCellFromCodePoint(this._activeBuffer.x-1,0,1,R.fg,R.bg,R.extended);for(let A=w;A=W){if(z){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),B=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=W-1,P===2)continue}if(S&&(B.insertCells(this._activeBuffer.x,P,this._activeBuffer.getNullCell(R),R),B.getWidth(W-1)===2&&B.setCellFromCodePoint(W-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,R.fg,R.bg,R.extended)),B.setCellFromCodePoint(this._activeBuffer.x++,D,P,R.fg,R.bg,R.extended),P>0)for(;--P;)B.setCellFromCodePoint(this._activeBuffer.x++,0,0,R.fg,R.bg,R.extended)}else B.getWidth(this._activeBuffer.x-1)?B.addCodepointToCell(this._activeBuffer.x-1,D):B.addCodepointToCell(this._activeBuffer.x-2,D)}E-w>0&&(B.loadCell(this._activeBuffer.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x0&&B.getWidth(this._activeBuffer.x)===0&&!B.hasContent(this._activeBuffer.x)&&B.setCellFromCodePoint(this._activeBuffer.x,0,1,R.fg,R.bg,R.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(C,w){return C.final!=="t"||C.prefix||C.intermediates?this._parser.registerCsiHandler(C,w):this._parser.registerCsiHandler(C,E=>!L(E.params[0],this._optionsService.rawOptions.windowOptions)||w(E))}registerDcsHandler(C,w){return this._parser.registerDcsHandler(C,new m.DcsHandler(w))}registerEscHandler(C,w){return this._parser.registerEscHandler(C,w)}registerOscHandler(C,w){return this._parser.registerOscHandler(C,new v.OscHandler(w))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var C;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(!((C=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))===null||C===void 0)&&C.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const w=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);w.hasWidth(this._activeBuffer.x)&&!w.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const C=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-C),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(C=this._bufferService.cols-1){this._activeBuffer.x=Math.min(C,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(C,w){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=C,this._activeBuffer.y=this._activeBuffer.scrollTop+w):(this._activeBuffer.x=C,this._activeBuffer.y=w),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(C,w){this._restrictCursor(),this._setCursor(this._activeBuffer.x+C,this._activeBuffer.y+w)}cursorUp(C){const w=this._activeBuffer.y-this._activeBuffer.scrollTop;return w>=0?this._moveCursor(0,-Math.min(w,C.params[0]||1)):this._moveCursor(0,-(C.params[0]||1)),!0}cursorDown(C){const w=this._activeBuffer.scrollBottom-this._activeBuffer.y;return w>=0?this._moveCursor(0,Math.min(w,C.params[0]||1)):this._moveCursor(0,C.params[0]||1),!0}cursorForward(C){return this._moveCursor(C.params[0]||1,0),!0}cursorBackward(C){return this._moveCursor(-(C.params[0]||1),0),!0}cursorNextLine(C){return this.cursorDown(C),this._activeBuffer.x=0,!0}cursorPrecedingLine(C){return this.cursorUp(C),this._activeBuffer.x=0,!0}cursorCharAbsolute(C){return this._setCursor((C.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(C){return this._setCursor(C.length>=2?(C.params[1]||1)-1:0,(C.params[0]||1)-1),!0}charPosAbsolute(C){return this._setCursor((C.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(C){return this._moveCursor(C.params[0]||1,0),!0}linePosAbsolute(C){return this._setCursor(this._activeBuffer.x,(C.params[0]||1)-1),!0}vPositionRelative(C){return this._moveCursor(0,C.params[0]||1),!0}hVPosition(C){return this.cursorPosition(C),!0}tabClear(C){const w=C.params[0];return w===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:w===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(C){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let w=C.params[0]||1;for(;w--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(C){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let w=C.params[0]||1;for(;w--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(C){const w=C.params[0];return w===1&&(this._curAttrData.bg|=536870912),w!==2&&w!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(C,w,E,D=!1,P=!1){const H=this._activeBuffer.lines.get(this._activeBuffer.ybase+C);H.replaceCells(w,E,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),P),D&&(H.isWrapped=!1)}_resetBufferLine(C,w=!1){const E=this._activeBuffer.lines.get(this._activeBuffer.ybase+C);E&&(E.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),w),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+C),E.isWrapped=!1)}eraseInDisplay(C,w=!1){let E;switch(this._restrictCursor(this._bufferService.cols),C.params[0]){case 0:for(E=this._activeBuffer.y,this._dirtyRowTracker.markDirty(E),this._eraseInBufferLine(E++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,w);E=this._bufferService.cols&&(this._activeBuffer.lines.get(E+1).isWrapped=!1);E--;)this._resetBufferLine(E,w);this._dirtyRowTracker.markDirty(0);break;case 2:for(E=this._bufferService.rows,this._dirtyRowTracker.markDirty(E-1);E--;)this._resetBufferLine(E,w);this._dirtyRowTracker.markDirty(0);break;case 3:const D=this._activeBuffer.lines.length-this._bufferService.rows;D>0&&(this._activeBuffer.lines.trimStart(D),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-D,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-D,0),this._onScroll.fire(0))}return!0}eraseInLine(C,w=!1){switch(this._restrictCursor(this._bufferService.cols),C.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,w);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,w);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,w)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(C){this._restrictCursor();let w=C.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(n.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(n.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(C){return C.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(n.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(n.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(C.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(n.C0.ESC+"[>83;40003;0c")),!0}_is(C){return(this._optionsService.rawOptions.termName+"").indexOf(C)===0}setMode(C){for(let w=0;wj?1:2,A=C.params[0];return N=A,F=w?A===2?4:A===4?B(H.modes.insertMode):A===12?3:A===20?B(R.convertEol):0:A===1?B(E.applicationCursorKeys):A===3?R.windowOptions.setWinLines?W===80?2:W===132?1:0:0:A===6?B(E.origin):A===7?B(E.wraparound):A===8?3:A===9?B(D==="X10"):A===12?B(R.cursorBlink):A===25?B(!H.isCursorHidden):A===45?B(E.reverseWraparound):A===66?B(E.applicationKeypad):A===67?4:A===1e3?B(D==="VT200"):A===1002?B(D==="DRAG"):A===1003?B(D==="ANY"):A===1004?B(E.sendFocus):A===1005?4:A===1006?B(P==="SGR"):A===1015?4:A===1016?B(P==="SGR_PIXELS"):A===1048?1:A===47||A===1047||A===1049?B(z===S):A===2004?B(E.bracketedPasteMode):0,H.triggerDataEvent(`${n.C0.ESC}[${w?"":"?"}${N};${F}$y`),!0;var N,F}_updateAttrColor(C,w,E,D,P){return w===2?(C|=50331648,C&=-16777216,C|=o.AttributeData.fromColorRGB([E,D,P])):w===5&&(C&=-50331904,C|=33554432|255&E),C}_extractColor(C,w,E){const D=[0,0,-1,0,0,0];let P=0,H=0;do{if(D[H+P]=C.params[w+H],C.hasSubParams(w+H)){const U=C.getSubParams(w+H);let W=0;do D[1]===5&&(P=1),D[H+W+1+P]=U[W];while(++W=2||D[1]===2&&H+P>=5)break;D[1]&&(P=1)}while(++H+w5)&&(C=1),w.extended.underlineStyle=C,w.fg|=268435456,C===0&&(w.fg&=-268435457),w.updateExtended()}_processSGR0(C){C.fg=e.DEFAULT_ATTR_DATA.fg,C.bg=e.DEFAULT_ATTR_DATA.bg,C.extended=C.extended.clone(),C.extended.underlineStyle=0,C.extended.underlineColor&=-67108864,C.updateExtended()}charAttributes(C){if(C.length===1&&C.params[0]===0)return this._processSGR0(this._curAttrData),!0;const w=C.length;let E;const D=this._curAttrData;for(let P=0;P=30&&E<=37?(D.fg&=-50331904,D.fg|=16777216|E-30):E>=40&&E<=47?(D.bg&=-50331904,D.bg|=16777216|E-40):E>=90&&E<=97?(D.fg&=-50331904,D.fg|=16777224|E-90):E>=100&&E<=107?(D.bg&=-50331904,D.bg|=16777224|E-100):E===0?this._processSGR0(D):E===1?D.fg|=134217728:E===3?D.bg|=67108864:E===4?(D.fg|=268435456,this._processUnderline(C.hasSubParams(P)?C.getSubParams(P)[0]:1,D)):E===5?D.fg|=536870912:E===7?D.fg|=67108864:E===8?D.fg|=1073741824:E===9?D.fg|=2147483648:E===2?D.bg|=134217728:E===21?this._processUnderline(2,D):E===22?(D.fg&=-134217729,D.bg&=-134217729):E===23?D.bg&=-67108865:E===24?(D.fg&=-268435457,this._processUnderline(0,D)):E===25?D.fg&=-536870913:E===27?D.fg&=-67108865:E===28?D.fg&=-1073741825:E===29?D.fg&=2147483647:E===39?(D.fg&=-67108864,D.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):E===49?(D.bg&=-67108864,D.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):E===38||E===48||E===58?P+=this._extractColor(C,P,D):E===53?D.bg|=1073741824:E===55?D.bg&=-1073741825:E===59?(D.extended=D.extended.clone(),D.extended.underlineColor=-1,D.updateExtended()):E===100?(D.fg&=-67108864,D.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,D.bg&=-67108864,D.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",E);return!0}deviceStatus(C){switch(C.params[0]){case 5:this._coreService.triggerDataEvent(`${n.C0.ESC}[0n`);break;case 6:const w=this._activeBuffer.y+1,E=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[${w};${E}R`)}return!0}deviceStatusPrivate(C){if(C.params[0]===6){const w=this._activeBuffer.y+1,E=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[?${w};${E}R`)}return!0}softReset(C){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(C){const w=C.params[0]||1;switch(w){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}const E=w%2==1;return this._optionsService.options.cursorBlink=E,!0}setScrollRegion(C){const w=C.params[0]||1;let E;return(C.length<2||(E=C.params[1])>this._bufferService.rows||E===0)&&(E=this._bufferService.rows),E>w&&(this._activeBuffer.scrollTop=w-1,this._activeBuffer.scrollBottom=E-1,this._setCursor(0,0)),!0}windowOptions(C){if(!L(C.params[0],this._optionsService.rawOptions.windowOptions))return!0;const w=C.length>1?C.params[1]:0;switch(C.params[0]){case 14:w!==2&&this._onRequestWindowsOptionsReport.fire(y.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(y.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${n.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:w!==0&&w!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),w!==0&&w!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:w!==0&&w!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),w!==0&&w!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(C){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(C){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(C){return this._windowTitle=C,this._onTitleChange.fire(C),!0}setIconName(C){return this._iconName=C,!0}setOrReportIndexedColor(C){const w=[],E=C.split(";");for(;E.length>1;){const D=E.shift(),P=E.shift();if(/^\d+$/.exec(D)){const H=parseInt(D);if(O(H))if(P==="?")w.push({type:0,index:H});else{const U=(0,h.parseColor)(P);U&&w.push({type:1,index:H,color:U})}}}return w.length&&this._onColor.fire(w),!0}setHyperlink(C){const w=C.split(";");return!(w.length<2)&&(w[1]?this._createHyperlink(w[0],w[1]):!w[0]&&this._finishHyperlink())}_createHyperlink(C,w){this._getCurrentLinkId()&&this._finishHyperlink();const E=C.split(":");let D;const P=E.findIndex(H=>H.startsWith("id="));return P!==-1&&(D=E[P].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:D,uri:w}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(C,w){const E=C.split(";");for(let D=0;D=this._specialColors.length);++D,++w)if(E[D]==="?")this._onColor.fire([{type:0,index:this._specialColors[w]}]);else{const P=(0,h.parseColor)(E[D]);P&&this._onColor.fire([{type:1,index:this._specialColors[w],color:P}])}return!0}setOrReportFgColor(C){return this._setOrReportSpecialColor(C,0)}setOrReportBgColor(C){return this._setOrReportSpecialColor(C,1)}setOrReportCursorColor(C){return this._setOrReportSpecialColor(C,2)}restoreIndexedColor(C){if(!C)return this._onColor.fire([{type:2}]),!0;const w=[],E=C.split(";");for(let D=0;D=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const C=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,C,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(C){return this._charsetService.setgLevel(C),!0}screenAlignmentPattern(){const C=new i.CellData;C.content=4194304|"E".charCodeAt(0),C.fg=this._curAttrData.fg,C.bg=this._curAttrData.bg,this._setCursor(0,0);for(let w=0;w(this._coreService.triggerDataEvent(`${n.C0.ESC}${P}${n.C0.ESC}\\`),!0))(C==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:C==='"p'?'P1$r61;1"p':C==="r"?`P1$r${E.scrollTop+1};${E.scrollBottom+1}r`:C==="m"?"P1$r0m":C===" q"?`P1$r${{block:2,underline:4,bar:6}[D.cursorStyle]-(D.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(C,w){this._dirtyRowTracker.markRangeDirty(C,w)}}r.InputHandler=x;let T=class{constructor(M){this._bufferService=M,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(M){Mthis.end&&(this.end=M)}markRangeDirty(M,C){M>C&&(k=M,M=C,C=k),Mthis.end&&(this.end=C)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function O(M){return 0<=M&&M<256}T=l([u(0,c.IBufferService)],T)},844:(I,r)=>{function a(l){for(const u of l)u.dispose();l.length=0}Object.defineProperty(r,"__esModule",{value:!0}),r.getDisposeArrayDisposable=r.disposeArray=r.toDisposable=r.MutableDisposable=r.Disposable=void 0,r.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const l of this._disposables)l.dispose();this._disposables.length=0}register(l){return this._disposables.push(l),l}unregister(l){const u=this._disposables.indexOf(l);u!==-1&&this._disposables.splice(u,1)}},r.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(l){var u;this._isDisposed||l===this._value||((u=this._value)===null||u===void 0||u.dispose(),this._value=l)}clear(){this.value=void 0}dispose(){var l;this._isDisposed=!0,(l=this._value)===null||l===void 0||l.dispose(),this._value=void 0}},r.toDisposable=function(l){return{dispose:l}},r.disposeArray=a,r.getDisposeArrayDisposable=function(l){return{dispose:()=>a(l)}}},1505:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.FourKeyMap=r.TwoKeyMap=void 0;class a{constructor(){this._data={}}set(u,n,d){this._data[u]||(this._data[u]={}),this._data[u][n]=d}get(u,n){return this._data[u]?this._data[u][n]:void 0}clear(){this._data={}}}r.TwoKeyMap=a,r.FourKeyMap=class{constructor(){this._data=new a}set(l,u,n,d,f){this._data.get(l,u)||this._data.set(l,u,new a),this._data.get(l,u).set(n,d,f)}get(l,u,n,d){var f;return(f=this._data.get(l,u))===null||f===void 0?void 0:f.get(n,d)}clear(){this._data.clear()}}},6114:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.isChromeOS=r.isLinux=r.isWindows=r.isIphone=r.isIpad=r.isMac=r.getSafariVersion=r.isSafari=r.isLegacyEdge=r.isFirefox=r.isNode=void 0,r.isNode=typeof navigator>"u";const a=r.isNode?"node":navigator.userAgent,l=r.isNode?"node":navigator.platform;r.isFirefox=a.includes("Firefox"),r.isLegacyEdge=a.includes("Edge"),r.isSafari=/^((?!chrome|android).)*safari/i.test(a),r.getSafariVersion=function(){if(!r.isSafari)return 0;const u=a.match(/Version\/(\d+)/);return u===null||u.length<2?0:parseInt(u[1])},r.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(l),r.isIpad=l==="iPad",r.isIphone=l==="iPhone",r.isWindows=["Windows","Win16","Win32","WinCE"].includes(l),r.isLinux=l.indexOf("Linux")>=0,r.isChromeOS=/\bCrOS\b/.test(a)},6106:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.SortedList=void 0;let a=0;r.SortedList=class{constructor(l){this._getKey=l,this._array=[]}clear(){this._array.length=0}insert(l){this._array.length!==0?(a=this._search(this._getKey(l)),this._array.splice(a,0,l)):this._array.push(l)}delete(l){if(this._array.length===0)return!1;const u=this._getKey(l);if(u===void 0||(a=this._search(u),a===-1)||this._getKey(this._array[a])!==u)return!1;do if(this._array[a]===l)return this._array.splice(a,1),!0;while(++a=this._array.length)&&this._getKey(this._array[a])===l))do yield this._array[a];while(++a=this._array.length)&&this._getKey(this._array[a])===l))do u(this._array[a]);while(++a=u;){let d=u+n>>1;const f=this._getKey(this._array[d]);if(f>l)n=d-1;else{if(!(f0&&this._getKey(this._array[d-1])===l;)d--;return d}u=d+1}}return u}}},7226:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DebouncedIdleTask=r.IdleTaskQueue=r.PriorityTaskQueue=void 0;const l=a(6114);class u{constructor(){this._tasks=[],this._i=0}enqueue(f){this._tasks.push(f),this._start()}flush(){for(;this._is)return e-p<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(e-p))}ms`),void this._start();e=s}this.clear()}}class n extends u{_requestCallback(f){return setTimeout(()=>f(this._createDeadline(16)))}_cancelCallback(f){clearTimeout(f)}_createDeadline(f){const p=Date.now()+f;return{timeRemaining:()=>Math.max(0,p-Date.now())}}}r.PriorityTaskQueue=n,r.IdleTaskQueue=!l.isNode&&"requestIdleCallback"in window?class extends u{_requestCallback(d){return requestIdleCallback(d)}_cancelCallback(d){cancelIdleCallback(d)}}:n,r.DebouncedIdleTask=class{constructor(){this._queue=new r.IdleTaskQueue}set(d){this._queue.clear(),this._queue.enqueue(d)}flush(){this._queue.flush()}}},9282:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.updateWindowsModeWrappedState=void 0;const l=a(643);r.updateWindowsModeWrappedState=function(u){const n=u.buffer.lines.get(u.buffer.ybase+u.buffer.y-1),d=n==null?void 0:n.get(u.cols-1),f=u.buffer.lines.get(u.buffer.ybase+u.buffer.y);f&&d&&(f.isWrapped=d[l.CHAR_DATA_CODE_INDEX]!==l.NULL_CELL_CODE&&d[l.CHAR_DATA_CODE_INDEX]!==l.WHITESPACE_CELL_CODE)}},3734:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ExtendedAttrs=r.AttributeData=void 0;class a{constructor(){this.fg=0,this.bg=0,this.extended=new l}static toColorRGB(n){return[n>>>16&255,n>>>8&255,255&n]}static fromColorRGB(n){return(255&n[0])<<16|(255&n[1])<<8|255&n[2]}clone(){const n=new a;return n.fg=this.fg,n.bg=this.bg,n.extended=this.extended.clone(),n}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}r.AttributeData=a;class l{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(n){this._ext=n}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(n){this._ext&=-469762049,this._ext|=n<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(n){this._ext&=-67108864,this._ext|=67108863&n}get urlId(){return this._urlId}set urlId(n){this._urlId=n}constructor(n=0,d=0){this._ext=0,this._urlId=0,this._ext=n,this._urlId=d}clone(){return new l(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}r.ExtendedAttrs=l},9092:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Buffer=r.MAX_BUFFER_SIZE=void 0;const l=a(6349),u=a(7226),n=a(3734),d=a(8437),f=a(4634),p=a(511),_=a(643),e=a(4863),s=a(7116);r.MAX_BUFFER_SIZE=4294967295,r.Buffer=class{constructor(t,i,o){this._hasScrollback=t,this._optionsService=i,this._bufferService=o,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=d.DEFAULT_ATTR_DATA.clone(),this.savedCharset=s.DEFAULT_CHARSET,this.markers=[],this._nullCell=p.CellData.fromCharData([0,_.NULL_CELL_CHAR,_.NULL_CELL_WIDTH,_.NULL_CELL_CODE]),this._whitespaceCell=p.CellData.fromCharData([0,_.WHITESPACE_CELL_CHAR,_.WHITESPACE_CELL_WIDTH,_.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new u.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new l.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(t){return t?(this._nullCell.fg=t.fg,this._nullCell.bg=t.bg,this._nullCell.extended=t.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new n.ExtendedAttrs),this._nullCell}getWhitespaceCell(t){return t?(this._whitespaceCell.fg=t.fg,this._whitespaceCell.bg=t.bg,this._whitespaceCell.extended=t.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new n.ExtendedAttrs),this._whitespaceCell}getBlankLine(t,i){return new d.BufferLine(this._bufferService.cols,this.getNullCell(t),i)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const t=this.ybase+this.y-this.ydisp;return t>=0&&tr.MAX_BUFFER_SIZE?r.MAX_BUFFER_SIZE:i}fillViewportRows(t){if(this.lines.length===0){t===void 0&&(t=d.DEFAULT_ATTR_DATA);let i=this._rows;for(;i--;)this.lines.push(this.getBlankLine(t))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new l.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(t,i){const o=this.getNullCell(d.DEFAULT_ATTR_DATA);let c=0;const v=this._getCorrectBufferLength(i);if(v>this.lines.maxLength&&(this.lines.maxLength=v),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+m+1?(this.ybase--,m++,this.ydisp>0&&this.ydisp--):this.lines.push(new d.BufferLine(t,o)));else for(let h=this._rows;h>i;h--)this.lines.length>i+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(v0&&(this.lines.trimStart(h),this.ybase=Math.max(this.ybase-h,0),this.ydisp=Math.max(this.ydisp-h,0),this.savedY=Math.max(this.savedY-h,0)),this.lines.maxLength=v}this.x=Math.min(this.x,t-1),this.y=Math.min(this.y,i-1),m&&(this.y+=m),this.savedX=Math.min(this.savedX,t-1),this.scrollTop=0}if(this.scrollBottom=i-1,this._isReflowEnabled&&(this._reflow(t,i),this._cols>t))for(let m=0;m.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let t=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,t=!1);let i=0;for(;this._memoryCleanupPosition100)return!0;return t}get _isReflowEnabled(){const t=this._optionsService.rawOptions.windowsPty;return t&&t.buildNumber?this._hasScrollback&&t.backend==="conpty"&&t.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(t,i){this._cols!==t&&(t>this._cols?this._reflowLarger(t,i):this._reflowSmaller(t,i))}_reflowLarger(t,i){const o=(0,f.reflowLargerGetLinesToRemove)(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(d.DEFAULT_ATTR_DATA));if(o.length>0){const c=(0,f.reflowLargerCreateNewLayout)(this.lines,o);(0,f.reflowLargerApplyNewLayout)(this.lines,c.layout),this._reflowLargerAdjustViewport(t,i,c.countRemoved)}}_reflowLargerAdjustViewport(t,i,o){const c=this.getNullCell(d.DEFAULT_ATTR_DATA);let v=o;for(;v-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;m--){let h=this.lines.get(m);if(!h||!h.isWrapped&&h.getTrimmedLength()<=t)continue;const g=[h];for(;h.isWrapped&&m>0;)h=this.lines.get(--m),g.unshift(h);const b=this.ybase+this.y;if(b>=m&&b0&&(c.push({start:m+g.length+v,newLines:T}),v+=T.length),g.push(...T);let O=y.length-1,M=y[O];M===0&&(O--,M=y[O]);let C=g.length-k-1,w=L;for(;C>=0;){const D=Math.min(w,M);if(g[O]===void 0)break;if(g[O].copyCellsFrom(g[C],w-D,M-D,D,!0),M-=D,M===0&&(O--,M=y[O]),w-=D,w===0){C--;const P=Math.max(C,0);w=(0,f.getWrappedLineTrimmedLength)(g,P,this._cols)}}for(let D=0;D0;)this.ybase===0?this.y0){const m=[],h=[];for(let O=0;O=0;O--)if(y&&y.start>b+k){for(let M=y.newLines.length-1;M>=0;M--)this.lines.set(O--,y.newLines[M]);O++,m.push({index:b+1,amount:y.newLines.length}),k+=y.newLines.length,y=c[++L]}else this.lines.set(O,h[b--]);let x=0;for(let O=m.length-1;O>=0;O--)m[O].index+=x,this.lines.onInsertEmitter.fire(m[O]),x+=m[O].amount;const T=Math.max(0,g+v-this.lines.maxLength);T>0&&this.lines.onTrimEmitter.fire(T)}}translateBufferLineToString(t,i,o=0,c){const v=this.lines.get(t);return v?v.translateToString(i,o,c):""}getWrappedRangeForLine(t){let i=t,o=t;for(;i>0&&this.lines.get(i).isWrapped;)i--;for(;o+10;);return t>=this._cols?this._cols-1:t<0?0:t}nextStop(t){for(t==null&&(t=this.x);!this.tabs[++t]&&t=this._cols?this._cols-1:t<0?0:t}clearMarkers(t){this._isClearing=!0;for(let i=0;i{i.line-=o,i.line<0&&i.dispose()})),i.register(this.lines.onInsert(o=>{i.line>=o.index&&(i.line+=o.amount)})),i.register(this.lines.onDelete(o=>{i.line>=o.index&&i.lineo.index&&(i.line-=o.amount)})),i.register(i.onDispose(()=>this._removeMarker(i))),i}_removeMarker(t){this._isClearing||this.markers.splice(this.markers.indexOf(t),1)}}},8437:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferLine=r.DEFAULT_ATTR_DATA=void 0;const l=a(3734),u=a(511),n=a(643),d=a(482);r.DEFAULT_ATTR_DATA=Object.freeze(new l.AttributeData);let f=0;class p{constructor(e,s,t=!1){this.isWrapped=t,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);const i=s||u.CellData.fromCharData([0,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE]);for(let o=0;o>22,2097152&s?this._combined[e].charCodeAt(this._combined[e].length-1):t]}set(e,s){this._data[3*e+1]=s[n.CHAR_DATA_ATTR_INDEX],s[n.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=s[1],this._data[3*e+0]=2097152|e|s[n.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=s[n.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|s[n.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(e){return this._data[3*e+0]>>22}hasWidth(e){return 12582912&this._data[3*e+0]}getFg(e){return this._data[3*e+1]}getBg(e){return this._data[3*e+2]}hasContent(e){return 4194303&this._data[3*e+0]}getCodePoint(e){const s=this._data[3*e+0];return 2097152&s?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&s}isCombined(e){return 2097152&this._data[3*e+0]}getString(e){const s=this._data[3*e+0];return 2097152&s?this._combined[e]:2097151&s?(0,d.stringFromCodePoint)(2097151&s):""}isProtected(e){return 536870912&this._data[3*e+2]}loadCell(e,s){return f=3*e,s.content=this._data[f+0],s.fg=this._data[f+1],s.bg=this._data[f+2],2097152&s.content&&(s.combinedData=this._combined[e]),268435456&s.bg&&(s.extended=this._extendedAttrs[e]),s}setCell(e,s){2097152&s.content&&(this._combined[e]=s.combinedData),268435456&s.bg&&(this._extendedAttrs[e]=s.extended),this._data[3*e+0]=s.content,this._data[3*e+1]=s.fg,this._data[3*e+2]=s.bg}setCellFromCodePoint(e,s,t,i,o,c){268435456&o&&(this._extendedAttrs[e]=c),this._data[3*e+0]=s|t<<22,this._data[3*e+1]=i,this._data[3*e+2]=o}addCodepointToCell(e,s){let t=this._data[3*e+0];2097152&t?this._combined[e]+=(0,d.stringFromCodePoint)(s):(2097151&t?(this._combined[e]=(0,d.stringFromCodePoint)(2097151&t)+(0,d.stringFromCodePoint)(s),t&=-2097152,t|=2097152):t=s|4194304,this._data[3*e+0]=t)}insertCells(e,s,t,i){if((e%=this.length)&&this.getWidth(e-1)===2&&this.setCellFromCodePoint(e-1,0,1,(i==null?void 0:i.fg)||0,(i==null?void 0:i.bg)||0,(i==null?void 0:i.extended)||new l.ExtendedAttrs),s=0;--c)this.setCell(e+s+c,this.loadCell(e+c,o));for(let c=0;cthis.length){if(this._data.buffer.byteLength>=4*t)this._data=new Uint32Array(this._data.buffer,0,t);else{const i=new Uint32Array(t);i.set(this._data),this._data=i}for(let i=this.length;i=e&&delete this._combined[v]}const o=Object.keys(this._extendedAttrs);for(let c=0;c=e&&delete this._extendedAttrs[v]}}return this.length=e,4*t*2=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}getNoBgTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0]||50331648&this._data[3*e+2])return e+(this._data[3*e+0]>>22);return 0}copyCellsFrom(e,s,t,i,o){const c=e._data;if(o)for(let m=i-1;m>=0;m--){for(let h=0;h<3;h++)this._data[3*(t+m)+h]=c[3*(s+m)+h];268435456&c[3*(s+m)+2]&&(this._extendedAttrs[t+m]=e._extendedAttrs[s+m])}else for(let m=0;m=s&&(this._combined[h-s+t]=e._combined[h])}}translateToString(e=!1,s=0,t=this.length){e&&(t=Math.min(t,this.getTrimmedLength()));let i="";for(;s>22||1}return i}}r.BufferLine=p},4841:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.getRangeLength=void 0,r.getRangeLength=function(a,l){if(a.start.y>a.end.y)throw new Error(`Buffer range end (${a.end.x}, ${a.end.y}) cannot be before start (${a.start.x}, ${a.start.y})`);return l*(a.end.y-a.start.y)+(a.end.x-a.start.x+1)}},4634:(I,r)=>{function a(l,u,n){if(u===l.length-1)return l[u].getTrimmedLength();const d=!l[u].hasContent(n-1)&&l[u].getWidth(n-1)===1,f=l[u+1].getWidth(0)===2;return d&&f?n-1:n}Object.defineProperty(r,"__esModule",{value:!0}),r.getWrappedLineTrimmedLength=r.reflowSmallerGetNewLineLengths=r.reflowLargerApplyNewLayout=r.reflowLargerCreateNewLayout=r.reflowLargerGetLinesToRemove=void 0,r.reflowLargerGetLinesToRemove=function(l,u,n,d,f){const p=[];for(let _=0;_=_&&d0&&(h>i||t[h].getTrimmedLength()===0);h--)m++;m>0&&(p.push(_+t.length-m),p.push(m)),_+=t.length-1}return p},r.reflowLargerCreateNewLayout=function(l,u){const n=[];let d=0,f=u[d],p=0;for(let _=0;_a(l,t,u)).reduce((s,t)=>s+t);let p=0,_=0,e=0;for(;es&&(p-=s,_++);const t=l[_].getWidth(p-1)===2;t&&p--;const i=t?n-1:n;d.push(i),e+=i}return d},r.getWrappedLineTrimmedLength=a},5295:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferSet=void 0;const l=a(8460),u=a(844),n=a(9092);class d extends u.Disposable{constructor(p,_){super(),this._optionsService=p,this._bufferService=_,this._onBufferActivate=this.register(new l.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",()=>this.setupTabStops()))}reset(){this._normal=new n.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new n.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(p){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(p),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(p,_){this._normal.resize(p,_),this._alt.resize(p,_),this.setupTabStops(p)}setupTabStops(p){this._normal.setupTabStops(p),this._alt.setupTabStops(p)}}r.BufferSet=d},511:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CellData=void 0;const l=a(482),u=a(643),n=a(3734);class d extends n.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new n.ExtendedAttrs,this.combinedData=""}static fromCharData(p){const _=new d;return _.setFromCharData(p),_}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,l.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(p){this.fg=p[u.CHAR_DATA_ATTR_INDEX],this.bg=0;let _=!1;if(p[u.CHAR_DATA_CHAR_INDEX].length>2)_=!0;else if(p[u.CHAR_DATA_CHAR_INDEX].length===2){const e=p[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=e&&e<=56319){const s=p[u.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=s&&s<=57343?this.content=1024*(e-55296)+s-56320+65536|p[u.CHAR_DATA_WIDTH_INDEX]<<22:_=!0}else _=!0}else this.content=p[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|p[u.CHAR_DATA_WIDTH_INDEX]<<22;_&&(this.combinedData=p[u.CHAR_DATA_CHAR_INDEX],this.content=2097152|p[u.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}r.CellData=d},643:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.WHITESPACE_CELL_CODE=r.WHITESPACE_CELL_WIDTH=r.WHITESPACE_CELL_CHAR=r.NULL_CELL_CODE=r.NULL_CELL_WIDTH=r.NULL_CELL_CHAR=r.CHAR_DATA_CODE_INDEX=r.CHAR_DATA_WIDTH_INDEX=r.CHAR_DATA_CHAR_INDEX=r.CHAR_DATA_ATTR_INDEX=r.DEFAULT_EXT=r.DEFAULT_ATTR=r.DEFAULT_COLOR=void 0,r.DEFAULT_COLOR=0,r.DEFAULT_ATTR=256|r.DEFAULT_COLOR<<9,r.DEFAULT_EXT=0,r.CHAR_DATA_ATTR_INDEX=0,r.CHAR_DATA_CHAR_INDEX=1,r.CHAR_DATA_WIDTH_INDEX=2,r.CHAR_DATA_CODE_INDEX=3,r.NULL_CELL_CHAR="",r.NULL_CELL_WIDTH=1,r.NULL_CELL_CODE=0,r.WHITESPACE_CELL_CHAR=" ",r.WHITESPACE_CELL_WIDTH=1,r.WHITESPACE_CELL_CODE=32},4863:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Marker=void 0;const l=a(8460),u=a(844);class n{get id(){return this._id}constructor(f){this.line=f,this.isDisposed=!1,this._disposables=[],this._id=n._nextId++,this._onDispose=this.register(new l.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,u.disposeArray)(this._disposables),this._disposables.length=0)}register(f){return this._disposables.push(f),f}}r.Marker=n,n._nextId=1},7116:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_CHARSET=r.CHARSETS=void 0,r.CHARSETS={},r.DEFAULT_CHARSET=r.CHARSETS.B,r.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"␤",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},r.CHARSETS.A={"#":"£"},r.CHARSETS.B=void 0,r.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},r.CHARSETS.C=r.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},r.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},r.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},r.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},r.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},r.CHARSETS.E=r.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},r.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},r.CHARSETS.H=r.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},r.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(I,r)=>{var a,l,u;Object.defineProperty(r,"__esModule",{value:!0}),r.C1_ESCAPED=r.C1=r.C0=void 0,function(n){n.NUL="\0",n.SOH="",n.STX="",n.ETX="",n.EOT="",n.ENQ="",n.ACK="",n.BEL="\x07",n.BS="\b",n.HT=" ",n.LF=` `,n.VT="\v",n.FF="\f",n.CR="\r",n.SO="",n.SI="",n.DLE="",n.DC1="",n.DC2="",n.DC3="",n.DC4="",n.NAK="",n.SYN="",n.ETB="",n.CAN="",n.EM="",n.SUB="",n.ESC="\x1B",n.FS="",n.GS="",n.RS="",n.US="",n.SP=" ",n.DEL=""}(a||(r.C0=a={})),function(n){n.PAD="€",n.HOP="",n.BPH="‚",n.NBH="ƒ",n.IND="„",n.NEL="…",n.SSA="†",n.ESA="‡",n.HTS="ˆ",n.HTJ="‰",n.VTS="Š",n.PLD="‹",n.PLU="Œ",n.RI="",n.SS2="Ž",n.SS3="",n.DCS="",n.PU1="‘",n.PU2="’",n.STS="“",n.CCH="”",n.MW="•",n.SPA="–",n.EPA="—",n.SOS="˜",n.SGCI="™",n.SCI="š",n.CSI="›",n.ST="œ",n.OSC="",n.PM="ž",n.APC="Ÿ"}(l||(r.C1=l={})),function(n){n.ST=`${a.ESC}\\`}(u||(r.C1_ESCAPED=u={}))},7399:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.evaluateKeyboardEvent=void 0;const l=a(2584),u={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};r.evaluateKeyboardEvent=function(n,d,f,p){const _={type:0,cancel:!1,key:void 0},e=(n.shiftKey?1:0)|(n.altKey?2:0)|(n.ctrlKey?4:0)|(n.metaKey?8:0);switch(n.keyCode){case 0:n.key==="UIKeyInputUpArrow"?_.key=d?l.C0.ESC+"OA":l.C0.ESC+"[A":n.key==="UIKeyInputLeftArrow"?_.key=d?l.C0.ESC+"OD":l.C0.ESC+"[D":n.key==="UIKeyInputRightArrow"?_.key=d?l.C0.ESC+"OC":l.C0.ESC+"[C":n.key==="UIKeyInputDownArrow"&&(_.key=d?l.C0.ESC+"OB":l.C0.ESC+"[B");break;case 8:if(n.altKey){_.key=l.C0.ESC+l.C0.DEL;break}_.key=l.C0.DEL;break;case 9:if(n.shiftKey){_.key=l.C0.ESC+"[Z";break}_.key=l.C0.HT,_.cancel=!0;break;case 13:_.key=n.altKey?l.C0.ESC+l.C0.CR:l.C0.CR,_.cancel=!0;break;case 27:_.key=l.C0.ESC,n.altKey&&(_.key=l.C0.ESC+l.C0.ESC),_.cancel=!0;break;case 37:if(n.metaKey)break;e?(_.key=l.C0.ESC+"[1;"+(e+1)+"D",_.key===l.C0.ESC+"[1;3D"&&(_.key=l.C0.ESC+(f?"b":"[1;5D"))):_.key=d?l.C0.ESC+"OD":l.C0.ESC+"[D";break;case 39:if(n.metaKey)break;e?(_.key=l.C0.ESC+"[1;"+(e+1)+"C",_.key===l.C0.ESC+"[1;3C"&&(_.key=l.C0.ESC+(f?"f":"[1;5C"))):_.key=d?l.C0.ESC+"OC":l.C0.ESC+"[C";break;case 38:if(n.metaKey)break;e?(_.key=l.C0.ESC+"[1;"+(e+1)+"A",f||_.key!==l.C0.ESC+"[1;3A"||(_.key=l.C0.ESC+"[1;5A")):_.key=d?l.C0.ESC+"OA":l.C0.ESC+"[A";break;case 40:if(n.metaKey)break;e?(_.key=l.C0.ESC+"[1;"+(e+1)+"B",f||_.key!==l.C0.ESC+"[1;3B"||(_.key=l.C0.ESC+"[1;5B")):_.key=d?l.C0.ESC+"OB":l.C0.ESC+"[B";break;case 45:n.shiftKey||n.ctrlKey||(_.key=l.C0.ESC+"[2~");break;case 46:_.key=e?l.C0.ESC+"[3;"+(e+1)+"~":l.C0.ESC+"[3~";break;case 36:_.key=e?l.C0.ESC+"[1;"+(e+1)+"H":d?l.C0.ESC+"OH":l.C0.ESC+"[H";break;case 35:_.key=e?l.C0.ESC+"[1;"+(e+1)+"F":d?l.C0.ESC+"OF":l.C0.ESC+"[F";break;case 33:n.shiftKey?_.type=2:n.ctrlKey?_.key=l.C0.ESC+"[5;"+(e+1)+"~":_.key=l.C0.ESC+"[5~";break;case 34:n.shiftKey?_.type=3:n.ctrlKey?_.key=l.C0.ESC+"[6;"+(e+1)+"~":_.key=l.C0.ESC+"[6~";break;case 112:_.key=e?l.C0.ESC+"[1;"+(e+1)+"P":l.C0.ESC+"OP";break;case 113:_.key=e?l.C0.ESC+"[1;"+(e+1)+"Q":l.C0.ESC+"OQ";break;case 114:_.key=e?l.C0.ESC+"[1;"+(e+1)+"R":l.C0.ESC+"OR";break;case 115:_.key=e?l.C0.ESC+"[1;"+(e+1)+"S":l.C0.ESC+"OS";break;case 116:_.key=e?l.C0.ESC+"[15;"+(e+1)+"~":l.C0.ESC+"[15~";break;case 117:_.key=e?l.C0.ESC+"[17;"+(e+1)+"~":l.C0.ESC+"[17~";break;case 118:_.key=e?l.C0.ESC+"[18;"+(e+1)+"~":l.C0.ESC+"[18~";break;case 119:_.key=e?l.C0.ESC+"[19;"+(e+1)+"~":l.C0.ESC+"[19~";break;case 120:_.key=e?l.C0.ESC+"[20;"+(e+1)+"~":l.C0.ESC+"[20~";break;case 121:_.key=e?l.C0.ESC+"[21;"+(e+1)+"~":l.C0.ESC+"[21~";break;case 122:_.key=e?l.C0.ESC+"[23;"+(e+1)+"~":l.C0.ESC+"[23~";break;case 123:_.key=e?l.C0.ESC+"[24;"+(e+1)+"~":l.C0.ESC+"[24~";break;default:if(!n.ctrlKey||n.shiftKey||n.altKey||n.metaKey)if(f&&!p||!n.altKey||n.metaKey)!f||n.altKey||n.ctrlKey||n.shiftKey||!n.metaKey?n.key&&!n.ctrlKey&&!n.altKey&&!n.metaKey&&n.keyCode>=48&&n.key.length===1?_.key=n.key:n.key&&n.ctrlKey&&(n.key==="_"&&(_.key=l.C0.US),n.key==="@"&&(_.key=l.C0.NUL)):n.keyCode===65&&(_.type=1);else{const s=u[n.keyCode],t=s==null?void 0:s[n.shiftKey?1:0];if(t)_.key=l.C0.ESC+t;else if(n.keyCode>=65&&n.keyCode<=90){const i=n.ctrlKey?n.keyCode-64:n.keyCode+32;let o=String.fromCharCode(i);n.shiftKey&&(o=o.toUpperCase()),_.key=l.C0.ESC+o}else if(n.keyCode===32)_.key=l.C0.ESC+(n.ctrlKey?l.C0.NUL:" ");else if(n.key==="Dead"&&n.code.startsWith("Key")){let i=n.code.slice(3,4);n.shiftKey||(i=i.toLowerCase()),_.key=l.C0.ESC+i,_.cancel=!0}}else n.keyCode>=65&&n.keyCode<=90?_.key=String.fromCharCode(n.keyCode-64):n.keyCode===32?_.key=l.C0.NUL:n.keyCode>=51&&n.keyCode<=55?_.key=String.fromCharCode(n.keyCode-51+27):n.keyCode===56?_.key=l.C0.DEL:n.keyCode===219?_.key=l.C0.ESC:n.keyCode===220?_.key=l.C0.FS:n.keyCode===221&&(_.key=l.C0.GS)}return _}},482:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Utf8ToUtf32=r.StringToUtf32=r.utf32ToString=r.stringFromCodePoint=void 0,r.stringFromCodePoint=function(a){return a>65535?(a-=65536,String.fromCharCode(55296+(a>>10))+String.fromCharCode(a%1024+56320)):String.fromCharCode(a)},r.utf32ToString=function(a,l=0,u=a.length){let n="";for(let d=l;d65535?(f-=65536,n+=String.fromCharCode(55296+(f>>10))+String.fromCharCode(f%1024+56320)):n+=String.fromCharCode(f)}return n},r.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(a,l){const u=a.length;if(!u)return 0;let n=0,d=0;if(this._interim){const f=a.charCodeAt(d++);56320<=f&&f<=57343?l[n++]=1024*(this._interim-55296)+f-56320+65536:(l[n++]=this._interim,l[n++]=f),this._interim=0}for(let f=d;f=u)return this._interim=p,n;const _=a.charCodeAt(f);56320<=_&&_<=57343?l[n++]=1024*(p-55296)+_-56320+65536:(l[n++]=p,l[n++]=_)}else p!==65279&&(l[n++]=p)}return n}},r.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(a,l){const u=a.length;if(!u)return 0;let n,d,f,p,_=0,e=0,s=0;if(this.interim[0]){let o=!1,c=this.interim[0];c&=(224&c)==192?31:(240&c)==224?15:7;let v,m=0;for(;(v=63&this.interim[++m])&&m<4;)c<<=6,c|=v;const h=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,g=h-m;for(;s=u)return 0;if(v=a[s++],(192&v)!=128){s--,o=!0;break}this.interim[m++]=v,c<<=6,c|=63&v}o||(h===2?c<128?s--:l[_++]=c:h===3?c<2048||c>=55296&&c<=57343||c===65279||(l[_++]=c):c<65536||c>1114111||(l[_++]=c)),this.interim.fill(0)}const t=u-4;let i=s;for(;i=u)return this.interim[0]=n,_;if(d=a[i++],(192&d)!=128){i--;continue}if(e=(31&n)<<6|63&d,e<128){i--;continue}l[_++]=e}else if((240&n)==224){if(i>=u)return this.interim[0]=n,_;if(d=a[i++],(192&d)!=128){i--;continue}if(i>=u)return this.interim[0]=n,this.interim[1]=d,_;if(f=a[i++],(192&f)!=128){i--;continue}if(e=(15&n)<<12|(63&d)<<6|63&f,e<2048||e>=55296&&e<=57343||e===65279)continue;l[_++]=e}else if((248&n)==240){if(i>=u)return this.interim[0]=n,_;if(d=a[i++],(192&d)!=128){i--;continue}if(i>=u)return this.interim[0]=n,this.interim[1]=d,_;if(f=a[i++],(192&f)!=128){i--;continue}if(i>=u)return this.interim[0]=n,this.interim[1]=d,this.interim[2]=f,_;if(p=a[i++],(192&p)!=128){i--;continue}if(e=(7&n)<<18|(63&d)<<12|(63&f)<<6|63&p,e<65536||e>1114111)continue;l[_++]=e}}return _}}},225:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeV6=void 0;const a=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],l=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let u;r.UnicodeV6=class{constructor(){if(this.version="6",!u){u=new Uint8Array(65536),u.fill(1),u[0]=0,u.fill(0,1,32),u.fill(0,127,160),u.fill(2,4352,4448),u[9001]=2,u[9002]=2,u.fill(2,11904,42192),u[12351]=1,u.fill(2,44032,55204),u.fill(2,63744,64256),u.fill(2,65040,65050),u.fill(2,65072,65136),u.fill(2,65280,65377),u.fill(2,65504,65511);for(let n=0;nf[e][1])return!1;for(;e>=_;)if(p=_+e>>1,d>f[p][1])_=p+1;else{if(!(d=131072&&n<=196605||n>=196608&&n<=262141?2:1}}},5981:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.WriteBuffer=void 0;const l=a(8460),u=a(844);class n extends u.Disposable{constructor(f){super(),this._action=f,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new l.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(f,p){if(p!==void 0&&this._syncCalls>p)return void(this._syncCalls=0);if(this._pendingData+=f.length,this._writeBuffer.push(f),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let _;for(this._isSyncWriting=!0;_=this._writeBuffer.shift();){this._action(_);const e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(f,p){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=f.length,this._writeBuffer.push(f),this._callbacks.push(p),void this._innerWrite();setTimeout(()=>this._innerWrite())}this._pendingData+=f.length,this._writeBuffer.push(f),this._callbacks.push(p)}_innerWrite(f=0,p=!0){const _=f||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const e=this._writeBuffer[this._bufferOffset],s=this._action(e,p);if(s){const i=o=>Date.now()-_>=12?setTimeout(()=>this._innerWrite(0,o)):this._innerWrite(_,o);return void s.catch(o=>(queueMicrotask(()=>{throw o}),Promise.resolve(!1))).then(i)}const t=this._callbacks[this._bufferOffset];if(t&&t(),this._bufferOffset++,this._pendingData-=e.length,Date.now()-_>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}r.WriteBuffer=n},5941:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.toRgbString=r.parseColor=void 0;const a=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,l=/^[\da-f]+$/;function u(n,d){const f=n.toString(16),p=f.length<2?"0"+f:f;switch(d){case 4:return f[0];case 8:return p;case 12:return(p+p).slice(0,3);default:return p+p}}r.parseColor=function(n){if(!n)return;let d=n.toLowerCase();if(d.indexOf("rgb:")===0){d=d.slice(4);const f=a.exec(d);if(f){const p=f[1]?15:f[4]?255:f[7]?4095:65535;return[Math.round(parseInt(f[1]||f[4]||f[7]||f[10],16)/p*255),Math.round(parseInt(f[2]||f[5]||f[8]||f[11],16)/p*255),Math.round(parseInt(f[3]||f[6]||f[9]||f[12],16)/p*255)]}}else if(d.indexOf("#")===0&&(d=d.slice(1),l.exec(d)&&[3,6,9,12].includes(d.length))){const f=d.length/3,p=[0,0,0];for(let _=0;_<3;++_){const e=parseInt(d.slice(f*_,f*_+f),16);p[_]=f===1?e<<4:f===2?e:f===3?e>>4:e>>8}return p}},r.toRgbString=function(n,d=16){const[f,p,_]=n;return`rgb:${u(f,d)}/${u(p,d)}/${u(_,d)}`}},5770:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PAYLOAD_LIMIT=void 0,r.PAYLOAD_LIMIT=1e7},6351:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DcsHandler=r.DcsParser=void 0;const l=a(482),u=a(8742),n=a(5770),d=[];r.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=d,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=d}registerHandler(p,_){this._handlers[p]===void 0&&(this._handlers[p]=[]);const e=this._handlers[p];return e.push(_),{dispose:()=>{const s=e.indexOf(_);s!==-1&&e.splice(s,1)}}}clearHandler(p){this._handlers[p]&&delete this._handlers[p]}setHandlerFallback(p){this._handlerFb=p}reset(){if(this._active.length)for(let p=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;p>=0;--p)this._active[p].unhook(!1);this._stack.paused=!1,this._active=d,this._ident=0}hook(p,_){if(this.reset(),this._ident=p,this._active=this._handlers[p]||d,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].hook(_);else this._handlerFb(this._ident,"HOOK",_)}put(p,_,e){if(this._active.length)for(let s=this._active.length-1;s>=0;s--)this._active[s].put(p,_,e);else this._handlerFb(this._ident,"PUT",(0,l.utf32ToString)(p,_,e))}unhook(p,_=!0){if(this._active.length){let e=!1,s=this._active.length-1,t=!1;if(this._stack.paused&&(s=this._stack.loopPosition-1,e=_,t=this._stack.fallThrough,this._stack.paused=!1),!t&&e===!1){for(;s>=0&&(e=this._active[s].unhook(p),e!==!0);s--)if(e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!1,e;s--}for(;s>=0;s--)if(e=this._active[s].unhook(!1),e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!0,e}else this._handlerFb(this._ident,"UNHOOK",p);this._active=d,this._ident=0}};const f=new u.Params;f.addParam(0),r.DcsHandler=class{constructor(p){this._handler=p,this._data="",this._params=f,this._hitLimit=!1}hook(p){this._params=p.length>1||p.params[0]?p.clone():f,this._data="",this._hitLimit=!1}put(p,_,e){this._hitLimit||(this._data+=(0,l.utf32ToString)(p,_,e),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(p){let _=!1;if(this._hitLimit)_=!1;else if(p&&(_=this._handler(this._data,this._params),_ instanceof Promise))return _.then(e=>(this._params=f,this._data="",this._hitLimit=!1,e));return this._params=f,this._data="",this._hitLimit=!1,_}}},2015:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.EscapeSequenceParser=r.VT500_TRANSITION_TABLE=r.TransitionTable=void 0;const l=a(844),u=a(8742),n=a(6242),d=a(6351);class f{constructor(s){this.table=new Uint8Array(s)}setDefault(s,t){this.table.fill(s<<4|t)}add(s,t,i,o){this.table[t<<8|s]=i<<4|o}addMany(s,t,i,o){for(let c=0;ch),t=(m,h)=>s.slice(m,h),i=t(32,127),o=t(0,24);o.push(25),o.push.apply(o,t(28,32));const c=t(0,14);let v;for(v in e.setDefault(1,0),e.addMany(i,0,2,0),c)e.addMany([24,26,153,154],v,3,0),e.addMany(t(128,144),v,3,0),e.addMany(t(144,152),v,3,0),e.add(156,v,0,0),e.add(27,v,11,1),e.add(157,v,4,8),e.addMany([152,158,159],v,0,7),e.add(155,v,11,3),e.add(144,v,11,9);return e.addMany(o,0,3,0),e.addMany(o,1,3,1),e.add(127,1,0,1),e.addMany(o,8,0,8),e.addMany(o,3,3,3),e.add(127,3,0,3),e.addMany(o,4,3,4),e.add(127,4,0,4),e.addMany(o,6,3,6),e.addMany(o,5,3,5),e.add(127,5,0,5),e.addMany(o,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(i,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(t(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(i,7,0,7),e.addMany(o,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(t(64,127),3,7,0),e.addMany(t(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(t(48,60),4,8,4),e.addMany(t(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(t(32,64),6,0,6),e.add(127,6,0,6),e.addMany(t(64,127),6,0,0),e.addMany(t(32,48),3,9,5),e.addMany(t(32,48),5,9,5),e.addMany(t(48,64),5,0,6),e.addMany(t(64,127),5,7,0),e.addMany(t(32,48),4,9,5),e.addMany(t(32,48),1,9,2),e.addMany(t(32,48),2,9,2),e.addMany(t(48,127),2,10,0),e.addMany(t(48,80),1,10,0),e.addMany(t(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(t(96,127),1,10,0),e.add(80,1,11,9),e.addMany(o,9,0,9),e.add(127,9,0,9),e.addMany(t(28,32),9,0,9),e.addMany(t(32,48),9,9,12),e.addMany(t(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(o,11,0,11),e.addMany(t(32,128),11,0,11),e.addMany(t(28,32),11,0,11),e.addMany(o,10,0,10),e.add(127,10,0,10),e.addMany(t(28,32),10,0,10),e.addMany(t(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(t(32,48),10,9,12),e.addMany(o,12,0,12),e.add(127,12,0,12),e.addMany(t(28,32),12,0,12),e.addMany(t(32,48),12,9,12),e.addMany(t(48,64),12,0,11),e.addMany(t(64,127),12,12,13),e.addMany(t(64,127),10,12,13),e.addMany(t(64,127),9,12,13),e.addMany(o,13,13,13),e.addMany(i,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(p,0,2,0),e.add(p,8,5,8),e.add(p,6,0,6),e.add(p,11,0,11),e.add(p,13,13,13),e}();class _ extends l.Disposable{constructor(s=r.VT500_TRANSITION_TABLE){super(),this._transitions=s,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new u.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(t,i,o)=>{},this._executeHandlerFb=t=>{},this._csiHandlerFb=(t,i)=>{},this._escHandlerFb=t=>{},this._errorHandlerFb=t=>t,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,l.toDisposable)(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this.register(new n.OscParser),this._dcsParser=this.register(new d.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(s,t=[64,126]){let i=0;if(s.prefix){if(s.prefix.length>1)throw new Error("only one byte as prefix supported");if(i=s.prefix.charCodeAt(0),i&&60>i||i>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(s.intermediates){if(s.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let c=0;cv||v>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");i<<=8,i|=v}}if(s.final.length!==1)throw new Error("final must be a single byte");const o=s.final.charCodeAt(0);if(t[0]>o||o>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return i<<=8,i|=o,i}identToString(s){const t=[];for(;s;)t.push(String.fromCharCode(255&s)),s>>=8;return t.reverse().join("")}setPrintHandler(s){this._printHandler=s}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(s,t){const i=this._identifier(s,[48,126]);this._escHandlers[i]===void 0&&(this._escHandlers[i]=[]);const o=this._escHandlers[i];return o.push(t),{dispose:()=>{const c=o.indexOf(t);c!==-1&&o.splice(c,1)}}}clearEscHandler(s){this._escHandlers[this._identifier(s,[48,126])]&&delete this._escHandlers[this._identifier(s,[48,126])]}setEscHandlerFallback(s){this._escHandlerFb=s}setExecuteHandler(s,t){this._executeHandlers[s.charCodeAt(0)]=t}clearExecuteHandler(s){this._executeHandlers[s.charCodeAt(0)]&&delete this._executeHandlers[s.charCodeAt(0)]}setExecuteHandlerFallback(s){this._executeHandlerFb=s}registerCsiHandler(s,t){const i=this._identifier(s);this._csiHandlers[i]===void 0&&(this._csiHandlers[i]=[]);const o=this._csiHandlers[i];return o.push(t),{dispose:()=>{const c=o.indexOf(t);c!==-1&&o.splice(c,1)}}}clearCsiHandler(s){this._csiHandlers[this._identifier(s)]&&delete this._csiHandlers[this._identifier(s)]}setCsiHandlerFallback(s){this._csiHandlerFb=s}registerDcsHandler(s,t){return this._dcsParser.registerHandler(this._identifier(s),t)}clearDcsHandler(s){this._dcsParser.clearHandler(this._identifier(s))}setDcsHandlerFallback(s){this._dcsParser.setHandlerFallback(s)}registerOscHandler(s,t){return this._oscParser.registerHandler(s,t)}clearOscHandler(s){this._oscParser.clearHandler(s)}setOscHandlerFallback(s){this._oscParser.setHandlerFallback(s)}setErrorHandler(s){this._errorHandler=s}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(s,t,i,o,c){this._parseStack.state=s,this._parseStack.handlers=t,this._parseStack.handlerPos=i,this._parseStack.transition=o,this._parseStack.chunkPos=c}parse(s,t,i){let o,c=0,v=0,m=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,m=this._parseStack.chunkPos+1;else{if(i===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const h=this._parseStack.handlers;let g=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(i===!1&&g>-1){for(;g>=0&&(o=h[g](this._params),o!==!0);g--)if(o instanceof Promise)return this._parseStack.handlerPos=g,o}this._parseStack.handlers=[];break;case 4:if(i===!1&&g>-1){for(;g>=0&&(o=h[g](),o!==!0);g--)if(o instanceof Promise)return this._parseStack.handlerPos=g,o}this._parseStack.handlers=[];break;case 6:if(c=s[this._parseStack.chunkPos],o=this._dcsParser.unhook(c!==24&&c!==26,i),o)return o;c===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(c=s[this._parseStack.chunkPos],o=this._oscParser.end(c!==24&&c!==26,i),o)return o;c===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,m=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let h=m;h>4){case 2:for(let k=h+1;;++k){if(k>=t||(c=s[k])<32||c>126&&c=t||(c=s[k])<32||c>126&&c=t||(c=s[k])<32||c>126&&c=t||(c=s[k])<32||c>126&&c=0&&(o=g[b](this._params),o!==!0);b--)if(o instanceof Promise)return this._preserveStack(3,g,b,v,h),o;b<0&&this._csiHandlerFb(this._collect<<8|c,this._params),this.precedingCodepoint=0;break;case 8:do switch(c){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(c-48)}while(++h47&&c<60);h--;break;case 9:this._collect<<=8,this._collect|=c;break;case 10:const L=this._escHandlers[this._collect<<8|c];let y=L?L.length-1:-1;for(;y>=0&&(o=L[y](),o!==!0);y--)if(o instanceof Promise)return this._preserveStack(4,L,y,v,h),o;y<0&&this._escHandlerFb(this._collect<<8|c),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|c,this._params);break;case 13:for(let k=h+1;;++k)if(k>=t||(c=s[k])===24||c===26||c===27||c>127&&c=t||(c=s[k])<32||c>127&&c{Object.defineProperty(r,"__esModule",{value:!0}),r.OscHandler=r.OscParser=void 0;const l=a(5770),u=a(482),n=[];r.OscParser=class{constructor(){this._state=0,this._active=n,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(d,f){this._handlers[d]===void 0&&(this._handlers[d]=[]);const p=this._handlers[d];return p.push(f),{dispose:()=>{const _=p.indexOf(f);_!==-1&&p.splice(_,1)}}}clearHandler(d){this._handlers[d]&&delete this._handlers[d]}setHandlerFallback(d){this._handlerFb=d}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=n}reset(){if(this._state===2)for(let d=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;d>=0;--d)this._active[d].end(!1);this._stack.paused=!1,this._active=n,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||n,this._active.length)for(let d=this._active.length-1;d>=0;d--)this._active[d].start();else this._handlerFb(this._id,"START")}_put(d,f,p){if(this._active.length)for(let _=this._active.length-1;_>=0;_--)this._active[_].put(d,f,p);else this._handlerFb(this._id,"PUT",(0,u.utf32ToString)(d,f,p))}start(){this.reset(),this._state=1}put(d,f,p){if(this._state!==3){if(this._state===1)for(;f0&&this._put(d,f,p)}}end(d,f=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let p=!1,_=this._active.length-1,e=!1;if(this._stack.paused&&(_=this._stack.loopPosition-1,p=f,e=this._stack.fallThrough,this._stack.paused=!1),!e&&p===!1){for(;_>=0&&(p=this._active[_].end(d),p!==!0);_--)if(p instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=_,this._stack.fallThrough=!1,p;_--}for(;_>=0;_--)if(p=this._active[_].end(!1),p instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=_,this._stack.fallThrough=!0,p}else this._handlerFb(this._id,"END",d);this._active=n,this._id=-1,this._state=0}}},r.OscHandler=class{constructor(d){this._handler=d,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(d,f,p){this._hitLimit||(this._data+=(0,u.utf32ToString)(d,f,p),this._data.length>l.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(d){let f=!1;if(this._hitLimit)f=!1;else if(d&&(f=this._handler(this._data),f instanceof Promise))return f.then(p=>(this._data="",this._hitLimit=!1,p));return this._data="",this._hitLimit=!1,f}}},8742:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Params=void 0;const a=2147483647;class l{static fromArray(n){const d=new l;if(!n.length)return d;for(let f=Array.isArray(n[0])?1:0;f256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(n),this.length=0,this._subParams=new Int32Array(d),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(n),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const n=new l(this.maxLength,this.maxSubParamsLength);return n.params.set(this.params),n.length=this.length,n._subParams.set(this._subParams),n._subParamsLength=this._subParamsLength,n._subParamsIdx.set(this._subParamsIdx),n._rejectDigits=this._rejectDigits,n._rejectSubDigits=this._rejectSubDigits,n._digitIsSub=this._digitIsSub,n}toArray(){const n=[];for(let d=0;d>8,p=255&this._subParamsIdx[d];p-f>0&&n.push(Array.prototype.slice.call(this._subParams,f,p))}return n}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(n){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(n<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=n>a?a:n}}addSubParam(n){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(n<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=n>a?a:n,this._subParamsIdx[this.length-1]++}}hasSubParams(n){return(255&this._subParamsIdx[n])-(this._subParamsIdx[n]>>8)>0}getSubParams(n){const d=this._subParamsIdx[n]>>8,f=255&this._subParamsIdx[n];return f-d>0?this._subParams.subarray(d,f):null}getSubParamsAll(){const n={};for(let d=0;d>8,p=255&this._subParamsIdx[d];p-f>0&&(n[d]=this._subParams.slice(f,p))}return n}addDigit(n){let d;if(this._rejectDigits||!(d=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const f=this._digitIsSub?this._subParams:this.params,p=f[d-1];f[d-1]=~p?Math.min(10*p+n,a):n}}r.Params=l},5741:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.AddonManager=void 0,r.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let a=this._addons.length-1;a>=0;a--)this._addons[a].instance.dispose()}loadAddon(a,l){const u={instance:l,dispose:l.dispose,isDisposed:!1};this._addons.push(u),l.dispose=()=>this._wrappedAddonDispose(u),l.activate(a)}_wrappedAddonDispose(a){if(a.isDisposed)return;let l=-1;for(let u=0;u{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferApiView=void 0;const l=a(3785),u=a(511);r.BufferApiView=class{constructor(n,d){this._buffer=n,this.type=d}init(n){return this._buffer=n,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(n){const d=this._buffer.lines.get(n);if(d)return new l.BufferLineApiView(d)}getNullCell(){return new u.CellData}}},3785:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferLineApiView=void 0;const l=a(511);r.BufferLineApiView=class{constructor(u){this._line=u}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(u,n){if(!(u<0||u>=this._line.length))return n?(this._line.loadCell(u,n),n):this._line.loadCell(u,new l.CellData)}translateToString(u,n,d){return this._line.translateToString(u,n,d)}}},8285:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferNamespaceApi=void 0;const l=a(8771),u=a(8460),n=a(844);class d extends n.Disposable{constructor(p){super(),this._core=p,this._onBufferChange=this.register(new u.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new l.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new l.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}r.BufferNamespaceApi=d},7975:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ParserApi=void 0,r.ParserApi=class{constructor(a){this._core=a}registerCsiHandler(a,l){return this._core.registerCsiHandler(a,u=>l(u.toArray()))}addCsiHandler(a,l){return this.registerCsiHandler(a,l)}registerDcsHandler(a,l){return this._core.registerDcsHandler(a,(u,n)=>l(u,n.toArray()))}addDcsHandler(a,l){return this.registerDcsHandler(a,l)}registerEscHandler(a,l){return this._core.registerEscHandler(a,l)}addEscHandler(a,l){return this.registerEscHandler(a,l)}registerOscHandler(a,l){return this._core.registerOscHandler(a,l)}addOscHandler(a,l){return this.registerOscHandler(a,l)}}},7090:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeApi=void 0,r.UnicodeApi=class{constructor(a){this._core=a}register(a){this._core.unicodeService.register(a)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(a){this._core.unicodeService.activeVersion=a}}},744:function(I,r,a){var l=this&&this.__decorate||function(e,s,t,i){var o,c=arguments.length,v=c<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,s,t,i);else for(var m=e.length-1;m>=0;m--)(o=e[m])&&(v=(c<3?o(v):c>3?o(s,t,v):o(s,t))||v);return c>3&&v&&Object.defineProperty(s,t,v),v},u=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.BufferService=r.MINIMUM_ROWS=r.MINIMUM_COLS=void 0;const n=a(8460),d=a(844),f=a(5295),p=a(2585);r.MINIMUM_COLS=2,r.MINIMUM_ROWS=1;let _=r.BufferService=class extends d.Disposable{get buffer(){return this.buffers.active}constructor(e){super(),this.isUserScrolling=!1,this._onResize=this.register(new n.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new n.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,r.MINIMUM_COLS),this.rows=Math.max(e.rawOptions.rows||0,r.MINIMUM_ROWS),this.buffers=this.register(new f.BufferSet(e,this))}resize(e,s){this.cols=e,this.rows=s,this.buffers.resize(e,s),this._onResize.fire({cols:e,rows:s})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,s=!1){const t=this.buffer;let i;i=this._cachedBlankLine,i&&i.length===this.cols&&i.getFg(0)===e.fg&&i.getBg(0)===e.bg||(i=t.getBlankLine(e,s),this._cachedBlankLine=i),i.isWrapped=s;const o=t.ybase+t.scrollTop,c=t.ybase+t.scrollBottom;if(t.scrollTop===0){const v=t.lines.isFull;c===t.lines.length-1?v?t.lines.recycle().copyFrom(i):t.lines.push(i.clone()):t.lines.splice(c+1,0,i.clone()),v?this.isUserScrolling&&(t.ydisp=Math.max(t.ydisp-1,0)):(t.ybase++,this.isUserScrolling||t.ydisp++)}else{const v=c-o+1;t.lines.shiftElements(o+1,v-1,-1),t.lines.set(c,i.clone())}this.isUserScrolling||(t.ydisp=t.ybase),this._onScroll.fire(t.ydisp)}scrollLines(e,s,t){const i=this.buffer;if(e<0){if(i.ydisp===0)return;this.isUserScrolling=!0}else e+i.ydisp>=i.ybase&&(this.isUserScrolling=!1);const o=i.ydisp;i.ydisp=Math.max(Math.min(i.ydisp+e,i.ybase),0),o!==i.ydisp&&(s||this._onScroll.fire(i.ydisp))}};r.BufferService=_=l([u(0,p.IOptionsService)],_)},7994:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CharsetService=void 0,r.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(a){this.glevel=a,this.charset=this._charsets[a]}setgCharset(a,l){this._charsets[a]=l,this.glevel===a&&(this.charset=l)}}},1753:function(I,r,a){var l=this&&this.__decorate||function(i,o,c,v){var m,h=arguments.length,g=h<3?o:v===null?v=Object.getOwnPropertyDescriptor(o,c):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,o,c,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(g=(h<3?m(g):h>3?m(o,c,g):m(o,c))||g);return h>3&&g&&Object.defineProperty(o,c,g),g},u=this&&this.__param||function(i,o){return function(c,v){o(c,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CoreMouseService=void 0;const n=a(2585),d=a(8460),f=a(844),p={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:i=>i.button!==4&&i.action===1&&(i.ctrl=!1,i.alt=!1,i.shift=!1,!0)},VT200:{events:19,restrict:i=>i.action!==32},DRAG:{events:23,restrict:i=>i.action!==32||i.button!==3},ANY:{events:31,restrict:i=>!0}};function _(i,o){let c=(i.ctrl?16:0)|(i.shift?4:0)|(i.alt?8:0);return i.button===4?(c|=64,c|=i.action):(c|=3&i.button,4&i.button&&(c|=64),8&i.button&&(c|=128),i.action===32?c|=32:i.action!==0||o||(c|=3)),c}const e=String.fromCharCode,s={DEFAULT:i=>{const o=[_(i,!1)+32,i.col+32,i.row+32];return o[0]>255||o[1]>255||o[2]>255?"":`\x1B[M${e(o[0])}${e(o[1])}${e(o[2])}`},SGR:i=>{const o=i.action===0&&i.button!==4?"m":"M";return`\x1B[<${_(i,!0)};${i.col};${i.row}${o}`},SGR_PIXELS:i=>{const o=i.action===0&&i.button!==4?"m":"M";return`\x1B[<${_(i,!0)};${i.x};${i.y}${o}`}};let t=r.CoreMouseService=class extends f.Disposable{constructor(i,o){super(),this._bufferService=i,this._coreService=o,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new d.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const c of Object.keys(p))this.addProtocol(c,p[c]);for(const c of Object.keys(s))this.addEncoding(c,s[c]);this.reset()}addProtocol(i,o){this._protocols[i]=o}addEncoding(i,o){this._encodings[i]=o}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(i){if(!this._protocols[i])throw new Error(`unknown protocol "${i}"`);this._activeProtocol=i,this._onProtocolChange.fire(this._protocols[i].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(i){if(!this._encodings[i])throw new Error(`unknown encoding "${i}"`);this._activeEncoding=i}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(i){if(i.col<0||i.col>=this._bufferService.cols||i.row<0||i.row>=this._bufferService.rows||i.button===4&&i.action===32||i.button===3&&i.action!==32||i.button!==4&&(i.action===2||i.action===3)||(i.col++,i.row++,i.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,i,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(i))return!1;const o=this._encodings[this._activeEncoding](i);return o&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(o):this._coreService.triggerDataEvent(o,!0)),this._lastEvent=i,!0}explainEvents(i){return{down:!!(1&i),up:!!(2&i),drag:!!(4&i),move:!!(8&i),wheel:!!(16&i)}}_equalEvents(i,o,c){if(c){if(i.x!==o.x||i.y!==o.y)return!1}else if(i.col!==o.col||i.row!==o.row)return!1;return i.button===o.button&&i.action===o.action&&i.ctrl===o.ctrl&&i.alt===o.alt&&i.shift===o.shift}};r.CoreMouseService=t=l([u(0,n.IBufferService),u(1,n.ICoreService)],t)},6975:function(I,r,a){var l=this&&this.__decorate||function(t,i,o,c){var v,m=arguments.length,h=m<3?i:c===null?c=Object.getOwnPropertyDescriptor(i,o):c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(t,i,o,c);else for(var g=t.length-1;g>=0;g--)(v=t[g])&&(h=(m<3?v(h):m>3?v(i,o,h):v(i,o))||h);return m>3&&h&&Object.defineProperty(i,o,h),h},u=this&&this.__param||function(t,i){return function(o,c){i(o,c,t)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CoreService=void 0;const n=a(1439),d=a(8460),f=a(844),p=a(2585),_=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let s=r.CoreService=class extends f.Disposable{constructor(t,i,o){super(),this._bufferService=t,this._logService=i,this._optionsService=o,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new d.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new d.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new d.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new d.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,n.clone)(_),this.decPrivateModes=(0,n.clone)(e)}reset(){this.modes=(0,n.clone)(_),this.decPrivateModes=(0,n.clone)(e)}triggerDataEvent(t,i=!1){if(this._optionsService.rawOptions.disableStdin)return;const o=this._bufferService.buffer;i&&this._optionsService.rawOptions.scrollOnUserInput&&o.ybase!==o.ydisp&&this._onRequestScrollToBottom.fire(),i&&this._onUserInput.fire(),this._logService.debug(`sending data "${t}"`,()=>t.split("").map(c=>c.charCodeAt(0))),this._onData.fire(t)}triggerBinaryEvent(t){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${t}"`,()=>t.split("").map(i=>i.charCodeAt(0))),this._onBinary.fire(t))}};r.CoreService=s=l([u(0,p.IBufferService),u(1,p.ILogService),u(2,p.IOptionsService)],s)},9074:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DecorationService=void 0;const l=a(8055),u=a(8460),n=a(844),d=a(6106);let f=0,p=0;class _ extends n.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new d.SortedList(t=>t==null?void 0:t.marker.line),this._onDecorationRegistered=this.register(new u.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new u.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,n.toDisposable)(()=>this.reset()))}registerDecoration(t){if(t.marker.isDisposed)return;const i=new e(t);if(i){const o=i.marker.onDispose(()=>i.dispose());i.onDispose(()=>{i&&(this._decorations.delete(i)&&this._onDecorationRemoved.fire(i),o.dispose())}),this._decorations.insert(i),this._onDecorationRegistered.fire(i)}return i}reset(){for(const t of this._decorations.values())t.dispose();this._decorations.clear()}*getDecorationsAtCell(t,i,o){var c,v,m;let h=0,g=0;for(const b of this._decorations.getKeyIterator(i))h=(c=b.options.x)!==null&&c!==void 0?c:0,g=h+((v=b.options.width)!==null&&v!==void 0?v:1),t>=h&&t{var m,h,g;f=(m=v.options.x)!==null&&m!==void 0?m:0,p=f+((h=v.options.width)!==null&&h!==void 0?h:1),t>=f&&t{Object.defineProperty(r,"__esModule",{value:!0}),r.InstantiationService=r.ServiceCollection=void 0;const l=a(2585),u=a(8343);class n{constructor(...f){this._entries=new Map;for(const[p,_]of f)this.set(p,_)}set(f,p){const _=this._entries.get(f);return this._entries.set(f,p),_}forEach(f){for(const[p,_]of this._entries.entries())f(p,_)}has(f){return this._entries.has(f)}get(f){return this._entries.get(f)}}r.ServiceCollection=n,r.InstantiationService=class{constructor(){this._services=new n,this._services.set(l.IInstantiationService,this)}setService(d,f){this._services.set(d,f)}getService(d){return this._services.get(d)}createInstance(d,...f){const p=(0,u.getServiceDependencies)(d).sort((s,t)=>s.index-t.index),_=[];for(const s of p){const t=this._services.get(s.id);if(!t)throw new Error(`[createInstance] ${d.name} depends on UNKNOWN service ${s.id}.`);_.push(t)}const e=p.length>0?p[0].index:f.length;if(f.length!==e)throw new Error(`[createInstance] First service dependency of ${d.name} at position ${e+1} conflicts with ${f.length} static arguments`);return new d(...f,..._)}}},7866:function(I,r,a){var l=this&&this.__decorate||function(e,s,t,i){var o,c=arguments.length,v=c<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,s,t,i);else for(var m=e.length-1;m>=0;m--)(o=e[m])&&(v=(c<3?o(v):c>3?o(s,t,v):o(s,t))||v);return c>3&&v&&Object.defineProperty(s,t,v),v},u=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.traceCall=r.setTraceLogger=r.LogService=void 0;const n=a(844),d=a(2585),f={trace:d.LogLevelEnum.TRACE,debug:d.LogLevelEnum.DEBUG,info:d.LogLevelEnum.INFO,warn:d.LogLevelEnum.WARN,error:d.LogLevelEnum.ERROR,off:d.LogLevelEnum.OFF};let p,_=r.LogService=class extends n.Disposable{get logLevel(){return this._logLevel}constructor(e){super(),this._optionsService=e,this._logLevel=d.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel())),p=this}_updateLogLevel(){this._logLevel=f[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let s=0;sJSON.stringify(v)).join(", ")})`);const c=i.apply(this,o);return p.trace(`GlyphRenderer#${i.name} return`,c),c}}},7302:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.OptionsService=r.DEFAULT_OPTIONS=void 0;const l=a(8460),u=a(844),n=a(6114);r.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:n.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const d=["normal","bold","100","200","300","400","500","600","700","800","900"];class f extends u.Disposable{constructor(_){super(),this._onOptionChange=this.register(new l.EventEmitter),this.onOptionChange=this._onOptionChange.event;const e=Object.assign({},r.DEFAULT_OPTIONS);for(const s in _)if(s in e)try{const t=_[s];e[s]=this._sanitizeAndValidateOption(s,t)}catch(t){console.error(t)}this.rawOptions=e,this.options=Object.assign({},e),this._setupOptions()}onSpecificOptionChange(_,e){return this.onOptionChange(s=>{s===_&&e(this.rawOptions[_])})}onMultipleOptionChange(_,e){return this.onOptionChange(s=>{_.indexOf(s)!==-1&&e()})}_setupOptions(){const _=s=>{if(!(s in r.DEFAULT_OPTIONS))throw new Error(`No option with key "${s}"`);return this.rawOptions[s]},e=(s,t)=>{if(!(s in r.DEFAULT_OPTIONS))throw new Error(`No option with key "${s}"`);t=this._sanitizeAndValidateOption(s,t),this.rawOptions[s]!==t&&(this.rawOptions[s]=t,this._onOptionChange.fire(s))};for(const s in this.rawOptions){const t={get:_.bind(this,s),set:e.bind(this,s)};Object.defineProperty(this.options,s,t)}}_sanitizeAndValidateOption(_,e){switch(_){case"cursorStyle":if(e||(e=r.DEFAULT_OPTIONS[_]),!function(s){return s==="block"||s==="underline"||s==="bar"}(e))throw new Error(`"${e}" is not a valid value for ${_}`);break;case"wordSeparator":e||(e=r.DEFAULT_OPTIONS[_]);break;case"fontWeight":case"fontWeightBold":if(typeof e=="number"&&1<=e&&e<=1e3)break;e=d.includes(e)?e:r.DEFAULT_OPTIONS[_];break;case"cursorWidth":e=Math.floor(e);case"lineHeight":case"tabStopWidth":if(e<1)throw new Error(`${_} cannot be less than 1, value: ${e}`);break;case"minimumContrastRatio":e=Math.max(1,Math.min(21,Math.round(10*e)/10));break;case"scrollback":if((e=Math.min(e,4294967295))<0)throw new Error(`${_} cannot be less than 0, value: ${e}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(e<=0)throw new Error(`${_} cannot be less than or equal to 0, value: ${e}`);break;case"rows":case"cols":if(!e&&e!==0)throw new Error(`${_} must be numeric, value: ${e}`);break;case"windowsPty":e=e??{}}return e}}r.OptionsService=f},2660:function(I,r,a){var l=this&&this.__decorate||function(f,p,_,e){var s,t=arguments.length,i=t<3?p:e===null?e=Object.getOwnPropertyDescriptor(p,_):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(f,p,_,e);else for(var o=f.length-1;o>=0;o--)(s=f[o])&&(i=(t<3?s(i):t>3?s(p,_,i):s(p,_))||i);return t>3&&i&&Object.defineProperty(p,_,i),i},u=this&&this.__param||function(f,p){return function(_,e){p(_,e,f)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkService=void 0;const n=a(2585);let d=r.OscLinkService=class{constructor(f){this._bufferService=f,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(f){const p=this._bufferService.buffer;if(f.id===void 0){const o=p.addMarker(p.ybase+p.y),c={data:f,id:this._nextId++,lines:[o]};return o.onDispose(()=>this._removeMarkerFromLink(c,o)),this._dataByLinkId.set(c.id,c),c.id}const _=f,e=this._getEntryIdKey(_),s=this._entriesWithId.get(e);if(s)return this.addLineToLink(s.id,p.ybase+p.y),s.id;const t=p.addMarker(p.ybase+p.y),i={id:this._nextId++,key:this._getEntryIdKey(_),data:_,lines:[t]};return t.onDispose(()=>this._removeMarkerFromLink(i,t)),this._entriesWithId.set(i.key,i),this._dataByLinkId.set(i.id,i),i.id}addLineToLink(f,p){const _=this._dataByLinkId.get(f);if(_&&_.lines.every(e=>e.line!==p)){const e=this._bufferService.buffer.addMarker(p);_.lines.push(e),e.onDispose(()=>this._removeMarkerFromLink(_,e))}}getLinkData(f){var p;return(p=this._dataByLinkId.get(f))===null||p===void 0?void 0:p.data}_getEntryIdKey(f){return`${f.id};;${f.uri}`}_removeMarkerFromLink(f,p){const _=f.lines.indexOf(p);_!==-1&&(f.lines.splice(_,1),f.lines.length===0&&(f.data.id!==void 0&&this._entriesWithId.delete(f.key),this._dataByLinkId.delete(f.id)))}};r.OscLinkService=d=l([u(0,n.IBufferService)],d)},8343:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.createDecorator=r.getServiceDependencies=r.serviceRegistry=void 0;const a="di$target",l="di$dependencies";r.serviceRegistry=new Map,r.getServiceDependencies=function(u){return u[l]||[]},r.createDecorator=function(u){if(r.serviceRegistry.has(u))return r.serviceRegistry.get(u);const n=function(d,f,p){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(_,e,s){e[a]===e?e[l].push({id:_,index:s}):(e[l]=[{id:_,index:s}],e[a]=e)})(n,d,p)};return n.toString=()=>u,r.serviceRegistry.set(u,n),n}},2585:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.IDecorationService=r.IUnicodeService=r.IOscLinkService=r.IOptionsService=r.ILogService=r.LogLevelEnum=r.IInstantiationService=r.ICharsetService=r.ICoreService=r.ICoreMouseService=r.IBufferService=void 0;const l=a(8343);var u;r.IBufferService=(0,l.createDecorator)("BufferService"),r.ICoreMouseService=(0,l.createDecorator)("CoreMouseService"),r.ICoreService=(0,l.createDecorator)("CoreService"),r.ICharsetService=(0,l.createDecorator)("CharsetService"),r.IInstantiationService=(0,l.createDecorator)("InstantiationService"),function(n){n[n.TRACE=0]="TRACE",n[n.DEBUG=1]="DEBUG",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.OFF=5]="OFF"}(u||(r.LogLevelEnum=u={})),r.ILogService=(0,l.createDecorator)("LogService"),r.IOptionsService=(0,l.createDecorator)("OptionsService"),r.IOscLinkService=(0,l.createDecorator)("OscLinkService"),r.IUnicodeService=(0,l.createDecorator)("UnicodeService"),r.IDecorationService=(0,l.createDecorator)("DecorationService")},1480:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeService=void 0;const l=a(8460),u=a(225);r.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new l.EventEmitter,this.onChange=this._onChange.event;const n=new u.UnicodeV6;this.register(n),this._active=n.version,this._activeProvider=n}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(n){if(!this._providers[n])throw new Error(`unknown Unicode version "${n}"`);this._active=n,this._activeProvider=this._providers[n],this._onChange.fire(n)}register(n){this._providers[n.version]=n}wcwidth(n){return this._activeProvider.wcwidth(n)}getStringCellWidth(n){let d=0;const f=n.length;for(let p=0;p=f)return d+this.wcwidth(_);const e=n.charCodeAt(p);56320<=e&&e<=57343?_=1024*(_-55296)+e-56320+65536:d+=this.wcwidth(e)}d+=this.wcwidth(_)}return d}}}},oe={};function J(I){var r=oe[I];if(r!==void 0)return r.exports;var a=oe[I]={exports:{}};return ce[I].call(a.exports,a,a.exports,J),a.exports}var ve={};return(()=>{var I=ve;Object.defineProperty(I,"__esModule",{value:!0}),I.Terminal=void 0;const r=J(9042),a=J(3236),l=J(844),u=J(5741),n=J(8285),d=J(7975),f=J(7090),p=["cols","rows"];class _ extends l.Disposable{constructor(s){super(),this._core=this.register(new a.Terminal(s)),this._addonManager=this.register(new u.AddonManager),this._publicOptions=Object.assign({},this._core.options);const t=o=>this._core.options[o],i=(o,c)=>{this._checkReadonlyOptions(o),this._core.options[o]=c};for(const o in this._core.options){const c={get:t.bind(this,o),set:i.bind(this,o)};Object.defineProperty(this._publicOptions,o,c)}}_checkReadonlyOptions(s){if(p.includes(s))throw new Error(`Option "${s}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new d.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new f.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new n.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const s=this._core.coreService.decPrivateModes;let t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:s.applicationCursorKeys,applicationKeypadMode:s.applicationKeypad,bracketedPasteMode:s.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:s.origin,reverseWraparoundMode:s.reverseWraparound,sendFocusMode:s.sendFocus,wraparoundMode:s.wraparound}}get options(){return this._publicOptions}set options(s){for(const t in s)this._publicOptions[t]=s[t]}blur(){this._core.blur()}focus(){this._core.focus()}resize(s,t){this._verifyIntegers(s,t),this._core.resize(s,t)}open(s){this._core.open(s)}attachCustomKeyEventHandler(s){this._core.attachCustomKeyEventHandler(s)}registerLinkProvider(s){return this._core.registerLinkProvider(s)}registerCharacterJoiner(s){return this._checkProposedApi(),this._core.registerCharacterJoiner(s)}deregisterCharacterJoiner(s){this._checkProposedApi(),this._core.deregisterCharacterJoiner(s)}registerMarker(s=0){return this._verifyIntegers(s),this._core.registerMarker(s)}registerDecoration(s){var t,i,o;return this._checkProposedApi(),this._verifyPositiveIntegers((t=s.x)!==null&&t!==void 0?t:0,(i=s.width)!==null&&i!==void 0?i:0,(o=s.height)!==null&&o!==void 0?o:0),this._core.registerDecoration(s)}hasSelection(){return this._core.hasSelection()}select(s,t,i){this._verifyIntegers(s,t,i),this._core.select(s,t,i)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(s,t){this._verifyIntegers(s,t),this._core.selectLines(s,t)}dispose(){super.dispose()}scrollLines(s){this._verifyIntegers(s),this._core.scrollLines(s)}scrollPages(s){this._verifyIntegers(s),this._core.scrollPages(s)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(s){this._verifyIntegers(s),this._core.scrollToLine(s)}clear(){this._core.clear()}write(s,t){this._core.write(s,t)}writeln(s,t){this._core.write(s),this._core.write(`\r -`,t)}paste(s){this._core.paste(s)}refresh(s,t){this._verifyIntegers(s,t),this._core.refresh(s,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(s){this._addonManager.loadAddon(this,s)}static get strings(){return r}_verifyIntegers(...s){for(const t of s)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...s){for(const t of s)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}I.Terminal=_})(),ve})())})(pe);var De=pe.exports;const Re={style:{"background-color":"white",width:"100%",padding:"8px","padding-left":"16px","border-radius":"10px","margin-bottom":"16px",display:"flex","flex-direction":"row","align-items":"center","justify-content":"space-between"}},xe=he("div",{style:{width:"100%",height:"100%","background-color":"#fff",padding:"16px","border-radius":"10px"}},[he("div",{id:"terminal",style:{}})],-1),Ae={name:"ConsolePage",components:{},data(){return{term:null,websocket:null,status:"",connection_status:"连接"}},mounted(){this.term=new De.Terminal({rendererType:"canvas",rows:28,cols:100,theme:{foreground:"#000",background:"#ffffff",cursor:"#000",convertEol:!0}}),this.term.open(document.getElementById("terminal")),this.createWebSocket()},methods:{createWebSocket(){this.status="正在连接",this.websocket=new WebSocket("ws://localhost:6186"),this.status="已连接",this.connection_status="断开",this.websocket.onopen=()=>{console.log("WebSocket连接已打开")},this.websocket.onerror=Q=>{console.error("WebSocket发生错误:",Q)},this.websocket.onclose=()=>{console.log("WebSocket连接已关闭")},this.websocket.onmessage=Q=>{this.term.write(Q.data+`\r +`,t)}paste(s){this._core.paste(s)}refresh(s,t){this._verifyIntegers(s,t),this._core.refresh(s,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(s){this._addonManager.loadAddon(this,s)}static get strings(){return r}_verifyIntegers(...s){for(const t of s)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...s){for(const t of s)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}I.Terminal=_})(),ve})())})(pe);var De=pe.exports;const Re={style:{"background-color":"white",width:"100%",padding:"8px","padding-left":"16px","border-radius":"10px","margin-bottom":"16px",display:"flex","flex-direction":"row","align-items":"center","justify-content":"space-between"}},xe=he("div",{style:{width:"100%",height:"100%","background-color":"#fff",padding:"16px","border-radius":"10px"}},[he("div",{id:"terminal",style:{}})],-1),Ae={name:"ConsolePage",components:{},data(){return{term:null,websocket:null,status:"",connection_status:"连接"}},mounted(){this.term=new De.Terminal({rendererType:"canvas",rows:28,cols:100,theme:{foreground:"#000",background:"#ffffff",cursor:"#000",convertEol:!0}}),this.term.open(document.getElementById("terminal")),this.createWebSocket()},methods:{createWebSocket(){this.status="正在连接",this.websocket=new WebSocket("ws://"+window.location.hostname+":6186"),this.status="已连接",this.connection_status="断开",this.websocket.onopen=()=>{console.log("WebSocket连接已打开")},this.websocket.onerror=Q=>{console.error("WebSocket发生错误:",Q)},this.websocket.onclose=()=>{console.log("WebSocket连接已关闭")},this.websocket.onmessage=Q=>{this.term.write(Q.data+`\r `)}},handleConnection(){this.connection_status==="连接"?this.createWebSocket():(this.websocket.close(),this.term.write(`已手动断开连接。\r `),this.status="未连接",this.connection_status="连接")}},beforeUnmount(){this.websocket.close()}},Te=Object.assign(Ae,{setup(Q){return(ne,ce)=>(Ce(),be(Le,null,[he("div",Re,[he("h3",null,ge(ne.status),1),ye(ke,{color:"primary",variant:"text",onClick:ne.handleConnection},{default:we(()=>[Ee(ge(ne.connection_status),1)]),_:1},8,["onClick"])]),xe],64))}});export{Te as default}; diff --git a/addons/dashboard/dist/assets/DefaultDashboard-2c1c64e5.js b/addons/dashboard/dist/assets/DefaultDashboard-37088788.js similarity index 99% rename from addons/dashboard/dist/assets/DefaultDashboard-2c1c64e5.js rename to addons/dashboard/dist/assets/DefaultDashboard-37088788.js index 4c8ba44..88e9d68 100644 --- a/addons/dashboard/dist/assets/DefaultDashboard-2c1c64e5.js +++ b/addons/dashboard/dist/assets/DefaultDashboard-37088788.js @@ -1 +1 @@ -import{y as P,p as u,o as _,c as f,w as e,a as t,L as w,b as a,d as p,j as $,Z as I,q as z,_ as F,z as S,s as M,F as D,u as j,n as x,r as N,l as V,e as y,t as h,J as b,$ as U,D as W,a0 as C,a1 as G,a2 as O,a3 as H,a4 as L,V as k,f as m,G as X,a5 as q,R as A}from"./index-f71951bf.js";import{_ as B}from"./_plugin-vue_export-helper-c27b6911.js";const E={class:"d-flex align-start mb-6"},J={class:"ml-auto z-1"},Y={class:"text-h1 font-weight-medium"},Z=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"消息总数",-1),K={name:"TotalMessage",components:{},props:["stat"],watch:{stat:{handler:function(s,o){this.message_total=s.message_total},deep:!0}},data:()=>({message_total:0}),mounted(){}},Q=Object.assign(K,{setup(s){const o=P([{title:"移除",icon:U}]);return(d,c)=>{const l=u("DotsIcon");return _(),f(b,{elevation:"0",class:"bg-secondary overflow-hidden bubble-shape bubble-secondary-shape"},{default:e(()=>[t(w,null,{default:e(()=>[a("div",E,[t(p,{icon:"",rounded:"sm",color:"darksecondary",variant:"flat"},{default:e(()=>[t($,{icon:"mdi-message"})]),_:1}),a("div",J,[t(I,{"close-on-content-click":!1},{activator:e(({props:r})=>[t(p,z({icon:"",rounded:"sm",color:"secondary",variant:"flat",size:"small"},r),{default:e(()=>[t(l,{"stroke-width":"1.5",width:"20"})]),_:2},1040)]),default:e(()=>[t(F,{rounded:"md",width:"150",class:"elevation-10"},{default:e(()=>[t(S,{density:"compact"},{default:e(()=>[(_(!0),M(D,null,j(o.value,(r,n)=>(_(),f(x,{key:n,value:n},{prepend:e(()=>[(_(),f(N(r.icon),{"stroke-width":"1.5",size:"20"}))]),default:e(()=>[t(V,{class:"ml-2"},{default:e(()=>[y(h(r.title),1)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1})])]),a("h2",Y,h(d.message_total),1),Z]),_:1})]),_:1})}}}),tt={class:"d-flex align-start mb-3"},et={class:"ml-auto z-1"},at={class:"text-h1 font-weight-medium"},st=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"会话总数",-1),ot={class:"text-h1 font-weight-medium"},lt=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"会话总数",-1),nt={name:"TotalSession",components:{},props:["stat"],watch:{stat:{handler:function(s,o){this.session_total=s.session_total},deep:!0}},data:()=>({session_total:0}),mounted(){}},it=Object.assign(nt,{setup(s){const o=W("1"),d=C(()=>({chart:{type:"bar",height:90,fontFamily:"inherit",foreColor:"#a1aab2",sparkline:{enabled:!0}},dataLabels:{enabled:!1},colors:["#fff"],fill:{type:"solid",opacity:1},stroke:{curve:"smooth",width:3},yaxis:{min:0,max:100},tooltip:{theme:"dark",fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:()=>"会话总数"}},marker:{show:!1}}})),c={series:[{name:"series1",data:[45,66,41,89,25,44,9,54]}]},l=C(()=>({chart:{type:"bar",height:90,fontFamily:"inherit",foreColor:"#a1aab2",sparkline:{enabled:!0}},dataLabels:{enabled:!1},colors:["#fff"],fill:{type:"solid",opacity:1},stroke:{curve:"smooth",width:3},yaxis:{min:0,max:100},tooltip:{theme:"dark",fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:()=>"会话总数"}},marker:{show:!1}}})),r={series:[{name:"series1",data:[35,44,9,54,45,66,41,69]}]};return(n,i)=>{const g=u("apexchart");return _(),f(b,{elevation:"0",class:"bg-primary overflow-hidden bubble-shape bubble-primary-shape"},{default:e(()=>[t(w,null,{default:e(()=>[a("div",tt,[t(p,{icon:"",rounded:"sm",color:"darkprimary",variant:"flat"},{default:e(()=>[t($,{icon:"mdi-account-multiple-outline"})]),_:1}),a("div",et,[t(G,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=v=>o.value=v),class:"theme-tab",density:"compact",end:""},{default:e(()=>[t(O,{value:"1","hide-slider":"",color:"transparent"},{default:e(()=>[y("按日")]),_:1}),t(O,{value:"2","hide-slider":"",color:"transparent"},{default:e(()=>[y("按月")]),_:1})]),_:1},8,["modelValue"])])]),t(H,{modelValue:o.value,"onUpdate:modelValue":i[1]||(i[1]=v=>o.value=v),class:"z-1"},{default:e(()=>[t(L,{value:"1"},{default:e(()=>[t(k,null,{default:e(()=>[t(m,{cols:"6"},{default:e(()=>[a("h2",at,h(n.session_total),1),st]),_:1}),t(m,{cols:"6"},{default:e(()=>[t(g,{type:"line",height:"90",options:d.value,series:c.series},null,8,["options","series"])]),_:1})]),_:1})]),_:1}),t(L,{value:"2"},{default:e(()=>[t(k,null,{default:e(()=>[t(m,{cols:"6"},{default:e(()=>[a("h2",ot,h(n.session_total),1),lt]),_:1}),t(m,{cols:"6"},{default:e(()=>[t(g,{type:"line",height:"90",options:l.value,series:r.series},null,8,["options","series"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})}}}),rt={name:"OnlineTime",components:{},props:["stat"],watch:{stat:{handler:function(s,o){this.memory=s.sys_perf.memory,this.runtime_str=s.sys_start_time;let d=new Date().getTime(),c=new Date(s.sys_start_time*1e3).getTime(),l=d-c,r=Math.floor(l/(24*3600*1e3)),n=l%(24*3600*1e3),i=Math.floor(n/(3600*1e3)),g=n%(3600*1e3),v=Math.floor(g/(60*1e3)),T=g%(60*1e3),R=Math.round(T/1e3);this.runtime_str=r+"天"+i+"小时"+v+"分"+R+"秒"},deep:!0}},data:()=>({_stat:{},memory:"Loading",runtime_str:"Loading"}),mounted(){}},dt={class:"d-flex align-center gap-3"},ct={class:"text-h4 font-weight-medium"},ut=a("span",{class:"text-subtitle-2 text-medium-emphasis text-white"},"运行时间",-1),mt={class:"d-flex align-center gap-3"},_t={class:"text-h4 font-weight-medium"},ht=a("span",{class:"text-subtitle-2 text-disabled font-weight-medium"},"占用内存",-1);function ft(s,o,d,c,l,r){return _(),M(D,null,[t(b,{elevation:"0",class:"bg-primary overflow-hidden bubble-shape-sm bubble-primary mb-6"},{default:e(()=>[t(w,{class:"pa-5"},{default:e(()=>[a("div",dt,[t(p,{color:"darkprimary",icon:"",rounded:"sm",variant:"flat"},{default:e(()=>[t($,{icon:"mdi-clock"})]),_:1}),a("div",null,[a("h4",ct,h(s.runtime_str),1),ut]),t(X),a("div",null,[t(p,{icon:"",rounded:"sm",variant:"plain"},{default:e(()=>[t($,{color:"black",icon:"mdi-stop",size:"32"})]),_:1})])])]),_:1})]),_:1}),t(b,{elevation:"0",class:"bubble-shape-sm overflow-hidden bubble-warning"},{default:e(()=>[t(w,{class:"pa-5"},{default:e(()=>[a("div",mt,[t(p,{color:"lightwarning",icon:"",rounded:"sm",variant:"flat"},{default:e(()=>[t($,{icon:"mdi-memory"})]),_:1}),a("div",null,[a("h4",_t,h(s.memory)+" MiB",1),ht])])]),_:1})]),_:1})],64)}const pt=B(rt,[["render",ft]]),bt=a("span",{class:"text-subtitle-2 text-disabled font-weight-bold"},"上行消息总趋势",-1),gt={class:"text-h3 mt-1"},vt={class:"mt-4"},yt={name:"MessageStat",components:{},props:["stat"],data:()=>({total_cnt:0,select:{state:"Today",abbr:"FL"},items:[{state:"过去 24 小时",abbr:"FL"},{state:"更多维度待开发喵!",abbr:"GA"}],chartOptions1:{chart:{type:"bar",height:400,fontFamily:"inherit",foreColor:"#a1aab2",stacked:!0},colors:["#1e88e5","#5e35b1","#ede7f6"],responsive:[{breakpoint:400,options:{legend:{position:"bottom",offsetX:-10,offsetY:0}}}],plotOptions:{bar:{horizontal:!1,columnWidth:"50%"}},xaxis:{type:"category",categories:[]},legend:{show:!0,fontFamily:"'Roboto', sans-serif",position:"bottom",offsetX:20,labels:{useSeriesColors:!1},markers:{width:16,height:16,radius:5},itemMargin:{horizontal:15,vertical:8}},fill:{type:"solid"},dataLabels:{enabled:!1},grid:{show:!0},tooltip:{theme:"dark"}},lineChart1:{series:[{name:"消息条数",data:[]}]}}),watch:{stat:{handler:function(s,o){let d=[],c=[];for(let l=0;l{const c=u("apexchart");return _(),f(b,{elevation:"0"},{default:e(()=>[t(b,{variant:"outlined"},{default:e(()=>[t(w,null,{default:e(()=>[t(k,null,{default:e(()=>[t(m,{cols:"12",sm:"9"},{default:e(()=>[bt,a("h3",gt,h(o.total_cnt),1)]),_:1}),t(m,{cols:"12",sm:"3"},{default:e(()=>[t(q,{color:"primary",variant:"outlined","hide-details":"",modelValue:o.select,"onUpdate:modelValue":d[0]||(d[0]=l=>o.select=l),items:o.items,"item-title":"state","item-value":"abbr",label:"Select","persistent-hint":"","return-object":"","single-line":""},null,8,["modelValue","items"])]),_:1})]),_:1}),a("div",vt,[t(c,{type:"bar",height:"280",options:o.chartOptions1,series:o.lineChart1.series,ref:"rtchart"},null,8,["options","series"])])]),_:1})]),_:1})]),_:1})}}}),xt={class:"d-flex align-center"},$t=a("h4",{class:"text-h4 mt-1"},"各平台上行消息数",-1),Vt={class:"ml-auto"},kt={class:"mt-4"},Tt={class:"d-inline-flex align-center justify-space-between w-100"},St={class:"text-subtitle-1 text-medium-emphasis font-weight-bold"},Ct={class:"ml-auto text-subtitle-1 text-medium-emphasis font-weight-bold"},Mt={class:"text-center mt-3"},Dt={name:"PlatformStat",components:{},props:["stat"],watch:{stat:{handler:function(s,o){this.platforms=s.platform},deep:!0}},data:()=>({platforms:[]}),mounted(){}},Ot=Object.assign(Dt,{setup(s){return C(()=>({chart:{type:"area",height:95,fontFamily:"inherit",foreColor:"#a1aab2",sparkline:{enabled:!0}},colors:["#5e35b1"],dataLabels:{enabled:!1},stroke:{curve:"smooth",width:1},tooltip:{theme:"dark",fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:()=>"消息条数 "}},marker:{show:!1}}})),(o,d)=>{const c=u("DotsIcon"),l=u("perfect-scrollbar"),r=u("ChevronRightIcon");return _(),f(b,{elevation:"0"},{default:e(()=>[t(b,{variant:"outlined"},{default:e(()=>[t(w,null,{default:e(()=>[a("div",xt,[$t,a("div",Vt,[t(I,{transition:"slide-y-transition"},{activator:e(({props:n})=>[t(p,z({color:"primary",size:"small",icon:"",rounded:"sm",variant:"text"},n),{default:e(()=>[t(c,{"stroke-width":"1.5",width:"25"})]),_:2},1040)]),default:e(()=>[t(F,{rounded:"md",width:"150",class:"elevation-10"},{default:e(()=>[t(S,null,{default:e(()=>[t(x,{value:"1"},{default:e(()=>[t(V,null,{default:e(()=>[y("今天")]),_:1})]),_:1}),t(x,{value:"2"},{default:e(()=>[t(V,null,{default:e(()=>[y("今月")]),_:1})]),_:1}),t(x,{value:"3"},{default:e(()=>[t(V,null,{default:e(()=>[y("今年")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])]),a("div",kt,[t(l,{style:{height:"270px"}},{default:e(()=>[t(S,{lines:"two",class:"py-0"},{default:e(()=>[(_(!0),M(D,null,j(o.platforms,(n,i)=>(_(),f(x,{key:i,value:n,color:"secondary",rounded:"sm"},{default:e(()=>[a("div",Tt,[a("div",null,[a("h6",St,h(n.name),1)]),a("div",Ct,h(n.count)+" 条",1)])]),_:2},1032,["value"]))),128))]),_:1})]),_:1}),a("div",Mt,[t(p,{color:"primary",variant:"text"},{append:e(()=>[t(r,{"stroke-width":"1.5",width:"20"})]),default:e(()=>[y("详情 ")]),_:1})])])]),_:1})]),_:1})]),_:1})}}}),Lt={name:"DefaultDashboard",components:{TotalMessage:Q,TotalSession:it,OnlineTime:pt,MessageStat:wt,PlatformStat:Ot},data:()=>({stat:{}}),mounted(){A.get("/api/stats").then(s=>{console.log("stat",s.data.data),this.stat=s.data.data})}};function It(s,o,d,c,l,r){const n=u("TotalMessage"),i=u("TotalSession"),g=u("OnlineTime"),v=u("MessageStat"),T=u("PlatformStat");return _(),f(k,null,{default:e(()=>[t(m,{cols:"12",md:"4"},{default:e(()=>[t(n,{stat:s.stat},null,8,["stat"])]),_:1}),t(m,{cols:"12",md:"4"},{default:e(()=>[t(i,{stat:s.stat},null,8,["stat"])]),_:1}),t(m,{cols:"12",md:"4"},{default:e(()=>[t(g,{stat:s.stat},null,8,["stat"])]),_:1}),t(m,{cols:"12",lg:"8"},{default:e(()=>[t(v,{stat:s.stat},null,8,["stat"])]),_:1}),t(m,{cols:"12",lg:"4"},{default:e(()=>[t(T,{stat:s.stat},null,8,["stat"])]),_:1})]),_:1})}const jt=B(Lt,[["render",It]]);export{jt as default}; +import{y as P,p as u,o as _,c as f,w as e,a as t,L as w,b as a,d as p,j as $,Z as I,q as z,_ as F,z as S,s as M,F as D,u as j,n as x,r as N,l as V,e as y,t as h,J as b,$ as U,D as W,a0 as C,a1 as G,a2 as O,a3 as H,a4 as L,V as k,f as m,G as X,a5 as q,R as A}from"./index-70ea897e.js";import{_ as B}from"./_plugin-vue_export-helper-c27b6911.js";const E={class:"d-flex align-start mb-6"},J={class:"ml-auto z-1"},Y={class:"text-h1 font-weight-medium"},Z=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"消息总数",-1),K={name:"TotalMessage",components:{},props:["stat"],watch:{stat:{handler:function(s,o){this.message_total=s.message_total},deep:!0}},data:()=>({message_total:0}),mounted(){}},Q=Object.assign(K,{setup(s){const o=P([{title:"移除",icon:U}]);return(d,c)=>{const l=u("DotsIcon");return _(),f(b,{elevation:"0",class:"bg-secondary overflow-hidden bubble-shape bubble-secondary-shape"},{default:e(()=>[t(w,null,{default:e(()=>[a("div",E,[t(p,{icon:"",rounded:"sm",color:"darksecondary",variant:"flat"},{default:e(()=>[t($,{icon:"mdi-message"})]),_:1}),a("div",J,[t(I,{"close-on-content-click":!1},{activator:e(({props:r})=>[t(p,z({icon:"",rounded:"sm",color:"secondary",variant:"flat",size:"small"},r),{default:e(()=>[t(l,{"stroke-width":"1.5",width:"20"})]),_:2},1040)]),default:e(()=>[t(F,{rounded:"md",width:"150",class:"elevation-10"},{default:e(()=>[t(S,{density:"compact"},{default:e(()=>[(_(!0),M(D,null,j(o.value,(r,n)=>(_(),f(x,{key:n,value:n},{prepend:e(()=>[(_(),f(N(r.icon),{"stroke-width":"1.5",size:"20"}))]),default:e(()=>[t(V,{class:"ml-2"},{default:e(()=>[y(h(r.title),1)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1})])]),a("h2",Y,h(d.message_total),1),Z]),_:1})]),_:1})}}}),tt={class:"d-flex align-start mb-3"},et={class:"ml-auto z-1"},at={class:"text-h1 font-weight-medium"},st=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"会话总数",-1),ot={class:"text-h1 font-weight-medium"},lt=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"会话总数",-1),nt={name:"TotalSession",components:{},props:["stat"],watch:{stat:{handler:function(s,o){this.session_total=s.session_total},deep:!0}},data:()=>({session_total:0}),mounted(){}},it=Object.assign(nt,{setup(s){const o=W("1"),d=C(()=>({chart:{type:"bar",height:90,fontFamily:"inherit",foreColor:"#a1aab2",sparkline:{enabled:!0}},dataLabels:{enabled:!1},colors:["#fff"],fill:{type:"solid",opacity:1},stroke:{curve:"smooth",width:3},yaxis:{min:0,max:100},tooltip:{theme:"dark",fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:()=>"会话总数"}},marker:{show:!1}}})),c={series:[{name:"series1",data:[45,66,41,89,25,44,9,54]}]},l=C(()=>({chart:{type:"bar",height:90,fontFamily:"inherit",foreColor:"#a1aab2",sparkline:{enabled:!0}},dataLabels:{enabled:!1},colors:["#fff"],fill:{type:"solid",opacity:1},stroke:{curve:"smooth",width:3},yaxis:{min:0,max:100},tooltip:{theme:"dark",fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:()=>"会话总数"}},marker:{show:!1}}})),r={series:[{name:"series1",data:[35,44,9,54,45,66,41,69]}]};return(n,i)=>{const g=u("apexchart");return _(),f(b,{elevation:"0",class:"bg-primary overflow-hidden bubble-shape bubble-primary-shape"},{default:e(()=>[t(w,null,{default:e(()=>[a("div",tt,[t(p,{icon:"",rounded:"sm",color:"darkprimary",variant:"flat"},{default:e(()=>[t($,{icon:"mdi-account-multiple-outline"})]),_:1}),a("div",et,[t(G,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=v=>o.value=v),class:"theme-tab",density:"compact",end:""},{default:e(()=>[t(O,{value:"1","hide-slider":"",color:"transparent"},{default:e(()=>[y("按日")]),_:1}),t(O,{value:"2","hide-slider":"",color:"transparent"},{default:e(()=>[y("按月")]),_:1})]),_:1},8,["modelValue"])])]),t(H,{modelValue:o.value,"onUpdate:modelValue":i[1]||(i[1]=v=>o.value=v),class:"z-1"},{default:e(()=>[t(L,{value:"1"},{default:e(()=>[t(k,null,{default:e(()=>[t(m,{cols:"6"},{default:e(()=>[a("h2",at,h(n.session_total),1),st]),_:1}),t(m,{cols:"6"},{default:e(()=>[t(g,{type:"line",height:"90",options:d.value,series:c.series},null,8,["options","series"])]),_:1})]),_:1})]),_:1}),t(L,{value:"2"},{default:e(()=>[t(k,null,{default:e(()=>[t(m,{cols:"6"},{default:e(()=>[a("h2",ot,h(n.session_total),1),lt]),_:1}),t(m,{cols:"6"},{default:e(()=>[t(g,{type:"line",height:"90",options:l.value,series:r.series},null,8,["options","series"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})}}}),rt={name:"OnlineTime",components:{},props:["stat"],watch:{stat:{handler:function(s,o){this.memory=s.sys_perf.memory,this.runtime_str=s.sys_start_time;let d=new Date().getTime(),c=new Date(s.sys_start_time*1e3).getTime(),l=d-c,r=Math.floor(l/(24*3600*1e3)),n=l%(24*3600*1e3),i=Math.floor(n/(3600*1e3)),g=n%(3600*1e3),v=Math.floor(g/(60*1e3)),T=g%(60*1e3),R=Math.round(T/1e3);this.runtime_str=r+"天"+i+"小时"+v+"分"+R+"秒"},deep:!0}},data:()=>({_stat:{},memory:"Loading",runtime_str:"Loading"}),mounted(){}},dt={class:"d-flex align-center gap-3"},ct={class:"text-h4 font-weight-medium"},ut=a("span",{class:"text-subtitle-2 text-medium-emphasis text-white"},"运行时间",-1),mt={class:"d-flex align-center gap-3"},_t={class:"text-h4 font-weight-medium"},ht=a("span",{class:"text-subtitle-2 text-disabled font-weight-medium"},"占用内存",-1);function ft(s,o,d,c,l,r){return _(),M(D,null,[t(b,{elevation:"0",class:"bg-primary overflow-hidden bubble-shape-sm bubble-primary mb-6"},{default:e(()=>[t(w,{class:"pa-5"},{default:e(()=>[a("div",dt,[t(p,{color:"darkprimary",icon:"",rounded:"sm",variant:"flat"},{default:e(()=>[t($,{icon:"mdi-clock"})]),_:1}),a("div",null,[a("h4",ct,h(s.runtime_str),1),ut]),t(X),a("div",null,[t(p,{icon:"",rounded:"sm",variant:"plain"},{default:e(()=>[t($,{color:"black",icon:"mdi-stop",size:"32"})]),_:1})])])]),_:1})]),_:1}),t(b,{elevation:"0",class:"bubble-shape-sm overflow-hidden bubble-warning"},{default:e(()=>[t(w,{class:"pa-5"},{default:e(()=>[a("div",mt,[t(p,{color:"lightwarning",icon:"",rounded:"sm",variant:"flat"},{default:e(()=>[t($,{icon:"mdi-memory"})]),_:1}),a("div",null,[a("h4",_t,h(s.memory)+" MiB",1),ht])])]),_:1})]),_:1})],64)}const pt=B(rt,[["render",ft]]),bt=a("span",{class:"text-subtitle-2 text-disabled font-weight-bold"},"上行消息总趋势",-1),gt={class:"text-h3 mt-1"},vt={class:"mt-4"},yt={name:"MessageStat",components:{},props:["stat"],data:()=>({total_cnt:0,select:{state:"Today",abbr:"FL"},items:[{state:"过去 24 小时",abbr:"FL"},{state:"更多维度待开发喵!",abbr:"GA"}],chartOptions1:{chart:{type:"bar",height:400,fontFamily:"inherit",foreColor:"#a1aab2",stacked:!0},colors:["#1e88e5","#5e35b1","#ede7f6"],responsive:[{breakpoint:400,options:{legend:{position:"bottom",offsetX:-10,offsetY:0}}}],plotOptions:{bar:{horizontal:!1,columnWidth:"50%"}},xaxis:{type:"category",categories:[]},legend:{show:!0,fontFamily:"'Roboto', sans-serif",position:"bottom",offsetX:20,labels:{useSeriesColors:!1},markers:{width:16,height:16,radius:5},itemMargin:{horizontal:15,vertical:8}},fill:{type:"solid"},dataLabels:{enabled:!1},grid:{show:!0},tooltip:{theme:"dark"}},lineChart1:{series:[{name:"消息条数",data:[]}]}}),watch:{stat:{handler:function(s,o){let d=[],c=[];for(let l=0;l{const c=u("apexchart");return _(),f(b,{elevation:"0"},{default:e(()=>[t(b,{variant:"outlined"},{default:e(()=>[t(w,null,{default:e(()=>[t(k,null,{default:e(()=>[t(m,{cols:"12",sm:"9"},{default:e(()=>[bt,a("h3",gt,h(o.total_cnt),1)]),_:1}),t(m,{cols:"12",sm:"3"},{default:e(()=>[t(q,{color:"primary",variant:"outlined","hide-details":"",modelValue:o.select,"onUpdate:modelValue":d[0]||(d[0]=l=>o.select=l),items:o.items,"item-title":"state","item-value":"abbr",label:"Select","persistent-hint":"","return-object":"","single-line":""},null,8,["modelValue","items"])]),_:1})]),_:1}),a("div",vt,[t(c,{type:"bar",height:"280",options:o.chartOptions1,series:o.lineChart1.series,ref:"rtchart"},null,8,["options","series"])])]),_:1})]),_:1})]),_:1})}}}),xt={class:"d-flex align-center"},$t=a("h4",{class:"text-h4 mt-1"},"各平台上行消息数",-1),Vt={class:"ml-auto"},kt={class:"mt-4"},Tt={class:"d-inline-flex align-center justify-space-between w-100"},St={class:"text-subtitle-1 text-medium-emphasis font-weight-bold"},Ct={class:"ml-auto text-subtitle-1 text-medium-emphasis font-weight-bold"},Mt={class:"text-center mt-3"},Dt={name:"PlatformStat",components:{},props:["stat"],watch:{stat:{handler:function(s,o){this.platforms=s.platform},deep:!0}},data:()=>({platforms:[]}),mounted(){}},Ot=Object.assign(Dt,{setup(s){return C(()=>({chart:{type:"area",height:95,fontFamily:"inherit",foreColor:"#a1aab2",sparkline:{enabled:!0}},colors:["#5e35b1"],dataLabels:{enabled:!1},stroke:{curve:"smooth",width:1},tooltip:{theme:"dark",fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:()=>"消息条数 "}},marker:{show:!1}}})),(o,d)=>{const c=u("DotsIcon"),l=u("perfect-scrollbar"),r=u("ChevronRightIcon");return _(),f(b,{elevation:"0"},{default:e(()=>[t(b,{variant:"outlined"},{default:e(()=>[t(w,null,{default:e(()=>[a("div",xt,[$t,a("div",Vt,[t(I,{transition:"slide-y-transition"},{activator:e(({props:n})=>[t(p,z({color:"primary",size:"small",icon:"",rounded:"sm",variant:"text"},n),{default:e(()=>[t(c,{"stroke-width":"1.5",width:"25"})]),_:2},1040)]),default:e(()=>[t(F,{rounded:"md",width:"150",class:"elevation-10"},{default:e(()=>[t(S,null,{default:e(()=>[t(x,{value:"1"},{default:e(()=>[t(V,null,{default:e(()=>[y("今天")]),_:1})]),_:1}),t(x,{value:"2"},{default:e(()=>[t(V,null,{default:e(()=>[y("今月")]),_:1})]),_:1}),t(x,{value:"3"},{default:e(()=>[t(V,null,{default:e(()=>[y("今年")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])]),a("div",kt,[t(l,{style:{height:"270px"}},{default:e(()=>[t(S,{lines:"two",class:"py-0"},{default:e(()=>[(_(!0),M(D,null,j(o.platforms,(n,i)=>(_(),f(x,{key:i,value:n,color:"secondary",rounded:"sm"},{default:e(()=>[a("div",Tt,[a("div",null,[a("h6",St,h(n.name),1)]),a("div",Ct,h(n.count)+" 条",1)])]),_:2},1032,["value"]))),128))]),_:1})]),_:1}),a("div",Mt,[t(p,{color:"primary",variant:"text"},{append:e(()=>[t(r,{"stroke-width":"1.5",width:"20"})]),default:e(()=>[y("详情 ")]),_:1})])])]),_:1})]),_:1})]),_:1})}}}),Lt={name:"DefaultDashboard",components:{TotalMessage:Q,TotalSession:it,OnlineTime:pt,MessageStat:wt,PlatformStat:Ot},data:()=>({stat:{}}),mounted(){A.get("/api/stats").then(s=>{console.log("stat",s.data.data),this.stat=s.data.data})}};function It(s,o,d,c,l,r){const n=u("TotalMessage"),i=u("TotalSession"),g=u("OnlineTime"),v=u("MessageStat"),T=u("PlatformStat");return _(),f(k,null,{default:e(()=>[t(m,{cols:"12",md:"4"},{default:e(()=>[t(n,{stat:s.stat},null,8,["stat"])]),_:1}),t(m,{cols:"12",md:"4"},{default:e(()=>[t(i,{stat:s.stat},null,8,["stat"])]),_:1}),t(m,{cols:"12",md:"4"},{default:e(()=>[t(g,{stat:s.stat},null,8,["stat"])]),_:1}),t(m,{cols:"12",lg:"8"},{default:e(()=>[t(v,{stat:s.stat},null,8,["stat"])]),_:1}),t(m,{cols:"12",lg:"4"},{default:e(()=>[t(T,{stat:s.stat},null,8,["stat"])]),_:1})]),_:1})}const jt=B(Lt,[["render",It]]);export{jt as default}; diff --git a/addons/dashboard/dist/assets/Error404Page-41f8cd81.js b/addons/dashboard/dist/assets/Error404Page-0951219d.js similarity index 94% rename from addons/dashboard/dist/assets/Error404Page-41f8cd81.js rename to addons/dashboard/dist/assets/Error404Page-0951219d.js index 4c54df3..3d34e88 100644 --- a/addons/dashboard/dist/assets/Error404Page-41f8cd81.js +++ b/addons/dashboard/dist/assets/Error404Page-0951219d.js @@ -1 +1 @@ -import{_ as t}from"./_plugin-vue_export-helper-c27b6911.js";import{o,c,w as s,V as i,a as r,b as e,d as l,e as a,f as d}from"./index-f71951bf.js";const n="/assets/img-error-bg-ab6474a0.svg",_="/assets/img-error-blue-2675a7a9.svg",m="/assets/img-error-text-a6aebfa0.svg",g="/assets/img-error-purple-edee3fbc.svg";const p={},u={class:"text-center"},f=e("div",{class:"CardMediaWrapper"},[e("img",{src:n,alt:"grid",class:"w-100"}),e("img",{src:_,alt:"grid",class:"CardMediaParts"}),e("img",{src:m,alt:"build",class:"CardMediaBuild"}),e("img",{src:g,alt:"build",class:"CardMediaBuild"})],-1),h=e("h1",{class:"text-h1"},"Something is wrong",-1),v=e("p",null,[e("small",null,[a("The page you are looking was moved, removed, "),e("br"),a("renamed, or might never exist! ")])],-1);function x(b,V){return o(),c(i,{"no-gutters":"",class:"h-100vh"},{default:s(()=>[r(d,{class:"d-flex align-center justify-center"},{default:s(()=>[e("div",u,[f,h,v,r(l,{variant:"flat",color:"primary",class:"mt-4",to:"/","prepend-icon":"mdi-home"},{default:s(()=>[a(" Home")]),_:1})])]),_:1})]),_:1})}const C=t(p,[["render",x]]);export{C as default}; +import{_ as t}from"./_plugin-vue_export-helper-c27b6911.js";import{o,c,w as s,V as i,a as r,b as e,d as l,e as a,f as d}from"./index-70ea897e.js";const n="/assets/img-error-bg-ab6474a0.svg",_="/assets/img-error-blue-2675a7a9.svg",m="/assets/img-error-text-a6aebfa0.svg",g="/assets/img-error-purple-edee3fbc.svg";const p={},u={class:"text-center"},f=e("div",{class:"CardMediaWrapper"},[e("img",{src:n,alt:"grid",class:"w-100"}),e("img",{src:_,alt:"grid",class:"CardMediaParts"}),e("img",{src:m,alt:"build",class:"CardMediaBuild"}),e("img",{src:g,alt:"build",class:"CardMediaBuild"})],-1),h=e("h1",{class:"text-h1"},"Something is wrong",-1),v=e("p",null,[e("small",null,[a("The page you are looking was moved, removed, "),e("br"),a("renamed, or might never exist! ")])],-1);function x(b,V){return o(),c(i,{"no-gutters":"",class:"h-100vh"},{default:s(()=>[r(d,{class:"d-flex align-center justify-center"},{default:s(()=>[e("div",u,[f,h,v,r(l,{variant:"flat",color:"primary",class:"mt-4",to:"/","prepend-icon":"mdi-home"},{default:s(()=>[a(" Home")]),_:1})])]),_:1})]),_:1})}const C=t(p,[["render",x]]);export{C as default}; diff --git a/addons/dashboard/dist/assets/ExtensionPage-25e6735d.js b/addons/dashboard/dist/assets/ExtensionPage-de80b39d.js similarity index 98% rename from addons/dashboard/dist/assets/ExtensionPage-25e6735d.js rename to addons/dashboard/dist/assets/ExtensionPage-de80b39d.js index add7225..67283fc 100644 --- a/addons/dashboard/dist/assets/ExtensionPage-25e6735d.js +++ b/addons/dashboard/dist/assets/ExtensionPage-de80b39d.js @@ -1 +1 @@ -import{x as b,o as d,c as h,w as e,a,a6 as C,b as i,K as x,e as o,t as u,G as m,d as r,A as E,L as V,a7 as y,J as w,s as p,f as c,F as f,u as $,V as k,q as S,N as B,O as N,P as T,H as j,a8 as D,R as g,j as F}from"./index-f71951bf.js";const G={class:"d-sm-flex align-center justify-space-between"},v=b({__name:"ExtensionCard",props:{title:String,link:String},setup(n){const s=n,l=t=>{window.open(t,"_blank")};return(t,_)=>(d(),h(w,{variant:"outlined",elevation:"0",class:"withbg"},{default:e(()=>[a(C,{style:{padding:"10px 20px"}},{default:e(()=>[i("div",G,[a(x,null,{default:e(()=>[o(u(s.title),1)]),_:1}),a(m),a(r,{icon:"mdi-link",variant:"plain",onClick:_[0]||(_[0]=z=>l(s.link))})])]),_:1}),a(E),a(V,null,{default:e(()=>[y(t.$slots,"default")]),_:3})]),_:3}))}}),P=i("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[i("h3",null,"🧩 已安装的插件")],-1),U={style:{"min-height":"180px","max-height":"180px",overflow:"hidden"}},q={class:"d-flex align-center gap-3"},A=i("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[i("h3",null,"🧩 插件市场 [待开发]")],-1),I=i("span",{class:"text-h5"},"从 Git 仓库链接安装插件",-1),L=i("small",null,"github, gitee, gitlab 等公开的仓库都行。",-1),O=i("br",null,null,-1),R={name:"ExtensionPage",components:{ExtensionCard:v},data(){return{extension_data:{data:[]},save_message_snack:!1,save_message:"",save_message_success:"",extension_url:"",status:"",dialog:!1,snack_message:"",snack_show:!1,snack_success:"success",install_loading:!1,uninstall_loading:!1}},mounted(){this.getExtensions()},methods:{getExtensions(){g.get("/api/extensions").then(n=>{this.extension_data.data=n.data.data,console.log(this.extension_data)})},newExtension(){this.install_loading=!0,console.log(this.install_loading),g.post("/api/extensions/install",{url:this.extension_url}).then(n=>{if(this.install_loading=!1,n.data.status==="error"){this.snack_message=n.data.message,this.snack_show=!0,this.snack_success="error";return}this.extension_data.data=n.data.data,console.log(this.extension_data),this.extension_url="",this.snack_message=n.data.message,this.snack_show=!0,this.snack_success="success",this.dialog=!1,this.getExtensions()}).catch(n=>{this.install_loading=!1,this.snack_message=n,this.snack_show=!0,this.snack_success="error"})},uninstallExtension(n){this.uninstall_loading=!0,g.post("/api/extensions/uninstall",{name:n}).then(s=>{if(this.uninstall_loading=!1,s.data.status==="error"){this.snack_message=s.data.message,this.snack_show=!0,this.snack_success="error";return}this.extension_data.data=s.data.data,console.log(this.extension_data),this.snack_message=s.data.message,this.snack_show=!0,this.snack_success="success",this.dialog=!1,this.getExtensions()}).catch(s=>{this.uninstall_loading=!1,this.snack_message=s,this.snack_show=!0,this.snack_success="error"})}}},J=Object.assign(R,{setup(n){return(s,l)=>(d(),p(f,null,[a(k,null,{default:e(()=>[a(c,{cols:"12",md:"12"},{default:e(()=>[P]),_:1}),(d(!0),p(f,null,$(s.extension_data.data,t=>(d(),h(c,{cols:"12",md:"6",lg:"4"},{default:e(()=>[(d(),h(v,{key:t.name,title:t.name,link:t.repo,style:{"margin-bottom":"16px"}},{default:e(()=>[i("p",U,u(t.desc),1),i("div",q,[a(F,null,{default:e(()=>[o("mdi-account")]),_:1}),i("span",null,u(t.author),1),a(m),a(r,{variant:"plain",onClick:_=>s.uninstallExtension(t.name),loading:s.uninstall_loading},{default:e(()=>[o("卸 载")]),_:2},1032,["onClick","loading"])])]),_:2},1032,["title","link"]))]),_:2},1024))),256)),a(c,{cols:"12",md:"12"},{default:e(()=>[A]),_:1})]),_:1}),a(j,{modelValue:s.dialog,"onUpdate:modelValue":l[3]||(l[3]=t=>s.dialog=t),persistent:"",width:"700"},{activator:e(({props:t})=>[a(r,S(t,{icon:"mdi-plus",size:"x-large",style:{position:"fixed",right:"52px",bottom:"52px"},color:"darkprimary"}),null,16)]),default:e(()=>[a(w,null,{default:e(()=>[a(x,null,{default:e(()=>[I]),_:1}),a(V,null,{default:e(()=>[a(B,null,{default:e(()=>[a(k,null,{default:e(()=>[a(c,{cols:"12"},{default:e(()=>[a(N,{label:"Git 库链接",modelValue:s.extension_url,"onUpdate:modelValue":l[0]||(l[0]=t=>s.extension_url=t),required:""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),L,O,i("small",null,u(s.status),1)]),_:1}),a(T,null,{default:e(()=>[a(m),a(r,{color:"blue-darken-1",variant:"text",onClick:l[1]||(l[1]=t=>s.dialog=!1)},{default:e(()=>[o(" 关闭 ")]),_:1}),a(r,{color:"blue-darken-1",variant:"text",loading:s.install_loading,onClick:l[2]||(l[2]=t=>s.newExtension(s.extension_url))},{default:e(()=>[o(" 安装 ")]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),a(D,{timeout:2e3,elevation:"24",color:s.snack_success,modelValue:s.snack_show,"onUpdate:modelValue":l[4]||(l[4]=t=>s.snack_show=t)},{default:e(()=>[o(u(s.snack_message),1)]),_:1},8,["color","modelValue"])],64))}});export{J as default}; +import{x as b,o as d,c as h,w as e,a,a6 as C,b as i,K as x,e as o,t as u,G as m,d as r,A as E,L as V,a7 as y,J as w,s as p,f as c,F as f,u as $,V as k,q as S,N as B,O as N,P as T,H as j,a8 as D,R as g,j as F}from"./index-70ea897e.js";const G={class:"d-sm-flex align-center justify-space-between"},v=b({__name:"ExtensionCard",props:{title:String,link:String},setup(n){const s=n,l=t=>{window.open(t,"_blank")};return(t,_)=>(d(),h(w,{variant:"outlined",elevation:"0",class:"withbg"},{default:e(()=>[a(C,{style:{padding:"10px 20px"}},{default:e(()=>[i("div",G,[a(x,null,{default:e(()=>[o(u(s.title),1)]),_:1}),a(m),a(r,{icon:"mdi-link",variant:"plain",onClick:_[0]||(_[0]=z=>l(s.link))})])]),_:1}),a(E),a(V,null,{default:e(()=>[y(t.$slots,"default")]),_:3})]),_:3}))}}),P=i("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[i("h3",null,"🧩 已安装的插件")],-1),U={style:{"min-height":"180px","max-height":"180px",overflow:"hidden"}},q={class:"d-flex align-center gap-3"},A=i("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[i("h3",null,"🧩 插件市场 [待开发]")],-1),I=i("span",{class:"text-h5"},"从 Git 仓库链接安装插件",-1),L=i("small",null,"github, gitee, gitlab 等公开的仓库都行。",-1),O=i("br",null,null,-1),R={name:"ExtensionPage",components:{ExtensionCard:v},data(){return{extension_data:{data:[]},save_message_snack:!1,save_message:"",save_message_success:"",extension_url:"",status:"",dialog:!1,snack_message:"",snack_show:!1,snack_success:"success",install_loading:!1,uninstall_loading:!1}},mounted(){this.getExtensions()},methods:{getExtensions(){g.get("/api/extensions").then(n=>{this.extension_data.data=n.data.data,console.log(this.extension_data)})},newExtension(){this.install_loading=!0,console.log(this.install_loading),g.post("/api/extensions/install",{url:this.extension_url}).then(n=>{if(this.install_loading=!1,n.data.status==="error"){this.snack_message=n.data.message,this.snack_show=!0,this.snack_success="error";return}this.extension_data.data=n.data.data,console.log(this.extension_data),this.extension_url="",this.snack_message=n.data.message,this.snack_show=!0,this.snack_success="success",this.dialog=!1,this.getExtensions()}).catch(n=>{this.install_loading=!1,this.snack_message=n,this.snack_show=!0,this.snack_success="error"})},uninstallExtension(n){this.uninstall_loading=!0,g.post("/api/extensions/uninstall",{name:n}).then(s=>{if(this.uninstall_loading=!1,s.data.status==="error"){this.snack_message=s.data.message,this.snack_show=!0,this.snack_success="error";return}this.extension_data.data=s.data.data,console.log(this.extension_data),this.snack_message=s.data.message,this.snack_show=!0,this.snack_success="success",this.dialog=!1,this.getExtensions()}).catch(s=>{this.uninstall_loading=!1,this.snack_message=s,this.snack_show=!0,this.snack_success="error"})}}},J=Object.assign(R,{setup(n){return(s,l)=>(d(),p(f,null,[a(k,null,{default:e(()=>[a(c,{cols:"12",md:"12"},{default:e(()=>[P]),_:1}),(d(!0),p(f,null,$(s.extension_data.data,t=>(d(),h(c,{cols:"12",md:"6",lg:"4"},{default:e(()=>[(d(),h(v,{key:t.name,title:t.name,link:t.repo,style:{"margin-bottom":"16px"}},{default:e(()=>[i("p",U,u(t.desc),1),i("div",q,[a(F,null,{default:e(()=>[o("mdi-account")]),_:1}),i("span",null,u(t.author),1),a(m),a(r,{variant:"plain",onClick:_=>s.uninstallExtension(t.name),loading:s.uninstall_loading},{default:e(()=>[o("卸 载")]),_:2},1032,["onClick","loading"])])]),_:2},1032,["title","link"]))]),_:2},1024))),256)),a(c,{cols:"12",md:"12"},{default:e(()=>[A]),_:1})]),_:1}),a(j,{modelValue:s.dialog,"onUpdate:modelValue":l[3]||(l[3]=t=>s.dialog=t),persistent:"",width:"700"},{activator:e(({props:t})=>[a(r,S(t,{icon:"mdi-plus",size:"x-large",style:{position:"fixed",right:"52px",bottom:"52px"},color:"darkprimary"}),null,16)]),default:e(()=>[a(w,null,{default:e(()=>[a(x,null,{default:e(()=>[I]),_:1}),a(V,null,{default:e(()=>[a(B,null,{default:e(()=>[a(k,null,{default:e(()=>[a(c,{cols:"12"},{default:e(()=>[a(N,{label:"Git 库链接",modelValue:s.extension_url,"onUpdate:modelValue":l[0]||(l[0]=t=>s.extension_url=t),required:""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),L,O,i("small",null,u(s.status),1)]),_:1}),a(T,null,{default:e(()=>[a(m),a(r,{color:"blue-darken-1",variant:"text",onClick:l[1]||(l[1]=t=>s.dialog=!1)},{default:e(()=>[o(" 关闭 ")]),_:1}),a(r,{color:"blue-darken-1",variant:"text",loading:s.install_loading,onClick:l[2]||(l[2]=t=>s.newExtension(s.extension_url))},{default:e(()=>[o(" 安装 ")]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),a(D,{timeout:2e3,elevation:"24",color:s.snack_success,modelValue:s.snack_show,"onUpdate:modelValue":l[4]||(l[4]=t=>s.snack_show=t)},{default:e(()=>[o(u(s.snack_message),1)]),_:1},8,["color","modelValue"])],64))}});export{J as default}; diff --git a/addons/dashboard/dist/assets/FullLayout-87ae6183.js b/addons/dashboard/dist/assets/FullLayout-87ae6183.js new file mode 100644 index 0000000..2c4db19 --- /dev/null +++ b/addons/dashboard/dist/assets/FullLayout-87ae6183.js @@ -0,0 +1 @@ +import{o as s,c as n,w as t,e as p,t as V,g as K,h as Q,a as e,i as j,j as y,k as z,l as O,m as F,n as q,r as T,p as G,q as S,s as C,F as x,u as W,v as X,x as I,y as Y,b as _,z as Z,A as ee,B as d,C as te,D as b,d as h,E as L,M as D,G as w,H as $,I as k,J as A,K as R,L as E,N as B,V as ae,f as le,O as M,P,Q as se,R as ie,S as ne,T as oe,U as re,W as ue,X as de,Y as ce}from"./index-70ea897e.js";import{_ as me,u as N}from"./LogoDark.vue_vue_type_script_setup_true_lang-b8ef80c7.js";import{m as U}from"./md5-6a8a08e9.js";const fe=[{title:"面板",icon:"mdi-view-dashboard",to:"/dashboard/default"},{title:"配置",icon:"mdi-cog",to:"/config"},{title:"插件",icon:"mdi-puzzle",to:"/extension"},{title:"控制台",icon:"mdi-console",to:"/console"}],pe={__name:"NavGroup",props:{item:Object},setup(a){const l=a;return(o,f)=>(s(),n(K,{color:"darkText",class:"smallCap"},{default:t(()=>[p(V(l.item.header),1)]),_:1}))}},H={__name:"NavItem",props:{item:Object,level:Number},setup(a){return(l,o)=>(s(),n(q,{to:a.item.type==="external"?"":a.item.to,href:a.item.type==="external"?a.item.to:"",rounded:"",class:"mb-1",color:"secondary",disabled:a.item.disabled,target:a.item.type==="external"?"_blank":""},Q({prepend:t(()=>[a.item.icon?(s(),n(y,{key:0,color:a.item.iconColor,size:a.item.iconSize,class:"hide-menu",icon:a.item.icon},null,8,["color","size","icon"])):z("",!0)]),default:t(()=>[e(O,null,{default:t(()=>[p(V(a.item.title),1)]),_:1}),a.item.subCaption?(s(),n(F,{key:0,class:"text-caption mt-n1 hide-menu"},{default:t(()=>[p(V(a.item.subCaption),1)]),_:1})):z("",!0)]),_:2},[a.item.chip?{name:"append",fn:t(()=>[e(j,{color:a.item.chipColor,class:"sidebarchip hide-menu",size:a.item.chipIcon?"small":"default",variant:a.item.chipVariant,"prepend-icon":a.item.chipIcon},{default:t(()=>[p(V(a.item.chip),1)]),_:1},8,["color","size","variant","prepend-icon"])]),key:"0"}:void 0]),1032,["to","href","disabled","target"]))}},ve={__name:"IconSet",props:{item:Object,level:Number},setup(a){const l=a;return(o,f)=>l.level>0?(s(),n(T(l.item),{key:0,size:"5",fill:"currentColor","stroke-width":"1.5",class:"iconClass"})):(s(),n(T(l.item),{key:1,size:"20","stroke-width":"1.5",class:"iconClass"}))}},_e={__name:"NavCollapse",props:{item:Object,level:Number},setup(a){const l=a;return(o,f)=>{const m=G("NavCollapse",!0);return s(),n(X,{"no-action":""},{activator:t(({props:r})=>[e(q,S(r,{value:a.item.title,rounded:"",class:"mb-1",color:"secondary"}),{prepend:t(()=>[e(ve,{item:a.item.icon,level:a.level},null,8,["item","level"])]),default:t(()=>[e(O,{class:"mr-auto"},{default:t(()=>[p(V(a.item.title),1)]),_:1}),a.item.subCaption?(s(),n(F,{key:0,class:"text-caption mt-n1 hide-menu"},{default:t(()=>[p(V(a.item.subCaption),1)]),_:1})):z("",!0)]),_:2},1040,["value"])]),default:t(()=>[(s(!0),C(x,null,W(a.item.children,(r,c)=>(s(),C(x,{key:c},[r.children?(s(),n(m,{key:0,item:r,level:l.level+1},null,8,["item","level"])):(s(),n(H,{key:1,item:r,level:l.level+1},null,8,["item","level"]))],64))),128))]),_:1})}}},he={__name:"LogoMain",setup(a){return(l,o)=>(s(),n(me))}},Ve={class:"pa-5"},be={class:"pa-4 text-center"},ke=I({__name:"VerticalSidebar",setup(a){const l=N(),o=Y(fe);return(f,m)=>{const r=G("perfect-scrollbar");return s(),n(te,{left:"",modelValue:d(l).Sidebar_drawer,"onUpdate:modelValue":m[0]||(m[0]=c=>d(l).Sidebar_drawer=c),elevation:"0","rail-width":"105","mobile-breakpoint":"960",app:"",class:"leftSidebar",rail:d(l).mini_sidebar,"expand-on-hover":""},{default:t(()=>[_("div",Ve,[e(he)]),e(r,{class:"scrollnavbar"},{default:t(()=>[e(Z,{class:"pa-4"},{default:t(()=>[(s(!0),C(x,null,W(o.value,(c,g)=>(s(),C(x,{key:g},[c.header?(s(),n(pe,{item:c,key:c.title},null,8,["item"])):c.divider?(s(),n(ee,{key:1,class:"my-3"})):c.children?(s(),n(_e,{key:2,class:"leftPadding",item:c,level:0},null,8,["item"])):(s(),n(H,{key:3,item:c,class:"leftPadding"},null,8,["item"]))],64))),128))]),_:1}),_("div",be,[e(j,{color:"inputBorder",size:"small"},{default:t(()=>[p(" v1.0.0 ")]),_:1})])]),_:1})]),_:1},8,["modelValue","rail"])}}}),ye=_("span",{class:"text-h5"},"密码修改",-1),Ce=_("small",null,"如果是第一次修改密码,原密码请留空。",-1),xe=_("br",null,null,-1),ge=_("span",{class:"text-h5"},"更新项目",-1),we=_("p",null,"此功能正在开发中,你可以在消息平台内使用 `/update` 指令来更新。",-1),ze=I({__name:"VerticalHeader",setup(a){const l=N();b(!1);let o=b(!1),f=b(!1),m=b(""),r=b(""),c=b("");const g=v=>{window.open(v,"_blank")};function J(){m.value!=""&&(m.value=U.md5(m.value)),r.value=U.md5(r.value),ie.post("/api/change_password",{password:m.value,new_password:r.value}).then(v=>{if(v.data.status=="error"){c.value=v.data.message,m.value="",r.value="";return}o.value=!o.value,c.value=v.data.message,setTimeout(()=>{ne().logout()},1e3)}).catch(v=>{console.log(v),c.value=v,m.value="",r.value=""})}return(v,u)=>(s(),n(se,{elevation:"0",height:"80"},{default:t(()=>[e(h,{class:"hidden-md-and-down text-secondary",color:"lightsecondary",icon:"",rounded:"sm",variant:"flat",onClick:u[0]||(u[0]=L(i=>d(l).SET_MINI_SIDEBAR(!d(l).mini_sidebar),["stop"])),size:"small"},{default:t(()=>[e(d(D),{size:"20","stroke-width":"1.5"})]),_:1}),e(h,{class:"hidden-lg-and-up text-secondary ms-3",color:"lightsecondary",icon:"",rounded:"sm",variant:"flat",onClick:L(d(l).SET_SIDEBAR_DRAWER,["stop"]),size:"small"},{default:t(()=>[e(d(D),{size:"20","stroke-width":"1.5"})]),_:1},8,["onClick"]),e(w),e($,{modelValue:d(o),"onUpdate:modelValue":u[4]||(u[4]=i=>k(o)?o.value=i:o=i),persistent:"",width:"700"},{activator:t(({props:i})=>[e(h,S({class:"profileBtn text-primary",color:"lightprimary",variant:"flat",rounded:"pill"},i),{default:t(()=>[e(y,{icon:"mdi-account-edit",size:"25"})]),_:2},1040)]),default:t(()=>[e(A,null,{default:t(()=>[e(R,null,{default:t(()=>[ye]),_:1}),e(E,null,{default:t(()=>[e(B,null,{default:t(()=>[e(ae,null,{default:t(()=>[e(le,{cols:"12"},{default:t(()=>[e(M,{label:"原密码*",type:"password",modelValue:d(m),"onUpdate:modelValue":u[1]||(u[1]=i=>k(m)?m.value=i:m=i),required:""},null,8,["modelValue"]),e(M,{label:"新密码*",type:"password",modelValue:d(r),"onUpdate:modelValue":u[2]||(u[2]=i=>k(r)?r.value=i:r=i),required:""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),Ce,xe,_("small",null,V(d(c)),1)]),_:1}),e(P,null,{default:t(()=>[e(w),e(h,{color:"blue-darken-1",variant:"text",onClick:u[3]||(u[3]=i=>k(o)?o.value=!1:o=!1)},{default:t(()=>[p(" 关闭 ")]),_:1}),e(h,{color:"blue-darken-1",variant:"text",onClick:J},{default:t(()=>[p(" 提交 ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),e($,{modelValue:d(f),"onUpdate:modelValue":u[6]||(u[6]=i=>k(f)?f.value=i:f=i),width:"700"},{activator:t(({props:i})=>[e(h,S({class:"profileBtn text-primary",color:"lightprimary",variant:"flat",rounded:"pill"},i),{default:t(()=>[e(y,{icon:"mdi-update",size:"25"})]),_:2},1040)]),default:t(()=>[e(A,null,{default:t(()=>[e(R,null,{default:t(()=>[ge]),_:1}),e(E,null,{default:t(()=>[e(B,null,{default:t(()=>[we]),_:1})]),_:1}),e(P,null,{default:t(()=>[e(w),e(h,{color:"blue-darken-1",variant:"text",onClick:u[5]||(u[5]=i=>k(f)?f.value=!1:f=!1)},{default:t(()=>[p(" 关闭 ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),e(h,{class:"profileBtn text-primary",color:"lightprimary",variant:"flat",onClick:u[7]||(u[7]=i=>g("https://github.com/Soulter/AstrBot")),rounded:"pill"},{default:t(()=>[e(y,{icon:"mdi-github",size:"25"})]),_:1})]),_:1}))}}),Ne=I({__name:"FullLayout",setup(a){const l=N();return(o,f)=>(s(),n(ce,null,{default:t(()=>[e(oe,{theme:"PurpleTheme",class:re([d(l).fontTheme,d(l).mini_sidebar?"mini-sidebar":"",d(l).inputBg?"inputWithbg":""])},{default:t(()=>[e(ke),e(ze),e(ue,null,{default:t(()=>[e(B,{fluid:"",class:"page-wrapper"},{default:t(()=>[_("div",null,[e(d(de))])]),_:1})]),_:1})]),_:1},8,["class"])]),_:1}))}});export{Ne as default}; diff --git a/addons/dashboard/dist/assets/FullLayout-bbeaf23b.js b/addons/dashboard/dist/assets/FullLayout-bbeaf23b.js deleted file mode 100644 index 0096481..0000000 --- a/addons/dashboard/dist/assets/FullLayout-bbeaf23b.js +++ /dev/null @@ -1 +0,0 @@ -import{o as s,c as i,w as t,e as v,t as h,g as F,h as q,a as e,i as A,j as g,k as w,l as D,m as R,n as E,r as I,p as M,q as P,s as k,F as y,u as j,v as G,x as z,y as W,b as _,z as H,A as J,B as o,C as K,D as b,d as V,E as N,M as B,G as T,H as Q,I as C,J as X,K as Y,L as Z,N as O,V as ee,f as te,O as L,P as ae,Q as le,R as se,S as ie,T as ne,U as oe,W as re,X as ue,Y as de}from"./index-f71951bf.js";import{_ as ce,u as S}from"./LogoDark.vue_vue_type_script_setup_true_lang-fb0b037c.js";import{m as $}from"./md5-0015f538.js";const me=[{title:"面板",icon:"mdi-view-dashboard",to:"/dashboard/default"},{title:"配置",icon:"mdi-cog",to:"/config"},{title:"插件",icon:"mdi-puzzle",to:"/extension"},{title:"控制台",icon:"mdi-console",to:"/console"}],fe={__name:"NavGroup",props:{item:Object},setup(a){const l=a;return(n,r)=>(s(),i(F,{color:"darkText",class:"smallCap"},{default:t(()=>[v(h(l.item.header),1)]),_:1}))}},U={__name:"NavItem",props:{item:Object,level:Number},setup(a){return(l,n)=>(s(),i(E,{to:a.item.type==="external"?"":a.item.to,href:a.item.type==="external"?a.item.to:"",rounded:"",class:"mb-1",color:"secondary",disabled:a.item.disabled,target:a.item.type==="external"?"_blank":""},q({prepend:t(()=>[a.item.icon?(s(),i(g,{key:0,color:a.item.iconColor,size:a.item.iconSize,class:"hide-menu",icon:a.item.icon},null,8,["color","size","icon"])):w("",!0)]),default:t(()=>[e(D,null,{default:t(()=>[v(h(a.item.title),1)]),_:1}),a.item.subCaption?(s(),i(R,{key:0,class:"text-caption mt-n1 hide-menu"},{default:t(()=>[v(h(a.item.subCaption),1)]),_:1})):w("",!0)]),_:2},[a.item.chip?{name:"append",fn:t(()=>[e(A,{color:a.item.chipColor,class:"sidebarchip hide-menu",size:a.item.chipIcon?"small":"default",variant:a.item.chipVariant,"prepend-icon":a.item.chipIcon},{default:t(()=>[v(h(a.item.chip),1)]),_:1},8,["color","size","variant","prepend-icon"])]),key:"0"}:void 0]),1032,["to","href","disabled","target"]))}},pe={__name:"IconSet",props:{item:Object,level:Number},setup(a){const l=a;return(n,r)=>l.level>0?(s(),i(I(l.item),{key:0,size:"5",fill:"currentColor","stroke-width":"1.5",class:"iconClass"})):(s(),i(I(l.item),{key:1,size:"20","stroke-width":"1.5",class:"iconClass"}))}},ve={__name:"NavCollapse",props:{item:Object,level:Number},setup(a){const l=a;return(n,r)=>{const u=M("NavCollapse",!0);return s(),i(G,{"no-action":""},{activator:t(({props:f})=>[e(E,P(f,{value:a.item.title,rounded:"",class:"mb-1",color:"secondary"}),{prepend:t(()=>[e(pe,{item:a.item.icon,level:a.level},null,8,["item","level"])]),default:t(()=>[e(D,{class:"mr-auto"},{default:t(()=>[v(h(a.item.title),1)]),_:1}),a.item.subCaption?(s(),i(R,{key:0,class:"text-caption mt-n1 hide-menu"},{default:t(()=>[v(h(a.item.subCaption),1)]),_:1})):w("",!0)]),_:2},1040,["value"])]),default:t(()=>[(s(!0),k(y,null,j(a.item.children,(f,d)=>(s(),k(y,{key:d},[f.children?(s(),i(u,{key:0,item:f,level:l.level+1},null,8,["item","level"])):(s(),i(U,{key:1,item:f,level:l.level+1},null,8,["item","level"]))],64))),128))]),_:1})}}},he={__name:"LogoMain",setup(a){return(l,n)=>(s(),i(ce))}},_e={class:"pa-5"},Ve={class:"pa-4 text-center"},be=z({__name:"VerticalSidebar",setup(a){const l=S(),n=W(me);return(r,u)=>{const f=M("perfect-scrollbar");return s(),i(K,{left:"",modelValue:o(l).Sidebar_drawer,"onUpdate:modelValue":u[0]||(u[0]=d=>o(l).Sidebar_drawer=d),elevation:"0","rail-width":"105","mobile-breakpoint":"960",app:"",class:"leftSidebar",rail:o(l).mini_sidebar,"expand-on-hover":""},{default:t(()=>[_("div",_e,[e(he)]),e(f,{class:"scrollnavbar"},{default:t(()=>[e(H,{class:"pa-4"},{default:t(()=>[(s(!0),k(y,null,j(n.value,(d,x)=>(s(),k(y,{key:x},[d.header?(s(),i(fe,{item:d,key:d.title},null,8,["item"])):d.divider?(s(),i(J,{key:1,class:"my-3"})):d.children?(s(),i(ve,{key:2,class:"leftPadding",item:d,level:0},null,8,["item"])):(s(),i(U,{key:3,item:d,class:"leftPadding"},null,8,["item"]))],64))),128))]),_:1}),_("div",Ve,[e(A,{color:"inputBorder",size:"small"},{default:t(()=>[v(" v1.0.0 ")]),_:1})])]),_:1})]),_:1},8,["modelValue","rail"])}}}),Ce=_("span",{class:"text-h5"},"密码修改",-1),ke=_("small",null,"如果是第一次修改密码,原密码请留空。",-1),ye=_("br",null,null,-1),xe=z({__name:"VerticalHeader",setup(a){const l=S();b(!1);let n=b(!1),r=b(""),u=b(""),f=b("");const d=p=>{window.open(p,"_blank")};function x(){r.value!=""&&(r.value=$.md5(r.value)),u.value=$.md5(u.value),se.post("/api/change_password",{password:r.value,new_password:u.value}).then(p=>{if(p.data.status=="error"){f.value=p.data.message,r.value="",u.value="";return}n.value=!n.value,f.value=p.data.message,setTimeout(()=>{ie().logout()},1e3)}).catch(p=>{console.log(p),f.value=p,r.value="",u.value=""})}return(p,c)=>(s(),i(le,{elevation:"0",height:"80"},{default:t(()=>[e(V,{class:"hidden-md-and-down text-secondary",color:"lightsecondary",icon:"",rounded:"sm",variant:"flat",onClick:c[0]||(c[0]=N(m=>o(l).SET_MINI_SIDEBAR(!o(l).mini_sidebar),["stop"])),size:"small"},{default:t(()=>[e(o(B),{size:"20","stroke-width":"1.5"})]),_:1}),e(V,{class:"hidden-lg-and-up text-secondary ms-3",color:"lightsecondary",icon:"",rounded:"sm",variant:"flat",onClick:N(o(l).SET_SIDEBAR_DRAWER,["stop"]),size:"small"},{default:t(()=>[e(o(B),{size:"20","stroke-width":"1.5"})]),_:1},8,["onClick"]),e(T),e(Q,{modelValue:o(n),"onUpdate:modelValue":c[4]||(c[4]=m=>C(n)?n.value=m:n=m),persistent:"",width:"700"},{activator:t(({props:m})=>[e(V,P({class:"profileBtn text-primary",color:"lightprimary",variant:"flat",rounded:"pill"},m),{default:t(()=>[e(g,{icon:"mdi-account-edit",size:"25"})]),_:2},1040)]),default:t(()=>[e(X,null,{default:t(()=>[e(Y,null,{default:t(()=>[Ce]),_:1}),e(Z,null,{default:t(()=>[e(O,null,{default:t(()=>[e(ee,null,{default:t(()=>[e(te,{cols:"12"},{default:t(()=>[e(L,{label:"原密码*",type:"password",modelValue:o(r),"onUpdate:modelValue":c[1]||(c[1]=m=>C(r)?r.value=m:r=m),required:""},null,8,["modelValue"]),e(L,{label:"新密码*",type:"password",modelValue:o(u),"onUpdate:modelValue":c[2]||(c[2]=m=>C(u)?u.value=m:u=m),required:""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),ke,ye,_("small",null,h(o(f)),1)]),_:1}),e(ae,null,{default:t(()=>[e(T),e(V,{color:"blue-darken-1",variant:"text",onClick:c[3]||(c[3]=m=>C(n)?n.value=!1:n=!1)},{default:t(()=>[v(" 关闭 ")]),_:1}),e(V,{color:"blue-darken-1",variant:"text",onClick:x},{default:t(()=>[v(" 提交 ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),e(V,{class:"profileBtn text-primary",color:"lightprimary",variant:"flat",onClick:c[5]||(c[5]=m=>d("https://github.com/Soulter/AstrBot")),rounded:"pill"},{default:t(()=>[e(g,{icon:"mdi-github",size:"25"})]),_:1})]),_:1}))}}),Se=z({__name:"FullLayout",setup(a){const l=S();return(n,r)=>(s(),i(de,null,{default:t(()=>[e(ne,{theme:"PurpleTheme",class:oe([o(l).fontTheme,o(l).mini_sidebar?"mini-sidebar":"",o(l).inputBg?"inputWithbg":""])},{default:t(()=>[e(be),e(xe),e(re,null,{default:t(()=>[e(O,{fluid:"",class:"page-wrapper"},{default:t(()=>[_("div",null,[e(o(ue))])]),_:1})]),_:1})]),_:1},8,["class"])]),_:1}))}});export{Se as default}; diff --git a/addons/dashboard/dist/assets/LoginPage-b4c25469.js b/addons/dashboard/dist/assets/LoginPage-5ed4985c.js similarity index 99% rename from addons/dashboard/dist/assets/LoginPage-b4c25469.js rename to addons/dashboard/dist/assets/LoginPage-5ed4985c.js index b7bbcfe..23dfb8f 100644 --- a/addons/dashboard/dist/assets/LoginPage-b4c25469.js +++ b/addons/dashboard/dist/assets/LoginPage-5ed4985c.js @@ -1,4 +1,4 @@ -import{_ as _t}from"./LogoDark.vue_vue_type_script_setup_true_lang-fb0b037c.js";import{x as ke,ad as we,r as Ot,ae as Vt,D as A,af as Ne,a0 as P,B as I,ag as Q,ah as St,I as Be,ai as Ie,aj as Et,ak as jt,al as At,am as G,y as wt,o as Re,c as tt,w as C,a as j,O as qe,b as ge,an as Ft,d as Pt,e as Ge,s as Ct,ao as Tt,t as Nt,k as Bt,S as It,f as Fe,N as Rt,V as Pe,J as Ye,L as kt}from"./index-f71951bf.js";import{a as Mt}from"./md5-0015f538.js";/** +import{_ as _t}from"./LogoDark.vue_vue_type_script_setup_true_lang-b8ef80c7.js";import{x as ke,ad as we,r as Ot,ae as Vt,D as A,af as Ne,a0 as P,B as I,ag as Q,ah as St,I as Be,ai as Ie,aj as Et,ak as jt,al as At,am as G,y as wt,o as Re,c as tt,w as C,a as j,O as qe,b as ge,an as Ft,d as Pt,e as Ge,s as Ct,ao as Tt,t as Nt,k as Bt,S as It,f as Fe,N as Rt,V as Pe,J as Ye,L as kt}from"./index-70ea897e.js";import{a as Mt}from"./md5-6a8a08e9.js";/** * vee-validate v4.11.3 * (c) 2023 Abdelrahman Awad * @license MIT diff --git a/addons/dashboard/dist/assets/LogoDark.vue_vue_type_script_setup_true_lang-fb0b037c.js b/addons/dashboard/dist/assets/LogoDark.vue_vue_type_script_setup_true_lang-b8ef80c7.js similarity index 94% rename from addons/dashboard/dist/assets/LogoDark.vue_vue_type_script_setup_true_lang-fb0b037c.js rename to addons/dashboard/dist/assets/LogoDark.vue_vue_type_script_setup_true_lang-b8ef80c7.js index 7744751..8e11466 100644 --- a/addons/dashboard/dist/assets/LogoDark.vue_vue_type_script_setup_true_lang-fb0b037c.js +++ b/addons/dashboard/dist/assets/LogoDark.vue_vue_type_script_setup_true_lang-b8ef80c7.js @@ -1 +1 @@ -import{at as _,x as d,D as n,o as c,s as m,a as f,w as p,au as r,b as a,av as o,B as t,aw as h}from"./index-f71951bf.js";const s={Sidebar_drawer:!0,Customizer_drawer:!1,mini_sidebar:!1,fontTheme:"Roboto",inputBg:!1},l=_({id:"customizer",state:()=>({Sidebar_drawer:s.Sidebar_drawer,Customizer_drawer:s.Customizer_drawer,mini_sidebar:s.mini_sidebar,fontTheme:"Poppins",inputBg:s.inputBg}),getters:{},actions:{SET_SIDEBAR_DRAWER(){this.Sidebar_drawer=!this.Sidebar_drawer},SET_MINI_SIDEBAR(e){this.mini_sidebar=e},SET_FONT(e){this.fontTheme=e}}}),u={class:"logo",style:{display:"flex","align-items":"center"}},b={style:{"font-size":"24px","font-weight":"1000"}},w={style:{"font-size":"20px","font-weight":"1000"}},S={style:{"font-size":"20px"}},z=d({__name:"LogoDark",setup(e){n("rgb(var(--v-theme-primary))"),n("rgb(var(--v-theme-secondary))");const i=l();return(g,B)=>(c(),m("div",u,[f(t(h),{to:"/",style:{"text-decoration":"none",color:"black"}},{default:p(()=>[r(a("span",b,"AstrBot 仪表盘",512),[[o,!t(i).mini_sidebar]]),r(a("span",w,"Astr",512),[[o,t(i).mini_sidebar]]),r(a("span",S,"Bot",512),[[o,t(i).mini_sidebar]])]),_:1})]))}});export{z as _,l as u}; +import{at as _,x as d,D as n,o as c,s as m,a as f,w as p,au as r,b as a,av as o,B as t,aw as h}from"./index-70ea897e.js";const s={Sidebar_drawer:!0,Customizer_drawer:!1,mini_sidebar:!1,fontTheme:"Roboto",inputBg:!1},l=_({id:"customizer",state:()=>({Sidebar_drawer:s.Sidebar_drawer,Customizer_drawer:s.Customizer_drawer,mini_sidebar:s.mini_sidebar,fontTheme:"Poppins",inputBg:s.inputBg}),getters:{},actions:{SET_SIDEBAR_DRAWER(){this.Sidebar_drawer=!this.Sidebar_drawer},SET_MINI_SIDEBAR(e){this.mini_sidebar=e},SET_FONT(e){this.fontTheme=e}}}),u={class:"logo",style:{display:"flex","align-items":"center"}},b={style:{"font-size":"24px","font-weight":"1000"}},w={style:{"font-size":"20px","font-weight":"1000"}},S={style:{"font-size":"20px"}},z=d({__name:"LogoDark",setup(e){n("rgb(var(--v-theme-primary))"),n("rgb(var(--v-theme-secondary))");const i=l();return(g,B)=>(c(),m("div",u,[f(t(h),{to:"/",style:{"text-decoration":"none",color:"black"}},{default:p(()=>[r(a("span",b,"AstrBot 仪表盘",512),[[o,!t(i).mini_sidebar]]),r(a("span",w,"Astr",512),[[o,t(i).mini_sidebar]]),r(a("span",S,"Bot",512),[[o,t(i).mini_sidebar]])]),_:1})]))}});export{z as _,l as u}; diff --git a/addons/dashboard/dist/assets/MaterialIcons-c4f273a6.js b/addons/dashboard/dist/assets/MaterialIcons-fc94f725.js similarity index 70% rename from addons/dashboard/dist/assets/MaterialIcons-c4f273a6.js rename to addons/dashboard/dist/assets/MaterialIcons-fc94f725.js index 3cd1b5a..dcaa6d2 100644 --- a/addons/dashboard/dist/assets/MaterialIcons-c4f273a6.js +++ b/addons/dashboard/dist/assets/MaterialIcons-fc94f725.js @@ -1 +1 @@ -import{_ as o}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-2b6e2e87.js";import{_ as i}from"./UiParentCard.vue_vue_type_script_setup_true_lang-820f34f1.js";import{x as n,D as a,o as c,s as m,a as e,w as t,f as d,b as f,V as _,F as u}from"./index-f71951bf.js";const p=["innerHTML"],v=n({__name:"MaterialIcons",setup(b){const s=a({title:"Material Icons"}),r=a(''),l=a([{title:"Icons",disabled:!1,href:"#"},{title:"Material Icons",disabled:!0,href:"#"}]);return(h,M)=>(c(),m(u,null,[e(o,{title:s.value.title,breadcrumbs:l.value},null,8,["title","breadcrumbs"]),e(_,null,{default:t(()=>[e(d,{cols:"12",md:"12"},{default:t(()=>[e(i,{title:"Material Icons"},{default:t(()=>[f("div",{innerHTML:r.value},null,8,p)]),_:1})]),_:1})]),_:1})],64))}});export{v as default}; +import{_ as o}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-79f7dd1a.js";import{_ as i}from"./UiParentCard.vue_vue_type_script_setup_true_lang-13601505.js";import{x as n,D as a,o as c,s as m,a as e,w as t,f as d,b as f,V as _,F as u}from"./index-70ea897e.js";const p=["innerHTML"],v=n({__name:"MaterialIcons",setup(b){const s=a({title:"Material Icons"}),r=a(''),l=a([{title:"Icons",disabled:!1,href:"#"},{title:"Material Icons",disabled:!0,href:"#"}]);return(h,M)=>(c(),m(u,null,[e(o,{title:s.value.title,breadcrumbs:l.value},null,8,["title","breadcrumbs"]),e(_,null,{default:t(()=>[e(d,{cols:"12",md:"12"},{default:t(()=>[e(i,{title:"Material Icons"},{default:t(()=>[f("div",{innerHTML:r.value},null,8,p)]),_:1})]),_:1})]),_:1})],64))}});export{v as default}; diff --git a/addons/dashboard/dist/assets/RegisterPage-81b37bf9.js b/addons/dashboard/dist/assets/RegisterPage-f1e91a9c.js similarity index 96% rename from addons/dashboard/dist/assets/RegisterPage-81b37bf9.js rename to addons/dashboard/dist/assets/RegisterPage-f1e91a9c.js index 569ecdb..7e3b063 100644 --- a/addons/dashboard/dist/assets/RegisterPage-81b37bf9.js +++ b/addons/dashboard/dist/assets/RegisterPage-f1e91a9c.js @@ -1 +1 @@ -import{_ as B}from"./LogoDark.vue_vue_type_script_setup_true_lang-fb0b037c.js";import{x as y,D as o,o as b,s as U,a as e,w as a,b as n,B as $,d as u,f as d,A as _,e as f,V as r,O as m,an as A,as as E,F,c as T,N as q,J as V,L as P}from"./index-f71951bf.js";const z="/assets/social-google-a359a253.svg",N=["src"],S=n("span",{class:"ml-2"},"Sign up with Google",-1),D=n("h5",{class:"text-h5 text-center my-4 mb-8"},"Sign up with Email address",-1),G={class:"d-sm-inline-flex align-center mt-2 mb-7 mb-sm-0 font-weight-bold"},L=n("a",{href:"#",class:"ml-1 text-lightText"},"Terms and Condition",-1),O={class:"mt-5 text-right"},j=y({__name:"AuthRegister",setup(w){const c=o(!1),i=o(!1),p=o(""),v=o(""),g=o(),h=o(""),x=o(""),k=o([s=>!!s||"Password is required",s=>s&&s.length<=10||"Password must be less than 10 characters"]),C=o([s=>!!s||"E-mail is required",s=>/.+@.+\..+/.test(s)||"E-mail must be valid"]);function R(){g.value.validate()}return(s,l)=>(b(),U(F,null,[e(u,{block:"",color:"primary",variant:"outlined",class:"text-lightText googleBtn"},{default:a(()=>[n("img",{src:$(z),alt:"google"},null,8,N),S]),_:1}),e(r,null,{default:a(()=>[e(d,{class:"d-flex align-center"},{default:a(()=>[e(_,{class:"custom-devider"}),e(u,{variant:"outlined",class:"orbtn",rounded:"md",size:"small"},{default:a(()=>[f("OR")]),_:1}),e(_,{class:"custom-devider"})]),_:1})]),_:1}),D,e(E,{ref_key:"Regform",ref:g,"lazy-validation":"",action:"/dashboards/analytical",class:"mt-7 loginForm"},{default:a(()=>[e(r,null,{default:a(()=>[e(d,{cols:"12",sm:"6"},{default:a(()=>[e(m,{modelValue:h.value,"onUpdate:modelValue":l[0]||(l[0]=t=>h.value=t),density:"comfortable","hide-details":"auto",variant:"outlined",color:"primary",label:"Firstname"},null,8,["modelValue"])]),_:1}),e(d,{cols:"12",sm:"6"},{default:a(()=>[e(m,{modelValue:x.value,"onUpdate:modelValue":l[1]||(l[1]=t=>x.value=t),density:"comfortable","hide-details":"auto",variant:"outlined",color:"primary",label:"Lastname"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{modelValue:v.value,"onUpdate:modelValue":l[2]||(l[2]=t=>v.value=t),rules:C.value,label:"Email Address / Username",class:"mt-4 mb-4",required:"",density:"comfortable","hide-details":"auto",variant:"outlined",color:"primary"},null,8,["modelValue","rules"]),e(m,{modelValue:p.value,"onUpdate:modelValue":l[3]||(l[3]=t=>p.value=t),rules:k.value,label:"Password",required:"",density:"comfortable",variant:"outlined",color:"primary","hide-details":"auto","append-icon":i.value?"mdi-eye":"mdi-eye-off",type:i.value?"text":"password","onClick:append":l[4]||(l[4]=t=>i.value=!i.value),class:"pwdInput"},null,8,["modelValue","rules","append-icon","type"]),n("div",G,[e(A,{modelValue:c.value,"onUpdate:modelValue":l[5]||(l[5]=t=>c.value=t),rules:[t=>!!t||"You must agree to continue!"],label:"Agree with?",required:"",color:"primary",class:"ms-n2","hide-details":""},null,8,["modelValue","rules"]),L]),e(u,{color:"secondary",block:"",class:"mt-2",variant:"flat",size:"large",onClick:l[6]||(l[6]=t=>R())},{default:a(()=>[f("Sign Up")]),_:1})]),_:1},512),n("div",O,[e(_),e(u,{variant:"plain",to:"/auth/login",class:"mt-2 text-capitalize mr-n2"},{default:a(()=>[f("Already have an account?")]),_:1})])],64))}});const I={class:"pa-7 pa-sm-12"},J=n("h2",{class:"text-secondary text-h2 mt-8"},"Sign up",-1),Y=n("h4",{class:"text-disabled text-h4 mt-3"},"Enter credentials to continue",-1),M=y({__name:"RegisterPage",setup(w){return(c,i)=>(b(),T(r,{class:"h-100vh","no-gutters":""},{default:a(()=>[e(d,{cols:"12",class:"d-flex align-center bg-lightprimary"},{default:a(()=>[e(q,null,{default:a(()=>[n("div",I,[e(r,{justify:"center"},{default:a(()=>[e(d,{cols:"12",lg:"10",xl:"6",md:"7"},{default:a(()=>[e(V,{elevation:"0",class:"loginBox"},{default:a(()=>[e(V,{variant:"outlined"},{default:a(()=>[e(P,{class:"pa-9"},{default:a(()=>[e(r,null,{default:a(()=>[e(d,{cols:"12",class:"text-center"},{default:a(()=>[e(B),J,Y]),_:1})]),_:1}),e(j)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1})]),_:1})]),_:1}))}});export{M as default}; +import{_ as B}from"./LogoDark.vue_vue_type_script_setup_true_lang-b8ef80c7.js";import{x as y,D as o,o as b,s as U,a as e,w as a,b as n,B as $,d as u,f as d,A as _,e as f,V as r,O as m,an as A,as as E,F,c as T,N as q,J as V,L as P}from"./index-70ea897e.js";const z="/assets/social-google-a359a253.svg",N=["src"],S=n("span",{class:"ml-2"},"Sign up with Google",-1),D=n("h5",{class:"text-h5 text-center my-4 mb-8"},"Sign up with Email address",-1),G={class:"d-sm-inline-flex align-center mt-2 mb-7 mb-sm-0 font-weight-bold"},L=n("a",{href:"#",class:"ml-1 text-lightText"},"Terms and Condition",-1),O={class:"mt-5 text-right"},j=y({__name:"AuthRegister",setup(w){const c=o(!1),i=o(!1),p=o(""),v=o(""),g=o(),h=o(""),x=o(""),k=o([s=>!!s||"Password is required",s=>s&&s.length<=10||"Password must be less than 10 characters"]),C=o([s=>!!s||"E-mail is required",s=>/.+@.+\..+/.test(s)||"E-mail must be valid"]);function R(){g.value.validate()}return(s,l)=>(b(),U(F,null,[e(u,{block:"",color:"primary",variant:"outlined",class:"text-lightText googleBtn"},{default:a(()=>[n("img",{src:$(z),alt:"google"},null,8,N),S]),_:1}),e(r,null,{default:a(()=>[e(d,{class:"d-flex align-center"},{default:a(()=>[e(_,{class:"custom-devider"}),e(u,{variant:"outlined",class:"orbtn",rounded:"md",size:"small"},{default:a(()=>[f("OR")]),_:1}),e(_,{class:"custom-devider"})]),_:1})]),_:1}),D,e(E,{ref_key:"Regform",ref:g,"lazy-validation":"",action:"/dashboards/analytical",class:"mt-7 loginForm"},{default:a(()=>[e(r,null,{default:a(()=>[e(d,{cols:"12",sm:"6"},{default:a(()=>[e(m,{modelValue:h.value,"onUpdate:modelValue":l[0]||(l[0]=t=>h.value=t),density:"comfortable","hide-details":"auto",variant:"outlined",color:"primary",label:"Firstname"},null,8,["modelValue"])]),_:1}),e(d,{cols:"12",sm:"6"},{default:a(()=>[e(m,{modelValue:x.value,"onUpdate:modelValue":l[1]||(l[1]=t=>x.value=t),density:"comfortable","hide-details":"auto",variant:"outlined",color:"primary",label:"Lastname"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{modelValue:v.value,"onUpdate:modelValue":l[2]||(l[2]=t=>v.value=t),rules:C.value,label:"Email Address / Username",class:"mt-4 mb-4",required:"",density:"comfortable","hide-details":"auto",variant:"outlined",color:"primary"},null,8,["modelValue","rules"]),e(m,{modelValue:p.value,"onUpdate:modelValue":l[3]||(l[3]=t=>p.value=t),rules:k.value,label:"Password",required:"",density:"comfortable",variant:"outlined",color:"primary","hide-details":"auto","append-icon":i.value?"mdi-eye":"mdi-eye-off",type:i.value?"text":"password","onClick:append":l[4]||(l[4]=t=>i.value=!i.value),class:"pwdInput"},null,8,["modelValue","rules","append-icon","type"]),n("div",G,[e(A,{modelValue:c.value,"onUpdate:modelValue":l[5]||(l[5]=t=>c.value=t),rules:[t=>!!t||"You must agree to continue!"],label:"Agree with?",required:"",color:"primary",class:"ms-n2","hide-details":""},null,8,["modelValue","rules"]),L]),e(u,{color:"secondary",block:"",class:"mt-2",variant:"flat",size:"large",onClick:l[6]||(l[6]=t=>R())},{default:a(()=>[f("Sign Up")]),_:1})]),_:1},512),n("div",O,[e(_),e(u,{variant:"plain",to:"/auth/login",class:"mt-2 text-capitalize mr-n2"},{default:a(()=>[f("Already have an account?")]),_:1})])],64))}});const I={class:"pa-7 pa-sm-12"},J=n("h2",{class:"text-secondary text-h2 mt-8"},"Sign up",-1),Y=n("h4",{class:"text-disabled text-h4 mt-3"},"Enter credentials to continue",-1),M=y({__name:"RegisterPage",setup(w){return(c,i)=>(b(),T(r,{class:"h-100vh","no-gutters":""},{default:a(()=>[e(d,{cols:"12",class:"d-flex align-center bg-lightprimary"},{default:a(()=>[e(q,null,{default:a(()=>[n("div",I,[e(r,{justify:"center"},{default:a(()=>[e(d,{cols:"12",lg:"10",xl:"6",md:"7"},{default:a(()=>[e(V,{elevation:"0",class:"loginBox"},{default:a(()=>[e(V,{variant:"outlined"},{default:a(()=>[e(P,{class:"pa-9"},{default:a(()=>[e(r,null,{default:a(()=>[e(d,{cols:"12",class:"text-center"},{default:a(()=>[e(B),J,Y]),_:1})]),_:1}),e(j)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1})]),_:1})]),_:1}))}});export{M as default}; diff --git a/addons/dashboard/dist/assets/ShadowPage-d3d4ab58.js b/addons/dashboard/dist/assets/ShadowPage-00585b3f.js similarity index 81% rename from addons/dashboard/dist/assets/ShadowPage-d3d4ab58.js rename to addons/dashboard/dist/assets/ShadowPage-00585b3f.js index 6132fea..78d82f8 100644 --- a/addons/dashboard/dist/assets/ShadowPage-d3d4ab58.js +++ b/addons/dashboard/dist/assets/ShadowPage-00585b3f.js @@ -1 +1 @@ -import{_ as c}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-2b6e2e87.js";import{_ as f}from"./UiParentCard.vue_vue_type_script_setup_true_lang-820f34f1.js";import{x as m,D as s,o as l,s as r,a as e,w as a,f as i,V as o,F as d,u as _,J as p,U as b,b as h,t as g}from"./index-f71951bf.js";const v=m({__name:"ShadowPage",setup(w){const n=s({title:"Shadow Page"}),u=s([{title:"Utilities",disabled:!1,href:"#"},{title:"Shadow",disabled:!0,href:"#"}]);return(V,x)=>(l(),r(d,null,[e(c,{title:n.value.title,breadcrumbs:u.value},null,8,["title","breadcrumbs"]),e(o,null,{default:a(()=>[e(i,{cols:"12",md:"12"},{default:a(()=>[e(f,{title:"Basic Shadow"},{default:a(()=>[e(o,{justify:"center"},{default:a(()=>[(l(),r(d,null,_(25,t=>e(i,{key:t,cols:"auto"},{default:a(()=>[e(p,{height:"100",width:"100",class:b(["mb-5",["d-flex justify-center align-center bg-primary",`elevation-${t}`]])},{default:a(()=>[h("div",null,g(t-1),1)]),_:2},1032,["class"])]),_:2},1024)),64))]),_:1})]),_:1})]),_:1})]),_:1})],64))}});export{v as default}; +import{_ as c}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-79f7dd1a.js";import{_ as f}from"./UiParentCard.vue_vue_type_script_setup_true_lang-13601505.js";import{x as m,D as s,o as l,s as r,a as e,w as a,f as i,V as o,F as d,u as _,J as p,U as b,b as h,t as g}from"./index-70ea897e.js";const v=m({__name:"ShadowPage",setup(w){const n=s({title:"Shadow Page"}),u=s([{title:"Utilities",disabled:!1,href:"#"},{title:"Shadow",disabled:!0,href:"#"}]);return(V,x)=>(l(),r(d,null,[e(c,{title:n.value.title,breadcrumbs:u.value},null,8,["title","breadcrumbs"]),e(o,null,{default:a(()=>[e(i,{cols:"12",md:"12"},{default:a(()=>[e(f,{title:"Basic Shadow"},{default:a(()=>[e(o,{justify:"center"},{default:a(()=>[(l(),r(d,null,_(25,t=>e(i,{key:t,cols:"auto"},{default:a(()=>[e(p,{height:"100",width:"100",class:b(["mb-5",["d-flex justify-center align-center bg-primary",`elevation-${t}`]])},{default:a(()=>[h("div",null,g(t-1),1)]),_:2},1032,["class"])]),_:2},1024)),64))]),_:1})]),_:1})]),_:1})]),_:1})],64))}});export{v as default}; diff --git a/addons/dashboard/dist/assets/TablerIcons-255723c3.js b/addons/dashboard/dist/assets/TablerIcons-28b82875.js similarity index 69% rename from addons/dashboard/dist/assets/TablerIcons-255723c3.js rename to addons/dashboard/dist/assets/TablerIcons-28b82875.js index b6034a6..2659c67 100644 --- a/addons/dashboard/dist/assets/TablerIcons-255723c3.js +++ b/addons/dashboard/dist/assets/TablerIcons-28b82875.js @@ -1 +1 @@ -import{_ as o}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-2b6e2e87.js";import{_ as n}from"./UiParentCard.vue_vue_type_script_setup_true_lang-820f34f1.js";import{x as c,D as a,o as i,s as m,a as e,w as t,f as d,b as f,V as _,F as u}from"./index-f71951bf.js";const b=["innerHTML"],w=c({__name:"TablerIcons",setup(p){const s=a({title:"Tabler Icons"}),r=a(''),l=a([{title:"Icons",disabled:!1,href:"#"},{title:"Tabler Icons",disabled:!0,href:"#"}]);return(h,T)=>(i(),m(u,null,[e(o,{title:s.value.title,breadcrumbs:l.value},null,8,["title","breadcrumbs"]),e(_,null,{default:t(()=>[e(d,{cols:"12",md:"12"},{default:t(()=>[e(n,{title:"Tabler Icons"},{default:t(()=>[f("div",{innerHTML:r.value},null,8,b)]),_:1})]),_:1})]),_:1})],64))}});export{w as default}; +import{_ as o}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-79f7dd1a.js";import{_ as n}from"./UiParentCard.vue_vue_type_script_setup_true_lang-13601505.js";import{x as c,D as a,o as i,s as m,a as e,w as t,f as d,b as f,V as _,F as u}from"./index-70ea897e.js";const b=["innerHTML"],w=c({__name:"TablerIcons",setup(p){const s=a({title:"Tabler Icons"}),r=a(''),l=a([{title:"Icons",disabled:!1,href:"#"},{title:"Tabler Icons",disabled:!0,href:"#"}]);return(h,T)=>(i(),m(u,null,[e(o,{title:s.value.title,breadcrumbs:l.value},null,8,["title","breadcrumbs"]),e(_,null,{default:t(()=>[e(d,{cols:"12",md:"12"},{default:t(()=>[e(n,{title:"Tabler Icons"},{default:t(()=>[f("div",{innerHTML:r.value},null,8,b)]),_:1})]),_:1})]),_:1})],64))}});export{w as default}; diff --git a/addons/dashboard/dist/assets/TypographyPage-dbd9a696.js b/addons/dashboard/dist/assets/TypographyPage-6333374a.js similarity index 94% rename from addons/dashboard/dist/assets/TypographyPage-dbd9a696.js rename to addons/dashboard/dist/assets/TypographyPage-6333374a.js index 7311f76..a3ddb1b 100644 --- a/addons/dashboard/dist/assets/TypographyPage-dbd9a696.js +++ b/addons/dashboard/dist/assets/TypographyPage-6333374a.js @@ -1 +1 @@ -import{_ as m}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-2b6e2e87.js";import{_ as v}from"./UiParentCard.vue_vue_type_script_setup_true_lang-820f34f1.js";import{x as f,o as i,c as g,w as e,a,a6 as y,K as b,e as w,t as d,A as C,L as V,a7 as L,J as _,D as o,s as h,f as k,b as t,F as x,u as B,U as H,V as T}from"./index-f71951bf.js";const s=f({__name:"UiChildCard",props:{title:String},setup(r){const l=r;return(n,c)=>(i(),g(_,{variant:"outlined"},{default:e(()=>[a(y,{class:"py-3"},{default:e(()=>[a(b,{class:"text-h5"},{default:e(()=>[w(d(l.title),1)]),_:1})]),_:1}),a(C),a(V,null,{default:e(()=>[L(n.$slots,"default")]),_:3})]),_:3}))}}),D={class:"d-flex flex-column gap-1"},S={class:"text-caption pa-2 bg-lightprimary"},z=t("div",{class:"text-grey"},"Class",-1),N={class:"font-weight-medium"},U=t("div",null,[t("p",{class:"text-left"},"Left aligned on all viewport sizes."),t("p",{class:"text-center"},"Center aligned on all viewport sizes."),t("p",{class:"text-right"},"Right aligned on all viewport sizes."),t("p",{class:"text-sm-left"},"Left aligned on viewports SM (small) or wider."),t("p",{class:"text-right text-md-left"},"Left aligned on viewports MD (medium) or wider."),t("p",{class:"text-right text-lg-left"},"Left aligned on viewports LG (large) or wider."),t("p",{class:"text-right text-xl-left"},"Left aligned on viewports XL (extra-large) or wider.")],-1),$=t("div",{class:"d-flex justify-space-between flex-row"},[t("a",{href:"#",class:"text-decoration-none"},"Non-underlined link"),t("div",{class:"text-decoration-line-through"},"Line-through text"),t("div",{class:"text-decoration-overline"},"Overline text"),t("div",{class:"text-decoration-underline"},"Underline text")],-1),M=t("div",null,[t("p",{class:"text-high-emphasis"},"High-emphasis has an opacity of 87% in light theme and 100% in dark."),t("p",{class:"text-medium-emphasis"},"Medium-emphasis text and hint text have opacities of 60% in light theme and 70% in dark."),t("p",{class:"text-disabled"},"Disabled text has an opacity of 38% in light theme and 50% in dark.")],-1),A=f({__name:"TypographyPage",setup(r){const l=o({title:"Typography Page"}),n=o([["Heading 1","text-h1"],["Heading 2","text-h2"],["Heading 3","text-h3"],["Heading 4","text-h4"],["Heading 5","text-h5"],["Heading 6","text-h6"],["Subtitle 1","text-subtitle-1"],["Subtitle 2","text-subtitle-2"],["Body 1","text-body-1"],["Body 2","text-body-2"],["Button","text-button"],["Caption","text-caption"],["Overline","text-overline"]]),c=o([{title:"Utilities",disabled:!1,href:"#"},{title:"Typography",disabled:!0,href:"#"}]);return(O,F)=>(i(),h(x,null,[a(m,{title:l.value.title,breadcrumbs:c.value},null,8,["title","breadcrumbs"]),a(T,null,{default:e(()=>[a(k,{cols:"12",md:"12"},{default:e(()=>[a(v,{title:"Basic Typography"},{default:e(()=>[a(s,{title:"Heading"},{default:e(()=>[t("div",D,[(i(!0),h(x,null,B(n.value,([p,u])=>(i(),g(_,{variant:"outlined",key:p,class:"my-4"},{default:e(()=>[t("div",{class:H([u,"pa-2"])},d(p),3),t("div",S,[z,t("div",N,d(u),1)])]),_:2},1024))),128))])]),_:1}),a(s,{title:"Text-alignment",class:"mt-8"},{default:e(()=>[U]),_:1}),a(s,{title:"Decoration",class:"mt-8"},{default:e(()=>[$]),_:1}),a(s,{title:"Opacity",class:"mt-8"},{default:e(()=>[M]),_:1})]),_:1})]),_:1})]),_:1})],64))}});export{A as default}; +import{_ as m}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-79f7dd1a.js";import{_ as v}from"./UiParentCard.vue_vue_type_script_setup_true_lang-13601505.js";import{x as f,o as i,c as g,w as e,a,a6 as y,K as b,e as w,t as d,A as C,L as V,a7 as L,J as _,D as o,s as h,f as k,b as t,F as x,u as B,U as H,V as T}from"./index-70ea897e.js";const s=f({__name:"UiChildCard",props:{title:String},setup(r){const l=r;return(n,c)=>(i(),g(_,{variant:"outlined"},{default:e(()=>[a(y,{class:"py-3"},{default:e(()=>[a(b,{class:"text-h5"},{default:e(()=>[w(d(l.title),1)]),_:1})]),_:1}),a(C),a(V,null,{default:e(()=>[L(n.$slots,"default")]),_:3})]),_:3}))}}),D={class:"d-flex flex-column gap-1"},S={class:"text-caption pa-2 bg-lightprimary"},z=t("div",{class:"text-grey"},"Class",-1),N={class:"font-weight-medium"},U=t("div",null,[t("p",{class:"text-left"},"Left aligned on all viewport sizes."),t("p",{class:"text-center"},"Center aligned on all viewport sizes."),t("p",{class:"text-right"},"Right aligned on all viewport sizes."),t("p",{class:"text-sm-left"},"Left aligned on viewports SM (small) or wider."),t("p",{class:"text-right text-md-left"},"Left aligned on viewports MD (medium) or wider."),t("p",{class:"text-right text-lg-left"},"Left aligned on viewports LG (large) or wider."),t("p",{class:"text-right text-xl-left"},"Left aligned on viewports XL (extra-large) or wider.")],-1),$=t("div",{class:"d-flex justify-space-between flex-row"},[t("a",{href:"#",class:"text-decoration-none"},"Non-underlined link"),t("div",{class:"text-decoration-line-through"},"Line-through text"),t("div",{class:"text-decoration-overline"},"Overline text"),t("div",{class:"text-decoration-underline"},"Underline text")],-1),M=t("div",null,[t("p",{class:"text-high-emphasis"},"High-emphasis has an opacity of 87% in light theme and 100% in dark."),t("p",{class:"text-medium-emphasis"},"Medium-emphasis text and hint text have opacities of 60% in light theme and 70% in dark."),t("p",{class:"text-disabled"},"Disabled text has an opacity of 38% in light theme and 50% in dark.")],-1),A=f({__name:"TypographyPage",setup(r){const l=o({title:"Typography Page"}),n=o([["Heading 1","text-h1"],["Heading 2","text-h2"],["Heading 3","text-h3"],["Heading 4","text-h4"],["Heading 5","text-h5"],["Heading 6","text-h6"],["Subtitle 1","text-subtitle-1"],["Subtitle 2","text-subtitle-2"],["Body 1","text-body-1"],["Body 2","text-body-2"],["Button","text-button"],["Caption","text-caption"],["Overline","text-overline"]]),c=o([{title:"Utilities",disabled:!1,href:"#"},{title:"Typography",disabled:!0,href:"#"}]);return(O,F)=>(i(),h(x,null,[a(m,{title:l.value.title,breadcrumbs:c.value},null,8,["title","breadcrumbs"]),a(T,null,{default:e(()=>[a(k,{cols:"12",md:"12"},{default:e(()=>[a(v,{title:"Basic Typography"},{default:e(()=>[a(s,{title:"Heading"},{default:e(()=>[t("div",D,[(i(!0),h(x,null,B(n.value,([p,u])=>(i(),g(_,{variant:"outlined",key:p,class:"my-4"},{default:e(()=>[t("div",{class:H([u,"pa-2"])},d(p),3),t("div",S,[z,t("div",N,d(u),1)])]),_:2},1024))),128))])]),_:1}),a(s,{title:"Text-alignment",class:"mt-8"},{default:e(()=>[U]),_:1}),a(s,{title:"Decoration",class:"mt-8"},{default:e(()=>[$]),_:1}),a(s,{title:"Opacity",class:"mt-8"},{default:e(()=>[M]),_:1})]),_:1})]),_:1})]),_:1})],64))}});export{A as default}; diff --git a/addons/dashboard/dist/assets/UiParentCard.vue_vue_type_script_setup_true_lang-820f34f1.js b/addons/dashboard/dist/assets/UiParentCard.vue_vue_type_script_setup_true_lang-13601505.js similarity index 88% rename from addons/dashboard/dist/assets/UiParentCard.vue_vue_type_script_setup_true_lang-820f34f1.js rename to addons/dashboard/dist/assets/UiParentCard.vue_vue_type_script_setup_true_lang-13601505.js index b438799..c375717 100644 --- a/addons/dashboard/dist/assets/UiParentCard.vue_vue_type_script_setup_true_lang-820f34f1.js +++ b/addons/dashboard/dist/assets/UiParentCard.vue_vue_type_script_setup_true_lang-13601505.js @@ -1 +1 @@ -import{x as n,o,c as i,w as e,a,a6 as d,b as c,K as u,e as p,t as _,a7 as s,A as f,L as V,J as m}from"./index-f71951bf.js";const C={class:"d-sm-flex align-center justify-space-between"},h=n({__name:"UiParentCard",props:{title:String},setup(l){const r=l;return(t,x)=>(o(),i(m,{variant:"outlined",elevation:"0",class:"withbg"},{default:e(()=>[a(d,null,{default:e(()=>[c("div",C,[a(u,null,{default:e(()=>[p(_(r.title),1)]),_:1}),s(t.$slots,"action")])]),_:3}),a(f),a(V,null,{default:e(()=>[s(t.$slots,"default")]),_:3})]),_:3}))}});export{h as _}; +import{x as n,o,c as i,w as e,a,a6 as d,b as c,K as u,e as p,t as _,a7 as s,A as f,L as V,J as m}from"./index-70ea897e.js";const C={class:"d-sm-flex align-center justify-space-between"},h=n({__name:"UiParentCard",props:{title:String},setup(l){const r=l;return(t,x)=>(o(),i(m,{variant:"outlined",elevation:"0",class:"withbg"},{default:e(()=>[a(d,null,{default:e(()=>[c("div",C,[a(u,null,{default:e(()=>[p(_(r.title),1)]),_:1}),s(t.$slots,"action")])]),_:3}),a(f),a(V,null,{default:e(()=>[s(t.$slots,"default")]),_:3})]),_:3}))}});export{h as _}; diff --git a/addons/dashboard/dist/assets/index-f71951bf.js b/addons/dashboard/dist/assets/index-70ea897e.js similarity index 99% rename from addons/dashboard/dist/assets/index-f71951bf.js rename to addons/dashboard/dist/assets/index-70ea897e.js index 06a8e38..01b0f6e 100644 --- a/addons/dashboard/dist/assets/index-f71951bf.js +++ b/addons/dashboard/dist/assets/index-70ea897e.js @@ -6,11 +6,11 @@ * vue-router v4.2.4 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Wr=typeof window<"u";function t5(n){return n.__esModule||n[Symbol.toStringTag]==="Module"}const fe=Object.assign;function Li(n,l){const r={};for(const h in l){const c=l[h];r[h]=Kn(c)?c.map(n):n(c)}return r}const Wo=()=>{},Kn=Array.isArray,e5=/\/$/,n5=n=>n.replace(e5,"");function Di(n,l,r="/"){let h,c={},g="",v="";const k=l.indexOf("#");let x=l.indexOf("?");return k=0&&(x=-1),x>-1&&(h=l.slice(0,x),g=l.slice(x+1,k>-1?k:l.length),c=n(g)),k>-1&&(h=h||l.slice(0,k),v=l.slice(k,l.length)),h=s5(h??l,r),{fullPath:h+(g&&"?")+g+v,path:h,query:c,hash:v}}function l5(n,l){const r=l.query?n(l.query):"";return l.path+(r&&"?")+r+(l.hash||"")}function A1(n,l){return!l||!n.toLowerCase().startsWith(l.toLowerCase())?n:n.slice(l.length)||"/"}function r5(n,l,r){const h=l.matched.length-1,c=r.matched.length-1;return h>-1&&h===c&&eo(l.matched[h],r.matched[c])&&qu(l.params,r.params)&&n(l.query)===n(r.query)&&l.hash===r.hash}function eo(n,l){return(n.aliasOf||n)===(l.aliasOf||l)}function qu(n,l){if(Object.keys(n).length!==Object.keys(l).length)return!1;for(const r in n)if(!o5(n[r],l[r]))return!1;return!0}function o5(n,l){return Kn(n)?B1(n,l):Kn(l)?B1(l,n):n===l}function B1(n,l){return Kn(l)?n.length===l.length&&n.every((r,h)=>r===l[h]):n.length===1&&n[0]===l}function s5(n,l){if(n.startsWith("/"))return n;if(!n)return l;const r=l.split("/"),h=n.split("/"),c=h[h.length-1];(c===".."||c===".")&&h.push("");let g=r.length-1,v,k;for(v=0;v1&&g--;else break;return r.slice(0,g).join("/")+"/"+h.slice(v-(v===h.length?1:0)).join("/")}var rs;(function(n){n.pop="pop",n.push="push"})(rs||(rs={}));var Xo;(function(n){n.back="back",n.forward="forward",n.unknown=""})(Xo||(Xo={}));function a5(n){if(!n)if(Wr){const l=document.querySelector("base");n=l&&l.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),n5(n)}const i5=/^[^#]+#/;function h5(n,l){return n.replace(i5,"#")+l}function d5(n,l){const r=document.documentElement.getBoundingClientRect(),h=n.getBoundingClientRect();return{behavior:l.behavior,left:h.left-r.left-(l.left||0),top:h.top-r.top-(l.top||0)}}const Ga=()=>({left:window.pageXOffset,top:window.pageYOffset});function c5(n){let l;if("el"in n){const r=n.el,h=typeof r=="string"&&r.startsWith("#"),c=typeof r=="string"?h?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!c)return;l=d5(c,n)}else l=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(l):window.scrollTo(l.left!=null?l.left:window.pageXOffset,l.top!=null?l.top:window.pageYOffset)}function H1(n,l){return(history.state?history.state.position-l:-1)+n}const x0=new Map;function u5(n,l){x0.set(n,l)}function p5(n){const l=x0.get(n);return x0.delete(n),l}let g5=()=>location.protocol+"//"+location.host;function Yu(n,l){const{pathname:r,search:h,hash:c}=l,g=n.indexOf("#");if(g>-1){let k=c.includes(n.slice(g))?n.slice(g).length:1,x=c.slice(k);return x[0]!=="/"&&(x="/"+x),A1(x,"")}return A1(r,n)+h+c}function w5(n,l,r,h){let c=[],g=[],v=null;const k=({state:B})=>{const P=Yu(n,location),D=r.value,F=l.value;let X=0;if(B){if(r.value=P,l.value=B,v&&v===D){v=null;return}X=F?B.position-F.position:0}else h(P);c.forEach(R=>{R(r.value,D,{delta:X,type:rs.pop,direction:X?X>0?Xo.forward:Xo.back:Xo.unknown})})};function x(){v=r.value}function I(B){c.push(B);const P=()=>{const D=c.indexOf(B);D>-1&&c.splice(D,1)};return g.push(P),P}function S(){const{history:B}=window;B.state&&B.replaceState(fe({},B.state,{scroll:Ga()}),"")}function $(){for(const B of g)B();g=[],window.removeEventListener("popstate",k),window.removeEventListener("beforeunload",S)}return window.addEventListener("popstate",k),window.addEventListener("beforeunload",S,{passive:!0}),{pauseListeners:x,listen:I,destroy:$}}function N1(n,l,r,h=!1,c=!1){return{back:n,current:l,forward:r,replaced:h,position:window.history.length,scroll:c?Ga():null}}function v5(n){const{history:l,location:r}=window,h={value:Yu(n,r)},c={value:l.state};c.value||g(h.value,{back:null,current:h.value,forward:null,position:l.length-1,replaced:!0,scroll:null},!0);function g(x,I,S){const $=n.indexOf("#"),B=$>-1?(r.host&&document.querySelector("base")?n:n.slice($))+x:g5()+n+x;try{l[S?"replaceState":"pushState"](I,"",B),c.value=I}catch(P){console.error(P),r[S?"replace":"assign"](B)}}function v(x,I){const S=fe({},l.state,N1(c.value.back,x,c.value.forward,!0),I,{position:c.value.position});g(x,S,!0),h.value=x}function k(x,I){const S=fe({},c.value,l.state,{forward:x,scroll:Ga()});g(S.current,S,!0);const $=fe({},N1(h.value,x,null),{position:S.position+1},I);g(x,$,!1),h.value=x}return{location:h,state:c,push:k,replace:v}}function f5(n){n=a5(n);const l=v5(n),r=w5(n,l.state,l.location,l.replace);function h(g,v=!0){v||r.pauseListeners(),history.go(g)}const c=fe({location:"",base:n,go:h,createHref:h5.bind(null,n)},l,r);return Object.defineProperty(c,"location",{enumerable:!0,get:()=>l.location.value}),Object.defineProperty(c,"state",{enumerable:!0,get:()=>l.state.value}),c}function m5(n){return typeof n=="string"||n&&typeof n=="object"}function Uu(n){return typeof n=="string"||typeof n=="symbol"}const Pl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Gu=Symbol("");var j1;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(j1||(j1={}));function no(n,l){return fe(new Error,{type:n,[Gu]:!0},l)}function dl(n,l){return n instanceof Error&&Gu in n&&(l==null||!!(n.type&l))}const P1="[^/]+?",k5={sensitive:!1,strict:!1,start:!0,end:!0},b5=/[.+*?^${}()[\]/\\]/g;function M5(n,l){const r=fe({},k5,l),h=[];let c=r.start?"^":"";const g=[];for(const I of n){const S=I.length?[]:[90];r.strict&&!I.length&&(c+="/");for(let $=0;$l.length?l.length===1&&l[0]===40+40?1:-1:0}function z5(n,l){let r=0;const h=n.score,c=l.score;for(;r0&&l[l.length-1]<0}const I5={type:0,value:""},y5=/[a-zA-Z0-9_]/;function C5(n){if(!n)return[[]];if(n==="/")return[[I5]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function l(P){throw new Error(`ERR (${r})/"${I}": ${P}`)}let r=0,h=r;const c=[];let g;function v(){g&&c.push(g),g=[]}let k=0,x,I="",S="";function $(){I&&(r===0?g.push({type:0,value:I}):r===1||r===2||r===3?(g.length>1&&(x==="*"||x==="+")&&l(`A repeatable param (${I}) must be alone in its segment. eg: '/:ids+.`),g.push({type:1,value:I,regexp:S,repeatable:x==="*"||x==="+",optional:x==="*"||x==="?"})):l("Invalid state to consume buffer"),I="")}function B(){I+=x}for(;k{v(H)}:Wo}function v(S){if(Uu(S)){const $=h.get(S);$&&(h.delete(S),r.splice(r.indexOf($),1),$.children.forEach(v),$.alias.forEach(v))}else{const $=r.indexOf(S);$>-1&&(r.splice($,1),S.record.name&&h.delete(S.record.name),S.children.forEach(v),S.alias.forEach(v))}}function k(){return r}function x(S){let $=0;for(;$=0&&(S.record.path!==r[$].record.path||!Zu(S,r[$]));)$++;r.splice($,0,S),S.record.name&&!O1(S)&&h.set(S.record.name,S)}function I(S,$){let B,P={},D,F;if("name"in S&&S.name){if(B=h.get(S.name),!B)throw no(1,{location:S});F=B.record.name,P=fe(D1($.params,B.keys.filter(H=>!H.optional).map(H=>H.name)),S.params&&D1(S.params,B.keys.map(H=>H.name))),D=B.stringify(P)}else if("path"in S)D=S.path,B=r.find(H=>H.re.test(D)),B&&(P=B.parse(D),F=B.record.name);else{if(B=$.name?h.get($.name):r.find(H=>H.re.test($.path)),!B)throw no(1,{location:S,currentLocation:$});F=B.record.name,P=fe({},$.params,S.params),D=B.stringify(P)}const X=[];let R=B;for(;R;)X.unshift(R.record),R=R.parent;return{name:F,path:D,params:P,matched:X,meta:H5(X)}}return n.forEach(S=>g(S)),{addRoute:g,resolve:I,removeRoute:v,getRoutes:k,getRecordMatcher:c}}function D1(n,l){const r={};for(const h of l)h in n&&(r[h]=n[h]);return r}function A5(n){return{path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:void 0,beforeEnter:n.beforeEnter,props:B5(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}}}function B5(n){const l={},r=n.props||!1;if("component"in n)l.default=r;else for(const h in n.components)l[h]=typeof r=="object"?r[h]:r;return l}function O1(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function H5(n){return n.reduce((l,r)=>fe(l,r.meta),{})}function F1(n,l){const r={};for(const h in n)r[h]=h in l?l[h]:n[h];return r}function Zu(n,l){return l.children.some(r=>r===n||Zu(n,r))}const Ku=/#/g,N5=/&/g,j5=/\//g,P5=/=/g,L5=/\?/g,Qu=/\+/g,D5=/%5B/g,O5=/%5D/g,Ju=/%5E/g,F5=/%60/g,tp=/%7B/g,R5=/%7C/g,ep=/%7D/g,T5=/%20/g;function Xh(n){return encodeURI(""+n).replace(R5,"|").replace(D5,"[").replace(O5,"]")}function E5(n){return Xh(n).replace(tp,"{").replace(ep,"}").replace(Ju,"^")}function z0(n){return Xh(n).replace(Qu,"%2B").replace(T5,"+").replace(Ku,"%23").replace(N5,"%26").replace(F5,"`").replace(tp,"{").replace(ep,"}").replace(Ju,"^")}function V5(n){return z0(n).replace(P5,"%3D")}function _5(n){return Xh(n).replace(Ku,"%23").replace(L5,"%3F")}function W5(n){return n==null?"":_5(n).replace(j5,"%2F")}function wa(n){try{return decodeURIComponent(""+n)}catch{}return""+n}function X5(n){const l={};if(n===""||n==="?")return l;const h=(n[0]==="?"?n.slice(1):n).split("&");for(let c=0;cg&&z0(g)):[h&&z0(h)]).forEach(g=>{g!==void 0&&(l+=(l.length?"&":"")+r,g!=null&&(l+="="+g))})}return l}function q5(n){const l={};for(const r in n){const h=n[r];h!==void 0&&(l[r]=Kn(h)?h.map(c=>c==null?null:""+c):h==null?h:""+h)}return l}const Y5=Symbol(""),T1=Symbol(""),qh=Symbol(""),np=Symbol(""),I0=Symbol("");function $o(){let n=[];function l(h){return n.push(h),()=>{const c=n.indexOf(h);c>-1&&n.splice(c,1)}}function r(){n=[]}return{add:l,list:()=>n.slice(),reset:r}}function Rl(n,l,r,h,c){const g=h&&(h.enterCallbacks[c]=h.enterCallbacks[c]||[]);return()=>new Promise((v,k)=>{const x=$=>{$===!1?k(no(4,{from:r,to:l})):$ instanceof Error?k($):m5($)?k(no(2,{from:l,to:$})):(g&&h.enterCallbacks[c]===g&&typeof $=="function"&&g.push($),v())},I=n.call(h&&h.instances[c],l,r,x);let S=Promise.resolve(I);n.length<3&&(S=S.then(x)),S.catch($=>k($))})}function Oi(n,l,r,h){const c=[];for(const g of n)for(const v in g.components){let k=g.components[v];if(!(l!=="beforeRouteEnter"&&!g.instances[v]))if(U5(k)){const I=(k.__vccOpts||k)[l];I&&c.push(Rl(I,r,h,g,v))}else{let x=k();c.push(()=>x.then(I=>{if(!I)return Promise.reject(new Error(`Couldn't resolve component "${v}" at "${g.path}"`));const S=t5(I)?I.default:I;g.components[v]=S;const B=(S.__vccOpts||S)[l];return B&&Rl(B,r,h,g,v)()}))}}return c}function U5(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function E1(n){const l=de(qh),r=de(np),h=q(()=>l.resolve(je(n.to))),c=q(()=>{const{matched:x}=h.value,{length:I}=x,S=x[I-1],$=r.matched;if(!S||!$.length)return-1;const B=$.findIndex(eo.bind(null,S));if(B>-1)return B;const P=V1(x[I-2]);return I>1&&V1(S)===P&&$[$.length-1].path!==P?$.findIndex(eo.bind(null,x[I-2])):B}),g=q(()=>c.value>-1&&Q5(r.params,h.value.params)),v=q(()=>c.value>-1&&c.value===r.matched.length-1&&qu(r.params,h.value.params));function k(x={}){return K5(x)?l[je(n.replace)?"replace":"push"](je(n.to)).catch(Wo):Promise.resolve()}return{route:h,href:q(()=>h.value.href),isActive:g,isExactActive:v,navigate:k}}const G5=Cr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:E1,setup(n,{slots:l}){const r=Ze(E1(n)),{options:h}=de(qh),c=q(()=>({[_1(n.activeClass,h.linkActiveClass,"router-link-active")]:r.isActive,[_1(n.exactActiveClass,h.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const g=l.default&&l.default(r);return n.custom?g:Ln("a",{"aria-current":r.isExactActive?n.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:c.value},g)}}}),Z5=G5;function K5(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const l=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(l))return}return n.preventDefault&&n.preventDefault(),!0}}function Q5(n,l){for(const r in l){const h=l[r],c=n[r];if(typeof h=="string"){if(h!==c)return!1}else if(!Kn(c)||c.length!==h.length||h.some((g,v)=>g!==c[v]))return!1}return!0}function V1(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const _1=(n,l,r)=>n??l??r,J5=Cr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:l,slots:r}){const h=de(I0),c=q(()=>n.route||h.value),g=de(T1,0),v=q(()=>{let I=je(g);const{matched:S}=c.value;let $;for(;($=S[I])&&!$.components;)I++;return I}),k=q(()=>c.value.matched[v.value]);Se(T1,q(()=>v.value+1)),Se(Y5,k),Se(I0,c);const x=Lt();return _t(()=>[x.value,k.value,n.name],([I,S,$],[B,P,D])=>{S&&(S.instances[$]=I,P&&P!==S&&I&&I===B&&(S.leaveGuards.size||(S.leaveGuards=P.leaveGuards),S.updateGuards.size||(S.updateGuards=P.updateGuards))),I&&S&&(!P||!eo(S,P)||!B)&&(S.enterCallbacks[$]||[]).forEach(F=>F(I))},{flush:"post"}),()=>{const I=c.value,S=n.name,$=k.value,B=$&&$.components[S];if(!B)return W1(r.default,{Component:B,route:I});const P=$.props[S],D=P?P===!0?I.params:typeof P=="function"?P(I):P:null,X=Ln(B,fe({},D,l,{onVnodeUnmounted:R=>{R.component.isUnmounted&&($.instances[S]=null)},ref:x}));return W1(r.default,{Component:X,route:I})||X}}});function W1(n,l){if(!n)return null;const r=n(l);return r.length===1?r[0]:r}const lp=J5;function tm(n){const l=$5(n.routes,n),r=n.parseQuery||X5,h=n.stringifyQuery||R1,c=n.history,g=$o(),v=$o(),k=$o(),x=Wt(Pl);let I=Pl;Wr&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const S=Li.bind(null,pt=>""+pt),$=Li.bind(null,W5),B=Li.bind(null,wa);function P(pt,Nt){let jt,bt;return Uu(pt)?(jt=l.getRecordMatcher(pt),bt=Nt):bt=pt,l.addRoute(bt,jt)}function D(pt){const Nt=l.getRecordMatcher(pt);Nt&&l.removeRoute(Nt)}function F(){return l.getRoutes().map(pt=>pt.record)}function X(pt){return!!l.getRecordMatcher(pt)}function R(pt,Nt){if(Nt=fe({},Nt||x.value),typeof pt=="string"){const at=Di(r,pt,Nt.path),ct=l.resolve({path:at.path},Nt),kt=c.createHref(at.fullPath);return fe(at,ct,{params:B(ct.params),hash:wa(at.hash),redirectedFrom:void 0,href:kt})}let jt;if("path"in pt)jt=fe({},pt,{path:Di(r,pt.path,Nt.path).path});else{const at=fe({},pt.params);for(const ct in at)at[ct]==null&&delete at[ct];jt=fe({},pt,{params:$(at)}),Nt.params=$(Nt.params)}const bt=l.resolve(jt,Nt),ft=pt.hash||"";bt.params=S(B(bt.params));const J=l5(h,fe({},pt,{hash:E5(ft),path:bt.path})),lt=c.createHref(J);return fe({fullPath:J,hash:ft,query:h===R1?q5(pt.query):pt.query||{}},bt,{redirectedFrom:void 0,href:lt})}function H(pt){return typeof pt=="string"?Di(r,pt,x.value.path):fe({},pt)}function U(pt,Nt){if(I!==pt)return no(8,{from:Nt,to:pt})}function W(pt){return nt(pt)}function _(pt){return W(fe(H(pt),{replace:!0}))}function tt(pt){const Nt=pt.matched[pt.matched.length-1];if(Nt&&Nt.redirect){const{redirect:jt}=Nt;let bt=typeof jt=="function"?jt(pt):jt;return typeof bt=="string"&&(bt=bt.includes("?")||bt.includes("#")?bt=H(bt):{path:bt},bt.params={}),fe({query:pt.query,hash:pt.hash,params:"path"in bt?{}:pt.params},bt)}}function nt(pt,Nt){const jt=I=R(pt),bt=x.value,ft=pt.state,J=pt.force,lt=pt.replace===!0,at=tt(jt);if(at)return nt(fe(H(at),{state:typeof at=="object"?fe({},ft,at.state):ft,force:J,replace:lt}),Nt||jt);const ct=jt;ct.redirectedFrom=Nt;let kt;return!J&&r5(h,bt,jt)&&(kt=no(16,{to:ct,from:bt}),Tt(bt,bt,!0,!1)),(kt?Promise.resolve(kt):et(ct,bt)).catch(yt=>dl(yt)?dl(yt,2)?yt:At(yt):gt(yt,ct,bt)).then(yt=>{if(yt){if(dl(yt,2))return nt(fe({replace:lt},H(yt.to),{state:typeof yt.to=="object"?fe({},ft,yt.to.state):ft,force:J}),Nt||ct)}else yt=rt(ct,bt,!0,lt,ft);return st(ct,bt,yt),yt})}function Y(pt,Nt){const jt=U(pt,Nt);return jt?Promise.reject(jt):Promise.resolve()}function G(pt){const Nt=Jt.values().next().value;return Nt&&typeof Nt.runWithContext=="function"?Nt.runWithContext(pt):pt()}function et(pt,Nt){let jt;const[bt,ft,J]=em(pt,Nt);jt=Oi(bt.reverse(),"beforeRouteLeave",pt,Nt);for(const at of bt)at.leaveGuards.forEach(ct=>{jt.push(Rl(ct,pt,Nt))});const lt=Y.bind(null,pt,Nt);return jt.push(lt),ut(jt).then(()=>{jt=[];for(const at of g.list())jt.push(Rl(at,pt,Nt));return jt.push(lt),ut(jt)}).then(()=>{jt=Oi(ft,"beforeRouteUpdate",pt,Nt);for(const at of ft)at.updateGuards.forEach(ct=>{jt.push(Rl(ct,pt,Nt))});return jt.push(lt),ut(jt)}).then(()=>{jt=[];for(const at of J)if(at.beforeEnter)if(Kn(at.beforeEnter))for(const ct of at.beforeEnter)jt.push(Rl(ct,pt,Nt));else jt.push(Rl(at.beforeEnter,pt,Nt));return jt.push(lt),ut(jt)}).then(()=>(pt.matched.forEach(at=>at.enterCallbacks={}),jt=Oi(J,"beforeRouteEnter",pt,Nt),jt.push(lt),ut(jt))).then(()=>{jt=[];for(const at of v.list())jt.push(Rl(at,pt,Nt));return jt.push(lt),ut(jt)}).catch(at=>dl(at,8)?at:Promise.reject(at))}function st(pt,Nt,jt){k.list().forEach(bt=>G(()=>bt(pt,Nt,jt)))}function rt(pt,Nt,jt,bt,ft){const J=U(pt,Nt);if(J)return J;const lt=Nt===Pl,at=Wr?history.state:{};jt&&(bt||lt?c.replace(pt.fullPath,fe({scroll:lt&&at&&at.scroll},ft)):c.push(pt.fullPath,ft)),x.value=pt,Tt(pt,Nt,jt,lt),At()}let ht;function dt(){ht||(ht=c.listen((pt,Nt,jt)=>{if(!Et.listening)return;const bt=R(pt),ft=tt(bt);if(ft){nt(fe(ft,{replace:!0}),bt).catch(Wo);return}I=bt;const J=x.value;Wr&&u5(H1(J.fullPath,jt.delta),Ga()),et(bt,J).catch(lt=>dl(lt,12)?lt:dl(lt,2)?(nt(lt.to,bt).then(at=>{dl(at,20)&&!jt.delta&&jt.type===rs.pop&&c.go(-1,!1)}).catch(Wo),Promise.reject()):(jt.delta&&c.go(-jt.delta,!1),gt(lt,bt,J))).then(lt=>{lt=lt||rt(bt,J,!1),lt&&(jt.delta&&!dl(lt,8)?c.go(-jt.delta,!1):jt.type===rs.pop&&dl(lt,20)&&c.go(-1,!1)),st(bt,J,lt)}).catch(Wo)}))}let Ct=$o(),xt=$o(),wt;function gt(pt,Nt,jt){At(pt);const bt=xt.list();return bt.length?bt.forEach(ft=>ft(pt,Nt,jt)):console.error(pt),Promise.reject(pt)}function It(){return wt&&x.value!==Pl?Promise.resolve():new Promise((pt,Nt)=>{Ct.add([pt,Nt])})}function At(pt){return wt||(wt=!pt,dt(),Ct.list().forEach(([Nt,jt])=>pt?jt(pt):Nt()),Ct.reset()),pt}function Tt(pt,Nt,jt,bt){const{scrollBehavior:ft}=n;if(!Wr||!ft)return Promise.resolve();const J=!jt&&p5(H1(pt.fullPath,0))||(bt||!jt)&&history.state&&history.state.scroll||null;return we().then(()=>ft(pt,Nt,J)).then(lt=>lt&&c5(lt)).catch(lt=>gt(lt,pt,Nt))}const Ft=pt=>c.go(pt);let Qt;const Jt=new Set,Et={currentRoute:x,listening:!0,addRoute:P,removeRoute:D,hasRoute:X,getRoutes:F,resolve:R,options:n,push:W,replace:_,go:Ft,back:()=>Ft(-1),forward:()=>Ft(1),beforeEach:g.add,beforeResolve:v.add,afterEach:k.add,onError:xt.add,isReady:It,install(pt){const Nt=this;pt.component("RouterLink",Z5),pt.component("RouterView",lp),pt.config.globalProperties.$router=Nt,Object.defineProperty(pt.config.globalProperties,"$route",{enumerable:!0,get:()=>je(x)}),Wr&&!Qt&&x.value===Pl&&(Qt=!0,W(c.location).catch(ft=>{}));const jt={};for(const ft in Pl)Object.defineProperty(jt,ft,{get:()=>x.value[ft],enumerable:!0});pt.provide(qh,Nt),pt.provide(np,fh(jt)),pt.provide(I0,x);const bt=pt.unmount;Jt.add(pt),pt.unmount=function(){Jt.delete(pt),Jt.size<1&&(I=Pl,ht&&ht(),ht=null,x.value=Pl,Qt=!1,wt=!1),bt()}}};function ut(pt){return pt.reduce((Nt,jt)=>Nt.then(()=>G(jt)),Promise.resolve())}return Et}function em(n,l){const r=[],h=[],c=[],g=Math.max(l.matched.length,n.matched.length);for(let v=0;veo(I,k))?h.push(k):r.push(k));const x=n.matched[v];x&&(l.matched.find(I=>eo(I,x))||c.push(x))}return[r,h,c]}const nm=Cr({__name:"App",setup(n){return(l,r)=>(xs(),_a(je(lp)))}}),lm="modulepreload",rm=function(n){return"/"+n},X1={},en=function(l,r,h){if(!r||r.length===0)return l();const c=document.getElementsByTagName("link");return Promise.all(r.map(g=>{if(g=rm(g),g in X1)return;X1[g]=!0;const v=g.endsWith(".css"),k=v?'[rel="stylesheet"]':"";if(!!h)for(let S=c.length-1;S>=0;S--){const $=c[S];if($.href===g&&(!v||$.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${g}"]${k}`))return;const I=document.createElement("link");if(I.rel=v?"stylesheet":lm,v||(I.as="script",I.crossOrigin=""),I.href=g,document.head.appendChild(I),v)return new Promise((S,$)=>{I.addEventListener("load",S),I.addEventListener("error",()=>$(new Error(`Unable to preload CSS for ${g}`)))})})).then(()=>l()).catch(g=>{const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=g,window.dispatchEvent(v),!v.defaultPrevented)throw g})},om={path:"/main",meta:{requiresAuth:!0},redirect:"/main/dashboard/default",component:()=>en(()=>import("./FullLayout-bbeaf23b.js"),["assets/FullLayout-bbeaf23b.js","assets/LogoDark.vue_vue_type_script_setup_true_lang-fb0b037c.js","assets/md5-0015f538.js"]),children:[{name:"Dashboard",path:"/",component:()=>en(()=>import("./DefaultDashboard-2c1c64e5.js"),["assets/DefaultDashboard-2c1c64e5.js","assets/_plugin-vue_export-helper-c27b6911.js"])},{name:"Extensions",path:"/extension",component:()=>en(()=>import("./ExtensionPage-25e6735d.js"),[])},{name:"Configs",path:"/config",component:()=>en(()=>import("./ConfigPage-0f8db50a.js"),["assets/ConfigPage-0f8db50a.js","assets/UiParentCard.vue_vue_type_script_setup_true_lang-820f34f1.js"])},{name:"Default",path:"/dashboard/default",component:()=>en(()=>import("./DefaultDashboard-2c1c64e5.js"),["assets/DefaultDashboard-2c1c64e5.js","assets/_plugin-vue_export-helper-c27b6911.js"])},{name:"Console",path:"/console",component:()=>en(()=>import("./ConsolePage-d9bd6c65.js"),["assets/ConsolePage-d9bd6c65.js","assets/ConsolePage-ff373be6.css"])},{name:"Tabler Icons",path:"/icons/tabler",component:()=>en(()=>import("./TablerIcons-255723c3.js"),["assets/TablerIcons-255723c3.js","assets/BaseBreadcrumb.vue_vue_type_style_index_0_lang-2b6e2e87.js","assets/BaseBreadcrumb-4d676ba5.css","assets/UiParentCard.vue_vue_type_script_setup_true_lang-820f34f1.js"])},{name:"Material Icons",path:"/icons/material",component:()=>en(()=>import("./MaterialIcons-c4f273a6.js"),["assets/MaterialIcons-c4f273a6.js","assets/BaseBreadcrumb.vue_vue_type_style_index_0_lang-2b6e2e87.js","assets/BaseBreadcrumb-4d676ba5.css","assets/UiParentCard.vue_vue_type_script_setup_true_lang-820f34f1.js"])},{name:"Typography",path:"/utils/typography",component:()=>en(()=>import("./TypographyPage-dbd9a696.js"),["assets/TypographyPage-dbd9a696.js","assets/BaseBreadcrumb.vue_vue_type_style_index_0_lang-2b6e2e87.js","assets/BaseBreadcrumb-4d676ba5.css","assets/UiParentCard.vue_vue_type_script_setup_true_lang-820f34f1.js"])},{name:"Shadows",path:"/utils/shadows",component:()=>en(()=>import("./ShadowPage-d3d4ab58.js"),["assets/ShadowPage-d3d4ab58.js","assets/BaseBreadcrumb.vue_vue_type_style_index_0_lang-2b6e2e87.js","assets/BaseBreadcrumb-4d676ba5.css","assets/UiParentCard.vue_vue_type_script_setup_true_lang-820f34f1.js"])},{name:"Colors",path:"/utils/colors",component:()=>en(()=>import("./ColorPage-a6d7e2e7.js"),["assets/ColorPage-a6d7e2e7.js","assets/BaseBreadcrumb.vue_vue_type_style_index_0_lang-2b6e2e87.js","assets/BaseBreadcrumb-4d676ba5.css","assets/UiParentCard.vue_vue_type_script_setup_true_lang-820f34f1.js"])}]},sm={path:"/auth",component:()=>en(()=>import("./BlankLayout-f77415c8.js"),[]),meta:{requiresAuth:!1},children:[{name:"Login",path:"/auth/login",component:()=>en(()=>import("./LoginPage-b4c25469.js"),["assets/LoginPage-b4c25469.js","assets/LogoDark.vue_vue_type_script_setup_true_lang-fb0b037c.js","assets/md5-0015f538.js","assets/LoginPage-74e85ca7.css"])},{name:"Register",path:"/auth/register",component:()=>en(()=>import("./RegisterPage-81b37bf9.js"),["assets/RegisterPage-81b37bf9.js","assets/LogoDark.vue_vue_type_script_setup_true_lang-fb0b037c.js","assets/RegisterPage-799ed804.css"])},{name:"Error 404",path:"/pages/error",component:()=>en(()=>import("./Error404Page-41f8cd81.js"),["assets/Error404Page-41f8cd81.js","assets/_plugin-vue_export-helper-c27b6911.js","assets/Error404Page-11cf087a.css"])}]};function rp(n,l){return function(){return n.apply(l,arguments)}}const{toString:am}=Object.prototype,{getPrototypeOf:Yh}=Object,Za=(n=>l=>{const r=am.call(l);return n[r]||(n[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),il=n=>(n=n.toLowerCase(),l=>Za(l)===n),Ka=n=>l=>typeof l===n,{isArray:po}=Array,os=Ka("undefined");function im(n){return n!==null&&!os(n)&&n.constructor!==null&&!os(n.constructor)&&jn(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const op=il("ArrayBuffer");function hm(n){let l;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?l=ArrayBuffer.isView(n):l=n&&n.buffer&&op(n.buffer),l}const dm=Ka("string"),jn=Ka("function"),sp=Ka("number"),Qa=n=>n!==null&&typeof n=="object",cm=n=>n===!0||n===!1,ra=n=>{if(Za(n)!=="object")return!1;const l=Yh(n);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},um=il("Date"),pm=il("File"),gm=il("Blob"),wm=il("FileList"),vm=n=>Qa(n)&&jn(n.pipe),fm=n=>{let l;return n&&(typeof FormData=="function"&&n instanceof FormData||jn(n.append)&&((l=Za(n))==="formdata"||l==="object"&&jn(n.toString)&&n.toString()==="[object FormData]"))},mm=il("URLSearchParams"),km=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ys(n,l,{allOwnKeys:r=!1}={}){if(n===null||typeof n>"u")return;let h,c;if(typeof n!="object"&&(n=[n]),po(n))for(h=0,c=n.length;h0;)if(c=r[h],l===c.toLowerCase())return c;return null}const ip=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),hp=n=>!os(n)&&n!==ip;function y0(){const{caseless:n}=hp(this)&&this||{},l={},r=(h,c)=>{const g=n&&ap(l,c)||c;ra(l[g])&&ra(h)?l[g]=y0(l[g],h):ra(h)?l[g]=y0({},h):po(h)?l[g]=h.slice():l[g]=h};for(let h=0,c=arguments.length;h(ys(l,(c,g)=>{r&&jn(c)?n[g]=rp(c,r):n[g]=c},{allOwnKeys:h}),n),Mm=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),xm=(n,l,r,h)=>{n.prototype=Object.create(l.prototype,h),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:l.prototype}),r&&Object.assign(n.prototype,r)},zm=(n,l,r,h)=>{let c,g,v;const k={};if(l=l||{},n==null)return l;do{for(c=Object.getOwnPropertyNames(n),g=c.length;g-- >0;)v=c[g],(!h||h(v,n,l))&&!k[v]&&(l[v]=n[v],k[v]=!0);n=r!==!1&&Yh(n)}while(n&&(!r||r(n,l))&&n!==Object.prototype);return l},Im=(n,l,r)=>{n=String(n),(r===void 0||r>n.length)&&(r=n.length),r-=l.length;const h=n.indexOf(l,r);return h!==-1&&h===r},ym=n=>{if(!n)return null;if(po(n))return n;let l=n.length;if(!sp(l))return null;const r=new Array(l);for(;l-- >0;)r[l]=n[l];return r},Cm=(n=>l=>n&&l instanceof n)(typeof Uint8Array<"u"&&Yh(Uint8Array)),Sm=(n,l)=>{const h=(n&&n[Symbol.iterator]).call(n);let c;for(;(c=h.next())&&!c.done;){const g=c.value;l.call(n,g[0],g[1])}},$m=(n,l)=>{let r;const h=[];for(;(r=n.exec(l))!==null;)h.push(r);return h},Am=il("HTMLFormElement"),Bm=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,h,c){return h.toUpperCase()+c}),q1=(({hasOwnProperty:n})=>(l,r)=>n.call(l,r))(Object.prototype),Hm=il("RegExp"),dp=(n,l)=>{const r=Object.getOwnPropertyDescriptors(n),h={};ys(r,(c,g)=>{let v;(v=l(c,g,n))!==!1&&(h[g]=v||c)}),Object.defineProperties(n,h)},Nm=n=>{dp(n,(l,r)=>{if(jn(n)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const h=n[r];if(jn(h)){if(l.enumerable=!1,"writable"in l){l.writable=!1;return}l.set||(l.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},jm=(n,l)=>{const r={},h=c=>{c.forEach(g=>{r[g]=!0})};return po(n)?h(n):h(String(n).split(l)),r},Pm=()=>{},Lm=(n,l)=>(n=+n,Number.isFinite(n)?n:l),Fi="abcdefghijklmnopqrstuvwxyz",Y1="0123456789",cp={DIGIT:Y1,ALPHA:Fi,ALPHA_DIGIT:Fi+Fi.toUpperCase()+Y1},Dm=(n=16,l=cp.ALPHA_DIGIT)=>{let r="";const{length:h}=l;for(;n--;)r+=l[Math.random()*h|0];return r};function Om(n){return!!(n&&jn(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Fm=n=>{const l=new Array(10),r=(h,c)=>{if(Qa(h)){if(l.indexOf(h)>=0)return;if(!("toJSON"in h)){l[c]=h;const g=po(h)?[]:{};return ys(h,(v,k)=>{const x=r(v,c+1);!os(x)&&(g[k]=x)}),l[c]=void 0,g}}return h};return r(n,0)},Rm=il("AsyncFunction"),Tm=n=>n&&(Qa(n)||jn(n))&&jn(n.then)&&jn(n.catch),St={isArray:po,isArrayBuffer:op,isBuffer:im,isFormData:fm,isArrayBufferView:hm,isString:dm,isNumber:sp,isBoolean:cm,isObject:Qa,isPlainObject:ra,isUndefined:os,isDate:um,isFile:pm,isBlob:gm,isRegExp:Hm,isFunction:jn,isStream:vm,isURLSearchParams:mm,isTypedArray:Cm,isFileList:wm,forEach:ys,merge:y0,extend:bm,trim:km,stripBOM:Mm,inherits:xm,toFlatObject:zm,kindOf:Za,kindOfTest:il,endsWith:Im,toArray:ym,forEachEntry:Sm,matchAll:$m,isHTMLForm:Am,hasOwnProperty:q1,hasOwnProp:q1,reduceDescriptors:dp,freezeMethods:Nm,toObjectSet:jm,toCamelCase:Bm,noop:Pm,toFiniteNumber:Lm,findKey:ap,global:ip,isContextDefined:hp,ALPHABET:cp,generateString:Dm,isSpecCompliantForm:Om,toJSONObject:Fm,isAsyncFn:Rm,isThenable:Tm};function pe(n,l,r,h,c){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",l&&(this.code=l),r&&(this.config=r),h&&(this.request=h),c&&(this.response=c)}St.inherits(pe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:St.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const up=pe.prototype,pp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{pp[n]={value:n}});Object.defineProperties(pe,pp);Object.defineProperty(up,"isAxiosError",{value:!0});pe.from=(n,l,r,h,c,g)=>{const v=Object.create(up);return St.toFlatObject(n,v,function(x){return x!==Error.prototype},k=>k!=="isAxiosError"),pe.call(v,n.message,l,r,h,c),v.cause=n,v.name=n.name,g&&Object.assign(v,g),v};const Em=null;function C0(n){return St.isPlainObject(n)||St.isArray(n)}function gp(n){return St.endsWith(n,"[]")?n.slice(0,-2):n}function U1(n,l,r){return n?n.concat(l).map(function(c,g){return c=gp(c),!r&&g?"["+c+"]":c}).join(r?".":""):l}function Vm(n){return St.isArray(n)&&!n.some(C0)}const _m=St.toFlatObject(St,{},null,function(l){return/^is[A-Z]/.test(l)});function Ja(n,l,r){if(!St.isObject(n))throw new TypeError("target must be an object");l=l||new FormData,r=St.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(F,X){return!St.isUndefined(X[F])});const h=r.metaTokens,c=r.visitor||S,g=r.dots,v=r.indexes,x=(r.Blob||typeof Blob<"u"&&Blob)&&St.isSpecCompliantForm(l);if(!St.isFunction(c))throw new TypeError("visitor must be a function");function I(D){if(D===null)return"";if(St.isDate(D))return D.toISOString();if(!x&&St.isBlob(D))throw new pe("Blob is not supported. Use a Buffer instead.");return St.isArrayBuffer(D)||St.isTypedArray(D)?x&&typeof Blob=="function"?new Blob([D]):Buffer.from(D):D}function S(D,F,X){let R=D;if(D&&!X&&typeof D=="object"){if(St.endsWith(F,"{}"))F=h?F:F.slice(0,-2),D=JSON.stringify(D);else if(St.isArray(D)&&Vm(D)||(St.isFileList(D)||St.endsWith(F,"[]"))&&(R=St.toArray(D)))return F=gp(F),R.forEach(function(U,W){!(St.isUndefined(U)||U===null)&&l.append(v===!0?U1([F],W,g):v===null?F:F+"[]",I(U))}),!1}return C0(D)?!0:(l.append(U1(X,F,g),I(D)),!1)}const $=[],B=Object.assign(_m,{defaultVisitor:S,convertValue:I,isVisitable:C0});function P(D,F){if(!St.isUndefined(D)){if($.indexOf(D)!==-1)throw Error("Circular reference detected in "+F.join("."));$.push(D),St.forEach(D,function(R,H){(!(St.isUndefined(R)||R===null)&&c.call(l,R,St.isString(H)?H.trim():H,F,B))===!0&&P(R,F?F.concat(H):[H])}),$.pop()}}if(!St.isObject(n))throw new TypeError("data must be an object");return P(n),l}function G1(n){const l={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(h){return l[h]})}function Uh(n,l){this._pairs=[],n&&Ja(n,this,l)}const wp=Uh.prototype;wp.append=function(l,r){this._pairs.push([l,r])};wp.toString=function(l){const r=l?function(h){return l.call(this,h,G1)}:G1;return this._pairs.map(function(c){return r(c[0])+"="+r(c[1])},"").join("&")};function Wm(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vp(n,l,r){if(!l)return n;const h=r&&r.encode||Wm,c=r&&r.serialize;let g;if(c?g=c(l,r):g=St.isURLSearchParams(l)?l.toString():new Uh(l,r).toString(h),g){const v=n.indexOf("#");v!==-1&&(n=n.slice(0,v)),n+=(n.indexOf("?")===-1?"?":"&")+g}return n}class Xm{constructor(){this.handlers=[]}use(l,r,h){return this.handlers.push({fulfilled:l,rejected:r,synchronous:h?h.synchronous:!1,runWhen:h?h.runWhen:null}),this.handlers.length-1}eject(l){this.handlers[l]&&(this.handlers[l]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(l){St.forEach(this.handlers,function(h){h!==null&&l(h)})}}const Z1=Xm,fp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qm=typeof URLSearchParams<"u"?URLSearchParams:Uh,Ym=typeof FormData<"u"?FormData:null,Um=typeof Blob<"u"?Blob:null,Gm={isBrowser:!0,classes:{URLSearchParams:qm,FormData:Ym,Blob:Um},protocols:["http","https","file","blob","url","data"]},mp=typeof window<"u"&&typeof document<"u",Zm=(n=>mp&&["ReactNative","NativeScript","NS"].indexOf(n)<0)(typeof navigator<"u"&&navigator.product),Km=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Qm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:mp,hasStandardBrowserEnv:Zm,hasStandardBrowserWebWorkerEnv:Km},Symbol.toStringTag,{value:"Module"})),nl={...Qm,...Gm};function Jm(n,l){return Ja(n,new nl.classes.URLSearchParams,Object.assign({visitor:function(r,h,c,g){return nl.isNode&&St.isBuffer(r)?(this.append(h,r.toString("base64")),!1):g.defaultVisitor.apply(this,arguments)}},l))}function tk(n){return St.matchAll(/\w+|\[(\w*)]/g,n).map(l=>l[0]==="[]"?"":l[1]||l[0])}function ek(n){const l={},r=Object.keys(n);let h;const c=r.length;let g;for(h=0;h=r.length;return v=!v&&St.isArray(c)?c.length:v,x?(St.hasOwnProp(c,v)?c[v]=[c[v],h]:c[v]=h,!k):((!c[v]||!St.isObject(c[v]))&&(c[v]=[]),l(r,h,c[v],g)&&St.isArray(c[v])&&(c[v]=ek(c[v])),!k)}if(St.isFormData(n)&&St.isFunction(n.entries)){const r={};return St.forEachEntry(n,(h,c)=>{l(tk(h),c,r,0)}),r}return null}function nk(n,l,r){if(St.isString(n))try{return(l||JSON.parse)(n),St.trim(n)}catch(h){if(h.name!=="SyntaxError")throw h}return(r||JSON.stringify)(n)}const Gh={transitional:fp,adapter:["xhr","http"],transformRequest:[function(l,r){const h=r.getContentType()||"",c=h.indexOf("application/json")>-1,g=St.isObject(l);if(g&&St.isHTMLForm(l)&&(l=new FormData(l)),St.isFormData(l))return c&&c?JSON.stringify(kp(l)):l;if(St.isArrayBuffer(l)||St.isBuffer(l)||St.isStream(l)||St.isFile(l)||St.isBlob(l))return l;if(St.isArrayBufferView(l))return l.buffer;if(St.isURLSearchParams(l))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),l.toString();let k;if(g){if(h.indexOf("application/x-www-form-urlencoded")>-1)return Jm(l,this.formSerializer).toString();if((k=St.isFileList(l))||h.indexOf("multipart/form-data")>-1){const x=this.env&&this.env.FormData;return Ja(k?{"files[]":l}:l,x&&new x,this.formSerializer)}}return g||c?(r.setContentType("application/json",!1),nk(l)):l}],transformResponse:[function(l){const r=this.transitional||Gh.transitional,h=r&&r.forcedJSONParsing,c=this.responseType==="json";if(l&&St.isString(l)&&(h&&!this.responseType||c)){const v=!(r&&r.silentJSONParsing)&&c;try{return JSON.parse(l)}catch(k){if(v)throw k.name==="SyntaxError"?pe.from(k,pe.ERR_BAD_RESPONSE,this,null,this.response):k}}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nl.classes.FormData,Blob:nl.classes.Blob},validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};St.forEach(["delete","get","head","post","put","patch"],n=>{Gh.headers[n]={}});const Zh=Gh,lk=St.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rk=n=>{const l={};let r,h,c;return n&&n.split(` + */const Wr=typeof window<"u";function t5(n){return n.__esModule||n[Symbol.toStringTag]==="Module"}const fe=Object.assign;function Li(n,l){const r={};for(const h in l){const c=l[h];r[h]=Kn(c)?c.map(n):n(c)}return r}const Wo=()=>{},Kn=Array.isArray,e5=/\/$/,n5=n=>n.replace(e5,"");function Di(n,l,r="/"){let h,c={},g="",v="";const k=l.indexOf("#");let x=l.indexOf("?");return k=0&&(x=-1),x>-1&&(h=l.slice(0,x),g=l.slice(x+1,k>-1?k:l.length),c=n(g)),k>-1&&(h=h||l.slice(0,k),v=l.slice(k,l.length)),h=s5(h??l,r),{fullPath:h+(g&&"?")+g+v,path:h,query:c,hash:v}}function l5(n,l){const r=l.query?n(l.query):"";return l.path+(r&&"?")+r+(l.hash||"")}function A1(n,l){return!l||!n.toLowerCase().startsWith(l.toLowerCase())?n:n.slice(l.length)||"/"}function r5(n,l,r){const h=l.matched.length-1,c=r.matched.length-1;return h>-1&&h===c&&eo(l.matched[h],r.matched[c])&&qu(l.params,r.params)&&n(l.query)===n(r.query)&&l.hash===r.hash}function eo(n,l){return(n.aliasOf||n)===(l.aliasOf||l)}function qu(n,l){if(Object.keys(n).length!==Object.keys(l).length)return!1;for(const r in n)if(!o5(n[r],l[r]))return!1;return!0}function o5(n,l){return Kn(n)?B1(n,l):Kn(l)?B1(l,n):n===l}function B1(n,l){return Kn(l)?n.length===l.length&&n.every((r,h)=>r===l[h]):n.length===1&&n[0]===l}function s5(n,l){if(n.startsWith("/"))return n;if(!n)return l;const r=l.split("/"),h=n.split("/"),c=h[h.length-1];(c===".."||c===".")&&h.push("");let g=r.length-1,v,k;for(v=0;v1&&g--;else break;return r.slice(0,g).join("/")+"/"+h.slice(v-(v===h.length?1:0)).join("/")}var rs;(function(n){n.pop="pop",n.push="push"})(rs||(rs={}));var Xo;(function(n){n.back="back",n.forward="forward",n.unknown=""})(Xo||(Xo={}));function a5(n){if(!n)if(Wr){const l=document.querySelector("base");n=l&&l.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),n5(n)}const i5=/^[^#]+#/;function h5(n,l){return n.replace(i5,"#")+l}function d5(n,l){const r=document.documentElement.getBoundingClientRect(),h=n.getBoundingClientRect();return{behavior:l.behavior,left:h.left-r.left-(l.left||0),top:h.top-r.top-(l.top||0)}}const Ga=()=>({left:window.pageXOffset,top:window.pageYOffset});function c5(n){let l;if("el"in n){const r=n.el,h=typeof r=="string"&&r.startsWith("#"),c=typeof r=="string"?h?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!c)return;l=d5(c,n)}else l=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(l):window.scrollTo(l.left!=null?l.left:window.pageXOffset,l.top!=null?l.top:window.pageYOffset)}function H1(n,l){return(history.state?history.state.position-l:-1)+n}const x0=new Map;function u5(n,l){x0.set(n,l)}function p5(n){const l=x0.get(n);return x0.delete(n),l}let g5=()=>location.protocol+"//"+location.host;function Yu(n,l){const{pathname:r,search:h,hash:c}=l,g=n.indexOf("#");if(g>-1){let k=c.includes(n.slice(g))?n.slice(g).length:1,x=c.slice(k);return x[0]!=="/"&&(x="/"+x),A1(x,"")}return A1(r,n)+h+c}function w5(n,l,r,h){let c=[],g=[],v=null;const k=({state:B})=>{const P=Yu(n,location),D=r.value,F=l.value;let X=0;if(B){if(r.value=P,l.value=B,v&&v===D){v=null;return}X=F?B.position-F.position:0}else h(P);c.forEach(R=>{R(r.value,D,{delta:X,type:rs.pop,direction:X?X>0?Xo.forward:Xo.back:Xo.unknown})})};function x(){v=r.value}function I(B){c.push(B);const P=()=>{const D=c.indexOf(B);D>-1&&c.splice(D,1)};return g.push(P),P}function S(){const{history:B}=window;B.state&&B.replaceState(fe({},B.state,{scroll:Ga()}),"")}function $(){for(const B of g)B();g=[],window.removeEventListener("popstate",k),window.removeEventListener("beforeunload",S)}return window.addEventListener("popstate",k),window.addEventListener("beforeunload",S,{passive:!0}),{pauseListeners:x,listen:I,destroy:$}}function N1(n,l,r,h=!1,c=!1){return{back:n,current:l,forward:r,replaced:h,position:window.history.length,scroll:c?Ga():null}}function v5(n){const{history:l,location:r}=window,h={value:Yu(n,r)},c={value:l.state};c.value||g(h.value,{back:null,current:h.value,forward:null,position:l.length-1,replaced:!0,scroll:null},!0);function g(x,I,S){const $=n.indexOf("#"),B=$>-1?(r.host&&document.querySelector("base")?n:n.slice($))+x:g5()+n+x;try{l[S?"replaceState":"pushState"](I,"",B),c.value=I}catch(P){console.error(P),r[S?"replace":"assign"](B)}}function v(x,I){const S=fe({},l.state,N1(c.value.back,x,c.value.forward,!0),I,{position:c.value.position});g(x,S,!0),h.value=x}function k(x,I){const S=fe({},c.value,l.state,{forward:x,scroll:Ga()});g(S.current,S,!0);const $=fe({},N1(h.value,x,null),{position:S.position+1},I);g(x,$,!1),h.value=x}return{location:h,state:c,push:k,replace:v}}function f5(n){n=a5(n);const l=v5(n),r=w5(n,l.state,l.location,l.replace);function h(g,v=!0){v||r.pauseListeners(),history.go(g)}const c=fe({location:"",base:n,go:h,createHref:h5.bind(null,n)},l,r);return Object.defineProperty(c,"location",{enumerable:!0,get:()=>l.location.value}),Object.defineProperty(c,"state",{enumerable:!0,get:()=>l.state.value}),c}function m5(n){return typeof n=="string"||n&&typeof n=="object"}function Uu(n){return typeof n=="string"||typeof n=="symbol"}const Pl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Gu=Symbol("");var j1;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(j1||(j1={}));function no(n,l){return fe(new Error,{type:n,[Gu]:!0},l)}function dl(n,l){return n instanceof Error&&Gu in n&&(l==null||!!(n.type&l))}const P1="[^/]+?",k5={sensitive:!1,strict:!1,start:!0,end:!0},b5=/[.+*?^${}()[\]/\\]/g;function M5(n,l){const r=fe({},k5,l),h=[];let c=r.start?"^":"";const g=[];for(const I of n){const S=I.length?[]:[90];r.strict&&!I.length&&(c+="/");for(let $=0;$l.length?l.length===1&&l[0]===40+40?1:-1:0}function z5(n,l){let r=0;const h=n.score,c=l.score;for(;r0&&l[l.length-1]<0}const I5={type:0,value:""},y5=/[a-zA-Z0-9_]/;function C5(n){if(!n)return[[]];if(n==="/")return[[I5]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function l(P){throw new Error(`ERR (${r})/"${I}": ${P}`)}let r=0,h=r;const c=[];let g;function v(){g&&c.push(g),g=[]}let k=0,x,I="",S="";function $(){I&&(r===0?g.push({type:0,value:I}):r===1||r===2||r===3?(g.length>1&&(x==="*"||x==="+")&&l(`A repeatable param (${I}) must be alone in its segment. eg: '/:ids+.`),g.push({type:1,value:I,regexp:S,repeatable:x==="*"||x==="+",optional:x==="*"||x==="?"})):l("Invalid state to consume buffer"),I="")}function B(){I+=x}for(;k{v(H)}:Wo}function v(S){if(Uu(S)){const $=h.get(S);$&&(h.delete(S),r.splice(r.indexOf($),1),$.children.forEach(v),$.alias.forEach(v))}else{const $=r.indexOf(S);$>-1&&(r.splice($,1),S.record.name&&h.delete(S.record.name),S.children.forEach(v),S.alias.forEach(v))}}function k(){return r}function x(S){let $=0;for(;$=0&&(S.record.path!==r[$].record.path||!Zu(S,r[$]));)$++;r.splice($,0,S),S.record.name&&!O1(S)&&h.set(S.record.name,S)}function I(S,$){let B,P={},D,F;if("name"in S&&S.name){if(B=h.get(S.name),!B)throw no(1,{location:S});F=B.record.name,P=fe(D1($.params,B.keys.filter(H=>!H.optional).map(H=>H.name)),S.params&&D1(S.params,B.keys.map(H=>H.name))),D=B.stringify(P)}else if("path"in S)D=S.path,B=r.find(H=>H.re.test(D)),B&&(P=B.parse(D),F=B.record.name);else{if(B=$.name?h.get($.name):r.find(H=>H.re.test($.path)),!B)throw no(1,{location:S,currentLocation:$});F=B.record.name,P=fe({},$.params,S.params),D=B.stringify(P)}const X=[];let R=B;for(;R;)X.unshift(R.record),R=R.parent;return{name:F,path:D,params:P,matched:X,meta:H5(X)}}return n.forEach(S=>g(S)),{addRoute:g,resolve:I,removeRoute:v,getRoutes:k,getRecordMatcher:c}}function D1(n,l){const r={};for(const h of l)h in n&&(r[h]=n[h]);return r}function A5(n){return{path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:void 0,beforeEnter:n.beforeEnter,props:B5(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}}}function B5(n){const l={},r=n.props||!1;if("component"in n)l.default=r;else for(const h in n.components)l[h]=typeof r=="object"?r[h]:r;return l}function O1(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function H5(n){return n.reduce((l,r)=>fe(l,r.meta),{})}function F1(n,l){const r={};for(const h in n)r[h]=h in l?l[h]:n[h];return r}function Zu(n,l){return l.children.some(r=>r===n||Zu(n,r))}const Ku=/#/g,N5=/&/g,j5=/\//g,P5=/=/g,L5=/\?/g,Qu=/\+/g,D5=/%5B/g,O5=/%5D/g,Ju=/%5E/g,F5=/%60/g,tp=/%7B/g,R5=/%7C/g,ep=/%7D/g,T5=/%20/g;function Xh(n){return encodeURI(""+n).replace(R5,"|").replace(D5,"[").replace(O5,"]")}function E5(n){return Xh(n).replace(tp,"{").replace(ep,"}").replace(Ju,"^")}function z0(n){return Xh(n).replace(Qu,"%2B").replace(T5,"+").replace(Ku,"%23").replace(N5,"%26").replace(F5,"`").replace(tp,"{").replace(ep,"}").replace(Ju,"^")}function V5(n){return z0(n).replace(P5,"%3D")}function _5(n){return Xh(n).replace(Ku,"%23").replace(L5,"%3F")}function W5(n){return n==null?"":_5(n).replace(j5,"%2F")}function wa(n){try{return decodeURIComponent(""+n)}catch{}return""+n}function X5(n){const l={};if(n===""||n==="?")return l;const h=(n[0]==="?"?n.slice(1):n).split("&");for(let c=0;cg&&z0(g)):[h&&z0(h)]).forEach(g=>{g!==void 0&&(l+=(l.length?"&":"")+r,g!=null&&(l+="="+g))})}return l}function q5(n){const l={};for(const r in n){const h=n[r];h!==void 0&&(l[r]=Kn(h)?h.map(c=>c==null?null:""+c):h==null?h:""+h)}return l}const Y5=Symbol(""),T1=Symbol(""),qh=Symbol(""),np=Symbol(""),I0=Symbol("");function $o(){let n=[];function l(h){return n.push(h),()=>{const c=n.indexOf(h);c>-1&&n.splice(c,1)}}function r(){n=[]}return{add:l,list:()=>n.slice(),reset:r}}function Rl(n,l,r,h,c){const g=h&&(h.enterCallbacks[c]=h.enterCallbacks[c]||[]);return()=>new Promise((v,k)=>{const x=$=>{$===!1?k(no(4,{from:r,to:l})):$ instanceof Error?k($):m5($)?k(no(2,{from:l,to:$})):(g&&h.enterCallbacks[c]===g&&typeof $=="function"&&g.push($),v())},I=n.call(h&&h.instances[c],l,r,x);let S=Promise.resolve(I);n.length<3&&(S=S.then(x)),S.catch($=>k($))})}function Oi(n,l,r,h){const c=[];for(const g of n)for(const v in g.components){let k=g.components[v];if(!(l!=="beforeRouteEnter"&&!g.instances[v]))if(U5(k)){const I=(k.__vccOpts||k)[l];I&&c.push(Rl(I,r,h,g,v))}else{let x=k();c.push(()=>x.then(I=>{if(!I)return Promise.reject(new Error(`Couldn't resolve component "${v}" at "${g.path}"`));const S=t5(I)?I.default:I;g.components[v]=S;const B=(S.__vccOpts||S)[l];return B&&Rl(B,r,h,g,v)()}))}}return c}function U5(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function E1(n){const l=de(qh),r=de(np),h=q(()=>l.resolve(je(n.to))),c=q(()=>{const{matched:x}=h.value,{length:I}=x,S=x[I-1],$=r.matched;if(!S||!$.length)return-1;const B=$.findIndex(eo.bind(null,S));if(B>-1)return B;const P=V1(x[I-2]);return I>1&&V1(S)===P&&$[$.length-1].path!==P?$.findIndex(eo.bind(null,x[I-2])):B}),g=q(()=>c.value>-1&&Q5(r.params,h.value.params)),v=q(()=>c.value>-1&&c.value===r.matched.length-1&&qu(r.params,h.value.params));function k(x={}){return K5(x)?l[je(n.replace)?"replace":"push"](je(n.to)).catch(Wo):Promise.resolve()}return{route:h,href:q(()=>h.value.href),isActive:g,isExactActive:v,navigate:k}}const G5=Cr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:E1,setup(n,{slots:l}){const r=Ze(E1(n)),{options:h}=de(qh),c=q(()=>({[_1(n.activeClass,h.linkActiveClass,"router-link-active")]:r.isActive,[_1(n.exactActiveClass,h.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const g=l.default&&l.default(r);return n.custom?g:Ln("a",{"aria-current":r.isExactActive?n.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:c.value},g)}}}),Z5=G5;function K5(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const l=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(l))return}return n.preventDefault&&n.preventDefault(),!0}}function Q5(n,l){for(const r in l){const h=l[r],c=n[r];if(typeof h=="string"){if(h!==c)return!1}else if(!Kn(c)||c.length!==h.length||h.some((g,v)=>g!==c[v]))return!1}return!0}function V1(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const _1=(n,l,r)=>n??l??r,J5=Cr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:l,slots:r}){const h=de(I0),c=q(()=>n.route||h.value),g=de(T1,0),v=q(()=>{let I=je(g);const{matched:S}=c.value;let $;for(;($=S[I])&&!$.components;)I++;return I}),k=q(()=>c.value.matched[v.value]);Se(T1,q(()=>v.value+1)),Se(Y5,k),Se(I0,c);const x=Lt();return _t(()=>[x.value,k.value,n.name],([I,S,$],[B,P,D])=>{S&&(S.instances[$]=I,P&&P!==S&&I&&I===B&&(S.leaveGuards.size||(S.leaveGuards=P.leaveGuards),S.updateGuards.size||(S.updateGuards=P.updateGuards))),I&&S&&(!P||!eo(S,P)||!B)&&(S.enterCallbacks[$]||[]).forEach(F=>F(I))},{flush:"post"}),()=>{const I=c.value,S=n.name,$=k.value,B=$&&$.components[S];if(!B)return W1(r.default,{Component:B,route:I});const P=$.props[S],D=P?P===!0?I.params:typeof P=="function"?P(I):P:null,X=Ln(B,fe({},D,l,{onVnodeUnmounted:R=>{R.component.isUnmounted&&($.instances[S]=null)},ref:x}));return W1(r.default,{Component:X,route:I})||X}}});function W1(n,l){if(!n)return null;const r=n(l);return r.length===1?r[0]:r}const lp=J5;function tm(n){const l=$5(n.routes,n),r=n.parseQuery||X5,h=n.stringifyQuery||R1,c=n.history,g=$o(),v=$o(),k=$o(),x=Wt(Pl);let I=Pl;Wr&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const S=Li.bind(null,pt=>""+pt),$=Li.bind(null,W5),B=Li.bind(null,wa);function P(pt,Nt){let jt,bt;return Uu(pt)?(jt=l.getRecordMatcher(pt),bt=Nt):bt=pt,l.addRoute(bt,jt)}function D(pt){const Nt=l.getRecordMatcher(pt);Nt&&l.removeRoute(Nt)}function F(){return l.getRoutes().map(pt=>pt.record)}function X(pt){return!!l.getRecordMatcher(pt)}function R(pt,Nt){if(Nt=fe({},Nt||x.value),typeof pt=="string"){const at=Di(r,pt,Nt.path),ct=l.resolve({path:at.path},Nt),kt=c.createHref(at.fullPath);return fe(at,ct,{params:B(ct.params),hash:wa(at.hash),redirectedFrom:void 0,href:kt})}let jt;if("path"in pt)jt=fe({},pt,{path:Di(r,pt.path,Nt.path).path});else{const at=fe({},pt.params);for(const ct in at)at[ct]==null&&delete at[ct];jt=fe({},pt,{params:$(at)}),Nt.params=$(Nt.params)}const bt=l.resolve(jt,Nt),ft=pt.hash||"";bt.params=S(B(bt.params));const J=l5(h,fe({},pt,{hash:E5(ft),path:bt.path})),lt=c.createHref(J);return fe({fullPath:J,hash:ft,query:h===R1?q5(pt.query):pt.query||{}},bt,{redirectedFrom:void 0,href:lt})}function H(pt){return typeof pt=="string"?Di(r,pt,x.value.path):fe({},pt)}function U(pt,Nt){if(I!==pt)return no(8,{from:Nt,to:pt})}function W(pt){return nt(pt)}function _(pt){return W(fe(H(pt),{replace:!0}))}function tt(pt){const Nt=pt.matched[pt.matched.length-1];if(Nt&&Nt.redirect){const{redirect:jt}=Nt;let bt=typeof jt=="function"?jt(pt):jt;return typeof bt=="string"&&(bt=bt.includes("?")||bt.includes("#")?bt=H(bt):{path:bt},bt.params={}),fe({query:pt.query,hash:pt.hash,params:"path"in bt?{}:pt.params},bt)}}function nt(pt,Nt){const jt=I=R(pt),bt=x.value,ft=pt.state,J=pt.force,lt=pt.replace===!0,at=tt(jt);if(at)return nt(fe(H(at),{state:typeof at=="object"?fe({},ft,at.state):ft,force:J,replace:lt}),Nt||jt);const ct=jt;ct.redirectedFrom=Nt;let kt;return!J&&r5(h,bt,jt)&&(kt=no(16,{to:ct,from:bt}),Tt(bt,bt,!0,!1)),(kt?Promise.resolve(kt):et(ct,bt)).catch(yt=>dl(yt)?dl(yt,2)?yt:At(yt):gt(yt,ct,bt)).then(yt=>{if(yt){if(dl(yt,2))return nt(fe({replace:lt},H(yt.to),{state:typeof yt.to=="object"?fe({},ft,yt.to.state):ft,force:J}),Nt||ct)}else yt=rt(ct,bt,!0,lt,ft);return st(ct,bt,yt),yt})}function Y(pt,Nt){const jt=U(pt,Nt);return jt?Promise.reject(jt):Promise.resolve()}function G(pt){const Nt=Jt.values().next().value;return Nt&&typeof Nt.runWithContext=="function"?Nt.runWithContext(pt):pt()}function et(pt,Nt){let jt;const[bt,ft,J]=em(pt,Nt);jt=Oi(bt.reverse(),"beforeRouteLeave",pt,Nt);for(const at of bt)at.leaveGuards.forEach(ct=>{jt.push(Rl(ct,pt,Nt))});const lt=Y.bind(null,pt,Nt);return jt.push(lt),ut(jt).then(()=>{jt=[];for(const at of g.list())jt.push(Rl(at,pt,Nt));return jt.push(lt),ut(jt)}).then(()=>{jt=Oi(ft,"beforeRouteUpdate",pt,Nt);for(const at of ft)at.updateGuards.forEach(ct=>{jt.push(Rl(ct,pt,Nt))});return jt.push(lt),ut(jt)}).then(()=>{jt=[];for(const at of J)if(at.beforeEnter)if(Kn(at.beforeEnter))for(const ct of at.beforeEnter)jt.push(Rl(ct,pt,Nt));else jt.push(Rl(at.beforeEnter,pt,Nt));return jt.push(lt),ut(jt)}).then(()=>(pt.matched.forEach(at=>at.enterCallbacks={}),jt=Oi(J,"beforeRouteEnter",pt,Nt),jt.push(lt),ut(jt))).then(()=>{jt=[];for(const at of v.list())jt.push(Rl(at,pt,Nt));return jt.push(lt),ut(jt)}).catch(at=>dl(at,8)?at:Promise.reject(at))}function st(pt,Nt,jt){k.list().forEach(bt=>G(()=>bt(pt,Nt,jt)))}function rt(pt,Nt,jt,bt,ft){const J=U(pt,Nt);if(J)return J;const lt=Nt===Pl,at=Wr?history.state:{};jt&&(bt||lt?c.replace(pt.fullPath,fe({scroll:lt&&at&&at.scroll},ft)):c.push(pt.fullPath,ft)),x.value=pt,Tt(pt,Nt,jt,lt),At()}let ht;function dt(){ht||(ht=c.listen((pt,Nt,jt)=>{if(!Et.listening)return;const bt=R(pt),ft=tt(bt);if(ft){nt(fe(ft,{replace:!0}),bt).catch(Wo);return}I=bt;const J=x.value;Wr&&u5(H1(J.fullPath,jt.delta),Ga()),et(bt,J).catch(lt=>dl(lt,12)?lt:dl(lt,2)?(nt(lt.to,bt).then(at=>{dl(at,20)&&!jt.delta&&jt.type===rs.pop&&c.go(-1,!1)}).catch(Wo),Promise.reject()):(jt.delta&&c.go(-jt.delta,!1),gt(lt,bt,J))).then(lt=>{lt=lt||rt(bt,J,!1),lt&&(jt.delta&&!dl(lt,8)?c.go(-jt.delta,!1):jt.type===rs.pop&&dl(lt,20)&&c.go(-1,!1)),st(bt,J,lt)}).catch(Wo)}))}let Ct=$o(),xt=$o(),wt;function gt(pt,Nt,jt){At(pt);const bt=xt.list();return bt.length?bt.forEach(ft=>ft(pt,Nt,jt)):console.error(pt),Promise.reject(pt)}function It(){return wt&&x.value!==Pl?Promise.resolve():new Promise((pt,Nt)=>{Ct.add([pt,Nt])})}function At(pt){return wt||(wt=!pt,dt(),Ct.list().forEach(([Nt,jt])=>pt?jt(pt):Nt()),Ct.reset()),pt}function Tt(pt,Nt,jt,bt){const{scrollBehavior:ft}=n;if(!Wr||!ft)return Promise.resolve();const J=!jt&&p5(H1(pt.fullPath,0))||(bt||!jt)&&history.state&&history.state.scroll||null;return we().then(()=>ft(pt,Nt,J)).then(lt=>lt&&c5(lt)).catch(lt=>gt(lt,pt,Nt))}const Ft=pt=>c.go(pt);let Qt;const Jt=new Set,Et={currentRoute:x,listening:!0,addRoute:P,removeRoute:D,hasRoute:X,getRoutes:F,resolve:R,options:n,push:W,replace:_,go:Ft,back:()=>Ft(-1),forward:()=>Ft(1),beforeEach:g.add,beforeResolve:v.add,afterEach:k.add,onError:xt.add,isReady:It,install(pt){const Nt=this;pt.component("RouterLink",Z5),pt.component("RouterView",lp),pt.config.globalProperties.$router=Nt,Object.defineProperty(pt.config.globalProperties,"$route",{enumerable:!0,get:()=>je(x)}),Wr&&!Qt&&x.value===Pl&&(Qt=!0,W(c.location).catch(ft=>{}));const jt={};for(const ft in Pl)Object.defineProperty(jt,ft,{get:()=>x.value[ft],enumerable:!0});pt.provide(qh,Nt),pt.provide(np,fh(jt)),pt.provide(I0,x);const bt=pt.unmount;Jt.add(pt),pt.unmount=function(){Jt.delete(pt),Jt.size<1&&(I=Pl,ht&&ht(),ht=null,x.value=Pl,Qt=!1,wt=!1),bt()}}};function ut(pt){return pt.reduce((Nt,jt)=>Nt.then(()=>G(jt)),Promise.resolve())}return Et}function em(n,l){const r=[],h=[],c=[],g=Math.max(l.matched.length,n.matched.length);for(let v=0;veo(I,k))?h.push(k):r.push(k));const x=n.matched[v];x&&(l.matched.find(I=>eo(I,x))||c.push(x))}return[r,h,c]}const nm=Cr({__name:"App",setup(n){return(l,r)=>(xs(),_a(je(lp)))}}),lm="modulepreload",rm=function(n){return"/"+n},X1={},en=function(l,r,h){if(!r||r.length===0)return l();const c=document.getElementsByTagName("link");return Promise.all(r.map(g=>{if(g=rm(g),g in X1)return;X1[g]=!0;const v=g.endsWith(".css"),k=v?'[rel="stylesheet"]':"";if(!!h)for(let S=c.length-1;S>=0;S--){const $=c[S];if($.href===g&&(!v||$.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${g}"]${k}`))return;const I=document.createElement("link");if(I.rel=v?"stylesheet":lm,v||(I.as="script",I.crossOrigin=""),I.href=g,document.head.appendChild(I),v)return new Promise((S,$)=>{I.addEventListener("load",S),I.addEventListener("error",()=>$(new Error(`Unable to preload CSS for ${g}`)))})})).then(()=>l()).catch(g=>{const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=g,window.dispatchEvent(v),!v.defaultPrevented)throw g})},om={path:"/main",meta:{requiresAuth:!0},redirect:"/main/dashboard/default",component:()=>en(()=>import("./FullLayout-87ae6183.js"),["assets/FullLayout-87ae6183.js","assets/LogoDark.vue_vue_type_script_setup_true_lang-b8ef80c7.js","assets/md5-6a8a08e9.js"]),children:[{name:"Dashboard",path:"/",component:()=>en(()=>import("./DefaultDashboard-37088788.js"),["assets/DefaultDashboard-37088788.js","assets/_plugin-vue_export-helper-c27b6911.js"])},{name:"Extensions",path:"/extension",component:()=>en(()=>import("./ExtensionPage-de80b39d.js"),[])},{name:"Configs",path:"/config",component:()=>en(()=>import("./ConfigPage-30efc2f6.js"),["assets/ConfigPage-30efc2f6.js","assets/UiParentCard.vue_vue_type_script_setup_true_lang-13601505.js"])},{name:"Default",path:"/dashboard/default",component:()=>en(()=>import("./DefaultDashboard-37088788.js"),["assets/DefaultDashboard-37088788.js","assets/_plugin-vue_export-helper-c27b6911.js"])},{name:"Console",path:"/console",component:()=>en(()=>import("./ConsolePage-4039384d.js"),["assets/ConsolePage-4039384d.js","assets/ConsolePage-ff373be6.css"])},{name:"Tabler Icons",path:"/icons/tabler",component:()=>en(()=>import("./TablerIcons-28b82875.js"),["assets/TablerIcons-28b82875.js","assets/BaseBreadcrumb.vue_vue_type_style_index_0_lang-79f7dd1a.js","assets/BaseBreadcrumb-4d676ba5.css","assets/UiParentCard.vue_vue_type_script_setup_true_lang-13601505.js"])},{name:"Material Icons",path:"/icons/material",component:()=>en(()=>import("./MaterialIcons-fc94f725.js"),["assets/MaterialIcons-fc94f725.js","assets/BaseBreadcrumb.vue_vue_type_style_index_0_lang-79f7dd1a.js","assets/BaseBreadcrumb-4d676ba5.css","assets/UiParentCard.vue_vue_type_script_setup_true_lang-13601505.js"])},{name:"Typography",path:"/utils/typography",component:()=>en(()=>import("./TypographyPage-6333374a.js"),["assets/TypographyPage-6333374a.js","assets/BaseBreadcrumb.vue_vue_type_style_index_0_lang-79f7dd1a.js","assets/BaseBreadcrumb-4d676ba5.css","assets/UiParentCard.vue_vue_type_script_setup_true_lang-13601505.js"])},{name:"Shadows",path:"/utils/shadows",component:()=>en(()=>import("./ShadowPage-00585b3f.js"),["assets/ShadowPage-00585b3f.js","assets/BaseBreadcrumb.vue_vue_type_style_index_0_lang-79f7dd1a.js","assets/BaseBreadcrumb-4d676ba5.css","assets/UiParentCard.vue_vue_type_script_setup_true_lang-13601505.js"])},{name:"Colors",path:"/utils/colors",component:()=>en(()=>import("./ColorPage-8c6eccaf.js"),["assets/ColorPage-8c6eccaf.js","assets/BaseBreadcrumb.vue_vue_type_style_index_0_lang-79f7dd1a.js","assets/BaseBreadcrumb-4d676ba5.css","assets/UiParentCard.vue_vue_type_script_setup_true_lang-13601505.js"])}]},sm={path:"/auth",component:()=>en(()=>import("./BlankLayout-4f378b43.js"),[]),meta:{requiresAuth:!1},children:[{name:"Login",path:"/auth/login",component:()=>en(()=>import("./LoginPage-5ed4985c.js"),["assets/LoginPage-5ed4985c.js","assets/LogoDark.vue_vue_type_script_setup_true_lang-b8ef80c7.js","assets/md5-6a8a08e9.js","assets/LoginPage-74e85ca7.css"])},{name:"Register",path:"/auth/register",component:()=>en(()=>import("./RegisterPage-f1e91a9c.js"),["assets/RegisterPage-f1e91a9c.js","assets/LogoDark.vue_vue_type_script_setup_true_lang-b8ef80c7.js","assets/RegisterPage-799ed804.css"])},{name:"Error 404",path:"/pages/error",component:()=>en(()=>import("./Error404Page-0951219d.js"),["assets/Error404Page-0951219d.js","assets/_plugin-vue_export-helper-c27b6911.js","assets/Error404Page-11cf087a.css"])}]};function rp(n,l){return function(){return n.apply(l,arguments)}}const{toString:am}=Object.prototype,{getPrototypeOf:Yh}=Object,Za=(n=>l=>{const r=am.call(l);return n[r]||(n[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),il=n=>(n=n.toLowerCase(),l=>Za(l)===n),Ka=n=>l=>typeof l===n,{isArray:po}=Array,os=Ka("undefined");function im(n){return n!==null&&!os(n)&&n.constructor!==null&&!os(n.constructor)&&jn(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const op=il("ArrayBuffer");function hm(n){let l;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?l=ArrayBuffer.isView(n):l=n&&n.buffer&&op(n.buffer),l}const dm=Ka("string"),jn=Ka("function"),sp=Ka("number"),Qa=n=>n!==null&&typeof n=="object",cm=n=>n===!0||n===!1,ra=n=>{if(Za(n)!=="object")return!1;const l=Yh(n);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},um=il("Date"),pm=il("File"),gm=il("Blob"),wm=il("FileList"),vm=n=>Qa(n)&&jn(n.pipe),fm=n=>{let l;return n&&(typeof FormData=="function"&&n instanceof FormData||jn(n.append)&&((l=Za(n))==="formdata"||l==="object"&&jn(n.toString)&&n.toString()==="[object FormData]"))},mm=il("URLSearchParams"),km=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ys(n,l,{allOwnKeys:r=!1}={}){if(n===null||typeof n>"u")return;let h,c;if(typeof n!="object"&&(n=[n]),po(n))for(h=0,c=n.length;h0;)if(c=r[h],l===c.toLowerCase())return c;return null}const ip=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),hp=n=>!os(n)&&n!==ip;function y0(){const{caseless:n}=hp(this)&&this||{},l={},r=(h,c)=>{const g=n&&ap(l,c)||c;ra(l[g])&&ra(h)?l[g]=y0(l[g],h):ra(h)?l[g]=y0({},h):po(h)?l[g]=h.slice():l[g]=h};for(let h=0,c=arguments.length;h(ys(l,(c,g)=>{r&&jn(c)?n[g]=rp(c,r):n[g]=c},{allOwnKeys:h}),n),Mm=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),xm=(n,l,r,h)=>{n.prototype=Object.create(l.prototype,h),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:l.prototype}),r&&Object.assign(n.prototype,r)},zm=(n,l,r,h)=>{let c,g,v;const k={};if(l=l||{},n==null)return l;do{for(c=Object.getOwnPropertyNames(n),g=c.length;g-- >0;)v=c[g],(!h||h(v,n,l))&&!k[v]&&(l[v]=n[v],k[v]=!0);n=r!==!1&&Yh(n)}while(n&&(!r||r(n,l))&&n!==Object.prototype);return l},Im=(n,l,r)=>{n=String(n),(r===void 0||r>n.length)&&(r=n.length),r-=l.length;const h=n.indexOf(l,r);return h!==-1&&h===r},ym=n=>{if(!n)return null;if(po(n))return n;let l=n.length;if(!sp(l))return null;const r=new Array(l);for(;l-- >0;)r[l]=n[l];return r},Cm=(n=>l=>n&&l instanceof n)(typeof Uint8Array<"u"&&Yh(Uint8Array)),Sm=(n,l)=>{const h=(n&&n[Symbol.iterator]).call(n);let c;for(;(c=h.next())&&!c.done;){const g=c.value;l.call(n,g[0],g[1])}},$m=(n,l)=>{let r;const h=[];for(;(r=n.exec(l))!==null;)h.push(r);return h},Am=il("HTMLFormElement"),Bm=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,h,c){return h.toUpperCase()+c}),q1=(({hasOwnProperty:n})=>(l,r)=>n.call(l,r))(Object.prototype),Hm=il("RegExp"),dp=(n,l)=>{const r=Object.getOwnPropertyDescriptors(n),h={};ys(r,(c,g)=>{let v;(v=l(c,g,n))!==!1&&(h[g]=v||c)}),Object.defineProperties(n,h)},Nm=n=>{dp(n,(l,r)=>{if(jn(n)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const h=n[r];if(jn(h)){if(l.enumerable=!1,"writable"in l){l.writable=!1;return}l.set||(l.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},jm=(n,l)=>{const r={},h=c=>{c.forEach(g=>{r[g]=!0})};return po(n)?h(n):h(String(n).split(l)),r},Pm=()=>{},Lm=(n,l)=>(n=+n,Number.isFinite(n)?n:l),Fi="abcdefghijklmnopqrstuvwxyz",Y1="0123456789",cp={DIGIT:Y1,ALPHA:Fi,ALPHA_DIGIT:Fi+Fi.toUpperCase()+Y1},Dm=(n=16,l=cp.ALPHA_DIGIT)=>{let r="";const{length:h}=l;for(;n--;)r+=l[Math.random()*h|0];return r};function Om(n){return!!(n&&jn(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Fm=n=>{const l=new Array(10),r=(h,c)=>{if(Qa(h)){if(l.indexOf(h)>=0)return;if(!("toJSON"in h)){l[c]=h;const g=po(h)?[]:{};return ys(h,(v,k)=>{const x=r(v,c+1);!os(x)&&(g[k]=x)}),l[c]=void 0,g}}return h};return r(n,0)},Rm=il("AsyncFunction"),Tm=n=>n&&(Qa(n)||jn(n))&&jn(n.then)&&jn(n.catch),St={isArray:po,isArrayBuffer:op,isBuffer:im,isFormData:fm,isArrayBufferView:hm,isString:dm,isNumber:sp,isBoolean:cm,isObject:Qa,isPlainObject:ra,isUndefined:os,isDate:um,isFile:pm,isBlob:gm,isRegExp:Hm,isFunction:jn,isStream:vm,isURLSearchParams:mm,isTypedArray:Cm,isFileList:wm,forEach:ys,merge:y0,extend:bm,trim:km,stripBOM:Mm,inherits:xm,toFlatObject:zm,kindOf:Za,kindOfTest:il,endsWith:Im,toArray:ym,forEachEntry:Sm,matchAll:$m,isHTMLForm:Am,hasOwnProperty:q1,hasOwnProp:q1,reduceDescriptors:dp,freezeMethods:Nm,toObjectSet:jm,toCamelCase:Bm,noop:Pm,toFiniteNumber:Lm,findKey:ap,global:ip,isContextDefined:hp,ALPHABET:cp,generateString:Dm,isSpecCompliantForm:Om,toJSONObject:Fm,isAsyncFn:Rm,isThenable:Tm};function pe(n,l,r,h,c){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",l&&(this.code=l),r&&(this.config=r),h&&(this.request=h),c&&(this.response=c)}St.inherits(pe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:St.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const up=pe.prototype,pp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{pp[n]={value:n}});Object.defineProperties(pe,pp);Object.defineProperty(up,"isAxiosError",{value:!0});pe.from=(n,l,r,h,c,g)=>{const v=Object.create(up);return St.toFlatObject(n,v,function(x){return x!==Error.prototype},k=>k!=="isAxiosError"),pe.call(v,n.message,l,r,h,c),v.cause=n,v.name=n.name,g&&Object.assign(v,g),v};const Em=null;function C0(n){return St.isPlainObject(n)||St.isArray(n)}function gp(n){return St.endsWith(n,"[]")?n.slice(0,-2):n}function U1(n,l,r){return n?n.concat(l).map(function(c,g){return c=gp(c),!r&&g?"["+c+"]":c}).join(r?".":""):l}function Vm(n){return St.isArray(n)&&!n.some(C0)}const _m=St.toFlatObject(St,{},null,function(l){return/^is[A-Z]/.test(l)});function Ja(n,l,r){if(!St.isObject(n))throw new TypeError("target must be an object");l=l||new FormData,r=St.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(F,X){return!St.isUndefined(X[F])});const h=r.metaTokens,c=r.visitor||S,g=r.dots,v=r.indexes,x=(r.Blob||typeof Blob<"u"&&Blob)&&St.isSpecCompliantForm(l);if(!St.isFunction(c))throw new TypeError("visitor must be a function");function I(D){if(D===null)return"";if(St.isDate(D))return D.toISOString();if(!x&&St.isBlob(D))throw new pe("Blob is not supported. Use a Buffer instead.");return St.isArrayBuffer(D)||St.isTypedArray(D)?x&&typeof Blob=="function"?new Blob([D]):Buffer.from(D):D}function S(D,F,X){let R=D;if(D&&!X&&typeof D=="object"){if(St.endsWith(F,"{}"))F=h?F:F.slice(0,-2),D=JSON.stringify(D);else if(St.isArray(D)&&Vm(D)||(St.isFileList(D)||St.endsWith(F,"[]"))&&(R=St.toArray(D)))return F=gp(F),R.forEach(function(U,W){!(St.isUndefined(U)||U===null)&&l.append(v===!0?U1([F],W,g):v===null?F:F+"[]",I(U))}),!1}return C0(D)?!0:(l.append(U1(X,F,g),I(D)),!1)}const $=[],B=Object.assign(_m,{defaultVisitor:S,convertValue:I,isVisitable:C0});function P(D,F){if(!St.isUndefined(D)){if($.indexOf(D)!==-1)throw Error("Circular reference detected in "+F.join("."));$.push(D),St.forEach(D,function(R,H){(!(St.isUndefined(R)||R===null)&&c.call(l,R,St.isString(H)?H.trim():H,F,B))===!0&&P(R,F?F.concat(H):[H])}),$.pop()}}if(!St.isObject(n))throw new TypeError("data must be an object");return P(n),l}function G1(n){const l={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(h){return l[h]})}function Uh(n,l){this._pairs=[],n&&Ja(n,this,l)}const wp=Uh.prototype;wp.append=function(l,r){this._pairs.push([l,r])};wp.toString=function(l){const r=l?function(h){return l.call(this,h,G1)}:G1;return this._pairs.map(function(c){return r(c[0])+"="+r(c[1])},"").join("&")};function Wm(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vp(n,l,r){if(!l)return n;const h=r&&r.encode||Wm,c=r&&r.serialize;let g;if(c?g=c(l,r):g=St.isURLSearchParams(l)?l.toString():new Uh(l,r).toString(h),g){const v=n.indexOf("#");v!==-1&&(n=n.slice(0,v)),n+=(n.indexOf("?")===-1?"?":"&")+g}return n}class Xm{constructor(){this.handlers=[]}use(l,r,h){return this.handlers.push({fulfilled:l,rejected:r,synchronous:h?h.synchronous:!1,runWhen:h?h.runWhen:null}),this.handlers.length-1}eject(l){this.handlers[l]&&(this.handlers[l]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(l){St.forEach(this.handlers,function(h){h!==null&&l(h)})}}const Z1=Xm,fp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qm=typeof URLSearchParams<"u"?URLSearchParams:Uh,Ym=typeof FormData<"u"?FormData:null,Um=typeof Blob<"u"?Blob:null,Gm={isBrowser:!0,classes:{URLSearchParams:qm,FormData:Ym,Blob:Um},protocols:["http","https","file","blob","url","data"]},mp=typeof window<"u"&&typeof document<"u",Zm=(n=>mp&&["ReactNative","NativeScript","NS"].indexOf(n)<0)(typeof navigator<"u"&&navigator.product),Km=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Qm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:mp,hasStandardBrowserEnv:Zm,hasStandardBrowserWebWorkerEnv:Km},Symbol.toStringTag,{value:"Module"})),nl={...Qm,...Gm};function Jm(n,l){return Ja(n,new nl.classes.URLSearchParams,Object.assign({visitor:function(r,h,c,g){return nl.isNode&&St.isBuffer(r)?(this.append(h,r.toString("base64")),!1):g.defaultVisitor.apply(this,arguments)}},l))}function tk(n){return St.matchAll(/\w+|\[(\w*)]/g,n).map(l=>l[0]==="[]"?"":l[1]||l[0])}function ek(n){const l={},r=Object.keys(n);let h;const c=r.length;let g;for(h=0;h=r.length;return v=!v&&St.isArray(c)?c.length:v,x?(St.hasOwnProp(c,v)?c[v]=[c[v],h]:c[v]=h,!k):((!c[v]||!St.isObject(c[v]))&&(c[v]=[]),l(r,h,c[v],g)&&St.isArray(c[v])&&(c[v]=ek(c[v])),!k)}if(St.isFormData(n)&&St.isFunction(n.entries)){const r={};return St.forEachEntry(n,(h,c)=>{l(tk(h),c,r,0)}),r}return null}function nk(n,l,r){if(St.isString(n))try{return(l||JSON.parse)(n),St.trim(n)}catch(h){if(h.name!=="SyntaxError")throw h}return(r||JSON.stringify)(n)}const Gh={transitional:fp,adapter:["xhr","http"],transformRequest:[function(l,r){const h=r.getContentType()||"",c=h.indexOf("application/json")>-1,g=St.isObject(l);if(g&&St.isHTMLForm(l)&&(l=new FormData(l)),St.isFormData(l))return c&&c?JSON.stringify(kp(l)):l;if(St.isArrayBuffer(l)||St.isBuffer(l)||St.isStream(l)||St.isFile(l)||St.isBlob(l))return l;if(St.isArrayBufferView(l))return l.buffer;if(St.isURLSearchParams(l))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),l.toString();let k;if(g){if(h.indexOf("application/x-www-form-urlencoded")>-1)return Jm(l,this.formSerializer).toString();if((k=St.isFileList(l))||h.indexOf("multipart/form-data")>-1){const x=this.env&&this.env.FormData;return Ja(k?{"files[]":l}:l,x&&new x,this.formSerializer)}}return g||c?(r.setContentType("application/json",!1),nk(l)):l}],transformResponse:[function(l){const r=this.transitional||Gh.transitional,h=r&&r.forcedJSONParsing,c=this.responseType==="json";if(l&&St.isString(l)&&(h&&!this.responseType||c)){const v=!(r&&r.silentJSONParsing)&&c;try{return JSON.parse(l)}catch(k){if(v)throw k.name==="SyntaxError"?pe.from(k,pe.ERR_BAD_RESPONSE,this,null,this.response):k}}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nl.classes.FormData,Blob:nl.classes.Blob},validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};St.forEach(["delete","get","head","post","put","patch"],n=>{Gh.headers[n]={}});const Zh=Gh,lk=St.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rk=n=>{const l={};let r,h,c;return n&&n.split(` `).forEach(function(v){c=v.indexOf(":"),r=v.substring(0,c).trim().toLowerCase(),h=v.substring(c+1).trim(),!(!r||l[r]&&lk[r])&&(r==="set-cookie"?l[r]?l[r].push(h):l[r]=[h]:l[r]=l[r]?l[r]+", "+h:h)}),l},K1=Symbol("internals");function Ao(n){return n&&String(n).trim().toLowerCase()}function oa(n){return n===!1||n==null?n:St.isArray(n)?n.map(oa):String(n)}function ok(n){const l=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let h;for(;h=r.exec(n);)l[h[1]]=h[2];return l}const sk=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Ri(n,l,r,h,c){if(St.isFunction(h))return h.call(this,l,r);if(c&&(l=r),!!St.isString(l)){if(St.isString(h))return l.indexOf(h)!==-1;if(St.isRegExp(h))return h.test(l)}}function ak(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(l,r,h)=>r.toUpperCase()+h)}function ik(n,l){const r=St.toCamelCase(" "+l);["get","set","has"].forEach(h=>{Object.defineProperty(n,h+r,{value:function(c,g,v){return this[h].call(this,l,c,g,v)},configurable:!0})})}class ti{constructor(l){l&&this.set(l)}set(l,r,h){const c=this;function g(k,x,I){const S=Ao(x);if(!S)throw new Error("header name must be a non-empty string");const $=St.findKey(c,S);(!$||c[$]===void 0||I===!0||I===void 0&&c[$]!==!1)&&(c[$||x]=oa(k))}const v=(k,x)=>St.forEach(k,(I,S)=>g(I,S,x));return St.isPlainObject(l)||l instanceof this.constructor?v(l,r):St.isString(l)&&(l=l.trim())&&!sk(l)?v(rk(l),r):l!=null&&g(r,l,h),this}get(l,r){if(l=Ao(l),l){const h=St.findKey(this,l);if(h){const c=this[h];if(!r)return c;if(r===!0)return ok(c);if(St.isFunction(r))return r.call(this,c,h);if(St.isRegExp(r))return r.exec(c);throw new TypeError("parser must be boolean|regexp|function")}}}has(l,r){if(l=Ao(l),l){const h=St.findKey(this,l);return!!(h&&this[h]!==void 0&&(!r||Ri(this,this[h],h,r)))}return!1}delete(l,r){const h=this;let c=!1;function g(v){if(v=Ao(v),v){const k=St.findKey(h,v);k&&(!r||Ri(h,h[k],k,r))&&(delete h[k],c=!0)}}return St.isArray(l)?l.forEach(g):g(l),c}clear(l){const r=Object.keys(this);let h=r.length,c=!1;for(;h--;){const g=r[h];(!l||Ri(this,this[g],g,l,!0))&&(delete this[g],c=!0)}return c}normalize(l){const r=this,h={};return St.forEach(this,(c,g)=>{const v=St.findKey(h,g);if(v){r[v]=oa(c),delete r[g];return}const k=l?ak(g):String(g).trim();k!==g&&delete r[g],r[k]=oa(c),h[k]=!0}),this}concat(...l){return this.constructor.concat(this,...l)}toJSON(l){const r=Object.create(null);return St.forEach(this,(h,c)=>{h!=null&&h!==!1&&(r[c]=l&&St.isArray(h)?h.join(", "):h)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([l,r])=>l+": "+r).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(l){return l instanceof this?l:new this(l)}static concat(l,...r){const h=new this(l);return r.forEach(c=>h.set(c)),h}static accessor(l){const h=(this[K1]=this[K1]={accessors:{}}).accessors,c=this.prototype;function g(v){const k=Ao(v);h[k]||(ik(c,v),h[k]=!0)}return St.isArray(l)?l.forEach(g):g(l),this}}ti.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);St.reduceDescriptors(ti.prototype,({value:n},l)=>{let r=l[0].toUpperCase()+l.slice(1);return{get:()=>n,set(h){this[r]=h}}});St.freezeMethods(ti);const ml=ti;function Ti(n,l){const r=this||Zh,h=l||r,c=ml.from(h.headers);let g=h.data;return St.forEach(n,function(k){g=k.call(r,g,c.normalize(),l?l.status:void 0)}),c.normalize(),g}function bp(n){return!!(n&&n.__CANCEL__)}function Cs(n,l,r){pe.call(this,n??"canceled",pe.ERR_CANCELED,l,r),this.name="CanceledError"}St.inherits(Cs,pe,{__CANCEL__:!0});function hk(n,l,r){const h=r.config.validateStatus;!r.status||!h||h(r.status)?n(r):l(new pe("Request failed with status code "+r.status,[pe.ERR_BAD_REQUEST,pe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const dk=nl.hasStandardBrowserEnv?{write(n,l,r,h,c,g){const v=[n+"="+encodeURIComponent(l)];St.isNumber(r)&&v.push("expires="+new Date(r).toGMTString()),St.isString(h)&&v.push("path="+h),St.isString(c)&&v.push("domain="+c),g===!0&&v.push("secure"),document.cookie=v.join("; ")},read(n){const l=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return l?decodeURIComponent(l[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ck(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function uk(n,l){return l?n.replace(/\/+$/,"")+"/"+l.replace(/^\/+/,""):n}function Mp(n,l){return n&&!ck(l)?uk(n,l):l}const pk=nl.hasStandardBrowserEnv?function(){const l=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let h;function c(g){let v=g;return l&&(r.setAttribute("href",v),v=r.href),r.setAttribute("href",v),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return h=c(window.location.href),function(v){const k=St.isString(v)?c(v):v;return k.protocol===h.protocol&&k.host===h.host}}():function(){return function(){return!0}}();function gk(n){const l=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return l&&l[1]||""}function wk(n,l){n=n||10;const r=new Array(n),h=new Array(n);let c=0,g=0,v;return l=l!==void 0?l:1e3,function(x){const I=Date.now(),S=h[g];v||(v=I),r[c]=x,h[c]=I;let $=g,B=0;for(;$!==c;)B+=r[$++],$=$%n;if(c=(c+1)%n,c===g&&(g=(g+1)%n),I-v{const g=c.loaded,v=c.lengthComputable?c.total:void 0,k=g-r,x=h(k),I=g<=v;r=g;const S={loaded:g,total:v,progress:v?g/v:void 0,bytes:k,rate:x||void 0,estimated:x&&v&&I?(v-g)/x:void 0,event:c};S[l?"download":"upload"]=!0,n(S)}}const vk=typeof XMLHttpRequest<"u",fk=vk&&function(n){return new Promise(function(r,h){let c=n.data;const g=ml.from(n.headers).normalize();let{responseType:v,withXSRFToken:k}=n,x;function I(){n.cancelToken&&n.cancelToken.unsubscribe(x),n.signal&&n.signal.removeEventListener("abort",x)}let S;if(St.isFormData(c)){if(nl.hasStandardBrowserEnv||nl.hasStandardBrowserWebWorkerEnv)g.setContentType(!1);else if((S=g.getContentType())!==!1){const[F,...X]=S?S.split(";").map(R=>R.trim()).filter(Boolean):[];g.setContentType([F||"multipart/form-data",...X].join("; "))}}let $=new XMLHttpRequest;if(n.auth){const F=n.auth.username||"",X=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";g.set("Authorization","Basic "+btoa(F+":"+X))}const B=Mp(n.baseURL,n.url);$.open(n.method.toUpperCase(),vp(B,n.params,n.paramsSerializer),!0),$.timeout=n.timeout;function P(){if(!$)return;const F=ml.from("getAllResponseHeaders"in $&&$.getAllResponseHeaders()),R={data:!v||v==="text"||v==="json"?$.responseText:$.response,status:$.status,statusText:$.statusText,headers:F,config:n,request:$};hk(function(U){r(U),I()},function(U){h(U),I()},R),$=null}if("onloadend"in $?$.onloadend=P:$.onreadystatechange=function(){!$||$.readyState!==4||$.status===0&&!($.responseURL&&$.responseURL.indexOf("file:")===0)||setTimeout(P)},$.onabort=function(){$&&(h(new pe("Request aborted",pe.ECONNABORTED,n,$)),$=null)},$.onerror=function(){h(new pe("Network Error",pe.ERR_NETWORK,n,$)),$=null},$.ontimeout=function(){let X=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const R=n.transitional||fp;n.timeoutErrorMessage&&(X=n.timeoutErrorMessage),h(new pe(X,R.clarifyTimeoutError?pe.ETIMEDOUT:pe.ECONNABORTED,n,$)),$=null},nl.hasStandardBrowserEnv&&(k&&St.isFunction(k)&&(k=k(n)),k||k!==!1&&pk(B))){const F=n.xsrfHeaderName&&n.xsrfCookieName&&dk.read(n.xsrfCookieName);F&&g.set(n.xsrfHeaderName,F)}c===void 0&&g.setContentType(null),"setRequestHeader"in $&&St.forEach(g.toJSON(),function(X,R){$.setRequestHeader(R,X)}),St.isUndefined(n.withCredentials)||($.withCredentials=!!n.withCredentials),v&&v!=="json"&&($.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&$.addEventListener("progress",Q1(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&$.upload&&$.upload.addEventListener("progress",Q1(n.onUploadProgress)),(n.cancelToken||n.signal)&&(x=F=>{$&&(h(!F||F.type?new Cs(null,n,$):F),$.abort(),$=null)},n.cancelToken&&n.cancelToken.subscribe(x),n.signal&&(n.signal.aborted?x():n.signal.addEventListener("abort",x)));const D=gk(B);if(D&&nl.protocols.indexOf(D)===-1){h(new pe("Unsupported protocol "+D+":",pe.ERR_BAD_REQUEST,n));return}$.send(c||null)})},S0={http:Em,xhr:fk};St.forEach(S0,(n,l)=>{if(n){try{Object.defineProperty(n,"name",{value:l})}catch{}Object.defineProperty(n,"adapterName",{value:l})}});const J1=n=>`- ${n}`,mk=n=>St.isFunction(n)||n===null||n===!1,xp={getAdapter:n=>{n=St.isArray(n)?n:[n];const{length:l}=n;let r,h;const c={};for(let g=0;g`adapter ${k} `+(x===!1?"is not supported by the environment":"is not available in the build"));let v=l?g.length>1?`since : `+g.map(J1).join(` -`):" "+J1(g[0]):"as no adapter specified";throw new pe("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return h},adapters:S0};function Ei(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Cs(null,n)}function td(n){return Ei(n),n.headers=ml.from(n.headers),n.data=Ti.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),xp.getAdapter(n.adapter||Zh.adapter)(n).then(function(h){return Ei(n),h.data=Ti.call(n,n.transformResponse,h),h.headers=ml.from(h.headers),h},function(h){return bp(h)||(Ei(n),h&&h.response&&(h.response.data=Ti.call(n,n.transformResponse,h.response),h.response.headers=ml.from(h.response.headers))),Promise.reject(h)})}const ed=n=>n instanceof ml?n.toJSON():n;function lo(n,l){l=l||{};const r={};function h(I,S,$){return St.isPlainObject(I)&&St.isPlainObject(S)?St.merge.call({caseless:$},I,S):St.isPlainObject(S)?St.merge({},S):St.isArray(S)?S.slice():S}function c(I,S,$){if(St.isUndefined(S)){if(!St.isUndefined(I))return h(void 0,I,$)}else return h(I,S,$)}function g(I,S){if(!St.isUndefined(S))return h(void 0,S)}function v(I,S){if(St.isUndefined(S)){if(!St.isUndefined(I))return h(void 0,I)}else return h(void 0,S)}function k(I,S,$){if($ in l)return h(I,S);if($ in n)return h(void 0,I)}const x={url:g,method:g,data:g,baseURL:v,transformRequest:v,transformResponse:v,paramsSerializer:v,timeout:v,timeoutMessage:v,withCredentials:v,withXSRFToken:v,adapter:v,responseType:v,xsrfCookieName:v,xsrfHeaderName:v,onUploadProgress:v,onDownloadProgress:v,decompress:v,maxContentLength:v,maxBodyLength:v,beforeRedirect:v,transport:v,httpAgent:v,httpsAgent:v,cancelToken:v,socketPath:v,responseEncoding:v,validateStatus:k,headers:(I,S)=>c(ed(I),ed(S),!0)};return St.forEach(Object.keys(Object.assign({},n,l)),function(S){const $=x[S]||c,B=$(n[S],l[S],S);St.isUndefined(B)&&$!==k||(r[S]=B)}),r}const zp="1.6.2",Kh={};["object","boolean","number","function","string","symbol"].forEach((n,l)=>{Kh[n]=function(h){return typeof h===n||"a"+(l<1?"n ":" ")+n}});const nd={};Kh.transitional=function(l,r,h){function c(g,v){return"[Axios v"+zp+"] Transitional option '"+g+"'"+v+(h?". "+h:"")}return(g,v,k)=>{if(l===!1)throw new pe(c(v," has been removed"+(r?" in "+r:"")),pe.ERR_DEPRECATED);return r&&!nd[v]&&(nd[v]=!0,console.warn(c(v," has been deprecated since v"+r+" and will be removed in the near future"))),l?l(g,v,k):!0}};function kk(n,l,r){if(typeof n!="object")throw new pe("options must be an object",pe.ERR_BAD_OPTION_VALUE);const h=Object.keys(n);let c=h.length;for(;c-- >0;){const g=h[c],v=l[g];if(v){const k=n[g],x=k===void 0||v(k,g,n);if(x!==!0)throw new pe("option "+g+" must be "+x,pe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new pe("Unknown option "+g,pe.ERR_BAD_OPTION)}}const $0={assertOptions:kk,validators:Kh},Ll=$0.validators;class va{constructor(l){this.defaults=l,this.interceptors={request:new Z1,response:new Z1}}request(l,r){typeof l=="string"?(r=r||{},r.url=l):r=l||{},r=lo(this.defaults,r);const{transitional:h,paramsSerializer:c,headers:g}=r;h!==void 0&&$0.assertOptions(h,{silentJSONParsing:Ll.transitional(Ll.boolean),forcedJSONParsing:Ll.transitional(Ll.boolean),clarifyTimeoutError:Ll.transitional(Ll.boolean)},!1),c!=null&&(St.isFunction(c)?r.paramsSerializer={serialize:c}:$0.assertOptions(c,{encode:Ll.function,serialize:Ll.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let v=g&&St.merge(g.common,g[r.method]);g&&St.forEach(["delete","get","head","post","put","patch","common"],D=>{delete g[D]}),r.headers=ml.concat(v,g);const k=[];let x=!0;this.interceptors.request.forEach(function(F){typeof F.runWhen=="function"&&F.runWhen(r)===!1||(x=x&&F.synchronous,k.unshift(F.fulfilled,F.rejected))});const I=[];this.interceptors.response.forEach(function(F){I.push(F.fulfilled,F.rejected)});let S,$=0,B;if(!x){const D=[td.bind(this),void 0];for(D.unshift.apply(D,k),D.push.apply(D,I),B=D.length,S=Promise.resolve(r);${if(!h._listeners)return;let g=h._listeners.length;for(;g-- >0;)h._listeners[g](c);h._listeners=null}),this.promise.then=c=>{let g;const v=new Promise(k=>{h.subscribe(k),g=k}).then(c);return v.cancel=function(){h.unsubscribe(g)},v},l(function(g,v,k){h.reason||(h.reason=new Cs(g,v,k),r(h.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(l){if(this.reason){l(this.reason);return}this._listeners?this._listeners.push(l):this._listeners=[l]}unsubscribe(l){if(!this._listeners)return;const r=this._listeners.indexOf(l);r!==-1&&this._listeners.splice(r,1)}static source(){let l;return{token:new Qh(function(c){l=c}),cancel:l}}}const bk=Qh;function Mk(n){return function(r){return n.apply(null,r)}}function xk(n){return St.isObject(n)&&n.isAxiosError===!0}const A0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(A0).forEach(([n,l])=>{A0[l]=n});const zk=A0;function Ip(n){const l=new sa(n),r=rp(sa.prototype.request,l);return St.extend(r,sa.prototype,l,{allOwnKeys:!0}),St.extend(r,l,null,{allOwnKeys:!0}),r.create=function(c){return Ip(lo(n,c))},r}const Re=Ip(Zh);Re.Axios=sa;Re.CanceledError=Cs;Re.CancelToken=bk;Re.isCancel=bp;Re.VERSION=zp;Re.toFormData=Ja;Re.AxiosError=pe;Re.Cancel=Re.CanceledError;Re.all=function(l){return Promise.all(l)};Re.spread=Mk;Re.isAxiosError=xk;Re.mergeConfig=lo;Re.AxiosHeaders=ml;Re.formToJSON=n=>kp(St.isHTMLForm(n)?new FormData(n):n);Re.getAdapter=xp.getAdapter;Re.HttpStatusCode=zk;Re.default=Re;const Ik=Re,yk=Jf({id:"auth",state:()=>({user:JSON.parse(localStorage.getItem("user")),returnUrl:null}),actions:{async login(n,l){Ik.post("/api/authenticate",{username:n,password:l}).then(r=>{console.log("auth",r),this.user=r.data.data,localStorage.setItem("user",JSON.stringify(this.user)),fa.push(this.returnUrl||"/dashboard/default")})},logout(){this.user=null,localStorage.removeItem("user"),fa.push("/auth/login")}}}),fa=tm({history:f5("/"),routes:[{path:"/:pathMatch(.*)*",component:()=>en(()=>import("./Error404Page-41f8cd81.js"),["assets/Error404Page-41f8cd81.js","assets/_plugin-vue_export-helper-c27b6911.js","assets/Error404Page-11cf087a.css"])},om,sm]});fa.beforeEach(async(n,l,r)=>{const c=!["/auth/login"].includes(n.path),g=yk();if(n.matched.some(v=>v.meta.requiresAuth)){if(c&&!g.user)return g.returnUrl=n.fullPath,r("/auth/login");r()}else r()});const ze=typeof window<"u",Jh=ze&&"IntersectionObserver"in window,Ck=ze&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function ld(n,l,r){Sk(n,l),l.set(n,r)}function Sk(n,l){if(l.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $k(n,l,r){var h=yp(n,l,"set");return Ak(n,h,r),r}function Ak(n,l,r){if(l.set)l.set.call(n,r);else{if(!l.writable)throw new TypeError("attempted to set read only private field");l.value=r}}function sr(n,l){var r=yp(n,l,"get");return Bk(n,r)}function yp(n,l,r){if(!l.has(n))throw new TypeError("attempted to "+r+" private field on non-instance");return l.get(n)}function Bk(n,l){return l.get?l.get.call(n):l.value}function Cp(n,l,r){const h=l.length-1;if(h<0)return n===void 0?r:n;for(let c=0;cSr(n[h],l[h]))}function B0(n,l,r){return n==null||!l||typeof l!="string"?r:n[l]!==void 0?n[l]:(l=l.replace(/\[(\w+)\]/g,".$1"),l=l.replace(/^\./,""),Cp(n,l.split("."),r))}function ln(n,l,r){if(l==null)return n===void 0?r:n;if(n!==Object(n)){if(typeof l!="function")return r;const c=l(n,r);return typeof c>"u"?r:c}if(typeof l=="string")return B0(n,l,r);if(Array.isArray(l))return Cp(n,l,r);if(typeof l!="function")return r;const h=l(n,r);return typeof h>"u"?r:h}function gl(n){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:n},(r,h)=>l+h)}function qt(n){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(n==null||n===""))return isNaN(+n)?String(n):isFinite(+n)?`${Number(n)}${l}`:void 0}function H0(n){return n!==null&&typeof n=="object"&&!Array.isArray(n)}function N0(n){return n&&"$el"in n?n.$el:n}const rd=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),j0=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function Sp(n){return Object.keys(n)}function cr(n,l){return l.every(r=>n.hasOwnProperty(r))}function Mr(n,l,r){const h=Object.create(null),c=Object.create(null);for(const g in n)l.some(v=>v instanceof RegExp?v.test(g):v===g)&&!(r!=null&&r.some(v=>v===g))?h[g]=n[g]:c[g]=n[g];return[h,c]}function On(n,l){const r={...n};return l.forEach(h=>delete r[h]),r}const $p=/^on[^a-z]/,t2=n=>$p.test(n),Hk=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"];function $r(n){const[l,r]=Mr(n,[$p]),h=On(l,Hk),[c,g]=Mr(r,["class","style","id",/^data-/]);return Object.assign(c,l),Object.assign(g,h),[c,g]}function Pn(n){return n==null?[]:Array.isArray(n)?n:[n]}function rn(n){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(l,Math.min(r,n))}function od(n){const l=n.toString().trim();return l.includes(".")?l.length-l.indexOf(".")-1:0}function sd(n,l){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return n+r.repeat(Math.max(0,l-n.length))}function Nk(n){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const r=[];let h=0;for(;h1&&arguments[1]!==void 0?arguments[1]:1e3;if(n=l&&h0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const h={};for(const c in n)h[c]=n[c];for(const c in l){const g=n[c],v=l[c];if(H0(g)&&H0(v)){h[c]=Nn(g,v,r);continue}if(Array.isArray(g)&&Array.isArray(v)&&r){h[c]=r(g,v);continue}h[c]=v}return h}function Ap(n){return n.map(l=>l.type===Kt?Ap(l.children):l).flat()}function vr(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(vr.cache.has(n))return vr.cache.get(n);const l=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return vr.cache.set(n,l),l}vr.cache=new Map;function qo(n,l){if(!l||typeof l!="object")return[];if(Array.isArray(l))return l.map(r=>qo(n,r)).flat(1);if(Array.isArray(l.children))return l.children.map(r=>qo(n,r)).flat(1);if(l.component){if(Object.getOwnPropertySymbols(l.component.provides).includes(n))return[l.component];if(l.component.subTree)return qo(n,l.component.subTree).flat(1)}return[]}var Us=new WeakMap,Fr=new WeakMap;class jk{constructor(l){ld(this,Us,{writable:!0,value:[]}),ld(this,Fr,{writable:!0,value:0}),this.size=l}push(l){sr(this,Us)[sr(this,Fr)]=l,$k(this,Fr,(sr(this,Fr)+1)%this.size)}values(){return sr(this,Us).slice(sr(this,Fr)).concat(sr(this,Us).slice(0,sr(this,Fr)))}}function Pk(n){return"touches"in n?{clientX:n.touches[0].clientX,clientY:n.touches[0].clientY}:{clientX:n.clientX,clientY:n.clientY}}function e2(n){const l=Ze({}),r=q(n);return bn(()=>{for(const h in r.value)l[h]=r.value[h]},{flush:"sync"}),vs(l)}function ma(n,l){return n.includes(l)}function Bp(n){return n[2].toLowerCase()+n.slice(3)}const ol=()=>[Function,Array];function id(n,l){return l="on"+Il(l),!!(n[l]||n[`${l}Once`]||n[`${l}Capture`]||n[`${l}OnceCapture`]||n[`${l}CaptureOnce`])}function n2(n){for(var l=arguments.length,r=new Array(l>1?l-1:0),h=1;h1&&arguments[1]!==void 0?arguments[1]:!0;const r=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(h=>`${h}${l?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...n.querySelectorAll(r)]}function Hp(n,l,r){let h,c=n.indexOf(document.activeElement);const g=l==="next"?1:-1;do c+=g,h=n[c];while((!h||h.offsetParent==null||!((r==null?void 0:r(h))??!0))&&c=0);return h}function ka(n,l){var h,c,g,v;const r=ss(n);if(!l)(n===document.activeElement||!n.contains(document.activeElement))&&((h=r[0])==null||h.focus());else if(l==="first")(c=r[0])==null||c.focus();else if(l==="last")(g=r.at(-1))==null||g.focus();else if(typeof l=="number")(v=r[l])==null||v.focus();else{const k=Hp(r,l);k?k.focus():ka(n,l==="next"?"first":"last")}}function Np(){}function ro(n,l){if(!(ze&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${l})`)))return null;try{return!!n&&n.matches(l)}catch{return null}}const jp=["top","bottom"],Lk=["start","end","left","right"];function P0(n,l){let[r,h]=n.split(" ");return h||(h=ma(jp,r)?"start":ma(Lk,r)?"top":"center"),{side:L0(r,l),align:L0(h,l)}}function L0(n,l){return n==="start"?l?"right":"left":n==="end"?l?"left":"right":n}function Vi(n){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[n.side],align:n.align}}function _i(n){return{side:n.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[n.align]}}function hd(n){return{side:n.align,align:n.side}}function dd(n){return ma(jp,n.side)?"y":"x"}class Kr{constructor(l){let{x:r,y:h,width:c,height:g}=l;this.x=r,this.y=h,this.width=c,this.height=g}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function cd(n,l){return{x:{before:Math.max(0,l.left-n.left),after:Math.max(0,n.right-l.right)},y:{before:Math.max(0,l.top-n.top),after:Math.max(0,n.bottom-l.bottom)}}}function l2(n){const l=n.getBoundingClientRect(),r=getComputedStyle(n),h=r.transform;if(h){let c,g,v,k,x;if(h.startsWith("matrix3d("))c=h.slice(9,-1).split(/, /),g=+c[0],v=+c[5],k=+c[12],x=+c[13];else if(h.startsWith("matrix("))c=h.slice(7,-1).split(/, /),g=+c[0],v=+c[3],k=+c[4],x=+c[5];else return new Kr(l);const I=r.transformOrigin,S=l.x-k-(1-g)*parseFloat(I),$=l.y-x-(1-v)*parseFloat(I.slice(I.indexOf(" ")+1)),B=g?l.width/g:n.offsetWidth+1,P=v?l.height/v:n.offsetHeight+1;return new Kr({x:S,y:$,width:B,height:P})}else return new Kr(l)}function ur(n,l,r){if(typeof n.animate>"u")return{finished:Promise.resolve()};let h;try{h=n.animate(l,r)}catch{return{finished:Promise.resolve()}}return typeof h.finished>"u"&&(h.finished=new Promise(c=>{h.onfinish=()=>{c(h)}})),h}const aa=new WeakMap;function Dk(n,l){Object.keys(l).forEach(r=>{if(t2(r)){const h=Bp(r),c=aa.get(n);if(l[r]==null)c==null||c.forEach(g=>{const[v,k]=g;v===h&&(n.removeEventListener(h,k),c.delete(g))});else if(!c||![...c].some(g=>g[0]===h&&g[1]===l[r])){n.addEventListener(h,l[r]);const g=c||new Set;g.add([h,l[r]]),aa.has(n)||aa.set(n,g)}}else l[r]==null?n.removeAttribute(r):n.setAttribute(r,l[r])})}function Ok(n,l){Object.keys(l).forEach(r=>{if(t2(r)){const h=Bp(r),c=aa.get(n);c==null||c.forEach(g=>{const[v,k]=g;v===h&&(n.removeEventListener(h,k),c.delete(g))})}else n.removeAttribute(r)})}const Rr=2.4,ud=.2126729,pd=.7151522,gd=.072175,Fk=.55,Rk=.58,Tk=.57,Ek=.62,Gs=.03,wd=1.45,Vk=5e-4,_k=1.25,Wk=1.25,vd=.078,fd=12.82051282051282,Zs=.06,md=.001;function kd(n,l){const r=(n.r/255)**Rr,h=(n.g/255)**Rr,c=(n.b/255)**Rr,g=(l.r/255)**Rr,v=(l.g/255)**Rr,k=(l.b/255)**Rr;let x=r*ud+h*pd+c*gd,I=g*ud+v*pd+k*gd;if(x<=Gs&&(x+=(Gs-x)**wd),I<=Gs&&(I+=(Gs-I)**wd),Math.abs(I-x)x){const $=(I**Fk-x**Rk)*_k;S=$-md?0:$>-vd?$-$*fd*Zs:$+Zs}return S*100}function Xk(n,l){l=Array.isArray(l)?l.slice(0,-1).map(r=>`'${r}'`).join(", ")+` or '${l.at(-1)}'`:`'${l}'`}const ba=.20689655172413793,qk=n=>n>ba**3?Math.cbrt(n):n/(3*ba**2)+4/29,Yk=n=>n>ba?n**3:3*ba**2*(n-4/29);function Pp(n){const l=qk,r=l(n[1]);return[116*r-16,500*(l(n[0]/.95047)-r),200*(r-l(n[2]/1.08883))]}function Lp(n){const l=Yk,r=(n[0]+16)/116;return[l(r+n[1]/500)*.95047,l(r),l(r-n[2]/200)*1.08883]}const Uk=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],Gk=n=>n<=.0031308?n*12.92:1.055*n**(1/2.4)-.055,Zk=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],Kk=n=>n<=.04045?n/12.92:((n+.055)/1.055)**2.4;function Dp(n){const l=Array(3),r=Gk,h=Uk;for(let c=0;c<3;++c)l[c]=Math.round(rn(r(h[c][0]*n[0]+h[c][1]*n[1]+h[c][2]*n[2]))*255);return{r:l[0],g:l[1],b:l[2]}}function r2(n){let{r:l,g:r,b:h}=n;const c=[0,0,0],g=Kk,v=Zk;l=g(l/255),r=g(r/255),h=g(h/255);for(let k=0;k<3;++k)c[k]=v[k][0]*l+v[k][1]*r+v[k][2]*h;return c}function bd(n){return!!n&&/^(#|var\(--|(rgb|hsl)a?\()/.test(n)}const Md=/^(?(?:rgb|hsl)a?)\((?.+)\)/,Qk={rgb:(n,l,r,h)=>({r:n,g:l,b:r,a:h}),rgba:(n,l,r,h)=>({r:n,g:l,b:r,a:h}),hsl:(n,l,r,h)=>xd({h:n,s:l,l:r,a:h}),hsla:(n,l,r,h)=>xd({h:n,s:l,l:r,a:h}),hsv:(n,l,r,h)=>bl({h:n,s:l,v:r,a:h}),hsva:(n,l,r,h)=>bl({h:n,s:l,v:r,a:h})};function Yn(n){if(typeof n=="number")return{r:(n&16711680)>>16,g:(n&65280)>>8,b:n&255};if(typeof n=="string"&&Md.test(n)){const{groups:l}=n.match(Md),{fn:r,values:h}=l,c=h.split(/,\s*/).map(g=>g.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(r)?parseFloat(g)/100:parseFloat(g));return Qk[r](...c)}else if(typeof n=="string"){let l=n.startsWith("#")?n.slice(1):n;return[3,4].includes(l.length)?l=l.split("").map(r=>r+r).join(""):[6,8].includes(l.length),Ep(l)}else if(typeof n=="object"){if(cr(n,["r","g","b"]))return n;if(cr(n,["h","s","l"]))return bl(o2(n));if(cr(n,["h","s","v"]))return bl(n)}throw new TypeError(`Invalid color: ${n==null?n:String(n)||n.constructor.name} +`):" "+J1(g[0]):"as no adapter specified";throw new pe("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return h},adapters:S0};function Ei(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Cs(null,n)}function td(n){return Ei(n),n.headers=ml.from(n.headers),n.data=Ti.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),xp.getAdapter(n.adapter||Zh.adapter)(n).then(function(h){return Ei(n),h.data=Ti.call(n,n.transformResponse,h),h.headers=ml.from(h.headers),h},function(h){return bp(h)||(Ei(n),h&&h.response&&(h.response.data=Ti.call(n,n.transformResponse,h.response),h.response.headers=ml.from(h.response.headers))),Promise.reject(h)})}const ed=n=>n instanceof ml?n.toJSON():n;function lo(n,l){l=l||{};const r={};function h(I,S,$){return St.isPlainObject(I)&&St.isPlainObject(S)?St.merge.call({caseless:$},I,S):St.isPlainObject(S)?St.merge({},S):St.isArray(S)?S.slice():S}function c(I,S,$){if(St.isUndefined(S)){if(!St.isUndefined(I))return h(void 0,I,$)}else return h(I,S,$)}function g(I,S){if(!St.isUndefined(S))return h(void 0,S)}function v(I,S){if(St.isUndefined(S)){if(!St.isUndefined(I))return h(void 0,I)}else return h(void 0,S)}function k(I,S,$){if($ in l)return h(I,S);if($ in n)return h(void 0,I)}const x={url:g,method:g,data:g,baseURL:v,transformRequest:v,transformResponse:v,paramsSerializer:v,timeout:v,timeoutMessage:v,withCredentials:v,withXSRFToken:v,adapter:v,responseType:v,xsrfCookieName:v,xsrfHeaderName:v,onUploadProgress:v,onDownloadProgress:v,decompress:v,maxContentLength:v,maxBodyLength:v,beforeRedirect:v,transport:v,httpAgent:v,httpsAgent:v,cancelToken:v,socketPath:v,responseEncoding:v,validateStatus:k,headers:(I,S)=>c(ed(I),ed(S),!0)};return St.forEach(Object.keys(Object.assign({},n,l)),function(S){const $=x[S]||c,B=$(n[S],l[S],S);St.isUndefined(B)&&$!==k||(r[S]=B)}),r}const zp="1.6.2",Kh={};["object","boolean","number","function","string","symbol"].forEach((n,l)=>{Kh[n]=function(h){return typeof h===n||"a"+(l<1?"n ":" ")+n}});const nd={};Kh.transitional=function(l,r,h){function c(g,v){return"[Axios v"+zp+"] Transitional option '"+g+"'"+v+(h?". "+h:"")}return(g,v,k)=>{if(l===!1)throw new pe(c(v," has been removed"+(r?" in "+r:"")),pe.ERR_DEPRECATED);return r&&!nd[v]&&(nd[v]=!0,console.warn(c(v," has been deprecated since v"+r+" and will be removed in the near future"))),l?l(g,v,k):!0}};function kk(n,l,r){if(typeof n!="object")throw new pe("options must be an object",pe.ERR_BAD_OPTION_VALUE);const h=Object.keys(n);let c=h.length;for(;c-- >0;){const g=h[c],v=l[g];if(v){const k=n[g],x=k===void 0||v(k,g,n);if(x!==!0)throw new pe("option "+g+" must be "+x,pe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new pe("Unknown option "+g,pe.ERR_BAD_OPTION)}}const $0={assertOptions:kk,validators:Kh},Ll=$0.validators;class va{constructor(l){this.defaults=l,this.interceptors={request:new Z1,response:new Z1}}request(l,r){typeof l=="string"?(r=r||{},r.url=l):r=l||{},r=lo(this.defaults,r);const{transitional:h,paramsSerializer:c,headers:g}=r;h!==void 0&&$0.assertOptions(h,{silentJSONParsing:Ll.transitional(Ll.boolean),forcedJSONParsing:Ll.transitional(Ll.boolean),clarifyTimeoutError:Ll.transitional(Ll.boolean)},!1),c!=null&&(St.isFunction(c)?r.paramsSerializer={serialize:c}:$0.assertOptions(c,{encode:Ll.function,serialize:Ll.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let v=g&&St.merge(g.common,g[r.method]);g&&St.forEach(["delete","get","head","post","put","patch","common"],D=>{delete g[D]}),r.headers=ml.concat(v,g);const k=[];let x=!0;this.interceptors.request.forEach(function(F){typeof F.runWhen=="function"&&F.runWhen(r)===!1||(x=x&&F.synchronous,k.unshift(F.fulfilled,F.rejected))});const I=[];this.interceptors.response.forEach(function(F){I.push(F.fulfilled,F.rejected)});let S,$=0,B;if(!x){const D=[td.bind(this),void 0];for(D.unshift.apply(D,k),D.push.apply(D,I),B=D.length,S=Promise.resolve(r);${if(!h._listeners)return;let g=h._listeners.length;for(;g-- >0;)h._listeners[g](c);h._listeners=null}),this.promise.then=c=>{let g;const v=new Promise(k=>{h.subscribe(k),g=k}).then(c);return v.cancel=function(){h.unsubscribe(g)},v},l(function(g,v,k){h.reason||(h.reason=new Cs(g,v,k),r(h.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(l){if(this.reason){l(this.reason);return}this._listeners?this._listeners.push(l):this._listeners=[l]}unsubscribe(l){if(!this._listeners)return;const r=this._listeners.indexOf(l);r!==-1&&this._listeners.splice(r,1)}static source(){let l;return{token:new Qh(function(c){l=c}),cancel:l}}}const bk=Qh;function Mk(n){return function(r){return n.apply(null,r)}}function xk(n){return St.isObject(n)&&n.isAxiosError===!0}const A0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(A0).forEach(([n,l])=>{A0[l]=n});const zk=A0;function Ip(n){const l=new sa(n),r=rp(sa.prototype.request,l);return St.extend(r,sa.prototype,l,{allOwnKeys:!0}),St.extend(r,l,null,{allOwnKeys:!0}),r.create=function(c){return Ip(lo(n,c))},r}const Re=Ip(Zh);Re.Axios=sa;Re.CanceledError=Cs;Re.CancelToken=bk;Re.isCancel=bp;Re.VERSION=zp;Re.toFormData=Ja;Re.AxiosError=pe;Re.Cancel=Re.CanceledError;Re.all=function(l){return Promise.all(l)};Re.spread=Mk;Re.isAxiosError=xk;Re.mergeConfig=lo;Re.AxiosHeaders=ml;Re.formToJSON=n=>kp(St.isHTMLForm(n)?new FormData(n):n);Re.getAdapter=xp.getAdapter;Re.HttpStatusCode=zk;Re.default=Re;const Ik=Re,yk=Jf({id:"auth",state:()=>({user:JSON.parse(localStorage.getItem("user")),returnUrl:null}),actions:{async login(n,l){Ik.post("/api/authenticate",{username:n,password:l}).then(r=>{console.log("auth",r),this.user=r.data.data,localStorage.setItem("user",JSON.stringify(this.user)),fa.push(this.returnUrl||"/dashboard/default")})},logout(){this.user=null,localStorage.removeItem("user"),fa.push("/auth/login")}}}),fa=tm({history:f5("/"),routes:[{path:"/:pathMatch(.*)*",component:()=>en(()=>import("./Error404Page-0951219d.js"),["assets/Error404Page-0951219d.js","assets/_plugin-vue_export-helper-c27b6911.js","assets/Error404Page-11cf087a.css"])},om,sm]});fa.beforeEach(async(n,l,r)=>{const c=!["/auth/login"].includes(n.path),g=yk();if(n.matched.some(v=>v.meta.requiresAuth)){if(c&&!g.user)return g.returnUrl=n.fullPath,r("/auth/login");r()}else r()});const ze=typeof window<"u",Jh=ze&&"IntersectionObserver"in window,Ck=ze&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function ld(n,l,r){Sk(n,l),l.set(n,r)}function Sk(n,l){if(l.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $k(n,l,r){var h=yp(n,l,"set");return Ak(n,h,r),r}function Ak(n,l,r){if(l.set)l.set.call(n,r);else{if(!l.writable)throw new TypeError("attempted to set read only private field");l.value=r}}function sr(n,l){var r=yp(n,l,"get");return Bk(n,r)}function yp(n,l,r){if(!l.has(n))throw new TypeError("attempted to "+r+" private field on non-instance");return l.get(n)}function Bk(n,l){return l.get?l.get.call(n):l.value}function Cp(n,l,r){const h=l.length-1;if(h<0)return n===void 0?r:n;for(let c=0;cSr(n[h],l[h]))}function B0(n,l,r){return n==null||!l||typeof l!="string"?r:n[l]!==void 0?n[l]:(l=l.replace(/\[(\w+)\]/g,".$1"),l=l.replace(/^\./,""),Cp(n,l.split("."),r))}function ln(n,l,r){if(l==null)return n===void 0?r:n;if(n!==Object(n)){if(typeof l!="function")return r;const c=l(n,r);return typeof c>"u"?r:c}if(typeof l=="string")return B0(n,l,r);if(Array.isArray(l))return Cp(n,l,r);if(typeof l!="function")return r;const h=l(n,r);return typeof h>"u"?r:h}function gl(n){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:n},(r,h)=>l+h)}function qt(n){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(n==null||n===""))return isNaN(+n)?String(n):isFinite(+n)?`${Number(n)}${l}`:void 0}function H0(n){return n!==null&&typeof n=="object"&&!Array.isArray(n)}function N0(n){return n&&"$el"in n?n.$el:n}const rd=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),j0=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function Sp(n){return Object.keys(n)}function cr(n,l){return l.every(r=>n.hasOwnProperty(r))}function Mr(n,l,r){const h=Object.create(null),c=Object.create(null);for(const g in n)l.some(v=>v instanceof RegExp?v.test(g):v===g)&&!(r!=null&&r.some(v=>v===g))?h[g]=n[g]:c[g]=n[g];return[h,c]}function On(n,l){const r={...n};return l.forEach(h=>delete r[h]),r}const $p=/^on[^a-z]/,t2=n=>$p.test(n),Hk=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"];function $r(n){const[l,r]=Mr(n,[$p]),h=On(l,Hk),[c,g]=Mr(r,["class","style","id",/^data-/]);return Object.assign(c,l),Object.assign(g,h),[c,g]}function Pn(n){return n==null?[]:Array.isArray(n)?n:[n]}function rn(n){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(l,Math.min(r,n))}function od(n){const l=n.toString().trim();return l.includes(".")?l.length-l.indexOf(".")-1:0}function sd(n,l){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return n+r.repeat(Math.max(0,l-n.length))}function Nk(n){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const r=[];let h=0;for(;h1&&arguments[1]!==void 0?arguments[1]:1e3;if(n=l&&h0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const h={};for(const c in n)h[c]=n[c];for(const c in l){const g=n[c],v=l[c];if(H0(g)&&H0(v)){h[c]=Nn(g,v,r);continue}if(Array.isArray(g)&&Array.isArray(v)&&r){h[c]=r(g,v);continue}h[c]=v}return h}function Ap(n){return n.map(l=>l.type===Kt?Ap(l.children):l).flat()}function vr(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(vr.cache.has(n))return vr.cache.get(n);const l=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return vr.cache.set(n,l),l}vr.cache=new Map;function qo(n,l){if(!l||typeof l!="object")return[];if(Array.isArray(l))return l.map(r=>qo(n,r)).flat(1);if(Array.isArray(l.children))return l.children.map(r=>qo(n,r)).flat(1);if(l.component){if(Object.getOwnPropertySymbols(l.component.provides).includes(n))return[l.component];if(l.component.subTree)return qo(n,l.component.subTree).flat(1)}return[]}var Us=new WeakMap,Fr=new WeakMap;class jk{constructor(l){ld(this,Us,{writable:!0,value:[]}),ld(this,Fr,{writable:!0,value:0}),this.size=l}push(l){sr(this,Us)[sr(this,Fr)]=l,$k(this,Fr,(sr(this,Fr)+1)%this.size)}values(){return sr(this,Us).slice(sr(this,Fr)).concat(sr(this,Us).slice(0,sr(this,Fr)))}}function Pk(n){return"touches"in n?{clientX:n.touches[0].clientX,clientY:n.touches[0].clientY}:{clientX:n.clientX,clientY:n.clientY}}function e2(n){const l=Ze({}),r=q(n);return bn(()=>{for(const h in r.value)l[h]=r.value[h]},{flush:"sync"}),vs(l)}function ma(n,l){return n.includes(l)}function Bp(n){return n[2].toLowerCase()+n.slice(3)}const ol=()=>[Function,Array];function id(n,l){return l="on"+Il(l),!!(n[l]||n[`${l}Once`]||n[`${l}Capture`]||n[`${l}OnceCapture`]||n[`${l}CaptureOnce`])}function n2(n){for(var l=arguments.length,r=new Array(l>1?l-1:0),h=1;h1&&arguments[1]!==void 0?arguments[1]:!0;const r=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(h=>`${h}${l?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...n.querySelectorAll(r)]}function Hp(n,l,r){let h,c=n.indexOf(document.activeElement);const g=l==="next"?1:-1;do c+=g,h=n[c];while((!h||h.offsetParent==null||!((r==null?void 0:r(h))??!0))&&c=0);return h}function ka(n,l){var h,c,g,v;const r=ss(n);if(!l)(n===document.activeElement||!n.contains(document.activeElement))&&((h=r[0])==null||h.focus());else if(l==="first")(c=r[0])==null||c.focus();else if(l==="last")(g=r.at(-1))==null||g.focus();else if(typeof l=="number")(v=r[l])==null||v.focus();else{const k=Hp(r,l);k?k.focus():ka(n,l==="next"?"first":"last")}}function Np(){}function ro(n,l){if(!(ze&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${l})`)))return null;try{return!!n&&n.matches(l)}catch{return null}}const jp=["top","bottom"],Lk=["start","end","left","right"];function P0(n,l){let[r,h]=n.split(" ");return h||(h=ma(jp,r)?"start":ma(Lk,r)?"top":"center"),{side:L0(r,l),align:L0(h,l)}}function L0(n,l){return n==="start"?l?"right":"left":n==="end"?l?"left":"right":n}function Vi(n){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[n.side],align:n.align}}function _i(n){return{side:n.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[n.align]}}function hd(n){return{side:n.align,align:n.side}}function dd(n){return ma(jp,n.side)?"y":"x"}class Kr{constructor(l){let{x:r,y:h,width:c,height:g}=l;this.x=r,this.y=h,this.width=c,this.height=g}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function cd(n,l){return{x:{before:Math.max(0,l.left-n.left),after:Math.max(0,n.right-l.right)},y:{before:Math.max(0,l.top-n.top),after:Math.max(0,n.bottom-l.bottom)}}}function l2(n){const l=n.getBoundingClientRect(),r=getComputedStyle(n),h=r.transform;if(h){let c,g,v,k,x;if(h.startsWith("matrix3d("))c=h.slice(9,-1).split(/, /),g=+c[0],v=+c[5],k=+c[12],x=+c[13];else if(h.startsWith("matrix("))c=h.slice(7,-1).split(/, /),g=+c[0],v=+c[3],k=+c[4],x=+c[5];else return new Kr(l);const I=r.transformOrigin,S=l.x-k-(1-g)*parseFloat(I),$=l.y-x-(1-v)*parseFloat(I.slice(I.indexOf(" ")+1)),B=g?l.width/g:n.offsetWidth+1,P=v?l.height/v:n.offsetHeight+1;return new Kr({x:S,y:$,width:B,height:P})}else return new Kr(l)}function ur(n,l,r){if(typeof n.animate>"u")return{finished:Promise.resolve()};let h;try{h=n.animate(l,r)}catch{return{finished:Promise.resolve()}}return typeof h.finished>"u"&&(h.finished=new Promise(c=>{h.onfinish=()=>{c(h)}})),h}const aa=new WeakMap;function Dk(n,l){Object.keys(l).forEach(r=>{if(t2(r)){const h=Bp(r),c=aa.get(n);if(l[r]==null)c==null||c.forEach(g=>{const[v,k]=g;v===h&&(n.removeEventListener(h,k),c.delete(g))});else if(!c||![...c].some(g=>g[0]===h&&g[1]===l[r])){n.addEventListener(h,l[r]);const g=c||new Set;g.add([h,l[r]]),aa.has(n)||aa.set(n,g)}}else l[r]==null?n.removeAttribute(r):n.setAttribute(r,l[r])})}function Ok(n,l){Object.keys(l).forEach(r=>{if(t2(r)){const h=Bp(r),c=aa.get(n);c==null||c.forEach(g=>{const[v,k]=g;v===h&&(n.removeEventListener(h,k),c.delete(g))})}else n.removeAttribute(r)})}const Rr=2.4,ud=.2126729,pd=.7151522,gd=.072175,Fk=.55,Rk=.58,Tk=.57,Ek=.62,Gs=.03,wd=1.45,Vk=5e-4,_k=1.25,Wk=1.25,vd=.078,fd=12.82051282051282,Zs=.06,md=.001;function kd(n,l){const r=(n.r/255)**Rr,h=(n.g/255)**Rr,c=(n.b/255)**Rr,g=(l.r/255)**Rr,v=(l.g/255)**Rr,k=(l.b/255)**Rr;let x=r*ud+h*pd+c*gd,I=g*ud+v*pd+k*gd;if(x<=Gs&&(x+=(Gs-x)**wd),I<=Gs&&(I+=(Gs-I)**wd),Math.abs(I-x)x){const $=(I**Fk-x**Rk)*_k;S=$-md?0:$>-vd?$-$*fd*Zs:$+Zs}return S*100}function Xk(n,l){l=Array.isArray(l)?l.slice(0,-1).map(r=>`'${r}'`).join(", ")+` or '${l.at(-1)}'`:`'${l}'`}const ba=.20689655172413793,qk=n=>n>ba**3?Math.cbrt(n):n/(3*ba**2)+4/29,Yk=n=>n>ba?n**3:3*ba**2*(n-4/29);function Pp(n){const l=qk,r=l(n[1]);return[116*r-16,500*(l(n[0]/.95047)-r),200*(r-l(n[2]/1.08883))]}function Lp(n){const l=Yk,r=(n[0]+16)/116;return[l(r+n[1]/500)*.95047,l(r),l(r-n[2]/200)*1.08883]}const Uk=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],Gk=n=>n<=.0031308?n*12.92:1.055*n**(1/2.4)-.055,Zk=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],Kk=n=>n<=.04045?n/12.92:((n+.055)/1.055)**2.4;function Dp(n){const l=Array(3),r=Gk,h=Uk;for(let c=0;c<3;++c)l[c]=Math.round(rn(r(h[c][0]*n[0]+h[c][1]*n[1]+h[c][2]*n[2]))*255);return{r:l[0],g:l[1],b:l[2]}}function r2(n){let{r:l,g:r,b:h}=n;const c=[0,0,0],g=Kk,v=Zk;l=g(l/255),r=g(r/255),h=g(h/255);for(let k=0;k<3;++k)c[k]=v[k][0]*l+v[k][1]*r+v[k][2]*h;return c}function bd(n){return!!n&&/^(#|var\(--|(rgb|hsl)a?\()/.test(n)}const Md=/^(?(?:rgb|hsl)a?)\((?.+)\)/,Qk={rgb:(n,l,r,h)=>({r:n,g:l,b:r,a:h}),rgba:(n,l,r,h)=>({r:n,g:l,b:r,a:h}),hsl:(n,l,r,h)=>xd({h:n,s:l,l:r,a:h}),hsla:(n,l,r,h)=>xd({h:n,s:l,l:r,a:h}),hsv:(n,l,r,h)=>bl({h:n,s:l,v:r,a:h}),hsva:(n,l,r,h)=>bl({h:n,s:l,v:r,a:h})};function Yn(n){if(typeof n=="number")return{r:(n&16711680)>>16,g:(n&65280)>>8,b:n&255};if(typeof n=="string"&&Md.test(n)){const{groups:l}=n.match(Md),{fn:r,values:h}=l,c=h.split(/,\s*/).map(g=>g.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(r)?parseFloat(g)/100:parseFloat(g));return Qk[r](...c)}else if(typeof n=="string"){let l=n.startsWith("#")?n.slice(1):n;return[3,4].includes(l.length)?l=l.split("").map(r=>r+r).join(""):[6,8].includes(l.length),Ep(l)}else if(typeof n=="object"){if(cr(n,["r","g","b"]))return n;if(cr(n,["h","s","l"]))return bl(o2(n));if(cr(n,["h","s","v"]))return bl(n)}throw new TypeError(`Invalid color: ${n==null?n:String(n)||n.constructor.name} Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function bl(n){const{h:l,s:r,v:h,a:c}=n,g=k=>{const x=(k+l/60)%6;return h-h*r*Math.max(Math.min(x,4-x,1),0)},v=[g(5),g(3),g(1)].map(k=>Math.round(k*255));return{r:v[0],g:v[1],b:v[2],a:c}}function xd(n){return bl(o2(n))}function ei(n){if(!n)return{h:0,s:1,v:1,a:1};const l=n.r/255,r=n.g/255,h=n.b/255,c=Math.max(l,r,h),g=Math.min(l,r,h);let v=0;c!==g&&(c===l?v=60*(0+(r-h)/(c-g)):c===r?v=60*(2+(h-l)/(c-g)):c===h&&(v=60*(4+(l-r)/(c-g)))),v<0&&(v=v+360);const k=c===0?0:(c-g)/c,x=[v,k,c];return{h:x[0],s:x[1],v:x[2],a:n.a}}function Op(n){const{h:l,s:r,v:h,a:c}=n,g=h-h*r/2,v=g===1||g===0?0:(h-g)/Math.min(g,1-g);return{h:l,s:v,l:g,a:c}}function o2(n){const{h:l,s:r,l:h,a:c}=n,g=h+r*Math.min(h,1-h),v=g===0?0:2-2*h/g;return{h:l,s:v,v:g,a:c}}function Fp(n){let{r:l,g:r,b:h,a:c}=n;return c===void 0?`rgb(${l}, ${r}, ${h})`:`rgba(${l}, ${r}, ${h}, ${c})`}function Rp(n){return Fp(bl(n))}function Ks(n){const l=Math.round(n).toString(16);return("00".substr(0,2-l.length)+l).toUpperCase()}function Tp(n){let{r:l,g:r,b:h,a:c}=n;return`#${[Ks(l),Ks(r),Ks(h),c!==void 0?Ks(Math.round(c*255)):""].join("")}`}function Ep(n){n=t6(n);let[l,r,h,c]=Nk(n,2).map(g=>parseInt(g,16));return c=c===void 0?c:c/255,{r:l,g:r,b:h,a:c}}function Jk(n){const l=Ep(n);return ei(l)}function Vp(n){return Tp(bl(n))}function t6(n){return n.startsWith("#")&&(n=n.slice(1)),n=n.replace(/([^0-9a-f])/gi,"F"),(n.length===3||n.length===4)&&(n=n.split("").map(l=>l+l).join("")),n.length!==6&&(n=sd(sd(n,6),8,"F")),n}function e6(n,l){const r=Pp(r2(n));return r[0]=r[0]+l*10,Dp(Lp(r))}function n6(n,l){const r=Pp(r2(n));return r[0]=r[0]-l*10,Dp(Lp(r))}function D0(n){const l=Yn(n);return r2(l)[1]}function l6(n,l){const r=D0(n),h=D0(l),c=Math.max(r,h),g=Math.min(r,h);return(c+.05)/(g+.05)}function _p(n){const l=Math.abs(kd(Yn(0),Yn(n)));return Math.abs(kd(Yn(16777215),Yn(n)))>Math.min(l,50)?"#fff":"#000"}function mt(n,l){return r=>Object.keys(n).reduce((h,c)=>{const v=typeof n[c]=="object"&&n[c]!=null&&!Array.isArray(n[c])?n[c]:{type:n[c]};return r&&c in r?h[c]={...v,default:r[c]}:h[c]=v,l&&!h[c].source&&(h[c].source=l),h},{})}const Xt=mt({class:[String,Array],style:{type:[String,Array,Object],default:null}},"component");function Fn(n){if(n._setup=n._setup??n.setup,!n.name)return n;if(n._setup){n.props=mt(n.props??{},n.name)();const l=Object.keys(n.props);n.filterProps=function(h){return Mr(h,l,["class","style"])},n.props._as=String,n.setup=function(h,c){const g=i2();if(!g.value)return n._setup(h,c);const{props:v,provideSubDefaults:k}=c6(h,h._as??n.name,g),x=n._setup(v,c);return k(),x}}return n}function Bt(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return l=>(n?Fn:Cr)(l)}function Qn(n){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",r=arguments.length>2?arguments[2]:void 0;return Bt()({name:r??Il(Sn(n.replace(/__/g,"-"))),props:{tag:{type:String,default:l},...Xt()},setup(h,c){let{slots:g}=c;return()=>{var v;return Ln(h.tag,{class:[n,h.class],style:h.style},(v=g.default)==null?void 0:v.call(g))}}})}function Wp(n){if(typeof n.getRootNode!="function"){for(;n.parentNode;)n=n.parentNode;return n!==document?null:document}const l=n.getRootNode();return l!==document&&l.getRootNode({composed:!0})!==document?null:l}const as="cubic-bezier(0.4, 0, 0.2, 1)",r6="cubic-bezier(0.0, 0, 0.2, 1)",o6="cubic-bezier(0.4, 0, 1, 1)";function Ye(n,l){const r=al();if(!r)throw new Error(`[Vuetify] ${n} ${l||"must be called from inside a setup function"}`);return r}function Cl(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const l=Ye(n).type;return vr((l==null?void 0:l.aliasName)||(l==null?void 0:l.name))}let Xp=0,ia=new WeakMap;function hn(){const n=Ye("getUid");if(ia.has(n))return ia.get(n);{const l=Xp++;return ia.set(n,l),l}}hn.reset=()=>{Xp=0,ia=new WeakMap};function s2(n){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;n;){if(l?s6(n):a2(n))return n;n=n.parentElement}return document.scrollingElement}function Ma(n,l){const r=[];if(l&&n&&!l.contains(n))return r;for(;n&&(a2(n)&&r.push(n),n!==l);)n=n.parentElement;return r}function a2(n){if(!n||n.nodeType!==Node.ELEMENT_NODE)return!1;const l=window.getComputedStyle(n);return l.overflowY==="scroll"||l.overflowY==="auto"&&n.scrollHeight>n.clientHeight}function s6(n){if(!n||n.nodeType!==Node.ELEMENT_NODE)return!1;const l=window.getComputedStyle(n);return["scroll","auto"].includes(l.overflowY)}function a6(n){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ye("injectSelf");const{provides:r}=l;if(r&&n in r)return r[n]}function i6(n){for(;n;){if(window.getComputedStyle(n).position==="fixed")return!0;n=n.offsetParent}return!1}function Dt(n){const l=Ye("useRender");l.render=n}const oo=Symbol.for("vuetify:defaults");function h6(n){return Lt(n)}function i2(){const n=de(oo);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function Te(n,l){const r=i2(),h=Lt(n),c=q(()=>{if(je(l==null?void 0:l.disabled))return r.value;const v=je(l==null?void 0:l.scoped),k=je(l==null?void 0:l.reset),x=je(l==null?void 0:l.root);if(h.value==null&&!(v||k||x))return r.value;let I=Nn(h.value,{prev:r.value});if(v)return I;if(k||x){const S=Number(k||1/0);for(let $=0;$<=S&&!(!I||!("prev"in I));$++)I=I.prev;return I&&typeof x=="string"&&x in I&&(I=Nn(Nn(I,{prev:I}),I[x])),I}return I.prev?Nn(I.prev,I):I});return Se(oo,c),c}function d6(n,l){var r,h;return typeof((r=n.props)==null?void 0:r[l])<"u"||typeof((h=n.props)==null?void 0:h[vr(l)])<"u"}function c6(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:i2();const h=Ye("useDefaults");if(l=l??h.type.name??h.type.__name,!l)throw new Error("[Vuetify] Could not determine component name");const c=q(()=>{var x;return(x=r.value)==null?void 0:x[n._as??l]}),g=new Proxy(n,{get(x,I){var $,B,P,D;const S=Reflect.get(x,I);return I==="class"||I==="style"?[($=c.value)==null?void 0:$[I],S].filter(F=>F!=null):typeof I=="string"&&!d6(h.vnode,I)?((B=c.value)==null?void 0:B[I])??((D=(P=r.value)==null?void 0:P.global)==null?void 0:D[I])??S:S}}),v=Wt();bn(()=>{if(c.value){const x=Object.entries(c.value).filter(I=>{let[S]=I;return S.startsWith(S[0].toUpperCase())});v.value=x.length?Object.fromEntries(x):void 0}else v.value=void 0});function k(){const x=a6(oo,h);Se(oo,q(()=>v.value?Nn((x==null?void 0:x.value)??{},v.value):x==null?void 0:x.value))}return{props:g,provideSubDefaults:k}}const ni=["sm","md","lg","xl","xxl"],O0=Symbol.for("vuetify:display"),zd={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},u6=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zd;return Nn(zd,n)};function Id(n){return ze&&!n?window.innerWidth:typeof n=="object"&&n.clientWidth||0}function yd(n){return ze&&!n?window.innerHeight:typeof n=="object"&&n.clientHeight||0}function Cd(n){const l=ze&&!n?window.navigator.userAgent:"ssr";function r(D){return!!l.match(D)}const h=r(/android/i),c=r(/iphone|ipad|ipod/i),g=r(/cordova/i),v=r(/electron/i),k=r(/chrome/i),x=r(/edge/i),I=r(/firefox/i),S=r(/opera/i),$=r(/win/i),B=r(/mac/i),P=r(/linux/i);return{android:h,ios:c,cordova:g,electron:v,chrome:k,edge:x,firefox:I,opera:S,win:$,mac:B,linux:P,touch:Ck,ssr:l==="ssr"}}function p6(n,l){const{thresholds:r,mobileBreakpoint:h}=u6(n),c=Wt(yd(l)),g=Wt(Cd(l)),v=Ze({}),k=Wt(Id(l));function x(){c.value=yd(),k.value=Id()}function I(){x(),g.value=Cd()}return bn(()=>{const S=k.value=r.xxl,X=S?"xs":$?"sm":B?"md":P?"lg":D?"xl":"xxl",R=typeof h=="number"?h:r[h],H=k.valueLn(d2,{...n,class:"mdi"})},ee=[String,Function,Object,Array],F0=Symbol.for("vuetify:icons"),li=mt({icon:{type:ee},tag:{type:String,required:!0}},"icon"),R0=Bt()({name:"VComponentIcon",props:li(),setup(n,l){let{slots:r}=l;return()=>{const h=n.icon;return t(n.tag,null,{default:()=>{var c;return[n.icon?t(h,null,null):(c=r.default)==null?void 0:c.call(r)]}})}}}),h2=Fn({name:"VSvgIcon",inheritAttrs:!1,props:li(),setup(n,l){let{attrs:r}=l;return()=>t(n.tag,o(r,{style:null}),{default:()=>[t("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(n.icon)?n.icon.map(h=>Array.isArray(h)?t("path",{d:h[0],"fill-opacity":h[1]},null):t("path",{d:h},null)):t("path",{d:n.icon},null)])]})}}),v6=Fn({name:"VLigatureIcon",props:li(),setup(n){return()=>t(n.tag,null,{default:()=>[n.icon]})}}),d2=Fn({name:"VClassIcon",props:li(),setup(n){return()=>t(n.tag,{class:n.icon},null)}}),f6={svg:{component:h2},class:{component:d2}};function m6(n){return Nn({defaultSet:"mdi",sets:{...f6,mdi:w6},aliases:{...g6,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z"}},n)}const k6=n=>{const l=de(F0);if(!l)throw new Error("Missing Vuetify Icons provide!");return{iconData:q(()=>{var x;const h=je(n);if(!h)return{component:R0};let c=h;if(typeof c=="string"&&(c=c.trim(),c.startsWith("$")&&(c=(x=l.aliases)==null?void 0:x[c.slice(1)])),!c)throw new Error(`Could not find aliased icon "${h}"`);if(Array.isArray(c))return{component:h2,icon:c};if(typeof c!="string")return{component:R0,icon:c};const g=Object.keys(l.sets).find(I=>typeof c=="string"&&c.startsWith(`${I}:`)),v=g?c.slice(g.length+1):c;return{component:l.sets[g??l.defaultSet].component,icon:v}})}},b6={badge:"Badge",open:"Open",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{ok:"OK",cancel:"Cancel",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},M6={af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1};function Zl(n,l){let r;function h(){r=io(),r.run(()=>l.length?l(()=>{r==null||r.stop(),h()}):l())}_t(n,c=>{c&&!r?h():c||(r==null||r.stop(),r=void 0)},{immediate:!0}),sn(()=>{r==null||r.stop()})}function ne(n,l,r){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:$=>$,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:$=>$;const g=Ye("useProxiedModel"),v=Lt(n[l]!==void 0?n[l]:r),k=vr(l),I=q(k!==l?()=>{var $,B,P,D;return n[l],!!((($=g.vnode.props)!=null&&$.hasOwnProperty(l)||(B=g.vnode.props)!=null&&B.hasOwnProperty(k))&&((P=g.vnode.props)!=null&&P.hasOwnProperty(`onUpdate:${l}`)||(D=g.vnode.props)!=null&&D.hasOwnProperty(`onUpdate:${k}`)))}:()=>{var $,B;return n[l],!!(($=g.vnode.props)!=null&&$.hasOwnProperty(l)&&((B=g.vnode.props)!=null&&B.hasOwnProperty(`onUpdate:${l}`)))});Zl(()=>!I.value,()=>{_t(()=>n[l],$=>{v.value=$})});const S=q({get(){const $=n[l];return h(I.value?$:v.value)},set($){const B=c($),P=le(I.value?n[l]:v.value);P===B||h(P)===$||(v.value=B,g==null||g.emit(`update:${l}`,B))}});return Object.defineProperty(S,"externalValue",{get:()=>I.value?n[l]:v.value}),S}const Sd="$vuetify.",$d=(n,l)=>n.replace(/\{(\d+)\}/g,(r,h)=>String(l[+h])),qp=(n,l,r)=>function(h){for(var c=arguments.length,g=new Array(c>1?c-1:0),v=1;vnew Intl.NumberFormat([n.value,l.value],h).format(r)}function Wi(n,l,r){const h=ne(n,l,n[l]??r.value);return h.value=n[l]??r.value,_t(r,c=>{n[l]==null&&(h.value=r.value)}),h}function Up(n){return l=>{const r=Wi(l,"locale",n.current),h=Wi(l,"fallback",n.fallback),c=Wi(l,"messages",n.messages);return{name:"vuetify",current:r,fallback:h,messages:c,t:qp(r,h,c),n:Yp(r,h),provide:Up({current:r,fallback:h,messages:c})}}}function x6(n){const l=Wt((n==null?void 0:n.locale)??"en"),r=Wt((n==null?void 0:n.fallback)??"en"),h=Lt({en:b6,...n==null?void 0:n.messages});return{name:"vuetify",current:l,fallback:r,messages:h,t:qp(l,r,h),n:Yp(l,r),provide:Up({current:l,fallback:r,messages:h})}}const so=Symbol.for("vuetify:locale");function z6(n){return n.name!=null}function I6(n){const l=n!=null&&n.adapter&&z6(n==null?void 0:n.adapter)?n==null?void 0:n.adapter:x6(n),r=C6(l,n);return{...l,...r}}function Rn(){const n=de(so);if(!n)throw new Error("[Vuetify] Could not find injected locale instance");return n}function y6(n){const l=de(so);if(!l)throw new Error("[Vuetify] Could not find injected locale instance");const r=l.provide(n),h=S6(r,l.rtl,n),c={...r,...h};return Se(so,c),c}function C6(n,l){const r=Lt((l==null?void 0:l.rtl)??M6),h=q(()=>r.value[n.current.value]??!1);return{isRtl:h,rtl:r,rtlClasses:q(()=>`v-locale--is-${h.value?"rtl":"ltr"}`)}}function S6(n,l,r){const h=q(()=>r.rtl??l.value[n.current.value]??!1);return{isRtl:h,rtl:l,rtlClasses:q(()=>`v-locale--is-${h.value?"rtl":"ltr"}`)}}function Ue(){const n=de(so);if(!n)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:n.isRtl,rtlClasses:n.rtlClasses}}const is=Symbol.for("vuetify:theme"),ue=mt({theme:String},"theme"),Bo={defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#6200EE","primary-darken-1":"#3700B3",secondary:"#03DAC6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-variant":"#BDBDBD","on-surface-variant":"#424242",primary:"#BB86FC","primary-darken-1":"#3700B3",secondary:"#03DAC5","secondary-darken-1":"#03DAC5",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}};function $6(){var r,h;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bo;if(!n)return{...Bo,isDisabled:!0};const l={};for(const[c,g]of Object.entries(n.themes??{})){const v=g.dark||c==="dark"?(r=Bo.themes)==null?void 0:r.dark:(h=Bo.themes)==null?void 0:h.light;l[c]=Nn(v,g)}return Nn(Bo,{...n,themes:l})}function A6(n){const l=$6(n),r=Lt(l.defaultTheme),h=Lt(l.themes),c=q(()=>{const S={};for(const[$,B]of Object.entries(h.value)){const P=S[$]={...B,colors:{...B.colors}};if(l.variations)for(const D of l.variations.colors){const F=P.colors[D];if(F)for(const X of["lighten","darken"]){const R=X==="lighten"?e6:n6;for(const H of gl(l.variations[X],1))P.colors[`${D}-${X}-${H}`]=Tp(R(Yn(F),H))}}for(const D of Object.keys(P.colors)){if(/^on-[a-z]/.test(D)||P.colors[`on-${D}`])continue;const F=`on-${D}`,X=Yn(P.colors[D]);P.colors[F]=_p(X)}}return S}),g=q(()=>c.value[r.value]),v=q(()=>{const S=[];g.value.dark&&ar(S,":root",["color-scheme: dark"]),ar(S,":root",Ad(g.value));for(const[D,F]of Object.entries(c.value))ar(S,`.v-theme--${D}`,[`color-scheme: ${F.dark?"dark":"normal"}`,...Ad(F)]);const $=[],B=[],P=new Set(Object.values(c.value).flatMap(D=>Object.keys(D.colors)));for(const D of P)/^on-[a-z]/.test(D)?ar(B,`.${D}`,[`color: rgb(var(--v-theme-${D})) !important`]):(ar($,`.bg-${D}`,[`--v-theme-overlay-multiplier: var(--v-theme-${D}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${D})) !important`,`color: rgb(var(--v-theme-on-${D})) !important`]),ar(B,`.text-${D}`,[`color: rgb(var(--v-theme-${D})) !important`]),ar(B,`.border-${D}`,[`--v-border-color: var(--v-theme-${D})`]));return S.push(...$,...B),S.map((D,F)=>F===0?D:` ${D}`).join("")});function k(){return{style:[{children:v.value,id:"vuetify-theme-stylesheet",nonce:l.cspNonce||!1}]}}function x(S){if(l.isDisabled)return;const $=S._context.provides.usehead;if($)if($.push){const B=$.push(k);ze&&_t(v,()=>{B.patch(k)})}else ze?($.addHeadObjs(q(k)),bn(()=>$.updateDOM())):$.addHeadObjs(k());else{let P=function(){if(typeof document<"u"&&!B){const D=document.createElement("style");D.type="text/css",D.id="vuetify-theme-stylesheet",l.cspNonce&&D.setAttribute("nonce",l.cspNonce),B=D,document.head.appendChild(B)}B&&(B.innerHTML=v.value)},B=ze?document.getElementById("vuetify-theme-stylesheet"):null;ze?_t(v,P,{immediate:!0}):P()}}const I=q(()=>l.isDisabled?void 0:`v-theme--${r.value}`);return{install:x,isDisabled:l.isDisabled,name:r,themes:h,current:g,computedThemes:c,themeClasses:I,styles:v,global:{name:r,current:g}}}function ve(n){Ye("provideTheme");const l=de(is,null);if(!l)throw new Error("Could not find Vuetify theme injection");const r=q(()=>n.theme??(l==null?void 0:l.name.value)),h=q(()=>l.isDisabled?void 0:`v-theme--${r.value}`),c={...l,name:r,themeClasses:h};return Se(is,c),c}function Gp(){Ye("useTheme");const n=de(is,null);if(!n)throw new Error("Could not find Vuetify theme injection");return n}function ar(n,l,r){n.push(`${l} { `,...r.map(h=>` ${h}; `),`} diff --git a/addons/dashboard/dist/assets/md5-0015f538.js b/addons/dashboard/dist/assets/md5-6a8a08e9.js similarity index 99% rename from addons/dashboard/dist/assets/md5-0015f538.js rename to addons/dashboard/dist/assets/md5-6a8a08e9.js index efe470f..0a839b7 100644 --- a/addons/dashboard/dist/assets/md5-0015f538.js +++ b/addons/dashboard/dist/assets/md5-6a8a08e9.js @@ -1,4 +1,4 @@ -import{ap as K,aq as Y,ar as V}from"./index-f71951bf.js";var C={exports:{}};const $={},k=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"})),z=K(k);/** +import{ap as K,aq as Y,ar as V}from"./index-70ea897e.js";var C={exports:{}};const $={},k=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"})),z=K(k);/** * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 diff --git a/addons/dashboard/dist/index.html b/addons/dashboard/dist/index.html index 9ef406f..8999528 100644 --- a/addons/dashboard/dist/index.html +++ b/addons/dashboard/dist/index.html @@ -11,7 +11,7 @@ href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap" /> AstrBot - 仪表盘 - +