1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[771],{80771:function(e,t,n){"use strict";n.r(t);var o=n(85893),l=n(67294),i=n(93967),c=n.n(i),r=n(26795),a=n.n(r);let u=e=>{let t=document.getElementsByTagName("h2");for(let o=0;o<t.length;o++){var n=t[o].getBoundingClientRect().top+window.pageYOffset-90;e.includes(t[o].innerText)&&window.scrollTo({top:n,behavior:"smooth"})}};t.default=e=>{let{items:t,colors:n}=e,[i,r]=(0,l.useState)(0),[d,s]=(0,l.useState)(0),[v,_]=(0,l.useState)(56),p=e=>{r(e)},h=(0,l.useRef)(null),f=(0,l.useCallback)(e=>{var t,n,o,l,i;let c=null==h?void 0:null===(t=h.current)||void 0===t?void 0:t.getBoundingClientRect().top;_(null==h?void 0:null===(o=h.current)||void 0===o?void 0:null===(n=o.children)||void 0===n?void 0:n[e].clientHeight),s((null==h?void 0:null===(i=h.current)||void 0===i?void 0:null===(l=i.children)||void 0===l?void 0:l[e].getBoundingClientRect().top)-c)},[h]);return(0,l.useEffect)(()=>{var e,t;_(null==h?void 0:null===(t=h.current)||void 0===t?void 0:null===(e=t.children)||void 0===e?void 0:e[1].clientHeight)},[t]),(0,o.jsx)("div",{className:a().tocWrapper,"data-cy":"tableOfContents",children:(0,o.jsxs)("div",{className:a().tocContainer,ref:h,children:[(0,o.jsx)("div",{className:a().marker,style:{top:d+"px",height:v+"px"}}),null==t?void 0:t.map((e,t)=>{let l=e.replace(/(<([^>]+)>)/gi,"");return l=l.replace(/ +/g," "),(0,o.jsx)("a",{className:c()("".concat(a().tocItem," ").concat(i===t&&a().active)),onClick:e=>{e.preventDefault(),p(t),f(t+1),u(l)},style:{color:(null==n?void 0:n.p2MainText)||"#171C2B"},children:l},t)})]})})}},26795:function(e){e.exports={container:"toc_container__iHpfg",newContainer:"toc_newContainer__TvB28",tocWrapper:"toc_tocWrapper__nhxiG",title:"toc_title__aP9b2",tocContainer:"toc_tocContainer__AQhs_",marker:"toc_marker__PrmbS",tocItem:"toc_tocItem__qf6b1",active:"toc_active__sYAaH"}}}]);
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.