2 lines
52 KiB
JavaScript
Raw Normal View History

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