import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,g as c,k as l,mt as u,o as d,qt as f,tr as p,v as m,vn as h,y as g}from"./CaODJcyn.js";import{t as _}from"./BDNMzG2s.js";import{i as v,s as ee,u as te}from"./aTmK00sy.js";import{t as ne}from"./VK4bzVgU.js";import{t as re}from"./DNa_udJ8.js";import{c as y,d as b,f as x,n as S,o as ie,p as ae,r as C,s as w,t as oe}from"./DnUJ8caq2.js";var T=/[^\w\s]/g,E=/\s+/,D={TITLE_MAX_CHARS:60,TITLE_WARN_CHARS:50,TITLE_MAX_PIXELS:580,DESC_MAX_CHARS:160,DESC_WARN_CHARS:150,DESC_MAX_PIXELS:920},O={google:{label:`Google`,titleMax:60,descMax:160,icon:`i-carbon-search`},bing:{label:`Bing`,titleMax:65,descMax:150,icon:`i-carbon-search-locate`},duckduckgo:{label:`DuckDuckGo`,titleMax:65,descMax:150,icon:`i-carbon-search-locate-mirror`},ai:{label:`AI Search`,titleMax:70,descMax:200,icon:`i-carbon-machine-learning-model`}},k=new Set(`a.an.the.and.or.but.in.on.at.to.for.of.with.by.is.are.was.were.be.been.being.have.has.had.do.does.did.will.would.could.should.may.might.can.shall.it.its.this.that.these.those.i.we.you.he.she.they.me.us.him.her.them.my.our.your.his.their.from.not.no.so.if.as.up.out.about.into.over.after.how.all.new.more.when.who.what.where`.split(`.`));function se(e){let t=e.toLowerCase().replace(T,``).split(E).filter(Boolean),n=new Map;for(let e of t)e.length<2||k.has(e)||n.set(e,(n.get(e)||0)+1);return[...n.entries()].map(([e,t])=>({word:e,count:t})).sort((e,t)=>t.count-e.count)}function ce(e,t=16){return Math.round(e.length*t*.55)}function le(e){return e>D.TITLE_MAX_CHARS?`error`:e<30?`warning`:`success`}function ue(e){return e>D.DESC_MAX_CHARS?`error`:e>D.DESC_WARN_CHARS||e<70?`warning`:`success`}var de={class:`space-y-4`},fe={class:`flex items-center justify-between`},pe={class:`flex items-center gap-2`},me={class:`flex items-center gap-1`},he=[`aria-pressed`],ge=[`aria-pressed`],_e={class:`flex justify-center`},ve={class:`serp-preview`},ye={class:`flex items-center gap-3 mb-2`},be={class:`w-[26px] h-[26px] rounded-full flex items-center justify-center bg-neutral-100 dark:bg-neutral-800 overflow-hidden`},A=[`src`],j={key:0,class:`serp-rich-breadcrumbs`},M={key:1,class:`text-xs text-neutral-600 dark:text-[#bdc1c6] leading-tight truncate`},N={class:`serp-preview__description`},xe={key:0,class:`flex items-center gap-1.5 mt-1`},Se={class:`serp-rich-stars`},Ce={class:`text-xs serp-rich-rating-text`},we={key:0,class:`text-xs serp-rich-rating-text`},Te={key:1,class:`text-xs serp-rich-rating-text ml-1`},Ee={key:1,class:`text-xs serp-rich-rating-text mt-1`},De={key:2,class:`flex items-center gap-2 text-xs serp-rich-detail mt-1`},Oe={key:0},ke={key:1,class:`opacity-40`},Ae={key:2},je={key:3,class:`flex flex-wrap items-center gap-2 text-xs serp-rich-detail mt-1`},Me={class:`flex items-center gap-1`},Ne={key:0,class:`opacity-30`},Pe={key:4,class:`serp-rich-faq mt-2`},Fe={class:`text-xs`},Ie={class:`flex items-center justify-between`},Le={class:`flex items-center gap-2`},Re={class:`space-y-3`},ze={class:`flex items-center justify-between mb-2`},Be={class:`flex items-center gap-2`},Ve={class:`text-xs font-medium`},He={class:`flex items-center gap-2`},Ue=[`href`,`aria-label`],We={class:`serp-rich-mockup`},Ge={key:0,class:`serp-rich-breadcrumbs`},Ke={key:1,class:`flex items-center gap-1.5`},qe={class:`serp-rich-stars`},Je={class:`text-xs serp-rich-rating-text`},Ye={key:0,class:`text-xs serp-rich-rating-text`},Xe={key:1,class:`text-xs serp-rich-rating-text ml-1`},Ze={key:2,class:`text-xs serp-rich-rating-text`},Qe={key:3,class:`flex items-center gap-2 text-xs serp-rich-detail`},$e={key:0},et={key:1,class:`opacity-40`},tt={key:2},nt={key:4,class:`flex items-center gap-2 mt-1`},rt={class:`serp-rich-video-thumb`},it=[`src`,`alt`],at={class:`serp-rich-video-play`},ot={key:0,class:`serp-rich-video-duration`},st={key:5,class:`serp-rich-faq`},ct={class:`text-xs`},lt={key:0,class:`text-xs serp-rich-rating-text mt-1`},ut={key:6,class:`flex flex-wrap items-center gap-2 text-xs serp-rich-detail`},dt={class:`flex items-center gap-1`},ft={key:0,class:`opacity-30`},pt={class:`grid md:grid-cols-2 gap-4`},mt={class:`flex items-center gap-2`},ht={class:`space-y-3`},gt={class:`flex items-center justify-between`},_t={class:`text-xs font-mono text-muted`},vt=[`aria-valuenow`,`aria-valuemax`,`aria-label`],yt={class:`text-xs text-muted truncate`},bt={class:`flex items-center gap-2`},xt={class:`space-y-3`},St={class:`flex items-center justify-between`},Ct={class:`text-xs font-mono text-muted`},wt=[`aria-valuenow`,`aria-valuemax`,`aria-label`],Tt={class:`text-xs text-muted truncate`},Et={class:`flex items-center justify-between`},Dt={class:`flex items-center gap-2`},Ot={class:`space-y-1`},kt={class:`text-sm font-mono`},At={class:`text-xs text-muted ml-auto truncate max-w-[250px]`},jt={class:`grid md:grid-cols-2 gap-4`},Mt={class:`flex items-center gap-2`},Nt={key:0,class:`space-y-3`},Pt={class:`space-y-1`},Ft={class:`flex items-center gap-2 px-2 py-1.5 rounded-md bg-elevated`},It={class:`text-sm font-mono ml-auto truncate`},Lt={class:`flex items-center gap-2 px-2 py-1.5 rounded-md`},Rt={class:`text-sm font-mono ml-auto bg-elevated px-1.5 py-0.5 rounded`},zt={key:0,class:`flex items-center gap-2 px-2 py-1.5 rounded-md bg-elevated`},Bt={class:`text-xs font-mono ml-auto truncate max-w-[200px]`},Vt={class:`border-t border-default pt-2`},Ht={class:`text-sm font-mono mt-1`},Ut={key:1,class:`text-sm text-muted`},Wt={class:`flex items-center gap-2`},Gt={class:`flex items-center justify-between`},Kt={class:`flex items-center gap-2`},qt={key:0,class:`space-y-3`},Jt={class:`text-xs font-medium text-muted uppercase tracking-wide`},Yt={class:`grid grid-cols-2 gap-2`},Xt={class:`bg-elevated rounded-md p-2`},Zt={class:`text-xs font-mono truncate`},Qt={class:`bg-elevated rounded-md p-2`},$t={class:`text-xs font-mono truncate`},en={key:1,class:`text-sm text-muted`},tn={class:`flex items-center gap-2`},nn={class:`w-full text-sm`},rn={class:`p-2`},an={class:`flex items-center gap-1.5`},on={class:`p-2`},sn={class:`flex items-center gap-1.5`},cn={class:`font-mono text-xs`},ln={class:`p-2`},un={class:`flex items-center gap-1.5`},dn={class:`font-mono text-xs`},fn={class:`flex items-center gap-2`},pn={class:`flex flex-wrap gap-2`},mn={key:0,class:`serp-keyword-count`},P=_(l({__name:`serp`,setup(l){let _=/PT(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?/,T=c(()=>v.value.seo),E=c(()=>T.value.title?.length||0),k=c(()=>T.value.description?.length||0),P=c(()=>le(E.value)),F=c(()=>ue(k.value)),I=h(`desktop`),L=c(()=>v.value.titleTemplate),R=c(()=>v.value.templateParams),hn=c(()=>v.value.separator||`|`),z=c(()=>!!L.value),B=c(()=>{let e=[];return T.value.title?E.value>D.TITLE_MAX_CHARS?e.push({label:`Title`,status:`error`,detail:`Too long (${E.value}/${D.TITLE_MAX_CHARS})`}):E.value<30?e.push({label:`Title`,status:`warning`,detail:`Too short (${E.value} chars)`}):e.push({label:`Title`,status:`success`,detail:`${E.value} chars`}):e.push({label:`Title`,status:`error`,detail:`Missing`}),T.value.description?k.value>D.DESC_MAX_CHARS?e.push({label:`Description`,status:`error`,detail:`Too long (${k.value}/${D.DESC_MAX_CHARS})`}):k.value<70?e.push({label:`Description`,status:`warning`,detail:`Too short (${k.value} chars)`}):e.push({label:`Description`,status:`success`,detail:`${k.value} chars`}):e.push({label:`Description`,status:`error`,detail:`Missing`}),T.value.canonical?e.push({label:`Canonical URL`,status:`success`,detail:T.value.canonical}):e.push({label:`Canonical URL`,status:`warning`,detail:`Not set`}),T.value.robots?T.value.robots.includes(`noindex`)?e.push({label:`Robots`,status:`error`,detail:`noindex detected: ${T.value.robots}`}):e.push({label:`Robots`,status:`success`,detail:T.value.robots}):e.push({label:`Robots`,status:`warning`,detail:`Not set (defaults to index, follow)`}),T.value.ogTitle?e.push({label:`og:title`,status:`success`,detail:T.value.ogTitle}):e.push({label:`og:title`,status:`warning`,detail:`Not set (falls back to title)`}),T.value.ogDescription?e.push({label:`og:description`,status:`success`,detail:T.value.ogDescription}):e.push({label:`og:description`,status:`warning`,detail:`Not set (falls back to description)`}),T.value.ogImage?e.push({label:`og:image`,status:`success`,detail:T.value.ogImage}):e.push({label:`og:image`,status:`error`,detail:`Missing`}),e}),V=c(()=>{let e=B.value.length;return{passed:B.value.filter(e=>e.status===`success`).length,total:e}}),H=c(()=>{let e=[];return T.value.ogTitle&&T.value.title&&T.value.ogTitle!==T.value.title&&e.push({field:`Title`,serp:T.value.title,og:T.value.ogTitle}),T.value.ogDescription&&T.value.description&&T.value.ogDescription!==T.value.description&&e.push({field:`Description`,serp:T.value.description,og:T.value.ogDescription}),e}),U=c(()=>se(`${T.value.title||``} ${T.value.description||``}`).slice(0,10)),gn=c(()=>Object.keys(O).map(e=>{let t=O[e],n=E.value>t.titleMax?`error`:E.value<30?`warning`:`success`,r=k.value>t.descMax?`error`:k.value<70?`warning`:`success`;return{key:e,...t,titleStatus:n,descStatus:r,titleLen:E.value,descLen:k.value}}));function W(e){return e===`success`?`Good`:e===`warning`?`Needs work`:`Too long`}function G(e){return e===`success`?`i-carbon-checkmark-filled`:e===`warning`?`i-carbon-warning-filled`:`i-carbon-close-filled`}function K(e){return e===`success`?`text-green-500`:e===`warning`?`text-amber-400`:`text-red-400`}let q=c(()=>{let e=v.value.tags.filter(e=>e.tag===`script`&&e.props?.type===`application/ld+json`).flatMap(e=>{try{return[JSON.parse(e.innerHTML||`{}`)]}catch{return[]}});return e.length?e.length===1?e[0]:{"@graph":e.flatMap(e=>C(e))}:null}),J=c(()=>q.value?C(q.value).filter(e=>b(w(e))):[]),Y=c(()=>{let e=v.value.tags.filter(e=>e.tag===`link`&&[`icon`].includes(e.props?.rel||``));return e.find(e=>e.props?.href?.includes(`favicon.ico`))?.props?.href||e[0]?.props?.href||null}),X=c(()=>{let e=new Set;return J.value.map(e=>{let t=w(e),n=oe(e),r=x(t),i=n.missingRequired.length>0?`ineligible`:n.missingRecommended.length>0?`partial`:`eligible`,a={type:t,icon:y(t),label:ie(e),features:[],eligibility:i,missingRequired:n.missingRequired,documentationUrl:r.googlePage||void 0},o=e.aggregateRating||e.reviewRating;switch(o&&(a.rating={value:Number(o.ratingValue||0),count:Number(o.ratingCount||o.reviewCount||0),max:Number(o.bestRating||5)}),t){case`Product`:{let t=e.offers?.[0]||e.offers||{};t.price&&(a.price=`${t.priceCurrency||`$`}${t.price}`),t.availability&&a.features.push({icon:`i-carbon-delivery-truck`,text:t.availability.replace(`https://schema.org/`,``)});break}case`Recipe`:(e.totalTime||e.cookTime)&&a.features.push({icon:`i-carbon-time`,text:Z(e.totalTime||e.cookTime)}),e.recipeYield&&a.features.push({icon:`i-carbon-restaurant`,text:`Serves ${e.recipeYield}`}),e.nutrition?.calories&&a.features.push({icon:`i-carbon-meter`,text:e.nutrition.calories});break;case`Event`:e.startDate&&(a.eventDate=Q(e.startDate)),(e.location?.name||e.location?.address?.addressLocality)&&(a.eventLocation=e.location.name||e.location.address.addressLocality);break;case`FAQPage`:a.faqItems=S(e.mainEntity||[]).slice(0,4).map(e=>({question:e.name||e.text||`Question`}));break;case`BreadcrumbList`:a.breadcrumbs=S(e.itemListElement||[]).sort((e,t)=>(e.position||0)-(t.position||0)).map(e=>e.name||e.item?.name||`Page`).slice(0,5);break;case`VideoObject`:a.videoThumbnail=e.thumbnailUrl,e.duration&&(a.videoDuration=Z(e.duration));break;case`Article`:case`NewsArticle`:case`BlogPosting`:e.datePublished&&a.features.push({icon:`i-carbon-calendar`,text:Q(e.datePublished)}),e.author?.name&&a.features.push({icon:`i-carbon-user`,text:e.author.name});break;case`JobPosting`:e.hiringOrganization?.name&&a.features.push({icon:`i-carbon-building`,text:e.hiringOrganization.name}),e.baseSalary?.value&&a.features.push({icon:`i-carbon-currency`,text:`${e.baseSalary.currency||``}${e.baseSalary.value}`}),e.jobLocation?.address?.addressLocality&&a.features.push({icon:`i-carbon-location`,text:e.jobLocation.address.addressLocality});break;case`LocalBusiness`:case`Restaurant`:(e.address?.streetAddress||e.address?.addressLocality)&&a.features.push({icon:`i-carbon-location`,text:e.address.streetAddress||e.address.addressLocality}),e.telephone&&a.features.push({icon:`i-carbon-phone`,text:e.telephone}),e.priceRange&&a.features.push({icon:`i-carbon-currency`,text:e.priceRange});break;case`SoftwareApplication`:{e.applicationCategory&&a.features.push({icon:`i-carbon-category`,text:e.applicationCategory});let t=e.offers?.[0]||e.offers||{};t.price&&(a.price=t.price===`0`?`Free`:`${t.priceCurrency||`$`}${t.price}`);break}case`Course`:e.provider?.name&&a.features.push({icon:`i-carbon-education`,text:e.provider.name});break;case`Organization`:e.name&&a.features.push({icon:`i-carbon-building`,text:e.name}),e.url&&a.features.push({icon:`i-carbon-link`,text:e.url}),e.telephone&&a.features.push({icon:`i-carbon-phone`,text:e.telephone});break;case`SearchAction`:e.target&&a.features.push({icon:`i-carbon-search`,text:typeof e.target==`string`?e.target:e.target?.urlTemplate||`Sitelinks searchbox`});break;case`WebSite`:e.name&&a.features.push({icon:`i-carbon-globe`,text:e.name}),e.url&&a.features.push({icon:`i-carbon-link`,text:e.url})}return a}).filter(t=>{let n=`${t.type}::${t.label}::${t.features.find(e=>e.icon===`i-carbon-link`)?.text||``}`;return!e.has(n)&&(e.add(n),!0)})});function Z(e){if(!e)return``;let t=e.match(_);if(!t)return e;let n=[];return t[1]&&n.push(`${t[1]}h`),t[2]&&n.push(`${t[2]}m`),t[3]&&!t[1]&&n.push(`${t[3]}s`),n.join(` `)||e}function Q(e){try{return new Date(e).toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`})}catch{return e}}function $(e,t=5){let n=Math.round(e);return`★`.repeat(Math.min(n,t))+`☆`.repeat(Math.max(0,t-n))}return(c,l)=>{let h=te,_=ne,y=ee,b=ae,x=re;return u(),a(`div`,de,[e(_,null,{header:f(()=>[i(`div`,fe,[i(`div`,pe,[e(h,{name:`i-carbon-search`,class:`text-lg`}),l[2]||=i(`span`,{class:`font-medium`},`Google Search Preview`,-1)]),i(`div`,me,[i(`button`,{type:`button`,"aria-label":`Desktop preview`,"aria-pressed":n(I)===`desktop`,class:r([`px-2 py-1 text-xs rounded`,n(I)===`desktop`?`bg-elevated font-medium`:`text-muted`]),onClick:l[0]||=e=>I.value=`desktop`},[e(h,{name:`i-carbon-laptop`,class:`text-sm`})],10,he),i(`button`,{type:`button`,"aria-label":`Mobile preview`,"aria-pressed":n(I)===`mobile`,class:r([`px-2 py-1 text-xs rounded`,n(I)===`mobile`?`bg-elevated font-medium`:`text-muted`]),onClick:l[1]||=e=>I.value=`mobile`},[e(h,{name:`i-carbon-mobile`,class:`text-sm`})],10,ge)])])]),default:f(()=>[i(`div`,_e,[i(`div`,{class:r([`serp-preview-container transition-all duration-300`,n(I)===`mobile`?`serp-preview-container--mobile`:``])},[i(`div`,ve,[i(`div`,ye,[i(`div`,be,[n(Y)?(u(),a(`img`,{key:0,src:n(Y),alt:``,class:`w-3.5 h-3.5 object-contain`},null,8,A)):(u(),m(h,{key:1,name:`i-carbon-earth`,class:`w-3.5 h-3.5 text-neutral-400`}))]),n(X).find(e=>e.breadcrumbs)?(u(),a(`div`,j,[(u(!0),a(d,null,o(n(X).find(e=>e.breadcrumbs).breadcrumbs,(e,t)=>(u(),a(d,{key:t},[i(`span`,null,p(e),1),te.breadcrumbs).breadcrumbs.length-1?(u(),m(h,{key:0,name:`i-carbon-chevron-right`,class:`text-[10px] mx-0.5 opacity-50`})):g(``,!0)],64))),128))])):(u(),a(`div`,M,p(n(T).canonical||n(v).url),1))]),i(`h3`,{class:r([`serp-preview__title`,n(I)===`mobile`?`serp-preview__title--mobile`:``])},p(n(T).title||`No title found`),3),i(`p`,N,p(n(T).description||`No description found`),1),(u(!0),a(d,null,o(n(X),(n,r)=>(u(),a(d,{key:`inline-${r}`},[n.rating?(u(),a(`div`,xe,[i(`span`,Se,p($(n.rating.value,n.rating.max)),1),i(`span`,Ce,p(n.rating.value)+`/`+p(n.rating.max),1),n.rating.count?(u(),a(`span`,we,` (`+p(n.rating.count.toLocaleString())+` review`+p(n.rating.count===1?``:`s`)+`) `,1)):g(``,!0),n.price?(u(),a(`span`,Te,`· `+p(n.price),1)):g(``,!0)])):n.price?(u(),a(`div`,Ee,p(n.price),1)):g(``,!0),n.eventDate||n.eventLocation?(u(),a(`div`,De,[n.eventDate?(u(),a(`span`,Oe,p(n.eventDate),1)):g(``,!0),n.eventDate&&n.eventLocation?(u(),a(`span`,ke,`·`)):g(``,!0),n.eventLocation?(u(),a(`span`,Ae,p(n.eventLocation),1)):g(``,!0)])):g(``,!0),n.features.length&&!n.rating?(u(),a(`div`,je,[(u(!0),a(d,null,o(n.features,(r,o)=>(u(),a(d,{key:o},[i(`span`,Me,[e(h,{name:r.icon,class:`text-xs opacity-60`},null,8,[`name`]),t(` `+p(r.text),1)]),o(u(),a(`div`,{key:n,class:`serp-rich-faq-item`},[e(h,{name:`i-carbon-chevron-down`,class:`text-xs shrink-0 opacity-60`}),i(`span`,Fe,p(t.question),1)]))),128))])):g(``,!0)],64))),128))])],2)])]),_:1}),n(X).length?(u(),m(_,{key:0},{header:f(()=>[i(`div`,Ie,[i(`div`,Le,[e(h,{name:`i-carbon-star`,class:`text-lg`}),l[3]||=i(`span`,{class:`font-medium`},`Rich Results Preview`,-1)]),e(y,{color:n(X).every(e=>e.eligibility===`eligible`)?`success`:n(X).some(e=>e.eligibility===`ineligible`)?`error`:`warning`,variant:`subtle`,size:`xs`},{default:f(()=>[t(p(n(X).filter(e=>e.eligibility===`eligible`).length)+`/`+p(n(X).length)+` eligible `,1)]),_:1},8,[`color`])])]),default:f(()=>[i(`div`,Re,[(u(!0),a(d,null,o(n(X),(r,s)=>(u(),a(`div`,{key:s,class:`serp-rich-result`},[i(`div`,ze,[i(`div`,Be,[e(h,{name:r.icon,class:`text-sm`},null,8,[`name`]),i(`span`,Ve,p(r.type),1)]),i(`div`,He,[e(y,{color:r.eligibility===`eligible`?`success`:r.eligibility===`partial`?`warning`:`error`,variant:`subtle`,size:`xs`},{default:f(()=>[t(p(r.eligibility===`eligible`?`Eligible`:r.eligibility===`partial`?`Partial`:`Missing required`),1)]),_:2},1032,[`color`]),r.documentationUrl?(u(),a(`a`,{key:0,href:r.documentationUrl,target:`_blank`,rel:`noopener noreferrer`,class:`text-muted hover:text-default`,"aria-label":`Open ${r.type} rich result documentation`},[e(h,{name:`i-carbon-launch`,class:`text-xs`})],8,Ue)):g(``,!0)])]),r.missingRequired.length?(u(),m(b,{key:0,variant:`error`,class:`mb-2`},{default:f(()=>[l[4]||=t(` Missing required: `,-1),(u(!0),a(d,null,o(r.missingRequired,e=>(u(),a(`code`,{key:e,class:`bg-elevated px-1 py-0.5 rounded text-xs mx-0.5`},p(e),1))),128))]),_:2},1024)):g(``,!0),i(`div`,We,[r.breadcrumbs?(u(),a(`div`,Ge,[(u(!0),a(d,null,o(r.breadcrumbs,(e,t)=>(u(),a(d,{key:t},[i(`span`,null,p(e),1),t(u(),a(`div`,{key:n,class:`serp-rich-faq-item`},[e(h,{name:`i-carbon-chevron-down`,class:`text-xs shrink-0 opacity-60`}),i(`span`,ct,p(t.question),1)]))),128)),n(J).find(e=>n(w)(e)===`FAQPage`)?.mainEntity?.length>4?(u(),a(`div`,lt,` + `+p(n(S)(n(J).find(e=>n(w)(e)===`FAQPage`)?.mainEntity||[]).length-4)+` more questions `,1)):g(``,!0)])):g(``,!0),r.features.length?(u(),a(`div`,ut,[(u(!0),a(d,null,o(r.features,(n,o)=>(u(),a(d,{key:o},[i(`span`,dt,[e(h,{name:n.icon,class:`text-xs opacity-60`},null,8,[`name`]),t(` `+p(n.text),1)]),o[i(`div`,mt,[e(h,{name:`i-carbon-text-short-paragraph`,class:`text-lg`}),l[5]||=i(`span`,{class:`font-medium`},`Title`,-1)])]),default:f(()=>[i(`div`,ht,[i(`div`,gt,[i(`span`,{class:r([`serp-length-status`,`serp-length-status--${n(P)}`])},p(W(n(P))),3),i(`span`,_t,p(n(E))+`/`+p(n(D).TITLE_MAX_CHARS)+` chars · ~`+p(n(ce)(n(T).title||``))+`px `,1)]),i(`div`,{class:`serp-progress-track`,role:`progressbar`,"aria-valuenow":n(E),"aria-valuemin":0,"aria-valuemax":n(D).TITLE_MAX_CHARS,"aria-label":`Title length: ${n(E)} of ${n(D).TITLE_MAX_CHARS} characters`},[i(`div`,{class:r([`serp-progress-fill`,`serp-progress-fill--${n(P)}`]),style:s({width:`${Math.min(100,n(E)/n(D).TITLE_MAX_CHARS*100)}%`})},null,6),i(`div`,{class:`serp-progress-marker`,style:s({left:`${30/n(D).TITLE_MAX_CHARS*100}%`})},null,4)],8,vt),i(`p`,yt,p(n(T).title||`Not set`),1)])]),_:1}),e(_,null,{header:f(()=>[i(`div`,bt,[e(h,{name:`i-carbon-text-align-left`,class:`text-lg`}),l[6]||=i(`span`,{class:`font-medium`},`Description`,-1)])]),default:f(()=>[i(`div`,xt,[i(`div`,St,[i(`span`,{class:r([`serp-length-status`,`serp-length-status--${n(F)}`])},p(W(n(F))),3),i(`span`,Ct,p(n(k))+`/`+p(n(D).DESC_MAX_CHARS)+` chars `,1)]),i(`div`,{class:`serp-progress-track`,role:`progressbar`,"aria-valuenow":n(k),"aria-valuemin":0,"aria-valuemax":n(D).DESC_MAX_CHARS,"aria-label":`Description length: ${n(k)} of ${n(D).DESC_MAX_CHARS} characters`},[i(`div`,{class:r([`serp-progress-fill`,`serp-progress-fill--${n(F)}`]),style:s({width:`${Math.min(100,n(k)/n(D).DESC_MAX_CHARS*100)}%`})},null,6),i(`div`,{class:`serp-progress-marker`,style:s({left:`${n(D).DESC_WARN_CHARS/n(D).DESC_MAX_CHARS*100}%`})},null,4)],8,wt),i(`p`,Tt,p(n(T).description||`Not set`),1)])]),_:1})]),e(_,null,{header:f(()=>[i(`div`,Et,[i(`div`,Dt,[e(h,{name:`i-carbon-task`,class:`text-lg`}),l[7]||=i(`span`,{class:`font-medium`},`SEO Checklist`,-1)]),e(y,{color:n(V).passed===n(V).total?`success`:`warning`,variant:`subtle`,size:`xs`},{default:f(()=>[t(p(n(V).passed)+`/`+p(n(V).total)+` passed `,1)]),_:1},8,[`color`])])]),default:f(()=>[i(`div`,Ot,[(u(!0),a(d,null,o(n(B),t=>(u(),a(`div`,{key:t.label,class:`flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-elevated transition-colors`},[e(h,{name:G(t.status),class:r([K(t.status),`text-sm shrink-0`])},null,8,[`name`,`class`]),i(`span`,kt,p(t.label),1),i(`span`,At,p(t.detail),1)]))),128))])]),_:1}),i(`div`,jt,[e(_,null,{header:f(()=>[i(`div`,Mt,[e(h,{name:`i-carbon-string-text`,class:`text-lg`}),l[8]||=i(`span`,{class:`font-medium`},`Title Template`,-1)])]),default:f(()=>[n(z)?(u(),a(`div`,Nt,[i(`div`,Pt,[i(`div`,Ft,[l[9]||=i(`span`,{class:`text-xs text-muted shrink-0`},`Template`,-1),i(`span`,It,p(n(L)),1)]),i(`div`,Lt,[l[10]||=i(`span`,{class:`text-xs text-muted shrink-0`},`Separator`,-1),i(`code`,Rt,p(n(hn)),1)]),n(R)&&Object.keys(n(R)).length?(u(),a(`div`,zt,[l[11]||=i(`span`,{class:`text-xs text-muted shrink-0`},`Params`,-1),i(`span`,Bt,p(JSON.stringify(n(R))),1)])):g(``,!0)]),i(`div`,Vt,[l[12]||=i(`span`,{class:`text-xs text-muted`},`Resolved title`,-1),i(`p`,Ht,p(n(T).title||`Not set`),1)])])):(u(),a(`div`,Ut,` No title template configured. The title is set directly. `))]),_:1}),e(_,null,{header:f(()=>[i(`div`,Wt,[e(h,{name:`i-carbon-settings-adjust`,class:`text-lg`}),l[13]||=i(`span`,{class:`font-medium`},`Crawl Settings`,-1)])]),default:f(()=>[e(x,{items:[{key:`canonical`,value:n(T).canonical||void 0,copyable:!0},{key:`robots`,value:n(T).robots||void 0}],striped:``},null,8,[`items`]),n(T).robots?.includes(`noindex`)?(u(),m(b,{key:0,variant:`error`,icon:`i-carbon-warning`,class:`mt-3`},{default:f(()=>[...l[14]||=[t(` This page has `,-1),i(`code`,{class:`bg-elevated px-1.5 py-0.5 rounded text-xs`},`noindex`,-1),t(` set. It will not appear in search results. `,-1)]]),_:1})):g(``,!0)]),_:1})]),n(H).length>0||n(T).ogTitle||n(T).ogDescription?(u(),m(_,{key:1},{header:f(()=>[i(`div`,Gt,[i(`div`,Kt,[e(h,{name:`i-carbon-compare`,class:`text-lg`}),l[15]||=i(`span`,{class:`font-medium`},`SERP vs Open Graph`,-1)]),n(H).length?(u(),m(y,{key:0,color:`info`,variant:`subtle`,size:`xs`},{default:f(()=>[t(p(n(H).length)+` difference`+p(n(H).length>1?`s`:``),1)]),_:1})):(u(),m(y,{key:1,color:`success`,variant:`subtle`,size:`xs`},{default:f(()=>[...l[16]||=[t(` Matching `,-1)]]),_:1}))])]),default:f(()=>[n(H).length?(u(),a(`div`,qt,[(u(!0),a(d,null,o(n(H),e=>(u(),a(`div`,{key:e.field,class:`space-y-1`},[i(`span`,Jt,p(e.field),1),i(`div`,Yt,[i(`div`,Xt,[l[17]||=i(`span`,{class:`text-[10px] text-muted uppercase tracking-wide block mb-1`},`Search`,-1),i(`p`,Zt,p(e.serp),1)]),i(`div`,Qt,[l[18]||=i(`span`,{class:`text-[10px] text-muted uppercase tracking-wide block mb-1`},`Social`,-1),i(`p`,$t,p(e.og),1)])])]))),128))])):(u(),a(`div`,en,` Open Graph tags match your search engine metadata. Social shares will display the same content as search results. `))]),_:1})):g(``,!0),e(_,null,{header:f(()=>[i(`div`,tn,[e(h,{name:`i-carbon-earth-americas`,class:`text-lg`}),l[19]||=i(`span`,{class:`font-medium`},`Search Engine Compatibility`,-1)])]),default:f(()=>[i(`table`,nn,[l[20]||=i(`thead`,{class:`sticky top-0 bg-default`},[i(`tr`,{class:`text-left text-muted border-b border-default`},[i(`th`,{class:`p-2 font-medium`},` Engine `),i(`th`,{class:`p-2 font-medium`},` Title `),i(`th`,{class:`p-2 font-medium`},` Description `)])],-1),i(`tbody`,null,[(u(!0),a(d,null,o(n(gn),t=>(u(),a(`tr`,{key:t.key,class:`border-b border-default last:border-0 hover:bg-elevated transition-colors`},[i(`td`,rn,[i(`div`,an,[e(h,{name:t.icon,class:`text-sm`},null,8,[`name`]),i(`span`,null,p(t.label),1)])]),i(`td`,on,[i(`div`,sn,[e(h,{name:G(t.titleStatus),class:r([K(t.titleStatus),`text-xs`])},null,8,[`name`,`class`]),i(`span`,cn,p(t.titleLen)+`/`+p(t.titleMax),1)])]),i(`td`,ln,[i(`div`,un,[e(h,{name:G(t.descStatus),class:r([K(t.descStatus),`text-xs`])},null,8,[`name`,`class`]),i(`span`,dn,p(t.descLen)+`/`+p(t.descMax),1)])])]))),128))])])]),_:1}),n(U).length?(u(),m(_,{key:2},{header:f(()=>[i(`div`,fn,[e(h,{name:`i-carbon-tag-group`,class:`text-lg`}),l[21]||=i(`span`,{class:`font-medium`},`Keyword Analysis`,-1)])]),default:f(()=>[i(`div`,pn,[(u(!0),a(d,null,o(n(U),e=>(u(),a(`span`,{key:e.word,class:`serp-keyword-chip`},[t(p(e.word)+` `,1),e.count>1?(u(),a(`span`,mn,p(e.count),1)):g(``,!0)]))),128))])]),_:1})):g(``,!0)])}}}),[[`__scopeId`,`data-v-f1b2d3ef`]]);export{P as default};