app/assets/chunks/theme.Cu01jaCM.js

19 lines
80 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.y1aTAI8X.js","assets/chunks/framework.jrU0lkHV.js"])))=>i.map(i=>d[i]);
import{u as ve,d as b,o as i,c as p,r as f,n as x,a as Q,t as N,b as w,w as v,e as k,T as Me,_ as $,i as St,f as wt,g as Ee,h as T,j as c,k as u,l as te,m as Pe,p as C,q as W,s as he,v as Z,x as re,y as Be,z as Pt,A as Lt,B as ne,F as D,C as R,D as Xe,E as me,G as S,H as G,I as Qe,J as _e,K as X,L as ie,M as Vt,N as ge,O as Le,P as Tt,Q as Ze,R as be,S as Nt,U as Ct,V as It,W as et,X as tt,Y as At,Z as Mt,$ as Et,a0 as nt,a1 as Bt,a2 as Ot,a3 as Ht,a4 as Ve,a5 as Te,a6 as Ne}from"./framework.jrU0lkHV.js";const Dt={en:{stats:"Stats",online:"Online",offline:"Offline",total:"Total",fetching:"Fetching",stars:"Stars",forks:"Forks",issues:"Issues",prs:"Pull Requests",visitors:"Visitors",size:"Size",plugins:"Plugins",resources:"Resources",pluginStore:"Plugin Store",pluginStoreDesc:"Content from the LightSnow Plugin Store, LightSnow supports NoneBot through the lpnonebot plugin, and references some NoneBot plugins",liteyukiOnly:"Liteyuki Only",search:"Search",resourceStore:"Resources Store",thx_contributors:"Thanks the following contributors!",easterEgg:"Congratulations on finding the Easter egg!",publishPlugin:"Publish Plugin",publishRes:"Publish Resource",closeButtonText:"Close",submitButtonText:"Submit",resName:"Name",resDesc:"Description",resAuthor:"Author",resLink:"Download Link",resHomepage:"Homepage",resNameText:"Example: Kawaii Style Theme",resDescText:"Example: A kawaii style and color theme",resAuthorText:"Usually the github username, Example: yanyongyu",resLinkText:"Direct download link, usually zip package link",resHomepageText:'Optional, can be the name of the git platform repository"'},zh:{stats:"统计信息",online:"在线",offline:"离线",total:"实例",fetching:"获取中",stars:"星星",forks:"分叉",issues:"议题",prs:"拉取请求",visitors:"访客",size:"大小",plugins:"插件",resources:"主题资源",store:"商店",pluginStore:"插件商店",pluginStoreDesc:"内容来自轻雪插件商店轻雪通过lpnonebot插件对NoneBot实现支持引用了部分NoneBot插件",liteyukiOnly:"仅轻雪",search:"搜索",resourceStore:"资源商店",thx_contributors:"感谢以下贡献者!",easterEgg:"恭喜你发现了彩蛋!",publishPlugin:"发布插件",publishRes:"发布资源",closeButtonText:"关闭",submitButtonText:"提交",resName:"名称",resDesc:"描述",resAuthor:"作者",resLink:"下载链接",resHomepage:"主页",resNameText:"示例:可爱风格主题",resDescText:"示例:一个可爱风格和配色的主题",resAuthorText:"通常为github用户名示例yanyongyu",resLinkText:"直接下载链接通常为zip包链接",resHomepageText:"可选可为git平台仓库名"}};let pe={};function ot(n,e){return n=ke(n),Dt[n][e]}function ke(n){return n.includes("-")?n.split("-")[0]:n}function xt(){const n=ke(ve().site.value.lang);for(let e in pe)pe[e].value=ot(n,e)}function j(n){const e=ke(ve().site.value.lang);return pe[n]=ot(e,n),pe[n]||n}const Ft=b({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(n){return(e,t)=>(i(),p("span",{class:x(["VPBadge",e.type])},[f(e.$slots,"default",{},()=>[Q(N(e.text),1)])],2))}}),Rt={key:0,class:"VPBackdrop"},jt=b({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(n){return(e,t)=>(i(),w(Me,{name:"fade"},{default:v(()=>[e.show?(i(),p("div",Rt)):k("",!0)]),_:1}))}}),zt=$(jt,[["__scopeId","data-v-a5786ee1"]]),O=ve;function Ut(n,e){let t,s=!1;return()=>{t&&clearTimeout(t),s?t=setTimeout(n,e):(n(),(s=!0)&&setTimeout(()=>s=!1,e))}}function Ce(n){return/^\//.test(n)?n:`/${n}`}function Oe(n){const{pathname:e,search:t,hash:s,protocol:o}=new URL(n,"http://a.com");if(St(n)||n.startsWith("#")||!o.startsWith("http")||!wt(e))return n;const{site:a}=O(),l=e.endsWith("/")||e.endsWith(".html")?n:n.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${t}${s}`);return Ee(l)}function le({correspondingLink:n=!1}={}){const{site:e,localeIndex:t,page:s,theme:o,hash:a}=O(),l=T(()=>{var d,h;return{label:(d=e.value.locales[t.value])==null?void 0:d.label,link:((h=e.value.locales[t.value])==null?void 0:h.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:T(()=>Object.entries(e.value.locales).flatMap(([d,h])=>l.value.label===h.label?[]:{text:h.label,link:Gt(h.link||(d==="root"?"/":`/${d}/`),o.value.i18nRouting!==!1&&n,s.value.relativePath.slice(l.value.link.length-1),!e.value.cleanUrls)+a.value})),currentLang:l}}function Gt(n,e,t,s){return e?n.replace(/\/$/,"")+Ce(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):n}const Kt={class:"NotFound"},Wt={class:"code"},qt={class:"title"},Jt={class:"quote"},Yt={class:"action"},Xt=["href","aria-label"],Qt=b({__name:"NotFound",setup(n){const{theme:e}=O(),{currentLang:t}=le();return(s,o)=>{var a,l,r,d,h;return i(),p("div",Kt,[c("p",Wt,N(((a=u(e).notFound)==null?void 0:a.code)??"404"),1),c("h1",qt,N(((l=u(e).notFound)==null?void 0:l.title)??"PAGE NOT FOUND"),1),o[0]||(o[0]=c("div",{class:"divider"},null,-1)),c("blockquote",Jt,N(((r=u(e).notFound)==null?void 0:r.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),c("div",Yt,[c("a",{class:"link",href:u(Ee)(u(t).link),"aria-label":((d=u(e).notFound)==null?void 0:d.linkLabel)??"go to home"},N(((h=u(e).notFound)==null?void 0:h.linkText)??"Take me home"),9,Xt)])])}}}),Zt=$(Qt,[["__scopeId","data-v-c5502dfc"]]);function st(n,e){if(Array.isArray(n))return de(n);if(n==null)return[];e=Ce(e);const t=Object.keys(n).sort((o,a)=>a.split("/").length-o.split("/").length).find(o=>e.startsWith(Ce(o))),s=t?n[t]:[];return Array.isArray(s)?de(s):de(s.items,s.base)}function en(n){const e=[];let t=0;for(const s in n){const o=n[s];if(o.items){t=e.push(o);continue}e[t]||e.push({items:[]}),e[t].items.push(o)}return e}function tn(n){const e=[];function t(s){for(const o of s)o.text&&o.link&&e.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&t(o.items)}return t(n),e}function Ie(n,e){return Array.isArray(e)?e.some(t=>Ie(n,t)):te(n,e.link)?!0:e.items?Ie(n,e.items):!1}function de(n,e){return[...n].map(t=>{const s={...t},o=s.base||e;return o&&s.link&&(s.link=o+s.link),s.items&&(s.items=de(s.items,o)),s})}function q(){const{frontmatter:n,page:e,theme:t}=O(),s=Pe("(min-width: 960px)"),o=C(!1),a=T(()=>{const M=t.value.sidebar,y=e.value.relativePath;return M?st(M,y):[]}),l=C(a.value);W(a,(M,y)=>{JSON.stringify(M)!==JSON.stringify(y)&&(l.value=a.value)});const r=T(()=>n.value.sidebar!==!1&&l.value.length>0&&n.value.layout!=="home"),d=T(()=>h?n.value.aside==null?t.value.aside==="left":n.value.aside==="left":!1),h=T(()=>n.value.layout==="home"?!1:n.value.aside!=null?!!n.value.aside:t.value.aside!==!1),_=T(()=>r.value&&s.value),m=T(()=>r.value?en(l.value):[]);function g(){o.value=!0}function I(){o.value=!1}function V(){o.value?I():g()}return{isOpen:o,sidebar:l,sidebarGroups:m,hasSidebar:r,hasAside:h,leftAside:d,isSidebarEnabled:_,open:g,close:I,toggle:V}}function nn(n,e){let t;he(()=>{t=n.value?document.activeElement:void 0}),Z(()=>{window.addEventListener("keyup",s)}),re(()=>{window.removeEventListener("keyup",s)});function s(o){o.key==="Escape"&&n.value&&(e(),t==null||t.focus())}}function on(n){const{page:e,hash:t}=O(),s=C(!1),o=T(()=>n.value.collapsed!=null),a=T(()=>!!n.value.link),l=C(!1),r=()=>{l.value=te(e.value.relativePath,n.value.link)};W([e,n,t],r),Z(r);const d=T(()=>l.value?!0:n.value.items?Ie(e.value.relativePath,n.value.items):!1),h=T(()=>!!(n.value.items&&n.value.items.length));he(()=>{s.value=!!(o.value&&n.value.collapsed)}),Be(()=>{(l.value||d.value)&&(s.value=!1)});function _(){o.value&&(s.value=!s.value)}return{collapsed:s,collapsible:o,isLink:a,isActiveLink:l,hasActiveLink:d,hasChildren:h,toggle:_}}function sn(){const{hasSidebar:n}=q(),e=Pe("(min-width: 960px)"),t=Pe("(min-width: 1280px)");return{isAsideEnabled:T(()=>!t.value&&!e.value?!1:n.value?t.value:e.value)}}const Ae=[];function at(n){return typeof n.outline=="object"&&!Array.isArray(n.outline)&&n.outline.label||n.outlineTitle||"On this page"}function He(n){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const s=Number(t.tagName[1]);return{element:t,title:an(t),link:"#"+t.id,level:s}});return rn(e,n)}function an(n){let e="";for(const t of n.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 rn(n,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[s,o]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;return cn(n,s,o)}function ln(n,e){const{isAsideEnabled:t}=sn(),s=Ut(a,100);let o=null;Z(()=>{requestAnimationFrame(a),window.addEventListener("scroll",s)}),Pt(()=>{l(location.hash)}),re(()=>{window.removeEventListener("scroll",s)});function a(){if(!t.value)return;const r=window.scrollY,d=window.innerHeight,h=document.body.offsetHeight,_=Math.abs(r+d-h)<1,m=Ae.map(({element:I,link:V})=>({link:V,top:un(I)})).filter(({top:I})=>!Number.isNaN(I)).sort((I,V)=>I.top-V.top);if(!m.length){l(null);return}if(r<1){l(null);return}if(_){l(m[m.length-1].link);return}let g=null;for(const{link:I,top:V}of m){if(V>r+Lt()+4)break;g=I}l(g)}function l(r){o&&o.classList.remove("active"),r==null?o=null:o=n.value.querySelector(`a[href="${decodeURIComponent(r)}"]`);const d=o;d?(d.classList.add("active"),e.value.style.top=d.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function un(n){let e=0;for(;n!==document.body;){if(n===null)return NaN;e+=n.offsetTop,n=n.offsetParent}return e}function cn(n,e,t){Ae.length=0;const s=[],o=[];return n.forEach(a=>{const l={...a,children:[]};let r=o[o.length-1];for(;r&&r.level>=l.level;)o.pop(),r=o[o.length-1];if(l.element.classList.contains("ignore-header")||r&&"shouldIgnore"in r){o.push({level:l.level,shouldIgnore:!0});return}l.level>t||l.level<e||(Ae.push({element:l.element,link:l.link}),r?r.children.push(l):s.push(l),o.push(l))}),s}const dn=["href","title"],pn=b({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(n){function e({target:t}){const s=t.href.split("#")[1],o=document.getElementById(decodeURIComponent(s));o==null||o.focus({preventScroll:!0})}return(t,s)=>{const o=ne("VPDocOutlineItem",!0);return i(),p("ul",{class:x(["VPDocOutlineItem",t.root?"root":"nested"])},[(i(!0),p(D,null,R(t.headers,({children:a,link:l,title:r})=>(i(),p("li",null,[c("a",{class:"outline-link",href:l,onClick:e,title:r},N(r),9,dn),a!=null&&a.length?(i(),w(o,{key:0,headers:a},null,8,["headers"])):k("",!0)]))),256))],2)}}}),rt=$(pn,[["__scopeId","data-v-0e4108b9"]]),fn={class:"content"},vn={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},hn=b({__name:"VPDocAsideOutline",setup(n){const{frontmatter:e,theme:t}=O(),s=Xe([]);me(()=>{s.value=He(e.value.outline??t.value.outline)});const o=C(),a=C();return ln(o,a),(l,r)=>(i(),p("nav",{"aria-labelledby":"doc-outline-aria-label",class:x(["VPDocAsideOutline",{"has-outline":s.value.length>0}]),ref_key:"container",ref:o},[c("div",fn,[c("div",{class:"outline-marker",ref_key:"marker",ref:a},null,512),c("div",vn,N(u(at)(u(t))),1),S(rt,{headers:s.value,root:!0},null,8,["headers"])])],2))}}),mn=$(hn,[["__scopeId","data-v-15a25dd4"]]),_n={class:"VPDocAsideCarbonAds"},gn=b({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(n){const e=()=>null;return(t,s)=>(i(),p("div",_n,[S(u(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),bn={class:"VPDocAside"},kn=b({__name:"VPDocAside",setup(n){const{theme:e}=O();return(t,s)=>(i(),p("div",bn,[f(t.$slots,"aside-top",{},void 0,!0),f(t.$slots,"aside-outline-before",{},void 0,!0),S(mn),f(t.$slots,"aside-outline-after",{},void 0,!0),s[0]||(s[0]=c("div",{class:"spacer"},null,-1)),f(t.$slots,"aside-ads-before",{},void 0,!0),u(e).carbonAds?(i(),w(gn,{key:0,"carbon-ads":u(e).carbonAds},null,8,["carbon-ads"])):k("",!0),f(t.$slots,"aside-ads-after",{},void 0,!0),f(t.$slots,"aside-bottom",{},void 0,!0)]))}}),yn=$(kn,[["__scopeId","data-v-bd945a31"]]);function $n(){const{theme:n,page:e}=O();return T(()=>{const{text:t="Edit this page",pattern:s=""}=n.value.editLink||{};let o;return typeof s=="function"?o=s(e.value):o=s.replace(/:path/g,e.value.filePath),{url:o,text:t}})}function Sn(){const{page:n,theme:e,frontmatter:t}=O();return T(()=>{var h,_,m,g,I,V,M,y;const s=st(e.value.sidebar,n.value.relativePath),o=tn(s),a=wn(o,F=>F.link.replace(/[?#].*$/,"")),l=a.findIndex(F=>te(n.value.relativePath,F.link)),r=((h=e.value.docFooter)==null?void 0:h.prev)===!1&&!t.value.prev||t.value.prev===!1,d=((_=e.value.docFooter)==null?void 0:_.next)===!1&&!t.value.next||t.value.next===!1;return{prev:r?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((m=a[l-1])==null?void 0:m.docFooterText)??((g=a[l-1])==null?void 0:g.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((I=a[l-1])==null?void 0:I.link)},next:d?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((V=a[l+1])==null?void 0:V.docFooterText)??((M=a[l+1])==null?void 0:M.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((y=a[l+1])==null?void 0:y.link)}}})}function wn(n,e){const t=new Set;return n.filter(s=>{const o=e(s);return t.has(o)?!1:t.add(o)})}const K=b({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(n){const e=n,t=T(()=>e.tag??(e.href?"a":"span")),s=T(()=>e.href&&Qe.test(e.href)||e.target==="_blank");return(o,a)=>(i(),w(G(t.value),{class:x(["VPLink",{link:o.href,"vp-external-link-icon":s.value,"no-icon":o.noIcon}]),href:o.href?u(Oe)(o.href):void 0,target:o.target??(s.value?"_blank":void 0),rel:o.rel??(s.value?"noreferrer":void 0)},{default:v(()=>[f(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Pn={class:"VPLastUpdated"},Ln=["datetime"],Vn=b({__name:"VPDocFooterLastUpdated",setup(n){const{theme:e,page:t,lang:s}=O(),o=T(()=>new Date(t.value.lastUpdated)),a=T(()=>o.value.toISOString()),l=C("");return Z(()=>{he(()=>{var r,d,h;l.value=new Intl.DateTimeFormat((d=(r=e.value.lastUpdated)==null?void 0:r.formatOptions)!=null&&d.forceLocale?s.value:void 0,((h=e.value.lastUpdated)==null?void 0:h.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(o.value)})}),(r,d)=>{var h;return i(),p("p",Pn,[Q(N(((h=u(e).lastUpdated)==null?void 0:h.text)||u(e).lastUpdatedText||"Last updated")+": ",1),c("time",{datetime:a.value},N(l.value),9,Ln)])}}}),Tn=$(Vn,[["__scopeId","data-v-8b3062b1"]]),Nn={key:0,class:"VPDocFooter"},Cn={key:0,class:"edit-info"},In={key:0,class:"edit-link"},An={key:1,class:"last-updated"},Mn={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},En={class:"pager"},Bn=["innerHTML"],On=["innerHTML"],Hn={class:"pager"},Dn=["innerHTML"],xn=["innerHTML"],Fn=b({__name:"VPDocFooter",setup(n){const{theme:e,page:t,frontmatter:s}=O(),o=$n(),a=Sn(),l=T(()=>e.value.editLink&&s.value.editLink!==!1),r=T(()=>t.value.lastUpdated),d=T(()=>l.value||r.value||a.value.prev||a.value.next);return(h,_)=>{var m,g,I,V;return d.value?(i(),p("footer",Nn,[f(h.$slots,"doc-footer-before",{},void 0,!0),l.value||r.value?(i(),p("div",Cn,[l.value?(i(),p("div",In,[S(K,{class:"edit-link-button",href:u(o).url,"no-icon":!0},{default:v(()=>[_[0]||(_[0]=c("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),Q(" "+N(u(o).text),1)]),_:1},8,["href"])])):k("",!0),r.value?(i(),p("div",An,[S(Tn)])):k("",!0)])):k("",!0),(m=u(a).prev)!=null&&m.link||(g=u(a).next)!=null&&g.link?(i(),p("nav",Mn,[_[1]||(_[1]=c("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),c("div",En,[(I=u(a).prev)!=null&&I.link?(i(),w(K,{key:0,class:"pager-link prev",href:u(a).prev.link},{default:v(()=>{var M;return[c("span",{class:"desc",innerHTML:((M=u(e).docFooter)==null?void 0:M.prev)||"Previous page"},null,8,Bn),c("span",{class:"title",innerHTML:u(a).prev.text},null,8,On)]}),_:1},8,["href"])):k("",!0)]),c("div",Hn,[(V=u(a).next)!=null&&V.link?(i(),w(K,{key:0,class:"pager-link next",href:u(a).next.link},{default:v(()=>{var M;return[c("span",{class:"desc",innerHTML:((M=u(e).docFooter)==null?void 0:M.next)||"Next page"},null,8,Dn),c("span",{class:"title",innerHTML:u(a).next.text},null,8,xn)]}),_:1},8,["href"])):k("",!0)])])):k("",!0)])):k("",!0)}}}),Rn=$(Fn,[["__scopeId","data-v-1029f300"]]),jn={class:"container"},zn={class:"aside-container"},Un={class:"aside-content"},Gn={class:"content"},Kn={class:"content-container"},Wn={class:"main"},qn=b({__name:"VPDoc",setup(n){const{theme:e}=O(),t=_e(),{hasSidebar:s,hasAside:o,leftAside:a}=q(),l=T(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(r,d)=>{const h=ne("Content");return i(),p("div",{class:x(["VPDoc",{"has-sidebar":u(s),"has-aside":u(o)}])},[f(r.$slots,"doc-top",{},void 0,!0),c("div",jn,[u(o)?(i(),p("div",{key:0,class:x(["aside",{"left-aside":u(a)}])},[d[0]||(d[0]=c("div",{class:"aside-curtain"},null,-1)),c("div",zn,[c("div",Un,[S(yn,null,{"aside-top":v(()=>[f(r.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[f(r.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[f(r.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[f(r.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[f(r.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[f(r.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):k("",!0),c("div",Gn,[c("div",Kn,[f(r.$slots,"doc-before",{},void 0,!0),c("main",Wn,[S(h,{class:x(["vp-doc",[l.value,u(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),S(Rn,null,{"doc-footer-before":v(()=>[f(r.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),f(r.$slots,"doc-after",{},void 0,!0)])])]),f(r.$slots,"doc-bottom",{},void 0,!0)],2)}}}),Jn=$(qn,[["__scopeId","data-v-7e63da9a"]]),Yn=b({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(n){const e=n,t=T(()=>e.href&&Qe.test(e.href)),s=T(()=>e.tag||(e.href?"a":"button"));return(o,a)=>(i(),w(G(s.value),{class:x(["VPButton",[o.size,o.theme]]),href:o.href?u(Oe)(o.href):void 0,target:e.target??(t.value?"_blank":void 0),rel:e.rel??(t.value?"noreferrer":void 0)},{default:v(()=>[Q(N(o.text),1)]),_:1},8,["class","href","target","rel"]))}}),Xn=$(Yn,[["__scopeId","data-v-c6a7a1f8"]]),Qn=["src","alt"],Zn=b({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(n){return(e,t)=>{const s=ne("VPImage",!0);return e.image?(i(),p(D,{key:0},[typeof e.image=="string"||"src"in e.image?(i(),p("img",X({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:u(Ee)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Qn)):(i(),p(D,{key:1},[S(s,X({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),S(s,X({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):k("",!0)}}}),fe=$(Zn,[["__scopeId","data-v-6964cd3a"]]),eo={class:"container"},to={class:"main"},no={key:0,class:"name"},oo=["innerHTML"],so=["innerHTML"],ao=["innerHTML"],ro={key:0,class:"actions"},io={key:0,class:"image"},lo={class:"image-container"},uo=b({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(n){const e=ie("hero-image-slot-exists");return(t,s)=>(i(),p("div",{class:x(["VPHero",{"has-image":t.image||u(e)}])},[c("div",eo,[c("div",to,[f(t.$slots,"home-hero-info-before",{},void 0,!0),f(t.$slots,"home-hero-info",{},()=>[t.name?(i(),p("h1",no,[c("span",{innerHTML:t.name,class:"clip"},null,8,oo)])):k("",!0),t.text?(i(),p("p",{key:1,innerHTML:t.text,class:"text"},null,8,so)):k("",!0),t.tagline?(i(),p("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,ao)):k("",!0)],!0),f(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(i(),p("div",ro,[(i(!0),p(D,null,R(t.actions,o=>(i(),p("div",{key:o.link,class:"action"},[S(Xn,{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))])):k("",!0),f(t.$slots,"home-hero-actions-after",{},void 0,!0)]),t.image||u(e)?(i(),p("div",io,[c("div",lo,[s[0]||(s[0]=c("div",{class:"image-bg"},null,-1)),f(t.$slots,"home-hero-image",{},()=>[t.image?(i(),w(fe,{key:0,class:"image-src",image:t.image},null,8,["image"])):k("",!0)],!0)])])):k("",!0)])],2))}}),co=$(uo,[["__scopeId","data-v-258c8578"]]),po=b({__name:"VPHomeHero",setup(n){const{frontmatter:e}=O();return(t,s)=>u(e).hero?(i(),w(co,{key:0,class:"VPHomeHero",name:u(e).hero.name,text:u(e).hero.text,tagline:u(e).hero.tagline,image:u(e).hero.image,actions:u(e).hero.actions},{"home-hero-info-before":v(()=>[f(t.$slots,"home-hero-info-before")]),"home-hero-info":v(()=>[f(t.$slots,"home-hero-info")]),"home-hero-info-after":v(()=>[f(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":v(()=>[f(t.$slots,"home-hero-actions-after")]),"home-hero-image":v(()=>[f(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):k("",!0)}}),fo={class:"box"},vo={key:0,class:"icon"},ho=["innerHTML"],mo=["innerHTML"],_o=["innerHTML"],go={key:4,class:"link-text"},bo={class:"link-text-value"},ko=b({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(n){return(e,t)=>(i(),w(K,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:v(()=>[c("article",fo,[typeof e.icon=="object"&&e.icon.wrap?(i(),p("div",vo,[S(fe,{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"?(i(),w(fe,{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?(i(),p("div",{key:2,class:"icon",innerHTML:e.icon},null,8,ho)):k("",!0),c("h2",{class:"title",innerHTML:e.title},null,8,mo),e.details?(i(),p("p",{key:3,class:"details",innerHTML:e.details},null,8,_o)):k("",!0),e.linkText?(i(),p("div",go,[c("p",bo,[Q(N(e.linkText)+" ",1),t[0]||(t[0]=c("span",{class:"vpi-arrow-right link-text-icon"},null,-1))])])):k("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),yo=$(ko,[["__scopeId","data-v-65592672"]]),$o={key:0,class:"VPFeatures"},So={class:"container"},wo={class:"items"},Po=b({__name:"VPFeatures",props:{features:{}},setup(n){const e=n,t=T(()=>{const s=e.features.length;if(s){if(s===2)return"grid-2";if(s===3)return"grid-3";if(s%3===0)return"grid-6";if(s>3)return"grid-4"}else return});return(s,o)=>s.features?(i(),p("div",$o,[c("div",So,[c("div",wo,[(i(!0),p(D,null,R(s.features,a=>(i(),p("div",{key:a.title,class:x(["item",[t.value]])},[S(yo,{icon:a.icon,title:a.title,details:a.details,link:a.link,"link-text":a.linkText,rel:a.rel,target:a.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):k("",!0)}}),Lo=$(Po,[["__scopeId","data-v-480aaf38"]]),Vo=b({__name:"VPHomeFeatures",setup(n){const{frontmatter:e}=O();return(t,s)=>u(e).features?(i(),w(Lo,{key:0,class:"VPHomeFeatures",features:u(e).features},null,8,["features"])):k("",!0)}}),To=b({__name:"VPHomeContent",setup(n){const{width:e}=Vt({initialWidth:0,includeScrollbar:!1});return(t,s)=>(i(),p("div",{class:"vp-doc container",style:ge(u(e)?{"--vp-offset":`calc(50% - ${u(e)/2}px)`}:{})},[f(t.$slots,"default",{},void 0,!0)],4))}}),No=$(To,[["__scopeId","data-v-cb0365ba"]]),Co={class:"VPHome"},Io=b({__name:"VPHome",setup(n){const{frontmatter:e}=O();return(t,s)=>{const o=ne("Content");return i(),p("div",Co,[f(t.$slots,"home-hero-before",{},void 0,!0),S(po,null,{"home-hero-info-before":v(()=>[f(t.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[f(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[f(t.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[f(t.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[f(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),f(t.$slots,"home-hero-after",{},void 0,!0),f(t.$slots,"home-features-before",{},void 0,!0),S(Vo),f(t.$slots,"home-features-after",{},void 0,!0),u(e).markdownStyles!==!1?(i(),w(No,{key:0},{default:v(()=>[S(o)]),_:1})):(i(),w(o,{key:1}))])}}}),Ao=$(Io,[["__scopeId","data-v-844da7a5"]]),Mo={},Eo={class:"VPPage"};function Bo(n,e){const t=ne("Content");return i(),p("div",Eo,[f(n.$slots,"page-top"),S(t),f(n.$slots,"page-bottom")])}const Oo=$(Mo,[["render",Bo]]),Ho=b({__name:"VPContent",setup(n){const{page:e,frontmatter:t}=O(),{hasSidebar:s}=q();return(o,a)=>(i(),p("div",{class:x(["VPContent",{"has-sidebar":u(s),"is-home":u(t).layout==="home"}]),id:"VPContent"},[u(e).isNotFound?f(o.$slots,"not-found",{key:0},()=>[S(Zt)],!0):u(t).layout==="page"?(i(),w(Oo,{key:1},{"page-top":v(()=>[f(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[f(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):u(t).layout==="home"?(i(),w(Ao,{key:2},{"home-hero-before":v(()=>[f(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":v(()=>[f(o.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[f(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[f(o.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[f(o.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[f(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[f(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[f(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[f(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):u(t).layout&&u(t).layout!=="doc"?(i(),w(G(u(t).layout),{key:3})):(i(),w(Jn,{key:4},{"doc-top":v(()=>[f(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[f(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":v(()=>[f(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[f(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[f(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":v(()=>[f(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":v(()=>[f(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[f(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[f(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[f(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":v(()=>[f(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),Do=$(Ho,[["__scopeId","data-v-b50a54f7"]]),xo={class:"container"},Fo=["innerHTML"],Ro=["innerHTML"],jo=b({__name:"VPFooter",setup(n){const{theme:e,frontmatter:t}=O(),{hasSidebar:s}=q();return(o,a)=>u(e).footer&&u(t).footer!==!1?(i(),p("footer",{key:0,class:x(["VPFooter",{"has-sidebar":u(s)}])},[c("div",xo,[u(e).footer.message?(i(),p("p",{key:0,class:"message",innerHTML:u(e).footer.message},null,8,Fo)):k("",!0),u(e).footer.copyright?(i(),p("p",{key:1,class:"copyright",innerHTML:u(e).footer.copyright},null,8,Ro)):k("",!0)])],2)):k("",!0)}}),zo=$(jo,[["__scopeId","data-v-5f522880"]]);function Uo(){const{theme:n,frontmatter:e}=O(),t=Xe([]),s=T(()=>t.value.length>0);return me(()=>{t.value=He(e.value.outline??n.value.outline)}),{headers:t,hasLocalNav:s}}const Go={class:"menu-text"},Ko={class:"header"},Wo={class:"outline"},qo=b({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(n){const e=n,{theme:t}=O(),s=C(!1),o=C(0),a=C(),l=C();function r(m){var g;(g=a.value)!=null&&g.contains(m.target)||(s.value=!1)}W(s,m=>{if(m){document.addEventListener("click",r);return}document.removeEventListener("click",r)}),Le("Escape",()=>{s.value=!1}),me(()=>{s.value=!1});function d(){s.value=!s.value,o.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function h(m){m.target.classList.contains("outline-link")&&(l.value&&(l.value.style.transition="none"),Tt(()=>{s.value=!1}))}function _(){s.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(m,g)=>(i(),p("div",{class:"VPLocalNavOutlineDropdown",style:ge({"--vp-vh":o.value+"px"}),ref_key:"main",ref:a},[m.headers.length>0?(i(),p("button",{key:0,onClick:d,class:x({open:s.value})},[c("span",Go,N(u(at)(u(t))),1),g[0]||(g[0]=c("span",{class:"vpi-chevron-right icon"},null,-1))],2)):(i(),p("button",{key:1,onClick:_},N(u(t).returnToTopLabel||"Return to top"),1)),S(Me,{name:"flyout"},{default:v(()=>[s.value?(i(),p("div",{key:0,ref_key:"items",ref:l,class:"items",onClick:h},[c("div",Ko,[c("a",{class:"top-link",href:"#",onClick:_},N(u(t).returnToTopLabel||"Return to top"),1)]),c("div",Wo,[S(rt,{headers:m.headers},null,8,["headers"])])],512)):k("",!0)]),_:1})],4))}}),Jo=$(qo,[["__scopeId","data-v-4a43af2a"]]),Yo={class:"container"},Xo=["aria-expanded"],Qo={class:"menu-text"},Zo=b({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(n){const{theme:e,frontmatter:t}=O(),{hasSidebar:s}=q(),{headers:o}=Uo(),{y:a}=Ze(),l=C(0);Z(()=>{l.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),me(()=>{o.value=He(t.value.outline??e.value.outline)});const r=T(()=>o.value.length===0),d=T(()=>r.value&&!s.value),h=T(()=>({VPLocalNav:!0,"has-sidebar":s.value,empty:r.value,fixed:d.value}));return(_,m)=>u(t).layout!=="home"&&(!d.value||u(a)>=l.value)?(i(),p("div",{key:0,class:x(h.value)},[c("div",Yo,[u(s)?(i(),p("button",{key:0,class:"menu","aria-expanded":_.open,"aria-controls":"VPSidebarNav",onClick:m[0]||(m[0]=g=>_.$emit("open-menu"))},[m[1]||(m[1]=c("span",{class:"vpi-align-left menu-icon"},null,-1)),c("span",Qo,N(u(e).sidebarMenuLabel||"Menu"),1)],8,Xo)):k("",!0),S(Jo,{headers:u(o),navHeight:l.value},null,8,["headers","navHeight"])])],2)):k("",!0)}}),es=$(Zo,[["__scopeId","data-v-0d3dae9b"]]);function ts(){const n=C(!1);function e(){n.value=!0,window.addEventListener("resize",o)}function t(){n.value=!1,window.removeEventListener("resize",o)}function s(){n.value?t():e()}function o(){window.outerWidth>=768&&t()}const a=_e();return W(()=>a.path,t),{isScreenOpen:n,openScreen:e,closeScreen:t,toggleScreen:s}}const ns={},os={class:"VPSwitch",type:"button",role:"switch"},ss={class:"check"},as={key:0,class:"icon"};function rs(n,e){return i(),p("button",os,[c("span",ss,[n.$slots.default?(i(),p("span",as,[f(n.$slots,"default",{},void 0,!0)])):k("",!0)])])}const is=$(ns,[["render",rs],["__scopeId","data-v-dcbd64ca"]]),ls=b({__name:"VPSwitchAppearance",setup(n){const{isDark:e,theme:t}=O(),s=ie("toggle-appearance",()=>{e.value=!e.value}),o=C("");return Be(()=>{o.value=e.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme"}),(a,l)=>(i(),w(is,{title:o.value,class:"VPSwitchAppearance","aria-checked":u(e),onClick:u(s)},{default:v(()=>l[0]||(l[0]=[c("span",{class:"vpi-sun sun"},null,-1),c("span",{class:"vpi-moon moon"},null,-1)])),_:1},8,["title","aria-checked","onClick"]))}}),De=$(ls,[["__scopeId","data-v-54a8107f"]]),us={key:0,class:"VPNavBarAppearance"},cs=b({__name:"VPNavBarAppearance",setup(n){const{site:e}=O();return(t,s)=>u(e).appearance&&u(e).appearance!=="force-dark"&&u(e).appearance!=="force-auto"?(i(),p("div",us,[S(De)])):k("",!0)}}),ds=$(cs,[["__scopeId","data-v-eb0db891"]]),xe=C();let it=!1,we=0;function ps(n){const e=C(!1);if(be){!it&&fs(),we++;const t=W(xe,s=>{var o,a,l;s===n.el.value||(o=n.el.value)!=null&&o.contains(s)?(e.value=!0,(a=n.onFocus)==null||a.call(n)):(e.value=!1,(l=n.onBlur)==null||l.call(n))});re(()=>{t(),we--,we||vs()})}return Nt(e)}function fs(){document.addEventListener("focusin",lt),it=!0,xe.value=document.activeElement}function vs(){document.removeEventListener("focusin",lt)}function lt(){xe.value=document.activeElement}const hs={class:"VPMenuLink"},ms=["innerHTML"],_s=b({__name:"VPMenuLink",props:{item:{}},setup(n){const{page:e}=O();return(t,s)=>(i(),p("div",hs,[S(K,{class:x({active:u(te)(u(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon},{default:v(()=>[c("span",{innerHTML:t.item.text},null,8,ms)]),_:1},8,["class","href","target","rel","no-icon"])]))}}),ye=$(_s,[["__scopeId","data-v-56482214"]]),gs={class:"VPMenuGroup"},bs={key:0,class:"title"},ks=b({__name:"VPMenuGroup",props:{text:{},items:{}},setup(n){return(e,t)=>(i(),p("div",gs,[e.text?(i(),p("p",bs,N(e.text),1)):k("",!0),(i(!0),p(D,null,R(e.items,s=>(i(),p(D,null,["link"in s?(i(),w(ye,{key:0,item:s},null,8,["item"])):k("",!0)],64))),256))]))}}),ys=$(ks,[["__scopeId","data-v-277e819b"]]),$s={class:"VPMenu"},Ss={key:0,class:"items"},ws=b({__name:"VPMenu",props:{items:{}},setup(n){return(e,t)=>(i(),p("div",$s,[e.items?(i(),p("div",Ss,[(i(!0),p(D,null,R(e.items,s=>(i(),p(D,{key:JSON.stringify(s)},["link"in s?(i(),w(ye,{key:0,item:s},null,8,["item"])):"component"in s?(i(),w(G(s.component),X({key:1,ref_for:!0},s.props),null,16)):(i(),w(ys,{key:2,text:s.text,items:s.items},null,8,["text","items"]))],64))),128))])):k("",!0),f(e.$slots,"default",{},void 0,!0)]))}}),Ps=$(ws,[["__scopeId","data-v-7a64082b"]]),Ls=["aria-expanded","aria-label"],Vs={key:0,class:"text"},Ts=["innerHTML"],Ns={key:1,class:"vpi-more-horizontal icon"},Cs={class:"menu"},Is=b({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(n){const e=C(!1),t=C();ps({el:t,onBlur:s});function s(){e.value=!1}return(o,a)=>(i(),p("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:a[1]||(a[1]=l=>e.value=!0),onMouseleave:a[2]||(a[2]=l=>e.value=!1)},[c("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":o.label,onClick:a[0]||(a[0]=l=>e.value=!e.value)},[o.button||o.icon?(i(),p("span",Vs,[o.icon?(i(),p("span",{key:0,class:x([o.icon,"option-icon"])},null,2)):k("",!0),o.button?(i(),p("span",{key:1,innerHTML:o.button},null,8,Ts)):k("",!0),a[3]||(a[3]=c("span",{class:"vpi-chevron-down text-icon"},null,-1))])):(i(),p("span",Ns))],8,Ls),c("div",Cs,[S(Ps,{items:o.items},{default:v(()=>[f(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),Fe=$(Is,[["__scopeId","data-v-7a82dfa2"]]),As=["href","aria-label","innerHTML"],Ms=b({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(n){const e=n,t=T(()=>typeof e.icon=="object"?e.icon.svg:`<span class="vpi-social-${e.icon}" />`);return(s,o)=>(i(),p("a",{class:"VPSocialLink no-icon",href:s.link,"aria-label":s.ariaLabel??(typeof s.icon=="string"?s.icon:""),target:"_blank",rel:"noopener",innerHTML:t.value},null,8,As))}}),Es=$(Ms,[["__scopeId","data-v-ee681ff0"]]),Bs={class:"VPSocialLinks"},Os=b({__name:"VPSocialLinks",props:{links:{}},setup(n){return(e,t)=>(i(),p("div",Bs,[(i(!0),p(D,null,R(e.links,({link:s,icon:o,ariaLabel:a})=>(i(),w(Es,{key:s,icon:o,link:s,ariaLabel:a},null,8,["icon","link","ariaLabel"]))),128))]))}}),Re=$(Os,[["__scopeId","data-v-bc18471c"]]),Hs={key:0,class:"group translations"},Ds={class:"trans-title"},xs={key:1,class:"group"},Fs={class:"item appearance"},Rs={class:"label"},js={class:"appearance-action"},zs={key:2,class:"group"},Us={class:"item social-links"},Gs=b({__name:"VPNavBarExtra",setup(n){const{site:e,theme:t}=O(),{localeLinks:s,currentLang:o}=le({correspondingLink:!0}),a=T(()=>s.value.length&&o.value.label||e.value.appearance||t.value.socialLinks);return(l,r)=>a.value?(i(),w(Fe,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:v(()=>[u(s).length&&u(o).label?(i(),p("div",Hs,[c("p",Ds,N(u(o).label),1),(i(!0),p(D,null,R(u(s),d=>(i(),w(ye,{key:d.link,item:d},null,8,["item"]))),128))])):k("",!0),u(e).appearance&&u(e).appearance!=="force-dark"&&u(e).appearance!=="force-auto"?(i(),p("div",xs,[c("div",Fs,[c("p",Rs,N(u(t).darkModeSwitchLabel||"Appearance"),1),c("div",js,[S(De)])])])):k("",!0),u(t).socialLinks?(i(),p("div",zs,[c("div",Us,[S(Re,{class:"social-links-list",links:u(t).socialLinks},null,8,["links"])])])):k("",!0)]),_:1})):k("",!0)}}),Ks=$(Gs,[["__scopeId","data-v-1acbffaa"]]),Ws=["aria-expanded"],qs=b({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(n){return(e,t)=>(i(),p("button",{type:"button",class:x(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=s=>e.$emit("click"))},t[1]||(t[1]=[c("span",{class:"container"},[c("span",{class:"top"}),c("span",{class:"middle"}),c("span",{class:"bottom"})],-1)]),10,Ws))}}),Js=$(qs,[["__scopeId","data-v-3cd9addc"]]),Ys=["innerHTML"],Xs=b({__name:"VPNavBarMenuLink",props:{item:{}},setup(n){const{page:e}=O();return(t,s)=>(i(),w(K,{class:x({VPNavBarMenuLink:!0,active:u(te)(u(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon,tabindex:"0"},{default:v(()=>[c("span",{innerHTML:t.item.text},null,8,Ys)]),_:1},8,["class","href","target","rel","no-icon"]))}}),Qs=$(Xs,[["__scopeId","data-v-9fa52c6c"]]),Zs=b({__name:"VPNavBarMenuGroup",props:{item:{}},setup(n){const e=n,{page:t}=O(),s=a=>"component"in a?!1:"link"in a?te(t.value.relativePath,a.link,!!e.item.activeMatch):a.items.some(s),o=T(()=>s(e.item));return(a,l)=>(i(),w(Fe,{class:x({VPNavBarMenuGroup:!0,active:u(te)(u(t).relativePath,a.item.activeMatch,!!a.item.activeMatch)||o.value}),button:a.item.text,items:a.item.items},null,8,["class","button","items"]))}}),ea={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},ta=b({__name:"VPNavBarMenu",setup(n){const{theme:e}=O();return(t,s)=>u(e).nav?(i(),p("nav",ea,[s[0]||(s[0]=c("span",{id:"main-nav-aria-label",class:"visually-hidden"}," Main Navigation ",-1)),(i(!0),p(D,null,R(u(e).nav,o=>(i(),p(D,{key:JSON.stringify(o)},["link"in o?(i(),w(Qs,{key:0,item:o},null,8,["item"])):"component"in o?(i(),w(G(o.component),X({key:1,ref_for:!0},o.props),null,16)):(i(),w(Zs,{key:2,item:o},null,8,["item"]))],64))),128))])):k("",!0)}}),na=$(ta,[["__scopeId","data-v-dbedeb48"]]);function oa(n){const{localeIndex:e,theme:t}=O();function s(o){var V,M,y;const a=o.split("."),l=(V=t.value.search)==null?void 0:V.options,r=l&&typeof l=="object",d=r&&((y=(M=l.locales)==null?void 0:M[e.value])==null?void 0:y.translations)||null,h=r&&l.translations||null;let _=d,m=h,g=n;const I=a.pop();for(const F of a){let z=null;const J=g==null?void 0:g[F];J&&(z=g=J);const ee=m==null?void 0:m[F];ee&&(z=m=ee);const Y=_==null?void 0:_[F];Y&&(z=_=Y),J||(g=z),ee||(m=z),Y||(_=z)}return(_==null?void 0:_[I])??(m==null?void 0:m[I])??(g==null?void 0:g[I])??""}return s}const sa=["aria-label"],aa={class:"DocSearch-Button-Container"},ra={class:"DocSearch-Button-Placeholder"},Ge=b({__name:"VPNavBarSearchButton",setup(n){const t=oa({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(s,o)=>(i(),p("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":u(t)("button.buttonAriaLabel")},[c("span",aa,[o[0]||(o[0]=c("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1)),c("span",ra,N(u(t)("button.buttonText")),1)]),o[1]||(o[1]=c("span",{class:"DocSearch-Button-Keys"},[c("kbd",{class:"DocSearch-Button-Key"}),c("kbd",{class:"DocSearch-Button-Key"},"K")],-1))],8,sa))}}),ia={class:"VPNavBarSearch"},la={id:"local-search"},ua={key:1,id:"docsearch"},ca=b({__name:"VPNavBarSearch",setup(n){const e=Ct(()=>It(()=>import("./VPLocalSearchBox.y1aTAI8X.js"),__vite__mapDeps([0,1]))),t=()=>null,{theme:s}=O(),o=C(!1),a=C(!1);Z(()=>{});function l(){o.value||(o.value=!0,setTimeout(r,16))}function r(){const m=new Event("keydown");m.key="k",m.metaKey=!0,window.dispatchEvent(m),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||r()},16)}function d(m){const g=m.target,I=g.tagName;return g.isContentEditable||I==="INPUT"||I==="SELECT"||I==="TEXTAREA"}const h=C(!1);Le("k",m=>{(m.ctrlKey||m.metaKey)&&(m.preventDefault(),h.value=!0)}),Le("/",m=>{d(m)||(m.preventDefault(),h.value=!0)});const _="local";return(m,g)=>{var I;return i(),p("div",ia,[u(_)==="local"?(i(),p(D,{key:0},[h.value?(i(),w(u(e),{key:0,onClose:g[0]||(g[0]=V=>h.value=!1)})):k("",!0),c("div",la,[S(Ge,{onClick:g[1]||(g[1]=V=>h.value=!0)})])],64)):u(_)==="algolia"?(i(),p(D,{key:1},[o.value?(i(),w(u(t),{key:0,algolia:((I=u(s).search)==null?void 0:I.options)??u(s).algolia,onVnodeBeforeMount:g[2]||(g[2]=V=>a.value=!0)},null,8,["algolia"])):k("",!0),a.value?k("",!0):(i(),p("div",ua,[S(Ge,{onClick:l})]))],64)):k("",!0)])}}}),da=b({__name:"VPNavBarSocialLinks",setup(n){const{theme:e}=O();return(t,s)=>u(e).socialLinks?(i(),w(Re,{key:0,class:"VPNavBarSocialLinks",links:u(e).socialLinks},null,8,["links"])):k("",!0)}}),pa=$(da,[["__scopeId","data-v-6b96cb00"]]),fa=["href","rel","target"],va={key:1},ha={key:2},ma=b({__name:"VPNavBarTitle",setup(n){const{site:e,theme:t}=O(),{hasSidebar:s}=q(),{currentLang:o}=le(),a=T(()=>{var d;return typeof t.value.logoLink=="string"?t.value.logoLink:(d=t.value.logoLink)==null?void 0:d.link}),l=T(()=>{var d;return typeof t.value.logoLink=="string"||(d=t.value.logoLink)==null?void 0:d.rel}),r=T(()=>{var d;return typeof t.value.logoLink=="string"||(d=t.value.logoLink)==null?void 0:d.target});return(d,h)=>(i(),p("div",{class:x(["VPNavBarTitle",{"has-sidebar":u(s)}])},[c("a",{class:"title",href:a.value??u(Oe)(u(o).link),rel:l.value,target:r.value},[f(d.$slots,"nav-bar-title-before",{},void 0,!0),u(t).logo?(i(),w(fe,{key:0,class:"logo",image:u(t).logo},null,8,["image"])):k("",!0),u(t).siteTitle?(i(),p("span",va,N(u(t).siteTitle),1)):u(t).siteTitle===void 0?(i(),p("span",ha,N(u(e).title),1)):k("",!0),f(d.$slots,"nav-bar-title-after",{},void 0,!0)],8,fa)],2))}}),_a=$(ma,[["__scopeId","data-v-4ec9fff3"]]),ga={class:"items"},ba={class:"title"},ka=b({__name:"VPNavBarTranslations",setup(n){const{theme:e}=O(),{localeLinks:t,currentLang:s}=le({correspondingLink:!0});return(o,a)=>u(t).length&&u(s).label?(i(),w(Fe,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:u(e).langMenuLabel||"Change language"},{default:v(()=>[c("div",ga,[c("p",ba,N(u(s).label),1),(i(!0),p(D,null,R(u(t),l=>(i(),w(ye,{key:l.link,item:l},null,8,["item"]))),128))])]),_:1},8,["label"])):k("",!0)}}),ya=$(ka,[["__scopeId","data-v-1cbd8bfb"]]),$a={class:"wrapper"},Sa={class:"container"},wa={class:"title"},Pa={class:"content"},La={class:"content-body"},Va=b({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(n){const e=n,{y:t}=Ze(),{hasSidebar:s}=q(),{frontmatter:o}=O(),a=C({});return Be(()=>{a.value={"has-sidebar":s.value,home:o.value.layout==="home",top:t.value===0,"screen-open":e.isScreenOpen}}),(l,r)=>(i(),p("div",{class:x(["VPNavBar",a.value])},[c("div",$a,[c("div",Sa,[c("div",wa,[S(_a,null,{"nav-bar-title-before":v(()=>[f(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[f(l.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),c("div",Pa,[c("div",La,[f(l.$slots,"nav-bar-content-before",{},void 0,!0),S(ca,{class:"search"}),S(na,{class:"menu"}),S(ya,{class:"translations"}),S(ds,{class:"appearance"}),S(pa,{class:"social-links"}),S(Ks,{class:"extra"}),f(l.$slots,"nav-bar-content-after",{},void 0,!0),S(Js,{class:"hamburger",active:l.isScreenOpen,onClick:r[0]||(r[0]=d=>l.$emit("toggle-screen"))},null,8,["active"])])])])]),r[1]||(r[1]=c("div",{class:"divider"},[c("div",{class:"divider-line"})],-1))],2))}}),Ta=$(Va,[["__scopeId","data-v-63199a01"]]),Na={key:0,class:"VPNavScreenAppearance"},Ca={class:"text"},Ia=b({__name:"VPNavScreenAppearance",setup(n){const{site:e,theme:t}=O();return(s,o)=>u(e).appearance&&u(e).appearance!=="force-dark"&&u(e).appearance!=="force-auto"?(i(),p("div",Na,[c("p",Ca,N(u(t).darkModeSwitchLabel||"Appearance"),1),S(De)])):k("",!0)}}),Aa=$(Ia,[["__scopeId","data-v-9b508ecd"]]),Ma=["innerHTML"],Ea=b({__name:"VPNavScreenMenuLink",props:{item:{}},setup(n){const e=ie("close-screen");return(t,s)=>(i(),w(K,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon,onClick:u(e)},{default:v(()=>[c("span",{innerHTML:t.item.text},null,8,Ma)]),_:1},8,["href","target","rel","no-icon","onClick"]))}}),Ba=$(Ea,[["__scopeId","data-v-9e7f5388"]]),Oa=["innerHTML"],Ha=b({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(n){const e=ie("close-screen");return(t,s)=>(i(),w(K,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon,onClick:u(e)},{default:v(()=>[c("span",{innerHTML:t.item.text},null,8,Oa)]),_:1},8,["href","target","rel","no-icon","onClick"]))}}),ut=$(Ha,[["__scopeId","data-v-8f5e61de"]]),Da={class:"VPNavScreenMenuGroupSection"},xa={key:0,class:"title"},Fa=b({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(n){return(e,t)=>(i(),p("div",Da,[e.text?(i(),p("p",xa,N(e.text),1)):k("",!0),(i(!0),p(D,null,R(e.items,s=>(i(),w(ut,{key:s.text,item:s},null,8,["item"]))),128))]))}}),Ra=$(Fa,[["__scopeId","data-v-fb8bc62d"]]),ja=["aria-controls","aria-expanded"],za=["innerHTML"],Ua=["id"],Ga={key:0,class:"item"},Ka={key:1,class:"item"},Wa={key:2,class:"group"},qa=b({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(n){const e=n,t=C(!1),s=T(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function o(){t.value=!t.value}return(a,l)=>(i(),p("div",{class:x(["VPNavScreenMenuGroup",{open:t.value}])},[c("button",{class:"button","aria-controls":s.value,"aria-expanded":t.value,onClick:o},[c("span",{class:"button-text",innerHTML:a.text},null,8,za),l[0]||(l[0]=c("span",{class:"vpi-plus button-icon"},null,-1))],8,ja),c("div",{id:s.value,class:"items"},[(i(!0),p(D,null,R(a.items,r=>(i(),p(D,{key:JSON.stringify(r)},["link"in r?(i(),p("div",Ga,[S(ut,{item:r},null,8,["item"])])):"component"in r?(i(),p("div",Ka,[(i(),w(G(r.component),X({ref_for:!0},r.props,{"screen-menu":""}),null,16))])):(i(),p("div",Wa,[S(Ra,{text:r.text,items:r.items},null,8,["text","items"])]))],64))),128))],8,Ua)],2))}}),Ja=$(qa,[["__scopeId","data-v-085290c8"]]),Ya={key:0,class:"VPNavScreenMenu"},Xa=b({__name:"VPNavScreenMenu",setup(n){const{theme:e}=O();return(t,s)=>u(e).nav?(i(),p("nav",Ya,[(i(!0),p(D,null,R(u(e).nav,o=>(i(),p(D,{key:JSON.stringify(o)},["link"in o?(i(),w(Ba,{key:0,item:o},null,8,["item"])):"component"in o?(i(),w(G(o.component),X({key:1,ref_for:!0},o.props,{"screen-menu":""}),null,16)):(i(),w(Ja,{key:2,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):k("",!0)}}),Qa=b({__name:"VPNavScreenSocialLinks",setup(n){const{theme:e}=O();return(t,s)=>u(e).socialLinks?(i(),w(Re,{key:0,class:"VPNavScreenSocialLinks",links:u(e).socialLinks},null,8,["links"])):k("",!0)}}),Za={class:"list"},er=b({__name:"VPNavScreenTranslations",setup(n){const{localeLinks:e,currentLang:t}=le({correspondingLink:!0}),s=C(!1);function o(){s.value=!s.value}return(a,l)=>u(e).length&&u(t).label?(i(),p("div",{key:0,class:x(["VPNavScreenTranslations",{open:s.value}])},[c("button",{class:"title",onClick:o},[l[0]||(l[0]=c("span",{class:"vpi-languages icon lang"},null,-1)),Q(" "+N(u(t).label)+" ",1),l[1]||(l[1]=c("span",{class:"vpi-chevron-down icon chevron"},null,-1))]),c("ul",Za,[(i(!0),p(D,null,R(u(e),r=>(i(),p("li",{key:r.link,class:"item"},[S(K,{class:"link",href:r.link},{default:v(()=>[Q(N(r.text),1)]),_:2},1032,["href"])]))),128))])],2)):k("",!0)}}),tr=$(er,[["__scopeId","data-v-7cc4f094"]]),nr={class:"container"},or=b({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(n){const e=C(null),t=et(be?document.body:null);return(s,o)=>(i(),w(Me,{name:"fade",onEnter:o[0]||(o[0]=a=>t.value=!0),onAfterLeave:o[1]||(o[1]=a=>t.value=!1)},{default:v(()=>[s.open?(i(),p("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[c("div",nr,[f(s.$slots,"nav-screen-content-before",{},void 0,!0),S(Xa,{class:"menu"}),S(tr,{class:"translations"}),S(Aa,{class:"appearance"}),S(Qa,{class:"social-links"}),f(s.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):k("",!0)]),_:3}))}}),sr=$(or,[["__scopeId","data-v-515c5fdb"]]),ar={key:0,class:"VPNav"},rr=b({__name:"VPNav",setup(n){const{isScreenOpen:e,closeScreen:t,toggleScreen:s}=ts(),{frontmatter:o}=O(),a=T(()=>o.value.navbar!==!1);return tt("close-screen",t),he(()=>{be&&document.documentElement.classList.toggle("hide-nav",!a.value)}),(l,r)=>a.value?(i(),p("header",ar,[S(Ta,{"is-screen-open":u(e),onToggleScreen:u(s)},{"nav-bar-title-before":v(()=>[f(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[f(l.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[f(l.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[f(l.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),S(sr,{open:u(e)},{"nav-screen-content-before":v(()=>[f(l.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[f(l.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):k("",!0)}}),ir=$(rr,[["__scopeId","data-v-25a2643a"]]),lr=["role","tabindex"],ur={key:1,class:"items"},cr=b({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(n){const e=n,{collapsed:t,collapsible:s,isLink:o,isActiveLink:a,hasActiveLink:l,hasChildren:r,toggle:d}=on(T(()=>e.item)),h=T(()=>r.value?"section":"div"),_=T(()=>o.value?"a":"div"),m=T(()=>r.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),g=T(()=>o.value?void 0:"button"),I=T(()=>[[`level-${e.depth}`],{collapsible:s.value},{collapsed:t.value},{"is-link":o.value},{"is-active":a.value},{"has-active":l.value}]);function V(y){"key"in y&&y.key!=="Enter"||!e.item.link&&d()}function M(){e.item.link&&d()}return(y,F)=>{const z=ne("VPSidebarItem",!0);return i(),w(G(h.value),{class:x(["VPSidebarItem",I.value])},{default:v(()=>[y.item.text?(i(),p("div",X({key:0,class:"item",role:g.value},At(y.item.items?{click:V,keydown:V}:{},!0),{tabindex:y.item.items&&0}),[F[1]||(F[1]=c("div",{class:"indicator"},null,-1)),y.item.link?(i(),w(K,{key:0,tag:_.value,class:"link",href:y.item.link,rel:y.item.rel,target:y.item.target},{default:v(()=>[(i(),w(G(m.value),{class:"text",innerHTML:y.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(i(),w(G(m.value),{key:1,class:"text",innerHTML:y.item.text},null,8,["innerHTML"])),y.item.collapsed!=null&&y.item.items&&y.item.items.length?(i(),p("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:M,onKeydown:Mt(M,["enter"]),tabindex:"0"},F[0]||(F[0]=[c("span",{class:"vpi-chevron-right caret-icon"},null,-1)]),32)):k("",!0)],16,lr)):k("",!0),y.item.items&&y.item.items.length?(i(),p("div",ur,[y.depth<5?(i(!0),p(D,{key:0},R(y.item.items,J=>(i(),w(z,{key:J.text,item:J,depth:y.depth+1},null,8,["item","depth"]))),128)):k("",!0)])):k("",!0)]),_:1},8,["class"])}}}),dr=$(cr,[["__scopeId","data-v-9aa710e1"]]),pr=b({__name:"VPSidebarGroup",props:{items:{}},setup(n){const e=C(!0);let t=null;return Z(()=>{t=setTimeout(()=>{t=null,e.value=!1},300)}),Et(()=>{t!=null&&(clearTimeout(t),t=null)}),(s,o)=>(i(!0),p(D,null,R(s.items,a=>(i(),p("div",{key:a.text,class:x(["group",{"no-transition":e.value}])},[S(dr,{item:a,depth:0},null,8,["item"])],2))),128))}}),fr=$(pr,[["__scopeId","data-v-d85765a1"]]),vr={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},hr=b({__name:"VPSidebar",props:{open:{type:Boolean}},setup(n){const{sidebarGroups:e,hasSidebar:t}=q(),s=n,o=C(null),a=et(be?document.body:null);W([s,o],()=>{var r;s.open?(a.value=!0,(r=o.value)==null||r.focus()):a.value=!1},{immediate:!0,flush:"post"});const l=C(0);return W(e,()=>{l.value+=1},{deep:!0}),(r,d)=>u(t)?(i(),p("aside",{key:0,class:x(["VPSidebar",{open:r.open}]),ref_key:"navEl",ref:o,onClick:d[0]||(d[0]=nt(()=>{},["stop"]))},[d[2]||(d[2]=c("div",{class:"curtain"},null,-1)),c("nav",vr,[d[1]||(d[1]=c("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),f(r.$slots,"sidebar-nav-before",{},void 0,!0),(i(),w(fr,{items:u(e),key:l.value},null,8,["items"])),f(r.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):k("",!0)}}),mr=$(hr,[["__scopeId","data-v-e6bcd7cc"]]),_r=b({__name:"VPSkipLink",setup(n){const e=_e(),t=C();W(()=>e.path,()=>t.value.focus());function s({target:o}){const a=document.getElementById(decodeURIComponent(o.hash).slice(1));if(a){const l=()=>{a.removeAttribute("tabindex"),a.removeEventListener("blur",l)};a.setAttribute("tabindex","-1"),a.addEventListener("blur",l),a.focus(),window.scrollTo(0,0)}}return(o,a)=>(i(),p(D,null,[c("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),c("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:s}," Skip to content ")],64))}}),gr=$(_r,[["__scopeId","data-v-f07aeb82"]]),br=b({__name:"Layout",setup(n){const{isOpen:e,open:t,close:s}=q(),o=_e();W(()=>o.path,s),nn(e,s);const{frontmatter:a}=O(),l=Bt(),r=T(()=>!!l["home-hero-image"]);return tt("hero-image-slot-exists",r),(d,h)=>{const _=ne("Content");return u(a).layout!==!1?(i(),p("div",{key:0,class:x(["Layout",u(a).pageClass])},[f(d.$slots,"layout-top",{},void 0,!0),S(gr),S(zt,{class:"backdrop",show:u(e),onClick:u(s)},null,8,["show","onClick"]),S(ir,null,{"nav-bar-title-before":v(()=>[f(d.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[f(d.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[f(d.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[f(d.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":v(()=>[f(d.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[f(d.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),S(es,{open:u(e),onOpenMenu:u(t)},null,8,["open","onOpenMenu"]),S(mr,{open:u(e)},{"sidebar-nav-before":v(()=>[f(d.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":v(()=>[f(d.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),S(Do,null,{"page-top":v(()=>[f(d.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[f(d.$slots,"page-bottom",{},void 0,!0)]),"not-found":v(()=>[f(d.$slots,"not-found",{},void 0,!0)]),"home-hero-before":v(()=>[f(d.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":v(()=>[f(d.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[f(d.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[f(d.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[f(d.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[f(d.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[f(d.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[f(d.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[f(d.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":v(()=>[f(d.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[f(d.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[f(d.$slots,"doc-after",{},void 0,!0)]),"doc-top":v(()=>[f(d.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[f(d.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":v(()=>[f(d.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[f(d.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[f(d.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[f(d.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[f(d.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[f(d.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),S(zo),f(d.$slots,"layout-bottom",{},void 0,!0)],2)):(i(),w(_,{key:1}))}}}),kr=$(br,[["__scopeId","data-v-dd9e51f4"]]),ct={Layout:kr,enhanceApp:({app:n})=>{n.component("Badge",Ft)}},je="LiteyukiStudio",ze="LiteyukiBot",yr="https://api.github.com",$r="https://git.liteyuki.icu/api/v1",Sr="https://api.liteyuki.icu/online",wr="https://api.liteyuki.icu/count",Pr="https://api.liteyuki.icu/visit",Lr="https://api.liteyuki.icu/visit_count",se=`https://github.com/${je}/${ze}`,Ke="https://starmap.liteyuki.icu";async function Vr(){try{const n=`${$r}/repos/${je}/${ze}`;console.log(n);const t=await(await fetch(n)).json();return{stars:t.stars_count,forks:t.forks_count,watchers:t.watchers_count,issues:0,prs:0,size:t.size}}catch{return{stars:-1,forks:-1,watchers:-1,issues:-1,prs:-1,size:-1}}}async function Tr(){try{const e=await(await fetch(`${yr}/repos/${je}/${ze}`)).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}}}async function Nr(){const n=await Tr(),e=await Vr();return{stars:n.stars+e.stars,forks:n.forks+e.forks,watchers:n.watchers+e.watchers,issues:n.issues+e.issues,prs:n.prs+e.prs,size:n.size+e.size}}const oe={getTotal:async()=>{try{return(await(await fetch(wr)).json()).register}catch{return-1}},getOnline:async()=>{try{return(await(await fetch(Sr)).json()).online}catch{return-1}},getGithubStats:Nr,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}},getVisitCount:async()=>{try{return(await(await fetch(Lr)).json()).count}catch{return-1}}};function Cr(){const n="deviceId";let e=localStorage.getItem(n);return e||(e=Ar(),localStorage.setItem(n,e)),e}async function Ir(){const n=Cr();try{await fetch(Pr,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({device_id:n}).toString()})}catch(e){console.error("Failed to upload visit record:",e)}}function Ar(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var e=Math.random()*16|0,t=n==="x"?e:e&3|8;return t.toString(16)})}/*!
* vue-router v4.4.5
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/var We;(function(n){n.pop="pop",n.push="push"})(We||(We={}));var qe;(function(n){n.back="back",n.forward="forward",n.unknown=""})(qe||(qe={}));var Je;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(Je||(Je={}));const Mr=Symbol("");function Er(n,e,t){const s=()=>{n[e].delete(t)};re(s),Ot(s),Ht(()=>{n[e].add(t)}),n[e].add(t)}function Br(n){const e=ie(Mr,{}).value;e&&Er(e,"updateGuards",n)}const Or={class:"stats-bar-content"},Hr={class:"stats-bar"},Dr={class:"stats-info"},xr={class:"stats-title"},Fr={class:"sections"},Rr=["href"],jr={class:"section-tab"},zr={class:"text"},Ur={class:"number"},Gr=b({__name:"StatsBar",setup(n){const{Layout:e}=ct;let t=null;const s={total:{name:"total",color:"#00a6ff",value:C(-1),link:Ke},online:{name:"online",color:"#7eff7e",value:C(-1),link:Ke},stars:{name:"stars",color:"#ffcc00",value:C(-1),link:`${se}/stargazers`},forks:{name:"forks",color:"#ff6600",value:C(-1),link:`${se}/forks`},issues:{name:"issues",color:"#ff0000",value:C(-1),link:`${se}/issues`},prs:{name:"prs",color:"#f15df1",value:C(-1),link:`${se}/pulls`},plugins:{name:"plugins",color:"#a766ff",value:C(-1),link:"./store/plugin"},resources:{name:"resources",color:"#5a54fa",value:C(-1),link:"./store/resource"},visitors:{name:"visitors",color:"#00a6ff",value:C(-1),link:se}};async function o(){[s.online.value.value,s.total.value.value,s.plugins.value.value,s.resources.value.value,s.visitors.value.value,t]=await Promise.all([oe.getOnline(),oe.getTotal(),oe.getPluginNum(),oe.getResourceNum(),oe.getVisitCount(),oe.getGithubStats()]),s.stars.value.value=(t==null?void 0:t.stars)||0,s.forks.value.value=(t==null?void 0:t.forks)||0,s.issues.value.value=(t==null?void 0:t.issues)||0,s.prs.value.value=(t==null?void 0:t.prs)||0}function a(l){return l.value.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}return Z(()=>{const l=setInterval(o,1e4);o(),Ir(),re(()=>{clearInterval(l)})}),Br(()=>{xt()}),console.log(` _ _ _ _ _ ____ _
| | (_) | | | (_) _ \\ | |
| | _| |_ ___ _ _ _ _| | ___| |_) | ___ | |_
| | | | __/ _ \\ | | | | | | |/ / | _ < / _ \\| __|
| |____| | || __/ |_| | |_| | <| | |_) | (_) | |_
|______|_|\\__\\___|\\__, |\\__,_|_|\\_\\_|____/ \\___/ \\__|
__/ |
|___/ `),console.log(j("easterEgg")),(l,r)=>(i(),w(u(e),null,{"home-features-before":v(()=>[c("div",Or,[c("div",Hr,[c("div",Dr,[c("div",xr,N(u(j)("stats")),1),c("div",Fr,[(i(!0),p(D,null,R(Object.values(s),d=>(i(),p("div",{key:d.name,class:"section"},[c("a",{href:d.link,target:"_blank"},[c("div",jr,[c("span",{class:"dot",style:ge({backgroundColor:d.color})},null,4),c("span",zr,N(u(j)(d.name)),1)]),c("div",Ur,N(a(d.value)),1)],8,Rr)]))),128))])]),r[0]||(r[0]=c("div",{class:"starmap"},[c("iframe",{src:"https://starmap.liteyuki.icu/",width:"100%",height:"300px",class:"gamma"})],-1))])])]),_:1}))}}),Ye=$(Gr,[["__scopeId","data-v-2391887b"]]);var Kr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var dt={exports:{}};/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/(function(n,e){(function(s,o){n.exports=o()})(Kr,function(){return function(){var t={686:function(a,l,r){r.d(l,{default:function(){return $t}});var d=r(279),h=r.n(d),_=r(370),m=r.n(_),g=r(817),I=r.n(g);function V(B){try{return document.execCommand(B)}catch{return!1}}var M=function(L){var P=I()(L);return V("cut"),P},y=M;function F(B){var L=document.documentElement.getAttribute("dir")==="rtl",P=document.createElement("textarea");P.style.fontSize="12pt",P.style.border="0",P.style.padding="0",P.style.margin="0",P.style.position="absolute",P.style[L?"right":"left"]="-9999px";var A=window.pageYOffset||document.documentElement.scrollTop;return P.style.top="".concat(A,"px"),P.setAttribute("readonly",""),P.value=B,P}var z=function(L,P){var A=F(L);P.container.appendChild(A);var E=I()(A);return V("copy"),A.remove(),E},J=function(L){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},A="";return typeof L=="string"?A=z(L,P):L instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(L==null?void 0:L.type)?A=z(L.value,P):(A=I()(L),V("copy")),A},ee=J;function Y(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Y=function(P){return typeof P}:Y=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},Y(B)}var pt=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=L.action,A=P===void 0?"copy":P,E=L.container,H=L.target,U=L.text;if(A!=="copy"&&A!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(H!==void 0)if(H&&Y(H)==="object"&&H.nodeType===1){if(A==="copy"&&H.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(A==="cut"&&(H.hasAttribute("readonly")||H.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(U)return ee(U,{container:E});if(H)return A==="cut"?y(H):ee(H,{container:E})},ft=pt;function ae(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ae=function(P){return typeof P}:ae=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},ae(B)}function vt(B,L){if(!(B instanceof L))throw new TypeError("Cannot call a class as a function")}function Ue(B,L){for(var P=0;P<L.length;P++){var A=L[P];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(B,A.key,A)}}function ht(B,L,P){return L&&Ue(B.prototype,L),P&&Ue(B,P),B}function mt(B,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(L&&L.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),L&&$e(B,L)}function $e(B,L){return $e=Object.setPrototypeOf||function(A,E){return A.__proto__=E,A},$e(B,L)}function _t(B){var L=kt();return function(){var A=ue(B),E;if(L){var H=ue(this).constructor;E=Reflect.construct(A,arguments,H)}else E=A.apply(this,arguments);return gt(this,E)}}function gt(B,L){return L&&(ae(L)==="object"||typeof L=="function")?L:bt(B)}function bt(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function kt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ue(B){return ue=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},ue(B)}function Se(B,L){var P="data-clipboard-".concat(B);if(L.hasAttribute(P))return L.getAttribute(P)}var yt=function(B){mt(P,B);var L=_t(P);function P(A,E){var H;return vt(this,P),H=L.call(this),H.resolveOptions(E),H.listenClick(A),H}return ht(P,[{key:"resolveOptions",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof E.action=="function"?E.action:this.defaultAction,this.target=typeof E.target=="function"?E.target:this.defaultTarget,this.text=typeof E.text=="function"?E.text:this.defaultText,this.container=ae(E.container)==="object"?E.container:document.body}},{key:"listenClick",value:function(E){var H=this;this.listener=m()(E,"click",function(U){return H.onClick(U)})}},{key:"onClick",value:function(E){var H=E.delegateTarget||E.currentTarget,U=this.action(H)||"copy",ce=ft({action:U,container:this.container,target:this.target(H),text:this.text(H)});this.emit(ce?"success":"error",{action:U,text:ce,trigger:H,clearSelection:function(){H&&H.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(E){return Se("action",E)}},{key:"defaultTarget",value:function(E){var H=Se("target",E);if(H)return document.querySelector(H)}},{key:"defaultText",value:function(E){return Se("text",E)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(E){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return ee(E,H)}},{key:"cut",value:function(E){return y(E)}},{key:"isSupported",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],H=typeof E=="string"?[E]:E,U=!!document.queryCommandSupported;return H.forEach(function(ce){U=U&&!!document.queryCommandSupported(ce)}),U}}]),P}(h()),$t=yt},828:function(a){var l=9;if(typeof Element<"u"&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}function d(h,_){for(;h&&h.nodeType!==l;){if(typeof h.matches=="function"&&h.matches(_))return h;h=h.parentNode}}a.exports=d},438:function(a,l,r){var d=r(828);function h(g,I,V,M,y){var F=m.apply(this,arguments);return g.addEventListener(V,F,y),{destroy:function(){g.removeEventListener(V,F,y)}}}function _(g,I,V,M,y){return typeof g.addEventListener=="function"?h.apply(null,arguments):typeof V=="function"?h.bind(null,document).apply(null,arguments):(typeof g=="string"&&(g=document.querySelectorAll(g)),Array.prototype.map.call(g,function(F){return h(F,I,V,M,y)}))}function m(g,I,V,M){return function(y){y.delegateTarget=d(y.target,I),y.delegateTarget&&M.call(g,y)}}a.exports=_},879:function(a,l){l.node=function(r){return r!==void 0&&r instanceof HTMLElement&&r.nodeType===1},l.nodeList=function(r){var d=Object.prototype.toString.call(r);return r!==void 0&&(d==="[object NodeList]"||d==="[object HTMLCollection]")&&"length"in r&&(r.length===0||l.node(r[0]))},l.string=function(r){return typeof r=="string"||r instanceof String},l.fn=function(r){var d=Object.prototype.toString.call(r);return d==="[object Function]"}},370:function(a,l,r){var d=r(879),h=r(438);function _(V,M,y){if(!V&&!M&&!y)throw new Error("Missing required arguments");if(!d.string(M))throw new TypeError("Second argument must be a String");if(!d.fn(y))throw new TypeError("Third argument must be a Function");if(d.node(V))return m(V,M,y);if(d.nodeList(V))return g(V,M,y);if(d.string(V))return I(V,M,y);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function m(V,M,y){return V.addEventListener(M,y),{destroy:function(){V.removeEventListener(M,y)}}}function g(V,M,y){return Array.prototype.forEach.call(V,function(F){F.addEventListener(M,y)}),{destroy:function(){Array.prototype.forEach.call(V,function(F){F.removeEventListener(M,y)})}}}function I(V,M,y){return h(document.body,V,M,y)}a.exports=_},817:function(a){function l(r){var d;if(r.nodeName==="SELECT")r.focus(),d=r.value;else if(r.nodeName==="INPUT"||r.nodeName==="TEXTAREA"){var h=r.hasAttribute("readonly");h||r.setAttribute("readonly",""),r.select(),r.setSelectionRange(0,r.value.length),h||r.removeAttribute("readonly"),d=r.value}else{r.hasAttribute("contenteditable")&&r.focus();var _=window.getSelection(),m=document.createRange();m.selectNodeContents(r),_.removeAllRanges(),_.addRange(m),d=_.toString()}return d}a.exports=l},279:function(a){function l(){}l.prototype={on:function(r,d,h){var _=this.e||(this.e={});return(_[r]||(_[r]=[])).push({fn:d,ctx:h}),this},once:function(r,d,h){var _=this;function m(){_.off(r,m),d.apply(h,arguments)}return m._=d,this.on(r,m,h)},emit:function(r){var d=[].slice.call(arguments,1),h=((this.e||(this.e={}))[r]||[]).slice(),_=0,m=h.length;for(_;_<m;_++)h[_].fn.apply(h[_].ctx,d);return this},off:function(r,d){var h=this.e||(this.e={}),_=h[r],m=[];if(_&&d)for(var g=0,I=_.length;g<I;g++)_[g].fn!==d&&_[g].fn._!==d&&m.push(_[g]);return m.length?h[r]=m:delete h[r],this}},a.exports=l,a.exports.TinyEmitter=l}},s={};function o(a){if(s[a])return s[a].exports;var l=s[a]={exports:{}};return t[a](l,l.exports,o),l.exports}return function(){o.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return o.d(l,{a:l}),l}}(),function(){o.d=function(a,l){for(var r in l)o.o(l,r)&&!o.o(a,r)&&Object.defineProperty(a,r,{enumerable:!0,get:l[r]})}}(),function(){o.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)}}(),o(686)}().default})})(dt);var qr=dt.exports;const Jr=Wr(qr),Yr={class:"item-card"},Xr={class:"item-name"},Qr={class:"item-description"},Zr={class:"tags"},ei={class:"item-bar"},ti=["href"],ni={class:"btn"},oi=["href"],si=["src"],ai={class:"author-name"},ri=b({__name:"PluginItemCard",props:{item:Object},setup(n){const e=n,t=()=>{const o=new Jr(".copy-btn",{text:()=>`npm install ${e.item.module_name}`});o.on("success",()=>{}),o.on("error",()=>{})},s=o=>{const a=o.replace(/^#/,""),[l,r,d]=a.match(/.{2}/g).map(_=>parseInt(_,16)),h=(l*299+r*587+d*114)/1e3;return{backgroundColor:o,color:h>128?"#000":"#fff"}};return(o,a)=>(i(),p("div",Yr,[c("div",Xr,N(e.item.name),1),c("div",Qr,N(e.item.desc),1),c("div",Zr,[(i(!0),p(D,null,R(e.item.tags,l=>(i(),p("span",{class:"tag",key:l,style:ge(s(l.color))},N(l.label),5))),128))]),c("div",ei,[c("a",{href:e.item.homepage,class:"btn",target:"_blank"},a[0]||(a[0]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},[c("path",{fill:"currentColor",d:"m7.775 3.275l1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0a.751.751 0 0 1 .018-1.042a.751.751 0 0 1 1.042-.018a1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018a.751.751 0 0 1-.018-1.042m-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018a.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0a.751.751 0 0 1-.018 1.042a.751.751 0 0 1-1.042.018a1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83"})],-1)]),8,ti),c("button",{class:"btn copy-btn",onClick:t},"复制安装命令"),c("div",ni,[c("a",{class:"author-info",href:`https://github.com/${e.item.author}`},[c("img",{class:"icon avatar",src:`https://github.com/${e.item.author}.png?size=80`,alt:""},null,8,si),c("div",ai,N(e.item.author),1)],8,oi)])])]))}}),ii=$(ri,[["__scopeId","data-v-a8e3f329"]]),li={class:"switch"},ui=["checked"],ci=b({__name:"ToggleSwitch",props:{modelValue:Boolean},emits:["update:modelValue"],setup(n,{emit:e}){const t=e,s=o=>{t("update:modelValue",o)};return(o,a)=>(i(),p("label",li,[c("input",{type:"checkbox",checked:n.modelValue,onChange:a[0]||(a[0]=l=>s(l.target.checked))},null,40,ui),a[1]||(a[1]=c("span",{class:"slider round"},null,-1))]))}}),di=$(ci,[["__scopeId","data-v-b3db11d1"]]),pi=[{module_name:"liteyukibot-plugin-nonebot",project_link:"liteyukibot-plugin-nonebot",name:"NoneBot插件",desc:"在轻雪中使用NoneBot内置轻雪--NoneBot会话控制器插件为NoneBot开发者提供了更多便捷功能(已内置)",author:"snowykami",homepage:"https://github.com/LiteyukiStudio/liteyukibot-plugin-nonebot",tags:[{label:"app",color:"#aeeaa8"}],is_official:!0,type:"application",valid:!0,version:"rolling"},{module_name:"liteyukibot-plugin-antidislink",project_link:"liteyukibot-plugin-antidislink",name:"防断联插件",desc:"防止你的群友断联化",author:"snowykami",homepage:"https://github.com/snowykami/liteyukibot-plugin-antidislink",tags:[{label:"app",color:"#aeeaa8"},{label:"dislink",color:"#d0e9ff"}],is_official:!0,type:"application",valid:!0,version:"rolling"},{module_name:"liteyukibot-plugin-lagrange",project_link:"liteyukibot-plugin-lagrange",name:"LagrangePlugin",desc:"在轻雪中使用lagrange-python",author:"snowykami",homepage:"https://github.com/snowykami/liteyukibot-plugin-lagrange",tags:[{label:"app",color:"#aeeaa8"},{label:"lagrange",color:"#ff89f7"}],is_official:!0,type:"application",valid:!0,version:"rolling"},{module_name:"liteyukibot-plugin-htmlrender",project_link:"liteyukibot-plugin-htmlrender",name:"htmlrender",desc:"使用系统中的浏览器对网页进行渲染,便于其他插件使用",author:"EillesWan",homepage:"https://github.com/LiteyukiStudio/liteyukibot-plugin-htmlrender",tags:[{label:"ch",color:"#4285f4"},{label:"ro",color:"#db4437"},{label:"mi",color:"#f4b400"},{label:"um",color:"#0f9d58"}],is_official:!0,type:"application",valid:!0,version:"rolling"}],fi={class:"market"},vi={class:"search-box-div"},hi=["placeholder"],mi={class:"items"},_i=b({__name:"PluginStore",setup(n){let e=C(!1),t=T(()=>{let a=s.value;return o.value&&(a=a.filter(l=>l.name.toLowerCase().includes(o.value.toLowerCase())||l.desc.toLowerCase().includes(o.value.toLowerCase())||l.author.toLowerCase().includes(o.value.toLowerCase())||l.module_name.toLowerCase().includes(o.value.toLowerCase()))),e.value&&(a=a.filter(l=>l.is_liteyuki_plugin)),a}),s=C([]),o=C("");return s.value=pi,s.value.forEach(a=>{a.is_liteyuki_plugin=!0}),fetch("https://registry.nonebot.dev/plugins.json").then(a=>a.json()).then(a=>{a.forEach(l=>{l.is_official=!1}),s.value=s.value.concat(a)}),(a,l)=>(i(),p("div",fi,[c("h1",null,N(u(j)("pluginStore")),1),c("p",null,N(u(j)("pluginStoreDesc")),1),c("div",vi,[Ve(c("input",{class:"item-search-box",type:"text","onUpdate:modelValue":l[0]||(l[0]=r=>Ne(o)?o.value=r:o=r),placeholder:u(j)("search")},null,8,hi),[[Te,u(o)]]),S(di,{modelValue:u(e),"onUpdate:modelValue":l[1]||(l[1]=r=>Ne(e)?e.value=r:e=r)},null,8,["modelValue"]),Q(" "+N(u(j)("liteyukiOnly")),1)]),c("div",mi,[(i(!0),p(D,null,R(u(t),r=>(i(),w(ii,{key:r.id,item:r},null,8,["item"]))),128))])]))}}),gi=$(_i,[["__scopeId","data-v-671446c8"]]),bi={class:"item-card"},ki={class:"item-name"},yi={class:"item-description"},$i={class:"item-bar"},Si=["href"],wi=["href"],Pi=["src"],Li={class:"author-name"},Vi=b({__name:"ResItemCard",props:{item:Object},setup(n){const e=n;return(t,s)=>(i(),p("div",bi,[c("div",ki,N(e.item.name),1),c("div",yi,N(e.item.description),1),c("div",$i,[c("a",{href:e.item.link,class:"",target:"_blank"},s[0]||(s[0]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},[c("path",{fill:"currentColor",d:"m7.775 3.275l1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0a.751.751 0 0 1 .018-1.042a.751.751 0 0 1 1.042-.018a1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018a.751.751 0 0 1-.018-1.042m-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018a.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0a.751.751 0 0 1-.018 1.042a.751.751 0 0 1-1.042.018a1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83"})],-1)]),8,Si),c("div",null,[c("a",{class:"author-info",href:`https://github.com/${e.item.author}`},[c("img",{class:"icon avatar",src:`https://github.com/${e.item.author}.png?size=80`,alt:""},null,8,Pi),c("div",Li,N(e.item.author),1)],8,wi)])])]))}}),Ti=$(Vi,[["__scopeId","data-v-22cbd1fa"]]),Ni={key:0,class:"floating-window"},Ci={class:"window-content"},Ii=b({__name:"ResPubWindow",props:{isVisible:Boolean},setup(n){return(e,t)=>n.isVisible?(i(),p("div",Ni,[c("div",Ci,[f(e.$slots,"default",{},void 0,!0)])])):k("",!0)}}),Ai=$(Ii,[["__scopeId","data-v-8b5829b6"]]),Mi=[{name:"KawaiiStatus",author:"SnowyKami",description:"可爱的状态卡片仿照koishi的制作",link:"https://cdn.liteyuki.icu/static/lrp/KawaiiStatus.zip"},{name:"MiSans字体包",author:"SnowyKami",description:"小米官方字体MiSans",link:"https://cdn.liteyuki.icu/static/lrp/MiSansFonts.zip"},{name:"MapleMono字体包",author:"SnowyKami",description:"适用于字母的字体包",link:"https://cdn.liteyuki.icu/static/lrp/MapleMonoFonts.zip"},{name:"野兽先辈主题HomoTheme",author:"SnowyKami",description:"野兽先辈主题包114514",link:"https://cdn.liteyuki.icu/static/lrp/HomoTheme.zip"},{name:"自定义设备信息",author:"SnowyKami",description:"自定义服务端的设备信息,自行修改使用",link:"https://cdn.liteyuki.icu/static/lrp/custom-device.zip"},{name:"轻雪傲娇系词库",author:"SnowyKami",description:"使用https://github.com/Kyomotoi/AnimeThesaurus的词库",link:"https://cdn.liteyuki.icu/static/lrp/liteyuki_words_aojiao.zip"},{name:"轻雪可爱系词库",author:"SnowyKami",description:"使用https://github.com/Kyomotoi/AnimeThesaurus的词库",link:"https://cdn.liteyuki.icu/static/lrp/liteyuki_words_kawaii.zip"},{name:"轻雪Kakyo语言包",author:"Nanaloveyuki",description:"Liteyuki Bot的语言包用于提供多种语言的翻译。",link:"https://github.com/Nanaloveyuki/liteyuki-langpack/releases/download/KakyoVer/Kakyo-pack.zip"},{name:"更多背景模板包",author:"snowykami",description:"自定义各种卡片的背景",link:"https://cdn.liteyuki.icu/static/lrp/morebg.zip"},{name:"测试资源包",desc:"test",link:"https://cdn.liteyuki.icu/static/lrp/liteyuki_words_aojiao.zip",homepage:"",author:"snowykami"},{name:"轻雪Kakyo语言包 稳定版",description:"Liteyuki Bot的语言包用于提供多种语言的翻译。",link:"https://cdn.liteyuki.icu/static/lrp/kakyo.zip",homepage:"https://github.com/Nanaloveyuki/liteyuki-langpack",author:"Nanaloveyuki"},{name:"测试资源包2",description:"test",link:"https://cdn.liteyuki.icu/static/lrp/liteyuki_words_aojiao.zip",homepage:"",author:"snowykami"}],Ei={class:"market"},Bi={class:"search-box-div"},Oi=["placeholder"],Hi={class:"store-tabs",style:{display:"flex"}},Di={class:"items"},xi={for:"name"},Fi=["placeholder"],Ri={class:"pub-options",style:{display:"flex","justify-content":"center"}},ji=b({__name:"ResStore",setup(n){let e=T(()=>s.value?t.value.filter(_=>_.name.toLowerCase().includes(s.value.toLowerCase())||_.description.toLowerCase().includes(s.value.toLowerCase())||_.author.toLowerCase().includes(s.value.toLowerCase())).reverse():t.value.reverse()),t=C([]),s=C("");t.value=Mi;const o=C(!1);let a=C({name:""});function l(){o.value=!0}function r(){o.value=!1}let d="";ke(ve().site.value.lang)==="zh"?d="zh":d="en";function h(){const _=encodeURI(`Resource: ${a.value.name}`),m=`${se}/issues/new?assignees=&labels=Resource&template=resource_publish_${d}.yml&title=${_}`;console.log(m),window.open(m,"_blank")}return(_,m)=>(i(),p("div",Ei,[c("h1",null,N(u(j)("resourceStore")),1),c("div",Bi,[Ve(c("input",{class:"item-search-box",type:"text",placeholder:u(j)("search"),"onUpdate:modelValue":m[0]||(m[0]=g=>Ne(s)?s.value=g:s=g)},null,8,Oi),[[Te,u(s)]])]),c("div",Hi,[c("button",{class:"store-button publish-button",onClick:l},N(u(j)("publishRes")),1)]),c("div",Di,[(i(!0),p(D,null,R(u(e),g=>(i(),w(Ti,{key:g.id,item:g},null,8,["item"]))),128))]),S(Ai,{class:"pub-window","is-visible":o.value},{default:v(()=>[c("h2",null,N(u(j)("publishRes")),1),c("form",{onSubmit:nt(h,["prevent"])},[c("label",xi,N(u(j)("resName")),1),Ve(c("input",{type:"text",id:"name","onUpdate:modelValue":m[1]||(m[1]=g=>u(a).name=g),placeholder:u(j)("resNameText")},null,8,Fi),[[Te,u(a).name]]),c("div",Ri,[c("button",{class:"pub-option close",type:"button",onClick:r},N(u(j)("closeButtonText")),1),c("button",{class:"pub-option submit",type:"submit",onClick:h},N(u(j)("submitButtonText")),1)])],32)]),_:1},8,["is-visible"])]))}}),zi=$(ji,[["__scopeId","data-v-83d58003"]]),Ki={extends:ct,enhanceApp({app:n}){n.component("StatsBar",Ye),n.component("PluginStore",gi),n.component("ResStore",zi)},Layout:Ye};export{Ki as R,oa as c,j as g,O as u};