import{i as e}from"./chunk-B3pr0VN8.js";import{n as t,t as n}from"./jsx-runtime-wTfS3W87.js";import{i as r,o as i,u as a}from"./chunk-6CSD65Y2-Dj7xjS5D.js";import{t as o}from"./SiteFooter-BXFSv2-x.js";import{t as s}from"./menu-i-Q_PERc.js";import{t as c}from"./x-BDqDXavd.js";import{t as l}from"./SiteHeader-CPWey4U9.js";var u=e(t(),1),d=[{path:`/docs`,title:`开发指南`,anchors:[{id:`overview`,title:`概览`},{id:`quickstart`,title:`快速开始`},{id:`authentication`,title:`鉴权`},{id:`billing`,title:`计费`},{id:`rate-limits`,title:`限流与配额`},{id:`idempotency`,title:`幂等性`},{id:`errors`,title:`错误处理`}]},{path:`/docs/api-reference`,title:`API 参考`,anchors:[{id:`resumes-parse`,title:`简历解析`},{id:`matches-resume-jd`,title:`人岗匹配`},{id:`jds-optimize`,title:`JD 优化`},{id:`batches-screen`,title:`批量筛选`},{id:`batches-get`,title:`查询批量任务`}]}];d.map(e=>e.path);var f=n(),p=()=>{let e=a(),[t,n]=(0,u.useState)(!1);return(0,u.useEffect)(()=>{n(!1)},[e.pathname,e.hash]),(0,f.jsxs)(`div`,{className:`docs-shell`,children:[(0,f.jsx)(l,{variant:`cream`,openLinksInNewTab:!0}),(0,f.jsxs)(`div`,{className:`docs-body`,children:[(0,f.jsxs)(`button`,{type:`button`,className:`docs-sidebar-toggle`,onClick:()=>n(e=>!e),"aria-label":`切换文档目录`,children:[t?(0,f.jsx)(c,{size:16,strokeWidth:1.8}):(0,f.jsx)(s,{size:16,strokeWidth:1.8}),`目录`]}),(0,f.jsx)(`aside`,{className:`docs-sidebar${t?` docs-sidebar-open`:``}`,children:(0,f.jsx)(`nav`,{className:`docs-nav`,"aria-label":`文档目录`,children:d.map(t=>(0,f.jsxs)(`div`,{className:`docs-nav-section${e.pathname===t.path?` docs-nav-section-active`:``}`,children:[(0,f.jsx)(r,{to:t.path,end:t.path===`/docs`,className:({isActive:e})=>`docs-nav-page${e?` docs-nav-page-active`:``}`,children:t.title}),(0,f.jsx)(`ul`,{className:`docs-nav-anchors`,children:t.anchors.map(e=>(0,f.jsx)(`li`,{children:(0,f.jsx)(`a`,{href:`${t.path}#${e.id}`,className:`docs-nav-anchor`,children:e.title})},e.id))})]},t.path))})}),t?(0,f.jsx)(`div`,{className:`docs-overlay`,onClick:()=>n(!1),"aria-hidden":`true`}):null,(0,f.jsx)(`main`,{className:`docs-content`,children:(0,f.jsx)(i,{})})]}),(0,f.jsx)(o,{variant:`cream`})]})};export{p as DocsLayout,p as default};