1const carouselShowcaseItems=[...document.querySelectorAll(".carousel__showcase-item")],carouselCards=[...document.querySelectorAll(".carousel__card")],progressBar=document.querySelector(".carousel__progress-bar > progress");let carouselInterval,currentSlideIndex=0;const CAROUSEL_ROTATE_TIME_IN_MS=15e3,CAROUSEL_ROTATE_TIMEOUT_DELAY_IN_MS=20;function carouselNext(){const e=parseInt(carouselCards[currentSlideIndex].style.order);carouselCards[currentSlideIndex].style.order=(e+1).toString();const r=(currentSlideIndex+1)%carouselShowcaseItems.length;carouselCards[currentSlideIndex].classList.remove("carousel__card--hidden"),carouselCards[r].classList.add("carousel__card--hidden"),carouselShowcaseItems[currentSlideIndex].classList.remove("carousel__showcase-item--active"),carouselShowcaseItems[r].classList.add("carousel__showcase-item--active"),currentSlideIndex=r,resetCarouselInterval()}function carouselPrevious(){const e=currentSlideIndex-1<0?carouselShowcaseItems.length-1:currentSlideIndex-1;carouselCards[currentSlideIndex].classList.remove("carousel__card--hidden"),carouselCards[e].classList.add("carousel__card--hidden"),carouselShowcaseItems[currentSlideIndex].classList.remove("carousel__showcase-item--active"),carouselShowcaseItems[e].classList.add("carousel__showcase-item--active"),currentSlideIndex=e;const r=parseInt(carouselCards[currentSlideIndex].style.order);carouselCards[currentSlideIndex].style.order=(r-1).toString(),resetCarouselInterval()}function resetCarouselInterval(){resetProgressBar(),clearInterval(carouselInterval),carouselInterval=setInterval(carouselNext,CAROUSEL_ROTATE_TIME_IN_MS)}function resetProgressBar(){progressBar&&(progressBar.classList.remove("progress-increase"),progressBar.value=0,progressBar.style.setProperty("--carousel-progress-bar-value","0%"),setTimeout((()=>{progressBar.classList.add("progress-increase"),progressBar.value=100,progressBar.style.setProperty("--carousel-progress-bar-value","100%")}),CAROUSEL_ROTATE_TIMEOUT_DELAY_IN_MS))}progressBar?.style.setProperty("--carousel-progress-bar-transition-duration",`${(CAROUSEL_ROTATE_TIME_IN_MS-CAROUSEL_ROTATE_TIMEOUT_DELAY_IN_MS).toString()}ms`),carouselShowcaseItems?.length>0&&carouselCards?.length>0&&(document.querySelector("#carousel-next-button")?.addEventListener("click",carouselNext),document.querySelector("#carousel-previous-button")?.addEventListener("click",carouselPrevious),resetCarouselInterval());
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.