mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-12-01 16:34:44 +08:00
3 lines
54 KiB
JavaScript
3 lines
54 KiB
JavaScript
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.C8KI6mfp.js","assets/chunks/framework.BZiUP1E-.js"])))=>i.map(i=>d[i]);
|
||
|
import{d as _,o as a,c as u,r as c,n as N,a as O,t as L,b as k,w as v,e as f,T as he,_ as $,u as X,i as qe,f as Ke,g as fe,h as y,j as d,k as r,p as C,l as H,m as R,q as ce,s as T,v as U,x,y as K,z as ee,A as _e,B as Re,C as We,D as W,F as M,E,G as Te,H as te,I as m,J as F,K as Ie,L as oe,M as q,N as ne,O as Je,P as we,Q as ue,R as Ye,S as Ne,U as se,V as Xe,W as Qe,X as Ze,Y as Me,Z as Ae,$ as xe,a0 as et,a1 as tt,a2 as ot,a3 as nt}from"./framework.BZiUP1E-.js";const st=_({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(o){return(e,t)=>(a(),u("span",{class:N(["VPBadge",e.type])},[c(e.$slots,"default",{},()=>[O(L(e.text),1)])],2))}}),at={key:0,class:"VPBackdrop"},rt=_({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(o){return(e,t)=>(a(),k(he,{name:"fade"},{default:v(()=>[e.show?(a(),u("div",at)):f("",!0)]),_:1}))}}),it=$(rt,[["__scopeId","data-v-2cfdfdcf"]]),P=X;function lt(o,e){let t,s=!1;return()=>{t&&clearTimeout(t),s?t=setTimeout(o,e):(o(),(s=!0)&&setTimeout(()=>s=!1,e))}}function de(o){return/^\//.test(o)?o:`/${o}`}function me(o){const{pathname:e,search:t,hash:s,protocol:n}=new URL(o,"http://a.com");if(qe(o)||o.startsWith("#")||!n.startsWith("http")||!Ke(e))return o;const{site:i}=P(),l=e.endsWith("/")||e.endsWith(".html")?o:o.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,i.value.cleanUrls?"":".html")}${t}${s}`);return fe(l)}function Y({correspondingLink:o=!1}={}){const{site:e,localeIndex:t,page:s,theme:n,hash:i}=P(),l=y(()=>{var p,g;return{label:(p=e.value.locales[t.value])==null?void 0:p.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(([p,g])=>l.value.label===g.label?[]:{text:g.label,link:ct(g.link||(p==="root"?"/":`/${p}/`),n.value.i18nRouting!==!1&&o,s.value.relativePath.slice(l.value.link.length-1),!e.value.cleanUrls)+i.value})),currentLang:l}}function ct(o,e,t,s){return e?o.replace(/\/$/,"")+de(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):o}const ut=o=>(C("data-v-868b40d9"),o=o(),H(),o),dt={class:"NotFound"},vt={class:"code"},pt={class:"title"},ht=ut(()=>d("div",{class:"divider"},null,-1)),ft={class:"quote"},_t={class:"action"},mt=["href","aria-label"],kt=_({__name:"NotFound",setup(o){const{theme:e}=P(),{currentLang:t}=Y();return(s,n)=>{var i,l,h,p,g;return a(),u("div",dt,[d("p",vt,L(((i=r(e).notFound)==null?void 0:i.code)??"404"),1),d("h1",pt,L(((l=r(e).notFound)==null?void 0:l.title)??"PAGE NOT FOUND"),1),ht,d("blockquote",ft,L(((h=r(e).notFound)==null?void 0:h.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",_t,[d("a",{class:"link",href:r(fe)(r(t).link),"aria-label":((p=r(e).notFound)==null?void 0:p.linkLabel)??"go to home"},L(((g=r(e).notFound)==null?void 0:g.linkText)??"Take me home"),9,mt)])])}}}),$t=$(kt,[["__scopeId","data-v-868b40d9"]]);function Be(o,e){if(Array.isArray(o))return Q(o);if(o==null)return[];e=de(e);const t=Object.keys(o).sort((n,i)=>i.split("/").length-n.split("/").length).find(n=>e.startsWith(de(n))),s=t?o[t]:[];return Array.isArray(s)?Q(s):Q(s.items,s.base)}function bt(o){const e=[];let t=0;for(const s in o){const n=o[s];if(n.items){t=e.push(n);continue}e[t]||e.push({items:[]}),e[t].items.push(n)}return e}function gt(o){const e=[];function t(s){for(const n of s)n.text&&n.link&&e.push({text:n.text,link:n.link,docFooterText:n.docFooterText}),n.items&&t(n.items)}return t(o),e}function ve(o,e){return Array.isArray(e)?e.some(t=>ve(o,t)):R(o,e.link)?!0:e.items?ve(o,e.items):!1}function Q(o,e){return[...o].map(t=>{const s={...t},n=s.base||e;return n&&s.link&&(s.link=n+s.link),s.items&&(s.items=Q(s.items,n)),s})}function G(){const{frontmatter:o,page:e,theme:t}=P(),s=ce("(min-width: 960px)"),n=T(!1),i=y(()=>{const B=t.value.sidebar,I=e.value.relativePath;return B?Be(B,I):[]}),l=T(i.value);U(i,(B,I)=>{JSON.stringify(B)!==JSON.stringify(I)&&(l.value=i.value)});const h=y(()=>o.value.sidebar!==!1&&l.value.length>0&&o.value.layout!=="home"),p=y(()=>g?o.value.as
|