2 lines
55 KiB
JavaScript
2 lines
55 KiB
JavaScript
|
|
import{d as p,c as u,r as c,n as T,o as s,a as U,t as N,b as _,w as h,T as de,e as m,_ as b,u as Ee,i as Fe,f as De,g as ve,h as g,j as d,k as r,l as z,m as ie,p as S,q as F,s as Q,v as j,x as fe,y as he,z as Oe,A as Ge,F as M,B,C as W,D as X,E as k,G as Le,H as C,I as Ve,J as Z,K as G,L as ee,M as Ue,N as Se,O as je,P as Te,Q as Ne,R as te,S as ze,U as xe,V as Me,W as We,X as qe,Y as Re,Z as Ke,$ as Je,a0 as K}from"./framework.B1nRs-GM.js";const Ye=p({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(e){return(t,n)=>(s(),u("span",{class:T(["VPBadge",e.type])},[c(t.$slots,"default",{},()=>[U(N(e.text),1)])],2))}}),Qe={key:0,class:"VPBackdrop"},Xe=p({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(e){return(t,n)=>(s(),_(de,{name:"fade"},{default:h(()=>[e.show?(s(),u("div",Qe)):m("",!0)]),_:1}))}}),Ze=b(Xe,[["__scopeId","data-v-b2600058"]]),P=Ee;function et(e,t){let n,a=!1;return()=>{n&&clearTimeout(n),a?n=setTimeout(e,t):(e(),(a=!0)&&setTimeout(()=>a=!1,t))}}function le(e){return e.startsWith("/")?e:`/${e}`}function me(e){const{pathname:t,search:n,hash:a,protocol:o}=new URL(e,"http://a.com");if(Fe(e)||e.startsWith("#")||!o.startsWith("http")||!De(t))return e;const{site:i}=P(),l=t.endsWith("/")||t.endsWith(".html")?e:e.replace(/(?:(^\.+)\/)?.*$/,`$1${t.replace(/(\.md)?$/,i.value.cleanUrls?"":".html")}${n}${a}`);return ve(l)}function R({correspondingLink:e=!1}={}){const{site:t,localeIndex:n,page:a,theme:o,hash:i}=P(),l=g(()=>{var v,y;return{label:(v=t.value.locales[n.value])==null?void 0:v.label,link:((y=t.value.locales[n.value])==null?void 0:y.link)||(n.value==="root"?"/":`/${n.value}/`)}});return{localeLinks:g(()=>Object.entries(t.value.locales).flatMap(([v,y])=>l.value.label===y.label?[]:{text:y.label,link:tt(y.link||(v==="root"?"/":`/${v}/`),o.value.i18nRouting!==!1&&e,a.value.relativePath.slice(l.value.link.length-1),!t.value.cleanUrls)+i.value})),currentLang:l}}function tt(e,t,n,a){return t?e.replace(/\/$/,"")+le(n.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,a?".html":"")):e}const nt={class:"NotFound"},at={class:"code"},ot={class:"title"},st={class:"quote"},rt={class:"action"},it=["href","aria-label"],lt=p({__name:"NotFound",setup(e){const{theme:t}=P(),{currentLang:n}=R();return(a,o)=>{var i,l,f,v,y;return s(),u("div",nt,[d("p",at,N(((i=r(t).notFound)==null?void 0:i.code)??"404"),1),d("h1",ot,N(((l=r(t).notFound)==null?void 0:l.title)??"PAGE NOT FOUND"),1),o[0]||(o[0]=d("div",{class:"divider"},null,-1)),d("blockquote",st,N(((f=r(t).notFound)==null?void 0:f.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",rt,[d("a",{class:"link",href:r(ve)(r(n).link),"aria-label":((v=r(t).notFound)==null?void 0:v.linkLabel)??"go to home"},N(((y=r(t).notFound)==null?void 0:y.linkText)??"Take me home"),9,it)])])}}}),ct=b(lt,[["__scopeId","data-v-93fd8736"]]);function Ie(e,t){if(Array.isArray(e))return J(e);if(e==null)return[];t=le(t);const n=Object.keys(e).sort((o,i)=>i.split("/").length-o.split("/").length).find(o=>t.startsWith(le(o))),a=n?e[n]:[];return Array.isArray(a)?J(a):J(a.items,a.base)}function ut(e){const t=[];let n=0;for(const a in e){const o=e[a];if(o.items){n=t.push(o);continue}t[n]||t.push({items:[]}),t[n].items.push(o)}return t}function dt(e){const t=[];function n(a){for(const o of a)o.text&&o.link&&t.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&n(o.items)}return n(e),t}function ce(e,t){return Array.isArray(t)?t.some(n=>ce(e,n)):z(e,t.link)?!0:t.items?ce(e,t.items):!1}function J(e,t){return[...e].map(n=>{const a={...n},o=a.base||t;return o&&a.link&&(a.link=o+a.link),a.items&&(a.items=J(a.items,o)),a})}function D(){const{frontmatter:e,page:t,theme:n}=P(),a=ie("(min-width: 960px)"),o=S(!1),i=g(()=>{const w=n.value.sidebar,H=t.value.relativePath;return w?Ie(w,H):[]}),l=S(i.value);F(i,(w,H)=>{JSON.stringify(w)!==JSON.stringify(H)&&(l.value=i.value)});const f=g(()=>e.value.sidebar!==!1&&l.value.length>0&&e.value.layout!=="home"),v=g(()=>y?e.value.aside==null?n.value.aside==="left":e.value.aside==="left":!1
|