function focusVisiblePolyfill(){const navKeys=["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter","Space","Escape","Home","End","PageUp","PageDown"];let currentFocusedElement=null,mouseClick=null;window.addEventListener("keydown",evt=>{navKeys.includes(evt.code)&&(mouseClick=!1)}),window.addEventListener("mousedown",()=>{mouseClick=!0}),window.addEventListener("focus",()=>{currentFocusedElement&¤tFocusedElement.classList.remove("is-focused"),!mouseClick&&(currentFocusedElement=document.activeElement,currentFocusedElement.classList.add("is-focused"))},!0)}try{document.querySelector(":focus-visible")}catch{focusVisiblePolyfill()}(()=>{const{mediaQueries}=theme;if(!mediaQueries)return;const mqKeys=Object.keys(mediaQueries),mqLists={};theme.mediaMatches={};const handleMqChange=()=>{const newMatches=mqKeys.reduce((acc,media)=>(acc[media]=!!(mqLists[media]&&mqLists[media].matches),acc),{});Object.keys(newMatches).forEach(key=>{theme.mediaMatches[key]=newMatches[key]}),window.dispatchEvent(new CustomEvent("on:breakpoint-change"))};mqKeys.forEach(mq=>{mqLists[mq]=window.matchMedia(mediaQueries[mq]),theme.mediaMatches[mq]=mqLists[mq].matches;try{mqLists[mq].addEventListener("change",handleMqChange)}catch{mqLists[mq].addListener(handleMqChange)}})})();function debounce(fn,wait=300){let t;return(...args)=>{clearTimeout(t),t=setTimeout(()=>fn.apply(this,args),wait)}}function setViewportHeight(){document.documentElement.style.setProperty("--viewport-height",`${window.innerHeight}px`)}function setHeaderHeight(){const header=document.getElementById("shopify-section-header");if(!header)return;let height=header.offsetHeight;const announcement=document.getElementById("shopify-section-announcement");announcement&&(height+=announcement.offsetHeight),document.documentElement.style.setProperty("--header-height",`${height}px`)}function setScrollbarWidth(){document.documentElement.style.setProperty("--scrollbar-width",`${window.innerWidth-document.documentElement.clientWidth}px`)}function setDimensionVariables(){setViewportHeight(),setHeaderHeight(),setScrollbarWidth()}document.addEventListener("DOMContentLoaded",setDimensionVariables),window.addEventListener("resize",debounce(setDimensionVariables,400)),setTimeout(setViewportHeight,3e3);function setImageSources(img){const setImageAttr=el=>{el.dataset.src&&!el.src&&(el.src=el.dataset.src),el.dataset.srcset&&!el.srcset&&(el.srcset=el.dataset.srcset)};img.parentNode.tagName==="PICTURE"?Array.from(img.parentNode.children).forEach(el=>{setImageAttr(el)}):setImageAttr(img)}function initLazyImages(){if(!("loading"in HTMLImageElement.prototype)&&"IntersectionObserver"in window){const io=new IntersectionObserver((entries,observer)=>{entries.forEach(entry=>{if(entry.isIntersecting){const img=entry.target;setImageSources(img),observer.unobserve(img)}})},{rootMargin:"0px 0px 500px 0px"});document.querySelectorAll('[loading="lazy"]').forEach(img=>{io.observe(img)})}else document.querySelectorAll('[loading="lazy"]').forEach(img=>{setImageSources(img)})}function initLazyScript(element,callback,threshold=500){"IntersectionObserver"in window?new IntersectionObserver((entries,observer)=>{entries.forEach(entry=>{entry.isIntersecting&&typeof callback=="function"&&(callback(),observer.unobserve(entry.target))})},{rootMargin:`0px 0px ${threshold}px 0px`}).observe(element):callback()}function pauseAllMedia(el=document){el.querySelectorAll(".js-youtube, .js-vimeo, video").forEach(video=>{const component=video.closest("video-component");component&&component.dataset.background==="true"||(video.matches(".js-youtube")?video.contentWindow.postMessage('{ "event": "command", "func": "pauseVideo", "args": "" }',"*"):video.matches(".js-vimeo")?video.contentWindow.postMessage('{ "method": "pause" }',"*"):video.pause())}),el.querySelectorAll("product-model").forEach(model=>{model.modelViewerUI&&model.modelViewerUI.pause()})}class DeferredMedia extends HTMLElement{constructor(){super();const loadBtn=this.querySelector(".js-load-media");loadBtn?loadBtn.addEventListener("click",this.loadContent.bind(this)):this.addObserver()}addObserver(){if(!("IntersectionObserver"in window))return;const observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{entry.isIntersecting&&(this.loadContent(!1,!1,"observer"),observer.unobserve(this))})},{rootMargin:"0px 0px 1000px 0px"});observer.observe(this)}loadContent(focus=!0,pause=!0,loadTrigger="click"){if(pause&&pauseAllMedia(),this.getAttribute("loaded")!==null)return;this.loadTrigger=loadTrigger;const content=this.querySelector("template").content.firstElementChild.cloneNode(!0);this.appendChild(content),this.setAttribute("loaded","");const deferredEl=this.querySelector("video, model-viewer, iframe");deferredEl&&focus&&deferredEl.focus()}}customElements.define("deferred-media",DeferredMedia);class DetailsDisclosure extends HTMLElement{constructor(){super(),this.disclosure=this.querySelector("details"),this.toggle=this.querySelector("summary"),this.panel=this.toggle.nextElementSibling,this.init()}init(){window.getComputedStyle(this.panel).transitionDuration!=="0s"&&(this.toggle.addEventListener("click",this.handleToggle.bind(this)),this.disclosure.addEventListener("transitionend",this.handleTransitionEnd.bind(this)))}handleToggle(evt){evt.preventDefault(),this.disclosure.open?this.close():this.open()}handleTransitionEnd(evt){evt.target===this.panel&&(this.disclosure.classList.contains("is-closing")&&(this.disclosure.classList.remove("is-closing"),this.disclosure.open=!1),this.panel.removeAttribute("style"))}addContentHeight(){this.panel.style.height=`${this.panel.scrollHeight}px`}open(){this.panel.style.height="0",this.disclosure.open=!0,this.addContentHeight()}close(){this.addContentHeight(),this.disclosure.classList.add("is-closing"),setTimeout(()=>{this.panel.style.height="0"})}}customElements.define("details-disclosure",DetailsDisclosure);const trapFocusHandlers={};function removeTrapFocus(elementToFocus=null){document.removeEventListener("focusin",trapFocusHandlers.focusin),document.removeEventListener("focusout",trapFocusHandlers.focusout),document.removeEventListener("keydown",trapFocusHandlers.keydown),elementToFocus&&elementToFocus.focus()}function trapFocus(container,elementToFocus=container){const focusableEls=Array.from(container.querySelectorAll('summary, a[href], area[href], button:not([disabled]), input:not([type=hidden]):not([disabled]), select:not([disabled]), textarea:not([disabled]), object, iframe, audio[controls], video[controls], [tabindex]:not([tabindex^="-"])')),firstEl=focusableEls[0],lastEl=focusableEls[focusableEls.length-1];removeTrapFocus(),trapFocusHandlers.focusin=evt=>{evt.target!==container&&evt.target!==lastEl&&evt.target!==firstEl||document.addEventListener("keydown",trapFocusHandlers.keydown)},trapFocusHandlers.focusout=()=>{document.removeEventListener("keydown",trapFocusHandlers.keydown)},trapFocusHandlers.keydown=evt=>{evt.code==="Tab"&&(evt.target===lastEl&&!evt.shiftKey&&(evt.preventDefault(),firstEl.focus()),(evt.target===container||evt.target===firstEl)&&evt.shiftKey&&(evt.preventDefault(),lastEl.focus()))},document.addEventListener("focusout",trapFocusHandlers.focusout),document.addEventListener("focusin",trapFocusHandlers.focusin),(elementToFocus||container).focus()}class Modal extends HTMLElement{constructor(){super(),this.addEventListener("click",this.handleClick.bind(this))}handleClick(evt){evt.target!==this&&!evt.target.matches(".js-close-modal")||this.close()}open(opener){this.scrollY=window.scrollY,document.body.classList.add("fixed"),document.body.style.top=`-${this.scrollY}px`,this.setAttribute("open",""),this.openedBy=opener,trapFocus(this),window.pauseAllMedia(),this.keyupHandler=evt=>evt.key==="Escape"&&this.close(),this.addEventListener("keyup",this.keyupHandler),this.querySelectorAll("table").forEach(table=>{const wrapper=document.createElement("div");wrapper.className="scrollable-table",table.parentNode.insertBefore(wrapper,table),wrapper.appendChild(table)})}close(){document.body.style.top="",document.body.classList.remove("fixed"),window.scrollTo(0,this.scrollY),this.removeAttribute("open"),removeTrapFocus(this.openedBy),window.pauseAllMedia(),this.removeEventListener("keyup",this.keyupHandler)}}customElements.define("modal-dialog",Modal);class ModalOpener extends HTMLElement{constructor(){super();const button=this.querySelector("button");button&&button.addEventListener("click",()=>{const modal=document.getElementById(this.dataset.modal);modal&&modal.open(button)})}}customElements.define("modal-opener",ModalOpener);class ProductCard extends HTMLElement{constructor(){super(),window.initLazyScript(this,this.init.bind(this))}init(){this.images=this.querySelectorAll(".card__main-image"),this.links=this.querySelectorAll(".js-prod-link"),this.quickAddBtn=this.querySelector(".js-quick-add"),this.quickAddBtn?this.productUrl=this.quickAddBtn.dataset.productUrl:this.links.length&&(this.productUrl=this.links[0].href),this.addEventListener("change",this.handleSwatchChange.bind(this))}handleSwatchChange(evt){if(!evt.target.matches(".opt-btn"))return;if(evt.target.dataset.mediaId){const variantMedia=this.querySelector(`[data-media-id="${evt.target.dataset.mediaId}"]`);variantMedia&&(this.images.forEach(image=>{image.hidden=!0}),variantMedia.hidden=!1)}const separator=this.productUrl.split("?").length>1?"&":"?",url=`${this.productUrl+separator}variant=${evt.target.dataset.variantId}`;this.links.forEach(link=>{link.href=url}),this.quickAddBtn&&(this.quickAddBtn.dataset.selectedColor=evt.target.value)}}customElements.define("product-card",ProductCard);class QuantityInput extends HTMLElement{constructor(){super(),this.input=this.querySelector(".qty-input__input"),this.currentQty=this.input.value,this.changeEvent=new Event("change",{bubbles:!0}),this.addEventListener("click",this.handleClick.bind(this)),this.input.addEventListener("focus",QuantityInput.handleFocus),this.input.addEventListener("keydown",this.handleKeydown.bind(this))}handleClick(evt){evt.target.matches(".qty-input__btn")&&(evt.preventDefault(),this.currentQty=this.input.value,evt.target.name==="plus"?this.input.stepUp():this.input.stepDown(),this.input.value!==this.currentQty&&(this.input.dispatchEvent(this.changeEvent),this.currentQty=this.input.value))}static handleFocus(evt){evt.target.select()}handleKeydown(evt){evt.key==="Enter"&&(evt.preventDefault(),this.input.value!==this.currentQty&&(this.input.blur(),this.input.focus(),this.currentQty=this.input.value))}}customElements.define("quantity-input",QuantityInput);class SideDrawer extends HTMLElement{constructor(){super(),this.overlay=document.querySelector(".js-overlay")}handleClick(evt){(evt.target.matches(".js-close-drawer")||evt.target===this.overlay)&&this.close()}open(opener,elementToFocus,callback){this.dispatchEvent(new CustomEvent(`on:${this.dataset.name}:before-open`,{bubbles:!0})),this.scrollY=window.scrollY,document.body.classList.add("fixed"),document.body.style.top=`-${this.scrollY}px`,document.documentElement.style.height="100vh",this.overlay.classList.add("is-visible"),this.setAttribute("open",""),this.setAttribute("aria-hidden","false"),this.opener=opener,trapFocus(this,elementToFocus),this.clickHandler=this.clickHandler||this.handleClick.bind(this),this.keyupHandler=evt=>{evt.key!=="Escape"||evt.target.closest(".cart-drawer-popup")||this.close()},this.addEventListener("click",this.clickHandler),this.addEventListener("keyup",this.keyupHandler),this.overlay.addEventListener("click",this.clickHandler);const transitionDuration=parseFloat(getComputedStyle(this).getPropertyValue("--longest-transition-in-ms"));setTimeout(()=>{callback&&callback(),this.dispatchEvent(new CustomEvent(`on:${this.dataset.name}:after-open`,{bubbles:!0}))},transitionDuration)}close(callback){this.dispatchEvent(new CustomEvent(`on:${this.dataset.name}:before-close`,{bubbles:!0})),this.removeAttribute("open"),this.setAttribute("aria-hidden","true"),this.overlay.classList.remove("is-visible"),removeTrapFocus(this.opener),document.documentElement.style.height="",document.body.style.top="",document.body.classList.remove("fixed"),window.scrollTo(0,this.scrollY),this.removeEventListener("click",this.clickHandler),this.removeEventListener("keyup",this.keyupHandler),this.overlay.removeEventListener("click",this.clickHandler);const transitionDuration=parseFloat(getComputedStyle(this).getPropertyValue("--longest-transition-in-ms"));setTimeout(()=>{callback&&callback(),this.dispatchEvent(new CustomEvent(`on:${this.dataset.name}:after-close`,{bubbles:!0}))},transitionDuration)}}customElements.define("side-drawer",SideDrawer),window.addEventListener("resize",debounce(()=>{window.dispatchEvent(new CustomEvent("on:debounced-resize"))}));function initCssVarHeightWatch(){const parentElems=document.querySelectorAll("[data-css-var-height]");if(parentElems){const updateHeight=elem=>{const parentElem=elem.closest("[data-css-var-height]");if(parentElem){const selectors=parentElem.dataset.cssVarHeight.split(",");let matchedSelector=null;selectors.forEach(selector=>{elem.matches(selector.trim())&&(matchedSelector=selector.trim())});const variableName=`--${matchedSelector.replace(/^([#.])/,"")}-height`;parentElem.style.setProperty(variableName,`${elem.getBoundingClientRect().height.toFixed(2)}px`)}};let mutationObserver=null;"MutationObserver"in window&&(mutationObserver=new MutationObserver(debounce(mutationList=>{const elemToWatch=mutationList[0].target.closest("[data-css-var-height]");elemToWatch&&updateHeight(elemToWatch.querySelector(elemToWatch.dataset.cssVarHeight))}))),parentElems.forEach(parentElem=>{parentElem.dataset.cssVarHeight.split(",").forEach(selector=>{const elemToWatch=parentElem.querySelector(selector);elemToWatch&&(mutationObserver&&mutationObserver.observe(elemToWatch,{childList:!0,attributes:!0,subtree:!0}),window.addEventListener("on:debounced-resize",()=>{const elem=parentElem.querySelector(selector);elem&&updateHeight(elem)}),document.addEventListener("on:css-var-height:update",()=>{const elem=parentElem.querySelector(selector);elem&&updateHeight(elem)}),updateHeight(elemToWatch))})})}}document.addEventListener("DOMContentLoaded",initCssVarHeightWatch),document.addEventListener("shopify:section:load",initCssVarHeightWatch),theme.elementUtil={},theme.elementUtil.remove=elem=>{elem&&(typeof elem.remove=="function"?elem.remove():elem.forEach(thisElem=>{thisElem.remove()}))},theme.elementUtil.isInViewport=elem=>{const rect=elem.getBoundingClientRect();return Math.round(rect.top)>=0&&Math.round(rect.left)>=0&&Math.round(rect.bottom)<=(window.innerHeight||document.documentElement.clientHeight)&&Math.round(rect.right)<=(window.innerWidth||document.documentElement.clientWidth)},theme.storageUtil={},theme.storageUtil.set=(key,value,isSession)=>{isSession?sessionStorage.setItem(`cc-${key}`,typeof value=="object"?JSON.stringify(value):value):localStorage.setItem(`cc-${key}`,typeof value=="object"?JSON.stringify(value):value)},theme.storageUtil.get=(key,isJson,isSession)=>{let value=isSession?sessionStorage.getItem(`cc-${key}`):localStorage.getItem(`cc-${key}`);return isJson&&(value=JSON.parse(value)),value},theme.storageUtil.remove=(key,isSession)=>{isSession?sessionStorage.removeItem(`cc-${key}`):localStorage.removeItem(`cc-${key}`)};class StoreHeader extends HTMLElement{constructor(){super(),this.menu=this.querySelector(".main-menu__content"),this.searchToggle=this.querySelector(".js-show-search"),this.searchToggleLeft=this.querySelector(".js-show-search-left"),this.mobNavToggle=this.querySelector(".main-menu__toggle"),this.shakeyCartIcon=this.querySelector(".header__icon--cart-shake"),this.headerGroupSections=document.querySelectorAll(".shopify-section-group-header-group"),this.stickyInitialised=!1,this.stickyTransitioning=!1,this.lastScrollPos=0,this.headerTransitionSpeed=parseFloat(getComputedStyle(this).getPropertyValue("--header-transition-speed")),window.setHeaderHeight(),this.bindEvents(),this.init(),document.addEventListener("DOMContentLoaded",this.setMenuHeight.bind(this))}disconnectedCallback(){window.removeEventListener("on:debounced-resize",this.resizeHandler),this.breakpointChangeHandler&&window.removeEventListener("on:breakpoint-change",this.breakpointChangeHandler)}bindEvents(){this.resizeHandler=this.resizeHandler||this.updateHeaderHeights.bind(this),window.addEventListener("on:debounced-resize",this.resizeHandler),this.mobNavToggle.addEventListener("click",window.setHeaderHeight),this.mobNavToggle.addEventListener("click",this.setHeaderEnd.bind(this)),this.dataset.isSticky&&(this.breakpointChangeHandler=this.breakpointChangeHandler||this.init.bind(this),window.addEventListener("on:breakpoint-change",this.breakpointChangeHandler)),this.dataset.isSearchMinimised&&(this.searchToggle&&this.searchToggle.addEventListener("click",this.handleSearchToggleClick.bind(this)),this.searchToggleLeft&&this.searchToggleLeft.addEventListener("click",this.handleSearchToggleClick.bind(this)))}init(){if(this.updateHeaderHeights(),this.dataset.isSticky&&(theme.mediaMatches.md&&!this.stickyInitialised&&(this.stickyInitialised=!0,window.addEventListener("scroll",this.handleScroll.bind(this))),setTimeout(()=>{document.querySelector(".cc-header").classList.add("cc-header--sticky")}),this.setMenuHeight(),this.setHeaderEnd()),this.shakeyCartIcon){let pageCount=theme.storageUtil.get("shake-page-count",!1,!0);pageCount=pageCount?parseInt(pageCount,10)+1:1;const shakeFrequency=parseInt(this.shakeyCartIcon.dataset.shakeFrequency,10);pageCount{this.classList.add("search-is-visible"),searchBar.querySelector(".js-search-input").focus(),window.setHeaderHeight()},this.headerTransitionSpeed)):(this.classList.remove("search-is-visible"),setTimeout(()=>{this.classList.add("search-is-collapsed")}),setTimeout(window.setHeaderHeight,this.headerTransitionSpeed))}updateHeaderHeights(){if(theme.mediaMatches.md?(this.setMenuHeight(),setTimeout(window.setHeaderHeight,this.headerTransitionSpeed)):window.setHeaderHeight(),this.headerGroupSections&&this.headerGroupSections.length>0){let headerGroupHeight=0;this.headerGroupSections.forEach(section=>{headerGroupHeight+=section.getBoundingClientRect().height}),headerGroupHeight>0&&document.documentElement.style.setProperty("--content-start",`${headerGroupHeight.toFixed(1)}px`)}}setMenuHeight(){this.menu&&this.menu.clientHeight&&(this.style.setProperty("--menu-height",`${this.menu.clientHeight+16}px`),document.documentElement.style.setProperty("--header-height",`${this.clientHeight}px`))}handleScroll(){!document.body.classList.contains("fixed")&&!this.stickyTransitioning&&(document.documentElement.scrollTop<200?this.show():this.lastScrollPosdocument.documentElement.scrollTop&&this.show(),this.lastScrollPos=document.documentElement.scrollTop)}setHeaderEnd(){const headerEnd=Number(this.getBoundingClientRect().top+this.clientHeight);document.documentElement.style.setProperty("--header-end",`${headerEnd.toFixed(1)}px`),document.documentElement.style.setProperty("--header-end-padded",`${(headerEnd+(theme.mediaMatches.md?56:20)).toFixed(1)}px`)}show(){this.classList.remove("is-out"),this.stickyTransitioning=!0,setTimeout(()=>{this.lastScrollPos=document.documentElement.scrollTop,this.stickyTransitioning=!1,this.handleScroll(),this.setHeaderEnd()},300)}hide(){this.stickyTransitioning||(this.classList.add("is-out"),this.stickyTransitioning=!0,setTimeout(()=>{this.lastScrollPos=document.documentElement.scrollTop,this.stickyTransitioning=!1,this.handleScroll(),this.setHeaderEnd()},300))}}customElements.define("store-header",StoreHeader);class MainMenu extends HTMLElement{constructor(){super(),this.mainDisclosure=this.querySelector(".main-menu__disclosure"),this.mainToggle=this.querySelector(".main-menu__toggle"),this.firstLevelMenuLinks=this.querySelectorAll(".js-nav-hover"),this.firstLevelSingleLinks=this.querySelectorAll(".main-nav__item--primary:not(.main-nav__item-content)"),this.nav=this.querySelector(".main-nav"),this.overlay=document.querySelector(".js-overlay"),this.searchIcon=document.querySelector(".header__icons .js-show-search"),this.sidebarLinks=this.querySelectorAll(".js-sidebar-hover"),this.elementsWhichCloseMenus=document.querySelectorAll(".js-closes-menu"),this.isTouchEvent=!1,this.childNavOpen=!1,this.overlayOpen=!1,this.addListeners(),this.init()}disconnectedCallback(){window.removeEventListener("focusin",this.focusOutHandler),window.removeEventListener("on:breakpoint-change",this.breakpointChangeHandler),Shopify.designMode&&(document.removeEventListener("shopify:block:select",this.blockSelectHandler),document.removeEventListener("shopify:block:deselect",this.blockDeselectHandler))}addListeners(){this.focusOutHandler=this.focusOutHandler||this.handleFocusOut.bind(this),this.breakpointChangeHandler=this.breakpointChangeHandler||this.init.bind(this),this.mainDisclosure.addEventListener("transitionend",MainMenu.handleTransition.bind(this)),this.mainToggle.addEventListener("click",this.handleMainMenuToggle.bind(this)),this.nav.addEventListener("touchstart",()=>{this.isTouchEvent=!0}),this.nav.addEventListener("click",MainMenu.handleNavClick.bind(this)),this.nav.addEventListener("touchend",()=>setTimeout(()=>{this.isTouchEvent=!1},100)),window.addEventListener("focusin",this.focusOutHandler),window.addEventListener("on:breakpoint-change",this.breakpointChangeHandler),Shopify.designMode&&(this.blockSelectHandler=this.blockSelectHandler||this.handleBlockSelect.bind(this),this.blockDeselectHandler=this.blockDeselectHandler||this.handleBlockDeselect.bind(this),document.addEventListener("shopify:block:select",this.blockSelectHandler),document.addEventListener("shopify:block:deselect",this.blockDeselectHandler)),!theme.mediaMatches.md&&this.searchIcon&&this.searchIcon.addEventListener("click",this.closeMainDisclosure.bind(this))}init(evt){if(!evt)this.mainDisclosure.open=theme.mediaMatches.md;else if(!theme.mediaMatches.md&&!this.childNavOpen)this.close(this.mainDisclosure),this.overlayOpen&&this.toggleOverlay(!1);else{const activeDisclosure=this.nav.querySelector("details.is-open");activeDisclosure?this.close(activeDisclosure):MainMenu.open(this.mainDisclosure,!1),this.childNavOpen||this.overlayOpen&&this.toggleOverlay(!1)}this.querySelectorAll(".child-nav--dropdown details[open]").forEach(childToggle=>{childToggle.removeAttribute("open")}),theme.device.hasHover&&(this.mouseEnterMenuLinkHandler=this.mouseEnterMenuLinkHandler||this.handleMouseEnterMenuLink.bind(this),this.mouseLeaveMenuLinkHandler=this.mouseLeaveMenuLinkHandler||this.handleMouseLeaveMenuLink.bind(this),this.mouseEnterSingleLinkHandler=this.mouseEnterSingleLinkHandler||this.handleMouseEnterSingleLink.bind(this),this.mouseLeaveSingleLinkHandler=this.mouseLeaveSingleLinkHandler||this.handleMouseLeaveSingleLink.bind(this),this.mouseEnterMenuCloserHandler=this.mouseEnterMenuCloserHandler||this.handleClose.bind(this),!this.mouseOverListening&&theme.mediaMatches.md?(this.firstLevelMenuLinks.forEach(menuLink=>{menuLink.addEventListener("mouseenter",this.mouseEnterMenuLinkHandler),menuLink.addEventListener("mouseleave",this.mouseLeaveMenuLinkHandler)}),this.firstLevelSingleLinks.forEach(singleLink=>{singleLink.addEventListener("mouseenter",this.mouseEnterSingleLinkHandler),singleLink.addEventListener("mouseleave",this.mouseLeaveSingleLinkHandler)}),this.elementsWhichCloseMenus.forEach(elem=>{elem.addEventListener("mouseenter",this.mouseEnterMenuCloserHandler)}),this.mouseOverListening=!0):this.mouseOverListening&&!theme.mediaMatches.md&&(this.firstLevelMenuLinks.forEach(menuLink=>{menuLink.removeEventListener("mouseenter",this.mouseEnterMenuLinkHandler),menuLink.removeEventListener("mouseleave",this.mouseLeaveMenuLinkHandler)}),this.firstLevelSingleLinks.forEach(singleLink=>{singleLink.removeEventListener("mouseenter",this.mouseEnterSingleLinkHandler),singleLink.removeEventListener("mouseleave",this.mouseLeaveSingleLinkHandler)}),this.elementsWhichCloseMenus.forEach(elem=>{elem.removeEventListener("mouseenter",this.mouseEnterMenuCloserHandler)}),this.mouseOverListening=!1),this.sidebarLinks&&(!this.mouseOverSidebarListening&&theme.mediaMatches.md?(this.sidebarLinks.forEach(sidebarLink=>{sidebarLink.addEventListener("mouseenter",MainMenu.handleSidenavMenuToggle)}),this.mouseOverSidebarListening=!0):this.mouseOverSidebarListening&&!theme.mediaMatches.md&&(this.sidebarLinks.forEach(sidebarLink=>{sidebarLink.removeEventListener("mouseenter",MainMenu.handleSidenavMenuToggle)}),this.mouseOverSidebarListening=!1)))}handleFocusOut(evt){!this.contains(evt.target)&&this.overlayOpen&&this.handleClose()}static handleSidenavMenuToggle(evt,summaryElem=evt.target){const container=summaryElem.closest(".child-nav"),lastSidenavElem=container.querySelector(".is-visible");lastSidenavElem&&lastSidenavElem.classList.remove("is-visible"),summaryElem.classList.add("is-visible");const menu=summaryElem.closest("nav-menu");if(menu){const openDisclosure=menu.querySelector(".disclosure__panel");openDisclosure&&container.style.setProperty("--sidebar-height",`${Number.parseInt(openDisclosure.getBoundingClientRect().height,10)}px`)}}handleMainMenuToggle(evt){evt.preventDefault(),this.opener=this.mainToggle,this.mainDisclosure.open?this.close(this.mainDisclosure,!0):MainMenu.open(this.mainDisclosure)}handleMouseEnterMenuLink(evt){this.menuLinkTimeout=setTimeout(this.openMenuFromMouseEnter.bind(this,evt.target),Number.parseInt(this.dataset.menuSensitivity,10))}handleMouseLeaveMenuLink(){this.menuLinkTimeout&&clearTimeout(this.menuLinkTimeout)}handleMouseEnterSingleLink(){this.singleLinkTimeout=setTimeout(()=>{this.handleClose()},Number.parseInt(this.dataset.menuSensitivity,10))}handleMouseLeaveSingleLink(){this.singleLinkTimeout&&clearTimeout(this.singleLinkTimeout)}openMenuFromMouseEnter(menuElem){trapFocus(menuElem);const disclosure=menuElem.closest("details");if(!disclosure.classList.contains("is-open")){const activeDisclosure=this.nav.querySelector("details.is-open");activeDisclosure&&activeDisclosure!==disclosure?this.close(activeDisclosure):this.toggleOverlay(!this.overlayOpen),MainMenu.open(disclosure)}}static handleNavClick(evt){const mainMenuContent=evt.target.closest(".main-menu__content");let el=evt.target;if(theme.mediaMatches.md&&el.matches(".js-sidebar-hover")&&el.closest("summary")&&(evt.preventDefault(),MainMenu.handleSidenavMenuToggle(evt)),evt.target.href&&evt.target.href.endsWith("#")&&evt.preventDefault(),theme.mediaMatches.md&&!theme.device.hasHover&&(el=evt.target.closest(".js-toggle"),!el))return;const isLargeTouchDevice=this.isTouchEvent&&theme.device.hasHover&&theme.mediaMatches.md;if(!el.matches(".js-toggle,.js-back")&&!isLargeTouchDevice||el.closest("summary.child-nav__item--toggle")&&isLargeTouchDevice)return;const disclosure=el.closest("details");if(theme.mediaMatches.md&&theme.device.hasHover&&!isLargeTouchDevice){disclosure.classList.toggle("is-open");return}if(this.opener=el,el.matches(".js-toggle")||isLargeTouchDevice&&el.closest("summary"))if(evt.preventDefault(),theme.mediaMatches.md||mainMenuContent.classList.add("main-menu__content--no-focus"),disclosure.classList.contains("is-open"))this.close(disclosure,!0),this.childNavOpen=!1,this.toggleOverlay(!1);else{this.childNavOpen=!0;const activeDisclosure=this.nav.querySelector("details.is-open");activeDisclosure&&activeDisclosure!==disclosure?this.close(activeDisclosure):theme.mediaMatches.md&&this.toggleOverlay(!this.overlayOpen),MainMenu.open(disclosure)}else el.matches(".js-back")&&(evt.preventDefault(),this.close(disclosure,!0),this.childNavOpen=!1,theme.mediaMatches.md||mainMenuContent.classList.remove("main-menu__content--no-focus"))}static handleTransition(evt){const disclosure=evt.target.closest("details");disclosure.classList.contains("is-closing")&&(disclosure.classList.remove("is-closing"),disclosure.open=!1,removeTrapFocus(),this.opener=null)}handleClose(evt){if(evt&&evt.type==="keyup"&&evt.key!=="Escape")return;const disclosure=theme.mediaMatches.md?this.nav.querySelector("details.is-open"):this.mainDisclosure;disclosure&&(this.close(disclosure,!0),this.toggleOverlay(!1),this.childNavOpen=!1)}toggleOverlay(show){this.overlayOpen=show,this.overlay.classList.toggle("overlay--nav",show),this.overlay.classList.toggle("is-visible",show),show?(this.closeHandler=this.closeHandler||this.handleClose.bind(this),this.overlay.addEventListener("click",this.closeHandler),this.nav.addEventListener("keyup",this.closeHandler),theme.mediaMatches.md&&this.overlay.addEventListener("mouseenter",this.closeHandler)):(this.overlay.removeEventListener("click",this.closeHandler),this.nav.removeEventListener("keyup",this.closeHandler),theme.mediaMatches.md&&this.overlay.removeEventListener("mouseenter",this.closeHandler))}closeMainDisclosure(){this.mainDisclosure.classList.contains("is-open")&&(this.close(this.mainDisclosure,!0),this.toggleOverlay(!1),this.childNavOpen=!1)}static open(el,mainMenuOpen=!0){if(el.open=!0,theme.mediaMatches.md&&!el.classList.contains("js-mega-nav")){const dropdownContainer=el.querySelector(".main-nav__child");dropdownContainer?.getBoundingClientRect().right>window.innerWidth&&dropdownContainer.classList.add("main-nav__child--offset-right");const dropdown=el.querySelector(".child-nav--dropdown");dropdown&&dropdown.querySelectorAll(".main-nav__grandchild").forEach(grandchildElem=>{grandchildElem.style.maxWidth=`${dropdown.clientWidth}px`})}else if(theme.mediaMatches.md&&el.querySelector(".mega-nav--sidebar")){const firstSummaryElem=el.querySelector(".mega-nav--sidebar details[open] summary");firstSummaryElem&&MainMenu.handleSidenavMenuToggle(null,firstSummaryElem)}setTimeout(()=>{el.classList.remove("is-closing"),el.classList.add("is-open")}),mainMenuOpen&&(removeTrapFocus(),trapFocus(el),(theme.mediaMatches.md||el.classList.contains("main-menu__disclosure"))&&document.body.classList.add("overflow-hidden"))}close(el,transition=!0){el.classList.remove("is-open"),transition?el.classList.add("is-closing"):(el.classList.remove("is-closing"),el.open=!1,removeTrapFocus(this.opener),this.opener=null),setTimeout(()=>{const offsetMenu=el.querySelector(".main-nav__child--offset-right");offsetMenu&&offsetMenu.classList.remove("main-nav__child--offset-right")},200),(theme.mediaMatches.md||el.classList.contains("main-menu__disclosure"))&&document.body.classList.remove("overflow-hidden")}handleBlockSelect(evt){const activeDisclosure=this.nav.querySelector("details.is-open");activeDisclosure&&this.close(activeDisclosure,!1),evt.target.matches(".js-mega-nav")&&(MainMenu.open(evt.target,!1),this.toggleOverlay(!0))}handleBlockDeselect(evt){evt.target.matches(".js-mega-nav")&&(this.close(evt.target,!1),this.toggleOverlay(!1))}}customElements.define("main-menu",MainMenu);class CarouselSlider extends HTMLElement{constructor(){super(),this.slides=this.querySelectorAll(".slider__item"),!(this.slides.length<2)&&window.initLazyScript(this,this.init.bind(this))}disconnectedCallback(){window.removeEventListener("on:breakpoint-change",this.breakpointChangeHandler)}init(){this.slider=this.querySelector(".slider"),this.grid=this.querySelector(".slider__grid"),this.nav=this.querySelector(".slider-nav"),this.rtl=document.dir==="rtl",this.breakpointChangeHandler=this.breakpointChangeHandler||this.handleBreakpointChange.bind(this),this.nav&&(this.prevBtn=this.querySelector('button[name="prev"]'),this.nextBtn=this.querySelector('button[name="next"]')),this.initSlider(),window.addEventListener("on:breakpoint-change",this.breakpointChangeHandler)}initSlider(){if(!(this.getAttribute("disable-mobile")&&!window.matchMedia(theme.mediaQueries.sm).matches)&&!(this.getAttribute("disable-desktop")&&window.matchMedia(theme.mediaQueries.sm).matches)){if(this.gridWidth=this.grid.clientWidth,this.slideSpan=this.getWindowOffset(this.slides[1])-this.getWindowOffset(this.slides[0]),this.slideGap=this.slideSpan-this.slides[0].clientWidth,this.slidesPerPage=Math.round((this.gridWidth+this.slideGap)/this.slideSpan),this.slidesToScroll=theme.settings.sliderItemsPerNav==="page"?this.slidesPerPage:1,this.totalPages=this.slides.length-this.slidesPerPage+1,this.setCarouselState(this.totalPages>1),this.totalPages<2)return;this.sliderStart=this.getWindowOffset(this.slider),this.sliderStart||(this.sliderStart=(this.slider.clientWidth-this.gridWidth)/2),this.sliderEnd=this.sliderStart+this.gridWidth,window.matchMedia("(pointer: fine)").matches&&this.slider.classList.add("is-grabbable"),this.addListeners(),this.setButtonStates()}else this.setAttribute("inactive","");!this.slider.classList.contains("slider--no-scrollbar")&&window.OverlayScrollbarsGlobal&&window.OverlayScrollbarsGlobal.OverlayScrollbars({target:this.slider.parentElement,elements:{viewport:this.slider}},{})}addListeners(){this.nav&&(this.scrollHandler=debounce(this.handleScroll.bind(this)),this.navClickHandler=this.handleNavClick.bind(this),this.slider.addEventListener("scroll",this.scrollHandler),this.nav.addEventListener("click",this.navClickHandler)),window.matchMedia("(pointer: fine)").matches&&(this.mousedownHandler=this.handleMousedown.bind(this),this.mouseupHandler=this.handleMouseup.bind(this),this.mousemoveHandler=this.handleMousemove.bind(this),this.slider.addEventListener("mousedown",this.mousedownHandler),this.slider.addEventListener("mouseup",this.mouseupHandler),this.slider.addEventListener("mouseleave",this.mouseupHandler),this.slider.addEventListener("mousemove",this.mousemoveHandler))}removeListeners(){this.nav&&(this.slider.removeEventListener("scroll",this.scrollHandler),this.nav.removeEventListener("click",this.navClickHandler)),this.slider.removeEventListener("mousedown",this.mousedownHandler),this.slider.removeEventListener("mouseup",this.mouseupHandler),this.slider.removeEventListener("mouseleave",this.mouseupHandler),this.slider.removeEventListener("mousemove",this.mousemoveHandler)}handleScroll(){this.currentIndex=Math.round(this.slider.scrollLeft/this.slideSpan),this.setButtonStates()}handleMousedown(evt){this.mousedown=!0,this.startX=evt.pageX-this.sliderStart,this.scrollPos=this.slider.scrollLeft,this.slider.classList.add("is-grabbing")}handleMouseup(){this.mousedown=!1,this.slider.classList.remove("is-grabbing")}handleMousemove(evt){if(!this.mousedown)return;evt.preventDefault();const x=evt.pageX-this.sliderStart;this.slider.scrollLeft=this.scrollPos-(x-this.startX)*2}handleNavClick(evt){evt.target.matches(".slider-nav__btn")&&(evt.target.name==="next"&&!this.rtl||evt.target.name==="prev"&&this.rtl?this.scrollPos=this.slider.scrollLeft+this.slidesToScroll*this.slideSpan:this.scrollPos=this.slider.scrollLeft-this.slidesToScroll*this.slideSpan,this.slider.scrollTo({left:this.scrollPos,behavior:"smooth"}))}handleBreakpointChange(){this.removeListeners(),this.initSlider()}getWindowOffset(el){return this.rtl?window.innerWidth-el.getBoundingClientRect().right:el.getBoundingClientRect().left}getSlideVisibility(el){const slideStart=this.getWindowOffset(el),slideEnd=Math.floor(slideStart+this.slides[0].clientWidth);return slideStart>=this.sliderStart&&slideEnd<=this.sliderEnd}setCarouselState(active){active?(this.removeAttribute("inactive"),this.gridWidth!==this.grid.clientWidth&&this.handleBreakpointChange()):this.setAttribute("inactive","")}setButtonStates(){!this.prevBtn&&!this.nextBtn||(this.prevBtn.disabled=this.getSlideVisibility(this.slides[0])&&this.slider.scrollLeft===0,this.nextBtn.disabled=this.getSlideVisibility(this.slides[this.slides.length-1]))}}customElements.define("carousel-slider",CarouselSlider);/*! * OverlayScrollbars * Version: 2.5.0 * * Copyright (c) Rene Haas | KingSora. * https://github.com/KingSora * * Released under the MIT license. */window.OverlayScrollbarsGlobal=function(t){const e=(t2,e2)=>{const{o:n2,u:r2,_:o2}=t2;let s2,c2=n2;const l2=(t3,e3)=>{const n3=c2,l3=t3,i2=e3||(r2?!r2(n3,l3):n3!==l3);return(i2||o2)&&(c2=l3,s2=n3),[c2,i2,s2]};return[e2?t3=>l2(e2(c2,s2),t3):l2,t3=>[c2,!!t3,s2]]},n=typeof window<"u",r=n?window:{},o=Math.max,s=Math.min,c=Math.round,l=Math.abs,i=r.cancelAnimationFrame,a=r.requestAnimationFrame,u=r.setTimeout,d=r.clearTimeout,p=t2=>r[t2]!==void 0?r[t2]:void 0,f=p("MutationObserver"),h=p("IntersectionObserver"),y=p("ResizeObserver"),v=p("ScrollTimeline"),b=n&&Node.ELEMENT_NODE,{toString:w,hasOwnProperty:g}=Object.prototype,m=/^\[object (.+)\]$/,x=t2=>t2===void 0,$=t2=>t2===null,S=t2=>typeof t2=="number",O=t2=>typeof t2=="string",T=t2=>typeof t2=="boolean",L=t2=>typeof t2=="function",P=t2=>Array.isArray(t2),E=t2=>typeof t2=="object"&&!P(t2)&&!$(t2),C=t2=>{const e2=!!t2&&t2.length,n2=S(e2)&&e2>-1&&e2%1==0;return!(!(P(t2)||!L(t2)&&n2)||e2>0&&E(t2)&&!(e2-1 in t2))},D=t2=>{if(!t2||!E(t2)||(t3=>x(t3)||$(t3)?`${t3}`:w.call(t3).replace(m,"$1").toLowerCase())(t2)!=="object")return!1;let e2;const n2="constructor",r2=t2[n2],o2=r2&&r2.prototype,s2=g.call(t2,n2),c2=o2&&g.call(o2,"isPrototypeOf");if(r2&&!s2&&!c2)return!1;for(e2 in t2);return x(e2)||g.call(t2,e2)},k=t2=>{const e2=HTMLElement;return!!t2&&(e2?t2 instanceof e2:t2.nodeType===b)},M=t2=>{const e2=Element;return!!t2&&(e2?t2 instanceof e2:t2.nodeType===b)},H=()=>performance.now(),A=(t2,e2,n2,r2,s2)=>{let c2=0;const l2=H(),u2=o(0,n2),d2=n3=>{const i2=H(),p2=i2-l2>=u2,f2=n3?1:1-(o(0,l2+u2-i2)/u2||0),h2=(e2-t2)*(L(s2)?s2(f2,f2*u2,0,1,u2):f2)+t2,y2=p2||f2===1;r2&&r2(h2,f2,y2),c2=y2?0:a(()=>d2())};return d2(),t3=>{i(c2),t3&&d2(t3)}};function N(t2,e2){if(C(t2))for(let n2=0;n2e2(t2[n2],n2,t2));return t2}const R=(t2,e2)=>t2.indexOf(e2)>=0,V=(t2,e2)=>t2.concat(e2),I=(t2,e2,n2)=>(n2||O(e2)||!C(e2)?t2.push(e2):Array.prototype.push.apply(t2,e2),t2),z=t2=>Array.from(t2||[]),j=t2=>P(t2)?t2:[t2],_=t2=>!!t2&&!t2.length,U=t2=>z(new Set(t2)),B=(t2,e2,n2)=>{N(t2,t3=>t3&&t3.apply(void 0,e2||[])),!n2&&(t2.length=0)},F="paddingTop",Z="paddingRight",X="paddingLeft",W="paddingBottom",Y="marginLeft",q="marginRight",G="marginBottom",J="overflowX",K="overflowY",Q="width",tt="height",et="hidden",nt="visible",rt=(t2,e2,n2,r2)=>{if(t2&&e2){let o2=!0;return N(n2,n3=>{(r2?r2(t2[n3]):t2[n3])!==(r2?r2(e2[n3]):e2[n3])&&(o2=!1)}),o2}return!1},ot=(t2,e2)=>rt(t2,e2,["w","h"]),st=(t2,e2)=>rt(t2,e2,["x","y"]),ct=(t2,e2)=>rt(t2,e2,["t","r","b","l"]),lt=()=>{},it=(t2,...e2)=>t2.bind(0,...e2),at=t2=>{let e2;const n2=t2?u:a,r2=t2?d:i;return[o2=>{r2(e2),e2=n2(o2,L(t2)?t2():t2)},()=>r2(e2)]},ut=(t2,e2)=>{let n2,r2,o2,s2=lt;const{v:c2,p:l2,S:p2}=e2||{},f2=function(e3){s2(),d(n2),n2=r2=void 0,s2=lt,t2.apply(this,e3)},h2=t3=>p2&&r2?p2(r2,t3):t3,y2=()=>{s2!==lt&&f2(h2(o2)||o2)},v2=function(){const t3=z(arguments),e3=L(c2)?c2():c2;if(S(e3)&&e3>=0){const c3=L(l2)?l2():l2,p3=S(c3)&&c3>=0,v3=e3>0?u:a,b2=e3>0?d:i,w2=h2(t3)||t3,g2=f2.bind(0,w2);s2();const m2=v3(g2,e3);s2=()=>b2(m2),p3&&!n2&&(n2=u(y2,c3)),r2=o2=w2}else f2(t3)};return v2.m=y2,v2},dt=(t2,e2)=>Object.prototype.hasOwnProperty.call(t2,e2),pt=t2=>t2?Object.keys(t2):[],ft=(t2,e2,n2,r2,o2,s2,c2)=>{const l2=[e2,n2,r2,o2,s2,c2];return typeof t2=="object"&&!$(t2)||L(t2)||(t2={}),N(l2,e3=>{N(e3,(n3,r3)=>{const o3=e3[r3];if(t2===o3)return!0;const s3=P(o3);if(o3&&D(o3)){const e4=t2[r3];let n4=e4;s3&&!P(e4)?n4=[]:s3||D(e4)||(n4={}),t2[r3]=ft(n4,o3)}else t2[r3]=s3?o3.slice():o3})}),t2},ht=(t2,e2)=>N(ft({},t2),(t3,n2,r2)=>{t3===void 0?delete r2[n2]:e2&&t3&&D(t3)&&(r2[n2]=ht(t3,e2))}),yt=t2=>{for(const e2 in t2)return!1;return!0},vt=(t2,e2,n2)=>o(t2,s(e2,n2)),bt=t2=>z(new Set((P(t2)?t2:(t2||"").split(" ")).filter(t3=>t3))),wt=(t2,e2)=>t2&&t2.getAttribute(e2),gt=(t2,e2,n2)=>{N(bt(e2),e3=>{t2&&t2.setAttribute(e3,n2||"")})},mt=(t2,e2)=>{N(bt(e2),e3=>t2&&t2.removeAttribute(e3))},xt=(t2,e2)=>{const n2=bt(wt(t2,e2)),r2=it(gt,t2,e2),o2=(t3,e3)=>{const r3=new Set(n2);return N(bt(t3),t4=>r3[e3](t4)),z(r3).join(" ")};return{O:t3=>r2(o2(t3,"delete")),$:t3=>r2(o2(t3,"add")),C:t3=>{const e3=bt(t3);return e3.reduce((t4,e4)=>t4&&n2.includes(e4),e3.length>0)}}},$t=(t2,e2,n2)=>{xt(t2,e2).O(n2)},St=(t2,e2,n2)=>(xt(t2,e2).$(n2),it($t,t2,e2,n2)),Ot=(t2,e2,n2,r2)=>{(r2?St:$t)(t2,e2,n2)},Tt=t2=>xt(t2,"class"),Lt=(t2,e2)=>{Tt(t2).O(e2)},Pt=(t2,e2)=>(Tt(t2).$(e2),it(Lt,t2,e2)),Et=n&&Element.prototype,Ct=(t2,e2)=>{const n2=[],r2=e2?M(e2)&&e2:document;return r2?I(n2,r2.querySelectorAll(t2)):n2},Dt=(t2,e2)=>!!M(t2)&&(Et.matches||Et.msMatchesSelector).call(t2,e2),kt=t2=>t2?z(t2.childNodes):[],Mt=t2=>t2&&t2.parentElement,Ht=(t2,e2)=>M(t2)&&t2.closest(e2),At=t2=>{if(C(t2))N(z(t2),t3=>At(t3));else if(t2){const e2=Mt(t2);e2&&e2.removeChild(t2)}},Nt=(t2,e2,n2)=>{if(n2&&t2){let r2,o2=e2;return C(n2)?(r2=document.createDocumentFragment(),N(n2,t3=>{t3===o2&&(o2=t3.previousSibling),r2.appendChild(t3)})):r2=n2,e2&&(o2?o2!==e2&&(o2=o2.nextSibling):o2=t2.firstChild),t2.insertBefore(r2,o2||null),()=>At(n2)}return lt},Rt=(t2,e2)=>Nt(t2,null,e2),Vt=(t2,e2)=>Nt(Mt(t2),t2&&t2.nextSibling,e2),It=t2=>{const e2=document.createElement("div");return gt(e2,"class",t2),e2},zt=t2=>{const e2=It();return e2.innerHTML=t2.trim(),N(kt(e2),t3=>At(t3))},jt=/^--/,_t=(t2,e2)=>t2.getPropertyValue(e2)||t2[e2]||"",Ut=t2=>{const e2=t2||0;return isFinite(e2)?e2:0},Bt=t2=>Ut(parseFloat(t2||"")),Ft=t2=>`${(100*Ut(t2)).toFixed(3)}%`,Zt=t2=>`${Ut(t2)}px`;function Xt(t2,e2){t2&&N(e2,(e3,n2)=>{try{const r2=t2.style,o2=S(e3)?Zt(e3):(e3||"")+"";jt.test(n2)?r2.setProperty(n2,o2):r2[n2]=o2}catch{}})}function Wt(t2,e2,n2){const o2=O(e2);let s2=o2?"":{};if(t2){const c2=r.getComputedStyle(t2,n2)||t2.style;s2=o2?_t(c2,e2):e2.reduce((t3,e3)=>(t3[e3]=_t(c2,e3),t3),s2)}return s2}const Yt=t2=>Wt(t2,"direction")==="rtl",qt=(t2,e2,n2)=>{const r2=e2?`${e2}-`:"",o2=n2?`-${n2}`:"",s2=`${r2}top${o2}`,c2=`${r2}right${o2}`,l2=`${r2}bottom${o2}`,i2=`${r2}left${o2}`,a2=Wt(t2,[s2,c2,l2,i2]);return{t:Bt(a2[s2]),r:Bt(a2[c2]),b:Bt(a2[l2]),l:Bt(a2[i2])}},Gt=(t2,e2)=>`translate${E(t2)?`(${t2.x},${t2.y})`:`${e2?"X":"Y"}(${t2})`}`,Jt={w:0,h:0},Kt=(t2,e2)=>e2?{w:e2[`${t2}Width`],h:e2[`${t2}Height`]}:Jt,Qt=t2=>Kt("inner",t2||r),te=it(Kt,"offset"),ee=it(Kt,"client"),ne=it(Kt,"scroll"),re=t2=>{const e2=parseFloat(Wt(t2,Q))||0,n2=parseFloat(Wt(t2,tt))||0;return{w:e2-c(e2),h:n2-c(n2)}},oe=t2=>t2.getBoundingClientRect(),se=t2=>!(!t2||!t2[tt]&&!t2[Q]),ce=(t2,e2)=>{const n2=se(t2);return!se(e2)&&n2},le=(t2,e2,n2,r2)=>{N(bt(e2),e3=>{t2.removeEventListener(e3,n2,r2)})},ie=(t2,e2,n2,r2)=>{var o2;const s2=(o2=r2&&r2.H)==null||o2,c2=r2&&r2.I||!1,l2=r2&&r2.A||!1,i2={passive:s2,capture:c2};return it(B,bt(e2).map(e3=>{const r3=l2?o3=>{le(t2,e3,r3,c2),n2(o3)}:n2;return t2.addEventListener(e3,r3,i2),it(le,t2,e3,r3,c2)}))},ae=t2=>t2.stopPropagation(),ue=t2=>t2.preventDefault(),de={x:0,y:0},pe=t2=>{const e2=t2&&oe(t2);return e2?{x:e2.left+r.scrollX,y:e2.top+r.scrollY}:de},fe=(t2,e2,n2)=>n2?n2.n?-t2+0:n2.i?e2-t2:t2:t2,he=(t2,e2)=>[fe(0,t2,e2),fe(t2,t2,e2)],ye=(t2,e2,n2)=>vt(0,1,fe(t2,e2,n2)/e2||0),ve=(t2,e2)=>{const{x:n2,y:r2}=S(e2)?{x:e2,y:e2}:e2||{};S(n2)&&(t2.scrollLeft=n2),S(r2)&&(t2.scrollTop=r2)},be=t2=>({x:t2.scrollLeft,y:t2.scrollTop}),we=(t2,e2)=>{N(j(e2),t2)},ge=t2=>{const e2=new Map,n2=(t3,n3)=>{if(t3){const r3=e2.get(t3);we(t4=>{r3&&r3[t4?"delete":"clear"](t4)},n3)}else e2.forEach(t4=>{t4.clear()}),e2.clear()},r2=(t3,o2)=>{if(O(t3)){const r3=e2.get(t3)||new Set;return e2.set(t3,r3),we(t4=>{L(t4)&&r3.add(t4)},o2),it(n2,t3,o2)}T(o2)&&o2&&n2();const s2=pt(t3),c2=[];return N(s2,e3=>{const n3=t3[e3];n3&&I(c2,r2(e3,n3))}),it(B,c2)};return r2(t2||{}),[r2,n2,(t3,n3)=>{N(z(e2.get(t3)),t4=>{n3&&!_(n3)?t4.apply(0,n3):t4()})}]},me=t2=>JSON.stringify(t2,(t3,e2)=>{if(L(e2))throw 0;return e2}),xe=(t2,e2)=>t2?`${e2}`.split(".").reduce((t3,e3)=>t3&&dt(t3,e3)?t3[e3]:void 0,t2):void 0,$e={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},Se=(t2,e2)=>{const n2={};return N(V(pt(e2),pt(t2)),r2=>{const o2=t2[r2],s2=e2[r2];if(E(o2)&&E(s2))ft(n2[r2]={},Se(o2,s2)),yt(n2[r2])&&delete n2[r2];else if(dt(e2,r2)&&s2!==o2){let t3=!0;if(P(o2)||P(s2))try{me(o2)===me(s2)&&(t3=!1)}catch{}t3&&(n2[r2]=s2)}}),n2},Oe=(t2,e2,n2)=>r2=>[xe(t2,r2),n2||xe(e2,r2)!==void 0],Te="data-overlayscrollbars",Le="os-environment",Pe=`${Le}-scrollbar-hidden`,Ee=`${Te}-initialize`,Ce=Te,De=`${Ce}-overflow-x`,ke=`${Ce}-overflow-y`,Me="overflowVisible",He="scrollbarPressed",Ae="updating",Ne="body",Re=`${Te}-viewport`,Ve="arrange",Ie="scrollbarHidden",ze=Me,je=`${Te}-padding`,_e=ze,Ue=`${Te}-content`,Be="os-size-observer",Fe=`${Be}-appear`,Ze=`${Be}-listener`,Xe=`${Ze}-scroll`,We=`${Ze}-item`,Ye=`${We}-final`,qe="os-trinsic-observer",Ge="os-theme-none",Je="os-scrollbar",Ke=`${Je}-rtl`,Qe=`${Je}-horizontal`,tn=`${Je}-vertical`,en=`${Je}-track`,nn=`${Je}-handle`,rn=`${Je}-visible`,on=`${Je}-cornerless`,sn=`${Je}-transitionless`,cn=`${Je}-interaction`,ln=`${Je}-unusable`,an=`${Je}-auto-hide`,un=`${an}-hidden`,dn=`${Je}-wheel`,pn=`${en}-interactive`,fn=`${nn}-interactive`,hn={},yn={},vn=(t2,e2,n2)=>pt(t2).map(r2=>{const{static:o2,instance:s2}=t2[r2],[c2,l2,i2]=n2||[],a2=n2?s2:o2;if(a2){const t3=n2?a2(c2,l2,e2):a2(e2);return(i2||yn)[r2]=t3}}),bn=t2=>yn[t2],wn="__osOptionsValidationPlugin",gn="__osSizeObserverPlugin",mn={[gn]:{static:()=>(t2,e2,n2)=>{const o2="scroll",s2=zt(`
`),c2=s2[0],l2=c2.lastChild,u2=c2.firstChild,d2=u2?.firstChild;let p2,f2=te(c2),h2=f2,y2=!1;const v2=()=>{ve(u2,3333333),ve(l2,3333333)},b2=t3=>{p2=0,y2&&(f2=h2,e2(t3===!0))},w2=t3=>{h2=te(c2),y2=!t3||!ot(h2,f2),t3?(ae(t3),y2&&!p2&&(i(p2),p2=a(b2))):b2(t3===!1),v2()},g2=[Rt(t2,s2),ie(u2,o2,w2),ie(l2,o2,w2)];return Pt(t2,Xe),Xt(d2,{[Q]:3333333,[tt]:3333333}),a(v2),[n2?it(w2,!1):v2,g2]}}},xn=(t2,e2)=>{const{T:n2}=e2,[r2,o2]=t2("showNativeOverlaidScrollbars");return[r2&&n2.x&&n2.y,o2]},$n=t2=>t2.indexOf(nt)===0,Sn=(t2,e2)=>{const{D:n2}=t2,r2=t3=>{const r3=Wt(n2,t3);return[r3,(e2?e2[t3]:r3)==="scroll"]},[o2,s2]=r2(J),[c2,l2]=r2(K);return{k:{x:o2,y:c2},R:{x:s2,y:l2}}},On=(t2,e2,n2,r2)=>{const o2=e2.x||e2.y,s2=(t3,e3)=>{const n3=$n(t3),r3=n3&&o2?"hidden":"",s3=e3&&n3&&t3.replace(`${nt}-`,"")||r3;return[e3&&!n3?t3:"",$n(s3)?"hidden":s3]},[c2,l2]=s2(n2.x,e2.x),[i2,a2]=s2(n2.y,e2.y);return r2[J]=l2&&i2?l2:c2,r2[K]=a2&&c2?a2:i2,Sn(t2,r2)},Tn="__osScrollbarsHidingPlugin",Ln={[Tn]:{static:()=>({M:(t2,e2,n2,r2,o2)=>{const{V:s2,D:c2}=t2,{L:l2,T:i2,P:a2}=r2,u2=!s2&&!l2&&(i2.x||i2.y),[d2]=xn(o2,r2),p2=t3=>{const{R:e3}=t3,n3=l2||d2?0:42,r3=(t4,e4,r4)=>[e4&&!l2?t4?n3:r4:0,t4&&!!n3],[o3,s3]=r3(i2.x,e3.x,a2.x),[c3,u3]=r3(i2.y,e3.y,a2.y);return{U:{x:o3,y:c3},B:{x:s3,y:u3}}},f2=(t3,{N:n3},r3,o3)=>{if(ft(o3,{[q]:0,[G]:0,[Y]:0}),!s2){const{U:s3,B:c3}=p2(t3),{x:l3,y:i3}=c3,{x:a3,y:u3}=s3,{j:d3}=e2,f3=n3?Y:q,h2=n3?X:Z,y2=d3[f3],v2=d3[G],b2=d3[h2],w2=d3[W];o3[Q]=`calc(100% + ${u3+-1*y2}px)`,o3[f3]=-u3+y2,o3[G]=-a3+v2,r3&&(o3[h2]=b2+(i3?u3:0),o3[W]=w2+(l3?a3:0))}};return{F:p2,q:(t3,r3,o3)=>{if(u2){const{j:s3}=e2,{U:l3,B:i3}=p2(t3),{x:a3,y:u3}=i3,{x:d3,y:f3}=l3,{N:h2}=n2,y2=s3[h2?Z:X],v2=s3.paddingTop,b2=r3.w+o3.w,w2=r3.h+o3.h,g2={w:f3&&u3?`${f3+b2-y2}px`:"",h:d3&&a3?`${d3+w2-v2}px`:""};Xt(c2,{"--os-vaw":g2.w,"--os-vah":g2.h})}return u2},W:r3=>{if(u2){const o3=r3||Sn(t2),{j:s3}=e2,{B:l3}=p2(o3),{x:i3,y:a3}=l3,d3={},h2=t3=>N(t3,t4=>{d3[t4]=s3[t4]});i3&&h2([G,F,W]),a3&&h2([Y,q,X,Z]);const y2=Wt(c2,pt(d3));return $t(c2,Re,Ve),Xt(c2,d3),[()=>{f2(o3,n2,u2,y2),Xt(c2,y2),St(c2,Re,Ve)},o3]}return[lt]},X:f2}},Y:()=>{let t2={w:0,h:0},e2=0;const n2=()=>{const t3=r.screen,e3=t3.deviceXDPI||0,n3=t3.logicalXDPI||1;return r.devicePixelRatio||e3/n3};return(r2,o2)=>{const s2=Qt(),i2={w:s2.w-t2.w,h:s2.h-t2.h};if(i2.w===0&&i2.h===0)return;const a2=l(i2.w),u2=l(i2.h),d2={w:l(c(s2.w/(t2.w/100))),h:l(c(s2.h/(t2.h/100)))},p2=n2(),f2=a2>2&&u2>2,h2=!((t3,e3)=>{const n3=l(t3),r3=l(e3);return!(n3===r3||n3+1===r3||n3-1===r3)})(d2.w,d2.h);let y2,v2;return f2&&h2&&p2!==e2&&p2>0&&([v2,y2]=o2(),ft(r2.P,v2)),t2=s2,e2=p2,y2}}})}},Pn="__osClickScrollPlugin",En={[Pn]:{static:()=>(t2,e2,n2,r2,o2)=>{let s2=0,c2=lt;const l2=i2=>{c2=A(i2,i2+r2*Math.sign(n2),133,(n3,i3,a2)=>{t2(n3);const d2=e2();if(a2&&!(o2>=d2&&o2<=d2+r2)){if(s2)l2(n3);else{const t3=u(()=>{l2(n3)},222);c2=()=>{clearTimeout(t3)}}s2++}})};return l2(0),()=>c2()}}};let Cn;const Dn=()=>(Cn||(Cn=(()=>{const t2=(t3,e2,n3,r2)=>{Rt(t3,e2);const o3=ee(e2),s3=te(e2),c3=re(n3);return r2&&At(e2),{x:s3.h-o3.h+c3.h,y:s3.w-o3.w+c3.w}},{body:n2}=document,o2=zt(`
`)[0],s2=o2.firstChild,[c2,,l2]=ge(),[i2,a2]=e({o:t2(n2,o2,s2),u:st},it(t2,n2,o2,s2,!0)),[u2]=a2(),d2=(t3=>{let e2=!1;const n3=Pt(t3,Pe);try{e2=Wt(t3,"scrollbar-width")==="none"||Wt(t3,"display","::-webkit-scrollbar")==="none"}catch{}return n3(),e2})(o2),p2={x:u2.x===0,y:u2.y===0},f2={elements:{host:null,padding:!d2,viewport:t3=>d2&&t3===t3.ownerDocument.body&&t3,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},h2=ft({},$e),y2=it(ft,{},h2),b2=it(ft,{},f2),w2={P:u2,T:p2,L:d2,G:!!v,J:((t3,e2)=>{Xt(t3,{[J]:et,[K]:et,direction:"rtl"}),ve(t3,{x:0});const n3=pe(t3),r2=pe(e2);ve(t3,{x:-999});const o3=pe(e2);return{i:n3.x===r2.x,n:r2.x!==o3.x}})(o2,s2),K:it(c2,"r"),Z:b2,tt:t3=>ft(f2,t3)&&b2(),nt:y2,ot:t3=>ft(h2,t3)&&y2(),st:ft({},f2),et:ft({},h2)};return mt(o2,"style"),At(o2),r.addEventListener("resize",()=>{let t3;if(!(d2||p2.x&&p2.y)){const e2=bn(Tn);t3=!!(e2?e2.Y():lt)(w2,i2)}l2("r",[t3])}),w2})()),Cn),kn=(t2,e2)=>L(e2)?e2.apply(0,t2):e2,Mn=(t2,e2,n2,r2)=>{const o2=x(r2)?n2:r2;return kn(t2,o2)||e2.apply(0,t2)},Hn=(t2,e2,n2,r2)=>{const o2=x(r2)?n2:r2,s2=kn(t2,o2);return!!s2&&(k(s2)?s2:e2.apply(0,t2))},An=new WeakMap,Nn=t2=>An.get(t2),Rn=(t2,e2,n2,r2)=>{let o2=!1;const{ct:s2,rt:c2,lt:l2,it:i2,ut:a2,ft:u2}=r2||{},d2=ut(()=>o2&&n2(!0),{v:33,p:99}),[p2,h2]=((t3,e3,n3)=>{let r3=!1;const o3=!!n3&&new WeakMap,s3=s4=>{if(o3&&n3){const c3=n3.map(e4=>{const[n4,r4]=e4||[];return[r4&&n4?(s4||Ct)(n4,t3):[],r4]});N(c3,n4=>N(n4[0],s5=>{const c4=n4[1],l3=o3.get(s5)||[];if(t3.contains(s5)&&c4){const t4=ie(s5,c4,n5=>{r3?(t4(),o3.delete(s5)):e3(n5)});o3.set(s5,I(l3,t4))}else B(l3),o3.delete(s5)}))}};return s3(),[()=>{r3=!0},s3]})(t2,d2,l2),y2=c2||[],v2=V(s2||[],y2),b2=(o3,s3)=>{if(!_(s3)){const c3=a2||lt,l3=u2||lt,d3=[],p3=[];let f2=!1,v3=!1;if(N(s3,n3=>{const{attributeName:o4,target:s4,type:a3,oldValue:u3,addedNodes:h3,removedNodes:b3}=n3,w3=a3==="attributes",g2=a3==="childList",m2=t2===s4,x2=w3&&o4,$2=x2&&wt(s4,o4||"")||null,S2=x2&&u3!==$2,O2=R(y2,o4)&&S2;if(e2&&(g2||!m2)){const e3=w3&&S2,a4=e3&&i2&&Dt(s4,i2),p4=(a4?!c3(s4,o4,u3,$2):!w3||e3)&&!l3(n3,!!a4,t2,r2);N(h3,t3=>I(d3,t3)),N(b3,t3=>I(d3,t3)),v3=v3||p4}!e2&&m2&&S2&&!c3(s4,o4,u3,$2)&&(I(p3,o4),f2=f2||O2)}),h2(t3=>U(d3).reduce((e3,n3)=>(I(e3,Ct(t3,n3)),Dt(n3,t3)?I(e3,n3):e3),[])),e2)return!o3&&v3&&n2(!1),[!1];if(!_(p3)||f2){const t3=[U(p3),f2];return!o3&&n2.apply(0,t3),t3}}},w2=new f(it(b2,!1));return[()=>(w2.observe(t2,{attributes:!0,attributeOldValue:!0,attributeFilter:v2,subtree:e2,childList:e2,characterData:e2}),o2=!0,()=>{o2&&(p2(),w2.disconnect(),o2=!1)}),()=>{if(o2)return d2.m(),b2(!0,w2.takeRecords())}]},Vn=(t2,n2,r2)=>{const{_t:s2,dt:c2}=r2||{},l2=bn(gn),{J:i2}=Dn(),a2=it(Yt,t2),[u2]=e({o:!1,_:!0});return()=>{const r3=[],d2=zt(`
`)[0],p2=d2.firstChild,f2=t3=>{const e2=t3 instanceof ResizeObserverEntry,r4=!e2&&P(t3);let c3=!1,l3=!1,a3=!0;if(e2){const[e3,,n3]=u2(t3.contentRect),r5=se(e3),o3=ce(e3,n3);l3=!n3||o3,c3=!l3&&!r5,a3=!c3}else r4?[,a3]=t3:l3=t3===!0;if(s2&&a3){const e3=r4?t3[0]:Yt(d2);ve(d2,{x:fe(3333333,3333333,e3&&i2),y:3333333})}c3||n2({vt:r4?t3:void 0,ht:!r4,dt:l3})};if(y){const t3=new y(t4=>f2(t4.pop()));t3.observe(p2),I(r3,()=>{t3.disconnect()})}else{if(!l2)return lt;{const[t3,e2]=l2(p2,f2,c2);I(r3,V([Pt(d2,Fe),ie(d2,"animationstart",t3)],e2))}}if(s2){const[t3]=e({o:void 0},a2);I(r3,ie(d2,"scroll",e2=>{const n3=t3(),[r4,o3,s3]=n3;o3&&(Lt(p2,"ltr rtl"),Pt(p2,r4?"rtl":"ltr"),f2([!!r4,o3,s3])),ae(e2)}))}return it(B,I(r3,Rt(t2,d2)))}},In=(t2,n2)=>{let r2;const o2=It(qe),[s2]=e({o:!1}),c2=(t3,e2)=>{if(t3){const r3=s2((t4=>t4.h===0||t4.isIntersecting||t4.intersectionRatio>0)(t3)),[,o3]=r3;return o3&&!e2&&n2(r3)&&[r3]}},l2=(t3,e2)=>c2(e2.pop(),t3);return[()=>{const e2=[];if(h)r2=new h(it(l2,!1),{root:t2}),r2.observe(o2),I(e2,()=>{r2.disconnect()});else{const t3=()=>{const t4=te(o2);c2(t4)};I(e2,Vn(o2,t3)()),t3()}return it(B,I(e2,Rt(t2,o2)))},()=>r2&&l2(!0,r2.takeRecords())]},zn=(t2,n2,r2,o2)=>{let s2,c2,l2,i2,a2,u2;const{L:d2}=Dn(),p2=`[${Ce}]`,f2=`[${Re}]`,h2=["tabindex"],v2=["wrap","cols","rows"],b2=["id","class","style","open"],{gt:w2,bt:g2,D:m2,wt:x2,St:$2,V:T2,yt:E2,Ot:C2}=t2,D2={$t:!1,N:Yt(w2)},k2=Dn(),H2=bn(Tn),[A2]=e({u:ot,o:{w:0,h:0}},()=>{const e2=H2&&H2.M(t2,n2,D2,k2,r2).W,o3=E2(ze),s3=!T2&&E2(Ve),c3=s3&&be(m2);C2(ze),T2&&C2(Ae,!0);const l3=s3&&e2&&e2()[0],i3=ne(x2),a3=ne(m2),u3=re(m2);return C2(ze,o3),T2&&C2(Ae),l3&&l3(),ve(m2,c3),{w:a3.w+i3.w+u3.w,h:a3.h+i3.h+u3.h}}),I2=$2?v2:V(b2,v2),z2=ut(o2,{v:()=>s2,p:()=>c2,S(t3,e2){const[n3]=t3,[r3]=e2;return[V(pt(n3),pt(r3)).reduce((t4,e3)=>(t4[e3]=n3[e3]||r3[e3],t4),{})]}}),j2=t3=>{if(T2){const e2=Yt(w2);ft(t3,{Ct:u2!==e2}),ft(D2,{N:e2}),u2=e2}},_2=t3=>{N(t3||h2,t4=>{if(R(h2,t4)){const e2=wt(g2,t4);O(e2)?gt(m2,t4,e2):mt(m2,t4)}})},U2=(t3,e2)=>{const[n3,r3]=t3,s3={xt:r3};return ft(D2,{$t:n3}),!e2&&o2(s3),s3},B2=({ht:t3,vt:e2,dt:n3})=>{const r3=(!t3||n3||e2)&&d2?z2:o2,[s3,c3]=e2||[],l3={ht:t3||n3,dt:n3,Ct:c3};j2(l3),e2&&ft(D2,{N:s3}),r3(l3)},F2=(t3,e2)=>{const[,n3]=A2(),r3={Ht:n3};return j2(r3),n3&&!e2&&(t3?o2:z2)(r3),r3},Z2=(t3,e2,n3)=>{const r3={It:e2};return j2(r3),e2&&!n3?z2(r3):T2||_2(t3),r3},{K:X2}=k2,[W2,Y2]=x2?In(g2,U2):[],q2=!T2&&Vn(g2,B2,{dt:!0,_t:!0}),[G2,J2]=Rn(g2,!1,Z2,{rt:b2,ct:V(b2,h2)}),K2=T2&&y&&new y(t3=>{const e2=t3[t3.length-1].contentRect;B2({ht:!0,dt:ce(e2,a2)}),a2=e2});return[()=>{_2(),K2&&K2.observe(g2);const t3=q2&&q2(),e2=W2&&W2(),n3=G2(),r3=X2(t4=>{const[,e3]=A2();z2({zt:t4,Ht:e3})});return()=>{K2&&K2.disconnect(),t3&&t3(),e2&&e2(),i2&&i2(),n3(),r3()}},({Et:t3,At:e2,Tt:n3})=>{const r3={},[o3]=t3("update.ignoreMutation"),[a3,u3]=t3("update.attributes"),[d3,h3]=t3("update.elementEvents"),[y2,v3]=t3("update.debounce"),b3=e2||n3;if(h3||u3){l2&&l2(),i2&&i2();const[t4,e3]=Rn(x2||m2,!0,F2,{ct:V(I2,a3||[]),lt:d3,it:p2,ft:(t5,e4)=>{const{target:n4,attributeName:r4}=t5;return!(e4||!r4||T2)&&((t6,e5,n5)=>{const r5=Ht(t6,e5),o4=t6&&((t7,e6)=>{const n6=e6?M(e6)&&e6:document;return n6?n6.querySelector(t7):null})(n5,r5),s3=Ht(o4,e5)===r5;return!(!r5||!o4)&&(r5===t6||o4===t6||s3&&Ht(Ht(t6,n5),e5)!==r5)})(n4,p2,f2)||!!Ht(n4,`.${Je}`)||!!(t6=>L(o3)&&o3(t6))(t5)}});i2=t4(),l2=e3}if(v3)if(z2.m(),P(y2)){const t4=y2[0],e3=y2[1];s2=S(t4)&&t4,c2=S(e3)&&e3}else S(y2)?(s2=y2,c2=!1):(s2=!1,c2=!1);if(b3){const t4=J2(),e3=Y2&&Y2(),n4=l2&&l2();t4&&ft(r3,Z2(t4[0],t4[1],b3)),e3&&ft(r3,U2(e3[0],b3)),n4&&ft(r3,F2(n4[0],b3))}return j2(r3),r3},D2]},jn=(t2,e2,n2,r2)=>{const{Z:o2,J:s2}=Dn(),{scrollbars:c2}=o2(),{slot:l2}=c2,{gt:i2,bt:a2,D:d2,Dt:p2,kt:f2,Rt:h2,V:y2}=e2,{scrollbars:b2}=p2?{}:t2,{slot:w2}=b2||{},g2=new Map,m2=t3=>v&&new v({source:f2,axis:t3}),x2=m2("x"),$2=m2("y"),S2=Hn([i2,a2,d2],()=>y2&&h2?i2:a2,l2,w2),O2=(t3,e3)=>{if(e3){const n3=t3?Q:tt,{Mt:r4,Vt:o4}=e3,s4=oe(o4)[n3],c4=oe(r4)[n3];return vt(0,1,s4/c4||0)}const r3=t3?"x":"y",{Lt:o3,Pt:s3}=n2,c3=s3[r3],l3=o3[r3];return vt(0,1,c3/(c3+l3)||0)},L2=(t3,e3)=>ft(t3,e3?{clear:["left"]}:{}),P2=t3=>{g2.forEach((e3,n3)=>{(!t3||R(j(t3),n3))&&(N(e3||[],t4=>{t4&&t4.cancel()}),g2.delete(n3))})},E2=(t3,e3,n3,r3)=>{const o3=g2.get(t3)||[],s3=o3.find(t4=>t4&&t4.timeline===e3);s3?s3.effect=new KeyframeEffect(t3,n3,{composite:r3}):g2.set(t3,V(o3,[t3.animate(n3,{timeline:e3,composite:r3})]))},C2=(t3,e3,n3)=>{const r3=n3?Pt:Lt;N(t3,t4=>{r3(t4.Ut,e3)})},D2=(t3,e3)=>{N(t3,t4=>{const[n3,r3]=e3(t4);Xt(n3,r3)})},k2=(t3,e3)=>{D2(t3,t4=>{const{Vt:n3}=t4;return[n3,{[e3?Q:tt]:Ft(O2(e3))}]})},M2=(t3,e3)=>{const{Lt:r3}=n2,o3=e3?r3.x:r3.y,c3=(t4,n3,r4)=>Gt(Ft(((t5,e4,n4,r5)=>{const o4=O2(n4,t5);return 1/o4*(1-o4)*(r5?1-e4:e4)||0})(t4,ye(n3,o3,r4),e3,r4)),e3);if(x2&&$2)N(t3,t4=>{const{Ut:n3,Vt:r4}=t4,l3=e3&&Yt(n3)&&s2;E2(r4,e3?x2:$2,L2({transform:he(o3,l3).map(e4=>c3(t4,e4,l3))},l3))});else{const n3=be(f2);D2(t3,t4=>{const{Vt:r4,Ut:o4}=t4;return[r4,{transform:c3(t4,e3?n3.x:n3.y,e3&&Yt(o4)&&s2)}]})}},H2=t3=>y2&&!h2&&Mt(t3)===d2,A2=[],z2=[],U2=[],F2=(t3,e3,n3)=>{const r3=T(n3),o3=!r3||!n3;(!r3||n3)&&C2(z2,t3,e3),o3&&C2(U2,t3,e3)},Z2=t3=>{const e3=t3?Qe:tn,n3=t3?z2:U2,o3=_(n3)?sn:"",s3=It(`${Je} ${e3} ${o3}`),c3=It(en),l3=It(nn),i3={Ut:s3,Mt:c3,Vt:l3};return I(n3,i3),I(A2,[Rt(s3,c3),Rt(c3,l3),it(At,s3),P2,r2(i3,F2,M2,t3)]),i3},X2=it(Z2,!0),W2=it(Z2,!1);return X2(),W2(),[{Bt:()=>{k2(z2,!0),k2(U2)},Nt:()=>{M2(z2,!0),M2(U2)},jt:()=>{if(y2){const{Lt:t3}=n2,e3=.5;if(x2&&$2)N(V(U2,z2),({Ut:n3})=>{if(H2(n3)){const r3=(t4,r4,o3)=>{const c3=o3&&Yt(n3)&&s2;E2(n3,t4,L2({transform:he(r4-e3,c3).map(t5=>Gt(Zt(t5),o3))},c3),"add")};r3(x2,t3.x,!0),r3($2,t3.y)}else P2(n3)});else{const e4=be(f2),n3=n4=>{const{Ut:r3}=n4,o3=H2(r3)&&r3,c3=(t4,e5,n5)=>{const r4=e5*ye(t4,e5,n5);return Zt(n5?-r4:r4)};return[o3,{transform:o3?Gt({x:c3(e4.x,t3.x,Yt(r3)&&s2),y:c3(e4.y,t3.y)}):""}]};D2(z2,n3),D2(U2,n3)}}},Ft:F2,qt:{G:x2,Wt:z2,Xt:X2,Yt:it(D2,z2)},Gt:{G:$2,Wt:U2,Xt:W2,Yt:it(D2,U2)}},()=>(Rt(S2,z2[0].Ut),Rt(S2,U2[0].Ut),u(()=>{F2(sn)},300),it(B,A2))]},_n=(t2,e2,n2)=>{const{bt:r2,kt:o2,Jt:s2}=e2;return(e3,l2,i2,a2)=>{const{Ut:u2,Mt:d2,Vt:p2}=e3,[f2,h2]=at(333),[y2,v2]=at(),b2=it(i2,[e3],a2),w2=!!o2.scrollBy,g2=`client${a2?"X":"Y"}`,m2=a2?Q:tt,x2=a2?"left":"top",$2=a2?"w":"h",S2=a2?"x":"y",O2=t3=>t3.propertyName.indexOf(m2)>-1;let T2=!0;return it(B,[ie(u2,"pointerenter",()=>{l2(cn,!0)}),ie(u2,"pointerleave pointercancel",()=>{l2(cn,!1)}),ie(u2,"wheel",t3=>{const{deltaX:e4,deltaY:n3,deltaMode:s3}=t3;w2&&T2&&s3===0&&Mt(u2)===r2&&o2.scrollBy({left:e4,top:n3,behavior:"smooth"}),T2=!1,l2(dn,!0),f2(()=>{T2=!0,l2(dn)}),ue(t3)},{H:!1,I:!0}),ie(p2,"transitionstart",t3=>{if(O2(t3)){const t4=()=>{b2(),y2(t4)};t4()}}),ie(p2,"transitionend transitioncancel",t3=>{O2(t3)&&(v2(),b2())}),ie(u2,"mousedown",it(ie,s2,"click",ae,{A:!0,I:!0}),{I:!0}),(()=>{const e4="pointerup pointerleave pointercancel lostpointercapture",l3=(t3,e5)=>r3=>{const{Lt:s3}=n2,c2=te(d2)[$2]-te(p2)[$2],l4=e5*r3/c2*s3[S2];ve(o2,{[S2]:t3+l4})};return ie(d2,"pointerdown",n3=>{const i3=Ht(n3.target,`.${nn}`)===p2,a3=i3?p2:d2,u3=t2.scrollbars,{button:f3,isPrimary:h3,pointerType:y3}=n3,{pointers:v3}=u3;if(f3===0&&h3&&u3[i3?"dragScroll":"clickScroll"]&&(v3||[]).includes(y3)){const t3=!i3&&n3.shiftKey,u4=it(oe,p2),f4=it(oe,d2),h4=(t4,e5)=>(t4||u4())[x2]-(e5||f4())[x2],y4=c(oe(o2)[m2])/te(o2)[$2]||1,v4=l3(be(o2)[S2]||0,1/y4),b3=n3[g2],w3=u4(),O3=f4(),T3=w3[m2],L2=h4(w3,O3)+T3/2,P2=b3-O3[x2],E2=i3?0:P2-L2,C2=t4=>{B(D2),a3.releasePointerCapture(t4.pointerId)},D2=[St(r2,Ce,He),ie(s2,e4,C2),ie(s2,"selectstart",t4=>ue(t4),{H:!1}),ie(d2,e4,C2),ie(d2,"pointermove",e5=>{const n4=e5[g2]-b3;(i3||t3)&&v4(E2+n4)})];if(a3.setPointerCapture(n3.pointerId),t3)v4(E2);else if(!i3){const t4=bn(Pn);t4&&I(D2,t4(v4,h4,E2,T3,P2))}}})})(),h2,v2])}},Un=({wt:t2})=>({Zt:e2,un:n2,Tt:r2})=>{const{xt:o2}=e2||{},{$t:s2}=n2;t2&&(o2||r2)&&Xt(t2,{[tt]:s2&&"100%"})},Bn=({bt:t2,cn:n2,D:r2,V:o2},s2)=>{const[c2,l2]=e({u:ct,o:qt()},it(qt,t2,"padding",""));return({Et:t3,Zt:e2,un:i2,Tt:a2})=>{let[u2,d2]=l2(a2);const{L:p2}=Dn(),{ht:f2,Ht:h2,Ct:y2}=e2||{},{N:v2}=i2,[b2,w2]=t3("paddingAbsolute");(f2||d2||a2||h2)&&([u2,d2]=c2(a2));const g2=!o2&&(w2||y2||d2);if(g2){const t4=!b2||!n2&&!p2,e3=u2.r+u2.l,o3=u2.t+u2.b,c3={[q]:t4&&!v2?-e3:0,[G]:t4?-o3:0,[Y]:t4&&v2?-e3:0,top:t4?-u2.t:0,right:t4?v2?-u2.r:"auto":0,left:t4?v2?"auto":-u2.l:0,[Q]:t4&&`calc(100% + ${e3}px)`},l3={[F]:t4?u2.t:0,[Z]:t4?u2.r:0,[W]:t4?u2.b:0,[X]:t4?u2.l:0};Xt(n2||r2,c3),Xt(r2,l3),ft(s2,{cn:u2,fn:!t4,j:n2?l3:ft({},c3,l3)})}return{_n:g2}}},Fn=(t2,n2)=>{const s2=Dn(),{bt:c2,cn:l2,D:i2,V:a2,Ot:u2,Rt:d2,ln:p2}=t2,{L:f2,T:h2}=s2,y2=d2&&a2,v2=it(o,0),b2={u:ot,o:{w:0,h:0}},w2={u:st,o:{x:et,y:et}},g2=(t3,e2)=>{const n3=r.devicePixelRatio%1!=0?1:0,o2={w:v2(t3.w-e2.w),h:v2(t3.h-e2.h)};return{w:o2.w>n3?o2.w:0,h:o2.h>n3?o2.h:0}},[m2,x2]=e(b2,it(re,i2)),[$2,S2]=e(b2,it(ne,i2)),[O2,T2]=e(b2),[L2,P2]=e(b2),[E2]=e(w2),C2=bn(Tn);return({Et:e2,Zt:r2,un:d3,Tt:b3},{_n:w3})=>{const{ht:D2,It:k2,Ht:M2,xt:H2,Ct:A2,zt:N2}=r2||{},{$t:R2}=d3,V2=C2&&C2.M(t2,n2,d3,s2,e2),{q:I2,W:z2,X:j2,F:_2}=V2||{},U2=(t3,e3)=>{if(Xt(i2,{[tt]:""}),e3){const{fn:e4,cn:r3}=n2,{R:o2}=t3,s3=re(c2),l3=ee(c2),a3=Wt(i2,"boxSizing")==="content-box",u3=e4||a3?r3.b+r3.t:0,d4=!(h2.x&&a3);Xt(i2,{[tt]:l3.h+s3.h+(o2.x&&d4&&_2?_2(t3).U.x:0)-u3})}},[B2,F2]=xn(e2,s2),[Z2,X2]=e2("overflow"),W2=!a2&&(D2||M2||k2||F2||H2),Y2=D2||w3||M2||A2||N2||F2,q2=$n(Z2.x),G2=$n(Z2.y),Q2=q2||G2;let et2,nt2=x2(b3),rt2=S2(b3),ot2=T2(b3),st2=P2(b3);if(F2&&f2&&u2(Ie,!B2),W2&&(et2=Sn(t2),U2(et2,R2)),Y2){Q2&&u2(ze,!1);const[t3,e3]=z2?z2(et2):[],[n3,r3]=nt2=m2(b3),[s3,c3]=rt2=$2(b3),l3=ee(i2),a3=s3,d4=l3;t3&&t3(),(c3||r3||F2)&&e3&&!B2&&I2&&I2(e3,s3,n3);const f3=Qt(p2),h3={w:v2(o(s3.w,a3.w)+n3.w),h:v2(o(s3.h,a3.h)+n3.h)},w4={w:v2((y2?f3.w:d4.w+v2(l3.w-s3.w))+n3.w),h:v2((y2?f3.h:d4.h+v2(l3.h-s3.h))+n3.h)};st2=L2(w4),ot2=O2(g2(h3,w4),b3)}const[ct2,lt2]=st2,[it2,at2]=ot2,[ut2,dt2]=rt2,[pt2,ht2]=nt2,yt2={x:it2.w>0,y:it2.h>0},vt2=q2&&G2&&(yt2.x||yt2.y)||q2&&yt2.x&&!yt2.y||G2&&yt2.y&&!yt2.x;if(w3||A2||N2||ht2||dt2||lt2||at2||X2||F2||W2||Y2){const e3={},n3=On(t2,yt2,Z2,e3);j2&&j2(n3,d3,!!I2&&I2(n3,ut2,pt2),e3),W2&&U2(n3,R2),a2?(gt(c2,De,e3[J]),gt(c2,ke,e3[K])):Xt(i2,e3)}Ot(c2,Ce,Me,vt2),Ot(l2,je,_e,vt2),a2||Ot(i2,Re,ze,Q2);const[bt2,wt2]=E2(Sn(t2).k);return ft(n2,{k:bt2,Pt:{x:ct2.w,y:ct2.h},Lt:{x:it2.w,y:it2.h},en:yt2}),{sn:wt2,tn:lt2,nn:at2}}},Zn=(t2,e2,n2,r2)=>{const o2=Oe(e2,{}),[s2,c2,l2,i2,a2]=(t3=>{const[e3,n3,r3]=(t4=>{const e4=Dn(),{Z:n4,L:r4}=e4,{elements:o4}=n4(),{host:s4,padding:c4,viewport:l4,content:i4}=o4,a4=k(t4),u4=a4?{}:t4,{elements:d4}=u4,{host:p3,padding:f3,viewport:h3,content:y3}=d4||{},v3=a4?t4:u4.target,b3=Dt(v3,"textarea"),w2=v3.ownerDocument,g2=w2.documentElement,m2=v3===w2.body,x2=w2.defaultView,$2=()=>w2.activeElement,S2=t5=>{t5&&t5.focus&&t5.focus()},O2=it(Mn,[v3]),T2=it(Hn,[v3]),L2=it(kn,[v3]),P2=it(It,""),E2=it(O2,P2,l4),C2=it(T2,P2,i4),D2=E2(h3),M2=D2===v3,H2=M2&&m2,A2=!M2&&C2(y3),N2=!M2&&k(D2)&&D2===A2,V2=N2&&!!L2(i4),z2=V2?E2():D2,j2=V2?A2:C2(),_2=H2?g2:N2?z2:D2,U2=b3?O2(P2,s4,p3):v3,F2=N2?j2:A2,Z2={gt:v3,bt:H2?_2:U2,D:_2,cn:!M2&&T2(P2,c4,f3),wt:F2,kt:H2?g2:_2,Kt:H2?w2:_2,rn:m2?g2:v3,ln:x2,Jt:w2,St:b3,Rt:m2,Dt:a4,V:M2,an:N2,yt:t5=>((t6,e5,n5)=>xt(t6,e5).C(n5))(_2,M2?Ce:Re,t5),Ot:(t5,e5)=>Ot(_2,M2?Ce:Re,t5,e5)},X2=pt(Z2).reduce((t5,e5)=>{const n5=Z2[e5];return I(t5,!(!n5||!k(n5)||Mt(n5))&&n5)},[]),W2=t5=>t5?R(X2,t5):null,{gt:Y2,bt:q2,cn:G2,D:J2,wt:K2}=Z2,Q2=[()=>{mt(q2,[Ce,Ee]),mt(Y2,Ee),m2&&mt(g2,[Ee,Ce])}],tt2=b3&&W2(q2);let et2=b3?Y2:kt([K2,J2,G2,q2,Y2].find(t5=>W2(t5)===!1));const nt2=H2?Y2:K2||J2,rt2=it(B,Q2);return[Z2,()=>{const t5=$2(),e5=t6=>{Rt(Mt(t6),kt(t6)),At(t6)},n5=t6=>t6?ie(t6,"focus blur",t7=>{ae(t7),t7.stopImmediatePropagation()},{I:!0,H:!1}):lt,o5=n5(t5);if(gt(q2,Ce,M2?"viewport":"host"),gt(G2,je,""),gt(K2,Ue,""),M2||(gt(J2,Re,""),m2&&St(g2,Ce,Ne)),tt2&&(Vt(Y2,q2),I(Q2,()=>{Vt(q2,Y2),At(q2)})),Rt(nt2,et2),Rt(q2,G2),Rt(G2||q2,!M2&&J2),Rt(J2,K2),I(Q2,[o5,()=>{const t6=$2(),r5=n5(t6);mt(G2,je),mt(K2,Ue),mt(J2,[De,ke,Re]),W2(K2)&&e5(K2),W2(J2)&&e5(J2),W2(G2)&&e5(G2),S2(t6),r5()}]),r4&&!M2&&(St(J2,Re,Ie),I(Q2,it(mt,J2,Re))),M2||x2.top!==x2||t5!==v3)S2(t5);else{const t6="tabindex",e6=wt(J2,t6);gt(J2,t6,"-1"),S2(J2);const n6=()=>e6?gt(J2,t6,e6):mt(J2,t6),r5=ie(w2,"pointerdown keydown",()=>{n6(),r5()});I(Q2,[n6,r5])}return o5(),et2=0,rt2},rt2]})(t3),o3={cn:{t:0,r:0,b:0,l:0},fn:!1,j:{[q]:0,[G]:0,[Y]:0,[F]:0,[Z]:0,[W]:0,[X]:0},Pt:{x:0,y:0},Lt:{x:0,y:0},k:{x:et,y:et},en:{x:!1,y:!1}},{gt:s3,D:c3,V:l3}=e3,{L:i3,T:a3}=Dn(),u3=!i3&&(a3.x||a3.y),d3=[Un(e3),Bn(e3,o3),Fn(e3,o3)];return[n3,t4=>{const e4={},n4=u3&&be(c3),r4=l3?St(c3,Ce,Ae):lt;return N(d3,n5=>{ft(e4,n5(t4,e4)||{})}),r4(),ve(c3,n4),!l3&&ve(s3,0),e4},o3,e3,r3]})(t2),[u2,d2,p2]=zn(i2,l2,o2,t3=>{b2({},t3)}),[f2,h2,,y2]=((t3,e3,n3,r3,o3,s3)=>{let c3,l3,i3,a3,u3,d3=lt,p3=0;const[f3,h3]=at(),[y3,v3]=at(),[b3,w2]=at(100),[g2,m2]=at(100),[x2,$2]=at(100),[S2,O2]=at(()=>p3),[T2,L2]=jn(t3,o3,r3,_n(e3,o3,r3)),{bt:P2,Kt:E2,Rt:C2}=o3,{Ft:D2,Bt:k2,Nt:M2,jt:H2}=T2,A2=t4=>{D2(an,t4,!0),D2(an,t4,!1)},N2=(t4,e4)=>{if(O2(),t4)D2(un);else{const t5=it(D2,un,!0);p3>0&&!e4?S2(t5):t5()}},R2=t4=>t4.pointerType==="mouse",V2=t4=>{R2(t4)&&(a3=l3,a3&&N2(!0))},z2=[w2,O2,m2,$2,v3,h3,()=>d3(),ie(P2,"pointerover",V2,{A:!0}),ie(P2,"pointerenter",V2),ie(P2,"pointerleave",t4=>{R2(t4)&&(a3=!1,l3&&N2(!1))}),ie(P2,"pointermove",t4=>{R2(t4)&&c3&&f3(()=>{w2(),N2(!0),g2(()=>{c3&&N2(!1)})})}),ie(E2,"scroll",t4=>{y3(()=>{M2(),i3&&N2(!0),b3(()=>{i3&&!a3&&N2(!1)})}),s3(t4),H2()})];return[()=>it(B,I(z2,L2())),({Et:t4,Tt:e4,Zt:o4,Qt:s4})=>{const{tn:a4,nn:f4,sn:h4}=s4||{},{Ct:y4,dt:v4}=o4||{},{N:b4}=n3,{T:w3}=Dn(),{Lt:g3,k:m3,en:$3}=r3,[S3,O3]=t4("showNativeOverlaidScrollbars"),[T3,L3]=t4("scrollbars.theme"),[P3,R3]=t4("scrollbars.visibility"),[V3,I2]=t4("scrollbars.autoHide"),[z3,j2]=t4("scrollbars.autoHideSuspend"),[_2]=t4("scrollbars.autoHideDelay"),[U2,B2]=t4("scrollbars.dragScroll"),[F2,Z2]=t4("scrollbars.clickScroll"),X2=v4&&!e4,W2=$3.x||$3.y,Y2=a4||f4||y4||e4,q2=h4||R3,G2=S3&&w3.x&&w3.y,J2=(t5,e5)=>{const n4=P3==="visible"||P3==="auto"&&t5==="scroll";return D2(rn,n4,e5),n4};if(p3=_2,X2&&(z3&&W2?(A2(!1),d3(),x2(()=>{d3=ie(E2,"scroll",it(A2,!0),{A:!0})})):A2(!0)),O3&&D2(Ge,G2),L3&&(D2(u3),D2(T3,!0),u3=T3),j2&&!z3&&A2(!0),I2&&(c3=V3==="move",l3=V3==="leave",i3=V3!=="never",N2(!i3,!0)),B2&&D2(fn,U2),Z2&&D2(pn,F2),q2){const t5=J2(m3.x,!0),e5=J2(m3.y,!1);D2(on,!(t5&&e5))}Y2&&(k2(),M2(),H2(),D2(ln,!g3.x,!0),D2(ln,!g3.y,!1),D2(Ke,b4&&!C2))},{},T2]})(t2,e2,p2,l2,i2,r2),v2=t3=>pt(t3).some(e3=>!!t3[e3]),b2=(t3,r3)=>{const{dn:o3,Tt:s3,At:l3,vn:i3}=t3,a3=o3||{},u3=!!s3,f3={Et:Oe(e2,a3,u3),dn:a3,Tt:u3};if(i3)return h2(f3),!1;const y3=r3||d2(ft({},f3,{At:l3})),b3=c2(ft({},f3,{un:p2,Zt:y3}));h2(ft({},f3,{Zt:y3,Qt:b3}));const w2=v2(y3),g2=v2(b3),m2=w2||g2||!yt(a3)||u3;return m2&&n2(t3,{Zt:y3,Qt:b3}),m2};return[()=>{const{rn:t3,D:e3}=i2,n3=be(t3),r3=[u2(),s2(),f2()];return ve(e3,n3),it(B,r3)},b2,()=>({hn:p2,pn:l2}),{gn:i2,bn:y2},a2]},Xn=(t2,e2,n2)=>{const{nt:r2}=Dn(),o2=k(t2),s2=o2?t2:t2.target,c2=Nn(s2);if(e2&&!c2){let c3=!1;const l2=[],i2={},a2=t3=>{const e3=ht(t3,!0),n3=bn(wn);return n3?n3(e3,!0):e3},u2=ft({},r2(),a2(e2)),[d2,p2,f2]=ge(),[h2,y2,v2]=ge(n2),b2=(t3,e3)=>{v2(t3,e3),f2(t3,e3)},[w2,g2,m2,S2,O2]=Zn(t2,u2,({dn:t3,Tt:e3},{Zt:n3,Qt:r3})=>{const{ht:o3,Ct:s3,xt:c4,Ht:l3,It:i3,dt:a3}=n3,{tn:u3,nn:d3,sn:p3}=r3;b2("updated",[L2,{updateHints:{sizeChanged:!!o3,directionChanged:!!s3,heightIntrinsicChanged:!!c4,overflowEdgeChanged:!!u3,overflowAmountChanged:!!d3,overflowStyleChanged:!!p3,contentMutation:!!l3,hostMutation:!!i3,appear:!!a3},changedOptions:t3||{},force:!!e3}])},t3=>b2("scroll",[L2,t3])),T2=t3=>{(t4=>{An.delete(t4)})(s2),B(l2),c3=!0,b2("destroyed",[L2,t3]),p2(),y2()},L2={options(t3,e3){if(t3){const n3=e3?r2():{},o3=Se(u2,ft(n3,a2(t3)));yt(o3)||(ft(u2,o3),g2({dn:o3}))}return ft({},u2)},on:h2,off:(t3,e3)=>{t3&&e3&&y2(t3,e3)},state(){const{hn:t3,pn:e3}=m2(),{N:n3}=t3,{Pt:r3,Lt:o3,k:s3,en:l3,cn:i3,fn:a3}=e3;return ft({},{overflowEdge:r3,overflowAmount:o3,overflowStyle:s3,hasOverflow:l3,padding:i3,paddingAbsolute:a3,directionRTL:n3,destroyed:c3})},elements(){const{gt:t3,bt:e3,cn:n3,D:r3,wt:o3,kt:s3,Kt:c4}=S2.gn,{qt:l3,Gt:i3}=S2.bn,a3=t4=>{const{Vt:e4,Mt:n4,Ut:r4}=t4;return{scrollbar:r4,track:n4,handle:e4}},u3=t4=>{const{Wt:e4,Xt:n4}=t4,r4=a3(e4[0]);return ft({},r4,{clone:()=>{const t5=a3(n4());return g2({vn:!0}),t5}})};return ft({},{target:t3,host:e3,padding:n3||r3,viewport:r3,content:o3||r3,scrollOffsetElement:s3,scrollEventElement:c4,scrollbarHorizontal:u3(l3),scrollbarVertical:u3(i3)})},update:t3=>g2({Tt:t3,At:!0}),destroy:it(T2,!1),plugin:t3=>i2[pt(t3)[0]]};return I(l2,[O2]),((t3,e3)=>{An.set(t3,e3)})(s2,L2),vn(hn,Xn,[L2,d2,i2]),((t3,e3)=>{const{nativeScrollbarsOverlaid:n3,body:r3}=e3||{},{T:o3,L:s3,Z:c4}=Dn(),{nativeScrollbarsOverlaid:l3,body:i3}=c4().cancel,a3=n3??l3,u3=x(r3)?i3:r3,d3=(o3.x||o3.y)&&a3,p3=t3&&($(u3)?!s3:u3);return!!d3||!!p3})(S2.gn.Rt,!o2&&t2.cancel)?(T2(!0),L2):(I(l2,w2()),b2("initialized",[L2]),L2.update(!0),L2)}return c2};return Xn.plugin=t2=>{const e2=P(t2),n2=e2?t2:[t2],r2=n2.map(t3=>vn(t3,Xn)[0]);return(t3=>{N(t3,t4=>N(t4,(e3,n3)=>{hn[n3]=t4[n3]}))})(n2),e2?r2:r2[0]},Xn.valid=t2=>{const e2=t2&&t2.elements,n2=L(e2)&&e2();return D(n2)&&!!Nn(n2.target)},Xn.env=()=>{const{P:t2,T:e2,L:n2,J:r2,G:o2,st:s2,et:c2,Z:l2,tt:i2,nt:a2,ot:u2}=Dn();return ft({},{scrollbarsSize:t2,scrollbarsOverlaid:e2,scrollbarsHiding:n2,rtlScrollBehavior:r2,scrollTimeline:o2,staticDefaultInitialization:s2,staticDefaultOptions:c2,getDefaultInitialization:l2,setDefaultInitialization:i2,getDefaultOptions:a2,setDefaultOptions:u2})},t.ClickScrollPlugin=En,t.OverlayScrollbars=Xn,t.ScrollbarsHidingPlugin=Ln,t.SizeObserverPlugin=mn,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({});class ProductRecommendations extends HTMLElement{constructor(){super(),window.initLazyScript(this,this.init.bind(this),500)}async init(){const{productId}=this.dataset;if(productId)try{const response=await fetch(`${this.dataset.url}&product_id=${productId}`);if(!response.ok)throw new Error(response.status);const tmpl=document.createElement("template");tmpl.innerHTML=await response.text();const el=tmpl.content.querySelector("product-recommendations");el&&el.hasChildNodes()&&(this.innerHTML=el.innerHTML),window.initLazyImages()}catch(error){console.log(error)}}}if(customElements.define("product-recommendations",ProductRecommendations),setTimeout(()=>{requestAnimationFrame(initLazyImages)},0),window.initLazyScript=initLazyScript,document.addEventListener("keydown",evt=>{evt.code==="Tab"&&document.body.classList.add("tab-used")}),document.addEventListener("DOMContentLoaded",()=>{setTimeout(()=>{document.body.classList.add("dom-loaded")},0),setTimeout(()=>{document.body.classList.add("dom-loaded-plus-6")},6e3),theme.settings.externalLinksNewTab&&document.addEventListener("click",evt=>{const link=evt.target.tagName==="A"?evt.target:evt.target.closest("a");link&&link.tagName==="A"&&window.location.hostname!==new URL(link.href).hostname&&(link.target="_blank")}),document.addEventListener("click",evt=>{evt.target.tagName==="A"&&window.location.hostname===new URL(evt.target.href).hostname&&evt.target.href.includes("#")&&(document.getElementsByTagName("html")[0].style.scrollBehavior="smooth",setTimeout(()=>{document.getElementsByTagName("html")[0].style.scrollBehavior=""},1e3))})}),window.addEventListener("pageshow",evt=>{evt.persisted?document.dispatchEvent(new CustomEvent("on:bfcache:load-restore")):document.dispatchEvent(new CustomEvent("on:bfcache:load-normal"))}),window.OverlayScrollbarsGlobal){const initMobileScrollbars=()=>{document.querySelectorAll(".slider--mobile").forEach(slider=>{window.OverlayScrollbarsGlobal.OverlayScrollbars({target:slider.parentElement,elements:{viewport:slider}},{})})};initMobileScrollbars(),document.addEventListener("shopify:section:load",initMobileScrollbars)} //# sourceMappingURL=/cdn/shop/t/10/assets/main.js.map?v=2414140005931730311716915740