mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
2 lines
54 KiB
JavaScript
2 lines
54 KiB
JavaScript
|
|
import{d as h,c as u,r as d,n as S,o as r,a as j,t as T,b as k,w as v,T as pe,e as m,_ as g,u as Le,i as Oe,f as ze,g as ve,h as b,j as p,k as i,l as W,m as $e,p as O,q as Ge,s as ee,v as Ue,x as V,y as Q,z as D,A as fe,B as me,C as J,D as te,E as ye,F as Ve,G as N,H as C,I as q,J as _,K as E,L as Se,M as U,N as ne,O as je,P as Te,Q as We,R as we,S as Ne,U as qe,V as Me,W as Ie,X as Re,Y as Ke,Z as Je,$ as Ye,a0 as Qe}from"./framework.PeLcR_tw.js";const Xe=h({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(o){return(e,t)=>(r(),u("span",{class:S(["VPBadge",e.type])},[d(e.$slots,"default",{},()=>[j(T(e.text),1)])],2))}}),Ze={key:0,class:"VPBackdrop"},xe=h({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(o){return(e,t)=>(r(),k(pe,{name:"fade"},{default:v(()=>[e.show?(r(),u("div",Ze)):m("",!0)]),_:1}))}}),et=g(xe,[["__scopeId","data-v-c79a1216"]]),L=Le;function He(o,e){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(o,e):(o(),(n=!0)&&setTimeout(()=>n=!1,e))}}function ie(o){return o.startsWith("/")?o:`/${o}`}function he(o){const{pathname:e,search:t,hash:n,protocol:s}=new URL(o,"http://a.com");if(Oe(o)||o.startsWith("#")||!s.startsWith("http")||!ze(e))return o;const{site:a}=L(),c=e.endsWith("/")||e.endsWith(".html")?o:o.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${t}${n}`);return ve(c)}function X({correspondingLink:o=!1}={}){const{site:e,localeIndex:t,page:n,theme:s,hash:a}=L(),c=b(()=>{var f,$;return{label:(f=e.value.locales[t.value])==null?void 0:f.label,link:(($=e.value.locales[t.value])==null?void 0:$.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:b(()=>Object.entries(e.value.locales).flatMap(([f,$])=>c.value.label===$.label?[]:{text:$.label,link:tt($.link||(f==="root"?"/":`/${f}/`),s.value.i18nRouting!==!1&&o,n.value.relativePath.slice(c.value.link.length-1),!e.value.cleanUrls)+a.value})),currentLang:c}}function tt(o,e,t,n){return e?o.replace(/\/$/,"")+ie(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):o}const nt={class:"NotFound"},st={class:"code"},ot={class:"title"},at={class:"quote"},rt={class:"action"},it=["href","aria-label"],lt=h({__name:"NotFound",setup(o){const{theme:e}=L(),{currentLang:t}=X();return(n,s)=>{var a,c,l,f,$,P;return r(),u("div",nt,[p("p",st,T(((a=i(e).notFound)==null?void 0:a.code)??"404"),1),p("h1",ot,T(((c=i(e).notFound)==null?void 0:c.title)??"PAGE NOT FOUND"),1),s[0]||(s[0]=p("div",{class:"divider"},null,-1)),p("blockquote",at,T(((l=i(e).notFound)==null?void 0:l.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),p("div",rt,[p("a",{class:"link",href:i(ve)(((f=i(e).notFound)==null?void 0:f.link)??i(t).link),"aria-label":(($=i(e).notFound)==null?void 0:$.linkLabel)??"go to home"},T(((P=i(e).notFound)==null?void 0:P.linkText)??"Take me home"),9,it)])])}}}),ct=g(lt,[["__scopeId","data-v-829df670"]]);function Ce(o,e){if(Array.isArray(o))return Z(o);if(o==null)return[];e=ie(e);const t=Object.keys(o).sort((s,a)=>a.split("/").length-s.split("/").length).find(s=>e.startsWith(ie(s))),n=t?o[t]:[];return Array.isArray(n)?Z(n):Z(n.items,n.base)}function ut(o){const e=[];let t=0;for(const n in o){const s=o[n];if(s.items){t=e.push(s);continue}e[t]||e.push({items:[]}),e[t].items.push(s)}return e}function dt(o){const e=[];function t(n){for(const s of n)s.text&&s.link&&e.push({text:s.text,link:s.link,docFooterText:s.docFooterText}),s.items&&t(s.items)}return t(o),e}function le(o,e){return Array.isArray(e)?e.some(t=>le(o,t)):W(o,e.link)?!0:e.items?le(o,e.items):!1}function Z(o,e){return[...o].map(t=>{const n={...t},s=n.base||e;return s&&n.link&&(n.link=s+n.link),n.items&&(n.items=Z(n.items,s)),n})}function pt(){const{hasSidebar:o}=z(),e=$e("(min-width: 960px)"),t=$e("(min-width: 1280px)");return{isAsideEnabled:b(()=>!t.value&&!e.value?!1:o.value?t.value:e.value)}}const vt=/\b(?:VPBadge|header-anchor|footnote-ref|ignore-header)\b/,ce=[];function Ae(o){return typeof o.outline=="object"&&!Array.isArray(o.outline)&&o.outline.label||o.outlineTitle||"On
|