1import{a as e}from"./jJw1AbnH.js";import{A as t,B as n,Et as r,Ft as i,I as a,R as o,dt as s,f as c,ft as l,lt as u,w as d}from"./DyLOZYLg.js";import{n as f,t as p}from"./D_EML6Yk.js";import{n as m}from"./klztIuxZ.js";import{t as h}from"./4fwi9zIn.js";var g=[`getActiveHead`,`useHead`,`useSeoMeta`,`useHeadSafe`,`useServerHead`,`useServerSeoMeta`,`useServerHeadSafe`],_=`%separator`;RegExp(`${_}(?:\\s*${_})*`,`g`),console.createTask!==void 0&&console.createTask;var v;function y(){return v}var b=Symbol(`ScriptProxyTarget`);function x(){}x[b]=!0,u[0];function S(e){return typeof e==`function`?e():i(e)}function C(e){if(e instanceof Promise||e instanceof Date||e instanceof RegExp)return e;let t=S(e);if(!e||!t)return t;if(Array.isArray(t))return t.map(e=>C(e));if(typeof t==`object`){let e={};for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(n===`titleTemplate`||n[0]===`o`&&n[1]===`n`){e[n]=i(t[n]);continue}e[n]=C(t[n])}return e}return t}var w=`usehead`,T=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},E=`__unhead_injection_handler__`;function D(){return E in T?T[E]():t(w)||y()}function O(e,t={}){let n=t.head||D();if(n)return n.ssr?n.push(e,t):k(n,e,t)}function k(e,t,i={}){let c=r(!1),u=r({});l(()=>{u.value=c.value?{}:C(t)});let f=e.push(u.value,i);return s(u,e=>{f.patch(e)}),d()&&(o(()=>{f.dispose()}),n(()=>{c.value=!0}),a(()=>{c.value=!1})),f}[...g];var A=e=>typeof e==`function`,j=(e,t)=>{if(!e)return;let n=c(()=>A(e)?e():e);O(()=>n.value?{script:[{type:`application/ld+json`,innerHTML:JSON.stringify(n.value,null,``)}]}:{},t)},M=()=>{let{$pageConfig:t,$websiteConfig:n}=e(),{setIsCMSPage:r}=p();r(t?.isCMSPage??!1);let i=c(()=>{let e=n?.field_base_config;return e?JSON.parse(e):null}),a=c(()=>{let e=n?.field_header_config;return e?h.decompress(JSON.parse(e))?.schema:null}),o=c(()=>{let e=n?.field_footer_config;return e?h.decompress(JSON.parse(e))?.schema:null});return{siteBaseConfig:i,headerSchema:a,footerSchema:o,showHeader:c(()=>t?.show_global_header&&a.value),showFooter:c(()=>t?.show_global_footer&&o.value),verifyPassword:async(e,t)=>{if(!e)return{success:!1,message:`请è¾å
¥å¯ç `};try{let{data:n}=await f(`/api/verify-password`,{method:`POST`,body:{password:e,path:t}},`$nI7gu-kZgA`);return{success:n.value?.success,message:n.value?.message}}catch{return{success:!1,message:`éªè¯å¤±è´¥ï¼è¯·éè¯`}}},setSeoOrganizationSchema:()=>{let e=i.value?.organization_schema;if(e&&e.trim())try{j(JSON.parse(e))}catch{}}}},N=()=>{let{$currentLanguage:t}=e(),{setCurrentLanguage:n}=p(),r={zh_hans:`zh-CN`,en:`en`};return n(t),m({htmlAttrs:{lang:r[t]??r.en}}),t};export{N as n,j as r,M 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.