PageSourceSearch

https://www.murilopereira.com/_next/static/chunks/67-31dfe24b1d5a7ca8.js

js murilopereira.com collected 2026-10-03 20:42:16 UTC 13,652 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[67],{5067:function(e,r,t){Promise.resolve().then(t.bind(t,9867)),Promise.resolve().then(t.bind(t,8021)),Promise.resolve().then(t.bind(t,3946)),Promise.resolve().then(t.bind(t,5328)),Promise.resolve().then(t.t.bind(t,4340,23)),Promise.resolve().then(t.t.bind(t,6863,23)),Promise.resolve().then(t.t.bind(t,231,23)),Promise.resolve().then(t.bind(t,8765)),Promise.resolve().then(t.t.bind(t,8624,23)),Promise.resolve().then(t.bind(t,60)),Promise.resolve().then(t.t.bind(t,8916,23)),Promise.resolve().then(t.bind(t,6611)),Promise.resolve().then(t.t.bind(t,2786,23)),Promise.resolve().then(t.t.bind(t,823,23)),Promise.resolve().then(t.t.bind(t,1042,23)),Promise.resolve().then(t.t.bind(t,4877,23)),Promise.resolve().then(t.t.bind(t,4476,23)),Promise.resolve().then(t.t.bind(t,9030,23)),Promise.resolve().then(t.t.bind(t,2820,23)),Promise.resolve().then(t.t.bind(t,1819,23)),Promise.resolve().then(t.t.bind(t,4046,23)),Promise.resolve().then(t.bind(t,8298)),Promise.resolve().then(t.t.bind(t,2983,23)),Promise.resolve().then(t.t.bind(t,713,23)),Promise.resolve().then(t.t.bind(t,5393,23)),Promise.resolve().then(t.t.bind(t,2249,23)),Promise.resolve().then(t.t.bind(t,4507,23)),Promise.resolve().then(t.t.bind(t,7406,23)),Promise.resolve().then(t.t.bind(t,4717,23)),Promise.resolve().then(t.t.bind(t,4389,23))},9867:function(e,r,t){"use strict";t.d(r,{default:function(){return a}});var n=t(7437),l=t(6164);function s(e){let{className:r}=e;return(0,n.jsxs)("svg",{className:(0,l.m6)("h-10 w-10 fill-slate-700",r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 88",children:[(0,n.jsx)("path",{d:"M 42,0 64,22 53,24 42,22 40,11 Z",fill:"#188038"}),(0,n.jsx)("path",{d:"M 42,22 V 0 H 6 C 2.685,0 0,2.685 0,6 v 76 c 0,3.315 2.685,6 6,6 h 52 c 3.315,0 6,-2.685 6,-6 V 22 Z",fill:"#34a853"}),(0,n.jsx)("path",{d:"M 12,34 V 63 H 52 V 34 Z M 29.5,58 H 17 v -7 h 12.5 z m 0,-12 H 17 V 39 H 29.5 Z M 47,58 H 34.5 V 51 H 47 Z M 47,46 H 34.5 V 39 H 47 Z",fill:"#fff"})]})}var o=t(2265);function i(e){return new Promise(r=>setTimeout(r,e))}function a(e){let{className:r,transitions:t,title:a,columnWidths:c,activeCellCoordinates:u,numberOfRows:d,numberOfColumns:h}=e,[f,m]=(0,o.useState)(t[0]||[[]]),p=f[u[0]][u[1]],x=2===p.length?p[0]:null,v=2===p.length?p[1]:p;(0,o.useEffect)(()=>{let e=0;return(async()=>{for(;;)m(t[e]),0===e&&await i(2e3),1===e&&await i(2e3),2===e&&await i(8e3),e=(e+1)%t.length})(),()=>{m(t[0])}},[t]);let b=Array.from({length:d||f.length}),g=Array.from({length:h||f[0].length});return(0,n.jsxs)("div",{className:(0,l.m6)("flex flex-col space-y-2",r),children:[null==a?null:(0,n.jsxs)("div",{className:"flex items-start space-x-2",children:[(0,n.jsx)(s,{className:""}),(0,n.jsx)("p",{className:"font-semibold text-lg m-0",children:a})]}),(0,n.jsxs)("div",{className:(0,l.m6)("mx-auto flex flex-col bg-white tracking-tighter text-black  transition-all"),children:[(0,n.jsxs)("div",{className:"flex w-fit",children:[(0,n.jsxs)("div",{className:"h-7 w-24 border-r border-gray-300 px-2 py-[2px]",children:[String.fromCharCode(65+u[1]),u[0]+1]}),(0,n.jsxs)("div",{className:"flex h-7 gap-4 px-2 py-[2px]",children:[(0,n.jsx)("span",{className:"font-bold text-gray-400 [font-family:cursive]",children:"fx"}),(0,n.jsxs)("span",{className:"flex",children:[x?(0,n.jsx)("span",{className:"",children:"="}):null,(0,n.jsx)("span",{className:"line-clamp-1 w-[630px] break-all",children:x||v})]})]})]}),(0,n.jsxs)("div",{className:"flex w-fit",children:[(0,n.jsxs)("div",{className:"flex flex-col text-center text-sm",children:[(0,n.jsx)("div",{className:"h-7 w-14 border-b-[6px] border-r-[6px] border-t border-gray-400 bg-gray-200 px-2 py-[2px]"}),b.map((e,r)=>(0,n.jsx)("div",{className:(0,l.m6)("h-7 w-14 border border-gray-300 px-2 py-[2px]",r===u[0]&&"bg-sky-100 font-bold"),children:r+1},r))]}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("div",{className:"flex text-center text-sm",children:g.map((e,r)=>(0,n.jsx)("div",{className:(0,l.m6)("h-7 w-48 border border-gray-300 px-2 py-[2px]",r===u[1]&&"bg-sky-100 font-bold"),style:{width:null==c?void 0:c[r]},children:String.fromCharCode(65+r)},r))}),(0,n.jsx)("div",{className:"grid text-sm",children:b.map((e,r)=>(0,n.jsx)("div",{className:"flex",children:g.map((e,t)=>{var s;let o=null===(s=f[r])||void 0===s?void 0:s[t];return(0,n.jsx)("div",{className:(0,l.m6)("h-7 w-48 whitespace-nowrap border border-gray-300 px-2 py-[2px]",r===u[0]&&t===u[1]&&"border-2 border-sky-500"),style:{width:null==c?void 0:c[t]},children:o&&2===o.length?o[1]:o},t)})},r))})]})]})]})]})}},8021:function(e,r,t){"use strict";t.d(r,{default:function(){return s}});var n=t(7437),l=t(6164);function s(e){let{className:r}=e;return(0,n.jsxs)("form",{action:"https://buttondown.email/api/emails/embed-subscribe/mpereira",method:"post",target:"popupwindow",onSubmit:()=>{window.open("https://buttondown.email/mpereira","popupwindow")},className:(0,l.m6)("flex flex-col space-y-2 items-center",r),children:[(0,n.jsx)("label",{className:"",htmlFor:"newsletter-email-input",children:"Receive my writing (and only that) in your inbox!"}),(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)("input",{type:"email",className:"rounded-l border-r-transparent w-full",name:"email",id:"newsletter-email-input",placeholder:"[email protected]"}),(0,n.jsx)("input",{type:"hidden",value:"1",name:"embed"}),(0,n.jsx)("input",{type:"submit",className:"rounded-r border border-green-600 bg-emerald-500 px-4 py-3 font-bold text-white transition-all hover:cursor-pointer hover:bg-green-600",value:"Subscribe"})]})]})}},3946:function(e,r,t){"use strict";t.d(r,{default:function(){return E}});var n,l=t(7437),s=t(2265),o=t(6164),i=t(5481),a=t.n(i),c=t(6889),u=t(579),d=t.n(u);function h(e){return e.toLowerCase().trim().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-")}function f(e){let r=e.children,t=[];for(let e of r)"text"===e.type?t.push(e.value):"inlineCode"===e.type?t.push(e.value):"children"in e&&t.push(f(e));return t.join(" ")}let m={ch:8,ex:7.15625,em:16,rem:16,in:96,cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,px:1};
1var p=t(7229),x=t.n(p),v=t(810),b=t.n(v),g=t(2777),w=t.n(g),y={darkMode:["class"],content:["./app/**/*.{ts,tsx}","./content/**/*.mdx","./public/**/*.svg"],theme:{container:{center:!0,screens:{"3xl":"1800px","4xl":"2000px","5xl":"2200px","6xl":"2400px","7xl":"2600px","8xl":"2800px"}},extend:{screens:{"3xl":"1800px","4xl":"2000px","5xl":"2200px","6xl":"2400px","7xl":"2600px","8xl":"2800px"},typography:e=>({DEFAULT:{css:{".prose code":null,pre:null,a:{textDecoration:"none",borderBottom:"1px solid rgba(0, 71, 171, .2)",color:"#0047ab","&:hover":{borderBottom:"1px solid #0047ab"}}}},quoteless:{css:{"blockquote p:first-of-type::before":{content:"none"},"blockquote p:first-of-type::after":{content:"none"}}}}),colors:{border:"hsl(var(--border))",input:"hsl(var(--input))",ring:"hsl(var(--ring))",background:"hsl(var(--background))",foreground:"hsl(var(--foreground))",primary:{DEFAULT:"hsl(var(--primary))",foreground:"hsl(var(--primary-foreground))"},secondary:{DEFAULT:"hsl(var(--secondary))",foreground:"hsl(var(--secondary-foreground))"},destructive:{DEFAULT:"hsl(var(--destructive))",foreground:"hsl(var(--destructive-foreground))"},muted:{DEFAULT:"hsl(var(--muted))",foreground:"hsl(var(--muted-foreground))"},accent:{DEFAULT:"hsl(var(--accent))",foreground:"hsl(var(--accent-foreground))"},popover:{DEFAULT:"hsl(var(--popover))",foreground:"hsl(var(--popover-foreground))"},card:{DEFAULT:"hsl(var(--card))",foreground:"hsl(var(--card-foreground))"}},borderRadius:{lg:"var(--radius)",md:"calc(var(--radius) - 2px)",sm:"calc(var(--radius) - 4px)"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"}}},future:{hoverOnlyWhenSupported:!0},plugins:[x(),b(),w()]};let j=Object.keys(n=a()(y).theme.screens).reduce((e,r)=>(e[r]=function e(r){if(m[r])return m[r];let t=function(e){let r=e.match(/(\d+\.?\d*)\s*(\w+)?/);return r?[parseFloat(r[1]),r[2]||""]:[NaN,""]}(r);if(!isNaN(t[0])){if(!t[1])return t[0];{let r=e(t[1]);return"number"==typeof r?t[0]*r:null}}return null}(n[r]),e),{});function N(e){let r=h(f(e)),t=document.querySelector("section > :is(h1, h2, h3, h4, h5, h6)#".concat(CSS.escape(r)));if(!t)return;let n=t.parentElement;if(n&&"SECTION"===n.tagName)return n}function P(e,r,t,n,l,s,o,i,a,c,u,d){var h,f,m;if(void 0===r.current||null===t.current||null===e.current)return;let p=window.innerHeight,x=r.current,v=x,b=0;t.current.forEach((e,r)=>{let t=e.getBoundingClientRect();if(t.bottom>.1*p&&t.top<.8*p){if(null===a.current||null===c.current)return;let e=a.current.get(r),t=c.current.get(r);if(void 0===e||void 0===t)return;let u=i.get(r);if(!u)return;let d=Array.from(i.entries()).reduce((e,r)=>{let[t,l]=r;return n.has(t)?Math.max(e,l):e},0);if(l(new Set(n.add(r))),u!==d)return;v=Math.min(e,v),b=Math.max(t,b),o(s.add(r))}else n.has(r)&&(n.delete(r),l(new Set(n))),s.has(r)&&(s.delete(r),o(new Set(s)))}),s.size>0&&v<b?(v!==u.current||b!==d.current)&&(e.current.setAttribute("stroke-dashoffset","1"),null===(h=e.current)||void 0===h||h.setAttribute("stroke-dasharray","1, ".concat(v,", ").concat(b-v,", ").concat(x)),null===(f=e.current)||void 0===f||f.setAttribute("opacity","1")):null===(m=e.current)||void 0===m||m.setAttribute("opacity","0"),u.current=v,d.current=b}function E(e){var r,t;let{articleHtml:n,className:i,titleClassName:a,tocMarkerPathStrokeWidth:u=3,showTitle:m=!0,maxHeadingDepth:p=Number.MAX_SAFE_INTEGER,breakpointToSideAlign:x}=e,v=function(e,r){let t=[];return!function e(n){"heading"===n.type&&n.depth<=r&&t.push(n),"children"in n&&n.children.forEach(e)}(e),t}(n,p),b=v.reduce((e,r)=>e.set(h(f(r)),r.depth),new Map),{breakpoint:g}=(0,c.ZP)(j),w=function(e){let r=(0,s.useRef)();return(0,s.useEffect)(()=>{r.current=e}),r.current}(g),[y,E]=(0,s.useState)(!1),[k,L]=(0,s.useState)(new Set),[A,S]=(0,s.useState)(new Set),M=(0,s.useRef)(null),C=(0,s.useRef)(),T=(0,s.useRef)(),R=(0,s.useRef)(),F=(0,s.useRef)(new Map),H=(0,s.useRef)(new Map),D=(0,s.useRef)(new Map),U=(0,s.useRef)(new Map);(0,s.useLayoutEffect)(()=>{for(let e of v){let r=N(e);if(!r)continue;let t=h(f(e));F.current.set(t,(0,s.createRef)()),r.setAttribute("id",t),H.current.set(t,r)}return E(!0),()=>{for(let e of v){let r=N(e);if(!r)continue;let t=h(f(e));F.current.delete(t),r.removeAttribute("id"),H.current.delete(t)}E(!1)}},[]);let Z=(0,s.useCallback)(()=>{!function(e,r,t,n,l,s){var o;let i;let a=[],c=0;null===(o=t.current)||void 0===o||o.forEach((t,s)=>{var o,u,d,h,f,m;if(!t.current)return;let p=t.current.offsetLeft+e/2+1,x=t.current.offsetHeight,v=t.current.offsetTop+e/2;0===c?(a.push("M",p,v,"L",p,v+x),null===(u=l.current)||void 0===u||u.set(s,0)):(i!==p&&a.push("L",i,v),a.push("L",p,v),null===(d=r.current)||void 0===d||d.setAttribute("d",a.join(" ")),null===(f=l.current)||void 0===f||f.set(s,(null===(h=r.current)||void 0===h?void 0:h.getTotalLength())||0),a.push("L",p,v+x)),i=p,null===(o=r.current)||void 0===o||o.setAttribute("d",a.join(" ")),r.current&&(null===(m=n.current)||void 0===m||m.set(s,r.current.getTotalLength())),c++}),r.current&&(s.current=r.current.getTotalLength())}(u,M,F,U,D,C),P(M,C,H,k,L,A,S,b,D,U,T,R)},[b]),V=(0,s.useCallback)(()=>P(M,C,H,k,L,A,S,b,D,U,T,R),[b]);function _(){window.removeEventListener("resize",Z),window.removeEventListener("scroll",V)}r=()=>y?null===g&&g===w?(_(),()=>{}):j[x]<=j[g]?(window.addEventListener("resize",Z),window.addEventListener("scroll",V),Z(),V(),()=>{_()}):()=>{}:()=>{},t=[y,g],(0,s.useEffect)(()=>{requestAnimationFrame(()=>{setTimeout(()=>{r()},300)})},t);let[q,z]=Array.from(b.entries()).reduce((e,r)=>{let[t,n]=e,[l,s]=r;return[null!==t?Math.min(t,s):s,null!==n?Math.max(n,s):s]},[null,null]);return(0,l.jsxs)("div",{className:(0,o.m6)(i,"transition-all xl:opacity-0 xl:fixed xl:top-36 xl:w-64 2xl:w-96 xl:left-[77%] 2xl:left-[73%] 3xl:left-[70%] 4xl:left-[68%] 5xl:left-[66%] 6xl:left-[65%] 7xl:left-[64%] 8xl:left-[63%]",j[x]<=j[g]&&"not-prose xl:opacity-100"),children:[m?(0,l.jsx)("h2",{className:(0,o.m6)("text-gray-600 uppercase",d().className,a),children:"Table of Contents"}):null,(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("svg",{className:"absolute -z-10 hidden xl:block transition-all",width:"256",height:"600",transform:"translate(-".concat(u,", 0)"),xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{className:"transition-all",ref:M,fill:"transparent",opacity:"0",stroke:"#444",strokeWidth:u,strokeLinecap:"round",strokeLinejoin:"round"})}),(0,l.jsx)("ul",{className:(0,o.m6)("xl:text-[0.9rem]"),children:v.map(e=>{let r=f(e),t=h(r),n=q?e.depth-q:0;return(0,l.jsx)("li",{ref:F.current.get(t),className:(0,o.m6)("transition-all py-2",A.has(t)&&"font-semibold translate-x-2"),style:{marginLeft:"".concat(n,"em")},children:(0,l.jsx)("a",{href:"#".concat(t),children:r})},t)})})]})]})}},5328:function(e,r,t){"use strict";t.d(r,{default:function(){return o}});var n=t(7437),l=t(2265),s=t(3158);function o(e){let{className:r,texts:t,intervalDelay:o}=e,[i,a]=(0,l.useState)(0),[c,u]=(0,l.useState)(!1),[d,h]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let e;return c||d||(e=setInterval(()=>{a(e=>(e+1)%t.length)},o)),()=>clearInterval(e)},[c,d,o,t.length]),(0,n.jsx)("span",{className:r,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onClick:()=>h(!d),children:(0,n.jsx)(s.Z,{springConfig:s.u.gentle,inline:!0,children:t[i]})})}},4389:function(){}}]);

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.