const htmlElement=document.getElementsByTagName("html")[0],windowWidth=window.innerWidth,userAgent=navigator.userAgent;let shouldCalculateScrollbar=1024<windowWidth&&windowWidth>htmlElement.offsetWidth;if(userAgent.includes("Chrome")){const a=userAgent.match(/Chrome\/(\d+)/);if(a){const b=parseInt(a[1],10);145<=b&&(shouldCalculateScrollbar=!1)}}if(shouldCalculateScrollbar){const c=window.innerWidth-htmlElement.offsetWidth,d=document.createElement("style");d.textContent=`:root {--wd-scroll-w: ${c}px;}`,document.head.appendChild(d)}