(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[402],{296:function(n){function t(n,t=100,e={}){let r,i,o,s,a;if("function"!=typeof n)throw TypeError(`Expected the first parameter to be a function, got \`${typeof n}\`.`);if(t<0)throw RangeError("`wait` must not be negative.");let{immediate:l}="boolean"==typeof e?{immediate:e}:e;function c(){let t=r,e=i;return r=void 0,i=void 0,a=n.apply(t,e)}function u(){let n=Date.now()-s;n<t&&n>=0?o=setTimeout(u,t-n):(o=void 0,l||(a=c()))}let d=function(...n){if(r&&this!==r)throw Error("Debounced method called with different contexts.");r=this,i=n,s=Date.now();let e=l&&!o;return o||(o=setTimeout(u,t)),e&&(a=c()),a};return d.clear=()=>{o&&(clearTimeout(o),o=void 0)},d.flush=()=>{o&&d.trigger()},d.trigger=()=>{a=c(),d.clear()},d}n.exports.debounce=t,n.exports=t},1198:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pt-BR/series/[series]/[seriesItem]",function(){return e(2091)}])},9562:function(n,t,e){"use strict";e.d(t,{d:function(){return c}});var r=e(5893),i=e(1664),o=e.n(i),s=e(1436),a=e(7814),l=e(6321);let c=()=>(0,r.jsxs)(o(),{href:"/",id:"menu-icon","data-testid":"home-link",className:l.m,children:[(0,r.jsx)(a.G,{icon:s.wzR,className:l.o}),"Home"]})},295:function(n,t,e){"use strict";e.d(t,{A:function(){return N}});var r=e(5893),i=e(2729),o=e(7294),s=e(2683),a=e(296),l=e.n(a);function c(){let n=(0,i._)(["\n  position: fixed;\n  bottom: 120px;\n  right: 130px;\n  width: 300px;\n  font-size: 12px;\n  line-height: 1.5em;\n  background-color: #40a578;\n  color: white;\n  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n  padding: 10px;\n  border-radius: 6px;\n  user-select: none;\n\n  transform: translateX(500px);\n  transition: transform 1.2s;\n  transition-timing-function: linear(\n    0,\n    0.035 2.1%,\n    0.281 6.7%,\n    0.723 12.9%,\n    0.938 16.7%,\n    0.977 51%,\n    0.974 53.8%,\n    0.975 57.1%,\n    0.997 69.8%,\n    1\n  );\n\n  &.animated {\n    transform: translateX(0) rotate(-5deg);\n    transition-timing-function: linear(\n      0,\n      0.009,\n      0.035 2.1%,\n      0.141,\n      0.281 6.7%,\n      0.723 12.9%,\n      0.938 16.7%,\n      1.017,\n      1.077,\n      1.121,\n      1.149 24.3%,\n      1.159,\n      1.163,\n      1.161,\n      1.154 29.9%,\n      1.129 32.8%,\n      1.051 39.6%,\n      1.017 43.1%,\n      0.991,\n      0.977 51%,\n      0.974 53.8%,\n      0.975 57.1%,\n      0.997 69.8%,\n      1.003 76.9%,\n      1.004 83.8%,\n      1\n    );\n  }\n\n  @media (max-width: 600px) {\n    display: none;\n  }\n"]);return c=function(){return n},n}function u(){let n=(0,i._)(["\n  display: flex;\n  align-items: center;\n"]);return u=function(){return n},n}function d(){let n=(0,i._)(["\n  padding-right: 8px;\n"]);return d=function(){return n},n}function h(){let n=(0,i._)(["\n  padding: 6px;\n  position: absolute;\n  top: 0;\n  right: 0;\n  cursor: pointer;\n"]);return h=function(){return n},n}let f=s.Z.div(c()),x=s.Z.div(u()),p=s.Z.div(d()),m=s.Z.a(h()),g=()=>{let[n,t]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let n=l()(()=>{let n=document.documentElement.scrollTop,e=document.body.scrollHeight;n>.85*e?t(!1):!window.localStorage.getItem("newsletterAlertShown")&&n>.65*e&&(t(!0),window.localStorage.setItem("newsletterAlertShown","true"))});return window.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n)}},[]);let e=()=>{t(!1)};return(0,r.jsx)(f,{id:"test",className:n?"animated":"",children:(0,r.jsxs)(x,{children:[(0,r.jsxs)(p,{children:["Hey! You may like this"," ",(0,r.jsx)("a",{target:"_blank",rel:"noreferrer",href:"https://teekay.substack.com",onClick:e,children:(0,r.jsx)("b",{children:"newsletter"})})," ","if you're enjoying this blog. ❤"]}),(0,r.jsx)(m,{role:"button",onClick:e,children:"✖"})]})})};var w=e(1501),j=e(9562),b=e(7253),v=e(5926),_=e(178),y=e(7754),k=e(9998),E=e(5166);let N=n=>{let{children:t,tags:e,title:i,date:o,showSocialLinks:s=!1,coverImage:a,alternativeArticle:l,minutes:c}=n;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.w,{}),(0,r.jsx)(k.Y,{children:(0,r.jsxs)("div",{className:"content",children:[(0,r.jsx)(j.d,{}),(0,r.jsxs)("article",{className:"post",itemScope:!0,itemType:"http://schema.org/BlogPosting",children:[(0,r.jsxs)("header",{children:[(0,r.jsx)(y.D,{text:i}),(0,r.jsx)(v.h,{date:o,tags:e,alternativeArticle:l,minutes:c})]}),(null==a?void 0:a.src)&&(0,r.jsx)(w.y,{src:a.src,width:a.width,height:a.height,alt:a.alt,authorHref:a.authorHref,authorName:a.authorName,blurDataURL:a.blurDataURL}),t,(0,r.jsx)(g,{}),s&&(0,r.jsx)(_.W,{})]}),(0,r.jsx)(b.$,{tags:e})]})})]})}},5166:function(n,t,e){"use strict";e.d(t,{w:function(){return h}});var r=e(2729),i=e(5893),o=e(1664),s=e.n(o),a=e(2683);function l(){let n=(0,r._)(["\n  padding: 24px 16px;\n"]);return l=function(){return n},n}function c(){let n=(0,r._)(["\n  font-weight: 700;\n  font-size: 16px;\n  -webkit-text-decoration: none;\n  text-decoration: none;\n  border: 1px solid;\n  padding: 8px 10px;\n"]);return c=function(){return n},n}let u=a.Z.header(l()),d=(0,a.Z)(s())(c()),h=()=>(0,i.jsx)(u,{children:(0,i.jsx)(d,{href:"/",children:"TK"})})},2091:function(n,t,e){"use strict";e.r(t),e.d(t,{__N_SSG:function(){return a}});var r=e(5893),i=e(295),o=e(1491),s=e(8032),a=!0;t.default=n=>{let{content:t,postMetadata:e,minutes:a}=n;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.F,{title:e.title,description:e.description,imageUrl:e.coverImage.src}),(0,r.jsx)(i.A,{tags:e.tags,title:e.title,date:e.date,alternativeArticle:e.alternativeArticle,minutes:a,showSocialLinks:!0,coverImage:e.coverImage,children:(0,r.jsx)(s.M,{content:t})})]})}}},function(n){n.O(0,[523,112,573,348,342,603,336,774,888,179],function(){return n(n.s=1198)}),_N_E=n.O()}]);