1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63376,e=>{"use strict";var t=e.i(43476),r=e.i(56420);let s=(0,r.default)("arrow-down-up",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"m21 8-4-4-4 4",key:"1c9v7m"}],["path",{d:"M17 4v16",key:"7dpous"}]]),i=(0,r.default)("file-search",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]]),n=(0,r.default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var a=e.i(63676),l=e.i(71645);let u=(0,r.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),c=(0,r.default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);var h=e.i(74544);let o=(0,r.default)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),d=(0,r.default)("baby",[["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"11xh7x"}],["path",{d:"M9 12h.01",key:"157uk2"}]]),p=(0,r.default)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]),f=(0,r.default)("car-front",[["path",{d:"m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8",key:"1imjwt"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 14h.01",key:"7oqj8z"}],["rect",{width:"18",height:"8",x:"3",y:"10",rx:"2",key:"a7itu8"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]]),g=(0,r.default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]),m=(0,r.default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),x={"Family Medicine":{icon:(0,r.default)("stethoscope",[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]),gradient:{from:"#00843D",via:"#00A04A",to:"#006B31"},accent:"#A8E6BF"},"Walk-in Care":{icon:o,gradient:{from:"#0E7C66",via:"#10A085",to:"#0A5C4D"},accent:"#A0E4D2"},"Mental Health":{icon:p,gradient:{from:"#5B7CB7",via:"#7591C9",to:"#3F5E96"},accent:"#C4D4EC"},"Children's Health":{icon:d,gradient:{from:"#D97757",via:"#E89373",to:"#B85C3F"},accent:"#F5C8B4"},"Chronic Disease":{icon:g,gradient:{from:"#B83A3A",via:"#D45050",to:"#922929"},accent:"#F0B8B8"},"Drivers Medical":{icon:f,gradient:{from:"#3F6BA1",via:"#5586C0",to:"#2A4F7D"},accent:"#B8CCE6"},"WCB & Workplace":{icon:m,gradient:{from:"#7A6433",via:"#9C8245",to:"#5A4A22"},accent:"#E0CC9F"},"Preventative Care":{icon:(0,r.default)("user-check",[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),gradient:{from:"#5B8268",via:"#739A7F",to:"#436550"},accent:"#C4D8CC"}};function y({post:e,variant:r="card"}){let s=x[e.category],i=s.icon,n="hero"===r;return(0,t.jsxs)("div",{className:"relative w-full h-full overflow-hidden flex flex-col justify-between",style:{background:`linear-gradient(135deg, ${s.gradient.from} 0%, ${s.gradient.via} 50%, ${s.gradient.to} 100%)`},children:[(0,t.jsx)("div",{className:"absolute inset-0 opacity-[0.12]",style:{backgroundImage:"radial-gradient(circle at 1px 1px, white 1px, transparent 0)",backgroundSize:n?"24px 24px":"16px 16px"}}),(0,t.jsx)("div",{className:"absolute -top-20 -right-20 rounded-full blur-3xl op
1acity-30",style:{width:n?"320px":"180px",height:n?"320px":"180px",background:s.accent}}),(0,t.jsx)("div",{className:"absolute -bottom-16 -left-16 rounded-full blur-3xl opacity-20",style:{width:n?"240px":"140px",height:n?"240px":"140px",background:s.accent}}),(0,t.jsxs)("div",{className:`relative flex items-center justify-between ${n?"p-8 md:p-10":"p-5"}`,children:[(0,t.jsx)("div",{className:`rounded-2xl bg-white/15 backdrop-blur-sm flex items-center justify-center ${n?"w-16 h-16":"w-11 h-11"}`,children:(0,t.jsx)(i,{className:`text-white ${n?"w-8 h-8":"w-5 h-5"}`,strokeWidth:2})}),(0,t.jsx)("span",{className:`text-white/90 font-semibold uppercase tracking-wider ${n?"text-sm":"text-[10px]"}`,children:e.category})]}),(0,t.jsxs)("div",{className:`relative ${n?"px-8 md:px-10 pb-10":"px-5 pb-5"}`,children:[(0,t.jsx)("h3",{className:`text-white font-bold leading-tight ${n?"text-2xl md:text-4xl line-clamp-3":"text-base line-clamp-3"}`,children:e.title}),(0,t.jsxs)("div",{className:`flex items-center gap-2 mt-3 text-white/80 ${n?"text-sm":"text-[11px]"}`,children:[(0,t.jsx)("span",{className:"font-semibold",children:"OMEGA"}),(0,t.jsx)("span",{className:"opacity-50",children:"·"}),(0,t.jsx)("span",{className:"uppercase tracking-widest",children:"Medical Clinic"})]})]})]})}var A=e.i(22016);function v({post:e}){return(0,t.jsxs)(A.default,{href:`/blog/${e.slug}`,className:"group flex flex-col bg-white rounded-2xl overflow-hidden border border-gray-100 hover:border-primary/20 hover:shadow-xl transition-all duration-300 hover:-translate-y-1 h-full",children:[(0,t.jsx)("div",{className:"relative aspect-video overflow-hidden",children:(0,t.jsx)("div",{className:"absolute inset-0 transition-transform duration-500 group-hover:scale-[1.03]",children:(0,t.jsx)(y,{post:e,variant:"card"})})}),(0,t.jsxs)("div",{className:"flex flex-col flex-1 p-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 text-xs text-gray-500 mb-3",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)(c,{className:"w-3.5 h-3.5"}),new Date(e.publishedAt).toLocaleDateString("en-CA",{year:"numeric",month:"short",day:"numeric"})]}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)(h.Clock,{className:"w-3.5 h-3.5"}),e.readingTime," min read"]})]}),(0,t.jsx)("h3",{className:"text-lg font-bold text-secondary mb-2 group-hover:text-primary transition-colors leading-snug",children:e.title}),(0,t.jsx)("p",{className:"text-sm text-gray-600 leading-relaxed mb-4 line-clamp-3 flex-1",children:e.excerpt}),(0,t.jsxs)("div",{className:"flex items-center justify-between pt-4 border-t border-gray-100",children:[(0,t.jsxs)("div",{className:"text-xs",children:[(0,t.jsx)("p",{className:"font-semibold text-secondary",children:e.author.name}),(0,t.jsx)("p",{className:"text-gray-500",children:e.author.role})]}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-primary text-sm font-semibold group-hover:gap-2 transition-all",children:["Read",(0,t.jsx)(u,{className:"w-4 h-4"})]})]})]})]})}function C(e){return Array.isArray?Array.isArray(e):"[object Array]"===E(e)}function b(e){return null==e?"":function(e){if("string"==typeof e)return e;if("bigint"==typeof e)return e.toString();let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}function k(e){return"string"==typeof e}function w(e){return"number"==typeof e}function M(e){return"object"==typeof e}function D(e){return null!=e}function B(e){return!e.trim().length}function E(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let F=Object.prototype.hasOwnProperty;class j{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=_(e);this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function _(e){let t=null,r=null,s=null,i=1,n=null;if(k(e)||C(e))s=e,t=N(e),r=S(e);else{if(!F.call(e,"name"))throw Error("Missing name property in key");let a=e.name;if(s=a,F.call(e,"weight")&&(i=e.weight)<=0)throw Error(`Property 'weight' in key '${a}' must be a positive integer`);
1t=N(a),r=S(a),n=e.getFn}return{path:t,id:r,weight:i,src:s,getFn:n}}function N(e){return C(e)?e:e.split(".")}function S(e){return C(e)?e.join("."):e}let I=Object.freeze({isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,useTokenSearch:!1,getFn:function(e,t){let r=[],s=!1,i=(e,t,n,a)=>{if(D(e))if(t[n]){var l,u;let c=e[t[n]];if(!D(c))return;if(n===t.length-1&&(k(c)||w(c)||!0===(l=c)||!1===l||M(u=l)&&null!==u&&"[object Boolean]"==E(l)||"bigint"==typeof c))r.push(void 0!==a?{v:b(c),i:a}:b(c));else if(C(c)){s=!0;for(let e=0,r=c.length;e<r;e+=1)i(c[e],t,n+1,e)}else t.length&&i(c,t,n+1,a)}else r.push(void 0!==a?{v:e,i:a}:e)};return i(e,k(t)?t.split("."):t,0),s?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}),$=/[^ ]+/g;class L{constructor({getFn:e=I.getFn,fieldNormWeight:t=I.fieldNormWeight}={}){this.norm=function(e=1,t=3){let r=new Map,s=Math.pow(10,t);return{get(t){let i=t.match($).length;if(r.has(i))return r.get(i);let n=parseFloat(Math.round(1/Math.pow(i,.5*e)*s)/s);return r.set(i,n),n},clear(){r.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,k(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();k(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t<r;t+=1)this.records[t].i-=1}removeAll(e){for(let t=e.length-1;t>=0;t-=1)this.records.splice(e[t],1);for(let e=0,t=this.records.length;e<t;e+=1)this.records[e].i=e}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!D(e)||B(e))return;let r={v:e,i:t,n:this.norm.get(e)};this.records.push(r)}_addObject(e,t){let r={i:t,$:{}};this.keys.forEach((t,s)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(D(i)){if(C(i)){let e=[];for(let t=0,r=i.length;t<r;t+=1){let r=i[t];if(D(r)){if(k(r)){if(!B(r)){let s={v:r,i:t,n:this.norm.get(r)};e.push(s)}}else if(D(r.v)){let t=k(r.v)?r.v:b(r.v);if(!B(t)){let s={v:t,i:r.i,n:this.norm.get(t)};e.push(s)}}}}r.$[s]=e}else if(k(i)&&!B(i)){let e={v:i,n:this.norm.get(i)};r.$[s]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}}function z(e,t,{getFn:r=I.getFn,fieldNormWeight:s=I.fieldNormWeight}={}){let i=new L({getFn:r,fieldNormWeight:s});return i.setKeys(e.map(_)),i.setSources(t),i.create(),i}function O(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let r=1,s=e.length;r<s;r+=1){let s=t[t.length-1],i=e[r];i[0]<=s[1]+1?s[1]=Math.max(s[1],i[1]):t.push(i)}return t}let R={Å:"l",Å:"L",Ä:"d",Ä:"D",ø:"o",Ã:"O",ħ:"h",Ħ:"H",ŧ:"t",Ŧ:"T",ı:"i",Ã:"ss"},T=RegExp("["+Object.keys(R).join("")+"]","g"),W=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D
17F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(T,e=>R[e]):e=>e;class q{constructor(e,{location:t=I.location,threshold:r=I.threshold,distance:s=I.distance,includeMatches:i=I.includeMatches,findAllMatches:n=I.findAllMatches,minMatchCharLength:a=I.minMatchCharLength,isCaseSensitive:l=I.isCaseSensitive,ignoreDiacritics:u=I.ignoreDiacritics,ignoreLocation:c=I.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:s,includeMatches:i,findAllMatches:n,minMatchCharLength:a,isCaseSensitive:l,ignoreDiacritics:u,ignoreLocation:c},e=l?e:e.toLowerCase(),e=u?W(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const h=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let r=0,s=e.length;r<s;r+=1){let i=e.charAt(r);t[i]=(t[i]||0)|1<<s-r-1}return t}(e),startIndex:t})},o=this.pattern.length;if(o>32){let e=0;const t=o%32,r=o-t;for(;e<r;)h(this.pattern.substr(e,32),e),e+=32;if(t){const e=o-32;h(this.pattern.substr(e),e)}}else h(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:r,includeMatches:s}=this.options;if(e=t?e:e.toLowerCase(),e=r?W(e):e,this.pattern===e){let t={isMatch:!0,score:0};return s&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:n,threshold:a,findAllMatches:l,minMatchCharLength:u,ignoreLocation:c}=this.options,h=[],o=0,d=!1;this.chunks.forEach(({pattern:t,alphabet:r,startIndex:p})=>{let{isMatch:f,score:g,indices:m}=function(e,t,r,{location:s=I.location,distance:i=I.distance,threshold:n=I.threshold,findAllMatches:a=I.findAllMatches,minMatchCharLength:l=I.minMatchCharLength,includeMatches:u=I.includeMatches,ignoreLocation:c=I.ignoreLocation}={}){let h;if(t.length>32)throw Error("Pattern length exceeds max of 32.");let o=t.length,d=e.length,p=Math.max(0,Math.min(s,d)),f=n,g=p,m=(e,t)=>{let r=e/o;if(c)return r;let s=Math.abs(p-t);return i?r+s/i:s?1:r},x=l>1||u,y=x?Array(d):[];for(;(h=e.indexOf(t,g))>-1;)if(f=Math.min(m(0,h),f),g=h+o,x){let e=0;for(;e<o;)y[h+e]=1,e+=1}g=-1;let A=[],v=1,C=o+d,b=1<<o-1;for(let t=0;t<o;t+=1){let s=0,i=C;for(;s<i;)m(t,p+i)<=f?s=i:C=i,i=Math.floor((C-s)/2+s);C=i;let n=Math.max(1,p-i+1),l=a?d:Math.min(p+i,d)+o,u=Array(l+2);u[l+1]=(1<<t)-1;for(let s=l;s>=n;s-=1){let i=s-1,a=r[e[i]];if(x&&(y[i]=+!!a),u[s]=(u[s+1]<<1|1)&a,t&&(u[s]|=(A[s+1]|A[s])<<1|1|A[s+1]),u[s]&b&&(v=m(t,i))<=f){if(f=v,(g=i)<=p)break;n=Math.max(1,2*p-g)}}if(m(t+1,p)>f)break;A=u}let k={isMatch:g>=0,score:Math.max(.001,v)};if(x){let e=function(e=[],t=I.minMatchCharLength){let r=[],s=-1,i=-1,n=0;for(let a=e.length;n<a;n+=1){let a=e[n];a&&-1===s?s=n:a||-1===s||((i=n-1)-s+1>=t&&r.push([s,i]),s=-1)}return e[n-1]&&n-s>=t&&r.push([s,n-1]),r}(y,l);e.length?u&&(k.indices=e):k.isMatch=!1}return k}(e,t,r,{location:i+p,distance:n,threshold:a,findAllMatches:l,minMatchCharLength:u,includeMatches:s,ignoreLocation:c});f&&(d=!0),o+=g,f&&m&&h.push(...m)});let p={isMatch:d,score:d?o/this.chunks.length:1};return d&&s&&(p.indices=O(h)),p}}class H{constructor(e){this.pattern=e}static isMultiMatch(e){return K(e,this.multiRegex)}static isSingleMatch(e){return K(e,this.singleRegex)}search(e){return{isMatch:!1,score:1}}}function K(e,t){let r=e.match(t);return r?r[1]:null}class P extends H{constructor(e,{location:t=I.location,threshold:r=I.threshold,distance:s=I.distance,includeMatches:i=I.includeMatches,findAllMatches:n=I.findAllMatches,minMatchCharLength:a=I.minMatchCharLength,isCaseSensitive:l=I.isCaseSensitive,ignoreDiacritics:u=I.ignoreDiacritics,ignoreLocation:c=I.ignoreLocation}={}){super(e),this._bitapSearch=new q(e,{location:t,threshold:r,distance:s,includeMatches:i,findAllMatches:n,minMatchCharLength:a,isCaseSensitive:l,ignoreDiacritics:u,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class V extends H{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0,s=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+i,s.push([t,r-1]);let n=!!s.length;return{isMatch:n,score:+!n,indices:s}}}let U=[class extends H{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}
1search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},V,class extends H{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},class extends H{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},class extends H{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},class extends H{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}},class extends H{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},P],Q=U.length,J=new Set([P.type,V.type]),Z=[];function G(...e){Z.push(...e)}function X(e,t){for(let r=0,s=Z.length;r<s;r+=1){let s=Z[r];if(s.condition(e,t))return new s(e,t)}return new q(e,t)}let Y="$and",ee="$path",et=e=>!!(e[Y]||e.$or),er=e=>({[Y]:Object.keys(e).map(t=>({[t]:e[t]}))});function es(e,t,{auto:r=!0}={}){let s=e=>{if(k(e)){let s={keyId:null,pattern:e};return r&&(s.searcher=X(e,t)),s}let i=Object.keys(e),n=!!e[ee];if(!n&&i.length>1&&!et(e))return s(er(e));if(!C(e)&&M(e)&&!et(e)){let s=n?e[ee]:i[0],a=n?e.$val:e[s];if(!k(a))throw Error(`Invalid value for key ${s}`);let l={keyId:S(s),pattern:a};return r&&(l.searcher=X(a,t)),l}let a={children:[],operator:i[0]};return i.forEach(t=>{let r=e[t];C(r)&&r.forEach(e=>{a.children.push(s(e))})}),a};return et(e)||(e=er(e)),s(e)}function ei(e,{ignoreFieldNorm:t=I.ignoreFieldNorm}){let r=1;return e.forEach(({key:e,norm:s,score:i})=>{let n=e?e.weight:null;r*=Math.pow(0===i&&n?Number.EPSILON:i,(n||1)*(t?1:s))}),r}class en{constructor(e){this.limit=e,this.heap=[]}get size(){return this.heap.length}shouldInsert(e){return this.size<this.limit||e<this.heap[0].score}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):e.score<this.heap[0].score&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(e){return this.heap.sort(e)}_bubbleUp(e){let t=this.heap;for(;e>0;){let r=e-1>>1;if(t[e].score<=t[r].score)break;let s=t[e];t[e]=t[r],t[r]=s,e=r}}_sinkDown(e){let t=this.heap,r=t.length,s=e;do{let i=2*(e=s)+1,n=2*e+2;if(i<r&&t[i].score>t[s].score&&(s=i),n<r&&t[n].score>t[s].score&&(s=n),s!==e){let r=t[e];t[e]=t[s],t[s]=r}}while(s!==e)}}function ea(e,t){let r=e.matches;t.matches=[],D(r)&&r.forEach(e=>{if(!D(e.indices)||!e.indices.length)return;let{indices:r,value:s}=e,i={indices:r,value:s};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function el(e,t){t.score=e.score}let eu=/\b\w+\b/g;function ec({isCaseSensitive:e=!1,ignoreDiacritics:t=!1}={}){return{tokenize:r=>(e||(r=r.toLowerCase()),t&&(r=W(r)),r.match(eu)||[])}}function eh(e,t){for(let[r,s]of e.terms){let i=s.filter(e=>e.docIdx!==t),n=s.length-i.length;n>0&&(e.fieldCount-=n,e.df.set(r,(e.df.get(r)||0)-n),0===i.length?(e.terms.delete(r),e.df.delete(r)):e.terms.set(r,i))}}class eo{constructor(e,t,r){this.options={...I,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new j(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,r),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=X(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof L))throw Error("Incorrect 'index' type");if(this._myIndex=t||z(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=ec({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});this._invertedIndex=function(e,t,r){let s=new Map,i=new Map,n=0;function a(e,t,a,l){let u=r.tokenize(e);if(!u.length)return;n++;let c=new Map;for(let e of u)c.set(e,(c.get(e)||0)+1);for(let[e,r]of c){let n={docIdx:t,keyIdx:a,subIdx:l,tf:r},u=s.get(e);u||(u=[],s.set(e,u)),u.push(n),i.set(e,(i.get(e)||0)+1)}}for(let r of e){let{i:e,v:s,$:i}=r;if(void 0!==s){a(s,e,-1,-1);continue}if(i)for(let r=0;r<t;r++){let t=i[r];if(t)if(Array.isArray(t))for(let s of t)a(s.v,e,r,s.i??-1);else a(t.v,e,r,-1)}}return{terms:s,fieldCount:n,df:i}}(this._myIndex.records,this._myIndex.keys.length,e)}}add(e){if(D(e)&&(this._docs.push(e),this._myIndex.add(e),this._invertedIndex)){let e=this._myIndex.records[this._myIndex.records.length-1],t=ec({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});!function(e,t,r,s){let{i:i,v:n,$:a}=t;function l(t,r,n){let a=s.tokenize(t);if(!a.length)return;e.fieldCount++;let l=new Map;for(let e of a)l.set(e,(l.get(e)||0)+1);for(let[t,s]of l){let a={docIdx:i,keyIdx:r,subIdx:n,tf:s},l=e.terms.get(t);l||(l=[],e.terms.set(t,l)),l.push(a),e.df.set(t,(e.df.get(t)||0)+1)}}if(void 0!==n)return l(n,-1,-1);if(a)for(let e=0;e<r;e++){let t=a[e];if(t)if(Array.isArray(t))for(let r of t)l(r.v,e,r.i??-1);else l(t.v,e,-1)}}(this._invertedIndex,e,this._myIndex.keys.length,t)}}remove(e=()=>!1){let t=[],r=[];for(let s=0,i=this._docs.length;s<i;s+=1)e(this._docs[s],s)&&(t.push(this._docs[s]),r.push(s));if(r.length){if(this._invertedIndex)for(let e of r)eh(this._invertedIndex,e);for(let e=r.length-1;e>=0;e-=1)this._docs.splice(r[e],1);this._myIndex.removeAll(r)}return t}removeAt(e){this._invertedIndex&&eh(this._invertedIndex,e);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),t}getIndex(){return this._myIndex}search(e,t){let r,{limit:s=-1}=t||{},{includeMatches:i,includeScore:n,shouldSort:a,sortFn:l,ignoreFieldNorm:u}=this.options;if(k(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return w(s)&&s>-1&&(e=e.slice(0,s)),e}if(w(s)&&s>0&&k(e)){let t=new en(s);k(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:u}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:u}),r=t.extractSorted(l)}else!function(e,{ignoreFieldNorm:t=I.ignoreFieldNorm}
1){e.forEach(e=>{e.score=ei(e.matches,{ignoreFieldNorm:t})})}(r=k(e)?k(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),{ignoreFieldNorm:u}),a&&r.sort(l),w(s)&&s>-1&&(r=r.slice(0,s));return function(e,t,{includeMatches:r=I.includeMatches,includeScore:s=I.includeScore}={}){let i=[];return r&&i.push(ea),s&&i.push(el),e.map(e=>{let{idx:r}=e,s={item:t[r],refIndex:r};return i.length&&i.forEach(t=>{t(e,s)}),s})}(r,this._docs,{includeMatches:i,includeScore:n})}_searchStringList(e,{heap:t,ignoreFieldNorm:r}={}){let s=this._getSearcher(e),{records:i}=this._myIndex,n=t?null:[];return i.forEach(({v:e,i:i,n:a})=>{if(!D(e))return;let{isMatch:l,score:u,indices:c}=s.searchIn(e);if(l){let s={item:e,idx:i,matches:[{score:u,value:e,norm:a,indices:c}]};t?(s.score=ei(s.matches,{ignoreFieldNorm:r}),t.shouldInsert(s.score)&&t.insert(s)):n.push(s)}}),n}_searchLogical(e){let t=es(e,this.options),r=(e,t,s)=>{if(!("children"in e)){let r,{keyId:i,searcher:n}=e;return(null===i?(r=[],this._myIndex.keys.forEach((e,s)=>{r.push(...this._findMatches({key:e,value:t[s],searcher:n}))})):r=this._findMatches({key:this._keyStore.get(i),value:this._myIndex.getValueForItemAtKeyId(t,i),searcher:n}),r&&r.length)?[{idx:s,item:t,matches:r}]:[]}let{children:i,operator:n}=e,a=[];for(let e=0,l=i.length;e<l;e+=1){let l=r(i[e],t,s);if(l.length)a.push(...l);else if(n===Y)return[]}return a},s=this._myIndex.records,i=new Map,n=[];return s.forEach(({$:e,i:s})=>{if(D(e)){let a=r(t,e,s);a.length&&(i.has(s)||(i.set(s,{idx:s,item:e,matches:[]}),n.push(i.get(s))),a.forEach(({matches:e})=>{i.get(s).matches.push(...e)}))}}),n}_searchObjectList(e,{heap:t,ignoreFieldNorm:r}={}){let s=this._getSearcher(e),{keys:i,records:n}=this._myIndex,a=t?null:[];return n.forEach(({$:e,i:n})=>{if(!D(e))return;let l=[],u=!1,c=!1;if(i.forEach((t,r)=>{let i=this._findMatches({key:t,value:e[r],searcher:s});i.length?(l.push(...i),i[0].hasInverse&&(c=!0)):u=!0}),(!c||!u)&&l.length){let s={idx:n,item:e,matches:l};t?(s.score=ei(s.matches,{ignoreFieldNorm:r}),t.shouldInsert(s.score)&&t.insert(s)):a.push(s)}}),a}_findMatches({key:e,value:t,searcher:r}){if(!D(t))return[];let s=[];if(C(t))t.forEach(({v:t,i:i,n:n})=>{if(!D(t))return;let{isMatch:a,score:l,indices:u,hasInverse:c}=r.searchIn(t);a&&s.push({score:l,key:e,value:t,idx:i,norm:n,indices:u,hasInverse:c})});else{let{v:i,n:n}=t,{isMatch:a,score:l,indices:u,hasInverse:c}=r.searchIn(i);a&&s.push({score:l,key:e,value:i,norm:n,indices:u,hasInverse:c})}return s}}eo.version="7.3.0",eo.createIndex=z,eo.parseIndex=function(e,{getFn:t=I.getFn,fieldNormWeight:r=I.fieldNormWeight}={}){let{keys:s,records:i}=e,n=new L({getFn:t,fieldNormWeight:r});return n.setKeys(s),n.setIndexRecords(i),n},eo.config=I,eo.match=function(e,t,r){return X(e,{...I,...r}).searchIn(t)},eo.parseQuery=es,G(class{constructor(e,{isCaseSensitive:t=I.isCaseSensitive,ignoreDiacritics:r=I.ignoreDiacritics,includeMatches:s=I.includeMatches,minMatchCharLength:i=I.minMatchCharLength,ignoreLocation:n=I.ignoreLocation,findAllMatches:a=I.findAllMatches,location:l=I.location,threshold:u=I.threshold,distance:c=I.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:r,includeMatches:s,minMatchCharLength:i,findAllMatches:a,ignoreLocation:n,location:l,threshold:u,distance:c},e=t?e:e.toLowerCase(),e=r?W(e):e,this.pattern=e,this.query=function(e,t={}){return e.replace(/\\\|/g,"\0").split("|").map(e=>{let r=(function(e){let t=[],r=e.length,s=0;for(;s<r;){for(;s<r&&" "===e[s];)s++;if(s>=r)break;let i=s;for(;i<r&&" "!==e[i]&&'"'!==e[i];)i++;if(i<r&&'"'===e[i]){for(i++;i<r;){if('"'===e[i]){let t=i+1;if(t>=r||" "===e[t]){i++;break}if("$"===e[t]&&(t+1>=r||" "===e[t+1])){i+=2;break}}i++}t.push(e.substring(s,i)),s=i}else{for(;i<r&&" "!==e[i];)i++;t.push(e.substring(s,i)),s=i}}return t})(e.replace(/\u0000/g,"|").trim()).filter(e=>e&&!!e.trim()),s=[];for(let e=0,i=r.length;e<i;e+=1){let i=r[e],n=!1,a=-1;for(;!n&&++a<Q;){let e=U[a],r=e.isMultiMatch(i);r&&(s.push(new e(r,t)),n=!0)}if(!n)for(a=-1;++a<Q;){let e=U[a],r=e.isSingleMatch(i);if(r){s.push(new e(r,t));break}}}return s})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:r,isCaseSensitive:s,ignoreDiacritics:i}=this.options;e=s?e:e.toLowerCase(),e=i?W(e):e;let n=0,a=[],l=0,u=!1;for(let s=0,i=t.length;s<i;s+=1){let i=t[s];a.length=0,n=0,u=!1;for(let t=0,s=i.length;t<s;t+=1){let s=i[t],{isMatch:c,indices:h,score:o}=s.search(e);if(c){n+=1,l+=o;let e=s.constructor.type;e.startsWith("inverse")&&(u=!0),r&&(J.has(e)?a.push(...h):a.push(h))}else{l=0,n=0,a.length=0,u=!1;break}}
1if(n){let e={isMatch:!0,score:l/n};return u&&(e.hasInverse=!0),r&&(e.indices=O(a)),e}}return{isMatch:!1,score:1}}}),G(class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=ec({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics});const r=this.analyzer.tokenize(e),{df:s,fieldCount:i}=t._invertedIndex;for(const e of(this.termSearchers=[],this.idfWeights=[],r)){this.termSearchers.push(new q(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));const r=s.get(e)||0,n=Math.log(1+(i-r+.5)/(r+.5));this.idfWeights.push(n)}}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],r=0,s=0,i=0;for(let n=0;n<this.termSearchers.length;n++){let a=this.termSearchers[n].searchIn(e),l=this.idfWeights[n];s+=l,a.isMatch&&(i++,r+=l*(1-a.score),a.indices&&t.push(...a.indices))}if(0===i)return{isMatch:!1,score:1};let n={isMatch:!0,score:Math.max(.001,s>0?1-r/s:0)};return this.options.includeMatches&&t.length&&(n.indices=O(t)),n}}),eo.use=function(...e){e.forEach(e=>G(e))};let ed={threshold:.4,ignoreLocation:!0,includeScore:!0,minMatchCharLength:2,keys:[{name:"title",weight:.35},{name:"keywords",weight:.25},{name:"tags",weight:.15},{name:"excerpt",weight:.15},{name:"category",weight:.05},{name:"content",weight:.05}]},ep={newest:"Newest first",oldest:"Oldest first",az:"Title A â Z",za:"Title Z â A"};e.s(["default",0,function({posts:e,categories:r}){let[u,c]=(0,l.useState)(""),[h,o]=(0,l.useState)(null),[d,p]=(0,l.useState)("newest"),f=(0,l.useMemo)(()=>{var t;let r,s=h?e.filter(e=>e.category===h):e,i=(t=s,(r=u.trim())?new eo(t,ed).search(r).map(e=>e.item):t),n=u.trim().length>0;return s=i,n||(s=[...s].sort((e,t)=>{switch(d){case"oldest":return new Date(e.publishedAt).getTime()-new Date(t.publishedAt).getTime();case"az":return e.title.localeCompare(t.title);case"za":return t.title.localeCompare(e.title);default:return new Date(t.publishedAt).getTime()-new Date(e.publishedAt).getTime()}})),s},[e,u,h,d]),g=(0,l.useCallback)(()=>{c(""),o(null),p("newest")},[]),m=u.trim()||h||"newest"!==d,x=u.trim().length>0;return(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)("div",{className:"flex flex-col md:flex-row gap-3",children:[(0,t.jsxs)("div",{className:"relative flex-1",children:[(0,t.jsx)(n,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none"}),(0,t.jsx)("input",{type:"search",value:u,onChange:e=>c(e.target.value),placeholder:"Search articles, topics, or keywords...",className:"w-full pl-11 pr-10 py-3.5 rounded-full border border-gray-200 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition-all text-sm bg-white","aria-label":"Search blog posts"}),u&&(0,t.jsx)("button",{type:"button",onClick:()=>c(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 cursor-pointer","aria-label":"Clear search",children:(0,t.jsx)(a.X,{className:"w-4 h-4"})})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(s,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none"}),(0,t.jsx)("select",{value:d,onChange:e=>p(e.target.value),disabled:x,className:"pl-11 pr-10 py-3.5 rounded-full border border-gray-200 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition-all text-sm bg-white appearance-none cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed","aria-label":"Sort posts",children:Object.keys(ep).map(e=>(0,t.jsx)("option",{value:e,children:ep[e]},e))})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>o(null),className:`px-4 py-1.5 rounded-full text-sm font-medium transition-all cursor-pointer ${null===h?"bg-primary text-white shadow-md shadow-primary/20":"bg-white text-gray-700 hover:bg-gray-50 border border-gray-200"}`,children:"All Topics"}),r.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>o(e===h?null:e),className:`px-4 py-1.5 rounded-full text-sm font-medium transition-all cursor-pointer ${h===e?"bg-primary text-white shadow-md shadow-primary/20":"bg-white text-gray-700 hover:bg-gray-50 border border-gray-200"}`,children:e},e))]}),(0,t.jsxs)("div",{className:"flex items-center justify-between text-sm text-gray-500",children:[(0,t.jsxs)("p",{children:[0===f.length?"No articles found":`Showing ${f.length} ${1===f.length?"article":"articles"}`,x&&(0,t.jsx)("span",{className:"ml-2 text-primary font-medium",children:"· sorted by relevance"})]}),m&&(0,t.jsx)("button",{type:"button",onClick:g,className:"text-primary hover:text-primary-dark font-medium transition-colors cursor-pointer",children:"Clear filters"})]}),0===f.length?(0,t.jsxs)("div",{className:"text-center py-20 bg-white rounded-2xl border border-dashed border-gray-200",children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-gray-50 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,t.jsx)(i,{className:"w-7 h-7 text-gray-400"})}),(0,t.jsx)("h3",{className:"font-semibold text-secondary mb-1",children:"No matches found"}),(0,t.jsx)("p",{className:"text-sm text-gray-500 mb-6",children:"Try a different search term or clear your filters."}),(0,t.jsx)("button",{type:"button",onClick:g,className:"inline-flex items-center gap-2 text-primary hover:text-primary-dark font-medium text-sm cursor-pointer",children:"Clear filters"})]}):(0,t.jsx)("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:f.map(e=>(0,t.jsx)(v,{post:e},e.slug))})]})}],63376)}]);
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.