1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[219],{6785:function(e,t,r){"use strict";var l,n=r(7294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),l||(l=n.createElement("path",{fill:"currentColor",d:"m18.496 10.709-8.636 8.88c-.24.246-.638-.039-.482-.345l3.074-6.066a.3.3 0 0 0-.268-.436H5.718a.3.3 0 0 1-.214-.51l8.01-8.115c.232-.235.618.023.489.328L11.706 9.86a.3.3 0 0 0 .28.417l6.291-.078a.3.3 0 0 1 .22.509"})))}},5332:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[slug]",function(){return r(2190)}])},2190:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return Y},default:function(){return ee}});var l,n,a,s,i,c=r(5893),o=r(2962),d=r(7294),h=r(9604),u=r(3841),m=r(9619),x=r(2907),p=r(1179);let f=(0,d.forwardRef)((e,t)=>{let{}=e;return(0,c.jsxs)("div",{className:"sticky left-0 top-0 z-10 h-[3px] w-0 dar
1k:h-[2px]",ref:t,children:[(0,c.jsx)("div",{className:"h-full w-full bg-river-blue"}),(0,c.jsx)("div",{className:"absolute right-0 top-0 h-[3px] w-[3px] translate-x-1/2 rounded-full bg-river-blue shadow-blue dark:h-[2px] dark:w-[2px] dark:shadow-blue-strong"})]})});f.displayName="ProgressBar";var v=r(1664),g=r.n(v),j=r(4184),w=r.n(j),b=r(8375),N=r(8657),C=r(2549),y=r(3183),k=r.n(y),E=r(2006),_=e=>{let{children:t,author:r}=e;return(0,c.jsxs)("blockquote",{className:w()("relative bg-river-blue-light pl-12 pr-10 pt-16 font-serif text-xl italic leading-normal dark:bg-river-blue-light-10 md:pl-44 md:pr-24 md:pt-16 md:text-2xl",r?"pb-10 md:pb-12":"pb-14 md:pb-16"),children:[(0,c.jsx)("span",{className:"quote quote-light dark:quote-dark",children:"â"}),(0,c.jsx)("span",{className:"quote quote-light dark:quote-dark",children:"â"}),(0,c.jsxs)("div",{className:"relative z-10",children:[t,r&&(0,c.jsxs)("cite",{className:"mt-3 block text-right font-sans text-base font-light uppercase not-italic dark:text-water md:text-lg",children:["â ",r]})]})]})},M=e=>{let{title:t,date:r,children:l}=e;return(0,c.jsxs)("div",{className:"my-10 border border-lighter-sea-blue px-5 pb-8 pt-6 dark:border-white-70 md:my-14 md:px-12 md:pb-11 md:pt-8",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between font-sans text-sm uppercase not-italic text-dark-blue dark:text-white",children:[t||"Nota",r&&(0,c.jsx)("time",{className:"text-xs uppercase text-light-blue",children:(0,E.L0)(r)})]}),(0,c.jsx)("div",{className:"mt-2 font-sans text-base not-italic text-gray dark:text-white-70",children:l})]})},Z=e=>{let t=Array.isArray(e.children)?e.children:[e.children],r=t.flatMap(e=>"string"==typeof e?e:(null==e?void 0:e.type)!==void 0&&"string"==typeof e.props.children?e.props.children:[]).join(""),l=(0,E.GD)(r),n=d.createElement("a",{href:"#".concat(l),className:"anchor"},e.children);return d.createElement(e.node.tagName,{id:l},n)},L=r(8152),H=r(4283),O=r(2041),P=r(1318),V=r(6257),T=r(7852),z=r(1246);L.Z.registerLanguage("javascript",O.Z),L.Z.registerLanguage("bash",P.Z),L.Z.registerLanguage("scss",V.Z),L.Z.registerLanguage("json",T.Z),L.Z.registerLanguage("ruby",z.Z);var q=e=>{let{children:t,className:r,node:l,...n}=e,a=/language-(\w+)/.exec(r||"");return a?(0,c.jsx)(L.Z,{...n,PreTag:"div",language:a[1],className:"code-block",showLineNumbers:!0,useInlineStyles:!0,style:H.I2,children:String(t).replace(/\n$/,"")}):(0,c.jsx)("code",{...n,className:"code-line dark:code-line-dark",children:t})},S=e=>{let{children:t}=e,r=(0,d.useRef)(),[l,n]=(0,d.useState)(!1),[a,s]=(0,d.useState)(!1);return(0,c.jsxs)("pre",{ref:r,onMouseEnter:()=>{n(!0)},onMouseLeave:()=>{n(!1),s(!1)},className:"relative",children:[l&&(0,c.jsx)("button",{"aria-label":"Copiar c\xf3digo",type:"button",className:"absolute right-2 top-2 h-8 w-8 animate-fade-in bg-white-20 p-1 transition-colors hover:bg-white-30",onClick:()=>{if(s(!0),null!==r.current&&null!==r.current.textContent){let e=r.current.cloneNode(!0);for(let t of e.querySelectorAll(".linenumber"))t.remove();navigator.clipboard.writeText(e.textContent),setTimeout(()=>{s(!1)},2e3)}},children:(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",className:a?"text-green-500":"text-white-70",children:a?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("path",{d:"M19.3417 6.00028C19.1756 6.00523 19.018 6.07465 18.9021 6.19384L9.12424 15.9717L5.10069 11.9482C5.04178 11.8868 4.97121 11.8378 4.89312 11.8041C4.81504 11.7703 4.731 11.7525 4.64594 11.7516C4.56088 11.7508 4.4765 11.7669 4.39774 11.799C4.31899 11.8312 4.24744 11.8787 4.18729 11.9389C4.12714 11.999 4.07959 12.0706 4.04744 12.1494C4.01528 12.228
11 3.99917 12.3125 4.00003 12.3976C4.0009 12.4826 4.01873 12.5666 4.05248 12.6447C4.08623 12.7228 4.13522 12.7934 4.19658 12.8523L8.67219 17.3279C8.7921 17.4478 8.9547 17.5151 9.12424 17.5151C9.29379 17.5151 9.45639 17.4478 9.5763 17.3279L19.8063 7.09795C19.8987 7.00814 19.9618 6.89252 19.9873 6.76623C20.0129 6.63994 19.9997 6.50888 19.9494 6.39022C19.8992 6.27156 19.8143 6.17084 19.7059 6.10126C19.5974 6.03168 19.4705 5.99648 19.3417 6.00028Z",fill:"currentColor"})}):(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("path",{d:"M10 8V7C10 6.05719 10 5.58579 10.2929 5.29289C10.5858 5 11.0572 5 12 5H17C17.9428 5 18.4142 5 18.7071 5.29289C19 5.58579 19 6.05719 19 7V12C19 12.9428 19 13.4142 18.7071 13.7071C18.4142 14 17.9428 14 17 14H16M7 19H12C12.9428 19 13.4142 19 13.7071 18.7071C14 18.4142 14 17.9428 14 17V12C14 11.0572 14 10.5858 13.7071 10.2929C13.4142 10 12.9428 10 12 10H7C6.05719 10 5.58579 10 5.29289 10.2929C5 10.5858 5 11.0572 5 12V17C5 17.9428 5 18.4142 5.29289 18.7071C5.58579 19 6.05719 19 7 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})})})}),t]})};function B(){return(B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e}).apply(this,arguments)}var G=function(e){return d.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},e),l||(l=d.createElement("path",{fill:"currentColor",d:"M18 5v2h5.563L11.28 19.281l1.438 1.438L25 8.437V14h2V5ZM5 9v18h18V14l-2 2v9H7V11h9l2-2Z"})))};let R=(0,d.forwardRef)((e,t)=>{let{children:r,category:l,toc:n}=e,a=[C.Z];return n&&a.push([k(),{headings:["h2"],customizeTOCItem:(e,t)=>{let r=Array.isArray(t.children)?t.children:[t.children],l=r.flatMap(e=>"element"===e.type?e.children.flatMap(e=>e.value):e.value).join("");return e.children[0].properties.href="#"+(0,E.GD)(l),e}}]),(0,c.jsx)("article",{className:w()("prose-lg mt-7 font-sans dark:prose-dark lg:prose-xl md:mt-9",{italic:"poesia"===l}),ref:t,children:(0,c.jsx)(N.U,{components:{p:e=>{let{node:t}=e;if("c-img"===t.children[0].tagName){let{src:e,title:r,alt:l,width:n,height:a}=t.children[0].properties;return(0,c.jsxs)("figure",{children:[(0,c.jsx)(b.bz,{src:e,className:w()("shadow-image",{"w-full":!n}),width:n||800,height:a||800,alt:l||""}),r&&(0,c.jsx)("figcaption",{children:r})]})}if("note"===t.children[0].tagName){let{title:t,date:r,children:l}=e.children.props;return(0,c.jsx)(M,{title:t,date:r,children:l})}return(0,c.jsx)("p",{children:e.children})},a:e=>{let{href:t,children:r}=e;return(0,E.xf)(t)?(0,c.jsxs)(g(),{href:t,rel:"noopener noreferrer",target:"_blank",children:[r,(0,c.jsx)(G,{className:"-mt-[2px] ml-[2px] inline-block h-5 w-5 opacity-80"})]}):(0,c.jsx)(g(),{href:t,children:r})},iframe:e=>{let{allowFullScreen:t,allowTransparency:r,node:l,...n}=e;return(0,c.jsx)("iframe",{allowFullScreen:"true"===t,allowtransparency:r,...n})},pre:S,code:q,blockquote:_,h2:Z,h3:Z,h4:Z,h5:Z,h6:Z},rehypePlugins:a,children:r})})});function A(e){let{imageId:t,base64Url:r,alt:l,showGradient:n}=e;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(b.bz,{className:"absolute left-0 top-0 h-full w-full object-cover",src:t,fill:!0,placeholder:"blur",blurDataURL:r,alt:l||""}),(0,c.jsx)("div",{className:"hero-mask-solid"}),n&&(0,c.jsx)("div",{className:"hero-mask-gradient"})]})}R.displayName="MarkdownContent";var F=r(1877);let I=F[(0,E.G3)()].components.Author;function D(){return(0,c.jsx)("section",{className:"mt-16 md:mt-20",children:(0,c.jsx)("div",{className:"container",children:(0,c.jsxs)("div",{className:"flex items-center",children:[(0,c.jsx)("div",{className:"flex-shrink-0",children:(0,c.jsx)(b.bz,{className:"h-16 w-16 rounded-full shadow md:h-20 md:w-20",src:"profile_czaxxj",width:"160",height:"160",alt:"Foto de Thiago sorrindo"})}),(0,c.jsxs)("div",{className:"px-5 md:text-left",children:[(0,c.jsx)("h2",{className:"font-serif text-xl font-bold text-dark-blue dark:text-white md:mt-1 md:text-2xl",children:"Thiago Rossener"}),(0,c.jsx)("p",{className:"text-xs text-gray text-opacity-80 dark:text-white dark:text-opacity-50 md:text-base",children:I.bio})]})]})})})}function U(){return(U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e}).apply(this,arguments)}var X=function(e){return d.createElement("svg",U({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),n||(n=d.createElement("g",{fill:"currentColor",clipPath:"url(#clock-icon_svg__a)"},d.createElement("path",{d:"M10 .625c5.17 0 9.375 4.206 9.375 9.375 0 5.17-4.206 9.375-9.375 9.375C4.83 19.375.625 15.169.625 10 .625 4.83 4.831.625 10 .625ZM10 0C4.477 0 0 4.477 0 10s4.477 10 10 10 10-4.477 10-10S15.523 0 10 0"}),d.createElement("path",{d:"m15.127 15.49-5.44-5.439V2.38h.626v7.414l5.256 5.256-.442.442"}))),a||(a=d.createElement("defs",null,d.createElement("clipPath",{id:"clock-icon_svg__a"},d.createElement("path",{fill:"currentColor",d:"M0 0h20v20H0z"})))))};function W(){return(W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e}).apply(this,arguments)}var $=function(e){return d.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),s||(s=d.createElement("g",{fill:"currentColor",clipPath:"url(#calendar-icon_svg__a)"},d.createElement("path",{d:"M19.164 1.68h-4.277V.43h-.817v1.25H5.926V.43h-.817v1.25H.836c-.242 0-.406.164-.406.414v17.058c0 .25.164.418.406.418H19.16c.246 0 .406-.168.406-.418V2.094c.004-.25-.16-.414-.402-.414m-.41 17.058H1.246V2.512h3.867v1.25h.817v-1.25h8.144v1.25h.817v-1.25h3.867v16.226h-.004"}),d.createElement("path",{d:"M3.281 6.672c-.246 0-.406.168-.406.418v9.57c0 .25.164.418.406.418H16.72c.246 0 .406-.168.406-.418V7.09c0-.25-.164-.418-.406-.418H3.28m13.032 9.57H3.688V7.504h12.625v8.738"}),d.createElement("path",{d:"M9.188 9.086H8.37v.832h.816v-.832M11.633 9.086h-.817v.832h.817v-.832M14.074 9.086h-.816v.832h.816v-.832M6.742 11.457h-.816v.832h.816v-.832M9.188 11.457H8.37v.832h.816v-.832M11.633 11.457h-.817v.832h.817v-.832M14.074 11.457h-.816v.832h.816v-.832M6.742 13.871h-.816v.832h.816v-.832M9.188 13.871H8.37v.832h.816v-.832M11.633 13.871h-.817v.832h.817v-.832M14.074 13.871h-.816v.832h.816v-.832"}))),i||(i=d.createElement("defs",null,d.createElement("clipPath",{id:"calendar-icon_svg__a"},d.createElement("path",{fill:"currentColor",d:"M0 0h20v20H0z"})))))},J=r(6785),K=r(6662);let Q=K[(0,E.G3)()];var Y=!0;function ee(e){let{slug:t,title:r,subtitle:l,description:n,isoDate:a,formattedDate:s,category:i,image_id:v,base64Url:g,markdown:j,readingTime:w,tags:b,toc:N}=e,{barRef:C,postRef:y}=function(){let e=(0,d.useRef)(),t=(0,d.useRef)();return(0,d.useEffect)(()=>{let r=t.current.scrollHeight,l=()=>{if(e.current){let t=document.documentElement.scrollTop,l=(t/r*100).toFixed(2);t<=r?e.current.style.width="".concat(l,"%"):l>99&&(e.current.style.width="100%")}};return document.addEventListener("scroll",l),()=>{document.removeEventListener("scroll",l)}},[]),{barRef:e,postRef:t}}();return(0,c.jsxs)(u.Z,{children:[(0,c.jsx)(o.PB,{title:"".concat(r," ").concat(Q.divider," ").concat(Q.name),description:n,canonical:"".concat(Q.url,"/").concat(t,"/"),openGraph:{type:"article",article:{publishedTime:a,modifiedTime:a,tags:b},url:"".concat(Q.url,"/").concat(t,"/"),images:[{url:(0,h.Cm)(v),width:1200,height:630,alt:""}],site_name:Q.name}}),(0,c.jsx)(o.dX,{type:"BlogPosting",url:"".concat(Q.url,"/").concat(t,"/"),title:r,images:[(0,h.Lu)(v)],datePublished:a,dateModified:a,authorName:Q.author,description:n}),(0,c.jsxs)("div",{className:"relative",children:[(0,c.jsx)(A,{imageId:v,base64Url:g,showGradient:!0}),(0,c.jsx)("div",{className:"relative z-10",children:(0,c.jsx)(p.Z,{children:(0,c.jsxs)("div",{className:"flex min-h-screen flex-col justify-between",children:[(0,c.jsx)(m.Z,{inverted:!0}),(0,c.jsxs)("div",{className:"pb-10 text-white",children:[(0,c.jsxs)("div",{className:"flex items-end justify-between",children:[(0,c.jsx)(et,{date:s,readingTime:w,category:i}),"curtos"===i&&(0,c.jsx)("div",{className:"inline-flex items-center rounded-full bg-white p-1 uppercase text-dark-blue",children:(0,c.jsx)(J.Z,{className:"h-4 w-4 md:h-5 md:w-5"})})]}),(0,c.jsx)(er,{children:r}),(0,c.jsx)(el,{children:l})]})]})})})]}),(0,c.jsx)(f,{ref:C}
1),(0,c.jsx)(p.Z,{children:(0,c.jsx)(R,{ref:y,category:i,toc:N,children:j})}),(0,c.jsx)(D,{}),(0,c.jsx)(p.Z,{className:"mt-12 md:mt-16",children:(0,c.jsx)(x.Z,{})})]})}let et=e=>{let{date:t,readingTime:r}=e;return(0,c.jsxs)("div",{className:"inline-flex space-x-10",children:[(0,c.jsxs)("div",{className:"inline-flex items-center text-xs uppercase md:text-sm",children:[(0,c.jsx)($,{className:"mr-3 h-4 w-4 md:h-5 md:w-5"}),t]}),(0,c.jsxs)("div",{className:"inline-flex items-center text-xs uppercase md:text-sm",children:[(0,c.jsx)(X,{className:"mr-3 h-4 w-4 md:h-5 md:w-5"}),r," min"]})]})},er=e=>{let{children:t}=e;return(0,c.jsx)("h1",{className:"md: mt-3 font-serif text-4xl font-bold md:mt-4 md:text-5xl",children:t})},el=e=>{let{children:t}=e;return(0,c.jsx)("p",{className:"mt-2 font-sans text-xl opacity-80 md:mt-4 md:text-2xl",children:t})}}},function(e){e.O(0,[517,918,838,774,888,179],function(){return e(e.s=5332)}),_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.