1import{O as e,j as t,r as n}from"./DjHO5yFf.js";import{g as r,gt as i}from"./B4b-2GOK.js";import{g as a,l as o,s}from"./dfNYVyxd.js";import{n as c}from"./05RTm0Ji.js";import{i as l,n as u,o as d}from"./CFx_KQ85.js";import{n as f}from"./Bp5OgAs-.js";import"#entry";import{t as p}from"./C0HNFT_y.js";function m(){let e=a(),t=u();return r(()=>d(String(e.name??``),e.params.slug==null?null:String(e.params.slug),t.value?.index))}function h(e,t){if(!e)return Promise.resolve(null);let r=`id`in e?e.id:e.path;return r?n(`/api/page`,{query:{...`id`in e?{id:r}:{path:r},lang:t}}):Promise.resolve(null)}function g(e){let{locale:t}=c();return f(()=>l(e(),t.value),()=>h(e(),t.value),`$-34UrmdcqN`)}var _=async()=>{let n=t(),a=u();i(`site`,a);let c=m(),{data:l,error:d,status:f}=await g(()=>c.value),h=r(()=>{if(f.value===`pending`||f.value===`idle`)return null;let e=c.value;return e?d.value?{statusCode:d.value.statusCode||500,statusMessage:d.value.statusMessage||d.value.message||`Page not found`,message:d.value.message||d.value.statusMessage||`Page not found`}:l.value?`path`in e&&e.path&&!p(e.path,l.value.url)?{statusCode:404,statusMessage:`Page not found`}:null:{statusCode:404,statusMessage:`Page not found`,message:`The page content could not be loaded`}:null});if(h.value){let t=s(h.value);e(n,o,[t])}return{page:l,site:a}};export{g as n,m as r,_ as t};
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.