1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3302],{3302:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var l=n(37876),a=n(79547),o=n(11814),r=n(14232);let i=e=>{let{toc:t}=e;(0,r.useEffect)(()=>(window.addEventListener("scroll",u,{passive:!0}),u(),()=>{window.removeEventListener("scroll",u)}),[]);let n=(0,r.useRef)(null),i=[],[s,c]=(0,r.useState)(null),u=(0,r.useCallback)((0,a.A)(()=>{var e;let t=document.getElementsByClassName("notion-h"),l=null,a=s;for(let e=0;e<t.length;++e){let n=t[e];if(!n||!(n instanceof Element))continue;a||(a=n.getAttribute("data-id"));let o=n.getBoundingClientRect(),r=Math.max(150,(l?o.top-l.bottom:0)/4);if(o.top-r<0){a=n.getAttribute("data-id"),l=o;continue}break}c(a);let o=i.indexOf(a)||0;null==n||null==(e=n.current)||e.scrollTo({top:28*o,behavior:"smooth"})},200));return!t||t.length<1?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)("div",{className:"px-3",children:(0,l.jsx)("div",{className:"overflow-y-auto max-h-96 overscroll-none scroll-hidden",ref:n,children:(0,l.jsx)("nav",{className:"h-full text-[var(--tl-muted)]",children:t.map(e=>{let t=(0,o.Qg)(e.id);return i.push(t),(0,l.jsx)("a",{href:"#".concat(t),className:"notion-table-of-contents-item duration-300 transform font-light\n notion-table-of-contents-item-indent-level-".concat(e.indentLevel," catalog-item "),children:(0,l.jsx)("span",{style:{display:"inline-block",marginLeft:16*e.indentLevel},className:"truncate ".concat(s===t?"font-semibold text-[var(--tl-accent)] underline decoration-[var(--tl-accent)]/40":"hover:text-[var(--tl-text)]"),children:e.text})},t)})})})})}},79547:(e,t,n)=>{n.d(t,{A:()=>l});function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=null,l=0,a=null;return function(){for(var o=arguments.length,r=Array(o),i=0;i<o;i++)r[i]=arguments[i];let s=Date.now(),c=t-(s-l);if(a=r,c<=0){n&&(clearTimeout(n),n=null),l=s,e(...a),a=null;return}n||(n=setTimeout(()=>{n=null,l=Date.now(),a&&(e(...a),a=null)},c))}}}}]);
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.