PageSourceSearch

https://miracode.ai/_next/static/chunks/app/layout-c976952007c3f5a6.js

js miracode.ai collected 2026-10-05 12:16:43 UTC 8,717 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{526:(e,t,r)=>{"use strict";r.d(t,{cn:()=>i});var l=r(2821),n=r(5889);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.QP)((0,l.$)(t))}},932:(e,t,r)=>{"use strict";r.d(t,{_:()=>l});let l={name:"Mira",tagline:"Code review, at the speed of merge.",description:"Open-source AI code review for pull requests. Catch bugs, security issues, and style drift before they reach main. Self-host free, or use the enterprise license.",url:"https://miracode.ai",repoUrl:"https://github.com/miracodeai/mira",docsUrl:"https://docs.miracode.ai",discordUrl:"https://discord.gg/uEU6qvYhgm",twitterUrl:"https://github.com/miracodeai/mira",nav:[{label:"Features",href:"/#features"},{label:"How it works",href:"/#how-it-works"},{label:"Pricing",href:"/pricing"},{label:"Docs",href:"https://docs.miracode.ai"}]}},1290:()=>{},1846:(e,t,r)=>{"use strict";r.d(t,{DitherDivider:()=>s});var l=r(5155),n=r(2115);let i=[0,32,8,40,2,34,10,42,48,16,56,24,50,18,58,26,12,44,4,36,14,46,6,38,60,28,52,20,62,30,54,22,3,35,11,43,1,33,9,41,51,19,59,27,49,17,57,25,15,47,7,39,13,45,5,37,63,31,55,23,61,29,53,21].map(e=>(e+.5)/64);function s(){let e=(0,n.useRef)(null),t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let r=e.current,l=t.current;if(!r||!l)return;let n=l.getContext("2d");if(!n)return;let s=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=(e,t)=>{let r=Math.imul(e,0x27d4eb2d)^Math.imul(t,0x165667b1);return r=Math.imul((r=Math.imul(r^r>>>15,0x85ebca6b))^r>>>13,0xc2b2ae35),((r^=r>>>16)>>>0)/0x100000000},o=(e,t)=>{let r=Math.floor(e),l=Math.floor(t),n=e-r,i=t-l,s=n*n*n*(n*(6*n-15)+10),o=i*i*i*(i*(6*i-15)+10),c=a(r,l),d=a(r+1,l),h=a(r,l+1);return c+(d-c)*s+(h-c)*o+(c-d-h+a(r+1,l+1))*s*o},c=(e,t)=>{let r=0,l=.5,n=1;for(let i=0;i<3;i++)r+=l*o(e*n,t*n),n*=2.03,l*=.5;return r/.875},d=0,h=0,u=1,f=new Float32Array(0),m=0,p=!1,x=0,b=-999,v=-999,g=-999,w=-999,y=0,k=0;function j(){u=Math.min(window.devicePixelRatio||1,2);let e=r.clientWidth,t=r.clientHeight;l.width=Math.max(1,Math.round(e*u)),l.height=Math.max(1,Math.round(t*u)),f=new Float32Array((d=Math.ceil(e/5))*(h=Math.ceil(t/5)))}function N(e){k+=(y-k)*.07,b>-900&&(g=g<-900?b:g+(b-g)*.2,w=w<-900?v:w+(v-w)*.2);let t=h>1?h-1:1;for(let r=0;r<h;r++){let l=1.07*Math.pow(r/t,1.5),n=.055*r-.1*e;for(let t=0;t<d;t++){let i=.055*t+.04*e,s=o(.6*i+19.2,.6*n+4.1)-.5,a=o(.6*i-7.8,.6*n+25.6)-.5,h=l+(c(i+1.7*s,n+1.7*a)-.5)*.72;if(k>.002){let e=t-g,l=r-w;h+=k*Math.exp(-(e*e+l*l)/121)}f[r*d+t]=h}}let r=5*u;n.clearRect(0,0,l.width,l.height),n.fillStyle="#e89f95";for(let e=0;e<h;e++)for(let t=0;t<d;t++){let l=i[(7&e)<<3|7&t],s=f[e*d+t];s>l&&s<=l+.15&&n.fillRect(t*r,e*r,r,r)}n.fillStyle="#14141c";for(let e=0;e<h;e++)for(let t=0;t<d;t++){let l=i[(7&e)<<3|7&t];f[e*d+t]>l+.15&&n.fillRect(t*r,e*r,r,r)}}function _(e){p&&(x||(x=e),N((e-x)/1e3),m=requestAnimationFrame(_))}function M(){p||s||(p=!0,m=requestAnimationFrame(_))}function E(){p=!1,cancelAnimationFrame(m)}j(),s?N(14):M();let F=new IntersectionObserver(e=>{let[t]=e;return t.isIntersecting?M():E()},{threshold:0});F.observe(r);let P=new ResizeObserver(()=>{j(),s&&N(14)});P.observe(r);let S=e=>{let t=l.getBoundingClientRect();b=(e.clientX-t.left)/5,v=(e.clientY-t.top)/5,y=.6},z=()=>{y=0};return s||(r.addEventListener("pointermove",S),r.addEventListener("pointerleave",z)),()=>{E(),F.disconnect(),P.disconnect(),r.removeEventListener("pointermove",S),r.removeEventListener("pointerleave",z)}},[]),(0,l.jsx)("div",{ref:e,"aria-hidden":!0,className:"h-[150px] w-full select-none overflow-hidden sm:h-[190px]",children:(0,l.jsx)("canvas",{ref:t,className:"block h-full w-full"})})}},2488:e=>{e.exports={style:{fontFamily:"'Space Grotesk', 'Space Grotesk Fallback'",fontStyle:"normal"},className:"__className_c22fe1",variable:"__variable_c22fe1"}},3312:e=>{e.exports={style:{fontFamily:"'Instrument Serif', 'Instrument Serif Fallback'",fontWeight:400},className:"__className_1f5468",variable:"__variable_1f5468"}},4439:(e,t,r)=>{"use strict";r.d(t,{Nav:()=>b});var l=r(5155),n=r(2619),i=r.n(n),s=r(2115),a=r(5229);let o=(0,r(1847).A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);var c=r(5239),d=r(526);function h(e){let{size:t=26,withWordmark:r=!0,className:n}=e;return(0,l.jsxs)(i(),{href:"/",className:(0,d.cn)("inline-flex items-center gap-2 group",n),"aria-label":"Mira",children:[(0,l.jsx)("span",{className:"inline-flex items-center justify-center rounded-none bg-brand",style:{width:t+6,height:t+6,padding:3},children:(0,l.jsx)(c.default,{src:"/logo.png",alt:"",width:t,height:t,priority:!0,className:"object-contain"})}),r&&(0,l.jsx)("span",{className:"font-serif italic text-[22px] leading-none tracking-tight text-brand",children:"Mira"})]})}var u=r(932);function f(e){let{size:t="sm"}=e,r="lg"===t;return(0,l.jsx)("a",{href:u._.discordUrl,target:"_blank",rel:"noopener noreferrer","aria-label":"Discord",className:(0,d.cn)("group inline-flex items-center justify-center border text-ink-soft transition-colors",r?"size-11 border-ink bg-paper-raised hover:bg-paper-sunken":"size-7 border-rule-strong hover:border-ink"),children:(0,l.jsx)("img",{src:"/logo-discord.svg",alt:"","aria-hidden":!0,
1className:(0,d.cn)("opacity-70 group-hover:opacity-100 transition-opacity",r?"size-[18px]":"size-[14px]")})})}let m=[{label:"Features",href:"/#features"},{label:"How it works",href:"/#how-it-works"}],p=[{label:"Docs",href:u._.docsUrl,external:!0}];function x(e){let{link:t,onClick:r}=e,n="text-[11px] font-medium uppercase tracking-[0.16em] text-ink-soft hover:text-ink transition-colors py-2 whitespace-nowrap";return t.external||t.href.startsWith("http")?(0,l.jsx)("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:n,onClick:r,children:t.label}):(0,l.jsx)(i(),{href:t.href,className:n,onClick:r,children:t.label})}function b(e){let{githubStar:t}=e,[r,n]=(0,s.useState)(!1),[i,c]=(0,s.useState)(!1);return(0,s.useEffect)(()=>(document.body.style.overflow=r?"hidden":"",()=>{document.body.style.overflow=""}),[r]),(0,s.useEffect)(()=>{let e=()=>c(window.scrollY>8);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,l.jsxs)("header",{className:(0,d.cn)("sticky top-0 z-50 w-full paper-grain border-b transition-[border-color,box-shadow] duration-300",i?"border-rule-strong shadow-paper":"border-rule"),children:[(0,l.jsxs)("div",{className:"mx-auto flex h-16 max-w-7xl items-center justify-between px-6",children:[(0,l.jsx)("nav",{className:"hidden md:flex items-center gap-7 flex-1 basis-0",children:m.map(e=>(0,l.jsx)(x,{link:e},e.label))}),(0,l.jsx)("div",{className:"flex-1 md:flex-none flex justify-start md:justify-center",children:(0,l.jsx)(h,{size:32})}),(0,l.jsxs)("nav",{className:"hidden md:flex items-center gap-7 flex-1 basis-0 justify-end",children:[p.map(e=>(0,l.jsx)(x,{link:e},e.label)),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(f,{}),t]})]}),(0,l.jsx)("button",{type:"button",className:"md:hidden inline-flex items-center justify-center size-9 rounded-none text-ink hover:bg-ink/5",onClick:()=>n(e=>!e),"aria-label":"Toggle menu",children:r?(0,l.jsx)(a.A,{className:"size-5"}):(0,l.jsx)(o,{className:"size-5"})})]}),r&&(0,l.jsx)("div",{className:"md:hidden absolute inset-x-0 top-full border-t border-rule paper-grain shadow-paper",children:(0,l.jsx)("div",{className:"mx-auto flex flex-col gap-1 px-6 py-4",children:[...m,...p].map(e=>(0,l.jsx)(x,{link:e,onClick:()=>n(!1)},e.label))})})]})}},5063:(e,t,r)=>{"use strict";r.d(t,{LiveStarCount:()=>s});var l=r(5155),n=r(2115);let i=null;function s(e){let{initial:t,className:r}=e,[s,a]=(0,n.useState)(t);return(0,n.useEffect)(()=>{let e=!0;return(!i&&(i=fetch("/api/stars").then(e=>e.ok?e.json():Promise.reject(e.status)).then(e=>{var t;return null!=(t=e.stars)?t:null}).catch(()=>null)),i).then(t=>{e&&t&&a(t)}),()=>{e=!1}},[]),(0,l.jsx)("span",{className:r,children:null!=s?s:"-"})}},8635:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,1290,23)),Promise.resolve().then(r.bind(r,1846)),Promise.resolve().then(r.bind(r,5063)),Promise.resolve().then(r.bind(r,4439)),Promise.resolve().then(r.t.bind(r,2619,23)),Promise.resolve().then(r.t.bind(r,1356,23)),Promise.resolve().then(r.t.bind(r,2488,23)),Promise.resolve().then(r.t.bind(r,3312,23)),Promise.resolve().then(r.t.bind(r,9113,23))},9113:e=>{e.exports={style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"},className:"__className_c29908",variable:"__variable_c29908"}}},e=>{e.O(0,[147,619,207,441,255,358],()=>e(e.s=8635)),_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.