PageSourceSearch

https://rustrepo.com/_next/static/chunks/app/page-1c13f336865e580e.js

js rustrepo.com collected 2026-10-04 02:08:24 UTC 21,479 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{1925:(e,r,s)=>{Promise.resolve().then(s.bind(s,5653))},5653:(e,r,s)=>{"use strict";s.d(r,{HomePageClient:()=>k});var t=s(5155),n=s(2115),o=s(8173),a=s.n(o),l=s(9659),i=s(3561),c=s(2444),d=s(5497),x=s(6835),m=s(1567);function u(e){let{className:r}=e;return(0,t.jsx)("svg",{className:r,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}function h(e){let{className:r}=e;return(0,t.jsx)("svg",{className:r,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"})})}function f(e){let{className:r}=e;return(0,t.jsx)("svg",{className:r,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 18.657A8 8 0 016.343 7.343S7 9 9 10c0-2 .5-5 2.986-7C14 5 16.09 5.777 17.656 7.343A7.975 7.975 0 0120 13a7.975 7.975 0 01-2.343 5.657z"})})}function g(e){let{className:r}=e;return(0,t.jsx)("svg",{className:r,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})})}function p(e){let{className:r}=e;return(0,t.jsx)("svg",{className:r,fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})})}function j(e){let{className:r}=e;return(0,t.jsx)("svg",{className:r,fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})}function v(e){let{className:r}=e;return(0,t.jsx)("svg",{className:r,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"})})}function b(e){let{className:r}=e;return(0,t.jsx)("svg",{className:r,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}function N(e){let{className:r}=e;return(0,t.jsx)("svg",{className:r,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"})})}function y(e){let{className:r}=e;return(0,t.jsx)("svg",{className:r,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})})}function w(e){let{className:r}=e;return(0,t.jsx)("svg",{className:r,fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}function k(e){let{categories:r,featuredResources:s,trendingResources:o,allResources:k,statistics:L,faqs:C}=e,{addBookmark:M,removeBookmark:A,isBookmarked:B,addToComparison:E,removeFromComparison:I,isInComparison:S}
1=(0,x.g)(),[R,W]=(0,n.useState)(""),[z,q]=(0,n.useState)(!1),D=(0,n.useRef)(null),P=(0,n.useRef)(null),Z=(0,n.useMemo)(()=>{if(!R.trim())return[];let e=R.toLowerCase();return k.filter(r=>{var s;return r.name.toLowerCase().includes(e)||(null===(s=r.description)||void 0===s?void 0:s.toLowerCase().includes(e))||r.tags.some(r=>r.toLowerCase().includes(e))||r.category.toLowerCase().includes(e)}).sort((e,r)=>{var s,t;return((null===(s=r.github)||void 0===s?void 0:s.stars)||0)-((null===(t=e.github)||void 0===t?void 0:t.stars)||0)}).slice(0,8)},[k,R]);(0,n.useEffect)(()=>{function e(e){D.current&&!D.current.contains(e.target)&&q(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,n.useEffect)(()=>{function e(e){var r,s;(e.metaKey||e.ctrlKey)&&"k"===e.key&&(e.preventDefault(),null===(r=P.current)||void 0===r||r.focus()),"Escape"===e.key&&(q(!1),null===(s=P.current)||void 0===s||s.blur())}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]);let G=e=>{B(e)?A(e):M(e)},H=e=>{S(e)?I(e):E(e)},_=[...r].sort((e,r)=>r.resourceCount-e.resourceCount).slice(0,20);return(0,t.jsxs)(l.PE,{categories:r,showSidebar:!1,allResources:k,children:[(0,t.jsxs)("section",{className:"relative mb-16 overflow-hidden rounded-2xl bg-gradient-to-br from-primary-500/10 via-surface to-accent-500/10 px-6 py-16 sm:px-12 sm:py-20",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiM5Qzk0OTQiIGZpbGwtb3BhY2l0eT0iMC4wNCI+PHBhdGggZD0iTTM2IDM0djItSDI0di0yaDEyek0zNiAyNHYySDI0di0yaDEyeiIvPjwvZz48L2c+PC9zdmc+')] opacity-50"}),(0,t.jsxs)("div",{className:"relative mx-auto max-w-3xl text-center",children:[(0,t.jsxs)("h1",{className:"mb-6 text-4xl font-bold tracking-tight text-foreground sm:text-5xl lg:text-6xl",children:["Discover the"," ",(0,t.jsx)("span",{className:"bg-gradient-to-r from-primary-500 to-primary-600 bg-clip-text text-transparent",children:"Rust Ecosystem"})]}),(0,t.jsxs)("p",{className:"mx-auto mb-10 max-w-2xl text-lg text-foreground-muted sm:text-xl",children:["Explore ",L.totalResources.toLocaleString()," curated Rust libraries, tools, and applications. Find the perfect resources for your next project."]}),(0,t.jsxs)("div",{ref:D,className:"relative mx-auto mb-8 max-w-xl",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-2xl border-2 bg-surface px-5 py-4 shadow-lg transition-all duration-200 ".concat(z?"border-primary-500/50 shadow-xl shadow-primary-500/5":"border-transparent hover:border-border"),children:[(0,t.jsx)(u,{className:"h-5 w-5 flex-shrink-0 transition-colors ".concat(z?"text-primary-500":"text-foreground-subtle")}),(0,t.jsx)("input",{ref:P,type:"text",value:R,onChange:e=>W(e.target.value),onFocus:()=>q(!0),placeholder:"Search resources, categories, or tags...",className:"flex-1 border-none bg-transparent text-base text-foreground placeholder-foreground-muted outline-none ring-0 focus:border-none focus:outline-none focus:ring-0"}),R&&(0,t.jsx)("button",{onClick:()=>{var e;W(""),null===(e=P.current)||void 0===e||e.focus()},className:"cursor-pointer rounded-full p-1 text-foreground-subtle transition-colors hover:bg-surface-overlay hover:text-foreground",children:(0,t.jsx)(w,{className:"h-4 w-4"})}),!R&&(0,t.jsx)("kbd",{className:"hidden flex-shrink-0 rounded-lg border border-border bg-surface-overlay px-2 py-1 text-xs text-foreground-subtle sm:inline-block",children:"⌘K"})]}),z&&R.trim()&&(0,t.jsx)("div",{className:"absolute left-0 right-0 top-full z-50 mt-2 overflow-hidden rounded-xl border border-border bg-surface shadow-xl",children:Z.length>0?(0,t.jsxs)("div",{className:"max-h-96 overflow-y-auto",children:[Z.map(e=>{var r,s;let n=!!e.github,o=n?"/resource/".concat(e.id,"/"):e.url,l=n?{onClick:()=>q(!1)}:{target:"_blank",rel:"noopener noreferrer",onClick:()=>q(!1)};return n?(0,t.jsxs)(a(),{href:o,...l,className:"flex cursor-pointer items-center gap-3 px-4 py-3 transition-colors hover:bg-surface-overlay",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-lg bg-primary-500/10",children:(0,t.jsx)(v,{className:"h-5 w-5 text-primary-500"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate font-medium text-foreground",children:e.name}),(0,t.jsxs)("span",{className:"flex items-center gap-1 text-xs text-foreground-muted",children:[(0,t.jsx)(p,{className:"h-3 w-3 text-yellow-500"}),(null===(s=e.github)||void 0===s?void 0:null===(r=s.stars)||void 0===r?void 0:r.toLocaleStr
1ing())||0]})]}),(0,t.jsx)("p",{className:"truncate text-sm text-foreground-muted",children:(0,m.eA)(e.description)})]}),(0,t.jsx)("span",{className:"flex-shrink-0 rounded-full bg-surface-overlay px-2 py-0.5 text-xs text-foreground-muted",children:e.category})]},e.id):(0,t.jsxs)("a",{href:o,...l,className:"flex cursor-pointer items-center gap-3 px-4 py-3 transition-colors hover:bg-surface-overlay",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-lg bg-surface-overlay",children:(0,t.jsx)(y,{className:"h-5 w-5 text-foreground-muted"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate font-medium text-foreground",children:e.name}),(0,t.jsx)("span",{className:"text-xs text-foreground-subtle",children:"External"})]}),(0,t.jsx)("p",{className:"truncate text-sm text-foreground-muted",children:(0,m.eA)(e.description)})]}),(0,t.jsx)("span",{className:"flex-shrink-0 rounded-full bg-surface-overlay px-2 py-0.5 text-xs text-foreground-muted",children:e.category})]},e.id)}),(0,t.jsxs)(a(),{href:"/search?q=".concat(encodeURIComponent(R)),onClick:()=>q(!1),className:"flex cursor-pointer items-center justify-center gap-2 border-t border-border px-4 py-3 text-sm text-primary-500 transition-colors hover:bg-surface-overlay",children:["View all results",(0,t.jsx)(j,{className:"h-4 w-4"})]})]}):(0,t.jsxs)("div",{className:"px-4 py-8 text-center text-foreground-muted",children:[(0,t.jsx)(u,{className:"mx-auto mb-2 h-8 w-8 text-foreground-subtle"}),(0,t.jsxs)("p",{children:['No results found for "',R,'"']})]})})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-center gap-3",children:[(0,t.jsxs)(a(),{href:"/search/",className:"btn btn-primary",children:[(0,t.jsx)(u,{className:"h-4 w-4"}),"Browse All"]}),(0,t.jsxs)(a(),{href:"/trends/",className:"btn btn-secondary",children:[(0,t.jsx)(h,{className:"h-4 w-4"}),"View Trends"]}),(0,t.jsxs)(a(),{href:"/compare/",className:"btn btn-secondary",children:[(0,t.jsx)(v,{className:"h-4 w-4"}),"Compare"]})]})]})]}),(0,t.jsx)("section",{className:"mb-12",children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border border-border bg-surface-elevated p-4",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-primary-500/10",children:(0,t.jsx)(v,{className:"h-5 w-5 text-primary-500"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-2xl font-bold text-foreground",children:L.totalResources.toLocaleString()}),(0,t.jsx)("div",{className:"text-xs text-foreground-muted",children:"Resources"})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border border-border bg-surface-elevated p-4",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-accent-500/10",children:(0,t.jsx)(g,{className:"h-5 w-5 text-accent-500"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-2xl font-bold text-foreground",children:L.totalCategories}),(0,t.jsx)("div",{className:"text-xs text-foreground-muted",children:"Categories"})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border border-border bg-surface-elevated p-4",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-success/10",children:(0,t.jsx)(b,{className:"h-5 w-5 text-success"})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"text-2xl font-bold text-foreground",children:[L.activeRatio,"%"]}),(0,t.jsx)("div",{className:"text-xs text-foreground-muted",children:"Active"})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border border-border bg-surface-elevated p-4",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-warning/10",children:(0,t.jsx)(N,{className:"h-5 w-5 text-warning"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-2xl font-bold text-foreground",children:"Daily"}),(0,t.jsx)("div",{className:"text-xs text-foreground-muted",children:"Sync"})]})]})]})}),(0,t.jsx)("div",{className:"mb-12",children:(0,t.jsx)(d.w6,{slot:"7788328869",className:"rounded-lg overflow-hidden"})}),(0,t.jsxs)("div",{className:"mb-12 grid items-stretch gap-6 lg:grid-cols-4",children:[(0,t.jsxs)("section",{className:"flex flex-col lg:col-span-3",children:[(0,t.jsxs)("div",{className:"mb-4 flex h-7 items-center justify-between",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:"Popular Categories"}),(0,t.jsxs)(a(),{href:"/search/",className:"flex items-center gap-1 text-sm text-primary-500 hover:underline",children:["View all ",(0,t.jsx)(j,{className:"h-4 w-4"})]})]}),(0,t.jsx)("div",{className:"grid flex-1 content-start gap-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:_.map((e,r)=>(0,t.jsxs)(a(),{href:"/category/".concat(e.id,"/"),className:"group flex cursor-pointer items-center gap-2.5 rounded-lg border p-2.5 transition-all duration-200 hover:shadow-soft ".concat(r<2?"border-primary-500/30 bg-primary-500/5 hover:border-primary-500/50":"border-border bg-surface-elevated hover:border-primary-500/50"),children:[(0,t.jsx)("div",{className:"flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-md ".concat(0===r?"bg-gradient-to-br from-yellow-400 to-yellow-600 text-white":1===r?"bg-gradient-to-br from-gray-300 to-gray-500 text-white":2===r?"bg-gradient-to-br from-amber-500 to-amber-700 text-white":"bg-primary-500/10 text-primary-500"),children:r<3?(0,t.jsx)("span",{className:"text-xs font-bold",children:r+1}):(0,t.jsx)(g,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h3",{className:"truncate text-sm font-medium text-foreground group-hover:text-primary-500",children:e.name}),(0,t.jsxs)("p",{className:"text-xs text-foreground-muted",children:[e.resourceCount," items"]})]})]},e.id))})]}),(0,t.jsxs)("section",{className:"flex flex-col lg:col-span-1",children:[(0,t.jsxs)("div",{className:"mb-4 flex h-7 items-center justify-between",children:[(0,t.jsxs)("h2",{className:"flex items-center gap-2 text-xl font-semibold text-foreground",children:[(0,t.jsx)(f,{className:"h-5 w-5 text-orange-500"}),"Rising Stars"]}),(0,t.jsxs)(a(),{href:"/trends/",className:"flex items-center gap-1 text-sm text-primary-500 hover:underline",children:["More ",(0,t.jsx)(j,{className:"h-4 w-4"})]})]}),(0,t.jsx)("div",{className:"flex flex-1 flex-col rounded-xl border border-border bg-surface-elevated",children:(0,t.jsx)("div",{className:"flex flex-1 flex-col divide-y divide-border",children:o.map((e,r)=>{var s,n;return(0,t.jsxs)(a(),{href:"/resource/".concat(e.id,"/"),className:"group flex flex-1 cursor-pointer items-center gap-2.5 p-3 transition-colors hover:bg-surface-overlay",children:[(0,t.jsx)("span",{className:"flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full text-xs font-bold ".concat(0===r?"bg-gradient-to-br from-yellow-400 to-yellow-600 text-white":1===r?"bg-gradient-to-br from-gray-300 to-gray-500 text-white":2===r?"bg-gradient-to-br from-amber-500 to-amber-700 text-white":"bg-orange-500/10 text-orange-600"),children:r+1}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h3",{className:"truncate text-sm font-medium text-foreground group-hover:text-primary-500",children:e.name}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs text-foreground-muted",children:[(0,t.jsxs)("span",{className:"flex items-center gap-0.5",children:[(0,t.jsx)(p,{className:"h-3 w-3 text-yellow-500"}),(null===(n=e.github)||void 0===n?void 0:null===(s=n.stars)||void 0===s?void 0:s.toLocaleStr
1ing())||0]}),(0,t.jsx)("span",{className:"truncate",children:e.category})]})]})]},e.id)})})})]})]}),(0,t.jsxs)("section",{className:"mb-12",children:[(0,t.jsxs)("div",{className:"mb-6 flex items-center justify-between",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:"Featured Resources"}),(0,t.jsxs)(a(),{href:"/search/?sortBy=stars",className:"flex items-center gap-1 text-sm text-primary-500 hover:underline",children:["View all ",(0,t.jsx)(j,{className:"h-4 w-4"})]})]}),(0,t.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:s.slice(0,4).map(e=>(0,t.jsx)(i.z,{resource:e,variant:"compact",isBookmarked:B(e.id),isSelected:S(e.id),onBookmark:G,onCompare:H},e.id))})]}),C&&C.length>0&&(0,t.jsx)(c.Y,{title:"Frequently Asked Questions",faqs:C,includeJsonLd:!1}),(0,t.jsx)("div",{className:"mb-12",children:(0,t.jsx)(d.w6,{slot:"7788328869",className:"rounded-lg overflow-hidden"})}),(0,t.jsxs)("section",{className:"overflow-hidden rounded-2xl bg-gradient-to-r from-primary-500 to-primary-600 p-8 text-center text-white sm:p-12",children:[(0,t.jsx)("h2",{className:"mb-4 text-2xl font-bold sm:text-3xl",children:"Ready to build something amazing?"}),(0,t.jsx)("p",{className:"mx-auto mb-8 max-w-xl text-primary-100",children:"Explore the full collection of Rust resources. Compare libraries side by side, track ecosystem trends, and find the perfect tools for your project."}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-center gap-4",children:[(0,t.jsxs)(a(),{href:"/search/",className:"inline-flex cursor-pointer items-center gap-2 rounded-lg bg-white px-6 py-3 font-medium text-primary-600 transition-colors hover:bg-primary-50",children:[(0,t.jsx)(u,{className:"h-5 w-5"}),"Start Exploring"]}),(0,t.jsxs)(a(),{href:"/compare/",className:"inline-flex cursor-pointer items-center gap-2 rounded-lg border-2 border-white/30 bg-white/10 px-6 py-3 font-medium text-white transition-colors hover:bg-white/20",children:[(0,t.jsx)(v,{className:"h-5 w-5"}),"Compare Resources"]})]})]})]})}},5497:(e,r,s)=>{"use strict";s.d(r,{Xr:()=>l,w6:()=>a});var t=s(5155),n=s(2115);function o(e){let{slot:r,format:s="auto",fullWidthResponsive:o=!0,className:a="",style:l="display"}=e,i=(0,n.useRef)(null),c=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{if(!c.current)try{(window.adsbygoogle=window.adsbygoogle||[]).push({}),c.current=!0}catch(e){console.error("AdSense error:",e)}},[]),(0,t.jsx)("ins",{ref:i,className:"adsbygoogle ".concat(a),style:{display:"block"},"data-ad-client":"ca-pub-7963911354665843","data-ad-slot":r,"data-ad-format":s,"data-full-width-responsive":o?"true":"false","data-ad-layout":"in-article"===l?"in-article":void 0})}function a(e){let{slot:r,className:s=""}=e;return(0,t.jsx)("div",{className:"w-full overflow-hidden ".concat(s),children:(0,t.jsx)(o,{slot:r,format:"auto",className:"min-h-[90px]"})})}function l(e){let{slot:r,className:s=""}=e;return(0,t.jsx)("div",{className:"".concat(s),children:(0,t.jsx)(o,{slot:r,format:"rectangle",className:"min-h-[250px] min-w-[300px]"})})}},2444:(e,r,s)=>{"use strict";s.d(r,{Y:()=>o});var t=s(5155),n=s(2115);function o(e){let{title:r="Frequently Asked Questions",faqs:s,includeJsonLd:o=!0}
1=e,[a,l]=(0,n.useState)(null),i={"@context":"https://schema.org","@type":"FAQPage",mainEntity:s.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))},c=e=>{l(a===e?null:e)};return(0,t.jsxs)("section",{className:"py-12","aria-labelledby":"faq-heading",children:[o&&(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(i)}}),(0,t.jsx)("h2",{id:"faq-heading",className:"mb-8 text-2xl font-bold text-foreground md:text-3xl",children:r}),(0,t.jsx)("div",{className:"space-y-4",children:s.map((e,r)=>(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-surface-elevated transition-all duration-200 hover:border-primary/30",children:[(0,t.jsxs)("button",{onClick:()=>c(r),className:"flex w-full items-center justify-between px-6 py-4 text-left transition-colors hover:bg-surface-hover","aria-expanded":a===r,"aria-controls":"faq-answer-".concat(r),children:[(0,t.jsx)("span",{className:"pr-4 font-medium text-foreground",children:e.question}),(0,t.jsx)("span",{className:"flex-shrink-0 text-primary transition-transform duration-200 ".concat(a===r?"rotate-180":""),children:(0,t.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),(0,t.jsx)("div",{id:"faq-answer-".concat(r),className:"overflow-hidden transition-all duration-300 ease-in-out ".concat(a===r?"max-h-96 opacity-100":"max-h-0 opacity-0"),role:"region","aria-labelledby":"faq-question-".concat(r),children:(0,t.jsx)("p",{className:"px-6 pb-4 text-foreground-muted leading-relaxed",children:e.answer})})]},r))})]})}}},e=>{var r=r=>e(e.s=r);e.O(0,[173,659,835,561,441,517,358],()=>r(1925)),_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.