"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[71802],{71802:function(t,n,e){var r=e(55319),i=e(67294),o=e(23493),a=e.n(o),u=e(29793),l=e(51919),c=e(91225),s=e(81912),f=e(58695),d=e(73303),h=e(45220),p=e.n(h),g=e(97248),m=e(54401),v=e(35944);function w(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw o}}}}(t.map(function(t){return{top:t.getBoundingClientRect().top,id:t.id}}).sort(function(t,n){return n.top-t.top}));try{for(e.s();!(n=e.n()).done;){var r=n.value;if(r.top<=80)return r.id}}catch(t){e.e(t)}finally{e.f()}return null}(t);n!==C&&N(n)},100);return window.addEventListener("scroll",n),function(){window.removeEventListener("scroll",n)}},[e]);var _=(0,u.ZP)().isDesktop,A=(0,i.useState)(null),Z=A[0],I=A[1],x=(0,i.useCallback)(function(t){window&&null!==t&&I(t.getBoundingClientRect().width)},[]),E=(0,i.useState)(null),T=E[0],L=E[1],P=(0,i.useCallback)(function(t){window&&null!==t&&L(t.getBoundingClientRect())},[]),q=!(p()(Z)||p()(T))&&T.width>Z;return(0,v.BX)(s._V,{ref:x,children:[(0,v.tZ)("span",{css:(0,f.n5)("caps-small"),children:n}),(0,v.tZ)(s.f6,{children:Object.keys(e).map(function(t){return(0,v.tZ)("li",{children:(0,v.BX)(s.H1,{href:"#"+t,active:t===C,onClick:function(n){d.Z.scrollTo(t,70),n.preventDefault()},children:[(0,v.tZ)(s.bC,{active:t===C}),e[t]]})},t)})}),_&&r&&o&&l&&c&&h&&(0,v.tZ)(s.ND,{children:(0,v.BX)(g.C.Provider,{value:!0,children:[(0,v.tZ)(y,{ref:P,height:(null==T?void 0:T.height)||0,href:l,text:o,shouldWrap:q,size:"regular",isButton:!0}),(0,v.tZ)(s.Fe,{children:S["resources.sidebar_ctas_divider"]}),(0,v.tZ)(y,{ref:P,height:(null==T?void 0:T.height)||0,href:h,text:c,shouldWrap:q,variant:"linkWithArrow",size:"regular",css:b})]})})]})};var y=(0,r.Z)(l.default,{target:"e93gm420"})("white-space:",function(t){return t.shouldWrap?"normal":"nowrap"},";",(0,f.n5)("p2")," ",(0,c.mq)(c.Uo.DESKTOP_1440),"{",function(t){var n=t.shouldWrap,e=t.height;return n&&"\n display: flex;\n justify-content: center;\n align-items: center;\n white-space: normal;\n padding: 0 24px;\n height: ".concat(e,"px;\n ")},";}")},81912:function(t,n,e){e.d(n,{Fe:function(){return g},H1:function(){return d},ND:function(){return p},_V:function(){return s},bC:function(){return h},f6:function(){return f}});var r=e(55319),i=e(27306),o=e(58695),a=e(74883),u=e(91225),l=e(19751),c=e(38841),s=(0,r.Z)("nav",{target:"e5kwoqa5"})("grid-column:1/4;grid-row:span 3;position:sticky;top:",a.N.SPACING_128,";margin-bottom:",a.N.SPACING_64,";align-self:flex-start;display:none;margin-top:",a.N.SPACING_4,";",(0,u.mq)(u.Uo.TABLET_768),"{display:block;}",(0,u.mq)(u.Uo.DESKTOP_1440),"{grid-column:1/3;}"),f=(0,r.Z)("ol",{target:"e5kwoqa4"})({name:"1hcx8jb",styles:"padding:0"}),d=(0,r.Z)("a",{target:"e5kwoqa3"})((0,o.n5)("p3")," display:inline-block;margin-bottom:",a.N.SPACING_24,";color:",function(t){return t.active?c.fV.LINKS.LINK_HOVER:i.D.NEUTRAL_8},";text-decoration:",function(t){return t.active?"none":"underline"},";:hover{text-decoration:underline;color:",c.fV.LINKS.LINK_HOVER,";border-bottom:none;}"),h=(0,r.Z)(l.v2,{target:"e5kwoqa2"})("position:absolute;left:-",a.N.SPACING_16,";top:",a.N.SPACING_4,";width:12px;height:12px;transition:opacity 200ms linear,transform 300ms cubic-bezier(0.65, 0.05, 0.36, 1);opacity:",function(t){return t.active?"1":"0"},";transform:translateX(",function(t){return t.active?"":"-10px"},");path{fill:",c.fV.LINKS.LINK_HOVER,";}"),p=(0,r.Z)("div",{target:"e5kwoqa1"})("display:grid;grid-auto-flow:row;align-items:center;justify-content:start;gap:",a.N.SPACING_4,";",(0,u.mq)(u.Uo.TABLET_960),"{a:first-of-type{margin-left:auto;margin-right:auto;}}"),g=(0,r.Z)("span",{target:"e5kwoqa0"})("margin-left:auto;margin-right:auto;",(0,o.n5)("p3"),";")},73303:function(t,n){n.Z={timer:null,startTime:null,raf:null,percentage:0,duration:1e3,targetY:null,callback:null,easing:{outQuint:function(t,n,e,r,i){return r*((n=n/i-1)*n*n*n*n+1)+e}},stop:function(){window.cancelAnimationFrame(this.raf)},scrollTo:function(t,n,e){var r=document.getElementById(t).getBoundingClientRect();this.callback=e,this.targetY=r.top-(n||0),this.startTime=performance.now(),this.percentage=0,this.initialPosition=window.scrollY,this.raf&&this.stop(),this.raf=window.requestAnimationFrame(this.step.bind(this))},step:function(t){var n=t-this.startTime,e=n/this.duration;if(n>this.duration&&this.stop(),e>1)this.stop(),this.callback&&this.callback();else{var r=this.easing.outQuint(0,n,this.initialPosition,this.targetY,this.duration);window.scrollTo(0,r),window.requestAnimationFrame(this.step.bind(this))}}}}}]);