1import{R as p}from"./chunks/theme.f_d4bE4n.js";import{c3 as s,cn as c,co as i,cp as u,cq as l,cr as f,cs as d,ct as m,cu as h,cv as g,z as A,M as v,bR as w,aD as y,bF as R,cw as b,cx as C,cy as P,a5 as E}from"./chunks/framework.BeUf1qdn.js";function r(e){if(e.extends){const t=r(e.extends);return{...t,...e,async enhanceApp(a){t.enhanceApp&&await t.enhanceApp(a),e.enhanceApp&&await e.enhanceApp(a)}}}return e}const n=r(p),S=v({name:"VitePressApp",setup(){const{site:e,lang:t,dir:a}=w();return y(()=>{R(()=>{document.documentElement.lang=t.value,document.documentElement.dir=a.value})}),e.value.router.prefetchLinks&&b(),C(),P(),n.setup&&n.setup(),()=>E(n.Layout)}});async function T(){globalThis.__VITEPRESS__=!0;const e=x(),t=D();t.provide(i,e);const a=u(e.route);return t.provide(l,a),t.component("Content",f),t.component("ClientOnly",d),Object.defineProperties(t.config.globalProperties,{$frontmatter:{get(){return a.frontmatter.value}},$params:{get(){return a.page.value.params}}}),n.enhanceApp&&await n.enhanceApp({app:t,router:e,siteData:m}),{app:t,router:e,data:a}}function D(){return A(S)}function x(){let e=s;return h(t=>{let a=g(t),o=null;return a&&(e&&(a=a.replace(/\.js$/,".lean.js")),o=import(a)),s&&(e=!1),o},n.NotFound)}s&&T().then(({app:e,router:t,data:a})=>{t.go().then(()=>{c(t.route,a.site),e.mount("#app")})});export{T as createApp};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.