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