1import{R as p}from"./chunks/theme.BU2nr8zi.js";import{B as o,be as i,bf as u,bg as l,bh as c,bi as f,bj as d,bk as m,bl as b,bm as h,bn as g,d as A,u as v,p as w,x as y,bo as C,bp as P,bq as R,a5 as E}from"./chunks/framework.jYGXzUOM.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=A({name:"VitePressApp",setup(){const{site:e,lang:t,dir:a}=v();return w(()=>{y(()=>{document.documentElement.lang=t.value,document.documentElement.dir=a.value})}),e.value.router.prefetchLinks&&C(),P(),R(),n.setup&&n.setup(),()=>E(n.Layout)}});async function T(){globalThis.__VITEPRESS__=!0;const e=x(),t=j();t.provide(u,e);const a=l(e.route);return t.provide(c,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 j(){return g(S)}function x(){let e=o;return b(t=>{let a=h(t),s=null;return a&&(e&&(a=a.replace(/\.js$/,".lean.js")),s=import(a)),o&&(e=!1),s},n.NotFound)}o&&T().then(({app:e,router:t,data:a})=>{t.go(location.href,{initialLoad:!0}).then(()=>{i(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.