1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11413],{11413:function(e,t,l){l.r(t);var n=l(85893),o=l(93348),r=l(93096),a=l.n(r),d=l(22362),i=l(67294);t.default=e=>{var t,l;let{post:r}=e,{locale:s}=(0,o.O)(),c=(0,i.useRef)(null),[u,v]=(0,i.useState)(null);return((0,i.useEffect)(()=>{let e=a()(()=>{var e,t;let l=document.getElementsByClassName("notion-h"),n=null,o=u;for(let e=0;e<l.length;++e){let t=l[e];if(!t||!(t instanceof Element))continue;o||(o=t.getAttribute("data-id"));let r=t.getBoundingClientRect(),a=Math.max(150,(n?r.top-n.bottom:0)/4);if(r.top-a<0){o=t.getAttribute("data-id"),n=r;continue}break}v(o);let a=null==r?void 0:null===(e=r.toc)||void 0===e?void 0:e.findIndex(e=>(0,d.Gw)(e.id)===o);null==c||null===(t=c.current)||void 0===t||t.scrollTo({top:28*a,behavior:"smooth"})},200);return window.addEventListener("scroll",e),e(),()=>{window.removeEventListener("scroll",e)}},[r]),r&&(null==r?void 0:r.toc)&&!((null==r?void 0:null===(t=r.toc)||void 0===t?void 0:t.length)<1))?(0,n.jsxs)("div",{className:"px-3 ",children:[(0,n.jsxs)("div",{className:"dark:text-white mb-2",children:[(0,n.jsx)("i",{className:"mr-1 fas fa-stream"}),s.COMMON.TABLE_OF_CONTENTS]}),(0,n.jsx)("div",{className:"overflow-y-auto overscroll-none max-h-36 lg:max-h-96 scroll-hidden",ref:c,children:(0,n.jsx)("nav",{className:"h-full text-black",children:null==r?void 0:null===(l=r.toc)||void 0===l?void 0:l.map(e=>{let t=(0,d.Gw)(e.id);return(0,n.jsx)("a",{href:"#".concat(t),className:"".concat(u===t&&"dark:border-white border-red-700 text-red-700 font-bold"," hover:font-semibold border-l pl-4 block hover:text-red-600 border-lduration-300 transform dark:text-red-400 dark:border-red-400\n notion-table-of-contents-item-indent-level-").concat(e.indentLevel," catalog-item "),children:(0,n.jsx)("span",{style:{display:"inline-block",marginLeft:16*e.indentLevel},className:"truncate ".concat(u===t?" font-bold text-red-600 dark:text-white underline":""),children:e.text})},t)})})})]}):(0,n.jsx)(n.Fragment,{})}}}]);
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.