1
0
forked from bot/app
LiteyukiBot/assets/chunks/theme.Cms3Mxdp.js

7 lines
56 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.BmvB34tM.js","assets/chunks/framework.BcfwU5BI.js"])))=>i.map(i=>d[i]);
import{d as _,o as a,c,r as l,n as N,a as F,t as w,b as k,w as p,e as h,T as me,_ as b,u as ke,i as tt,f as st,g as be,h as y,j as d,k as r,p as C,l as H,m as K,q as ve,s as V,v as U,x as oe,y as q,z as X,A as $e,B as nt,C as ot,D as W,F as M,E,G as He,H as ae,I as m,J as D,K as Ee,L as re,M as R,N as Q,O as at,P as ge,Q as pe,R as rt,S as De,U as ie,V as it,W as lt,X as ct,Y as Oe,Z as Fe,$ as ut,a0 as dt,a1 as vt,a2 as pt,a3 as ft,a4 as ht,a5 as _t}from"./framework.BcfwU5BI.js";const mt=_({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(s){return(e,t)=>(a(),c("span",{class:N(["VPBadge",e.type])},[l(e.$slots,"default",{},()=>[F(w(e.text),1)])],2))}}),kt={key:0,class:"VPBackdrop"},bt=_({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(s){return(e,t)=>(a(),k(me,{name:"fade"},{default:p(()=>[e.show?(a(),c("div",kt)):h("",!0)]),_:1}))}}),$t=b(bt,[["__scopeId","data-v-2cfdfdcf"]]),P=ke;function gt(s,e){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(s,e):(s(),(n=!0)&&setTimeout(()=>n=!1,e))}}function fe(s){return/^\//.test(s)?s:`/${s}`}function ye(s){const{pathname:e,search:t,hash:n,protocol:o}=new URL(s,"http://a.com");if(tt(s)||s.startsWith("#")||!o.startsWith("http")||!st(e))return s;const{site:i}=P(),u=e.endsWith("/")||e.endsWith(".html")?s:s.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,i.value.cleanUrls?"":".html")}${t}${n}`);return be(u)}function Z({correspondingLink:s=!1}={}){const{site:e,localeIndex:t,page:n,theme:o,hash:i}=P(),u=y(()=>{var f,g;return{label:(f=e.value.locales[t.value])==null?void 0:f.label,link:((g=e.value.locales[t.value])==null?void 0:g.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:y(()=>Object.entries(e.value.locales).flatMap(([f,g])=>u.value.label===g.label?[]:{text:g.label,link:yt(g.link||(f==="root"?"/":`/${f}/`),o.value.i18nRouting!==!1&&s,n.value.relativePath.slice(u.value.link.length-1),!e.value.cleanUrls)+i.value})),currentLang:u}}function yt(s,e,t,n){return e?s.replace(/\/$/,"")+fe(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):s}const Pt=s=>(C("data-v-868b40d9"),s=s(),H(),s),Lt={class:"NotFound"},Vt={class:"code"},St={class:"title"},wt=Pt(()=>d("div",{class:"divider"},null,-1)),It={class:"quote"},Tt={class:"action"},Nt=["href","aria-label"],Mt=_({__name:"NotFound",setup(s){const{theme:e}=P(),{currentLang:t}=Z();return(n,o)=>{var i,u,v,f,g;return a(),c("div",Lt,[d("p",Vt,w(((i=r(e).notFound)==null?void 0:i.code)??"404"),1),d("h1",St,w(((u=r(e).notFound)==null?void 0:u.title)??"PAGE NOT FOUND"),1),wt,d("blockquote",It,w(((v=r(e).notFound)==null?void 0:v.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),d("div",Tt,[d("a",{class:"link",href:r(be)(r(t).link),"aria-label":((f=r(e).notFound)==null?void 0:f.linkLabel)??"go to home"},w(((g=r(e).notFound)==null?void 0:g.linkText)??"Take me home"),9,Nt)])])}}}),At=b(Mt,[["__scopeId","data-v-868b40d9"]]);function Ue(s,e){if(Array.isArray(s))return te(s);if(s==null)return[];e=fe(e);const t=Object.keys(s).sort((o,i)=>i.split("/").length-o.split("/").length).find(o=>e.startsWith(fe(o))),n=t?s[t]:[];return Array.isArray(n)?te(n):te(n.items,n.base)}function Bt(s){const e=[];let t=0;for(const n in s){const o=s[n];if(o.items){t=e.push(o);continue}e[t]||e.push({items:[]}),e[t].items.push(o)}return e}function Ct(s){const e=[];function t(n){for(const o of n)o.text&&o.link&&e.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&t(o.items)}return t(s),e}function he(s,e){return Array.isArray(e)?e.some(t=>he(s,t)):K(s,e.link)?!0:e.items?he(s,e.items):!1}function te(s,e){return[...s].map(t=>{const n={...t},o=n.base||e;return o&&n.link&&(n.link=o+n.link),n.items&&(n.items=te(n.items,o)),n})}function j(){const{frontmatter:s,page:e,theme:t}=P(),n=ve("(min-width: 960px)"),o=V(!1),i=y(()=>{const B=t.value.sidebar,I=e.value.relativePath;return B?Ue(B,I):[]}),u=V(i.value);U(i,(B,I)=>{JSON.stringify(B)!==JSON.stringify(I)&&(u.value=i.value)});const v=y(()=>s.value.sidebar!==!1&&u.value.length>0&&s.value.layout!=="home"),f=y(()=>g?s.value.aside==null?t.value.aside==="left":s.value.aside==="left":!1),g=y(()=>s.value.layout==="home"?!1:s.value.aside!=null?!!s.value.aside:t.value.aside!==!1),S=y(()=>v.value&&n.value),$=y(()=>v.value?Bt(u.value):[]);function L(){o.value=!0}function T(){o.value=!1}function A(){o.value?T():L()}return{isOpen:o,sidebar:u,sidebarGroups:$,hasSidebar:v,hasAside:g,leftAside:f,isSidebarEnabled:S,open:L,close:T,toggle:A}}function Ht(s,e){let t;oe(()=>{t=s.value?document.activeElement:void 0}),q(()=>{window.addEventListener("keyup",n)}),X(()=>{window.removeEventListener("keyup",n)});function n(o){o.key==="Escape"&&s.value&&(e(),t==null||t.focus())}}function Et(s){const{page:e,hash:t}=P(),n=V(!1),o=y(()=>s.value.collapsed!=null),i=y(()=>!!s.value.link),u=V(!1),v=()=>{u.value=K(e.value.relativePath,s.value.link)};U([e,s,t],v),q(v);const f=y(()=>u.value?!0:s.value.items?he(e.value.relativePath,s.value.items):!1),g=y(()=>!!(s.value.items&&s.value.items.length));oe(()=>{n.value=!!(o.value&&s.value.collapsed)}),$e(()=>{(u.value||f.value)&&(n.value=!1)});function S(){o.value&&(n.value=!n.value)}return{collapsed:n,collapsible:o,isLink:i,isActiveLink:u,hasActiveLink:f,hasChildren:g,toggle:S}}function Dt(){const{hasSidebar:s}=j(),e=ve("(min-width: 960px)"),t=ve("(min-width: 1280px)");return{isAsideEnabled:y(()=>!t.value&&!e.value?!1:s.value?t.value:e.value)}}const _e=[];function je(s){return typeof s.outline=="object"&&!Array.isArray(s.outline)&&s.outline.label||s.outlineTitle||"On this page"}function Pe(s){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const n=Number(t.tagName[1]);return{element:t,title:Ot(t),link:"#"+t.id,level:n}});return Ft(e,s)}function Ot(s){let e="";for(const t of s.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function Ft(s,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[n,o]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;s=s.filter(u=>u.level>=n&&u.level<=o),_e.length=0;for(const{element:u,link:v}of s)_e.push({element:u,link:v});const i=[];e:for(let u=0;u<s.length;u++){const v=s[u];if(u===0)i.push(v);else{for(let f=u-1;f>=0;f--){const g=s[f];if(g.level<v.level){(g.children||(g.children=[])).push(v);continue e}}i.push(v)}}return i}function Ut(s,e){const{isAsideEnabled:t}=Dt(),n=gt(i,100);let o=null;q(()=>{requestAnimationFrame(i),window.addEventListener("scroll",n)}),nt(()=>{u(location.hash)}),X(()=>{window.removeEventListener("scroll",n)});function i(){if(!t.value)return;const v=window.scrollY,f=window.innerHeight,g=document.body.offsetHeight,S=Math.abs(v+f-g)<1,$=_e.map(({element:T,link:A})=>({link:A,top:jt(T)})).filter(({top:T})=>!Number.isNaN(T)).sort((T,A)=>T.top-A.top);if(!$.length){u(null);return}if(v<1){u(null);return}if(S){u($[$.length-1].link);return}let L=null;for(const{link:T,top:A}of $){if(A>v+ot()+4)break;L=T}u(L)}function u(v){o&&o.classList.remove("active"),v==null?o=null:o=s.value.querySelector(`a[href="${decodeURIComponent(v)}"]`);const f=o;f?(f.classList.add("active"),e.value.style.top=f.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function jt(s){let e=0;for(;s!==document.body;){if(s===null)return NaN;e+=s.offsetTop,s=s.offsetParent}return e}const Gt=["href","title"],zt=_({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(s){function e({target:t}){const n=t.href.split("#")[1],o=document.getElementById(decodeURIComponent(n));o==null||o.focus({preventScroll:!0})}return(t,n)=>{const o=W("VPDocOutlineItem",!0);return a(),c("ul",{class:N(["VPDocOutlineItem",t.root?"root":"nested"])},[(a(!0),c(M,null,E(t.headers,({children:i,link:u,title:v})=>(a(),c("li",null,[d("a",{class:"outline-link",href:u,onClick:e,title:v},w(v),9,Gt),i!=null&&i.length?(a(),k(o,{key:0,headers:i},null,8,["headers"])):h("",!0)]))),256))],2)}}}),Ge=b(zt,[["__scopeId","data-v-75b86f7a"]]),Rt={class:"content"},qt={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},Kt=_({__name:"VPDocAsideOutline",setup(s){const{frontmatter:e,theme:t}=P(),n=He([]);ae(()=>{n.value=Pe(e.value.outline??t.value.outline)});const o=V(),i=V();return Ut(o,i),(u,v)=>(a(),c("nav",{"aria-labelledby":"doc-outline-aria-label",class:N(["VPDocAsideOutline",{"has-outline":n.value.length>0}]),ref_key:"container",ref:o},[d("div",Rt,[d("div",{class:"outline-marker",ref_key:"marker",ref:i},null,512),d("div",qt,w(r(je)(r(t))),1),m(Ge,{headers:n.value,root:!0},null,8,["headers"])])],2))}}),Wt=b(Kt,[["__scopeId","data-v-be1126ba"]]),Jt={class:"VPDocAsideCarbonAds"},Yt=_({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(s){const e=()=>null;return(t,n)=>(a(),c("div",Jt,[m(r(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),Xt=s=>(C("data-v-65ef6f81"),s=s(),H(),s),Qt={class:"VPDocAside"},Zt=Xt(()=>d("div",{class:"spacer"},null,-1)),xt=_({__name:"VPDocAside",setup(s){const{theme:e}=P();return(t,n)=>(a(),c("div",Qt,[l(t.$slots,"aside-top",{},void 0,!0),l(t.$slots,"aside-outline-before",{},void 0,!0),m(Wt),l(t.$slots,"aside-outline-after",{},void 0,!0),Zt,l(t.$slots,"aside-ads-before",{},void 0,!0),r(e).carbonAds?(a(),k(Yt,{key:0,"carbon-ads":r(e).carbonAds},null,8,["carbon-ads"])):h("",!0),l(t.$slots,"aside-ads-after",{},void 0,!0),l(t.$slots,"aside-bottom",{},void 0,!0)]))}}),es=b(xt,[["__scopeId","data-v-65ef6f81"]]);function ts(){const{theme:s,page:e}=P();return y(()=>{const{text:t="Edit this page",pattern:n=""}=s.value.editLink||{};let o;return typeof n=="function"?o=n(e.value):o=n.replace(/:path/g,e.value.filePath),{url:o,text:t}})}function ss(){const{page:s,theme:e,frontmatter:t}=P();return y(()=>{var g,S,$,L,T,A,B,I;const n=Ue(e.value.sidebar,s.value.relativePath),o=Ct(n),i=ns(o,G=>G.link.replace(/[?#].*$/,"")),u=i.findIndex(G=>K(s.value.relativePath,G.link)),v=((g=e.value.docFooter)==null?void 0:g.prev)===!1&&!t.value.prev||t.value.prev===!1,f=((S=e.value.docFooter)==null?void 0:S.next)===!1&&!t.value.next||t.value.next===!1;return{prev:v?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??(($=i[u-1])==null?void 0:$.docFooterText)??((L=i[u-1])==null?void 0:L.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((T=i[u-1])==null?void 0:T.link)},next:f?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((A=i[u+1])==null?void 0:A.docFooterText)??((B=i[u+1])==null?void 0:B.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((I=i[u+1])==null?void 0:I.link)}}})}function ns(s,e){const t=new Set;return s.filter(n=>{const o=e(n);return t.has(o)?!1:t.add(o)})}const O=_({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(s){const e=s,t=y(()=>e.tag??(e.href?"a":"span")),n=y(()=>e.href&&Ee.test(e.href)||e.target==="_blank");return(o,i)=>(a(),k(D(t.value),{class:N(["VPLink",{link:o.href,"vp-external-link-icon":n.value,"no-icon":o.noIcon}]),href:o.href?r(ye)(o.href):void 0,target:o.target??(n.value?"_blank":void 0),rel:o.rel??(n.value?"noreferrer":void 0)},{default:p(()=>[l(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),os={class:"VPLastUpdated"},as=["datetime"],rs=_({__name:"VPDocFooterLastUpdated",setup(s){const{theme:e,page:t,lang:n}=P(),o=y(()=>new Date(t.value.lastUpdated)),i=y(()=>o.value.toISOString()),u=V("");return q(()=>{oe(()=>{var v,f,g;u.value=new Intl.DateTimeFormat((f=(v=e.value.lastUpdated)==null?void 0:v.formatOptions)!=null&&f.forceLocale?n.value:void 0,((g=e.value.lastUpdated)==null?void 0:g.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(o.value)})}),(v,f)=>{var g;return a(),c("p",os,[F(w(((g=r(e).lastUpdated)==null?void 0:g.text)||r(e).lastUpdatedText||"Last updated")+": ",1),d("time",{datetime:i.value},w(u.value),9,as)])}}}),is=b(rs,[["__scopeId","data-v-243e2690"]]),ze=s=>(C("data-v-e27a0cf7"),s=s(),H(),s),ls={key:0,class:"VPDocFooter"},cs={key:0,class:"edit-info"},us={key:0,class:"edit-link"},ds=ze(()=>d("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),vs={key:1,class:"last-updated"},ps={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},fs=ze(()=>d("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),hs={class:"pager"},_s=["innerHTML"],ms=["innerHTML"],ks={class:"pager"},bs=["innerHTML"],$s=["innerHTML"],gs=_({__name:"VPDocFooter",setup(s){const{theme:e,page:t,frontmatter:n}=P(),o=ts(),i=ss(),u=y(()=>e.value.editLink&&n.value.editLink!==!1),v=y(()=>t.value.lastUpdated),f=y(()=>u.value||v.value||i.value.prev||i.value.next);return(g,S)=>{var $,L,T,A;return f.value?(a(),c("footer",ls,[l(g.$slots,"doc-footer-before",{},void 0,!0),u.value||v.value?(a(),c("div",cs,[u.value?(a(),c("div",us,[m(O,{class:"edit-link-button",href:r(o).url,"no-icon":!0},{default:p(()=>[ds,F(" "+w(r(o).text),1)]),_:1},8,["href"])])):h("",!0),v.value?(a(),c("div",vs,[m(is)])):h("",!0)])):h("",!0),($=r(i).prev)!=null&&$.link||(L=r(i).next)!=null&&L.link?(a(),c("nav",ps,[fs,d("div",hs,[(T=r(i).prev)!=null&&T.link?(a(),k(O,{key:0,class:"pager-link prev",href:r(i).prev.link},{default:p(()=>{var B;return[d("span",{class:"desc",innerHTML:((B=r(e).docFooter)==null?void 0:B.prev)||"Previous page"},null,8,_s),d("span",{class:"title",innerHTML:r(i).prev.text},null,8,ms)]}),_:1},8,["href"])):h("",!0)]),d("div",ks,[(A=r(i).next)!=null&&A.link?(a(),k(O,{key:0,class:"pager-link next",href:r(i).next.link},{default:p(()=>{var B;return[d("span",{class:"desc",innerHTML:((B=r(e).docFooter)==null?void 0:B.next)||"Next page"},null,8,bs),d("span",{class:"title",innerHTML:r(i).next.text},null,8,$s)]}),_:1},8,["href"])):h("",!0)])])):h("",!0)])):h("",!0)}}}),ys=b(gs,[["__scopeId","data-v-e27a0cf7"]]),Ps=s=>(C("data-v-4981c415"),s=s(),H(),s),Ls={class:"container"},Vs=Ps(()=>d("div",{class:"aside-curtain"},null,-1)),Ss={class:"aside-container"},ws={class:"aside-content"},Is={class:"content"},Ts={class:"content-container"},Ns={class:"main"},Ms=_({__name:"VPDoc",setup(s){const{theme:e}=P(),t=re(),{hasSidebar:n,hasAside:o,leftAside:i}=j(),u=y(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(v,f)=>{const g=W("Content");return a(),c("div",{class:N(["VPDoc",{"has-sidebar":r(n),"has-aside":r(o)}])},[l(v.$slots,"doc-top",{},void 0,!0),d("div",Ls,[r(o)?(a(),c("div",{key:0,class:N(["aside",{"left-aside":r(i)}])},[Vs,d("div",Ss,[d("div",ws,[m(es,null,{"aside-top":p(()=>[l(v.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":p(()=>[l(v.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":p(()=>[l(v.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":p(()=>[l(v.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":p(()=>[l(v.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":p(()=>[l(v.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):h("",!0),d("div",Is,[d("div",Ts,[l(v.$slots,"doc-before",{},void 0,!0),d("main",Ns,[m(g,{class:N(["vp-doc",[u.value,r(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),m(ys,null,{"doc-footer-before":p(()=>[l(v.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),l(v.$slots,"doc-after",{},void 0,!0)])])]),l(v.$slots,"doc-bottom",{},void 0,!0)],2)}}}),As=b(Ms,[["__scopeId","data-v-4981c415"]]),Bs=_({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(s){const e=s,t=y(()=>e.href&&Ee.test(e.href)),n=y(()=>e.tag||e.href?"a":"button");return(o,i)=>(a(),k(D(n.value),{class:N(["VPButton",[o.size,o.theme]]),href:o.href?r(ye)(o.href):void 0,target:e.target??(t.value?"_blank":void 0),rel:e.rel??(t.value?"noreferrer":void 0)},{default:p(()=>[F(w(o.text),1)]),_:1},8,["class","href","target","rel"]))}}),Cs=b(Bs,[["__scopeId","data-v-5208c6a8"]]),Hs=["src","alt"],Es=_({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(s){return(e,t)=>{const n=W("VPImage",!0);return e.image?(a(),c(M,{key:0},[typeof e.image=="string"||"src"in e.image?(a(),c("img",R({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:r(be)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Hs)):(a(),c(M,{key:1},[m(n,R({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),m(n,R({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):h("",!0)}}}),se=b(Es,[["__scopeId","data-v-6e911b93"]]),Ds=s=>(C("data-v-4963d475"),s=s(),H(),s),Os={class:"container"},Fs={class:"main"},Us={key:0,class:"name"},js=["innerHTML"],Gs=["innerHTML"],zs=["innerHTML"],Rs={key:0,class:"actions"},qs={key:0,class:"image"},Ks={class:"image-container"},Ws=Ds(()=>d("div",{class:"image-bg"},null,-1)),Js=_({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(s){const e=Q("hero-image-slot-exists");return(t,n)=>(a(),c("div",{class:N(["VPHero",{"has-image":t.image||r(e)}])},[d("div",Os,[d("div",Fs,[l(t.$slots,"home-hero-info-before",{},void 0,!0),l(t.$slots,"home-hero-info",{},()=>[t.name?(a(),c("h1",Us,[d("span",{innerHTML:t.name,class:"clip"},null,8,js)])):h("",!0),t.text?(a(),c("p",{key:1,innerHTML:t.text,class:"text"},null,8,Gs)):h("",!0),t.tagline?(a(),c("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,zs)):h("",!0)],!0),l(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(a(),c("div",Rs,[(a(!0),c(M,null,E(t.actions,o=>(a(),c("div",{key:o.link,class:"action"},[m(Cs,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link,target:o.target,rel:o.rel},null,8,["theme","text","href","target","rel"])]))),128))])):h("",!0),l(t.$slots,"home-hero-actions-after",{},void 0,!0)]),t.image||r(e)?(a(),c("div",qs,[d("div",Ks,[Ws,l(t.$slots,"home-hero-image",{},()=>[t.image?(a(),k(se,{key:0,class:"image-src",image:t.image},null,8,["image"])):h("",!0)],!0)])])):h("",!0)])],2))}}),Ys=b(Js,[["__scopeId","data-v-4963d475"]]),Xs=_({__name:"VPHomeHero",setup(s){const{frontmatter:e}=P();return(t,n)=>r(e).hero?(a(),k(Ys,{key:0,class:"VPHomeHero",name:r(e).hero.name,text:r(e).hero.text,tagline:r(e).hero.tagline,image:r(e).hero.image,actions:r(e).hero.actions},{"home-hero-info-before":p(()=>[l(t.$slots,"home-hero-info-before")]),"home-hero-info":p(()=>[l(t.$slots,"home-hero-info")]),"home-hero-info-after":p(()=>[l(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":p(()=>[l(t.$slots,"home-hero-actions-after")]),"home-hero-image":p(()=>[l(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):h("",!0)}}),Qs=s=>(C("data-v-c6ed09d2"),s=s(),H(),s),Zs={class:"box"},xs={key:0,class:"icon"},en=["innerHTML"],tn=["innerHTML"],sn=["innerHTML"],nn={key:4,class:"link-text"},on={class:"link-text-value"},an=Qs(()=>d("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),rn=_({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(s){return(e,t)=>(a(),k(O,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:p(()=>[d("article",Zs,[typeof e.icon=="object"&&e.icon.wrap?(a(),c("div",xs,[m(se,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(a(),k(se,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(a(),c("div",{key:2,class:"icon",innerHTML:e.icon},null,8,en)):h("",!0),d("h2",{class:"title",innerHTML:e.title},null,8,tn),e.details?(a(),c("p",{key:3,class:"details",innerHTML:e.details},null,8,sn)):h("",!0),e.linkText?(a(),c("div",nn,[d("p",on,[F(w(e.linkText)+" ",1),an])])):h("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),ln=b(rn,[["__scopeId","data-v-c6ed09d2"]]),cn={key:0,class:"VPFeatures"},un={class:"container"},dn={class:"items"},vn=_({__name:"VPFeatures",props:{features:{}},setup(s){const e=s,t=y(()=>{const n=e.features.length;if(n){if(n===2)return"grid-2";if(n===3)return"grid-3";if(n%3===0)return"grid-6";if(n>3)return"grid-4"}else return});return(n,o)=>n.features?(a(),c("div",cn,[d("div",un,[d("div",dn,[(a(!0),c(M,null,E(n.features,i=>(a(),c("div",{key:i.title,class:N(["item",[t.value]])},[m(ln,{icon:i.icon,title:i.title,details:i.details,link:i.link,"link-text":i.linkText,rel:i.rel,target:i.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):h("",!0)}}),pn=b(vn,[["__scopeId","data-v-c56833f4"]]),fn=_({__name:"VPHomeFeatures",setup(s){const{frontmatter:e}=P();return(t,n)=>r(e).features?(a(),k(pn,{key:0,class:"VPHomeFeatures",features:r(e).features},null,8,["features"])):h("",!0)}}),hn=_({__name:"VPHomeContent",setup(s){const{width:e}=at({initialWidth:0,includeScrollbar:!1});return(t,n)=>(a(),c("div",{class:"vp-doc container",style:ge(r(e)?{"--vp-offset":`calc(50% - ${r(e)/2}px)`}:{})},[l(t.$slots,"default",{},void 0,!0)],4))}}),_n=b(hn,[["__scopeId","data-v-2763ee34"]]),mn={class:"VPHome"},kn=_({__name:"VPHome",setup(s){const{frontmatter:e}=P();return(t,n)=>{const o=W("Content");return a(),c("div",mn,[l(t.$slots,"home-hero-before",{},void 0,!0),m(Xs,null,{"home-hero-info-before":p(()=>[l(t.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":p(()=>[l(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":p(()=>[l(t.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":p(()=>[l(t.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":p(()=>[l(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),l(t.$slots,"home-hero-after",{},void 0,!0),l(t.$slots,"home-features-before",{},void 0,!0),m(fn),l(t.$slots,"home-features-after",{},void 0,!0),r(e).markdownStyles!==!1?(a(),k(_n,{key:0},{default:p(()=>[m(o)]),_:1})):(a(),k(o,{key:1}))])}}}),bn=b(kn,[["__scopeId","data-v-ceddc1ed"]]),$n={},gn={class:"VPPage"};function yn(s,e){const t=W("Content");return a(),c("div",gn,[l(s.$slots,"page-top"),m(t),l(s.$slots,"page-bottom")])}const Pn=b($n,[["render",yn]]),Ln=_({__name:"VPContent",setup(s){const{page:e,frontmatter:t}=P(),{hasSidebar:n}=j();return(o,i)=>(a(),c("div",{class:N(["VPContent",{"has-sidebar":r(n),"is-home":r(t).layout==="home"}]),id:"VPContent"},[r(e).isNotFound?l(o.$slots,"not-found",{key:0},()=>[m(At)],!0):r(t).layout==="page"?(a(),k(Pn,{key:1},{"page-top":p(()=>[l(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":p(()=>[l(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):r(t).layout==="home"?(a(),k(bn,{key:2},{"home-hero-before":p(()=>[l(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":p(()=>[l(o.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":p(()=>[l(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":p(()=>[l(o.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":p(()=>[l(o.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":p(()=>[l(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":p(()=>[l(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":p(()=>[l(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":p(()=>[l(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):r(t).layout&&r(t).layout!=="doc"?(a(),k(D(r(t).layout),{key:3})):(a(),k(As,{key:4},{"doc-top":p(()=>[l(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":p(()=>[l(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":p(()=>[l(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":p(()=>[l(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":p(()=>[l(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":p(()=>[l(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":p(()=>[l(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":p(()=>[l(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":p(()=>[l(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":p(()=>[l(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":p(()=>[l(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),Vn=b(Ln,[["__scopeId","data-v-4e31bbd2"]]),Sn={class:"container"},wn=["innerHTML"],In=["innerHTML"],Tn=_({__name:"VPFooter",setup(s){const{theme:e,frontmatter:t}=P(),{hasSidebar:n}=j();return(o,i)=>r(e).footer&&r(t).footer!==!1?(a(),c("footer",{key:0,class:N(["VPFooter",{"has-sidebar":r(n)}])},[d("div",Sn,[r(e).footer.message?(a(),c("p",{key:0,class:"message",innerHTML:r(e).footer.message},null,8,wn)):h("",!0),r(e).footer.copyright?(a(),c("p",{key:1,class:"copyright",innerHTML:r(e).footer.copyright},null,8,In)):h("",!0)])],2)):h("",!0)}}),Nn=b(Tn,[["__scopeId","data-v-098a46ae"]]);function Mn(){const{theme:s,frontmatter:e}=P(),t=He([]),n=y(()=>t.value.length>0);return ae(()=>{t.value=Pe(e.value.outline??s.value.outline)}),{headers:t,hasLocalNav:n}}const An=s=>(C("data-v-5e8cf508"),s=s(),H(),s),Bn={class:"menu-text"},Cn=An(()=>d("span",{class:"vpi-chevron-right icon"},null,-1)),Hn={class:"header"},En={class:"outline"},Dn=_({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(s){const e=s,{theme:t}=P(),n=V(!1),o=V(0),i=V(),u=V();function v($){var L;(L=i.value)!=null&&L.contains($.target)||(n.value=!1)}U(n,$=>{if($){document.addEventListener("click",v);return}document.removeEventListener("click",v)}),pe("Escape",()=>{n.value=!1}),ae(()=>{n.value=!1});function f(){n.value=!n.value,o.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function g($){$.target.classList.contains("outline-link")&&(u.value&&(u.value.style.transition="none"),rt(()=>{n.value=!1}))}function S(){n.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return($,L)=>(a(),c("div",{class:"VPLocalNavOutlineDropdown",style:ge({"--vp-vh":o.value+"px"}),ref_key:"main",ref:i},[$.headers.length>0?(a(),c("button",{key:0,onClick:f,class:N({open:n.value})},[d("span",Bn,w(r(je)(r(t))),1),Cn],2)):(a(),c("button",{key:1,onClick:S},w(r(t).returnToTopLabel||"Return to top"),1)),m(me,{name:"flyout"},{default:p(()=>[n.value?(a(),c("div",{key:0,ref_key:"items",ref:u,class:"items",onClick:g},[d("div",Hn,[d("a",{class:"top-link",href:"#",onClick:S},w(r(t).returnToTopLabel||"Return to top"),1)]),d("div",En,[m(Ge,{headers:$.headers},null,8,["headers"])])],512)):h("",!0)]),_:1})],4))}}),On=b(Dn,[["__scopeId","data-v-5e8cf508"]]),Fn=s=>(C("data-v-b8036a12"),s=s(),H(),s),Un={class:"container"},jn=["aria-expanded"],Gn=Fn(()=>d("span",{class:"vpi-align-left menu-icon"},null,-1)),zn={class:"menu-text"},Rn=_({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(s){const{theme:e,frontmatter:t}=P(),{hasSidebar:n}=j(),{headers:o}=Mn(),{y:i}=De(),u=V(0);q(()=>{u.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),ae(()=>{o.value=Pe(t.value.outline??e.value.outline)});const v=y(()=>o.value.length===0),f=y(()=>v.value&&!n.value),g=y(()=>({VPLocalNav:!0,"has-sidebar":n.value,empty:v.value,fixed:f.value}));return(S,$)=>r(t).layout!=="home"&&(!f.value||r(i)>=u.value)?(a(),c("div",{key:0,class:N(g.value)},[d("div",Un,[r(n)?(a(),c("button",{key:0,class:"menu","aria-expanded":S.open,"aria-controls":"VPSidebarNav",onClick:$[0]||($[0]=L=>S.$emit("open-menu"))},[Gn,d("span",zn,w(r(e).sidebarMenuLabel||"Menu"),1)],8,jn)):h("",!0),m(On,{headers:r(o),navHeight:u.value},null,8,["headers","navHeight"])])],2)):h("",!0)}}),qn=b(Rn,[["__scopeId","data-v-b8036a12"]]);function Kn(){const s=V(!1);function e(){s.value=!0,window.addEventListener("resize",o)}function t(){s.value=!1,window.removeEventListener("resize",o)}function n(){s.value?t():e()}function o(){window.outerWidth>=768&&t()}const i=re();return U(()=>i.path,t),{isScreenOpen:s,openScreen:e,closeScreen:t,toggleScreen:n}}const Wn={},Jn={class:"VPSwitch",type:"button",role:"switch"},Yn={class:"check"},Xn={key:0,class:"icon"};function Qn(s,e){return a(),c("button",Jn,[d("span",Yn,[s.$slots.default?(a(),c("span",Xn,[l(s.$slots,"default",{},void 0,!0)])):h("",!0)])])}const Zn=b(Wn,[["render",Qn],["__scopeId","data-v-b19619af"]]),Re=s=>(C("data-v-0f382965"),s=s(),H(),s),xn=Re(()=>d("span",{class:"vpi-sun sun"},null,-1)),eo=Re(()=>d("span",{class:"vpi-moon moon"},null,-1)),to=_({__name:"VPSwitchAppearance",setup(s){const{isDark:e,theme:t}=P(),n=Q("toggle-appearance",()=>{e.value=!e.value}),o=V("");return $e(()=>{o.value=e.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme"}),(i,u)=>(a(),k(Zn,{title:o.value,class:"VPSwitchAppearance","aria-checked":r(e),onClick:r(n)},{default:p(()=>[xn,eo]),_:1},8,["title","aria-checked","onClick"]))}}),Le=b(to,[["__scopeId","data-v-0f382965"]]),so={key:0,class:"VPNavBarAppearance"},no=_({__name:"VPNavBarAppearance",setup(s){const{site:e}=P();return(t,n)=>r(e).appearance&&r(e).appearance!=="force-dark"&&r(e).appearance!=="force-auto"?(a(),c("div",so,[m(Le)])):h("",!0)}}),oo=b(no,[["__scopeId","data-v-0a1958c9"]]),Ve=V();let qe=!1,de=0;function ao(s){const e=V(!1);if(ie){!qe&&ro(),de++;const t=U(Ve,n=>{var o,i,u;n===s.el.value||(o=s.el.value)!=null&&o.contains(n)?(e.value=!0,(i=s.onFocus)==null||i.call(s)):(e.value=!1,(u=s.onBlur)==null||u.call(s))});X(()=>{t(),de--,de||io()})}return it(e)}function ro(){document.addEventListener("focusin",Ke),qe=!0,Ve.value=document.activeElement}function io(){document.removeEventListener("focusin",Ke)}function Ke(){Ve.value=document.activeElement}const lo={class:"VPMenuLink"},co=_({__name:"VPMenuLink",props:{item:{}},setup(s){const{page:e}=P();return(t,n)=>(a(),c("div",lo,[m(O,{class:N({active:r(K)(r(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel},{default:p(()=>[F(w(t.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),le=b(co,[["__scopeId","data-v-19363427"]]),uo={class:"VPMenuGroup"},vo={key:0,class:"title"},po=_({__name:"VPMenuGroup",props:{text:{},items:{}},setup(s){return(e,t)=>(a(),c("div",uo,[e.text?(a(),c("p",vo,w(e.text),1)):h("",!0),(a(!0),c(M,null,E(e.items,n=>(a(),c(M,null,["link"in n?(a(),k(le,{key:0,item:n},null,8,["item"])):h("",!0)],64))),256))]))}}),fo=b(po,[["__scopeId","data-v-e815e7e2"]]),ho={class:"VPMenu"},_o={key:0,class:"items"},mo=_({__name:"VPMenu",props:{items:{}},setup(s){return(e,t)=>(a(),c("div",ho,[e.items?(a(),c("div",_o,[(a(!0),c(M,null,E(e.items,n=>(a(),c(M,{key:JSON.stringify(n)},["link"in n?(a(),k(le,{key:0,item:n},null,8,["item"])):"component"in n?(a(),k(D(n.component),R({key:1,ref_for:!0},n.props),null,16)):(a(),k(fo,{key:2,text:n.text,items:n.items},null,8,["text","items"]))],64))),128))])):h("",!0),l(e.$slots,"default",{},void 0,!0)]))}}),ko=b(mo,[["__scopeId","data-v-0e22c6c5"]]),bo=s=>(C("data-v-12ec5ee2"),s=s(),H(),s),$o=["aria-expanded","aria-label"],go={key:0,class:"text"},yo=["innerHTML"],Po=bo(()=>d("span",{class:"vpi-chevron-down text-icon"},null,-1)),Lo={key:1,class:"vpi-more-horizontal icon"},Vo={class:"menu"},So=_({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(s){const e=V(!1),t=V();ao({el:t,onBlur:n});function n(){e.value=!1}return(o,i)=>(a(),c("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:i[1]||(i[1]=u=>e.value=!0),onMouseleave:i[2]||(i[2]=u=>e.value=!1)},[d("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":o.label,onClick:i[0]||(i[0]=u=>e.value=!e.value)},[o.button||o.icon?(a(),c("span",go,[o.icon?(a(),c("span",{key:0,class:N([o.icon,"option-icon"])},null,2)):h("",!0),o.button?(a(),c("span",{key:1,innerHTML:o.button},null,8,yo)):h("",!0),Po])):(a(),c("span",Lo))],8,$o),d("div",Vo,[m(ko,{items:o.items},{default:p(()=>[l(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),Se=b(So,[["__scopeId","data-v-12ec5ee2"]]),wo=["href","aria-label","innerHTML"],Io=_({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(s){const e=s,t=y(()=>typeof e.icon=="object"?e.icon.svg:`<span class="vpi-social-${e.icon}" />`);return(n,o)=>(a(),c("a",{class:"VPSocialLink no-icon",href:n.link,"aria-label":n.ariaLabel??(typeof n.icon=="string"?n.icon:""),target:"_blank",rel:"noopener",innerHTML:t.value},null,8,wo))}}),To=b(Io,[["__scopeId","data-v-974e0aed"]]),No={class:"VPSocialLinks"},Mo=_({__name:"VPSocialLinks",props:{links:{}},setup(s){return(e,t)=>(a(),c("div",No,[(a(!0),c(M,null,E(e.links,({link:n,icon:o,ariaLabel:i})=>(a(),k(To,{key:n,icon:o,link:n,ariaLabel:i},null,8,["icon","link","ariaLabel"]))),128))]))}}),we=b(Mo,[["__scopeId","data-v-52782a78"]]),Ao={key:0,class:"group translations"},Bo={class:"trans-title"},Co={key:1,class:"group"},Ho={class:"item appearance"},Eo={class:"label"},Do={class:"appearance-action"},Oo={key:2,class:"group"},Fo={class:"item social-links"},Uo=_({__name:"VPNavBarExtra",setup(s){const{site:e,theme:t}=P(),{localeLinks:n,currentLang:o}=Z({correspondingLink:!0}),i=y(()=>n.value.length&&o.value.label||e.value.appearance||t.value.socialLinks);return(u,v)=>i.value?(a(),k(Se,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:p(()=>[r(n).length&&r(o).label?(a(),c("div",Ao,[d("p",Bo,w(r(o).label),1),(a(!0),c(M,null,E(r(n),f=>(a(),k(le,{key:f.link,item:f},null,8,["item"]))),128))])):h("",!0),r(e).appearance&&r(e).appearance!=="force-dark"&&r(e).appearance!=="force-auto"?(a(),c("div",Co,[d("div",Ho,[d("p",Eo,w(r(t).darkModeSwitchLabel||"Appearance"),1),d("div",Do,[m(Le)])])])):h("",!0),r(t).socialLinks?(a(),c("div",Oo,[d("div",Fo,[m(we,{class:"social-links-list",links:r(t).socialLinks},null,8,["links"])])])):h("",!0)]),_:1})):h("",!0)}}),jo=b(Uo,[["__scopeId","data-v-c34ef5aa"]]),Go=s=>(C("data-v-6a2ed68b"),s=s(),H(),s),zo=["aria-expanded"],Ro=Go(()=>d("span",{class:"container"},[d("span",{class:"top"}),d("span",{class:"middle"}),d("span",{class:"bottom"})],-1)),qo=[Ro],Ko=_({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(s){return(e,t)=>(a(),c("button",{type:"button",class:N(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=n=>e.$emit("click"))},qo,10,zo))}}),Wo=b(Ko,[["__scopeId","data-v-6a2ed68b"]]),Jo=["innerHTML"],Yo=_({__name:"VPNavBarMenuLink",props:{item:{}},setup(s){const{page:e}=P();return(t,n)=>(a(),k(O,{class:N({VPNavBarMenuLink:!0,active:r(K)(r(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,noIcon:t.item.noIcon,target:t.item.target,rel:t.item.rel,tabindex:"0"},{default:p(()=>[d("span",{innerHTML:t.item.text},null,8,Jo)]),_:1},8,["class","href","noIcon","target","rel"]))}}),Xo=b(Yo,[["__scopeId","data-v-c423e9f4"]]),Qo=_({__name:"VPNavBarMenuGroup",props:{item:{}},setup(s){const e=s,{page:t}=P(),n=i=>"component"in i?!1:"link"in i?K(t.value.relativePath,i.link,!!e.item.activeMatch):i.items.some(n),o=y(()=>n(e.item));return(i,u)=>(a(),k(Se,{class:N({VPNavBarMenuGroup:!0,active:r(K)(r(t).relativePath,i.item.activeMatch,!!i.item.activeMatch)||o.value}),button:i.item.text,items:i.item.items},null,8,["class","button","items"]))}}),Zo=s=>(C("data-v-71183eee"),s=s(),H(),s),xo={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},ea=Zo(()=>d("span",{id:"main-nav-aria-label",class:"visually-hidden"}," Main Navigation ",-1)),ta=_({__name:"VPNavBarMenu",setup(s){const{theme:e}=P();return(t,n)=>r(e).nav?(a(),c("nav",xo,[ea,(a(!0),c(M,null,E(r(e).nav,o=>(a(),c(M,{key:JSON.stringify(o)},["link"in o?(a(),k(Xo,{key:0,item:o},null,8,["item"])):"component"in o?(a(),k(D(o.component),R({key:1,ref_for:!0},o.props),null,16)):(a(),k(Qo,{key:2,item:o},null,8,["item"]))],64))),128))])):h("",!0)}}),sa=b(ta,[["__scopeId","data-v-71183eee"]]);function na(s){const{localeIndex:e,theme:t}=P();function n(o){var A,B,I;const i=o.split("."),u=(A=t.value.search)==null?void 0:A.options,v=u&&typeof u=="object",f=v&&((I=(B=u.locales)==null?void 0:B[e.value])==null?void 0:I.translations)||null,g=v&&u.translations||null;let S=f,$=g,L=s;const T=i.pop();for(const G of i){let z=null;const J=L==null?void 0:L[G];J&&(z=L=J);const ce=$==null?void 0:$[G];ce&&(z=$=ce);const ue=S==null?void 0:S[G];ue&&(z=S=ue),J||(L=z),ce||($=z),ue||(S=z)}return(S==null?void 0:S[T])??($==null?void 0:$[T])??(L==null?void 0:L[T])??""}return n}const oa=["aria-label"],aa={class:"DocSearch-Button-Container"},ra=d("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),ia={class:"DocSearch-Button-Placeholder"},la=d("span",{class:"DocSearch-Button-Keys"},[d("kbd",{class:"DocSearch-Button-Key"}),d("kbd",{class:"DocSearch-Button-Key"},"K")],-1),Te=_({__name:"VPNavBarSearchButton",setup(s){const t=na({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(n,o)=>(a(),c("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":r(t)("button.buttonAriaLabel")},[d("span",aa,[ra,d("span",ia,w(r(t)("button.buttonText")),1)]),la],8,oa))}}),ca={class:"VPNavBarSearch"},ua={id:"local-search"},da={key:1,id:"docsearch"},va=_({__name:"VPNavBarSearch",setup(s){const e=lt(()=>ct(()=>import("./VPLocalSearchBox.BmvB34tM.js"),__vite__mapDeps([0,1]))),t=()=>null,{theme:n}=P(),o=V(!1),i=V(!1);q(()=>{});function u(){o.value||(o.value=!0,setTimeout(v,16))}function v(){const $=new Event("keydown");$.key="k",$.metaKey=!0,window.dispatchEvent($),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||v()},16)}function f($){const L=$.target,T=L.tagName;return L.isContentEditable||T==="INPUT"||T==="SELECT"||T==="TEXTAREA"}const g=V(!1);pe("k",$=>{($.ctrlKey||$.metaKey)&&($.preventDefault(),g.value=!0)}),pe("/",$=>{f($)||($.preventDefault(),g.value=!0)});const S="local";return($,L)=>{var T;return a(),c("div",ca,[r(S)==="local"?(a(),c(M,{key:0},[g.value?(a(),k(r(e),{key:0,onClose:L[0]||(L[0]=A=>g.value=!1)})):h("",!0),d("div",ua,[m(Te,{onClick:L[1]||(L[1]=A=>g.value=!0)})])],64)):r(S)==="algolia"?(a(),c(M,{key:1},[o.value?(a(),k(r(t),{key:0,algolia:((T=r(n).search)==null?void 0:T.options)??r(n).algolia,onVnodeBeforeMount:L[2]||(L[2]=A=>i.value=!0)},null,8,["algolia"])):h("",!0),i.value?h("",!0):(a(),c("div",da,[m(Te,{onClick:u})]))],64)):h("",!0)])}}}),pa=_({__name:"VPNavBarSocialLinks",setup(s){const{theme:e}=P();return(t,n)=>r(e).socialLinks?(a(),k(we,{key:0,class:"VPNavBarSocialLinks",links:r(e).socialLinks},null,8,["links"])):h("",!0)}}),fa=b(pa,[["__scopeId","data-v-edaebeb1"]]),ha=["href","rel","target"],_a={key:1},ma={key:2},ka=_({__name:"VPNavBarTitle",setup(s){const{site:e,theme:t}=P(),{hasSidebar:n}=j(),{currentLang:o}=Z(),i=y(()=>{var f;return typeof t.value.logoLink=="string"?t.value.logoLink:(f=t.value.logoLink)==null?void 0:f.link}),u=y(()=>{var f;return typeof t.value.logoLink=="string"||(f=t.value.logoLink)==null?void 0:f.rel}),v=y(()=>{var f;return typeof t.value.logoLink=="string"||(f=t.value.logoLink)==null?void 0:f.target});return(f,g)=>(a(),c("div",{class:N(["VPNavBarTitle",{"has-sidebar":r(n)}])},[d("a",{class:"title",href:i.value??r(ye)(r(o).link),rel:u.value,target:v.value},[l(f.$slots,"nav-bar-title-before",{},void 0,!0),r(t).logo?(a(),k(se,{key:0,class:"logo",image:r(t).logo},null,8,["image"])):h("",!0),r(t).siteTitle?(a(),c("span",_a,w(r(t).siteTitle),1)):r(t).siteTitle===void 0?(a(),c("span",ma,w(r(e).title),1)):h("",!0),l(f.$slots,"nav-bar-title-after",{},void 0,!0)],8,ha)],2))}}),ba=b(ka,[["__scopeId","data-v-de953605"]]),$a={class:"items"},ga={class:"title"},ya=_({__name:"VPNavBarTranslations",setup(s){const{theme:e}=P(),{localeLinks:t,currentLang:n}=Z({correspondingLink:!0});return(o,i)=>r(t).length&&r(n).label?(a(),k(Se,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:r(e).langMenuLabel||"Change language"},{default:p(()=>[d("div",$a,[d("p",ga,w(r(n).label),1),(a(!0),c(M,null,E(r(t),u=>(a(),k(le,{key:u.link,item:u},null,8,["item"]))),128))])]),_:1},8,["label"])):h("",!0)}}),Pa=b(ya,[["__scopeId","data-v-d3047050"]]),La=s=>(C("data-v-37a6b570"),s=s(),H(),s),Va={class:"wrapper"},Sa={class:"container"},wa={class:"title"},Ia={class:"content"},Ta={class:"content-body"},Na=La(()=>d("div",{class:"divider"},[d("div",{class:"divider-line"})],-1)),Ma=_({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(s){const e=s,{y:t}=De(),{hasSidebar:n}=j(),{frontmatter:o}=P(),i=V({});return $e(()=>{i.value={"has-sidebar":n.value,home:o.value.layout==="home",top:t.value===0,"screen-open":e.isScreenOpen}}),(u,v)=>(a(),c("div",{class:N(["VPNavBar",i.value])},[d("div",Va,[d("div",Sa,[d("div",wa,[m(ba,null,{"nav-bar-title-before":p(()=>[l(u.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":p(()=>[l(u.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),d("div",Ia,[d("div",Ta,[l(u.$slots,"nav-bar-content-before",{},void 0,!0),m(va,{class:"search"}),m(sa,{class:"menu"}),m(Pa,{class:"translations"}),m(oo,{class:"appearance"}),m(fa,{class:"social-links"}),m(jo,{class:"extra"}),l(u.$slots,"nav-bar-content-after",{},void 0,!0),m(Wo,{class:"hamburger",active:u.isScreenOpen,onClick:v[0]||(v[0]=f=>u.$emit("toggle-screen"))},null,8,["active"])])])])]),Na],2))}}),Aa=b(Ma,[["__scopeId","data-v-37a6b570"]]),Ba={key:0,class:"VPNavScreenAppearance"},Ca={class:"text"},Ha=_({__name:"VPNavScreenAppearance",setup(s){const{site:e,theme:t}=P();return(n,o)=>r(e).appearance&&r(e).appearance!=="force-dark"&&r(e).appearance!=="force-auto"?(a(),c("div",Ba,[d("p",Ca,w(r(t).darkModeSwitchLabel||"Appearance"),1),m(Le)])):h("",!0)}}),Ea=b(Ha,[["__scopeId","data-v-beb3f918"]]),Da=_({__name:"VPNavScreenMenuLink",props:{item:{}},setup(s){const e=Q("close-screen");return(t,n)=>(a(),k(O,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:r(e),innerHTML:t.item.text},null,8,["href","target","rel","onClick","innerHTML"]))}}),Oa=b(Da,[["__scopeId","data-v-6f3d2ab5"]]),Fa=_({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(s){const e=Q("close-screen");return(t,n)=>(a(),k(O,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:r(e)},{default:p(()=>[F(w(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),We=b(Fa,[["__scopeId","data-v-eab7bfa1"]]),Ua={class:"VPNavScreenMenuGroupSection"},ja={key:0,class:"title"},Ga=_({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(s){return(e,t)=>(a(),c("div",Ua,[e.text?(a(),c("p",ja,w(e.text),1)):h("",!0),(a(!0),c(M,null,E(e.items,n=>(a(),k(We,{key:n.text,item:n},null,8,["item"]))),128))]))}}),za=b(Ga,[["__scopeId","data-v-60ca4288"]]),Ra=s=>(C("data-v-9b54e8b4"),s=s(),H(),s),qa=["aria-controls","aria-expanded"],Ka=["innerHTML"],Wa=Ra(()=>d("span",{class:"vpi-plus button-icon"},null,-1)),Ja=["id"],Ya={key:0,class:"item"},Xa={key:1,class:"item"},Qa={key:2,class:"group"},Za=_({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(s){const e=s,t=V(!1),n=y(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function o(){t.value=!t.value}return(i,u)=>(a(),c("div",{class:N(["VPNavScreenMenuGroup",{open:t.value}])},[d("button",{class:"button","aria-controls":n.value,"aria-expanded":t.value,onClick:o},[d("span",{class:"button-text",innerHTML:i.text},null,8,Ka),Wa],8,qa),d("div",{id:n.value,class:"items"},[(a(!0),c(M,null,E(i.items,v=>(a(),c(M,{key:JSON.stringify(v)},["link"in v?(a(),c("div",Ya,[m(We,{item:v},null,8,["item"])])):"component"in v?(a(),c("div",Xa,[(a(),k(D(v.component),R({ref_for:!0},v.props,{"screen-menu":""}),null,16))])):(a(),c("div",Qa,[m(za,{text:v.text,items:v.items},null,8,["text","items"])]))],64))),128))],8,Ja)],2))}}),xa=b(Za,[["__scopeId","data-v-9b54e8b4"]]),er={key:0,class:"VPNavScreenMenu"},tr=_({__name:"VPNavScreenMenu",setup(s){const{theme:e}=P();return(t,n)=>r(e).nav?(a(),c("nav",er,[(a(!0),c(M,null,E(r(e).nav,o=>(a(),c(M,{key:JSON.stringify(o)},["link"in o?(a(),k(Oa,{key:0,item:o},null,8,["item"])):"component"in o?(a(),k(D(o.component),R({key:1,ref_for:!0},o.props,{"screen-menu":""}),null,16)):(a(),k(xa,{key:2,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):h("",!0)}}),sr=_({__name:"VPNavScreenSocialLinks",setup(s){const{theme:e}=P();return(t,n)=>r(e).socialLinks?(a(),k(we,{key:0,class:"VPNavScreenSocialLinks",links:r(e).socialLinks},null,8,["links"])):h("",!0)}}),Je=s=>(C("data-v-d9ff2423"),s=s(),H(),s),nr=Je(()=>d("span",{class:"vpi-languages icon lang"},null,-1)),or=Je(()=>d("span",{class:"vpi-chevron-down icon chevron"},null,-1)),ar={class:"list"},rr=_({__name:"VPNavScreenTranslations",setup(s){const{localeLinks:e,currentLang:t}=Z({correspondingLink:!0}),n=V(!1);function o(){n.value=!n.value}return(i,u)=>r(e).length&&r(t).label?(a(),c("div",{key:0,class:N(["VPNavScreenTranslations",{open:n.value}])},[d("button",{class:"title",onClick:o},[nr,F(" "+w(r(t).label)+" ",1),or]),d("ul",ar,[(a(!0),c(M,null,E(r(e),v=>(a(),c("li",{key:v.link,class:"item"},[m(O,{class:"link",href:v.link},{default:p(()=>[F(w(v.text),1)]),_:2},1032,["href"])]))),128))])],2)):h("",!0)}}),ir=b(rr,[["__scopeId","data-v-d9ff2423"]]),lr={class:"container"},cr=_({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(s){const e=V(null),t=Oe(ie?document.body:null);return(n,o)=>(a(),k(me,{name:"fade",onEnter:o[0]||(o[0]=i=>t.value=!0),onAfterLeave:o[1]||(o[1]=i=>t.value=!1)},{default:p(()=>[n.open?(a(),c("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[d("div",lr,[l(n.$slots,"nav-screen-content-before",{},void 0,!0),m(tr,{class:"menu"}),m(ir,{class:"translations"}),m(Ea,{class:"appearance"}),m(sr,{class:"social-links"}),l(n.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):h("",!0)]),_:3}))}}),ur=b(cr,[["__scopeId","data-v-c6c7bd45"]]),dr={key:0,class:"VPNav"},vr=_({__name:"VPNav",setup(s){const{isScreenOpen:e,closeScreen:t,toggleScreen:n}=Kn(),{frontmatter:o}=P(),i=y(()=>o.value.navbar!==!1);return Fe("close-screen",t),oe(()=>{ie&&document.documentElement.classList.toggle("hide-nav",!i.value)}),(u,v)=>i.value?(a(),c("header",dr,[m(Aa,{"is-screen-open":r(e),onToggleScreen:r(n)},{"nav-bar-title-before":p(()=>[l(u.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":p(()=>[l(u.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":p(()=>[l(u.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":p(()=>[l(u.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),m(ur,{open:r(e)},{"nav-screen-content-before":p(()=>[l(u.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":p(()=>[l(u.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):h("",!0)}}),pr=b(vr,[["__scopeId","data-v-d52d372b"]]),Ye=s=>(C("data-v-b74067ae"),s=s(),H(),s),fr=["role","tabindex"],hr=Ye(()=>d("div",{class:"indicator"},null,-1)),_r=Ye(()=>d("span",{class:"vpi-chevron-right caret-icon"},null,-1)),mr=[_r],kr={key:1,class:"items"},br=_({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(s){const e=s,{collapsed:t,collapsible:n,isLink:o,isActiveLink:i,hasActiveLink:u,hasChildren:v,toggle:f}=Et(y(()=>e.item)),g=y(()=>v.value?"section":"div"),S=y(()=>o.value?"a":"div"),$=y(()=>v.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),L=y(()=>o.value?void 0:"button"),T=y(()=>[[`level-${e.depth}`],{collapsible:n.value},{collapsed:t.value},{"is-link":o.value},{"is-active":i.value},{"has-active":u.value}]);function A(I){"key"in I&&I.key!=="Enter"||!e.item.link&&f()}function B(){e.item.link&&f()}return(I,G)=>{const z=W("VPSidebarItem",!0);return a(),k(D(g.value),{class:N(["VPSidebarItem",T.value])},{default:p(()=>[I.item.text?(a(),c("div",R({key:0,class:"item",role:L.value},ut(I.item.items?{click:A,keydown:A}:{},!0),{tabindex:I.item.items&&0}),[hr,I.item.link?(a(),k(O,{key:0,tag:S.value,class:"link",href:I.item.link,rel:I.item.rel,target:I.item.target},{default:p(()=>[(a(),k(D($.value),{class:"text",innerHTML:I.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(a(),k(D($.value),{key:1,class:"text",innerHTML:I.item.text},null,8,["innerHTML"])),I.item.collapsed!=null&&I.item.items&&I.item.items.length?(a(),c("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:B,onKeydown:dt(B,["enter"]),tabindex:"0"},mr,32)):h("",!0)],16,fr)):h("",!0),I.item.items&&I.item.items.length?(a(),c("div",kr,[I.depth<5?(a(!0),c(M,{key:0},E(I.item.items,J=>(a(),k(z,{key:J.text,item:J,depth:I.depth+1},null,8,["item","depth"]))),128)):h("",!0)])):h("",!0)]),_:1},8,["class"])}}}),$r=b(br,[["__scopeId","data-v-b74067ae"]]),gr=_({__name:"VPSidebarGroup",props:{items:{}},setup(s){const e=V(!0);let t=null;return q(()=>{t=setTimeout(()=>{t=null,e.value=!1},300)}),vt(()=>{t!=null&&(clearTimeout(t),t=null)}),(n,o)=>(a(!0),c(M,null,E(n.items,i=>(a(),c("div",{key:i.text,class:N(["group",{"no-transition":e.value}])},[m($r,{item:i,depth:0},null,8,["item"])],2))),128))}}),yr=b(gr,[["__scopeId","data-v-e3ecf1ec"]]),Xe=s=>(C("data-v-f2245985"),s=s(),H(),s),Pr=Xe(()=>d("div",{class:"curtain"},null,-1)),Lr={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},Vr=Xe(()=>d("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),Sr=_({__name:"VPSidebar",props:{open:{type:Boolean}},setup(s){const{sidebarGroups:e,hasSidebar:t}=j(),n=s,o=V(null),i=Oe(ie?document.body:null);U([n,o],()=>{var v;n.open?(i.value=!0,(v=o.value)==null||v.focus()):i.value=!1},{immediate:!0,flush:"post"});const u=V(0);return U(e,()=>{u.value+=1},{deep:!0}),(v,f)=>r(t)?(a(),c("aside",{key:0,class:N(["VPSidebar",{open:v.open}]),ref_key:"navEl",ref:o,onClick:f[0]||(f[0]=pt(()=>{},["stop"]))},[Pr,d("nav",Lr,[Vr,l(v.$slots,"sidebar-nav-before",{},void 0,!0),(a(),k(yr,{items:r(e),key:u.value},null,8,["items"])),l(v.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):h("",!0)}}),wr=b(Sr,[["__scopeId","data-v-f2245985"]]),Ir=_({__name:"VPSkipLink",setup(s){const e=re(),t=V();U(()=>e.path,()=>t.value.focus());function n({target:o}){const i=document.getElementById(decodeURIComponent(o.hash).slice(1));if(i){const u=()=>{i.removeAttribute("tabindex"),i.removeEventListener("blur",u)};i.setAttribute("tabindex","-1"),i.addEventListener("blur",u),i.focus(),window.scrollTo(0,0)}}return(o,i)=>(a(),c(M,null,[d("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),d("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:n}," Skip to content ")],64))}}),Tr=b(Ir,[["__scopeId","data-v-a977b129"]]),Nr=_({__name:"Layout",setup(s){const{isOpen:e,open:t,close:n}=j(),o=re();U(()=>o.path,n),Ht(e,n);const{frontmatter:i}=P(),u=ft(),v=y(()=>!!u["home-hero-image"]);return Fe("hero-image-slot-exists",v),(f,g)=>{const S=W("Content");return r(i).layout!==!1?(a(),c("div",{key:0,class:N(["Layout",r(i).pageClass])},[l(f.$slots,"layout-top",{},void 0,!0),m(Tr),m($t,{class:"backdrop",show:r(e),onClick:r(n)},null,8,["show","onClick"]),m(pr,null,{"nav-bar-title-before":p(()=>[l(f.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":p(()=>[l(f.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":p(()=>[l(f.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":p(()=>[l(f.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":p(()=>[l(f.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":p(()=>[l(f.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),m(qn,{open:r(e),onOpenMenu:r(t)},null,8,["open","onOpenMenu"]),m(wr,{open:r(e)},{"sidebar-nav-before":p(()=>[l(f.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":p(()=>[l(f.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),m(Vn,null,{"page-top":p(()=>[l(f.$slots,"page-top",{},void 0,!0)]),"page-bottom":p(()=>[l(f.$slots,"page-bottom",{},void 0,!0)]),"not-found":p(()=>[l(f.$slots,"not-found",{},void 0,!0)]),"home-hero-before":p(()=>[l(f.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":p(()=>[l(f.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":p(()=>[l(f.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":p(()=>[l(f.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":p(()=>[l(f.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":p(()=>[l(f.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":p(()=>[l(f.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":p(()=>[l(f.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":p(()=>[l(f.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":p(()=>[l(f.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":p(()=>[l(f.$slots,"doc-before",{},void 0,!0)]),"doc-after":p(()=>[l(f.$slots,"doc-after",{},void 0,!0)]),"doc-top":p(()=>[l(f.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":p(()=>[l(f.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":p(()=>[l(f.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":p(()=>[l(f.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":p(()=>[l(f.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":p(()=>[l(f.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":p(()=>[l(f.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":p(()=>[l(f.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),m(Nn),l(f.$slots,"layout-bottom",{},void 0,!0)],2)):(a(),k(S,{key:1}))}}}),Mr=b(Nr,[["__scopeId","data-v-7e3343f7"]]),Qe={Layout:Mr,enhanceApp:({app:s})=>{s.component("Badge",mt)}},Ze="LiteyukiStudio",xe="LiteyukiBot",Ar="https://api.github.com",Br="https://api.liteyuki.icu/online",Cr="https://api.liteyuki.icu/count",x=`https://github.com/${Ze}/${xe}`,Ne="https://starmap.liteyuki.icu",Y={getTotal:async()=>{try{return(await(await fetch(Cr)).json()).register}catch{return-1}},getOnline:async()=>{try{return(await(await fetch(Br)).json()).online}catch{return-1}},getGithubStats:async()=>{try{const e=await(await fetch(`${Ar}/repos/${Ze}/${xe}`)).json();return{stars:e.stargazers_count,forks:e.forks_count,watchers:e.watchers_count,issues:e.open_issues_count,prs:e.open_issues_count,size:e.size}}catch{return{stars:-1,forks:-1,watchers:-1,issues:-1,prs:-1,size:-1}}},getPluginNum:async()=>{try{return(await(await fetch("/plugins.json")).json()).length}catch{return-1}},getResourceNum:async()=>{try{return(await(await fetch("/resources.json")).json()).length}catch{return-1}}},Hr={en:{online:"Online",offline:"Offline",total:"Total",fetching:"Fetching",stars:"Stars",forks:"Forks",issues:"Issues",prs:"Pull Requests",size:"Size",plugins:"Plugins",resources:"Resources"},zh:{online:"在线",offline:"离线",total:"实例",fetching:"获取中",stars:"星星",forks:"叉子",issues:"开启议题",prs:"合并请求",size:"大小",plugins:"插件",resources:"主题资源"}};let ne={};function et(s,e){return s=Ie(s),Hr[s][e]}function Ie(s){return s.includes("-")?s.split("-")[0]:s}function ee(){const s=Ie(ke().site.value.lang);for(let e in ne)ne[e].value=et(s,e)}function Er(s){const e=Ie(ke().site.value.lang);return ne[s]=et(e,s),ne[s]}/*!
* vue-router v4.4.3
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/var Me;(function(s){s.pop="pop",s.push="push"})(Me||(Me={}));var Ae;(function(s){s.back="back",s.forward="forward",s.unknown=""})(Ae||(Ae={}));var Be;(function(s){s[s.aborted=4]="aborted",s[s.cancelled=8]="cancelled",s[s.duplicated=16]="duplicated"})(Be||(Be={}));const Dr=Symbol("");function Or(s,e,t){const n=()=>{s[e].delete(t)};X(n),ht(n),_t(()=>{s[e].add(t)}),s[e].add(t)}function Fr(s){const e=Q(Dr,{}).value;e&&Or(e,"updateGuards",s)}const Ur=s=>(C("data-v-0b0ac726"),s=s(),H(),s),jr={class:"stats-bar-content"},Gr={class:"stats-bar"},zr={class:"stats-info"},Rr=["href"],qr={class:"section-tab"},Kr={class:"text"},Wr={class:"number"},Jr=Ur(()=>d("div",{class:"starmap"},[d("iframe",{src:"https://starmap.liteyuki.icu/",width:"100%",height:"300px"})],-1)),Yr=_({__name:"StatsBar",setup(s){const{Layout:e}=Qe;let t=null;const n={total:{name:"total",color:"#00a6ff",value:V(2005),link:Ne},online:{name:"online",color:"#00ff00",value:V(1145),link:Ne},stars:{name:"stars",color:"#ffcc00",value:V(1234),link:`${x}/stargazers`},forks:{name:"forks",color:"#ff6600",value:V(9420),link:`${x}/forks`},issues:{name:"issues",color:"#ff0000",value:V(1145),link:`${x}/issues`},prs:{name:"prs",color:"#ff00ff",value:V(6543),link:`${x}/pulls`},plugins:{name:"plugins",color:"#ff003e",value:V(1763),link:"./store/plugin"},resources:{name:"resources",color:"#ff00ff",value:V(6789),link:"./store/resource"}};async function o(){[n.online.value.value,n.total.value.value,n.plugins.value.value,n.resources.value.value,t]=await Promise.all([Y.getOnline(),Y.getTotal(),Y.getPluginNum(),Y.getResourceNum(),Y.getGithubStats()]),n.stars.value.value=(t==null?void 0:t.stars)||0,n.forks.value.value=(t==null?void 0:t.forks)||0,n.issues.value.value=(t==null?void 0:t.issues)||0,n.prs.value.value=(t==null?void 0:t.prs)||0}return q(()=>{const i=setInterval(o,1e4);o(),ee(),X(()=>{clearInterval(i)})}),Fr(()=>{ee()}),(i,u)=>(a(),k(r(e),null,{"home-features-before":p(()=>[d("div",jr,[d("div",{class:"button",onClick:u[0]||(u[0]=(...v)=>r(ee)&&r(ee)(...v))},"Update"),d("div",Gr,[d("div",zr,[(a(!0),c(M,null,E(Object.values(n),v=>(a(),c("div",{key:v.name,class:"section"},[d("a",{href:v.link,target:"_blank"},[d("div",qr,[d("span",{class:"dot",style:ge({backgroundColor:v.color})},null,4),d("span",Kr,w(r(Er)(v.name)),1)]),d("div",Wr,w(v.value.value),1)],8,Rr)]))),128))]),Jr])])]),_:1}))}}),Ce=b(Yr,[["__scopeId","data-v-0b0ac726"]]),Qr={extends:Qe,enhanceApp({app:s}){s.component("StatsBar",Ce)},Layout:Ce};export{Qr as R,na as c,P as u};