function h(e){return e?e.toLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/&/g,"and").replace(/%/g,"percent").replace(/\+/g,"plus").replace(/[^\w\s-]/g,"").replace(/[\s_]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,""):""}function y(e){if(!e)return{toc:[],processedContent:e};const r=[],n=new Set,s=e.replace(/<(h[23])([^>]*)>([\s\S]*?)<\/\1>/gi,(o,a,i,l)=>{const p=l.replace(/<[^>]*>/g,"").trim();let u=h(p),c=u,d=1;for(;n.has(c);)c=`${u}-${d}`,d++;n.add(c);const g=a.toLowerCase()==="h2"?2:3;return r.push({id:c,text:p,level:g}),i.includes("id=")?o:`<${a} id="${c}"${i}>${l}</${a}>`});return{toc:r,processedContent:s}}function m(e,r={}){if(!e)return e;const{width:n,quality:s=80,format:o="webp"}=r;if(e.includes("unsplash.com")){const a=e.split("?")[0],i=new URLSearchParams;return i.set("fm",o==="auto"?"webp":o),i.set("q",s.toString()),n&&i.set("w",n.toString()),i.set("auto","compress"),`${a}?${i.toString()}`}if(e.includes("cloudinary.com")){const a=[];return n&&a.push(`w_${n}`),a.push(`q_${s}`),a.push(`f_${o==="auto"?"auto":o}`),e.replace("/upload/",`/upload/${a.join(",")}/`)}if(e.includes("imgix.net")){const a=e.includes("?")?"&":"?",i=[`fm=${o}`,`q=${s}`];return n&&i.push(`w=${n}`),`${e}${a}${i.join("&")}`}return e}function b(e){return e&&e.replace(/<img([^>]*?)src=["']([^"']+)["']([^>]*?)>/gi,(r,n,s,o)=>{const a=m(s,{quality:85}),l=r.includes("loading=")?"":' loading="lazy"',u=r.includes("decoding=")?"":' decoding="async"';return`<img${n}src="${a}"${o}${l}${u}>`})}function f(e){return{"@context":"https://schema.org","@type":"Article",headline:e.title,description:e.excerpt,image:e.thumbnail?m(e.thumbnail,{width:1200}):void 0,datePublished:e.published_at,dateModified:e.published_at,author:{"@type":"Person",name:e.author_name||"Chris Green"},publisher:{"@type":"Organization",name:"Certtech Web Solutions",logo:{"@type":"ImageObject",url:"/logo.png"}},mainEntityOfPage:{"@type":"WebPage","@id":`/insights/${e.slug}`}}}const t={name:"Certtech Web Solutions",url:"https://certtechweb.com",logo:"https://certtechweb.com/logo.png",phone:"+18882189088",email:"info@certtechweb.com",address:{streetAddress:"52 Highcroft Rd",addressLocality:"Barrie",addressRegion:"ON",postalCode:"L4N 2X7",addressCountry:"CA"}};function $(){return{"@context":"https://schema.org","@type":"Organization",name:t.name,url:t.url,logo:{"@type":"ImageObject",url:t.logo},telephone:t.phone,email:t.email,address:{"@type":"PostalAddress",...t.address},sameAs:["https://www.facebook.com/certtechweb","https://www.linkedin.com/company/certtech-web-solutions"]}}function w(e={}){const{cityName:r,regionName:n,slug:s,description:o}=e;return{"@context":"https://schema.org","@type":"LocalBusiness",name:t.name,url:s?`${t.url}${s}`:t.url,telephone:t.phone,email:t.email,logo:t.logo,image:t.logo,description:o||"Expert web design, local SEO, and digital growth services for Ontario businesses.",address:{"@type":"PostalAddress",...t.address,...r?{addressLocality:r.replace(", ON","").replace(", Ontario","")}:{},...n?{addressRegion:n}:{}},areaServed:r?[{"@type":"City",name:r}]:[{"@type":"State",name:"Ontario"},{"@type":"Country",name:"Canada"}],priceRange:"$$",openingHours:"Mo-Fr 09:00-17:00"}}function S(){return{"@context":"https://schema.org","@type":"WebSite",name:t.name,url:t.url,potentialAction:{"@type":"SearchAction",target:`${t.url}/insights?q={search_term_string}`,"query-input":"required name=search_term_string"}}}function O(e){const r={"@context":"https://schema.org","@type":"WebPage",name:e.title,description:e.description,url:e.url,isPartOf:{"@type":"WebSite",url:t.url,name:t.name},publisher:{"@type":"Organization",name:t.name,logo:{"@type":"ImageObject",url:t.logo}}};return e.breadcrumbs&&e.breadcrumbs.length>0&&(r.breadcrumb={"@type":"BreadcrumbList",itemListElement:e.breadcrumbs.map((n,s)=>({"@type":"ListItem",position:s+1,name:n.name,item:n.url}))}),r}function A(e){return{"@context":"https://schema.org","@type":"Service",name:e.name,description:e.description,url:e.url,provider:{"@type":"Organization",name:t.name,url:t.url,telephone:t.phone},areaServed:{"@type":"State",name:"Ontario"},...e.imageUrl?{image:e.imageUrl}:{}}}function x(e){return{"@context":"https://schema.org","@type":"Blog",name:e.title,description:e.description,url:e.url,publisher:{"@type":"Organization",name:t.name,url:t.url,logo:{"@type":"ImageObject",url:t.logo}}}}function P(e){return{"@context":"https://schema.org","@type":"Person",name:e.name,jobTitle:e.jobTitle,description:e.description,url:e.url,worksFor:{"@type":"Organization",name:t.name,url:t.url},address:{"@type":"PostalAddress",...t.address}}}function L(e){return{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(r=>({"@type":"Question",name:r.question,acceptedAnswer:{"@type":"Answer",text:r.answer}}))}}export{S as a,w as b,A as c,L as d,P as e,O as f,$ as g,x as h,f as i,b as j,m as o,y as p};