1class WLSSmoothAnchorScroll{static defaults={capture:!0,topMode:"header",scrollAttribute:"data-scroll"};static{new WLSSmoothAnchorScroll().init()}constructor(options={}){const d=WLSSmoothAnchorScroll.defaults;this.capture=options.capture??d.capture;const mode=options.topMode??d.topMode;this.topMode=mode==="header"?"header":"top",this._boundOnClick=this._onClick.bind(this);const attr=options.scrollAttribute??d.scrollAttribute;this._linkSelector=`a[href^="#"][${attr}]`}init(){return document.addEventListener("click",this._boundOnClick,this.capture),this}destroy(){document.removeEventListener("click",this._boundOnClick,this.capture)}_getHeaderOffsetPx(){if(this.topMode!=="header")return 0;const header=document.querySelector(".section-header");if(!header)return 0;const h=header.getBoundingClientRect().height;return Number.isFinite(h)?h:0}_scrollToY(top){window.scrollTo({top:Math.max(0,top),behavior:"smooth"})}_onClick(e){const link=e.target.closest(this._linkSelector);if(!link||e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||link.target&&link.target!==""&&link.target!=="_self")return;const href=link.getAttribute("href");if(!href||!href.startsWith("#"))return;e.preventDefault();const offset=this._getHeaderOffsetPx();if(href==="#"){this._scrollToY(offset);return}let id;try{id=decodeURIComponent(href.slice(1))}catch{id=href.slice(1)}if(!id)return;let el;try{el=document.getElementById(id)}catch{return}if(!el)return;const top=el.getBoundingClientRect().top+window.scrollY-offset;this._scrollToY(top)}} 2//# sourceMappingURL=/cdn/shop/t/5/assets/wls-smooth-anchor-scroll.js.map?v=26291647987012574631776155739
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.