PageSourceSearch

https://backendbytes.com/_next/static/chunks/app/search/page-a87f11b8c70314f1.js

js backendbytes.com collected 2026-10-08 00:05:59 UTC 26,147 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2959],{61862:(e,t,r)=>{Promise.resolve().then(r.bind(r,37860)),Promise.resolve().then(r.bind(r,94444)),Promise.resolve().then(r.bind(r,38865)),Promise.resolve().then(r.bind(r,22483)),Promise.resolve().then(r.bind(r,36849)),Promise.resolve().then(r.bind(r,89022)),Promise.resolve().then(r.bind(r,26498)),Promise.resolve().then(r.bind(r,49359)),Promise.resolve().then(r.bind(r,86468))},37860:(e,t,r)=>{"use strict";r.d(t,{default:()=>y});var s=r(95155),n=r(12115),i=r(86293),a=r(5849),o=r(20106),l=r(76046);function c(e,t){var r=e.get(t);return r?r.split(",").filter(Boolean):[]}var d=r(74762),u=r(19148),x=r(6816),m=function(){return(0,s.jsx)("svg",{className:"h-5 w-5 text-text-muted",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})},g=function(){return(0,s.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})};function h(e){var t=e.query,r=e.onQueryChange,i=e.autoFocus;return(0,n.useEffect)(function(){var e;i&&(null===(e=document.getElementById("search-input"))||void 0===e||e.focus({preventScroll:!0}))},[i]),(0,s.jsxs)("div",{className:"group",children:[(0,s.jsx)("label",{htmlFor:"search-input",className:"sr-only",children:"Search articles"}),(0,s.jsx)(u.pd,{id:"search-input",type:"text",variant:"hero",inputSize:"lg",value:t,onChange:function(e){return r(e.target.value)},placeholder:"Search articles...",leftIcon:(0,s.jsx)(m,{}),rightSlot:t?(0,s.jsx)(x.$n,{variant:"ghost",size:"icon",onClick:function(){return r("")},"aria-label":"Clear search",className:"h-9 w-9 rounded-full",children:(0,s.jsx)(g,{})}):null})]})}function f(e){var t=e.resultsCount,r=e.visibleCount,n=e.filtersOpen,i=e.onToggleFilters,a=e.activeFilterCount,o=e.sortBy,l=e.onSortChange,c=e.hasQuery;return(0,s.jsxs)("div",{className:"flex items-center justify-between mt-3 sm:mt-4 text-sm",children:[(0,s.jsx)("p",{className:"text-text-muted",role:"status","aria-live":"polite",children:0===t?"No results":(0,s.jsxs)(s.Fragment,{children:["Showing ",(0,s.jsx)("span",{className:"text-text-heading font-medium",children:Math.min(r,t)})," of ",(0,s.jsx)("span",{className:"text-text-heading font-medium",children:t})," ",1===t?"result":"results"]})}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsxs)("button",{onClick:i,className:"lg:hidden flex items-center gap-1.5 min-h-[44px] px-2 -mx-2 text-text-muted hover:text-text-heading transition-colors focus-ring rounded","aria-expanded":n,"aria-controls":"search-filters",children:[(0,s.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 
10 0 1 12 3Z"})}),"Filters",a>0&&(0,s.jsx)("span",{className:"bg-primary-dark text-white text-xs font-bold px-1.5 py-0.5 rounded-full",children:a})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("label",{htmlFor:"sort-by",className:"text-text-muted sr-only sm:not-sr-only sm:inline",children:"Sort by:"}),(0,s.jsxs)("select",{id:"sort-by",value:o,onChange:function(e){return l(e.target.value)},className:"min-h-[44px] py-2 text-base sm:text-sm bg-bg-card border border-border rounded-lg px-2 text-text-heading focus:outline-none focus:ring-2 focus:ring-primary transition",children:[(0,s.jsx)("option",{value:"newest",children:"Newest"}),(0,s.jsx)("option",{value:"oldest",children:"Oldest"}),c&&(0,s.jsx)("option",{value:"relevance",children:"Most Relevant"})]})]})]})]})}function p(e){var t=e.availableTags,r=e.difficulties,o=e.categories,l=e.selectedLanguages,c=e.selectedComplexities,d=e.selectedTopics,u=e.selectedCategories,x=e.filtersOpen,m=e.onToggleLanguage,g=e.onToggleComplexity,h=e.onToggleCategory,f=e.onToggleTopic,p=e.onResetFilters,b=(0,a._)((0,n.useState)(!1),2),v=b[0],j=b[1],y=t.filter(function(e){return i.HD.includes(e.tag)}),N=t.filter(function(e){return!i.HD.includes(e.tag)}),w=v?N:N.slice(0,15),k=N.length-15;return(0,s.jsx)("aside",{id:"search-filters",className:"lg:col-span-3 space-y-6 lg:space-y-8 ".concat(x?"block":"hidden lg:block"),"aria-label":"Search filters",children:(0,s.jsxs)("div",{className:"bg-bg-card lg:bg-transparent rounded-xl lg:rou
1nded-none border border-border lg:border-0 p-4 lg:p-0 space-y-6 lg:space-y-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-xs font-bold text-text-muted uppercase tracking-wider mb-3",children:"Language"}),(0,s.jsx)("div",{className:"space-y-2",children:y.map(function(e){var t=e.tag,r=e.name,n=e.count;return(0,s.jsxs)("label",{className:"flex items-center gap-3 cursor-pointer group",children:[(0,s.jsx)("input",{type:"checkbox",checked:l.includes(t),onChange:function(){return m(t)},className:"h-4 w-4 rounded border-border-muted bg-bg-card text-primary accent-primary focus-visible:ring-2 focus-visible:ring-primary/60 focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base transition"}),(0,s.jsx)("span",{className:"text-sm text-text-secondary group-hover:text-text-heading transition-colors",children:r}),(0,s.jsx)("span",{className:"ml-auto text-xs text-text-faint",children:n})]},t)})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-xs font-bold text-text-muted uppercase tracking-wider mb-3",children:"Complexity"}),(0,s.jsx)("div",{className:"space-y-2",children:i.CR.map(function(e){var t=r[i.Ki[e]]||0;return(0,s.jsxs)("label",{className:"flex items-center gap-3 cursor-pointer group",children:[(0,s.jsx)("input",{type:"checkbox",checked:c.includes(e),onChange:function(){return g(e)},className:"h-4 w-4 border-border-muted bg-bg-card text-primary accent-primary focus-visible:ring-2 focus-visible:ring-primary/60 focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base rounded"}),(0,s.jsx)("span",{className:"text-sm text-text-secondary group-hover:text-text-heading transition-colors",children:e}),(0,s.jsx)("span",{className:"ml-auto text-xs text-text-faint",children:t})]},e)})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-xs font-bold text-text-muted uppercase tracking-wider mb-3",children:"Category"}),(0,s.jsx)("div",{className:"space-y-2",children:o.map(function(e){var t=e.category,r=e.count;return(0,s.jsxs)("label",{className:"flex items-center gap-3 cursor-pointer group",children:[(0,s.jsx)("input",{type:"checkbox",checked:u.includes(t.slug),onChange:function(){return h(t.slug)},className:"h-4 w-4 border-border-muted bg-bg-card text-primary accent-primary focus-visible:ring-2 focus-visible:ring-primary/60 focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base rounded"}),(0,s.jsx)("span",{className:"text-sm text-text-secondary group-hover:text-text-heading transition-colors",children:t.name}),(0,s.jsx)("span",{className:"ml-auto text-xs text-text-faint",children:r})]},t.slug)})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-xs font-bold text-text-muted uppercase tracking-wider mb-3",children:"Topic Tags"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:w.map(function(e){var t=e.tag,r=e.name,n=e.count;return(0,s.jsx)("button",{onClick:function(){return f(t)},"aria-pressed":d.includes(t),className:"inline-flex items-center min-h-[36px] px-3 py-2 text-xs rounded-md border transition-colors focus-ring ".concat(d.includes(t)?"bg-primary/20 border-primary/40 text-primary-on-tint":"bg-bg-card border-border text-text-secondary hover:border-primary/50 hover:text-primary"),title:"".concat(n," article").concat(1!==n?"s":""),children:r},t)})}),k>0&&(0,s.jsx)("button",{onClick:function(){return j(!v)},className:"mt-2 inline-flex items-center min-h-[36px] -ml-1 px-1 text-xs text-primary hover:underline transition-colors focus-ring rounded",children:v?"Show fewer":"+".concat(k," more topics")})]}),(0,s.jsxs)("button",{onClick:p,className:"inline-flex items-center min-h-[36px] gap-1 text-xs text-text-muted hover:text-text-heading transition-colors focus-ring rounded",children:[(0,s.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.992 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182"})}),"Reset Filters"]})]})})}function b(e){var t=e.availableTags,r=e.onResetFilters,n=e.onSuggestedQuery;return(0,s.jsxs)("div",{className:"bg-bg-card rounded-xl border border-border p-6 sm:p-12 text-center",children:[(0,s.jsx)("svg",{className:"mx-auto mb-4 h-12 w-12 text-text-faint",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,s.jsx)("h3",{className:"text-lg font-bold text-text-heading font-display",children:"No results found"}),(0,s.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Try adjusting your filters or search query."}),t.length>0&&(0,s.jsxs)("div",{className:"mt-6 pt-6 border-t border-border",children:[(0,s.jsx)("p",{className:"text-xs font-semibold text-text-muted uppercase tracking-widest mb-3",children:"Popular Topics"}),(0,s.jsx)("div",{className:"flex flex-wrap justify-center gap-2",children:t.slice(0,6).map(function(e){var t=e.tag,r=e.name;return(0,s.jsxs)("button",{onClick:function(){return n(t)},className:"px-3 py-1.5 rounded-lg bg-bg-tag text-text-secondary text-xs font-medium hover:bg-primary/10 hover:text-primary-on-tint transition-colors focus-ring",children:["#",r]},t)}
1)})]}),(0,s.jsxs)("button",{onClick:r,className:"mt-4 inline-flex items-center gap-1.5 text-sm text-primary font-medium hover:underline focus-ring rounded",children:["Browse all articles",(0,s.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 8l4 4m0 0l-4 4m4-4H3"})})]})]})}var v=r(64625);function j(e){var t=e.visibleResults,r=e.hasMore,n=e.remaining,a=e.onLoadMore;return(0,s.jsxs)("div",{className:"flex flex-col gap-4",role:"region","aria-label":"Search results",children:[t.map(function(e){return(0,s.jsx)(v.A,{article:e},e.slug)}),r&&(0,s.jsxs)("div",{className:"pt-2 flex flex-col items-center gap-3",children:[(0,s.jsxs)(x.$n,{variant:"outline",size:"lg",onClick:a,className:"font-medium",children:["Load ",Math.min(n,i.T_)," more"]}),(0,s.jsxs)("p",{className:"text-xs text-text-faint",children:[n," more ",1===n?"result":"results"," to show"]})]})]})}function y(e){var t=e.articles,r=e.availableTags,i=e.difficulties,a=e.categories;return(0,s.jsx)(n.Suspense,{fallback:(0,s.jsx)(N,{}),children:(0,s.jsx)(w,{articles:t,availableTags:r,difficulties:i,categories:a})})}function N(){return(0,s.jsx)("div",{className:"flex-1 max-w-7xl mx-auto w-full px-4 sm:px-6 lg:px-8 py-8",children:(0,s.jsxs)("div",{className:"animate-pulse",children:[(0,s.jsx)("div",{className:"h-14 bg-bg-card rounded-xl mb-6"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8",children:[(0,s.jsxs)("div",{className:"lg:col-span-3 space-y-4",children:[(0,s.jsx)("div",{className:"h-40 bg-bg-card rounded-xl"}),(0,s.jsx)("div",{className:"h-32 bg-bg-card rounded-xl"})]}),(0,s.jsxs)("div",{className:"lg:col-span-9 space-y-4",children:[(0,s.jsx)("div",{className:"h-64 bg-bg-card rounded-xl"}),(0,s.jsx)("div",{className:"h-48 bg-bg-card rounded-xl"})]})]})]})})}function w(e){var t,u,x,m,g,v,y,N,w,k,C,T,_,S,L,R,F,P,M,B,A,q,E,O,z,Q,D,I,W,$,V,H,K,Y,G,U,Z,J,X,ee,et,er,es,en,ei,ea,eo,el,ec,ed,eu,ex=e.articles,em=e.availableTags,eg=e.difficulties,eh=e.categories,ef=(x=(t={articles:ex,categories:eh}).articles,m=t.categories,g=(0,l.useSearchParams)(),v=(0,n.useRef)(null),N=(y=(0,a._)((0,n.useState)(null!==(u=g.get("q"))&&void 0!==u?u:""),2))[0],w=y[1],k=(0,n.useDeferredValue)(N),T=(C=(0,a._)((0,n.useState)(function(){return c(g,"lang")}),2))[0],_=C[1],L=(S=(0,a._)((0,n.useState)(function(){return c(g,"complexity")}),2))[0],R=S[1],P=(F=(0,a._)((0,n.useState)(function(){return c(g,"topic")}),2))[0],M=F[1],A=(B=(0,a._)((0,n.useState)(function(){return c(g,"cat")}),2))[0],q=B[1],O=(E=(0,a._)((0,n.useState)(function(){var e=g.get("sort"),t=g.get("q");return"relevance"===e?t?"relevance":"newest":"oldest"===e||"newest"===e?e:t?"relevance":"newest"}),2))[0],z=E[1],D=(Q=(0,a._)((0,n.useState)(i.T_),2))[0],I=Q[1],$=(W=(0,a._)((0,n.useState)(!1),2))[0],V=W[1],(0,n.useEffect)(function(){var e,t,r=(e={query:k,languages:T,complexities:L,topics:P,categories:A,sort:O},t=new URLSearchParams,e.query&&t.set("q",e.query),e.languages.length&&t.set("lang",e.languages.join(",")),e.complexities.length&&t.set("complexity",e.complexities.join(",")),e.topics.length&&t.set("topic",e.topics.join(",")),e.categories.length&&t.set("cat",e.categories.join(",")),"newest"!==e.sort&&t.set("sort",e.sort),t).toString(),s=r?"".concat(window.location.pathname,"?").concat(r):window.location.pathname;window.history.replaceState(null,"",s)},[k,T,L,P,A,O]),H=(0,n.useRef)(N),(0,n.useEffect)(function(){var e=H.current;H.current=N,!e.trim()&&N.trim()?"newest"===O&&z("relevance"):e.trim()&&!N.trim()&&"relevance"===O&&z("newest")},[N,O]),Y=(K=(0,a._)((0,n.useState)(null),2))[0],G=K[1],Z=(U=(0,a._)((0,n.useState)(!1),2))[0],J=U[1],(0,n.useEffect)(function(){r.e(8426).then(r.bind(r,38426)).then(function(e){G(new e.default(x,{keys:[{name:"title",weight:.5},{name:"searchTokens",weight:.25},{name:"excerpt",weight:.15},{name:"tags",weight:.1}],threshold:.3,ignoreLocation:!0,minMatchCharLength:3,includeScore:!0})),J(!0)}).catch(function(){J(!0)})},[x]),X=(0,n.useMemo)(function(){var e,t=k.trim();if(t&&t.length<=2){var r=t.toLowerCase(),s=RegExp("\\b".concat(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\b"),"i");e=x.filter(function(e){return e.tags.some(function(e){return e.toLowerCase()===r})||s.test(e.title)})}else if(k.trim()&&Y)e=Y.search(k).map(function(e){return e.item});else if(k.trim()&&!Y&&Z){var n=k.toLowerCase();e=x.filter(function(e){return e.title.toLowerCase().includes(n)||e.excerpt.toLowerCase().includes(n)||e.tags.some(function(e){return e.toLowerCase().includes(n)})})}else e=(0,o._)(x);if(T.length>0&&(e=e.filter(function(e){return e.tags.some(function(e){return T.includes(e)})})),L.length>0){var a=L.map(function(e){return i.Ki[e]}
1).filter(Boolean);e=e.filter(function(e){return a.includes(e.difficulty)})}if(P.length>0&&(e=e.filter(function(e){return e.tags.some(function(e){return P.includes(e)})})),A.length>0){var l=A.map(function(e){var t;return null===(t=m.find(function(t){return t.category.slug===e}))||void 0===t?void 0:t.category.name}).filter(function(e){return!!e});e=e.filter(function(e){return l.includes(e.category)})}if(!k.trim()||"relevance"!==O)switch(O){case"newest":e.sort(function(e,t){return new Date(t.date).getTime()-new Date(e.date).getTime()});break;case"oldest":e.sort(function(e,t){return new Date(e.date).getTime()-new Date(t.date).getTime()})}return e},[x,Y,Z,k,T,L,P,A,O,m]),ee="".concat(k,"|").concat(T.join(","),"|").concat(L.join(","),"|").concat(P.join(","),"|").concat(A.join(","),"|").concat(O),(et=(0,n.useRef)(ee)).current!==ee&&(et.current=ee,D!==i.T_&&I(i.T_)),(0,n.useEffect)(function(){k&&v.current&&v.current.getBoundingClientRect().top>.6*window.innerHeight&&v.current.scrollIntoView({behavior:"smooth",block:"start"})},[k]),er=(0,n.useCallback)(function(e){_(function(t){return t.includes(e)?t.filter(function(t){return t!==e}):(0,o._)(t).concat([e])})},[]),es=(0,n.useCallback)(function(e){R(function(t){return t.includes(e)?t.filter(function(t){return t!==e}):(0,o._)(t).concat([e])})},[]),en=(0,n.useCallback)(function(e){q(function(t){return t.includes(e)?t.filter(function(t){return t!==e}):(0,o._)(t).concat([e])})},[]),ei=(0,n.useCallback)(function(e){M(function(t){return t.includes(e)?t.filter(function(t){return t!==e}):(0,o._)(t).concat([e])})},[]),ea=(0,n.useCallback)(function(){_([]),R([]),M([]),q([])},[]),eo=(0,n.useCallback)(function(){ea(),w("")},[ea]),el=T.length+L.length+P.length+A.length,ec=X.slice(0,D),ed=D<X.length,eu=X.length-D,{query:N,setQuery:w,debouncedQuery:k,selectedLanguages:T,selectedComplexities:L,selectedTopics:P,selectedCategories:A,sortBy:O,setSortBy:z,visibleCount:D,setVisibleCount:I,filtersOpen:$,setFiltersOpen:V,results:X,visibleResults:ec,hasMore:ed,remaining:eu,activeFilterCount:el,resultsRef:v,toggleLanguage:er,toggleComplexity:es,toggleCategory:en,toggleTopic:ei,resetFilters:ea,resetAll:eo}),ep=ef.query,eb=ef.setQuery,ev=ef.debouncedQuery,ej=ef.selectedLanguages,ey=ef.selectedComplexities,eN=ef.selectedTopics,ew=ef.selectedCategories,ek=ef.sortBy,eC=ef.setSortBy,eT=ef.visibleCount,e_=ef.setVisibleCount,eS=ef.filtersOpen,eL=ef.setFiltersOpen,eR=ef.results,eF=ef.visibleResults,eP=ef.hasMore,eM=ef.remaining,eB=ef.activeFilterCount,eA=ef.resultsRef,eq=ef.toggleLanguage,eE=ef.toggleComplexity,eO=ef.toggleCategory,ez=ef.toggleTopic,eQ=ef.resetFilters,eD=ef.resetAll,eI=(0,n.useRef)("");return(0,n.useEffect)(function(){var e=ev.trim().toLowerCase().slice(0,100);if(e&&e!==eI.current){var t=setTimeout(function(){eI.current=e,(0,d.track)(d.AnalyticsEvent.Search,{search_term:e,results_count:(0,d.bucketResults)(eR.length)}),0===eR.length&&(0,d.track)(d.AnalyticsEvent.SearchNoResults,{search_term:e})},1200);return function(){return clearTimeout(t)}}},[ev,eR.length]),(0,s.jsxs)("div",{className:"flex-1 max-w-7xl mx-auto w-full px-4 sm:px-6 lg:px-8 py-6 sm:py-8 grid grid-cols-1 lg:grid-cols-12 gap-6 lg:gap-8",children:[(0,s.jsxs)("div",{className:"lg:col-span-12 mb-2",children:[(0,s.jsx)("h1",{className:"sr-only",children:"Search Articles"}),(0,s.jsx)(h,{query:ep,onQueryChange:eb,autoFocus:!0}),(0,s.jsx)(f,{resultsCount:eR.length,visibleCount:eT,filtersOpen:eS,onToggleFilters:function(){return eL(!eS)},activeFilterCount:eB,sortBy:ek,onSortChange:eC,hasQuery:!!ev.trim()})]}),(0,s.jsx)(p,{availableTags:em,difficulties:eg,categories:eh,selectedLanguages:ej,selectedComplexities:ey,selectedTopics:eN,selectedCategories:ew,filtersOpen:eS,onToggleLanguage:eq,onToggleComplexity:eE,onToggleCategory:eO,onToggleTopic:ez,onResetFilters:eQ}),(0,s.jsxs)("div",{ref:eA,className:"lg:col-span-9 space-y-4 scroll-mt-24",children:[0===eR.length&&(0,s.jsx)(b,{availableTags:em,onResetFilters:eD,onSuggestedQuery:function(e){eD(),eb(e)}}),(0,s.jsx)(j,{visibleResults:eF,hasMore:eP,remaining:eM,onLoadMore:function(){return e_(function(e){return e+i.T_})}})]})]})}},62319:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var s=r(95155),n=r(5565);function i(e){var t=e.src,r=e.name,i=e.size,a=void 0===i?22:i,o="".concat(a,"px");return t?(0,s.jsx)(n.default,{src:t,alt:r,width:a,height:a,className:"rounded-full shrink-0 object-cover ring-1 ring-border",style:{width:o,height:o}}):(0,s.jsx)("div",{className:"rounded-full bg-avatar-fallback shrink-0 ring-1 ring-border",style:{width:o,height:o}})}var a=r(49198),o=r(21567);function l(e){var t=e.author,r=e.date,n=e.readTime,l=e.variant,c=void 0===l?"default":l,d=e.withDivider,u="default"===c;return(0,s.jsxs)("div",{className:"flex items-start justify-between gap-2 ".concat(void 0!==d&&d?"mt-auto pt-4 border-t border-border":""),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,s.jsx)(i,{src:t.avatar,name:t.name,size:"default"===c?22:20}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("span",{className:"text-xs font-medium text-text-secondary truncate block leading-tight",children:t.name}),u&&(0,s.jsx)("time",{dateTime:r,className:"text-[11px] sm:text-xs text-text-faint font-mono",children:(0,o.Yq)(r,"full")})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[u&&(0,s.jsx)("span",{className:"text-[11px] sm:text-xs text-text-faint font-mono",children:n}),(0,s.jsx)(a.A,{})]})]})}},64625:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var s=r(95155),n=r(12115),i=r(48173),a=r.n(i),o=r(93831),l=r(26617),c=r(62319),d=r(65679);let u=(0,n.memo)(function(e){var t=e.article;return(0,s.jsx)("article",{className:"card-premium card-hover-lift card-glass group rounded-xl border border-border bg-bg-card overflow-hidden transition-[border-color,box-shadow,transform] duration-300 hover:border-transparent",children:(0,s.jsxs)(a(),{href:"/articles/".concat(t.slug),className:"flex flex-col sm:flex-row w-full",children:[(0,s.jsx)("div",{className:"relative w-full sm:w-52 shrink-0 overflow-hidden",children:(0,s.jsx)(l.A,{category:t.category,tags:t.tags,coverImage:t.coverImage,title:t.title,codePanelClassName:"w-full h-32 sm:h-full",pillPosition:"bottom-2 left-2"})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0 p-4 sm:p-5 flex flex-col",children:[(0,s.jsx)(o.A,{date:t.date,readTime:t.readTime,category:t.category}),(0,s.jsxs)("h3",{className:"text-base sm:text-lg font-bold text-text-heading mb-2 mt-2 group-hover:text-primary transition-colors duration-200 line-clamp-2 font-display leading-snug",children:[t.sponsor&&(0,s.jsx)(d.a$,{}),t.title]}),(0,s.jsx)("p",{className:"text-text-body text-sm mb-4 line-clamp-2 leading-relaxed flex-grow",children:t.excerpt}),(0,s.jsx)(c.A,{author:t.author,date:t.date,readTime:t.readTime,variant:"compact"})]})]})})})},93831:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(95155),n=r(21567),i=r(86293);function a(e){var t,r=e.date,a=e.readTime,o=e.category,l=e.dateFormat,c=o?null!==(t=i.Gv[o])&&void 0!==t?t:"text-primary":void 0;return(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs text-text-muted",children:[o&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"font-medium ".concat(c),children:o}),(0,s.jsx)("span",{children:"•"})]}),(0,s.jsx)("time",{dateTime:r,children:(0,n.Yq)(r,void 0===l?"short":l)}),(0,s.jsx)("span",{children:"•"}),(0,s.jsx)("span",{children:a})]})}},6816:(e,t,r)=>{"use strict";r.d(t,{$n:()=>m});var s=r(25742),n=r(65843),i=r(94556),a=r(95155),o=r(48173),l=r.n(o),c=r(12115),d=r(21567),u={primary:"rounded-lg bg-primary-dark text-white hover:brightness-110",secondary:"rounded-lg border border-primary/30 bg-primary/10 text-primary-on-tint hover:bg-primary/15 hover:border-primary/50",ghost:"rounded-md text-text-muted hover:bg-bg-hover hover:text-text-heading",outline:"rounded-lg border border-border bg-bg-card text-text-secondary hover:border-primary/40 hover:text-text-heading hover:bg-bg-hover active:scale-[0.97] transition-all duration-200",danger:"rounded-lg bg-(--accent-red-bg) border border-(--accent-red-border) text-(--accent-red) hover:bg-(--accent-red)/15"},x={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-5 text-base",icon:"h-11 w-11 shrink-0"},m=(0,c.forwardRef)(function(e,t){var r,o=e.variant,c=e.size,m=e.className,g=e.children,h=(0,i._)(e,["variant","size","className","children"]),f=(0,d.cn)("inline-flex items-center justify-center gap-2 font-semibold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/60 focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:opacity-60 disabled:cursor-not-allowed aria-disabled:opacity-60 aria-disabled:cursor-not-allowed aria-disabled:pointer-events-none",u[void 0===o?"primary":o],x[void 0===c?"md":c],m);if("href"in h&&h.href){var p,b=h.href,v=(0,i._)(h,["href"]);return/^https?:\/\//i.test(b)||b.startsWith("//")?(0,a.jsx)("a",(0,n._)((0,s._)({ref:t,href:b,rel:"noopener noreferrer",target:null!==(p=v.target)&&void 0!==p?p:"_blank",className:f},v),{children:g})):(0,a.jsx)(l(),(0,n._)((0,s._)({ref:t,href:b,className:f},v),{children:g}))}return(0,a.jsx)("button",(0,n._)((0,s._)({ref:t,type:null!==(r=h.type)&&void 0!==r?r:"button",className:f},h),{children:g}))});Object.keys(u),Object.keys(x)},19148:(e,t,r)=>{"use strict";r.d(t,{pd:()=>d});var s=r(25742),n=r(94556),i=r(95155),a=r(12115),o=r(21567),l={default:"rounded-lg border border-border bg-bg-surface text-text-heading",search:"rounded-lg border border-border-muted bg-bg-card text-text-secondary",hero:"rounded-xl border border-border bg-bg-card text-text-heading shadow-sm font-mono"},c={sm:{input:"h-8 text-base sm:text-xs px-3",iconPos:"pl-8",rightPos:"pr-10"},md:{input:"h-10 text-base sm:text-sm px-4",iconPos:"pl-10",rightPos:"pr-12"},lg:{input:"h-12 text-base px-5 sm:h-14 sm:text-lg",iconPos:"pl-12",rightPos:"pr-12"}},d=(0,a.forwardRef)(function(e,t){var r=e.variant,a=e.inputSize,d=void 0===a?"md":a,u=e.leftIcon,x=e.rightSlot,m=e.className,g=e.wrapperClassName,h=(0,n._)(e,["variant","inputSize","leftIcon","rightSlot","className","wrapperClassName"]),f=c[d],p=(0,o.cn)(u?f.iconPos:"",x?f.rightPos:""),b=(0,o.cn)("block w-full transition-colors placeholder:text-text-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/60 focus-visible:border-primary/50 disabled:opacity-60 disabled:cursor-not-allowed aria-invalid:border-(--accent-red) aria-invalid:focus-visible:ring-(--accent-red)/60",l[void 0===r?"default":r],f.input,p,m);return u||x?(0,i.jsxs)("div",{className:(0,o.cn)("relative",g),children:[u&&(0,i.jsx)("span",{"aria-hidden":"true",className:(0,o.cn)("pointer-events-none absolute inset-y-0 left-0 flex items-center","sm"===d?"pl-2.5":"md"===d?"pl-3":"pl-4","text-text-muted"),children:u}),(0,i.jsx)("input",(0,s._)({ref:t,className:b},h)),x&&(0,i.jsx)("span",{className:(0,o.cn)("absolute inset-y-0 right-0 flex items-center gap-1","
1sm"===d?"pr-2.5":"md"===d?"pr-3":"pr-4"),children:x})]}):(0,i.jsx)("input",(0,s._)({ref:t,className:b},h))})}},e=>{var t=t=>e(e.s=t);e.O(0,[1181,8173,7970,2040,3810,6039,8441,1517,7358],()=>t(61862)),_N_E=e.O()}]);

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.